@linagora/linid-im-front-corelib 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core-lib.es.js +617 -598
- package/dist/core-lib.umd.js +8 -8
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/index.d.ts +5 -3
- package/dist/types/src/lifecycle/skeleton.d.ts +7 -4
- package/dist/types/src/stores/linidUiStore.d.ts +20 -0
- package/dist/types/src/types/linidRoute.d.ts +2 -0
- package/dist/types/src/types/linidUi.d.ts +11 -0
- package/dist/types/src/types/moduleLifecycle.d.ts +7 -4
- package/dist/types/src/types/page.d.ts +2 -2
- package/dist/types/src/types/uiDesign.d.ts +19 -3
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Mt from "vue";
|
|
2
|
-
import { defineAsyncComponent as Mr, hasInjectionContext as Gt, inject as at, getCurrentInstance as Fr, ref as Be, reactive as wr, markRaw as xe, effectScope as Ur, isRef as Ke, isReactive as rn, toRef as Ft, toRaw as Vr, nextTick as
|
|
2
|
+
import { defineAsyncComponent as Mr, hasInjectionContext as Gt, inject as at, getCurrentInstance as Fr, ref as Be, reactive as wr, markRaw as xe, effectScope as Ur, isRef as Ke, isReactive as rn, toRef as Ft, toRaw as Vr, nextTick as Nn, computed as ge, getCurrentScope as $r, onScopeDispose as Wr, watch as Yt, toRefs as gn, defineComponent as Ot, watchEffect as Gr, createElementBlock as On, openBlock as wt, Fragment as it, renderSlot as Yr, createCommentVNode as Hr, renderList as xr, createBlock as jr, resolveDynamicComponent as Br, mergeProps as Kr, createElementVNode as Xr, shallowRef as qr, onMounted as Qr, onUnmounted as Jr, h as tr, createVNode as Zr, Text as zr } from "vue";
|
|
3
3
|
let lt = null;
|
|
4
|
-
function
|
|
4
|
+
function Ua(e) {
|
|
5
5
|
if (lt !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -25,8 +25,8 @@ const ts = (e) => Mr(
|
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
27
|
const Me = typeof window < "u";
|
|
28
|
-
let
|
|
29
|
-
const ct = (e) =>
|
|
28
|
+
let be;
|
|
29
|
+
const ct = (e) => be = e;
|
|
30
30
|
process.env.NODE_ENV;
|
|
31
31
|
const Ht = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
32
32
|
/* istanbul ignore next */
|
|
@@ -39,19 +39,19 @@ var je;
|
|
|
39
39
|
(function(e) {
|
|
40
40
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
41
41
|
})(je || (je = {}));
|
|
42
|
-
function
|
|
42
|
+
function nr(e, t) {
|
|
43
43
|
for (const n in t) {
|
|
44
44
|
const r = t[n];
|
|
45
45
|
if (!(n in e))
|
|
46
46
|
continue;
|
|
47
47
|
const s = e[n];
|
|
48
|
-
ve(s) && ve(r) && !Ke(r) && !rn(r) ? e[n] =
|
|
48
|
+
ve(s) && ve(r) && !Ke(r) && !rn(r) ? e[n] = nr(s, r) : e[n] = r;
|
|
49
49
|
}
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const rr = () => {
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function Ln(e, t, n, r = rr) {
|
|
55
55
|
e.add(t);
|
|
56
56
|
const s = () => {
|
|
57
57
|
e.delete(t) && r();
|
|
@@ -63,7 +63,7 @@ function Re(e, ...t) {
|
|
|
63
63
|
n(...t);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
const ns = (e) => e(),
|
|
66
|
+
const ns = (e) => e(), hn = Symbol(), Ut = Symbol();
|
|
67
67
|
function xt(e, t) {
|
|
68
68
|
e instanceof Map && t instanceof Map ? t.forEach((n, r) => e.set(r, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
69
69
|
for (const n in t) {
|
|
@@ -82,18 +82,18 @@ function ss(e) {
|
|
|
82
82
|
return !ve(e) || !Object.prototype.hasOwnProperty.call(e, rs);
|
|
83
83
|
}
|
|
84
84
|
const { assign: re } = Object;
|
|
85
|
-
function
|
|
85
|
+
function Tn(e) {
|
|
86
86
|
return !!(Ke(e) && e.effect);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function In(e, t, n, r) {
|
|
89
89
|
const { state: s, actions: o, getters: i } = t, c = n.state.value[e];
|
|
90
90
|
let u;
|
|
91
91
|
function p() {
|
|
92
92
|
!c && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = s ? s() : {});
|
|
93
93
|
const L = process.env.NODE_ENV !== "production" && r ? (
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
95
|
-
|
|
96
|
-
) :
|
|
95
|
+
gn(Be(s ? s() : {}).value)
|
|
96
|
+
) : gn(n.state.value[e]);
|
|
97
97
|
return re(L, o, Object.keys(i || {}).reduce((T, g) => (process.env.NODE_ENV !== "production" && g in L && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), T[g] = xe(ge(() => {
|
|
98
98
|
ct(n);
|
|
99
99
|
const v = n._s.get(e);
|
|
@@ -108,28 +108,28 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
108
108
|
if (process.env.NODE_ENV !== "production" && !r._e.active)
|
|
109
109
|
throw new Error("Pinia destroyed");
|
|
110
110
|
const u = { deep: !0 };
|
|
111
|
-
process.env.NODE_ENV !== "production" && (u.onTrigger = (
|
|
112
|
-
p ? v =
|
|
111
|
+
process.env.NODE_ENV !== "production" && (u.onTrigger = (C) => {
|
|
112
|
+
p ? v = C : p == !1 && !f._hotUpdating && (Array.isArray(v) ? v.push(C) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
113
113
|
});
|
|
114
114
|
let p, L, T = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), v;
|
|
115
115
|
const R = r.state.value[e];
|
|
116
116
|
!o && !R && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = {});
|
|
117
117
|
const S = Be({});
|
|
118
118
|
let P;
|
|
119
|
-
function _(
|
|
119
|
+
function _(C) {
|
|
120
120
|
let A;
|
|
121
|
-
p = L = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
|
121
|
+
p = L = !1, process.env.NODE_ENV !== "production" && (v = []), typeof C == "function" ? (C(r.state.value[e]), A = {
|
|
122
122
|
type: je.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
124
|
events: v
|
|
125
|
-
}) : (xt(r.state.value[e],
|
|
125
|
+
}) : (xt(r.state.value[e], C), A = {
|
|
126
126
|
type: je.patchObject,
|
|
127
|
-
payload:
|
|
127
|
+
payload: C,
|
|
128
128
|
storeId: e,
|
|
129
129
|
events: v
|
|
130
130
|
});
|
|
131
131
|
const M = P = Symbol();
|
|
132
|
-
|
|
132
|
+
Nn().then(() => {
|
|
133
133
|
P === M && (p = !0);
|
|
134
134
|
}), L = !0, Re(T, A, r.state.value[e]);
|
|
135
135
|
}
|
|
@@ -142,14 +142,14 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
142
142
|
/* istanbul ignore next */
|
|
143
143
|
process.env.NODE_ENV !== "production" ? () => {
|
|
144
144
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
145
|
-
} :
|
|
145
|
+
} : rr
|
|
146
146
|
);
|
|
147
147
|
function h() {
|
|
148
148
|
i.stop(), T.clear(), g.clear(), r._s.delete(e);
|
|
149
149
|
}
|
|
150
|
-
const m = (
|
|
151
|
-
if (
|
|
152
|
-
return
|
|
150
|
+
const m = (C, A = "") => {
|
|
151
|
+
if (hn in C)
|
|
152
|
+
return C[Ut] = A, C;
|
|
153
153
|
const M = function() {
|
|
154
154
|
ct(r);
|
|
155
155
|
const X = Array.from(arguments), fe = /* @__PURE__ */ new Set(), he = /* @__PURE__ */ new Set();
|
|
@@ -168,28 +168,28 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
168
168
|
});
|
|
169
169
|
let _e;
|
|
170
170
|
try {
|
|
171
|
-
_e =
|
|
171
|
+
_e = C.apply(this && this.$id === e ? this : f, X);
|
|
172
172
|
} catch (Z) {
|
|
173
173
|
throw Re(he, Z), Z;
|
|
174
174
|
}
|
|
175
175
|
return _e instanceof Promise ? _e.then((Z) => (Re(fe, Z), Z)).catch((Z) => (Re(he, Z), Promise.reject(Z))) : (Re(fe, _e), _e);
|
|
176
176
|
};
|
|
177
|
-
return M[
|
|
177
|
+
return M[hn] = !0, M[Ut] = A, M;
|
|
178
178
|
}, I = /* @__PURE__ */ xe({
|
|
179
179
|
actions: {},
|
|
180
180
|
getters: {},
|
|
181
181
|
state: [],
|
|
182
182
|
hotState: S
|
|
183
|
-
}),
|
|
183
|
+
}), b = {
|
|
184
184
|
_p: r,
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
187
|
-
$onAction:
|
|
187
|
+
$onAction: Ln.bind(null, g),
|
|
188
188
|
$patch: _,
|
|
189
189
|
$reset: E,
|
|
190
|
-
$subscribe(
|
|
191
|
-
const M =
|
|
192
|
-
(A.flush === "sync" ? L : p) &&
|
|
190
|
+
$subscribe(C, A = {}) {
|
|
191
|
+
const M = Ln(T, C, A.detached, () => X()), X = i.run(() => Yt(() => r.state.value[e], (fe) => {
|
|
192
|
+
(A.flush === "sync" ? L : p) && C({
|
|
193
193
|
storeId: e,
|
|
194
194
|
type: je.direct,
|
|
195
195
|
events: v
|
|
@@ -204,53 +204,53 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
204
204
|
_customProperties: xe(/* @__PURE__ */ new Set())
|
|
205
205
|
// devtools custom properties
|
|
206
206
|
},
|
|
207
|
-
|
|
207
|
+
b
|
|
208
208
|
// must be added later
|
|
209
209
|
// setupStore
|
|
210
|
-
) :
|
|
210
|
+
) : b);
|
|
211
211
|
r._s.set(e, f);
|
|
212
212
|
const F = (r._a && r._a.runWithContext || ns)(() => r._e.run(() => (i = Ur()).run(() => t({ action: m }))));
|
|
213
|
-
for (const
|
|
214
|
-
const A = F[
|
|
215
|
-
if (Ke(A) && !
|
|
216
|
-
process.env.NODE_ENV !== "production" && s ? S.value[
|
|
213
|
+
for (const C in F) {
|
|
214
|
+
const A = F[C];
|
|
215
|
+
if (Ke(A) && !Tn(A) || rn(A))
|
|
216
|
+
process.env.NODE_ENV !== "production" && s ? S.value[C] = Ft(F, C) : o || (R && ss(A) && (Ke(A) ? A.value = R[C] : xt(A, R[C])), r.state.value[e][C] = A), process.env.NODE_ENV !== "production" && I.state.push(C);
|
|
217
217
|
else if (typeof A == "function") {
|
|
218
|
-
const M = process.env.NODE_ENV !== "production" && s ? A : m(A,
|
|
219
|
-
F[
|
|
220
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
218
|
+
const M = process.env.NODE_ENV !== "production" && s ? A : m(A, C);
|
|
219
|
+
F[C] = M, process.env.NODE_ENV !== "production" && (I.actions[C] = A), c.actions[C] = A;
|
|
220
|
+
} else process.env.NODE_ENV !== "production" && Tn(A) && (I.getters[C] = o ? (
|
|
221
221
|
// @ts-expect-error
|
|
222
|
-
n.getters[
|
|
222
|
+
n.getters[C]
|
|
223
223
|
) : A, Me && (F._getters || // @ts-expect-error: same
|
|
224
|
-
(F._getters = xe([]))).push(
|
|
224
|
+
(F._getters = xe([]))).push(C));
|
|
225
225
|
}
|
|
226
226
|
if (re(f, F), re(Vr(f), F), Object.defineProperty(f, "$state", {
|
|
227
227
|
get: () => process.env.NODE_ENV !== "production" && s ? S.value : r.state.value[e],
|
|
228
|
-
set: (
|
|
228
|
+
set: (C) => {
|
|
229
229
|
if (process.env.NODE_ENV !== "production" && s)
|
|
230
230
|
throw new Error("cannot set hotState");
|
|
231
231
|
_((A) => {
|
|
232
|
-
re(A,
|
|
232
|
+
re(A, C);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
}), process.env.NODE_ENV !== "production" && (f._hotUpdate = xe((
|
|
236
|
-
f._hotUpdating = !0,
|
|
235
|
+
}), process.env.NODE_ENV !== "production" && (f._hotUpdate = xe((C) => {
|
|
236
|
+
f._hotUpdating = !0, C._hmrPayload.state.forEach((A) => {
|
|
237
237
|
if (A in f.$state) {
|
|
238
|
-
const M =
|
|
239
|
-
typeof M == "object" && ve(M) && ve(X) ?
|
|
238
|
+
const M = C.$state[A], X = f.$state[A];
|
|
239
|
+
typeof M == "object" && ve(M) && ve(X) ? nr(M, X) : C.$state[A] = X;
|
|
240
240
|
}
|
|
241
|
-
f[A] = Ft(
|
|
241
|
+
f[A] = Ft(C.$state, A);
|
|
242
242
|
}), Object.keys(f.$state).forEach((A) => {
|
|
243
|
-
A in
|
|
244
|
-
}), p = !1, L = !1, r.state.value[e] = Ft(
|
|
243
|
+
A in C.$state || delete f[A];
|
|
244
|
+
}), p = !1, L = !1, r.state.value[e] = Ft(C._hmrPayload, "hotState"), L = !0, Nn().then(() => {
|
|
245
245
|
p = !0;
|
|
246
246
|
});
|
|
247
|
-
for (const A in
|
|
248
|
-
const M =
|
|
247
|
+
for (const A in C._hmrPayload.actions) {
|
|
248
|
+
const M = C[A];
|
|
249
249
|
f[A] = //
|
|
250
250
|
m(M, A);
|
|
251
251
|
}
|
|
252
|
-
for (const A in
|
|
253
|
-
const M =
|
|
252
|
+
for (const A in C._hmrPayload.getters) {
|
|
253
|
+
const M = C._hmrPayload.getters[A], X = o ? (
|
|
254
254
|
// special handling of options api
|
|
255
255
|
ge(() => (ct(r), M.call(f, f)))
|
|
256
256
|
) : M;
|
|
@@ -258,24 +258,24 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
258
258
|
X;
|
|
259
259
|
}
|
|
260
260
|
Object.keys(f._hmrPayload.getters).forEach((A) => {
|
|
261
|
-
A in
|
|
261
|
+
A in C._hmrPayload.getters || delete f[A];
|
|
262
262
|
}), Object.keys(f._hmrPayload.actions).forEach((A) => {
|
|
263
|
-
A in
|
|
264
|
-
}), f._hmrPayload =
|
|
263
|
+
A in C._hmrPayload.actions || delete f[A];
|
|
264
|
+
}), f._hmrPayload = C._hmrPayload, f._getters = C._getters, f._hotUpdating = !1;
|
|
265
265
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Me) {
|
|
266
|
-
const
|
|
266
|
+
const C = {
|
|
267
267
|
writable: !0,
|
|
268
268
|
configurable: !0,
|
|
269
269
|
// avoid warning on devtools trying to display this property
|
|
270
270
|
enumerable: !1
|
|
271
271
|
};
|
|
272
272
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((A) => {
|
|
273
|
-
Object.defineProperty(f, A, re({ value: f[A] },
|
|
273
|
+
Object.defineProperty(f, A, re({ value: f[A] }, C));
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
return r._p.forEach((
|
|
276
|
+
return r._p.forEach((C) => {
|
|
277
277
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Me) {
|
|
278
|
-
const A = i.run(() =>
|
|
278
|
+
const A = i.run(() => C({
|
|
279
279
|
store: f,
|
|
280
280
|
app: r._a,
|
|
281
281
|
pinia: r,
|
|
@@ -283,7 +283,7 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
283
283
|
}));
|
|
284
284
|
Object.keys(A || {}).forEach((M) => f._customProperties.add(M)), re(f, A);
|
|
285
285
|
} else
|
|
286
|
-
re(f, i.run(() =>
|
|
286
|
+
re(f, i.run(() => C({
|
|
287
287
|
store: f,
|
|
288
288
|
app: r._a,
|
|
289
289
|
pinia: r,
|
|
@@ -294,7 +294,7 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
294
294
|
Found in store "${f.$id}".`), R && o && n.hydrate && n.hydrate(f.$state, R), p = !0, L = !0, f;
|
|
295
295
|
}
|
|
296
296
|
// @__NO_SIDE_EFFECTS__
|
|
297
|
-
function
|
|
297
|
+
function sn(e, t, n) {
|
|
298
298
|
let r;
|
|
299
299
|
const s = typeof t == "function";
|
|
300
300
|
r = s ? n : t;
|
|
@@ -302,14 +302,14 @@ function nr(e, t, n) {
|
|
|
302
302
|
const u = Gt();
|
|
303
303
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
304
304
|
// pinia instance with getActivePinia()
|
|
305
|
-
(process.env.NODE_ENV === "test" &&
|
|
305
|
+
(process.env.NODE_ENV === "test" && be && be._testing ? null : i) || (u ? at(Ht, null) : null), i && ct(i), process.env.NODE_ENV !== "production" && !be)
|
|
306
306
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
307
307
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
308
308
|
This will fail in production.`);
|
|
309
|
-
i =
|
|
309
|
+
i = be, i._s.has(e) || (s ? jt(e, t, r, i) : In(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
310
|
const p = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && c) {
|
|
312
|
-
const L = "__hot:" + e, T = s ? jt(L, t, r, i, !0) :
|
|
312
|
+
const L = "__hot:" + e, T = s ? jt(L, t, r, i, !0) : In(L, re({}, r), i, !0);
|
|
313
313
|
c._hotUpdate(T), delete i.state.value[L], i._s.delete(L);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && Me) {
|
|
@@ -325,7 +325,7 @@ This will fail in production.`);
|
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let ut = null;
|
|
328
|
-
function
|
|
328
|
+
function Va(e) {
|
|
329
329
|
if (ut !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -334,14 +334,14 @@ function Fa(e) {
|
|
|
334
334
|
}
|
|
335
335
|
ut = e;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function on() {
|
|
338
338
|
if (ut === null)
|
|
339
339
|
throw new Error(
|
|
340
340
|
"[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first."
|
|
341
341
|
);
|
|
342
342
|
return ut;
|
|
343
343
|
}
|
|
344
|
-
const os = () => as(
|
|
344
|
+
const os = () => as(on()), as = /* @__PURE__ */ sn("linidZoneStore", {
|
|
345
345
|
state: () => ({
|
|
346
346
|
zones: {}
|
|
347
347
|
}),
|
|
@@ -355,7 +355,7 @@ const os = () => as(rr()), as = /* @__PURE__ */ nr("linidZoneStore", {
|
|
|
355
355
|
this.zones[e] || (this.zones[e] = []), this.zones[e].push(t);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
}),
|
|
358
|
+
}), $a = /* @__PURE__ */ Ot({
|
|
359
359
|
__name: "LinidZoneRenderer",
|
|
360
360
|
props: {
|
|
361
361
|
zone: {}
|
|
@@ -371,8 +371,8 @@ const os = () => as(rr()), as = /* @__PURE__ */ nr("linidZoneStore", {
|
|
|
371
371
|
})), Promise.resolve().then(() => {
|
|
372
372
|
s.value = !0;
|
|
373
373
|
});
|
|
374
|
-
}), (o, i) => (wt(),
|
|
375
|
-
(wt(!0),
|
|
374
|
+
}), (o, i) => (wt(), On(it, null, [
|
|
375
|
+
(wt(!0), On(it, null, xr(r.value, (c, u) => (wt(), jr(Br(c.component), Kr({
|
|
376
376
|
key: c.plugin + u
|
|
377
377
|
}, { ref_for: !0 }, c.props), null, 16))), 128)),
|
|
378
378
|
s.value && r.value.length === 0 ? Yr(o.$slots, "default", { key: 0 }, () => [
|
|
@@ -381,7 +381,7 @@ const os = () => as(rr()), as = /* @__PURE__ */ nr("linidZoneStore", {
|
|
|
381
381
|
], 64));
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
function
|
|
384
|
+
function Wa() {
|
|
385
385
|
function e(n) {
|
|
386
386
|
return {
|
|
387
387
|
page: (n.page || 1) - 1,
|
|
@@ -402,178 +402,12 @@ function Ua() {
|
|
|
402
402
|
toQuasarPagination: t
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
let ft = null;
|
|
406
|
-
function Va(e) {
|
|
407
|
-
if (ft !== null) {
|
|
408
|
-
console.warn(
|
|
409
|
-
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
410
|
-
);
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
ft = e;
|
|
414
|
-
}
|
|
415
|
-
function is() {
|
|
416
|
-
if (ft === null)
|
|
417
|
-
throw new Error(
|
|
418
|
-
"[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first."
|
|
419
|
-
);
|
|
420
|
-
return ft;
|
|
421
|
-
}
|
|
422
|
-
const ls = [
|
|
423
|
-
"icon",
|
|
424
|
-
"iconRight",
|
|
425
|
-
"noCaps",
|
|
426
|
-
"noWrap",
|
|
427
|
-
"align",
|
|
428
|
-
"stack",
|
|
429
|
-
"stretch",
|
|
430
|
-
"size",
|
|
431
|
-
"outline",
|
|
432
|
-
"flat",
|
|
433
|
-
"unelevated",
|
|
434
|
-
"rounded",
|
|
435
|
-
"push",
|
|
436
|
-
"square",
|
|
437
|
-
"glossy",
|
|
438
|
-
"fab",
|
|
439
|
-
"fabMini",
|
|
440
|
-
"padding",
|
|
441
|
-
"color",
|
|
442
|
-
"textColor",
|
|
443
|
-
"dense",
|
|
444
|
-
"ripple",
|
|
445
|
-
"round"
|
|
446
|
-
], cs = [
|
|
447
|
-
"vertical",
|
|
448
|
-
"outsideArrows",
|
|
449
|
-
"mobileArrows",
|
|
450
|
-
"align",
|
|
451
|
-
"breakpoint",
|
|
452
|
-
"leftIcon",
|
|
453
|
-
"rightIcon",
|
|
454
|
-
"stretch",
|
|
455
|
-
"shrink",
|
|
456
|
-
"switchIndicator",
|
|
457
|
-
"narrowIndicator",
|
|
458
|
-
"inlineLabel",
|
|
459
|
-
"noCaps",
|
|
460
|
-
"activeColor",
|
|
461
|
-
"activeBgColor",
|
|
462
|
-
"indicatorColor",
|
|
463
|
-
"contentClass",
|
|
464
|
-
"activeClass",
|
|
465
|
-
"dense"
|
|
466
|
-
], us = [
|
|
467
|
-
"icon",
|
|
468
|
-
"activeClass",
|
|
469
|
-
"exactActiveClass",
|
|
470
|
-
"noCaps",
|
|
471
|
-
"alert",
|
|
472
|
-
"contentClass",
|
|
473
|
-
"ripple"
|
|
474
|
-
], fs = [
|
|
475
|
-
"reveal",
|
|
476
|
-
"revealOffset",
|
|
477
|
-
"elevated",
|
|
478
|
-
"bordered"
|
|
479
|
-
], _s = ["inset"], ds = ["shrink"], ms = [
|
|
480
|
-
"icon",
|
|
481
|
-
"size",
|
|
482
|
-
"fontSize",
|
|
483
|
-
"color",
|
|
484
|
-
"textColor",
|
|
485
|
-
"square",
|
|
486
|
-
"rounded"
|
|
487
|
-
], Es = [
|
|
488
|
-
"floating",
|
|
489
|
-
"multiLine",
|
|
490
|
-
"align",
|
|
491
|
-
"color",
|
|
492
|
-
"textColor",
|
|
493
|
-
"transparent",
|
|
494
|
-
"outline",
|
|
495
|
-
"rounded"
|
|
496
|
-
], ps = [
|
|
497
|
-
"virtualScrollItemSize",
|
|
498
|
-
"virtualScrollStickySizeStart",
|
|
499
|
-
"virtualScrollStickySizeEnd",
|
|
500
|
-
"color",
|
|
501
|
-
"iconFirstPage",
|
|
502
|
-
"iconPrevPage",
|
|
503
|
-
"iconNextPage",
|
|
504
|
-
"iconLastPage",
|
|
505
|
-
"grid",
|
|
506
|
-
"gridHeader",
|
|
507
|
-
"dense",
|
|
508
|
-
"hideHeader",
|
|
509
|
-
"hideBottom",
|
|
510
|
-
"hideSelectedBanner",
|
|
511
|
-
"hideNoData",
|
|
512
|
-
"hidePagination",
|
|
513
|
-
"flat",
|
|
514
|
-
"bordered",
|
|
515
|
-
"square",
|
|
516
|
-
"separator",
|
|
517
|
-
"wrapCells",
|
|
518
|
-
"tableStyle",
|
|
519
|
-
"tableClass",
|
|
520
|
-
"tableHeaderStyle",
|
|
521
|
-
"tableHeaderClass",
|
|
522
|
-
"cardContainerStyle",
|
|
523
|
-
"cardContainerClass",
|
|
524
|
-
"cardStyle",
|
|
525
|
-
"cardClass",
|
|
526
|
-
"titleClass"
|
|
527
|
-
], Tn = {
|
|
528
|
-
"q-btn": ls,
|
|
529
|
-
"q-tabs": cs,
|
|
530
|
-
"q-route-tab": us,
|
|
531
|
-
"q-header": fs,
|
|
532
|
-
"q-toolbar": _s,
|
|
533
|
-
"q-toolbar-title": ds,
|
|
534
|
-
"q-avatar": ms,
|
|
535
|
-
"q-badge": Es,
|
|
536
|
-
"q-table": ps
|
|
537
|
-
};
|
|
538
|
-
function In(e, t) {
|
|
539
|
-
return t.split(".").reduce((n, r) => {
|
|
540
|
-
if (n && typeof n == "object")
|
|
541
|
-
return n[r];
|
|
542
|
-
}, e);
|
|
543
|
-
}
|
|
544
|
-
function Ns(e, t, n) {
|
|
545
|
-
let r = In(e, `${t}.${n}`);
|
|
546
|
-
if (r === void 0 && (r = In(e, `default.${n}`)), typeof r == "object")
|
|
547
|
-
throw new Error(
|
|
548
|
-
`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`
|
|
549
|
-
);
|
|
550
|
-
return r;
|
|
551
|
-
}
|
|
552
|
-
function gs(e) {
|
|
553
|
-
if (!(e in Tn))
|
|
554
|
-
throw new Error(
|
|
555
|
-
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
556
|
-
);
|
|
557
|
-
return Tn[e];
|
|
558
|
-
}
|
|
559
|
-
function $a() {
|
|
560
|
-
const e = ge(() => is());
|
|
561
|
-
function t(n, r, s) {
|
|
562
|
-
const o = gs(r), i = {};
|
|
563
|
-
for (const c of o) {
|
|
564
|
-
const u = s?.[c] ?? Ns(e.value, n, `${r}.${String(c)}`);
|
|
565
|
-
u !== void 0 && (i[c] = u);
|
|
566
|
-
}
|
|
567
|
-
return i;
|
|
568
|
-
}
|
|
569
|
-
return { ui: t };
|
|
570
|
-
}
|
|
571
405
|
function ue(e, t) {
|
|
572
406
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
573
407
|
}
|
|
574
|
-
const
|
|
575
|
-
function
|
|
576
|
-
|
|
408
|
+
const Cn = {};
|
|
409
|
+
function is(e) {
|
|
410
|
+
Cn[e] || (Cn[e] = !0, ue(e));
|
|
577
411
|
}
|
|
578
412
|
const pe = typeof window < "u";
|
|
579
413
|
let ne, Se;
|
|
@@ -586,20 +420,20 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
586
420
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
587
421
|
});
|
|
588
422
|
}
|
|
589
|
-
const
|
|
423
|
+
const ls = /\{([0-9a-zA-Z]+)\}/g;
|
|
590
424
|
function Lt(e, ...t) {
|
|
591
|
-
return t.length === 1 && $(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
425
|
+
return t.length === 1 && $(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ls, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
592
426
|
}
|
|
593
|
-
const Ne = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
594
|
-
let
|
|
595
|
-
const Ae = () =>
|
|
427
|
+
const Ne = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), cs = (e, t, n) => us({ l: e, k: t, s: n }), us = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), q = (e) => typeof e == "number" && isFinite(e), fs = (e) => an(e) === "[object Date]", ft = (e) => an(e) === "[object RegExp]", ht = (e) => V(e) && Object.keys(e).length === 0, Q = Object.assign, _s = Object.create, G = (e = null) => _s(e);
|
|
428
|
+
let bn;
|
|
429
|
+
const Ae = () => bn || (bn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : G());
|
|
596
430
|
function An(e) {
|
|
597
431
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
598
432
|
}
|
|
599
433
|
function vn(e) {
|
|
600
434
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
601
435
|
}
|
|
602
|
-
function
|
|
436
|
+
function ds(e) {
|
|
603
437
|
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${vn(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, o) => `${s}='${vn(o)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ue("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
604
438
|
// In href, src, action, formaction attributes
|
|
605
439
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
@@ -609,16 +443,16 @@ function Cs(e) {
|
|
|
609
443
|
e = e.replace(r, "$1javascript:");
|
|
610
444
|
}), e;
|
|
611
445
|
}
|
|
612
|
-
const
|
|
446
|
+
const ms = Object.prototype.hasOwnProperty;
|
|
613
447
|
function oe(e, t) {
|
|
614
|
-
return
|
|
448
|
+
return ms.call(e, t);
|
|
615
449
|
}
|
|
616
|
-
const K = Array.isArray, H = (e) => typeof e == "function", y = (e) => typeof e == "string", B = (e) => typeof e == "boolean", $ = (e) => e !== null && typeof e == "object",
|
|
617
|
-
function
|
|
450
|
+
const K = Array.isArray, H = (e) => typeof e == "function", y = (e) => typeof e == "string", B = (e) => typeof e == "boolean", $ = (e) => e !== null && typeof e == "object", Es = (e) => $(e) && H(e.then) && H(e.catch), sr = Object.prototype.toString, an = (e) => sr.call(e), V = (e) => an(e) === "[object Object]", ps = (e) => e == null ? "" : K(e) || V(e) && e.toString === sr ? JSON.stringify(e, null, 2) : String(e);
|
|
451
|
+
function ln(e, t = "") {
|
|
618
452
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
619
453
|
}
|
|
620
454
|
const Sn = 2;
|
|
621
|
-
function
|
|
455
|
+
function Ns(e, t = 0, n = e.length) {
|
|
622
456
|
const r = e.split(/\r?\n/);
|
|
623
457
|
let s = 0;
|
|
624
458
|
const o = [];
|
|
@@ -646,7 +480,7 @@ function ys(e, t = 0, n = e.length) {
|
|
|
646
480
|
return o.join(`
|
|
647
481
|
`);
|
|
648
482
|
}
|
|
649
|
-
function
|
|
483
|
+
function gs() {
|
|
650
484
|
const e = /* @__PURE__ */ new Map();
|
|
651
485
|
return {
|
|
652
486
|
events: e,
|
|
@@ -675,7 +509,7 @@ function ot(e, t) {
|
|
|
675
509
|
});
|
|
676
510
|
}
|
|
677
511
|
}
|
|
678
|
-
function
|
|
512
|
+
function Os(e, t, n) {
|
|
679
513
|
return { line: e, column: t, offset: n };
|
|
680
514
|
}
|
|
681
515
|
function Bt(e, t, n) {
|
|
@@ -702,7 +536,7 @@ const k = {
|
|
|
702
536
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
703
537
|
// minifier error codes
|
|
704
538
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
705
|
-
},
|
|
539
|
+
}, Ls = 17, hs = {
|
|
706
540
|
// tokenizer error messages
|
|
707
541
|
[k.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
708
542
|
[k.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -725,18 +559,18 @@ const k = {
|
|
|
725
559
|
[k.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
726
560
|
};
|
|
727
561
|
function we(e, t, n = {}) {
|
|
728
|
-
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? Lt((s ||
|
|
562
|
+
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? Lt((s || hs)[e] || "", ...o || []) : e, c = new SyntaxError(String(i));
|
|
729
563
|
return c.code = e, t && (c.location = t), c.domain = r, c;
|
|
730
564
|
}
|
|
731
|
-
function
|
|
565
|
+
function Ts(e) {
|
|
732
566
|
throw e;
|
|
733
567
|
}
|
|
734
|
-
const
|
|
735
|
-
`,
|
|
736
|
-
function
|
|
568
|
+
const Is = /<\/?[\w\s="/.':;#-\/]+>/, Cs = (e) => Is.test(e), ie = " ", bs = "\r", z = `
|
|
569
|
+
`, As = "\u2028", vs = "\u2029";
|
|
570
|
+
function Ss(e) {
|
|
737
571
|
const t = e;
|
|
738
572
|
let n = 0, r = 1, s = 1, o = 0;
|
|
739
|
-
const i = (f) => t[f] ===
|
|
573
|
+
const i = (f) => t[f] === bs && t[f + 1] === z, c = (f) => t[f] === z, u = (f) => t[f] === vs, p = (f) => t[f] === As, L = (f) => i(f) || c(f) || u(f) || p(f), T = () => n, g = () => r, v = () => s, R = () => o, S = (f) => i(f) || u(f) || p(f) ? z : t[f], P = () => S(n), _ = () => S(n + o);
|
|
740
574
|
function E() {
|
|
741
575
|
return o = 0, L(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
742
576
|
}
|
|
@@ -749,7 +583,7 @@ function Ws(e) {
|
|
|
749
583
|
function I(f = 0) {
|
|
750
584
|
o = f;
|
|
751
585
|
}
|
|
752
|
-
function
|
|
586
|
+
function b() {
|
|
753
587
|
const f = n + o;
|
|
754
588
|
for (; f !== n; )
|
|
755
589
|
E();
|
|
@@ -767,12 +601,12 @@ function Ws(e) {
|
|
|
767
601
|
peek: h,
|
|
768
602
|
reset: m,
|
|
769
603
|
resetPeek: I,
|
|
770
|
-
skipToPeek:
|
|
604
|
+
skipToPeek: b
|
|
771
605
|
};
|
|
772
606
|
}
|
|
773
|
-
const me = void 0,
|
|
774
|
-
function
|
|
775
|
-
const n = t.location !== !1, r =
|
|
607
|
+
const me = void 0, ys = ".", yn = "'", Ds = "tokenizer";
|
|
608
|
+
function Ps(e, t = {}) {
|
|
609
|
+
const n = t.location !== !1, r = Ss(e), s = () => r.index(), o = () => Os(r.line(), r.column(), r.index()), i = o(), c = s(), u = {
|
|
776
610
|
currentType: 13,
|
|
777
611
|
offset: c,
|
|
778
612
|
startLoc: i,
|
|
@@ -789,7 +623,7 @@ function Hs(e, t = {}) {
|
|
|
789
623
|
const Y = p();
|
|
790
624
|
if (l.column += N, l.offset += N, L) {
|
|
791
625
|
const x = n ? Bt(Y.startLoc, l) : null, U = we(a, x, {
|
|
792
|
-
domain:
|
|
626
|
+
domain: Ds,
|
|
793
627
|
args: D
|
|
794
628
|
});
|
|
795
629
|
L(U);
|
|
@@ -856,7 +690,7 @@ function Hs(e, t = {}) {
|
|
|
856
690
|
const D = a.currentPeek() === yn;
|
|
857
691
|
return a.resetPeek(), D;
|
|
858
692
|
}
|
|
859
|
-
function
|
|
693
|
+
function b(a, l) {
|
|
860
694
|
const { currentType: N } = l;
|
|
861
695
|
if (N !== 7)
|
|
862
696
|
return !1;
|
|
@@ -890,7 +724,7 @@ function Hs(e, t = {}) {
|
|
|
890
724
|
}, Y = D();
|
|
891
725
|
return a.resetPeek(), Y;
|
|
892
726
|
}
|
|
893
|
-
function
|
|
727
|
+
function C(a) {
|
|
894
728
|
S(a);
|
|
895
729
|
const l = a.currentPeek() === "|";
|
|
896
730
|
return a.resetPeek(), l;
|
|
@@ -951,7 +785,7 @@ function Hs(e, t = {}) {
|
|
|
951
785
|
N += l;
|
|
952
786
|
return N;
|
|
953
787
|
}
|
|
954
|
-
function
|
|
788
|
+
function bt(a) {
|
|
955
789
|
let l = "";
|
|
956
790
|
for (; ; ) {
|
|
957
791
|
const N = a.currentChar();
|
|
@@ -961,7 +795,7 @@ function Hs(e, t = {}) {
|
|
|
961
795
|
if (A(a))
|
|
962
796
|
l += N, a.next();
|
|
963
797
|
else {
|
|
964
|
-
if (
|
|
798
|
+
if (C(a))
|
|
965
799
|
break;
|
|
966
800
|
l += N, a.next();
|
|
967
801
|
}
|
|
@@ -990,7 +824,7 @@ function Hs(e, t = {}) {
|
|
|
990
824
|
function St(a) {
|
|
991
825
|
return a !== yn && a !== z;
|
|
992
826
|
}
|
|
993
|
-
function
|
|
827
|
+
function En(a) {
|
|
994
828
|
P(a), R(a, "'");
|
|
995
829
|
let l = "", N = "";
|
|
996
830
|
for (; l = M(a, St); )
|
|
@@ -1078,7 +912,7 @@ function Hs(e, t = {}) {
|
|
|
1078
912
|
return l.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, o(), 0), N = Te(a, l) || v(l), l.braceNest = 0, N;
|
|
1079
913
|
default: {
|
|
1080
914
|
let Y = !0, x = !0, U = !0;
|
|
1081
|
-
if (
|
|
915
|
+
if (C(a))
|
|
1082
916
|
return l.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, o(), 0), N = g(l, 1, We(a)), l.braceNest = 0, l.inLinked = !1, N;
|
|
1083
917
|
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
1084
918
|
return T(k.UNTERMINATED_CLOSING_BRACE, o(), 0), l.braceNest = 0, Ye(a, l);
|
|
@@ -1087,7 +921,7 @@ function Hs(e, t = {}) {
|
|
|
1087
921
|
if (x = m(a, l))
|
|
1088
922
|
return N = g(l, 5, vt(a)), P(a), N;
|
|
1089
923
|
if (U = I(a, l))
|
|
1090
|
-
return N = g(l, 6,
|
|
924
|
+
return N = g(l, 6, En(a)), P(a), N;
|
|
1091
925
|
if (!Y && !x && !U)
|
|
1092
926
|
return N = g(l, 12, et(a)), T(k.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N.value), P(a), N;
|
|
1093
927
|
break;
|
|
@@ -1122,7 +956,7 @@ function Hs(e, t = {}) {
|
|
|
1122
956
|
/* TokenChars.LinkedDelimiter */
|
|
1123
957
|
);
|
|
1124
958
|
default:
|
|
1125
|
-
return
|
|
959
|
+
return C(a) ? (D = g(l, 1, We(a)), l.braceNest = 0, l.inLinked = !1, D) : b(a, l) || w(a, l) ? (P(a), Te(a, l)) : f(a, l) ? (P(a), g(l, 11, Pt(a))) : F(a, l) ? (P(a), Y === "{" ? Ge(a, l) || D : g(l, 10, Rt(a))) : (N === 7 && T(k.INVALID_LINKED_FORMAT, o(), 0), l.braceNest = 0, l.inLinked = !1, Ye(a, l));
|
|
1126
960
|
}
|
|
1127
961
|
}
|
|
1128
962
|
function Ye(a, l) {
|
|
@@ -1147,10 +981,10 @@ function Hs(e, t = {}) {
|
|
|
1147
981
|
case "@":
|
|
1148
982
|
return Te(a, l) || v(l);
|
|
1149
983
|
default: {
|
|
1150
|
-
if (
|
|
984
|
+
if (C(a))
|
|
1151
985
|
return N = g(l, 1, We(a)), l.braceNest = 0, l.inLinked = !1, N;
|
|
1152
986
|
if (A(a))
|
|
1153
|
-
return g(l, 0,
|
|
987
|
+
return g(l, 0, bt(a));
|
|
1154
988
|
break;
|
|
1155
989
|
}
|
|
1156
990
|
}
|
|
@@ -1171,8 +1005,8 @@ function Hs(e, t = {}) {
|
|
|
1171
1005
|
context: p
|
|
1172
1006
|
};
|
|
1173
1007
|
}
|
|
1174
|
-
const
|
|
1175
|
-
function
|
|
1008
|
+
const Rs = "parser", ks = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
1009
|
+
function Ms(e, t, n) {
|
|
1176
1010
|
switch (e) {
|
|
1177
1011
|
case "\\\\":
|
|
1178
1012
|
return "\\";
|
|
@@ -1185,13 +1019,13 @@ function Bs(e, t, n) {
|
|
|
1185
1019
|
}
|
|
1186
1020
|
}
|
|
1187
1021
|
}
|
|
1188
|
-
function
|
|
1022
|
+
function Fs(e = {}) {
|
|
1189
1023
|
const t = e.location !== !1, { onError: n } = e;
|
|
1190
1024
|
function r(_, E, h, m, ...I) {
|
|
1191
|
-
const
|
|
1192
|
-
if (
|
|
1193
|
-
const f = t ? Bt(h,
|
|
1194
|
-
domain:
|
|
1025
|
+
const b = _.currentPosition();
|
|
1026
|
+
if (b.offset += m, b.column += m, n) {
|
|
1027
|
+
const f = t ? Bt(h, b) : null, w = we(E, f, {
|
|
1028
|
+
domain: Rs,
|
|
1195
1029
|
args: I
|
|
1196
1030
|
});
|
|
1197
1031
|
n(w);
|
|
@@ -1209,24 +1043,24 @@ function Ks(e = {}) {
|
|
|
1209
1043
|
return m.value = E, o(m, _.currentOffset(), _.currentPosition()), m;
|
|
1210
1044
|
}
|
|
1211
1045
|
function c(_, E) {
|
|
1212
|
-
const h = _.context(), { lastOffset: m, lastStartLoc: I } = h,
|
|
1213
|
-
return
|
|
1046
|
+
const h = _.context(), { lastOffset: m, lastStartLoc: I } = h, b = s(5, m, I);
|
|
1047
|
+
return b.index = parseInt(E, 10), _.nextToken(), o(b, _.currentOffset(), _.currentPosition()), b;
|
|
1214
1048
|
}
|
|
1215
1049
|
function u(_, E) {
|
|
1216
|
-
const h = _.context(), { lastOffset: m, lastStartLoc: I } = h,
|
|
1217
|
-
return
|
|
1050
|
+
const h = _.context(), { lastOffset: m, lastStartLoc: I } = h, b = s(4, m, I);
|
|
1051
|
+
return b.key = E, _.nextToken(), o(b, _.currentOffset(), _.currentPosition()), b;
|
|
1218
1052
|
}
|
|
1219
1053
|
function p(_, E) {
|
|
1220
|
-
const h = _.context(), { lastOffset: m, lastStartLoc: I } = h,
|
|
1221
|
-
return
|
|
1054
|
+
const h = _.context(), { lastOffset: m, lastStartLoc: I } = h, b = s(9, m, I);
|
|
1055
|
+
return b.value = E.replace(ks, Ms), _.nextToken(), o(b, _.currentOffset(), _.currentPosition()), b;
|
|
1222
1056
|
}
|
|
1223
1057
|
function L(_) {
|
|
1224
|
-
const E = _.nextToken(), h = _.context(), { lastOffset: m, lastStartLoc: I } = h,
|
|
1225
|
-
return E.type !== 11 ? (r(_, k.UNEXPECTED_EMPTY_LINKED_MODIFIER, h.lastStartLoc, 0),
|
|
1058
|
+
const E = _.nextToken(), h = _.context(), { lastOffset: m, lastStartLoc: I } = h, b = s(8, m, I);
|
|
1059
|
+
return E.type !== 11 ? (r(_, k.UNEXPECTED_EMPTY_LINKED_MODIFIER, h.lastStartLoc, 0), b.value = "", o(b, m, I), {
|
|
1226
1060
|
nextConsumeToken: E,
|
|
1227
|
-
node:
|
|
1228
|
-
}) : (E.value == null && r(_, k.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, le(E)),
|
|
1229
|
-
node:
|
|
1061
|
+
node: b
|
|
1062
|
+
}) : (E.value == null && r(_, k.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, le(E)), b.value = E.value || "", o(b, _.currentOffset(), _.currentPosition()), {
|
|
1063
|
+
node: b
|
|
1230
1064
|
});
|
|
1231
1065
|
}
|
|
1232
1066
|
function T(_, E) {
|
|
@@ -1255,8 +1089,8 @@ function Ks(e = {}) {
|
|
|
1255
1089
|
break;
|
|
1256
1090
|
default: {
|
|
1257
1091
|
r(_, k.UNEXPECTED_EMPTY_LINKED_KEY, E.lastStartLoc, 0);
|
|
1258
|
-
const I = _.context(),
|
|
1259
|
-
return
|
|
1092
|
+
const I = _.context(), b = s(7, I.offset, I.startLoc);
|
|
1093
|
+
return b.value = "", o(b, I.offset, I.startLoc), h.key = b, o(h, I.offset, I.startLoc), {
|
|
1260
1094
|
nextConsumeToken: m,
|
|
1261
1095
|
node: h
|
|
1262
1096
|
};
|
|
@@ -1269,10 +1103,10 @@ function Ks(e = {}) {
|
|
|
1269
1103
|
function v(_) {
|
|
1270
1104
|
const E = _.context(), h = E.currentType === 1 ? _.currentOffset() : E.offset, m = E.currentType === 1 ? E.endLoc : E.startLoc, I = s(2, h, m);
|
|
1271
1105
|
I.items = [];
|
|
1272
|
-
let
|
|
1106
|
+
let b = null;
|
|
1273
1107
|
do {
|
|
1274
|
-
const F =
|
|
1275
|
-
switch (
|
|
1108
|
+
const F = b || _.nextToken();
|
|
1109
|
+
switch (b = null, F.type) {
|
|
1276
1110
|
case 0:
|
|
1277
1111
|
F.value == null && r(_, k.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, le(F)), I.items.push(i(_, F.value || ""));
|
|
1278
1112
|
break;
|
|
@@ -1286,8 +1120,8 @@ function Ks(e = {}) {
|
|
|
1286
1120
|
F.value == null && r(_, k.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, le(F)), I.items.push(p(_, F.value || ""));
|
|
1287
1121
|
break;
|
|
1288
1122
|
case 7: {
|
|
1289
|
-
const
|
|
1290
|
-
I.items.push(
|
|
1123
|
+
const C = g(_);
|
|
1124
|
+
I.items.push(C.node), b = C.nextConsumeToken || null;
|
|
1291
1125
|
break;
|
|
1292
1126
|
}
|
|
1293
1127
|
}
|
|
@@ -1297,21 +1131,21 @@ function Ks(e = {}) {
|
|
|
1297
1131
|
}
|
|
1298
1132
|
function R(_, E, h, m) {
|
|
1299
1133
|
const I = _.context();
|
|
1300
|
-
let
|
|
1134
|
+
let b = m.items.length === 0;
|
|
1301
1135
|
const f = s(1, E, h);
|
|
1302
1136
|
f.cases = [], f.cases.push(m);
|
|
1303
1137
|
do {
|
|
1304
1138
|
const w = v(_);
|
|
1305
|
-
|
|
1139
|
+
b || (b = w.items.length === 0), f.cases.push(w);
|
|
1306
1140
|
} while (I.currentType !== 13);
|
|
1307
|
-
return
|
|
1141
|
+
return b && r(_, k.MUST_HAVE_MESSAGES_IN_PLURAL, h, 0), o(f, _.currentOffset(), _.currentPosition()), f;
|
|
1308
1142
|
}
|
|
1309
1143
|
function S(_) {
|
|
1310
1144
|
const E = _.context(), { offset: h, startLoc: m } = E, I = v(_);
|
|
1311
1145
|
return E.currentType === 13 ? I : R(_, h, m, I);
|
|
1312
1146
|
}
|
|
1313
1147
|
function P(_) {
|
|
1314
|
-
const E =
|
|
1148
|
+
const E = Ps(_, Q({}, e)), h = E.context(), m = s(0, h.offset, h.startLoc);
|
|
1315
1149
|
return t && m.loc && (m.loc.source = _), m.body = S(E), e.onCacheKey && (m.cacheKey = e.onCacheKey(_)), h.currentType !== 13 && r(E, k.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, _[h.offset] || ""), o(m, E.currentOffset(), E.currentPosition()), m;
|
|
1316
1150
|
}
|
|
1317
1151
|
return { parse: P };
|
|
@@ -1322,7 +1156,7 @@ function le(e) {
|
|
|
1322
1156
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1323
1157
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1324
1158
|
}
|
|
1325
|
-
function
|
|
1159
|
+
function ws(e, t = {}) {
|
|
1326
1160
|
const n = {
|
|
1327
1161
|
ast: e,
|
|
1328
1162
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -1331,9 +1165,9 @@ function Xs(e, t = {}) {
|
|
|
1331
1165
|
}
|
|
1332
1166
|
function Dn(e, t) {
|
|
1333
1167
|
for (let n = 0; n < e.length; n++)
|
|
1334
|
-
|
|
1168
|
+
cn(e[n], t);
|
|
1335
1169
|
}
|
|
1336
|
-
function
|
|
1170
|
+
function cn(e, t) {
|
|
1337
1171
|
switch (e.type) {
|
|
1338
1172
|
case 1:
|
|
1339
1173
|
Dn(e.cases, t), t.helper(
|
|
@@ -1345,7 +1179,7 @@ function an(e, t) {
|
|
|
1345
1179
|
Dn(e.items, t);
|
|
1346
1180
|
break;
|
|
1347
1181
|
case 6: {
|
|
1348
|
-
|
|
1182
|
+
cn(e.key, t), t.helper(
|
|
1349
1183
|
"linked"
|
|
1350
1184
|
/* HelperNameMap.LINKED */
|
|
1351
1185
|
), t.helper(
|
|
@@ -1374,16 +1208,16 @@ function an(e, t) {
|
|
|
1374
1208
|
break;
|
|
1375
1209
|
}
|
|
1376
1210
|
}
|
|
1377
|
-
function
|
|
1378
|
-
const n =
|
|
1211
|
+
function Us(e, t = {}) {
|
|
1212
|
+
const n = ws(e);
|
|
1379
1213
|
n.helper(
|
|
1380
1214
|
"normalize"
|
|
1381
1215
|
/* HelperNameMap.NORMALIZE */
|
|
1382
|
-
), e.body &&
|
|
1216
|
+
), e.body && cn(e.body, n);
|
|
1383
1217
|
const r = n.context();
|
|
1384
1218
|
e.helpers = Array.from(r.helpers);
|
|
1385
1219
|
}
|
|
1386
|
-
function
|
|
1220
|
+
function Vs(e) {
|
|
1387
1221
|
const t = e.body;
|
|
1388
1222
|
return t.type === 2 ? Pn(t) : t.cases.forEach((n) => Pn(n)), e;
|
|
1389
1223
|
}
|
|
@@ -1400,7 +1234,7 @@ function Pn(e) {
|
|
|
1400
1234
|
t.push(r.value);
|
|
1401
1235
|
}
|
|
1402
1236
|
if (t.length === e.items.length) {
|
|
1403
|
-
e.static =
|
|
1237
|
+
e.static = ln(t);
|
|
1404
1238
|
for (let n = 0; n < e.items.length; n++) {
|
|
1405
1239
|
const r = e.items[n];
|
|
1406
1240
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -1408,7 +1242,7 @@ function Pn(e) {
|
|
|
1408
1242
|
}
|
|
1409
1243
|
}
|
|
1410
1244
|
}
|
|
1411
|
-
const
|
|
1245
|
+
const $s = "minifier";
|
|
1412
1246
|
function ke(e) {
|
|
1413
1247
|
switch (e.t = e.type, e.type) {
|
|
1414
1248
|
case 0: {
|
|
@@ -1456,14 +1290,14 @@ function ke(e) {
|
|
|
1456
1290
|
default:
|
|
1457
1291
|
if (process.env.NODE_ENV !== "production")
|
|
1458
1292
|
throw we(k.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1459
|
-
domain:
|
|
1293
|
+
domain: $s,
|
|
1460
1294
|
args: [e.type]
|
|
1461
1295
|
});
|
|
1462
1296
|
}
|
|
1463
1297
|
delete e.type;
|
|
1464
1298
|
}
|
|
1465
|
-
const
|
|
1466
|
-
function
|
|
1299
|
+
const Ws = "parser";
|
|
1300
|
+
function Gs(e, t) {
|
|
1467
1301
|
const { filename: n, breakLineCode: r, needIndent: s } = t, o = t.location !== !1, i = {
|
|
1468
1302
|
filename: n,
|
|
1469
1303
|
code: "",
|
|
@@ -1505,14 +1339,14 @@ function zs(e, t) {
|
|
|
1505
1339
|
needIndent: () => i.needIndent
|
|
1506
1340
|
};
|
|
1507
1341
|
}
|
|
1508
|
-
function
|
|
1342
|
+
function Ys(e, t) {
|
|
1509
1343
|
const { helper: n } = e;
|
|
1510
1344
|
e.push(`${n(
|
|
1511
1345
|
"linked"
|
|
1512
1346
|
/* HelperNameMap.LINKED */
|
|
1513
1347
|
)}(`), Fe(e, t.key), t.modifier ? (e.push(", "), Fe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1514
1348
|
}
|
|
1515
|
-
function
|
|
1349
|
+
function Hs(e, t) {
|
|
1516
1350
|
const { helper: n, needIndent: r } = e;
|
|
1517
1351
|
e.push(`${n(
|
|
1518
1352
|
"normalize"
|
|
@@ -1523,7 +1357,7 @@ function to(e, t) {
|
|
|
1523
1357
|
e.push(", ");
|
|
1524
1358
|
e.deindent(r()), e.push("])");
|
|
1525
1359
|
}
|
|
1526
|
-
function
|
|
1360
|
+
function xs(e, t) {
|
|
1527
1361
|
const { helper: n, needIndent: r } = e;
|
|
1528
1362
|
if (t.cases.length > 1) {
|
|
1529
1363
|
e.push(`${n(
|
|
@@ -1536,23 +1370,23 @@ function no(e, t) {
|
|
|
1536
1370
|
e.deindent(r()), e.push("])");
|
|
1537
1371
|
}
|
|
1538
1372
|
}
|
|
1539
|
-
function
|
|
1373
|
+
function js(e, t) {
|
|
1540
1374
|
t.body ? Fe(e, t.body) : e.push("null");
|
|
1541
1375
|
}
|
|
1542
1376
|
function Fe(e, t) {
|
|
1543
1377
|
const { helper: n } = e;
|
|
1544
1378
|
switch (t.type) {
|
|
1545
1379
|
case 0:
|
|
1546
|
-
|
|
1380
|
+
js(e, t);
|
|
1547
1381
|
break;
|
|
1548
1382
|
case 1:
|
|
1549
|
-
|
|
1383
|
+
xs(e, t);
|
|
1550
1384
|
break;
|
|
1551
1385
|
case 2:
|
|
1552
|
-
|
|
1386
|
+
Hs(e, t);
|
|
1553
1387
|
break;
|
|
1554
1388
|
case 6:
|
|
1555
|
-
|
|
1389
|
+
Ys(e, t);
|
|
1556
1390
|
break;
|
|
1557
1391
|
case 8:
|
|
1558
1392
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1587,21 +1421,21 @@ function Fe(e, t) {
|
|
|
1587
1421
|
default:
|
|
1588
1422
|
if (process.env.NODE_ENV !== "production")
|
|
1589
1423
|
throw we(k.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1590
|
-
domain:
|
|
1424
|
+
domain: Ws,
|
|
1591
1425
|
args: [t.type]
|
|
1592
1426
|
});
|
|
1593
1427
|
}
|
|
1594
1428
|
}
|
|
1595
|
-
const
|
|
1429
|
+
const Bs = (e, t = {}) => {
|
|
1596
1430
|
const n = y(t.mode) ? t.mode : "normal", r = y(t.filename) ? t.filename : "message.intl";
|
|
1597
1431
|
t.sourceMap;
|
|
1598
1432
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1599
|
-
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c =
|
|
1433
|
+
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = Gs(e, {
|
|
1600
1434
|
filename: r,
|
|
1601
1435
|
breakLineCode: s,
|
|
1602
1436
|
needIndent: o
|
|
1603
1437
|
});
|
|
1604
|
-
c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), i.length > 0 && (c.push(`const { ${
|
|
1438
|
+
c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), i.length > 0 && (c.push(`const { ${ln(i.map((L) => `${L}: _${L}`), ", ")} } = ctx`), c.newline()), c.push("return "), Fe(c, e), c.deindent(o), c.push("}"), delete e.helpers;
|
|
1605
1439
|
const { code: u, map: p } = c.context();
|
|
1606
1440
|
return {
|
|
1607
1441
|
ast: e,
|
|
@@ -1610,34 +1444,34 @@ const so = (e, t = {}) => {
|
|
|
1610
1444
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1611
1445
|
};
|
|
1612
1446
|
};
|
|
1613
|
-
function
|
|
1614
|
-
const n = Q({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, c =
|
|
1615
|
-
return r ? (o &&
|
|
1447
|
+
function Ks(e, t = {}) {
|
|
1448
|
+
const n = Q({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, c = Fs(n).parse(e);
|
|
1449
|
+
return r ? (o && Vs(c), s && ke(c), { ast: c, code: "" }) : (Us(c, n), Bs(c, n));
|
|
1616
1450
|
}
|
|
1617
|
-
function
|
|
1451
|
+
function Xs() {
|
|
1618
1452
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ae().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ae().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1619
1453
|
}
|
|
1620
1454
|
function ae(e) {
|
|
1621
|
-
return $(e) &&
|
|
1455
|
+
return $(e) && un(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1622
1456
|
}
|
|
1623
1457
|
const or = ["b", "body"];
|
|
1624
|
-
function
|
|
1458
|
+
function qs(e) {
|
|
1625
1459
|
return Oe(e, or);
|
|
1626
1460
|
}
|
|
1627
1461
|
const ar = ["c", "cases"];
|
|
1628
|
-
function
|
|
1462
|
+
function Qs(e) {
|
|
1629
1463
|
return Oe(e, ar, []);
|
|
1630
1464
|
}
|
|
1631
1465
|
const ir = ["s", "static"];
|
|
1632
|
-
function
|
|
1466
|
+
function Js(e) {
|
|
1633
1467
|
return Oe(e, ir);
|
|
1634
1468
|
}
|
|
1635
1469
|
const lr = ["i", "items"];
|
|
1636
|
-
function
|
|
1470
|
+
function Zs(e) {
|
|
1637
1471
|
return Oe(e, lr, []);
|
|
1638
1472
|
}
|
|
1639
1473
|
const cr = ["t", "type"];
|
|
1640
|
-
function
|
|
1474
|
+
function un(e) {
|
|
1641
1475
|
return Oe(e, cr);
|
|
1642
1476
|
}
|
|
1643
1477
|
const ur = ["v", "value"];
|
|
@@ -1648,11 +1482,11 @@ function rt(e, t) {
|
|
|
1648
1482
|
throw Xe(t);
|
|
1649
1483
|
}
|
|
1650
1484
|
const fr = ["m", "modifier"];
|
|
1651
|
-
function
|
|
1485
|
+
function zs(e) {
|
|
1652
1486
|
return Oe(e, fr);
|
|
1653
1487
|
}
|
|
1654
1488
|
const _r = ["k", "key"];
|
|
1655
|
-
function
|
|
1489
|
+
function eo(e) {
|
|
1656
1490
|
const t = Oe(e, _r);
|
|
1657
1491
|
if (t)
|
|
1658
1492
|
return t;
|
|
@@ -1683,17 +1517,17 @@ function Xe(e) {
|
|
|
1683
1517
|
return new Error(`unhandled node type: ${e}`);
|
|
1684
1518
|
}
|
|
1685
1519
|
function Vt(e) {
|
|
1686
|
-
return (n) =>
|
|
1520
|
+
return (n) => to(n, e);
|
|
1687
1521
|
}
|
|
1688
|
-
function
|
|
1689
|
-
const n =
|
|
1522
|
+
function to(e, t) {
|
|
1523
|
+
const n = qs(t);
|
|
1690
1524
|
if (n == null)
|
|
1691
1525
|
throw Xe(
|
|
1692
1526
|
0
|
|
1693
1527
|
/* NodeTypes.Resource */
|
|
1694
1528
|
);
|
|
1695
|
-
if (
|
|
1696
|
-
const o =
|
|
1529
|
+
if (un(n) === 1) {
|
|
1530
|
+
const o = Qs(n);
|
|
1697
1531
|
return e.plural(o.reduce((i, c) => [
|
|
1698
1532
|
...i,
|
|
1699
1533
|
Rn(e, c)
|
|
@@ -1702,16 +1536,16 @@ function mo(e, t) {
|
|
|
1702
1536
|
return Rn(e, n);
|
|
1703
1537
|
}
|
|
1704
1538
|
function Rn(e, t) {
|
|
1705
|
-
const n =
|
|
1539
|
+
const n = Js(t);
|
|
1706
1540
|
if (n != null)
|
|
1707
1541
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1708
1542
|
{
|
|
1709
|
-
const r =
|
|
1543
|
+
const r = Zs(t).reduce((s, o) => [...s, Kt(e, o)], []);
|
|
1710
1544
|
return e.normalize(r);
|
|
1711
1545
|
}
|
|
1712
1546
|
}
|
|
1713
1547
|
function Kt(e, t) {
|
|
1714
|
-
const n =
|
|
1548
|
+
const n = un(t);
|
|
1715
1549
|
switch (n) {
|
|
1716
1550
|
case 3:
|
|
1717
1551
|
return rt(t, n);
|
|
@@ -1734,7 +1568,7 @@ function Kt(e, t) {
|
|
|
1734
1568
|
throw Xe(n);
|
|
1735
1569
|
}
|
|
1736
1570
|
case 6: {
|
|
1737
|
-
const r = t, s =
|
|
1571
|
+
const r = t, s = zs(r), o = eo(r);
|
|
1738
1572
|
return e.linked(Kt(e, o), s ? Kt(e, s) : void 0, e.type);
|
|
1739
1573
|
}
|
|
1740
1574
|
case 7:
|
|
@@ -1745,28 +1579,28 @@ function Kt(e, t) {
|
|
|
1745
1579
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1746
1580
|
}
|
|
1747
1581
|
}
|
|
1748
|
-
const
|
|
1749
|
-
function
|
|
1750
|
-
t &&
|
|
1582
|
+
const no = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1583
|
+
function ro(e, t) {
|
|
1584
|
+
t && Cs(e) && ue(Lt(no, { source: e }));
|
|
1751
1585
|
}
|
|
1752
|
-
const
|
|
1586
|
+
const so = (e) => e;
|
|
1753
1587
|
let st = G();
|
|
1754
|
-
function
|
|
1588
|
+
function oo(e, t = {}) {
|
|
1755
1589
|
let n = !1;
|
|
1756
|
-
const r = t.onError ||
|
|
1590
|
+
const r = t.onError || Ts;
|
|
1757
1591
|
return t.onError = (s) => {
|
|
1758
1592
|
n = !0, r(s);
|
|
1759
|
-
}, { ...
|
|
1593
|
+
}, { ...Ks(e, t), detectError: n };
|
|
1760
1594
|
}
|
|
1761
1595
|
// @__NO_SIDE_EFFECTS__
|
|
1762
|
-
function
|
|
1596
|
+
function ao(e, t) {
|
|
1763
1597
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && y(e)) {
|
|
1764
1598
|
const n = B(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1765
|
-
process.env.NODE_ENV !== "production" &&
|
|
1766
|
-
const s = (t.onCacheKey ||
|
|
1599
|
+
process.env.NODE_ENV !== "production" && ro(e, n);
|
|
1600
|
+
const s = (t.onCacheKey || so)(e), o = st[s];
|
|
1767
1601
|
if (o)
|
|
1768
1602
|
return o;
|
|
1769
|
-
const { ast: i, detectError: c } =
|
|
1603
|
+
const { ast: i, detectError: c } = oo(e, {
|
|
1770
1604
|
...t,
|
|
1771
1605
|
location: process.env.NODE_ENV !== "production",
|
|
1772
1606
|
jit: !0
|
|
@@ -1784,10 +1618,10 @@ function Oo(e, t) {
|
|
|
1784
1618
|
}
|
|
1785
1619
|
}
|
|
1786
1620
|
let qe = null;
|
|
1787
|
-
function
|
|
1621
|
+
function io(e) {
|
|
1788
1622
|
qe = e;
|
|
1789
1623
|
}
|
|
1790
|
-
function
|
|
1624
|
+
function lo(e, t, n) {
|
|
1791
1625
|
qe && qe.emit("i18n:init", {
|
|
1792
1626
|
timestamp: Date.now(),
|
|
1793
1627
|
i18n: e,
|
|
@@ -1795,12 +1629,12 @@ function ho(e, t, n) {
|
|
|
1795
1629
|
meta: n
|
|
1796
1630
|
});
|
|
1797
1631
|
}
|
|
1798
|
-
const
|
|
1799
|
-
function
|
|
1632
|
+
const co = /* @__PURE__ */ uo("function:translate");
|
|
1633
|
+
function uo(e) {
|
|
1800
1634
|
return (t) => qe && qe.emit(e, t);
|
|
1801
1635
|
}
|
|
1802
1636
|
const ee = {
|
|
1803
|
-
INVALID_ARGUMENT:
|
|
1637
|
+
INVALID_ARGUMENT: Ls,
|
|
1804
1638
|
// 17
|
|
1805
1639
|
INVALID_DATE_ARGUMENT: 18,
|
|
1806
1640
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1808,11 +1642,11 @@ const ee = {
|
|
|
1808
1642
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1809
1643
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1810
1644
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1811
|
-
},
|
|
1645
|
+
}, fo = 24;
|
|
1812
1646
|
function Ee(e) {
|
|
1813
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1647
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: _o } : void 0);
|
|
1814
1648
|
}
|
|
1815
|
-
const
|
|
1649
|
+
const _o = {
|
|
1816
1650
|
[ee.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1817
1651
|
[ee.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1818
1652
|
[ee.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1821,7 +1655,7 @@ const Co = {
|
|
|
1821
1655
|
[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1822
1656
|
[ee.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1823
1657
|
};
|
|
1824
|
-
function
|
|
1658
|
+
function fn(e, t) {
|
|
1825
1659
|
return t.locale != null ? kn(t.locale) : kn(e.locale);
|
|
1826
1660
|
}
|
|
1827
1661
|
let $t;
|
|
@@ -1833,7 +1667,7 @@ function kn(e) {
|
|
|
1833
1667
|
return $t;
|
|
1834
1668
|
if (e.constructor.name === "Function") {
|
|
1835
1669
|
const t = e();
|
|
1836
|
-
if (
|
|
1670
|
+
if (Es(t))
|
|
1837
1671
|
throw Ee(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1838
1672
|
return $t = t;
|
|
1839
1673
|
} else
|
|
@@ -1841,14 +1675,14 @@ function kn(e) {
|
|
|
1841
1675
|
} else
|
|
1842
1676
|
throw Ee(ee.NOT_SUPPORT_LOCALE_TYPE);
|
|
1843
1677
|
}
|
|
1844
|
-
function
|
|
1678
|
+
function mo(e, t, n) {
|
|
1845
1679
|
return [.../* @__PURE__ */ new Set([
|
|
1846
1680
|
n,
|
|
1847
1681
|
...K(t) ? t : $(t) ? Object.keys(t) : y(t) ? [t] : [n]
|
|
1848
1682
|
])];
|
|
1849
1683
|
}
|
|
1850
1684
|
function mr(e, t, n) {
|
|
1851
|
-
const r = y(n) ? n :
|
|
1685
|
+
const r = y(n) ? n : _t, s = e;
|
|
1852
1686
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1853
1687
|
let o = s.__localeChainCache.get(r);
|
|
1854
1688
|
if (!o) {
|
|
@@ -1865,20 +1699,20 @@ function Mn(e, t, n) {
|
|
|
1865
1699
|
let r = !0;
|
|
1866
1700
|
for (let s = 0; s < t.length && B(r); s++) {
|
|
1867
1701
|
const o = t[s];
|
|
1868
|
-
y(o) && (r =
|
|
1702
|
+
y(o) && (r = Eo(e, t[s], n));
|
|
1869
1703
|
}
|
|
1870
1704
|
return r;
|
|
1871
1705
|
}
|
|
1872
|
-
function
|
|
1706
|
+
function Eo(e, t, n) {
|
|
1873
1707
|
let r;
|
|
1874
1708
|
const s = t.split("-");
|
|
1875
1709
|
do {
|
|
1876
1710
|
const o = s.join("-");
|
|
1877
|
-
r =
|
|
1711
|
+
r = po(e, o, n), s.splice(-1, 1);
|
|
1878
1712
|
} while (s.length && r === !0);
|
|
1879
1713
|
return r;
|
|
1880
1714
|
}
|
|
1881
|
-
function
|
|
1715
|
+
function po(e, t, n) {
|
|
1882
1716
|
let r = !1;
|
|
1883
1717
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1884
1718
|
r = t[t.length - 1] !== "!";
|
|
@@ -2048,15 +1882,15 @@ Le[
|
|
|
2048
1882
|
/* Actions.APPEND */
|
|
2049
1883
|
]
|
|
2050
1884
|
};
|
|
2051
|
-
const
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
1885
|
+
const No = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1886
|
+
function go(e) {
|
|
1887
|
+
return No.test(e);
|
|
2054
1888
|
}
|
|
2055
|
-
function
|
|
1889
|
+
function Oo(e) {
|
|
2056
1890
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
2057
1891
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
2058
1892
|
}
|
|
2059
|
-
function
|
|
1893
|
+
function Lo(e) {
|
|
2060
1894
|
if (e == null)
|
|
2061
1895
|
return "o";
|
|
2062
1896
|
switch (e.charCodeAt(0)) {
|
|
@@ -2093,11 +1927,11 @@ function Ro(e) {
|
|
|
2093
1927
|
}
|
|
2094
1928
|
return "i";
|
|
2095
1929
|
}
|
|
2096
|
-
function
|
|
1930
|
+
function ho(e) {
|
|
2097
1931
|
const t = e.trim();
|
|
2098
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1932
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : go(t) ? Oo(t) : "*" + t;
|
|
2099
1933
|
}
|
|
2100
|
-
function
|
|
1934
|
+
function To(e) {
|
|
2101
1935
|
const t = [];
|
|
2102
1936
|
let n = -1, r = 0, s = 0, o, i, c, u, p, L, T;
|
|
2103
1937
|
const g = [];
|
|
@@ -2129,7 +1963,7 @@ function Mo(e) {
|
|
|
2129
1963
|
/* Actions.APPEND */
|
|
2130
1964
|
]();
|
|
2131
1965
|
else {
|
|
2132
|
-
if (s = 0, i === void 0 || (i =
|
|
1966
|
+
if (s = 0, i === void 0 || (i = ho(i), i === !1))
|
|
2133
1967
|
return !1;
|
|
2134
1968
|
g[
|
|
2135
1969
|
1
|
|
@@ -2147,21 +1981,21 @@ function Mo(e) {
|
|
|
2147
1981
|
}
|
|
2148
1982
|
for (; r !== null; )
|
|
2149
1983
|
if (n++, o = e[n], !(o === "\\" && v())) {
|
|
2150
|
-
if (u =
|
|
1984
|
+
if (u = Lo(o), T = Le[r], p = T[u] || T.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (L = g[p[1]], L && (c = o, L() === !1))))
|
|
2151
1985
|
return;
|
|
2152
1986
|
if (r === 7)
|
|
2153
1987
|
return t;
|
|
2154
1988
|
}
|
|
2155
1989
|
}
|
|
2156
1990
|
const Fn = /* @__PURE__ */ new Map();
|
|
2157
|
-
function
|
|
1991
|
+
function Io(e, t) {
|
|
2158
1992
|
return $(e) ? e[t] : null;
|
|
2159
1993
|
}
|
|
2160
|
-
function
|
|
1994
|
+
function Co(e, t) {
|
|
2161
1995
|
if (!$(e))
|
|
2162
1996
|
return null;
|
|
2163
1997
|
let n = Fn.get(t);
|
|
2164
|
-
if (n || (n =
|
|
1998
|
+
if (n || (n = To(t), n && Fn.set(t, n)), !n)
|
|
2165
1999
|
return null;
|
|
2166
2000
|
const r = n.length;
|
|
2167
2001
|
let s = e, o = 0;
|
|
@@ -2184,7 +2018,7 @@ const te = {
|
|
|
2184
2018
|
CANNOT_FORMAT_DATE: 5,
|
|
2185
2019
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
2186
2020
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
2187
|
-
},
|
|
2021
|
+
}, bo = 8, Ao = {
|
|
2188
2022
|
[te.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
2189
2023
|
[te.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
2190
2024
|
[te.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -2194,10 +2028,10 @@ const te = {
|
|
|
2194
2028
|
[te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
2195
2029
|
};
|
|
2196
2030
|
function ye(e, ...t) {
|
|
2197
|
-
return Lt(
|
|
2031
|
+
return Lt(Ao[e], ...t);
|
|
2198
2032
|
}
|
|
2199
|
-
const
|
|
2200
|
-
function
|
|
2033
|
+
const vo = "11.2.2", Tt = -1, _t = "en-US", dt = "", wn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
2034
|
+
function So() {
|
|
2201
2035
|
return {
|
|
2202
2036
|
upper: (e, t) => t === "text" && y(e) ? e.toUpperCase() : t === "vnode" && $(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
2203
2037
|
lower: (e, t) => t === "text" && y(e) ? e.toLowerCase() : t === "vnode" && $(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -2205,30 +2039,30 @@ function Wo() {
|
|
|
2205
2039
|
};
|
|
2206
2040
|
}
|
|
2207
2041
|
let Er;
|
|
2208
|
-
function
|
|
2042
|
+
function yo(e) {
|
|
2209
2043
|
Er = e;
|
|
2210
2044
|
}
|
|
2211
2045
|
let pr;
|
|
2212
|
-
function
|
|
2046
|
+
function Do(e) {
|
|
2213
2047
|
pr = e;
|
|
2214
2048
|
}
|
|
2215
2049
|
let Nr;
|
|
2216
|
-
function
|
|
2050
|
+
function Po(e) {
|
|
2217
2051
|
Nr = e;
|
|
2218
2052
|
}
|
|
2219
2053
|
let gr = null;
|
|
2220
|
-
const
|
|
2054
|
+
const Ro = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
2221
2055
|
gr = e;
|
|
2222
|
-
},
|
|
2056
|
+
}, ko = /* @__NO_SIDE_EFFECTS__ */ () => gr;
|
|
2223
2057
|
let Or = null;
|
|
2224
2058
|
const Un = (e) => {
|
|
2225
2059
|
Or = e;
|
|
2226
|
-
},
|
|
2060
|
+
}, Mo = () => Or;
|
|
2227
2061
|
let Vn = 0;
|
|
2228
|
-
function
|
|
2229
|
-
const t = H(e.onWarn) ? e.onWarn : ue, n = y(e.version) ? e.version :
|
|
2230
|
-
process.env.NODE_ENV !== "production" && H(e.messageCompiler) &&
|
|
2231
|
-
const I = H(e.messageResolver) ? e.messageResolver : pr ||
|
|
2062
|
+
function Fo(e = {}) {
|
|
2063
|
+
const t = H(e.onWarn) ? e.onWarn : ue, n = y(e.version) ? e.version : vo, r = y(e.locale) || H(e.locale) ? e.locale : _t, s = H(r) ? _t : r, o = K(e.fallbackLocale) || V(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = V(e.messages) ? e.messages : Wt(s), c = V(e.datetimeFormats) ? e.datetimeFormats : Wt(s), u = V(e.numberFormats) ? e.numberFormats : Wt(s), p = Q(G(), e.modifiers, So()), L = e.pluralRules || G(), T = H(e.missing) ? e.missing : null, g = B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, P = H(e.postTranslation) ? e.postTranslation : null, _ = V(e.processor) ? e.processor : null, E = B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, m = H(e.messageCompiler) ? e.messageCompiler : Er;
|
|
2064
|
+
process.env.NODE_ENV !== "production" && H(e.messageCompiler) && is(ye(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2065
|
+
const I = H(e.messageResolver) ? e.messageResolver : pr || Io, b = H(e.localeFallbacker) ? e.localeFallbacker : Nr || mo, f = $(e.fallbackContext) ? e.fallbackContext : void 0, w = e, F = $(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), C = $(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), A = $(w.__meta) ? w.__meta : {};
|
|
2232
2066
|
Vn++;
|
|
2233
2067
|
const M = {
|
|
2234
2068
|
version: n,
|
|
@@ -2249,12 +2083,12 @@ function Ko(e = {}) {
|
|
|
2249
2083
|
escapeParameter: h,
|
|
2250
2084
|
messageCompiler: m,
|
|
2251
2085
|
messageResolver: I,
|
|
2252
|
-
localeFallbacker:
|
|
2086
|
+
localeFallbacker: b,
|
|
2253
2087
|
fallbackContext: f,
|
|
2254
2088
|
onWarn: t,
|
|
2255
2089
|
__meta: A
|
|
2256
2090
|
};
|
|
2257
|
-
return M.datetimeFormats = c, M.numberFormats = u, M.__datetimeFormatters = F, M.__numberFormatters =
|
|
2091
|
+
return M.datetimeFormats = c, M.numberFormats = u, M.__datetimeFormatters = F, M.__numberFormatters = C, process.env.NODE_ENV !== "production" && (M.__v_emitter = w.__v_emitter != null ? w.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && lo(M, n, A), M;
|
|
2258
2092
|
}
|
|
2259
2093
|
const Wt = (e) => ({ [e]: G() });
|
|
2260
2094
|
function It(e, t) {
|
|
@@ -2263,7 +2097,7 @@ function It(e, t) {
|
|
|
2263
2097
|
function Lr(e, t) {
|
|
2264
2098
|
return e instanceof RegExp ? e.test(t) : e;
|
|
2265
2099
|
}
|
|
2266
|
-
function
|
|
2100
|
+
function _n(e, t, n, r, s) {
|
|
2267
2101
|
const { missing: o, onWarn: i } = e;
|
|
2268
2102
|
if (process.env.NODE_ENV !== "production") {
|
|
2269
2103
|
const c = e.__v_emitter;
|
|
@@ -2287,7 +2121,7 @@ function He(e, t, n) {
|
|
|
2287
2121
|
function hr(e, t) {
|
|
2288
2122
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
2289
2123
|
}
|
|
2290
|
-
function
|
|
2124
|
+
function wo(e, t) {
|
|
2291
2125
|
const n = t.indexOf(e);
|
|
2292
2126
|
if (n === -1)
|
|
2293
2127
|
return !1;
|
|
@@ -2303,8 +2137,8 @@ const $n = typeof Intl < "u", Tr = {
|
|
|
2303
2137
|
function Wn(e, ...t) {
|
|
2304
2138
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: c } = e;
|
|
2305
2139
|
if (process.env.NODE_ENV !== "production" && !Tr.dateTimeFormat)
|
|
2306
|
-
return o(ye(te.CANNOT_FORMAT_DATE)),
|
|
2307
|
-
const [u, p, L, T] = Xt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S =
|
|
2140
|
+
return o(ye(te.CANNOT_FORMAT_DATE)), dt;
|
|
2141
|
+
const [u, p, L, T] = Xt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L), P = i(
|
|
2308
2142
|
e,
|
|
2309
2143
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2310
2144
|
s,
|
|
@@ -2313,24 +2147,24 @@ function Wn(e, ...t) {
|
|
|
2313
2147
|
if (!y(u) || u === "")
|
|
2314
2148
|
return new Intl.DateTimeFormat(S, T).format(p);
|
|
2315
2149
|
let _ = {}, E, h = null, m = S, I = null;
|
|
2316
|
-
const
|
|
2150
|
+
const b = "datetime format";
|
|
2317
2151
|
for (let F = 0; F < P.length; F++) {
|
|
2318
2152
|
if (E = I = P[F], process.env.NODE_ENV !== "production" && S !== E && It(v, u) && o(ye(te.FALLBACK_TO_DATE_FORMAT, {
|
|
2319
2153
|
key: u,
|
|
2320
2154
|
target: E
|
|
2321
2155
|
})), process.env.NODE_ENV !== "production" && S !== E) {
|
|
2322
|
-
const
|
|
2323
|
-
|
|
2324
|
-
type:
|
|
2156
|
+
const C = e.__v_emitter;
|
|
2157
|
+
C && C.emit("fallback", {
|
|
2158
|
+
type: b,
|
|
2325
2159
|
key: u,
|
|
2326
2160
|
from: m,
|
|
2327
2161
|
to: I,
|
|
2328
|
-
groupId: `${
|
|
2162
|
+
groupId: `${b}:${u}`
|
|
2329
2163
|
});
|
|
2330
2164
|
}
|
|
2331
2165
|
if (_ = n[E] || {}, h = _[u], V(h))
|
|
2332
2166
|
break;
|
|
2333
|
-
|
|
2167
|
+
_n(e, u, E, g, b), m = I;
|
|
2334
2168
|
}
|
|
2335
2169
|
if (!V(h) || !y(E))
|
|
2336
2170
|
return r ? Tt : u;
|
|
@@ -2375,7 +2209,7 @@ function Xt(...e) {
|
|
|
2375
2209
|
} catch {
|
|
2376
2210
|
throw Ee(ee.INVALID_ISO_DATE_ARGUMENT);
|
|
2377
2211
|
}
|
|
2378
|
-
} else if (
|
|
2212
|
+
} else if (fs(t)) {
|
|
2379
2213
|
if (isNaN(t.getTime()))
|
|
2380
2214
|
throw Ee(ee.INVALID_DATE_ARGUMENT);
|
|
2381
2215
|
c = t;
|
|
@@ -2397,8 +2231,8 @@ function Gn(e, t, n) {
|
|
|
2397
2231
|
function Yn(e, ...t) {
|
|
2398
2232
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __numberFormatters: c } = e;
|
|
2399
2233
|
if (process.env.NODE_ENV !== "production" && !Tr.numberFormat)
|
|
2400
|
-
return o(ye(te.CANNOT_FORMAT_NUMBER)),
|
|
2401
|
-
const [u, p, L, T] = qt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S =
|
|
2234
|
+
return o(ye(te.CANNOT_FORMAT_NUMBER)), dt;
|
|
2235
|
+
const [u, p, L, T] = qt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L), P = i(
|
|
2402
2236
|
e,
|
|
2403
2237
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2404
2238
|
s,
|
|
@@ -2407,24 +2241,24 @@ function Yn(e, ...t) {
|
|
|
2407
2241
|
if (!y(u) || u === "")
|
|
2408
2242
|
return new Intl.NumberFormat(S, T).format(p);
|
|
2409
2243
|
let _ = {}, E, h = null, m = S, I = null;
|
|
2410
|
-
const
|
|
2244
|
+
const b = "number format";
|
|
2411
2245
|
for (let F = 0; F < P.length; F++) {
|
|
2412
2246
|
if (E = I = P[F], process.env.NODE_ENV !== "production" && S !== E && It(v, u) && o(ye(te.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2413
2247
|
key: u,
|
|
2414
2248
|
target: E
|
|
2415
2249
|
})), process.env.NODE_ENV !== "production" && S !== E) {
|
|
2416
|
-
const
|
|
2417
|
-
|
|
2418
|
-
type:
|
|
2250
|
+
const C = e.__v_emitter;
|
|
2251
|
+
C && C.emit("fallback", {
|
|
2252
|
+
type: b,
|
|
2419
2253
|
key: u,
|
|
2420
2254
|
from: m,
|
|
2421
2255
|
to: I,
|
|
2422
|
-
groupId: `${
|
|
2256
|
+
groupId: `${b}:${u}`
|
|
2423
2257
|
});
|
|
2424
2258
|
}
|
|
2425
2259
|
if (_ = n[E] || {}, h = _[u], V(h))
|
|
2426
2260
|
break;
|
|
2427
|
-
|
|
2261
|
+
_n(e, u, E, g, b), m = I;
|
|
2428
2262
|
}
|
|
2429
2263
|
if (!V(h) || !y(E))
|
|
2430
2264
|
return r ? Tt : u;
|
|
@@ -2433,7 +2267,7 @@ function Yn(e, ...t) {
|
|
|
2433
2267
|
let w = c.get(f);
|
|
2434
2268
|
return w || (w = new Intl.NumberFormat(E, Q({}, h, T)), c.set(f, w)), R ? w.formatToParts(p) : w.format(p);
|
|
2435
2269
|
}
|
|
2436
|
-
const
|
|
2270
|
+
const Cr = [
|
|
2437
2271
|
"localeMatcher",
|
|
2438
2272
|
"style",
|
|
2439
2273
|
"currency",
|
|
@@ -2462,7 +2296,7 @@ function qt(...e) {
|
|
|
2462
2296
|
throw Ee(ee.INVALID_ARGUMENT);
|
|
2463
2297
|
const c = t;
|
|
2464
2298
|
return y(n) ? o.key = n : V(n) && Object.keys(n).forEach((u) => {
|
|
2465
|
-
|
|
2299
|
+
Cr.includes(u) ? i[u] = n[u] : o[u] = n[u];
|
|
2466
2300
|
}), y(r) ? o.locale = r : V(r) && (i = r), V(s) && (i = s), [o.key || "", c, o, i];
|
|
2467
2301
|
}
|
|
2468
2302
|
function Hn(e, t, n) {
|
|
@@ -2472,38 +2306,38 @@ function Hn(e, t, n) {
|
|
|
2472
2306
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
2473
2307
|
}
|
|
2474
2308
|
}
|
|
2475
|
-
const
|
|
2309
|
+
const Uo = (e) => e, Vo = (e) => "", $o = "text", Wo = (e) => e.length === 0 ? "" : ln(e), Go = ps;
|
|
2476
2310
|
function xn(e, t) {
|
|
2477
2311
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2478
2312
|
}
|
|
2479
|
-
function
|
|
2313
|
+
function Yo(e) {
|
|
2480
2314
|
const t = q(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2481
2315
|
return e.named && (q(e.named.count) || q(e.named.n)) ? q(e.named.count) ? e.named.count : q(e.named.n) ? e.named.n : t : t;
|
|
2482
2316
|
}
|
|
2483
|
-
function
|
|
2317
|
+
function Ho(e, t) {
|
|
2484
2318
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2485
2319
|
}
|
|
2486
|
-
function
|
|
2487
|
-
const t = e.locale, n =
|
|
2488
|
-
q(e.pluralIndex) &&
|
|
2320
|
+
function xo(e = {}) {
|
|
2321
|
+
const t = e.locale, n = Yo(e), r = $(e.pluralRules) && y(t) && H(e.pluralRules[t]) ? e.pluralRules[t] : xn, s = $(e.pluralRules) && y(t) && H(e.pluralRules[t]) ? xn : void 0, o = (_) => _[r(n, _.length, s)], i = e.list || [], c = (_) => i[_], u = e.named || G();
|
|
2322
|
+
q(e.pluralIndex) && Ho(n, u);
|
|
2489
2323
|
const p = (_) => u[_];
|
|
2490
2324
|
function L(_, E) {
|
|
2491
2325
|
const h = H(e.messages) ? e.messages(_, !!E) : $(e.messages) ? e.messages[_] : !1;
|
|
2492
|
-
return h || (e.parent ? e.parent.message(_) :
|
|
2326
|
+
return h || (e.parent ? e.parent.message(_) : Vo);
|
|
2493
2327
|
}
|
|
2494
|
-
const T = (_) => e.modifiers ? e.modifiers[_] :
|
|
2328
|
+
const T = (_) => e.modifiers ? e.modifiers[_] : Uo, g = V(e.processor) && H(e.processor.normalize) ? e.processor.normalize : Wo, v = V(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Go, R = V(e.processor) && y(e.processor.type) ? e.processor.type : $o, P = {
|
|
2495
2329
|
list: c,
|
|
2496
2330
|
named: p,
|
|
2497
2331
|
plural: o,
|
|
2498
2332
|
linked: (_, ...E) => {
|
|
2499
2333
|
const [h, m] = E;
|
|
2500
|
-
let I = "text",
|
|
2501
|
-
E.length === 1 ? $(h) ? (
|
|
2334
|
+
let I = "text", b = "";
|
|
2335
|
+
E.length === 1 ? $(h) ? (b = h.modifier || b, I = h.type || I) : y(h) && (b = h || b) : E.length === 2 && (y(h) && (b = h || b), y(m) && (I = m || I));
|
|
2502
2336
|
const f = L(_, !0)(P), w = (
|
|
2503
2337
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2504
|
-
I === "vnode" && K(f) &&
|
|
2338
|
+
I === "vnode" && K(f) && b ? f[0] : f
|
|
2505
2339
|
);
|
|
2506
|
-
return
|
|
2340
|
+
return b ? T(b)(w, I) : w;
|
|
2507
2341
|
},
|
|
2508
2342
|
message: L,
|
|
2509
2343
|
type: R,
|
|
@@ -2515,26 +2349,26 @@ function na(e = {}) {
|
|
|
2515
2349
|
}
|
|
2516
2350
|
const jn = () => "", se = (e) => H(e);
|
|
2517
2351
|
function Bn(e, ...t) {
|
|
2518
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: c } = e, [u, p] = Qt(...t), L = B(p.missingWarn) ? p.missingWarn : e.missingWarn, T = B(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, g = B(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, v = !!p.resolvedMessage, R = y(p.default) || B(p.default) ? B(p.default) ? o ? u : () => u : p.default : n ? o ? u : () => u : null, S = n || R != null && (y(R) || H(R)), P =
|
|
2519
|
-
g &&
|
|
2352
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: c } = e, [u, p] = Qt(...t), L = B(p.missingWarn) ? p.missingWarn : e.missingWarn, T = B(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, g = B(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, v = !!p.resolvedMessage, R = y(p.default) || B(p.default) ? B(p.default) ? o ? u : () => u : p.default : n ? o ? u : () => u : null, S = n || R != null && (y(R) || H(R)), P = fn(e, p);
|
|
2353
|
+
g && jo(p);
|
|
2520
2354
|
let [_, E, h] = v ? [
|
|
2521
2355
|
u,
|
|
2522
2356
|
P,
|
|
2523
2357
|
c[P] || G()
|
|
2524
|
-
] :
|
|
2358
|
+
] : br(e, u, P, i, T, L), m = _, I = u;
|
|
2525
2359
|
if (!v && !(y(m) || ae(m) || se(m)) && S && (m = R, I = m), !v && (!(y(m) || ae(m) || se(m)) || !y(E)))
|
|
2526
2360
|
return s ? Tt : u;
|
|
2527
2361
|
if (process.env.NODE_ENV !== "production" && y(m) && e.messageCompiler == null)
|
|
2528
2362
|
return ue(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
|
|
2529
|
-
let
|
|
2363
|
+
let b = !1;
|
|
2530
2364
|
const f = () => {
|
|
2531
|
-
|
|
2365
|
+
b = !0;
|
|
2532
2366
|
}, w = se(m) ? m : Ar(e, u, E, m, I, f);
|
|
2533
|
-
if (
|
|
2367
|
+
if (b)
|
|
2534
2368
|
return m;
|
|
2535
|
-
const F =
|
|
2369
|
+
const F = qo(e, E, h, p), C = xo(F), A = Bo(e, w, C);
|
|
2536
2370
|
let M = r ? r(A, u) : A;
|
|
2537
|
-
if (g && y(M) && (M =
|
|
2371
|
+
if (g && y(M) && (M = ds(M)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2538
2372
|
const X = {
|
|
2539
2373
|
timestamp: Date.now(),
|
|
2540
2374
|
key: y(u) ? u : se(m) ? m.key : "",
|
|
@@ -2542,16 +2376,16 @@ function Bn(e, ...t) {
|
|
|
2542
2376
|
format: y(m) ? m : se(m) ? m.source : "",
|
|
2543
2377
|
message: M
|
|
2544
2378
|
};
|
|
2545
|
-
X.meta = Q({}, e.__meta, /* @__PURE__ */
|
|
2379
|
+
X.meta = Q({}, e.__meta, /* @__PURE__ */ ko() || {}), co(X);
|
|
2546
2380
|
}
|
|
2547
2381
|
return M;
|
|
2548
2382
|
}
|
|
2549
|
-
function
|
|
2383
|
+
function jo(e) {
|
|
2550
2384
|
K(e.list) ? e.list = e.list.map((t) => y(t) ? An(t) : t) : $(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2551
2385
|
y(e.named[t]) && (e.named[t] = An(e.named[t]));
|
|
2552
2386
|
});
|
|
2553
2387
|
}
|
|
2554
|
-
function
|
|
2388
|
+
function br(e, t, n, r, s, o) {
|
|
2555
2389
|
const { messages: i, onWarn: c, messageResolver: u, localeFallbacker: p } = e, L = p(e, r, n);
|
|
2556
2390
|
let T = G(), g, v = null, R = n, S = null;
|
|
2557
2391
|
const P = "translate";
|
|
@@ -2572,8 +2406,8 @@ function Cr(e, t, n, r, s, o) {
|
|
|
2572
2406
|
T = i[g] || G();
|
|
2573
2407
|
let E = null, h, m;
|
|
2574
2408
|
if (process.env.NODE_ENV !== "production" && pe && (E = window.performance.now(), h = "intlify-message-resolve-start", m = "intlify-message-resolve-end", ne && ne(h)), (v = u(T, t)) === null && (v = T[t]), process.env.NODE_ENV !== "production" && pe) {
|
|
2575
|
-
const I = window.performance.now(),
|
|
2576
|
-
|
|
2409
|
+
const I = window.performance.now(), b = e.__v_emitter;
|
|
2410
|
+
b && E && v && b.emit("message-resolve", {
|
|
2577
2411
|
type: "message-resolve",
|
|
2578
2412
|
key: t,
|
|
2579
2413
|
message: v,
|
|
@@ -2583,8 +2417,8 @@ function Cr(e, t, n, r, s, o) {
|
|
|
2583
2417
|
}
|
|
2584
2418
|
if (y(v) || ae(v) || se(v))
|
|
2585
2419
|
break;
|
|
2586
|
-
if (!
|
|
2587
|
-
const I =
|
|
2420
|
+
if (!wo(g, L)) {
|
|
2421
|
+
const I = _n(
|
|
2588
2422
|
e,
|
|
2589
2423
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2590
2424
|
t,
|
|
@@ -2610,7 +2444,7 @@ function Ar(e, t, n, r, s, o) {
|
|
|
2610
2444
|
}
|
|
2611
2445
|
let u = null, p, L;
|
|
2612
2446
|
process.env.NODE_ENV !== "production" && pe && (u = window.performance.now(), p = "intlify-message-compilation-start", L = "intlify-message-compilation-end", ne && ne(p));
|
|
2613
|
-
const T = i(r,
|
|
2447
|
+
const T = i(r, Ko(e, n, s, r, c, o));
|
|
2614
2448
|
if (process.env.NODE_ENV !== "production" && pe) {
|
|
2615
2449
|
const g = window.performance.now(), v = e.__v_emitter;
|
|
2616
2450
|
v && u && v.emit("message-compilation", {
|
|
@@ -2622,7 +2456,7 @@ function Ar(e, t, n, r, s, o) {
|
|
|
2622
2456
|
}
|
|
2623
2457
|
return T.locale = n, T.key = t, T.source = r, T;
|
|
2624
2458
|
}
|
|
2625
|
-
function
|
|
2459
|
+
function Bo(e, t, n) {
|
|
2626
2460
|
let r = null, s, o;
|
|
2627
2461
|
process.env.NODE_ENV !== "production" && pe && (r = window.performance.now(), s = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", ne && ne(s));
|
|
2628
2462
|
const i = t(n);
|
|
@@ -2644,14 +2478,14 @@ function Qt(...e) {
|
|
|
2644
2478
|
const o = q(t) ? String(t) : (se(t), t);
|
|
2645
2479
|
return q(n) ? s.plural = n : y(n) ? s.default = n : V(n) && !ht(n) ? s.named = n : K(n) && (s.list = n), q(r) ? s.plural = r : y(r) ? s.default = r : V(r) && Q(s, r), [o, s];
|
|
2646
2480
|
}
|
|
2647
|
-
function
|
|
2481
|
+
function Ko(e, t, n, r, s, o) {
|
|
2648
2482
|
return {
|
|
2649
2483
|
locale: t,
|
|
2650
2484
|
key: n,
|
|
2651
2485
|
warnHtmlMessage: s,
|
|
2652
2486
|
onError: (i) => {
|
|
2653
2487
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
2654
|
-
const c =
|
|
2488
|
+
const c = Xo(r), u = `Message compilation error: ${i.message}`, p = i.location && c && Ns(c, i.location.start.offset, i.location.end.offset), L = e.__v_emitter;
|
|
2655
2489
|
L && c && L.emit("compile-error", {
|
|
2656
2490
|
message: c,
|
|
2657
2491
|
error: i.message,
|
|
@@ -2663,16 +2497,16 @@ ${p}` : u);
|
|
|
2663
2497
|
} else
|
|
2664
2498
|
throw i;
|
|
2665
2499
|
},
|
|
2666
|
-
onCacheKey: (i) =>
|
|
2500
|
+
onCacheKey: (i) => cs(t, n, i)
|
|
2667
2501
|
};
|
|
2668
2502
|
}
|
|
2669
|
-
function
|
|
2503
|
+
function Xo(e) {
|
|
2670
2504
|
if (y(e))
|
|
2671
2505
|
return e;
|
|
2672
2506
|
if (e.loc && e.loc.source)
|
|
2673
2507
|
return e.loc.source;
|
|
2674
2508
|
}
|
|
2675
|
-
function
|
|
2509
|
+
function qo(e, t, n, r) {
|
|
2676
2510
|
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: c, fallbackWarn: u, missingWarn: p, fallbackContext: L } = e, g = {
|
|
2677
2511
|
locale: t,
|
|
2678
2512
|
modifiers: s,
|
|
@@ -2680,7 +2514,7 @@ function ia(e, t, n, r) {
|
|
|
2680
2514
|
messages: (v, R) => {
|
|
2681
2515
|
let S = i(n, v);
|
|
2682
2516
|
if (S == null && (L || R)) {
|
|
2683
|
-
const [, , P] =
|
|
2517
|
+
const [, , P] = br(
|
|
2684
2518
|
L || e,
|
|
2685
2519
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2686
2520
|
v,
|
|
@@ -2702,14 +2536,14 @@ function ia(e, t, n, r) {
|
|
|
2702
2536
|
};
|
|
2703
2537
|
return e.processor && (g.processor = e.processor), r.list && (g.list = r.list), r.named && (g.named = r.named), q(r.plural) && (g.pluralIndex = r.plural), g;
|
|
2704
2538
|
}
|
|
2705
|
-
|
|
2706
|
-
const
|
|
2707
|
-
function
|
|
2539
|
+
Xs();
|
|
2540
|
+
const Qo = "11.2.2";
|
|
2541
|
+
function Jo() {
|
|
2708
2542
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ae().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ae().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ae().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ae().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2709
2543
|
}
|
|
2710
2544
|
const J = {
|
|
2711
2545
|
// composer module errors
|
|
2712
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2546
|
+
UNEXPECTED_RETURN_TYPE: fo,
|
|
2713
2547
|
// 24
|
|
2714
2548
|
// legacy module errors
|
|
2715
2549
|
INVALID_ARGUMENT: 25,
|
|
@@ -2730,9 +2564,9 @@ const J = {
|
|
|
2730
2564
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2731
2565
|
};
|
|
2732
2566
|
function Qe(e, ...t) {
|
|
2733
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2567
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: Zo, args: t } : void 0);
|
|
2734
2568
|
}
|
|
2735
|
-
const
|
|
2569
|
+
const Zo = {
|
|
2736
2570
|
[J.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2737
2571
|
[J.INVALID_ARGUMENT]: "Invalid argument",
|
|
2738
2572
|
[J.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2744,8 +2578,8 @@ const ua = {
|
|
|
2744
2578
|
[J.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2745
2579
|
[J.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2746
2580
|
[J.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2747
|
-
}, Jt = /* @__PURE__ */ Ne("__translateVNode"), Zt = /* @__PURE__ */ Ne("__datetimeParts"), zt = /* @__PURE__ */ Ne("__numberParts"), en = /* @__PURE__ */ Ne("__enableEmitter"), tn = /* @__PURE__ */ Ne("__disableEmitter"),
|
|
2748
|
-
FALLBACK_TO_ROOT:
|
|
2581
|
+
}, Jt = /* @__PURE__ */ Ne("__translateVNode"), Zt = /* @__PURE__ */ Ne("__datetimeParts"), zt = /* @__PURE__ */ Ne("__numberParts"), en = /* @__PURE__ */ Ne("__enableEmitter"), tn = /* @__PURE__ */ Ne("__disableEmitter"), zo = Ne("__setPluralRules"), vr = /* @__PURE__ */ Ne("__injectWithOption"), nn = /* @__PURE__ */ Ne("__dispose"), ce = {
|
|
2582
|
+
FALLBACK_TO_ROOT: bo,
|
|
2749
2583
|
// 8
|
|
2750
2584
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2751
2585
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2759,7 +2593,7 @@ const ua = {
|
|
|
2759
2593
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2760
2594
|
// duplicate `useI18n` calling
|
|
2761
2595
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2762
|
-
},
|
|
2596
|
+
}, ea = {
|
|
2763
2597
|
[ce.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2764
2598
|
[ce.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2765
2599
|
[ce.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2774,8 +2608,8 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2774
2608
|
[ce.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
2775
2609
|
[ce.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."
|
|
2776
2610
|
};
|
|
2777
|
-
function
|
|
2778
|
-
return Lt(
|
|
2611
|
+
function mt(e, ...t) {
|
|
2612
|
+
return Lt(ea[e], ...t);
|
|
2779
2613
|
}
|
|
2780
2614
|
function Je(e) {
|
|
2781
2615
|
if (!$(e) || ae(e))
|
|
@@ -2791,7 +2625,7 @@ function Je(e) {
|
|
|
2791
2625
|
if (n[i] === "__proto__")
|
|
2792
2626
|
throw new Error(`unsafe key: ${n[i]}`);
|
|
2793
2627
|
if (n[i] in s || (s[n[i]] = G()), !$(s[n[i]])) {
|
|
2794
|
-
process.env.NODE_ENV !== "production" && ue(
|
|
2628
|
+
process.env.NODE_ENV !== "production" && ue(mt(ce.IGNORE_OBJ_FLATTEN, {
|
|
2795
2629
|
key: n[i]
|
|
2796
2630
|
})), o = !0;
|
|
2797
2631
|
break;
|
|
@@ -2821,7 +2655,7 @@ function Sr(e, t) {
|
|
|
2821
2655
|
function yr(e) {
|
|
2822
2656
|
return e.type;
|
|
2823
2657
|
}
|
|
2824
|
-
function
|
|
2658
|
+
function ta(e, t, n) {
|
|
2825
2659
|
let r = $(t.messages) ? t.messages : G();
|
|
2826
2660
|
"__i18nGlobal" in n && (r = Sr(e.locale.value, {
|
|
2827
2661
|
messages: r,
|
|
@@ -2849,41 +2683,41 @@ function da(e, t, n) {
|
|
|
2849
2683
|
function Kn(e) {
|
|
2850
2684
|
return Zr(zr, null, e, 0);
|
|
2851
2685
|
}
|
|
2852
|
-
function
|
|
2686
|
+
function dn() {
|
|
2853
2687
|
return "currentInstance" in Mt ? Mt["currentInstance"] : Mt.getCurrentInstance();
|
|
2854
2688
|
}
|
|
2855
|
-
const Xn = "__INTLIFY_META__", qn = () => [],
|
|
2689
|
+
const Xn = "__INTLIFY_META__", qn = () => [], na = () => !1;
|
|
2856
2690
|
let Qn = 0;
|
|
2857
2691
|
function Jn(e) {
|
|
2858
|
-
return ((t, n, r, s) => e(n, r,
|
|
2692
|
+
return ((t, n, r, s) => e(n, r, dn() || void 0, s));
|
|
2859
2693
|
}
|
|
2860
|
-
const
|
|
2861
|
-
const e =
|
|
2694
|
+
const ra = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2695
|
+
const e = dn();
|
|
2862
2696
|
let t = null;
|
|
2863
2697
|
return e && (t = yr(e)[Xn]) ? { [Xn]: t } : null;
|
|
2864
2698
|
};
|
|
2865
|
-
function
|
|
2699
|
+
function sa(e = {}) {
|
|
2866
2700
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = pe ? Be : qr;
|
|
2867
2701
|
let i = B(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2868
2702
|
const c = o(
|
|
2869
2703
|
// prettier-ignore
|
|
2870
|
-
t && i ? t.locale.value : y(e.locale) ? e.locale :
|
|
2704
|
+
t && i ? t.locale.value : y(e.locale) ? e.locale : _t
|
|
2871
2705
|
), u = o(
|
|
2872
2706
|
// prettier-ignore
|
|
2873
2707
|
t && i ? t.fallbackLocale.value : y(e.fallbackLocale) || K(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
2874
2708
|
), p = o(Sr(c.value, e)), L = o(V(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), T = o(V(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
2875
|
-
let g = t ? t.missingWarn : B(e.missingWarn) ||
|
|
2709
|
+
let g = t ? t.missingWarn : B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : B(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, P = H(e.missing) ? e.missing : null, _ = H(e.missing) ? Jn(e.missing) : null, E = H(e.postTranslation) ? e.postTranslation : null, h = t ? t.warnHtmlMessage : B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
2876
2710
|
const I = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2877
|
-
let
|
|
2711
|
+
let b = e.pluralRules || t && t.pluralRules, f;
|
|
2878
2712
|
f = (() => {
|
|
2879
2713
|
r && Un(null);
|
|
2880
2714
|
const d = {
|
|
2881
|
-
version:
|
|
2715
|
+
version: Qo,
|
|
2882
2716
|
locale: c.value,
|
|
2883
2717
|
fallbackLocale: u.value,
|
|
2884
2718
|
messages: p.value,
|
|
2885
2719
|
modifiers: I,
|
|
2886
|
-
pluralRules:
|
|
2720
|
+
pluralRules: b,
|
|
2887
2721
|
missing: _ === null ? void 0 : _,
|
|
2888
2722
|
missingWarn: g,
|
|
2889
2723
|
fallbackWarn: v,
|
|
@@ -2897,7 +2731,7 @@ function pa(e = {}) {
|
|
|
2897
2731
|
__meta: { framework: "vue" }
|
|
2898
2732
|
};
|
|
2899
2733
|
d.datetimeFormats = L.value, d.numberFormats = T.value, d.__datetimeFormatters = V(f) ? f.__datetimeFormatters : void 0, d.__numberFormatters = V(f) ? f.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (d.__v_emitter = V(f) ? f.__v_emitter : void 0);
|
|
2900
|
-
const O =
|
|
2734
|
+
const O = Fo(d);
|
|
2901
2735
|
return r && Un(O), O;
|
|
2902
2736
|
})(), He(f, c.value, u.value);
|
|
2903
2737
|
function F() {
|
|
@@ -2909,7 +2743,7 @@ function pa(e = {}) {
|
|
|
2909
2743
|
T.value
|
|
2910
2744
|
];
|
|
2911
2745
|
}
|
|
2912
|
-
const
|
|
2746
|
+
const C = ge({
|
|
2913
2747
|
get: () => c.value,
|
|
2914
2748
|
set: (d) => {
|
|
2915
2749
|
f.locale = d, c.value = d;
|
|
@@ -2939,26 +2773,26 @@ function pa(e = {}) {
|
|
|
2939
2773
|
F();
|
|
2940
2774
|
let Pe;
|
|
2941
2775
|
try {
|
|
2942
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ?
|
|
2776
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ? Mo() : void 0), Pe = d(f);
|
|
2943
2777
|
} finally {
|
|
2944
2778
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = void 0);
|
|
2945
2779
|
}
|
|
2946
2780
|
if (W !== "translate exists" && // for not `te` (e.g `t`)
|
|
2947
2781
|
q(Pe) && Pe === Tt || W === "translate exists" && !Pe) {
|
|
2948
|
-
const [
|
|
2949
|
-
if (process.env.NODE_ENV !== "production" && t && y(
|
|
2950
|
-
key:
|
|
2782
|
+
const [Ce, kr] = O();
|
|
2783
|
+
if (process.env.NODE_ENV !== "production" && t && y(Ce) && Z(W, kr) && (R && (It(v, Ce) || Lr(g, Ce)) && ue(mt(ce.FALLBACK_TO_ROOT, {
|
|
2784
|
+
key: Ce,
|
|
2951
2785
|
type: W
|
|
2952
2786
|
})), process.env.NODE_ENV !== "production")) {
|
|
2953
|
-
const { __v_emitter:
|
|
2954
|
-
|
|
2787
|
+
const { __v_emitter: pn } = f;
|
|
2788
|
+
pn && R && pn.emit("fallback", {
|
|
2955
2789
|
type: W,
|
|
2956
|
-
key:
|
|
2790
|
+
key: Ce,
|
|
2957
2791
|
to: "global",
|
|
2958
|
-
groupId: `${W}:${
|
|
2792
|
+
groupId: `${W}:${Ce}`
|
|
2959
2793
|
});
|
|
2960
2794
|
}
|
|
2961
|
-
return t && R ? j(t) : Ie(
|
|
2795
|
+
return t && R ? j(t) : Ie(Ce);
|
|
2962
2796
|
} else {
|
|
2963
2797
|
if (tt(Pe))
|
|
2964
2798
|
return Pe;
|
|
@@ -2968,17 +2802,17 @@ function pa(e = {}) {
|
|
|
2968
2802
|
function $e(...d) {
|
|
2969
2803
|
return de((O) => Reflect.apply(Bn, null, [O, ...d]), () => Qt(...d), "translate", (O) => Reflect.apply(O.t, O, [...d]), (O) => O, (O) => y(O));
|
|
2970
2804
|
}
|
|
2971
|
-
function
|
|
2805
|
+
function bt(...d) {
|
|
2972
2806
|
const [O, W, j] = d;
|
|
2973
2807
|
if (j && !$(j))
|
|
2974
2808
|
throw Qe(J.INVALID_ARGUMENT);
|
|
2975
2809
|
return $e(O, W, Q({ resolvedMessage: !0 }, j || {}));
|
|
2976
2810
|
}
|
|
2977
2811
|
function At(...d) {
|
|
2978
|
-
return de((O) => Reflect.apply(Wn, null, [O, ...d]), () => Xt(...d), "datetime format", (O) => Reflect.apply(O.d, O, [...d]), () =>
|
|
2812
|
+
return de((O) => Reflect.apply(Wn, null, [O, ...d]), () => Xt(...d), "datetime format", (O) => Reflect.apply(O.d, O, [...d]), () => dt, (O) => y(O) || K(O));
|
|
2979
2813
|
}
|
|
2980
2814
|
function vt(...d) {
|
|
2981
|
-
return de((O) => Reflect.apply(Yn, null, [O, ...d]), () => qt(...d), "number format", (O) => Reflect.apply(O.n, O, [...d]), () =>
|
|
2815
|
+
return de((O) => Reflect.apply(Yn, null, [O, ...d]), () => qt(...d), "number format", (O) => Reflect.apply(O.n, O, [...d]), () => dt, (O) => y(O) || K(O));
|
|
2982
2816
|
}
|
|
2983
2817
|
function St(d) {
|
|
2984
2818
|
return d.map((O) => y(O) || q(O) || B(O) ? Kn(String(O)) : O);
|
|
@@ -3007,7 +2841,7 @@ function pa(e = {}) {
|
|
|
3007
2841
|
return de((O) => Reflect.apply(Wn, null, [O, ...d]), () => Xt(...d), "datetime format", (O) => O[Zt](...d), qn, (O) => y(O) || K(O));
|
|
3008
2842
|
}
|
|
3009
2843
|
function Pt(d) {
|
|
3010
|
-
|
|
2844
|
+
b = d, f.pluralRules = b;
|
|
3011
2845
|
}
|
|
3012
2846
|
function Rt(d, O) {
|
|
3013
2847
|
return de(() => {
|
|
@@ -3015,7 +2849,7 @@ function pa(e = {}) {
|
|
|
3015
2849
|
return !1;
|
|
3016
2850
|
const W = y(O) ? O : c.value, j = Te(W), Ie = f.messageResolver(j, d);
|
|
3017
2851
|
return ae(Ie) || se(Ie) || y(Ie);
|
|
3018
|
-
}, () => [d], "translate exists", (W) => Reflect.apply(W.te, W, [d, O]),
|
|
2852
|
+
}, () => [d], "translate exists", (W) => Reflect.apply(W.te, W, [d, O]), na, (W) => B(W));
|
|
3019
2853
|
}
|
|
3020
2854
|
function We(d) {
|
|
3021
2855
|
let O = null;
|
|
@@ -3078,7 +2912,7 @@ function pa(e = {}) {
|
|
|
3078
2912
|
}));
|
|
3079
2913
|
const U = {
|
|
3080
2914
|
id: Qn,
|
|
3081
|
-
locale:
|
|
2915
|
+
locale: C,
|
|
3082
2916
|
fallbackLocale: A,
|
|
3083
2917
|
get inheritLocale() {
|
|
3084
2918
|
return i;
|
|
@@ -3094,7 +2928,7 @@ function pa(e = {}) {
|
|
|
3094
2928
|
return I;
|
|
3095
2929
|
},
|
|
3096
2930
|
get pluralRules() {
|
|
3097
|
-
return
|
|
2931
|
+
return b || {};
|
|
3098
2932
|
},
|
|
3099
2933
|
get isGlobal() {
|
|
3100
2934
|
return r;
|
|
@@ -3143,9 +2977,9 @@ function pa(e = {}) {
|
|
|
3143
2977
|
setPostTranslationHandler: Ue,
|
|
3144
2978
|
getMissingHandler: Ve,
|
|
3145
2979
|
setMissingHandler: _e,
|
|
3146
|
-
[
|
|
2980
|
+
[zo]: Pt
|
|
3147
2981
|
};
|
|
3148
|
-
return U.datetimeFormats = X, U.numberFormats = fe, U.rt =
|
|
2982
|
+
return U.datetimeFormats = X, U.numberFormats = fe, U.rt = bt, U.te = Rt, U.tm = Ge, U.d = At, U.n = vt, U.getDateTimeFormat = a, U.setDateTimeFormat = l, U.mergeDateTimeFormat = N, U.getNumberFormat = D, U.setNumberFormat = Y, U.mergeNumberFormat = x, U[vr] = n, U[Jt] = ze, U[Zt] = et, U[zt] = Dt, process.env.NODE_ENV !== "production" && (U[en] = (d) => {
|
|
3149
2983
|
f.__v_emitter = d;
|
|
3150
2984
|
}, U[tn] = () => {
|
|
3151
2985
|
f.__v_emitter = void 0;
|
|
@@ -3153,7 +2987,7 @@ function pa(e = {}) {
|
|
|
3153
2987
|
}
|
|
3154
2988
|
function Zn(e, t) {
|
|
3155
2989
|
}
|
|
3156
|
-
const
|
|
2990
|
+
const mn = {
|
|
3157
2991
|
tag: {
|
|
3158
2992
|
type: [String, Object]
|
|
3159
2993
|
},
|
|
@@ -3171,7 +3005,7 @@ const _n = {
|
|
|
3171
3005
|
type: Object
|
|
3172
3006
|
}
|
|
3173
3007
|
};
|
|
3174
|
-
function
|
|
3008
|
+
function oa({ slots: e }, t) {
|
|
3175
3009
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3176
3010
|
...r,
|
|
3177
3011
|
// prettier-ignore
|
|
@@ -3193,8 +3027,8 @@ Q({
|
|
|
3193
3027
|
type: [Number, String],
|
|
3194
3028
|
validator: (e) => q(e) || !isNaN(e)
|
|
3195
3029
|
}
|
|
3196
|
-
},
|
|
3197
|
-
function
|
|
3030
|
+
}, mn);
|
|
3031
|
+
function aa(e) {
|
|
3198
3032
|
return K(e) && !y(e[0]);
|
|
3199
3033
|
}
|
|
3200
3034
|
function Pr(e, t, n, r) {
|
|
@@ -3207,10 +3041,10 @@ function Pr(e, t, n, r) {
|
|
|
3207
3041
|
let p = [i.key];
|
|
3208
3042
|
K(u) ? p = u.map((g, v) => {
|
|
3209
3043
|
const R = s[g.type], S = R ? R({ [g.type]: g.value, index: v, parts: u }) : [g.value];
|
|
3210
|
-
return
|
|
3044
|
+
return aa(S) && (S[0].key = `${g.type}-${v}`), S;
|
|
3211
3045
|
}) : y(u) && (p = [u]);
|
|
3212
3046
|
const L = Q(G(), o), T = y(e.tag) || $(e.tag) ? e.tag : Dr();
|
|
3213
|
-
return
|
|
3047
|
+
return tr(T, L, p);
|
|
3214
3048
|
};
|
|
3215
3049
|
}
|
|
3216
3050
|
Q({
|
|
@@ -3221,46 +3055,46 @@ Q({
|
|
|
3221
3055
|
format: {
|
|
3222
3056
|
type: [String, Object]
|
|
3223
3057
|
}
|
|
3224
|
-
},
|
|
3225
|
-
const
|
|
3226
|
-
function
|
|
3227
|
-
const t =
|
|
3058
|
+
}, mn);
|
|
3059
|
+
const ia = /* @__PURE__ */ Ne("global-vue-i18n");
|
|
3060
|
+
function Ct(e = {}) {
|
|
3061
|
+
const t = dn();
|
|
3228
3062
|
if (t == null)
|
|
3229
3063
|
throw Qe(J.MUST_BE_CALL_SETUP_TOP);
|
|
3230
3064
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3231
3065
|
throw Qe(J.NOT_INSTALLED);
|
|
3232
|
-
const n =
|
|
3066
|
+
const n = la(t), r = ua(n), s = yr(t), o = ca(e, s);
|
|
3233
3067
|
if (o === "global")
|
|
3234
|
-
return
|
|
3068
|
+
return ta(r, e, s), r;
|
|
3235
3069
|
if (o === "parent") {
|
|
3236
|
-
let u =
|
|
3237
|
-
return u == null && (process.env.NODE_ENV !== "production" && ue(
|
|
3070
|
+
let u = fa(n, t, e.__useComponent);
|
|
3071
|
+
return u == null && (process.env.NODE_ENV !== "production" && ue(mt(ce.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3238
3072
|
}
|
|
3239
3073
|
const i = n;
|
|
3240
3074
|
let c = i.__getInstance(t);
|
|
3241
3075
|
if (c == null) {
|
|
3242
3076
|
const u = Q({}, e);
|
|
3243
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), c =
|
|
3077
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), c = sa(u), i.__composerExtend && (c[nn] = i.__composerExtend(c)), da(i, t, c), i.__setInstance(t, c);
|
|
3244
3078
|
} else
|
|
3245
|
-
process.env.NODE_ENV !== "production" && o === "local" && ue(
|
|
3079
|
+
process.env.NODE_ENV !== "production" && o === "local" && ue(mt(ce.DUPLICATE_USE_I18N_CALLING));
|
|
3246
3080
|
return c;
|
|
3247
3081
|
}
|
|
3248
|
-
function
|
|
3249
|
-
const t = at(e.isCE ?
|
|
3082
|
+
function la(e) {
|
|
3083
|
+
const t = at(e.isCE ? ia : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3250
3084
|
if (!t)
|
|
3251
3085
|
throw Qe(e.isCE ? J.NOT_INSTALLED_WITH_PROVIDE : J.UNEXPECTED_ERROR);
|
|
3252
3086
|
return t;
|
|
3253
3087
|
}
|
|
3254
|
-
function
|
|
3088
|
+
function ca(e, t) {
|
|
3255
3089
|
return ht(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3256
3090
|
}
|
|
3257
|
-
function
|
|
3091
|
+
function ua(e) {
|
|
3258
3092
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3259
3093
|
}
|
|
3260
|
-
function
|
|
3094
|
+
function fa(e, t, n = !1) {
|
|
3261
3095
|
let r = null;
|
|
3262
3096
|
const s = t.root;
|
|
3263
|
-
let o =
|
|
3097
|
+
let o = _a(t, n);
|
|
3264
3098
|
for (; o != null; ) {
|
|
3265
3099
|
const i = e;
|
|
3266
3100
|
if (e.mode === "composition")
|
|
@@ -3275,14 +3109,14 @@ function Ia(e, t, n = !1) {
|
|
|
3275
3109
|
}
|
|
3276
3110
|
return r;
|
|
3277
3111
|
}
|
|
3278
|
-
function
|
|
3112
|
+
function _a(e, t = !1) {
|
|
3279
3113
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3280
3114
|
}
|
|
3281
|
-
function
|
|
3115
|
+
function da(e, t, n) {
|
|
3282
3116
|
let r = null;
|
|
3283
3117
|
Qr(() => {
|
|
3284
3118
|
if (process.env.NODE_ENV !== "production") {
|
|
3285
|
-
t.__VUE_I18N__ = n, r =
|
|
3119
|
+
t.__VUE_I18N__ = n, r = gs();
|
|
3286
3120
|
const s = n;
|
|
3287
3121
|
s[en] && s[en](r), r.on("*", Zn);
|
|
3288
3122
|
}
|
|
@@ -3301,37 +3135,37 @@ Q({
|
|
|
3301
3135
|
format: {
|
|
3302
3136
|
type: [String, Object]
|
|
3303
3137
|
}
|
|
3304
|
-
},
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3138
|
+
}, mn);
|
|
3139
|
+
Jo();
|
|
3140
|
+
yo(ao);
|
|
3141
|
+
Do(Co);
|
|
3142
|
+
Po(mr);
|
|
3309
3143
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3310
3144
|
const e = Ae();
|
|
3311
|
-
e.__INTLIFY__ = !0,
|
|
3145
|
+
e.__INTLIFY__ = !0, io(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3312
3146
|
}
|
|
3313
3147
|
process.env.NODE_ENV;
|
|
3314
|
-
let
|
|
3315
|
-
function
|
|
3316
|
-
if (
|
|
3148
|
+
let Et = null;
|
|
3149
|
+
function Ga(e) {
|
|
3150
|
+
if (Et !== null) {
|
|
3317
3151
|
console.warn(
|
|
3318
3152
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
3319
3153
|
);
|
|
3320
3154
|
return;
|
|
3321
3155
|
}
|
|
3322
|
-
|
|
3156
|
+
Et = e;
|
|
3323
3157
|
}
|
|
3324
|
-
function
|
|
3325
|
-
if (
|
|
3158
|
+
function ma() {
|
|
3159
|
+
if (Et === null)
|
|
3326
3160
|
throw new Error(
|
|
3327
3161
|
"[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first."
|
|
3328
3162
|
);
|
|
3329
|
-
return
|
|
3163
|
+
return Et;
|
|
3330
3164
|
}
|
|
3331
|
-
function
|
|
3332
|
-
const { t } =
|
|
3165
|
+
function Ya(e) {
|
|
3166
|
+
const { t } = Ct({
|
|
3333
3167
|
useScope: "global",
|
|
3334
|
-
__i18n:
|
|
3168
|
+
__i18n: ma().global
|
|
3335
3169
|
});
|
|
3336
3170
|
function n(...r) {
|
|
3337
3171
|
const [s, o, i] = r;
|
|
@@ -3339,8 +3173,176 @@ function Ga(e) {
|
|
|
3339
3173
|
}
|
|
3340
3174
|
return { t: n };
|
|
3341
3175
|
}
|
|
3176
|
+
let pt = null;
|
|
3177
|
+
function Ha(e) {
|
|
3178
|
+
if (pt !== null) {
|
|
3179
|
+
console.warn(
|
|
3180
|
+
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
3181
|
+
);
|
|
3182
|
+
return;
|
|
3183
|
+
}
|
|
3184
|
+
pt = e;
|
|
3185
|
+
}
|
|
3186
|
+
function Ea() {
|
|
3187
|
+
if (pt === null)
|
|
3188
|
+
throw new Error(
|
|
3189
|
+
"[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first."
|
|
3190
|
+
);
|
|
3191
|
+
return pt;
|
|
3192
|
+
}
|
|
3193
|
+
const pa = [
|
|
3194
|
+
"icon",
|
|
3195
|
+
"iconRight",
|
|
3196
|
+
"noCaps",
|
|
3197
|
+
"noWrap",
|
|
3198
|
+
"align",
|
|
3199
|
+
"stack",
|
|
3200
|
+
"stretch",
|
|
3201
|
+
"size",
|
|
3202
|
+
"outline",
|
|
3203
|
+
"flat",
|
|
3204
|
+
"unelevated",
|
|
3205
|
+
"rounded",
|
|
3206
|
+
"push",
|
|
3207
|
+
"square",
|
|
3208
|
+
"glossy",
|
|
3209
|
+
"fab",
|
|
3210
|
+
"fabMini",
|
|
3211
|
+
"padding",
|
|
3212
|
+
"color",
|
|
3213
|
+
"textColor",
|
|
3214
|
+
"dense",
|
|
3215
|
+
"ripple",
|
|
3216
|
+
"round"
|
|
3217
|
+
], Na = [
|
|
3218
|
+
"vertical",
|
|
3219
|
+
"outsideArrows",
|
|
3220
|
+
"mobileArrows",
|
|
3221
|
+
"align",
|
|
3222
|
+
"breakpoint",
|
|
3223
|
+
"leftIcon",
|
|
3224
|
+
"rightIcon",
|
|
3225
|
+
"stretch",
|
|
3226
|
+
"shrink",
|
|
3227
|
+
"switchIndicator",
|
|
3228
|
+
"narrowIndicator",
|
|
3229
|
+
"inlineLabel",
|
|
3230
|
+
"noCaps",
|
|
3231
|
+
"activeColor",
|
|
3232
|
+
"activeBgColor",
|
|
3233
|
+
"indicatorColor",
|
|
3234
|
+
"contentClass",
|
|
3235
|
+
"activeClass",
|
|
3236
|
+
"dense"
|
|
3237
|
+
], ga = [
|
|
3238
|
+
"icon",
|
|
3239
|
+
"activeClass",
|
|
3240
|
+
"exactActiveClass",
|
|
3241
|
+
"noCaps",
|
|
3242
|
+
"alert",
|
|
3243
|
+
"contentClass",
|
|
3244
|
+
"ripple"
|
|
3245
|
+
], Oa = [
|
|
3246
|
+
"reveal",
|
|
3247
|
+
"revealOffset",
|
|
3248
|
+
"elevated",
|
|
3249
|
+
"bordered"
|
|
3250
|
+
], La = ["inset"], ha = ["shrink"], Ta = [
|
|
3251
|
+
"icon",
|
|
3252
|
+
"size",
|
|
3253
|
+
"fontSize",
|
|
3254
|
+
"color",
|
|
3255
|
+
"textColor",
|
|
3256
|
+
"square",
|
|
3257
|
+
"rounded"
|
|
3258
|
+
], Ia = [
|
|
3259
|
+
"floating",
|
|
3260
|
+
"multiLine",
|
|
3261
|
+
"align",
|
|
3262
|
+
"color",
|
|
3263
|
+
"textColor",
|
|
3264
|
+
"transparent",
|
|
3265
|
+
"outline",
|
|
3266
|
+
"rounded"
|
|
3267
|
+
], Ca = [
|
|
3268
|
+
"virtualScrollItemSize",
|
|
3269
|
+
"virtualScrollStickySizeStart",
|
|
3270
|
+
"virtualScrollStickySizeEnd",
|
|
3271
|
+
"color",
|
|
3272
|
+
"iconFirstPage",
|
|
3273
|
+
"iconPrevPage",
|
|
3274
|
+
"iconNextPage",
|
|
3275
|
+
"iconLastPage",
|
|
3276
|
+
"grid",
|
|
3277
|
+
"gridHeader",
|
|
3278
|
+
"dense",
|
|
3279
|
+
"hideHeader",
|
|
3280
|
+
"hideBottom",
|
|
3281
|
+
"hideSelectedBanner",
|
|
3282
|
+
"hideNoData",
|
|
3283
|
+
"hidePagination",
|
|
3284
|
+
"flat",
|
|
3285
|
+
"bordered",
|
|
3286
|
+
"square",
|
|
3287
|
+
"separator",
|
|
3288
|
+
"wrapCells",
|
|
3289
|
+
"tableStyle",
|
|
3290
|
+
"tableClass",
|
|
3291
|
+
"tableHeaderStyle",
|
|
3292
|
+
"tableHeaderClass",
|
|
3293
|
+
"cardContainerStyle",
|
|
3294
|
+
"cardContainerClass",
|
|
3295
|
+
"cardStyle",
|
|
3296
|
+
"cardClass",
|
|
3297
|
+
"titleClass"
|
|
3298
|
+
], ba = ["dark", "square", "flat", "bordered"], Aa = ["align", "vertical"], zn = {
|
|
3299
|
+
"q-btn": pa,
|
|
3300
|
+
"q-tabs": Na,
|
|
3301
|
+
"q-route-tab": ga,
|
|
3302
|
+
"q-header": Oa,
|
|
3303
|
+
"q-toolbar": La,
|
|
3304
|
+
"q-toolbar-title": ha,
|
|
3305
|
+
"q-avatar": Ta,
|
|
3306
|
+
"q-badge": Ia,
|
|
3307
|
+
"q-table": Ca,
|
|
3308
|
+
"q-card": ba,
|
|
3309
|
+
"q-card-actions": Aa
|
|
3310
|
+
};
|
|
3311
|
+
function er(e, t) {
|
|
3312
|
+
return t.split(".").reduce((n, r) => {
|
|
3313
|
+
if (n && typeof n == "object")
|
|
3314
|
+
return n[r];
|
|
3315
|
+
}, e);
|
|
3316
|
+
}
|
|
3317
|
+
function va(e, t, n) {
|
|
3318
|
+
let r = er(e, `${t}.${n}`);
|
|
3319
|
+
if (r === void 0 && (r = er(e, `default.${n}`)), typeof r == "object")
|
|
3320
|
+
throw new Error(
|
|
3321
|
+
`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`
|
|
3322
|
+
);
|
|
3323
|
+
return r;
|
|
3324
|
+
}
|
|
3325
|
+
function Sa(e) {
|
|
3326
|
+
if (!(e in zn))
|
|
3327
|
+
throw new Error(
|
|
3328
|
+
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
3329
|
+
);
|
|
3330
|
+
return zn[e];
|
|
3331
|
+
}
|
|
3332
|
+
function xa() {
|
|
3333
|
+
const e = ge(() => Ea());
|
|
3334
|
+
function t(n, r, s) {
|
|
3335
|
+
const o = Sa(r), i = {};
|
|
3336
|
+
for (const c of o) {
|
|
3337
|
+
const u = s?.[c] ?? va(e.value, n, `${r}.${String(c)}`);
|
|
3338
|
+
u !== void 0 && (i[c] = u);
|
|
3339
|
+
}
|
|
3340
|
+
return i;
|
|
3341
|
+
}
|
|
3342
|
+
return { ui: t };
|
|
3343
|
+
}
|
|
3342
3344
|
let Nt = null;
|
|
3343
|
-
function
|
|
3345
|
+
function ja(e) {
|
|
3344
3346
|
if (Nt !== null) {
|
|
3345
3347
|
console.warn(
|
|
3346
3348
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
@@ -3356,15 +3358,15 @@ function De() {
|
|
|
3356
3358
|
);
|
|
3357
3359
|
return Nt;
|
|
3358
3360
|
}
|
|
3359
|
-
async function
|
|
3361
|
+
async function ya() {
|
|
3360
3362
|
return (await De().get("/metadata/entities")).data;
|
|
3361
3363
|
}
|
|
3362
|
-
async function
|
|
3364
|
+
async function Da() {
|
|
3363
3365
|
return (await De().get(
|
|
3364
3366
|
"/metadata/routes"
|
|
3365
3367
|
)).data;
|
|
3366
3368
|
}
|
|
3367
|
-
const
|
|
3369
|
+
const Ba = () => Pa(on()), Pa = /* @__PURE__ */ sn("LinidConfigurationStore", {
|
|
3368
3370
|
state: () => ({
|
|
3369
3371
|
entities: [],
|
|
3370
3372
|
apiEndpoints: [],
|
|
@@ -3395,8 +3397,8 @@ const Ha = () => ya(rr()), ya = /* @__PURE__ */ nr("LinidConfigurationStore", {
|
|
|
3395
3397
|
this.loading = !0, this.error = null;
|
|
3396
3398
|
try {
|
|
3397
3399
|
const [e, t] = await Promise.all([
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
+
ya(),
|
|
3401
|
+
Da()
|
|
3400
3402
|
]);
|
|
3401
3403
|
this.entities = e, this.apiEndpoints = t;
|
|
3402
3404
|
} catch (e) {
|
|
@@ -3406,8 +3408,21 @@ const Ha = () => ya(rr()), ya = /* @__PURE__ */ nr("LinidConfigurationStore", {
|
|
|
3406
3408
|
}
|
|
3407
3409
|
}
|
|
3408
3410
|
}
|
|
3411
|
+
}), Ka = () => Ra(on()), Ra = /* @__PURE__ */ sn("LinidUiStore", {
|
|
3412
|
+
state: () => ({
|
|
3413
|
+
mainNavigationItems: []
|
|
3414
|
+
}),
|
|
3415
|
+
actions: {
|
|
3416
|
+
/**
|
|
3417
|
+
* Add items to the main navigation menu.
|
|
3418
|
+
* @param items - The navigation menu items to add.
|
|
3419
|
+
*/
|
|
3420
|
+
addMainNavigationMenuItems(...e) {
|
|
3421
|
+
this.mainNavigationItems.push(...e);
|
|
3422
|
+
}
|
|
3423
|
+
}
|
|
3409
3424
|
}), Rr = /* @__PURE__ */ new Map();
|
|
3410
|
-
function
|
|
3425
|
+
function Xa(e) {
|
|
3411
3426
|
Rr.set(e.instanceId, e);
|
|
3412
3427
|
}
|
|
3413
3428
|
function Ze(e) {
|
|
@@ -3418,37 +3433,37 @@ function Ze(e) {
|
|
|
3418
3433
|
);
|
|
3419
3434
|
return t;
|
|
3420
3435
|
}
|
|
3421
|
-
async function
|
|
3436
|
+
async function qa(e, t) {
|
|
3422
3437
|
const n = Ze(e);
|
|
3423
3438
|
return De().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
3424
3439
|
}
|
|
3425
|
-
async function
|
|
3440
|
+
async function Qa(e, t, n) {
|
|
3426
3441
|
const r = Ze(e);
|
|
3427
3442
|
return De().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
3428
3443
|
}
|
|
3429
|
-
async function
|
|
3444
|
+
async function Ja(e, t, n) {
|
|
3430
3445
|
const r = Ze(e);
|
|
3431
3446
|
return De().get(`/${r.apiEndpoint}`, {
|
|
3432
3447
|
params: { ...t, ...n }
|
|
3433
3448
|
}).then(({ data: s }) => s);
|
|
3434
3449
|
}
|
|
3435
|
-
async function
|
|
3450
|
+
async function Za(e, t) {
|
|
3436
3451
|
const n = Ze(e);
|
|
3437
3452
|
return De().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
3438
3453
|
}
|
|
3439
|
-
async function
|
|
3454
|
+
async function za(e, t) {
|
|
3440
3455
|
const n = Ze(e);
|
|
3441
3456
|
return De().delete(`/${n.apiEndpoint}/${t}`);
|
|
3442
3457
|
}
|
|
3443
|
-
function
|
|
3458
|
+
function ka(e, t) {
|
|
3444
3459
|
if (!gt(e) || !gt(t))
|
|
3445
3460
|
return t;
|
|
3446
3461
|
const n = { ...e };
|
|
3447
3462
|
for (const r of Object.keys(t))
|
|
3448
|
-
n[r] =
|
|
3463
|
+
n[r] = ka(e[r], t[r]);
|
|
3449
3464
|
return n;
|
|
3450
3465
|
}
|
|
3451
|
-
function
|
|
3466
|
+
function ei(e) {
|
|
3452
3467
|
const t = {};
|
|
3453
3468
|
for (const [n, r] of Object.entries(e)) {
|
|
3454
3469
|
const s = n.split(".");
|
|
@@ -3462,16 +3477,16 @@ function Qa(e) {
|
|
|
3462
3477
|
function gt(e) {
|
|
3463
3478
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3464
3479
|
}
|
|
3465
|
-
function
|
|
3480
|
+
function Ma(e, t) {
|
|
3466
3481
|
return typeof e != "object" || e === null ? e : Object.fromEntries(
|
|
3467
3482
|
Object.entries(e).map(([n, r]) => {
|
|
3468
|
-
const s = t(n), o = gt(r) ?
|
|
3483
|
+
const s = t(n), o = gt(r) ? Ma(r, t) : r;
|
|
3469
3484
|
return [s, o];
|
|
3470
3485
|
})
|
|
3471
3486
|
);
|
|
3472
3487
|
}
|
|
3473
|
-
var
|
|
3474
|
-
class
|
|
3488
|
+
var Fa = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Fa || {});
|
|
3489
|
+
class ti {
|
|
3475
3490
|
/**
|
|
3476
3491
|
* Unique identifier for the module.
|
|
3477
3492
|
*
|
|
@@ -3531,13 +3546,14 @@ class Ja {
|
|
|
3531
3546
|
* Initialize phase - register stores and initialize resources.
|
|
3532
3547
|
*
|
|
3533
3548
|
* This is called after configuration.
|
|
3534
|
-
* Use it to
|
|
3549
|
+
* Use it to initialize module resources.
|
|
3535
3550
|
*
|
|
3536
3551
|
* Default implementation returns success.
|
|
3537
3552
|
* Override this method to add custom initialization logic.
|
|
3553
|
+
* @param config - Module-specific configuration from host.
|
|
3538
3554
|
* @returns Promise resolving to the lifecycle result.
|
|
3539
3555
|
*/
|
|
3540
|
-
async initialize() {
|
|
3556
|
+
async initialize(t) {
|
|
3541
3557
|
return { success: !0 };
|
|
3542
3558
|
}
|
|
3543
3559
|
/**
|
|
@@ -3548,9 +3564,10 @@ class Ja {
|
|
|
3548
3564
|
*
|
|
3549
3565
|
* Default implementation returns success.
|
|
3550
3566
|
* Override this method to add custom ready logic.
|
|
3567
|
+
* @param config - Module-specific configuration from host.
|
|
3551
3568
|
* @returns Promise resolving to the lifecycle result.
|
|
3552
3569
|
*/
|
|
3553
|
-
async ready() {
|
|
3570
|
+
async ready(t) {
|
|
3554
3571
|
return { success: !0 };
|
|
3555
3572
|
}
|
|
3556
3573
|
/**
|
|
@@ -3561,41 +3578,43 @@ class Ja {
|
|
|
3561
3578
|
*
|
|
3562
3579
|
* Default implementation returns success.
|
|
3563
3580
|
* Override this method to add custom post-init logic.
|
|
3581
|
+
* @param config - Module-specific configuration from host.
|
|
3564
3582
|
* @returns Promise resolving to the lifecycle result.
|
|
3565
3583
|
*/
|
|
3566
|
-
async postInit() {
|
|
3584
|
+
async postInit(t) {
|
|
3567
3585
|
return { success: !0 };
|
|
3568
3586
|
}
|
|
3569
3587
|
}
|
|
3570
3588
|
export {
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3589
|
+
ti as BasicRemoteModule,
|
|
3590
|
+
$a as LinidZoneRenderer,
|
|
3591
|
+
Fa as ModuleLifecyclePhase,
|
|
3592
|
+
za as deleteEntityById,
|
|
3593
|
+
ei as fromDot,
|
|
3594
|
+
Ja as getEntities,
|
|
3595
|
+
Za as getEntityById,
|
|
3578
3596
|
De as getHttpClient,
|
|
3579
|
-
|
|
3597
|
+
ma as getI18nInstance,
|
|
3580
3598
|
es as getModuleFederation,
|
|
3581
3599
|
Ze as getModuleHostConfiguration,
|
|
3582
|
-
|
|
3583
|
-
|
|
3600
|
+
on as getPiniaStore,
|
|
3601
|
+
Ea as getUiDesign,
|
|
3584
3602
|
gt as isObject,
|
|
3585
3603
|
ts as loadAsyncComponent,
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3604
|
+
ka as merge,
|
|
3605
|
+
Xa as registerModuleHostConfiguration,
|
|
3606
|
+
Ma as renameKeys,
|
|
3607
|
+
qa as saveEntity,
|
|
3608
|
+
ja as setHttpClient,
|
|
3609
|
+
Ga as setI18nInstance,
|
|
3610
|
+
Ua as setModuleFederation,
|
|
3611
|
+
Va as setPiniaStore,
|
|
3612
|
+
Ha as setUiDesign,
|
|
3613
|
+
Qa as updateEntity,
|
|
3614
|
+
Ba as useLinidConfigurationStore,
|
|
3615
|
+
Ka as useLinidUiStore,
|
|
3597
3616
|
os as useLinidZoneStore,
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3617
|
+
Wa as usePagination,
|
|
3618
|
+
Ya as useScopedI18n,
|
|
3619
|
+
xa as useUiDesign
|
|
3601
3620
|
};
|