@webitel/ui-sdk 26.6.33 → 26.6.35
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/AgentStatus.enum-C3IGHtvR.js +9 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/caseConverters-DXegZoCt.js +27 -0
- package/dist/chunk-CY3AvKd6.js +20 -0
- package/dist/clients-A6MHYfOX.js +36118 -0
- package/dist/components-B4aAS7wB.js +5391 -0
- package/dist/composables-DnDH-KUv.js +263 -0
- package/dist/convertDuration-1K7fuEpO.js +8 -0
- package/dist/debounce-DrmECuJ2.js +128 -0
- package/dist/deep-copy-CQw5yeEH.js +41 -0
- package/dist/displayText-CtaxzaBz.js +3 -0
- package/dist/dist-05Bf47Wg.js +87 -0
- package/dist/dist-BYiYpK00.js +7 -0
- package/dist/dist-Dz55hlwp.js +1371 -0
- package/dist/engineCallFileType-D7QVFOac.js +11 -0
- package/dist/enums-pbYAJNeb.js +158 -0
- package/dist/errors-SUXKojVW.js +69 -0
- package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
- package/dist/generateInstance-ppTIeLX4.js +2582 -0
- package/dist/isObject-Dgs_L5xI.js +11 -0
- package/dist/logger-hl3ueNok.js +47 -0
- package/dist/prod-Cp0BjuxI.js +775 -0
- package/dist/prod-DSuxcp5t.js +2 -0
- package/dist/side-channel-Cyte-MzW.js +833 -0
- package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
- package/dist/srt-parser-DdH5U08c.js +21 -0
- package/dist/ssa-parser-Bjs7yDD1.js +184 -0
- package/dist/ui-sdk.css +2 -1
- package/dist/ui-sdk.js +34541 -4
- package/dist/ui-sdk.umd.cjs +7740 -7606
- package/dist/useExpansion-DVdIpoOn.js +24 -0
- package/dist/useValidation-DG0tifBv.js +37 -0
- package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
- package/dist/useWtTable-tqmVOvve.js +12 -0
- package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
- package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
- package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
- package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
- package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
- package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
- package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
- package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
- package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
- package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
- package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
- package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
- package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
- package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
- package/dist/vidstack-audio-B58bvsna.js +23 -0
- package/dist/vidstack-dash-CX-LTHx3.js +332 -0
- package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
- package/dist/vidstack-hls-CLzdTFu6.js +269 -0
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
- package/dist/vidstack-video-XtP8iTBc.js +151 -0
- package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
- package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
- package/dist/vue-i18n-B8Px6VcD.js +2201 -0
- package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
- package/dist/wt-button-DENbrKdy.js +785 -0
- package/dist/wt-button-select-BnRHgJ4i.js +80 -0
- package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
- package/dist/wt-chat-emoji-wdBt1XzD.js +2208 -0
- package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
- package/dist/wt-context-menu-yW52oF-2.js +89 -0
- package/dist/wt-copy-action-d9gVzAsB.js +38 -0
- package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
- package/dist/wt-display-chip-items-CvMM8WMk.js +34 -0
- package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
- package/dist/wt-dummy-CLjhRWZ6.js +59 -0
- package/dist/wt-error-page-vhu4lIyF.js +62 -0
- package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
- package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
- package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
- package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
- package/dist/wt-galleria-CWXKuZTD.js +224 -0
- package/dist/wt-icon-action-CQlZHMDB.js +100 -0
- package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
- package/dist/wt-icon-pxO7IjwV.js +1026 -0
- package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
- package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
- package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
- package/dist/wt-page-header-CDbd4aOh.js +59 -0
- package/dist/wt-pagination-BA_PZPIE.js +94 -0
- package/dist/wt-player-uidPXSTe.js +287 -0
- package/dist/wt-popover-CJZH3wMl.js +98 -0
- package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
- package/dist/wt-search-bar-CWZdvAOf.js +123 -0
- package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
- package/dist/wt-send-message-popup-D0GJMGni.js +77 -0
- package/dist/wt-slider-BS3SoGht.js +68 -0
- package/dist/wt-start-page-eN1PEokc.js +86 -0
- package/dist/wt-status-select-A5t6Vjm4.js +101 -0
- package/dist/wt-stepper-B6zpd1Uh.js +41 -0
- package/dist/wt-table-D0FynxIE.js +364 -0
- package/dist/wt-table-actions-4-peSVkc.js +63 -0
- package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
- package/dist/wt-tabs-DuOgj-lZ.js +60 -0
- package/dist/wt-time-input-CO2cop3y.js +62 -0
- package/dist/wt-timepicker-BltFF1QD.js +145 -0
- package/dist/wt-tree-ZyoPrNOl.js +1206 -0
- package/dist/wt-tree-table-MLET4gIv.js +221 -0
- package/dist/wt-type-extension-value-input-fnNxJLsq.js +104 -0
- package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
- package/package.json +5 -5
- package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +2 -2
- package/dist/contacts-C-FnP7wP.js +0 -49654
- package/dist/displayText-Cbh4IOfM.js +0 -5
- package/dist/engineCallFileType-yaadA7-2.js +0 -8
- package/dist/errors-CTL-RV3B.js +0 -70
- package/dist/index-BBLSS-t1.js +0 -50
- package/dist/install-DOSuNFtE.js +0 -53489
- package/dist/isObject-CMQJaQIp.js +0 -28
- package/dist/prod-BoQuiIB3.js +0 -973
- package/dist/srt-parser-CsN7bp5E.js +0 -26
- package/dist/ssa-parser-BJOOPeQF.js +0 -200
- package/dist/useExpansion-BrQ40HiR.js +0 -24
- package/dist/useVidstackSrc-MfWBq7Ef.js +0 -1341
- package/dist/vidstack-Bq6c3Bam-C_T8PkmG.js +0 -426
- package/dist/vidstack-D2pY00kU-CphVKcJq.js +0 -136
- package/dist/vidstack-DDXt6fpN-2lNfj8Ca.js +0 -51
- package/dist/vidstack-D_-9AA6_-Cyl8HzDm.js +0 -21
- package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
- package/dist/vidstack-DqAw8m9J-C2p9K7Db.js +0 -22
- package/dist/vidstack-audio-BL-Sa_Ap.js +0 -28
- package/dist/vidstack-dash-mKhgfurw.js +0 -393
- package/dist/vidstack-google-cast-BGqSw2iP.js +0 -383
- package/dist/vidstack-hls-U5fTV3hj.js +0 -310
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
- package/dist/vidstack-video-Bxf7KDne.js +0 -164
- package/dist/vidstack-vimeo-MngSXtDR.js +0 -452
- package/dist/vidstack-youtube-Ctg91VeX.js +0 -233
- package/dist/wt-action-bar-DaDcqA4n.js +0 -102
- package/dist/wt-button-select-q_BITVhH.js +0 -105
- package/dist/wt-call-media-action-BkBcZN17.js +0 -60
- package/dist/wt-chat-emoji-BGuSgYi3.js +0 -2909
- package/dist/wt-confirm-dialog-C7-74ROm.js +0 -92
- package/dist/wt-context-menu-CzAHMaOj.js +0 -104
- package/dist/wt-copy-action-BpckAObd.js +0 -60
- package/dist/wt-datepicker-DauMnf2r.js +0 -5660
- package/dist/wt-display-chip-items-zcqxH89_.js +0 -47
- package/dist/wt-dual-panel-Cj79kJpk.js +0 -66
- package/dist/wt-dummy-BUHYAcsk.js +0 -104
- package/dist/wt-error-page-CNSqDA-o.js +0 -89
- package/dist/wt-expansion-card-CtcuXg6f.js +0 -56
- package/dist/wt-expansion-panel-BU2Hb-N2.js +0 -54
- package/dist/wt-filters-panel-wrapper-BlLlAixc.js +0 -75
- package/dist/wt-galleria-BQzGD6-3.js +0 -323
- package/dist/wt-inline-add-panel-fG58a6T3.js +0 -49
- package/dist/wt-navigation-menu-2ggfyrM_.js +0 -159
- package/dist/wt-notifications-bar-Epn_SA_R.js +0 -79
- package/dist/wt-page-header-DdsnoLgd.js +0 -115
- package/dist/wt-pagination-Byg79HfY.js +0 -144
- package/dist/wt-player-kjdJYVi3.js +0 -291
- package/dist/wt-popover-Di-7_rDL.js +0 -4
- package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
- package/dist/wt-screen-recordings-action-Z3x-gI0n.js +0 -54
- package/dist/wt-search-bar-CxwSi-Xo.js +0 -144
- package/dist/wt-selection-popup-MdCfrgcd.js +0 -109
- package/dist/wt-send-message-popup-DklTgoGj.js +0 -579
- package/dist/wt-slider-BEkw4KGp.js +0 -4
- package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
- package/dist/wt-start-page-B59KbWqX.js +0 -99
- package/dist/wt-status-select-hOAr_xBg.js +0 -138
- package/dist/wt-stepper-CMeW3d6N.js +0 -65
- package/dist/wt-table-C5CLtnK5.js +0 -426
- package/dist/wt-table-actions-DgAfy-dd.js +0 -79
- package/dist/wt-table-column-select-BK5rozpI.js +0 -128
- package/dist/wt-tabs-Bn6rSg0s.js +0 -74
- package/dist/wt-time-input-DYiW0ijt.js +0 -42
- package/dist/wt-timepicker-CkjoLwXC.js +0 -118
- package/dist/wt-tree-CCvr4TTF.js +0 -2777
- package/dist/wt-tree-table-BWmGF3rE.js +0 -285
- package/dist/wt-type-extension-value-input-q5286OSO.js +0 -121
- package/dist/wt-vidstack-player-CTWna35Q.js +0 -9093
|
@@ -0,0 +1,2201 @@
|
|
|
1
|
+
import { n as e, t } from "./dist-BYiYpK00.js";
|
|
2
|
+
import { n, t as r } from "./dist-05Bf47Wg.js";
|
|
3
|
+
import * as i from "vue";
|
|
4
|
+
import { Text as a, computed as o, createVNode as s, inject as c, onMounted as l, onUnmounted as u, ref as d, shallowRef as f, watch as p } from "vue";
|
|
5
|
+
e(), r();
|
|
6
|
+
function m(e, t) {
|
|
7
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
8
|
+
}
|
|
9
|
+
var h = {};
|
|
10
|
+
function g(e) {
|
|
11
|
+
h[e] || (h[e] = !0, m(e));
|
|
12
|
+
}
|
|
13
|
+
var _ = typeof window < "u", v, y;
|
|
14
|
+
if (n.env.NODE_ENV !== "production") {
|
|
15
|
+
let e = _ && window.performance;
|
|
16
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (v = (t) => {
|
|
17
|
+
e.mark(t);
|
|
18
|
+
}, y = (t, n, r) => {
|
|
19
|
+
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
var b = /\{([0-9a-zA-Z]+)\}/g;
|
|
23
|
+
function x(e, ...t) {
|
|
24
|
+
return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(b, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
25
|
+
}
|
|
26
|
+
var S = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), C = (e, t, n) => w({
|
|
27
|
+
l: e,
|
|
28
|
+
k: t,
|
|
29
|
+
s: n
|
|
30
|
+
}), w = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), T = (e) => typeof e == "number" && isFinite(e), E = (e) => se(e) === "[object Date]", D = (e) => se(e) === "[object RegExp]", O = (e) => z(e) && Object.keys(e).length === 0, k = Object.assign, ee = Object.create, A = (e = null) => ee(e), te, j = () => te ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : t === void 0 ? A() : t;
|
|
31
|
+
function M(e) {
|
|
32
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
33
|
+
}
|
|
34
|
+
function ne(e) {
|
|
35
|
+
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
36
|
+
}
|
|
37
|
+
function re(e) {
|
|
38
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${ne(n)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${ne(n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (n.env.NODE_ENV !== "production" && m("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach((t) => {
|
|
39
|
+
e = e.replace(t, "$1javascript:");
|
|
40
|
+
}), e;
|
|
41
|
+
}
|
|
42
|
+
var ie = Object.prototype.hasOwnProperty;
|
|
43
|
+
function N(e, t) {
|
|
44
|
+
return ie.call(e, t);
|
|
45
|
+
}
|
|
46
|
+
var P = Array.isArray, F = (e) => typeof e == "function", I = (e) => typeof e == "string", L = (e) => typeof e == "boolean", R = (e) => typeof e == "object" && !!e, ae = (e) => R(e) && F(e.then) && F(e.catch), oe = Object.prototype.toString, se = (e) => oe.call(e), z = (e) => se(e) === "[object Object]", ce = (e) => e == null ? "" : P(e) || z(e) && e.toString === oe ? JSON.stringify(e, null, 2) : String(e);
|
|
47
|
+
function le(e, t = "") {
|
|
48
|
+
return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
|
|
49
|
+
}
|
|
50
|
+
var ue = 2;
|
|
51
|
+
function de(e, t = 0, n = e.length) {
|
|
52
|
+
let r = e.split(/\r?\n/), i = 0, a = [];
|
|
53
|
+
for (let e = 0; e < r.length; e++) if (i += r[e].length + 1, i >= t) {
|
|
54
|
+
for (let o = e - ue; o <= e + ue || n > i; o++) {
|
|
55
|
+
if (o < 0 || o >= r.length) continue;
|
|
56
|
+
let s = o + 1;
|
|
57
|
+
a.push(`${s}${" ".repeat(3 - String(s).length)}| ${r[o]}`);
|
|
58
|
+
let c = r[o].length;
|
|
59
|
+
if (o === e) {
|
|
60
|
+
let e = t - (i - c) + 1, r = Math.max(1, n > i ? c - e : n - t);
|
|
61
|
+
a.push(" | " + " ".repeat(e) + "^".repeat(r));
|
|
62
|
+
} else if (o > e) {
|
|
63
|
+
if (n > i) {
|
|
64
|
+
let e = Math.max(Math.min(n - i, c), 1);
|
|
65
|
+
a.push(" | " + "^".repeat(e));
|
|
66
|
+
}
|
|
67
|
+
i += c + 1;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
return a.join("\n");
|
|
73
|
+
}
|
|
74
|
+
function B() {
|
|
75
|
+
let e = /* @__PURE__ */ new Map();
|
|
76
|
+
return {
|
|
77
|
+
events: e,
|
|
78
|
+
on(t, n) {
|
|
79
|
+
let r = e.get(t);
|
|
80
|
+
r && r.push(n) || e.set(t, [n]);
|
|
81
|
+
},
|
|
82
|
+
off(t, n) {
|
|
83
|
+
let r = e.get(t);
|
|
84
|
+
r && r.splice(r.indexOf(n) >>> 0, 1);
|
|
85
|
+
},
|
|
86
|
+
emit(t, n) {
|
|
87
|
+
(e.get(t) || []).slice().map((e) => e(n)), (e.get("*") || []).slice().map((e) => e(t, n));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
var fe = (e) => !R(e) || P(e);
|
|
92
|
+
function pe(e, t) {
|
|
93
|
+
if (fe(e) || fe(t)) throw Error("Invalid value");
|
|
94
|
+
let n = [{
|
|
95
|
+
src: e,
|
|
96
|
+
des: t
|
|
97
|
+
}];
|
|
98
|
+
for (; n.length;) {
|
|
99
|
+
let { src: e, des: t } = n.pop();
|
|
100
|
+
Object.keys(e).forEach((r) => {
|
|
101
|
+
r !== "__proto__" && (R(e[r]) && !R(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : A()), fe(t[r]) || fe(e[r]) ? t[r] = e[r] : n.push({
|
|
102
|
+
src: e[r],
|
|
103
|
+
des: t[r]
|
|
104
|
+
}));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region node_modules/@intlify/message-compiler/dist/message-compiler.mjs
|
|
110
|
+
r();
|
|
111
|
+
function me(e, t, n) {
|
|
112
|
+
return {
|
|
113
|
+
line: e,
|
|
114
|
+
column: t,
|
|
115
|
+
offset: n
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function he(e, t, n) {
|
|
119
|
+
let r = {
|
|
120
|
+
start: e,
|
|
121
|
+
end: t
|
|
122
|
+
};
|
|
123
|
+
return n != null && (r.source = n), r;
|
|
124
|
+
}
|
|
125
|
+
var V = {
|
|
126
|
+
EXPECTED_TOKEN: 1,
|
|
127
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
128
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
129
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
130
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
131
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
|
132
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
|
133
|
+
EMPTY_PLACEHOLDER: 8,
|
|
134
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
135
|
+
INVALID_LINKED_FORMAT: 10,
|
|
136
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
137
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
138
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
139
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
140
|
+
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
141
|
+
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
142
|
+
}, ge = {
|
|
143
|
+
[V.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
144
|
+
[V.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
145
|
+
[V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
146
|
+
[V.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
147
|
+
[V.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
148
|
+
[V.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
149
|
+
[V.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
150
|
+
[V.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
151
|
+
[V.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
152
|
+
[V.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
153
|
+
[V.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
154
|
+
[V.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
155
|
+
[V.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
156
|
+
[V.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
157
|
+
[V.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
158
|
+
[V.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
159
|
+
};
|
|
160
|
+
function _e(e, t, r = {}) {
|
|
161
|
+
let { domain: i, messages: a, args: o } = r, s = n.env.NODE_ENV === "production" ? e : x((a || ge)[e] || "", ...o || []), c = SyntaxError(String(s));
|
|
162
|
+
return c.code = e, t && (c.location = t), c.domain = i, c;
|
|
163
|
+
}
|
|
164
|
+
function ve(e) {
|
|
165
|
+
throw e;
|
|
166
|
+
}
|
|
167
|
+
var ye = /<\/?[\w\s="/.':;#-\/]+>/, be = (e) => ye.test(e), H = " ", xe = "\r", U = "\n", Se = "\u2028", Ce = "\u2029";
|
|
168
|
+
function we(e) {
|
|
169
|
+
let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === xe && t[e + 1] === U, s = (e) => t[e] === U, c = (e) => t[e] === Ce, l = (e) => t[e] === Se, 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) ? U : t[e], g = () => h(n), _ = () => h(n + a);
|
|
170
|
+
function v() {
|
|
171
|
+
return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
|
|
172
|
+
}
|
|
173
|
+
function y() {
|
|
174
|
+
return o(n + a) && a++, a++, t[n + a];
|
|
175
|
+
}
|
|
176
|
+
function b() {
|
|
177
|
+
n = 0, r = 1, i = 1, a = 0;
|
|
178
|
+
}
|
|
179
|
+
function x(e = 0) {
|
|
180
|
+
a = e;
|
|
181
|
+
}
|
|
182
|
+
function S() {
|
|
183
|
+
let e = n + a;
|
|
184
|
+
for (; e !== n;) v();
|
|
185
|
+
a = 0;
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
index: d,
|
|
189
|
+
line: f,
|
|
190
|
+
column: p,
|
|
191
|
+
peekOffset: m,
|
|
192
|
+
charAt: h,
|
|
193
|
+
currentChar: g,
|
|
194
|
+
currentPeek: _,
|
|
195
|
+
next: v,
|
|
196
|
+
peek: y,
|
|
197
|
+
reset: b,
|
|
198
|
+
resetPeek: x,
|
|
199
|
+
skipToPeek: S
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
var W = void 0, Te = "'", Ee = "tokenizer";
|
|
203
|
+
function De(e, t = {}) {
|
|
204
|
+
let n = t.location !== !1, r = we(e), i = () => r.index(), a = () => me(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
|
|
205
|
+
currentType: 13,
|
|
206
|
+
offset: s,
|
|
207
|
+
startLoc: o,
|
|
208
|
+
endLoc: o,
|
|
209
|
+
lastType: 13,
|
|
210
|
+
lastOffset: s,
|
|
211
|
+
lastStartLoc: o,
|
|
212
|
+
lastEndLoc: o,
|
|
213
|
+
braceNest: 0,
|
|
214
|
+
inLinked: !1,
|
|
215
|
+
text: ""
|
|
216
|
+
}, l = () => c, { onError: u } = t;
|
|
217
|
+
function d(e, t, r, ...i) {
|
|
218
|
+
let a = l();
|
|
219
|
+
t.column += r, t.offset += r, u && u(_e(e, n ? he(a.startLoc, t) : null, {
|
|
220
|
+
domain: Ee,
|
|
221
|
+
args: i
|
|
222
|
+
}));
|
|
223
|
+
}
|
|
224
|
+
function f(e, t, r) {
|
|
225
|
+
e.endLoc = a(), e.currentType = t;
|
|
226
|
+
let i = { type: t };
|
|
227
|
+
return n && (i.loc = he(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
|
|
228
|
+
}
|
|
229
|
+
let p = (e) => f(e, 13);
|
|
230
|
+
function m(e, t) {
|
|
231
|
+
return e.currentChar() === t ? (e.next(), t) : (d(V.EXPECTED_TOKEN, a(), 0, t), "");
|
|
232
|
+
}
|
|
233
|
+
function h(e) {
|
|
234
|
+
let t = "";
|
|
235
|
+
for (; e.currentPeek() === H || e.currentPeek() === U;) t += e.currentPeek(), e.peek();
|
|
236
|
+
return t;
|
|
237
|
+
}
|
|
238
|
+
function g(e) {
|
|
239
|
+
let t = h(e);
|
|
240
|
+
return e.skipToPeek(), t;
|
|
241
|
+
}
|
|
242
|
+
function _(e) {
|
|
243
|
+
if (e === W) return !1;
|
|
244
|
+
let t = e.charCodeAt(0);
|
|
245
|
+
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === 95;
|
|
246
|
+
}
|
|
247
|
+
function v(e) {
|
|
248
|
+
if (e === W) return !1;
|
|
249
|
+
let t = e.charCodeAt(0);
|
|
250
|
+
return t >= 48 && t <= 57;
|
|
251
|
+
}
|
|
252
|
+
function y(e, t) {
|
|
253
|
+
let { currentType: n } = t;
|
|
254
|
+
if (n !== 2) return !1;
|
|
255
|
+
h(e);
|
|
256
|
+
let r = _(e.currentPeek());
|
|
257
|
+
return e.resetPeek(), r;
|
|
258
|
+
}
|
|
259
|
+
function b(e, t) {
|
|
260
|
+
let { currentType: n } = t;
|
|
261
|
+
if (n !== 2) return !1;
|
|
262
|
+
h(e);
|
|
263
|
+
let r = v(e.currentPeek() === "-" ? e.peek() : e.currentPeek());
|
|
264
|
+
return e.resetPeek(), r;
|
|
265
|
+
}
|
|
266
|
+
function x(e, t) {
|
|
267
|
+
let { currentType: n } = t;
|
|
268
|
+
if (n !== 2) return !1;
|
|
269
|
+
h(e);
|
|
270
|
+
let r = e.currentPeek() === Te;
|
|
271
|
+
return e.resetPeek(), r;
|
|
272
|
+
}
|
|
273
|
+
function S(e, t) {
|
|
274
|
+
let { currentType: n } = t;
|
|
275
|
+
if (n !== 7) return !1;
|
|
276
|
+
h(e);
|
|
277
|
+
let r = e.currentPeek() === ".";
|
|
278
|
+
return e.resetPeek(), r;
|
|
279
|
+
}
|
|
280
|
+
function C(e, t) {
|
|
281
|
+
let { currentType: n } = t;
|
|
282
|
+
if (n !== 8) return !1;
|
|
283
|
+
h(e);
|
|
284
|
+
let r = _(e.currentPeek());
|
|
285
|
+
return e.resetPeek(), r;
|
|
286
|
+
}
|
|
287
|
+
function w(e, t) {
|
|
288
|
+
let { currentType: n } = t;
|
|
289
|
+
if (!(n === 7 || n === 11)) return !1;
|
|
290
|
+
h(e);
|
|
291
|
+
let r = e.currentPeek() === ":";
|
|
292
|
+
return e.resetPeek(), r;
|
|
293
|
+
}
|
|
294
|
+
function T(e, t) {
|
|
295
|
+
let { currentType: n } = t;
|
|
296
|
+
if (n !== 9) return !1;
|
|
297
|
+
let r = () => {
|
|
298
|
+
let t = e.currentPeek();
|
|
299
|
+
return t === "{" ? _(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === H || !t ? !1 : t === U ? (e.peek(), r()) : D(e, !1);
|
|
300
|
+
}, i = r();
|
|
301
|
+
return e.resetPeek(), i;
|
|
302
|
+
}
|
|
303
|
+
function E(e) {
|
|
304
|
+
h(e);
|
|
305
|
+
let t = e.currentPeek() === "|";
|
|
306
|
+
return e.resetPeek(), t;
|
|
307
|
+
}
|
|
308
|
+
function D(e, t = !0) {
|
|
309
|
+
let n = (t = !1, r = "") => {
|
|
310
|
+
let i = e.currentPeek();
|
|
311
|
+
return i === "{" || i === "@" || !i ? t : i === "|" ? !(r === H || r === U) : i === H ? (e.peek(), n(!0, H)) : i === U ? (e.peek(), n(!0, U)) : !0;
|
|
312
|
+
}, r = n();
|
|
313
|
+
return t && e.resetPeek(), r;
|
|
314
|
+
}
|
|
315
|
+
function O(e, t) {
|
|
316
|
+
let n = e.currentChar();
|
|
317
|
+
if (n !== W) return t(n) ? (e.next(), n) : null;
|
|
318
|
+
}
|
|
319
|
+
function k(e) {
|
|
320
|
+
let t = e.charCodeAt(0);
|
|
321
|
+
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
|
|
322
|
+
}
|
|
323
|
+
function ee(e) {
|
|
324
|
+
return O(e, k);
|
|
325
|
+
}
|
|
326
|
+
function A(e) {
|
|
327
|
+
let t = e.charCodeAt(0);
|
|
328
|
+
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
|
|
329
|
+
}
|
|
330
|
+
function te(e) {
|
|
331
|
+
return O(e, A);
|
|
332
|
+
}
|
|
333
|
+
function j(e) {
|
|
334
|
+
let t = e.charCodeAt(0);
|
|
335
|
+
return t >= 48 && t <= 57;
|
|
336
|
+
}
|
|
337
|
+
function M(e) {
|
|
338
|
+
return O(e, j);
|
|
339
|
+
}
|
|
340
|
+
function ne(e) {
|
|
341
|
+
let t = e.charCodeAt(0);
|
|
342
|
+
return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
|
|
343
|
+
}
|
|
344
|
+
function re(e) {
|
|
345
|
+
return O(e, ne);
|
|
346
|
+
}
|
|
347
|
+
function ie(e) {
|
|
348
|
+
let t = "", n = "";
|
|
349
|
+
for (; t = M(e);) n += t;
|
|
350
|
+
return n;
|
|
351
|
+
}
|
|
352
|
+
function N(e) {
|
|
353
|
+
let t = "";
|
|
354
|
+
for (;;) {
|
|
355
|
+
let n = e.currentChar();
|
|
356
|
+
if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
|
|
357
|
+
if (n === H || n === U) if (D(e)) t += n, e.next();
|
|
358
|
+
else if (E(e)) break;
|
|
359
|
+
else t += n, e.next();
|
|
360
|
+
else t += n, e.next();
|
|
361
|
+
}
|
|
362
|
+
return t;
|
|
363
|
+
}
|
|
364
|
+
function P(e) {
|
|
365
|
+
g(e);
|
|
366
|
+
let t = "", n = "";
|
|
367
|
+
for (; t = te(e);) n += t;
|
|
368
|
+
let r = e.currentChar();
|
|
369
|
+
if (r && r !== "}" && r !== W && r !== H && r !== U && r !== " ") {
|
|
370
|
+
let t = se(e);
|
|
371
|
+
return d(V.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
|
|
372
|
+
}
|
|
373
|
+
return e.currentChar() === W && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
|
|
374
|
+
}
|
|
375
|
+
function F(e) {
|
|
376
|
+
g(e);
|
|
377
|
+
let t = "";
|
|
378
|
+
return e.currentChar() === "-" ? (e.next(), t += `-${ie(e)}`) : t += ie(e), e.currentChar() === W && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
|
|
379
|
+
}
|
|
380
|
+
function I(e) {
|
|
381
|
+
return e !== Te && e !== U;
|
|
382
|
+
}
|
|
383
|
+
function L(e) {
|
|
384
|
+
g(e), m(e, "'");
|
|
385
|
+
let t = "", n = "";
|
|
386
|
+
for (; t = O(e, I);) t === "\\" ? n += R(e) : n += t;
|
|
387
|
+
let r = e.currentChar();
|
|
388
|
+
return r === U || r === W ? (d(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === U && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
|
|
389
|
+
}
|
|
390
|
+
function R(e) {
|
|
391
|
+
let t = e.currentChar();
|
|
392
|
+
switch (t) {
|
|
393
|
+
case "\\":
|
|
394
|
+
case "'": return e.next(), `\\${t}`;
|
|
395
|
+
case "u": return ae(e, t, 4);
|
|
396
|
+
case "U": return ae(e, t, 6);
|
|
397
|
+
default: return d(V.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function ae(e, t, n) {
|
|
401
|
+
m(e, t);
|
|
402
|
+
let r = "";
|
|
403
|
+
for (let i = 0; i < n; i++) {
|
|
404
|
+
let n = re(e);
|
|
405
|
+
if (!n) {
|
|
406
|
+
d(V.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
r += n;
|
|
410
|
+
}
|
|
411
|
+
return `\\${t}${r}`;
|
|
412
|
+
}
|
|
413
|
+
function oe(e) {
|
|
414
|
+
return e !== "{" && e !== "}" && e !== H && e !== U;
|
|
415
|
+
}
|
|
416
|
+
function se(e) {
|
|
417
|
+
g(e);
|
|
418
|
+
let t = "", n = "";
|
|
419
|
+
for (; t = O(e, oe);) n += t;
|
|
420
|
+
return n;
|
|
421
|
+
}
|
|
422
|
+
function z(e) {
|
|
423
|
+
let t = "", n = "";
|
|
424
|
+
for (; t = ee(e);) n += t;
|
|
425
|
+
return n;
|
|
426
|
+
}
|
|
427
|
+
function ce(e) {
|
|
428
|
+
let t = (n) => {
|
|
429
|
+
let r = e.currentChar();
|
|
430
|
+
return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === H ? n : (n += r, e.next(), t(n));
|
|
431
|
+
};
|
|
432
|
+
return t("");
|
|
433
|
+
}
|
|
434
|
+
function le(e) {
|
|
435
|
+
g(e);
|
|
436
|
+
let t = m(e, "|");
|
|
437
|
+
return g(e), t;
|
|
438
|
+
}
|
|
439
|
+
function ue(e, t) {
|
|
440
|
+
let n = null;
|
|
441
|
+
switch (e.currentChar()) {
|
|
442
|
+
case "{": return t.braceNest >= 1 && d(V.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
|
|
443
|
+
case "}": return t.braceNest > 0 && t.currentType === 2 && d(V.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;
|
|
444
|
+
case "@": return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n = de(e, t) || p(t), t.braceNest = 0, n;
|
|
445
|
+
default: {
|
|
446
|
+
let r = !0, i = !0, o = !0;
|
|
447
|
+
if (E(e)) return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, le(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
448
|
+
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, B(e, t);
|
|
449
|
+
if (r = y(e, t)) return n = f(t, 4, P(e)), g(e), n;
|
|
450
|
+
if (i = b(e, t)) return n = f(t, 5, F(e)), g(e), n;
|
|
451
|
+
if (o = x(e, t)) return n = f(t, 6, L(e)), g(e), n;
|
|
452
|
+
if (!r && !i && !o) return n = f(t, 12, se(e)), d(V.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
return n;
|
|
457
|
+
}
|
|
458
|
+
function de(e, t) {
|
|
459
|
+
let { currentType: n } = t, r = null, i = e.currentChar();
|
|
460
|
+
switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === U || i === H) && d(V.INVALID_LINKED_FORMAT, a(), 0), i) {
|
|
461
|
+
case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
|
|
462
|
+
case ".": return g(e), e.next(), f(t, 8, ".");
|
|
463
|
+
case ":": return g(e), e.next(), f(t, 9, ":");
|
|
464
|
+
default: return E(e) ? (r = f(t, 1, le(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), de(e, t)) : C(e, t) ? (g(e), f(t, 11, z(e))) : T(e, t) ? (g(e), i === "{" ? ue(e, t) || r : f(t, 10, ce(e))) : (n === 7 && d(V.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, B(e, t));
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
function B(e, t) {
|
|
468
|
+
let n = { type: 13 };
|
|
469
|
+
if (t.braceNest > 0) return ue(e, t) || p(t);
|
|
470
|
+
if (t.inLinked) return de(e, t) || p(t);
|
|
471
|
+
switch (e.currentChar()) {
|
|
472
|
+
case "{": return ue(e, t) || p(t);
|
|
473
|
+
case "}": return d(V.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
|
|
474
|
+
case "@": return de(e, t) || p(t);
|
|
475
|
+
default:
|
|
476
|
+
if (E(e)) return n = f(t, 1, le(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
477
|
+
if (D(e)) return f(t, 0, N(e));
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
return n;
|
|
481
|
+
}
|
|
482
|
+
function fe() {
|
|
483
|
+
let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
|
|
484
|
+
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === W ? f(c, 13) : B(r, c);
|
|
485
|
+
}
|
|
486
|
+
return {
|
|
487
|
+
nextToken: fe,
|
|
488
|
+
currentOffset: i,
|
|
489
|
+
currentPosition: a,
|
|
490
|
+
context: l
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
var Oe = "parser", ke = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
494
|
+
function Ae(e, t, n) {
|
|
495
|
+
switch (e) {
|
|
496
|
+
case "\\\\": return "\\";
|
|
497
|
+
case "\\'": return "'";
|
|
498
|
+
default: {
|
|
499
|
+
let e = parseInt(t || n, 16);
|
|
500
|
+
return e <= 55295 || e >= 57344 ? String.fromCodePoint(e) : "�";
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
function G(e = {}) {
|
|
505
|
+
let t = e.location !== !1, { onError: n } = e;
|
|
506
|
+
function r(e, r, i, a, ...o) {
|
|
507
|
+
let s = e.currentPosition();
|
|
508
|
+
s.offset += a, s.column += a, n && n(_e(r, t ? he(i, s) : null, {
|
|
509
|
+
domain: Oe,
|
|
510
|
+
args: o
|
|
511
|
+
}));
|
|
512
|
+
}
|
|
513
|
+
function i(e, n, r) {
|
|
514
|
+
let i = { type: e };
|
|
515
|
+
return t && (i.start = n, i.end = n, i.loc = {
|
|
516
|
+
start: r,
|
|
517
|
+
end: r
|
|
518
|
+
}), i;
|
|
519
|
+
}
|
|
520
|
+
function a(e, n, r, i) {
|
|
521
|
+
t && (e.end = n, e.loc && (e.loc.end = r));
|
|
522
|
+
}
|
|
523
|
+
function o(e, t) {
|
|
524
|
+
let n = e.context(), r = i(3, n.offset, n.startLoc);
|
|
525
|
+
return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
|
|
526
|
+
}
|
|
527
|
+
function s(e, t) {
|
|
528
|
+
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
|
|
529
|
+
return o.index = parseInt(t, 10), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
530
|
+
}
|
|
531
|
+
function c(e, t) {
|
|
532
|
+
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(4, n, r);
|
|
533
|
+
return o.key = t, e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
534
|
+
}
|
|
535
|
+
function l(e, t) {
|
|
536
|
+
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
|
|
537
|
+
return o.value = t.replace(ke, Ae), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
538
|
+
}
|
|
539
|
+
function u(e) {
|
|
540
|
+
let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
|
|
541
|
+
return t.type === 11 ? (t.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, K(t)), c.value = t.value || "", a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, V.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = "", a(c, o, s), {
|
|
542
|
+
nextConsumeToken: t,
|
|
543
|
+
node: c
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
function d(e, t) {
|
|
547
|
+
let n = e.context(), r = i(7, n.offset, n.startLoc);
|
|
548
|
+
return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
|
|
549
|
+
}
|
|
550
|
+
function f(e) {
|
|
551
|
+
let t = e.context(), n = i(6, t.offset, t.startLoc), o = e.nextToken();
|
|
552
|
+
if (o.type === 8) {
|
|
553
|
+
let t = u(e);
|
|
554
|
+
n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
|
|
555
|
+
}
|
|
556
|
+
switch (o.type !== 9 && r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
|
|
557
|
+
case 10:
|
|
558
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = d(e, o.value || "");
|
|
559
|
+
break;
|
|
560
|
+
case 4:
|
|
561
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = c(e, o.value || "");
|
|
562
|
+
break;
|
|
563
|
+
case 5:
|
|
564
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = s(e, o.value || "");
|
|
565
|
+
break;
|
|
566
|
+
case 6:
|
|
567
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(o)), n.key = l(e, o.value || "");
|
|
568
|
+
break;
|
|
569
|
+
default: {
|
|
570
|
+
r(e, V.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
|
|
571
|
+
let s = e.context(), c = i(7, s.offset, s.startLoc);
|
|
572
|
+
return c.value = "", a(c, s.offset, s.startLoc), n.key = c, a(n, s.offset, s.startLoc), {
|
|
573
|
+
nextConsumeToken: o,
|
|
574
|
+
node: n
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return a(n, e.currentOffset(), e.currentPosition()), { node: n };
|
|
579
|
+
}
|
|
580
|
+
function p(e) {
|
|
581
|
+
let t = e.context(), n = i(2, t.currentType === 1 ? e.currentOffset() : t.offset, t.currentType === 1 ? t.endLoc : t.startLoc);
|
|
582
|
+
n.items = [];
|
|
583
|
+
let u = null;
|
|
584
|
+
do {
|
|
585
|
+
let i = u || e.nextToken();
|
|
586
|
+
switch (u = null, i.type) {
|
|
587
|
+
case 0:
|
|
588
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(o(e, i.value || ""));
|
|
589
|
+
break;
|
|
590
|
+
case 5:
|
|
591
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(s(e, i.value || ""));
|
|
592
|
+
break;
|
|
593
|
+
case 4:
|
|
594
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(c(e, i.value || ""));
|
|
595
|
+
break;
|
|
596
|
+
case 6:
|
|
597
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, K(i)), n.items.push(l(e, i.value || ""));
|
|
598
|
+
break;
|
|
599
|
+
case 7: {
|
|
600
|
+
let t = f(e);
|
|
601
|
+
n.items.push(t.node), u = t.nextConsumeToken || null;
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
} while (t.currentType !== 13 && t.currentType !== 1);
|
|
606
|
+
return a(n, t.currentType === 1 ? t.lastOffset : e.currentOffset(), t.currentType === 1 ? t.lastEndLoc : e.currentPosition()), n;
|
|
607
|
+
}
|
|
608
|
+
function m(e, t, n, o) {
|
|
609
|
+
let s = e.context(), c = o.items.length === 0, l = i(1, t, n);
|
|
610
|
+
l.cases = [], l.cases.push(o);
|
|
611
|
+
do {
|
|
612
|
+
let t = p(e);
|
|
613
|
+
c ||= t.items.length === 0, l.cases.push(t);
|
|
614
|
+
} while (s.currentType !== 13);
|
|
615
|
+
return c && r(e, V.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
|
|
616
|
+
}
|
|
617
|
+
function h(e) {
|
|
618
|
+
let t = e.context(), { offset: n, startLoc: r } = t, i = p(e);
|
|
619
|
+
return t.currentType === 13 ? i : m(e, n, r, i);
|
|
620
|
+
}
|
|
621
|
+
function g(n) {
|
|
622
|
+
let o = De(n, k({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
|
|
623
|
+
return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, V.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
|
|
624
|
+
}
|
|
625
|
+
return { parse: g };
|
|
626
|
+
}
|
|
627
|
+
function K(e) {
|
|
628
|
+
if (e.type === 13) return "EOF";
|
|
629
|
+
let t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
630
|
+
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
631
|
+
}
|
|
632
|
+
function je(e, t = {}) {
|
|
633
|
+
let n = {
|
|
634
|
+
ast: e,
|
|
635
|
+
helpers: /* @__PURE__ */ new Set()
|
|
636
|
+
};
|
|
637
|
+
return {
|
|
638
|
+
context: () => n,
|
|
639
|
+
helper: (e) => (n.helpers.add(e), e)
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function Me(e, t) {
|
|
643
|
+
for (let n = 0; n < e.length; n++) Ne(e[n], t);
|
|
644
|
+
}
|
|
645
|
+
function Ne(e, t) {
|
|
646
|
+
switch (e.type) {
|
|
647
|
+
case 1:
|
|
648
|
+
Me(e.cases, t), t.helper("plural");
|
|
649
|
+
break;
|
|
650
|
+
case 2:
|
|
651
|
+
Me(e.items, t);
|
|
652
|
+
break;
|
|
653
|
+
case 6:
|
|
654
|
+
Ne(e.key, t), t.helper("linked"), t.helper("type");
|
|
655
|
+
break;
|
|
656
|
+
case 5:
|
|
657
|
+
t.helper("interpolate"), t.helper("list");
|
|
658
|
+
break;
|
|
659
|
+
case 4:
|
|
660
|
+
t.helper("interpolate"), t.helper("named");
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
function Pe(e, t = {}) {
|
|
665
|
+
let n = je(e);
|
|
666
|
+
n.helper("normalize"), e.body && Ne(e.body, n);
|
|
667
|
+
let r = n.context();
|
|
668
|
+
e.helpers = Array.from(r.helpers);
|
|
669
|
+
}
|
|
670
|
+
function Fe(e) {
|
|
671
|
+
let t = e.body;
|
|
672
|
+
return t.type === 2 ? Ie(t) : t.cases.forEach((e) => Ie(e)), e;
|
|
673
|
+
}
|
|
674
|
+
function Ie(e) {
|
|
675
|
+
if (e.items.length === 1) {
|
|
676
|
+
let t = e.items[0];
|
|
677
|
+
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
678
|
+
} else {
|
|
679
|
+
let t = [];
|
|
680
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
681
|
+
let r = e.items[n];
|
|
682
|
+
if (!(r.type === 3 || r.type === 9) || r.value == null) break;
|
|
683
|
+
t.push(r.value);
|
|
684
|
+
}
|
|
685
|
+
if (t.length === e.items.length) {
|
|
686
|
+
e.static = le(t);
|
|
687
|
+
for (let t = 0; t < e.items.length; t++) {
|
|
688
|
+
let n = e.items[t];
|
|
689
|
+
(n.type === 3 || n.type === 9) && delete n.value;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
var Le = "minifier";
|
|
695
|
+
function Re(e) {
|
|
696
|
+
switch (e.t = e.type, e.type) {
|
|
697
|
+
case 0: {
|
|
698
|
+
let t = e;
|
|
699
|
+
Re(t.body), t.b = t.body, delete t.body;
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
case 1: {
|
|
703
|
+
let t = e, n = t.cases;
|
|
704
|
+
for (let e = 0; e < n.length; e++) Re(n[e]);
|
|
705
|
+
t.c = n, delete t.cases;
|
|
706
|
+
break;
|
|
707
|
+
}
|
|
708
|
+
case 2: {
|
|
709
|
+
let t = e, n = t.items;
|
|
710
|
+
for (let e = 0; e < n.length; e++) Re(n[e]);
|
|
711
|
+
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
case 3:
|
|
715
|
+
case 9:
|
|
716
|
+
case 8:
|
|
717
|
+
case 7: {
|
|
718
|
+
let t = e;
|
|
719
|
+
t.value && (t.v = t.value, delete t.value);
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
case 6: {
|
|
723
|
+
let t = e;
|
|
724
|
+
Re(t.key), t.k = t.key, delete t.key, t.modifier && (Re(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
case 5: {
|
|
728
|
+
let t = e;
|
|
729
|
+
t.i = t.index, delete t.index;
|
|
730
|
+
break;
|
|
731
|
+
}
|
|
732
|
+
case 4: {
|
|
733
|
+
let t = e;
|
|
734
|
+
t.k = t.key, delete t.key;
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
default: if (n.env.NODE_ENV !== "production") throw _e(V.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
738
|
+
domain: Le,
|
|
739
|
+
args: [e.type]
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
delete e.type;
|
|
743
|
+
}
|
|
744
|
+
var ze = "parser";
|
|
745
|
+
function Be(e, t) {
|
|
746
|
+
let { sourceMap: n, filename: r, breakLineCode: i, needIndent: a } = t, o = t.location !== !1, s = {
|
|
747
|
+
filename: r,
|
|
748
|
+
code: "",
|
|
749
|
+
column: 1,
|
|
750
|
+
line: 1,
|
|
751
|
+
offset: 0,
|
|
752
|
+
map: void 0,
|
|
753
|
+
breakLineCode: i,
|
|
754
|
+
needIndent: a,
|
|
755
|
+
indentLevel: 0
|
|
756
|
+
};
|
|
757
|
+
o && e.loc && (s.source = e.loc.source);
|
|
758
|
+
let c = () => s;
|
|
759
|
+
function l(e, t) {
|
|
760
|
+
s.code += e;
|
|
761
|
+
}
|
|
762
|
+
function u(e, t = !0) {
|
|
763
|
+
let n = t ? i : "";
|
|
764
|
+
l(a ? n + " ".repeat(e) : n);
|
|
765
|
+
}
|
|
766
|
+
function d(e = !0) {
|
|
767
|
+
let t = ++s.indentLevel;
|
|
768
|
+
e && u(t);
|
|
769
|
+
}
|
|
770
|
+
function f(e = !0) {
|
|
771
|
+
let t = --s.indentLevel;
|
|
772
|
+
e && u(t);
|
|
773
|
+
}
|
|
774
|
+
function p() {
|
|
775
|
+
u(s.indentLevel);
|
|
776
|
+
}
|
|
777
|
+
return {
|
|
778
|
+
context: c,
|
|
779
|
+
push: l,
|
|
780
|
+
indent: d,
|
|
781
|
+
deindent: f,
|
|
782
|
+
newline: p,
|
|
783
|
+
helper: (e) => `_${e}`,
|
|
784
|
+
needIndent: () => s.needIndent
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
function Ve(e, t) {
|
|
788
|
+
let { helper: n } = e;
|
|
789
|
+
e.push(`${n("linked")}(`), Ge(e, t.key), t.modifier ? (e.push(", "), Ge(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
790
|
+
}
|
|
791
|
+
function He(e, t) {
|
|
792
|
+
let { helper: n, needIndent: r } = e;
|
|
793
|
+
e.push(`${n("normalize")}([`), e.indent(r());
|
|
794
|
+
let i = t.items.length;
|
|
795
|
+
for (let n = 0; n < i && (Ge(e, t.items[n]), n !== i - 1); n++) e.push(", ");
|
|
796
|
+
e.deindent(r()), e.push("])");
|
|
797
|
+
}
|
|
798
|
+
function Ue(e, t) {
|
|
799
|
+
let { helper: n, needIndent: r } = e;
|
|
800
|
+
if (t.cases.length > 1) {
|
|
801
|
+
e.push(`${n("plural")}([`), e.indent(r());
|
|
802
|
+
let i = t.cases.length;
|
|
803
|
+
for (let n = 0; n < i && (Ge(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
|
|
804
|
+
e.deindent(r()), e.push("])");
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
function We(e, t) {
|
|
808
|
+
t.body ? Ge(e, t.body) : e.push("null");
|
|
809
|
+
}
|
|
810
|
+
function Ge(e, t) {
|
|
811
|
+
let { helper: r } = e;
|
|
812
|
+
switch (t.type) {
|
|
813
|
+
case 0:
|
|
814
|
+
We(e, t);
|
|
815
|
+
break;
|
|
816
|
+
case 1:
|
|
817
|
+
Ue(e, t);
|
|
818
|
+
break;
|
|
819
|
+
case 2:
|
|
820
|
+
He(e, t);
|
|
821
|
+
break;
|
|
822
|
+
case 6:
|
|
823
|
+
Ve(e, t);
|
|
824
|
+
break;
|
|
825
|
+
case 8:
|
|
826
|
+
e.push(JSON.stringify(t.value), t);
|
|
827
|
+
break;
|
|
828
|
+
case 7:
|
|
829
|
+
e.push(JSON.stringify(t.value), t);
|
|
830
|
+
break;
|
|
831
|
+
case 5:
|
|
832
|
+
e.push(`${r("interpolate")}(${r("list")}(${t.index}))`, t);
|
|
833
|
+
break;
|
|
834
|
+
case 4:
|
|
835
|
+
e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`, t);
|
|
836
|
+
break;
|
|
837
|
+
case 9:
|
|
838
|
+
e.push(JSON.stringify(t.value), t);
|
|
839
|
+
break;
|
|
840
|
+
case 3:
|
|
841
|
+
e.push(JSON.stringify(t.value), t);
|
|
842
|
+
break;
|
|
843
|
+
default: if (n.env.NODE_ENV !== "production") throw _e(V.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
844
|
+
domain: ze,
|
|
845
|
+
args: [t.type]
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
var Ke = (e, t = {}) => {
|
|
850
|
+
let n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl", i = !!t.sourceMap, a = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, o = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], c = Be(e, {
|
|
851
|
+
mode: n,
|
|
852
|
+
filename: r,
|
|
853
|
+
sourceMap: i,
|
|
854
|
+
breakLineCode: a,
|
|
855
|
+
needIndent: o
|
|
856
|
+
});
|
|
857
|
+
c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), s.length > 0 && (c.push(`const { ${le(s.map((e) => `${e}: _${e}`), ", ")} } = ctx`), c.newline()), c.push("return "), Ge(c, e), c.deindent(o), c.push("}"), delete e.helpers;
|
|
858
|
+
let { code: l, map: u } = c.context();
|
|
859
|
+
return {
|
|
860
|
+
ast: e,
|
|
861
|
+
code: l,
|
|
862
|
+
map: u ? u.toJSON() : void 0
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
function qe(e, t = {}) {
|
|
866
|
+
let n = k({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = G(n).parse(e);
|
|
867
|
+
return r ? (a && Fe(o), i && Re(o), {
|
|
868
|
+
ast: o,
|
|
869
|
+
code: ""
|
|
870
|
+
}) : (Pe(o, n), Ke(o, n));
|
|
871
|
+
}
|
|
872
|
+
//#endregion
|
|
873
|
+
//#region node_modules/@intlify/core-base/dist/core-base.mjs
|
|
874
|
+
r();
|
|
875
|
+
function Je() {
|
|
876
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (j().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (j().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
877
|
+
}
|
|
878
|
+
function q(e) {
|
|
879
|
+
return R(e) && it(e) === 0 && (N(e, "b") || N(e, "body"));
|
|
880
|
+
}
|
|
881
|
+
var Ye = ["b", "body"];
|
|
882
|
+
function Xe(e) {
|
|
883
|
+
return dt(e, Ye);
|
|
884
|
+
}
|
|
885
|
+
var Ze = ["c", "cases"];
|
|
886
|
+
function Qe(e) {
|
|
887
|
+
return dt(e, Ze, []);
|
|
888
|
+
}
|
|
889
|
+
var $e = ["s", "static"];
|
|
890
|
+
function et(e) {
|
|
891
|
+
return dt(e, $e);
|
|
892
|
+
}
|
|
893
|
+
var tt = ["i", "items"];
|
|
894
|
+
function nt(e) {
|
|
895
|
+
return dt(e, tt, []);
|
|
896
|
+
}
|
|
897
|
+
var rt = ["t", "type"];
|
|
898
|
+
function it(e) {
|
|
899
|
+
return dt(e, rt);
|
|
900
|
+
}
|
|
901
|
+
var at = ["v", "value"];
|
|
902
|
+
function ot(e, t) {
|
|
903
|
+
let n = dt(e, at);
|
|
904
|
+
if (n != null) return n;
|
|
905
|
+
throw pt(t);
|
|
906
|
+
}
|
|
907
|
+
var st = ["m", "modifier"];
|
|
908
|
+
function ct(e) {
|
|
909
|
+
return dt(e, st);
|
|
910
|
+
}
|
|
911
|
+
var lt = ["k", "key"];
|
|
912
|
+
function ut(e) {
|
|
913
|
+
let t = dt(e, lt);
|
|
914
|
+
if (t) return t;
|
|
915
|
+
throw pt(6);
|
|
916
|
+
}
|
|
917
|
+
function dt(e, t, n) {
|
|
918
|
+
for (let n = 0; n < t.length; n++) {
|
|
919
|
+
let r = t[n];
|
|
920
|
+
if (N(e, r) && e[r] != null) return e[r];
|
|
921
|
+
}
|
|
922
|
+
return n;
|
|
923
|
+
}
|
|
924
|
+
var ft = [
|
|
925
|
+
...Ye,
|
|
926
|
+
...Ze,
|
|
927
|
+
...$e,
|
|
928
|
+
...tt,
|
|
929
|
+
...lt,
|
|
930
|
+
...st,
|
|
931
|
+
...at,
|
|
932
|
+
...rt
|
|
933
|
+
];
|
|
934
|
+
function pt(e) {
|
|
935
|
+
return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
|
|
936
|
+
}
|
|
937
|
+
function mt(e) {
|
|
938
|
+
return (t) => ht(t, e);
|
|
939
|
+
}
|
|
940
|
+
function ht(e, t) {
|
|
941
|
+
let n = Xe(t);
|
|
942
|
+
if (n == null) throw pt(0);
|
|
943
|
+
if (it(n) === 1) {
|
|
944
|
+
let t = Qe(n);
|
|
945
|
+
return e.plural(t.reduce((t, n) => [...t, gt(e, n)], []));
|
|
946
|
+
} else return gt(e, n);
|
|
947
|
+
}
|
|
948
|
+
function gt(e, t) {
|
|
949
|
+
let n = et(t);
|
|
950
|
+
if (n != null) return e.type === "text" ? n : e.normalize([n]);
|
|
951
|
+
{
|
|
952
|
+
let n = nt(t).reduce((t, n) => [...t, _t(e, n)], []);
|
|
953
|
+
return e.normalize(n);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
function _t(e, t) {
|
|
957
|
+
let n = it(t);
|
|
958
|
+
switch (n) {
|
|
959
|
+
case 3: return ot(t, n);
|
|
960
|
+
case 9: return ot(t, n);
|
|
961
|
+
case 4: {
|
|
962
|
+
let r = t;
|
|
963
|
+
if (N(r, "k") && r.k) return e.interpolate(e.named(r.k));
|
|
964
|
+
if (N(r, "key") && r.key) return e.interpolate(e.named(r.key));
|
|
965
|
+
throw pt(n);
|
|
966
|
+
}
|
|
967
|
+
case 5: {
|
|
968
|
+
let r = t;
|
|
969
|
+
if (N(r, "i") && T(r.i)) return e.interpolate(e.list(r.i));
|
|
970
|
+
if (N(r, "index") && T(r.index)) return e.interpolate(e.list(r.index));
|
|
971
|
+
throw pt(n);
|
|
972
|
+
}
|
|
973
|
+
case 6: {
|
|
974
|
+
let n = t, r = ct(n), i = ut(n);
|
|
975
|
+
return e.linked(_t(e, i), r ? _t(e, r) : void 0, e.type);
|
|
976
|
+
}
|
|
977
|
+
case 7: return ot(t, n);
|
|
978
|
+
case 8: return ot(t, n);
|
|
979
|
+
default: throw Error(`unhandled node on format message part: ${n}`);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
var vt = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
983
|
+
function yt(e, t) {
|
|
984
|
+
t && be(e) && m(x(vt, { source: e }));
|
|
985
|
+
}
|
|
986
|
+
var bt = (e) => e, xt = A();
|
|
987
|
+
function St(e, t = {}) {
|
|
988
|
+
let n = !1, r = t.onError || ve;
|
|
989
|
+
return t.onError = (e) => {
|
|
990
|
+
n = !0, r(e);
|
|
991
|
+
}, {
|
|
992
|
+
...qe(e, t),
|
|
993
|
+
detectError: n
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
997
|
+
function Ct(e, t) {
|
|
998
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
999
|
+
let r = L(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1000
|
+
n.env.NODE_ENV !== "production" && yt(e, r);
|
|
1001
|
+
let i = (t.onCacheKey || bt)(e), a = xt[i];
|
|
1002
|
+
if (a) return a;
|
|
1003
|
+
let { ast: o, detectError: s } = St(e, {
|
|
1004
|
+
...t,
|
|
1005
|
+
location: n.env.NODE_ENV !== "production",
|
|
1006
|
+
jit: !0
|
|
1007
|
+
}), c = mt(o);
|
|
1008
|
+
return s ? c : xt[i] = c;
|
|
1009
|
+
} else {
|
|
1010
|
+
if (n.env.NODE_ENV !== "production" && !q(e)) return m(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1011
|
+
let r = e.cacheKey;
|
|
1012
|
+
return r ? xt[r] || (xt[r] = mt(e)) : mt(e);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
var wt = null;
|
|
1016
|
+
function Tt(e) {
|
|
1017
|
+
wt = e;
|
|
1018
|
+
}
|
|
1019
|
+
function Et(e, t, n) {
|
|
1020
|
+
wt && wt.emit("i18n:init", {
|
|
1021
|
+
timestamp: Date.now(),
|
|
1022
|
+
i18n: e,
|
|
1023
|
+
version: t,
|
|
1024
|
+
meta: n
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
var Dt = /* #__PURE__*/ Ot("function:translate");
|
|
1028
|
+
function Ot(e) {
|
|
1029
|
+
return (t) => wt && wt.emit(e, t);
|
|
1030
|
+
}
|
|
1031
|
+
var J = {
|
|
1032
|
+
INVALID_ARGUMENT: 17,
|
|
1033
|
+
INVALID_DATE_ARGUMENT: 18,
|
|
1034
|
+
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1035
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
1036
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1037
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1038
|
+
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1039
|
+
};
|
|
1040
|
+
function Y(e) {
|
|
1041
|
+
return _e(e, null, n.env.NODE_ENV === "production" ? void 0 : { messages: kt });
|
|
1042
|
+
}
|
|
1043
|
+
var kt = {
|
|
1044
|
+
[J.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1045
|
+
[J.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1046
|
+
[J.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
1047
|
+
[J.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
1048
|
+
[J.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
1049
|
+
[J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1050
|
+
[J.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1051
|
+
};
|
|
1052
|
+
function At(e, t) {
|
|
1053
|
+
return t.locale == null ? Mt(e.locale) : Mt(t.locale);
|
|
1054
|
+
}
|
|
1055
|
+
var jt;
|
|
1056
|
+
function Mt(e) {
|
|
1057
|
+
if (I(e)) return e;
|
|
1058
|
+
if (F(e)) {
|
|
1059
|
+
if (e.resolvedOnce && jt != null) return jt;
|
|
1060
|
+
if (e.constructor.name === "Function") {
|
|
1061
|
+
let t = e();
|
|
1062
|
+
if (ae(t)) throw Y(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1063
|
+
return jt = t;
|
|
1064
|
+
} else throw Y(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1065
|
+
} else throw Y(J.NOT_SUPPORT_LOCALE_TYPE);
|
|
1066
|
+
}
|
|
1067
|
+
function Nt(e, t, n) {
|
|
1068
|
+
return [...new Set([n, ...P(t) ? t : R(t) ? Object.keys(t) : I(t) ? [t] : [n]])];
|
|
1069
|
+
}
|
|
1070
|
+
function Pt(e, t, n) {
|
|
1071
|
+
let r = I(n) ? n : Zt, i = e;
|
|
1072
|
+
i.__localeChainCache ||= /* @__PURE__ */ new Map();
|
|
1073
|
+
let a = i.__localeChainCache.get(r);
|
|
1074
|
+
if (!a) {
|
|
1075
|
+
a = [];
|
|
1076
|
+
let e = [n];
|
|
1077
|
+
for (; P(e);) e = Ft(a, e, t);
|
|
1078
|
+
let o = P(t) || !z(t) ? t : t.default ? t.default : null;
|
|
1079
|
+
e = I(o) ? [o] : o, P(e) && Ft(a, e, !1), i.__localeChainCache.set(r, a);
|
|
1080
|
+
}
|
|
1081
|
+
return a;
|
|
1082
|
+
}
|
|
1083
|
+
function Ft(e, t, n) {
|
|
1084
|
+
let r = !0;
|
|
1085
|
+
for (let i = 0; i < t.length && L(r); i++) {
|
|
1086
|
+
let a = t[i];
|
|
1087
|
+
I(a) && (r = It(e, t[i], n));
|
|
1088
|
+
}
|
|
1089
|
+
return r;
|
|
1090
|
+
}
|
|
1091
|
+
function It(e, t, n) {
|
|
1092
|
+
let r, i = t.split("-");
|
|
1093
|
+
do
|
|
1094
|
+
r = Lt(e, i.join("-"), n), i.splice(-1, 1);
|
|
1095
|
+
while (i.length && r === !0);
|
|
1096
|
+
return r;
|
|
1097
|
+
}
|
|
1098
|
+
function Lt(e, t, n) {
|
|
1099
|
+
let r = !1;
|
|
1100
|
+
if (!e.includes(t) && (r = !0, t)) {
|
|
1101
|
+
r = t[t.length - 1] !== "!";
|
|
1102
|
+
let i = t.replace(/!/g, "");
|
|
1103
|
+
e.push(i), (P(n) || z(n)) && n[i] && (r = n[i]);
|
|
1104
|
+
}
|
|
1105
|
+
return r;
|
|
1106
|
+
}
|
|
1107
|
+
var Rt = [];
|
|
1108
|
+
Rt[0] = {
|
|
1109
|
+
w: [0],
|
|
1110
|
+
i: [3, 0],
|
|
1111
|
+
"[": [4],
|
|
1112
|
+
o: [7]
|
|
1113
|
+
}, Rt[1] = {
|
|
1114
|
+
w: [1],
|
|
1115
|
+
".": [2],
|
|
1116
|
+
"[": [4],
|
|
1117
|
+
o: [7]
|
|
1118
|
+
}, Rt[2] = {
|
|
1119
|
+
w: [2],
|
|
1120
|
+
i: [3, 0],
|
|
1121
|
+
0: [3, 0]
|
|
1122
|
+
}, Rt[3] = {
|
|
1123
|
+
i: [3, 0],
|
|
1124
|
+
0: [3, 0],
|
|
1125
|
+
w: [1, 1],
|
|
1126
|
+
".": [2, 1],
|
|
1127
|
+
"[": [4, 1],
|
|
1128
|
+
o: [7, 1]
|
|
1129
|
+
}, Rt[4] = {
|
|
1130
|
+
"'": [5, 0],
|
|
1131
|
+
"\"": [6, 0],
|
|
1132
|
+
"[": [4, 2],
|
|
1133
|
+
"]": [1, 3],
|
|
1134
|
+
o: 8,
|
|
1135
|
+
l: [4, 0]
|
|
1136
|
+
}, Rt[5] = {
|
|
1137
|
+
"'": [4, 0],
|
|
1138
|
+
o: 8,
|
|
1139
|
+
l: [5, 0]
|
|
1140
|
+
}, Rt[6] = {
|
|
1141
|
+
"\"": [4, 0],
|
|
1142
|
+
o: 8,
|
|
1143
|
+
l: [6, 0]
|
|
1144
|
+
};
|
|
1145
|
+
var zt = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1146
|
+
function Bt(e) {
|
|
1147
|
+
return zt.test(e);
|
|
1148
|
+
}
|
|
1149
|
+
function Vt(e) {
|
|
1150
|
+
let t = e.charCodeAt(0);
|
|
1151
|
+
return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1152
|
+
}
|
|
1153
|
+
function Ht(e) {
|
|
1154
|
+
if (e == null) return "o";
|
|
1155
|
+
switch (e.charCodeAt(0)) {
|
|
1156
|
+
case 91:
|
|
1157
|
+
case 93:
|
|
1158
|
+
case 46:
|
|
1159
|
+
case 34:
|
|
1160
|
+
case 39: return e;
|
|
1161
|
+
case 95:
|
|
1162
|
+
case 36:
|
|
1163
|
+
case 45: return "i";
|
|
1164
|
+
case 9:
|
|
1165
|
+
case 10:
|
|
1166
|
+
case 13:
|
|
1167
|
+
case 160:
|
|
1168
|
+
case 65279:
|
|
1169
|
+
case 8232:
|
|
1170
|
+
case 8233: return "w";
|
|
1171
|
+
}
|
|
1172
|
+
return "i";
|
|
1173
|
+
}
|
|
1174
|
+
function Ut(e) {
|
|
1175
|
+
let t = e.trim();
|
|
1176
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Bt(t) ? Vt(t) : "*" + t;
|
|
1177
|
+
}
|
|
1178
|
+
function Wt(e) {
|
|
1179
|
+
let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
|
|
1180
|
+
f[0] = () => {
|
|
1181
|
+
o === void 0 ? o = s : o += s;
|
|
1182
|
+
}, f[1] = () => {
|
|
1183
|
+
o !== void 0 && (t.push(o), o = void 0);
|
|
1184
|
+
}, f[2] = () => {
|
|
1185
|
+
f[0](), i++;
|
|
1186
|
+
}, f[3] = () => {
|
|
1187
|
+
if (i > 0) i--, r = 4, f[0]();
|
|
1188
|
+
else {
|
|
1189
|
+
if (i = 0, o === void 0 || (o = Ut(o), o === !1)) return !1;
|
|
1190
|
+
f[1]();
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
function p() {
|
|
1194
|
+
let t = e[n + 1];
|
|
1195
|
+
if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
|
|
1196
|
+
}
|
|
1197
|
+
for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
|
|
1198
|
+
if (c = Ht(a), d = Rt[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;
|
|
1199
|
+
if (r === 7) return t;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
var Gt = /* @__PURE__ */ new Map();
|
|
1203
|
+
function Kt(e, t) {
|
|
1204
|
+
return R(e) ? e[t] : null;
|
|
1205
|
+
}
|
|
1206
|
+
function qt(e, t) {
|
|
1207
|
+
if (!R(e)) return null;
|
|
1208
|
+
let n = Gt.get(t);
|
|
1209
|
+
if (n || (n = Wt(t), n && Gt.set(t, n)), !n) return null;
|
|
1210
|
+
let r = n.length, i = e, a = 0;
|
|
1211
|
+
for (; a < r;) {
|
|
1212
|
+
let e = n[a];
|
|
1213
|
+
if (ft.includes(e) && q(i)) return null;
|
|
1214
|
+
let t = i[e];
|
|
1215
|
+
if (t === void 0 || F(i)) return null;
|
|
1216
|
+
i = t, a++;
|
|
1217
|
+
}
|
|
1218
|
+
return i;
|
|
1219
|
+
}
|
|
1220
|
+
var X = {
|
|
1221
|
+
NOT_FOUND_KEY: 1,
|
|
1222
|
+
FALLBACK_TO_TRANSLATE: 2,
|
|
1223
|
+
CANNOT_FORMAT_NUMBER: 3,
|
|
1224
|
+
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
1225
|
+
CANNOT_FORMAT_DATE: 5,
|
|
1226
|
+
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1227
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1228
|
+
}, Jt = {
|
|
1229
|
+
[X.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1230
|
+
[X.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1231
|
+
[X.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1232
|
+
[X.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1233
|
+
[X.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1234
|
+
[X.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1235
|
+
[X.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."
|
|
1236
|
+
};
|
|
1237
|
+
function Yt(e, ...t) {
|
|
1238
|
+
return x(Jt[e], ...t);
|
|
1239
|
+
}
|
|
1240
|
+
var Xt = "11.2.2", Zt = "en-US", Qt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1241
|
+
function $t() {
|
|
1242
|
+
return {
|
|
1243
|
+
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1244
|
+
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1245
|
+
capitalize: (e, t) => t === "text" && I(e) ? Qt(e) : t === "vnode" && R(e) && "__v_isVNode" in e ? Qt(e.children) : e
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
var en;
|
|
1249
|
+
function tn(e) {
|
|
1250
|
+
en = e;
|
|
1251
|
+
}
|
|
1252
|
+
var nn;
|
|
1253
|
+
function rn(e) {
|
|
1254
|
+
nn = e;
|
|
1255
|
+
}
|
|
1256
|
+
var an;
|
|
1257
|
+
function on(e) {
|
|
1258
|
+
an = e;
|
|
1259
|
+
}
|
|
1260
|
+
var sn = null, cn = /* @__NO_SIDE_EFFECTS__ */ () => sn, ln = null, un = (e) => {
|
|
1261
|
+
ln = e;
|
|
1262
|
+
}, dn = () => ln, fn = 0;
|
|
1263
|
+
function pn(e = {}) {
|
|
1264
|
+
let t = F(e.onWarn) ? e.onWarn : m, r = I(e.version) ? e.version : Xt, i = I(e.locale) || F(e.locale) ? e.locale : Zt, a = F(i) ? Zt : i, o = P(e.fallbackLocale) || z(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, s = z(e.messages) ? e.messages : mn(a), c = z(e.datetimeFormats) ? e.datetimeFormats : mn(a), l = z(e.numberFormats) ? e.numberFormats : mn(a), u = k(A(), e.modifiers, $t()), d = e.pluralRules || A(), f = F(e.missing) ? e.missing : null, p = L(e.missingWarn) || D(e.missingWarn) ? e.missingWarn : !0, h = L(e.fallbackWarn) || D(e.fallbackWarn) ? e.fallbackWarn : !0, _ = !!e.fallbackFormat, v = !!e.unresolving, y = F(e.postTranslation) ? e.postTranslation : null, b = z(e.processor) ? e.processor : null, x = L(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, C = F(e.messageCompiler) ? e.messageCompiler : en;
|
|
1265
|
+
n.env.NODE_ENV !== "production" && F(e.messageCompiler) && g(Yt(X.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1266
|
+
let w = F(e.messageResolver) ? e.messageResolver : nn || Kt, T = F(e.localeFallbacker) ? e.localeFallbacker : an || Nt, E = R(e.fallbackContext) ? e.fallbackContext : void 0, O = e, ee = R(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), te = R(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), j = R(O.__meta) ? O.__meta : {};
|
|
1267
|
+
fn++;
|
|
1268
|
+
let M = {
|
|
1269
|
+
version: r,
|
|
1270
|
+
cid: fn,
|
|
1271
|
+
locale: i,
|
|
1272
|
+
fallbackLocale: o,
|
|
1273
|
+
messages: s,
|
|
1274
|
+
modifiers: u,
|
|
1275
|
+
pluralRules: d,
|
|
1276
|
+
missing: f,
|
|
1277
|
+
missingWarn: p,
|
|
1278
|
+
fallbackWarn: h,
|
|
1279
|
+
fallbackFormat: _,
|
|
1280
|
+
unresolving: v,
|
|
1281
|
+
postTranslation: y,
|
|
1282
|
+
processor: b,
|
|
1283
|
+
warnHtmlMessage: x,
|
|
1284
|
+
escapeParameter: S,
|
|
1285
|
+
messageCompiler: C,
|
|
1286
|
+
messageResolver: w,
|
|
1287
|
+
localeFallbacker: T,
|
|
1288
|
+
fallbackContext: E,
|
|
1289
|
+
onWarn: t,
|
|
1290
|
+
__meta: j
|
|
1291
|
+
};
|
|
1292
|
+
return M.datetimeFormats = c, M.numberFormats = l, M.__datetimeFormatters = ee, M.__numberFormatters = te, n.env.NODE_ENV !== "production" && (M.__v_emitter = O.__v_emitter == null ? void 0 : O.__v_emitter), (n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Et(M, r, j), M;
|
|
1293
|
+
}
|
|
1294
|
+
var mn = (e) => ({ [e]: A() });
|
|
1295
|
+
function hn(e, t) {
|
|
1296
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1297
|
+
}
|
|
1298
|
+
function gn(e, t) {
|
|
1299
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1300
|
+
}
|
|
1301
|
+
function _n(e, t, r, i, a) {
|
|
1302
|
+
let { missing: o, onWarn: s } = e;
|
|
1303
|
+
if (n.env.NODE_ENV !== "production") {
|
|
1304
|
+
let n = e.__v_emitter;
|
|
1305
|
+
n && n.emit("missing", {
|
|
1306
|
+
locale: r,
|
|
1307
|
+
key: t,
|
|
1308
|
+
type: a,
|
|
1309
|
+
groupId: `${a}:${t}`
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
if (o !== null) {
|
|
1313
|
+
let n = o(e, r, t, a);
|
|
1314
|
+
return I(n) ? n : t;
|
|
1315
|
+
} else return n.env.NODE_ENV !== "production" && gn(i, t) && s(Yt(X.NOT_FOUND_KEY, {
|
|
1316
|
+
key: t,
|
|
1317
|
+
locale: r
|
|
1318
|
+
})), t;
|
|
1319
|
+
}
|
|
1320
|
+
function vn(e, t, n) {
|
|
1321
|
+
let r = e;
|
|
1322
|
+
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1323
|
+
}
|
|
1324
|
+
function yn(e, t) {
|
|
1325
|
+
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1326
|
+
}
|
|
1327
|
+
function bn(e, t) {
|
|
1328
|
+
let n = t.indexOf(e);
|
|
1329
|
+
if (n === -1) return !1;
|
|
1330
|
+
for (let r = n + 1; r < t.length; r++) if (yn(e, t[r])) return !0;
|
|
1331
|
+
return !1;
|
|
1332
|
+
}
|
|
1333
|
+
var xn = typeof Intl < "u", Sn = {
|
|
1334
|
+
dateTimeFormat: xn && Intl.DateTimeFormat !== void 0,
|
|
1335
|
+
numberFormat: xn && Intl.NumberFormat !== void 0
|
|
1336
|
+
};
|
|
1337
|
+
function Cn(e, ...t) {
|
|
1338
|
+
let { datetimeFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __datetimeFormatters: c } = e;
|
|
1339
|
+
if (n.env.NODE_ENV !== "production" && !Sn.dateTimeFormat) return o(Yt(X.CANNOT_FORMAT_DATE)), "";
|
|
1340
|
+
let [l, u, d, f] = Tn(...t), p = L(d.missingWarn) ? d.missingWarn : e.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, h = !!d.part, g = At(e, d), _ = s(e, a, g);
|
|
1341
|
+
if (!I(l) || l === "") return new Intl.DateTimeFormat(g, f).format(u);
|
|
1342
|
+
let v = {}, y, b = null, x = g, S = null, C = "datetime format";
|
|
1343
|
+
for (let t = 0; t < _.length; t++) {
|
|
1344
|
+
if (y = S = _[t], n.env.NODE_ENV !== "production" && g !== y && hn(m, l) && o(Yt(X.FALLBACK_TO_DATE_FORMAT, {
|
|
1345
|
+
key: l,
|
|
1346
|
+
target: y
|
|
1347
|
+
})), n.env.NODE_ENV !== "production" && g !== y) {
|
|
1348
|
+
let t = e.__v_emitter;
|
|
1349
|
+
t && t.emit("fallback", {
|
|
1350
|
+
type: C,
|
|
1351
|
+
key: l,
|
|
1352
|
+
from: x,
|
|
1353
|
+
to: S,
|
|
1354
|
+
groupId: `${C}:${l}`
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
if (v = r[y] || {}, b = v[l], z(b)) break;
|
|
1358
|
+
_n(e, l, y, p, C), x = S;
|
|
1359
|
+
}
|
|
1360
|
+
if (!z(b) || !I(y)) return i ? -1 : l;
|
|
1361
|
+
let w = `${y}__${l}`;
|
|
1362
|
+
O(f) || (w = `${w}__${JSON.stringify(f)}`);
|
|
1363
|
+
let T = c.get(w);
|
|
1364
|
+
return T || (T = new Intl.DateTimeFormat(y, k({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
|
|
1365
|
+
}
|
|
1366
|
+
var wn = [
|
|
1367
|
+
"localeMatcher",
|
|
1368
|
+
"weekday",
|
|
1369
|
+
"era",
|
|
1370
|
+
"year",
|
|
1371
|
+
"month",
|
|
1372
|
+
"day",
|
|
1373
|
+
"hour",
|
|
1374
|
+
"minute",
|
|
1375
|
+
"second",
|
|
1376
|
+
"timeZoneName",
|
|
1377
|
+
"formatMatcher",
|
|
1378
|
+
"hour12",
|
|
1379
|
+
"timeZone",
|
|
1380
|
+
"dateStyle",
|
|
1381
|
+
"timeStyle",
|
|
1382
|
+
"calendar",
|
|
1383
|
+
"dayPeriod",
|
|
1384
|
+
"numberingSystem",
|
|
1385
|
+
"hourCycle",
|
|
1386
|
+
"fractionalSecondDigits"
|
|
1387
|
+
];
|
|
1388
|
+
function Tn(...e) {
|
|
1389
|
+
let [t, n, r, i] = e, a = A(), o = A(), s;
|
|
1390
|
+
if (I(t)) {
|
|
1391
|
+
let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1392
|
+
if (!e) throw Y(J.INVALID_ISO_DATE_ARGUMENT);
|
|
1393
|
+
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();
|
|
1394
|
+
s = new Date(n);
|
|
1395
|
+
try {
|
|
1396
|
+
s.toISOString();
|
|
1397
|
+
} catch {
|
|
1398
|
+
throw Y(J.INVALID_ISO_DATE_ARGUMENT);
|
|
1399
|
+
}
|
|
1400
|
+
} else if (E(t)) {
|
|
1401
|
+
if (isNaN(t.getTime())) throw Y(J.INVALID_DATE_ARGUMENT);
|
|
1402
|
+
s = t;
|
|
1403
|
+
} else if (T(t)) s = t;
|
|
1404
|
+
else throw Y(J.INVALID_ARGUMENT);
|
|
1405
|
+
return I(n) ? a.key = n : z(n) && Object.keys(n).forEach((e) => {
|
|
1406
|
+
wn.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
1407
|
+
}), I(r) ? a.locale = r : z(r) && (o = r), z(i) && (o = i), [
|
|
1408
|
+
a.key || "",
|
|
1409
|
+
s,
|
|
1410
|
+
a,
|
|
1411
|
+
o
|
|
1412
|
+
];
|
|
1413
|
+
}
|
|
1414
|
+
function En(e, t, n) {
|
|
1415
|
+
let r = e;
|
|
1416
|
+
for (let e in n) {
|
|
1417
|
+
let n = `${t}__${e}`;
|
|
1418
|
+
r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
function Dn(e, ...t) {
|
|
1422
|
+
let { numberFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __numberFormatters: c } = e;
|
|
1423
|
+
if (n.env.NODE_ENV !== "production" && !Sn.numberFormat) return o(Yt(X.CANNOT_FORMAT_NUMBER)), "";
|
|
1424
|
+
let [l, u, d, f] = kn(...t), p = L(d.missingWarn) ? d.missingWarn : e.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, h = !!d.part, g = At(e, d), _ = s(e, a, g);
|
|
1425
|
+
if (!I(l) || l === "") return new Intl.NumberFormat(g, f).format(u);
|
|
1426
|
+
let v = {}, y, b = null, x = g, S = null, C = "number format";
|
|
1427
|
+
for (let t = 0; t < _.length; t++) {
|
|
1428
|
+
if (y = S = _[t], n.env.NODE_ENV !== "production" && g !== y && hn(m, l) && o(Yt(X.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1429
|
+
key: l,
|
|
1430
|
+
target: y
|
|
1431
|
+
})), n.env.NODE_ENV !== "production" && g !== y) {
|
|
1432
|
+
let t = e.__v_emitter;
|
|
1433
|
+
t && t.emit("fallback", {
|
|
1434
|
+
type: C,
|
|
1435
|
+
key: l,
|
|
1436
|
+
from: x,
|
|
1437
|
+
to: S,
|
|
1438
|
+
groupId: `${C}:${l}`
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
if (v = r[y] || {}, b = v[l], z(b)) break;
|
|
1442
|
+
_n(e, l, y, p, C), x = S;
|
|
1443
|
+
}
|
|
1444
|
+
if (!z(b) || !I(y)) return i ? -1 : l;
|
|
1445
|
+
let w = `${y}__${l}`;
|
|
1446
|
+
O(f) || (w = `${w}__${JSON.stringify(f)}`);
|
|
1447
|
+
let T = c.get(w);
|
|
1448
|
+
return T || (T = new Intl.NumberFormat(y, k({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
|
|
1449
|
+
}
|
|
1450
|
+
var On = [
|
|
1451
|
+
"localeMatcher",
|
|
1452
|
+
"style",
|
|
1453
|
+
"currency",
|
|
1454
|
+
"currencyDisplay",
|
|
1455
|
+
"currencySign",
|
|
1456
|
+
"useGrouping",
|
|
1457
|
+
"minimumIntegerDigits",
|
|
1458
|
+
"minimumFractionDigits",
|
|
1459
|
+
"maximumFractionDigits",
|
|
1460
|
+
"minimumSignificantDigits",
|
|
1461
|
+
"maximumSignificantDigits",
|
|
1462
|
+
"compactDisplay",
|
|
1463
|
+
"notation",
|
|
1464
|
+
"signDisplay",
|
|
1465
|
+
"unit",
|
|
1466
|
+
"unitDisplay",
|
|
1467
|
+
"roundingMode",
|
|
1468
|
+
"roundingPriority",
|
|
1469
|
+
"roundingIncrement",
|
|
1470
|
+
"trailingZeroDisplay"
|
|
1471
|
+
];
|
|
1472
|
+
function kn(...e) {
|
|
1473
|
+
let [t, n, r, i] = e, a = A(), o = A();
|
|
1474
|
+
if (!T(t)) throw Y(J.INVALID_ARGUMENT);
|
|
1475
|
+
let s = t;
|
|
1476
|
+
return I(n) ? a.key = n : z(n) && Object.keys(n).forEach((e) => {
|
|
1477
|
+
On.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
1478
|
+
}), I(r) ? a.locale = r : z(r) && (o = r), z(i) && (o = i), [
|
|
1479
|
+
a.key || "",
|
|
1480
|
+
s,
|
|
1481
|
+
a,
|
|
1482
|
+
o
|
|
1483
|
+
];
|
|
1484
|
+
}
|
|
1485
|
+
function An(e, t, n) {
|
|
1486
|
+
let r = e;
|
|
1487
|
+
for (let e in n) {
|
|
1488
|
+
let n = `${t}__${e}`;
|
|
1489
|
+
r.__numberFormatters.has(n) && r.__numberFormatters.delete(n);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
var jn = (e) => e, Mn = (e) => "", Nn = "text", Pn = (e) => e.length === 0 ? "" : le(e), Fn = ce;
|
|
1493
|
+
function In(e, t) {
|
|
1494
|
+
return e = Math.abs(e), t === 2 ? e ? +(e > 1) : 1 : e ? Math.min(e, 2) : 0;
|
|
1495
|
+
}
|
|
1496
|
+
function Ln(e) {
|
|
1497
|
+
let t = T(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1498
|
+
return e.named && (T(e.named.count) || T(e.named.n)) ? T(e.named.count) ? e.named.count : T(e.named.n) ? e.named.n : t : t;
|
|
1499
|
+
}
|
|
1500
|
+
function Rn(e, t) {
|
|
1501
|
+
t.count ||= e, t.n ||= e;
|
|
1502
|
+
}
|
|
1503
|
+
function zn(e = {}) {
|
|
1504
|
+
let t = e.locale, n = Ln(e), r = R(e.pluralRules) && I(t) && F(e.pluralRules[t]) ? e.pluralRules[t] : In, i = R(e.pluralRules) && I(t) && F(e.pluralRules[t]) ? In : void 0, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || A();
|
|
1505
|
+
T(e.pluralIndex) && Rn(n, c);
|
|
1506
|
+
let l = (e) => c[e];
|
|
1507
|
+
function u(t, n) {
|
|
1508
|
+
return (F(e.messages) ? e.messages(t, !!n) : R(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : Mn);
|
|
1509
|
+
}
|
|
1510
|
+
let d = (t) => e.modifiers ? e.modifiers[t] : jn, f = z(e.processor) && F(e.processor.normalize) ? e.processor.normalize : Pn, p = z(e.processor) && F(e.processor.interpolate) ? e.processor.interpolate : Fn, m = {
|
|
1511
|
+
list: s,
|
|
1512
|
+
named: l,
|
|
1513
|
+
plural: a,
|
|
1514
|
+
linked: (e, ...t) => {
|
|
1515
|
+
let [n, r] = t, i = "text", a = "";
|
|
1516
|
+
t.length === 1 ? R(n) ? (a = n.modifier || a, i = n.type || i) : I(n) && (a = n || a) : t.length === 2 && (I(n) && (a = n || a), I(r) && (i = r || i));
|
|
1517
|
+
let o = u(e, !0)(m), s = i === "vnode" && P(o) && a ? o[0] : o;
|
|
1518
|
+
return a ? d(a)(s, i) : s;
|
|
1519
|
+
},
|
|
1520
|
+
message: u,
|
|
1521
|
+
type: z(e.processor) && I(e.processor.type) ? e.processor.type : Nn,
|
|
1522
|
+
interpolate: p,
|
|
1523
|
+
normalize: f,
|
|
1524
|
+
values: k(A(), o, c)
|
|
1525
|
+
};
|
|
1526
|
+
return m;
|
|
1527
|
+
}
|
|
1528
|
+
var Bn = () => "", Z = (e) => F(e);
|
|
1529
|
+
function Vn(e, ...t) {
|
|
1530
|
+
let { fallbackFormat: r, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: c } = e, [l, u] = Kn(...t), d = L(u.missingWarn) ? u.missingWarn : e.missingWarn, f = L(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = L(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, h = !!u.resolvedMessage, g = I(u.default) || L(u.default) ? L(u.default) ? o ? l : () => l : u.default : r ? o ? l : () => l : null, _ = r || g != null && (I(g) || F(g)), v = At(e, u);
|
|
1531
|
+
p && Hn(u);
|
|
1532
|
+
let [y, b, x] = h ? [
|
|
1533
|
+
l,
|
|
1534
|
+
v,
|
|
1535
|
+
c[v] || A()
|
|
1536
|
+
] : Un(e, l, v, s, f, d), S = y, C = l;
|
|
1537
|
+
if (!h && !(I(S) || q(S) || Z(S)) && _ && (S = g, C = S), !h && (!(I(S) || q(S) || Z(S)) || !I(b))) return a ? -1 : l;
|
|
1538
|
+
if (n.env.NODE_ENV !== "production" && I(S) && e.messageCompiler == null) return m(`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;
|
|
1539
|
+
let w = !1, T = Z(S) ? S : Wn(e, l, b, S, C, () => {
|
|
1540
|
+
w = !0;
|
|
1541
|
+
});
|
|
1542
|
+
if (w) return S;
|
|
1543
|
+
let E = Gn(e, T, zn(Yn(e, b, x, u))), D = i ? i(E, l) : E;
|
|
1544
|
+
if (p && I(D) && (D = re(D)), n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1545
|
+
let t = {
|
|
1546
|
+
timestamp: Date.now(),
|
|
1547
|
+
key: I(l) ? l : Z(S) ? S.key : "",
|
|
1548
|
+
locale: b || (Z(S) ? S.locale : ""),
|
|
1549
|
+
format: I(S) ? S : Z(S) ? S.source : "",
|
|
1550
|
+
message: D
|
|
1551
|
+
};
|
|
1552
|
+
t.meta = k({}, e.__meta, /* @__PURE__ */ cn() || {}), Dt(t);
|
|
1553
|
+
}
|
|
1554
|
+
return D;
|
|
1555
|
+
}
|
|
1556
|
+
function Hn(e) {
|
|
1557
|
+
P(e.list) ? e.list = e.list.map((e) => I(e) ? M(e) : e) : R(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1558
|
+
I(e.named[t]) && (e.named[t] = M(e.named[t]));
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
function Un(e, t, r, i, a, o) {
|
|
1562
|
+
let { messages: s, onWarn: c, messageResolver: l, localeFallbacker: u } = e, d = u(e, i, r), f = A(), p, m = null, h = r, g = null, b = "translate";
|
|
1563
|
+
for (let i = 0; i < d.length; i++) {
|
|
1564
|
+
if (p = g = d[i], n.env.NODE_ENV !== "production" && r !== p && !yn(r, p) && hn(a, t) && c(Yt(X.FALLBACK_TO_TRANSLATE, {
|
|
1565
|
+
key: t,
|
|
1566
|
+
target: p
|
|
1567
|
+
})), n.env.NODE_ENV !== "production" && r !== p) {
|
|
1568
|
+
let n = e.__v_emitter;
|
|
1569
|
+
n && n.emit("fallback", {
|
|
1570
|
+
type: b,
|
|
1571
|
+
key: t,
|
|
1572
|
+
from: h,
|
|
1573
|
+
to: g,
|
|
1574
|
+
groupId: `${b}:${t}`
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
f = s[p] || A();
|
|
1578
|
+
let u = null, x, S;
|
|
1579
|
+
if (n.env.NODE_ENV !== "production" && _ && (u = window.performance.now(), x = "intlify-message-resolve-start", S = "intlify-message-resolve-end", v && v(x)), (m = l(f, t)) === null && (m = f[t]), n.env.NODE_ENV !== "production" && _) {
|
|
1580
|
+
let n = window.performance.now(), r = e.__v_emitter;
|
|
1581
|
+
r && u && m && r.emit("message-resolve", {
|
|
1582
|
+
type: "message-resolve",
|
|
1583
|
+
key: t,
|
|
1584
|
+
message: m,
|
|
1585
|
+
time: n - u,
|
|
1586
|
+
groupId: `${b}:${t}`
|
|
1587
|
+
}), x && S && v && y && (v(S), y("intlify message resolve", x, S));
|
|
1588
|
+
}
|
|
1589
|
+
if (I(m) || q(m) || Z(m)) break;
|
|
1590
|
+
if (!bn(p, d)) {
|
|
1591
|
+
let n = _n(e, t, p, o, b);
|
|
1592
|
+
n !== t && (m = n);
|
|
1593
|
+
}
|
|
1594
|
+
h = g;
|
|
1595
|
+
}
|
|
1596
|
+
return [
|
|
1597
|
+
m,
|
|
1598
|
+
p,
|
|
1599
|
+
f
|
|
1600
|
+
];
|
|
1601
|
+
}
|
|
1602
|
+
function Wn(e, t, r, i, a, o) {
|
|
1603
|
+
let { messageCompiler: s, warnHtmlMessage: c } = e;
|
|
1604
|
+
if (Z(i)) {
|
|
1605
|
+
let e = i;
|
|
1606
|
+
return e.locale = e.locale || r, e.key = e.key || t, e;
|
|
1607
|
+
}
|
|
1608
|
+
if (s == null) {
|
|
1609
|
+
let e = (() => i);
|
|
1610
|
+
return e.locale = r, e.key = t, e;
|
|
1611
|
+
}
|
|
1612
|
+
let l = null, u, d;
|
|
1613
|
+
n.env.NODE_ENV !== "production" && _ && (l = window.performance.now(), u = "intlify-message-compilation-start", d = "intlify-message-compilation-end", v && v(u));
|
|
1614
|
+
let f = s(i, qn(e, r, a, i, c, o));
|
|
1615
|
+
if (n.env.NODE_ENV !== "production" && _) {
|
|
1616
|
+
let n = window.performance.now(), r = e.__v_emitter;
|
|
1617
|
+
r && l && r.emit("message-compilation", {
|
|
1618
|
+
type: "message-compilation",
|
|
1619
|
+
message: i,
|
|
1620
|
+
time: n - l,
|
|
1621
|
+
groupId: `translate:${t}`
|
|
1622
|
+
}), u && d && v && y && (v(d), y("intlify message compilation", u, d));
|
|
1623
|
+
}
|
|
1624
|
+
return f.locale = r, f.key = t, f.source = i, f;
|
|
1625
|
+
}
|
|
1626
|
+
function Gn(e, t, r) {
|
|
1627
|
+
let i = null, a, o;
|
|
1628
|
+
n.env.NODE_ENV !== "production" && _ && (i = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", v && v(a));
|
|
1629
|
+
let s = t(r);
|
|
1630
|
+
if (n.env.NODE_ENV !== "production" && _) {
|
|
1631
|
+
let n = window.performance.now(), r = e.__v_emitter;
|
|
1632
|
+
r && i && r.emit("message-evaluation", {
|
|
1633
|
+
type: "message-evaluation",
|
|
1634
|
+
value: s,
|
|
1635
|
+
time: n - i,
|
|
1636
|
+
groupId: `translate:${t.key}`
|
|
1637
|
+
}), a && o && v && y && (v(o), y("intlify message evaluation", a, o));
|
|
1638
|
+
}
|
|
1639
|
+
return s;
|
|
1640
|
+
}
|
|
1641
|
+
function Kn(...e) {
|
|
1642
|
+
let [t, n, r] = e, i = A();
|
|
1643
|
+
if (!I(t) && !T(t) && !Z(t) && !q(t)) throw Y(J.INVALID_ARGUMENT);
|
|
1644
|
+
let a = T(t) ? String(t) : (Z(t), t);
|
|
1645
|
+
return T(n) ? i.plural = n : I(n) ? i.default = n : z(n) && !O(n) ? i.named = n : P(n) && (i.list = n), T(r) ? i.plural = r : I(r) ? i.default = r : z(r) && k(i, r), [a, i];
|
|
1646
|
+
}
|
|
1647
|
+
function qn(e, t, r, i, a, o) {
|
|
1648
|
+
return {
|
|
1649
|
+
locale: t,
|
|
1650
|
+
key: r,
|
|
1651
|
+
warnHtmlMessage: a,
|
|
1652
|
+
onError: (t) => {
|
|
1653
|
+
if (o && o(t), n.env.NODE_ENV !== "production") {
|
|
1654
|
+
let n = Jn(i), a = `Message compilation error: ${t.message}`, o = t.location && n && de(n, t.location.start.offset, t.location.end.offset), s = e.__v_emitter;
|
|
1655
|
+
s && n && s.emit("compile-error", {
|
|
1656
|
+
message: n,
|
|
1657
|
+
error: t.message,
|
|
1658
|
+
start: t.location && t.location.start.offset,
|
|
1659
|
+
end: t.location && t.location.end.offset,
|
|
1660
|
+
groupId: `translate:${r}`
|
|
1661
|
+
}), console.error(o ? `${a}\n${o}` : a);
|
|
1662
|
+
} else throw t;
|
|
1663
|
+
},
|
|
1664
|
+
onCacheKey: (e) => C(t, r, e)
|
|
1665
|
+
};
|
|
1666
|
+
}
|
|
1667
|
+
function Jn(e) {
|
|
1668
|
+
if (I(e)) return e;
|
|
1669
|
+
if (e.loc && e.loc.source) return e.loc.source;
|
|
1670
|
+
}
|
|
1671
|
+
function Yn(e, t, n, r) {
|
|
1672
|
+
let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
|
|
1673
|
+
locale: t,
|
|
1674
|
+
modifiers: i,
|
|
1675
|
+
pluralRules: a,
|
|
1676
|
+
messages: (r, i) => {
|
|
1677
|
+
let a = o(n, r);
|
|
1678
|
+
if (a == null && (u || i)) {
|
|
1679
|
+
let [, , n] = Un(u || e, r, t, s, c, l);
|
|
1680
|
+
a = o(n, r);
|
|
1681
|
+
}
|
|
1682
|
+
if (I(a) || q(a)) {
|
|
1683
|
+
let n = !1, i = Wn(e, r, t, a, r, () => {
|
|
1684
|
+
n = !0;
|
|
1685
|
+
});
|
|
1686
|
+
return n ? Bn : i;
|
|
1687
|
+
} else if (Z(a)) return a;
|
|
1688
|
+
else return Bn;
|
|
1689
|
+
}
|
|
1690
|
+
};
|
|
1691
|
+
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), T(r.plural) && (d.pluralIndex = r.plural), d;
|
|
1692
|
+
}
|
|
1693
|
+
//#endregion
|
|
1694
|
+
//#region node_modules/vue-i18n/dist/vue-i18n.mjs
|
|
1695
|
+
Je(), r();
|
|
1696
|
+
var Xn = "11.2.2";
|
|
1697
|
+
function Zn() {
|
|
1698
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (j().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (j().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (j().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (j().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1699
|
+
}
|
|
1700
|
+
var Q = {
|
|
1701
|
+
UNEXPECTED_RETURN_TYPE: 24,
|
|
1702
|
+
INVALID_ARGUMENT: 25,
|
|
1703
|
+
MUST_BE_CALL_SETUP_TOP: 26,
|
|
1704
|
+
NOT_INSTALLED: 27,
|
|
1705
|
+
REQUIRED_VALUE: 28,
|
|
1706
|
+
INVALID_VALUE: 29,
|
|
1707
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
|
|
1708
|
+
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
1709
|
+
UNEXPECTED_ERROR: 32,
|
|
1710
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
1711
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
1712
|
+
};
|
|
1713
|
+
function Qn(e, ...t) {
|
|
1714
|
+
return _e(e, null, n.env.NODE_ENV === "production" ? void 0 : {
|
|
1715
|
+
messages: $n,
|
|
1716
|
+
args: t
|
|
1717
|
+
});
|
|
1718
|
+
}
|
|
1719
|
+
var $n = {
|
|
1720
|
+
[Q.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
1721
|
+
[Q.INVALID_ARGUMENT]: "Invalid argument",
|
|
1722
|
+
[Q.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
1723
|
+
[Q.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
1724
|
+
[Q.UNEXPECTED_ERROR]: "Unexpected error",
|
|
1725
|
+
[Q.REQUIRED_VALUE]: "Required in value: {0}",
|
|
1726
|
+
[Q.INVALID_VALUE]: "Invalid value",
|
|
1727
|
+
[Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
1728
|
+
[Q.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
1729
|
+
[Q.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
1730
|
+
[Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1731
|
+
}, er = /* #__PURE__*/ S("__translateVNode"), tr = /* #__PURE__*/ S("__datetimeParts"), nr = /* #__PURE__*/ S("__numberParts"), rr = /* #__PURE__*/ S("__enableEmitter"), ir = /* #__PURE__*/ S("__disableEmitter"), ar = S("__setPluralRules");
|
|
1732
|
+
S("__intlifyMeta");
|
|
1733
|
+
var or = /* #__PURE__*/ S("__injectWithOption"), sr = /* #__PURE__*/ S("__dispose"), $ = {
|
|
1734
|
+
FALLBACK_TO_ROOT: 8,
|
|
1735
|
+
NOT_FOUND_PARENT_SCOPE: 9,
|
|
1736
|
+
IGNORE_OBJ_FLATTEN: 10,
|
|
1737
|
+
DEPRECATE_LEGACY_MODE: 11,
|
|
1738
|
+
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
1739
|
+
DUPLICATE_USE_I18N_CALLING: 13
|
|
1740
|
+
}, cr = {
|
|
1741
|
+
[$.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
1742
|
+
[$.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
1743
|
+
[$.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
1744
|
+
[$.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",
|
|
1745
|
+
[$.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
1746
|
+
[$.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."
|
|
1747
|
+
};
|
|
1748
|
+
function lr(e, ...t) {
|
|
1749
|
+
return x(cr[e], ...t);
|
|
1750
|
+
}
|
|
1751
|
+
function ur(e) {
|
|
1752
|
+
if (!R(e) || q(e)) return e;
|
|
1753
|
+
for (let t in e) if (N(e, t)) if (!t.includes(".")) R(e[t]) && ur(e[t]);
|
|
1754
|
+
else {
|
|
1755
|
+
let r = t.split("."), i = r.length - 1, a = e, o = !1;
|
|
1756
|
+
for (let e = 0; e < i; e++) {
|
|
1757
|
+
if (r[e] === "__proto__") throw Error(`unsafe key: ${r[e]}`);
|
|
1758
|
+
if (r[e] in a || (a[r[e]] = A()), !R(a[r[e]])) {
|
|
1759
|
+
n.env.NODE_ENV !== "production" && m(lr($.IGNORE_OBJ_FLATTEN, { key: r[e] })), o = !0;
|
|
1760
|
+
break;
|
|
1761
|
+
}
|
|
1762
|
+
a = a[r[e]];
|
|
1763
|
+
}
|
|
1764
|
+
if (o || (q(a) ? ft.includes(r[i]) || delete e[t] : (a[r[i]] = e[t], delete e[t])), !q(a)) {
|
|
1765
|
+
let e = a[r[i]];
|
|
1766
|
+
R(e) && ur(e);
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
return e;
|
|
1770
|
+
}
|
|
1771
|
+
function dr(e, t) {
|
|
1772
|
+
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = z(n) ? n : P(r) ? A() : { [e]: A() };
|
|
1773
|
+
if (P(r) && r.forEach((e) => {
|
|
1774
|
+
if ("locale" in e && "resource" in e) {
|
|
1775
|
+
let { locale: t, resource: n } = e;
|
|
1776
|
+
t ? (o[t] = o[t] || A(), pe(n, o[t])) : pe(n, o);
|
|
1777
|
+
} else I(e) && pe(JSON.parse(e), o);
|
|
1778
|
+
}), i == null && a) for (let e in o) N(o, e) && ur(o[e]);
|
|
1779
|
+
return o;
|
|
1780
|
+
}
|
|
1781
|
+
function fr(e) {
|
|
1782
|
+
return e.type;
|
|
1783
|
+
}
|
|
1784
|
+
function pr(e, t, n) {
|
|
1785
|
+
let r = R(t.messages) ? t.messages : A();
|
|
1786
|
+
"__i18nGlobal" in n && (r = dr(e.locale.value, {
|
|
1787
|
+
messages: r,
|
|
1788
|
+
__i18n: n.__i18nGlobal
|
|
1789
|
+
}));
|
|
1790
|
+
let i = Object.keys(r);
|
|
1791
|
+
if (i.length && i.forEach((t) => {
|
|
1792
|
+
e.mergeLocaleMessage(t, r[t]);
|
|
1793
|
+
}), R(t.datetimeFormats)) {
|
|
1794
|
+
let n = Object.keys(t.datetimeFormats);
|
|
1795
|
+
n.length && n.forEach((n) => {
|
|
1796
|
+
e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1799
|
+
if (R(t.numberFormats)) {
|
|
1800
|
+
let n = Object.keys(t.numberFormats);
|
|
1801
|
+
n.length && n.forEach((n) => {
|
|
1802
|
+
e.mergeNumberFormat(n, t.numberFormats[n]);
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
function mr(e) {
|
|
1807
|
+
return s(a, null, e, 0);
|
|
1808
|
+
}
|
|
1809
|
+
function hr() {
|
|
1810
|
+
return "currentInstance" in i ? i.currentInstance : i.getCurrentInstance();
|
|
1811
|
+
}
|
|
1812
|
+
var gr = () => [], _r = () => !1, vr = 0;
|
|
1813
|
+
function yr(e) {
|
|
1814
|
+
return ((t, n, r, i) => e(n, r, hr() || void 0, i));
|
|
1815
|
+
}
|
|
1816
|
+
function br(e = {}) {
|
|
1817
|
+
let { __root: t, __injectWithOption: r } = e, i = t === void 0, a = e.flatJson, s = _ ? d : f, c = L(e.inheritLocale) ? e.inheritLocale : !0, l = s(t && c ? t.locale.value : I(e.locale) ? e.locale : Zt), u = s(t && c ? t.fallbackLocale.value : I(e.fallbackLocale) || P(e.fallbackLocale) || z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value), h = s(dr(l.value, e)), g = s(z(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), v = s(z(e.numberFormats) ? e.numberFormats : { [l.value]: {} }), y = t ? t.missingWarn : L(e.missingWarn) || D(e.missingWarn) ? e.missingWarn : !0, b = t ? t.fallbackWarn : L(e.fallbackWarn) || D(e.fallbackWarn) ? e.fallbackWarn : !0, x = t ? t.fallbackRoot : L(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, C = F(e.missing) ? e.missing : null, w = F(e.missing) ? yr(e.missing) : null, E = F(e.postTranslation) ? e.postTranslation : null, O = t ? t.warnHtmlMessage : L(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, ee = !!e.escapeParameter, A = t ? t.modifiers : z(e.modifiers) ? e.modifiers : {}, te = e.pluralRules || t && t.pluralRules, j;
|
|
1818
|
+
j = (() => {
|
|
1819
|
+
i && un(null);
|
|
1820
|
+
let t = {
|
|
1821
|
+
version: Xn,
|
|
1822
|
+
locale: l.value,
|
|
1823
|
+
fallbackLocale: u.value,
|
|
1824
|
+
messages: h.value,
|
|
1825
|
+
modifiers: A,
|
|
1826
|
+
pluralRules: te,
|
|
1827
|
+
missing: w === null ? void 0 : w,
|
|
1828
|
+
missingWarn: y,
|
|
1829
|
+
fallbackWarn: b,
|
|
1830
|
+
fallbackFormat: S,
|
|
1831
|
+
unresolving: !0,
|
|
1832
|
+
postTranslation: E === null ? void 0 : E,
|
|
1833
|
+
warnHtmlMessage: O,
|
|
1834
|
+
escapeParameter: ee,
|
|
1835
|
+
messageResolver: e.messageResolver,
|
|
1836
|
+
messageCompiler: e.messageCompiler,
|
|
1837
|
+
__meta: { framework: "vue" }
|
|
1838
|
+
};
|
|
1839
|
+
t.datetimeFormats = g.value, t.numberFormats = v.value, t.__datetimeFormatters = z(j) ? j.__datetimeFormatters : void 0, t.__numberFormatters = z(j) ? j.__numberFormatters : void 0, n.env.NODE_ENV !== "production" && (t.__v_emitter = z(j) ? j.__v_emitter : void 0);
|
|
1840
|
+
let r = pn(t);
|
|
1841
|
+
return i && un(r), r;
|
|
1842
|
+
})(), vn(j, l.value, u.value);
|
|
1843
|
+
function M() {
|
|
1844
|
+
return [
|
|
1845
|
+
l.value,
|
|
1846
|
+
u.value,
|
|
1847
|
+
h.value,
|
|
1848
|
+
g.value,
|
|
1849
|
+
v.value
|
|
1850
|
+
];
|
|
1851
|
+
}
|
|
1852
|
+
let ne = o({
|
|
1853
|
+
get: () => l.value,
|
|
1854
|
+
set: (e) => {
|
|
1855
|
+
j.locale = e, l.value = e;
|
|
1856
|
+
}
|
|
1857
|
+
}), re = o({
|
|
1858
|
+
get: () => u.value,
|
|
1859
|
+
set: (e) => {
|
|
1860
|
+
j.fallbackLocale = e, u.value = e, vn(j, l.value, e);
|
|
1861
|
+
}
|
|
1862
|
+
}), ie = o(() => h.value), ae = /* #__PURE__*/ o(() => g.value), oe = /* #__PURE__*/ o(() => v.value);
|
|
1863
|
+
function se() {
|
|
1864
|
+
return F(E) ? E : null;
|
|
1865
|
+
}
|
|
1866
|
+
function ce(e) {
|
|
1867
|
+
E = e, j.postTranslation = e;
|
|
1868
|
+
}
|
|
1869
|
+
function le() {
|
|
1870
|
+
return C;
|
|
1871
|
+
}
|
|
1872
|
+
function ue(e) {
|
|
1873
|
+
e !== null && (w = yr(e)), C = e, j.missing = w;
|
|
1874
|
+
}
|
|
1875
|
+
function de(e, t) {
|
|
1876
|
+
return e !== "translate" || !t.resolvedMessage;
|
|
1877
|
+
}
|
|
1878
|
+
let B = (e, r, a, o, s, c) => {
|
|
1879
|
+
M();
|
|
1880
|
+
let l;
|
|
1881
|
+
try {
|
|
1882
|
+
n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (j.fallbackContext = t ? dn() : void 0), l = e(j);
|
|
1883
|
+
} finally {
|
|
1884
|
+
n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (j.fallbackContext = void 0);
|
|
1885
|
+
}
|
|
1886
|
+
if (a !== "translate exists" && T(l) && l === -1 || a === "translate exists" && !l) {
|
|
1887
|
+
let [e, i] = r();
|
|
1888
|
+
if (n.env.NODE_ENV !== "production" && t && I(e) && de(a, i) && (x && (hn(b, e) || gn(y, e)) && m(lr($.FALLBACK_TO_ROOT, {
|
|
1889
|
+
key: e,
|
|
1890
|
+
type: a
|
|
1891
|
+
})), n.env.NODE_ENV !== "production")) {
|
|
1892
|
+
let { __v_emitter: t } = j;
|
|
1893
|
+
t && x && t.emit("fallback", {
|
|
1894
|
+
type: a,
|
|
1895
|
+
key: e,
|
|
1896
|
+
to: "global",
|
|
1897
|
+
groupId: `${a}:${e}`
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
return t && x ? o(t) : s(e);
|
|
1901
|
+
} else if (c(l)) return l;
|
|
1902
|
+
else
|
|
1903
|
+
/* istanbul ignore next */
|
|
1904
|
+
throw Qn(Q.UNEXPECTED_RETURN_TYPE);
|
|
1905
|
+
};
|
|
1906
|
+
function fe(...e) {
|
|
1907
|
+
return B((t) => Reflect.apply(Vn, null, [t, ...e]), () => Kn(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => I(e));
|
|
1908
|
+
}
|
|
1909
|
+
function me(...e) {
|
|
1910
|
+
let [t, n, r] = e;
|
|
1911
|
+
if (r && !R(r)) throw Qn(Q.INVALID_ARGUMENT);
|
|
1912
|
+
return fe(t, n, k({ resolvedMessage: !0 }, r || {}));
|
|
1913
|
+
}
|
|
1914
|
+
function he(...e) {
|
|
1915
|
+
return B((t) => Reflect.apply(Cn, null, [t, ...e]), () => Tn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => I(e) || P(e));
|
|
1916
|
+
}
|
|
1917
|
+
function V(...e) {
|
|
1918
|
+
return B((t) => Reflect.apply(Dn, null, [t, ...e]), () => kn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => I(e) || P(e));
|
|
1919
|
+
}
|
|
1920
|
+
function ge(e) {
|
|
1921
|
+
return e.map((e) => I(e) || T(e) || L(e) ? mr(String(e)) : e);
|
|
1922
|
+
}
|
|
1923
|
+
let _e = {
|
|
1924
|
+
normalize: ge,
|
|
1925
|
+
interpolate: (e) => e,
|
|
1926
|
+
type: "vnode"
|
|
1927
|
+
};
|
|
1928
|
+
function ve(...e) {
|
|
1929
|
+
return B((t) => {
|
|
1930
|
+
let n, r = t;
|
|
1931
|
+
try {
|
|
1932
|
+
r.processor = _e, n = Reflect.apply(Vn, null, [r, ...e]);
|
|
1933
|
+
} finally {
|
|
1934
|
+
r.processor = null;
|
|
1935
|
+
}
|
|
1936
|
+
return n;
|
|
1937
|
+
}, () => Kn(...e), "translate", (t) => t[er](...e), (e) => [mr(e)], (e) => P(e));
|
|
1938
|
+
}
|
|
1939
|
+
function ye(...e) {
|
|
1940
|
+
return B((t) => Reflect.apply(Dn, null, [t, ...e]), () => kn(...e), "number format", (t) => t[nr](...e), gr, (e) => I(e) || P(e));
|
|
1941
|
+
}
|
|
1942
|
+
function be(...e) {
|
|
1943
|
+
return B((t) => Reflect.apply(Cn, null, [t, ...e]), () => Tn(...e), "datetime format", (t) => t[tr](...e), gr, (e) => I(e) || P(e));
|
|
1944
|
+
}
|
|
1945
|
+
function H(e) {
|
|
1946
|
+
te = e, j.pluralRules = te;
|
|
1947
|
+
}
|
|
1948
|
+
function xe(e, t) {
|
|
1949
|
+
return B(() => {
|
|
1950
|
+
if (!e) return !1;
|
|
1951
|
+
let n = Ce(I(t) ? t : l.value), r = j.messageResolver(n, e);
|
|
1952
|
+
return q(r) || Z(r) || I(r);
|
|
1953
|
+
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), _r, (e) => L(e));
|
|
1954
|
+
}
|
|
1955
|
+
function U(e) {
|
|
1956
|
+
let t = null, n = Pt(j, u.value, l.value);
|
|
1957
|
+
for (let r = 0; r < n.length; r++) {
|
|
1958
|
+
let i = h.value[n[r]] || {}, a = j.messageResolver(i, e);
|
|
1959
|
+
if (a != null) {
|
|
1960
|
+
t = a;
|
|
1961
|
+
break;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
return t;
|
|
1965
|
+
}
|
|
1966
|
+
function Se(e) {
|
|
1967
|
+
return U(e) ?? (t && t.tm(e) || {});
|
|
1968
|
+
}
|
|
1969
|
+
function Ce(e) {
|
|
1970
|
+
return h.value[e] || {};
|
|
1971
|
+
}
|
|
1972
|
+
function we(e, t) {
|
|
1973
|
+
if (a) {
|
|
1974
|
+
let n = { [e]: t };
|
|
1975
|
+
for (let e in n) N(n, e) && ur(n[e]);
|
|
1976
|
+
t = n[e];
|
|
1977
|
+
}
|
|
1978
|
+
h.value[e] = t, j.messages = h.value;
|
|
1979
|
+
}
|
|
1980
|
+
function W(e, t) {
|
|
1981
|
+
h.value[e] = h.value[e] || {};
|
|
1982
|
+
let n = { [e]: t };
|
|
1983
|
+
if (a) for (let e in n) N(n, e) && ur(n[e]);
|
|
1984
|
+
t = n[e], pe(t, h.value[e]), j.messages = h.value;
|
|
1985
|
+
}
|
|
1986
|
+
function Te(e) {
|
|
1987
|
+
return g.value[e] || {};
|
|
1988
|
+
}
|
|
1989
|
+
function Ee(e, t) {
|
|
1990
|
+
g.value[e] = t, j.datetimeFormats = g.value, En(j, e, t);
|
|
1991
|
+
}
|
|
1992
|
+
function De(e, t) {
|
|
1993
|
+
g.value[e] = k(g.value[e] || {}, t), j.datetimeFormats = g.value, En(j, e, t);
|
|
1994
|
+
}
|
|
1995
|
+
function Oe(e) {
|
|
1996
|
+
return v.value[e] || {};
|
|
1997
|
+
}
|
|
1998
|
+
function ke(e, t) {
|
|
1999
|
+
v.value[e] = t, j.numberFormats = v.value, An(j, e, t);
|
|
2000
|
+
}
|
|
2001
|
+
function Ae(e, t) {
|
|
2002
|
+
v.value[e] = k(v.value[e] || {}, t), j.numberFormats = v.value, An(j, e, t);
|
|
2003
|
+
}
|
|
2004
|
+
vr++, t && _ && (p(t.locale, (e) => {
|
|
2005
|
+
c && (l.value = e, j.locale = e, vn(j, l.value, u.value));
|
|
2006
|
+
}), p(t.fallbackLocale, (e) => {
|
|
2007
|
+
c && (u.value = e, j.fallbackLocale = e, vn(j, l.value, u.value));
|
|
2008
|
+
}));
|
|
2009
|
+
let G = {
|
|
2010
|
+
id: vr,
|
|
2011
|
+
locale: ne,
|
|
2012
|
+
fallbackLocale: re,
|
|
2013
|
+
get inheritLocale() {
|
|
2014
|
+
return c;
|
|
2015
|
+
},
|
|
2016
|
+
set inheritLocale(e) {
|
|
2017
|
+
c = e, e && t && (l.value = t.locale.value, u.value = t.fallbackLocale.value, vn(j, l.value, u.value));
|
|
2018
|
+
},
|
|
2019
|
+
get availableLocales() {
|
|
2020
|
+
return Object.keys(h.value).sort();
|
|
2021
|
+
},
|
|
2022
|
+
messages: ie,
|
|
2023
|
+
get modifiers() {
|
|
2024
|
+
return A;
|
|
2025
|
+
},
|
|
2026
|
+
get pluralRules() {
|
|
2027
|
+
return te || {};
|
|
2028
|
+
},
|
|
2029
|
+
get isGlobal() {
|
|
2030
|
+
return i;
|
|
2031
|
+
},
|
|
2032
|
+
get missingWarn() {
|
|
2033
|
+
return y;
|
|
2034
|
+
},
|
|
2035
|
+
set missingWarn(e) {
|
|
2036
|
+
y = e, j.missingWarn = y;
|
|
2037
|
+
},
|
|
2038
|
+
get fallbackWarn() {
|
|
2039
|
+
return b;
|
|
2040
|
+
},
|
|
2041
|
+
set fallbackWarn(e) {
|
|
2042
|
+
b = e, j.fallbackWarn = b;
|
|
2043
|
+
},
|
|
2044
|
+
get fallbackRoot() {
|
|
2045
|
+
return x;
|
|
2046
|
+
},
|
|
2047
|
+
set fallbackRoot(e) {
|
|
2048
|
+
x = e;
|
|
2049
|
+
},
|
|
2050
|
+
get fallbackFormat() {
|
|
2051
|
+
return S;
|
|
2052
|
+
},
|
|
2053
|
+
set fallbackFormat(e) {
|
|
2054
|
+
S = e, j.fallbackFormat = S;
|
|
2055
|
+
},
|
|
2056
|
+
get warnHtmlMessage() {
|
|
2057
|
+
return O;
|
|
2058
|
+
},
|
|
2059
|
+
set warnHtmlMessage(e) {
|
|
2060
|
+
O = e, j.warnHtmlMessage = e;
|
|
2061
|
+
},
|
|
2062
|
+
get escapeParameter() {
|
|
2063
|
+
return ee;
|
|
2064
|
+
},
|
|
2065
|
+
set escapeParameter(e) {
|
|
2066
|
+
ee = e, j.escapeParameter = e;
|
|
2067
|
+
},
|
|
2068
|
+
t: fe,
|
|
2069
|
+
getLocaleMessage: Ce,
|
|
2070
|
+
setLocaleMessage: we,
|
|
2071
|
+
mergeLocaleMessage: W,
|
|
2072
|
+
getPostTranslationHandler: se,
|
|
2073
|
+
setPostTranslationHandler: ce,
|
|
2074
|
+
getMissingHandler: le,
|
|
2075
|
+
setMissingHandler: ue,
|
|
2076
|
+
[ar]: H
|
|
2077
|
+
};
|
|
2078
|
+
return G.datetimeFormats = ae, G.numberFormats = oe, G.rt = me, G.te = xe, G.tm = Se, G.d = he, G.n = V, G.getDateTimeFormat = Te, G.setDateTimeFormat = Ee, G.mergeDateTimeFormat = De, G.getNumberFormat = Oe, G.setNumberFormat = ke, G.mergeNumberFormat = Ae, G[or] = r, G[er] = ve, G[tr] = be, G[nr] = ye, n.env.NODE_ENV !== "production" && (G[rr] = (e) => {
|
|
2079
|
+
j.__v_emitter = e;
|
|
2080
|
+
}, G[ir] = () => {
|
|
2081
|
+
j.__v_emitter = void 0;
|
|
2082
|
+
}), G;
|
|
2083
|
+
}
|
|
2084
|
+
var xr;
|
|
2085
|
+
function Sr(e, t) {
|
|
2086
|
+
if (xr) {
|
|
2087
|
+
let n;
|
|
2088
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), xr.addTimelineEvent({
|
|
2089
|
+
layerId: "vue-i18n-timeline",
|
|
2090
|
+
event: {
|
|
2091
|
+
title: e,
|
|
2092
|
+
groupId: n,
|
|
2093
|
+
time: Date.now(),
|
|
2094
|
+
meta: {},
|
|
2095
|
+
data: t || {},
|
|
2096
|
+
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
|
2097
|
+
}
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
var Cr = {
|
|
2102
|
+
tag: { type: [String, Object] },
|
|
2103
|
+
locale: { type: String },
|
|
2104
|
+
scope: {
|
|
2105
|
+
type: String,
|
|
2106
|
+
validator: (e) => e === "parent" || e === "global",
|
|
2107
|
+
default: "parent"
|
|
2108
|
+
},
|
|
2109
|
+
i18n: { type: Object }
|
|
2110
|
+
};
|
|
2111
|
+
k({
|
|
2112
|
+
keypath: {
|
|
2113
|
+
type: String,
|
|
2114
|
+
required: !0
|
|
2115
|
+
},
|
|
2116
|
+
plural: {
|
|
2117
|
+
type: [Number, String],
|
|
2118
|
+
validator: (e) => T(e) || !isNaN(e)
|
|
2119
|
+
}
|
|
2120
|
+
}, Cr), k({
|
|
2121
|
+
value: {
|
|
2122
|
+
type: Number,
|
|
2123
|
+
required: !0
|
|
2124
|
+
},
|
|
2125
|
+
format: { type: [String, Object] }
|
|
2126
|
+
}, Cr);
|
|
2127
|
+
var wr = /* #__PURE__*/ S("global-vue-i18n");
|
|
2128
|
+
function Tr(e = {}) {
|
|
2129
|
+
let t = hr();
|
|
2130
|
+
if (t == null) throw Qn(Q.MUST_BE_CALL_SETUP_TOP);
|
|
2131
|
+
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw Qn(Q.NOT_INSTALLED);
|
|
2132
|
+
let r = Er(t), i = Or(r), a = fr(t), o = Dr(e, a);
|
|
2133
|
+
if (o === "global") return pr(i, e, a), i;
|
|
2134
|
+
if (o === "parent") {
|
|
2135
|
+
let a = kr(r, t, e.__useComponent);
|
|
2136
|
+
return a ??= (n.env.NODE_ENV !== "production" && m(lr($.NOT_FOUND_PARENT_SCOPE)), i), a;
|
|
2137
|
+
}
|
|
2138
|
+
let s = r, c = s.__getInstance(t);
|
|
2139
|
+
if (c == null) {
|
|
2140
|
+
let n = k({}, e);
|
|
2141
|
+
"__i18n" in a && (n.__i18n = a.__i18n), i && (n.__root = i), c = br(n), s.__composerExtend && (c[sr] = s.__composerExtend(c)), jr(s, t, c), s.__setInstance(t, c);
|
|
2142
|
+
} else n.env.NODE_ENV !== "production" && o === "local" && m(lr($.DUPLICATE_USE_I18N_CALLING));
|
|
2143
|
+
return c;
|
|
2144
|
+
}
|
|
2145
|
+
function Er(e) {
|
|
2146
|
+
let t = c(e.isCE ? wr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2147
|
+
/* istanbul ignore if */
|
|
2148
|
+
if (!t) throw Qn(e.isCE ? Q.NOT_INSTALLED_WITH_PROVIDE : Q.UNEXPECTED_ERROR);
|
|
2149
|
+
return t;
|
|
2150
|
+
}
|
|
2151
|
+
function Dr(e, t) {
|
|
2152
|
+
return O(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2153
|
+
}
|
|
2154
|
+
function Or(e) {
|
|
2155
|
+
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2156
|
+
}
|
|
2157
|
+
function kr(e, t, n = !1) {
|
|
2158
|
+
let r = null, i = t.root, a = Ar(t, n);
|
|
2159
|
+
for (; a != null;) {
|
|
2160
|
+
let t = e;
|
|
2161
|
+
if (e.mode === "composition") r = t.__getInstance(a);
|
|
2162
|
+
else if (__VUE_I18N_LEGACY_API__) {
|
|
2163
|
+
let e = t.__getInstance(a);
|
|
2164
|
+
e != null && (r = e.__composer, n && r && !r[or] && (r = null));
|
|
2165
|
+
}
|
|
2166
|
+
if (r != null || i === a) break;
|
|
2167
|
+
a = a.parent;
|
|
2168
|
+
}
|
|
2169
|
+
return r;
|
|
2170
|
+
}
|
|
2171
|
+
function Ar(e, t = !1) {
|
|
2172
|
+
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2173
|
+
}
|
|
2174
|
+
function jr(e, t, r) {
|
|
2175
|
+
let i = null;
|
|
2176
|
+
l(() => {
|
|
2177
|
+
if (n.env.NODE_ENV !== "production") {
|
|
2178
|
+
t.__VUE_I18N__ = r, i = B();
|
|
2179
|
+
let e = r;
|
|
2180
|
+
e[rr] && e[rr](i), i.on("*", Sr);
|
|
2181
|
+
}
|
|
2182
|
+
}, t), u(() => {
|
|
2183
|
+
let a = r;
|
|
2184
|
+
n.env.NODE_ENV !== "production" && (i && i.off("*", Sr), a[ir] && a[ir](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
2185
|
+
let o = a[sr];
|
|
2186
|
+
o && (o(), delete a[sr]);
|
|
2187
|
+
}, t);
|
|
2188
|
+
}
|
|
2189
|
+
if (k({
|
|
2190
|
+
value: {
|
|
2191
|
+
type: [Number, Date],
|
|
2192
|
+
required: !0
|
|
2193
|
+
},
|
|
2194
|
+
format: { type: [String, Object] }
|
|
2195
|
+
}, Cr), Zn(), tn(Ct), rn(qt), on(Pt), n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2196
|
+
let e = j();
|
|
2197
|
+
e.__INTLIFY__ = !0, Tt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2198
|
+
}
|
|
2199
|
+
n.env.NODE_ENV;
|
|
2200
|
+
//#endregion
|
|
2201
|
+
export { Tr as t };
|