@feedmepos/mf-report 5.35.0 → 5.35.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/dist/{App-Dv36-JBr.js → App-DymsgzRk.js} +5 -5
- package/dist/{DateRangeSelect-CSuWTBDR.js → DateRangeSelect-EyFOS5YN.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BFuav3fL.js → Default.vue_vue_type_script_setup_true_lang-DR00UPAF.js} +2 -2
- package/dist/{DigestListView-lWXR-Yqe.js → DigestListView-Bqfvh-HJ.js} +5 -5
- package/dist/{DigestReaderView-cKRrj4qw.js → DigestReaderView-C2LLt5Os.js} +6 -6
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D0OTyDep.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CG6e_gzi.js} +175 -175
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-lFm4G3pA.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CDVTzFgy.js} +86 -86
- package/dist/{InsightView-BO2y0s6E.js → InsightView-DuKZSkwX.js} +7 -7
- package/dist/{Integration-DZR0sg3Y.js → Integration-CsNHPYFj.js} +4 -4
- package/dist/{Integrations-C8IJSs8_.js → Integrations-D3WKXf51.js} +4 -4
- package/dist/{Layout-DKE_UPyV.js → Layout-BjmSSX_t.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-pKBQdsry.js → LocationSelect.vue_vue_type_script_setup_true_lang-B1l8lX9B.js} +3 -3
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DsTCV4je.js → MenuTab.vue_vue_type_script_setup_true_lang-BB6oCrSY.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-uFKb4Unh.js → NavigationTab.vue_vue_type_script_setup_true_lang-MU23ZpS-.js} +7 -7
- package/dist/{OverviewView--6juk8Ny.js → OverviewView-CPGvc7ai.js} +6 -6
- package/dist/{Report-B7tYzV-u.js → Report-pV0cutLQ.js} +4 -4
- package/dist/{ReportCanvasView-DJZItxK4.js → ReportCanvasView-DIbh7jfm.js} +6 -6
- package/dist/{ReportEditor-lP1wy7eF.js → ReportEditor-DzNm2lco.js} +9 -9
- package/dist/{ReportView-BFdf3j2m.js → ReportView-snhO75LM.js} +8 -8
- package/dist/{ReportViewRoute-D5tZcb3A.js → ReportViewRoute-B2EqiToP.js} +2 -2
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js → SelectComponent.vue_vue_type_script_setup_true_lang-D8f9NgeK.js} +1 -1
- package/dist/{Setting-CdOGOX1H.js → Setting-CQv2TfFl.js} +5 -5
- package/dist/{Template-CcNz2aVR.js → Template-D2V4D103.js} +5 -5
- package/dist/TileEditor-BSo6XBio.js +4197 -0
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-D2Tz0EW3.js → TilePageStack.vue_vue_type_script_setup_true_lang-Dv8AbusW.js} +3 -3
- package/dist/{TransitionFade-qKsTOksI.js → TransitionFade-Pp1yGBHT.js} +7 -7
- package/dist/_plugin-vue_export-helper-N63MbPK5.js +2905 -0
- package/dist/{app-D9WJwZyu.js → app-DovA8wu5.js} +16 -15
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-Bt8turfo.js → formatChartData.worker-CQS_7KcL.js} +26 -23
- package/dist/assets/{processTableData.worker-MGb36f8J.js → processTableData.worker-OuexVqV8.js} +26 -23
- package/dist/{currency-Dx3wVA1Q.js → currency-BuBigNK4.js} +1 -1
- package/dist/{index-c2QQydke.js → index-B-TPuqE4.js} +27 -24
- package/dist/{report-tffVXl4d.js → report-B7mn0l-p.js} +1 -1
- package/dist/{useDigestFont-DfORxCFz.js → useDigestFont-BfYA1Gac.js} +2 -2
- package/dist/{useReportCanvasPicks-D1IdA31H.js → useReportCanvasPicks-BXxoQ2_p.js} +4 -4
- package/dist/{useRestaurantPermission-CrqMkVed.js → useRestaurantPermission-B7Js_cb-.js} +2 -2
- package/package.json +2 -2
- package/dist/TileEditor-D8QsUytE.js +0 -4183
- package/dist/_plugin-vue_export-helper-Bx7s49ra.js +0 -2828
|
@@ -0,0 +1,2905 @@
|
|
|
1
|
+
import { getCurrentScope as _r, onScopeDispose as mr, getCurrentInstance as dr, inject as Er, computed as Ve, watch as Tt, onMounted as pr, onUnmounted as Nr, ref as Lr, shallowRef as Or, defineComponent as kt, h as Ze, createVNode as Tr, Text as gr, Fragment as hn } from "vue";
|
|
2
|
+
import "@vue/devtools-api";
|
|
3
|
+
/*!
|
|
4
|
+
* shared v11.4.16
|
|
5
|
+
* (c) 2026 kazuya kawaguchi
|
|
6
|
+
* Released under the MIT License.
|
|
7
|
+
*/
|
|
8
|
+
const me = typeof window < "u";
|
|
9
|
+
let ne, he;
|
|
10
|
+
if (process.env.NODE_ENV !== "production") {
|
|
11
|
+
const e = me && window.performance;
|
|
12
|
+
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
13
|
+
e.clearMeasures && (ne = (t) => {
|
|
14
|
+
e.mark(t);
|
|
15
|
+
}, he = (t, n, r) => {
|
|
16
|
+
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const Ir = /\{([0-9a-zA-Z]+)\}/g;
|
|
20
|
+
function rt(e, ...t) {
|
|
21
|
+
return t.length === 1 && y(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ir, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
22
|
+
}
|
|
23
|
+
const de = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ar = (e, t, n) => hr({ l: e, k: t, s: n }), hr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), X = (e) => typeof e == "number" && isFinite(e);
|
|
24
|
+
function Ne(e, t) {
|
|
25
|
+
return S(t) || X(t) ? `${e}:${t}` : e;
|
|
26
|
+
}
|
|
27
|
+
const Cn = (e) => Ft(e) === "[object Date]", ze = (e) => Ft(e) === "[object RegExp]", Mt = (e) => K(e) && Object.keys(e).length === 0, j = Object.assign, Cr = Object.create, k = (e = null) => Cr(e);
|
|
28
|
+
let Bt;
|
|
29
|
+
const pe = () => Bt || (Bt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : k()), Sr = Object.prototype.hasOwnProperty;
|
|
30
|
+
function se(e, t) {
|
|
31
|
+
return Sr.call(e, t);
|
|
32
|
+
}
|
|
33
|
+
function Q(e, t) {
|
|
34
|
+
const n = e[t];
|
|
35
|
+
return se(e, t) ? n : void 0;
|
|
36
|
+
}
|
|
37
|
+
function Sn(e) {
|
|
38
|
+
return se(Object.prototype, e);
|
|
39
|
+
}
|
|
40
|
+
const G = Array.isArray, W = (e) => typeof e == "function", S = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", y = (e) => e !== null && typeof e == "object", br = (e) => y(e) && W(e.then) && W(e.catch), bn = Object.prototype.toString, Ft = (e) => bn.call(e), K = (e) => Ft(e) === "[object Object]", Dr = (e) => e == null ? "" : G(e) || K(e) && e.toString === bn ? JSON.stringify(e, null, 2) : String(e);
|
|
41
|
+
function Ut(e, t = "") {
|
|
42
|
+
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
43
|
+
}
|
|
44
|
+
const Xt = 2;
|
|
45
|
+
function Pr(e, t = 0, n = e.length) {
|
|
46
|
+
const r = e.split(/\r?\n/);
|
|
47
|
+
let s = 0;
|
|
48
|
+
const o = [];
|
|
49
|
+
for (let l = 0; l < r.length; l++)
|
|
50
|
+
if (s += r[l].length + 1, s >= t) {
|
|
51
|
+
for (let c = l - Xt; c <= l + Xt || n > s; c++) {
|
|
52
|
+
if (c < 0 || c >= r.length)
|
|
53
|
+
continue;
|
|
54
|
+
const u = c + 1;
|
|
55
|
+
o.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[c]}`);
|
|
56
|
+
const m = r[c].length;
|
|
57
|
+
if (c === l) {
|
|
58
|
+
const I = t - (s - m) + 1, T = Math.max(1, n > s ? m - I : n - t);
|
|
59
|
+
o.push(" | " + " ".repeat(I) + "^".repeat(T));
|
|
60
|
+
} else if (c > l) {
|
|
61
|
+
if (n > s) {
|
|
62
|
+
const I = Math.max(Math.min(n - s, m), 1);
|
|
63
|
+
o.push(" | " + "^".repeat(I));
|
|
64
|
+
}
|
|
65
|
+
s += m + 1;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return o.join(`
|
|
71
|
+
`);
|
|
72
|
+
}
|
|
73
|
+
function ae(e, t) {
|
|
74
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
75
|
+
}
|
|
76
|
+
const jt = {};
|
|
77
|
+
function Dn(e) {
|
|
78
|
+
jt[e] || (jt[e] = !0, ae(e));
|
|
79
|
+
}
|
|
80
|
+
function Jt(e) {
|
|
81
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
82
|
+
}
|
|
83
|
+
function vr(e) {
|
|
84
|
+
return e.replace(/&(?![a-z0-9#]{2,6};)/gi, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
85
|
+
}
|
|
86
|
+
const Rr = /^javascript:/i, yr = /^(?:href|src|action|formaction)$/i, kr = /&#(?:x([0-9a-f]+)|(\d+));?/gi, Mr = /&(?:Tab|NewLine);/g, Fr = /:?/gi, Ur = /[\u0000-\u0020\u007f-\u009f]/g, wr = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, Vr = /(^|[\s"'<>/])on(\w+\s*=)/gi, Wr = /(?:^|[\s"'<>/])srcdoc\s*=/i, Gr = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, xr = /(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
87
|
+
function Yr(e, t, n) {
|
|
88
|
+
const r = t || n;
|
|
89
|
+
if (!r)
|
|
90
|
+
return e;
|
|
91
|
+
const s = Number.parseInt(r, t ? 16 : 10);
|
|
92
|
+
return s <= 127 ? String.fromCharCode(s) : e;
|
|
93
|
+
}
|
|
94
|
+
function wt(e) {
|
|
95
|
+
const t = e.replace(kr, Yr).replace(Mr, "").replace(Fr, ":").replace(Ur, "");
|
|
96
|
+
return Rr.test(t);
|
|
97
|
+
}
|
|
98
|
+
function $r(e) {
|
|
99
|
+
const t = /url\s*\(/gi;
|
|
100
|
+
let n = "", r = 0, s;
|
|
101
|
+
for (; (s = t.exec(e)) !== null; ) {
|
|
102
|
+
const o = s.index, l = t.lastIndex - 1;
|
|
103
|
+
let c = l + 1, u = 1, m = null;
|
|
104
|
+
for (; c < e.length; c++) {
|
|
105
|
+
const p = e[c];
|
|
106
|
+
if (m) {
|
|
107
|
+
p === m && (m = null);
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
if (p === '"' || p === "'")
|
|
111
|
+
m = p;
|
|
112
|
+
else if (p === "(")
|
|
113
|
+
u++;
|
|
114
|
+
else if (p === ")" && (u--, u === 0))
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
if (u !== 0)
|
|
118
|
+
break;
|
|
119
|
+
const I = e.slice(l + 1, c).trim(), T = I.startsWith('"') && I.endsWith('"') || I.startsWith("'") && I.endsWith("'") ? I.slice(1, -1).trim() : I;
|
|
120
|
+
n += e.slice(r, o), n += wt(T) ? "url(about:blank)" : e.slice(o, c + 1), r = c + 1;
|
|
121
|
+
}
|
|
122
|
+
return n + e.slice(r);
|
|
123
|
+
}
|
|
124
|
+
function qt(e, t) {
|
|
125
|
+
if (yr.test(e) && wt(t))
|
|
126
|
+
return "about:blank";
|
|
127
|
+
const n = e.toLowerCase() === "style" ? $r(t) : t;
|
|
128
|
+
return vr(n);
|
|
129
|
+
}
|
|
130
|
+
function Kr(e) {
|
|
131
|
+
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (t, n, r) => `${n}="${qt(n, r)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (t, n, r) => `${n}='${qt(n, r)}'`), wr.test(e) && (process.env.NODE_ENV !== "production" && ae("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(Vr, "$1on$2")), Wr.test(e) && (process.env.NODE_ENV !== "production" && ae("Potentially dangerous srcdoc attribute detected in translation. Consider removing srcdoc from your translation messages."), e = e.replace(Gr, "$1s$2")), e = e.replace(xr, (t, n, r, s) => wt(s) ? `${n}${r}about:blank` : t), e;
|
|
132
|
+
}
|
|
133
|
+
function Pn() {
|
|
134
|
+
const e = /* @__PURE__ */ new Map();
|
|
135
|
+
return {
|
|
136
|
+
events: e,
|
|
137
|
+
on(n, r) {
|
|
138
|
+
const s = e.get(n);
|
|
139
|
+
s && s.push(r) || e.set(n, [r]);
|
|
140
|
+
},
|
|
141
|
+
off(n, r) {
|
|
142
|
+
const s = e.get(n);
|
|
143
|
+
s && s.splice(s.indexOf(r) >>> 0, 1);
|
|
144
|
+
},
|
|
145
|
+
emit(n, r) {
|
|
146
|
+
(e.get(n) || []).slice().map((s) => s(r)), (e.get("*") || []).slice().map((s) => s(n, r));
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
const Qt = (e) => !y(e) || G(e);
|
|
151
|
+
function Qe(e, t) {
|
|
152
|
+
if (Qt(e) || Qt(t) || t === Object.prototype)
|
|
153
|
+
throw new Error("Invalid value");
|
|
154
|
+
const n = [{ src: e, des: t }];
|
|
155
|
+
for (; n.length; ) {
|
|
156
|
+
const { src: r, des: s } = n.pop();
|
|
157
|
+
Object.keys(r).forEach((o) => {
|
|
158
|
+
if (o === "__proto__")
|
|
159
|
+
return;
|
|
160
|
+
const l = r[o];
|
|
161
|
+
if (G(l)) {
|
|
162
|
+
const c = [];
|
|
163
|
+
c.length = l.length, s[o] = c, n.push({ src: l, des: c });
|
|
164
|
+
} else y(l) ? ((!y(s[o]) || G(s[o])) && (s[o] = k()), n.push({ src: l, des: s[o] })) : s[o] = l;
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/*!
|
|
169
|
+
* message-compiler v11.4.16
|
|
170
|
+
* (c) 2026 kazuya kawaguchi
|
|
171
|
+
* Released under the MIT License.
|
|
172
|
+
*/
|
|
173
|
+
function Hr(e, t, n) {
|
|
174
|
+
return { line: e, column: t, offset: n };
|
|
175
|
+
}
|
|
176
|
+
function Ct(e, t, n) {
|
|
177
|
+
return { start: e, end: t };
|
|
178
|
+
}
|
|
179
|
+
const R = {
|
|
180
|
+
// tokenizer error codes
|
|
181
|
+
EXPECTED_TOKEN: 1,
|
|
182
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
183
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
184
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
185
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
186
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
|
187
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
|
188
|
+
EMPTY_PLACEHOLDER: 8,
|
|
189
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
190
|
+
INVALID_LINKED_FORMAT: 10,
|
|
191
|
+
// parser error codes
|
|
192
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
193
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
194
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
195
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
196
|
+
// generator error codes
|
|
197
|
+
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
198
|
+
// minifier error codes
|
|
199
|
+
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
200
|
+
}, Br = 17, Xr = {
|
|
201
|
+
// tokenizer error messages
|
|
202
|
+
[R.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
203
|
+
[R.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
204
|
+
[R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
205
|
+
[R.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
206
|
+
[R.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
207
|
+
[R.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
208
|
+
[R.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
209
|
+
[R.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
210
|
+
[R.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
211
|
+
[R.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
212
|
+
// parser error messages
|
|
213
|
+
[R.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
214
|
+
[R.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
215
|
+
[R.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
216
|
+
[R.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
217
|
+
// generator error messages
|
|
218
|
+
[R.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
219
|
+
// minimizer error messages
|
|
220
|
+
[R.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
221
|
+
};
|
|
222
|
+
function Fe(e, t, n = {}) {
|
|
223
|
+
const { domain: r, messages: s, args: o } = n, l = process.env.NODE_ENV !== "production" ? rt((s || Xr)[e] || "", ...o || []) : e, c = new SyntaxError(String(l));
|
|
224
|
+
return c.code = e, t && (c.location = t), c.domain = r, c;
|
|
225
|
+
}
|
|
226
|
+
function jr(e) {
|
|
227
|
+
throw e;
|
|
228
|
+
}
|
|
229
|
+
const Jr = /<\/?[\w\s="/.':;#-\/]+>/, qr = (e) => Jr.test(e), ie = " ", Qr = "\r", z = `
|
|
230
|
+
`, Zr = "\u2028", zr = "\u2029";
|
|
231
|
+
function es(e) {
|
|
232
|
+
const t = e;
|
|
233
|
+
let n = 0, r = 1, s = 1, o = 0;
|
|
234
|
+
const l = (O) => t[O] === Qr && t[O + 1] === z, c = (O) => t[O] === z, u = (O) => t[O] === zr, m = (O) => t[O] === Zr, I = (O) => l(O) || c(O) || u(O) || m(O), T = () => n, p = () => r, g = () => s, P = () => o, D = (O) => l(O) || u(O) || m(O) ? z : t[O], v = () => D(n), f = () => D(n + o);
|
|
235
|
+
function N() {
|
|
236
|
+
return o = 0, I(n) && (r++, s = 0), l(n) && n++, n++, s++, t[n];
|
|
237
|
+
}
|
|
238
|
+
function C() {
|
|
239
|
+
return l(n + o) && o++, o++, t[n + o];
|
|
240
|
+
}
|
|
241
|
+
function E() {
|
|
242
|
+
n = 0, r = 1, s = 1, o = 0;
|
|
243
|
+
}
|
|
244
|
+
function A(O = 0) {
|
|
245
|
+
o = O;
|
|
246
|
+
}
|
|
247
|
+
function b() {
|
|
248
|
+
const O = n + o;
|
|
249
|
+
for (; O !== n; )
|
|
250
|
+
N();
|
|
251
|
+
o = 0;
|
|
252
|
+
}
|
|
253
|
+
return {
|
|
254
|
+
index: T,
|
|
255
|
+
line: p,
|
|
256
|
+
column: g,
|
|
257
|
+
peekOffset: P,
|
|
258
|
+
charAt: D,
|
|
259
|
+
currentChar: v,
|
|
260
|
+
currentPeek: f,
|
|
261
|
+
next: N,
|
|
262
|
+
peek: C,
|
|
263
|
+
reset: E,
|
|
264
|
+
resetPeek: A,
|
|
265
|
+
skipToPeek: b
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
const ue = void 0, ts = ".", Zt = "'", ns = "tokenizer";
|
|
269
|
+
function rs(e, t = {}) {
|
|
270
|
+
const n = t.location !== !1, r = es(e), s = () => r.index(), o = () => Hr(r.line(), r.column(), r.index()), l = o(), c = s(), u = {
|
|
271
|
+
currentType: 13,
|
|
272
|
+
offset: c,
|
|
273
|
+
startLoc: l,
|
|
274
|
+
endLoc: l,
|
|
275
|
+
lastType: 13,
|
|
276
|
+
lastOffset: c,
|
|
277
|
+
lastStartLoc: l,
|
|
278
|
+
lastEndLoc: l,
|
|
279
|
+
braceNest: 0,
|
|
280
|
+
inLinked: !1,
|
|
281
|
+
text: ""
|
|
282
|
+
}, m = () => u, { onError: I } = t;
|
|
283
|
+
function T(a, i, d, ...h) {
|
|
284
|
+
const V = m();
|
|
285
|
+
if (i.column += d, i.offset += d, I) {
|
|
286
|
+
const Y = n ? Ct(V.startLoc, i) : null, te = Fe(a, Y, {
|
|
287
|
+
domain: ns,
|
|
288
|
+
args: h
|
|
289
|
+
});
|
|
290
|
+
I(te);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
function p(a, i, d) {
|
|
294
|
+
a.endLoc = o(), a.currentType = i;
|
|
295
|
+
const h = { type: i };
|
|
296
|
+
return n && (h.loc = Ct(a.startLoc, a.endLoc)), d != null && (h.value = d), h;
|
|
297
|
+
}
|
|
298
|
+
const g = (a) => p(
|
|
299
|
+
a,
|
|
300
|
+
13
|
|
301
|
+
/* TokenTypes.EOF */
|
|
302
|
+
);
|
|
303
|
+
function P(a, i) {
|
|
304
|
+
return a.currentChar() === i ? (a.next(), i) : (T(R.EXPECTED_TOKEN, o(), 0, i), "");
|
|
305
|
+
}
|
|
306
|
+
function D(a) {
|
|
307
|
+
let i = "";
|
|
308
|
+
for (; a.currentPeek() === ie || a.currentPeek() === z; )
|
|
309
|
+
i += a.currentPeek(), a.peek();
|
|
310
|
+
return i;
|
|
311
|
+
}
|
|
312
|
+
function v(a) {
|
|
313
|
+
const i = D(a);
|
|
314
|
+
return a.skipToPeek(), i;
|
|
315
|
+
}
|
|
316
|
+
function f(a) {
|
|
317
|
+
if (a === ue)
|
|
318
|
+
return !1;
|
|
319
|
+
const i = a.charCodeAt(0);
|
|
320
|
+
return i >= 97 && i <= 122 || // a-z
|
|
321
|
+
i >= 65 && i <= 90 || // A-Z
|
|
322
|
+
i === 95;
|
|
323
|
+
}
|
|
324
|
+
function N(a) {
|
|
325
|
+
if (a === ue)
|
|
326
|
+
return !1;
|
|
327
|
+
const i = a.charCodeAt(0);
|
|
328
|
+
return i >= 48 && i <= 57;
|
|
329
|
+
}
|
|
330
|
+
function C(a, i) {
|
|
331
|
+
const { currentType: d } = i;
|
|
332
|
+
if (d !== 2)
|
|
333
|
+
return !1;
|
|
334
|
+
D(a);
|
|
335
|
+
const h = f(a.currentPeek());
|
|
336
|
+
return a.resetPeek(), h;
|
|
337
|
+
}
|
|
338
|
+
function E(a, i) {
|
|
339
|
+
const { currentType: d } = i;
|
|
340
|
+
if (d !== 2)
|
|
341
|
+
return !1;
|
|
342
|
+
D(a);
|
|
343
|
+
const h = a.currentPeek() === "-" ? a.peek() : a.currentPeek(), V = N(h);
|
|
344
|
+
return a.resetPeek(), V;
|
|
345
|
+
}
|
|
346
|
+
function A(a, i) {
|
|
347
|
+
const { currentType: d } = i;
|
|
348
|
+
if (d !== 2)
|
|
349
|
+
return !1;
|
|
350
|
+
D(a);
|
|
351
|
+
const h = a.currentPeek() === Zt;
|
|
352
|
+
return a.resetPeek(), h;
|
|
353
|
+
}
|
|
354
|
+
function b(a, i) {
|
|
355
|
+
const { currentType: d } = i;
|
|
356
|
+
if (d !== 7)
|
|
357
|
+
return !1;
|
|
358
|
+
D(a);
|
|
359
|
+
const h = a.currentPeek() === ".";
|
|
360
|
+
return a.resetPeek(), h;
|
|
361
|
+
}
|
|
362
|
+
function O(a, i) {
|
|
363
|
+
const { currentType: d } = i;
|
|
364
|
+
if (d !== 8)
|
|
365
|
+
return !1;
|
|
366
|
+
D(a);
|
|
367
|
+
const h = f(a.currentPeek());
|
|
368
|
+
return a.resetPeek(), h;
|
|
369
|
+
}
|
|
370
|
+
function x(a, i) {
|
|
371
|
+
const { currentType: d } = i;
|
|
372
|
+
if (!(d === 7 || d === 11))
|
|
373
|
+
return !1;
|
|
374
|
+
D(a);
|
|
375
|
+
const h = a.currentPeek() === ":";
|
|
376
|
+
return a.resetPeek(), h;
|
|
377
|
+
}
|
|
378
|
+
function M(a, i) {
|
|
379
|
+
const { currentType: d } = i;
|
|
380
|
+
if (d !== 9)
|
|
381
|
+
return !1;
|
|
382
|
+
const h = () => {
|
|
383
|
+
const Y = a.currentPeek();
|
|
384
|
+
return Y === "{" ? f(a.peek()) : Y === "@" || Y === "|" || Y === ":" || Y === "." || Y === ie || !Y ? !1 : Y === z ? (a.peek(), h()) : Z(a, !1);
|
|
385
|
+
}, V = h();
|
|
386
|
+
return a.resetPeek(), V;
|
|
387
|
+
}
|
|
388
|
+
function U(a) {
|
|
389
|
+
D(a);
|
|
390
|
+
const i = a.currentPeek() === "|";
|
|
391
|
+
return a.resetPeek(), i;
|
|
392
|
+
}
|
|
393
|
+
function Z(a, i = !0) {
|
|
394
|
+
const d = (V = !1, Y = "") => {
|
|
395
|
+
const te = a.currentPeek();
|
|
396
|
+
return te === "{" || te === "@" || !te ? V : te === "|" ? !(Y === ie || Y === z) : te === ie ? (a.peek(), d(!0, ie)) : te === z ? (a.peek(), d(!0, z)) : !0;
|
|
397
|
+
}, h = d();
|
|
398
|
+
return i && a.resetPeek(), h;
|
|
399
|
+
}
|
|
400
|
+
function F(a, i) {
|
|
401
|
+
const d = a.currentChar();
|
|
402
|
+
return d === ue ? ue : i(d) ? (a.next(), d) : null;
|
|
403
|
+
}
|
|
404
|
+
function oe(a) {
|
|
405
|
+
const i = a.charCodeAt(0);
|
|
406
|
+
return i >= 97 && i <= 122 || // a-z
|
|
407
|
+
i >= 65 && i <= 90 || // A-Z
|
|
408
|
+
i >= 48 && i <= 57 || // 0-9
|
|
409
|
+
i === 95 || // _
|
|
410
|
+
i === 36;
|
|
411
|
+
}
|
|
412
|
+
function Se(a) {
|
|
413
|
+
return F(a, oe);
|
|
414
|
+
}
|
|
415
|
+
function at(a) {
|
|
416
|
+
const i = a.charCodeAt(0);
|
|
417
|
+
return i >= 97 && i <= 122 || // a-z
|
|
418
|
+
i >= 65 && i <= 90 || // A-Z
|
|
419
|
+
i >= 48 && i <= 57 || // 0-9
|
|
420
|
+
i === 95 || // _
|
|
421
|
+
i === 36 || // $
|
|
422
|
+
i === 45;
|
|
423
|
+
}
|
|
424
|
+
function ot(a) {
|
|
425
|
+
return F(a, at);
|
|
426
|
+
}
|
|
427
|
+
function it(a) {
|
|
428
|
+
const i = a.charCodeAt(0);
|
|
429
|
+
return i >= 48 && i <= 57;
|
|
430
|
+
}
|
|
431
|
+
function lt(a) {
|
|
432
|
+
return F(a, it);
|
|
433
|
+
}
|
|
434
|
+
function ct(a) {
|
|
435
|
+
const i = a.charCodeAt(0);
|
|
436
|
+
return i >= 48 && i <= 57 || // 0-9
|
|
437
|
+
i >= 65 && i <= 70 || // A-F
|
|
438
|
+
i >= 97 && i <= 102;
|
|
439
|
+
}
|
|
440
|
+
function ut(a) {
|
|
441
|
+
return F(a, ct);
|
|
442
|
+
}
|
|
443
|
+
function He(a) {
|
|
444
|
+
let i = "", d = "";
|
|
445
|
+
for (; i = lt(a); )
|
|
446
|
+
d += i;
|
|
447
|
+
return d;
|
|
448
|
+
}
|
|
449
|
+
function ce(a) {
|
|
450
|
+
let i = "";
|
|
451
|
+
for (; ; ) {
|
|
452
|
+
const d = a.currentChar();
|
|
453
|
+
if (d === "\\") {
|
|
454
|
+
const h = a.peek();
|
|
455
|
+
h === "{" || h === "}" || h === "@" || h === "|" || h === "\\" ? (i += d + h, a.next(), a.next()) : (a.resetPeek(), i += d, a.next());
|
|
456
|
+
} else {
|
|
457
|
+
if (d === "{" || d === "}" || d === "@" || d === "|" || !d)
|
|
458
|
+
break;
|
|
459
|
+
if (d === ie || d === z)
|
|
460
|
+
if (Z(a))
|
|
461
|
+
i += d, a.next();
|
|
462
|
+
else {
|
|
463
|
+
if (U(a))
|
|
464
|
+
break;
|
|
465
|
+
i += d, a.next();
|
|
466
|
+
}
|
|
467
|
+
else
|
|
468
|
+
i += d, a.next();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return i;
|
|
472
|
+
}
|
|
473
|
+
function Be(a) {
|
|
474
|
+
v(a);
|
|
475
|
+
let i = "", d = "";
|
|
476
|
+
for (; i = ot(a); )
|
|
477
|
+
d += i;
|
|
478
|
+
const h = a.currentChar();
|
|
479
|
+
if (h && h !== "}" && h !== ue && h !== ie && h !== z && h !== " ") {
|
|
480
|
+
const V = Xe(a);
|
|
481
|
+
return T(R.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, d + V), d + V;
|
|
482
|
+
}
|
|
483
|
+
return a.currentChar() === ue && T(R.UNTERMINATED_CLOSING_BRACE, o(), 0), d;
|
|
484
|
+
}
|
|
485
|
+
function ft(a) {
|
|
486
|
+
v(a);
|
|
487
|
+
let i = "";
|
|
488
|
+
return a.currentChar() === "-" ? (a.next(), i += `-${He(a)}`) : i += He(a), a.currentChar() === ue && T(R.UNTERMINATED_CLOSING_BRACE, o(), 0), i;
|
|
489
|
+
}
|
|
490
|
+
function _t(a) {
|
|
491
|
+
return a !== Zt && a !== z;
|
|
492
|
+
}
|
|
493
|
+
function mt(a) {
|
|
494
|
+
v(a), P(a, "'");
|
|
495
|
+
let i = "", d = "";
|
|
496
|
+
for (; i = F(a, _t); )
|
|
497
|
+
i === "\\" ? d += dt(a) : d += i;
|
|
498
|
+
const h = a.currentChar();
|
|
499
|
+
return h === z || h === ue ? (T(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), h === z && (a.next(), P(a, "'")), d) : (P(a, "'"), d);
|
|
500
|
+
}
|
|
501
|
+
function dt(a) {
|
|
502
|
+
const i = a.currentChar();
|
|
503
|
+
switch (i) {
|
|
504
|
+
case "\\":
|
|
505
|
+
case "'":
|
|
506
|
+
return a.next(), `\\${i}`;
|
|
507
|
+
case "u":
|
|
508
|
+
return Et(a, i, 4);
|
|
509
|
+
case "U":
|
|
510
|
+
return Et(a, i, 6);
|
|
511
|
+
default:
|
|
512
|
+
return T(R.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, i), "";
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function Et(a, i, d) {
|
|
516
|
+
P(a, i);
|
|
517
|
+
let h = "";
|
|
518
|
+
for (let V = 0; V < d; V++) {
|
|
519
|
+
const Y = ut(a);
|
|
520
|
+
if (!Y) {
|
|
521
|
+
T(R.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${i}${h}${a.currentChar()}`);
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
h += Y;
|
|
525
|
+
}
|
|
526
|
+
return `\\${i}${h}`;
|
|
527
|
+
}
|
|
528
|
+
function pt(a) {
|
|
529
|
+
return a !== "{" && a !== "}" && a !== ie && a !== z;
|
|
530
|
+
}
|
|
531
|
+
function Xe(a) {
|
|
532
|
+
v(a);
|
|
533
|
+
let i = "", d = "";
|
|
534
|
+
for (; i = F(a, pt); )
|
|
535
|
+
d += i;
|
|
536
|
+
return d;
|
|
537
|
+
}
|
|
538
|
+
function Nt(a) {
|
|
539
|
+
let i = "", d = "";
|
|
540
|
+
for (; i = Se(a); )
|
|
541
|
+
d += i;
|
|
542
|
+
return d;
|
|
543
|
+
}
|
|
544
|
+
function Lt(a) {
|
|
545
|
+
const i = (d) => {
|
|
546
|
+
const h = a.currentChar();
|
|
547
|
+
return h === "{" || h === "@" || h === "|" || h === "(" || h === ")" || !h || h === ie ? d : (d += h, a.next(), i(d));
|
|
548
|
+
};
|
|
549
|
+
return i("");
|
|
550
|
+
}
|
|
551
|
+
function Ue(a) {
|
|
552
|
+
v(a);
|
|
553
|
+
const i = P(
|
|
554
|
+
a,
|
|
555
|
+
"|"
|
|
556
|
+
/* TokenChars.Pipe */
|
|
557
|
+
);
|
|
558
|
+
return v(a), i;
|
|
559
|
+
}
|
|
560
|
+
function be(a, i) {
|
|
561
|
+
let d = null;
|
|
562
|
+
switch (a.currentChar()) {
|
|
563
|
+
case "{":
|
|
564
|
+
return i.braceNest >= 1 && T(R.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), a.next(), d = p(
|
|
565
|
+
i,
|
|
566
|
+
2,
|
|
567
|
+
"{"
|
|
568
|
+
/* TokenChars.BraceLeft */
|
|
569
|
+
), v(a), i.braceNest++, d;
|
|
570
|
+
case "}":
|
|
571
|
+
return i.braceNest > 0 && i.currentType === 2 && T(R.EMPTY_PLACEHOLDER, o(), 0), a.next(), d = p(
|
|
572
|
+
i,
|
|
573
|
+
3,
|
|
574
|
+
"}"
|
|
575
|
+
/* TokenChars.BraceRight */
|
|
576
|
+
), i.braceNest--, i.braceNest > 0 && v(a), i.inLinked && i.braceNest === 0 && (i.inLinked = !1), d;
|
|
577
|
+
case "@":
|
|
578
|
+
return i.braceNest > 0 && T(R.UNTERMINATED_CLOSING_BRACE, o(), 0), d = De(a, i) || g(i), i.braceNest = 0, d;
|
|
579
|
+
default: {
|
|
580
|
+
let V = !0, Y = !0, te = !0;
|
|
581
|
+
if (U(a))
|
|
582
|
+
return i.braceNest > 0 && T(R.UNTERMINATED_CLOSING_BRACE, o(), 0), d = p(i, 1, Ue(a)), i.braceNest = 0, i.inLinked = !1, d;
|
|
583
|
+
if (i.braceNest > 0 && (i.currentType === 4 || i.currentType === 5 || i.currentType === 6))
|
|
584
|
+
return T(R.UNTERMINATED_CLOSING_BRACE, o(), 0), i.braceNest = 0, we(a, i);
|
|
585
|
+
if (V = C(a, i))
|
|
586
|
+
return d = p(i, 4, Be(a)), v(a), d;
|
|
587
|
+
if (Y = E(a, i))
|
|
588
|
+
return d = p(i, 5, ft(a)), v(a), d;
|
|
589
|
+
if (te = A(a, i))
|
|
590
|
+
return d = p(i, 6, mt(a)), v(a), d;
|
|
591
|
+
if (!V && !Y && !te)
|
|
592
|
+
return d = p(i, 12, Xe(a)), T(R.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, d.value), v(a), d;
|
|
593
|
+
break;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
return d;
|
|
597
|
+
}
|
|
598
|
+
function De(a, i) {
|
|
599
|
+
const { currentType: d } = i;
|
|
600
|
+
let h = null;
|
|
601
|
+
const V = a.currentChar();
|
|
602
|
+
switch ((d === 7 || d === 8 || d === 11 || d === 9) && (V === z || V === ie) && T(R.INVALID_LINKED_FORMAT, o(), 0), V) {
|
|
603
|
+
case "@":
|
|
604
|
+
return a.next(), h = p(
|
|
605
|
+
i,
|
|
606
|
+
7,
|
|
607
|
+
"@"
|
|
608
|
+
/* TokenChars.LinkedAlias */
|
|
609
|
+
), i.inLinked = !0, h;
|
|
610
|
+
case ".":
|
|
611
|
+
return v(a), a.next(), p(
|
|
612
|
+
i,
|
|
613
|
+
8,
|
|
614
|
+
"."
|
|
615
|
+
/* TokenChars.LinkedDot */
|
|
616
|
+
);
|
|
617
|
+
case ":":
|
|
618
|
+
return v(a), a.next(), p(
|
|
619
|
+
i,
|
|
620
|
+
9,
|
|
621
|
+
":"
|
|
622
|
+
/* TokenChars.LinkedDelimiter */
|
|
623
|
+
);
|
|
624
|
+
default:
|
|
625
|
+
return U(a) ? (h = p(i, 1, Ue(a)), i.braceNest = 0, i.inLinked = !1, h) : b(a, i) || x(a, i) ? (v(a), De(a, i)) : O(a, i) ? (v(a), p(i, 11, Nt(a))) : M(a, i) ? (v(a), V === "{" ? be(a, i) || h : p(i, 10, Lt(a))) : (d === 7 && T(R.INVALID_LINKED_FORMAT, o(), 0), i.braceNest = 0, i.inLinked = !1, we(a, i));
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
function we(a, i) {
|
|
629
|
+
let d = {
|
|
630
|
+
type: 13
|
|
631
|
+
/* TokenTypes.EOF */
|
|
632
|
+
};
|
|
633
|
+
if (i.braceNest > 0)
|
|
634
|
+
return be(a, i) || g(i);
|
|
635
|
+
if (i.inLinked)
|
|
636
|
+
return De(a, i) || g(i);
|
|
637
|
+
switch (a.currentChar()) {
|
|
638
|
+
case "{":
|
|
639
|
+
return be(a, i) || g(i);
|
|
640
|
+
case "}":
|
|
641
|
+
return T(R.UNBALANCED_CLOSING_BRACE, o(), 0), a.next(), p(
|
|
642
|
+
i,
|
|
643
|
+
3,
|
|
644
|
+
"}"
|
|
645
|
+
/* TokenChars.BraceRight */
|
|
646
|
+
);
|
|
647
|
+
case "@":
|
|
648
|
+
return De(a, i) || g(i);
|
|
649
|
+
default: {
|
|
650
|
+
if (U(a))
|
|
651
|
+
return d = p(i, 1, Ue(a)), i.braceNest = 0, i.inLinked = !1, d;
|
|
652
|
+
if (Z(a))
|
|
653
|
+
return p(i, 0, ce(a));
|
|
654
|
+
break;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return d;
|
|
658
|
+
}
|
|
659
|
+
function Ot() {
|
|
660
|
+
const { currentType: a, offset: i, startLoc: d, endLoc: h } = u;
|
|
661
|
+
return u.lastType = a, u.lastOffset = i, u.lastStartLoc = d, u.lastEndLoc = h, u.offset = s(), u.startLoc = o(), r.currentChar() === ue ? p(
|
|
662
|
+
u,
|
|
663
|
+
13
|
|
664
|
+
/* TokenTypes.EOF */
|
|
665
|
+
) : we(r, u);
|
|
666
|
+
}
|
|
667
|
+
return {
|
|
668
|
+
nextToken: Ot,
|
|
669
|
+
currentOffset: s,
|
|
670
|
+
currentPosition: o,
|
|
671
|
+
context: m
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
const ss = "parser", as = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, os = /\\([\\@{}|])/g;
|
|
675
|
+
function is(e, t) {
|
|
676
|
+
return t;
|
|
677
|
+
}
|
|
678
|
+
function ls(e, t, n) {
|
|
679
|
+
switch (e) {
|
|
680
|
+
case "\\\\":
|
|
681
|
+
return "\\";
|
|
682
|
+
// eslint-disable-next-line no-useless-escape
|
|
683
|
+
case "\\'":
|
|
684
|
+
return "'";
|
|
685
|
+
default: {
|
|
686
|
+
const r = parseInt(t || n, 16);
|
|
687
|
+
return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
function cs(e = {}) {
|
|
692
|
+
const t = e.location !== !1, { onError: n } = e;
|
|
693
|
+
function r(f, N, C, E, ...A) {
|
|
694
|
+
const b = f.currentPosition();
|
|
695
|
+
if (b.offset += E, b.column += E, n) {
|
|
696
|
+
const O = t ? Ct(C, b) : null, x = Fe(N, O, {
|
|
697
|
+
domain: ss,
|
|
698
|
+
args: A
|
|
699
|
+
});
|
|
700
|
+
n(x);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
function s(f, N, C) {
|
|
704
|
+
const E = { type: f };
|
|
705
|
+
return t && (E.start = N, E.end = N, E.loc = { start: C, end: C }), E;
|
|
706
|
+
}
|
|
707
|
+
function o(f, N, C, E) {
|
|
708
|
+
t && (f.end = N, f.loc && (f.loc.end = C));
|
|
709
|
+
}
|
|
710
|
+
function l(f, N) {
|
|
711
|
+
const C = f.context(), E = s(3, C.offset, C.startLoc);
|
|
712
|
+
return E.value = N.replace(os, is), o(E, f.currentOffset(), f.currentPosition()), E;
|
|
713
|
+
}
|
|
714
|
+
function c(f, N) {
|
|
715
|
+
const C = f.context(), { lastOffset: E, lastStartLoc: A } = C, b = s(5, E, A);
|
|
716
|
+
return b.index = parseInt(N, 10), f.nextToken(), o(b, f.currentOffset(), f.currentPosition()), b;
|
|
717
|
+
}
|
|
718
|
+
function u(f, N) {
|
|
719
|
+
const C = f.context(), { lastOffset: E, lastStartLoc: A } = C, b = s(4, E, A);
|
|
720
|
+
return b.key = N, f.nextToken(), o(b, f.currentOffset(), f.currentPosition()), b;
|
|
721
|
+
}
|
|
722
|
+
function m(f, N) {
|
|
723
|
+
const C = f.context(), { lastOffset: E, lastStartLoc: A } = C, b = s(9, E, A);
|
|
724
|
+
return b.value = N.replace(as, ls), f.nextToken(), o(b, f.currentOffset(), f.currentPosition()), b;
|
|
725
|
+
}
|
|
726
|
+
function I(f) {
|
|
727
|
+
const N = f.nextToken(), C = f.context(), { lastOffset: E, lastStartLoc: A } = C, b = s(8, E, A);
|
|
728
|
+
return N.type !== 11 ? (r(f, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, C.lastStartLoc, 0), b.value = "", o(b, E, A), {
|
|
729
|
+
nextConsumeToken: N,
|
|
730
|
+
node: b
|
|
731
|
+
}) : (N.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, le(N)), b.value = N.value || "", o(b, f.currentOffset(), f.currentPosition()), {
|
|
732
|
+
node: b
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
function T(f, N) {
|
|
736
|
+
const C = f.context(), E = s(7, C.offset, C.startLoc);
|
|
737
|
+
return E.value = N, o(E, f.currentOffset(), f.currentPosition()), E;
|
|
738
|
+
}
|
|
739
|
+
function p(f) {
|
|
740
|
+
const N = f.context(), C = s(6, N.offset, N.startLoc);
|
|
741
|
+
let E = f.nextToken();
|
|
742
|
+
if (E.type === 8) {
|
|
743
|
+
const A = I(f);
|
|
744
|
+
C.modifier = A.node, E = A.nextConsumeToken || f.nextToken();
|
|
745
|
+
}
|
|
746
|
+
switch (E.type !== 9 && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(E)), E = f.nextToken(), E.type === 2 && (E = f.nextToken()), E.type) {
|
|
747
|
+
case 10:
|
|
748
|
+
E.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(E)), C.key = T(f, E.value || "");
|
|
749
|
+
break;
|
|
750
|
+
case 4:
|
|
751
|
+
E.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(E)), C.key = u(f, E.value || "");
|
|
752
|
+
break;
|
|
753
|
+
case 5:
|
|
754
|
+
E.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(E)), C.key = c(f, E.value || "");
|
|
755
|
+
break;
|
|
756
|
+
case 6:
|
|
757
|
+
E.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(E)), C.key = m(f, E.value || "");
|
|
758
|
+
break;
|
|
759
|
+
default: {
|
|
760
|
+
r(f, R.UNEXPECTED_EMPTY_LINKED_KEY, N.lastStartLoc, 0);
|
|
761
|
+
const A = f.context(), b = s(7, A.offset, A.startLoc);
|
|
762
|
+
return b.value = "", o(b, A.offset, A.startLoc), C.key = b, o(C, A.offset, A.startLoc), {
|
|
763
|
+
nextConsumeToken: E,
|
|
764
|
+
node: C
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
return o(C, f.currentOffset(), f.currentPosition()), {
|
|
769
|
+
node: C
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function g(f) {
|
|
773
|
+
const N = f.context(), C = N.currentType === 1 ? f.currentOffset() : N.offset, E = N.currentType === 1 ? N.endLoc : N.startLoc, A = s(2, C, E);
|
|
774
|
+
A.items = [];
|
|
775
|
+
let b = null;
|
|
776
|
+
do {
|
|
777
|
+
const M = b || f.nextToken();
|
|
778
|
+
switch (b = null, M.type) {
|
|
779
|
+
case 0:
|
|
780
|
+
M.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(M)), A.items.push(l(f, M.value || ""));
|
|
781
|
+
break;
|
|
782
|
+
case 5:
|
|
783
|
+
M.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(M)), A.items.push(c(f, M.value || ""));
|
|
784
|
+
break;
|
|
785
|
+
case 4:
|
|
786
|
+
M.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(M)), A.items.push(u(f, M.value || ""));
|
|
787
|
+
break;
|
|
788
|
+
case 6:
|
|
789
|
+
M.value == null && r(f, R.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, le(M)), A.items.push(m(f, M.value || ""));
|
|
790
|
+
break;
|
|
791
|
+
case 7: {
|
|
792
|
+
const U = p(f);
|
|
793
|
+
A.items.push(U.node), b = U.nextConsumeToken || null;
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
} while (N.currentType !== 13 && N.currentType !== 1);
|
|
798
|
+
const O = N.currentType === 1 ? N.lastOffset : f.currentOffset(), x = N.currentType === 1 ? N.lastEndLoc : f.currentPosition();
|
|
799
|
+
return o(A, O, x), A;
|
|
800
|
+
}
|
|
801
|
+
function P(f, N, C, E) {
|
|
802
|
+
const A = f.context();
|
|
803
|
+
let b = E.items.length === 0;
|
|
804
|
+
const O = s(1, N, C);
|
|
805
|
+
O.cases = [], O.cases.push(E);
|
|
806
|
+
do {
|
|
807
|
+
const x = g(f);
|
|
808
|
+
b || (b = x.items.length === 0), O.cases.push(x);
|
|
809
|
+
} while (A.currentType !== 13);
|
|
810
|
+
return b && r(f, R.MUST_HAVE_MESSAGES_IN_PLURAL, C, 0), o(O, f.currentOffset(), f.currentPosition()), O;
|
|
811
|
+
}
|
|
812
|
+
function D(f) {
|
|
813
|
+
const N = f.context(), { offset: C, startLoc: E } = N, A = g(f);
|
|
814
|
+
return N.currentType === 13 ? A : P(f, C, E, A);
|
|
815
|
+
}
|
|
816
|
+
function v(f) {
|
|
817
|
+
const N = rs(f, j({}, e)), C = N.context(), E = s(0, C.offset, C.startLoc);
|
|
818
|
+
return t && E.loc && (E.loc.source = f), E.body = D(N), e.onCacheKey && (E.cacheKey = e.onCacheKey(f)), C.currentType !== 13 && r(N, R.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, f[C.offset] || ""), o(E, N.currentOffset(), N.currentPosition()), E;
|
|
819
|
+
}
|
|
820
|
+
return { parse: v };
|
|
821
|
+
}
|
|
822
|
+
function le(e) {
|
|
823
|
+
if (e.type === 13)
|
|
824
|
+
return "EOF";
|
|
825
|
+
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
826
|
+
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
827
|
+
}
|
|
828
|
+
function us(e, t = {}) {
|
|
829
|
+
const n = {
|
|
830
|
+
ast: e,
|
|
831
|
+
helpers: /* @__PURE__ */ new Set()
|
|
832
|
+
};
|
|
833
|
+
return { context: () => n, helper: (o) => (n.helpers.add(o), o) };
|
|
834
|
+
}
|
|
835
|
+
function zt(e, t) {
|
|
836
|
+
for (let n = 0; n < e.length; n++)
|
|
837
|
+
Vt(e[n], t);
|
|
838
|
+
}
|
|
839
|
+
function Vt(e, t) {
|
|
840
|
+
switch (e.type) {
|
|
841
|
+
case 1:
|
|
842
|
+
zt(e.cases, t), t.helper(
|
|
843
|
+
"plural"
|
|
844
|
+
/* HelperNameMap.PLURAL */
|
|
845
|
+
);
|
|
846
|
+
break;
|
|
847
|
+
case 2:
|
|
848
|
+
zt(e.items, t);
|
|
849
|
+
break;
|
|
850
|
+
case 6: {
|
|
851
|
+
Vt(e.key, t), t.helper(
|
|
852
|
+
"linked"
|
|
853
|
+
/* HelperNameMap.LINKED */
|
|
854
|
+
), t.helper(
|
|
855
|
+
"type"
|
|
856
|
+
/* HelperNameMap.TYPE */
|
|
857
|
+
);
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
case 5:
|
|
861
|
+
t.helper(
|
|
862
|
+
"interpolate"
|
|
863
|
+
/* HelperNameMap.INTERPOLATE */
|
|
864
|
+
), t.helper(
|
|
865
|
+
"list"
|
|
866
|
+
/* HelperNameMap.LIST */
|
|
867
|
+
);
|
|
868
|
+
break;
|
|
869
|
+
case 4:
|
|
870
|
+
t.helper(
|
|
871
|
+
"interpolate"
|
|
872
|
+
/* HelperNameMap.INTERPOLATE */
|
|
873
|
+
), t.helper(
|
|
874
|
+
"named"
|
|
875
|
+
/* HelperNameMap.NAMED */
|
|
876
|
+
);
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
function fs(e, t = {}) {
|
|
881
|
+
const n = us(e);
|
|
882
|
+
n.helper(
|
|
883
|
+
"normalize"
|
|
884
|
+
/* HelperNameMap.NORMALIZE */
|
|
885
|
+
), e.body && Vt(e.body, n);
|
|
886
|
+
const r = n.context();
|
|
887
|
+
e.helpers = Array.from(r.helpers);
|
|
888
|
+
}
|
|
889
|
+
function _s(e) {
|
|
890
|
+
const t = e.body;
|
|
891
|
+
return t.type === 2 ? en(t) : t.cases.forEach((n) => en(n)), e;
|
|
892
|
+
}
|
|
893
|
+
function en(e) {
|
|
894
|
+
if (e.items.length === 1) {
|
|
895
|
+
const t = e.items[0];
|
|
896
|
+
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
897
|
+
} else {
|
|
898
|
+
const t = [];
|
|
899
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
900
|
+
const r = e.items[n];
|
|
901
|
+
if (!(r.type === 3 || r.type === 9) || r.value == null)
|
|
902
|
+
break;
|
|
903
|
+
t.push(r.value);
|
|
904
|
+
}
|
|
905
|
+
if (t.length === e.items.length) {
|
|
906
|
+
e.static = Ut(t);
|
|
907
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
908
|
+
const r = e.items[n];
|
|
909
|
+
(r.type === 3 || r.type === 9) && delete r.value;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
const ms = "minifier";
|
|
915
|
+
function ve(e) {
|
|
916
|
+
switch (e.t = e.type, e.type) {
|
|
917
|
+
case 0: {
|
|
918
|
+
const t = e;
|
|
919
|
+
ve(t.body), t.b = t.body, delete t.body;
|
|
920
|
+
break;
|
|
921
|
+
}
|
|
922
|
+
case 1: {
|
|
923
|
+
const t = e, n = t.cases;
|
|
924
|
+
for (let r = 0; r < n.length; r++)
|
|
925
|
+
ve(n[r]);
|
|
926
|
+
t.c = n, delete t.cases;
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
|
+
case 2: {
|
|
930
|
+
const t = e, n = t.items;
|
|
931
|
+
for (let r = 0; r < n.length; r++)
|
|
932
|
+
ve(n[r]);
|
|
933
|
+
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
case 3:
|
|
937
|
+
case 9:
|
|
938
|
+
case 8:
|
|
939
|
+
case 7: {
|
|
940
|
+
const t = e;
|
|
941
|
+
t.value && (t.v = t.value, delete t.value);
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
case 6: {
|
|
945
|
+
const t = e;
|
|
946
|
+
ve(t.key), t.k = t.key, delete t.key, t.modifier && (ve(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
case 5: {
|
|
950
|
+
const t = e;
|
|
951
|
+
t.i = t.index, delete t.index;
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
case 4: {
|
|
955
|
+
const t = e;
|
|
956
|
+
t.k = t.key, delete t.key;
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
959
|
+
default:
|
|
960
|
+
if (process.env.NODE_ENV !== "production")
|
|
961
|
+
throw Fe(R.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
962
|
+
domain: ms,
|
|
963
|
+
args: [e.type]
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
delete e.type;
|
|
967
|
+
}
|
|
968
|
+
const ds = "parser";
|
|
969
|
+
function Es(e, t) {
|
|
970
|
+
const { filename: n, breakLineCode: r, needIndent: s } = t, o = t.location !== !1, l = {
|
|
971
|
+
filename: n,
|
|
972
|
+
code: "",
|
|
973
|
+
column: 1,
|
|
974
|
+
line: 1,
|
|
975
|
+
offset: 0,
|
|
976
|
+
map: void 0,
|
|
977
|
+
breakLineCode: r,
|
|
978
|
+
needIndent: s,
|
|
979
|
+
indentLevel: 0
|
|
980
|
+
};
|
|
981
|
+
o && e.loc && (l.source = e.loc.source);
|
|
982
|
+
const c = () => l;
|
|
983
|
+
function u(D, v) {
|
|
984
|
+
l.code += D;
|
|
985
|
+
}
|
|
986
|
+
function m(D, v = !0) {
|
|
987
|
+
const f = v ? r : "";
|
|
988
|
+
u(s ? f + " ".repeat(D) : f);
|
|
989
|
+
}
|
|
990
|
+
function I(D = !0) {
|
|
991
|
+
const v = ++l.indentLevel;
|
|
992
|
+
D && m(v);
|
|
993
|
+
}
|
|
994
|
+
function T(D = !0) {
|
|
995
|
+
const v = --l.indentLevel;
|
|
996
|
+
D && m(v);
|
|
997
|
+
}
|
|
998
|
+
function p() {
|
|
999
|
+
m(l.indentLevel);
|
|
1000
|
+
}
|
|
1001
|
+
return {
|
|
1002
|
+
context: c,
|
|
1003
|
+
push: u,
|
|
1004
|
+
indent: I,
|
|
1005
|
+
deindent: T,
|
|
1006
|
+
newline: p,
|
|
1007
|
+
helper: (D) => `_${D}`,
|
|
1008
|
+
needIndent: () => l.needIndent
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
function ps(e, t) {
|
|
1012
|
+
const { helper: n } = e;
|
|
1013
|
+
e.push(`${n(
|
|
1014
|
+
"linked"
|
|
1015
|
+
/* HelperNameMap.LINKED */
|
|
1016
|
+
)}(`), ke(e, t.key), t.modifier ? (e.push(", "), ke(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1017
|
+
}
|
|
1018
|
+
function Ns(e, t) {
|
|
1019
|
+
const { helper: n, needIndent: r } = e;
|
|
1020
|
+
e.push(`${n(
|
|
1021
|
+
"normalize"
|
|
1022
|
+
/* HelperNameMap.NORMALIZE */
|
|
1023
|
+
)}([`), e.indent(r());
|
|
1024
|
+
const s = t.items.length;
|
|
1025
|
+
for (let o = 0; o < s && (ke(e, t.items[o]), o !== s - 1); o++)
|
|
1026
|
+
e.push(", ");
|
|
1027
|
+
e.deindent(r()), e.push("])");
|
|
1028
|
+
}
|
|
1029
|
+
function Ls(e, t) {
|
|
1030
|
+
const { helper: n, needIndent: r } = e;
|
|
1031
|
+
if (t.cases.length > 1) {
|
|
1032
|
+
e.push(`${n(
|
|
1033
|
+
"plural"
|
|
1034
|
+
/* HelperNameMap.PLURAL */
|
|
1035
|
+
)}([`), e.indent(r());
|
|
1036
|
+
const s = t.cases.length;
|
|
1037
|
+
for (let o = 0; o < s && (ke(e, t.cases[o]), o !== s - 1); o++)
|
|
1038
|
+
e.push(", ");
|
|
1039
|
+
e.deindent(r()), e.push("])");
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
function Os(e, t) {
|
|
1043
|
+
t.body ? ke(e, t.body) : e.push("null");
|
|
1044
|
+
}
|
|
1045
|
+
function ke(e, t) {
|
|
1046
|
+
const { helper: n } = e;
|
|
1047
|
+
switch (t.type) {
|
|
1048
|
+
case 0:
|
|
1049
|
+
Os(e, t);
|
|
1050
|
+
break;
|
|
1051
|
+
case 1:
|
|
1052
|
+
Ls(e, t);
|
|
1053
|
+
break;
|
|
1054
|
+
case 2:
|
|
1055
|
+
Ns(e, t);
|
|
1056
|
+
break;
|
|
1057
|
+
case 6:
|
|
1058
|
+
ps(e, t);
|
|
1059
|
+
break;
|
|
1060
|
+
case 8:
|
|
1061
|
+
e.push(JSON.stringify(t.value), t);
|
|
1062
|
+
break;
|
|
1063
|
+
case 7:
|
|
1064
|
+
e.push(JSON.stringify(t.value), t);
|
|
1065
|
+
break;
|
|
1066
|
+
case 5:
|
|
1067
|
+
e.push(`${n(
|
|
1068
|
+
"interpolate"
|
|
1069
|
+
/* HelperNameMap.INTERPOLATE */
|
|
1070
|
+
)}(${n(
|
|
1071
|
+
"list"
|
|
1072
|
+
/* HelperNameMap.LIST */
|
|
1073
|
+
)}(${t.index}))`, t);
|
|
1074
|
+
break;
|
|
1075
|
+
case 4:
|
|
1076
|
+
e.push(`${n(
|
|
1077
|
+
"interpolate"
|
|
1078
|
+
/* HelperNameMap.INTERPOLATE */
|
|
1079
|
+
)}(${n(
|
|
1080
|
+
"named"
|
|
1081
|
+
/* HelperNameMap.NAMED */
|
|
1082
|
+
)}(${JSON.stringify(t.key)}))`, t);
|
|
1083
|
+
break;
|
|
1084
|
+
case 9:
|
|
1085
|
+
e.push(JSON.stringify(t.value), t);
|
|
1086
|
+
break;
|
|
1087
|
+
case 3:
|
|
1088
|
+
e.push(JSON.stringify(t.value), t);
|
|
1089
|
+
break;
|
|
1090
|
+
default:
|
|
1091
|
+
if (process.env.NODE_ENV !== "production")
|
|
1092
|
+
throw Fe(R.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1093
|
+
domain: ds,
|
|
1094
|
+
args: [t.type]
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
const Ts = (e, t = {}) => {
|
|
1099
|
+
const n = S(t.mode) ? t.mode : "normal", r = S(t.filename) ? t.filename : "message.intl";
|
|
1100
|
+
t.sourceMap;
|
|
1101
|
+
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1102
|
+
`, o = t.needIndent ? t.needIndent : n !== "arrow", l = e.helpers || [], c = Es(e, {
|
|
1103
|
+
filename: r,
|
|
1104
|
+
breakLineCode: s,
|
|
1105
|
+
needIndent: o
|
|
1106
|
+
});
|
|
1107
|
+
c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), l.length > 0 && (c.push(`const { ${Ut(l.map((I) => `${I}: _${I}`), ", ")} } = ctx`), c.newline()), c.push("return "), ke(c, e), c.deindent(o), c.push("}"), delete e.helpers;
|
|
1108
|
+
const { code: u, map: m } = c.context();
|
|
1109
|
+
return {
|
|
1110
|
+
ast: e,
|
|
1111
|
+
code: u,
|
|
1112
|
+
map: m ? m.toJSON() : void 0
|
|
1113
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
function gs(e, t = {}) {
|
|
1117
|
+
const n = j({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, c = cs(n).parse(e);
|
|
1118
|
+
return r ? (o && _s(c), s && ve(c), { ast: c, code: "" }) : (fs(c, n), Ts(c, n));
|
|
1119
|
+
}
|
|
1120
|
+
/*!
|
|
1121
|
+
* core-base v11.4.16
|
|
1122
|
+
* (c) 2026 kazuya kawaguchi
|
|
1123
|
+
* Released under the MIT License.
|
|
1124
|
+
*/
|
|
1125
|
+
function Is() {
|
|
1126
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1127
|
+
}
|
|
1128
|
+
function Ce(e) {
|
|
1129
|
+
return y(e) && Wt(e) === 0 && (se(e, "b") || se(e, "body"));
|
|
1130
|
+
}
|
|
1131
|
+
const vn = ["b", "body"];
|
|
1132
|
+
function As(e) {
|
|
1133
|
+
return Oe(e, vn);
|
|
1134
|
+
}
|
|
1135
|
+
const Rn = ["c", "cases"];
|
|
1136
|
+
function hs(e) {
|
|
1137
|
+
return Oe(e, Rn, []);
|
|
1138
|
+
}
|
|
1139
|
+
const yn = ["s", "static"];
|
|
1140
|
+
function Cs(e) {
|
|
1141
|
+
return Oe(e, yn);
|
|
1142
|
+
}
|
|
1143
|
+
const kn = ["i", "items"];
|
|
1144
|
+
function Ss(e) {
|
|
1145
|
+
return Oe(e, kn, []);
|
|
1146
|
+
}
|
|
1147
|
+
const Mn = ["t", "type"];
|
|
1148
|
+
function Wt(e) {
|
|
1149
|
+
return Oe(e, Mn);
|
|
1150
|
+
}
|
|
1151
|
+
const Fn = ["v", "value"];
|
|
1152
|
+
function je(e, t) {
|
|
1153
|
+
const n = Oe(e, Fn);
|
|
1154
|
+
if (n != null)
|
|
1155
|
+
return n;
|
|
1156
|
+
throw We(t);
|
|
1157
|
+
}
|
|
1158
|
+
const Un = ["m", "modifier"];
|
|
1159
|
+
function bs(e) {
|
|
1160
|
+
return Oe(e, Un);
|
|
1161
|
+
}
|
|
1162
|
+
const wn = ["k", "key"];
|
|
1163
|
+
function Ds(e) {
|
|
1164
|
+
const t = Oe(e, wn);
|
|
1165
|
+
if (t)
|
|
1166
|
+
return t;
|
|
1167
|
+
throw We(
|
|
1168
|
+
6
|
|
1169
|
+
/* NodeTypes.Linked */
|
|
1170
|
+
);
|
|
1171
|
+
}
|
|
1172
|
+
function Oe(e, t, n) {
|
|
1173
|
+
for (let r = 0; r < t.length; r++) {
|
|
1174
|
+
const s = t[r];
|
|
1175
|
+
if (se(e, s) && e[s] != null)
|
|
1176
|
+
return e[s];
|
|
1177
|
+
}
|
|
1178
|
+
return n;
|
|
1179
|
+
}
|
|
1180
|
+
const Vn = [
|
|
1181
|
+
...vn,
|
|
1182
|
+
...Rn,
|
|
1183
|
+
...yn,
|
|
1184
|
+
...kn,
|
|
1185
|
+
...wn,
|
|
1186
|
+
...Un,
|
|
1187
|
+
...Fn,
|
|
1188
|
+
...Mn
|
|
1189
|
+
];
|
|
1190
|
+
function We(e) {
|
|
1191
|
+
return new Error(`unhandled node type: ${e}`);
|
|
1192
|
+
}
|
|
1193
|
+
function gt(e) {
|
|
1194
|
+
return (n) => Ps(n, e);
|
|
1195
|
+
}
|
|
1196
|
+
function Ps(e, t) {
|
|
1197
|
+
const n = As(t);
|
|
1198
|
+
if (n == null)
|
|
1199
|
+
throw We(
|
|
1200
|
+
0
|
|
1201
|
+
/* NodeTypes.Resource */
|
|
1202
|
+
);
|
|
1203
|
+
if (Wt(n) === 1) {
|
|
1204
|
+
const o = hs(n);
|
|
1205
|
+
return e.plural(o.reduce((l, c) => [
|
|
1206
|
+
...l,
|
|
1207
|
+
tn(e, c)
|
|
1208
|
+
], []));
|
|
1209
|
+
} else
|
|
1210
|
+
return tn(e, n);
|
|
1211
|
+
}
|
|
1212
|
+
function tn(e, t) {
|
|
1213
|
+
const n = Cs(t);
|
|
1214
|
+
if (n != null)
|
|
1215
|
+
return e.type === "text" ? n : e.normalize([n]);
|
|
1216
|
+
{
|
|
1217
|
+
const r = Ss(t).reduce((s, o) => [...s, St(e, o)], []);
|
|
1218
|
+
return e.normalize(r);
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
function St(e, t) {
|
|
1222
|
+
const n = Wt(t);
|
|
1223
|
+
switch (n) {
|
|
1224
|
+
case 3:
|
|
1225
|
+
return je(t, n);
|
|
1226
|
+
case 9:
|
|
1227
|
+
return je(t, n);
|
|
1228
|
+
case 4: {
|
|
1229
|
+
const r = t;
|
|
1230
|
+
if (se(r, "k") && r.k)
|
|
1231
|
+
return e.interpolate(e.named(r.k));
|
|
1232
|
+
if (se(r, "key") && r.key)
|
|
1233
|
+
return e.interpolate(e.named(r.key));
|
|
1234
|
+
throw We(n);
|
|
1235
|
+
}
|
|
1236
|
+
case 5: {
|
|
1237
|
+
const r = t;
|
|
1238
|
+
if (se(r, "i") && X(r.i))
|
|
1239
|
+
return e.interpolate(e.list(r.i));
|
|
1240
|
+
if (se(r, "index") && X(r.index))
|
|
1241
|
+
return e.interpolate(e.list(r.index));
|
|
1242
|
+
throw We(n);
|
|
1243
|
+
}
|
|
1244
|
+
case 6: {
|
|
1245
|
+
const r = t, s = bs(r), o = Ds(r);
|
|
1246
|
+
return e.linked(St(e, o), s ? St(e, s) : void 0, e.type);
|
|
1247
|
+
}
|
|
1248
|
+
case 7:
|
|
1249
|
+
return je(t, n);
|
|
1250
|
+
case 8:
|
|
1251
|
+
return je(t, n);
|
|
1252
|
+
default:
|
|
1253
|
+
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
const vs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1257
|
+
function Rs(e, t) {
|
|
1258
|
+
t && qr(e) && ae(rt(vs, { source: e }));
|
|
1259
|
+
}
|
|
1260
|
+
const ys = (e) => e;
|
|
1261
|
+
let Je = k();
|
|
1262
|
+
function ks(e, t = {}) {
|
|
1263
|
+
let n = !1;
|
|
1264
|
+
const r = t.onError || jr;
|
|
1265
|
+
return t.onError = (s) => {
|
|
1266
|
+
n = !0, r(s);
|
|
1267
|
+
}, { ...gs(e, t), detectError: n };
|
|
1268
|
+
}
|
|
1269
|
+
// @__NO_SIDE_EFFECTS__
|
|
1270
|
+
function Ms(e, t) {
|
|
1271
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && S(e)) {
|
|
1272
|
+
const n = $(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1273
|
+
process.env.NODE_ENV !== "production" && Rs(e, n);
|
|
1274
|
+
const s = (t.onCacheKey || ys)(e), o = Je[s];
|
|
1275
|
+
if (o)
|
|
1276
|
+
return o;
|
|
1277
|
+
const { ast: l, detectError: c } = ks(e, {
|
|
1278
|
+
...t,
|
|
1279
|
+
location: process.env.NODE_ENV !== "production",
|
|
1280
|
+
jit: !0
|
|
1281
|
+
}), u = gt(l);
|
|
1282
|
+
return c ? u : Je[s] = u;
|
|
1283
|
+
} else {
|
|
1284
|
+
if (!Ce(e))
|
|
1285
|
+
return process.env.NODE_ENV !== "production" && ae(`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);
|
|
1286
|
+
const n = e.cacheKey;
|
|
1287
|
+
if (n) {
|
|
1288
|
+
const r = Je[n];
|
|
1289
|
+
return r || (Je[n] = gt(e));
|
|
1290
|
+
} else
|
|
1291
|
+
return gt(e);
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
let Ge = null;
|
|
1295
|
+
function Fs(e) {
|
|
1296
|
+
Ge = e;
|
|
1297
|
+
}
|
|
1298
|
+
function Us(e, t, n) {
|
|
1299
|
+
Ge && Ge.emit("i18n:init", {
|
|
1300
|
+
timestamp: Date.now(),
|
|
1301
|
+
i18n: e,
|
|
1302
|
+
version: t,
|
|
1303
|
+
meta: n
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
const ws = /* @__PURE__ */ Vs("function:translate");
|
|
1307
|
+
function Vs(e) {
|
|
1308
|
+
return (t) => Ge && Ge.emit(e, t);
|
|
1309
|
+
}
|
|
1310
|
+
const ee = {
|
|
1311
|
+
INVALID_ARGUMENT: Br,
|
|
1312
|
+
// 17
|
|
1313
|
+
INVALID_DATE_ARGUMENT: 18,
|
|
1314
|
+
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1315
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
1316
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1317
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1318
|
+
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1319
|
+
}, Ws = 24;
|
|
1320
|
+
function fe(e) {
|
|
1321
|
+
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages: Gs } : void 0);
|
|
1322
|
+
}
|
|
1323
|
+
const Gs = {
|
|
1324
|
+
[ee.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1325
|
+
[ee.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1326
|
+
[ee.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
1327
|
+
[ee.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
1328
|
+
[ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
1329
|
+
[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1330
|
+
[ee.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1331
|
+
};
|
|
1332
|
+
function Gt(e, t) {
|
|
1333
|
+
return t.locale != null ? nn(t.locale) : nn(e.locale);
|
|
1334
|
+
}
|
|
1335
|
+
let It;
|
|
1336
|
+
function nn(e) {
|
|
1337
|
+
if (S(e))
|
|
1338
|
+
return e;
|
|
1339
|
+
if (W(e)) {
|
|
1340
|
+
if (e.resolvedOnce && It != null)
|
|
1341
|
+
return It;
|
|
1342
|
+
if (e.constructor.name === "Function") {
|
|
1343
|
+
const t = e();
|
|
1344
|
+
if (br(t))
|
|
1345
|
+
throw fe(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1346
|
+
return It = t;
|
|
1347
|
+
} else
|
|
1348
|
+
throw fe(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1349
|
+
} else
|
|
1350
|
+
throw fe(ee.NOT_SUPPORT_LOCALE_TYPE);
|
|
1351
|
+
}
|
|
1352
|
+
function xs(e, t, n) {
|
|
1353
|
+
return [.../* @__PURE__ */ new Set([
|
|
1354
|
+
n,
|
|
1355
|
+
...G(t) ? t : y(t) ? Object.keys(t).filter((r) => r !== "default") : S(t) ? [t] : [n]
|
|
1356
|
+
])];
|
|
1357
|
+
}
|
|
1358
|
+
function Ys(e, t, n) {
|
|
1359
|
+
const r = S(n) ? n : et, s = e;
|
|
1360
|
+
let o;
|
|
1361
|
+
y(t) ? (s.__localeChainObjectCache || (s.__localeChainObjectCache = /* @__PURE__ */ new WeakMap()), o = s.__localeChainObjectCache.get(t), o || (o = /* @__PURE__ */ new Map(), s.__localeChainObjectCache.set(t, o))) : (s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map()), o = s.__localeChainCache.get(t), o || (o = /* @__PURE__ */ new Map(), s.__localeChainCache.set(t, o)));
|
|
1362
|
+
const l = o.get(r);
|
|
1363
|
+
if (l)
|
|
1364
|
+
return l;
|
|
1365
|
+
const c = [];
|
|
1366
|
+
let u = [n];
|
|
1367
|
+
for (; G(u); )
|
|
1368
|
+
u = rn(c, u, t);
|
|
1369
|
+
const m = G(t) || !K(t) ? t : t.default ? t.default : null;
|
|
1370
|
+
return u = S(m) ? [m] : m, G(u) && rn(c, u, !1), o.set(r, c), c;
|
|
1371
|
+
}
|
|
1372
|
+
function rn(e, t, n) {
|
|
1373
|
+
let r = !0;
|
|
1374
|
+
for (let s = 0; s < t.length && $(r); s++) {
|
|
1375
|
+
const o = t[s];
|
|
1376
|
+
S(o) && (r = $s(e, t[s], n));
|
|
1377
|
+
}
|
|
1378
|
+
return r;
|
|
1379
|
+
}
|
|
1380
|
+
function $s(e, t, n) {
|
|
1381
|
+
let r;
|
|
1382
|
+
const s = t.split("-");
|
|
1383
|
+
do {
|
|
1384
|
+
const o = s.join("-");
|
|
1385
|
+
r = Ks(e, o, n), s.splice(-1, 1);
|
|
1386
|
+
} while (s.length && r === !0);
|
|
1387
|
+
return r;
|
|
1388
|
+
}
|
|
1389
|
+
function Ks(e, t, n) {
|
|
1390
|
+
let r = !1;
|
|
1391
|
+
if (!e.includes(t) && (r = !0, t)) {
|
|
1392
|
+
r = t[t.length - 1] !== "!";
|
|
1393
|
+
const s = t.replace(/!/g, "");
|
|
1394
|
+
e.push(s), (G(n) || K(n)) && n[s] && (r = n[s]);
|
|
1395
|
+
}
|
|
1396
|
+
return r;
|
|
1397
|
+
}
|
|
1398
|
+
const Te = [];
|
|
1399
|
+
Te[
|
|
1400
|
+
0
|
|
1401
|
+
/* States.BEFORE_PATH */
|
|
1402
|
+
] = {
|
|
1403
|
+
w: [
|
|
1404
|
+
0
|
|
1405
|
+
/* States.BEFORE_PATH */
|
|
1406
|
+
],
|
|
1407
|
+
i: [
|
|
1408
|
+
3,
|
|
1409
|
+
0
|
|
1410
|
+
/* Actions.APPEND */
|
|
1411
|
+
],
|
|
1412
|
+
"[": [
|
|
1413
|
+
4
|
|
1414
|
+
/* States.IN_SUB_PATH */
|
|
1415
|
+
],
|
|
1416
|
+
o: [
|
|
1417
|
+
7
|
|
1418
|
+
/* States.AFTER_PATH */
|
|
1419
|
+
]
|
|
1420
|
+
};
|
|
1421
|
+
Te[
|
|
1422
|
+
1
|
|
1423
|
+
/* States.IN_PATH */
|
|
1424
|
+
] = {
|
|
1425
|
+
w: [
|
|
1426
|
+
1
|
|
1427
|
+
/* States.IN_PATH */
|
|
1428
|
+
],
|
|
1429
|
+
".": [
|
|
1430
|
+
2
|
|
1431
|
+
/* States.BEFORE_IDENT */
|
|
1432
|
+
],
|
|
1433
|
+
"[": [
|
|
1434
|
+
4
|
|
1435
|
+
/* States.IN_SUB_PATH */
|
|
1436
|
+
],
|
|
1437
|
+
o: [
|
|
1438
|
+
7
|
|
1439
|
+
/* States.AFTER_PATH */
|
|
1440
|
+
]
|
|
1441
|
+
};
|
|
1442
|
+
Te[
|
|
1443
|
+
2
|
|
1444
|
+
/* States.BEFORE_IDENT */
|
|
1445
|
+
] = {
|
|
1446
|
+
w: [
|
|
1447
|
+
2
|
|
1448
|
+
/* States.BEFORE_IDENT */
|
|
1449
|
+
],
|
|
1450
|
+
i: [
|
|
1451
|
+
3,
|
|
1452
|
+
0
|
|
1453
|
+
/* Actions.APPEND */
|
|
1454
|
+
],
|
|
1455
|
+
0: [
|
|
1456
|
+
3,
|
|
1457
|
+
0
|
|
1458
|
+
/* Actions.APPEND */
|
|
1459
|
+
]
|
|
1460
|
+
};
|
|
1461
|
+
Te[
|
|
1462
|
+
3
|
|
1463
|
+
/* States.IN_IDENT */
|
|
1464
|
+
] = {
|
|
1465
|
+
i: [
|
|
1466
|
+
3,
|
|
1467
|
+
0
|
|
1468
|
+
/* Actions.APPEND */
|
|
1469
|
+
],
|
|
1470
|
+
0: [
|
|
1471
|
+
3,
|
|
1472
|
+
0
|
|
1473
|
+
/* Actions.APPEND */
|
|
1474
|
+
],
|
|
1475
|
+
w: [
|
|
1476
|
+
1,
|
|
1477
|
+
1
|
|
1478
|
+
/* Actions.PUSH */
|
|
1479
|
+
],
|
|
1480
|
+
".": [
|
|
1481
|
+
2,
|
|
1482
|
+
1
|
|
1483
|
+
/* Actions.PUSH */
|
|
1484
|
+
],
|
|
1485
|
+
"[": [
|
|
1486
|
+
4,
|
|
1487
|
+
1
|
|
1488
|
+
/* Actions.PUSH */
|
|
1489
|
+
],
|
|
1490
|
+
o: [
|
|
1491
|
+
7,
|
|
1492
|
+
1
|
|
1493
|
+
/* Actions.PUSH */
|
|
1494
|
+
]
|
|
1495
|
+
};
|
|
1496
|
+
Te[
|
|
1497
|
+
4
|
|
1498
|
+
/* States.IN_SUB_PATH */
|
|
1499
|
+
] = {
|
|
1500
|
+
"'": [
|
|
1501
|
+
5,
|
|
1502
|
+
0
|
|
1503
|
+
/* Actions.APPEND */
|
|
1504
|
+
],
|
|
1505
|
+
'"': [
|
|
1506
|
+
6,
|
|
1507
|
+
0
|
|
1508
|
+
/* Actions.APPEND */
|
|
1509
|
+
],
|
|
1510
|
+
"[": [
|
|
1511
|
+
4,
|
|
1512
|
+
2
|
|
1513
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1514
|
+
],
|
|
1515
|
+
"]": [
|
|
1516
|
+
1,
|
|
1517
|
+
3
|
|
1518
|
+
/* Actions.PUSH_SUB_PATH */
|
|
1519
|
+
],
|
|
1520
|
+
o: 8,
|
|
1521
|
+
l: [
|
|
1522
|
+
4,
|
|
1523
|
+
0
|
|
1524
|
+
/* Actions.APPEND */
|
|
1525
|
+
]
|
|
1526
|
+
};
|
|
1527
|
+
Te[
|
|
1528
|
+
5
|
|
1529
|
+
/* States.IN_SINGLE_QUOTE */
|
|
1530
|
+
] = {
|
|
1531
|
+
"'": [
|
|
1532
|
+
4,
|
|
1533
|
+
0
|
|
1534
|
+
/* Actions.APPEND */
|
|
1535
|
+
],
|
|
1536
|
+
o: 8,
|
|
1537
|
+
l: [
|
|
1538
|
+
5,
|
|
1539
|
+
0
|
|
1540
|
+
/* Actions.APPEND */
|
|
1541
|
+
]
|
|
1542
|
+
};
|
|
1543
|
+
Te[
|
|
1544
|
+
6
|
|
1545
|
+
/* States.IN_DOUBLE_QUOTE */
|
|
1546
|
+
] = {
|
|
1547
|
+
'"': [
|
|
1548
|
+
4,
|
|
1549
|
+
0
|
|
1550
|
+
/* Actions.APPEND */
|
|
1551
|
+
],
|
|
1552
|
+
o: 8,
|
|
1553
|
+
l: [
|
|
1554
|
+
6,
|
|
1555
|
+
0
|
|
1556
|
+
/* Actions.APPEND */
|
|
1557
|
+
]
|
|
1558
|
+
};
|
|
1559
|
+
const Hs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1560
|
+
function Bs(e) {
|
|
1561
|
+
return Hs.test(e);
|
|
1562
|
+
}
|
|
1563
|
+
function Xs(e) {
|
|
1564
|
+
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1565
|
+
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1566
|
+
}
|
|
1567
|
+
function js(e) {
|
|
1568
|
+
if (e == null)
|
|
1569
|
+
return "o";
|
|
1570
|
+
switch (e.charCodeAt(0)) {
|
|
1571
|
+
case 91:
|
|
1572
|
+
// [
|
|
1573
|
+
case 93:
|
|
1574
|
+
// ]
|
|
1575
|
+
case 46:
|
|
1576
|
+
// .
|
|
1577
|
+
case 34:
|
|
1578
|
+
// "
|
|
1579
|
+
case 39:
|
|
1580
|
+
return e;
|
|
1581
|
+
case 95:
|
|
1582
|
+
// _
|
|
1583
|
+
case 36:
|
|
1584
|
+
// $
|
|
1585
|
+
case 45:
|
|
1586
|
+
return "i";
|
|
1587
|
+
case 9:
|
|
1588
|
+
// Tab (HT)
|
|
1589
|
+
case 10:
|
|
1590
|
+
// Newline (LF)
|
|
1591
|
+
case 13:
|
|
1592
|
+
// Return (CR)
|
|
1593
|
+
case 160:
|
|
1594
|
+
// No-break space (NBSP)
|
|
1595
|
+
case 65279:
|
|
1596
|
+
// Byte Order Mark (BOM)
|
|
1597
|
+
case 8232:
|
|
1598
|
+
// Line Separator (LS)
|
|
1599
|
+
case 8233:
|
|
1600
|
+
return "w";
|
|
1601
|
+
}
|
|
1602
|
+
return "i";
|
|
1603
|
+
}
|
|
1604
|
+
function Js(e) {
|
|
1605
|
+
const t = e.trim();
|
|
1606
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Bs(t) ? Xs(t) : "*" + t;
|
|
1607
|
+
}
|
|
1608
|
+
function qs(e) {
|
|
1609
|
+
const t = [];
|
|
1610
|
+
let n = -1, r = 0, s = 0, o, l, c, u, m, I, T;
|
|
1611
|
+
const p = [];
|
|
1612
|
+
p[
|
|
1613
|
+
0
|
|
1614
|
+
/* Actions.APPEND */
|
|
1615
|
+
] = () => {
|
|
1616
|
+
l === void 0 ? l = c : l += c;
|
|
1617
|
+
}, p[
|
|
1618
|
+
1
|
|
1619
|
+
/* Actions.PUSH */
|
|
1620
|
+
] = () => {
|
|
1621
|
+
l !== void 0 && (t.push(l), l = void 0);
|
|
1622
|
+
}, p[
|
|
1623
|
+
2
|
|
1624
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1625
|
+
] = () => {
|
|
1626
|
+
p[
|
|
1627
|
+
0
|
|
1628
|
+
/* Actions.APPEND */
|
|
1629
|
+
](), s++;
|
|
1630
|
+
}, p[
|
|
1631
|
+
3
|
|
1632
|
+
/* Actions.PUSH_SUB_PATH */
|
|
1633
|
+
] = () => {
|
|
1634
|
+
if (s > 0)
|
|
1635
|
+
s--, r = 4, p[
|
|
1636
|
+
0
|
|
1637
|
+
/* Actions.APPEND */
|
|
1638
|
+
]();
|
|
1639
|
+
else {
|
|
1640
|
+
if (s = 0, l === void 0 || (l = Js(l), l === !1))
|
|
1641
|
+
return !1;
|
|
1642
|
+
p[
|
|
1643
|
+
1
|
|
1644
|
+
/* Actions.PUSH */
|
|
1645
|
+
]();
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1648
|
+
function g() {
|
|
1649
|
+
const P = e[n + 1];
|
|
1650
|
+
if (r === 5 && P === "'" || r === 6 && P === '"')
|
|
1651
|
+
return n++, c = "\\" + P, p[
|
|
1652
|
+
0
|
|
1653
|
+
/* Actions.APPEND */
|
|
1654
|
+
](), !0;
|
|
1655
|
+
}
|
|
1656
|
+
for (; r !== null; )
|
|
1657
|
+
if (n++, o = e[n], !(o === "\\" && g())) {
|
|
1658
|
+
if (u = js(o), T = Te[r], m = T[u] || T.l || 8, m === 8 || (r = m[0], m[1] !== void 0 && (I = p[m[1]], I && (c = o, I() === !1))))
|
|
1659
|
+
return;
|
|
1660
|
+
if (r === 7)
|
|
1661
|
+
return t;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
const sn = /* @__PURE__ */ new Map();
|
|
1665
|
+
function Qs(e, t) {
|
|
1666
|
+
return y(e) ? Q(e, t) : null;
|
|
1667
|
+
}
|
|
1668
|
+
function Zs(e, t) {
|
|
1669
|
+
if (!y(e))
|
|
1670
|
+
return null;
|
|
1671
|
+
let n = sn.get(t);
|
|
1672
|
+
if (n || (n = qs(t), n && sn.set(t, n)), !n)
|
|
1673
|
+
return null;
|
|
1674
|
+
const r = n.length;
|
|
1675
|
+
let s = e, o = 0;
|
|
1676
|
+
for (; o < r; ) {
|
|
1677
|
+
const l = n[o];
|
|
1678
|
+
if (Vn.includes(l) && Ce(s) || !y(s) || !se(s, l))
|
|
1679
|
+
return null;
|
|
1680
|
+
const c = s[l];
|
|
1681
|
+
if (c === void 0 || W(s))
|
|
1682
|
+
return null;
|
|
1683
|
+
s = c, o++;
|
|
1684
|
+
}
|
|
1685
|
+
return s;
|
|
1686
|
+
}
|
|
1687
|
+
const q = {
|
|
1688
|
+
NOT_FOUND_KEY: 1,
|
|
1689
|
+
FALLBACK_TO_TRANSLATE: 2,
|
|
1690
|
+
CANNOT_FORMAT_NUMBER: 3,
|
|
1691
|
+
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
1692
|
+
CANNOT_FORMAT_DATE: 5,
|
|
1693
|
+
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1694
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
|
|
1695
|
+
INVALID_NUMBER_ARGUMENT: 8,
|
|
1696
|
+
INVALID_DATE_ARGUMENT: 9
|
|
1697
|
+
}, Ie = 10, zs = {
|
|
1698
|
+
[q.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale {resource}.",
|
|
1699
|
+
[q.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1700
|
+
[q.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1701
|
+
[q.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1702
|
+
[q.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1703
|
+
[q.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1704
|
+
[q.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",
|
|
1705
|
+
[q.INVALID_NUMBER_ARGUMENT]: "Invalid argument for number formatting: expected a number but received '{value}'.",
|
|
1706
|
+
[q.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
1707
|
+
};
|
|
1708
|
+
function Le(e, ...t) {
|
|
1709
|
+
return rt(zs[e], ...t);
|
|
1710
|
+
}
|
|
1711
|
+
const ea = "11.4.16", st = -1, et = "en-US", Me = "", an = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1712
|
+
function ta() {
|
|
1713
|
+
return {
|
|
1714
|
+
upper: (e, t) => t === "text" && S(e) ? e.toUpperCase() : t === "vnode" && y(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1715
|
+
lower: (e, t) => t === "text" && S(e) ? e.toLowerCase() : t === "vnode" && y(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1716
|
+
capitalize: (e, t) => t === "text" && S(e) ? an(e) : t === "vnode" && y(e) && "__v_isVNode" in e ? an(e.children) : e
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
let Wn;
|
|
1720
|
+
function na(e) {
|
|
1721
|
+
Wn = e;
|
|
1722
|
+
}
|
|
1723
|
+
let Gn;
|
|
1724
|
+
function ra(e) {
|
|
1725
|
+
Gn = e;
|
|
1726
|
+
}
|
|
1727
|
+
let xn;
|
|
1728
|
+
function sa(e) {
|
|
1729
|
+
xn = e;
|
|
1730
|
+
}
|
|
1731
|
+
let Yn = null;
|
|
1732
|
+
const aa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1733
|
+
Yn = e;
|
|
1734
|
+
}, oa = /* @__NO_SIDE_EFFECTS__ */ () => Yn;
|
|
1735
|
+
let $n = null;
|
|
1736
|
+
const on = (e) => {
|
|
1737
|
+
$n = e;
|
|
1738
|
+
}, ia = () => $n;
|
|
1739
|
+
let ln = 0;
|
|
1740
|
+
function la(e = {}) {
|
|
1741
|
+
const t = W(e.onWarn) ? e.onWarn : ae, n = S(e.version) ? e.version : ea, r = S(e.locale) || W(e.locale) ? e.locale : et, s = W(r) ? et : r, o = G(e.fallbackLocale) || K(e.fallbackLocale) || S(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, l = K(e.messages) ? e.messages : At(s), c = K(e.datetimeFormats) ? e.datetimeFormats : At(s), u = K(e.numberFormats) ? e.numberFormats : At(s), m = j(k(), e.modifiers, ta()), I = e.pluralRules || k(), T = W(e.missing) ? e.missing : null, p = $(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, g = $(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, D = !!e.unresolving, v = W(e.postTranslation) ? e.postTranslation : null, f = K(e.processor) ? e.processor : null, N = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, C = !!e.escapeParameter, E = W(e.messageCompiler) ? e.messageCompiler : Wn;
|
|
1742
|
+
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && Dn(Le(q.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1743
|
+
const A = W(e.messageResolver) ? e.messageResolver : Gn || Qs, b = W(e.localeFallbacker) ? e.localeFallbacker : xn || xs, O = y(e.fallbackContext) ? e.fallbackContext : void 0, x = e, M = y(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), U = y(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), Z = y(x.__meta) ? x.__meta : {};
|
|
1744
|
+
ln++;
|
|
1745
|
+
const F = {
|
|
1746
|
+
version: n,
|
|
1747
|
+
cid: ln,
|
|
1748
|
+
locale: r,
|
|
1749
|
+
fallbackLocale: o,
|
|
1750
|
+
messages: l,
|
|
1751
|
+
modifiers: m,
|
|
1752
|
+
pluralRules: I,
|
|
1753
|
+
missing: T,
|
|
1754
|
+
missingWarn: p,
|
|
1755
|
+
fallbackWarn: g,
|
|
1756
|
+
fallbackFormat: P,
|
|
1757
|
+
unresolving: D,
|
|
1758
|
+
postTranslation: v,
|
|
1759
|
+
processor: f,
|
|
1760
|
+
warnHtmlMessage: N,
|
|
1761
|
+
escapeParameter: C,
|
|
1762
|
+
messageCompiler: E,
|
|
1763
|
+
messageResolver: A,
|
|
1764
|
+
localeFallbacker: b,
|
|
1765
|
+
fallbackContext: O,
|
|
1766
|
+
onWarn: t,
|
|
1767
|
+
__meta: Z
|
|
1768
|
+
};
|
|
1769
|
+
return F.datetimeFormats = c, F.numberFormats = u, F.__datetimeFormatters = M, F.__numberFormatters = U, process.env.NODE_ENV !== "production" && (F.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Us(F, n, Z), F;
|
|
1770
|
+
}
|
|
1771
|
+
const At = (e) => ({ [e]: k() });
|
|
1772
|
+
function xt(e, t) {
|
|
1773
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1774
|
+
}
|
|
1775
|
+
function Kn(e, t) {
|
|
1776
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1777
|
+
}
|
|
1778
|
+
function Hn(e, t, n, r, s) {
|
|
1779
|
+
const { missing: o, onWarn: l } = e;
|
|
1780
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1781
|
+
const c = e.__v_emitter;
|
|
1782
|
+
c && c.emit("missing", {
|
|
1783
|
+
locale: n,
|
|
1784
|
+
key: t,
|
|
1785
|
+
type: s,
|
|
1786
|
+
groupId: Ne(s, t)
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
if (o !== null) {
|
|
1790
|
+
const c = o(e, n, t, s);
|
|
1791
|
+
return S(c) ? c : t;
|
|
1792
|
+
} else
|
|
1793
|
+
return process.env.NODE_ENV !== "production" && Kn(r, t) && l(Le(q.NOT_FOUND_KEY, {
|
|
1794
|
+
key: t,
|
|
1795
|
+
locale: n,
|
|
1796
|
+
resource: s === "datetime format" ? "datetime formats" : s === "number format" ? "number formats" : "messages"
|
|
1797
|
+
})), t;
|
|
1798
|
+
}
|
|
1799
|
+
function cn(e, t) {
|
|
1800
|
+
var r, s;
|
|
1801
|
+
const n = e;
|
|
1802
|
+
y(t) ? (r = n.__localeChainObjectCache) == null || r.delete(t) : (s = n.__localeChainCache) == null || s.delete(t);
|
|
1803
|
+
}
|
|
1804
|
+
function qe(e, t, n) {
|
|
1805
|
+
cn(e, n), e.fallbackContext && cn(e.fallbackContext, n), e.localeFallbacker(e, n, t);
|
|
1806
|
+
}
|
|
1807
|
+
function Bn(e, t) {
|
|
1808
|
+
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1809
|
+
}
|
|
1810
|
+
function ca(e, t) {
|
|
1811
|
+
const n = t.indexOf(e);
|
|
1812
|
+
if (n === -1)
|
|
1813
|
+
return !1;
|
|
1814
|
+
for (let r = n + 1; r < t.length; r++)
|
|
1815
|
+
if (Bn(e, t[r]))
|
|
1816
|
+
return !0;
|
|
1817
|
+
return !1;
|
|
1818
|
+
}
|
|
1819
|
+
function Xn(e, t, n, r, s, o, l) {
|
|
1820
|
+
const { fallbackLocale: c, localeFallbacker: u, onWarn: m } = e, I = u(
|
|
1821
|
+
e,
|
|
1822
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1823
|
+
c,
|
|
1824
|
+
n
|
|
1825
|
+
);
|
|
1826
|
+
let T = n;
|
|
1827
|
+
for (let p = 0; p < I.length; p++) {
|
|
1828
|
+
const g = I[p];
|
|
1829
|
+
if (process.env.NODE_ENV !== "production" && n !== g && xt(o, t) && m(Le(l === "datetime format" ? q.FALLBACK_TO_DATE_FORMAT : q.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1830
|
+
key: t,
|
|
1831
|
+
target: g
|
|
1832
|
+
})), process.env.NODE_ENV !== "production" && n !== g) {
|
|
1833
|
+
const D = e.__v_emitter;
|
|
1834
|
+
D && D.emit("fallback", {
|
|
1835
|
+
type: l,
|
|
1836
|
+
key: t,
|
|
1837
|
+
from: T,
|
|
1838
|
+
to: g,
|
|
1839
|
+
groupId: Ne(l, t)
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
const P = Q(Q(r, g) || {}, t);
|
|
1843
|
+
if (K(P) && S(g))
|
|
1844
|
+
return g;
|
|
1845
|
+
Hn(e, t, g, s, l), T = g;
|
|
1846
|
+
}
|
|
1847
|
+
return null;
|
|
1848
|
+
}
|
|
1849
|
+
function jn(e, t, n) {
|
|
1850
|
+
let r = `${e}__${t}`;
|
|
1851
|
+
return K(n) && !Mt(n) && (r = `${r}__${JSON.stringify(n)}`), r;
|
|
1852
|
+
}
|
|
1853
|
+
function Jn(e, t, n) {
|
|
1854
|
+
for (const r in n) {
|
|
1855
|
+
const s = `${t}__${r}`;
|
|
1856
|
+
for (const o of e.keys())
|
|
1857
|
+
(o === s || o.startsWith(`${s}__`)) && e.delete(o);
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
function qn(e, t, n, r) {
|
|
1861
|
+
const [, s, o, l] = e;
|
|
1862
|
+
let c = n;
|
|
1863
|
+
return S(s) ? t.key = s : K(s) && Object.keys(s).forEach((u) => {
|
|
1864
|
+
r.includes(u) ? c[u] = s[u] : t[u] = s[u];
|
|
1865
|
+
}), S(o) ? t.locale = o : K(o) && (c = o), K(l) && (c = l), c;
|
|
1866
|
+
}
|
|
1867
|
+
const un = typeof Intl < "u", Qn = {
|
|
1868
|
+
dateTimeFormat: un && typeof Intl.DateTimeFormat < "u",
|
|
1869
|
+
numberFormat: un && typeof Intl.NumberFormat < "u"
|
|
1870
|
+
};
|
|
1871
|
+
function fn(e, ...t) {
|
|
1872
|
+
const { datetimeFormats: n, unresolving: r, onWarn: s } = e, { __datetimeFormatters: o } = e;
|
|
1873
|
+
if (process.env.NODE_ENV !== "production" && !Qn.dateTimeFormat)
|
|
1874
|
+
return s(Le(q.CANNOT_FORMAT_DATE)), Me;
|
|
1875
|
+
if (!S(t[0]) && !Cn(t[0]) && !X(t[0]))
|
|
1876
|
+
return process.env.NODE_ENV !== "production" && s(Le(q.INVALID_DATE_ARGUMENT, {
|
|
1877
|
+
value: String(t[0])
|
|
1878
|
+
})), Me;
|
|
1879
|
+
const [l, c, u, m] = bt(...t), I = $(u.missingWarn) ? u.missingWarn : e.missingWarn, T = $(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = !!u.part, g = Gt(e, u);
|
|
1880
|
+
if (!S(l) || l === "") {
|
|
1881
|
+
const N = new Intl.DateTimeFormat(g.replace(/!/g, ""), m);
|
|
1882
|
+
return p ? N.formatToParts(c) : N.format(c);
|
|
1883
|
+
}
|
|
1884
|
+
const P = Xn(e, l, g, n, I, T, "datetime format");
|
|
1885
|
+
if (!S(P))
|
|
1886
|
+
return r ? st : l;
|
|
1887
|
+
const D = n[P][l], v = jn(P, l, m);
|
|
1888
|
+
let f = o.get(v);
|
|
1889
|
+
return f || (f = new Intl.DateTimeFormat(P, j({}, D, m)), o.set(v, f)), p ? f.formatToParts(c) : f.format(c);
|
|
1890
|
+
}
|
|
1891
|
+
const Zn = [
|
|
1892
|
+
"localeMatcher",
|
|
1893
|
+
"weekday",
|
|
1894
|
+
"era",
|
|
1895
|
+
"year",
|
|
1896
|
+
"month",
|
|
1897
|
+
"day",
|
|
1898
|
+
"hour",
|
|
1899
|
+
"minute",
|
|
1900
|
+
"second",
|
|
1901
|
+
"timeZoneName",
|
|
1902
|
+
"formatMatcher",
|
|
1903
|
+
"hour12",
|
|
1904
|
+
"timeZone",
|
|
1905
|
+
"dateStyle",
|
|
1906
|
+
"timeStyle",
|
|
1907
|
+
"calendar",
|
|
1908
|
+
"dayPeriod",
|
|
1909
|
+
"numberingSystem",
|
|
1910
|
+
"hourCycle",
|
|
1911
|
+
"fractionalSecondDigits"
|
|
1912
|
+
];
|
|
1913
|
+
function bt(...e) {
|
|
1914
|
+
const [t] = e, n = k(), r = k();
|
|
1915
|
+
let s;
|
|
1916
|
+
if (S(t)) {
|
|
1917
|
+
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1918
|
+
if (!l)
|
|
1919
|
+
throw fe(ee.INVALID_ISO_DATE_ARGUMENT);
|
|
1920
|
+
const c = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
|
1921
|
+
s = new Date(c);
|
|
1922
|
+
try {
|
|
1923
|
+
s.toISOString();
|
|
1924
|
+
} catch {
|
|
1925
|
+
throw fe(ee.INVALID_ISO_DATE_ARGUMENT);
|
|
1926
|
+
}
|
|
1927
|
+
} else if (Cn(t)) {
|
|
1928
|
+
if (isNaN(t.getTime()))
|
|
1929
|
+
throw fe(ee.INVALID_DATE_ARGUMENT);
|
|
1930
|
+
s = t;
|
|
1931
|
+
} else if (X(t))
|
|
1932
|
+
s = t;
|
|
1933
|
+
else
|
|
1934
|
+
throw fe(ee.INVALID_ARGUMENT);
|
|
1935
|
+
const o = qn(e, n, r, Zn);
|
|
1936
|
+
return [n.key || "", s, n, o];
|
|
1937
|
+
}
|
|
1938
|
+
function _n(e, t, n) {
|
|
1939
|
+
Jn(e.__datetimeFormatters, t, n);
|
|
1940
|
+
}
|
|
1941
|
+
function mn(e, ...t) {
|
|
1942
|
+
const { numberFormats: n, unresolving: r, onWarn: s } = e, { __numberFormatters: o } = e;
|
|
1943
|
+
if (process.env.NODE_ENV !== "production" && !Qn.numberFormat)
|
|
1944
|
+
return s(Le(q.CANNOT_FORMAT_NUMBER)), Me;
|
|
1945
|
+
if (!X(t[0]))
|
|
1946
|
+
return process.env.NODE_ENV !== "production" && s(Le(q.INVALID_NUMBER_ARGUMENT, {
|
|
1947
|
+
value: String(t[0])
|
|
1948
|
+
})), Me;
|
|
1949
|
+
const [l, c, u, m] = Dt(...t), I = $(u.missingWarn) ? u.missingWarn : e.missingWarn, T = $(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = !!u.part, g = Gt(e, u);
|
|
1950
|
+
if (!S(l) || l === "") {
|
|
1951
|
+
const N = new Intl.NumberFormat(g.replace(/!/g, ""), m);
|
|
1952
|
+
return p ? N.formatToParts(c) : N.format(c);
|
|
1953
|
+
}
|
|
1954
|
+
const P = Xn(e, l, g, n, I, T, "number format");
|
|
1955
|
+
if (!S(P))
|
|
1956
|
+
return r ? st : l;
|
|
1957
|
+
const D = n[P][l], v = jn(P, l, m);
|
|
1958
|
+
let f = o.get(v);
|
|
1959
|
+
return f || (f = new Intl.NumberFormat(P, j({}, D, m)), o.set(v, f)), p ? f.formatToParts(c) : f.format(c);
|
|
1960
|
+
}
|
|
1961
|
+
const zn = [
|
|
1962
|
+
"localeMatcher",
|
|
1963
|
+
"style",
|
|
1964
|
+
"currency",
|
|
1965
|
+
"currencyDisplay",
|
|
1966
|
+
"currencySign",
|
|
1967
|
+
"useGrouping",
|
|
1968
|
+
"minimumIntegerDigits",
|
|
1969
|
+
"minimumFractionDigits",
|
|
1970
|
+
"maximumFractionDigits",
|
|
1971
|
+
"minimumSignificantDigits",
|
|
1972
|
+
"maximumSignificantDigits",
|
|
1973
|
+
"compactDisplay",
|
|
1974
|
+
"notation",
|
|
1975
|
+
"signDisplay",
|
|
1976
|
+
"unit",
|
|
1977
|
+
"unitDisplay",
|
|
1978
|
+
"roundingMode",
|
|
1979
|
+
"roundingPriority",
|
|
1980
|
+
"roundingIncrement",
|
|
1981
|
+
"trailingZeroDisplay"
|
|
1982
|
+
];
|
|
1983
|
+
function Dt(...e) {
|
|
1984
|
+
const [t] = e, n = k(), r = k();
|
|
1985
|
+
if (!X(t))
|
|
1986
|
+
throw fe(ee.INVALID_ARGUMENT);
|
|
1987
|
+
const s = t, o = qn(e, n, r, zn);
|
|
1988
|
+
return [n.key || "", s, n, o];
|
|
1989
|
+
}
|
|
1990
|
+
function dn(e, t, n) {
|
|
1991
|
+
Jn(e.__numberFormatters, t, n);
|
|
1992
|
+
}
|
|
1993
|
+
const ua = (e) => e, fa = (e) => "", _a = "text", ma = (e) => e.length === 0 ? "" : Ut(e), da = Dr;
|
|
1994
|
+
function ht(e, t) {
|
|
1995
|
+
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
1996
|
+
}
|
|
1997
|
+
function Ea(e) {
|
|
1998
|
+
var n, r;
|
|
1999
|
+
const t = X(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2000
|
+
return X((n = e.named) == null ? void 0 : n.count) ? e.named.count : X((r = e.named) == null ? void 0 : r.n) ? e.named.n : t;
|
|
2001
|
+
}
|
|
2002
|
+
function pa(e = {}) {
|
|
2003
|
+
var N, C, E;
|
|
2004
|
+
const t = e.locale, n = Ea(e), r = S(t) && e.pluralRules && W(Q(e.pluralRules, t)) ? e.pluralRules[t] : ht, s = r === ht ? void 0 : ht, o = (A) => A[r(n, A.length, s)], l = e.list || [], c = (A) => l[A], u = e.named || k(), m = X(e.pluralIndex), I = (A) => {
|
|
2005
|
+
const b = Sn(A) ? Q(u, A) : u[A];
|
|
2006
|
+
return m && !b && (A === "count" || A === "n") ? e.pluralIndex : b;
|
|
2007
|
+
};
|
|
2008
|
+
function T(A, b) {
|
|
2009
|
+
const O = W(e.messages) ? e.messages(A, !!b) : y(e.messages) ? e.messages[A] : !1;
|
|
2010
|
+
return O || (e.parent ? e.parent.message(A) : fa);
|
|
2011
|
+
}
|
|
2012
|
+
const p = (A) => e.modifiers ? Q(e.modifiers, A) : ua, g = W((N = e.processor) == null ? void 0 : N.normalize) ? e.processor.normalize : ma, P = W((C = e.processor) == null ? void 0 : C.interpolate) ? e.processor.interpolate : da, D = S((E = e.processor) == null ? void 0 : E.type) ? e.processor.type : _a, f = {
|
|
2013
|
+
list: c,
|
|
2014
|
+
named: I,
|
|
2015
|
+
plural: o,
|
|
2016
|
+
linked: (A, ...b) => {
|
|
2017
|
+
const [O, x] = b;
|
|
2018
|
+
let M = "text", U = "";
|
|
2019
|
+
b.length === 1 ? y(O) ? (U = O.modifier || U, M = O.type || M) : S(O) && (U = O || U) : b.length === 2 && (S(O) && (U = O || U), S(x) && (M = x || M));
|
|
2020
|
+
const Z = T(A, !0)(f), F = Z === "" || Z === void 0 ? A : Z, oe = (
|
|
2021
|
+
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2022
|
+
M === "vnode" && G(F) && U ? F[0] : F
|
|
2023
|
+
);
|
|
2024
|
+
if (!U)
|
|
2025
|
+
return oe;
|
|
2026
|
+
const Se = p(U);
|
|
2027
|
+
return W(Se) ? Se(oe, M) : (process.env.NODE_ENV !== "production" && Dn(`Not found '${U}' modifier for the linked message of '${A}' key. Use a built-in modifier, or set a custom modifier with 'modifiers' option. So the linked message is used as is.`), oe);
|
|
2028
|
+
},
|
|
2029
|
+
message: T,
|
|
2030
|
+
type: D,
|
|
2031
|
+
interpolate: P,
|
|
2032
|
+
normalize: g,
|
|
2033
|
+
// custom message compilers read the values, so give them the same `count`
|
|
2034
|
+
// and `n` as `named()`
|
|
2035
|
+
values: j(k(), l, u, m ? { count: I("count"), n: I("n") } : {})
|
|
2036
|
+
};
|
|
2037
|
+
return f;
|
|
2038
|
+
}
|
|
2039
|
+
const En = () => "", _e = (e) => W(e), tt = (e) => S(e) || Ce(e) || _e(e);
|
|
2040
|
+
function pn(e, ...t) {
|
|
2041
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: l, messages: c } = e, [u, m] = Pt(...t), I = $(m.missingWarn) ? m.missingWarn : e.missingWarn, T = $(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, p = $(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, g = !!m.resolvedMessage, P = S(m.default) || $(m.default) ? $(m.default) ? o ? u : () => u : m.default : n ? o ? u : () => u : null, D = n || P != null && (S(P) || W(P)), v = Gt(e, m);
|
|
2042
|
+
p && Na(m);
|
|
2043
|
+
let [f, N, C] = g ? [u, v, Q(c, v) || k()] : er(e, u, v, l, T, I), E = f, A = u;
|
|
2044
|
+
if (!g && !tt(E) && D && (E = P, A = E), !g && (!tt(E) || !S(N)))
|
|
2045
|
+
return s ? st : u;
|
|
2046
|
+
process.env.NODE_ENV !== "production" && S(E) && e.messageCompiler == null && ae("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.");
|
|
2047
|
+
let b = !1;
|
|
2048
|
+
const O = () => {
|
|
2049
|
+
b = !0;
|
|
2050
|
+
}, x = _e(E) ? E : tr(e, u, N, E, A, O);
|
|
2051
|
+
if (b)
|
|
2052
|
+
return E;
|
|
2053
|
+
const M = ga(e, N, C, m), U = pa(M), Z = La(e, x, U);
|
|
2054
|
+
let F = r ? r(Z, u) : Z;
|
|
2055
|
+
if (p && S(F) && (F = Kr(F)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2056
|
+
const oe = {
|
|
2057
|
+
timestamp: Date.now(),
|
|
2058
|
+
key: S(u) ? u : _e(E) ? E.key : "",
|
|
2059
|
+
locale: N || (_e(E) ? E.locale : ""),
|
|
2060
|
+
format: S(E) ? E : _e(E) ? E.source : "",
|
|
2061
|
+
message: F
|
|
2062
|
+
};
|
|
2063
|
+
oe.meta = j({}, e.__meta, /* @__PURE__ */ oa() || {}), ws(oe);
|
|
2064
|
+
}
|
|
2065
|
+
return F;
|
|
2066
|
+
}
|
|
2067
|
+
function Na(e) {
|
|
2068
|
+
if (G(e.list) && (e.list = e.list.map((t) => S(t) ? Jt(t) : t)), y(e.named)) {
|
|
2069
|
+
const t = e.named, n = k();
|
|
2070
|
+
for (const r of Object.keys(t)) {
|
|
2071
|
+
const s = t[r];
|
|
2072
|
+
n[r] = S(s) ? Jt(s) : s;
|
|
2073
|
+
}
|
|
2074
|
+
e.named = n;
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
function er(e, t, n, r, s, o) {
|
|
2078
|
+
const { messages: l, onWarn: c, messageResolver: u, localeFallbacker: m } = e, I = m(e, r, n);
|
|
2079
|
+
let T = k(), p, g = null, P = n, D = null;
|
|
2080
|
+
const v = "translate";
|
|
2081
|
+
for (let f = 0; f < I.length; f++) {
|
|
2082
|
+
p = D = I[f], process.env.NODE_ENV !== "production" && n !== p && !Bn(n, p) && xt(s, t) && c(Le(q.FALLBACK_TO_TRANSLATE, {
|
|
2083
|
+
key: t,
|
|
2084
|
+
target: p
|
|
2085
|
+
}));
|
|
2086
|
+
const N = process.env.NODE_ENV !== "production" ? e.__v_emitter : void 0;
|
|
2087
|
+
process.env.NODE_ENV !== "production" && n !== p && N && N.emit("fallback", {
|
|
2088
|
+
type: v,
|
|
2089
|
+
key: t,
|
|
2090
|
+
from: P,
|
|
2091
|
+
to: D,
|
|
2092
|
+
groupId: Ne(v, t)
|
|
2093
|
+
}), T = Q(l, p) || k();
|
|
2094
|
+
let C = null, E, A;
|
|
2095
|
+
if (process.env.NODE_ENV !== "production" && me && N && (C = window.performance.now(), E = "intlify-message-resolve-start", A = "intlify-message-resolve-end", ne && ne(E)), (g = u(T, t)) === null && (g = Q(T, t)), process.env.NODE_ENV !== "production" && me && N) {
|
|
2096
|
+
const b = window.performance.now();
|
|
2097
|
+
N && C && g && N.emit("message-resolve", {
|
|
2098
|
+
type: "message-resolve",
|
|
2099
|
+
key: t,
|
|
2100
|
+
message: g,
|
|
2101
|
+
time: b - C,
|
|
2102
|
+
groupId: Ne(v, t)
|
|
2103
|
+
}), E && A && ne && he && (ne(A), he("intlify message resolve", E, A));
|
|
2104
|
+
}
|
|
2105
|
+
if (tt(g))
|
|
2106
|
+
break;
|
|
2107
|
+
if (!ca(p, I)) {
|
|
2108
|
+
const b = Hn(
|
|
2109
|
+
e,
|
|
2110
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2111
|
+
t,
|
|
2112
|
+
p,
|
|
2113
|
+
o,
|
|
2114
|
+
v
|
|
2115
|
+
);
|
|
2116
|
+
b !== t && (g = b);
|
|
2117
|
+
}
|
|
2118
|
+
P = D;
|
|
2119
|
+
}
|
|
2120
|
+
return [g, p, T];
|
|
2121
|
+
}
|
|
2122
|
+
function tr(e, t, n, r, s, o) {
|
|
2123
|
+
const { messageCompiler: l, warnHtmlMessage: c } = e;
|
|
2124
|
+
if (_e(r)) {
|
|
2125
|
+
const g = r;
|
|
2126
|
+
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
2127
|
+
}
|
|
2128
|
+
if (l == null) {
|
|
2129
|
+
const g = (() => r);
|
|
2130
|
+
return g.locale = n, g.key = t, g;
|
|
2131
|
+
}
|
|
2132
|
+
const u = process.env.NODE_ENV !== "production" ? e.__v_emitter : void 0;
|
|
2133
|
+
let m = null, I, T;
|
|
2134
|
+
process.env.NODE_ENV !== "production" && me && u && (m = window.performance.now(), I = "intlify-message-compilation-start", T = "intlify-message-compilation-end", ne && ne(I));
|
|
2135
|
+
const p = l(r, Oa(e, n, s, r, c, o));
|
|
2136
|
+
if (process.env.NODE_ENV !== "production" && me && u) {
|
|
2137
|
+
const g = window.performance.now();
|
|
2138
|
+
u && m && u.emit("message-compilation", {
|
|
2139
|
+
type: "message-compilation",
|
|
2140
|
+
message: r,
|
|
2141
|
+
time: g - m,
|
|
2142
|
+
groupId: Ne("translate", t)
|
|
2143
|
+
}), I && T && ne && he && (ne(T), he("intlify message compilation", I, T));
|
|
2144
|
+
}
|
|
2145
|
+
return p.locale = n, p.key = t, p.source = r, p;
|
|
2146
|
+
}
|
|
2147
|
+
function La(e, t, n) {
|
|
2148
|
+
const r = process.env.NODE_ENV !== "production" ? e.__v_emitter : void 0;
|
|
2149
|
+
let s = null, o, l;
|
|
2150
|
+
process.env.NODE_ENV !== "production" && me && r && (s = window.performance.now(), o = "intlify-message-evaluation-start", l = "intlify-message-evaluation-end", ne && ne(o));
|
|
2151
|
+
const c = t(n);
|
|
2152
|
+
if (process.env.NODE_ENV !== "production" && me && r) {
|
|
2153
|
+
const u = window.performance.now();
|
|
2154
|
+
r && s && r.emit("message-evaluation", {
|
|
2155
|
+
type: "message-evaluation",
|
|
2156
|
+
value: c,
|
|
2157
|
+
time: u - s,
|
|
2158
|
+
groupId: Ne("translate", t.key)
|
|
2159
|
+
}), o && l && ne && he && (ne(l), he("intlify message evaluation", o, l));
|
|
2160
|
+
}
|
|
2161
|
+
return c;
|
|
2162
|
+
}
|
|
2163
|
+
function Pt(...e) {
|
|
2164
|
+
const [t, n, r] = e, s = k();
|
|
2165
|
+
if (!S(t) && !X(t) && !_e(t) && !Ce(t))
|
|
2166
|
+
throw fe(ee.INVALID_ARGUMENT);
|
|
2167
|
+
const o = X(t) ? String(t) : (_e(t), t);
|
|
2168
|
+
return X(n) ? s.plural = n : S(n) ? s.default = n : K(n) && !Mt(n) ? s.named = n : G(n) && (s.list = n), X(r) ? s.plural = r : S(r) ? s.default = r : K(r) && j(s, r), [o, s];
|
|
2169
|
+
}
|
|
2170
|
+
function Oa(e, t, n, r, s, o) {
|
|
2171
|
+
return {
|
|
2172
|
+
locale: t,
|
|
2173
|
+
key: n,
|
|
2174
|
+
warnHtmlMessage: s,
|
|
2175
|
+
onError: (l) => {
|
|
2176
|
+
if (o && o(l), process.env.NODE_ENV !== "production") {
|
|
2177
|
+
const c = Ta(r), u = l.location && c && Pr(c, l.location.start.offset, l.location.end.offset), m = e.__v_emitter;
|
|
2178
|
+
m && c && m.emit("compile-error", {
|
|
2179
|
+
message: c,
|
|
2180
|
+
error: l.message,
|
|
2181
|
+
start: l.location && l.location.start.offset,
|
|
2182
|
+
end: l.location && l.location.end.offset,
|
|
2183
|
+
groupId: Ne("translate", n)
|
|
2184
|
+
});
|
|
2185
|
+
const I = `Message compilation error: ${l.message}`;
|
|
2186
|
+
throw new SyntaxError(u ? `${I}
|
|
2187
|
+
${u}` : I);
|
|
2188
|
+
}
|
|
2189
|
+
throw l;
|
|
2190
|
+
},
|
|
2191
|
+
onCacheKey: (l) => Ar(t, n, l)
|
|
2192
|
+
};
|
|
2193
|
+
}
|
|
2194
|
+
function Ta(e) {
|
|
2195
|
+
if (S(e))
|
|
2196
|
+
return e;
|
|
2197
|
+
if (e.loc && e.loc.source)
|
|
2198
|
+
return e.loc.source;
|
|
2199
|
+
}
|
|
2200
|
+
function ga(e, t, n, r) {
|
|
2201
|
+
const { modifiers: s, pluralRules: o, messageResolver: l, fallbackLocale: c, fallbackWarn: u, missingWarn: m, fallbackContext: I } = e, p = {
|
|
2202
|
+
locale: t,
|
|
2203
|
+
modifiers: s,
|
|
2204
|
+
pluralRules: o,
|
|
2205
|
+
messages: (g, P) => {
|
|
2206
|
+
let D = l(n, g);
|
|
2207
|
+
if (D == null && (I || P)) {
|
|
2208
|
+
const [v, , f] = er(
|
|
2209
|
+
I || e,
|
|
2210
|
+
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2211
|
+
g,
|
|
2212
|
+
t,
|
|
2213
|
+
c,
|
|
2214
|
+
u,
|
|
2215
|
+
m
|
|
2216
|
+
);
|
|
2217
|
+
D = v ?? l(f, g);
|
|
2218
|
+
}
|
|
2219
|
+
if (S(D) || Ce(D)) {
|
|
2220
|
+
let v = !1;
|
|
2221
|
+
const N = tr(e, g, t, D, g, () => {
|
|
2222
|
+
v = !0;
|
|
2223
|
+
});
|
|
2224
|
+
return v ? En : N;
|
|
2225
|
+
} else return _e(D) ? D : En;
|
|
2226
|
+
}
|
|
2227
|
+
};
|
|
2228
|
+
return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), X(r.plural) && (p.pluralIndex = r.plural), p;
|
|
2229
|
+
}
|
|
2230
|
+
Is();
|
|
2231
|
+
/*!
|
|
2232
|
+
* vue-i18n v11.4.16
|
|
2233
|
+
* (c) 2026 kazuya kawaguchi
|
|
2234
|
+
* Released under the MIT License.
|
|
2235
|
+
*/
|
|
2236
|
+
const Ia = "11.4.16";
|
|
2237
|
+
function Aa() {
|
|
2238
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (pe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (pe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2239
|
+
}
|
|
2240
|
+
const J = {
|
|
2241
|
+
// composer module errors
|
|
2242
|
+
UNEXPECTED_RETURN_TYPE: Ws,
|
|
2243
|
+
// 24
|
|
2244
|
+
// legacy module errors
|
|
2245
|
+
INVALID_ARGUMENT: 25,
|
|
2246
|
+
// i18n module errors
|
|
2247
|
+
MUST_BE_CALL_SETUP_TOP: 26,
|
|
2248
|
+
NOT_INSTALLED: 27,
|
|
2249
|
+
// directive module errors
|
|
2250
|
+
REQUIRED_VALUE: 28,
|
|
2251
|
+
INVALID_VALUE: 29,
|
|
2252
|
+
// vue-devtools errors
|
|
2253
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
|
|
2254
|
+
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
2255
|
+
// unexpected error
|
|
2256
|
+
UNEXPECTED_ERROR: 32,
|
|
2257
|
+
// not compatible legacy vue-i18n constructor
|
|
2258
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
2259
|
+
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
2260
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2261
|
+
};
|
|
2262
|
+
function ye(e, ...t) {
|
|
2263
|
+
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages: ha, args: t } : void 0);
|
|
2264
|
+
}
|
|
2265
|
+
const ha = {
|
|
2266
|
+
[J.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2267
|
+
[J.INVALID_ARGUMENT]: "Invalid argument",
|
|
2268
|
+
[J.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
2269
|
+
[J.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
2270
|
+
[J.UNEXPECTED_ERROR]: "Unexpected error",
|
|
2271
|
+
[J.REQUIRED_VALUE]: "Required in value: {0}",
|
|
2272
|
+
[J.INVALID_VALUE]: "Invalid value",
|
|
2273
|
+
[J.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
2274
|
+
[J.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2275
|
+
[J.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2276
|
+
[J.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2277
|
+
}, vt = /* @__PURE__ */ de("__translateVNode"), Rt = /* @__PURE__ */ de("__datetimeParts"), yt = /* @__PURE__ */ de("__numberParts"), xe = /* @__PURE__ */ de("__enableEmitter"), Ye = /* @__PURE__ */ de("__disableEmitter"), Ca = de("__setPluralRules"), nr = /* @__PURE__ */ de("__injectWithOption"), Re = /* @__PURE__ */ de("__dispose"), re = {
|
|
2278
|
+
FALLBACK_TO_ROOT: Ie,
|
|
2279
|
+
// 10
|
|
2280
|
+
NOT_FOUND_PARENT_SCOPE: Ie + 1,
|
|
2281
|
+
IGNORE_OBJ_FLATTEN: Ie + 2,
|
|
2282
|
+
/**
|
|
2283
|
+
* @deprecated will be removed at vue-i18n v12
|
|
2284
|
+
*/
|
|
2285
|
+
DEPRECATE_LEGACY_MODE: Ie + 3,
|
|
2286
|
+
/**
|
|
2287
|
+
* @deprecated will be removed at vue-i18n v12
|
|
2288
|
+
*/
|
|
2289
|
+
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: Ie + 4,
|
|
2290
|
+
// duplicate `useI18n` calling
|
|
2291
|
+
DUPLICATE_USE_I18N_CALLING: Ie + 5,
|
|
2292
|
+
IGNORE_UNSAFE_LOCALE: Ie + 6
|
|
2293
|
+
}, Sa = {
|
|
2294
|
+
[re.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2295
|
+
[re.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2296
|
+
[re.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
2297
|
+
/**
|
|
2298
|
+
* @deprecated will be removed at vue-i18n v12
|
|
2299
|
+
*/
|
|
2300
|
+
[re.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
2301
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
|
|
2302
|
+
/**
|
|
2303
|
+
* @deprecated will be removed at vue-i18n v12
|
|
2304
|
+
*/
|
|
2305
|
+
[re.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
2306
|
+
[re.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component.",
|
|
2307
|
+
[re.IGNORE_UNSAFE_LOCALE]: "Ignore '{locale}' locale: it is a property name of Object.prototype"
|
|
2308
|
+
};
|
|
2309
|
+
function $e(e, ...t) {
|
|
2310
|
+
return rt(Sa[e], ...t);
|
|
2311
|
+
}
|
|
2312
|
+
let rr = null;
|
|
2313
|
+
{
|
|
2314
|
+
const e = pe().__VUE_INSTANCE_SETTERS__;
|
|
2315
|
+
G(e) && e.push((t) => {
|
|
2316
|
+
rr = t;
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
function Ae(e) {
|
|
2320
|
+
return Sn(e) ? (process.env.NODE_ENV !== "production" && ae($e(re.IGNORE_UNSAFE_LOCALE, { locale: e })), !0) : !1;
|
|
2321
|
+
}
|
|
2322
|
+
function Ke(e) {
|
|
2323
|
+
if (!y(e) || Ce(e))
|
|
2324
|
+
return e;
|
|
2325
|
+
for (const t in e)
|
|
2326
|
+
if (se(e, t))
|
|
2327
|
+
if (!t.includes("."))
|
|
2328
|
+
y(e[t]) && Ke(e[t]);
|
|
2329
|
+
else {
|
|
2330
|
+
const n = t.split("."), r = n.length - 1;
|
|
2331
|
+
let s = e, o = !1;
|
|
2332
|
+
for (let c = 0; c < r; c++) {
|
|
2333
|
+
if (n[c] === "__proto__")
|
|
2334
|
+
throw new Error(`unsafe key: ${n[c]}`);
|
|
2335
|
+
if (n[c] in s || (s[n[c]] = k()), !y(s[n[c]])) {
|
|
2336
|
+
process.env.NODE_ENV !== "production" && ae($e(re.IGNORE_OBJ_FLATTEN, {
|
|
2337
|
+
key: n[c]
|
|
2338
|
+
})), o = !0;
|
|
2339
|
+
break;
|
|
2340
|
+
}
|
|
2341
|
+
if (Ce(s[n[c]]) && (Vn.includes(n[c + 1]) || n[c + 1] === "cacheKey")) {
|
|
2342
|
+
o = !0;
|
|
2343
|
+
break;
|
|
2344
|
+
}
|
|
2345
|
+
s = s[n[c]];
|
|
2346
|
+
}
|
|
2347
|
+
o || (s[n[r]] = e[t], delete e[t]);
|
|
2348
|
+
const l = s[n[r]];
|
|
2349
|
+
y(l) && Ke(l);
|
|
2350
|
+
}
|
|
2351
|
+
return e;
|
|
2352
|
+
}
|
|
2353
|
+
function sr(e, t) {
|
|
2354
|
+
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, l = K(n) ? n : G(r) ? k() : { [e]: k() };
|
|
2355
|
+
if (G(r) && r.forEach((c) => {
|
|
2356
|
+
if ("locale" in c && "resource" in c) {
|
|
2357
|
+
const { locale: u, resource: m } = c;
|
|
2358
|
+
if (u) {
|
|
2359
|
+
if (Ae(u))
|
|
2360
|
+
return;
|
|
2361
|
+
l[u] = Q(l, u) || k(), Qe(m, l[u]);
|
|
2362
|
+
} else
|
|
2363
|
+
Qe(m, l);
|
|
2364
|
+
} else
|
|
2365
|
+
S(c) && Qe(JSON.parse(c), l);
|
|
2366
|
+
}), s == null && o)
|
|
2367
|
+
for (const c in l)
|
|
2368
|
+
se(l, c) && Ke(l[c]);
|
|
2369
|
+
return l;
|
|
2370
|
+
}
|
|
2371
|
+
function ar(e) {
|
|
2372
|
+
return e.type;
|
|
2373
|
+
}
|
|
2374
|
+
function ba(e, t, n) {
|
|
2375
|
+
let r = y(t.messages) ? t.messages : k();
|
|
2376
|
+
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
2377
|
+
messages: r,
|
|
2378
|
+
__i18n: n.__i18nGlobal
|
|
2379
|
+
}));
|
|
2380
|
+
const s = Object.keys(r);
|
|
2381
|
+
s.length && s.forEach((o) => {
|
|
2382
|
+
e.mergeLocaleMessage(o, r[o]);
|
|
2383
|
+
});
|
|
2384
|
+
{
|
|
2385
|
+
if (y(t.datetimeFormats)) {
|
|
2386
|
+
const o = Object.keys(t.datetimeFormats);
|
|
2387
|
+
o.length && o.forEach((l) => {
|
|
2388
|
+
e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
|
|
2389
|
+
});
|
|
2390
|
+
}
|
|
2391
|
+
if (y(t.numberFormats)) {
|
|
2392
|
+
const o = Object.keys(t.numberFormats);
|
|
2393
|
+
o.length && o.forEach((l) => {
|
|
2394
|
+
e.mergeNumberFormat(l, t.numberFormats[l]);
|
|
2395
|
+
});
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
function Nn(e) {
|
|
2400
|
+
return Tr(gr, null, e, 0);
|
|
2401
|
+
}
|
|
2402
|
+
function Yt() {
|
|
2403
|
+
return rr ?? dr();
|
|
2404
|
+
}
|
|
2405
|
+
const Ln = "__INTLIFY_META__", On = () => [], Da = () => !1;
|
|
2406
|
+
let Tn = 0;
|
|
2407
|
+
function gn(e) {
|
|
2408
|
+
return ((t, n, r, s) => e(n, r, Yt() || void 0, s));
|
|
2409
|
+
}
|
|
2410
|
+
const Pa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2411
|
+
const e = Yt();
|
|
2412
|
+
let t = null;
|
|
2413
|
+
return e && (t = ar(e)[Ln]) ? { [Ln]: t } : null;
|
|
2414
|
+
};
|
|
2415
|
+
function In(e = {}) {
|
|
2416
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = me ? Lr : Or;
|
|
2417
|
+
let l = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2418
|
+
const c = o(
|
|
2419
|
+
// prettier-ignore
|
|
2420
|
+
t && l ? t.locale.value : S(e.locale) ? e.locale : et
|
|
2421
|
+
), u = o(
|
|
2422
|
+
// prettier-ignore
|
|
2423
|
+
t && l ? t.fallbackLocale.value : S(e.fallbackLocale) || G(e.fallbackLocale) || K(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
2424
|
+
), m = o(sr(c.value, e)), I = o(K(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), T = o(K(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
2425
|
+
let p = t ? t.missingWarn : $(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, g = t ? t.fallbackWarn : $(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, P = t ? t.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, D = !!e.fallbackFormat, v = W(e.missing) ? e.missing : null, f = W(e.missing) ? gn(e.missing) : null, N = W(e.postTranslation) ? e.postTranslation : null, C = t ? t.warnHtmlMessage : $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2426
|
+
const A = t ? t.modifiers : K(e.modifiers) ? e.modifiers : {};
|
|
2427
|
+
let b = e.pluralRules || t && t.pluralRules, O;
|
|
2428
|
+
O = (() => {
|
|
2429
|
+
r && on(null);
|
|
2430
|
+
const _ = {
|
|
2431
|
+
version: Ia,
|
|
2432
|
+
locale: c.value,
|
|
2433
|
+
fallbackLocale: u.value,
|
|
2434
|
+
messages: m.value,
|
|
2435
|
+
modifiers: A,
|
|
2436
|
+
pluralRules: b,
|
|
2437
|
+
missing: f === null ? void 0 : f,
|
|
2438
|
+
missingWarn: p,
|
|
2439
|
+
fallbackWarn: g,
|
|
2440
|
+
fallbackFormat: D,
|
|
2441
|
+
unresolving: !0,
|
|
2442
|
+
postTranslation: N === null ? void 0 : N,
|
|
2443
|
+
warnHtmlMessage: C,
|
|
2444
|
+
escapeParameter: E,
|
|
2445
|
+
messageResolver: e.messageResolver,
|
|
2446
|
+
messageCompiler: e.messageCompiler,
|
|
2447
|
+
__meta: { framework: "vue" }
|
|
2448
|
+
};
|
|
2449
|
+
_.datetimeFormats = I.value, _.numberFormats = T.value;
|
|
2450
|
+
const L = la(_);
|
|
2451
|
+
return r && on(L), L;
|
|
2452
|
+
})(), qe(O, c.value, u.value);
|
|
2453
|
+
function M() {
|
|
2454
|
+
return [
|
|
2455
|
+
c.value,
|
|
2456
|
+
u.value,
|
|
2457
|
+
m.value,
|
|
2458
|
+
I.value,
|
|
2459
|
+
T.value
|
|
2460
|
+
];
|
|
2461
|
+
}
|
|
2462
|
+
const U = Ve({
|
|
2463
|
+
get: () => c.value,
|
|
2464
|
+
set: (_) => {
|
|
2465
|
+
O.locale = _, c.value = _;
|
|
2466
|
+
}
|
|
2467
|
+
});
|
|
2468
|
+
function Z(_) {
|
|
2469
|
+
r || (O.fallbackContext = ia());
|
|
2470
|
+
try {
|
|
2471
|
+
return _();
|
|
2472
|
+
} finally {
|
|
2473
|
+
r || (O.fallbackContext = void 0);
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
function F(_) {
|
|
2477
|
+
Z(() => qe(O, c.value, _));
|
|
2478
|
+
}
|
|
2479
|
+
const oe = Ve({
|
|
2480
|
+
get: () => u.value,
|
|
2481
|
+
set: (_) => {
|
|
2482
|
+
u.value = _, O.fallbackLocale = u.value, F(u.value);
|
|
2483
|
+
}
|
|
2484
|
+
}), Se = Ve(() => m.value), at = /* @__PURE__ */ Ve(() => I.value), ot = /* @__PURE__ */ Ve(() => T.value);
|
|
2485
|
+
function it() {
|
|
2486
|
+
return W(N) ? N : null;
|
|
2487
|
+
}
|
|
2488
|
+
function lt(_) {
|
|
2489
|
+
N = _, O.postTranslation = _;
|
|
2490
|
+
}
|
|
2491
|
+
function ct() {
|
|
2492
|
+
return v;
|
|
2493
|
+
}
|
|
2494
|
+
function ut(_) {
|
|
2495
|
+
_ !== null && (f = gn(_)), v = _, O.missing = f;
|
|
2496
|
+
}
|
|
2497
|
+
function He(_, L) {
|
|
2498
|
+
return _ !== "translate" || !L.resolvedMessage;
|
|
2499
|
+
}
|
|
2500
|
+
const ce = (_, L, w, B, Ee, ur) => {
|
|
2501
|
+
M();
|
|
2502
|
+
let Pe;
|
|
2503
|
+
try {
|
|
2504
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, Pe = Z(() => _(O));
|
|
2505
|
+
} finally {
|
|
2506
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__;
|
|
2507
|
+
}
|
|
2508
|
+
if (w !== "translate exists" && // for not `te` (e.g `t`)
|
|
2509
|
+
X(Pe) && Pe === st || w === "translate exists" && !Pe) {
|
|
2510
|
+
const [ge, fr] = L();
|
|
2511
|
+
if (process.env.NODE_ENV !== "production" && t && S(ge) && He(w, fr) && (P && (xt(g, ge) || Kn(p, ge)) && ae($e(re.FALLBACK_TO_ROOT, {
|
|
2512
|
+
key: ge,
|
|
2513
|
+
type: w
|
|
2514
|
+
})), process.env.NODE_ENV !== "production")) {
|
|
2515
|
+
const { __v_emitter: Ht } = O;
|
|
2516
|
+
Ht && P && Ht.emit("fallback", {
|
|
2517
|
+
type: w,
|
|
2518
|
+
key: ge,
|
|
2519
|
+
to: "global",
|
|
2520
|
+
groupId: Ne(w, ge)
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
return t && P ? B(t) : Ee(ge);
|
|
2524
|
+
} else {
|
|
2525
|
+
if (ur(Pe))
|
|
2526
|
+
return Pe;
|
|
2527
|
+
throw ye(J.UNEXPECTED_RETURN_TYPE);
|
|
2528
|
+
}
|
|
2529
|
+
};
|
|
2530
|
+
function Be(..._) {
|
|
2531
|
+
return ce((L) => Reflect.apply(pn, null, [L, ..._]), () => Pt(..._), "translate", (L) => Reflect.apply(L.t, L, [..._]), (L) => L, (L) => S(L));
|
|
2532
|
+
}
|
|
2533
|
+
function ft(..._) {
|
|
2534
|
+
const [L, w, B] = _;
|
|
2535
|
+
if (B && !y(B))
|
|
2536
|
+
throw ye(J.INVALID_ARGUMENT);
|
|
2537
|
+
return Be(L, w, j({ resolvedMessage: !0 }, B || {}));
|
|
2538
|
+
}
|
|
2539
|
+
function _t(..._) {
|
|
2540
|
+
return ce((L) => Reflect.apply(fn, null, [L, ..._]), () => bt(..._), "datetime format", (L) => Reflect.apply(L.d, L, [..._]), () => Me, (L) => S(L) || G(L));
|
|
2541
|
+
}
|
|
2542
|
+
function mt(..._) {
|
|
2543
|
+
return ce((L) => Reflect.apply(mn, null, [L, ..._]), () => Dt(..._), "number format", (L) => Reflect.apply(L.n, L, [..._]), () => Me, (L) => S(L) || G(L));
|
|
2544
|
+
}
|
|
2545
|
+
function dt(_) {
|
|
2546
|
+
return _.map((L) => S(L) || X(L) || $(L) ? Nn(String(L)) : L);
|
|
2547
|
+
}
|
|
2548
|
+
const pt = {
|
|
2549
|
+
normalize: dt,
|
|
2550
|
+
interpolate: (_) => _,
|
|
2551
|
+
type: "vnode"
|
|
2552
|
+
};
|
|
2553
|
+
function Xe(..._) {
|
|
2554
|
+
return ce((L) => {
|
|
2555
|
+
let w;
|
|
2556
|
+
const B = L;
|
|
2557
|
+
try {
|
|
2558
|
+
B.processor = pt, w = Reflect.apply(pn, null, [B, ..._]);
|
|
2559
|
+
} finally {
|
|
2560
|
+
B.processor = null;
|
|
2561
|
+
}
|
|
2562
|
+
return w;
|
|
2563
|
+
}, () => Pt(..._), "translate", (L) => L[vt](..._), (L) => [Nn(L)], (L) => G(L));
|
|
2564
|
+
}
|
|
2565
|
+
function Nt(..._) {
|
|
2566
|
+
return ce((L) => Reflect.apply(mn, null, [L, ..._]), () => Dt(..._), "number format", (L) => L[yt](..._), On, (L) => S(L) || G(L));
|
|
2567
|
+
}
|
|
2568
|
+
function Lt(..._) {
|
|
2569
|
+
return ce((L) => Reflect.apply(fn, null, [L, ..._]), () => bt(..._), "datetime format", (L) => L[Rt](..._), On, (L) => S(L) || G(L));
|
|
2570
|
+
}
|
|
2571
|
+
function Ue(_) {
|
|
2572
|
+
b = _, O.pluralRules = b;
|
|
2573
|
+
}
|
|
2574
|
+
function be(_, L) {
|
|
2575
|
+
const w = a(_), B = O.messageResolver(w, L);
|
|
2576
|
+
return B === null ? Q(w, L) : B;
|
|
2577
|
+
}
|
|
2578
|
+
function De(_, L) {
|
|
2579
|
+
return ce(() => {
|
|
2580
|
+
if (!_)
|
|
2581
|
+
return !1;
|
|
2582
|
+
const w = S(L) ? L : c.value, B = S(L) ? [w] : O.localeFallbacker(O, u.value, w);
|
|
2583
|
+
for (let Ee = 0; Ee < B.length; Ee++)
|
|
2584
|
+
if (tt(be(B[Ee], _)))
|
|
2585
|
+
return !0;
|
|
2586
|
+
return !1;
|
|
2587
|
+
}, () => [_], "translate exists", (w) => Reflect.apply(w.te, w, [_, L]), Da, (w) => $(w));
|
|
2588
|
+
}
|
|
2589
|
+
function we(_) {
|
|
2590
|
+
let L = null;
|
|
2591
|
+
const w = O.localeFallbacker(O, u.value, c.value);
|
|
2592
|
+
for (let B = 0; B < w.length; B++) {
|
|
2593
|
+
const Ee = be(w[B], _);
|
|
2594
|
+
if (Ee != null) {
|
|
2595
|
+
L = Ee;
|
|
2596
|
+
break;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
return L;
|
|
2600
|
+
}
|
|
2601
|
+
function Ot(_) {
|
|
2602
|
+
const L = we(_);
|
|
2603
|
+
return L ?? (t ? t.tm(_) || {} : {});
|
|
2604
|
+
}
|
|
2605
|
+
function a(_) {
|
|
2606
|
+
return Q(m.value, _) || {};
|
|
2607
|
+
}
|
|
2608
|
+
function i(_, L) {
|
|
2609
|
+
Ae(_) || (s && Ke(L), m.value[_] = L, O.messages = m.value);
|
|
2610
|
+
}
|
|
2611
|
+
function d(_, L) {
|
|
2612
|
+
Ae(_) || (m.value[_] = Q(m.value, _) || {}, s && Ke(L), Qe(L, m.value[_]), O.messages = m.value);
|
|
2613
|
+
}
|
|
2614
|
+
function h(_) {
|
|
2615
|
+
return Q(I.value, _) || {};
|
|
2616
|
+
}
|
|
2617
|
+
function V(_, L) {
|
|
2618
|
+
Ae(_) || (I.value[_] = L, O.datetimeFormats = I.value, _n(O, _, L));
|
|
2619
|
+
}
|
|
2620
|
+
function Y(_, L) {
|
|
2621
|
+
Ae(_) || (I.value[_] = j(Q(I.value, _) || {}, L), O.datetimeFormats = I.value, _n(O, _, L));
|
|
2622
|
+
}
|
|
2623
|
+
function te(_) {
|
|
2624
|
+
return Q(T.value, _) || {};
|
|
2625
|
+
}
|
|
2626
|
+
function lr(_, L) {
|
|
2627
|
+
Ae(_) || (T.value[_] = L, O.numberFormats = T.value, dn(O, _, L));
|
|
2628
|
+
}
|
|
2629
|
+
function cr(_, L) {
|
|
2630
|
+
Ae(_) || (T.value[_] = j(Q(T.value, _) || {}, L), O.numberFormats = T.value, dn(O, _, L));
|
|
2631
|
+
}
|
|
2632
|
+
Tn++, Tt(u, () => F(u.value), { deep: !0, flush: "sync" }), t && me && (Tt(t.locale, (_) => {
|
|
2633
|
+
l && (c.value = _, O.locale = _, qe(O, c.value, u.value));
|
|
2634
|
+
}), Tt(t.fallbackLocale, (_) => {
|
|
2635
|
+
l && (u.value = _, O.fallbackLocale = u.value, qe(O, c.value, u.value));
|
|
2636
|
+
}));
|
|
2637
|
+
const H = {
|
|
2638
|
+
id: Tn,
|
|
2639
|
+
locale: U,
|
|
2640
|
+
fallbackLocale: oe,
|
|
2641
|
+
get inheritLocale() {
|
|
2642
|
+
return l;
|
|
2643
|
+
},
|
|
2644
|
+
set inheritLocale(_) {
|
|
2645
|
+
l = _, _ && t && (U.value = t.locale.value, oe.value = t.fallbackLocale.value);
|
|
2646
|
+
},
|
|
2647
|
+
get availableLocales() {
|
|
2648
|
+
return Object.keys(m.value).sort();
|
|
2649
|
+
},
|
|
2650
|
+
messages: Se,
|
|
2651
|
+
get modifiers() {
|
|
2652
|
+
return A;
|
|
2653
|
+
},
|
|
2654
|
+
get pluralRules() {
|
|
2655
|
+
return b || {};
|
|
2656
|
+
},
|
|
2657
|
+
get isGlobal() {
|
|
2658
|
+
return r;
|
|
2659
|
+
},
|
|
2660
|
+
get missingWarn() {
|
|
2661
|
+
return p;
|
|
2662
|
+
},
|
|
2663
|
+
set missingWarn(_) {
|
|
2664
|
+
p = _, O.missingWarn = p;
|
|
2665
|
+
},
|
|
2666
|
+
get fallbackWarn() {
|
|
2667
|
+
return g;
|
|
2668
|
+
},
|
|
2669
|
+
set fallbackWarn(_) {
|
|
2670
|
+
g = _, O.fallbackWarn = g;
|
|
2671
|
+
},
|
|
2672
|
+
get fallbackRoot() {
|
|
2673
|
+
return P;
|
|
2674
|
+
},
|
|
2675
|
+
set fallbackRoot(_) {
|
|
2676
|
+
P = _;
|
|
2677
|
+
},
|
|
2678
|
+
get fallbackFormat() {
|
|
2679
|
+
return D;
|
|
2680
|
+
},
|
|
2681
|
+
set fallbackFormat(_) {
|
|
2682
|
+
D = _, O.fallbackFormat = D;
|
|
2683
|
+
},
|
|
2684
|
+
get warnHtmlMessage() {
|
|
2685
|
+
return C;
|
|
2686
|
+
},
|
|
2687
|
+
set warnHtmlMessage(_) {
|
|
2688
|
+
C = _, O.warnHtmlMessage = _;
|
|
2689
|
+
},
|
|
2690
|
+
get escapeParameter() {
|
|
2691
|
+
return E;
|
|
2692
|
+
},
|
|
2693
|
+
set escapeParameter(_) {
|
|
2694
|
+
E = _, O.escapeParameter = _;
|
|
2695
|
+
},
|
|
2696
|
+
t: Be,
|
|
2697
|
+
getLocaleMessage: a,
|
|
2698
|
+
setLocaleMessage: i,
|
|
2699
|
+
mergeLocaleMessage: d,
|
|
2700
|
+
getPostTranslationHandler: it,
|
|
2701
|
+
setPostTranslationHandler: lt,
|
|
2702
|
+
getMissingHandler: ct,
|
|
2703
|
+
setMissingHandler: ut,
|
|
2704
|
+
[Ca]: Ue
|
|
2705
|
+
};
|
|
2706
|
+
return H.datetimeFormats = at, H.numberFormats = ot, H.rt = ft, H.te = De, H.tm = Ot, H.d = _t, H.n = mt, H.getDateTimeFormat = h, H.setDateTimeFormat = V, H.mergeDateTimeFormat = Y, H.getNumberFormat = te, H.setNumberFormat = lr, H.mergeNumberFormat = cr, H[nr] = n, H[vt] = Xe, H[Rt] = Lt, H[yt] = Nt, process.env.NODE_ENV !== "production" && (H[xe] = (_) => {
|
|
2707
|
+
O.__v_emitter = _;
|
|
2708
|
+
}, H[Ye] = () => {
|
|
2709
|
+
O.__v_emitter = void 0;
|
|
2710
|
+
}), H;
|
|
2711
|
+
}
|
|
2712
|
+
function nt(e, t) {
|
|
2713
|
+
}
|
|
2714
|
+
const $t = {
|
|
2715
|
+
tag: {
|
|
2716
|
+
type: [String, Object]
|
|
2717
|
+
},
|
|
2718
|
+
locale: {
|
|
2719
|
+
type: String
|
|
2720
|
+
},
|
|
2721
|
+
scope: {
|
|
2722
|
+
type: String,
|
|
2723
|
+
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
2724
|
+
validator: (e) => e === "parent" || e === "global",
|
|
2725
|
+
default: "parent"
|
|
2726
|
+
/* ComponentI18nScope */
|
|
2727
|
+
},
|
|
2728
|
+
i18n: {
|
|
2729
|
+
type: Object
|
|
2730
|
+
}
|
|
2731
|
+
};
|
|
2732
|
+
function va({ slots: e }, t) {
|
|
2733
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
2734
|
+
...r,
|
|
2735
|
+
// prettier-ignore
|
|
2736
|
+
...s.type === hn ? s.children : [s]
|
|
2737
|
+
], []) : t.reduce((n, r) => {
|
|
2738
|
+
const s = e[r];
|
|
2739
|
+
return s && (n[r] = s()), n;
|
|
2740
|
+
}, k());
|
|
2741
|
+
}
|
|
2742
|
+
function or() {
|
|
2743
|
+
return hn;
|
|
2744
|
+
}
|
|
2745
|
+
j({
|
|
2746
|
+
keypath: {
|
|
2747
|
+
type: String,
|
|
2748
|
+
required: !0
|
|
2749
|
+
},
|
|
2750
|
+
plural: {
|
|
2751
|
+
type: [Number, String],
|
|
2752
|
+
validator: (e) => X(e) || !isNaN(e)
|
|
2753
|
+
}
|
|
2754
|
+
}, $t);
|
|
2755
|
+
function Ra(e) {
|
|
2756
|
+
return G(e) && !S(e[0]);
|
|
2757
|
+
}
|
|
2758
|
+
function ir(e, t, n, r) {
|
|
2759
|
+
const { slots: s, attrs: o } = t;
|
|
2760
|
+
return () => {
|
|
2761
|
+
const l = () => {
|
|
2762
|
+
const m = { part: !0 };
|
|
2763
|
+
let I = k();
|
|
2764
|
+
e.locale && (m.locale = e.locale), S(e.format) ? m.key = e.format : y(e.format) && (S(e.format.key) && (m.key = e.format.key), I = Object.keys(e.format).reduce((g, P) => n.includes(P) ? j(k(), g, { [P]: e.format[P] }) : g, k()));
|
|
2765
|
+
const T = r(e.value, m, I);
|
|
2766
|
+
let p = [m.key];
|
|
2767
|
+
return G(T) ? p = T.map((g, P) => {
|
|
2768
|
+
const D = s[g.type], v = D ? D({ [g.type]: g.value, index: P, parts: T }) : [g.value];
|
|
2769
|
+
return Ra(v) && (v[0].key = `${g.type}-${P}`), v;
|
|
2770
|
+
}) : S(T) && (p = [T]), p;
|
|
2771
|
+
}, c = j(k(), o), u = S(e.tag) || y(e.tag) ? e.tag : or();
|
|
2772
|
+
return y(u) ? Ze(u, c, { default: l }) : Ze(u, c, l());
|
|
2773
|
+
};
|
|
2774
|
+
}
|
|
2775
|
+
j({
|
|
2776
|
+
value: {
|
|
2777
|
+
type: Number,
|
|
2778
|
+
required: !0
|
|
2779
|
+
},
|
|
2780
|
+
format: {
|
|
2781
|
+
type: [String, Object]
|
|
2782
|
+
}
|
|
2783
|
+
}, $t);
|
|
2784
|
+
const ya = /* @__PURE__ */ de("global-vue-i18n");
|
|
2785
|
+
function Kt(e = {}) {
|
|
2786
|
+
const t = Yt();
|
|
2787
|
+
if (t == null)
|
|
2788
|
+
throw ye(J.MUST_BE_CALL_SETUP_TOP);
|
|
2789
|
+
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2790
|
+
throw ye(J.NOT_INSTALLED);
|
|
2791
|
+
const n = ka(t), r = Fa(n), s = ar(t), o = Ma(e, s);
|
|
2792
|
+
if (o === "global")
|
|
2793
|
+
return ba(r, e, s), r;
|
|
2794
|
+
if (o === "parent") {
|
|
2795
|
+
let u = An(n, t, e.__useComponent);
|
|
2796
|
+
return u == null && (process.env.NODE_ENV !== "production" && ae($e(re.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
2797
|
+
}
|
|
2798
|
+
if (o === "isolated") {
|
|
2799
|
+
if (n.mode !== "composition")
|
|
2800
|
+
throw ye(J.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
2801
|
+
const u = n, m = j({}, e), I = An(n, t);
|
|
2802
|
+
m.__root = I || r;
|
|
2803
|
+
const T = In(m);
|
|
2804
|
+
u.__composerExtend && (T[Re] = u.__composerExtend(T));
|
|
2805
|
+
let p = null;
|
|
2806
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2807
|
+
p = Pn();
|
|
2808
|
+
const P = T;
|
|
2809
|
+
P[xe] && P[xe](p), p.on("*", nt);
|
|
2810
|
+
}
|
|
2811
|
+
return _r() && mr(() => {
|
|
2812
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2813
|
+
p && p.off("*", nt);
|
|
2814
|
+
const D = T;
|
|
2815
|
+
D[Ye] && D[Ye]();
|
|
2816
|
+
}
|
|
2817
|
+
const P = T[Re];
|
|
2818
|
+
P && (P(), delete T[Re]);
|
|
2819
|
+
}), T;
|
|
2820
|
+
}
|
|
2821
|
+
const l = n;
|
|
2822
|
+
let c = l.__getInstance(t);
|
|
2823
|
+
if (c == null) {
|
|
2824
|
+
const u = j({}, e);
|
|
2825
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), c = In(u), l.__composerExtend && (c[Re] = l.__composerExtend(c)), wa(l, t, c), l.__setInstance(t, c);
|
|
2826
|
+
} else
|
|
2827
|
+
process.env.NODE_ENV !== "production" && o === "local" && ae($e(re.DUPLICATE_USE_I18N_CALLING));
|
|
2828
|
+
return c;
|
|
2829
|
+
}
|
|
2830
|
+
function ka(e) {
|
|
2831
|
+
const t = Er(e.isCE ? ya : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2832
|
+
if (!t)
|
|
2833
|
+
throw ye(e.isCE ? J.NOT_INSTALLED_WITH_PROVIDE : J.UNEXPECTED_ERROR);
|
|
2834
|
+
return t;
|
|
2835
|
+
}
|
|
2836
|
+
function Ma(e, t) {
|
|
2837
|
+
return Mt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2838
|
+
}
|
|
2839
|
+
function Fa(e) {
|
|
2840
|
+
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2841
|
+
}
|
|
2842
|
+
function An(e, t, n = !1) {
|
|
2843
|
+
let r = null;
|
|
2844
|
+
const s = t.root;
|
|
2845
|
+
let o = Ua(t, n);
|
|
2846
|
+
for (; o != null; ) {
|
|
2847
|
+
const l = e;
|
|
2848
|
+
if (e.mode === "composition")
|
|
2849
|
+
r = l.__getInstance(o);
|
|
2850
|
+
else if (__VUE_I18N_LEGACY_API__) {
|
|
2851
|
+
const c = l.__getInstance(o);
|
|
2852
|
+
c != null && (r = c.__composer, n && r && !r[nr] && (r = null));
|
|
2853
|
+
}
|
|
2854
|
+
if (r != null || s === o)
|
|
2855
|
+
break;
|
|
2856
|
+
o = o.parent;
|
|
2857
|
+
}
|
|
2858
|
+
return r;
|
|
2859
|
+
}
|
|
2860
|
+
function Ua(e, t = !1) {
|
|
2861
|
+
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2862
|
+
}
|
|
2863
|
+
function wa(e, t, n) {
|
|
2864
|
+
let r = null;
|
|
2865
|
+
pr(() => {
|
|
2866
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2867
|
+
t.__VUE_I18N__ = n, r = Pn();
|
|
2868
|
+
const s = n;
|
|
2869
|
+
s[xe] && s[xe](r), r.on("*", nt);
|
|
2870
|
+
}
|
|
2871
|
+
}, t), Nr(() => {
|
|
2872
|
+
const s = n;
|
|
2873
|
+
process.env.NODE_ENV !== "production" && (r && r.off("*", nt), s[Ye] && s[Ye](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
2874
|
+
const o = s[Re];
|
|
2875
|
+
o && (o(), delete s[Re]);
|
|
2876
|
+
}, t);
|
|
2877
|
+
}
|
|
2878
|
+
j({
|
|
2879
|
+
value: {
|
|
2880
|
+
type: [Number, Date],
|
|
2881
|
+
required: !0
|
|
2882
|
+
},
|
|
2883
|
+
format: {
|
|
2884
|
+
type: [String, Object]
|
|
2885
|
+
}
|
|
2886
|
+
}, $t);
|
|
2887
|
+
Aa();
|
|
2888
|
+
na(Ms);
|
|
2889
|
+
ra(Zs);
|
|
2890
|
+
sa(Ys);
|
|
2891
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2892
|
+
const e = pe();
|
|
2893
|
+
e.__INTLIFY__ = !0, Fs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2894
|
+
}
|
|
2895
|
+
process.env.NODE_ENV;
|
|
2896
|
+
const Ga = (e, t) => {
|
|
2897
|
+
const n = e.__vccOpts || e;
|
|
2898
|
+
for (const [r, s] of t)
|
|
2899
|
+
n[r] = s;
|
|
2900
|
+
return n;
|
|
2901
|
+
};
|
|
2902
|
+
export {
|
|
2903
|
+
Ga as _,
|
|
2904
|
+
Kt as u
|
|
2905
|
+
};
|