@linagora/linid-im-front-corelib 0.0.54 → 0.0.56
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 +641 -634
- package/dist/core-lib.umd.js +12 -12
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useFieldValidation.d.ts +4 -4
- package/dist/types/src/composables/useQuasarFieldValidation.d.ts +2 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/types/uiDesign.d.ts +11 -3
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as bn from "vue";
|
|
2
2
|
import { defineAsyncComponent as $o, hasInjectionContext as wn, inject as xt, getCurrentInstance as Bo, ref as Qt, reactive as jo, markRaw as mt, effectScope as Ho, isRef as ht, isReactive as ir, toRef as yn, toRaw as qo, nextTick as Or, getCurrentScope as Wo, onScopeDispose as Go, watch as Dn, computed as Ue, toRefs as Sr, defineComponent as zt, openBlock as Nn, createElementBlock as Tr, Fragment as Vt, renderList as Yo, unref as Ar, createBlock as Ko, resolveDynamicComponent as Xo, mergeProps as Jo, renderSlot as Qo, createCommentVNode as zo, onMounted as Cs, onUnmounted as Is, shallowRef as Zo, h as Ps, createVNode as ei, Text as ti } from "vue";
|
|
3
3
|
let $t = null;
|
|
4
|
-
function
|
|
4
|
+
function Ju(e) {
|
|
5
5
|
if ($t !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -88,19 +88,19 @@ function vr(e) {
|
|
|
88
88
|
function Cr(e, t, n, r) {
|
|
89
89
|
const { state: s, actions: o, getters: i } = t, a = n.state.value[e];
|
|
90
90
|
let c;
|
|
91
|
-
function
|
|
91
|
+
function u() {
|
|
92
92
|
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = s ? s() : {});
|
|
93
|
-
const
|
|
93
|
+
const f = process.env.NODE_ENV !== "production" && r ? (
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
95
95
|
Sr(Qt(s ? s() : {}).value)
|
|
96
96
|
) : Sr(n.state.value[e]);
|
|
97
|
-
return _e(
|
|
97
|
+
return _e(f, o, Object.keys(i || {}).reduce((p, m) => (process.env.NODE_ENV !== "production" && m in f && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${m}" in store "${e}".`), p[m] = mt(Ue(() => {
|
|
98
98
|
Bt(n);
|
|
99
99
|
const L = n._s.get(e);
|
|
100
|
-
return i[
|
|
100
|
+
return i[m].call(L, L);
|
|
101
101
|
})), p), {}));
|
|
102
102
|
}
|
|
103
|
-
return c = Un(e,
|
|
103
|
+
return c = Un(e, u, t, n, r, !0), c;
|
|
104
104
|
}
|
|
105
105
|
function Un(e, t, n = {}, r, s, o) {
|
|
106
106
|
let i;
|
|
@@ -109,16 +109,16 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
109
109
|
throw new Error("Pinia destroyed");
|
|
110
110
|
const c = { deep: !0 };
|
|
111
111
|
process.env.NODE_ENV !== "production" && (c.onTrigger = (I) => {
|
|
112
|
-
|
|
112
|
+
u ? L = I : u == !1 && !h._hotUpdating && (Array.isArray(L) ? L.push(I) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
113
113
|
});
|
|
114
|
-
let
|
|
115
|
-
const
|
|
116
|
-
!o && !
|
|
114
|
+
let u, f, p = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), L;
|
|
115
|
+
const E = r.state.value[e];
|
|
116
|
+
!o && !E && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = {});
|
|
117
117
|
const b = Qt({});
|
|
118
118
|
let N;
|
|
119
|
-
function
|
|
119
|
+
function _(I) {
|
|
120
120
|
let P;
|
|
121
|
-
|
|
121
|
+
u = f = !1, process.env.NODE_ENV !== "production" && (L = []), typeof I == "function" ? (I(r.state.value[e]), P = {
|
|
122
122
|
type: _t.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
124
|
events: L
|
|
@@ -130,8 +130,8 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
130
130
|
});
|
|
131
131
|
const k = N = /* @__PURE__ */ Symbol();
|
|
132
132
|
Or().then(() => {
|
|
133
|
-
N === k && (
|
|
134
|
-
}),
|
|
133
|
+
N === k && (u = !0);
|
|
134
|
+
}), f = !0, ze(p, P, r.state.value[e]);
|
|
135
135
|
}
|
|
136
136
|
const O = o ? function() {
|
|
137
137
|
const { state: P } = n, k = P ? P() : {};
|
|
@@ -145,7 +145,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
145
145
|
} : Ds
|
|
146
146
|
);
|
|
147
147
|
function T() {
|
|
148
|
-
i.stop(), p.clear(),
|
|
148
|
+
i.stop(), p.clear(), m.clear(), r._s.delete(e);
|
|
149
149
|
}
|
|
150
150
|
const y = (I, P = "") => {
|
|
151
151
|
if (Rr in I)
|
|
@@ -159,7 +159,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
159
159
|
function ke(Z) {
|
|
160
160
|
Ne.add(Z);
|
|
161
161
|
}
|
|
162
|
-
ze(
|
|
162
|
+
ze(m, {
|
|
163
163
|
args: q,
|
|
164
164
|
name: k[On],
|
|
165
165
|
store: h,
|
|
@@ -184,12 +184,12 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
184
184
|
_p: r,
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
187
|
-
$onAction: Lr.bind(null,
|
|
188
|
-
$patch:
|
|
187
|
+
$onAction: Lr.bind(null, m),
|
|
188
|
+
$patch: _,
|
|
189
189
|
$reset: O,
|
|
190
190
|
$subscribe(I, P = {}) {
|
|
191
191
|
const k = Lr(p, I, P.detached, () => q()), q = i.run(() => Dn(() => r.state.value[e], (se) => {
|
|
192
|
-
(P.flush === "sync" ?
|
|
192
|
+
(P.flush === "sync" ? f : u) && I({
|
|
193
193
|
storeId: e,
|
|
194
194
|
type: _t.direct,
|
|
195
195
|
events: L
|
|
@@ -213,7 +213,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
213
213
|
for (const I in M) {
|
|
214
214
|
const P = M[I];
|
|
215
215
|
if (ht(P) && !vr(P) || ir(P))
|
|
216
|
-
process.env.NODE_ENV !== "production" && s ? b.value[I] = yn(M, I) : o || (
|
|
216
|
+
process.env.NODE_ENV !== "production" && s ? b.value[I] = yn(M, I) : o || (E && ii(P) && (ht(P) ? P.value = E[I] : Fn(P, E[I])), r.state.value[e][I] = P), process.env.NODE_ENV !== "production" && v.state.push(I);
|
|
217
217
|
else if (typeof P == "function") {
|
|
218
218
|
const k = process.env.NODE_ENV !== "production" && s ? P : y(P, I);
|
|
219
219
|
M[I] = k, process.env.NODE_ENV !== "production" && (v.actions[I] = P), a.actions[I] = P;
|
|
@@ -228,7 +228,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
228
228
|
set: (I) => {
|
|
229
229
|
if (process.env.NODE_ENV !== "production" && s)
|
|
230
230
|
throw new Error("cannot set hotState");
|
|
231
|
-
|
|
231
|
+
_((P) => {
|
|
232
232
|
_e(P, I);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
@@ -241,8 +241,8 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
241
241
|
h[P] = yn(I.$state, P);
|
|
242
242
|
}), Object.keys(h.$state).forEach((P) => {
|
|
243
243
|
P in I.$state || delete h[P];
|
|
244
|
-
}),
|
|
245
|
-
|
|
244
|
+
}), u = !1, f = !1, r.state.value[e] = yn(I._hmrPayload, "hotState"), f = !0, Or().then(() => {
|
|
245
|
+
u = !0;
|
|
246
246
|
});
|
|
247
247
|
for (const P in I._hmrPayload.actions) {
|
|
248
248
|
const k = I[P];
|
|
@@ -291,7 +291,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
291
291
|
})));
|
|
292
292
|
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
293
293
|
state: () => new MyClass()
|
|
294
|
-
Found in store "${h.$id}".`),
|
|
294
|
+
Found in store "${h.$id}".`), E && o && n.hydrate && n.hydrate(h.$state, E), u = !0, f = !0, h;
|
|
295
295
|
}
|
|
296
296
|
// @__NO_SIDE_EFFECTS__
|
|
297
297
|
function Zt(e, t, n) {
|
|
@@ -307,25 +307,25 @@ function Zt(e, t, n) {
|
|
|
307
307
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
308
308
|
This will fail in production.`);
|
|
309
309
|
i = qe, i._s.has(e) || (s ? Un(e, t, r, i) : Cr(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
|
-
const
|
|
310
|
+
const u = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
312
|
-
const
|
|
313
|
-
a._hotUpdate(p), delete i.state.value[
|
|
312
|
+
const f = "__hot:" + e, p = s ? Un(f, t, r, i, !0) : Cr(f, _e({}, r), i, !0);
|
|
313
|
+
a._hotUpdate(p), delete i.state.value[f], i._s.delete(f);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && tt) {
|
|
316
|
-
const
|
|
317
|
-
if (
|
|
316
|
+
const f = Bo();
|
|
317
|
+
if (f && f.proxy && // avoid adding stores that are just built for hot module replacement
|
|
318
318
|
!a) {
|
|
319
|
-
const p =
|
|
320
|
-
|
|
319
|
+
const p = f.proxy, m = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
320
|
+
m[e] = u;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
return
|
|
323
|
+
return u;
|
|
324
324
|
}
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let jt = null;
|
|
328
|
-
function
|
|
328
|
+
function Qu(e) {
|
|
329
329
|
if (jt !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -364,7 +364,7 @@ const ai = () => ci(en()), ci = /* @__PURE__ */ Zt("linidZoneStore", {
|
|
|
364
364
|
this.zones[e]?.some(({ plugin: n }) => n === t.plugin) || this.register(e, t);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), zu = /* @__PURE__ */ zt({
|
|
368
368
|
inheritAttrs: !1,
|
|
369
369
|
__name: "LinidZoneRenderer",
|
|
370
370
|
props: {
|
|
@@ -470,8 +470,8 @@ var nn = (function() {
|
|
|
470
470
|
if (this._parentage = null, Array.isArray(i))
|
|
471
471
|
try {
|
|
472
472
|
for (var a = xn(i), c = a.next(); !c.done; c = a.next()) {
|
|
473
|
-
var
|
|
474
|
-
|
|
473
|
+
var u = c.value;
|
|
474
|
+
u.remove(this);
|
|
475
475
|
}
|
|
476
476
|
} catch (b) {
|
|
477
477
|
t = { error: b };
|
|
@@ -484,10 +484,10 @@ var nn = (function() {
|
|
|
484
484
|
}
|
|
485
485
|
else
|
|
486
486
|
i.remove(this);
|
|
487
|
-
var
|
|
488
|
-
if (Ce(
|
|
487
|
+
var f = this.initialTeardown;
|
|
488
|
+
if (Ce(f))
|
|
489
489
|
try {
|
|
490
|
-
|
|
490
|
+
f();
|
|
491
491
|
} catch (b) {
|
|
492
492
|
o = b instanceof Sn ? b.errors : [b];
|
|
493
493
|
}
|
|
@@ -495,10 +495,10 @@ var nn = (function() {
|
|
|
495
495
|
if (p) {
|
|
496
496
|
this._finalizers = null;
|
|
497
497
|
try {
|
|
498
|
-
for (var
|
|
499
|
-
var
|
|
498
|
+
for (var m = xn(p), L = m.next(); !L.done; L = m.next()) {
|
|
499
|
+
var E = L.value;
|
|
500
500
|
try {
|
|
501
|
-
Ir(
|
|
501
|
+
Ir(E);
|
|
502
502
|
} catch (b) {
|
|
503
503
|
o = o ?? [], b instanceof Sn ? o = $n($n([], Vn(o)), Vn(b.errors)) : o.push(b);
|
|
504
504
|
}
|
|
@@ -507,7 +507,7 @@ var nn = (function() {
|
|
|
507
507
|
r = { error: b };
|
|
508
508
|
} finally {
|
|
509
509
|
try {
|
|
510
|
-
L && !L.done && (s =
|
|
510
|
+
L && !L.done && (s = m.return) && s.call(m);
|
|
511
511
|
} finally {
|
|
512
512
|
if (r) throw r.error;
|
|
513
513
|
}
|
|
@@ -770,8 +770,8 @@ var yi = ks(function(e) {
|
|
|
770
770
|
var c = a.value;
|
|
771
771
|
c.next(n);
|
|
772
772
|
}
|
|
773
|
-
} catch (
|
|
774
|
-
s = { error:
|
|
773
|
+
} catch (u) {
|
|
774
|
+
s = { error: u };
|
|
775
775
|
} finally {
|
|
776
776
|
try {
|
|
777
777
|
a && !a.done && (o = i.return) && o.call(i);
|
|
@@ -847,7 +847,7 @@ var yi = ks(function(e) {
|
|
|
847
847
|
}, t;
|
|
848
848
|
})(xs);
|
|
849
849
|
const Vs = new xs();
|
|
850
|
-
function
|
|
850
|
+
function Zu(e, t) {
|
|
851
851
|
const n = Qt(!1);
|
|
852
852
|
let r;
|
|
853
853
|
function s(o) {
|
|
@@ -1072,7 +1072,7 @@ const sa = (e) => {
|
|
|
1072
1072
|
!1
|
|
1073
1073
|
), (s) => {
|
|
1074
1074
|
r.push(s), We.postMessage(n, "*");
|
|
1075
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ue(We.postMessage)), aa = typeof queueMicrotask < "u" ? queueMicrotask.bind(We) : typeof process < "u" && process.nextTick || Ys, ca = (e) => e != null && ue(e[rn]),
|
|
1075
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ue(We.postMessage)), aa = typeof queueMicrotask < "u" ? queueMicrotask.bind(We) : typeof process < "u" && process.nextTick || Ys, ca = (e) => e != null && ue(e[rn]), g = {
|
|
1076
1076
|
isArray: it,
|
|
1077
1077
|
isArrayBuffer: js,
|
|
1078
1078
|
isBuffer: Nt,
|
|
@@ -1172,7 +1172,7 @@ let U = class Ks extends Error {
|
|
|
1172
1172
|
columnNumber: this.columnNumber,
|
|
1173
1173
|
stack: this.stack,
|
|
1174
1174
|
// Axios
|
|
1175
|
-
config:
|
|
1175
|
+
config: g.toJSONObject(this.config),
|
|
1176
1176
|
code: this.code,
|
|
1177
1177
|
status: this.status
|
|
1178
1178
|
};
|
|
@@ -1192,10 +1192,10 @@ U.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
|
1192
1192
|
U.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
1193
1193
|
const la = null;
|
|
1194
1194
|
function qn(e) {
|
|
1195
|
-
return
|
|
1195
|
+
return g.isPlainObject(e) || g.isArray(e);
|
|
1196
1196
|
}
|
|
1197
1197
|
function Xs(e) {
|
|
1198
|
-
return
|
|
1198
|
+
return g.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1199
1199
|
}
|
|
1200
1200
|
function Tn(e, t, n) {
|
|
1201
1201
|
return e ? e.concat(t).map(function(s, o) {
|
|
@@ -1203,15 +1203,15 @@ function Tn(e, t, n) {
|
|
|
1203
1203
|
}).join(n ? "." : "") : t;
|
|
1204
1204
|
}
|
|
1205
1205
|
function ua(e) {
|
|
1206
|
-
return
|
|
1206
|
+
return g.isArray(e) && !e.some(qn);
|
|
1207
1207
|
}
|
|
1208
|
-
const fa =
|
|
1208
|
+
const fa = g.toFlatObject(g, {}, null, function(t) {
|
|
1209
1209
|
return /^is[A-Z]/.test(t);
|
|
1210
1210
|
});
|
|
1211
1211
|
function an(e, t, n) {
|
|
1212
|
-
if (!
|
|
1212
|
+
if (!g.isObject(e))
|
|
1213
1213
|
throw new TypeError("target must be an object");
|
|
1214
|
-
t = t || new FormData(), n =
|
|
1214
|
+
t = t || new FormData(), n = g.toFlatObject(
|
|
1215
1215
|
n,
|
|
1216
1216
|
{
|
|
1217
1217
|
metaTokens: !0,
|
|
@@ -1220,55 +1220,55 @@ function an(e, t, n) {
|
|
|
1220
1220
|
},
|
|
1221
1221
|
!1,
|
|
1222
1222
|
function(b, N) {
|
|
1223
|
-
return !
|
|
1223
|
+
return !g.isUndefined(N[b]);
|
|
1224
1224
|
}
|
|
1225
1225
|
);
|
|
1226
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
1227
|
-
if (!
|
|
1226
|
+
const r = n.metaTokens, s = n.visitor || f, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
|
|
1227
|
+
if (!g.isFunction(s))
|
|
1228
1228
|
throw new TypeError("visitor must be a function");
|
|
1229
|
-
function
|
|
1230
|
-
if (
|
|
1231
|
-
if (
|
|
1232
|
-
return
|
|
1233
|
-
if (
|
|
1234
|
-
return
|
|
1235
|
-
if (!c &&
|
|
1229
|
+
function u(E) {
|
|
1230
|
+
if (E === null) return "";
|
|
1231
|
+
if (g.isDate(E))
|
|
1232
|
+
return E.toISOString();
|
|
1233
|
+
if (g.isBoolean(E))
|
|
1234
|
+
return E.toString();
|
|
1235
|
+
if (!c && g.isBlob(E))
|
|
1236
1236
|
throw new U("Blob is not supported. Use a Buffer instead.");
|
|
1237
|
-
return
|
|
1238
|
-
}
|
|
1239
|
-
function
|
|
1240
|
-
let
|
|
1241
|
-
if (
|
|
1242
|
-
return t.append(Tn(N, b, o),
|
|
1243
|
-
if (
|
|
1244
|
-
if (
|
|
1245
|
-
b = r ? b : b.slice(0, -2),
|
|
1246
|
-
else if (
|
|
1247
|
-
return b = Xs(b),
|
|
1248
|
-
!(
|
|
1237
|
+
return g.isArrayBuffer(E) || g.isTypedArray(E) ? c && typeof Blob == "function" ? new Blob([E]) : Buffer.from(E) : E;
|
|
1238
|
+
}
|
|
1239
|
+
function f(E, b, N) {
|
|
1240
|
+
let _ = E;
|
|
1241
|
+
if (g.isReactNative(t) && g.isReactNativeBlob(E))
|
|
1242
|
+
return t.append(Tn(N, b, o), u(E)), !1;
|
|
1243
|
+
if (E && !N && typeof E == "object") {
|
|
1244
|
+
if (g.endsWith(b, "{}"))
|
|
1245
|
+
b = r ? b : b.slice(0, -2), E = JSON.stringify(E);
|
|
1246
|
+
else if (g.isArray(E) && ua(E) || (g.isFileList(E) || g.endsWith(b, "[]")) && (_ = g.toArray(E)))
|
|
1247
|
+
return b = Xs(b), _.forEach(function(T, y) {
|
|
1248
|
+
!(g.isUndefined(T) || T === null) && t.append(
|
|
1249
1249
|
// eslint-disable-next-line no-nested-ternary
|
|
1250
1250
|
i === !0 ? Tn([b], y, o) : i === null ? b : b + "[]",
|
|
1251
|
-
|
|
1251
|
+
u(T)
|
|
1252
1252
|
);
|
|
1253
1253
|
}), !1;
|
|
1254
1254
|
}
|
|
1255
|
-
return qn(
|
|
1255
|
+
return qn(E) ? !0 : (t.append(Tn(N, b, o), u(E)), !1);
|
|
1256
1256
|
}
|
|
1257
|
-
const p = [],
|
|
1258
|
-
defaultVisitor:
|
|
1259
|
-
convertValue:
|
|
1257
|
+
const p = [], m = Object.assign(fa, {
|
|
1258
|
+
defaultVisitor: f,
|
|
1259
|
+
convertValue: u,
|
|
1260
1260
|
isVisitable: qn
|
|
1261
1261
|
});
|
|
1262
|
-
function L(
|
|
1263
|
-
if (!
|
|
1264
|
-
if (p.indexOf(
|
|
1262
|
+
function L(E, b) {
|
|
1263
|
+
if (!g.isUndefined(E)) {
|
|
1264
|
+
if (p.indexOf(E) !== -1)
|
|
1265
1265
|
throw Error("Circular reference detected in " + b.join("."));
|
|
1266
|
-
p.push(
|
|
1267
|
-
(!(
|
|
1266
|
+
p.push(E), g.forEach(E, function(_, O) {
|
|
1267
|
+
(!(g.isUndefined(_) || _ === null) && s.call(t, _, g.isString(O) ? O.trim() : O, b, m)) === !0 && L(_, b ? b.concat(O) : [O]);
|
|
1268
1268
|
}), p.pop();
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
if (!
|
|
1271
|
+
if (!g.isObject(e))
|
|
1272
1272
|
throw new TypeError("data must be an object");
|
|
1273
1273
|
return L(e), t;
|
|
1274
1274
|
}
|
|
@@ -1307,11 +1307,11 @@ function da(e) {
|
|
|
1307
1307
|
function Qs(e, t, n) {
|
|
1308
1308
|
if (!t)
|
|
1309
1309
|
return e;
|
|
1310
|
-
const r = n && n.encode || da, s =
|
|
1310
|
+
const r = n && n.encode || da, s = g.isFunction(n) ? {
|
|
1311
1311
|
serialize: n
|
|
1312
1312
|
} : n, o = s && s.serialize;
|
|
1313
1313
|
let i;
|
|
1314
|
-
if (o ? i = o(t, s) : i =
|
|
1314
|
+
if (o ? i = o(t, s) : i = g.isURLSearchParams(t) ? t.toString() : new cr(t, s).toString(r), i) {
|
|
1315
1315
|
const a = e.indexOf("#");
|
|
1316
1316
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
1317
1317
|
}
|
|
@@ -1367,7 +1367,7 @@ class Vr {
|
|
|
1367
1367
|
* @returns {void}
|
|
1368
1368
|
*/
|
|
1369
1369
|
forEach(t) {
|
|
1370
|
-
|
|
1370
|
+
g.forEach(this.handlers, function(r) {
|
|
1371
1371
|
r !== null && t(r);
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
@@ -1400,13 +1400,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ba
|
|
|
1400
1400
|
function Na(e, t) {
|
|
1401
1401
|
return an(e, new ce.classes.URLSearchParams(), {
|
|
1402
1402
|
visitor: function(n, r, s, o) {
|
|
1403
|
-
return ce.isNode &&
|
|
1403
|
+
return ce.isNode && g.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1404
1404
|
},
|
|
1405
1405
|
...t
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
function Oa(e) {
|
|
1409
|
-
return
|
|
1409
|
+
return g.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1410
1410
|
}
|
|
1411
1411
|
function Sa(e) {
|
|
1412
1412
|
const t = {}, n = Object.keys(e);
|
|
@@ -1422,20 +1422,20 @@ function zs(e) {
|
|
|
1422
1422
|
let i = n[o++];
|
|
1423
1423
|
if (i === "__proto__") return !0;
|
|
1424
1424
|
const a = Number.isFinite(+i), c = o >= n.length;
|
|
1425
|
-
return i = !i &&
|
|
1425
|
+
return i = !i && g.isArray(s) ? s.length : i, c ? (g.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !g.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && g.isArray(s[i]) && (s[i] = Sa(s[i])), !a);
|
|
1426
1426
|
}
|
|
1427
|
-
if (
|
|
1427
|
+
if (g.isFormData(e) && g.isFunction(e.entries)) {
|
|
1428
1428
|
const n = {};
|
|
1429
|
-
return
|
|
1429
|
+
return g.forEachEntry(e, (r, s) => {
|
|
1430
1430
|
t(Oa(r), s, n, 0);
|
|
1431
1431
|
}), n;
|
|
1432
1432
|
}
|
|
1433
1433
|
return null;
|
|
1434
1434
|
}
|
|
1435
1435
|
function Ta(e, t, n) {
|
|
1436
|
-
if (
|
|
1436
|
+
if (g.isString(e))
|
|
1437
1437
|
try {
|
|
1438
|
-
return (t || JSON.parse)(e),
|
|
1438
|
+
return (t || JSON.parse)(e), g.trim(e);
|
|
1439
1439
|
} catch (r) {
|
|
1440
1440
|
if (r.name !== "SyntaxError")
|
|
1441
1441
|
throw r;
|
|
@@ -1447,20 +1447,20 @@ const Tt = {
|
|
|
1447
1447
|
adapter: ["xhr", "http", "fetch"],
|
|
1448
1448
|
transformRequest: [
|
|
1449
1449
|
function(t, n) {
|
|
1450
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o =
|
|
1451
|
-
if (o &&
|
|
1450
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = g.isObject(t);
|
|
1451
|
+
if (o && g.isHTMLForm(t) && (t = new FormData(t)), g.isFormData(t))
|
|
1452
1452
|
return s ? JSON.stringify(zs(t)) : t;
|
|
1453
|
-
if (
|
|
1453
|
+
if (g.isArrayBuffer(t) || g.isBuffer(t) || g.isStream(t) || g.isFile(t) || g.isBlob(t) || g.isReadableStream(t))
|
|
1454
1454
|
return t;
|
|
1455
|
-
if (
|
|
1455
|
+
if (g.isArrayBufferView(t))
|
|
1456
1456
|
return t.buffer;
|
|
1457
|
-
if (
|
|
1457
|
+
if (g.isURLSearchParams(t))
|
|
1458
1458
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1459
1459
|
let a;
|
|
1460
1460
|
if (o) {
|
|
1461
1461
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1462
1462
|
return Na(t, this.formSerializer).toString();
|
|
1463
|
-
if ((a =
|
|
1463
|
+
if ((a = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
1464
1464
|
const c = this.env && this.env.FormData;
|
|
1465
1465
|
return an(
|
|
1466
1466
|
a ? { "files[]": t } : t,
|
|
@@ -1475,9 +1475,9 @@ const Tt = {
|
|
|
1475
1475
|
transformResponse: [
|
|
1476
1476
|
function(t) {
|
|
1477
1477
|
const n = this.transitional || Tt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1478
|
-
if (
|
|
1478
|
+
if (g.isResponse(t) || g.isReadableStream(t))
|
|
1479
1479
|
return t;
|
|
1480
|
-
if (t &&
|
|
1480
|
+
if (t && g.isString(t) && (r && !this.responseType || s)) {
|
|
1481
1481
|
const i = !(n && n.silentJSONParsing) && s;
|
|
1482
1482
|
try {
|
|
1483
1483
|
return JSON.parse(t, this.parseReviver);
|
|
@@ -1512,10 +1512,10 @@ const Tt = {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
1514
|
};
|
|
1515
|
-
|
|
1515
|
+
g.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1516
1516
|
Tt.headers[e] = {};
|
|
1517
1517
|
});
|
|
1518
|
-
const Aa =
|
|
1518
|
+
const Aa = g.toObjectSet([
|
|
1519
1519
|
"age",
|
|
1520
1520
|
"authorization",
|
|
1521
1521
|
"content-length",
|
|
@@ -1545,7 +1545,7 @@ function dt(e) {
|
|
|
1545
1545
|
return e && String(e).trim().toLowerCase();
|
|
1546
1546
|
}
|
|
1547
1547
|
function Ft(e) {
|
|
1548
|
-
return e === !1 || e == null ? e :
|
|
1548
|
+
return e === !1 || e == null ? e : g.isArray(e) ? e.map(Ft) : String(e);
|
|
1549
1549
|
}
|
|
1550
1550
|
function Ra(e) {
|
|
1551
1551
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -1556,12 +1556,12 @@ function Ra(e) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
const va = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1558
1558
|
function An(e, t, n, r, s) {
|
|
1559
|
-
if (
|
|
1559
|
+
if (g.isFunction(r))
|
|
1560
1560
|
return r.call(this, t, n);
|
|
1561
|
-
if (s && (t = n), !!
|
|
1562
|
-
if (
|
|
1561
|
+
if (s && (t = n), !!g.isString(t)) {
|
|
1562
|
+
if (g.isString(r))
|
|
1563
1563
|
return t.indexOf(r) !== -1;
|
|
1564
|
-
if (
|
|
1564
|
+
if (g.isRegExp(r))
|
|
1565
1565
|
return r.test(t);
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
@@ -1569,7 +1569,7 @@ function Ca(e) {
|
|
|
1569
1569
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
1570
1570
|
}
|
|
1571
1571
|
function Ia(e, t) {
|
|
1572
|
-
const n =
|
|
1572
|
+
const n = g.toCamelCase(" " + t);
|
|
1573
1573
|
["get", "set", "has"].forEach((r) => {
|
|
1574
1574
|
Object.defineProperty(e, r + n, {
|
|
1575
1575
|
value: function(s, o, i) {
|
|
@@ -1585,24 +1585,24 @@ let fe = class {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
set(t, n, r) {
|
|
1587
1587
|
const s = this;
|
|
1588
|
-
function o(a, c,
|
|
1589
|
-
const
|
|
1590
|
-
if (!
|
|
1588
|
+
function o(a, c, u) {
|
|
1589
|
+
const f = dt(c);
|
|
1590
|
+
if (!f)
|
|
1591
1591
|
throw new Error("header name must be a non-empty string");
|
|
1592
|
-
const p =
|
|
1593
|
-
(!p || s[p] === void 0 ||
|
|
1592
|
+
const p = g.findKey(s, f);
|
|
1593
|
+
(!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || c] = Ft(a));
|
|
1594
1594
|
}
|
|
1595
|
-
const i = (a, c) =>
|
|
1596
|
-
if (
|
|
1595
|
+
const i = (a, c) => g.forEach(a, (u, f) => o(u, f, c));
|
|
1596
|
+
if (g.isPlainObject(t) || t instanceof this.constructor)
|
|
1597
1597
|
i(t, n);
|
|
1598
|
-
else if (
|
|
1598
|
+
else if (g.isString(t) && (t = t.trim()) && !va(t))
|
|
1599
1599
|
i(La(t), n);
|
|
1600
|
-
else if (
|
|
1601
|
-
let a = {}, c,
|
|
1602
|
-
for (const
|
|
1603
|
-
if (!
|
|
1600
|
+
else if (g.isObject(t) && g.isIterable(t)) {
|
|
1601
|
+
let a = {}, c, u;
|
|
1602
|
+
for (const f of t) {
|
|
1603
|
+
if (!g.isArray(f))
|
|
1604
1604
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1605
|
-
a[
|
|
1605
|
+
a[u = f[0]] = (c = a[u]) ? g.isArray(c) ? [...c, f[1]] : [c, f[1]] : f[1];
|
|
1606
1606
|
}
|
|
1607
1607
|
i(a, n);
|
|
1608
1608
|
} else
|
|
@@ -1611,16 +1611,16 @@ let fe = class {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
get(t, n) {
|
|
1613
1613
|
if (t = dt(t), t) {
|
|
1614
|
-
const r =
|
|
1614
|
+
const r = g.findKey(this, t);
|
|
1615
1615
|
if (r) {
|
|
1616
1616
|
const s = this[r];
|
|
1617
1617
|
if (!n)
|
|
1618
1618
|
return s;
|
|
1619
1619
|
if (n === !0)
|
|
1620
1620
|
return Ra(s);
|
|
1621
|
-
if (
|
|
1621
|
+
if (g.isFunction(n))
|
|
1622
1622
|
return n.call(this, s, r);
|
|
1623
|
-
if (
|
|
1623
|
+
if (g.isRegExp(n))
|
|
1624
1624
|
return n.exec(s);
|
|
1625
1625
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1626
1626
|
}
|
|
@@ -1628,7 +1628,7 @@ let fe = class {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
has(t, n) {
|
|
1630
1630
|
if (t = dt(t), t) {
|
|
1631
|
-
const r =
|
|
1631
|
+
const r = g.findKey(this, t);
|
|
1632
1632
|
return !!(r && this[r] !== void 0 && (!n || An(this, this[r], r, n)));
|
|
1633
1633
|
}
|
|
1634
1634
|
return !1;
|
|
@@ -1638,11 +1638,11 @@ let fe = class {
|
|
|
1638
1638
|
let s = !1;
|
|
1639
1639
|
function o(i) {
|
|
1640
1640
|
if (i = dt(i), i) {
|
|
1641
|
-
const a =
|
|
1641
|
+
const a = g.findKey(r, i);
|
|
1642
1642
|
a && (!n || An(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
return
|
|
1645
|
+
return g.isArray(t) ? t.forEach(o) : o(t), s;
|
|
1646
1646
|
}
|
|
1647
1647
|
clear(t) {
|
|
1648
1648
|
const n = Object.keys(this);
|
|
@@ -1655,8 +1655,8 @@ let fe = class {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
normalize(t) {
|
|
1657
1657
|
const n = this, r = {};
|
|
1658
|
-
return
|
|
1659
|
-
const i =
|
|
1658
|
+
return g.forEach(this, (s, o) => {
|
|
1659
|
+
const i = g.findKey(r, o);
|
|
1660
1660
|
if (i) {
|
|
1661
1661
|
n[i] = Ft(s), delete n[o];
|
|
1662
1662
|
return;
|
|
@@ -1670,8 +1670,8 @@ let fe = class {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
toJSON(t) {
|
|
1672
1672
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1673
|
-
return
|
|
1674
|
-
r != null && r !== !1 && (n[s] = t &&
|
|
1673
|
+
return g.forEach(this, (r, s) => {
|
|
1674
|
+
r != null && r !== !1 && (n[s] = t && g.isArray(r) ? r.join(", ") : r);
|
|
1675
1675
|
}), n;
|
|
1676
1676
|
}
|
|
1677
1677
|
[Symbol.iterator]() {
|
|
@@ -1702,7 +1702,7 @@ let fe = class {
|
|
|
1702
1702
|
const a = dt(i);
|
|
1703
1703
|
r[a] || (Ia(s, i), r[a] = !0);
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1705
|
+
return g.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
fe.accessor([
|
|
@@ -1713,7 +1713,7 @@ fe.accessor([
|
|
|
1713
1713
|
"User-Agent",
|
|
1714
1714
|
"Authorization"
|
|
1715
1715
|
]);
|
|
1716
|
-
|
|
1716
|
+
g.reduceDescriptors(fe.prototype, ({ value: e }, t) => {
|
|
1717
1717
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
1718
1718
|
return {
|
|
1719
1719
|
get: () => e,
|
|
@@ -1722,11 +1722,11 @@ E.reduceDescriptors(fe.prototype, ({ value: e }, t) => {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
1724
|
});
|
|
1725
|
-
|
|
1725
|
+
g.freezeMethods(fe);
|
|
1726
1726
|
function Ln(e, t) {
|
|
1727
1727
|
const n = this || Tt, r = t || n, s = fe.from(r.headers);
|
|
1728
1728
|
let o = r.data;
|
|
1729
|
-
return
|
|
1729
|
+
return g.forEach(e, function(a) {
|
|
1730
1730
|
o = a.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
1731
1731
|
}), s.normalize(), o;
|
|
1732
1732
|
}
|
|
@@ -1768,25 +1768,25 @@ function wa(e, t) {
|
|
|
1768
1768
|
const n = new Array(e), r = new Array(e);
|
|
1769
1769
|
let s = 0, o = 0, i;
|
|
1770
1770
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
1771
|
-
const
|
|
1772
|
-
i || (i =
|
|
1773
|
-
let p = o,
|
|
1771
|
+
const u = Date.now(), f = r[o];
|
|
1772
|
+
i || (i = u), n[s] = c, r[s] = u;
|
|
1773
|
+
let p = o, m = 0;
|
|
1774
1774
|
for (; p !== s; )
|
|
1775
|
-
|
|
1776
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e),
|
|
1775
|
+
m += n[p++], p = p % e;
|
|
1776
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
1777
1777
|
return;
|
|
1778
|
-
const L =
|
|
1779
|
-
return L ? Math.round(
|
|
1778
|
+
const L = f && u - f;
|
|
1779
|
+
return L ? Math.round(m * 1e3 / L) : void 0;
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
function Da(e, t) {
|
|
1783
1783
|
let n = 0, r = 1e3 / t, s, o;
|
|
1784
|
-
const i = (
|
|
1785
|
-
n =
|
|
1784
|
+
const i = (u, f = Date.now()) => {
|
|
1785
|
+
n = f, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
1786
1786
|
};
|
|
1787
|
-
return [(...
|
|
1788
|
-
const
|
|
1789
|
-
p >= r ? i(
|
|
1787
|
+
return [(...u) => {
|
|
1788
|
+
const f = Date.now(), p = f - n;
|
|
1789
|
+
p >= r ? i(u, f) : (s = u, o || (o = setTimeout(() => {
|
|
1790
1790
|
o = null, i(s);
|
|
1791
1791
|
}, r - p)));
|
|
1792
1792
|
}, () => s && i(s)];
|
|
@@ -1795,15 +1795,15 @@ const Ht = (e, t, n = 3) => {
|
|
|
1795
1795
|
let r = 0;
|
|
1796
1796
|
const s = wa(50, 250);
|
|
1797
1797
|
return Da((o) => {
|
|
1798
|
-
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r,
|
|
1798
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r, u = s(c), f = i <= a;
|
|
1799
1799
|
r = i;
|
|
1800
1800
|
const p = {
|
|
1801
1801
|
loaded: i,
|
|
1802
1802
|
total: a,
|
|
1803
1803
|
progress: a ? i / a : void 0,
|
|
1804
1804
|
bytes: c,
|
|
1805
|
-
rate:
|
|
1806
|
-
estimated:
|
|
1805
|
+
rate: u || void 0,
|
|
1806
|
+
estimated: u && a && f ? (a - i) / u : void 0,
|
|
1807
1807
|
event: o,
|
|
1808
1808
|
lengthComputable: a != null,
|
|
1809
1809
|
[t ? "download" : "upload"]: !0
|
|
@@ -1820,7 +1820,7 @@ const Ht = (e, t, n = 3) => {
|
|
|
1820
1820
|
}),
|
|
1821
1821
|
t[1]
|
|
1822
1822
|
];
|
|
1823
|
-
}, jr = (e) => (...t) =>
|
|
1823
|
+
}, jr = (e) => (...t) => g.asap(() => e(...t)), ka = ce.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ce.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1824
1824
|
new URL(ce.origin),
|
|
1825
1825
|
ce.navigator && /(msie|trident)/i.test(ce.navigator.userAgent)
|
|
1826
1826
|
) : () => !0, Fa = ce.hasStandardBrowserEnv ? (
|
|
@@ -1829,7 +1829,7 @@ const Ht = (e, t, n = 3) => {
|
|
|
1829
1829
|
write(e, t, n, r, s, o, i) {
|
|
1830
1830
|
if (typeof document > "u") return;
|
|
1831
1831
|
const a = [`${e}=${encodeURIComponent(t)}`];
|
|
1832
|
-
|
|
1832
|
+
g.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), g.isString(r) && a.push(`path=${r}`), g.isString(s) && a.push(`domain=${s}`), o === !0 && a.push("secure"), g.isString(i) && a.push(`SameSite=${i}`), document.cookie = a.join("; ");
|
|
1833
1833
|
},
|
|
1834
1834
|
read(e) {
|
|
1835
1835
|
if (typeof document > "u") return null;
|
|
@@ -1866,30 +1866,30 @@ const Hr = (e) => e instanceof fe ? { ...e } : e;
|
|
|
1866
1866
|
function Xe(e, t) {
|
|
1867
1867
|
t = t || {};
|
|
1868
1868
|
const n = {};
|
|
1869
|
-
function r(
|
|
1870
|
-
return
|
|
1869
|
+
function r(u, f, p, m) {
|
|
1870
|
+
return g.isPlainObject(u) && g.isPlainObject(f) ? g.merge.call({ caseless: m }, u, f) : g.isPlainObject(f) ? g.merge({}, f) : g.isArray(f) ? f.slice() : f;
|
|
1871
1871
|
}
|
|
1872
|
-
function s(
|
|
1873
|
-
if (
|
|
1874
|
-
if (!
|
|
1875
|
-
return r(void 0,
|
|
1876
|
-
} else return r(
|
|
1872
|
+
function s(u, f, p, m) {
|
|
1873
|
+
if (g.isUndefined(f)) {
|
|
1874
|
+
if (!g.isUndefined(u))
|
|
1875
|
+
return r(void 0, u, p, m);
|
|
1876
|
+
} else return r(u, f, p, m);
|
|
1877
1877
|
}
|
|
1878
|
-
function o(
|
|
1879
|
-
if (!
|
|
1880
|
-
return r(void 0,
|
|
1878
|
+
function o(u, f) {
|
|
1879
|
+
if (!g.isUndefined(f))
|
|
1880
|
+
return r(void 0, f);
|
|
1881
1881
|
}
|
|
1882
|
-
function i(
|
|
1883
|
-
if (
|
|
1884
|
-
if (!
|
|
1885
|
-
return r(void 0,
|
|
1886
|
-
} else return r(void 0,
|
|
1882
|
+
function i(u, f) {
|
|
1883
|
+
if (g.isUndefined(f)) {
|
|
1884
|
+
if (!g.isUndefined(u))
|
|
1885
|
+
return r(void 0, u);
|
|
1886
|
+
} else return r(void 0, f);
|
|
1887
1887
|
}
|
|
1888
|
-
function a(
|
|
1888
|
+
function a(u, f, p) {
|
|
1889
1889
|
if (p in t)
|
|
1890
|
-
return r(
|
|
1890
|
+
return r(u, f);
|
|
1891
1891
|
if (p in e)
|
|
1892
|
-
return r(void 0,
|
|
1892
|
+
return r(void 0, u);
|
|
1893
1893
|
}
|
|
1894
1894
|
const c = {
|
|
1895
1895
|
url: o,
|
|
@@ -1920,12 +1920,12 @@ function Xe(e, t) {
|
|
|
1920
1920
|
socketPath: i,
|
|
1921
1921
|
responseEncoding: i,
|
|
1922
1922
|
validateStatus: a,
|
|
1923
|
-
headers: (
|
|
1923
|
+
headers: (u, f, p) => s(Hr(u), Hr(f), p, !0)
|
|
1924
1924
|
};
|
|
1925
|
-
return
|
|
1926
|
-
if (
|
|
1927
|
-
const p =
|
|
1928
|
-
|
|
1925
|
+
return g.forEach(Object.keys({ ...e, ...t }), function(f) {
|
|
1926
|
+
if (f === "__proto__" || f === "constructor" || f === "prototype") return;
|
|
1927
|
+
const p = g.hasOwnProp(c, f) ? c[f] : s, m = p(e[f], t[f], f);
|
|
1928
|
+
g.isUndefined(m) && p !== a || (n[f] = m);
|
|
1929
1929
|
}), n;
|
|
1930
1930
|
}
|
|
1931
1931
|
const no = (e) => {
|
|
@@ -1940,17 +1940,17 @@ const no = (e) => {
|
|
|
1940
1940
|
"Basic " + btoa(
|
|
1941
1941
|
(a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : "")
|
|
1942
1942
|
)
|
|
1943
|
-
),
|
|
1943
|
+
), g.isFormData(n)) {
|
|
1944
1944
|
if (ce.hasStandardBrowserEnv || ce.hasStandardBrowserWebWorkerEnv)
|
|
1945
1945
|
i.setContentType(void 0);
|
|
1946
|
-
else if (
|
|
1947
|
-
const c = n.getHeaders(),
|
|
1948
|
-
Object.entries(c).forEach(([
|
|
1949
|
-
|
|
1946
|
+
else if (g.isFunction(n.getHeaders)) {
|
|
1947
|
+
const c = n.getHeaders(), u = ["content-type", "content-length"];
|
|
1948
|
+
Object.entries(c).forEach(([f, p]) => {
|
|
1949
|
+
u.includes(f.toLowerCase()) && i.set(f, p);
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
|
-
if (ce.hasStandardBrowserEnv && (r &&
|
|
1953
|
+
if (ce.hasStandardBrowserEnv && (r && g.isFunction(r) && (r = r(t)), r || r !== !1 && ka(t.url))) {
|
|
1954
1954
|
const c = s && o && Fa.read(o);
|
|
1955
1955
|
c && i.set(s, c);
|
|
1956
1956
|
}
|
|
@@ -1960,13 +1960,13 @@ const no = (e) => {
|
|
|
1960
1960
|
const s = no(e);
|
|
1961
1961
|
let o = s.data;
|
|
1962
1962
|
const i = fe.from(s.headers).normalize();
|
|
1963
|
-
let { responseType: a, onUploadProgress: c, onDownloadProgress:
|
|
1963
|
+
let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = s, f, p, m, L, E;
|
|
1964
1964
|
function b() {
|
|
1965
|
-
L && L(),
|
|
1965
|
+
L && L(), E && E(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
|
|
1966
1966
|
}
|
|
1967
1967
|
let N = new XMLHttpRequest();
|
|
1968
1968
|
N.open(s.method.toUpperCase(), s.url, !0), N.timeout = s.timeout;
|
|
1969
|
-
function
|
|
1969
|
+
function _() {
|
|
1970
1970
|
if (!N)
|
|
1971
1971
|
return;
|
|
1972
1972
|
const T = fe.from(
|
|
@@ -1989,8 +1989,8 @@ const no = (e) => {
|
|
|
1989
1989
|
v
|
|
1990
1990
|
), N = null;
|
|
1991
1991
|
}
|
|
1992
|
-
"onloadend" in N ? N.onloadend =
|
|
1993
|
-
!N || N.readyState !== 4 || N.status === 0 && !(N.responseURL && N.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1992
|
+
"onloadend" in N ? N.onloadend = _ : N.onreadystatechange = function() {
|
|
1993
|
+
!N || N.readyState !== 4 || N.status === 0 && !(N.responseURL && N.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
1994
1994
|
}, N.onabort = function() {
|
|
1995
1995
|
N && (r(new U("Request aborted", U.ECONNABORTED, e, N)), N = null);
|
|
1996
1996
|
}, N.onerror = function(y) {
|
|
@@ -2007,11 +2007,11 @@ const no = (e) => {
|
|
|
2007
2007
|
N
|
|
2008
2008
|
)
|
|
2009
2009
|
), N = null;
|
|
2010
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in N &&
|
|
2010
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in N && g.forEach(i.toJSON(), function(y, v) {
|
|
2011
2011
|
N.setRequestHeader(v, y);
|
|
2012
|
-
}),
|
|
2012
|
+
}), g.isUndefined(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType), u && ([m, E] = Ht(u, !0), N.addEventListener("progress", m)), c && N.upload && ([p, L] = Ht(c), N.upload.addEventListener("progress", p), N.upload.addEventListener("loadend", L)), (s.cancelToken || s.signal) && (f = (T) => {
|
|
2013
2013
|
N && (r(!T || T.type ? new At(null, e, N) : T), N.abort(), N = null);
|
|
2014
|
-
}, s.cancelToken && s.cancelToken.subscribe(
|
|
2014
|
+
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
2015
2015
|
const O = Pa(s.url);
|
|
2016
2016
|
if (O && ce.protocols.indexOf(O) === -1) {
|
|
2017
2017
|
r(
|
|
@@ -2029,12 +2029,12 @@ const no = (e) => {
|
|
|
2029
2029
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2030
2030
|
if (t || n) {
|
|
2031
2031
|
let r = new AbortController(), s;
|
|
2032
|
-
const o = function(
|
|
2032
|
+
const o = function(u) {
|
|
2033
2033
|
if (!s) {
|
|
2034
2034
|
s = !0, a();
|
|
2035
|
-
const
|
|
2035
|
+
const f = u instanceof Error ? u : this.reason;
|
|
2036
2036
|
r.abort(
|
|
2037
|
-
|
|
2037
|
+
f instanceof U ? f : new At(f instanceof Error ? f.message : f)
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
@@ -2042,13 +2042,13 @@ const no = (e) => {
|
|
|
2042
2042
|
i = null, o(new U(`timeout of ${t}ms exceeded`, U.ETIMEDOUT));
|
|
2043
2043
|
}, t);
|
|
2044
2044
|
const a = () => {
|
|
2045
|
-
e && (i && clearTimeout(i), i = null, e.forEach((
|
|
2046
|
-
|
|
2045
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
2046
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
2047
2047
|
}), e = null);
|
|
2048
2048
|
};
|
|
2049
|
-
e.forEach((
|
|
2049
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
2050
2050
|
const { signal: c } = r;
|
|
2051
|
-
return c.unsubscribe = () =>
|
|
2051
|
+
return c.unsubscribe = () => g.asap(a), c;
|
|
2052
2052
|
}
|
|
2053
2053
|
}, Ba = function* (e, t) {
|
|
2054
2054
|
let n = e.byteLength;
|
|
@@ -2087,19 +2087,19 @@ const no = (e) => {
|
|
|
2087
2087
|
{
|
|
2088
2088
|
async pull(c) {
|
|
2089
2089
|
try {
|
|
2090
|
-
const { done:
|
|
2091
|
-
if (
|
|
2090
|
+
const { done: u, value: f } = await s.next();
|
|
2091
|
+
if (u) {
|
|
2092
2092
|
a(), c.close();
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
|
-
let p =
|
|
2095
|
+
let p = f.byteLength;
|
|
2096
2096
|
if (n) {
|
|
2097
|
-
let
|
|
2098
|
-
n(
|
|
2097
|
+
let m = o += p;
|
|
2098
|
+
n(m);
|
|
2099
2099
|
}
|
|
2100
|
-
c.enqueue(new Uint8Array(
|
|
2101
|
-
} catch (
|
|
2102
|
-
throw a(
|
|
2100
|
+
c.enqueue(new Uint8Array(f));
|
|
2101
|
+
} catch (u) {
|
|
2102
|
+
throw a(u), u;
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
cancel(c) {
|
|
@@ -2110,17 +2110,17 @@ const no = (e) => {
|
|
|
2110
2110
|
highWaterMark: 2
|
|
2111
2111
|
}
|
|
2112
2112
|
);
|
|
2113
|
-
}, Wr = 64 * 1024, { isFunction: Ct } =
|
|
2113
|
+
}, Wr = 64 * 1024, { isFunction: Ct } = g, qa = (({ Request: e, Response: t }) => ({
|
|
2114
2114
|
Request: e,
|
|
2115
2115
|
Response: t
|
|
2116
|
-
}))(
|
|
2116
|
+
}))(g.global), { ReadableStream: Gr, TextEncoder: Yr } = g.global, Kr = (e, ...t) => {
|
|
2117
2117
|
try {
|
|
2118
2118
|
return !!e(...t);
|
|
2119
2119
|
} catch {
|
|
2120
2120
|
return !1;
|
|
2121
2121
|
}
|
|
2122
2122
|
}, Wa = (e) => {
|
|
2123
|
-
e =
|
|
2123
|
+
e = g.merge.call(
|
|
2124
2124
|
{
|
|
2125
2125
|
skipUndefined: !0
|
|
2126
2126
|
},
|
|
@@ -2130,54 +2130,54 @@ const no = (e) => {
|
|
|
2130
2130
|
const { fetch: t, Request: n, Response: r } = e, s = t ? Ct(t) : typeof fetch == "function", o = Ct(n), i = Ct(r);
|
|
2131
2131
|
if (!s)
|
|
2132
2132
|
return !1;
|
|
2133
|
-
const a = s && Ct(Gr), c = s && (typeof Yr == "function" ? /* @__PURE__ */ ((
|
|
2134
|
-
let
|
|
2133
|
+
const a = s && Ct(Gr), c = s && (typeof Yr == "function" ? /* @__PURE__ */ ((E) => (b) => E.encode(b))(new Yr()) : async (E) => new Uint8Array(await new n(E).arrayBuffer())), u = o && a && Kr(() => {
|
|
2134
|
+
let E = !1;
|
|
2135
2135
|
const b = new n(ce.origin, {
|
|
2136
2136
|
body: new Gr(),
|
|
2137
2137
|
method: "POST",
|
|
2138
2138
|
get duplex() {
|
|
2139
|
-
return
|
|
2139
|
+
return E = !0, "half";
|
|
2140
2140
|
}
|
|
2141
2141
|
}).headers.has("Content-Type");
|
|
2142
|
-
return
|
|
2143
|
-
}),
|
|
2144
|
-
stream:
|
|
2142
|
+
return E && !b;
|
|
2143
|
+
}), f = i && a && Kr(() => g.isReadableStream(new r("").body)), p = {
|
|
2144
|
+
stream: f && ((E) => E.body)
|
|
2145
2145
|
};
|
|
2146
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
2147
|
-
!p[
|
|
2148
|
-
let
|
|
2149
|
-
if (
|
|
2150
|
-
return
|
|
2146
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((E) => {
|
|
2147
|
+
!p[E] && (p[E] = (b, N) => {
|
|
2148
|
+
let _ = b && b[E];
|
|
2149
|
+
if (_)
|
|
2150
|
+
return _.call(b);
|
|
2151
2151
|
throw new U(
|
|
2152
|
-
`Response type '${
|
|
2152
|
+
`Response type '${E}' is not supported`,
|
|
2153
2153
|
U.ERR_NOT_SUPPORT,
|
|
2154
2154
|
N
|
|
2155
2155
|
);
|
|
2156
2156
|
});
|
|
2157
2157
|
});
|
|
2158
|
-
const
|
|
2159
|
-
if (
|
|
2158
|
+
const m = async (E) => {
|
|
2159
|
+
if (E == null)
|
|
2160
2160
|
return 0;
|
|
2161
|
-
if (
|
|
2162
|
-
return
|
|
2163
|
-
if (
|
|
2161
|
+
if (g.isBlob(E))
|
|
2162
|
+
return E.size;
|
|
2163
|
+
if (g.isSpecCompliantForm(E))
|
|
2164
2164
|
return (await new n(ce.origin, {
|
|
2165
2165
|
method: "POST",
|
|
2166
|
-
body:
|
|
2166
|
+
body: E
|
|
2167
2167
|
}).arrayBuffer()).byteLength;
|
|
2168
|
-
if (
|
|
2169
|
-
return
|
|
2170
|
-
if (
|
|
2171
|
-
return (await c(
|
|
2172
|
-
}, L = async (
|
|
2173
|
-
const N =
|
|
2174
|
-
return N ??
|
|
2168
|
+
if (g.isArrayBufferView(E) || g.isArrayBuffer(E))
|
|
2169
|
+
return E.byteLength;
|
|
2170
|
+
if (g.isURLSearchParams(E) && (E = E + ""), g.isString(E))
|
|
2171
|
+
return (await c(E)).byteLength;
|
|
2172
|
+
}, L = async (E, b) => {
|
|
2173
|
+
const N = g.toFiniteNumber(E.getContentLength());
|
|
2174
|
+
return N ?? m(b);
|
|
2175
2175
|
};
|
|
2176
|
-
return async (
|
|
2176
|
+
return async (E) => {
|
|
2177
2177
|
let {
|
|
2178
2178
|
url: b,
|
|
2179
2179
|
method: N,
|
|
2180
|
-
data:
|
|
2180
|
+
data: _,
|
|
2181
2181
|
signal: O,
|
|
2182
2182
|
cancelToken: T,
|
|
2183
2183
|
timeout: y,
|
|
@@ -2187,7 +2187,7 @@ const no = (e) => {
|
|
|
2187
2187
|
headers: x,
|
|
2188
2188
|
withCredentials: M = "same-origin",
|
|
2189
2189
|
fetchOptions: I
|
|
2190
|
-
} = no(
|
|
2190
|
+
} = no(E), P = t || fetch;
|
|
2191
2191
|
h = h ? (h + "").toLowerCase() : "text";
|
|
2192
2192
|
let k = $a(
|
|
2193
2193
|
[O, T && T.toAbortSignal()],
|
|
@@ -2198,39 +2198,39 @@ const no = (e) => {
|
|
|
2198
2198
|
});
|
|
2199
2199
|
let Ne;
|
|
2200
2200
|
try {
|
|
2201
|
-
if (C &&
|
|
2201
|
+
if (C && u && N !== "get" && N !== "head" && (Ne = await L(x, _)) !== 0) {
|
|
2202
2202
|
let le = new n(b, {
|
|
2203
2203
|
method: "POST",
|
|
2204
|
-
body:
|
|
2204
|
+
body: _,
|
|
2205
2205
|
duplex: "half"
|
|
2206
2206
|
}), Oe;
|
|
2207
|
-
if (
|
|
2207
|
+
if (g.isFormData(_) && (Oe = le.headers.get("content-type")) && x.setContentType(Oe), le.body) {
|
|
2208
2208
|
const [Ve, Fe] = Br(
|
|
2209
2209
|
Ne,
|
|
2210
2210
|
Ht(jr(C))
|
|
2211
2211
|
);
|
|
2212
|
-
|
|
2212
|
+
_ = qr(le.body, Wr, Ve, Fe);
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
|
|
2215
|
+
g.isString(M) || (M = M ? "include" : "omit");
|
|
2216
2216
|
const z = o && "credentials" in n.prototype, ke = {
|
|
2217
2217
|
...I,
|
|
2218
2218
|
signal: k,
|
|
2219
2219
|
method: N.toUpperCase(),
|
|
2220
2220
|
headers: x.normalize().toJSON(),
|
|
2221
|
-
body:
|
|
2221
|
+
body: _,
|
|
2222
2222
|
duplex: "half",
|
|
2223
2223
|
credentials: z ? M : void 0
|
|
2224
2224
|
};
|
|
2225
2225
|
q = o && new n(b, ke);
|
|
2226
2226
|
let ee = await (o ? P(q, I) : P(b, ke));
|
|
2227
|
-
const Z =
|
|
2228
|
-
if (
|
|
2227
|
+
const Z = f && (h === "stream" || h === "response");
|
|
2228
|
+
if (f && (v || Z && se)) {
|
|
2229
2229
|
const le = {};
|
|
2230
2230
|
["status", "statusText", "headers"].forEach((Qe) => {
|
|
2231
2231
|
le[Qe] = ee[Qe];
|
|
2232
2232
|
});
|
|
2233
|
-
const Oe =
|
|
2233
|
+
const Oe = g.toFiniteNumber(ee.headers.get("content-length")), [Ve, Fe] = v && Br(
|
|
2234
2234
|
Oe,
|
|
2235
2235
|
Ht(jr(v), !0)
|
|
2236
2236
|
) || [];
|
|
@@ -2242,9 +2242,9 @@ const no = (e) => {
|
|
|
2242
2242
|
);
|
|
2243
2243
|
}
|
|
2244
2244
|
h = h || "text";
|
|
2245
|
-
let ge = await p[
|
|
2245
|
+
let ge = await p[g.findKey(p, h) || "text"](
|
|
2246
2246
|
ee,
|
|
2247
|
-
|
|
2247
|
+
E
|
|
2248
2248
|
);
|
|
2249
2249
|
return !Z && se && se(), await new Promise((le, Oe) => {
|
|
2250
2250
|
eo(le, Oe, {
|
|
@@ -2252,7 +2252,7 @@ const no = (e) => {
|
|
|
2252
2252
|
headers: fe.from(ee.headers),
|
|
2253
2253
|
status: ee.status,
|
|
2254
2254
|
statusText: ee.statusText,
|
|
2255
|
-
config:
|
|
2255
|
+
config: E,
|
|
2256
2256
|
request: q
|
|
2257
2257
|
});
|
|
2258
2258
|
});
|
|
@@ -2261,23 +2261,23 @@ const no = (e) => {
|
|
|
2261
2261
|
new U(
|
|
2262
2262
|
"Network Error",
|
|
2263
2263
|
U.ERR_NETWORK,
|
|
2264
|
-
|
|
2264
|
+
E,
|
|
2265
2265
|
q,
|
|
2266
2266
|
z && z.response
|
|
2267
2267
|
),
|
|
2268
2268
|
{
|
|
2269
2269
|
cause: z.cause || z
|
|
2270
2270
|
}
|
|
2271
|
-
) : U.from(z, z && z.code,
|
|
2271
|
+
) : U.from(z, z && z.code, E, q, z && z.response);
|
|
2272
2272
|
}
|
|
2273
2273
|
};
|
|
2274
2274
|
}, Ga = /* @__PURE__ */ new Map(), ro = (e) => {
|
|
2275
2275
|
let t = e && e.env || {};
|
|
2276
2276
|
const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
|
|
2277
|
-
let i = o.length, a = i, c,
|
|
2277
|
+
let i = o.length, a = i, c, u, f = Ga;
|
|
2278
2278
|
for (; a--; )
|
|
2279
|
-
c = o[a],
|
|
2280
|
-
return
|
|
2279
|
+
c = o[a], u = f.get(c), u === void 0 && f.set(c, u = a ? /* @__PURE__ */ new Map() : Wa(t)), f = u;
|
|
2280
|
+
return u;
|
|
2281
2281
|
};
|
|
2282
2282
|
ro();
|
|
2283
2283
|
const fr = {
|
|
@@ -2287,7 +2287,7 @@ const fr = {
|
|
|
2287
2287
|
get: ro
|
|
2288
2288
|
}
|
|
2289
2289
|
};
|
|
2290
|
-
|
|
2290
|
+
g.forEach(fr, (e, t) => {
|
|
2291
2291
|
if (e) {
|
|
2292
2292
|
try {
|
|
2293
2293
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -2296,9 +2296,9 @@ E.forEach(fr, (e, t) => {
|
|
|
2296
2296
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2297
2297
|
}
|
|
2298
2298
|
});
|
|
2299
|
-
const Xr = (e) => `- ${e}`, Ya = (e) =>
|
|
2299
|
+
const Xr = (e) => `- ${e}`, Ya = (e) => g.isFunction(e) || e === null || e === !1;
|
|
2300
2300
|
function Ka(e, t) {
|
|
2301
|
-
e =
|
|
2301
|
+
e = g.isArray(e) ? e : [e];
|
|
2302
2302
|
const { length: n } = e;
|
|
2303
2303
|
let r, s;
|
|
2304
2304
|
const o = {};
|
|
@@ -2307,13 +2307,13 @@ function Ka(e, t) {
|
|
|
2307
2307
|
let a;
|
|
2308
2308
|
if (s = r, !Ya(r) && (s = fr[(a = String(r)).toLowerCase()], s === void 0))
|
|
2309
2309
|
throw new U(`Unknown adapter '${a}'`);
|
|
2310
|
-
if (s && (
|
|
2310
|
+
if (s && (g.isFunction(s) || (s = s.get(t))))
|
|
2311
2311
|
break;
|
|
2312
2312
|
o[a || "#" + i] = s;
|
|
2313
2313
|
}
|
|
2314
2314
|
if (!s) {
|
|
2315
2315
|
const i = Object.entries(o).map(
|
|
2316
|
-
([c,
|
|
2316
|
+
([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2317
2317
|
);
|
|
2318
2318
|
let a = n ? i.length > 1 ? `since :
|
|
2319
2319
|
` + i.map(Xr).join(`
|
|
@@ -2451,7 +2451,7 @@ let Ye = class {
|
|
|
2451
2451
|
legacyInterceptorReqResOrdering: me.transitional(me.boolean)
|
|
2452
2452
|
},
|
|
2453
2453
|
!1
|
|
2454
|
-
), s != null && (
|
|
2454
|
+
), s != null && (g.isFunction(s) ? n.paramsSerializer = {
|
|
2455
2455
|
serialize: s
|
|
2456
2456
|
} : Ut.assertOptions(
|
|
2457
2457
|
s,
|
|
@@ -2468,9 +2468,9 @@ let Ye = class {
|
|
|
2468
2468
|
},
|
|
2469
2469
|
!0
|
|
2470
2470
|
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2471
|
-
let i = o &&
|
|
2472
|
-
o &&
|
|
2473
|
-
delete o[
|
|
2471
|
+
let i = o && g.merge(o.common, o[n.method]);
|
|
2472
|
+
o && g.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (E) => {
|
|
2473
|
+
delete o[E];
|
|
2474
2474
|
}), n.headers = fe.concat(i, o);
|
|
2475
2475
|
const a = [];
|
|
2476
2476
|
let c = !0;
|
|
@@ -2481,36 +2481,36 @@ let Ye = class {
|
|
|
2481
2481
|
const N = n.transitional || lr;
|
|
2482
2482
|
N && N.legacyInterceptorReqResOrdering ? a.unshift(b.fulfilled, b.rejected) : a.push(b.fulfilled, b.rejected);
|
|
2483
2483
|
});
|
|
2484
|
-
const
|
|
2484
|
+
const u = [];
|
|
2485
2485
|
this.interceptors.response.forEach(function(b) {
|
|
2486
|
-
|
|
2486
|
+
u.push(b.fulfilled, b.rejected);
|
|
2487
2487
|
});
|
|
2488
|
-
let
|
|
2488
|
+
let f, p = 0, m;
|
|
2489
2489
|
if (!c) {
|
|
2490
|
-
const
|
|
2491
|
-
for (
|
|
2492
|
-
|
|
2493
|
-
return
|
|
2490
|
+
const E = [Jr.bind(this), void 0];
|
|
2491
|
+
for (E.unshift(...a), E.push(...u), m = E.length, f = Promise.resolve(n); p < m; )
|
|
2492
|
+
f = f.then(E[p++], E[p++]);
|
|
2493
|
+
return f;
|
|
2494
2494
|
}
|
|
2495
|
-
|
|
2495
|
+
m = a.length;
|
|
2496
2496
|
let L = n;
|
|
2497
|
-
for (; p <
|
|
2498
|
-
const
|
|
2497
|
+
for (; p < m; ) {
|
|
2498
|
+
const E = a[p++], b = a[p++];
|
|
2499
2499
|
try {
|
|
2500
|
-
L =
|
|
2500
|
+
L = E(L);
|
|
2501
2501
|
} catch (N) {
|
|
2502
2502
|
b.call(this, N);
|
|
2503
2503
|
break;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
2506
|
try {
|
|
2507
|
-
|
|
2508
|
-
} catch (
|
|
2509
|
-
return Promise.reject(
|
|
2507
|
+
f = Jr.call(this, L);
|
|
2508
|
+
} catch (E) {
|
|
2509
|
+
return Promise.reject(E);
|
|
2510
2510
|
}
|
|
2511
|
-
for (p = 0,
|
|
2512
|
-
|
|
2513
|
-
return
|
|
2511
|
+
for (p = 0, m = u.length; p < m; )
|
|
2512
|
+
f = f.then(u[p++], u[p++]);
|
|
2513
|
+
return f;
|
|
2514
2514
|
}
|
|
2515
2515
|
getUri(t) {
|
|
2516
2516
|
t = Xe(this.defaults, t);
|
|
@@ -2518,7 +2518,7 @@ let Ye = class {
|
|
|
2518
2518
|
return Qs(n, t.params, t.paramsSerializer);
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
|
-
|
|
2521
|
+
g.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2522
2522
|
Ye.prototype[t] = function(n, r) {
|
|
2523
2523
|
return this.request(
|
|
2524
2524
|
Xe(r || {}, {
|
|
@@ -2529,7 +2529,7 @@ E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
2529
2529
|
);
|
|
2530
2530
|
};
|
|
2531
2531
|
});
|
|
2532
|
-
|
|
2532
|
+
g.forEach(["post", "put", "patch"], function(t) {
|
|
2533
2533
|
function n(r) {
|
|
2534
2534
|
return function(o, i, a) {
|
|
2535
2535
|
return this.request(
|
|
@@ -2625,7 +2625,7 @@ function Qa(e) {
|
|
|
2625
2625
|
};
|
|
2626
2626
|
}
|
|
2627
2627
|
function za(e) {
|
|
2628
|
-
return
|
|
2628
|
+
return g.isObject(e) && e.isAxiosError === !0;
|
|
2629
2629
|
}
|
|
2630
2630
|
const Gn = {
|
|
2631
2631
|
Continue: 100,
|
|
@@ -2703,7 +2703,7 @@ Object.entries(Gn).forEach(([e, t]) => {
|
|
|
2703
2703
|
});
|
|
2704
2704
|
function ao(e) {
|
|
2705
2705
|
const t = new Ye(e), n = $s(Ye.prototype.request, t);
|
|
2706
|
-
return
|
|
2706
|
+
return g.extend(n, Ye.prototype, t, { allOwnKeys: !0 }), g.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2707
2707
|
return ao(Xe(e, s));
|
|
2708
2708
|
}, n;
|
|
2709
2709
|
}
|
|
@@ -2723,30 +2723,30 @@ Q.spread = Qa;
|
|
|
2723
2723
|
Q.isAxiosError = za;
|
|
2724
2724
|
Q.mergeConfig = Xe;
|
|
2725
2725
|
Q.AxiosHeaders = fe;
|
|
2726
|
-
Q.formToJSON = (e) => zs(
|
|
2726
|
+
Q.formToJSON = (e) => zs(g.isHTMLForm(e) ? new FormData(e) : e);
|
|
2727
2727
|
Q.getAdapter = so.getAdapter;
|
|
2728
2728
|
Q.HttpStatusCode = Gn;
|
|
2729
2729
|
Q.default = Q;
|
|
2730
2730
|
const {
|
|
2731
|
-
Axios:
|
|
2732
|
-
AxiosError:
|
|
2733
|
-
CanceledError:
|
|
2734
|
-
isCancel:
|
|
2735
|
-
CancelToken:
|
|
2736
|
-
VERSION:
|
|
2737
|
-
all:
|
|
2738
|
-
Cancel:
|
|
2739
|
-
isAxiosError:
|
|
2740
|
-
spread:
|
|
2741
|
-
toFormData:
|
|
2742
|
-
AxiosHeaders:
|
|
2731
|
+
Axios: rf,
|
|
2732
|
+
AxiosError: sf,
|
|
2733
|
+
CanceledError: of,
|
|
2734
|
+
isCancel: af,
|
|
2735
|
+
CancelToken: cf,
|
|
2736
|
+
VERSION: lf,
|
|
2737
|
+
all: uf,
|
|
2738
|
+
Cancel: ff,
|
|
2739
|
+
isAxiosError: df,
|
|
2740
|
+
spread: pf,
|
|
2741
|
+
toFormData: mf,
|
|
2742
|
+
AxiosHeaders: _f,
|
|
2743
2743
|
HttpStatusCode: zr,
|
|
2744
|
-
formToJSON:
|
|
2745
|
-
getAdapter:
|
|
2746
|
-
mergeConfig:
|
|
2744
|
+
formToJSON: hf,
|
|
2745
|
+
getAdapter: Ef,
|
|
2746
|
+
mergeConfig: gf
|
|
2747
2747
|
} = Q;
|
|
2748
2748
|
let qt = null;
|
|
2749
|
-
function
|
|
2749
|
+
function bf(e) {
|
|
2750
2750
|
if (qt !== null) {
|
|
2751
2751
|
console.warn(
|
|
2752
2752
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
@@ -2763,7 +2763,7 @@ function we() {
|
|
|
2763
2763
|
return qt;
|
|
2764
2764
|
}
|
|
2765
2765
|
const co = /* @__PURE__ */ new Map();
|
|
2766
|
-
function
|
|
2766
|
+
function yf(e) {
|
|
2767
2767
|
co.set(e.instanceId, e);
|
|
2768
2768
|
}
|
|
2769
2769
|
function at(e) {
|
|
@@ -2774,25 +2774,25 @@ function at(e) {
|
|
|
2774
2774
|
);
|
|
2775
2775
|
return t;
|
|
2776
2776
|
}
|
|
2777
|
-
async function
|
|
2777
|
+
async function Nf(e, t) {
|
|
2778
2778
|
const n = at(e);
|
|
2779
2779
|
return we().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
2780
2780
|
}
|
|
2781
|
-
async function
|
|
2781
|
+
async function Of(e, t, n) {
|
|
2782
2782
|
const r = at(e);
|
|
2783
2783
|
return we().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
2784
2784
|
}
|
|
2785
|
-
async function
|
|
2785
|
+
async function Sf(e, t, n) {
|
|
2786
2786
|
const r = at(e);
|
|
2787
2787
|
return we().get(`/${r.apiEndpoint}`, {
|
|
2788
2788
|
params: { ...t, ...n }
|
|
2789
2789
|
}).then(({ data: s }) => s);
|
|
2790
2790
|
}
|
|
2791
|
-
async function
|
|
2791
|
+
async function Tf(e, t) {
|
|
2792
2792
|
const n = at(e);
|
|
2793
2793
|
return we().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
2794
2794
|
}
|
|
2795
|
-
async function
|
|
2795
|
+
async function Af(e, t) {
|
|
2796
2796
|
const n = at(e);
|
|
2797
2797
|
return we().delete(`/${n.apiEndpoint}/${t}`);
|
|
2798
2798
|
}
|
|
@@ -2812,7 +2812,7 @@ function ec(e, t) {
|
|
|
2812
2812
|
n[r] = ec(e[r], t[r]);
|
|
2813
2813
|
return n;
|
|
2814
2814
|
}
|
|
2815
|
-
function
|
|
2815
|
+
function Lf(e) {
|
|
2816
2816
|
const t = {};
|
|
2817
2817
|
for (const [n, r] of Object.entries(e)) {
|
|
2818
2818
|
const s = n.split(".");
|
|
@@ -2928,16 +2928,16 @@ function fc(e, t = 0, n = e.length) {
|
|
|
2928
2928
|
continue;
|
|
2929
2929
|
const c = a + 1;
|
|
2930
2930
|
o.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[a]}`);
|
|
2931
|
-
const
|
|
2931
|
+
const u = r[a].length;
|
|
2932
2932
|
if (a === i) {
|
|
2933
|
-
const
|
|
2934
|
-
o.push(" | " + " ".repeat(
|
|
2933
|
+
const f = t - (s - u) + 1, p = Math.max(1, n > s ? u - f : n - t);
|
|
2934
|
+
o.push(" | " + " ".repeat(f) + "^".repeat(p));
|
|
2935
2935
|
} else if (a > i) {
|
|
2936
2936
|
if (n > s) {
|
|
2937
|
-
const
|
|
2938
|
-
o.push(" | " + "^".repeat(
|
|
2937
|
+
const f = Math.max(Math.min(n - s, u), 1);
|
|
2938
|
+
o.push(" | " + "^".repeat(f));
|
|
2939
2939
|
}
|
|
2940
|
-
s +=
|
|
2940
|
+
s += u + 1;
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
break;
|
|
@@ -3035,9 +3035,9 @@ const Ec = /<\/?[\w\s="/.':;#-\/]+>/, gc = (e) => Ec.test(e), Se = " ", bc = "\r
|
|
|
3035
3035
|
function Oc(e) {
|
|
3036
3036
|
const t = e;
|
|
3037
3037
|
let n = 0, r = 1, s = 1, o = 0;
|
|
3038
|
-
const i = (h) => t[h] === bc && t[h + 1] === ie, a = (h) => t[h] === ie, c = (h) => t[h] === Nc,
|
|
3038
|
+
const i = (h) => t[h] === bc && t[h + 1] === ie, a = (h) => t[h] === ie, c = (h) => t[h] === Nc, u = (h) => t[h] === yc, f = (h) => i(h) || a(h) || c(h) || u(h), p = () => n, m = () => r, L = () => s, E = () => o, b = (h) => i(h) || c(h) || u(h) ? ie : t[h], N = () => b(n), _ = () => b(n + o);
|
|
3039
3039
|
function O() {
|
|
3040
|
-
return o = 0,
|
|
3040
|
+
return o = 0, f(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
3041
3041
|
}
|
|
3042
3042
|
function T() {
|
|
3043
3043
|
return i(n + o) && o++, o++, t[n + o];
|
|
@@ -3056,12 +3056,12 @@ function Oc(e) {
|
|
|
3056
3056
|
}
|
|
3057
3057
|
return {
|
|
3058
3058
|
index: p,
|
|
3059
|
-
line:
|
|
3059
|
+
line: m,
|
|
3060
3060
|
column: L,
|
|
3061
|
-
peekOffset:
|
|
3061
|
+
peekOffset: E,
|
|
3062
3062
|
charAt: b,
|
|
3063
3063
|
currentChar: N,
|
|
3064
|
-
currentPeek:
|
|
3064
|
+
currentPeek: _,
|
|
3065
3065
|
next: O,
|
|
3066
3066
|
peek: T,
|
|
3067
3067
|
reset: y,
|
|
@@ -3083,28 +3083,28 @@ function Ac(e, t = {}) {
|
|
|
3083
3083
|
braceNest: 0,
|
|
3084
3084
|
inLinked: !1,
|
|
3085
3085
|
text: ""
|
|
3086
|
-
},
|
|
3086
|
+
}, u = () => c, { onError: f } = t;
|
|
3087
3087
|
function p(l, d, A, ...w) {
|
|
3088
|
-
const W =
|
|
3089
|
-
if (d.column += A, d.offset += A,
|
|
3088
|
+
const W = u();
|
|
3089
|
+
if (d.column += A, d.offset += A, f) {
|
|
3090
3090
|
const K = n ? Kn(W.startLoc, d) : null, V = ct(l, K, {
|
|
3091
3091
|
domain: Tc,
|
|
3092
3092
|
args: w
|
|
3093
3093
|
});
|
|
3094
|
-
|
|
3094
|
+
f(V);
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3097
|
+
function m(l, d, A) {
|
|
3098
3098
|
l.endLoc = o(), l.currentType = d;
|
|
3099
3099
|
const w = { type: d };
|
|
3100
3100
|
return n && (w.loc = Kn(l.startLoc, l.endLoc)), A != null && (w.value = A), w;
|
|
3101
3101
|
}
|
|
3102
|
-
const L = (l) =>
|
|
3102
|
+
const L = (l) => m(
|
|
3103
3103
|
l,
|
|
3104
3104
|
13
|
|
3105
3105
|
/* TokenTypes.EOF */
|
|
3106
3106
|
);
|
|
3107
|
-
function
|
|
3107
|
+
function E(l, d) {
|
|
3108
3108
|
return l.currentChar() === d ? (l.next(), d) : (p(F.EXPECTED_TOKEN, o(), 0, d), "");
|
|
3109
3109
|
}
|
|
3110
3110
|
function b(l) {
|
|
@@ -3117,7 +3117,7 @@ function Ac(e, t = {}) {
|
|
|
3117
3117
|
const d = b(l);
|
|
3118
3118
|
return l.skipToPeek(), d;
|
|
3119
3119
|
}
|
|
3120
|
-
function
|
|
3120
|
+
function _(l) {
|
|
3121
3121
|
if (l === Re)
|
|
3122
3122
|
return !1;
|
|
3123
3123
|
const d = l.charCodeAt(0);
|
|
@@ -3136,7 +3136,7 @@ function Ac(e, t = {}) {
|
|
|
3136
3136
|
if (A !== 2)
|
|
3137
3137
|
return !1;
|
|
3138
3138
|
b(l);
|
|
3139
|
-
const w =
|
|
3139
|
+
const w = _(l.currentPeek());
|
|
3140
3140
|
return l.resetPeek(), w;
|
|
3141
3141
|
}
|
|
3142
3142
|
function y(l, d) {
|
|
@@ -3168,7 +3168,7 @@ function Ac(e, t = {}) {
|
|
|
3168
3168
|
if (A !== 8)
|
|
3169
3169
|
return !1;
|
|
3170
3170
|
b(l);
|
|
3171
|
-
const w =
|
|
3171
|
+
const w = _(l.currentPeek());
|
|
3172
3172
|
return l.resetPeek(), w;
|
|
3173
3173
|
}
|
|
3174
3174
|
function x(l, d) {
|
|
@@ -3185,7 +3185,7 @@ function Ac(e, t = {}) {
|
|
|
3185
3185
|
return !1;
|
|
3186
3186
|
const w = () => {
|
|
3187
3187
|
const K = l.currentPeek();
|
|
3188
|
-
return K === "{" ?
|
|
3188
|
+
return K === "{" ? _(l.peek()) : K === "@" || K === "|" || K === ":" || K === "." || K === Se || !K ? !1 : K === ie ? (l.peek(), w()) : P(l, !1);
|
|
3189
3189
|
}, W = w();
|
|
3190
3190
|
return l.resetPeek(), W;
|
|
3191
3191
|
}
|
|
@@ -3295,12 +3295,12 @@ function Ac(e, t = {}) {
|
|
|
3295
3295
|
return l !== ss && l !== ie;
|
|
3296
3296
|
}
|
|
3297
3297
|
function yr(l) {
|
|
3298
|
-
N(l),
|
|
3298
|
+
N(l), E(l, "'");
|
|
3299
3299
|
let d = "", A = "";
|
|
3300
3300
|
for (; d = k(l, Qe); )
|
|
3301
3301
|
d === "\\" ? A += mn(l) : A += d;
|
|
3302
3302
|
const w = l.currentChar();
|
|
3303
|
-
return w === ie || w === Re ? (p(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), w === ie && (l.next(),
|
|
3303
|
+
return w === ie || w === Re ? (p(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), w === ie && (l.next(), E(l, "'")), A) : (E(l, "'"), A);
|
|
3304
3304
|
}
|
|
3305
3305
|
function mn(l) {
|
|
3306
3306
|
const d = l.currentChar();
|
|
@@ -3317,7 +3317,7 @@ function Ac(e, t = {}) {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
}
|
|
3319
3319
|
function Lt(l, d, A) {
|
|
3320
|
-
|
|
3320
|
+
E(l, d);
|
|
3321
3321
|
let w = "";
|
|
3322
3322
|
for (let W = 0; W < A; W++) {
|
|
3323
3323
|
const K = ge(l);
|
|
@@ -3354,7 +3354,7 @@ function Ac(e, t = {}) {
|
|
|
3354
3354
|
}
|
|
3355
3355
|
function lt(l) {
|
|
3356
3356
|
N(l);
|
|
3357
|
-
const d =
|
|
3357
|
+
const d = E(
|
|
3358
3358
|
l,
|
|
3359
3359
|
"|"
|
|
3360
3360
|
/* TokenChars.Pipe */
|
|
@@ -3365,14 +3365,14 @@ function Ac(e, t = {}) {
|
|
|
3365
3365
|
let A = null;
|
|
3366
3366
|
switch (l.currentChar()) {
|
|
3367
3367
|
case "{":
|
|
3368
|
-
return d.braceNest >= 1 && p(F.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), A =
|
|
3368
|
+
return d.braceNest >= 1 && p(F.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), A = m(
|
|
3369
3369
|
d,
|
|
3370
3370
|
2,
|
|
3371
3371
|
"{"
|
|
3372
3372
|
/* TokenChars.BraceLeft */
|
|
3373
3373
|
), N(l), d.braceNest++, A;
|
|
3374
3374
|
case "}":
|
|
3375
|
-
return d.braceNest > 0 && d.currentType === 2 && p(F.EMPTY_PLACEHOLDER, o(), 0), l.next(), A =
|
|
3375
|
+
return d.braceNest > 0 && d.currentType === 2 && p(F.EMPTY_PLACEHOLDER, o(), 0), l.next(), A = m(
|
|
3376
3376
|
d,
|
|
3377
3377
|
3,
|
|
3378
3378
|
"}"
|
|
@@ -3383,17 +3383,17 @@ function Ac(e, t = {}) {
|
|
|
3383
3383
|
default: {
|
|
3384
3384
|
let W = !0, K = !0, V = !0;
|
|
3385
3385
|
if (I(l))
|
|
3386
|
-
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A =
|
|
3386
|
+
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A = m(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, A;
|
|
3387
3387
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
3388
3388
|
return p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, ft(l, d);
|
|
3389
3389
|
if (W = T(l, d))
|
|
3390
|
-
return A =
|
|
3390
|
+
return A = m(d, 4, Ve(l)), N(l), A;
|
|
3391
3391
|
if (K = y(l, d))
|
|
3392
|
-
return A =
|
|
3392
|
+
return A = m(d, 5, Fe(l)), N(l), A;
|
|
3393
3393
|
if (V = v(l, d))
|
|
3394
|
-
return A =
|
|
3394
|
+
return A = m(d, 6, yr(l)), N(l), A;
|
|
3395
3395
|
if (!W && !K && !V)
|
|
3396
|
-
return A =
|
|
3396
|
+
return A = m(d, 12, Rt(l)), p(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, A.value), N(l), A;
|
|
3397
3397
|
break;
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
@@ -3405,28 +3405,28 @@ function Ac(e, t = {}) {
|
|
|
3405
3405
|
const W = l.currentChar();
|
|
3406
3406
|
switch ((A === 7 || A === 8 || A === 11 || A === 9) && (W === ie || W === Se) && p(F.INVALID_LINKED_FORMAT, o(), 0), W) {
|
|
3407
3407
|
case "@":
|
|
3408
|
-
return l.next(), w =
|
|
3408
|
+
return l.next(), w = m(
|
|
3409
3409
|
d,
|
|
3410
3410
|
7,
|
|
3411
3411
|
"@"
|
|
3412
3412
|
/* TokenChars.LinkedAlias */
|
|
3413
3413
|
), d.inLinked = !0, w;
|
|
3414
3414
|
case ".":
|
|
3415
|
-
return N(l), l.next(),
|
|
3415
|
+
return N(l), l.next(), m(
|
|
3416
3416
|
d,
|
|
3417
3417
|
8,
|
|
3418
3418
|
"."
|
|
3419
3419
|
/* TokenChars.LinkedDot */
|
|
3420
3420
|
);
|
|
3421
3421
|
case ":":
|
|
3422
|
-
return N(l), l.next(),
|
|
3422
|
+
return N(l), l.next(), m(
|
|
3423
3423
|
d,
|
|
3424
3424
|
9,
|
|
3425
3425
|
":"
|
|
3426
3426
|
/* TokenChars.LinkedDelimiter */
|
|
3427
3427
|
);
|
|
3428
3428
|
default:
|
|
3429
|
-
return I(l) ? (w =
|
|
3429
|
+
return I(l) ? (w = m(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, w) : C(l, d) || x(l, d) ? (N(l), $e(l, d)) : h(l, d) ? (N(l), m(d, 11, hn(l))) : M(l, d) ? (N(l), W === "{" ? ut(l, d) || w : m(d, 10, En(l))) : (A === 7 && p(F.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, ft(l, d));
|
|
3430
3430
|
}
|
|
3431
3431
|
}
|
|
3432
3432
|
function ft(l, d) {
|
|
@@ -3442,7 +3442,7 @@ function Ac(e, t = {}) {
|
|
|
3442
3442
|
case "{":
|
|
3443
3443
|
return ut(l, d) || L(d);
|
|
3444
3444
|
case "}":
|
|
3445
|
-
return p(F.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(),
|
|
3445
|
+
return p(F.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), m(
|
|
3446
3446
|
d,
|
|
3447
3447
|
3,
|
|
3448
3448
|
"}"
|
|
@@ -3452,9 +3452,9 @@ function Ac(e, t = {}) {
|
|
|
3452
3452
|
return $e(l, d) || L(d);
|
|
3453
3453
|
default: {
|
|
3454
3454
|
if (I(l))
|
|
3455
|
-
return A =
|
|
3455
|
+
return A = m(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, A;
|
|
3456
3456
|
if (P(l))
|
|
3457
|
-
return
|
|
3457
|
+
return m(d, 0, Oe(l));
|
|
3458
3458
|
break;
|
|
3459
3459
|
}
|
|
3460
3460
|
}
|
|
@@ -3462,7 +3462,7 @@ function Ac(e, t = {}) {
|
|
|
3462
3462
|
}
|
|
3463
3463
|
function gn() {
|
|
3464
3464
|
const { currentType: l, offset: d, startLoc: A, endLoc: w } = c;
|
|
3465
|
-
return c.lastType = l, c.lastOffset = d, c.lastStartLoc = A, c.lastEndLoc = w, c.offset = s(), c.startLoc = o(), r.currentChar() === Re ?
|
|
3465
|
+
return c.lastType = l, c.lastOffset = d, c.lastStartLoc = A, c.lastEndLoc = w, c.offset = s(), c.startLoc = o(), r.currentChar() === Re ? m(
|
|
3466
3466
|
c,
|
|
3467
3467
|
13
|
|
3468
3468
|
/* TokenTypes.EOF */
|
|
@@ -3472,7 +3472,7 @@ function Ac(e, t = {}) {
|
|
|
3472
3472
|
nextToken: gn,
|
|
3473
3473
|
currentOffset: s,
|
|
3474
3474
|
currentPosition: o,
|
|
3475
|
-
context:
|
|
3475
|
+
context: u
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
const Lc = "parser", Rc = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, vc = /\\([\\@{}|])/g;
|
|
@@ -3494,8 +3494,8 @@ function Ic(e, t, n) {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
function Pc(e = {}) {
|
|
3496
3496
|
const t = e.location !== !1, { onError: n } = e;
|
|
3497
|
-
function r(
|
|
3498
|
-
const C =
|
|
3497
|
+
function r(_, O, T, y, ...v) {
|
|
3498
|
+
const C = _.currentPosition();
|
|
3499
3499
|
if (C.offset += y, C.column += y, n) {
|
|
3500
3500
|
const h = t ? Kn(T, C) : null, x = ct(O, h, {
|
|
3501
3501
|
domain: Lc,
|
|
@@ -3504,122 +3504,122 @@ function Pc(e = {}) {
|
|
|
3504
3504
|
n(x);
|
|
3505
3505
|
}
|
|
3506
3506
|
}
|
|
3507
|
-
function s(
|
|
3508
|
-
const y = { type:
|
|
3507
|
+
function s(_, O, T) {
|
|
3508
|
+
const y = { type: _ };
|
|
3509
3509
|
return t && (y.start = O, y.end = O, y.loc = { start: T, end: T }), y;
|
|
3510
3510
|
}
|
|
3511
|
-
function o(
|
|
3512
|
-
t && (
|
|
3511
|
+
function o(_, O, T, y) {
|
|
3512
|
+
t && (_.end = O, _.loc && (_.loc.end = T));
|
|
3513
3513
|
}
|
|
3514
|
-
function i(
|
|
3515
|
-
const T =
|
|
3516
|
-
return y.value = O.replace(vc, Cc), o(y,
|
|
3514
|
+
function i(_, O) {
|
|
3515
|
+
const T = _.context(), y = s(3, T.offset, T.startLoc);
|
|
3516
|
+
return y.value = O.replace(vc, Cc), o(y, _.currentOffset(), _.currentPosition()), y;
|
|
3517
3517
|
}
|
|
3518
|
-
function a(
|
|
3519
|
-
const T =
|
|
3520
|
-
return C.index = parseInt(O, 10),
|
|
3518
|
+
function a(_, O) {
|
|
3519
|
+
const T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(5, y, v);
|
|
3520
|
+
return C.index = parseInt(O, 10), _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3521
3521
|
}
|
|
3522
|
-
function c(
|
|
3523
|
-
const T =
|
|
3524
|
-
return C.key = O,
|
|
3522
|
+
function c(_, O) {
|
|
3523
|
+
const T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(4, y, v);
|
|
3524
|
+
return C.key = O, _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3527
|
-
const T =
|
|
3528
|
-
return C.value = O.replace(Rc, Ic),
|
|
3526
|
+
function u(_, O) {
|
|
3527
|
+
const T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(9, y, v);
|
|
3528
|
+
return C.value = O.replace(Rc, Ic), _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3531
|
-
const O =
|
|
3532
|
-
return O.type !== 11 ? (r(
|
|
3530
|
+
function f(_) {
|
|
3531
|
+
const O = _.nextToken(), T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(8, y, v);
|
|
3532
|
+
return O.type !== 11 ? (r(_, F.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), C.value = "", o(C, y, v), {
|
|
3533
3533
|
nextConsumeToken: O,
|
|
3534
3534
|
node: C
|
|
3535
|
-
}) : (O.value == null && r(
|
|
3535
|
+
}) : (O.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Te(O)), C.value = O.value || "", o(C, _.currentOffset(), _.currentPosition()), {
|
|
3536
3536
|
node: C
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
3539
|
-
function p(
|
|
3540
|
-
const T =
|
|
3541
|
-
return y.value = O, o(y,
|
|
3539
|
+
function p(_, O) {
|
|
3540
|
+
const T = _.context(), y = s(7, T.offset, T.startLoc);
|
|
3541
|
+
return y.value = O, o(y, _.currentOffset(), _.currentPosition()), y;
|
|
3542
3542
|
}
|
|
3543
|
-
function _
|
|
3544
|
-
const O =
|
|
3545
|
-
let y =
|
|
3543
|
+
function m(_) {
|
|
3544
|
+
const O = _.context(), T = s(6, O.offset, O.startLoc);
|
|
3545
|
+
let y = _.nextToken();
|
|
3546
3546
|
if (y.type === 8) {
|
|
3547
|
-
const v =
|
|
3548
|
-
T.modifier = v.node, y = v.nextConsumeToken ||
|
|
3547
|
+
const v = f(_);
|
|
3548
|
+
T.modifier = v.node, y = v.nextConsumeToken || _.nextToken();
|
|
3549
3549
|
}
|
|
3550
|
-
switch (y.type !== 9 && r(
|
|
3550
|
+
switch (y.type !== 9 && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), y = _.nextToken(), y.type === 2 && (y = _.nextToken()), y.type) {
|
|
3551
3551
|
case 10:
|
|
3552
|
-
y.value == null && r(
|
|
3552
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = p(_, y.value || "");
|
|
3553
3553
|
break;
|
|
3554
3554
|
case 4:
|
|
3555
|
-
y.value == null && r(
|
|
3555
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = c(_, y.value || "");
|
|
3556
3556
|
break;
|
|
3557
3557
|
case 5:
|
|
3558
|
-
y.value == null && r(
|
|
3558
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = a(_, y.value || "");
|
|
3559
3559
|
break;
|
|
3560
3560
|
case 6:
|
|
3561
|
-
y.value == null && r(
|
|
3561
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = u(_, y.value || "");
|
|
3562
3562
|
break;
|
|
3563
3563
|
default: {
|
|
3564
|
-
r(
|
|
3565
|
-
const v =
|
|
3564
|
+
r(_, F.UNEXPECTED_EMPTY_LINKED_KEY, O.lastStartLoc, 0);
|
|
3565
|
+
const v = _.context(), C = s(7, v.offset, v.startLoc);
|
|
3566
3566
|
return C.value = "", o(C, v.offset, v.startLoc), T.key = C, o(T, v.offset, v.startLoc), {
|
|
3567
3567
|
nextConsumeToken: y,
|
|
3568
3568
|
node: T
|
|
3569
3569
|
};
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
|
-
return o(T,
|
|
3572
|
+
return o(T, _.currentOffset(), _.currentPosition()), {
|
|
3573
3573
|
node: T
|
|
3574
3574
|
};
|
|
3575
3575
|
}
|
|
3576
|
-
function L(
|
|
3577
|
-
const O =
|
|
3576
|
+
function L(_) {
|
|
3577
|
+
const O = _.context(), T = O.currentType === 1 ? _.currentOffset() : O.offset, y = O.currentType === 1 ? O.endLoc : O.startLoc, v = s(2, T, y);
|
|
3578
3578
|
v.items = [];
|
|
3579
3579
|
let C = null;
|
|
3580
3580
|
do {
|
|
3581
|
-
const M = C ||
|
|
3581
|
+
const M = C || _.nextToken();
|
|
3582
3582
|
switch (C = null, M.type) {
|
|
3583
3583
|
case 0:
|
|
3584
|
-
M.value == null && r(
|
|
3584
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(i(_, M.value || ""));
|
|
3585
3585
|
break;
|
|
3586
3586
|
case 5:
|
|
3587
|
-
M.value == null && r(
|
|
3587
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(a(_, M.value || ""));
|
|
3588
3588
|
break;
|
|
3589
3589
|
case 4:
|
|
3590
|
-
M.value == null && r(
|
|
3590
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(c(_, M.value || ""));
|
|
3591
3591
|
break;
|
|
3592
3592
|
case 6:
|
|
3593
|
-
M.value == null && r(
|
|
3593
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(u(_, M.value || ""));
|
|
3594
3594
|
break;
|
|
3595
3595
|
case 7: {
|
|
3596
|
-
const I = _
|
|
3596
|
+
const I = m(_);
|
|
3597
3597
|
v.items.push(I.node), C = I.nextConsumeToken || null;
|
|
3598
3598
|
break;
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
} while (O.currentType !== 13 && O.currentType !== 1);
|
|
3602
|
-
const h = O.currentType === 1 ? O.lastOffset :
|
|
3602
|
+
const h = O.currentType === 1 ? O.lastOffset : _.currentOffset(), x = O.currentType === 1 ? O.lastEndLoc : _.currentPosition();
|
|
3603
3603
|
return o(v, h, x), v;
|
|
3604
3604
|
}
|
|
3605
|
-
function
|
|
3606
|
-
const v =
|
|
3605
|
+
function E(_, O, T, y) {
|
|
3606
|
+
const v = _.context();
|
|
3607
3607
|
let C = y.items.length === 0;
|
|
3608
3608
|
const h = s(1, O, T);
|
|
3609
3609
|
h.cases = [], h.cases.push(y);
|
|
3610
3610
|
do {
|
|
3611
|
-
const x = L(
|
|
3611
|
+
const x = L(_);
|
|
3612
3612
|
C || (C = x.items.length === 0), h.cases.push(x);
|
|
3613
3613
|
} while (v.currentType !== 13);
|
|
3614
|
-
return C && r(
|
|
3614
|
+
return C && r(_, F.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), o(h, _.currentOffset(), _.currentPosition()), h;
|
|
3615
3615
|
}
|
|
3616
|
-
function b(
|
|
3617
|
-
const O =
|
|
3618
|
-
return O.currentType === 13 ? v :
|
|
3616
|
+
function b(_) {
|
|
3617
|
+
const O = _.context(), { offset: T, startLoc: y } = O, v = L(_);
|
|
3618
|
+
return O.currentType === 13 ? v : E(_, T, y, v);
|
|
3619
3619
|
}
|
|
3620
|
-
function N(
|
|
3621
|
-
const O = Ac(
|
|
3622
|
-
return t && y.loc && (y.loc.source =
|
|
3620
|
+
function N(_) {
|
|
3621
|
+
const O = Ac(_, re({}, e)), T = O.context(), y = s(0, T.offset, T.startLoc);
|
|
3622
|
+
return t && y.loc && (y.loc.source = _), y.body = b(O), e.onCacheKey && (y.cacheKey = e.onCacheKey(_)), T.currentType !== 13 && r(O, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, _[T.offset] || ""), o(y, O.currentOffset(), O.currentPosition()), y;
|
|
3623
3623
|
}
|
|
3624
3624
|
return { parse: N };
|
|
3625
3625
|
}
|
|
@@ -3787,27 +3787,27 @@ function Mc(e, t) {
|
|
|
3787
3787
|
function c(b, N) {
|
|
3788
3788
|
i.code += b;
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3791
|
-
const
|
|
3792
|
-
c(s ?
|
|
3790
|
+
function u(b, N = !0) {
|
|
3791
|
+
const _ = N ? r : "";
|
|
3792
|
+
c(s ? _ + " ".repeat(b) : _);
|
|
3793
3793
|
}
|
|
3794
|
-
function
|
|
3794
|
+
function f(b = !0) {
|
|
3795
3795
|
const N = ++i.indentLevel;
|
|
3796
|
-
b &&
|
|
3796
|
+
b && u(N);
|
|
3797
3797
|
}
|
|
3798
3798
|
function p(b = !0) {
|
|
3799
3799
|
const N = --i.indentLevel;
|
|
3800
|
-
b &&
|
|
3800
|
+
b && u(N);
|
|
3801
3801
|
}
|
|
3802
|
-
function
|
|
3803
|
-
|
|
3802
|
+
function m() {
|
|
3803
|
+
u(i.indentLevel);
|
|
3804
3804
|
}
|
|
3805
3805
|
return {
|
|
3806
3806
|
context: a,
|
|
3807
3807
|
push: c,
|
|
3808
|
-
indent:
|
|
3808
|
+
indent: f,
|
|
3809
3809
|
deindent: p,
|
|
3810
|
-
newline:
|
|
3810
|
+
newline: m,
|
|
3811
3811
|
helper: (b) => `_${b}`,
|
|
3812
3812
|
needIndent: () => i.needIndent
|
|
3813
3813
|
};
|
|
@@ -3908,12 +3908,12 @@ const jc = (e, t = {}) => {
|
|
|
3908
3908
|
breakLineCode: s,
|
|
3909
3909
|
needIndent: o
|
|
3910
3910
|
});
|
|
3911
|
-
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${pr(i.map((
|
|
3912
|
-
const { code: c, map:
|
|
3911
|
+
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${pr(i.map((f) => `${f}: _${f}`), ", ")} } = ctx`), a.newline()), a.push("return "), st(a, e), a.deindent(o), a.push("}"), delete e.helpers;
|
|
3912
|
+
const { code: c, map: u } = a.context();
|
|
3913
3913
|
return {
|
|
3914
3914
|
ast: e,
|
|
3915
3915
|
code: c,
|
|
3916
|
-
map:
|
|
3916
|
+
map: u ? u.toJSON() : void 0
|
|
3917
3917
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3918
3918
|
};
|
|
3919
3919
|
};
|
|
@@ -4406,55 +4406,55 @@ function hl(e) {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
function El(e) {
|
|
4408
4408
|
const t = [];
|
|
4409
|
-
let n = -1, r = 0, s = 0, o, i, a, c,
|
|
4410
|
-
const
|
|
4411
|
-
|
|
4409
|
+
let n = -1, r = 0, s = 0, o, i, a, c, u, f, p;
|
|
4410
|
+
const m = [];
|
|
4411
|
+
m[
|
|
4412
4412
|
0
|
|
4413
4413
|
/* Actions.APPEND */
|
|
4414
4414
|
] = () => {
|
|
4415
4415
|
i === void 0 ? i = a : i += a;
|
|
4416
|
-
},
|
|
4416
|
+
}, m[
|
|
4417
4417
|
1
|
|
4418
4418
|
/* Actions.PUSH */
|
|
4419
4419
|
] = () => {
|
|
4420
4420
|
i !== void 0 && (t.push(i), i = void 0);
|
|
4421
|
-
},
|
|
4421
|
+
}, m[
|
|
4422
4422
|
2
|
|
4423
4423
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
4424
4424
|
] = () => {
|
|
4425
|
-
|
|
4425
|
+
m[
|
|
4426
4426
|
0
|
|
4427
4427
|
/* Actions.APPEND */
|
|
4428
4428
|
](), s++;
|
|
4429
|
-
},
|
|
4429
|
+
}, m[
|
|
4430
4430
|
3
|
|
4431
4431
|
/* Actions.PUSH_SUB_PATH */
|
|
4432
4432
|
] = () => {
|
|
4433
4433
|
if (s > 0)
|
|
4434
|
-
s--, r = 4,
|
|
4434
|
+
s--, r = 4, m[
|
|
4435
4435
|
0
|
|
4436
4436
|
/* Actions.APPEND */
|
|
4437
4437
|
]();
|
|
4438
4438
|
else {
|
|
4439
4439
|
if (s = 0, i === void 0 || (i = hl(i), i === !1))
|
|
4440
4440
|
return !1;
|
|
4441
|
-
|
|
4441
|
+
m[
|
|
4442
4442
|
1
|
|
4443
4443
|
/* Actions.PUSH */
|
|
4444
4444
|
]();
|
|
4445
4445
|
}
|
|
4446
4446
|
};
|
|
4447
4447
|
function L() {
|
|
4448
|
-
const
|
|
4449
|
-
if (r === 5 &&
|
|
4450
|
-
return n++, a = "\\" +
|
|
4448
|
+
const E = e[n + 1];
|
|
4449
|
+
if (r === 5 && E === "'" || r === 6 && E === '"')
|
|
4450
|
+
return n++, a = "\\" + E, m[
|
|
4451
4451
|
0
|
|
4452
4452
|
/* Actions.APPEND */
|
|
4453
4453
|
](), !0;
|
|
4454
4454
|
}
|
|
4455
4455
|
for (; r !== null; )
|
|
4456
4456
|
if (n++, o = e[n], !(o === "\\" && L())) {
|
|
4457
|
-
if (c = _l(o), p = xe[r],
|
|
4457
|
+
if (c = _l(o), p = xe[r], u = p[c] || p.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (f = m[u[1]], f && (a = o, f() === !1))))
|
|
4458
4458
|
return;
|
|
4459
4459
|
if (r === 7)
|
|
4460
4460
|
return t;
|
|
@@ -4537,7 +4537,7 @@ const ds = (e) => {
|
|
|
4537
4537
|
}, vl = () => Lo;
|
|
4538
4538
|
let ps = 0;
|
|
4539
4539
|
function Cl(e = {}) {
|
|
4540
|
-
const t = G(e.onWarn) ? e.onWarn : Le, n = D(e.version) ? e.version : Nl, r = D(e.locale) || G(e.locale) ? e.locale : Gt, s = G(r) ? Gt : r, o = J(e.fallbackLocale) || j(e.fallbackLocale) || D(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = j(e.messages) ? e.messages : In(s), a = j(e.datetimeFormats) ? e.datetimeFormats : In(s), c = j(e.numberFormats) ? e.numberFormats : In(s),
|
|
4540
|
+
const t = G(e.onWarn) ? e.onWarn : Le, n = D(e.version) ? e.version : Nl, r = D(e.locale) || G(e.locale) ? e.locale : Gt, s = G(r) ? Gt : r, o = J(e.fallbackLocale) || j(e.fallbackLocale) || D(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = j(e.messages) ? e.messages : In(s), a = j(e.datetimeFormats) ? e.datetimeFormats : In(s), c = j(e.numberFormats) ? e.numberFormats : In(s), u = re(H(), e.modifiers, Ol()), f = e.pluralRules || H(), p = G(e.missing) ? e.missing : null, m = X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, b = !!e.unresolving, N = G(e.postTranslation) ? e.postTranslation : null, _ = j(e.processor) ? e.processor : null, O = X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, y = G(e.messageCompiler) ? e.messageCompiler : Oo;
|
|
4541
4541
|
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && nc(Ie(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
4542
4542
|
const v = G(e.messageResolver) ? e.messageResolver : So || gl, C = G(e.localeFallbacker) ? e.localeFallbacker : To || ll, h = B(e.fallbackContext) ? e.fallbackContext : void 0, x = e, M = B(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = B(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), P = B(x.__meta) ? x.__meta : {};
|
|
4543
4543
|
ps++;
|
|
@@ -4547,15 +4547,15 @@ function Cl(e = {}) {
|
|
|
4547
4547
|
locale: r,
|
|
4548
4548
|
fallbackLocale: o,
|
|
4549
4549
|
messages: i,
|
|
4550
|
-
modifiers:
|
|
4551
|
-
pluralRules:
|
|
4550
|
+
modifiers: u,
|
|
4551
|
+
pluralRules: f,
|
|
4552
4552
|
missing: p,
|
|
4553
|
-
missingWarn:
|
|
4553
|
+
missingWarn: m,
|
|
4554
4554
|
fallbackWarn: L,
|
|
4555
|
-
fallbackFormat:
|
|
4555
|
+
fallbackFormat: E,
|
|
4556
4556
|
unresolving: b,
|
|
4557
4557
|
postTranslation: N,
|
|
4558
|
-
processor:
|
|
4558
|
+
processor: _,
|
|
4559
4559
|
warnHtmlMessage: O,
|
|
4560
4560
|
escapeParameter: T,
|
|
4561
4561
|
messageCompiler: y,
|
|
@@ -4619,15 +4619,15 @@ function _s(e, ...t) {
|
|
|
4619
4619
|
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_DATE_ARGUMENT, {
|
|
4620
4620
|
value: String(t[0])
|
|
4621
4621
|
})), ot;
|
|
4622
|
-
const [c,
|
|
4622
|
+
const [c, u, f, p] = Qn(...t), m = X(f.missingWarn) ? f.missingWarn : e.missingWarn, L = X(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, E = !!f.part, b = hr(e, f), N = i(
|
|
4623
4623
|
e,
|
|
4624
4624
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4625
4625
|
s,
|
|
4626
4626
|
b
|
|
4627
4627
|
);
|
|
4628
4628
|
if (!D(c) || c === "")
|
|
4629
|
-
return new Intl.DateTimeFormat(b.replace(/!/g, ""), p).format(
|
|
4630
|
-
let
|
|
4629
|
+
return new Intl.DateTimeFormat(b.replace(/!/g, ""), p).format(u);
|
|
4630
|
+
let _ = {}, O, T = null, y = b, v = null;
|
|
4631
4631
|
const C = "datetime format";
|
|
4632
4632
|
for (let M = 0; M < N.length; M++) {
|
|
4633
4633
|
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(L, c) && o(Ie(te.FALLBACK_TO_DATE_FORMAT, {
|
|
@@ -4643,16 +4643,16 @@ function _s(e, ...t) {
|
|
|
4643
4643
|
groupId: `${C}:${c}`
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
|
-
if (
|
|
4646
|
+
if (_ = n[O] || {}, T = _[c], j(T))
|
|
4647
4647
|
break;
|
|
4648
|
-
Er(e, c, O,
|
|
4648
|
+
Er(e, c, O, m, C), y = v;
|
|
4649
4649
|
}
|
|
4650
4650
|
if (!j(T) || !D(O))
|
|
4651
4651
|
return r ? fn : c;
|
|
4652
4652
|
let h = `${O}__${c}`;
|
|
4653
4653
|
un(p) || (h = `${h}__${JSON.stringify(p)}`);
|
|
4654
4654
|
let x = a.get(h);
|
|
4655
|
-
return x || (x = new Intl.DateTimeFormat(O, re({}, T, p)), a.set(h, x)),
|
|
4655
|
+
return x || (x = new Intl.DateTimeFormat(O, re({}, T, p)), a.set(h, x)), E ? x.formatToParts(u) : x.format(u);
|
|
4656
4656
|
}
|
|
4657
4657
|
const Io = [
|
|
4658
4658
|
"localeMatcher",
|
|
@@ -4683,8 +4683,8 @@ function Qn(...e) {
|
|
|
4683
4683
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
4684
4684
|
if (!c)
|
|
4685
4685
|
throw ve(ae.INVALID_ISO_DATE_ARGUMENT);
|
|
4686
|
-
const
|
|
4687
|
-
a = new Date(
|
|
4686
|
+
const u = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
4687
|
+
a = new Date(u);
|
|
4688
4688
|
try {
|
|
4689
4689
|
a.toISOString();
|
|
4690
4690
|
} catch {
|
|
@@ -4717,15 +4717,15 @@ function Es(e, ...t) {
|
|
|
4717
4717
|
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_NUMBER_ARGUMENT, {
|
|
4718
4718
|
value: String(t[0])
|
|
4719
4719
|
})), ot;
|
|
4720
|
-
const [c,
|
|
4720
|
+
const [c, u, f, p] = zn(...t), m = X(f.missingWarn) ? f.missingWarn : e.missingWarn, L = X(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, E = !!f.part, b = hr(e, f), N = i(
|
|
4721
4721
|
e,
|
|
4722
4722
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4723
4723
|
s,
|
|
4724
4724
|
b
|
|
4725
4725
|
);
|
|
4726
4726
|
if (!D(c) || c === "")
|
|
4727
|
-
return new Intl.NumberFormat(b.replace(/!/g, ""), p).format(
|
|
4728
|
-
let
|
|
4727
|
+
return new Intl.NumberFormat(b.replace(/!/g, ""), p).format(u);
|
|
4728
|
+
let _ = {}, O, T = null, y = b, v = null;
|
|
4729
4729
|
const C = "number format";
|
|
4730
4730
|
for (let M = 0; M < N.length; M++) {
|
|
4731
4731
|
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(L, c) && o(Ie(te.FALLBACK_TO_NUMBER_FORMAT, {
|
|
@@ -4741,16 +4741,16 @@ function Es(e, ...t) {
|
|
|
4741
4741
|
groupId: `${C}:${c}`
|
|
4742
4742
|
});
|
|
4743
4743
|
}
|
|
4744
|
-
if (
|
|
4744
|
+
if (_ = n[O] || {}, T = _[c], j(T))
|
|
4745
4745
|
break;
|
|
4746
|
-
Er(e, c, O,
|
|
4746
|
+
Er(e, c, O, m, C), y = v;
|
|
4747
4747
|
}
|
|
4748
4748
|
if (!j(T) || !D(O))
|
|
4749
4749
|
return r ? fn : c;
|
|
4750
4750
|
let h = `${O}__${c}`;
|
|
4751
4751
|
un(p) || (h = `${h}__${JSON.stringify(p)}`);
|
|
4752
4752
|
let x = a.get(h);
|
|
4753
|
-
return x || (x = new Intl.NumberFormat(O, re({}, T, p)), a.set(h, x)),
|
|
4753
|
+
return x || (x = new Intl.NumberFormat(O, re({}, T, p)), a.set(h, x)), E ? x.formatToParts(u) : x.format(u);
|
|
4754
4754
|
}
|
|
4755
4755
|
const Po = [
|
|
4756
4756
|
"localeMatcher",
|
|
@@ -4800,45 +4800,45 @@ function Ul(e) {
|
|
|
4800
4800
|
return ne(e.named?.count) ? e.named.count : ne(e.named?.n) ? e.named.n : t;
|
|
4801
4801
|
}
|
|
4802
4802
|
function Ml(e = {}) {
|
|
4803
|
-
const t = e.locale, n = Ul(e), r = D(t) && G(e.pluralRules?.[t]) ? e.pluralRules[t] : Pn, s = r === Pn ? void 0 : Pn, o = (
|
|
4803
|
+
const t = e.locale, n = Ul(e), r = D(t) && G(e.pluralRules?.[t]) ? e.pluralRules[t] : Pn, s = r === Pn ? void 0 : Pn, o = (_) => _[r(n, _.length, s)], i = e.list || [], a = (_) => i[_], c = e.named || H();
|
|
4804
4804
|
ne(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
4805
|
-
const
|
|
4806
|
-
function
|
|
4807
|
-
const T = G(e.messages) ? e.messages(
|
|
4808
|
-
return T || (e.parent ? e.parent.message(
|
|
4805
|
+
const u = (_) => c[_];
|
|
4806
|
+
function f(_, O) {
|
|
4807
|
+
const T = G(e.messages) ? e.messages(_, !!O) : B(e.messages) ? e.messages[_] : !1;
|
|
4808
|
+
return T || (e.parent ? e.parent.message(_) : wl);
|
|
4809
4809
|
}
|
|
4810
|
-
const p = (
|
|
4810
|
+
const p = (_) => e.modifiers ? e.modifiers[_] : Pl, m = G(e.processor?.normalize) ? e.processor.normalize : kl, L = G(e.processor?.interpolate) ? e.processor.interpolate : Fl, E = D(e.processor?.type) ? e.processor.type : Dl, N = {
|
|
4811
4811
|
list: a,
|
|
4812
|
-
named:
|
|
4812
|
+
named: u,
|
|
4813
4813
|
plural: o,
|
|
4814
|
-
linked: (
|
|
4814
|
+
linked: (_, ...O) => {
|
|
4815
4815
|
const [T, y] = O;
|
|
4816
4816
|
let v = "text", C = "";
|
|
4817
4817
|
O.length === 1 ? B(T) ? (C = T.modifier || C, v = T.type || v) : D(T) && (C = T || C) : O.length === 2 && (D(T) && (C = T || C), D(y) && (v = y || v));
|
|
4818
|
-
const h =
|
|
4818
|
+
const h = f(_, !0)(N), x = h === "" || h === void 0 ? _ : h, M = (
|
|
4819
4819
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4820
4820
|
v === "vnode" && J(x) && C ? x[0] : x
|
|
4821
4821
|
);
|
|
4822
4822
|
return C ? p(C)(M, v) : M;
|
|
4823
4823
|
},
|
|
4824
|
-
message:
|
|
4825
|
-
type:
|
|
4824
|
+
message: f,
|
|
4825
|
+
type: E,
|
|
4826
4826
|
interpolate: L,
|
|
4827
|
-
normalize:
|
|
4827
|
+
normalize: m,
|
|
4828
4828
|
values: re(H(), i, c)
|
|
4829
4829
|
};
|
|
4830
4830
|
return N;
|
|
4831
4831
|
}
|
|
4832
4832
|
const bs = () => "", he = (e) => G(e);
|
|
4833
4833
|
function ys(e, ...t) {
|
|
4834
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c,
|
|
4835
|
-
|
|
4836
|
-
let [
|
|
4834
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c, u] = Zn(...t), f = X(u.missingWarn) ? u.missingWarn : e.missingWarn, p = X(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = X(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, L = !!u.resolvedMessage, E = D(u.default) || X(u.default) ? X(u.default) ? o ? c : () => c : u.default : n ? o ? c : () => c : null, b = n || E != null && (D(E) || G(E)), N = hr(e, u);
|
|
4835
|
+
m && xl(u);
|
|
4836
|
+
let [_, O, T] = L ? [
|
|
4837
4837
|
c,
|
|
4838
4838
|
N,
|
|
4839
4839
|
a[N] || H()
|
|
4840
|
-
] : wo(e, c, N, i, p,
|
|
4841
|
-
if (!L && !(D(y) || be(y) || he(y)) && b && (y =
|
|
4840
|
+
] : wo(e, c, N, i, p, f), y = _, v = c;
|
|
4841
|
+
if (!L && !(D(y) || be(y) || he(y)) && b && (y = E, v = y), !L && (!(D(y) || be(y) || he(y)) || !D(O)))
|
|
4842
4842
|
return s ? fn : c;
|
|
4843
4843
|
if (process.env.NODE_ENV !== "production" && D(y) && e.messageCompiler == null)
|
|
4844
4844
|
return Le(`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 '${c}'.`), c;
|
|
@@ -4848,9 +4848,9 @@ function ys(e, ...t) {
|
|
|
4848
4848
|
}, x = he(y) ? y : Do(e, c, O, y, v, h);
|
|
4849
4849
|
if (C)
|
|
4850
4850
|
return y;
|
|
4851
|
-
const M = jl(e, O, T,
|
|
4851
|
+
const M = jl(e, O, T, u), I = Ml(M), P = Vl(e, x, I);
|
|
4852
4852
|
let k = r ? r(P, c) : P;
|
|
4853
|
-
if (
|
|
4853
|
+
if (m && D(k) && (k = ac(k)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4854
4854
|
const q = {
|
|
4855
4855
|
timestamp: Date.now(),
|
|
4856
4856
|
key: D(c) ? c : he(y) ? y.key : "",
|
|
@@ -4868,24 +4868,24 @@ function xl(e) {
|
|
|
4868
4868
|
});
|
|
4869
4869
|
}
|
|
4870
4870
|
function wo(e, t, n, r, s, o) {
|
|
4871
|
-
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker:
|
|
4872
|
-
let p = H(),
|
|
4871
|
+
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker: u } = e, f = u(e, r, n);
|
|
4872
|
+
let p = H(), m, L = null, E = n, b = null;
|
|
4873
4873
|
const N = "translate";
|
|
4874
|
-
for (let
|
|
4875
|
-
if (
|
|
4874
|
+
for (let _ = 0; _ < f.length; _++) {
|
|
4875
|
+
if (m = b = f[_], process.env.NODE_ENV !== "production" && n !== m && !vo(n, m) && dn(s, t) && a(Ie(te.FALLBACK_TO_TRANSLATE, {
|
|
4876
4876
|
key: t,
|
|
4877
|
-
target:
|
|
4878
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
4877
|
+
target: m
|
|
4878
|
+
})), process.env.NODE_ENV !== "production" && n !== m) {
|
|
4879
4879
|
const v = e.__v_emitter;
|
|
4880
4880
|
v && v.emit("fallback", {
|
|
4881
4881
|
type: N,
|
|
4882
4882
|
key: t,
|
|
4883
|
-
from:
|
|
4883
|
+
from: E,
|
|
4884
4884
|
to: b,
|
|
4885
4885
|
groupId: `${N}:${t}`
|
|
4886
4886
|
});
|
|
4887
4887
|
}
|
|
4888
|
-
p = i[
|
|
4888
|
+
p = i[m] || H();
|
|
4889
4889
|
let O = null, T, y;
|
|
4890
4890
|
if (process.env.NODE_ENV !== "production" && Pe && (O = window.performance.now(), T = "intlify-message-resolve-start", y = "intlify-message-resolve-end", de && de(T)), (L = c(p, t)) === null && (L = p[t]), process.env.NODE_ENV !== "production" && Pe) {
|
|
4891
4891
|
const v = window.performance.now(), C = e.__v_emitter;
|
|
@@ -4899,42 +4899,42 @@ function wo(e, t, n, r, s, o) {
|
|
|
4899
4899
|
}
|
|
4900
4900
|
if (D(L) || be(L) || he(L))
|
|
4901
4901
|
break;
|
|
4902
|
-
if (!Il(
|
|
4902
|
+
if (!Il(m, f)) {
|
|
4903
4903
|
const v = Er(
|
|
4904
4904
|
e,
|
|
4905
4905
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4906
4906
|
t,
|
|
4907
|
-
|
|
4907
|
+
m,
|
|
4908
4908
|
o,
|
|
4909
4909
|
N
|
|
4910
4910
|
);
|
|
4911
4911
|
v !== t && (L = v);
|
|
4912
4912
|
}
|
|
4913
|
-
|
|
4913
|
+
E = b;
|
|
4914
4914
|
}
|
|
4915
|
-
return [L,
|
|
4915
|
+
return [L, m, p];
|
|
4916
4916
|
}
|
|
4917
4917
|
function Do(e, t, n, r, s, o) {
|
|
4918
4918
|
const { messageCompiler: i, warnHtmlMessage: a } = e;
|
|
4919
4919
|
if (he(r)) {
|
|
4920
|
-
const
|
|
4921
|
-
return
|
|
4920
|
+
const m = r;
|
|
4921
|
+
return m.locale = m.locale || n, m.key = m.key || t, m;
|
|
4922
4922
|
}
|
|
4923
4923
|
if (i == null) {
|
|
4924
|
-
const
|
|
4925
|
-
return
|
|
4924
|
+
const m = (() => r);
|
|
4925
|
+
return m.locale = n, m.key = t, m;
|
|
4926
4926
|
}
|
|
4927
|
-
let c = null,
|
|
4928
|
-
process.env.NODE_ENV !== "production" && Pe && (c = window.performance.now(),
|
|
4927
|
+
let c = null, u, f;
|
|
4928
|
+
process.env.NODE_ENV !== "production" && Pe && (c = window.performance.now(), u = "intlify-message-compilation-start", f = "intlify-message-compilation-end", de && de(u));
|
|
4929
4929
|
const p = i(r, $l(e, n, s, r, a, o));
|
|
4930
4930
|
if (process.env.NODE_ENV !== "production" && Pe) {
|
|
4931
|
-
const
|
|
4931
|
+
const m = window.performance.now(), L = e.__v_emitter;
|
|
4932
4932
|
L && c && L.emit("message-compilation", {
|
|
4933
4933
|
type: "message-compilation",
|
|
4934
4934
|
message: r,
|
|
4935
|
-
time:
|
|
4935
|
+
time: m - c,
|
|
4936
4936
|
groupId: `translate:${t}`
|
|
4937
|
-
}),
|
|
4937
|
+
}), u && f && de && Je && (de(f), Je("intlify message compilation", u, f));
|
|
4938
4938
|
}
|
|
4939
4939
|
return p.locale = n, p.key = t, p.source = r, p;
|
|
4940
4940
|
}
|
|
@@ -4967,17 +4967,17 @@ function $l(e, t, n, r, s, o) {
|
|
|
4967
4967
|
warnHtmlMessage: s,
|
|
4968
4968
|
onError: (i) => {
|
|
4969
4969
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
4970
|
-
const a = Bl(r), c = i.location && a && fc(a, i.location.start.offset, i.location.end.offset),
|
|
4971
|
-
|
|
4970
|
+
const a = Bl(r), c = i.location && a && fc(a, i.location.start.offset, i.location.end.offset), u = e.__v_emitter;
|
|
4971
|
+
u && a && u.emit("compile-error", {
|
|
4972
4972
|
message: a,
|
|
4973
4973
|
error: i.message,
|
|
4974
4974
|
start: i.location && i.location.start.offset,
|
|
4975
4975
|
end: i.location && i.location.end.offset,
|
|
4976
4976
|
groupId: `translate:${n}`
|
|
4977
4977
|
});
|
|
4978
|
-
const
|
|
4979
|
-
throw new SyntaxError(c ? `${
|
|
4980
|
-
${c}` :
|
|
4978
|
+
const f = `Message compilation error: ${i.message}`;
|
|
4979
|
+
throw new SyntaxError(c ? `${f}
|
|
4980
|
+
${c}` : f);
|
|
4981
4981
|
}
|
|
4982
4982
|
throw i;
|
|
4983
4983
|
},
|
|
@@ -4991,21 +4991,21 @@ function Bl(e) {
|
|
|
4991
4991
|
return e.loc.source;
|
|
4992
4992
|
}
|
|
4993
4993
|
function jl(e, t, n, r) {
|
|
4994
|
-
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn:
|
|
4994
|
+
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: u, fallbackContext: f } = e, m = {
|
|
4995
4995
|
locale: t,
|
|
4996
4996
|
modifiers: s,
|
|
4997
4997
|
pluralRules: o,
|
|
4998
|
-
messages: (L,
|
|
4998
|
+
messages: (L, E) => {
|
|
4999
4999
|
let b = i(n, L);
|
|
5000
|
-
if (b == null && (
|
|
5000
|
+
if (b == null && (f || E)) {
|
|
5001
5001
|
const [, , N] = wo(
|
|
5002
|
-
|
|
5002
|
+
f || e,
|
|
5003
5003
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
5004
5004
|
L,
|
|
5005
5005
|
t,
|
|
5006
5006
|
a,
|
|
5007
5007
|
c,
|
|
5008
|
-
|
|
5008
|
+
u
|
|
5009
5009
|
);
|
|
5010
5010
|
b = i(N, L);
|
|
5011
5011
|
}
|
|
@@ -5018,7 +5018,7 @@ function jl(e, t, n, r) {
|
|
|
5018
5018
|
} else return he(b) ? b : bs;
|
|
5019
5019
|
}
|
|
5020
5020
|
};
|
|
5021
|
-
return e.processor && (
|
|
5021
|
+
return e.processor && (m.processor = e.processor), r.list && (m.list = r.list), r.named && (m.named = r.named), ne(r.plural) && (m.pluralIndex = r.plural), m;
|
|
5022
5022
|
}
|
|
5023
5023
|
qc();
|
|
5024
5024
|
const Hl = "11.3.0";
|
|
@@ -5127,8 +5127,8 @@ function Fo(e, t) {
|
|
|
5127
5127
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, i = j(n) ? n : J(r) ? H() : { [e]: H() };
|
|
5128
5128
|
if (J(r) && r.forEach((a) => {
|
|
5129
5129
|
if ("locale" in a && "resource" in a) {
|
|
5130
|
-
const { locale: c, resource:
|
|
5131
|
-
c ? (i[c] = i[c] || H(), Mt(
|
|
5130
|
+
const { locale: c, resource: u } = a;
|
|
5131
|
+
c ? (i[c] = i[c] || H(), Mt(u, i[c])) : Mt(u, i);
|
|
5132
5132
|
} else
|
|
5133
5133
|
D(a) && Mt(JSON.parse(a), i);
|
|
5134
5134
|
}), s == null && o)
|
|
@@ -5190,8 +5190,8 @@ function Ql(e = {}) {
|
|
|
5190
5190
|
), c = o(
|
|
5191
5191
|
// prettier-ignore
|
|
5192
5192
|
t && i ? t.fallbackLocale.value : D(e.fallbackLocale) || J(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
5193
|
-
),
|
|
5194
|
-
let
|
|
5193
|
+
), u = o(Fo(a.value, e)), f = o(j(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), p = o(j(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
5194
|
+
let m = t ? t.missingWarn : X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = t ? t.fallbackWarn : X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : X(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, N = G(e.missing) ? e.missing : null, _ = G(e.missing) ? As(e.missing) : null, O = G(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
5195
5195
|
const v = t ? t.modifiers : j(e.modifiers) ? e.modifiers : {};
|
|
5196
5196
|
let C = e.pluralRules || t && t.pluralRules, h;
|
|
5197
5197
|
h = (() => {
|
|
@@ -5200,11 +5200,11 @@ function Ql(e = {}) {
|
|
|
5200
5200
|
version: Hl,
|
|
5201
5201
|
locale: a.value,
|
|
5202
5202
|
fallbackLocale: c.value,
|
|
5203
|
-
messages:
|
|
5203
|
+
messages: u.value,
|
|
5204
5204
|
modifiers: v,
|
|
5205
5205
|
pluralRules: C,
|
|
5206
|
-
missing:
|
|
5207
|
-
missingWarn:
|
|
5206
|
+
missing: _ === null ? void 0 : _,
|
|
5207
|
+
missingWarn: m,
|
|
5208
5208
|
fallbackWarn: L,
|
|
5209
5209
|
fallbackFormat: b,
|
|
5210
5210
|
unresolving: !0,
|
|
@@ -5215,7 +5215,7 @@ function Ql(e = {}) {
|
|
|
5215
5215
|
messageCompiler: e.messageCompiler,
|
|
5216
5216
|
__meta: { framework: "vue" }
|
|
5217
5217
|
};
|
|
5218
|
-
S.datetimeFormats =
|
|
5218
|
+
S.datetimeFormats = f.value, S.numberFormats = p.value, S.__datetimeFormatters = j(h) ? h.__datetimeFormatters : void 0, S.__numberFormatters = j(h) ? h.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (S.__v_emitter = j(h) ? h.__v_emitter : void 0);
|
|
5219
5219
|
const R = Cl(S);
|
|
5220
5220
|
return r && ds(R), R;
|
|
5221
5221
|
})(), pt(h, a.value, c.value);
|
|
@@ -5223,8 +5223,8 @@ function Ql(e = {}) {
|
|
|
5223
5223
|
return [
|
|
5224
5224
|
a.value,
|
|
5225
5225
|
c.value,
|
|
5226
|
-
f.value,
|
|
5227
5226
|
u.value,
|
|
5227
|
+
f.value,
|
|
5228
5228
|
p.value
|
|
5229
5229
|
];
|
|
5230
5230
|
}
|
|
@@ -5238,7 +5238,7 @@ function Ql(e = {}) {
|
|
|
5238
5238
|
set: (S) => {
|
|
5239
5239
|
h.fallbackLocale = S, c.value = S, pt(h, a.value, S);
|
|
5240
5240
|
}
|
|
5241
|
-
}), k = Ue(() =>
|
|
5241
|
+
}), k = Ue(() => u.value), q = /* @__PURE__ */ Ue(() => f.value), se = /* @__PURE__ */ Ue(() => p.value);
|
|
5242
5242
|
function Ne() {
|
|
5243
5243
|
return G(O) ? O : null;
|
|
5244
5244
|
}
|
|
@@ -5249,7 +5249,7 @@ function Ql(e = {}) {
|
|
|
5249
5249
|
return N;
|
|
5250
5250
|
}
|
|
5251
5251
|
function ee(S) {
|
|
5252
|
-
S !== null && (
|
|
5252
|
+
S !== null && (_ = As(S)), N = S, h.missing = _;
|
|
5253
5253
|
}
|
|
5254
5254
|
function Z(S, R) {
|
|
5255
5255
|
return S !== "translate" || !R.resolvedMessage;
|
|
@@ -5265,19 +5265,19 @@ function Ql(e = {}) {
|
|
|
5265
5265
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
5266
5266
|
ne(pe) && pe === fn || $ === "translate exists" && !pe) {
|
|
5267
5267
|
const [He, Vo] = R();
|
|
5268
|
-
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($, Vo) && (
|
|
5268
|
+
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($, Vo) && (E && (dn(L, He) || Ro(m, He)) && Le(Yt(Ae.FALLBACK_TO_ROOT, {
|
|
5269
5269
|
key: He,
|
|
5270
5270
|
type: $
|
|
5271
5271
|
})), process.env.NODE_ENV !== "production")) {
|
|
5272
5272
|
const { __v_emitter: Nr } = h;
|
|
5273
|
-
Nr &&
|
|
5273
|
+
Nr && E && Nr.emit("fallback", {
|
|
5274
5274
|
type: $,
|
|
5275
5275
|
key: He,
|
|
5276
5276
|
to: "global",
|
|
5277
5277
|
groupId: `${$}:${He}`
|
|
5278
5278
|
});
|
|
5279
5279
|
}
|
|
5280
|
-
return t &&
|
|
5280
|
+
return t && E ? Y(t) : Be(He);
|
|
5281
5281
|
} else {
|
|
5282
5282
|
if (je(pe))
|
|
5283
5283
|
return pe;
|
|
@@ -5346,7 +5346,7 @@ function Ql(e = {}) {
|
|
|
5346
5346
|
let R = null;
|
|
5347
5347
|
const $ = Jn(h, c.value, a.value);
|
|
5348
5348
|
for (let Y = 0; Y < $.length; Y++) {
|
|
5349
|
-
const Be =
|
|
5349
|
+
const Be = u.value[$[Y]] || {}, je = h.messageResolver(Be, S);
|
|
5350
5350
|
if (je != null) {
|
|
5351
5351
|
R = je;
|
|
5352
5352
|
break;
|
|
@@ -5359,7 +5359,7 @@ function Ql(e = {}) {
|
|
|
5359
5359
|
return R ?? (t ? t.tm(S) || {} : {});
|
|
5360
5360
|
}
|
|
5361
5361
|
function $e(S) {
|
|
5362
|
-
return
|
|
5362
|
+
return u.value[S] || {};
|
|
5363
5363
|
}
|
|
5364
5364
|
function ft(S, R) {
|
|
5365
5365
|
if (s) {
|
|
@@ -5368,24 +5368,24 @@ function Ql(e = {}) {
|
|
|
5368
5368
|
Ee($, Y) && yt($[Y]);
|
|
5369
5369
|
R = $[S];
|
|
5370
5370
|
}
|
|
5371
|
-
|
|
5371
|
+
u.value[S] = R, h.messages = u.value;
|
|
5372
5372
|
}
|
|
5373
5373
|
function gn(S, R) {
|
|
5374
|
-
|
|
5374
|
+
u.value[S] = u.value[S] || {};
|
|
5375
5375
|
const $ = { [S]: R };
|
|
5376
5376
|
if (s)
|
|
5377
5377
|
for (const Y in $)
|
|
5378
5378
|
Ee($, Y) && yt($[Y]);
|
|
5379
|
-
R = $[S], Mt(R,
|
|
5379
|
+
R = $[S], Mt(R, u.value[S]), h.messages = u.value;
|
|
5380
5380
|
}
|
|
5381
5381
|
function l(S) {
|
|
5382
|
-
return
|
|
5382
|
+
return f.value[S] || {};
|
|
5383
5383
|
}
|
|
5384
5384
|
function d(S, R) {
|
|
5385
|
-
|
|
5385
|
+
f.value[S] = R, h.datetimeFormats = f.value, hs(h, S, R);
|
|
5386
5386
|
}
|
|
5387
5387
|
function A(S, R) {
|
|
5388
|
-
|
|
5388
|
+
f.value[S] = re(f.value[S] || {}, R), h.datetimeFormats = f.value, hs(h, S, R);
|
|
5389
5389
|
}
|
|
5390
5390
|
function w(S) {
|
|
5391
5391
|
return p.value[S] || {};
|
|
@@ -5412,7 +5412,7 @@ function Ql(e = {}) {
|
|
|
5412
5412
|
i = S, S && t && (a.value = t.locale.value, c.value = t.fallbackLocale.value, pt(h, a.value, c.value));
|
|
5413
5413
|
},
|
|
5414
5414
|
get availableLocales() {
|
|
5415
|
-
return Object.keys(
|
|
5415
|
+
return Object.keys(u.value).sort();
|
|
5416
5416
|
},
|
|
5417
5417
|
messages: k,
|
|
5418
5418
|
get modifiers() {
|
|
@@ -5425,10 +5425,10 @@ function Ql(e = {}) {
|
|
|
5425
5425
|
return r;
|
|
5426
5426
|
},
|
|
5427
5427
|
get missingWarn() {
|
|
5428
|
-
return
|
|
5428
|
+
return m;
|
|
5429
5429
|
},
|
|
5430
5430
|
set missingWarn(S) {
|
|
5431
|
-
|
|
5431
|
+
m = S, h.missingWarn = m;
|
|
5432
5432
|
},
|
|
5433
5433
|
get fallbackWarn() {
|
|
5434
5434
|
return L;
|
|
@@ -5437,10 +5437,10 @@ function Ql(e = {}) {
|
|
|
5437
5437
|
L = S, h.fallbackWarn = L;
|
|
5438
5438
|
},
|
|
5439
5439
|
get fallbackRoot() {
|
|
5440
|
-
return
|
|
5440
|
+
return E;
|
|
5441
5441
|
},
|
|
5442
5442
|
set fallbackRoot(S) {
|
|
5443
|
-
|
|
5443
|
+
E = S;
|
|
5444
5444
|
},
|
|
5445
5445
|
get fallbackFormat() {
|
|
5446
5446
|
return b;
|
|
@@ -5527,15 +5527,15 @@ function xo(e, t, n, r) {
|
|
|
5527
5527
|
return () => {
|
|
5528
5528
|
const i = { part: !0 };
|
|
5529
5529
|
let a = H();
|
|
5530
|
-
e.locale && (i.locale = e.locale), D(e.format) ? i.key = e.format : B(e.format) && (D(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((
|
|
5530
|
+
e.locale && (i.locale = e.locale), D(e.format) ? i.key = e.format : B(e.format) && (D(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((m, L) => n.includes(L) ? re(H(), m, { [L]: e.format[L] }) : m, H()));
|
|
5531
5531
|
const c = r(e.value, i, a);
|
|
5532
|
-
let
|
|
5533
|
-
J(c) ?
|
|
5534
|
-
const
|
|
5535
|
-
return Zl(b) && (b[0].key = `${
|
|
5536
|
-
}) : D(c) && (
|
|
5537
|
-
const
|
|
5538
|
-
return Ps(p,
|
|
5532
|
+
let u = [i.key];
|
|
5533
|
+
J(c) ? u = c.map((m, L) => {
|
|
5534
|
+
const E = s[m.type], b = E ? E({ [m.type]: m.value, index: L, parts: c }) : [m.value];
|
|
5535
|
+
return Zl(b) && (b[0].key = `${m.type}-${L}`), b;
|
|
5536
|
+
}) : D(c) && (u = [c]);
|
|
5537
|
+
const f = re(H(), o), p = D(e.tag) || B(e.tag) ? e.tag : Mo();
|
|
5538
|
+
return Ps(p, f, u);
|
|
5539
5539
|
};
|
|
5540
5540
|
}
|
|
5541
5541
|
re({
|
|
@@ -5637,7 +5637,7 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
process.env.NODE_ENV;
|
|
5639
5639
|
let Kt = null;
|
|
5640
|
-
function
|
|
5640
|
+
function Rf(e) {
|
|
5641
5641
|
if (Kt !== null) {
|
|
5642
5642
|
console.warn(
|
|
5643
5643
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
@@ -5659,8 +5659,8 @@ function cu(e) {
|
|
|
5659
5659
|
__i18n: au().global
|
|
5660
5660
|
});
|
|
5661
5661
|
function s(...c) {
|
|
5662
|
-
const [
|
|
5663
|
-
return t(typeof
|
|
5662
|
+
const [u, f, p] = c;
|
|
5663
|
+
return t(typeof f == "number" ? `${e}.${u}` : `${e}.${u}`, f, p);
|
|
5664
5664
|
}
|
|
5665
5665
|
function o(c) {
|
|
5666
5666
|
return n(`${e}.${c}`);
|
|
@@ -5668,8 +5668,8 @@ function cu(e) {
|
|
|
5668
5668
|
function i(c) {
|
|
5669
5669
|
return r(`${e}.${c}`);
|
|
5670
5670
|
}
|
|
5671
|
-
function a(c, ...
|
|
5672
|
-
return o(
|
|
5671
|
+
function a(c, ...u) {
|
|
5672
|
+
return o(u[0]) ? s(...u) : c;
|
|
5673
5673
|
}
|
|
5674
5674
|
return {
|
|
5675
5675
|
t: s,
|
|
@@ -5685,48 +5685,52 @@ const lu = /* @__PURE__ */ new Set([
|
|
|
5685
5685
|
function uu(e) {
|
|
5686
5686
|
return Q.isAxiosError(e) && e.response?.status != null && lu.has(e.response.status);
|
|
5687
5687
|
}
|
|
5688
|
-
function fu(e
|
|
5689
|
-
const { t
|
|
5690
|
-
async function
|
|
5688
|
+
function fu(e) {
|
|
5689
|
+
const { t } = cu(e);
|
|
5690
|
+
async function n(p, m, L) {
|
|
5691
5691
|
try {
|
|
5692
|
-
return await Za(
|
|
5693
|
-
} catch (
|
|
5694
|
-
return uu(
|
|
5692
|
+
return await Za(p, m, L), !0;
|
|
5693
|
+
} catch (E) {
|
|
5694
|
+
return uu(E) ? E.response.data.error : t("validation.unknownError");
|
|
5695
5695
|
}
|
|
5696
5696
|
}
|
|
5697
|
+
function r(p) {
|
|
5698
|
+
return p == null || p === "" ? t("validation.required") : !0;
|
|
5699
|
+
}
|
|
5697
5700
|
function s(p) {
|
|
5698
|
-
return p
|
|
5701
|
+
return typeof p != "string" || !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(p) ? t("validation.email") : !0;
|
|
5699
5702
|
}
|
|
5700
|
-
function o(p,
|
|
5701
|
-
return p != null && p.length <
|
|
5703
|
+
function o(p, m) {
|
|
5704
|
+
return p != null && p.length < m ? t("validation.minLength", { min: m }) : !0;
|
|
5702
5705
|
}
|
|
5703
|
-
function i(p,
|
|
5704
|
-
return p != null && p.length >
|
|
5706
|
+
function i(p, m) {
|
|
5707
|
+
return p != null && p.length > m ? t("validation.maxLength", { max: m }) : !0;
|
|
5705
5708
|
}
|
|
5706
|
-
function a(p,
|
|
5707
|
-
return
|
|
5709
|
+
function a(p, m) {
|
|
5710
|
+
return m > p ? t("validation.min", { min: m }) : !0;
|
|
5708
5711
|
}
|
|
5709
|
-
function c(p,
|
|
5710
|
-
return p >
|
|
5712
|
+
function c(p, m) {
|
|
5713
|
+
return p > m ? t("validation.max", { max: m }) : !0;
|
|
5711
5714
|
}
|
|
5712
|
-
function
|
|
5713
|
-
return new RegExp(
|
|
5715
|
+
function u(p, m) {
|
|
5716
|
+
return new RegExp(m).test(p) ? !0 : t("validation.pattern", { pattern: m.toString() });
|
|
5714
5717
|
}
|
|
5715
|
-
function
|
|
5716
|
-
return p == null ? !0 : (typeof p == "object" ?
|
|
5718
|
+
function f(p, m) {
|
|
5719
|
+
return p == null ? !0 : (typeof p == "object" ? m.some((E) => Yn(p, E)) : m.some((E) => E != null && String(E) === String(p))) ? t("validation.unique") : !0;
|
|
5717
5720
|
}
|
|
5718
5721
|
return {
|
|
5719
|
-
validateFromApi:
|
|
5720
|
-
required:
|
|
5722
|
+
validateFromApi: n,
|
|
5723
|
+
required: r,
|
|
5724
|
+
email: s,
|
|
5721
5725
|
minLength: o,
|
|
5722
5726
|
maxLength: i,
|
|
5723
5727
|
min: a,
|
|
5724
5728
|
max: c,
|
|
5725
|
-
pattern:
|
|
5726
|
-
unique:
|
|
5729
|
+
pattern: u,
|
|
5730
|
+
unique: f
|
|
5727
5731
|
};
|
|
5728
5732
|
}
|
|
5729
|
-
function
|
|
5733
|
+
function vf() {
|
|
5730
5734
|
function e(t) {
|
|
5731
5735
|
Vs.next({
|
|
5732
5736
|
key: "notify",
|
|
@@ -5735,7 +5739,7 @@ function Rf() {
|
|
|
5735
5739
|
}
|
|
5736
5740
|
return { Notify: e };
|
|
5737
5741
|
}
|
|
5738
|
-
function
|
|
5742
|
+
function Cf() {
|
|
5739
5743
|
function e(n) {
|
|
5740
5744
|
return {
|
|
5741
5745
|
page: (n.page || 1) - 1,
|
|
@@ -5760,25 +5764,27 @@ function du(e, t) {
|
|
|
5760
5764
|
const {
|
|
5761
5765
|
validateFromApi: n,
|
|
5762
5766
|
required: r,
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5767
|
+
email: s,
|
|
5768
|
+
minLength: o,
|
|
5769
|
+
maxLength: i,
|
|
5770
|
+
min: a,
|
|
5771
|
+
max: c,
|
|
5772
|
+
pattern: u,
|
|
5768
5773
|
unique: f
|
|
5769
|
-
} = fu(e
|
|
5774
|
+
} = fu(`${e}.fields.${t}`);
|
|
5770
5775
|
return {
|
|
5771
|
-
validateFromApi: n,
|
|
5776
|
+
validateFromApi: (p) => n(e, t, p),
|
|
5772
5777
|
required: r,
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5778
|
+
email: s,
|
|
5779
|
+
min: (p) => (m) => a(typeof m == "string" ? parseFloat(m) : m, p),
|
|
5780
|
+
max: (p) => (m) => c(typeof m == "string" ? parseFloat(m) : m, p),
|
|
5781
|
+
minLength: (p) => (m) => o(m, p),
|
|
5782
|
+
maxLength: (p) => (m) => i(m, p),
|
|
5783
|
+
pattern: (p) => (m) => u(m, p),
|
|
5784
|
+
unique: (p) => (m) => f(m, p)
|
|
5779
5785
|
};
|
|
5780
5786
|
}
|
|
5781
|
-
function
|
|
5787
|
+
function If(e, t, n) {
|
|
5782
5788
|
if (!t.hasValidations)
|
|
5783
5789
|
return [];
|
|
5784
5790
|
const { required: r, validateFromApi: s, ...o } = du(e, t.name), i = n.filter((a) => t.inputSettings?.[a] != null).map(
|
|
@@ -5793,7 +5799,7 @@ function Cf(e, t, n) {
|
|
|
5793
5799
|
];
|
|
5794
5800
|
}
|
|
5795
5801
|
let Xt = null;
|
|
5796
|
-
function
|
|
5802
|
+
function Pf(e) {
|
|
5797
5803
|
if (Xt !== null) {
|
|
5798
5804
|
console.warn(
|
|
5799
5805
|
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
@@ -6156,7 +6162,7 @@ const mu = [
|
|
|
6156
6162
|
"noErrorFocus",
|
|
6157
6163
|
"noResetFocus",
|
|
6158
6164
|
"greedy"
|
|
6159
|
-
], Vu = ["lines", "overline", "caption", "header"], Rs = {
|
|
6165
|
+
], Vu = ["lines", "overline", "caption", "header"], $u = ["inlineActions", "dense", "rounded", "dark"], Rs = {
|
|
6160
6166
|
"q-avatar": yu,
|
|
6161
6167
|
"q-badge": Nu,
|
|
6162
6168
|
"q-btn": mu,
|
|
@@ -6182,7 +6188,8 @@ const mu = [
|
|
|
6182
6188
|
"q-tabs": _u,
|
|
6183
6189
|
"q-toggle": Lu,
|
|
6184
6190
|
"q-toolbar": gu,
|
|
6185
|
-
"q-toolbar-title": bu
|
|
6191
|
+
"q-toolbar-title": bu,
|
|
6192
|
+
"q-banner": $u
|
|
6186
6193
|
};
|
|
6187
6194
|
function vs(e, t) {
|
|
6188
6195
|
return t.split(".").reduce((n, r) => {
|
|
@@ -6190,7 +6197,7 @@ function vs(e, t) {
|
|
|
6190
6197
|
return n[r];
|
|
6191
6198
|
}, e);
|
|
6192
6199
|
}
|
|
6193
|
-
function
|
|
6200
|
+
function Bu(e, t, n) {
|
|
6194
6201
|
let r = vs(e, `${t}.${n}`);
|
|
6195
6202
|
if (r === void 0 && (r = vs(e, `default.${n}`)), typeof r == "object")
|
|
6196
6203
|
throw new Error(
|
|
@@ -6198,39 +6205,39 @@ function $u(e, t, n) {
|
|
|
6198
6205
|
);
|
|
6199
6206
|
return r;
|
|
6200
6207
|
}
|
|
6201
|
-
function
|
|
6208
|
+
function ju(e) {
|
|
6202
6209
|
if (!(e in Rs))
|
|
6203
6210
|
throw new Error(
|
|
6204
6211
|
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
6205
6212
|
);
|
|
6206
6213
|
return Rs[e];
|
|
6207
6214
|
}
|
|
6208
|
-
function
|
|
6215
|
+
function wf() {
|
|
6209
6216
|
const e = Ue(() => pu());
|
|
6210
6217
|
function t(n, r, s) {
|
|
6211
|
-
const o =
|
|
6218
|
+
const o = ju(r), i = {};
|
|
6212
6219
|
for (const a of o) {
|
|
6213
|
-
const c = s?.[a] ??
|
|
6220
|
+
const c = s?.[a] ?? Bu(e.value, n, `${r}.${String(a)}`);
|
|
6214
6221
|
c !== void 0 && (i[a] = c);
|
|
6215
6222
|
}
|
|
6216
6223
|
return i;
|
|
6217
6224
|
}
|
|
6218
6225
|
return { ui: t };
|
|
6219
6226
|
}
|
|
6220
|
-
async function
|
|
6227
|
+
async function Hu() {
|
|
6221
6228
|
return (await we().get("/metadata/entities")).data;
|
|
6222
6229
|
}
|
|
6223
|
-
async function
|
|
6230
|
+
async function Df(e) {
|
|
6224
6231
|
return (await we().get(
|
|
6225
6232
|
`/metadata/entities/${e}`
|
|
6226
6233
|
)).data;
|
|
6227
6234
|
}
|
|
6228
|
-
async function
|
|
6235
|
+
async function qu() {
|
|
6229
6236
|
return (await we().get(
|
|
6230
6237
|
"/metadata/routes"
|
|
6231
6238
|
)).data;
|
|
6232
6239
|
}
|
|
6233
|
-
const
|
|
6240
|
+
const kf = () => Wu(en()), Wu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
6234
6241
|
state: () => ({
|
|
6235
6242
|
entities: [],
|
|
6236
6243
|
apiEndpoints: [],
|
|
@@ -6261,8 +6268,8 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6261
6268
|
this.loading = !0, this.error = null;
|
|
6262
6269
|
try {
|
|
6263
6270
|
const [e, t] = await Promise.all([
|
|
6264
|
-
|
|
6265
|
-
|
|
6271
|
+
Hu(),
|
|
6272
|
+
qu()
|
|
6266
6273
|
]);
|
|
6267
6274
|
this.entities = e, this.apiEndpoints = t;
|
|
6268
6275
|
} catch (e) {
|
|
@@ -6272,7 +6279,7 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6272
6279
|
}
|
|
6273
6280
|
}
|
|
6274
6281
|
}
|
|
6275
|
-
}),
|
|
6282
|
+
}), Ff = () => Gu(en()), Gu = /* @__PURE__ */ Zt("LinidUiStore", {
|
|
6276
6283
|
state: () => ({
|
|
6277
6284
|
mainNavigationItems: []
|
|
6278
6285
|
}),
|
|
@@ -6285,7 +6292,7 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6285
6292
|
this.mainNavigationItems.push(...e);
|
|
6286
6293
|
}
|
|
6287
6294
|
}
|
|
6288
|
-
}),
|
|
6295
|
+
}), Uf = () => Yu(en()), Yu = /* @__PURE__ */ Zt("LinidUserStore", {
|
|
6289
6296
|
/**
|
|
6290
6297
|
* State properties of the user store.
|
|
6291
6298
|
* @returns The initial state of the user store.
|
|
@@ -6313,7 +6320,7 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6313
6320
|
}
|
|
6314
6321
|
});
|
|
6315
6322
|
let Jt = null;
|
|
6316
|
-
function
|
|
6323
|
+
function Mf(e) {
|
|
6317
6324
|
if (Jt !== null) {
|
|
6318
6325
|
console.warn(
|
|
6319
6326
|
"[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored."
|
|
@@ -6322,15 +6329,15 @@ function Uf(e) {
|
|
|
6322
6329
|
}
|
|
6323
6330
|
Jt = e;
|
|
6324
6331
|
}
|
|
6325
|
-
function
|
|
6332
|
+
function xf() {
|
|
6326
6333
|
if (Jt === null)
|
|
6327
6334
|
throw new Error(
|
|
6328
6335
|
"[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first."
|
|
6329
6336
|
);
|
|
6330
6337
|
return Jt;
|
|
6331
6338
|
}
|
|
6332
|
-
var
|
|
6333
|
-
class
|
|
6339
|
+
var Ku = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Ku || {});
|
|
6340
|
+
class Vf {
|
|
6334
6341
|
/**
|
|
6335
6342
|
* Unique identifier for the module.
|
|
6336
6343
|
*
|
|
@@ -6434,49 +6441,49 @@ class xf {
|
|
|
6434
6441
|
}
|
|
6435
6442
|
}
|
|
6436
6443
|
export {
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6444
|
+
Vf as BasicRemoteModule,
|
|
6445
|
+
zu as LinidZoneRenderer,
|
|
6446
|
+
Ku as ModuleLifecyclePhase,
|
|
6440
6447
|
lo as deepEqual,
|
|
6441
6448
|
Yn as deepEqualUnordered,
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
+
Af as deleteEntityById,
|
|
6450
|
+
Lf as fromDot,
|
|
6451
|
+
qu as getApiEndpointsConfiguration,
|
|
6452
|
+
Sf as getEntities,
|
|
6453
|
+
Hu as getEntitiesConfiguration,
|
|
6454
|
+
Tf as getEntityById,
|
|
6455
|
+
Df as getEntityConfiguration,
|
|
6449
6456
|
we as getHttpClient,
|
|
6450
6457
|
au as getI18nInstance,
|
|
6451
6458
|
ni as getModuleFederation,
|
|
6452
6459
|
at as getModuleHostConfiguration,
|
|
6453
|
-
|
|
6460
|
+
xf as getNunjucksEnv,
|
|
6454
6461
|
en as getPiniaStore,
|
|
6455
6462
|
pu as getUiDesign,
|
|
6456
6463
|
rt as isObject,
|
|
6457
6464
|
ri as loadAsyncComponent,
|
|
6458
6465
|
ec as merge,
|
|
6459
|
-
|
|
6466
|
+
yf as registerModuleHostConfiguration,
|
|
6460
6467
|
tc as renameKeys,
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
+
Nf as saveEntity,
|
|
6469
|
+
bf as setHttpClient,
|
|
6470
|
+
Rf as setI18nInstance,
|
|
6471
|
+
Ju as setModuleFederation,
|
|
6472
|
+
Mf as setNunjucksEnv,
|
|
6473
|
+
Qu as setPiniaStore,
|
|
6474
|
+
Pf as setUiDesign,
|
|
6468
6475
|
Vs as uiEventSubject,
|
|
6469
|
-
|
|
6470
|
-
|
|
6476
|
+
Of as updateEntity,
|
|
6477
|
+
Zu as useDialog,
|
|
6471
6478
|
fu as useFieldValidation,
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6479
|
+
kf as useLinidConfigurationStore,
|
|
6480
|
+
Ff as useLinidUiStore,
|
|
6481
|
+
Uf as useLinidUserStore,
|
|
6475
6482
|
ai as useLinidZoneStore,
|
|
6476
|
-
|
|
6477
|
-
|
|
6483
|
+
vf as useNotify,
|
|
6484
|
+
Cf as usePagination,
|
|
6478
6485
|
du as useQuasarFieldValidation,
|
|
6479
|
-
|
|
6486
|
+
If as useQuasarRules,
|
|
6480
6487
|
cu as useScopedI18n,
|
|
6481
|
-
|
|
6488
|
+
wf as useUiDesign
|
|
6482
6489
|
};
|