china-mobile-international-custom-components 0.0.32 → 0.0.34

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.
@@ -0,0 +1,4062 @@
1
+ import { w as Tr } from "./index.bCzIhWFw.js";
2
+ import * as ht from "vue";
3
+ import { effectScope as br, ref as Ir, shallowRef as Or, computed as he, watch as Ot, isRef as Ar, defineComponent as Ut, h as wn, Fragment as Un, inject as Cr, onMounted as vr, onUnmounted as Dr, createVNode as Sr, Text as Pr, getCurrentInstance as Fr, createElementBlock as yr, openBlock as kr, normalizeClass as Rr, toDisplayString as Mr } from "vue";
4
+ import { A as qe } from "./config.DE5PZU2F.js";
5
+ import { ElMessageBox as wr } from "element-plus";
6
+ import { Cookie as Ur } from "js-cookie";
7
+ import { _ as Vr } from "./_plugin-vue_export-helper.CHgC5LLL.js";
8
+ import '../assets/index3.css';function ue(e, t) {
9
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
10
+ }
11
+ const zt = {};
12
+ function Vt(e) {
13
+ zt[e] || (zt[e] = !0, ue(e));
14
+ }
15
+ const oe = typeof window < "u";
16
+ let ee, Te;
17
+ if (process.env.NODE_ENV !== "production") {
18
+ const e = oe && window.performance;
19
+ e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
20
+ e.clearMeasures && (ee = (t) => {
21
+ e.mark(t);
22
+ }, Te = (t, n, r) => {
23
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
24
+ });
25
+ }
26
+ const $r = /\{([0-9a-zA-Z]+)\}/g;
27
+ function et(e, ...t) {
28
+ return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace($r, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
29
+ }
30
+ const ce = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Br = (e, t, n) => xr({ l: e, k: t, s: n }), xr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), Wr = (e) => $t(e) === "[object Date]", Se = (e) => $t(e) === "[object RegExp]", tt = (e) => k(e) && Object.keys(e).length === 0, J = Object.assign, Gr = Object.create, $ = (e = null) => Gr(e);
31
+ let en;
32
+ const Le = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
33
+ function tn(e) {
34
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
35
+ }
36
+ function nn(e) {
37
+ return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
38
+ }
39
+ function Yr(e) {
40
+ return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, a, s) => `${a}="${nn(s)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, a, s) => `${a}='${nn(s)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ue("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), [
41
+ // In href, src, action, formaction attributes
42
+ /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
43
+ // In style attributes within url()
44
+ /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
45
+ ].forEach((r) => {
46
+ e = e.replace(r, "$1javascript&#58;");
47
+ }), e;
48
+ }
49
+ const Hr = Object.prototype.hasOwnProperty;
50
+ function se(e, t) {
51
+ return Hr.call(e, t);
52
+ }
53
+ const G = Array.isArray, B = (e) => typeof e == "function", I = (e) => typeof e == "string", M = (e) => typeof e == "boolean", R = (e) => e !== null && typeof e == "object", Kr = (e) => R(e) && B(e.then) && B(e.catch), Vn = Object.prototype.toString, $t = (e) => Vn.call(e), k = (e) => $t(e) === "[object Object]", jr = (e) => e == null ? "" : G(e) || k(e) && e.toString === Vn ? JSON.stringify(e, null, 2) : String(e);
54
+ function Bt(e, t = "") {
55
+ return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
56
+ }
57
+ const rn = 2;
58
+ function Xr(e, t = 0, n = e.length) {
59
+ const r = e.split(/\r?\n/);
60
+ let a = 0;
61
+ const s = [];
62
+ for (let o = 0; o < r.length; o++)
63
+ if (a += r[o].length + 1, a >= t) {
64
+ for (let i = o - rn; i <= o + rn || n > a; i++) {
65
+ if (i < 0 || i >= r.length)
66
+ continue;
67
+ const c = i + 1;
68
+ s.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[i]}`);
69
+ const E = r[i].length;
70
+ if (i === o) {
71
+ const b = t - (a - E) + 1, L = Math.max(1, n > a ? E - b : n - t);
72
+ s.push(" | " + " ".repeat(b) + "^".repeat(L));
73
+ } else if (i > o) {
74
+ if (n > a) {
75
+ const b = Math.max(Math.min(n - a, E), 1);
76
+ s.push(" | " + "^".repeat(b));
77
+ }
78
+ a += E + 1;
79
+ }
80
+ }
81
+ break;
82
+ }
83
+ return s.join(`
84
+ `);
85
+ }
86
+ function xt() {
87
+ const e = /* @__PURE__ */ new Map();
88
+ return {
89
+ events: e,
90
+ on(n, r) {
91
+ const a = e.get(n);
92
+ a && a.push(r) || e.set(n, [r]);
93
+ },
94
+ off(n, r) {
95
+ const a = e.get(n);
96
+ a && a.splice(a.indexOf(r) >>> 0, 1);
97
+ },
98
+ emit(n, r) {
99
+ (e.get(n) || []).slice().map((a) => a(r)), (e.get("*") || []).slice().map((a) => a(n, r));
100
+ }
101
+ };
102
+ }
103
+ const Xe = (e) => !R(e) || G(e);
104
+ function Ze(e, t) {
105
+ if (Xe(e) || Xe(t))
106
+ throw new Error("Invalid value");
107
+ const n = [{ src: e, des: t }];
108
+ for (; n.length; ) {
109
+ const { src: r, des: a } = n.pop();
110
+ Object.keys(r).forEach((s) => {
111
+ s !== "__proto__" && (R(r[s]) && !R(a[s]) && (a[s] = Array.isArray(r[s]) ? [] : $()), Xe(a[s]) || Xe(r[s]) ? a[s] = r[s] : n.push({ src: r[s], des: a[s] }));
112
+ });
113
+ }
114
+ }
115
+ function Jr(e, t, n) {
116
+ return { line: e, column: t, offset: n };
117
+ }
118
+ function At(e, t, n) {
119
+ return { start: e, end: t };
120
+ }
121
+ const P = {
122
+ // tokenizer error codes
123
+ EXPECTED_TOKEN: 1,
124
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
125
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
126
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
127
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
128
+ UNBALANCED_CLOSING_BRACE: 6,
129
+ UNTERMINATED_CLOSING_BRACE: 7,
130
+ EMPTY_PLACEHOLDER: 8,
131
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
132
+ INVALID_LINKED_FORMAT: 10,
133
+ // parser error codes
134
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
135
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
136
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
137
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
138
+ // generator error codes
139
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
140
+ // minifier error codes
141
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
142
+ }, Qr = 17, qr = {
143
+ // tokenizer error messages
144
+ [P.EXPECTED_TOKEN]: "Expected token: '{0}'",
145
+ [P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
146
+ [P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
147
+ [P.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
148
+ [P.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
149
+ [P.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
150
+ [P.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
151
+ [P.EMPTY_PLACEHOLDER]: "Empty placeholder",
152
+ [P.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
153
+ [P.INVALID_LINKED_FORMAT]: "Invalid linked format",
154
+ // parser error messages
155
+ [P.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
156
+ [P.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
157
+ [P.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
158
+ [P.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
159
+ // generator error messages
160
+ [P.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
161
+ // minimizer error messages
162
+ [P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
163
+ };
164
+ function ke(e, t, n = {}) {
165
+ const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? et((a || qr)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
166
+ return i.code = e, t && (i.location = t), i.domain = r, i;
167
+ }
168
+ function Zr(e) {
169
+ throw e;
170
+ }
171
+ const zr = /<\/?[\w\s="/.':;#-\/]+>/, ea = (e) => zr.test(e), le = " ", ta = "\r", Q = `
172
+ `, na = "\u2028", ra = "\u2029";
173
+ function aa(e) {
174
+ const t = e;
175
+ let n = 0, r = 1, a = 1, s = 0;
176
+ const o = (g) => t[g] === ta && t[g + 1] === Q, i = (g) => t[g] === Q, c = (g) => t[g] === ra, E = (g) => t[g] === na, b = (g) => o(g) || i(g) || c(g) || E(g), L = () => n, N = () => r, v = () => a, F = () => s, C = (g) => o(g) || c(g) || E(g) ? Q : t[g], D = () => C(n), f = () => C(n + s);
177
+ function m() {
178
+ return s = 0, b(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
179
+ }
180
+ function T() {
181
+ return o(n + s) && s++, s++, t[n + s];
182
+ }
183
+ function d() {
184
+ n = 0, r = 1, a = 1, s = 0;
185
+ }
186
+ function O(g = 0) {
187
+ s = g;
188
+ }
189
+ function A() {
190
+ const g = n + s;
191
+ for (; g !== n; )
192
+ m();
193
+ s = 0;
194
+ }
195
+ return {
196
+ index: L,
197
+ line: N,
198
+ column: v,
199
+ peekOffset: F,
200
+ charAt: C,
201
+ currentChar: D,
202
+ currentPeek: f,
203
+ next: m,
204
+ peek: T,
205
+ reset: d,
206
+ resetPeek: O,
207
+ skipToPeek: A
208
+ };
209
+ }
210
+ const _e = void 0, sa = ".", an = "'", oa = "tokenizer";
211
+ function la(e, t = {}) {
212
+ const n = t.location !== !1, r = aa(e), a = () => r.index(), s = () => Jr(r.line(), r.column(), r.index()), o = s(), i = a(), c = {
213
+ currentType: 13,
214
+ offset: i,
215
+ startLoc: o,
216
+ endLoc: o,
217
+ lastType: 13,
218
+ lastOffset: i,
219
+ lastStartLoc: o,
220
+ lastEndLoc: o,
221
+ braceNest: 0,
222
+ inLinked: !1,
223
+ text: ""
224
+ }, E = () => c, { onError: b } = t;
225
+ function L(l, u, p, ...S) {
226
+ const W = E();
227
+ if (u.column += p, u.offset += p, b) {
228
+ const H = n ? At(W.startLoc, u) : null, w = ke(l, H, {
229
+ domain: oa,
230
+ args: S
231
+ });
232
+ b(w);
233
+ }
234
+ }
235
+ function N(l, u, p) {
236
+ l.endLoc = s(), l.currentType = u;
237
+ const S = { type: u };
238
+ return n && (S.loc = At(l.startLoc, l.endLoc)), p != null && (S.value = p), S;
239
+ }
240
+ const v = (l) => N(
241
+ l,
242
+ 13
243
+ /* TokenTypes.EOF */
244
+ );
245
+ function F(l, u) {
246
+ return l.currentChar() === u ? (l.next(), u) : (L(P.EXPECTED_TOKEN, s(), 0, u), "");
247
+ }
248
+ function C(l) {
249
+ let u = "";
250
+ for (; l.currentPeek() === le || l.currentPeek() === Q; )
251
+ u += l.currentPeek(), l.peek();
252
+ return u;
253
+ }
254
+ function D(l) {
255
+ const u = C(l);
256
+ return l.skipToPeek(), u;
257
+ }
258
+ function f(l) {
259
+ if (l === _e)
260
+ return !1;
261
+ const u = l.charCodeAt(0);
262
+ return u >= 97 && u <= 122 || // a-z
263
+ u >= 65 && u <= 90 || // A-Z
264
+ u === 95;
265
+ }
266
+ function m(l) {
267
+ if (l === _e)
268
+ return !1;
269
+ const u = l.charCodeAt(0);
270
+ return u >= 48 && u <= 57;
271
+ }
272
+ function T(l, u) {
273
+ const { currentType: p } = u;
274
+ if (p !== 2)
275
+ return !1;
276
+ C(l);
277
+ const S = f(l.currentPeek());
278
+ return l.resetPeek(), S;
279
+ }
280
+ function d(l, u) {
281
+ const { currentType: p } = u;
282
+ if (p !== 2)
283
+ return !1;
284
+ C(l);
285
+ const S = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), W = m(S);
286
+ return l.resetPeek(), W;
287
+ }
288
+ function O(l, u) {
289
+ const { currentType: p } = u;
290
+ if (p !== 2)
291
+ return !1;
292
+ C(l);
293
+ const S = l.currentPeek() === an;
294
+ return l.resetPeek(), S;
295
+ }
296
+ function A(l, u) {
297
+ const { currentType: p } = u;
298
+ if (p !== 7)
299
+ return !1;
300
+ C(l);
301
+ const S = l.currentPeek() === ".";
302
+ return l.resetPeek(), S;
303
+ }
304
+ function g(l, u) {
305
+ const { currentType: p } = u;
306
+ if (p !== 8)
307
+ return !1;
308
+ C(l);
309
+ const S = f(l.currentPeek());
310
+ return l.resetPeek(), S;
311
+ }
312
+ function y(l, u) {
313
+ const { currentType: p } = u;
314
+ if (!(p === 7 || p === 11))
315
+ return !1;
316
+ C(l);
317
+ const S = l.currentPeek() === ":";
318
+ return l.resetPeek(), S;
319
+ }
320
+ function U(l, u) {
321
+ const { currentType: p } = u;
322
+ if (p !== 9)
323
+ return !1;
324
+ const S = () => {
325
+ const H = l.currentPeek();
326
+ return H === "{" ? f(l.peek()) : H === "@" || H === "|" || H === ":" || H === "." || H === le || !H ? !1 : H === Q ? (l.peek(), S()) : ae(l, !1);
327
+ }, W = S();
328
+ return l.resetPeek(), W;
329
+ }
330
+ function X(l) {
331
+ C(l);
332
+ const u = l.currentPeek() === "|";
333
+ return l.resetPeek(), u;
334
+ }
335
+ function ae(l, u = !0) {
336
+ const p = (W = !1, H = "") => {
337
+ const w = l.currentPeek();
338
+ return w === "{" || w === "@" || !w ? W : w === "|" ? !(H === le || H === Q) : w === le ? (l.peek(), p(!0, le)) : w === Q ? (l.peek(), p(!0, Q)) : !0;
339
+ }, S = p();
340
+ return u && l.resetPeek(), S;
341
+ }
342
+ function Y(l, u) {
343
+ const p = l.currentChar();
344
+ return p === _e ? _e : u(p) ? (l.next(), p) : null;
345
+ }
346
+ function Oe(l) {
347
+ const u = l.charCodeAt(0);
348
+ return u >= 97 && u <= 122 || // a-z
349
+ u >= 65 && u <= 90 || // A-Z
350
+ u >= 48 && u <= 57 || // 0-9
351
+ u === 95 || // _
352
+ u === 36;
353
+ }
354
+ function at(l) {
355
+ return Y(l, Oe);
356
+ }
357
+ function st(l) {
358
+ const u = l.charCodeAt(0);
359
+ return u >= 97 && u <= 122 || // a-z
360
+ u >= 65 && u <= 90 || // A-Z
361
+ u >= 48 && u <= 57 || // 0-9
362
+ u === 95 || // _
363
+ u === 36 || // $
364
+ u === 45;
365
+ }
366
+ function ot(l) {
367
+ return Y(l, st);
368
+ }
369
+ function lt(l) {
370
+ const u = l.charCodeAt(0);
371
+ return u >= 48 && u <= 57;
372
+ }
373
+ function it(l) {
374
+ return Y(l, lt);
375
+ }
376
+ function ut(l) {
377
+ const u = l.charCodeAt(0);
378
+ return u >= 48 && u <= 57 || // 0-9
379
+ u >= 65 && u <= 70 || // A-F
380
+ u >= 97 && u <= 102;
381
+ }
382
+ function fe(l) {
383
+ return Y(l, ut);
384
+ }
385
+ function Re(l) {
386
+ let u = "", p = "";
387
+ for (; u = it(l); )
388
+ p += u;
389
+ return p;
390
+ }
391
+ function ct(l) {
392
+ let u = "";
393
+ for (; ; ) {
394
+ const p = l.currentChar();
395
+ if (p === "{" || p === "}" || p === "@" || p === "|" || !p)
396
+ break;
397
+ if (p === le || p === Q)
398
+ if (ae(l))
399
+ u += p, l.next();
400
+ else {
401
+ if (X(l))
402
+ break;
403
+ u += p, l.next();
404
+ }
405
+ else
406
+ u += p, l.next();
407
+ }
408
+ return u;
409
+ }
410
+ function ft(l) {
411
+ D(l);
412
+ let u = "", p = "";
413
+ for (; u = ot(l); )
414
+ p += u;
415
+ const S = l.currentChar();
416
+ if (S && S !== "}" && S !== _e && S !== le && S !== Q && S !== " ") {
417
+ const W = Ke(l);
418
+ return L(P.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, p + W), p + W;
419
+ }
420
+ return l.currentChar() === _e && L(P.UNTERMINATED_CLOSING_BRACE, s(), 0), p;
421
+ }
422
+ function _t(l) {
423
+ D(l);
424
+ let u = "";
425
+ return l.currentChar() === "-" ? (l.next(), u += `-${Re(l)}`) : u += Re(l), l.currentChar() === _e && L(P.UNTERMINATED_CLOSING_BRACE, s(), 0), u;
426
+ }
427
+ function mt(l) {
428
+ return l !== an && l !== Q;
429
+ }
430
+ function qt(l) {
431
+ D(l), F(l, "'");
432
+ let u = "", p = "";
433
+ for (; u = Y(l, mt); )
434
+ u === "\\" ? p += dt(l) : p += u;
435
+ const S = l.currentChar();
436
+ return S === Q || S === _e ? (L(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), S === Q && (l.next(), F(l, "'")), p) : (F(l, "'"), p);
437
+ }
438
+ function dt(l) {
439
+ const u = l.currentChar();
440
+ switch (u) {
441
+ case "\\":
442
+ case "'":
443
+ return l.next(), `\\${u}`;
444
+ case "u":
445
+ return He(l, u, 4);
446
+ case "U":
447
+ return He(l, u, 6);
448
+ default:
449
+ return L(P.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, u), "";
450
+ }
451
+ }
452
+ function He(l, u, p) {
453
+ F(l, u);
454
+ let S = "";
455
+ for (let W = 0; W < p; W++) {
456
+ const H = fe(l);
457
+ if (!H) {
458
+ L(P.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${u}${S}${l.currentChar()}`);
459
+ break;
460
+ }
461
+ S += H;
462
+ }
463
+ return `\\${u}${S}`;
464
+ }
465
+ function Et(l) {
466
+ return l !== "{" && l !== "}" && l !== le && l !== Q;
467
+ }
468
+ function Ke(l) {
469
+ D(l);
470
+ let u = "", p = "";
471
+ for (; u = Y(l, Et); )
472
+ p += u;
473
+ return p;
474
+ }
475
+ function gt(l) {
476
+ let u = "", p = "";
477
+ for (; u = at(l); )
478
+ p += u;
479
+ return p;
480
+ }
481
+ function pt(l) {
482
+ const u = (p) => {
483
+ const S = l.currentChar();
484
+ return S === "{" || S === "@" || S === "|" || S === "(" || S === ")" || !S || S === le ? p : (p += S, l.next(), u(p));
485
+ };
486
+ return u("");
487
+ }
488
+ function Me(l) {
489
+ D(l);
490
+ const u = F(
491
+ l,
492
+ "|"
493
+ /* TokenChars.Pipe */
494
+ );
495
+ return D(l), u;
496
+ }
497
+ function we(l, u) {
498
+ let p = null;
499
+ switch (l.currentChar()) {
500
+ case "{":
501
+ return u.braceNest >= 1 && L(P.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), l.next(), p = N(
502
+ u,
503
+ 2,
504
+ "{"
505
+ /* TokenChars.BraceLeft */
506
+ ), D(l), u.braceNest++, p;
507
+ case "}":
508
+ return u.braceNest > 0 && u.currentType === 2 && L(P.EMPTY_PLACEHOLDER, s(), 0), l.next(), p = N(
509
+ u,
510
+ 3,
511
+ "}"
512
+ /* TokenChars.BraceRight */
513
+ ), u.braceNest--, u.braceNest > 0 && D(l), u.inLinked && u.braceNest === 0 && (u.inLinked = !1), p;
514
+ case "@":
515
+ return u.braceNest > 0 && L(P.UNTERMINATED_CLOSING_BRACE, s(), 0), p = ge(l, u) || v(u), u.braceNest = 0, p;
516
+ default: {
517
+ let W = !0, H = !0, w = !0;
518
+ if (X(l))
519
+ return u.braceNest > 0 && L(P.UNTERMINATED_CLOSING_BRACE, s(), 0), p = N(u, 1, Me(l)), u.braceNest = 0, u.inLinked = !1, p;
520
+ if (u.braceNest > 0 && (u.currentType === 4 || u.currentType === 5 || u.currentType === 6))
521
+ return L(P.UNTERMINATED_CLOSING_BRACE, s(), 0), u.braceNest = 0, Ue(l, u);
522
+ if (W = T(l, u))
523
+ return p = N(u, 4, ft(l)), D(l), p;
524
+ if (H = d(l, u))
525
+ return p = N(u, 5, _t(l)), D(l), p;
526
+ if (w = O(l, u))
527
+ return p = N(u, 6, qt(l)), D(l), p;
528
+ if (!W && !H && !w)
529
+ return p = N(u, 12, Ke(l)), L(P.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, p.value), D(l), p;
530
+ break;
531
+ }
532
+ }
533
+ return p;
534
+ }
535
+ function ge(l, u) {
536
+ const { currentType: p } = u;
537
+ let S = null;
538
+ const W = l.currentChar();
539
+ switch ((p === 7 || p === 8 || p === 11 || p === 9) && (W === Q || W === le) && L(P.INVALID_LINKED_FORMAT, s(), 0), W) {
540
+ case "@":
541
+ return l.next(), S = N(
542
+ u,
543
+ 7,
544
+ "@"
545
+ /* TokenChars.LinkedAlias */
546
+ ), u.inLinked = !0, S;
547
+ case ".":
548
+ return D(l), l.next(), N(
549
+ u,
550
+ 8,
551
+ "."
552
+ /* TokenChars.LinkedDot */
553
+ );
554
+ case ":":
555
+ return D(l), l.next(), N(
556
+ u,
557
+ 9,
558
+ ":"
559
+ /* TokenChars.LinkedDelimiter */
560
+ );
561
+ default:
562
+ return X(l) ? (S = N(u, 1, Me(l)), u.braceNest = 0, u.inLinked = !1, S) : A(l, u) || y(l, u) ? (D(l), ge(l, u)) : g(l, u) ? (D(l), N(u, 11, gt(l))) : U(l, u) ? (D(l), W === "{" ? we(l, u) || S : N(u, 10, pt(l))) : (p === 7 && L(P.INVALID_LINKED_FORMAT, s(), 0), u.braceNest = 0, u.inLinked = !1, Ue(l, u));
563
+ }
564
+ }
565
+ function Ue(l, u) {
566
+ let p = {
567
+ type: 13
568
+ /* TokenTypes.EOF */
569
+ };
570
+ if (u.braceNest > 0)
571
+ return we(l, u) || v(u);
572
+ if (u.inLinked)
573
+ return ge(l, u) || v(u);
574
+ switch (l.currentChar()) {
575
+ case "{":
576
+ return we(l, u) || v(u);
577
+ case "}":
578
+ return L(P.UNBALANCED_CLOSING_BRACE, s(), 0), l.next(), N(
579
+ u,
580
+ 3,
581
+ "}"
582
+ /* TokenChars.BraceRight */
583
+ );
584
+ case "@":
585
+ return ge(l, u) || v(u);
586
+ default: {
587
+ if (X(l))
588
+ return p = N(u, 1, Me(l)), u.braceNest = 0, u.inLinked = !1, p;
589
+ if (ae(l))
590
+ return N(u, 0, ct(l));
591
+ break;
592
+ }
593
+ }
594
+ return p;
595
+ }
596
+ function Nt() {
597
+ const { currentType: l, offset: u, startLoc: p, endLoc: S } = c;
598
+ return c.lastType = l, c.lastOffset = u, c.lastStartLoc = p, c.lastEndLoc = S, c.offset = a(), c.startLoc = s(), r.currentChar() === _e ? N(
599
+ c,
600
+ 13
601
+ /* TokenTypes.EOF */
602
+ ) : Ue(r, c);
603
+ }
604
+ return {
605
+ nextToken: Nt,
606
+ currentOffset: a,
607
+ currentPosition: s,
608
+ context: E
609
+ };
610
+ }
611
+ const ia = "parser", ua = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
612
+ function ca(e, t, n) {
613
+ switch (e) {
614
+ case "\\\\":
615
+ return "\\";
616
+ // eslint-disable-next-line no-useless-escape
617
+ case "\\'":
618
+ return "'";
619
+ default: {
620
+ const r = parseInt(t || n, 16);
621
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
622
+ }
623
+ }
624
+ }
625
+ function fa(e = {}) {
626
+ const t = e.location !== !1, { onError: n } = e;
627
+ function r(f, m, T, d, ...O) {
628
+ const A = f.currentPosition();
629
+ if (A.offset += d, A.column += d, n) {
630
+ const g = t ? At(T, A) : null, y = ke(m, g, {
631
+ domain: ia,
632
+ args: O
633
+ });
634
+ n(y);
635
+ }
636
+ }
637
+ function a(f, m, T) {
638
+ const d = { type: f };
639
+ return t && (d.start = m, d.end = m, d.loc = { start: T, end: T }), d;
640
+ }
641
+ function s(f, m, T, d) {
642
+ t && (f.end = m, f.loc && (f.loc.end = T));
643
+ }
644
+ function o(f, m) {
645
+ const T = f.context(), d = a(3, T.offset, T.startLoc);
646
+ return d.value = m, s(d, f.currentOffset(), f.currentPosition()), d;
647
+ }
648
+ function i(f, m) {
649
+ const T = f.context(), { lastOffset: d, lastStartLoc: O } = T, A = a(5, d, O);
650
+ return A.index = parseInt(m, 10), f.nextToken(), s(A, f.currentOffset(), f.currentPosition()), A;
651
+ }
652
+ function c(f, m) {
653
+ const T = f.context(), { lastOffset: d, lastStartLoc: O } = T, A = a(4, d, O);
654
+ return A.key = m, f.nextToken(), s(A, f.currentOffset(), f.currentPosition()), A;
655
+ }
656
+ function E(f, m) {
657
+ const T = f.context(), { lastOffset: d, lastStartLoc: O } = T, A = a(9, d, O);
658
+ return A.value = m.replace(ua, ca), f.nextToken(), s(A, f.currentOffset(), f.currentPosition()), A;
659
+ }
660
+ function b(f) {
661
+ const m = f.nextToken(), T = f.context(), { lastOffset: d, lastStartLoc: O } = T, A = a(8, d, O);
662
+ return m.type !== 11 ? (r(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), A.value = "", s(A, d, O), {
663
+ nextConsumeToken: m,
664
+ node: A
665
+ }) : (m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, ie(m)), A.value = m.value || "", s(A, f.currentOffset(), f.currentPosition()), {
666
+ node: A
667
+ });
668
+ }
669
+ function L(f, m) {
670
+ const T = f.context(), d = a(7, T.offset, T.startLoc);
671
+ return d.value = m, s(d, f.currentOffset(), f.currentPosition()), d;
672
+ }
673
+ function N(f) {
674
+ const m = f.context(), T = a(6, m.offset, m.startLoc);
675
+ let d = f.nextToken();
676
+ if (d.type === 8) {
677
+ const O = b(f);
678
+ T.modifier = O.node, d = O.nextConsumeToken || f.nextToken();
679
+ }
680
+ switch (d.type !== 9 && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), d = f.nextToken(), d.type === 2 && (d = f.nextToken()), d.type) {
681
+ case 10:
682
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), T.key = L(f, d.value || "");
683
+ break;
684
+ case 4:
685
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), T.key = c(f, d.value || "");
686
+ break;
687
+ case 5:
688
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), T.key = i(f, d.value || "");
689
+ break;
690
+ case 6:
691
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), T.key = E(f, d.value || "");
692
+ break;
693
+ default: {
694
+ r(f, P.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
695
+ const O = f.context(), A = a(7, O.offset, O.startLoc);
696
+ return A.value = "", s(A, O.offset, O.startLoc), T.key = A, s(T, O.offset, O.startLoc), {
697
+ nextConsumeToken: d,
698
+ node: T
699
+ };
700
+ }
701
+ }
702
+ return s(T, f.currentOffset(), f.currentPosition()), {
703
+ node: T
704
+ };
705
+ }
706
+ function v(f) {
707
+ const m = f.context(), T = m.currentType === 1 ? f.currentOffset() : m.offset, d = m.currentType === 1 ? m.endLoc : m.startLoc, O = a(2, T, d);
708
+ O.items = [];
709
+ let A = null;
710
+ do {
711
+ const U = A || f.nextToken();
712
+ switch (A = null, U.type) {
713
+ case 0:
714
+ U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), O.items.push(o(f, U.value || ""));
715
+ break;
716
+ case 5:
717
+ U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), O.items.push(i(f, U.value || ""));
718
+ break;
719
+ case 4:
720
+ U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), O.items.push(c(f, U.value || ""));
721
+ break;
722
+ case 6:
723
+ U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), O.items.push(E(f, U.value || ""));
724
+ break;
725
+ case 7: {
726
+ const X = N(f);
727
+ O.items.push(X.node), A = X.nextConsumeToken || null;
728
+ break;
729
+ }
730
+ }
731
+ } while (m.currentType !== 13 && m.currentType !== 1);
732
+ const g = m.currentType === 1 ? m.lastOffset : f.currentOffset(), y = m.currentType === 1 ? m.lastEndLoc : f.currentPosition();
733
+ return s(O, g, y), O;
734
+ }
735
+ function F(f, m, T, d) {
736
+ const O = f.context();
737
+ let A = d.items.length === 0;
738
+ const g = a(1, m, T);
739
+ g.cases = [], g.cases.push(d);
740
+ do {
741
+ const y = v(f);
742
+ A || (A = y.items.length === 0), g.cases.push(y);
743
+ } while (O.currentType !== 13);
744
+ return A && r(f, P.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), s(g, f.currentOffset(), f.currentPosition()), g;
745
+ }
746
+ function C(f) {
747
+ const m = f.context(), { offset: T, startLoc: d } = m, O = v(f);
748
+ return m.currentType === 13 ? O : F(f, T, d, O);
749
+ }
750
+ function D(f) {
751
+ const m = la(f, J({}, e)), T = m.context(), d = a(0, T.offset, T.startLoc);
752
+ return t && d.loc && (d.loc.source = f), d.body = C(m), e.onCacheKey && (d.cacheKey = e.onCacheKey(f)), T.currentType !== 13 && r(m, P.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, f[T.offset] || ""), s(d, m.currentOffset(), m.currentPosition()), d;
753
+ }
754
+ return { parse: D };
755
+ }
756
+ function ie(e) {
757
+ if (e.type === 13)
758
+ return "EOF";
759
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
760
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
761
+ }
762
+ function _a(e, t = {}) {
763
+ const n = {
764
+ ast: e,
765
+ helpers: /* @__PURE__ */ new Set()
766
+ };
767
+ return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
768
+ }
769
+ function sn(e, t) {
770
+ for (let n = 0; n < e.length; n++)
771
+ Wt(e[n], t);
772
+ }
773
+ function Wt(e, t) {
774
+ switch (e.type) {
775
+ case 1:
776
+ sn(e.cases, t), t.helper(
777
+ "plural"
778
+ /* HelperNameMap.PLURAL */
779
+ );
780
+ break;
781
+ case 2:
782
+ sn(e.items, t);
783
+ break;
784
+ case 6: {
785
+ Wt(e.key, t), t.helper(
786
+ "linked"
787
+ /* HelperNameMap.LINKED */
788
+ ), t.helper(
789
+ "type"
790
+ /* HelperNameMap.TYPE */
791
+ );
792
+ break;
793
+ }
794
+ case 5:
795
+ t.helper(
796
+ "interpolate"
797
+ /* HelperNameMap.INTERPOLATE */
798
+ ), t.helper(
799
+ "list"
800
+ /* HelperNameMap.LIST */
801
+ );
802
+ break;
803
+ case 4:
804
+ t.helper(
805
+ "interpolate"
806
+ /* HelperNameMap.INTERPOLATE */
807
+ ), t.helper(
808
+ "named"
809
+ /* HelperNameMap.NAMED */
810
+ );
811
+ break;
812
+ }
813
+ }
814
+ function ma(e, t = {}) {
815
+ const n = _a(e);
816
+ n.helper(
817
+ "normalize"
818
+ /* HelperNameMap.NORMALIZE */
819
+ ), e.body && Wt(e.body, n);
820
+ const r = n.context();
821
+ e.helpers = Array.from(r.helpers);
822
+ }
823
+ function da(e) {
824
+ const t = e.body;
825
+ return t.type === 2 ? on(t) : t.cases.forEach((n) => on(n)), e;
826
+ }
827
+ function on(e) {
828
+ if (e.items.length === 1) {
829
+ const t = e.items[0];
830
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
831
+ } else {
832
+ const t = [];
833
+ for (let n = 0; n < e.items.length; n++) {
834
+ const r = e.items[n];
835
+ if (!(r.type === 3 || r.type === 9) || r.value == null)
836
+ break;
837
+ t.push(r.value);
838
+ }
839
+ if (t.length === e.items.length) {
840
+ e.static = Bt(t);
841
+ for (let n = 0; n < e.items.length; n++) {
842
+ const r = e.items[n];
843
+ (r.type === 3 || r.type === 9) && delete r.value;
844
+ }
845
+ }
846
+ }
847
+ }
848
+ const Ea = "minifier";
849
+ function ve(e) {
850
+ switch (e.t = e.type, e.type) {
851
+ case 0: {
852
+ const t = e;
853
+ ve(t.body), t.b = t.body, delete t.body;
854
+ break;
855
+ }
856
+ case 1: {
857
+ const t = e, n = t.cases;
858
+ for (let r = 0; r < n.length; r++)
859
+ ve(n[r]);
860
+ t.c = n, delete t.cases;
861
+ break;
862
+ }
863
+ case 2: {
864
+ const t = e, n = t.items;
865
+ for (let r = 0; r < n.length; r++)
866
+ ve(n[r]);
867
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
868
+ break;
869
+ }
870
+ case 3:
871
+ case 9:
872
+ case 8:
873
+ case 7: {
874
+ const t = e;
875
+ t.value && (t.v = t.value, delete t.value);
876
+ break;
877
+ }
878
+ case 6: {
879
+ const t = e;
880
+ ve(t.key), t.k = t.key, delete t.key, t.modifier && (ve(t.modifier), t.m = t.modifier, delete t.modifier);
881
+ break;
882
+ }
883
+ case 5: {
884
+ const t = e;
885
+ t.i = t.index, delete t.index;
886
+ break;
887
+ }
888
+ case 4: {
889
+ const t = e;
890
+ t.k = t.key, delete t.key;
891
+ break;
892
+ }
893
+ default:
894
+ if (process.env.NODE_ENV !== "production")
895
+ throw ke(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
896
+ domain: Ea,
897
+ args: [e.type]
898
+ });
899
+ }
900
+ delete e.type;
901
+ }
902
+ const ga = "parser";
903
+ function pa(e, t) {
904
+ const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
905
+ filename: n,
906
+ code: "",
907
+ column: 1,
908
+ line: 1,
909
+ offset: 0,
910
+ map: void 0,
911
+ breakLineCode: r,
912
+ needIndent: a,
913
+ indentLevel: 0
914
+ };
915
+ s && e.loc && (o.source = e.loc.source);
916
+ const i = () => o;
917
+ function c(C, D) {
918
+ o.code += C;
919
+ }
920
+ function E(C, D = !0) {
921
+ const f = D ? r : "";
922
+ c(a ? f + " ".repeat(C) : f);
923
+ }
924
+ function b(C = !0) {
925
+ const D = ++o.indentLevel;
926
+ C && E(D);
927
+ }
928
+ function L(C = !0) {
929
+ const D = --o.indentLevel;
930
+ C && E(D);
931
+ }
932
+ function N() {
933
+ E(o.indentLevel);
934
+ }
935
+ return {
936
+ context: i,
937
+ push: c,
938
+ indent: b,
939
+ deindent: L,
940
+ newline: N,
941
+ helper: (C) => `_${C}`,
942
+ needIndent: () => o.needIndent
943
+ };
944
+ }
945
+ function Na(e, t) {
946
+ const { helper: n } = e;
947
+ e.push(`${n(
948
+ "linked"
949
+ /* HelperNameMap.LINKED */
950
+ )}(`), Pe(e, t.key), t.modifier ? (e.push(", "), Pe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
951
+ }
952
+ function ha(e, t) {
953
+ const { helper: n, needIndent: r } = e;
954
+ e.push(`${n(
955
+ "normalize"
956
+ /* HelperNameMap.NORMALIZE */
957
+ )}([`), e.indent(r());
958
+ const a = t.items.length;
959
+ for (let s = 0; s < a && (Pe(e, t.items[s]), s !== a - 1); s++)
960
+ e.push(", ");
961
+ e.deindent(r()), e.push("])");
962
+ }
963
+ function La(e, t) {
964
+ const { helper: n, needIndent: r } = e;
965
+ if (t.cases.length > 1) {
966
+ e.push(`${n(
967
+ "plural"
968
+ /* HelperNameMap.PLURAL */
969
+ )}([`), e.indent(r());
970
+ const a = t.cases.length;
971
+ for (let s = 0; s < a && (Pe(e, t.cases[s]), s !== a - 1); s++)
972
+ e.push(", ");
973
+ e.deindent(r()), e.push("])");
974
+ }
975
+ }
976
+ function Ta(e, t) {
977
+ t.body ? Pe(e, t.body) : e.push("null");
978
+ }
979
+ function Pe(e, t) {
980
+ const { helper: n } = e;
981
+ switch (t.type) {
982
+ case 0:
983
+ Ta(e, t);
984
+ break;
985
+ case 1:
986
+ La(e, t);
987
+ break;
988
+ case 2:
989
+ ha(e, t);
990
+ break;
991
+ case 6:
992
+ Na(e, t);
993
+ break;
994
+ case 8:
995
+ e.push(JSON.stringify(t.value), t);
996
+ break;
997
+ case 7:
998
+ e.push(JSON.stringify(t.value), t);
999
+ break;
1000
+ case 5:
1001
+ e.push(`${n(
1002
+ "interpolate"
1003
+ /* HelperNameMap.INTERPOLATE */
1004
+ )}(${n(
1005
+ "list"
1006
+ /* HelperNameMap.LIST */
1007
+ )}(${t.index}))`, t);
1008
+ break;
1009
+ case 4:
1010
+ e.push(`${n(
1011
+ "interpolate"
1012
+ /* HelperNameMap.INTERPOLATE */
1013
+ )}(${n(
1014
+ "named"
1015
+ /* HelperNameMap.NAMED */
1016
+ )}(${JSON.stringify(t.key)}))`, t);
1017
+ break;
1018
+ case 9:
1019
+ e.push(JSON.stringify(t.value), t);
1020
+ break;
1021
+ case 3:
1022
+ e.push(JSON.stringify(t.value), t);
1023
+ break;
1024
+ default:
1025
+ if (process.env.NODE_ENV !== "production")
1026
+ throw ke(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1027
+ domain: ga,
1028
+ args: [t.type]
1029
+ });
1030
+ }
1031
+ }
1032
+ const ba = (e, t = {}) => {
1033
+ const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
1034
+ t.sourceMap;
1035
+ const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1036
+ `, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = pa(e, {
1037
+ filename: r,
1038
+ breakLineCode: a,
1039
+ needIndent: s
1040
+ });
1041
+ i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(s), o.length > 0 && (i.push(`const { ${Bt(o.map((b) => `${b}: _${b}`), ", ")} } = ctx`), i.newline()), i.push("return "), Pe(i, e), i.deindent(s), i.push("}"), delete e.helpers;
1042
+ const { code: c, map: E } = i.context();
1043
+ return {
1044
+ ast: e,
1045
+ code: c,
1046
+ map: E ? E.toJSON() : void 0
1047
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1048
+ };
1049
+ };
1050
+ function Ia(e, t = {}) {
1051
+ const n = J({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = fa(n).parse(e);
1052
+ return r ? (s && da(i), a && ve(i), { ast: i, code: "" }) : (ma(i, n), ba(i, n));
1053
+ }
1054
+ function Oa() {
1055
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1056
+ }
1057
+ function re(e) {
1058
+ return R(e) && Gt(e) === 0 && (se(e, "b") || se(e, "body"));
1059
+ }
1060
+ const $n = ["b", "body"];
1061
+ function Aa(e) {
1062
+ return de(e, $n);
1063
+ }
1064
+ const Bn = ["c", "cases"];
1065
+ function Ca(e) {
1066
+ return de(e, Bn, []);
1067
+ }
1068
+ const xn = ["s", "static"];
1069
+ function va(e) {
1070
+ return de(e, xn);
1071
+ }
1072
+ const Wn = ["i", "items"];
1073
+ function Da(e) {
1074
+ return de(e, Wn, []);
1075
+ }
1076
+ const Gn = ["t", "type"];
1077
+ function Gt(e) {
1078
+ return de(e, Gn);
1079
+ }
1080
+ const Yn = ["v", "value"];
1081
+ function Je(e, t) {
1082
+ const n = de(e, Yn);
1083
+ if (n != null)
1084
+ return n;
1085
+ throw $e(t);
1086
+ }
1087
+ const Hn = ["m", "modifier"];
1088
+ function Sa(e) {
1089
+ return de(e, Hn);
1090
+ }
1091
+ const Kn = ["k", "key"];
1092
+ function Pa(e) {
1093
+ const t = de(e, Kn);
1094
+ if (t)
1095
+ return t;
1096
+ throw $e(
1097
+ 6
1098
+ /* NodeTypes.Linked */
1099
+ );
1100
+ }
1101
+ function de(e, t, n) {
1102
+ for (let r = 0; r < t.length; r++) {
1103
+ const a = t[r];
1104
+ if (se(e, a) && e[a] != null)
1105
+ return e[a];
1106
+ }
1107
+ return n;
1108
+ }
1109
+ const jn = [
1110
+ ...$n,
1111
+ ...Bn,
1112
+ ...xn,
1113
+ ...Wn,
1114
+ ...Kn,
1115
+ ...Hn,
1116
+ ...Yn,
1117
+ ...Gn
1118
+ ];
1119
+ function $e(e) {
1120
+ return new Error(`unhandled node type: ${e}`);
1121
+ }
1122
+ function Lt(e) {
1123
+ return (n) => Fa(n, e);
1124
+ }
1125
+ function Fa(e, t) {
1126
+ const n = Aa(t);
1127
+ if (n == null)
1128
+ throw $e(
1129
+ 0
1130
+ /* NodeTypes.Resource */
1131
+ );
1132
+ if (Gt(n) === 1) {
1133
+ const s = Ca(n);
1134
+ return e.plural(s.reduce((o, i) => [
1135
+ ...o,
1136
+ ln(e, i)
1137
+ ], []));
1138
+ } else
1139
+ return ln(e, n);
1140
+ }
1141
+ function ln(e, t) {
1142
+ const n = va(t);
1143
+ if (n != null)
1144
+ return e.type === "text" ? n : e.normalize([n]);
1145
+ {
1146
+ const r = Da(t).reduce((a, s) => [...a, Ct(e, s)], []);
1147
+ return e.normalize(r);
1148
+ }
1149
+ }
1150
+ function Ct(e, t) {
1151
+ const n = Gt(t);
1152
+ switch (n) {
1153
+ case 3:
1154
+ return Je(t, n);
1155
+ case 9:
1156
+ return Je(t, n);
1157
+ case 4: {
1158
+ const r = t;
1159
+ if (se(r, "k") && r.k)
1160
+ return e.interpolate(e.named(r.k));
1161
+ if (se(r, "key") && r.key)
1162
+ return e.interpolate(e.named(r.key));
1163
+ throw $e(n);
1164
+ }
1165
+ case 5: {
1166
+ const r = t;
1167
+ if (se(r, "i") && j(r.i))
1168
+ return e.interpolate(e.list(r.i));
1169
+ if (se(r, "index") && j(r.index))
1170
+ return e.interpolate(e.list(r.index));
1171
+ throw $e(n);
1172
+ }
1173
+ case 6: {
1174
+ const r = t, a = Sa(r), s = Pa(r);
1175
+ return e.linked(Ct(e, s), a ? Ct(e, a) : void 0, e.type);
1176
+ }
1177
+ case 7:
1178
+ return Je(t, n);
1179
+ case 8:
1180
+ return Je(t, n);
1181
+ default:
1182
+ throw new Error(`unhandled node on format message part: ${n}`);
1183
+ }
1184
+ }
1185
+ const ya = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1186
+ function ka(e, t) {
1187
+ t && ea(e) && ue(et(ya, { source: e }));
1188
+ }
1189
+ const Ra = (e) => e;
1190
+ let Qe = $();
1191
+ function Ma(e, t = {}) {
1192
+ let n = !1;
1193
+ const r = t.onError || Zr;
1194
+ return t.onError = (a) => {
1195
+ n = !0, r(a);
1196
+ }, { ...Ia(e, t), detectError: n };
1197
+ }
1198
+ // @__NO_SIDE_EFFECTS__
1199
+ function wa(e, t) {
1200
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
1201
+ const n = M(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1202
+ process.env.NODE_ENV !== "production" && ka(e, n);
1203
+ const a = (t.onCacheKey || Ra)(e), s = Qe[a];
1204
+ if (s)
1205
+ return s;
1206
+ const { ast: o, detectError: i } = Ma(e, {
1207
+ ...t,
1208
+ location: process.env.NODE_ENV !== "production",
1209
+ jit: !0
1210
+ }), c = Lt(o);
1211
+ return i ? c : Qe[a] = c;
1212
+ } else {
1213
+ if (process.env.NODE_ENV !== "production" && !re(e))
1214
+ return ue(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
1215
+ const n = e.cacheKey;
1216
+ if (n) {
1217
+ const r = Qe[n];
1218
+ return r || (Qe[n] = Lt(e));
1219
+ } else
1220
+ return Lt(e);
1221
+ }
1222
+ }
1223
+ let Be = null;
1224
+ function Ua(e) {
1225
+ Be = e;
1226
+ }
1227
+ function Va(e, t, n) {
1228
+ Be && Be.emit("i18n:init", {
1229
+ timestamp: Date.now(),
1230
+ i18n: e,
1231
+ version: t,
1232
+ meta: n
1233
+ });
1234
+ }
1235
+ const $a = /* @__PURE__ */ Ba("function:translate");
1236
+ function Ba(e) {
1237
+ return (t) => Be && Be.emit(e, t);
1238
+ }
1239
+ const q = {
1240
+ INVALID_ARGUMENT: Qr,
1241
+ // 17
1242
+ INVALID_DATE_ARGUMENT: 18,
1243
+ INVALID_ISO_DATE_ARGUMENT: 19,
1244
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1245
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1246
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1247
+ NOT_SUPPORT_LOCALE_TYPE: 23
1248
+ }, xa = 24;
1249
+ function me(e) {
1250
+ return ke(e, null, process.env.NODE_ENV !== "production" ? { messages: Wa } : void 0);
1251
+ }
1252
+ const Wa = {
1253
+ [q.INVALID_ARGUMENT]: "Invalid arguments",
1254
+ [q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1255
+ [q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1256
+ [q.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1257
+ [q.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1258
+ [q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1259
+ [q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1260
+ };
1261
+ function Yt(e, t) {
1262
+ return t.locale != null ? un(t.locale) : un(e.locale);
1263
+ }
1264
+ let Tt;
1265
+ function un(e) {
1266
+ if (I(e))
1267
+ return e;
1268
+ if (B(e)) {
1269
+ if (e.resolvedOnce && Tt != null)
1270
+ return Tt;
1271
+ if (e.constructor.name === "Function") {
1272
+ const t = e();
1273
+ if (Kr(t))
1274
+ throw me(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1275
+ return Tt = t;
1276
+ } else
1277
+ throw me(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1278
+ } else
1279
+ throw me(q.NOT_SUPPORT_LOCALE_TYPE);
1280
+ }
1281
+ function Ga(e, t, n) {
1282
+ return [.../* @__PURE__ */ new Set([
1283
+ n,
1284
+ ...G(t) ? t : R(t) ? Object.keys(t) : I(t) ? [t] : [n]
1285
+ ])];
1286
+ }
1287
+ function Xn(e, t, n) {
1288
+ const r = I(n) ? n : xe, a = e;
1289
+ a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
1290
+ let s = a.__localeChainCache.get(r);
1291
+ if (!s) {
1292
+ s = [];
1293
+ let o = [n];
1294
+ for (; G(o); )
1295
+ o = cn(s, o, t);
1296
+ const i = G(t) || !k(t) ? t : t.default ? t.default : null;
1297
+ o = I(i) ? [i] : i, G(o) && cn(s, o, !1), a.__localeChainCache.set(r, s);
1298
+ }
1299
+ return s;
1300
+ }
1301
+ function cn(e, t, n) {
1302
+ let r = !0;
1303
+ for (let a = 0; a < t.length && M(r); a++) {
1304
+ const s = t[a];
1305
+ I(s) && (r = Ya(e, t[a], n));
1306
+ }
1307
+ return r;
1308
+ }
1309
+ function Ya(e, t, n) {
1310
+ let r;
1311
+ const a = t.split("-");
1312
+ do {
1313
+ const s = a.join("-");
1314
+ r = Ha(e, s, n), a.splice(-1, 1);
1315
+ } while (a.length && r === !0);
1316
+ return r;
1317
+ }
1318
+ function Ha(e, t, n) {
1319
+ let r = !1;
1320
+ if (!e.includes(t) && (r = !0, t)) {
1321
+ r = t[t.length - 1] !== "!";
1322
+ const a = t.replace(/!/g, "");
1323
+ e.push(a), (G(n) || k(n)) && n[a] && (r = n[a]);
1324
+ }
1325
+ return r;
1326
+ }
1327
+ const Ee = [];
1328
+ Ee[
1329
+ 0
1330
+ /* States.BEFORE_PATH */
1331
+ ] = {
1332
+ w: [
1333
+ 0
1334
+ /* States.BEFORE_PATH */
1335
+ ],
1336
+ i: [
1337
+ 3,
1338
+ 0
1339
+ /* Actions.APPEND */
1340
+ ],
1341
+ "[": [
1342
+ 4
1343
+ /* States.IN_SUB_PATH */
1344
+ ],
1345
+ o: [
1346
+ 7
1347
+ /* States.AFTER_PATH */
1348
+ ]
1349
+ };
1350
+ Ee[
1351
+ 1
1352
+ /* States.IN_PATH */
1353
+ ] = {
1354
+ w: [
1355
+ 1
1356
+ /* States.IN_PATH */
1357
+ ],
1358
+ ".": [
1359
+ 2
1360
+ /* States.BEFORE_IDENT */
1361
+ ],
1362
+ "[": [
1363
+ 4
1364
+ /* States.IN_SUB_PATH */
1365
+ ],
1366
+ o: [
1367
+ 7
1368
+ /* States.AFTER_PATH */
1369
+ ]
1370
+ };
1371
+ Ee[
1372
+ 2
1373
+ /* States.BEFORE_IDENT */
1374
+ ] = {
1375
+ w: [
1376
+ 2
1377
+ /* States.BEFORE_IDENT */
1378
+ ],
1379
+ i: [
1380
+ 3,
1381
+ 0
1382
+ /* Actions.APPEND */
1383
+ ],
1384
+ 0: [
1385
+ 3,
1386
+ 0
1387
+ /* Actions.APPEND */
1388
+ ]
1389
+ };
1390
+ Ee[
1391
+ 3
1392
+ /* States.IN_IDENT */
1393
+ ] = {
1394
+ i: [
1395
+ 3,
1396
+ 0
1397
+ /* Actions.APPEND */
1398
+ ],
1399
+ 0: [
1400
+ 3,
1401
+ 0
1402
+ /* Actions.APPEND */
1403
+ ],
1404
+ w: [
1405
+ 1,
1406
+ 1
1407
+ /* Actions.PUSH */
1408
+ ],
1409
+ ".": [
1410
+ 2,
1411
+ 1
1412
+ /* Actions.PUSH */
1413
+ ],
1414
+ "[": [
1415
+ 4,
1416
+ 1
1417
+ /* Actions.PUSH */
1418
+ ],
1419
+ o: [
1420
+ 7,
1421
+ 1
1422
+ /* Actions.PUSH */
1423
+ ]
1424
+ };
1425
+ Ee[
1426
+ 4
1427
+ /* States.IN_SUB_PATH */
1428
+ ] = {
1429
+ "'": [
1430
+ 5,
1431
+ 0
1432
+ /* Actions.APPEND */
1433
+ ],
1434
+ '"': [
1435
+ 6,
1436
+ 0
1437
+ /* Actions.APPEND */
1438
+ ],
1439
+ "[": [
1440
+ 4,
1441
+ 2
1442
+ /* Actions.INC_SUB_PATH_DEPTH */
1443
+ ],
1444
+ "]": [
1445
+ 1,
1446
+ 3
1447
+ /* Actions.PUSH_SUB_PATH */
1448
+ ],
1449
+ o: 8,
1450
+ l: [
1451
+ 4,
1452
+ 0
1453
+ /* Actions.APPEND */
1454
+ ]
1455
+ };
1456
+ Ee[
1457
+ 5
1458
+ /* States.IN_SINGLE_QUOTE */
1459
+ ] = {
1460
+ "'": [
1461
+ 4,
1462
+ 0
1463
+ /* Actions.APPEND */
1464
+ ],
1465
+ o: 8,
1466
+ l: [
1467
+ 5,
1468
+ 0
1469
+ /* Actions.APPEND */
1470
+ ]
1471
+ };
1472
+ Ee[
1473
+ 6
1474
+ /* States.IN_DOUBLE_QUOTE */
1475
+ ] = {
1476
+ '"': [
1477
+ 4,
1478
+ 0
1479
+ /* Actions.APPEND */
1480
+ ],
1481
+ o: 8,
1482
+ l: [
1483
+ 6,
1484
+ 0
1485
+ /* Actions.APPEND */
1486
+ ]
1487
+ };
1488
+ const Ka = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1489
+ function ja(e) {
1490
+ return Ka.test(e);
1491
+ }
1492
+ function Xa(e) {
1493
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1494
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1495
+ }
1496
+ function Ja(e) {
1497
+ if (e == null)
1498
+ return "o";
1499
+ switch (e.charCodeAt(0)) {
1500
+ case 91:
1501
+ // [
1502
+ case 93:
1503
+ // ]
1504
+ case 46:
1505
+ // .
1506
+ case 34:
1507
+ // "
1508
+ case 39:
1509
+ return e;
1510
+ case 95:
1511
+ // _
1512
+ case 36:
1513
+ // $
1514
+ case 45:
1515
+ return "i";
1516
+ case 9:
1517
+ // Tab (HT)
1518
+ case 10:
1519
+ // Newline (LF)
1520
+ case 13:
1521
+ // Return (CR)
1522
+ case 160:
1523
+ // No-break space (NBSP)
1524
+ case 65279:
1525
+ // Byte Order Mark (BOM)
1526
+ case 8232:
1527
+ // Line Separator (LS)
1528
+ case 8233:
1529
+ return "w";
1530
+ }
1531
+ return "i";
1532
+ }
1533
+ function Qa(e) {
1534
+ const t = e.trim();
1535
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ja(t) ? Xa(t) : "*" + t;
1536
+ }
1537
+ function qa(e) {
1538
+ const t = [];
1539
+ let n = -1, r = 0, a = 0, s, o, i, c, E, b, L;
1540
+ const N = [];
1541
+ N[
1542
+ 0
1543
+ /* Actions.APPEND */
1544
+ ] = () => {
1545
+ o === void 0 ? o = i : o += i;
1546
+ }, N[
1547
+ 1
1548
+ /* Actions.PUSH */
1549
+ ] = () => {
1550
+ o !== void 0 && (t.push(o), o = void 0);
1551
+ }, N[
1552
+ 2
1553
+ /* Actions.INC_SUB_PATH_DEPTH */
1554
+ ] = () => {
1555
+ N[
1556
+ 0
1557
+ /* Actions.APPEND */
1558
+ ](), a++;
1559
+ }, N[
1560
+ 3
1561
+ /* Actions.PUSH_SUB_PATH */
1562
+ ] = () => {
1563
+ if (a > 0)
1564
+ a--, r = 4, N[
1565
+ 0
1566
+ /* Actions.APPEND */
1567
+ ]();
1568
+ else {
1569
+ if (a = 0, o === void 0 || (o = Qa(o), o === !1))
1570
+ return !1;
1571
+ N[
1572
+ 1
1573
+ /* Actions.PUSH */
1574
+ ]();
1575
+ }
1576
+ };
1577
+ function v() {
1578
+ const F = e[n + 1];
1579
+ if (r === 5 && F === "'" || r === 6 && F === '"')
1580
+ return n++, i = "\\" + F, N[
1581
+ 0
1582
+ /* Actions.APPEND */
1583
+ ](), !0;
1584
+ }
1585
+ for (; r !== null; )
1586
+ if (n++, s = e[n], !(s === "\\" && v())) {
1587
+ if (c = Ja(s), L = Ee[r], E = L[c] || L.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (b = N[E[1]], b && (i = s, b() === !1))))
1588
+ return;
1589
+ if (r === 7)
1590
+ return t;
1591
+ }
1592
+ }
1593
+ const fn = /* @__PURE__ */ new Map();
1594
+ function Za(e, t) {
1595
+ return R(e) ? e[t] : null;
1596
+ }
1597
+ function za(e, t) {
1598
+ if (!R(e))
1599
+ return null;
1600
+ let n = fn.get(t);
1601
+ if (n || (n = qa(t), n && fn.set(t, n)), !n)
1602
+ return null;
1603
+ const r = n.length;
1604
+ let a = e, s = 0;
1605
+ for (; s < r; ) {
1606
+ const o = n[s];
1607
+ if (jn.includes(o) && re(a))
1608
+ return null;
1609
+ const i = a[o];
1610
+ if (i === void 0 || B(a))
1611
+ return null;
1612
+ a = i, s++;
1613
+ }
1614
+ return a;
1615
+ }
1616
+ const Z = {
1617
+ NOT_FOUND_KEY: 1,
1618
+ FALLBACK_TO_TRANSLATE: 2,
1619
+ CANNOT_FORMAT_NUMBER: 3,
1620
+ FALLBACK_TO_NUMBER_FORMAT: 4,
1621
+ CANNOT_FORMAT_DATE: 5,
1622
+ FALLBACK_TO_DATE_FORMAT: 6,
1623
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
1624
+ }, es = 8, ts = {
1625
+ [Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1626
+ [Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1627
+ [Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1628
+ [Z.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1629
+ [Z.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1630
+ [Z.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1631
+ [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."
1632
+ };
1633
+ function be(e, ...t) {
1634
+ return et(ts[e], ...t);
1635
+ }
1636
+ const ns = "11.2.7", nt = -1, xe = "en-US", ze = "", _n = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1637
+ function rs() {
1638
+ return {
1639
+ upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1640
+ lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1641
+ capitalize: (e, t) => t === "text" && I(e) ? _n(e) : t === "vnode" && R(e) && "__v_isVNode" in e ? _n(e.children) : e
1642
+ };
1643
+ }
1644
+ let Jn;
1645
+ function as(e) {
1646
+ Jn = e;
1647
+ }
1648
+ let Qn;
1649
+ function ss(e) {
1650
+ Qn = e;
1651
+ }
1652
+ let qn;
1653
+ function os(e) {
1654
+ qn = e;
1655
+ }
1656
+ let Zn = null;
1657
+ const ls = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1658
+ Zn = e;
1659
+ }, is = /* @__NO_SIDE_EFFECTS__ */ () => Zn;
1660
+ let zn = null;
1661
+ const mn = (e) => {
1662
+ zn = e;
1663
+ }, us = () => zn;
1664
+ let dn = 0;
1665
+ function cs(e = {}) {
1666
+ const t = B(e.onWarn) ? e.onWarn : ue, n = I(e.version) ? e.version : ns, r = I(e.locale) || B(e.locale) ? e.locale : xe, a = B(r) ? xe : r, s = G(e.fallbackLocale) || k(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = k(e.messages) ? e.messages : bt(a), i = k(e.datetimeFormats) ? e.datetimeFormats : bt(a), c = k(e.numberFormats) ? e.numberFormats : bt(a), E = J($(), e.modifiers, rs()), b = e.pluralRules || $(), L = B(e.missing) ? e.missing : null, N = M(e.missingWarn) || Se(e.missingWarn) ? e.missingWarn : !0, v = M(e.fallbackWarn) || Se(e.fallbackWarn) ? e.fallbackWarn : !0, F = !!e.fallbackFormat, C = !!e.unresolving, D = B(e.postTranslation) ? e.postTranslation : null, f = k(e.processor) ? e.processor : null, m = M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, d = B(e.messageCompiler) ? e.messageCompiler : Jn;
1667
+ process.env.NODE_ENV !== "production" && B(e.messageCompiler) && Vt(be(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1668
+ const O = B(e.messageResolver) ? e.messageResolver : Qn || Za, A = B(e.localeFallbacker) ? e.localeFallbacker : qn || Ga, g = R(e.fallbackContext) ? e.fallbackContext : void 0, y = e, U = R(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), X = R(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), ae = R(y.__meta) ? y.__meta : {};
1669
+ dn++;
1670
+ const Y = {
1671
+ version: n,
1672
+ cid: dn,
1673
+ locale: r,
1674
+ fallbackLocale: s,
1675
+ messages: o,
1676
+ modifiers: E,
1677
+ pluralRules: b,
1678
+ missing: L,
1679
+ missingWarn: N,
1680
+ fallbackWarn: v,
1681
+ fallbackFormat: F,
1682
+ unresolving: C,
1683
+ postTranslation: D,
1684
+ processor: f,
1685
+ warnHtmlMessage: m,
1686
+ escapeParameter: T,
1687
+ messageCompiler: d,
1688
+ messageResolver: O,
1689
+ localeFallbacker: A,
1690
+ fallbackContext: g,
1691
+ onWarn: t,
1692
+ __meta: ae
1693
+ };
1694
+ return Y.datetimeFormats = i, Y.numberFormats = c, Y.__datetimeFormatters = U, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Va(Y, n, ae), Y;
1695
+ }
1696
+ const bt = (e) => ({ [e]: $() });
1697
+ function rt(e, t) {
1698
+ return e instanceof RegExp ? e.test(t) : e;
1699
+ }
1700
+ function er(e, t) {
1701
+ return e instanceof RegExp ? e.test(t) : e;
1702
+ }
1703
+ function Ht(e, t, n, r, a) {
1704
+ const { missing: s, onWarn: o } = e;
1705
+ if (process.env.NODE_ENV !== "production") {
1706
+ const i = e.__v_emitter;
1707
+ i && i.emit("missing", {
1708
+ locale: n,
1709
+ key: t,
1710
+ type: a,
1711
+ groupId: `${a}:${t}`
1712
+ });
1713
+ }
1714
+ if (s !== null) {
1715
+ const i = s(e, n, t, a);
1716
+ return I(i) ? i : t;
1717
+ } else
1718
+ return process.env.NODE_ENV !== "production" && er(r, t) && o(be(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
1719
+ }
1720
+ function Ve(e, t, n) {
1721
+ const r = e;
1722
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1723
+ }
1724
+ function tr(e, t) {
1725
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1726
+ }
1727
+ function fs(e, t) {
1728
+ const n = t.indexOf(e);
1729
+ if (n === -1)
1730
+ return !1;
1731
+ for (let r = n + 1; r < t.length; r++)
1732
+ if (tr(e, t[r]))
1733
+ return !0;
1734
+ return !1;
1735
+ }
1736
+ const En = typeof Intl < "u", nr = {
1737
+ dateTimeFormat: En && typeof Intl.DateTimeFormat < "u",
1738
+ numberFormat: En && typeof Intl.NumberFormat < "u"
1739
+ };
1740
+ function gn(e, ...t) {
1741
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
1742
+ if (process.env.NODE_ENV !== "production" && !nr.dateTimeFormat)
1743
+ return s(be(Z.CANNOT_FORMAT_DATE)), ze;
1744
+ const [c, E, b, L] = vt(...t), N = M(b.missingWarn) ? b.missingWarn : e.missingWarn, v = M(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, F = !!b.part, C = Yt(e, b), D = o(
1745
+ e,
1746
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1747
+ a,
1748
+ C
1749
+ );
1750
+ if (!I(c) || c === "")
1751
+ return new Intl.DateTimeFormat(C, L).format(E);
1752
+ let f = {}, m, T = null, d = C, O = null;
1753
+ const A = "datetime format";
1754
+ for (let U = 0; U < D.length; U++) {
1755
+ if (m = O = D[U], process.env.NODE_ENV !== "production" && C !== m && rt(v, c) && s(be(Z.FALLBACK_TO_DATE_FORMAT, {
1756
+ key: c,
1757
+ target: m
1758
+ })), process.env.NODE_ENV !== "production" && C !== m) {
1759
+ const X = e.__v_emitter;
1760
+ X && X.emit("fallback", {
1761
+ type: A,
1762
+ key: c,
1763
+ from: d,
1764
+ to: O,
1765
+ groupId: `${A}:${c}`
1766
+ });
1767
+ }
1768
+ if (f = n[m] || {}, T = f[c], k(T))
1769
+ break;
1770
+ Ht(e, c, m, N, A), d = O;
1771
+ }
1772
+ if (!k(T) || !I(m))
1773
+ return r ? nt : c;
1774
+ let g = `${m}__${c}`;
1775
+ tt(L) || (g = `${g}__${JSON.stringify(L)}`);
1776
+ let y = i.get(g);
1777
+ return y || (y = new Intl.DateTimeFormat(m, J({}, T, L)), i.set(g, y)), F ? y.formatToParts(E) : y.format(E);
1778
+ }
1779
+ const rr = [
1780
+ "localeMatcher",
1781
+ "weekday",
1782
+ "era",
1783
+ "year",
1784
+ "month",
1785
+ "day",
1786
+ "hour",
1787
+ "minute",
1788
+ "second",
1789
+ "timeZoneName",
1790
+ "formatMatcher",
1791
+ "hour12",
1792
+ "timeZone",
1793
+ "dateStyle",
1794
+ "timeStyle",
1795
+ "calendar",
1796
+ "dayPeriod",
1797
+ "numberingSystem",
1798
+ "hourCycle",
1799
+ "fractionalSecondDigits"
1800
+ ];
1801
+ function vt(...e) {
1802
+ const [t, n, r, a] = e, s = $();
1803
+ let o = $(), i;
1804
+ if (I(t)) {
1805
+ const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1806
+ if (!c)
1807
+ throw me(q.INVALID_ISO_DATE_ARGUMENT);
1808
+ const E = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
1809
+ i = new Date(E);
1810
+ try {
1811
+ i.toISOString();
1812
+ } catch {
1813
+ throw me(q.INVALID_ISO_DATE_ARGUMENT);
1814
+ }
1815
+ } else if (Wr(t)) {
1816
+ if (isNaN(t.getTime()))
1817
+ throw me(q.INVALID_DATE_ARGUMENT);
1818
+ i = t;
1819
+ } else if (j(t))
1820
+ i = t;
1821
+ else
1822
+ throw me(q.INVALID_ARGUMENT);
1823
+ return I(n) ? s.key = n : k(n) && Object.keys(n).forEach((c) => {
1824
+ rr.includes(c) ? o[c] = n[c] : s[c] = n[c];
1825
+ }), I(r) ? s.locale = r : k(r) && (o = r), k(a) && (o = a), [s.key || "", i, s, o];
1826
+ }
1827
+ function pn(e, t, n) {
1828
+ const r = e;
1829
+ for (const a in n) {
1830
+ const s = `${t}__${a}`;
1831
+ r.__datetimeFormatters.has(s) && r.__datetimeFormatters.delete(s);
1832
+ }
1833
+ }
1834
+ function Nn(e, ...t) {
1835
+ const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __numberFormatters: i } = e;
1836
+ if (process.env.NODE_ENV !== "production" && !nr.numberFormat)
1837
+ return s(be(Z.CANNOT_FORMAT_NUMBER)), ze;
1838
+ const [c, E, b, L] = Dt(...t), N = M(b.missingWarn) ? b.missingWarn : e.missingWarn, v = M(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, F = !!b.part, C = Yt(e, b), D = o(
1839
+ e,
1840
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1841
+ a,
1842
+ C
1843
+ );
1844
+ if (!I(c) || c === "")
1845
+ return new Intl.NumberFormat(C, L).format(E);
1846
+ let f = {}, m, T = null, d = C, O = null;
1847
+ const A = "number format";
1848
+ for (let U = 0; U < D.length; U++) {
1849
+ if (m = O = D[U], process.env.NODE_ENV !== "production" && C !== m && rt(v, c) && s(be(Z.FALLBACK_TO_NUMBER_FORMAT, {
1850
+ key: c,
1851
+ target: m
1852
+ })), process.env.NODE_ENV !== "production" && C !== m) {
1853
+ const X = e.__v_emitter;
1854
+ X && X.emit("fallback", {
1855
+ type: A,
1856
+ key: c,
1857
+ from: d,
1858
+ to: O,
1859
+ groupId: `${A}:${c}`
1860
+ });
1861
+ }
1862
+ if (f = n[m] || {}, T = f[c], k(T))
1863
+ break;
1864
+ Ht(e, c, m, N, A), d = O;
1865
+ }
1866
+ if (!k(T) || !I(m))
1867
+ return r ? nt : c;
1868
+ let g = `${m}__${c}`;
1869
+ tt(L) || (g = `${g}__${JSON.stringify(L)}`);
1870
+ let y = i.get(g);
1871
+ return y || (y = new Intl.NumberFormat(m, J({}, T, L)), i.set(g, y)), F ? y.formatToParts(E) : y.format(E);
1872
+ }
1873
+ const ar = [
1874
+ "localeMatcher",
1875
+ "style",
1876
+ "currency",
1877
+ "currencyDisplay",
1878
+ "currencySign",
1879
+ "useGrouping",
1880
+ "minimumIntegerDigits",
1881
+ "minimumFractionDigits",
1882
+ "maximumFractionDigits",
1883
+ "minimumSignificantDigits",
1884
+ "maximumSignificantDigits",
1885
+ "compactDisplay",
1886
+ "notation",
1887
+ "signDisplay",
1888
+ "unit",
1889
+ "unitDisplay",
1890
+ "roundingMode",
1891
+ "roundingPriority",
1892
+ "roundingIncrement",
1893
+ "trailingZeroDisplay"
1894
+ ];
1895
+ function Dt(...e) {
1896
+ const [t, n, r, a] = e, s = $();
1897
+ let o = $();
1898
+ if (!j(t))
1899
+ throw me(q.INVALID_ARGUMENT);
1900
+ const i = t;
1901
+ return I(n) ? s.key = n : k(n) && Object.keys(n).forEach((c) => {
1902
+ ar.includes(c) ? o[c] = n[c] : s[c] = n[c];
1903
+ }), I(r) ? s.locale = r : k(r) && (o = r), k(a) && (o = a), [s.key || "", i, s, o];
1904
+ }
1905
+ function hn(e, t, n) {
1906
+ const r = e;
1907
+ for (const a in n) {
1908
+ const s = `${t}__${a}`;
1909
+ r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
1910
+ }
1911
+ }
1912
+ const _s = (e) => e, ms = (e) => "", ds = "text", Es = (e) => e.length === 0 ? "" : Bt(e), gs = jr;
1913
+ function Ln(e, t) {
1914
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1915
+ }
1916
+ function ps(e) {
1917
+ const t = j(e.pluralIndex) ? e.pluralIndex : -1;
1918
+ return e.named && (j(e.named.count) || j(e.named.n)) ? j(e.named.count) ? e.named.count : j(e.named.n) ? e.named.n : t : t;
1919
+ }
1920
+ function Ns(e, t) {
1921
+ t.count || (t.count = e), t.n || (t.n = e);
1922
+ }
1923
+ function hs(e = {}) {
1924
+ const t = e.locale, n = ps(e), r = R(e.pluralRules) && I(t) && B(e.pluralRules[t]) ? e.pluralRules[t] : Ln, a = R(e.pluralRules) && I(t) && B(e.pluralRules[t]) ? Ln : void 0, s = (f) => f[r(n, f.length, a)], o = e.list || [], i = (f) => o[f], c = e.named || $();
1925
+ j(e.pluralIndex) && Ns(n, c);
1926
+ const E = (f) => c[f];
1927
+ function b(f, m) {
1928
+ const T = B(e.messages) ? e.messages(f, !!m) : R(e.messages) ? e.messages[f] : !1;
1929
+ return T || (e.parent ? e.parent.message(f) : ms);
1930
+ }
1931
+ const L = (f) => e.modifiers ? e.modifiers[f] : _s, N = k(e.processor) && B(e.processor.normalize) ? e.processor.normalize : Es, v = k(e.processor) && B(e.processor.interpolate) ? e.processor.interpolate : gs, F = k(e.processor) && I(e.processor.type) ? e.processor.type : ds, D = {
1932
+ list: i,
1933
+ named: E,
1934
+ plural: s,
1935
+ linked: (f, ...m) => {
1936
+ const [T, d] = m;
1937
+ let O = "text", A = "";
1938
+ m.length === 1 ? R(T) ? (A = T.modifier || A, O = T.type || O) : I(T) && (A = T || A) : m.length === 2 && (I(T) && (A = T || A), I(d) && (O = d || O));
1939
+ const g = b(f, !0)(D), y = (
1940
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
1941
+ O === "vnode" && G(g) && A ? g[0] : g
1942
+ );
1943
+ return A ? L(A)(y, O) : y;
1944
+ },
1945
+ message: b,
1946
+ type: F,
1947
+ interpolate: v,
1948
+ normalize: N,
1949
+ values: J($(), o, c)
1950
+ };
1951
+ return D;
1952
+ }
1953
+ const Tn = () => "", te = (e) => B(e);
1954
+ function bn(e, ...t) {
1955
+ const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [c, E] = St(...t), b = M(E.missingWarn) ? E.missingWarn : e.missingWarn, L = M(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, N = M(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, v = !!E.resolvedMessage, F = I(E.default) || M(E.default) ? M(E.default) ? s ? c : () => c : E.default : n ? s ? c : () => c : null, C = n || F != null && (I(F) || B(F)), D = Yt(e, E);
1956
+ N && Ls(E);
1957
+ let [f, m, T] = v ? [
1958
+ c,
1959
+ D,
1960
+ i[D] || $()
1961
+ ] : sr(e, c, D, o, L, b), d = f, O = c;
1962
+ if (!v && !(I(d) || re(d) || te(d)) && C && (d = F, O = d), !v && (!(I(d) || re(d) || te(d)) || !I(m)))
1963
+ return a ? nt : c;
1964
+ if (process.env.NODE_ENV !== "production" && I(d) && e.messageCompiler == null)
1965
+ return ue(`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;
1966
+ let A = !1;
1967
+ const g = () => {
1968
+ A = !0;
1969
+ }, y = te(d) ? d : or(e, c, m, d, O, g);
1970
+ if (A)
1971
+ return d;
1972
+ const U = Os(e, m, T, E), X = hs(U), ae = Ts(e, y, X);
1973
+ let Y = r ? r(ae, c) : ae;
1974
+ if (N && I(Y) && (Y = Yr(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1975
+ const Oe = {
1976
+ timestamp: Date.now(),
1977
+ key: I(c) ? c : te(d) ? d.key : "",
1978
+ locale: m || (te(d) ? d.locale : ""),
1979
+ format: I(d) ? d : te(d) ? d.source : "",
1980
+ message: Y
1981
+ };
1982
+ Oe.meta = J({}, e.__meta, /* @__PURE__ */ is() || {}), $a(Oe);
1983
+ }
1984
+ return Y;
1985
+ }
1986
+ function Ls(e) {
1987
+ G(e.list) ? e.list = e.list.map((t) => I(t) ? tn(t) : t) : R(e.named) && Object.keys(e.named).forEach((t) => {
1988
+ I(e.named[t]) && (e.named[t] = tn(e.named[t]));
1989
+ });
1990
+ }
1991
+ function sr(e, t, n, r, a, s) {
1992
+ const { messages: o, onWarn: i, messageResolver: c, localeFallbacker: E } = e, b = E(e, r, n);
1993
+ let L = $(), N, v = null, F = n, C = null;
1994
+ const D = "translate";
1995
+ for (let f = 0; f < b.length; f++) {
1996
+ if (N = C = b[f], process.env.NODE_ENV !== "production" && n !== N && !tr(n, N) && rt(a, t) && i(be(Z.FALLBACK_TO_TRANSLATE, {
1997
+ key: t,
1998
+ target: N
1999
+ })), process.env.NODE_ENV !== "production" && n !== N) {
2000
+ const O = e.__v_emitter;
2001
+ O && O.emit("fallback", {
2002
+ type: D,
2003
+ key: t,
2004
+ from: F,
2005
+ to: C,
2006
+ groupId: `${D}:${t}`
2007
+ });
2008
+ }
2009
+ L = o[N] || $();
2010
+ let m = null, T, d;
2011
+ if (process.env.NODE_ENV !== "production" && oe && (m = window.performance.now(), T = "intlify-message-resolve-start", d = "intlify-message-resolve-end", ee && ee(T)), (v = c(L, t)) === null && (v = L[t]), process.env.NODE_ENV !== "production" && oe) {
2012
+ const O = window.performance.now(), A = e.__v_emitter;
2013
+ A && m && v && A.emit("message-resolve", {
2014
+ type: "message-resolve",
2015
+ key: t,
2016
+ message: v,
2017
+ time: O - m,
2018
+ groupId: `${D}:${t}`
2019
+ }), T && d && ee && Te && (ee(d), Te("intlify message resolve", T, d));
2020
+ }
2021
+ if (I(v) || re(v) || te(v))
2022
+ break;
2023
+ if (!fs(N, b)) {
2024
+ const O = Ht(
2025
+ e,
2026
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2027
+ t,
2028
+ N,
2029
+ s,
2030
+ D
2031
+ );
2032
+ O !== t && (v = O);
2033
+ }
2034
+ F = C;
2035
+ }
2036
+ return [v, N, L];
2037
+ }
2038
+ function or(e, t, n, r, a, s) {
2039
+ const { messageCompiler: o, warnHtmlMessage: i } = e;
2040
+ if (te(r)) {
2041
+ const N = r;
2042
+ return N.locale = N.locale || n, N.key = N.key || t, N;
2043
+ }
2044
+ if (o == null) {
2045
+ const N = (() => r);
2046
+ return N.locale = n, N.key = t, N;
2047
+ }
2048
+ let c = null, E, b;
2049
+ process.env.NODE_ENV !== "production" && oe && (c = window.performance.now(), E = "intlify-message-compilation-start", b = "intlify-message-compilation-end", ee && ee(E));
2050
+ const L = o(r, bs(e, n, a, r, i, s));
2051
+ if (process.env.NODE_ENV !== "production" && oe) {
2052
+ const N = window.performance.now(), v = e.__v_emitter;
2053
+ v && c && v.emit("message-compilation", {
2054
+ type: "message-compilation",
2055
+ message: r,
2056
+ time: N - c,
2057
+ groupId: `translate:${t}`
2058
+ }), E && b && ee && Te && (ee(b), Te("intlify message compilation", E, b));
2059
+ }
2060
+ return L.locale = n, L.key = t, L.source = r, L;
2061
+ }
2062
+ function Ts(e, t, n) {
2063
+ let r = null, a, s;
2064
+ process.env.NODE_ENV !== "production" && oe && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ee && ee(a));
2065
+ const o = t(n);
2066
+ if (process.env.NODE_ENV !== "production" && oe) {
2067
+ const i = window.performance.now(), c = e.__v_emitter;
2068
+ c && r && c.emit("message-evaluation", {
2069
+ type: "message-evaluation",
2070
+ value: o,
2071
+ time: i - r,
2072
+ groupId: `translate:${t.key}`
2073
+ }), a && s && ee && Te && (ee(s), Te("intlify message evaluation", a, s));
2074
+ }
2075
+ return o;
2076
+ }
2077
+ function St(...e) {
2078
+ const [t, n, r] = e, a = $();
2079
+ if (!I(t) && !j(t) && !te(t) && !re(t))
2080
+ throw me(q.INVALID_ARGUMENT);
2081
+ const s = j(t) ? String(t) : (te(t), t);
2082
+ return j(n) ? a.plural = n : I(n) ? a.default = n : k(n) && !tt(n) ? a.named = n : G(n) && (a.list = n), j(r) ? a.plural = r : I(r) ? a.default = r : k(r) && J(a, r), [s, a];
2083
+ }
2084
+ function bs(e, t, n, r, a, s) {
2085
+ return {
2086
+ locale: t,
2087
+ key: n,
2088
+ warnHtmlMessage: a,
2089
+ onError: (o) => {
2090
+ if (s && s(o), process.env.NODE_ENV !== "production") {
2091
+ const i = Is(r), c = `Message compilation error: ${o.message}`, E = o.location && i && Xr(i, o.location.start.offset, o.location.end.offset), b = e.__v_emitter;
2092
+ b && i && b.emit("compile-error", {
2093
+ message: i,
2094
+ error: o.message,
2095
+ start: o.location && o.location.start.offset,
2096
+ end: o.location && o.location.end.offset,
2097
+ groupId: `translate:${n}`
2098
+ }), console.error(E ? `${c}
2099
+ ${E}` : c);
2100
+ } else
2101
+ throw o;
2102
+ },
2103
+ onCacheKey: (o) => Br(t, n, o)
2104
+ };
2105
+ }
2106
+ function Is(e) {
2107
+ if (I(e))
2108
+ return e;
2109
+ if (e.loc && e.loc.source)
2110
+ return e.loc.source;
2111
+ }
2112
+ function Os(e, t, n, r) {
2113
+ const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: c, missingWarn: E, fallbackContext: b } = e, N = {
2114
+ locale: t,
2115
+ modifiers: a,
2116
+ pluralRules: s,
2117
+ messages: (v, F) => {
2118
+ let C = o(n, v);
2119
+ if (C == null && (b || F)) {
2120
+ const [, , D] = sr(
2121
+ b || e,
2122
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2123
+ v,
2124
+ t,
2125
+ i,
2126
+ c,
2127
+ E
2128
+ );
2129
+ C = o(D, v);
2130
+ }
2131
+ if (I(C) || re(C)) {
2132
+ let D = !1;
2133
+ const m = or(e, v, t, C, v, () => {
2134
+ D = !0;
2135
+ });
2136
+ return D ? Tn : m;
2137
+ } else return te(C) ? C : Tn;
2138
+ }
2139
+ };
2140
+ return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), j(r.plural) && (N.pluralIndex = r.plural), N;
2141
+ }
2142
+ Oa();
2143
+ function As() {
2144
+ return lr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2145
+ }
2146
+ function lr() {
2147
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2148
+ }
2149
+ const Cs = typeof Proxy == "function", vs = "devtools-plugin:setup", Ds = "plugin:settings:set";
2150
+ let Ce, Pt;
2151
+ function Ss() {
2152
+ var e;
2153
+ return Ce !== void 0 || (typeof window < "u" && window.performance ? (Ce = !0, Pt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ce = !0, Pt = globalThis.perf_hooks.performance) : Ce = !1), Ce;
2154
+ }
2155
+ function Ps() {
2156
+ return Ss() ? Pt.now() : Date.now();
2157
+ }
2158
+ class Fs {
2159
+ constructor(t, n) {
2160
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
2161
+ const r = {};
2162
+ if (t.settings)
2163
+ for (const o in t.settings) {
2164
+ const i = t.settings[o];
2165
+ r[o] = i.defaultValue;
2166
+ }
2167
+ const a = `__vue-devtools-plugin-settings__${t.id}`;
2168
+ let s = Object.assign({}, r);
2169
+ try {
2170
+ const o = localStorage.getItem(a), i = JSON.parse(o);
2171
+ Object.assign(s, i);
2172
+ } catch {
2173
+ }
2174
+ this.fallbacks = {
2175
+ getSettings() {
2176
+ return s;
2177
+ },
2178
+ setSettings(o) {
2179
+ try {
2180
+ localStorage.setItem(a, JSON.stringify(o));
2181
+ } catch {
2182
+ }
2183
+ s = o;
2184
+ },
2185
+ now() {
2186
+ return Ps();
2187
+ }
2188
+ }, n && n.on(Ds, (o, i) => {
2189
+ o === this.plugin.id && this.fallbacks.setSettings(i);
2190
+ }), this.proxiedOn = new Proxy({}, {
2191
+ get: (o, i) => this.target ? this.target.on[i] : (...c) => {
2192
+ this.onQueue.push({
2193
+ method: i,
2194
+ args: c
2195
+ });
2196
+ }
2197
+ }), this.proxiedTarget = new Proxy({}, {
2198
+ get: (o, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...c) => (this.targetQueue.push({
2199
+ method: i,
2200
+ args: c,
2201
+ resolve: () => {
2202
+ }
2203
+ }), this.fallbacks[i](...c)) : (...c) => new Promise((E) => {
2204
+ this.targetQueue.push({
2205
+ method: i,
2206
+ args: c,
2207
+ resolve: E
2208
+ });
2209
+ })
2210
+ });
2211
+ }
2212
+ async setRealTarget(t) {
2213
+ this.target = t;
2214
+ for (const n of this.onQueue)
2215
+ this.target.on[n.method](...n.args);
2216
+ for (const n of this.targetQueue)
2217
+ n.resolve(await this.target[n.method](...n.args));
2218
+ }
2219
+ }
2220
+ function ys(e, t) {
2221
+ const n = e, r = lr(), a = As(), s = Cs && n.enableEarlyProxy;
2222
+ if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
2223
+ a.emit(vs, e, t);
2224
+ else {
2225
+ const o = s ? new Fs(n, a) : null;
2226
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2227
+ pluginDescriptor: n,
2228
+ setupFn: t,
2229
+ proxy: o
2230
+ }), o && t(o.proxiedTarget);
2231
+ }
2232
+ }
2233
+ const ks = "11.2.7";
2234
+ function Rs() {
2235
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Le().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Le().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1);
2236
+ }
2237
+ const x = {
2238
+ // composer module errors
2239
+ UNEXPECTED_RETURN_TYPE: xa,
2240
+ // 24
2241
+ // legacy module errors
2242
+ INVALID_ARGUMENT: 25,
2243
+ // i18n module errors
2244
+ MUST_BE_CALL_SETUP_TOP: 26,
2245
+ NOT_INSTALLED: 27,
2246
+ // directive module errors
2247
+ REQUIRED_VALUE: 28,
2248
+ INVALID_VALUE: 29,
2249
+ // vue-devtools errors
2250
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
2251
+ NOT_INSTALLED_WITH_PROVIDE: 31,
2252
+ // unexpected error
2253
+ UNEXPECTED_ERROR: 32,
2254
+ // not compatible legacy vue-i18n constructor
2255
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
2256
+ // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2257
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2258
+ };
2259
+ function z(e, ...t) {
2260
+ return ke(e, null, process.env.NODE_ENV !== "production" ? { messages: Ms, args: t } : void 0);
2261
+ }
2262
+ const Ms = {
2263
+ [x.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2264
+ [x.INVALID_ARGUMENT]: "Invalid argument",
2265
+ [x.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2266
+ [x.NOT_INSTALLED]: "Need to install with `app.use` function",
2267
+ [x.UNEXPECTED_ERROR]: "Unexpected error",
2268
+ [x.REQUIRED_VALUE]: "Required in value: {0}",
2269
+ [x.INVALID_VALUE]: "Invalid value",
2270
+ [x.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2271
+ [x.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2272
+ [x.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2273
+ [x.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2274
+ }, Ft = /* @__PURE__ */ ce("__translateVNode"), yt = /* @__PURE__ */ ce("__datetimeParts"), kt = /* @__PURE__ */ ce("__numberParts"), Ie = /* @__PURE__ */ ce("__enableEmitter"), We = /* @__PURE__ */ ce("__disableEmitter"), ir = ce("__setPluralRules"), ur = /* @__PURE__ */ ce("__injectWithOption"), Rt = /* @__PURE__ */ ce("__dispose"), ne = {
2275
+ FALLBACK_TO_ROOT: es,
2276
+ // 8
2277
+ NOT_FOUND_PARENT_SCOPE: 9,
2278
+ IGNORE_OBJ_FLATTEN: 10,
2279
+ /**
2280
+ * @deprecated will be removed at vue-i18n v12
2281
+ */
2282
+ DEPRECATE_LEGACY_MODE: 11,
2283
+ /**
2284
+ * @deprecated will be removed at vue-i18n v12
2285
+ */
2286
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
2287
+ // duplicate `useI18n` calling
2288
+ DUPLICATE_USE_I18N_CALLING: 13
2289
+ }, ws = {
2290
+ [ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2291
+ [ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2292
+ [ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2293
+ /**
2294
+ * @deprecated will be removed at vue-i18n v12
2295
+ */
2296
+ [ne.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
2297
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
2298
+ /**
2299
+ * @deprecated will be removed at vue-i18n v12
2300
+ */
2301
+ [ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
2302
+ [ne.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
2303
+ };
2304
+ function Fe(e, ...t) {
2305
+ return et(ws[e], ...t);
2306
+ }
2307
+ function Ge(e) {
2308
+ if (!R(e) || re(e))
2309
+ return e;
2310
+ for (const t in e)
2311
+ if (se(e, t))
2312
+ if (!t.includes("."))
2313
+ R(e[t]) && Ge(e[t]);
2314
+ else {
2315
+ const n = t.split("."), r = n.length - 1;
2316
+ let a = e, s = !1;
2317
+ for (let o = 0; o < r; o++) {
2318
+ if (n[o] === "__proto__")
2319
+ throw new Error(`unsafe key: ${n[o]}`);
2320
+ if (n[o] in a || (a[n[o]] = $()), !R(a[n[o]])) {
2321
+ process.env.NODE_ENV !== "production" && ue(Fe(ne.IGNORE_OBJ_FLATTEN, {
2322
+ key: n[o]
2323
+ })), s = !0;
2324
+ break;
2325
+ }
2326
+ a = a[n[o]];
2327
+ }
2328
+ if (s || (re(a) ? jn.includes(n[r]) || delete e[t] : (a[n[r]] = e[t], delete e[t])), !re(a)) {
2329
+ const o = a[n[r]];
2330
+ R(o) && Ge(o);
2331
+ }
2332
+ }
2333
+ return e;
2334
+ }
2335
+ function Kt(e, t) {
2336
+ const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, o = k(n) ? n : G(r) ? $() : { [e]: $() };
2337
+ if (G(r) && r.forEach((i) => {
2338
+ if ("locale" in i && "resource" in i) {
2339
+ const { locale: c, resource: E } = i;
2340
+ c ? (o[c] = o[c] || $(), Ze(E, o[c])) : Ze(E, o);
2341
+ } else
2342
+ I(i) && Ze(JSON.parse(i), o);
2343
+ }), a == null && s)
2344
+ for (const i in o)
2345
+ se(o, i) && Ge(o[i]);
2346
+ return o;
2347
+ }
2348
+ function cr(e) {
2349
+ return e.type;
2350
+ }
2351
+ function fr(e, t, n) {
2352
+ let r = R(t.messages) ? t.messages : $();
2353
+ "__i18nGlobal" in n && (r = Kt(e.locale.value, {
2354
+ messages: r,
2355
+ __i18n: n.__i18nGlobal
2356
+ }));
2357
+ const a = Object.keys(r);
2358
+ a.length && a.forEach((s) => {
2359
+ e.mergeLocaleMessage(s, r[s]);
2360
+ });
2361
+ {
2362
+ if (R(t.datetimeFormats)) {
2363
+ const s = Object.keys(t.datetimeFormats);
2364
+ s.length && s.forEach((o) => {
2365
+ e.mergeDateTimeFormat(o, t.datetimeFormats[o]);
2366
+ });
2367
+ }
2368
+ if (R(t.numberFormats)) {
2369
+ const s = Object.keys(t.numberFormats);
2370
+ s.length && s.forEach((o) => {
2371
+ e.mergeNumberFormat(o, t.numberFormats[o]);
2372
+ });
2373
+ }
2374
+ }
2375
+ }
2376
+ function In(e) {
2377
+ return Sr(Pr, null, e, 0);
2378
+ }
2379
+ function De() {
2380
+ const e = "currentInstance";
2381
+ return e in ht ? ht[e] : ht.getCurrentInstance();
2382
+ }
2383
+ const On = "__INTLIFY_META__", An = () => [], Us = () => !1;
2384
+ let Cn = 0;
2385
+ function vn(e) {
2386
+ return ((t, n, r, a) => e(n, r, De() || void 0, a));
2387
+ }
2388
+ const Vs = /* @__NO_SIDE_EFFECTS__ */ () => {
2389
+ const e = De();
2390
+ let t = null;
2391
+ return e && (t = cr(e)[On]) ? { [On]: t } : null;
2392
+ };
2393
+ function jt(e = {}) {
2394
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = oe ? Ir : Or;
2395
+ let o = M(e.inheritLocale) ? e.inheritLocale : !0;
2396
+ const i = s(
2397
+ // prettier-ignore
2398
+ t && o ? t.locale.value : I(e.locale) ? e.locale : xe
2399
+ ), c = s(
2400
+ // prettier-ignore
2401
+ t && o ? t.fallbackLocale.value : I(e.fallbackLocale) || G(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
2402
+ ), E = s(Kt(i.value, e)), b = s(k(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), L = s(k(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
2403
+ let N = t ? t.missingWarn : M(e.missingWarn) || Se(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : M(e.fallbackWarn) || Se(e.fallbackWarn) ? e.fallbackWarn : !0, F = t ? t.fallbackRoot : M(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, D = B(e.missing) ? e.missing : null, f = B(e.missing) ? vn(e.missing) : null, m = B(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
2404
+ const O = t ? t.modifiers : k(e.modifiers) ? e.modifiers : {};
2405
+ let A = e.pluralRules || t && t.pluralRules, g;
2406
+ g = (() => {
2407
+ r && mn(null);
2408
+ const _ = {
2409
+ version: ks,
2410
+ locale: i.value,
2411
+ fallbackLocale: c.value,
2412
+ messages: E.value,
2413
+ modifiers: O,
2414
+ pluralRules: A,
2415
+ missing: f === null ? void 0 : f,
2416
+ missingWarn: N,
2417
+ fallbackWarn: v,
2418
+ fallbackFormat: C,
2419
+ unresolving: !0,
2420
+ postTranslation: m === null ? void 0 : m,
2421
+ warnHtmlMessage: T,
2422
+ escapeParameter: d,
2423
+ messageResolver: e.messageResolver,
2424
+ messageCompiler: e.messageCompiler,
2425
+ __meta: { framework: "vue" }
2426
+ };
2427
+ _.datetimeFormats = b.value, _.numberFormats = L.value, _.__datetimeFormatters = k(g) ? g.__datetimeFormatters : void 0, _.__numberFormatters = k(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = k(g) ? g.__v_emitter : void 0);
2428
+ const h = cs(_);
2429
+ return r && mn(h), h;
2430
+ })(), Ve(g, i.value, c.value);
2431
+ function U() {
2432
+ return [
2433
+ i.value,
2434
+ c.value,
2435
+ E.value,
2436
+ b.value,
2437
+ L.value
2438
+ ];
2439
+ }
2440
+ const X = he({
2441
+ get: () => i.value,
2442
+ set: (_) => {
2443
+ g.locale = _, i.value = _;
2444
+ }
2445
+ }), ae = he({
2446
+ get: () => c.value,
2447
+ set: (_) => {
2448
+ g.fallbackLocale = _, c.value = _, Ve(g, i.value, _);
2449
+ }
2450
+ }), Y = he(() => E.value), Oe = /* @__PURE__ */ he(() => b.value), at = /* @__PURE__ */ he(() => L.value);
2451
+ function st() {
2452
+ return B(m) ? m : null;
2453
+ }
2454
+ function ot(_) {
2455
+ m = _, g.postTranslation = _;
2456
+ }
2457
+ function lt() {
2458
+ return D;
2459
+ }
2460
+ function it(_) {
2461
+ _ !== null && (f = vn(_)), D = _, g.missing = f;
2462
+ }
2463
+ function ut(_, h) {
2464
+ return _ !== "translate" || !h.resolvedMessage;
2465
+ }
2466
+ const fe = (_, h, V, K, pe, je) => {
2467
+ U();
2468
+ let Ae;
2469
+ try {
2470
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? us() : void 0), Ae = _(g);
2471
+ } finally {
2472
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
2473
+ }
2474
+ if (V !== "translate exists" && // for not `te` (e.g `t`)
2475
+ j(Ae) && Ae === nt || V === "translate exists" && !Ae) {
2476
+ const [Ne, Lr] = h();
2477
+ if (process.env.NODE_ENV !== "production" && t && I(Ne) && ut(V, Lr) && (F && (rt(v, Ne) || er(N, Ne)) && ue(Fe(ne.FALLBACK_TO_ROOT, {
2478
+ key: Ne,
2479
+ type: V
2480
+ })), process.env.NODE_ENV !== "production")) {
2481
+ const { __v_emitter: Zt } = g;
2482
+ Zt && F && Zt.emit("fallback", {
2483
+ type: V,
2484
+ key: Ne,
2485
+ to: "global",
2486
+ groupId: `${V}:${Ne}`
2487
+ });
2488
+ }
2489
+ return t && F ? K(t) : pe(Ne);
2490
+ } else {
2491
+ if (je(Ae))
2492
+ return Ae;
2493
+ throw z(x.UNEXPECTED_RETURN_TYPE);
2494
+ }
2495
+ };
2496
+ function Re(..._) {
2497
+ return fe((h) => Reflect.apply(bn, null, [h, ..._]), () => St(..._), "translate", (h) => Reflect.apply(h.t, h, [..._]), (h) => h, (h) => I(h));
2498
+ }
2499
+ function ct(..._) {
2500
+ const [h, V, K] = _;
2501
+ if (K && !R(K))
2502
+ throw z(x.INVALID_ARGUMENT);
2503
+ return Re(h, V, J({ resolvedMessage: !0 }, K || {}));
2504
+ }
2505
+ function ft(..._) {
2506
+ return fe((h) => Reflect.apply(gn, null, [h, ..._]), () => vt(..._), "datetime format", (h) => Reflect.apply(h.d, h, [..._]), () => ze, (h) => I(h) || G(h));
2507
+ }
2508
+ function _t(..._) {
2509
+ return fe((h) => Reflect.apply(Nn, null, [h, ..._]), () => Dt(..._), "number format", (h) => Reflect.apply(h.n, h, [..._]), () => ze, (h) => I(h) || G(h));
2510
+ }
2511
+ function mt(_) {
2512
+ return _.map((h) => I(h) || j(h) || M(h) ? In(String(h)) : h);
2513
+ }
2514
+ const dt = {
2515
+ normalize: mt,
2516
+ interpolate: (_) => _,
2517
+ type: "vnode"
2518
+ };
2519
+ function He(..._) {
2520
+ return fe((h) => {
2521
+ let V;
2522
+ const K = h;
2523
+ try {
2524
+ K.processor = dt, V = Reflect.apply(bn, null, [K, ..._]);
2525
+ } finally {
2526
+ K.processor = null;
2527
+ }
2528
+ return V;
2529
+ }, () => St(..._), "translate", (h) => h[Ft](..._), (h) => [In(h)], (h) => G(h));
2530
+ }
2531
+ function Et(..._) {
2532
+ return fe((h) => Reflect.apply(Nn, null, [h, ..._]), () => Dt(..._), "number format", (h) => h[kt](..._), An, (h) => I(h) || G(h));
2533
+ }
2534
+ function Ke(..._) {
2535
+ return fe((h) => Reflect.apply(gn, null, [h, ..._]), () => vt(..._), "datetime format", (h) => h[yt](..._), An, (h) => I(h) || G(h));
2536
+ }
2537
+ function gt(_) {
2538
+ A = _, g.pluralRules = A;
2539
+ }
2540
+ function pt(_, h) {
2541
+ return fe(() => {
2542
+ if (!_)
2543
+ return !1;
2544
+ const V = I(h) ? h : i.value, K = ge(V), pe = g.messageResolver(K, _);
2545
+ return re(pe) || te(pe) || I(pe);
2546
+ }, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, h]), Us, (V) => M(V));
2547
+ }
2548
+ function Me(_) {
2549
+ let h = null;
2550
+ const V = Xn(g, c.value, i.value);
2551
+ for (let K = 0; K < V.length; K++) {
2552
+ const pe = E.value[V[K]] || {}, je = g.messageResolver(pe, _);
2553
+ if (je != null) {
2554
+ h = je;
2555
+ break;
2556
+ }
2557
+ }
2558
+ return h;
2559
+ }
2560
+ function we(_) {
2561
+ const h = Me(_);
2562
+ return h ?? (t ? t.tm(_) || {} : {});
2563
+ }
2564
+ function ge(_) {
2565
+ return E.value[_] || {};
2566
+ }
2567
+ function Ue(_, h) {
2568
+ if (a) {
2569
+ const V = { [_]: h };
2570
+ for (const K in V)
2571
+ se(V, K) && Ge(V[K]);
2572
+ h = V[_];
2573
+ }
2574
+ E.value[_] = h, g.messages = E.value;
2575
+ }
2576
+ function Nt(_, h) {
2577
+ E.value[_] = E.value[_] || {};
2578
+ const V = { [_]: h };
2579
+ if (a)
2580
+ for (const K in V)
2581
+ se(V, K) && Ge(V[K]);
2582
+ h = V[_], Ze(h, E.value[_]), g.messages = E.value;
2583
+ }
2584
+ function l(_) {
2585
+ return b.value[_] || {};
2586
+ }
2587
+ function u(_, h) {
2588
+ b.value[_] = h, g.datetimeFormats = b.value, pn(g, _, h);
2589
+ }
2590
+ function p(_, h) {
2591
+ b.value[_] = J(b.value[_] || {}, h), g.datetimeFormats = b.value, pn(g, _, h);
2592
+ }
2593
+ function S(_) {
2594
+ return L.value[_] || {};
2595
+ }
2596
+ function W(_, h) {
2597
+ L.value[_] = h, g.numberFormats = L.value, hn(g, _, h);
2598
+ }
2599
+ function H(_, h) {
2600
+ L.value[_] = J(L.value[_] || {}, h), g.numberFormats = L.value, hn(g, _, h);
2601
+ }
2602
+ Cn++, t && oe && (Ot(t.locale, (_) => {
2603
+ o && (i.value = _, g.locale = _, Ve(g, i.value, c.value));
2604
+ }), Ot(t.fallbackLocale, (_) => {
2605
+ o && (c.value = _, g.fallbackLocale = _, Ve(g, i.value, c.value));
2606
+ }));
2607
+ const w = {
2608
+ id: Cn,
2609
+ locale: X,
2610
+ fallbackLocale: ae,
2611
+ get inheritLocale() {
2612
+ return o;
2613
+ },
2614
+ set inheritLocale(_) {
2615
+ o = _, _ && t && (i.value = t.locale.value, c.value = t.fallbackLocale.value, Ve(g, i.value, c.value));
2616
+ },
2617
+ get availableLocales() {
2618
+ return Object.keys(E.value).sort();
2619
+ },
2620
+ messages: Y,
2621
+ get modifiers() {
2622
+ return O;
2623
+ },
2624
+ get pluralRules() {
2625
+ return A || {};
2626
+ },
2627
+ get isGlobal() {
2628
+ return r;
2629
+ },
2630
+ get missingWarn() {
2631
+ return N;
2632
+ },
2633
+ set missingWarn(_) {
2634
+ N = _, g.missingWarn = N;
2635
+ },
2636
+ get fallbackWarn() {
2637
+ return v;
2638
+ },
2639
+ set fallbackWarn(_) {
2640
+ v = _, g.fallbackWarn = v;
2641
+ },
2642
+ get fallbackRoot() {
2643
+ return F;
2644
+ },
2645
+ set fallbackRoot(_) {
2646
+ F = _;
2647
+ },
2648
+ get fallbackFormat() {
2649
+ return C;
2650
+ },
2651
+ set fallbackFormat(_) {
2652
+ C = _, g.fallbackFormat = C;
2653
+ },
2654
+ get warnHtmlMessage() {
2655
+ return T;
2656
+ },
2657
+ set warnHtmlMessage(_) {
2658
+ T = _, g.warnHtmlMessage = _;
2659
+ },
2660
+ get escapeParameter() {
2661
+ return d;
2662
+ },
2663
+ set escapeParameter(_) {
2664
+ d = _, g.escapeParameter = _;
2665
+ },
2666
+ t: Re,
2667
+ getLocaleMessage: ge,
2668
+ setLocaleMessage: Ue,
2669
+ mergeLocaleMessage: Nt,
2670
+ getPostTranslationHandler: st,
2671
+ setPostTranslationHandler: ot,
2672
+ getMissingHandler: lt,
2673
+ setMissingHandler: it,
2674
+ [ir]: gt
2675
+ };
2676
+ return w.datetimeFormats = Oe, w.numberFormats = at, w.rt = ct, w.te = pt, w.tm = we, w.d = ft, w.n = _t, w.getDateTimeFormat = l, w.setDateTimeFormat = u, w.mergeDateTimeFormat = p, w.getNumberFormat = S, w.setNumberFormat = W, w.mergeNumberFormat = H, w[ur] = n, w[Ft] = He, w[yt] = Ke, w[kt] = Et, process.env.NODE_ENV !== "production" && (w[Ie] = (_) => {
2677
+ g.__v_emitter = _;
2678
+ }, w[We] = () => {
2679
+ g.__v_emitter = void 0;
2680
+ }), w;
2681
+ }
2682
+ const _r = "vue-i18n: composer properties", It = {
2683
+ "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
2684
+ "vue-i18n-resource-inspector": "Vue I18n DevTools",
2685
+ "vue-i18n-timeline": "Vue I18n"
2686
+ }, $s = {
2687
+ "vue-i18n-resource-inspector": "Search for scopes ..."
2688
+ }, Bs = {
2689
+ "vue-i18n-timeline": 16764185
2690
+ };
2691
+ let Mt;
2692
+ async function xs(e, t) {
2693
+ return new Promise((n, r) => {
2694
+ try {
2695
+ ys({
2696
+ id: "vue-devtools-plugin-vue-i18n",
2697
+ label: It["vue-devtools-plugin-vue-i18n"],
2698
+ packageName: "vue-i18n",
2699
+ homepage: "https://vue-i18n.intlify.dev",
2700
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
2701
+ componentStateTypes: [_r],
2702
+ app: e
2703
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2704
+ }, (a) => {
2705
+ Mt = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
2706
+ Ws(o, i, t);
2707
+ }), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
2708
+ o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Dn(i, o.__VUE_I18N__) : Dn(i, o.__VUE_I18N__));
2709
+ }), a.addInspector({
2710
+ id: "vue-i18n-resource-inspector",
2711
+ label: It["vue-i18n-resource-inspector"],
2712
+ icon: "language",
2713
+ treeFilterPlaceholder: $s["vue-i18n-resource-inspector"]
2714
+ }), a.on.getInspectorTree((o) => {
2715
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && js(o, t);
2716
+ });
2717
+ const s = /* @__PURE__ */ new Map();
2718
+ a.on.getInspectorState(async (o) => {
2719
+ if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
2720
+ if (a.unhighlightElement(), Js(o, t), o.nodeId === "global") {
2721
+ if (!s.has(o.app)) {
2722
+ const [i] = await a.getComponentInstances(o.app);
2723
+ s.set(o.app, i);
2724
+ }
2725
+ a.highlightElement(s.get(o.app));
2726
+ } else {
2727
+ const i = Xs(o.nodeId, t);
2728
+ i && a.highlightElement(i);
2729
+ }
2730
+ }), a.on.editInspectorState((o) => {
2731
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && qs(o, t);
2732
+ }), a.addTimelineLayer({
2733
+ id: "vue-i18n-timeline",
2734
+ label: It["vue-i18n-timeline"],
2735
+ color: Bs["vue-i18n-timeline"]
2736
+ }), n(!0);
2737
+ });
2738
+ } catch (a) {
2739
+ console.error(a), r(!1);
2740
+ }
2741
+ });
2742
+ }
2743
+ function mr(e) {
2744
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
2745
+ }
2746
+ function Ws(e, t, n) {
2747
+ const r = n.mode === "composition" ? n.global : n.global.__composer;
2748
+ if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
2749
+ const a = {
2750
+ label: `i18n (${mr(e)} Scope)`,
2751
+ textColor: 0,
2752
+ backgroundColor: 16764185
2753
+ };
2754
+ t.tags.push(a);
2755
+ }
2756
+ }
2757
+ function Dn(e, t) {
2758
+ const n = _r;
2759
+ e.state.push({
2760
+ type: n,
2761
+ key: "locale",
2762
+ editable: !0,
2763
+ value: t.locale.value
2764
+ }), e.state.push({
2765
+ type: n,
2766
+ key: "availableLocales",
2767
+ editable: !1,
2768
+ value: t.availableLocales
2769
+ }), e.state.push({
2770
+ type: n,
2771
+ key: "fallbackLocale",
2772
+ editable: !0,
2773
+ value: t.fallbackLocale.value
2774
+ }), e.state.push({
2775
+ type: n,
2776
+ key: "inheritLocale",
2777
+ editable: !0,
2778
+ value: t.inheritLocale
2779
+ }), e.state.push({
2780
+ type: n,
2781
+ key: "messages",
2782
+ editable: !1,
2783
+ value: Xt(t.messages.value)
2784
+ }), e.state.push({
2785
+ type: n,
2786
+ key: "datetimeFormats",
2787
+ editable: !1,
2788
+ value: t.datetimeFormats.value
2789
+ }), e.state.push({
2790
+ type: n,
2791
+ key: "numberFormats",
2792
+ editable: !1,
2793
+ value: t.numberFormats.value
2794
+ });
2795
+ }
2796
+ function Xt(e) {
2797
+ const t = {};
2798
+ return Object.keys(e).forEach((n) => {
2799
+ const r = e[n];
2800
+ B(r) && "source" in r ? t[n] = Ks(r) : re(r) && r.loc && r.loc.source ? t[n] = r.loc.source : R(r) ? t[n] = Xt(r) : t[n] = r;
2801
+ }), t;
2802
+ }
2803
+ const Gs = {
2804
+ "<": "&lt;",
2805
+ ">": "&gt;",
2806
+ '"': "&quot;",
2807
+ "&": "&amp;"
2808
+ };
2809
+ function Ys(e) {
2810
+ return e.replace(/[<>"&]/g, Hs);
2811
+ }
2812
+ function Hs(e) {
2813
+ return Gs[e] || e;
2814
+ }
2815
+ function Ks(e) {
2816
+ return {
2817
+ _custom: {
2818
+ type: "function",
2819
+ display: `<span>ƒ</span> ${e.source ? `("${Ys(e.source)}")` : "(?)"}`
2820
+ }
2821
+ };
2822
+ }
2823
+ function js(e, t) {
2824
+ e.rootNodes.push({
2825
+ id: "global",
2826
+ label: "Global Scope"
2827
+ });
2828
+ const n = t.mode === "composition" ? t.global : t.global.__composer;
2829
+ for (const [r, a] of t.__instances) {
2830
+ const s = t.mode === "composition" ? a : a.__composer;
2831
+ n !== s && e.rootNodes.push({
2832
+ id: s.id.toString(),
2833
+ label: `${mr(r)} Scope`
2834
+ });
2835
+ }
2836
+ }
2837
+ function Xs(e, t) {
2838
+ let n = null;
2839
+ if (e !== "global") {
2840
+ for (const [r, a] of t.__instances.entries())
2841
+ if (a.id.toString() === e) {
2842
+ n = r;
2843
+ break;
2844
+ }
2845
+ }
2846
+ return n;
2847
+ }
2848
+ function dr(e, t) {
2849
+ if (e === "global")
2850
+ return t.mode === "composition" ? t.global : t.global.__composer;
2851
+ {
2852
+ const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
2853
+ return n ? t.mode === "composition" ? n : n.__composer : null;
2854
+ }
2855
+ }
2856
+ function Js(e, t) {
2857
+ const n = dr(e.nodeId, t);
2858
+ return n && (e.state = Qs(n)), null;
2859
+ }
2860
+ function Qs(e) {
2861
+ const t = {}, n = "Locale related info", r = [
2862
+ {
2863
+ type: n,
2864
+ key: "locale",
2865
+ editable: !0,
2866
+ value: e.locale.value
2867
+ },
2868
+ {
2869
+ type: n,
2870
+ key: "fallbackLocale",
2871
+ editable: !0,
2872
+ value: e.fallbackLocale.value
2873
+ },
2874
+ {
2875
+ type: n,
2876
+ key: "availableLocales",
2877
+ editable: !1,
2878
+ value: e.availableLocales
2879
+ },
2880
+ {
2881
+ type: n,
2882
+ key: "inheritLocale",
2883
+ editable: !0,
2884
+ value: e.inheritLocale
2885
+ }
2886
+ ];
2887
+ t[n] = r;
2888
+ const a = "Locale messages info", s = [
2889
+ {
2890
+ type: a,
2891
+ key: "messages",
2892
+ editable: !1,
2893
+ value: Xt(e.messages.value)
2894
+ }
2895
+ ];
2896
+ t[a] = s;
2897
+ {
2898
+ const o = "Datetime formats info", i = [
2899
+ {
2900
+ type: o,
2901
+ key: "datetimeFormats",
2902
+ editable: !1,
2903
+ value: e.datetimeFormats.value
2904
+ }
2905
+ ];
2906
+ t[o] = i;
2907
+ const c = "Datetime formats info", E = [
2908
+ {
2909
+ type: c,
2910
+ key: "numberFormats",
2911
+ editable: !1,
2912
+ value: e.numberFormats.value
2913
+ }
2914
+ ];
2915
+ t[c] = E;
2916
+ }
2917
+ return t;
2918
+ }
2919
+ function Ye(e, t) {
2920
+ if (Mt) {
2921
+ let n;
2922
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), Mt.addTimelineEvent({
2923
+ layerId: "vue-i18n-timeline",
2924
+ event: {
2925
+ title: e,
2926
+ groupId: n,
2927
+ time: Date.now(),
2928
+ meta: {},
2929
+ data: t || {},
2930
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
2931
+ }
2932
+ });
2933
+ }
2934
+ }
2935
+ function qs(e, t) {
2936
+ const n = dr(e.nodeId, t);
2937
+ if (n) {
2938
+ const [r] = e.path;
2939
+ r === "locale" && I(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (I(e.state.value) || G(e.state.value) || R(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && M(e.state.value) && (n.inheritLocale = e.state.value);
2940
+ }
2941
+ }
2942
+ function Zs(e) {
2943
+ const t = I(e.locale) ? e.locale : xe, n = I(e.fallbackLocale) || G(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = B(e.missing) ? e.missing : void 0, a = M(e.silentTranslationWarn) || Se(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = M(e.silentFallbackWarn) || Se(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = M(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, c = k(e.modifiers) ? e.modifiers : {}, E = e.pluralizationRules, b = B(e.postTranslation) ? e.postTranslation : void 0, L = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, v = M(e.sync) ? e.sync : !0;
2944
+ let F = e.messages;
2945
+ if (k(e.sharedMessages)) {
2946
+ const O = e.sharedMessages;
2947
+ F = Object.keys(O).reduce((g, y) => {
2948
+ const U = g[y] || (g[y] = {});
2949
+ return J(U, O[y]), g;
2950
+ }, F || {});
2951
+ }
2952
+ const { __i18n: C, __root: D, __injectWithOption: f } = e, m = e.datetimeFormats, T = e.numberFormats, d = e.flatJson;
2953
+ return {
2954
+ locale: t,
2955
+ fallbackLocale: n,
2956
+ messages: F,
2957
+ flatJson: d,
2958
+ datetimeFormats: m,
2959
+ numberFormats: T,
2960
+ missing: r,
2961
+ missingWarn: a,
2962
+ fallbackWarn: s,
2963
+ fallbackRoot: o,
2964
+ fallbackFormat: i,
2965
+ modifiers: c,
2966
+ pluralRules: E,
2967
+ postTranslation: b,
2968
+ warnHtmlMessage: L,
2969
+ escapeParameter: N,
2970
+ messageResolver: e.messageResolver,
2971
+ inheritLocale: v,
2972
+ __i18n: C,
2973
+ __root: D,
2974
+ __injectWithOption: f
2975
+ };
2976
+ }
2977
+ function wt(e = {}) {
2978
+ const t = jt(Zs(e)), { __extender: n } = e, r = {
2979
+ // id
2980
+ id: t.id,
2981
+ // locale
2982
+ get locale() {
2983
+ return t.locale.value;
2984
+ },
2985
+ set locale(a) {
2986
+ t.locale.value = a;
2987
+ },
2988
+ // fallbackLocale
2989
+ get fallbackLocale() {
2990
+ return t.fallbackLocale.value;
2991
+ },
2992
+ set fallbackLocale(a) {
2993
+ t.fallbackLocale.value = a;
2994
+ },
2995
+ // messages
2996
+ get messages() {
2997
+ return t.messages.value;
2998
+ },
2999
+ // datetimeFormats
3000
+ get datetimeFormats() {
3001
+ return t.datetimeFormats.value;
3002
+ },
3003
+ // numberFormats
3004
+ get numberFormats() {
3005
+ return t.numberFormats.value;
3006
+ },
3007
+ // availableLocales
3008
+ get availableLocales() {
3009
+ return t.availableLocales;
3010
+ },
3011
+ // missing
3012
+ get missing() {
3013
+ return t.getMissingHandler();
3014
+ },
3015
+ set missing(a) {
3016
+ t.setMissingHandler(a);
3017
+ },
3018
+ // silentTranslationWarn
3019
+ get silentTranslationWarn() {
3020
+ return M(t.missingWarn) ? !t.missingWarn : t.missingWarn;
3021
+ },
3022
+ set silentTranslationWarn(a) {
3023
+ t.missingWarn = M(a) ? !a : a;
3024
+ },
3025
+ // silentFallbackWarn
3026
+ get silentFallbackWarn() {
3027
+ return M(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
3028
+ },
3029
+ set silentFallbackWarn(a) {
3030
+ t.fallbackWarn = M(a) ? !a : a;
3031
+ },
3032
+ // modifiers
3033
+ get modifiers() {
3034
+ return t.modifiers;
3035
+ },
3036
+ // formatFallbackMessages
3037
+ get formatFallbackMessages() {
3038
+ return t.fallbackFormat;
3039
+ },
3040
+ set formatFallbackMessages(a) {
3041
+ t.fallbackFormat = a;
3042
+ },
3043
+ // postTranslation
3044
+ get postTranslation() {
3045
+ return t.getPostTranslationHandler();
3046
+ },
3047
+ set postTranslation(a) {
3048
+ t.setPostTranslationHandler(a);
3049
+ },
3050
+ // sync
3051
+ get sync() {
3052
+ return t.inheritLocale;
3053
+ },
3054
+ set sync(a) {
3055
+ t.inheritLocale = a;
3056
+ },
3057
+ // warnInHtmlMessage
3058
+ get warnHtmlInMessage() {
3059
+ return t.warnHtmlMessage ? "warn" : "off";
3060
+ },
3061
+ set warnHtmlInMessage(a) {
3062
+ t.warnHtmlMessage = a !== "off";
3063
+ },
3064
+ // escapeParameterHtml
3065
+ get escapeParameterHtml() {
3066
+ return t.escapeParameter;
3067
+ },
3068
+ set escapeParameterHtml(a) {
3069
+ t.escapeParameter = a;
3070
+ },
3071
+ // pluralizationRules
3072
+ get pluralizationRules() {
3073
+ return t.pluralRules || {};
3074
+ },
3075
+ // for internal
3076
+ __composer: t,
3077
+ // t
3078
+ t(...a) {
3079
+ return Reflect.apply(t.t, t, [...a]);
3080
+ },
3081
+ // rt
3082
+ rt(...a) {
3083
+ return Reflect.apply(t.rt, t, [...a]);
3084
+ },
3085
+ // te
3086
+ te(a, s) {
3087
+ return t.te(a, s);
3088
+ },
3089
+ // tm
3090
+ tm(a) {
3091
+ return t.tm(a);
3092
+ },
3093
+ // getLocaleMessage
3094
+ getLocaleMessage(a) {
3095
+ return t.getLocaleMessage(a);
3096
+ },
3097
+ // setLocaleMessage
3098
+ setLocaleMessage(a, s) {
3099
+ t.setLocaleMessage(a, s);
3100
+ },
3101
+ // mergeLocaleMessage
3102
+ mergeLocaleMessage(a, s) {
3103
+ t.mergeLocaleMessage(a, s);
3104
+ },
3105
+ // d
3106
+ d(...a) {
3107
+ return Reflect.apply(t.d, t, [...a]);
3108
+ },
3109
+ // getDateTimeFormat
3110
+ getDateTimeFormat(a) {
3111
+ return t.getDateTimeFormat(a);
3112
+ },
3113
+ // setDateTimeFormat
3114
+ setDateTimeFormat(a, s) {
3115
+ t.setDateTimeFormat(a, s);
3116
+ },
3117
+ // mergeDateTimeFormat
3118
+ mergeDateTimeFormat(a, s) {
3119
+ t.mergeDateTimeFormat(a, s);
3120
+ },
3121
+ // n
3122
+ n(...a) {
3123
+ return Reflect.apply(t.n, t, [...a]);
3124
+ },
3125
+ // getNumberFormat
3126
+ getNumberFormat(a) {
3127
+ return t.getNumberFormat(a);
3128
+ },
3129
+ // setNumberFormat
3130
+ setNumberFormat(a, s) {
3131
+ t.setNumberFormat(a, s);
3132
+ },
3133
+ // mergeNumberFormat
3134
+ mergeNumberFormat(a, s) {
3135
+ t.mergeNumberFormat(a, s);
3136
+ }
3137
+ };
3138
+ return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (a) => {
3139
+ const s = t;
3140
+ s[Ie] && s[Ie](a);
3141
+ }, r.__disableEmitter = () => {
3142
+ const a = t;
3143
+ a[We] && a[We]();
3144
+ }), r;
3145
+ }
3146
+ function zs(e, t, n) {
3147
+ return {
3148
+ beforeCreate() {
3149
+ const r = De();
3150
+ if (!r)
3151
+ throw z(x.UNEXPECTED_ERROR);
3152
+ const a = this.$options;
3153
+ if (a.i18n) {
3154
+ const s = a.i18n;
3155
+ if (a.__i18n && (s.__i18n = a.__i18n), s.__root = t, this === this.$root)
3156
+ this.$i18n = Sn(e, s);
3157
+ else {
3158
+ s.__injectWithOption = !0, s.__extender = n.__vueI18nExtend, this.$i18n = wt(s);
3159
+ const o = this.$i18n;
3160
+ o.__extender && (o.__disposer = o.__extender(this.$i18n));
3161
+ }
3162
+ } else if (a.__i18n)
3163
+ if (this === this.$root)
3164
+ this.$i18n = Sn(e, a);
3165
+ else {
3166
+ this.$i18n = wt({
3167
+ __i18n: a.__i18n,
3168
+ __injectWithOption: !0,
3169
+ __extender: n.__vueI18nExtend,
3170
+ __root: t
3171
+ });
3172
+ const s = this.$i18n;
3173
+ s.__extender && (s.__disposer = s.__extender(this.$i18n));
3174
+ }
3175
+ else
3176
+ this.$i18n = e;
3177
+ a.__i18nGlobal && fr(t, a, a), this.$t = (...s) => this.$i18n.t(...s), this.$rt = (...s) => this.$i18n.rt(...s), this.$te = (s, o) => this.$i18n.te(s, o), this.$d = (...s) => this.$i18n.d(...s), this.$n = (...s) => this.$i18n.n(...s), this.$tm = (s) => this.$i18n.tm(s), n.__setInstance(r, this.$i18n);
3178
+ },
3179
+ mounted() {
3180
+ if (process.env.NODE_ENV !== "production" && this.$i18n) {
3181
+ const r = De();
3182
+ if (!r)
3183
+ return;
3184
+ const a = this.$i18n;
3185
+ r.__VUE_I18N__ = a.__composer;
3186
+ const s = this.__v_emitter = xt();
3187
+ a.__enableEmitter && a.__enableEmitter(s), s.on("*", Ye);
3188
+ }
3189
+ },
3190
+ unmounted() {
3191
+ const r = De();
3192
+ if (!r)
3193
+ throw z(x.UNEXPECTED_ERROR);
3194
+ const a = this.$i18n;
3195
+ process.env.NODE_ENV !== "production" && r.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Ye), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete r.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), n.__deleteInstance(r), delete this.$i18n;
3196
+ }
3197
+ };
3198
+ }
3199
+ function Sn(e, t) {
3200
+ e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[ir](t.pluralizationRules || e.pluralizationRules);
3201
+ const n = Kt(e.locale, {
3202
+ messages: t.messages,
3203
+ __i18n: t.__i18n
3204
+ });
3205
+ return Object.keys(n).forEach((r) => e.mergeLocaleMessage(r, n[r])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((r) => e.mergeDateTimeFormat(r, t.datetimeFormats[r])), t.numberFormats && Object.keys(t.numberFormats).forEach((r) => e.mergeNumberFormat(r, t.numberFormats[r])), e;
3206
+ }
3207
+ const Jt = {
3208
+ tag: {
3209
+ type: [String, Object]
3210
+ },
3211
+ locale: {
3212
+ type: String
3213
+ },
3214
+ scope: {
3215
+ type: String,
3216
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
3217
+ validator: (e) => e === "parent" || e === "global",
3218
+ default: "parent"
3219
+ /* ComponentI18nScope */
3220
+ },
3221
+ i18n: {
3222
+ type: Object
3223
+ }
3224
+ };
3225
+ function eo({ slots: e }, t) {
3226
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
3227
+ ...r,
3228
+ // prettier-ignore
3229
+ ...a.type === Un ? a.children : [a]
3230
+ ], []) : t.reduce((n, r) => {
3231
+ const a = e[r];
3232
+ return a && (n[r] = a()), n;
3233
+ }, $());
3234
+ }
3235
+ function Er() {
3236
+ return Un;
3237
+ }
3238
+ const to = /* @__PURE__ */ Ut({
3239
+ /* eslint-disable */
3240
+ name: "i18n-t",
3241
+ props: J({
3242
+ keypath: {
3243
+ type: String,
3244
+ required: !0
3245
+ },
3246
+ plural: {
3247
+ type: [Number, String],
3248
+ validator: (e) => j(e) || !isNaN(e)
3249
+ }
3250
+ }, Jt),
3251
+ /* eslint-enable */
3252
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3253
+ setup(e, t) {
3254
+ const { slots: n, attrs: r } = t, a = e.i18n || Qt({
3255
+ useScope: e.scope,
3256
+ __useComponent: !0
3257
+ });
3258
+ return () => {
3259
+ const s = Object.keys(n).filter((L) => L[0] !== "_"), o = $();
3260
+ e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
3261
+ const i = eo(t, s), c = a[Ft](e.keypath, i, o), E = J($(), r), b = I(e.tag) || R(e.tag) ? e.tag : Er();
3262
+ return wn(b, E, c);
3263
+ };
3264
+ }
3265
+ }), Pn = to;
3266
+ function no(e) {
3267
+ return G(e) && !I(e[0]);
3268
+ }
3269
+ function gr(e, t, n, r) {
3270
+ const { slots: a, attrs: s } = t;
3271
+ return () => {
3272
+ const o = { part: !0 };
3273
+ let i = $();
3274
+ e.locale && (o.locale = e.locale), I(e.format) ? o.key = e.format : R(e.format) && (I(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((N, v) => n.includes(v) ? J($(), N, { [v]: e.format[v] }) : N, $()));
3275
+ const c = r(e.value, o, i);
3276
+ let E = [o.key];
3277
+ G(c) ? E = c.map((N, v) => {
3278
+ const F = a[N.type], C = F ? F({ [N.type]: N.value, index: v, parts: c }) : [N.value];
3279
+ return no(C) && (C[0].key = `${N.type}-${v}`), C;
3280
+ }) : I(c) && (E = [c]);
3281
+ const b = J($(), s), L = I(e.tag) || R(e.tag) ? e.tag : Er();
3282
+ return wn(L, b, E);
3283
+ };
3284
+ }
3285
+ const ro = /* @__PURE__ */ Ut({
3286
+ /* eslint-disable */
3287
+ name: "i18n-n",
3288
+ props: J({
3289
+ value: {
3290
+ type: Number,
3291
+ required: !0
3292
+ },
3293
+ format: {
3294
+ type: [String, Object]
3295
+ }
3296
+ }, Jt),
3297
+ /* eslint-enable */
3298
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3299
+ setup(e, t) {
3300
+ const n = e.i18n || Qt({
3301
+ useScope: e.scope,
3302
+ __useComponent: !0
3303
+ });
3304
+ return gr(e, t, ar, (...r) => (
3305
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3306
+ n[kt](...r)
3307
+ ));
3308
+ }
3309
+ }), Fn = ro;
3310
+ function ao(e, t) {
3311
+ const n = e;
3312
+ if (e.mode === "composition")
3313
+ return n.__getInstance(t) || e.global;
3314
+ {
3315
+ const r = n.__getInstance(t);
3316
+ return r != null ? r.__composer : e.global.__composer;
3317
+ }
3318
+ }
3319
+ function so(e) {
3320
+ const t = (o) => {
3321
+ process.env.NODE_ENV !== "production" && Vt(Fe(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3322
+ const { instance: i, value: c } = o;
3323
+ if (!i || !i.$)
3324
+ throw z(x.UNEXPECTED_ERROR);
3325
+ const E = ao(e, i.$), b = yn(c);
3326
+ return [
3327
+ Reflect.apply(E.t, E, [...kn(b)]),
3328
+ E
3329
+ ];
3330
+ };
3331
+ return {
3332
+ created: (o, i) => {
3333
+ const [c, E] = t(i);
3334
+ oe && e.global === E && (o.__i18nWatcher = Ot(E.locale, () => {
3335
+ i.instance && i.instance.$forceUpdate();
3336
+ })), o.__composer = E, o.textContent = c;
3337
+ },
3338
+ unmounted: (o) => {
3339
+ oe && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
3340
+ },
3341
+ beforeUpdate: (o, { value: i }) => {
3342
+ if (o.__composer) {
3343
+ const c = o.__composer, E = yn(i);
3344
+ o.textContent = Reflect.apply(c.t, c, [
3345
+ ...kn(E)
3346
+ ]);
3347
+ }
3348
+ },
3349
+ getSSRProps: (o) => {
3350
+ const [i] = t(o);
3351
+ return { textContent: i };
3352
+ }
3353
+ };
3354
+ }
3355
+ function yn(e) {
3356
+ if (I(e))
3357
+ return { path: e };
3358
+ if (k(e)) {
3359
+ if (!("path" in e))
3360
+ throw z(x.REQUIRED_VALUE, "path");
3361
+ return e;
3362
+ } else
3363
+ throw z(x.INVALID_VALUE);
3364
+ }
3365
+ function kn(e) {
3366
+ const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
3367
+ return I(n) && (o.locale = n), j(a) && (o.plural = a), j(s) && (o.plural = s), [t, i, o];
3368
+ }
3369
+ function oo(e, t, ...n) {
3370
+ const r = k(n[0]) ? n[0] : {};
3371
+ (!M(r.globalInstall) || r.globalInstall) && ([Pn.name, "I18nT"].forEach((s) => e.component(s, Pn)), [Fn.name, "I18nN"].forEach((s) => e.component(s, Fn)), [Mn.name, "I18nD"].forEach((s) => e.component(s, Mn))), e.directive("t", so(t));
3372
+ }
3373
+ const lo = /* @__PURE__ */ ce("global-vue-i18n");
3374
+ function io(e = {}) {
3375
+ const t = __VUE_I18N_LEGACY_API__ && M(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
3376
+ process.env.NODE_ENV !== "production" && t && Vt(Fe(ne.DEPRECATE_LEGACY_MODE));
3377
+ const n = M(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = uo(e, t), o = /* @__PURE__ */ ce(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3378
+ function i(L) {
3379
+ return r.get(L) || null;
3380
+ }
3381
+ function c(L, N) {
3382
+ r.set(L, N);
3383
+ }
3384
+ function E(L) {
3385
+ r.delete(L);
3386
+ }
3387
+ const b = {
3388
+ // mode
3389
+ get mode() {
3390
+ return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
3391
+ },
3392
+ // install plugin
3393
+ async install(L, ...N) {
3394
+ if (process.env.NODE_ENV !== "production" && (L.__VUE_I18N__ = b), L.__VUE_I18N_SYMBOL__ = o, L.provide(L.__VUE_I18N_SYMBOL__, b), k(N[0])) {
3395
+ const C = N[0];
3396
+ b.__composerExtend = C.__composerExtend, b.__vueI18nExtend = C.__vueI18nExtend;
3397
+ }
3398
+ let v = null;
3399
+ !t && n && (v = No(L, b.global)), __VUE_I18N_FULL_INSTALL__ && oo(L, b, ...N), __VUE_I18N_LEGACY_API__ && t && L.mixin(zs(s, s.__composer, b));
3400
+ const F = L.unmount;
3401
+ if (L.unmount = () => {
3402
+ v && v(), b.dispose(), F();
3403
+ }, process.env.NODE_ENV !== "production") {
3404
+ if (!await xs(L, b))
3405
+ throw z(x.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3406
+ const D = xt();
3407
+ if (t) {
3408
+ const f = s;
3409
+ f.__enableEmitter && f.__enableEmitter(D);
3410
+ } else {
3411
+ const f = s;
3412
+ f[Ie] && f[Ie](D);
3413
+ }
3414
+ D.on("*", Ye);
3415
+ }
3416
+ },
3417
+ // global accessor
3418
+ get global() {
3419
+ return s;
3420
+ },
3421
+ dispose() {
3422
+ a.stop();
3423
+ },
3424
+ // @internal
3425
+ __instances: r,
3426
+ // @internal
3427
+ __getInstance: i,
3428
+ // @internal
3429
+ __setInstance: c,
3430
+ // @internal
3431
+ __deleteInstance: E
3432
+ };
3433
+ return b;
3434
+ }
3435
+ function Qt(e = {}) {
3436
+ const t = De();
3437
+ if (t == null)
3438
+ throw z(x.MUST_BE_CALL_SETUP_TOP);
3439
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3440
+ throw z(x.NOT_INSTALLED);
3441
+ const n = co(t), r = _o(n), a = cr(t), s = fo(e, a);
3442
+ if (s === "global")
3443
+ return fr(r, e, a), r;
3444
+ if (s === "parent") {
3445
+ let c = mo(n, t, e.__useComponent);
3446
+ return c == null && (process.env.NODE_ENV !== "production" && ue(Fe(ne.NOT_FOUND_PARENT_SCOPE)), c = r), c;
3447
+ }
3448
+ const o = n;
3449
+ let i = o.__getInstance(t);
3450
+ if (i == null) {
3451
+ const c = J({}, e);
3452
+ "__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), i = jt(c), o.__composerExtend && (i[Rt] = o.__composerExtend(i)), go(o, t, i), o.__setInstance(t, i);
3453
+ } else
3454
+ process.env.NODE_ENV !== "production" && s === "local" && ue(Fe(ne.DUPLICATE_USE_I18N_CALLING));
3455
+ return i;
3456
+ }
3457
+ function uo(e, t) {
3458
+ const n = br(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => wt(e)) : n.run(() => jt(e));
3459
+ if (r == null)
3460
+ throw z(x.UNEXPECTED_ERROR);
3461
+ return [n, r];
3462
+ }
3463
+ function co(e) {
3464
+ const t = Cr(e.isCE ? lo : e.appContext.app.__VUE_I18N_SYMBOL__);
3465
+ if (!t)
3466
+ throw z(e.isCE ? x.NOT_INSTALLED_WITH_PROVIDE : x.UNEXPECTED_ERROR);
3467
+ return t;
3468
+ }
3469
+ function fo(e, t) {
3470
+ return tt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3471
+ }
3472
+ function _o(e) {
3473
+ return e.mode === "composition" ? e.global : e.global.__composer;
3474
+ }
3475
+ function mo(e, t, n = !1) {
3476
+ let r = null;
3477
+ const a = t.root;
3478
+ let s = Eo(t, n);
3479
+ for (; s != null; ) {
3480
+ const o = e;
3481
+ if (e.mode === "composition")
3482
+ r = o.__getInstance(s);
3483
+ else if (__VUE_I18N_LEGACY_API__) {
3484
+ const i = o.__getInstance(s);
3485
+ i != null && (r = i.__composer, n && r && !r[ur] && (r = null));
3486
+ }
3487
+ if (r != null || a === s)
3488
+ break;
3489
+ s = s.parent;
3490
+ }
3491
+ return r;
3492
+ }
3493
+ function Eo(e, t = !1) {
3494
+ return e == null ? null : t && e.vnode.ctx || e.parent;
3495
+ }
3496
+ function go(e, t, n) {
3497
+ let r = null;
3498
+ vr(() => {
3499
+ if (process.env.NODE_ENV !== "production") {
3500
+ t.__VUE_I18N__ = n, r = xt();
3501
+ const a = n;
3502
+ a[Ie] && a[Ie](r), r.on("*", Ye);
3503
+ }
3504
+ }, t), Dr(() => {
3505
+ const a = n;
3506
+ process.env.NODE_ENV !== "production" && (r && r.off("*", Ye), a[We] && a[We](), delete t.__VUE_I18N__), e.__deleteInstance(t);
3507
+ const s = a[Rt];
3508
+ s && (s(), delete a[Rt]);
3509
+ }, t);
3510
+ }
3511
+ const po = [
3512
+ "locale",
3513
+ "fallbackLocale",
3514
+ "availableLocales"
3515
+ ], Rn = ["t", "rt", "d", "n", "tm", "te"];
3516
+ function No(e, t) {
3517
+ const n = /* @__PURE__ */ Object.create(null);
3518
+ return po.forEach((a) => {
3519
+ const s = Object.getOwnPropertyDescriptor(t, a);
3520
+ if (!s)
3521
+ throw z(x.UNEXPECTED_ERROR);
3522
+ const o = Ar(s.value) ? {
3523
+ get() {
3524
+ return s.value.value;
3525
+ },
3526
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3527
+ set(i) {
3528
+ s.value.value = i;
3529
+ }
3530
+ } : {
3531
+ get() {
3532
+ return s.get && s.get();
3533
+ }
3534
+ };
3535
+ Object.defineProperty(n, a, o);
3536
+ }), e.config.globalProperties.$i18n = n, Rn.forEach((a) => {
3537
+ const s = Object.getOwnPropertyDescriptor(t, a);
3538
+ if (!s || !s.value)
3539
+ throw z(x.UNEXPECTED_ERROR);
3540
+ Object.defineProperty(e.config.globalProperties, `$${a}`, s);
3541
+ }), () => {
3542
+ delete e.config.globalProperties.$i18n, Rn.forEach((a) => {
3543
+ delete e.config.globalProperties[`$${a}`];
3544
+ });
3545
+ };
3546
+ }
3547
+ const ho = /* @__PURE__ */ Ut({
3548
+ /* eslint-disable */
3549
+ name: "i18n-d",
3550
+ props: J({
3551
+ value: {
3552
+ type: [Number, Date],
3553
+ required: !0
3554
+ },
3555
+ format: {
3556
+ type: [String, Object]
3557
+ }
3558
+ }, Jt),
3559
+ /* eslint-enable */
3560
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3561
+ setup(e, t) {
3562
+ const n = e.i18n || Qt({
3563
+ useScope: e.scope,
3564
+ __useComponent: !0
3565
+ });
3566
+ return gr(e, t, rr, (...r) => (
3567
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3568
+ n[yt](...r)
3569
+ ));
3570
+ }
3571
+ }), Mn = ho;
3572
+ Rs();
3573
+ as(wa);
3574
+ ss(za);
3575
+ os(Xn);
3576
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3577
+ const e = Le();
3578
+ e.__INTLIFY__ = !0, Ua(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3579
+ }
3580
+ process.env.NODE_ENV;
3581
+ var pr = {
3582
+ name: "zh-cn",
3583
+ el: {
3584
+ breadcrumb: {
3585
+ label: "面包屑"
3586
+ },
3587
+ colorpicker: {
3588
+ confirm: "确定",
3589
+ clear: "清空",
3590
+ defaultLabel: "颜色选择器",
3591
+ description: "当前颜色 {color},按 Enter 键选择新颜色",
3592
+ alphaLabel: "选择透明度的值",
3593
+ alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
3594
+ hueLabel: "选择色相值",
3595
+ hueDescription: "色相 {hue}, 当前颜色 {color}",
3596
+ svLabel: "选择饱和度与明度的值",
3597
+ svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
3598
+ predefineDescription: "选择 {value} 作为颜色"
3599
+ },
3600
+ datepicker: {
3601
+ now: "此刻",
3602
+ today: "今天",
3603
+ cancel: "取消",
3604
+ clear: "清空",
3605
+ confirm: "确定",
3606
+ dateTablePrompt: "使用方向键与 Enter 键可选择日期",
3607
+ monthTablePrompt: "使用方向键与 Enter 键可选择月份",
3608
+ yearTablePrompt: "使用方向键与 Enter 键可选择年份",
3609
+ selectedDate: "已选日期",
3610
+ selectDate: "选择日期",
3611
+ selectTime: "选择时间",
3612
+ startDate: "开始日期",
3613
+ startTime: "开始时间",
3614
+ endDate: "结束日期",
3615
+ endTime: "结束时间",
3616
+ prevYear: "前一年",
3617
+ nextYear: "后一年",
3618
+ prevMonth: "上个月",
3619
+ nextMonth: "下个月",
3620
+ year: "年",
3621
+ month1: "1 月",
3622
+ month2: "2 月",
3623
+ month3: "3 月",
3624
+ month4: "4 月",
3625
+ month5: "5 月",
3626
+ month6: "6 月",
3627
+ month7: "7 月",
3628
+ month8: "8 月",
3629
+ month9: "9 月",
3630
+ month10: "10 月",
3631
+ month11: "11 月",
3632
+ month12: "12 月",
3633
+ weeks: {
3634
+ sun: "日",
3635
+ mon: "一",
3636
+ tue: "二",
3637
+ wed: "三",
3638
+ thu: "四",
3639
+ fri: "五",
3640
+ sat: "六"
3641
+ },
3642
+ weeksFull: {
3643
+ sun: "星期日",
3644
+ mon: "星期一",
3645
+ tue: "星期二",
3646
+ wed: "星期三",
3647
+ thu: "星期四",
3648
+ fri: "星期五",
3649
+ sat: "星期六"
3650
+ },
3651
+ months: {
3652
+ jan: "一月",
3653
+ feb: "二月",
3654
+ mar: "三月",
3655
+ apr: "四月",
3656
+ may: "五月",
3657
+ jun: "六月",
3658
+ jul: "七月",
3659
+ aug: "八月",
3660
+ sep: "九月",
3661
+ oct: "十月",
3662
+ nov: "十一月",
3663
+ dec: "十二月"
3664
+ }
3665
+ },
3666
+ inputNumber: {
3667
+ decrease: "减少数值",
3668
+ increase: "增加数值"
3669
+ },
3670
+ select: {
3671
+ loading: "加载中",
3672
+ noMatch: "无匹配数据",
3673
+ noData: "无数据",
3674
+ placeholder: "请选择"
3675
+ },
3676
+ mention: {
3677
+ loading: "加载中"
3678
+ },
3679
+ dropdown: {
3680
+ toggleDropdown: "切换下拉选项"
3681
+ },
3682
+ cascader: {
3683
+ noMatch: "无匹配数据",
3684
+ loading: "加载中",
3685
+ placeholder: "请选择",
3686
+ noData: "暂无数据"
3687
+ },
3688
+ pagination: {
3689
+ goto: "前往",
3690
+ pagesize: "条/页",
3691
+ total: "共 {total} 条",
3692
+ pageClassifier: "页",
3693
+ page: "页",
3694
+ prev: "上一页",
3695
+ next: "下一页",
3696
+ currentPage: "第 {pager} 页",
3697
+ prevPages: "向前 {pager} 页",
3698
+ nextPages: "向后 {pager} 页",
3699
+ deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
3700
+ },
3701
+ dialog: {
3702
+ close: "关闭此对话框"
3703
+ },
3704
+ drawer: {
3705
+ close: "关闭此对话框"
3706
+ },
3707
+ messagebox: {
3708
+ title: "提示",
3709
+ confirm: "确定",
3710
+ cancel: "取消",
3711
+ error: "输入的数据不合法!",
3712
+ close: "关闭此对话框"
3713
+ },
3714
+ upload: {
3715
+ deleteTip: "按 Delete 键可删除",
3716
+ delete: "删除",
3717
+ preview: "查看图片",
3718
+ continue: "继续上传"
3719
+ },
3720
+ slider: {
3721
+ defaultLabel: "滑块介于 {min} 至 {max}",
3722
+ defaultRangeStartLabel: "选择起始值",
3723
+ defaultRangeEndLabel: "选择结束值"
3724
+ },
3725
+ table: {
3726
+ emptyText: "暂无数据",
3727
+ confirmFilter: "筛选",
3728
+ resetFilter: "重置",
3729
+ clearFilter: "全部",
3730
+ sumText: "合计",
3731
+ selectAllLabel: "选择所有行",
3732
+ selectRowLabel: "选择当前行",
3733
+ expandRowLabel: "展开当前行",
3734
+ collapseRowLabel: "收起当前行",
3735
+ sortLabel: "按 {column} 排序",
3736
+ filterLabel: "按 {column} 过滤"
3737
+ },
3738
+ tag: {
3739
+ close: "关闭此标签"
3740
+ },
3741
+ tour: {
3742
+ next: "下一步",
3743
+ previous: "上一步",
3744
+ finish: "结束导览",
3745
+ close: "关闭此对话框"
3746
+ },
3747
+ tree: {
3748
+ emptyText: "暂无数据"
3749
+ },
3750
+ transfer: {
3751
+ noMatch: "无匹配数据",
3752
+ noData: "无数据",
3753
+ titles: ["列表 1", "列表 2"],
3754
+ filterPlaceholder: "请输入搜索内容",
3755
+ noCheckedFormat: "共 {total} 项",
3756
+ hasCheckedFormat: "已选 {checked}/{total} 项"
3757
+ },
3758
+ image: {
3759
+ error: "加载失败"
3760
+ },
3761
+ pageHeader: {
3762
+ title: "返回"
3763
+ },
3764
+ popconfirm: {
3765
+ confirmButtonText: "确定",
3766
+ cancelButtonText: "取消"
3767
+ },
3768
+ carousel: {
3769
+ leftArrow: "上一张幻灯片",
3770
+ rightArrow: "下一张幻灯片",
3771
+ indicator: "幻灯片切换至索引 {index}"
3772
+ }
3773
+ }
3774
+ };
3775
+ var Lo = {
3776
+ name: "en",
3777
+ el: {
3778
+ breadcrumb: {
3779
+ label: "Breadcrumb"
3780
+ },
3781
+ colorpicker: {
3782
+ confirm: "OK",
3783
+ clear: "Clear",
3784
+ defaultLabel: "color picker",
3785
+ description: "current color is {color}. press enter to select a new color.",
3786
+ alphaLabel: "pick alpha value",
3787
+ alphaDescription: "alpha {alpha}, current color is {color}",
3788
+ hueLabel: "pick hue value",
3789
+ hueDescription: "hue {hue}, current color is {color}",
3790
+ svLabel: "pick saturation and brightness value",
3791
+ svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
3792
+ predefineDescription: "select {value} as the color"
3793
+ },
3794
+ datepicker: {
3795
+ now: "Now",
3796
+ today: "Today",
3797
+ cancel: "Cancel",
3798
+ clear: "Clear",
3799
+ confirm: "OK",
3800
+ dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
3801
+ monthTablePrompt: "Use the arrow keys and enter to select the month",
3802
+ yearTablePrompt: "Use the arrow keys and enter to select the year",
3803
+ selectedDate: "Selected date",
3804
+ selectDate: "Select date",
3805
+ selectTime: "Select time",
3806
+ startDate: "Start Date",
3807
+ startTime: "Start Time",
3808
+ endDate: "End Date",
3809
+ endTime: "End Time",
3810
+ prevYear: "Previous Year",
3811
+ nextYear: "Next Year",
3812
+ prevMonth: "Previous Month",
3813
+ nextMonth: "Next Month",
3814
+ year: "",
3815
+ month1: "January",
3816
+ month2: "February",
3817
+ month3: "March",
3818
+ month4: "April",
3819
+ month5: "May",
3820
+ month6: "June",
3821
+ month7: "July",
3822
+ month8: "August",
3823
+ month9: "September",
3824
+ month10: "October",
3825
+ month11: "November",
3826
+ month12: "December",
3827
+ weeks: {
3828
+ sun: "Sun",
3829
+ mon: "Mon",
3830
+ tue: "Tue",
3831
+ wed: "Wed",
3832
+ thu: "Thu",
3833
+ fri: "Fri",
3834
+ sat: "Sat"
3835
+ },
3836
+ weeksFull: {
3837
+ sun: "Sunday",
3838
+ mon: "Monday",
3839
+ tue: "Tuesday",
3840
+ wed: "Wednesday",
3841
+ thu: "Thursday",
3842
+ fri: "Friday",
3843
+ sat: "Saturday"
3844
+ },
3845
+ months: {
3846
+ jan: "Jan",
3847
+ feb: "Feb",
3848
+ mar: "Mar",
3849
+ apr: "Apr",
3850
+ may: "May",
3851
+ jun: "Jun",
3852
+ jul: "Jul",
3853
+ aug: "Aug",
3854
+ sep: "Sep",
3855
+ oct: "Oct",
3856
+ nov: "Nov",
3857
+ dec: "Dec"
3858
+ }
3859
+ },
3860
+ inputNumber: {
3861
+ decrease: "decrease number",
3862
+ increase: "increase number"
3863
+ },
3864
+ select: {
3865
+ loading: "Loading",
3866
+ noMatch: "No matching data",
3867
+ noData: "No data",
3868
+ placeholder: "Select"
3869
+ },
3870
+ mention: {
3871
+ loading: "Loading"
3872
+ },
3873
+ dropdown: {
3874
+ toggleDropdown: "Toggle Dropdown"
3875
+ },
3876
+ cascader: {
3877
+ noMatch: "No matching data",
3878
+ loading: "Loading",
3879
+ placeholder: "Select",
3880
+ noData: "No data"
3881
+ },
3882
+ pagination: {
3883
+ goto: "Go to",
3884
+ pagesize: "/page",
3885
+ total: "Total {total}",
3886
+ pageClassifier: "",
3887
+ page: "Page",
3888
+ prev: "Go to previous page",
3889
+ next: "Go to next page",
3890
+ currentPage: "page {pager}",
3891
+ prevPages: "Previous {pager} pages",
3892
+ nextPages: "Next {pager} pages",
3893
+ deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
3894
+ },
3895
+ dialog: {
3896
+ close: "Close this dialog"
3897
+ },
3898
+ drawer: {
3899
+ close: "Close this dialog"
3900
+ },
3901
+ messagebox: {
3902
+ title: "Message",
3903
+ confirm: "OK",
3904
+ cancel: "Cancel",
3905
+ error: "Illegal input",
3906
+ close: "Close this dialog"
3907
+ },
3908
+ upload: {
3909
+ deleteTip: "press delete to remove",
3910
+ delete: "Delete",
3911
+ preview: "Preview",
3912
+ continue: "Continue"
3913
+ },
3914
+ slider: {
3915
+ defaultLabel: "slider between {min} and {max}",
3916
+ defaultRangeStartLabel: "pick start value",
3917
+ defaultRangeEndLabel: "pick end value"
3918
+ },
3919
+ table: {
3920
+ emptyText: "No Data",
3921
+ confirmFilter: "Confirm",
3922
+ resetFilter: "Reset",
3923
+ clearFilter: "All",
3924
+ sumText: "Sum",
3925
+ selectAllLabel: "Select all rows",
3926
+ selectRowLabel: "Select this row",
3927
+ expandRowLabel: "Expand this row",
3928
+ collapseRowLabel: "Collapse this row",
3929
+ sortLabel: "Sort by {column}",
3930
+ filterLabel: "Filter by {column}"
3931
+ },
3932
+ tag: {
3933
+ close: "Close this tag"
3934
+ },
3935
+ tour: {
3936
+ next: "Next",
3937
+ previous: "Previous",
3938
+ finish: "Finish",
3939
+ close: "Close this dialog"
3940
+ },
3941
+ tree: {
3942
+ emptyText: "No Data"
3943
+ },
3944
+ transfer: {
3945
+ noMatch: "No matching data",
3946
+ noData: "No data",
3947
+ titles: ["List 1", "List 2"],
3948
+ filterPlaceholder: "Enter keyword",
3949
+ noCheckedFormat: "{total} items",
3950
+ hasCheckedFormat: "{checked}/{total} checked"
3951
+ },
3952
+ image: {
3953
+ error: "FAILED"
3954
+ },
3955
+ pageHeader: {
3956
+ title: "Back"
3957
+ },
3958
+ popconfirm: {
3959
+ confirmButtonText: "Yes",
3960
+ cancelButtonText: "No"
3961
+ },
3962
+ carousel: {
3963
+ leftArrow: "Carousel arrow left",
3964
+ rightArrow: "Carousel arrow right",
3965
+ indicator: "Carousel switch to index {index}"
3966
+ }
3967
+ }
3968
+ };
3969
+ const ye = {
3970
+ zhCn: "zh-cn",
3971
+ en: "en"
3972
+ }, To = {
3973
+ [ye.zhCn]: pr,
3974
+ [ye.en]: Lo
3975
+ }, Nr = () => (navigator?.language || navigator?.userLanguage)?.startsWith("zh") ? ye.zhCn : ye.en, yo = () => {
3976
+ const e = Nr() || ye.en;
3977
+ return To[e] || pr;
3978
+ }, ko = (e = {}) => {
3979
+ const t = Nr();
3980
+ return Ur.set("language", t), io({
3981
+ legacy: !1,
3982
+ locale: t,
3983
+ fallbackLocale: ye.zhCn,
3984
+ messages: e,
3985
+ globalInjection: !0
3986
+ });
3987
+ }, Ro = (e) => (t, n = {}) => e.global.t(t, n), hr = () => {
3988
+ setTimeout(async () => {
3989
+ wr.confirm(
3990
+ "语言设置已更新<br/>是否重新加载页面以应用新的语言设置",
3991
+ "重新加载提醒",
3992
+ {
3993
+ confirmButtonText: "确定",
3994
+ cancelButtonText: "取消",
3995
+ type: "warning",
3996
+ dangerouslyUseHTMLString: !0,
3997
+ customClass: "language-change-confirm"
3998
+ }
3999
+ ).then(() => {
4000
+ window.location.reload();
4001
+ });
4002
+ }, 0);
4003
+ }, Mo = () => {
4004
+ window.addEventListener("languagechange", hr);
4005
+ }, wo = () => {
4006
+ window.removeEventListener("languagechange", hr);
4007
+ }, bo = () => {
4008
+ const { t: e } = Fr().appContext.config.globalProperties;
4009
+ return {
4010
+ t: e
4011
+ };
4012
+ }, Io = () => {
4013
+ const { t: e } = bo();
4014
+ return {
4015
+ APPLICATION_TYPE_TAB_LIST: [
4016
+ {
4017
+ label: e("APPLICATION_LIBRARY.TAB_LIST.ALL"),
4018
+ value: qe.all
4019
+ },
4020
+ {
4021
+ label: e("APPLICATION_LIBRARY.TAB_LIST.AGENT"),
4022
+ value: qe.autonomous,
4023
+ alias: e("APPLICATION_LIBRARY.TAB_LIST.PLANNED")
4024
+ },
4025
+ {
4026
+ label: e("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG"),
4027
+ value: qe.dialogue,
4028
+ alias: e("APPLICATION_LIBRARY.TAB_LIST.DIALOG")
4029
+ }
4030
+ ]
4031
+ };
4032
+ }, Oo = /* @__PURE__ */ Object.assign({
4033
+ name: "ApplicationTypeTag"
4034
+ }, {
4035
+ __name: "layout",
4036
+ props: {
4037
+ // 应用类型值
4038
+ type: {
4039
+ type: [String, Number],
4040
+ required: !0
4041
+ }
4042
+ },
4043
+ setup(e) {
4044
+ const t = e, { APPLICATION_TYPE_TAB_LIST: n } = Io(), r = he(() => n.find((s) => s.value === t.type)?.alias || ""), a = he(() => t.type === qe.dialogue ? "dialogue" : "autonomously");
4045
+ return (s, o) => (kr(), yr("div", {
4046
+ class: Rr(a.value)
4047
+ }, Mr(r.value), 3));
4048
+ }
4049
+ }), Ao = /* @__PURE__ */ Vr(Oo, [["__scopeId", "data-v-6ba8ff75"]]), Uo = Tr(Ao);
4050
+ export {
4051
+ Uo as A,
4052
+ To as a,
4053
+ yo as b,
4054
+ ko as c,
4055
+ Ro as d,
4056
+ wo as e,
4057
+ bo as f,
4058
+ Nr as g,
4059
+ ye as l,
4060
+ Mo as s,
4061
+ Io as u
4062
+ };