@ptlm-azulejo/segmented-control 0.1.3-alpha.150 → 0.1.3-alpha.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -60,7 +60,8 @@ function Kr(t, e) {
60
60
  return A[M] = (y, V = !1, p = !1) => (i || b(), P.schedule(y, V, p)), A;
61
61
  }, {}),
62
62
  cancel: (A) => {
63
- for (let M = 0; M < xe.length; M++) s[xe[M]].cancel(A);
63
+ for (let M = 0; M < xe.length; M++)
64
+ s[xe[M]].cancel(A);
64
65
  },
65
66
  state: r,
66
67
  steps: s
@@ -92,11 +93,13 @@ function se(t) {
92
93
  }, se(t);
93
94
  }
94
95
  function pa(t, e) {
95
- if (se(t) != "object" || !t) return t;
96
+ if (se(t) != "object" || !t)
97
+ return t;
96
98
  var i = t[Symbol.toPrimitive];
97
99
  if (i !== void 0) {
98
100
  var n = i.call(t, e || "default");
99
- if (se(n) != "object") return n;
101
+ if (se(n) != "object")
102
+ return n;
100
103
  throw new TypeError("@@toPrimitive must return a primitive value.");
101
104
  }
102
105
  return (e === "string" ? String : Number)(t);
@@ -138,18 +141,21 @@ var ce = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
138
141
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
139
142
  parse: parseFloat,
140
143
  transform: (e) => `${e}${t}`
141
- }), bt = /* @__PURE__ */ ce("deg"), ut = /* @__PURE__ */ ce("%"), x = /* @__PURE__ */ ce("px"), ga = /* @__PURE__ */ ce("vh"), ya = /* @__PURE__ */ ce("vw"), tn = m(m({}, ut), {}, {
144
+ }), bt = /* @__PURE__ */ ce("deg"), ut = /* @__PURE__ */ ce("%"), x = /* @__PURE__ */ ce("px"), ga = /* @__PURE__ */ ce("vh"), ya = /* @__PURE__ */ ce("vw"), tn = /* @__PURE__ */ (() => m(m({}, ut), {}, {
142
145
  parse: (t) => ut.parse(t) / 100,
143
146
  transform: (t) => ut.transform(t * 100)
144
- });
147
+ }))();
145
148
  function en(t, e) {
146
149
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
147
150
  }
148
151
  var lt = { correct: (t, e) => {
149
- if (!e.target) return t;
152
+ if (!e.target)
153
+ return t;
150
154
  if (typeof t == "string")
151
- if (x.test(t)) t = parseFloat(t);
152
- else return t;
155
+ if (x.test(t))
156
+ t = parseFloat(t);
157
+ else
158
+ return t;
153
159
  return `${en(t, e.target.x)}% ${en(t, e.target.y)}%`;
154
160
  } }, ct = (t, e, i) => i > e ? e : i < t ? t : i, Gt = {
155
161
  test: (t) => typeof t == "number",
@@ -160,7 +166,8 @@ function ba(t) {
160
166
  return t == null;
161
167
  }
162
168
  var xa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ci = (t, e) => (i) => !!(typeof i == "string" && xa.test(i) && i.startsWith(t) || e && !ba(i) && Object.prototype.hasOwnProperty.call(i, e)), Yr = (t, e, i) => (n) => {
163
- if (typeof n != "string") return n;
169
+ if (typeof n != "string")
170
+ return n;
164
171
  const [r, o, s, a] = n.match(Ei);
165
172
  return {
166
173
  [t]: parseFloat(r),
@@ -245,7 +252,8 @@ var wt = {
245
252
  getAnimatableNone: ka
246
253
  }, B = (t, e, i) => t + (e - t) * i, Jr = { correct: (t, { treeScale: e, projectionDelta: i }) => {
247
254
  const n = t, r = wt.parse(t);
248
- if (r.length > 5) return n;
255
+ if (r.length > 5)
256
+ return n;
249
257
  const o = wt.createTransformer(t), s = typeof r[0] != "number" ? 1 : 0, a = i.x.scale * e.x, l = i.y.scale * e.y;
250
258
  r[0 + s] /= a, r[1 + s] /= l;
251
259
  const u = B(a, l, 0.5);
@@ -275,7 +283,8 @@ function he(t, e) {
275
283
  const i = typeof t == "string" && !e ? `${t}Context` : e, n = Symbol(i);
276
284
  return [(s) => {
277
285
  const a = qo(n, s);
278
- if (a === void 0) throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t) ? `one of the following components: ${t.join(", ")}` : `\`${t}\``}`);
286
+ if (a === void 0)
287
+ throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t) ? `one of the following components: ${t.join(", ")}` : `\`${t}\``}`);
279
288
  return a;
280
289
  }, (s) => (ra(n, s), s)];
281
290
  }
@@ -305,14 +314,17 @@ var mt = class {
305
314
  process.env.NODE_ENV !== "production" && (It = function(t, e) {
306
315
  !t && typeof console != "undefined" && console.warn(e);
307
316
  }, ze = function(t, e) {
308
- if (!t) throw new Error(e);
317
+ if (!t)
318
+ throw new Error(e);
309
319
  });
310
320
  function ie(t, e, i) {
311
- if (Array.isArray(t)) return t.reduce((n, r) => {
312
- const o = ie(r, e, i);
313
- return o ? m(m({}, n), o) : n;
314
- }, {});
315
- if (typeof t == "object") return t;
321
+ if (Array.isArray(t))
322
+ return t.reduce((n, r) => {
323
+ const o = ie(r, e, i);
324
+ return o ? m(m({}, n), o) : n;
325
+ }, {});
326
+ if (typeof t == "object")
327
+ return t;
316
328
  if (t && e) {
317
329
  const n = e[t];
318
330
  return typeof n == "function" ? n(i) : n;
@@ -323,8 +335,11 @@ function ja(t, e) {
323
335
  }
324
336
  function Oa(t, e) {
325
337
  const i = e.length;
326
- if (i !== t.length) return !1;
327
- for (let n = 0; n < i; n++) if (e[n] !== t[n]) return !1;
338
+ if (i !== t.length)
339
+ return !1;
340
+ for (let n = 0; n < i; n++)
341
+ if (e[n] !== t[n])
342
+ return !1;
328
343
  return !0;
329
344
  }
330
345
  function on(t) {
@@ -676,7 +691,8 @@ function rl(t) {
676
691
  if (r in el) {
677
692
  const o = t[n];
678
693
  e[r] = F(o) ? o.get() : o;
679
- } else i[n] = t[n];
694
+ } else
695
+ i[n] = t[n];
680
696
  }
681
697
  return e["path-length"] !== void 0 && nl(e, e["path-length"], e["path-spacing"], e["path-offset"]), {
682
698
  attrs: e,
@@ -684,20 +700,25 @@ function rl(t) {
684
700
  };
685
701
  }
686
702
  function sl(t, e) {
687
- if (t == null) return {};
703
+ if (t == null)
704
+ return {};
688
705
  var i = {};
689
- for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
690
- if (e.includes(n)) continue;
691
- i[n] = t[n];
692
- }
706
+ for (var n in t)
707
+ if ({}.hasOwnProperty.call(t, n)) {
708
+ if (e.includes(n))
709
+ continue;
710
+ i[n] = t[n];
711
+ }
693
712
  return i;
694
713
  }
695
714
  function tt(t, e) {
696
- if (t == null) return {};
715
+ if (t == null)
716
+ return {};
697
717
  var i, n, r = sl(t, e);
698
718
  if (Object.getOwnPropertySymbols) {
699
719
  var o = Object.getOwnPropertySymbols(t);
700
- for (n = 0; n < o.length; n++) i = o[n], e.includes(i) || {}.propertyIsEnumerable.call(t, i) && (r[i] = t[i]);
720
+ for (n = 0; n < o.length; n++)
721
+ i = o[n], e.includes(i) || {}.propertyIsEnumerable.call(t, i) && (r[i] = t[i]);
701
722
  }
702
723
  return r;
703
724
  }
@@ -720,7 +741,8 @@ function ll({ top: t, left: e, right: i, bottom: n }) {
720
741
  };
721
742
  }
722
743
  function ul(t, e) {
723
- if (!e) return t;
744
+ if (!e)
745
+ return t;
724
746
  const i = e({
725
747
  x: t.left,
726
748
  y: t.top
@@ -776,7 +798,8 @@ var hn = {
776
798
  ],
777
799
  layout: ["layout", "layoutId"]
778
800
  }, oi = {};
779
- for (const t in hn) oi[t] = { isEnabled: (e) => hn[t].some((i) => !!e[i]) };
801
+ for (const t in hn)
802
+ oi[t] = { isEnabled: (e) => hn[t].some((i) => !!e[i]) };
780
803
  var dn = () => ({
781
804
  translate: 0,
782
805
  scale: 1,
@@ -797,7 +820,8 @@ function dl() {
797
820
  if (window.matchMedia) {
798
821
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Be.current = t.matches;
799
822
  t.addEventListener("change", e), e();
800
- } else Be.current = !1;
823
+ } else
824
+ Be.current = !1;
801
825
  }
802
826
  function fl(t) {
803
827
  return t !== null && typeof t == "object" && typeof t.start == "function";
@@ -844,11 +868,13 @@ var Ri = class {
844
868
  notify(t, e, i) {
845
869
  const n = this.subscriptions.length;
846
870
  if (n)
847
- if (n === 1) this.subscriptions[0](t, e, i);
848
- else for (let r = 0; r < n; r++) {
849
- const o = this.subscriptions[r];
850
- o && o(t, e, i);
851
- }
871
+ if (n === 1)
872
+ this.subscriptions[0](t, e, i);
873
+ else
874
+ for (let r = 0; r < n; r++) {
875
+ const o = this.subscriptions[r];
876
+ o && o(t, e, i);
877
+ }
852
878
  }
853
879
  getSize() {
854
880
  return this.subscriptions.length;
@@ -866,7 +892,8 @@ var mn = 30, yl = (t) => !isNaN(parseFloat(t)), vn = { current: void 0 }, bl = c
866
892
  var n;
867
893
  const r = K.now();
868
894
  if (this.updatedAt !== r && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && ((n = this.events.change) == null || n.notify(this.current), this.dependents))
869
- for (const o of this.dependents) o.dirty();
895
+ for (const o of this.dependents)
896
+ o.dirty();
870
897
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
871
898
  }
872
899
  setCurrent(t) {
@@ -888,7 +915,8 @@ var mn = 30, yl = (t) => !isNaN(parseFloat(t)), vn = { current: void 0 }, bl = c
888
915
  } : i;
889
916
  }
890
917
  clearListeners() {
891
- for (const t in this.events) this.events[t].clear();
918
+ for (const t in this.events)
919
+ this.events[t].clear();
892
920
  }
893
921
  attach(t, e) {
894
922
  this.passiveEffect = t, this.stopPassiveEffect = e;
@@ -920,7 +948,8 @@ var mn = 30, yl = (t) => !isNaN(parseFloat(t)), vn = { current: void 0 }, bl = c
920
948
  }
921
949
  getVelocity() {
922
950
  const t = K.now();
923
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > mn) return 0;
951
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > mn)
952
+ return 0;
924
953
  const e = Math.min(this.updatedAt - this.prevUpdatedAt, mn);
925
954
  return as(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
926
955
  }
@@ -951,8 +980,10 @@ function zt(t, e) {
951
980
  function xl(t, e, i) {
952
981
  for (const n in e) {
953
982
  const r = e[n], o = i[n];
954
- if (F(r)) t.addValue(n, r);
955
- else if (F(o)) t.addValue(n, zt(r, { owner: t }));
983
+ if (F(r))
984
+ t.addValue(n, r);
985
+ else if (F(o))
986
+ t.addValue(n, zt(r, { owner: t }));
956
987
  else if (o !== r)
957
988
  if (t.hasValue(n)) {
958
989
  const s = t.getValue(n);
@@ -962,7 +993,8 @@ function xl(t, e, i) {
962
993
  t.addValue(n, zt(s !== void 0 ? s : r, { owner: t }));
963
994
  }
964
995
  }
965
- for (const n in i) e[n] === void 0 && t.removeValue(n);
996
+ for (const n in i)
997
+ e[n] === void 0 && t.removeValue(n);
966
998
  return e;
967
999
  }
968
1000
  function gn(t) {
@@ -1026,7 +1058,8 @@ function ci(t) {
1026
1058
  return t.includes("scale") ? 1 : 0;
1027
1059
  }
1028
1060
  function hi(t, e) {
1029
- if (!t || t === "none") return ci(e);
1061
+ if (!t || t === "none")
1062
+ return ci(e);
1030
1063
  const i = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
1031
1064
  let n, r;
1032
1065
  if (i)
@@ -1035,7 +1068,8 @@ function hi(t, e) {
1035
1068
  const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
1036
1069
  n = Tl, r = a;
1037
1070
  }
1038
- if (!r) return ci(e);
1071
+ if (!r)
1072
+ return ci(e);
1039
1073
  const o = n[e], s = r[1].split(",").map(Pl);
1040
1074
  return typeof o == "function" ? o(s) : s[o];
1041
1075
  }
@@ -1064,7 +1098,7 @@ var $t = [
1064
1098
  "skew",
1065
1099
  "skewX",
1066
1100
  "skewY"
1067
- ], Wt = new Set($t), wn = (t) => t === Gt || t === x, El = /* @__PURE__ */ new Set([
1101
+ ], Wt = /* @__PURE__ */ (() => new Set($t))(), wn = (t) => t === Gt || t === x, El = /* @__PURE__ */ new Set([
1068
1102
  "x",
1069
1103
  "y",
1070
1104
  "z"
@@ -1127,7 +1161,8 @@ var Li = class {
1127
1161
  const { unresolvedKeyframes: t, name: e, element: i, motionValue: n } = this;
1128
1162
  if (t[0] === null) {
1129
1163
  const r = n == null ? void 0 : n.get(), o = t[t.length - 1];
1130
- if (r !== void 0) t[0] = r;
1164
+ if (r !== void 0)
1165
+ t[0] = r;
1131
1166
  else if (i && e) {
1132
1167
  const s = i.readValue(e, o);
1133
1168
  s != null && (t[0] = s);
@@ -1176,9 +1211,11 @@ var Li = class {
1176
1211
  ]);
1177
1212
  function Bl(t) {
1178
1213
  const [e, i] = t.slice(0, -1).split("(");
1179
- if (e === "drop-shadow") return t;
1214
+ if (e === "drop-shadow")
1215
+ return t;
1180
1216
  const [n] = i.match(Ei) || [];
1181
- if (!n) return t;
1217
+ if (!n)
1218
+ return t;
1182
1219
  const r = i.replace(n, "");
1183
1220
  let o = Ll.has(e) ? 1 : 0;
1184
1221
  return n !== i && (o *= 100), e + "(" + o + r + ")";
@@ -1319,7 +1356,8 @@ var { schedule: gs, cancel: $f } = /* @__PURE__ */ Kr(queueMicrotask, !0), Fl =
1319
1356
  unmount() {
1320
1357
  var t;
1321
1358
  this.projection && this.projection.unmount(), pt(this.notifyUpdate), pt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
1322
- for (const e in this.events) this.events[e].clear();
1359
+ for (const e in this.events)
1360
+ this.events[e].clear();
1323
1361
  for (const e in this.features) {
1324
1362
  const i = this.features[e];
1325
1363
  i && (i.unmount(), i.isMounted = !1);
@@ -1352,7 +1390,8 @@ var { schedule: gs, cancel: $f } = /* @__PURE__ */ Kr(queueMicrotask, !0), Fl =
1352
1390
  let t = "animation";
1353
1391
  for (t in oi) {
1354
1392
  const e = oi[t];
1355
- if (!e) continue;
1393
+ if (!e)
1394
+ continue;
1356
1395
  const { isEnabled: i, Feature: n } = e;
1357
1396
  if (!this.features[t] && n && i(this.props) && (this.features[t] = new n(this)), this.features[t]) {
1358
1397
  const r = this.features[t];
@@ -1415,7 +1454,8 @@ var { schedule: gs, cancel: $f } = /* @__PURE__ */ Kr(queueMicrotask, !0), Fl =
1415
1454
  return this.values.has(t);
1416
1455
  }
1417
1456
  getValue(t, e) {
1418
- if (this.props.values && this.props.values[t]) return this.props.values[t];
1457
+ if (this.props.values && this.props.values[t])
1458
+ return this.props.values[t];
1419
1459
  let i = this.values.get(t);
1420
1460
  return i === void 0 && e !== void 0 && (i = zt(e === null ? void 0 : e, { owner: this }), this.addValue(t, i)), i;
1421
1461
  }
@@ -1435,7 +1475,8 @@ var { schedule: gs, cancel: $f } = /* @__PURE__ */ Kr(queueMicrotask, !0), Fl =
1435
1475
  const o = ls(this.props, i, (e = this.presenceContext) == null ? void 0 : e.custom);
1436
1476
  o && (n = o[t]);
1437
1477
  }
1438
- if (i && n !== void 0) return n;
1478
+ if (i && n !== void 0)
1479
+ return n;
1439
1480
  const r = this.getBaseTargetFromProps(this.props, t);
1440
1481
  return r !== void 0 && !F(r) ? r : this.initialValues[t] !== void 0 && n === void 0 ? void 0 : this.baseTarget[t];
1441
1482
  }
@@ -1462,12 +1503,14 @@ var { schedule: gs, cancel: $f } = /* @__PURE__ */ Kr(queueMicrotask, !0), Fl =
1462
1503
  typeof process != "undefined" && ((Pn = process.env) == null ? void 0 : Pn.NODE_ENV) !== "production" && (fe = (t, e, i) => {
1463
1504
  !t && typeof console != "undefined" && console.warn(ai(e, i));
1464
1505
  }, ht = (t, e, i) => {
1465
- if (!t) throw new Error(ai(e, i));
1506
+ if (!t)
1507
+ throw new Error(ai(e, i));
1466
1508
  });
1467
1509
  var _l = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1468
1510
  function Nl(t) {
1469
1511
  const e = _l.exec(t);
1470
- if (!e) return [,];
1512
+ if (!e)
1513
+ return [,];
1471
1514
  const [, i, n, r] = e;
1472
1515
  return [`--${i != null ? i : n}`, r];
1473
1516
  }
@@ -1475,7 +1518,8 @@ var zl = 4;
1475
1518
  function xs(t, e, i = 1) {
1476
1519
  ht(i <= zl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1477
1520
  const [n, r] = Nl(t);
1478
- if (!n) return;
1521
+ if (!n)
1522
+ return;
1479
1523
  const o = window.getComputedStyle(e).getPropertyValue(n);
1480
1524
  if (o) {
1481
1525
  const s = o.trim();
@@ -1497,7 +1541,9 @@ function $l(t, e, i) {
1497
1541
  const o = t[n];
1498
1542
  typeof o == "string" && !Gl.has(o) && ae(o).values.length && (r = t[n]), n++;
1499
1543
  }
1500
- if (r && i) for (const o of e) t[o] = vs(i, r);
1544
+ if (r && i)
1545
+ for (const o of e)
1546
+ t[o] = vs(i, r);
1501
1547
  }
1502
1548
  var Wl = class extends Li {
1503
1549
  constructor(t, e, i, n, r) {
@@ -1505,7 +1551,8 @@ var Wl = class extends Li {
1505
1551
  }
1506
1552
  readKeyframes() {
1507
1553
  const { unresolvedKeyframes: t, element: e, name: i } = this;
1508
- if (!e || !e.current) return;
1554
+ if (!e || !e.current)
1555
+ return;
1509
1556
  super.readKeyframes();
1510
1557
  for (let a = 0; a < t.length; a++) {
1511
1558
  let l = t[a];
@@ -1514,27 +1561,32 @@ var Wl = class extends Li {
1514
1561
  u !== void 0 && (t[a] = u), a === t.length - 1 && (this.finalKeyframe = l);
1515
1562
  }
1516
1563
  }
1517
- if (this.resolveNoneKeyframes(), !bs.has(i) || t.length !== 2) return;
1564
+ if (this.resolveNoneKeyframes(), !bs.has(i) || t.length !== 2)
1565
+ return;
1518
1566
  const [n, r] = t, o = Tn(n), s = Tn(r);
1519
1567
  if (rn(n) !== rn(r) && xt[i]) {
1520
1568
  this.needsMeasurement = !0;
1521
1569
  return;
1522
1570
  }
1523
1571
  if (o !== s)
1524
- if (wn(o) && wn(s)) for (let a = 0; a < t.length; a++) {
1525
- const l = t[a];
1526
- typeof l == "string" && (t[a] = parseFloat(l));
1527
- }
1528
- else xt[i] && (this.needsMeasurement = !0);
1572
+ if (wn(o) && wn(s))
1573
+ for (let a = 0; a < t.length; a++) {
1574
+ const l = t[a];
1575
+ typeof l == "string" && (t[a] = parseFloat(l));
1576
+ }
1577
+ else
1578
+ xt[i] && (this.needsMeasurement = !0);
1529
1579
  }
1530
1580
  resolveNoneKeyframes() {
1531
1581
  const { unresolvedKeyframes: t, name: e } = this, i = [];
1532
- for (let n = 0; n < t.length; n++) (t[n] === null || Ul(t[n])) && i.push(n);
1582
+ for (let n = 0; n < t.length; n++)
1583
+ (t[n] === null || Ul(t[n])) && i.push(n);
1533
1584
  i.length && $l(t, i, e);
1534
1585
  }
1535
1586
  measureInitialState() {
1536
1587
  const { element: t, unresolvedKeyframes: e, name: i } = this;
1537
- if (!t || !t.current) return;
1588
+ if (!t || !t.current)
1589
+ return;
1538
1590
  i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = xt[i](t.measureViewportBox(), window.getComputedStyle(t.current)), e[0] = this.measuredOrigin;
1539
1591
  const n = e[e.length - 1];
1540
1592
  n !== void 0 && t.getValue(i, n).jump(n, !1);
@@ -1542,7 +1594,8 @@ var Wl = class extends Li {
1542
1594
  measureEndState() {
1543
1595
  var t;
1544
1596
  const { element: e, name: i, unresolvedKeyframes: n } = this;
1545
- if (!e || !e.current) return;
1597
+ if (!e || !e.current)
1598
+ return;
1546
1599
  const r = e.getValue(i);
1547
1600
  r && r.jump(this.measuredOrigin, !1);
1548
1601
  const o = n.length - 1, s = n[o];
@@ -1580,7 +1633,8 @@ function Xl(t, e, i) {
1580
1633
  let n = "", r = !0;
1581
1634
  for (let o = 0; o < Yl; o++) {
1582
1635
  const s = $t[o], a = t[s];
1583
- if (a === void 0) continue;
1636
+ if (a === void 0)
1637
+ continue;
1584
1638
  let l = !0;
1585
1639
  if (typeof a == "number" ? l = a === (s.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || i) {
1586
1640
  const u = Ts(a, Bi[s]);
@@ -1618,9 +1672,11 @@ function Ss(t, e, i) {
1618
1672
  function As(t, { style: e, vars: i }, n, r) {
1619
1673
  const o = t.style;
1620
1674
  let s;
1621
- for (s in e) o[s] = e[s];
1675
+ for (s in e)
1676
+ o[s] = e[s];
1622
1677
  r == null || r.applyProjectionStyles(o, n);
1623
- for (s in i) o.setProperty(s, i[s]);
1678
+ for (s in i)
1679
+ o.setProperty(s, i[s]);
1624
1680
  }
1625
1681
  function Hl(t, { layout: e, layoutId: i }) {
1626
1682
  return Wt.has(t) || t.startsWith("origin") || (e || i !== void 0) && (!!le[t] || t === "opacity");
@@ -1628,7 +1684,8 @@ function Hl(t, { layout: e, layoutId: i }) {
1628
1684
  function Ps(t, e, i) {
1629
1685
  var n;
1630
1686
  const { style: r } = t, o = {};
1631
- for (const s in r) (F(r[s]) || e.style && F(e.style[s]) || Hl(s, t) || ((n = i == null ? void 0 : i.getValue(s)) == null ? void 0 : n.liveStyle) !== void 0) && (o[s] = r[s]);
1687
+ for (const s in r)
1688
+ (F(r[s]) || e.style && F(e.style[s]) || Hl(s, t) || ((n = i == null ? void 0 : i.getValue(s)) == null ? void 0 : n.liveStyle) !== void 0) && (o[s] = r[s]);
1632
1689
  return o;
1633
1690
  }
1634
1691
  function ql(t) {
@@ -1640,7 +1697,8 @@ var Es = class extends ws {
1640
1697
  }
1641
1698
  readValueFromInstance(t, e) {
1642
1699
  var i;
1643
- if (Wt.has(e)) return (i = this.projection) != null && i.isProjecting ? ci(e) : Al(t, e);
1700
+ if (Wt.has(e))
1701
+ return (i = this.projection) != null && i.isProjecting ? ci(e) : Al(t, e);
1644
1702
  {
1645
1703
  const n = ql(t), r = (Vi(e) ? n.getPropertyValue(e) : n[e]) || 0;
1646
1704
  return typeof r == "string" ? r.trim() : r;
@@ -1698,7 +1756,8 @@ function iu(t, e, i, n, r) {
1698
1756
  var g;
1699
1757
  f.transformBox = (g = r == null ? void 0 : r.transformBox) !== null && g !== void 0 ? g : "fill-box", delete d.transformBox;
1700
1758
  }
1701
- for (const b of eu) d[b] !== void 0 && (f[b] = d[b], delete d[b]);
1759
+ for (const b of eu)
1760
+ d[b] !== void 0 && (f[b] = d[b], delete d[b]);
1702
1761
  o !== void 0 && (d.x = o), s !== void 0 && (d.y = s), a !== void 0 && (d.scale = a), l !== void 0 && Ql(d, l, u, c, !1);
1703
1762
  }
1704
1763
  var Cs = /* @__PURE__ */ new Set([
@@ -1728,14 +1787,16 @@ var Cs = /* @__PURE__ */ new Set([
1728
1787
  ]), nu = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1729
1788
  function ru(t, e, i, n) {
1730
1789
  As(t, e, void 0, n);
1731
- for (const r in e.attrs) t.setAttribute(Cs.has(r) ? r : ji(r), e.attrs[r]);
1790
+ for (const r in e.attrs)
1791
+ t.setAttribute(Cs.has(r) ? r : ji(r), e.attrs[r]);
1732
1792
  }
1733
1793
  function su(t, e, i) {
1734
1794
  const n = Ps(t, e, i);
1735
- for (const r in t) if (F(t[r]) || F(e[r])) {
1736
- const o = $t.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
1737
- n[o] = t[r];
1738
- }
1795
+ for (const r in t)
1796
+ if (F(t[r]) || F(e[r])) {
1797
+ const o = $t.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
1798
+ n[o] = t[r];
1799
+ }
1739
1800
  return n;
1740
1801
  }
1741
1802
  var Vs = class extends ws {
@@ -1776,7 +1837,8 @@ function Oi(t) {
1776
1837
  return typeof t == "object" && !Array.isArray(t);
1777
1838
  }
1778
1839
  function Ii(t, e, i) {
1779
- if (t instanceof EventTarget) return [t];
1840
+ if (t instanceof EventTarget)
1841
+ return [t];
1780
1842
  if (typeof t == "string") {
1781
1843
  var n;
1782
1844
  let r = document;
@@ -1793,10 +1855,14 @@ function lu(t, e, i) {
1793
1855
  return t * (e + 1);
1794
1856
  }
1795
1857
  function En(t, e, i, n) {
1796
- if (typeof e == "number") return e;
1797
- if (e.startsWith("-") || e.startsWith("+")) return Math.max(0, t + parseFloat(e));
1798
- if (e === "<") return i;
1799
- if (e.startsWith("<")) return Math.max(0, i + parseFloat(e.slice(1)));
1858
+ if (typeof e == "number")
1859
+ return e;
1860
+ if (e.startsWith("-") || e.startsWith("+"))
1861
+ return Math.max(0, t + parseFloat(e));
1862
+ if (e === "<")
1863
+ return i;
1864
+ if (e.startsWith("<"))
1865
+ return Math.max(0, i + parseFloat(e.slice(1)));
1800
1866
  var r;
1801
1867
  return (r = n.get(e)) !== null && r !== void 0 ? r : t;
1802
1868
  }
@@ -1815,14 +1881,16 @@ function cu(t, e, i) {
1815
1881
  }
1816
1882
  function hu(t, e, i, n, r, o) {
1817
1883
  cu(t, r, o);
1818
- for (let s = 0; s < e.length; s++) t.push({
1819
- value: e[s],
1820
- at: B(r, o, n[s]),
1821
- easing: Ds(i, s)
1822
- });
1884
+ for (let s = 0; s < e.length; s++)
1885
+ t.push({
1886
+ value: e[s],
1887
+ at: B(r, o, n[s]),
1888
+ easing: Ds(i, s)
1889
+ });
1823
1890
  }
1824
1891
  function du(t, e) {
1825
- for (let i = 0; i < t.length; i++) t[i] = t[i] / (e + 1);
1892
+ for (let i = 0; i < t.length; i++)
1893
+ t[i] = t[i] / (e + 1);
1826
1894
  }
1827
1895
  function fu(t, e) {
1828
1896
  return t.at === e.at ? t.value === null ? 1 : e.value === null ? -1 : 0 : t.at - e.at;
@@ -1929,7 +1997,8 @@ function yu(t, e = {}, i, n) {
1929
1997
  for (let V = 0; V < y; V++) {
1930
1998
  S = S, C = C;
1931
1999
  const p = P[V], k = Cn(p, l);
1932
- for (const R in S) M(S[R], xu(C, R), Vn(R, k), V, y);
2000
+ for (const R in S)
2001
+ M(S[R], xu(C, R), Vn(R, k), V, y);
1933
2002
  }
1934
2003
  }
1935
2004
  h = d, d += A;
@@ -1983,14 +2052,16 @@ function Cu(t) {
1983
2052
  function Vu(t, e) {
1984
2053
  let i = Au(t, e) || {}, { transitionEnd: n = {}, transition: r = {} } = i, o = tt(i, Pu);
1985
2054
  o = m(m({}, o), n);
1986
- for (const s in o) Eu(t, s, Cu(o[s]));
2055
+ for (const s in o)
2056
+ Eu(t, s, Cu(o[s]));
1987
2057
  }
1988
2058
  function ku(t) {
1989
2059
  return !!(F(t) && t.add);
1990
2060
  }
1991
2061
  function Mu(t, e) {
1992
2062
  const i = t.getValue("willChange");
1993
- if (ku(i)) return i.add(e);
2063
+ if (ku(i))
2064
+ return i.add(e);
1994
2065
  if (!i && ft.WillChange) {
1995
2066
  const n = new ft.WillChange("auto");
1996
2067
  t.addValue("willChange", n), n.add(e);
@@ -2061,7 +2132,8 @@ function Ye(t, e, i) {
2061
2132
  function Uu({ hue: t, saturation: e, lightness: i, alpha: n }) {
2062
2133
  t /= 360, e /= 100, i /= 100;
2063
2134
  let r = 0, o = 0, s = 0;
2064
- if (!e) r = o = s = i;
2135
+ if (!e)
2136
+ r = o = s = i;
2065
2137
  else {
2066
2138
  const a = i < 0.5 ? i * (1 + e) : i + e - i * e, l = 2 * i - a;
2067
2139
  r = Ye(l, a, t + 1 / 3), o = Ye(l, a, t), s = Ye(l, a, t - 1 / 3);
@@ -2086,13 +2158,15 @@ var Xe = (t, e, i) => {
2086
2158
  ], $u = (t) => Gu.find((e) => e.test(t));
2087
2159
  function kn(t) {
2088
2160
  const e = $u(t);
2089
- if (fe(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e) return !1;
2161
+ if (fe(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
2162
+ return !1;
2090
2163
  let i = e.parse(t);
2091
2164
  return e === Ot && (i = Uu(i)), i;
2092
2165
  }
2093
2166
  var Mn = (t, e) => {
2094
2167
  const i = kn(t), n = kn(e);
2095
- if (!i || !n) return je(t, e);
2168
+ if (!i || !n)
2169
+ return je(t, e);
2096
2170
  const r = m({}, i);
2097
2171
  return (o) => (r.red = Xe(i.red, n.red, o), r.green = Xe(i.green, n.green, o), r.blue = Xe(i.blue, n.blue, o), r.alpha = B(i.alpha, n.alpha, o), Vt.transform(r));
2098
2172
  }, gi = /* @__PURE__ */ new Set(["none", "hidden"]);
@@ -2109,15 +2183,18 @@ function zi(t) {
2109
2183
  function Is(t, e) {
2110
2184
  const i = [...t], n = i.length, r = t.map((o, s) => zi(o)(o, e[s]));
2111
2185
  return (o) => {
2112
- for (let s = 0; s < n; s++) i[s] = r[s](o);
2186
+ for (let s = 0; s < n; s++)
2187
+ i[s] = r[s](o);
2113
2188
  return i;
2114
2189
  };
2115
2190
  }
2116
2191
  function Xu(t, e) {
2117
2192
  const i = m(m({}, t), e), n = {};
2118
- for (const r in i) t[r] !== void 0 && e[r] !== void 0 && (n[r] = zi(t[r])(t[r], e[r]));
2193
+ for (const r in i)
2194
+ t[r] !== void 0 && e[r] !== void 0 && (n[r] = zi(t[r])(t[r], e[r]));
2119
2195
  return (r) => {
2120
- for (const o in n) i[o] = n[o](r);
2196
+ for (const o in n)
2197
+ i[o] = n[o](r);
2121
2198
  return i;
2122
2199
  };
2123
2200
  }
@@ -2151,7 +2228,8 @@ var Zu = (t) => {
2151
2228
  }, _s = (t, e, i = 10) => {
2152
2229
  let n = "";
2153
2230
  const r = Math.max(Math.round(e / i), 2);
2154
- for (let o = 0; o < r; o++) n += Math.round(t(o / (r - 1)) * 1e4) / 1e4 + ", ";
2231
+ for (let o = 0; o < r; o++)
2232
+ n += Math.round(t(o / (r - 1)) * 1e4) / 1e4 + ", ";
2155
2233
  return `linear(${n.substring(0, n.length - 2)})`;
2156
2234
  }, Ju = 5;
2157
2235
  function Ns(t, e, i) {
@@ -2191,11 +2269,12 @@ function Qu({ duration: t = O.duration, bounce: e = O.bounce, velocity: i = O.ve
2191
2269
  return (-r(u) + Dn > 0 ? -1 : 1) * ((h - d) * f) / v;
2192
2270
  }) : (r = (u) => -1e-3 + Math.exp(-u * t) * ((u - i) * t + 1), o = (u) => Math.exp(-u * t) * ((i - u) * (t * t)));
2193
2271
  const a = 5 / t, l = ec(r, o, a);
2194
- if (t = it(t), isNaN(l)) return {
2195
- stiffness: O.stiffness,
2196
- damping: O.damping,
2197
- duration: t
2198
- };
2272
+ if (t = it(t), isNaN(l))
2273
+ return {
2274
+ stiffness: O.stiffness,
2275
+ damping: O.damping,
2276
+ duration: t
2277
+ };
2199
2278
  {
2200
2279
  const u = Math.pow(l, 2) * n;
2201
2280
  return {
@@ -2208,7 +2287,8 @@ function Qu({ duration: t = O.duration, bounce: e = O.bounce, velocity: i = O.ve
2208
2287
  var tc = 12;
2209
2288
  function ec(t, e, i) {
2210
2289
  let n = i;
2211
- for (let r = 1; r < tc; r++) n = n - t(n) / e(n);
2290
+ for (let r = 1; r < tc; r++)
2291
+ n = n - t(n) / e(n);
2212
2292
  return n;
2213
2293
  }
2214
2294
  function yi(t, e) {
@@ -2263,7 +2343,8 @@ function ue(t = O.visualDuration, e = O.bounce) {
2263
2343
  const V = Math.exp(-g * S * y);
2264
2344
  return s - V * ((v + g * S * b) / P * Math.sin(P * y) + b * Math.cos(P * y));
2265
2345
  };
2266
- } else if (g === 1) A = (P) => s - Math.exp(-S * P) * (b + (v + S * b) * P);
2346
+ } else if (g === 1)
2347
+ A = (P) => s - Math.exp(-S * P) * (b + (v + S * b) * P);
2267
2348
  else {
2268
2349
  const P = S * Math.sqrt(g * g - 1);
2269
2350
  A = (y) => {
@@ -2343,15 +2424,19 @@ function sc(t, e, i) {
2343
2424
  }
2344
2425
  function oc(t, e, { clamp: i = !0, ease: n, mixer: r } = {}) {
2345
2426
  const o = t.length;
2346
- if (ht(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1) return () => e[0];
2347
- if (o === 2 && e[0] === e[1]) return () => e[1];
2427
+ if (ht(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
2428
+ return () => e[0];
2429
+ if (o === 2 && e[0] === e[1])
2430
+ return () => e[1];
2348
2431
  const s = t[0] === t[1];
2349
2432
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
2350
2433
  const a = sc(e, n, r), l = a.length, u = (c) => {
2351
- if (s && c < t[0]) return e[0];
2434
+ if (s && c < t[0])
2435
+ return e[0];
2352
2436
  let h = 0;
2353
2437
  if (l > 1)
2354
- for (; h < t.length - 2 && !(c < t[h + 1]); h++) ;
2438
+ for (; h < t.length - 2 && !(c < t[h + 1]); h++)
2439
+ ;
2355
2440
  const d = Ut(t[h], t[h + 1], c);
2356
2441
  return a[h](d);
2357
2442
  };
@@ -2369,7 +2454,8 @@ function cc(t, e, i, n, r) {
2369
2454
  return s;
2370
2455
  }
2371
2456
  function me(t, e, i, n) {
2372
- if (t === e && i === n) return Y;
2457
+ if (t === e && i === n)
2458
+ return Y;
2373
2459
  const r = (o) => cc(o, 0, 1, t, i);
2374
2460
  return (o) => o === 0 || o === 1 ? o : zs(r(o), e, n);
2375
2461
  }
@@ -2469,7 +2555,8 @@ var Wi = class {
2469
2555
  }
2470
2556
  tick(t, e = !1) {
2471
2557
  const { generator: i, totalDuration: n, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: s, calculatedDuration: a } = this;
2472
- if (this.startTime === null) return i.next(0);
2558
+ if (this.startTime === null)
2559
+ return i.next(0);
2473
2560
  const { delay: l = 0, keyframes: u, repeat: c, repeatType: h, repeatDelay: d, type: f, onUpdate: v, finalKeyframe: g } = this.options;
2474
2561
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - n / this.speed, this.startTime)), e ? this.currentTime = t : this.updateTime(t);
2475
2562
  const b = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), S = this.playbackSpeed >= 0 ? b < 0 : b > n;
@@ -2517,7 +2604,8 @@ var Wi = class {
2517
2604
  }
2518
2605
  play() {
2519
2606
  var t, e;
2520
- if (this.isStopped) return;
2607
+ if (this.isStopped)
2608
+ return;
2521
2609
  const { driver: i = Zu, startTime: n } = this.options;
2522
2610
  this.driver || (this.driver = i((o) => this.tick(o))), (e = (t = this.options).onPlay) == null || e.call(t);
2523
2611
  const r = this.driver.now();
@@ -2606,7 +2694,8 @@ var Js = /* @__PURE__ */ Tc(() => {
2606
2694
  ])
2607
2695
  };
2608
2696
  function Qs(t, e) {
2609
- if (t) return typeof t == "function" ? Js() ? _s(t, e) : "ease-out" : qs(t) ? Qt(t) : Array.isArray(t) ? t.map((i) => Qs(i, e) || jn.easeOut) : jn[t];
2697
+ if (t)
2698
+ return typeof t == "function" ? Js() ? _s(t, e) : "ease-out" : qs(t) ? Qt(t) : Array.isArray(t) ? t.map((i) => Qs(i, e) || jn.easeOut) : jn[t];
2610
2699
  }
2611
2700
  function Sc(t, e, i, { delay: n = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
2612
2701
  const c = { [e]: i };
@@ -2630,13 +2719,15 @@ function Sc(t, e, i, { delay: n = 0, duration: r = 300, repeat: o = 0, repeatTyp
2630
2719
  var Ac = ["type"];
2631
2720
  function Pc(t) {
2632
2721
  let { type: e } = t, i = tt(t, Ac);
2633
- if (_i(e) && Js()) return e.applyToOptions(i);
2722
+ if (_i(e) && Js())
2723
+ return e.applyToOptions(i);
2634
2724
  var n, r;
2635
2725
  return (n = i.duration) !== null && n !== void 0 || (i.duration = 300), (r = i.ease) !== null && r !== void 0 || (i.ease = "easeOut"), i;
2636
2726
  }
2637
2727
  var Ec = class extends Wi {
2638
2728
  constructor(t) {
2639
- if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t) return;
2729
+ if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
2730
+ return;
2640
2731
  const { element: e, name: i, keyframes: n, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: s, onComplete: a } = t;
2641
2732
  this.isPseudoElement = !!r, this.allowFlatten = o, this.options = t, ht(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
2642
2733
  const l = Pc(t);
@@ -2665,7 +2756,8 @@ var Ec = class extends Wi {
2665
2756
  }
2666
2757
  }
2667
2758
  stop() {
2668
- if (this.isStopped) return;
2759
+ if (this.isStopped)
2760
+ return;
2669
2761
  this.isStopped = !0;
2670
2762
  const { state: t } = this;
2671
2763
  t === "idle" || t === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
@@ -2731,7 +2823,8 @@ var kc = [
2731
2823
  }
2732
2824
  updateMotionValue(t) {
2733
2825
  const e = this.options, { motionValue: i, onUpdate: n, onComplete: r, element: o } = e, s = tt(e, kc);
2734
- if (!i) return;
2826
+ if (!i)
2827
+ return;
2735
2828
  if (t !== void 0) {
2736
2829
  i.set(t);
2737
2830
  return;
@@ -2742,13 +2835,18 @@ var kc = [
2742
2835
  }, On = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (wt.test(t) || t === "0") && !t.startsWith("url("));
2743
2836
  function Dc(t) {
2744
2837
  const e = t[0];
2745
- if (t.length === 1) return !0;
2746
- for (let i = 0; i < t.length; i++) if (t[i] !== e) return !0;
2838
+ if (t.length === 1)
2839
+ return !0;
2840
+ for (let i = 0; i < t.length; i++)
2841
+ if (t[i] !== e)
2842
+ return !0;
2747
2843
  }
2748
2844
  function Rc(t, e, i, n) {
2749
2845
  const r = t[0];
2750
- if (r === null) return !1;
2751
- if (e === "display" || e === "visibility") return !0;
2846
+ if (r === null)
2847
+ return !1;
2848
+ if (e === "display" || e === "visibility")
2849
+ return !0;
2752
2850
  const o = t[t.length - 1], s = On(r, e), a = On(o, e);
2753
2851
  return fe(s === a, `You are trying to animate ${e} from "${r}" to "${o}". "${s ? o : r}" is not an animatable value.`, "value-not-animatable"), !s || !a ? !1 : Dc(t) || (i === "spring" || _i(i)) && n;
2754
2852
  }
@@ -2761,7 +2859,8 @@ var Lc = /* @__PURE__ */ new Set([
2761
2859
  function jc(t) {
2762
2860
  var e;
2763
2861
  const { motionValue: i, name: n, repeatDelay: r, repeatType: o, damping: s, type: a } = t;
2764
- if (!(((e = i == null ? void 0 : i.owner) == null ? void 0 : e.current) instanceof HTMLElement)) return !1;
2862
+ if (!(((e = i == null ? void 0 : i.owner) == null ? void 0 : e.current) instanceof HTMLElement))
2863
+ return !1;
2765
2864
  const { onUpdate: l, transformTemplate: u } = i.owner.getProps();
2766
2865
  return Bc() && n && Lc.has(n) && (n !== "transform" || !u) && !l && !r && o !== "mirror" && s !== 0 && a !== "inertia";
2767
2866
  }
@@ -2902,9 +3001,11 @@ function zc(t, e, { delay: i = 0, transitionOverride: n, type: r } = {}) {
2902
3001
  for (const h in a) {
2903
3002
  var c;
2904
3003
  const d = t.getValue(h, (c = t.latestValues[h]) !== null && c !== void 0 ? c : null), f = a[h];
2905
- if (f === void 0 || u && Nc(u, h)) continue;
3004
+ if (f === void 0 || u && Nc(u, h))
3005
+ continue;
2906
3006
  const v = m({ delay: i }, Ni(o || {}, h)), g = d.get();
2907
- if (g !== void 0 && !d.isAnimating && !Array.isArray(f) && f === g && !v.velocity) continue;
3007
+ if (g !== void 0 && !d.isAnimating && !Array.isArray(f) && f === g && !v.velocity)
3008
+ continue;
2908
3009
  let b = !1;
2909
3010
  if (window.MotionHandoffAnimation) {
2910
3011
  const C = Os(t);
@@ -2933,7 +3034,8 @@ var Gc = class extends ys {
2933
3034
  readValueFromInstance(t, e) {
2934
3035
  if (Uc(e, t)) {
2935
3036
  const i = t[e];
2936
- if (typeof i == "string" || typeof i == "number") return i;
3037
+ if (typeof i == "string" || typeof i == "number")
3038
+ return i;
2937
3039
  }
2938
3040
  }
2939
3041
  getBaseTargetFromProps() {
@@ -3000,7 +3102,8 @@ function Kc(t, e) {
3000
3102
  }
3001
3103
  function ro(t, e, i, n) {
3002
3104
  const r = [];
3003
- if (Kc(t, e)) r.push(no(t, Oi(e) && e.default || e, i && (i.default || i)));
3105
+ if (Kc(t, e))
3106
+ r.push(no(t, Oi(e) && e.default || e, i && (i.default || i)));
3004
3107
  else {
3005
3108
  const o = ks(t, e, n), s = o.length;
3006
3109
  ht(!!s, "No valid elements provided.", "no-valid-elements");
@@ -3032,7 +3135,8 @@ var Xc = class {
3032
3135
  return this.animations[0][t];
3033
3136
  }
3034
3137
  setAll(t, e) {
3035
- for (let i = 0; i < this.animations.length; i++) this.animations[i][t] = e;
3138
+ for (let i = 0; i < this.animations.length; i++)
3139
+ this.animations[i][t] = e;
3036
3140
  }
3037
3141
  attachTimeline(t) {
3038
3142
  const e = this.animations.map((i) => i.attachTimeline(t));
@@ -3102,7 +3206,8 @@ function Zc(t) {
3102
3206
  function Jc(t) {
3103
3207
  function e(i, n, r) {
3104
3208
  let o = [], s;
3105
- if (Zc(i)) o = Yc(i, n, t);
3209
+ if (Zc(i))
3210
+ o = Yc(i, n, t);
3106
3211
  else {
3107
3212
  const l = r || {}, { onComplete: u } = l, c = tt(l, qc);
3108
3213
  typeof u == "function" && (s = u), o = ro(i, n, c, t);
@@ -3190,7 +3295,8 @@ var Qc = Jc(), th = [
3190
3295
  setupChildAnimations(t, e) {
3191
3296
  var i;
3192
3297
  const n = this.state.visualElement;
3193
- if (!((i = n.variantChildren) != null && i.size) || !e) return { getChildAnimations: () => Promise.resolve() };
3298
+ if (!((i = n.variantChildren) != null && i.size) || !e)
3299
+ return { getChildAnimations: () => Promise.resolve() };
3194
3300
  const { staggerChildren: r = 0, staggerDirection: o = 1, delayChildren: s = 0 } = t || {}, a = n.variantChildren.size, l = (a - 1) * r, u = typeof s == "function", c = u ? (d) => s(d, a) : o === 1 ? (d = 0) => d * r : (d = 0) => l - d * r, h = Array.from(n.variantChildren).map((d, f) => d.state.animateUpdates({
3195
3301
  controlActiveState: e,
3196
3302
  controlDelay: (u ? 0 : s) + c(f)
@@ -3201,7 +3307,8 @@ var Qc = Jc(), th = [
3201
3307
  const n = [];
3202
3308
  return Object.keys(this.state.target).forEach((r) => {
3203
3309
  var o, s;
3204
- if (!ja(t[r], this.state.target[r])) return;
3310
+ if (!ja(t[r], this.state.target[r]))
3311
+ return;
3205
3312
  (o = (s = this.state.baseTarget)[r]) !== null && o !== void 0 || (s[r] = Qa.get(this.state.element, r));
3206
3313
  const a = this.state.target[r] === "none" && Le(cn[r]) ? cn[r] : this.state.target[r];
3207
3314
  n.push(() => {
@@ -3214,7 +3321,8 @@ var Qc = Jc(), th = [
3214
3321
  let n = this.state.options.transition, r = {};
3215
3322
  const { variants: o, custom: s, transition: a, animatePresenceContext: l } = this.state.options, u = s != null ? s : l == null ? void 0 : l.custom;
3216
3323
  return this.state.activeStates = m(m({}, this.state.activeStates), t), th.forEach((c) => {
3217
- if (!this.state.activeStates[c] || sn(this.state.options[c])) return;
3324
+ if (!this.state.activeStates[c] || sn(this.state.options[c]))
3325
+ return;
3218
3326
  const h = this.state.options[c];
3219
3327
  let d = Le(h) ? ie(h, o, u) : void 0;
3220
3328
  if (this.state.visualElement.isVariantNode) {
@@ -3291,9 +3399,11 @@ function qe(t, e) {
3291
3399
  }
3292
3400
  var oh = (t, e) => {
3293
3401
  const i = t.currentTarget;
3294
- if (!i) return;
3402
+ if (!i)
3403
+ return;
3295
3404
  const n = _n(() => {
3296
- if (Me.has(i)) return;
3405
+ if (Me.has(i))
3406
+ return;
3297
3407
  qe(i, "down");
3298
3408
  const r = _n(() => {
3299
3409
  qe(i, "up");
@@ -3308,7 +3418,8 @@ function Nn(t) {
3308
3418
  function ah(t, e, i = {}) {
3309
3419
  const [n, r, o] = ao(t, i), s = (a) => {
3310
3420
  const l = a.currentTarget;
3311
- if (!Nn(a)) return;
3421
+ if (!Nn(a))
3422
+ return;
3312
3423
  Me.add(l);
3313
3424
  const u = e(l, a), c = (f, v) => {
3314
3425
  window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), Me.has(l) && Me.delete(l), Nn(f) && typeof u == "function" && u(f, { success: v });
@@ -3360,9 +3471,11 @@ function Un(t) {
3360
3471
  }
3361
3472
  function uh(t, e, i = {}) {
3362
3473
  const [n, r, o] = ao(t, i), s = (a) => {
3363
- if (!Un(a)) return;
3474
+ if (!Un(a))
3475
+ return;
3364
3476
  const { target: l } = a, u = e(l, a);
3365
- if (typeof u != "function" || !l) return;
3477
+ if (typeof u != "function" || !l)
3478
+ return;
3366
3479
  const c = (h) => {
3367
3480
  Un(h) && (u(h), l.removeEventListener("pointerleave", c));
3368
3481
  };
@@ -3411,7 +3524,8 @@ function dh(t, e, { root: i, margin: n, amount: r = "some" } = {}) {
3411
3524
  if (c.isIntersecting) {
3412
3525
  const d = e(c.target, c);
3413
3526
  typeof d == "function" ? s.set(c.target, d) : l.unobserve(c.target);
3414
- } else typeof h == "function" && (h(c), s.delete(c.target));
3527
+ } else
3528
+ typeof h == "function" && (h(c), s.delete(c.target));
3415
3529
  });
3416
3530
  }, l = new IntersectionObserver(a, {
3417
3531
  root: i,
@@ -3437,13 +3551,15 @@ var ph = class extends mt {
3437
3551
  }
3438
3552
  startObserver() {
3439
3553
  const t = this.state.element;
3440
- if (!t || !this.isActive()) return;
3554
+ if (!t || !this.isActive())
3555
+ return;
3441
3556
  this.unmount();
3442
3557
  const e = this.state.options.inViewOptions || {}, { once: i } = e, n = tt(e, fh);
3443
3558
  this.unmount = dh(t, (r, o) => {
3444
- if ($n(this.state, o, "Enter"), !i) return (s) => {
3445
- $n(this.state, o, "Leave");
3446
- };
3559
+ if ($n(this.state, o, "Enter"), !i)
3560
+ return (s) => {
3561
+ $n(this.state, o, "Leave");
3562
+ };
3447
3563
  }, n);
3448
3564
  }
3449
3565
  mount() {
@@ -3567,7 +3683,8 @@ function fo(t, { x: e, y: i }) {
3567
3683
  var Jn = 0.999999999999, Qn = 1.0000000000001;
3568
3684
  function Sh(t, e, i, n = !1) {
3569
3685
  const r = i.length;
3570
- if (!r) return;
3686
+ if (!r)
3687
+ return;
3571
3688
  e.x = e.y = 1;
3572
3689
  let o, s;
3573
3690
  for (let a = 0; a < r; a++) {
@@ -3618,7 +3735,8 @@ function rr(t, e, i, n, r) {
3618
3735
  return t -= e, t = Ie(t, 1 / i, n), r !== void 0 && (t = Ie(t, 1 / r, n)), t;
3619
3736
  }
3620
3737
  function Mh(t, e = 0, i = 1, n = 0.5, r, o = t, s = t) {
3621
- if (ut.test(e) && (e = parseFloat(e), e = B(s.min, s.max, e / 100) - s.min), typeof e != "number") return;
3738
+ if (ut.test(e) && (e = parseFloat(e), e = B(s.min, s.max, e / 100) - s.min), typeof e != "number")
3739
+ return;
3622
3740
  let a = B(o.min, o.max, n);
3623
3741
  t === o && (a -= e), t.min = rr(t.min, e, i, a, r), t.max = rr(t.max, e, i, a, r);
3624
3742
  }
@@ -3676,7 +3794,8 @@ var Bh = class {
3676
3794
  }
3677
3795
  relegate(t) {
3678
3796
  const e = this.members.findIndex((n) => t === n);
3679
- if (e === 0) return !1;
3797
+ if (e === 0)
3798
+ return !1;
3680
3799
  let i;
3681
3800
  for (let n = e; n >= 0; n--) {
3682
3801
  const r = this.members[n];
@@ -3741,9 +3860,11 @@ function ti(t, e, i, n) {
3741
3860
  r[t] && (i[t] = r[t], e.setStaticValue(t, 0), n && (n[t] = 0));
3742
3861
  }
3743
3862
  function vo(t) {
3744
- if (t.hasCheckedOptimisedAppear = !0, t.root === t) return;
3863
+ if (t.hasCheckedOptimisedAppear = !0, t.root === t)
3864
+ return;
3745
3865
  const { visualElement: e } = t.options;
3746
- if (!e) return;
3866
+ if (!e)
3867
+ return;
3747
3868
  const i = Os(e);
3748
3869
  if (window.MotionHasOptimisedAnimation(i, "transform")) {
3749
3870
  const { layout: r, layoutId: o } = t.options;
@@ -3763,7 +3884,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3763
3884
  }, this.updateProjection = () => {
3764
3885
  this.projectionUpdateScheduled = !1, at.value && (Ct.nodes = Ct.calculatedTargetDeltas = Ct.calculatedProjections = 0), this.nodes.forEach(Nh), this.nodes.forEach($h), this.nodes.forEach(Wh), this.nodes.forEach(zh), at.addProjectionMetrics && at.addProjectionMetrics(Ct);
3765
3886
  }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3766
- for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0;
3887
+ for (let l = 0; l < this.path.length; l++)
3888
+ this.path[l].shouldResetTransform = !0;
3767
3889
  this.root === this && (this.nodes = new yh());
3768
3890
  }
3769
3891
  addEventListener(s, a) {
@@ -3777,7 +3899,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3777
3899
  return this.eventHandlers.has(s);
3778
3900
  }
3779
3901
  mount(s) {
3780
- if (this.instance) return;
3902
+ if (this.instance)
3903
+ return;
3781
3904
  this.isSVG = Hi(s) && !io(s), this.instance = s;
3782
3905
  const { layoutId: a, layout: l, visualElement: u } = this.options;
3783
3906
  if (u && !u.current && u.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
@@ -3837,14 +3960,16 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3837
3960
  this.options.onExitComplete && this.options.onExitComplete();
3838
3961
  return;
3839
3962
  }
3840
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && vo(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
3963
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && vo(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
3964
+ return;
3841
3965
  this.isLayoutDirty = !0;
3842
3966
  for (let c = 0; c < this.path.length; c++) {
3843
3967
  const h = this.path[c];
3844
3968
  h.shouldResetTransform = !0, h.updateScroll("snapshot"), h.options.layoutRoot && h.willUpdate(!1);
3845
3969
  }
3846
3970
  const { layoutId: a, layout: l } = this.options;
3847
- if (a === void 0 && !l) return;
3971
+ if (a === void 0 && !l)
3972
+ return;
3848
3973
  const u = this.getTransformTemplate();
3849
3974
  this.prevTransformTemplateValue = u ? u(this.latestValues, "") : void 0, this.updateSnapshot(), s && this.notifyListeners("willUpdate");
3850
3975
  }
@@ -3879,8 +4004,11 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3879
4004
  this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Q(this.snapshot.measuredBox.x) && !Q(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3880
4005
  }
3881
4006
  updateLayout() {
3882
- if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
3883
- if (this.resumeFrom && !this.resumeFrom.instance) for (let l = 0; l < this.path.length; l++) this.path[l].updateScroll();
4007
+ if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
4008
+ return;
4009
+ if (this.resumeFrom && !this.resumeFrom.instance)
4010
+ for (let l = 0; l < this.path.length; l++)
4011
+ this.path[l].updateScroll();
3884
4012
  const s = this.layout;
3885
4013
  this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = N(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3886
4014
  const { visualElement: a } = this.options;
@@ -3900,7 +4028,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3900
4028
  }
3901
4029
  }
3902
4030
  resetTransform() {
3903
- if (!r) return;
4031
+ if (!r)
4032
+ return;
3904
4033
  const s = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !po(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
3905
4034
  s && this.instance && (a || Et(this.latestValues) || c) && (r(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
3906
4035
  }
@@ -3918,7 +4047,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3918
4047
  measurePageBox() {
3919
4048
  var s;
3920
4049
  const { visualElement: a } = this.options;
3921
- if (!a) return N();
4050
+ if (!a)
4051
+ return N();
3922
4052
  const l = a.measureViewportBox();
3923
4053
  if (!((s = this.scroll) != null && s.wasRoot || this.path.some(Jh))) {
3924
4054
  const { scroll: u } = this.root;
@@ -3929,7 +4059,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3929
4059
  removeElementScroll(s) {
3930
4060
  var a;
3931
4061
  const l = N();
3932
- if (et(l, s), (a = this.scroll) != null && a.wasRoot) return l;
4062
+ if (et(l, s), (a = this.scroll) != null && a.wasRoot)
4063
+ return l;
3933
4064
  for (let u = 0; u < this.path.length; u++) {
3934
4065
  const c = this.path[u], { scroll: h, options: d } = c;
3935
4066
  c !== this.root && h && d.layoutScroll && (h.wasRoot && et(l, s), Te(l.x, h.offset.x), Te(l.y, h.offset.y));
@@ -3953,7 +4084,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3953
4084
  et(a, s);
3954
4085
  for (let l = 0; l < this.path.length; l++) {
3955
4086
  const u = this.path[l];
3956
- if (!u.instance || !Et(u.latestValues)) continue;
4087
+ if (!u.instance || !Et(u.latestValues))
4088
+ continue;
3957
4089
  xi(u.latestValues) && u.updateSnapshot();
3958
4090
  const c = N(), h = u.measurePageBox();
3959
4091
  et(c, h), or(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
@@ -3977,9 +4109,11 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3977
4109
  const l = this.getLead();
3978
4110
  this.isProjectionDirty || (this.isProjectionDirty = l.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = l.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = l.isSharedProjectionDirty);
3979
4111
  const u = !!this.resumingFrom || this !== l;
3980
- if (!(s || u && this.isSharedProjectionDirty || this.isProjectionDirty || (a = this.parent) != null && a.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
4112
+ if (!(s || u && this.isSharedProjectionDirty || this.isProjectionDirty || (a = this.parent) != null && a.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
4113
+ return;
3981
4114
  const { layout: c, layoutId: h } = this.options;
3982
- if (!this.layout || !(c || h)) return;
4115
+ if (!this.layout || !(c || h))
4116
+ return;
3983
4117
  this.resolvedRelativeTargetAt = $.timestamp;
3984
4118
  const d = this.getClosestProjectingParent();
3985
4119
  d && this.linkedParentVersion !== d.layoutVersion && !d.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (d && d.layout ? this.createRelativeTarget(d, this.layout.layoutBox, d.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = N(), this.targetWithTransforms = N()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), kh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), fo(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? this.createRelativeTarget(d, this.target, d.target) : this.relativeParent = this.relativeTarget = void 0), at.value && Ct.calculatedTargetDeltas++);
@@ -4001,9 +4135,11 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
4001
4135
  var s;
4002
4136
  const a = this.getLead(), l = !!this.resumingFrom || this !== a;
4003
4137
  let u = !0;
4004
- if ((this.isProjectionDirty || (s = this.parent) != null && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === $.timestamp && (u = !1), u) return;
4138
+ if ((this.isProjectionDirty || (s = this.parent) != null && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === $.timestamp && (u = !1), u)
4139
+ return;
4005
4140
  const { layout: c, layoutId: h } = this.options;
4006
- if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || h)) return;
4141
+ if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || h))
4142
+ return;
4007
4143
  et(this.layoutCorrected, this.layout.layoutBox);
4008
4144
  const d = this.treeScale.x, f = this.treeScale.y;
4009
4145
  Sh(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = N());
@@ -4106,7 +4242,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
4106
4242
  }
4107
4243
  getStack() {
4108
4244
  const { layoutId: s } = this.options;
4109
- if (s) return this.root.sharedNodes.get(s);
4245
+ if (s)
4246
+ return this.root.sharedNodes.get(s);
4110
4247
  }
4111
4248
  promote({ needsReset: s, transition: a, preserveFollowOpacity: l } = {}) {
4112
4249
  const u = this.getStack();
@@ -4118,10 +4255,12 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
4118
4255
  }
4119
4256
  resetSkewAndRotation() {
4120
4257
  const { visualElement: s } = this.options;
4121
- if (!s) return;
4258
+ if (!s)
4259
+ return;
4122
4260
  let a = !1;
4123
4261
  const { latestValues: l } = s;
4124
- if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a) return;
4262
+ if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
4263
+ return;
4125
4264
  const u = {};
4126
4265
  l.z && ti("z", s, u, this.animationValues);
4127
4266
  for (let c = 0; c < Qe.length; c++)
@@ -4132,7 +4271,8 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
4132
4271
  s.scheduleRender();
4133
4272
  }
4134
4273
  applyProjectionStyles(s, a) {
4135
- if (!this.instance || this.isSVG) return;
4274
+ if (!this.instance || this.isSVG)
4275
+ return;
4136
4276
  if (!this.isVisible) {
4137
4277
  s.visibility = "hidden";
4138
4278
  return;
@@ -4156,14 +4296,18 @@ function go({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
4156
4296
  if (s.transformOrigin = `${d.origin * 100}% ${f.origin * 100}% 0`, u.animationValues) {
4157
4297
  var v, g;
4158
4298
  s.opacity = u === this ? (v = (g = c.opacity) !== null && g !== void 0 ? g : this.latestValues.opacity) !== null && v !== void 0 ? v : 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit;
4159
- } else s.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
4299
+ } else
4300
+ s.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
4160
4301
  for (const b in le) {
4161
- if (c[b] === void 0) continue;
4302
+ if (c[b] === void 0)
4303
+ continue;
4162
4304
  const { correct: S, applyTo: C, isCSSVariable: A } = le[b], M = h === "none" ? c[b] : S(c[b], u);
4163
4305
  if (C) {
4164
4306
  const P = C.length;
4165
- for (let y = 0; y < P; y++) s[C[y]] = M;
4166
- } else A ? this.options.visualElement.renderState.vars[b] = M : s[b] = M;
4307
+ for (let y = 0; y < P; y++)
4308
+ s[C[y]] = M;
4309
+ } else
4310
+ A ? this.options.visualElement.renderState.vars[b] = M : s[b] = M;
4167
4311
  }
4168
4312
  this.options.layoutId && (s.pointerEvents = u === this ? Ze(a == null ? void 0 : a.pointerEvents) || "" : "none");
4169
4313
  }
@@ -4403,8 +4547,10 @@ function To(t) {
4403
4547
  var wr = To("dragHorizontal"), Tr = To("dragVertical");
4404
4548
  function rd(t) {
4405
4549
  let e = !1;
4406
- if (t === "y") e = Tr();
4407
- else if (t === "x") e = wr();
4550
+ if (t === "y")
4551
+ e = Tr();
4552
+ else if (t === "x")
4553
+ e = wr();
4408
4554
  else {
4409
4555
  const i = wr(), n = Tr();
4410
4556
  i && n ? e = () => {
@@ -4481,12 +4627,14 @@ var Vr = /* @__PURE__ */ new Set(["auto", "scroll"]), So = class {
4481
4627
  }, this.onWindowScroll = () => {
4482
4628
  this.handleScroll(window);
4483
4629
  }, this.updatePoint = () => {
4484
- if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4630
+ if (!(this.lastMoveEvent && this.lastMoveEventInfo))
4631
+ return;
4485
4632
  const c = ni(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = hd(c.offset, {
4486
4633
  x: 0,
4487
4634
  y: 0
4488
4635
  }) >= 3;
4489
- if (!h && !d) return;
4636
+ if (!h && !d)
4637
+ return;
4490
4638
  const { point: f } = c, { timestamp: v } = $;
4491
4639
  this.history.push(m(m({}, f), {}, { timestamp: v }));
4492
4640
  const { onStart: g, onMove: b } = this.handlers;
@@ -4496,10 +4644,12 @@ var Vr = /* @__PURE__ */ new Set(["auto", "scroll"]), So = class {
4496
4644
  }, this.handlePointerUp = (c, h) => {
4497
4645
  this.end();
4498
4646
  const { onEnd: d, onSessionEnd: f, resumeAnimation: v } = this.handlers;
4499
- if ((this.dragSnapToOrigin || !this.startEvent) && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4647
+ if ((this.dragSnapToOrigin || !this.startEvent) && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4648
+ return;
4500
4649
  const g = ni(c.type === "pointercancel" ? this.lastMoveEventInfo : ii(h, this.transformPagePoint), this.history);
4501
4650
  this.startEvent && d && d(c, g), f && f(c, g);
4502
- }, !wo(t)) return;
4651
+ }, !wo(t))
4652
+ return;
4503
4653
  this.dragSnapToOrigin = r, this.handlers = e, this.transformPagePoint = i, this.contextWindow = n || window;
4504
4654
  const s = ii(qi(t), this.transformPagePoint), { point: a } = s, { timestamp: l } = $;
4505
4655
  this.history = [m(m({}, a), {}, { timestamp: l })];
@@ -4531,7 +4681,8 @@ var Vr = /* @__PURE__ */ new Set(["auto", "scroll"]), So = class {
4531
4681
  }
4532
4682
  handleScroll(t) {
4533
4683
  const e = this.scrollPositions.get(t);
4534
- if (!e) return;
4684
+ if (!e)
4685
+ return;
4535
4686
  const i = t === window, n = i ? {
4536
4687
  x: window.scrollX,
4537
4688
  y: window.scrollY
@@ -4576,23 +4727,26 @@ function Ao(t) {
4576
4727
  return t[t.length - 1];
4577
4728
  }
4578
4729
  function fd(t, e) {
4579
- if (t.length < 2) return {
4580
- x: 0,
4581
- y: 0
4582
- };
4730
+ if (t.length < 2)
4731
+ return {
4732
+ x: 0,
4733
+ y: 0
4734
+ };
4583
4735
  let i = t.length - 1, n = null;
4584
4736
  const r = Ao(t);
4585
4737
  for (; i >= 0 && (n = t[i], !(r.timestamp - n.timestamp > it(e))); )
4586
4738
  i--;
4587
- if (!n) return {
4588
- x: 0,
4589
- y: 0
4590
- };
4739
+ if (!n)
4740
+ return {
4741
+ x: 0,
4742
+ y: 0
4743
+ };
4591
4744
  const o = J(r.timestamp - n.timestamp);
4592
- if (o === 0) return {
4593
- x: 0,
4594
- y: 0
4595
- };
4745
+ if (o === 0)
4746
+ return {
4747
+ x: 0,
4748
+ y: 0
4749
+ };
4596
4750
  const s = {
4597
4751
  x: (r.x - n.x) / o,
4598
4752
  y: (r.y - n.y) / o
@@ -4617,7 +4771,8 @@ function md(t) {
4617
4771
  }
4618
4772
  function Dr(t, e) {
4619
4773
  const i = t.getValue("willChange");
4620
- if (md(i)) return i.add(e);
4774
+ if (md(i))
4775
+ return i.add(e);
4621
4776
  }
4622
4777
  function Po({ top: t, left: e, right: i, bottom: n }) {
4623
4778
  return {
@@ -4632,7 +4787,8 @@ function Po({ top: t, left: e, right: i, bottom: n }) {
4632
4787
  };
4633
4788
  }
4634
4789
  function vd(t, e) {
4635
- if (!e) return t;
4790
+ if (!e)
4791
+ return t;
4636
4792
  const i = e({
4637
4793
  x: t.left,
4638
4794
  y: t.top
@@ -4698,7 +4854,8 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4698
4854
  }), d && L.postRender(() => d(l, u)), Dr(this.visualElement, "transform"), this.visualElement.state.setActive("whileDrag", !0));
4699
4855
  }, r = (l, u) => {
4700
4856
  const { dragPropagation: c, dragDirectionLock: h, onDirectionLock: d, onDrag: f } = this.getProps();
4701
- if (!c && !this.openGlobalLock) return;
4857
+ if (!c && !this.openGlobalLock)
4858
+ return;
4702
4859
  const { offset: v } = u;
4703
4860
  if (h && this.currentDirection === null) {
4704
4861
  this.currentDirection = Sd(v), this.currentDirection !== null && d && d(this.currentDirection);
@@ -4724,7 +4881,8 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4724
4881
  }
4725
4882
  stop(t, e) {
4726
4883
  const i = this.isDragging;
4727
- if (this.cancel(), !i) return;
4884
+ if (this.cancel(), !i)
4885
+ return;
4728
4886
  const { velocity: n } = e;
4729
4887
  this.startAnimation(n);
4730
4888
  const { onDragEnd: r } = this.getProps();
@@ -4739,7 +4897,8 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4739
4897
  }
4740
4898
  updateAxis(t, e, i) {
4741
4899
  const { drag: n } = this.getProps();
4742
- if (!i || !Se(t, n, this.currentDirection)) return;
4900
+ if (!i || !Se(t, n, this.currentDirection))
4901
+ return;
4743
4902
  const r = this.getAxisMotionValue(t);
4744
4903
  let o = this.originPoint[t] + i[t];
4745
4904
  this.constraints && this.constraints[t] && (o = sd(o, this.constraints[t], this.elastic[t])), r.set(o);
@@ -4753,11 +4912,13 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4753
4912
  }
4754
4913
  resolveRefConstraints() {
4755
4914
  const { dragConstraints: t, onMeasureDragConstraints: e } = this.getProps();
4756
- if (!t || !te(t)) return !1;
4915
+ if (!t || !te(t))
4916
+ return !1;
4757
4917
  const i = t;
4758
4918
  ze(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
4759
4919
  const { projection: n } = this.visualElement;
4760
- if (!n || !n.layout) return !1;
4920
+ if (!n || !n.layout)
4921
+ return !1;
4761
4922
  const r = bd(i, n.root, this.visualElement.getTransformPagePoint());
4762
4923
  let o = ud(n.layout.layoutBox, r);
4763
4924
  if (e) {
@@ -4768,7 +4929,8 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4768
4929
  }
4769
4930
  startAnimation(t) {
4770
4931
  const { drag: e, dragMomentum: i, dragElastic: n, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: s } = this.getProps(), a = this.constraints || {}, l = st((u) => {
4771
- if (!Se(u, e, this.currentDirection)) return;
4932
+ if (!Se(u, e, this.currentDirection))
4933
+ return;
4772
4934
  let c = a && a[u] || {};
4773
4935
  o && (c = {
4774
4936
  min: 0,
@@ -4811,7 +4973,8 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4811
4973
  snapToCursor(t) {
4812
4974
  st((e) => {
4813
4975
  const { drag: i } = this.getProps();
4814
- if (!Se(e, i, this.currentDirection)) return;
4976
+ if (!Se(e, i, this.currentDirection))
4977
+ return;
4815
4978
  const { projection: n } = this.visualElement, r = this.getAxisMotionValue(e);
4816
4979
  if (n && n.layout) {
4817
4980
  const { min: o, max: s } = n.layout.layoutBox[e];
@@ -4820,9 +4983,11 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4820
4983
  });
4821
4984
  }
4822
4985
  scalePositionWithinConstraints() {
4823
- if (!this.visualElement.current) return;
4986
+ if (!this.visualElement.current)
4987
+ return;
4824
4988
  const { drag: t, dragConstraints: e } = this.getProps(), { projection: i } = this.visualElement;
4825
- if (!te(e) || !i || !this.constraints) return;
4989
+ if (!te(e) || !i || !this.constraints)
4990
+ return;
4826
4991
  this.stopAnimation();
4827
4992
  const n = {
4828
4993
  x: 0,
@@ -4840,13 +5005,15 @@ var wd = /* @__PURE__ */ new WeakMap(), Td = class {
4840
5005
  });
4841
5006
  const { transformTemplate: r } = this.visualElement.getProps();
4842
5007
  this.visualElement.current.style.transform = r ? r({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), st((o) => {
4843
- if (!Se(o, t, null)) return;
5008
+ if (!Se(o, t, null))
5009
+ return;
4844
5010
  const s = this.getAxisMotionValue(o), { min: a, max: l } = this.constraints[o];
4845
5011
  s.set(B(a, l, n[o]));
4846
5012
  });
4847
5013
  }
4848
5014
  addListeners() {
4849
- if (!this.visualElement.current) return;
5015
+ if (!this.visualElement.current)
5016
+ return;
4850
5017
  wd.set(this.visualElement, this);
4851
5018
  const t = this.visualElement.current, e = re(t, "pointerdown", (a) => {
4852
5019
  const { drag: l, dragListener: u = !0 } = this.getProps();
@@ -4933,7 +5100,8 @@ var Ad = class extends mt {
4933
5100
  }
4934
5101
  getSnapshot(t, e) {
4935
5102
  const i = this.state.visualElement.projection, { drag: n, layoutDependency: r, layout: o, layoutId: s } = t;
4936
- if (!i || !o && !s && !n) return;
5103
+ if (!i || !o && !s && !n)
5104
+ return;
4937
5105
  qt = !0;
4938
5106
  const a = this.state.options;
4939
5107
  (n || a.layoutDependency !== r || r === void 0 || Le(e) && i.isPresent !== e) && i.willUpdate(), Le(e) && e !== i.isPresent && (i.isPresent = e, e ? i.promote() : i.relegate());
@@ -5272,9 +5440,11 @@ function Od(t) {
5272
5440
  }
5273
5441
  var Id = /* @__PURE__ */ new Map(), Fd = /* @__PURE__ */ new Map();
5274
5442
  function _d(t) {
5275
- if (!Array.isArray(t)) return [t];
5443
+ if (!Array.isArray(t))
5444
+ return [t];
5276
5445
  const e = [];
5277
- for (const i of t) Array.isArray(i) ? e.push(...i) : e.push(i);
5446
+ for (const i of t)
5447
+ Array.isArray(i) ? e.push(...i) : e.push(i);
5278
5448
  return e;
5279
5449
  }
5280
5450
  var Nd = [
@@ -5284,17 +5454,21 @@ var Nd = [
5284
5454
  ];
5285
5455
  function zd(t, e, i) {
5286
5456
  var n, r;
5287
- if (typeof t == "string" && Nd.includes(t)) return $r(t, e);
5457
+ if (typeof t == "string" && Nd.includes(t))
5458
+ return $r(t, e);
5288
5459
  if (t === "template") {
5289
- if (!i.default) return null;
5460
+ if (!i.default)
5461
+ return null;
5290
5462
  const o = _d(i.default()), s = o.findIndex((c) => c.type !== Go);
5291
- if (s === -1) return o;
5463
+ if (s === -1)
5464
+ return o;
5292
5465
  const a = o[s];
5293
5466
  (n = a.props) == null || delete n.ref;
5294
5467
  const l = a.props ? Zo(e, a.props) : e;
5295
5468
  e.class && ((r = a.props) != null && r.class) && delete a.props.class;
5296
5469
  const u = Wo(a, l);
5297
- for (const c in l) c.startsWith("on") && (u.props || (u.props = {}), u.props[c] = l[c]);
5470
+ for (const c in l)
5471
+ c.startsWith("on") && (u.props || (u.props = {}), u.props[c] = l[c]);
5298
5472
  return o.length === 1 ? u : (o[s] = u, o);
5299
5473
  }
5300
5474
  return null;
@@ -5302,7 +5476,8 @@ function zd(t, e, i) {
5302
5476
  function Br(t, e = {}) {
5303
5477
  var i;
5304
5478
  const n = typeof t == "string", r = n ? t : t.name || "", o = ((i = e.features) == null ? void 0 : i.length) > 0 ? Id : Fd;
5305
- if (n && (o != null && o.has(t))) return o.get(t);
5479
+ if (n && (o != null && o.has(t)))
5480
+ return o.get(t);
5306
5481
  const s = Gr({
5307
5482
  inheritAttrs: !1,
5308
5483
  props: m(m({}, jd), {}, {
@@ -5322,7 +5497,9 @@ function Br(t, e = {}) {
5322
5497
  const f = h.element;
5323
5498
  if ((typeof a.as != "object" || a.asChild) && f) {
5324
5499
  const { style: v } = c();
5325
- if (v) for (const [g, b] of Object.entries(v)) f.style[g] = b;
5500
+ if (v)
5501
+ for (const [g, b] of Object.entries(v))
5502
+ f.style[g] = b;
5326
5503
  }
5327
5504
  }
5328
5505
  return () => {
@@ -5341,21 +5518,29 @@ function Ud(t = []) {
5341
5518
  var Co = Ud(Cd), Hf = Co.create("div");
5342
5519
  function Vo(t) {
5343
5520
  var e, i, n = "";
5344
- if (typeof t == "string" || typeof t == "number") n += t;
5345
- else if (typeof t == "object") if (Array.isArray(t)) {
5346
- var r = t.length;
5347
- for (e = 0; e < r; e++) t[e] && (i = Vo(t[e])) && (n && (n += " "), n += i);
5348
- } else for (i in t) t[i] && (n && (n += " "), n += i);
5521
+ if (typeof t == "string" || typeof t == "number")
5522
+ n += t;
5523
+ else if (typeof t == "object")
5524
+ if (Array.isArray(t)) {
5525
+ var r = t.length;
5526
+ for (e = 0; e < r; e++)
5527
+ t[e] && (i = Vo(t[e])) && (n && (n += " "), n += i);
5528
+ } else
5529
+ for (i in t)
5530
+ t[i] && (n && (n += " "), n += i);
5349
5531
  return n;
5350
5532
  }
5351
5533
  function Gd() {
5352
- for (var t, e, i = 0, n = "", r = arguments.length; i < r; i++) (t = arguments[i]) && (e = Vo(t)) && (n && (n += " "), n += e);
5534
+ for (var t, e, i = 0, n = "", r = arguments.length; i < r; i++)
5535
+ (t = arguments[i]) && (e = Vo(t)) && (n && (n += " "), n += e);
5353
5536
  return n;
5354
5537
  }
5355
5538
  var $d = (t, e) => {
5356
5539
  const i = new Array(t.length + e.length);
5357
- for (let n = 0; n < t.length; n++) i[n] = t[n];
5358
- for (let n = 0; n < e.length; n++) i[t.length + n] = e[n];
5540
+ for (let n = 0; n < t.length; n++)
5541
+ i[n] = t[n];
5542
+ for (let n = 0; n < e.length; n++)
5543
+ i[t.length + n] = e[n];
5359
5544
  return i;
5360
5545
  }, Wd = (t, e) => ({
5361
5546
  classGroupId: t,
@@ -5368,7 +5553,8 @@ var $d = (t, e) => {
5368
5553
  const e = Hd(t), { conflictingClassGroups: i, conflictingClassGroupModifiers: n } = t;
5369
5554
  return {
5370
5555
  getClassGroupId: (s) => {
5371
- if (s.startsWith("[") && s.endsWith("]")) return Xd(s);
5556
+ if (s.startsWith("[") && s.endsWith("]"))
5557
+ return Xd(s);
5372
5558
  const a = s.split(Ne), l = a[0] === "" && a.length > 1 ? 1 : 0;
5373
5559
  return Mo(a, l, e);
5374
5560
  },
@@ -5381,18 +5567,22 @@ var $d = (t, e) => {
5381
5567
  }
5382
5568
  };
5383
5569
  }, Mo = (t, e, i) => {
5384
- if (t.length - e === 0) return i.classGroupId;
5570
+ if (t.length - e === 0)
5571
+ return i.classGroupId;
5385
5572
  const n = t[e], r = i.nextPart.get(n);
5386
5573
  if (r) {
5387
5574
  const l = Mo(t, e + 1, r);
5388
- if (l) return l;
5575
+ if (l)
5576
+ return l;
5389
5577
  }
5390
5578
  const o = i.validators;
5391
- if (o === null) return;
5579
+ if (o === null)
5580
+ return;
5392
5581
  const s = e === 0 ? t.join(Ne) : t.slice(e).join(Ne), a = o.length;
5393
5582
  for (let l = 0; l < a; l++) {
5394
5583
  const u = o[l];
5395
- if (u.validator(s)) return u.classGroupId;
5584
+ if (u.validator(s))
5585
+ return u.classGroupId;
5396
5586
  }
5397
5587
  }, Xd = (t) => t.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
5398
5588
  const e = t.slice(1, -1), i = e.indexOf(":"), n = e.slice(0, i);
@@ -5448,12 +5638,13 @@ var $d = (t, e) => {
5448
5638
  }
5449
5639
  return i;
5450
5640
  }, ef = (t) => "isThemeGetter" in t && t.isThemeGetter === !0, nf = (t) => {
5451
- if (t < 1) return {
5452
- get: () => {
5453
- },
5454
- set: () => {
5455
- }
5456
- };
5641
+ if (t < 1)
5642
+ return {
5643
+ get: () => {
5644
+ },
5645
+ set: () => {
5646
+ }
5647
+ };
5457
5648
  let e = 0, i = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
5458
5649
  const r = (o, s) => {
5459
5650
  i[o] = s, e++, e > t && (e = 0, n = i, i = /* @__PURE__ */ Object.create(null));
@@ -5461,7 +5652,8 @@ var $d = (t, e) => {
5461
5652
  return {
5462
5653
  get(o) {
5463
5654
  let s = i[o];
5464
- if (s !== void 0) return s;
5655
+ if (s !== void 0)
5656
+ return s;
5465
5657
  if ((s = n[o]) !== void 0)
5466
5658
  return r(o, s), s;
5467
5659
  },
@@ -5533,7 +5725,9 @@ var $d = (t, e) => {
5533
5725
  postfixLookupClassGroupIds: lf(t)
5534
5726
  }, Yd(t)), lf = (t) => {
5535
5727
  const e = /* @__PURE__ */ Object.create(null), i = t.postfixLookupClassGroups;
5536
- if (i) for (let n = 0; n < i.length; n++) e[i[n]] = !0;
5728
+ if (i)
5729
+ for (let n = 0; n < i.length; n++)
5730
+ e[i[n]] = !0;
5537
5731
  return e;
5538
5732
  }, uf = /\s+/, cf = (t, e) => {
5539
5733
  const { parseClassName: i, getClassGroupId: n, getConflictingClassGroupIds: r, sortModifiers: o, postfixLookupClassGroupIds: s } = e, a = [], l = t.trim().split(uf);
@@ -5549,7 +5743,8 @@ var $d = (t, e) => {
5549
5743
  C = n(g.substring(0, b));
5550
5744
  const V = C && s[C] ? n(g) : void 0;
5551
5745
  V && V !== C && (C = V, S = !1);
5552
- } else C = n(g);
5746
+ } else
5747
+ C = n(g);
5553
5748
  if (!C) {
5554
5749
  if (!S) {
5555
5750
  u = h + (u.length > 0 ? " " + u : u);
@@ -5562,7 +5757,8 @@ var $d = (t, e) => {
5562
5757
  S = !1;
5563
5758
  }
5564
5759
  const A = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), M = v ? A + Ai : A, P = M + C;
5565
- if (a.indexOf(P) > -1) continue;
5760
+ if (a.indexOf(P) > -1)
5761
+ continue;
5566
5762
  a.push(P);
5567
5763
  const y = r(C, S);
5568
5764
  for (let V = 0; V < y.length; ++V) {
@@ -5574,12 +5770,15 @@ var $d = (t, e) => {
5574
5770
  return u;
5575
5771
  }, hf = (...t) => {
5576
5772
  let e = 0, i, n, r = "";
5577
- for (; e < t.length; ) (i = t[e++]) && (n = Ro(i)) && (r && (r += " "), r += n);
5773
+ for (; e < t.length; )
5774
+ (i = t[e++]) && (n = Ro(i)) && (r && (r += " "), r += n);
5578
5775
  return r;
5579
5776
  }, Ro = (t) => {
5580
- if (typeof t == "string") return t;
5777
+ if (typeof t == "string")
5778
+ return t;
5581
5779
  let e, i = "";
5582
- for (let n = 0; n < t.length; n++) t[n] && (e = Ro(t[n])) && (i && (i += " "), i += e);
5780
+ for (let n = 0; n < t.length; n++)
5781
+ t[n] && (e = Ro(t[n])) && (i && (i += " "), i += e);
5583
5782
  return i;
5584
5783
  }, Fr = (t, ...e) => {
5585
5784
  let i, n, r, o;
@@ -5588,7 +5787,8 @@ var $d = (t, e) => {
5588
5787
  return i = af(u), n = i.cache.get, r = i.cache.set, o = a, a(l);
5589
5788
  }, a = (l) => {
5590
5789
  const u = n(l);
5591
- if (u) return u;
5790
+ if (u)
5791
+ return u;
5592
5792
  const c = cf(l, i);
5593
5793
  return r(l, c), c;
5594
5794
  };
@@ -7080,9 +7280,13 @@ var $d = (t, e) => {
7080
7280
  }, Lf = (t, { cacheSize: e, prefix: i, experimentalParseClassName: n, extend: r = {}, override: o = {} }) => (jt(t, "cacheSize", e), jt(t, "prefix", i), jt(t, "experimentalParseClassName", n), Ee(t.theme, o.theme), Ee(t.classGroups, o.classGroups), Ee(t.conflictingClassGroups, o.conflictingClassGroups), Ee(t.conflictingClassGroupModifiers, o.conflictingClassGroupModifiers), jt(t, "postfixLookupClassGroups", o.postfixLookupClassGroups), jt(t, "orderSensitiveModifiers", o.orderSensitiveModifiers), Ce(t.theme, r.theme), Ce(t.classGroups, r.classGroups), Ce(t.conflictingClassGroups, r.conflictingClassGroups), Ce(t.conflictingClassGroupModifiers, r.conflictingClassGroupModifiers), Pi(t, r, "postfixLookupClassGroups"), Pi(t, r, "orderSensitiveModifiers"), t), jt = (t, e, i) => {
7081
7281
  i !== void 0 && (t[e] = i);
7082
7282
  }, Ee = (t, e) => {
7083
- if (e) for (const i in e) jt(t, i, e[i]);
7283
+ if (e)
7284
+ for (const i in e)
7285
+ jt(t, i, e[i]);
7084
7286
  }, Ce = (t, e) => {
7085
- if (e) for (const i in e) Pi(t, e, i);
7287
+ if (e)
7288
+ for (const i in e)
7289
+ Pi(t, e, i);
7086
7290
  }, Pi = (t, e, i) => {
7087
7291
  const n = e[i];
7088
7292
  n !== void 0 && (t[i] = t[i] ? t[i].concat(n) : n);
@@ -7174,11 +7378,13 @@ var Of = ["aria-label", "aria-disabled"], If = [
7174
7378
  const p = r.items;
7175
7379
  let k = y;
7176
7380
  for (let R = 0; R < p.length; R++)
7177
- if (k = (k + V + p.length) % p.length, !u(p[k])) return k;
7381
+ if (k = (k + V + p.length) % p.length, !u(p[k]))
7382
+ return k;
7178
7383
  return y;
7179
7384
  }, v = (y, V) => {
7180
7385
  const p = r.items, k = p[V];
7181
- if (!k || u(k)) return;
7386
+ if (!k || u(k))
7387
+ return;
7182
7388
  let R;
7183
7389
  switch (y.key) {
7184
7390
  case "ArrowRight":
@@ -7198,7 +7404,8 @@ var Of = ["aria-label", "aria-disabled"], If = [
7198
7404
  default:
7199
7405
  return;
7200
7406
  }
7201
- if (R < 0 || R === V) return;
7407
+ if (R < 0 || R === V)
7408
+ return;
7202
7409
  y.preventDefault();
7203
7410
  const G = p[R];
7204
7411
  if (G) {