@assemblyvoting/ui-library 3.0.16 → 3.0.18
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/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as Q, h as M1, getCurrentInstance as w3, effectScope as rI, inject as B2, onMounted as M2, onUnmounted as ni, shallowRef as lI, ref as e2, computed as E, onBeforeMount as oI, watch as s2, Fragment as
|
1
|
+
import { defineComponent as Q, h as M1, getCurrentInstance as w3, effectScope as rI, inject as B2, onMounted as M2, onUnmounted as ni, shallowRef as lI, ref as e2, computed as E, onBeforeMount as oI, watch as s2, Fragment as t2, isRef as fI, createVNode as I, Text as uI, unref as B, getCurrentScope as mI, onScopeDispose as dI, Transition as w1, withDirectives as T1, vShow as l3, openBlock as p, createElementBlock as H, createBlock as K, resolveDynamicComponent as _9, withCtx as i2, renderSlot as y2, resolveComponent as D, normalizeClass as Y, createCommentVNode as O, createTextVNode as D2, toDisplayString as k, createElementVNode as u, normalizeStyle as l1, reactive as ii, provide as si, renderList as g2, pushScopeId as V1, popScopeId as z1, useCssVars as vI, mergeProps as pI, withModifiers as S1, withKeys as ri, createSlots as hI, nextTick as VI, vModelText as li } from "vue";
|
2
2
|
/*!
|
3
3
|
* shared v9.7.0
|
4
4
|
* (c) 2023 kazuya kawaguchi
|
@@ -29,7 +29,7 @@ const bI = Object.prototype.hasOwnProperty;
|
|
29
29
|
function T3(e, c) {
|
30
30
|
return bI.call(e, c);
|
31
31
|
}
|
32
|
-
const p2 = Array.isArray, V2 = (e) => typeof e == "function",
|
32
|
+
const p2 = Array.isArray, V2 = (e) => typeof e == "function", $ = (e) => typeof e == "string", n2 = (e) => typeof e == "boolean", m2 = (e) => e !== null && typeof e == "object", oi = Object.prototype.toString, fi = (e) => oi.call(e), c2 = (e) => {
|
33
33
|
if (!m2(e))
|
34
34
|
return !1;
|
35
35
|
const c = Object.getPrototypeOf(e);
|
@@ -181,7 +181,7 @@ const TI = /<\/?[\w\s="/.':;#-\/]+>/, II = (e) => TI.test(e), H1 = " ", EI = "\r
|
|
181
181
|
function PI(e) {
|
182
182
|
const c = e;
|
183
183
|
let a = 0, t = 1, n = 1, i = 0;
|
184
|
-
const s = (
|
184
|
+
const s = (C) => c[C] === EI && c[C + 1] === $2, r = (C) => c[C] === $2, l = (C) => c[C] === OI, f = (C) => c[C] === DI, o = (C) => s(C) || r(C) || l(C) || f(C), m = () => a, d = () => t, h = () => n, b = () => i, L = (C) => s(C) || l(C) || f(C) ? $2 : c[C], N = () => L(a), V = () => L(a + i);
|
185
185
|
function g() {
|
186
186
|
return i = 0, o(a) && (t++, n = 0), s(a) && a++, a++, n++, c[a];
|
187
187
|
}
|
@@ -191,12 +191,12 @@ function PI(e) {
|
|
191
191
|
function M() {
|
192
192
|
a = 0, t = 1, n = 1, i = 0;
|
193
193
|
}
|
194
|
-
function
|
195
|
-
i =
|
194
|
+
function x(C = 0) {
|
195
|
+
i = C;
|
196
196
|
}
|
197
|
-
function
|
198
|
-
const
|
199
|
-
for (;
|
197
|
+
function w() {
|
198
|
+
const C = a + i;
|
199
|
+
for (; C !== a; )
|
200
200
|
g();
|
201
201
|
i = 0;
|
202
202
|
}
|
@@ -204,15 +204,15 @@ function PI(e) {
|
|
204
204
|
index: m,
|
205
205
|
line: d,
|
206
206
|
column: h,
|
207
|
-
peekOffset:
|
207
|
+
peekOffset: b,
|
208
208
|
charAt: L,
|
209
|
-
currentChar:
|
209
|
+
currentChar: N,
|
210
210
|
currentPeek: V,
|
211
211
|
next: g,
|
212
212
|
peek: _,
|
213
213
|
reset: M,
|
214
|
-
resetPeek:
|
215
|
-
skipToPeek:
|
214
|
+
resetPeek: x,
|
215
|
+
skipToPeek: w
|
216
216
|
};
|
217
217
|
}
|
218
218
|
const N1 = void 0, BI = ".", S9 = "'", jI = "tokenizer";
|
@@ -230,27 +230,27 @@ function FI(e, c = {}) {
|
|
230
230
|
inLinked: !1,
|
231
231
|
text: ""
|
232
232
|
}, f = () => l, { onError: o } = c;
|
233
|
-
function m(z, v, S,
|
233
|
+
function m(z, v, S, ...U) {
|
234
234
|
const Z = f();
|
235
235
|
if (v.column += S, v.offset += S, o) {
|
236
236
|
const u2 = a ? Q6(Z.startLoc, v) : null, J2 = h3(z, u2, {
|
237
237
|
domain: jI,
|
238
|
-
args:
|
238
|
+
args: U
|
239
239
|
});
|
240
240
|
o(J2);
|
241
241
|
}
|
242
242
|
}
|
243
243
|
function d(z, v, S) {
|
244
244
|
z.endLoc = i(), z.currentType = v;
|
245
|
-
const
|
246
|
-
return a && (
|
245
|
+
const U = { type: v };
|
246
|
+
return a && (U.loc = Q6(z.startLoc, z.endLoc)), S != null && (U.value = S), U;
|
247
247
|
}
|
248
248
|
const h = (z) => d(
|
249
249
|
z,
|
250
250
|
14
|
251
251
|
/* TokenTypes.EOF */
|
252
252
|
);
|
253
|
-
function
|
253
|
+
function b(z, v) {
|
254
254
|
return z.currentChar() === v ? (z.next(), v) : (m(J.EXPECTED_TOKEN, i(), 0, v), "");
|
255
255
|
}
|
256
256
|
function L(z) {
|
@@ -259,7 +259,7 @@ function FI(e, c = {}) {
|
|
259
259
|
v += z.currentPeek(), z.peek();
|
260
260
|
return v;
|
261
261
|
}
|
262
|
-
function
|
262
|
+
function N(z) {
|
263
263
|
const v = L(z);
|
264
264
|
return z.skipToPeek(), v;
|
265
265
|
}
|
@@ -282,60 +282,60 @@ function FI(e, c = {}) {
|
|
282
282
|
if (S !== 2)
|
283
283
|
return !1;
|
284
284
|
L(z);
|
285
|
-
const
|
286
|
-
return z.resetPeek(),
|
285
|
+
const U = V(z.currentPeek());
|
286
|
+
return z.resetPeek(), U;
|
287
287
|
}
|
288
288
|
function M(z, v) {
|
289
289
|
const { currentType: S } = v;
|
290
290
|
if (S !== 2)
|
291
291
|
return !1;
|
292
292
|
L(z);
|
293
|
-
const
|
293
|
+
const U = z.currentPeek() === "-" ? z.peek() : z.currentPeek(), Z = g(U);
|
294
294
|
return z.resetPeek(), Z;
|
295
295
|
}
|
296
|
-
function
|
296
|
+
function x(z, v) {
|
297
297
|
const { currentType: S } = v;
|
298
298
|
if (S !== 2)
|
299
299
|
return !1;
|
300
300
|
L(z);
|
301
|
-
const
|
302
|
-
return z.resetPeek(),
|
301
|
+
const U = z.currentPeek() === S9;
|
302
|
+
return z.resetPeek(), U;
|
303
303
|
}
|
304
|
-
function
|
304
|
+
function w(z, v) {
|
305
305
|
const { currentType: S } = v;
|
306
306
|
if (S !== 8)
|
307
307
|
return !1;
|
308
308
|
L(z);
|
309
|
-
const
|
310
|
-
return z.resetPeek(),
|
309
|
+
const U = z.currentPeek() === ".";
|
310
|
+
return z.resetPeek(), U;
|
311
311
|
}
|
312
|
-
function
|
312
|
+
function C(z, v) {
|
313
313
|
const { currentType: S } = v;
|
314
314
|
if (S !== 9)
|
315
315
|
return !1;
|
316
316
|
L(z);
|
317
|
-
const
|
318
|
-
return z.resetPeek(),
|
317
|
+
const U = V(z.currentPeek());
|
318
|
+
return z.resetPeek(), U;
|
319
319
|
}
|
320
320
|
function y(z, v) {
|
321
321
|
const { currentType: S } = v;
|
322
322
|
if (!(S === 8 || S === 12))
|
323
323
|
return !1;
|
324
324
|
L(z);
|
325
|
-
const
|
326
|
-
return z.resetPeek(),
|
325
|
+
const U = z.currentPeek() === ":";
|
326
|
+
return z.resetPeek(), U;
|
327
327
|
}
|
328
|
-
function
|
328
|
+
function A(z, v) {
|
329
329
|
const { currentType: S } = v;
|
330
330
|
if (S !== 10)
|
331
331
|
return !1;
|
332
|
-
const
|
332
|
+
const U = () => {
|
333
333
|
const u2 = z.currentPeek();
|
334
|
-
return u2 === "{" ? V(z.peek()) : u2 === "@" || u2 === "%" || u2 === "|" || u2 === ":" || u2 === "." || u2 === H1 || !u2 ? !1 : u2 === $2 ? (z.peek(),
|
335
|
-
}, Z =
|
334
|
+
return u2 === "{" ? V(z.peek()) : u2 === "@" || u2 === "%" || u2 === "|" || u2 === ":" || u2 === "." || u2 === H1 || !u2 ? !1 : u2 === $2 ? (z.peek(), U()) : V(u2);
|
335
|
+
}, Z = U();
|
336
336
|
return z.resetPeek(), Z;
|
337
337
|
}
|
338
|
-
function
|
338
|
+
function F(z) {
|
339
339
|
L(z);
|
340
340
|
const v = z.currentPeek() === "|";
|
341
341
|
return z.resetPeek(), v;
|
@@ -351,45 +351,45 @@ function FI(e, c = {}) {
|
|
351
351
|
const S = (Z = !1, u2 = "", J2 = !1) => {
|
352
352
|
const O2 = z.currentPeek();
|
353
353
|
return O2 === "{" ? u2 === "%" ? !1 : Z : O2 === "@" || !O2 ? u2 === "%" ? !0 : Z : O2 === "%" ? (z.peek(), S(Z, "%", !0)) : O2 === "|" ? u2 === "%" || J2 ? !0 : !(u2 === H1 || u2 === $2) : O2 === H1 ? (z.peek(), S(!0, H1, J2)) : O2 === $2 ? (z.peek(), S(!0, $2, J2)) : !0;
|
354
|
-
},
|
355
|
-
return v && z.resetPeek(),
|
354
|
+
}, U = S();
|
355
|
+
return v && z.resetPeek(), U;
|
356
356
|
}
|
357
357
|
function j(z, v) {
|
358
358
|
const S = z.currentChar();
|
359
359
|
return S === N1 ? N1 : v(S) ? (z.next(), S) : null;
|
360
360
|
}
|
361
|
-
function
|
361
|
+
function r2(z) {
|
362
362
|
return j(z, (S) => {
|
363
|
-
const
|
364
|
-
return
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
363
|
+
const U = S.charCodeAt(0);
|
364
|
+
return U >= 97 && U <= 122 || // a-z
|
365
|
+
U >= 65 && U <= 90 || // A-Z
|
366
|
+
U >= 48 && U <= 57 || // 0-9
|
367
|
+
U === 95 || // _
|
368
|
+
U === 36;
|
369
369
|
});
|
370
370
|
}
|
371
|
-
function
|
371
|
+
function l2(z) {
|
372
372
|
return j(z, (S) => {
|
373
|
-
const
|
374
|
-
return
|
373
|
+
const U = S.charCodeAt(0);
|
374
|
+
return U >= 48 && U <= 57;
|
375
375
|
});
|
376
376
|
}
|
377
|
-
function
|
377
|
+
function a2(z) {
|
378
378
|
return j(z, (S) => {
|
379
|
-
const
|
380
|
-
return
|
381
|
-
|
382
|
-
|
379
|
+
const U = S.charCodeAt(0);
|
380
|
+
return U >= 48 && U <= 57 || // 0-9
|
381
|
+
U >= 65 && U <= 70 || // A-F
|
382
|
+
U >= 97 && U <= 102;
|
383
383
|
});
|
384
384
|
}
|
385
385
|
function h2(z) {
|
386
386
|
let v = "", S = "";
|
387
|
-
for (; v =
|
387
|
+
for (; v = l2(z); )
|
388
388
|
S += v;
|
389
389
|
return S;
|
390
390
|
}
|
391
391
|
function F2(z) {
|
392
|
-
|
392
|
+
N(z);
|
393
393
|
const v = z.currentChar();
|
394
394
|
return v !== "%" && m(J.EXPECTED_TOKEN, i(), 0, v), z.next(), "%";
|
395
395
|
}
|
@@ -408,7 +408,7 @@ function FI(e, c = {}) {
|
|
408
408
|
if (R(z))
|
409
409
|
v += S, z.next();
|
410
410
|
else {
|
411
|
-
if (
|
411
|
+
if (F(z))
|
412
412
|
break;
|
413
413
|
v += S, z.next();
|
414
414
|
}
|
@@ -418,25 +418,25 @@ function FI(e, c = {}) {
|
|
418
418
|
return v;
|
419
419
|
}
|
420
420
|
function v2(z) {
|
421
|
-
|
421
|
+
N(z);
|
422
422
|
let v = "", S = "";
|
423
|
-
for (; v =
|
423
|
+
for (; v = r2(z); )
|
424
424
|
S += v;
|
425
425
|
return z.currentChar() === N1 && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), S;
|
426
426
|
}
|
427
427
|
function A2(z) {
|
428
|
-
|
428
|
+
N(z);
|
429
429
|
let v = "";
|
430
430
|
return z.currentChar() === "-" ? (z.next(), v += `-${h2(z)}`) : v += h2(z), z.currentChar() === N1 && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), v;
|
431
431
|
}
|
432
432
|
function k2(z) {
|
433
|
-
|
433
|
+
N(z), b(z, "'");
|
434
434
|
let v = "", S = "";
|
435
|
-
const
|
436
|
-
for (; v = j(z,
|
435
|
+
const U = (u2) => u2 !== S9 && u2 !== $2;
|
436
|
+
for (; v = j(z, U); )
|
437
437
|
v === "\\" ? S += C2(z) : S += v;
|
438
438
|
const Z = z.currentChar();
|
439
|
-
return Z === $2 || Z === N1 ? (m(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Z === $2 && (z.next(),
|
439
|
+
return Z === $2 || Z === N1 ? (m(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Z === $2 && (z.next(), b(z, "'")), S) : (b(z, "'"), S);
|
440
440
|
}
|
441
441
|
function C2(z) {
|
442
442
|
const v = z.currentChar();
|
@@ -453,47 +453,47 @@ function FI(e, c = {}) {
|
|
453
453
|
}
|
454
454
|
}
|
455
455
|
function I2(z, v, S) {
|
456
|
-
|
457
|
-
let
|
456
|
+
b(z, v);
|
457
|
+
let U = "";
|
458
458
|
for (let Z = 0; Z < S; Z++) {
|
459
|
-
const u2 =
|
459
|
+
const u2 = a2(z);
|
460
460
|
if (!u2) {
|
461
|
-
m(J.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${v}${
|
461
|
+
m(J.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${v}${U}${z.currentChar()}`);
|
462
462
|
break;
|
463
463
|
}
|
464
|
-
|
464
|
+
U += u2;
|
465
465
|
}
|
466
|
-
return `\\${v}${
|
466
|
+
return `\\${v}${U}`;
|
467
467
|
}
|
468
468
|
function j2(z) {
|
469
|
-
|
469
|
+
N(z);
|
470
470
|
let v = "", S = "";
|
471
|
-
const
|
472
|
-
for (; v = j(z,
|
471
|
+
const U = (Z) => Z !== "{" && Z !== "}" && Z !== H1 && Z !== $2;
|
472
|
+
for (; v = j(z, U); )
|
473
473
|
S += v;
|
474
474
|
return S;
|
475
475
|
}
|
476
476
|
function o1(z) {
|
477
477
|
let v = "", S = "";
|
478
|
-
for (; v =
|
478
|
+
for (; v = r2(z); )
|
479
479
|
S += v;
|
480
480
|
return S;
|
481
481
|
}
|
482
482
|
function f1(z) {
|
483
|
-
const v = (S = !1,
|
483
|
+
const v = (S = !1, U) => {
|
484
484
|
const Z = z.currentChar();
|
485
|
-
return Z === "{" || Z === "%" || Z === "@" || Z === "|" || Z === "(" || Z === ")" || !Z || Z === H1 ?
|
485
|
+
return Z === "{" || Z === "%" || Z === "@" || Z === "|" || Z === "(" || Z === ")" || !Z || Z === H1 ? U : Z === $2 || Z === BI ? (U += Z, z.next(), v(S, U)) : (U += Z, z.next(), v(!0, U));
|
486
486
|
};
|
487
487
|
return v(!1, "");
|
488
488
|
}
|
489
489
|
function R2(z) {
|
490
|
-
|
491
|
-
const v =
|
490
|
+
N(z);
|
491
|
+
const v = b(
|
492
492
|
z,
|
493
493
|
"|"
|
494
494
|
/* TokenChars.Pipe */
|
495
495
|
);
|
496
|
-
return
|
496
|
+
return N(z), v;
|
497
497
|
}
|
498
498
|
function i1(z, v) {
|
499
499
|
let S = null;
|
@@ -504,62 +504,62 @@ function FI(e, c = {}) {
|
|
504
504
|
2,
|
505
505
|
"{"
|
506
506
|
/* TokenChars.BraceLeft */
|
507
|
-
),
|
507
|
+
), N(z), v.braceNest++, S;
|
508
508
|
case "}":
|
509
509
|
return v.braceNest > 0 && v.currentType === 2 && m(J.EMPTY_PLACEHOLDER, i(), 0), z.next(), S = d(
|
510
510
|
v,
|
511
511
|
3,
|
512
512
|
"}"
|
513
513
|
/* TokenChars.BraceRight */
|
514
|
-
), v.braceNest--, v.braceNest > 0 &&
|
514
|
+
), v.braceNest--, v.braceNest > 0 && N(z), v.inLinked && v.braceNest === 0 && (v.inLinked = !1), S;
|
515
515
|
case "@":
|
516
516
|
return v.braceNest > 0 && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), S = u1(z, v) || h(v), v.braceNest = 0, S;
|
517
517
|
default:
|
518
518
|
let Z = !0, u2 = !0, J2 = !0;
|
519
|
-
if (
|
519
|
+
if (F(z))
|
520
520
|
return v.braceNest > 0 && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), S = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, S;
|
521
521
|
if (v.braceNest > 0 && (v.currentType === 5 || v.currentType === 6 || v.currentType === 7))
|
522
522
|
return m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), v.braceNest = 0, s1(z, v);
|
523
523
|
if (Z = _(z, v))
|
524
|
-
return S = d(v, 5, v2(z)),
|
524
|
+
return S = d(v, 5, v2(z)), N(z), S;
|
525
525
|
if (u2 = M(z, v))
|
526
|
-
return S = d(v, 6, A2(z)),
|
527
|
-
if (J2 =
|
528
|
-
return S = d(v, 7, k2(z)),
|
526
|
+
return S = d(v, 6, A2(z)), N(z), S;
|
527
|
+
if (J2 = x(z, v))
|
528
|
+
return S = d(v, 7, k2(z)), N(z), S;
|
529
529
|
if (!Z && !u2 && !J2)
|
530
|
-
return S = d(v, 13, j2(z)), m(J.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, S.value),
|
530
|
+
return S = d(v, 13, j2(z)), m(J.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, S.value), N(z), S;
|
531
531
|
break;
|
532
532
|
}
|
533
533
|
return S;
|
534
534
|
}
|
535
535
|
function u1(z, v) {
|
536
536
|
const { currentType: S } = v;
|
537
|
-
let
|
537
|
+
let U = null;
|
538
538
|
const Z = z.currentChar();
|
539
539
|
switch ((S === 8 || S === 9 || S === 12 || S === 10) && (Z === $2 || Z === H1) && m(J.INVALID_LINKED_FORMAT, i(), 0), Z) {
|
540
540
|
case "@":
|
541
|
-
return z.next(),
|
541
|
+
return z.next(), U = d(
|
542
542
|
v,
|
543
543
|
8,
|
544
544
|
"@"
|
545
545
|
/* TokenChars.LinkedAlias */
|
546
|
-
), v.inLinked = !0,
|
546
|
+
), v.inLinked = !0, U;
|
547
547
|
case ".":
|
548
|
-
return
|
548
|
+
return N(z), z.next(), d(
|
549
549
|
v,
|
550
550
|
9,
|
551
551
|
"."
|
552
552
|
/* TokenChars.LinkedDot */
|
553
553
|
);
|
554
554
|
case ":":
|
555
|
-
return
|
555
|
+
return N(z), z.next(), d(
|
556
556
|
v,
|
557
557
|
10,
|
558
558
|
":"
|
559
559
|
/* TokenChars.LinkedDelimiter */
|
560
560
|
);
|
561
561
|
default:
|
562
|
-
return
|
562
|
+
return F(z) ? (U = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, U) : w(z, v) || y(z, v) ? (N(z), u1(z, v)) : C(z, v) ? (N(z), d(v, 12, o1(z))) : A(z, v) ? (N(z), Z === "{" ? i1(z, v) || U : d(v, 11, f1(z))) : (S === 8 && m(J.INVALID_LINKED_FORMAT, i(), 0), v.braceNest = 0, v.inLinked = !1, s1(z, v));
|
563
563
|
}
|
564
564
|
}
|
565
565
|
function s1(z, v) {
|
@@ -584,7 +584,7 @@ function FI(e, c = {}) {
|
|
584
584
|
case "@":
|
585
585
|
return u1(z, v) || h(v);
|
586
586
|
default:
|
587
|
-
if (
|
587
|
+
if (F(z))
|
588
588
|
return S = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, S;
|
589
589
|
const { isModulo: Z, hasSpace: u2 } = W(z);
|
590
590
|
if (Z)
|
@@ -596,8 +596,8 @@ function FI(e, c = {}) {
|
|
596
596
|
return S;
|
597
597
|
}
|
598
598
|
function F1() {
|
599
|
-
const { currentType: z, offset: v, startLoc: S, endLoc:
|
600
|
-
return l.lastType = z, l.lastOffset = v, l.lastStartLoc = S, l.lastEndLoc =
|
599
|
+
const { currentType: z, offset: v, startLoc: S, endLoc: U } = l;
|
600
|
+
return l.lastType = z, l.lastOffset = v, l.lastStartLoc = S, l.lastEndLoc = U, l.offset = n(), l.startLoc = i(), t.currentChar() === N1 ? d(
|
601
601
|
l,
|
602
602
|
14
|
603
603
|
/* TokenTypes.EOF */
|
@@ -625,12 +625,12 @@ function UI(e, c, a) {
|
|
625
625
|
}
|
626
626
|
function qI(e = {}) {
|
627
627
|
const c = e.location !== !1, { onError: a } = e;
|
628
|
-
function t(V, g, _, M, ...
|
629
|
-
const
|
630
|
-
if (
|
631
|
-
const
|
628
|
+
function t(V, g, _, M, ...x) {
|
629
|
+
const w = V.currentPosition();
|
630
|
+
if (w.offset += M, w.column += M, a) {
|
631
|
+
const C = c ? Q6(_, w) : null, y = h3(g, C, {
|
632
632
|
domain: RI,
|
633
|
-
args:
|
633
|
+
args: x
|
634
634
|
});
|
635
635
|
a(y);
|
636
636
|
}
|
@@ -647,24 +647,24 @@ function qI(e = {}) {
|
|
647
647
|
return M.value = g, i(M, V.currentOffset(), V.currentPosition()), M;
|
648
648
|
}
|
649
649
|
function r(V, g) {
|
650
|
-
const _ = V.context(), { lastOffset: M, lastStartLoc:
|
651
|
-
return
|
650
|
+
const _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(5, M, x);
|
651
|
+
return w.index = parseInt(g, 10), V.nextToken(), i(w, V.currentOffset(), V.currentPosition()), w;
|
652
652
|
}
|
653
653
|
function l(V, g) {
|
654
|
-
const _ = V.context(), { lastOffset: M, lastStartLoc:
|
655
|
-
return
|
654
|
+
const _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(4, M, x);
|
655
|
+
return w.key = g, V.nextToken(), i(w, V.currentOffset(), V.currentPosition()), w;
|
656
656
|
}
|
657
657
|
function f(V, g) {
|
658
|
-
const _ = V.context(), { lastOffset: M, lastStartLoc:
|
659
|
-
return
|
658
|
+
const _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(9, M, x);
|
659
|
+
return w.value = g.replace($I, UI), V.nextToken(), i(w, V.currentOffset(), V.currentPosition()), w;
|
660
660
|
}
|
661
661
|
function o(V) {
|
662
|
-
const g = V.nextToken(), _ = V.context(), { lastOffset: M, lastStartLoc:
|
663
|
-
return g.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER, _.lastStartLoc, 0),
|
662
|
+
const g = V.nextToken(), _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(8, M, x);
|
663
|
+
return g.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER, _.lastStartLoc, 0), w.value = "", i(w, M, x), {
|
664
664
|
nextConsumeToken: g,
|
665
|
-
node:
|
666
|
-
}) : (g.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, m1(g)),
|
667
|
-
node:
|
665
|
+
node: w
|
666
|
+
}) : (g.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, m1(g)), w.value = g.value || "", i(w, V.currentOffset(), V.currentPosition()), {
|
667
|
+
node: w
|
668
668
|
});
|
669
669
|
}
|
670
670
|
function m(V, g) {
|
@@ -675,8 +675,8 @@ function qI(e = {}) {
|
|
675
675
|
const g = V.context(), _ = n(6, g.offset, g.startLoc);
|
676
676
|
let M = V.nextToken();
|
677
677
|
if (M.type === 9) {
|
678
|
-
const
|
679
|
-
_.modifier =
|
678
|
+
const x = o(V);
|
679
|
+
_.modifier = x.node, M = x.nextConsumeToken || V.nextToken();
|
680
680
|
}
|
681
681
|
switch (M.type !== 10 && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), M = V.nextToken(), M.type === 2 && (M = V.nextToken()), M.type) {
|
682
682
|
case 11:
|
@@ -693,8 +693,8 @@ function qI(e = {}) {
|
|
693
693
|
break;
|
694
694
|
default:
|
695
695
|
t(V, J.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
696
|
-
const
|
697
|
-
return
|
696
|
+
const x = V.context(), w = n(7, x.offset, x.startLoc);
|
697
|
+
return w.value = "", i(w, x.offset, x.startLoc), _.key = w, i(_, x.offset, x.startLoc), {
|
698
698
|
nextConsumeToken: M,
|
699
699
|
node: _
|
700
700
|
};
|
@@ -704,53 +704,53 @@ function qI(e = {}) {
|
|
704
704
|
};
|
705
705
|
}
|
706
706
|
function h(V) {
|
707
|
-
const g = V.context(), _ = g.currentType === 1 ? V.currentOffset() : g.offset, M = g.currentType === 1 ? g.endLoc : g.startLoc,
|
708
|
-
|
709
|
-
let
|
707
|
+
const g = V.context(), _ = g.currentType === 1 ? V.currentOffset() : g.offset, M = g.currentType === 1 ? g.endLoc : g.startLoc, x = n(2, _, M);
|
708
|
+
x.items = [];
|
709
|
+
let w = null;
|
710
710
|
do {
|
711
|
-
const
|
712
|
-
switch (
|
711
|
+
const A = w || V.nextToken();
|
712
|
+
switch (w = null, A.type) {
|
713
713
|
case 0:
|
714
|
-
|
714
|
+
A.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(s(V, A.value || ""));
|
715
715
|
break;
|
716
716
|
case 6:
|
717
|
-
|
717
|
+
A.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(r(V, A.value || ""));
|
718
718
|
break;
|
719
719
|
case 5:
|
720
|
-
|
720
|
+
A.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(l(V, A.value || ""));
|
721
721
|
break;
|
722
722
|
case 7:
|
723
|
-
|
723
|
+
A.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(f(V, A.value || ""));
|
724
724
|
break;
|
725
725
|
case 8:
|
726
|
-
const
|
727
|
-
|
726
|
+
const F = d(V);
|
727
|
+
x.items.push(F.node), w = F.nextConsumeToken || null;
|
728
728
|
break;
|
729
729
|
}
|
730
730
|
} while (g.currentType !== 14 && g.currentType !== 1);
|
731
|
-
const
|
732
|
-
return i(
|
733
|
-
}
|
734
|
-
function
|
735
|
-
const
|
736
|
-
let
|
737
|
-
const
|
738
|
-
|
731
|
+
const C = g.currentType === 1 ? g.lastOffset : V.currentOffset(), y = g.currentType === 1 ? g.lastEndLoc : V.currentPosition();
|
732
|
+
return i(x, C, y), x;
|
733
|
+
}
|
734
|
+
function b(V, g, _, M) {
|
735
|
+
const x = V.context();
|
736
|
+
let w = M.items.length === 0;
|
737
|
+
const C = n(1, g, _);
|
738
|
+
C.cases = [], C.cases.push(M);
|
739
739
|
do {
|
740
740
|
const y = h(V);
|
741
|
-
|
742
|
-
} while (
|
743
|
-
return
|
741
|
+
w || (w = y.items.length === 0), C.cases.push(y);
|
742
|
+
} while (x.currentType !== 14);
|
743
|
+
return w && t(V, J.MUST_HAVE_MESSAGES_IN_PLURAL, _, 0), i(C, V.currentOffset(), V.currentPosition()), C;
|
744
744
|
}
|
745
745
|
function L(V) {
|
746
|
-
const g = V.context(), { offset: _, startLoc: M } = g,
|
747
|
-
return g.currentType === 14 ?
|
746
|
+
const g = V.context(), { offset: _, startLoc: M } = g, x = h(V);
|
747
|
+
return g.currentType === 14 ? x : b(V, _, M, x);
|
748
748
|
}
|
749
|
-
function
|
749
|
+
function N(V) {
|
750
750
|
const g = FI(V, ui({}, e)), _ = g.context(), M = n(0, _.offset, _.startLoc);
|
751
751
|
return c && M.loc && (M.loc.source = V), M.body = L(g), e.onCacheKey && (M.cacheKey = e.onCacheKey(V)), _.currentType !== 14 && t(g, J.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, V[_.offset] || ""), i(M, g.currentOffset(), g.currentPosition()), M;
|
752
752
|
}
|
753
|
-
return { parse:
|
753
|
+
return { parse: N };
|
754
754
|
}
|
755
755
|
function m1(e) {
|
756
756
|
if (e.type === 14)
|
@@ -904,20 +904,20 @@ function KI(e, c) {
|
|
904
904
|
};
|
905
905
|
s && e.loc && (r.source = e.loc.source);
|
906
906
|
const l = () => r;
|
907
|
-
function f(
|
908
|
-
r.code +=
|
907
|
+
function f(N, V) {
|
908
|
+
r.code += N;
|
909
909
|
}
|
910
|
-
function o(
|
910
|
+
function o(N, V = !0) {
|
911
911
|
const g = V ? n : "";
|
912
|
-
f(i ? g + " ".repeat(
|
912
|
+
f(i ? g + " ".repeat(N) : g);
|
913
913
|
}
|
914
|
-
function m(
|
914
|
+
function m(N = !0) {
|
915
915
|
const V = ++r.indentLevel;
|
916
|
-
|
916
|
+
N && o(V);
|
917
917
|
}
|
918
|
-
function d(
|
918
|
+
function d(N = !0) {
|
919
919
|
const V = --r.indentLevel;
|
920
|
-
|
920
|
+
N && o(V);
|
921
921
|
}
|
922
922
|
function h() {
|
923
923
|
o(r.indentLevel);
|
@@ -928,7 +928,7 @@ function KI(e, c) {
|
|
928
928
|
indent: m,
|
929
929
|
deindent: d,
|
930
930
|
newline: h,
|
931
|
-
helper: (
|
931
|
+
helper: (N) => `_${N}`,
|
932
932
|
needIndent: () => r.needIndent
|
933
933
|
};
|
934
934
|
}
|
@@ -1287,9 +1287,9 @@ function fE(e) {
|
|
1287
1287
|
}
|
1288
1288
|
};
|
1289
1289
|
function h() {
|
1290
|
-
const
|
1291
|
-
if (t === 5 &&
|
1292
|
-
return a++, r = "\\" +
|
1290
|
+
const b = e[a + 1];
|
1291
|
+
if (t === 5 && b === "'" || t === 6 && b === '"')
|
1292
|
+
return a++, r = "\\" + b, d[
|
1293
1293
|
0
|
1294
1294
|
/* Actions.APPEND */
|
1295
1295
|
](), !0;
|
@@ -1334,34 +1334,34 @@ function gE(e, c) {
|
|
1334
1334
|
c.count || (c.count = e), c.n || (c.n = e);
|
1335
1335
|
}
|
1336
1336
|
function HE(e = {}) {
|
1337
|
-
const c = e.locale, a = zE(e), t = m2(e.pluralRules) &&
|
1337
|
+
const c = e.locale, a = zE(e), t = m2(e.pluralRules) && $(c) && V2(e.pluralRules[c]) ? e.pluralRules[c] : E9, n = m2(e.pluralRules) && $(c) && V2(e.pluralRules[c]) ? E9 : void 0, i = (V) => V[t(a, V.length, n)], s = e.list || [], r = (V) => s[V], l = e.named || {};
|
1338
1338
|
S2(e.pluralIndex) && gE(a, l);
|
1339
1339
|
const f = (V) => l[V];
|
1340
1340
|
function o(V) {
|
1341
1341
|
const g = V2(e.messages) ? e.messages(V) : m2(e.messages) ? e.messages[V] : !1;
|
1342
1342
|
return g || (e.parent ? e.parent.message(V) : vE);
|
1343
1343
|
}
|
1344
|
-
const m = (V) => e.modifiers ? e.modifiers[V] : dE, d = c2(e.processor) && V2(e.processor.normalize) ? e.processor.normalize : hE, h = c2(e.processor) && V2(e.processor.interpolate) ? e.processor.interpolate : VE,
|
1344
|
+
const m = (V) => e.modifiers ? e.modifiers[V] : dE, d = c2(e.processor) && V2(e.processor.normalize) ? e.processor.normalize : hE, h = c2(e.processor) && V2(e.processor.interpolate) ? e.processor.interpolate : VE, b = c2(e.processor) && $(e.processor.type) ? e.processor.type : pE, N = {
|
1345
1345
|
list: r,
|
1346
1346
|
named: f,
|
1347
1347
|
plural: i,
|
1348
1348
|
linked: (V, ...g) => {
|
1349
1349
|
const [_, M] = g;
|
1350
|
-
let
|
1351
|
-
g.length === 1 ? m2(_) ? (
|
1352
|
-
const
|
1350
|
+
let x = "text", w = "";
|
1351
|
+
g.length === 1 ? m2(_) ? (w = _.modifier || w, x = _.type || x) : $(_) && (w = _ || w) : g.length === 2 && ($(_) && (w = _ || w), $(M) && (x = M || x));
|
1352
|
+
const C = o(V)(N), y = (
|
1353
1353
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1354
|
-
|
1354
|
+
x === "vnode" && p2(C) && w ? C[0] : C
|
1355
1355
|
);
|
1356
|
-
return
|
1356
|
+
return w ? m(w)(y, x) : y;
|
1357
1357
|
},
|
1358
1358
|
message: o,
|
1359
|
-
type:
|
1359
|
+
type: b,
|
1360
1360
|
interpolate: h,
|
1361
1361
|
normalize: d,
|
1362
1362
|
values: P2({}, s, l)
|
1363
1363
|
};
|
1364
|
-
return
|
1364
|
+
return N;
|
1365
1365
|
}
|
1366
1366
|
let I3 = null;
|
1367
1367
|
function ME(e) {
|
@@ -1408,16 +1408,16 @@ function _0(e, c) {
|
|
1408
1408
|
}
|
1409
1409
|
let j6;
|
1410
1410
|
function D9(e) {
|
1411
|
-
return
|
1411
|
+
return $(e) ? e : j6 != null && e.resolvedOnce ? j6 : j6 = e();
|
1412
1412
|
}
|
1413
1413
|
function yE(e, c, a) {
|
1414
1414
|
return [.../* @__PURE__ */ new Set([
|
1415
1415
|
a,
|
1416
|
-
...p2(c) ? c : m2(c) ? Object.keys(c) :
|
1416
|
+
...p2(c) ? c : m2(c) ? Object.keys(c) : $(c) ? [c] : [a]
|
1417
1417
|
])];
|
1418
1418
|
}
|
1419
1419
|
function di(e, c, a) {
|
1420
|
-
const t =
|
1420
|
+
const t = $(a) ? a : f3, n = e;
|
1421
1421
|
n.__localeChainCache || (n.__localeChainCache = /* @__PURE__ */ new Map());
|
1422
1422
|
let i = n.__localeChainCache.get(t);
|
1423
1423
|
if (!i) {
|
@@ -1426,7 +1426,7 @@ function di(e, c, a) {
|
|
1426
1426
|
for (; p2(s); )
|
1427
1427
|
s = O9(i, s, c);
|
1428
1428
|
const r = p2(c) || !c2(c) ? c : c.default ? c.default : null;
|
1429
|
-
s =
|
1429
|
+
s = $(r) ? [r] : r, p2(s) && O9(i, s, !1), n.__localeChainCache.set(t, i);
|
1430
1430
|
}
|
1431
1431
|
return i;
|
1432
1432
|
}
|
@@ -1434,7 +1434,7 @@ function O9(e, c, a) {
|
|
1434
1434
|
let t = !0;
|
1435
1435
|
for (let n = 0; n < c.length && n2(t); n++) {
|
1436
1436
|
const i = c[n];
|
1437
|
-
|
1437
|
+
$(i) && (t = AE(e, c[n], a));
|
1438
1438
|
}
|
1439
1439
|
return t;
|
1440
1440
|
}
|
@@ -1459,9 +1459,9 @@ function NE(e, c, a) {
|
|
1459
1459
|
const xE = "9.7.0", B4 = -1, f3 = "en-US", k4 = "", P9 = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
1460
1460
|
function kE() {
|
1461
1461
|
return {
|
1462
|
-
upper: (e, c) => c === "text" &&
|
1463
|
-
lower: (e, c) => c === "text" &&
|
1464
|
-
capitalize: (e, c) => c === "text" &&
|
1462
|
+
upper: (e, c) => c === "text" && $(e) ? e.toUpperCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
1463
|
+
lower: (e, c) => c === "text" && $(e) ? e.toLowerCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
1464
|
+
capitalize: (e, c) => c === "text" && $(e) ? P9(e) : c === "vnode" && m2(e) && "__v_isVNode" in e ? P9(e.children) : e
|
1465
1465
|
};
|
1466
1466
|
}
|
1467
1467
|
let vi;
|
@@ -1486,9 +1486,9 @@ const j9 = (e) => {
|
|
1486
1486
|
}, EE = () => zi;
|
1487
1487
|
let F9 = 0;
|
1488
1488
|
function DE(e = {}) {
|
1489
|
-
const c = V2(e.onWarn) ? e.onWarn : E2, a =
|
1489
|
+
const c = V2(e.onWarn) ? e.onWarn : E2, a = $(e.version) ? e.version : xE, t = $(e.locale) || V2(e.locale) ? e.locale : f3, n = V2(t) ? f3 : t, i = p2(e.fallbackLocale) || c2(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, f = P2({}, e.modifiers || {}, kE()), o = e.pluralRules || {}, m = V2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, L = !!e.unresolving, N = V2(e.postTranslation) ? e.postTranslation : null, V = c2(e.processor) ? e.processor : null, g = n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter, M = V2(e.messageCompiler) ? e.messageCompiler : vi;
|
1490
1490
|
process.env.NODE_ENV !== "production" && V2(e.messageCompiler) && yI(Q1(U2.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1491
|
-
const
|
1491
|
+
const x = V2(e.messageResolver) ? e.messageResolver : pi || uE, w = V2(e.localeFallbacker) ? e.localeFallbacker : hi || yE, C = m2(e.fallbackContext) ? e.fallbackContext : void 0, y = e, A = m2(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), F = m2(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), W = m2(y.__meta) ? y.__meta : {};
|
1492
1492
|
F9++;
|
1493
1493
|
const R = {
|
1494
1494
|
version: a,
|
@@ -1501,20 +1501,20 @@ function DE(e = {}) {
|
|
1501
1501
|
missing: m,
|
1502
1502
|
missingWarn: d,
|
1503
1503
|
fallbackWarn: h,
|
1504
|
-
fallbackFormat:
|
1504
|
+
fallbackFormat: b,
|
1505
1505
|
unresolving: L,
|
1506
|
-
postTranslation:
|
1506
|
+
postTranslation: N,
|
1507
1507
|
processor: V,
|
1508
1508
|
warnHtmlMessage: g,
|
1509
1509
|
escapeParameter: _,
|
1510
1510
|
messageCompiler: M,
|
1511
|
-
messageResolver:
|
1512
|
-
localeFallbacker:
|
1513
|
-
fallbackContext:
|
1511
|
+
messageResolver: x,
|
1512
|
+
localeFallbacker: w,
|
1513
|
+
fallbackContext: C,
|
1514
1514
|
onWarn: c,
|
1515
1515
|
__meta: W
|
1516
1516
|
};
|
1517
|
-
return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters =
|
1517
|
+
return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters = A, R.__numberFormatters = F, process.env.NODE_ENV !== "production" && (R.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bE(R, a, W), R;
|
1518
1518
|
}
|
1519
1519
|
function j4(e, c) {
|
1520
1520
|
return e instanceof RegExp ? e.test(c) : e;
|
@@ -1535,7 +1535,7 @@ function y0(e, c, a, t, n) {
|
|
1535
1535
|
}
|
1536
1536
|
if (i !== null) {
|
1537
1537
|
const r = i(e, a, c, n);
|
1538
|
-
return
|
1538
|
+
return $(r) ? r : c;
|
1539
1539
|
} else
|
1540
1540
|
return process.env.NODE_ENV !== "production" && gi(t, c) && s(Q1(U2.NOT_FOUND_KEY, { key: c, locale: a })), c;
|
1541
1541
|
}
|
@@ -1625,7 +1625,7 @@ function Ci(e, c = {}) {
|
|
1625
1625
|
}, { ...tE(e, c), detectError: a };
|
1626
1626
|
}
|
1627
1627
|
const jE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
1628
|
-
if (
|
1628
|
+
if (!$(e))
|
1629
1629
|
throw U1(c1.NOT_SUPPORT_NON_STRING_MESSAGE);
|
1630
1630
|
{
|
1631
1631
|
const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
@@ -1638,7 +1638,7 @@ const jE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
|
1638
1638
|
}
|
1639
1639
|
};
|
1640
1640
|
function FE(e, c) {
|
1641
|
-
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
1641
|
+
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && $(e)) {
|
1642
1642
|
const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
1643
1643
|
process.env.NODE_ENV !== "production" && Mi(e, a);
|
1644
1644
|
const n = (c.onCacheKey || bi)(e), i = n3[n];
|
@@ -1663,30 +1663,30 @@ function FE(e, c) {
|
|
1663
1663
|
}
|
1664
1664
|
const $9 = () => "", e1 = (e) => V2(e);
|
1665
1665
|
function U9(e, ...c) {
|
1666
|
-
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: i, fallbackLocale: s, messages: r } = e, [l, f] = K6(...c), o = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, m = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, d = n2(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, h = !!f.resolvedMessage,
|
1666
|
+
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: i, fallbackLocale: s, messages: r } = e, [l, f] = K6(...c), o = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, m = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, d = n2(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, h = !!f.resolvedMessage, b = $(f.default) || n2(f.default) ? n2(f.default) ? i ? l : () => l : f.default : a ? i ? l : () => l : "", L = a || b !== "", N = _0(e, f);
|
1667
1667
|
d && RE(f);
|
1668
1668
|
let [V, g, _] = h ? [
|
1669
1669
|
l,
|
1670
|
-
|
1671
|
-
r[
|
1672
|
-
] : Li(e, l,
|
1673
|
-
if (!h && !(
|
1670
|
+
N,
|
1671
|
+
r[N] || {}
|
1672
|
+
] : Li(e, l, N, s, m, o), M = V, x = l;
|
1673
|
+
if (!h && !($(M) || E1(M) || e1(M)) && L && (M = b, x = M), !h && (!($(M) || E1(M) || e1(M)) || !$(g)))
|
1674
1674
|
return n ? B4 : l;
|
1675
|
-
if (process.env.NODE_ENV !== "production" &&
|
1675
|
+
if (process.env.NODE_ENV !== "production" && $(M) && e.messageCompiler == null)
|
1676
1676
|
return E2(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
1677
|
-
let
|
1678
|
-
const
|
1679
|
-
|
1680
|
-
}, y = e1(M) ? M : _i(e, l, g, M,
|
1681
|
-
if (
|
1677
|
+
let w = !1;
|
1678
|
+
const C = () => {
|
1679
|
+
w = !0;
|
1680
|
+
}, y = e1(M) ? M : _i(e, l, g, M, x, C);
|
1681
|
+
if (w)
|
1682
1682
|
return M;
|
1683
|
-
const
|
1683
|
+
const A = WE(e, g, _, f), F = HE(A), W = $E(e, y, F), R = t ? t(W, l) : W;
|
1684
1684
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1685
1685
|
const j = {
|
1686
1686
|
timestamp: Date.now(),
|
1687
|
-
key:
|
1687
|
+
key: $(l) ? l : e1(M) ? M.key : "",
|
1688
1688
|
locale: g || (e1(M) ? M.locale : ""),
|
1689
|
-
format:
|
1689
|
+
format: $(M) ? M : e1(M) ? M.source : "",
|
1690
1690
|
message: R
|
1691
1691
|
};
|
1692
1692
|
j.meta = P2({}, e.__meta, /* @__PURE__ */ IE() || {}), CE(j);
|
@@ -1694,51 +1694,51 @@ function U9(e, ...c) {
|
|
1694
1694
|
return R;
|
1695
1695
|
}
|
1696
1696
|
function RE(e) {
|
1697
|
-
p2(e.list) ? e.list = e.list.map((c) =>
|
1698
|
-
|
1697
|
+
p2(e.list) ? e.list = e.list.map((c) => $(c) ? A9(c) : c) : m2(e.named) && Object.keys(e.named).forEach((c) => {
|
1698
|
+
$(e.named[c]) && (e.named[c] = A9(e.named[c]));
|
1699
1699
|
});
|
1700
1700
|
}
|
1701
1701
|
function Li(e, c, a, t, n, i) {
|
1702
1702
|
const { messages: s, onWarn: r, messageResolver: l, localeFallbacker: f } = e, o = f(e, t, a);
|
1703
|
-
let m = {}, d, h = null,
|
1704
|
-
const
|
1703
|
+
let m = {}, d, h = null, b = a, L = null;
|
1704
|
+
const N = "translate";
|
1705
1705
|
for (let V = 0; V < o.length; V++) {
|
1706
1706
|
if (d = L = o[V], process.env.NODE_ENV !== "production" && a !== d && j4(n, c) && r(Q1(U2.FALLBACK_TO_TRANSLATE, {
|
1707
1707
|
key: c,
|
1708
1708
|
target: d
|
1709
1709
|
})), process.env.NODE_ENV !== "production" && a !== d) {
|
1710
|
-
const
|
1711
|
-
|
1712
|
-
type:
|
1710
|
+
const w = e.__v_emitter;
|
1711
|
+
w && w.emit("fallback", {
|
1712
|
+
type: N,
|
1713
1713
|
key: c,
|
1714
|
-
from:
|
1714
|
+
from: b,
|
1715
1715
|
to: L,
|
1716
|
-
groupId: `${
|
1716
|
+
groupId: `${N}:${c}`
|
1717
1717
|
});
|
1718
1718
|
}
|
1719
1719
|
m = s[d] || {};
|
1720
1720
|
let g = null, _, M;
|
1721
1721
|
if (process.env.NODE_ENV !== "production" && p1 && (g = window.performance.now(), _ = "intlify-message-resolve-start", M = "intlify-message-resolve-end", X2 && X2(_)), (h = l(m, c)) === null && (h = m[c]), process.env.NODE_ENV !== "production" && p1) {
|
1722
|
-
const
|
1723
|
-
|
1722
|
+
const w = window.performance.now(), C = e.__v_emitter;
|
1723
|
+
C && g && h && C.emit("message-resolve", {
|
1724
1724
|
type: "message-resolve",
|
1725
1725
|
key: c,
|
1726
1726
|
message: h,
|
1727
|
-
time:
|
1728
|
-
groupId: `${
|
1727
|
+
time: w - g,
|
1728
|
+
groupId: `${N}:${c}`
|
1729
1729
|
}), _ && M && X2 && Y1 && (X2(M), Y1("intlify message resolve", _, M));
|
1730
1730
|
}
|
1731
|
-
if (
|
1731
|
+
if ($(h) || E1(h) || e1(h))
|
1732
1732
|
break;
|
1733
|
-
const
|
1733
|
+
const x = y0(
|
1734
1734
|
e,
|
1735
1735
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1736
1736
|
c,
|
1737
1737
|
d,
|
1738
1738
|
i,
|
1739
|
-
|
1739
|
+
N
|
1740
1740
|
);
|
1741
|
-
|
1741
|
+
x !== c && (h = x), b = L;
|
1742
1742
|
}
|
1743
1743
|
return [h, d, m];
|
1744
1744
|
}
|
@@ -1783,10 +1783,10 @@ function $E(e, c, a) {
|
|
1783
1783
|
}
|
1784
1784
|
function K6(...e) {
|
1785
1785
|
const [c, a, t] = e, n = {};
|
1786
|
-
if (
|
1786
|
+
if (!$(c) && !S2(c) && !e1(c) && !E1(c))
|
1787
1787
|
throw U1(c1.INVALID_ARGUMENT);
|
1788
1788
|
const i = S2(c) ? String(c) : (e1(c), c);
|
1789
|
-
return S2(a) ? n.plural = a :
|
1789
|
+
return S2(a) ? n.plural = a : $(a) ? n.default = a : c2(a) && !P4(a) ? n.named = a : p2(a) && (n.list = a), S2(t) ? n.plural = t : $(t) ? n.default = t : c2(t) && P2(n, t), [i, n];
|
1790
1790
|
}
|
1791
1791
|
function UE(e, c, a, t, n, i) {
|
1792
1792
|
return {
|
@@ -1811,7 +1811,7 @@ ${f}` : l);
|
|
1811
1811
|
};
|
1812
1812
|
}
|
1813
1813
|
function qE(e) {
|
1814
|
-
if (
|
1814
|
+
if ($(e))
|
1815
1815
|
return e;
|
1816
1816
|
if (e.loc && e.loc.source)
|
1817
1817
|
return e.loc.source;
|
@@ -1822,19 +1822,19 @@ function WE(e, c, a, t) {
|
|
1822
1822
|
modifiers: n,
|
1823
1823
|
pluralRules: i,
|
1824
1824
|
messages: (h) => {
|
1825
|
-
let
|
1826
|
-
if (
|
1825
|
+
let b = s(a, h);
|
1826
|
+
if (b == null && o) {
|
1827
1827
|
const [, , L] = Li(o, h, c, r, l, f);
|
1828
|
-
|
1828
|
+
b = s(L, h);
|
1829
1829
|
}
|
1830
|
-
if (
|
1830
|
+
if ($(b) || E1(b)) {
|
1831
1831
|
let L = !1;
|
1832
|
-
const V = _i(e, h, c,
|
1832
|
+
const V = _i(e, h, c, b, h, () => {
|
1833
1833
|
L = !0;
|
1834
1834
|
});
|
1835
1835
|
return L ? $9 : V;
|
1836
1836
|
} else
|
1837
|
-
return e1(
|
1837
|
+
return e1(b) ? b : $9;
|
1838
1838
|
}
|
1839
1839
|
};
|
1840
1840
|
return e.processor && (d.processor = e.processor), t.list && (d.list = t.list), t.named && (d.named = t.named), S2(t.plural) && (d.pluralIndex = t.plural), d;
|
@@ -1847,40 +1847,40 @@ function W9(e, ...c) {
|
|
1847
1847
|
const { datetimeFormats: a, unresolving: t, fallbackLocale: n, onWarn: i, localeFallbacker: s } = e, { __datetimeFormatters: r } = e;
|
1848
1848
|
if (process.env.NODE_ENV !== "production" && !yi.dateTimeFormat)
|
1849
1849
|
return i(Q1(U2.CANNOT_FORMAT_DATE)), k4;
|
1850
|
-
const [l, f, o, m] = Z6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn,
|
1850
|
+
const [l, f, o, m] = Z6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, b = !!o.part, L = _0(e, o), N = s(
|
1851
1851
|
e,
|
1852
1852
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1853
1853
|
n,
|
1854
1854
|
L
|
1855
1855
|
);
|
1856
|
-
if (
|
1856
|
+
if (!$(l) || l === "")
|
1857
1857
|
return new Intl.DateTimeFormat(L, m).format(f);
|
1858
|
-
let V = {}, g, _ = null, M = L,
|
1859
|
-
const
|
1860
|
-
for (let
|
1861
|
-
if (g =
|
1858
|
+
let V = {}, g, _ = null, M = L, x = null;
|
1859
|
+
const w = "datetime format";
|
1860
|
+
for (let A = 0; A < N.length; A++) {
|
1861
|
+
if (g = x = N[A], process.env.NODE_ENV !== "production" && L !== g && j4(h, l) && i(Q1(U2.FALLBACK_TO_DATE_FORMAT, {
|
1862
1862
|
key: l,
|
1863
1863
|
target: g
|
1864
1864
|
})), process.env.NODE_ENV !== "production" && L !== g) {
|
1865
|
-
const
|
1866
|
-
|
1867
|
-
type:
|
1865
|
+
const F = e.__v_emitter;
|
1866
|
+
F && F.emit("fallback", {
|
1867
|
+
type: w,
|
1868
1868
|
key: l,
|
1869
1869
|
from: M,
|
1870
|
-
to:
|
1871
|
-
groupId: `${
|
1870
|
+
to: x,
|
1871
|
+
groupId: `${w}:${l}`
|
1872
1872
|
});
|
1873
1873
|
}
|
1874
1874
|
if (V = a[g] || {}, _ = V[l], c2(_))
|
1875
1875
|
break;
|
1876
|
-
y0(e, l, g, d,
|
1876
|
+
y0(e, l, g, d, w), M = x;
|
1877
1877
|
}
|
1878
|
-
if (!c2(_) ||
|
1878
|
+
if (!c2(_) || !$(g))
|
1879
1879
|
return t ? B4 : l;
|
1880
|
-
let
|
1881
|
-
P4(m) || (
|
1882
|
-
let y = r.get(
|
1883
|
-
return y || (y = new Intl.DateTimeFormat(g, P2({}, _, m)), r.set(
|
1880
|
+
let C = `${g}__${l}`;
|
1881
|
+
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
1882
|
+
let y = r.get(C);
|
1883
|
+
return y || (y = new Intl.DateTimeFormat(g, P2({}, _, m)), r.set(C, y)), b ? y.formatToParts(f) : y.format(f);
|
1884
1884
|
}
|
1885
1885
|
const Ai = [
|
1886
1886
|
"localeMatcher",
|
@@ -1907,7 +1907,7 @@ const Ai = [
|
|
1907
1907
|
function Z6(...e) {
|
1908
1908
|
const [c, a, t, n] = e, i = {};
|
1909
1909
|
let s = {}, r;
|
1910
|
-
if (
|
1910
|
+
if ($(c)) {
|
1911
1911
|
const l = c.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
1912
1912
|
if (!l)
|
1913
1913
|
throw U1(c1.INVALID_ISO_DATE_ARGUMENT);
|
@@ -1926,9 +1926,9 @@ function Z6(...e) {
|
|
1926
1926
|
r = c;
|
1927
1927
|
else
|
1928
1928
|
throw U1(c1.INVALID_ARGUMENT);
|
1929
|
-
return
|
1929
|
+
return $(a) ? i.key = a : c2(a) && Object.keys(a).forEach((l) => {
|
1930
1930
|
Ai.includes(l) ? s[l] = a[l] : i[l] = a[l];
|
1931
|
-
}),
|
1931
|
+
}), $(t) ? i.locale = t : c2(t) && (s = t), c2(n) && (s = n), [i.key || "", r, i, s];
|
1932
1932
|
}
|
1933
1933
|
function G9(e, c, a) {
|
1934
1934
|
const t = e;
|
@@ -1941,40 +1941,40 @@ function Y9(e, ...c) {
|
|
1941
1941
|
const { numberFormats: a, unresolving: t, fallbackLocale: n, onWarn: i, localeFallbacker: s } = e, { __numberFormatters: r } = e;
|
1942
1942
|
if (process.env.NODE_ENV !== "production" && !yi.numberFormat)
|
1943
1943
|
return i(Q1(U2.CANNOT_FORMAT_NUMBER)), k4;
|
1944
|
-
const [l, f, o, m] = J6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn,
|
1944
|
+
const [l, f, o, m] = J6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, b = !!o.part, L = _0(e, o), N = s(
|
1945
1945
|
e,
|
1946
1946
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1947
1947
|
n,
|
1948
1948
|
L
|
1949
1949
|
);
|
1950
|
-
if (
|
1950
|
+
if (!$(l) || l === "")
|
1951
1951
|
return new Intl.NumberFormat(L, m).format(f);
|
1952
|
-
let V = {}, g, _ = null, M = L,
|
1953
|
-
const
|
1954
|
-
for (let
|
1955
|
-
if (g =
|
1952
|
+
let V = {}, g, _ = null, M = L, x = null;
|
1953
|
+
const w = "number format";
|
1954
|
+
for (let A = 0; A < N.length; A++) {
|
1955
|
+
if (g = x = N[A], process.env.NODE_ENV !== "production" && L !== g && j4(h, l) && i(Q1(U2.FALLBACK_TO_NUMBER_FORMAT, {
|
1956
1956
|
key: l,
|
1957
1957
|
target: g
|
1958
1958
|
})), process.env.NODE_ENV !== "production" && L !== g) {
|
1959
|
-
const
|
1960
|
-
|
1961
|
-
type:
|
1959
|
+
const F = e.__v_emitter;
|
1960
|
+
F && F.emit("fallback", {
|
1961
|
+
type: w,
|
1962
1962
|
key: l,
|
1963
1963
|
from: M,
|
1964
|
-
to:
|
1965
|
-
groupId: `${
|
1964
|
+
to: x,
|
1965
|
+
groupId: `${w}:${l}`
|
1966
1966
|
});
|
1967
1967
|
}
|
1968
1968
|
if (V = a[g] || {}, _ = V[l], c2(_))
|
1969
1969
|
break;
|
1970
|
-
y0(e, l, g, d,
|
1970
|
+
y0(e, l, g, d, w), M = x;
|
1971
1971
|
}
|
1972
|
-
if (!c2(_) ||
|
1972
|
+
if (!c2(_) || !$(g))
|
1973
1973
|
return t ? B4 : l;
|
1974
|
-
let
|
1975
|
-
P4(m) || (
|
1976
|
-
let y = r.get(
|
1977
|
-
return y || (y = new Intl.NumberFormat(g, P2({}, _, m)), r.set(
|
1974
|
+
let C = `${g}__${l}`;
|
1975
|
+
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
1976
|
+
let y = r.get(C);
|
1977
|
+
return y || (y = new Intl.NumberFormat(g, P2({}, _, m)), r.set(C, y)), b ? y.formatToParts(f) : y.format(f);
|
1978
1978
|
}
|
1979
1979
|
const Ni = [
|
1980
1980
|
"localeMatcher",
|
@@ -2004,9 +2004,9 @@ function J6(...e) {
|
|
2004
2004
|
if (!S2(c))
|
2005
2005
|
throw U1(c1.INVALID_ARGUMENT);
|
2006
2006
|
const r = c;
|
2007
|
-
return
|
2007
|
+
return $(a) ? i.key = a : c2(a) && Object.keys(a).forEach((l) => {
|
2008
2008
|
Ni.includes(l) ? s[l] = a[l] : i[l] = a[l];
|
2009
|
-
}),
|
2009
|
+
}), $(t) ? i.locale = t : c2(t) && (s = t), c2(n) && (s = n), [i.key || "", r, i, s];
|
2010
2010
|
}
|
2011
2011
|
function Q9(e, c, a) {
|
2012
2012
|
const t = e;
|
@@ -2140,7 +2140,7 @@ const ki = U2.__EXTEND_POINT__, x1 = b0(ki), N2 = {
|
|
2140
2140
|
function Q2(e, ...c) {
|
2141
2141
|
return M0(tD[e], ...c);
|
2142
2142
|
}
|
2143
|
-
const Si = c1.__EXTEND_POINT__, q2 = b0(Si),
|
2143
|
+
const Si = c1.__EXTEND_POINT__, q2 = b0(Si), f2 = {
|
2144
2144
|
// composer module errors
|
2145
2145
|
UNEXPECTED_RETURN_TYPE: Si,
|
2146
2146
|
// legacy module errors
|
@@ -2173,20 +2173,20 @@ function w2(e, ...c) {
|
|
2173
2173
|
return h3(e, null, process.env.NODE_ENV !== "production" ? { messages: nD, args: c } : void 0);
|
2174
2174
|
}
|
2175
2175
|
const nD = {
|
2176
|
-
[
|
2177
|
-
[
|
2178
|
-
[
|
2179
|
-
[
|
2180
|
-
[
|
2181
|
-
[
|
2182
|
-
[
|
2183
|
-
[
|
2184
|
-
[
|
2185
|
-
[
|
2186
|
-
[
|
2187
|
-
[
|
2188
|
-
[
|
2189
|
-
[
|
2176
|
+
[f2.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
2177
|
+
[f2.INVALID_ARGUMENT]: "Invalid argument",
|
2178
|
+
[f2.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
2179
|
+
[f2.NOT_INSTALLED]: "Need to install with `app.use` function",
|
2180
|
+
[f2.UNEXPECTED_ERROR]: "Unexpected error",
|
2181
|
+
[f2.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
2182
|
+
[f2.REQUIRED_VALUE]: "Required in value: {0}",
|
2183
|
+
[f2.INVALID_VALUE]: "Invalid value",
|
2184
|
+
[f2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
2185
|
+
[f2.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
2186
|
+
[f2.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
2187
|
+
[f2.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
2188
|
+
[f2.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",
|
2189
|
+
[f2.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
2190
2190
|
}, c0 = /* @__PURE__ */ g1("__translateVNode"), a0 = /* @__PURE__ */ g1("__datetimeParts"), t0 = /* @__PURE__ */ g1("__numberParts"), X1 = /* @__PURE__ */ g1("__enableEmitter"), E3 = /* @__PURE__ */ g1("__disableEmitter"), wi = g1("__setPluralRules"), Ti = /* @__PURE__ */ g1("__injectWithOption"), n0 = /* @__PURE__ */ g1("__dispose");
|
2191
2191
|
function D3(e) {
|
2192
2192
|
if (!m2(e))
|
@@ -2218,7 +2218,7 @@ function F4(e, c) {
|
|
2218
2218
|
const { locale: l, resource: f } = r;
|
2219
2219
|
l ? (s[l] = s[l] || {}, A3(f, s[l])) : A3(f, s);
|
2220
2220
|
} else
|
2221
|
-
|
2221
|
+
$(r) && A3(JSON.parse(r), s);
|
2222
2222
|
}), n == null && i)
|
2223
2223
|
for (const r in s)
|
2224
2224
|
T3(s, r) && D3(s[r]);
|
@@ -2270,23 +2270,23 @@ function A0(e = {}, c) {
|
|
2270
2270
|
let s = n2(e.inheritLocale) ? e.inheritLocale : !0;
|
2271
2271
|
const r = e2(
|
2272
2272
|
// prettier-ignore
|
2273
|
-
a && s ? a.locale.value :
|
2273
|
+
a && s ? a.locale.value : $(e.locale) ? e.locale : f3
|
2274
2274
|
), l = e2(
|
2275
2275
|
// prettier-ignore
|
2276
|
-
a && s ? a.fallbackLocale.value :
|
2276
|
+
a && s ? a.fallbackLocale.value : $(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
|
2277
2277
|
), f = e2(F4(r.value, e)), o = e2(c2(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), m = e2(c2(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
|
2278
|
-
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0,
|
2279
|
-
const
|
2280
|
-
let
|
2281
|
-
|
2278
|
+
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n2(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, N = V2(e.missing) ? e.missing : null, V = V2(e.missing) ? en(e.missing) : null, g = V2(e.postTranslation) ? e.postTranslation : null, _ = a ? a.warnHtmlMessage : n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, M = !!e.escapeParameter;
|
2279
|
+
const x = a ? a.modifiers : c2(e.modifiers) ? e.modifiers : {};
|
2280
|
+
let w = e.pluralRules || a && a.pluralRules, C;
|
2281
|
+
C = (() => {
|
2282
2282
|
n && j9(null);
|
2283
2283
|
const T = {
|
2284
2284
|
version: cD,
|
2285
2285
|
locale: r.value,
|
2286
2286
|
fallbackLocale: l.value,
|
2287
2287
|
messages: f.value,
|
2288
|
-
modifiers:
|
2289
|
-
pluralRules:
|
2288
|
+
modifiers: x,
|
2289
|
+
pluralRules: w,
|
2290
2290
|
missing: V === null ? void 0 : V,
|
2291
2291
|
missingWarn: d,
|
2292
2292
|
fallbackWarn: h,
|
@@ -2299,11 +2299,11 @@ function A0(e = {}, c) {
|
|
2299
2299
|
messageCompiler: e.messageCompiler,
|
2300
2300
|
__meta: { framework: "vue" }
|
2301
2301
|
};
|
2302
|
-
T.datetimeFormats = o.value, T.numberFormats = m.value, T.__datetimeFormatters = c2(
|
2302
|
+
T.datetimeFormats = o.value, T.numberFormats = m.value, T.__datetimeFormatters = c2(C) ? C.__datetimeFormatters : void 0, T.__numberFormatters = c2(C) ? C.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (T.__v_emitter = c2(C) ? C.__v_emitter : void 0);
|
2303
2303
|
const P = DE(T);
|
2304
2304
|
return n && j9(P), P;
|
2305
|
-
})(), C3(
|
2306
|
-
function
|
2305
|
+
})(), C3(C, r.value, l.value);
|
2306
|
+
function A() {
|
2307
2307
|
return [
|
2308
2308
|
r.value,
|
2309
2309
|
l.value,
|
@@ -2312,79 +2312,79 @@ function A0(e = {}, c) {
|
|
2312
2312
|
m.value
|
2313
2313
|
];
|
2314
2314
|
}
|
2315
|
-
const
|
2315
|
+
const F = E({
|
2316
2316
|
get: () => r.value,
|
2317
2317
|
set: (T) => {
|
2318
|
-
r.value = T,
|
2318
|
+
r.value = T, C.locale = r.value;
|
2319
2319
|
}
|
2320
2320
|
}), W = E({
|
2321
2321
|
get: () => l.value,
|
2322
2322
|
set: (T) => {
|
2323
|
-
l.value = T,
|
2323
|
+
l.value = T, C.fallbackLocale = l.value, C3(C, r.value, T);
|
2324
2324
|
}
|
2325
|
-
}), R = E(() => f.value), j = /* @__PURE__ */ E(() => o.value),
|
2326
|
-
function
|
2325
|
+
}), R = E(() => f.value), j = /* @__PURE__ */ E(() => o.value), r2 = /* @__PURE__ */ E(() => m.value);
|
2326
|
+
function l2() {
|
2327
2327
|
return V2(g) ? g : null;
|
2328
2328
|
}
|
2329
|
-
function
|
2330
|
-
g = T,
|
2329
|
+
function a2(T) {
|
2330
|
+
g = T, C.postTranslation = T;
|
2331
2331
|
}
|
2332
2332
|
function h2() {
|
2333
|
-
return
|
2333
|
+
return N;
|
2334
2334
|
}
|
2335
2335
|
function F2(T) {
|
2336
|
-
T !== null && (V = en(T)),
|
2336
|
+
T !== null && (V = en(T)), N = T, C.missing = V;
|
2337
2337
|
}
|
2338
2338
|
function b2(T, P) {
|
2339
2339
|
return T !== "translate" || !P.resolvedMessage;
|
2340
2340
|
}
|
2341
|
-
const v2 = (T, P,
|
2342
|
-
|
2341
|
+
const v2 = (T, P, o2, _2, R1, v4) => {
|
2342
|
+
A();
|
2343
2343
|
let c3;
|
2344
2344
|
try {
|
2345
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (
|
2345
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = a ? EE() : void 0), c3 = T(C);
|
2346
2346
|
} finally {
|
2347
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (
|
2347
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = void 0);
|
2348
2348
|
}
|
2349
|
-
if (
|
2350
|
-
S2(c3) && c3 === B4 ||
|
2349
|
+
if (o2 !== "translate exists" && // for not `te` (e.g `t`)
|
2350
|
+
S2(c3) && c3 === B4 || o2 === "translate exists" && !c3) {
|
2351
2351
|
const [$1, sI] = P();
|
2352
|
-
if (process.env.NODE_ENV !== "production" && a &&
|
2352
|
+
if (process.env.NODE_ENV !== "production" && a && $($1) && b2(o2, sI) && (b && (j4(h, $1) || gi(d, $1)) && E2(Q2(N2.FALLBACK_TO_ROOT, {
|
2353
2353
|
key: $1,
|
2354
|
-
type:
|
2354
|
+
type: o2
|
2355
2355
|
})), process.env.NODE_ENV !== "production")) {
|
2356
|
-
const { __v_emitter: L9 } =
|
2357
|
-
L9 &&
|
2358
|
-
type:
|
2356
|
+
const { __v_emitter: L9 } = C;
|
2357
|
+
L9 && b && L9.emit("fallback", {
|
2358
|
+
type: o2,
|
2359
2359
|
key: $1,
|
2360
2360
|
to: "global",
|
2361
|
-
groupId: `${
|
2361
|
+
groupId: `${o2}:${$1}`
|
2362
2362
|
});
|
2363
2363
|
}
|
2364
|
-
return a &&
|
2364
|
+
return a && b ? _2(a) : R1($1);
|
2365
2365
|
} else {
|
2366
2366
|
if (v4(c3))
|
2367
2367
|
return c3;
|
2368
|
-
throw w2(
|
2368
|
+
throw w2(f2.UNEXPECTED_RETURN_TYPE);
|
2369
2369
|
}
|
2370
2370
|
};
|
2371
2371
|
function A2(...T) {
|
2372
|
-
return v2((P) => Reflect.apply(U9, null, [P, ...T]), () => K6(...T), "translate", (P) => Reflect.apply(P.t, P, [...T]), (P) => P, (P) =>
|
2372
|
+
return v2((P) => Reflect.apply(U9, null, [P, ...T]), () => K6(...T), "translate", (P) => Reflect.apply(P.t, P, [...T]), (P) => P, (P) => $(P));
|
2373
2373
|
}
|
2374
2374
|
function k2(...T) {
|
2375
|
-
const [P,
|
2375
|
+
const [P, o2, _2] = T;
|
2376
2376
|
if (_2 && !m2(_2))
|
2377
|
-
throw w2(
|
2378
|
-
return A2(P,
|
2377
|
+
throw w2(f2.INVALID_ARGUMENT);
|
2378
|
+
return A2(P, o2, P2({ resolvedMessage: !0 }, _2 || {}));
|
2379
2379
|
}
|
2380
2380
|
function C2(...T) {
|
2381
|
-
return v2((P) => Reflect.apply(W9, null, [P, ...T]), () => Z6(...T), "datetime format", (P) => Reflect.apply(P.d, P, [...T]), () => k4, (P) =>
|
2381
|
+
return v2((P) => Reflect.apply(W9, null, [P, ...T]), () => Z6(...T), "datetime format", (P) => Reflect.apply(P.d, P, [...T]), () => k4, (P) => $(P));
|
2382
2382
|
}
|
2383
2383
|
function I2(...T) {
|
2384
|
-
return v2((P) => Reflect.apply(Y9, null, [P, ...T]), () => J6(...T), "number format", (P) => Reflect.apply(P.n, P, [...T]), () => k4, (P) =>
|
2384
|
+
return v2((P) => Reflect.apply(Y9, null, [P, ...T]), () => J6(...T), "number format", (P) => Reflect.apply(P.n, P, [...T]), () => k4, (P) => $(P));
|
2385
2385
|
}
|
2386
2386
|
function j2(T) {
|
2387
|
-
return T.map((P) =>
|
2387
|
+
return T.map((P) => $(P) || S2(P) || n2(P) ? X9(String(P)) : P);
|
2388
2388
|
}
|
2389
2389
|
const f1 = {
|
2390
2390
|
normalize: j2,
|
@@ -2394,14 +2394,14 @@ function A0(e = {}, c) {
|
|
2394
2394
|
function R2(...T) {
|
2395
2395
|
return v2(
|
2396
2396
|
(P) => {
|
2397
|
-
let
|
2397
|
+
let o2;
|
2398
2398
|
const _2 = P;
|
2399
2399
|
try {
|
2400
|
-
_2.processor = f1,
|
2400
|
+
_2.processor = f1, o2 = Reflect.apply(U9, null, [_2, ...T]);
|
2401
2401
|
} finally {
|
2402
2402
|
_2.processor = null;
|
2403
2403
|
}
|
2404
|
-
return
|
2404
|
+
return o2;
|
2405
2405
|
},
|
2406
2406
|
() => K6(...T),
|
2407
2407
|
"translate",
|
@@ -2419,7 +2419,7 @@ function A0(e = {}, c) {
|
|
2419
2419
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2420
2420
|
(P) => P[t0](...T),
|
2421
2421
|
Z9,
|
2422
|
-
(P) =>
|
2422
|
+
(P) => $(P) || p2(P)
|
2423
2423
|
);
|
2424
2424
|
}
|
2425
2425
|
function u1(...T) {
|
@@ -2430,25 +2430,25 @@ function A0(e = {}, c) {
|
|
2430
2430
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2431
2431
|
(P) => P[a0](...T),
|
2432
2432
|
Z9,
|
2433
|
-
(P) =>
|
2433
|
+
(P) => $(P) || p2(P)
|
2434
2434
|
);
|
2435
2435
|
}
|
2436
2436
|
function s1(T) {
|
2437
|
-
|
2437
|
+
w = T, C.pluralRules = w;
|
2438
2438
|
}
|
2439
2439
|
function F1(T, P) {
|
2440
2440
|
return v2(() => {
|
2441
2441
|
if (!T)
|
2442
2442
|
return !1;
|
2443
|
-
const
|
2444
|
-
return E1(R1) || e1(R1) ||
|
2445
|
-
}, () => [T], "translate exists", (
|
2443
|
+
const o2 = $(P) ? P : r.value, _2 = S(o2), R1 = C.messageResolver(_2, T);
|
2444
|
+
return E1(R1) || e1(R1) || $(R1);
|
2445
|
+
}, () => [T], "translate exists", (o2) => Reflect.apply(o2.te, o2, [T, P]), iD, (o2) => n2(o2));
|
2446
2446
|
}
|
2447
2447
|
function z(T) {
|
2448
2448
|
let P = null;
|
2449
|
-
const
|
2450
|
-
for (let _2 = 0; _2 <
|
2451
|
-
const R1 = f.value[
|
2449
|
+
const o2 = di(C, l.value, r.value);
|
2450
|
+
for (let _2 = 0; _2 < o2.length; _2++) {
|
2451
|
+
const R1 = f.value[o2[_2]] || {}, v4 = C.messageResolver(R1, T);
|
2452
2452
|
if (v4 != null) {
|
2453
2453
|
P = v4;
|
2454
2454
|
break;
|
@@ -2463,64 +2463,64 @@ function A0(e = {}, c) {
|
|
2463
2463
|
function S(T) {
|
2464
2464
|
return f.value[T] || {};
|
2465
2465
|
}
|
2466
|
-
function
|
2466
|
+
function U(T, P) {
|
2467
2467
|
if (i) {
|
2468
|
-
const
|
2469
|
-
for (const _2 in
|
2470
|
-
T3(
|
2471
|
-
P =
|
2468
|
+
const o2 = { [T]: P };
|
2469
|
+
for (const _2 in o2)
|
2470
|
+
T3(o2, _2) && D3(o2[_2]);
|
2471
|
+
P = o2[T];
|
2472
2472
|
}
|
2473
|
-
f.value[T] = P,
|
2473
|
+
f.value[T] = P, C.messages = f.value;
|
2474
2474
|
}
|
2475
2475
|
function Z(T, P) {
|
2476
2476
|
f.value[T] = f.value[T] || {};
|
2477
|
-
const
|
2478
|
-
for (const _2 in
|
2479
|
-
T3(
|
2480
|
-
P =
|
2477
|
+
const o2 = { [T]: P };
|
2478
|
+
for (const _2 in o2)
|
2479
|
+
T3(o2, _2) && D3(o2[_2]);
|
2480
|
+
P = o2[T], A3(P, f.value[T]), C.messages = f.value;
|
2481
2481
|
}
|
2482
2482
|
function u2(T) {
|
2483
2483
|
return o.value[T] || {};
|
2484
2484
|
}
|
2485
2485
|
function J2(T, P) {
|
2486
|
-
o.value[T] = P,
|
2486
|
+
o.value[T] = P, C.datetimeFormats = o.value, G9(C, T, P);
|
2487
2487
|
}
|
2488
2488
|
function O2(T, P) {
|
2489
|
-
o.value[T] = P2(o.value[T] || {}, P),
|
2489
|
+
o.value[T] = P2(o.value[T] || {}, P), C.datetimeFormats = o.value, G9(C, T, P);
|
2490
2490
|
}
|
2491
2491
|
function e3(T) {
|
2492
2492
|
return m.value[T] || {};
|
2493
2493
|
}
|
2494
2494
|
function m4(T, P) {
|
2495
|
-
m.value[T] = P,
|
2495
|
+
m.value[T] = P, C.numberFormats = m.value, Q9(C, T, P);
|
2496
2496
|
}
|
2497
2497
|
function d4(T, P) {
|
2498
|
-
m.value[T] = P2(m.value[T] || {}, P),
|
2498
|
+
m.value[T] = P2(m.value[T] || {}, P), C.numberFormats = m.value, Q9(C, T, P);
|
2499
2499
|
}
|
2500
2500
|
J9++, a && p1 && (s2(a.locale, (T) => {
|
2501
|
-
s && (r.value = T,
|
2501
|
+
s && (r.value = T, C.locale = T, C3(C, r.value, l.value));
|
2502
2502
|
}), s2(a.fallbackLocale, (T) => {
|
2503
|
-
s && (l.value = T,
|
2503
|
+
s && (l.value = T, C.fallbackLocale = T, C3(C, r.value, l.value));
|
2504
2504
|
}));
|
2505
2505
|
const L2 = {
|
2506
2506
|
id: J9,
|
2507
|
-
locale:
|
2507
|
+
locale: F,
|
2508
2508
|
fallbackLocale: W,
|
2509
2509
|
get inheritLocale() {
|
2510
2510
|
return s;
|
2511
2511
|
},
|
2512
2512
|
set inheritLocale(T) {
|
2513
|
-
s = T, T && a && (r.value = a.locale.value, l.value = a.fallbackLocale.value, C3(
|
2513
|
+
s = T, T && a && (r.value = a.locale.value, l.value = a.fallbackLocale.value, C3(C, r.value, l.value));
|
2514
2514
|
},
|
2515
2515
|
get availableLocales() {
|
2516
2516
|
return Object.keys(f.value).sort();
|
2517
2517
|
},
|
2518
2518
|
messages: R,
|
2519
2519
|
get modifiers() {
|
2520
|
-
return
|
2520
|
+
return x;
|
2521
2521
|
},
|
2522
2522
|
get pluralRules() {
|
2523
|
-
return
|
2523
|
+
return w || {};
|
2524
2524
|
},
|
2525
2525
|
get isGlobal() {
|
2526
2526
|
return n;
|
@@ -2529,70 +2529,70 @@ function A0(e = {}, c) {
|
|
2529
2529
|
return d;
|
2530
2530
|
},
|
2531
2531
|
set missingWarn(T) {
|
2532
|
-
d = T,
|
2532
|
+
d = T, C.missingWarn = d;
|
2533
2533
|
},
|
2534
2534
|
get fallbackWarn() {
|
2535
2535
|
return h;
|
2536
2536
|
},
|
2537
2537
|
set fallbackWarn(T) {
|
2538
|
-
h = T,
|
2538
|
+
h = T, C.fallbackWarn = h;
|
2539
2539
|
},
|
2540
2540
|
get fallbackRoot() {
|
2541
|
-
return
|
2541
|
+
return b;
|
2542
2542
|
},
|
2543
2543
|
set fallbackRoot(T) {
|
2544
|
-
|
2544
|
+
b = T;
|
2545
2545
|
},
|
2546
2546
|
get fallbackFormat() {
|
2547
2547
|
return L;
|
2548
2548
|
},
|
2549
2549
|
set fallbackFormat(T) {
|
2550
|
-
L = T,
|
2550
|
+
L = T, C.fallbackFormat = L;
|
2551
2551
|
},
|
2552
2552
|
get warnHtmlMessage() {
|
2553
2553
|
return _;
|
2554
2554
|
},
|
2555
2555
|
set warnHtmlMessage(T) {
|
2556
|
-
_ = T,
|
2556
|
+
_ = T, C.warnHtmlMessage = T;
|
2557
2557
|
},
|
2558
2558
|
get escapeParameter() {
|
2559
2559
|
return M;
|
2560
2560
|
},
|
2561
2561
|
set escapeParameter(T) {
|
2562
|
-
M = T,
|
2562
|
+
M = T, C.escapeParameter = T;
|
2563
2563
|
},
|
2564
2564
|
t: A2,
|
2565
2565
|
getLocaleMessage: S,
|
2566
|
-
setLocaleMessage:
|
2566
|
+
setLocaleMessage: U,
|
2567
2567
|
mergeLocaleMessage: Z,
|
2568
|
-
getPostTranslationHandler:
|
2569
|
-
setPostTranslationHandler:
|
2568
|
+
getPostTranslationHandler: l2,
|
2569
|
+
setPostTranslationHandler: a2,
|
2570
2570
|
getMissingHandler: h2,
|
2571
2571
|
setMissingHandler: F2,
|
2572
2572
|
[wi]: s1
|
2573
2573
|
};
|
2574
|
-
return L2.datetimeFormats = j, L2.numberFormats =
|
2575
|
-
|
2574
|
+
return L2.datetimeFormats = j, L2.numberFormats = r2, L2.rt = k2, L2.te = F1, L2.tm = v, L2.d = C2, L2.n = I2, L2.getDateTimeFormat = u2, L2.setDateTimeFormat = J2, L2.mergeDateTimeFormat = O2, L2.getNumberFormat = e3, L2.setNumberFormat = m4, L2.mergeNumberFormat = d4, L2[Ti] = t, L2[c0] = R2, L2[a0] = u1, L2[t0] = i1, process.env.NODE_ENV !== "production" && (L2[X1] = (T) => {
|
2575
|
+
C.__v_emitter = T;
|
2576
2576
|
}, L2[E3] = () => {
|
2577
|
-
|
2577
|
+
C.__v_emitter = void 0;
|
2578
2578
|
}), L2;
|
2579
2579
|
}
|
2580
2580
|
function rD(e) {
|
2581
|
-
const c =
|
2581
|
+
const c = $(e.locale) ? e.locale : f3, a = $(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, t = V2(e.missing) ? e.missing : void 0, n = n2(e.silentTranslationWarn) || I1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, i = n2(e.silentFallbackWarn) || I1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = n2(e.fallbackRoot) ? e.fallbackRoot : !0, r = !!e.formatFallbackMessages, l = c2(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, o = V2(e.postTranslation) ? e.postTranslation : void 0, m = $(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, d = !!e.escapeParameterHtml, h = n2(e.sync) ? e.sync : !0;
|
2582
2582
|
process.env.NODE_ENV !== "production" && e.formatter && E2(Q2(N2.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && E2(Q2(N2.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
2583
|
-
let
|
2583
|
+
let b = e.messages;
|
2584
2584
|
if (c2(e.sharedMessages)) {
|
2585
|
-
const
|
2586
|
-
|
2587
|
-
const
|
2588
|
-
return P2(
|
2589
|
-
},
|
2585
|
+
const x = e.sharedMessages;
|
2586
|
+
b = Object.keys(x).reduce((C, y) => {
|
2587
|
+
const A = C[y] || (C[y] = {});
|
2588
|
+
return P2(A, x[y]), C;
|
2589
|
+
}, b || {});
|
2590
2590
|
}
|
2591
|
-
const { __i18n: L, __root:
|
2591
|
+
const { __i18n: L, __root: N, __injectWithOption: V } = e, g = e.datetimeFormats, _ = e.numberFormats, M = e.flatJson;
|
2592
2592
|
return {
|
2593
2593
|
locale: c,
|
2594
2594
|
fallbackLocale: a,
|
2595
|
-
messages:
|
2595
|
+
messages: b,
|
2596
2596
|
flatJson: M,
|
2597
2597
|
datetimeFormats: g,
|
2598
2598
|
numberFormats: _,
|
@@ -2609,7 +2609,7 @@ function rD(e) {
|
|
2609
2609
|
messageResolver: e.messageResolver,
|
2610
2610
|
inheritLocale: h,
|
2611
2611
|
__i18n: L,
|
2612
|
-
__root:
|
2612
|
+
__root: N,
|
2613
2613
|
__injectWithOption: V
|
2614
2614
|
};
|
2615
2615
|
}
|
@@ -2736,10 +2736,10 @@ function i0(e = {}, c) {
|
|
2736
2736
|
t(...i) {
|
2737
2737
|
const [s, r, l] = i, f = {};
|
2738
2738
|
let o = null, m = null;
|
2739
|
-
if (
|
2740
|
-
throw w2(
|
2739
|
+
if (!$(s))
|
2740
|
+
throw w2(f2.INVALID_ARGUMENT);
|
2741
2741
|
const d = s;
|
2742
|
-
return
|
2742
|
+
return $(r) ? f.locale = r : p2(r) ? o = r : c2(r) && (m = r), p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
|
2743
2743
|
d,
|
2744
2744
|
o || m || {},
|
2745
2745
|
f
|
@@ -2752,10 +2752,10 @@ function i0(e = {}, c) {
|
|
2752
2752
|
tc(...i) {
|
2753
2753
|
const [s, r, l] = i, f = { plural: 1 };
|
2754
2754
|
let o = null, m = null;
|
2755
|
-
if (
|
2756
|
-
throw w2(
|
2755
|
+
if (!$(s))
|
2756
|
+
throw w2(f2.INVALID_ARGUMENT);
|
2757
2757
|
const d = s;
|
2758
|
-
return
|
2758
|
+
return $(r) ? f.locale = r : S2(r) ? f.plural = r : p2(r) ? o = r : c2(r) && (m = r), $(l) ? f.locale = l : p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
|
2759
2759
|
d,
|
2760
2760
|
o || m || {},
|
2761
2761
|
f
|
@@ -2850,14 +2850,14 @@ function lD({ slots: e }, c) {
|
|
2850
2850
|
return c.length === 1 && c[0] === "default" ? (e.default ? e.default() : []).reduce((t, n) => [
|
2851
2851
|
...t,
|
2852
2852
|
// prettier-ignore
|
2853
|
-
...n.type ===
|
2853
|
+
...n.type === t2 ? n.children : [n]
|
2854
2854
|
], []) : c.reduce((a, t) => {
|
2855
2855
|
const n = e[t];
|
2856
2856
|
return n && (a[t] = n()), a;
|
2857
2857
|
}, {});
|
2858
2858
|
}
|
2859
2859
|
function Di(e) {
|
2860
|
-
return
|
2860
|
+
return t2;
|
2861
2861
|
}
|
2862
2862
|
const oD = /* @__PURE__ */ Q({
|
2863
2863
|
/* eslint-disable */
|
@@ -2882,28 +2882,28 @@ const oD = /* @__PURE__ */ Q({
|
|
2882
2882
|
});
|
2883
2883
|
return () => {
|
2884
2884
|
const i = Object.keys(a).filter((m) => m !== "_"), s = {};
|
2885
|
-
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural =
|
2886
|
-
const r = lD(c, i), l = n[c0](e.keypath, r, s), f = P2({}, t), o =
|
2885
|
+
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = $(e.plural) ? +e.plural : e.plural);
|
2886
|
+
const r = lD(c, i), l = n[c0](e.keypath, r, s), f = P2({}, t), o = $(e.tag) || m2(e.tag) ? e.tag : Di();
|
2887
2887
|
return M1(o, f, l);
|
2888
2888
|
};
|
2889
2889
|
}
|
2890
2890
|
}), R6 = oD;
|
2891
2891
|
function fD(e) {
|
2892
|
-
return p2(e) &&
|
2892
|
+
return p2(e) && !$(e[0]);
|
2893
2893
|
}
|
2894
2894
|
function Oi(e, c, a, t) {
|
2895
2895
|
const { slots: n, attrs: i } = c;
|
2896
2896
|
return () => {
|
2897
2897
|
const s = { part: !0 };
|
2898
2898
|
let r = {};
|
2899
|
-
e.locale && (s.locale = e.locale),
|
2899
|
+
e.locale && (s.locale = e.locale), $(e.format) ? s.key = e.format : m2(e.format) && ($(e.format.key) && (s.key = e.format.key), r = Object.keys(e.format).reduce((d, h) => a.includes(h) ? P2({}, d, { [h]: e.format[h] }) : d, {}));
|
2900
2900
|
const l = t(e.value, s, r);
|
2901
2901
|
let f = [s.key];
|
2902
2902
|
p2(l) ? f = l.map((d, h) => {
|
2903
|
-
const
|
2903
|
+
const b = n[d.type], L = b ? b({ [d.type]: d.value, index: h, parts: l }) : [d.value];
|
2904
2904
|
return fD(L) && (L[0].key = `${d.type}-${h}`), L;
|
2905
|
-
}) :
|
2906
|
-
const o = P2({}, i), m =
|
2905
|
+
}) : $(l) && (f = [l]);
|
2906
|
+
const o = P2({}, i), m = $(e.tag) || m2(e.tag) ? e.tag : Di();
|
2907
2907
|
return M1(m, o, f);
|
2908
2908
|
};
|
2909
2909
|
}
|
@@ -2969,7 +2969,7 @@ function vD(e) {
|
|
2969
2969
|
const c = (s) => {
|
2970
2970
|
const { instance: r, modifiers: l, value: f } = s;
|
2971
2971
|
if (!r || !r.$)
|
2972
|
-
throw w2(
|
2972
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
2973
2973
|
const o = dD(e, r.$);
|
2974
2974
|
process.env.NODE_ENV !== "production" && l.preserve && E2(Q2(N2.NOT_SUPPORTED_PRESERVE));
|
2975
2975
|
const m = tn(f);
|
@@ -3003,18 +3003,18 @@ function vD(e) {
|
|
3003
3003
|
};
|
3004
3004
|
}
|
3005
3005
|
function tn(e) {
|
3006
|
-
if (
|
3006
|
+
if ($(e))
|
3007
3007
|
return { path: e };
|
3008
3008
|
if (c2(e)) {
|
3009
3009
|
if (!("path" in e))
|
3010
|
-
throw w2(
|
3010
|
+
throw w2(f2.REQUIRED_VALUE, "path");
|
3011
3011
|
return e;
|
3012
3012
|
} else
|
3013
|
-
throw w2(
|
3013
|
+
throw w2(f2.INVALID_VALUE);
|
3014
3014
|
}
|
3015
3015
|
function nn(e) {
|
3016
3016
|
const { path: c, locale: a, args: t, choice: n, plural: i } = e, s = {}, r = t || {};
|
3017
|
-
return
|
3017
|
+
return $(a) && (s.locale = a), S2(n) && (s.plural = n), S2(i) && (s.plural = i), [c, r, s];
|
3018
3018
|
}
|
3019
3019
|
function pD(e, c, ...a) {
|
3020
3020
|
const t = c2(a[0]) ? a[0] : {}, n = !!t.useI18nComponentName, i = n2(t.globalInstall) ? t.globalInstall : !0;
|
@@ -3294,7 +3294,7 @@ function ND(e, c) {
|
|
3294
3294
|
const a = ji(e.nodeId, c);
|
3295
3295
|
if (a) {
|
3296
3296
|
const [t] = e.path;
|
3297
|
-
t === "locale" &&
|
3297
|
+
t === "locale" && $(e.state.value) ? a.locale.value = e.state.value : t === "fallbackLocale" && ($(e.state.value) || p2(e.state.value) || m2(e.state.value)) ? a.fallbackLocale.value = e.state.value : t === "inheritLocale" && n2(e.state.value) && (a.inheritLocale = e.state.value);
|
3298
3298
|
}
|
3299
3299
|
}
|
3300
3300
|
function xD(e, c, a) {
|
@@ -3302,7 +3302,7 @@ function xD(e, c, a) {
|
|
3302
3302
|
beforeCreate() {
|
3303
3303
|
const t = w3();
|
3304
3304
|
if (!t)
|
3305
|
-
throw w2(
|
3305
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3306
3306
|
const n = this.$options;
|
3307
3307
|
if (n.i18n) {
|
3308
3308
|
const i = n.i18n;
|
@@ -3341,7 +3341,7 @@ function xD(e, c, a) {
|
|
3341
3341
|
unmounted() {
|
3342
3342
|
const t = w3();
|
3343
3343
|
if (!t)
|
3344
|
-
throw w2(
|
3344
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3345
3345
|
const n = this.$i18n;
|
3346
3346
|
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", O3), delete this.__v_emitter), this.$i18n && (n.__disableEmitter && n.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, n.__disposer && (n.__disposer(), delete n.__disposer, delete n.__extender), a.__deleteInstance(t), delete this.$i18n;
|
3347
3347
|
}
|
@@ -3379,19 +3379,19 @@ function SD(e = {}, c) {
|
|
3379
3379
|
return n;
|
3380
3380
|
},
|
3381
3381
|
// install plugin
|
3382
|
-
async install(h, ...
|
3383
|
-
if (process.env.NODE_ENV !== "production" && (h.__VUE_I18N__ = d), h.__VUE_I18N_SYMBOL__ = l, h.provide(h.__VUE_I18N_SYMBOL__, d), c2(
|
3384
|
-
const V =
|
3382
|
+
async install(h, ...b) {
|
3383
|
+
if (process.env.NODE_ENV !== "production" && (h.__VUE_I18N__ = d), h.__VUE_I18N_SYMBOL__ = l, h.provide(h.__VUE_I18N_SYMBOL__, d), c2(b[0])) {
|
3384
|
+
const V = b[0];
|
3385
3385
|
d.__composerExtend = V.__composerExtend, d.__vueI18nExtend = V.__vueI18nExtend;
|
3386
3386
|
}
|
3387
3387
|
let L = null;
|
3388
|
-
!a && t && (L = FD(h, d.global)), __VUE_I18N_FULL_INSTALL__ && pD(h, d, ...
|
3389
|
-
const
|
3388
|
+
!a && t && (L = FD(h, d.global)), __VUE_I18N_FULL_INSTALL__ && pD(h, d, ...b), __VUE_I18N_LEGACY_API__ && a && h.mixin(xD(r, r.__composer, d));
|
3389
|
+
const N = h.unmount;
|
3390
3390
|
if (h.unmount = () => {
|
3391
|
-
L && L(), d.dispose(),
|
3391
|
+
L && L(), d.dispose(), N();
|
3392
3392
|
}, process.env.NODE_ENV !== "production") {
|
3393
3393
|
if (!await zD(h, d))
|
3394
|
-
throw w2(
|
3394
|
+
throw w2(f2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
3395
3395
|
const g = C0();
|
3396
3396
|
if (a) {
|
3397
3397
|
const _ = r;
|
@@ -3425,13 +3425,13 @@ function SD(e = {}, c) {
|
|
3425
3425
|
function k0(e = {}) {
|
3426
3426
|
const c = w3();
|
3427
3427
|
if (c == null)
|
3428
|
-
throw w2(
|
3428
|
+
throw w2(f2.MUST_BE_CALL_SETUP_TOP);
|
3429
3429
|
if (!c.isCE && c.appContext.app != null && !c.appContext.app.__VUE_I18N_SYMBOL__)
|
3430
|
-
throw w2(
|
3430
|
+
throw w2(f2.NOT_INSTALLED);
|
3431
3431
|
const a = TD(c), t = ED(a), n = Ii(c), i = ID(e, n);
|
3432
3432
|
if (__VUE_I18N_LEGACY_API__ && a.mode === "legacy" && !e.__useComponent) {
|
3433
3433
|
if (!a.allowComposition)
|
3434
|
-
throw w2(
|
3434
|
+
throw w2(f2.NOT_AVAILABLE_IN_LEGACY_MODE);
|
3435
3435
|
return BD(c, i, t, e);
|
3436
3436
|
}
|
3437
3437
|
if (i === "global")
|
@@ -3453,7 +3453,7 @@ function wD(e, c, a) {
|
|
3453
3453
|
{
|
3454
3454
|
const n = __VUE_I18N_LEGACY_API__ && c ? t.run(() => i0(e)) : t.run(() => A0(e));
|
3455
3455
|
if (n == null)
|
3456
|
-
throw w2(
|
3456
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3457
3457
|
return [t, n];
|
3458
3458
|
}
|
3459
3459
|
}
|
@@ -3461,7 +3461,7 @@ function TD(e) {
|
|
3461
3461
|
{
|
3462
3462
|
const c = B2(e.isCE ? kD : e.appContext.app.__VUE_I18N_SYMBOL__);
|
3463
3463
|
if (!c)
|
3464
|
-
throw w2(e.isCE ?
|
3464
|
+
throw w2(e.isCE ? f2.NOT_INSTALLED_WITH_PROVIDE : f2.UNEXPECTED_ERROR);
|
3465
3465
|
return c;
|
3466
3466
|
}
|
3467
3467
|
}
|
@@ -3510,15 +3510,15 @@ function PD(e, c, a) {
|
|
3510
3510
|
function BD(e, c, a, t = {}) {
|
3511
3511
|
const n = c === "local", i = lI(null);
|
3512
3512
|
if (n && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
3513
|
-
throw w2(
|
3514
|
-
const s = n2(t.inheritLocale) ? t.inheritLocale :
|
3513
|
+
throw w2(f2.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
3514
|
+
const s = n2(t.inheritLocale) ? t.inheritLocale : !$(t.locale), r = e2(
|
3515
3515
|
// prettier-ignore
|
3516
|
-
!n || s ? a.locale.value :
|
3516
|
+
!n || s ? a.locale.value : $(t.locale) ? t.locale : f3
|
3517
3517
|
), l = e2(
|
3518
3518
|
// prettier-ignore
|
3519
|
-
!n || s ? a.fallbackLocale.value :
|
3520
|
-
), f = e2(F4(r.value, t)), o = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0,
|
3521
|
-
function
|
3519
|
+
!n || s ? a.fallbackLocale.value : $(t.fallbackLocale) || p2(t.fallbackLocale) || c2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
|
3520
|
+
), f = e2(F4(r.value, t)), o = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0, b = n ? a.fallbackRoot : n2(t.fallbackRoot) ? t.fallbackRoot : !0, L = !!t.fallbackFormat, N = V2(t.missing) ? t.missing : null, V = V2(t.postTranslation) ? t.postTranslation : null, g = n ? a.warnHtmlMessage : n2(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, _ = !!t.escapeParameter, M = n ? a.modifiers : c2(t.modifiers) ? t.modifiers : {}, x = t.pluralRules || n && a.pluralRules;
|
3521
|
+
function w() {
|
3522
3522
|
return [
|
3523
3523
|
r.value,
|
3524
3524
|
l.value,
|
@@ -3527,7 +3527,7 @@ function BD(e, c, a, t = {}) {
|
|
3527
3527
|
m.value
|
3528
3528
|
];
|
3529
3529
|
}
|
3530
|
-
const
|
3530
|
+
const C = E({
|
3531
3531
|
get: () => i.value ? i.value.locale.value : r.value,
|
3532
3532
|
set: (v) => {
|
3533
3533
|
i.value && (i.value.locale.value = v), r.value = v;
|
@@ -3537,33 +3537,33 @@ function BD(e, c, a, t = {}) {
|
|
3537
3537
|
set: (v) => {
|
3538
3538
|
i.value && (i.value.fallbackLocale.value = v), l.value = v;
|
3539
3539
|
}
|
3540
|
-
}),
|
3540
|
+
}), A = E(() => i.value ? i.value.messages.value : f.value), F = E(() => o.value), W = E(() => m.value);
|
3541
3541
|
function R() {
|
3542
3542
|
return i.value ? i.value.getPostTranslationHandler() : V;
|
3543
3543
|
}
|
3544
3544
|
function j(v) {
|
3545
3545
|
i.value && i.value.setPostTranslationHandler(v);
|
3546
3546
|
}
|
3547
|
-
function
|
3548
|
-
return i.value ? i.value.getMissingHandler() :
|
3547
|
+
function r2() {
|
3548
|
+
return i.value ? i.value.getMissingHandler() : N;
|
3549
3549
|
}
|
3550
|
-
function
|
3550
|
+
function l2(v) {
|
3551
3551
|
i.value && i.value.setMissingHandler(v);
|
3552
3552
|
}
|
3553
|
-
function
|
3554
|
-
return
|
3553
|
+
function a2(v) {
|
3554
|
+
return w(), v();
|
3555
3555
|
}
|
3556
3556
|
function h2(...v) {
|
3557
|
-
return i.value ?
|
3557
|
+
return i.value ? a2(() => Reflect.apply(i.value.t, null, [...v])) : a2(() => "");
|
3558
3558
|
}
|
3559
3559
|
function F2(...v) {
|
3560
3560
|
return i.value ? Reflect.apply(i.value.rt, null, [...v]) : "";
|
3561
3561
|
}
|
3562
3562
|
function b2(...v) {
|
3563
|
-
return i.value ?
|
3563
|
+
return i.value ? a2(() => Reflect.apply(i.value.d, null, [...v])) : a2(() => "");
|
3564
3564
|
}
|
3565
3565
|
function v2(...v) {
|
3566
|
-
return i.value ?
|
3566
|
+
return i.value ? a2(() => Reflect.apply(i.value.n, null, [...v])) : a2(() => "");
|
3567
3567
|
}
|
3568
3568
|
function A2(v) {
|
3569
3569
|
return i.value ? i.value.tm(v) : {};
|
@@ -3602,10 +3602,10 @@ function BD(e, c, a, t = {}) {
|
|
3602
3602
|
get id() {
|
3603
3603
|
return i.value ? i.value.id : -1;
|
3604
3604
|
},
|
3605
|
-
locale:
|
3605
|
+
locale: C,
|
3606
3606
|
fallbackLocale: y,
|
3607
|
-
messages:
|
3608
|
-
datetimeFormats:
|
3607
|
+
messages: A,
|
3608
|
+
datetimeFormats: F,
|
3609
3609
|
numberFormats: W,
|
3610
3610
|
get inheritLocale() {
|
3611
3611
|
return i.value ? i.value.inheritLocale : s;
|
@@ -3620,7 +3620,7 @@ function BD(e, c, a, t = {}) {
|
|
3620
3620
|
return i.value ? i.value.modifiers : M;
|
3621
3621
|
},
|
3622
3622
|
get pluralRules() {
|
3623
|
-
return i.value ? i.value.pluralRules :
|
3623
|
+
return i.value ? i.value.pluralRules : x;
|
3624
3624
|
},
|
3625
3625
|
get isGlobal() {
|
3626
3626
|
return i.value ? i.value.isGlobal : !1;
|
@@ -3638,7 +3638,7 @@ function BD(e, c, a, t = {}) {
|
|
3638
3638
|
i.value && (i.value.missingWarn = v);
|
3639
3639
|
},
|
3640
3640
|
get fallbackRoot() {
|
3641
|
-
return i.value ? i.value.fallbackRoot :
|
3641
|
+
return i.value ? i.value.fallbackRoot : b;
|
3642
3642
|
},
|
3643
3643
|
set fallbackRoot(v) {
|
3644
3644
|
i.value && (i.value.fallbackRoot = v);
|
@@ -3664,8 +3664,8 @@ function BD(e, c, a, t = {}) {
|
|
3664
3664
|
t: h2,
|
3665
3665
|
getPostTranslationHandler: R,
|
3666
3666
|
setPostTranslationHandler: j,
|
3667
|
-
getMissingHandler:
|
3668
|
-
setMissingHandler:
|
3667
|
+
getMissingHandler: r2,
|
3668
|
+
setMissingHandler: l2,
|
3669
3669
|
rt: F2,
|
3670
3670
|
d: b2,
|
3671
3671
|
n: v2,
|
@@ -3688,11 +3688,11 @@ function BD(e, c, a, t = {}) {
|
|
3688
3688
|
v.mergeDateTimeFormat(S, o.value[S]);
|
3689
3689
|
}), Object.keys(m.value).forEach((S) => {
|
3690
3690
|
v.mergeNumberFormat(S, m.value[S]);
|
3691
|
-
}), v.escapeParameter = _, v.fallbackFormat = L, v.fallbackRoot =
|
3691
|
+
}), v.escapeParameter = _, v.fallbackFormat = L, v.fallbackRoot = b, v.fallbackWarn = h, v.missingWarn = d, v.warnHtmlMessage = g;
|
3692
3692
|
}
|
3693
3693
|
return oI(() => {
|
3694
3694
|
if (e.proxy == null || e.proxy.$i18n == null)
|
3695
|
-
throw w2(
|
3695
|
+
throw w2(f2.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
3696
3696
|
const v = i.value = e.proxy.$i18n.__composer;
|
3697
3697
|
c === "global" ? (r.value = v.locale.value, l.value = v.fallbackLocale.value, f.value = v.messages.value, o.value = v.datetimeFormats.value, m.value = v.numberFormats.value) : n && z(v);
|
3698
3698
|
}), F1;
|
@@ -3707,7 +3707,7 @@ function FD(e, c) {
|
|
3707
3707
|
return jD.forEach((n) => {
|
3708
3708
|
const i = Object.getOwnPropertyDescriptor(c, n);
|
3709
3709
|
if (!i)
|
3710
|
-
throw w2(
|
3710
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3711
3711
|
const s = fI(i.value) ? {
|
3712
3712
|
get() {
|
3713
3713
|
return i.value.value;
|
@@ -3725,7 +3725,7 @@ function FD(e, c) {
|
|
3725
3725
|
}), e.config.globalProperties.$i18n = a, ln.forEach((n) => {
|
3726
3726
|
const i = Object.getOwnPropertyDescriptor(c, n);
|
3727
3727
|
if (!i || !i.value)
|
3728
|
-
throw w2(
|
3728
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3729
3729
|
Object.defineProperty(e.config.globalProperties, `$${n}`, i);
|
3730
3730
|
}), () => {
|
3731
3731
|
delete e.config.globalProperties.$i18n, ln.forEach((n) => {
|
@@ -5853,8 +5853,8 @@ var MO = function(c, a) {
|
|
5853
5853
|
function bO(e) {
|
5854
5854
|
var c, a = e.state, t = e.name, n = e.options, i = a.elements.arrow, s = a.modifiersData.popperOffsets, r = v1(a.placement), l = I0(r), f = [G2, n1].indexOf(r) >= 0, o = f ? "height" : "width";
|
5855
5855
|
if (!(!i || !s)) {
|
5856
|
-
var m = MO(n.padding, a), d = T0(i), h = l === "y" ? W2 : G2,
|
5857
|
-
a.modifiersData[t] = (c = {}, c[y] =
|
5856
|
+
var m = MO(n.padding, a), d = T0(i), h = l === "y" ? W2 : G2, b = l === "y" ? t1 : n1, L = a.rects.reference[o] + a.rects.reference[l] - s[l] - a.rects.popper[o], N = s[l] - a.rects.reference[l], V = W3(i), g = V ? l === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0, _ = L / 2 - N / 2, M = m[h], x = g - d[o] - m[b], w = g / 2 - d[o] / 2 + _, C = N3(M, w, x), y = l;
|
5857
|
+
a.modifiersData[t] = (c = {}, c[y] = C, c.centerOffset = C - w, c);
|
5858
5858
|
}
|
5859
5859
|
}
|
5860
5860
|
function CO(e) {
|
@@ -5887,32 +5887,32 @@ function yO(e, c) {
|
|
5887
5887
|
};
|
5888
5888
|
}
|
5889
5889
|
function mn(e) {
|
5890
|
-
var c, a = e.popper, t = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, l = e.gpuAcceleration, f = e.adaptive, o = e.roundOffsets, m = e.isFixed, d = s.x, h = d === void 0 ? 0 : d,
|
5890
|
+
var c, a = e.popper, t = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, l = e.gpuAcceleration, f = e.adaptive, o = e.roundOffsets, m = e.isFixed, d = s.x, h = d === void 0 ? 0 : d, b = s.y, L = b === void 0 ? 0 : b, N = typeof o == "function" ? o({
|
5891
5891
|
x: h,
|
5892
5892
|
y: L
|
5893
5893
|
}) : {
|
5894
5894
|
x: h,
|
5895
5895
|
y: L
|
5896
5896
|
};
|
5897
|
-
h =
|
5898
|
-
var V = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"), _ = G2, M = W2,
|
5897
|
+
h = N.x, L = N.y;
|
5898
|
+
var V = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"), _ = G2, M = W2, x = window;
|
5899
5899
|
if (f) {
|
5900
|
-
var
|
5901
|
-
if (
|
5900
|
+
var w = W3(a), C = "clientHeight", y = "clientWidth";
|
5901
|
+
if (w === K2(a) && (w = j1(a), C1(w).position !== "static" && r === "absolute" && (C = "scrollHeight", y = "scrollWidth")), w = w, n === W2 || (n === G2 || n === n1) && i === P3) {
|
5902
5902
|
M = t1;
|
5903
|
-
var
|
5903
|
+
var A = m && w === x && x.visualViewport ? x.visualViewport.height : (
|
5904
5904
|
// $FlowFixMe[prop-missing]
|
5905
|
-
|
5905
|
+
w[C]
|
5906
5906
|
);
|
5907
|
-
L -=
|
5907
|
+
L -= A - t.height, L *= l ? 1 : -1;
|
5908
5908
|
}
|
5909
5909
|
if (n === G2 || (n === W2 || n === t1) && i === P3) {
|
5910
5910
|
_ = n1;
|
5911
|
-
var
|
5911
|
+
var F = m && w === x && x.visualViewport ? x.visualViewport.width : (
|
5912
5912
|
// $FlowFixMe[prop-missing]
|
5913
|
-
|
5913
|
+
w[y]
|
5914
5914
|
);
|
5915
|
-
h -=
|
5915
|
+
h -= F - t.width, h *= l ? 1 : -1;
|
5916
5916
|
}
|
5917
5917
|
}
|
5918
5918
|
var W = Object.assign({
|
@@ -5926,7 +5926,7 @@ function mn(e) {
|
|
5926
5926
|
};
|
5927
5927
|
if (h = R.x, L = R.y, l) {
|
5928
5928
|
var j;
|
5929
|
-
return Object.assign({}, W, (j = {}, j[M] = g ? "0" : "", j[_] = V ? "0" : "", j.transform = (
|
5929
|
+
return Object.assign({}, W, (j = {}, j[M] = g ? "0" : "", j[_] = V ? "0" : "", j.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + L + "px)" : "translate3d(" + h + "px, " + L + "px, 0)", j));
|
5930
5930
|
}
|
5931
5931
|
return Object.assign({}, W, (c = {}, c[M] = g ? L + "px" : "", c[_] = V ? h + "px" : "", c.transform = "", c));
|
5932
5932
|
}
|
@@ -6128,44 +6128,44 @@ function Xi(e) {
|
|
6128
6128
|
}
|
6129
6129
|
function B3(e, c) {
|
6130
6130
|
c === void 0 && (c = {});
|
6131
|
-
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, i = a.strategy, s = i === void 0 ? e.strategy : i, r = a.boundary, l = r === void 0 ? tO : r, f = a.rootBoundary, o = f === void 0 ? Ri : f, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary,
|
6132
|
-
reference:
|
6131
|
+
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, i = a.strategy, s = i === void 0 ? e.strategy : i, r = a.boundary, l = r === void 0 ? tO : r, f = a.rootBoundary, o = f === void 0 ? Ri : f, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary, b = h === void 0 ? !1 : h, L = a.padding, N = L === void 0 ? 0 : L, V = Gi(typeof N != "number" ? N : Yi(N, q3)), g = d === L3 ? nO : L3, _ = e.rects.popper, M = e.elements[b ? g : d], x = OO(K1(M) ? M : M.contextElement || j1(e.elements.popper), l, o, s), w = d3(e.elements.reference), C = Xi({
|
6132
|
+
reference: w,
|
6133
6133
|
element: _,
|
6134
6134
|
strategy: "absolute",
|
6135
6135
|
placement: n
|
6136
|
-
}), y = l0(Object.assign({}, _,
|
6137
|
-
top:
|
6138
|
-
bottom:
|
6139
|
-
left:
|
6140
|
-
right:
|
6136
|
+
}), y = l0(Object.assign({}, _, C)), A = d === L3 ? y : w, F = {
|
6137
|
+
top: x.top - A.top + V.top,
|
6138
|
+
bottom: A.bottom - x.bottom + V.bottom,
|
6139
|
+
left: x.left - A.left + V.left,
|
6140
|
+
right: A.right - x.right + V.right
|
6141
6141
|
}, W = e.modifiersData.offset;
|
6142
6142
|
if (d === L3 && W) {
|
6143
6143
|
var R = W[n];
|
6144
|
-
Object.keys(
|
6145
|
-
var
|
6146
|
-
|
6144
|
+
Object.keys(F).forEach(function(j) {
|
6145
|
+
var r2 = [n1, t1].indexOf(j) >= 0 ? 1 : -1, l2 = [W2, t1].indexOf(j) >= 0 ? "y" : "x";
|
6146
|
+
F[j] += R[l2] * r2;
|
6147
6147
|
});
|
6148
6148
|
}
|
6149
|
-
return
|
6149
|
+
return F;
|
6150
6150
|
}
|
6151
6151
|
function PO(e, c) {
|
6152
6152
|
c === void 0 && (c = {});
|
6153
|
-
var a = c, t = a.placement, n = a.boundary, i = a.rootBoundary, s = a.padding, r = a.flipVariations, l = a.allowedAutoPlacements, f = l === void 0 ? $i : l, o = v3(t), m = o ? r ? fn : fn.filter(function(
|
6154
|
-
return v3(
|
6155
|
-
}) : q3, d = m.filter(function(
|
6156
|
-
return f.indexOf(
|
6153
|
+
var a = c, t = a.placement, n = a.boundary, i = a.rootBoundary, s = a.padding, r = a.flipVariations, l = a.allowedAutoPlacements, f = l === void 0 ? $i : l, o = v3(t), m = o ? r ? fn : fn.filter(function(b) {
|
6154
|
+
return v3(b) === o;
|
6155
|
+
}) : q3, d = m.filter(function(b) {
|
6156
|
+
return f.indexOf(b) >= 0;
|
6157
6157
|
});
|
6158
6158
|
d.length === 0 && (d = m);
|
6159
|
-
var h = d.reduce(function(
|
6160
|
-
return
|
6159
|
+
var h = d.reduce(function(b, L) {
|
6160
|
+
return b[L] = B3(e, {
|
6161
6161
|
placement: L,
|
6162
6162
|
boundary: n,
|
6163
6163
|
rootBoundary: i,
|
6164
6164
|
padding: s
|
6165
|
-
})[v1(L)],
|
6165
|
+
})[v1(L)], b;
|
6166
6166
|
}, {});
|
6167
|
-
return Object.keys(h).sort(function(
|
6168
|
-
return h[
|
6167
|
+
return Object.keys(h).sort(function(b, L) {
|
6168
|
+
return h[b] - h[L];
|
6169
6169
|
});
|
6170
6170
|
}
|
6171
6171
|
function BO(e) {
|
@@ -6177,50 +6177,50 @@ function BO(e) {
|
|
6177
6177
|
function jO(e) {
|
6178
6178
|
var c = e.state, a = e.options, t = e.name;
|
6179
6179
|
if (!c.modifiersData[t]._skip) {
|
6180
|
-
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !0 : s, l = a.fallbackPlacements, f = a.padding, o = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations,
|
6180
|
+
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !0 : s, l = a.fallbackPlacements, f = a.padding, o = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, b = h === void 0 ? !0 : h, L = a.allowedAutoPlacements, N = c.options.placement, V = v1(N), g = V === N, _ = l || (g || !b ? [A4(N)] : BO(N)), M = [N].concat(_).reduce(function(I2, j2) {
|
6181
6181
|
return I2.concat(v1(j2) === S0 ? PO(c, {
|
6182
6182
|
placement: j2,
|
6183
6183
|
boundary: o,
|
6184
6184
|
rootBoundary: m,
|
6185
6185
|
padding: f,
|
6186
|
-
flipVariations:
|
6186
|
+
flipVariations: b,
|
6187
6187
|
allowedAutoPlacements: L
|
6188
6188
|
}) : j2);
|
6189
|
-
}, []),
|
6190
|
-
var W = M[
|
6189
|
+
}, []), x = c.rects.reference, w = c.rects.popper, C = /* @__PURE__ */ new Map(), y = !0, A = M[0], F = 0; F < M.length; F++) {
|
6190
|
+
var W = M[F], R = v1(W), j = v3(W) === u3, r2 = [W2, t1].indexOf(R) >= 0, l2 = r2 ? "width" : "height", a2 = B3(c, {
|
6191
6191
|
placement: W,
|
6192
6192
|
boundary: o,
|
6193
6193
|
rootBoundary: m,
|
6194
6194
|
altBoundary: d,
|
6195
6195
|
padding: f
|
6196
|
-
}), h2 =
|
6197
|
-
|
6196
|
+
}), h2 = r2 ? j ? n1 : G2 : j ? t1 : W2;
|
6197
|
+
x[l2] > w[l2] && (h2 = A4(h2));
|
6198
6198
|
var F2 = A4(h2), b2 = [];
|
6199
|
-
if (i && b2.push(
|
6199
|
+
if (i && b2.push(a2[R] <= 0), r && b2.push(a2[h2] <= 0, a2[F2] <= 0), b2.every(function(I2) {
|
6200
6200
|
return I2;
|
6201
6201
|
})) {
|
6202
|
-
|
6202
|
+
A = W, y = !1;
|
6203
6203
|
break;
|
6204
6204
|
}
|
6205
|
-
|
6205
|
+
C.set(W, b2);
|
6206
6206
|
}
|
6207
6207
|
if (y)
|
6208
|
-
for (var v2 =
|
6208
|
+
for (var v2 = b ? 3 : 1, A2 = function(j2) {
|
6209
6209
|
var o1 = M.find(function(f1) {
|
6210
|
-
var R2 =
|
6210
|
+
var R2 = C.get(f1);
|
6211
6211
|
if (R2)
|
6212
6212
|
return R2.slice(0, j2).every(function(i1) {
|
6213
6213
|
return i1;
|
6214
6214
|
});
|
6215
6215
|
});
|
6216
6216
|
if (o1)
|
6217
|
-
return
|
6217
|
+
return A = o1, "break";
|
6218
6218
|
}, k2 = v2; k2 > 0; k2--) {
|
6219
6219
|
var C2 = A2(k2);
|
6220
6220
|
if (C2 === "break")
|
6221
6221
|
break;
|
6222
6222
|
}
|
6223
|
-
c.placement !==
|
6223
|
+
c.placement !== A && (c.modifiersData[t]._skip = !0, c.placement = A, c.reset = !0);
|
6224
6224
|
}
|
6225
6225
|
}
|
6226
6226
|
const FO = {
|
@@ -6317,34 +6317,34 @@ function QO(e) {
|
|
6317
6317
|
return e === "x" ? "y" : "x";
|
6318
6318
|
}
|
6319
6319
|
function XO(e) {
|
6320
|
-
var c = e.state, a = e.options, t = e.name, n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !1 : s, l = a.boundary, f = a.rootBoundary, o = a.altBoundary, m = a.padding, d = a.tether, h = d === void 0 ? !0 : d,
|
6320
|
+
var c = e.state, a = e.options, t = e.name, n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !1 : s, l = a.boundary, f = a.rootBoundary, o = a.altBoundary, m = a.padding, d = a.tether, h = d === void 0 ? !0 : d, b = a.tetherOffset, L = b === void 0 ? 0 : b, N = B3(c, {
|
6321
6321
|
boundary: l,
|
6322
6322
|
rootBoundary: f,
|
6323
6323
|
padding: m,
|
6324
6324
|
altBoundary: o
|
6325
|
-
}), V = v1(c.placement), g = v3(c.placement), _ = !g, M = I0(V),
|
6325
|
+
}), V = v1(c.placement), g = v3(c.placement), _ = !g, M = I0(V), x = QO(M), w = c.modifiersData.popperOffsets, C = c.rects.reference, y = c.rects.popper, A = typeof L == "function" ? L(Object.assign({}, c.rects, {
|
6326
6326
|
placement: c.placement
|
6327
|
-
})) : L,
|
6328
|
-
mainAxis:
|
6329
|
-
altAxis:
|
6327
|
+
})) : L, F = typeof A == "number" ? {
|
6328
|
+
mainAxis: A,
|
6329
|
+
altAxis: A
|
6330
6330
|
} : Object.assign({
|
6331
6331
|
mainAxis: 0,
|
6332
6332
|
altAxis: 0
|
6333
|
-
},
|
6333
|
+
}, A), W = c.modifiersData.offset ? c.modifiersData.offset[c.placement] : null, R = {
|
6334
6334
|
x: 0,
|
6335
6335
|
y: 0
|
6336
6336
|
};
|
6337
|
-
if (
|
6337
|
+
if (w) {
|
6338
6338
|
if (i) {
|
6339
|
-
var j,
|
6339
|
+
var j, r2 = M === "y" ? W2 : G2, l2 = M === "y" ? t1 : n1, a2 = M === "y" ? "height" : "width", h2 = w[M], F2 = h2 + N[r2], b2 = h2 - N[l2], v2 = h ? -y[a2] / 2 : 0, A2 = g === u3 ? C[a2] : y[a2], k2 = g === u3 ? -y[a2] : -C[a2], C2 = c.elements.arrow, I2 = h && C2 ? T0(C2) : {
|
6340
6340
|
width: 0,
|
6341
6341
|
height: 0
|
6342
|
-
}, j2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Wi(), o1 = j2[
|
6343
|
-
|
6342
|
+
}, j2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Wi(), o1 = j2[r2], f1 = j2[l2], R2 = N3(0, C[a2], I2[a2]), i1 = _ ? C[a2] / 2 - v2 - R2 - o1 - F.mainAxis : A2 - R2 - o1 - F.mainAxis, u1 = _ ? -C[a2] / 2 + v2 + R2 + f1 + F.mainAxis : k2 + R2 + f1 + F.mainAxis, s1 = c.elements.arrow && W3(c.elements.arrow), F1 = s1 ? M === "y" ? s1.clientTop || 0 : s1.clientLeft || 0 : 0, z = (j = W == null ? void 0 : W[M]) != null ? j : 0, v = h2 + i1 - z - F1, S = h2 + u1 - z, U = N3(h ? S4(F2, v) : F2, h2, h ? G1(b2, S) : b2);
|
6343
|
+
w[M] = U, R[M] = U - h2;
|
6344
6344
|
}
|
6345
6345
|
if (r) {
|
6346
|
-
var Z, u2 = M === "x" ? W2 : G2, J2 = M === "x" ? t1 : n1, O2 = x
|
6347
|
-
x
|
6346
|
+
var Z, u2 = M === "x" ? W2 : G2, J2 = M === "x" ? t1 : n1, O2 = w[x], e3 = x === "y" ? "height" : "width", m4 = O2 + N[u2], d4 = O2 - N[J2], L2 = [W2, G2].indexOf(V) !== -1, T = (Z = W == null ? void 0 : W[x]) != null ? Z : 0, P = L2 ? m4 : O2 - C[e3] - y[e3] - T + F.altAxis, o2 = L2 ? O2 + C[e3] + y[e3] - T - F.altAxis : d4, _2 = h && L2 ? HO(P, O2, o2) : N3(h ? P : m4, O2, h ? o2 : d4);
|
6347
|
+
w[x] = _2, R[x] = _2 - O2;
|
6348
6348
|
}
|
6349
6349
|
c.modifiersData[t] = R;
|
6350
6350
|
}
|
@@ -6474,7 +6474,7 @@ function sP(e) {
|
|
6474
6474
|
var _ = tP(iP([].concat(t, o.options.modifiers)));
|
6475
6475
|
return o.orderedModifiers = _.filter(function(M) {
|
6476
6476
|
return M.enabled;
|
6477
|
-
}),
|
6477
|
+
}), b(), h.update();
|
6478
6478
|
},
|
6479
6479
|
// Sync update – it will always be executed, even if not necessary. This
|
6480
6480
|
// is useful for low frequency updates where sync behavior simplifies the
|
@@ -6488,19 +6488,19 @@ function sP(e) {
|
|
6488
6488
|
o.rects = {
|
6489
6489
|
reference: cP(g, W3(_), o.options.strategy === "fixed"),
|
6490
6490
|
popper: T0(_)
|
6491
|
-
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(
|
6492
|
-
return o.modifiersData[
|
6491
|
+
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(F) {
|
6492
|
+
return o.modifiersData[F.name] = Object.assign({}, F.data);
|
6493
6493
|
});
|
6494
6494
|
for (var M = 0; M < o.orderedModifiers.length; M++) {
|
6495
6495
|
if (o.reset === !0) {
|
6496
6496
|
o.reset = !1, M = -1;
|
6497
6497
|
continue;
|
6498
6498
|
}
|
6499
|
-
var
|
6500
|
-
typeof
|
6499
|
+
var x = o.orderedModifiers[M], w = x.fn, C = x.options, y = C === void 0 ? {} : C, A = x.name;
|
6500
|
+
typeof w == "function" && (o = w({
|
6501
6501
|
state: o,
|
6502
6502
|
options: y,
|
6503
|
-
name:
|
6503
|
+
name: A,
|
6504
6504
|
instance: h
|
6505
6505
|
}) || o);
|
6506
6506
|
}
|
@@ -6510,8 +6510,8 @@ function sP(e) {
|
|
6510
6510
|
// Async and optimistically optimized update – it will not be executed if
|
6511
6511
|
// not necessary (debounced to run at most once-per-tick)
|
6512
6512
|
update: nP(function() {
|
6513
|
-
return new Promise(function(
|
6514
|
-
h.forceUpdate(),
|
6513
|
+
return new Promise(function(N) {
|
6514
|
+
h.forceUpdate(), N(o);
|
6515
6515
|
});
|
6516
6516
|
}),
|
6517
6517
|
destroy: function() {
|
@@ -6520,27 +6520,27 @@ function sP(e) {
|
|
6520
6520
|
};
|
6521
6521
|
if (!zn(r, l))
|
6522
6522
|
return h;
|
6523
|
-
h.setOptions(f).then(function(
|
6524
|
-
!d && f.onFirstUpdate && f.onFirstUpdate(
|
6523
|
+
h.setOptions(f).then(function(N) {
|
6524
|
+
!d && f.onFirstUpdate && f.onFirstUpdate(N);
|
6525
6525
|
});
|
6526
|
-
function
|
6527
|
-
o.orderedModifiers.forEach(function(
|
6528
|
-
var V =
|
6526
|
+
function b() {
|
6527
|
+
o.orderedModifiers.forEach(function(N) {
|
6528
|
+
var V = N.name, g = N.options, _ = g === void 0 ? {} : g, M = N.effect;
|
6529
6529
|
if (typeof M == "function") {
|
6530
|
-
var
|
6530
|
+
var x = M({
|
6531
6531
|
state: o,
|
6532
6532
|
name: V,
|
6533
6533
|
instance: h,
|
6534
6534
|
options: _
|
6535
|
-
}),
|
6535
|
+
}), w = function() {
|
6536
6536
|
};
|
6537
|
-
m.push(
|
6537
|
+
m.push(x || w);
|
6538
6538
|
}
|
6539
6539
|
});
|
6540
6540
|
}
|
6541
6541
|
function L() {
|
6542
|
-
m.forEach(function(
|
6543
|
-
return
|
6542
|
+
m.forEach(function(N) {
|
6543
|
+
return N();
|
6544
6544
|
}), m = [];
|
6545
6545
|
}
|
6546
6546
|
return h;
|
@@ -6616,10 +6616,10 @@ function pP(e, c, a = {}) {
|
|
6616
6616
|
let r = !0;
|
6617
6617
|
const l = (d) => n.some((h) => {
|
6618
6618
|
if (typeof h == "string")
|
6619
|
-
return Array.from(t.document.querySelectorAll(h)).some((
|
6619
|
+
return Array.from(t.document.querySelectorAll(h)).some((b) => b === d.target || d.composedPath().includes(b));
|
6620
6620
|
{
|
6621
|
-
const
|
6622
|
-
return
|
6621
|
+
const b = _3(h);
|
6622
|
+
return b && (d.target === b || d.composedPath().includes(b));
|
6623
6623
|
}
|
6624
6624
|
}), o = [
|
6625
6625
|
U6(t, "click", (d) => {
|
@@ -6638,8 +6638,8 @@ function pP(e, c, a = {}) {
|
|
6638
6638
|
}, { passive: !0 }),
|
6639
6639
|
s && U6(t, "blur", (d) => {
|
6640
6640
|
var h;
|
6641
|
-
const
|
6642
|
-
((h = t.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(
|
6641
|
+
const b = _3(e);
|
6642
|
+
((h = t.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(b != null && b.contains(t.document.activeElement)) && c(d);
|
6643
6643
|
})
|
6644
6644
|
].filter(Boolean);
|
6645
6645
|
return () => o.forEach((d) => d());
|
@@ -6759,8 +6759,8 @@ const An = {
|
|
6759
6759
|
}), m = function() {
|
6760
6760
|
return a.hover === !1 || a.interactive === !1 ? a.closeDelay : a.closeDelay === 0 ? 150 : a.closeDelay;
|
6761
6761
|
}, d = Hn(async () => {
|
6762
|
-
var
|
6763
|
-
const y = await ((
|
6762
|
+
var A;
|
6763
|
+
const y = await ((A = i.value) == null ? void 0 : A.update());
|
6764
6764
|
f.value = (y == null ? void 0 : y.placement) || a.placement, s.value = !0;
|
6765
6765
|
}, a.openDelay), h = Hn(() => {
|
6766
6766
|
if (a.hover === !1 || a.interactive === !1) {
|
@@ -6768,17 +6768,17 @@ const An = {
|
|
6768
6768
|
return;
|
6769
6769
|
}
|
6770
6770
|
r.value === !1 && l.value === !1 && (s.value = !1);
|
6771
|
-
}, m()),
|
6772
|
-
let
|
6773
|
-
if (y === "" && (
|
6771
|
+
}, m()), b = (y = "") => {
|
6772
|
+
let A = y;
|
6773
|
+
if (y === "" && (A = s.value ? "close" : "open"), A === "open") {
|
6774
6774
|
d();
|
6775
6775
|
return;
|
6776
6776
|
}
|
6777
6777
|
h();
|
6778
|
-
}, L = (y = "",
|
6779
|
-
a.hover !== !1 && (
|
6780
|
-
},
|
6781
|
-
const { slots:
|
6778
|
+
}, L = (y = "", A = "") => {
|
6779
|
+
a.hover !== !1 && (A === "trigger" ? r.value = y === "open" : l.value = y === "open", b(y));
|
6780
|
+
}, N = function(y, A) {
|
6781
|
+
const { slots: F } = A;
|
6782
6782
|
return M1(
|
6783
6783
|
"div",
|
6784
6784
|
{
|
@@ -6788,9 +6788,9 @@ const An = {
|
|
6788
6788
|
onMouseenter: () => L("open", "trigger"),
|
6789
6789
|
onMouseleave: () => L("close", "trigger"),
|
6790
6790
|
onFocus: () => L("open"),
|
6791
|
-
onClick: () =>
|
6791
|
+
onClick: () => b()
|
6792
6792
|
},
|
6793
|
-
|
6793
|
+
F.default ? F.default() : ""
|
6794
6794
|
);
|
6795
6795
|
}, V = E(() => {
|
6796
6796
|
const { animation: y } = a;
|
@@ -6799,10 +6799,10 @@ const An = {
|
|
6799
6799
|
outer: "",
|
6800
6800
|
inner: ""
|
6801
6801
|
};
|
6802
|
-
let
|
6803
|
-
return y === "fade-slide" && (
|
6802
|
+
let A = y;
|
6803
|
+
return y === "fade-slide" && (A = "shift-in"), {
|
6804
6804
|
outer: "fade",
|
6805
|
-
inner:
|
6805
|
+
inner: A
|
6806
6806
|
};
|
6807
6807
|
}), g = E(() => {
|
6808
6808
|
const { animationDuration: y } = a;
|
@@ -6813,18 +6813,18 @@ const An = {
|
|
6813
6813
|
leave: `${W / 1e3}s`
|
6814
6814
|
};
|
6815
6815
|
}
|
6816
|
-
const [
|
6816
|
+
const [A, F] = y;
|
6817
6817
|
return {
|
6818
|
-
enter: `${
|
6819
|
-
leave: `${
|
6818
|
+
enter: `${A / 1e3}s`,
|
6819
|
+
leave: `${F / 1e3}s`
|
6820
6820
|
};
|
6821
6821
|
}), _ = E(() => {
|
6822
|
-
const y = Object.keys(Nn).find((
|
6822
|
+
const y = Object.keys(Nn).find((A) => f.value.startsWith(A));
|
6823
6823
|
return y === void 0 ? "translate(0, 0)" : Nn[y];
|
6824
6824
|
}), M = E(() => {
|
6825
|
-
const y = Object.keys(xn).find((
|
6825
|
+
const y = Object.keys(xn).find((A) => f.value.startsWith(A));
|
6826
6826
|
return y === void 0 ? "center center" : xn[y];
|
6827
|
-
}),
|
6827
|
+
}), x = E(() => {
|
6828
6828
|
if (i.value === void 0)
|
6829
6829
|
return "";
|
6830
6830
|
const y = {
|
@@ -6832,12 +6832,12 @@ const An = {
|
|
6832
6832
|
"--vue-popper-leave-duration": g.value.leave,
|
6833
6833
|
"--vue-popper-shift-transform": _.value,
|
6834
6834
|
"--vue-popper-scale-transform-origin": M.value
|
6835
|
-
},
|
6836
|
-
return MP(
|
6837
|
-
}),
|
6838
|
-
a.onTransition !== void 0 && a.onTransition(y,
|
6839
|
-
},
|
6840
|
-
const { slots:
|
6835
|
+
}, A = i.value.state.styles.popper;
|
6836
|
+
return MP(A, y);
|
6837
|
+
}), w = (y, A) => {
|
6838
|
+
a.onTransition !== void 0 && a.onTransition(y, A);
|
6839
|
+
}, C = function(y, A) {
|
6840
|
+
const { slots: F } = A;
|
6841
6841
|
return M1(
|
6842
6842
|
w1,
|
6843
6843
|
{ name: V.value.outer },
|
@@ -6848,7 +6848,7 @@ const An = {
|
|
6848
6848
|
{
|
6849
6849
|
class: "popper-content-wrapper",
|
6850
6850
|
ref: n,
|
6851
|
-
style:
|
6851
|
+
style: x.value,
|
6852
6852
|
onMouseleave: () => {
|
6853
6853
|
a.hover === !1 || a.interactive === !1 || L("close", "tooltip");
|
6854
6854
|
},
|
@@ -6864,22 +6864,22 @@ const An = {
|
|
6864
6864
|
"data-placement": f.value,
|
6865
6865
|
"data-name": V.value.inner,
|
6866
6866
|
onBeforeEnter(W) {
|
6867
|
-
|
6867
|
+
w("before-enter", W);
|
6868
6868
|
},
|
6869
6869
|
onEnter(W) {
|
6870
|
-
V.value.inner === "shift-out" && (W.style.animation = `shift-out ${g.value.enter}`),
|
6870
|
+
V.value.inner === "shift-out" && (W.style.animation = `shift-out ${g.value.enter}`), w("enter", W);
|
6871
6871
|
},
|
6872
6872
|
onAfterEnter(W) {
|
6873
|
-
V.value.inner === "shift-out" && (W.style.transform = _.value),
|
6873
|
+
V.value.inner === "shift-out" && (W.style.transform = _.value), w("after-enter", W);
|
6874
6874
|
},
|
6875
6875
|
onBeforeLeave(W) {
|
6876
|
-
V.value.inner === "shift-out" && (W.style.transform = _.value, W.style.animation = ""),
|
6876
|
+
V.value.inner === "shift-out" && (W.style.transform = _.value, W.style.animation = ""), w("before-leave", W);
|
6877
6877
|
},
|
6878
6878
|
onLeave(W) {
|
6879
|
-
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"),
|
6879
|
+
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"), w("leave", W);
|
6880
6880
|
},
|
6881
6881
|
onAfterLeave(W) {
|
6882
|
-
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"),
|
6882
|
+
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"), w("after-leave", W);
|
6883
6883
|
}
|
6884
6884
|
},
|
6885
6885
|
{
|
@@ -6887,7 +6887,7 @@ const An = {
|
|
6887
6887
|
"div",
|
6888
6888
|
{ class: "popper-content" },
|
6889
6889
|
[
|
6890
|
-
|
6890
|
+
F.default ? F.default() : "",
|
6891
6891
|
M1(
|
6892
6892
|
"div",
|
6893
6893
|
{
|
@@ -6909,7 +6909,7 @@ const An = {
|
|
6909
6909
|
return pP(
|
6910
6910
|
t,
|
6911
6911
|
() => {
|
6912
|
-
a.disableClickOutside !== !0 &&
|
6912
|
+
a.disableClickOutside !== !0 && b("close");
|
6913
6913
|
},
|
6914
6914
|
{ ignore: [n] }
|
6915
6915
|
), M2(() => {
|
@@ -6922,15 +6922,15 @@ const An = {
|
|
6922
6922
|
var y;
|
6923
6923
|
(y = i.value) == null || y.destroy(), i.value = void 0;
|
6924
6924
|
}), s2(s, (y) => {
|
6925
|
-
var
|
6925
|
+
var A;
|
6926
6926
|
if (y === !1) {
|
6927
6927
|
a.onClosed !== void 0 && a.onClosed();
|
6928
6928
|
return;
|
6929
6929
|
}
|
6930
|
-
a.onOpened !== void 0 && a.onOpened(), (
|
6930
|
+
a.onOpened !== void 0 && a.onOpened(), (A = i.value) == null || A.update();
|
6931
6931
|
}), {
|
6932
|
-
triggerElement:
|
6933
|
-
tooltipElement:
|
6932
|
+
triggerElement: N,
|
6933
|
+
tooltipElement: C,
|
6934
6934
|
popperInstance: i,
|
6935
6935
|
isOpened: E(() => s.value)
|
6936
6936
|
};
|
@@ -16563,7 +16563,7 @@ function kn(e, c) {
|
|
16563
16563
|
}
|
16564
16564
|
return a;
|
16565
16565
|
}
|
16566
|
-
function
|
16566
|
+
function q(e) {
|
16567
16567
|
for (var c = 1; c < arguments.length; c++) {
|
16568
16568
|
var a = arguments[c] != null ? arguments[c] : {};
|
16569
16569
|
c % 2 ? kn(Object(a), !0).forEach(function(t) {
|
@@ -16807,7 +16807,7 @@ var DT = {
|
|
16807
16807
|
showMissingIcons: !0
|
16808
16808
|
};
|
16809
16809
|
k3.familyPrefix && (k3.cssPrefix = k3.familyPrefix);
|
16810
|
-
var p3 =
|
16810
|
+
var p3 = q(q({}, DT), k3);
|
16811
16811
|
p3.autoReplaceSvg || (p3.observeMutations = !1);
|
16812
16812
|
var G = {};
|
16813
16813
|
Object.keys(DT).forEach(function(e) {
|
@@ -17761,7 +17761,7 @@ function Bn(e) {
|
|
17761
17761
|
}
|
17762
17762
|
function d0(e, c) {
|
17763
17763
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = a.skipHooks, n = t === void 0 ? !1 : t, i = Bn(c);
|
17764
|
-
typeof r1.hooks.addPack == "function" && !n ? r1.hooks.addPack(e, Bn(c)) : r1.styles[e] =
|
17764
|
+
typeof r1.hooks.addPack == "function" && !n ? r1.hooks.addPack(e, Bn(c)) : r1.styles[e] = q(q({}, r1.styles[e] || {}), i), e === "fas" && d0("fa", c);
|
17765
17765
|
}
|
17766
17766
|
var L4, _4, y4, i3 = r1.styles, oB = r1.shims, fB = (L4 = {}, T2(L4, z2, Object.values(R3[z2])), T2(L4, x2, Object.values(R3[x2])), L4), V9 = null, jT = {}, FT = {}, RT = {}, $T = {}, UT = {}, uB = (_4 = {}, T2(_4, z2, Object.keys(j3[z2])), T2(_4, x2, Object.keys(j3[x2])), _4);
|
17767
17767
|
function mB(e) {
|
@@ -17896,7 +17896,7 @@ var hB = /* @__PURE__ */ function() {
|
|
17896
17896
|
n[i] = arguments[i];
|
17897
17897
|
var s = n.reduce(this._pullDefinitions, {});
|
17898
17898
|
Object.keys(s).forEach(function(r) {
|
17899
|
-
a.definitions[r] =
|
17899
|
+
a.definitions[r] = q(q({}, a.definitions[r] || {}), s[r]), d0(r, s[r]);
|
17900
17900
|
var l = R3[z2][r];
|
17901
17901
|
l && d0(l, s[r]), qT();
|
17902
17902
|
});
|
@@ -18053,7 +18053,7 @@ function CB(e) {
|
|
18053
18053
|
x: r / l / 2,
|
18054
18054
|
y: 0.5
|
18055
18055
|
};
|
18056
|
-
n.style = E6(
|
18056
|
+
n.style = E6(q(q({}, i), {}, {
|
18057
18057
|
"transform-origin": "".concat(f.x + s.x / 16, "em ").concat(f.y + s.y / 16, "em")
|
18058
18058
|
}));
|
18059
18059
|
}
|
@@ -18072,7 +18072,7 @@ function LB(e) {
|
|
18072
18072
|
},
|
18073
18073
|
children: [{
|
18074
18074
|
tag: "symbol",
|
18075
|
-
attributes:
|
18075
|
+
attributes: q(q({}, n), {}, {
|
18076
18076
|
id: s
|
18077
18077
|
}),
|
18078
18078
|
children: t
|
@@ -18080,22 +18080,22 @@ function LB(e) {
|
|
18080
18080
|
}];
|
18081
18081
|
}
|
18082
18082
|
function H9(e) {
|
18083
|
-
var c = e.icons, a = c.main, t = c.mask, n = e.prefix, i = e.iconName, s = e.transform, r = e.symbol, l = e.title, f = e.maskId, o = e.titleId, m = e.extra, d = e.watchable, h = d === void 0 ? !1 : d,
|
18084
|
-
return m.classes.indexOf(
|
18085
|
-
}).filter(function(
|
18086
|
-
return
|
18083
|
+
var c = e.icons, a = c.main, t = c.mask, n = e.prefix, i = e.iconName, s = e.transform, r = e.symbol, l = e.title, f = e.maskId, o = e.titleId, m = e.extra, d = e.watchable, h = d === void 0 ? !1 : d, b = t.found ? t : a, L = b.width, N = b.height, V = n === "fak", g = [G.replacementClass, i ? "".concat(G.cssPrefix, "-").concat(i) : ""].filter(function(A) {
|
18084
|
+
return m.classes.indexOf(A) === -1;
|
18085
|
+
}).filter(function(A) {
|
18086
|
+
return A !== "" || !!A;
|
18087
18087
|
}).concat(m.classes).join(" "), _ = {
|
18088
18088
|
children: [],
|
18089
|
-
attributes:
|
18089
|
+
attributes: q(q({}, m.attributes), {}, {
|
18090
18090
|
"data-prefix": n,
|
18091
18091
|
"data-icon": i,
|
18092
18092
|
class: g,
|
18093
18093
|
role: m.attributes.role || "img",
|
18094
18094
|
xmlns: "http://www.w3.org/2000/svg",
|
18095
|
-
viewBox: "0 0 ".concat(L, " ").concat(
|
18095
|
+
viewBox: "0 0 ".concat(L, " ").concat(N)
|
18096
18096
|
})
|
18097
18097
|
}, M = V && !~m.classes.indexOf("fa-fw") ? {
|
18098
|
-
width: "".concat(L /
|
18098
|
+
width: "".concat(L / N * 16 * 0.0625, "em")
|
18099
18099
|
} : {};
|
18100
18100
|
h && (_.attributes[Z1] = ""), l && (_.children.push({
|
18101
18101
|
tag: "title",
|
@@ -18104,7 +18104,7 @@ function H9(e) {
|
|
18104
18104
|
},
|
18105
18105
|
children: [l]
|
18106
18106
|
}), delete _.attributes.title);
|
18107
|
-
var
|
18107
|
+
var x = q(q({}, _), {}, {
|
18108
18108
|
prefix: n,
|
18109
18109
|
iconName: i,
|
18110
18110
|
main: a,
|
@@ -18112,24 +18112,24 @@ function H9(e) {
|
|
18112
18112
|
maskId: f,
|
18113
18113
|
transform: s,
|
18114
18114
|
symbol: r,
|
18115
|
-
styles:
|
18116
|
-
}),
|
18115
|
+
styles: q(q({}, M), m.styles)
|
18116
|
+
}), w = t.found && a.found ? y1("generateAbstractMask", x) || {
|
18117
18117
|
children: [],
|
18118
18118
|
attributes: {}
|
18119
|
-
} : y1("generateAbstractIcon",
|
18119
|
+
} : y1("generateAbstractIcon", x) || {
|
18120
18120
|
children: [],
|
18121
18121
|
attributes: {}
|
18122
|
-
},
|
18123
|
-
return
|
18122
|
+
}, C = w.children, y = w.attributes;
|
18123
|
+
return x.children = C, x.attributes = y, r ? LB(x) : CB(x);
|
18124
18124
|
}
|
18125
18125
|
function Rn(e) {
|
18126
|
-
var c = e.content, a = e.width, t = e.height, n = e.transform, i = e.title, s = e.extra, r = e.watchable, l = r === void 0 ? !1 : r, f =
|
18126
|
+
var c = e.content, a = e.width, t = e.height, n = e.transform, i = e.title, s = e.extra, r = e.watchable, l = r === void 0 ? !1 : r, f = q(q(q({}, s.attributes), i ? {
|
18127
18127
|
title: i
|
18128
18128
|
} : {}), {}, {
|
18129
18129
|
class: s.classes.join(" ")
|
18130
18130
|
});
|
18131
18131
|
l && (f[Z1] = "");
|
18132
|
-
var o =
|
18132
|
+
var o = q({}, s.styles);
|
18133
18133
|
h9(n) && (o.transform = cB({
|
18134
18134
|
transform: n,
|
18135
18135
|
startCentered: !0,
|
@@ -18152,7 +18152,7 @@ function Rn(e) {
|
|
18152
18152
|
}), d;
|
18153
18153
|
}
|
18154
18154
|
function _B(e) {
|
18155
|
-
var c = e.content, a = e.title, t = e.extra, n =
|
18155
|
+
var c = e.content, a = e.title, t = e.extra, n = q(q(q({}, t.attributes), a ? {
|
18156
18156
|
title: a
|
18157
18157
|
} : {}), {}, {
|
18158
18158
|
class: t.classes.join(" ")
|
@@ -18226,7 +18226,7 @@ function V0(e, c) {
|
|
18226
18226
|
var s = G6[c][e];
|
18227
18227
|
return t(h0(s));
|
18228
18228
|
}
|
18229
|
-
AB(e, c), t(
|
18229
|
+
AB(e, c), t(q(q({}, yB), {}, {
|
18230
18230
|
icon: G.showMissingIcons && e ? y1("missingIconAbstract") || {} : {}
|
18231
18231
|
}));
|
18232
18232
|
});
|
@@ -18353,8 +18353,8 @@ function Wn(e) {
|
|
18353
18353
|
b3(f).forEach(function(m) {
|
18354
18354
|
if (m.type === "childList" && m.addedNodes.length > 0 && !Un(m.addedNodes[0]) && (G.searchPseudoElements && s(m.target), a(m.target)), m.type === "attributes" && m.target.parentNode && G.searchPseudoElements && s(m.target.parentNode), m.type === "attributes" && Un(m.target) && ~qP.indexOf(m.attributeName))
|
18355
18355
|
if (m.attributeName === "class" && xB(m.target)) {
|
18356
|
-
var d = O6(p9(m.target)), h = d.prefix,
|
18357
|
-
m.target.setAttribute(m9, h || o),
|
18356
|
+
var d = O6(p9(m.target)), h = d.prefix, b = d.iconName;
|
18357
|
+
m.target.setAttribute(m9, h || o), b && m.target.setAttribute(d9, b);
|
18358
18358
|
} else
|
18359
18359
|
kB(m.target) && n(m.target);
|
18360
18360
|
});
|
@@ -18412,7 +18412,7 @@ function Gn(e) {
|
|
18412
18412
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
18413
18413
|
styleParser: !0
|
18414
18414
|
}, a = OB(e), t = a.iconName, n = a.prefix, i = a.rest, s = PB(e), r = v0("parseNodeAttributes", {}, e), l = c.styleParser ? DB(e) : [];
|
18415
|
-
return
|
18415
|
+
return q({
|
18416
18416
|
iconName: t,
|
18417
18417
|
title: e.getAttribute("title"),
|
18418
18418
|
titleId: e.getAttribute("data-fa-title-id"),
|
@@ -18500,24 +18500,24 @@ function FB(e) {
|
|
18500
18500
|
function RB(e) {
|
18501
18501
|
return function(c) {
|
18502
18502
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = (c || {}).icon ? c : p0(c || {}), n = a.mask;
|
18503
|
-
return n && (n = (n || {}).icon ? n : p0(n || {})), e(t,
|
18503
|
+
return n && (n = (n || {}).icon ? n : p0(n || {})), e(t, q(q({}, a), {}, {
|
18504
18504
|
mask: n
|
18505
18505
|
}));
|
18506
18506
|
};
|
18507
18507
|
}
|
18508
18508
|
var $B = function(c) {
|
18509
|
-
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, i = a.symbol, s = i === void 0 ? !1 : i, r = a.mask, l = r === void 0 ? null : r, f = a.maskId, o = f === void 0 ? null : f, m = a.title, d = m === void 0 ? null : m, h = a.titleId,
|
18509
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, i = a.symbol, s = i === void 0 ? !1 : i, r = a.mask, l = r === void 0 ? null : r, f = a.maskId, o = f === void 0 ? null : f, m = a.title, d = m === void 0 ? null : m, h = a.titleId, b = h === void 0 ? null : h, L = a.classes, N = L === void 0 ? [] : L, V = a.attributes, g = V === void 0 ? {} : V, _ = a.styles, M = _ === void 0 ? {} : _;
|
18510
18510
|
if (c) {
|
18511
|
-
var
|
18512
|
-
return P6(
|
18511
|
+
var x = c.prefix, w = c.iconName, C = c.icon;
|
18512
|
+
return P6(q({
|
18513
18513
|
type: "icon"
|
18514
18514
|
}, c), function() {
|
18515
18515
|
return J1("beforeDOMElementCreation", {
|
18516
18516
|
iconDefinition: c,
|
18517
18517
|
params: a
|
18518
|
-
}), G.autoA11y && (d ? g["aria-labelledby"] = "".concat(G.replacementClass, "-title-").concat(
|
18518
|
+
}), G.autoA11y && (d ? g["aria-labelledby"] = "".concat(G.replacementClass, "-title-").concat(b || U3()) : (g["aria-hidden"] = "true", g.focusable = "false")), H9({
|
18519
18519
|
icons: {
|
18520
|
-
main: h0(
|
18520
|
+
main: h0(C),
|
18521
18521
|
mask: l ? h0(l.icon) : {
|
18522
18522
|
found: !1,
|
18523
18523
|
width: null,
|
@@ -18525,17 +18525,17 @@ var $B = function(c) {
|
|
18525
18525
|
icon: {}
|
18526
18526
|
}
|
18527
18527
|
},
|
18528
|
-
prefix:
|
18529
|
-
iconName:
|
18530
|
-
transform:
|
18528
|
+
prefix: x,
|
18529
|
+
iconName: w,
|
18530
|
+
transform: q(q({}, d1), n),
|
18531
18531
|
symbol: s,
|
18532
18532
|
title: d,
|
18533
18533
|
maskId: o,
|
18534
|
-
titleId:
|
18534
|
+
titleId: b,
|
18535
18535
|
extra: {
|
18536
18536
|
attributes: g,
|
18537
18537
|
styles: M,
|
18538
|
-
classes:
|
18538
|
+
classes: N
|
18539
18539
|
}
|
18540
18540
|
});
|
18541
18541
|
});
|
@@ -18560,14 +18560,14 @@ var $B = function(c) {
|
|
18560
18560
|
return Yn(n, s);
|
18561
18561
|
}, c.generateSvgReplacementMutation = function(a, t) {
|
18562
18562
|
var n = t.iconName, i = t.title, s = t.titleId, r = t.prefix, l = t.transform, f = t.symbol, o = t.mask, m = t.maskId, d = t.extra;
|
18563
|
-
return new Promise(function(h,
|
18563
|
+
return new Promise(function(h, b) {
|
18564
18564
|
Promise.all([V0(n, r), o.iconName ? V0(o.iconName, o.prefix) : Promise.resolve({
|
18565
18565
|
found: !1,
|
18566
18566
|
width: 512,
|
18567
18567
|
height: 512,
|
18568
18568
|
icon: {}
|
18569
18569
|
})]).then(function(L) {
|
18570
|
-
var
|
18570
|
+
var N = f9(L, 2), V = N[0], g = N[1];
|
18571
18571
|
h([a, H9({
|
18572
18572
|
icons: {
|
18573
18573
|
main: V,
|
@@ -18583,7 +18583,7 @@ var $B = function(c) {
|
|
18583
18583
|
extra: d,
|
18584
18584
|
watchable: !0
|
18585
18585
|
})]);
|
18586
|
-
}).catch(
|
18586
|
+
}).catch(b);
|
18587
18587
|
});
|
18588
18588
|
}, c.generateAbstractIcon = function(a) {
|
18589
18589
|
var t = a.children, n = a.attributes, i = a.main, s = a.transform, r = a.styles, l = E6(r);
|
@@ -18667,7 +18667,7 @@ var $B = function(c) {
|
|
18667
18667
|
params: t
|
18668
18668
|
}), Rn({
|
18669
18669
|
content: a,
|
18670
|
-
transform:
|
18670
|
+
transform: q(q({}, d1), i),
|
18671
18671
|
title: r,
|
18672
18672
|
extra: {
|
18673
18673
|
attributes: m,
|
@@ -18710,33 +18710,33 @@ function Xn(e, c) {
|
|
18710
18710
|
return new Promise(function(t, n) {
|
18711
18711
|
if (e.getAttribute(a) !== null)
|
18712
18712
|
return t();
|
18713
|
-
var i = b3(e.children), s = i.filter(function(
|
18714
|
-
return
|
18713
|
+
var i = b3(e.children), s = i.filter(function(C) {
|
18714
|
+
return C.getAttribute(u0) === c;
|
18715
18715
|
})[0], r = D1.getComputedStyle(e, c), l = r.getPropertyValue("font-family").match(RP), f = r.getPropertyValue("font-weight"), o = r.getPropertyValue("content");
|
18716
18716
|
if (s && !l)
|
18717
18717
|
return e.removeChild(s), t();
|
18718
18718
|
if (l && o !== "none" && o !== "") {
|
18719
|
-
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? F3[d][l[2].toLowerCase()] : $P[d][f],
|
18719
|
+
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? F3[d][l[2].toLowerCase()] : $P[d][f], b = QB(m), L = b.value, N = b.isSecondary, V = l[0].startsWith("FontAwesome"), g = z9(h, L), _ = g;
|
18720
18720
|
if (V) {
|
18721
18721
|
var M = pB(L);
|
18722
18722
|
M.iconName && M.prefix && (g = M.iconName, h = M.prefix);
|
18723
18723
|
}
|
18724
|
-
if (g && !
|
18724
|
+
if (g && !N && (!s || s.getAttribute(m9) !== h || s.getAttribute(d9) !== _)) {
|
18725
18725
|
e.setAttribute(a, _), s && e.removeChild(s);
|
18726
|
-
var
|
18727
|
-
|
18728
|
-
var y = H9(
|
18726
|
+
var x = BB(), w = x.extra;
|
18727
|
+
w.attributes[u0] = c, V0(g, h).then(function(C) {
|
18728
|
+
var y = H9(q(q({}, x), {}, {
|
18729
18729
|
icons: {
|
18730
|
-
main:
|
18730
|
+
main: C,
|
18731
18731
|
mask: g9()
|
18732
18732
|
},
|
18733
18733
|
prefix: h,
|
18734
18734
|
iconName: _,
|
18735
|
-
extra:
|
18735
|
+
extra: w,
|
18736
18736
|
watchable: !0
|
18737
|
-
})),
|
18738
|
-
c === "::before" ? e.insertBefore(
|
18739
|
-
return u4(
|
18737
|
+
})), A = H2.createElementNS("http://www.w3.org/2000/svg", "svg");
|
18738
|
+
c === "::before" ? e.insertBefore(A, e.firstChild) : e.appendChild(A), A.outerHTML = y.map(function(F) {
|
18739
|
+
return u4(F);
|
18740
18740
|
}).join(`
|
18741
18741
|
`), e.removeAttribute(a), t();
|
18742
18742
|
}).catch(n);
|
@@ -18878,14 +18878,14 @@ var ZB = {
|
|
18878
18878
|
};
|
18879
18879
|
return {
|
18880
18880
|
tag: "g",
|
18881
|
-
attributes:
|
18881
|
+
attributes: q({}, h.outer),
|
18882
18882
|
children: [{
|
18883
18883
|
tag: "g",
|
18884
|
-
attributes:
|
18884
|
+
attributes: q({}, h.inner),
|
18885
18885
|
children: [{
|
18886
18886
|
tag: t.icon.tag,
|
18887
18887
|
children: t.icon.children,
|
18888
|
-
attributes:
|
18888
|
+
attributes: q(q({}, t.icon.attributes), h.path)
|
18889
18889
|
}]
|
18890
18890
|
}]
|
18891
18891
|
};
|
@@ -18921,33 +18921,33 @@ var aj = {
|
|
18921
18921
|
transform: l,
|
18922
18922
|
containerWidth: m,
|
18923
18923
|
iconWidth: f
|
18924
|
-
}),
|
18924
|
+
}), b = {
|
18925
18925
|
tag: "rect",
|
18926
|
-
attributes:
|
18926
|
+
attributes: q(q({}, Y6), {}, {
|
18927
18927
|
fill: "white"
|
18928
18928
|
})
|
18929
18929
|
}, L = o.children ? {
|
18930
18930
|
children: o.children.map(ei)
|
18931
|
-
} : {},
|
18931
|
+
} : {}, N = {
|
18932
18932
|
tag: "g",
|
18933
|
-
attributes:
|
18934
|
-
children: [ei(
|
18933
|
+
attributes: q({}, h.inner),
|
18934
|
+
children: [ei(q({
|
18935
18935
|
tag: o.tag,
|
18936
|
-
attributes:
|
18936
|
+
attributes: q(q({}, o.attributes), h.path)
|
18937
18937
|
}, L))]
|
18938
18938
|
}, V = {
|
18939
18939
|
tag: "g",
|
18940
|
-
attributes:
|
18941
|
-
children: [
|
18940
|
+
attributes: q({}, h.outer),
|
18941
|
+
children: [N]
|
18942
18942
|
}, g = "mask-".concat(r || U3()), _ = "clip-".concat(r || U3()), M = {
|
18943
18943
|
tag: "mask",
|
18944
|
-
attributes:
|
18944
|
+
attributes: q(q({}, Y6), {}, {
|
18945
18945
|
id: g,
|
18946
18946
|
maskUnits: "userSpaceOnUse",
|
18947
18947
|
maskContentUnits: "userSpaceOnUse"
|
18948
18948
|
}),
|
18949
|
-
children: [
|
18950
|
-
},
|
18949
|
+
children: [b, V]
|
18950
|
+
}, x = {
|
18951
18951
|
tag: "defs",
|
18952
18952
|
children: [{
|
18953
18953
|
tag: "clipPath",
|
@@ -18957,9 +18957,9 @@ var aj = {
|
|
18957
18957
|
children: cj(d)
|
18958
18958
|
}, M]
|
18959
18959
|
};
|
18960
|
-
return t.push(
|
18960
|
+
return t.push(x, {
|
18961
18961
|
tag: "rect",
|
18962
|
-
attributes:
|
18962
|
+
attributes: q({
|
18963
18963
|
fill: "currentColor",
|
18964
18964
|
"clip-path": "url(#".concat(_, ")"),
|
18965
18965
|
mask: "url(#".concat(g, ")")
|
@@ -18983,15 +18983,15 @@ var aj = {
|
|
18983
18983
|
};
|
18984
18984
|
t.push({
|
18985
18985
|
tag: "path",
|
18986
|
-
attributes:
|
18986
|
+
attributes: q(q({}, n), {}, {
|
18987
18987
|
d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"
|
18988
18988
|
})
|
18989
18989
|
});
|
18990
|
-
var s =
|
18990
|
+
var s = q(q({}, i), {}, {
|
18991
18991
|
attributeName: "opacity"
|
18992
18992
|
}), r = {
|
18993
18993
|
tag: "circle",
|
18994
|
-
attributes:
|
18994
|
+
attributes: q(q({}, n), {}, {
|
18995
18995
|
cx: "256",
|
18996
18996
|
cy: "364",
|
18997
18997
|
r: "28"
|
@@ -19000,36 +19000,36 @@ var aj = {
|
|
19000
19000
|
};
|
19001
19001
|
return a || r.children.push({
|
19002
19002
|
tag: "animate",
|
19003
|
-
attributes:
|
19003
|
+
attributes: q(q({}, i), {}, {
|
19004
19004
|
attributeName: "r",
|
19005
19005
|
values: "28;14;28;28;14;28;"
|
19006
19006
|
})
|
19007
19007
|
}, {
|
19008
19008
|
tag: "animate",
|
19009
|
-
attributes:
|
19009
|
+
attributes: q(q({}, s), {}, {
|
19010
19010
|
values: "1;0;1;1;0;1;"
|
19011
19011
|
})
|
19012
19012
|
}), t.push(r), t.push({
|
19013
19013
|
tag: "path",
|
19014
|
-
attributes:
|
19014
|
+
attributes: q(q({}, n), {}, {
|
19015
19015
|
opacity: "1",
|
19016
19016
|
d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"
|
19017
19017
|
}),
|
19018
19018
|
children: a ? [] : [{
|
19019
19019
|
tag: "animate",
|
19020
|
-
attributes:
|
19020
|
+
attributes: q(q({}, s), {}, {
|
19021
19021
|
values: "1;0;0;0;0;1;"
|
19022
19022
|
})
|
19023
19023
|
}]
|
19024
19024
|
}), a || t.push({
|
19025
19025
|
tag: "path",
|
19026
|
-
attributes:
|
19026
|
+
attributes: q(q({}, n), {}, {
|
19027
19027
|
opacity: "0",
|
19028
19028
|
d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"
|
19029
19029
|
}),
|
19030
19030
|
children: [{
|
19031
19031
|
tag: "animate",
|
19032
|
-
attributes:
|
19032
|
+
attributes: q(q({}, s), {}, {
|
19033
19033
|
values: "0;0;1;1;0;0;"
|
19034
19034
|
})
|
19035
19035
|
}]
|
@@ -19082,9 +19082,9 @@ const rj = Q({
|
|
19082
19082
|
if (l.prefix)
|
19083
19083
|
return;
|
19084
19084
|
const m = Object.keys(l.attributes || {}).reduce(
|
19085
|
-
(h,
|
19086
|
-
const L = l.attributes[
|
19087
|
-
return h.attrs[
|
19085
|
+
(h, b) => {
|
19086
|
+
const L = l.attributes[b];
|
19087
|
+
return h.attrs[b] = L, h;
|
19088
19088
|
},
|
19089
19089
|
{
|
19090
19090
|
attrs: {}
|
@@ -19101,7 +19101,7 @@ const rj = Q({
|
|
19101
19101
|
};
|
19102
19102
|
function t(l) {
|
19103
19103
|
let d = `fa-${l}`.split("-").map(
|
19104
|
-
(
|
19104
|
+
(b) => b.charAt(0).toUpperCase() + b.slice(1).toLowerCase()
|
19105
19105
|
).join("");
|
19106
19106
|
return d.charAt(0).toLowerCase() + d.slice(1);
|
19107
19107
|
}
|
@@ -20049,10 +20049,10 @@ const sF = /* @__PURE__ */ X(iF, [["__scopeId", "data-v-ff11beb8"]]), rF = { cla
|
|
20049
20049
|
], 10, oF),
|
20050
20050
|
I(h, null, {
|
20051
20051
|
default: i2(() => [
|
20052
|
-
(p(!0), H(
|
20053
|
-
key:
|
20054
|
-
optionLabel:
|
20055
|
-
onOnSelected: (L) => s(
|
20052
|
+
(p(!0), H(t2, null, g2(n.value, (b) => (p(), K(d, {
|
20053
|
+
key: b,
|
20054
|
+
optionLabel: b.label,
|
20055
|
+
onOnSelected: (L) => s(b.value),
|
20056
20056
|
"data-test": "option"
|
20057
20057
|
}, null, 8, ["optionLabel", "onOnSelected"]))), 128))
|
20058
20058
|
]),
|
@@ -20294,37 +20294,37 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20294
20294
|
}, o = () => {
|
20295
20295
|
i.value = !1;
|
20296
20296
|
}, m = (M) => {
|
20297
|
-
const
|
20298
|
-
for (let
|
20299
|
-
const y =
|
20300
|
-
if (
|
20297
|
+
const x = Array.from(M), w = new DataTransfer();
|
20298
|
+
for (let C of x) {
|
20299
|
+
const y = C.name.split(".").pop();
|
20300
|
+
if (b.value.includes(
|
20301
20301
|
`.${y.toLowerCase()}`
|
20302
20302
|
)) {
|
20303
|
-
const
|
20304
|
-
type:
|
20305
|
-
lastModified:
|
20303
|
+
const F = new File([C], C.name, {
|
20304
|
+
type: C.type,
|
20305
|
+
lastModified: C.lastModified
|
20306
20306
|
});
|
20307
|
-
|
20307
|
+
w.items.add(F);
|
20308
20308
|
} else
|
20309
|
-
c("fileFormatNotAccepted",
|
20309
|
+
c("fileFormatNotAccepted", C.name);
|
20310
20310
|
}
|
20311
|
-
return
|
20312
|
-
}, d = E(() => a.accept.split(",")), h = E(() => a.accept.split(",").join(", ")),
|
20311
|
+
return w.files;
|
20312
|
+
}, d = E(() => a.accept.split(",")), h = E(() => a.accept.split(",").join(", ")), b = E(
|
20313
20313
|
() => d.value.map((M) => M.toLocaleLowerCase())
|
20314
|
-
), L = (M) => M.split("/").pop(),
|
20314
|
+
), L = (M) => M.split("/").pop(), N = (M) => {
|
20315
20315
|
M.preventDefault(), !a.disabled && (s.value.files = m(M.dataTransfer.files), r.value = a.multiple ? [...s.value.files] : [s.value.files[0]], c("update", r.value), i.value = !1);
|
20316
20316
|
}, V = (M) => {
|
20317
20317
|
r.value.splice(M, 1), c("update", r.value);
|
20318
20318
|
}, g = (M) => {
|
20319
|
-
let
|
20319
|
+
let x = URL.createObjectURL(M);
|
20320
20320
|
return setTimeout(() => {
|
20321
|
-
URL.revokeObjectURL(
|
20322
|
-
}, 1e3),
|
20321
|
+
URL.revokeObjectURL(x);
|
20322
|
+
}, 1e3), x;
|
20323
20323
|
}, _ = (M) => {
|
20324
20324
|
c("download", M);
|
20325
20325
|
};
|
20326
|
-
return (M,
|
20327
|
-
const
|
20326
|
+
return (M, x) => {
|
20327
|
+
const w = D("AVTooltip"), C = D("AVIcon");
|
20328
20328
|
return p(), H("div", NF, [
|
20329
20329
|
e.disableLabel ? O("", !0) : (p(), H("label", {
|
20330
20330
|
key: 0,
|
@@ -20333,7 +20333,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20333
20333
|
"data-test": "input-label"
|
20334
20334
|
}, [
|
20335
20335
|
u("span", null, k(e.inputLabel), 1),
|
20336
|
-
e.tooltipText ? (p(), K(
|
20336
|
+
e.tooltipText ? (p(), K(w, {
|
20337
20337
|
key: 0,
|
20338
20338
|
id: `${e.id}-info-tooltip`,
|
20339
20339
|
position: "right",
|
@@ -20344,7 +20344,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20344
20344
|
class: Y(`AVFileInput--dropzone-container ${e.error && "error"} ${e.disabled && "disabled"}`),
|
20345
20345
|
onDragover: f,
|
20346
20346
|
onDragleave: o,
|
20347
|
-
onDrop:
|
20347
|
+
onDrop: N
|
20348
20348
|
}, [
|
20349
20349
|
u("input", {
|
20350
20350
|
type: "file",
|
@@ -20359,7 +20359,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20359
20359
|
disabled: e.disabled
|
20360
20360
|
}, null, 40, kF),
|
20361
20361
|
u("div", SF, [
|
20362
|
-
I(
|
20362
|
+
I(C, {
|
20363
20363
|
icon: "fa-solid fa-cloud-arrow-up",
|
20364
20364
|
class: "AVFileInput--input-icon",
|
20365
20365
|
"data-test": "input-icon"
|
@@ -20387,7 +20387,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20387
20387
|
])),
|
20388
20388
|
r.value.length ? (p(), H("div", jF, [
|
20389
20389
|
u("p", FF, k(B(n)("js.components.AVFileInput.uploading")), 1),
|
20390
|
-
(p(!0), H(
|
20390
|
+
(p(!0), H(t2, null, g2(r.value, (y) => (p(), H("div", {
|
20391
20391
|
key: y.name,
|
20392
20392
|
class: Y(`AVFileInput--preview-card ${e.error && "error"}`)
|
20393
20393
|
}, [
|
@@ -20397,7 +20397,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20397
20397
|
key: 0,
|
20398
20398
|
class: "AVFileInput--preview-img",
|
20399
20399
|
src: g(y)
|
20400
|
-
}, null, 8, UF)) : (p(), K(
|
20400
|
+
}, null, 8, UF)) : (p(), K(C, {
|
20401
20401
|
key: 1,
|
20402
20402
|
icon: "fa-solid fa-file",
|
20403
20403
|
class: "AVTextInput--preview-icon",
|
@@ -20413,10 +20413,10 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20413
20413
|
key: 0,
|
20414
20414
|
class: "AVTextInput--delete-btn",
|
20415
20415
|
type: "button",
|
20416
|
-
onClick: (
|
20416
|
+
onClick: (A) => V(r.value.indexOf(y)),
|
20417
20417
|
title: "Remove file"
|
20418
20418
|
}, [
|
20419
|
-
I(
|
20419
|
+
I(C, {
|
20420
20420
|
icon: "fa-solid fa-trash",
|
20421
20421
|
class: "AVTextInput--delete-icon",
|
20422
20422
|
"data-test": "file-preview-icon"
|
@@ -20426,7 +20426,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20426
20426
|
])) : O("", !0),
|
20427
20427
|
e.currentValue ? (p(), H("div", GF, [
|
20428
20428
|
u("p", YF, k(B(n)("js.components.AVFileInput.current")), 1),
|
20429
|
-
(p(!0), H(
|
20429
|
+
(p(!0), H(t2, null, g2(e.currentValue, (y) => (p(), H("div", {
|
20430
20430
|
key: `image-${y}`
|
20431
20431
|
}, [
|
20432
20432
|
e.showPreview ? (p(), H("img", {
|
@@ -20437,7 +20437,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20437
20437
|
}, null, 8, QF)) : (p(), H("div", XF, [
|
20438
20438
|
u("div", KF, [
|
20439
20439
|
u("div", ZF, [
|
20440
|
-
I(
|
20440
|
+
I(C, {
|
20441
20441
|
icon: "fa-solid fa-file",
|
20442
20442
|
class: "AVTextInput--preview-icon",
|
20443
20443
|
"data-test": "file-preview-icon"
|
@@ -20449,9 +20449,9 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20449
20449
|
class: "AVTextInput--delete-btn",
|
20450
20450
|
type: "button",
|
20451
20451
|
title: "Download file",
|
20452
|
-
onClick: (
|
20452
|
+
onClick: (A) => _(y)
|
20453
20453
|
}, [
|
20454
|
-
I(
|
20454
|
+
I(C, {
|
20455
20455
|
icon: "fa-solid fa-download",
|
20456
20456
|
class: "AVTextInput--download-icon",
|
20457
20457
|
"data-test": "file-download-icon"
|
@@ -20884,7 +20884,7 @@ const xR = /* @__PURE__ */ X(NR, [["__scopeId", "data-v-f09132ab"]]), kR = { cla
|
|
20884
20884
|
], 8, SR),
|
20885
20885
|
I(l, null, {
|
20886
20886
|
default: i2(() => [
|
20887
|
-
(p(!0), H(
|
20887
|
+
(p(!0), H(t2, null, g2(e.options, (f, o) => (p(), K(r, {
|
20888
20888
|
key: o,
|
20889
20889
|
optionLabel: f.label,
|
20890
20890
|
href: f.href,
|
@@ -21030,7 +21030,7 @@ const BR = /* @__PURE__ */ X(PR, [["__scopeId", "data-v-f770cea1"]]), jR = ["dis
|
|
21030
21030
|
"AVAsyncButton--disabled": !t.value && i.value
|
21031
21031
|
}])
|
21032
21032
|
}, [
|
21033
|
-
t.value ? (p(), H(
|
21033
|
+
t.value ? (p(), H(t2, { key: 1 }, [
|
21034
21034
|
y2(r.$slots, "waitingIcon", {}, () => [
|
21035
21035
|
I(o, {
|
21036
21036
|
style: { color: "inherit", height: "1em", width: "1em" },
|
@@ -21109,11 +21109,11 @@ const RR = /* @__PURE__ */ X(FR, [["__scopeId", "data-v-11042fa9"]]), $R = { cla
|
|
21109
21109
|
() => a.disabled,
|
21110
21110
|
() => l()
|
21111
21111
|
), (m, d) => (p(), H("div", $R, [
|
21112
|
-
(p(!0), H(
|
21112
|
+
(p(!0), H(t2, null, g2(t.value, (h) => (p(), H("button", {
|
21113
21113
|
key: h.value,
|
21114
21114
|
class: Y(`AVTabSwitcher--button ${i.value} ${h.selected && "AVTabSwitcher--button-active"} ${h.disabled && "disabled"}`),
|
21115
21115
|
disabled: h.disabled,
|
21116
|
-
onClick: (
|
21116
|
+
onClick: (b) => f(h.value)
|
21117
21117
|
}, k(h.value), 11, UR))), 128))
|
21118
21118
|
]));
|
21119
21119
|
}
|
@@ -21215,7 +21215,7 @@ const KR = /* @__PURE__ */ X(XR, [["__scopeId", "data-v-607d90fc"]]), ZR = {
|
|
21215
21215
|
}, i = E(() => 100 - t.value / a.timeout * 100), s = E(
|
21216
21216
|
() => Math.floor((a.timeout - t.value) / 60)
|
21217
21217
|
), r = E(() => (a.timeout - t.value) % 60), l = E(() => s.value % 60), f = E(() => r.value < 10 ? `${l.value}:0${r.value}` : `${l.value}:${r.value}`);
|
21218
|
-
return (o, m) => (p(), H(
|
21218
|
+
return (o, m) => (p(), H(t2, null, [
|
21219
21219
|
u("div", {
|
21220
21220
|
class: "AVTimedCard",
|
21221
21221
|
style: l1(`width: ${e.customWidth}px`)
|
@@ -21331,7 +21331,7 @@ const r$ = /* @__PURE__ */ X(s$, [["__scopeId", "data-v-9a6218e9"]]), l$ = { cla
|
|
21331
21331
|
return (s, r) => {
|
21332
21332
|
const l = D("AVIcon");
|
21333
21333
|
return p(), H("div", l$, [
|
21334
|
-
(p(!0), H(
|
21334
|
+
(p(!0), H(t2, null, g2(a.value, (f, o) => (p(), H("div", {
|
21335
21335
|
key: o,
|
21336
21336
|
class: Y(`${a.value.length !== o + 1 ? "AVSteps--step" : "AVSteps--step-last"} ${f.active && "AVSteps--step-active"}`),
|
21337
21337
|
"data-test": "step"
|
@@ -21575,7 +21575,7 @@ const _$ = /* @__PURE__ */ X(L$, [["__scopeId", "data-v-342ba729"]]), y$ = /* @_
|
|
21575
21575
|
};
|
21576
21576
|
return (r, l) => {
|
21577
21577
|
const f = D("AVTransitionSlide");
|
21578
|
-
return e.collapsable ? (p(), H(
|
21578
|
+
return e.collapsable ? (p(), H(t2, { key: 0 }, [
|
21579
21579
|
u("div", {
|
21580
21580
|
role: "button",
|
21581
21581
|
"aria-controls": e.paneId,
|
@@ -21609,7 +21609,7 @@ const _$ = /* @__PURE__ */ X(L$, [["__scopeId", "data-v-342ba729"]]), y$ = /* @_
|
|
21609
21609
|
]),
|
21610
21610
|
_: 3
|
21611
21611
|
}, 8, ["skip-transition"])
|
21612
|
-
], 64)) : (p(), H(
|
21612
|
+
], 64)) : (p(), H(t2, { key: 1 }, [
|
21613
21613
|
y2(r.$slots, "toggle", {
|
21614
21614
|
isOpen: !0,
|
21615
21615
|
collapsable: !1
|
@@ -21717,14 +21717,14 @@ const k$ = /* @__PURE__ */ X(x$, [["__scopeId", "data-v-4e9b2c30"]]), S$ = { cla
|
|
21717
21717
|
class: Y(`AVRadioGroup--${e.orientation}`),
|
21718
21718
|
"data-test": "input-group"
|
21719
21719
|
}, [
|
21720
|
-
(p(!0), H(
|
21720
|
+
(p(!0), H(t2, null, g2(n.value, (d, h) => (p(), K(m, {
|
21721
21721
|
class: "AVRadioGroup--child",
|
21722
21722
|
id: `radio-${e.id}-${h}`,
|
21723
21723
|
key: h,
|
21724
21724
|
value: d.value,
|
21725
21725
|
checked: d.checked,
|
21726
21726
|
disabled: d.disabled,
|
21727
|
-
onUpdate: (
|
21727
|
+
onUpdate: (b) => r(d.value)
|
21728
21728
|
}, null, 8, ["id", "value", "checked", "disabled", "onUpdate"]))), 128))
|
21729
21729
|
], 2),
|
21730
21730
|
e.error && e.errorMessage ? (p(), H("p", T$, k(e.errorMessage), 1)) : O("", !0)
|
@@ -21776,7 +21776,7 @@ const O$ = /* @__PURE__ */ X(D$, [["__scopeId", "data-v-9fd5c53d"]]), P$ = { cla
|
|
21776
21776
|
class: "AVBreadcrumb--icon"
|
21777
21777
|
}))
|
21778
21778
|
], 8, B$),
|
21779
|
-
(p(!0), H(
|
21779
|
+
(p(!0), H(t2, null, g2(e.items, (n, i) => (p(), H("span", {
|
21780
21780
|
key: i,
|
21781
21781
|
class: "AVBreadcrumb--group",
|
21782
21782
|
"data-test": "item-group"
|
@@ -22047,14 +22047,14 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22047
22047
|
var o;
|
22048
22048
|
return c.blank ? a.global.messages.value ? a.global.messages.value[n.value].js.components.AVSummaryOption.blank : a.global.messages[n.value].js.components.AVSummaryOption.blank : (o = c.option) == null ? void 0 : o.title;
|
22049
22049
|
}), f = E(() => {
|
22050
|
-
var
|
22051
|
-
const o = Array.from(Array((
|
22052
|
-
o.forEach((
|
22050
|
+
var b, L;
|
22051
|
+
const o = Array.from(Array((b = c.option) == null ? void 0 : b.crosses).keys());
|
22052
|
+
o.forEach((N) => o[N] = N + 1);
|
22053
22053
|
const m = o.indexOf(Math.ceil(((L = c.option) == null ? void 0 : L.crosses) / 2)) + 1, d = o.slice(0, m), h = o.slice(m);
|
22054
22054
|
return h.length ? [d, h] : [d];
|
22055
22055
|
});
|
22056
22056
|
return (o, m) => {
|
22057
|
-
var h,
|
22057
|
+
var h, b, L;
|
22058
22058
|
const d = D("AVOptionCheckbox");
|
22059
22059
|
return p(), H("div", {
|
22060
22060
|
class: "AVSummaryOption",
|
@@ -22062,10 +22062,10 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22062
22062
|
}, [
|
22063
22063
|
r.value ? (p(), H("div", VU, [
|
22064
22064
|
u("ul", zU, [
|
22065
|
-
(p(!0), H(
|
22066
|
-
key:
|
22065
|
+
(p(!0), H(t2, null, g2(r.value, (N, V) => (p(), H("li", {
|
22066
|
+
key: N + V,
|
22067
22067
|
class: "AVSummaryOption--breadcrumb-item"
|
22068
|
-
}, k(
|
22068
|
+
}, k(N), 1))), 128))
|
22069
22069
|
])
|
22070
22070
|
])) : O("", !0),
|
22071
22071
|
u("div", {
|
@@ -22076,7 +22076,7 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22076
22076
|
}, [
|
22077
22077
|
(h = e.option) != null && h.image ? (p(), H("img", {
|
22078
22078
|
key: 0,
|
22079
|
-
src: (
|
22079
|
+
src: (b = e.option) == null ? void 0 : b.image,
|
22080
22080
|
class: "AVSummaryOption--img",
|
22081
22081
|
alt: B(t)("js.components.AVSummaryOption.aria_label.option_image")
|
22082
22082
|
}, null, 8, gU)) : O("", !0),
|
@@ -22092,11 +22092,11 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22092
22092
|
]))
|
22093
22093
|
], 2),
|
22094
22094
|
s.value ? (p(), H("div", CU, [
|
22095
|
-
(p(!0), H(
|
22096
|
-
key:
|
22095
|
+
(p(!0), H(t2, null, g2(f.value, (N) => (p(), H("div", {
|
22096
|
+
key: N.toString(),
|
22097
22097
|
class: "AVSummaryOption--group"
|
22098
22098
|
}, [
|
22099
|
-
(p(!0), H(
|
22099
|
+
(p(!0), H(t2, null, g2(N, (V) => {
|
22100
22100
|
var g;
|
22101
22101
|
return p(), K(d, {
|
22102
22102
|
key: V,
|
@@ -22206,7 +22206,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22206
22206
|
var j;
|
22207
22207
|
return ((j = a.option.description) == null ? void 0 : j[i.value]) ?? "";
|
22208
22208
|
}
|
22209
|
-
),
|
22209
|
+
), b = E(() => {
|
22210
22210
|
var j;
|
22211
22211
|
return ((j = a.option.url) == null ? void 0 : j[i.value]) ?? "";
|
22212
22212
|
}), L = E(
|
@@ -22214,12 +22214,12 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22214
22214
|
var j;
|
22215
22215
|
return ((j = a.option.videoUrl) == null ? void 0 : j[i.value]) ?? "";
|
22216
22216
|
}
|
22217
|
-
),
|
22217
|
+
), N = E(() => a.option.image), g = e2(function() {
|
22218
22218
|
return a.option.randomizeChildren ? a.option.children.slice().sort(() => Math.random() - 0.5) : a.option.children;
|
22219
22219
|
}()), _ = E(() => {
|
22220
22220
|
let j = [];
|
22221
|
-
return
|
22222
|
-
url:
|
22221
|
+
return b.value && j.push({
|
22222
|
+
url: b.value,
|
22223
22223
|
text: n("js.components.AVOption.info_link_text_html")
|
22224
22224
|
}), L.value && j.push({
|
22225
22225
|
url: L.value,
|
@@ -22227,23 +22227,23 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22227
22227
|
}), j;
|
22228
22228
|
}), M = E(
|
22229
22229
|
() => a.option.children && a.option.children.length > 0
|
22230
|
-
),
|
22231
|
-
const j = Array.from(Array(
|
22230
|
+
), x = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : C.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), w = E(() => a.selections.length > 0 ? W(a.option.children) : 0), C = E(() => a.option.exclusive), y = E(() => {
|
22231
|
+
const j = Array.from(Array(x.value).keys());
|
22232
22232
|
j.forEach((h2) => j[h2] = h2 + 1);
|
22233
|
-
const
|
22234
|
-
return
|
22235
|
-
}),
|
22233
|
+
const r2 = j.indexOf(Math.ceil(x.value / 2)) + 1, l2 = j.slice(0, r2), a2 = j.slice(r2);
|
22234
|
+
return a2.length ? [l2, a2] : [l2];
|
22235
|
+
}), A = E(() => a.partialResults ? a.partialResults[a.option.reference] : null), F = (j, r2 = 1) => {
|
22236
22236
|
c("checked", {
|
22237
22237
|
reference: j,
|
22238
|
-
amount:
|
22238
|
+
amount: r2
|
22239
22239
|
});
|
22240
22240
|
}, W = (j) => {
|
22241
22241
|
if (!j)
|
22242
22242
|
return 0;
|
22243
|
-
let
|
22244
|
-
(
|
22243
|
+
let r2 = j.filter(
|
22244
|
+
(l2) => a.selections.map((a2) => a2.reference).includes(l2.reference)
|
22245
22245
|
).length;
|
22246
|
-
return j.reduce((
|
22246
|
+
return j.reduce((l2, a2) => l2 + W(a2.children), r2);
|
22247
22247
|
}, R = (j) => {
|
22248
22248
|
r.value = !1, j === a.option.reference && (c("accordion-open"), VI(() => {
|
22249
22249
|
r.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
|
@@ -22252,11 +22252,11 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22252
22252
|
return s2(
|
22253
22253
|
() => s.value.get("highlight-option"),
|
22254
22254
|
(j) => {
|
22255
|
-
const [
|
22256
|
-
R(
|
22255
|
+
const [r2] = j ?? [];
|
22256
|
+
R(r2);
|
22257
22257
|
}
|
22258
|
-
), (j,
|
22259
|
-
const
|
22258
|
+
), (j, r2) => {
|
22259
|
+
const l2 = D("AVIcon"), a2 = D("AVOptionCheckbox"), h2 = D("AVOption", !0), F2 = D("AVCollapser");
|
22260
22260
|
return p(), H("div", {
|
22261
22261
|
class: Y({
|
22262
22262
|
"AVOption--background": !0,
|
@@ -22272,7 +22272,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22272
22272
|
I(F2, {
|
22273
22273
|
collapsable: e.contest.collapsable && M.value,
|
22274
22274
|
"start-collapsed": e.contest.collapseDefault && !e.observerMode,
|
22275
|
-
onAccordionOpen:
|
22275
|
+
onAccordionOpen: r2[1] || (r2[1] = (b2) => c("accordion-open"))
|
22276
22276
|
}, hI({
|
22277
22277
|
toggle: i2(({ isOpen: b2, collapsable: v2 }) => [
|
22278
22278
|
u("section", {
|
@@ -22290,15 +22290,15 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22290
22290
|
}, [
|
22291
22291
|
u("div", {
|
22292
22292
|
class: Y(["AVOption--container", {
|
22293
|
-
"AVOption--container-column":
|
22294
|
-
"AVOption--container-row":
|
22293
|
+
"AVOption--container-column": x.value > 1,
|
22294
|
+
"AVOption--container-row": x.value <= 5
|
22295
22295
|
}])
|
22296
22296
|
}, [
|
22297
22297
|
u("div", AU, [
|
22298
22298
|
u("header", NU, [
|
22299
|
-
|
22299
|
+
N.value ? (p(), H("img", {
|
22300
22300
|
key: 0,
|
22301
|
-
src:
|
22301
|
+
src: N.value,
|
22302
22302
|
alt: B(n)("js.components.AVOption.aria_labels.option_image"),
|
22303
22303
|
class: "AVOption-image"
|
22304
22304
|
}, null, 8, xU)) : O("", !0),
|
@@ -22312,7 +22312,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22312
22312
|
u("p", { innerHTML: h.value }, null, 8, TU)
|
22313
22313
|
])) : O("", !0),
|
22314
22314
|
_.value.length > 0 ? (p(), H("div", IU, [
|
22315
|
-
(p(!0), H(
|
22315
|
+
(p(!0), H(t2, null, g2(_.value, (A2) => (p(), H("a", {
|
22316
22316
|
key: A2.toString(),
|
22317
22317
|
href: A2.url,
|
22318
22318
|
class: "AVOption--links",
|
@@ -22325,7 +22325,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22325
22325
|
class: "AVOption--expander-container",
|
22326
22326
|
"aria-hidden": "true"
|
22327
22327
|
}, [
|
22328
|
-
I(
|
22328
|
+
I(l2, {
|
22329
22329
|
icon: b2 ? "chevron-down" : f.value ? "chevron-left" : "chevron-right",
|
22330
22330
|
class: "AVOption--expander-icon"
|
22331
22331
|
}, null, 8, ["icon"]),
|
@@ -22334,7 +22334,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22334
22334
|
innerHTML: b2 ? B(n)("js.components.AVOption.collapse_text") : B(n)("js.components.AVOption.expand_text")
|
22335
22335
|
}, null, 8, PU)
|
22336
22336
|
], 8, OU),
|
22337
|
-
|
22337
|
+
w.value && !b2 ? (p(), H("span", {
|
22338
22338
|
key: 0,
|
22339
22339
|
class: Y(["AVOption--suboption-badge", {
|
22340
22340
|
"AVOption--suboption-badge-danger": e.invalid,
|
@@ -22342,26 +22342,26 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22342
22342
|
}])
|
22343
22343
|
}, k(f.value ? `${B(n)(
|
22344
22344
|
"js.components.AVOption.sub_options_select"
|
22345
|
-
)} ${
|
22345
|
+
)} ${w.value}` : `${w.value} ${B(n)(
|
22346
22346
|
"js.components.AVOption.sub_options_select"
|
22347
22347
|
)}`), 3)) : O("", !0)
|
22348
22348
|
])) : O("", !0)
|
22349
22349
|
])) : O("", !0)
|
22350
22350
|
]),
|
22351
|
-
|
22351
|
+
x.value >= 1 ? (p(), H("div", {
|
22352
22352
|
key: 0,
|
22353
22353
|
class: Y({
|
22354
|
-
"AVOption--multivote-aside":
|
22355
|
-
"AVOption--multivote-footer":
|
22356
|
-
"AVOption--singlevote":
|
22354
|
+
"AVOption--multivote-aside": x.value <= 5,
|
22355
|
+
"AVOption--multivote-footer": x.value > 5,
|
22356
|
+
"AVOption--singlevote": x.value === 1
|
22357
22357
|
}),
|
22358
|
-
style: l1(`background-color: ${
|
22358
|
+
style: l1(`background-color: ${x.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
|
22359
22359
|
}, [
|
22360
|
-
(p(!0), H(
|
22360
|
+
(p(!0), H(t2, null, g2(y.value, (A2) => (p(), H("div", {
|
22361
22361
|
key: A2.toString(),
|
22362
22362
|
class: "AVOption--group"
|
22363
22363
|
}, [
|
22364
|
-
(p(!0), H(
|
22364
|
+
(p(!0), H(t2, null, g2(A2, (k2) => (p(), K(a2, {
|
22365
22365
|
key: k2,
|
22366
22366
|
checked: m.value >= k2,
|
22367
22367
|
rank: o.value ? e.selections.map((C2) => C2.reference).indexOf(e.option.reference) + 1 : null,
|
@@ -22370,19 +22370,19 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22370
22370
|
"option-reference": e.option.reference,
|
22371
22371
|
"check-box-index": k2,
|
22372
22372
|
disabled: e.disabled || e.observerMode,
|
22373
|
-
onToggled: (C2) =>
|
22373
|
+
onToggled: (C2) => F(e.option.reference, k2)
|
22374
22374
|
}, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
22375
22375
|
]))), 128))
|
22376
22376
|
], 6)) : O("", !0),
|
22377
|
-
|
22378
|
-
I(
|
22377
|
+
A.value && (e.observerMode || e.disabled) ? (p(), H("div", BU, [
|
22378
|
+
I(l2, {
|
22379
22379
|
icon: "user",
|
22380
22380
|
class: "AVOption--realtime-results-icon"
|
22381
22381
|
}),
|
22382
|
-
u("span", null, k(f.value ? `${
|
22383
|
-
|
22382
|
+
u("span", null, k(f.value ? `${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")} ${A.value.results.count}` : `${A.value.results.count} ${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")}`), 1),
|
22383
|
+
A.value.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22384
22384
|
jU,
|
22385
|
-
u("span", null, k(`${
|
22385
|
+
u("span", null, k(`${A.value.results.percentage}%`), 1)
|
22386
22386
|
], 64)) : O("", !0)
|
22387
22387
|
])) : O("", !0)
|
22388
22388
|
], 2)
|
@@ -22390,7 +22390,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22390
22390
|
]),
|
22391
22391
|
pane: i2(({ toggleCollapse: b2 }) => [
|
22392
22392
|
M.value ? (p(), H("div", $U, [
|
22393
|
-
(p(!0), H(
|
22393
|
+
(p(!0), H(t2, null, g2(g.value, (v2) => (p(), K(h2, {
|
22394
22394
|
key: v2.reference,
|
22395
22395
|
option: v2,
|
22396
22396
|
selections: e.selections,
|
@@ -22400,25 +22400,25 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22400
22400
|
"observer-mode": e.observerMode,
|
22401
22401
|
"partial-results": e.partialResults,
|
22402
22402
|
"exclusive-error": v2.exclusive && e.exclusiveError,
|
22403
|
-
onChecked:
|
22403
|
+
onChecked: r2[0] || (r2[0] = (A2) => c("checked", A2)),
|
22404
22404
|
onAccordionOpen: () => b2(!0, !1)
|
22405
22405
|
}, null, 8, ["option", "selections", "contest", "invalid", "disabled", "observer-mode", "partial-results", "exclusive-error", "onAccordionOpen"]))), 128))
|
22406
22406
|
])) : O("", !0)
|
22407
22407
|
]),
|
22408
22408
|
_: 2
|
22409
22409
|
}, [
|
22410
|
-
!e.disabled &&
|
22410
|
+
!e.disabled && A.value && !e.observerMode ? {
|
22411
22411
|
name: "results",
|
22412
22412
|
fn: i2(() => [
|
22413
22413
|
u("div", FU, [
|
22414
|
-
I(
|
22414
|
+
I(l2, {
|
22415
22415
|
icon: "user",
|
22416
22416
|
class: "AVOption--realtime-results-icon"
|
22417
22417
|
}),
|
22418
|
-
u("span", null, k(f.value ? `${
|
22419
|
-
|
22418
|
+
u("span", null, k(f.value ? `${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")} ${A.value.results.count}` : `${A.value.results.count} ${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")}`), 1),
|
22419
|
+
A.value.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22420
22420
|
RU,
|
22421
|
-
u("span", null, k(`${
|
22421
|
+
u("span", null, k(`${A.value.results.percentage}%`), 1)
|
22422
22422
|
], 64)) : O("", !0)
|
22423
22423
|
])
|
22424
22424
|
]),
|
@@ -22523,7 +22523,7 @@ const qU = /* @__PURE__ */ X(UU, [["__scopeId", "data-v-58afc370"]]), aI = (e) =
|
|
22523
22523
|
class: "AVBlankOption--realtime-results-icon"
|
22524
22524
|
}),
|
22525
22525
|
u("span", null, k(n.value ? `${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
22526
|
-
e.partialResults.showPercentage ? (p(), H(
|
22526
|
+
e.partialResults.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22527
22527
|
KU,
|
22528
22528
|
u("span", null, k(`${e.partialResults.results.percentage}%`), 1)
|
22529
22529
|
], 64)) : O("", !0)
|
@@ -22536,7 +22536,7 @@ const qU = /* @__PURE__ */ X(UU, [["__scopeId", "data-v-58afc370"]]), aI = (e) =
|
|
22536
22536
|
class: "AVBlankOption--realtime-results-icon"
|
22537
22537
|
}),
|
22538
22538
|
u("span", null, k(n.value ? `${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
22539
|
-
e.partialResults.showPercentage ? (p(), H(
|
22539
|
+
e.partialResults.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22540
22540
|
JU,
|
22541
22541
|
u("span", null, k(`${e.partialResults.results.percentage}%`), 1)
|
22542
22542
|
], 64)) : O("", !0)
|
@@ -22624,7 +22624,7 @@ const cq = /* @__PURE__ */ X(eq, [["__scopeId", "data-v-9e7849c2"]]), aq = ["ari
|
|
22624
22624
|
onInput: f[0] || (f[0] = (m) => s(m.target.value))
|
22625
22625
|
}, [
|
22626
22626
|
u("option", lq, k(B(n)("js.components.AVWriteInOption.choose_party")), 1),
|
22627
|
-
(p(!0), H(
|
22627
|
+
(p(!0), H(t2, null, g2(e.parties, (m) => (p(), H("option", {
|
22628
22628
|
key: m.letter,
|
22629
22629
|
value: m.letter,
|
22630
22630
|
selected: m.letter === e.partyValue
|
@@ -22651,7 +22651,7 @@ const cq = /* @__PURE__ */ X(eq, [["__scopeId", "data-v-9e7849c2"]]), aq = ["ari
|
|
22651
22651
|
};
|
22652
22652
|
}
|
22653
22653
|
});
|
22654
|
-
const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) => (V1("data-v-
|
22654
|
+
const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) => (V1("data-v-8e5ffaeb"), e = e(), z1(), e), vq = { class: "AVSubmissionHelper" }, pq = { key: 1 }, hq = ["textContent"], Vq = /* @__PURE__ */ dq(() => /* @__PURE__ */ u("hr", { class: "AVSubmissionHelper--separator" }, null, -1)), zq = { key: 2 }, gq = { class: "AVSubmissionHelper--help" }, Hq = { key: 0 }, Mq = { key: 1 }, bq = ["innerHTML"], Cq = { key: 3 }, Lq = /* @__PURE__ */ Q({
|
22655
22655
|
__name: "AVSubmissionHelper",
|
22656
22656
|
props: {
|
22657
22657
|
minMarks: {
|
@@ -22711,7 +22711,7 @@ const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) =
|
|
22711
22711
|
})
|
22712
22712
|
}, k(B(t)("js.components.AVSubmissionHelper.your_vote_weight", { weight: e.weight })), 3)) : O("", !0),
|
22713
22713
|
e.errors.length > 0 ? (p(), H("div", pq, [
|
22714
|
-
(p(!0), H(
|
22714
|
+
(p(!0), H(t2, null, g2(i.value, (l) => (p(), H("div", {
|
22715
22715
|
key: l,
|
22716
22716
|
role: "alert",
|
22717
22717
|
textContent: k(l)
|
@@ -22744,7 +22744,7 @@ const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) =
|
|
22744
22744
|
]));
|
22745
22745
|
}
|
22746
22746
|
});
|
22747
|
-
const _q = /* @__PURE__ */ X(Lq, [["__scopeId", "data-v-
|
22747
|
+
const _q = /* @__PURE__ */ X(Lq, [["__scopeId", "data-v-8e5ffaeb"]]);
|
22748
22748
|
function yq(e, c, a) {
|
22749
22749
|
if (typeof a != "function")
|
22750
22750
|
throw new Error("search_by must be a function that returns a string");
|
@@ -22814,7 +22814,7 @@ const Aq = ["aria-label"], Nq = { class: "AVSearchBallot--form-group" }, xq = ["
|
|
22814
22814
|
u("div", kq, [
|
22815
22815
|
T1(u("input", {
|
22816
22816
|
id: "ballot_search",
|
22817
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
22817
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => s.value = b),
|
22818
22818
|
type: "search",
|
22819
22819
|
class: "AVSearchBallot--form-control",
|
22820
22820
|
placeholder: B(t)("js.components.AVSearchBallot.enter_option_name")
|
@@ -22824,28 +22824,28 @@ const Aq = ["aria-label"], Nq = { class: "AVSearchBallot--form-group" }, xq = ["
|
|
22824
22824
|
])
|
22825
22825
|
]),
|
22826
22826
|
u("div", wq, [
|
22827
|
-
(p(!0), H(
|
22828
|
-
key:
|
22829
|
-
"aria-label":
|
22827
|
+
(p(!0), H(t2, null, g2(r.value, (b) => (p(), H("div", {
|
22828
|
+
key: b,
|
22829
|
+
"aria-label": b.title[n.value]
|
22830
22830
|
}, [
|
22831
|
-
l(
|
22831
|
+
l(b).length > 0 ? (p(), H("div", Iq, [
|
22832
22832
|
u("ul", Eq, [
|
22833
|
-
(p(!0), H(
|
22833
|
+
(p(!0), H(t2, null, g2(l(b), (L) => (p(), H("li", {
|
22834
22834
|
key: L.reference,
|
22835
22835
|
class: "AVSeachOptionBallot--breadcrumb-item"
|
22836
22836
|
}, k(L.title[n.value]), 1))), 128))
|
22837
22837
|
])
|
22838
22838
|
])) : O("", !0),
|
22839
22839
|
u("div", {
|
22840
|
-
id: `search_result_${
|
22840
|
+
id: `search_result_${b.reference}`,
|
22841
22841
|
class: "AVSearchBallot--option",
|
22842
22842
|
role: "button",
|
22843
22843
|
"aria-label": B(t)("js.components.AVSearchBallot.aria_labels.go_to_option"),
|
22844
|
-
onClick: S1((L) => m(
|
22844
|
+
onClick: S1((L) => m(b), ["prevent"])
|
22845
22845
|
}, [
|
22846
22846
|
u("span", {
|
22847
22847
|
class: "AVSearchBallot--link",
|
22848
|
-
textContent: k(
|
22848
|
+
textContent: k(b.title[n.value])
|
22849
22849
|
}, null, 8, Oq)
|
22850
22850
|
], 8, Dq)
|
22851
22851
|
], 8, Tq))), 128)),
|
@@ -23211,7 +23211,7 @@ var _W = (
|
|
23211
23211
|
}, e;
|
23212
23212
|
}()
|
23213
23213
|
), yW = nI.default = _W;
|
23214
|
-
const AW = (e) => (V1("data-v-
|
23214
|
+
const AW = (e) => (V1("data-v-a4b04023"), e = e(), z1(), e), NW = ["aria-label", "aria-describedby"], xW = ["id"], kW = /* @__PURE__ */ AW(() => /* @__PURE__ */ u("hr", { class: "AVBallot--separator" }, null, -1)), SW = ["aria-label"], wW = /* @__PURE__ */ Q({
|
23215
23215
|
__name: "AVBallot",
|
23216
23216
|
props: {
|
23217
23217
|
contest: {
|
@@ -23261,80 +23261,82 @@ const AW = (e) => (V1("data-v-e1b812cc"), e = e(), z1(), e), NW = ["aria-label",
|
|
23261
23261
|
},
|
23262
23262
|
{ deep: !0 }
|
23263
23263
|
);
|
23264
|
-
const s = e2(!1), r = e2(""), l = e2(""), f = e2(null), o = E(() => a.selectionPile.optionSelections), m = E(() => new tI(a.contest)), d = E(
|
23265
|
-
|
23266
|
-
|
23267
|
-
|
23268
|
-
|
23269
|
-
|
23270
|
-
|
23271
|
-
|
23264
|
+
const s = e2(!1), r = e2(""), l = e2(""), f = e2(null), o = E(() => a.selectionPile.optionSelections), m = E(() => new tI(a.contest)), d = E(
|
23265
|
+
() => a.contest.disregardVoterWeight ? null : a.weight
|
23266
|
+
), h = E(() => {
|
23267
|
+
var A;
|
23268
|
+
let y = [];
|
23269
|
+
return (A = a.contest.customRulesets) != null && A.includes("belgian_ballot_rules") && y.push(new yW(a.contest)), y;
|
23270
|
+
}), b = E(() => {
|
23271
|
+
let y = [];
|
23272
|
+
h.value.forEach((F) => {
|
23273
|
+
y.push(...F.validate(a.selectionPile));
|
23272
23274
|
});
|
23273
|
-
const
|
23275
|
+
const A = [
|
23274
23276
|
...m.value.validate(a.selectionPile),
|
23275
|
-
...
|
23277
|
+
...y
|
23276
23278
|
];
|
23277
|
-
if (
|
23278
|
-
|
23279
|
-
|
23279
|
+
if (V.value && A.includes("cross_party_voting")) {
|
23280
|
+
let F;
|
23281
|
+
A.includes("exclusive") && (F = A.indexOf("exclusive"), A.splice(F, 1)), A.includes("blank") && (F = A.indexOf("cross_party_voting"), A.splice(F, 1));
|
23280
23282
|
}
|
23281
|
-
return c("update:errors",
|
23282
|
-
}),
|
23283
|
-
var
|
23284
|
-
return (
|
23285
|
-
}),
|
23283
|
+
return c("update:errors", A), A;
|
23284
|
+
}), L = E(() => b.value.length === 0), N = E(() => {
|
23285
|
+
var y;
|
23286
|
+
return (y = a.contest.question) == null ? void 0 : y[i.value];
|
23287
|
+
}), V = E(
|
23286
23288
|
() => {
|
23287
|
-
var
|
23288
|
-
return (
|
23289
|
+
var y;
|
23290
|
+
return (y = a.contest.customRulesets) == null ? void 0 : y.includes("belgian_ballot_rules");
|
23289
23291
|
}
|
23290
|
-
),
|
23291
|
-
(
|
23292
|
-
)),
|
23293
|
-
s2(
|
23294
|
-
var
|
23295
|
-
|
23292
|
+
), g = E(() => a.contest.randomizeOptions ? a.contest.options.slice().sort(() => Math.random() - 0.5) : a.contest.options), _ = E(() => C(a.contest.options).some(
|
23293
|
+
(y) => y.exclusive
|
23294
|
+
)), M = E(() => a.contest);
|
23295
|
+
s2(M, (y, A) => {
|
23296
|
+
var F;
|
23297
|
+
A && y && y.reference !== A.reference && ((F = document.getElementById("content")) == null || F.focus(), A.searchForm && (f.value.value = ""));
|
23296
23298
|
});
|
23297
|
-
const
|
23299
|
+
const x = () => {
|
23298
23300
|
c("update:selectionPile", {
|
23299
23301
|
...a.selectionPile,
|
23300
23302
|
explicitBlank: !a.selectionPile.explicitBlank
|
23301
23303
|
});
|
23302
|
-
},
|
23303
|
-
const
|
23304
|
-
(
|
23304
|
+
}, w = ({ reference: y, amount: A }) => {
|
23305
|
+
const F = o.value.filter(
|
23306
|
+
(R) => R.reference === y
|
23305
23307
|
).length;
|
23306
|
-
|
23307
|
-
const
|
23308
|
-
(
|
23308
|
+
A === F && (A = A - 1);
|
23309
|
+
const W = o.value.filter(
|
23310
|
+
(R) => R.reference !== y
|
23309
23311
|
);
|
23310
|
-
for (let
|
23311
|
-
|
23312
|
+
for (let R = 0; R < A; R++)
|
23313
|
+
W.push({ reference: y });
|
23312
23314
|
c("update:selectionPile", {
|
23313
23315
|
...a.selectionPile,
|
23314
|
-
optionSelections:
|
23316
|
+
optionSelections: W
|
23315
23317
|
});
|
23316
|
-
},
|
23317
|
-
return (
|
23318
|
-
const
|
23318
|
+
}, C = (y, A) => y.flatMap((F) => (A && (F.parentContent = A), F.children ? [F, ...C(F.children, F)] : [F]));
|
23319
|
+
return (y, A) => {
|
23320
|
+
const F = D("AVSearchBallot"), W = D("AVWriteInOption"), R = D("AVOption"), j = D("AVBlankOption"), r2 = D("AVSubmissionHelper");
|
23319
23321
|
return p(), H("div", {
|
23320
23322
|
class: Y({
|
23321
23323
|
AVBallot: !0,
|
23322
|
-
"AVBallot--error": !
|
23324
|
+
"AVBallot--error": !L.value
|
23323
23325
|
}),
|
23324
23326
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot"),
|
23325
23327
|
"aria-describedby": `ballot_${e.contest.reference}`
|
23326
23328
|
}, [
|
23327
|
-
|
23329
|
+
N.value ? (p(), H("h5", {
|
23328
23330
|
key: 0,
|
23329
23331
|
id: `ballot_${e.contest.reference}_question`,
|
23330
23332
|
class: "AVBallot--question",
|
23331
23333
|
"aria-live": "polite"
|
23332
|
-
}, k(
|
23333
|
-
e.contest.searchForm && !e.disabled && !e.observerMode ? (p(), K(
|
23334
|
+
}, k(N.value), 9, xW)) : O("", !0),
|
23335
|
+
e.contest.searchForm && !e.disabled && !e.observerMode ? (p(), K(F, {
|
23334
23336
|
key: 1,
|
23335
23337
|
ref_key: "search",
|
23336
23338
|
ref: f,
|
23337
|
-
options:
|
23339
|
+
options: C(g.value),
|
23338
23340
|
"options-container-id": "ballot_options"
|
23339
23341
|
}, null, 8, ["options"])) : O("", !0),
|
23340
23342
|
kW,
|
@@ -23342,67 +23344,67 @@ const AW = (e) => (V1("data-v-e1b812cc"), e = e(), z1(), e), NW = ["aria-label",
|
|
23342
23344
|
id: "ballot_options",
|
23343
23345
|
class: Y({
|
23344
23346
|
"AVBallot--options": !0,
|
23345
|
-
"AVBallot--options-with-list":
|
23346
|
-
(
|
23347
|
+
"AVBallot--options-with-list": g.value.some(
|
23348
|
+
(l2) => l2.children
|
23347
23349
|
)
|
23348
23350
|
}),
|
23349
23351
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot_options")
|
23350
23352
|
}, [
|
23351
|
-
(p(!0), H(
|
23352
|
-
key:
|
23353
|
+
(p(!0), H(t2, null, g2(g.value, (l2) => (p(), H(t2, {
|
23354
|
+
key: l2.reference
|
23353
23355
|
}, [
|
23354
|
-
|
23356
|
+
l2.writeIn ? (p(), K(W, {
|
23355
23357
|
key: 0,
|
23356
23358
|
"candidate-value": l.value,
|
23357
|
-
"onUpdate:candidateValue":
|
23359
|
+
"onUpdate:candidateValue": A[0] || (A[0] = (a2) => l.value = a2),
|
23358
23360
|
"party-value": r.value,
|
23359
|
-
"onUpdate:partyValue":
|
23361
|
+
"onUpdate:partyValue": A[1] || (A[1] = (a2) => r.value = a2),
|
23360
23362
|
"checked-value": s.value,
|
23361
|
-
"onUpdate:checkedValue":
|
23363
|
+
"onUpdate:checkedValue": A[2] || (A[2] = (a2) => s.value = a2),
|
23362
23364
|
parties: [],
|
23363
23365
|
disabled: e.disabled,
|
23364
23366
|
observerMode: e.observerMode
|
23365
|
-
}, null, 8, ["candidate-value", "party-value", "checked-value", "parties", "disabled", "observerMode"])) : (p(), K(
|
23367
|
+
}, null, 8, ["candidate-value", "party-value", "checked-value", "parties", "disabled", "observerMode"])) : (p(), K(R, {
|
23366
23368
|
key: 1,
|
23367
23369
|
selections: o.value,
|
23368
|
-
option:
|
23369
|
-
invalid: !
|
23370
|
-
"exclusive-error": !
|
23370
|
+
option: l2,
|
23371
|
+
invalid: !L.value,
|
23372
|
+
"exclusive-error": !V.value && l2.exclusive && b.value.includes("exclusive"),
|
23371
23373
|
contest: e.contest,
|
23372
23374
|
disabled: e.disabled,
|
23373
23375
|
observerMode: e.observerMode,
|
23374
23376
|
"partial-results": e.partialResults,
|
23375
|
-
onChecked:
|
23377
|
+
onChecked: w
|
23376
23378
|
}, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results"]))
|
23377
23379
|
], 64))), 128)),
|
23378
|
-
e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(
|
23380
|
+
e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(j, {
|
23379
23381
|
key: 0,
|
23380
23382
|
checked: e.selectionPile.explicitBlank,
|
23381
|
-
error: !
|
23383
|
+
error: !V.value && b.value.includes("blank"),
|
23382
23384
|
disabled: e.disabled,
|
23383
|
-
invalid: !
|
23385
|
+
invalid: !L.value,
|
23384
23386
|
observerMode: e.observerMode,
|
23385
23387
|
accentColor: e.contest.blankOptionColor,
|
23386
23388
|
"partial-results": e.partialResults ? e.partialResults.blank : null,
|
23387
|
-
onToggleBlank:
|
23389
|
+
onToggleBlank: x
|
23388
23390
|
}, null, 8, ["checked", "error", "disabled", "invalid", "observerMode", "accentColor", "partial-results"])) : O("", !0)
|
23389
23391
|
], 10, SW),
|
23390
|
-
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), K(
|
23392
|
+
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), K(r2, {
|
23391
23393
|
key: 2,
|
23392
23394
|
id: `ballot_${e.contest.reference}`,
|
23393
23395
|
"chosen-count": o.value.length,
|
23394
|
-
errors:
|
23395
|
-
weight:
|
23396
|
+
errors: b.value,
|
23397
|
+
weight: d.value,
|
23396
23398
|
"min-marks": e.contest.markingType.minMarks,
|
23397
23399
|
"max-marks": e.contest.markingType.maxMarks,
|
23398
|
-
"has-exclusive-options":
|
23400
|
+
"has-exclusive-options": _.value,
|
23399
23401
|
class: "AVBallot--helper"
|
23400
23402
|
}, null, 8, ["id", "chosen-count", "errors", "weight", "min-marks", "max-marks", "has-exclusive-options"])) : O("", !0)
|
23401
23403
|
], 10, NW);
|
23402
23404
|
};
|
23403
23405
|
}
|
23404
23406
|
});
|
23405
|
-
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-
|
23407
|
+
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-a4b04023"]]), IW = (e) => (V1("data-v-b3274830"), e = e(), z1(), e), EW = {
|
23406
23408
|
key: 0,
|
23407
23409
|
class: "AVPileSummary--summary"
|
23408
23410
|
}, DW = {
|
@@ -23470,18 +23472,18 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-e1b812cc"]]), IW = (e) =
|
|
23470
23472
|
const s = e2(!1), r = e2([]), l = E(() => a.selectionPile.optionSelections.length === 0), f = E(() => !a.maximumOptionsShown || s.value ? a.selectionPile.optionSelections : a.selectionPile.optionSelections.slice(
|
23471
23473
|
0,
|
23472
23474
|
a.maximumOptionsShown
|
23473
|
-
)), o = E(() => a.selectionPile.optionSelections.length - f.value.length), m = (
|
23474
|
-
L && (
|
23475
|
-
(
|
23475
|
+
)), o = E(() => a.selectionPile.optionSelections.length - f.value.length), m = (b, L) => {
|
23476
|
+
L && (b.parentContent = L), b.selectable && r.value.push(b), b.children && b.children.map(
|
23477
|
+
(N) => m(N, b)
|
23476
23478
|
);
|
23477
|
-
}, d = (
|
23478
|
-
const
|
23479
|
+
}, d = (b, L) => b && b.parentContent ? (L.push(b.parentContent), d(b.parentContent, L)) : L, h = E(() => {
|
23480
|
+
const b = {
|
23479
23481
|
options: [],
|
23480
23482
|
writeIns: []
|
23481
23483
|
};
|
23482
23484
|
return f.value.forEach((L) => {
|
23483
23485
|
if (L.text)
|
23484
|
-
|
23486
|
+
b.writeIns.push({
|
23485
23487
|
partyLetter: "?",
|
23486
23488
|
// TODO: Figure out how this party stuff is supposed to work
|
23487
23489
|
partyName: "?",
|
@@ -23489,27 +23491,27 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-e1b812cc"]]), IW = (e) =
|
|
23489
23491
|
candidateName: L.text
|
23490
23492
|
});
|
23491
23493
|
else {
|
23492
|
-
const
|
23494
|
+
const N = b.options.find(
|
23493
23495
|
(g) => g.handle === L.reference
|
23494
23496
|
);
|
23495
23497
|
a.contest.options.map((g) => m(g));
|
23496
23498
|
const V = r.value.find(
|
23497
23499
|
(g) => g.reference === L.reference
|
23498
23500
|
);
|
23499
|
-
|
23501
|
+
N ? N.crosses += 1 : b.options.push({
|
23500
23502
|
title: V.title[i.value],
|
23501
23503
|
handle: L.reference,
|
23502
23504
|
image: V.image,
|
23503
23505
|
crosses: 1,
|
23504
23506
|
parent: V.parentContent,
|
23505
|
-
rank: a.contest.markingType.voteVariation === "ranked" ?
|
23507
|
+
rank: a.contest.markingType.voteVariation === "ranked" ? b.options.length + 1 : null
|
23506
23508
|
});
|
23507
23509
|
}
|
23508
23510
|
r.value = [];
|
23509
|
-
}),
|
23511
|
+
}), b;
|
23510
23512
|
});
|
23511
|
-
return (
|
23512
|
-
const
|
23513
|
+
return (b, L) => {
|
23514
|
+
const N = D("AVSummaryOption"), V = D("AVIcon");
|
23513
23515
|
return e.activeState === "summary" ? (p(), H("div", EW, [
|
23514
23516
|
e.contest.markingType.maxPiles !== 1 ? (p(), H("header", DW, [
|
23515
23517
|
u("span", null, k(B(n)("js.components.AVPileSummary.selection")) + " " + k(e.pileIndex + 1) + " / " + k(e.totalPiles), 1),
|
@@ -23518,13 +23520,13 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-e1b812cc"]]), IW = (e) =
|
|
23518
23520
|
u("span", null, k(B(n)("js.components.AVPileSummary.selection")), 1)
|
23519
23521
|
])),
|
23520
23522
|
u("div", BW, [
|
23521
|
-
(p(!0), H(
|
23523
|
+
(p(!0), H(t2, null, g2(h.value.options, (g, _) => (p(), K(N, {
|
23522
23524
|
key: _,
|
23523
23525
|
option: g,
|
23524
23526
|
"multiple-votes-allowed": e.contest.markingType.votesAllowedPerOption > 1,
|
23525
23527
|
parents: d(g.parent, g.parent ? [g.parent] : [])
|
23526
23528
|
}, null, 8, ["option", "multiple-votes-allowed", "parents"]))), 128)),
|
23527
|
-
l.value ? (p(), K(
|
23529
|
+
l.value ? (p(), K(N, {
|
23528
23530
|
key: 0,
|
23529
23531
|
blank: l.value
|
23530
23532
|
}, null, 8, ["blank"])) : O("", !0)
|
@@ -23545,11 +23547,11 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-e1b812cc"]]), IW = (e) =
|
|
23545
23547
|
], 8, RW),
|
23546
23548
|
u("div", qW, [
|
23547
23549
|
l.value ? (p(), H("p", WW, k(B(n)("js.components.AVPileSummary.blank")), 1)) : O("", !0),
|
23548
|
-
(p(!0), H(
|
23550
|
+
(p(!0), H(t2, null, g2(h.value.options, (g, _) => (p(), H("p", {
|
23549
23551
|
key: _,
|
23550
23552
|
class: "AVPileSummary--assign-text"
|
23551
23553
|
}, k(g.rank ? `${g.rank}: ` : "") + k(g.title), 1))), 128)),
|
23552
|
-
(p(!0), H(
|
23554
|
+
(p(!0), H(t2, null, g2(h.value.writeIns, (g, _) => (p(), H("p", {
|
23553
23555
|
key: _,
|
23554
23556
|
class: "AVPileSummary--assign-text"
|
23555
23557
|
}, [
|
@@ -23691,7 +23693,7 @@ const eG = {
|
|
23691
23693
|
), l = e2([]), f = E(() => e.contestSelection.piles), o = E(
|
23692
23694
|
() => {
|
23693
23695
|
var R;
|
23694
|
-
return (R = f.value) == null ? void 0 : R.reduce((j,
|
23696
|
+
return (R = f.value) == null ? void 0 : R.reduce((j, r2) => j - r2.multiplier, e.weight);
|
23695
23697
|
}
|
23696
23698
|
), m = E(
|
23697
23699
|
() => new tI(e.contest)
|
@@ -23702,19 +23704,19 @@ const eG = {
|
|
23702
23704
|
})
|
23703
23705
|
), h = E(() => o.value === 0 && l.value.length == 0 && f.value.every(
|
23704
23706
|
(R) => m.value.isComplete(R)
|
23705
|
-
)),
|
23707
|
+
)), b = E(
|
23706
23708
|
() => {
|
23707
23709
|
var R;
|
23708
|
-
return (R = f.value) == null ? void 0 : R.reduce((j,
|
23710
|
+
return (R = f.value) == null ? void 0 : R.reduce((j, r2) => j + r2.multiplier, 0);
|
23709
23711
|
}
|
23710
23712
|
), L = E(() => {
|
23711
23713
|
var R;
|
23712
23714
|
return (R = s.value) == null ? void 0 : R.multiplier;
|
23713
|
-
}),
|
23715
|
+
}), N = E(
|
23714
23716
|
() => f.value.filter((R, j) => j !== i.value).reduce((R, j) => R - j.multiplier, e.weight)
|
23715
23717
|
), V = E(
|
23716
23718
|
() => e.contest.markingType.maxPiles !== 1 && e.weight > 1
|
23717
|
-
), g = E(() => i.value !== null), _ = (R) => m.value.isComplete(R), M = (R) => m.value.validate(R).length > 0,
|
23719
|
+
), g = E(() => i.value !== null), _ = (R) => m.value.isComplete(R), M = (R) => m.value.validate(R).length > 0, x = () => {
|
23718
23720
|
if (V.value) {
|
23719
23721
|
const R = [...f.value];
|
23720
23722
|
i.value === null ? R.push({ ...s.value }) : R.splice(i.value, 1, {
|
@@ -23728,46 +23730,46 @@ const eG = {
|
|
23728
23730
|
...e.contestSelection,
|
23729
23731
|
piles: [s.value]
|
23730
23732
|
});
|
23731
|
-
},
|
23732
|
-
s.value = R, V.value ||
|
23733
|
-
},
|
23733
|
+
}, w = (R) => {
|
23734
|
+
s.value = R, V.value || x();
|
23735
|
+
}, C = () => {
|
23734
23736
|
s.value = {
|
23735
23737
|
optionSelections: [],
|
23736
|
-
multiplier:
|
23738
|
+
multiplier: N.value,
|
23737
23739
|
explicitBlank: !1
|
23738
23740
|
}, i.value = null, r.value = "ballot";
|
23739
23741
|
}, y = (R) => {
|
23740
23742
|
f.value.splice(R, 1);
|
23741
|
-
},
|
23743
|
+
}, A = (R) => {
|
23742
23744
|
s.value = { ...f.value[R] }, i.value = R, r.value = "ballot";
|
23743
|
-
},
|
23745
|
+
}, F = (R) => {
|
23744
23746
|
l.value = R;
|
23745
23747
|
};
|
23746
23748
|
return s2(h, (R) => c("update:complete", R)), s2(L, () => {
|
23747
23749
|
s.value && (s.value.multiplier = Math.max(
|
23748
23750
|
0,
|
23749
|
-
Math.min(L.value,
|
23751
|
+
Math.min(L.value, N.value)
|
23750
23752
|
));
|
23751
23753
|
}), s2(s, (R) => {
|
23752
23754
|
c("update:activePile", R);
|
23753
23755
|
}), s2(r, (R) => c("update:activeState", R)), M2(() => {
|
23754
|
-
e.locale && d2(e.locale), c("update:activePile", s.value), c("update:activeState", r.value), c("update:complete", h.value), V.value ||
|
23756
|
+
e.locale && d2(e.locale), c("update:activePile", s.value), c("update:activeState", r.value), c("update:complete", h.value), V.value || x();
|
23755
23757
|
}), (R, j) => {
|
23756
23758
|
var b2;
|
23757
|
-
const
|
23758
|
-
return p(), H(
|
23759
|
+
const r2 = D("AVSplitWizardHeader"), l2 = D("AVBallot"), a2 = D("AVPileSummary"), h2 = D("AVSplitWeightHelper"), F2 = D("AVIcon");
|
23760
|
+
return p(), H(t2, null, [
|
23759
23761
|
u("h3", eG, k(e.contest.title[n.value]), 1),
|
23760
23762
|
u("div", {
|
23761
23763
|
class: "AVSplitHelper--description",
|
23762
23764
|
innerHTML: (b2 = e.contest.description) == null ? void 0 : b2[n.value]
|
23763
23765
|
}, null, 8, cG),
|
23764
|
-
V.value ? (p(), H(
|
23765
|
-
["ballot", "assign", "overview"].includes(r.value) ? (p(), K(
|
23766
|
+
V.value ? (p(), H(t2, { key: 0 }, [
|
23767
|
+
["ballot", "assign", "overview"].includes(r.value) ? (p(), K(r2, {
|
23766
23768
|
key: 0,
|
23767
23769
|
"active-selection-pile-index": i.value,
|
23768
23770
|
"active-state": r.value,
|
23769
23771
|
"selection-piles": f.value,
|
23770
|
-
"total-weight":
|
23772
|
+
"total-weight": b.value + o.value,
|
23771
23773
|
"is-editing": g.value
|
23772
23774
|
}, null, 8, ["active-selection-pile-index", "active-state", "selection-piles", "total-weight", "is-editing"])) : O("", !0),
|
23773
23775
|
I(w1, {
|
@@ -23778,15 +23780,15 @@ const eG = {
|
|
23778
23780
|
var v2, A2, k2;
|
23779
23781
|
return [
|
23780
23782
|
s.value && r.value === "ballot" ? (p(), H("div", { key: i.value }, [
|
23781
|
-
I(
|
23783
|
+
I(l2, {
|
23782
23784
|
class: "AVSplitHelper--ballot",
|
23783
23785
|
"selection-pile": s.value,
|
23784
23786
|
"partial-results": e.partialResults,
|
23785
23787
|
contest: e.contest,
|
23786
23788
|
weight: e.weight,
|
23787
23789
|
"show-submission-helper": e.showSubmissionHelper,
|
23788
|
-
"onUpdate:selectionPile":
|
23789
|
-
"onUpdate:errors": j[0] || (j[0] = (C2) =>
|
23790
|
+
"onUpdate:selectionPile": w,
|
23791
|
+
"onUpdate:errors": j[0] || (j[0] = (C2) => F(C2))
|
23790
23792
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "show-submission-helper"]),
|
23791
23793
|
u("div", aG, [
|
23792
23794
|
u("div", tG, [
|
@@ -23808,7 +23810,7 @@ const eG = {
|
|
23808
23810
|
])) : r.value === "assign" ? (p(), H("div", sG, [
|
23809
23811
|
u("div", rG, [
|
23810
23812
|
u("h4", lG, k(B(t)("js.components.AVSplitHelper.assign.split_question")), 1),
|
23811
|
-
I(
|
23813
|
+
I(a2, {
|
23812
23814
|
"selection-pile": s.value,
|
23813
23815
|
contest: e.contest,
|
23814
23816
|
"maximum-options-shown": 3,
|
@@ -23829,13 +23831,13 @@ const eG = {
|
|
23829
23831
|
"onUpdate:modelValue": j[4] || (j[4] = (C2) => s.value.multiplier = C2),
|
23830
23832
|
class: "AVSplitHelper--assign-input",
|
23831
23833
|
type: "number",
|
23832
|
-
max:
|
23834
|
+
max: N.value
|
23833
23835
|
}, null, 8, fG), [
|
23834
23836
|
[li, s.value.multiplier]
|
23835
23837
|
])
|
23836
23838
|
]),
|
23837
23839
|
I(h2, {
|
23838
|
-
"assigned-weight":
|
23840
|
+
"assigned-weight": b.value,
|
23839
23841
|
"unused-weight": o.value,
|
23840
23842
|
"active-assigned": (v2 = f.value[i.value]) == null ? void 0 : v2.multiplier
|
23841
23843
|
}, null, 8, ["assigned-weight", "unused-weight", "active-assigned"]),
|
@@ -23851,8 +23853,8 @@ const eG = {
|
|
23851
23853
|
u("button", {
|
23852
23854
|
key: "confirm",
|
23853
23855
|
class: "AVSplitHelper--btn-primary",
|
23854
|
-
disabled: ((A2 = s.value) == null ? void 0 : A2.multiplier) < 1 || ((k2 = s.value) == null ? void 0 : k2.multiplier) >
|
23855
|
-
onClick: j[6] || (j[6] = (C2) =>
|
23856
|
+
disabled: ((A2 = s.value) == null ? void 0 : A2.multiplier) < 1 || ((k2 = s.value) == null ? void 0 : k2.multiplier) > N.value,
|
23857
|
+
onClick: j[6] || (j[6] = (C2) => x())
|
23856
23858
|
}, k(B(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, vG)
|
23857
23859
|
])
|
23858
23860
|
])
|
@@ -23872,17 +23874,17 @@ const eG = {
|
|
23872
23874
|
key: "newSelection",
|
23873
23875
|
class: "AVSplitHelper--overview-new-ballot-btn",
|
23874
23876
|
disabled: o.value === 0,
|
23875
|
-
onClick:
|
23877
|
+
onClick: C
|
23876
23878
|
}, [
|
23877
23879
|
I(F2, { icon: "file-circle-plus" }),
|
23878
23880
|
D2(" " + k(B(t)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
|
23879
23881
|
], 8, gG)
|
23880
23882
|
])),
|
23881
|
-
(p(!0), H(
|
23883
|
+
(p(!0), H(t2, null, g2(f.value, (C2, I2) => (p(), H("article", {
|
23882
23884
|
key: `preview-${I2}`,
|
23883
|
-
onClick: (j2) =>
|
23885
|
+
onClick: (j2) => A(I2)
|
23884
23886
|
}, [
|
23885
|
-
I(
|
23887
|
+
I(a2, {
|
23886
23888
|
"selection-pile": C2,
|
23887
23889
|
contest: e.contest,
|
23888
23890
|
"maximum-options-shown": 3,
|
@@ -23897,7 +23899,7 @@ const eG = {
|
|
23897
23899
|
}),
|
23898
23900
|
_: 1
|
23899
23901
|
})
|
23900
|
-
], 64)) : (p(), K(
|
23902
|
+
], 64)) : (p(), K(l2, {
|
23901
23903
|
key: 1,
|
23902
23904
|
class: "AVSplitHelper--no-split",
|
23903
23905
|
"selection-pile": s.value,
|
@@ -23905,8 +23907,8 @@ const eG = {
|
|
23905
23907
|
contest: e.contest,
|
23906
23908
|
weight: e.weight,
|
23907
23909
|
"show-submission-helper": e.showSubmissionHelper,
|
23908
|
-
"onUpdate:selectionPile":
|
23909
|
-
"onUpdate:errors": j[7] || (j[7] = (v2) =>
|
23910
|
+
"onUpdate:selectionPile": w,
|
23911
|
+
"onUpdate:errors": j[7] || (j[7] = (v2) => F(v2))
|
23910
23912
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "show-submission-helper"]))
|
23911
23913
|
], 64);
|
23912
23914
|
};
|
@@ -23948,7 +23950,7 @@ var CG = {}, LG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), _G = { clas
|
|
23948
23950
|
], -1);
|
23949
23951
|
function xG(e, c) {
|
23950
23952
|
var a = D("AVNavbarItem"), t = D("AVNavigationItemList"), n = D("AVMenuDropdown"), i = D("AVNavbar"), s = D("AVLabel"), r = D("AVTabSwitcher"), l = D("AVSidebarItem"), f = D("AVButton"), o = D("AVSidebar"), m = D("AVContent"), d = D("AVFooter");
|
23951
|
-
return p(), H(
|
23953
|
+
return p(), H(t2, null, [
|
23952
23954
|
I(i, null, {
|
23953
23955
|
default: i2(function() {
|
23954
23956
|
return [
|
@@ -24144,7 +24146,7 @@ var SG = {}, wG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), TG = { clas
|
|
24144
24146
|
], -1);
|
24145
24147
|
function PG(e, c) {
|
24146
24148
|
var a = D("AVNavbarItem"), t = D("AVNavigationItemList"), n = D("AVMenuDropdown"), i = D("AVNavbar"), s = D("AVLabel"), r = D("AVTabSwitcher"), l = D("AVSidebarItem"), f = D("AVButton"), o = D("AVSidebar"), m = D("AVContent"), d = D("AVFooter");
|
24147
|
-
return p(), H(
|
24149
|
+
return p(), H(t2, null, [
|
24148
24150
|
I(i, null, {
|
24149
24151
|
default: i2(function() {
|
24150
24152
|
return [
|
@@ -24281,7 +24283,7 @@ var jG = {}, FG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), RG = { clas
|
|
24281
24283
|
], -1);
|
24282
24284
|
function UG(e, c) {
|
24283
24285
|
var a = D("AVNavbarItem"), t = D("AVNavigationItemList"), n = D("AVMenuDropdown"), i = D("AVNavbar"), s = D("AVContent"), r = D("AVFooter");
|
24284
|
-
return p(), H(
|
24286
|
+
return p(), H(t2, null, [
|
24285
24287
|
I(i, null, {
|
24286
24288
|
default: i2(function() {
|
24287
24289
|
return [
|
@@ -24414,7 +24416,7 @@ const qG = /* @__PURE__ */ X(jG, [["render", UG]]), B6 = (e) => (V1("data-v-20fc
|
|
24414
24416
|
];
|
24415
24417
|
return (a, t) => {
|
24416
24418
|
const n = D("AVNavbarItem"), i = D("AVNavigationItemList"), s = D("AVMenuDropdown"), r = D("AVNavbar"), l = D("AVIcon"), f = D("AVCard"), o = D("AVElectionCard"), m = D("AVContent"), d = D("AVFooter");
|
24417
|
-
return p(), H(
|
24419
|
+
return p(), H(t2, null, [
|
24418
24420
|
I(r, null, {
|
24419
24421
|
default: i2(() => [
|
24420
24422
|
WG,
|
@@ -24484,7 +24486,7 @@ const qG = /* @__PURE__ */ X(jG, [["render", UG]]), B6 = (e) => (V1("data-v-20fc
|
|
24484
24486
|
ZG,
|
24485
24487
|
JG
|
24486
24488
|
])) : O("", !0),
|
24487
|
-
(p(), H(
|
24489
|
+
(p(), H(t2, null, g2(c, (h) => I(o, {
|
24488
24490
|
key: h.id,
|
24489
24491
|
id: h.id,
|
24490
24492
|
name: h.name,
|