vue-stack-tabs 0.1.14 → 0.1.15
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/vue-stack-tabs.es.js +820 -827
- package/dist/vue-stack-tabs.umd.js +7 -7
- package/package.json +1 -1
- package/src/lib/StackTabs.vue +124 -136
- package/src/lib/assets/style/transition.scss +40 -40
- package/src/lib/hooks/useTabpanel.tsx +516 -516
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ra = Object.defineProperty;
|
|
2
2
|
var Ma = (e, t, n) => t in e ? Ra(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var hr = (e, t, n) => (Ma(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as de, h as
|
|
5
|
-
import { useRouter as
|
|
4
|
+
import { defineComponent as de, h as Hn, getCurrentInstance as it, effectScope as Da, inject as Gn, onMounted as Gt, onUnmounted as Ot, shallowRef as Os, ref as ee, computed as ue, onBeforeMount as ys, watch as lt, Fragment as yt, isRef as Fa, createVNode as ie, Text as xa, unref as x, onActivated as Ua, resolveComponent as Ls, openBlock as K, createElementBlock as ae, createElementVNode as Te, normalizeClass as Ue, withModifiers as ct, toDisplayString as Is, reactive as rn, normalizeStyle as Ut, createCommentVNode as Ke, renderList as jn, createBlock as we, nextTick as $a, renderSlot as $e, withDirectives as Yn, vShow as Xn, withCtx as Oe, TransitionGroup as ks, mergeProps as Va, Transition as zn, provide as pr, KeepAlive as Wa, Suspense as Ba, resolveDynamicComponent as Ss, createTextVNode as Ha, render as As, createStaticVNode as Kn, onBeforeUnmount as Ga } from "vue";
|
|
5
|
+
import { useRouter as qn, useRoute as ja } from "vue-router";
|
|
6
6
|
/*!
|
|
7
7
|
* shared v9.10.1
|
|
8
8
|
* (c) 2024 kazuya kawaguchi
|
|
@@ -23,7 +23,7 @@ const Ya = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
23
23
|
function Zn(e, ...t) {
|
|
24
24
|
return t.length === 1 && j(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ya, (n, s) => t.hasOwnProperty(s) ? t[s] : "");
|
|
25
25
|
}
|
|
26
|
-
const Pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Xa = (e, t, n) => za({ l: e, k: t, s: n }), za = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), se = (e) => typeof e == "number" && isFinite(e), Ka = (e) => ws(e) === "[object Date]",
|
|
26
|
+
const Pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Xa = (e, t, n) => za({ l: e, k: t, s: n }), za = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), se = (e) => typeof e == "number" && isFinite(e), Ka = (e) => ws(e) === "[object Date]", qe = (e) => ws(e) === "[object RegExp]", fn = (e) => W(e) && Object.keys(e).length === 0, fe = Object.assign;
|
|
27
27
|
let gr;
|
|
28
28
|
const xe = () => gr || (gr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
29
29
|
function br(e) {
|
|
@@ -118,7 +118,7 @@ function tn(e, t) {
|
|
|
118
118
|
function no(e, t, n) {
|
|
119
119
|
return { line: e, column: t, offset: n };
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function In(e, t, n) {
|
|
122
122
|
const s = { start: e, end: t };
|
|
123
123
|
return n != null && (s.source = n), s;
|
|
124
124
|
}
|
|
@@ -189,23 +189,23 @@ const lo = /<\/?[\w\s="/.':;#-\/]+>/, co = (e) => lo.test(e), Me = " ", uo = "\r
|
|
|
189
189
|
function _o(e) {
|
|
190
190
|
const t = e;
|
|
191
191
|
let n = 0, s = 1, a = 1, r = 0;
|
|
192
|
-
const o = (
|
|
193
|
-
function
|
|
192
|
+
const o = (y) => t[y] === uo && t[y + 1] === _e, i = (y) => t[y] === _e, l = (y) => t[y] === mo, c = (y) => t[y] === fo, h = (y) => o(y) || i(y) || l(y) || c(y), m = () => n, f = () => s, E = () => a, T = () => r, O = (y) => o(y) || l(y) || c(y) ? _e : t[y], S = () => O(n), d = () => O(n + r);
|
|
193
|
+
function p() {
|
|
194
194
|
return r = 0, h(n) && (s++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
195
195
|
}
|
|
196
196
|
function v() {
|
|
197
197
|
return o(n + r) && r++, r++, t[n + r];
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function b() {
|
|
200
200
|
n = 0, s = 1, a = 1, r = 0;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
r =
|
|
202
|
+
function I(y = 0) {
|
|
203
|
+
r = y;
|
|
204
204
|
}
|
|
205
205
|
function g() {
|
|
206
|
-
const
|
|
207
|
-
for (;
|
|
208
|
-
|
|
206
|
+
const y = n + r;
|
|
207
|
+
for (; y !== n; )
|
|
208
|
+
p();
|
|
209
209
|
r = 0;
|
|
210
210
|
}
|
|
211
211
|
return {
|
|
@@ -213,13 +213,13 @@ function _o(e) {
|
|
|
213
213
|
line: f,
|
|
214
214
|
column: E,
|
|
215
215
|
peekOffset: T,
|
|
216
|
-
charAt:
|
|
217
|
-
currentChar:
|
|
216
|
+
charAt: O,
|
|
217
|
+
currentChar: S,
|
|
218
218
|
currentPeek: d,
|
|
219
|
-
next:
|
|
219
|
+
next: p,
|
|
220
220
|
peek: v,
|
|
221
|
-
reset:
|
|
222
|
-
resetPeek:
|
|
221
|
+
reset: b,
|
|
222
|
+
resetPeek: I,
|
|
223
223
|
skipToPeek: g
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -238,20 +238,20 @@ function go(e, t = {}) {
|
|
|
238
238
|
inLinked: !1,
|
|
239
239
|
text: ""
|
|
240
240
|
}, c = () => l, { onError: h } = t;
|
|
241
|
-
function m(_, u,
|
|
241
|
+
function m(_, u, L, ...F) {
|
|
242
242
|
const $ = c();
|
|
243
|
-
if (u.column +=
|
|
244
|
-
const Y = n ?
|
|
243
|
+
if (u.column += L, u.offset += L, h) {
|
|
244
|
+
const Y = n ? In($.startLoc, u) : null, Ie = Lt(_, Y, {
|
|
245
245
|
domain: po,
|
|
246
246
|
args: F
|
|
247
247
|
});
|
|
248
248
|
h(Ie);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
function f(_, u,
|
|
251
|
+
function f(_, u, L) {
|
|
252
252
|
_.endLoc = r(), _.currentType = u;
|
|
253
253
|
const F = { type: u };
|
|
254
|
-
return n && (F.loc =
|
|
254
|
+
return n && (F.loc = In(_.startLoc, _.endLoc)), L != null && (F.value = L), F;
|
|
255
255
|
}
|
|
256
256
|
const E = (_) => f(
|
|
257
257
|
_,
|
|
@@ -261,14 +261,14 @@ function go(e, t = {}) {
|
|
|
261
261
|
function T(_, u) {
|
|
262
262
|
return _.currentChar() === u ? (_.next(), u) : (m(U.EXPECTED_TOKEN, r(), 0, u), "");
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function O(_) {
|
|
265
265
|
let u = "";
|
|
266
266
|
for (; _.currentPeek() === Me || _.currentPeek() === _e; )
|
|
267
267
|
u += _.currentPeek(), _.peek();
|
|
268
268
|
return u;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
const u =
|
|
270
|
+
function S(_) {
|
|
271
|
+
const u = O(_);
|
|
272
272
|
return _.skipToPeek(), u;
|
|
273
273
|
}
|
|
274
274
|
function d(_) {
|
|
@@ -279,63 +279,63 @@ function go(e, t = {}) {
|
|
|
279
279
|
u >= 65 && u <= 90 || // A-Z
|
|
280
280
|
u === 95;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function p(_) {
|
|
283
283
|
if (_ === je)
|
|
284
284
|
return !1;
|
|
285
285
|
const u = _.charCodeAt(0);
|
|
286
286
|
return u >= 48 && u <= 57;
|
|
287
287
|
}
|
|
288
288
|
function v(_, u) {
|
|
289
|
-
const { currentType:
|
|
290
|
-
if (
|
|
289
|
+
const { currentType: L } = u;
|
|
290
|
+
if (L !== 2)
|
|
291
291
|
return !1;
|
|
292
|
-
|
|
292
|
+
O(_);
|
|
293
293
|
const F = d(_.currentPeek());
|
|
294
294
|
return _.resetPeek(), F;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
const { currentType:
|
|
298
|
-
if (
|
|
296
|
+
function b(_, u) {
|
|
297
|
+
const { currentType: L } = u;
|
|
298
|
+
if (L !== 2)
|
|
299
299
|
return !1;
|
|
300
|
-
|
|
301
|
-
const F = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), $ =
|
|
300
|
+
O(_);
|
|
301
|
+
const F = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), $ = p(F);
|
|
302
302
|
return _.resetPeek(), $;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
const { currentType:
|
|
306
|
-
if (
|
|
304
|
+
function I(_, u) {
|
|
305
|
+
const { currentType: L } = u;
|
|
306
|
+
if (L !== 2)
|
|
307
307
|
return !1;
|
|
308
|
-
|
|
308
|
+
O(_);
|
|
309
309
|
const F = _.currentPeek() === Nr;
|
|
310
310
|
return _.resetPeek(), F;
|
|
311
311
|
}
|
|
312
312
|
function g(_, u) {
|
|
313
|
-
const { currentType:
|
|
314
|
-
if (
|
|
313
|
+
const { currentType: L } = u;
|
|
314
|
+
if (L !== 8)
|
|
315
315
|
return !1;
|
|
316
|
-
|
|
316
|
+
O(_);
|
|
317
317
|
const F = _.currentPeek() === ".";
|
|
318
318
|
return _.resetPeek(), F;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const { currentType:
|
|
322
|
-
if (
|
|
320
|
+
function y(_, u) {
|
|
321
|
+
const { currentType: L } = u;
|
|
322
|
+
if (L !== 9)
|
|
323
323
|
return !1;
|
|
324
|
-
|
|
324
|
+
O(_);
|
|
325
325
|
const F = d(_.currentPeek());
|
|
326
326
|
return _.resetPeek(), F;
|
|
327
327
|
}
|
|
328
328
|
function A(_, u) {
|
|
329
|
-
const { currentType:
|
|
330
|
-
if (!(
|
|
329
|
+
const { currentType: L } = u;
|
|
330
|
+
if (!(L === 8 || L === 12))
|
|
331
331
|
return !1;
|
|
332
|
-
|
|
332
|
+
O(_);
|
|
333
333
|
const F = _.currentPeek() === ":";
|
|
334
334
|
return _.resetPeek(), F;
|
|
335
335
|
}
|
|
336
336
|
function w(_, u) {
|
|
337
|
-
const { currentType:
|
|
338
|
-
if (
|
|
337
|
+
const { currentType: L } = u;
|
|
338
|
+
if (L !== 10)
|
|
339
339
|
return !1;
|
|
340
340
|
const F = () => {
|
|
341
341
|
const Y = _.currentPeek();
|
|
@@ -344,31 +344,31 @@ function go(e, t = {}) {
|
|
|
344
344
|
return _.resetPeek(), $;
|
|
345
345
|
}
|
|
346
346
|
function z(_) {
|
|
347
|
-
|
|
347
|
+
O(_);
|
|
348
348
|
const u = _.currentPeek() === "|";
|
|
349
349
|
return _.resetPeek(), u;
|
|
350
350
|
}
|
|
351
351
|
function M(_) {
|
|
352
|
-
const u =
|
|
352
|
+
const u = O(_), L = _.currentPeek() === "%" && _.peek() === "{";
|
|
353
353
|
return _.resetPeek(), {
|
|
354
|
-
isModulo:
|
|
354
|
+
isModulo: L,
|
|
355
355
|
hasSpace: u.length > 0
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
function N(_, u = !0) {
|
|
359
|
-
const
|
|
359
|
+
const L = ($ = !1, Y = "", Ie = !1) => {
|
|
360
360
|
const Re = _.currentPeek();
|
|
361
|
-
return Re === "{" ? Y === "%" ? !1 : $ : Re === "@" || !Re ? Y === "%" ? !0 : $ : Re === "%" ? (_.peek(),
|
|
362
|
-
}, F =
|
|
361
|
+
return Re === "{" ? Y === "%" ? !1 : $ : Re === "@" || !Re ? Y === "%" ? !0 : $ : Re === "%" ? (_.peek(), L($, "%", !0)) : Re === "|" ? Y === "%" || Ie ? !0 : !(Y === Me || Y === _e) : Re === Me ? (_.peek(), L(!0, Me, Ie)) : Re === _e ? (_.peek(), L(!0, _e, Ie)) : !0;
|
|
362
|
+
}, F = L();
|
|
363
363
|
return u && _.resetPeek(), F;
|
|
364
364
|
}
|
|
365
365
|
function C(_, u) {
|
|
366
|
-
const
|
|
367
|
-
return
|
|
366
|
+
const L = _.currentChar();
|
|
367
|
+
return L === je ? je : u(L) ? (_.next(), L) : null;
|
|
368
368
|
}
|
|
369
369
|
function R(_) {
|
|
370
|
-
return C(_, (
|
|
371
|
-
const F =
|
|
370
|
+
return C(_, (L) => {
|
|
371
|
+
const F = L.charCodeAt(0);
|
|
372
372
|
return F >= 97 && F <= 122 || // a-z
|
|
373
373
|
F >= 65 && F <= 90 || // A-Z
|
|
374
374
|
F >= 48 && F <= 57 || // 0-9
|
|
@@ -377,74 +377,74 @@ function go(e, t = {}) {
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
function V(_) {
|
|
380
|
-
return C(_, (
|
|
381
|
-
const F =
|
|
380
|
+
return C(_, (L) => {
|
|
381
|
+
const F = L.charCodeAt(0);
|
|
382
382
|
return F >= 48 && F <= 57;
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
function Z(_) {
|
|
386
|
-
return C(_, (
|
|
387
|
-
const F =
|
|
386
|
+
return C(_, (L) => {
|
|
387
|
+
const F = L.charCodeAt(0);
|
|
388
388
|
return F >= 48 && F <= 57 || // 0-9
|
|
389
389
|
F >= 65 && F <= 70 || // A-F
|
|
390
390
|
F >= 97 && F <= 102;
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
function te(_) {
|
|
394
|
-
let u = "",
|
|
394
|
+
let u = "", L = "";
|
|
395
395
|
for (; u = V(_); )
|
|
396
|
-
|
|
397
|
-
return
|
|
396
|
+
L += u;
|
|
397
|
+
return L;
|
|
398
398
|
}
|
|
399
399
|
function ve(_) {
|
|
400
|
-
|
|
400
|
+
S(_);
|
|
401
401
|
const u = _.currentChar();
|
|
402
402
|
return u !== "%" && m(U.EXPECTED_TOKEN, r(), 0, u), _.next(), "%";
|
|
403
403
|
}
|
|
404
404
|
function me(_) {
|
|
405
405
|
let u = "";
|
|
406
406
|
for (; ; ) {
|
|
407
|
-
const
|
|
408
|
-
if (
|
|
407
|
+
const L = _.currentChar();
|
|
408
|
+
if (L === "{" || L === "}" || L === "@" || L === "|" || !L)
|
|
409
409
|
break;
|
|
410
|
-
if (
|
|
410
|
+
if (L === "%")
|
|
411
411
|
if (N(_))
|
|
412
|
-
u +=
|
|
412
|
+
u += L, _.next();
|
|
413
413
|
else
|
|
414
414
|
break;
|
|
415
|
-
else if (
|
|
415
|
+
else if (L === Me || L === _e)
|
|
416
416
|
if (N(_))
|
|
417
|
-
u +=
|
|
417
|
+
u += L, _.next();
|
|
418
418
|
else {
|
|
419
419
|
if (z(_))
|
|
420
420
|
break;
|
|
421
|
-
u +=
|
|
421
|
+
u += L, _.next();
|
|
422
422
|
}
|
|
423
423
|
else
|
|
424
|
-
u +=
|
|
424
|
+
u += L, _.next();
|
|
425
425
|
}
|
|
426
426
|
return u;
|
|
427
427
|
}
|
|
428
428
|
function We(_) {
|
|
429
|
-
|
|
430
|
-
let u = "",
|
|
429
|
+
S(_);
|
|
430
|
+
let u = "", L = "";
|
|
431
431
|
for (; u = R(_); )
|
|
432
|
-
|
|
433
|
-
return _.currentChar() === je && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0),
|
|
432
|
+
L += u;
|
|
433
|
+
return _.currentChar() === je && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), L;
|
|
434
434
|
}
|
|
435
435
|
function Be(_) {
|
|
436
|
-
|
|
436
|
+
S(_);
|
|
437
437
|
let u = "";
|
|
438
438
|
return _.currentChar() === "-" ? (_.next(), u += `-${te(_)}`) : u += te(_), _.currentChar() === je && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), u;
|
|
439
439
|
}
|
|
440
440
|
function Ne(_) {
|
|
441
|
-
|
|
442
|
-
let u = "",
|
|
441
|
+
S(_), T(_, "'");
|
|
442
|
+
let u = "", L = "";
|
|
443
443
|
const F = (Y) => Y !== Nr && Y !== _e;
|
|
444
444
|
for (; u = C(_, F); )
|
|
445
|
-
u === "\\" ?
|
|
445
|
+
u === "\\" ? L += mt(_) : L += u;
|
|
446
446
|
const $ = _.currentChar();
|
|
447
|
-
return $ === _e || $ === je ? (m(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), $ === _e && (_.next(), T(_, "'")),
|
|
447
|
+
return $ === _e || $ === je ? (m(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), $ === _e && (_.next(), T(_, "'")), L) : (T(_, "'"), L);
|
|
448
448
|
}
|
|
449
449
|
function mt(_) {
|
|
450
450
|
const u = _.currentChar();
|
|
@@ -460,10 +460,10 @@ function go(e, t = {}) {
|
|
|
460
460
|
return m(U.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, u), "";
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function _t(_, u,
|
|
463
|
+
function _t(_, u, L) {
|
|
464
464
|
T(_, u);
|
|
465
465
|
let F = "";
|
|
466
|
-
for (let $ = 0; $ <
|
|
466
|
+
for (let $ = 0; $ < L; $++) {
|
|
467
467
|
const Y = Z(_);
|
|
468
468
|
if (!Y) {
|
|
469
469
|
m(U.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${u}${F}${_.currentChar()}`);
|
|
@@ -474,77 +474,77 @@ function go(e, t = {}) {
|
|
|
474
474
|
return `\\${u}${F}`;
|
|
475
475
|
}
|
|
476
476
|
function It(_) {
|
|
477
|
-
|
|
478
|
-
let u = "",
|
|
477
|
+
S(_);
|
|
478
|
+
let u = "", L = "";
|
|
479
479
|
const F = ($) => $ !== "{" && $ !== "}" && $ !== Me && $ !== _e;
|
|
480
480
|
for (; u = C(_, F); )
|
|
481
|
-
|
|
482
|
-
return
|
|
481
|
+
L += u;
|
|
482
|
+
return L;
|
|
483
483
|
}
|
|
484
484
|
function kt(_) {
|
|
485
|
-
let u = "",
|
|
485
|
+
let u = "", L = "";
|
|
486
486
|
for (; u = R(_); )
|
|
487
|
-
|
|
488
|
-
return
|
|
487
|
+
L += u;
|
|
488
|
+
return L;
|
|
489
489
|
}
|
|
490
490
|
function St(_) {
|
|
491
|
-
const u = (
|
|
491
|
+
const u = (L = !1, F) => {
|
|
492
492
|
const $ = _.currentChar();
|
|
493
|
-
return $ === "{" || $ === "%" || $ === "@" || $ === "|" || $ === "(" || $ === ")" || !$ || $ === Me ? F : $ === _e || $ === ho ? (F += $, _.next(), u(
|
|
493
|
+
return $ === "{" || $ === "%" || $ === "@" || $ === "|" || $ === "(" || $ === ")" || !$ || $ === Me ? F : $ === _e || $ === ho ? (F += $, _.next(), u(L, F)) : (F += $, _.next(), u(!0, F));
|
|
494
494
|
};
|
|
495
495
|
return u(!1, "");
|
|
496
496
|
}
|
|
497
497
|
function ht(_) {
|
|
498
|
-
|
|
498
|
+
S(_);
|
|
499
499
|
const u = T(
|
|
500
500
|
_,
|
|
501
501
|
"|"
|
|
502
502
|
/* TokenChars.Pipe */
|
|
503
503
|
);
|
|
504
|
-
return
|
|
504
|
+
return S(_), u;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
let
|
|
506
|
+
function Qe(_, u) {
|
|
507
|
+
let L = null;
|
|
508
508
|
switch (_.currentChar()) {
|
|
509
509
|
case "{":
|
|
510
|
-
return u.braceNest >= 1 && m(U.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), _.next(),
|
|
510
|
+
return u.braceNest >= 1 && m(U.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), _.next(), L = f(
|
|
511
511
|
u,
|
|
512
512
|
2,
|
|
513
513
|
"{"
|
|
514
514
|
/* TokenChars.BraceLeft */
|
|
515
|
-
),
|
|
515
|
+
), S(_), u.braceNest++, L;
|
|
516
516
|
case "}":
|
|
517
|
-
return u.braceNest > 0 && u.currentType === 2 && m(U.EMPTY_PLACEHOLDER, r(), 0), _.next(),
|
|
517
|
+
return u.braceNest > 0 && u.currentType === 2 && m(U.EMPTY_PLACEHOLDER, r(), 0), _.next(), L = f(
|
|
518
518
|
u,
|
|
519
519
|
3,
|
|
520
520
|
"}"
|
|
521
521
|
/* TokenChars.BraceRight */
|
|
522
|
-
), u.braceNest--, u.braceNest > 0 &&
|
|
522
|
+
), u.braceNest--, u.braceNest > 0 && S(_), u.inLinked && u.braceNest === 0 && (u.inLinked = !1), L;
|
|
523
523
|
case "@":
|
|
524
|
-
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0),
|
|
524
|
+
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), L = He(_, u) || E(u), u.braceNest = 0, L;
|
|
525
525
|
default:
|
|
526
526
|
let $ = !0, Y = !0, Ie = !0;
|
|
527
527
|
if (z(_))
|
|
528
|
-
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0),
|
|
528
|
+
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), L = f(u, 1, ht(_)), u.braceNest = 0, u.inLinked = !1, L;
|
|
529
529
|
if (u.braceNest > 0 && (u.currentType === 5 || u.currentType === 6 || u.currentType === 7))
|
|
530
|
-
return m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), u.braceNest = 0,
|
|
530
|
+
return m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), u.braceNest = 0, et(_, u);
|
|
531
531
|
if ($ = v(_, u))
|
|
532
|
-
return
|
|
533
|
-
if (Y =
|
|
534
|
-
return
|
|
535
|
-
if (Ie =
|
|
536
|
-
return
|
|
532
|
+
return L = f(u, 5, We(_)), S(_), L;
|
|
533
|
+
if (Y = b(_, u))
|
|
534
|
+
return L = f(u, 6, Be(_)), S(_), L;
|
|
535
|
+
if (Ie = I(_, u))
|
|
536
|
+
return L = f(u, 7, Ne(_)), S(_), L;
|
|
537
537
|
if (!$ && !Y && !Ie)
|
|
538
|
-
return
|
|
538
|
+
return L = f(u, 13, It(_)), m(U.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, L.value), S(_), L;
|
|
539
539
|
break;
|
|
540
540
|
}
|
|
541
|
-
return
|
|
541
|
+
return L;
|
|
542
542
|
}
|
|
543
543
|
function He(_, u) {
|
|
544
|
-
const { currentType:
|
|
544
|
+
const { currentType: L } = u;
|
|
545
545
|
let F = null;
|
|
546
546
|
const $ = _.currentChar();
|
|
547
|
-
switch ((
|
|
547
|
+
switch ((L === 8 || L === 9 || L === 12 || L === 10) && ($ === _e || $ === Me) && m(U.INVALID_LINKED_FORMAT, r(), 0), $) {
|
|
548
548
|
case "@":
|
|
549
549
|
return _.next(), F = f(
|
|
550
550
|
u,
|
|
@@ -553,35 +553,35 @@ function go(e, t = {}) {
|
|
|
553
553
|
/* TokenChars.LinkedAlias */
|
|
554
554
|
), u.inLinked = !0, F;
|
|
555
555
|
case ".":
|
|
556
|
-
return
|
|
556
|
+
return S(_), _.next(), f(
|
|
557
557
|
u,
|
|
558
558
|
9,
|
|
559
559
|
"."
|
|
560
560
|
/* TokenChars.LinkedDot */
|
|
561
561
|
);
|
|
562
562
|
case ":":
|
|
563
|
-
return
|
|
563
|
+
return S(_), _.next(), f(
|
|
564
564
|
u,
|
|
565
565
|
10,
|
|
566
566
|
":"
|
|
567
567
|
/* TokenChars.LinkedDelimiter */
|
|
568
568
|
);
|
|
569
569
|
default:
|
|
570
|
-
return z(_) ? (F = f(u, 1, ht(_)), u.braceNest = 0, u.inLinked = !1, F) : g(_, u) || A(_, u) ? (
|
|
570
|
+
return z(_) ? (F = f(u, 1, ht(_)), u.braceNest = 0, u.inLinked = !1, F) : g(_, u) || A(_, u) ? (S(_), He(_, u)) : y(_, u) ? (S(_), f(u, 12, kt(_))) : w(_, u) ? (S(_), $ === "{" ? Qe(_, u) || F : f(u, 11, St(_))) : (L === 8 && m(U.INVALID_LINKED_FORMAT, r(), 0), u.braceNest = 0, u.inLinked = !1, et(_, u));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
let
|
|
573
|
+
function et(_, u) {
|
|
574
|
+
let L = {
|
|
575
575
|
type: 14
|
|
576
576
|
/* TokenTypes.EOF */
|
|
577
577
|
};
|
|
578
578
|
if (u.braceNest > 0)
|
|
579
|
-
return
|
|
579
|
+
return Qe(_, u) || E(u);
|
|
580
580
|
if (u.inLinked)
|
|
581
581
|
return He(_, u) || E(u);
|
|
582
582
|
switch (_.currentChar()) {
|
|
583
583
|
case "{":
|
|
584
|
-
return
|
|
584
|
+
return Qe(_, u) || E(u);
|
|
585
585
|
case "}":
|
|
586
586
|
return m(U.UNBALANCED_CLOSING_BRACE, r(), 0), _.next(), f(
|
|
587
587
|
u,
|
|
@@ -593,7 +593,7 @@ function go(e, t = {}) {
|
|
|
593
593
|
return He(_, u) || E(u);
|
|
594
594
|
default:
|
|
595
595
|
if (z(_))
|
|
596
|
-
return
|
|
596
|
+
return L = f(u, 1, ht(_)), u.braceNest = 0, u.inLinked = !1, L;
|
|
597
597
|
const { isModulo: $, hasSpace: Y } = M(_);
|
|
598
598
|
if ($)
|
|
599
599
|
return Y ? f(u, 0, me(_)) : f(u, 4, ve(_));
|
|
@@ -601,15 +601,15 @@ function go(e, t = {}) {
|
|
|
601
601
|
return f(u, 0, me(_));
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return L;
|
|
605
605
|
}
|
|
606
606
|
function At() {
|
|
607
|
-
const { currentType: _, offset: u, startLoc:
|
|
608
|
-
return l.lastType = _, l.lastOffset = u, l.lastStartLoc =
|
|
607
|
+
const { currentType: _, offset: u, startLoc: L, endLoc: F } = l;
|
|
608
|
+
return l.lastType = _, l.lastOffset = u, l.lastStartLoc = L, l.lastEndLoc = F, l.offset = a(), l.startLoc = r(), s.currentChar() === je ? f(
|
|
609
609
|
l,
|
|
610
610
|
14
|
|
611
611
|
/* TokenTypes.EOF */
|
|
612
|
-
) :
|
|
612
|
+
) : et(s, l);
|
|
613
613
|
}
|
|
614
614
|
return {
|
|
615
615
|
nextToken: At,
|
|
@@ -633,77 +633,77 @@ function Eo(e, t, n) {
|
|
|
633
633
|
}
|
|
634
634
|
function To(e = {}) {
|
|
635
635
|
const t = e.location !== !1, { onError: n } = e;
|
|
636
|
-
function s(d,
|
|
636
|
+
function s(d, p, v, b, ...I) {
|
|
637
637
|
const g = d.currentPosition();
|
|
638
|
-
if (g.offset +=
|
|
639
|
-
const
|
|
638
|
+
if (g.offset += b, g.column += b, n) {
|
|
639
|
+
const y = t ? In(v, g) : null, A = Lt(p, y, {
|
|
640
640
|
domain: bo,
|
|
641
|
-
args:
|
|
641
|
+
args: I
|
|
642
642
|
});
|
|
643
643
|
n(A);
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function a(d,
|
|
647
|
-
const
|
|
648
|
-
return t && (
|
|
646
|
+
function a(d, p, v) {
|
|
647
|
+
const b = { type: d };
|
|
648
|
+
return t && (b.start = p, b.end = p, b.loc = { start: v, end: v }), b;
|
|
649
649
|
}
|
|
650
|
-
function r(d,
|
|
651
|
-
|
|
650
|
+
function r(d, p, v, b) {
|
|
651
|
+
b && (d.type = b), t && (d.end = p, d.loc && (d.loc.end = v));
|
|
652
652
|
}
|
|
653
|
-
function o(d,
|
|
654
|
-
const v = d.context(),
|
|
655
|
-
return
|
|
653
|
+
function o(d, p) {
|
|
654
|
+
const v = d.context(), b = a(3, v.offset, v.startLoc);
|
|
655
|
+
return b.value = p, r(b, d.currentOffset(), d.currentPosition()), b;
|
|
656
656
|
}
|
|
657
|
-
function i(d,
|
|
658
|
-
const v = d.context(), { lastOffset:
|
|
659
|
-
return g.index = parseInt(
|
|
657
|
+
function i(d, p) {
|
|
658
|
+
const v = d.context(), { lastOffset: b, lastStartLoc: I } = v, g = a(5, b, I);
|
|
659
|
+
return g.index = parseInt(p, 10), d.nextToken(), r(g, d.currentOffset(), d.currentPosition()), g;
|
|
660
660
|
}
|
|
661
|
-
function l(d,
|
|
662
|
-
const v = d.context(), { lastOffset:
|
|
663
|
-
return g.key =
|
|
661
|
+
function l(d, p) {
|
|
662
|
+
const v = d.context(), { lastOffset: b, lastStartLoc: I } = v, g = a(4, b, I);
|
|
663
|
+
return g.key = p, d.nextToken(), r(g, d.currentOffset(), d.currentPosition()), g;
|
|
664
664
|
}
|
|
665
|
-
function c(d,
|
|
666
|
-
const v = d.context(), { lastOffset:
|
|
667
|
-
return g.value =
|
|
665
|
+
function c(d, p) {
|
|
666
|
+
const v = d.context(), { lastOffset: b, lastStartLoc: I } = v, g = a(9, b, I);
|
|
667
|
+
return g.value = p.replace(vo, Eo), d.nextToken(), r(g, d.currentOffset(), d.currentPosition()), g;
|
|
668
668
|
}
|
|
669
669
|
function h(d) {
|
|
670
|
-
const
|
|
671
|
-
return
|
|
672
|
-
nextConsumeToken:
|
|
670
|
+
const p = d.nextToken(), v = d.context(), { lastOffset: b, lastStartLoc: I } = v, g = a(8, b, I);
|
|
671
|
+
return p.type !== 12 ? (s(d, U.UNEXPECTED_EMPTY_LINKED_MODIFIER, v.lastStartLoc, 0), g.value = "", r(g, b, I), {
|
|
672
|
+
nextConsumeToken: p,
|
|
673
673
|
node: g
|
|
674
|
-
}) : (
|
|
674
|
+
}) : (p.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ke(p)), g.value = p.value || "", r(g, d.currentOffset(), d.currentPosition()), {
|
|
675
675
|
node: g
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
function m(d,
|
|
679
|
-
const v = d.context(),
|
|
680
|
-
return
|
|
678
|
+
function m(d, p) {
|
|
679
|
+
const v = d.context(), b = a(7, v.offset, v.startLoc);
|
|
680
|
+
return b.value = p, r(b, d.currentOffset(), d.currentPosition()), b;
|
|
681
681
|
}
|
|
682
682
|
function f(d) {
|
|
683
|
-
const
|
|
684
|
-
let
|
|
685
|
-
if (
|
|
686
|
-
const
|
|
687
|
-
v.modifier =
|
|
683
|
+
const p = d.context(), v = a(6, p.offset, p.startLoc);
|
|
684
|
+
let b = d.nextToken();
|
|
685
|
+
if (b.type === 9) {
|
|
686
|
+
const I = h(d);
|
|
687
|
+
v.modifier = I.node, b = I.nextConsumeToken || d.nextToken();
|
|
688
688
|
}
|
|
689
|
-
switch (
|
|
689
|
+
switch (b.type !== 10 && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(b)), b = d.nextToken(), b.type === 2 && (b = d.nextToken()), b.type) {
|
|
690
690
|
case 11:
|
|
691
|
-
|
|
691
|
+
b.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(b)), v.key = m(d, b.value || "");
|
|
692
692
|
break;
|
|
693
693
|
case 5:
|
|
694
|
-
|
|
694
|
+
b.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(b)), v.key = l(d, b.value || "");
|
|
695
695
|
break;
|
|
696
696
|
case 6:
|
|
697
|
-
|
|
697
|
+
b.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(b)), v.key = i(d, b.value || "");
|
|
698
698
|
break;
|
|
699
699
|
case 7:
|
|
700
|
-
|
|
700
|
+
b.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(b)), v.key = c(d, b.value || "");
|
|
701
701
|
break;
|
|
702
702
|
default:
|
|
703
|
-
s(d, U.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
704
|
-
const
|
|
705
|
-
return g.value = "", r(g,
|
|
706
|
-
nextConsumeToken:
|
|
703
|
+
s(d, U.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
704
|
+
const I = d.context(), g = a(7, I.offset, I.startLoc);
|
|
705
|
+
return g.value = "", r(g, I.offset, I.startLoc), v.key = g, r(v, I.offset, I.startLoc), {
|
|
706
|
+
nextConsumeToken: b,
|
|
707
707
|
node: v
|
|
708
708
|
};
|
|
709
709
|
}
|
|
@@ -712,53 +712,53 @@ function To(e = {}) {
|
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
714
|
function E(d) {
|
|
715
|
-
const
|
|
716
|
-
|
|
715
|
+
const p = d.context(), v = p.currentType === 1 ? d.currentOffset() : p.offset, b = p.currentType === 1 ? p.endLoc : p.startLoc, I = a(2, v, b);
|
|
716
|
+
I.items = [];
|
|
717
717
|
let g = null;
|
|
718
718
|
do {
|
|
719
719
|
const w = g || d.nextToken();
|
|
720
720
|
switch (g = null, w.type) {
|
|
721
721
|
case 0:
|
|
722
|
-
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
722
|
+
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(w)), I.items.push(o(d, w.value || ""));
|
|
723
723
|
break;
|
|
724
724
|
case 6:
|
|
725
|
-
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
725
|
+
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(w)), I.items.push(i(d, w.value || ""));
|
|
726
726
|
break;
|
|
727
727
|
case 5:
|
|
728
|
-
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
728
|
+
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(w)), I.items.push(l(d, w.value || ""));
|
|
729
729
|
break;
|
|
730
730
|
case 7:
|
|
731
|
-
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
731
|
+
w.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(w)), I.items.push(c(d, w.value || ""));
|
|
732
732
|
break;
|
|
733
733
|
case 8:
|
|
734
734
|
const z = f(d);
|
|
735
|
-
|
|
735
|
+
I.items.push(z.node), g = z.nextConsumeToken || null;
|
|
736
736
|
break;
|
|
737
737
|
}
|
|
738
|
-
} while (
|
|
739
|
-
const
|
|
740
|
-
return r(
|
|
741
|
-
}
|
|
742
|
-
function T(d,
|
|
743
|
-
const
|
|
744
|
-
let g =
|
|
745
|
-
const
|
|
746
|
-
|
|
738
|
+
} while (p.currentType !== 14 && p.currentType !== 1);
|
|
739
|
+
const y = p.currentType === 1 ? p.lastOffset : d.currentOffset(), A = p.currentType === 1 ? p.lastEndLoc : d.currentPosition();
|
|
740
|
+
return r(I, y, A), I;
|
|
741
|
+
}
|
|
742
|
+
function T(d, p, v, b) {
|
|
743
|
+
const I = d.context();
|
|
744
|
+
let g = b.items.length === 0;
|
|
745
|
+
const y = a(1, p, v);
|
|
746
|
+
y.cases = [], y.cases.push(b);
|
|
747
747
|
do {
|
|
748
748
|
const A = E(d);
|
|
749
|
-
g || (g = A.items.length === 0),
|
|
750
|
-
} while (
|
|
751
|
-
return g && s(d, U.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), r(
|
|
749
|
+
g || (g = A.items.length === 0), y.cases.push(A);
|
|
750
|
+
} while (I.currentType !== 14);
|
|
751
|
+
return g && s(d, U.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), r(y, d.currentOffset(), d.currentPosition()), y;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
const
|
|
755
|
-
return
|
|
753
|
+
function O(d) {
|
|
754
|
+
const p = d.context(), { offset: v, startLoc: b } = p, I = E(d);
|
|
755
|
+
return p.currentType === 14 ? I : T(d, v, b, I);
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
const
|
|
759
|
-
return t &&
|
|
757
|
+
function S(d) {
|
|
758
|
+
const p = go(d, Rs({}, e)), v = p.context(), b = a(0, v.offset, v.startLoc);
|
|
759
|
+
return t && b.loc && (b.loc.source = d), b.body = O(p), e.onCacheKey && (b.cacheKey = e.onCacheKey(d)), v.currentType !== 14 && s(p, U.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, d[v.offset] || ""), r(b, p.currentOffset(), p.currentPosition()), b;
|
|
760
760
|
}
|
|
761
|
-
return { parse:
|
|
761
|
+
return { parse: S };
|
|
762
762
|
}
|
|
763
763
|
function ke(e) {
|
|
764
764
|
if (e.type === 14)
|
|
@@ -912,20 +912,20 @@ function ko(e, t) {
|
|
|
912
912
|
};
|
|
913
913
|
o && e.loc && (i.source = e.loc.source);
|
|
914
914
|
const l = () => i;
|
|
915
|
-
function c(
|
|
916
|
-
i.code +=
|
|
915
|
+
function c(S, d) {
|
|
916
|
+
i.code += S;
|
|
917
917
|
}
|
|
918
|
-
function h(
|
|
919
|
-
const
|
|
920
|
-
c(r ?
|
|
918
|
+
function h(S, d = !0) {
|
|
919
|
+
const p = d ? a : "";
|
|
920
|
+
c(r ? p + " ".repeat(S) : p);
|
|
921
921
|
}
|
|
922
|
-
function m(
|
|
922
|
+
function m(S = !0) {
|
|
923
923
|
const d = ++i.indentLevel;
|
|
924
|
-
|
|
924
|
+
S && h(d);
|
|
925
925
|
}
|
|
926
|
-
function f(
|
|
926
|
+
function f(S = !0) {
|
|
927
927
|
const d = --i.indentLevel;
|
|
928
|
-
|
|
928
|
+
S && h(d);
|
|
929
929
|
}
|
|
930
930
|
function E() {
|
|
931
931
|
h(i.indentLevel);
|
|
@@ -936,7 +936,7 @@ function ko(e, t) {
|
|
|
936
936
|
indent: m,
|
|
937
937
|
deindent: f,
|
|
938
938
|
newline: E,
|
|
939
|
-
helper: (
|
|
939
|
+
helper: (S) => `_${S}`,
|
|
940
940
|
needIndent: () => i.needIndent
|
|
941
941
|
};
|
|
942
942
|
}
|
|
@@ -1056,8 +1056,8 @@ function Ro(e, t = {}) {
|
|
|
1056
1056
|
function Mo() {
|
|
1057
1057
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (xe().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1059
|
+
const Je = [];
|
|
1060
|
+
Je[
|
|
1061
1061
|
0
|
|
1062
1062
|
/* States.BEFORE_PATH */
|
|
1063
1063
|
] = {
|
|
@@ -1079,7 +1079,7 @@ Qe[
|
|
|
1079
1079
|
/* States.AFTER_PATH */
|
|
1080
1080
|
]
|
|
1081
1081
|
};
|
|
1082
|
-
|
|
1082
|
+
Je[
|
|
1083
1083
|
1
|
|
1084
1084
|
/* States.IN_PATH */
|
|
1085
1085
|
] = {
|
|
@@ -1100,7 +1100,7 @@ Qe[
|
|
|
1100
1100
|
/* States.AFTER_PATH */
|
|
1101
1101
|
]
|
|
1102
1102
|
};
|
|
1103
|
-
|
|
1103
|
+
Je[
|
|
1104
1104
|
2
|
|
1105
1105
|
/* States.BEFORE_IDENT */
|
|
1106
1106
|
] = {
|
|
@@ -1119,7 +1119,7 @@ Qe[
|
|
|
1119
1119
|
/* Actions.APPEND */
|
|
1120
1120
|
]
|
|
1121
1121
|
};
|
|
1122
|
-
|
|
1122
|
+
Je[
|
|
1123
1123
|
3
|
|
1124
1124
|
/* States.IN_IDENT */
|
|
1125
1125
|
] = {
|
|
@@ -1154,7 +1154,7 @@ Qe[
|
|
|
1154
1154
|
/* Actions.PUSH */
|
|
1155
1155
|
]
|
|
1156
1156
|
};
|
|
1157
|
-
|
|
1157
|
+
Je[
|
|
1158
1158
|
4
|
|
1159
1159
|
/* States.IN_SUB_PATH */
|
|
1160
1160
|
] = {
|
|
@@ -1185,7 +1185,7 @@ Qe[
|
|
|
1185
1185
|
/* Actions.APPEND */
|
|
1186
1186
|
]
|
|
1187
1187
|
};
|
|
1188
|
-
|
|
1188
|
+
Je[
|
|
1189
1189
|
5
|
|
1190
1190
|
/* States.IN_SINGLE_QUOTE */
|
|
1191
1191
|
] = {
|
|
@@ -1201,7 +1201,7 @@ Qe[
|
|
|
1201
1201
|
/* Actions.APPEND */
|
|
1202
1202
|
]
|
|
1203
1203
|
};
|
|
1204
|
-
|
|
1204
|
+
Je[
|
|
1205
1205
|
6
|
|
1206
1206
|
/* States.IN_DOUBLE_QUOTE */
|
|
1207
1207
|
] = {
|
|
@@ -1304,7 +1304,7 @@ function Vo(e) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
for (; s !== null; )
|
|
1306
1306
|
if (n++, r = e[n], !(r === "\\" && E())) {
|
|
1307
|
-
if (l = Uo(r), m =
|
|
1307
|
+
if (l = Uo(r), m = Je[s], c = m[l] || m.l || 8, c === 8 || (s = c[0], c[1] !== void 0 && (h = f[c[1]], h && (i = r, h() === !1))))
|
|
1308
1308
|
return;
|
|
1309
1309
|
if (s === 7)
|
|
1310
1310
|
return t;
|
|
@@ -1346,22 +1346,22 @@ function qo(e = {}) {
|
|
|
1346
1346
|
se(e.pluralIndex) && Ko(n, l);
|
|
1347
1347
|
const c = (d) => l[d];
|
|
1348
1348
|
function h(d) {
|
|
1349
|
-
const
|
|
1350
|
-
return
|
|
1349
|
+
const p = q(e.messages) ? e.messages(d) : j(e.messages) ? e.messages[d] : !1;
|
|
1350
|
+
return p || (e.parent ? e.parent.message(d) : Go);
|
|
1351
1351
|
}
|
|
1352
|
-
const m = (d) => e.modifiers ? e.modifiers[d] : Ho, f = W(e.processor) && q(e.processor.normalize) ? e.processor.normalize : Yo, E = W(e.processor) && q(e.processor.interpolate) ? e.processor.interpolate : Xo, T = W(e.processor) && D(e.processor.type) ? e.processor.type : jo,
|
|
1352
|
+
const m = (d) => e.modifiers ? e.modifiers[d] : Ho, f = W(e.processor) && q(e.processor.normalize) ? e.processor.normalize : Yo, E = W(e.processor) && q(e.processor.interpolate) ? e.processor.interpolate : Xo, T = W(e.processor) && D(e.processor.type) ? e.processor.type : jo, S = {
|
|
1353
1353
|
list: i,
|
|
1354
1354
|
named: c,
|
|
1355
1355
|
plural: r,
|
|
1356
|
-
linked: (d, ...
|
|
1357
|
-
const [v,
|
|
1358
|
-
let
|
|
1359
|
-
|
|
1360
|
-
const
|
|
1356
|
+
linked: (d, ...p) => {
|
|
1357
|
+
const [v, b] = p;
|
|
1358
|
+
let I = "text", g = "";
|
|
1359
|
+
p.length === 1 ? j(v) ? (g = v.modifier || g, I = v.type || I) : D(v) && (g = v || g) : p.length === 2 && (D(v) && (g = v || g), D(b) && (I = b || I));
|
|
1360
|
+
const y = h(d)(S), A = (
|
|
1361
1361
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1362
|
-
|
|
1362
|
+
I === "vnode" && J(y) && g ? y[0] : y
|
|
1363
1363
|
);
|
|
1364
|
-
return g ? m(g)(A,
|
|
1364
|
+
return g ? m(g)(A, I) : A;
|
|
1365
1365
|
},
|
|
1366
1366
|
message: h,
|
|
1367
1367
|
type: T,
|
|
@@ -1369,7 +1369,7 @@ function qo(e = {}) {
|
|
|
1369
1369
|
normalize: f,
|
|
1370
1370
|
values: fe({}, o, l)
|
|
1371
1371
|
};
|
|
1372
|
-
return
|
|
1372
|
+
return S;
|
|
1373
1373
|
}
|
|
1374
1374
|
let $t = null;
|
|
1375
1375
|
function Zo(e) {
|
|
@@ -1411,22 +1411,22 @@ const he = {
|
|
|
1411
1411
|
function ft(e, ...t) {
|
|
1412
1412
|
return Zn(ti[e], ...t);
|
|
1413
1413
|
}
|
|
1414
|
-
const Ds = U.__EXTEND_POINT__,
|
|
1414
|
+
const Ds = U.__EXTEND_POINT__, nt = Jn(Ds), le = {
|
|
1415
1415
|
INVALID_ARGUMENT: Ds,
|
|
1416
1416
|
// 18
|
|
1417
|
-
INVALID_DATE_ARGUMENT:
|
|
1417
|
+
INVALID_DATE_ARGUMENT: nt(),
|
|
1418
1418
|
// 19
|
|
1419
|
-
INVALID_ISO_DATE_ARGUMENT:
|
|
1419
|
+
INVALID_ISO_DATE_ARGUMENT: nt(),
|
|
1420
1420
|
// 20
|
|
1421
|
-
NOT_SUPPORT_NON_STRING_MESSAGE:
|
|
1421
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: nt(),
|
|
1422
1422
|
// 21
|
|
1423
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE:
|
|
1423
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: nt(),
|
|
1424
1424
|
// 22
|
|
1425
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:
|
|
1425
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: nt(),
|
|
1426
1426
|
// 23
|
|
1427
|
-
NOT_SUPPORT_LOCALE_TYPE:
|
|
1427
|
+
NOT_SUPPORT_LOCALE_TYPE: nt(),
|
|
1428
1428
|
// 24
|
|
1429
|
-
__EXTEND_POINT__:
|
|
1429
|
+
__EXTEND_POINT__: nt()
|
|
1430
1430
|
// 25
|
|
1431
1431
|
};
|
|
1432
1432
|
function Ce(e) {
|
|
@@ -1444,18 +1444,18 @@ const ni = {
|
|
|
1444
1444
|
function tr(e, t) {
|
|
1445
1445
|
return t.locale != null ? kr(t.locale) : kr(e.locale);
|
|
1446
1446
|
}
|
|
1447
|
-
let
|
|
1447
|
+
let pn;
|
|
1448
1448
|
function kr(e) {
|
|
1449
1449
|
if (D(e))
|
|
1450
1450
|
return e;
|
|
1451
1451
|
if (q(e)) {
|
|
1452
|
-
if (e.resolvedOnce &&
|
|
1453
|
-
return
|
|
1452
|
+
if (e.resolvedOnce && pn != null)
|
|
1453
|
+
return pn;
|
|
1454
1454
|
if (e.constructor.name === "Function") {
|
|
1455
1455
|
const t = e();
|
|
1456
1456
|
if (Za(t))
|
|
1457
1457
|
throw Ce(le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1458
|
-
return
|
|
1458
|
+
return pn = t;
|
|
1459
1459
|
} else
|
|
1460
1460
|
throw Ce(le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1461
1461
|
} else
|
|
@@ -1507,7 +1507,7 @@ function ai(e, t, n) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
return s;
|
|
1509
1509
|
}
|
|
1510
|
-
const oi = "9.10.1",
|
|
1510
|
+
const oi = "9.10.1", dn = -1, Nt = "en-US", an = "", Ar = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1511
1511
|
function ii() {
|
|
1512
1512
|
return {
|
|
1513
1513
|
upper: (e, t) => t === "text" && D(e) ? e.toUpperCase() : t === "vnode" && j(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1537,9 +1537,9 @@ const wr = (e) => {
|
|
|
1537
1537
|
}, di = () => Ws;
|
|
1538
1538
|
let Pr = 0;
|
|
1539
1539
|
function mi(e = {}) {
|
|
1540
|
-
const t = q(e.onWarn) ? e.onWarn : to, n = D(e.version) ? e.version : oi, s = D(e.locale) || q(e.locale) ? e.locale : Nt, a = q(s) ? Nt : s, r = J(e.fallbackLocale) || W(e.fallbackLocale) || D(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = W(e.messages) ? e.messages : { [a]: {} }, i = W(e.datetimeFormats) ? e.datetimeFormats : { [a]: {} }, l = W(e.numberFormats) ? e.numberFormats : { [a]: {} }, c = fe({}, e.modifiers || {}, ii()), h = e.pluralRules || {}, m = q(e.missing) ? e.missing : null, f = H(e.missingWarn) ||
|
|
1540
|
+
const t = q(e.onWarn) ? e.onWarn : to, n = D(e.version) ? e.version : oi, s = D(e.locale) || q(e.locale) ? e.locale : Nt, a = q(s) ? Nt : s, r = J(e.fallbackLocale) || W(e.fallbackLocale) || D(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = W(e.messages) ? e.messages : { [a]: {} }, i = W(e.datetimeFormats) ? e.datetimeFormats : { [a]: {} }, l = W(e.numberFormats) ? e.numberFormats : { [a]: {} }, c = fe({}, e.modifiers || {}, ii()), h = e.pluralRules || {}, m = q(e.missing) ? e.missing : null, f = H(e.missingWarn) || qe(e.missingWarn) ? e.missingWarn : !0, E = H(e.fallbackWarn) || qe(e.fallbackWarn) ? e.fallbackWarn : !0, T = !!e.fallbackFormat, O = !!e.unresolving, S = q(e.postTranslation) ? e.postTranslation : null, d = W(e.processor) ? e.processor : null, p = H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, b = q(e.messageCompiler) ? e.messageCompiler : xs;
|
|
1541
1541
|
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && Ps(ft(he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1542
|
-
const
|
|
1542
|
+
const I = q(e.messageResolver) ? e.messageResolver : Us || Wo, g = q(e.localeFallbacker) ? e.localeFallbacker : $s || ri, y = j(e.fallbackContext) ? e.fallbackContext : void 0, A = e, w = j(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), z = j(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), M = j(A.__meta) ? A.__meta : {};
|
|
1543
1543
|
Pr++;
|
|
1544
1544
|
const N = {
|
|
1545
1545
|
version: n,
|
|
@@ -1553,21 +1553,21 @@ function mi(e = {}) {
|
|
|
1553
1553
|
missingWarn: f,
|
|
1554
1554
|
fallbackWarn: E,
|
|
1555
1555
|
fallbackFormat: T,
|
|
1556
|
-
unresolving:
|
|
1557
|
-
postTranslation:
|
|
1556
|
+
unresolving: O,
|
|
1557
|
+
postTranslation: S,
|
|
1558
1558
|
processor: d,
|
|
1559
|
-
warnHtmlMessage:
|
|
1559
|
+
warnHtmlMessage: p,
|
|
1560
1560
|
escapeParameter: v,
|
|
1561
|
-
messageCompiler:
|
|
1562
|
-
messageResolver:
|
|
1561
|
+
messageCompiler: b,
|
|
1562
|
+
messageResolver: I,
|
|
1563
1563
|
localeFallbacker: g,
|
|
1564
|
-
fallbackContext:
|
|
1564
|
+
fallbackContext: y,
|
|
1565
1565
|
onWarn: t,
|
|
1566
1566
|
__meta: M
|
|
1567
1567
|
};
|
|
1568
1568
|
return N.datetimeFormats = i, N.numberFormats = l, N.__datetimeFormatters = w, N.__numberFormatters = z, process.env.NODE_ENV !== "production" && (N.__v_emitter = A.__v_emitter != null ? A.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Jo(N, n, M), N;
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function mn(e, t) {
|
|
1571
1571
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1572
1572
|
}
|
|
1573
1573
|
function Bs(e, t) {
|
|
@@ -1594,7 +1594,7 @@ function Ct(e, t, n) {
|
|
|
1594
1594
|
const s = e;
|
|
1595
1595
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1597
|
+
function gn(e) {
|
|
1598
1598
|
return (n) => _i(n, e);
|
|
1599
1599
|
}
|
|
1600
1600
|
function _i(e, t) {
|
|
@@ -1613,11 +1613,11 @@ function Rr(e, t) {
|
|
|
1613
1613
|
if (n)
|
|
1614
1614
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1615
1615
|
{
|
|
1616
|
-
const s = (t.i || t.items).reduce((a, r) => [...a,
|
|
1616
|
+
const s = (t.i || t.items).reduce((a, r) => [...a, kn(e, r)], []);
|
|
1617
1617
|
return e.normalize(s);
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function kn(e, t) {
|
|
1621
1621
|
const n = t.t || t.type;
|
|
1622
1622
|
switch (n) {
|
|
1623
1623
|
case 3:
|
|
@@ -1634,7 +1634,7 @@ function Sn(e, t) {
|
|
|
1634
1634
|
return e.interpolate(e.list(o.i != null ? o.i : o.index));
|
|
1635
1635
|
case 6:
|
|
1636
1636
|
const i = t, l = i.m || i.modifier;
|
|
1637
|
-
return e.linked(
|
|
1637
|
+
return e.linked(kn(e, i.k || i.key), l ? kn(e, l) : void 0, e.type);
|
|
1638
1638
|
case 7:
|
|
1639
1639
|
const c = t;
|
|
1640
1640
|
return c.v || c.value;
|
|
@@ -1651,7 +1651,7 @@ function Hs(e, t) {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
const Gs = (e) => e;
|
|
1653
1653
|
let vt = /* @__PURE__ */ Object.create(null);
|
|
1654
|
-
const
|
|
1654
|
+
const Ze = (e) => j(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
|
|
1655
1655
|
function js(e, t = {}) {
|
|
1656
1656
|
let n = !1;
|
|
1657
1657
|
const s = t.onError || io;
|
|
@@ -1683,45 +1683,45 @@ function gi(e, t) {
|
|
|
1683
1683
|
...t,
|
|
1684
1684
|
location: process.env.NODE_ENV !== "production",
|
|
1685
1685
|
jit: !0
|
|
1686
|
-
}), l =
|
|
1686
|
+
}), l = gn(o);
|
|
1687
1687
|
return i ? l : vt[a] = l;
|
|
1688
1688
|
} else {
|
|
1689
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1689
|
+
if (process.env.NODE_ENV !== "production" && !Ze(e))
|
|
1690
1690
|
return `${t.key}`, () => e;
|
|
1691
1691
|
const n = e.cacheKey;
|
|
1692
1692
|
if (n) {
|
|
1693
1693
|
const s = vt[n];
|
|
1694
|
-
return s || (vt[n] =
|
|
1694
|
+
return s || (vt[n] = gn(e));
|
|
1695
1695
|
} else
|
|
1696
|
-
return
|
|
1696
|
+
return gn(e);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
const Mr = () => "", Ee = (e) => q(e);
|
|
1700
1700
|
function Dr(e, ...t) {
|
|
1701
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: i } = e, [l, c] =
|
|
1701
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: i } = e, [l, c] = Sn(...t), h = H(c.missingWarn) ? c.missingWarn : e.missingWarn, m = H(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = H(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, E = !!c.resolvedMessage, T = D(c.default) || H(c.default) ? H(c.default) ? r ? l : () => l : c.default : n ? r ? l : () => l : "", O = n || T !== "", S = tr(e, c);
|
|
1702
1702
|
f && bi(c);
|
|
1703
|
-
let [d,
|
|
1703
|
+
let [d, p, v] = E ? [
|
|
1704
1704
|
l,
|
|
1705
|
-
|
|
1706
|
-
i[
|
|
1707
|
-
] : Ys(e, l,
|
|
1708
|
-
if (!E && !(D(
|
|
1709
|
-
return a ?
|
|
1710
|
-
if (process.env.NODE_ENV !== "production" && D(
|
|
1705
|
+
S,
|
|
1706
|
+
i[S] || {}
|
|
1707
|
+
] : Ys(e, l, S, o, m, h), b = d, I = l;
|
|
1708
|
+
if (!E && !(D(b) || Ze(b) || Ee(b)) && O && (b = T, I = b), !E && (!(D(b) || Ze(b) || Ee(b)) || !D(p)))
|
|
1709
|
+
return a ? dn : l;
|
|
1710
|
+
if (process.env.NODE_ENV !== "production" && D(b) && e.messageCompiler == null)
|
|
1711
1711
|
return `${l}`, l;
|
|
1712
1712
|
let g = !1;
|
|
1713
|
-
const
|
|
1713
|
+
const y = () => {
|
|
1714
1714
|
g = !0;
|
|
1715
|
-
}, A = Ee(
|
|
1715
|
+
}, A = Ee(b) ? b : Xs(e, l, p, b, I, y);
|
|
1716
1716
|
if (g)
|
|
1717
|
-
return
|
|
1718
|
-
const w = Ni(e,
|
|
1717
|
+
return b;
|
|
1718
|
+
const w = Ni(e, p, v, c), z = qo(w), M = vi(e, A, z), N = s ? s(M, l) : M;
|
|
1719
1719
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1720
1720
|
const C = {
|
|
1721
1721
|
timestamp: Date.now(),
|
|
1722
|
-
key: D(l) ? l : Ee(
|
|
1723
|
-
locale:
|
|
1724
|
-
format: D(
|
|
1722
|
+
key: D(l) ? l : Ee(b) ? b.key : "",
|
|
1723
|
+
locale: p || (Ee(b) ? b.locale : ""),
|
|
1724
|
+
format: D(b) ? b : Ee(b) ? b.source : "",
|
|
1725
1725
|
message: N
|
|
1726
1726
|
};
|
|
1727
1727
|
C.meta = fe({}, e.__meta, /* @__PURE__ */ fi() || {}), Qo(C);
|
|
@@ -1735,45 +1735,45 @@ function bi(e) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
function Ys(e, t, n, s, a, r) {
|
|
1737
1737
|
const { messages: o, onWarn: i, messageResolver: l, localeFallbacker: c } = e, h = c(e, s, n);
|
|
1738
|
-
let m = {}, f, E = null, T = n,
|
|
1739
|
-
const
|
|
1738
|
+
let m = {}, f, E = null, T = n, O = null;
|
|
1739
|
+
const S = "translate";
|
|
1740
1740
|
for (let d = 0; d < h.length; d++) {
|
|
1741
|
-
if (f =
|
|
1741
|
+
if (f = O = h[d], process.env.NODE_ENV !== "production" && n !== f && mn(a, t) && i(ft(he.FALLBACK_TO_TRANSLATE, {
|
|
1742
1742
|
key: t,
|
|
1743
1743
|
target: f
|
|
1744
1744
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
1745
1745
|
const g = e.__v_emitter;
|
|
1746
1746
|
g && g.emit("fallback", {
|
|
1747
|
-
type:
|
|
1747
|
+
type: S,
|
|
1748
1748
|
key: t,
|
|
1749
1749
|
from: T,
|
|
1750
|
-
to:
|
|
1751
|
-
groupId: `${
|
|
1750
|
+
to: O,
|
|
1751
|
+
groupId: `${S}:${t}`
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
m = o[f] || {};
|
|
1755
|
-
let
|
|
1756
|
-
if (process.env.NODE_ENV !== "production" && Le && (
|
|
1757
|
-
const g = window.performance.now(),
|
|
1758
|
-
|
|
1755
|
+
let p = null, v, b;
|
|
1756
|
+
if (process.env.NODE_ENV !== "production" && Le && (p = window.performance.now(), v = "intlify-message-resolve-start", b = "intlify-message-resolve-end", be && be(v)), (E = l(m, t)) === null && (E = m[t]), process.env.NODE_ENV !== "production" && Le) {
|
|
1757
|
+
const g = window.performance.now(), y = e.__v_emitter;
|
|
1758
|
+
y && p && E && y.emit("message-resolve", {
|
|
1759
1759
|
type: "message-resolve",
|
|
1760
1760
|
key: t,
|
|
1761
1761
|
message: E,
|
|
1762
|
-
time: g -
|
|
1763
|
-
groupId: `${
|
|
1764
|
-
}), v &&
|
|
1762
|
+
time: g - p,
|
|
1763
|
+
groupId: `${S}:${t}`
|
|
1764
|
+
}), v && b && be && ut && (be(b), ut("intlify message resolve", v, b));
|
|
1765
1765
|
}
|
|
1766
|
-
if (D(E) ||
|
|
1766
|
+
if (D(E) || Ze(E) || Ee(E))
|
|
1767
1767
|
break;
|
|
1768
|
-
const
|
|
1768
|
+
const I = nr(
|
|
1769
1769
|
e,
|
|
1770
1770
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1771
1771
|
t,
|
|
1772
1772
|
f,
|
|
1773
1773
|
r,
|
|
1774
|
-
|
|
1774
|
+
S
|
|
1775
1775
|
);
|
|
1776
|
-
|
|
1776
|
+
I !== t && (E = I), T = O;
|
|
1777
1777
|
}
|
|
1778
1778
|
return [E, f, m];
|
|
1779
1779
|
}
|
|
@@ -1816,12 +1816,12 @@ function vi(e, t, n) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
return o;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function Sn(...e) {
|
|
1820
1820
|
const [t, n, s] = e, a = {};
|
|
1821
|
-
if (!D(t) && !se(t) && !Ee(t) && !
|
|
1821
|
+
if (!D(t) && !se(t) && !Ee(t) && !Ze(t))
|
|
1822
1822
|
throw Ce(le.INVALID_ARGUMENT);
|
|
1823
1823
|
const r = se(t) ? String(t) : (Ee(t), t);
|
|
1824
|
-
return se(n) ? a.plural = n : D(n) ? a.default = n : W(n) && !
|
|
1824
|
+
return se(n) ? a.plural = n : D(n) ? a.default = n : W(n) && !fn(n) ? a.named = n : J(n) && (a.list = n), se(s) ? a.plural = s : D(s) ? a.default = s : W(s) && fe(a, s), [r, a];
|
|
1825
1825
|
}
|
|
1826
1826
|
function Ei(e, t, n, s, a, r) {
|
|
1827
1827
|
return {
|
|
@@ -1858,15 +1858,15 @@ function Ni(e, t, n, s) {
|
|
|
1858
1858
|
messages: (E) => {
|
|
1859
1859
|
let T = o(n, E);
|
|
1860
1860
|
if (T == null && h) {
|
|
1861
|
-
const [, ,
|
|
1862
|
-
T = o(
|
|
1861
|
+
const [, , O] = Ys(h, E, t, i, l, c);
|
|
1862
|
+
T = o(O, E);
|
|
1863
1863
|
}
|
|
1864
|
-
if (D(T) ||
|
|
1865
|
-
let
|
|
1864
|
+
if (D(T) || Ze(T)) {
|
|
1865
|
+
let O = !1;
|
|
1866
1866
|
const d = Xs(e, E, t, T, E, () => {
|
|
1867
|
-
|
|
1867
|
+
O = !0;
|
|
1868
1868
|
});
|
|
1869
|
-
return
|
|
1869
|
+
return O ? Mr : d;
|
|
1870
1870
|
} else
|
|
1871
1871
|
return Ee(T) ? T : Mr;
|
|
1872
1872
|
}
|
|
@@ -1881,40 +1881,40 @@ function xr(e, ...t) {
|
|
|
1881
1881
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1882
1882
|
if (process.env.NODE_ENV !== "production" && !zs.dateTimeFormat)
|
|
1883
1883
|
return r(ft(he.CANNOT_FORMAT_DATE)), an;
|
|
1884
|
-
const [l, c, h, m] =
|
|
1884
|
+
const [l, c, h, m] = An(...t), f = H(h.missingWarn) ? h.missingWarn : e.missingWarn, E = H(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, T = !!h.part, O = tr(e, h), S = o(
|
|
1885
1885
|
e,
|
|
1886
1886
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1887
1887
|
a,
|
|
1888
|
-
|
|
1888
|
+
O
|
|
1889
1889
|
);
|
|
1890
1890
|
if (!D(l) || l === "")
|
|
1891
|
-
return new Intl.DateTimeFormat(
|
|
1892
|
-
let d = {},
|
|
1891
|
+
return new Intl.DateTimeFormat(O, m).format(c);
|
|
1892
|
+
let d = {}, p, v = null, b = O, I = null;
|
|
1893
1893
|
const g = "datetime format";
|
|
1894
|
-
for (let w = 0; w <
|
|
1895
|
-
if (
|
|
1894
|
+
for (let w = 0; w < S.length; w++) {
|
|
1895
|
+
if (p = I = S[w], process.env.NODE_ENV !== "production" && O !== p && mn(E, l) && r(ft(he.FALLBACK_TO_DATE_FORMAT, {
|
|
1896
1896
|
key: l,
|
|
1897
|
-
target:
|
|
1898
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1897
|
+
target: p
|
|
1898
|
+
})), process.env.NODE_ENV !== "production" && O !== p) {
|
|
1899
1899
|
const z = e.__v_emitter;
|
|
1900
1900
|
z && z.emit("fallback", {
|
|
1901
1901
|
type: g,
|
|
1902
1902
|
key: l,
|
|
1903
|
-
from:
|
|
1904
|
-
to:
|
|
1903
|
+
from: b,
|
|
1904
|
+
to: I,
|
|
1905
1905
|
groupId: `${g}:${l}`
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
|
-
if (d = n[
|
|
1908
|
+
if (d = n[p] || {}, v = d[l], W(v))
|
|
1909
1909
|
break;
|
|
1910
|
-
nr(e, l,
|
|
1910
|
+
nr(e, l, p, f, g), b = I;
|
|
1911
1911
|
}
|
|
1912
|
-
if (!W(v) || !D(
|
|
1913
|
-
return s ?
|
|
1914
|
-
let
|
|
1915
|
-
|
|
1916
|
-
let A = i.get(
|
|
1917
|
-
return A || (A = new Intl.DateTimeFormat(
|
|
1912
|
+
if (!W(v) || !D(p))
|
|
1913
|
+
return s ? dn : l;
|
|
1914
|
+
let y = `${p}__${l}`;
|
|
1915
|
+
fn(m) || (y = `${y}__${JSON.stringify(m)}`);
|
|
1916
|
+
let A = i.get(y);
|
|
1917
|
+
return A || (A = new Intl.DateTimeFormat(p, fe({}, v, m)), i.set(y, A)), T ? A.formatToParts(c) : A.format(c);
|
|
1918
1918
|
}
|
|
1919
1919
|
const Ks = [
|
|
1920
1920
|
"localeMatcher",
|
|
@@ -1938,7 +1938,7 @@ const Ks = [
|
|
|
1938
1938
|
"hourCycle",
|
|
1939
1939
|
"fractionalSecondDigits"
|
|
1940
1940
|
];
|
|
1941
|
-
function
|
|
1941
|
+
function An(...e) {
|
|
1942
1942
|
const [t, n, s, a] = e, r = {};
|
|
1943
1943
|
let o = {}, i;
|
|
1944
1944
|
if (D(t)) {
|
|
@@ -1975,40 +1975,40 @@ function $r(e, ...t) {
|
|
|
1975
1975
|
const { numberFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
1976
1976
|
if (process.env.NODE_ENV !== "production" && !zs.numberFormat)
|
|
1977
1977
|
return r(ft(he.CANNOT_FORMAT_NUMBER)), an;
|
|
1978
|
-
const [l, c, h, m] =
|
|
1978
|
+
const [l, c, h, m] = Cn(...t), f = H(h.missingWarn) ? h.missingWarn : e.missingWarn, E = H(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, T = !!h.part, O = tr(e, h), S = o(
|
|
1979
1979
|
e,
|
|
1980
1980
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1981
1981
|
a,
|
|
1982
|
-
|
|
1982
|
+
O
|
|
1983
1983
|
);
|
|
1984
1984
|
if (!D(l) || l === "")
|
|
1985
|
-
return new Intl.NumberFormat(
|
|
1986
|
-
let d = {},
|
|
1985
|
+
return new Intl.NumberFormat(O, m).format(c);
|
|
1986
|
+
let d = {}, p, v = null, b = O, I = null;
|
|
1987
1987
|
const g = "number format";
|
|
1988
|
-
for (let w = 0; w <
|
|
1989
|
-
if (
|
|
1988
|
+
for (let w = 0; w < S.length; w++) {
|
|
1989
|
+
if (p = I = S[w], process.env.NODE_ENV !== "production" && O !== p && mn(E, l) && r(ft(he.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1990
1990
|
key: l,
|
|
1991
|
-
target:
|
|
1992
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1991
|
+
target: p
|
|
1992
|
+
})), process.env.NODE_ENV !== "production" && O !== p) {
|
|
1993
1993
|
const z = e.__v_emitter;
|
|
1994
1994
|
z && z.emit("fallback", {
|
|
1995
1995
|
type: g,
|
|
1996
1996
|
key: l,
|
|
1997
|
-
from:
|
|
1998
|
-
to:
|
|
1997
|
+
from: b,
|
|
1998
|
+
to: I,
|
|
1999
1999
|
groupId: `${g}:${l}`
|
|
2000
2000
|
});
|
|
2001
2001
|
}
|
|
2002
|
-
if (d = n[
|
|
2002
|
+
if (d = n[p] || {}, v = d[l], W(v))
|
|
2003
2003
|
break;
|
|
2004
|
-
nr(e, l,
|
|
2004
|
+
nr(e, l, p, f, g), b = I;
|
|
2005
2005
|
}
|
|
2006
|
-
if (!W(v) || !D(
|
|
2007
|
-
return s ?
|
|
2008
|
-
let
|
|
2009
|
-
|
|
2010
|
-
let A = i.get(
|
|
2011
|
-
return A || (A = new Intl.NumberFormat(
|
|
2006
|
+
if (!W(v) || !D(p))
|
|
2007
|
+
return s ? dn : l;
|
|
2008
|
+
let y = `${p}__${l}`;
|
|
2009
|
+
fn(m) || (y = `${y}__${JSON.stringify(m)}`);
|
|
2010
|
+
let A = i.get(y);
|
|
2011
|
+
return A || (A = new Intl.NumberFormat(p, fe({}, v, m)), i.set(y, A)), T ? A.formatToParts(c) : A.format(c);
|
|
2012
2012
|
}
|
|
2013
2013
|
const qs = [
|
|
2014
2014
|
"localeMatcher",
|
|
@@ -2032,7 +2032,7 @@ const qs = [
|
|
|
2032
2032
|
"roundingIncrement",
|
|
2033
2033
|
"trailingZeroDisplay"
|
|
2034
2034
|
];
|
|
2035
|
-
function
|
|
2035
|
+
function Cn(...e) {
|
|
2036
2036
|
const [t, n, s, a] = e, r = {};
|
|
2037
2037
|
let o = {};
|
|
2038
2038
|
if (!se(t))
|
|
@@ -2057,13 +2057,13 @@ function Zs() {
|
|
|
2057
2057
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2058
2058
|
}
|
|
2059
2059
|
const yi = typeof Proxy == "function", Li = "devtools-plugin:setup", Ii = "plugin:settings:set";
|
|
2060
|
-
let gt,
|
|
2060
|
+
let gt, wn;
|
|
2061
2061
|
function ki() {
|
|
2062
2062
|
var e;
|
|
2063
|
-
return gt !== void 0 || (typeof window < "u" && window.performance ? (gt = !0,
|
|
2063
|
+
return gt !== void 0 || (typeof window < "u" && window.performance ? (gt = !0, wn = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (gt = !0, wn = globalThis.perf_hooks.performance) : gt = !1), gt;
|
|
2064
2064
|
}
|
|
2065
2065
|
function Si() {
|
|
2066
|
-
return ki() ?
|
|
2066
|
+
return ki() ? wn.now() : Date.now();
|
|
2067
2067
|
}
|
|
2068
2068
|
class Ai {
|
|
2069
2069
|
constructor(t, n) {
|
|
@@ -2246,7 +2246,7 @@ const Mi = {
|
|
|
2246
2246
|
[G.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
2247
2247
|
[G.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
|
|
2248
2248
|
[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2249
|
-
},
|
|
2249
|
+
}, Pn = /* @__PURE__ */ Pe("__translateVNode"), Rn = /* @__PURE__ */ Pe("__datetimeParts"), Mn = /* @__PURE__ */ Pe("__numberParts"), dt = /* @__PURE__ */ Pe("__enableEmitter"), Vt = /* @__PURE__ */ Pe("__disableEmitter"), ea = Pe("__setPluralRules"), ta = /* @__PURE__ */ Pe("__injectWithOption"), Dn = /* @__PURE__ */ Pe("__dispose");
|
|
2250
2250
|
function Wt(e) {
|
|
2251
2251
|
if (!j(e))
|
|
2252
2252
|
return e;
|
|
@@ -2270,7 +2270,7 @@ function Wt(e) {
|
|
|
2270
2270
|
}
|
|
2271
2271
|
return e;
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function _n(e, t) {
|
|
2274
2274
|
const { messages: n, __i18n: s, messageResolver: a, flatJson: r } = t, o = W(n) ? n : J(s) ? {} : { [e]: {} };
|
|
2275
2275
|
if (J(s) && s.forEach((i) => {
|
|
2276
2276
|
if ("locale" in i && "resource" in i) {
|
|
@@ -2288,7 +2288,7 @@ function na(e) {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
function ra(e, t, n) {
|
|
2290
2290
|
let s = j(t.messages) ? t.messages : {};
|
|
2291
|
-
"__i18nGlobal" in n && (s =
|
|
2291
|
+
"__i18nGlobal" in n && (s = _n(e.locale.value, {
|
|
2292
2292
|
messages: s,
|
|
2293
2293
|
__i18n: n.__i18nGlobal
|
|
2294
2294
|
}));
|
|
@@ -2317,10 +2317,10 @@ function Wr(e) {
|
|
|
2317
2317
|
const Br = "__INTLIFY_META__", Hr = () => [], Di = () => !1;
|
|
2318
2318
|
let Gr = 0;
|
|
2319
2319
|
function jr(e) {
|
|
2320
|
-
return (t, n, s, a) => e(n, s,
|
|
2320
|
+
return (t, n, s, a) => e(n, s, it() || void 0, a);
|
|
2321
2321
|
}
|
|
2322
2322
|
const Fi = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2323
|
-
const e =
|
|
2323
|
+
const e = it();
|
|
2324
2324
|
let t = null;
|
|
2325
2325
|
return e && (t = na(e)[Br]) ? { [Br]: t } : null;
|
|
2326
2326
|
};
|
|
@@ -2334,33 +2334,33 @@ function rr(e = {}, t) {
|
|
|
2334
2334
|
), h = o(
|
|
2335
2335
|
// prettier-ignore
|
|
2336
2336
|
n && l ? n.fallbackLocale.value : D(e.fallbackLocale) || J(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
2337
|
-
), m = o(
|
|
2338
|
-
let T = n ? n.missingWarn : H(e.missingWarn) ||
|
|
2339
|
-
const
|
|
2337
|
+
), m = o(_n(c.value, e)), f = o(W(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), E = o(W(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
2338
|
+
let T = n ? n.missingWarn : H(e.missingWarn) || qe(e.missingWarn) ? e.missingWarn : !0, O = n ? n.fallbackWarn : H(e.fallbackWarn) || qe(e.fallbackWarn) ? e.fallbackWarn : !0, S = n ? n.fallbackRoot : H(e.fallbackRoot) ? e.fallbackRoot : !0, d = !!e.fallbackFormat, p = q(e.missing) ? e.missing : null, v = q(e.missing) ? jr(e.missing) : null, b = q(e.postTranslation) ? e.postTranslation : null, I = n ? n.warnHtmlMessage : H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter;
|
|
2339
|
+
const y = n ? n.modifiers : W(e.modifiers) ? e.modifiers : {};
|
|
2340
2340
|
let A = e.pluralRules || n && n.pluralRules, w;
|
|
2341
2341
|
w = (() => {
|
|
2342
2342
|
a && wr(null);
|
|
2343
|
-
const
|
|
2343
|
+
const k = {
|
|
2344
2344
|
version: wi,
|
|
2345
2345
|
locale: c.value,
|
|
2346
2346
|
fallbackLocale: h.value,
|
|
2347
2347
|
messages: m.value,
|
|
2348
|
-
modifiers:
|
|
2348
|
+
modifiers: y,
|
|
2349
2349
|
pluralRules: A,
|
|
2350
2350
|
missing: v === null ? void 0 : v,
|
|
2351
2351
|
missingWarn: T,
|
|
2352
|
-
fallbackWarn:
|
|
2352
|
+
fallbackWarn: O,
|
|
2353
2353
|
fallbackFormat: d,
|
|
2354
2354
|
unresolving: !0,
|
|
2355
|
-
postTranslation:
|
|
2356
|
-
warnHtmlMessage:
|
|
2355
|
+
postTranslation: b === null ? void 0 : b,
|
|
2356
|
+
warnHtmlMessage: I,
|
|
2357
2357
|
escapeParameter: g,
|
|
2358
2358
|
messageResolver: e.messageResolver,
|
|
2359
2359
|
messageCompiler: e.messageCompiler,
|
|
2360
2360
|
__meta: { framework: "vue" }
|
|
2361
2361
|
};
|
|
2362
|
-
|
|
2363
|
-
const P = mi(
|
|
2362
|
+
k.datetimeFormats = f.value, k.numberFormats = E.value, k.__datetimeFormatters = W(w) ? w.__datetimeFormatters : void 0, k.__numberFormatters = W(w) ? w.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (k.__v_emitter = W(w) ? w.__v_emitter : void 0);
|
|
2363
|
+
const P = mi(k);
|
|
2364
2364
|
return a && wr(P), P;
|
|
2365
2365
|
})(), Ct(w, c.value, h.value);
|
|
2366
2366
|
function M() {
|
|
@@ -2374,141 +2374,141 @@ function rr(e = {}, t) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
const N = ue({
|
|
2376
2376
|
get: () => c.value,
|
|
2377
|
-
set: (
|
|
2378
|
-
c.value =
|
|
2377
|
+
set: (k) => {
|
|
2378
|
+
c.value = k, w.locale = c.value;
|
|
2379
2379
|
}
|
|
2380
2380
|
}), C = ue({
|
|
2381
2381
|
get: () => h.value,
|
|
2382
|
-
set: (
|
|
2383
|
-
h.value =
|
|
2382
|
+
set: (k) => {
|
|
2383
|
+
h.value = k, w.fallbackLocale = h.value, Ct(w, c.value, k);
|
|
2384
2384
|
}
|
|
2385
2385
|
}), R = ue(() => m.value), V = /* @__PURE__ */ ue(() => f.value), Z = /* @__PURE__ */ ue(() => E.value);
|
|
2386
2386
|
function te() {
|
|
2387
|
-
return q(
|
|
2387
|
+
return q(b) ? b : null;
|
|
2388
2388
|
}
|
|
2389
|
-
function ve(
|
|
2390
|
-
|
|
2389
|
+
function ve(k) {
|
|
2390
|
+
b = k, w.postTranslation = k;
|
|
2391
2391
|
}
|
|
2392
2392
|
function me() {
|
|
2393
|
-
return
|
|
2393
|
+
return p;
|
|
2394
2394
|
}
|
|
2395
|
-
function We(
|
|
2396
|
-
|
|
2395
|
+
function We(k) {
|
|
2396
|
+
k !== null && (v = jr(k)), p = k, w.missing = v;
|
|
2397
2397
|
}
|
|
2398
|
-
function Be(
|
|
2399
|
-
return
|
|
2398
|
+
function Be(k, P) {
|
|
2399
|
+
return k !== "translate" || !P.resolvedMessage;
|
|
2400
2400
|
}
|
|
2401
|
-
const Ne = (
|
|
2401
|
+
const Ne = (k, P, X, ne, Ge, Yt) => {
|
|
2402
2402
|
M();
|
|
2403
2403
|
let pt;
|
|
2404
2404
|
try {
|
|
2405
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = n ? di() : void 0), pt =
|
|
2405
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = n ? di() : void 0), pt = k(w);
|
|
2406
2406
|
} finally {
|
|
2407
2407
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (w.fallbackContext = void 0);
|
|
2408
2408
|
}
|
|
2409
2409
|
if (X !== "translate exists" && // for not `te` (e.g `t`)
|
|
2410
|
-
se(pt) && pt ===
|
|
2411
|
-
const [
|
|
2412
|
-
if (process.env.NODE_ENV !== "production" && n && D(
|
|
2413
|
-
key:
|
|
2410
|
+
se(pt) && pt === dn || X === "translate exists" && !pt) {
|
|
2411
|
+
const [tt, Pa] = P();
|
|
2412
|
+
if (process.env.NODE_ENV !== "production" && n && D(tt) && Be(X, Pa) && (S && (mn(O, tt) || Bs(T, tt)) && (ge(Q.FALLBACK_TO_ROOT, {
|
|
2413
|
+
key: tt,
|
|
2414
2414
|
type: X
|
|
2415
2415
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
2416
2416
|
const { __v_emitter: _r } = w;
|
|
2417
|
-
_r &&
|
|
2417
|
+
_r && S && _r.emit("fallback", {
|
|
2418
2418
|
type: X,
|
|
2419
|
-
key:
|
|
2419
|
+
key: tt,
|
|
2420
2420
|
to: "global",
|
|
2421
|
-
groupId: `${X}:${
|
|
2421
|
+
groupId: `${X}:${tt}`
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
return n &&
|
|
2424
|
+
return n && S ? ne(n) : Ge(tt);
|
|
2425
2425
|
} else {
|
|
2426
2426
|
if (Yt(pt))
|
|
2427
2427
|
return pt;
|
|
2428
2428
|
throw oe(G.UNEXPECTED_RETURN_TYPE);
|
|
2429
2429
|
}
|
|
2430
2430
|
};
|
|
2431
|
-
function mt(...
|
|
2432
|
-
return Ne((P) => Reflect.apply(Dr, null, [P, ...
|
|
2431
|
+
function mt(...k) {
|
|
2432
|
+
return Ne((P) => Reflect.apply(Dr, null, [P, ...k]), () => Sn(...k), "translate", (P) => Reflect.apply(P.t, P, [...k]), (P) => P, (P) => D(P));
|
|
2433
2433
|
}
|
|
2434
|
-
function _t(...
|
|
2435
|
-
const [P, X, ne] =
|
|
2434
|
+
function _t(...k) {
|
|
2435
|
+
const [P, X, ne] = k;
|
|
2436
2436
|
if (ne && !j(ne))
|
|
2437
2437
|
throw oe(G.INVALID_ARGUMENT);
|
|
2438
2438
|
return mt(P, X, fe({ resolvedMessage: !0 }, ne || {}));
|
|
2439
2439
|
}
|
|
2440
|
-
function It(...
|
|
2441
|
-
return Ne((P) => Reflect.apply(xr, null, [P, ...
|
|
2440
|
+
function It(...k) {
|
|
2441
|
+
return Ne((P) => Reflect.apply(xr, null, [P, ...k]), () => An(...k), "datetime format", (P) => Reflect.apply(P.d, P, [...k]), () => an, (P) => D(P));
|
|
2442
2442
|
}
|
|
2443
|
-
function kt(...
|
|
2444
|
-
return Ne((P) => Reflect.apply($r, null, [P, ...
|
|
2443
|
+
function kt(...k) {
|
|
2444
|
+
return Ne((P) => Reflect.apply($r, null, [P, ...k]), () => Cn(...k), "number format", (P) => Reflect.apply(P.n, P, [...k]), () => an, (P) => D(P));
|
|
2445
2445
|
}
|
|
2446
|
-
function St(
|
|
2447
|
-
return
|
|
2446
|
+
function St(k) {
|
|
2447
|
+
return k.map((P) => D(P) || se(P) || H(P) ? Wr(String(P)) : P);
|
|
2448
2448
|
}
|
|
2449
|
-
const
|
|
2449
|
+
const Qe = {
|
|
2450
2450
|
normalize: St,
|
|
2451
|
-
interpolate: (
|
|
2451
|
+
interpolate: (k) => k,
|
|
2452
2452
|
type: "vnode"
|
|
2453
2453
|
};
|
|
2454
|
-
function He(...
|
|
2454
|
+
function He(...k) {
|
|
2455
2455
|
return Ne(
|
|
2456
2456
|
(P) => {
|
|
2457
2457
|
let X;
|
|
2458
2458
|
const ne = P;
|
|
2459
2459
|
try {
|
|
2460
|
-
ne.processor =
|
|
2460
|
+
ne.processor = Qe, X = Reflect.apply(Dr, null, [ne, ...k]);
|
|
2461
2461
|
} finally {
|
|
2462
2462
|
ne.processor = null;
|
|
2463
2463
|
}
|
|
2464
2464
|
return X;
|
|
2465
2465
|
},
|
|
2466
|
-
() =>
|
|
2466
|
+
() => Sn(...k),
|
|
2467
2467
|
"translate",
|
|
2468
2468
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2469
|
-
(P) => P[
|
|
2469
|
+
(P) => P[Pn](...k),
|
|
2470
2470
|
(P) => [Wr(P)],
|
|
2471
2471
|
(P) => J(P)
|
|
2472
2472
|
);
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function et(...k) {
|
|
2475
2475
|
return Ne(
|
|
2476
|
-
(P) => Reflect.apply($r, null, [P, ...
|
|
2477
|
-
() =>
|
|
2476
|
+
(P) => Reflect.apply($r, null, [P, ...k]),
|
|
2477
|
+
() => Cn(...k),
|
|
2478
2478
|
"number format",
|
|
2479
2479
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2480
|
-
(P) => P[
|
|
2480
|
+
(P) => P[Mn](...k),
|
|
2481
2481
|
Hr,
|
|
2482
2482
|
(P) => D(P) || J(P)
|
|
2483
2483
|
);
|
|
2484
2484
|
}
|
|
2485
|
-
function At(...
|
|
2485
|
+
function At(...k) {
|
|
2486
2486
|
return Ne(
|
|
2487
|
-
(P) => Reflect.apply(xr, null, [P, ...
|
|
2488
|
-
() =>
|
|
2487
|
+
(P) => Reflect.apply(xr, null, [P, ...k]),
|
|
2488
|
+
() => An(...k),
|
|
2489
2489
|
"datetime format",
|
|
2490
2490
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2491
|
-
(P) => P[
|
|
2491
|
+
(P) => P[Rn](...k),
|
|
2492
2492
|
Hr,
|
|
2493
2493
|
(P) => D(P) || J(P)
|
|
2494
2494
|
);
|
|
2495
2495
|
}
|
|
2496
|
-
function _(
|
|
2497
|
-
A =
|
|
2496
|
+
function _(k) {
|
|
2497
|
+
A = k, w.pluralRules = A;
|
|
2498
2498
|
}
|
|
2499
|
-
function u(
|
|
2499
|
+
function u(k, P) {
|
|
2500
2500
|
return Ne(() => {
|
|
2501
|
-
if (!
|
|
2501
|
+
if (!k)
|
|
2502
2502
|
return !1;
|
|
2503
|
-
const X = D(P) ? P : c.value, ne = $(X), Ge = w.messageResolver(ne,
|
|
2504
|
-
return i ? Ge != null :
|
|
2505
|
-
}, () => [
|
|
2503
|
+
const X = D(P) ? P : c.value, ne = $(X), Ge = w.messageResolver(ne, k);
|
|
2504
|
+
return i ? Ge != null : Ze(Ge) || Ee(Ge) || D(Ge);
|
|
2505
|
+
}, () => [k], "translate exists", (X) => Reflect.apply(X.te, X, [k, P]), Di, (X) => H(X));
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function L(k) {
|
|
2508
2508
|
let P = null;
|
|
2509
2509
|
const X = Fs(w, h.value, c.value);
|
|
2510
2510
|
for (let ne = 0; ne < X.length; ne++) {
|
|
2511
|
-
const Ge = m.value[X[ne]] || {}, Yt = w.messageResolver(Ge,
|
|
2511
|
+
const Ge = m.value[X[ne]] || {}, Yt = w.messageResolver(Ge, k);
|
|
2512
2512
|
if (Yt != null) {
|
|
2513
2513
|
P = Yt;
|
|
2514
2514
|
break;
|
|
@@ -2516,52 +2516,52 @@ function rr(e = {}, t) {
|
|
|
2516
2516
|
}
|
|
2517
2517
|
return P;
|
|
2518
2518
|
}
|
|
2519
|
-
function F(
|
|
2520
|
-
const P =
|
|
2521
|
-
return P ?? (n ? n.tm(
|
|
2519
|
+
function F(k) {
|
|
2520
|
+
const P = L(k);
|
|
2521
|
+
return P ?? (n ? n.tm(k) || {} : {});
|
|
2522
2522
|
}
|
|
2523
|
-
function $(
|
|
2524
|
-
return m.value[
|
|
2523
|
+
function $(k) {
|
|
2524
|
+
return m.value[k] || {};
|
|
2525
2525
|
}
|
|
2526
|
-
function Y(
|
|
2526
|
+
function Y(k, P) {
|
|
2527
2527
|
if (r) {
|
|
2528
|
-
const X = { [
|
|
2528
|
+
const X = { [k]: P };
|
|
2529
2529
|
for (const ne in X)
|
|
2530
2530
|
sn(X, ne) && Wt(X[ne]);
|
|
2531
|
-
P = X[
|
|
2531
|
+
P = X[k];
|
|
2532
2532
|
}
|
|
2533
|
-
m.value[
|
|
2533
|
+
m.value[k] = P, w.messages = m.value;
|
|
2534
2534
|
}
|
|
2535
|
-
function Ie(
|
|
2536
|
-
m.value[
|
|
2537
|
-
const X = { [
|
|
2535
|
+
function Ie(k, P) {
|
|
2536
|
+
m.value[k] = m.value[k] || {};
|
|
2537
|
+
const X = { [k]: P };
|
|
2538
2538
|
if (r)
|
|
2539
2539
|
for (const ne in X)
|
|
2540
2540
|
sn(X, ne) && Wt(X[ne]);
|
|
2541
|
-
P = X[
|
|
2541
|
+
P = X[k], tn(P, m.value[k]), w.messages = m.value;
|
|
2542
2542
|
}
|
|
2543
|
-
function Re(
|
|
2544
|
-
return f.value[
|
|
2543
|
+
function Re(k) {
|
|
2544
|
+
return f.value[k] || {};
|
|
2545
2545
|
}
|
|
2546
|
-
function ka(
|
|
2547
|
-
f.value[
|
|
2546
|
+
function ka(k, P) {
|
|
2547
|
+
f.value[k] = P, w.datetimeFormats = f.value, Ur(w, k, P);
|
|
2548
2548
|
}
|
|
2549
|
-
function Sa(
|
|
2550
|
-
f.value[
|
|
2549
|
+
function Sa(k, P) {
|
|
2550
|
+
f.value[k] = fe(f.value[k] || {}, P), w.datetimeFormats = f.value, Ur(w, k, P);
|
|
2551
2551
|
}
|
|
2552
|
-
function Aa(
|
|
2553
|
-
return E.value[
|
|
2552
|
+
function Aa(k) {
|
|
2553
|
+
return E.value[k] || {};
|
|
2554
2554
|
}
|
|
2555
|
-
function Ca(
|
|
2556
|
-
E.value[
|
|
2555
|
+
function Ca(k, P) {
|
|
2556
|
+
E.value[k] = P, w.numberFormats = E.value, Vr(w, k, P);
|
|
2557
2557
|
}
|
|
2558
|
-
function wa(
|
|
2559
|
-
E.value[
|
|
2558
|
+
function wa(k, P) {
|
|
2559
|
+
E.value[k] = fe(E.value[k] || {}, P), w.numberFormats = E.value, Vr(w, k, P);
|
|
2560
2560
|
}
|
|
2561
|
-
Gr++, n && Le && (
|
|
2562
|
-
l && (c.value =
|
|
2563
|
-
}),
|
|
2564
|
-
l && (h.value =
|
|
2561
|
+
Gr++, n && Le && (lt(n.locale, (k) => {
|
|
2562
|
+
l && (c.value = k, w.locale = k, Ct(w, c.value, h.value));
|
|
2563
|
+
}), lt(n.fallbackLocale, (k) => {
|
|
2564
|
+
l && (h.value = k, w.fallbackLocale = k, Ct(w, c.value, h.value));
|
|
2565
2565
|
}));
|
|
2566
2566
|
const re = {
|
|
2567
2567
|
id: Gr,
|
|
@@ -2570,15 +2570,15 @@ function rr(e = {}, t) {
|
|
|
2570
2570
|
get inheritLocale() {
|
|
2571
2571
|
return l;
|
|
2572
2572
|
},
|
|
2573
|
-
set inheritLocale(
|
|
2574
|
-
l =
|
|
2573
|
+
set inheritLocale(k) {
|
|
2574
|
+
l = k, k && n && (c.value = n.locale.value, h.value = n.fallbackLocale.value, Ct(w, c.value, h.value));
|
|
2575
2575
|
},
|
|
2576
2576
|
get availableLocales() {
|
|
2577
2577
|
return Object.keys(m.value).sort();
|
|
2578
2578
|
},
|
|
2579
2579
|
messages: R,
|
|
2580
2580
|
get modifiers() {
|
|
2581
|
-
return
|
|
2581
|
+
return y;
|
|
2582
2582
|
},
|
|
2583
2583
|
get pluralRules() {
|
|
2584
2584
|
return A || {};
|
|
@@ -2589,38 +2589,38 @@ function rr(e = {}, t) {
|
|
|
2589
2589
|
get missingWarn() {
|
|
2590
2590
|
return T;
|
|
2591
2591
|
},
|
|
2592
|
-
set missingWarn(
|
|
2593
|
-
T =
|
|
2592
|
+
set missingWarn(k) {
|
|
2593
|
+
T = k, w.missingWarn = T;
|
|
2594
2594
|
},
|
|
2595
2595
|
get fallbackWarn() {
|
|
2596
|
-
return
|
|
2596
|
+
return O;
|
|
2597
2597
|
},
|
|
2598
|
-
set fallbackWarn(
|
|
2599
|
-
|
|
2598
|
+
set fallbackWarn(k) {
|
|
2599
|
+
O = k, w.fallbackWarn = O;
|
|
2600
2600
|
},
|
|
2601
2601
|
get fallbackRoot() {
|
|
2602
|
-
return
|
|
2602
|
+
return S;
|
|
2603
2603
|
},
|
|
2604
|
-
set fallbackRoot(
|
|
2605
|
-
|
|
2604
|
+
set fallbackRoot(k) {
|
|
2605
|
+
S = k;
|
|
2606
2606
|
},
|
|
2607
2607
|
get fallbackFormat() {
|
|
2608
2608
|
return d;
|
|
2609
2609
|
},
|
|
2610
|
-
set fallbackFormat(
|
|
2611
|
-
d =
|
|
2610
|
+
set fallbackFormat(k) {
|
|
2611
|
+
d = k, w.fallbackFormat = d;
|
|
2612
2612
|
},
|
|
2613
2613
|
get warnHtmlMessage() {
|
|
2614
|
-
return
|
|
2614
|
+
return I;
|
|
2615
2615
|
},
|
|
2616
|
-
set warnHtmlMessage(
|
|
2617
|
-
|
|
2616
|
+
set warnHtmlMessage(k) {
|
|
2617
|
+
I = k, w.warnHtmlMessage = k;
|
|
2618
2618
|
},
|
|
2619
2619
|
get escapeParameter() {
|
|
2620
2620
|
return g;
|
|
2621
2621
|
},
|
|
2622
|
-
set escapeParameter(
|
|
2623
|
-
g =
|
|
2622
|
+
set escapeParameter(k) {
|
|
2623
|
+
g = k, w.escapeParameter = k;
|
|
2624
2624
|
},
|
|
2625
2625
|
t: mt,
|
|
2626
2626
|
getLocaleMessage: $,
|
|
@@ -2632,14 +2632,14 @@ function rr(e = {}, t) {
|
|
|
2632
2632
|
setMissingHandler: We,
|
|
2633
2633
|
[ea]: _
|
|
2634
2634
|
};
|
|
2635
|
-
return re.datetimeFormats = V, re.numberFormats = Z, re.rt = _t, re.te = u, re.tm = F, re.d = It, re.n = kt, re.getDateTimeFormat = Re, re.setDateTimeFormat = ka, re.mergeDateTimeFormat = Sa, re.getNumberFormat = Aa, re.setNumberFormat = Ca, re.mergeNumberFormat = wa, re[ta] = s, re[
|
|
2636
|
-
w.__v_emitter =
|
|
2635
|
+
return re.datetimeFormats = V, re.numberFormats = Z, re.rt = _t, re.te = u, re.tm = F, re.d = It, re.n = kt, re.getDateTimeFormat = Re, re.setDateTimeFormat = ka, re.mergeDateTimeFormat = Sa, re.getNumberFormat = Aa, re.setNumberFormat = Ca, re.mergeNumberFormat = wa, re[ta] = s, re[Pn] = He, re[Rn] = At, re[Mn] = et, process.env.NODE_ENV !== "production" && (re[dt] = (k) => {
|
|
2636
|
+
w.__v_emitter = k;
|
|
2637
2637
|
}, re[Vt] = () => {
|
|
2638
2638
|
w.__v_emitter = void 0;
|
|
2639
2639
|
}), re;
|
|
2640
2640
|
}
|
|
2641
2641
|
function xi(e) {
|
|
2642
|
-
const t = D(e.locale) ? e.locale : Nt, n = D(e.fallbackLocale) || J(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = q(e.missing) ? e.missing : void 0, a = H(e.silentTranslationWarn) ||
|
|
2642
|
+
const t = D(e.locale) ? e.locale : Nt, n = D(e.fallbackLocale) || J(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = q(e.missing) ? e.missing : void 0, a = H(e.silentTranslationWarn) || qe(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = H(e.silentFallbackWarn) || qe(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = H(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = W(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, h = q(e.postTranslation) ? e.postTranslation : void 0, m = D(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, E = H(e.sync) ? e.sync : !0;
|
|
2643
2643
|
process.env.NODE_ENV !== "production" && e.formatter && (ge(Q.NOT_SUPPORTED_FORMATTER), void 0), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && (ge(Q.NOT_SUPPORTED_PRESERVE_DIRECTIVE), void 0);
|
|
2644
2644
|
let T = e.messages;
|
|
2645
2645
|
if (W(e.sharedMessages)) {
|
|
@@ -2649,13 +2649,13 @@ function xi(e) {
|
|
|
2649
2649
|
return fe(z, g[w]), A;
|
|
2650
2650
|
}, T || {});
|
|
2651
2651
|
}
|
|
2652
|
-
const { __i18n:
|
|
2652
|
+
const { __i18n: O, __root: S, __injectWithOption: d } = e, p = e.datetimeFormats, v = e.numberFormats, b = e.flatJson, I = e.translateExistCompatible;
|
|
2653
2653
|
return {
|
|
2654
2654
|
locale: t,
|
|
2655
2655
|
fallbackLocale: n,
|
|
2656
2656
|
messages: T,
|
|
2657
|
-
flatJson:
|
|
2658
|
-
datetimeFormats:
|
|
2657
|
+
flatJson: b,
|
|
2658
|
+
datetimeFormats: p,
|
|
2659
2659
|
numberFormats: v,
|
|
2660
2660
|
missing: s,
|
|
2661
2661
|
missingWarn: a,
|
|
@@ -2669,13 +2669,13 @@ function xi(e) {
|
|
|
2669
2669
|
escapeParameter: f,
|
|
2670
2670
|
messageResolver: e.messageResolver,
|
|
2671
2671
|
inheritLocale: E,
|
|
2672
|
-
translateExistCompatible:
|
|
2673
|
-
__i18n:
|
|
2674
|
-
__root:
|
|
2672
|
+
translateExistCompatible: I,
|
|
2673
|
+
__i18n: O,
|
|
2674
|
+
__root: S,
|
|
2675
2675
|
__injectWithOption: d
|
|
2676
2676
|
};
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2678
|
+
function Fn(e = {}, t) {
|
|
2679
2679
|
{
|
|
2680
2680
|
const n = rr(xi(e)), { __extender: s } = e, a = {
|
|
2681
2681
|
// id
|
|
@@ -2938,18 +2938,18 @@ const $i = /* @__PURE__ */ de({
|
|
|
2938
2938
|
/* eslint-enable */
|
|
2939
2939
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2940
2940
|
setup(e, t) {
|
|
2941
|
-
const { slots: n, attrs: s } = t, a = e.i18n ||
|
|
2941
|
+
const { slots: n, attrs: s } = t, a = e.i18n || hn({
|
|
2942
2942
|
useScope: e.scope,
|
|
2943
2943
|
__useComponent: !0
|
|
2944
2944
|
});
|
|
2945
2945
|
return () => {
|
|
2946
2946
|
const r = Object.keys(n).filter((m) => m !== "_"), o = {};
|
|
2947
2947
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = D(e.plural) ? +e.plural : e.plural);
|
|
2948
|
-
const i = Ui(t, r), l = a[
|
|
2949
|
-
return
|
|
2948
|
+
const i = Ui(t, r), l = a[Pn](e.keypath, i, o), c = fe({}, s), h = D(e.tag) || j(e.tag) ? e.tag : sa();
|
|
2949
|
+
return Hn(h, c, l);
|
|
2950
2950
|
};
|
|
2951
2951
|
}
|
|
2952
|
-
}),
|
|
2952
|
+
}), bn = $i;
|
|
2953
2953
|
function Vi(e) {
|
|
2954
2954
|
return J(e) && !D(e[0]);
|
|
2955
2955
|
}
|
|
@@ -2962,11 +2962,11 @@ function aa(e, t, n, s) {
|
|
|
2962
2962
|
const l = s(e.value, o, i);
|
|
2963
2963
|
let c = [o.key];
|
|
2964
2964
|
J(l) ? c = l.map((f, E) => {
|
|
2965
|
-
const T = a[f.type],
|
|
2966
|
-
return Vi(
|
|
2965
|
+
const T = a[f.type], O = T ? T({ [f.type]: f.value, index: E, parts: l }) : [f.value];
|
|
2966
|
+
return Vi(O) && (O[0].key = `${f.type}-${E}`), O;
|
|
2967
2967
|
}) : D(l) && (c = [l]);
|
|
2968
2968
|
const h = fe({}, r), m = D(e.tag) || j(e.tag) ? e.tag : sa();
|
|
2969
|
-
return
|
|
2969
|
+
return Hn(m, h, c);
|
|
2970
2970
|
};
|
|
2971
2971
|
}
|
|
2972
2972
|
const Wi = /* @__PURE__ */ de({
|
|
@@ -2984,13 +2984,13 @@ const Wi = /* @__PURE__ */ de({
|
|
|
2984
2984
|
/* eslint-enable */
|
|
2985
2985
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2986
2986
|
setup(e, t) {
|
|
2987
|
-
const n = e.i18n ||
|
|
2987
|
+
const n = e.i18n || hn({
|
|
2988
2988
|
useScope: "parent",
|
|
2989
2989
|
__useComponent: !0
|
|
2990
2990
|
});
|
|
2991
2991
|
return aa(e, t, qs, (...s) => (
|
|
2992
2992
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2993
|
-
n[
|
|
2993
|
+
n[Mn](...s)
|
|
2994
2994
|
));
|
|
2995
2995
|
}
|
|
2996
2996
|
}), Yr = Wi, Bi = /* @__PURE__ */ de({
|
|
@@ -3008,13 +3008,13 @@ const Wi = /* @__PURE__ */ de({
|
|
|
3008
3008
|
/* eslint-enable */
|
|
3009
3009
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3010
3010
|
setup(e, t) {
|
|
3011
|
-
const n = e.i18n ||
|
|
3011
|
+
const n = e.i18n || hn({
|
|
3012
3012
|
useScope: "parent",
|
|
3013
3013
|
__useComponent: !0
|
|
3014
3014
|
});
|
|
3015
3015
|
return aa(e, t, Ks, (...s) => (
|
|
3016
3016
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3017
|
-
n[
|
|
3017
|
+
n[Rn](...s)
|
|
3018
3018
|
));
|
|
3019
3019
|
}
|
|
3020
3020
|
}), Xr = Bi;
|
|
@@ -3043,7 +3043,7 @@ function Gi(e) {
|
|
|
3043
3043
|
return {
|
|
3044
3044
|
created: (o, i) => {
|
|
3045
3045
|
const [l, c] = t(i);
|
|
3046
|
-
Le && e.global === c && (o.__i18nWatcher =
|
|
3046
|
+
Le && e.global === c && (o.__i18nWatcher = lt(c.locale, () => {
|
|
3047
3047
|
i.instance && i.instance.$forceUpdate();
|
|
3048
3048
|
})), o.__composer = c, o.textContent = l;
|
|
3049
3049
|
},
|
|
@@ -3081,10 +3081,10 @@ function Kr(e) {
|
|
|
3081
3081
|
function ji(e, t, ...n) {
|
|
3082
3082
|
const s = W(n[0]) ? n[0] : {}, a = !!s.useI18nComponentName, r = H(s.globalInstall) ? s.globalInstall : !0;
|
|
3083
3083
|
process.env.NODE_ENV !== "production" && r && a && (ge(Q.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
3084
|
-
name:
|
|
3085
|
-
}), void 0), r && ([a ? "i18n" :
|
|
3084
|
+
name: bn.name
|
|
3085
|
+
}), void 0), r && ([a ? "i18n" : bn.name, "I18nT"].forEach((o) => e.component(o, bn)), [Yr.name, "I18nN"].forEach((o) => e.component(o, Yr)), [Xr.name, "I18nD"].forEach((o) => e.component(o, Xr))), e.directive("t", Gi(t));
|
|
3086
3086
|
}
|
|
3087
|
-
const
|
|
3087
|
+
const vn = {
|
|
3088
3088
|
"vue-devtools-plugin-vue-i18n": "Vue I18n devtools",
|
|
3089
3089
|
"vue-i18n-resource-inspector": "I18n Resources",
|
|
3090
3090
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -3093,13 +3093,13 @@ const En = {
|
|
|
3093
3093
|
}, Xi = {
|
|
3094
3094
|
"vue-i18n-timeline": 16764185
|
|
3095
3095
|
}, oa = "vue-i18n: composer properties";
|
|
3096
|
-
let
|
|
3096
|
+
let xn;
|
|
3097
3097
|
async function zi(e, t) {
|
|
3098
3098
|
return new Promise((n, s) => {
|
|
3099
3099
|
try {
|
|
3100
3100
|
Ci({
|
|
3101
3101
|
id: "vue-devtools-plugin-vue-i18n",
|
|
3102
|
-
label:
|
|
3102
|
+
label: vn[
|
|
3103
3103
|
"vue-devtools-plugin-vue-i18n"
|
|
3104
3104
|
/* VueDevToolsIDs.PLUGIN */
|
|
3105
3105
|
],
|
|
@@ -3110,13 +3110,13 @@ async function zi(e, t) {
|
|
|
3110
3110
|
app: e
|
|
3111
3111
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3112
3112
|
}, (a) => {
|
|
3113
|
-
|
|
3113
|
+
xn = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
3114
3114
|
Ki(o, i, t);
|
|
3115
3115
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
3116
3116
|
o.vnode.el && o.vnode.el.__VUE_I18N__ && i && (t.mode === "legacy" ? o.vnode.el.__VUE_I18N__ !== t.global.__composer && qr(i, o.vnode.el.__VUE_I18N__) : qr(i, o.vnode.el.__VUE_I18N__));
|
|
3117
3117
|
}), a.addInspector({
|
|
3118
3118
|
id: "vue-i18n-resource-inspector",
|
|
3119
|
-
label:
|
|
3119
|
+
label: vn[
|
|
3120
3120
|
"vue-i18n-resource-inspector"
|
|
3121
3121
|
/* VueDevToolsIDs.CUSTOM_INSPECTOR */
|
|
3122
3122
|
],
|
|
@@ -3145,7 +3145,7 @@ async function zi(e, t) {
|
|
|
3145
3145
|
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && sl(o, t);
|
|
3146
3146
|
}), a.addTimelineLayer({
|
|
3147
3147
|
id: "vue-i18n-timeline",
|
|
3148
|
-
label:
|
|
3148
|
+
label: vn[
|
|
3149
3149
|
"vue-i18n-timeline"
|
|
3150
3150
|
/* VueDevToolsIDs.TIMELINE */
|
|
3151
3151
|
],
|
|
@@ -3217,7 +3217,7 @@ function ar(e) {
|
|
|
3217
3217
|
const t = {};
|
|
3218
3218
|
return Object.keys(e).forEach((n) => {
|
|
3219
3219
|
const s = e[n];
|
|
3220
|
-
q(s) && "source" in s ? t[n] = Qi(s) :
|
|
3220
|
+
q(s) && "source" in s ? t[n] = Qi(s) : Ze(s) && s.loc && s.loc.source ? t[n] = s.loc.source : j(s) ? t[n] = ar(s) : t[n] = s;
|
|
3221
3221
|
}), t;
|
|
3222
3222
|
}
|
|
3223
3223
|
const qi = {
|
|
@@ -3337,9 +3337,9 @@ function rl(e) {
|
|
|
3337
3337
|
return t;
|
|
3338
3338
|
}
|
|
3339
3339
|
function Bt(e, t) {
|
|
3340
|
-
if (
|
|
3340
|
+
if (xn) {
|
|
3341
3341
|
let n;
|
|
3342
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
3342
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), xn.addTimelineEvent({
|
|
3343
3343
|
layerId: "vue-i18n-timeline",
|
|
3344
3344
|
event: {
|
|
3345
3345
|
title: e,
|
|
@@ -3362,7 +3362,7 @@ function sl(e, t) {
|
|
|
3362
3362
|
function al(e, t, n) {
|
|
3363
3363
|
return {
|
|
3364
3364
|
beforeCreate() {
|
|
3365
|
-
const s =
|
|
3365
|
+
const s = it();
|
|
3366
3366
|
if (!s)
|
|
3367
3367
|
throw oe(G.UNEXPECTED_ERROR);
|
|
3368
3368
|
const a = this.$options;
|
|
@@ -3371,7 +3371,7 @@ function al(e, t, n) {
|
|
|
3371
3371
|
if (a.__i18n && (r.__i18n = a.__i18n), r.__root = t, this === this.$root)
|
|
3372
3372
|
this.$i18n = Zr(e, r);
|
|
3373
3373
|
else {
|
|
3374
|
-
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n =
|
|
3374
|
+
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = Fn(r);
|
|
3375
3375
|
const o = this.$i18n;
|
|
3376
3376
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3377
3377
|
}
|
|
@@ -3379,7 +3379,7 @@ function al(e, t, n) {
|
|
|
3379
3379
|
if (this === this.$root)
|
|
3380
3380
|
this.$i18n = Zr(e, a);
|
|
3381
3381
|
else {
|
|
3382
|
-
this.$i18n =
|
|
3382
|
+
this.$i18n = Fn({
|
|
3383
3383
|
__i18n: a.__i18n,
|
|
3384
3384
|
__injectWithOption: !0,
|
|
3385
3385
|
__extender: n.__vueI18nExtend,
|
|
@@ -3401,7 +3401,7 @@ function al(e, t, n) {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
},
|
|
3403
3403
|
unmounted() {
|
|
3404
|
-
const s =
|
|
3404
|
+
const s = it();
|
|
3405
3405
|
if (!s)
|
|
3406
3406
|
throw oe(G.UNEXPECTED_ERROR);
|
|
3407
3407
|
const a = this.$i18n;
|
|
@@ -3411,7 +3411,7 @@ function al(e, t, n) {
|
|
|
3411
3411
|
}
|
|
3412
3412
|
function Zr(e, t) {
|
|
3413
3413
|
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[ea](t.pluralizationRules || e.pluralizationRules);
|
|
3414
|
-
const n =
|
|
3414
|
+
const n = _n(e.locale, {
|
|
3415
3415
|
messages: t.messages,
|
|
3416
3416
|
__i18n: t.__i18n
|
|
3417
3417
|
});
|
|
@@ -3446,23 +3446,23 @@ function il(e = {}, t) {
|
|
|
3446
3446
|
const d = T[0];
|
|
3447
3447
|
f.__composerExtend = d.__composerExtend, f.__vueI18nExtend = d.__vueI18nExtend;
|
|
3448
3448
|
}
|
|
3449
|
-
let
|
|
3450
|
-
!n && s && (
|
|
3451
|
-
const
|
|
3449
|
+
let O = null;
|
|
3450
|
+
!n && s && (O = gl(E, f.global)), __VUE_I18N_FULL_INSTALL__ && ji(E, f, ...T), __VUE_I18N_LEGACY_API__ && n && E.mixin(al(i, i.__composer, f));
|
|
3451
|
+
const S = E.unmount;
|
|
3452
3452
|
if (E.unmount = () => {
|
|
3453
|
-
|
|
3453
|
+
O && O(), f.dispose(), S();
|
|
3454
3454
|
}, process.env.NODE_ENV !== "production") {
|
|
3455
3455
|
if (!await zi(E, f))
|
|
3456
3456
|
throw oe(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3457
|
-
const
|
|
3457
|
+
const p = Qn();
|
|
3458
3458
|
if (n) {
|
|
3459
3459
|
const v = i;
|
|
3460
|
-
v.__enableEmitter && v.__enableEmitter(
|
|
3460
|
+
v.__enableEmitter && v.__enableEmitter(p);
|
|
3461
3461
|
} else {
|
|
3462
3462
|
const v = i;
|
|
3463
|
-
v[dt] && v[dt](
|
|
3463
|
+
v[dt] && v[dt](p);
|
|
3464
3464
|
}
|
|
3465
|
-
|
|
3465
|
+
p.on("*", Bt);
|
|
3466
3466
|
}
|
|
3467
3467
|
},
|
|
3468
3468
|
// global accessor
|
|
@@ -3484,8 +3484,8 @@ function il(e = {}, t) {
|
|
|
3484
3484
|
return f;
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
|
-
function
|
|
3488
|
-
const t =
|
|
3487
|
+
function hn(e = {}) {
|
|
3488
|
+
const t = it();
|
|
3489
3489
|
if (t == null)
|
|
3490
3490
|
throw oe(G.MUST_BE_CALL_SETUP_TOP);
|
|
3491
3491
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -3506,14 +3506,14 @@ function pn(e = {}) {
|
|
|
3506
3506
|
let i = o.__getInstance(t);
|
|
3507
3507
|
if (i == null) {
|
|
3508
3508
|
const l = fe({}, e);
|
|
3509
|
-
"__i18n" in a && (l.__i18n = a.__i18n), s && (l.__root = s), i = rr(l), o.__composerExtend && (i[
|
|
3509
|
+
"__i18n" in a && (l.__i18n = a.__i18n), s && (l.__root = s), i = rr(l), o.__composerExtend && (i[Dn] = o.__composerExtend(i)), _l(o, t, i), o.__setInstance(t, i);
|
|
3510
3510
|
}
|
|
3511
3511
|
return i;
|
|
3512
3512
|
}
|
|
3513
3513
|
function ll(e, t, n) {
|
|
3514
3514
|
const s = Da();
|
|
3515
3515
|
{
|
|
3516
|
-
const a = __VUE_I18N_LEGACY_API__ && t ? s.run(() =>
|
|
3516
|
+
const a = __VUE_I18N_LEGACY_API__ && t ? s.run(() => Fn(e)) : s.run(() => rr(e));
|
|
3517
3517
|
if (a == null)
|
|
3518
3518
|
throw oe(G.UNEXPECTED_ERROR);
|
|
3519
3519
|
return [s, a];
|
|
@@ -3521,14 +3521,14 @@ function ll(e, t, n) {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
function cl(e) {
|
|
3523
3523
|
{
|
|
3524
|
-
const t =
|
|
3524
|
+
const t = Gn(e.isCE ? ol : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3525
3525
|
if (!t)
|
|
3526
3526
|
throw oe(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
|
|
3527
3527
|
return t;
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
3530
|
function ul(e, t) {
|
|
3531
|
-
return
|
|
3531
|
+
return fn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3532
3532
|
}
|
|
3533
3533
|
function fl(e) {
|
|
3534
3534
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -3565,8 +3565,8 @@ function _l(e, t, n) {
|
|
|
3565
3565
|
}, t), Ot(() => {
|
|
3566
3566
|
const a = n;
|
|
3567
3567
|
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (s && s.off("*", Bt), a[Vt] && a[Vt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3568
|
-
const r = a[
|
|
3569
|
-
r && (r(), delete a[
|
|
3568
|
+
const r = a[Dn];
|
|
3569
|
+
r && (r(), delete a[Dn]);
|
|
3570
3570
|
}, t);
|
|
3571
3571
|
}
|
|
3572
3572
|
function hl(e, t, n, s = {}) {
|
|
@@ -3579,7 +3579,7 @@ function hl(e, t, n, s = {}) {
|
|
|
3579
3579
|
), l = ee(
|
|
3580
3580
|
// prettier-ignore
|
|
3581
3581
|
!a || o ? n.fallbackLocale.value : D(s.fallbackLocale) || J(s.fallbackLocale) || W(s.fallbackLocale) || s.fallbackLocale === !1 ? s.fallbackLocale : i.value
|
|
3582
|
-
), c = ee(
|
|
3582
|
+
), c = ee(_n(i.value, s)), h = ee(W(s.datetimeFormats) ? s.datetimeFormats : { [i.value]: {} }), m = ee(W(s.numberFormats) ? s.numberFormats : { [i.value]: {} }), f = a ? n.missingWarn : H(s.missingWarn) || qe(s.missingWarn) ? s.missingWarn : !0, E = a ? n.fallbackWarn : H(s.fallbackWarn) || qe(s.fallbackWarn) ? s.fallbackWarn : !0, T = a ? n.fallbackRoot : H(s.fallbackRoot) ? s.fallbackRoot : !0, O = !!s.fallbackFormat, S = q(s.missing) ? s.missing : null, d = q(s.postTranslation) ? s.postTranslation : null, p = a ? n.warnHtmlMessage : H(s.warnHtmlMessage) ? s.warnHtmlMessage : !0, v = !!s.escapeParameter, b = a ? n.modifiers : W(s.modifiers) ? s.modifiers : {}, I = s.pluralRules || a && n.pluralRules;
|
|
3583
3583
|
function g() {
|
|
3584
3584
|
return [
|
|
3585
3585
|
i.value,
|
|
@@ -3589,7 +3589,7 @@ function hl(e, t, n, s = {}) {
|
|
|
3589
3589
|
m.value
|
|
3590
3590
|
];
|
|
3591
3591
|
}
|
|
3592
|
-
const
|
|
3592
|
+
const y = ue({
|
|
3593
3593
|
get: () => r.value ? r.value.locale.value : i.value,
|
|
3594
3594
|
set: (u) => {
|
|
3595
3595
|
r.value && (r.value.locale.value = u), i.value = u;
|
|
@@ -3607,7 +3607,7 @@ function hl(e, t, n, s = {}) {
|
|
|
3607
3607
|
r.value && r.value.setPostTranslationHandler(u);
|
|
3608
3608
|
}
|
|
3609
3609
|
function R() {
|
|
3610
|
-
return r.value ? r.value.getMissingHandler() :
|
|
3610
|
+
return r.value ? r.value.getMissingHandler() : S;
|
|
3611
3611
|
}
|
|
3612
3612
|
function V(u) {
|
|
3613
3613
|
r.value && r.value.setMissingHandler(u);
|
|
@@ -3630,41 +3630,41 @@ function hl(e, t, n, s = {}) {
|
|
|
3630
3630
|
function Be(u) {
|
|
3631
3631
|
return r.value ? r.value.tm(u) : {};
|
|
3632
3632
|
}
|
|
3633
|
-
function Ne(u,
|
|
3634
|
-
return r.value ? r.value.te(u,
|
|
3633
|
+
function Ne(u, L) {
|
|
3634
|
+
return r.value ? r.value.te(u, L) : !1;
|
|
3635
3635
|
}
|
|
3636
3636
|
function mt(u) {
|
|
3637
3637
|
return r.value ? r.value.getLocaleMessage(u) : {};
|
|
3638
3638
|
}
|
|
3639
|
-
function _t(u,
|
|
3640
|
-
r.value && (r.value.setLocaleMessage(u,
|
|
3639
|
+
function _t(u, L) {
|
|
3640
|
+
r.value && (r.value.setLocaleMessage(u, L), c.value[u] = L);
|
|
3641
3641
|
}
|
|
3642
|
-
function It(u,
|
|
3643
|
-
r.value && r.value.mergeLocaleMessage(u,
|
|
3642
|
+
function It(u, L) {
|
|
3643
|
+
r.value && r.value.mergeLocaleMessage(u, L);
|
|
3644
3644
|
}
|
|
3645
3645
|
function kt(u) {
|
|
3646
3646
|
return r.value ? r.value.getDateTimeFormat(u) : {};
|
|
3647
3647
|
}
|
|
3648
|
-
function St(u,
|
|
3649
|
-
r.value && (r.value.setDateTimeFormat(u,
|
|
3648
|
+
function St(u, L) {
|
|
3649
|
+
r.value && (r.value.setDateTimeFormat(u, L), h.value[u] = L);
|
|
3650
3650
|
}
|
|
3651
|
-
function ht(u,
|
|
3652
|
-
r.value && r.value.mergeDateTimeFormat(u,
|
|
3651
|
+
function ht(u, L) {
|
|
3652
|
+
r.value && r.value.mergeDateTimeFormat(u, L);
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3654
|
+
function Qe(u) {
|
|
3655
3655
|
return r.value ? r.value.getNumberFormat(u) : {};
|
|
3656
3656
|
}
|
|
3657
|
-
function He(u,
|
|
3658
|
-
r.value && (r.value.setNumberFormat(u,
|
|
3657
|
+
function He(u, L) {
|
|
3658
|
+
r.value && (r.value.setNumberFormat(u, L), m.value[u] = L);
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3661
|
-
r.value && r.value.mergeNumberFormat(u,
|
|
3660
|
+
function et(u, L) {
|
|
3661
|
+
r.value && r.value.mergeNumberFormat(u, L);
|
|
3662
3662
|
}
|
|
3663
3663
|
const At = {
|
|
3664
3664
|
get id() {
|
|
3665
3665
|
return r.value ? r.value.id : -1;
|
|
3666
3666
|
},
|
|
3667
|
-
locale:
|
|
3667
|
+
locale: y,
|
|
3668
3668
|
fallbackLocale: A,
|
|
3669
3669
|
messages: w,
|
|
3670
3670
|
datetimeFormats: z,
|
|
@@ -3679,10 +3679,10 @@ function hl(e, t, n, s = {}) {
|
|
|
3679
3679
|
return r.value ? r.value.availableLocales : Object.keys(c.value);
|
|
3680
3680
|
},
|
|
3681
3681
|
get modifiers() {
|
|
3682
|
-
return r.value ? r.value.modifiers :
|
|
3682
|
+
return r.value ? r.value.modifiers : b;
|
|
3683
3683
|
},
|
|
3684
3684
|
get pluralRules() {
|
|
3685
|
-
return r.value ? r.value.pluralRules :
|
|
3685
|
+
return r.value ? r.value.pluralRules : I;
|
|
3686
3686
|
},
|
|
3687
3687
|
get isGlobal() {
|
|
3688
3688
|
return r.value ? r.value.isGlobal : !1;
|
|
@@ -3706,13 +3706,13 @@ function hl(e, t, n, s = {}) {
|
|
|
3706
3706
|
r.value && (r.value.fallbackRoot = u);
|
|
3707
3707
|
},
|
|
3708
3708
|
get fallbackFormat() {
|
|
3709
|
-
return r.value ? r.value.fallbackFormat :
|
|
3709
|
+
return r.value ? r.value.fallbackFormat : O;
|
|
3710
3710
|
},
|
|
3711
3711
|
set fallbackFormat(u) {
|
|
3712
3712
|
r.value && (r.value.fallbackFormat = u);
|
|
3713
3713
|
},
|
|
3714
3714
|
get warnHtmlMessage() {
|
|
3715
|
-
return r.value ? r.value.warnHtmlMessage :
|
|
3715
|
+
return r.value ? r.value.warnHtmlMessage : p;
|
|
3716
3716
|
},
|
|
3717
3717
|
set warnHtmlMessage(u) {
|
|
3718
3718
|
r.value && (r.value.warnHtmlMessage = u);
|
|
@@ -3739,18 +3739,18 @@ function hl(e, t, n, s = {}) {
|
|
|
3739
3739
|
getDateTimeFormat: kt,
|
|
3740
3740
|
setDateTimeFormat: St,
|
|
3741
3741
|
mergeDateTimeFormat: ht,
|
|
3742
|
-
getNumberFormat:
|
|
3742
|
+
getNumberFormat: Qe,
|
|
3743
3743
|
setNumberFormat: He,
|
|
3744
|
-
mergeNumberFormat:
|
|
3744
|
+
mergeNumberFormat: et
|
|
3745
3745
|
};
|
|
3746
3746
|
function _(u) {
|
|
3747
|
-
u.locale.value = i.value, u.fallbackLocale.value = l.value, Object.keys(c.value).forEach((
|
|
3748
|
-
u.mergeLocaleMessage(
|
|
3749
|
-
}), Object.keys(h.value).forEach((
|
|
3750
|
-
u.mergeDateTimeFormat(
|
|
3751
|
-
}), Object.keys(m.value).forEach((
|
|
3752
|
-
u.mergeNumberFormat(
|
|
3753
|
-
}), u.escapeParameter = v, u.fallbackFormat =
|
|
3747
|
+
u.locale.value = i.value, u.fallbackLocale.value = l.value, Object.keys(c.value).forEach((L) => {
|
|
3748
|
+
u.mergeLocaleMessage(L, c.value[L]);
|
|
3749
|
+
}), Object.keys(h.value).forEach((L) => {
|
|
3750
|
+
u.mergeDateTimeFormat(L, h.value[L]);
|
|
3751
|
+
}), Object.keys(m.value).forEach((L) => {
|
|
3752
|
+
u.mergeNumberFormat(L, m.value[L]);
|
|
3753
|
+
}), u.escapeParameter = v, u.fallbackFormat = O, u.fallbackRoot = T, u.fallbackWarn = E, u.missingWarn = f, u.warnHtmlMessage = p;
|
|
3754
3754
|
}
|
|
3755
3755
|
return ys(() => {
|
|
3756
3756
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
@@ -3837,8 +3837,8 @@ const ua = (e = ".stack-tab__container *") => {
|
|
|
3837
3837
|
);
|
|
3838
3838
|
return t.length ? Math.max(...t.filter((n) => n < 9e4)) + 1 : 1;
|
|
3839
3839
|
};
|
|
3840
|
-
var
|
|
3841
|
-
class
|
|
3840
|
+
var st = /* @__PURE__ */ ((e) => (e.WHEEL = "wheel", e.BUTTON = "button", e.BOTH = "both", e))(st || {});
|
|
3841
|
+
class En {
|
|
3842
3842
|
//
|
|
3843
3843
|
constructor(t) {
|
|
3844
3844
|
// 存储的Map
|
|
@@ -3960,11 +3960,11 @@ const vl = {
|
|
|
3960
3960
|
const n = () => {
|
|
3961
3961
|
const r = {};
|
|
3962
3962
|
return t(e, r), r;
|
|
3963
|
-
}, s =
|
|
3963
|
+
}, s = Gn("locales");
|
|
3964
3964
|
return {
|
|
3965
3965
|
getI18n: () => {
|
|
3966
3966
|
const r = { ...n(), ...s.messages };
|
|
3967
|
-
return
|
|
3967
|
+
return hn({
|
|
3968
3968
|
useScope: "local",
|
|
3969
3969
|
locale: s.locale,
|
|
3970
3970
|
messages: r
|
|
@@ -3972,7 +3972,7 @@ const vl = {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
};
|
|
3974
3974
|
};
|
|
3975
|
-
function
|
|
3975
|
+
function Tn(e) {
|
|
3976
3976
|
if (!ir(e))
|
|
3977
3977
|
throw new Error("Parameter was not an error");
|
|
3978
3978
|
}
|
|
@@ -4011,16 +4011,16 @@ class ye extends Error {
|
|
|
4011
4011
|
}
|
|
4012
4012
|
}
|
|
4013
4013
|
static cause(t) {
|
|
4014
|
-
return
|
|
4014
|
+
return Tn(t), t._cause && ir(t._cause) ? t._cause : null;
|
|
4015
4015
|
}
|
|
4016
4016
|
static fullStack(t) {
|
|
4017
|
-
|
|
4017
|
+
Tn(t);
|
|
4018
4018
|
const n = ye.cause(t);
|
|
4019
4019
|
return n ? `${t.stack}
|
|
4020
4020
|
caused by: ${ye.fullStack(n)}` : t.stack;
|
|
4021
4021
|
}
|
|
4022
4022
|
static info(t) {
|
|
4023
|
-
|
|
4023
|
+
Tn(t);
|
|
4024
4024
|
const n = {}, s = ye.cause(t);
|
|
4025
4025
|
return s && Object.assign(n, ye.info(s)), t._info && Object.assign(n, t._info), n;
|
|
4026
4026
|
}
|
|
@@ -4191,57 +4191,57 @@ lr.exports;
|
|
|
4191
4191
|
_compress: function(l, c, h) {
|
|
4192
4192
|
if (l == null)
|
|
4193
4193
|
return "";
|
|
4194
|
-
var m, f, E = {}, T = {},
|
|
4194
|
+
var m, f, E = {}, T = {}, O = "", S = "", d = "", p = 2, v = 3, b = 2, I = [], g = 0, y = 0, A;
|
|
4195
4195
|
for (A = 0; A < l.length; A += 1)
|
|
4196
|
-
if (
|
|
4197
|
-
d =
|
|
4196
|
+
if (O = l.charAt(A), Object.prototype.hasOwnProperty.call(E, O) || (E[O] = v++, T[O] = !0), S = d + O, Object.prototype.hasOwnProperty.call(E, S))
|
|
4197
|
+
d = S;
|
|
4198
4198
|
else {
|
|
4199
4199
|
if (Object.prototype.hasOwnProperty.call(T, d)) {
|
|
4200
4200
|
if (d.charCodeAt(0) < 256) {
|
|
4201
|
-
for (m = 0; m <
|
|
4202
|
-
g = g << 1,
|
|
4201
|
+
for (m = 0; m < b; m++)
|
|
4202
|
+
g = g << 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++;
|
|
4203
4203
|
for (f = d.charCodeAt(0), m = 0; m < 8; m++)
|
|
4204
|
-
g = g << 1 | f & 1,
|
|
4204
|
+
g = g << 1 | f & 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = f >> 1;
|
|
4205
4205
|
} else {
|
|
4206
|
-
for (f = 1, m = 0; m <
|
|
4207
|
-
g = g << 1 | f,
|
|
4206
|
+
for (f = 1, m = 0; m < b; m++)
|
|
4207
|
+
g = g << 1 | f, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = 0;
|
|
4208
4208
|
for (f = d.charCodeAt(0), m = 0; m < 16; m++)
|
|
4209
|
-
g = g << 1 | f & 1,
|
|
4209
|
+
g = g << 1 | f & 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = f >> 1;
|
|
4210
4210
|
}
|
|
4211
|
-
|
|
4211
|
+
p--, p == 0 && (p = Math.pow(2, b), b++), delete T[d];
|
|
4212
4212
|
} else
|
|
4213
|
-
for (f = E[d], m = 0; m <
|
|
4214
|
-
g = g << 1 | f & 1,
|
|
4215
|
-
|
|
4213
|
+
for (f = E[d], m = 0; m < b; m++)
|
|
4214
|
+
g = g << 1 | f & 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = f >> 1;
|
|
4215
|
+
p--, p == 0 && (p = Math.pow(2, b), b++), E[S] = v++, d = String(O);
|
|
4216
4216
|
}
|
|
4217
4217
|
if (d !== "") {
|
|
4218
4218
|
if (Object.prototype.hasOwnProperty.call(T, d)) {
|
|
4219
4219
|
if (d.charCodeAt(0) < 256) {
|
|
4220
|
-
for (m = 0; m <
|
|
4221
|
-
g = g << 1,
|
|
4220
|
+
for (m = 0; m < b; m++)
|
|
4221
|
+
g = g << 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++;
|
|
4222
4222
|
for (f = d.charCodeAt(0), m = 0; m < 8; m++)
|
|
4223
|
-
g = g << 1 | f & 1,
|
|
4223
|
+
g = g << 1 | f & 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = f >> 1;
|
|
4224
4224
|
} else {
|
|
4225
|
-
for (f = 1, m = 0; m <
|
|
4226
|
-
g = g << 1 | f,
|
|
4225
|
+
for (f = 1, m = 0; m < b; m++)
|
|
4226
|
+
g = g << 1 | f, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = 0;
|
|
4227
4227
|
for (f = d.charCodeAt(0), m = 0; m < 16; m++)
|
|
4228
|
-
g = g << 1 | f & 1,
|
|
4228
|
+
g = g << 1 | f & 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = f >> 1;
|
|
4229
4229
|
}
|
|
4230
|
-
|
|
4230
|
+
p--, p == 0 && (p = Math.pow(2, b), b++), delete T[d];
|
|
4231
4231
|
} else
|
|
4232
|
-
for (f = E[d], m = 0; m <
|
|
4233
|
-
g = g << 1 | f & 1,
|
|
4234
|
-
|
|
4232
|
+
for (f = E[d], m = 0; m < b; m++)
|
|
4233
|
+
g = g << 1 | f & 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = f >> 1;
|
|
4234
|
+
p--, p == 0 && (p = Math.pow(2, b), b++);
|
|
4235
4235
|
}
|
|
4236
|
-
for (f = 2, m = 0; m <
|
|
4237
|
-
g = g << 1 | f & 1,
|
|
4236
|
+
for (f = 2, m = 0; m < b; m++)
|
|
4237
|
+
g = g << 1 | f & 1, y == c - 1 ? (y = 0, I.push(h(g)), g = 0) : y++, f = f >> 1;
|
|
4238
4238
|
for (; ; )
|
|
4239
|
-
if (g = g << 1,
|
|
4240
|
-
|
|
4239
|
+
if (g = g << 1, y == c - 1) {
|
|
4240
|
+
I.push(h(g));
|
|
4241
4241
|
break;
|
|
4242
4242
|
} else
|
|
4243
|
-
|
|
4244
|
-
return
|
|
4243
|
+
y++;
|
|
4244
|
+
return I.join("");
|
|
4245
4245
|
},
|
|
4246
4246
|
decompress: function(l) {
|
|
4247
4247
|
return l == null ? "" : l == "" ? null : i._decompress(l.length, 32768, function(c) {
|
|
@@ -4249,51 +4249,51 @@ lr.exports;
|
|
|
4249
4249
|
});
|
|
4250
4250
|
},
|
|
4251
4251
|
_decompress: function(l, c, h) {
|
|
4252
|
-
var m = [], f = 4, E = 4, T = 3,
|
|
4252
|
+
var m = [], f = 4, E = 4, T = 3, O = "", S = [], d, p, v, b, I, g, y, A = { val: h(0), position: c, index: 1 };
|
|
4253
4253
|
for (d = 0; d < 3; d += 1)
|
|
4254
4254
|
m[d] = d;
|
|
4255
|
-
for (v = 0,
|
|
4256
|
-
|
|
4255
|
+
for (v = 0, I = Math.pow(2, 2), g = 1; g != I; )
|
|
4256
|
+
b = A.val & A.position, A.position >>= 1, A.position == 0 && (A.position = c, A.val = h(A.index++)), v |= (b > 0 ? 1 : 0) * g, g <<= 1;
|
|
4257
4257
|
switch (v) {
|
|
4258
4258
|
case 0:
|
|
4259
|
-
for (v = 0,
|
|
4260
|
-
|
|
4261
|
-
|
|
4259
|
+
for (v = 0, I = Math.pow(2, 8), g = 1; g != I; )
|
|
4260
|
+
b = A.val & A.position, A.position >>= 1, A.position == 0 && (A.position = c, A.val = h(A.index++)), v |= (b > 0 ? 1 : 0) * g, g <<= 1;
|
|
4261
|
+
y = n(v);
|
|
4262
4262
|
break;
|
|
4263
4263
|
case 1:
|
|
4264
|
-
for (v = 0,
|
|
4265
|
-
|
|
4266
|
-
|
|
4264
|
+
for (v = 0, I = Math.pow(2, 16), g = 1; g != I; )
|
|
4265
|
+
b = A.val & A.position, A.position >>= 1, A.position == 0 && (A.position = c, A.val = h(A.index++)), v |= (b > 0 ? 1 : 0) * g, g <<= 1;
|
|
4266
|
+
y = n(v);
|
|
4267
4267
|
break;
|
|
4268
4268
|
case 2:
|
|
4269
4269
|
return "";
|
|
4270
4270
|
}
|
|
4271
|
-
for (m[3] =
|
|
4271
|
+
for (m[3] = y, p = y, S.push(y); ; ) {
|
|
4272
4272
|
if (A.index > l)
|
|
4273
4273
|
return "";
|
|
4274
|
-
for (v = 0,
|
|
4275
|
-
|
|
4276
|
-
switch (
|
|
4274
|
+
for (v = 0, I = Math.pow(2, T), g = 1; g != I; )
|
|
4275
|
+
b = A.val & A.position, A.position >>= 1, A.position == 0 && (A.position = c, A.val = h(A.index++)), v |= (b > 0 ? 1 : 0) * g, g <<= 1;
|
|
4276
|
+
switch (y = v) {
|
|
4277
4277
|
case 0:
|
|
4278
|
-
for (v = 0,
|
|
4279
|
-
|
|
4280
|
-
m[E++] = n(v),
|
|
4278
|
+
for (v = 0, I = Math.pow(2, 8), g = 1; g != I; )
|
|
4279
|
+
b = A.val & A.position, A.position >>= 1, A.position == 0 && (A.position = c, A.val = h(A.index++)), v |= (b > 0 ? 1 : 0) * g, g <<= 1;
|
|
4280
|
+
m[E++] = n(v), y = E - 1, f--;
|
|
4281
4281
|
break;
|
|
4282
4282
|
case 1:
|
|
4283
|
-
for (v = 0,
|
|
4284
|
-
|
|
4285
|
-
m[E++] = n(v),
|
|
4283
|
+
for (v = 0, I = Math.pow(2, 16), g = 1; g != I; )
|
|
4284
|
+
b = A.val & A.position, A.position >>= 1, A.position == 0 && (A.position = c, A.val = h(A.index++)), v |= (b > 0 ? 1 : 0) * g, g <<= 1;
|
|
4285
|
+
m[E++] = n(v), y = E - 1, f--;
|
|
4286
4286
|
break;
|
|
4287
4287
|
case 2:
|
|
4288
|
-
return
|
|
4288
|
+
return S.join("");
|
|
4289
4289
|
}
|
|
4290
|
-
if (f == 0 && (f = Math.pow(2, T), T++), m[
|
|
4291
|
-
|
|
4292
|
-
else if (
|
|
4293
|
-
|
|
4290
|
+
if (f == 0 && (f = Math.pow(2, T), T++), m[y])
|
|
4291
|
+
O = m[y];
|
|
4292
|
+
else if (y === E)
|
|
4293
|
+
O = p + p.charAt(0);
|
|
4294
4294
|
else
|
|
4295
4295
|
return null;
|
|
4296
|
-
|
|
4296
|
+
S.push(O), m[E++] = p + O.charAt(0), f--, p = O, f == 0 && (f = Math.pow(2, T), T++);
|
|
4297
4297
|
}
|
|
4298
4298
|
}
|
|
4299
4299
|
};
|
|
@@ -4320,7 +4320,7 @@ const Rl = new TextEncoder(), Ml = new TextDecoder("utf-8", { ignoreBOM: !0 }),
|
|
|
4320
4320
|
e[n] = t, e[`${s}${o}`] = t, e[`${a}${r}`] = t, e[`${a}${o}`] = t;
|
|
4321
4321
|
}
|
|
4322
4322
|
return e;
|
|
4323
|
-
})(), Fl = (e) => !(e.length % 2 || !/^[a-fA-F0-9]*$/.test(e)),
|
|
4323
|
+
})(), Fl = (e) => !(e.length % 2 || !/^[a-fA-F0-9]*$/.test(e)), Un = {
|
|
4324
4324
|
/* API */
|
|
4325
4325
|
encode: (e) => {
|
|
4326
4326
|
let t = "";
|
|
@@ -4328,14 +4328,14 @@ const Rl = new TextEncoder(), Ml = new TextDecoder("utf-8", { ignoreBOM: !0 }),
|
|
|
4328
4328
|
t += _a[e[n]];
|
|
4329
4329
|
return t;
|
|
4330
4330
|
},
|
|
4331
|
-
encodeStr: (e) =>
|
|
4331
|
+
encodeStr: (e) => Un.encode(es.encode(e)),
|
|
4332
4332
|
decode: (e) => {
|
|
4333
4333
|
const t = e.length / 2, n = new Uint8Array(t);
|
|
4334
4334
|
for (let s = 0; s < t; s++)
|
|
4335
4335
|
n[s] = Dl[e.slice(s * 2, s * 2 + 2)];
|
|
4336
4336
|
return n;
|
|
4337
4337
|
},
|
|
4338
|
-
decodeStr: (e) => es.decode(
|
|
4338
|
+
decodeStr: (e) => es.decode(Un.decode(e)),
|
|
4339
4339
|
is: Fl
|
|
4340
4340
|
};
|
|
4341
4341
|
function Ft(e) {
|
|
@@ -4351,7 +4351,7 @@ function ha(e, ...t) {
|
|
|
4351
4351
|
if (t.length > 0 && !t.includes(e.length))
|
|
4352
4352
|
throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`);
|
|
4353
4353
|
}
|
|
4354
|
-
function
|
|
4354
|
+
function $n(e, t = !0) {
|
|
4355
4355
|
if (e.destroyed)
|
|
4356
4356
|
throw new Error("Hash instance has been destroyed");
|
|
4357
4357
|
if (t && e.finished)
|
|
@@ -4408,7 +4408,7 @@ class Gl extends Bl {
|
|
|
4408
4408
|
this.buffer32 = on(this.buffer = new Uint8Array(t));
|
|
4409
4409
|
}
|
|
4410
4410
|
update(t) {
|
|
4411
|
-
|
|
4411
|
+
$n(this);
|
|
4412
4412
|
const { blockLen: n, buffer: s, buffer32: a } = this;
|
|
4413
4413
|
t = cr(t);
|
|
4414
4414
|
const r = t.length, o = t.byteOffset, i = t.buffer;
|
|
@@ -4426,7 +4426,7 @@ class Gl extends Bl {
|
|
|
4426
4426
|
return this;
|
|
4427
4427
|
}
|
|
4428
4428
|
digestInto(t) {
|
|
4429
|
-
|
|
4429
|
+
$n(this), pa(t, this);
|
|
4430
4430
|
const { pos: n, buffer32: s } = this;
|
|
4431
4431
|
this.finished = !0, this.buffer.subarray(n).fill(0), this.compress(s, 0, !0);
|
|
4432
4432
|
const a = on(t);
|
|
@@ -4450,11 +4450,11 @@ function Ye(e, t, n, s, a) {
|
|
|
4450
4450
|
function Xe(e, t, n, s, a) {
|
|
4451
4451
|
return e = e + t + a | 0, s = ln(s ^ e, 8), n = n + s | 0, t = ln(t ^ n, 7), { a: e, b: t, c: n, d: s };
|
|
4452
4452
|
}
|
|
4453
|
-
function rs(e, t, n, s, a, r, o, i, l, c, h, m, f, E, T,
|
|
4454
|
-
let
|
|
4455
|
-
for (let
|
|
4456
|
-
({ a, b: l, c: f, d:
|
|
4457
|
-
return { v0: a, v1: r, v2: o, v3: i, v4: l, v5: c, v6: h, v7: m, v8: f, v9: E, v10: T, v11:
|
|
4453
|
+
function rs(e, t, n, s, a, r, o, i, l, c, h, m, f, E, T, O, S, d, p, v) {
|
|
4454
|
+
let b = 0;
|
|
4455
|
+
for (let I = 0; I < s; I++)
|
|
4456
|
+
({ a, b: l, c: f, d: S } = Ye(a, l, f, S, n[t + e[b++]])), { a, b: l, c: f, d: S } = Xe(a, l, f, S, n[t + e[b++]]), { a: r, b: c, c: E, d } = Ye(r, c, E, d, n[t + e[b++]]), { a: r, b: c, c: E, d } = Xe(r, c, E, d, n[t + e[b++]]), { a: o, b: h, c: T, d: p } = Ye(o, h, T, p, n[t + e[b++]]), { a: o, b: h, c: T, d: p } = Xe(o, h, T, p, n[t + e[b++]]), { a: i, b: m, c: O, d: v } = Ye(i, m, O, v, n[t + e[b++]]), { a: i, b: m, c: O, d: v } = Xe(i, m, O, v, n[t + e[b++]]), { a, b: c, c: T, d: v } = Ye(a, c, T, v, n[t + e[b++]]), { a, b: c, c: T, d: v } = Xe(a, c, T, v, n[t + e[b++]]), { a: r, b: h, c: O, d: S } = Ye(r, h, O, S, n[t + e[b++]]), { a: r, b: h, c: O, d: S } = Xe(r, h, O, S, n[t + e[b++]]), { a: o, b: m, c: f, d } = Ye(o, m, f, d, n[t + e[b++]]), { a: o, b: m, c: f, d } = Xe(o, m, f, d, n[t + e[b++]]), { a: i, b: l, c: E, d: p } = Ye(i, l, E, p, n[t + e[b++]]), { a: i, b: l, c: E, d: p } = Xe(i, l, E, p, n[t + e[b++]]);
|
|
4457
|
+
return { v0: a, v1: r, v2: o, v3: i, v4: l, v5: c, v6: h, v7: m, v8: f, v9: E, v10: T, v11: O, v12: S, v13: d, v14: p, v15: v };
|
|
4458
4458
|
}
|
|
4459
4459
|
const ss = /* @__PURE__ */ (() => {
|
|
4460
4460
|
const e = Array.from({ length: 16 }, (s, a) => a), t = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((a) => s[a]), n = [];
|
|
@@ -4489,8 +4489,8 @@ class ur extends Gl {
|
|
|
4489
4489
|
set() {
|
|
4490
4490
|
}
|
|
4491
4491
|
b2Compress(t, n, s, a = 0) {
|
|
4492
|
-
const { state: r, pos: o } = this, { h: i, l } = ns(BigInt(t), !0), { v0: c, v1: h, v2: m, v3: f, v4: E, v5: T, v6:
|
|
4493
|
-
r[0] = c ^ d, r[1] = h ^
|
|
4492
|
+
const { state: r, pos: o } = this, { h: i, l } = ns(BigInt(t), !0), { v0: c, v1: h, v2: m, v3: f, v4: E, v5: T, v6: O, v7: S, v8: d, v9: p, v10: v, v11: b, v12: I, v13: g, v14: y, v15: A } = rs(ss, a, s, 7, r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], Fe[0], Fe[1], Fe[2], Fe[3], i, l, o, n);
|
|
4493
|
+
r[0] = c ^ d, r[1] = h ^ p, r[2] = m ^ v, r[3] = f ^ b, r[4] = E ^ I, r[5] = T ^ g, r[6] = O ^ y, r[7] = S ^ A;
|
|
4494
4494
|
}
|
|
4495
4495
|
compress(t, n = 0, s = !1) {
|
|
4496
4496
|
let a = this.flags;
|
|
@@ -4515,8 +4515,8 @@ class ur extends Gl {
|
|
|
4515
4515
|
}
|
|
4516
4516
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
4517
4517
|
b2CompressOut() {
|
|
4518
|
-
const { state: t, pos: n, flags: s, buffer32: a, bufferOut32: r } = this, { h: o, l: i } = ns(BigInt(this.chunkOut++)), { v0: l, v1: c, v2: h, v3: m, v4: f, v5: E, v6: T, v7:
|
|
4519
|
-
r[0] = l ^
|
|
4518
|
+
const { state: t, pos: n, flags: s, buffer32: a, bufferOut32: r } = this, { h: o, l: i } = ns(BigInt(this.chunkOut++)), { v0: l, v1: c, v2: h, v3: m, v4: f, v5: E, v6: T, v7: O, v8: S, v9: d, v10: p, v11: v, v12: b, v13: I, v14: g, v15: y } = rs(ss, 0, a, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], Fe[0], Fe[1], Fe[2], Fe[3], i, o, n, s);
|
|
4519
|
+
r[0] = l ^ S, r[1] = c ^ d, r[2] = h ^ p, r[3] = m ^ v, r[4] = f ^ b, r[5] = E ^ I, r[6] = T ^ g, r[7] = O ^ y, r[8] = t[0] ^ S, r[9] = t[1] ^ d, r[10] = t[2] ^ p, r[11] = t[3] ^ v, r[12] = t[4] ^ b, r[13] = t[5] ^ I, r[14] = t[6] ^ g, r[15] = t[7] ^ y, this.posOut = 0;
|
|
4520
4520
|
}
|
|
4521
4521
|
finish() {
|
|
4522
4522
|
if (this.finished)
|
|
@@ -4526,7 +4526,7 @@ class ur extends Gl {
|
|
|
4526
4526
|
this.stack.length ? (t |= 4, this.compress(this.buffer32, 0, !0), this.chunksDone = 0, this.pos = this.blockLen) : t |= (this.chunkPos ? 0 : 1) | 2, this.flags = t, this.b2CompressOut();
|
|
4527
4527
|
}
|
|
4528
4528
|
writeInto(t) {
|
|
4529
|
-
|
|
4529
|
+
$n(this, !1), ha(t), this.finish();
|
|
4530
4530
|
const { blockLen: n, bufferOut: s } = this;
|
|
4531
4531
|
for (let a = 0, r = t.length; a < r; ) {
|
|
4532
4532
|
this.posOut >= n && this.b2CompressOut();
|
|
@@ -4576,23 +4576,23 @@ const jl = /* @__PURE__ */ Hl((e) => new ur(e)), ga = (e) => {
|
|
|
4576
4576
|
return r.key > o.key ? i = 1 : r.key < o.key && (i = -1), i;
|
|
4577
4577
|
});
|
|
4578
4578
|
const a = jl(`${e}|${t}|${JSON.stringify(s)}`);
|
|
4579
|
-
return
|
|
4579
|
+
return Un.encode(a);
|
|
4580
4580
|
};
|
|
4581
|
-
function
|
|
4581
|
+
function Nn(e) {
|
|
4582
4582
|
if (e === null || typeof e != "object")
|
|
4583
4583
|
return !1;
|
|
4584
4584
|
const t = Object.getPrototypeOf(e);
|
|
4585
4585
|
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
4586
4586
|
}
|
|
4587
|
-
function
|
|
4588
|
-
if (!
|
|
4589
|
-
return
|
|
4587
|
+
function Vn(e, t, n = ".", s) {
|
|
4588
|
+
if (!Nn(t))
|
|
4589
|
+
return Vn(e, {}, n, s);
|
|
4590
4590
|
const a = Object.assign({}, t);
|
|
4591
4591
|
for (const r in e) {
|
|
4592
4592
|
if (r === "__proto__" || r === "constructor")
|
|
4593
4593
|
continue;
|
|
4594
4594
|
const o = e[r];
|
|
4595
|
-
o != null && (s && s(a, r, o, n) || (Array.isArray(o) && Array.isArray(a[r]) ? a[r] = [...o, ...a[r]] :
|
|
4595
|
+
o != null && (s && s(a, r, o, n) || (Array.isArray(o) && Array.isArray(a[r]) ? a[r] = [...o, ...a[r]] : Nn(o) && Nn(a[r]) ? a[r] = Vn(
|
|
4596
4596
|
o,
|
|
4597
4597
|
a[r],
|
|
4598
4598
|
(n ? `${n}.` : "") + r.toString(),
|
|
@@ -4604,7 +4604,7 @@ function Wn(e, t, n = ".", s) {
|
|
|
4604
4604
|
function Xl(e) {
|
|
4605
4605
|
return (...t) => (
|
|
4606
4606
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
4607
|
-
t.reduce((n, s) =>
|
|
4607
|
+
t.reduce((n, s) => Vn(n, s, "", e), {})
|
|
4608
4608
|
);
|
|
4609
4609
|
}
|
|
4610
4610
|
const Ve = Xl(), fr = (e) => {
|
|
@@ -4625,10 +4625,10 @@ const Ve = Xl(), fr = (e) => {
|
|
|
4625
4625
|
query: s
|
|
4626
4626
|
};
|
|
4627
4627
|
}
|
|
4628
|
-
}, B = ee([]), Kt = [], ce = ee([]),
|
|
4628
|
+
}, B = ee([]), Kt = [], ce = ee([]), rt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Set(), wt = ee(!0), os = "stacktab-active-tab";
|
|
4629
4629
|
let Zt = 0;
|
|
4630
4630
|
const jt = () => {
|
|
4631
|
-
const e =
|
|
4631
|
+
const e = qn(), t = () => B.value.length, n = (M) => {
|
|
4632
4632
|
Kt.splice(0);
|
|
4633
4633
|
for (const C of M) {
|
|
4634
4634
|
const R = Ve(C, {
|
|
@@ -4644,7 +4644,7 @@ const jt = () => {
|
|
|
4644
4644
|
query: Ve(Z.query, {
|
|
4645
4645
|
__tab: V
|
|
4646
4646
|
})
|
|
4647
|
-
}, We = new
|
|
4647
|
+
}, We = new En();
|
|
4648
4648
|
We.push(me);
|
|
4649
4649
|
const Be = {
|
|
4650
4650
|
id: R.id,
|
|
@@ -4659,7 +4659,7 @@ const jt = () => {
|
|
|
4659
4659
|
}
|
|
4660
4660
|
const N = window.sessionStorage.getItem(os);
|
|
4661
4661
|
if (N != null) {
|
|
4662
|
-
const C = JSON.parse(N, (V, Z) => V === "pages" ? new
|
|
4662
|
+
const C = JSON.parse(N, (V, Z) => V === "pages" ? new En(Z) : Z);
|
|
4663
4663
|
let R = !1;
|
|
4664
4664
|
for (const V of B.value)
|
|
4665
4665
|
if (V.id === C.id) {
|
|
@@ -4693,7 +4693,7 @@ const jt = () => {
|
|
|
4693
4693
|
query: M.query
|
|
4694
4694
|
};
|
|
4695
4695
|
if (te === null) {
|
|
4696
|
-
const me = new
|
|
4696
|
+
const me = new En();
|
|
4697
4697
|
me.push(ve), te = {
|
|
4698
4698
|
id: R.id,
|
|
4699
4699
|
title: R.title,
|
|
@@ -4706,7 +4706,7 @@ const jt = () => {
|
|
|
4706
4706
|
}, r(te);
|
|
4707
4707
|
} else
|
|
4708
4708
|
te.active = !0, (te.pages.isEmpty() || te.pages.peek().id !== ve.id) && te.pages.push(ve);
|
|
4709
|
-
return
|
|
4709
|
+
return y(te), rt.has(V) ? C = rt.get(V) : (C = /* @__PURE__ */ de({
|
|
4710
4710
|
name: V,
|
|
4711
4711
|
components: {
|
|
4712
4712
|
DynamicComponent: N
|
|
@@ -4723,7 +4723,7 @@ const jt = () => {
|
|
|
4723
4723
|
pId: V
|
|
4724
4724
|
}, null)]);
|
|
4725
4725
|
}
|
|
4726
|
-
}),
|
|
4726
|
+
}), rt.set(V, C)), I(V), C;
|
|
4727
4727
|
}, l = (M) => {
|
|
4728
4728
|
let N = "";
|
|
4729
4729
|
for (let C = B.value.length - 1; C >= 0; C--)
|
|
@@ -4731,7 +4731,7 @@ const jt = () => {
|
|
|
4731
4731
|
if (!x(B)[C].closable)
|
|
4732
4732
|
return M;
|
|
4733
4733
|
for (const R of x(B)[C].pages.list())
|
|
4734
|
-
d(R.id),
|
|
4734
|
+
d(R.id), p(R.id);
|
|
4735
4735
|
x(B)[C].pages.clear(), B.value.length > 1 && x(B)[C].active && (C === 0 ? N = x(B)[C + 1].id : N = x(B)[C - 1].id), x(B).splice(C, 1);
|
|
4736
4736
|
break;
|
|
4737
4737
|
}
|
|
@@ -4741,7 +4741,7 @@ const jt = () => {
|
|
|
4741
4741
|
for (let N = M.length - 1; N >= 0; N--)
|
|
4742
4742
|
if (M[N].closable) {
|
|
4743
4743
|
for (const C of M[N].pages.list())
|
|
4744
|
-
d(C.id),
|
|
4744
|
+
d(C.id), p(C.id);
|
|
4745
4745
|
x(B)[N].pages.clear(), x(B).splice(N, 1);
|
|
4746
4746
|
}
|
|
4747
4747
|
for (const N of M)
|
|
@@ -4758,7 +4758,7 @@ const jt = () => {
|
|
|
4758
4758
|
C = N[R];
|
|
4759
4759
|
else if (N[R].closable && N[R].id !== M) {
|
|
4760
4760
|
for (const V of N[R].pages.list())
|
|
4761
|
-
d(V.id),
|
|
4761
|
+
d(V.id), p(V.id);
|
|
4762
4762
|
x(B)[R].pages.clear(), x(B).splice(R, 1);
|
|
4763
4763
|
}
|
|
4764
4764
|
C.active ? v() : g(M);
|
|
@@ -4773,7 +4773,7 @@ const jt = () => {
|
|
|
4773
4773
|
for (let R = N; R >= 0; R--)
|
|
4774
4774
|
if (C[R].closable) {
|
|
4775
4775
|
for (const V of C[R].pages.list())
|
|
4776
|
-
d(V.id),
|
|
4776
|
+
d(V.id), p(V.id);
|
|
4777
4777
|
x(B)[R].pages.clear(), x(B).splice(R, 1);
|
|
4778
4778
|
}
|
|
4779
4779
|
for (const R of C)
|
|
@@ -4793,7 +4793,7 @@ const jt = () => {
|
|
|
4793
4793
|
for (let R = N.length - 1; R >= C; R--)
|
|
4794
4794
|
if (N[R].closable) {
|
|
4795
4795
|
for (const V of N[R].pages.list())
|
|
4796
|
-
d(V.id),
|
|
4796
|
+
d(V.id), p(V.id);
|
|
4797
4797
|
x(B)[R].pages.clear(), x(B).splice(R, 1);
|
|
4798
4798
|
}
|
|
4799
4799
|
for (const R of N)
|
|
@@ -4824,20 +4824,20 @@ const jt = () => {
|
|
|
4824
4824
|
M.has(C) && ce.value.splice(N, 1);
|
|
4825
4825
|
}
|
|
4826
4826
|
wt.value = !1;
|
|
4827
|
-
},
|
|
4828
|
-
|
|
4829
|
-
},
|
|
4830
|
-
|
|
4831
|
-
},
|
|
4827
|
+
}, O = (M, N) => {
|
|
4828
|
+
rt.set(M, N);
|
|
4829
|
+
}, S = (M) => rt.get(M), d = (M) => {
|
|
4830
|
+
rt.delete(M);
|
|
4831
|
+
}, p = (M) => {
|
|
4832
4832
|
qt.add(M);
|
|
4833
4833
|
}, v = () => {
|
|
4834
4834
|
for (let M = ce.value.length - 1; M >= 0; M--)
|
|
4835
4835
|
qt.has(ce.value[M]) && x(ce).splice(M, 1);
|
|
4836
4836
|
qt.clear();
|
|
4837
|
-
},
|
|
4837
|
+
}, b = (M) => {
|
|
4838
4838
|
for (let N = ce.value.length - 1; N >= 0; N--)
|
|
4839
4839
|
M === ce.value[N] && x(ce).splice(N, 1);
|
|
4840
|
-
},
|
|
4840
|
+
}, I = (M) => {
|
|
4841
4841
|
new Set(ce.value).has(M) || ce.value.push(M);
|
|
4842
4842
|
}, g = (M, N = !0) => new Promise((C) => {
|
|
4843
4843
|
for (let R = B.value.length - 1; R >= 0; R--) {
|
|
@@ -4845,7 +4845,7 @@ const jt = () => {
|
|
|
4845
4845
|
if (V.id === M) {
|
|
4846
4846
|
if (V.active)
|
|
4847
4847
|
break;
|
|
4848
|
-
if (V.active = !0, wt.value = !1,
|
|
4848
|
+
if (V.active = !0, wt.value = !1, y(V), N) {
|
|
4849
4849
|
const Z = V.pages.peek();
|
|
4850
4850
|
e.push({
|
|
4851
4851
|
path: Z.path,
|
|
@@ -4856,12 +4856,12 @@ const jt = () => {
|
|
|
4856
4856
|
B.value[R].active = !1;
|
|
4857
4857
|
}
|
|
4858
4858
|
C(!0);
|
|
4859
|
-
}),
|
|
4859
|
+
}), y = (M) => {
|
|
4860
4860
|
window.sessionStorage.setItem(os, JSON.stringify(M));
|
|
4861
4861
|
}, A = () => {
|
|
4862
4862
|
w(), x(B).push(...Kt), g(Kt[0].id);
|
|
4863
4863
|
}, w = () => {
|
|
4864
|
-
x(B).splice(0),
|
|
4864
|
+
x(B).splice(0), rt.clear(), qt.clear(), x(ce).splice(0), wt.value = !0;
|
|
4865
4865
|
};
|
|
4866
4866
|
return {
|
|
4867
4867
|
tabs: B,
|
|
@@ -4876,8 +4876,8 @@ const jt = () => {
|
|
|
4876
4876
|
active: g,
|
|
4877
4877
|
destroy: w,
|
|
4878
4878
|
reset: A,
|
|
4879
|
-
addCache:
|
|
4880
|
-
removeCache:
|
|
4879
|
+
addCache: I,
|
|
4880
|
+
removeCache: b,
|
|
4881
4881
|
getTab: o,
|
|
4882
4882
|
addTab: r,
|
|
4883
4883
|
removeTab: l,
|
|
@@ -4887,10 +4887,10 @@ const jt = () => {
|
|
|
4887
4887
|
removeOtherTabs: h,
|
|
4888
4888
|
hasTab: s,
|
|
4889
4889
|
addPage: i,
|
|
4890
|
-
addComponent:
|
|
4891
|
-
getComponent:
|
|
4890
|
+
addComponent: O,
|
|
4891
|
+
getComponent: S,
|
|
4892
4892
|
removeComponent: d,
|
|
4893
|
-
markDeletableCache:
|
|
4893
|
+
markDeletableCache: p,
|
|
4894
4894
|
removeDeletableCache: v,
|
|
4895
4895
|
refreshTab: E,
|
|
4896
4896
|
refreshAllTabs: T
|
|
@@ -4990,13 +4990,13 @@ const jt = () => {
|
|
|
4990
4990
|
title: x(n)("VueStackTab.closeAll"),
|
|
4991
4991
|
onClick: x(o)
|
|
4992
4992
|
}, null, 8, ["title", "onClick"]),
|
|
4993
|
-
f.contextMenu !== void 0 && f.contextMenu.length > 0 ? (K(), ae("div", Kl)) :
|
|
4994
|
-
(K(!0), ae(yt, null,
|
|
4995
|
-
key:
|
|
4993
|
+
f.contextMenu !== void 0 && f.contextMenu.length > 0 ? (K(), ae("div", Kl)) : Ke("", !0),
|
|
4994
|
+
(K(!0), ae(yt, null, jn(f.contextMenu, (T, O) => (K(), we(ze, {
|
|
4995
|
+
key: O,
|
|
4996
4996
|
icon: T.icon,
|
|
4997
4997
|
title: T.title,
|
|
4998
4998
|
disabled: T.disabled(f.tabItem) ? "disabled" : null,
|
|
4999
|
-
onClick: (
|
|
4999
|
+
onClick: (S) => !T.disabled && T.callback(f.tabItem.id)
|
|
5000
5000
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
5001
5001
|
], 4));
|
|
5002
5002
|
}
|
|
@@ -5039,7 +5039,7 @@ const jt = () => {
|
|
|
5039
5039
|
emits: ["close", "active"],
|
|
5040
5040
|
setup(e, { emit: t }) {
|
|
5041
5041
|
const n = t, { t: s } = or().getI18n(), a = ee(), r = e;
|
|
5042
|
-
|
|
5042
|
+
lt(
|
|
5043
5043
|
() => r.item.active,
|
|
5044
5044
|
(c) => {
|
|
5045
5045
|
c && l();
|
|
@@ -5070,16 +5070,16 @@ const jt = () => {
|
|
|
5070
5070
|
class: "stack-tab__icon-close-fill stack-tab__item-button",
|
|
5071
5071
|
title: x(s)("VueStackTab.close"),
|
|
5072
5072
|
onClick: ct(i, ["stop"])
|
|
5073
|
-
}, null, 8, nc)) :
|
|
5073
|
+
}, null, 8, nc)) : Ke("", !0)
|
|
5074
5074
|
], 2));
|
|
5075
5075
|
}
|
|
5076
5076
|
});
|
|
5077
|
-
var
|
|
5078
|
-
return
|
|
5077
|
+
var at = [], sc = function() {
|
|
5078
|
+
return at.some(function(e) {
|
|
5079
5079
|
return e.activeTargets.length > 0;
|
|
5080
5080
|
});
|
|
5081
5081
|
}, ac = function() {
|
|
5082
|
-
return
|
|
5082
|
+
return at.some(function(e) {
|
|
5083
5083
|
return e.skippedTargets.length > 0;
|
|
5084
5084
|
});
|
|
5085
5085
|
}, is = "ResizeObserver loop completed with undelivered notifications.", oc = function() {
|
|
@@ -5091,16 +5091,16 @@ var ot = [], sc = function() {
|
|
|
5091
5091
|
(function(e) {
|
|
5092
5092
|
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
5093
5093
|
})(Ht || (Ht = {}));
|
|
5094
|
-
var
|
|
5094
|
+
var ot = function(e) {
|
|
5095
5095
|
return Object.freeze(e);
|
|
5096
5096
|
}, ic = /* @__PURE__ */ function() {
|
|
5097
5097
|
function e(t, n) {
|
|
5098
|
-
this.inlineSize = t, this.blockSize = n,
|
|
5098
|
+
this.inlineSize = t, this.blockSize = n, ot(this);
|
|
5099
5099
|
}
|
|
5100
5100
|
return e;
|
|
5101
5101
|
}(), ba = function() {
|
|
5102
5102
|
function e(t, n, s, a) {
|
|
5103
|
-
return this.x = t, this.y = n, this.width = s, this.height = a, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
5103
|
+
return this.x = t, this.y = n, this.width = s, this.height = a, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, ot(this);
|
|
5104
5104
|
}
|
|
5105
5105
|
return e.prototype.toJSON = function() {
|
|
5106
5106
|
var t = this, n = t.x, s = t.y, a = t.top, r = t.right, o = t.bottom, i = t.left, l = t.width, c = t.height;
|
|
@@ -5142,7 +5142,7 @@ var it = function(e) {
|
|
|
5142
5142
|
return parseFloat(e || "0");
|
|
5143
5143
|
}, Et = function(e, t, n) {
|
|
5144
5144
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new ic((n ? t : e) || 0, (n ? e : t) || 0);
|
|
5145
|
-
}, us =
|
|
5145
|
+
}, us = ot({
|
|
5146
5146
|
devicePixelContentBoxSize: Et(),
|
|
5147
5147
|
borderBoxSize: Et(),
|
|
5148
5148
|
contentBoxSize: Et(),
|
|
@@ -5152,7 +5152,7 @@ var it = function(e) {
|
|
|
5152
5152
|
return Jt.get(e);
|
|
5153
5153
|
if (va(e))
|
|
5154
5154
|
return Jt.set(e, us), us;
|
|
5155
|
-
var n = getComputedStyle(e), s = dr(e) && e.ownerSVGElement && e.getBBox(), a = !uc && n.boxSizing === "border-box", r = cc.test(n.writingMode || ""), o = !s && cs.test(n.overflowY || ""), i = !s && cs.test(n.overflowX || ""), l = s ? 0 : Se(n.paddingTop), c = s ? 0 : Se(n.paddingRight), h = s ? 0 : Se(n.paddingBottom), m = s ? 0 : Se(n.paddingLeft), f = s ? 0 : Se(n.borderTopWidth), E = s ? 0 : Se(n.borderRightWidth), T = s ? 0 : Se(n.borderBottomWidth),
|
|
5155
|
+
var n = getComputedStyle(e), s = dr(e) && e.ownerSVGElement && e.getBBox(), a = !uc && n.boxSizing === "border-box", r = cc.test(n.writingMode || ""), o = !s && cs.test(n.overflowY || ""), i = !s && cs.test(n.overflowX || ""), l = s ? 0 : Se(n.paddingTop), c = s ? 0 : Se(n.paddingRight), h = s ? 0 : Se(n.paddingBottom), m = s ? 0 : Se(n.paddingLeft), f = s ? 0 : Se(n.borderTopWidth), E = s ? 0 : Se(n.borderRightWidth), T = s ? 0 : Se(n.borderBottomWidth), O = s ? 0 : Se(n.borderLeftWidth), S = m + c, d = l + h, p = O + E, v = f + T, b = i ? e.offsetHeight - v - e.clientHeight : 0, I = o ? e.offsetWidth - p - e.clientWidth : 0, g = a ? S + p : 0, y = a ? d + v : 0, A = s ? s.width : Se(n.width) - g - I, w = s ? s.height : Se(n.height) - y - b, z = A + S + I + p, M = w + d + b + v, N = ot({
|
|
5156
5156
|
devicePixelContentBoxSize: Et(Math.round(A * devicePixelRatio), Math.round(w * devicePixelRatio), r),
|
|
5157
5157
|
borderBoxSize: Et(z, M, r),
|
|
5158
5158
|
contentBoxSize: Et(A, w, r),
|
|
@@ -5172,7 +5172,7 @@ var it = function(e) {
|
|
|
5172
5172
|
}, fc = /* @__PURE__ */ function() {
|
|
5173
5173
|
function e(t) {
|
|
5174
5174
|
var n = Ea(t);
|
|
5175
|
-
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize =
|
|
5175
|
+
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = ot([n.borderBoxSize]), this.contentBoxSize = ot([n.contentBoxSize]), this.devicePixelContentBoxSize = ot([n.devicePixelContentBoxSize]);
|
|
5176
5176
|
}
|
|
5177
5177
|
return e;
|
|
5178
5178
|
}(), Na = function(e) {
|
|
@@ -5183,7 +5183,7 @@ var it = function(e) {
|
|
|
5183
5183
|
return t;
|
|
5184
5184
|
}, dc = function() {
|
|
5185
5185
|
var e = 1 / 0, t = [];
|
|
5186
|
-
|
|
5186
|
+
at.forEach(function(o) {
|
|
5187
5187
|
if (o.activeTargets.length !== 0) {
|
|
5188
5188
|
var i = [];
|
|
5189
5189
|
o.activeTargets.forEach(function(c) {
|
|
@@ -5200,7 +5200,7 @@ var it = function(e) {
|
|
|
5200
5200
|
}
|
|
5201
5201
|
return e;
|
|
5202
5202
|
}, fs = function(e) {
|
|
5203
|
-
|
|
5203
|
+
at.forEach(function(n) {
|
|
5204
5204
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(a) {
|
|
5205
5205
|
a.isActive() && (Na(a.target) > e ? n.activeTargets.push(a) : n.skippedTargets.push(a));
|
|
5206
5206
|
});
|
|
@@ -5210,20 +5210,20 @@ var it = function(e) {
|
|
|
5210
5210
|
for (fs(e); sc(); )
|
|
5211
5211
|
e = dc(), fs(e);
|
|
5212
5212
|
return ac() && oc(), e > 0;
|
|
5213
|
-
},
|
|
5213
|
+
}, On, Oa = [], _c = function() {
|
|
5214
5214
|
return Oa.splice(0).forEach(function(e) {
|
|
5215
5215
|
return e();
|
|
5216
5216
|
});
|
|
5217
5217
|
}, hc = function(e) {
|
|
5218
|
-
if (!
|
|
5218
|
+
if (!On) {
|
|
5219
5219
|
var t = 0, n = document.createTextNode(""), s = { characterData: !0 };
|
|
5220
5220
|
new MutationObserver(function() {
|
|
5221
5221
|
return _c();
|
|
5222
|
-
}).observe(n, s),
|
|
5222
|
+
}).observe(n, s), On = function() {
|
|
5223
5223
|
n.textContent = "".concat(t ? t-- : t++);
|
|
5224
5224
|
};
|
|
5225
5225
|
}
|
|
5226
|
-
Oa.push(e),
|
|
5226
|
+
Oa.push(e), On();
|
|
5227
5227
|
}, pc = function(e) {
|
|
5228
5228
|
hc(function() {
|
|
5229
5229
|
requestAnimationFrame(e);
|
|
@@ -5247,7 +5247,7 @@ var it = function(e) {
|
|
|
5247
5247
|
"focus"
|
|
5248
5248
|
], ms = function(e) {
|
|
5249
5249
|
return e === void 0 && (e = 0), Date.now() + e;
|
|
5250
|
-
},
|
|
5250
|
+
}, yn = !1, Ec = function() {
|
|
5251
5251
|
function e() {
|
|
5252
5252
|
var t = this;
|
|
5253
5253
|
this.stopped = !0, this.listener = function() {
|
|
@@ -5256,15 +5256,15 @@ var it = function(e) {
|
|
|
5256
5256
|
}
|
|
5257
5257
|
return e.prototype.run = function(t) {
|
|
5258
5258
|
var n = this;
|
|
5259
|
-
if (t === void 0 && (t = bc), !
|
|
5260
|
-
|
|
5259
|
+
if (t === void 0 && (t = bc), !yn) {
|
|
5260
|
+
yn = !0;
|
|
5261
5261
|
var s = ms(t);
|
|
5262
5262
|
pc(function() {
|
|
5263
5263
|
var a = !1;
|
|
5264
5264
|
try {
|
|
5265
5265
|
a = mc();
|
|
5266
5266
|
} finally {
|
|
5267
|
-
if (
|
|
5267
|
+
if (yn = !1, t = s - ms(), !gc())
|
|
5268
5268
|
return;
|
|
5269
5269
|
a ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
|
|
5270
5270
|
}
|
|
@@ -5288,8 +5288,8 @@ var it = function(e) {
|
|
|
5288
5288
|
return xt.removeEventListener(n, t.listener, !0);
|
|
5289
5289
|
}), this.stopped = !0);
|
|
5290
5290
|
}, e;
|
|
5291
|
-
}(),
|
|
5292
|
-
!nn && e > 0 &&
|
|
5291
|
+
}(), Wn = new Ec(), _s = function(e) {
|
|
5292
|
+
!nn && e > 0 && Wn.start(), nn += e, !nn && Wn.stop();
|
|
5293
5293
|
}, Tc = function(e) {
|
|
5294
5294
|
return !dr(e) && !lc(e) && getComputedStyle(e).display === "inline";
|
|
5295
5295
|
}, Nc = function() {
|
|
@@ -5321,10 +5321,10 @@ var it = function(e) {
|
|
|
5321
5321
|
Qt.set(t, s);
|
|
5322
5322
|
}, e.observe = function(t, n, s) {
|
|
5323
5323
|
var a = Qt.get(t), r = a.observationTargets.length === 0;
|
|
5324
|
-
hs(a.observationTargets, n) < 0 && (r &&
|
|
5324
|
+
hs(a.observationTargets, n) < 0 && (r && at.push(a), a.observationTargets.push(new Nc(n, s && s.box)), _s(1), Wn.schedule());
|
|
5325
5325
|
}, e.unobserve = function(t, n) {
|
|
5326
5326
|
var s = Qt.get(t), a = hs(s.observationTargets, n), r = s.observationTargets.length === 1;
|
|
5327
|
-
a >= 0 && (r &&
|
|
5327
|
+
a >= 0 && (r && at.splice(at.indexOf(s), 1), s.observationTargets.splice(a, 1), _s(-1));
|
|
5328
5328
|
}, e.disconnect = function(t) {
|
|
5329
5329
|
var n = this, s = Qt.get(t);
|
|
5330
5330
|
s.observationTargets.slice().forEach(function(a) {
|
|
@@ -5360,7 +5360,7 @@ var it = function(e) {
|
|
|
5360
5360
|
const yc = ["disabled", "title"], Lc = {
|
|
5361
5361
|
key: 1,
|
|
5362
5362
|
class: "stack-tab__button"
|
|
5363
|
-
},
|
|
5363
|
+
}, Bn = /* @__PURE__ */ de({
|
|
5364
5364
|
__name: "TabHeaderButton",
|
|
5365
5365
|
props: {
|
|
5366
5366
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -5377,13 +5377,13 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5377
5377
|
disabled: t.disabled ? "disabled" : null,
|
|
5378
5378
|
title: t.title
|
|
5379
5379
|
}, [
|
|
5380
|
-
"icon" in t.$slots ?
|
|
5380
|
+
"icon" in t.$slots ? Ke("", !0) : (K(), ae("div", {
|
|
5381
5381
|
key: 0,
|
|
5382
5382
|
class: Ue(["stack-tab__mask-button", t.iconClass])
|
|
5383
5383
|
}, null, 2)),
|
|
5384
5384
|
"icon" in t.$slots ? (K(), ae("div", Lc, [
|
|
5385
5385
|
$e(t.$slots, "icon")
|
|
5386
|
-
])) :
|
|
5386
|
+
])) : Ke("", !0)
|
|
5387
5387
|
], 10, yc));
|
|
5388
5388
|
}
|
|
5389
5389
|
}), Ic = /* @__PURE__ */ de({
|
|
@@ -5404,27 +5404,27 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5404
5404
|
startThumbLeft: 0,
|
|
5405
5405
|
startPageX: 0
|
|
5406
5406
|
});
|
|
5407
|
-
|
|
5407
|
+
lt(m, (N) => {
|
|
5408
5408
|
E(N);
|
|
5409
5409
|
});
|
|
5410
5410
|
const E = (N) => {
|
|
5411
5411
|
o.value = N.scrollLeft <= 10, i.value = N.clientWidth + N.scrollLeft - N.scrollWidth >= -10, l.value = N.scrollWidth !== N.clientWidth;
|
|
5412
|
-
}, T = ue(() => m.scrollWidth > m.clientWidth),
|
|
5412
|
+
}, T = ue(() => m.scrollWidth > m.clientWidth), O = ue(() => {
|
|
5413
5413
|
if (!T.value)
|
|
5414
5414
|
return 0;
|
|
5415
5415
|
const { clientWidth: N, scrollWidth: C } = m;
|
|
5416
5416
|
return N / C * N;
|
|
5417
|
-
}),
|
|
5417
|
+
}), S = ue(() => {
|
|
5418
5418
|
if (!T.value)
|
|
5419
5419
|
return 0;
|
|
5420
5420
|
const { clientWidth: N, scrollWidth: C, scrollLeft: R } = m;
|
|
5421
|
-
return (N -
|
|
5421
|
+
return (N - O.value) * (R / (C - N));
|
|
5422
5422
|
}), d = () => {
|
|
5423
5423
|
if (n.value === null || n.value === void 0)
|
|
5424
5424
|
return;
|
|
5425
5425
|
const { clientWidth: N, scrollWidth: C, scrollLeft: R } = n.value;
|
|
5426
5426
|
Object.assign(m, { clientWidth: N, scrollWidth: C, scrollLeft: R });
|
|
5427
|
-
},
|
|
5427
|
+
}, p = new ps(() => {
|
|
5428
5428
|
var C;
|
|
5429
5429
|
d();
|
|
5430
5430
|
const N = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__item.is-active");
|
|
@@ -5436,36 +5436,36 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5436
5436
|
C && (M(C) || z(C));
|
|
5437
5437
|
}
|
|
5438
5438
|
d();
|
|
5439
|
-
}),
|
|
5439
|
+
}), b = (N, C = !0) => {
|
|
5440
5440
|
ca({ wrap: n.value, left: N, smooth: C });
|
|
5441
|
-
},
|
|
5442
|
-
|
|
5441
|
+
}, I = (N) => {
|
|
5442
|
+
b(n.value.scrollLeft + N);
|
|
5443
5443
|
}, g = (N) => {
|
|
5444
5444
|
const C = N.deltaY < 0;
|
|
5445
|
-
|
|
5446
|
-
},
|
|
5445
|
+
b(n.value.scrollLeft + (C ? -h.space : h.space));
|
|
5446
|
+
}, y = (N) => {
|
|
5447
5447
|
var C;
|
|
5448
5448
|
Object.assign(f, {
|
|
5449
5449
|
startPageX: N.pageX,
|
|
5450
5450
|
startScrollLeft: (C = n.value) == null ? void 0 : C.scrollLeft,
|
|
5451
|
-
startThumbLeft:
|
|
5452
|
-
thumbLeft:
|
|
5451
|
+
startThumbLeft: S.value,
|
|
5452
|
+
thumbLeft: S.value
|
|
5453
5453
|
}), r.value = !0, document.addEventListener("mousemove", A), document.addEventListener("mouseup", w);
|
|
5454
5454
|
}, A = (N) => {
|
|
5455
5455
|
const { clientWidth: C, scrollWidth: R } = m;
|
|
5456
5456
|
let V = f.startThumbLeft + N.pageX - f.startPageX;
|
|
5457
|
-
const Z = C -
|
|
5458
|
-
V < 0 ? V = 0 : V > Z && (V = Z), f.thumbLeft = V,
|
|
5457
|
+
const Z = C - O.value;
|
|
5458
|
+
V < 0 ? V = 0 : V > Z && (V = Z), f.thumbLeft = V, b(V * (R - C) / (C - O.value), !1), N.preventDefault();
|
|
5459
5459
|
}, w = (N) => {
|
|
5460
5460
|
r.value = !1, document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", w), N.preventDefault();
|
|
5461
5461
|
};
|
|
5462
5462
|
Gt(() => {
|
|
5463
5463
|
var C;
|
|
5464
|
-
|
|
5464
|
+
p.observe(c.value);
|
|
5465
5465
|
const N = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__nav");
|
|
5466
5466
|
v.observe(N);
|
|
5467
5467
|
}), Ot(() => {
|
|
5468
|
-
|
|
5468
|
+
p.disconnect(), v.disconnect();
|
|
5469
5469
|
});
|
|
5470
5470
|
const z = (N) => {
|
|
5471
5471
|
bl({ el: N, wrap: n, block: "end", inline: "center" });
|
|
@@ -5476,12 +5476,12 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5476
5476
|
return !(C < R || C + N.clientWidth > R + n.value.clientWidth);
|
|
5477
5477
|
};
|
|
5478
5478
|
return t({ scrollIntoView: z, isInView: M }), (N, C) => (K(), ae(yt, null, [
|
|
5479
|
-
l.value ? (K(), we(
|
|
5479
|
+
l.value ? (K(), we(Bn, {
|
|
5480
5480
|
key: 0,
|
|
5481
5481
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
5482
5482
|
disabled: o.value,
|
|
5483
|
-
onClick: C[0] || (C[0] = (R) => !o.value &&
|
|
5484
|
-
}, null, 8, ["disabled"])) :
|
|
5483
|
+
onClick: C[0] || (C[0] = (R) => !o.value && I(-1 * N.space))
|
|
5484
|
+
}, null, 8, ["disabled"])) : Ke("", !0),
|
|
5485
5485
|
Te("div", {
|
|
5486
5486
|
ref_key: "headerScroll",
|
|
5487
5487
|
ref: c,
|
|
@@ -5500,7 +5500,7 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5500
5500
|
}, [
|
|
5501
5501
|
$e(N.$slots, "default")
|
|
5502
5502
|
], 34),
|
|
5503
|
-
|
|
5503
|
+
Yn(Te("div", {
|
|
5504
5504
|
ref_key: "bar",
|
|
5505
5505
|
ref: s,
|
|
5506
5506
|
class: Ue(["stack-tab__scrollbar", { "is-dragging": r.value }])
|
|
@@ -5510,28 +5510,28 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5510
5510
|
ref: a,
|
|
5511
5511
|
class: Ue(["stack-tab__scrollbar-thumb", { "is-dragging": r.value }]),
|
|
5512
5512
|
style: Ut({
|
|
5513
|
-
width: `${
|
|
5514
|
-
transform: `translateX(${
|
|
5513
|
+
width: `${O.value}px`,
|
|
5514
|
+
transform: `translateX(${S.value}px)`
|
|
5515
5515
|
}),
|
|
5516
|
-
onMousedown: ct(
|
|
5516
|
+
onMousedown: ct(y, ["prevent"])
|
|
5517
5517
|
}, null, 38)
|
|
5518
5518
|
], 2), [
|
|
5519
|
-
[
|
|
5519
|
+
[Xn, T.value]
|
|
5520
5520
|
])
|
|
5521
5521
|
], 544),
|
|
5522
|
-
l.value ? (K(), we(
|
|
5522
|
+
l.value ? (K(), we(Bn, {
|
|
5523
5523
|
key: 1,
|
|
5524
5524
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
5525
5525
|
disabled: i.value,
|
|
5526
|
-
onClick: C[1] || (C[1] = (R) => !i.value &&
|
|
5527
|
-
}, null, 8, ["disabled"])) :
|
|
5526
|
+
onClick: C[1] || (C[1] = (R) => !i.value && I(N.space))
|
|
5527
|
+
}, null, 8, ["disabled"])) : Ke("", !0)
|
|
5528
5528
|
], 64));
|
|
5529
5529
|
}
|
|
5530
5530
|
}), kc = { class: "stack-tab__header" }, Sc = /* @__PURE__ */ de({
|
|
5531
5531
|
__name: "index",
|
|
5532
5532
|
props: {
|
|
5533
5533
|
space: {},
|
|
5534
|
-
tabScrollMode: { default:
|
|
5534
|
+
tabScrollMode: { default: st.BOTH },
|
|
5535
5535
|
tabTransition: { default: () => ({
|
|
5536
5536
|
name: "stack-tab-zoom"
|
|
5537
5537
|
}) },
|
|
@@ -5540,24 +5540,24 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5540
5540
|
},
|
|
5541
5541
|
emits: ["active"],
|
|
5542
5542
|
setup(e, { emit: t }) {
|
|
5543
|
-
const { t: n } = or().getI18n(), s =
|
|
5543
|
+
const { t: n } = or().getI18n(), s = Gn("maximum"), a = t, r = ee(), { shown: o, contextMenuData: i, showContextMenu: l } = Ql(), c = e, { removeTab: h, active: m, tabs: f } = jt(), E = ue(() => typeof c.tabTransition == "string" ? {
|
|
5544
5544
|
name: c.tabTransition
|
|
5545
|
-
} : c.tabTransition), T = ue(() => c.tabScrollMode ===
|
|
5546
|
-
if (
|
|
5547
|
-
const v = h(
|
|
5545
|
+
} : c.tabTransition), T = ue(() => c.tabScrollMode === st.BOTH || c.tabScrollMode === st.BUTTON), O = c.tabScrollMode === st.BOTH || c.tabScrollMode === st.WHEEL, S = (p) => {
|
|
5546
|
+
if (p.closable) {
|
|
5547
|
+
const v = h(p.id);
|
|
5548
5548
|
a("active", v);
|
|
5549
5549
|
}
|
|
5550
5550
|
o.value = !1;
|
|
5551
|
-
}, d = (
|
|
5552
|
-
r.value && (r.value.isInView(v.value) || r.value.scrollIntoView(v.value), m(
|
|
5551
|
+
}, d = (p, v) => {
|
|
5552
|
+
r.value && (r.value.isInView(v.value) || r.value.scrollIntoView(v.value), m(p.id), a("active", p.id));
|
|
5553
5553
|
};
|
|
5554
|
-
return (
|
|
5555
|
-
$e(
|
|
5554
|
+
return (p, v) => (K(), ae("div", kc, [
|
|
5555
|
+
$e(p.$slots, "leftButton"),
|
|
5556
5556
|
ie(Ic, {
|
|
5557
5557
|
ref_key: "scroll",
|
|
5558
5558
|
ref: r,
|
|
5559
|
-
space:
|
|
5560
|
-
"is-scroll-wheel": x(
|
|
5559
|
+
space: p.space,
|
|
5560
|
+
"is-scroll-wheel": x(O),
|
|
5561
5561
|
"is-scroll-button": T.value
|
|
5562
5562
|
}, {
|
|
5563
5563
|
default: Oe(() => [
|
|
@@ -5567,16 +5567,16 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5567
5567
|
class: "stack-tab__nav"
|
|
5568
5568
|
}, E.value, { appear: "" }), {
|
|
5569
5569
|
default: Oe(() => [
|
|
5570
|
-
(K(!0), ae(yt, null,
|
|
5571
|
-
key:
|
|
5572
|
-
contextmenu:
|
|
5573
|
-
item:
|
|
5570
|
+
(K(!0), ae(yt, null, jn(x(f), (b, I) => (K(), we(rc, {
|
|
5571
|
+
key: b.id,
|
|
5572
|
+
contextmenu: p.contextmenu,
|
|
5573
|
+
item: b,
|
|
5574
5574
|
onContextmenu: ct(
|
|
5575
|
-
(g) => x(l)(g,
|
|
5575
|
+
(g) => x(l)(g, b, I, x(f).length),
|
|
5576
5576
|
["prevent"]
|
|
5577
5577
|
),
|
|
5578
|
-
onMouseup: ct((g) =>
|
|
5579
|
-
onClose:
|
|
5578
|
+
onMouseup: ct((g) => S(b), ["middle", "prevent"]),
|
|
5579
|
+
onClose: S,
|
|
5580
5580
|
onActive: d
|
|
5581
5581
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
5582
5582
|
]),
|
|
@@ -5585,13 +5585,13 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5585
5585
|
]),
|
|
5586
5586
|
_: 1
|
|
5587
5587
|
}, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
|
|
5588
|
-
$e(
|
|
5589
|
-
ie(
|
|
5588
|
+
$e(p.$slots, "rightButton"),
|
|
5589
|
+
ie(Bn, {
|
|
5590
5590
|
"icon-class": x(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
5591
5591
|
title: x(n)("VueStackTab.maximum"),
|
|
5592
|
-
onClick: v[0] || (v[0] = (
|
|
5592
|
+
onClick: v[0] || (v[0] = (b) => s.value = !x(s))
|
|
5593
5593
|
}, null, 8, ["icon-class", "title"]),
|
|
5594
|
-
ie(
|
|
5594
|
+
ie(zn, {
|
|
5595
5595
|
name: "stack-tab-zoom",
|
|
5596
5596
|
appear: ""
|
|
5597
5597
|
}, {
|
|
@@ -5603,7 +5603,7 @@ const yc = ["disabled", "title"], Lc = {
|
|
|
5603
5603
|
"tab-item": x(i).item,
|
|
5604
5604
|
max: x(i).max,
|
|
5605
5605
|
index: x(i).index
|
|
5606
|
-
}, null, 8, ["left", "top", "tab-item", "max", "index"])) :
|
|
5606
|
+
}, null, 8, ["left", "top", "tab-item", "max", "index"])) : Ke("", !0)
|
|
5607
5607
|
]),
|
|
5608
5608
|
_: 1
|
|
5609
5609
|
})
|
|
@@ -5666,7 +5666,7 @@ function vs(e) {
|
|
|
5666
5666
|
var n = zc.test(e);
|
|
5667
5667
|
return n || Kc.test(e) ? qc(e.slice(2), n ? 2 : 8) : Xc.test(e) ? bs : +e;
|
|
5668
5668
|
}
|
|
5669
|
-
var
|
|
5669
|
+
var Ln = function() {
|
|
5670
5670
|
return ya.Date.now();
|
|
5671
5671
|
}, Zc = "Expected a function", Jc = Math.max, Qc = Math.min;
|
|
5672
5672
|
function eu(e, t, n) {
|
|
@@ -5675,38 +5675,38 @@ function eu(e, t, n) {
|
|
|
5675
5675
|
throw new TypeError(Zc);
|
|
5676
5676
|
t = vs(t) || 0, un(n) && (h = !!n.leading, m = "maxWait" in n, r = m ? Jc(vs(n.maxWait) || 0, t) : r, f = "trailing" in n ? !!n.trailing : f);
|
|
5677
5677
|
function E(g) {
|
|
5678
|
-
var
|
|
5679
|
-
return s = a = void 0, c = g, o = e.apply(A,
|
|
5678
|
+
var y = s, A = a;
|
|
5679
|
+
return s = a = void 0, c = g, o = e.apply(A, y), o;
|
|
5680
5680
|
}
|
|
5681
5681
|
function T(g) {
|
|
5682
5682
|
return c = g, i = setTimeout(d, t), h ? E(g) : o;
|
|
5683
5683
|
}
|
|
5684
|
-
function
|
|
5685
|
-
var
|
|
5684
|
+
function O(g) {
|
|
5685
|
+
var y = g - l, A = g - c, w = t - y;
|
|
5686
5686
|
return m ? Qc(w, r - A) : w;
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5689
|
-
var
|
|
5690
|
-
return l === void 0 ||
|
|
5688
|
+
function S(g) {
|
|
5689
|
+
var y = g - l, A = g - c;
|
|
5690
|
+
return l === void 0 || y >= t || y < 0 || m && A >= r;
|
|
5691
5691
|
}
|
|
5692
5692
|
function d() {
|
|
5693
|
-
var g =
|
|
5694
|
-
if (
|
|
5695
|
-
return
|
|
5696
|
-
i = setTimeout(d,
|
|
5693
|
+
var g = Ln();
|
|
5694
|
+
if (S(g))
|
|
5695
|
+
return p(g);
|
|
5696
|
+
i = setTimeout(d, O(g));
|
|
5697
5697
|
}
|
|
5698
|
-
function
|
|
5698
|
+
function p(g) {
|
|
5699
5699
|
return i = void 0, f && s ? E(g) : (s = a = void 0, o);
|
|
5700
5700
|
}
|
|
5701
5701
|
function v() {
|
|
5702
5702
|
i !== void 0 && clearTimeout(i), c = 0, s = l = a = i = void 0;
|
|
5703
5703
|
}
|
|
5704
|
-
function
|
|
5705
|
-
return i === void 0 ? o :
|
|
5704
|
+
function b() {
|
|
5705
|
+
return i === void 0 ? o : p(Ln());
|
|
5706
5706
|
}
|
|
5707
|
-
function
|
|
5708
|
-
var g =
|
|
5709
|
-
if (s = arguments, a = this, l = g,
|
|
5707
|
+
function I() {
|
|
5708
|
+
var g = Ln(), y = S(g);
|
|
5709
|
+
if (s = arguments, a = this, l = g, y) {
|
|
5710
5710
|
if (i === void 0)
|
|
5711
5711
|
return T(l);
|
|
5712
5712
|
if (m)
|
|
@@ -5714,7 +5714,7 @@ function eu(e, t, n) {
|
|
|
5714
5714
|
}
|
|
5715
5715
|
return i === void 0 && (i = setTimeout(d, t)), o;
|
|
5716
5716
|
}
|
|
5717
|
-
return
|
|
5717
|
+
return I.cancel = v, I.flush = b, I;
|
|
5718
5718
|
}
|
|
5719
5719
|
var tu = "Expected a function";
|
|
5720
5720
|
function nu(e, t, n) {
|
|
@@ -5729,7 +5729,7 @@ function nu(e, t, n) {
|
|
|
5729
5729
|
}
|
|
5730
5730
|
let Es;
|
|
5731
5731
|
const ru = () => {
|
|
5732
|
-
const e =
|
|
5732
|
+
const e = qn(), { active: t, hasTab: n, pageShown: s, reset: a, canAddTab: r } = jt();
|
|
5733
5733
|
return { openNewTab: nu((l) => new Promise((c, h) => {
|
|
5734
5734
|
if (!r()) {
|
|
5735
5735
|
h();
|
|
@@ -5753,11 +5753,11 @@ const ru = () => {
|
|
|
5753
5753
|
l.query
|
|
5754
5754
|
), T;
|
|
5755
5755
|
if (l.iframe) {
|
|
5756
|
-
const
|
|
5757
|
-
T = Es, E.__src =
|
|
5756
|
+
const O = encodeURIComponent(l.path);
|
|
5757
|
+
T = Es, E.__src = O;
|
|
5758
5758
|
} else {
|
|
5759
|
-
const
|
|
5760
|
-
T =
|
|
5759
|
+
const O = fr(l.path);
|
|
5760
|
+
T = O.path, E = Ve(O.query, E);
|
|
5761
5761
|
}
|
|
5762
5762
|
e.push({
|
|
5763
5763
|
path: T,
|
|
@@ -5775,7 +5775,7 @@ const ru = () => {
|
|
|
5775
5775
|
contextmenu: { type: [Boolean, Object], default: !0 },
|
|
5776
5776
|
pageTransition: { default: "stack-tab-swap" },
|
|
5777
5777
|
tabTransition: { default: "stack-tab-zoom" },
|
|
5778
|
-
tabScrollMode: { default:
|
|
5778
|
+
tabScrollMode: { default: st.BOTH },
|
|
5779
5779
|
width: { default: "100%" },
|
|
5780
5780
|
height: { default: "100%" },
|
|
5781
5781
|
i18n: { default: () => ({ locale: "zh-CN", messages: {} }) },
|
|
@@ -5795,57 +5795,50 @@ const ru = () => {
|
|
|
5795
5795
|
f(h.iframePath), ys(() => {
|
|
5796
5796
|
i(h.defaultTabs);
|
|
5797
5797
|
});
|
|
5798
|
-
const E = (
|
|
5799
|
-
c("onActive",
|
|
5798
|
+
const E = (O, S) => r(O, S), T = (O) => {
|
|
5799
|
+
c("onActive", O);
|
|
5800
5800
|
};
|
|
5801
|
-
l(h.max), Ot(() => {
|
|
5801
|
+
return l(h.max), Ot(() => {
|
|
5802
5802
|
o();
|
|
5803
|
-
})
|
|
5804
|
-
|
|
5805
|
-
return Ke(
|
|
5806
|
-
() => I.currentRoute.value.fullPath,
|
|
5807
|
-
() => {
|
|
5808
|
-
s.value = !0;
|
|
5809
|
-
}
|
|
5810
|
-
), (L, d) => {
|
|
5811
|
-
const b = Ls("router-view");
|
|
5803
|
+
}), (O, S) => {
|
|
5804
|
+
const d = Ls("router-view");
|
|
5812
5805
|
return K(), ae("div", {
|
|
5813
5806
|
class: Ue(["stack-tab", { "stack-tab__maximum": m.value }]),
|
|
5814
5807
|
style: Ut({
|
|
5815
|
-
width:
|
|
5816
|
-
height:
|
|
5808
|
+
width: O.width,
|
|
5809
|
+
height: O.height,
|
|
5817
5810
|
"z-index": m.value ? x(ua)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
5818
5811
|
})
|
|
5819
5812
|
}, [
|
|
5820
5813
|
ie(Sc, {
|
|
5821
|
-
space:
|
|
5814
|
+
space: O.space,
|
|
5822
5815
|
onActive: T,
|
|
5823
|
-
"tab-transition":
|
|
5824
|
-
max:
|
|
5816
|
+
"tab-transition": O.tabTransition,
|
|
5817
|
+
max: O.max
|
|
5825
5818
|
}, {
|
|
5826
5819
|
leftButton: Oe(() => [
|
|
5827
|
-
$e(
|
|
5820
|
+
$e(O.$slots, "leftButton")
|
|
5828
5821
|
]),
|
|
5829
5822
|
rightButton: Oe(() => [
|
|
5830
|
-
$e(
|
|
5823
|
+
$e(O.$slots, "rightButton")
|
|
5831
5824
|
]),
|
|
5832
5825
|
_: 3
|
|
5833
5826
|
}, 8, ["space", "tab-transition", "max"]),
|
|
5834
5827
|
Te("div", su, [
|
|
5835
|
-
ie(
|
|
5836
|
-
default: Oe(({ Component:
|
|
5837
|
-
ie(
|
|
5838
|
-
name:
|
|
5839
|
-
|
|
5840
|
-
|
|
5828
|
+
ie(d, null, {
|
|
5829
|
+
default: Oe(({ Component: p, route: v }) => [
|
|
5830
|
+
ie(zn, {
|
|
5831
|
+
name: O.pageTransition,
|
|
5832
|
+
onAfterLeave: S[0] || (S[0] = (b) => s.value = !0),
|
|
5833
|
+
mode: "out-in"
|
|
5841
5834
|
}, {
|
|
5842
5835
|
default: Oe(() => [
|
|
5843
5836
|
(K(), we(Wa, { include: x(a) }, [
|
|
5844
5837
|
(K(), we(Ba, null, {
|
|
5845
5838
|
default: Oe(() => [
|
|
5846
|
-
x(s) ? (K(), we(Ss(E(
|
|
5847
|
-
key:
|
|
5848
|
-
})) :
|
|
5839
|
+
x(s) ? (K(), we(Ss(E(v, p)), {
|
|
5840
|
+
key: v.fullPath
|
|
5841
|
+
})) : Ke("", !0)
|
|
5849
5842
|
]),
|
|
5850
5843
|
fallback: Oe(() => [
|
|
5851
5844
|
Ha(" Loading.... ")
|
|
@@ -5860,17 +5853,17 @@ const ru = () => {
|
|
|
5860
5853
|
_: 1
|
|
5861
5854
|
}),
|
|
5862
5855
|
ie(ks, {
|
|
5863
|
-
name:
|
|
5856
|
+
name: O.pageTransition,
|
|
5864
5857
|
appear: ""
|
|
5865
5858
|
}, {
|
|
5866
5859
|
default: Oe(() => [
|
|
5867
|
-
(K(!0), ae(yt, null,
|
|
5868
|
-
key:
|
|
5860
|
+
(K(!0), ae(yt, null, jn(x(n).filter((p) => p.iframe), (p) => Yn((K(), ae("iframe", {
|
|
5861
|
+
key: p.id,
|
|
5869
5862
|
class: "stack-tab__iframe",
|
|
5870
|
-
src: /^(javascript|data):/i.test(
|
|
5863
|
+
src: /^(javascript|data):/i.test(p.url ?? "") ? "about:blank" : p.url,
|
|
5871
5864
|
frameborder: "0"
|
|
5872
5865
|
}, null, 8, au)), [
|
|
5873
|
-
[
|
|
5866
|
+
[Xn, p.active && x(s)]
|
|
5874
5867
|
])), 128))
|
|
5875
5868
|
]),
|
|
5876
5869
|
_: 1
|
|
@@ -5942,7 +5935,7 @@ const lu = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
5942
5935
|
i + `background-image: url(${o});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
5943
5936
|
);
|
|
5944
5937
|
}, pu = () => {
|
|
5945
|
-
const { attrs: e } =
|
|
5938
|
+
const { attrs: e } = it(), { pageShown: t, getTab: n, markDeletableCache: s, removeComponent: a, getComponent: r } = jt(), o = ja(), i = qn();
|
|
5946
5939
|
let l = "", c = "";
|
|
5947
5940
|
return l = e.tId, c = o.query.__tab, {
|
|
5948
5941
|
forward: (f) => {
|
|
@@ -5963,32 +5956,32 @@ const lu = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
5963
5956
|
const T = n(l);
|
|
5964
5957
|
if (!T)
|
|
5965
5958
|
return;
|
|
5966
|
-
const
|
|
5967
|
-
let
|
|
5959
|
+
const O = T.pages;
|
|
5960
|
+
let S = 0;
|
|
5968
5961
|
if (typeof f == "number")
|
|
5969
|
-
|
|
5962
|
+
S = Math.abs(f);
|
|
5970
5963
|
else {
|
|
5971
|
-
let v = 1,
|
|
5972
|
-
const
|
|
5964
|
+
let v = 1, b = !1;
|
|
5965
|
+
const I = O.list(), g = fr(f);
|
|
5973
5966
|
E = Ve(g.query, E);
|
|
5974
|
-
for (let
|
|
5975
|
-
if (
|
|
5976
|
-
|
|
5967
|
+
for (let y = O.size() - 2; y >= 0; y--) {
|
|
5968
|
+
if (I[y].path === g.path) {
|
|
5969
|
+
b = !0;
|
|
5977
5970
|
break;
|
|
5978
5971
|
}
|
|
5979
5972
|
v += 1;
|
|
5980
5973
|
}
|
|
5981
|
-
|
|
5974
|
+
b && (S = v);
|
|
5982
5975
|
}
|
|
5983
|
-
if (
|
|
5976
|
+
if (S === 0 || O.size() <= S)
|
|
5984
5977
|
return;
|
|
5985
|
-
for (let v = 0; v <
|
|
5986
|
-
const
|
|
5987
|
-
a(
|
|
5978
|
+
for (let v = 0; v < S; v++) {
|
|
5979
|
+
const b = O.pop();
|
|
5980
|
+
a(b.id), s(b.id);
|
|
5988
5981
|
}
|
|
5989
|
-
const d =
|
|
5990
|
-
if (
|
|
5991
|
-
const v =
|
|
5982
|
+
const d = O == null ? void 0 : O.peek(), p = r(d.id);
|
|
5983
|
+
if (p != null) {
|
|
5984
|
+
const v = p.components.DynamicComponent;
|
|
5992
5985
|
v.props = Ve(E, v.props);
|
|
5993
5986
|
}
|
|
5994
5987
|
i.push({
|
|
@@ -6007,10 +6000,10 @@ const lu = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
6007
6000
|
typeof e.remove < "u" ? e.remove() : (t = e.parentNode) == null || t.removeChild(e);
|
|
6008
6001
|
};
|
|
6009
6002
|
function bu(e, t, n, s = {}) {
|
|
6010
|
-
const a =
|
|
6003
|
+
const a = Hn(e, t, s), r = document.createElement("div");
|
|
6011
6004
|
return r.classList.add("vld-container"), n.appendChild(r), As(a, r), a.component;
|
|
6012
6005
|
}
|
|
6013
|
-
const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */
|
|
6006
|
+
const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ Kn('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>', 1), Tu = [
|
|
6014
6007
|
Eu
|
|
6015
6008
|
], Nu = /* @__PURE__ */ de({
|
|
6016
6009
|
__name: "spinner",
|
|
@@ -6028,7 +6021,7 @@ const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ qn('<g fill="none
|
|
|
6028
6021
|
stroke: t.color
|
|
6029
6022
|
}, Tu, 8, vu));
|
|
6030
6023
|
}
|
|
6031
|
-
}), Ou = ["fill", "width", "height"], yu = /* @__PURE__ */
|
|
6024
|
+
}), Ou = ["fill", "width", "height"], yu = /* @__PURE__ */ Kn('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>', 3), Lu = [
|
|
6032
6025
|
yu
|
|
6033
6026
|
], Iu = /* @__PURE__ */ de({
|
|
6034
6027
|
__name: "dots",
|
|
@@ -6046,7 +6039,7 @@ const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ qn('<g fill="none
|
|
|
6046
6039
|
height: t.height
|
|
6047
6040
|
}, Lu, 8, Ou));
|
|
6048
6041
|
}
|
|
6049
|
-
}), ku = ["height", "width", "fill"], Su = /* @__PURE__ */
|
|
6042
|
+
}), ku = ["height", "width", "fill"], Su = /* @__PURE__ */ Kn('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>', 3), Au = [
|
|
6050
6043
|
Su
|
|
6051
6044
|
], Cu = /* @__PURE__ */ de({
|
|
6052
6045
|
__name: "bars",
|
|
@@ -6110,22 +6103,22 @@ const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ qn('<g fill="none
|
|
|
6110
6103
|
// @ts-ignore
|
|
6111
6104
|
a.value.contains(T.target))
|
|
6112
6105
|
return;
|
|
6113
|
-
const
|
|
6106
|
+
const O = s.container ? s.container : s.isFullPage ? null : a.value.parentElement;
|
|
6114
6107
|
// Always prevent when loading is full screen
|
|
6115
6108
|
(s.isFullPage || // When a parent exist means loader is running inside a container
|
|
6116
6109
|
// When loading is NOT full screen and event target is inside the given container
|
|
6117
6110
|
// @ts-ignore
|
|
6118
|
-
|
|
6111
|
+
O && O.contains(T.target)) && (T.preventDefault(), a.value.focus());
|
|
6119
6112
|
}, E = ue(() => ({
|
|
6120
6113
|
background: s.backgroundColor,
|
|
6121
6114
|
opacity: s.opacity
|
|
6122
6115
|
}));
|
|
6123
|
-
return
|
|
6116
|
+
return lt(
|
|
6124
6117
|
() => s.active,
|
|
6125
6118
|
(T) => {
|
|
6126
6119
|
r.value = T;
|
|
6127
6120
|
}
|
|
6128
|
-
),
|
|
6121
|
+
), lt(
|
|
6129
6122
|
() => r,
|
|
6130
6123
|
(T) => {
|
|
6131
6124
|
T ? c() : h();
|
|
@@ -6136,9 +6129,9 @@ const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ qn('<g fill="none
|
|
|
6136
6129
|
document.removeEventListener("keyup", m), document.removeEventListener("focusin", f);
|
|
6137
6130
|
}), t({
|
|
6138
6131
|
hide: l
|
|
6139
|
-
}), (T,
|
|
6132
|
+
}), (T, O) => (K(), we(zn, { name: T.transition }, {
|
|
6140
6133
|
default: Oe(() => [
|
|
6141
|
-
|
|
6134
|
+
Yn(Te("div", {
|
|
6142
6135
|
tabindex: "0",
|
|
6143
6136
|
class: Ue(["vl-overlay vl-active", { "vl-full-page": T.isFullPage }]),
|
|
6144
6137
|
"aria-busy": r.value,
|
|
@@ -6164,7 +6157,7 @@ const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ qn('<g fill="none
|
|
|
6164
6157
|
$e(T.$slots, "after")
|
|
6165
6158
|
])
|
|
6166
6159
|
], 14, Pu), [
|
|
6167
|
-
[
|
|
6160
|
+
[Xn, r.value]
|
|
6168
6161
|
])
|
|
6169
6162
|
]),
|
|
6170
6163
|
_: 3
|
|
@@ -6186,7 +6179,7 @@ const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ qn('<g fill="none
|
|
|
6186
6179
|
};
|
|
6187
6180
|
}
|
|
6188
6181
|
}), Wu = () => {
|
|
6189
|
-
const e = Du(), { attrs: t } =
|
|
6182
|
+
const e = Du(), { attrs: t } = it();
|
|
6190
6183
|
let n = null;
|
|
6191
6184
|
Ot(() => {
|
|
6192
6185
|
a();
|
|
@@ -6212,15 +6205,15 @@ const vu = ["width", "height", "stroke"], Eu = /* @__PURE__ */ qn('<g fill="none
|
|
|
6212
6205
|
fallbackLocale: "en-US"
|
|
6213
6206
|
}), Bu = {
|
|
6214
6207
|
install(e) {
|
|
6215
|
-
hu("0.1.
|
|
6208
|
+
hu("0.1.15"), e.component("VueStackTabs", ou).use(Fu);
|
|
6216
6209
|
}
|
|
6217
6210
|
};
|
|
6218
6211
|
export {
|
|
6219
6212
|
Vu as IFrame,
|
|
6220
|
-
|
|
6213
|
+
En as Stack,
|
|
6221
6214
|
ou as StackTab,
|
|
6222
|
-
|
|
6223
|
-
|
|
6215
|
+
Bn as TabHeaderButton,
|
|
6216
|
+
st as TabScrollMode,
|
|
6224
6217
|
Bu as default,
|
|
6225
6218
|
ru as useStackTab,
|
|
6226
6219
|
Wu as useTabLoading,
|