@ozdao/prometheus-framework 0.1.55 → 0.1.56
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/vue.runtime.esm-bundler.cjs +1 -0
- package/dist/_virtual/vue.runtime.esm-bundler.js +6 -0
- package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.cjs +6 -0
- package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.js +887 -0
- package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.js +12 -0
- package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.js +54 -0
- package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.cjs +6 -0
- package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.js +109 -0
- package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.js +19 -0
- package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.cjs +5 -0
- package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1111 -0
- package/dist/node_modules/vue-router/dist/vue-router.cjs +5 -0
- package/dist/node_modules/vue-router/dist/vue-router.js +37 -0
- package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +700 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs +14 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +3863 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1023 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +176 -0
- package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.js +163 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +17 -18
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/auth/store/auth.js +4 -7
@@ -0,0 +1,1111 @@
|
|
1
|
+
import { makeSymbol as D, assign as S, isNumber as j, isString as d, isObject as I, isBoolean as V, getGlobalThis as xe, isArray as R, isPlainObject as C, isRegExp as be, isFunction as Y, inBrowser as te, warn as q, isEmptyObject as yt, format as Ft, hasOwn as ue, createEmitter as Ge } from "../../@intlify/shared/dist/shared.esm-bundler.js";
|
2
|
+
import { registerMessageResolver as At, registerLocaleFallbacker as kt, setDevToolsHook as Ut, DEFAULT_LOCALE as Mt, updateFallbackLocale as W, NUMBER_FORMAT_OPTIONS_KEYS as wt, DATETIME_FORMAT_OPTIONS_KEYS as Wt, resolveValue as xt, fallbackWithLocaleChain as Ye, createCoreContext as Gt, clearDateTimeFormat as ve, clearNumberFormat as Oe, setAdditionalMeta as Te, getFallbackContext as Yt, NOT_REOSLVED as Bt, isTranslateFallbackWarn as jt, isTranslateMissingWarn as Ht, parseTranslateArgs as Ie, translate as Le, MISSING_RESOLVE_VALUE as Pe, parseDateTimeArgs as Re, datetime as Ce, parseNumberArgs as Se, number as De, CoreWarnCodes as $t, setFallbackContext as he } from "../../@intlify/core-base/dist/core-base.esm-bundler.js";
|
3
|
+
import "../../../prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
4
|
+
import { setupDevtoolsPlugin as Xt } from "../../@vue/devtools-api/lib/esm/index.js";
|
5
|
+
import { VueDevToolsLabels as Z, VueDevToolsPlaceholders as Kt, VueDevToolsTimelineColors as qt } from "../../@intlify/vue-devtools/dist/vue-devtools.esm-bundler.js";
|
6
|
+
import { h as Be, computed as x, watch as ne, Fragment as Jt, inject as Qt, onMounted as zt, onUnmounted as Zt, getCurrentInstance as _e, createVNode as en, Text as tn } from "../../../prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
7
|
+
import { effectScope as nn, ref as G, isRef as on } from "../../../prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
8
|
+
import { createCompileError as ln, CompileErrorCodes as an } from "../../@intlify/message-compiler/dist/message-compiler.esm-bundler.js";
|
9
|
+
/*!
|
10
|
+
* vue-i18n v9.2.2
|
11
|
+
* (c) 2022 kazuya kawaguchi
|
12
|
+
* Released under the MIT License.
|
13
|
+
*/
|
14
|
+
const rn = "9.2.2";
|
15
|
+
function sn() {
|
16
|
+
let e = !1;
|
17
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (xe().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
18
|
+
}
|
19
|
+
let je = $t.__EXTEND_POINT__;
|
20
|
+
const w = () => ++je, P = {
|
21
|
+
FALLBACK_TO_ROOT: je,
|
22
|
+
NOT_SUPPORTED_PRESERVE: w(),
|
23
|
+
NOT_SUPPORTED_FORMATTER: w(),
|
24
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: w(),
|
25
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: w(),
|
26
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: w(),
|
27
|
+
NOT_FOUND_PARENT_SCOPE: w()
|
28
|
+
// 13
|
29
|
+
}, cn = {
|
30
|
+
[P.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
31
|
+
[P.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
32
|
+
[P.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
33
|
+
[P.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
|
34
|
+
[P.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
|
35
|
+
[P.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
36
|
+
[P.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
|
37
|
+
};
|
38
|
+
function J(e, ...t) {
|
39
|
+
return Ft(cn[e], ...t);
|
40
|
+
}
|
41
|
+
let He = an.__EXTEND_POINT__;
|
42
|
+
const O = () => ++He, f = {
|
43
|
+
// composer module errors
|
44
|
+
UNEXPECTED_RETURN_TYPE: He,
|
45
|
+
// legacy module errors
|
46
|
+
INVALID_ARGUMENT: O(),
|
47
|
+
// i18n module errors
|
48
|
+
MUST_BE_CALL_SETUP_TOP: O(),
|
49
|
+
NOT_INSLALLED: O(),
|
50
|
+
NOT_AVAILABLE_IN_LEGACY_MODE: O(),
|
51
|
+
// directive module errors
|
52
|
+
REQUIRED_VALUE: O(),
|
53
|
+
INVALID_VALUE: O(),
|
54
|
+
// vue-devtools errors
|
55
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: O(),
|
56
|
+
NOT_INSLALLED_WITH_PROVIDE: O(),
|
57
|
+
// unexpected error
|
58
|
+
UNEXPECTED_ERROR: O(),
|
59
|
+
// not compatible legacy vue-i18n constructor
|
60
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: O(),
|
61
|
+
// bridge support vue 2.x only
|
62
|
+
BRIDGE_SUPPORT_VUE_2_ONLY: O(),
|
63
|
+
// need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
|
64
|
+
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: O(),
|
65
|
+
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
66
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: O(),
|
67
|
+
// for enhancement
|
68
|
+
__EXTEND_POINT__: O()
|
69
|
+
// 29
|
70
|
+
};
|
71
|
+
function L(e, ...t) {
|
72
|
+
return ln(e, null, process.env.NODE_ENV !== "production" ? { messages: un, args: t } : void 0);
|
73
|
+
}
|
74
|
+
const un = {
|
75
|
+
[f.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
76
|
+
[f.INVALID_ARGUMENT]: "Invalid argument",
|
77
|
+
[f.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
78
|
+
[f.NOT_INSLALLED]: "Need to install with `app.use` function",
|
79
|
+
[f.UNEXPECTED_ERROR]: "Unexpected error",
|
80
|
+
[f.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
81
|
+
[f.REQUIRED_VALUE]: "Required in value: {0}",
|
82
|
+
[f.INVALID_VALUE]: "Invalid value",
|
83
|
+
[f.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
84
|
+
[f.NOT_INSLALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
85
|
+
[f.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
86
|
+
[f.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
87
|
+
[f.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",
|
88
|
+
[f.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
89
|
+
}, oe = /* @__PURE__ */ D("__transrateVNode"), le = /* @__PURE__ */ D("__datetimeParts"), ae = /* @__PURE__ */ D("__numberParts"), H = /* @__PURE__ */ D("__enableEmitter"), re = /* @__PURE__ */ D("__disableEmitter"), _n = D("__setPluralRules");
|
90
|
+
D("__intlifyMeta");
|
91
|
+
const mn = /* @__PURE__ */ D("__injectWithOption");
|
92
|
+
function se(e) {
|
93
|
+
if (!I(e))
|
94
|
+
return e;
|
95
|
+
for (const t in e)
|
96
|
+
if (ue(e, t))
|
97
|
+
if (!t.includes("."))
|
98
|
+
I(e[t]) && se(e[t]);
|
99
|
+
else {
|
100
|
+
const n = t.split("."), r = n.length - 1;
|
101
|
+
let a = e;
|
102
|
+
for (let i = 0; i < r; i++)
|
103
|
+
n[i] in a || (a[n[i]] = {}), a = a[n[i]];
|
104
|
+
a[n[r]] = e[t], delete e[t], I(a[n[r]]) && se(a[n[r]]);
|
105
|
+
}
|
106
|
+
return e;
|
107
|
+
}
|
108
|
+
function $e(e, t) {
|
109
|
+
const { messages: n, __i18n: r, messageResolver: a, flatJson: i } = t, l = C(n) ? n : R(r) ? {} : { [e]: {} };
|
110
|
+
if (R(r) && r.forEach((c) => {
|
111
|
+
if ("locale" in c && "resource" in c) {
|
112
|
+
const { locale: _, resource: m } = c;
|
113
|
+
_ ? (l[_] = l[_] || {}, B(m, l[_])) : B(m, l);
|
114
|
+
} else
|
115
|
+
d(c) && B(JSON.parse(c), l);
|
116
|
+
}), a == null && i)
|
117
|
+
for (const c in l)
|
118
|
+
ue(l, c) && se(l[c]);
|
119
|
+
return l;
|
120
|
+
}
|
121
|
+
const K = (e) => !I(e) || R(e);
|
122
|
+
function B(e, t) {
|
123
|
+
if (K(e) || K(t))
|
124
|
+
throw L(f.INVALID_VALUE);
|
125
|
+
for (const n in e)
|
126
|
+
ue(e, n) && (K(e[n]) || K(t[n]) ? t[n] = e[n] : B(e[n], t[n]));
|
127
|
+
}
|
128
|
+
function Xe(e) {
|
129
|
+
return e.type;
|
130
|
+
}
|
131
|
+
function fn(e, t, n) {
|
132
|
+
let r = I(t.messages) ? t.messages : {};
|
133
|
+
"__i18nGlobal" in n && (r = $e(e.locale.value, {
|
134
|
+
messages: r,
|
135
|
+
__i18n: n.__i18nGlobal
|
136
|
+
}));
|
137
|
+
const a = Object.keys(r);
|
138
|
+
a.length && a.forEach((i) => {
|
139
|
+
e.mergeLocaleMessage(i, r[i]);
|
140
|
+
});
|
141
|
+
{
|
142
|
+
if (I(t.datetimeFormats)) {
|
143
|
+
const i = Object.keys(t.datetimeFormats);
|
144
|
+
i.length && i.forEach((l) => {
|
145
|
+
e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
|
146
|
+
});
|
147
|
+
}
|
148
|
+
if (I(t.numberFormats)) {
|
149
|
+
const i = Object.keys(t.numberFormats);
|
150
|
+
i.length && i.forEach((l) => {
|
151
|
+
e.mergeNumberFormat(l, t.numberFormats[l]);
|
152
|
+
});
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
function Ve(e) {
|
157
|
+
return en(tn, null, e, 0);
|
158
|
+
}
|
159
|
+
const ye = "__INTLIFY_META__";
|
160
|
+
let Fe = 0;
|
161
|
+
function Ae(e) {
|
162
|
+
return (t, n, r, a) => e(n, r, _e() || void 0, a);
|
163
|
+
}
|
164
|
+
const gn = () => {
|
165
|
+
const e = _e();
|
166
|
+
let t = null;
|
167
|
+
return e && (t = Xe(e)[ye]) ? { [ye]: t } : null;
|
168
|
+
};
|
169
|
+
function Ke(e = {}, t) {
|
170
|
+
const { __root: n } = e, r = n === void 0;
|
171
|
+
let a = V(e.inheritLocale) ? e.inheritLocale : !0;
|
172
|
+
const i = G(
|
173
|
+
// prettier-ignore
|
174
|
+
n && a ? n.locale.value : d(e.locale) ? e.locale : Mt
|
175
|
+
), l = G(
|
176
|
+
// prettier-ignore
|
177
|
+
n && a ? n.fallbackLocale.value : d(e.fallbackLocale) || R(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
178
|
+
), c = G($e(i.value, e)), _ = G(C(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), m = G(C(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
179
|
+
let N = n ? n.missingWarn : V(e.missingWarn) || be(e.missingWarn) ? e.missingWarn : !0, E = n ? n.fallbackWarn : V(e.fallbackWarn) || be(e.fallbackWarn) ? e.fallbackWarn : !0, g = n ? n.fallbackRoot : V(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, F = Y(e.missing) ? e.missing : null, h = Y(e.missing) ? Ae(e.missing) : null, y = Y(e.postTranslation) ? e.postTranslation : null, k = n ? n.warnHtmlMessage : V(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, Q = !!e.escapeParameter;
|
180
|
+
const Ee = n ? n.modifiers : C(e.modifiers) ? e.modifiers : {};
|
181
|
+
let $ = e.pluralRules || n && n.pluralRules, u;
|
182
|
+
u = (() => {
|
183
|
+
r && he(null);
|
184
|
+
const o = {
|
185
|
+
version: rn,
|
186
|
+
locale: i.value,
|
187
|
+
fallbackLocale: l.value,
|
188
|
+
messages: c.value,
|
189
|
+
modifiers: Ee,
|
190
|
+
pluralRules: $,
|
191
|
+
missing: h === null ? void 0 : h,
|
192
|
+
missingWarn: N,
|
193
|
+
fallbackWarn: E,
|
194
|
+
fallbackFormat: T,
|
195
|
+
unresolving: !0,
|
196
|
+
postTranslation: y === null ? void 0 : y,
|
197
|
+
warnHtmlMessage: k,
|
198
|
+
escapeParameter: Q,
|
199
|
+
messageResolver: e.messageResolver,
|
200
|
+
__meta: { framework: "vue" }
|
201
|
+
};
|
202
|
+
o.datetimeFormats = _.value, o.numberFormats = m.value, o.__datetimeFormatters = C(u) ? u.__datetimeFormatters : void 0, o.__numberFormatters = C(u) ? u.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (o.__v_emitter = C(u) ? u.__v_emitter : void 0);
|
203
|
+
const s = Gt(o);
|
204
|
+
return r && he(s), s;
|
205
|
+
})(), W(u, i.value, l.value);
|
206
|
+
function et() {
|
207
|
+
return [
|
208
|
+
i.value,
|
209
|
+
l.value,
|
210
|
+
c.value,
|
211
|
+
_.value,
|
212
|
+
m.value
|
213
|
+
];
|
214
|
+
}
|
215
|
+
const tt = x({
|
216
|
+
get: () => i.value,
|
217
|
+
set: (o) => {
|
218
|
+
i.value = o, u.locale = i.value;
|
219
|
+
}
|
220
|
+
}), nt = x({
|
221
|
+
get: () => l.value,
|
222
|
+
set: (o) => {
|
223
|
+
l.value = o, u.fallbackLocale = l.value, W(u, i.value, o);
|
224
|
+
}
|
225
|
+
}), ot = x(() => c.value), lt = /* @__PURE__ */ x(() => _.value), at = /* @__PURE__ */ x(() => m.value);
|
226
|
+
function rt() {
|
227
|
+
return Y(y) ? y : null;
|
228
|
+
}
|
229
|
+
function st(o) {
|
230
|
+
y = o, u.postTranslation = o;
|
231
|
+
}
|
232
|
+
function it() {
|
233
|
+
return F;
|
234
|
+
}
|
235
|
+
function ct(o) {
|
236
|
+
o !== null && (h = Ae(o)), F = o, u.missing = h;
|
237
|
+
}
|
238
|
+
function ut(o, s) {
|
239
|
+
return o !== "translate" || !s.resolvedMessage;
|
240
|
+
}
|
241
|
+
const U = (o, s, v, b, z, X) => {
|
242
|
+
et();
|
243
|
+
let M;
|
244
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
245
|
+
try {
|
246
|
+
Te(gn()), r || (u.fallbackContext = n ? Yt() : void 0), M = o(u);
|
247
|
+
} finally {
|
248
|
+
Te(null), r || (u.fallbackContext = void 0);
|
249
|
+
}
|
250
|
+
else
|
251
|
+
M = o(u);
|
252
|
+
if (j(M) && M === Bt) {
|
253
|
+
const [A, Vt] = s();
|
254
|
+
if (process.env.NODE_ENV !== "production" && n && d(A) && ut(v, Vt) && (g && (jt(E, A) || Ht(N, A)) && q(J(P.FALLBACK_TO_ROOT, {
|
255
|
+
key: A,
|
256
|
+
type: v
|
257
|
+
})), process.env.NODE_ENV !== "production")) {
|
258
|
+
const { __v_emitter: Ne } = u;
|
259
|
+
Ne && g && Ne.emit("fallback", {
|
260
|
+
type: v,
|
261
|
+
key: A,
|
262
|
+
to: "global",
|
263
|
+
groupId: `${v}:${A}`
|
264
|
+
});
|
265
|
+
}
|
266
|
+
return n && g ? b(n) : z(A);
|
267
|
+
} else {
|
268
|
+
if (X(M))
|
269
|
+
return M;
|
270
|
+
throw L(f.UNEXPECTED_RETURN_TYPE);
|
271
|
+
}
|
272
|
+
};
|
273
|
+
function de(...o) {
|
274
|
+
return U((s) => Reflect.apply(Le, null, [s, ...o]), () => Ie(...o), "translate", (s) => Reflect.apply(s.t, s, [...o]), (s) => s, (s) => d(s));
|
275
|
+
}
|
276
|
+
function _t(...o) {
|
277
|
+
const [s, v, b] = o;
|
278
|
+
if (b && !I(b))
|
279
|
+
throw L(f.INVALID_ARGUMENT);
|
280
|
+
return de(s, v, S({ resolvedMessage: !0 }, b || {}));
|
281
|
+
}
|
282
|
+
function mt(...o) {
|
283
|
+
return U((s) => Reflect.apply(Ce, null, [s, ...o]), () => Re(...o), "datetime format", (s) => Reflect.apply(s.d, s, [...o]), () => Pe, (s) => d(s));
|
284
|
+
}
|
285
|
+
function ft(...o) {
|
286
|
+
return U((s) => Reflect.apply(De, null, [s, ...o]), () => Se(...o), "number format", (s) => Reflect.apply(s.n, s, [...o]), () => Pe, (s) => d(s));
|
287
|
+
}
|
288
|
+
function gt(o) {
|
289
|
+
return o.map((s) => d(s) || j(s) || V(s) ? Ve(String(s)) : s);
|
290
|
+
}
|
291
|
+
const Et = {
|
292
|
+
normalize: gt,
|
293
|
+
interpolate: (o) => o,
|
294
|
+
type: "vnode"
|
295
|
+
};
|
296
|
+
function dt(...o) {
|
297
|
+
return U(
|
298
|
+
(s) => {
|
299
|
+
let v;
|
300
|
+
const b = s;
|
301
|
+
try {
|
302
|
+
b.processor = Et, v = Reflect.apply(Le, null, [b, ...o]);
|
303
|
+
} finally {
|
304
|
+
b.processor = null;
|
305
|
+
}
|
306
|
+
return v;
|
307
|
+
},
|
308
|
+
() => Ie(...o),
|
309
|
+
"translate",
|
310
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
311
|
+
(s) => s[oe](...o),
|
312
|
+
(s) => [Ve(s)],
|
313
|
+
(s) => R(s)
|
314
|
+
);
|
315
|
+
}
|
316
|
+
function pt(...o) {
|
317
|
+
return U(
|
318
|
+
(s) => Reflect.apply(De, null, [s, ...o]),
|
319
|
+
() => Se(...o),
|
320
|
+
"number format",
|
321
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
322
|
+
(s) => s[ae](...o),
|
323
|
+
() => [],
|
324
|
+
(s) => d(s) || R(s)
|
325
|
+
);
|
326
|
+
}
|
327
|
+
function Nt(...o) {
|
328
|
+
return U(
|
329
|
+
(s) => Reflect.apply(Ce, null, [s, ...o]),
|
330
|
+
() => Re(...o),
|
331
|
+
"datetime format",
|
332
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
333
|
+
(s) => s[le](...o),
|
334
|
+
() => [],
|
335
|
+
(s) => d(s) || R(s)
|
336
|
+
);
|
337
|
+
}
|
338
|
+
function bt(o) {
|
339
|
+
$ = o, u.pluralRules = $;
|
340
|
+
}
|
341
|
+
function vt(o, s) {
|
342
|
+
const v = d(s) ? s : i.value, b = pe(v);
|
343
|
+
return u.messageResolver(b, o) !== null;
|
344
|
+
}
|
345
|
+
function Ot(o) {
|
346
|
+
let s = null;
|
347
|
+
const v = Ye(u, l.value, i.value);
|
348
|
+
for (let b = 0; b < v.length; b++) {
|
349
|
+
const z = c.value[v[b]] || {}, X = u.messageResolver(z, o);
|
350
|
+
if (X != null) {
|
351
|
+
s = X;
|
352
|
+
break;
|
353
|
+
}
|
354
|
+
}
|
355
|
+
return s;
|
356
|
+
}
|
357
|
+
function Tt(o) {
|
358
|
+
const s = Ot(o);
|
359
|
+
return s ?? (n ? n.tm(o) || {} : {});
|
360
|
+
}
|
361
|
+
function pe(o) {
|
362
|
+
return c.value[o] || {};
|
363
|
+
}
|
364
|
+
function It(o, s) {
|
365
|
+
c.value[o] = s, u.messages = c.value;
|
366
|
+
}
|
367
|
+
function Lt(o, s) {
|
368
|
+
c.value[o] = c.value[o] || {}, B(s, c.value[o]), u.messages = c.value;
|
369
|
+
}
|
370
|
+
function Pt(o) {
|
371
|
+
return _.value[o] || {};
|
372
|
+
}
|
373
|
+
function Rt(o, s) {
|
374
|
+
_.value[o] = s, u.datetimeFormats = _.value, ve(u, o, s);
|
375
|
+
}
|
376
|
+
function Ct(o, s) {
|
377
|
+
_.value[o] = S(_.value[o] || {}, s), u.datetimeFormats = _.value, ve(u, o, s);
|
378
|
+
}
|
379
|
+
function St(o) {
|
380
|
+
return m.value[o] || {};
|
381
|
+
}
|
382
|
+
function Dt(o, s) {
|
383
|
+
m.value[o] = s, u.numberFormats = m.value, Oe(u, o, s);
|
384
|
+
}
|
385
|
+
function ht(o, s) {
|
386
|
+
m.value[o] = S(m.value[o] || {}, s), u.numberFormats = m.value, Oe(u, o, s);
|
387
|
+
}
|
388
|
+
Fe++, n && te && (ne(n.locale, (o) => {
|
389
|
+
a && (i.value = o, u.locale = o, W(u, i.value, l.value));
|
390
|
+
}), ne(n.fallbackLocale, (o) => {
|
391
|
+
a && (l.value = o, u.fallbackLocale = o, W(u, i.value, l.value));
|
392
|
+
}));
|
393
|
+
const p = {
|
394
|
+
id: Fe,
|
395
|
+
locale: tt,
|
396
|
+
fallbackLocale: nt,
|
397
|
+
get inheritLocale() {
|
398
|
+
return a;
|
399
|
+
},
|
400
|
+
set inheritLocale(o) {
|
401
|
+
a = o, o && n && (i.value = n.locale.value, l.value = n.fallbackLocale.value, W(u, i.value, l.value));
|
402
|
+
},
|
403
|
+
get availableLocales() {
|
404
|
+
return Object.keys(c.value).sort();
|
405
|
+
},
|
406
|
+
messages: ot,
|
407
|
+
get modifiers() {
|
408
|
+
return Ee;
|
409
|
+
},
|
410
|
+
get pluralRules() {
|
411
|
+
return $ || {};
|
412
|
+
},
|
413
|
+
get isGlobal() {
|
414
|
+
return r;
|
415
|
+
},
|
416
|
+
get missingWarn() {
|
417
|
+
return N;
|
418
|
+
},
|
419
|
+
set missingWarn(o) {
|
420
|
+
N = o, u.missingWarn = N;
|
421
|
+
},
|
422
|
+
get fallbackWarn() {
|
423
|
+
return E;
|
424
|
+
},
|
425
|
+
set fallbackWarn(o) {
|
426
|
+
E = o, u.fallbackWarn = E;
|
427
|
+
},
|
428
|
+
get fallbackRoot() {
|
429
|
+
return g;
|
430
|
+
},
|
431
|
+
set fallbackRoot(o) {
|
432
|
+
g = o;
|
433
|
+
},
|
434
|
+
get fallbackFormat() {
|
435
|
+
return T;
|
436
|
+
},
|
437
|
+
set fallbackFormat(o) {
|
438
|
+
T = o, u.fallbackFormat = T;
|
439
|
+
},
|
440
|
+
get warnHtmlMessage() {
|
441
|
+
return k;
|
442
|
+
},
|
443
|
+
set warnHtmlMessage(o) {
|
444
|
+
k = o, u.warnHtmlMessage = o;
|
445
|
+
},
|
446
|
+
get escapeParameter() {
|
447
|
+
return Q;
|
448
|
+
},
|
449
|
+
set escapeParameter(o) {
|
450
|
+
Q = o, u.escapeParameter = o;
|
451
|
+
},
|
452
|
+
t: de,
|
453
|
+
getLocaleMessage: pe,
|
454
|
+
setLocaleMessage: It,
|
455
|
+
mergeLocaleMessage: Lt,
|
456
|
+
getPostTranslationHandler: rt,
|
457
|
+
setPostTranslationHandler: st,
|
458
|
+
getMissingHandler: it,
|
459
|
+
setMissingHandler: ct,
|
460
|
+
[_n]: bt
|
461
|
+
};
|
462
|
+
return p.datetimeFormats = lt, p.numberFormats = at, p.rt = _t, p.te = vt, p.tm = Tt, p.d = mt, p.n = ft, p.getDateTimeFormat = Pt, p.setDateTimeFormat = Rt, p.mergeDateTimeFormat = Ct, p.getNumberFormat = St, p.setNumberFormat = Dt, p.mergeNumberFormat = ht, p[mn] = e.__injectWithOption, p[oe] = dt, p[le] = Nt, p[ae] = pt, process.env.NODE_ENV !== "production" && (p[H] = (o) => {
|
463
|
+
u.__v_emitter = o;
|
464
|
+
}, p[re] = () => {
|
465
|
+
u.__v_emitter = void 0;
|
466
|
+
}), p;
|
467
|
+
}
|
468
|
+
const me = {
|
469
|
+
tag: {
|
470
|
+
type: [String, Object]
|
471
|
+
},
|
472
|
+
locale: {
|
473
|
+
type: String
|
474
|
+
},
|
475
|
+
scope: {
|
476
|
+
type: String,
|
477
|
+
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
478
|
+
validator: (e) => e === "parent" || e === "global",
|
479
|
+
default: "parent"
|
480
|
+
/* ComponetI18nScope */
|
481
|
+
},
|
482
|
+
i18n: {
|
483
|
+
type: Object
|
484
|
+
}
|
485
|
+
};
|
486
|
+
function En({ slots: e }, t) {
|
487
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => r = [
|
488
|
+
...r,
|
489
|
+
...R(a.children) ? a.children : [a]
|
490
|
+
], []) : t.reduce((n, r) => {
|
491
|
+
const a = e[r];
|
492
|
+
return a && (n[r] = a()), n;
|
493
|
+
}, {});
|
494
|
+
}
|
495
|
+
function qe(e) {
|
496
|
+
return Jt;
|
497
|
+
}
|
498
|
+
const ee = (
|
499
|
+
/* defineComponent */
|
500
|
+
{
|
501
|
+
/* eslint-disable */
|
502
|
+
name: "i18n-t",
|
503
|
+
props: S({
|
504
|
+
keypath: {
|
505
|
+
type: String,
|
506
|
+
required: !0
|
507
|
+
},
|
508
|
+
plural: {
|
509
|
+
type: [Number, String],
|
510
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
511
|
+
validator: (e) => j(e) || !isNaN(e)
|
512
|
+
}
|
513
|
+
}, me),
|
514
|
+
/* eslint-enable */
|
515
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
516
|
+
setup(e, t) {
|
517
|
+
const { slots: n, attrs: r } = t, a = e.i18n || ge({
|
518
|
+
useScope: e.scope,
|
519
|
+
__useComponent: !0
|
520
|
+
});
|
521
|
+
return () => {
|
522
|
+
const i = Object.keys(n).filter((E) => E !== "_"), l = {};
|
523
|
+
e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = d(e.plural) ? +e.plural : e.plural);
|
524
|
+
const c = En(t, i), _ = a[oe](e.keypath, c, l), m = S({}, r), N = d(e.tag) || I(e.tag) ? e.tag : qe();
|
525
|
+
return Be(N, m, _);
|
526
|
+
};
|
527
|
+
}
|
528
|
+
}
|
529
|
+
);
|
530
|
+
function dn(e) {
|
531
|
+
return R(e) && !d(e[0]);
|
532
|
+
}
|
533
|
+
function Je(e, t, n, r) {
|
534
|
+
const { slots: a, attrs: i } = t;
|
535
|
+
return () => {
|
536
|
+
const l = { part: !0 };
|
537
|
+
let c = {};
|
538
|
+
e.locale && (l.locale = e.locale), d(e.format) ? l.key = e.format : I(e.format) && (d(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce((g, T) => n.includes(T) ? S({}, g, { [T]: e.format[T] }) : g, {}));
|
539
|
+
const _ = r(e.value, l, c);
|
540
|
+
let m = [l.key];
|
541
|
+
R(_) ? m = _.map((g, T) => {
|
542
|
+
const F = a[g.type], h = F ? F({ [g.type]: g.value, index: T, parts: _ }) : [g.value];
|
543
|
+
return dn(h) && (h[0].key = `${g.type}-${T}`), h;
|
544
|
+
}) : d(_) && (m = [_]);
|
545
|
+
const N = S({}, i), E = d(e.tag) || I(e.tag) ? e.tag : qe();
|
546
|
+
return Be(E, N, m);
|
547
|
+
};
|
548
|
+
}
|
549
|
+
const ke = (
|
550
|
+
/* defineComponent */
|
551
|
+
{
|
552
|
+
/* eslint-disable */
|
553
|
+
name: "i18n-n",
|
554
|
+
props: S({
|
555
|
+
value: {
|
556
|
+
type: Number,
|
557
|
+
required: !0
|
558
|
+
},
|
559
|
+
format: {
|
560
|
+
type: [String, Object]
|
561
|
+
}
|
562
|
+
}, me),
|
563
|
+
/* eslint-enable */
|
564
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
565
|
+
setup(e, t) {
|
566
|
+
const n = e.i18n || ge({ useScope: "parent", __useComponent: !0 });
|
567
|
+
return Je(e, t, wt, (...r) => (
|
568
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
569
|
+
n[ae](...r)
|
570
|
+
));
|
571
|
+
}
|
572
|
+
}
|
573
|
+
), Ue = (
|
574
|
+
/*defineComponent */
|
575
|
+
{
|
576
|
+
/* eslint-disable */
|
577
|
+
name: "i18n-d",
|
578
|
+
props: S({
|
579
|
+
value: {
|
580
|
+
type: [Number, Date],
|
581
|
+
required: !0
|
582
|
+
},
|
583
|
+
format: {
|
584
|
+
type: [String, Object]
|
585
|
+
}
|
586
|
+
}, me),
|
587
|
+
/* eslint-enable */
|
588
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
589
|
+
setup(e, t) {
|
590
|
+
const n = e.i18n || ge({ useScope: "parent", __useComponent: !0 });
|
591
|
+
return Je(e, t, Wt, (...r) => (
|
592
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
593
|
+
n[le](...r)
|
594
|
+
));
|
595
|
+
}
|
596
|
+
}
|
597
|
+
);
|
598
|
+
function pn(e, t) {
|
599
|
+
const n = e;
|
600
|
+
if (e.mode === "composition")
|
601
|
+
return n.__getInstance(t) || e.global;
|
602
|
+
{
|
603
|
+
const r = n.__getInstance(t);
|
604
|
+
return r != null ? r.__composer : e.global.__composer;
|
605
|
+
}
|
606
|
+
}
|
607
|
+
function Nn(e) {
|
608
|
+
const t = (l) => {
|
609
|
+
const { instance: c, modifiers: _, value: m } = l;
|
610
|
+
if (!c || !c.$)
|
611
|
+
throw L(f.UNEXPECTED_ERROR);
|
612
|
+
const N = pn(e, c.$);
|
613
|
+
process.env.NODE_ENV !== "production" && _.preserve && q(J(P.NOT_SUPPORTED_PRESERVE));
|
614
|
+
const E = Me(m);
|
615
|
+
return [
|
616
|
+
Reflect.apply(N.t, N, [...we(E)]),
|
617
|
+
N
|
618
|
+
];
|
619
|
+
};
|
620
|
+
return {
|
621
|
+
created: (l, c) => {
|
622
|
+
const [_, m] = t(c);
|
623
|
+
te && e.global === m && (l.__i18nWatcher = ne(m.locale, () => {
|
624
|
+
c.instance && c.instance.$forceUpdate();
|
625
|
+
})), l.__composer = m, l.textContent = _;
|
626
|
+
},
|
627
|
+
unmounted: (l) => {
|
628
|
+
te && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer);
|
629
|
+
},
|
630
|
+
beforeUpdate: (l, { value: c }) => {
|
631
|
+
if (l.__composer) {
|
632
|
+
const _ = l.__composer, m = Me(c);
|
633
|
+
l.textContent = Reflect.apply(_.t, _, [
|
634
|
+
...we(m)
|
635
|
+
]);
|
636
|
+
}
|
637
|
+
},
|
638
|
+
getSSRProps: (l) => {
|
639
|
+
const [c] = t(l);
|
640
|
+
return { textContent: c };
|
641
|
+
}
|
642
|
+
};
|
643
|
+
}
|
644
|
+
function Me(e) {
|
645
|
+
if (d(e))
|
646
|
+
return { path: e };
|
647
|
+
if (C(e)) {
|
648
|
+
if (!("path" in e))
|
649
|
+
throw L(f.REQUIRED_VALUE, "path");
|
650
|
+
return e;
|
651
|
+
} else
|
652
|
+
throw L(f.INVALID_VALUE);
|
653
|
+
}
|
654
|
+
function we(e) {
|
655
|
+
const { path: t, locale: n, args: r, choice: a, plural: i } = e, l = {}, c = r || {};
|
656
|
+
return d(n) && (l.locale = n), j(a) && (l.plural = a), j(i) && (l.plural = i), [t, c, l];
|
657
|
+
}
|
658
|
+
function bn(e, t, ...n) {
|
659
|
+
const r = C(n[0]) ? n[0] : {}, a = !!r.useI18nComponentName, i = V(r.globalInstall) ? r.globalInstall : !0;
|
660
|
+
process.env.NODE_ENV !== "production" && i && a && q(J(P.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
661
|
+
name: ee.name
|
662
|
+
})), i && (e.component(a ? "i18n" : ee.name, ee), e.component(ke.name, ke), e.component(Ue.name, Ue)), e.directive("t", Nn(t));
|
663
|
+
}
|
664
|
+
const Qe = "vue-i18n: composer properties";
|
665
|
+
let ie;
|
666
|
+
async function vn(e, t) {
|
667
|
+
return new Promise((n, r) => {
|
668
|
+
try {
|
669
|
+
Xt({
|
670
|
+
id: "vue-devtools-plugin-vue-i18n",
|
671
|
+
label: Z[
|
672
|
+
"vue-devtools-plugin-vue-i18n"
|
673
|
+
/* PLUGIN */
|
674
|
+
],
|
675
|
+
packageName: "vue-i18n",
|
676
|
+
homepage: "https://vue-i18n.intlify.dev",
|
677
|
+
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
678
|
+
componentStateTypes: [Qe],
|
679
|
+
app: e
|
680
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
681
|
+
}, (a) => {
|
682
|
+
ie = a, a.on.visitComponentTree(({ componentInstance: l, treeNode: c }) => {
|
683
|
+
On(l, c, t);
|
684
|
+
}), a.on.inspectComponent(({ componentInstance: l, instanceData: c }) => {
|
685
|
+
l.vnode.el && l.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? l.vnode.el.__VUE_I18N__ !== t.global.__composer && We(c, l.vnode.el.__VUE_I18N__) : We(c, l.vnode.el.__VUE_I18N__));
|
686
|
+
}), a.addInspector({
|
687
|
+
id: "vue-i18n-resource-inspector",
|
688
|
+
label: Z[
|
689
|
+
"vue-i18n-resource-inspector"
|
690
|
+
/* CUSTOM_INSPECTOR */
|
691
|
+
],
|
692
|
+
icon: "language",
|
693
|
+
treeFilterPlaceholder: Kt[
|
694
|
+
"vue-i18n-resource-inspector"
|
695
|
+
/* CUSTOM_INSPECTOR */
|
696
|
+
]
|
697
|
+
}), a.on.getInspectorTree((l) => {
|
698
|
+
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && Rn(l, t);
|
699
|
+
});
|
700
|
+
const i = /* @__PURE__ */ new Map();
|
701
|
+
a.on.getInspectorState(async (l) => {
|
702
|
+
if (l.app === e && l.inspectorId === "vue-i18n-resource-inspector")
|
703
|
+
if (a.unhighlightElement(), Sn(l, t), l.nodeId === "global") {
|
704
|
+
if (!i.has(l.app)) {
|
705
|
+
const [c] = await a.getComponentInstances(l.app);
|
706
|
+
i.set(l.app, c);
|
707
|
+
}
|
708
|
+
a.highlightElement(i.get(l.app));
|
709
|
+
} else {
|
710
|
+
const c = Cn(l.nodeId, t);
|
711
|
+
c && a.highlightElement(c);
|
712
|
+
}
|
713
|
+
}), a.on.editInspectorState((l) => {
|
714
|
+
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && hn(l, t);
|
715
|
+
}), a.addTimelineLayer({
|
716
|
+
id: "vue-i18n-timeline",
|
717
|
+
label: Z[
|
718
|
+
"vue-i18n-timeline"
|
719
|
+
/* TIMELINE */
|
720
|
+
],
|
721
|
+
color: qt[
|
722
|
+
"vue-i18n-timeline"
|
723
|
+
/* TIMELINE */
|
724
|
+
]
|
725
|
+
}), n(!0);
|
726
|
+
});
|
727
|
+
} catch (a) {
|
728
|
+
console.error(a), r(!1);
|
729
|
+
}
|
730
|
+
});
|
731
|
+
}
|
732
|
+
function ze(e) {
|
733
|
+
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
734
|
+
}
|
735
|
+
function On(e, t, n) {
|
736
|
+
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
737
|
+
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
738
|
+
const a = {
|
739
|
+
label: `i18n (${ze(e)} Scope)`,
|
740
|
+
textColor: 0,
|
741
|
+
backgroundColor: 16764185
|
742
|
+
};
|
743
|
+
t.tags.push(a);
|
744
|
+
}
|
745
|
+
}
|
746
|
+
function We(e, t) {
|
747
|
+
const n = Qe;
|
748
|
+
e.state.push({
|
749
|
+
type: n,
|
750
|
+
key: "locale",
|
751
|
+
editable: !0,
|
752
|
+
value: t.locale.value
|
753
|
+
}), e.state.push({
|
754
|
+
type: n,
|
755
|
+
key: "availableLocales",
|
756
|
+
editable: !1,
|
757
|
+
value: t.availableLocales
|
758
|
+
}), e.state.push({
|
759
|
+
type: n,
|
760
|
+
key: "fallbackLocale",
|
761
|
+
editable: !0,
|
762
|
+
value: t.fallbackLocale.value
|
763
|
+
}), e.state.push({
|
764
|
+
type: n,
|
765
|
+
key: "inheritLocale",
|
766
|
+
editable: !0,
|
767
|
+
value: t.inheritLocale
|
768
|
+
}), e.state.push({
|
769
|
+
type: n,
|
770
|
+
key: "messages",
|
771
|
+
editable: !1,
|
772
|
+
value: fe(t.messages.value)
|
773
|
+
}), e.state.push({
|
774
|
+
type: n,
|
775
|
+
key: "datetimeFormats",
|
776
|
+
editable: !1,
|
777
|
+
value: t.datetimeFormats.value
|
778
|
+
}), e.state.push({
|
779
|
+
type: n,
|
780
|
+
key: "numberFormats",
|
781
|
+
editable: !1,
|
782
|
+
value: t.numberFormats.value
|
783
|
+
});
|
784
|
+
}
|
785
|
+
function fe(e) {
|
786
|
+
const t = {};
|
787
|
+
return Object.keys(e).forEach((n) => {
|
788
|
+
const r = e[n];
|
789
|
+
Y(r) && "source" in r ? t[n] = Pn(r) : I(r) ? t[n] = fe(r) : t[n] = r;
|
790
|
+
}), t;
|
791
|
+
}
|
792
|
+
const Tn = {
|
793
|
+
"<": "<",
|
794
|
+
">": ">",
|
795
|
+
'"': """,
|
796
|
+
"&": "&"
|
797
|
+
};
|
798
|
+
function In(e) {
|
799
|
+
return e.replace(/[<>"&]/g, Ln);
|
800
|
+
}
|
801
|
+
function Ln(e) {
|
802
|
+
return Tn[e] || e;
|
803
|
+
}
|
804
|
+
function Pn(e) {
|
805
|
+
return {
|
806
|
+
_custom: {
|
807
|
+
type: "function",
|
808
|
+
display: `<span>ƒ</span> ${e.source ? `("${In(e.source)}")` : "(?)"}`
|
809
|
+
}
|
810
|
+
};
|
811
|
+
}
|
812
|
+
function Rn(e, t) {
|
813
|
+
e.rootNodes.push({
|
814
|
+
id: "global",
|
815
|
+
label: "Global Scope"
|
816
|
+
});
|
817
|
+
const n = t.mode === "composition" ? t.global : t.global.__composer;
|
818
|
+
for (const [r, a] of t.__instances) {
|
819
|
+
const i = t.mode === "composition" ? a : a.__composer;
|
820
|
+
n !== i && e.rootNodes.push({
|
821
|
+
id: i.id.toString(),
|
822
|
+
label: `${ze(r)} Scope`
|
823
|
+
});
|
824
|
+
}
|
825
|
+
}
|
826
|
+
function Cn(e, t) {
|
827
|
+
let n = null;
|
828
|
+
if (e !== "global") {
|
829
|
+
for (const [r, a] of t.__instances.entries())
|
830
|
+
if (a.id.toString() === e) {
|
831
|
+
n = r;
|
832
|
+
break;
|
833
|
+
}
|
834
|
+
}
|
835
|
+
return n;
|
836
|
+
}
|
837
|
+
function Ze(e, t) {
|
838
|
+
if (e === "global")
|
839
|
+
return t.mode === "composition" ? t.global : t.global.__composer;
|
840
|
+
{
|
841
|
+
const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
|
842
|
+
return n ? t.mode === "composition" ? n : n.__composer : null;
|
843
|
+
}
|
844
|
+
}
|
845
|
+
function Sn(e, t) {
|
846
|
+
const n = Ze(e.nodeId, t);
|
847
|
+
return n && (e.state = Dn(n)), null;
|
848
|
+
}
|
849
|
+
function Dn(e) {
|
850
|
+
const t = {}, n = "Locale related info", r = [
|
851
|
+
{
|
852
|
+
type: n,
|
853
|
+
key: "locale",
|
854
|
+
editable: !0,
|
855
|
+
value: e.locale.value
|
856
|
+
},
|
857
|
+
{
|
858
|
+
type: n,
|
859
|
+
key: "fallbackLocale",
|
860
|
+
editable: !0,
|
861
|
+
value: e.fallbackLocale.value
|
862
|
+
},
|
863
|
+
{
|
864
|
+
type: n,
|
865
|
+
key: "availableLocales",
|
866
|
+
editable: !1,
|
867
|
+
value: e.availableLocales
|
868
|
+
},
|
869
|
+
{
|
870
|
+
type: n,
|
871
|
+
key: "inheritLocale",
|
872
|
+
editable: !0,
|
873
|
+
value: e.inheritLocale
|
874
|
+
}
|
875
|
+
];
|
876
|
+
t[n] = r;
|
877
|
+
const a = "Locale messages info", i = [
|
878
|
+
{
|
879
|
+
type: a,
|
880
|
+
key: "messages",
|
881
|
+
editable: !1,
|
882
|
+
value: fe(e.messages.value)
|
883
|
+
}
|
884
|
+
];
|
885
|
+
t[a] = i;
|
886
|
+
{
|
887
|
+
const l = "Datetime formats info", c = [
|
888
|
+
{
|
889
|
+
type: l,
|
890
|
+
key: "datetimeFormats",
|
891
|
+
editable: !1,
|
892
|
+
value: e.datetimeFormats.value
|
893
|
+
}
|
894
|
+
];
|
895
|
+
t[l] = c;
|
896
|
+
const _ = "Datetime formats info", m = [
|
897
|
+
{
|
898
|
+
type: _,
|
899
|
+
key: "numberFormats",
|
900
|
+
editable: !1,
|
901
|
+
value: e.numberFormats.value
|
902
|
+
}
|
903
|
+
];
|
904
|
+
t[_] = m;
|
905
|
+
}
|
906
|
+
return t;
|
907
|
+
}
|
908
|
+
function ce(e, t) {
|
909
|
+
if (ie) {
|
910
|
+
let n;
|
911
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), ie.addTimelineEvent({
|
912
|
+
layerId: "vue-i18n-timeline",
|
913
|
+
event: {
|
914
|
+
title: e,
|
915
|
+
groupId: n,
|
916
|
+
time: Date.now(),
|
917
|
+
meta: {},
|
918
|
+
data: t || {},
|
919
|
+
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
920
|
+
}
|
921
|
+
});
|
922
|
+
}
|
923
|
+
}
|
924
|
+
function hn(e, t) {
|
925
|
+
const n = Ze(e.nodeId, t);
|
926
|
+
if (n) {
|
927
|
+
const [r] = e.path;
|
928
|
+
r === "locale" && d(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (d(e.state.value) || R(e.state.value) || I(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && V(e.state.value) && (n.inheritLocale = e.state.value);
|
929
|
+
}
|
930
|
+
}
|
931
|
+
const Vn = /* @__PURE__ */ D("global-vue-i18n");
|
932
|
+
function Qn(e = {}, t) {
|
933
|
+
const n = V(e.globalInjection) ? e.globalInjection : !0, r = !0, a = /* @__PURE__ */ new Map(), [i, l] = yn(e), c = D(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
934
|
+
function _(E) {
|
935
|
+
return a.get(E) || null;
|
936
|
+
}
|
937
|
+
function m(E, g) {
|
938
|
+
a.set(E, g);
|
939
|
+
}
|
940
|
+
function N(E) {
|
941
|
+
a.delete(E);
|
942
|
+
}
|
943
|
+
{
|
944
|
+
const E = {
|
945
|
+
// mode
|
946
|
+
get mode() {
|
947
|
+
return "composition";
|
948
|
+
},
|
949
|
+
// allowComposition
|
950
|
+
get allowComposition() {
|
951
|
+
return r;
|
952
|
+
},
|
953
|
+
// install plugin
|
954
|
+
async install(g, ...T) {
|
955
|
+
process.env.NODE_ENV !== "production" && (g.__VUE_I18N__ = E), g.__VUE_I18N_SYMBOL__ = c, g.provide(g.__VUE_I18N_SYMBOL__, E), n && xn(g, E.global), bn(g, E, ...T);
|
956
|
+
const F = g.unmount;
|
957
|
+
if (g.unmount = () => {
|
958
|
+
E.dispose(), F();
|
959
|
+
}, process.env.NODE_ENV !== "production") {
|
960
|
+
if (!await vn(g, E))
|
961
|
+
throw L(f.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
962
|
+
const y = Ge();
|
963
|
+
{
|
964
|
+
const k = l;
|
965
|
+
k[H] && k[H](y);
|
966
|
+
}
|
967
|
+
y.on("*", ce);
|
968
|
+
}
|
969
|
+
},
|
970
|
+
// global accessor
|
971
|
+
get global() {
|
972
|
+
return l;
|
973
|
+
},
|
974
|
+
dispose() {
|
975
|
+
i.stop();
|
976
|
+
},
|
977
|
+
// @internal
|
978
|
+
__instances: a,
|
979
|
+
// @internal
|
980
|
+
__getInstance: _,
|
981
|
+
// @internal
|
982
|
+
__setInstance: m,
|
983
|
+
// @internal
|
984
|
+
__deleteInstance: N
|
985
|
+
};
|
986
|
+
return E;
|
987
|
+
}
|
988
|
+
}
|
989
|
+
function ge(e = {}) {
|
990
|
+
const t = _e();
|
991
|
+
if (t == null)
|
992
|
+
throw L(f.MUST_BE_CALL_SETUP_TOP);
|
993
|
+
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
994
|
+
throw L(f.NOT_INSLALLED);
|
995
|
+
const n = Fn(t), r = kn(n), a = Xe(t), i = An(e, a);
|
996
|
+
if (i === "global")
|
997
|
+
return fn(r, e, a), r;
|
998
|
+
if (i === "parent") {
|
999
|
+
let _ = Un(n, t, e.__useComponent);
|
1000
|
+
return _ == null && (process.env.NODE_ENV !== "production" && q(J(P.NOT_FOUND_PARENT_SCOPE)), _ = r), _;
|
1001
|
+
}
|
1002
|
+
const l = n;
|
1003
|
+
let c = l.__getInstance(t);
|
1004
|
+
if (c == null) {
|
1005
|
+
const _ = S({}, e);
|
1006
|
+
"__i18n" in a && (_.__i18n = a.__i18n), r && (_.__root = r), c = Ke(_), Mn(l, t, c), l.__setInstance(t, c);
|
1007
|
+
}
|
1008
|
+
return c;
|
1009
|
+
}
|
1010
|
+
function yn(e, t, n) {
|
1011
|
+
const r = nn();
|
1012
|
+
{
|
1013
|
+
const a = r.run(() => Ke(e));
|
1014
|
+
if (a == null)
|
1015
|
+
throw L(f.UNEXPECTED_ERROR);
|
1016
|
+
return [r, a];
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
function Fn(e) {
|
1020
|
+
{
|
1021
|
+
const t = Qt(e.isCE ? Vn : e.appContext.app.__VUE_I18N_SYMBOL__);
|
1022
|
+
if (!t)
|
1023
|
+
throw L(e.isCE ? f.NOT_INSLALLED_WITH_PROVIDE : f.UNEXPECTED_ERROR);
|
1024
|
+
return t;
|
1025
|
+
}
|
1026
|
+
}
|
1027
|
+
function An(e, t) {
|
1028
|
+
return yt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
1029
|
+
}
|
1030
|
+
function kn(e) {
|
1031
|
+
return e.mode === "composition" ? e.global : e.global.__composer;
|
1032
|
+
}
|
1033
|
+
function Un(e, t, n = !1) {
|
1034
|
+
let r = null;
|
1035
|
+
const a = t.root;
|
1036
|
+
let i = t.parent;
|
1037
|
+
for (; i != null; ) {
|
1038
|
+
const l = e;
|
1039
|
+
if (e.mode === "composition" && (r = l.__getInstance(i)), r != null || a === i)
|
1040
|
+
break;
|
1041
|
+
i = i.parent;
|
1042
|
+
}
|
1043
|
+
return r;
|
1044
|
+
}
|
1045
|
+
function Mn(e, t, n) {
|
1046
|
+
let r = null;
|
1047
|
+
zt(() => {
|
1048
|
+
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
1049
|
+
t.vnode.el.__VUE_I18N__ = n, r = Ge();
|
1050
|
+
const a = n;
|
1051
|
+
a[H] && a[H](r), r.on("*", ce);
|
1052
|
+
}
|
1053
|
+
}, t), Zt(() => {
|
1054
|
+
if (process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
1055
|
+
r && r.off("*", ce);
|
1056
|
+
const a = n;
|
1057
|
+
a[re] && a[re](), delete t.vnode.el.__VUE_I18N__;
|
1058
|
+
}
|
1059
|
+
e.__deleteInstance(t);
|
1060
|
+
}, t);
|
1061
|
+
}
|
1062
|
+
const wn = [
|
1063
|
+
"locale",
|
1064
|
+
"fallbackLocale",
|
1065
|
+
"availableLocales"
|
1066
|
+
], Wn = ["t", "rt", "d", "n", "tm"];
|
1067
|
+
function xn(e, t) {
|
1068
|
+
const n = /* @__PURE__ */ Object.create(null);
|
1069
|
+
wn.forEach((r) => {
|
1070
|
+
const a = Object.getOwnPropertyDescriptor(t, r);
|
1071
|
+
if (!a)
|
1072
|
+
throw L(f.UNEXPECTED_ERROR);
|
1073
|
+
const i = on(a.value) ? {
|
1074
|
+
get() {
|
1075
|
+
return a.value.value;
|
1076
|
+
},
|
1077
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
1078
|
+
set(l) {
|
1079
|
+
a.value.value = l;
|
1080
|
+
}
|
1081
|
+
} : {
|
1082
|
+
get() {
|
1083
|
+
return a.get && a.get();
|
1084
|
+
}
|
1085
|
+
};
|
1086
|
+
Object.defineProperty(n, r, i);
|
1087
|
+
}), e.config.globalProperties.$i18n = n, Wn.forEach((r) => {
|
1088
|
+
const a = Object.getOwnPropertyDescriptor(t, r);
|
1089
|
+
if (!a || !a.value)
|
1090
|
+
throw L(f.UNEXPECTED_ERROR);
|
1091
|
+
Object.defineProperty(e.config.globalProperties, `$${r}`, a);
|
1092
|
+
});
|
1093
|
+
}
|
1094
|
+
At(xt);
|
1095
|
+
kt(Ye);
|
1096
|
+
sn();
|
1097
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1098
|
+
const e = xe();
|
1099
|
+
e.__INTLIFY__ = !0, Ut(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
1100
|
+
}
|
1101
|
+
process.env.NODE_ENV;
|
1102
|
+
export {
|
1103
|
+
Ue as DatetimeFormat,
|
1104
|
+
Vn as I18nInjectionKey,
|
1105
|
+
ke as NumberFormat,
|
1106
|
+
ee as Translation,
|
1107
|
+
rn as VERSION,
|
1108
|
+
Qn as createI18n,
|
1109
|
+
ge as useI18n,
|
1110
|
+
Nn as vTDirective
|
1111
|
+
};
|