x-error-lib 0.1.0

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