@vc-shell/framework 1.1.62 → 1.1.64
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/CHANGELOG.md +8 -0
- package/core/composables/useLanguages/index.ts +16 -73
- package/core/services/index.ts +1 -0
- package/core/services/language-service.ts +88 -0
- package/dist/core/composables/useLanguages/index.d.ts +4 -15
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/services/index.d.ts +1 -0
- package/dist/core/services/index.d.ts.map +1 -1
- package/dist/core/services/language-service.d.ts +15 -0
- package/dist/core/services/language-service.d.ts.map +1 -0
- package/dist/framework.js +6038 -6021
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
- package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
- package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
- package/dist/vendor-core-js-DFA7rceR.js +1206 -0
- package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
- package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
- package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
- package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
- package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
- package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
- package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
- package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
- package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
- package/dist/{vendor-intlify-core-base-FyGSkd6r.js → vendor-intlify-core-base-txnziOTW.js} +9 -9
- package/dist/{vendor-intlify-message-compiler-D_vL9-DK.js → vendor-intlify-message-compiler-XquMv3aB.js} +5 -3
- package/dist/{vendor-intlify-shared-BMbzEQSk.js → vendor-intlify-shared-CE1Dfvjf.js} +11 -11
- package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
- package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
- package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
- package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
- package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
- package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
- package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
- package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
- package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
- package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
- package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
- package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
- package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
- package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
- package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
- package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
- package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
- package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
- package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
- package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
- package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
- package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
- package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
- package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
- package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
- package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
- package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
- package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
- package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
- package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
- package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
- package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
- package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
- package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
- package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
- package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
- package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
- package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
- package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
- package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
- package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
- package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
- package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
- package/dist/{vendor-vue-i18n-DC6m6S7G.js → vendor-vue-i18n-BeXi5L3e.js} +423 -412
- package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
- package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
- package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
- package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
- package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
- package/package.json +5 -5
- package/shared/components/language-selector/language-selector.vue +16 -8
- package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
- package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
- package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
- package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
- package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
- package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import {
|
|
3
|
-
import { effectScope as
|
|
4
|
-
import { s as
|
|
5
|
-
import { c as
|
|
1
|
+
import { C as jt, D as qe, u as X, c as Bt, a as Ce, b as Ae, i as z, A as Xt, s as Jt, g as Kt, N as zt, d as qt, e as Qt, f as Zt, h as Qe, j as Se, p as ye, t as Ve, M as Me, k as Ue, l as We, m as $e, n as we, o as ea, q as ta, r as aa, v as na, w as sa, x as ra, y as la, z as oa, B as ia } from "./vendor-intlify-core-base-txnziOTW.js";
|
|
2
|
+
import { f as N, h as Ze, B as S, l as ca, c as h, C as Te, a as d, b as P, g as re, i as $, r as le, e as A, d as C, D as se, k as oe, j as R, n as q, w as ie, o as _a, m as K } from "./vendor-intlify-shared-CE1Dfvjf.js";
|
|
3
|
+
import { effectScope as ua, ref as ma, shallowRef as fa, computed as J, watch as Ee, isRef as ga, defineComponent as Le, getCurrentInstance as Q, h as et, Fragment as tt, inject as Ea, onMounted as da, onUnmounted as ba, createVNode as va, Text as Ia } from "vue";
|
|
4
|
+
import { s as pa } from "./vendor-vue-devtools-api-aVYGocXp.js";
|
|
5
|
+
import { c as Na } from "./vendor-intlify-message-compiler-XquMv3aB.js";
|
|
6
6
|
/*!
|
|
7
|
-
* vue-i18n v11.1.
|
|
7
|
+
* vue-i18n v11.1.11
|
|
8
8
|
* (c) 2025 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
10
|
*/
|
|
11
|
-
const at = "11.1.
|
|
12
|
-
function
|
|
13
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
11
|
+
const at = "11.1.11";
|
|
12
|
+
function Ta() {
|
|
13
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (K().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (K().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (K().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (K().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const b = {
|
|
16
16
|
// composer module errors
|
|
17
|
-
UNEXPECTED_RETURN_TYPE:
|
|
17
|
+
UNEXPECTED_RETURN_TYPE: Zt,
|
|
18
18
|
// 24
|
|
19
19
|
// legacy module errors
|
|
20
20
|
INVALID_ARGUMENT: 25,
|
|
@@ -32,28 +32,25 @@ const E = {
|
|
|
32
32
|
// not compatible legacy vue-i18n constructor
|
|
33
33
|
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
34
34
|
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
35
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
36
|
-
// duplicate `useI18n` calling
|
|
37
|
-
DUPLICATE_USE_I18N_CALLING: 35
|
|
35
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
38
36
|
};
|
|
39
|
-
function
|
|
40
|
-
return
|
|
37
|
+
function F(e, ...t) {
|
|
38
|
+
return Na(e, null, process.env.NODE_ENV !== "production" ? { messages: La, args: t } : void 0);
|
|
41
39
|
}
|
|
42
|
-
const
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
FALLBACK_TO_ROOT: Yt,
|
|
40
|
+
const La = {
|
|
41
|
+
[b.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
42
|
+
[b.INVALID_ARGUMENT]: "Invalid argument",
|
|
43
|
+
[b.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
44
|
+
[b.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
45
|
+
[b.UNEXPECTED_ERROR]: "Unexpected error",
|
|
46
|
+
[b.REQUIRED_VALUE]: "Required in value: {0}",
|
|
47
|
+
[b.INVALID_VALUE]: "Invalid value",
|
|
48
|
+
[b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
49
|
+
[b.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
50
|
+
[b.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
51
|
+
[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"
|
|
52
|
+
}, de = /* @__PURE__ */ S("__translateVNode"), be = /* @__PURE__ */ S("__datetimeParts"), ve = /* @__PURE__ */ S("__numberParts"), w = /* @__PURE__ */ S("__enableEmitter"), Z = /* @__PURE__ */ S("__disableEmitter"), nt = S("__setPluralRules"), st = /* @__PURE__ */ S("__injectWithOption"), Ie = /* @__PURE__ */ S("__dispose"), D = {
|
|
53
|
+
FALLBACK_TO_ROOT: jt,
|
|
57
54
|
// 8
|
|
58
55
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
59
56
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -64,8 +61,10 @@ const Ta = {
|
|
|
64
61
|
/**
|
|
65
62
|
* @deprecated will be removed at vue-i18n v12
|
|
66
63
|
*/
|
|
67
|
-
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
68
|
-
|
|
64
|
+
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
65
|
+
// duplicate `useI18n` calling
|
|
66
|
+
DUPLICATE_USE_I18N_CALLING: 13
|
|
67
|
+
}, Oa = {
|
|
69
68
|
[D.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
70
69
|
[D.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
71
70
|
[D.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -77,56 +76,57 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
77
76
|
/**
|
|
78
77
|
* @deprecated will be removed at vue-i18n v12
|
|
79
78
|
*/
|
|
80
|
-
[D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
79
|
+
[D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
80
|
+
[D.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."
|
|
81
81
|
};
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function G(e, ...t) {
|
|
83
|
+
return ca(Oa[e], ...t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (!R(e) ||
|
|
85
|
+
function ee(e) {
|
|
86
|
+
if (!R(e) || z(e))
|
|
87
87
|
return e;
|
|
88
88
|
for (const t in e)
|
|
89
89
|
if (oe(e, t))
|
|
90
90
|
if (!t.includes("."))
|
|
91
|
-
R(e[t]) &&
|
|
91
|
+
R(e[t]) && ee(e[t]);
|
|
92
92
|
else {
|
|
93
93
|
const s = t.split("."), n = s.length - 1;
|
|
94
94
|
let a = e, o = !1;
|
|
95
|
-
for (let
|
|
96
|
-
if (s[
|
|
97
|
-
throw new Error(`unsafe key: ${s[
|
|
98
|
-
if (s[
|
|
99
|
-
process.env.NODE_ENV !== "production" &&
|
|
100
|
-
key: s[
|
|
95
|
+
for (let l = 0; l < n; l++) {
|
|
96
|
+
if (s[l] === "__proto__")
|
|
97
|
+
throw new Error(`unsafe key: ${s[l]}`);
|
|
98
|
+
if (s[l] in a || (a[s[l]] = C()), !R(a[s[l]])) {
|
|
99
|
+
process.env.NODE_ENV !== "production" && ie(G(D.IGNORE_OBJ_FLATTEN, {
|
|
100
|
+
key: s[l]
|
|
101
101
|
})), o = !0;
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
|
-
a = a[s[
|
|
104
|
+
a = a[s[l]];
|
|
105
105
|
}
|
|
106
|
-
if (o || (
|
|
107
|
-
const
|
|
108
|
-
R(
|
|
106
|
+
if (o || (z(a) ? Xt.includes(s[n]) || delete e[t] : (a[s[n]] = e[t], delete e[t])), !z(a)) {
|
|
107
|
+
const l = a[s[n]];
|
|
108
|
+
R(l) && ee(l);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return e;
|
|
112
112
|
}
|
|
113
113
|
function Oe(e, t) {
|
|
114
|
-
const { messages: s, __i18n: n, messageResolver: a, flatJson: o } = t,
|
|
114
|
+
const { messages: s, __i18n: n, messageResolver: a, flatJson: o } = t, l = h(s) ? s : P(n) ? C() : { [e]: C() };
|
|
115
115
|
if (P(n) && n.forEach((c) => {
|
|
116
116
|
if ("locale" in c && "resource" in c) {
|
|
117
117
|
const { locale: u, resource: m } = c;
|
|
118
|
-
u ? (
|
|
118
|
+
u ? (l[u] = l[u] || C(), se(m, l[u])) : se(m, l);
|
|
119
119
|
} else
|
|
120
|
-
|
|
120
|
+
d(c) && se(JSON.parse(c), l);
|
|
121
121
|
}), a == null && o)
|
|
122
|
-
for (const c in
|
|
123
|
-
oe(
|
|
124
|
-
return
|
|
122
|
+
for (const c in l)
|
|
123
|
+
oe(l, c) && ee(l[c]);
|
|
124
|
+
return l;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function rt(e) {
|
|
127
127
|
return e.type;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function lt(e, t, s) {
|
|
130
130
|
let n = R(t.messages) ? t.messages : C();
|
|
131
131
|
"__i18nGlobal" in s && (n = Oe(e.locale.value, {
|
|
132
132
|
messages: n,
|
|
@@ -139,181 +139,191 @@ function rt(e, t, s) {
|
|
|
139
139
|
{
|
|
140
140
|
if (R(t.datetimeFormats)) {
|
|
141
141
|
const o = Object.keys(t.datetimeFormats);
|
|
142
|
-
o.length && o.forEach((
|
|
143
|
-
e.mergeDateTimeFormat(
|
|
142
|
+
o.length && o.forEach((l) => {
|
|
143
|
+
e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
if (R(t.numberFormats)) {
|
|
147
147
|
const o = Object.keys(t.numberFormats);
|
|
148
|
-
o.length && o.forEach((
|
|
149
|
-
e.mergeNumberFormat(
|
|
148
|
+
o.length && o.forEach((l) => {
|
|
149
|
+
e.mergeNumberFormat(l, t.numberFormats[l]);
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
function xe(e) {
|
|
155
|
-
return
|
|
155
|
+
return va(Ia, null, e, 0);
|
|
156
156
|
}
|
|
157
|
-
const Ge = "__INTLIFY_META__", He = () => [],
|
|
157
|
+
const Ge = "__INTLIFY_META__", He = () => [], ha = () => !1;
|
|
158
158
|
let Ye = 0;
|
|
159
159
|
function je(e) {
|
|
160
|
-
return (t, s, n, a) => e(s, n,
|
|
160
|
+
return (t, s, n, a) => e(s, n, Q() || void 0, a);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
const e =
|
|
162
|
+
const Fa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
163
|
+
const e = Q();
|
|
164
164
|
let t = null;
|
|
165
|
-
return e && (t =
|
|
165
|
+
return e && (t = rt(e)[Ge]) ? { [Ge]: t } : null;
|
|
166
166
|
};
|
|
167
167
|
function he(e = {}) {
|
|
168
|
-
const { __root: t, __injectWithOption: s } = e, n = t === void 0, a = e.flatJson, o =
|
|
169
|
-
let
|
|
168
|
+
const { __root: t, __injectWithOption: s } = e, n = t === void 0, a = e.flatJson, o = le ? ma : fa;
|
|
169
|
+
let l = N(e.inheritLocale) ? e.inheritLocale : !0;
|
|
170
170
|
const c = o(
|
|
171
171
|
// prettier-ignore
|
|
172
|
-
t &&
|
|
172
|
+
t && l ? t.locale.value : d(e.locale) ? e.locale : qe
|
|
173
173
|
), u = o(
|
|
174
174
|
// prettier-ignore
|
|
175
|
-
t &&
|
|
176
|
-
), m = o(Oe(c.value, e)),
|
|
177
|
-
let v = t ? t.missingWarn : N(e.missingWarn) ||
|
|
178
|
-
const
|
|
179
|
-
let
|
|
175
|
+
t && l ? t.fallbackLocale.value : d(e.fallbackLocale) || P(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
176
|
+
), m = o(Oe(c.value, e)), E = o(h(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(h(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
177
|
+
let v = t ? t.missingWarn : N(e.missingWarn) || re(e.missingWarn) ? e.missingWarn : !0, T = t ? t.fallbackWarn : N(e.fallbackWarn) || re(e.fallbackWarn) ? e.fallbackWarn : !0, L = t ? t.fallbackRoot : N(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, y = $(e.missing) ? e.missing : null, k = $(e.missing) ? je(e.missing) : null, V = $(e.postTranslation) ? e.postTranslation : null, H = t ? t.warnHtmlMessage : N(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, Y = !!e.escapeParameter;
|
|
178
|
+
const j = t ? t.modifiers : h(e.modifiers) ? e.modifiers : {};
|
|
179
|
+
let B = e.pluralRules || t && t.pluralRules, _;
|
|
180
180
|
_ = (() => {
|
|
181
181
|
n && Se(null);
|
|
182
|
-
const
|
|
182
|
+
const r = {
|
|
183
183
|
version: at,
|
|
184
184
|
locale: c.value,
|
|
185
185
|
fallbackLocale: u.value,
|
|
186
186
|
messages: m.value,
|
|
187
|
-
modifiers:
|
|
188
|
-
pluralRules:
|
|
187
|
+
modifiers: j,
|
|
188
|
+
pluralRules: B,
|
|
189
189
|
missing: k === null ? void 0 : k,
|
|
190
190
|
missingWarn: v,
|
|
191
191
|
fallbackWarn: T,
|
|
192
|
-
fallbackFormat:
|
|
192
|
+
fallbackFormat: O,
|
|
193
193
|
unresolving: !0,
|
|
194
194
|
postTranslation: V === null ? void 0 : V,
|
|
195
|
-
warnHtmlMessage:
|
|
196
|
-
escapeParameter:
|
|
195
|
+
warnHtmlMessage: H,
|
|
196
|
+
escapeParameter: Y,
|
|
197
197
|
messageResolver: e.messageResolver,
|
|
198
198
|
messageCompiler: e.messageCompiler,
|
|
199
199
|
__meta: { framework: "vue" }
|
|
200
200
|
};
|
|
201
|
-
|
|
202
|
-
const i =
|
|
201
|
+
r.datetimeFormats = E.value, r.numberFormats = f.value, r.__datetimeFormatters = h(_) ? _.__datetimeFormatters : void 0, r.__numberFormatters = h(_) ? _.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (r.__v_emitter = h(_) ? _.__v_emitter : void 0);
|
|
202
|
+
const i = Bt(r);
|
|
203
203
|
return n && Se(i), i;
|
|
204
|
-
})(),
|
|
205
|
-
|
|
204
|
+
})(), X(_, c.value, u.value);
|
|
205
|
+
function fe() {
|
|
206
|
+
return [
|
|
207
|
+
c.value,
|
|
208
|
+
u.value,
|
|
209
|
+
m.value,
|
|
210
|
+
E.value,
|
|
211
|
+
f.value
|
|
212
|
+
];
|
|
213
|
+
}
|
|
214
|
+
const gt = J({
|
|
206
215
|
get: () => c.value,
|
|
207
|
-
set: (
|
|
208
|
-
_.locale =
|
|
216
|
+
set: (r) => {
|
|
217
|
+
_.locale = r, c.value = r;
|
|
209
218
|
}
|
|
210
|
-
}),
|
|
219
|
+
}), Et = J({
|
|
211
220
|
get: () => u.value,
|
|
212
|
-
set: (
|
|
213
|
-
_.fallbackLocale =
|
|
221
|
+
set: (r) => {
|
|
222
|
+
_.fallbackLocale = r, u.value = r, X(_, c.value, r);
|
|
214
223
|
}
|
|
215
|
-
}),
|
|
216
|
-
function
|
|
224
|
+
}), dt = J(() => m.value), bt = /* @__PURE__ */ J(() => E.value), vt = /* @__PURE__ */ J(() => f.value);
|
|
225
|
+
function It() {
|
|
217
226
|
return $(V) ? V : null;
|
|
218
227
|
}
|
|
219
|
-
function
|
|
220
|
-
V =
|
|
228
|
+
function pt(r) {
|
|
229
|
+
V = r, _.postTranslation = r;
|
|
221
230
|
}
|
|
222
|
-
function
|
|
231
|
+
function Nt() {
|
|
223
232
|
return y;
|
|
224
233
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
234
|
+
function Tt(r) {
|
|
235
|
+
r !== null && (k = je(r)), y = r, _.missing = k;
|
|
227
236
|
}
|
|
228
|
-
function
|
|
229
|
-
return
|
|
237
|
+
function Lt(r, i) {
|
|
238
|
+
return r !== "translate" || !i.resolvedMessage;
|
|
230
239
|
}
|
|
231
|
-
const M = (
|
|
240
|
+
const M = (r, i, g, I, U, ne) => {
|
|
241
|
+
fe();
|
|
232
242
|
let x;
|
|
233
243
|
try {
|
|
234
|
-
(process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
244
|
+
(process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Jt(/* @__PURE__ */ Fa()), n || (_.fallbackContext = t ? Kt() : void 0), x = r(_);
|
|
235
245
|
} finally {
|
|
236
|
-
n || (_.fallbackContext = void 0);
|
|
246
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (_.fallbackContext = void 0);
|
|
237
247
|
}
|
|
238
248
|
if (g !== "translate exists" && // for not `te` (e.g `t`)
|
|
239
|
-
|
|
240
|
-
const [W,
|
|
241
|
-
if (process.env.NODE_ENV !== "production" && t &&
|
|
249
|
+
q(x) && x === zt || g === "translate exists" && !x) {
|
|
250
|
+
const [W, Yt] = i();
|
|
251
|
+
if (process.env.NODE_ENV !== "production" && t && d(W) && Lt(g, Yt) && (L && (qt(T, W) || Qt(v, W)) && ie(G(D.FALLBACK_TO_ROOT, {
|
|
242
252
|
key: W,
|
|
243
253
|
type: g
|
|
244
254
|
})), process.env.NODE_ENV !== "production")) {
|
|
245
|
-
const { __v_emitter:
|
|
246
|
-
|
|
255
|
+
const { __v_emitter: De } = _;
|
|
256
|
+
De && L && De.emit("fallback", {
|
|
247
257
|
type: g,
|
|
248
258
|
key: W,
|
|
249
259
|
to: "global",
|
|
250
260
|
groupId: `${g}:${W}`
|
|
251
261
|
});
|
|
252
262
|
}
|
|
253
|
-
return t &&
|
|
263
|
+
return t && L ? I(t) : U(W);
|
|
254
264
|
} else {
|
|
255
265
|
if (ne(x))
|
|
256
266
|
return x;
|
|
257
|
-
throw
|
|
267
|
+
throw F(b.UNEXPECTED_RETURN_TYPE);
|
|
258
268
|
}
|
|
259
269
|
};
|
|
260
|
-
function ke(...
|
|
261
|
-
return M((i) => Reflect.apply(Ve, null, [i, ...
|
|
270
|
+
function ke(...r) {
|
|
271
|
+
return M((i) => Reflect.apply(Ve, null, [i, ...r]), () => ye(...r), "translate", (i) => Reflect.apply(i.t, i, [...r]), (i) => i, (i) => d(i));
|
|
262
272
|
}
|
|
263
|
-
function
|
|
264
|
-
const [i, g, I] =
|
|
273
|
+
function Ot(...r) {
|
|
274
|
+
const [i, g, I] = r;
|
|
265
275
|
if (I && !R(I))
|
|
266
|
-
throw
|
|
276
|
+
throw F(b.INVALID_ARGUMENT);
|
|
267
277
|
return ke(i, g, A({ resolvedMessage: !0 }, I || {}));
|
|
268
278
|
}
|
|
269
|
-
function
|
|
270
|
-
return M((i) => Reflect.apply(We, null, [i, ...
|
|
279
|
+
function ht(...r) {
|
|
280
|
+
return M((i) => Reflect.apply(We, null, [i, ...r]), () => Ue(...r), "datetime format", (i) => Reflect.apply(i.d, i, [...r]), () => Me, (i) => d(i) || P(i));
|
|
271
281
|
}
|
|
272
|
-
function
|
|
273
|
-
return M((i) => Reflect.apply(we, null, [i, ...
|
|
282
|
+
function Ft(...r) {
|
|
283
|
+
return M((i) => Reflect.apply(we, null, [i, ...r]), () => $e(...r), "number format", (i) => Reflect.apply(i.n, i, [...r]), () => Me, (i) => d(i) || P(i));
|
|
274
284
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
285
|
+
function Rt(r) {
|
|
286
|
+
return r.map((i) => d(i) || q(i) || N(i) ? xe(String(i)) : i);
|
|
277
287
|
}
|
|
278
|
-
const
|
|
279
|
-
normalize:
|
|
280
|
-
interpolate: (
|
|
288
|
+
const kt = {
|
|
289
|
+
normalize: Rt,
|
|
290
|
+
interpolate: (r) => r,
|
|
281
291
|
type: "vnode"
|
|
282
292
|
};
|
|
283
|
-
function
|
|
293
|
+
function Pt(...r) {
|
|
284
294
|
return M((i) => {
|
|
285
295
|
let g;
|
|
286
296
|
const I = i;
|
|
287
297
|
try {
|
|
288
|
-
I.processor =
|
|
298
|
+
I.processor = kt, g = Reflect.apply(Ve, null, [I, ...r]);
|
|
289
299
|
} finally {
|
|
290
300
|
I.processor = null;
|
|
291
301
|
}
|
|
292
302
|
return g;
|
|
293
|
-
}, () => ye(...
|
|
303
|
+
}, () => ye(...r), "translate", (i) => i[de](...r), (i) => [xe(i)], (i) => P(i));
|
|
294
304
|
}
|
|
295
|
-
function
|
|
296
|
-
return M((i) => Reflect.apply(we, null, [i, ...
|
|
305
|
+
function Dt(...r) {
|
|
306
|
+
return M((i) => Reflect.apply(we, null, [i, ...r]), () => $e(...r), "number format", (i) => i[ve](...r), He, (i) => d(i) || P(i));
|
|
297
307
|
}
|
|
298
|
-
function Ct(...
|
|
299
|
-
return M((i) => Reflect.apply(We, null, [i, ...
|
|
308
|
+
function Ct(...r) {
|
|
309
|
+
return M((i) => Reflect.apply(We, null, [i, ...r]), () => Ue(...r), "datetime format", (i) => i[be](...r), He, (i) => d(i) || P(i));
|
|
300
310
|
}
|
|
301
|
-
function At(
|
|
302
|
-
|
|
311
|
+
function At(r) {
|
|
312
|
+
B = r, _.pluralRules = B;
|
|
303
313
|
}
|
|
304
|
-
function
|
|
314
|
+
function St(r, i) {
|
|
305
315
|
return M(() => {
|
|
306
|
-
if (!
|
|
316
|
+
if (!r)
|
|
307
317
|
return !1;
|
|
308
|
-
const g =
|
|
309
|
-
return
|
|
310
|
-
}, () => [
|
|
318
|
+
const g = d(i) ? i : c.value, I = Pe(g), U = _.messageResolver(I, r);
|
|
319
|
+
return z(U) || ea(U) || d(U);
|
|
320
|
+
}, () => [r], "translate exists", (g) => Reflect.apply(g.te, g, [r, i]), ha, (g) => N(g));
|
|
311
321
|
}
|
|
312
|
-
function
|
|
322
|
+
function yt(r) {
|
|
313
323
|
let i = null;
|
|
314
324
|
const g = Qe(_, u.value, c.value);
|
|
315
325
|
for (let I = 0; I < g.length; I++) {
|
|
316
|
-
const U = m.value[g[I]] || {}, ne = _.messageResolver(U,
|
|
326
|
+
const U = m.value[g[I]] || {}, ne = _.messageResolver(U, r);
|
|
317
327
|
if (ne != null) {
|
|
318
328
|
i = ne;
|
|
319
329
|
break;
|
|
@@ -321,72 +331,72 @@ function he(e = {}) {
|
|
|
321
331
|
}
|
|
322
332
|
return i;
|
|
323
333
|
}
|
|
324
|
-
function
|
|
325
|
-
const i =
|
|
326
|
-
return i ?? (t ? t.tm(
|
|
334
|
+
function Vt(r) {
|
|
335
|
+
const i = yt(r);
|
|
336
|
+
return i ?? (t ? t.tm(r) || {} : {});
|
|
327
337
|
}
|
|
328
|
-
function Pe(
|
|
329
|
-
return m.value[
|
|
338
|
+
function Pe(r) {
|
|
339
|
+
return m.value[r] || {};
|
|
330
340
|
}
|
|
331
|
-
function
|
|
341
|
+
function Mt(r, i) {
|
|
332
342
|
if (a) {
|
|
333
|
-
const g = { [
|
|
343
|
+
const g = { [r]: i };
|
|
334
344
|
for (const I in g)
|
|
335
|
-
oe(g, I) &&
|
|
336
|
-
i = g[
|
|
345
|
+
oe(g, I) && ee(g[I]);
|
|
346
|
+
i = g[r];
|
|
337
347
|
}
|
|
338
|
-
m.value[
|
|
348
|
+
m.value[r] = i, _.messages = m.value;
|
|
339
349
|
}
|
|
340
|
-
function
|
|
341
|
-
m.value[
|
|
342
|
-
const g = { [
|
|
350
|
+
function Ut(r, i) {
|
|
351
|
+
m.value[r] = m.value[r] || {};
|
|
352
|
+
const g = { [r]: i };
|
|
343
353
|
if (a)
|
|
344
354
|
for (const I in g)
|
|
345
|
-
oe(g, I) &&
|
|
346
|
-
i = g[
|
|
355
|
+
oe(g, I) && ee(g[I]);
|
|
356
|
+
i = g[r], se(i, m.value[r]), _.messages = m.value;
|
|
347
357
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
358
|
+
function Wt(r) {
|
|
359
|
+
return E.value[r] || {};
|
|
350
360
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
361
|
+
function $t(r, i) {
|
|
362
|
+
E.value[r] = i, _.datetimeFormats = E.value, Ce(_, r, i);
|
|
353
363
|
}
|
|
354
|
-
function
|
|
355
|
-
|
|
364
|
+
function wt(r, i) {
|
|
365
|
+
E.value[r] = A(E.value[r] || {}, i), _.datetimeFormats = E.value, Ce(_, r, i);
|
|
356
366
|
}
|
|
357
|
-
function
|
|
358
|
-
return f.value[
|
|
367
|
+
function xt(r) {
|
|
368
|
+
return f.value[r] || {};
|
|
359
369
|
}
|
|
360
|
-
function
|
|
361
|
-
f.value[
|
|
370
|
+
function Gt(r, i) {
|
|
371
|
+
f.value[r] = i, _.numberFormats = f.value, Ae(_, r, i);
|
|
362
372
|
}
|
|
363
|
-
function
|
|
364
|
-
f.value[
|
|
373
|
+
function Ht(r, i) {
|
|
374
|
+
f.value[r] = A(f.value[r] || {}, i), _.numberFormats = f.value, Ae(_, r, i);
|
|
365
375
|
}
|
|
366
|
-
Ye++, t &&
|
|
367
|
-
|
|
368
|
-
}),
|
|
369
|
-
|
|
376
|
+
Ye++, t && le && (Ee(t.locale, (r) => {
|
|
377
|
+
l && (c.value = r, _.locale = r, X(_, c.value, u.value));
|
|
378
|
+
}), Ee(t.fallbackLocale, (r) => {
|
|
379
|
+
l && (u.value = r, _.fallbackLocale = r, X(_, c.value, u.value));
|
|
370
380
|
}));
|
|
371
381
|
const p = {
|
|
372
382
|
id: Ye,
|
|
373
|
-
locale:
|
|
374
|
-
fallbackLocale:
|
|
383
|
+
locale: gt,
|
|
384
|
+
fallbackLocale: Et,
|
|
375
385
|
get inheritLocale() {
|
|
376
|
-
return
|
|
386
|
+
return l;
|
|
377
387
|
},
|
|
378
|
-
set inheritLocale(
|
|
379
|
-
|
|
388
|
+
set inheritLocale(r) {
|
|
389
|
+
l = r, r && t && (c.value = t.locale.value, u.value = t.fallbackLocale.value, X(_, c.value, u.value));
|
|
380
390
|
},
|
|
381
391
|
get availableLocales() {
|
|
382
392
|
return Object.keys(m.value).sort();
|
|
383
393
|
},
|
|
384
|
-
messages:
|
|
394
|
+
messages: dt,
|
|
385
395
|
get modifiers() {
|
|
386
|
-
return
|
|
396
|
+
return j;
|
|
387
397
|
},
|
|
388
398
|
get pluralRules() {
|
|
389
|
-
return
|
|
399
|
+
return B || {};
|
|
390
400
|
},
|
|
391
401
|
get isGlobal() {
|
|
392
402
|
return n;
|
|
@@ -394,71 +404,71 @@ function he(e = {}) {
|
|
|
394
404
|
get missingWarn() {
|
|
395
405
|
return v;
|
|
396
406
|
},
|
|
397
|
-
set missingWarn(
|
|
398
|
-
v =
|
|
407
|
+
set missingWarn(r) {
|
|
408
|
+
v = r, _.missingWarn = v;
|
|
399
409
|
},
|
|
400
410
|
get fallbackWarn() {
|
|
401
411
|
return T;
|
|
402
412
|
},
|
|
403
|
-
set fallbackWarn(
|
|
404
|
-
T =
|
|
413
|
+
set fallbackWarn(r) {
|
|
414
|
+
T = r, _.fallbackWarn = T;
|
|
405
415
|
},
|
|
406
416
|
get fallbackRoot() {
|
|
407
|
-
return
|
|
417
|
+
return L;
|
|
408
418
|
},
|
|
409
|
-
set fallbackRoot(
|
|
410
|
-
|
|
419
|
+
set fallbackRoot(r) {
|
|
420
|
+
L = r;
|
|
411
421
|
},
|
|
412
422
|
get fallbackFormat() {
|
|
413
|
-
return
|
|
423
|
+
return O;
|
|
414
424
|
},
|
|
415
|
-
set fallbackFormat(
|
|
416
|
-
|
|
425
|
+
set fallbackFormat(r) {
|
|
426
|
+
O = r, _.fallbackFormat = O;
|
|
417
427
|
},
|
|
418
428
|
get warnHtmlMessage() {
|
|
419
|
-
return
|
|
429
|
+
return H;
|
|
420
430
|
},
|
|
421
|
-
set warnHtmlMessage(
|
|
422
|
-
|
|
431
|
+
set warnHtmlMessage(r) {
|
|
432
|
+
H = r, _.warnHtmlMessage = r;
|
|
423
433
|
},
|
|
424
434
|
get escapeParameter() {
|
|
425
|
-
return
|
|
435
|
+
return Y;
|
|
426
436
|
},
|
|
427
|
-
set escapeParameter(
|
|
428
|
-
|
|
437
|
+
set escapeParameter(r) {
|
|
438
|
+
Y = r, _.escapeParameter = r;
|
|
429
439
|
},
|
|
430
440
|
t: ke,
|
|
431
441
|
getLocaleMessage: Pe,
|
|
432
|
-
setLocaleMessage:
|
|
433
|
-
mergeLocaleMessage:
|
|
434
|
-
getPostTranslationHandler:
|
|
435
|
-
setPostTranslationHandler:
|
|
436
|
-
getMissingHandler:
|
|
437
|
-
setMissingHandler:
|
|
442
|
+
setLocaleMessage: Mt,
|
|
443
|
+
mergeLocaleMessage: Ut,
|
|
444
|
+
getPostTranslationHandler: It,
|
|
445
|
+
setPostTranslationHandler: pt,
|
|
446
|
+
getMissingHandler: Nt,
|
|
447
|
+
setMissingHandler: Tt,
|
|
438
448
|
[nt]: At
|
|
439
449
|
};
|
|
440
|
-
return p.datetimeFormats =
|
|
441
|
-
_.__v_emitter =
|
|
442
|
-
}, p[
|
|
450
|
+
return p.datetimeFormats = bt, p.numberFormats = vt, p.rt = Ot, p.te = St, p.tm = Vt, p.d = ht, p.n = Ft, p.getDateTimeFormat = Wt, p.setDateTimeFormat = $t, p.mergeDateTimeFormat = wt, p.getNumberFormat = xt, p.setNumberFormat = Gt, p.mergeNumberFormat = Ht, p[st] = s, p[de] = Pt, p[be] = Ct, p[ve] = Dt, process.env.NODE_ENV !== "production" && (p[w] = (r) => {
|
|
451
|
+
_.__v_emitter = r;
|
|
452
|
+
}, p[Z] = () => {
|
|
443
453
|
_.__v_emitter = void 0;
|
|
444
454
|
}), p;
|
|
445
455
|
}
|
|
446
|
-
const ot = "vue-i18n: composer properties",
|
|
456
|
+
const ot = "vue-i18n: composer properties", ge = {
|
|
447
457
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
448
458
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
449
459
|
"vue-i18n-timeline": "Vue I18n"
|
|
450
|
-
}, Fa = {
|
|
451
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
452
460
|
}, Ra = {
|
|
461
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
462
|
+
}, ka = {
|
|
453
463
|
"vue-i18n-timeline": 16764185
|
|
454
464
|
};
|
|
455
|
-
let
|
|
456
|
-
async function
|
|
465
|
+
let pe;
|
|
466
|
+
async function Pa(e, t) {
|
|
457
467
|
return new Promise((s, n) => {
|
|
458
468
|
try {
|
|
459
|
-
|
|
469
|
+
pa({
|
|
460
470
|
id: "vue-devtools-plugin-vue-i18n",
|
|
461
|
-
label:
|
|
471
|
+
label: ge["vue-devtools-plugin-vue-i18n"],
|
|
462
472
|
packageName: "vue-i18n",
|
|
463
473
|
homepage: "https://vue-i18n.intlify.dev",
|
|
464
474
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
@@ -466,37 +476,37 @@ async function ka(e, t) {
|
|
|
466
476
|
app: e
|
|
467
477
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
468
478
|
}, (a) => {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}), a.on.inspectComponent(({ componentInstance:
|
|
472
|
-
|
|
479
|
+
pe = a, a.on.visitComponentTree(({ componentInstance: l, treeNode: c }) => {
|
|
480
|
+
Da(l, c, t);
|
|
481
|
+
}), a.on.inspectComponent(({ componentInstance: l, instanceData: c }) => {
|
|
482
|
+
l.vnode.el && l.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? l.vnode.el.__VUE_I18N__ !== t.global.__composer && Be(c, l.vnode.el.__VUE_I18N__) : Be(c, l.vnode.el.__VUE_I18N__));
|
|
473
483
|
}), a.addInspector({
|
|
474
484
|
id: "vue-i18n-resource-inspector",
|
|
475
|
-
label:
|
|
485
|
+
label: ge["vue-i18n-resource-inspector"],
|
|
476
486
|
icon: "language",
|
|
477
|
-
treeFilterPlaceholder:
|
|
478
|
-
}), a.on.getInspectorTree((
|
|
479
|
-
|
|
487
|
+
treeFilterPlaceholder: Ra["vue-i18n-resource-inspector"]
|
|
488
|
+
}), a.on.getInspectorTree((l) => {
|
|
489
|
+
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && Va(l, t);
|
|
480
490
|
});
|
|
481
491
|
const o = /* @__PURE__ */ new Map();
|
|
482
|
-
a.on.getInspectorState(async (
|
|
483
|
-
if (
|
|
484
|
-
if (a.unhighlightElement(),
|
|
485
|
-
if (!o.has(
|
|
486
|
-
const [c] = await a.getComponentInstances(
|
|
487
|
-
o.set(
|
|
492
|
+
a.on.getInspectorState(async (l) => {
|
|
493
|
+
if (l.app === e && l.inspectorId === "vue-i18n-resource-inspector")
|
|
494
|
+
if (a.unhighlightElement(), Ua(l, t), l.nodeId === "global") {
|
|
495
|
+
if (!o.has(l.app)) {
|
|
496
|
+
const [c] = await a.getComponentInstances(l.app);
|
|
497
|
+
o.set(l.app, c);
|
|
488
498
|
}
|
|
489
|
-
a.highlightElement(o.get(
|
|
499
|
+
a.highlightElement(o.get(l.app));
|
|
490
500
|
} else {
|
|
491
|
-
const c =
|
|
501
|
+
const c = Ma(l.nodeId, t);
|
|
492
502
|
c && a.highlightElement(c);
|
|
493
503
|
}
|
|
494
|
-
}), a.on.editInspectorState((
|
|
495
|
-
|
|
504
|
+
}), a.on.editInspectorState((l) => {
|
|
505
|
+
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && $a(l, t);
|
|
496
506
|
}), a.addTimelineLayer({
|
|
497
507
|
id: "vue-i18n-timeline",
|
|
498
|
-
label:
|
|
499
|
-
color:
|
|
508
|
+
label: ge["vue-i18n-timeline"],
|
|
509
|
+
color: ka["vue-i18n-timeline"]
|
|
500
510
|
}), s(!0);
|
|
501
511
|
});
|
|
502
512
|
} catch (a) {
|
|
@@ -507,7 +517,7 @@ async function ka(e, t) {
|
|
|
507
517
|
function it(e) {
|
|
508
518
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
509
519
|
}
|
|
510
|
-
function
|
|
520
|
+
function Da(e, t, s) {
|
|
511
521
|
const n = s.mode === "composition" ? s.global : s.global.__composer;
|
|
512
522
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== n) {
|
|
513
523
|
const a = {
|
|
@@ -561,7 +571,7 @@ function Fe(e) {
|
|
|
561
571
|
const t = {};
|
|
562
572
|
return Object.keys(e).forEach((s) => {
|
|
563
573
|
const n = e[s];
|
|
564
|
-
$(n) && "source" in n ? t[s] =
|
|
574
|
+
$(n) && "source" in n ? t[s] = ya(n) : z(n) && n.loc && n.loc.source ? t[s] = n.loc.source : R(n) ? t[s] = Fe(n) : t[s] = n;
|
|
565
575
|
}), t;
|
|
566
576
|
}
|
|
567
577
|
const Ca = {
|
|
@@ -571,12 +581,12 @@ const Ca = {
|
|
|
571
581
|
"&": "&"
|
|
572
582
|
};
|
|
573
583
|
function Aa(e) {
|
|
574
|
-
return e.replace(/[<>"&]/g,
|
|
584
|
+
return e.replace(/[<>"&]/g, Sa);
|
|
575
585
|
}
|
|
576
|
-
function
|
|
586
|
+
function Sa(e) {
|
|
577
587
|
return Ca[e] || e;
|
|
578
588
|
}
|
|
579
|
-
function
|
|
589
|
+
function ya(e) {
|
|
580
590
|
return {
|
|
581
591
|
_custom: {
|
|
582
592
|
type: "function",
|
|
@@ -584,7 +594,7 @@ function Sa(e) {
|
|
|
584
594
|
}
|
|
585
595
|
};
|
|
586
596
|
}
|
|
587
|
-
function
|
|
597
|
+
function Va(e, t) {
|
|
588
598
|
e.rootNodes.push({
|
|
589
599
|
id: "global",
|
|
590
600
|
label: "Global Scope"
|
|
@@ -598,7 +608,7 @@ function ya(e, t) {
|
|
|
598
608
|
});
|
|
599
609
|
}
|
|
600
610
|
}
|
|
601
|
-
function
|
|
611
|
+
function Ma(e, t) {
|
|
602
612
|
let s = null;
|
|
603
613
|
if (e !== "global") {
|
|
604
614
|
for (const [n, a] of t.__instances.entries())
|
|
@@ -617,11 +627,11 @@ function ct(e, t) {
|
|
|
617
627
|
return s ? t.mode === "composition" ? s : s.__composer : null;
|
|
618
628
|
}
|
|
619
629
|
}
|
|
620
|
-
function
|
|
630
|
+
function Ua(e, t) {
|
|
621
631
|
const s = ct(e.nodeId, t);
|
|
622
|
-
return s && (e.state =
|
|
632
|
+
return s && (e.state = Wa(s)), null;
|
|
623
633
|
}
|
|
624
|
-
function
|
|
634
|
+
function Wa(e) {
|
|
625
635
|
const t = {}, s = "Locale related info", n = [
|
|
626
636
|
{
|
|
627
637
|
type: s,
|
|
@@ -659,15 +669,15 @@ function Ua(e) {
|
|
|
659
669
|
];
|
|
660
670
|
t[a] = o;
|
|
661
671
|
{
|
|
662
|
-
const
|
|
672
|
+
const l = "Datetime formats info", c = [
|
|
663
673
|
{
|
|
664
|
-
type:
|
|
674
|
+
type: l,
|
|
665
675
|
key: "datetimeFormats",
|
|
666
676
|
editable: !1,
|
|
667
677
|
value: e.datetimeFormats.value
|
|
668
678
|
}
|
|
669
679
|
];
|
|
670
|
-
t[
|
|
680
|
+
t[l] = c;
|
|
671
681
|
const u = "Datetime formats info", m = [
|
|
672
682
|
{
|
|
673
683
|
type: u,
|
|
@@ -680,10 +690,10 @@ function Ua(e) {
|
|
|
680
690
|
}
|
|
681
691
|
return t;
|
|
682
692
|
}
|
|
683
|
-
function
|
|
684
|
-
if (
|
|
693
|
+
function te(e, t) {
|
|
694
|
+
if (pe) {
|
|
685
695
|
let s;
|
|
686
|
-
t && "groupId" in t && (s = t.groupId, delete t.groupId),
|
|
696
|
+
t && "groupId" in t && (s = t.groupId, delete t.groupId), pe.addTimelineEvent({
|
|
687
697
|
layerId: "vue-i18n-timeline",
|
|
688
698
|
event: {
|
|
689
699
|
title: e,
|
|
@@ -696,50 +706,50 @@ function ee(e, t) {
|
|
|
696
706
|
});
|
|
697
707
|
}
|
|
698
708
|
}
|
|
699
|
-
function
|
|
709
|
+
function $a(e, t) {
|
|
700
710
|
const s = ct(e.nodeId, t);
|
|
701
711
|
if (s) {
|
|
702
712
|
const [n] = e.path;
|
|
703
|
-
n === "locale" &&
|
|
713
|
+
n === "locale" && d(e.state.value) ? s.locale.value = e.state.value : n === "fallbackLocale" && (d(e.state.value) || P(e.state.value) || R(e.state.value)) ? s.fallbackLocale.value = e.state.value : n === "inheritLocale" && N(e.state.value) && (s.inheritLocale = e.state.value);
|
|
704
714
|
}
|
|
705
715
|
}
|
|
706
|
-
function
|
|
707
|
-
const t =
|
|
708
|
-
let
|
|
709
|
-
if (
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
const
|
|
713
|
-
return A(
|
|
714
|
-
},
|
|
716
|
+
function wa(e) {
|
|
717
|
+
const t = d(e.locale) ? e.locale : qe, s = d(e.fallbackLocale) || P(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = $(e.missing) ? e.missing : void 0, a = N(e.silentTranslationWarn) || re(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = N(e.silentFallbackWarn) || re(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, l = N(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, u = h(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, E = $(e.postTranslation) ? e.postTranslation : void 0, f = d(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, T = N(e.sync) ? e.sync : !0;
|
|
718
|
+
let L = e.messages;
|
|
719
|
+
if (h(e.sharedMessages)) {
|
|
720
|
+
const j = e.sharedMessages;
|
|
721
|
+
L = Object.keys(j).reduce((_, ae) => {
|
|
722
|
+
const fe = _[ae] || (_[ae] = {});
|
|
723
|
+
return A(fe, j[ae]), _;
|
|
724
|
+
}, L || {});
|
|
715
725
|
}
|
|
716
|
-
const { __i18n:
|
|
726
|
+
const { __i18n: O, __root: y, __injectWithOption: k } = e, V = e.datetimeFormats, H = e.numberFormats, Y = e.flatJson;
|
|
717
727
|
return {
|
|
718
728
|
locale: t,
|
|
719
729
|
fallbackLocale: s,
|
|
720
|
-
messages:
|
|
721
|
-
flatJson:
|
|
730
|
+
messages: L,
|
|
731
|
+
flatJson: Y,
|
|
722
732
|
datetimeFormats: V,
|
|
723
|
-
numberFormats:
|
|
733
|
+
numberFormats: H,
|
|
724
734
|
missing: n,
|
|
725
735
|
missingWarn: a,
|
|
726
736
|
fallbackWarn: o,
|
|
727
|
-
fallbackRoot:
|
|
737
|
+
fallbackRoot: l,
|
|
728
738
|
fallbackFormat: c,
|
|
729
739
|
modifiers: u,
|
|
730
740
|
pluralRules: m,
|
|
731
|
-
postTranslation:
|
|
741
|
+
postTranslation: E,
|
|
732
742
|
warnHtmlMessage: f,
|
|
733
743
|
escapeParameter: v,
|
|
734
744
|
messageResolver: e.messageResolver,
|
|
735
745
|
inheritLocale: T,
|
|
736
|
-
__i18n:
|
|
746
|
+
__i18n: O,
|
|
737
747
|
__root: y,
|
|
738
748
|
__injectWithOption: k
|
|
739
749
|
};
|
|
740
750
|
}
|
|
741
|
-
function
|
|
742
|
-
const t = he(
|
|
751
|
+
function Ne(e = {}) {
|
|
752
|
+
const t = he(wa(e)), { __extender: s } = e, n = {
|
|
743
753
|
// id
|
|
744
754
|
id: t.id,
|
|
745
755
|
// locale
|
|
@@ -904,30 +914,30 @@ function pe(e = {}) {
|
|
|
904
914
|
o[w] && o[w](a);
|
|
905
915
|
}, n.__disableEmitter = () => {
|
|
906
916
|
const a = t;
|
|
907
|
-
a[
|
|
917
|
+
a[Z] && a[Z]();
|
|
908
918
|
}), n;
|
|
909
919
|
}
|
|
910
|
-
function
|
|
920
|
+
function xa(e, t, s) {
|
|
911
921
|
return {
|
|
912
922
|
beforeCreate() {
|
|
913
|
-
const n =
|
|
923
|
+
const n = Q();
|
|
914
924
|
if (!n)
|
|
915
|
-
throw
|
|
925
|
+
throw F(b.UNEXPECTED_ERROR);
|
|
916
926
|
const a = this.$options;
|
|
917
927
|
if (a.i18n) {
|
|
918
928
|
const o = a.i18n;
|
|
919
929
|
if (a.__i18n && (o.__i18n = a.__i18n), o.__root = t, this === this.$root)
|
|
920
930
|
this.$i18n = Xe(e, o);
|
|
921
931
|
else {
|
|
922
|
-
o.__injectWithOption = !0, o.__extender = s.__vueI18nExtend, this.$i18n =
|
|
923
|
-
const
|
|
924
|
-
|
|
932
|
+
o.__injectWithOption = !0, o.__extender = s.__vueI18nExtend, this.$i18n = Ne(o);
|
|
933
|
+
const l = this.$i18n;
|
|
934
|
+
l.__extender && (l.__disposer = l.__extender(this.$i18n));
|
|
925
935
|
}
|
|
926
936
|
} else if (a.__i18n)
|
|
927
937
|
if (this === this.$root)
|
|
928
938
|
this.$i18n = Xe(e, a);
|
|
929
939
|
else {
|
|
930
|
-
this.$i18n =
|
|
940
|
+
this.$i18n = Ne({
|
|
931
941
|
__i18n: a.__i18n,
|
|
932
942
|
__injectWithOption: !0,
|
|
933
943
|
__extender: s.__vueI18nExtend,
|
|
@@ -938,22 +948,22 @@ function wa(e, t, s) {
|
|
|
938
948
|
}
|
|
939
949
|
else
|
|
940
950
|
this.$i18n = e;
|
|
941
|
-
a.__i18nGlobal &&
|
|
951
|
+
a.__i18nGlobal && lt(t, a, a), this.$t = (...o) => this.$i18n.t(...o), this.$rt = (...o) => this.$i18n.rt(...o), this.$te = (o, l) => this.$i18n.te(o, l), this.$d = (...o) => this.$i18n.d(...o), this.$n = (...o) => this.$i18n.n(...o), this.$tm = (o) => this.$i18n.tm(o), s.__setInstance(n, this.$i18n);
|
|
942
952
|
},
|
|
943
953
|
mounted() {
|
|
944
954
|
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
945
955
|
const n = this.$i18n;
|
|
946
956
|
this.$el.__VUE_I18N__ = n.__composer;
|
|
947
|
-
const a = this.__v_emitter =
|
|
948
|
-
n.__enableEmitter && n.__enableEmitter(a), a.on("*",
|
|
957
|
+
const a = this.__v_emitter = Te();
|
|
958
|
+
n.__enableEmitter && n.__enableEmitter(a), a.on("*", te);
|
|
949
959
|
}
|
|
950
960
|
},
|
|
951
961
|
unmounted() {
|
|
952
|
-
const n =
|
|
962
|
+
const n = Q();
|
|
953
963
|
if (!n)
|
|
954
|
-
throw
|
|
964
|
+
throw F(b.UNEXPECTED_ERROR);
|
|
955
965
|
const a = this.$i18n;
|
|
956
|
-
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*",
|
|
966
|
+
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", te), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), s.__deleteInstance(n), delete this.$i18n;
|
|
957
967
|
}
|
|
958
968
|
};
|
|
959
969
|
}
|
|
@@ -983,7 +993,7 @@ const Re = {
|
|
|
983
993
|
type: Object
|
|
984
994
|
}
|
|
985
995
|
};
|
|
986
|
-
function
|
|
996
|
+
function Ga({ slots: e }, t) {
|
|
987
997
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, a) => [
|
|
988
998
|
...n,
|
|
989
999
|
// prettier-ignore
|
|
@@ -996,7 +1006,7 @@ function xa({ slots: e }, t) {
|
|
|
996
1006
|
function _t() {
|
|
997
1007
|
return tt;
|
|
998
1008
|
}
|
|
999
|
-
const
|
|
1009
|
+
const Ha = /* @__PURE__ */ Le({
|
|
1000
1010
|
/* eslint-disable */
|
|
1001
1011
|
name: "i18n-t",
|
|
1002
1012
|
props: A({
|
|
@@ -1006,44 +1016,44 @@ const Ga = /* @__PURE__ */ Le({
|
|
|
1006
1016
|
},
|
|
1007
1017
|
plural: {
|
|
1008
1018
|
type: [Number, String],
|
|
1009
|
-
validator: (e) =>
|
|
1019
|
+
validator: (e) => q(e) || !isNaN(e)
|
|
1010
1020
|
}
|
|
1011
1021
|
}, Re),
|
|
1012
1022
|
/* eslint-enable */
|
|
1013
1023
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1014
1024
|
setup(e, t) {
|
|
1015
|
-
const { slots: s, attrs: n } = t, a = e.i18n ||
|
|
1025
|
+
const { slots: s, attrs: n } = t, a = e.i18n || me({
|
|
1016
1026
|
useScope: e.scope,
|
|
1017
1027
|
__useComponent: !0
|
|
1018
1028
|
});
|
|
1019
1029
|
return () => {
|
|
1020
|
-
const o = Object.keys(s).filter((f) => f[0] !== "_"),
|
|
1021
|
-
e.locale && (
|
|
1022
|
-
const c =
|
|
1023
|
-
return et(
|
|
1030
|
+
const o = Object.keys(s).filter((f) => f[0] !== "_"), l = C();
|
|
1031
|
+
e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = d(e.plural) ? +e.plural : e.plural);
|
|
1032
|
+
const c = Ga(t, o), u = a[de](e.keypath, c, l), m = A(C(), n), E = d(e.tag) || R(e.tag) ? e.tag : _t();
|
|
1033
|
+
return et(E, m, u);
|
|
1024
1034
|
};
|
|
1025
1035
|
}
|
|
1026
|
-
}),
|
|
1027
|
-
function
|
|
1028
|
-
return P(e) && !
|
|
1036
|
+
}), ce = Ha, Ya = ce;
|
|
1037
|
+
function ja(e) {
|
|
1038
|
+
return P(e) && !d(e[0]);
|
|
1029
1039
|
}
|
|
1030
1040
|
function ut(e, t, s, n) {
|
|
1031
1041
|
const { slots: a, attrs: o } = t;
|
|
1032
1042
|
return () => {
|
|
1033
|
-
const
|
|
1043
|
+
const l = { part: !0 };
|
|
1034
1044
|
let c = C();
|
|
1035
|
-
e.locale && (
|
|
1036
|
-
const u = n(e.value,
|
|
1037
|
-
let m = [
|
|
1045
|
+
e.locale && (l.locale = e.locale), d(e.format) ? l.key = e.format : R(e.format) && (d(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce((v, T) => s.includes(T) ? A(C(), v, { [T]: e.format[T] }) : v, C()));
|
|
1046
|
+
const u = n(e.value, l, c);
|
|
1047
|
+
let m = [l.key];
|
|
1038
1048
|
P(u) ? m = u.map((v, T) => {
|
|
1039
|
-
const
|
|
1040
|
-
return
|
|
1041
|
-
}) :
|
|
1042
|
-
const
|
|
1043
|
-
return et(f,
|
|
1049
|
+
const L = a[v.type], O = L ? L({ [v.type]: v.value, index: T, parts: u }) : [v.value];
|
|
1050
|
+
return ja(O) && (O[0].key = `${v.type}-${T}`), O;
|
|
1051
|
+
}) : d(u) && (m = [u]);
|
|
1052
|
+
const E = A(C(), o), f = d(e.tag) || R(e.tag) ? e.tag : _t();
|
|
1053
|
+
return et(f, E, m);
|
|
1044
1054
|
};
|
|
1045
1055
|
}
|
|
1046
|
-
const
|
|
1056
|
+
const Ba = /* @__PURE__ */ Le({
|
|
1047
1057
|
/* eslint-disable */
|
|
1048
1058
|
name: "i18n-n",
|
|
1049
1059
|
props: A({
|
|
@@ -1058,17 +1068,17 @@ const ja = /* @__PURE__ */ Le({
|
|
|
1058
1068
|
/* eslint-enable */
|
|
1059
1069
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1060
1070
|
setup(e, t) {
|
|
1061
|
-
const s = e.i18n ||
|
|
1071
|
+
const s = e.i18n || me({
|
|
1062
1072
|
useScope: e.scope,
|
|
1063
1073
|
__useComponent: !0
|
|
1064
1074
|
});
|
|
1065
|
-
return ut(e, t,
|
|
1075
|
+
return ut(e, t, ta, (...n) => (
|
|
1066
1076
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1067
|
-
s[
|
|
1077
|
+
s[ve](...n)
|
|
1068
1078
|
));
|
|
1069
1079
|
}
|
|
1070
|
-
}),
|
|
1071
|
-
function
|
|
1080
|
+
}), _e = Ba, Xa = _e;
|
|
1081
|
+
function Ja(e, t) {
|
|
1072
1082
|
const s = e;
|
|
1073
1083
|
if (e.mode === "composition")
|
|
1074
1084
|
return s.__getInstance(t) || e.global;
|
|
@@ -1078,64 +1088,64 @@ function Xa(e, t) {
|
|
|
1078
1088
|
}
|
|
1079
1089
|
}
|
|
1080
1090
|
function mt(e) {
|
|
1081
|
-
const t = (
|
|
1082
|
-
process.env.NODE_ENV !== "production" && Ze(
|
|
1083
|
-
const { instance: c, value: u } =
|
|
1091
|
+
const t = (l) => {
|
|
1092
|
+
process.env.NODE_ENV !== "production" && Ze(G(D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
1093
|
+
const { instance: c, value: u } = l;
|
|
1084
1094
|
if (!c || !c.$)
|
|
1085
|
-
throw
|
|
1086
|
-
const m =
|
|
1095
|
+
throw F(b.UNEXPECTED_ERROR);
|
|
1096
|
+
const m = Ja(e, c.$), E = Je(u);
|
|
1087
1097
|
return [
|
|
1088
|
-
Reflect.apply(m.t, m, [...Ke(
|
|
1098
|
+
Reflect.apply(m.t, m, [...Ke(E)]),
|
|
1089
1099
|
m
|
|
1090
1100
|
];
|
|
1091
1101
|
};
|
|
1092
1102
|
return {
|
|
1093
|
-
created: (
|
|
1103
|
+
created: (l, c) => {
|
|
1094
1104
|
const [u, m] = t(c);
|
|
1095
|
-
|
|
1105
|
+
le && e.global === m && (l.__i18nWatcher = Ee(m.locale, () => {
|
|
1096
1106
|
c.instance && c.instance.$forceUpdate();
|
|
1097
|
-
})),
|
|
1107
|
+
})), l.__composer = m, l.textContent = u;
|
|
1098
1108
|
},
|
|
1099
|
-
unmounted: (
|
|
1100
|
-
|
|
1109
|
+
unmounted: (l) => {
|
|
1110
|
+
le && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer);
|
|
1101
1111
|
},
|
|
1102
|
-
beforeUpdate: (
|
|
1103
|
-
if (
|
|
1104
|
-
const u =
|
|
1105
|
-
|
|
1112
|
+
beforeUpdate: (l, { value: c }) => {
|
|
1113
|
+
if (l.__composer) {
|
|
1114
|
+
const u = l.__composer, m = Je(c);
|
|
1115
|
+
l.textContent = Reflect.apply(u.t, u, [
|
|
1106
1116
|
...Ke(m)
|
|
1107
1117
|
]);
|
|
1108
1118
|
}
|
|
1109
1119
|
},
|
|
1110
|
-
getSSRProps: (
|
|
1111
|
-
const [c] = t(
|
|
1120
|
+
getSSRProps: (l) => {
|
|
1121
|
+
const [c] = t(l);
|
|
1112
1122
|
return { textContent: c };
|
|
1113
1123
|
}
|
|
1114
1124
|
};
|
|
1115
1125
|
}
|
|
1116
1126
|
function Je(e) {
|
|
1117
|
-
if (
|
|
1127
|
+
if (d(e))
|
|
1118
1128
|
return { path: e };
|
|
1119
|
-
if (
|
|
1129
|
+
if (h(e)) {
|
|
1120
1130
|
if (!("path" in e))
|
|
1121
|
-
throw
|
|
1131
|
+
throw F(b.REQUIRED_VALUE, "path");
|
|
1122
1132
|
return e;
|
|
1123
1133
|
} else
|
|
1124
|
-
throw
|
|
1134
|
+
throw F(b.INVALID_VALUE);
|
|
1125
1135
|
}
|
|
1126
1136
|
function Ke(e) {
|
|
1127
|
-
const { path: t, locale: s, args: n, choice: a, plural: o } = e,
|
|
1128
|
-
return
|
|
1137
|
+
const { path: t, locale: s, args: n, choice: a, plural: o } = e, l = {}, c = n || {};
|
|
1138
|
+
return d(s) && (l.locale = s), q(a) && (l.plural = a), q(o) && (l.plural = o), [t, c, l];
|
|
1129
1139
|
}
|
|
1130
|
-
function
|
|
1131
|
-
const n =
|
|
1132
|
-
(N(n.globalInstall) ? n.globalInstall : !0) && ([
|
|
1140
|
+
function Ka(e, t, ...s) {
|
|
1141
|
+
const n = h(s[0]) ? s[0] : {};
|
|
1142
|
+
(N(n.globalInstall) ? n.globalInstall : !0) && ([ce.name, "I18nT"].forEach((o) => e.component(o, ce)), [_e.name, "I18nN"].forEach((o) => e.component(o, _e)), [ue.name, "I18nD"].forEach((o) => e.component(o, ue))), e.directive("t", mt(t));
|
|
1133
1143
|
}
|
|
1134
1144
|
const ft = /* @__PURE__ */ S("global-vue-i18n");
|
|
1135
|
-
function
|
|
1145
|
+
function za(e = {}) {
|
|
1136
1146
|
const t = __VUE_I18N_LEGACY_API__ && N(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
1137
|
-
process.env.NODE_ENV !== "production" && t && Ze(
|
|
1138
|
-
const s = N(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [a, o] =
|
|
1147
|
+
process.env.NODE_ENV !== "production" && t && Ze(G(D.DEPRECATE_LEGACY_MODE));
|
|
1148
|
+
const s = N(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [a, o] = qa(e, t), l = /* @__PURE__ */ S(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
1139
1149
|
function c(f) {
|
|
1140
1150
|
return n.get(f) || null;
|
|
1141
1151
|
}
|
|
@@ -1145,26 +1155,26 @@ function Ka(e = {}) {
|
|
|
1145
1155
|
function m(f) {
|
|
1146
1156
|
n.delete(f);
|
|
1147
1157
|
}
|
|
1148
|
-
const
|
|
1158
|
+
const E = {
|
|
1149
1159
|
// mode
|
|
1150
1160
|
get mode() {
|
|
1151
1161
|
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
1152
1162
|
},
|
|
1153
1163
|
// install plugin
|
|
1154
1164
|
async install(f, ...v) {
|
|
1155
|
-
if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ =
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1165
|
+
if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = E), f.__VUE_I18N_SYMBOL__ = l, f.provide(f.__VUE_I18N_SYMBOL__, E), h(v[0])) {
|
|
1166
|
+
const O = v[0];
|
|
1167
|
+
E.__composerExtend = O.__composerExtend, E.__vueI18nExtend = O.__vueI18nExtend;
|
|
1158
1168
|
}
|
|
1159
1169
|
let T = null;
|
|
1160
|
-
!t && s && (T =
|
|
1161
|
-
const
|
|
1170
|
+
!t && s && (T = rn(f, E.global)), __VUE_I18N_FULL_INSTALL__ && Ka(f, E, ...v), __VUE_I18N_LEGACY_API__ && t && f.mixin(xa(o, o.__composer, E));
|
|
1171
|
+
const L = f.unmount;
|
|
1162
1172
|
if (f.unmount = () => {
|
|
1163
|
-
T && T(),
|
|
1173
|
+
T && T(), E.dispose(), L();
|
|
1164
1174
|
}, process.env.NODE_ENV !== "production") {
|
|
1165
|
-
if (!await
|
|
1166
|
-
throw
|
|
1167
|
-
const y =
|
|
1175
|
+
if (!await Pa(f, E))
|
|
1176
|
+
throw F(b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
1177
|
+
const y = Te();
|
|
1168
1178
|
if (t) {
|
|
1169
1179
|
const k = o;
|
|
1170
1180
|
k.__enableEmitter && k.__enableEmitter(y);
|
|
@@ -1172,7 +1182,7 @@ function Ka(e = {}) {
|
|
|
1172
1182
|
const k = o;
|
|
1173
1183
|
k[w] && k[w](y);
|
|
1174
1184
|
}
|
|
1175
|
-
y.on("*",
|
|
1185
|
+
y.on("*", te);
|
|
1176
1186
|
}
|
|
1177
1187
|
},
|
|
1178
1188
|
// global accessor
|
|
@@ -1191,58 +1201,58 @@ function Ka(e = {}) {
|
|
|
1191
1201
|
// @internal
|
|
1192
1202
|
__deleteInstance: m
|
|
1193
1203
|
};
|
|
1194
|
-
return
|
|
1204
|
+
return E;
|
|
1195
1205
|
}
|
|
1196
|
-
function
|
|
1197
|
-
const t =
|
|
1206
|
+
function me(e = {}) {
|
|
1207
|
+
const t = Q();
|
|
1198
1208
|
if (t == null)
|
|
1199
|
-
throw
|
|
1209
|
+
throw F(b.MUST_BE_CALL_SETUP_TOP);
|
|
1200
1210
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
1201
|
-
throw
|
|
1202
|
-
const s =
|
|
1211
|
+
throw F(b.NOT_INSTALLED);
|
|
1212
|
+
const s = Qa(t), n = en(s), a = rt(t), o = Za(e, a);
|
|
1203
1213
|
if (o === "global")
|
|
1204
|
-
return
|
|
1214
|
+
return lt(n, e, a), n;
|
|
1205
1215
|
if (o === "parent") {
|
|
1206
|
-
let u =
|
|
1207
|
-
return u == null && (process.env.NODE_ENV !== "production" &&
|
|
1216
|
+
let u = tn(s, t, e.__useComponent);
|
|
1217
|
+
return u == null && (process.env.NODE_ENV !== "production" && ie(G(D.NOT_FOUND_PARENT_SCOPE)), u = n), u;
|
|
1208
1218
|
}
|
|
1209
|
-
const
|
|
1210
|
-
let c =
|
|
1219
|
+
const l = s;
|
|
1220
|
+
let c = l.__getInstance(t);
|
|
1211
1221
|
if (c == null) {
|
|
1212
1222
|
const u = A({}, e);
|
|
1213
|
-
"__i18n" in a && (u.__i18n = a.__i18n), n && (u.__root = n), c = he(u),
|
|
1214
|
-
} else
|
|
1215
|
-
|
|
1223
|
+
"__i18n" in a && (u.__i18n = a.__i18n), n && (u.__root = n), c = he(u), l.__composerExtend && (c[Ie] = l.__composerExtend(c)), nn(l, t, c), l.__setInstance(t, c);
|
|
1224
|
+
} else
|
|
1225
|
+
process.env.NODE_ENV !== "production" && o === "local" && ie(G(D.DUPLICATE_USE_I18N_CALLING));
|
|
1216
1226
|
return c;
|
|
1217
1227
|
}
|
|
1218
|
-
function
|
|
1219
|
-
const s =
|
|
1228
|
+
function qa(e, t) {
|
|
1229
|
+
const s = ua(), n = __VUE_I18N_LEGACY_API__ && t ? s.run(() => Ne(e)) : s.run(() => he(e));
|
|
1220
1230
|
if (n == null)
|
|
1221
|
-
throw
|
|
1231
|
+
throw F(b.UNEXPECTED_ERROR);
|
|
1222
1232
|
return [s, n];
|
|
1223
1233
|
}
|
|
1224
|
-
function
|
|
1225
|
-
const t =
|
|
1234
|
+
function Qa(e) {
|
|
1235
|
+
const t = Ea(e.isCE ? ft : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1226
1236
|
if (!t)
|
|
1227
|
-
throw
|
|
1237
|
+
throw F(e.isCE ? b.NOT_INSTALLED_WITH_PROVIDE : b.UNEXPECTED_ERROR);
|
|
1228
1238
|
return t;
|
|
1229
1239
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1240
|
+
function Za(e, t) {
|
|
1241
|
+
return _a(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1232
1242
|
}
|
|
1233
|
-
function
|
|
1243
|
+
function en(e) {
|
|
1234
1244
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
1235
1245
|
}
|
|
1236
|
-
function
|
|
1246
|
+
function tn(e, t, s = !1) {
|
|
1237
1247
|
let n = null;
|
|
1238
1248
|
const a = t.root;
|
|
1239
|
-
let o =
|
|
1249
|
+
let o = an(t, s);
|
|
1240
1250
|
for (; o != null; ) {
|
|
1241
|
-
const
|
|
1251
|
+
const l = e;
|
|
1242
1252
|
if (e.mode === "composition")
|
|
1243
|
-
n =
|
|
1253
|
+
n = l.__getInstance(o);
|
|
1244
1254
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
1245
|
-
const c =
|
|
1255
|
+
const c = l.__getInstance(o);
|
|
1246
1256
|
c != null && (n = c.__composer, s && n && !n[st] && (n = null));
|
|
1247
1257
|
}
|
|
1248
1258
|
if (n != null || a === o)
|
|
@@ -1251,36 +1261,36 @@ function en(e, t, s = !1) {
|
|
|
1251
1261
|
}
|
|
1252
1262
|
return n;
|
|
1253
1263
|
}
|
|
1254
|
-
function
|
|
1264
|
+
function an(e, t = !1) {
|
|
1255
1265
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
1256
1266
|
}
|
|
1257
|
-
function
|
|
1267
|
+
function nn(e, t, s) {
|
|
1258
1268
|
let n = null;
|
|
1259
|
-
|
|
1269
|
+
da(() => {
|
|
1260
1270
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
1261
|
-
t.vnode.el.__VUE_I18N__ = s, n =
|
|
1271
|
+
t.vnode.el.__VUE_I18N__ = s, n = Te();
|
|
1262
1272
|
const a = s;
|
|
1263
|
-
a[w] && a[w](n), n.on("*",
|
|
1273
|
+
a[w] && a[w](n), n.on("*", te);
|
|
1264
1274
|
}
|
|
1265
|
-
}, t),
|
|
1275
|
+
}, t), ba(() => {
|
|
1266
1276
|
const a = s;
|
|
1267
|
-
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (n && n.off("*",
|
|
1268
|
-
const o = a[
|
|
1269
|
-
o && (o(), delete a[
|
|
1277
|
+
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (n && n.off("*", te), a[Z] && a[Z](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
1278
|
+
const o = a[Ie];
|
|
1279
|
+
o && (o(), delete a[Ie]);
|
|
1270
1280
|
}, t);
|
|
1271
1281
|
}
|
|
1272
|
-
const
|
|
1282
|
+
const sn = [
|
|
1273
1283
|
"locale",
|
|
1274
1284
|
"fallbackLocale",
|
|
1275
1285
|
"availableLocales"
|
|
1276
1286
|
], ze = ["t", "rt", "d", "n", "tm", "te"];
|
|
1277
|
-
function
|
|
1287
|
+
function rn(e, t) {
|
|
1278
1288
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1279
|
-
return
|
|
1289
|
+
return sn.forEach((a) => {
|
|
1280
1290
|
const o = Object.getOwnPropertyDescriptor(t, a);
|
|
1281
1291
|
if (!o)
|
|
1282
|
-
throw
|
|
1283
|
-
const
|
|
1292
|
+
throw F(b.UNEXPECTED_ERROR);
|
|
1293
|
+
const l = ga(o.value) ? {
|
|
1284
1294
|
get() {
|
|
1285
1295
|
return o.value.value;
|
|
1286
1296
|
},
|
|
@@ -1293,11 +1303,11 @@ function sn(e, t) {
|
|
|
1293
1303
|
return o.get && o.get();
|
|
1294
1304
|
}
|
|
1295
1305
|
};
|
|
1296
|
-
Object.defineProperty(s, a,
|
|
1306
|
+
Object.defineProperty(s, a, l);
|
|
1297
1307
|
}), e.config.globalProperties.$i18n = s, ze.forEach((a) => {
|
|
1298
1308
|
const o = Object.getOwnPropertyDescriptor(t, a);
|
|
1299
1309
|
if (!o || !o.value)
|
|
1300
|
-
throw
|
|
1310
|
+
throw F(b.UNEXPECTED_ERROR);
|
|
1301
1311
|
Object.defineProperty(e.config.globalProperties, `$${a}`, o);
|
|
1302
1312
|
}), () => {
|
|
1303
1313
|
delete e.config.globalProperties.$i18n, ze.forEach((a) => {
|
|
@@ -1320,40 +1330,41 @@ const ln = /* @__PURE__ */ Le({
|
|
|
1320
1330
|
/* eslint-enable */
|
|
1321
1331
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1322
1332
|
setup(e, t) {
|
|
1323
|
-
const s = e.i18n ||
|
|
1333
|
+
const s = e.i18n || me({
|
|
1324
1334
|
useScope: e.scope,
|
|
1325
1335
|
__useComponent: !0
|
|
1326
1336
|
});
|
|
1327
|
-
return ut(e, t,
|
|
1337
|
+
return ut(e, t, aa, (...n) => (
|
|
1328
1338
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1329
|
-
s[
|
|
1339
|
+
s[be](...n)
|
|
1330
1340
|
));
|
|
1331
1341
|
}
|
|
1332
|
-
}),
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1342
|
+
}), ue = ln, on = ue;
|
|
1343
|
+
Ta();
|
|
1344
|
+
na(oa);
|
|
1345
|
+
sa(ia);
|
|
1346
|
+
ra(Qe);
|
|
1337
1347
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1338
|
-
const e =
|
|
1339
|
-
e.__INTLIFY__ = !0,
|
|
1348
|
+
const e = K();
|
|
1349
|
+
e.__INTLIFY__ = !0, la(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
1340
1350
|
}
|
|
1341
|
-
|
|
1351
|
+
process.env.NODE_ENV;
|
|
1352
|
+
const En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1342
1353
|
__proto__: null,
|
|
1343
|
-
DatetimeFormat:
|
|
1344
|
-
I18nD:
|
|
1354
|
+
DatetimeFormat: ue,
|
|
1355
|
+
I18nD: on,
|
|
1345
1356
|
I18nInjectionKey: ft,
|
|
1346
|
-
I18nN:
|
|
1347
|
-
I18nT:
|
|
1348
|
-
NumberFormat:
|
|
1349
|
-
Translation:
|
|
1357
|
+
I18nN: Xa,
|
|
1358
|
+
I18nT: Ya,
|
|
1359
|
+
NumberFormat: _e,
|
|
1360
|
+
Translation: ce,
|
|
1350
1361
|
VERSION: at,
|
|
1351
|
-
createI18n:
|
|
1352
|
-
useI18n:
|
|
1362
|
+
createI18n: za,
|
|
1363
|
+
useI18n: me,
|
|
1353
1364
|
vTDirective: mt
|
|
1354
1365
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1355
1366
|
export {
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1367
|
+
En as V,
|
|
1368
|
+
za as c,
|
|
1369
|
+
me as u
|
|
1359
1370
|
};
|