@rebilly/revel 11.1.1 → 11.1.3

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/revel.mjs CHANGED
@@ -56,11 +56,11 @@ function yo(M) {
56
56
  };
57
57
  return Object.assign(b.elements.popper.style, z.popper), b.styles = z, b.elements.arrow && Object.assign(b.elements.arrow.style, z.arrow), function() {
58
58
  Object.keys(b.elements).forEach(function(p) {
59
- var o = b.elements[p], e = b.attributes[p] || {}, O = Object.keys(b.styles.hasOwnProperty(p) ? b.styles[p] : z[p]), c = O.reduce(function(t, A) {
60
- return t[A] = "", t;
59
+ var o = b.elements[p], e = b.attributes[p] || {}, O = Object.keys(b.styles.hasOwnProperty(p) ? b.styles[p] : z[p]), c = O.reduce(function(A, t) {
60
+ return A[t] = "", A;
61
61
  }, {});
62
- !M1(o) || !r1(o) || (Object.assign(o.style, c), Object.keys(e).forEach(function(t) {
63
- o.removeAttribute(t);
62
+ !M1(o) || !r1(o) || (Object.assign(o.style, c), Object.keys(e).forEach(function(A) {
63
+ o.removeAttribute(A);
64
64
  }));
65
65
  });
66
66
  };
@@ -90,15 +90,15 @@ function c2(M, b, z) {
90
90
  b === void 0 && (b = !1), z === void 0 && (z = !1);
91
91
  var p = M.getBoundingClientRect(), o = 1, e = 1;
92
92
  b && M1(M) && (o = M.offsetWidth > 0 && e2(p.width) / M.offsetWidth || 1, e = M.offsetHeight > 0 && e2(p.height) / M.offsetHeight || 1);
93
- var O = H1(M) ? Z0(M) : window, c = O.visualViewport, t = !up() && z, A = (p.left + (t && c ? c.offsetLeft : 0)) / o, a = (p.top + (t && c ? c.offsetTop : 0)) / e, r = p.width / o, i = p.height / e;
93
+ var O = H1(M) ? Z0(M) : window, c = O.visualViewport, A = !up() && z, t = (p.left + (A && c ? c.offsetLeft : 0)) / o, a = (p.top + (A && c ? c.offsetTop : 0)) / e, r = p.width / o, i = p.height / e;
94
94
  return {
95
95
  width: r,
96
96
  height: i,
97
97
  top: a,
98
- right: A + r,
98
+ right: t + r,
99
99
  bottom: a + i,
100
- left: A,
101
- x: A,
100
+ left: t,
101
+ x: t,
102
102
  y: a
103
103
  };
104
104
  }
@@ -206,9 +206,9 @@ var Co = function(b, z) {
206
206
  })) : b, Lp(typeof b != "number" ? b : vp(b, _2));
207
207
  };
208
208
  function $o(M) {
209
- var b, z = M.state, p = M.name, o = M.options, e = z.elements.arrow, O = z.modifiersData.popperOffsets, c = n1(z.placement), t = Ab(c), A = [U0, p1].indexOf(c) >= 0, a = A ? "height" : "width";
209
+ var b, z = M.state, p = M.name, o = M.options, e = z.elements.arrow, O = z.modifiersData.popperOffsets, c = n1(z.placement), A = Ab(c), t = [U0, p1].indexOf(c) >= 0, a = t ? "height" : "width";
210
210
  if (!(!e || !O)) {
211
- var r = Co(o.padding, z), i = tb(e), n = t === "y" ? j0 : U0, W = t === "y" ? z1 : p1, L = z.rects.reference[a] + z.rects.reference[t] - O[t] - z.rects.popper[a], v = O[t] - z.rects.reference[t], f = x2(e), X = f ? t === "y" ? f.clientHeight || 0 : f.clientWidth || 0 : 0, _ = L / 2 - v / 2, C = r[n], h = X - i[a] - r[W], T = X / 2 - i[a] / 2 + _, P = C2(C, T, h), V = t;
211
+ var r = Co(o.padding, z), i = tb(e), n = A === "y" ? j0 : U0, W = A === "y" ? z1 : p1, L = z.rects.reference[a] + z.rects.reference[A] - O[A] - z.rects.popper[a], v = O[A] - z.rects.reference[A], f = x2(e), X = f ? A === "y" ? f.clientHeight || 0 : f.clientWidth || 0 : 0, _ = L / 2 - v / 2, C = r[n], h = X - i[a] - r[W], T = X / 2 - i[a] / 2 + _, P = C2(C, T, h), V = A;
212
212
  z.modifiersData[p] = (b = {}, b[V] = P, b.centerOffset = P - T, b);
213
213
  }
214
214
  }
@@ -242,7 +242,7 @@ function Po(M, b) {
242
242
  };
243
243
  }
244
244
  function Pb(M) {
245
- var b, z = M.popper, p = M.popperRect, o = M.placement, e = M.variation, O = M.offsets, c = M.position, t = M.gpuAcceleration, A = M.adaptive, a = M.roundOffsets, r = M.isFixed, i = O.x, n = i === void 0 ? 0 : i, W = O.y, L = W === void 0 ? 0 : W, v = typeof a == "function" ? a({
245
+ var b, z = M.popper, p = M.popperRect, o = M.placement, e = M.variation, O = M.offsets, c = M.position, A = M.gpuAcceleration, t = M.adaptive, a = M.roundOffsets, r = M.isFixed, i = O.x, n = i === void 0 ? 0 : i, W = O.y, L = W === void 0 ? 0 : W, v = typeof a == "function" ? a({
246
246
  x: n,
247
247
  y: L
248
248
  }) : {
@@ -251,7 +251,7 @@ function Pb(M) {
251
251
  };
252
252
  n = v.x, L = v.y;
253
253
  var f = O.hasOwnProperty("x"), X = O.hasOwnProperty("y"), _ = U0, C = j0, h = window;
254
- if (A) {
254
+ if (t) {
255
255
  var T = x2(z), P = "clientHeight", V = "clientWidth";
256
256
  if (T === Z0(z) && (T = $1(z), f1(T).position !== "static" && c === "absolute" && (P = "scrollHeight", V = "scrollWidth")), T = T, o === j0 || (o === U0 || o === p1) && e === S2) {
257
257
  C = z1;
@@ -259,7 +259,7 @@ function Pb(M) {
259
259
  // $FlowFixMe[prop-missing]
260
260
  T[P]
261
261
  );
262
- L -= k - p.height, L *= t ? 1 : -1;
262
+ L -= k - p.height, L *= A ? 1 : -1;
263
263
  }
264
264
  if (o === U0 || (o === j0 || o === z1) && e === S2) {
265
265
  _ = p1;
@@ -267,26 +267,26 @@ function Pb(M) {
267
267
  // $FlowFixMe[prop-missing]
268
268
  T[V]
269
269
  );
270
- n -= Z - p.width, n *= t ? 1 : -1;
270
+ n -= Z - p.width, n *= A ? 1 : -1;
271
271
  }
272
272
  }
273
273
  var J = Object.assign({
274
274
  position: c
275
- }, A && Eo), R = a === !0 ? Po({
275
+ }, t && Eo), R = a === !0 ? Po({
276
276
  x: n,
277
277
  y: L
278
278
  }, Z0(z)) : {
279
279
  x: n,
280
280
  y: L
281
281
  };
282
- if (n = R.x, L = R.y, t) {
282
+ if (n = R.x, L = R.y, A) {
283
283
  var I;
284
284
  return Object.assign({}, J, (I = {}, I[C] = X ? "0" : "", I[_] = f ? "0" : "", I.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + n + "px, " + L + "px)" : "translate3d(" + n + "px, " + L + "px, 0)", I));
285
285
  }
286
286
  return Object.assign({}, J, (b = {}, b[C] = X ? L + "px" : "", b[_] = f ? n + "px" : "", b.transform = "", b));
287
287
  }
288
288
  function _o(M) {
289
- var b = M.state, z = M.options, p = z.gpuAcceleration, o = p === void 0 ? !0 : p, e = z.adaptive, O = e === void 0 ? !0 : e, c = z.roundOffsets, t = c === void 0 ? !0 : c, A = {
289
+ var b = M.state, z = M.options, p = z.gpuAcceleration, o = p === void 0 ? !0 : p, e = z.adaptive, O = e === void 0 ? !0 : e, c = z.roundOffsets, A = c === void 0 ? !0 : c, t = {
290
290
  placement: n1(b.placement),
291
291
  variation: t2(b.placement),
292
292
  popper: b.elements.popper,
@@ -294,16 +294,16 @@ function _o(M) {
294
294
  gpuAcceleration: o,
295
295
  isFixed: b.options.strategy === "fixed"
296
296
  };
297
- b.modifiersData.popperOffsets != null && (b.styles.popper = Object.assign({}, b.styles.popper, Pb(Object.assign({}, A, {
297
+ b.modifiersData.popperOffsets != null && (b.styles.popper = Object.assign({}, b.styles.popper, Pb(Object.assign({}, t, {
298
298
  offsets: b.modifiersData.popperOffsets,
299
299
  position: b.options.strategy,
300
300
  adaptive: O,
301
- roundOffsets: t
302
- })))), b.modifiersData.arrow != null && (b.styles.arrow = Object.assign({}, b.styles.arrow, Pb(Object.assign({}, A, {
301
+ roundOffsets: A
302
+ })))), b.modifiersData.arrow != null && (b.styles.arrow = Object.assign({}, b.styles.arrow, Pb(Object.assign({}, t, {
303
303
  offsets: b.modifiersData.arrow,
304
304
  position: "absolute",
305
305
  adaptive: !1,
306
- roundOffsets: t
306
+ roundOffsets: A
307
307
  })))), b.attributes.popper = Object.assign({}, b.attributes.popper, {
308
308
  "data-popper-placement": b.placement
309
309
  });
@@ -319,13 +319,13 @@ var K2 = {
319
319
  passive: !0
320
320
  };
321
321
  function Io(M) {
322
- var b = M.state, z = M.instance, p = M.options, o = p.scroll, e = o === void 0 ? !0 : o, O = p.resize, c = O === void 0 ? !0 : O, t = Z0(b.elements.popper), A = [].concat(b.scrollParents.reference, b.scrollParents.popper);
323
- return e && A.forEach(function(a) {
322
+ var b = M.state, z = M.instance, p = M.options, o = p.scroll, e = o === void 0 ? !0 : o, O = p.resize, c = O === void 0 ? !0 : O, A = Z0(b.elements.popper), t = [].concat(b.scrollParents.reference, b.scrollParents.popper);
323
+ return e && t.forEach(function(a) {
324
324
  a.addEventListener("scroll", z.update, K2);
325
- }), c && t.addEventListener("resize", z.update, K2), function() {
326
- e && A.forEach(function(a) {
325
+ }), c && A.addEventListener("resize", z.update, K2), function() {
326
+ e && t.forEach(function(a) {
327
327
  a.removeEventListener("scroll", z.update, K2);
328
- }), c && t.removeEventListener("resize", z.update, K2);
328
+ }), c && A.removeEventListener("resize", z.update, K2);
329
329
  };
330
330
  }
331
331
  const Vo = {
@@ -368,26 +368,26 @@ function nb(M) {
368
368
  return c2($1(M)).left + ab(M).scrollLeft;
369
369
  }
370
370
  function Yo(M, b) {
371
- var z = Z0(M), p = $1(M), o = z.visualViewport, e = p.clientWidth, O = p.clientHeight, c = 0, t = 0;
371
+ var z = Z0(M), p = $1(M), o = z.visualViewport, e = p.clientWidth, O = p.clientHeight, c = 0, A = 0;
372
372
  if (o) {
373
373
  e = o.width, O = o.height;
374
- var A = up();
375
- (A || !A && b === "fixed") && (c = o.offsetLeft, t = o.offsetTop);
374
+ var t = up();
375
+ (t || !t && b === "fixed") && (c = o.offsetLeft, A = o.offsetTop);
376
376
  }
377
377
  return {
378
378
  width: e,
379
379
  height: O,
380
380
  x: c + nb(M),
381
- y: t
381
+ y: A
382
382
  };
383
383
  }
384
384
  function jo(M) {
385
- var b, z = $1(M), p = ab(M), o = (b = M.ownerDocument) == null ? void 0 : b.body, e = V1(z.scrollWidth, z.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), O = V1(z.scrollHeight, z.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -p.scrollLeft + nb(M), t = -p.scrollTop;
385
+ var b, z = $1(M), p = ab(M), o = (b = M.ownerDocument) == null ? void 0 : b.body, e = V1(z.scrollWidth, z.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), O = V1(z.scrollHeight, z.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -p.scrollLeft + nb(M), A = -p.scrollTop;
386
386
  return f1(o || z).direction === "rtl" && (c += V1(z.clientWidth, o ? o.clientWidth : 0) - e), {
387
387
  width: e,
388
388
  height: O,
389
389
  x: c,
390
- y: t
390
+ y: A
391
391
  };
392
392
  }
393
393
  function rb(M) {
@@ -428,62 +428,62 @@ function Ko(M) {
428
428
  }) : [];
429
429
  }
430
430
  function Go(M, b, z, p) {
431
- var o = b === "clippingParents" ? Ko(M) : [].concat(b), e = [].concat(o, [z]), O = e[0], c = e.reduce(function(t, A) {
432
- var a = xb(M, A, p);
433
- return t.top = V1(a.top, t.top), t.right = tM(a.right, t.right), t.bottom = tM(a.bottom, t.bottom), t.left = V1(a.left, t.left), t;
431
+ var o = b === "clippingParents" ? Ko(M) : [].concat(b), e = [].concat(o, [z]), O = e[0], c = e.reduce(function(A, t) {
432
+ var a = xb(M, t, p);
433
+ return A.top = V1(a.top, A.top), A.right = tM(a.right, A.right), A.bottom = tM(a.bottom, A.bottom), A.left = V1(a.left, A.left), A;
434
434
  }, xb(M, O, p));
435
435
  return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
436
436
  }
437
437
  function mp(M) {
438
- var b = M.reference, z = M.element, p = M.placement, o = p ? n1(p) : null, e = p ? t2(p) : null, O = b.x + b.width / 2 - z.width / 2, c = b.y + b.height / 2 - z.height / 2, t;
438
+ var b = M.reference, z = M.element, p = M.placement, o = p ? n1(p) : null, e = p ? t2(p) : null, O = b.x + b.width / 2 - z.width / 2, c = b.y + b.height / 2 - z.height / 2, A;
439
439
  switch (o) {
440
440
  case j0:
441
- t = {
441
+ A = {
442
442
  x: O,
443
443
  y: b.y - z.height
444
444
  };
445
445
  break;
446
446
  case z1:
447
- t = {
447
+ A = {
448
448
  x: O,
449
449
  y: b.y + b.height
450
450
  };
451
451
  break;
452
452
  case p1:
453
- t = {
453
+ A = {
454
454
  x: b.x + b.width,
455
455
  y: c
456
456
  };
457
457
  break;
458
458
  case U0:
459
- t = {
459
+ A = {
460
460
  x: b.x - z.width,
461
461
  y: c
462
462
  };
463
463
  break;
464
464
  default:
465
- t = {
465
+ A = {
466
466
  x: b.x,
467
467
  y: b.y
468
468
  };
469
469
  }
470
- var A = o ? Ab(o) : null;
471
- if (A != null) {
472
- var a = A === "y" ? "height" : "width";
470
+ var t = o ? Ab(o) : null;
471
+ if (t != null) {
472
+ var a = t === "y" ? "height" : "width";
473
473
  switch (e) {
474
474
  case O2:
475
- t[A] = t[A] - (b[a] / 2 - z[a] / 2);
475
+ A[t] = A[t] - (b[a] / 2 - z[a] / 2);
476
476
  break;
477
477
  case S2:
478
- t[A] = t[A] + (b[a] / 2 - z[a] / 2);
478
+ A[t] = A[t] + (b[a] / 2 - z[a] / 2);
479
479
  break;
480
480
  }
481
481
  }
482
- return t;
482
+ return A;
483
483
  }
484
484
  function k2(M, b) {
485
485
  b === void 0 && (b = {});
486
- var z = b, p = z.placement, o = p === void 0 ? M.placement : p, e = z.strategy, O = e === void 0 ? M.strategy : e, c = z.boundary, t = c === void 0 ? qo : c, A = z.rootBoundary, a = A === void 0 ? lp : A, r = z.elementContext, i = r === void 0 ? m2 : r, n = z.altBoundary, W = n === void 0 ? !1 : n, L = z.padding, v = L === void 0 ? 0 : L, f = Lp(typeof v != "number" ? v : vp(v, _2)), X = i === m2 ? lo : m2, _ = M.rects.popper, C = M.elements[W ? X : i], h = Go(H1(C) ? C : C.contextElement || $1(M.elements.popper), t, a, O), T = c2(M.elements.reference), P = mp({
486
+ var z = b, p = z.placement, o = p === void 0 ? M.placement : p, e = z.strategy, O = e === void 0 ? M.strategy : e, c = z.boundary, A = c === void 0 ? qo : c, t = z.rootBoundary, a = t === void 0 ? lp : t, r = z.elementContext, i = r === void 0 ? m2 : r, n = z.altBoundary, W = n === void 0 ? !1 : n, L = z.padding, v = L === void 0 ? 0 : L, f = Lp(typeof v != "number" ? v : vp(v, _2)), X = i === m2 ? lo : m2, _ = M.rects.popper, C = M.elements[W ? X : i], h = Go(H1(C) ? C : C.contextElement || $1(M.elements.popper), A, a, O), T = c2(M.elements.reference), P = mp({
487
487
  reference: T,
488
488
  element: _,
489
489
  placement: o
@@ -504,10 +504,10 @@ function k2(M, b) {
504
504
  }
505
505
  function Zo(M, b) {
506
506
  b === void 0 && (b = {});
507
- var z = b, p = z.placement, o = z.boundary, e = z.rootBoundary, O = z.padding, c = z.flipVariations, t = z.allowedAutoPlacements, A = t === void 0 ? Wp : t, a = t2(p), r = a ? c ? kb : kb.filter(function(W) {
507
+ var z = b, p = z.placement, o = z.boundary, e = z.rootBoundary, O = z.padding, c = z.flipVariations, A = z.allowedAutoPlacements, t = A === void 0 ? Wp : A, a = t2(p), r = a ? c ? kb : kb.filter(function(W) {
508
508
  return t2(W) === a;
509
509
  }) : _2, i = r.filter(function(W) {
510
- return A.indexOf(W) >= 0;
510
+ return t.indexOf(W) >= 0;
511
511
  });
512
512
  i.length === 0 && (i = r);
513
513
  var n = i.reduce(function(W, L) {
@@ -531,12 +531,12 @@ function Qo(M) {
531
531
  function Jo(M) {
532
532
  var b = M.state, z = M.options, p = M.name;
533
533
  if (!b.modifiersData[p]._skip) {
534
- for (var o = z.mainAxis, e = o === void 0 ? !0 : o, O = z.altAxis, c = O === void 0 ? !0 : O, t = z.fallbackPlacements, A = z.padding, a = z.boundary, r = z.rootBoundary, i = z.altBoundary, n = z.flipVariations, W = n === void 0 ? !0 : n, L = z.allowedAutoPlacements, v = b.options.placement, f = n1(v), X = f === v, _ = t || (X || !W ? [zM(v)] : Qo(v)), C = [v].concat(_).reduce(function(i0, h0) {
534
+ for (var o = z.mainAxis, e = o === void 0 ? !0 : o, O = z.altAxis, c = O === void 0 ? !0 : O, A = z.fallbackPlacements, t = z.padding, a = z.boundary, r = z.rootBoundary, i = z.altBoundary, n = z.flipVariations, W = n === void 0 ? !0 : n, L = z.allowedAutoPlacements, v = b.options.placement, f = n1(v), X = f === v, _ = A || (X || !W ? [zM(v)] : Qo(v)), C = [v].concat(_).reduce(function(i0, h0) {
535
535
  return i0.concat(n1(h0) === eb ? Zo(b, {
536
536
  placement: h0,
537
537
  boundary: a,
538
538
  rootBoundary: r,
539
- padding: A,
539
+ padding: t,
540
540
  flipVariations: W,
541
541
  allowedAutoPlacements: L
542
542
  }) : h0);
@@ -546,7 +546,7 @@ function Jo(M) {
546
546
  boundary: a,
547
547
  rootBoundary: r,
548
548
  altBoundary: i,
549
- padding: A
549
+ padding: t
550
550
  }), q0 = b0 ? I ? p1 : U0 : I ? z1 : j0;
551
551
  h[U] > T[U] && (q0 = zM(q0));
552
552
  var w0 = zM(q0), u0 = [];
@@ -607,10 +607,10 @@ function bO(M) {
607
607
  elementContext: "reference"
608
608
  }), c = k2(b, {
609
609
  altBoundary: !0
610
- }), t = Ib(O, p), A = Ib(c, o, e), a = Vb(t), r = Vb(A);
610
+ }), A = Ib(O, p), t = Ib(c, o, e), a = Vb(A), r = Vb(t);
611
611
  b.modifiersData[z] = {
612
- referenceClippingOffsets: t,
613
- popperEscapeOffsets: A,
612
+ referenceClippingOffsets: A,
613
+ popperEscapeOffsets: t,
614
614
  isReferenceHidden: a,
615
615
  hasPopperEscaped: r
616
616
  }, b.attributes.popper = Object.assign({}, b.attributes.popper, {
@@ -640,8 +640,8 @@ function pO(M, b, z) {
640
640
  function oO(M) {
641
641
  var b = M.state, z = M.options, p = M.name, o = z.offset, e = o === void 0 ? [0, 0] : o, O = Wp.reduce(function(a, r) {
642
642
  return a[r] = pO(r, b.rects, e), a;
643
- }, {}), c = O[b.placement], t = c.x, A = c.y;
644
- b.modifiersData.popperOffsets != null && (b.modifiersData.popperOffsets.x += t, b.modifiersData.popperOffsets.y += A), b.modifiersData[p] = O;
643
+ }, {}), c = O[b.placement], A = c.x, t = c.y;
644
+ b.modifiersData.popperOffsets != null && (b.modifiersData.popperOffsets.x += A, b.modifiersData.popperOffsets.y += t), b.modifiersData[p] = O;
645
645
  }
646
646
  const OO = {
647
647
  name: "offset",
@@ -669,9 +669,9 @@ function tO(M) {
669
669
  return M === "x" ? "y" : "x";
670
670
  }
671
671
  function AO(M) {
672
- var b = M.state, z = M.options, p = M.name, o = z.mainAxis, e = o === void 0 ? !0 : o, O = z.altAxis, c = O === void 0 ? !1 : O, t = z.boundary, A = z.rootBoundary, a = z.altBoundary, r = z.padding, i = z.tether, n = i === void 0 ? !0 : i, W = z.tetherOffset, L = W === void 0 ? 0 : W, v = k2(b, {
673
- boundary: t,
674
- rootBoundary: A,
672
+ var b = M.state, z = M.options, p = M.name, o = z.mainAxis, e = o === void 0 ? !0 : o, O = z.altAxis, c = O === void 0 ? !1 : O, A = z.boundary, t = z.rootBoundary, a = z.altBoundary, r = z.padding, i = z.tether, n = i === void 0 ? !0 : i, W = z.tetherOffset, L = W === void 0 ? 0 : W, v = k2(b, {
673
+ boundary: A,
674
+ rootBoundary: t,
675
675
  padding: r,
676
676
  altBoundary: a
677
677
  }), f = n1(b.placement), X = t2(b.placement), _ = !X, C = Ab(f), h = tO(C), T = b.modifiersData.popperOffsets, P = b.rects.reference, V = b.rects.popper, k = typeof L == "function" ? L(Object.assign({}, b.rects, {
@@ -726,14 +726,14 @@ function sO(M, b, z) {
726
726
  var p = M1(b), o = M1(b) && iO(b), e = $1(b), O = c2(M, o, z), c = {
727
727
  scrollLeft: 0,
728
728
  scrollTop: 0
729
- }, t = {
729
+ }, A = {
730
730
  x: 0,
731
731
  y: 0
732
732
  };
733
733
  return (p || !p && !z) && ((r1(b) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
734
- rb(e)) && (c = rO(b)), M1(b) ? (t = c2(b, !0), t.x += b.clientLeft, t.y += b.clientTop) : e && (t.x = nb(e))), {
735
- x: O.left + c.scrollLeft - t.x,
736
- y: O.top + c.scrollTop - t.y,
734
+ rb(e)) && (c = rO(b)), M1(b) ? (A = c2(b, !0), A.x += b.clientLeft, A.y += b.clientTop) : e && (A.x = nb(e))), {
735
+ x: O.left + c.scrollLeft - A.x,
736
+ y: O.top + c.scrollTop - A.y,
737
737
  width: O.width,
738
738
  height: O.height
739
739
  };
@@ -748,8 +748,8 @@ function qO(M) {
748
748
  var O = [].concat(e.requires || [], e.requiresIfExists || []);
749
749
  O.forEach(function(c) {
750
750
  if (!z.has(c)) {
751
- var t = b.get(c);
752
- t && o(t);
751
+ var A = b.get(c);
752
+ A && o(A);
753
753
  }
754
754
  }), p.push(e);
755
755
  }
@@ -802,8 +802,8 @@ function Fb() {
802
802
  function uO(M) {
803
803
  M === void 0 && (M = {});
804
804
  var b = M, z = b.defaultModifiers, p = z === void 0 ? [] : z, o = b.defaultOptions, e = o === void 0 ? Hb : o;
805
- return function(c, t, A) {
806
- A === void 0 && (A = e);
805
+ return function(c, A, t) {
806
+ t === void 0 && (t = e);
807
807
  var a = {
808
808
  placement: "bottom",
809
809
  orderedModifiers: [],
@@ -811,7 +811,7 @@ function uO(M) {
811
811
  modifiersData: {},
812
812
  elements: {
813
813
  reference: c,
814
- popper: t
814
+ popper: A
815
815
  },
816
816
  attributes: {},
817
817
  styles: {}
@@ -821,7 +821,7 @@ function uO(M) {
821
821
  var X = typeof f == "function" ? f(a.options) : f;
822
822
  L(), a.options = Object.assign({}, e, a.options, X), a.scrollParents = {
823
823
  reference: H1(c) ? $2(c) : c.contextElement ? $2(c.contextElement) : [],
824
- popper: $2(t)
824
+ popper: $2(A)
825
825
  };
826
826
  var _ = dO(WO([].concat(p, a.options.modifiers)));
827
827
  return a.orderedModifiers = _.filter(function(C) {
@@ -870,10 +870,10 @@ function uO(M) {
870
870
  L(), i = !0;
871
871
  }
872
872
  };
873
- if (!Fb(c, t))
873
+ if (!Fb(c, A))
874
874
  return n;
875
- n.setOptions(A).then(function(v) {
876
- !i && A.onFirstUpdate && A.onFirstUpdate(v);
875
+ n.setOptions(t).then(function(v) {
876
+ !i && t.onFirstUpdate && t.onFirstUpdate(v);
877
877
  });
878
878
  function W() {
879
879
  a.orderedModifiers.forEach(function(v) {
@@ -1244,8 +1244,8 @@ var Sp = nA, E2 = {}, rA = {
1244
1244
  (function(M, b) {
1245
1245
  var z = Bp, p = b && !b.nodeType && b, o = p && !0 && M && !M.nodeType && M, e = o && o.exports === p, O = e && z.process, c = function() {
1246
1246
  try {
1247
- var t = o && o.require && o.require("util").types;
1248
- return t || O && O.binding && O.binding("util");
1247
+ var A = o && o.require && o.require("util").types;
1248
+ return A || O && O.binding && O.binding("util");
1249
1249
  } catch {
1250
1250
  }
1251
1251
  }();
@@ -1322,12 +1322,12 @@ function JA(M, b) {
1322
1322
  }
1323
1323
  var Ma = JA, ba = QA, za = kp, pa = Ma, oa = 1, Oa = 2;
1324
1324
  function ea(M, b, z, p, o, e) {
1325
- var O = z & oa, c = M.length, t = b.length;
1326
- if (c != t && !(O && t > c))
1325
+ var O = z & oa, c = M.length, A = b.length;
1326
+ if (c != A && !(O && A > c))
1327
1327
  return !1;
1328
- var A = e.get(M), a = e.get(b);
1329
- if (A && a)
1330
- return A == b && a == M;
1328
+ var t = e.get(M), a = e.get(b);
1329
+ if (t && a)
1330
+ return t == b && a == M;
1331
1331
  var r = -1, i = !0, n = z & Oa ? new ba() : void 0;
1332
1332
  for (e.set(M, b), e.set(b, M); ++r < c; ) {
1333
1333
  var W = M[r], L = b[r];
@@ -1389,12 +1389,12 @@ function wa(M, b, z, p, o, e, O) {
1389
1389
  case La:
1390
1390
  var c = qa;
1391
1391
  case ma:
1392
- var t = p & la;
1393
- if (c || (c = da), M.size != b.size && !t)
1392
+ var A = p & la;
1393
+ if (c || (c = da), M.size != b.size && !A)
1394
1394
  return !1;
1395
- var A = O.get(M);
1396
- if (A)
1397
- return A == b;
1395
+ var t = O.get(M);
1396
+ if (t)
1397
+ return t == b;
1398
1398
  p |= Wa, O.set(M, b);
1399
1399
  var a = sa(c(M), c(b), p, o, e, O);
1400
1400
  return O.delete(M), a;
@@ -1450,8 +1450,8 @@ function Za() {
1450
1450
  }
1451
1451
  var Qa = Za;
1452
1452
  (function(M, b) {
1453
- var z = s1, p = Qa, o = b && !b.nodeType && b, e = o && !0 && M && !M.nodeType && M, O = e && e.exports === o, c = O ? z.Buffer : void 0, t = c ? c.isBuffer : void 0, A = t || p;
1454
- M.exports = A;
1453
+ var z = s1, p = Qa, o = b && !b.nodeType && b, e = o && !0 && M && !M.nodeType && M, O = e && e.exports === o, c = O ? z.Buffer : void 0, A = c ? c.isBuffer : void 0, t = A || p;
1454
+ M.exports = t;
1455
1455
  })(Ga, A2);
1456
1456
  var Ja = q1, Mn = fb, bn = e1, zn = "[object Arguments]", pn = "[object Array]", on = "[object Boolean]", On = "[object Date]", en = "[object Error]", cn = "[object Function]", tn = "[object Map]", An = "[object Number]", an = "[object Object]", nn = "[object RegExp]", rn = "[object Set]", sn = "[object String]", qn = "[object WeakMap]", dn = "[object ArrayBuffer]", ln = "[object DataView]", Wn = "[object Float32Array]", un = "[object Float64Array]", fn = "[object Int8Array]", Rn = "[object Int16Array]", Ln = "[object Int32Array]", vn = "[object Uint8Array]", hn = "[object Uint8ClampedArray]", mn = "[object Uint16Array]", gn = "[object Uint32Array]", L0 = {};
1457
1457
  L0[Wn] = L0[un] = L0[fn] = L0[Rn] = L0[Ln] = L0[vn] = L0[hn] = L0[mn] = L0[gn] = !0;
@@ -1461,13 +1461,13 @@ function Bn(M) {
1461
1461
  }
1462
1462
  var Nn = Bn, yn = Nn, wn = Sp, tz = E2, Az = tz && tz.isTypedArray, Xn = Az ? wn(Az) : yn, Lb = Xn, Tn = Ka, Dn = Wb, Cn = O1, $n = A2, Sn = ub, kn = Lb, En = Object.prototype, Pn = En.hasOwnProperty;
1463
1463
  function _n(M, b) {
1464
- var z = Cn(M), p = !z && Dn(M), o = !z && !p && $n(M), e = !z && !p && !o && kn(M), O = z || p || o || e, c = O ? Tn(M.length, String) : [], t = c.length;
1465
- for (var A in M)
1466
- (b || Pn.call(M, A)) && !(O && // Safari 9 has enumerable `arguments.length` in strict mode.
1467
- (A == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1468
- o && (A == "offset" || A == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1469
- e && (A == "buffer" || A == "byteLength" || A == "byteOffset") || // Skip index properties.
1470
- Sn(A, t))) && c.push(A);
1464
+ var z = Cn(M), p = !z && Dn(M), o = !z && !p && $n(M), e = !z && !p && !o && kn(M), O = z || p || o || e, c = O ? Tn(M.length, String) : [], A = c.length;
1465
+ for (var t in M)
1466
+ (b || Pn.call(M, t)) && !(O && // Safari 9 has enumerable `arguments.length` in strict mode.
1467
+ (t == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1468
+ o && (t == "offset" || t == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1469
+ e && (t == "buffer" || t == "byteLength" || t == "byteOffset") || // Skip index properties.
1470
+ Sn(t, A))) && c.push(t);
1471
1471
  return c;
1472
1472
  }
1473
1473
  var _p = _n, xn = Object.prototype;
@@ -1504,10 +1504,10 @@ function A4(M) {
1504
1504
  }
1505
1505
  var a4 = A4, az = a4, n4 = 1, r4 = Object.prototype, i4 = r4.hasOwnProperty;
1506
1506
  function s4(M, b, z, p, o, e) {
1507
- var O = z & n4, c = az(M), t = c.length, A = az(b), a = A.length;
1508
- if (t != a && !O)
1507
+ var O = z & n4, c = az(M), A = c.length, t = az(b), a = t.length;
1508
+ if (A != a && !O)
1509
1509
  return !1;
1510
- for (var r = t; r--; ) {
1510
+ for (var r = A; r--; ) {
1511
1511
  var i = c[r];
1512
1512
  if (!(O ? i in b : i4.call(b, i)))
1513
1513
  return !1;
@@ -1517,7 +1517,7 @@ function s4(M, b, z, p, o, e) {
1517
1517
  return n == b && W == M;
1518
1518
  var L = !0;
1519
1519
  e.set(M, b), e.set(b, M);
1520
- for (var v = O; ++r < t; ) {
1520
+ for (var v = O; ++r < A; ) {
1521
1521
  i = c[r];
1522
1522
  var f = M[i], X = b[i];
1523
1523
  if (p)
@@ -1554,16 +1554,16 @@ var q4 = s4, d4 = j1, l4 = s1, W4 = d4(l4, "DataView"), u4 = W4, f4 = j1, R4 = s
1554
1554
  });
1555
1555
  var E4 = E1, SM = Rb, P4 = Ep, _4 = Xa, x4 = q4, dz = E4, lz = O1, Wz = A2, I4 = Lb, V4 = 1, uz = "[object Arguments]", fz = "[object Array]", Z2 = "[object Object]", H4 = Object.prototype, Rz = H4.hasOwnProperty;
1556
1556
  function F4(M, b, z, p, o, e) {
1557
- var O = lz(M), c = lz(b), t = O ? fz : dz(M), A = c ? fz : dz(b);
1558
- t = t == uz ? Z2 : t, A = A == uz ? Z2 : A;
1559
- var a = t == Z2, r = A == Z2, i = t == A;
1557
+ var O = lz(M), c = lz(b), A = O ? fz : dz(M), t = c ? fz : dz(b);
1558
+ A = A == uz ? Z2 : A, t = t == uz ? Z2 : t;
1559
+ var a = A == Z2, r = t == Z2, i = A == t;
1560
1560
  if (i && Wz(M)) {
1561
1561
  if (!Wz(b))
1562
1562
  return !1;
1563
1563
  O = !0, a = !1;
1564
1564
  }
1565
1565
  if (i && !a)
1566
- return e || (e = new SM()), O || I4(M) ? P4(M, b, z, p, o, e) : _4(M, b, t, z, p, o, e);
1566
+ return e || (e = new SM()), O || I4(M) ? P4(M, b, z, p, o, e) : _4(M, b, A, z, p, o, e);
1567
1567
  if (!(z & V4)) {
1568
1568
  var n = a && Rz.call(M, "__wrapped__"), W = r && Rz.call(b, "__wrapped__");
1569
1569
  if (n || W) {
@@ -1589,15 +1589,15 @@ function Q4(M, b, z, p) {
1589
1589
  }
1590
1590
  for (; ++o < e; ) {
1591
1591
  c = z[o];
1592
- var t = c[0], A = M[t], a = c[1];
1592
+ var A = c[0], t = M[A], a = c[1];
1593
1593
  if (O && c[2]) {
1594
- if (A === void 0 && !(t in M))
1594
+ if (t === void 0 && !(A in M))
1595
1595
  return !1;
1596
1596
  } else {
1597
1597
  var r = new U4();
1598
1598
  if (p)
1599
- var i = p(A, a, t, M, b, r);
1600
- if (!(i === void 0 ? K4(a, A, G4 | Z4, p, r) : i))
1599
+ var i = p(t, a, A, M, b, r);
1600
+ if (!(i === void 0 ? K4(a, t, G4 | Z4, p, r) : i))
1601
1601
  return !1;
1602
1602
  }
1603
1603
  }
@@ -1683,8 +1683,8 @@ var Up = Zr;
1683
1683
  function Qr(M) {
1684
1684
  return function(b, z, p) {
1685
1685
  for (var o = -1, e = Object(b), O = p(b), c = O.length; c--; ) {
1686
- var t = O[M ? c : ++o];
1687
- if (z(e[t], t, e) === !1)
1686
+ var A = O[M ? c : ++o];
1687
+ if (z(e[A], A, e) === !1)
1688
1688
  break;
1689
1689
  }
1690
1690
  return b;
@@ -1840,9 +1840,9 @@ var Nb = Xs, Ts = Bb, Ds = s2, Cs = gb, $s = Nb, Jp = Object.prototype, Ss = Jp.
1840
1840
  M = Object(M);
1841
1841
  var z = -1, p = b.length, o = p > 2 ? b[2] : void 0;
1842
1842
  for (o && Cs(b[0], b[1], o) && (p = 1); ++z < p; )
1843
- for (var e = b[z], O = $s(e), c = -1, t = O.length; ++c < t; ) {
1844
- var A = O[c], a = M[A];
1845
- (a === void 0 || Ds(a, Jp[A]) && !Ss.call(M, A)) && (M[A] = e[A]);
1843
+ for (var e = b[z], O = $s(e), c = -1, A = O.length; ++c < A; ) {
1844
+ var t = O[c], a = M[t];
1845
+ (a === void 0 || Ds(a, Jp[t]) && !Ss.call(M, t)) && (M[t] = e[t]);
1846
1846
  }
1847
1847
  return M;
1848
1848
  }), gz = ks, Es = BM, Ps = s2;
@@ -1859,13 +1859,13 @@ var M3 = _s, aM = {}, xs = {
1859
1859
  };
1860
1860
  (function(M, b) {
1861
1861
  var z = s1, p = b && !b.nodeType && b, o = p && !0 && M && !M.nodeType && M, e = o && o.exports === p, O = e ? z.Buffer : void 0, c = O ? O.allocUnsafe : void 0;
1862
- function t(A, a) {
1862
+ function A(t, a) {
1863
1863
  if (a)
1864
- return A.slice();
1865
- var r = A.length, i = c ? c(r) : new A.constructor(r);
1866
- return A.copy(i), i;
1864
+ return t.slice();
1865
+ var r = t.length, i = c ? c(r) : new t.constructor(r);
1866
+ return t.copy(i), i;
1867
1867
  }
1868
- M.exports = t;
1868
+ M.exports = A;
1869
1869
  })(xs, aM);
1870
1870
  var Bz = Pp;
1871
1871
  function Is(M) {
@@ -1924,8 +1924,8 @@ function Lq(M, b, z, p) {
1924
1924
  var o = !z;
1925
1925
  z || (z = {});
1926
1926
  for (var e = -1, O = b.length; ++e < O; ) {
1927
- var c = b[e], t = p ? p(z[c], M[c], c, z, M) : void 0;
1928
- t === void 0 && (t = M[c]), o ? Rq(z, c, t) : fq(z, c, t);
1927
+ var c = b[e], A = p ? p(z[c], M[c], c, z, M) : void 0;
1928
+ A === void 0 && (A = M[c]), o ? Rq(z, c, A) : fq(z, c, A);
1929
1929
  }
1930
1930
  return z;
1931
1931
  }
@@ -1935,17 +1935,17 @@ function gq(M) {
1935
1935
  }
1936
1936
  var Bq = gq, yz = M3, Nq = aM, yq = Ys, wq = Us, Xq = oq, wz = Wb, Xz = O1, Tq = tq, Dq = A2, Cq = Y1, $q = h1, Sq = Wq, kq = Lb, Tz = p3, Eq = Bq;
1937
1937
  function Pq(M, b, z, p, o, e, O) {
1938
- var c = Tz(M, z), t = Tz(b, z), A = O.get(t);
1939
- if (A) {
1940
- yz(M, z, A);
1938
+ var c = Tz(M, z), A = Tz(b, z), t = O.get(A);
1939
+ if (t) {
1940
+ yz(M, z, t);
1941
1941
  return;
1942
1942
  }
1943
- var a = e ? e(c, t, z + "", M, b, O) : void 0, r = a === void 0;
1943
+ var a = e ? e(c, A, z + "", M, b, O) : void 0, r = a === void 0;
1944
1944
  if (r) {
1945
- var i = Xz(t), n = !i && Dq(t), W = !i && !n && kq(t);
1946
- a = t, i || n || W ? Xz(c) ? a = c : Tq(c) ? a = wq(c) : n ? (r = !1, a = Nq(t, !0)) : W ? (r = !1, a = yq(t, !0)) : a = [] : Sq(t) || wz(t) ? (a = c, wz(c) ? a = Eq(c) : (!$q(c) || Cq(c)) && (a = Xq(t))) : r = !1;
1945
+ var i = Xz(A), n = !i && Dq(A), W = !i && !n && kq(A);
1946
+ a = A, i || n || W ? Xz(c) ? a = c : Tq(c) ? a = wq(c) : n ? (r = !1, a = Nq(A, !0)) : W ? (r = !1, a = yq(A, !0)) : a = [] : Sq(A) || wz(A) ? (a = c, wz(c) ? a = Eq(c) : (!$q(c) || Cq(c)) && (a = Xq(A))) : r = !1;
1947
1947
  }
1948
- r && (O.set(t, a), o(a, t, p, e, O), O.delete(t)), yz(M, z, a);
1948
+ r && (O.set(A, a), o(a, A, p, e, O), O.delete(A)), yz(M, z, a);
1949
1949
  }
1950
1950
  var _q = Pq, xq = Rb, Iq = M3, Vq = Kp, Hq = _q, Fq = h1, Yq = Nb, jq = p3;
1951
1951
  function o3(M, b, z, p, o) {
@@ -2137,8 +2137,8 @@ function L5(M, b, z) {
2137
2137
  }
2138
2138
  if (m5(M)) {
2139
2139
  b = new Date(b || Date.now());
2140
- var c = v5(b), t = JM(c, M), A = h5(b, t, M);
2141
- return -A;
2140
+ var c = v5(b), A = JM(c, M), t = h5(b, A, M);
2141
+ return -t;
2142
2142
  }
2143
2143
  return NaN;
2144
2144
  }
@@ -2236,19 +2236,19 @@ function y5(M, b) {
2236
2236
  return new Date(M);
2237
2237
  if (!(typeof M == "string" || Object.prototype.toString.call(M) === "[object String]"))
2238
2238
  return /* @__PURE__ */ new Date(NaN);
2239
- var o = w5(M), e = X5(o.date, p), O = e.year, c = e.restDateString, t = T5(c, O);
2240
- if (isNaN(t))
2239
+ var o = w5(M), e = X5(o.date, p), O = e.year, c = e.restDateString, A = T5(c, O);
2240
+ if (isNaN(A))
2241
2241
  return /* @__PURE__ */ new Date(NaN);
2242
- if (t) {
2243
- var A = t.getTime(), a = 0, r;
2242
+ if (A) {
2243
+ var t = A.getTime(), a = 0, r;
2244
2244
  if (o.time && (a = D5(o.time), isNaN(a)))
2245
2245
  return /* @__PURE__ */ new Date(NaN);
2246
2246
  if (o.timeZone || z.timeZone) {
2247
- if (r = L5(o.timeZone || z.timeZone, new Date(A + a)), isNaN(r))
2247
+ if (r = L5(o.timeZone || z.timeZone, new Date(t + a)), isNaN(r))
2248
2248
  return /* @__PURE__ */ new Date(NaN);
2249
2249
  } else
2250
- r = $z(new Date(A + a)), r = $z(new Date(A + a + r));
2251
- return new Date(A + a + r);
2250
+ r = $z(new Date(t + a)), r = $z(new Date(t + a + r));
2251
+ return new Date(t + a + r);
2252
2252
  } else
2253
2253
  return /* @__PURE__ */ new Date(NaN);
2254
2254
  }
@@ -2302,8 +2302,8 @@ function T5(M, b) {
2302
2302
  return e = parseInt(z[1], 10) - 1, Iz(b, e) ? _z(b, e) : /* @__PURE__ */ new Date(NaN);
2303
2303
  if (z = F0.WwwD.exec(M), z) {
2304
2304
  e = parseInt(z[1], 10) - 1;
2305
- var t = parseInt(z[2], 10) - 1;
2306
- return Iz(b, e, t) ? _z(b, e, t) : /* @__PURE__ */ new Date(NaN);
2305
+ var A = parseInt(z[2], 10) - 1;
2306
+ return Iz(b, e, A) ? _z(b, e, A) : /* @__PURE__ */ new Date(NaN);
2307
2307
  }
2308
2308
  return null;
2309
2309
  }
@@ -2383,9 +2383,9 @@ function yb() {
2383
2383
  return k5;
2384
2384
  }
2385
2385
  function F1(M, b) {
2386
- var z, p, o, e, O, c, t, A;
2386
+ var z, p, o, e, O, c, A, t;
2387
2387
  I0(1, arguments);
2388
- var a = yb(), r = u2((z = (p = (o = (e = b?.weekStartsOn) !== null && e !== void 0 ? e : b == null || (O = b.locale) === null || O === void 0 || (c = O.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && o !== void 0 ? o : a.weekStartsOn) !== null && p !== void 0 ? p : (t = a.locale) === null || t === void 0 || (A = t.options) === null || A === void 0 ? void 0 : A.weekStartsOn) !== null && z !== void 0 ? z : 0);
2388
+ var a = yb(), r = u2((z = (p = (o = (e = b?.weekStartsOn) !== null && e !== void 0 ? e : b == null || (O = b.locale) === null || O === void 0 || (c = O.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && o !== void 0 ? o : a.weekStartsOn) !== null && p !== void 0 ? p : (A = a.locale) === null || A === void 0 || (t = A.options) === null || t === void 0 ? void 0 : t.weekStartsOn) !== null && z !== void 0 ? z : 0);
2389
2389
  if (!(r >= 0 && r <= 6))
2390
2390
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2391
2391
  var i = m1(M), n = i.getDay(), W = (n < r ? 7 : 0) + n - r;
@@ -2415,9 +2415,9 @@ function I5(M, b) {
2415
2415
  return I0(1, arguments), P5(_5(M), x5(M), b) + 1;
2416
2416
  }
2417
2417
  function V5(M, b) {
2418
- var z, p, o, e, O, c, t, A;
2418
+ var z, p, o, e, O, c, A, t;
2419
2419
  I0(1, arguments);
2420
- var a = m1(M), r = a.getFullYear(), i = yb(), n = u2((z = (p = (o = (e = b?.firstWeekContainsDate) !== null && e !== void 0 ? e : b == null || (O = b.locale) === null || O === void 0 || (c = O.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && o !== void 0 ? o : i.firstWeekContainsDate) !== null && p !== void 0 ? p : (t = i.locale) === null || t === void 0 || (A = t.options) === null || A === void 0 ? void 0 : A.firstWeekContainsDate) !== null && z !== void 0 ? z : 1);
2420
+ var a = m1(M), r = a.getFullYear(), i = yb(), n = u2((z = (p = (o = (e = b?.firstWeekContainsDate) !== null && e !== void 0 ? e : b == null || (O = b.locale) === null || O === void 0 || (c = O.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && o !== void 0 ? o : i.firstWeekContainsDate) !== null && p !== void 0 ? p : (A = i.locale) === null || A === void 0 || (t = A.options) === null || t === void 0 ? void 0 : t.firstWeekContainsDate) !== null && z !== void 0 ? z : 1);
2421
2421
  if (!(n >= 1 && n <= 7))
2422
2422
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2423
2423
  var W = /* @__PURE__ */ new Date(0);
@@ -2428,9 +2428,9 @@ function V5(M, b) {
2428
2428
  return a.getTime() >= L.getTime() ? r + 1 : a.getTime() >= f.getTime() ? r : r - 1;
2429
2429
  }
2430
2430
  function H5(M, b) {
2431
- var z, p, o, e, O, c, t, A;
2431
+ var z, p, o, e, O, c, A, t;
2432
2432
  I0(1, arguments);
2433
- var a = yb(), r = u2((z = (p = (o = (e = b?.firstWeekContainsDate) !== null && e !== void 0 ? e : b == null || (O = b.locale) === null || O === void 0 || (c = O.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && o !== void 0 ? o : a.firstWeekContainsDate) !== null && p !== void 0 ? p : (t = a.locale) === null || t === void 0 || (A = t.options) === null || A === void 0 ? void 0 : A.firstWeekContainsDate) !== null && z !== void 0 ? z : 1), i = V5(M, b), n = /* @__PURE__ */ new Date(0);
2433
+ var a = yb(), r = u2((z = (p = (o = (e = b?.firstWeekContainsDate) !== null && e !== void 0 ? e : b == null || (O = b.locale) === null || O === void 0 || (c = O.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && o !== void 0 ? o : a.firstWeekContainsDate) !== null && p !== void 0 ? p : (A = a.locale) === null || A === void 0 || (t = A.options) === null || t === void 0 ? void 0 : t.firstWeekContainsDate) !== null && z !== void 0 ? z : 1), i = V5(M, b), n = /* @__PURE__ */ new Date(0);
2434
2434
  n.setFullYear(i, 0, r), n.setHours(0, 0, 0, 0);
2435
2435
  var W = F1(n, b);
2436
2436
  return W;
@@ -2504,8 +2504,8 @@ function Q5({
2504
2504
  firstDayOfWeek: e,
2505
2505
  firstWeekday: O,
2506
2506
  isoWeeknumbers: c,
2507
- weeknumbers: t,
2508
- numDays: A,
2507
+ weeknumbers: A,
2508
+ numDays: t,
2509
2509
  numWeeks: a
2510
2510
  } = M, r = O + (O < e ? E0 : 0) - e;
2511
2511
  let i = !0, n = !1, W = !1, L = 0;
@@ -2519,7 +2519,7 @@ function Q5({
2519
2519
  const k = /* @__PURE__ */ new Date(), Z = k.getDate(), J = k.getMonth() + 1, R = k.getFullYear();
2520
2520
  for (let I = 1; I <= Fd; I++) {
2521
2521
  for (let b0 = 1, U = e; b0 <= E0; b0++, U += U === E0 ? 1 - E0 : 1) {
2522
- i && U === O && (f = 1, X = M.numDays, _ = Math.floor((f - 1) / E0 + 1), C = Math.floor((A - f) / E0 + 1), h = 1, T = a, P = M.month, V = M.year, i = !1, n = !0);
2522
+ i && U === O && (f = 1, X = M.numDays, _ = Math.floor((f - 1) / E0 + 1), C = Math.floor((t - f) / E0 + 1), h = 1, T = a, P = M.month, V = M.year, i = !1, n = !0);
2523
2523
  const p0 = p.getDateFromParams(V, P, f, 0, 0, 0, 0), q0 = p.getDateFromParams(V, P, f, 12, 0, 0, 0), w0 = p.getDateFromParams(
2524
2524
  V,
2525
2525
  P,
@@ -2528,7 +2528,7 @@ function Q5({
2528
2528
  59,
2529
2529
  59,
2530
2530
  999
2531
- ), u0 = p0, S = `${W0(V, 4)}-${W0(P, 2)}-${W0(f, 2)}`, n0 = b0, K = E0 - b0, N0 = t[I - 1], i0 = c[I - 1], h0 = f === Z && P === J && V === R, R0 = n && f === 1, z0 = n && f === A, d0 = I === 1, k0 = I === a, Q0 = b0 === 1, K0 = b0 === E0, $0 = h3(V, P, f);
2531
+ ), u0 = p0, S = `${W0(V, 4)}-${W0(P, 2)}-${W0(f, 2)}`, n0 = b0, K = E0 - b0, N0 = A[I - 1], i0 = c[I - 1], h0 = f === Z && P === J && V === R, R0 = n && f === 1, z0 = n && f === t, d0 = I === 1, k0 = I === a, Q0 = b0 === 1, K0 = b0 === E0, $0 = h3(V, P, f);
2532
2532
  o.push({
2533
2533
  locale: p,
2534
2534
  id: S,
@@ -2590,7 +2590,7 @@ function Q5({
2590
2590
  "on-right": K0
2591
2591
  }
2592
2592
  ]
2593
- }), n && z0 ? (n = !1, W = !0, f = 1, X = A, _ = 1, C = Math.floor((A - f) / E0 + 1), h = 1, T = z.numWeeks, P = z.month, V = z.year) : (f++, X--, _ = Math.floor((f - 1) / E0 + 1), C = Math.floor((A - f) / E0 + 1));
2593
+ }), n && z0 ? (n = !1, W = !0, f = 1, X = t, _ = 1, C = Math.floor((t - f) / E0 + 1), h = 1, T = z.numWeeks, P = z.month, V = z.year) : (f++, X--, _ = Math.floor((f - 1) / E0 + 1), C = Math.floor((t - f) / E0 + 1));
2594
2594
  }
2595
2595
  h++, T--;
2596
2596
  }
@@ -2598,10 +2598,10 @@ function Q5({
2598
2598
  }
2599
2599
  function J5(M, b, z, p) {
2600
2600
  const o = M.reduce((e, O, c) => {
2601
- const t = Math.floor(c / 7);
2602
- let A = e[t];
2603
- return A || (A = {
2604
- id: `week-${t + 1}`,
2601
+ const A = Math.floor(c / 7);
2602
+ let t = e[A];
2603
+ return t || (t = {
2604
+ id: `week-${A + 1}`,
2605
2605
  title: "",
2606
2606
  week: O.week,
2607
2607
  weekPosition: O.weekPosition,
@@ -2609,7 +2609,7 @@ function J5(M, b, z, p) {
2609
2609
  isoWeeknumber: O.isoWeeknumber,
2610
2610
  weeknumberDisplay: b ? O.weeknumber : z ? O.isoWeeknumber : void 0,
2611
2611
  days: []
2612
- }, e[t] = A), A.days.push(O), e;
2612
+ }, e[A] = t), t.days.push(O), e;
2613
2613
  }, Array(M.length / E0));
2614
2614
  return o.forEach((e) => {
2615
2615
  const O = e.days[0], c = e.days[e.days.length - 1];
@@ -2639,24 +2639,24 @@ function i3(M, b, z) {
2639
2639
  }
2640
2640
  function s3({ day: M, week: b, month: z, year: p }, o, e, O) {
2641
2641
  if (e === "daily" && M) {
2642
- const c = new Date(p, z - 1, M), t = H0(c, o);
2642
+ const c = new Date(p, z - 1, M), A = H0(c, o);
2643
2643
  return {
2644
- day: t.getDate(),
2645
- month: t.getMonth() + 1,
2646
- year: t.getFullYear()
2644
+ day: A.getDate(),
2645
+ month: A.getMonth() + 1,
2646
+ year: A.getFullYear()
2647
2647
  };
2648
2648
  } else if (e === "weekly" && b) {
2649
- const t = O.getMonthParts(z, p).firstDayOfMonth, A = H0(t, (b - 1 + o) * 7), a = O.getDateParts(A);
2649
+ const A = O.getMonthParts(z, p).firstDayOfMonth, t = H0(A, (b - 1 + o) * 7), a = O.getDateParts(t);
2650
2650
  return {
2651
2651
  week: a.week,
2652
2652
  month: a.month,
2653
2653
  year: a.year
2654
2654
  };
2655
2655
  } else {
2656
- const c = new Date(p, z - 1, 1), t = qM(c, o);
2656
+ const c = new Date(p, z - 1, 1), A = qM(c, o);
2657
2657
  return {
2658
- month: t.getMonth() + 1,
2659
- year: t.getFullYear()
2658
+ month: A.getMonth() + 1,
2659
+ year: A.getFullYear()
2660
2660
  };
2661
2661
  }
2662
2662
  }
@@ -2689,7 +2689,7 @@ function q3(M) {
2689
2689
  return z && (e = `${e}-w${z}`), b && (e = `${e}-${W0(b, 2)}`), e;
2690
2690
  }
2691
2691
  function Od(M, b) {
2692
- const { month: z, year: p, showWeeknumbers: o, showIsoWeeknumbers: e } = M, O = new Date(p, z - 1, 15), c = b.getMonthParts(z, p), t = b.getPrevMonthParts(z, p), A = b.getNextMonthParts(z, p), a = Q5({ monthComps: c, prevMonthComps: t, nextMonthComps: A }, b), r = J5(a, o, e, b), i = Md(r[0], b);
2692
+ const { month: z, year: p, showWeeknumbers: o, showIsoWeeknumbers: e } = M, O = new Date(p, z - 1, 15), c = b.getMonthParts(z, p), A = b.getPrevMonthParts(z, p), t = b.getNextMonthParts(z, p), a = Q5({ monthComps: c, prevMonthComps: A, nextMonthComps: t }, b), r = J5(a, o, e, b), i = Md(r[0], b);
2693
2693
  return {
2694
2694
  id: q3(M),
2695
2695
  month: z,
@@ -2700,8 +2700,8 @@ function Od(M, b) {
2700
2700
  shortYearLabel: p.toString().substring(2),
2701
2701
  yearLabel: p.toString(),
2702
2702
  monthComps: c,
2703
- prevMonthComps: t,
2704
- nextMonthComps: A,
2703
+ prevMonthComps: A,
2704
+ nextMonthComps: t,
2705
2705
  days: a,
2706
2706
  weeks: r,
2707
2707
  weekdays: i
@@ -2717,10 +2717,10 @@ function ed(M, b) {
2717
2717
  };
2718
2718
  switch (o) {
2719
2719
  case "daily": {
2720
- let c = O.days.find((A) => A.inMonth);
2721
- z ? c = O.days.find((A) => A.day === z && A.inMonth) || c : p && (c = O.days.find((A) => A.week === p && A.inMonth));
2722
- const t = O.weeks[c.week - 1];
2723
- O.viewWeeks = [t], O.viewDays = [c], O.week = c.week, O.weekTitle = t.title, O.day = c.day, O.dayTitle = c.ariaLabel, O.title = O.dayTitle;
2720
+ let c = O.days.find((t) => t.inMonth);
2721
+ z ? c = O.days.find((t) => t.day === z && t.inMonth) || c : p && (c = O.days.find((t) => t.week === p && t.inMonth));
2722
+ const A = O.weeks[c.week - 1];
2723
+ O.viewWeeks = [A], O.viewDays = [c], O.week = c.week, O.weekTitle = A.title, O.day = c.day, O.dayTitle = c.ariaLabel, O.title = O.dayTitle;
2724
2724
  break;
2725
2725
  }
2726
2726
  case "weekly": {
@@ -2764,11 +2764,11 @@ class z2 {
2764
2764
  G(this, "order"), G(this, "locale"), G(this, "start", null), G(this, "end", null), G(this, "repeat", null);
2765
2765
  var p;
2766
2766
  this.locale = z;
2767
- const { start: o, end: e, span: O, order: c, repeat: t } = b;
2768
- b2(o) && (this.start = z.getDateParts(o)), b2(e) ? this.end = z.getDateParts(e) : this.start != null && O && (this.end = z.getDateParts(H0(this.start.date, O - 1))), this.order = c ?? 0, t && (this.repeat = new WM(
2767
+ const { start: o, end: e, span: O, order: c, repeat: A } = b;
2768
+ b2(o) && (this.start = z.getDateParts(o)), b2(e) ? this.end = z.getDateParts(e) : this.start != null && O && (this.end = z.getDateParts(H0(this.start.date, O - 1))), this.order = c ?? 0, A && (this.repeat = new WM(
2769
2769
  {
2770
2770
  from: (p = this.start) == null ? void 0 : p.date,
2771
- ...t
2771
+ ...A
2772
2772
  },
2773
2773
  {
2774
2774
  locale: this.locale
@@ -2827,7 +2827,7 @@ class cd {
2827
2827
  G(this, "records", {});
2828
2828
  }
2829
2829
  render(b, z, p) {
2830
- var o, e, O, c, t, A;
2830
+ var o, e, O, c, A, t;
2831
2831
  let a = null;
2832
2832
  const r = ((o = p[0]) == null ? void 0 : o.dayIndex) ?? 0, i = ((e = p[p.length - 1]) == null ? void 0 : e.dayIndex) ?? 0;
2833
2833
  return z.hasRepeat ? p.forEach((n) => {
@@ -2844,8 +2844,8 @@ class cd {
2844
2844
  }) : z.intersectsDayRange(r, i) && (a = {
2845
2845
  startDay: ((O = z.start) == null ? void 0 : O.dayIndex) ?? -1 / 0,
2846
2846
  startTime: ((c = z.start) == null ? void 0 : c.time) ?? -1 / 0,
2847
- endDay: ((t = z.end) == null ? void 0 : t.dayIndex) ?? 1 / 0,
2848
- endTime: ((A = z.end) == null ? void 0 : A.time) ?? 1 / 0
2847
+ endDay: ((A = z.end) == null ? void 0 : A.dayIndex) ?? 1 / 0,
2848
+ endTime: ((t = z.end) == null ? void 0 : t.time) ?? 1 / 0
2849
2849
  }, this.getRangeRecords(b).push(a)), a;
2850
2850
  }
2851
2851
  getRangeRecords(b) {
@@ -2868,12 +2868,12 @@ class cd {
2868
2868
  const z = Object.values(this.records), p = [], { dayIndex: o } = b;
2869
2869
  return z.forEach(({ data: e, ranges: O }) => {
2870
2870
  O.filter((c) => c.startDay <= o && c.endDay >= o).forEach((c) => {
2871
- const t = o === c.startDay, A = o === c.endDay, a = t ? c.startTime : 0, r = new Date(b.startDate.getTime() + a), i = A ? c.endTime : OM, n = new Date(b.endDate.getTime() + i), W = a === 0 && i === OM, L = e.order || 0;
2871
+ const A = o === c.startDay, t = o === c.endDay, a = A ? c.startTime : 0, r = new Date(b.startDate.getTime() + a), i = t ? c.endTime : OM, n = new Date(b.endDate.getTime() + i), W = a === 0 && i === OM, L = e.order || 0;
2872
2872
  p.push({
2873
2873
  ...c,
2874
2874
  data: e,
2875
- onStart: t,
2876
- onEnd: A,
2875
+ onStart: A,
2876
+ onEnd: t,
2877
2877
  startTime: a,
2878
2878
  startDate: r,
2879
2879
  endTime: i,
@@ -3049,7 +3049,7 @@ function Td(M, b) {
3049
3049
  const z = new Intl.DateTimeFormat().resolvedOptions().locale;
3050
3050
  let p;
3051
3051
  t1(M) ? p = M : t3(M, "id") && (p = M.id), p = (p || z).toLowerCase();
3052
- const o = Object.keys(b), e = (t) => o.find((A) => A.toLowerCase() === t);
3052
+ const o = Object.keys(b), e = (A) => o.find((t) => t.toLowerCase() === A);
3053
3053
  p = e(p) || e(p.substring(0, 2)) || z;
3054
3054
  const O = {
3055
3055
  ...b["en-IE"],
@@ -3068,7 +3068,7 @@ class lM {
3068
3068
  O,
3069
3069
  Ml,
3070
3070
  bl
3071
- ), this.pageCache = new Fz(c, q3, Od), this.id = p, this.daysInWeek = E0, this.firstDayOfWeek = r5(o, 1, E0), this.masks = e, this.timezone = z || void 0, this.hourLabels = this.getHourLabels(), this.dayNames = xM("long", this.id), this.dayNamesShort = xM("short", this.id), this.dayNamesShorter = this.dayNamesShort.map((t) => t.substring(0, 2)), this.dayNamesNarrow = xM("narrow", this.id), this.monthNames = Zz("long", this.id), this.monthNamesShort = Zz("short", this.id), this.relativeTimeNames = ol(this.id);
3071
+ ), this.pageCache = new Fz(c, q3, Od), this.id = p, this.daysInWeek = E0, this.firstDayOfWeek = r5(o, 1, E0), this.masks = e, this.timezone = z || void 0, this.hourLabels = this.getHourLabels(), this.dayNames = xM("long", this.id), this.dayNamesShort = xM("short", this.id), this.dayNamesShorter = this.dayNamesShort.map((A) => A.substring(0, 2)), this.dayNamesNarrow = xM("narrow", this.id), this.monthNames = Zz("long", this.id), this.monthNamesShort = Zz("short", this.id), this.relativeTimeNames = ol(this.id);
3072
3072
  }
3073
3073
  formatDate(b, z) {
3074
3074
  return Al(b, z, this);
@@ -3079,16 +3079,16 @@ class lM {
3079
3079
  toDate(b, z = {}) {
3080
3080
  const p = /* @__PURE__ */ new Date(NaN);
3081
3081
  let o = p;
3082
- const { fillDate: e, mask: O, patch: c, rules: t } = z;
3083
- if (o1(b) ? (z.type = "number", o = /* @__PURE__ */ new Date(+b)) : t1(b) ? (z.type = "string", o = b ? Qz(b, O || "iso", this) : p) : b2(b) ? (z.type = "date", o = new Date(b.getTime())) : wb(b) && (z.type = "object", o = this.getDateFromParts(b)), o && (c || t)) {
3084
- let A = this.getDateParts(o);
3082
+ const { fillDate: e, mask: O, patch: c, rules: A } = z;
3083
+ if (o1(b) ? (z.type = "number", o = /* @__PURE__ */ new Date(+b)) : t1(b) ? (z.type = "string", o = b ? Qz(b, O || "iso", this) : p) : b2(b) ? (z.type = "date", o = new Date(b.getTime())) : wb(b) && (z.type = "object", o = this.getDateFromParts(b)), o && (c || A)) {
3084
+ let t = this.getDateParts(o);
3085
3085
  if (c && e != null) {
3086
3086
  const a = this.getDateParts(this.toDate(e));
3087
- A = this.getDateParts(
3088
- this.toDate({ ...a, ...a3(A, Hd[c]) })
3087
+ t = this.getDateParts(
3088
+ this.toDate({ ...a, ...a3(t, Hd[c]) })
3089
3089
  );
3090
3090
  }
3091
- t && (A = tl(A, t)), o = this.getDateFromParts(A);
3091
+ A && (t = tl(t, A)), o = this.getDateFromParts(t);
3092
3092
  }
3093
3093
  return o || p;
3094
3094
  }
@@ -3635,26 +3635,26 @@ function g3(M, b = "") {
3635
3635
  day: e = z.getDate(),
3636
3636
  hours: O = 0,
3637
3637
  minutes: c = 0,
3638
- seconds: t = 0,
3639
- milliseconds: A = 0
3638
+ seconds: A = 0,
3639
+ milliseconds: t = 0
3640
3640
  } = M;
3641
3641
  if (b) {
3642
3642
  const a = `${W0(p, 4)}-${W0(o, 2)}-${W0(e, 2)}T${W0(
3643
3643
  O,
3644
3644
  2
3645
- )}:${W0(c, 2)}:${W0(t, 2)}.${W0(A, 3)}`;
3645
+ )}:${W0(c, 2)}:${W0(A, 2)}.${W0(t, 3)}`;
3646
3646
  return y5(a, { timeZone: b });
3647
3647
  }
3648
- return new Date(p, o - 1, e, O, c, t, A);
3648
+ return new Date(p, o - 1, e, O, c, A, t);
3649
3649
  }
3650
3650
  function Jd(M, b) {
3651
3651
  let z = new Date(M.getTime());
3652
3652
  b.timezone && (z = new Date(
3653
3653
  M.toLocaleString("en-US", { timeZone: b.timezone })
3654
3654
  ), z.setMilliseconds(M.getMilliseconds()));
3655
- const p = z.getMilliseconds(), o = z.getSeconds(), e = z.getMinutes(), O = z.getHours(), c = p + o * u3 + e * f3 + O * R3, t = z.getMonth() + 1, A = z.getFullYear(), a = b.getMonthParts(t, A), r = z.getDate(), i = a.numDays - r + 1, n = z.getDay() + 1, W = Math.floor((r - 1) / 7 + 1), L = Math.floor((a.numDays - r) / 7 + 1), v = Math.ceil(
3655
+ const p = z.getMilliseconds(), o = z.getSeconds(), e = z.getMinutes(), O = z.getHours(), c = p + o * u3 + e * f3 + O * R3, A = z.getMonth() + 1, t = z.getFullYear(), a = b.getMonthParts(A, t), r = z.getDate(), i = a.numDays - r + 1, n = z.getDay() + 1, W = Math.floor((r - 1) / 7 + 1), L = Math.floor((a.numDays - r) / 7 + 1), v = Math.ceil(
3656
3656
  (r + Math.abs(a.firstWeekday - a.firstDayOfWeek)) / 7
3657
- ), f = a.numWeeks - v + 1, X = a.weeknumbers[v], _ = h3(A, t, r);
3657
+ ), f = a.numWeeks - v + 1, X = a.weeknumbers[v], _ = h3(t, A, r);
3658
3658
  return {
3659
3659
  milliseconds: p,
3660
3660
  seconds: o,
@@ -3669,8 +3669,8 @@ function Jd(M, b) {
3669
3669
  week: v,
3670
3670
  weekFromEnd: f,
3671
3671
  weeknumber: X,
3672
- month: t,
3673
- year: A,
3672
+ month: A,
3673
+ year: t,
3674
3674
  date: z,
3675
3675
  dateTime: z.getTime(),
3676
3676
  dayIndex: _,
@@ -3682,12 +3682,12 @@ function Ml(M, b, z) {
3682
3682
  return `${b}-${M}-${z}`;
3683
3683
  }
3684
3684
  function bl(M, b, z) {
3685
- const p = b % 4 === 0 && b % 100 !== 0 || b % 400 === 0, o = new Date(b, M - 1, 1), e = o.getDay() + 1, O = M === 2 && p ? 29 : Yd[M - 1], c = z - 1, t = I5(o, {
3685
+ const p = b % 4 === 0 && b % 100 !== 0 || b % 400 === 0, o = new Date(b, M - 1, 1), e = o.getDay() + 1, O = M === 2 && p ? 29 : Yd[M - 1], c = z - 1, A = I5(o, {
3686
3686
  weekStartsOn: c
3687
- }), A = [], a = [];
3688
- for (let r = 0; r < t; r++) {
3687
+ }), t = [], a = [];
3688
+ for (let r = 0; r < A; r++) {
3689
3689
  const i = H0(o, r * 7);
3690
- A.push(Y5(i, { weekStartsOn: c })), a.push(G5(i));
3690
+ t.push(Y5(i, { weekStartsOn: c })), a.push(G5(i));
3691
3691
  }
3692
3692
  return {
3693
3693
  firstDayOfWeek: z,
@@ -3695,10 +3695,10 @@ function bl(M, b, z) {
3695
3695
  inLeapYear: p,
3696
3696
  firstWeekday: e,
3697
3697
  numDays: O,
3698
- numWeeks: t,
3698
+ numWeeks: A,
3699
3699
  month: M,
3700
3700
  year: b,
3701
- weeknumbers: A,
3701
+ weeknumbers: t,
3702
3702
  isoWeeknumbers: a
3703
3703
  };
3704
3704
  }
@@ -3786,8 +3786,8 @@ function cl(M, b, z, p) {
3786
3786
  return O;
3787
3787
  if (isNaN(O))
3788
3788
  return c.value;
3789
- const t = Math.abs(O - z);
3790
- return Math.abs(c.value - z) < t ? c.value : O;
3789
+ const A = Math.abs(O - z);
3790
+ return Math.abs(c.value - z) < A ? c.value : O;
3791
3791
  }, NaN);
3792
3792
  return isNaN(e) ? z : e;
3793
3793
  }
@@ -3820,12 +3820,12 @@ function Qz(M, b, z) {
3820
3820
  return f0[a] ? "" : a.slice(1, a.length - 1);
3821
3821
  }), !O)
3822
3822
  return !1;
3823
- const t = /* @__PURE__ */ new Date();
3823
+ const A = /* @__PURE__ */ new Date();
3824
3824
  c.hours != null && (c.isPm === !0 && +c.hours != 12 ? c.hours = +c.hours + 12 : c.isPm === !1 && +c.hours == 12 && (c.hours = 0));
3825
- let A;
3826
- return c.timezoneOffset != null ? (c.minutes = +(c.minutes || 0) - +c.timezoneOffset, A = new Date(
3825
+ let t;
3826
+ return c.timezoneOffset != null ? (c.minutes = +(c.minutes || 0) - +c.timezoneOffset, t = new Date(
3827
3827
  Date.UTC(
3828
- c.year || t.getFullYear(),
3828
+ c.year || A.getFullYear(),
3829
3829
  c.month || 0,
3830
3830
  c.day || 1,
3831
3831
  c.hours || 0,
@@ -3833,15 +3833,15 @@ function Qz(M, b, z) {
3833
3833
  c.seconds || 0,
3834
3834
  c.milliseconds || 0
3835
3835
  )
3836
- )) : A = z.getDateFromParts({
3837
- year: c.year || t.getFullYear(),
3836
+ )) : t = z.getDateFromParts({
3837
+ year: c.year || A.getFullYear(),
3838
3838
  month: (c.month || 0) + 1,
3839
3839
  day: c.day || 1,
3840
3840
  hours: c.hours || 0,
3841
3841
  minutes: c.minutes || 0,
3842
3842
  seconds: c.seconds || 0,
3843
3843
  milliseconds: c.milliseconds || 0
3844
- }), A;
3844
+ }), t;
3845
3845
  }).find((o) => o) || new Date(M);
3846
3846
  }
3847
3847
  function Al(M, b, z) {
@@ -3913,12 +3913,12 @@ function w3(M) {
3913
3913
  const { visibility: b } = M, z = b === "click", p = b === "hover", o = b === "hover-focus", e = b === "focus";
3914
3914
  M.autoHide = !z;
3915
3915
  let O = !1, c = !1;
3916
- const t = (W) => {
3916
+ const A = (W) => {
3917
3917
  z && (y3({
3918
3918
  ...M,
3919
3919
  target: M.target || W.currentTarget
3920
3920
  }), W.stopPropagation());
3921
- }, A = (W) => {
3921
+ }, t = (W) => {
3922
3922
  O || (O = !0, (p || o) && zb({
3923
3923
  ...M,
3924
3924
  target: M.target || W.currentTarget
@@ -3935,16 +3935,16 @@ function w3(M) {
3935
3935
  }, n = {};
3936
3936
  switch (M.visibility) {
3937
3937
  case "click":
3938
- n.click = t;
3938
+ n.click = A;
3939
3939
  break;
3940
3940
  case "hover":
3941
- n.mousemove = A, n.mouseleave = a;
3941
+ n.mousemove = t, n.mouseleave = a;
3942
3942
  break;
3943
3943
  case "focus":
3944
3944
  n.focusin = r, n.focusout = i;
3945
3945
  break;
3946
3946
  case "hover-focus":
3947
- n.mousemove = A, n.mouseleave = a, n.focusin = r, n.focusout = i;
3947
+ n.mousemove = t, n.mouseleave = a, n.focusin = r, n.focusout = i;
3948
3948
  break;
3949
3949
  }
3950
3950
  return n;
@@ -3982,23 +3982,23 @@ const Jz = (M) => {
3982
3982
  }) => {
3983
3983
  if (!M || !M.addEventListener || !Y1(b))
3984
3984
  return null;
3985
- let e = 0, O = 0, c = null, t = !1;
3986
- function A(r) {
3985
+ let e = 0, O = 0, c = null, A = !1;
3986
+ function t(r) {
3987
3987
  const i = r.changedTouches[0];
3988
- e = i.screenX, O = i.screenY, c = (/* @__PURE__ */ new Date()).getTime(), t = !0;
3988
+ e = i.screenX, O = i.screenY, c = (/* @__PURE__ */ new Date()).getTime(), A = !0;
3989
3989
  }
3990
3990
  function a(r) {
3991
- if (!t || !c)
3991
+ if (!A || !c)
3992
3992
  return;
3993
- t = !1;
3993
+ A = !1;
3994
3994
  const i = r.changedTouches[0], n = i.screenX - e, W = i.screenY - O;
3995
3995
  if ((/* @__PURE__ */ new Date()).getTime() - c < z && Math.abs(n) >= p && Math.abs(W) <= o) {
3996
3996
  const v = { toLeft: !1, toRight: !1 };
3997
3997
  n < 0 ? v.toLeft = !0 : v.toRight = !0, b(v);
3998
3998
  }
3999
3999
  }
4000
- return T1(M, "touchstart", A, { passive: !0 }), T1(M, "touchend", a, { passive: !0 }), () => {
4001
- X1(M, "touchstart", A), X1(M, "touchend", a);
4000
+ return T1(M, "touchstart", t, { passive: !0 }), T1(M, "touchend", a, { passive: !0 }), () => {
4001
+ X1(M, "touchstart", t), X1(M, "touchend", a);
4002
4002
  };
4003
4003
  }, eM = {}, rl = (M, b = 10) => {
4004
4004
  eM[M] = Date.now() + b;
@@ -4030,7 +4030,7 @@ function ql(M) {
4030
4030
  const { selector: n = ":root", darkClass: W = "dark" } = M.value, L = document.querySelector(n);
4031
4031
  b.value = L.classList.contains(W);
4032
4032
  }
4033
- function t(n) {
4033
+ function A(n) {
4034
4034
  const { selector: W = ":root", darkClass: L = "dark" } = n;
4035
4035
  if (T3() && W && L) {
4036
4036
  const v = document.querySelector(W);
@@ -4040,12 +4040,12 @@ function ql(M) {
4040
4040
  }), b.value = v.classList.contains(L));
4041
4041
  }
4042
4042
  }
4043
- function A() {
4043
+ function t() {
4044
4044
  r();
4045
4045
  const n = typeof M.value;
4046
- n === "string" && M.value.toLowerCase() === "system" ? O() : n === "object" ? t(M.value) : b.value = !!M.value;
4046
+ n === "string" && M.value.toLowerCase() === "system" ? O() : n === "object" ? A(M.value) : b.value = !!M.value;
4047
4047
  }
4048
- const a = C0(() => M.value, () => A(), {
4048
+ const a = C0(() => M.value, () => t(), {
4049
4049
  immediate: !0
4050
4050
  });
4051
4051
  function r() {
@@ -4082,8 +4082,8 @@ function Tb(M, b, z = Wl) {
4082
4082
  z
4083
4083
  );
4084
4084
  return Object.entries(e).forEach(([O, c]) => {
4085
- let t = p;
4086
- c === !0 || t1(c) ? (t = t1(c) ? c : t, e[O] = { color: t }) : R1(c) && (Cz(c, ll) ? e[O] = { ...c } : e[O] = {}), a2(e[O], { color: t });
4085
+ let A = p;
4086
+ c === !0 || t1(c) ? (A = t1(c) ? c : A, e[O] = { color: A }) : R1(c) && (Cz(c, ll) ? e[O] = { ...c } : e[O] = {}), a2(e[O], { color: A });
4087
4087
  }), e;
4088
4088
  }
4089
4089
  class ul {
@@ -4104,40 +4104,40 @@ class ul {
4104
4104
  const { key: e, highlight: O } = b;
4105
4105
  if (!O)
4106
4106
  return;
4107
- const { highlights: c } = o, { base: t, start: A, end: a } = O;
4107
+ const { highlights: c } = o, { base: A, start: t, end: a } = O;
4108
4108
  z && p ? c.push({
4109
- ...A,
4109
+ ...t,
4110
4110
  key: e,
4111
- wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${A.color}`,
4112
- class: [`vc-highlight vc-highlight-bg-${A.fillMode}`, A.class],
4111
+ wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${t.color}`,
4112
+ class: [`vc-highlight vc-highlight-bg-${t.fillMode}`, t.class],
4113
4113
  contentClass: [
4114
- `vc-attr vc-highlight-content-${A.fillMode} vc-${A.color}`,
4115
- A.contentClass
4114
+ `vc-attr vc-highlight-content-${t.fillMode} vc-${t.color}`,
4115
+ t.contentClass
4116
4116
  ]
4117
4117
  }) : z ? (c.push({
4118
- ...t,
4118
+ ...A,
4119
4119
  key: `${e}-base`,
4120
- wrapperClass: `vc-day-layer vc-day-box-right-center vc-attr vc-${t.color}`,
4120
+ wrapperClass: `vc-day-layer vc-day-box-right-center vc-attr vc-${A.color}`,
4121
4121
  class: [
4122
- `vc-highlight vc-highlight-base-start vc-highlight-bg-${t.fillMode}`,
4123
- t.class
4122
+ `vc-highlight vc-highlight-base-start vc-highlight-bg-${A.fillMode}`,
4123
+ A.class
4124
4124
  ]
4125
4125
  }), c.push({
4126
- ...A,
4126
+ ...t,
4127
4127
  key: e,
4128
- wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${A.color}`,
4129
- class: [`vc-highlight vc-highlight-bg-${A.fillMode}`, A.class],
4128
+ wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${t.color}`,
4129
+ class: [`vc-highlight vc-highlight-bg-${t.fillMode}`, t.class],
4130
4130
  contentClass: [
4131
- `vc-attr vc-highlight-content-${A.fillMode} vc-${A.color}`,
4132
- A.contentClass
4131
+ `vc-attr vc-highlight-content-${t.fillMode} vc-${t.color}`,
4132
+ t.contentClass
4133
4133
  ]
4134
4134
  })) : p ? (c.push({
4135
- ...t,
4135
+ ...A,
4136
4136
  key: `${e}-base`,
4137
- wrapperClass: `vc-day-layer vc-day-box-left-center vc-attr vc-${t.color}`,
4137
+ wrapperClass: `vc-day-layer vc-day-box-left-center vc-attr vc-${A.color}`,
4138
4138
  class: [
4139
- `vc-highlight vc-highlight-base-end vc-highlight-bg-${t.fillMode}`,
4140
- t.class
4139
+ `vc-highlight vc-highlight-base-end vc-highlight-bg-${A.fillMode}`,
4140
+ A.class
4141
4141
  ]
4142
4142
  }), c.push({
4143
4143
  ...a,
@@ -4149,16 +4149,16 @@ class ul {
4149
4149
  a.contentClass
4150
4150
  ]
4151
4151
  })) : c.push({
4152
- ...t,
4152
+ ...A,
4153
4153
  key: `${e}-middle`,
4154
- wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${t.color}`,
4154
+ wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${A.color}`,
4155
4155
  class: [
4156
- `vc-highlight vc-highlight-base-middle vc-highlight-bg-${t.fillMode}`,
4157
- t.class
4156
+ `vc-highlight vc-highlight-base-middle vc-highlight-bg-${A.fillMode}`,
4157
+ A.class
4158
4158
  ],
4159
4159
  contentClass: [
4160
- `vc-attr vc-highlight-content-${t.fillMode} vc-${t.color}`,
4161
- t.contentClass
4160
+ `vc-attr vc-highlight-content-${A.fillMode} vc-${A.color}`,
4161
+ A.contentClass
4162
4162
  ]
4163
4163
  });
4164
4164
  }
@@ -4177,13 +4177,13 @@ class Db {
4177
4177
  const { key: e } = b, O = b[this.type];
4178
4178
  if (!e || !O)
4179
4179
  return;
4180
- const c = o[this.collectionType], { base: t, start: A, end: a } = O;
4180
+ const c = o[this.collectionType], { base: A, start: t, end: a } = O;
4181
4181
  z ? c.push({
4182
- ...A,
4182
+ ...t,
4183
4183
  key: e,
4184
4184
  class: [
4185
- `vc-${this.type} vc-${this.type}-start vc-${A.color} vc-attr`,
4186
- A.class
4185
+ `vc-${this.type} vc-${this.type}-start vc-${t.color} vc-attr`,
4186
+ t.class
4187
4187
  ]
4188
4188
  }) : p ? c.push({
4189
4189
  ...a,
@@ -4193,11 +4193,11 @@ class Db {
4193
4193
  a.class
4194
4194
  ]
4195
4195
  }) : c.push({
4196
- ...t,
4196
+ ...A,
4197
4197
  key: e,
4198
4198
  class: [
4199
- `vc-${this.type} vc-${this.type}-base vc-${t.color} vc-attr`,
4200
- t.class
4199
+ `vc-${this.type} vc-${this.type}-base vc-${A.color} vc-attr`,
4200
+ A.class
4201
4201
  ]
4202
4202
  });
4203
4203
  }
@@ -4273,19 +4273,19 @@ function $3(M) {
4273
4273
  masks: M.masks
4274
4274
  };
4275
4275
  return new lM(i, M.timezone);
4276
- }), O = l(() => e.value.masks), c = l(() => M.minDate), t = l(() => M.maxDate), A = l(() => {
4276
+ }), O = l(() => e.value.masks), c = l(() => M.minDate), A = l(() => M.maxDate), t = l(() => {
4277
4277
  const i = M.disabledDates ? [...M.disabledDates] : [];
4278
4278
  return c.value != null && i.push({
4279
4279
  start: null,
4280
4280
  end: H0(e.value.toDate(c.value), -1)
4281
- }), t.value != null && i.push({
4282
- start: H0(e.value.toDate(t.value), 1),
4281
+ }), A.value != null && i.push({
4282
+ start: H0(e.value.toDate(A.value), 1),
4283
4283
  end: null
4284
4284
  }), e.value.ranges(i);
4285
4285
  }), a = l(() => new N3(
4286
4286
  {
4287
4287
  key: "disabled",
4288
- dates: A.value,
4288
+ dates: t.value,
4289
4289
  order: 100
4290
4290
  },
4291
4291
  o.value,
@@ -4298,8 +4298,8 @@ function $3(M) {
4298
4298
  locale: e,
4299
4299
  masks: O,
4300
4300
  minDate: c,
4301
- maxDate: t,
4302
- disabledDates: A,
4301
+ maxDate: A,
4302
+ disabledDates: t,
4303
4303
  disabledAttribute: a
4304
4304
  };
4305
4305
  return P0(D3, r), r;
@@ -4372,7 +4372,7 @@ const ml = {
4372
4372
  "update:pages"
4373
4373
  ], P3 = Symbol("__vc_calendar_context__");
4374
4374
  function Bl(M, { slots: b, emit: z }) {
4375
- const p = A0(null), o = A0(null), e = A0((/* @__PURE__ */ new Date()).getDate()), O = A0(!1), c = A0(Symbol()), t = A0(Symbol()), A = A0(M.view), a = A0([]), r = A0("");
4375
+ const p = A0(null), o = A0(null), e = A0((/* @__PURE__ */ new Date()).getDate()), O = A0(!1), c = A0(Symbol()), A = A0(Symbol()), t = A0(M.view), a = A0([]), r = A0("");
4376
4376
  let i = null, n = null;
4377
4377
  k3(b);
4378
4378
  const {
@@ -4389,11 +4389,11 @@ function Bl(M, { slots: b, emit: z }) {
4389
4389
  () => M.minPage || (_.value ? K(_.value) : null)
4390
4390
  ), R = l(
4391
4391
  () => M.maxPage || (C.value ? K(C.value) : null)
4392
- ), I = l(() => M.navVisibility), b0 = l(() => !!M.showWeeknumbers), U = l(() => !!M.showIsoWeeknumbers), p0 = l(() => A.value === "monthly"), q0 = l(() => A.value === "weekly"), w0 = l(() => A.value === "daily"), u0 = () => {
4392
+ ), I = l(() => M.navVisibility), b0 = l(() => !!M.showWeeknumbers), U = l(() => !!M.showIsoWeeknumbers), p0 = l(() => t.value === "monthly"), q0 = l(() => t.value === "weekly"), w0 = l(() => t.value === "daily"), u0 = () => {
4393
4393
  O.value = !0, z("transition-start");
4394
4394
  }, S = () => {
4395
4395
  O.value = !1, z("transition-end"), i && (i.resolve(!0), i = null);
4396
- }, n0 = (D, s, y = A.value) => s3(D, s, y, f.value), K = (D) => i3(D, A.value, f.value), N0 = (D) => {
4396
+ }, n0 = (D, s, y = t.value) => s3(D, s, y, f.value), K = (D) => i3(D, t.value, f.value), N0 = (D) => {
4397
4397
  !h.value || !k0.value || (D.isDisabled = k0.value.cellExists(
4398
4398
  h.value.key,
4399
4399
  D.dayIndex
@@ -4446,7 +4446,7 @@ function Bl(M, { slots: b, emit: z }) {
4446
4446
  const D = $0();
4447
4447
  return A1(D) ? D : K(/* @__PURE__ */ new Date());
4448
4448
  }, B = (D, s = {}) => {
4449
- const { view: y = A.value, position: x = 1, force: o0 } = s, B0 = x > 0 ? 1 - x : -(P.value + x);
4449
+ const { view: y = t.value, position: x = 1, force: o0 } = s, B0 = x > 0 ? 1 - x : -(P.value + x);
4450
4450
  let V0 = n0(D, B0, y), G0 = n0(V0, P.value - 1, y);
4451
4451
  return o0 || (Mb(V0, J.value) ? V0 = J.value : dM(G0, R.value) && (V0 = n0(R.value, 1 - P.value)), G0 = n0(V0, P.value - 1)), { fromPage: V0, toPage: G0 };
4452
4452
  }, N = (D, s, y = "") => {
@@ -4466,7 +4466,7 @@ function Bl(M, { slots: b, emit: z }) {
4466
4466
  G1.push(
4467
4467
  f.value.getPage({
4468
4468
  ...TM,
4469
- view: A.value,
4469
+ view: t.value,
4470
4470
  titlePosition: M.titlePosition,
4471
4471
  trimWeeks: M.trimWeeks,
4472
4472
  position: Y0,
@@ -4502,10 +4502,10 @@ function Bl(M, { slots: b, emit: z }) {
4502
4502
  ), od(
4503
4503
  s.fromPage,
4504
4504
  s.toPage,
4505
- A.value,
4505
+ t.value,
4506
4506
  f.value
4507
4507
  ).map((o0) => zd(o0, J.value, R.value)).some((o0) => o0);
4508
- }, l0 = (D, s = {}) => t0(Q(D), s), O0 = l(() => l0(-V.value)), s0 = l(() => l0(V.value)), d1 = async (D, s = {}) => !s.force && !t0(D, s) ? !1 : (s.fromPage && !pd(s.fromPage, k.value) && (P2({ id: c.value, hideDelay: 0 }), s.view && (rl("view", 10), A.value = s.view), await E({
4508
+ }, l0 = (D, s = {}) => t0(Q(D), s), O0 = l(() => l0(-V.value)), s0 = l(() => l0(V.value)), d1 = async (D, s = {}) => !s.force && !t0(D, s) ? !1 : (s.fromPage && !pd(s.fromPage, k.value) && (P2({ id: c.value, hideDelay: 0 }), s.view && (rl("view", 10), t.value = s.view), await E({
4509
4509
  ...s,
4510
4510
  page: s.fromPage,
4511
4511
  position: 1,
@@ -4596,13 +4596,13 @@ function Bl(M, { slots: b, emit: z }) {
4596
4596
  () => E()
4597
4597
  ), C0(
4598
4598
  () => M.view,
4599
- () => A.value = M.view
4599
+ () => t.value = M.view
4600
4600
  ), C0(
4601
- () => A.value,
4601
+ () => t.value,
4602
4602
  () => {
4603
4603
  il("view", () => {
4604
4604
  E();
4605
- }), z("update:view", A.value);
4605
+ }), z("update:view", t.value);
4606
4606
  }
4607
4607
  ), C0(
4608
4608
  () => e.value,
@@ -4620,8 +4620,8 @@ function Bl(M, { slots: b, emit: z }) {
4620
4620
  focusedDay: o,
4621
4621
  inTransition: O,
4622
4622
  navPopoverId: c,
4623
- dayPopoverId: t,
4624
- view: A,
4623
+ dayPopoverId: A,
4624
+ view: t,
4625
4625
  pages: a,
4626
4626
  transitionName: r,
4627
4627
  theme: W,
@@ -4711,10 +4711,10 @@ const Nl = M0({
4711
4711
  function c(S) {
4712
4712
  S && (O.direction = S.split("-")[0]);
4713
4713
  }
4714
- function t({ placement: S, options: n0 }) {
4714
+ function A({ placement: S, options: n0 }) {
4715
4715
  c(S || n0?.placement);
4716
4716
  }
4717
- const A = l(() => ({
4717
+ const t = l(() => ({
4718
4718
  placement: O.placement,
4719
4719
  strategy: O.positionFixed ? "fixed" : "absolute",
4720
4720
  boundary: "",
@@ -4723,11 +4723,11 @@ const Nl = M0({
4723
4723
  name: "onUpdate",
4724
4724
  enabled: !0,
4725
4725
  phase: "afterWrite",
4726
- fn: t
4726
+ fn: A
4727
4727
  },
4728
4728
  ...O.modifiers || []
4729
4729
  ],
4730
- onFirstUpdate: t
4730
+ onFirstUpdate: A
4731
4731
  })), a = l(() => {
4732
4732
  const S = O.direction === "left" || O.direction === "right";
4733
4733
  let n0 = "";
@@ -4746,7 +4746,7 @@ const Nl = M0({
4746
4746
  !S || !p.value || (e && e.state.elements.reference !== S && r(), e ? e.update() : e = RO(
4747
4747
  S,
4748
4748
  p.value,
4749
- A.value
4749
+ t.value
4750
4750
  ));
4751
4751
  });
4752
4752
  }
@@ -4969,13 +4969,13 @@ const Cb = /* @__PURE__ */ S1(Nl, [["render", yl]]), wl = { class: "vc-day-popov
4969
4969
  __name: "CalendarDayPopover",
4970
4970
  setup(M) {
4971
4971
  const { dayPopoverId: b, displayMode: z, color: p, masks: o, locale: e } = U1();
4972
- function O(t, A) {
4973
- return e.value.formatDate(t, A);
4972
+ function O(A, t) {
4973
+ return e.value.formatDate(A, t);
4974
4974
  }
4975
- function c(t) {
4976
- return e.value.formatDate(t.date, o.value.dayPopover);
4975
+ function c(A) {
4976
+ return e.value.formatDate(A.date, o.value.dayPopover);
4977
4977
  }
4978
- return (t, A) => (q(), e0(Cb, {
4978
+ return (A, t) => (q(), e0(Cb, {
4979
4979
  id: m(b),
4980
4980
  class: H([`vc-${m(p)}`, `vc-${m(z)}`])
4981
4981
  }, {
@@ -5094,7 +5094,7 @@ const c6 = /* @__PURE__ */ S1(z6, [["render", e6]]), t6 = /* @__PURE__ */ Object
5094
5094
  movePrev: e,
5095
5095
  canMoveNext: O,
5096
5096
  moveNext: c
5097
- } = U1(), t = l(() => {
5097
+ } = U1(), A = l(() => {
5098
5098
  switch (b.page.titlePosition) {
5099
5099
  case "left":
5100
5100
  return "bottom-start";
@@ -5103,12 +5103,12 @@ const c6 = /* @__PURE__ */ S1(z6, [["render", e6]]), t6 = /* @__PURE__ */ Object
5103
5103
  default:
5104
5104
  return "bottom";
5105
5105
  }
5106
- }), A = l(() => {
5106
+ }), t = l(() => {
5107
5107
  const { page: L } = b;
5108
5108
  return {
5109
5109
  id: z.value,
5110
5110
  visibility: p.value,
5111
- placement: t.value,
5111
+ placement: A.value,
5112
5112
  modifiers: [{ name: "flip", options: { fallbackPlacements: ["bottom"] } }],
5113
5113
  data: { page: L },
5114
5114
  isInteractive: !0
@@ -5175,7 +5175,7 @@ const c6 = /* @__PURE__ */ S1(z6, [["render", e6]]), t6 = /* @__PURE__ */ Object
5175
5175
  _: 1
5176
5176
  }, 8, ["title"])
5177
5177
  ])), [
5178
- [m(X3), m(A)]
5178
+ [m(X3), m(t)]
5179
5179
  ])
5180
5180
  ]),
5181
5181
  _: 1
@@ -5212,18 +5212,18 @@ const c6 = /* @__PURE__ */ S1(z6, [["render", e6]]), t6 = /* @__PURE__ */ Object
5212
5212
  }), x3 = Symbol("__vc_page_context__");
5213
5213
  function i6(M) {
5214
5214
  const { locale: b, getDateAddress: z, canMove: p } = U1();
5215
- function o(c, t) {
5216
- const { month: A, year: a } = z(/* @__PURE__ */ new Date());
5215
+ function o(c, A) {
5216
+ const { month: t, year: a } = z(/* @__PURE__ */ new Date());
5217
5217
  return B3().map((r, i) => {
5218
5218
  const n = i + 1;
5219
5219
  return {
5220
5220
  month: n,
5221
5221
  year: c,
5222
5222
  id: bd(n, c),
5223
- label: b.value.formatDate(r, t),
5223
+ label: b.value.formatDate(r, A),
5224
5224
  ariaLabel: b.value.formatDate(r, "MMMM"),
5225
5225
  isActive: n === M.value.month && c === M.value.year,
5226
- isCurrent: n === A && c === a,
5226
+ isCurrent: n === t && c === a,
5227
5227
  isDisabled: !p(
5228
5228
  { month: n, year: c },
5229
5229
  { position: M.value.position }
@@ -5231,9 +5231,9 @@ function i6(M) {
5231
5231
  };
5232
5232
  });
5233
5233
  }
5234
- function e(c, t) {
5235
- const { year: A } = z(/* @__PURE__ */ new Date()), { position: a } = M.value, r = [];
5236
- for (let i = c; i <= t; i += 1) {
5234
+ function e(c, A) {
5235
+ const { year: t } = z(/* @__PURE__ */ new Date()), { position: a } = M.value, r = [];
5236
+ for (let i = c; i <= A; i += 1) {
5237
5237
  const n = [...Array(12).keys()].some(
5238
5238
  (W) => p({ month: W + 1, year: i }, { position: a })
5239
5239
  );
@@ -5243,7 +5243,7 @@ function i6(M) {
5243
5243
  label: i.toString(),
5244
5244
  ariaLabel: i.toString(),
5245
5245
  isActive: i === M.value.year,
5246
- isCurrent: i === A,
5246
+ isCurrent: i === t,
5247
5247
  isDisabled: !n
5248
5248
  });
5249
5249
  }
@@ -5263,7 +5263,7 @@ function I3() {
5263
5263
  const s6 = { class: "vc-nav-header" }, q6 = ["disabled"], d6 = ["disabled"], l6 = { class: "vc-nav-items" }, W6 = ["data-id", "aria-label", "disabled", "onClick", "onKeydown"], u6 = /* @__PURE__ */ M0({
5264
5264
  __name: "CalendarNav",
5265
5265
  setup(M) {
5266
- const { masks: b, move: z } = U1(), { page: p, getMonthItems: o, getYearItems: e } = I3(), O = A0(!0), c = 12, t = A0(p.value.year), A = A0(i(p.value.year)), a = A0(null);
5266
+ const { masks: b, move: z } = U1(), { page: p, getMonthItems: o, getYearItems: e } = I3(), O = A0(!0), c = 12, A = A0(p.value.year), t = A0(i(p.value.year)), a = A0(null);
5267
5267
  function r() {
5268
5268
  setTimeout(() => {
5269
5269
  if (a.value == null)
@@ -5293,19 +5293,19 @@ const s6 = { class: "vc-nav-header" }, q6 = ["disabled"], d6 = ["disabled"], l6
5293
5293
  w0.value && (O.value && _(), h());
5294
5294
  }
5295
5295
  function X() {
5296
- t.value--;
5296
+ A.value--;
5297
5297
  }
5298
5298
  function _() {
5299
- t.value++;
5299
+ A.value++;
5300
5300
  }
5301
5301
  function C() {
5302
- A.value--;
5302
+ t.value--;
5303
5303
  }
5304
5304
  function h() {
5305
- A.value++;
5305
+ t.value++;
5306
5306
  }
5307
5307
  const T = l(
5308
- () => o(t.value, b.value.navMonths).map((K) => ({
5308
+ () => o(A.value, b.value.navMonths).map((K) => ({
5309
5309
  ...K,
5310
5310
  click: () => z(
5311
5311
  { month: K.month, year: K.year },
@@ -5313,34 +5313,34 @@ const s6 = { class: "vc-nav-header" }, q6 = ["disabled"], d6 = ["disabled"], l6
5313
5313
  )
5314
5314
  }))
5315
5315
  ), P = l(
5316
- () => o(t.value - 1, b.value.navMonths)
5316
+ () => o(A.value - 1, b.value.navMonths)
5317
5317
  ), V = l(
5318
5318
  () => P.value.some((K) => !K.isDisabled)
5319
5319
  ), k = l(
5320
- () => o(t.value + 1, b.value.navMonths)
5320
+ () => o(A.value + 1, b.value.navMonths)
5321
5321
  ), Z = l(
5322
5322
  () => k.value.some((K) => !K.isDisabled)
5323
5323
  ), J = l(
5324
5324
  () => e(
5325
- W(A.value),
5326
- L(A.value)
5325
+ W(t.value),
5326
+ L(t.value)
5327
5327
  ).map((K) => ({
5328
5328
  ...K,
5329
5329
  click: () => {
5330
- t.value = K.year, O.value = !0, r();
5330
+ A.value = K.year, O.value = !0, r();
5331
5331
  }
5332
5332
  }))
5333
5333
  ), R = l(
5334
5334
  () => e(
5335
- W(A.value - 1),
5336
- L(A.value - 1)
5335
+ W(t.value - 1),
5336
+ L(t.value - 1)
5337
5337
  )
5338
5338
  ), I = l(
5339
5339
  () => R.value.some((K) => !K.isDisabled)
5340
5340
  ), b0 = l(
5341
5341
  () => e(
5342
- W(A.value + 1),
5343
- L(A.value + 1)
5342
+ W(t.value + 1),
5343
+ L(t.value + 1)
5344
5344
  )
5345
5345
  ), U = l(
5346
5346
  () => b0.value.some((K) => !K.isDisabled)
@@ -5350,12 +5350,12 @@ const s6 = { class: "vc-nav-header" }, q6 = ["disabled"], d6 = ["disabled"], l6
5350
5350
  () => O.value ? V.value : I.value
5351
5351
  ), w0 = l(
5352
5352
  () => O.value ? Z.value : U.value
5353
- ), u0 = l(() => c3(J.value.map((K) => K.year))), S = l(() => J1(J.value.map((K) => K.year))), n0 = l(() => O.value ? t.value : `${u0.value} - ${S.value}`);
5353
+ ), u0 = l(() => c3(J.value.map((K) => K.year))), S = l(() => J1(J.value.map((K) => K.year))), n0 = l(() => O.value ? A.value : `${u0.value} - ${S.value}`);
5354
5354
  return ip(() => {
5355
- t.value = p.value.year, r();
5355
+ A.value = p.value.year, r();
5356
5356
  }), C0(
5357
- () => t.value,
5358
- (K) => A.value = i(K)
5357
+ () => A.value,
5358
+ (K) => t.value = i(K)
5359
5359
  ), v1(() => r()), (K, N0) => (q(), u("div", {
5360
5360
  class: "vc-nav-container",
5361
5361
  ref_key: "navContainer",
@@ -5478,8 +5478,8 @@ const s6 = { class: "vc-nav-header" }, q6 = ["disabled"], d6 = ["disabled"], l6
5478
5478
  onDayClick: e,
5479
5479
  onDayMouseenter: O,
5480
5480
  onDayMouseleave: c,
5481
- onDayFocusin: t,
5482
- onDayFocusout: A,
5481
+ onDayFocusin: A,
5482
+ onDayFocusout: t,
5483
5483
  onDayKeydown: a
5484
5484
  } = U1(), r = l(() => M.day), i = l(() => p.value.getCells(r.value)), n = l(
5485
5485
  () => i.value.map((U) => U.data)
@@ -5553,10 +5553,10 @@ const s6 = { class: "vc-nav-header" }, q6 = ["disabled"], d6 = ["disabled"], l6
5553
5553
  c(W.value, U);
5554
5554
  },
5555
5555
  focusin(U) {
5556
- t(W.value, U);
5556
+ A(W.value, U);
5557
5557
  },
5558
5558
  focusout(U) {
5559
- A(W.value, U);
5559
+ t(W.value, U);
5560
5560
  },
5561
5561
  keydown(U) {
5562
5562
  a(W.value, U);
@@ -5602,9 +5602,9 @@ function B6(M, b, z, p, o, e) {
5602
5602
  class: H(M.dayClasses)
5603
5603
  }, [
5604
5604
  M.hasHighlights ? (q(), u("div", L6, [
5605
- (q(!0), u(a0, null, y0(M.highlights, ({ key: t, wrapperClass: A, class: a, style: r }) => (q(), u("div", {
5606
- key: t,
5607
- class: H(A)
5605
+ (q(!0), u(a0, null, y0(M.highlights, ({ key: A, wrapperClass: t, class: a, style: r }) => (q(), u("div", {
5606
+ key: A,
5607
+ class: H(t)
5608
5608
  }, [
5609
5609
  w("div", {
5610
5610
  class: H(a),
@@ -5632,18 +5632,18 @@ function B6(M, b, z, p, o, e) {
5632
5632
  }, 8, ["day", "attributes", "attribute-cells", "dayProps", "dayEvents", "locale"]),
5633
5633
  M.hasDots ? (q(), u("div", v6, [
5634
5634
  w("div", h6, [
5635
- (q(!0), u(a0, null, y0(M.dots, ({ key: t, class: A, style: a }) => (q(), u("span", {
5636
- key: t,
5637
- class: H(A),
5635
+ (q(!0), u(a0, null, y0(M.dots, ({ key: A, class: t, style: a }) => (q(), u("span", {
5636
+ key: A,
5637
+ class: H(t),
5638
5638
  style: a1(a)
5639
5639
  }, null, 6))), 128))
5640
5640
  ])
5641
5641
  ])) : $("", !0),
5642
5642
  M.hasBars ? (q(), u("div", m6, [
5643
5643
  w("div", g6, [
5644
- (q(!0), u(a0, null, y0(M.bars, ({ key: t, class: A, style: a }) => (q(), u("span", {
5645
- key: t,
5646
- class: H(A),
5644
+ (q(!0), u(a0, null, y0(M.bars, ({ key: A, class: t, style: a }) => (q(), u("span", {
5645
+ key: A,
5646
+ class: H(t),
5647
5647
  style: a1(a)
5648
5648
  }, null, 6))), 128))
5649
5649
  ])
@@ -5720,7 +5720,7 @@ const N6 = /* @__PURE__ */ S1(R6, [["render", B6]]), y6 = { class: "vc-weekdays"
5720
5720
  }
5721
5721
  }), C6 = { class: "vc-pane-header-wrapper" };
5722
5722
  function $6(M, b, z, p, o, e) {
5723
- const O = T0("CalendarHeader"), c = T0("CalendarPage"), t = T0("CalendarSlot"), A = T0("CalendarPageProvider"), a = T0("CalendarDayPopover"), r = T0("CalendarNavPopover");
5723
+ const O = T0("CalendarHeader"), c = T0("CalendarPage"), A = T0("CalendarSlot"), t = T0("CalendarPageProvider"), a = T0("CalendarDayPopover"), r = T0("CalendarNavPopover");
5724
5724
  return q(), u(a0, null, [
5725
5725
  w("div", x0({ "data-helptext": "Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year" }, M.$attrs, {
5726
5726
  class: [
@@ -5762,12 +5762,12 @@ function $6(M, b, z, p, o, e) {
5762
5762
  gridTemplateColumns: `repeat(${M.columns}, 1fr)`
5763
5763
  })
5764
5764
  }, [
5765
- (q(!0), u(a0, null, y0(M.pages, (i) => (q(), e0(A, {
5765
+ (q(!0), u(a0, null, y0(M.pages, (i) => (q(), e0(t, {
5766
5766
  key: i.id,
5767
5767
  page: i
5768
5768
  }, {
5769
5769
  default: c0(() => [
5770
- F(t, {
5770
+ F(A, {
5771
5771
  name: "page",
5772
5772
  page: i
5773
5773
  }, {
@@ -5783,7 +5783,7 @@ function $6(M, b, z, p, o, e) {
5783
5783
  ]),
5784
5784
  _: 1
5785
5785
  }, 8, ["name", "onBeforeEnter", "onAfterEnter"]),
5786
- F(t, { name: "footer" })
5786
+ F(A, { name: "footer" })
5787
5787
  ], 2)
5788
5788
  ], 16),
5789
5789
  F(a),
@@ -5833,12 +5833,12 @@ const S6 = /* @__PURE__ */ S1(D6, [["render", $6]]), H3 = Symbol("__vc_date_pick
5833
5833
  ];
5834
5834
  function P6(M, { emit: b, slots: z }) {
5835
5835
  k3(z, { footer: "dp-footer" });
5836
- const p = $3(M), { locale: o, masks: e, disabledAttribute: O } = p, c = A0(!1), t = A0(Symbol()), A = A0(null), a = A0(null), r = A0(["", ""]), i = A0(null), n = A0(null);
5836
+ const p = $3(M), { locale: o, masks: e, disabledAttribute: O } = p, c = A0(!1), A = A0(Symbol()), t = A0(null), a = A0(null), r = A0(["", ""]), i = A0(null), n = A0(null);
5837
5837
  let W, L, v = !0;
5838
5838
  const f = l(() => M.isRange || M.modelModifiers.range === !0), X = l(
5839
- () => f.value && A.value != null ? A.value.start : null
5839
+ () => f.value && t.value != null ? t.value.start : null
5840
5840
  ), _ = l(
5841
- () => f.value && A.value != null ? A.value.end : null
5841
+ () => f.value && t.value != null ? t.value.end : null
5842
5842
  ), C = l(() => M.mode.toLowerCase() === "date"), h = l(
5843
5843
  () => M.mode.toLowerCase() === "datetime"
5844
5844
  ), T = l(() => M.mode.toLowerCase() === "time"), P = l(() => !!a.value), V = l(() => {
@@ -5847,7 +5847,7 @@ function P6(M, { emit: b, slots: z }) {
5847
5847
  const y = e.value.modelValue || "iso";
5848
5848
  return N0({ type: s, mask: y });
5849
5849
  }), k = l(
5850
- () => l0(a.value ?? A.value)
5850
+ () => l0(a.value ?? t.value)
5851
5851
  ), Z = l(() => T.value ? M.is24hr ? e.value.inputTime24hr : e.value.inputTime : h.value ? M.is24hr ? e.value.inputDateTime24hr : e.value.inputDateTime : e.value.input), J = l(() => /[Hh]/g.test(Z.value)), R = l(
5852
5852
  () => /[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(Z.value)
5853
5853
  ), I = l(() => {
@@ -5866,7 +5866,7 @@ function P6(M, { emit: b, slots: z }) {
5866
5866
  }), U = l(
5867
5867
  () => w3({
5868
5868
  ...b0.value,
5869
- id: t.value
5869
+ id: A.value
5870
5870
  })
5871
5871
  ), p0 = l(() => f.value ? {
5872
5872
  start: r.value[0],
@@ -5883,12 +5883,12 @@ function P6(M, { emit: b, slots: z }) {
5883
5883
  end: s[1]
5884
5884
  } : s[0];
5885
5885
  }), w0 = l(() => {
5886
- if (!z0(A.value))
5886
+ if (!z0(t.value))
5887
5887
  return null;
5888
5888
  const s = {
5889
5889
  key: "select-drag",
5890
5890
  ...M.selectAttribute,
5891
- dates: A.value,
5891
+ dates: t.value,
5892
5892
  pinPage: !0
5893
5893
  }, { dot: y, bar: x, highlight: o0, content: B0 } = s;
5894
5894
  return !y && !x && !o0 && !B0 && (s.highlight = !0), s;
@@ -5990,7 +5990,7 @@ function P6(M, { emit: b, slots: z }) {
5990
5990
  }
5991
5991
  return o.value.toDateOrNull(s, {
5992
5992
  ...y[0],
5993
- fillDate: A.value,
5993
+ fillDate: t.value,
5994
5994
  patch: x
5995
5995
  });
5996
5996
  }
@@ -6028,12 +6028,12 @@ function P6(M, { emit: b, slots: z }) {
6028
6028
  if (k0(Y0)) {
6029
6029
  if (G0)
6030
6030
  return null;
6031
- Y0 = A.value, V0 = !1;
6032
- } else Y0 == null && M.isRequired ? Y0 = A.value : (
6031
+ Y0 = t.value, V0 = !1;
6032
+ } else Y0 == null && M.isRequired ? Y0 = t.value : (
6033
6033
  // Clear value if same value was passed
6034
- Y0 != null && d0(A.value, Y0) && o0 && (Y0 = null)
6034
+ Y0 != null && d0(t.value, Y0) && o0 && (Y0 = null)
6035
6035
  );
6036
- const U2 = G0 ? a : A, L2 = !d0(U2.value, Y0);
6036
+ const U2 = G0 ? a : t, L2 = !d0(U2.value, Y0);
6037
6037
  U2.value = Y0, G0 || (a.value = null);
6038
6038
  const v2 = K0(
6039
6039
  Y0,
@@ -6047,7 +6047,7 @@ function P6(M, { emit: b, slots: z }) {
6047
6047
  type: "string",
6048
6048
  mask: Z.value
6049
6049
  }), y = K0(
6050
- a.value ?? A.value,
6050
+ a.value ?? t.value,
6051
6051
  s
6052
6052
  );
6053
6053
  f.value ? r.value = [y && y.start, y && y.end] : r.value = [y, ""];
@@ -6088,7 +6088,7 @@ function P6(M, { emit: b, slots: z }) {
6088
6088
  };
6089
6089
  }
6090
6090
  function t0(s) {
6091
- s.key === "Escape" && $0(A.value, {
6091
+ s.key === "Escape" && $0(t.value, {
6092
6092
  formatInput: !0,
6093
6093
  hidePopover: !0
6094
6094
  });
@@ -6158,7 +6158,7 @@ function P6(M, { emit: b, slots: z }) {
6158
6158
  ...b0.value,
6159
6159
  ...s,
6160
6160
  isInteractive: !0,
6161
- id: t.value
6161
+ id: A.value
6162
6162
  });
6163
6163
  }
6164
6164
  function R2(s = {}) {
@@ -6167,7 +6167,7 @@ function P6(M, { emit: b, slots: z }) {
6167
6167
  force: !0,
6168
6168
  ...b0.value,
6169
6169
  ...s,
6170
- id: t.value
6170
+ id: A.value
6171
6171
  });
6172
6172
  }
6173
6173
  function wM(s) {
@@ -6175,7 +6175,7 @@ function P6(M, { emit: b, slots: z }) {
6175
6175
  ...b0.value,
6176
6176
  ...s,
6177
6177
  isInteractive: !0,
6178
- id: t.value
6178
+ id: A.value
6179
6179
  });
6180
6180
  }
6181
6181
  function H2(s, y) {
@@ -6198,7 +6198,7 @@ function P6(M, { emit: b, slots: z }) {
6198
6198
  return n.value == null ? !1 : n.value.moveBy(s, y);
6199
6199
  }
6200
6200
  async function Y2(s, y = {}) {
6201
- const x = A.value;
6201
+ const x = t.value;
6202
6202
  if (n.value == null || !z0(x))
6203
6203
  return !1;
6204
6204
  const o0 = s !== "end", B0 = o0 ? 1 : -1, V0 = R0(x) ? o0 ? x.start : x.end : x, G0 = i3(V0, "monthly", o.value);
@@ -6239,11 +6239,11 @@ function P6(M, { emit: b, slots: z }) {
6239
6239
  ), C0(
6240
6240
  () => M.timezone,
6241
6241
  () => {
6242
- d(A.value, { formatInput: !0 });
6242
+ d(t.value, { formatInput: !0 });
6243
6243
  }
6244
6244
  );
6245
6245
  const j2 = N0(V.value);
6246
- A.value = Q0(
6246
+ t.value = Q0(
6247
6247
  M.modelValue ?? null,
6248
6248
  j2,
6249
6249
  "dateTime"
@@ -6256,7 +6256,7 @@ function P6(M, { emit: b, slots: z }) {
6256
6256
  const D = {
6257
6257
  ...p,
6258
6258
  showCalendar: c,
6259
- datePickerPopoverId: t,
6259
+ datePickerPopoverId: A,
6260
6260
  popoverRef: i,
6261
6261
  popoverEvents: U,
6262
6262
  calendarRef: n,
@@ -6332,8 +6332,8 @@ function I6(M) {
6332
6332
  dateParts: e,
6333
6333
  rules: O,
6334
6334
  is24hr: c,
6335
- hideTimeHeader: t,
6336
- timeAccuracy: A,
6335
+ hideTimeHeader: A,
6336
+ timeAccuracy: t,
6337
6337
  updateValue: a
6338
6338
  } = b;
6339
6339
  function r(R) {
@@ -6352,7 +6352,7 @@ function I6(M) {
6352
6352
  }
6353
6353
  const i = l(() => M.position === 0), n = l(
6354
6354
  () => e.value[M.position] || { isValid: !1 }
6355
- ), W = l(() => wb(n.value)), L = l(() => !!n.value.isValid), v = l(() => !t.value && L.value), f = l(() => {
6355
+ ), W = l(() => wb(n.value)), L = l(() => !!n.value.isValid), v = l(() => !A.value && L.value), f = l(() => {
6356
6356
  if (!W.value)
6357
6357
  return null;
6358
6358
  let R = z.value.toDate(n.value);
@@ -6407,7 +6407,7 @@ function I6(M) {
6407
6407
  return {
6408
6408
  ...b,
6409
6409
  showHeader: v,
6410
- timeAccuracy: A,
6410
+ timeAccuracy: t,
6411
6411
  parts: n,
6412
6412
  isValid: L,
6413
6413
  date: f,
@@ -6489,8 +6489,8 @@ const V6 = ["value"], H6 = ["value", "disabled"], F6 = {
6489
6489
  isValid: e,
6490
6490
  date: O,
6491
6491
  hours: c,
6492
- minutes: t,
6493
- seconds: A,
6492
+ minutes: A,
6493
+ seconds: t,
6494
6494
  milliseconds: a,
6495
6495
  options: r,
6496
6496
  hourOptions: i,
@@ -6531,8 +6531,8 @@ const V6 = ["value"], H6 = ["value", "disabled"], F6 = {
6531
6531
  m(X) > 1 ? (q(), u(a0, { key: 0 }, [
6532
6532
  J6,
6533
6533
  F(N2, {
6534
- modelValue: m(t),
6535
- "onUpdate:modelValue": C[1] || (C[1] = (h) => h2(t) ? t.value = h : null),
6534
+ modelValue: m(A),
6535
+ "onUpdate:modelValue": C[1] || (C[1] = (h) => h2(A) ? A.value = h : null),
6536
6536
  modelModifiers: { number: !0 },
6537
6537
  options: m(r).minutes,
6538
6538
  class: "vc-time-select-minutes",
@@ -6542,8 +6542,8 @@ const V6 = ["value"], H6 = ["value", "disabled"], F6 = {
6542
6542
  m(X) > 2 ? (q(), u(a0, { key: 1 }, [
6543
6543
  MW,
6544
6544
  F(N2, {
6545
- modelValue: m(A),
6546
- "onUpdate:modelValue": C[2] || (C[2] = (h) => h2(A) ? A.value = h : null),
6545
+ modelValue: m(t),
6546
+ "onUpdate:modelValue": C[2] || (C[2] = (h) => h2(t) ? t.value = h : null),
6547
6547
  modelModifiers: { number: !0 },
6548
6548
  options: m(r).seconds,
6549
6549
  class: "vc-time-select-seconds",
@@ -6581,8 +6581,8 @@ const V6 = ["value"], H6 = ["value", "disabled"], F6 = {
6581
6581
  isDateTimeMode: e,
6582
6582
  isTimeMode: O,
6583
6583
  isRange: c,
6584
- onDayClick: t,
6585
- onDayMouseEnter: A,
6584
+ onDayClick: A,
6585
+ onDayMouseEnter: t,
6586
6586
  onDayKeydown: a
6587
6587
  } = $b(), r = c.value ? [0, 1] : [0];
6588
6588
  return (i, n) => m(O) ? (q(), u("div", {
@@ -6598,8 +6598,8 @@ const V6 = ["value"], H6 = ["value", "disabled"], F6 = {
6598
6598
  attributes: m(b),
6599
6599
  ref_key: "calendarRef",
6600
6600
  ref: z,
6601
- onDayclick: m(t),
6602
- onDaymouseenter: m(A),
6601
+ onDayclick: m(A),
6602
+ onDaymouseenter: m(t),
6603
6603
  onDaykeydown: m(a)
6604
6604
  }, {
6605
6605
  footer: c0(() => [
@@ -6626,9 +6626,9 @@ const V6 = ["value"], H6 = ["value", "disabled"], F6 = {
6626
6626
  onPopoverBeforeShow: e,
6627
6627
  onPopoverAfterShow: O,
6628
6628
  onPopoverBeforeHide: c,
6629
- onPopoverAfterHide: t
6629
+ onPopoverAfterHide: A
6630
6630
  } = $b();
6631
- return (A, a) => (q(), e0(Cb, {
6631
+ return (t, a) => (q(), e0(Cb, {
6632
6632
  id: m(b),
6633
6633
  placement: "bottom-start",
6634
6634
  class: H(`vc-date-picker-content vc-${m(z)} vc-${m(p)}`),
@@ -6637,10 +6637,10 @@ const V6 = ["value"], H6 = ["value", "disabled"], F6 = {
6637
6637
  onBeforeShow: m(e),
6638
6638
  onAfterShow: m(O),
6639
6639
  onBeforeHide: m(c),
6640
- onAfterHide: m(t)
6640
+ onAfterHide: m(A)
6641
6641
  }, {
6642
6642
  default: c0(() => [
6643
- F(F3, D2(FM(A.$attrs)), null, 16)
6643
+ F(F3, D2(FM(t.$attrs)), null, 16)
6644
6644
  ]),
6645
6645
  _: 1
6646
6646
  }, 8, ["id", "class", "onBeforeShow", "onAfterShow", "onBeforeHide", "onAfterHide"]));
@@ -6677,7 +6677,7 @@ const Y3 = /* @__PURE__ */ S1(oW, [["render", OW]]), eW = ["data-testid"], cW =
6677
6677
  function O(c) {
6678
6678
  z.stopPropagation && c.stopPropagation(), p("click");
6679
6679
  }
6680
- return (c, t) => (q(), u("svg", {
6680
+ return (c, A) => (q(), u("svg", {
6681
6681
  class: H(["r-icon r-icon-20", e.value]),
6682
6682
  "data-testid": `icon-${c.icon}`,
6683
6683
  onClick: O
@@ -6904,8 +6904,8 @@ function M2(M, b, z, p = /* @__PURE__ */ new Map(), o = void 0) {
6904
6904
  if (M instanceof Map) {
6905
6905
  const O = /* @__PURE__ */ new Map();
6906
6906
  p.set(M, O);
6907
- for (const [c, t] of M)
6908
- O.set(c, M2(t, c, z, p, o));
6907
+ for (const [c, A] of M)
6908
+ O.set(c, M2(A, c, z, p, o));
6909
6909
  return O;
6910
6910
  }
6911
6911
  if (M instanceof Set) {
@@ -6953,8 +6953,8 @@ function M2(M, b, z, p = /* @__PURE__ */ new Map(), o = void 0) {
6953
6953
  function _1(M, b, z = M, p, o) {
6954
6954
  const e = [...Object.keys(b), ...lW(b)];
6955
6955
  for (let O = 0; O < e.length; O++) {
6956
- const c = e[O], t = Object.getOwnPropertyDescriptor(M, c);
6957
- (t == null || t.writable) && (M[c] = M2(b[c], c, z, p, o));
6956
+ const c = e[O], A = Object.getOwnPropertyDescriptor(M, c);
6957
+ (A == null || A.writable) && (M[c] = M2(b[c], c, z, p, o));
6958
6958
  }
6959
6959
  }
6960
6960
  function PW(M) {
@@ -7010,28 +7010,28 @@ function pp(M) {
7010
7010
  }
7011
7011
  function xW(M, b, { signal: z, edges: p } = {}) {
7012
7012
  let o, e = null;
7013
- const O = p != null && p.includes("leading"), c = p == null || p.includes("trailing"), t = () => {
7013
+ const O = p != null && p.includes("leading"), c = p == null || p.includes("trailing"), A = () => {
7014
7014
  e !== null && (M.apply(o, e), o = void 0, e = null);
7015
- }, A = () => {
7016
- c && t(), n();
7015
+ }, t = () => {
7016
+ c && A(), n();
7017
7017
  };
7018
7018
  let a = null;
7019
7019
  const r = () => {
7020
7020
  a != null && clearTimeout(a), a = setTimeout(() => {
7021
- a = null, A();
7021
+ a = null, t();
7022
7022
  }, b);
7023
7023
  }, i = () => {
7024
7024
  a !== null && (clearTimeout(a), a = null);
7025
7025
  }, n = () => {
7026
7026
  i(), o = void 0, e = null;
7027
7027
  }, W = () => {
7028
- t();
7028
+ A();
7029
7029
  }, L = function(...v) {
7030
7030
  if (z?.aborted)
7031
7031
  return;
7032
7032
  o = this, e = v;
7033
7033
  const f = a == null;
7034
- r(), O && f && t();
7034
+ r(), O && f && A();
7035
7035
  };
7036
7036
  return L.schedule = r, L.cancel = n, L.flush = W, z?.addEventListener("abort", n, { once: !0 }), L;
7037
7037
  }
@@ -7039,13 +7039,13 @@ function IM(M, b = 0, z = {}) {
7039
7039
  typeof z != "object" && (z = {});
7040
7040
  const { leading: p = !1, trailing: o = !0, maxWait: e } = z, O = Array(2);
7041
7041
  p && (O[0] = "leading"), o && (O[1] = "trailing");
7042
- let c, t = null;
7043
- const A = xW(function(...i) {
7044
- c = M.apply(this, i), t = null;
7042
+ let c, A = null;
7043
+ const t = xW(function(...i) {
7044
+ c = M.apply(this, i), A = null;
7045
7045
  }, b, { edges: O }), a = function(...i) {
7046
- return e != null && (t === null && (t = Date.now()), Date.now() - t >= e) ? (c = M.apply(this, i), t = Date.now(), A.cancel(), A.schedule(), c) : (A.apply(this, i), c);
7047
- }, r = () => (A.flush(), c);
7048
- return a.cancel = A.cancel, a.flush = r, a;
7046
+ return e != null && (A === null && (A = Date.now()), Date.now() - A >= e) ? (c = M.apply(this, i), A = Date.now(), t.cancel(), t.schedule(), c) : (t.apply(this, i), c);
7047
+ }, r = () => (t.flush(), c);
7048
+ return a.cancel = t.cancel, a.flush = r, a;
7049
7049
  }
7050
7050
  const IW = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
7051
7051
  function VW(M) {
@@ -7069,9 +7069,9 @@ function jW() {
7069
7069
  M.exports ? M.exports = z(r0) : z(b.moment);
7070
7070
  })(YW, function(b) {
7071
7071
  b.version === void 0 && b.default && (b = b.default);
7072
- var z = "0.5.48", p = {}, o = {}, e = {}, O = {}, c = {}, t;
7072
+ var z = "0.5.48", p = {}, o = {}, e = {}, O = {}, c = {}, A;
7073
7073
  (!b || typeof b.version != "string") && R0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
7074
- var A = b.version.split("."), a = +A[0], r = +A[1];
7074
+ var t = b.version.split("."), a = +t[0], r = +t[1];
7075
7075
  (a < 2 || a === 2 && r < 6) && R0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + b.version + ". See momentjs.com");
7076
7076
  function i(d) {
7077
7077
  return d > 96 ? d - 87 : d > 64 ? d - 29 : d - 48;
@@ -7223,7 +7223,7 @@ function jW() {
7223
7223
  return t0.sort(k), t0.length > 0 ? t0[0].zone.name : void 0;
7224
7224
  }
7225
7225
  function I(d) {
7226
- return (!t || d) && (t = R()), t;
7226
+ return (!A || d) && (A = R()), A;
7227
7227
  }
7228
7228
  function b0(d) {
7229
7229
  return (d || "").toLowerCase().replace(/\//g, "_");
@@ -7424,15 +7424,15 @@ let eu = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", i1
7424
7424
  const J2 = {}, cu = {
7425
7425
  mounted(M, { value: b }) {
7426
7426
  if (b.text) {
7427
- const z = i1(), p = document.createElement("div"), o = document.createElement("span"), e = document.createElement("div"), O = b.offset || 8, c = b.boundaryLeft || 0, t = b.boundaryTop || 0, A = Ou(M);
7427
+ const z = i1(), p = document.createElement("div"), o = document.createElement("span"), e = document.createElement("div"), O = b.offset || 8, c = b.boundaryLeft || 0, A = b.boundaryTop || 0, t = Ou(M);
7428
7428
  p.classList.add("r-tooltip"), e.classList.add("r-tooltip-arrow"), o.innerText = b.text, p.appendChild(o), M.setAttribute("data-tooltip-id", z), M.classList.add("r-position-relative");
7429
7429
  const a = (r) => ({
7430
- top: parseFloat(p.style.top.replace("px", "")) < t,
7430
+ top: parseFloat(p.style.top.replace("px", "")) < A,
7431
7431
  left: parseFloat(p.style.left.replace("px", "")) < c,
7432
7432
  right: parseFloat(p.style.left.replace("px", "")) + r.width > (window.innerWidth || document.documentElement.clientWidth)
7433
7433
  });
7434
7434
  M.vTooltipEnter = () => {
7435
- A ? A.appendChild(p) : document.body.appendChild(p), p.appendChild(e);
7435
+ t ? t.appendChild(p) : document.body.appendChild(p), p.appendChild(e);
7436
7436
  const r = M.getBoundingClientRect(), i = r.top + window.scrollY, n = p.getBoundingClientRect();
7437
7437
  p.style.left = `${r.left + r.width / 2 - n.width / 2}px`, p.style.top = `${i - (n.height + O)}px`;
7438
7438
  const W = a(n);
@@ -7518,27 +7518,27 @@ const J2 = {}, cu = {
7518
7518
  height: p.height,
7519
7519
  width: p.width
7520
7520
  })), e = l(() => {
7521
- const A = {
7521
+ const t = {
7522
7522
  height: p.height,
7523
7523
  width: p.width,
7524
7524
  alt: p.alt
7525
7525
  };
7526
- return p.lazy ? A["data-url"] = p.src : A.src = p.src, A;
7526
+ return p.lazy ? t["data-url"] = p.src : t.src = p.src, t;
7527
7527
  }), O = A0(!0);
7528
7528
  function c() {
7529
7529
  O.value = !1, z("onload");
7530
7530
  }
7531
- function t() {
7531
+ function A() {
7532
7532
  O.value = !1, z("onerror");
7533
7533
  }
7534
- return (A, a) => (q(), u("figure", x0({ class: "r-component r-img" }, o.value, { role: "img" }), [
7534
+ return (t, a) => (q(), u("figure", x0({ class: "r-component r-img" }, o.value, { role: "img" }), [
7535
7535
  _0(w("img", x0({ class: "r-img-image" }, e.value, {
7536
7536
  onLoad: c,
7537
- onError: t
7537
+ onError: A
7538
7538
  }), null, 16), [
7539
- [m(J3), A.lazy]
7539
+ [m(J3), t.lazy]
7540
7540
  ]),
7541
- Y(A.$slots, "loading", {}, () => [
7541
+ Y(t.$slots, "loading", {}, () => [
7542
7542
  _0(w("div", Au, null, 512), [
7543
7543
  [P1, O.value]
7544
7544
  ])
@@ -7686,40 +7686,40 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
7686
7686
  const z = M, p = b, { isInvalid: o } = V2(z.validate), e = l(() => z.fuzzy ? !0 : z.modelValue === null ? !1 : Array.isArray(z.modelValue) ? z.modelValue.includes(z.value.toString()) : z.modelValue === z.value), O = l(() => z.fuzzy ? "dash-l" : "checkbox-checkmark"), c = () => {
7687
7687
  if (!Array.isArray(z.modelValue))
7688
7688
  return !e.value;
7689
- const A = z.modelValue.slice();
7690
- return Array.isArray(A) ? (e.value ? A.splice(z.modelValue.indexOf(z.value.toString()), 1) : A.push(z.value.toString()), A) : !e.value;
7691
- }, t = () => {
7689
+ const t = z.modelValue.slice();
7690
+ return Array.isArray(t) ? (e.value ? t.splice(z.modelValue.indexOf(z.value.toString()), 1) : t.push(z.value.toString()), t) : !e.value;
7691
+ }, A = () => {
7692
7692
  p("update:modelValue", c());
7693
7693
  };
7694
- return (A, a) => (q(), u("div", {
7694
+ return (t, a) => (q(), u("div", {
7695
7695
  class: H(["r-checkbox", { "r-is-error": m(o) }]),
7696
7696
  role: "checkbox",
7697
7697
  "aria-checked": e.value
7698
7698
  }, [
7699
7699
  w("label", {
7700
- class: H(["r-field-label r-field-label-toggle", { "r-is-disabled": A.disabled }]),
7701
- for: A.id
7700
+ class: H(["r-field-label r-field-label-toggle", { "r-is-disabled": t.disabled }]),
7701
+ for: t.id
7702
7702
  }, [
7703
- Y(A.$slots, "label", {}, () => [
7704
- g0(j(A.label), 1)
7703
+ Y(t.$slots, "label", {}, () => [
7704
+ g0(j(t.label), 1)
7705
7705
  ])
7706
7706
  ], 10, Wu),
7707
7707
  w("input", {
7708
- id: A.id,
7708
+ id: t.id,
7709
7709
  type: "checkbox",
7710
7710
  class: "r-field-checkbox",
7711
- disabled: A.disabled,
7712
- value: A.value,
7711
+ disabled: t.disabled,
7712
+ value: t.value,
7713
7713
  checked: e.value,
7714
- onChange: t
7714
+ onChange: A
7715
7715
  }, null, 40, uu),
7716
7716
  w("span", fu, [
7717
7717
  F(X0, { icon: O.value }, null, 8, ["icon"])
7718
7718
  ]),
7719
- A.caption ? (q(), u("span", {
7719
+ t.caption ? (q(), u("span", {
7720
7720
  key: 0,
7721
7721
  class: "r-field-caption r-field-caption-toggle",
7722
- innerHTML: A.caption
7722
+ innerHTML: t.caption
7723
7723
  }, null, 8, Ru)) : $("", !0)
7724
7724
  ], 10, lu));
7725
7725
  }
@@ -7796,10 +7796,10 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
7796
7796
  }, c = (a) => {
7797
7797
  const r = new Date(a);
7798
7798
  return r instanceof Date && !isNaN(r.getTime());
7799
- }, t = () => {
7799
+ }, A = () => {
7800
7800
  if ((z.type === "datetime" || z.type === "time") && (!z.modelValue || !c(z.modelValue)))
7801
7801
  return p("update:modelValue", /* @__PURE__ */ new Date());
7802
- }, A = po({ attrs: o });
7802
+ }, t = po({ attrs: o });
7803
7803
  return (a, r) => {
7804
7804
  const i = T0("r-button"), n = T0("r-input");
7805
7805
  return q(), u("div", vu, [
@@ -7807,7 +7807,7 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
7807
7807
  mode: a.type,
7808
7808
  "popover-visibility": "focus",
7809
7809
  "popover-content-offset": 4,
7810
- popover: m(A),
7810
+ popover: m(t),
7811
7811
  color: "blue",
7812
7812
  "theme-styles": m(zo),
7813
7813
  timezone: a.timezone,
@@ -7823,7 +7823,7 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
7823
7823
  disabled: a.disabled,
7824
7824
  placeholder: a.$attrs.placeholder,
7825
7825
  "right-icon": !a.allowEmpty || !a.modelValue ? "calendar" : !1,
7826
- onFocus: t,
7826
+ onFocus: A,
7827
7827
  onRightIconClick: L.click
7828
7828
  }, {
7829
7829
  "right-button": c0(() => [
@@ -7955,16 +7955,16 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
7955
7955
  function z(h) {
7956
7956
  return typeof h != "string";
7957
7957
  }
7958
- const p = M, o = b, e = A0(null), O = l(() => v0), c = l(() => mu(p.timezone)), t = l(() => Object.entries(c.value)), A = l(() => {
7958
+ const p = M, o = b, e = A0(null), O = l(() => v0), c = l(() => mu(p.timezone)), A = l(() => Object.entries(c.value)), t = l(() => {
7959
7959
  if (!p.modelValue) return !1;
7960
7960
  if (typeof p.modelValue == "string")
7961
7961
  return f(p.modelValue);
7962
7962
  const h = p.modelValue.start instanceof Date ? p.modelValue.start : r0(p.modelValue.start).toDate(), T = p.modelValue.end instanceof Date ? p.modelValue.end : r0(p.modelValue.end).toDate();
7963
7963
  return f(h) && f(T);
7964
- }), a = l(() => p.modelValue && typeof p.modelValue != "string" && p.modelValue.isRelative || !A.value), r = l(() => {
7964
+ }), a = l(() => p.modelValue && typeof p.modelValue != "string" && p.modelValue.isRelative || !t.value), r = l(() => {
7965
7965
  if (!a.value)
7966
7966
  return null;
7967
- const h = t.value.find(
7967
+ const h = A.value.find(
7968
7968
  ([, { relativeFilterValue: T }]) => p.modelValue !== void 0 && z(p.modelValue) && T === p.modelValue.relativeFilterValue
7969
7969
  );
7970
7970
  if (h) {
@@ -8134,12 +8134,12 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
8134
8134
  }
8135
8135
  const p = M, o = b, e = sp(), O = {
8136
8136
  input: "YYYY-MM-DD h:mm A"
8137
- }, t = {
8137
+ }, A = {
8138
8138
  ...p.timePicker ? {} : {
8139
8139
  start: { timeAdjust: "00:00:00" },
8140
8140
  end: { timeAdjust: "23:59:59" }
8141
8141
  }
8142
- }, A = po({ attrs: e }), a = l(() => {
8142
+ }, t = po({ attrs: e }), a = l(() => {
8143
8143
  if (!p.modelValue)
8144
8144
  return null;
8145
8145
  const W = p.modelValue, { start: L, end: v } = W, f = (X) => typeof X == "string" ? X : X && "format" in X ? X.format() : X;
@@ -8190,9 +8190,9 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
8190
8190
  masks: O,
8191
8191
  "theme-styles": m(zo),
8192
8192
  "show-caps": "",
8193
- "model-config": t,
8193
+ "model-config": A,
8194
8194
  color: "blue",
8195
- popover: m(A),
8195
+ popover: m(t),
8196
8196
  timezone: W.timezone,
8197
8197
  mode: i.value,
8198
8198
  "onUpdate:modelValue": n
@@ -8266,9 +8266,9 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
8266
8266
  locale: void 0
8267
8267
  };
8268
8268
  return z.locale && (a.locale = z.locale), a;
8269
- }), t = l(() => z.type === "datetime" && !z.modelValue ? {
8269
+ }), A = l(() => z.type === "datetime" && !z.modelValue ? {
8270
8270
  timeAdjust: "00:00:00"
8271
- } : {}), A = (a) => {
8271
+ } : {}), t = (a) => {
8272
8272
  p("update:modelValue", a);
8273
8273
  };
8274
8274
  return r0.isMoment(z.modelValue) && (console.log(
@@ -8280,13 +8280,13 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
8280
8280
  O.value ? (q(), e0($u, x0({
8281
8281
  key: 1,
8282
8282
  "model-value": a.modelValue
8283
- }, c.value, { "onUpdate:modelValue": A }), null, 16, ["model-value"])) : (q(), e0(hu, x0({ key: 2 }, c.value, {
8283
+ }, c.value, { "onUpdate:modelValue": t }), null, 16, ["model-value"])) : (q(), e0(hu, x0({ key: 2 }, c.value, {
8284
8284
  "model-value": a.modelValue,
8285
- "model-config": t.value,
8285
+ "model-config": A.value,
8286
8286
  type: a.type,
8287
8287
  masks: a.masks,
8288
8288
  "allow-empty": a.allowEmpty,
8289
- "onUpdate:modelValue": A
8289
+ "onUpdate:modelValue": t
8290
8290
  }), null, 16, ["model-value", "model-config", "type", "masks", "allow-empty"])),
8291
8291
  a.caption ? (q(), u("span", ku, j(a.caption), 1)) : $("", !0),
8292
8292
  m(e) && a.showValidateMessages ? (q(!0), u(a0, { key: 4 }, y0(m(o), (i, n) => (q(), u("span", {
@@ -8313,12 +8313,12 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
8313
8313
  (!p.value || !p.value?.files?.length) && (z("cancel"), z("close"));
8314
8314
  }));
8315
8315
  }
8316
- function c(t) {
8317
- o.value = !1, t.target && t.target instanceof HTMLInputElement && t.target?.files?.length && z("input", t.target?.files), z("close");
8316
+ function c(A) {
8317
+ o.value = !1, A.target && A.target instanceof HTMLInputElement && A.target?.files?.length && z("input", A.target?.files), z("close");
8318
8318
  }
8319
- return (t, A) => (q(), u("div", {
8319
+ return (A, t) => (q(), u("div", {
8320
8320
  class: "r-file-upload",
8321
- onChange: A[0] || (A[0] = m0(() => {
8321
+ onChange: t[0] || (t[0] = m0(() => {
8322
8322
  }, ["stop"]))
8323
8323
  }, [
8324
8324
  w("input", {
@@ -8326,12 +8326,12 @@ const lu = ["aria-checked"], Wu = ["for"], uu = ["id", "disabled", "value", "che
8326
8326
  ref: p,
8327
8327
  class: "r-hide",
8328
8328
  type: "file",
8329
- multiple: t.multiple,
8330
- accept: t.accept,
8331
- disabled: t.disabled,
8329
+ multiple: A.multiple,
8330
+ accept: A.accept,
8331
+ disabled: A.disabled,
8332
8332
  onChange: m0(c, ["stop"])
8333
8333
  }, null, 40, Pu),
8334
- Y(t.$slots, "default", {
8334
+ Y(A.$slots, "default", {
8335
8335
  openFileBrowser: e,
8336
8336
  setFocus: O
8337
8337
  })
@@ -8548,7 +8548,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8548
8548
  "right-icon-click"
8549
8549
  ],
8550
8550
  setup(M, { expose: b, emit: z }) {
8551
- const p = M, o = z, e = qp(), O = A0(null), c = A0(null), { validateErrorMessages: t, isInvalid: A } = V2(p.validate), a = A0(!1), r = l(() => !p.multiline && (p.leftIcon || p.rightIcon || p.leftLabel || p.rightLabel || p.password || e["right-button"])), i = l(() => {
8551
+ const p = M, o = z, e = qp(), O = A0(null), c = A0(null), { validateErrorMessages: A, isInvalid: t } = V2(p.validate), a = A0(!1), r = l(() => !p.multiline && (p.leftIcon || p.rightIcon || p.leftLabel || p.rightLabel || p.password || e["right-button"])), i = l(() => {
8552
8552
  const R = {};
8553
8553
  return p.leftIcon && (R["r-has-icon-left"] = !0), (p.rightIcon || p.password) && (R["r-has-icon-right"] = !0), R;
8554
8554
  }), n = l(() => p.password ? "password" : p.numeric ? "number" : "text"), W = l(() => p.autoComplete || `new-${p.name}`), L = l(() => `(${p.modelValue ? Number(p.maxLength) - String(p.modelValue).length : p.maxLength} characters left.)`);
@@ -8602,7 +8602,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8602
8602
  }), v1(() => {
8603
8603
  p.autoFocus && h(), p.autoHighlight && J(), p.autoResize && O.value && k(O.value);
8604
8604
  }), (R, I) => (q(), u("div", {
8605
- class: H(["r-field", { "r-is-error": m(A) }])
8605
+ class: H(["r-field", { "r-is-error": m(t) }])
8606
8606
  }, [
8607
8607
  R.label ? (q(), u("label", {
8608
8608
  key: 0,
@@ -8741,7 +8741,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8741
8741
  I[5] || (I[5] = g0(" " + j(" ") + " ")),
8742
8742
  R.maxLength ? (q(), u("span", pf, j(L.value), 1)) : $("", !0)
8743
8743
  ])) : $("", !0),
8744
- m(A) && R.showValidateMessages ? (q(!0), u(a0, { key: 4 }, y0(m(t), (b0, U) => (q(), u("span", {
8744
+ m(t) && R.showValidateMessages ? (q(!0), u(a0, { key: 4 }, y0(m(A), (b0, U) => (q(), u("span", {
8745
8745
  key: U,
8746
8746
  class: "r-field-caption-error"
8747
8747
  }, j(b0), 1))), 128)) : $("", !0)
@@ -8814,10 +8814,10 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8814
8814
  function c(i) {
8815
8815
  p("submit", i);
8816
8816
  }
8817
- function t() {
8817
+ function A() {
8818
8818
  p("close");
8819
8819
  }
8820
- function A() {
8820
+ function t() {
8821
8821
  r(), p("enter");
8822
8822
  }
8823
8823
  function a() {
@@ -8837,7 +8837,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8837
8837
  }), (i, n) => (q(), e0(o2, {
8838
8838
  name: "r-modal",
8839
8839
  appear: "",
8840
- onEnter: A,
8840
+ onEnter: t,
8841
8841
  onLeave: a
8842
8842
  }, {
8843
8843
  default: c0(() => [
@@ -8849,9 +8849,9 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8849
8849
  role: "dialog",
8850
8850
  style: a1(e.value),
8851
8851
  "aria-label": i.title ? i.title : "Modal",
8852
- onMousedown: t,
8852
+ onMousedown: A,
8853
8853
  onKeyup: [
8854
- D0(t, ["esc"]),
8854
+ D0(A, ["esc"]),
8855
8855
  D0(c, ["enter"])
8856
8856
  ]
8857
8857
  }, [
@@ -8889,17 +8889,17 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8889
8889
  i.$slots["left-actions"] ? (q(), u("div", nf, [
8890
8890
  Y(i.$slots, "left-actions", {
8891
8891
  submit: c,
8892
- close: t
8892
+ close: A
8893
8893
  })
8894
8894
  ])) : $("", !0),
8895
8895
  w("div", rf, [
8896
8896
  Y(i.$slots, "right-actions", {
8897
8897
  submit: c,
8898
- close: t
8898
+ close: A
8899
8899
  }, () => [
8900
8900
  F(D1, {
8901
8901
  class: H({ "r-inline-3": i.$slots.actions }),
8902
- onClick: t
8902
+ onClick: A
8903
8903
  }, {
8904
8904
  default: c0(() => [
8905
8905
  g0(j(i.cancelLabel), 1)
@@ -8908,7 +8908,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8908
8908
  }, 8, ["class"]),
8909
8909
  Y(i.$slots, "actions", {
8910
8910
  submit: c,
8911
- close: t
8911
+ close: A
8912
8912
  })
8913
8913
  ])
8914
8914
  ])
@@ -8971,9 +8971,9 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8971
8971
  () => z.minValue?.year && z.modelValue?.year && z.modelValue.year <= z.minValue.year
8972
8972
  ), c = l(
8973
8973
  () => z.maxValue?.year && z.modelValue?.year && z.modelValue.year >= z.maxValue.year
8974
- ), t = () => {
8974
+ ), A = () => {
8975
8975
  o.value?.popper.toggle();
8976
- }, A = (n) => {
8976
+ }, t = (n) => {
8977
8977
  if (i(n))
8978
8978
  return;
8979
8979
  const W = z.modelValue?.monthIndex === n;
@@ -8984,7 +8984,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
8984
8984
  if (W)
8985
8985
  return;
8986
8986
  const L = { ...z.modelValue, monthIndex: n };
8987
- p("update:modelValue", L), p("month-change", n), t();
8987
+ p("update:modelValue", L), p("month-change", n), A();
8988
8988
  }, a = (n) => {
8989
8989
  if (!z.modelValue)
8990
8990
  return;
@@ -9010,7 +9010,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9010
9010
  F(L, {
9011
9011
  class: "r-month-picker-input",
9012
9012
  "icon-left": "calendar",
9013
- onClick: t
9013
+ onClick: A
9014
9014
  }, {
9015
9015
  default: c0(() => [
9016
9016
  w("div", lf, [
@@ -9056,7 +9056,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9056
9056
  "r-month-picker-month-disabled": i(X),
9057
9057
  "r-month-picker-month-selected": r(X)
9058
9058
  }, "r-month-picker-month"]),
9059
- onClick: (_) => A(X)
9059
+ onClick: (_) => t(X)
9060
9060
  }, j(f), 11, Bf))), 128))
9061
9061
  ])
9062
9062
  ])
@@ -9072,7 +9072,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9072
9072
  }), yf = { class: "r-pagination-control" }, wf = { class: "r-pagination-control-buttons-wrapper" }, Oo = /* @__PURE__ */ M0({
9073
9073
  __name: "r-pagination-control",
9074
9074
  setup(M) {
9075
- const b = S0("paginationNavigate"), z = S0("paginationNext"), p = S0("paginationPrevious"), o = S0("paginationOffset"), e = S0("paginationTotal"), O = S0("paginationLimit"), c = S0("paginationItems"), t = S0("paginationHasNext"), A = S0("paginationHasPrevious"), a = l(() => {
9075
+ const b = S0("paginationNavigate"), z = S0("paginationNext"), p = S0("paginationPrevious"), o = S0("paginationOffset"), e = S0("paginationTotal"), O = S0("paginationLimit"), c = S0("paginationItems"), A = S0("paginationHasNext"), t = S0("paginationHasPrevious"), a = l(() => {
9076
9076
  if (o)
9077
9077
  return o();
9078
9078
  console.warn("'paginationOffset' has not been provided");
@@ -9085,12 +9085,12 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9085
9085
  return O();
9086
9086
  console.warn("'paginationLimit' has not been provided");
9087
9087
  }), n = l(() => {
9088
- if (t)
9089
- return t();
9090
- console.warn("'paginationHasNext' has not been provided");
9091
- }), W = l(() => {
9092
9088
  if (A)
9093
9089
  return A();
9090
+ console.warn("'paginationHasNext' has not been provided");
9091
+ }), W = l(() => {
9092
+ if (t)
9093
+ return t();
9094
9094
  console.warn("'paginationHasPrevious' has not been provided");
9095
9095
  }), L = l(() => c ? c() : (console.warn("'paginationItems' has not been provided"), [])), v = l(() => ({
9096
9096
  modelValue: b,
@@ -9197,7 +9197,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9197
9197
  W(_);
9198
9198
  }
9199
9199
  return n;
9200
- }), O = l(() => z.limit < z.total), c = l(() => z.modelValue + 1 <= o.value), t = l(() => z.modelValue - 1 >= 1), A = l(() => ({
9200
+ }), O = l(() => z.limit < z.total), c = l(() => z.modelValue + 1 <= o.value), A = l(() => z.modelValue - 1 >= 1), t = l(() => ({
9201
9201
  hasPagination: O.value,
9202
9202
  provider: () => z.provider(z.modelValue),
9203
9203
  offset: z.modelValue,
@@ -9216,9 +9216,9 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9216
9216
  }
9217
9217
  return v1(() => {
9218
9218
  z.provider(z.modelValue);
9219
- }), P0("paginationNavigate", i), P0("paginationNext", a), P0("paginationPrevious", r), P0("paginationOffset", () => z.modelValue), P0("paginationTotal", () => z.total), P0("paginationLimit", () => z.limit), P0("paginationItems", () => e.value), P0("paginationHasNext", () => c.value), P0("paginationHasPrevious", () => t.value), (n, W) => (q(), u("div", null, [
9220
- Y(n.$slots, "pagination", { pagination: A.value }, () => [
9221
- F(Oo, { pagination: A.value }, null, 8, ["pagination"])
9219
+ }), P0("paginationNavigate", i), P0("paginationNext", a), P0("paginationPrevious", r), P0("paginationOffset", () => z.modelValue), P0("paginationTotal", () => z.total), P0("paginationLimit", () => z.limit), P0("paginationItems", () => e.value), P0("paginationHasNext", () => c.value), P0("paginationHasPrevious", () => A.value), (n, W) => (q(), u("div", null, [
9220
+ Y(n.$slots, "pagination", { pagination: t.value }, () => [
9221
+ F(Oo, { pagination: t.value }, null, 8, ["pagination"])
9222
9222
  ])
9223
9223
  ]));
9224
9224
  }
@@ -9266,7 +9266,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9266
9266
  topStart: [0, 0, 0, -1],
9267
9267
  topEnd: [0, 0, 1, 0]
9268
9268
  }
9269
- }, t = z, A = l(() => e.value), a = l(() => O.value), r = l(() => ({
9269
+ }, A = z, t = l(() => e.value), a = l(() => O.value), r = l(() => ({
9270
9270
  isVisible: o.isPopperVisible,
9271
9271
  open: P,
9272
9272
  close: T,
@@ -9277,15 +9277,15 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9277
9277
  openPopper: P
9278
9278
  });
9279
9279
  function i(k) {
9280
- o.activePopper = k, t("setActivePopper", k);
9280
+ o.activePopper = k, A("setActivePopper", k);
9281
9281
  }
9282
9282
  async function n(k) {
9283
- p.disabled || (o.isPopperVisible = k, await W1(), a.value && a.value?.firstChild instanceof HTMLElement && a.value?.firstChild?.classList && (a.value.firstChild.style.transitionDuration = `${p.duration}s`, L()), t("toggle", k !== o.isPopperVisible), t(k ? "toggle-on" : "toggle-off"));
9283
+ p.disabled || (o.isPopperVisible = k, await W1(), a.value && a.value?.firstChild instanceof HTMLElement && a.value?.firstChild?.classList && (a.value.firstChild.style.transitionDuration = `${p.duration}s`, L()), A("toggle", k !== o.isPopperVisible), A(k ? "toggle-on" : "toggle-off"));
9284
9284
  }
9285
9285
  function W() {
9286
- if (A.value == null || a.value == null)
9286
+ if (t.value == null || a.value == null)
9287
9287
  return;
9288
- const k = A.value.getBoundingClientRect(), Z = a.value.childNodes[0].getBoundingClientRect(), J = v(), R = c[p.direction][p.position];
9288
+ const k = t.value.getBoundingClientRect(), Z = a.value.childNodes[0].getBoundingClientRect(), J = v(), R = c[p.direction][p.position];
9289
9289
  let I = Z.height * R[1] + k.height * R[0], b0 = Z.width * R[3] + k.width * R[2];
9290
9290
  return J && (I -= J.bottom * R[0], I -= J.top * R[1], b0 += J.left, ["bottomEnd", "topEnd"].includes(p.position) && (b0 -= J.right * 2)), p.direction === "horizontal" ? I += p.offset : b0 += p.offset, { top: I, left: Q3.value ? 0 : b0 };
9291
9291
  }
@@ -9294,7 +9294,7 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9294
9294
  k == null || a.value == null || a.value.childNodes[0] instanceof HTMLElement && (a.value.childNodes[0].style.top = `${k.top}px`, a.value.childNodes[0].style.left = `${k.left}px`);
9295
9295
  }
9296
9296
  function v() {
9297
- const k = A.value?.firstElementChild;
9297
+ const k = t.value?.firstElementChild;
9298
9298
  if (!k)
9299
9299
  return null;
9300
9300
  const { marginTop: Z, marginRight: J, marginBottom: R, marginLeft: I } = window.getComputedStyle(k);
@@ -9404,32 +9404,32 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9404
9404
  "r-is-disabled": z.disabled,
9405
9405
  "r-is-checked": c.value
9406
9406
  })), c = l(() => z.value === null ? !1 : z.modelValue === z.value);
9407
- return (t, A) => (q(), u("div", {
9407
+ return (A, t) => (q(), u("div", {
9408
9408
  class: H(["r-field", e.value]),
9409
9409
  "aria-checked": c.value
9410
9410
  }, [
9411
9411
  w("label", {
9412
9412
  class: H(["r-field-label r-field-label-toggle", O.value]),
9413
- for: t.id
9413
+ for: A.id
9414
9414
  }, [
9415
- t.label ? (q(), u(a0, { key: 0 }, [
9416
- g0(j(t.label), 1)
9417
- ], 64)) : Y(t.$slots, "label", { key: 1 })
9415
+ A.label ? (q(), u(a0, { key: 0 }, [
9416
+ g0(j(A.label), 1)
9417
+ ], 64)) : Y(A.$slots, "label", { key: 1 })
9418
9418
  ], 10, Cf),
9419
9419
  w("input", {
9420
- id: t.id,
9420
+ id: A.id,
9421
9421
  type: "radio",
9422
9422
  class: "r-field-radio",
9423
9423
  checked: c.value,
9424
- name: t.name,
9425
- disabled: t.disabled,
9426
- value: t.modelValue,
9427
- onChange: A[0] || (A[0] = (a) => p("update:modelValue", t.value))
9424
+ name: A.name,
9425
+ disabled: A.disabled,
9426
+ value: A.modelValue,
9427
+ onChange: t[0] || (t[0] = (a) => p("update:modelValue", A.value))
9428
9428
  }, null, 40, $f),
9429
9429
  w("span", Sf, [
9430
9430
  F(X0, { icon: "radio-checkmark" })
9431
9431
  ]),
9432
- t.caption ? (q(), u("span", kf, j(t.caption), 1)) : $("", !0)
9432
+ A.caption ? (q(), u("span", kf, j(A.caption), 1)) : $("", !0)
9433
9433
  ], 10, Df));
9434
9434
  }
9435
9435
  }), Pf = { class: "r-table-control flex-center" }, _f = {
@@ -9476,9 +9476,9 @@ const oo = /* @__PURE__ */ NM(Fu, [["render", ju]]), Uu = ["for"], Ku = ["id", "
9476
9476
  ])
9477
9477
  ]),
9478
9478
  w("tbody", null, [
9479
- (q(!0), u(a0, null, y0(z.rows, (c, t) => Y(e.$slots, "default", {
9479
+ (q(!0), u(a0, null, y0(z.rows, (c, A) => Y(e.$slots, "default", {
9480
9480
  item: c,
9481
- index: t
9481
+ index: A
9482
9482
  })), 256))
9483
9483
  ])
9484
9484
  ])) : Y(e.$slots, "empty", { key: 1 })
@@ -9523,10 +9523,10 @@ class x1 {
9523
9523
  offset: 0,
9524
9524
  limit: this.getConfig().limit
9525
9525
  }, this.isLoading = !1;
9526
- const { baseFindBySearch: e, baseLoadMore: O, baseLoadByQuery: c } = this, t = IM(
9526
+ const { baseFindBySearch: e, baseLoadMore: O, baseLoadByQuery: c } = this, A = IM(
9527
9527
  e,
9528
9528
  this.getConfig().debounceDelay
9529
- ), A = IM(
9529
+ ), t = IM(
9530
9530
  O,
9531
9531
  this.getConfig().debounceDelay
9532
9532
  ), a = IM(
@@ -9534,9 +9534,9 @@ class x1 {
9534
9534
  this.getConfig().debounceDelay
9535
9535
  );
9536
9536
  this.findBySearch = async (r) => {
9537
- await t.call(this, r);
9538
- }, this.loadMore = async (r) => {
9539
9537
  await A.call(this, r);
9538
+ }, this.loadMore = async (r) => {
9539
+ await t.call(this, r);
9540
9540
  }, this.loadByQuery = async (r) => {
9541
9541
  await a.call(this, r);
9542
9542
  };
@@ -9596,12 +9596,12 @@ class x1 {
9596
9596
  minValueLength: o,
9597
9597
  limit: e,
9598
9598
  cacheExpirationTime: O
9599
- } = this.getConfig(), c = !0, t = (n) => n < 0 ? 0 : n, A = (n) => n < e ? e : n, a = pp({
9599
+ } = this.getConfig(), c = !0, A = (n) => n < 0 ? 0 : n, t = (n) => n < e ? e : n, a = pp({
9600
9600
  ...this.query,
9601
- offset: t(
9601
+ offset: A(
9602
9602
  z.offset === void 0 ? this.query.offset : z.offset
9603
9603
  ),
9604
- limit: A(
9604
+ limit: t(
9605
9605
  z.limit === void 0 ? this.query.limit : z.limit
9606
9606
  )
9607
9607
  }), r = x1.makeCacheKey({
@@ -10415,18 +10415,18 @@ const Ff = (M) => M.reduce(
10415
10415
  return this.async.loadByQuery({ limit: M, offset: b });
10416
10416
  }
10417
10417
  }
10418
- }), jf = ["for"], Uf = ["tabindex", "aria-owns"], Kf = ["textContent"], Gf = { class: "r-select-loading-spinner" }, Zf = ["id", "name", "autocomplete", "placeholder", "disabled", "tabindex", "aria-controls"], Qf = ["id"], Jf = {
10418
+ }), jf = ["for"], Uf = ["tabindex", "aria-owns", "aria-expanded"], Kf = ["textContent"], Gf = { class: "r-select-loading-spinner" }, Zf = ["id", "name", "autocomplete", "placeholder", "disabled", "tabindex", "aria-controls"], Qf = ["id"], Jf = {
10419
10419
  key: 0,
10420
10420
  class: "r-select-content-element-option"
10421
10421
  }, M8 = {
10422
10422
  key: 1,
10423
10423
  class: "r-select-content-element-option r-align-center r-select-content-element-option-load r-select-content-element-option-load-prev"
10424
- }, b8 = { key: 0 }, z8 = { class: "r-select-content-element-option" }, p8 = ["id"], o8 = ["onClick", "onMouseenter"], O8 = { class: "r-select-content-element" }, e8 = { class: "r-select-content-element-option" }, c8 = { class: "r-select-content-element" }, t8 = { class: "r-select-content-element-option" }, A8 = {
10424
+ }, b8 = { key: 0 }, z8 = { class: "r-select-content-element-option" }, p8 = ["id", "aria-selected"], o8 = ["onClick", "onMouseenter"], O8 = { class: "r-select-content-element" }, e8 = { class: "r-select-content-element-option" }, c8 = { class: "r-select-content-element" }, t8 = { class: "r-select-content-element-option" }, A8 = {
10425
10425
  key: 0,
10426
10426
  class: "r-select-content-element-option r-align-center r-select-content-element-option-load r-select-content-element-option-load-next"
10427
10427
  }, a8 = ["innerHTML"];
10428
10428
  function n8(M, b, z, p, o, e) {
10429
- const O = T0("r-icon"), c = T0("r-badge"), t = T0("r-button");
10429
+ const O = T0("r-icon"), c = T0("r-badge"), A = T0("r-button");
10430
10430
  return q(), u("div", {
10431
10431
  class: H(M.classes)
10432
10432
  }, [
@@ -10434,7 +10434,7 @@ function n8(M, b, z, p, o, e) {
10434
10434
  key: 0,
10435
10435
  for: M.id,
10436
10436
  class: H(["r-field-label", M.labelClasses]),
10437
- onClick: b[0] || (b[0] = (...A) => M.activate && M.activate(...A))
10437
+ onClick: b[0] || (b[0] = (...t) => M.activate && M.activate(...t))
10438
10438
  }, j(M.label), 11, jf)) : $("", !0),
10439
10439
  w("div", {
10440
10440
  tabindex: M.searchable ? -1 : M.tabindex,
@@ -10448,14 +10448,16 @@ function n8(M, b, z, p, o, e) {
10448
10448
  }, "r-select r-field"]),
10449
10449
  role: "combobox",
10450
10450
  "aria-owns": "listbox-" + M.id,
10451
- onFocus: b[23] || (b[23] = (A) => M.activate()),
10452
- onBlur: b[24] || (b[24] = (A) => M.searchable ? !1 : M.deactivate()),
10451
+ "aria-haspopup": "listbox",
10452
+ "aria-expanded": M.isOpen,
10453
+ onFocus: b[23] || (b[23] = (t) => M.activate()),
10454
+ onBlur: b[24] || (b[24] = (t) => M.searchable ? !1 : M.deactivate()),
10453
10455
  onKeydown: [
10454
- b[25] || (b[25] = D0(m0((A) => M.pointerForward(), ["self", "prevent"]), ["down"])),
10455
- b[26] || (b[26] = D0(m0((A) => M.pointerBackward(), ["self", "prevent"]), ["up"]))
10456
+ b[25] || (b[25] = D0(m0((t) => M.pointerForward(), ["self", "prevent"]), ["down"])),
10457
+ b[26] || (b[26] = D0(m0((t) => M.pointerBackward(), ["self", "prevent"]), ["up"]))
10456
10458
  ],
10457
- onKeypress: b[27] || (b[27] = D0(m0((A) => M.addPointerElement(A), ["stop", "self"]), ["enter", "tab"])),
10458
- onKeyup: b[28] || (b[28] = D0((A) => M.deactivate(), ["esc"]))
10459
+ onKeypress: b[27] || (b[27] = D0(m0((t) => M.addPointerElement(t), ["stop", "self"]), ["enter", "tab"])),
10460
+ onKeyup: b[28] || (b[28] = D0((t) => M.deactivate(), ["esc"]))
10459
10461
  }, [
10460
10462
  M.showRemoveIcon ? Y(M.$slots, "remove", {
10461
10463
  key: 0,
@@ -10464,8 +10466,8 @@ function n8(M, b, z, p, o, e) {
10464
10466
  F(O, {
10465
10467
  icon: "close-s",
10466
10468
  class: "r-select-close",
10467
- onMouseenter: b[1] || (b[1] = (A) => M.isHovered = !0),
10468
- onMouseleave: b[2] || (b[2] = (A) => M.isHovered = !1),
10469
+ onMouseenter: b[1] || (b[1] = (t) => M.isHovered = !0),
10470
+ onMouseleave: b[2] || (b[2] = (t) => M.isHovered = !1),
10469
10471
  onMousedown: m0(M.removeLastElement, ["prevent", "stop"])
10470
10472
  }, null, 8, ["onMousedown"])
10471
10473
  ]) : Y(M.$slots, "caret", {
@@ -10475,17 +10477,17 @@ function n8(M, b, z, p, o, e) {
10475
10477
  F(O, {
10476
10478
  icon: "caret-down",
10477
10479
  class: "r-select-caret",
10478
- onMouseenter: b[3] || (b[3] = (A) => M.isHovered = !0),
10479
- onMouseleave: b[4] || (b[4] = (A) => M.isHovered = !1),
10480
- onMousedown: b[5] || (b[5] = m0((A) => M.toggle(), ["prevent", "stop"]))
10480
+ onMouseenter: b[3] || (b[3] = (t) => M.isHovered = !0),
10481
+ onMouseleave: b[4] || (b[4] = (t) => M.isHovered = !1),
10482
+ onMousedown: b[5] || (b[5] = m0((t) => M.toggle(), ["prevent", "stop"]))
10481
10483
  })
10482
10484
  ]),
10483
10485
  Y(M.$slots, "clear", { search: M.search }),
10484
10486
  w("div", {
10485
10487
  ref: "tagsElement",
10486
10488
  class: "r-select-tags",
10487
- onMouseenter: b[19] || (b[19] = (A) => M.isHovered = !0),
10488
- onMouseleave: b[20] || (b[20] = (A) => M.isHovered = !1)
10489
+ onMouseenter: b[19] || (b[19] = (t) => M.isHovered = !0),
10490
+ onMouseleave: b[20] || (b[20] = (t) => M.isHovered = !1)
10489
10491
  }, [
10490
10492
  M.loading ? $("", !0) : Y(M.$slots, "selection", {
10491
10493
  key: 0,
@@ -10500,8 +10502,8 @@ function n8(M, b, z, p, o, e) {
10500
10502
  onMousedown: b[7] || (b[7] = m0(() => {
10501
10503
  }, ["prevent"]))
10502
10504
  }, [
10503
- (q(!0), u(a0, null, y0(M.computedValue, (A) => Y(M.$slots, "tag", {
10504
- option: A,
10505
+ (q(!0), u(a0, null, y0(M.computedValue, (t) => Y(M.$slots, "tag", {
10506
+ option: t,
10505
10507
  search: M.search,
10506
10508
  remove: M.removeElement
10507
10509
  }, () => [
@@ -10509,13 +10511,13 @@ function n8(M, b, z, p, o, e) {
10509
10511
  class: "r-select-tag",
10510
10512
  type: "tag",
10511
10513
  close: !0,
10512
- onClose: (a) => M.removeElement(A)
10514
+ onClose: (a) => M.removeElement(t)
10513
10515
  }, {
10514
10516
  default: c0(() => [
10515
10517
  w("span", {
10516
10518
  class: "r-select-tag-text",
10517
10519
  onMousedown: b[6] || (b[6] = m0((a) => M.toggle(), ["prevent"]))
10518
- }, j(M.getOptionLabel(A)), 33)
10520
+ }, j(M.getOptionLabel(t)), 33)
10519
10521
  ]),
10520
10522
  _: 2
10521
10523
  }, 1032, ["onClose"])
@@ -10544,7 +10546,7 @@ function n8(M, b, z, p, o, e) {
10544
10546
  key: 1,
10545
10547
  id: M.id,
10546
10548
  ref: "searchElement",
10547
- "onUpdate:modelValue": b[8] || (b[8] = (A) => M.search = A),
10549
+ "onUpdate:modelValue": b[8] || (b[8] = (t) => M.search = t),
10548
10550
  name: M.name,
10549
10551
  type: "text",
10550
10552
  autocomplete: M.autocomplete,
@@ -10554,24 +10556,25 @@ function n8(M, b, z, p, o, e) {
10554
10556
  disabled: M.disabled,
10555
10557
  tabindex: M.tabindex,
10556
10558
  class: "r-select-input",
10559
+ "aria-autocomplete": "list",
10557
10560
  "aria-controls": "listbox-" + M.id,
10558
- "on:update:modelValue": b[9] || (b[9] = (...A) => M.updateSearch && M.updateSearch(...A)),
10559
- onFocus: b[10] || (b[10] = m0((A) => M.activate(), ["prevent"])),
10560
- onBlur: b[11] || (b[11] = m0((A) => M.deactivate(), ["prevent"])),
10561
- onKeyup: b[12] || (b[12] = D0((A) => M.deactivate(), ["esc"])),
10561
+ "on:update:modelValue": b[9] || (b[9] = (...t) => M.updateSearch && M.updateSearch(...t)),
10562
+ onFocus: b[10] || (b[10] = m0((t) => M.activate(), ["prevent"])),
10563
+ onBlur: b[11] || (b[11] = m0((t) => M.deactivate(), ["prevent"])),
10564
+ onKeyup: b[12] || (b[12] = D0((t) => M.deactivate(), ["esc"])),
10562
10565
  onKeydown: [
10563
- b[13] || (b[13] = D0(m0((A) => M.pointerForward(), ["prevent"]), ["down"])),
10564
- b[14] || (b[14] = D0(m0((A) => M.pointerBackward(), ["prevent"]), ["up"])),
10565
- b[16] || (b[16] = D0(m0((A) => M.removeLastElement(), ["stop"]), ["delete"]))
10566
+ b[13] || (b[13] = D0(m0((t) => M.pointerForward(), ["prevent"]), ["down"])),
10567
+ b[14] || (b[14] = D0(m0((t) => M.pointerBackward(), ["prevent"]), ["up"])),
10568
+ b[16] || (b[16] = D0(m0((t) => M.removeLastElement(), ["stop"]), ["delete"]))
10566
10569
  ],
10567
- onKeypress: b[15] || (b[15] = D0(m0((A) => M.addPointerElement(A), ["prevent", "stop", "self"]), ["enter"]))
10570
+ onKeypress: b[15] || (b[15] = D0(m0((t) => M.addPointerElement(t), ["prevent", "stop", "self"]), ["enter"]))
10568
10571
  }, null, 44, Zf)), [
10569
10572
  [no, M.search]
10570
10573
  ]) : $("", !0),
10571
10574
  M.isSingleLabelVisible && !M.loading ? (q(), u("span", {
10572
10575
  key: 2,
10573
10576
  class: "r-select-single",
10574
- onMousedown: b[17] || (b[17] = m0((...A) => M.toggle && M.toggle(...A), ["prevent"]))
10577
+ onMousedown: b[17] || (b[17] = m0((...t) => M.toggle && M.toggle(...t), ["prevent"]))
10575
10578
  }, [
10576
10579
  Y(M.$slots, "singleLabel", { option: M.singleValue }, () => [
10577
10580
  M.displayAsyncLoadingForPreselectedValue ? (q(), u(a0, { key: 0 }, [
@@ -10584,7 +10587,7 @@ function n8(M, b, z, p, o, e) {
10584
10587
  M.isPlaceholderVisible || M.loading ? (q(), u("span", {
10585
10588
  key: 3,
10586
10589
  class: "r-select-placeholder",
10587
- onMousedown: b[18] || (b[18] = m0((...A) => M.toggle && M.toggle(...A), ["prevent"]))
10590
+ onMousedown: b[18] || (b[18] = m0((...t) => M.toggle && M.toggle(...t), ["prevent"]))
10588
10591
  }, [
10589
10592
  Y(M.$slots, "placeholder", {}, () => [
10590
10593
  g0(j(M.placeholder), 1)
@@ -10598,7 +10601,7 @@ function n8(M, b, z, p, o, e) {
10598
10601
  class: "r-select-content-wrapper",
10599
10602
  tabindex: "-1",
10600
10603
  style: a1({ maxHeight: M.optimizedHeight + "px" }),
10601
- onFocus: b[21] || (b[21] = (...A) => M.activate && M.activate(...A)),
10604
+ onFocus: b[21] || (b[21] = (...t) => M.activate && M.activate(...t)),
10602
10605
  onMousedown: b[22] || (b[22] = m0(() => {
10603
10606
  }, ["prevent"]))
10604
10607
  }, [
@@ -10611,7 +10614,7 @@ function n8(M, b, z, p, o, e) {
10611
10614
  Y(M.$slots, "beforeList", {}, () => [
10612
10615
  M.computedIsLoading ? (q(), u("span", Jf, j(M.messages.loading), 1)) : $("", !0),
10613
10616
  M.computedAsyncHasPrevOptions ? (q(), u("li", M8, [
10614
- F(t, {
10617
+ F(A, {
10615
10618
  type: "default",
10616
10619
  size: "small",
10617
10620
  disabled: M.computedIsLoading,
@@ -10634,21 +10637,23 @@ function n8(M, b, z, p, o, e) {
10634
10637
  ])
10635
10638
  ])
10636
10639
  ])) : $("", !0),
10637
- (q(!0), u(a0, null, y0(M.filteredOptions, (A, a) => (q(), u("li", {
10640
+ (q(!0), u(a0, null, y0(M.filteredOptions, (t, a) => (q(), u("li", {
10638
10641
  id: M.id + "-" + a,
10639
10642
  key: a,
10640
- class: "r-select-content-element"
10643
+ class: "r-select-content-element",
10644
+ role: "option",
10645
+ "aria-selected": M.isSelected(t)
10641
10646
  }, [
10642
10647
  w("span", {
10643
- class: H([M.optionHighlight(a, A), "r-select-content-element-option"]),
10644
- onClick: m0((r) => M.select(A), ["stop"]),
10648
+ class: H([M.optionHighlight(a, t), "r-select-content-element-option"]),
10649
+ onClick: m0((r) => M.select(t), ["stop"]),
10645
10650
  onMouseenter: m0((r) => M.pointerSet(a), ["self"])
10646
10651
  }, [
10647
10652
  Y(M.$slots, "option", {
10648
- option: A,
10653
+ option: t,
10649
10654
  search: M.search
10650
10655
  }, () => [
10651
- w("span", null, j(M.getOptionLabel(A)), 1)
10656
+ w("span", null, j(M.getOptionLabel(t)), 1)
10652
10657
  ])
10653
10658
  ], 42, o8)
10654
10659
  ], 8, p8))), 128)),
@@ -10675,7 +10680,7 @@ function n8(M, b, z, p, o, e) {
10675
10680
  ]),
10676
10681
  Y(M.$slots, "afterList", {}, () => [
10677
10682
  M.computedAsyncHasNextOptions ? (q(), u("li", A8, [
10678
- F(t, {
10683
+ F(A, {
10679
10684
  type: "default",
10680
10685
  size: "small",
10681
10686
  disabled: M.computedIsLoading,
@@ -10704,10 +10709,10 @@ function n8(M, b, z, p, o, e) {
10704
10709
  class: "r-field-caption",
10705
10710
  innerHTML: M.helpText
10706
10711
  }, null, 8, a8)) : $("", !0),
10707
- M.isInvalid && M.showValidateMessages ? (q(!0), u(a0, { key: 2 }, y0(M.validateErrorMessages, (A, a) => (q(), u("span", {
10712
+ M.isInvalid && M.showValidateMessages ? (q(!0), u(a0, { key: 2 }, y0(M.validateErrorMessages, (t, a) => (q(), u("span", {
10708
10713
  key: a,
10709
10714
  class: "r-field-caption-error"
10710
- }, j(A), 1))), 128)) : $("", !0)
10715
+ }, j(t), 1))), 128)) : $("", !0)
10711
10716
  ], 2);
10712
10717
  }
10713
10718
  const r8 = /* @__PURE__ */ NM(Yf, [["render", n8]]), i8 = M0({
@@ -10740,16 +10745,16 @@ const r8 = /* @__PURE__ */ NM(Yf, [["render", n8]]), i8 = M0({
10740
10745
  }
10741
10746
  },
10742
10747
  setup(M) {
10743
- const b = S0("addItemToTabsList"), z = S0("visibleTabs"), { name: p, panelId: o, hidden: e, active: O, value: c } = uM(M), t = l(() => o.value || i1()), A = l(() => `tab-${t.value}`), a = l(() => z ? z.value.find(
10744
- ({ tabId: L }) => L === A.value
10745
- )?.isActive : void 0), r = l(() => `tabpanel-${t.value}`), i = A0(O.value);
10748
+ const b = S0("addItemToTabsList"), z = S0("visibleTabs"), { name: p, panelId: o, hidden: e, active: O, value: c } = uM(M), A = l(() => o.value || i1()), t = l(() => `tab-${A.value}`), a = l(() => z ? z.value.find(
10749
+ ({ tabId: L }) => L === t.value
10750
+ )?.isActive : void 0), r = l(() => `tabpanel-${A.value}`), i = A0(O.value);
10746
10751
  return {
10747
10752
  shouldShowThisTab: a,
10748
10753
  tabPanelId: r,
10749
- tabId: A,
10754
+ tabId: t,
10750
10755
  addItemToTabsList: () => {
10751
10756
  b && b({
10752
- tabId: A,
10757
+ tabId: t,
10753
10758
  tabPanelId: r,
10754
10759
  hidden: e,
10755
10760
  isActive: i,
@@ -10895,14 +10900,14 @@ function f8(M, b, z, p, o, e) {
10895
10900
  role: "tab",
10896
10901
  "aria-controls": O.tabPanelId,
10897
10902
  class: H(["r-tab-item-link", { "r-is-active": O.isActive }]),
10898
- onClick: (t) => M.selectTab(O, c)
10903
+ onClick: (A) => M.selectTab(O, c)
10899
10904
  }, j(M.getTabName(O, c)), 11, W8)) : (q(), u("button", {
10900
10905
  key: 1,
10901
10906
  id: O.tabId,
10902
10907
  role: "tab",
10903
10908
  "aria-controls": O.tabPanelId,
10904
10909
  class: H(["r-tab-item-link", { "r-is-active": O.isActive }]),
10905
- onClick: (t) => M.selectTab(O, c)
10910
+ onClick: (A) => M.selectTab(O, c)
10906
10911
  }, j(M.getTabName(O, c)), 11, u8))
10907
10912
  ]))), 128))
10908
10913
  ], 2),
@@ -10992,19 +10997,19 @@ const R8 = /* @__PURE__ */ NM(l8, [["render", f8]]), L8 = { class: "r-component
10992
10997
  render: z.message,
10993
10998
  props: z
10994
10999
  } : null);
10995
- function t() {
11000
+ function A() {
10996
11001
  if (p.parent = document.querySelector(".r-toast-container"), p.parent)
10997
11002
  return;
10998
11003
  p.parent = document.createElement("div"), p.parent.className = "r-toast-container", (z.container || document.body).appendChild(p.parent);
10999
11004
  }
11000
- function A() {
11005
+ function t() {
11001
11006
  z.autoHide ? p.timerHandle = setTimeout(() => i(), z.hideDelay) : a();
11002
11007
  }
11003
11008
  function a() {
11004
11009
  p.timerHandle && (clearTimeout(p.timerHandle), p.timerHandle = null);
11005
11010
  }
11006
11011
  function r() {
11007
- p.parent && o.value && (p.parent.appendChild(o.value), p.isVisible = !0, A());
11012
+ p.parent && o.value && (p.parent.appendChild(o.value), p.isVisible = !0, t());
11008
11013
  }
11009
11014
  function i() {
11010
11015
  a(), p.isVisible = !1, e("hide");
@@ -11015,7 +11020,7 @@ const R8 = /* @__PURE__ */ NM(l8, [["render", f8]]), L8 = { class: "r-component
11015
11020
  p.isVisible = n;
11016
11021
  }
11017
11022
  ), ro(() => {
11018
- t();
11023
+ A();
11019
11024
  }), v1(() => {
11020
11025
  r();
11021
11026
  }), (n, W) => {
@@ -11026,7 +11031,7 @@ const R8 = /* @__PURE__ */ NM(l8, [["render", f8]]), L8 = { class: "r-component
11026
11031
  ref: o,
11027
11032
  class: H(["r-component r-toast", O.value]),
11028
11033
  onMouseenter: a,
11029
- onMouseleave: A
11034
+ onMouseleave: t
11030
11035
  }, [
11031
11036
  n.title ? (q(), u("div", w8, [
11032
11037
  w("span", null, j(n.title), 1)
@@ -11136,7 +11141,7 @@ class P8 {
11136
11141
  b && Array.isArray(b.invalidFields) && b.invalidFields.length && b.invalidFields.forEach(({ field: o, message: e }) => {
11137
11142
  if (o) {
11138
11143
  const c = o.split(".").map(
11139
- (t) => pu(ou(t))
11144
+ (A) => pu(ou(A))
11140
11145
  );
11141
11146
  p.push(
11142
11147
  `${c.join(" > ")}: ${e}`