pd-ui-package 1.1.1 → 1.2.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/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/index-C75vsX-L.js +3354 -0
- package/package.json +1 -1
- package/pd-DataTable-BPeStR50.js +4679 -0
- package/pd-PwdChangeForm-XJDZs_fO.js +169 -0
- package/pd-Test-DeIzXQ7F.js +32 -0
- package/pd-ui-package.css +1 -1
- package/pd-ui-package.js +235 -192
- package/pd-ui-package.umd.cjs +18 -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 Vt, isRef as zt, h as ie, Fragment as Wt, inject as en, onMounted as tn, onUnmounted as nn, createVNode as gt, Text as pt, 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"), R = (e) => typeof e == "number" && isFinite(e), cn = (e) => at(e) === "[object Date]", Le = (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 W = Array.isArray, V = (e) => typeof e == "function", O = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", j = (e) => (
|
|
24
24
|
// eslint-disable-line
|
|
25
25
|
e !== null && typeof e == "object"
|
|
26
|
-
),
|
|
26
|
+
), xt = Object.prototype.toString, at = (e) => xt.call(e), F = (e) => at(e) === "[object Object]", fn = (e) => e == null ? "" : W(e) || F(e) && e.toString === xt ? 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;
|
|
@@ -344,27 +344,27 @@ 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
346
|
function En(e) {
|
|
347
|
-
const t =
|
|
348
|
-
return e.named && (
|
|
347
|
+
const t = R(e.pluralIndex) ? e.pluralIndex : -1;
|
|
348
|
+
return e.named && (R(e.named.count) || R(e.named.n)) ? R(e.named.count) ? e.named.count : R(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 = En(e), r = j(e.pluralRules) &&
|
|
355
|
-
|
|
353
|
+
function On(e = {}) {
|
|
354
|
+
const t = e.locale, n = En(e), r = j(e.pluralRules) && O(t) && V(e.pluralRules[t]) ? e.pluralRules[t] : yt, a = j(e.pluralRules) && O(t) && V(e.pluralRules[t]) ? yt : void 0, s = (L) => L[r(n, L.length, a)], o = e.list || [], c = (L) => o[L], g = e.named || {};
|
|
355
|
+
R(e.pluralIndex) && Tn(n, g);
|
|
356
356
|
const p = (L) => g[L];
|
|
357
357
|
function h(L) {
|
|
358
|
-
const u =
|
|
358
|
+
const u = V(e.messages) ? e.messages(L) : j(e.messages) ? e.messages[L] : !1;
|
|
359
359
|
return u || (e.parent ? e.parent.message(L) : kn);
|
|
360
360
|
}
|
|
361
|
-
const w = (L) => e.modifiers ? e.modifiers[L] : yn, k = F(e.processor) &&
|
|
361
|
+
const w = (L) => e.modifiers ? e.modifiers[L] : yn, k = F(e.processor) && V(e.processor.normalize) ? e.processor.normalize : Nn, C = F(e.processor) && V(e.processor.interpolate) ? e.processor.interpolate : Ln, N = F(e.processor) && O(e.processor.type) ? e.processor.type : wn, I = {
|
|
362
362
|
list: c,
|
|
363
363
|
named: p,
|
|
364
364
|
plural: s,
|
|
365
365
|
linked: (L, u) => {
|
|
366
366
|
const _ = h(L)(I);
|
|
367
|
-
return
|
|
367
|
+
return O(u) ? w(u)(_) : _;
|
|
368
368
|
},
|
|
369
369
|
message: h,
|
|
370
370
|
type: N,
|
|
@@ -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", x = `
|
|
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] === x, c = (S) => t[S] === x, g = (S) => t[S] === Dn, p = (S) => t[S] === Cn, h = (S) => o(S) || c(S) || g(S) || p(S), w = () => n, k = () => r, C = () => a, N = () => s, I = (S) => o(S) || g(S) || p(S) ? x : t[S], L = () => 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
|
}
|
|
@@ -422,7 +422,7 @@ function Mn(e) {
|
|
|
422
422
|
function E(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
|
_();
|
|
@@ -440,11 +440,11 @@ function Mn(e) {
|
|
|
440
440
|
peek: v,
|
|
441
441
|
reset: f,
|
|
442
442
|
resetPeek: E,
|
|
443
|
-
skipToPeek:
|
|
443
|
+
skipToPeek: T
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
const Q = void 0, kt = "'", $n = "tokenizer";
|
|
447
|
-
function
|
|
447
|
+
function An(e, t = {}) {
|
|
448
448
|
const n = t.location !== !1, r = Mn(e), a = () => r.index(), s = () => Pn(r.line(), r.column(), r.index()), o = s(), c = a(), g = {
|
|
449
449
|
currentType: 14,
|
|
450
450
|
offset: c,
|
|
@@ -483,7 +483,7 @@ function Rn(e, t = {}) {
|
|
|
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() === x; )
|
|
487
487
|
i += l.currentPeek(), l.peek();
|
|
488
488
|
return i;
|
|
489
489
|
}
|
|
@@ -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 A(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 === x ? (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 === x) : m === B ? (l.peek(), d(!0, B, H)) : m === x ? (l.peek(), d(!0, x, H)) : !0;
|
|
574
574
|
}, b = d();
|
|
575
575
|
return i && l.resetPeek(), b;
|
|
576
576
|
}
|
|
@@ -607,21 +607,21 @@ function Rn(e, t = {}) {
|
|
|
607
607
|
d += i;
|
|
608
608
|
return d;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Ae(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 === x ? 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
|
|
617
|
+
function Re(l) {
|
|
618
618
|
L(l);
|
|
619
619
|
let i = "", d = "";
|
|
620
620
|
for (; i = he(l); )
|
|
621
621
|
d += i;
|
|
622
622
|
return l.currentChar() === Q && w(6, s(), 0), d;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Ve(l) {
|
|
625
625
|
L(l);
|
|
626
626
|
let i = "";
|
|
627
627
|
return l.currentChar() === "-" ? (l.next(), i += `-${ve(l)}`) : i += ve(l), l.currentChar() === Q && w(6, s(), 0), i;
|
|
@@ -629,13 +629,13 @@ function Rn(e, t = {}) {
|
|
|
629
629
|
function ft(l) {
|
|
630
630
|
L(l), N(l, "'");
|
|
631
631
|
let i = "", d = "";
|
|
632
|
-
const b = (D) => D !== kt && D !==
|
|
632
|
+
const b = (D) => D !== kt && D !== x;
|
|
633
633
|
for (; i = X(l, b); )
|
|
634
|
-
i === "\\" ? d +=
|
|
634
|
+
i === "\\" ? d += We(l) : d += i;
|
|
635
635
|
const P = l.currentChar();
|
|
636
|
-
return P ===
|
|
636
|
+
return P === x || P === Q ? (w(2, s(), 0), P === x && (l.next(), N(l, "'")), d) : (N(l, "'"), d);
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function We(l) {
|
|
639
639
|
const i = l.currentChar();
|
|
640
640
|
switch (i) {
|
|
641
641
|
case "\\":
|
|
@@ -662,10 +662,10 @@ function Rn(e, t = {}) {
|
|
|
662
662
|
}
|
|
663
663
|
return `\\${i}${b}`;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function xe(l) {
|
|
666
666
|
L(l);
|
|
667
667
|
let i = "", d = "";
|
|
668
|
-
const b = (P) => P !== "{" && P !== "}" && P !== B && P !==
|
|
668
|
+
const b = (P) => P !== "{" && P !== "}" && P !== B && P !== x;
|
|
669
669
|
for (; i = X(l, b); )
|
|
670
670
|
d += i;
|
|
671
671
|
return d;
|
|
@@ -679,7 +679,7 @@ 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 === x ? (b += P, l.next(), i(d, b)) : (b += P, l.next(), i(!0, b));
|
|
683
683
|
};
|
|
684
684
|
return i(!1, "");
|
|
685
685
|
}
|
|
@@ -718,13 +718,13 @@ function Rn(e, t = {}) {
|
|
|
718
718
|
if (i.braceNest > 0 && (i.currentType === 5 || i.currentType === 6 || i.currentType === 7))
|
|
719
719
|
return w(6, s(), 0), i.braceNest = 0, pe(l, i);
|
|
720
720
|
if (P = v(l, i))
|
|
721
|
-
return d = k(i, 5,
|
|
721
|
+
return d = k(i, 5, Re(l)), L(l), d;
|
|
722
722
|
if (D = f(l, i))
|
|
723
|
-
return d = k(i, 6,
|
|
723
|
+
return d = k(i, 6, Ve(l)), L(l), d;
|
|
724
724
|
if (H = E(l, i))
|
|
725
725
|
return d = k(i, 7, ft(l)), L(l), d;
|
|
726
726
|
if (!P && !D && !H)
|
|
727
|
-
return d = k(i, 13,
|
|
727
|
+
return d = k(i, 13, xe(l)), w(1, s(), 0, d.value), L(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 === x || P === B) && w(9, s(), 0), P) {
|
|
737
737
|
case "@":
|
|
738
738
|
return l.next(), b = k(
|
|
739
739
|
i,
|
|
@@ -756,7 +756,7 @@ function Rn(e, t = {}) {
|
|
|
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) || A(l, i) ? (L(l), z(l, i)) : S(l, i) ? (L(l), k(i, 12, je(l))) : M(l, i) ? (L(l), P === "{" ? ge(l, i) || b : k(i, 11, Ue(l))) : (d === 8 && w(9, s(), 0), i.braceNest = 0, i.inLinked = !1, pe(l, i));
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
function pe(l, i) {
|
|
@@ -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, Ae(l));
|
|
789
789
|
if (b === "%")
|
|
790
790
|
return l.next(), k(
|
|
791
791
|
i,
|
|
@@ -812,8 +812,8 @@ function Rn(e, t = {}) {
|
|
|
812
812
|
context: p
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const
|
|
816
|
-
function
|
|
815
|
+
const Rn = "parser", Vn = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
816
|
+
function Wn(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 xn(e = {}) {
|
|
829
829
|
const t = e.location !== !1, { onError: n } = e;
|
|
830
830
|
function r(u, _, v, f, ...E) {
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
833
|
-
const S = qe(v,
|
|
834
|
-
domain:
|
|
831
|
+
const T = u.currentPosition();
|
|
832
|
+
if (T.offset += f, T.column += f, n) {
|
|
833
|
+
const S = qe(v, T), A = Fe(_, S, {
|
|
834
|
+
domain: Rn,
|
|
835
835
|
args: E
|
|
836
836
|
});
|
|
837
|
-
n(
|
|
837
|
+
n(A);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
function a(u, _, v) {
|
|
@@ -853,24 +853,24 @@ 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: E } = v,
|
|
857
|
-
return
|
|
856
|
+
const v = u.context(), { lastOffset: f, lastStartLoc: E } = v, T = a(5, f, E);
|
|
857
|
+
return T.index = parseInt(_, 10), u.nextToken(), s(T, u.currentOffset(), u.currentPosition()), T;
|
|
858
858
|
}
|
|
859
859
|
function g(u, _) {
|
|
860
|
-
const v = u.context(), { lastOffset: f, lastStartLoc: E } = v,
|
|
861
|
-
return
|
|
860
|
+
const v = u.context(), { lastOffset: f, lastStartLoc: E } = v, T = a(4, f, E);
|
|
861
|
+
return T.key = _, u.nextToken(), s(T, u.currentOffset(), u.currentPosition()), T;
|
|
862
862
|
}
|
|
863
863
|
function p(u, _) {
|
|
864
|
-
const v = u.context(), { lastOffset: f, lastStartLoc: E } = v,
|
|
865
|
-
return
|
|
864
|
+
const v = u.context(), { lastOffset: f, lastStartLoc: E } = v, T = a(9, f, E);
|
|
865
|
+
return T.value = _.replace(Vn, Wn), 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: E } = v,
|
|
869
|
-
return _.type !== 12 ? (r(u, 11, v.lastStartLoc, 0),
|
|
868
|
+
const _ = u.nextToken(), v = u.context(), { lastOffset: f, lastStartLoc: E } = v, T = a(8, f, E);
|
|
869
|
+
return _.type !== 12 ? (r(u, 11, v.lastStartLoc, 0), T.value = "", s(T, f, E), {
|
|
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
876
|
function w(u, _) {
|
|
@@ -899,8 +899,8 @@ function An(e = {}) {
|
|
|
899
899
|
break;
|
|
900
900
|
default:
|
|
901
901
|
r(u, 12, _.lastStartLoc, 0);
|
|
902
|
-
const E = u.context(),
|
|
903
|
-
return
|
|
902
|
+
const E = u.context(), T = a(7, E.offset, E.startLoc);
|
|
903
|
+
return T.value = "", s(T, E.offset, E.startLoc), v.key = T, s(v, E.offset, E.startLoc), {
|
|
904
904
|
nextConsumeToken: f,
|
|
905
905
|
node: v
|
|
906
906
|
};
|
|
@@ -912,10 +912,10 @@ function An(e = {}) {
|
|
|
912
912
|
function C(u) {
|
|
913
913
|
const _ = u.context(), v = _.currentType === 1 ? u.currentOffset() : _.offset, f = _.currentType === 1 ? _.endLoc : _.startLoc, E = a(2, v, f);
|
|
914
914
|
E.items = [];
|
|
915
|
-
let
|
|
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
920
|
M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), E.items.push(o(u, M.value || ""));
|
|
921
921
|
break;
|
|
@@ -930,30 +930,30 @@ function An(e = {}) {
|
|
|
930
930
|
break;
|
|
931
931
|
case 8:
|
|
932
932
|
const q = k(u);
|
|
933
|
-
E.items.push(q.node),
|
|
933
|
+
E.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(E, S,
|
|
937
|
+
const S = _.currentType === 1 ? _.lastOffset : u.currentOffset(), A = _.currentType === 1 ? _.lastEndLoc : u.currentPosition();
|
|
938
|
+
return s(E, S, A), E;
|
|
939
939
|
}
|
|
940
940
|
function N(u, _, v, f) {
|
|
941
941
|
const E = u.context();
|
|
942
|
-
let
|
|
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
|
-
|
|
946
|
+
const A = C(u);
|
|
947
|
+
T || (T = A.items.length === 0), S.cases.push(A);
|
|
948
948
|
} while (E.currentType !== 14);
|
|
949
|
-
return
|
|
949
|
+
return T && r(u, 10, v, 0), s(S, u.currentOffset(), u.currentPosition()), S;
|
|
950
950
|
}
|
|
951
951
|
function I(u) {
|
|
952
952
|
const _ = u.context(), { offset: v, startLoc: f } = _, E = C(u);
|
|
953
953
|
return _.currentType === 14 ? E : N(u, v, f, E);
|
|
954
954
|
}
|
|
955
955
|
function L(u) {
|
|
956
|
-
const _ =
|
|
956
|
+
const _ = An(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
959
|
return { parse: L };
|
|
@@ -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, {
|
|
@@ -1165,7 +1165,7 @@ const Bn = (e, t = {}) => {
|
|
|
1165
1165
|
};
|
|
1166
1166
|
};
|
|
1167
1167
|
function Jn(e, t = {}) {
|
|
1168
|
-
const r =
|
|
1168
|
+
const r = xn({ ...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 = W(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 || {}, g = V(e.missing) ? e.missing : null, p = $(e.missingWarn) || Le(e.missingWarn) ? e.missingWarn : !0, h = $(e.fallbackWarn) || Le(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, k = !!e.unresolving, C = V(e.postTranslation) ? e.postTranslation : null, N = F(e.processor) ? e.processor : null, I = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, u = V(e.messageCompiler) ? e.messageCompiler : jt, _ = V(e.onWarn) ? e.onWarn : ae, v = e, f = j(v.__datetimeFormatters) ? v.__datetimeFormatters : /* @__PURE__ */ new Map(), E = j(v.__numberFormatters) ? v.__numberFormatters : /* @__PURE__ */ new Map(), T = {
|
|
1197
1197
|
locale: t,
|
|
1198
1198
|
fallbackLocale: n,
|
|
1199
1199
|
messages: r,
|
|
@@ -1215,7 +1215,7 @@ function zn(e = {}) {
|
|
|
1215
1215
|
__datetimeFormatters: f,
|
|
1216
1216
|
__numberFormatters: E
|
|
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,10 +1247,10 @@ function De(e, t, n) {
|
|
|
1247
1247
|
if (!a) {
|
|
1248
1248
|
a = [];
|
|
1249
1249
|
let s = [n];
|
|
1250
|
-
for (;
|
|
1250
|
+
for (; W(s); )
|
|
1251
1251
|
s = Nt(a, s, t);
|
|
1252
|
-
const o =
|
|
1253
|
-
s =
|
|
1252
|
+
const o = W(t) ? t : F(t) ? t.default ? t.default : null : t;
|
|
1253
|
+
s = O(o) ? [o] : o, W(s) && Nt(a, s, !1), r.__localeChainCache.set(n, a);
|
|
1254
1254
|
}
|
|
1255
1255
|
return a;
|
|
1256
1256
|
}
|
|
@@ -1258,7 +1258,7 @@ function Nt(e, t, n) {
|
|
|
1258
1258
|
let r = !0;
|
|
1259
1259
|
for (let a = 0; a < t.length && $(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), (W(n) || F(n)) && n[a] && (r = n[a]);
|
|
1280
1280
|
}
|
|
1281
1281
|
return r;
|
|
1282
1282
|
}
|
|
@@ -1312,14 +1312,14 @@ 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
|
-
}, Et = () => "",
|
|
1316
|
-
function
|
|
1317
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, fallbackLocale: s } = e, [o, c] = Be(...t), g = $(c.missingWarn) ? c.missingWarn : e.missingWarn, p = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, w =
|
|
1315
|
+
}, Et = () => "", Oe = (e) => V(e);
|
|
1316
|
+
function Tt(e, ...t) {
|
|
1317
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, fallbackLocale: s } = e, [o, c] = Be(...t), g = $(c.missingWarn) ? c.missingWarn : e.missingWarn, p = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, w = O(c.default) || $(c.default) ? $(c.default) ? o : c.default : n ? o : "", k = n || w !== "", C = O(c.locale) ? c.locale : e.locale;
|
|
1318
1318
|
h && ir(c);
|
|
1319
1319
|
let [N, I, L] = ur(e, o, C, s, p, g), u = o;
|
|
1320
|
-
if (
|
|
1320
|
+
if (O(N) || Oe(N) || k && (N = w, u = N), !(O(N) || Oe(N)) || !O(I))
|
|
1321
1321
|
return a ? Ce : o;
|
|
1322
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1322
|
+
if (process.env.NODE_ENV !== "production" && O(N) && 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
1325
|
const f = Ut(e, o, I, N, u, () => {
|
|
@@ -1327,12 +1327,12 @@ function Ot(e, ...t) {
|
|
|
1327
1327
|
});
|
|
1328
1328
|
if (_)
|
|
1329
1329
|
return N;
|
|
1330
|
-
const E = dr(e, I, L, c),
|
|
1330
|
+
const E = dr(e, I, L, c), T = On(E), S = fr(e, f, T);
|
|
1331
1331
|
return r ? r(S) : S;
|
|
1332
1332
|
}
|
|
1333
1333
|
function ir(e) {
|
|
1334
|
-
|
|
1335
|
-
|
|
1334
|
+
W(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) {
|
|
@@ -1365,7 +1365,7 @@ function ur(e, t, n, r, a, s) {
|
|
|
1365
1365
|
groupId: `${N}:${t}`
|
|
1366
1366
|
}), u && _ && U && ne && (U(_), ne("intlify message resolve", u, _));
|
|
1367
1367
|
}
|
|
1368
|
-
if (
|
|
1368
|
+
if (O(w) || V(w))
|
|
1369
1369
|
break;
|
|
1370
1370
|
const v = lt(e, t, h, s, N);
|
|
1371
1371
|
v !== t && (w = v), k = C;
|
|
@@ -1374,7 +1374,7 @@ function ur(e, t, n, r, a, s) {
|
|
|
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
|
}
|
|
@@ -1409,13 +1409,13 @@ 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) && !R(t))
|
|
1413
1413
|
throw ce(
|
|
1414
1414
|
14
|
|
1415
1415
|
/* INVALID_ARGUMENT */
|
|
1416
1416
|
);
|
|
1417
|
-
const s =
|
|
1418
|
-
return
|
|
1417
|
+
const s = R(t) ? String(t) : t;
|
|
1418
|
+
return R(n) ? a.plural = n : O(n) ? a.default = n : F(n) && !Pe(n) ? a.named = n : W(n) && (a.list = n), R(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 {
|
|
@@ -1444,20 +1444,20 @@ function dr(e, t, n, r) {
|
|
|
1444
1444
|
pluralRules: s,
|
|
1445
1445
|
messages: (g) => {
|
|
1446
1446
|
const p = Ee(n, g);
|
|
1447
|
-
if (
|
|
1447
|
+
if (O(p)) {
|
|
1448
1448
|
let h = !1;
|
|
1449
1449
|
const k = Ut(e, g, t, p, g, () => {
|
|
1450
1450
|
h = !0;
|
|
1451
1451
|
});
|
|
1452
1452
|
return h ? Et : k;
|
|
1453
|
-
} else return
|
|
1453
|
+
} else return Oe(p) ? p : Et;
|
|
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), R(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,14 +1465,14 @@ function St(e, ...t) {
|
|
|
1465
1465
|
return s(fe(
|
|
1466
1466
|
4
|
|
1467
1467
|
/* CANNOT_FORMAT_DATE */
|
|
1468
|
-
)),
|
|
1469
|
-
const [c, g, p, h] = Je(...t), w = $(p.missingWarn) ? p.missingWarn : e.missingWarn, k = $(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, C = !!p.part, N =
|
|
1470
|
-
if (!
|
|
1468
|
+
)), Te;
|
|
1469
|
+
const [c, g, p, h] = Je(...t), w = $(p.missingWarn) ? p.missingWarn : e.missingWarn, k = $(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, C = !!p.part, N = O(p.locale) ? p.locale : e.locale, I = De(e, a, N);
|
|
1470
|
+
if (!O(c) || c === "")
|
|
1471
1471
|
return new Intl.DateTimeFormat(N).format(g);
|
|
1472
1472
|
let L = {}, u, _ = null, v = N, f = null;
|
|
1473
1473
|
const E = "datetime format";
|
|
1474
|
-
for (let
|
|
1475
|
-
if (u = f = I[
|
|
1474
|
+
for (let A = 0; A < I.length; A++) {
|
|
1475
|
+
if (u = f = I[A], process.env.NODE_ENV !== "production" && N !== u && ot(k, c) && s(fe(5, {
|
|
1476
1476
|
key: c,
|
|
1477
1477
|
target: u
|
|
1478
1478
|
})), process.env.NODE_ENV !== "production" && N !== u) {
|
|
@@ -1489,17 +1489,17 @@ function St(e, ...t) {
|
|
|
1489
1489
|
break;
|
|
1490
1490
|
lt(e, c, u, w, E), 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(g) : S.format(g);
|
|
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 (R(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,14 +1543,14 @@ function Pt(e, ...t) {
|
|
|
1543
1543
|
return s(fe(
|
|
1544
1544
|
2
|
|
1545
1545
|
/* CANNOT_FORMAT_NUMBER */
|
|
1546
|
-
)),
|
|
1547
|
-
const [c, g, p, h] = Qe(...t), w = $(p.missingWarn) ? p.missingWarn : e.missingWarn, k = $(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, C = !!p.part, N =
|
|
1548
|
-
if (!
|
|
1546
|
+
)), Te;
|
|
1547
|
+
const [c, g, p, h] = Qe(...t), w = $(p.missingWarn) ? p.missingWarn : e.missingWarn, k = $(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, C = !!p.part, N = O(p.locale) ? p.locale : e.locale, I = De(e, a, N);
|
|
1548
|
+
if (!O(c) || c === "")
|
|
1549
1549
|
return new Intl.NumberFormat(N).format(g);
|
|
1550
1550
|
let L = {}, u, _ = null, v = N, f = null;
|
|
1551
1551
|
const E = "number format";
|
|
1552
|
-
for (let
|
|
1553
|
-
if (u = f = I[
|
|
1552
|
+
for (let A = 0; A < I.length; A++) {
|
|
1553
|
+
if (u = f = I[A], process.env.NODE_ENV !== "production" && N !== u && ot(k, c) && s(fe(3, {
|
|
1554
1554
|
key: c,
|
|
1555
1555
|
target: u
|
|
1556
1556
|
})), process.env.NODE_ENV !== "production" && N !== u) {
|
|
@@ -1567,23 +1567,23 @@ function Pt(e, ...t) {
|
|
|
1567
1567
|
break;
|
|
1568
1568
|
lt(e, c, u, w, E), 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(g) : S.format(g);
|
|
1576
1576
|
}
|
|
1577
1577
|
function Qe(...e) {
|
|
1578
1578
|
const [t, n, r, a] = e;
|
|
1579
1579
|
let s = {}, o = {};
|
|
1580
|
-
if (!
|
|
1580
|
+
if (!R(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;
|
|
@@ -1717,7 +1717,7 @@ function Er() {
|
|
|
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, Vt() || 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 : W(r) ? {} : { [e]: {} };
|
|
1752
|
+
return W(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,7 +1757,7 @@ const Ir = Object.prototype.hasOwnProperty;
|
|
|
1757
1757
|
function Pr(e, t) {
|
|
1758
1758
|
return Ir.call(e, t);
|
|
1759
1759
|
}
|
|
1760
|
-
const Ne = (e) => !j(e) ||
|
|
1760
|
+
const Ne = (e) => !j(e) || W(e);
|
|
1761
1761
|
function Se(e, t) {
|
|
1762
1762
|
if (Ne(e) || Ne(t))
|
|
1763
1763
|
throw G(
|
|
@@ -1772,12 +1772,12 @@ function qt(e = {}) {
|
|
|
1772
1772
|
let r = $(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 :
|
|
1778
|
+
t && r ? t.fallbackLocale.value : O(e.fallbackLocale) || W(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1779
1779
|
), o = oe(Kt(a.value, e)), c = oe(F(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), g = oe(F(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1780
|
-
let p = t ? t.missingWarn : $(e.missingWarn) || Le(e.missingWarn) ? e.missingWarn : !0, h = t ? t.fallbackWarn : $(e.fallbackWarn) || Le(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, C =
|
|
1780
|
+
let p = t ? t.missingWarn : $(e.missingWarn) || Le(e.missingWarn) ? e.missingWarn : !0, h = t ? t.fallbackWarn : $(e.fallbackWarn) || Le(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, C = V(e.missing) ? e.missing : null, N = V(e.missing) ? Dt(e.missing) : null, I = V(e.postTranslation) ? e.postTranslation : null, L = $(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
1783
|
function E() {
|
|
@@ -1803,7 +1803,7 @@ function qt(e = {}) {
|
|
|
1803
1803
|
});
|
|
1804
1804
|
}
|
|
1805
1805
|
f = E(), _e(f, a.value, s.value);
|
|
1806
|
-
const
|
|
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
|
+
}), A = le(() => o.value), M = le(() => c.value), q = le(() => g.value);
|
|
1817
1817
|
function me() {
|
|
1818
|
-
return
|
|
1818
|
+
return V(I) ? I : null;
|
|
1819
1819
|
}
|
|
1820
1820
|
function X(m) {
|
|
1821
1821
|
I = m, f.postTranslation = m;
|
|
@@ -1828,7 +1828,7 @@ function qt(e = {}) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
function J(m, y, Y, ee, Zt, Xt) {
|
|
1830
1830
|
const mt = E(), ke = m(mt);
|
|
1831
|
-
if (
|
|
1831
|
+
if (R(ke) && ke === Ce) {
|
|
1832
1832
|
const we = y();
|
|
1833
1833
|
if (process.env.NODE_ENV !== "production" && t && (w || ae(Me(6, {
|
|
1834
1834
|
key: we,
|
|
@@ -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 Ae(...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 Re(...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 Ve(m) {
|
|
1865
|
+
return m.map((y) => O(y) ? gt(pt, null, y, 0) : y);
|
|
1866
1866
|
}
|
|
1867
|
-
const
|
|
1868
|
-
normalize:
|
|
1867
|
+
const We = {
|
|
1868
|
+
normalize: Ve,
|
|
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 = We, Y = Tt(ee, ...m);
|
|
1879
1879
|
} finally {
|
|
1880
1880
|
ee.processor = null;
|
|
1881
1881
|
}
|
|
@@ -1886,10 +1886,10 @@ function qt(e = {}) {
|
|
|
1886
1886
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1887
1887
|
(y) => y[Xe](...m),
|
|
1888
1888
|
(y) => [gt(pt, null, y, 0)],
|
|
1889
|
-
(y) =>
|
|
1889
|
+
(y) => W(y)
|
|
1890
1890
|
);
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function xe(...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) || W(y)
|
|
1901
1901
|
);
|
|
1902
1902
|
}
|
|
1903
1903
|
function je(...m) {
|
|
@@ -1908,14 +1908,14 @@ 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) || W(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 =
|
|
1918
|
+
const Y = O(y) ? y : a.value, ee = z(Y);
|
|
1919
1919
|
return Ee(ee, m) !== null;
|
|
1920
1920
|
}
|
|
1921
1921
|
function ge(m) {
|
|
@@ -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: A,
|
|
1971
1971
|
datetimeFormats: M,
|
|
1972
1972
|
numberFormats: q,
|
|
1973
1973
|
get modifiers() {
|
|
@@ -2016,8 +2016,8 @@ function qt(e = {}) {
|
|
|
2016
2016
|
u = m, f.escapeParameter = m;
|
|
2017
2017
|
},
|
|
2018
2018
|
t: ve,
|
|
2019
|
-
d:
|
|
2020
|
-
n:
|
|
2019
|
+
d: Ae,
|
|
2020
|
+
n: Re,
|
|
2021
2021
|
te: de,
|
|
2022
2022
|
tm: ge,
|
|
2023
2023
|
getLocaleMessage: z,
|
|
@@ -2034,7 +2034,7 @@ function qt(e = {}) {
|
|
|
2034
2034
|
getMissingHandler: he,
|
|
2035
2035
|
setMissingHandler: $e,
|
|
2036
2036
|
[Xe]: ye,
|
|
2037
|
-
[et]:
|
|
2037
|
+
[et]: xe,
|
|
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) => R(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 =
|
|
2079
|
+
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = O(e.plural) ? +e.plural : e.plural);
|
|
2080
2080
|
const c = Fr(t, s), g = a[Xe](e.keypath, c, o);
|
|
2081
|
-
return
|
|
2081
|
+
return O(e.tag) ? ie(e.tag, { ...r }, g) : j(e.tag) ? ie(e.tag, { ...r }, g) : ie(Wt, { ...r }, g);
|
|
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),
|
|
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, w) => n.includes(w) ? Object.assign({}, h, { [w]: e.format[w] }) : h, {}));
|
|
2097
2097
|
const g = r(e.value, o, c);
|
|
2098
2098
|
let p = [o.key];
|
|
2099
|
-
return
|
|
2099
|
+
return W(g) ? p = g.map((h, w) => {
|
|
2100
2100
|
const k = a[h.type];
|
|
2101
2101
|
return k ? k({ [h.type]: h.value, index: w, parts: g }) : [h.value];
|
|
2102
|
-
}) :
|
|
2102
|
+
}) : O(g) && (p = [g]), O(e.tag) ? ie(e.tag, { ...s }, p) : j(e.tag) ? ie(e.tag, { ...s }, p) : ie(Wt, { ...s }, p);
|
|
2103
2103
|
};
|
|
2104
2104
|
}
|
|
2105
2105
|
const Cr = [
|
|
@@ -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 = Ar(a);
|
|
2207
|
+
n.textContent = o.t(...Rr(c));
|
|
2208
2208
|
};
|
|
2209
2209
|
return {
|
|
2210
2210
|
beforeMount: t,
|
|
2211
2211
|
beforeUpdate: t
|
|
2212
2212
|
};
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2215
|
-
if (
|
|
2214
|
+
function Ar(e) {
|
|
2215
|
+
if (O(e))
|
|
2216
2216
|
return { path: e };
|
|
2217
2217
|
if (F(e)) {
|
|
2218
2218
|
if (!("path" in e))
|
|
@@ -2224,18 +2224,18 @@ function Rr(e) {
|
|
|
2224
2224
|
/* INVALID_VALUE */
|
|
2225
2225
|
);
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Rr(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), R(a) && (o.plural = a), R(s) && (o.plural = s), [t, c, o];
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function Vr(e, t, ...n) {
|
|
2232
2232
|
const r = F(n[0]) ? n[0] : {}, a = !!r.useI18nComponentName, s = $(r.globalInstall) ? r.globalInstall : !0;
|
|
2233
2233
|
process.env.NODE_ENV !== "production" && s && a && ae(Me(11, {
|
|
2234
2234
|
name: Ye.name
|
|
2235
2235
|
})), s && (e.component(a ? "i18n" : Ye.name, Ye), e.component(Mt.name, Mt), e.component($t.name, $t)), e.directive("t", $r(t));
|
|
2236
2236
|
}
|
|
2237
2237
|
let nt;
|
|
2238
|
-
async function
|
|
2238
|
+
async function Wr(e, t) {
|
|
2239
2239
|
return new Promise((n, r) => {
|
|
2240
2240
|
try {
|
|
2241
2241
|
Nr({
|
|
@@ -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 && At(s.instanceData, o.vnode.el.__INTLIFY__) : At(s.instanceData, o.vnode.el.__INTLIFY__));
|
|
2254
2254
|
}), a.addInspector({
|
|
2255
2255
|
id: "vue-i18n-resource-inspector",
|
|
2256
2256
|
label: Ge[
|
|
@@ -2298,7 +2298,7 @@ function Jt(e, t, n) {
|
|
|
2298
2298
|
Jt(e, a.children, n);
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function At(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
|
+
V(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 xr = {
|
|
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 xr[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 = Rt(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 = Rt(r);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function Rt(e) {
|
|
2396
2396
|
const t = {}, n = "Locale related info", r = [
|
|
2397
2397
|
{
|
|
2398
2398
|
type: n,
|
|
@@ -2472,8 +2472,8 @@ 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), Vr(o, s, ...c), process.env.NODE_ENV !== "production") {
|
|
2476
|
+
if (!await Wr(o, s))
|
|
2477
2477
|
throw G(
|
|
2478
2478
|
21
|
|
2479
2479
|
/* CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN */
|
|
@@ -2508,7 +2508,7 @@ function Kr(e = {}) {
|
|
|
2508
2508
|
return s;
|
|
2509
2509
|
}
|
|
2510
2510
|
function ut(e = {}) {
|
|
2511
|
-
const t =
|
|
2511
|
+
const t = Vt();
|
|
2512
2512
|
if (t == null)
|
|
2513
2513
|
throw G(
|
|
2514
2514
|
16
|
|
@@ -2666,6 +2666,27 @@ 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: "编辑数据"
|
|
2669
2690
|
}
|
|
2670
2691
|
}, zr = {
|
|
2671
2692
|
global: {
|
|
@@ -2686,6 +2707,27 @@ const Xr = {
|
|
|
2686
2707
|
confirmPwdError: "Passwords do not match",
|
|
2687
2708
|
pwdChangeSuccess: "Password changed successfully",
|
|
2688
2709
|
pwdChangeError: "Password change failed"
|
|
2710
|
+
},
|
|
2711
|
+
dataTable: {
|
|
2712
|
+
operation: "Operation",
|
|
2713
|
+
reset: "Reset",
|
|
2714
|
+
query: "Query",
|
|
2715
|
+
add: "Add",
|
|
2716
|
+
confirm: "Confirm",
|
|
2717
|
+
confirmDelete: "Are you sure you want to delete this item?",
|
|
2718
|
+
confirmDeleteTitle: "Delete Confirmation",
|
|
2719
|
+
cancel: "Cancel",
|
|
2720
|
+
pleaseFillInCompleteInfo: "Please fill in complete information",
|
|
2721
|
+
noData: "No data available",
|
|
2722
|
+
dataFetchFailed: "Data fetch failed",
|
|
2723
|
+
deleteSuccess: "Delete successful",
|
|
2724
|
+
deleteError: "Delete failed",
|
|
2725
|
+
addSuccess: "Add successful",
|
|
2726
|
+
addError: "Add failed",
|
|
2727
|
+
editSuccess: "Edit successful",
|
|
2728
|
+
editError: "Edit failed",
|
|
2729
|
+
addData: "Add Data",
|
|
2730
|
+
editData: "Edit Data"
|
|
2689
2731
|
}
|
|
2690
2732
|
}, ea = "zh-cn", ta = {
|
|
2691
2733
|
"zh-cn": Xr,
|
|
@@ -2735,8 +2777,9 @@ function la() {
|
|
|
2735
2777
|
};
|
|
2736
2778
|
}
|
|
2737
2779
|
const sa = /* @__PURE__ */ Object.assign({
|
|
2738
|
-
"./pd-ui/pd-
|
|
2739
|
-
"./pd-ui/pd-
|
|
2780
|
+
"./pd-ui/pd-DataTable/pd-DataTable.vue": () => import("./pd-DataTable-BPeStR50.js"),
|
|
2781
|
+
"./pd-ui/pd-PwdChangeForm/pd-PwdChangeForm.vue": () => import("./pd-PwdChangeForm-XJDZs_fO.js"),
|
|
2782
|
+
"./pd-ui/pd-Test/pd-Test.vue": () => import("./pd-Test-DeIzXQ7F.js")
|
|
2740
2783
|
}), ca = {
|
|
2741
2784
|
install(e, t = {}) {
|
|
2742
2785
|
let n = t.i18n;
|