@webitel/ui-sdk 26.8.112 → 26.8.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{caseConverters-6cy_SaV5.js → caseConverters-DGri4uJo.js} +1 -1
- package/dist/{clients-Be8f1qoM.js → clients-CWniSi77.js} +255 -163
- package/dist/{components-GY1xFZWr.js → components-DJVzkzrr.js} +301 -301
- package/dist/{composables-Vg-QfE_2.js → composables-BeyROIj_.js} +2 -2
- package/dist/{convertDuration-heRoQzks.js → convertDuration-BOe9PsRT.js} +1 -1
- package/dist/{deep-copy-7O5ej7vT.js → deep-copy-BJdHBMNZ.js} +1 -1
- package/dist/{dist-DJZOILzq.js → dist-CnyqtIg9.js} +1 -1
- package/dist/{dist-DB8lC4KJ.js → dist-EXdgfpvN.js} +44 -44
- package/dist/{enums-BDtfwdQu.js → enums-CsINFPBu.js} +133 -11
- package/dist/{genClient-5JkKKac8.js → genClient-CvWlQ0TZ.js} +2 -2
- package/dist/ui-sdk.js +16 -16
- package/dist/ui-sdk.umd.cjs +691 -656
- package/dist/{useValidation-B4q8qUvG.js → useValidation-KcXmMBtR.js} +2 -2
- package/dist/{useWtTable-CUpN0LZ5.js → useWtTable-AYb1yHre.js} +1 -1
- package/dist/{utils-DaacyMAw.js → utils-DHSDTqJG.js} +1 -1
- package/dist/vue-i18n-VBiROMZ4.js +3031 -0
- package/dist/{vue-router-CobN9tLi.js → vue-router-C9sRzLyg.js} +1 -1
- package/dist/{wt-action-bar-DJ_xvqhE.js → wt-action-bar-TwclxZyb.js} +3 -3
- package/dist/{wt-badge-C8O4Oarp.js → wt-badge-DbplVXor.js} +1 -1
- package/dist/{wt-button-BmBqpEkp.js → wt-button-rUZKbswL.js} +4 -4
- package/dist/{wt-chat-emoji-E6MiDOCz.js → wt-chat-emoji-BATwPh2q.js} +4 -4
- package/dist/{wt-datepicker-C1kACub3.js → wt-datepicker-C4wrYXt9.js} +11 -11
- package/dist/{wt-display-chip-items-Dr6QjwFR.js → wt-display-chip-items-N20vx27z.js} +2 -2
- package/dist/{wt-dual-panel-D5TCilWN.js → wt-dual-panel-CjWwG7y6.js} +7 -7
- package/dist/{wt-expansion-card-2wdr_Hpi.js → wt-expansion-card-vv5ctpfw.js} +2 -2
- package/dist/{wt-expansion-panel-DP8zz2tS.js → wt-expansion-panel-3tx3DGUp.js} +1 -1
- package/dist/{wt-galleria-iRpRiDc6.js → wt-galleria-DcZRuekj.js} +2 -2
- package/dist/{wt-icon-CZlhT7Yb.js → wt-icon-B4wxzcVG.js} +4 -4
- package/dist/{wt-icon-action-BXg3jVf6.js → wt-icon-action-CTPCemTs.js} +2 -2
- package/dist/{wt-icon-btn-C8xuTCJR.js → wt-icon-btn-D3lG7Acn.js} +1 -1
- package/dist/{wt-notifications-bar-BDOKlHao.js → wt-notifications-bar-BMV-0Vmo.js} +2 -2
- package/dist/{wt-player-Dqlccj2F.js → wt-player-DBsbjt_l.js} +5 -5
- package/dist/{wt-popover-DuZFw3bg.js → wt-popover-BI6YyXy0.js} +1 -1
- package/dist/{wt-screen-recordings-action-biHVl6lR.js → wt-screen-recordings-action-D2PKGnNl.js} +1 -1
- package/dist/{wt-search-bar-ByF2Wjsg.js → wt-search-bar-CFANAMNQ.js} +1 -1
- package/dist/{wt-selection-popup-Bd4EuLl-.js → wt-selection-popup-Dei_JZah.js} +1 -1
- package/dist/{wt-send-message-popup-BL9aJz5t.js → wt-send-message-popup-DSZ7srx4.js} +7 -7
- package/dist/{wt-slider-Co6hZQu_.js → wt-slider-x-Tch7RT.js} +1 -1
- package/dist/{wt-start-page-Bp7b0ir-.js → wt-start-page-2Bdzg5V5.js} +1 -1
- package/dist/{wt-status-select-BOmAd__4.js → wt-status-select-Bgtu5WrX.js} +11 -11
- package/dist/{wt-table-RK0pOlzR.js → wt-table-DMEjT0xF.js} +6 -6
- package/dist/{wt-table-column-select-BtFhZKPT.js → wt-table-column-select-DzXaRs03.js} +3 -3
- package/dist/{wt-timepicker-C4kMPkNd.js → wt-timepicker-B-ZZUyDZ.js} +5 -5
- package/dist/{wt-toast-DbYB-u-k.js → wt-toast-pXV44Y3v.js} +10 -10
- package/dist/{wt-tree-BH2o2iCt.js → wt-tree-Cu_yRDjp.js} +98 -98
- package/dist/{wt-tree-table-CCaiVeY_.js → wt-tree-table-BET1GUgf.js} +2 -2
- package/dist/wt-type-extension-value-input-B1-ScgJm.js +14743 -0
- package/dist/{wt-vidstack-player-u4R9q51f.js → wt-vidstack-player-C_EdEZ8v.js} +6 -6
- package/package.json +1 -1
- package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +19 -5
- package/src/modules/Userinfo/composables/useLookupFieldReadAccess.ts +54 -0
- package/src/modules/Userinfo/index.ts +10 -0
- package/src/modules/Userinfo/injection/filterReadAccess.ts +21 -0
- package/src/modules/Userinfo/mappings/lookupPathToScopeClass.ts +53 -0
- package/src/modules/Userinfo/scripts/typeObjectClass.ts +55 -0
- package/src/modules/Userinfo/stores/userinfoStore.ts +13 -2
- package/types/.tsbuildinfo +1 -1
- package/types/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue.d.ts +11 -4
- package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +1 -1
- package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
- package/types/modules/Userinfo/composables/useLookupFieldReadAccess.d.ts +14 -0
- package/types/modules/Userinfo/index.d.ts +2 -0
- package/types/modules/Userinfo/injection/filterReadAccess.d.ts +7 -0
- package/types/modules/Userinfo/mappings/lookupPathToScopeClass.d.ts +3 -0
- package/types/modules/Userinfo/scripts/typeObjectClass.d.ts +2 -0
- package/types/modules/Userinfo/stores/userinfoStore.d.ts +25 -15
- package/dist/vue-i18n-B88GcHzn.js +0 -2275
- package/dist/wt-type-extension-value-input-DaSIbXbu.js +0 -109
|
@@ -0,0 +1,3031 @@
|
|
|
1
|
+
import { n as e, t } from "./dist-EXdgfpvN.js";
|
|
2
|
+
import { n, t as r } from "./dist-CnyqtIg9.js";
|
|
3
|
+
import * as i from "vue";
|
|
4
|
+
import { Fragment as a, Text as o, computed as s, createVNode as c, defineComponent as l, effectScope as u, getCurrentScope as d, h as f, inject as p, isRef as m, onMounted as h, onScopeDispose as g, onUnmounted as _, ref as v, shallowRef as y, watch as b } from "vue";
|
|
5
|
+
n(), t();
|
|
6
|
+
function x(e, t) {
|
|
7
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
8
|
+
}
|
|
9
|
+
var S = {};
|
|
10
|
+
function C(e) {
|
|
11
|
+
S[e] || (S[e] = !0, x(e));
|
|
12
|
+
}
|
|
13
|
+
var w = typeof window < "u", T, E;
|
|
14
|
+
if (e.env.NODE_ENV !== "production") {
|
|
15
|
+
let e = w && window.performance;
|
|
16
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (T = (t) => {
|
|
17
|
+
e.mark(t);
|
|
18
|
+
}, E = (t, n, r) => {
|
|
19
|
+
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
var D = /\{([0-9a-zA-Z]+)\}/g;
|
|
23
|
+
function O(e, ...t) {
|
|
24
|
+
return t.length === 1 && B(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(D, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
25
|
+
}
|
|
26
|
+
var k = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), A = (e, t, n) => ee({
|
|
27
|
+
l: e,
|
|
28
|
+
k: t,
|
|
29
|
+
s: n
|
|
30
|
+
}), ee = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), te = (e) => _e(e) === "[object Date]", ne = (e) => _e(e) === "[object RegExp]", re = (e) => V(e) && Object.keys(e).length === 0, M = Object.assign, ie = Object.create, N = (e = null) => ie(e), ae, oe = () => ae ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : r === void 0 ? N() : r;
|
|
31
|
+
function se(e) {
|
|
32
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
33
|
+
}
|
|
34
|
+
function ce(e) {
|
|
35
|
+
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
36
|
+
}
|
|
37
|
+
var le = /^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i, ue = /^(?:href|src|action|formaction)$/i;
|
|
38
|
+
function P(e) {
|
|
39
|
+
return le.test(e);
|
|
40
|
+
}
|
|
41
|
+
function de(e) {
|
|
42
|
+
let t = /url\s*\(/gi, n = "", r = 0, i;
|
|
43
|
+
for (; (i = t.exec(e)) !== null;) {
|
|
44
|
+
let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
|
|
45
|
+
for (; s < e.length; s++) {
|
|
46
|
+
let t = e[s];
|
|
47
|
+
if (l) {
|
|
48
|
+
t === l && (l = null);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (t === "\"" || t === "'") l = t;
|
|
52
|
+
else if (t === "(") c++;
|
|
53
|
+
else if (t === ")" && (c--, c === 0)) break;
|
|
54
|
+
}
|
|
55
|
+
if (c !== 0) break;
|
|
56
|
+
let u = e.slice(o + 1, s).trim(), d = u.startsWith("\"") && u.endsWith("\"") || u.startsWith("'") && u.endsWith("'") ? u.slice(1, -1).trim() : u;
|
|
57
|
+
n += e.slice(r, a), n += P(d) ? "url(about:blank)" : e.slice(a, s + 1), r = s + 1;
|
|
58
|
+
}
|
|
59
|
+
return n + e.slice(r);
|
|
60
|
+
}
|
|
61
|
+
function fe(e, t) {
|
|
62
|
+
return ue.test(e) && P(t) ? "about:blank" : ce(e.toLowerCase() === "style" ? de(t) : t);
|
|
63
|
+
}
|
|
64
|
+
function pe(t) {
|
|
65
|
+
return t = t.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${fe(t, n)}"`), t = t.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${fe(t, n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t) && (e.env.NODE_ENV !== "production" && x("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), t = t.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), t = t.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (e, t, n) => P(n) ? `${t}about:blank` : e), t;
|
|
66
|
+
}
|
|
67
|
+
var me = Object.prototype.hasOwnProperty;
|
|
68
|
+
function F(e, t) {
|
|
69
|
+
return me.call(e, t);
|
|
70
|
+
}
|
|
71
|
+
var I = Array.isArray, L = (e) => typeof e == "function", R = (e) => typeof e == "string", z = (e) => typeof e == "boolean", B = (e) => typeof e == "object" && !!e, he = (e) => B(e) && L(e.then) && L(e.catch), ge = Object.prototype.toString, _e = (e) => ge.call(e), V = (e) => _e(e) === "[object Object]", ve = (e) => e == null ? "" : I(e) || V(e) && e.toString === ge ? JSON.stringify(e, null, 2) : String(e);
|
|
72
|
+
function ye(e, t = "") {
|
|
73
|
+
return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
|
|
74
|
+
}
|
|
75
|
+
var be = 2;
|
|
76
|
+
function xe(e, t = 0, n = e.length) {
|
|
77
|
+
let r = e.split(/\r?\n/), i = 0, a = [];
|
|
78
|
+
for (let e = 0; e < r.length; e++) if (i += r[e].length + 1, i >= t) {
|
|
79
|
+
for (let o = e - be; o <= e + be || n > i; o++) {
|
|
80
|
+
if (o < 0 || o >= r.length) continue;
|
|
81
|
+
let s = o + 1;
|
|
82
|
+
a.push(`${s}${" ".repeat(3 - String(s).length)}| ${r[o]}`);
|
|
83
|
+
let c = r[o].length;
|
|
84
|
+
if (o === e) {
|
|
85
|
+
let e = t - (i - c) + 1, r = Math.max(1, n > i ? c - e : n - t);
|
|
86
|
+
a.push(" | " + " ".repeat(e) + "^".repeat(r));
|
|
87
|
+
} else if (o > e) {
|
|
88
|
+
if (n > i) {
|
|
89
|
+
let e = Math.max(Math.min(n - i, c), 1);
|
|
90
|
+
a.push(" | " + "^".repeat(e));
|
|
91
|
+
}
|
|
92
|
+
i += c + 1;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
return a.join("\n");
|
|
98
|
+
}
|
|
99
|
+
function Se() {
|
|
100
|
+
let e = /* @__PURE__ */ new Map();
|
|
101
|
+
return {
|
|
102
|
+
events: e,
|
|
103
|
+
on(t, n) {
|
|
104
|
+
let r = e.get(t);
|
|
105
|
+
r && r.push(n) || e.set(t, [n]);
|
|
106
|
+
},
|
|
107
|
+
off(t, n) {
|
|
108
|
+
let r = e.get(t);
|
|
109
|
+
r && r.splice(r.indexOf(n) >>> 0, 1);
|
|
110
|
+
},
|
|
111
|
+
emit(t, n) {
|
|
112
|
+
(e.get(t) || []).slice().map((e) => e(n)), (e.get("*") || []).slice().map((e) => e(t, n));
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
var Ce = (e) => !B(e) || I(e);
|
|
117
|
+
function we(e, t) {
|
|
118
|
+
if (Ce(e) || Ce(t)) throw Error("Invalid value");
|
|
119
|
+
let n = [{
|
|
120
|
+
src: e,
|
|
121
|
+
des: t
|
|
122
|
+
}];
|
|
123
|
+
for (; n.length;) {
|
|
124
|
+
let { src: e, des: t } = n.pop();
|
|
125
|
+
Object.keys(e).forEach((r) => {
|
|
126
|
+
r !== "__proto__" && (B(e[r]) && !B(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : N()), Ce(t[r]) || Ce(e[r]) ? t[r] = e[r] : n.push({
|
|
127
|
+
src: e[r],
|
|
128
|
+
des: t[r]
|
|
129
|
+
}));
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region node_modules/@intlify/message-compiler/dist/message-compiler.mjs
|
|
135
|
+
t();
|
|
136
|
+
function Te(e, t, n) {
|
|
137
|
+
return {
|
|
138
|
+
line: e,
|
|
139
|
+
column: t,
|
|
140
|
+
offset: n
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function Ee(e, t, n) {
|
|
144
|
+
let r = {
|
|
145
|
+
start: e,
|
|
146
|
+
end: t
|
|
147
|
+
};
|
|
148
|
+
return n != null && (r.source = n), r;
|
|
149
|
+
}
|
|
150
|
+
var H = {
|
|
151
|
+
EXPECTED_TOKEN: 1,
|
|
152
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
153
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
154
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
155
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
156
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
|
157
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
|
158
|
+
EMPTY_PLACEHOLDER: 8,
|
|
159
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
160
|
+
INVALID_LINKED_FORMAT: 10,
|
|
161
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
162
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
163
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
164
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
165
|
+
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
166
|
+
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
167
|
+
}, De = {
|
|
168
|
+
[H.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
169
|
+
[H.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
170
|
+
[H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
171
|
+
[H.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
172
|
+
[H.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
173
|
+
[H.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
174
|
+
[H.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
175
|
+
[H.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
176
|
+
[H.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
177
|
+
[H.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
178
|
+
[H.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
179
|
+
[H.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
180
|
+
[H.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
181
|
+
[H.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
182
|
+
[H.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
183
|
+
[H.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
184
|
+
};
|
|
185
|
+
function Oe(t, n, r = {}) {
|
|
186
|
+
let { domain: i, messages: a, args: o } = r, s = e.env.NODE_ENV === "production" ? t : O((a || De)[t] || "", ...o || []), c = SyntaxError(String(s));
|
|
187
|
+
return c.code = t, n && (c.location = n), c.domain = i, c;
|
|
188
|
+
}
|
|
189
|
+
function ke(e) {
|
|
190
|
+
throw e;
|
|
191
|
+
}
|
|
192
|
+
var Ae = /<\/?[\w\s="/.':;#-\/]+>/, je = (e) => Ae.test(e), U = " ", W = "\r", G = "\n", Me = "\u2028", Ne = "\u2029";
|
|
193
|
+
function Pe(e) {
|
|
194
|
+
let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === W && t[e + 1] === G, s = (e) => t[e] === G, c = (e) => t[e] === Ne, l = (e) => t[e] === Me, u = (e) => o(e) || s(e) || c(e) || l(e), d = () => n, f = () => r, p = () => i, m = () => a, h = (e) => o(e) || c(e) || l(e) ? G : t[e], g = () => h(n), _ = () => h(n + a);
|
|
195
|
+
function v() {
|
|
196
|
+
return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
|
|
197
|
+
}
|
|
198
|
+
function y() {
|
|
199
|
+
return o(n + a) && a++, a++, t[n + a];
|
|
200
|
+
}
|
|
201
|
+
function b() {
|
|
202
|
+
n = 0, r = 1, i = 1, a = 0;
|
|
203
|
+
}
|
|
204
|
+
function x(e = 0) {
|
|
205
|
+
a = e;
|
|
206
|
+
}
|
|
207
|
+
function S() {
|
|
208
|
+
let e = n + a;
|
|
209
|
+
for (; e !== n;) v();
|
|
210
|
+
a = 0;
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
index: d,
|
|
214
|
+
line: f,
|
|
215
|
+
column: p,
|
|
216
|
+
peekOffset: m,
|
|
217
|
+
charAt: h,
|
|
218
|
+
currentChar: g,
|
|
219
|
+
currentPeek: _,
|
|
220
|
+
next: v,
|
|
221
|
+
peek: y,
|
|
222
|
+
reset: b,
|
|
223
|
+
resetPeek: x,
|
|
224
|
+
skipToPeek: S
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
var Fe = void 0, Ie = "'", Le = "tokenizer";
|
|
228
|
+
function Re(e, t = {}) {
|
|
229
|
+
let n = t.location !== !1, r = Pe(e), i = () => r.index(), a = () => Te(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
|
|
230
|
+
currentType: 13,
|
|
231
|
+
offset: s,
|
|
232
|
+
startLoc: o,
|
|
233
|
+
endLoc: o,
|
|
234
|
+
lastType: 13,
|
|
235
|
+
lastOffset: s,
|
|
236
|
+
lastStartLoc: o,
|
|
237
|
+
lastEndLoc: o,
|
|
238
|
+
braceNest: 0,
|
|
239
|
+
inLinked: !1,
|
|
240
|
+
text: ""
|
|
241
|
+
}, l = () => c, { onError: u } = t;
|
|
242
|
+
function d(e, t, r, ...i) {
|
|
243
|
+
let a = l();
|
|
244
|
+
if (t.column += r, t.offset += r, u) {
|
|
245
|
+
let r = Oe(e, n ? Ee(a.startLoc, t) : null, {
|
|
246
|
+
domain: Le,
|
|
247
|
+
args: i
|
|
248
|
+
});
|
|
249
|
+
u(r);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
function f(e, t, r) {
|
|
253
|
+
e.endLoc = a(), e.currentType = t;
|
|
254
|
+
let i = { type: t };
|
|
255
|
+
return n && (i.loc = Ee(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
|
|
256
|
+
}
|
|
257
|
+
let p = (e) => f(e, 13);
|
|
258
|
+
function m(e, t) {
|
|
259
|
+
return e.currentChar() === t ? (e.next(), t) : (d(H.EXPECTED_TOKEN, a(), 0, t), "");
|
|
260
|
+
}
|
|
261
|
+
function h(e) {
|
|
262
|
+
let t = "";
|
|
263
|
+
for (; e.currentPeek() === U || e.currentPeek() === G;) t += e.currentPeek(), e.peek();
|
|
264
|
+
return t;
|
|
265
|
+
}
|
|
266
|
+
function g(e) {
|
|
267
|
+
let t = h(e);
|
|
268
|
+
return e.skipToPeek(), t;
|
|
269
|
+
}
|
|
270
|
+
function _(e) {
|
|
271
|
+
if (e === Fe) return !1;
|
|
272
|
+
let t = e.charCodeAt(0);
|
|
273
|
+
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === 95;
|
|
274
|
+
}
|
|
275
|
+
function v(e) {
|
|
276
|
+
if (e === Fe) return !1;
|
|
277
|
+
let t = e.charCodeAt(0);
|
|
278
|
+
return t >= 48 && t <= 57;
|
|
279
|
+
}
|
|
280
|
+
function y(e, t) {
|
|
281
|
+
let { currentType: n } = t;
|
|
282
|
+
if (n !== 2) return !1;
|
|
283
|
+
h(e);
|
|
284
|
+
let r = _(e.currentPeek());
|
|
285
|
+
return e.resetPeek(), r;
|
|
286
|
+
}
|
|
287
|
+
function b(e, t) {
|
|
288
|
+
let { currentType: n } = t;
|
|
289
|
+
if (n !== 2) return !1;
|
|
290
|
+
h(e);
|
|
291
|
+
let r = v(e.currentPeek() === "-" ? e.peek() : e.currentPeek());
|
|
292
|
+
return e.resetPeek(), r;
|
|
293
|
+
}
|
|
294
|
+
function x(e, t) {
|
|
295
|
+
let { currentType: n } = t;
|
|
296
|
+
if (n !== 2) return !1;
|
|
297
|
+
h(e);
|
|
298
|
+
let r = e.currentPeek() === Ie;
|
|
299
|
+
return e.resetPeek(), r;
|
|
300
|
+
}
|
|
301
|
+
function S(e, t) {
|
|
302
|
+
let { currentType: n } = t;
|
|
303
|
+
if (n !== 7) return !1;
|
|
304
|
+
h(e);
|
|
305
|
+
let r = e.currentPeek() === ".";
|
|
306
|
+
return e.resetPeek(), r;
|
|
307
|
+
}
|
|
308
|
+
function C(e, t) {
|
|
309
|
+
let { currentType: n } = t;
|
|
310
|
+
if (n !== 8) return !1;
|
|
311
|
+
h(e);
|
|
312
|
+
let r = _(e.currentPeek());
|
|
313
|
+
return e.resetPeek(), r;
|
|
314
|
+
}
|
|
315
|
+
function w(e, t) {
|
|
316
|
+
let { currentType: n } = t;
|
|
317
|
+
if (!(n === 7 || n === 11)) return !1;
|
|
318
|
+
h(e);
|
|
319
|
+
let r = e.currentPeek() === ":";
|
|
320
|
+
return e.resetPeek(), r;
|
|
321
|
+
}
|
|
322
|
+
function T(e, t) {
|
|
323
|
+
let { currentType: n } = t;
|
|
324
|
+
if (n !== 9) return !1;
|
|
325
|
+
let r = () => {
|
|
326
|
+
let t = e.currentPeek();
|
|
327
|
+
return t === "{" ? _(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === U || !t ? !1 : t === G ? (e.peek(), r()) : D(e, !1);
|
|
328
|
+
}, i = r();
|
|
329
|
+
return e.resetPeek(), i;
|
|
330
|
+
}
|
|
331
|
+
function E(e) {
|
|
332
|
+
h(e);
|
|
333
|
+
let t = e.currentPeek() === "|";
|
|
334
|
+
return e.resetPeek(), t;
|
|
335
|
+
}
|
|
336
|
+
function D(e, t = !0) {
|
|
337
|
+
let n = (t = !1, r = "") => {
|
|
338
|
+
let i = e.currentPeek();
|
|
339
|
+
return i === "{" || i === "@" || !i ? t : i === "|" ? !(r === U || r === G) : i === U ? (e.peek(), n(!0, U)) : i === G ? (e.peek(), n(!0, G)) : !0;
|
|
340
|
+
}, r = n();
|
|
341
|
+
return t && e.resetPeek(), r;
|
|
342
|
+
}
|
|
343
|
+
function O(e, t) {
|
|
344
|
+
let n = e.currentChar();
|
|
345
|
+
if (n !== Fe) return t(n) ? (e.next(), n) : null;
|
|
346
|
+
}
|
|
347
|
+
function k(e) {
|
|
348
|
+
let t = e.charCodeAt(0);
|
|
349
|
+
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
|
|
350
|
+
}
|
|
351
|
+
function A(e) {
|
|
352
|
+
return O(e, k);
|
|
353
|
+
}
|
|
354
|
+
function ee(e) {
|
|
355
|
+
let t = e.charCodeAt(0);
|
|
356
|
+
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
|
|
357
|
+
}
|
|
358
|
+
function j(e) {
|
|
359
|
+
return O(e, ee);
|
|
360
|
+
}
|
|
361
|
+
function te(e) {
|
|
362
|
+
let t = e.charCodeAt(0);
|
|
363
|
+
return t >= 48 && t <= 57;
|
|
364
|
+
}
|
|
365
|
+
function ne(e) {
|
|
366
|
+
return O(e, te);
|
|
367
|
+
}
|
|
368
|
+
function re(e) {
|
|
369
|
+
let t = e.charCodeAt(0);
|
|
370
|
+
return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
|
|
371
|
+
}
|
|
372
|
+
function M(e) {
|
|
373
|
+
return O(e, re);
|
|
374
|
+
}
|
|
375
|
+
function ie(e) {
|
|
376
|
+
let t = "", n = "";
|
|
377
|
+
for (; t = ne(e);) n += t;
|
|
378
|
+
return n;
|
|
379
|
+
}
|
|
380
|
+
function N(e) {
|
|
381
|
+
let t = "";
|
|
382
|
+
for (;;) {
|
|
383
|
+
let n = e.currentChar();
|
|
384
|
+
if (n === "\\") {
|
|
385
|
+
let r = e.peek();
|
|
386
|
+
r === "{" || r === "}" || r === "@" || r === "|" || r === "\\" ? (t += n + r, e.next(), e.next()) : (e.resetPeek(), t += n, e.next());
|
|
387
|
+
} else if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
|
|
388
|
+
else if (n === U || n === G) if (D(e)) t += n, e.next();
|
|
389
|
+
else if (E(e)) break;
|
|
390
|
+
else t += n, e.next();
|
|
391
|
+
else t += n, e.next();
|
|
392
|
+
}
|
|
393
|
+
return t;
|
|
394
|
+
}
|
|
395
|
+
function ae(e) {
|
|
396
|
+
g(e);
|
|
397
|
+
let t = "", n = "";
|
|
398
|
+
for (; t = j(e);) n += t;
|
|
399
|
+
let r = e.currentChar();
|
|
400
|
+
if (r && r !== "}" && r !== Fe && r !== U && r !== G && r !== " ") {
|
|
401
|
+
let t = de(e);
|
|
402
|
+
return d(H.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
|
|
403
|
+
}
|
|
404
|
+
return e.currentChar() === Fe && d(H.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
|
|
405
|
+
}
|
|
406
|
+
function oe(e) {
|
|
407
|
+
g(e);
|
|
408
|
+
let t = "";
|
|
409
|
+
return e.currentChar() === "-" ? (e.next(), t += `-${ie(e)}`) : t += ie(e), e.currentChar() === Fe && d(H.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
|
|
410
|
+
}
|
|
411
|
+
function se(e) {
|
|
412
|
+
return e !== Ie && e !== G;
|
|
413
|
+
}
|
|
414
|
+
function ce(e) {
|
|
415
|
+
g(e), m(e, "'");
|
|
416
|
+
let t = "", n = "";
|
|
417
|
+
for (; t = O(e, se);) t === "\\" ? n += le(e) : n += t;
|
|
418
|
+
let r = e.currentChar();
|
|
419
|
+
return r === G || r === Fe ? (d(H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === G && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
|
|
420
|
+
}
|
|
421
|
+
function le(e) {
|
|
422
|
+
let t = e.currentChar();
|
|
423
|
+
switch (t) {
|
|
424
|
+
case "\\":
|
|
425
|
+
case "'": return e.next(), `\\${t}`;
|
|
426
|
+
case "u": return ue(e, t, 4);
|
|
427
|
+
case "U": return ue(e, t, 6);
|
|
428
|
+
default: return d(H.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function ue(e, t, n) {
|
|
432
|
+
m(e, t);
|
|
433
|
+
let r = "";
|
|
434
|
+
for (let i = 0; i < n; i++) {
|
|
435
|
+
let n = M(e);
|
|
436
|
+
if (!n) {
|
|
437
|
+
d(H.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
r += n;
|
|
441
|
+
}
|
|
442
|
+
return `\\${t}${r}`;
|
|
443
|
+
}
|
|
444
|
+
function P(e) {
|
|
445
|
+
return e !== "{" && e !== "}" && e !== U && e !== G;
|
|
446
|
+
}
|
|
447
|
+
function de(e) {
|
|
448
|
+
g(e);
|
|
449
|
+
let t = "", n = "";
|
|
450
|
+
for (; t = O(e, P);) n += t;
|
|
451
|
+
return n;
|
|
452
|
+
}
|
|
453
|
+
function fe(e) {
|
|
454
|
+
let t = "", n = "";
|
|
455
|
+
for (; t = A(e);) n += t;
|
|
456
|
+
return n;
|
|
457
|
+
}
|
|
458
|
+
function pe(e) {
|
|
459
|
+
let t = (n) => {
|
|
460
|
+
let r = e.currentChar();
|
|
461
|
+
return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === U ? n : (n += r, e.next(), t(n));
|
|
462
|
+
};
|
|
463
|
+
return t("");
|
|
464
|
+
}
|
|
465
|
+
function me(e) {
|
|
466
|
+
g(e);
|
|
467
|
+
let t = m(e, "|");
|
|
468
|
+
return g(e), t;
|
|
469
|
+
}
|
|
470
|
+
function F(e, t) {
|
|
471
|
+
let n = null;
|
|
472
|
+
switch (e.currentChar()) {
|
|
473
|
+
case "{": return t.braceNest >= 1 && d(H.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
|
|
474
|
+
case "}": return t.braceNest > 0 && t.currentType === 2 && d(H.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
|
|
475
|
+
case "@": return t.braceNest > 0 && d(H.UNTERMINATED_CLOSING_BRACE, a(), 0), n = I(e, t) || p(t), t.braceNest = 0, n;
|
|
476
|
+
default: {
|
|
477
|
+
let r = !0, i = !0, o = !0;
|
|
478
|
+
if (E(e)) return t.braceNest > 0 && d(H.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, me(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
479
|
+
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(H.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, L(e, t);
|
|
480
|
+
if (r = y(e, t)) return n = f(t, 4, ae(e)), g(e), n;
|
|
481
|
+
if (i = b(e, t)) return n = f(t, 5, oe(e)), g(e), n;
|
|
482
|
+
if (o = x(e, t)) return n = f(t, 6, ce(e)), g(e), n;
|
|
483
|
+
if (!r && !i && !o) return n = f(t, 12, de(e)), d(H.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
return n;
|
|
488
|
+
}
|
|
489
|
+
function I(e, t) {
|
|
490
|
+
let { currentType: n } = t, r = null, i = e.currentChar();
|
|
491
|
+
switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === G || i === U) && d(H.INVALID_LINKED_FORMAT, a(), 0), i) {
|
|
492
|
+
case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
|
|
493
|
+
case ".": return g(e), e.next(), f(t, 8, ".");
|
|
494
|
+
case ":": return g(e), e.next(), f(t, 9, ":");
|
|
495
|
+
default: return E(e) ? (r = f(t, 1, me(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), I(e, t)) : C(e, t) ? (g(e), f(t, 11, fe(e))) : T(e, t) ? (g(e), i === "{" ? F(e, t) || r : f(t, 10, pe(e))) : (n === 7 && d(H.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, L(e, t));
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
function L(e, t) {
|
|
499
|
+
let n = { type: 13 };
|
|
500
|
+
if (t.braceNest > 0) return F(e, t) || p(t);
|
|
501
|
+
if (t.inLinked) return I(e, t) || p(t);
|
|
502
|
+
switch (e.currentChar()) {
|
|
503
|
+
case "{": return F(e, t) || p(t);
|
|
504
|
+
case "}": return d(H.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
|
|
505
|
+
case "@": return I(e, t) || p(t);
|
|
506
|
+
default:
|
|
507
|
+
if (E(e)) return n = f(t, 1, me(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
508
|
+
if (D(e)) return f(t, 0, N(e));
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
return n;
|
|
512
|
+
}
|
|
513
|
+
function R() {
|
|
514
|
+
let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
|
|
515
|
+
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === Fe ? f(c, 13) : L(r, c);
|
|
516
|
+
}
|
|
517
|
+
return {
|
|
518
|
+
nextToken: R,
|
|
519
|
+
currentOffset: i,
|
|
520
|
+
currentPosition: a,
|
|
521
|
+
context: l
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
var ze = "parser", Be = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, Ve = /\\([\\@{}|])/g;
|
|
525
|
+
function He(e, t) {
|
|
526
|
+
return t;
|
|
527
|
+
}
|
|
528
|
+
function Ue(e, t, n) {
|
|
529
|
+
switch (e) {
|
|
530
|
+
case "\\\\": return "\\";
|
|
531
|
+
case "\\'": return "'";
|
|
532
|
+
default: {
|
|
533
|
+
let e = parseInt(t || n, 16);
|
|
534
|
+
return e <= 55295 || e >= 57344 ? String.fromCodePoint(e) : "�";
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
function We(e = {}) {
|
|
539
|
+
let t = e.location !== !1, { onError: n } = e;
|
|
540
|
+
function r(e, r, i, a, ...o) {
|
|
541
|
+
let s = e.currentPosition();
|
|
542
|
+
if (s.offset += a, s.column += a, n) {
|
|
543
|
+
let e = Oe(r, t ? Ee(i, s) : null, {
|
|
544
|
+
domain: ze,
|
|
545
|
+
args: o
|
|
546
|
+
});
|
|
547
|
+
n(e);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
function i(e, n, r) {
|
|
551
|
+
let i = { type: e };
|
|
552
|
+
return t && (i.start = n, i.end = n, i.loc = {
|
|
553
|
+
start: r,
|
|
554
|
+
end: r
|
|
555
|
+
}), i;
|
|
556
|
+
}
|
|
557
|
+
function a(e, n, r, i) {
|
|
558
|
+
t && (e.end = n, e.loc && (e.loc.end = r));
|
|
559
|
+
}
|
|
560
|
+
function o(e, t) {
|
|
561
|
+
let n = e.context(), r = i(3, n.offset, n.startLoc);
|
|
562
|
+
return r.value = t.replace(Ve, He), a(r, e.currentOffset(), e.currentPosition()), r;
|
|
563
|
+
}
|
|
564
|
+
function s(e, t) {
|
|
565
|
+
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
|
|
566
|
+
return o.index = parseInt(t, 10), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
567
|
+
}
|
|
568
|
+
function c(e, t) {
|
|
569
|
+
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(4, n, r);
|
|
570
|
+
return o.key = t, e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
571
|
+
}
|
|
572
|
+
function l(e, t) {
|
|
573
|
+
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
|
|
574
|
+
return o.value = t.replace(Be, Ue), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
575
|
+
}
|
|
576
|
+
function u(e) {
|
|
577
|
+
let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
|
|
578
|
+
return t.type === 11 ? (t.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, K(t)), c.value = t.value || "", a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, H.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = "", a(c, o, s), {
|
|
579
|
+
nextConsumeToken: t,
|
|
580
|
+
node: c
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
function d(e, t) {
|
|
584
|
+
let n = e.context(), r = i(7, n.offset, n.startLoc);
|
|
585
|
+
return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
|
|
586
|
+
}
|
|
587
|
+
function f(e) {
|
|
588
|
+
let t = e.context(), n = i(6, t.offset, t.startLoc), o = e.nextToken();
|
|
589
|
+
if (o.type === 8) {
|
|
590
|
+
let t = u(e);
|
|
591
|
+
n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
|
|
592
|
+
}
|
|
593
|
+
switch (o.type !== 9 && r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
|
|
594
|
+
case 10:
|
|
595
|
+
o.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = d(e, o.value || "");
|
|
596
|
+
break;
|
|
597
|
+
case 4:
|
|
598
|
+
o.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = c(e, o.value || "");
|
|
599
|
+
break;
|
|
600
|
+
case 5:
|
|
601
|
+
o.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = s(e, o.value || "");
|
|
602
|
+
break;
|
|
603
|
+
case 6:
|
|
604
|
+
o.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = l(e, o.value || "");
|
|
605
|
+
break;
|
|
606
|
+
default: {
|
|
607
|
+
r(e, H.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
|
|
608
|
+
let s = e.context(), c = i(7, s.offset, s.startLoc);
|
|
609
|
+
return c.value = "", a(c, s.offset, s.startLoc), n.key = c, a(n, s.offset, s.startLoc), {
|
|
610
|
+
nextConsumeToken: o,
|
|
611
|
+
node: n
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return a(n, e.currentOffset(), e.currentPosition()), { node: n };
|
|
616
|
+
}
|
|
617
|
+
function p(e) {
|
|
618
|
+
let t = e.context(), n = i(2, t.currentType === 1 ? e.currentOffset() : t.offset, t.currentType === 1 ? t.endLoc : t.startLoc);
|
|
619
|
+
n.items = [];
|
|
620
|
+
let u = null;
|
|
621
|
+
do {
|
|
622
|
+
let i = u || e.nextToken();
|
|
623
|
+
switch (u = null, i.type) {
|
|
624
|
+
case 0:
|
|
625
|
+
i.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(o(e, i.value || ""));
|
|
626
|
+
break;
|
|
627
|
+
case 5:
|
|
628
|
+
i.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(s(e, i.value || ""));
|
|
629
|
+
break;
|
|
630
|
+
case 4:
|
|
631
|
+
i.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(c(e, i.value || ""));
|
|
632
|
+
break;
|
|
633
|
+
case 6:
|
|
634
|
+
i.value ?? r(e, H.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(l(e, i.value || ""));
|
|
635
|
+
break;
|
|
636
|
+
case 7: {
|
|
637
|
+
let t = f(e);
|
|
638
|
+
n.items.push(t.node), u = t.nextConsumeToken || null;
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
} while (t.currentType !== 13 && t.currentType !== 1);
|
|
643
|
+
return a(n, t.currentType === 1 ? t.lastOffset : e.currentOffset(), t.currentType === 1 ? t.lastEndLoc : e.currentPosition()), n;
|
|
644
|
+
}
|
|
645
|
+
function m(e, t, n, o) {
|
|
646
|
+
let s = e.context(), c = o.items.length === 0, l = i(1, t, n);
|
|
647
|
+
l.cases = [], l.cases.push(o);
|
|
648
|
+
do {
|
|
649
|
+
let t = p(e);
|
|
650
|
+
c ||= t.items.length === 0, l.cases.push(t);
|
|
651
|
+
} while (s.currentType !== 13);
|
|
652
|
+
return c && r(e, H.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
|
|
653
|
+
}
|
|
654
|
+
function h(e) {
|
|
655
|
+
let t = e.context(), { offset: n, startLoc: r } = t, i = p(e);
|
|
656
|
+
return t.currentType === 13 ? i : m(e, n, r, i);
|
|
657
|
+
}
|
|
658
|
+
function g(n) {
|
|
659
|
+
let o = Re(n, M({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
|
|
660
|
+
return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, H.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
|
|
661
|
+
}
|
|
662
|
+
return { parse: g };
|
|
663
|
+
}
|
|
664
|
+
function K(e) {
|
|
665
|
+
if (e.type === 13) return "EOF";
|
|
666
|
+
let t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
667
|
+
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
668
|
+
}
|
|
669
|
+
function Ge(e, t = {}) {
|
|
670
|
+
let n = {
|
|
671
|
+
ast: e,
|
|
672
|
+
helpers: /* @__PURE__ */ new Set()
|
|
673
|
+
};
|
|
674
|
+
return {
|
|
675
|
+
context: () => n,
|
|
676
|
+
helper: (e) => (n.helpers.add(e), e)
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function Ke(e, t) {
|
|
680
|
+
for (let n = 0; n < e.length; n++) qe(e[n], t);
|
|
681
|
+
}
|
|
682
|
+
function qe(e, t) {
|
|
683
|
+
switch (e.type) {
|
|
684
|
+
case 1:
|
|
685
|
+
Ke(e.cases, t), t.helper("plural");
|
|
686
|
+
break;
|
|
687
|
+
case 2:
|
|
688
|
+
Ke(e.items, t);
|
|
689
|
+
break;
|
|
690
|
+
case 6:
|
|
691
|
+
qe(e.key, t), t.helper("linked"), t.helper("type");
|
|
692
|
+
break;
|
|
693
|
+
case 5:
|
|
694
|
+
t.helper("interpolate"), t.helper("list");
|
|
695
|
+
break;
|
|
696
|
+
case 4:
|
|
697
|
+
t.helper("interpolate"), t.helper("named");
|
|
698
|
+
break;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
function Je(e, t = {}) {
|
|
702
|
+
let n = Ge(e);
|
|
703
|
+
n.helper("normalize"), e.body && qe(e.body, n);
|
|
704
|
+
let r = n.context();
|
|
705
|
+
e.helpers = Array.from(r.helpers);
|
|
706
|
+
}
|
|
707
|
+
function Ye(e) {
|
|
708
|
+
let t = e.body;
|
|
709
|
+
return t.type === 2 ? Xe(t) : t.cases.forEach((e) => Xe(e)), e;
|
|
710
|
+
}
|
|
711
|
+
function Xe(e) {
|
|
712
|
+
if (e.items.length === 1) {
|
|
713
|
+
let t = e.items[0];
|
|
714
|
+
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
715
|
+
} else {
|
|
716
|
+
let t = [];
|
|
717
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
718
|
+
let r = e.items[n];
|
|
719
|
+
if (!(r.type === 3 || r.type === 9) || r.value == null) break;
|
|
720
|
+
t.push(r.value);
|
|
721
|
+
}
|
|
722
|
+
if (t.length === e.items.length) {
|
|
723
|
+
e.static = ye(t);
|
|
724
|
+
for (let t = 0; t < e.items.length; t++) {
|
|
725
|
+
let n = e.items[t];
|
|
726
|
+
(n.type === 3 || n.type === 9) && delete n.value;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
var Ze = "minifier";
|
|
732
|
+
function Qe(t) {
|
|
733
|
+
switch (t.t = t.type, t.type) {
|
|
734
|
+
case 0: {
|
|
735
|
+
let e = t;
|
|
736
|
+
Qe(e.body), e.b = e.body, delete e.body;
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
739
|
+
case 1: {
|
|
740
|
+
let e = t, n = e.cases;
|
|
741
|
+
for (let e = 0; e < n.length; e++) Qe(n[e]);
|
|
742
|
+
e.c = n, delete e.cases;
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
case 2: {
|
|
746
|
+
let e = t, n = e.items;
|
|
747
|
+
for (let e = 0; e < n.length; e++) Qe(n[e]);
|
|
748
|
+
e.i = n, delete e.items, e.static && (e.s = e.static, delete e.static);
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
case 3:
|
|
752
|
+
case 9:
|
|
753
|
+
case 8:
|
|
754
|
+
case 7: {
|
|
755
|
+
let e = t;
|
|
756
|
+
e.value && (e.v = e.value, delete e.value);
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
case 6: {
|
|
760
|
+
let e = t;
|
|
761
|
+
Qe(e.key), e.k = e.key, delete e.key, e.modifier && (Qe(e.modifier), e.m = e.modifier, delete e.modifier);
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
764
|
+
case 5: {
|
|
765
|
+
let e = t;
|
|
766
|
+
e.i = e.index, delete e.index;
|
|
767
|
+
break;
|
|
768
|
+
}
|
|
769
|
+
case 4: {
|
|
770
|
+
let e = t;
|
|
771
|
+
e.k = e.key, delete e.key;
|
|
772
|
+
break;
|
|
773
|
+
}
|
|
774
|
+
default: if (e.env.NODE_ENV !== "production") throw Oe(H.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
775
|
+
domain: Ze,
|
|
776
|
+
args: [t.type]
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
delete t.type;
|
|
780
|
+
}
|
|
781
|
+
var $e = "parser";
|
|
782
|
+
function et(e, t) {
|
|
783
|
+
let { filename: n, breakLineCode: r, needIndent: i } = t, a = t.location !== !1, o = {
|
|
784
|
+
filename: n,
|
|
785
|
+
code: "",
|
|
786
|
+
column: 1,
|
|
787
|
+
line: 1,
|
|
788
|
+
offset: 0,
|
|
789
|
+
map: void 0,
|
|
790
|
+
breakLineCode: r,
|
|
791
|
+
needIndent: i,
|
|
792
|
+
indentLevel: 0
|
|
793
|
+
};
|
|
794
|
+
a && e.loc && (o.source = e.loc.source);
|
|
795
|
+
let s = () => o;
|
|
796
|
+
function c(e, t) {
|
|
797
|
+
o.code += e;
|
|
798
|
+
}
|
|
799
|
+
function l(e, t = !0) {
|
|
800
|
+
let n = t ? r : "";
|
|
801
|
+
c(i ? n + " ".repeat(e) : n);
|
|
802
|
+
}
|
|
803
|
+
function u(e = !0) {
|
|
804
|
+
let t = ++o.indentLevel;
|
|
805
|
+
e && l(t);
|
|
806
|
+
}
|
|
807
|
+
function d(e = !0) {
|
|
808
|
+
let t = --o.indentLevel;
|
|
809
|
+
e && l(t);
|
|
810
|
+
}
|
|
811
|
+
function f() {
|
|
812
|
+
l(o.indentLevel);
|
|
813
|
+
}
|
|
814
|
+
return {
|
|
815
|
+
context: s,
|
|
816
|
+
push: c,
|
|
817
|
+
indent: u,
|
|
818
|
+
deindent: d,
|
|
819
|
+
newline: f,
|
|
820
|
+
helper: (e) => `_${e}`,
|
|
821
|
+
needIndent: () => o.needIndent
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
function tt(e, t) {
|
|
825
|
+
let { helper: n } = e;
|
|
826
|
+
e.push(`${n("linked")}(`), at(e, t.key), t.modifier ? (e.push(", "), at(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
827
|
+
}
|
|
828
|
+
function nt(e, t) {
|
|
829
|
+
let { helper: n, needIndent: r } = e;
|
|
830
|
+
e.push(`${n("normalize")}([`), e.indent(r());
|
|
831
|
+
let i = t.items.length;
|
|
832
|
+
for (let n = 0; n < i && (at(e, t.items[n]), n !== i - 1); n++) e.push(", ");
|
|
833
|
+
e.deindent(r()), e.push("])");
|
|
834
|
+
}
|
|
835
|
+
function rt(e, t) {
|
|
836
|
+
let { helper: n, needIndent: r } = e;
|
|
837
|
+
if (t.cases.length > 1) {
|
|
838
|
+
e.push(`${n("plural")}([`), e.indent(r());
|
|
839
|
+
let i = t.cases.length;
|
|
840
|
+
for (let n = 0; n < i && (at(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
|
|
841
|
+
e.deindent(r()), e.push("])");
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
function it(e, t) {
|
|
845
|
+
t.body ? at(e, t.body) : e.push("null");
|
|
846
|
+
}
|
|
847
|
+
function at(t, n) {
|
|
848
|
+
let { helper: r } = t;
|
|
849
|
+
switch (n.type) {
|
|
850
|
+
case 0:
|
|
851
|
+
it(t, n);
|
|
852
|
+
break;
|
|
853
|
+
case 1:
|
|
854
|
+
rt(t, n);
|
|
855
|
+
break;
|
|
856
|
+
case 2:
|
|
857
|
+
nt(t, n);
|
|
858
|
+
break;
|
|
859
|
+
case 6:
|
|
860
|
+
tt(t, n);
|
|
861
|
+
break;
|
|
862
|
+
case 8:
|
|
863
|
+
t.push(JSON.stringify(n.value), n);
|
|
864
|
+
break;
|
|
865
|
+
case 7:
|
|
866
|
+
t.push(JSON.stringify(n.value), n);
|
|
867
|
+
break;
|
|
868
|
+
case 5:
|
|
869
|
+
t.push(`${r("interpolate")}(${r("list")}(${n.index}))`, n);
|
|
870
|
+
break;
|
|
871
|
+
case 4:
|
|
872
|
+
t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(n.key)}))`, n);
|
|
873
|
+
break;
|
|
874
|
+
case 9:
|
|
875
|
+
t.push(JSON.stringify(n.value), n);
|
|
876
|
+
break;
|
|
877
|
+
case 3:
|
|
878
|
+
t.push(JSON.stringify(n.value), n);
|
|
879
|
+
break;
|
|
880
|
+
default: if (e.env.NODE_ENV !== "production") throw Oe(H.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
881
|
+
domain: $e,
|
|
882
|
+
args: [n.type]
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
var ot = (e, t = {}) => {
|
|
887
|
+
let n = R(t.mode) ? t.mode : "normal", r = R(t.filename) ? t.filename : "message.intl";
|
|
888
|
+
t.sourceMap;
|
|
889
|
+
let i = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], s = et(e, {
|
|
890
|
+
filename: r,
|
|
891
|
+
breakLineCode: i,
|
|
892
|
+
needIndent: a
|
|
893
|
+
});
|
|
894
|
+
s.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), s.indent(a), o.length > 0 && (s.push(`const { ${ye(o.map((e) => `${e}: _${e}`), ", ")} } = ctx`), s.newline()), s.push("return "), at(s, e), s.deindent(a), s.push("}"), delete e.helpers;
|
|
895
|
+
let { code: c, map: l } = s.context();
|
|
896
|
+
return {
|
|
897
|
+
ast: e,
|
|
898
|
+
code: c,
|
|
899
|
+
map: l ? l.toJSON() : void 0
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
function st(e, t = {}) {
|
|
903
|
+
let n = M({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = We(n).parse(e);
|
|
904
|
+
return r ? (a && Ye(o), i && Qe(o), {
|
|
905
|
+
ast: o,
|
|
906
|
+
code: ""
|
|
907
|
+
}) : (Je(o, n), ot(o, n));
|
|
908
|
+
}
|
|
909
|
+
//#endregion
|
|
910
|
+
//#region node_modules/@intlify/core-base/dist/core-base.mjs
|
|
911
|
+
t();
|
|
912
|
+
function ct() {
|
|
913
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (oe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (oe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
914
|
+
}
|
|
915
|
+
function q(e) {
|
|
916
|
+
return B(e) && vt(e) === 0 && (F(e, "b") || F(e, "body"));
|
|
917
|
+
}
|
|
918
|
+
var lt = ["b", "body"];
|
|
919
|
+
function ut(e) {
|
|
920
|
+
return Tt(e, lt);
|
|
921
|
+
}
|
|
922
|
+
var dt = ["c", "cases"];
|
|
923
|
+
function ft(e) {
|
|
924
|
+
return Tt(e, dt, []);
|
|
925
|
+
}
|
|
926
|
+
var pt = ["s", "static"];
|
|
927
|
+
function mt(e) {
|
|
928
|
+
return Tt(e, pt);
|
|
929
|
+
}
|
|
930
|
+
var ht = ["i", "items"];
|
|
931
|
+
function gt(e) {
|
|
932
|
+
return Tt(e, ht, []);
|
|
933
|
+
}
|
|
934
|
+
var _t = ["t", "type"];
|
|
935
|
+
function vt(e) {
|
|
936
|
+
return Tt(e, _t);
|
|
937
|
+
}
|
|
938
|
+
var yt = ["v", "value"];
|
|
939
|
+
function bt(e, t) {
|
|
940
|
+
let n = Tt(e, yt);
|
|
941
|
+
if (n != null) return n;
|
|
942
|
+
throw Dt(t);
|
|
943
|
+
}
|
|
944
|
+
var xt = ["m", "modifier"];
|
|
945
|
+
function St(e) {
|
|
946
|
+
return Tt(e, xt);
|
|
947
|
+
}
|
|
948
|
+
var Ct = ["k", "key"];
|
|
949
|
+
function wt(e) {
|
|
950
|
+
let t = Tt(e, Ct);
|
|
951
|
+
if (t) return t;
|
|
952
|
+
throw Dt(6);
|
|
953
|
+
}
|
|
954
|
+
function Tt(e, t, n) {
|
|
955
|
+
for (let n = 0; n < t.length; n++) {
|
|
956
|
+
let r = t[n];
|
|
957
|
+
if (F(e, r) && e[r] != null) return e[r];
|
|
958
|
+
}
|
|
959
|
+
return n;
|
|
960
|
+
}
|
|
961
|
+
var Et = [
|
|
962
|
+
...lt,
|
|
963
|
+
...dt,
|
|
964
|
+
...pt,
|
|
965
|
+
...ht,
|
|
966
|
+
...Ct,
|
|
967
|
+
...xt,
|
|
968
|
+
...yt,
|
|
969
|
+
..._t
|
|
970
|
+
];
|
|
971
|
+
function Dt(e) {
|
|
972
|
+
return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
|
|
973
|
+
}
|
|
974
|
+
function Ot(e) {
|
|
975
|
+
return (t) => kt(t, e);
|
|
976
|
+
}
|
|
977
|
+
function kt(e, t) {
|
|
978
|
+
let n = ut(t);
|
|
979
|
+
if (n == null) throw Dt(0);
|
|
980
|
+
if (vt(n) === 1) {
|
|
981
|
+
let t = ft(n);
|
|
982
|
+
return e.plural(t.reduce((t, n) => [...t, At(e, n)], []));
|
|
983
|
+
} else return At(e, n);
|
|
984
|
+
}
|
|
985
|
+
function At(e, t) {
|
|
986
|
+
let n = mt(t);
|
|
987
|
+
if (n != null) return e.type === "text" ? n : e.normalize([n]);
|
|
988
|
+
{
|
|
989
|
+
let n = gt(t).reduce((t, n) => [...t, jt(e, n)], []);
|
|
990
|
+
return e.normalize(n);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
function jt(e, t) {
|
|
994
|
+
let n = vt(t);
|
|
995
|
+
switch (n) {
|
|
996
|
+
case 3: return bt(t, n);
|
|
997
|
+
case 9: return bt(t, n);
|
|
998
|
+
case 4: {
|
|
999
|
+
let r = t;
|
|
1000
|
+
if (F(r, "k") && r.k) return e.interpolate(e.named(r.k));
|
|
1001
|
+
if (F(r, "key") && r.key) return e.interpolate(e.named(r.key));
|
|
1002
|
+
throw Dt(n);
|
|
1003
|
+
}
|
|
1004
|
+
case 5: {
|
|
1005
|
+
let r = t;
|
|
1006
|
+
if (F(r, "i") && j(r.i)) return e.interpolate(e.list(r.i));
|
|
1007
|
+
if (F(r, "index") && j(r.index)) return e.interpolate(e.list(r.index));
|
|
1008
|
+
throw Dt(n);
|
|
1009
|
+
}
|
|
1010
|
+
case 6: {
|
|
1011
|
+
let n = t, r = St(n), i = wt(n);
|
|
1012
|
+
return e.linked(jt(e, i), r ? jt(e, r) : void 0, e.type);
|
|
1013
|
+
}
|
|
1014
|
+
case 7: return bt(t, n);
|
|
1015
|
+
case 8: return bt(t, n);
|
|
1016
|
+
default: throw Error(`unhandled node on format message part: ${n}`);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
var Mt = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1020
|
+
function Nt(e, t) {
|
|
1021
|
+
t && je(e) && x(O(Mt, { source: e }));
|
|
1022
|
+
}
|
|
1023
|
+
var Pt = (e) => e, Ft = N();
|
|
1024
|
+
function It(e, t = {}) {
|
|
1025
|
+
let n = !1, r = t.onError || ke;
|
|
1026
|
+
return t.onError = (e) => {
|
|
1027
|
+
n = !0, r(e);
|
|
1028
|
+
}, {
|
|
1029
|
+
...st(e, t),
|
|
1030
|
+
detectError: n
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
1034
|
+
function Lt(t, n) {
|
|
1035
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && R(t)) {
|
|
1036
|
+
let r = z(n.warnHtmlMessage) ? n.warnHtmlMessage : !0;
|
|
1037
|
+
e.env.NODE_ENV !== "production" && Nt(t, r);
|
|
1038
|
+
let i = (n.onCacheKey || Pt)(t), a = Ft[i];
|
|
1039
|
+
if (a) return a;
|
|
1040
|
+
let { ast: o, detectError: s } = It(t, {
|
|
1041
|
+
...n,
|
|
1042
|
+
location: e.env.NODE_ENV !== "production",
|
|
1043
|
+
jit: !0
|
|
1044
|
+
}), c = Ot(o);
|
|
1045
|
+
return s ? c : Ft[i] = c;
|
|
1046
|
+
} else {
|
|
1047
|
+
if (e.env.NODE_ENV !== "production" && !q(t)) return x(`the message that is resolve with key '${n.key}' is not supported for jit compilation`), (() => t);
|
|
1048
|
+
let r = t.cacheKey;
|
|
1049
|
+
return r ? Ft[r] || (Ft[r] = Ot(t)) : Ot(t);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
var Rt = null;
|
|
1053
|
+
function zt(e) {
|
|
1054
|
+
Rt = e;
|
|
1055
|
+
}
|
|
1056
|
+
function Bt(e, t, n) {
|
|
1057
|
+
Rt && Rt.emit("i18n:init", {
|
|
1058
|
+
timestamp: Date.now(),
|
|
1059
|
+
i18n: e,
|
|
1060
|
+
version: t,
|
|
1061
|
+
meta: n
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
var Vt = /* #__PURE__*/ Ht("function:translate");
|
|
1065
|
+
function Ht(e) {
|
|
1066
|
+
return (t) => Rt && Rt.emit(e, t);
|
|
1067
|
+
}
|
|
1068
|
+
var J = {
|
|
1069
|
+
INVALID_ARGUMENT: 17,
|
|
1070
|
+
INVALID_DATE_ARGUMENT: 18,
|
|
1071
|
+
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1072
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
1073
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1074
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1075
|
+
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1076
|
+
};
|
|
1077
|
+
function Ut(t) {
|
|
1078
|
+
return Oe(t, null, e.env.NODE_ENV === "production" ? void 0 : { messages: Wt });
|
|
1079
|
+
}
|
|
1080
|
+
var Wt = {
|
|
1081
|
+
[J.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1082
|
+
[J.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1083
|
+
[J.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
1084
|
+
[J.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
1085
|
+
[J.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
1086
|
+
[J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1087
|
+
[J.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1088
|
+
};
|
|
1089
|
+
function Gt(e, t) {
|
|
1090
|
+
return t.locale == null ? qt(e.locale) : qt(t.locale);
|
|
1091
|
+
}
|
|
1092
|
+
var Kt;
|
|
1093
|
+
function qt(e) {
|
|
1094
|
+
if (R(e)) return e;
|
|
1095
|
+
if (L(e)) {
|
|
1096
|
+
if (e.resolvedOnce && Kt != null) return Kt;
|
|
1097
|
+
if (e.constructor.name === "Function") {
|
|
1098
|
+
let t = e();
|
|
1099
|
+
if (he(t)) throw Ut(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1100
|
+
return Kt = t;
|
|
1101
|
+
} else throw Ut(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1102
|
+
} else throw Ut(J.NOT_SUPPORT_LOCALE_TYPE);
|
|
1103
|
+
}
|
|
1104
|
+
function Jt(e, t, n) {
|
|
1105
|
+
return [.../* @__PURE__ */ new Set([n, ...I(t) ? t : B(t) ? Object.keys(t) : R(t) ? [t] : [n]])];
|
|
1106
|
+
}
|
|
1107
|
+
function Yt(e, t, n) {
|
|
1108
|
+
let r = R(n) ? n : pn, i = e;
|
|
1109
|
+
i.__localeChainCache ||= /* @__PURE__ */ new Map();
|
|
1110
|
+
let a = i.__localeChainCache.get(r);
|
|
1111
|
+
if (!a) {
|
|
1112
|
+
a = [];
|
|
1113
|
+
let e = [n];
|
|
1114
|
+
for (; I(e);) e = Xt(a, e, t);
|
|
1115
|
+
let o = I(t) || !V(t) ? t : t.default ? t.default : null;
|
|
1116
|
+
e = R(o) ? [o] : o, I(e) && Xt(a, e, !1), i.__localeChainCache.set(r, a);
|
|
1117
|
+
}
|
|
1118
|
+
return a;
|
|
1119
|
+
}
|
|
1120
|
+
function Xt(e, t, n) {
|
|
1121
|
+
let r = !0;
|
|
1122
|
+
for (let i = 0; i < t.length && z(r); i++) {
|
|
1123
|
+
let a = t[i];
|
|
1124
|
+
R(a) && (r = Zt(e, t[i], n));
|
|
1125
|
+
}
|
|
1126
|
+
return r;
|
|
1127
|
+
}
|
|
1128
|
+
function Zt(e, t, n) {
|
|
1129
|
+
let r, i = t.split("-");
|
|
1130
|
+
do
|
|
1131
|
+
r = Qt(e, i.join("-"), n), i.splice(-1, 1);
|
|
1132
|
+
while (i.length && r === !0);
|
|
1133
|
+
return r;
|
|
1134
|
+
}
|
|
1135
|
+
function Qt(e, t, n) {
|
|
1136
|
+
let r = !1;
|
|
1137
|
+
if (!e.includes(t) && (r = !0, t)) {
|
|
1138
|
+
r = t[t.length - 1] !== "!";
|
|
1139
|
+
let i = t.replace(/!/g, "");
|
|
1140
|
+
e.push(i), (I(n) || V(n)) && n[i] && (r = n[i]);
|
|
1141
|
+
}
|
|
1142
|
+
return r;
|
|
1143
|
+
}
|
|
1144
|
+
var $t = [];
|
|
1145
|
+
$t[0] = {
|
|
1146
|
+
w: [0],
|
|
1147
|
+
i: [3, 0],
|
|
1148
|
+
"[": [4],
|
|
1149
|
+
o: [7]
|
|
1150
|
+
}, $t[1] = {
|
|
1151
|
+
w: [1],
|
|
1152
|
+
".": [2],
|
|
1153
|
+
"[": [4],
|
|
1154
|
+
o: [7]
|
|
1155
|
+
}, $t[2] = {
|
|
1156
|
+
w: [2],
|
|
1157
|
+
i: [3, 0],
|
|
1158
|
+
0: [3, 0]
|
|
1159
|
+
}, $t[3] = {
|
|
1160
|
+
i: [3, 0],
|
|
1161
|
+
0: [3, 0],
|
|
1162
|
+
w: [1, 1],
|
|
1163
|
+
".": [2, 1],
|
|
1164
|
+
"[": [4, 1],
|
|
1165
|
+
o: [7, 1]
|
|
1166
|
+
}, $t[4] = {
|
|
1167
|
+
"'": [5, 0],
|
|
1168
|
+
"\"": [6, 0],
|
|
1169
|
+
"[": [4, 2],
|
|
1170
|
+
"]": [1, 3],
|
|
1171
|
+
o: 8,
|
|
1172
|
+
l: [4, 0]
|
|
1173
|
+
}, $t[5] = {
|
|
1174
|
+
"'": [4, 0],
|
|
1175
|
+
o: 8,
|
|
1176
|
+
l: [5, 0]
|
|
1177
|
+
}, $t[6] = {
|
|
1178
|
+
"\"": [4, 0],
|
|
1179
|
+
o: 8,
|
|
1180
|
+
l: [6, 0]
|
|
1181
|
+
};
|
|
1182
|
+
var en = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1183
|
+
function tn(e) {
|
|
1184
|
+
return en.test(e);
|
|
1185
|
+
}
|
|
1186
|
+
function nn(e) {
|
|
1187
|
+
let t = e.charCodeAt(0);
|
|
1188
|
+
return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1189
|
+
}
|
|
1190
|
+
function rn(e) {
|
|
1191
|
+
if (e == null) return "o";
|
|
1192
|
+
switch (e.charCodeAt(0)) {
|
|
1193
|
+
case 91:
|
|
1194
|
+
case 93:
|
|
1195
|
+
case 46:
|
|
1196
|
+
case 34:
|
|
1197
|
+
case 39: return e;
|
|
1198
|
+
case 95:
|
|
1199
|
+
case 36:
|
|
1200
|
+
case 45: return "i";
|
|
1201
|
+
case 9:
|
|
1202
|
+
case 10:
|
|
1203
|
+
case 13:
|
|
1204
|
+
case 160:
|
|
1205
|
+
case 65279:
|
|
1206
|
+
case 8232:
|
|
1207
|
+
case 8233: return "w";
|
|
1208
|
+
}
|
|
1209
|
+
return "i";
|
|
1210
|
+
}
|
|
1211
|
+
function an(e) {
|
|
1212
|
+
let t = e.trim();
|
|
1213
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : tn(t) ? nn(t) : "*" + t;
|
|
1214
|
+
}
|
|
1215
|
+
function on(e) {
|
|
1216
|
+
let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
|
|
1217
|
+
f[0] = () => {
|
|
1218
|
+
o === void 0 ? o = s : o += s;
|
|
1219
|
+
}, f[1] = () => {
|
|
1220
|
+
o !== void 0 && (t.push(o), o = void 0);
|
|
1221
|
+
}, f[2] = () => {
|
|
1222
|
+
f[0](), i++;
|
|
1223
|
+
}, f[3] = () => {
|
|
1224
|
+
if (i > 0) i--, r = 4, f[0]();
|
|
1225
|
+
else {
|
|
1226
|
+
if (i = 0, o === void 0 || (o = an(o), o === !1)) return !1;
|
|
1227
|
+
f[1]();
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
function p() {
|
|
1231
|
+
let t = e[n + 1];
|
|
1232
|
+
if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
|
|
1233
|
+
}
|
|
1234
|
+
for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
|
|
1235
|
+
if (c = rn(a), d = $t[r], l = d[c] || d.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (u = f[l[1]], u && (s = a, u() === !1)))) return;
|
|
1236
|
+
if (r === 7) return t;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
var sn = /* @__PURE__ */ new Map();
|
|
1240
|
+
function cn(e, t) {
|
|
1241
|
+
return B(e) ? e[t] : null;
|
|
1242
|
+
}
|
|
1243
|
+
function ln(e, t) {
|
|
1244
|
+
if (!B(e)) return null;
|
|
1245
|
+
let n = sn.get(t);
|
|
1246
|
+
if (n || (n = on(t), n && sn.set(t, n)), !n) return null;
|
|
1247
|
+
let r = n.length, i = e, a = 0;
|
|
1248
|
+
for (; a < r;) {
|
|
1249
|
+
let e = n[a];
|
|
1250
|
+
if (Et.includes(e) && q(i) || !B(i) || !F(i, e)) return null;
|
|
1251
|
+
let t = i[e];
|
|
1252
|
+
if (t === void 0 || L(i)) return null;
|
|
1253
|
+
i = t, a++;
|
|
1254
|
+
}
|
|
1255
|
+
return i;
|
|
1256
|
+
}
|
|
1257
|
+
var Y = {
|
|
1258
|
+
NOT_FOUND_KEY: 1,
|
|
1259
|
+
FALLBACK_TO_TRANSLATE: 2,
|
|
1260
|
+
CANNOT_FORMAT_NUMBER: 3,
|
|
1261
|
+
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
1262
|
+
CANNOT_FORMAT_DATE: 5,
|
|
1263
|
+
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1264
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
|
|
1265
|
+
INVALID_NUMBER_ARGUMENT: 8,
|
|
1266
|
+
INVALID_DATE_ARGUMENT: 9
|
|
1267
|
+
}, un = {
|
|
1268
|
+
[Y.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1269
|
+
[Y.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1270
|
+
[Y.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1271
|
+
[Y.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1272
|
+
[Y.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1273
|
+
[Y.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1274
|
+
[Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",
|
|
1275
|
+
[Y.INVALID_NUMBER_ARGUMENT]: "Invalid argument for number formatting: expected a number but received '{value}'.",
|
|
1276
|
+
[Y.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
1277
|
+
};
|
|
1278
|
+
function dn(e, ...t) {
|
|
1279
|
+
return O(un[e], ...t);
|
|
1280
|
+
}
|
|
1281
|
+
var fn = "11.4.6", pn = "en-US", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1282
|
+
function hn() {
|
|
1283
|
+
return {
|
|
1284
|
+
upper: (e, t) => t === "text" && R(e) ? e.toUpperCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1285
|
+
lower: (e, t) => t === "text" && R(e) ? e.toLowerCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1286
|
+
capitalize: (e, t) => t === "text" && R(e) ? mn(e) : t === "vnode" && B(e) && "__v_isVNode" in e ? mn(e.children) : e
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
var gn;
|
|
1290
|
+
function _n(e) {
|
|
1291
|
+
gn = e;
|
|
1292
|
+
}
|
|
1293
|
+
var vn;
|
|
1294
|
+
function yn(e) {
|
|
1295
|
+
vn = e;
|
|
1296
|
+
}
|
|
1297
|
+
var bn;
|
|
1298
|
+
function xn(e) {
|
|
1299
|
+
bn = e;
|
|
1300
|
+
}
|
|
1301
|
+
var Sn = null, Cn = /* @__NO_SIDE_EFFECTS__ */ () => Sn, wn = null, Tn = (e) => {
|
|
1302
|
+
wn = e;
|
|
1303
|
+
}, En = () => wn, Dn = 0;
|
|
1304
|
+
function On(t = {}) {
|
|
1305
|
+
let n = L(t.onWarn) ? t.onWarn : x, r = R(t.version) ? t.version : fn, i = R(t.locale) || L(t.locale) ? t.locale : pn, a = L(i) ? pn : i, o = I(t.fallbackLocale) || V(t.fallbackLocale) || R(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : a, s = V(t.messages) ? t.messages : kn(a), c = V(t.datetimeFormats) ? t.datetimeFormats : kn(a), l = V(t.numberFormats) ? t.numberFormats : kn(a), u = M(N(), t.modifiers, hn()), d = t.pluralRules || N(), f = L(t.missing) ? t.missing : null, p = z(t.missingWarn) || ne(t.missingWarn) ? t.missingWarn : !0, m = z(t.fallbackWarn) || ne(t.fallbackWarn) ? t.fallbackWarn : !0, h = !!t.fallbackFormat, g = !!t.unresolving, _ = L(t.postTranslation) ? t.postTranslation : null, v = V(t.processor) ? t.processor : null, y = z(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, b = !!t.escapeParameter, S = L(t.messageCompiler) ? t.messageCompiler : gn;
|
|
1306
|
+
e.env.NODE_ENV !== "production" && L(t.messageCompiler) && C(dn(Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1307
|
+
let w = L(t.messageResolver) ? t.messageResolver : vn || cn, T = L(t.localeFallbacker) ? t.localeFallbacker : bn || Jt, E = B(t.fallbackContext) ? t.fallbackContext : void 0, D = t, O = B(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), k = B(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), A = B(D.__meta) ? D.__meta : {};
|
|
1308
|
+
Dn++;
|
|
1309
|
+
let ee = {
|
|
1310
|
+
version: r,
|
|
1311
|
+
cid: Dn,
|
|
1312
|
+
locale: i,
|
|
1313
|
+
fallbackLocale: o,
|
|
1314
|
+
messages: s,
|
|
1315
|
+
modifiers: u,
|
|
1316
|
+
pluralRules: d,
|
|
1317
|
+
missing: f,
|
|
1318
|
+
missingWarn: p,
|
|
1319
|
+
fallbackWarn: m,
|
|
1320
|
+
fallbackFormat: h,
|
|
1321
|
+
unresolving: g,
|
|
1322
|
+
postTranslation: _,
|
|
1323
|
+
processor: v,
|
|
1324
|
+
warnHtmlMessage: y,
|
|
1325
|
+
escapeParameter: b,
|
|
1326
|
+
messageCompiler: S,
|
|
1327
|
+
messageResolver: w,
|
|
1328
|
+
localeFallbacker: T,
|
|
1329
|
+
fallbackContext: E,
|
|
1330
|
+
onWarn: n,
|
|
1331
|
+
__meta: A
|
|
1332
|
+
};
|
|
1333
|
+
return ee.datetimeFormats = c, ee.numberFormats = l, ee.__datetimeFormatters = O, ee.__numberFormatters = k, e.env.NODE_ENV !== "production" && (ee.__v_emitter = D.__v_emitter == null ? void 0 : D.__v_emitter), (e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Bt(ee, r, A), ee;
|
|
1334
|
+
}
|
|
1335
|
+
var kn = (e) => ({ [e]: N() });
|
|
1336
|
+
function An(e, t) {
|
|
1337
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1338
|
+
}
|
|
1339
|
+
function jn(e, t) {
|
|
1340
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1341
|
+
}
|
|
1342
|
+
function Mn(t, n, r, i, a) {
|
|
1343
|
+
let { missing: o, onWarn: s } = t;
|
|
1344
|
+
if (e.env.NODE_ENV !== "production") {
|
|
1345
|
+
let e = t.__v_emitter;
|
|
1346
|
+
e && e.emit("missing", {
|
|
1347
|
+
locale: r,
|
|
1348
|
+
key: n,
|
|
1349
|
+
type: a,
|
|
1350
|
+
groupId: `${a}:${n}`
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
if (o !== null) {
|
|
1354
|
+
let e = o(t, r, n, a);
|
|
1355
|
+
return R(e) ? e : n;
|
|
1356
|
+
} else return e.env.NODE_ENV !== "production" && jn(i, n) && s(dn(Y.NOT_FOUND_KEY, {
|
|
1357
|
+
key: n,
|
|
1358
|
+
locale: r
|
|
1359
|
+
})), n;
|
|
1360
|
+
}
|
|
1361
|
+
function Nn(e, t, n) {
|
|
1362
|
+
let r = e;
|
|
1363
|
+
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1364
|
+
}
|
|
1365
|
+
function Pn(e, t) {
|
|
1366
|
+
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1367
|
+
}
|
|
1368
|
+
function Fn(e, t) {
|
|
1369
|
+
let n = t.indexOf(e);
|
|
1370
|
+
if (n === -1) return !1;
|
|
1371
|
+
for (let r = n + 1; r < t.length; r++) if (Pn(e, t[r])) return !0;
|
|
1372
|
+
return !1;
|
|
1373
|
+
}
|
|
1374
|
+
var In = typeof Intl < "u", Ln = {
|
|
1375
|
+
dateTimeFormat: In && Intl.DateTimeFormat !== void 0,
|
|
1376
|
+
numberFormat: In && Intl.NumberFormat !== void 0
|
|
1377
|
+
};
|
|
1378
|
+
function Rn(t, ...n) {
|
|
1379
|
+
let { datetimeFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = t, { __datetimeFormatters: c } = t;
|
|
1380
|
+
if (e.env.NODE_ENV !== "production" && !Ln.dateTimeFormat) return o(dn(Y.CANNOT_FORMAT_DATE)), "";
|
|
1381
|
+
if (!R(n[0]) && !te(n[0]) && !j(n[0])) return e.env.NODE_ENV !== "production" && o(dn(Y.INVALID_DATE_ARGUMENT, { value: String(n[0]) })), "";
|
|
1382
|
+
let [l, u, d, f] = Bn(...n), p = z(d.missingWarn) ? d.missingWarn : t.missingWarn, m = z(d.fallbackWarn) ? d.fallbackWarn : t.fallbackWarn, h = !!d.part, g = Gt(t, d), _ = s(t, a, g);
|
|
1383
|
+
if (!R(l) || l === "") {
|
|
1384
|
+
let e = new Intl.DateTimeFormat(g.replace(/!/g, ""), f);
|
|
1385
|
+
return h ? e.formatToParts(u) : e.format(u);
|
|
1386
|
+
}
|
|
1387
|
+
let v = {}, y, b = null, x = g, S = null, C = "datetime format";
|
|
1388
|
+
for (let n = 0; n < _.length; n++) {
|
|
1389
|
+
if (y = S = _[n], e.env.NODE_ENV !== "production" && g !== y && An(m, l) && o(dn(Y.FALLBACK_TO_DATE_FORMAT, {
|
|
1390
|
+
key: l,
|
|
1391
|
+
target: y
|
|
1392
|
+
})), e.env.NODE_ENV !== "production" && g !== y) {
|
|
1393
|
+
let e = t.__v_emitter;
|
|
1394
|
+
e && e.emit("fallback", {
|
|
1395
|
+
type: C,
|
|
1396
|
+
key: l,
|
|
1397
|
+
from: x,
|
|
1398
|
+
to: S,
|
|
1399
|
+
groupId: `${C}:${l}`
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1402
|
+
if (v = r[y] || {}, b = v[l], V(b)) break;
|
|
1403
|
+
Mn(t, l, y, p, C), x = S;
|
|
1404
|
+
}
|
|
1405
|
+
if (!V(b) || !R(y)) return i ? -1 : l;
|
|
1406
|
+
let w = `${y}__${l}`;
|
|
1407
|
+
re(f) || (w = `${w}__${JSON.stringify(f)}`);
|
|
1408
|
+
let T = c.get(w);
|
|
1409
|
+
return T || (T = new Intl.DateTimeFormat(y, M({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
|
|
1410
|
+
}
|
|
1411
|
+
var zn = [
|
|
1412
|
+
"localeMatcher",
|
|
1413
|
+
"weekday",
|
|
1414
|
+
"era",
|
|
1415
|
+
"year",
|
|
1416
|
+
"month",
|
|
1417
|
+
"day",
|
|
1418
|
+
"hour",
|
|
1419
|
+
"minute",
|
|
1420
|
+
"second",
|
|
1421
|
+
"timeZoneName",
|
|
1422
|
+
"formatMatcher",
|
|
1423
|
+
"hour12",
|
|
1424
|
+
"timeZone",
|
|
1425
|
+
"dateStyle",
|
|
1426
|
+
"timeStyle",
|
|
1427
|
+
"calendar",
|
|
1428
|
+
"dayPeriod",
|
|
1429
|
+
"numberingSystem",
|
|
1430
|
+
"hourCycle",
|
|
1431
|
+
"fractionalSecondDigits"
|
|
1432
|
+
];
|
|
1433
|
+
function Bn(...e) {
|
|
1434
|
+
let [t, n, r, i] = e, a = N(), o = N(), s;
|
|
1435
|
+
if (R(t)) {
|
|
1436
|
+
let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1437
|
+
if (!e) throw Ut(J.INVALID_ISO_DATE_ARGUMENT);
|
|
1438
|
+
let n = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
|
|
1439
|
+
s = new Date(n);
|
|
1440
|
+
try {
|
|
1441
|
+
s.toISOString();
|
|
1442
|
+
} catch {
|
|
1443
|
+
throw Ut(J.INVALID_ISO_DATE_ARGUMENT);
|
|
1444
|
+
}
|
|
1445
|
+
} else if (te(t)) {
|
|
1446
|
+
if (isNaN(t.getTime())) throw Ut(J.INVALID_DATE_ARGUMENT);
|
|
1447
|
+
s = t;
|
|
1448
|
+
} else if (j(t)) s = t;
|
|
1449
|
+
else throw Ut(J.INVALID_ARGUMENT);
|
|
1450
|
+
return R(n) ? a.key = n : V(n) && Object.keys(n).forEach((e) => {
|
|
1451
|
+
zn.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
1452
|
+
}), R(r) ? a.locale = r : V(r) && (o = r), V(i) && (o = i), [
|
|
1453
|
+
a.key || "",
|
|
1454
|
+
s,
|
|
1455
|
+
a,
|
|
1456
|
+
o
|
|
1457
|
+
];
|
|
1458
|
+
}
|
|
1459
|
+
function Vn(e, t, n) {
|
|
1460
|
+
let r = e;
|
|
1461
|
+
for (let e in n) {
|
|
1462
|
+
let n = `${t}__${e}`;
|
|
1463
|
+
r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
function Hn(t, ...n) {
|
|
1467
|
+
let { numberFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = t, { __numberFormatters: c } = t;
|
|
1468
|
+
if (e.env.NODE_ENV !== "production" && !Ln.numberFormat) return o(dn(Y.CANNOT_FORMAT_NUMBER)), "";
|
|
1469
|
+
if (!j(n[0])) return e.env.NODE_ENV !== "production" && o(dn(Y.INVALID_NUMBER_ARGUMENT, { value: String(n[0]) })), "";
|
|
1470
|
+
let [l, u, d, f] = Wn(...n), p = z(d.missingWarn) ? d.missingWarn : t.missingWarn, m = z(d.fallbackWarn) ? d.fallbackWarn : t.fallbackWarn, h = !!d.part, g = Gt(t, d), _ = s(t, a, g);
|
|
1471
|
+
if (!R(l) || l === "") {
|
|
1472
|
+
let e = new Intl.NumberFormat(g.replace(/!/g, ""), f);
|
|
1473
|
+
return h ? e.formatToParts(u) : e.format(u);
|
|
1474
|
+
}
|
|
1475
|
+
let v = {}, y, b = null, x = g, S = null, C = "number format";
|
|
1476
|
+
for (let n = 0; n < _.length; n++) {
|
|
1477
|
+
if (y = S = _[n], e.env.NODE_ENV !== "production" && g !== y && An(m, l) && o(dn(Y.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1478
|
+
key: l,
|
|
1479
|
+
target: y
|
|
1480
|
+
})), e.env.NODE_ENV !== "production" && g !== y) {
|
|
1481
|
+
let e = t.__v_emitter;
|
|
1482
|
+
e && e.emit("fallback", {
|
|
1483
|
+
type: C,
|
|
1484
|
+
key: l,
|
|
1485
|
+
from: x,
|
|
1486
|
+
to: S,
|
|
1487
|
+
groupId: `${C}:${l}`
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
if (v = r[y] || {}, b = v[l], V(b)) break;
|
|
1491
|
+
Mn(t, l, y, p, C), x = S;
|
|
1492
|
+
}
|
|
1493
|
+
if (!V(b) || !R(y)) return i ? -1 : l;
|
|
1494
|
+
let w = `${y}__${l}`;
|
|
1495
|
+
re(f) || (w = `${w}__${JSON.stringify(f)}`);
|
|
1496
|
+
let T = c.get(w);
|
|
1497
|
+
return T || (T = new Intl.NumberFormat(y, M({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
|
|
1498
|
+
}
|
|
1499
|
+
var Un = [
|
|
1500
|
+
"localeMatcher",
|
|
1501
|
+
"style",
|
|
1502
|
+
"currency",
|
|
1503
|
+
"currencyDisplay",
|
|
1504
|
+
"currencySign",
|
|
1505
|
+
"useGrouping",
|
|
1506
|
+
"minimumIntegerDigits",
|
|
1507
|
+
"minimumFractionDigits",
|
|
1508
|
+
"maximumFractionDigits",
|
|
1509
|
+
"minimumSignificantDigits",
|
|
1510
|
+
"maximumSignificantDigits",
|
|
1511
|
+
"compactDisplay",
|
|
1512
|
+
"notation",
|
|
1513
|
+
"signDisplay",
|
|
1514
|
+
"unit",
|
|
1515
|
+
"unitDisplay",
|
|
1516
|
+
"roundingMode",
|
|
1517
|
+
"roundingPriority",
|
|
1518
|
+
"roundingIncrement",
|
|
1519
|
+
"trailingZeroDisplay"
|
|
1520
|
+
];
|
|
1521
|
+
function Wn(...e) {
|
|
1522
|
+
let [t, n, r, i] = e, a = N(), o = N();
|
|
1523
|
+
if (!j(t)) throw Ut(J.INVALID_ARGUMENT);
|
|
1524
|
+
let s = t;
|
|
1525
|
+
return R(n) ? a.key = n : V(n) && Object.keys(n).forEach((e) => {
|
|
1526
|
+
Un.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
1527
|
+
}), R(r) ? a.locale = r : V(r) && (o = r), V(i) && (o = i), [
|
|
1528
|
+
a.key || "",
|
|
1529
|
+
s,
|
|
1530
|
+
a,
|
|
1531
|
+
o
|
|
1532
|
+
];
|
|
1533
|
+
}
|
|
1534
|
+
function Gn(e, t, n) {
|
|
1535
|
+
let r = e;
|
|
1536
|
+
for (let e in n) {
|
|
1537
|
+
let n = `${t}__${e}`;
|
|
1538
|
+
r.__numberFormatters.has(n) && r.__numberFormatters.delete(n);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
var Kn = (e) => e, qn = (e) => "", Jn = "text", Yn = (e) => e.length === 0 ? "" : ye(e), Xn = ve;
|
|
1542
|
+
function Zn(e, t) {
|
|
1543
|
+
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
1544
|
+
}
|
|
1545
|
+
function Qn(e) {
|
|
1546
|
+
let t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1547
|
+
return j(e.named?.count) ? e.named.count : j(e.named?.n) ? e.named.n : t;
|
|
1548
|
+
}
|
|
1549
|
+
function $n(e = {}) {
|
|
1550
|
+
let t = e.locale, n = Qn(e), r = R(t) && L(e.pluralRules?.[t]) ? e.pluralRules[t] : Zn, i = r === Zn ? void 0 : Zn, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || N();
|
|
1551
|
+
j(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
1552
|
+
let l = (e) => c[e];
|
|
1553
|
+
function u(t, n) {
|
|
1554
|
+
return (L(e.messages) ? e.messages(t, !!n) : B(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : qn);
|
|
1555
|
+
}
|
|
1556
|
+
let d = (t) => e.modifiers ? e.modifiers[t] : Kn, f = L(e.processor?.normalize) ? e.processor.normalize : Yn, p = L(e.processor?.interpolate) ? e.processor.interpolate : Xn, m = {
|
|
1557
|
+
list: s,
|
|
1558
|
+
named: l,
|
|
1559
|
+
plural: a,
|
|
1560
|
+
linked: (e, ...t) => {
|
|
1561
|
+
let [n, r] = t, i = "text", a = "";
|
|
1562
|
+
t.length === 1 ? B(n) ? (a = n.modifier || a, i = n.type || i) : R(n) && (a = n || a) : t.length === 2 && (R(n) && (a = n || a), R(r) && (i = r || i));
|
|
1563
|
+
let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && I(s) && a ? s[0] : s;
|
|
1564
|
+
return a ? d(a)(c, i) : c;
|
|
1565
|
+
},
|
|
1566
|
+
message: u,
|
|
1567
|
+
type: R(e.processor?.type) ? e.processor.type : Jn,
|
|
1568
|
+
interpolate: p,
|
|
1569
|
+
normalize: f,
|
|
1570
|
+
values: M(N(), o, c)
|
|
1571
|
+
};
|
|
1572
|
+
return m;
|
|
1573
|
+
}
|
|
1574
|
+
var er = () => "", X = (e) => L(e);
|
|
1575
|
+
function tr(t, ...n) {
|
|
1576
|
+
let { fallbackFormat: r, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: c } = t, [l, u] = or(...n), d = z(u.missingWarn) ? u.missingWarn : t.missingWarn, f = z(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = z(u.escapeParameter) ? u.escapeParameter : t.escapeParameter, m = !!u.resolvedMessage, h = R(u.default) || z(u.default) ? z(u.default) ? o ? l : () => l : u.default : r ? o ? l : () => l : null, g = r || h != null && (R(h) || L(h)), _ = Gt(t, u);
|
|
1577
|
+
p && nr(u);
|
|
1578
|
+
let [v, y, b] = m ? [
|
|
1579
|
+
l,
|
|
1580
|
+
_,
|
|
1581
|
+
c[_] || N()
|
|
1582
|
+
] : rr(t, l, _, s, f, d), S = v, C = l;
|
|
1583
|
+
if (!m && !(R(S) || q(S) || X(S)) && g && (S = h, C = S), !m && (!(R(S) || q(S) || X(S)) || !R(y))) return a ? -1 : l;
|
|
1584
|
+
if (e.env.NODE_ENV !== "production" && R(S) && t.messageCompiler == null) return x(`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 '${l}'.`), l;
|
|
1585
|
+
let w = !1, T = X(S) ? S : ir(t, l, y, S, C, () => {
|
|
1586
|
+
w = !0;
|
|
1587
|
+
});
|
|
1588
|
+
if (w) return S;
|
|
1589
|
+
let E = ar(t, T, $n(lr(t, y, b, u))), D = i ? i(E, l) : E;
|
|
1590
|
+
if (p && R(D) && (D = pe(D)), e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1591
|
+
let e = {
|
|
1592
|
+
timestamp: Date.now(),
|
|
1593
|
+
key: R(l) ? l : X(S) ? S.key : "",
|
|
1594
|
+
locale: y || (X(S) ? S.locale : ""),
|
|
1595
|
+
format: R(S) ? S : X(S) ? S.source : "",
|
|
1596
|
+
message: D
|
|
1597
|
+
};
|
|
1598
|
+
e.meta = M({}, t.__meta, /* @__PURE__ */ Cn() || {}), Vt(e);
|
|
1599
|
+
}
|
|
1600
|
+
return D;
|
|
1601
|
+
}
|
|
1602
|
+
function nr(e) {
|
|
1603
|
+
I(e.list) ? e.list = e.list.map((e) => R(e) ? se(e) : e) : B(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1604
|
+
R(e.named[t]) && (e.named[t] = se(e.named[t]));
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1607
|
+
function rr(t, n, r, i, a, o) {
|
|
1608
|
+
let { messages: s, onWarn: c, messageResolver: l, localeFallbacker: u } = t, d = u(t, i, r), f = N(), p, m = null, h = r, g = null, _ = "translate";
|
|
1609
|
+
for (let i = 0; i < d.length; i++) {
|
|
1610
|
+
p = g = d[i], e.env.NODE_ENV !== "production" && r !== p && !Pn(r, p) && An(a, n) && c(dn(Y.FALLBACK_TO_TRANSLATE, {
|
|
1611
|
+
key: n,
|
|
1612
|
+
target: p
|
|
1613
|
+
}));
|
|
1614
|
+
let u = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter;
|
|
1615
|
+
e.env.NODE_ENV !== "production" && r !== p && u && u.emit("fallback", {
|
|
1616
|
+
type: _,
|
|
1617
|
+
key: n,
|
|
1618
|
+
from: h,
|
|
1619
|
+
to: g,
|
|
1620
|
+
groupId: `${_}:${n}`
|
|
1621
|
+
}), f = s[p] || N();
|
|
1622
|
+
let v = null, y, b;
|
|
1623
|
+
if (e.env.NODE_ENV !== "production" && w && u && (v = window.performance.now(), y = "intlify-message-resolve-start", b = "intlify-message-resolve-end", T && T(y)), (m = l(f, n)) === null && (m = f[n]), e.env.NODE_ENV !== "production" && w && u) {
|
|
1624
|
+
let e = window.performance.now();
|
|
1625
|
+
u && v && m && u.emit("message-resolve", {
|
|
1626
|
+
type: "message-resolve",
|
|
1627
|
+
key: n,
|
|
1628
|
+
message: m,
|
|
1629
|
+
time: e - v,
|
|
1630
|
+
groupId: `${_}:${n}`
|
|
1631
|
+
}), y && b && T && E && (T(b), E("intlify message resolve", y, b));
|
|
1632
|
+
}
|
|
1633
|
+
if (R(m) || q(m) || X(m)) break;
|
|
1634
|
+
if (!Fn(p, d)) {
|
|
1635
|
+
let e = Mn(t, n, p, o, _);
|
|
1636
|
+
e !== n && (m = e);
|
|
1637
|
+
}
|
|
1638
|
+
h = g;
|
|
1639
|
+
}
|
|
1640
|
+
return [
|
|
1641
|
+
m,
|
|
1642
|
+
p,
|
|
1643
|
+
f
|
|
1644
|
+
];
|
|
1645
|
+
}
|
|
1646
|
+
function ir(t, n, r, i, a, o) {
|
|
1647
|
+
let { messageCompiler: s, warnHtmlMessage: c } = t;
|
|
1648
|
+
if (X(i)) {
|
|
1649
|
+
let e = i;
|
|
1650
|
+
return e.locale = e.locale || r, e.key = e.key || n, e;
|
|
1651
|
+
}
|
|
1652
|
+
if (s == null) {
|
|
1653
|
+
let e = (() => i);
|
|
1654
|
+
return e.locale = r, e.key = n, e;
|
|
1655
|
+
}
|
|
1656
|
+
let l = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter, u = null, d, f;
|
|
1657
|
+
e.env.NODE_ENV !== "production" && w && l && (u = window.performance.now(), d = "intlify-message-compilation-start", f = "intlify-message-compilation-end", T && T(d));
|
|
1658
|
+
let p = s(i, sr(t, r, a, i, c, o));
|
|
1659
|
+
if (e.env.NODE_ENV !== "production" && w && l) {
|
|
1660
|
+
let e = window.performance.now();
|
|
1661
|
+
l && u && l.emit("message-compilation", {
|
|
1662
|
+
type: "message-compilation",
|
|
1663
|
+
message: i,
|
|
1664
|
+
time: e - u,
|
|
1665
|
+
groupId: `translate:${n}`
|
|
1666
|
+
}), d && f && T && E && (T(f), E("intlify message compilation", d, f));
|
|
1667
|
+
}
|
|
1668
|
+
return p.locale = r, p.key = n, p.source = i, p;
|
|
1669
|
+
}
|
|
1670
|
+
function ar(t, n, r) {
|
|
1671
|
+
let i = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter, a = null, o, s;
|
|
1672
|
+
e.env.NODE_ENV !== "production" && w && i && (a = window.performance.now(), o = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", T && T(o));
|
|
1673
|
+
let c = n(r);
|
|
1674
|
+
if (e.env.NODE_ENV !== "production" && w && i) {
|
|
1675
|
+
let e = window.performance.now();
|
|
1676
|
+
i && a && i.emit("message-evaluation", {
|
|
1677
|
+
type: "message-evaluation",
|
|
1678
|
+
value: c,
|
|
1679
|
+
time: e - a,
|
|
1680
|
+
groupId: `translate:${n.key}`
|
|
1681
|
+
}), o && s && T && E && (T(s), E("intlify message evaluation", o, s));
|
|
1682
|
+
}
|
|
1683
|
+
return c;
|
|
1684
|
+
}
|
|
1685
|
+
function or(...e) {
|
|
1686
|
+
let [t, n, r] = e, i = N();
|
|
1687
|
+
if (!R(t) && !j(t) && !X(t) && !q(t)) throw Ut(J.INVALID_ARGUMENT);
|
|
1688
|
+
let a = j(t) ? String(t) : (X(t), t);
|
|
1689
|
+
return j(n) ? i.plural = n : R(n) ? i.default = n : V(n) && !re(n) ? i.named = n : I(n) && (i.list = n), j(r) ? i.plural = r : R(r) ? i.default = r : V(r) && M(i, r), [a, i];
|
|
1690
|
+
}
|
|
1691
|
+
function sr(t, n, r, i, a, o) {
|
|
1692
|
+
return {
|
|
1693
|
+
locale: n,
|
|
1694
|
+
key: r,
|
|
1695
|
+
warnHtmlMessage: a,
|
|
1696
|
+
onError: (n) => {
|
|
1697
|
+
if (o && o(n), e.env.NODE_ENV !== "production") {
|
|
1698
|
+
let e = cr(i), a = n.location && e && xe(e, n.location.start.offset, n.location.end.offset), o = t.__v_emitter;
|
|
1699
|
+
o && e && o.emit("compile-error", {
|
|
1700
|
+
message: e,
|
|
1701
|
+
error: n.message,
|
|
1702
|
+
start: n.location && n.location.start.offset,
|
|
1703
|
+
end: n.location && n.location.end.offset,
|
|
1704
|
+
groupId: `translate:${r}`
|
|
1705
|
+
});
|
|
1706
|
+
let s = `Message compilation error: ${n.message}`;
|
|
1707
|
+
throw SyntaxError(a ? `${s}\n${a}` : s);
|
|
1708
|
+
}
|
|
1709
|
+
throw n;
|
|
1710
|
+
},
|
|
1711
|
+
onCacheKey: (e) => A(n, r, e)
|
|
1712
|
+
};
|
|
1713
|
+
}
|
|
1714
|
+
function cr(e) {
|
|
1715
|
+
if (R(e)) return e;
|
|
1716
|
+
if (e.loc && e.loc.source) return e.loc.source;
|
|
1717
|
+
}
|
|
1718
|
+
function lr(e, t, n, r) {
|
|
1719
|
+
let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
|
|
1720
|
+
locale: t,
|
|
1721
|
+
modifiers: i,
|
|
1722
|
+
pluralRules: a,
|
|
1723
|
+
messages: (r, i) => {
|
|
1724
|
+
let a = o(n, r);
|
|
1725
|
+
if (a == null && (u || i)) {
|
|
1726
|
+
let [n, , i] = rr(u || e, r, t, s, c, l);
|
|
1727
|
+
a = n ?? o(i, r);
|
|
1728
|
+
}
|
|
1729
|
+
if (R(a) || q(a)) {
|
|
1730
|
+
let n = !1, i = ir(e, r, t, a, r, () => {
|
|
1731
|
+
n = !0;
|
|
1732
|
+
});
|
|
1733
|
+
return n ? er : i;
|
|
1734
|
+
} else if (X(a)) return a;
|
|
1735
|
+
else return er;
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), j(r.plural) && (d.pluralIndex = r.plural), d;
|
|
1739
|
+
}
|
|
1740
|
+
ct();
|
|
1741
|
+
//#endregion
|
|
1742
|
+
//#region node_modules/vue-i18n/node_modules/@vue/devtools-api/lib/esm/env.js
|
|
1743
|
+
function ur() {
|
|
1744
|
+
return dr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1745
|
+
}
|
|
1746
|
+
function dr() {
|
|
1747
|
+
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1748
|
+
}
|
|
1749
|
+
var fr = typeof Proxy == "function", pr = "devtools-plugin:setup", mr = "plugin:settings:set", hr, gr;
|
|
1750
|
+
function _r() {
|
|
1751
|
+
return hr === void 0 && (typeof window < "u" && window.performance ? (hr = !0, gr = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (hr = !0, gr = globalThis.perf_hooks.performance) : hr = !1), hr;
|
|
1752
|
+
}
|
|
1753
|
+
function vr() {
|
|
1754
|
+
return _r() ? gr.now() : Date.now();
|
|
1755
|
+
}
|
|
1756
|
+
//#endregion
|
|
1757
|
+
//#region node_modules/vue-i18n/node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
1758
|
+
var yr = class {
|
|
1759
|
+
constructor(e, t) {
|
|
1760
|
+
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
1761
|
+
let n = {};
|
|
1762
|
+
if (e.settings) for (let t in e.settings) n[t] = e.settings[t].defaultValue;
|
|
1763
|
+
let r = `__vue-devtools-plugin-settings__${e.id}`, i = Object.assign({}, n);
|
|
1764
|
+
try {
|
|
1765
|
+
let e = localStorage.getItem(r), t = JSON.parse(e);
|
|
1766
|
+
Object.assign(i, t);
|
|
1767
|
+
} catch {}
|
|
1768
|
+
this.fallbacks = {
|
|
1769
|
+
getSettings() {
|
|
1770
|
+
return i;
|
|
1771
|
+
},
|
|
1772
|
+
setSettings(e) {
|
|
1773
|
+
try {
|
|
1774
|
+
localStorage.setItem(r, JSON.stringify(e));
|
|
1775
|
+
} catch {}
|
|
1776
|
+
i = e;
|
|
1777
|
+
},
|
|
1778
|
+
now() {
|
|
1779
|
+
return vr();
|
|
1780
|
+
}
|
|
1781
|
+
}, t && t.on(mr, (e, t) => {
|
|
1782
|
+
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
1783
|
+
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
1784
|
+
this.onQueue.push({
|
|
1785
|
+
method: t,
|
|
1786
|
+
args: e
|
|
1787
|
+
});
|
|
1788
|
+
} }), this.proxiedTarget = new Proxy({}, { get: (e, t) => this.target ? this.target[t] : t === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(t) ? (...e) => (this.targetQueue.push({
|
|
1789
|
+
method: t,
|
|
1790
|
+
args: e,
|
|
1791
|
+
resolve: () => {}
|
|
1792
|
+
}), this.fallbacks[t](...e)) : (...e) => new Promise((n) => {
|
|
1793
|
+
this.targetQueue.push({
|
|
1794
|
+
method: t,
|
|
1795
|
+
args: e,
|
|
1796
|
+
resolve: n
|
|
1797
|
+
});
|
|
1798
|
+
}) });
|
|
1799
|
+
}
|
|
1800
|
+
async setRealTarget(e) {
|
|
1801
|
+
this.target = e;
|
|
1802
|
+
for (let e of this.onQueue) this.target.on[e.method](...e.args);
|
|
1803
|
+
for (let e of this.targetQueue) e.resolve(await this.target[e.method](...e.args));
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1806
|
+
//#endregion
|
|
1807
|
+
//#region node_modules/vue-i18n/node_modules/@vue/devtools-api/lib/esm/index.js
|
|
1808
|
+
function br(e, t) {
|
|
1809
|
+
let n = e, r = dr(), i = ur(), a = fr && n.enableEarlyProxy;
|
|
1810
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(pr, e, t);
|
|
1811
|
+
else {
|
|
1812
|
+
let e = a ? new yr(n, i) : null;
|
|
1813
|
+
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1814
|
+
pluginDescriptor: n,
|
|
1815
|
+
setupFn: t,
|
|
1816
|
+
proxy: e
|
|
1817
|
+
}), e && t(e.proxiedTarget);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
//#endregion
|
|
1821
|
+
//#region node_modules/vue-i18n/dist/vue-i18n.mjs
|
|
1822
|
+
t();
|
|
1823
|
+
var xr = "11.4.6";
|
|
1824
|
+
function Sr() {
|
|
1825
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (oe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (oe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (oe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (oe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1826
|
+
}
|
|
1827
|
+
var Z = {
|
|
1828
|
+
UNEXPECTED_RETURN_TYPE: 24,
|
|
1829
|
+
INVALID_ARGUMENT: 25,
|
|
1830
|
+
MUST_BE_CALL_SETUP_TOP: 26,
|
|
1831
|
+
NOT_INSTALLED: 27,
|
|
1832
|
+
REQUIRED_VALUE: 28,
|
|
1833
|
+
INVALID_VALUE: 29,
|
|
1834
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
|
|
1835
|
+
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
1836
|
+
UNEXPECTED_ERROR: 32,
|
|
1837
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
1838
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
1839
|
+
};
|
|
1840
|
+
function Q(t, ...n) {
|
|
1841
|
+
return Oe(t, null, e.env.NODE_ENV === "production" ? void 0 : {
|
|
1842
|
+
messages: Cr,
|
|
1843
|
+
args: n
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1846
|
+
var Cr = {
|
|
1847
|
+
[Z.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
1848
|
+
[Z.INVALID_ARGUMENT]: "Invalid argument",
|
|
1849
|
+
[Z.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
1850
|
+
[Z.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
1851
|
+
[Z.UNEXPECTED_ERROR]: "Unexpected error",
|
|
1852
|
+
[Z.REQUIRED_VALUE]: "Required in value: {0}",
|
|
1853
|
+
[Z.INVALID_VALUE]: "Invalid value",
|
|
1854
|
+
[Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
1855
|
+
[Z.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
1856
|
+
[Z.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
1857
|
+
[Z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1858
|
+
}, wr = /* #__PURE__*/ k("__translateVNode"), Tr = /* #__PURE__*/ k("__datetimeParts"), Er = /* #__PURE__*/ k("__numberParts"), Dr = /* #__PURE__*/ k("__enableEmitter"), Or = /* #__PURE__*/ k("__disableEmitter"), kr = k("__setPluralRules");
|
|
1859
|
+
k("__intlifyMeta");
|
|
1860
|
+
var Ar = /* #__PURE__*/ k("__injectWithOption"), jr = /* #__PURE__*/ k("__dispose"), $ = {
|
|
1861
|
+
FALLBACK_TO_ROOT: 10,
|
|
1862
|
+
NOT_FOUND_PARENT_SCOPE: 11,
|
|
1863
|
+
IGNORE_OBJ_FLATTEN: 12,
|
|
1864
|
+
DEPRECATE_LEGACY_MODE: 13,
|
|
1865
|
+
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 14,
|
|
1866
|
+
DUPLICATE_USE_I18N_CALLING: 15
|
|
1867
|
+
}, Mr = {
|
|
1868
|
+
[$.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
1869
|
+
[$.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
1870
|
+
[$.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
1871
|
+
[$.DEPRECATE_LEGACY_MODE]: "Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",
|
|
1872
|
+
[$.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
1873
|
+
[$.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
1874
|
+
};
|
|
1875
|
+
function Nr(e, ...t) {
|
|
1876
|
+
return O(Mr[e], ...t);
|
|
1877
|
+
}
|
|
1878
|
+
function Pr(t) {
|
|
1879
|
+
if (!B(t) || q(t)) return t;
|
|
1880
|
+
for (let n in t) if (F(t, n)) if (!n.includes(".")) B(t[n]) && Pr(t[n]);
|
|
1881
|
+
else {
|
|
1882
|
+
let r = n.split("."), i = r.length - 1, a = t, o = !1;
|
|
1883
|
+
for (let t = 0; t < i; t++) {
|
|
1884
|
+
if (r[t] === "__proto__") throw Error(`unsafe key: ${r[t]}`);
|
|
1885
|
+
if (r[t] in a || (a[r[t]] = N()), !B(a[r[t]])) {
|
|
1886
|
+
e.env.NODE_ENV !== "production" && x(Nr($.IGNORE_OBJ_FLATTEN, { key: r[t] })), o = !0;
|
|
1887
|
+
break;
|
|
1888
|
+
}
|
|
1889
|
+
a = a[r[t]];
|
|
1890
|
+
}
|
|
1891
|
+
if (o || (q(a) ? Et.includes(r[i]) || delete t[n] : (a[r[i]] = t[n], delete t[n])), !q(a)) {
|
|
1892
|
+
let e = a[r[i]];
|
|
1893
|
+
B(e) && Pr(e);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
return t;
|
|
1897
|
+
}
|
|
1898
|
+
function Fr(e, t) {
|
|
1899
|
+
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = V(n) ? n : I(r) ? N() : { [e]: N() };
|
|
1900
|
+
if (I(r) && r.forEach((e) => {
|
|
1901
|
+
if ("locale" in e && "resource" in e) {
|
|
1902
|
+
let { locale: t, resource: n } = e;
|
|
1903
|
+
t ? (o[t] = o[t] || N(), we(n, o[t])) : we(n, o);
|
|
1904
|
+
} else R(e) && we(JSON.parse(e), o);
|
|
1905
|
+
}), i == null && a) for (let e in o) F(o, e) && Pr(o[e]);
|
|
1906
|
+
return o;
|
|
1907
|
+
}
|
|
1908
|
+
function Ir(e) {
|
|
1909
|
+
return e.type;
|
|
1910
|
+
}
|
|
1911
|
+
function Lr(e, t, n) {
|
|
1912
|
+
let r = B(t.messages) ? t.messages : N();
|
|
1913
|
+
"__i18nGlobal" in n && (r = Fr(e.locale.value, {
|
|
1914
|
+
messages: r,
|
|
1915
|
+
__i18n: n.__i18nGlobal
|
|
1916
|
+
}));
|
|
1917
|
+
let i = Object.keys(r);
|
|
1918
|
+
if (i.length && i.forEach((t) => {
|
|
1919
|
+
e.mergeLocaleMessage(t, r[t]);
|
|
1920
|
+
}), B(t.datetimeFormats)) {
|
|
1921
|
+
let n = Object.keys(t.datetimeFormats);
|
|
1922
|
+
n.length && n.forEach((n) => {
|
|
1923
|
+
e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
if (B(t.numberFormats)) {
|
|
1927
|
+
let n = Object.keys(t.numberFormats);
|
|
1928
|
+
n.length && n.forEach((n) => {
|
|
1929
|
+
e.mergeNumberFormat(n, t.numberFormats[n]);
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
function Rr(e) {
|
|
1934
|
+
return c(o, null, e, 0);
|
|
1935
|
+
}
|
|
1936
|
+
function zr() {
|
|
1937
|
+
let e = "currentInstance";
|
|
1938
|
+
return e in i ? i[e] : i.getCurrentInstance();
|
|
1939
|
+
}
|
|
1940
|
+
var Br = () => [], Vr = () => !1, Hr = 0;
|
|
1941
|
+
function Ur(e) {
|
|
1942
|
+
return ((t, n, r, i) => e(n, r, zr() || void 0, i));
|
|
1943
|
+
}
|
|
1944
|
+
function Wr(t = {}) {
|
|
1945
|
+
let { __root: n, __injectWithOption: r } = t, i = n === void 0, a = t.flatJson, o = w ? v : y, c = z(t.inheritLocale) ? t.inheritLocale : !0, l = o(n && c ? n.locale.value : R(t.locale) ? t.locale : pn), u = o(n && c ? n.fallbackLocale.value : R(t.fallbackLocale) || I(t.fallbackLocale) || V(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : l.value), d = o(Fr(l.value, t)), f = o(V(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), p = o(V(t.numberFormats) ? t.numberFormats : { [l.value]: {} }), m = n ? n.missingWarn : z(t.missingWarn) || ne(t.missingWarn) ? t.missingWarn : !0, h = n ? n.fallbackWarn : z(t.fallbackWarn) || ne(t.fallbackWarn) ? t.fallbackWarn : !0, g = n ? n.fallbackRoot : z(t.fallbackRoot) ? t.fallbackRoot : !0, _ = !!t.fallbackFormat, S = L(t.missing) ? t.missing : null, C = L(t.missing) ? Ur(t.missing) : null, T = L(t.postTranslation) ? t.postTranslation : null, E = n ? n.warnHtmlMessage : z(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, D = !!t.escapeParameter, O = n ? n.modifiers : V(t.modifiers) ? t.modifiers : {}, k = t.pluralRules || n && n.pluralRules, A;
|
|
1946
|
+
A = (() => {
|
|
1947
|
+
i && Tn(null);
|
|
1948
|
+
let n = {
|
|
1949
|
+
version: xr,
|
|
1950
|
+
locale: l.value,
|
|
1951
|
+
fallbackLocale: u.value,
|
|
1952
|
+
messages: d.value,
|
|
1953
|
+
modifiers: O,
|
|
1954
|
+
pluralRules: k,
|
|
1955
|
+
missing: C === null ? void 0 : C,
|
|
1956
|
+
missingWarn: m,
|
|
1957
|
+
fallbackWarn: h,
|
|
1958
|
+
fallbackFormat: _,
|
|
1959
|
+
unresolving: !0,
|
|
1960
|
+
postTranslation: T === null ? void 0 : T,
|
|
1961
|
+
warnHtmlMessage: E,
|
|
1962
|
+
escapeParameter: D,
|
|
1963
|
+
messageResolver: t.messageResolver,
|
|
1964
|
+
messageCompiler: t.messageCompiler,
|
|
1965
|
+
__meta: { framework: "vue" }
|
|
1966
|
+
};
|
|
1967
|
+
n.datetimeFormats = f.value, n.numberFormats = p.value, n.__datetimeFormatters = V(A) ? A.__datetimeFormatters : void 0, n.__numberFormatters = V(A) ? A.__numberFormatters : void 0, e.env.NODE_ENV !== "production" && (n.__v_emitter = V(A) ? A.__v_emitter : void 0);
|
|
1968
|
+
let r = On(n);
|
|
1969
|
+
return i && Tn(r), r;
|
|
1970
|
+
})(), Nn(A, l.value, u.value);
|
|
1971
|
+
function ee() {
|
|
1972
|
+
return [
|
|
1973
|
+
l.value,
|
|
1974
|
+
u.value,
|
|
1975
|
+
d.value,
|
|
1976
|
+
f.value,
|
|
1977
|
+
p.value
|
|
1978
|
+
];
|
|
1979
|
+
}
|
|
1980
|
+
let te = s({
|
|
1981
|
+
get: () => l.value,
|
|
1982
|
+
set: (e) => {
|
|
1983
|
+
A.locale = e, l.value = e;
|
|
1984
|
+
}
|
|
1985
|
+
}), re = s({
|
|
1986
|
+
get: () => u.value,
|
|
1987
|
+
set: (e) => {
|
|
1988
|
+
A.fallbackLocale = e, u.value = e, Nn(A, l.value, e);
|
|
1989
|
+
}
|
|
1990
|
+
}), ie = s(() => d.value), N = /* #__PURE__*/ s(() => f.value), ae = /* #__PURE__*/ s(() => p.value);
|
|
1991
|
+
function oe() {
|
|
1992
|
+
return L(T) ? T : null;
|
|
1993
|
+
}
|
|
1994
|
+
function se(e) {
|
|
1995
|
+
T = e, A.postTranslation = e;
|
|
1996
|
+
}
|
|
1997
|
+
function ce() {
|
|
1998
|
+
return S;
|
|
1999
|
+
}
|
|
2000
|
+
function le(e) {
|
|
2001
|
+
e !== null && (C = Ur(e)), S = e, A.missing = C;
|
|
2002
|
+
}
|
|
2003
|
+
function ue(e, t) {
|
|
2004
|
+
return e !== "translate" || !t.resolvedMessage;
|
|
2005
|
+
}
|
|
2006
|
+
let P = (t, r, a, o, s, c) => {
|
|
2007
|
+
ee();
|
|
2008
|
+
let l;
|
|
2009
|
+
try {
|
|
2010
|
+
e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = n ? En() : void 0), l = t(A);
|
|
2011
|
+
} finally {
|
|
2012
|
+
e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = void 0);
|
|
2013
|
+
}
|
|
2014
|
+
if (a !== "translate exists" && j(l) && l === -1 || a === "translate exists" && !l) {
|
|
2015
|
+
let [t, i] = r();
|
|
2016
|
+
if (e.env.NODE_ENV !== "production" && n && R(t) && ue(a, i) && (g && (An(h, t) || jn(m, t)) && x(Nr($.FALLBACK_TO_ROOT, {
|
|
2017
|
+
key: t,
|
|
2018
|
+
type: a
|
|
2019
|
+
})), e.env.NODE_ENV !== "production")) {
|
|
2020
|
+
let { __v_emitter: e } = A;
|
|
2021
|
+
e && g && e.emit("fallback", {
|
|
2022
|
+
type: a,
|
|
2023
|
+
key: t,
|
|
2024
|
+
to: "global",
|
|
2025
|
+
groupId: `${a}:${t}`
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
return n && g ? o(n) : s(t);
|
|
2029
|
+
} else if (c(l)) return l;
|
|
2030
|
+
else
|
|
2031
|
+
/* istanbul ignore next */
|
|
2032
|
+
throw Q(Z.UNEXPECTED_RETURN_TYPE);
|
|
2033
|
+
};
|
|
2034
|
+
function de(...e) {
|
|
2035
|
+
return P((t) => Reflect.apply(tr, null, [t, ...e]), () => or(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => R(e));
|
|
2036
|
+
}
|
|
2037
|
+
function fe(...e) {
|
|
2038
|
+
let [t, n, r] = e;
|
|
2039
|
+
if (r && !B(r)) throw Q(Z.INVALID_ARGUMENT);
|
|
2040
|
+
return de(t, n, M({ resolvedMessage: !0 }, r || {}));
|
|
2041
|
+
}
|
|
2042
|
+
function pe(...e) {
|
|
2043
|
+
return P((t) => Reflect.apply(Rn, null, [t, ...e]), () => Bn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => R(e) || I(e));
|
|
2044
|
+
}
|
|
2045
|
+
function me(...e) {
|
|
2046
|
+
return P((t) => Reflect.apply(Hn, null, [t, ...e]), () => Wn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => R(e) || I(e));
|
|
2047
|
+
}
|
|
2048
|
+
function he(e) {
|
|
2049
|
+
return e.map((e) => R(e) || j(e) || z(e) ? Rr(String(e)) : e);
|
|
2050
|
+
}
|
|
2051
|
+
let ge = {
|
|
2052
|
+
normalize: he,
|
|
2053
|
+
interpolate: (e) => e,
|
|
2054
|
+
type: "vnode"
|
|
2055
|
+
};
|
|
2056
|
+
function _e(...e) {
|
|
2057
|
+
return P((t) => {
|
|
2058
|
+
let n, r = t;
|
|
2059
|
+
try {
|
|
2060
|
+
r.processor = ge, n = Reflect.apply(tr, null, [r, ...e]);
|
|
2061
|
+
} finally {
|
|
2062
|
+
r.processor = null;
|
|
2063
|
+
}
|
|
2064
|
+
return n;
|
|
2065
|
+
}, () => or(...e), "translate", (t) => t[wr](...e), (e) => [Rr(e)], (e) => I(e));
|
|
2066
|
+
}
|
|
2067
|
+
function ve(...e) {
|
|
2068
|
+
return P((t) => Reflect.apply(Hn, null, [t, ...e]), () => Wn(...e), "number format", (t) => t[Er](...e), Br, (e) => R(e) || I(e));
|
|
2069
|
+
}
|
|
2070
|
+
function ye(...e) {
|
|
2071
|
+
return P((t) => Reflect.apply(Rn, null, [t, ...e]), () => Bn(...e), "datetime format", (t) => t[Tr](...e), Br, (e) => R(e) || I(e));
|
|
2072
|
+
}
|
|
2073
|
+
function be(e) {
|
|
2074
|
+
k = e, A.pluralRules = k;
|
|
2075
|
+
}
|
|
2076
|
+
function xe(e, t) {
|
|
2077
|
+
return P(() => {
|
|
2078
|
+
if (!e) return !1;
|
|
2079
|
+
let n = R(t) ? t : l.value, r = R(t) ? [n] : Yt(A, u.value, n);
|
|
2080
|
+
for (let t = 0; t < r.length; t++) {
|
|
2081
|
+
let n = Te(r[t]), i = A.messageResolver(n, e);
|
|
2082
|
+
if (i === null && (i = n[e]), q(i) || X(i) || R(i)) return !0;
|
|
2083
|
+
}
|
|
2084
|
+
return !1;
|
|
2085
|
+
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Vr, (e) => z(e));
|
|
2086
|
+
}
|
|
2087
|
+
function Se(e) {
|
|
2088
|
+
let t = null, n = Yt(A, u.value, l.value);
|
|
2089
|
+
for (let r = 0; r < n.length; r++) {
|
|
2090
|
+
let i = d.value[n[r]] || {}, a = A.messageResolver(i, e);
|
|
2091
|
+
if (a != null) {
|
|
2092
|
+
t = a;
|
|
2093
|
+
break;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
return t;
|
|
2097
|
+
}
|
|
2098
|
+
function Ce(e) {
|
|
2099
|
+
return Se(e) ?? (n && n.tm(e) || {});
|
|
2100
|
+
}
|
|
2101
|
+
function Te(e) {
|
|
2102
|
+
return d.value[e] || {};
|
|
2103
|
+
}
|
|
2104
|
+
function Ee(e, t) {
|
|
2105
|
+
if (a) {
|
|
2106
|
+
let n = { [e]: t };
|
|
2107
|
+
for (let e in n) F(n, e) && Pr(n[e]);
|
|
2108
|
+
t = n[e];
|
|
2109
|
+
}
|
|
2110
|
+
d.value[e] = t, A.messages = d.value;
|
|
2111
|
+
}
|
|
2112
|
+
function H(e, t) {
|
|
2113
|
+
d.value[e] = d.value[e] || {};
|
|
2114
|
+
let n = { [e]: t };
|
|
2115
|
+
if (a) for (let e in n) F(n, e) && Pr(n[e]);
|
|
2116
|
+
t = n[e], we(t, d.value[e]), A.messages = d.value;
|
|
2117
|
+
}
|
|
2118
|
+
function De(e) {
|
|
2119
|
+
return f.value[e] || {};
|
|
2120
|
+
}
|
|
2121
|
+
function Oe(e, t) {
|
|
2122
|
+
f.value[e] = t, A.datetimeFormats = f.value, Vn(A, e, t);
|
|
2123
|
+
}
|
|
2124
|
+
function ke(e, t) {
|
|
2125
|
+
f.value[e] = M(f.value[e] || {}, t), A.datetimeFormats = f.value, Vn(A, e, t);
|
|
2126
|
+
}
|
|
2127
|
+
function Ae(e) {
|
|
2128
|
+
return p.value[e] || {};
|
|
2129
|
+
}
|
|
2130
|
+
function je(e, t) {
|
|
2131
|
+
p.value[e] = t, A.numberFormats = p.value, Gn(A, e, t);
|
|
2132
|
+
}
|
|
2133
|
+
function U(e, t) {
|
|
2134
|
+
p.value[e] = M(p.value[e] || {}, t), A.numberFormats = p.value, Gn(A, e, t);
|
|
2135
|
+
}
|
|
2136
|
+
Hr++, n && w && (b(n.locale, (e) => {
|
|
2137
|
+
c && (l.value = e, A.locale = e, Nn(A, l.value, u.value));
|
|
2138
|
+
}), b(n.fallbackLocale, (e) => {
|
|
2139
|
+
c && (u.value = e, A.fallbackLocale = e, Nn(A, l.value, u.value));
|
|
2140
|
+
}));
|
|
2141
|
+
let W = {
|
|
2142
|
+
id: Hr,
|
|
2143
|
+
locale: te,
|
|
2144
|
+
fallbackLocale: re,
|
|
2145
|
+
get inheritLocale() {
|
|
2146
|
+
return c;
|
|
2147
|
+
},
|
|
2148
|
+
set inheritLocale(e) {
|
|
2149
|
+
c = e, e && n && (l.value = n.locale.value, u.value = n.fallbackLocale.value, Nn(A, l.value, u.value));
|
|
2150
|
+
},
|
|
2151
|
+
get availableLocales() {
|
|
2152
|
+
return Object.keys(d.value).sort();
|
|
2153
|
+
},
|
|
2154
|
+
messages: ie,
|
|
2155
|
+
get modifiers() {
|
|
2156
|
+
return O;
|
|
2157
|
+
},
|
|
2158
|
+
get pluralRules() {
|
|
2159
|
+
return k || {};
|
|
2160
|
+
},
|
|
2161
|
+
get isGlobal() {
|
|
2162
|
+
return i;
|
|
2163
|
+
},
|
|
2164
|
+
get missingWarn() {
|
|
2165
|
+
return m;
|
|
2166
|
+
},
|
|
2167
|
+
set missingWarn(e) {
|
|
2168
|
+
m = e, A.missingWarn = m;
|
|
2169
|
+
},
|
|
2170
|
+
get fallbackWarn() {
|
|
2171
|
+
return h;
|
|
2172
|
+
},
|
|
2173
|
+
set fallbackWarn(e) {
|
|
2174
|
+
h = e, A.fallbackWarn = h;
|
|
2175
|
+
},
|
|
2176
|
+
get fallbackRoot() {
|
|
2177
|
+
return g;
|
|
2178
|
+
},
|
|
2179
|
+
set fallbackRoot(e) {
|
|
2180
|
+
g = e;
|
|
2181
|
+
},
|
|
2182
|
+
get fallbackFormat() {
|
|
2183
|
+
return _;
|
|
2184
|
+
},
|
|
2185
|
+
set fallbackFormat(e) {
|
|
2186
|
+
_ = e, A.fallbackFormat = _;
|
|
2187
|
+
},
|
|
2188
|
+
get warnHtmlMessage() {
|
|
2189
|
+
return E;
|
|
2190
|
+
},
|
|
2191
|
+
set warnHtmlMessage(e) {
|
|
2192
|
+
E = e, A.warnHtmlMessage = e;
|
|
2193
|
+
},
|
|
2194
|
+
get escapeParameter() {
|
|
2195
|
+
return D;
|
|
2196
|
+
},
|
|
2197
|
+
set escapeParameter(e) {
|
|
2198
|
+
D = e, A.escapeParameter = e;
|
|
2199
|
+
},
|
|
2200
|
+
t: de,
|
|
2201
|
+
getLocaleMessage: Te,
|
|
2202
|
+
setLocaleMessage: Ee,
|
|
2203
|
+
mergeLocaleMessage: H,
|
|
2204
|
+
getPostTranslationHandler: oe,
|
|
2205
|
+
setPostTranslationHandler: se,
|
|
2206
|
+
getMissingHandler: ce,
|
|
2207
|
+
setMissingHandler: le,
|
|
2208
|
+
[kr]: be
|
|
2209
|
+
};
|
|
2210
|
+
return W.datetimeFormats = N, W.numberFormats = ae, W.rt = fe, W.te = xe, W.tm = Ce, W.d = pe, W.n = me, W.getDateTimeFormat = De, W.setDateTimeFormat = Oe, W.mergeDateTimeFormat = ke, W.getNumberFormat = Ae, W.setNumberFormat = je, W.mergeNumberFormat = U, W[Ar] = r, W[wr] = _e, W[Tr] = ye, W[Er] = ve, e.env.NODE_ENV !== "production" && (W[Dr] = (e) => {
|
|
2211
|
+
A.__v_emitter = e;
|
|
2212
|
+
}, W[Or] = () => {
|
|
2213
|
+
A.__v_emitter = void 0;
|
|
2214
|
+
}), W;
|
|
2215
|
+
}
|
|
2216
|
+
var Gr = "vue-i18n: composer properties", Kr = {
|
|
2217
|
+
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2218
|
+
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2219
|
+
"vue-i18n-timeline": "Vue I18n"
|
|
2220
|
+
}, qr = { "vue-i18n-resource-inspector": "Search for scopes ..." }, Jr = { "vue-i18n-timeline": 16764185 }, Yr;
|
|
2221
|
+
async function Xr(e, t) {
|
|
2222
|
+
return new Promise((n, r) => {
|
|
2223
|
+
try {
|
|
2224
|
+
br({
|
|
2225
|
+
id: "vue-devtools-plugin-vue-i18n",
|
|
2226
|
+
label: Kr["vue-devtools-plugin-vue-i18n"],
|
|
2227
|
+
packageName: "vue-i18n",
|
|
2228
|
+
homepage: "https://vue-i18n.intlify.dev",
|
|
2229
|
+
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2230
|
+
componentStateTypes: [Gr],
|
|
2231
|
+
app: e
|
|
2232
|
+
}, (r) => {
|
|
2233
|
+
Yr = r, r.on.visitComponentTree(({ componentInstance: e, treeNode: n }) => {
|
|
2234
|
+
Qr(e, n, t);
|
|
2235
|
+
}), r.on.inspectComponent(({ componentInstance: e, instanceData: n }) => {
|
|
2236
|
+
e.__VUE_I18N__ && n && (t.mode === "legacy" ? e.__VUE_I18N__ !== t.global.__composer && $r(n, e.__VUE_I18N__) : $r(n, e.__VUE_I18N__));
|
|
2237
|
+
}), r.addInspector({
|
|
2238
|
+
id: "vue-i18n-resource-inspector",
|
|
2239
|
+
label: Kr["vue-i18n-resource-inspector"],
|
|
2240
|
+
icon: "language",
|
|
2241
|
+
treeFilterPlaceholder: qr["vue-i18n-resource-inspector"]
|
|
2242
|
+
}), r.on.getInspectorTree((n) => {
|
|
2243
|
+
n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && ai(n, t);
|
|
2244
|
+
});
|
|
2245
|
+
let i = /* @__PURE__ */ new Map();
|
|
2246
|
+
r.on.getInspectorState(async (n) => {
|
|
2247
|
+
if (n.app === e && n.inspectorId === "vue-i18n-resource-inspector") if (r.unhighlightElement(), ci(n, t), n.nodeId === "global") {
|
|
2248
|
+
if (!i.has(n.app)) {
|
|
2249
|
+
let [e] = await r.getComponentInstances(n.app);
|
|
2250
|
+
i.set(n.app, e);
|
|
2251
|
+
}
|
|
2252
|
+
r.highlightElement(i.get(n.app));
|
|
2253
|
+
} else {
|
|
2254
|
+
let e = oi(n.nodeId, t);
|
|
2255
|
+
e && r.highlightElement(e);
|
|
2256
|
+
}
|
|
2257
|
+
}), r.on.editInspectorState((n) => {
|
|
2258
|
+
n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && di(n, t);
|
|
2259
|
+
}), r.addTimelineLayer({
|
|
2260
|
+
id: "vue-i18n-timeline",
|
|
2261
|
+
label: Kr["vue-i18n-timeline"],
|
|
2262
|
+
color: Jr["vue-i18n-timeline"]
|
|
2263
|
+
}), n(!0);
|
|
2264
|
+
});
|
|
2265
|
+
} catch (e) {
|
|
2266
|
+
console.error(e), r(!1);
|
|
2267
|
+
}
|
|
2268
|
+
});
|
|
2269
|
+
}
|
|
2270
|
+
function Zr(e) {
|
|
2271
|
+
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2272
|
+
}
|
|
2273
|
+
function Qr(e, t, n) {
|
|
2274
|
+
let r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2275
|
+
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
2276
|
+
let n = {
|
|
2277
|
+
label: `i18n (${Zr(e)} Scope)`,
|
|
2278
|
+
textColor: 0,
|
|
2279
|
+
backgroundColor: 16764185
|
|
2280
|
+
};
|
|
2281
|
+
t.tags.push(n);
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
function $r(e, t) {
|
|
2285
|
+
let n = Gr;
|
|
2286
|
+
e.state.push({
|
|
2287
|
+
type: n,
|
|
2288
|
+
key: "locale",
|
|
2289
|
+
editable: !0,
|
|
2290
|
+
value: t.locale.value
|
|
2291
|
+
}), e.state.push({
|
|
2292
|
+
type: n,
|
|
2293
|
+
key: "availableLocales",
|
|
2294
|
+
editable: !1,
|
|
2295
|
+
value: t.availableLocales
|
|
2296
|
+
}), e.state.push({
|
|
2297
|
+
type: n,
|
|
2298
|
+
key: "fallbackLocale",
|
|
2299
|
+
editable: !0,
|
|
2300
|
+
value: t.fallbackLocale.value
|
|
2301
|
+
}), e.state.push({
|
|
2302
|
+
type: n,
|
|
2303
|
+
key: "inheritLocale",
|
|
2304
|
+
editable: !0,
|
|
2305
|
+
value: t.inheritLocale
|
|
2306
|
+
}), e.state.push({
|
|
2307
|
+
type: n,
|
|
2308
|
+
key: "messages",
|
|
2309
|
+
editable: !1,
|
|
2310
|
+
value: ei(t.messages.value)
|
|
2311
|
+
}), e.state.push({
|
|
2312
|
+
type: n,
|
|
2313
|
+
key: "datetimeFormats",
|
|
2314
|
+
editable: !1,
|
|
2315
|
+
value: t.datetimeFormats.value
|
|
2316
|
+
}), e.state.push({
|
|
2317
|
+
type: n,
|
|
2318
|
+
key: "numberFormats",
|
|
2319
|
+
editable: !1,
|
|
2320
|
+
value: t.numberFormats.value
|
|
2321
|
+
});
|
|
2322
|
+
}
|
|
2323
|
+
function ei(e) {
|
|
2324
|
+
let t = {};
|
|
2325
|
+
return Object.keys(e).forEach((n) => {
|
|
2326
|
+
let r = e[n];
|
|
2327
|
+
L(r) && "source" in r ? t[n] = ii(r) : q(r) && r.loc && r.loc.source ? t[n] = r.loc.source : B(r) ? t[n] = ei(r) : t[n] = r;
|
|
2328
|
+
}), t;
|
|
2329
|
+
}
|
|
2330
|
+
var ti = {
|
|
2331
|
+
"<": "<",
|
|
2332
|
+
">": ">",
|
|
2333
|
+
"\"": """,
|
|
2334
|
+
"&": "&"
|
|
2335
|
+
};
|
|
2336
|
+
function ni(e) {
|
|
2337
|
+
return e.replace(/[<>"&]/g, ri);
|
|
2338
|
+
}
|
|
2339
|
+
function ri(e) {
|
|
2340
|
+
return ti[e] || e;
|
|
2341
|
+
}
|
|
2342
|
+
function ii(e) {
|
|
2343
|
+
return { _custom: {
|
|
2344
|
+
type: "function",
|
|
2345
|
+
display: `<span>ƒ</span> ${e.source ? `("${ni(e.source)}")` : "(?)"}`
|
|
2346
|
+
} };
|
|
2347
|
+
}
|
|
2348
|
+
function ai(e, t) {
|
|
2349
|
+
e.rootNodes.push({
|
|
2350
|
+
id: "global",
|
|
2351
|
+
label: "Global Scope"
|
|
2352
|
+
});
|
|
2353
|
+
let n = t.mode === "composition" ? t.global : t.global.__composer;
|
|
2354
|
+
for (let [r, i] of t.__instances) {
|
|
2355
|
+
let a = t.mode === "composition" ? i : i.__composer;
|
|
2356
|
+
n !== a && e.rootNodes.push({
|
|
2357
|
+
id: a.id.toString(),
|
|
2358
|
+
label: `${Zr(r)} Scope`
|
|
2359
|
+
});
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
function oi(e, t) {
|
|
2363
|
+
let n = null;
|
|
2364
|
+
if (e !== "global") {
|
|
2365
|
+
for (let [r, i] of t.__instances.entries()) if (i.id.toString() === e) {
|
|
2366
|
+
n = r;
|
|
2367
|
+
break;
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
return n;
|
|
2371
|
+
}
|
|
2372
|
+
function si(e, t) {
|
|
2373
|
+
if (e === "global") return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2374
|
+
{
|
|
2375
|
+
let n = Array.from(t.__instances.values()).find((t) => t.id.toString() === e);
|
|
2376
|
+
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
function ci(e, t) {
|
|
2380
|
+
let n = si(e.nodeId, t);
|
|
2381
|
+
return n && (e.state = li(n)), null;
|
|
2382
|
+
}
|
|
2383
|
+
function li(e) {
|
|
2384
|
+
let t = {}, n = "Locale related info";
|
|
2385
|
+
t[n] = [
|
|
2386
|
+
{
|
|
2387
|
+
type: n,
|
|
2388
|
+
key: "locale",
|
|
2389
|
+
editable: !0,
|
|
2390
|
+
value: e.locale.value
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
type: n,
|
|
2394
|
+
key: "fallbackLocale",
|
|
2395
|
+
editable: !0,
|
|
2396
|
+
value: e.fallbackLocale.value
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
type: n,
|
|
2400
|
+
key: "availableLocales",
|
|
2401
|
+
editable: !1,
|
|
2402
|
+
value: e.availableLocales
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
type: n,
|
|
2406
|
+
key: "inheritLocale",
|
|
2407
|
+
editable: !0,
|
|
2408
|
+
value: e.inheritLocale
|
|
2409
|
+
}
|
|
2410
|
+
];
|
|
2411
|
+
let r = "Locale messages info";
|
|
2412
|
+
t[r] = [{
|
|
2413
|
+
type: r,
|
|
2414
|
+
key: "messages",
|
|
2415
|
+
editable: !1,
|
|
2416
|
+
value: ei(e.messages.value)
|
|
2417
|
+
}];
|
|
2418
|
+
{
|
|
2419
|
+
let n = "Datetime formats info";
|
|
2420
|
+
t[n] = [{
|
|
2421
|
+
type: n,
|
|
2422
|
+
key: "datetimeFormats",
|
|
2423
|
+
editable: !1,
|
|
2424
|
+
value: e.datetimeFormats.value
|
|
2425
|
+
}];
|
|
2426
|
+
let r = "Datetime formats info";
|
|
2427
|
+
t[r] = [{
|
|
2428
|
+
type: r,
|
|
2429
|
+
key: "numberFormats",
|
|
2430
|
+
editable: !1,
|
|
2431
|
+
value: e.numberFormats.value
|
|
2432
|
+
}];
|
|
2433
|
+
}
|
|
2434
|
+
return t;
|
|
2435
|
+
}
|
|
2436
|
+
function ui(e, t) {
|
|
2437
|
+
if (Yr) {
|
|
2438
|
+
let n;
|
|
2439
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), Yr.addTimelineEvent({
|
|
2440
|
+
layerId: "vue-i18n-timeline",
|
|
2441
|
+
event: {
|
|
2442
|
+
title: e,
|
|
2443
|
+
groupId: n,
|
|
2444
|
+
time: Date.now(),
|
|
2445
|
+
meta: {},
|
|
2446
|
+
data: t || {},
|
|
2447
|
+
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
|
2448
|
+
}
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
function di(e, t) {
|
|
2453
|
+
let n = si(e.nodeId, t);
|
|
2454
|
+
if (n) {
|
|
2455
|
+
let [t] = e.path;
|
|
2456
|
+
t === "locale" && R(e.state.value) ? n.locale.value = e.state.value : t === "fallbackLocale" && (R(e.state.value) || I(e.state.value) || B(e.state.value)) ? n.fallbackLocale.value = e.state.value : t === "inheritLocale" && z(e.state.value) && (n.inheritLocale = e.state.value);
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
function fi(e) {
|
|
2460
|
+
let t = R(e.locale) ? e.locale : pn, n = R(e.fallbackLocale) || I(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = L(e.missing) ? e.missing : void 0, i = z(e.silentTranslationWarn) || ne(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = z(e.silentFallbackWarn) || ne(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = z(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, c = V(e.modifiers) ? e.modifiers : {}, l = e.pluralizationRules, u = L(e.postTranslation) ? e.postTranslation : void 0, d = R(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, p = z(e.sync) ? e.sync : !0, m = e.messages;
|
|
2461
|
+
if (V(e.sharedMessages)) {
|
|
2462
|
+
let t = e.sharedMessages;
|
|
2463
|
+
m = Object.keys(t).reduce((e, n) => (M(e[n] || (e[n] = {}), t[n]), e), m || {});
|
|
2464
|
+
}
|
|
2465
|
+
let { __i18n: h, __root: g, __injectWithOption: _ } = e, v = e.datetimeFormats, y = e.numberFormats, b = e.flatJson;
|
|
2466
|
+
return {
|
|
2467
|
+
locale: t,
|
|
2468
|
+
fallbackLocale: n,
|
|
2469
|
+
messages: m,
|
|
2470
|
+
flatJson: b,
|
|
2471
|
+
datetimeFormats: v,
|
|
2472
|
+
numberFormats: y,
|
|
2473
|
+
missing: r,
|
|
2474
|
+
missingWarn: i,
|
|
2475
|
+
fallbackWarn: a,
|
|
2476
|
+
fallbackRoot: o,
|
|
2477
|
+
fallbackFormat: s,
|
|
2478
|
+
modifiers: c,
|
|
2479
|
+
pluralRules: l,
|
|
2480
|
+
postTranslation: u,
|
|
2481
|
+
warnHtmlMessage: d,
|
|
2482
|
+
escapeParameter: f,
|
|
2483
|
+
messageResolver: e.messageResolver,
|
|
2484
|
+
inheritLocale: p,
|
|
2485
|
+
__i18n: h,
|
|
2486
|
+
__root: g,
|
|
2487
|
+
__injectWithOption: _
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
function pi(t = {}) {
|
|
2491
|
+
let n = Wr(fi(t)), { __extender: r } = t, i = {
|
|
2492
|
+
id: n.id,
|
|
2493
|
+
get locale() {
|
|
2494
|
+
return n.locale.value;
|
|
2495
|
+
},
|
|
2496
|
+
set locale(e) {
|
|
2497
|
+
n.locale.value = e;
|
|
2498
|
+
},
|
|
2499
|
+
get fallbackLocale() {
|
|
2500
|
+
return n.fallbackLocale.value;
|
|
2501
|
+
},
|
|
2502
|
+
set fallbackLocale(e) {
|
|
2503
|
+
n.fallbackLocale.value = e;
|
|
2504
|
+
},
|
|
2505
|
+
get messages() {
|
|
2506
|
+
return n.messages.value;
|
|
2507
|
+
},
|
|
2508
|
+
get datetimeFormats() {
|
|
2509
|
+
return n.datetimeFormats.value;
|
|
2510
|
+
},
|
|
2511
|
+
get numberFormats() {
|
|
2512
|
+
return n.numberFormats.value;
|
|
2513
|
+
},
|
|
2514
|
+
get availableLocales() {
|
|
2515
|
+
return n.availableLocales;
|
|
2516
|
+
},
|
|
2517
|
+
get missing() {
|
|
2518
|
+
return n.getMissingHandler();
|
|
2519
|
+
},
|
|
2520
|
+
set missing(e) {
|
|
2521
|
+
n.setMissingHandler(e);
|
|
2522
|
+
},
|
|
2523
|
+
get silentTranslationWarn() {
|
|
2524
|
+
return z(n.missingWarn) ? !n.missingWarn : n.missingWarn;
|
|
2525
|
+
},
|
|
2526
|
+
set silentTranslationWarn(e) {
|
|
2527
|
+
n.missingWarn = z(e) ? !e : e;
|
|
2528
|
+
},
|
|
2529
|
+
get silentFallbackWarn() {
|
|
2530
|
+
return z(n.fallbackWarn) ? !n.fallbackWarn : n.fallbackWarn;
|
|
2531
|
+
},
|
|
2532
|
+
set silentFallbackWarn(e) {
|
|
2533
|
+
n.fallbackWarn = z(e) ? !e : e;
|
|
2534
|
+
},
|
|
2535
|
+
get modifiers() {
|
|
2536
|
+
return n.modifiers;
|
|
2537
|
+
},
|
|
2538
|
+
get formatFallbackMessages() {
|
|
2539
|
+
return n.fallbackFormat;
|
|
2540
|
+
},
|
|
2541
|
+
set formatFallbackMessages(e) {
|
|
2542
|
+
n.fallbackFormat = e;
|
|
2543
|
+
},
|
|
2544
|
+
get postTranslation() {
|
|
2545
|
+
return n.getPostTranslationHandler();
|
|
2546
|
+
},
|
|
2547
|
+
set postTranslation(e) {
|
|
2548
|
+
n.setPostTranslationHandler(e);
|
|
2549
|
+
},
|
|
2550
|
+
get sync() {
|
|
2551
|
+
return n.inheritLocale;
|
|
2552
|
+
},
|
|
2553
|
+
set sync(e) {
|
|
2554
|
+
n.inheritLocale = e;
|
|
2555
|
+
},
|
|
2556
|
+
get warnHtmlInMessage() {
|
|
2557
|
+
return n.warnHtmlMessage ? "warn" : "off";
|
|
2558
|
+
},
|
|
2559
|
+
set warnHtmlInMessage(e) {
|
|
2560
|
+
n.warnHtmlMessage = e !== "off";
|
|
2561
|
+
},
|
|
2562
|
+
get escapeParameterHtml() {
|
|
2563
|
+
return n.escapeParameter;
|
|
2564
|
+
},
|
|
2565
|
+
set escapeParameterHtml(e) {
|
|
2566
|
+
n.escapeParameter = e;
|
|
2567
|
+
},
|
|
2568
|
+
get pluralizationRules() {
|
|
2569
|
+
return n.pluralRules || {};
|
|
2570
|
+
},
|
|
2571
|
+
__composer: n,
|
|
2572
|
+
t(...e) {
|
|
2573
|
+
return Reflect.apply(n.t, n, [...e]);
|
|
2574
|
+
},
|
|
2575
|
+
rt(...e) {
|
|
2576
|
+
return Reflect.apply(n.rt, n, [...e]);
|
|
2577
|
+
},
|
|
2578
|
+
te(e, t) {
|
|
2579
|
+
return n.te(e, t);
|
|
2580
|
+
},
|
|
2581
|
+
tm(e) {
|
|
2582
|
+
return n.tm(e);
|
|
2583
|
+
},
|
|
2584
|
+
getLocaleMessage(e) {
|
|
2585
|
+
return n.getLocaleMessage(e);
|
|
2586
|
+
},
|
|
2587
|
+
setLocaleMessage(e, t) {
|
|
2588
|
+
n.setLocaleMessage(e, t);
|
|
2589
|
+
},
|
|
2590
|
+
mergeLocaleMessage(e, t) {
|
|
2591
|
+
n.mergeLocaleMessage(e, t);
|
|
2592
|
+
},
|
|
2593
|
+
d(...e) {
|
|
2594
|
+
return Reflect.apply(n.d, n, [...e]);
|
|
2595
|
+
},
|
|
2596
|
+
getDateTimeFormat(e) {
|
|
2597
|
+
return n.getDateTimeFormat(e);
|
|
2598
|
+
},
|
|
2599
|
+
setDateTimeFormat(e, t) {
|
|
2600
|
+
n.setDateTimeFormat(e, t);
|
|
2601
|
+
},
|
|
2602
|
+
mergeDateTimeFormat(e, t) {
|
|
2603
|
+
n.mergeDateTimeFormat(e, t);
|
|
2604
|
+
},
|
|
2605
|
+
n(...e) {
|
|
2606
|
+
return Reflect.apply(n.n, n, [...e]);
|
|
2607
|
+
},
|
|
2608
|
+
getNumberFormat(e) {
|
|
2609
|
+
return n.getNumberFormat(e);
|
|
2610
|
+
},
|
|
2611
|
+
setNumberFormat(e, t) {
|
|
2612
|
+
n.setNumberFormat(e, t);
|
|
2613
|
+
},
|
|
2614
|
+
mergeNumberFormat(e, t) {
|
|
2615
|
+
n.mergeNumberFormat(e, t);
|
|
2616
|
+
}
|
|
2617
|
+
};
|
|
2618
|
+
return i.__extender = r, e.env.NODE_ENV !== "production" && (i.__enableEmitter = (e) => {
|
|
2619
|
+
let t = n;
|
|
2620
|
+
t[Dr] && t[Dr](e);
|
|
2621
|
+
}, i.__disableEmitter = () => {
|
|
2622
|
+
let e = n;
|
|
2623
|
+
e[Or] && e[Or]();
|
|
2624
|
+
}), i;
|
|
2625
|
+
}
|
|
2626
|
+
function mi(t, n, r) {
|
|
2627
|
+
return {
|
|
2628
|
+
beforeCreate() {
|
|
2629
|
+
let e = zr();
|
|
2630
|
+
/* istanbul ignore if */
|
|
2631
|
+
if (!e) throw Q(Z.UNEXPECTED_ERROR);
|
|
2632
|
+
let i = this.$options;
|
|
2633
|
+
if (i.i18n) {
|
|
2634
|
+
let e = i.i18n;
|
|
2635
|
+
if (i.__i18n && (e.__i18n = i.__i18n), e.__root = n, this === this.$root) this.$i18n = hi(t, e);
|
|
2636
|
+
else {
|
|
2637
|
+
e.__injectWithOption = !0, e.__extender = r.__vueI18nExtend, this.$i18n = pi(e);
|
|
2638
|
+
let t = this.$i18n;
|
|
2639
|
+
t.__extender && (t.__disposer = t.__extender(this.$i18n));
|
|
2640
|
+
}
|
|
2641
|
+
} else if (i.__i18n) if (this === this.$root) this.$i18n = hi(t, i);
|
|
2642
|
+
else {
|
|
2643
|
+
this.$i18n = pi({
|
|
2644
|
+
__i18n: i.__i18n,
|
|
2645
|
+
__injectWithOption: !0,
|
|
2646
|
+
__extender: r.__vueI18nExtend,
|
|
2647
|
+
__root: n
|
|
2648
|
+
});
|
|
2649
|
+
let e = this.$i18n;
|
|
2650
|
+
e.__extender && (e.__disposer = e.__extender(this.$i18n));
|
|
2651
|
+
}
|
|
2652
|
+
else this.$i18n = t;
|
|
2653
|
+
i.__i18nGlobal && Lr(n, i, i), this.$t = (...e) => this.$i18n.t(...e), this.$rt = (...e) => this.$i18n.rt(...e), this.$te = (e, t) => this.$i18n.te(e, t), this.$d = (...e) => this.$i18n.d(...e), this.$n = (...e) => this.$i18n.n(...e), this.$tm = (e) => this.$i18n.tm(e), r.__setInstance(e, this.$i18n);
|
|
2654
|
+
},
|
|
2655
|
+
mounted() {
|
|
2656
|
+
/* istanbul ignore if */
|
|
2657
|
+
if (e.env.NODE_ENV !== "production" && this.$i18n) {
|
|
2658
|
+
let e = zr();
|
|
2659
|
+
if (!e) return;
|
|
2660
|
+
let t = this.$i18n;
|
|
2661
|
+
e.__VUE_I18N__ = t.__composer;
|
|
2662
|
+
let n = this.__v_emitter = Se();
|
|
2663
|
+
t.__enableEmitter && t.__enableEmitter(n), n.on("*", ui);
|
|
2664
|
+
}
|
|
2665
|
+
},
|
|
2666
|
+
unmounted() {
|
|
2667
|
+
let t = zr();
|
|
2668
|
+
/* istanbul ignore if */
|
|
2669
|
+
if (!t) throw Q(Z.UNEXPECTED_ERROR);
|
|
2670
|
+
let n = this.$i18n;
|
|
2671
|
+
/* istanbul ignore if */
|
|
2672
|
+
e.env.NODE_ENV !== "production" && t.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", ui), delete this.__v_emitter), n && (n.__disableEmitter && n.__disableEmitter(), delete t.__VUE_I18N__)), n && (delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, n?.__disposer && (n.__disposer(), delete n.__disposer, delete n.__extender), r.__deleteInstance(t), delete this.$i18n);
|
|
2673
|
+
}
|
|
2674
|
+
};
|
|
2675
|
+
}
|
|
2676
|
+
function hi(e, t) {
|
|
2677
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[kr](t.pluralizationRules || e.pluralizationRules);
|
|
2678
|
+
let n = Fr(e.locale, {
|
|
2679
|
+
messages: t.messages,
|
|
2680
|
+
__i18n: t.__i18n
|
|
2681
|
+
});
|
|
2682
|
+
return Object.keys(n).forEach((t) => e.mergeLocaleMessage(t, n[t])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
|
|
2683
|
+
}
|
|
2684
|
+
var gi = {
|
|
2685
|
+
tag: { type: [String, Object] },
|
|
2686
|
+
locale: { type: String },
|
|
2687
|
+
scope: {
|
|
2688
|
+
type: String,
|
|
2689
|
+
validator: (e) => e === "parent" || e === "global",
|
|
2690
|
+
default: "parent"
|
|
2691
|
+
},
|
|
2692
|
+
i18n: { type: Object }
|
|
2693
|
+
};
|
|
2694
|
+
function _i({ slots: e }, t) {
|
|
2695
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((e, t) => [...e, ...t.type === a ? t.children : [t]], []) : t.reduce((t, n) => {
|
|
2696
|
+
let r = e[n];
|
|
2697
|
+
return r && (t[n] = r()), t;
|
|
2698
|
+
}, N());
|
|
2699
|
+
}
|
|
2700
|
+
function vi() {
|
|
2701
|
+
return a;
|
|
2702
|
+
}
|
|
2703
|
+
var yi = /* @__PURE__ */ l({
|
|
2704
|
+
name: "i18n-t",
|
|
2705
|
+
props: M({
|
|
2706
|
+
keypath: {
|
|
2707
|
+
type: String,
|
|
2708
|
+
required: !0
|
|
2709
|
+
},
|
|
2710
|
+
plural: {
|
|
2711
|
+
type: [Number, String],
|
|
2712
|
+
validator: (e) => j(e) || !isNaN(e)
|
|
2713
|
+
}
|
|
2714
|
+
}, gi),
|
|
2715
|
+
setup(e, t) {
|
|
2716
|
+
let { slots: n, attrs: r } = t, i = e.i18n || Ai({
|
|
2717
|
+
useScope: e.scope,
|
|
2718
|
+
__useComponent: !0
|
|
2719
|
+
});
|
|
2720
|
+
return () => {
|
|
2721
|
+
let a = () => {
|
|
2722
|
+
let r = Object.keys(n).filter((e) => e[0] !== "_"), a = N();
|
|
2723
|
+
e.locale && (a.locale = e.locale), e.plural !== void 0 && (a.plural = R(e.plural) ? +e.plural : e.plural);
|
|
2724
|
+
let o = _i(t, r);
|
|
2725
|
+
return i[wr](e.keypath, o, a);
|
|
2726
|
+
}, o = M(N(), r), s = R(e.tag) || B(e.tag) ? e.tag : vi();
|
|
2727
|
+
return B(s) ? f(s, o, { default: a }) : f(s, o, a());
|
|
2728
|
+
};
|
|
2729
|
+
}
|
|
2730
|
+
});
|
|
2731
|
+
function bi(e) {
|
|
2732
|
+
return I(e) && !R(e[0]);
|
|
2733
|
+
}
|
|
2734
|
+
function xi(e, t, n, r) {
|
|
2735
|
+
let { slots: i, attrs: a } = t;
|
|
2736
|
+
return () => {
|
|
2737
|
+
let t = () => {
|
|
2738
|
+
let t = { part: !0 }, a = N();
|
|
2739
|
+
e.locale && (t.locale = e.locale), R(e.format) ? t.key = e.format : B(e.format) && (R(e.format.key) && (t.key = e.format.key), a = Object.keys(e.format).reduce((t, r) => n.includes(r) ? M(N(), t, { [r]: e.format[r] }) : t, N()));
|
|
2740
|
+
let o = r(e.value, t, a), s = [t.key];
|
|
2741
|
+
return I(o) ? s = o.map((e, t) => {
|
|
2742
|
+
let n = i[e.type], r = n ? n({
|
|
2743
|
+
[e.type]: e.value,
|
|
2744
|
+
index: t,
|
|
2745
|
+
parts: o
|
|
2746
|
+
}) : [e.value];
|
|
2747
|
+
return bi(r) && (r[0].key = `${e.type}-${t}`), r;
|
|
2748
|
+
}) : R(o) && (s = [o]), s;
|
|
2749
|
+
}, o = M(N(), a), s = R(e.tag) || B(e.tag) ? e.tag : vi();
|
|
2750
|
+
return B(s) ? f(s, o, { default: t }) : f(s, o, t());
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2753
|
+
var Si = /* @__PURE__ */ l({
|
|
2754
|
+
name: "i18n-n",
|
|
2755
|
+
props: M({
|
|
2756
|
+
value: {
|
|
2757
|
+
type: Number,
|
|
2758
|
+
required: !0
|
|
2759
|
+
},
|
|
2760
|
+
format: { type: [String, Object] }
|
|
2761
|
+
}, gi),
|
|
2762
|
+
setup(e, t) {
|
|
2763
|
+
let n = e.i18n || Ai({
|
|
2764
|
+
useScope: e.scope,
|
|
2765
|
+
__useComponent: !0
|
|
2766
|
+
});
|
|
2767
|
+
return xi(e, t, Un, (...e) => n[Er](...e));
|
|
2768
|
+
}
|
|
2769
|
+
});
|
|
2770
|
+
function Ci(e, t) {
|
|
2771
|
+
let n = e;
|
|
2772
|
+
if (e.mode === "composition") return n.__getInstance(t) || e.global;
|
|
2773
|
+
{
|
|
2774
|
+
let r = n.__getInstance(t);
|
|
2775
|
+
return r == null ? e.global.__composer : r.__composer;
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
function wi(t) {
|
|
2779
|
+
let n = (n) => {
|
|
2780
|
+
e.env.NODE_ENV !== "production" && C(Nr($.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
2781
|
+
let { instance: r, value: i } = n;
|
|
2782
|
+
/* istanbul ignore if */
|
|
2783
|
+
if (!r || !r.$) throw Q(Z.UNEXPECTED_ERROR);
|
|
2784
|
+
let a = Ci(t, r.$), o = Ti(i);
|
|
2785
|
+
return [Reflect.apply(a.t, a, [...Ei(o)]), a];
|
|
2786
|
+
};
|
|
2787
|
+
return {
|
|
2788
|
+
created: (e, t) => {
|
|
2789
|
+
let [r, i] = n(t);
|
|
2790
|
+
w && (e.__i18nWatcher = b(i.locale, () => {
|
|
2791
|
+
t.instance && t.instance.$forceUpdate();
|
|
2792
|
+
})), e.__composer = i, e.textContent = r;
|
|
2793
|
+
},
|
|
2794
|
+
unmounted: (e) => {
|
|
2795
|
+
w && e.__i18nWatcher && (e.__i18nWatcher(), e.__i18nWatcher = void 0, delete e.__i18nWatcher), e.__composer && (e.__composer = void 0, delete e.__composer);
|
|
2796
|
+
},
|
|
2797
|
+
beforeUpdate: (e, { value: t }) => {
|
|
2798
|
+
if (e.__composer) {
|
|
2799
|
+
let n = e.__composer, r = Ti(t);
|
|
2800
|
+
e.textContent = Reflect.apply(n.t, n, [...Ei(r)]);
|
|
2801
|
+
}
|
|
2802
|
+
},
|
|
2803
|
+
getSSRProps: (e) => {
|
|
2804
|
+
let [t] = n(e);
|
|
2805
|
+
return { textContent: t };
|
|
2806
|
+
}
|
|
2807
|
+
};
|
|
2808
|
+
}
|
|
2809
|
+
function Ti(e) {
|
|
2810
|
+
if (R(e)) return { path: e };
|
|
2811
|
+
if (V(e)) {
|
|
2812
|
+
if (!("path" in e)) throw Q(Z.REQUIRED_VALUE, "path");
|
|
2813
|
+
return e;
|
|
2814
|
+
} else throw Q(Z.INVALID_VALUE);
|
|
2815
|
+
}
|
|
2816
|
+
function Ei(e) {
|
|
2817
|
+
let { path: t, locale: n, args: r, choice: i, plural: a } = e, o = {}, s = r || {};
|
|
2818
|
+
return R(n) && (o.locale = n), j(i) && (o.plural = i), j(a) && (o.plural = a), [
|
|
2819
|
+
t,
|
|
2820
|
+
s,
|
|
2821
|
+
o
|
|
2822
|
+
];
|
|
2823
|
+
}
|
|
2824
|
+
function Di(e, t, ...n) {
|
|
2825
|
+
let r = V(n[0]) ? n[0] : {};
|
|
2826
|
+
(!z(r.globalInstall) || r.globalInstall) && ([yi.name, "I18nT"].forEach((t) => e.component(t, yi)), [Si.name, "I18nN"].forEach((t) => e.component(t, Si)), [Vi.name, "I18nD"].forEach((t) => e.component(t, Vi))), e.directive("t", wi(t));
|
|
2827
|
+
}
|
|
2828
|
+
var Oi = /* #__PURE__*/ k("global-vue-i18n");
|
|
2829
|
+
function ki(t = {}) {
|
|
2830
|
+
let n = __VUE_I18N_LEGACY_API__ && z(t.legacy) ? t.legacy : __VUE_I18N_LEGACY_API__;
|
|
2831
|
+
e.env.NODE_ENV !== "production" && n && C(Nr($.DEPRECATE_LEGACY_MODE));
|
|
2832
|
+
let r = z(t.globalInjection) ? t.globalInjection : !0, i = /* @__PURE__ */ new Map(), [a, o] = ji(t, n), s = /* #__PURE__*/ k(e.env.NODE_ENV === "production" ? "" : "vue-i18n");
|
|
2833
|
+
function c(e) {
|
|
2834
|
+
return i.get(e) || null;
|
|
2835
|
+
}
|
|
2836
|
+
function l(e, t) {
|
|
2837
|
+
i.set(e, t);
|
|
2838
|
+
}
|
|
2839
|
+
function u(e) {
|
|
2840
|
+
i.delete(e);
|
|
2841
|
+
}
|
|
2842
|
+
let d = {
|
|
2843
|
+
get mode() {
|
|
2844
|
+
return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition";
|
|
2845
|
+
},
|
|
2846
|
+
async install(t, ...i) {
|
|
2847
|
+
if (e.env.NODE_ENV !== "production" && (t.__VUE_I18N__ = d), t.__VUE_I18N_SYMBOL__ = s, t.provide(t.__VUE_I18N_SYMBOL__, d), V(i[0])) {
|
|
2848
|
+
let e = i[0];
|
|
2849
|
+
d.__composerExtend = e.__composerExtend, d.__vueI18nExtend = e.__vueI18nExtend;
|
|
2850
|
+
}
|
|
2851
|
+
let a = null;
|
|
2852
|
+
!n && r && (a = Bi(t, d.global)), __VUE_I18N_FULL_INSTALL__ && Di(t, d, ...i), __VUE_I18N_LEGACY_API__ && n && t.mixin(mi(o, o.__composer, d));
|
|
2853
|
+
let c = t.unmount;
|
|
2854
|
+
if (t.unmount = () => {
|
|
2855
|
+
a && a(), d.dispose(), c();
|
|
2856
|
+
}, e.env.NODE_ENV !== "production") {
|
|
2857
|
+
if (!await Xr(t, d)) throw Q(Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
2858
|
+
let e = Se();
|
|
2859
|
+
if (n) {
|
|
2860
|
+
let t = o;
|
|
2861
|
+
t.__enableEmitter && t.__enableEmitter(e);
|
|
2862
|
+
} else {
|
|
2863
|
+
let t = o;
|
|
2864
|
+
t[Dr] && t[Dr](e);
|
|
2865
|
+
}
|
|
2866
|
+
e.on("*", ui);
|
|
2867
|
+
}
|
|
2868
|
+
},
|
|
2869
|
+
get global() {
|
|
2870
|
+
return o;
|
|
2871
|
+
},
|
|
2872
|
+
dispose() {
|
|
2873
|
+
a.stop();
|
|
2874
|
+
},
|
|
2875
|
+
__instances: i,
|
|
2876
|
+
__getInstance: c,
|
|
2877
|
+
__setInstance: l,
|
|
2878
|
+
__deleteInstance: u
|
|
2879
|
+
};
|
|
2880
|
+
return d;
|
|
2881
|
+
}
|
|
2882
|
+
function Ai(t = {}) {
|
|
2883
|
+
let n = zr();
|
|
2884
|
+
if (n == null) throw Q(Z.MUST_BE_CALL_SETUP_TOP);
|
|
2885
|
+
if (!n.isCE && n.appContext.app != null && !n.appContext.app.__VUE_I18N_SYMBOL__) throw Q(Z.NOT_INSTALLED);
|
|
2886
|
+
let r = Mi(n), i = Pi(r), a = Ir(n), o = Ni(t, a);
|
|
2887
|
+
if (o === "global") return Lr(i, t, a), i;
|
|
2888
|
+
if (o === "parent") {
|
|
2889
|
+
let a = Fi(r, n, t.__useComponent);
|
|
2890
|
+
return a ??= (e.env.NODE_ENV !== "production" && x(Nr($.NOT_FOUND_PARENT_SCOPE)), i), a;
|
|
2891
|
+
}
|
|
2892
|
+
if (o === "isolated") {
|
|
2893
|
+
if (r.mode !== "composition") throw Q(Z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
2894
|
+
let a = r, o = M({}, t);
|
|
2895
|
+
o.__root = Fi(r, n) || i;
|
|
2896
|
+
let s = Wr(o);
|
|
2897
|
+
a.__composerExtend && (s[jr] = a.__composerExtend(s));
|
|
2898
|
+
let c = null;
|
|
2899
|
+
if (e.env.NODE_ENV !== "production") {
|
|
2900
|
+
c = Se();
|
|
2901
|
+
let e = s;
|
|
2902
|
+
e[Dr] && e[Dr](c), c.on("*", ui);
|
|
2903
|
+
}
|
|
2904
|
+
return d() && g(() => {
|
|
2905
|
+
if (e.env.NODE_ENV !== "production") {
|
|
2906
|
+
c && c.off("*", ui);
|
|
2907
|
+
let e = s;
|
|
2908
|
+
e[Or] && e[Or]();
|
|
2909
|
+
}
|
|
2910
|
+
let t = s[jr];
|
|
2911
|
+
t && (t(), delete s[jr]);
|
|
2912
|
+
}), s;
|
|
2913
|
+
}
|
|
2914
|
+
let s = r, c = s.__getInstance(n);
|
|
2915
|
+
if (c == null) {
|
|
2916
|
+
let e = M({}, t);
|
|
2917
|
+
"__i18n" in a && (e.__i18n = a.__i18n), i && (e.__root = i), c = Wr(e), s.__composerExtend && (c[jr] = s.__composerExtend(c)), Li(s, n, c), s.__setInstance(n, c);
|
|
2918
|
+
} else e.env.NODE_ENV !== "production" && o === "local" && x(Nr($.DUPLICATE_USE_I18N_CALLING));
|
|
2919
|
+
return c;
|
|
2920
|
+
}
|
|
2921
|
+
function ji(e, t) {
|
|
2922
|
+
let n = u(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => pi(e)) : n.run(() => Wr(e));
|
|
2923
|
+
if (r == null) throw Q(Z.UNEXPECTED_ERROR);
|
|
2924
|
+
return [n, r];
|
|
2925
|
+
}
|
|
2926
|
+
function Mi(e) {
|
|
2927
|
+
let t = p(e.isCE ? Oi : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2928
|
+
/* istanbul ignore if */
|
|
2929
|
+
if (!t) throw Q(e.isCE ? Z.NOT_INSTALLED_WITH_PROVIDE : Z.UNEXPECTED_ERROR);
|
|
2930
|
+
return t;
|
|
2931
|
+
}
|
|
2932
|
+
function Ni(e, t) {
|
|
2933
|
+
return re(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2934
|
+
}
|
|
2935
|
+
function Pi(e) {
|
|
2936
|
+
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2937
|
+
}
|
|
2938
|
+
function Fi(e, t, n = !1) {
|
|
2939
|
+
let r = null, i = t.root, a = Ii(t, n);
|
|
2940
|
+
for (; a != null;) {
|
|
2941
|
+
let t = e;
|
|
2942
|
+
if (e.mode === "composition") r = t.__getInstance(a);
|
|
2943
|
+
else if (__VUE_I18N_LEGACY_API__) {
|
|
2944
|
+
let e = t.__getInstance(a);
|
|
2945
|
+
e != null && (r = e.__composer, n && r && !r[Ar] && (r = null));
|
|
2946
|
+
}
|
|
2947
|
+
if (r != null || i === a) break;
|
|
2948
|
+
a = a.parent;
|
|
2949
|
+
}
|
|
2950
|
+
return r;
|
|
2951
|
+
}
|
|
2952
|
+
function Ii(e, t = !1) {
|
|
2953
|
+
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2954
|
+
}
|
|
2955
|
+
function Li(t, n, r) {
|
|
2956
|
+
let i = null;
|
|
2957
|
+
h(() => {
|
|
2958
|
+
if (e.env.NODE_ENV !== "production") {
|
|
2959
|
+
n.__VUE_I18N__ = r, i = Se();
|
|
2960
|
+
let e = r;
|
|
2961
|
+
e[Dr] && e[Dr](i), i.on("*", ui);
|
|
2962
|
+
}
|
|
2963
|
+
}, n), _(() => {
|
|
2964
|
+
let a = r;
|
|
2965
|
+
e.env.NODE_ENV !== "production" && (i && i.off("*", ui), a[Or] && a[Or](), delete n.__VUE_I18N__), t.__deleteInstance(n);
|
|
2966
|
+
let o = a[jr];
|
|
2967
|
+
o && (o(), delete a[jr]);
|
|
2968
|
+
}, n);
|
|
2969
|
+
}
|
|
2970
|
+
var Ri = [
|
|
2971
|
+
"locale",
|
|
2972
|
+
"fallbackLocale",
|
|
2973
|
+
"availableLocales"
|
|
2974
|
+
], zi = [
|
|
2975
|
+
"t",
|
|
2976
|
+
"rt",
|
|
2977
|
+
"d",
|
|
2978
|
+
"n",
|
|
2979
|
+
"tm",
|
|
2980
|
+
"te"
|
|
2981
|
+
];
|
|
2982
|
+
function Bi(e, t) {
|
|
2983
|
+
let n = Object.create(null);
|
|
2984
|
+
return Ri.forEach((e) => {
|
|
2985
|
+
let r = Object.getOwnPropertyDescriptor(t, e);
|
|
2986
|
+
if (!r) throw Q(Z.UNEXPECTED_ERROR);
|
|
2987
|
+
let i = m(r.value) ? {
|
|
2988
|
+
get() {
|
|
2989
|
+
return r.value.value;
|
|
2990
|
+
},
|
|
2991
|
+
set(e) {
|
|
2992
|
+
r.value.value = e;
|
|
2993
|
+
}
|
|
2994
|
+
} : { get() {
|
|
2995
|
+
return r.get && r.get();
|
|
2996
|
+
} };
|
|
2997
|
+
Object.defineProperty(n, e, i);
|
|
2998
|
+
}), e.config.globalProperties.$i18n = n, zi.forEach((n) => {
|
|
2999
|
+
let r = Object.getOwnPropertyDescriptor(t, n);
|
|
3000
|
+
if (!r || !r.value) throw Q(Z.UNEXPECTED_ERROR);
|
|
3001
|
+
Object.defineProperty(e.config.globalProperties, `$${n}`, r);
|
|
3002
|
+
}), () => {
|
|
3003
|
+
delete e.config.globalProperties.$i18n, zi.forEach((t) => {
|
|
3004
|
+
delete e.config.globalProperties[`$${t}`];
|
|
3005
|
+
});
|
|
3006
|
+
};
|
|
3007
|
+
}
|
|
3008
|
+
var Vi = /* @__PURE__ */ l({
|
|
3009
|
+
name: "i18n-d",
|
|
3010
|
+
props: M({
|
|
3011
|
+
value: {
|
|
3012
|
+
type: [Number, Date],
|
|
3013
|
+
required: !0
|
|
3014
|
+
},
|
|
3015
|
+
format: { type: [String, Object] }
|
|
3016
|
+
}, gi),
|
|
3017
|
+
setup(e, t) {
|
|
3018
|
+
let n = e.i18n || Ai({
|
|
3019
|
+
useScope: e.scope,
|
|
3020
|
+
__useComponent: !0
|
|
3021
|
+
});
|
|
3022
|
+
return xi(e, t, zn, (...e) => n[Tr](...e));
|
|
3023
|
+
}
|
|
3024
|
+
});
|
|
3025
|
+
if (Sr(), _n(Lt), yn(ln), xn(Yt), e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3026
|
+
let e = oe();
|
|
3027
|
+
e.__INTLIFY__ = !0, zt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3028
|
+
}
|
|
3029
|
+
e.env.NODE_ENV;
|
|
3030
|
+
//#endregion
|
|
3031
|
+
export { Ai as n, ki as t };
|