@feedmepos/mf-report 5.22.1-remy.1 → 5.22.1-remy.2

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