pd-ui-package 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_commonjsHelpers-CZvdJhlo.js +1191 -0
- package/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/index-3k1IXN1T.js +1772 -0
- package/index-CAw0rXjE.js +1584 -0
- package/package.json +1 -1
- package/pd-DataTable-eOeiuzlu.js +3507 -0
- package/pd-EchartsContainer-4DObMw2_.js +48341 -0
- package/pd-ExcelExport-DICqCJ1x.js +23210 -0
- package/pd-PwdChangeForm-rZdb110w.js +170 -0
- package/pd-Test-DeIzXQ7F.js +32 -0
- package/pd-ui-package.css +1 -1
- package/pd-ui-package.js +514 -459
- package/pd-ui-package.umd.cjs +99 -12
- package/pd-PwdChangeForm-tFrLQ1xa.js +0 -3309
- package/pd-Test-DP_M-9m_.js +0 -36
package/pd-ui-package.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as oe, computed as le, watch as Ke, getCurrentInstance as
|
|
1
|
+
import { ref as oe, computed as le, watch as Ke, getCurrentInstance as Rt, isRef as zt, h as ie, Fragment as Vt, inject as en, onMounted as tn, onUnmounted as nn, createVNode as pt, Text as gt, defineAsyncComponent as rn } from "vue";
|
|
2
2
|
const te = typeof window < "u";
|
|
3
3
|
let U, ne;
|
|
4
4
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -11,7 +11,7 @@ const an = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
11
11
|
function Ie(e, ...t) {
|
|
12
12
|
return t.length === 1 && j(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(an, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
13
13
|
}
|
|
14
|
-
const sn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", re = (e) => sn ? Symbol(e) : e, on = (e, t, n) => ln({ l: e, k: t, s: n }), ln = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"),
|
|
14
|
+
const sn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", re = (e) => sn ? Symbol(e) : e, on = (e, t, n) => ln({ l: e, k: t, s: n }), ln = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), A = (e) => typeof e == "number" && isFinite(e), cn = (e) => at(e) === "[object Date]", Ne = (e) => at(e) === "[object RegExp]", Pe = (e) => F(e) && Object.keys(e).length === 0;
|
|
15
15
|
function ae(e, t) {
|
|
16
16
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
17
17
|
}
|
|
@@ -20,10 +20,10 @@ const un = () => _t || (_t = typeof globalThis < "u" ? globalThis : typeof self
|
|
|
20
20
|
function bt(e) {
|
|
21
21
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const V = Array.isArray, R = (e) => typeof e == "function", O = (e) => typeof e == "string", x = (e) => typeof e == "boolean", j = (e) => (
|
|
24
24
|
// eslint-disable-line
|
|
25
25
|
e !== null && typeof e == "object"
|
|
26
|
-
),
|
|
26
|
+
), Wt = Object.prototype.toString, at = (e) => Wt.call(e), F = (e) => at(e) === "[object Object]", fn = (e) => e == null ? "" : V(e) || F(e) && e.toString === Wt ? JSON.stringify(e, null, 2) : String(e), ht = 2;
|
|
27
27
|
function mn(e, t = 0, n = e.length) {
|
|
28
28
|
const r = e.split(/\r?\n/);
|
|
29
29
|
let a = 0;
|
|
@@ -33,18 +33,18 @@ function mn(e, t = 0, n = e.length) {
|
|
|
33
33
|
for (let c = o - ht; c <= o + ht || n > a; c++) {
|
|
34
34
|
if (c < 0 || c >= r.length)
|
|
35
35
|
continue;
|
|
36
|
-
const
|
|
37
|
-
s.push(`${
|
|
38
|
-
const
|
|
36
|
+
const p = c + 1;
|
|
37
|
+
s.push(`${p}${" ".repeat(3 - String(p).length)}| ${r[c]}`);
|
|
38
|
+
const g = r[c].length;
|
|
39
39
|
if (c === o) {
|
|
40
|
-
const h = t - (a -
|
|
41
|
-
s.push(" | " + " ".repeat(h) + "^".repeat(
|
|
40
|
+
const h = t - (a - g) + 1, E = Math.max(1, n > a ? g - h : n - t);
|
|
41
|
+
s.push(" | " + " ".repeat(h) + "^".repeat(E));
|
|
42
42
|
} else if (c > o) {
|
|
43
43
|
if (n > a) {
|
|
44
|
-
const h = Math.max(Math.min(n - a,
|
|
44
|
+
const h = Math.max(Math.min(n - a, g), 1);
|
|
45
45
|
s.push(" | " + "^".repeat(h));
|
|
46
46
|
}
|
|
47
|
-
a +=
|
|
47
|
+
a += g + 1;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
break;
|
|
@@ -217,9 +217,9 @@ Z[
|
|
|
217
217
|
/* APPEND */
|
|
218
218
|
]
|
|
219
219
|
};
|
|
220
|
-
const
|
|
221
|
-
function
|
|
222
|
-
return
|
|
220
|
+
const pn = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
221
|
+
function gn(e) {
|
|
222
|
+
return pn.test(e);
|
|
223
223
|
}
|
|
224
224
|
function _n(e) {
|
|
225
225
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -264,11 +264,11 @@ function bn(e) {
|
|
|
264
264
|
}
|
|
265
265
|
function hn(e) {
|
|
266
266
|
const t = e.trim();
|
|
267
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
267
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : gn(t) ? _n(t) : "*" + t;
|
|
268
268
|
}
|
|
269
269
|
function vn(e) {
|
|
270
270
|
const t = [];
|
|
271
|
-
let n = -1, r = 0, a = 0, s, o, c,
|
|
271
|
+
let n = -1, r = 0, a = 0, s, o, c, p, g, h, E;
|
|
272
272
|
const k = [];
|
|
273
273
|
k[
|
|
274
274
|
0
|
|
@@ -307,23 +307,23 @@ function vn(e) {
|
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
function C() {
|
|
310
|
-
const
|
|
311
|
-
if (r === 5 &&
|
|
312
|
-
return n++, c = "\\" +
|
|
310
|
+
const w = e[n + 1];
|
|
311
|
+
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
312
|
+
return n++, c = "\\" + w, k[
|
|
313
313
|
0
|
|
314
314
|
/* APPEND */
|
|
315
315
|
](), !0;
|
|
316
316
|
}
|
|
317
317
|
for (; r !== null; )
|
|
318
318
|
if (n++, s = e[n], !(s === "\\" && C())) {
|
|
319
|
-
if (
|
|
319
|
+
if (p = bn(s), E = Z[r], g = E[p] || E.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (h = k[g[1]], h && (c = s, h() === !1))))
|
|
320
320
|
return;
|
|
321
321
|
if (r === 7)
|
|
322
322
|
return t;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
const vt = /* @__PURE__ */ new Map();
|
|
326
|
-
function
|
|
326
|
+
function Le(e, t) {
|
|
327
327
|
if (!dn(e))
|
|
328
328
|
return null;
|
|
329
329
|
let n = vt.get(t);
|
|
@@ -339,35 +339,35 @@ function Ee(e, t) {
|
|
|
339
339
|
}
|
|
340
340
|
return a;
|
|
341
341
|
}
|
|
342
|
-
const yn = (e) => e, kn = (e) => "",
|
|
342
|
+
const yn = (e) => e, kn = (e) => "", En = "text", wn = (e) => e.length === 0 ? "" : e.join(""), Nn = fn;
|
|
343
343
|
function yt(e, t) {
|
|
344
344
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
const t =
|
|
348
|
-
return e.named && (
|
|
346
|
+
function Ln(e) {
|
|
347
|
+
const t = A(e.pluralIndex) ? e.pluralIndex : -1;
|
|
348
|
+
return e.named && (A(e.named.count) || A(e.named.n)) ? A(e.named.count) ? e.named.count : A(e.named.n) ? e.named.n : t : t;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Tn(e, t) {
|
|
351
351
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
const t = e.locale, n =
|
|
355
|
-
|
|
356
|
-
const
|
|
357
|
-
function h(
|
|
358
|
-
const u =
|
|
359
|
-
return u || (e.parent ? e.parent.message(
|
|
353
|
+
function On(e = {}) {
|
|
354
|
+
const t = e.locale, n = Ln(e), r = j(e.pluralRules) && O(t) && R(e.pluralRules[t]) ? e.pluralRules[t] : yt, a = j(e.pluralRules) && O(t) && R(e.pluralRules[t]) ? yt : void 0, s = (N) => N[r(n, N.length, a)], o = e.list || [], c = (N) => o[N], p = e.named || {};
|
|
355
|
+
A(e.pluralIndex) && Tn(n, p);
|
|
356
|
+
const g = (N) => p[N];
|
|
357
|
+
function h(N) {
|
|
358
|
+
const u = R(e.messages) ? e.messages(N) : j(e.messages) ? e.messages[N] : !1;
|
|
359
|
+
return u || (e.parent ? e.parent.message(N) : kn);
|
|
360
360
|
}
|
|
361
|
-
const
|
|
361
|
+
const E = (N) => e.modifiers ? e.modifiers[N] : yn, k = F(e.processor) && R(e.processor.normalize) ? e.processor.normalize : wn, C = F(e.processor) && R(e.processor.interpolate) ? e.processor.interpolate : Nn, w = F(e.processor) && O(e.processor.type) ? e.processor.type : En, I = {
|
|
362
362
|
list: c,
|
|
363
|
-
named:
|
|
363
|
+
named: g,
|
|
364
364
|
plural: s,
|
|
365
|
-
linked: (
|
|
366
|
-
const _ = h(
|
|
367
|
-
return
|
|
365
|
+
linked: (N, u) => {
|
|
366
|
+
const _ = h(N)(I);
|
|
367
|
+
return O(u) ? E(u)(_) : _;
|
|
368
368
|
},
|
|
369
369
|
message: h,
|
|
370
|
-
type:
|
|
370
|
+
type: w,
|
|
371
371
|
interpolate: C,
|
|
372
372
|
normalize: k
|
|
373
373
|
};
|
|
@@ -404,12 +404,12 @@ function Pn(e, t, n) {
|
|
|
404
404
|
function qe(e, t, n) {
|
|
405
405
|
return { start: e, end: t };
|
|
406
406
|
}
|
|
407
|
-
const B = " ", Fn = "\r",
|
|
407
|
+
const B = " ", Fn = "\r", W = `
|
|
408
408
|
`, Cn = "\u2028", Dn = "\u2029";
|
|
409
409
|
function Mn(e) {
|
|
410
410
|
const t = e;
|
|
411
411
|
let n = 0, r = 1, a = 1, s = 0;
|
|
412
|
-
const o = (S) => t[S] === Fn && t[S + 1] ===
|
|
412
|
+
const o = (S) => t[S] === Fn && t[S + 1] === W, c = (S) => t[S] === W, p = (S) => t[S] === Dn, g = (S) => t[S] === Cn, h = (S) => o(S) || c(S) || p(S) || g(S), E = () => n, k = () => r, C = () => a, w = () => s, I = (S) => o(S) || p(S) || g(S) ? W : t[S], N = () => I(n), u = () => I(n + s);
|
|
413
413
|
function _() {
|
|
414
414
|
return s = 0, h(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
415
415
|
}
|
|
@@ -419,33 +419,33 @@ function Mn(e) {
|
|
|
419
419
|
function f() {
|
|
420
420
|
n = 0, r = 1, a = 1, s = 0;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function L(S = 0) {
|
|
423
423
|
s = S;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function T() {
|
|
426
426
|
const S = n + s;
|
|
427
427
|
for (; S !== n; )
|
|
428
428
|
_();
|
|
429
429
|
s = 0;
|
|
430
430
|
}
|
|
431
431
|
return {
|
|
432
|
-
index:
|
|
432
|
+
index: E,
|
|
433
433
|
line: k,
|
|
434
434
|
column: C,
|
|
435
|
-
peekOffset:
|
|
435
|
+
peekOffset: w,
|
|
436
436
|
charAt: I,
|
|
437
|
-
currentChar:
|
|
437
|
+
currentChar: N,
|
|
438
438
|
currentPeek: u,
|
|
439
439
|
next: _,
|
|
440
440
|
peek: v,
|
|
441
441
|
reset: f,
|
|
442
|
-
resetPeek:
|
|
443
|
-
skipToPeek:
|
|
442
|
+
resetPeek: L,
|
|
443
|
+
skipToPeek: T
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
const Q = void 0, kt = "'",
|
|
447
|
-
function
|
|
448
|
-
const n = t.location !== !1, r = Mn(e), a = () => r.index(), s = () => Pn(r.line(), r.column(), r.index()), o = s(), c = a(),
|
|
446
|
+
const Q = void 0, kt = "'", xn = "tokenizer";
|
|
447
|
+
function $n(e, t = {}) {
|
|
448
|
+
const n = t.location !== !1, r = Mn(e), a = () => r.index(), s = () => Pn(r.line(), r.column(), r.index()), o = s(), c = a(), p = {
|
|
449
449
|
currentType: 14,
|
|
450
450
|
offset: c,
|
|
451
451
|
startLoc: o,
|
|
@@ -457,12 +457,12 @@ function Rn(e, t = {}) {
|
|
|
457
457
|
braceNest: 0,
|
|
458
458
|
inLinked: !1,
|
|
459
459
|
text: ""
|
|
460
|
-
},
|
|
461
|
-
function
|
|
462
|
-
const P =
|
|
460
|
+
}, g = () => p, { onError: h } = t;
|
|
461
|
+
function E(l, i, d, ...b) {
|
|
462
|
+
const P = g();
|
|
463
463
|
if (i.column += d, i.offset += d, h) {
|
|
464
464
|
const D = qe(P.startLoc, i), H = Fe(l, D, {
|
|
465
|
-
domain:
|
|
465
|
+
domain: xn,
|
|
466
466
|
args: b
|
|
467
467
|
});
|
|
468
468
|
h(H);
|
|
@@ -478,16 +478,16 @@ function Rn(e, t = {}) {
|
|
|
478
478
|
14
|
|
479
479
|
/* EOF */
|
|
480
480
|
);
|
|
481
|
-
function
|
|
482
|
-
return l.currentChar() === i ? (l.next(), i) : (
|
|
481
|
+
function w(l, i) {
|
|
482
|
+
return l.currentChar() === i ? (l.next(), i) : (E(0, s(), 0, i), "");
|
|
483
483
|
}
|
|
484
484
|
function I(l) {
|
|
485
485
|
let i = "";
|
|
486
|
-
for (; l.currentPeek() === B || l.currentPeek() ===
|
|
486
|
+
for (; l.currentPeek() === B || l.currentPeek() === W; )
|
|
487
487
|
i += l.currentPeek(), l.peek();
|
|
488
488
|
return i;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function N(l) {
|
|
491
491
|
const i = I(l);
|
|
492
492
|
return l.skipToPeek(), i;
|
|
493
493
|
}
|
|
@@ -520,7 +520,7 @@ function Rn(e, t = {}) {
|
|
|
520
520
|
const b = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), P = _(b);
|
|
521
521
|
return l.resetPeek(), P;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function L(l, i) {
|
|
524
524
|
const { currentType: d } = i;
|
|
525
525
|
if (d !== 2)
|
|
526
526
|
return !1;
|
|
@@ -528,7 +528,7 @@ function Rn(e, t = {}) {
|
|
|
528
528
|
const b = l.currentPeek() === kt;
|
|
529
529
|
return l.resetPeek(), b;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function T(l, i) {
|
|
532
532
|
const { currentType: d } = i;
|
|
533
533
|
if (d !== 8)
|
|
534
534
|
return !1;
|
|
@@ -544,7 +544,7 @@ function Rn(e, t = {}) {
|
|
|
544
544
|
const b = u(l.currentPeek());
|
|
545
545
|
return l.resetPeek(), b;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function $(l, i) {
|
|
548
548
|
const { currentType: d } = i;
|
|
549
549
|
if (!(d === 8 || d === 12))
|
|
550
550
|
return !1;
|
|
@@ -558,7 +558,7 @@ function Rn(e, t = {}) {
|
|
|
558
558
|
return !1;
|
|
559
559
|
const b = () => {
|
|
560
560
|
const D = l.currentPeek();
|
|
561
|
-
return D === "{" ? u(l.peek()) : D === "@" || D === "%" || D === "|" || D === ":" || D === "." || D === B || !D ? !1 : D ===
|
|
561
|
+
return D === "{" ? u(l.peek()) : D === "@" || D === "%" || D === "|" || D === ":" || D === "." || D === B || !D ? !1 : D === W ? (l.peek(), b()) : u(D);
|
|
562
562
|
}, P = b();
|
|
563
563
|
return l.resetPeek(), P;
|
|
564
564
|
}
|
|
@@ -570,7 +570,7 @@ function Rn(e, t = {}) {
|
|
|
570
570
|
function me(l, i = !0) {
|
|
571
571
|
const d = (P = !1, D = "", H = !1) => {
|
|
572
572
|
const m = l.currentPeek();
|
|
573
|
-
return m === "{" ? D === "%" ? !1 : P : m === "@" || !m ? D === "%" ? !0 : P : m === "%" ? (l.peek(), d(P, "%", !0)) : m === "|" ? D === "%" || H ? !0 : !(D === B || D ===
|
|
573
|
+
return m === "{" ? D === "%" ? !1 : P : m === "@" || !m ? D === "%" ? !0 : P : m === "%" ? (l.peek(), d(P, "%", !0)) : m === "|" ? D === "%" || H ? !0 : !(D === B || D === W) : m === B ? (l.peek(), d(!0, B, H)) : m === W ? (l.peek(), d(!0, W, H)) : !0;
|
|
574
574
|
}, b = d();
|
|
575
575
|
return i && l.resetPeek(), b;
|
|
576
576
|
}
|
|
@@ -587,7 +587,7 @@ function Rn(e, t = {}) {
|
|
|
587
587
|
b === 95 || b === 36;
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function xe(l) {
|
|
591
591
|
return X(l, (d) => {
|
|
592
592
|
const b = d.charCodeAt(0);
|
|
593
593
|
return b >= 48 && b <= 57;
|
|
@@ -603,39 +603,39 @@ function Rn(e, t = {}) {
|
|
|
603
603
|
}
|
|
604
604
|
function ve(l) {
|
|
605
605
|
let i = "", d = "";
|
|
606
|
-
for (; i =
|
|
606
|
+
for (; i = xe(l); )
|
|
607
607
|
d += i;
|
|
608
608
|
return d;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function $e(l) {
|
|
611
611
|
const i = (d) => {
|
|
612
612
|
const b = l.currentChar();
|
|
613
|
-
return b === "{" || b === "}" || b === "@" || !b ? d : b === "%" ? me(l) ? (d += b, l.next(), i(d)) : d : b === "|" ? d : b === B || b ===
|
|
613
|
+
return b === "{" || b === "}" || b === "@" || !b ? d : b === "%" ? me(l) ? (d += b, l.next(), i(d)) : d : b === "|" ? d : b === B || b === W ? me(l) ? (d += b, l.next(), i(d)) : q(l) ? d : (d += b, l.next(), i(d)) : (d += b, l.next(), i(d));
|
|
614
614
|
};
|
|
615
615
|
return i("");
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
|
|
617
|
+
function Ae(l) {
|
|
618
|
+
N(l);
|
|
619
619
|
let i = "", d = "";
|
|
620
620
|
for (; i = he(l); )
|
|
621
621
|
d += i;
|
|
622
|
-
return l.currentChar() === Q &&
|
|
622
|
+
return l.currentChar() === Q && E(6, s(), 0), d;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
|
|
624
|
+
function Re(l) {
|
|
625
|
+
N(l);
|
|
626
626
|
let i = "";
|
|
627
|
-
return l.currentChar() === "-" ? (l.next(), i += `-${ve(l)}`) : i += ve(l), l.currentChar() === Q &&
|
|
627
|
+
return l.currentChar() === "-" ? (l.next(), i += `-${ve(l)}`) : i += ve(l), l.currentChar() === Q && E(6, s(), 0), i;
|
|
628
628
|
}
|
|
629
629
|
function ft(l) {
|
|
630
|
-
|
|
630
|
+
N(l), w(l, "'");
|
|
631
631
|
let i = "", d = "";
|
|
632
|
-
const b = (D) => D !== kt && D !==
|
|
632
|
+
const b = (D) => D !== kt && D !== W;
|
|
633
633
|
for (; i = X(l, b); )
|
|
634
|
-
i === "\\" ? d +=
|
|
634
|
+
i === "\\" ? d += Ve(l) : d += i;
|
|
635
635
|
const P = l.currentChar();
|
|
636
|
-
return P ===
|
|
636
|
+
return P === W || P === Q ? (E(2, s(), 0), P === W && (l.next(), w(l, "'")), d) : (w(l, "'"), d);
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ve(l) {
|
|
639
639
|
const i = l.currentChar();
|
|
640
640
|
switch (i) {
|
|
641
641
|
case "\\":
|
|
@@ -646,26 +646,26 @@ function Rn(e, t = {}) {
|
|
|
646
646
|
case "U":
|
|
647
647
|
return ye(l, i, 6);
|
|
648
648
|
default:
|
|
649
|
-
return
|
|
649
|
+
return E(3, s(), 0, i), "";
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
function ye(l, i, d) {
|
|
653
|
-
|
|
653
|
+
w(l, i);
|
|
654
654
|
let b = "";
|
|
655
655
|
for (let P = 0; P < d; P++) {
|
|
656
656
|
const D = J(l);
|
|
657
657
|
if (!D) {
|
|
658
|
-
|
|
658
|
+
E(4, s(), 0, `\\${i}${b}${l.currentChar()}`);
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
661
|
b += D;
|
|
662
662
|
}
|
|
663
663
|
return `\\${i}${b}`;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
|
|
665
|
+
function We(l) {
|
|
666
|
+
N(l);
|
|
667
667
|
let i = "", d = "";
|
|
668
|
-
const b = (P) => P !== "{" && P !== "}" && P !== B && P !==
|
|
668
|
+
const b = (P) => P !== "{" && P !== "}" && P !== B && P !== W;
|
|
669
669
|
for (; i = X(l, b); )
|
|
670
670
|
d += i;
|
|
671
671
|
return d;
|
|
@@ -679,52 +679,52 @@ function Rn(e, t = {}) {
|
|
|
679
679
|
function Ue(l) {
|
|
680
680
|
const i = (d = !1, b) => {
|
|
681
681
|
const P = l.currentChar();
|
|
682
|
-
return P === "{" || P === "%" || P === "@" || P === "|" || !P || P === B ? b : P ===
|
|
682
|
+
return P === "{" || P === "%" || P === "@" || P === "|" || !P || P === B ? b : P === W ? (b += P, l.next(), i(d, b)) : (b += P, l.next(), i(!0, b));
|
|
683
683
|
};
|
|
684
684
|
return i(!1, "");
|
|
685
685
|
}
|
|
686
686
|
function de(l) {
|
|
687
|
-
|
|
688
|
-
const i =
|
|
687
|
+
N(l);
|
|
688
|
+
const i = w(
|
|
689
689
|
l,
|
|
690
690
|
"|"
|
|
691
691
|
/* Pipe */
|
|
692
692
|
);
|
|
693
|
-
return
|
|
693
|
+
return N(l), i;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function pe(l, i) {
|
|
696
696
|
let d = null;
|
|
697
697
|
switch (l.currentChar()) {
|
|
698
698
|
case "{":
|
|
699
|
-
return i.braceNest >= 1 &&
|
|
699
|
+
return i.braceNest >= 1 && E(8, s(), 0), l.next(), d = k(
|
|
700
700
|
i,
|
|
701
701
|
2,
|
|
702
702
|
"{"
|
|
703
703
|
/* BraceLeft */
|
|
704
|
-
),
|
|
704
|
+
), N(l), i.braceNest++, d;
|
|
705
705
|
case "}":
|
|
706
|
-
return i.braceNest > 0 && i.currentType === 2 &&
|
|
706
|
+
return i.braceNest > 0 && i.currentType === 2 && E(7, s(), 0), l.next(), d = k(
|
|
707
707
|
i,
|
|
708
708
|
3,
|
|
709
709
|
"}"
|
|
710
710
|
/* BraceRight */
|
|
711
|
-
), i.braceNest--, i.braceNest > 0 &&
|
|
711
|
+
), i.braceNest--, i.braceNest > 0 && N(l), i.inLinked && i.braceNest === 0 && (i.inLinked = !1), d;
|
|
712
712
|
case "@":
|
|
713
|
-
return i.braceNest > 0 &&
|
|
713
|
+
return i.braceNest > 0 && E(6, s(), 0), d = z(l, i) || C(i), i.braceNest = 0, d;
|
|
714
714
|
default:
|
|
715
715
|
let P = !0, D = !0, H = !0;
|
|
716
716
|
if (q(l))
|
|
717
|
-
return i.braceNest > 0 &&
|
|
717
|
+
return i.braceNest > 0 && E(6, s(), 0), d = k(i, 1, de(l)), i.braceNest = 0, i.inLinked = !1, d;
|
|
718
718
|
if (i.braceNest > 0 && (i.currentType === 5 || i.currentType === 6 || i.currentType === 7))
|
|
719
|
-
return
|
|
719
|
+
return E(6, s(), 0), i.braceNest = 0, ge(l, i);
|
|
720
720
|
if (P = v(l, i))
|
|
721
|
-
return d = k(i, 5,
|
|
721
|
+
return d = k(i, 5, Ae(l)), N(l), d;
|
|
722
722
|
if (D = f(l, i))
|
|
723
|
-
return d = k(i, 6,
|
|
724
|
-
if (H =
|
|
725
|
-
return d = k(i, 7, ft(l)),
|
|
723
|
+
return d = k(i, 6, Re(l)), N(l), d;
|
|
724
|
+
if (H = L(l, i))
|
|
725
|
+
return d = k(i, 7, ft(l)), N(l), d;
|
|
726
726
|
if (!P && !D && !H)
|
|
727
|
-
return d = k(i, 13,
|
|
727
|
+
return d = k(i, 13, We(l)), E(1, s(), 0, d.value), N(l), d;
|
|
728
728
|
break;
|
|
729
729
|
}
|
|
730
730
|
return d;
|
|
@@ -733,7 +733,7 @@ function Rn(e, t = {}) {
|
|
|
733
733
|
const { currentType: d } = i;
|
|
734
734
|
let b = null;
|
|
735
735
|
const P = l.currentChar();
|
|
736
|
-
switch ((d === 8 || d === 9 || d === 12 || d === 10) && (P ===
|
|
736
|
+
switch ((d === 8 || d === 9 || d === 12 || d === 10) && (P === W || P === B) && E(9, s(), 0), P) {
|
|
737
737
|
case "@":
|
|
738
738
|
return l.next(), b = k(
|
|
739
739
|
i,
|
|
@@ -742,38 +742,38 @@ function Rn(e, t = {}) {
|
|
|
742
742
|
/* LinkedAlias */
|
|
743
743
|
), i.inLinked = !0, b;
|
|
744
744
|
case ".":
|
|
745
|
-
return
|
|
745
|
+
return N(l), l.next(), k(
|
|
746
746
|
i,
|
|
747
747
|
9,
|
|
748
748
|
"."
|
|
749
749
|
/* LinkedDot */
|
|
750
750
|
);
|
|
751
751
|
case ":":
|
|
752
|
-
return
|
|
752
|
+
return N(l), l.next(), k(
|
|
753
753
|
i,
|
|
754
754
|
10,
|
|
755
755
|
":"
|
|
756
756
|
/* LinkedDelimiter */
|
|
757
757
|
);
|
|
758
758
|
default:
|
|
759
|
-
return q(l) ? (b = k(i, 1, de(l)), i.braceNest = 0, i.inLinked = !1, b) :
|
|
759
|
+
return q(l) ? (b = k(i, 1, de(l)), i.braceNest = 0, i.inLinked = !1, b) : T(l, i) || $(l, i) ? (N(l), z(l, i)) : S(l, i) ? (N(l), k(i, 12, je(l))) : M(l, i) ? (N(l), P === "{" ? pe(l, i) || b : k(i, 11, Ue(l))) : (d === 8 && E(9, s(), 0), i.braceNest = 0, i.inLinked = !1, ge(l, i));
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function ge(l, i) {
|
|
763
763
|
let d = {
|
|
764
764
|
type: 14
|
|
765
765
|
/* EOF */
|
|
766
766
|
};
|
|
767
767
|
if (i.braceNest > 0)
|
|
768
|
-
return
|
|
768
|
+
return pe(l, i) || C(i);
|
|
769
769
|
if (i.inLinked)
|
|
770
770
|
return z(l, i) || C(i);
|
|
771
771
|
const b = l.currentChar();
|
|
772
772
|
switch (b) {
|
|
773
773
|
case "{":
|
|
774
|
-
return
|
|
774
|
+
return pe(l, i) || C(i);
|
|
775
775
|
case "}":
|
|
776
|
-
return
|
|
776
|
+
return E(5, s(), 0), l.next(), k(
|
|
777
777
|
i,
|
|
778
778
|
3,
|
|
779
779
|
"}"
|
|
@@ -785,7 +785,7 @@ function Rn(e, t = {}) {
|
|
|
785
785
|
if (q(l))
|
|
786
786
|
return d = k(i, 1, de(l)), i.braceNest = 0, i.inLinked = !1, d;
|
|
787
787
|
if (me(l))
|
|
788
|
-
return k(i, 0,
|
|
788
|
+
return k(i, 0, $e(l));
|
|
789
789
|
if (b === "%")
|
|
790
790
|
return l.next(), k(
|
|
791
791
|
i,
|
|
@@ -798,22 +798,22 @@ function Rn(e, t = {}) {
|
|
|
798
798
|
return d;
|
|
799
799
|
}
|
|
800
800
|
function He() {
|
|
801
|
-
const { currentType: l, offset: i, startLoc: d, endLoc: b } =
|
|
802
|
-
return
|
|
803
|
-
|
|
801
|
+
const { currentType: l, offset: i, startLoc: d, endLoc: b } = p;
|
|
802
|
+
return p.lastType = l, p.lastOffset = i, p.lastStartLoc = d, p.lastEndLoc = b, p.offset = a(), p.startLoc = s(), r.currentChar() === Q ? k(
|
|
803
|
+
p,
|
|
804
804
|
14
|
|
805
805
|
/* EOF */
|
|
806
|
-
) :
|
|
806
|
+
) : ge(r, p);
|
|
807
807
|
}
|
|
808
808
|
return {
|
|
809
809
|
nextToken: He,
|
|
810
810
|
currentOffset: a,
|
|
811
811
|
currentPosition: s,
|
|
812
|
-
context:
|
|
812
|
+
context: g
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const
|
|
816
|
-
function
|
|
815
|
+
const An = "parser", Rn = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
816
|
+
function Vn(e, t, n) {
|
|
817
817
|
switch (e) {
|
|
818
818
|
case "\\\\":
|
|
819
819
|
return "\\";
|
|
@@ -825,16 +825,16 @@ function xn(e, t, n) {
|
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Wn(e = {}) {
|
|
829
829
|
const t = e.location !== !1, { onError: n } = e;
|
|
830
|
-
function r(u, _, v, f, ...
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
833
|
-
const S = qe(v,
|
|
834
|
-
domain:
|
|
835
|
-
args:
|
|
830
|
+
function r(u, _, v, f, ...L) {
|
|
831
|
+
const T = u.currentPosition();
|
|
832
|
+
if (T.offset += f, T.column += f, n) {
|
|
833
|
+
const S = qe(v, T), $ = Fe(_, S, {
|
|
834
|
+
domain: An,
|
|
835
|
+
args: L
|
|
836
836
|
});
|
|
837
|
-
n(
|
|
837
|
+
n($);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
function a(u, _, v) {
|
|
@@ -853,27 +853,27 @@ function An(e = {}) {
|
|
|
853
853
|
return f.value = _, s(f, u.currentOffset(), u.currentPosition()), f;
|
|
854
854
|
}
|
|
855
855
|
function c(u, _) {
|
|
856
|
-
const v = u.context(), { lastOffset: f, lastStartLoc:
|
|
857
|
-
return
|
|
858
|
-
}
|
|
859
|
-
function g(u, _) {
|
|
860
|
-
const v = u.context(), { lastOffset: f, lastStartLoc: E } = v, O = a(4, f, E);
|
|
861
|
-
return O.key = _, u.nextToken(), s(O, u.currentOffset(), u.currentPosition()), O;
|
|
856
|
+
const v = u.context(), { lastOffset: f, lastStartLoc: L } = v, T = a(5, f, L);
|
|
857
|
+
return T.index = parseInt(_, 10), u.nextToken(), s(T, u.currentOffset(), u.currentPosition()), T;
|
|
862
858
|
}
|
|
863
859
|
function p(u, _) {
|
|
864
|
-
const v = u.context(), { lastOffset: f, lastStartLoc:
|
|
865
|
-
return
|
|
860
|
+
const v = u.context(), { lastOffset: f, lastStartLoc: L } = v, T = a(4, f, L);
|
|
861
|
+
return T.key = _, u.nextToken(), s(T, u.currentOffset(), u.currentPosition()), T;
|
|
862
|
+
}
|
|
863
|
+
function g(u, _) {
|
|
864
|
+
const v = u.context(), { lastOffset: f, lastStartLoc: L } = v, T = a(9, f, L);
|
|
865
|
+
return T.value = _.replace(Rn, Vn), u.nextToken(), s(T, u.currentOffset(), u.currentPosition()), T;
|
|
866
866
|
}
|
|
867
867
|
function h(u) {
|
|
868
|
-
const _ = u.nextToken(), v = u.context(), { lastOffset: f, lastStartLoc:
|
|
869
|
-
return _.type !== 12 ? (r(u, 11, v.lastStartLoc, 0),
|
|
868
|
+
const _ = u.nextToken(), v = u.context(), { lastOffset: f, lastStartLoc: L } = v, T = a(8, f, L);
|
|
869
|
+
return _.type !== 12 ? (r(u, 11, v.lastStartLoc, 0), T.value = "", s(T, f, L), {
|
|
870
870
|
nextConsumeToken: _,
|
|
871
|
-
node:
|
|
872
|
-
}) : (_.value == null && r(u, 13, v.lastStartLoc, 0, K(_)),
|
|
873
|
-
node:
|
|
871
|
+
node: T
|
|
872
|
+
}) : (_.value == null && r(u, 13, v.lastStartLoc, 0, K(_)), T.value = _.value || "", s(T, u.currentOffset(), u.currentPosition()), {
|
|
873
|
+
node: T
|
|
874
874
|
});
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function E(u, _) {
|
|
877
877
|
const v = u.context(), f = a(7, v.offset, v.startLoc);
|
|
878
878
|
return f.value = _, s(f, u.currentOffset(), u.currentPosition()), f;
|
|
879
879
|
}
|
|
@@ -881,26 +881,26 @@ function An(e = {}) {
|
|
|
881
881
|
const _ = u.context(), v = a(6, _.offset, _.startLoc);
|
|
882
882
|
let f = u.nextToken();
|
|
883
883
|
if (f.type === 9) {
|
|
884
|
-
const
|
|
885
|
-
v.modifier =
|
|
884
|
+
const L = h(u);
|
|
885
|
+
v.modifier = L.node, f = L.nextConsumeToken || u.nextToken();
|
|
886
886
|
}
|
|
887
887
|
switch (f.type !== 10 && r(u, 13, _.lastStartLoc, 0, K(f)), f = u.nextToken(), f.type === 2 && (f = u.nextToken()), f.type) {
|
|
888
888
|
case 11:
|
|
889
|
-
f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key =
|
|
889
|
+
f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = E(u, f.value || "");
|
|
890
890
|
break;
|
|
891
891
|
case 5:
|
|
892
|
-
f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key =
|
|
892
|
+
f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = p(u, f.value || "");
|
|
893
893
|
break;
|
|
894
894
|
case 6:
|
|
895
895
|
f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = c(u, f.value || "");
|
|
896
896
|
break;
|
|
897
897
|
case 7:
|
|
898
|
-
f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key =
|
|
898
|
+
f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = g(u, f.value || "");
|
|
899
899
|
break;
|
|
900
900
|
default:
|
|
901
901
|
r(u, 12, _.lastStartLoc, 0);
|
|
902
|
-
const
|
|
903
|
-
return
|
|
902
|
+
const L = u.context(), T = a(7, L.offset, L.startLoc);
|
|
903
|
+
return T.value = "", s(T, L.offset, L.startLoc), v.key = T, s(v, L.offset, L.startLoc), {
|
|
904
904
|
nextConsumeToken: f,
|
|
905
905
|
node: v
|
|
906
906
|
};
|
|
@@ -910,53 +910,53 @@ function An(e = {}) {
|
|
|
910
910
|
};
|
|
911
911
|
}
|
|
912
912
|
function C(u) {
|
|
913
|
-
const _ = u.context(), v = _.currentType === 1 ? u.currentOffset() : _.offset, f = _.currentType === 1 ? _.endLoc : _.startLoc,
|
|
914
|
-
|
|
915
|
-
let
|
|
913
|
+
const _ = u.context(), v = _.currentType === 1 ? u.currentOffset() : _.offset, f = _.currentType === 1 ? _.endLoc : _.startLoc, L = a(2, v, f);
|
|
914
|
+
L.items = [];
|
|
915
|
+
let T = null;
|
|
916
916
|
do {
|
|
917
|
-
const M =
|
|
918
|
-
switch (
|
|
917
|
+
const M = T || u.nextToken();
|
|
918
|
+
switch (T = null, M.type) {
|
|
919
919
|
case 0:
|
|
920
|
-
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)),
|
|
920
|
+
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), L.items.push(o(u, M.value || ""));
|
|
921
921
|
break;
|
|
922
922
|
case 6:
|
|
923
|
-
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)),
|
|
923
|
+
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), L.items.push(c(u, M.value || ""));
|
|
924
924
|
break;
|
|
925
925
|
case 5:
|
|
926
|
-
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)),
|
|
926
|
+
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), L.items.push(p(u, M.value || ""));
|
|
927
927
|
break;
|
|
928
928
|
case 7:
|
|
929
|
-
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)),
|
|
929
|
+
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), L.items.push(g(u, M.value || ""));
|
|
930
930
|
break;
|
|
931
931
|
case 8:
|
|
932
932
|
const q = k(u);
|
|
933
|
-
|
|
933
|
+
L.items.push(q.node), T = q.nextConsumeToken || null;
|
|
934
934
|
break;
|
|
935
935
|
}
|
|
936
936
|
} while (_.currentType !== 14 && _.currentType !== 1);
|
|
937
|
-
const S = _.currentType === 1 ? _.lastOffset : u.currentOffset(),
|
|
938
|
-
return s(
|
|
937
|
+
const S = _.currentType === 1 ? _.lastOffset : u.currentOffset(), $ = _.currentType === 1 ? _.lastEndLoc : u.currentPosition();
|
|
938
|
+
return s(L, S, $), L;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
const
|
|
942
|
-
let
|
|
940
|
+
function w(u, _, v, f) {
|
|
941
|
+
const L = u.context();
|
|
942
|
+
let T = f.items.length === 0;
|
|
943
943
|
const S = a(1, _, v);
|
|
944
944
|
S.cases = [], S.cases.push(f);
|
|
945
945
|
do {
|
|
946
|
-
const
|
|
947
|
-
|
|
948
|
-
} while (
|
|
949
|
-
return
|
|
946
|
+
const $ = C(u);
|
|
947
|
+
T || (T = $.items.length === 0), S.cases.push($);
|
|
948
|
+
} while (L.currentType !== 14);
|
|
949
|
+
return T && r(u, 10, v, 0), s(S, u.currentOffset(), u.currentPosition()), S;
|
|
950
950
|
}
|
|
951
951
|
function I(u) {
|
|
952
|
-
const _ = u.context(), { offset: v, startLoc: f } = _,
|
|
953
|
-
return _.currentType === 14 ?
|
|
952
|
+
const _ = u.context(), { offset: v, startLoc: f } = _, L = C(u);
|
|
953
|
+
return _.currentType === 14 ? L : w(u, v, f, L);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
const _ =
|
|
955
|
+
function N(u) {
|
|
956
|
+
const _ = $n(u, { ...e }), v = _.context(), f = a(0, v.offset, v.startLoc);
|
|
957
957
|
return t && f.loc && (f.loc.source = u), f.body = I(_), v.currentType !== 14 && r(_, 13, v.lastStartLoc, 0, u[v.offset] || ""), s(f, _.currentOffset(), _.currentPosition()), f;
|
|
958
958
|
}
|
|
959
|
-
return { parse:
|
|
959
|
+
return { parse: N };
|
|
960
960
|
}
|
|
961
961
|
function K(e) {
|
|
962
962
|
if (e.type === 14)
|
|
@@ -971,20 +971,20 @@ function jn(e, t = {}) {
|
|
|
971
971
|
};
|
|
972
972
|
return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Et(e, t) {
|
|
975
975
|
for (let n = 0; n < e.length; n++)
|
|
976
976
|
st(e[n], t);
|
|
977
977
|
}
|
|
978
978
|
function st(e, t) {
|
|
979
979
|
switch (e.type) {
|
|
980
980
|
case 1:
|
|
981
|
-
|
|
981
|
+
Et(e.cases, t), t.helper(
|
|
982
982
|
"plural"
|
|
983
983
|
/* PLURAL */
|
|
984
984
|
);
|
|
985
985
|
break;
|
|
986
986
|
case 2:
|
|
987
|
-
|
|
987
|
+
Et(e.items, t);
|
|
988
988
|
break;
|
|
989
989
|
case 6:
|
|
990
990
|
st(e.key, t), t.helper(
|
|
@@ -1034,31 +1034,31 @@ function Hn(e, t) {
|
|
|
1034
1034
|
needIndent: a,
|
|
1035
1035
|
indentLevel: 0
|
|
1036
1036
|
}, o = () => s;
|
|
1037
|
-
function c(
|
|
1038
|
-
s.code +=
|
|
1037
|
+
function c(w, I) {
|
|
1038
|
+
s.code += w;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
const
|
|
1042
|
-
c(a ?
|
|
1040
|
+
function p(w, I = !0) {
|
|
1041
|
+
const N = I ? r : "";
|
|
1042
|
+
c(a ? N + " ".repeat(w) : N);
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function g(w = !0) {
|
|
1045
1045
|
const I = ++s.indentLevel;
|
|
1046
|
-
|
|
1046
|
+
w && p(I);
|
|
1047
1047
|
}
|
|
1048
|
-
function h(
|
|
1048
|
+
function h(w = !0) {
|
|
1049
1049
|
const I = --s.indentLevel;
|
|
1050
|
-
|
|
1050
|
+
w && p(I);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1052
|
+
function E() {
|
|
1053
|
+
p(s.indentLevel);
|
|
1054
1054
|
}
|
|
1055
1055
|
return {
|
|
1056
1056
|
context: o,
|
|
1057
1057
|
push: c,
|
|
1058
|
-
indent:
|
|
1058
|
+
indent: g,
|
|
1059
1059
|
deindent: h,
|
|
1060
|
-
newline:
|
|
1061
|
-
helper: (
|
|
1060
|
+
newline: E,
|
|
1061
|
+
helper: (w) => `_${w}`,
|
|
1062
1062
|
needIndent: () => s.needIndent
|
|
1063
1063
|
};
|
|
1064
1064
|
}
|
|
@@ -1147,7 +1147,7 @@ function ue(e, t) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
1149
|
const Bn = (e, t = {}) => {
|
|
1150
|
-
const n =
|
|
1150
|
+
const n = O(t.mode) ? t.mode : "normal", r = O(t.filename) ? t.filename : "message.intl";
|
|
1151
1151
|
t.sourceMap;
|
|
1152
1152
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1153
1153
|
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], c = Hn(e, {
|
|
@@ -1156,16 +1156,16 @@ const Bn = (e, t = {}) => {
|
|
|
1156
1156
|
needIndent: s
|
|
1157
1157
|
});
|
|
1158
1158
|
c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(s), o.length > 0 && (c.push(`const { ${o.map((h) => `${h}: _${h}`).join(", ")} } = ctx`), c.newline()), c.push("return "), ue(c, e), c.deindent(s), c.push("}");
|
|
1159
|
-
const { code:
|
|
1159
|
+
const { code: p, map: g } = c.context();
|
|
1160
1160
|
return {
|
|
1161
1161
|
ast: e,
|
|
1162
|
-
code:
|
|
1163
|
-
map:
|
|
1162
|
+
code: p,
|
|
1163
|
+
map: g ? g.toJSON() : void 0
|
|
1164
1164
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1165
1165
|
};
|
|
1166
1166
|
};
|
|
1167
1167
|
function Jn(e, t = {}) {
|
|
1168
|
-
const r =
|
|
1168
|
+
const r = Wn({ ...t }).parse(e);
|
|
1169
1169
|
return Un(r, { ...t }), Bn(r, { ...t });
|
|
1170
1170
|
}
|
|
1171
1171
|
const Qn = {
|
|
@@ -1179,13 +1179,13 @@ const Qn = {
|
|
|
1179
1179
|
function fe(e, ...t) {
|
|
1180
1180
|
return Ie(Qn[e], ...t);
|
|
1181
1181
|
}
|
|
1182
|
-
const Ce = -1,
|
|
1182
|
+
const Ce = -1, Te = "";
|
|
1183
1183
|
function Zn() {
|
|
1184
1184
|
return {
|
|
1185
|
-
upper: (e) =>
|
|
1186
|
-
lower: (e) =>
|
|
1185
|
+
upper: (e) => O(e) ? e.toUpperCase() : e,
|
|
1186
|
+
lower: (e) => O(e) ? e.toLowerCase() : e,
|
|
1187
1187
|
// prettier-ignore
|
|
1188
|
-
capitalize: (e) =>
|
|
1188
|
+
capitalize: (e) => O(e) ? `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}` : e
|
|
1189
1189
|
};
|
|
1190
1190
|
}
|
|
1191
1191
|
let jt;
|
|
@@ -1193,7 +1193,7 @@ function Xn(e) {
|
|
|
1193
1193
|
jt = e;
|
|
1194
1194
|
}
|
|
1195
1195
|
function zn(e = {}) {
|
|
1196
|
-
const t =
|
|
1196
|
+
const t = O(e.locale) ? e.locale : "en-US", n = V(e.fallbackLocale) || F(e.fallbackLocale) || O(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = F(e.messages) ? e.messages : { [t]: {} }, a = F(e.datetimeFormats) ? e.datetimeFormats : { [t]: {} }, s = F(e.numberFormats) ? e.numberFormats : { [t]: {} }, o = Object.assign({}, e.modifiers || {}, Zn()), c = e.pluralRules || {}, p = R(e.missing) ? e.missing : null, g = x(e.missingWarn) || Ne(e.missingWarn) ? e.missingWarn : !0, h = x(e.fallbackWarn) || Ne(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, k = !!e.unresolving, C = R(e.postTranslation) ? e.postTranslation : null, w = F(e.processor) ? e.processor : null, I = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, u = R(e.messageCompiler) ? e.messageCompiler : jt, _ = R(e.onWarn) ? e.onWarn : ae, v = e, f = j(v.__datetimeFormatters) ? v.__datetimeFormatters : /* @__PURE__ */ new Map(), L = j(v.__numberFormatters) ? v.__numberFormatters : /* @__PURE__ */ new Map(), T = {
|
|
1197
1197
|
locale: t,
|
|
1198
1198
|
fallbackLocale: n,
|
|
1199
1199
|
messages: r,
|
|
@@ -1201,21 +1201,21 @@ function zn(e = {}) {
|
|
|
1201
1201
|
numberFormats: s,
|
|
1202
1202
|
modifiers: o,
|
|
1203
1203
|
pluralRules: c,
|
|
1204
|
-
missing:
|
|
1205
|
-
missingWarn:
|
|
1204
|
+
missing: p,
|
|
1205
|
+
missingWarn: g,
|
|
1206
1206
|
fallbackWarn: h,
|
|
1207
|
-
fallbackFormat:
|
|
1207
|
+
fallbackFormat: E,
|
|
1208
1208
|
unresolving: k,
|
|
1209
1209
|
postTranslation: C,
|
|
1210
|
-
processor:
|
|
1210
|
+
processor: w,
|
|
1211
1211
|
warnHtmlMessage: I,
|
|
1212
|
-
escapeParameter:
|
|
1212
|
+
escapeParameter: N,
|
|
1213
1213
|
messageCompiler: u,
|
|
1214
1214
|
onWarn: _,
|
|
1215
1215
|
__datetimeFormatters: f,
|
|
1216
|
-
__numberFormatters:
|
|
1216
|
+
__numberFormatters: L
|
|
1217
1217
|
};
|
|
1218
|
-
return process.env.NODE_ENV !== "production" && (
|
|
1218
|
+
return process.env.NODE_ENV !== "production" && (T.__emitter = v.__emitter != null ? v.__emitter : void 0), T;
|
|
1219
1219
|
}
|
|
1220
1220
|
function ot(e, t) {
|
|
1221
1221
|
return e instanceof RegExp ? e.test(t) : e;
|
|
@@ -1236,7 +1236,7 @@ function lt(e, t, n, r, a) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
if (s !== null) {
|
|
1238
1238
|
const c = s(e, n, t, a);
|
|
1239
|
-
return
|
|
1239
|
+
return O(c) ? c : t;
|
|
1240
1240
|
} else
|
|
1241
1241
|
return process.env.NODE_ENV !== "production" && er(r, t) && o(fe(0, { key: t, locale: n })), t;
|
|
1242
1242
|
}
|
|
@@ -1247,18 +1247,18 @@ function De(e, t, n) {
|
|
|
1247
1247
|
if (!a) {
|
|
1248
1248
|
a = [];
|
|
1249
1249
|
let s = [n];
|
|
1250
|
-
for (;
|
|
1251
|
-
s =
|
|
1252
|
-
const o =
|
|
1253
|
-
s =
|
|
1250
|
+
for (; V(s); )
|
|
1251
|
+
s = wt(a, s, t);
|
|
1252
|
+
const o = V(t) ? t : F(t) ? t.default ? t.default : null : t;
|
|
1253
|
+
s = O(o) ? [o] : o, V(s) && wt(a, s, !1), r.__localeChainCache.set(n, a);
|
|
1254
1254
|
}
|
|
1255
1255
|
return a;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function wt(e, t, n) {
|
|
1258
1258
|
let r = !0;
|
|
1259
|
-
for (let a = 0; a < t.length &&
|
|
1259
|
+
for (let a = 0; a < t.length && x(r); a++) {
|
|
1260
1260
|
const s = t[a];
|
|
1261
|
-
|
|
1261
|
+
O(s) && (r = tr(e, t[a], n));
|
|
1262
1262
|
}
|
|
1263
1263
|
return r;
|
|
1264
1264
|
}
|
|
@@ -1276,7 +1276,7 @@ function nr(e, t, n) {
|
|
|
1276
1276
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1277
1277
|
r = t[t.length - 1] !== "!";
|
|
1278
1278
|
const a = t.replace(/!/g, "");
|
|
1279
|
-
e.push(a), (
|
|
1279
|
+
e.push(a), (V(n) || F(n)) && n[a] && (r = n[a]);
|
|
1280
1280
|
}
|
|
1281
1281
|
return r;
|
|
1282
1282
|
}
|
|
@@ -1286,23 +1286,23 @@ function _e(e, t, n) {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
const rr = /<\/?[\w\s="/.':;#-\/]+>/, ar = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1288
1288
|
function sr(e, t) {
|
|
1289
|
-
(
|
|
1289
|
+
(x(t.warnHtmlMessage) ? t.warnHtmlMessage : !0) && rr.test(e) && ae(Ie(ar, { source: e }));
|
|
1290
1290
|
}
|
|
1291
1291
|
const or = (e) => e;
|
|
1292
|
-
let
|
|
1292
|
+
let Nt = /* @__PURE__ */ Object.create(null);
|
|
1293
1293
|
function lr(e, t = {}) {
|
|
1294
1294
|
{
|
|
1295
1295
|
process.env.NODE_ENV !== "production" && sr(e, t);
|
|
1296
|
-
const r = (t.onCacheKey || or)(e), a =
|
|
1296
|
+
const r = (t.onCacheKey || or)(e), a = Nt[r];
|
|
1297
1297
|
if (a)
|
|
1298
1298
|
return a;
|
|
1299
1299
|
let s = !1;
|
|
1300
1300
|
const o = t.onError || In;
|
|
1301
|
-
t.onError = (
|
|
1302
|
-
s = !0, o(
|
|
1301
|
+
t.onError = (g) => {
|
|
1302
|
+
s = !0, o(g);
|
|
1303
1303
|
};
|
|
1304
|
-
const { code: c } = Jn(e, t),
|
|
1305
|
-
return s ?
|
|
1304
|
+
const { code: c } = Jn(e, t), p = new Function(`return ${c}`)();
|
|
1305
|
+
return s ? p : Nt[r] = p;
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
1308
|
function ce(e) {
|
|
@@ -1312,93 +1312,93 @@ const cr = {
|
|
|
1312
1312
|
14: "Invalid arguments",
|
|
1313
1313
|
15: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1314
1314
|
16: "The argument provided is not a valid ISO date string"
|
|
1315
|
-
},
|
|
1316
|
-
function
|
|
1317
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, fallbackLocale: s } = e, [o, c] = Be(...t),
|
|
1315
|
+
}, Lt = () => "", Oe = (e) => R(e);
|
|
1316
|
+
function Tt(e, ...t) {
|
|
1317
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, fallbackLocale: s } = e, [o, c] = Be(...t), p = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, E = O(c.default) || x(c.default) ? x(c.default) ? o : c.default : n ? o : "", k = n || E !== "", C = O(c.locale) ? c.locale : e.locale;
|
|
1318
1318
|
h && ir(c);
|
|
1319
|
-
let [
|
|
1320
|
-
if (
|
|
1319
|
+
let [w, I, N] = ur(e, o, C, s, g, p), u = o;
|
|
1320
|
+
if (O(w) || Oe(w) || k && (w = E, u = w), !(O(w) || Oe(w)) || !O(I))
|
|
1321
1321
|
return a ? Ce : o;
|
|
1322
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1322
|
+
if (process.env.NODE_ENV !== "production" && O(w) && e.messageCompiler == null)
|
|
1323
1323
|
return ae(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${o}'.`), o;
|
|
1324
1324
|
let _ = !1;
|
|
1325
|
-
const f = Ut(e, o, I,
|
|
1325
|
+
const f = Ut(e, o, I, w, u, () => {
|
|
1326
1326
|
_ = !0;
|
|
1327
1327
|
});
|
|
1328
1328
|
if (_)
|
|
1329
|
-
return
|
|
1330
|
-
const
|
|
1329
|
+
return w;
|
|
1330
|
+
const L = dr(e, I, N, c), T = On(L), S = fr(e, f, T);
|
|
1331
1331
|
return r ? r(S) : S;
|
|
1332
1332
|
}
|
|
1333
1333
|
function ir(e) {
|
|
1334
|
-
|
|
1335
|
-
|
|
1334
|
+
V(e.list) ? e.list = e.list.map((t) => O(t) ? bt(t) : t) : j(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1335
|
+
O(e.named[t]) && (e.named[t] = bt(e.named[t]));
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
1338
|
function ur(e, t, n, r, a, s) {
|
|
1339
|
-
const { messages: o, onWarn: c } = e,
|
|
1340
|
-
let
|
|
1341
|
-
const
|
|
1342
|
-
for (let I = 0; I <
|
|
1343
|
-
if (h = C =
|
|
1339
|
+
const { messages: o, onWarn: c } = e, p = De(e, r, n);
|
|
1340
|
+
let g = {}, h, E = null, k = n, C = null;
|
|
1341
|
+
const w = "translate";
|
|
1342
|
+
for (let I = 0; I < p.length; I++) {
|
|
1343
|
+
if (h = C = p[I], process.env.NODE_ENV !== "production" && n !== h && ot(a, t) && c(fe(1, {
|
|
1344
1344
|
key: t,
|
|
1345
1345
|
target: h
|
|
1346
1346
|
})), process.env.NODE_ENV !== "production" && n !== h) {
|
|
1347
1347
|
const f = e.__emitter;
|
|
1348
1348
|
f && f.emit("fallback", {
|
|
1349
|
-
type:
|
|
1349
|
+
type: w,
|
|
1350
1350
|
key: t,
|
|
1351
1351
|
from: k,
|
|
1352
1352
|
to: C,
|
|
1353
|
-
groupId: `${
|
|
1353
|
+
groupId: `${w}:${t}`
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
1356
|
-
|
|
1357
|
-
let
|
|
1358
|
-
if (process.env.NODE_ENV !== "production" && te && (
|
|
1359
|
-
const f = window.performance.now(),
|
|
1360
|
-
|
|
1356
|
+
g = o[h] || {};
|
|
1357
|
+
let N = null, u, _;
|
|
1358
|
+
if (process.env.NODE_ENV !== "production" && te && (N = window.performance.now(), u = "intlify-message-resolve-start", _ = "intlify-message-resolve-end", U && U(u)), (E = Le(g, t)) === null && (E = g[t]), process.env.NODE_ENV !== "production" && te) {
|
|
1359
|
+
const f = window.performance.now(), L = e.__emitter;
|
|
1360
|
+
L && N && E && L.emit("message-resolve", {
|
|
1361
1361
|
type: "message-resolve",
|
|
1362
1362
|
key: t,
|
|
1363
|
-
message:
|
|
1364
|
-
time: f -
|
|
1365
|
-
groupId: `${
|
|
1363
|
+
message: E,
|
|
1364
|
+
time: f - N,
|
|
1365
|
+
groupId: `${w}:${t}`
|
|
1366
1366
|
}), u && _ && U && ne && (U(_), ne("intlify message resolve", u, _));
|
|
1367
1367
|
}
|
|
1368
|
-
if (
|
|
1368
|
+
if (O(E) || R(E))
|
|
1369
1369
|
break;
|
|
1370
|
-
const v = lt(e, t, h, s,
|
|
1371
|
-
v !== t && (
|
|
1370
|
+
const v = lt(e, t, h, s, w);
|
|
1371
|
+
v !== t && (E = v), k = C;
|
|
1372
1372
|
}
|
|
1373
|
-
return [
|
|
1373
|
+
return [E, h, g];
|
|
1374
1374
|
}
|
|
1375
1375
|
function Ut(e, t, n, r, a, s) {
|
|
1376
1376
|
const { messageCompiler: o, warnHtmlMessage: c } = e;
|
|
1377
|
-
if (
|
|
1377
|
+
if (Oe(r)) {
|
|
1378
1378
|
const k = r;
|
|
1379
1379
|
return k.locale = k.locale || n, k.key = k.key || t, k;
|
|
1380
1380
|
}
|
|
1381
|
-
let
|
|
1382
|
-
process.env.NODE_ENV !== "production" && te && (
|
|
1383
|
-
const
|
|
1381
|
+
let p = null, g, h;
|
|
1382
|
+
process.env.NODE_ENV !== "production" && te && (p = window.performance.now(), g = "intlify-message-compilation-start", h = "intlify-message-compilation-end", U && U(g));
|
|
1383
|
+
const E = o(r, mr(e, n, a, r, c, s));
|
|
1384
1384
|
if (process.env.NODE_ENV !== "production" && te) {
|
|
1385
1385
|
const k = window.performance.now(), C = e.__emitter;
|
|
1386
|
-
C &&
|
|
1386
|
+
C && p && C.emit("message-compilation", {
|
|
1387
1387
|
type: "message-compilation",
|
|
1388
1388
|
message: r,
|
|
1389
|
-
time: k -
|
|
1389
|
+
time: k - p,
|
|
1390
1390
|
groupId: `translate:${t}`
|
|
1391
|
-
}),
|
|
1391
|
+
}), g && h && U && ne && (U(h), ne("intlify message compilation", g, h));
|
|
1392
1392
|
}
|
|
1393
|
-
return
|
|
1393
|
+
return E.locale = n, E.key = t, E.source = r, E;
|
|
1394
1394
|
}
|
|
1395
1395
|
function fr(e, t, n) {
|
|
1396
1396
|
let r = null, a, s;
|
|
1397
1397
|
process.env.NODE_ENV !== "production" && te && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", U && U(a));
|
|
1398
1398
|
const o = t(n);
|
|
1399
1399
|
if (process.env.NODE_ENV !== "production" && te) {
|
|
1400
|
-
const c = window.performance.now(),
|
|
1401
|
-
|
|
1400
|
+
const c = window.performance.now(), p = e.__emitter;
|
|
1401
|
+
p && r && p.emit("message-evaluation", {
|
|
1402
1402
|
type: "message-evaluation",
|
|
1403
1403
|
value: o,
|
|
1404
1404
|
time: c - r,
|
|
@@ -1409,28 +1409,28 @@ function fr(e, t, n) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
function Be(...e) {
|
|
1411
1411
|
const [t, n, r] = e, a = {};
|
|
1412
|
-
if (!
|
|
1412
|
+
if (!O(t) && !A(t))
|
|
1413
1413
|
throw ce(
|
|
1414
1414
|
14
|
|
1415
1415
|
/* INVALID_ARGUMENT */
|
|
1416
1416
|
);
|
|
1417
|
-
const s =
|
|
1418
|
-
return
|
|
1417
|
+
const s = A(t) ? String(t) : t;
|
|
1418
|
+
return A(n) ? a.plural = n : O(n) ? a.default = n : F(n) && !Pe(n) ? a.named = n : V(n) && (a.list = n), A(r) ? a.plural = r : O(r) ? a.default = r : F(r) && Object.assign(a, r), [s, a];
|
|
1419
1419
|
}
|
|
1420
1420
|
function mr(e, t, n, r, a, s) {
|
|
1421
1421
|
return {
|
|
1422
1422
|
warnHtmlMessage: a,
|
|
1423
1423
|
onError: (o) => {
|
|
1424
1424
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
1425
|
-
const c = `Message compilation error: ${o.message}`,
|
|
1426
|
-
|
|
1425
|
+
const c = `Message compilation error: ${o.message}`, p = o.location && mn(r, o.location.start.offset, o.location.end.offset), g = e.__emitter;
|
|
1426
|
+
g && g.emit("compile-error", {
|
|
1427
1427
|
message: r,
|
|
1428
1428
|
error: o.message,
|
|
1429
1429
|
start: o.location && o.location.start.offset,
|
|
1430
1430
|
end: o.location && o.location.end.offset,
|
|
1431
1431
|
groupId: `translate:${n}`
|
|
1432
|
-
}), console.error(
|
|
1433
|
-
${
|
|
1432
|
+
}), console.error(p ? `${c}
|
|
1433
|
+
${p}` : c);
|
|
1434
1434
|
} else
|
|
1435
1435
|
throw o;
|
|
1436
1436
|
},
|
|
@@ -1442,22 +1442,22 @@ function dr(e, t, n, r) {
|
|
|
1442
1442
|
locale: t,
|
|
1443
1443
|
modifiers: a,
|
|
1444
1444
|
pluralRules: s,
|
|
1445
|
-
messages: (
|
|
1446
|
-
const
|
|
1447
|
-
if (
|
|
1445
|
+
messages: (p) => {
|
|
1446
|
+
const g = Le(n, p);
|
|
1447
|
+
if (O(g)) {
|
|
1448
1448
|
let h = !1;
|
|
1449
|
-
const k = Ut(e,
|
|
1449
|
+
const k = Ut(e, p, t, g, p, () => {
|
|
1450
1450
|
h = !0;
|
|
1451
1451
|
});
|
|
1452
|
-
return h ?
|
|
1453
|
-
} else return
|
|
1452
|
+
return h ? Lt : k;
|
|
1453
|
+
} else return Oe(g) ? g : Lt;
|
|
1454
1454
|
}
|
|
1455
1455
|
};
|
|
1456
|
-
return e.processor && (c.processor = e.processor), r.list && (c.list = r.list), r.named && (c.named = r.named),
|
|
1456
|
+
return e.processor && (c.processor = e.processor), r.list && (c.list = r.list), r.named && (c.named = r.named), A(r.plural) && (c.pluralIndex = r.plural), c;
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1459
|
-
dateTimeFormat:
|
|
1460
|
-
numberFormat:
|
|
1458
|
+
const Ot = typeof Intl < "u", Ht = {
|
|
1459
|
+
dateTimeFormat: Ot && typeof Intl.DateTimeFormat < "u",
|
|
1460
|
+
numberFormat: Ot && typeof Intl.NumberFormat < "u"
|
|
1461
1461
|
};
|
|
1462
1462
|
function St(e, ...t) {
|
|
1463
1463
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s } = e, { __datetimeFormatters: o } = e;
|
|
@@ -1465,41 +1465,41 @@ function St(e, ...t) {
|
|
|
1465
1465
|
return s(fe(
|
|
1466
1466
|
4
|
|
1467
1467
|
/* CANNOT_FORMAT_DATE */
|
|
1468
|
-
)),
|
|
1469
|
-
const [c,
|
|
1470
|
-
if (!
|
|
1471
|
-
return new Intl.DateTimeFormat(
|
|
1472
|
-
let
|
|
1473
|
-
const
|
|
1474
|
-
for (let
|
|
1475
|
-
if (u = f = I[
|
|
1468
|
+
)), Te;
|
|
1469
|
+
const [c, p, g, h] = Je(...t), E = x(g.missingWarn) ? g.missingWarn : e.missingWarn, k = x(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = !!g.part, w = O(g.locale) ? g.locale : e.locale, I = De(e, a, w);
|
|
1470
|
+
if (!O(c) || c === "")
|
|
1471
|
+
return new Intl.DateTimeFormat(w).format(p);
|
|
1472
|
+
let N = {}, u, _ = null, v = w, f = null;
|
|
1473
|
+
const L = "datetime format";
|
|
1474
|
+
for (let $ = 0; $ < I.length; $++) {
|
|
1475
|
+
if (u = f = I[$], process.env.NODE_ENV !== "production" && w !== u && ot(k, c) && s(fe(5, {
|
|
1476
1476
|
key: c,
|
|
1477
1477
|
target: u
|
|
1478
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1478
|
+
})), process.env.NODE_ENV !== "production" && w !== u) {
|
|
1479
1479
|
const M = e.__emitter;
|
|
1480
1480
|
M && M.emit("fallback", {
|
|
1481
|
-
type:
|
|
1481
|
+
type: L,
|
|
1482
1482
|
key: c,
|
|
1483
1483
|
from: v,
|
|
1484
1484
|
to: f,
|
|
1485
|
-
groupId: `${
|
|
1485
|
+
groupId: `${L}:${c}`
|
|
1486
1486
|
});
|
|
1487
1487
|
}
|
|
1488
|
-
if (
|
|
1488
|
+
if (N = n[u] || {}, _ = N[c], F(_))
|
|
1489
1489
|
break;
|
|
1490
|
-
lt(e, c, u,
|
|
1490
|
+
lt(e, c, u, E, L), v = f;
|
|
1491
1491
|
}
|
|
1492
|
-
if (!F(_) || !
|
|
1492
|
+
if (!F(_) || !O(u))
|
|
1493
1493
|
return r ? Ce : c;
|
|
1494
|
-
let
|
|
1495
|
-
Pe(h) || (
|
|
1496
|
-
let S = o.get(
|
|
1497
|
-
return S || (S = new Intl.DateTimeFormat(u, Object.assign({}, _, h)), o.set(
|
|
1494
|
+
let T = `${u}__${c}`;
|
|
1495
|
+
Pe(h) || (T = `${T}__${JSON.stringify(h)}`);
|
|
1496
|
+
let S = o.get(T);
|
|
1497
|
+
return S || (S = new Intl.DateTimeFormat(u, Object.assign({}, _, h)), o.set(T, S)), C ? S.formatToParts(p) : S.format(p);
|
|
1498
1498
|
}
|
|
1499
1499
|
function Je(...e) {
|
|
1500
1500
|
const [t, n, r, a] = e;
|
|
1501
1501
|
let s = {}, o = {}, c;
|
|
1502
|
-
if (
|
|
1502
|
+
if (O(t)) {
|
|
1503
1503
|
if (!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))
|
|
1504
1504
|
throw ce(
|
|
1505
1505
|
16
|
|
@@ -1521,14 +1521,14 @@ function Je(...e) {
|
|
|
1521
1521
|
/* INVALID_DATE_ARGUMENT */
|
|
1522
1522
|
);
|
|
1523
1523
|
c = t;
|
|
1524
|
-
} else if (
|
|
1524
|
+
} else if (A(t))
|
|
1525
1525
|
c = t;
|
|
1526
1526
|
else
|
|
1527
1527
|
throw ce(
|
|
1528
1528
|
14
|
|
1529
1529
|
/* INVALID_ARGUMENT */
|
|
1530
1530
|
);
|
|
1531
|
-
return
|
|
1531
|
+
return O(n) ? s.key = n : F(n) && (s = n), O(r) ? s.locale = r : F(r) && (o = r), F(a) && (o = a), [s.key || "", c, s, o];
|
|
1532
1532
|
}
|
|
1533
1533
|
function It(e, t, n) {
|
|
1534
1534
|
const r = e;
|
|
@@ -1543,47 +1543,47 @@ function Pt(e, ...t) {
|
|
|
1543
1543
|
return s(fe(
|
|
1544
1544
|
2
|
|
1545
1545
|
/* CANNOT_FORMAT_NUMBER */
|
|
1546
|
-
)),
|
|
1547
|
-
const [c,
|
|
1548
|
-
if (!
|
|
1549
|
-
return new Intl.NumberFormat(
|
|
1550
|
-
let
|
|
1551
|
-
const
|
|
1552
|
-
for (let
|
|
1553
|
-
if (u = f = I[
|
|
1546
|
+
)), Te;
|
|
1547
|
+
const [c, p, g, h] = Qe(...t), E = x(g.missingWarn) ? g.missingWarn : e.missingWarn, k = x(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = !!g.part, w = O(g.locale) ? g.locale : e.locale, I = De(e, a, w);
|
|
1548
|
+
if (!O(c) || c === "")
|
|
1549
|
+
return new Intl.NumberFormat(w).format(p);
|
|
1550
|
+
let N = {}, u, _ = null, v = w, f = null;
|
|
1551
|
+
const L = "number format";
|
|
1552
|
+
for (let $ = 0; $ < I.length; $++) {
|
|
1553
|
+
if (u = f = I[$], process.env.NODE_ENV !== "production" && w !== u && ot(k, c) && s(fe(3, {
|
|
1554
1554
|
key: c,
|
|
1555
1555
|
target: u
|
|
1556
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1556
|
+
})), process.env.NODE_ENV !== "production" && w !== u) {
|
|
1557
1557
|
const M = e.__emitter;
|
|
1558
1558
|
M && M.emit("fallback", {
|
|
1559
|
-
type:
|
|
1559
|
+
type: L,
|
|
1560
1560
|
key: c,
|
|
1561
1561
|
from: v,
|
|
1562
1562
|
to: f,
|
|
1563
|
-
groupId: `${
|
|
1563
|
+
groupId: `${L}:${c}`
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
|
-
if (
|
|
1566
|
+
if (N = n[u] || {}, _ = N[c], F(_))
|
|
1567
1567
|
break;
|
|
1568
|
-
lt(e, c, u,
|
|
1568
|
+
lt(e, c, u, E, L), v = f;
|
|
1569
1569
|
}
|
|
1570
|
-
if (!F(_) || !
|
|
1570
|
+
if (!F(_) || !O(u))
|
|
1571
1571
|
return r ? Ce : c;
|
|
1572
|
-
let
|
|
1573
|
-
Pe(h) || (
|
|
1574
|
-
let S = o.get(
|
|
1575
|
-
return S || (S = new Intl.NumberFormat(u, Object.assign({}, _, h)), o.set(
|
|
1572
|
+
let T = `${u}__${c}`;
|
|
1573
|
+
Pe(h) || (T = `${T}__${JSON.stringify(h)}`);
|
|
1574
|
+
let S = o.get(T);
|
|
1575
|
+
return S || (S = new Intl.NumberFormat(u, Object.assign({}, _, h)), o.set(T, S)), C ? S.formatToParts(p) : S.format(p);
|
|
1576
1576
|
}
|
|
1577
1577
|
function Qe(...e) {
|
|
1578
1578
|
const [t, n, r, a] = e;
|
|
1579
1579
|
let s = {}, o = {};
|
|
1580
|
-
if (!
|
|
1580
|
+
if (!A(t))
|
|
1581
1581
|
throw ce(
|
|
1582
1582
|
14
|
|
1583
1583
|
/* INVALID_ARGUMENT */
|
|
1584
1584
|
);
|
|
1585
1585
|
const c = t;
|
|
1586
|
-
return
|
|
1586
|
+
return O(n) ? s.key = n : F(n) && (s = n), O(r) ? s.locale = r : F(r) && (o = r), F(a) && (o = a), [s.key || "", c, s, o];
|
|
1587
1587
|
}
|
|
1588
1588
|
function Ft(e, t, n) {
|
|
1589
1589
|
const r = e;
|
|
@@ -1596,9 +1596,9 @@ const Ge = {
|
|
|
1596
1596
|
"vue-devtools-plugin-vue-i18n": "Vue I18n devtools",
|
|
1597
1597
|
"vue-i18n-resource-inspector": "I18n Resources",
|
|
1598
1598
|
"vue-i18n-timeline": "Vue I18n"
|
|
1599
|
-
}, gr = {
|
|
1600
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
1601
1599
|
}, pr = {
|
|
1600
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
1601
|
+
}, gr = {
|
|
1602
1602
|
"vue-i18n-timeline": 16764185
|
|
1603
1603
|
};
|
|
1604
1604
|
function Gt() {
|
|
@@ -1633,7 +1633,7 @@ function yr() {
|
|
|
1633
1633
|
function kr() {
|
|
1634
1634
|
return yr() ? Ze.now() : Date.now();
|
|
1635
1635
|
}
|
|
1636
|
-
class
|
|
1636
|
+
class Er {
|
|
1637
1637
|
constructor(t, n) {
|
|
1638
1638
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
1639
1639
|
const r = {};
|
|
@@ -1666,23 +1666,23 @@ class wr {
|
|
|
1666
1666
|
}, n && n.on(vr, (o, c) => {
|
|
1667
1667
|
o === this.plugin.id && this.fallbacks.setSettings(c);
|
|
1668
1668
|
}), this.proxiedOn = new Proxy({}, {
|
|
1669
|
-
get: (o, c) => this.target ? this.target.on[c] : (...
|
|
1669
|
+
get: (o, c) => this.target ? this.target.on[c] : (...p) => {
|
|
1670
1670
|
this.onQueue.push({
|
|
1671
1671
|
method: c,
|
|
1672
|
-
args:
|
|
1672
|
+
args: p
|
|
1673
1673
|
});
|
|
1674
1674
|
}
|
|
1675
1675
|
}), this.proxiedTarget = new Proxy({}, {
|
|
1676
|
-
get: (o, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...
|
|
1676
|
+
get: (o, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...p) => (this.targetQueue.push({
|
|
1677
1677
|
method: c,
|
|
1678
|
-
args:
|
|
1678
|
+
args: p,
|
|
1679
1679
|
resolve: () => {
|
|
1680
1680
|
}
|
|
1681
|
-
}), this.fallbacks[c](...
|
|
1681
|
+
}), this.fallbacks[c](...p)) : (...p) => new Promise((g) => {
|
|
1682
1682
|
this.targetQueue.push({
|
|
1683
1683
|
method: c,
|
|
1684
|
-
args:
|
|
1685
|
-
resolve:
|
|
1684
|
+
args: p,
|
|
1685
|
+
resolve: g
|
|
1686
1686
|
});
|
|
1687
1687
|
})
|
|
1688
1688
|
});
|
|
@@ -1695,12 +1695,12 @@ class wr {
|
|
|
1695
1695
|
n.resolve(await this.target[n.method](...n.args));
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function wr(e, t) {
|
|
1699
1699
|
const n = e, r = Yt(), a = _r(), s = br && n.enableEarlyProxy;
|
|
1700
1700
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
1701
1701
|
a.emit(hr, e, t);
|
|
1702
1702
|
else {
|
|
1703
|
-
const o = s ? new
|
|
1703
|
+
const o = s ? new Er(n, a) : null;
|
|
1704
1704
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1705
1705
|
pluginDescriptor: n,
|
|
1706
1706
|
setupFn: t,
|
|
@@ -1708,16 +1708,16 @@ function Nr(e, t) {
|
|
|
1708
1708
|
}), o && t(o.proxiedTarget);
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Nr() {
|
|
1712
1712
|
let e = !1;
|
|
1713
1713
|
process.env.NODE_ENV;
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Lr() {
|
|
1716
1716
|
const e = un();
|
|
1717
1717
|
e.__INTLIFY__ = !0, console.info(`You are running a development build of vue-i18n.
|
|
1718
1718
|
Make sure to use the production build (*.prod.js) when deploying for production.`);
|
|
1719
1719
|
}
|
|
1720
|
-
const
|
|
1720
|
+
const Tr = {
|
|
1721
1721
|
6: "Fall back to {type} '{key}' with root locale.",
|
|
1722
1722
|
7: "Not supported 'preserve'.",
|
|
1723
1723
|
8: "Not supported 'formatter'.",
|
|
@@ -1727,12 +1727,12 @@ const Or = {
|
|
|
1727
1727
|
12: "Not found parent scope. use the global scope."
|
|
1728
1728
|
};
|
|
1729
1729
|
function Me(e, ...t) {
|
|
1730
|
-
return Ie(
|
|
1730
|
+
return Ie(Tr[e], ...t);
|
|
1731
1731
|
}
|
|
1732
1732
|
function G(e, ...t) {
|
|
1733
|
-
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1733
|
+
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages: Or, args: t } : void 0);
|
|
1734
1734
|
}
|
|
1735
|
-
const
|
|
1735
|
+
const Or = {
|
|
1736
1736
|
14: "Unexpected return type in composer",
|
|
1737
1737
|
15: "Invalid argument",
|
|
1738
1738
|
16: "Must be called at the top of a `setup` function",
|
|
@@ -1745,11 +1745,11 @@ const Tr = {
|
|
|
1745
1745
|
}, Xe = re("__transrateVNode"), ze = re("__datetimeParts"), et = re("__numberParts"), be = re("__enableEmitter"), tt = re("__disableEmitter"), Sr = re("__setPluralRules");
|
|
1746
1746
|
let Ct = 0;
|
|
1747
1747
|
function Dt(e) {
|
|
1748
|
-
return ((t, n, r, a) => e(n, r,
|
|
1748
|
+
return ((t, n, r, a) => e(n, r, Rt() || void 0, a));
|
|
1749
1749
|
}
|
|
1750
1750
|
function Kt(e, t) {
|
|
1751
|
-
const { messages: n, __i18n: r } = t, a = F(n) ? n :
|
|
1752
|
-
return
|
|
1751
|
+
const { messages: n, __i18n: r } = t, a = F(n) ? n : V(r) ? {} : { [e]: {} };
|
|
1752
|
+
return V(r) && r.forEach(({ locale: s, resource: o }) => {
|
|
1753
1753
|
s ? (a[s] = a[s] || {}, Se(o, a[s])) : Se(o, a);
|
|
1754
1754
|
}), a;
|
|
1755
1755
|
}
|
|
@@ -1757,53 +1757,53 @@ const Ir = Object.prototype.hasOwnProperty;
|
|
|
1757
1757
|
function Pr(e, t) {
|
|
1758
1758
|
return Ir.call(e, t);
|
|
1759
1759
|
}
|
|
1760
|
-
const
|
|
1760
|
+
const we = (e) => !j(e) || V(e);
|
|
1761
1761
|
function Se(e, t) {
|
|
1762
|
-
if (
|
|
1762
|
+
if (we(e) || we(t))
|
|
1763
1763
|
throw G(
|
|
1764
1764
|
20
|
|
1765
1765
|
/* INVALID_VALUE */
|
|
1766
1766
|
);
|
|
1767
1767
|
for (const n in e)
|
|
1768
|
-
Pr(e, n) && (
|
|
1768
|
+
Pr(e, n) && (we(e[n]) || we(t[n]) ? t[n] = e[n] : Se(e[n], t[n]));
|
|
1769
1769
|
}
|
|
1770
1770
|
function qt(e = {}) {
|
|
1771
1771
|
const { __root: t } = e, n = t === void 0;
|
|
1772
|
-
let r =
|
|
1772
|
+
let r = x(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1773
1773
|
const a = oe(
|
|
1774
1774
|
// prettier-ignore
|
|
1775
|
-
t && r ? t.locale.value :
|
|
1775
|
+
t && r ? t.locale.value : O(e.locale) ? e.locale : "en-US"
|
|
1776
1776
|
), s = oe(
|
|
1777
1777
|
// prettier-ignore
|
|
1778
|
-
t && r ? t.fallbackLocale.value :
|
|
1779
|
-
), o = oe(Kt(a.value, e)), c = oe(F(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }),
|
|
1780
|
-
let
|
|
1778
|
+
t && r ? t.fallbackLocale.value : O(e.fallbackLocale) || V(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1779
|
+
), o = oe(Kt(a.value, e)), c = oe(F(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), p = oe(F(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1780
|
+
let g = t ? t.missingWarn : x(e.missingWarn) || Ne(e.missingWarn) ? e.missingWarn : !0, h = t ? t.fallbackWarn : x(e.fallbackWarn) || Ne(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, C = R(e.missing) ? e.missing : null, w = R(e.missing) ? Dt(e.missing) : null, I = R(e.postTranslation) ? e.postTranslation : null, N = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
|
|
1781
1781
|
const _ = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
|
|
1782
1782
|
let v = e.pluralRules || t && t.pluralRules, f;
|
|
1783
|
-
function
|
|
1783
|
+
function L() {
|
|
1784
1784
|
return zn({
|
|
1785
1785
|
locale: a.value,
|
|
1786
1786
|
fallbackLocale: s.value,
|
|
1787
1787
|
messages: o.value,
|
|
1788
1788
|
datetimeFormats: c.value,
|
|
1789
|
-
numberFormats:
|
|
1789
|
+
numberFormats: p.value,
|
|
1790
1790
|
modifiers: _,
|
|
1791
1791
|
pluralRules: v,
|
|
1792
|
-
missing:
|
|
1793
|
-
missingWarn:
|
|
1792
|
+
missing: w === null ? void 0 : w,
|
|
1793
|
+
missingWarn: g,
|
|
1794
1794
|
fallbackWarn: h,
|
|
1795
1795
|
fallbackFormat: k,
|
|
1796
1796
|
unresolving: !0,
|
|
1797
1797
|
postTranslation: I === null ? void 0 : I,
|
|
1798
|
-
warnHtmlMessage:
|
|
1798
|
+
warnHtmlMessage: N,
|
|
1799
1799
|
escapeParameter: u,
|
|
1800
1800
|
__datetimeFormatters: F(f) ? f.__datetimeFormatters : void 0,
|
|
1801
1801
|
__numberFormatters: F(f) ? f.__numberFormatters : void 0,
|
|
1802
1802
|
__emitter: F(f) ? f.__emitter : void 0
|
|
1803
1803
|
});
|
|
1804
1804
|
}
|
|
1805
|
-
f =
|
|
1806
|
-
const
|
|
1805
|
+
f = L(), _e(f, a.value, s.value);
|
|
1806
|
+
const T = le({
|
|
1807
1807
|
get: () => a.value,
|
|
1808
1808
|
set: (m) => {
|
|
1809
1809
|
a.value = m, f.locale = a.value;
|
|
@@ -1813,9 +1813,9 @@ function qt(e = {}) {
|
|
|
1813
1813
|
set: (m) => {
|
|
1814
1814
|
s.value = m, f.fallbackLocale = s.value, _e(f, a.value, m);
|
|
1815
1815
|
}
|
|
1816
|
-
}),
|
|
1816
|
+
}), $ = le(() => o.value), M = le(() => c.value), q = le(() => p.value);
|
|
1817
1817
|
function me() {
|
|
1818
|
-
return
|
|
1818
|
+
return R(I) ? I : null;
|
|
1819
1819
|
}
|
|
1820
1820
|
function X(m) {
|
|
1821
1821
|
I = m, f.postTranslation = m;
|
|
@@ -1823,26 +1823,26 @@ function qt(e = {}) {
|
|
|
1823
1823
|
function he() {
|
|
1824
1824
|
return C;
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1827
|
-
m !== null && (
|
|
1826
|
+
function xe(m) {
|
|
1827
|
+
m !== null && (w = Dt(m)), C = m, f.missing = w;
|
|
1828
1828
|
}
|
|
1829
1829
|
function J(m, y, Y, ee, Zt, Xt) {
|
|
1830
|
-
const mt =
|
|
1831
|
-
if (
|
|
1832
|
-
const
|
|
1833
|
-
if (process.env.NODE_ENV !== "production" && t && (
|
|
1834
|
-
key:
|
|
1830
|
+
const mt = L(), ke = m(mt);
|
|
1831
|
+
if (A(ke) && ke === Ce) {
|
|
1832
|
+
const Ee = y();
|
|
1833
|
+
if (process.env.NODE_ENV !== "production" && t && (E || ae(Me(6, {
|
|
1834
|
+
key: Ee,
|
|
1835
1835
|
type: Y
|
|
1836
1836
|
})), process.env.NODE_ENV !== "production")) {
|
|
1837
1837
|
const { __emitter: dt } = mt;
|
|
1838
1838
|
dt && dt.emit("fallback", {
|
|
1839
1839
|
type: Y,
|
|
1840
|
-
key:
|
|
1840
|
+
key: Ee,
|
|
1841
1841
|
to: "global",
|
|
1842
|
-
groupId: `${Y}:${
|
|
1842
|
+
groupId: `${Y}:${Ee}`
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
1845
|
-
return t &&
|
|
1845
|
+
return t && E ? ee(t) : Zt(Ee);
|
|
1846
1846
|
} else {
|
|
1847
1847
|
if (Xt(ke))
|
|
1848
1848
|
return ke;
|
|
@@ -1853,19 +1853,19 @@ function qt(e = {}) {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
function ve(...m) {
|
|
1856
|
-
return J((y) =>
|
|
1856
|
+
return J((y) => Tt(y, ...m), () => Be(...m)[0], "translate", (y) => y.t(...m), (y) => y, (y) => O(y));
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1859
|
-
return J((y) => St(y, ...m), () => Je(...m)[0], "datetime format", (y) => y.d(...m), () =>
|
|
1858
|
+
function $e(...m) {
|
|
1859
|
+
return J((y) => St(y, ...m), () => Je(...m)[0], "datetime format", (y) => y.d(...m), () => Te, (y) => O(y));
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1862
|
-
return J((y) => Pt(y, ...m), () => Qe(...m)[0], "number format", (y) => y.n(...m), () =>
|
|
1861
|
+
function Ae(...m) {
|
|
1862
|
+
return J((y) => Pt(y, ...m), () => Qe(...m)[0], "number format", (y) => y.n(...m), () => Te, (y) => O(y));
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1865
|
-
return m.map((y) =>
|
|
1864
|
+
function Re(m) {
|
|
1865
|
+
return m.map((y) => O(y) ? pt(gt, null, y, 0) : y);
|
|
1866
1866
|
}
|
|
1867
|
-
const
|
|
1868
|
-
normalize:
|
|
1867
|
+
const Ve = {
|
|
1868
|
+
normalize: Re,
|
|
1869
1869
|
interpolate: (m) => m,
|
|
1870
1870
|
type: "vnode"
|
|
1871
1871
|
};
|
|
@@ -1875,7 +1875,7 @@ function qt(e = {}) {
|
|
|
1875
1875
|
let Y;
|
|
1876
1876
|
const ee = y;
|
|
1877
1877
|
try {
|
|
1878
|
-
ee.processor =
|
|
1878
|
+
ee.processor = Ve, Y = Tt(ee, ...m);
|
|
1879
1879
|
} finally {
|
|
1880
1880
|
ee.processor = null;
|
|
1881
1881
|
}
|
|
@@ -1885,11 +1885,11 @@ function qt(e = {}) {
|
|
|
1885
1885
|
"translate",
|
|
1886
1886
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1887
1887
|
(y) => y[Xe](...m),
|
|
1888
|
-
(y) => [gt
|
|
1889
|
-
(y) =>
|
|
1888
|
+
(y) => [pt(gt, null, y, 0)],
|
|
1889
|
+
(y) => V(y)
|
|
1890
1890
|
);
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function We(...m) {
|
|
1893
1893
|
return J(
|
|
1894
1894
|
(y) => Pt(y, ...m),
|
|
1895
1895
|
() => Qe(...m)[0],
|
|
@@ -1897,7 +1897,7 @@ function qt(e = {}) {
|
|
|
1897
1897
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1898
1898
|
(y) => y[et](...m),
|
|
1899
1899
|
() => [],
|
|
1900
|
-
(y) =>
|
|
1900
|
+
(y) => O(y) || V(y)
|
|
1901
1901
|
);
|
|
1902
1902
|
}
|
|
1903
1903
|
function je(...m) {
|
|
@@ -1908,24 +1908,24 @@ function qt(e = {}) {
|
|
|
1908
1908
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1909
1909
|
(y) => y[ze](...m),
|
|
1910
1910
|
() => [],
|
|
1911
|
-
(y) =>
|
|
1911
|
+
(y) => O(y) || V(y)
|
|
1912
1912
|
);
|
|
1913
1913
|
}
|
|
1914
1914
|
function Ue(m) {
|
|
1915
1915
|
v = m, f.pluralRules = v;
|
|
1916
1916
|
}
|
|
1917
1917
|
function de(m, y) {
|
|
1918
|
-
const Y =
|
|
1919
|
-
return
|
|
1918
|
+
const Y = O(y) ? y : a.value, ee = z(Y);
|
|
1919
|
+
return Le(ee, m) !== null;
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1922
|
-
const y = o.value[a.value] || {}, Y =
|
|
1921
|
+
function pe(m) {
|
|
1922
|
+
const y = o.value[a.value] || {}, Y = Le(y, m);
|
|
1923
1923
|
return Y ?? (t ? t.tm(m) || {} : {});
|
|
1924
1924
|
}
|
|
1925
1925
|
function z(m) {
|
|
1926
1926
|
return o.value[m] || {};
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function ge(m, y) {
|
|
1929
1929
|
o.value[m] = y, f.messages = o.value;
|
|
1930
1930
|
}
|
|
1931
1931
|
function He(m, y) {
|
|
@@ -1941,13 +1941,13 @@ function qt(e = {}) {
|
|
|
1941
1941
|
c.value[m] = Object.assign(c.value[m] || {}, y), f.datetimeFormats = c.value, It(f, m, y);
|
|
1942
1942
|
}
|
|
1943
1943
|
function b(m) {
|
|
1944
|
-
return
|
|
1944
|
+
return p.value[m] || {};
|
|
1945
1945
|
}
|
|
1946
1946
|
function P(m, y) {
|
|
1947
|
-
|
|
1947
|
+
p.value[m] = y, f.numberFormats = p.value, Ft(f, m, y);
|
|
1948
1948
|
}
|
|
1949
1949
|
function D(m, y) {
|
|
1950
|
-
|
|
1950
|
+
p.value[m] = Object.assign(p.value[m] || {}, y), f.numberFormats = p.value, Ft(f, m, y);
|
|
1951
1951
|
}
|
|
1952
1952
|
Ct++, t && (Ke(t.locale, (m) => {
|
|
1953
1953
|
r && (a.value = m, f.locale = m, _e(f, a.value, s.value));
|
|
@@ -1956,7 +1956,7 @@ function qt(e = {}) {
|
|
|
1956
1956
|
}));
|
|
1957
1957
|
const H = {
|
|
1958
1958
|
id: Ct,
|
|
1959
|
-
locale:
|
|
1959
|
+
locale: T,
|
|
1960
1960
|
fallbackLocale: S,
|
|
1961
1961
|
get inheritLocale() {
|
|
1962
1962
|
return r;
|
|
@@ -1967,7 +1967,7 @@ function qt(e = {}) {
|
|
|
1967
1967
|
get availableLocales() {
|
|
1968
1968
|
return Object.keys(o.value).sort();
|
|
1969
1969
|
},
|
|
1970
|
-
messages:
|
|
1970
|
+
messages: $,
|
|
1971
1971
|
datetimeFormats: M,
|
|
1972
1972
|
numberFormats: q,
|
|
1973
1973
|
get modifiers() {
|
|
@@ -1980,10 +1980,10 @@ function qt(e = {}) {
|
|
|
1980
1980
|
return n;
|
|
1981
1981
|
},
|
|
1982
1982
|
get missingWarn() {
|
|
1983
|
-
return
|
|
1983
|
+
return g;
|
|
1984
1984
|
},
|
|
1985
1985
|
set missingWarn(m) {
|
|
1986
|
-
|
|
1986
|
+
g = m, f.missingWarn = g;
|
|
1987
1987
|
},
|
|
1988
1988
|
get fallbackWarn() {
|
|
1989
1989
|
return h;
|
|
@@ -1992,10 +1992,10 @@ function qt(e = {}) {
|
|
|
1992
1992
|
h = m, f.fallbackWarn = h;
|
|
1993
1993
|
},
|
|
1994
1994
|
get fallbackRoot() {
|
|
1995
|
-
return
|
|
1995
|
+
return E;
|
|
1996
1996
|
},
|
|
1997
1997
|
set fallbackRoot(m) {
|
|
1998
|
-
|
|
1998
|
+
E = m;
|
|
1999
1999
|
},
|
|
2000
2000
|
get fallbackFormat() {
|
|
2001
2001
|
return k;
|
|
@@ -2004,10 +2004,10 @@ function qt(e = {}) {
|
|
|
2004
2004
|
k = m, f.fallbackFormat = k;
|
|
2005
2005
|
},
|
|
2006
2006
|
get warnHtmlMessage() {
|
|
2007
|
-
return
|
|
2007
|
+
return N;
|
|
2008
2008
|
},
|
|
2009
2009
|
set warnHtmlMessage(m) {
|
|
2010
|
-
|
|
2010
|
+
N = m, f.warnHtmlMessage = m;
|
|
2011
2011
|
},
|
|
2012
2012
|
get escapeParameter() {
|
|
2013
2013
|
return u;
|
|
@@ -2016,12 +2016,12 @@ function qt(e = {}) {
|
|
|
2016
2016
|
u = m, f.escapeParameter = m;
|
|
2017
2017
|
},
|
|
2018
2018
|
t: ve,
|
|
2019
|
-
d:
|
|
2020
|
-
n:
|
|
2019
|
+
d: $e,
|
|
2020
|
+
n: Ae,
|
|
2021
2021
|
te: de,
|
|
2022
|
-
tm:
|
|
2022
|
+
tm: pe,
|
|
2023
2023
|
getLocaleMessage: z,
|
|
2024
|
-
setLocaleMessage:
|
|
2024
|
+
setLocaleMessage: ge,
|
|
2025
2025
|
mergeLocaleMessage: He,
|
|
2026
2026
|
getDateTimeFormat: l,
|
|
2027
2027
|
setDateTimeFormat: i,
|
|
@@ -2032,9 +2032,9 @@ function qt(e = {}) {
|
|
|
2032
2032
|
getPostTranslationHandler: me,
|
|
2033
2033
|
setPostTranslationHandler: X,
|
|
2034
2034
|
getMissingHandler: he,
|
|
2035
|
-
setMissingHandler:
|
|
2035
|
+
setMissingHandler: xe,
|
|
2036
2036
|
[Xe]: ye,
|
|
2037
|
-
[et]:
|
|
2037
|
+
[et]: We,
|
|
2038
2038
|
[ze]: je,
|
|
2039
2039
|
[Sr]: Ue
|
|
2040
2040
|
};
|
|
@@ -2068,7 +2068,7 @@ const ct = {
|
|
|
2068
2068
|
plural: {
|
|
2069
2069
|
type: [Number, String],
|
|
2070
2070
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2071
|
-
validator: (e) =>
|
|
2071
|
+
validator: (e) => A(e) || !isNaN(e)
|
|
2072
2072
|
}
|
|
2073
2073
|
},
|
|
2074
2074
|
/* eslint-enable */
|
|
@@ -2076,9 +2076,9 @@ const ct = {
|
|
|
2076
2076
|
const { slots: n, attrs: r } = t, a = ut({ useScope: e.scope }), s = Object.keys(n).filter((o) => o !== "_");
|
|
2077
2077
|
return () => {
|
|
2078
2078
|
const o = {};
|
|
2079
|
-
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural =
|
|
2080
|
-
const c = Fr(t, s),
|
|
2081
|
-
return
|
|
2079
|
+
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = O(e.plural) ? +e.plural : e.plural);
|
|
2080
|
+
const c = Fr(t, s), p = a[Xe](e.keypath, c, o);
|
|
2081
|
+
return O(e.tag) ? ie(e.tag, { ...r }, p) : j(e.tag) ? ie(e.tag, { ...r }, p) : ie(Vt, { ...r }, p);
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
2084
2084
|
};
|
|
@@ -2093,13 +2093,13 @@ function Bt(e, t, n, r) {
|
|
|
2093
2093
|
return () => {
|
|
2094
2094
|
const o = { part: !0 };
|
|
2095
2095
|
let c = {};
|
|
2096
|
-
e.locale && (o.locale = e.locale),
|
|
2097
|
-
const
|
|
2098
|
-
let
|
|
2099
|
-
return
|
|
2096
|
+
e.locale && (o.locale = e.locale), O(e.format) ? o.key = e.format : j(e.format) && (O(e.format.key) && (o.key = e.format.key), c = Object.keys(e.format).reduce((h, E) => n.includes(E) ? Object.assign({}, h, { [E]: e.format[E] }) : h, {}));
|
|
2097
|
+
const p = r(e.value, o, c);
|
|
2098
|
+
let g = [o.key];
|
|
2099
|
+
return V(p) ? g = p.map((h, E) => {
|
|
2100
2100
|
const k = a[h.type];
|
|
2101
|
-
return k ? k({ [h.type]: h.value, index:
|
|
2102
|
-
}) :
|
|
2101
|
+
return k ? k({ [h.type]: h.value, index: E, parts: p }) : [h.value];
|
|
2102
|
+
}) : O(p) && (g = [p]), O(e.tag) ? ie(e.tag, { ...s }, g) : j(e.tag) ? ie(e.tag, { ...s }, g) : ie(Vt, { ...s }, g);
|
|
2103
2103
|
};
|
|
2104
2104
|
}
|
|
2105
2105
|
const Cr = [
|
|
@@ -2160,7 +2160,7 @@ const Cr = [
|
|
|
2160
2160
|
"minute",
|
|
2161
2161
|
"second",
|
|
2162
2162
|
"timeZoneName"
|
|
2163
|
-
],
|
|
2163
|
+
], xt = {
|
|
2164
2164
|
/* eslint-disable */
|
|
2165
2165
|
name: "i18n-d",
|
|
2166
2166
|
props: {
|
|
@@ -2191,7 +2191,7 @@ function Mr(e, t) {
|
|
|
2191
2191
|
return r != null ? r.__composer : e.global.__composer;
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function xr(e) {
|
|
2195
2195
|
const t = (n, { instance: r, value: a, modifiers: s }) => {
|
|
2196
2196
|
if (!r || !r.$)
|
|
2197
2197
|
throw G(
|
|
@@ -2203,16 +2203,16 @@ function $r(e) {
|
|
|
2203
2203
|
7
|
|
2204
2204
|
/* NOT_SUPPORTED_PRESERVE */
|
|
2205
2205
|
));
|
|
2206
|
-
const c =
|
|
2207
|
-
n.textContent = o.t(...
|
|
2206
|
+
const c = $r(a);
|
|
2207
|
+
n.textContent = o.t(...Ar(c));
|
|
2208
2208
|
};
|
|
2209
2209
|
return {
|
|
2210
2210
|
beforeMount: t,
|
|
2211
2211
|
beforeUpdate: t
|
|
2212
2212
|
};
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2215
|
-
if (
|
|
2214
|
+
function $r(e) {
|
|
2215
|
+
if (O(e))
|
|
2216
2216
|
return { path: e };
|
|
2217
2217
|
if (F(e)) {
|
|
2218
2218
|
if (!("path" in e))
|
|
@@ -2224,21 +2224,21 @@ function Rr(e) {
|
|
|
2224
2224
|
/* INVALID_VALUE */
|
|
2225
2225
|
);
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Ar(e) {
|
|
2228
2228
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, c = r || {};
|
|
2229
|
-
return
|
|
2229
|
+
return O(n) && (o.locale = n), A(a) && (o.plural = a), A(s) && (o.plural = s), [t, c, o];
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2232
|
-
const r = F(n[0]) ? n[0] : {}, a = !!r.useI18nComponentName, s =
|
|
2231
|
+
function Rr(e, t, ...n) {
|
|
2232
|
+
const r = F(n[0]) ? n[0] : {}, a = !!r.useI18nComponentName, s = x(r.globalInstall) ? r.globalInstall : !0;
|
|
2233
2233
|
process.env.NODE_ENV !== "production" && s && a && ae(Me(11, {
|
|
2234
2234
|
name: Ye.name
|
|
2235
|
-
})), s && (e.component(a ? "i18n" : Ye.name, Ye), e.component(Mt.name, Mt), e.component(
|
|
2235
|
+
})), s && (e.component(a ? "i18n" : Ye.name, Ye), e.component(Mt.name, Mt), e.component(xt.name, xt)), e.directive("t", xr(t));
|
|
2236
2236
|
}
|
|
2237
2237
|
let nt;
|
|
2238
|
-
async function
|
|
2238
|
+
async function Vr(e, t) {
|
|
2239
2239
|
return new Promise((n, r) => {
|
|
2240
2240
|
try {
|
|
2241
|
-
|
|
2241
|
+
wr({
|
|
2242
2242
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2243
2243
|
label: Ge[
|
|
2244
2244
|
"vue-devtools-plugin-vue-i18n"
|
|
@@ -2250,7 +2250,7 @@ async function xr(e, t) {
|
|
|
2250
2250
|
Jt(o.currentAppRecord, s.componentTreeData, t);
|
|
2251
2251
|
}), a.on.inspectComponent((s) => {
|
|
2252
2252
|
const o = s.componentInstance;
|
|
2253
|
-
o.vnode.el.__INTLIFY__ && s.instanceData && (t.mode === "legacy" ? o.vnode.el.__INTLIFY__ !== t.global.__composer &&
|
|
2253
|
+
o.vnode.el.__INTLIFY__ && s.instanceData && (t.mode === "legacy" ? o.vnode.el.__INTLIFY__ !== t.global.__composer && $t(s.instanceData, o.vnode.el.__INTLIFY__) : $t(s.instanceData, o.vnode.el.__INTLIFY__));
|
|
2254
2254
|
}), a.addInspector({
|
|
2255
2255
|
id: "vue-i18n-resource-inspector",
|
|
2256
2256
|
label: Ge[
|
|
@@ -2258,7 +2258,7 @@ async function xr(e, t) {
|
|
|
2258
2258
|
/* CUSTOM_INSPECTOR */
|
|
2259
2259
|
],
|
|
2260
2260
|
icon: "language",
|
|
2261
|
-
treeFilterPlaceholder:
|
|
2261
|
+
treeFilterPlaceholder: pr[
|
|
2262
2262
|
"vue-i18n-resource-inspector"
|
|
2263
2263
|
/* CUSTOM_INSPECTOR */
|
|
2264
2264
|
]
|
|
@@ -2272,7 +2272,7 @@ async function xr(e, t) {
|
|
|
2272
2272
|
"vue-i18n-timeline"
|
|
2273
2273
|
/* TIMELINE */
|
|
2274
2274
|
],
|
|
2275
|
-
color:
|
|
2275
|
+
color: gr[
|
|
2276
2276
|
"vue-i18n-timeline"
|
|
2277
2277
|
/* TIMELINE */
|
|
2278
2278
|
]
|
|
@@ -2298,7 +2298,7 @@ function Jt(e, t, n) {
|
|
|
2298
2298
|
Jt(e, a.children, n);
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function $t(e, t) {
|
|
2302
2302
|
const n = "vue-i18n: composer properties";
|
|
2303
2303
|
e.state.push({
|
|
2304
2304
|
type: n,
|
|
@@ -2341,10 +2341,10 @@ function it(e) {
|
|
|
2341
2341
|
const t = {};
|
|
2342
2342
|
return Object.keys(e).forEach((n) => {
|
|
2343
2343
|
const r = e[n];
|
|
2344
|
-
|
|
2344
|
+
R(r) && "source" in r ? t[n] = Hr(r) : j(r) ? t[n] = it(r) : t[n] = r;
|
|
2345
2345
|
}), t;
|
|
2346
2346
|
}
|
|
2347
|
-
const
|
|
2347
|
+
const Wr = {
|
|
2348
2348
|
"<": "<",
|
|
2349
2349
|
">": ">",
|
|
2350
2350
|
'"': """,
|
|
@@ -2354,7 +2354,7 @@ function jr(e) {
|
|
|
2354
2354
|
return e.replace(/[<>"&]/g, Ur);
|
|
2355
2355
|
}
|
|
2356
2356
|
function Ur(e) {
|
|
2357
|
-
return
|
|
2357
|
+
return Wr[e] || e;
|
|
2358
2358
|
}
|
|
2359
2359
|
function Hr(e) {
|
|
2360
2360
|
return {
|
|
@@ -2383,16 +2383,16 @@ function Gr(e, t) {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
function Yr(e, t) {
|
|
2385
2385
|
if (e.nodeId === "global")
|
|
2386
|
-
e.state =
|
|
2386
|
+
e.state = At(t.mode === "composition" ? t.global : t.global.__composer);
|
|
2387
2387
|
else {
|
|
2388
2388
|
const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e.nodeId);
|
|
2389
2389
|
if (n) {
|
|
2390
2390
|
const r = t.mode === "composition" ? n : n.__composer;
|
|
2391
|
-
e.state =
|
|
2391
|
+
e.state = At(r);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function At(e) {
|
|
2396
2396
|
const t = {}, n = "Locale related info", r = [
|
|
2397
2397
|
{
|
|
2398
2398
|
type: n,
|
|
@@ -2438,15 +2438,15 @@ function Vt(e) {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
];
|
|
2440
2440
|
t[o] = c;
|
|
2441
|
-
const
|
|
2441
|
+
const p = "Datetime formats info", g = [
|
|
2442
2442
|
{
|
|
2443
|
-
type:
|
|
2443
|
+
type: p,
|
|
2444
2444
|
key: "numberFormats",
|
|
2445
2445
|
editable: !1,
|
|
2446
2446
|
value: e.numberFormats.value
|
|
2447
2447
|
}
|
|
2448
2448
|
];
|
|
2449
|
-
return t[
|
|
2449
|
+
return t[p] = g, t;
|
|
2450
2450
|
}
|
|
2451
2451
|
function rt(e, t) {
|
|
2452
2452
|
if (nt) {
|
|
@@ -2472,18 +2472,18 @@ function Kr(e = {}) {
|
|
|
2472
2472
|
},
|
|
2473
2473
|
// install plugin
|
|
2474
2474
|
async install(o, ...c) {
|
|
2475
|
-
if (process.env.NODE_ENV !== "production" && (o.__VUE_I18N__ = s), o.__VUE_I18N_SYMBOL__ = a, o.provide(o.__VUE_I18N_SYMBOL__, s), t && Zr(o, s.global),
|
|
2476
|
-
if (!await
|
|
2475
|
+
if (process.env.NODE_ENV !== "production" && (o.__VUE_I18N__ = s), o.__VUE_I18N_SYMBOL__ = a, o.provide(o.__VUE_I18N_SYMBOL__, s), t && Zr(o, s.global), Rr(o, s, ...c), process.env.NODE_ENV !== "production") {
|
|
2476
|
+
if (!await Vr(o, s))
|
|
2477
2477
|
throw G(
|
|
2478
2478
|
21
|
|
2479
2479
|
/* CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN */
|
|
2480
2480
|
);
|
|
2481
|
-
const
|
|
2481
|
+
const g = Gt();
|
|
2482
2482
|
{
|
|
2483
2483
|
const h = r;
|
|
2484
|
-
h[be] && h[be](
|
|
2484
|
+
h[be] && h[be](g);
|
|
2485
2485
|
}
|
|
2486
|
-
|
|
2486
|
+
g.on("*", rt);
|
|
2487
2487
|
}
|
|
2488
2488
|
},
|
|
2489
2489
|
// global accessor
|
|
@@ -2508,7 +2508,7 @@ function Kr(e = {}) {
|
|
|
2508
2508
|
return s;
|
|
2509
2509
|
}
|
|
2510
2510
|
function ut(e = {}) {
|
|
2511
|
-
const t =
|
|
2511
|
+
const t = Rt();
|
|
2512
2512
|
if (t == null)
|
|
2513
2513
|
throw G(
|
|
2514
2514
|
16
|
|
@@ -2532,18 +2532,18 @@ function ut(e = {}) {
|
|
|
2532
2532
|
messages: c,
|
|
2533
2533
|
__i18n: t.type.__i18nGlobal
|
|
2534
2534
|
}));
|
|
2535
|
-
const
|
|
2536
|
-
if (
|
|
2537
|
-
r.mergeLocaleMessage(
|
|
2535
|
+
const p = Object.keys(c);
|
|
2536
|
+
if (p.length && p.forEach((g) => {
|
|
2537
|
+
r.mergeLocaleMessage(g, c[g]);
|
|
2538
2538
|
}), j(e.datetimeFormats)) {
|
|
2539
|
-
const
|
|
2540
|
-
|
|
2539
|
+
const g = Object.keys(e.datetimeFormats);
|
|
2540
|
+
g.length && g.forEach((h) => {
|
|
2541
2541
|
r.mergeDateTimeFormat(h, e.datetimeFormats[h]);
|
|
2542
2542
|
});
|
|
2543
2543
|
}
|
|
2544
2544
|
if (j(e.numberFormats)) {
|
|
2545
|
-
const
|
|
2546
|
-
|
|
2545
|
+
const g = Object.keys(e.numberFormats);
|
|
2546
|
+
g.length && g.forEach((h) => {
|
|
2547
2547
|
r.mergeNumberFormat(h, e.numberFormats[h]);
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
@@ -2564,10 +2564,10 @@ function ut(e = {}) {
|
|
|
2564
2564
|
const s = n;
|
|
2565
2565
|
let o = s.__getInstance(t);
|
|
2566
2566
|
if (o == null) {
|
|
2567
|
-
const c = t.type,
|
|
2567
|
+
const c = t.type, p = {
|
|
2568
2568
|
...e
|
|
2569
2569
|
};
|
|
2570
|
-
c.__i18n && (
|
|
2570
|
+
c.__i18n && (p.__i18n = c.__i18n), r && (p.__root = r), o = qt(p), Br(s, t, o), s.__setInstance(t, o);
|
|
2571
2571
|
}
|
|
2572
2572
|
return o;
|
|
2573
2573
|
}
|
|
@@ -2645,8 +2645,8 @@ function Zr(e, t) {
|
|
|
2645
2645
|
});
|
|
2646
2646
|
}
|
|
2647
2647
|
Xn(lr);
|
|
2648
|
-
|
|
2649
|
-
process.env.NODE_ENV !== "production" &&
|
|
2648
|
+
Nr();
|
|
2649
|
+
process.env.NODE_ENV !== "production" && Lr();
|
|
2650
2650
|
const Xr = {
|
|
2651
2651
|
global: {
|
|
2652
2652
|
locales: "zh-cn"
|
|
@@ -2666,6 +2666,32 @@ const Xr = {
|
|
|
2666
2666
|
confirmPwdError: "两次输入密码不一致",
|
|
2667
2667
|
pwdChangeSuccess: "密码修改成功",
|
|
2668
2668
|
pwdChangeError: "密码修改失败"
|
|
2669
|
+
},
|
|
2670
|
+
dataTable: {
|
|
2671
|
+
operation: "操作",
|
|
2672
|
+
reset: "重置",
|
|
2673
|
+
query: "查询",
|
|
2674
|
+
add: "新增",
|
|
2675
|
+
confirm: "确认",
|
|
2676
|
+
confirmDelete: "确认删除该条数据吗?",
|
|
2677
|
+
confirmDeleteTitle: "删除确认",
|
|
2678
|
+
cancel: "取消",
|
|
2679
|
+
pleaseFillInCompleteInfo: "请填写完整信息",
|
|
2680
|
+
noData: "暂无数据",
|
|
2681
|
+
dataFetchFailed: "数据获取失败",
|
|
2682
|
+
deleteSuccess: "删除成功",
|
|
2683
|
+
deleteError: "删除失败",
|
|
2684
|
+
addSuccess: "新增成功",
|
|
2685
|
+
addError: "新增失败",
|
|
2686
|
+
editSuccess: "编辑成功",
|
|
2687
|
+
editError: "编辑失败",
|
|
2688
|
+
addData: "新增数据",
|
|
2689
|
+
editData: "编辑数据"
|
|
2690
|
+
},
|
|
2691
|
+
excelExport: {
|
|
2692
|
+
exportSuccess: "导出成功",
|
|
2693
|
+
exportError: "导出失败",
|
|
2694
|
+
exportExcel: "导出Excel"
|
|
2669
2695
|
}
|
|
2670
2696
|
}, zr = {
|
|
2671
2697
|
global: {
|
|
@@ -2686,6 +2712,32 @@ const Xr = {
|
|
|
2686
2712
|
confirmPwdError: "Passwords do not match",
|
|
2687
2713
|
pwdChangeSuccess: "Password changed successfully",
|
|
2688
2714
|
pwdChangeError: "Password change failed"
|
|
2715
|
+
},
|
|
2716
|
+
dataTable: {
|
|
2717
|
+
operation: "Operation",
|
|
2718
|
+
reset: "Reset",
|
|
2719
|
+
query: "Query",
|
|
2720
|
+
add: "Add",
|
|
2721
|
+
confirm: "Confirm",
|
|
2722
|
+
confirmDelete: "Are you sure you want to delete this item?",
|
|
2723
|
+
confirmDeleteTitle: "Delete Confirmation",
|
|
2724
|
+
cancel: "Cancel",
|
|
2725
|
+
pleaseFillInCompleteInfo: "Please fill in complete information",
|
|
2726
|
+
noData: "No data available",
|
|
2727
|
+
dataFetchFailed: "Data fetch failed",
|
|
2728
|
+
deleteSuccess: "Delete successful",
|
|
2729
|
+
deleteError: "Delete failed",
|
|
2730
|
+
addSuccess: "Add successful",
|
|
2731
|
+
addError: "Add failed",
|
|
2732
|
+
editSuccess: "Edit successful",
|
|
2733
|
+
editError: "Edit failed",
|
|
2734
|
+
addData: "Add Data",
|
|
2735
|
+
editData: "Edit Data"
|
|
2736
|
+
},
|
|
2737
|
+
excelExport: {
|
|
2738
|
+
exportSuccess: "Export successful",
|
|
2739
|
+
exportError: "Export failed",
|
|
2740
|
+
exportExcel: "Export Excel"
|
|
2689
2741
|
}
|
|
2690
2742
|
}, ea = "zh-cn", ta = {
|
|
2691
2743
|
"zh-cn": Xr,
|
|
@@ -2735,8 +2787,11 @@ function la() {
|
|
|
2735
2787
|
};
|
|
2736
2788
|
}
|
|
2737
2789
|
const sa = /* @__PURE__ */ Object.assign({
|
|
2738
|
-
"./pd-ui/pd-
|
|
2739
|
-
"./pd-ui/pd-
|
|
2790
|
+
"./pd-ui/pd-DataTable/pd-DataTable.vue": () => import("./pd-DataTable-eOeiuzlu.js"),
|
|
2791
|
+
"./pd-ui/pd-EchartsContainer/pd-EchartsContainer.vue": () => import("./pd-EchartsContainer-4DObMw2_.js"),
|
|
2792
|
+
"./pd-ui/pd-ExcelExport/pd-ExcelExport.vue": () => import("./pd-ExcelExport-DICqCJ1x.js"),
|
|
2793
|
+
"./pd-ui/pd-PwdChangeForm/pd-PwdChangeForm.vue": () => import("./pd-PwdChangeForm-rZdb110w.js"),
|
|
2794
|
+
"./pd-ui/pd-Test/pd-Test.vue": () => import("./pd-Test-DeIzXQ7F.js")
|
|
2740
2795
|
}), ca = {
|
|
2741
2796
|
install(e, t = {}) {
|
|
2742
2797
|
let n = t.i18n;
|