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

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