halo-pc 1.0.15 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-BZph3Slr.js +194 -0
- package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BW_G0Irk.js} +17 -24
- package/dist/Autocomplete-CuAwiHhE.js +49 -0
- package/dist/Autocomplete-Dw1r9LjJ.js +48 -0
- package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-qmcT2ECx.js} +1 -1
- package/dist/{CSharp-BGzxI5QJ.js → CSharp-BWYY3ixE.js} +1 -1
- package/dist/{Calender-DkBPl9bM.js → Calender-CGxlpOR0.js} +3 -3
- package/dist/Callback-phrGGQ_Q.js +20 -0
- package/dist/Cascader-CT7ASkSy.js +41 -0
- package/dist/Cascader-CsJ1jVBY.js +81 -0
- package/dist/{Checkbox-CuRjXSPc.js → Checkbox-BOC7ECAx.js} +1 -1
- package/dist/Checkbox-BePH3x-V.js +70 -0
- package/dist/Code-CE-Fe7WB.js +36 -0
- package/dist/{Code-BlwPnx9J.js → Code-CWxVzJHq.js} +1 -1
- package/dist/Code-CqLG9fEE.js +54 -0
- package/dist/Code-TBB9w4CV.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-oiyt3bsp.js +59 -0
- package/dist/Column-Ctyq9hqP.js +68 -0
- package/dist/Comment-RyVJJjTd.js +98 -0
- package/dist/Compare-DEccApnU.js +56 -0
- package/dist/Compare-ZBeSkf8f.js +26 -0
- package/dist/Copy-CNJ1TZJl.js +43 -0
- package/dist/Custom-DHvr_EJi.js +51 -0
- package/dist/{DataExport-C0jItlVY.js → DataExport-39v2Wzii.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-Bmm7IDoz.js} +34 -40
- package/dist/{DataImport-BfBkneEy.js → DataImport-C1O_zTRs.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CGKObmMj.js} +54 -59
- package/dist/{Date-B8b9JXpP.js → Date-BAk-TE4a.js} +1 -1
- package/dist/Date-CsIPLFzI.js +37 -0
- package/dist/DateRange-BXSMqDJ0.js +57 -0
- package/dist/DateTime-2RoBkqWb.js +38 -0
- package/dist/{DateTime-DjhuyxFC.js → DateTime-DSiPx95t.js} +1 -1
- package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-l6kVSbZe.js} +13 -20
- package/dist/Daterange-DRq9WIRI.js +57 -0
- package/dist/{Decimal-DqMMTfvl.js → Decimal-DGia5Sy8.js} +1 -1
- package/dist/Delete-B7X35s7r.js +56 -0
- package/dist/{Detail-C-OFWPso.js → Detail-wJXhceca.js} +16 -23
- package/dist/Dictionary-CUFHT-1d.js +55 -0
- package/dist/Email-BqiiArN8.js +48 -0
- package/dist/{File-C2fLmTcj.js → File-DngRHLmK.js} +40 -47
- package/dist/Image-D3FNAo-5.js +9 -0
- package/dist/Index-B3hh_9-f.js +4 -0
- package/dist/{Index-D7DerkIw.js → Index-B4bG41Qh.js} +1 -1
- package/dist/Index-BJ4rN3ua.js +4 -0
- package/dist/Index-C3EFws1o.js +4 -0
- package/dist/Index-ChQl4mWS.js +70 -0
- package/dist/{Index-B90giDWQ.js → Index-D6WfgZso.js} +1 -1
- package/dist/Index-Dec7ANPo.js +173 -0
- package/dist/{Index-CQURvmzd.js → Index-yxohMYWu.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-BzE42p5R.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-CCvdKImo.js} +14 -21
- package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-AFTrgrBJ.js} +30 -36
- package/dist/{Install-Cqj44p9F.js → Install-DvLkDt-G.js} +20 -27
- package/dist/{Int-Bj3Gagp5.js → Int-CTZDyiRf.js} +9 -16
- package/dist/Int-DUxDmxeN.js +41 -0
- package/dist/List-DhQAnj6h.js +73 -0
- package/dist/Maintaince-DlOgC995.js +14 -0
- package/dist/{Markdown-COY9enBf.js → Markdown-BBZs8Oeu.js} +1 -1
- package/dist/Month-BOpeFNyJ.js +37 -0
- package/dist/Month-CGeJVL3p.js +38 -0
- package/dist/{Month-B7jIGlKI.js → Month-UvBNgDPi.js} +1 -1
- package/dist/{Normal-B8YL2DeI.js → Normal-AYl3k_ON.js} +43 -49
- package/dist/Paging-B45u8Pwz.js +94 -0
- package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-BKtQX0FN.js} +37 -44
- package/dist/{PagingRow-CHDlm8UI.js → PagingRow-C1sBqbWn.js} +21 -28
- package/dist/QueryApi-DwKYCq-u.js +13 -0
- package/dist/{Racebar-ClsuYbRj.js → Racebar-DEHtOLFI.js} +43 -49
- package/dist/{Radio-C6j5nvI9.js → Radio-i6CjikAh.js} +1 -1
- package/dist/{Register-BnwfjjXP.js → Register-SHm6xbyk.js} +74 -80
- package/dist/RichText-Bxc-XIY-.js +41 -0
- package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-Co8AjPaU.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CL0CnYJg.js} +1 -1
- package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CMiBnK26.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-OBkIrjUP.js} +34 -40
- package/dist/{Select-BiFIpc5-.js → Select-B-gNnoDq.js} +1 -1
- package/dist/Select-DuecGTXX.js +111 -0
- package/dist/{Select-Z8b2t5QQ.js → Select-t1xYHXcV.js} +19 -26
- package/dist/{Single-DdcVVH9V.js → Single-Da4zGSt4.js} +116 -122
- package/dist/{Statistic-B7niMPBf.js → Statistic-MUCQAxl_.js} +25 -31
- package/dist/{Stock-CRsu1vcy.js → Stock-C0gpktjX.js} +1 -1
- package/dist/{Stock-xm8v4vDf.js → Stock-CFVyfAIN.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-B-uQM5GU.js} +26 -32
- package/dist/{Switch-BaER4xWy.js → Switch-CT0S6MHJ.js} +1 -1
- package/dist/{Table-C2dYPoGi.js → Table-CU6q8l3a.js} +54 -61
- package/dist/{Table-a5uj25Nj.js → Table-NC8CrrxW.js} +63 -68
- package/dist/Text-Bx4cfjya.js +52 -0
- package/dist/{Text-CMEzogZ8.js → Text-ChJQSLGE.js} +1 -1
- package/dist/Text-ChdZDU0g.js +53 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-BZNDg39p.js +53 -0
- package/dist/TextLink-DIHx9sjo.js +59 -0
- package/dist/{Textarea-DAICkidp.js → Textarea-CRi6hLdT.js} +1 -1
- package/dist/Time-Cn6eQVUQ.js +37 -0
- package/dist/Timeline-DpEcUmkJ.js +53 -0
- package/dist/{Tree-BwQkDP2T.js → Tree-B0Rqvp37.js} +73 -79
- package/dist/Tree-nr0ZIvCA.js +117 -0
- package/dist/TreeNode-e51TMrSj.js +37 -0
- package/dist/{Update-BZe92EwV.js → Update-QF8Zkcdq.js} +13 -20
- package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-DouQaV7E.js} +19 -26
- package/dist/Upload-0ba29Dyr.js +67 -0
- package/dist/Upload-BXj28BSA.js +146 -0
- package/dist/UploadApi-Boq1A5E-.js +13 -0
- package/dist/Year-DuBH5ghc.js +41 -0
- package/dist/{Year-2tcz8PDF.js → Year-x4NXoaB_.js} +1 -1
- package/dist/main-RFuk2-Bk.js +19837 -0
- package/dist/main.js +54 -56
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +1 -1
- package/dist/Article-BH4dl6Bf.js +0 -201
- package/dist/Autocomplete-DYxWYClO.js +0 -55
- package/dist/Autocomplete-SOenNkH4.js +0 -54
- package/dist/Callback-B57W83N1.js +0 -27
- package/dist/Cascader-BI6T7N-q.js +0 -88
- package/dist/Cascader-BoN_F8v4.js +0 -48
- package/dist/Checkbox-DdolP6wO.js +0 -77
- package/dist/Code--y8oCkjX.js +0 -43
- package/dist/Code-C48Gf7gU.js +0 -61
- package/dist/Code-DiOQvIZv.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
- package/dist/Column-BNGw36Iq.js +0 -75
- package/dist/Comment-D37SdQb6.js +0 -105
- package/dist/Compare-C09T8aaU.js +0 -33
- package/dist/Compare-CnnCTG12.js +0 -63
- package/dist/Copy-DNrXXJRQ.js +0 -50
- package/dist/Custom--I04Jyzr.js +0 -58
- package/dist/Date-TKW4HbCJ.js +0 -44
- package/dist/DateRange-JCP1Eokf.js +0 -64
- package/dist/DateTime-DVOVXS_f.js +0 -45
- package/dist/Daterange-CqHXC9JN.js +0 -64
- package/dist/Delete-PcTE_3Cp.js +0 -63
- package/dist/Dictionary-Cfhmc2OQ.js +0 -60
- package/dist/Email-Rj-ZvdfJ.js +0 -55
- package/dist/Image-zgBgvAup.js +0 -9
- package/dist/Index-9fyKz8TT.js +0 -4
- package/dist/Index-CAlWNb2l.js +0 -179
- package/dist/Index-CjFLlnmH.js +0 -4
- package/dist/Index-Cr2WAY6Z.js +0 -76
- package/dist/Index-Izl4chSJ.js +0 -4
- package/dist/Int-dlbcQ6_t.js +0 -47
- package/dist/List-BsAOvgmQ.js +0 -80
- package/dist/Maintaince-DjSvIfbu.js +0 -21
- package/dist/Month-BhNUuzcc.js +0 -44
- package/dist/Month-KDuTRSA0.js +0 -45
- package/dist/Paging-BlFnu-w0.js +0 -100
- package/dist/QueryApi-Bc_kmvgs.js +0 -21
- package/dist/RichText-BImFNkHQ.js +0 -48
- package/dist/Select-f15Y0Ko-.js +0 -118
- package/dist/Text-CqKE2xDo.js +0 -59
- package/dist/Text-DfqLW_KH.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
- package/dist/TextLink-XJurKE8Q.js +0 -66
- package/dist/Time-BmdIHgOY.js +0 -44
- package/dist/Timeline-BOPAiaK-.js +0 -60
- package/dist/Tree-BR8gmBBa.js +0 -123
- package/dist/TreeNode-CdBVgaRW.js +0 -43
- package/dist/Upload-BtErvzEO.js +0 -151
- package/dist/Upload-vPTA8ndw.js +0 -73
- package/dist/UploadApi-CpwS4Kf1.js +0 -21
- package/dist/Year-CVqwpSLR.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,1670 +0,0 @@
|
|
1
|
-
import { a as w, i as ae, b as N, c as V, d as L, m as H, w as S, e as qt, D as je, f as D, g as p, h as le, j as B, r as tt, k as Qt, l as Zt, n as ee, s as ea, o as ta, p as aa, q as fe, t as Ee, u as la, v as re, x as ge, N as na, y as ra, z as Be, A as sa, B as oa, C as ia, E as pt, F as ca, G as Rt, H as ua, I as at, J as lt, K as Pt, L as _a, M as ma, O as fa, P as Ea, Q as ga, R as va, S as nt, T as rt, U as st, V as ot, W as it, X as ct, Y as ut, Z as da, _ as _t } from "./@intlify-BISCQg1h.js";
|
2
|
-
import { defineComponent as Xe, h as Ft, getCurrentInstance as se, effectScope as ba, inject as Na, onMounted as Ia, onUnmounted as Ta, shallowRef as ht, ref as te, computed as x, onBeforeMount as Oa, watch as We, Fragment as kt, isRef as La, createVNode as pa, Text as Ra } from "vue";
|
3
|
-
import { s as Pa } from "./@vue-aVYGocXp.js";
|
4
|
-
/*!
|
5
|
-
* vue-i18n v9.13.1
|
6
|
-
* (c) 2024 kazuya kawaguchi
|
7
|
-
* Released under the MIT License.
|
8
|
-
*/
|
9
|
-
const Fa = "9.13.1";
|
10
|
-
function ha() {
|
11
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ee().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ee().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (ee().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ee().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ee().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
12
|
-
}
|
13
|
-
const Ct = _a.__EXTEND_POINT__, j = Rt(Ct), O = {
|
14
|
-
FALLBACK_TO_ROOT: Ct,
|
15
|
-
// 9
|
16
|
-
NOT_SUPPORTED_PRESERVE: j(),
|
17
|
-
// 10
|
18
|
-
NOT_SUPPORTED_FORMATTER: j(),
|
19
|
-
// 11
|
20
|
-
NOT_SUPPORTED_PRESERVE_DIRECTIVE: j(),
|
21
|
-
// 12
|
22
|
-
NOT_SUPPORTED_GET_CHOICE_INDEX: j(),
|
23
|
-
// 13
|
24
|
-
COMPONENT_NAME_LEGACY_COMPATIBLE: j(),
|
25
|
-
// 14
|
26
|
-
NOT_FOUND_PARENT_SCOPE: j(),
|
27
|
-
// 15
|
28
|
-
IGNORE_OBJ_FLATTEN: j(),
|
29
|
-
// 16
|
30
|
-
NOTICE_DROP_ALLOW_COMPOSITION: j(),
|
31
|
-
// 17
|
32
|
-
NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG: j()
|
33
|
-
// 18
|
34
|
-
}, ka = {
|
35
|
-
[O.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
36
|
-
[O.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
37
|
-
[O.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
38
|
-
[O.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
|
39
|
-
[O.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
|
40
|
-
[O.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
41
|
-
[O.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
42
|
-
[O.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
43
|
-
[O.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
|
44
|
-
[O.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
|
45
|
-
};
|
46
|
-
function M(e, ...l) {
|
47
|
-
return ta(ka[e], ...l);
|
48
|
-
}
|
49
|
-
const Dt = ca.__EXTEND_POINT__, A = Rt(Dt), b = {
|
50
|
-
// composer module errors
|
51
|
-
UNEXPECTED_RETURN_TYPE: Dt,
|
52
|
-
// 24
|
53
|
-
// legacy module errors
|
54
|
-
INVALID_ARGUMENT: A(),
|
55
|
-
// 25
|
56
|
-
// i18n module errors
|
57
|
-
MUST_BE_CALL_SETUP_TOP: A(),
|
58
|
-
// 26
|
59
|
-
NOT_INSTALLED: A(),
|
60
|
-
// 27
|
61
|
-
NOT_AVAILABLE_IN_LEGACY_MODE: A(),
|
62
|
-
// 28
|
63
|
-
// directive module errors
|
64
|
-
REQUIRED_VALUE: A(),
|
65
|
-
// 29
|
66
|
-
INVALID_VALUE: A(),
|
67
|
-
// 30
|
68
|
-
// vue-devtools errors
|
69
|
-
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: A(),
|
70
|
-
// 31
|
71
|
-
NOT_INSTALLED_WITH_PROVIDE: A(),
|
72
|
-
// 32
|
73
|
-
// unexpected error
|
74
|
-
UNEXPECTED_ERROR: A(),
|
75
|
-
// 33
|
76
|
-
// not compatible legacy vue-i18n constructor
|
77
|
-
NOT_COMPATIBLE_LEGACY_VUE_I18N: A(),
|
78
|
-
// 34
|
79
|
-
// bridge support vue 2.x only
|
80
|
-
BRIDGE_SUPPORT_VUE_2_ONLY: A(),
|
81
|
-
// 35
|
82
|
-
// need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
|
83
|
-
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: A(),
|
84
|
-
// 36
|
85
|
-
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
86
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: A(),
|
87
|
-
// 37
|
88
|
-
// for enhancement
|
89
|
-
__EXTEND_POINT__: A()
|
90
|
-
// 38
|
91
|
-
};
|
92
|
-
function h(e, ...l) {
|
93
|
-
return aa(e, null, process.env.NODE_ENV !== "production" ? { messages: Ca, args: l } : void 0);
|
94
|
-
}
|
95
|
-
const Ca = {
|
96
|
-
[b.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
97
|
-
[b.INVALID_ARGUMENT]: "Invalid argument",
|
98
|
-
[b.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
99
|
-
[b.NOT_INSTALLED]: "Need to install with `app.use` function",
|
100
|
-
[b.UNEXPECTED_ERROR]: "Unexpected error",
|
101
|
-
[b.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
102
|
-
[b.REQUIRED_VALUE]: "Required in value: {0}",
|
103
|
-
[b.INVALID_VALUE]: "Invalid value",
|
104
|
-
[b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
105
|
-
[b.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
106
|
-
[b.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
107
|
-
[b.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
108
|
-
[b.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
|
109
|
-
[b.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
110
|
-
}, we = /* @__PURE__ */ H("__translateVNode"), $e = /* @__PURE__ */ H("__datetimeParts"), xe = /* @__PURE__ */ H("__numberParts"), Q = /* @__PURE__ */ H("__enableEmitter"), oe = /* @__PURE__ */ H("__disableEmitter"), At = H("__setPluralRules"), Mt = /* @__PURE__ */ H("__injectWithOption"), He = /* @__PURE__ */ H("__dispose");
|
111
|
-
function ie(e) {
|
112
|
-
if (!V(e))
|
113
|
-
return e;
|
114
|
-
for (const l in e)
|
115
|
-
if (Ee(e, l))
|
116
|
-
if (!l.includes("."))
|
117
|
-
V(e[l]) && ie(e[l]);
|
118
|
-
else {
|
119
|
-
const a = l.split("."), n = a.length - 1;
|
120
|
-
let s = e, t = !1;
|
121
|
-
for (let r = 0; r < n; r++) {
|
122
|
-
if (a[r] in s || (s[a[r]] = {}), !V(s[a[r]])) {
|
123
|
-
process.env.NODE_ENV !== "production" && S(M(O.IGNORE_OBJ_FLATTEN, {
|
124
|
-
key: a[r]
|
125
|
-
})), t = !0;
|
126
|
-
break;
|
127
|
-
}
|
128
|
-
s = s[a[r]];
|
129
|
-
}
|
130
|
-
t || (s[a[n]] = e[l], delete e[l]), V(s[a[n]]) && ie(s[a[n]]);
|
131
|
-
}
|
132
|
-
return e;
|
133
|
-
}
|
134
|
-
function ve(e, l) {
|
135
|
-
const { messages: a, __i18n: n, messageResolver: s, flatJson: t } = l, r = p(a) ? a : D(n) ? {} : { [e]: {} };
|
136
|
-
if (D(n) && n.forEach((i) => {
|
137
|
-
if ("locale" in i && "resource" in i) {
|
138
|
-
const { locale: _, resource: m } = i;
|
139
|
-
_ ? (r[_] = r[_] || {}, fe(m, r[_])) : fe(m, r);
|
140
|
-
} else
|
141
|
-
N(i) && fe(JSON.parse(i), r);
|
142
|
-
}), s == null && t)
|
143
|
-
for (const i in r)
|
144
|
-
Ee(r, i) && ie(r[i]);
|
145
|
-
return r;
|
146
|
-
}
|
147
|
-
function St(e) {
|
148
|
-
return e.type;
|
149
|
-
}
|
150
|
-
function Vt(e, l, a) {
|
151
|
-
let n = V(l.messages) ? l.messages : {};
|
152
|
-
"__i18nGlobal" in a && (n = ve(e.locale.value, {
|
153
|
-
messages: n,
|
154
|
-
__i18n: a.__i18nGlobal
|
155
|
-
}));
|
156
|
-
const s = Object.keys(n);
|
157
|
-
s.length && s.forEach((t) => {
|
158
|
-
e.mergeLocaleMessage(t, n[t]);
|
159
|
-
});
|
160
|
-
{
|
161
|
-
if (V(l.datetimeFormats)) {
|
162
|
-
const t = Object.keys(l.datetimeFormats);
|
163
|
-
t.length && t.forEach((r) => {
|
164
|
-
e.mergeDateTimeFormat(r, l.datetimeFormats[r]);
|
165
|
-
});
|
166
|
-
}
|
167
|
-
if (V(l.numberFormats)) {
|
168
|
-
const t = Object.keys(l.numberFormats);
|
169
|
-
t.length && t.forEach((r) => {
|
170
|
-
e.mergeNumberFormat(r, l.numberFormats[r]);
|
171
|
-
});
|
172
|
-
}
|
173
|
-
}
|
174
|
-
}
|
175
|
-
function mt(e) {
|
176
|
-
return pa(Ra, null, e, 0);
|
177
|
-
}
|
178
|
-
const ft = "__INTLIFY_META__", Et = () => [], Da = () => !1;
|
179
|
-
let gt = 0;
|
180
|
-
function vt(e) {
|
181
|
-
return (l, a, n, s) => e(a, n, se() || void 0, s);
|
182
|
-
}
|
183
|
-
const Aa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
184
|
-
const e = se();
|
185
|
-
let l = null;
|
186
|
-
return e && (l = St(e)[ft]) ? { [ft]: l } : null;
|
187
|
-
};
|
188
|
-
function Je(e = {}, l) {
|
189
|
-
const { __root: a, __injectWithOption: n } = e, s = a === void 0, t = e.flatJson, r = ge ? te : ht, i = !!e.translateExistCompatible;
|
190
|
-
process.env.NODE_ENV !== "production" && i && la(M(O.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
|
191
|
-
let _ = L(e.inheritLocale) ? e.inheritLocale : !0;
|
192
|
-
const m = r(
|
193
|
-
// prettier-ignore
|
194
|
-
a && _ ? a.locale.value : N(e.locale) ? e.locale : je
|
195
|
-
), g = r(
|
196
|
-
// prettier-ignore
|
197
|
-
a && _ ? a.fallbackLocale.value : N(e.fallbackLocale) || D(e.fallbackLocale) || p(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
198
|
-
), v = r(ve(m.value, e)), E = r(p(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), d = r(p(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
199
|
-
let F = a ? a.missingWarn : L(e.missingWarn) || le(e.missingWarn) ? e.missingWarn : !0, k = a ? a.fallbackWarn : L(e.fallbackWarn) || le(e.fallbackWarn) ? e.fallbackWarn : !0, U = a ? a.fallbackRoot : L(e.fallbackRoot) ? e.fallbackRoot : !0, y = !!e.fallbackFormat, W = B(e.missing) ? e.missing : null, C = B(e.missing) ? vt(e.missing) : null, G = B(e.postTranslation) ? e.postTranslation : null, z = a ? a.warnHtmlMessage : L(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, X = !!e.escapeParameter;
|
200
|
-
const ne = a ? a.modifiers : p(e.modifiers) ? e.modifiers : {};
|
201
|
-
let $ = e.pluralRules || a && a.pluralRules, f;
|
202
|
-
f = (() => {
|
203
|
-
s && _t(null);
|
204
|
-
const o = {
|
205
|
-
version: Fa,
|
206
|
-
locale: m.value,
|
207
|
-
fallbackLocale: g.value,
|
208
|
-
messages: v.value,
|
209
|
-
modifiers: ne,
|
210
|
-
pluralRules: $,
|
211
|
-
missing: C === null ? void 0 : C,
|
212
|
-
missingWarn: F,
|
213
|
-
fallbackWarn: k,
|
214
|
-
fallbackFormat: y,
|
215
|
-
unresolving: !0,
|
216
|
-
postTranslation: G === null ? void 0 : G,
|
217
|
-
warnHtmlMessage: z,
|
218
|
-
escapeParameter: X,
|
219
|
-
messageResolver: e.messageResolver,
|
220
|
-
messageCompiler: e.messageCompiler,
|
221
|
-
__meta: { framework: "vue" }
|
222
|
-
};
|
223
|
-
o.datetimeFormats = E.value, o.numberFormats = d.value, o.__datetimeFormatters = p(f) ? f.__datetimeFormatters : void 0, o.__numberFormatters = p(f) ? f.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (o.__v_emitter = p(f) ? f.__v_emitter : void 0);
|
224
|
-
const c = ua(o);
|
225
|
-
return s && _t(c), c;
|
226
|
-
})(), re(f, m.value, g.value);
|
227
|
-
function de() {
|
228
|
-
return [
|
229
|
-
m.value,
|
230
|
-
g.value,
|
231
|
-
v.value,
|
232
|
-
E.value,
|
233
|
-
d.value
|
234
|
-
];
|
235
|
-
}
|
236
|
-
const be = x({
|
237
|
-
get: () => m.value,
|
238
|
-
set: (o) => {
|
239
|
-
m.value = o, f.locale = m.value;
|
240
|
-
}
|
241
|
-
}), Ne = x({
|
242
|
-
get: () => g.value,
|
243
|
-
set: (o) => {
|
244
|
-
g.value = o, f.fallbackLocale = g.value, re(f, m.value, o);
|
245
|
-
}
|
246
|
-
}), Ie = x(() => v.value), Te = /* @__PURE__ */ x(() => E.value), J = /* @__PURE__ */ x(() => d.value);
|
247
|
-
function Oe() {
|
248
|
-
return B(G) ? G : null;
|
249
|
-
}
|
250
|
-
function Le(o) {
|
251
|
-
G = o, f.postTranslation = o;
|
252
|
-
}
|
253
|
-
function pe() {
|
254
|
-
return W;
|
255
|
-
}
|
256
|
-
function Re(o) {
|
257
|
-
o !== null && (C = vt(o)), W = o, f.missing = C;
|
258
|
-
}
|
259
|
-
function Pe(o, c) {
|
260
|
-
return o !== "translate" || !c.resolvedMessage;
|
261
|
-
}
|
262
|
-
const Y = (o, c, I, R, K, me) => {
|
263
|
-
de();
|
264
|
-
let Z;
|
265
|
-
try {
|
266
|
-
(process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ma(/* @__PURE__ */ Aa()), s || (f.fallbackContext = a ? fa() : void 0), Z = o(f);
|
267
|
-
} finally {
|
268
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (f.fallbackContext = void 0);
|
269
|
-
}
|
270
|
-
if (I !== "translate exists" && // for not `te` (e.g `t`)
|
271
|
-
ae(Z) && Z === Ea || I === "translate exists" && !Z) {
|
272
|
-
const [q, zt] = c();
|
273
|
-
if (process.env.NODE_ENV !== "production" && a && N(q) && Pe(I, zt) && (U && (ga(k, q) || va(F, q)) && S(M(O.FALLBACK_TO_ROOT, {
|
274
|
-
key: q,
|
275
|
-
type: I
|
276
|
-
})), process.env.NODE_ENV !== "production")) {
|
277
|
-
const { __v_emitter: et } = f;
|
278
|
-
et && U && et.emit("fallback", {
|
279
|
-
type: I,
|
280
|
-
key: q,
|
281
|
-
to: "global",
|
282
|
-
groupId: `${I}:${q}`
|
283
|
-
});
|
284
|
-
}
|
285
|
-
return a && U ? R(a) : K(q);
|
286
|
-
} else {
|
287
|
-
if (me(Z))
|
288
|
-
return Z;
|
289
|
-
throw h(b.UNEXPECTED_RETURN_TYPE);
|
290
|
-
}
|
291
|
-
};
|
292
|
-
function _e(...o) {
|
293
|
-
return Y((c) => Reflect.apply(rt, null, [c, ...o]), () => nt(...o), "translate", (c) => Reflect.apply(c.t, c, [...o]), (c) => c, (c) => N(c));
|
294
|
-
}
|
295
|
-
function Fe(...o) {
|
296
|
-
const [c, I, R] = o;
|
297
|
-
if (R && !V(R))
|
298
|
-
throw h(b.INVALID_ARGUMENT);
|
299
|
-
return _e(c, I, w({ resolvedMessage: !0 }, R || {}));
|
300
|
-
}
|
301
|
-
function he(...o) {
|
302
|
-
return Y((c) => Reflect.apply(it, null, [c, ...o]), () => ot(...o), "datetime format", (c) => Reflect.apply(c.d, c, [...o]), () => st, (c) => N(c));
|
303
|
-
}
|
304
|
-
function ke(...o) {
|
305
|
-
return Y((c) => Reflect.apply(ut, null, [c, ...o]), () => ct(...o), "number format", (c) => Reflect.apply(c.n, c, [...o]), () => st, (c) => N(c));
|
306
|
-
}
|
307
|
-
function Ce(o) {
|
308
|
-
return o.map((c) => N(c) || ae(c) || L(c) ? mt(String(c)) : c);
|
309
|
-
}
|
310
|
-
const De = {
|
311
|
-
normalize: Ce,
|
312
|
-
interpolate: (o) => o,
|
313
|
-
type: "vnode"
|
314
|
-
};
|
315
|
-
function Ae(...o) {
|
316
|
-
return Y(
|
317
|
-
(c) => {
|
318
|
-
let I;
|
319
|
-
const R = c;
|
320
|
-
try {
|
321
|
-
R.processor = De, I = Reflect.apply(rt, null, [R, ...o]);
|
322
|
-
} finally {
|
323
|
-
R.processor = null;
|
324
|
-
}
|
325
|
-
return I;
|
326
|
-
},
|
327
|
-
() => nt(...o),
|
328
|
-
"translate",
|
329
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
330
|
-
(c) => c[we](...o),
|
331
|
-
(c) => [mt(c)],
|
332
|
-
(c) => D(c)
|
333
|
-
);
|
334
|
-
}
|
335
|
-
function Me(...o) {
|
336
|
-
return Y(
|
337
|
-
(c) => Reflect.apply(ut, null, [c, ...o]),
|
338
|
-
() => ct(...o),
|
339
|
-
"number format",
|
340
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
341
|
-
(c) => c[xe](...o),
|
342
|
-
Et,
|
343
|
-
(c) => N(c) || D(c)
|
344
|
-
);
|
345
|
-
}
|
346
|
-
function Se(...o) {
|
347
|
-
return Y(
|
348
|
-
(c) => Reflect.apply(it, null, [c, ...o]),
|
349
|
-
() => ot(...o),
|
350
|
-
"datetime format",
|
351
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
352
|
-
(c) => c[$e](...o),
|
353
|
-
Et,
|
354
|
-
(c) => N(c) || D(c)
|
355
|
-
);
|
356
|
-
}
|
357
|
-
function Ve(o) {
|
358
|
-
$ = o, f.pluralRules = $;
|
359
|
-
}
|
360
|
-
function u(o, c) {
|
361
|
-
return Y(() => {
|
362
|
-
if (!o)
|
363
|
-
return !1;
|
364
|
-
const I = N(c) ? c : m.value, R = Ze(I), K = f.messageResolver(R, o);
|
365
|
-
return i ? K != null : Pt(K) || da(K) || N(K);
|
366
|
-
}, () => [o], "translate exists", (I) => Reflect.apply(I.te, I, [o, c]), Da, (I) => L(I));
|
367
|
-
}
|
368
|
-
function T(o) {
|
369
|
-
let c = null;
|
370
|
-
const I = pt(f, g.value, m.value);
|
371
|
-
for (let R = 0; R < I.length; R++) {
|
372
|
-
const K = v.value[I[R]] || {}, me = f.messageResolver(K, o);
|
373
|
-
if (me != null) {
|
374
|
-
c = me;
|
375
|
-
break;
|
376
|
-
}
|
377
|
-
}
|
378
|
-
return c;
|
379
|
-
}
|
380
|
-
function xt(o) {
|
381
|
-
const c = T(o);
|
382
|
-
return c ?? (a ? a.tm(o) || {} : {});
|
383
|
-
}
|
384
|
-
function Ze(o) {
|
385
|
-
return v.value[o] || {};
|
386
|
-
}
|
387
|
-
function Ht(o, c) {
|
388
|
-
if (t) {
|
389
|
-
const I = { [o]: c };
|
390
|
-
for (const R in I)
|
391
|
-
Ee(I, R) && ie(I[R]);
|
392
|
-
c = I[o];
|
393
|
-
}
|
394
|
-
v.value[o] = c, f.messages = v.value;
|
395
|
-
}
|
396
|
-
function Gt(o, c) {
|
397
|
-
v.value[o] = v.value[o] || {};
|
398
|
-
const I = { [o]: c };
|
399
|
-
if (t)
|
400
|
-
for (const R in I)
|
401
|
-
Ee(I, R) && ie(I[R]);
|
402
|
-
c = I[o], fe(c, v.value[o]), f.messages = v.value;
|
403
|
-
}
|
404
|
-
function Yt(o) {
|
405
|
-
return E.value[o] || {};
|
406
|
-
}
|
407
|
-
function jt(o, c) {
|
408
|
-
E.value[o] = c, f.datetimeFormats = E.value, at(f, o, c);
|
409
|
-
}
|
410
|
-
function Bt(o, c) {
|
411
|
-
E.value[o] = w(E.value[o] || {}, c), f.datetimeFormats = E.value, at(f, o, c);
|
412
|
-
}
|
413
|
-
function Xt(o) {
|
414
|
-
return d.value[o] || {};
|
415
|
-
}
|
416
|
-
function Jt(o, c) {
|
417
|
-
d.value[o] = c, f.numberFormats = d.value, lt(f, o, c);
|
418
|
-
}
|
419
|
-
function Kt(o, c) {
|
420
|
-
d.value[o] = w(d.value[o] || {}, c), f.numberFormats = d.value, lt(f, o, c);
|
421
|
-
}
|
422
|
-
gt++, a && ge && (We(a.locale, (o) => {
|
423
|
-
_ && (m.value = o, f.locale = o, re(f, m.value, g.value));
|
424
|
-
}), We(a.fallbackLocale, (o) => {
|
425
|
-
_ && (g.value = o, f.fallbackLocale = o, re(f, m.value, g.value));
|
426
|
-
}));
|
427
|
-
const P = {
|
428
|
-
id: gt,
|
429
|
-
locale: be,
|
430
|
-
fallbackLocale: Ne,
|
431
|
-
get inheritLocale() {
|
432
|
-
return _;
|
433
|
-
},
|
434
|
-
set inheritLocale(o) {
|
435
|
-
_ = o, o && a && (m.value = a.locale.value, g.value = a.fallbackLocale.value, re(f, m.value, g.value));
|
436
|
-
},
|
437
|
-
get availableLocales() {
|
438
|
-
return Object.keys(v.value).sort();
|
439
|
-
},
|
440
|
-
messages: Ie,
|
441
|
-
get modifiers() {
|
442
|
-
return ne;
|
443
|
-
},
|
444
|
-
get pluralRules() {
|
445
|
-
return $ || {};
|
446
|
-
},
|
447
|
-
get isGlobal() {
|
448
|
-
return s;
|
449
|
-
},
|
450
|
-
get missingWarn() {
|
451
|
-
return F;
|
452
|
-
},
|
453
|
-
set missingWarn(o) {
|
454
|
-
F = o, f.missingWarn = F;
|
455
|
-
},
|
456
|
-
get fallbackWarn() {
|
457
|
-
return k;
|
458
|
-
},
|
459
|
-
set fallbackWarn(o) {
|
460
|
-
k = o, f.fallbackWarn = k;
|
461
|
-
},
|
462
|
-
get fallbackRoot() {
|
463
|
-
return U;
|
464
|
-
},
|
465
|
-
set fallbackRoot(o) {
|
466
|
-
U = o;
|
467
|
-
},
|
468
|
-
get fallbackFormat() {
|
469
|
-
return y;
|
470
|
-
},
|
471
|
-
set fallbackFormat(o) {
|
472
|
-
y = o, f.fallbackFormat = y;
|
473
|
-
},
|
474
|
-
get warnHtmlMessage() {
|
475
|
-
return z;
|
476
|
-
},
|
477
|
-
set warnHtmlMessage(o) {
|
478
|
-
z = o, f.warnHtmlMessage = o;
|
479
|
-
},
|
480
|
-
get escapeParameter() {
|
481
|
-
return X;
|
482
|
-
},
|
483
|
-
set escapeParameter(o) {
|
484
|
-
X = o, f.escapeParameter = o;
|
485
|
-
},
|
486
|
-
t: _e,
|
487
|
-
getLocaleMessage: Ze,
|
488
|
-
setLocaleMessage: Ht,
|
489
|
-
mergeLocaleMessage: Gt,
|
490
|
-
getPostTranslationHandler: Oe,
|
491
|
-
setPostTranslationHandler: Le,
|
492
|
-
getMissingHandler: pe,
|
493
|
-
setMissingHandler: Re,
|
494
|
-
[At]: Ve
|
495
|
-
};
|
496
|
-
return P.datetimeFormats = Te, P.numberFormats = J, P.rt = Fe, P.te = u, P.tm = xt, P.d = he, P.n = ke, P.getDateTimeFormat = Yt, P.setDateTimeFormat = jt, P.mergeDateTimeFormat = Bt, P.getNumberFormat = Xt, P.setNumberFormat = Jt, P.mergeNumberFormat = Kt, P[Mt] = n, P[we] = Ae, P[$e] = Se, P[xe] = Me, process.env.NODE_ENV !== "production" && (P[Q] = (o) => {
|
497
|
-
f.__v_emitter = o;
|
498
|
-
}, P[oe] = () => {
|
499
|
-
f.__v_emitter = void 0;
|
500
|
-
}), P;
|
501
|
-
}
|
502
|
-
function Ma(e) {
|
503
|
-
const l = N(e.locale) ? e.locale : je, a = N(e.fallbackLocale) || D(e.fallbackLocale) || p(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, n = B(e.missing) ? e.missing : void 0, s = L(e.silentTranslationWarn) || le(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, t = L(e.silentFallbackWarn) || le(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = L(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, _ = p(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, g = B(e.postTranslation) ? e.postTranslation : void 0, v = N(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, E = !!e.escapeParameterHtml, d = L(e.sync) ? e.sync : !0;
|
504
|
-
process.env.NODE_ENV !== "production" && e.formatter && S(M(O.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && S(M(O.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
505
|
-
let F = e.messages;
|
506
|
-
if (p(e.sharedMessages)) {
|
507
|
-
const X = e.sharedMessages;
|
508
|
-
F = Object.keys(X).reduce(($, f) => {
|
509
|
-
const ue = $[f] || ($[f] = {});
|
510
|
-
return w(ue, X[f]), $;
|
511
|
-
}, F || {});
|
512
|
-
}
|
513
|
-
const { __i18n: k, __root: U, __injectWithOption: y } = e, W = e.datetimeFormats, C = e.numberFormats, G = e.flatJson, z = e.translateExistCompatible;
|
514
|
-
return {
|
515
|
-
locale: l,
|
516
|
-
fallbackLocale: a,
|
517
|
-
messages: F,
|
518
|
-
flatJson: G,
|
519
|
-
datetimeFormats: W,
|
520
|
-
numberFormats: C,
|
521
|
-
missing: n,
|
522
|
-
missingWarn: s,
|
523
|
-
fallbackWarn: t,
|
524
|
-
fallbackRoot: r,
|
525
|
-
fallbackFormat: i,
|
526
|
-
modifiers: _,
|
527
|
-
pluralRules: m,
|
528
|
-
postTranslation: g,
|
529
|
-
warnHtmlMessage: v,
|
530
|
-
escapeParameter: E,
|
531
|
-
messageResolver: e.messageResolver,
|
532
|
-
inheritLocale: d,
|
533
|
-
translateExistCompatible: z,
|
534
|
-
__i18n: k,
|
535
|
-
__root: U,
|
536
|
-
__injectWithOption: y
|
537
|
-
};
|
538
|
-
}
|
539
|
-
function Ge(e = {}, l) {
|
540
|
-
{
|
541
|
-
const a = Je(Ma(e)), { __extender: n } = e, s = {
|
542
|
-
// id
|
543
|
-
id: a.id,
|
544
|
-
// locale
|
545
|
-
get locale() {
|
546
|
-
return a.locale.value;
|
547
|
-
},
|
548
|
-
set locale(t) {
|
549
|
-
a.locale.value = t;
|
550
|
-
},
|
551
|
-
// fallbackLocale
|
552
|
-
get fallbackLocale() {
|
553
|
-
return a.fallbackLocale.value;
|
554
|
-
},
|
555
|
-
set fallbackLocale(t) {
|
556
|
-
a.fallbackLocale.value = t;
|
557
|
-
},
|
558
|
-
// messages
|
559
|
-
get messages() {
|
560
|
-
return a.messages.value;
|
561
|
-
},
|
562
|
-
// datetimeFormats
|
563
|
-
get datetimeFormats() {
|
564
|
-
return a.datetimeFormats.value;
|
565
|
-
},
|
566
|
-
// numberFormats
|
567
|
-
get numberFormats() {
|
568
|
-
return a.numberFormats.value;
|
569
|
-
},
|
570
|
-
// availableLocales
|
571
|
-
get availableLocales() {
|
572
|
-
return a.availableLocales;
|
573
|
-
},
|
574
|
-
// formatter
|
575
|
-
get formatter() {
|
576
|
-
return process.env.NODE_ENV !== "production" && S(M(O.NOT_SUPPORTED_FORMATTER)), {
|
577
|
-
interpolate() {
|
578
|
-
return [];
|
579
|
-
}
|
580
|
-
};
|
581
|
-
},
|
582
|
-
set formatter(t) {
|
583
|
-
process.env.NODE_ENV !== "production" && S(M(O.NOT_SUPPORTED_FORMATTER));
|
584
|
-
},
|
585
|
-
// missing
|
586
|
-
get missing() {
|
587
|
-
return a.getMissingHandler();
|
588
|
-
},
|
589
|
-
set missing(t) {
|
590
|
-
a.setMissingHandler(t);
|
591
|
-
},
|
592
|
-
// silentTranslationWarn
|
593
|
-
get silentTranslationWarn() {
|
594
|
-
return L(a.missingWarn) ? !a.missingWarn : a.missingWarn;
|
595
|
-
},
|
596
|
-
set silentTranslationWarn(t) {
|
597
|
-
a.missingWarn = L(t) ? !t : t;
|
598
|
-
},
|
599
|
-
// silentFallbackWarn
|
600
|
-
get silentFallbackWarn() {
|
601
|
-
return L(a.fallbackWarn) ? !a.fallbackWarn : a.fallbackWarn;
|
602
|
-
},
|
603
|
-
set silentFallbackWarn(t) {
|
604
|
-
a.fallbackWarn = L(t) ? !t : t;
|
605
|
-
},
|
606
|
-
// modifiers
|
607
|
-
get modifiers() {
|
608
|
-
return a.modifiers;
|
609
|
-
},
|
610
|
-
// formatFallbackMessages
|
611
|
-
get formatFallbackMessages() {
|
612
|
-
return a.fallbackFormat;
|
613
|
-
},
|
614
|
-
set formatFallbackMessages(t) {
|
615
|
-
a.fallbackFormat = t;
|
616
|
-
},
|
617
|
-
// postTranslation
|
618
|
-
get postTranslation() {
|
619
|
-
return a.getPostTranslationHandler();
|
620
|
-
},
|
621
|
-
set postTranslation(t) {
|
622
|
-
a.setPostTranslationHandler(t);
|
623
|
-
},
|
624
|
-
// sync
|
625
|
-
get sync() {
|
626
|
-
return a.inheritLocale;
|
627
|
-
},
|
628
|
-
set sync(t) {
|
629
|
-
a.inheritLocale = t;
|
630
|
-
},
|
631
|
-
// warnInHtmlMessage
|
632
|
-
get warnHtmlInMessage() {
|
633
|
-
return a.warnHtmlMessage ? "warn" : "off";
|
634
|
-
},
|
635
|
-
set warnHtmlInMessage(t) {
|
636
|
-
a.warnHtmlMessage = t !== "off";
|
637
|
-
},
|
638
|
-
// escapeParameterHtml
|
639
|
-
get escapeParameterHtml() {
|
640
|
-
return a.escapeParameter;
|
641
|
-
},
|
642
|
-
set escapeParameterHtml(t) {
|
643
|
-
a.escapeParameter = t;
|
644
|
-
},
|
645
|
-
// preserveDirectiveContent
|
646
|
-
get preserveDirectiveContent() {
|
647
|
-
return process.env.NODE_ENV !== "production" && S(M(O.NOT_SUPPORTED_PRESERVE_DIRECTIVE)), !0;
|
648
|
-
},
|
649
|
-
set preserveDirectiveContent(t) {
|
650
|
-
process.env.NODE_ENV !== "production" && S(M(O.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
651
|
-
},
|
652
|
-
// pluralizationRules
|
653
|
-
get pluralizationRules() {
|
654
|
-
return a.pluralRules || {};
|
655
|
-
},
|
656
|
-
// for internal
|
657
|
-
__composer: a,
|
658
|
-
// t
|
659
|
-
t(...t) {
|
660
|
-
const [r, i, _] = t, m = {};
|
661
|
-
let g = null, v = null;
|
662
|
-
if (!N(r))
|
663
|
-
throw h(b.INVALID_ARGUMENT);
|
664
|
-
const E = r;
|
665
|
-
return N(i) ? m.locale = i : D(i) ? g = i : p(i) && (v = i), D(_) ? g = _ : p(_) && (v = _), Reflect.apply(a.t, a, [
|
666
|
-
E,
|
667
|
-
g || v || {},
|
668
|
-
m
|
669
|
-
]);
|
670
|
-
},
|
671
|
-
rt(...t) {
|
672
|
-
return Reflect.apply(a.rt, a, [...t]);
|
673
|
-
},
|
674
|
-
// tc
|
675
|
-
tc(...t) {
|
676
|
-
const [r, i, _] = t, m = { plural: 1 };
|
677
|
-
let g = null, v = null;
|
678
|
-
if (!N(r))
|
679
|
-
throw h(b.INVALID_ARGUMENT);
|
680
|
-
const E = r;
|
681
|
-
return N(i) ? m.locale = i : ae(i) ? m.plural = i : D(i) ? g = i : p(i) && (v = i), N(_) ? m.locale = _ : D(_) ? g = _ : p(_) && (v = _), Reflect.apply(a.t, a, [
|
682
|
-
E,
|
683
|
-
g || v || {},
|
684
|
-
m
|
685
|
-
]);
|
686
|
-
},
|
687
|
-
// te
|
688
|
-
te(t, r) {
|
689
|
-
return a.te(t, r);
|
690
|
-
},
|
691
|
-
// tm
|
692
|
-
tm(t) {
|
693
|
-
return a.tm(t);
|
694
|
-
},
|
695
|
-
// getLocaleMessage
|
696
|
-
getLocaleMessage(t) {
|
697
|
-
return a.getLocaleMessage(t);
|
698
|
-
},
|
699
|
-
// setLocaleMessage
|
700
|
-
setLocaleMessage(t, r) {
|
701
|
-
a.setLocaleMessage(t, r);
|
702
|
-
},
|
703
|
-
// mergeLocaleMessage
|
704
|
-
mergeLocaleMessage(t, r) {
|
705
|
-
a.mergeLocaleMessage(t, r);
|
706
|
-
},
|
707
|
-
// d
|
708
|
-
d(...t) {
|
709
|
-
return Reflect.apply(a.d, a, [...t]);
|
710
|
-
},
|
711
|
-
// getDateTimeFormat
|
712
|
-
getDateTimeFormat(t) {
|
713
|
-
return a.getDateTimeFormat(t);
|
714
|
-
},
|
715
|
-
// setDateTimeFormat
|
716
|
-
setDateTimeFormat(t, r) {
|
717
|
-
a.setDateTimeFormat(t, r);
|
718
|
-
},
|
719
|
-
// mergeDateTimeFormat
|
720
|
-
mergeDateTimeFormat(t, r) {
|
721
|
-
a.mergeDateTimeFormat(t, r);
|
722
|
-
},
|
723
|
-
// n
|
724
|
-
n(...t) {
|
725
|
-
return Reflect.apply(a.n, a, [...t]);
|
726
|
-
},
|
727
|
-
// getNumberFormat
|
728
|
-
getNumberFormat(t) {
|
729
|
-
return a.getNumberFormat(t);
|
730
|
-
},
|
731
|
-
// setNumberFormat
|
732
|
-
setNumberFormat(t, r) {
|
733
|
-
a.setNumberFormat(t, r);
|
734
|
-
},
|
735
|
-
// mergeNumberFormat
|
736
|
-
mergeNumberFormat(t, r) {
|
737
|
-
a.mergeNumberFormat(t, r);
|
738
|
-
},
|
739
|
-
// getChoiceIndex
|
740
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
741
|
-
getChoiceIndex(t, r) {
|
742
|
-
return process.env.NODE_ENV !== "production" && S(M(O.NOT_SUPPORTED_GET_CHOICE_INDEX)), -1;
|
743
|
-
}
|
744
|
-
};
|
745
|
-
return s.__extender = n, process.env.NODE_ENV !== "production" && (s.__enableEmitter = (t) => {
|
746
|
-
const r = a;
|
747
|
-
r[Q] && r[Q](t);
|
748
|
-
}, s.__disableEmitter = () => {
|
749
|
-
const t = a;
|
750
|
-
t[oe] && t[oe]();
|
751
|
-
}), s;
|
752
|
-
}
|
753
|
-
}
|
754
|
-
const Ke = {
|
755
|
-
tag: {
|
756
|
-
type: [String, Object]
|
757
|
-
},
|
758
|
-
locale: {
|
759
|
-
type: String
|
760
|
-
},
|
761
|
-
scope: {
|
762
|
-
type: String,
|
763
|
-
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
764
|
-
validator: (e) => e === "parent" || e === "global",
|
765
|
-
default: "parent"
|
766
|
-
/* ComponentI18nScope */
|
767
|
-
},
|
768
|
-
i18n: {
|
769
|
-
type: Object
|
770
|
-
}
|
771
|
-
};
|
772
|
-
function Sa({ slots: e }, l) {
|
773
|
-
return l.length === 1 && l[0] === "default" ? (e.default ? e.default() : []).reduce((n, s) => [
|
774
|
-
...n,
|
775
|
-
// prettier-ignore
|
776
|
-
...s.type === kt ? s.children : [s]
|
777
|
-
], []) : l.reduce((a, n) => {
|
778
|
-
const s = e[n];
|
779
|
-
return s && (a[n] = s()), a;
|
780
|
-
}, {});
|
781
|
-
}
|
782
|
-
function yt(e) {
|
783
|
-
return kt;
|
784
|
-
}
|
785
|
-
const Va = /* @__PURE__ */ Xe({
|
786
|
-
/* eslint-disable */
|
787
|
-
name: "i18n-t",
|
788
|
-
props: w({
|
789
|
-
keypath: {
|
790
|
-
type: String,
|
791
|
-
required: !0
|
792
|
-
},
|
793
|
-
plural: {
|
794
|
-
type: [Number, String],
|
795
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
796
|
-
validator: (e) => ae(e) || !isNaN(e)
|
797
|
-
}
|
798
|
-
}, Ke),
|
799
|
-
/* eslint-enable */
|
800
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
801
|
-
setup(e, l) {
|
802
|
-
const { slots: a, attrs: n } = l, s = e.i18n || qe({
|
803
|
-
useScope: e.scope,
|
804
|
-
__useComponent: !0
|
805
|
-
});
|
806
|
-
return () => {
|
807
|
-
const t = Object.keys(a).filter((v) => v !== "_"), r = {};
|
808
|
-
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = N(e.plural) ? +e.plural : e.plural);
|
809
|
-
const i = Sa(l, t), _ = s[we](e.keypath, i, r), m = w({}, n), g = N(e.tag) || V(e.tag) ? e.tag : yt();
|
810
|
-
return Ft(g, m, _);
|
811
|
-
};
|
812
|
-
}
|
813
|
-
}), ye = Va;
|
814
|
-
function ya(e) {
|
815
|
-
return D(e) && !N(e[0]);
|
816
|
-
}
|
817
|
-
function Ut(e, l, a, n) {
|
818
|
-
const { slots: s, attrs: t } = l;
|
819
|
-
return () => {
|
820
|
-
const r = { part: !0 };
|
821
|
-
let i = {};
|
822
|
-
e.locale && (r.locale = e.locale), N(e.format) ? r.key = e.format : V(e.format) && (N(e.format.key) && (r.key = e.format.key), i = Object.keys(e.format).reduce((E, d) => a.includes(d) ? w({}, E, { [d]: e.format[d] }) : E, {}));
|
823
|
-
const _ = n(e.value, r, i);
|
824
|
-
let m = [r.key];
|
825
|
-
D(_) ? m = _.map((E, d) => {
|
826
|
-
const F = s[E.type], k = F ? F({ [E.type]: E.value, index: d, parts: _ }) : [E.value];
|
827
|
-
return ya(k) && (k[0].key = `${E.type}-${d}`), k;
|
828
|
-
}) : N(_) && (m = [_]);
|
829
|
-
const g = w({}, t), v = N(e.tag) || V(e.tag) ? e.tag : yt();
|
830
|
-
return Ft(v, g, m);
|
831
|
-
};
|
832
|
-
}
|
833
|
-
const Ua = /* @__PURE__ */ Xe({
|
834
|
-
/* eslint-disable */
|
835
|
-
name: "i18n-n",
|
836
|
-
props: w({
|
837
|
-
value: {
|
838
|
-
type: Number,
|
839
|
-
required: !0
|
840
|
-
},
|
841
|
-
format: {
|
842
|
-
type: [String, Object]
|
843
|
-
}
|
844
|
-
}, Ke),
|
845
|
-
/* eslint-enable */
|
846
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
847
|
-
setup(e, l) {
|
848
|
-
const a = e.i18n || qe({
|
849
|
-
useScope: e.scope,
|
850
|
-
__useComponent: !0
|
851
|
-
});
|
852
|
-
return Ut(e, l, na, (...n) => (
|
853
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
854
|
-
a[xe](...n)
|
855
|
-
));
|
856
|
-
}
|
857
|
-
}), dt = Ua, Wa = /* @__PURE__ */ Xe({
|
858
|
-
/* eslint-disable */
|
859
|
-
name: "i18n-d",
|
860
|
-
props: w({
|
861
|
-
value: {
|
862
|
-
type: [Number, Date],
|
863
|
-
required: !0
|
864
|
-
},
|
865
|
-
format: {
|
866
|
-
type: [String, Object]
|
867
|
-
}
|
868
|
-
}, Ke),
|
869
|
-
/* eslint-enable */
|
870
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
871
|
-
setup(e, l) {
|
872
|
-
const a = e.i18n || qe({
|
873
|
-
useScope: e.scope,
|
874
|
-
__useComponent: !0
|
875
|
-
});
|
876
|
-
return Ut(e, l, ra, (...n) => (
|
877
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
878
|
-
a[$e](...n)
|
879
|
-
));
|
880
|
-
}
|
881
|
-
}), bt = Wa;
|
882
|
-
function wa(e, l) {
|
883
|
-
const a = e;
|
884
|
-
if (e.mode === "composition")
|
885
|
-
return a.__getInstance(l) || e.global;
|
886
|
-
{
|
887
|
-
const n = a.__getInstance(l);
|
888
|
-
return n != null ? n.__composer : e.global.__composer;
|
889
|
-
}
|
890
|
-
}
|
891
|
-
function $a(e) {
|
892
|
-
const l = (r) => {
|
893
|
-
const { instance: i, modifiers: _, value: m } = r;
|
894
|
-
if (!i || !i.$)
|
895
|
-
throw h(b.UNEXPECTED_ERROR);
|
896
|
-
const g = wa(e, i.$);
|
897
|
-
process.env.NODE_ENV !== "production" && _.preserve && S(M(O.NOT_SUPPORTED_PRESERVE));
|
898
|
-
const v = Nt(m);
|
899
|
-
return [
|
900
|
-
Reflect.apply(g.t, g, [...It(v)]),
|
901
|
-
g
|
902
|
-
];
|
903
|
-
};
|
904
|
-
return {
|
905
|
-
created: (r, i) => {
|
906
|
-
const [_, m] = l(i);
|
907
|
-
ge && e.global === m && (r.__i18nWatcher = We(m.locale, () => {
|
908
|
-
i.instance && i.instance.$forceUpdate();
|
909
|
-
})), r.__composer = m, r.textContent = _;
|
910
|
-
},
|
911
|
-
unmounted: (r) => {
|
912
|
-
ge && r.__i18nWatcher && (r.__i18nWatcher(), r.__i18nWatcher = void 0, delete r.__i18nWatcher), r.__composer && (r.__composer = void 0, delete r.__composer);
|
913
|
-
},
|
914
|
-
beforeUpdate: (r, { value: i }) => {
|
915
|
-
if (r.__composer) {
|
916
|
-
const _ = r.__composer, m = Nt(i);
|
917
|
-
r.textContent = Reflect.apply(_.t, _, [
|
918
|
-
...It(m)
|
919
|
-
]);
|
920
|
-
}
|
921
|
-
},
|
922
|
-
getSSRProps: (r) => {
|
923
|
-
const [i] = l(r);
|
924
|
-
return { textContent: i };
|
925
|
-
}
|
926
|
-
};
|
927
|
-
}
|
928
|
-
function Nt(e) {
|
929
|
-
if (N(e))
|
930
|
-
return { path: e };
|
931
|
-
if (p(e)) {
|
932
|
-
if (!("path" in e))
|
933
|
-
throw h(b.REQUIRED_VALUE, "path");
|
934
|
-
return e;
|
935
|
-
} else
|
936
|
-
throw h(b.INVALID_VALUE);
|
937
|
-
}
|
938
|
-
function It(e) {
|
939
|
-
const { path: l, locale: a, args: n, choice: s, plural: t } = e, r = {}, i = n || {};
|
940
|
-
return N(a) && (r.locale = a), ae(s) && (r.plural = s), ae(t) && (r.plural = t), [l, i, r];
|
941
|
-
}
|
942
|
-
function xa(e, l, ...a) {
|
943
|
-
const n = p(a[0]) ? a[0] : {}, s = !!n.useI18nComponentName, t = L(n.globalInstall) ? n.globalInstall : !0;
|
944
|
-
process.env.NODE_ENV !== "production" && t && s && S(M(O.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
945
|
-
name: ye.name
|
946
|
-
})), t && ([s ? "i18n" : ye.name, "I18nT"].forEach((r) => e.component(r, ye)), [dt.name, "I18nN"].forEach((r) => e.component(r, dt)), [bt.name, "I18nD"].forEach((r) => e.component(r, bt))), e.directive("t", $a(l));
|
947
|
-
}
|
948
|
-
const Ue = {
|
949
|
-
"vue-devtools-plugin-vue-i18n": "Vue I18n devtools",
|
950
|
-
"vue-i18n-resource-inspector": "I18n Resources",
|
951
|
-
"vue-i18n-timeline": "Vue I18n"
|
952
|
-
}, Ha = {
|
953
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
954
|
-
}, Ga = {
|
955
|
-
"vue-i18n-timeline": 16764185
|
956
|
-
}, Wt = "vue-i18n: composer properties";
|
957
|
-
let Ye;
|
958
|
-
async function Ya(e, l) {
|
959
|
-
return new Promise((a, n) => {
|
960
|
-
try {
|
961
|
-
Pa({
|
962
|
-
id: "vue-devtools-plugin-vue-i18n",
|
963
|
-
label: Ue[
|
964
|
-
"vue-devtools-plugin-vue-i18n"
|
965
|
-
/* VueDevToolsIDs.PLUGIN */
|
966
|
-
],
|
967
|
-
packageName: "vue-i18n",
|
968
|
-
homepage: "https://vue-i18n.intlify.dev",
|
969
|
-
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
970
|
-
componentStateTypes: [Wt],
|
971
|
-
app: e
|
972
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
973
|
-
}, (s) => {
|
974
|
-
Ye = s, s.on.visitComponentTree(({ componentInstance: r, treeNode: i }) => {
|
975
|
-
ja(r, i, l);
|
976
|
-
}), s.on.inspectComponent(({ componentInstance: r, instanceData: i }) => {
|
977
|
-
r.vnode.el && r.vnode.el.__VUE_I18N__ && i && (l.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== l.global.__composer && Tt(i, r.vnode.el.__VUE_I18N__) : Tt(i, r.vnode.el.__VUE_I18N__));
|
978
|
-
}), s.addInspector({
|
979
|
-
id: "vue-i18n-resource-inspector",
|
980
|
-
label: Ue[
|
981
|
-
"vue-i18n-resource-inspector"
|
982
|
-
/* VueDevToolsIDs.CUSTOM_INSPECTOR */
|
983
|
-
],
|
984
|
-
icon: "language",
|
985
|
-
treeFilterPlaceholder: Ha[
|
986
|
-
"vue-i18n-resource-inspector"
|
987
|
-
/* VueDevToolsIDs.CUSTOM_INSPECTOR */
|
988
|
-
]
|
989
|
-
}), s.on.getInspectorTree((r) => {
|
990
|
-
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && za(r, l);
|
991
|
-
});
|
992
|
-
const t = /* @__PURE__ */ new Map();
|
993
|
-
s.on.getInspectorState(async (r) => {
|
994
|
-
if (r.app === e && r.inspectorId === "vue-i18n-resource-inspector")
|
995
|
-
if (s.unhighlightElement(), Qa(r, l), r.nodeId === "global") {
|
996
|
-
if (!t.has(r.app)) {
|
997
|
-
const [i] = await s.getComponentInstances(r.app);
|
998
|
-
t.set(r.app, i);
|
999
|
-
}
|
1000
|
-
s.highlightElement(t.get(r.app));
|
1001
|
-
} else {
|
1002
|
-
const i = qa(r.nodeId, l);
|
1003
|
-
i && s.highlightElement(i);
|
1004
|
-
}
|
1005
|
-
}), s.on.editInspectorState((r) => {
|
1006
|
-
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && el(r, l);
|
1007
|
-
}), s.addTimelineLayer({
|
1008
|
-
id: "vue-i18n-timeline",
|
1009
|
-
label: Ue[
|
1010
|
-
"vue-i18n-timeline"
|
1011
|
-
/* VueDevToolsIDs.TIMELINE */
|
1012
|
-
],
|
1013
|
-
color: Ga[
|
1014
|
-
"vue-i18n-timeline"
|
1015
|
-
/* VueDevToolsIDs.TIMELINE */
|
1016
|
-
]
|
1017
|
-
}), a(!0);
|
1018
|
-
});
|
1019
|
-
} catch (s) {
|
1020
|
-
console.error(s), n(!1);
|
1021
|
-
}
|
1022
|
-
});
|
1023
|
-
}
|
1024
|
-
function wt(e) {
|
1025
|
-
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
1026
|
-
}
|
1027
|
-
function ja(e, l, a) {
|
1028
|
-
const n = a.mode === "composition" ? a.global : a.global.__composer;
|
1029
|
-
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== n) {
|
1030
|
-
const s = {
|
1031
|
-
label: `i18n (${wt(e)} Scope)`,
|
1032
|
-
textColor: 0,
|
1033
|
-
backgroundColor: 16764185
|
1034
|
-
};
|
1035
|
-
l.tags.push(s);
|
1036
|
-
}
|
1037
|
-
}
|
1038
|
-
function Tt(e, l) {
|
1039
|
-
const a = Wt;
|
1040
|
-
e.state.push({
|
1041
|
-
type: a,
|
1042
|
-
key: "locale",
|
1043
|
-
editable: !0,
|
1044
|
-
value: l.locale.value
|
1045
|
-
}), e.state.push({
|
1046
|
-
type: a,
|
1047
|
-
key: "availableLocales",
|
1048
|
-
editable: !1,
|
1049
|
-
value: l.availableLocales
|
1050
|
-
}), e.state.push({
|
1051
|
-
type: a,
|
1052
|
-
key: "fallbackLocale",
|
1053
|
-
editable: !0,
|
1054
|
-
value: l.fallbackLocale.value
|
1055
|
-
}), e.state.push({
|
1056
|
-
type: a,
|
1057
|
-
key: "inheritLocale",
|
1058
|
-
editable: !0,
|
1059
|
-
value: l.inheritLocale
|
1060
|
-
}), e.state.push({
|
1061
|
-
type: a,
|
1062
|
-
key: "messages",
|
1063
|
-
editable: !1,
|
1064
|
-
value: ze(l.messages.value)
|
1065
|
-
}), e.state.push({
|
1066
|
-
type: a,
|
1067
|
-
key: "datetimeFormats",
|
1068
|
-
editable: !1,
|
1069
|
-
value: l.datetimeFormats.value
|
1070
|
-
}), e.state.push({
|
1071
|
-
type: a,
|
1072
|
-
key: "numberFormats",
|
1073
|
-
editable: !1,
|
1074
|
-
value: l.numberFormats.value
|
1075
|
-
});
|
1076
|
-
}
|
1077
|
-
function ze(e) {
|
1078
|
-
const l = {};
|
1079
|
-
return Object.keys(e).forEach((a) => {
|
1080
|
-
const n = e[a];
|
1081
|
-
B(n) && "source" in n ? l[a] = Ka(n) : Pt(n) && n.loc && n.loc.source ? l[a] = n.loc.source : V(n) ? l[a] = ze(n) : l[a] = n;
|
1082
|
-
}), l;
|
1083
|
-
}
|
1084
|
-
const Ba = {
|
1085
|
-
"<": "<",
|
1086
|
-
">": ">",
|
1087
|
-
'"': """,
|
1088
|
-
"&": "&"
|
1089
|
-
};
|
1090
|
-
function Xa(e) {
|
1091
|
-
return e.replace(/[<>"&]/g, Ja);
|
1092
|
-
}
|
1093
|
-
function Ja(e) {
|
1094
|
-
return Ba[e] || e;
|
1095
|
-
}
|
1096
|
-
function Ka(e) {
|
1097
|
-
return {
|
1098
|
-
_custom: {
|
1099
|
-
type: "function",
|
1100
|
-
display: `<span>ƒ</span> ${e.source ? `("${Xa(e.source)}")` : "(?)"}`
|
1101
|
-
}
|
1102
|
-
};
|
1103
|
-
}
|
1104
|
-
function za(e, l) {
|
1105
|
-
e.rootNodes.push({
|
1106
|
-
id: "global",
|
1107
|
-
label: "Global Scope"
|
1108
|
-
});
|
1109
|
-
const a = l.mode === "composition" ? l.global : l.global.__composer;
|
1110
|
-
for (const [n, s] of l.__instances) {
|
1111
|
-
const t = l.mode === "composition" ? s : s.__composer;
|
1112
|
-
a !== t && e.rootNodes.push({
|
1113
|
-
id: t.id.toString(),
|
1114
|
-
label: `${wt(n)} Scope`
|
1115
|
-
});
|
1116
|
-
}
|
1117
|
-
}
|
1118
|
-
function qa(e, l) {
|
1119
|
-
let a = null;
|
1120
|
-
if (e !== "global") {
|
1121
|
-
for (const [n, s] of l.__instances.entries())
|
1122
|
-
if (s.id.toString() === e) {
|
1123
|
-
a = n;
|
1124
|
-
break;
|
1125
|
-
}
|
1126
|
-
}
|
1127
|
-
return a;
|
1128
|
-
}
|
1129
|
-
function $t(e, l) {
|
1130
|
-
if (e === "global")
|
1131
|
-
return l.mode === "composition" ? l.global : l.global.__composer;
|
1132
|
-
{
|
1133
|
-
const a = Array.from(l.__instances.values()).find((n) => n.id.toString() === e);
|
1134
|
-
return a ? l.mode === "composition" ? a : a.__composer : null;
|
1135
|
-
}
|
1136
|
-
}
|
1137
|
-
function Qa(e, l) {
|
1138
|
-
const a = $t(e.nodeId, l);
|
1139
|
-
return a && (e.state = Za(a)), null;
|
1140
|
-
}
|
1141
|
-
function Za(e) {
|
1142
|
-
const l = {}, a = "Locale related info", n = [
|
1143
|
-
{
|
1144
|
-
type: a,
|
1145
|
-
key: "locale",
|
1146
|
-
editable: !0,
|
1147
|
-
value: e.locale.value
|
1148
|
-
},
|
1149
|
-
{
|
1150
|
-
type: a,
|
1151
|
-
key: "fallbackLocale",
|
1152
|
-
editable: !0,
|
1153
|
-
value: e.fallbackLocale.value
|
1154
|
-
},
|
1155
|
-
{
|
1156
|
-
type: a,
|
1157
|
-
key: "availableLocales",
|
1158
|
-
editable: !1,
|
1159
|
-
value: e.availableLocales
|
1160
|
-
},
|
1161
|
-
{
|
1162
|
-
type: a,
|
1163
|
-
key: "inheritLocale",
|
1164
|
-
editable: !0,
|
1165
|
-
value: e.inheritLocale
|
1166
|
-
}
|
1167
|
-
];
|
1168
|
-
l[a] = n;
|
1169
|
-
const s = "Locale messages info", t = [
|
1170
|
-
{
|
1171
|
-
type: s,
|
1172
|
-
key: "messages",
|
1173
|
-
editable: !1,
|
1174
|
-
value: ze(e.messages.value)
|
1175
|
-
}
|
1176
|
-
];
|
1177
|
-
l[s] = t;
|
1178
|
-
{
|
1179
|
-
const r = "Datetime formats info", i = [
|
1180
|
-
{
|
1181
|
-
type: r,
|
1182
|
-
key: "datetimeFormats",
|
1183
|
-
editable: !1,
|
1184
|
-
value: e.datetimeFormats.value
|
1185
|
-
}
|
1186
|
-
];
|
1187
|
-
l[r] = i;
|
1188
|
-
const _ = "Datetime formats info", m = [
|
1189
|
-
{
|
1190
|
-
type: _,
|
1191
|
-
key: "numberFormats",
|
1192
|
-
editable: !1,
|
1193
|
-
value: e.numberFormats.value
|
1194
|
-
}
|
1195
|
-
];
|
1196
|
-
l[_] = m;
|
1197
|
-
}
|
1198
|
-
return l;
|
1199
|
-
}
|
1200
|
-
function ce(e, l) {
|
1201
|
-
if (Ye) {
|
1202
|
-
let a;
|
1203
|
-
l && "groupId" in l && (a = l.groupId, delete l.groupId), Ye.addTimelineEvent({
|
1204
|
-
layerId: "vue-i18n-timeline",
|
1205
|
-
event: {
|
1206
|
-
title: e,
|
1207
|
-
groupId: a,
|
1208
|
-
time: Date.now(),
|
1209
|
-
meta: {},
|
1210
|
-
data: l || {},
|
1211
|
-
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
1212
|
-
}
|
1213
|
-
});
|
1214
|
-
}
|
1215
|
-
}
|
1216
|
-
function el(e, l) {
|
1217
|
-
const a = $t(e.nodeId, l);
|
1218
|
-
if (a) {
|
1219
|
-
const [n] = e.path;
|
1220
|
-
n === "locale" && N(e.state.value) ? a.locale.value = e.state.value : n === "fallbackLocale" && (N(e.state.value) || D(e.state.value) || V(e.state.value)) ? a.fallbackLocale.value = e.state.value : n === "inheritLocale" && L(e.state.value) && (a.inheritLocale = e.state.value);
|
1221
|
-
}
|
1222
|
-
}
|
1223
|
-
function tl(e, l, a) {
|
1224
|
-
return {
|
1225
|
-
beforeCreate() {
|
1226
|
-
const n = se();
|
1227
|
-
if (!n)
|
1228
|
-
throw h(b.UNEXPECTED_ERROR);
|
1229
|
-
const s = this.$options;
|
1230
|
-
if (s.i18n) {
|
1231
|
-
const t = s.i18n;
|
1232
|
-
if (s.__i18n && (t.__i18n = s.__i18n), t.__root = l, this === this.$root)
|
1233
|
-
this.$i18n = Ot(e, t);
|
1234
|
-
else {
|
1235
|
-
t.__injectWithOption = !0, t.__extender = a.__vueI18nExtend, this.$i18n = Ge(t);
|
1236
|
-
const r = this.$i18n;
|
1237
|
-
r.__extender && (r.__disposer = r.__extender(this.$i18n));
|
1238
|
-
}
|
1239
|
-
} else if (s.__i18n)
|
1240
|
-
if (this === this.$root)
|
1241
|
-
this.$i18n = Ot(e, s);
|
1242
|
-
else {
|
1243
|
-
this.$i18n = Ge({
|
1244
|
-
__i18n: s.__i18n,
|
1245
|
-
__injectWithOption: !0,
|
1246
|
-
__extender: a.__vueI18nExtend,
|
1247
|
-
__root: l
|
1248
|
-
});
|
1249
|
-
const t = this.$i18n;
|
1250
|
-
t.__extender && (t.__disposer = t.__extender(this.$i18n));
|
1251
|
-
}
|
1252
|
-
else
|
1253
|
-
this.$i18n = e;
|
1254
|
-
s.__i18nGlobal && Vt(l, s, s), this.$t = (...t) => this.$i18n.t(...t), this.$rt = (...t) => this.$i18n.rt(...t), this.$tc = (...t) => this.$i18n.tc(...t), this.$te = (t, r) => this.$i18n.te(t, r), this.$d = (...t) => this.$i18n.d(...t), this.$n = (...t) => this.$i18n.n(...t), this.$tm = (t) => this.$i18n.tm(t), a.__setInstance(n, this.$i18n);
|
1255
|
-
},
|
1256
|
-
mounted() {
|
1257
|
-
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
1258
|
-
const n = this.$i18n;
|
1259
|
-
this.$el.__VUE_I18N__ = n.__composer;
|
1260
|
-
const s = this.__v_emitter = Be();
|
1261
|
-
n.__enableEmitter && n.__enableEmitter(s), s.on("*", ce);
|
1262
|
-
}
|
1263
|
-
},
|
1264
|
-
unmounted() {
|
1265
|
-
const n = se();
|
1266
|
-
if (!n)
|
1267
|
-
throw h(b.UNEXPECTED_ERROR);
|
1268
|
-
const s = this.$i18n;
|
1269
|
-
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", ce), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), a.__deleteInstance(n), delete this.$i18n;
|
1270
|
-
}
|
1271
|
-
};
|
1272
|
-
}
|
1273
|
-
function Ot(e, l) {
|
1274
|
-
e.locale = l.locale || e.locale, e.fallbackLocale = l.fallbackLocale || e.fallbackLocale, e.missing = l.missing || e.missing, e.silentTranslationWarn = l.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = l.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = l.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = l.postTranslation || e.postTranslation, e.warnHtmlInMessage = l.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = l.escapeParameterHtml || e.escapeParameterHtml, e.sync = l.sync || e.sync, e.__composer[At](l.pluralizationRules || e.pluralizationRules);
|
1275
|
-
const a = ve(e.locale, {
|
1276
|
-
messages: l.messages,
|
1277
|
-
__i18n: l.__i18n
|
1278
|
-
});
|
1279
|
-
return Object.keys(a).forEach((n) => e.mergeLocaleMessage(n, a[n])), l.datetimeFormats && Object.keys(l.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, l.datetimeFormats[n])), l.numberFormats && Object.keys(l.numberFormats).forEach((n) => e.mergeNumberFormat(n, l.numberFormats[n])), e;
|
1280
|
-
}
|
1281
|
-
const al = /* @__PURE__ */ H("global-vue-i18n");
|
1282
|
-
function vl(e = {}, l) {
|
1283
|
-
const a = __VUE_I18N_LEGACY_API__ && L(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, n = L(e.globalInjection) ? e.globalInjection : !0, s = __VUE_I18N_LEGACY_API__ && a ? !!e.allowComposition : !0, t = /* @__PURE__ */ new Map(), [r, i] = ll(e, a), _ = /* @__PURE__ */ H(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
1284
|
-
process.env.NODE_ENV !== "production" && a && s && S(M(O.NOTICE_DROP_ALLOW_COMPOSITION));
|
1285
|
-
function m(E) {
|
1286
|
-
return t.get(E) || null;
|
1287
|
-
}
|
1288
|
-
function g(E, d) {
|
1289
|
-
t.set(E, d);
|
1290
|
-
}
|
1291
|
-
function v(E) {
|
1292
|
-
t.delete(E);
|
1293
|
-
}
|
1294
|
-
{
|
1295
|
-
const E = {
|
1296
|
-
// mode
|
1297
|
-
get mode() {
|
1298
|
-
return __VUE_I18N_LEGACY_API__ && a ? "legacy" : "composition";
|
1299
|
-
},
|
1300
|
-
// allowComposition
|
1301
|
-
get allowComposition() {
|
1302
|
-
return s;
|
1303
|
-
},
|
1304
|
-
// install plugin
|
1305
|
-
async install(d, ...F) {
|
1306
|
-
if (process.env.NODE_ENV !== "production" && (d.__VUE_I18N__ = E), d.__VUE_I18N_SYMBOL__ = _, d.provide(d.__VUE_I18N_SYMBOL__, E), p(F[0])) {
|
1307
|
-
const y = F[0];
|
1308
|
-
E.__composerExtend = y.__composerExtend, E.__vueI18nExtend = y.__vueI18nExtend;
|
1309
|
-
}
|
1310
|
-
let k = null;
|
1311
|
-
!a && n && (k = ml(d, E.global)), __VUE_I18N_FULL_INSTALL__ && xa(d, E, ...F), __VUE_I18N_LEGACY_API__ && a && d.mixin(tl(i, i.__composer, E));
|
1312
|
-
const U = d.unmount;
|
1313
|
-
if (d.unmount = () => {
|
1314
|
-
k && k(), E.dispose(), U();
|
1315
|
-
}, process.env.NODE_ENV !== "production") {
|
1316
|
-
if (!await Ya(d, E))
|
1317
|
-
throw h(b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
1318
|
-
const W = Be();
|
1319
|
-
if (a) {
|
1320
|
-
const C = i;
|
1321
|
-
C.__enableEmitter && C.__enableEmitter(W);
|
1322
|
-
} else {
|
1323
|
-
const C = i;
|
1324
|
-
C[Q] && C[Q](W);
|
1325
|
-
}
|
1326
|
-
W.on("*", ce);
|
1327
|
-
}
|
1328
|
-
},
|
1329
|
-
// global accessor
|
1330
|
-
get global() {
|
1331
|
-
return i;
|
1332
|
-
},
|
1333
|
-
dispose() {
|
1334
|
-
r.stop();
|
1335
|
-
},
|
1336
|
-
// @internal
|
1337
|
-
__instances: t,
|
1338
|
-
// @internal
|
1339
|
-
__getInstance: m,
|
1340
|
-
// @internal
|
1341
|
-
__setInstance: g,
|
1342
|
-
// @internal
|
1343
|
-
__deleteInstance: v
|
1344
|
-
};
|
1345
|
-
return E;
|
1346
|
-
}
|
1347
|
-
}
|
1348
|
-
function qe(e = {}) {
|
1349
|
-
const l = se();
|
1350
|
-
if (l == null)
|
1351
|
-
throw h(b.MUST_BE_CALL_SETUP_TOP);
|
1352
|
-
if (!l.isCE && l.appContext.app != null && !l.appContext.app.__VUE_I18N_SYMBOL__)
|
1353
|
-
throw h(b.NOT_INSTALLED);
|
1354
|
-
const a = nl(l), n = sl(a), s = St(l), t = rl(e, s);
|
1355
|
-
if (__VUE_I18N_LEGACY_API__ && a.mode === "legacy" && !e.__useComponent) {
|
1356
|
-
if (!a.allowComposition)
|
1357
|
-
throw h(b.NOT_AVAILABLE_IN_LEGACY_MODE);
|
1358
|
-
return ul(l, t, n, e);
|
1359
|
-
}
|
1360
|
-
if (t === "global")
|
1361
|
-
return Vt(n, e, s), n;
|
1362
|
-
if (t === "parent") {
|
1363
|
-
let _ = ol(a, l, e.__useComponent);
|
1364
|
-
return _ == null && (process.env.NODE_ENV !== "production" && S(M(O.NOT_FOUND_PARENT_SCOPE)), _ = n), _;
|
1365
|
-
}
|
1366
|
-
const r = a;
|
1367
|
-
let i = r.__getInstance(l);
|
1368
|
-
if (i == null) {
|
1369
|
-
const _ = w({}, e);
|
1370
|
-
"__i18n" in s && (_.__i18n = s.__i18n), n && (_.__root = n), i = Je(_), r.__composerExtend && (i[He] = r.__composerExtend(i)), cl(r, l, i), r.__setInstance(l, i);
|
1371
|
-
}
|
1372
|
-
return i;
|
1373
|
-
}
|
1374
|
-
function ll(e, l, a) {
|
1375
|
-
const n = ba();
|
1376
|
-
{
|
1377
|
-
const s = __VUE_I18N_LEGACY_API__ && l ? n.run(() => Ge(e)) : n.run(() => Je(e));
|
1378
|
-
if (s == null)
|
1379
|
-
throw h(b.UNEXPECTED_ERROR);
|
1380
|
-
return [n, s];
|
1381
|
-
}
|
1382
|
-
}
|
1383
|
-
function nl(e) {
|
1384
|
-
{
|
1385
|
-
const l = Na(e.isCE ? al : e.appContext.app.__VUE_I18N_SYMBOL__);
|
1386
|
-
if (!l)
|
1387
|
-
throw h(e.isCE ? b.NOT_INSTALLED_WITH_PROVIDE : b.UNEXPECTED_ERROR);
|
1388
|
-
return l;
|
1389
|
-
}
|
1390
|
-
}
|
1391
|
-
function rl(e, l) {
|
1392
|
-
return qt(e) ? "__i18n" in l ? "local" : "global" : e.useScope ? e.useScope : "local";
|
1393
|
-
}
|
1394
|
-
function sl(e) {
|
1395
|
-
return e.mode === "composition" ? e.global : e.global.__composer;
|
1396
|
-
}
|
1397
|
-
function ol(e, l, a = !1) {
|
1398
|
-
let n = null;
|
1399
|
-
const s = l.root;
|
1400
|
-
let t = il(l, a);
|
1401
|
-
for (; t != null; ) {
|
1402
|
-
const r = e;
|
1403
|
-
if (e.mode === "composition")
|
1404
|
-
n = r.__getInstance(t);
|
1405
|
-
else if (__VUE_I18N_LEGACY_API__) {
|
1406
|
-
const i = r.__getInstance(t);
|
1407
|
-
i != null && (n = i.__composer, a && n && !n[Mt] && (n = null));
|
1408
|
-
}
|
1409
|
-
if (n != null || s === t)
|
1410
|
-
break;
|
1411
|
-
t = t.parent;
|
1412
|
-
}
|
1413
|
-
return n;
|
1414
|
-
}
|
1415
|
-
function il(e, l = !1) {
|
1416
|
-
return e == null ? null : l && e.vnode.ctx || e.parent;
|
1417
|
-
}
|
1418
|
-
function cl(e, l, a) {
|
1419
|
-
let n = null;
|
1420
|
-
Ia(() => {
|
1421
|
-
if (process.env.NODE_ENV !== "production" && l.vnode.el) {
|
1422
|
-
l.vnode.el.__VUE_I18N__ = a, n = Be();
|
1423
|
-
const s = a;
|
1424
|
-
s[Q] && s[Q](n), n.on("*", ce);
|
1425
|
-
}
|
1426
|
-
}, l), Ta(() => {
|
1427
|
-
const s = a;
|
1428
|
-
process.env.NODE_ENV !== "production" && l.vnode.el && l.vnode.el.__VUE_I18N__ && (n && n.off("*", ce), s[oe] && s[oe](), delete l.vnode.el.__VUE_I18N__), e.__deleteInstance(l);
|
1429
|
-
const t = s[He];
|
1430
|
-
t && (t(), delete s[He]);
|
1431
|
-
}, l);
|
1432
|
-
}
|
1433
|
-
function ul(e, l, a, n = {}) {
|
1434
|
-
const s = l === "local", t = ht(null);
|
1435
|
-
if (s && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
1436
|
-
throw h(b.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
1437
|
-
const r = L(n.inheritLocale) ? n.inheritLocale : !N(n.locale), i = te(
|
1438
|
-
// prettier-ignore
|
1439
|
-
!s || r ? a.locale.value : N(n.locale) ? n.locale : je
|
1440
|
-
), _ = te(
|
1441
|
-
// prettier-ignore
|
1442
|
-
!s || r ? a.fallbackLocale.value : N(n.fallbackLocale) || D(n.fallbackLocale) || p(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : i.value
|
1443
|
-
), m = te(ve(i.value, n)), g = te(p(n.datetimeFormats) ? n.datetimeFormats : { [i.value]: {} }), v = te(p(n.numberFormats) ? n.numberFormats : { [i.value]: {} }), E = s ? a.missingWarn : L(n.missingWarn) || le(n.missingWarn) ? n.missingWarn : !0, d = s ? a.fallbackWarn : L(n.fallbackWarn) || le(n.fallbackWarn) ? n.fallbackWarn : !0, F = s ? a.fallbackRoot : L(n.fallbackRoot) ? n.fallbackRoot : !0, k = !!n.fallbackFormat, U = B(n.missing) ? n.missing : null, y = B(n.postTranslation) ? n.postTranslation : null, W = s ? a.warnHtmlMessage : L(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, C = !!n.escapeParameter, G = s ? a.modifiers : p(n.modifiers) ? n.modifiers : {}, z = n.pluralRules || s && a.pluralRules;
|
1444
|
-
function X() {
|
1445
|
-
return [
|
1446
|
-
i.value,
|
1447
|
-
_.value,
|
1448
|
-
m.value,
|
1449
|
-
g.value,
|
1450
|
-
v.value
|
1451
|
-
];
|
1452
|
-
}
|
1453
|
-
const ne = x({
|
1454
|
-
get: () => t.value ? t.value.locale.value : i.value,
|
1455
|
-
set: (u) => {
|
1456
|
-
t.value && (t.value.locale.value = u), i.value = u;
|
1457
|
-
}
|
1458
|
-
}), $ = x({
|
1459
|
-
get: () => t.value ? t.value.fallbackLocale.value : _.value,
|
1460
|
-
set: (u) => {
|
1461
|
-
t.value && (t.value.fallbackLocale.value = u), _.value = u;
|
1462
|
-
}
|
1463
|
-
}), f = x(() => t.value ? t.value.messages.value : m.value), ue = x(() => g.value), de = x(() => v.value);
|
1464
|
-
function be() {
|
1465
|
-
return t.value ? t.value.getPostTranslationHandler() : y;
|
1466
|
-
}
|
1467
|
-
function Ne(u) {
|
1468
|
-
t.value && t.value.setPostTranslationHandler(u);
|
1469
|
-
}
|
1470
|
-
function Ie() {
|
1471
|
-
return t.value ? t.value.getMissingHandler() : U;
|
1472
|
-
}
|
1473
|
-
function Te(u) {
|
1474
|
-
t.value && t.value.setMissingHandler(u);
|
1475
|
-
}
|
1476
|
-
function J(u) {
|
1477
|
-
return X(), u();
|
1478
|
-
}
|
1479
|
-
function Oe(...u) {
|
1480
|
-
return t.value ? J(() => Reflect.apply(t.value.t, null, [...u])) : J(() => "");
|
1481
|
-
}
|
1482
|
-
function Le(...u) {
|
1483
|
-
return t.value ? Reflect.apply(t.value.rt, null, [...u]) : "";
|
1484
|
-
}
|
1485
|
-
function pe(...u) {
|
1486
|
-
return t.value ? J(() => Reflect.apply(t.value.d, null, [...u])) : J(() => "");
|
1487
|
-
}
|
1488
|
-
function Re(...u) {
|
1489
|
-
return t.value ? J(() => Reflect.apply(t.value.n, null, [...u])) : J(() => "");
|
1490
|
-
}
|
1491
|
-
function Pe(u) {
|
1492
|
-
return t.value ? t.value.tm(u) : {};
|
1493
|
-
}
|
1494
|
-
function Y(u, T) {
|
1495
|
-
return t.value ? t.value.te(u, T) : !1;
|
1496
|
-
}
|
1497
|
-
function _e(u) {
|
1498
|
-
return t.value ? t.value.getLocaleMessage(u) : {};
|
1499
|
-
}
|
1500
|
-
function Fe(u, T) {
|
1501
|
-
t.value && (t.value.setLocaleMessage(u, T), m.value[u] = T);
|
1502
|
-
}
|
1503
|
-
function he(u, T) {
|
1504
|
-
t.value && t.value.mergeLocaleMessage(u, T);
|
1505
|
-
}
|
1506
|
-
function ke(u) {
|
1507
|
-
return t.value ? t.value.getDateTimeFormat(u) : {};
|
1508
|
-
}
|
1509
|
-
function Ce(u, T) {
|
1510
|
-
t.value && (t.value.setDateTimeFormat(u, T), g.value[u] = T);
|
1511
|
-
}
|
1512
|
-
function Qe(u, T) {
|
1513
|
-
t.value && t.value.mergeDateTimeFormat(u, T);
|
1514
|
-
}
|
1515
|
-
function De(u) {
|
1516
|
-
return t.value ? t.value.getNumberFormat(u) : {};
|
1517
|
-
}
|
1518
|
-
function Ae(u, T) {
|
1519
|
-
t.value && (t.value.setNumberFormat(u, T), v.value[u] = T);
|
1520
|
-
}
|
1521
|
-
function Me(u, T) {
|
1522
|
-
t.value && t.value.mergeNumberFormat(u, T);
|
1523
|
-
}
|
1524
|
-
const Se = {
|
1525
|
-
get id() {
|
1526
|
-
return t.value ? t.value.id : -1;
|
1527
|
-
},
|
1528
|
-
locale: ne,
|
1529
|
-
fallbackLocale: $,
|
1530
|
-
messages: f,
|
1531
|
-
datetimeFormats: ue,
|
1532
|
-
numberFormats: de,
|
1533
|
-
get inheritLocale() {
|
1534
|
-
return t.value ? t.value.inheritLocale : r;
|
1535
|
-
},
|
1536
|
-
set inheritLocale(u) {
|
1537
|
-
t.value && (t.value.inheritLocale = u);
|
1538
|
-
},
|
1539
|
-
get availableLocales() {
|
1540
|
-
return t.value ? t.value.availableLocales : Object.keys(m.value);
|
1541
|
-
},
|
1542
|
-
get modifiers() {
|
1543
|
-
return t.value ? t.value.modifiers : G;
|
1544
|
-
},
|
1545
|
-
get pluralRules() {
|
1546
|
-
return t.value ? t.value.pluralRules : z;
|
1547
|
-
},
|
1548
|
-
get isGlobal() {
|
1549
|
-
return t.value ? t.value.isGlobal : !1;
|
1550
|
-
},
|
1551
|
-
get missingWarn() {
|
1552
|
-
return t.value ? t.value.missingWarn : E;
|
1553
|
-
},
|
1554
|
-
set missingWarn(u) {
|
1555
|
-
t.value && (t.value.missingWarn = u);
|
1556
|
-
},
|
1557
|
-
get fallbackWarn() {
|
1558
|
-
return t.value ? t.value.fallbackWarn : d;
|
1559
|
-
},
|
1560
|
-
set fallbackWarn(u) {
|
1561
|
-
t.value && (t.value.missingWarn = u);
|
1562
|
-
},
|
1563
|
-
get fallbackRoot() {
|
1564
|
-
return t.value ? t.value.fallbackRoot : F;
|
1565
|
-
},
|
1566
|
-
set fallbackRoot(u) {
|
1567
|
-
t.value && (t.value.fallbackRoot = u);
|
1568
|
-
},
|
1569
|
-
get fallbackFormat() {
|
1570
|
-
return t.value ? t.value.fallbackFormat : k;
|
1571
|
-
},
|
1572
|
-
set fallbackFormat(u) {
|
1573
|
-
t.value && (t.value.fallbackFormat = u);
|
1574
|
-
},
|
1575
|
-
get warnHtmlMessage() {
|
1576
|
-
return t.value ? t.value.warnHtmlMessage : W;
|
1577
|
-
},
|
1578
|
-
set warnHtmlMessage(u) {
|
1579
|
-
t.value && (t.value.warnHtmlMessage = u);
|
1580
|
-
},
|
1581
|
-
get escapeParameter() {
|
1582
|
-
return t.value ? t.value.escapeParameter : C;
|
1583
|
-
},
|
1584
|
-
set escapeParameter(u) {
|
1585
|
-
t.value && (t.value.escapeParameter = u);
|
1586
|
-
},
|
1587
|
-
t: Oe,
|
1588
|
-
getPostTranslationHandler: be,
|
1589
|
-
setPostTranslationHandler: Ne,
|
1590
|
-
getMissingHandler: Ie,
|
1591
|
-
setMissingHandler: Te,
|
1592
|
-
rt: Le,
|
1593
|
-
d: pe,
|
1594
|
-
n: Re,
|
1595
|
-
tm: Pe,
|
1596
|
-
te: Y,
|
1597
|
-
getLocaleMessage: _e,
|
1598
|
-
setLocaleMessage: Fe,
|
1599
|
-
mergeLocaleMessage: he,
|
1600
|
-
getDateTimeFormat: ke,
|
1601
|
-
setDateTimeFormat: Ce,
|
1602
|
-
mergeDateTimeFormat: Qe,
|
1603
|
-
getNumberFormat: De,
|
1604
|
-
setNumberFormat: Ae,
|
1605
|
-
mergeNumberFormat: Me
|
1606
|
-
};
|
1607
|
-
function Ve(u) {
|
1608
|
-
u.locale.value = i.value, u.fallbackLocale.value = _.value, Object.keys(m.value).forEach((T) => {
|
1609
|
-
u.mergeLocaleMessage(T, m.value[T]);
|
1610
|
-
}), Object.keys(g.value).forEach((T) => {
|
1611
|
-
u.mergeDateTimeFormat(T, g.value[T]);
|
1612
|
-
}), Object.keys(v.value).forEach((T) => {
|
1613
|
-
u.mergeNumberFormat(T, v.value[T]);
|
1614
|
-
}), u.escapeParameter = C, u.fallbackFormat = k, u.fallbackRoot = F, u.fallbackWarn = d, u.missingWarn = E, u.warnHtmlMessage = W;
|
1615
|
-
}
|
1616
|
-
return Oa(() => {
|
1617
|
-
if (e.proxy == null || e.proxy.$i18n == null)
|
1618
|
-
throw h(b.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
1619
|
-
const u = t.value = e.proxy.$i18n.__composer;
|
1620
|
-
l === "global" ? (i.value = u.locale.value, _.value = u.fallbackLocale.value, m.value = u.messages.value, g.value = u.datetimeFormats.value, v.value = u.numberFormats.value) : s && Ve(u);
|
1621
|
-
}), Se;
|
1622
|
-
}
|
1623
|
-
const _l = [
|
1624
|
-
"locale",
|
1625
|
-
"fallbackLocale",
|
1626
|
-
"availableLocales"
|
1627
|
-
], Lt = ["t", "rt", "d", "n", "tm", "te"];
|
1628
|
-
function ml(e, l) {
|
1629
|
-
const a = /* @__PURE__ */ Object.create(null);
|
1630
|
-
return _l.forEach((s) => {
|
1631
|
-
const t = Object.getOwnPropertyDescriptor(l, s);
|
1632
|
-
if (!t)
|
1633
|
-
throw h(b.UNEXPECTED_ERROR);
|
1634
|
-
const r = La(t.value) ? {
|
1635
|
-
get() {
|
1636
|
-
return t.value.value;
|
1637
|
-
},
|
1638
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
1639
|
-
set(i) {
|
1640
|
-
t.value.value = i;
|
1641
|
-
}
|
1642
|
-
} : {
|
1643
|
-
get() {
|
1644
|
-
return t.get && t.get();
|
1645
|
-
}
|
1646
|
-
};
|
1647
|
-
Object.defineProperty(a, s, r);
|
1648
|
-
}), e.config.globalProperties.$i18n = a, Lt.forEach((s) => {
|
1649
|
-
const t = Object.getOwnPropertyDescriptor(l, s);
|
1650
|
-
if (!t || !t.value)
|
1651
|
-
throw h(b.UNEXPECTED_ERROR);
|
1652
|
-
Object.defineProperty(e.config.globalProperties, `$${s}`, t);
|
1653
|
-
}), () => {
|
1654
|
-
delete e.config.globalProperties.$i18n, Lt.forEach((s) => {
|
1655
|
-
delete e.config.globalProperties[`$${s}`];
|
1656
|
-
});
|
1657
|
-
};
|
1658
|
-
}
|
1659
|
-
ha();
|
1660
|
-
__INTLIFY_JIT_COMPILATION__ ? tt(sa) : tt(oa);
|
1661
|
-
Qt(ia);
|
1662
|
-
Zt(pt);
|
1663
|
-
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1664
|
-
const e = ee();
|
1665
|
-
e.__INTLIFY__ = !0, ea(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
1666
|
-
}
|
1667
|
-
process.env.NODE_ENV;
|
1668
|
-
export {
|
1669
|
-
vl as c
|
1670
|
-
};
|