etudes 16.0.1 → 16.0.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/build/etudes.js CHANGED
@@ -73,19 +73,19 @@ function Ss() {
73
73
  ), T.$$typeof) {
74
74
  case M:
75
75
  return "Portal";
76
- case F:
76
+ case B:
77
77
  return (T.displayName || "Context") + ".Provider";
78
78
  case W:
79
79
  return (T._context.displayName || "Context") + ".Consumer";
80
80
  case Y:
81
- var V = T.render;
82
- return T = T.displayName, T || (T = V.displayName || V.name || "", T = T !== "" ? "ForwardRef(" + T + ")" : "ForwardRef"), T;
81
+ var D = T.render;
82
+ return T = T.displayName, T || (T = D.displayName || D.name || "", T = T !== "" ? "ForwardRef(" + T + ")" : "ForwardRef"), T;
83
83
  case E:
84
- return V = T.displayName || null, V !== null ? V : e(T.type) || "Memo";
84
+ return D = T.displayName || null, D !== null ? D : e(T.type) || "Memo";
85
85
  case R:
86
- V = T._payload, T = T._init;
86
+ D = T._payload, T = T._init;
87
87
  try {
88
- return e(T(V));
88
+ return e(T(D));
89
89
  } catch {
90
90
  }
91
91
  }
@@ -96,15 +96,15 @@ function Ss() {
96
96
  }
97
97
  function s(T) {
98
98
  try {
99
- var V = !1;
99
+ var D = !1;
100
100
  } catch {
101
- V = !0;
101
+ D = !0;
102
102
  }
103
- if (V) {
104
- V = console;
105
- var ne = V.error, re = typeof Symbol == "function" && Symbol.toStringTag && T[Symbol.toStringTag] || T.constructor.name || "Object";
103
+ if (D) {
104
+ D = console;
105
+ var ne = D.error, re = typeof Symbol == "function" && Symbol.toStringTag && T[Symbol.toStringTag] || T.constructor.name || "Object";
106
106
  return ne.call(
107
- V,
107
+ D,
108
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
109
  re
110
110
  ), r(T);
@@ -115,8 +115,8 @@ function Ss() {
115
115
  if (typeof T == "object" && T !== null && T.$$typeof === R)
116
116
  return "<...>";
117
117
  try {
118
- var V = e(T);
119
- return V ? "<" + V + ">" : "<...>";
118
+ var D = e(T);
119
+ return D ? "<" + D + ">" : "<...>";
120
120
  } catch {
121
121
  return "<...>";
122
122
  }
@@ -130,16 +130,16 @@ function Ss() {
130
130
  }
131
131
  function p(T) {
132
132
  if (J.call(T, "key")) {
133
- var V = Object.getOwnPropertyDescriptor(T, "key").get;
134
- if (V && V.isReactWarning) return !1;
133
+ var D = Object.getOwnPropertyDescriptor(T, "key").get;
134
+ if (D && D.isReactWarning) return !1;
135
135
  }
136
136
  return T.key !== void 0;
137
137
  }
138
- function g(T, V) {
138
+ function g(T, D) {
139
139
  function ne() {
140
140
  A || (A = !0, console.error(
141
141
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
142
- V
142
+ D
143
143
  ));
144
144
  }
145
145
  ne.isReactWarning = !0, Object.defineProperty(T, "key", {
@@ -153,11 +153,11 @@ function Ss() {
153
153
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
154
154
  )), T = this.props.ref, T !== void 0 ? T : null;
155
155
  }
156
- function N(T, V, ne, re, le, pe, Ne, Te) {
156
+ function N(T, D, ne, re, le, pe, Ne, Te) {
157
157
  return ne = pe.ref, T = {
158
- $$typeof: $,
158
+ $$typeof: I,
159
159
  type: T,
160
- key: V,
160
+ key: D,
161
161
  props: pe,
162
162
  _owner: le
163
163
  }, (ne !== void 0 ? ne : null) !== null ? Object.defineProperty(T, "ref", {
@@ -185,8 +185,8 @@ function Ss() {
185
185
  value: Te
186
186
  }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
187
187
  }
188
- function _(T, V, ne, re, le, pe, Ne, Te) {
189
- var xe = V.children;
188
+ function _(T, D, ne, re, le, pe, Ne, Te) {
189
+ var xe = D.children;
190
190
  if (xe !== void 0)
191
191
  if (re)
192
192
  if (H(xe)) {
@@ -198,12 +198,12 @@ function Ss() {
198
198
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
199
199
  );
200
200
  else P(xe);
201
- if (J.call(V, "key")) {
201
+ if (J.call(D, "key")) {
202
202
  xe = e(T);
203
- var q = Object.keys(V).filter(function(je) {
203
+ var q = Object.keys(D).filter(function(je) {
204
204
  return je !== "key";
205
205
  });
206
- re = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", D[xe + re] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
206
+ re = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", F[xe + re] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
207
207
  `A props object containing a "key" prop is being spread into JSX:
208
208
  let props = %s;
209
209
  <%s {...props} />
@@ -214,13 +214,13 @@ React keys must be passed directly to JSX without using spread:
214
214
  xe,
215
215
  q,
216
216
  xe
217
- ), D[xe + re] = !0);
217
+ ), F[xe + re] = !0);
218
218
  }
219
- if (xe = null, ne !== void 0 && (s(ne), xe = "" + ne), p(V) && (s(V.key), xe = "" + V.key), "key" in V) {
219
+ if (xe = null, ne !== void 0 && (s(ne), xe = "" + ne), p(D) && (s(D.key), xe = "" + D.key), "key" in D) {
220
220
  ne = {};
221
- for (var Fe in V)
222
- Fe !== "key" && (ne[Fe] = V[Fe]);
223
- } else ne = V;
221
+ for (var Fe in D)
222
+ Fe !== "key" && (ne[Fe] = D[Fe]);
223
+ } else ne = D;
224
224
  return xe && g(
225
225
  ne,
226
226
  typeof T == "function" ? T.displayName || T.name || "Unknown" : T
@@ -236,9 +236,9 @@ React keys must be passed directly to JSX without using spread:
236
236
  );
237
237
  }
238
238
  function P(T) {
239
- typeof T == "object" && T !== null && T.$$typeof === $ && T._store && (T._store.validated = 1);
239
+ typeof T == "object" && T !== null && T.$$typeof === I && T._store && (T._store.validated = 1);
240
240
  }
241
- var k = ys, $ = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), F = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), te = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, H = Array.isArray, z = console.createTask ? console.createTask : function() {
241
+ var k = ys, I = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), B = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), te = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, H = Array.isArray, z = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  k = {
@@ -249,12 +249,12 @@ React keys must be passed directly to JSX without using spread:
249
249
  var A, Q = {}, Z = k["react-stack-bottom-frame"].bind(
250
250
  k,
251
251
  u
252
- )(), se = z(a(u)), D = {};
253
- St.Fragment = b, St.jsx = function(T, V, ne, re, le) {
252
+ )(), se = z(a(u)), F = {};
253
+ St.Fragment = b, St.jsx = function(T, D, ne, re, le) {
254
254
  var pe = 1e4 > te.recentlyCreatedOwnerStacks++;
255
255
  return _(
256
256
  T,
257
- V,
257
+ D,
258
258
  ne,
259
259
  !1,
260
260
  re,
@@ -262,11 +262,11 @@ React keys must be passed directly to JSX without using spread:
262
262
  pe ? Error("react-stack-top-frame") : Z,
263
263
  pe ? z(a(T)) : se
264
264
  );
265
- }, St.jsxs = function(T, V, ne, re, le) {
265
+ }, St.jsxs = function(T, D, ne, re, le) {
266
266
  var pe = 1e4 > te.recentlyCreatedOwnerStacks++;
267
267
  return _(
268
268
  T,
269
- V,
269
+ D,
270
270
  ne,
271
271
  !0,
272
272
  re,
@@ -295,9 +295,9 @@ function ie() {
295
295
  for (var e, r, s = 0, a = "", l = arguments.length; s < l; s++) (e = arguments[s]) && (r = Co(e)) && (a && (a += " "), a += r);
296
296
  return a;
297
297
  }
298
- var $n, uo;
298
+ var In, uo;
299
299
  function _s() {
300
- return uo || (uo = 1, $n = function e(r, s) {
300
+ return uo || (uo = 1, In = function e(r, s) {
301
301
  if (r === s) return !0;
302
302
  if (r && s && typeof r == "object" && typeof s == "object") {
303
303
  if (r.constructor !== s.constructor) return !1;
@@ -322,7 +322,7 @@ function _s() {
322
322
  return !0;
323
323
  }
324
324
  return r !== r && s !== s;
325
- }), $n;
325
+ }), In;
326
326
  }
327
327
  var Os = /* @__PURE__ */ _s();
328
328
  const Ge = /* @__PURE__ */ ko(Os);
@@ -407,10 +407,10 @@ var de;
407
407
  return b instanceof Array ? !(b.length !== 2 || typeof b[0] != "number" || typeof b[1] != "number") : typeof b == "object" ? !(typeof b.x != "number" || typeof b.y != "number") : !1;
408
408
  }
409
409
  e.isValidDescriptor = k;
410
- function $(b) {
410
+ function I(b) {
411
411
  return typeof b == "object" && typeof b.x == "number" && typeof b.y == "number";
412
412
  }
413
- e.isPoint = $;
413
+ e.isPoint = I;
414
414
  function M(b) {
415
415
  return b.x === 0 && b.y === 0;
416
416
  }
@@ -533,10 +533,10 @@ var Me;
533
533
  return b instanceof Array ? !(b.length !== 2 || typeof b[0] != "number" || typeof b[1] != "number") : typeof b == "object" ? !(typeof b.width != "number" || typeof b.height != "number") : !1;
534
534
  }
535
535
  e.isValidDescriptor = k;
536
- function $(b) {
536
+ function I(b) {
537
537
  return typeof b == "object" && typeof b.width == "number" && typeof b.height == "number";
538
538
  }
539
- e.isSize = $;
539
+ e.isSize = I;
540
540
  function M(b) {
541
541
  return b.width === 0 && b.height === 0;
542
542
  }
@@ -597,7 +597,7 @@ var ge;
597
597
  function l(S, C = {}) {
598
598
  try {
599
599
  if (S == null) return;
600
- if (F(S)) return S;
600
+ if (B(S)) return S;
601
601
  if (Tt(S)) return l(document.documentElement || document.body.parentNode || document.body, C);
602
602
  const E = S instanceof Array ? S : [S], R = E.length, U = C.reference || window, G = u(), te = Tt(U) ? G : l(C.reference);
603
603
  if (!G || !te) return;
@@ -690,7 +690,7 @@ var ge;
690
690
  });
691
691
  }
692
692
  e.concat = k;
693
- function $(S) {
693
+ function I(S) {
694
694
  return r({
695
695
  x: S.left,
696
696
  y: S.top,
@@ -698,7 +698,7 @@ var ge;
698
698
  height: S.width
699
699
  });
700
700
  }
701
- e.invert = $;
701
+ e.invert = I;
702
702
  function M(S, C) {
703
703
  return !(S.top !== C.top || S.right !== C.right || S.bottom !== C.bottom || S.left !== C.left || S.width !== C.width || S.height !== C.height);
704
704
  }
@@ -726,10 +726,10 @@ var ge;
726
726
  return !(typeof S.x != "number" || typeof S.y != "number" || typeof S.width != "number" || typeof S.height != "number");
727
727
  }
728
728
  e.isValidDescriptor = W;
729
- function F(S) {
729
+ function B(S) {
730
730
  return typeof S == "object" && typeof S.top == "number" && typeof S.right == "number" && typeof S.bottom == "number" && typeof S.left == "number" && typeof S.width == "number" && typeof S.height == "number";
731
731
  }
732
- e.isRect = F;
732
+ e.isRect = B;
733
733
  function Y(S) {
734
734
  return S.top === 0 && S.right === 0 && S.bottom === 0 && S.left === 0 && S.width === 0 && S.height === 0;
735
735
  }
@@ -803,6 +803,8 @@ process.env.NODE_ENV !== "production" && (he.displayName = "Styled");
803
803
  function ze(e, r = {}) {
804
804
  const s = Object.keys(r), a = Object.values(r), l = {};
805
805
  return sn.forEach(e, (u) => {
806
+ if (u == null)
807
+ return;
806
808
  if (!an(u)) {
807
809
  console.error("[etudes::asComponentDict] Invalid child detected");
808
810
  return;
@@ -843,13 +845,13 @@ const hr = /* @__PURE__ */ Oe(({
843
845
  selection: _,
844
846
  selectionMode: P = "none",
845
847
  onActivateAt: k,
846
- onDeselectAt: $,
848
+ onDeselectAt: I,
847
849
  onCustomEvent: M,
848
850
  onSelectAt: b,
849
851
  onSelectionChange: j,
850
852
  ItemComponent: K,
851
853
  ...W
852
- }, F) => {
854
+ }, B) => {
853
855
  const Y = Cs(_ ?? [], p), S = js({ itemLength: l, itemPadding: u, layout: g, numSegments: m, orientation: N }), C = (H) => Y.indexOf(H) >= 0, E = (H) => {
854
856
  C(H) ? U(H) : R(H);
855
857
  }, R = (H) => {
@@ -857,7 +859,7 @@ const hr = /* @__PURE__ */ Oe(({
857
859
  let z;
858
860
  switch (P) {
859
861
  case "multiple": {
860
- z = (Z) => $o([...Z.filter((se) => se !== H), H]);
862
+ z = (Z) => Io([...Z.filter((se) => se !== H), H]);
861
863
  break;
862
864
  }
863
865
  case "single": {
@@ -878,7 +880,7 @@ const hr = /* @__PURE__ */ Oe(({
878
880
  }, te = (H, z) => {
879
881
  if (Ge(H, z)) return;
880
882
  const A = H?.filter((Z) => z.indexOf(Z) === -1) ?? [], Q = z.filter((Z) => H?.indexOf(Z) === -1);
881
- A.forEach((Z) => $?.(Z)), Q.forEach((Z) => b?.(Z)), j?.(z);
883
+ A.forEach((Z) => I?.(Z)), Q.forEach((Z) => b?.(Z)), j?.(z);
882
884
  };
883
885
  be(() => {
884
886
  const H = Y;
@@ -903,7 +905,7 @@ const hr = /* @__PURE__ */ Oe(({
903
905
  "div",
904
906
  {
905
907
  ...W,
906
- ref: F,
908
+ ref: B,
907
909
  "aria-multiselectable": P === "multiple",
908
910
  className: ie(e),
909
911
  role: g === "grid" ? "grid" : P === "none" ? "list" : "listbox",
@@ -933,7 +935,7 @@ const hr = /* @__PURE__ */ Oe(({
933
935
  role: A,
934
936
  style: Z,
935
937
  onClick: () => G(z),
936
- onCustomEvent: (se, D) => M?.(z, se, D)
938
+ onCustomEvent: (se, F) => M?.(z, se, F)
937
939
  }
938
940
  ) : /* @__PURE__ */ x.jsx(
939
941
  he,
@@ -957,9 +959,9 @@ function ks(e, r) {
957
959
  return !!(isNaN(e) || e >= r.length || e < 0);
958
960
  }
959
961
  function Cs(e, r) {
960
- return $o(e).filter((s) => !ks(s, r));
962
+ return Io(e).filter((s) => !ks(s, r));
961
963
  }
962
- function $o(e) {
964
+ function Io(e) {
963
965
  return e.sort((r, s) => r - s);
964
966
  }
965
967
  function js({ itemLength: e = NaN, itemPadding: r = 0, layout: s = "collection", numSegments: a = 1, orientation: l = "vertical" }) {
@@ -1003,7 +1005,7 @@ function js({ itemLength: e = NaN, itemPadding: r = 0, layout: s = "collection",
1003
1005
  };
1004
1006
  }
1005
1007
  process.env.NODE_ENV !== "production" && (hr.displayName = "Collection", kt.displayName = "CollectionItem");
1006
- const $s = /* @__PURE__ */ Oe(({
1008
+ const Is = /* @__PURE__ */ Oe(({
1007
1009
  children: e,
1008
1010
  style: r,
1009
1011
  autoCollapseSections: s = !1,
@@ -1017,67 +1019,67 @@ const $s = /* @__PURE__ */ Oe(({
1017
1019
  onCollapseSectionAt: _,
1018
1020
  onDeselectAt: P,
1019
1021
  onExpandedSectionsChange: k,
1020
- onExpandSectionAt: $,
1022
+ onExpandSectionAt: I,
1021
1023
  onHeaderCustomEvent: M,
1022
1024
  onItemCustomEvent: b,
1023
1025
  onSelectAt: j,
1024
1026
  onSelectionChange: K,
1025
1027
  HeaderComponent: W,
1026
- ItemComponent: F,
1028
+ ItemComponent: B,
1027
1029
  ...Y
1028
1030
  }, S) => {
1029
- const C = Ms(g ?? {}, p), E = As(a ?? [], p), R = Rs({ orientation: l }), U = p.map(() => Ee(null)), G = U.map((D) => jo(D)), te = (D, T) => (C[T]?.indexOf(D) ?? -1) >= 0, J = (D) => E.indexOf(D) >= 0, H = (D) => {
1031
+ const C = Ms(g ?? {}, p), E = As(a ?? [], p), R = Rs({ orientation: l }), U = p.map(() => Ee(null)), G = U.map((F) => jo(F)), te = (F, T) => (C[T]?.indexOf(F) ?? -1) >= 0, J = (F) => E.indexOf(F) >= 0, H = (F) => {
1030
1032
  let T;
1031
- J(D) ? T = (V) => V.filter((ne) => ne !== D) : s ? T = (V) => [D] : T = (V) => [...V.filter((ne) => ne !== D), D], Q(E, T(E));
1032
- }, z = (D, T) => {
1033
- if (te(D, T)) return;
1034
- let V;
1033
+ J(F) ? T = (D) => D.filter((ne) => ne !== F) : s ? T = (D) => [F] : T = (D) => [...D.filter((ne) => ne !== F), F], Q(E, T(E));
1034
+ }, z = (F, T) => {
1035
+ if (te(F, T)) return;
1036
+ let D;
1035
1037
  switch (m) {
1036
1038
  case "multiple":
1037
- V = (re) => ({
1039
+ D = (re) => ({
1038
1040
  ...re,
1039
- [T]: nn([...(re[T] ?? []).filter((le) => le !== D), D])
1041
+ [T]: nn([...(re[T] ?? []).filter((le) => le !== F), F])
1040
1042
  });
1041
1043
  break;
1042
1044
  case "single":
1043
- V = (re) => ({
1044
- [T]: [D]
1045
+ D = (re) => ({
1046
+ [T]: [F]
1045
1047
  });
1046
1048
  break;
1047
1049
  default:
1048
1050
  return;
1049
1051
  }
1050
- const ne = V(C);
1052
+ const ne = D(C);
1051
1053
  Z(C, ne);
1052
- }, A = (D, T) => {
1053
- if (!te(D, T)) return;
1054
+ }, A = (F, T) => {
1055
+ if (!te(F, T)) return;
1054
1056
  const ne = ((re) => ({
1055
1057
  ...re,
1056
- [T]: (re[T] ?? []).filter((le) => le !== D)
1058
+ [T]: (re[T] ?? []).filter((le) => le !== F)
1057
1059
  }))(C);
1058
1060
  Z(C, ne);
1059
- }, Q = (D, T) => {
1060
- if (Ge(D, T)) return;
1061
- const V = D?.filter((re) => T.indexOf(re) === -1) ?? [], ne = T.filter((re) => D?.indexOf(re) === -1);
1062
- V.forEach((re) => _?.(re)), ne.forEach((re) => $?.(re)), k?.(T);
1063
- }, Z = (D, T) => {
1064
- if (Ge(D, T)) return;
1065
- const V = p.length;
1061
+ }, Q = (F, T) => {
1062
+ if (Ge(F, T)) return;
1063
+ const D = F?.filter((re) => T.indexOf(re) === -1) ?? [], ne = T.filter((re) => F?.indexOf(re) === -1);
1064
+ D.forEach((re) => _?.(re)), ne.forEach((re) => I?.(re)), k?.(T);
1065
+ }, Z = (F, T) => {
1066
+ if (Ge(F, T)) return;
1067
+ const D = p.length;
1066
1068
  let ne = [], re = [];
1067
- for (let le = 0; le < V; le++) {
1068
- const pe = D?.[le] ?? [], Ne = T[le] ?? [], Te = pe.filter((q) => Ne.indexOf(q) === -1), xe = Ne.filter((q) => pe?.indexOf(q) === -1);
1069
+ for (let le = 0; le < D; le++) {
1070
+ const pe = F?.[le] ?? [], Ne = T[le] ?? [], Te = pe.filter((q) => Ne.indexOf(q) === -1), xe = Ne.filter((q) => pe?.indexOf(q) === -1);
1069
1071
  ne = [...ne, ...Te.map((q) => [q, le])], re = [...re, ...xe.map((q) => [q, le])];
1070
1072
  }
1071
1073
  ne.forEach((le) => P?.(le[0], le[1])), re.forEach((le) => j?.(le[0], le[1])), K?.(T);
1072
1074
  }, se = ze(e, {
1073
1075
  collapseIcon: Ao,
1074
- expandIcon: Io,
1076
+ expandIcon: $o,
1075
1077
  header: Fn,
1076
1078
  item: Dn,
1077
1079
  section: fo
1078
1080
  });
1079
- return /* @__PURE__ */ x.jsx("div", { ...Y, ref: S, style: ce(r, R.root), children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (D, T) => {
1080
- const { collectionPadding: V = 0, items: ne = [], itemLength: re = 50, itemPadding: le = 0, isSelectionTogglable: pe, layout: Ne = "list", maxVisible: Te = -1, numSegments: xe = 1 } = D, q = Ne === "list" ? ne.length : Math.ceil(ne.length / xe), Fe = Te < 0 ? q : Math.min(q, Te), je = re * Fe + le * (Fe - 1), ke = !J(T), Ve = G[T];
1081
+ return /* @__PURE__ */ x.jsx("div", { ...Y, ref: S, style: ce(r, R.root), children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (F, T) => {
1082
+ const { collectionPadding: D = 0, items: ne = [], itemLength: re = 50, itemPadding: le = 0, isSelectionTogglable: pe, layout: Ne = "list", maxVisible: Te = -1, numSegments: xe = 1 } = F, q = Ne === "list" ? ne.length : Math.ceil(ne.length / xe), Fe = Te < 0 ? q : Math.min(q, Te), je = re * Fe + le * (Fe - 1), ke = !J(T), Ve = G[T];
1081
1083
  return /* @__PURE__ */ x.jsxs(
1082
1084
  he,
1083
1085
  {
@@ -1085,14 +1087,14 @@ const $s = /* @__PURE__ */ Oe(({
1085
1087
  style: ce(R.section, l === "vertical" ? {
1086
1088
  marginTop: T === 0 ? "0px" : `${u}px`,
1087
1089
  ...Ve.height > 0 ? {
1088
- height: ke ? `${Ve.height}px` : `${je + Ve.height + V}px`
1090
+ height: ke ? `${Ve.height}px` : `${je + Ve.height + D}px`
1089
1091
  } : {
1090
1092
  visibility: "hidden"
1091
1093
  }
1092
1094
  } : {
1093
1095
  marginLeft: T === 0 ? "0px" : `${u}px`,
1094
1096
  ...Ve.width > 0 ? {
1095
- width: ke ? `${Ve.width}px` : `${je + Ve.width + V}px`
1097
+ width: ke ? `${Ve.width}px` : `${je + Ve.width + D}px`
1096
1098
  } : {
1097
1099
  visibility: "hidden"
1098
1100
  }
@@ -1111,7 +1113,7 @@ const $s = /* @__PURE__ */ Oe(({
1111
1113
  index: T,
1112
1114
  isCollapsed: ke,
1113
1115
  role: "button",
1114
- section: D,
1116
+ section: F,
1115
1117
  style: ce(R.header),
1116
1118
  onClick: () => H(T),
1117
1119
  onCustomEvent: (Re, He) => M?.(T, Re, He)
@@ -1126,7 +1128,7 @@ const $s = /* @__PURE__ */ Oe(({
1126
1128
  style: ce(R.header),
1127
1129
  onClick: () => H(T),
1128
1130
  children: [
1129
- /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: D.label } }),
1131
+ /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: F.label } }),
1130
1132
  se.expandIcon && /* @__PURE__ */ x.jsx(
1131
1133
  he,
1132
1134
  {
@@ -1149,10 +1151,10 @@ const $s = /* @__PURE__ */ Oe(({
1149
1151
  }, l === "vertical" ? {
1150
1152
  width: "100%",
1151
1153
  height: `${je}px`,
1152
- marginTop: `${V}px`,
1154
+ marginTop: `${D}px`,
1153
1155
  overflowY: Te < 0 || Te >= q ? "hidden" : "scroll"
1154
1156
  } : {
1155
- marginLeft: `${V}px`,
1157
+ marginLeft: `${D}px`,
1156
1158
  overflowX: Te < 0 || Te >= q ? "hidden" : "scroll",
1157
1159
  width: `${je}px`,
1158
1160
  height: "100%"
@@ -1162,7 +1164,7 @@ const $s = /* @__PURE__ */ Oe(({
1162
1164
  {
1163
1165
  className: ie({ collapsed: ke, expanded: !ke }),
1164
1166
  isSelectionTogglable: pe,
1165
- ItemComponent: F,
1167
+ ItemComponent: B,
1166
1168
  itemLength: re,
1167
1169
  itemPadding: le,
1168
1170
  items: ne,
@@ -1176,7 +1178,7 @@ const $s = /* @__PURE__ */ Oe(({
1176
1178
  onCustomEvent: (Re, He, Ye) => b?.(Re, T, He, Ye),
1177
1179
  onDeselectAt: (Re) => A(Re, T),
1178
1180
  onSelectAt: (Re) => z(Re, T),
1179
- children: !F && (se.item ?? /* @__PURE__ */ x.jsx(Dn, {}))
1181
+ children: !B && (se.item ?? /* @__PURE__ */ x.jsx(Dn, {}))
1180
1182
  }
1181
1183
  )
1182
1184
  }
@@ -1185,11 +1187,11 @@ const $s = /* @__PURE__ */ Oe(({
1185
1187
  }
1186
1188
  );
1187
1189
  } }) });
1188
- }), Fn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Io = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, children: e }), Ao = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, children: e }), fo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Dn = kt;
1190
+ }), Fn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), $o = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, children: e }), Ao = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, children: e }), fo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Dn = kt;
1189
1191
  function Mo(e, r) {
1190
1192
  return e >= r.length || e < 0;
1191
1193
  }
1192
- function Is(e, r, s) {
1194
+ function $s(e, r, s) {
1193
1195
  if (Mo(r, s)) return !0;
1194
1196
  const a = s[r].items ?? [];
1195
1197
  return e >= a.length || e < 0;
@@ -1202,7 +1204,7 @@ function Ms(e, r) {
1202
1204
  for (const a in r) {
1203
1205
  if (!Object.hasOwn(r, a)) continue;
1204
1206
  const l = nn([...e[a] ?? []]);
1205
- s[Number(a)] = nn(l).filter((u) => !Is(u, Number(a), r));
1207
+ s[Number(a)] = nn(l).filter((u) => !$s(u, Number(a), r));
1206
1208
  }
1207
1209
  return s;
1208
1210
  }
@@ -1269,7 +1271,7 @@ function Rs({ orientation: e = "vertical" }) {
1269
1271
  }
1270
1272
  };
1271
1273
  }
1272
- process.env.NODE_ENV !== "production" && ($s.displayName = "Accordion", Fn.displayName = "AccordionHeader", Io.displayName = "AccordionExpandIcon", Ao.displayName = "AccordionCollapseIcon", Dn.displayName = "AccordionItem");
1274
+ process.env.NODE_ENV !== "production" && (Is.displayName = "Accordion", Fn.displayName = "AccordionHeader", $o.displayName = "AccordionExpandIcon", Ao.displayName = "AccordionCollapseIcon", Dn.displayName = "AccordionItem");
1273
1275
  function Vn({
1274
1276
  count: e = 1,
1275
1277
  children: r,
@@ -1404,7 +1406,7 @@ const Ls = /* @__PURE__ */ Oe(({
1404
1406
  const k = () => {
1405
1407
  const b = !a;
1406
1408
  N?.(b), b ? g?.() : m?.();
1407
- }, $ = {
1409
+ }, I = {
1408
1410
  root: ie({
1409
1411
  active: a
1410
1412
  })
@@ -1415,7 +1417,7 @@ const Ls = /* @__PURE__ */ Oe(({
1415
1417
  ..._,
1416
1418
  ref: P,
1417
1419
  "aria-expanded": a,
1418
- className: ie(r, $.root),
1420
+ className: ie(r, I.root),
1419
1421
  style: ce(s, M.root),
1420
1422
  onClick: k,
1421
1423
  children: /* @__PURE__ */ x.jsx(
@@ -1537,7 +1539,7 @@ function Us(e, {
1537
1539
  if (!b || !p.current) return;
1538
1540
  const j = de.make(M.clientX, M.clientY), K = de.subtract(g.current ?? p.current, j);
1539
1541
  _.current?.(j, K, p.current), p.current = void 0, g.current = void 0, b.removeEventListener("mousemove", P), b.removeEventListener("mouseup", k, { capture: !0 }), b.removeEventListener("mouseleave", k), s && (b.style.cursor = "grab");
1540
- }, [s, P]), $ = me((M) => {
1542
+ }, [s, P]), I = me((M) => {
1541
1543
  const b = e.current;
1542
1544
  if (!b) return;
1543
1545
  M.preventDefault();
@@ -1554,10 +1556,10 @@ function Us(e, {
1554
1556
  }, [r, s]), Be(() => {
1555
1557
  const M = e.current;
1556
1558
  if (!(!M || !r))
1557
- return M.addEventListener("mousedown", $), () => {
1558
- M.removeEventListener("mousedown", $), M.removeEventListener("mousemove", P), M.removeEventListener("mouseup", k, { capture: !0 }), M.removeEventListener("mouseleave", k);
1559
+ return M.addEventListener("mousedown", I), () => {
1560
+ M.removeEventListener("mousedown", I), M.removeEventListener("mousemove", P), M.removeEventListener("mouseup", k, { capture: !0 }), M.removeEventListener("mouseleave", k);
1559
1561
  };
1560
- }, [r, P, k, $]);
1562
+ }, [r, P, k, I]);
1561
1563
  }
1562
1564
  function qs(e, {
1563
1565
  autoStarts: r = !0,
@@ -1586,26 +1588,26 @@ const Gs = /* @__PURE__ */ Oe(({
1586
1588
  ItemComponent: N,
1587
1589
  ..._
1588
1590
  }, P) => {
1589
- const k = Ee(void 0), $ = Ee(null), M = Ee(void 0), b = Ee(void 0), j = Ee(void 0), K = 1e3, [W, F] = Se(In($, l)), [Y, S] = Se(!1), C = Js({ scrollSnapEnabled: !Y, orientation: l }), E = e > 0, R = me((A) => {
1591
+ const k = Ee(void 0), I = Ee(null), M = Ee(void 0), b = Ee(void 0), j = Ee(void 0), K = 1e3, [W, B] = Se($n(I, l)), [Y, S] = Se(!1), C = Js({ scrollSnapEnabled: !Y, orientation: l }), E = e > 0, R = me((A) => {
1590
1592
  m?.(A);
1591
1593
  }, [m]), U = me((A) => {
1592
1594
  M.current = de.make(A.clientX, A.clientY), S(!0);
1593
1595
  }, []), G = me((A) => {
1594
1596
  const Q = M.current, Z = b.current;
1595
1597
  if (!Q || !Z) return;
1596
- const se = 5, D = de.subtract(Q, Z);
1597
- (Math.abs(D.x) > se || Math.abs(D.y) > se) && A.stopPropagation(), M.current = void 0, b.current = void 0;
1598
+ const se = 5, F = de.subtract(Q, Z);
1599
+ (Math.abs(F.x) > se || Math.abs(F.y) > se) && A.stopPropagation(), M.current = void 0, b.current = void 0;
1598
1600
  }, []), te = me((A) => {
1599
1601
  b.current = de.make(A.clientX, A.clientY), Y && S(!1);
1600
1602
  }, [Y]), J = me(() => {
1601
- Ws($, r, l), clearTimeout(j.current), j.current = setTimeout(() => {
1603
+ Ws(I, r, l), clearTimeout(j.current), j.current = setTimeout(() => {
1602
1604
  clearTimeout(j.current), j.current = void 0;
1603
1605
  }, K);
1604
- }, [$.current, r, l, K]), H = me(() => {
1606
+ }, [I.current, r, l, K]), H = me(() => {
1605
1607
  const A = (r + a.length + 1) % a.length;
1606
1608
  R(A);
1607
1609
  }, [Y, r, a.length, R]), z = me(({ x: A, y: Q }) => {
1608
- const Z = $.current;
1610
+ const Z = I.current;
1609
1611
  switch (l) {
1610
1612
  case "horizontal":
1611
1613
  requestAnimationFrame(() => {
@@ -1620,21 +1622,21 @@ const Gs = /* @__PURE__ */ Oe(({
1620
1622
  default:
1621
1623
  console.error(`[etudes::Carousel] Unsupported orientation: ${l}`);
1622
1624
  }
1623
- }, [l, $.current]);
1625
+ }, [l, I.current]);
1624
1626
  return be(() => {
1625
- const A = $.current;
1627
+ const A = I.current;
1626
1628
  if (!A) return;
1627
- const Q = k.current === void 0, Z = k.current === r, se = (D) => {
1628
- if (u && F(In($, l)), j.current !== void 0) return;
1629
- const T = Math.round(l === "horizontal" ? A.scrollLeft / A.clientWidth : A.scrollTop / A.clientHeight), V = Math.max(0, Math.min(a.length - 1, T));
1630
- V !== r && (k.current = V, R(V));
1629
+ const Q = k.current === void 0, Z = k.current === r, se = (F) => {
1630
+ if (u && B($n(I, l)), j.current !== void 0) return;
1631
+ const T = Math.round(l === "horizontal" ? A.scrollLeft / A.clientWidth : A.scrollTop / A.clientHeight), D = Math.max(0, Math.min(a.length - 1, T));
1632
+ D !== r && (k.current = D, R(D));
1631
1633
  };
1632
- return A.addEventListener("scroll", se), u && F(In($, l)), Z || (k.current = r, Q || (R(r), J())), () => {
1634
+ return A.addEventListener("scroll", se), u && B($n(I, l)), Z || (k.current = r, Q || (R(r), J())), () => {
1633
1635
  A.removeEventListener("scroll", se);
1634
1636
  };
1635
1637
  }, [r, l, u]), be(() => {
1636
1638
  E && (Y ? p?.() : g?.());
1637
- }, [Y, E]), Us($, {
1639
+ }, [Y, E]), Us(I, {
1638
1640
  isEnabled: s && a.length > 1,
1639
1641
  onDragMove: z
1640
1642
  }), qs(Y || !E ? -1 : e, {
@@ -1650,7 +1652,7 @@ const Gs = /* @__PURE__ */ Oe(({
1650
1652
  onPointerDown: (A) => U(A),
1651
1653
  onPointerLeave: (A) => te(A),
1652
1654
  onPointerUp: (A) => te(A),
1653
- children: /* @__PURE__ */ x.jsx("div", { ref: $, style: ce(C.viewport), children: /* @__PURE__ */ x.jsx(ln, { in: a, children: ({ style: A, ...Q }, Z) => /* @__PURE__ */ x.jsx("div", { style: ce(C.itemContainer), children: /* @__PURE__ */ x.jsx(
1655
+ children: /* @__PURE__ */ x.jsx("div", { ref: I, style: ce(C.viewport), children: /* @__PURE__ */ x.jsx(ln, { in: a, children: ({ style: A, ...Q }, Z) => /* @__PURE__ */ x.jsx("div", { style: ce(C.itemContainer), children: /* @__PURE__ */ x.jsx(
1654
1656
  N,
1655
1657
  {
1656
1658
  "aria-hidden": Z !== r,
@@ -1668,7 +1670,7 @@ function Ws(e, r, s) {
1668
1670
  const l = s === "horizontal" ? 0 : a.clientHeight * r, u = s === "horizontal" ? a.clientWidth * r : 0;
1669
1671
  a.scrollTop === l && a.scrollLeft === u || a.scrollTo({ top: l, left: u, behavior: "smooth" });
1670
1672
  }
1671
- function In(e, r) {
1673
+ function $n(e, r) {
1672
1674
  const s = e?.current;
1673
1675
  if (!s) return;
1674
1676
  const a = [];
@@ -1747,8 +1749,8 @@ const zo = /* @__PURE__ */ Oe(({
1747
1749
  onChange: N,
1748
1750
  ..._
1749
1751
  }, P) => {
1750
- const k = me(($) => {
1751
- const M = (p?.($) ?? $) || r;
1752
+ const k = me((I) => {
1753
+ const M = (p?.(I) ?? I) || r;
1752
1754
  N?.(M);
1753
1755
  }, [N, p]);
1754
1756
  return /* @__PURE__ */ x.jsx(
@@ -1765,9 +1767,9 @@ const zo = /* @__PURE__ */ Oe(({
1765
1767
  required: a,
1766
1768
  type: "text",
1767
1769
  value: u || r,
1768
- onBlur: ({ target: $ }) => m?.($.value),
1769
- onChange: ({ target: $ }) => k($.value),
1770
- onFocus: ({ target: $ }) => g?.($.value)
1770
+ onBlur: ({ target: I }) => m?.(I.value),
1771
+ onChange: ({ target: I }) => k(I.value),
1772
+ onFocus: ({ target: I }) => g?.(I.value)
1771
1773
  }
1772
1774
  );
1773
1775
  });
@@ -1790,18 +1792,18 @@ const Qs = /* @__PURE__ */ Oe(({
1790
1792
  K(C);
1791
1793
  }, k = (C) => {
1792
1794
  const E = M(C);
1793
- E !== u ? p?.(E) : K($(E));
1794
- }, $ = (C) => C.toLocaleString(), M = (C) => {
1795
+ E !== u ? p?.(E) : K(I(E));
1796
+ }, I = (C) => C.toLocaleString(), M = (C) => {
1795
1797
  const E = parseInt(C, 10);
1796
1798
  return E.toString() !== C.replace(/^0+/, "") ? u : b(E);
1797
1799
  }, b = (C) => {
1798
1800
  let E = C;
1799
1801
  return isNaN(l) || (E = Math.max(l, E)), isNaN(a) || (E = Math.min(a, E)), E;
1800
- }, [j, K] = Se($(u)), W = Zs(u), F = !isNaN(a) && u + 1 > a, Y = !isNaN(l) && u - 1 < l;
1802
+ }, [j, K] = Se(I(u)), W = Zs(u), B = !isNaN(a) && u + 1 > a, Y = !isNaN(l) && u - 1 < l;
1801
1803
  be(() => {
1802
1804
  if (W === void 0 || W === u) return;
1803
1805
  const C = b(u);
1804
- K($(C));
1806
+ K(I(C));
1805
1807
  }, [u, l, a]);
1806
1808
  const S = ze(e, {
1807
1809
  textField: Bn,
@@ -1832,7 +1834,7 @@ const Qs = /* @__PURE__ */ Oe(({
1832
1834
  /* @__PURE__ */ x.jsx(
1833
1835
  he,
1834
1836
  {
1835
- className: ie({ disabled: F }),
1837
+ className: ie({ disabled: B }),
1836
1838
  element: S.addButton ?? /* @__PURE__ */ x.jsx(Hn, {}),
1837
1839
  style: ce(Ut.add),
1838
1840
  onClick: () => _()
@@ -1893,11 +1895,11 @@ function ta({
1893
1895
  const p = Ee(void 0), g = _e(a), m = _e(l), N = _e(u);
1894
1896
  Be(() => {
1895
1897
  const _ = (k) => {
1896
- const $ = k.currentTarget;
1897
- m.current?.($);
1898
+ const I = k.currentTarget;
1899
+ m.current?.(I);
1898
1900
  }, P = (k) => {
1899
- const $ = k.currentTarget;
1900
- N.current?.($);
1901
+ const I = k.currentTarget;
1902
+ N.current?.(I);
1901
1903
  };
1902
1904
  return p.current = new Image(), e && (p.current.src = e), r && (p.current.srcset = r), s && (p.current.sizes = s), g.current?.(p.current), p.current.addEventListener("load", _), p.current.addEventListener("error", P), () => {
1903
1905
  p.current?.removeEventListener("load", _), p.current?.removeEventListener("error", P), p.current = void 0;
@@ -1916,14 +1918,14 @@ function Lo({
1916
1918
  } = {}) {
1917
1919
  const [g, m] = Se(), N = _e(l), _ = _e(u), P = _e(p), k = me((b) => {
1918
1920
  a || m(void 0), N.current?.(b);
1919
- }, [a]), $ = me((b) => {
1921
+ }, [a]), I = me((b) => {
1920
1922
  m(na(b)), _.current?.(b);
1921
1923
  }, []), M = me((b) => {
1922
1924
  a || m(void 0), P.current?.(b);
1923
1925
  }, [a]);
1924
1926
  return ta({ src: e, srcSet: r, sizes: s }, {
1925
1927
  onLoadStart: k,
1926
- onLoadComplete: $,
1928
+ onLoadComplete: I,
1927
1929
  onLoadError: M
1928
1930
  }), g;
1929
1931
  }
@@ -1976,7 +1978,7 @@ const Fo = /* @__PURE__ */ Oe(({
1976
1978
  return;
1977
1979
  }
1978
1980
  return M && (W = `${M} ${W}`), W;
1979
- }).filter(Boolean).join(", "), $ = Lo({
1981
+ }).filter(Boolean).join(", "), I = Lo({
1980
1982
  src: a,
1981
1983
  srcSet: P,
1982
1984
  sizes: k
@@ -1986,8 +1988,8 @@ const Fo = /* @__PURE__ */ Oe(({
1986
1988
  onLoadError: g
1987
1989
  });
1988
1990
  return be(() => {
1989
- m?.($);
1990
- }, [$?.width, $?.height]), /* @__PURE__ */ x.jsx(
1991
+ m?.(I);
1992
+ }, [I?.width, I?.height]), /* @__PURE__ */ x.jsx(
1991
1993
  "img",
1992
1994
  {
1993
1995
  ...N,
@@ -2015,11 +2017,11 @@ const ra = /* @__PURE__ */ Oe(({
2015
2017
  onLoadError: _,
2016
2018
  ...P
2017
2019
  }, k) => {
2018
- const $ = (E) => {
2020
+ const I = (E) => {
2019
2021
  K(E ? E.width / E.height : NaN);
2020
- }, M = Ee(null), b = k ?? M, [j, K] = Se(NaN), W = isNaN(a) ? j : a, F = nt(b), Y = F.width / F.height, S = Me.make(
2021
- Y > 1 ? Math.max(F.width, F.height * W) : Math.max(F.width, Math.max(F.height, F.width / W) * W),
2022
- Y > 1 ? Math.max(F.height, Math.max(F.width, F.height * W) / W) : Math.max(F.height, F.width / W)
2022
+ }, M = Ee(null), b = k ?? M, [j, K] = Se(NaN), W = isNaN(a) ? j : a, B = nt(b), Y = B.width / B.height, S = Me.make(
2023
+ Y > 1 ? Math.max(B.width, B.height * W) : Math.max(B.width, Math.max(B.height, B.width / W) * W),
2024
+ Y > 1 ? Math.max(B.height, Math.max(B.width, B.height * W) / W) : Math.max(B.height, B.width / W)
2023
2025
  ), C = ze(e, {
2024
2026
  content: Do,
2025
2027
  viewport: Vo
@@ -2046,7 +2048,7 @@ const ra = /* @__PURE__ */ Oe(({
2046
2048
  onLoadComplete: N,
2047
2049
  onLoadError: _,
2048
2050
  onLoadStart: m,
2049
- onSizeChange: (E) => $(E)
2051
+ onSizeChange: (E) => I(E)
2050
2052
  }
2051
2053
  ),
2052
2054
  C.viewport && /* @__PURE__ */ x.jsx(
@@ -2097,12 +2099,12 @@ function ia(e, {
2097
2099
  onLoadComplete: a,
2098
2100
  onLoadError: l
2099
2101
  } = {}) {
2100
- const [u, p] = Se(), g = _e(s), m = _e(a), N = _e(l), _ = me(($) => {
2101
- r || p(void 0), g.current?.($);
2102
- }, [r]), P = me(($) => {
2103
- p(sa($)), m.current?.($);
2104
- }, []), k = me(($) => {
2105
- r || p(void 0), N.current?.($);
2102
+ const [u, p] = Se(), g = _e(s), m = _e(a), N = _e(l), _ = me((I) => {
2103
+ r || p(void 0), g.current?.(I);
2104
+ }, [r]), P = me((I) => {
2105
+ p(sa(I)), m.current?.(I);
2106
+ }, []), k = me((I) => {
2107
+ r || p(void 0), N.current?.(I);
2106
2108
  }, [r]);
2107
2109
  return oa(e, {
2108
2110
  onLoadStart: _,
@@ -2128,13 +2130,13 @@ const Bo = /* @__PURE__ */ Oe(({
2128
2130
  onLoadMetadata: _,
2129
2131
  onLoadMetadataComplete: P,
2130
2132
  onLoadMetadataError: k,
2131
- onPause: $,
2133
+ onPause: I,
2132
2134
  onPlay: M,
2133
2135
  onSizeChange: b,
2134
2136
  onTimeUpdate: j,
2135
2137
  ...K
2136
2138
  }, W) => {
2137
- const F = Ee(null), Y = W ?? F, S = ia(p, {
2139
+ const B = Ee(null), Y = W ?? B, S = ia(p, {
2138
2140
  onLoadStart: _,
2139
2141
  onLoadComplete: P,
2140
2142
  onLoadError: k
@@ -2164,7 +2166,7 @@ const Bo = /* @__PURE__ */ Oe(({
2164
2166
  }, E = (H) => {
2165
2167
  M?.();
2166
2168
  }, R = (H) => {
2167
- $?.();
2169
+ I?.();
2168
2170
  }, U = (H) => {
2169
2171
  m?.();
2170
2172
  }, G = (H) => {
@@ -2210,17 +2212,17 @@ const aa = /* @__PURE__ */ Oe(({
2210
2212
  src: _,
2211
2213
  onCanPlay: P,
2212
2214
  onEnd: k,
2213
- onFullscreenChange: $,
2215
+ onFullscreenChange: I,
2214
2216
  onLoadMetadata: M,
2215
2217
  onLoadMetadataComplete: b,
2216
2218
  onLoadMetadataError: j,
2217
2219
  onPause: K,
2218
2220
  onPlay: W,
2219
- onSizeChange: F,
2221
+ onSizeChange: B,
2220
2222
  ...Y
2221
2223
  }, S) => {
2222
2224
  const C = (A) => {
2223
- G(A ? A.width / A.height : NaN), F?.(A);
2225
+ G(A ? A.width / A.height : NaN), B?.(A);
2224
2226
  }, E = S ?? Ee(null), R = nt(E), [U, G] = Se(NaN), te = isNaN(a) ? U : a, J = R.width / R.height, H = Me.make(
2225
2227
  J > 1 ? Math.max(R.width, R.height * te) : Math.max(R.width, Math.max(R.height, R.width / te) * te),
2226
2228
  J > 1 ? Math.max(R.height, Math.max(R.width, R.height * te) / te) : Math.max(R.height, R.width / te)
@@ -2253,7 +2255,7 @@ const aa = /* @__PURE__ */ Oe(({
2253
2255
  }),
2254
2256
  onCanPlay: P,
2255
2257
  onEnd: k,
2256
- onFullscreenChange: $,
2258
+ onFullscreenChange: I,
2257
2259
  onLoadMetadata: M,
2258
2260
  onLoadMetadataComplete: b,
2259
2261
  onLoadMetadataError: j,
@@ -2304,9 +2306,9 @@ const ca = /* @__PURE__ */ Oe(({
2304
2306
  const _ = u * 2, P = Math.max(0, Math.min(360, a)), k = ze(e, {
2305
2307
  track: Xn,
2306
2308
  knob: Un
2307
- }), $ = ua({ angle: s, diameter: _ });
2308
- return /* @__PURE__ */ x.jsxs("div", { ...m, ref: N, style: ce(r, $.root), children: [
2309
- /* @__PURE__ */ x.jsx("div", { style: $.trackContainer, children: /* @__PURE__ */ x.jsx("svg", { height: _, style: $.svgContainer, viewBox: `0 0 ${_} ${_}`, width: _, children: /* @__PURE__ */ x.jsx(
2309
+ }), I = ua({ angle: s, diameter: _ });
2310
+ return /* @__PURE__ */ x.jsxs("div", { ...m, ref: N, style: ce(r, I.root), children: [
2311
+ /* @__PURE__ */ x.jsx("div", { style: I.trackContainer, children: /* @__PURE__ */ x.jsx("svg", { height: _, style: I.svgContainer, viewBox: `0 0 ${_} ${_}`, width: _, children: /* @__PURE__ */ x.jsx(
2310
2312
  he,
2311
2313
  {
2312
2314
  cx: u,
@@ -2318,7 +2320,7 @@ const ca = /* @__PURE__ */ Oe(({
2318
2320
  strokeWidth: g
2319
2321
  }
2320
2322
  ) }) }),
2321
- /* @__PURE__ */ x.jsx("div", { style: ce($.knobContainer), children: /* @__PURE__ */ x.jsx("svg", { style: $.svgContainer, viewBox: `0 0 ${_} ${_}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x.jsx(
2323
+ /* @__PURE__ */ x.jsx("div", { style: ce(I.knobContainer), children: /* @__PURE__ */ x.jsx("svg", { style: I.svgContainer, viewBox: `0 0 ${_} ${_}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x.jsx(
2322
2324
  he,
2323
2325
  {
2324
2326
  d: la(u, u, u - l / 2 - (g - l) / 2, -P / 2, P / 2),
@@ -2401,13 +2403,13 @@ const fa = /* @__PURE__ */ Oe(({
2401
2403
  itemLength: _,
2402
2404
  itemPadding: P = 0,
2403
2405
  items: k = [],
2404
- maxVisibleItems: $ = -1,
2406
+ maxVisibleItems: I = -1,
2405
2407
  numSegments: M = 1,
2406
2408
  orientation: b = "vertical",
2407
2409
  selection: j = [],
2408
2410
  selectionMode: K = "single",
2409
2411
  onActivateAt: W,
2410
- onCollapse: F,
2412
+ onCollapse: B,
2411
2413
  onDeselectAt: Y,
2412
2414
  onExpand: S,
2413
2415
  onSelectAt: C,
@@ -2417,23 +2419,23 @@ const fa = /* @__PURE__ */ Oe(({
2417
2419
  ToggleComponent: G,
2418
2420
  ...te
2419
2421
  }, J) => {
2420
- const H = Ee(null), z = nt(H), A = k.length, Q = ga(k, $, M, m), Z = _ ?? (b === "vertical" ? z.height : z.width), se = Z * Q + P * (Q - 1), D = pa(j, k), [T, V] = Se(u ?? !0), ne = ma({ isCollapsed: T, collectionPadding: l, isInverted: p, maxVisibleItems: $, menuLength: se, numItems: A, orientation: b }), re = ze(e, {
2422
+ const H = Ee(null), z = nt(H), A = k.length, Q = ga(k, I, M, m), Z = _ ?? (b === "vertical" ? z.height : z.width), se = Z * Q + P * (Q - 1), F = pa(j, k), [T, D] = Se(u ?? !0), ne = ma({ isCollapsed: T, collectionPadding: l, isInverted: p, maxVisibleItems: I, menuLength: se, numItems: A, orientation: b }), re = ze(e, {
2421
2423
  collapseIcon: Xo,
2422
2424
  collection: qn,
2423
2425
  expandIcon: Uo,
2424
2426
  item: Gn,
2425
2427
  toggle: Wn
2426
2428
  }), le = () => {
2427
- T && (V(!1), S?.());
2429
+ T && (D(!1), S?.());
2428
2430
  }, pe = () => {
2429
- T || (V(!0), F?.());
2431
+ T || (D(!0), B?.());
2430
2432
  }, Ne = () => {
2431
2433
  T ? le() : pe();
2432
2434
  }, Te = (xe) => {
2433
2435
  C?.(xe), K === "single" && a && pe();
2434
2436
  };
2435
2437
  return be(() => {
2436
- u !== void 0 && V(u);
2438
+ u !== void 0 && D(u);
2437
2439
  }, [u]), be(() => {
2438
2440
  const xe = (q) => {
2439
2441
  if (T || !(q.target instanceof Node)) return;
@@ -2479,7 +2481,7 @@ const fa = /* @__PURE__ */ Oe(({
2479
2481
  style: ce(ne.toggle),
2480
2482
  onClick: Ne,
2481
2483
  children: [
2482
- /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(D) ?? (D.length > 0 ? D.map((xe) => k[xe]).join(", ") : "") } }),
2484
+ /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(F) ?? (F.length > 0 ? F.map((xe) => k[xe]).join(", ") : "") } }),
2483
2485
  re.expandIcon && /* @__PURE__ */ x.jsx(
2484
2486
  he,
2485
2487
  {
@@ -2503,7 +2505,7 @@ const fa = /* @__PURE__ */ Oe(({
2503
2505
  layout: m,
2504
2506
  numSegments: M,
2505
2507
  orientation: b,
2506
- selection: D,
2508
+ selection: F,
2507
2509
  selectionMode: K,
2508
2510
  style: ce(ne.collection),
2509
2511
  onActivateAt: W,
@@ -2896,7 +2898,7 @@ const ja = {
2896
2898
  },
2897
2899
  // skipEmptyListItem: false
2898
2900
  captureMetaData: !1
2899
- }, $a = function(e) {
2901
+ }, Ia = function(e) {
2900
2902
  return Object.assign({}, ja, e);
2901
2903
  };
2902
2904
  let on;
@@ -2916,7 +2918,7 @@ class at {
2916
2918
  return on;
2917
2919
  }
2918
2920
  }
2919
- function Ia(e, r) {
2921
+ function $a(e, r) {
2920
2922
  const s = {};
2921
2923
  if (e[r + 3] === "O" && e[r + 4] === "C" && e[r + 5] === "T" && e[r + 6] === "Y" && e[r + 7] === "P" && e[r + 8] === "E") {
2922
2924
  r = r + 9;
@@ -3221,7 +3223,7 @@ const Ja = function(e) {
3221
3223
  }
3222
3224
  u = g;
3223
3225
  } else if (e.substr(u + 1, 2) === "!D") {
3224
- const g = Ia(e, u);
3226
+ const g = $a(e, u);
3225
3227
  this.docTypeEntities = g.entities, u = g.i;
3226
3228
  } else if (e.substr(u + 1, 2) === "![") {
3227
3229
  const g = lt(e, "]]>", u, "CDATA is not closed.") - 2, m = e.substring(u + 9, g);
@@ -3233,8 +3235,8 @@ const Ja = function(e) {
3233
3235
  const N = g.rawTagName;
3234
3236
  let _ = g.tagExp, P = g.attrExpPresent, k = g.closeIndex;
3235
3237
  this.options.transformTagName && (m = this.options.transformTagName(m)), s && a && s.tagname !== "!xml" && (a = this.saveTextToParentTag(a, s, l, !1));
3236
- const $ = s;
3237
- $ && this.options.unpairedTags.indexOf($.tagname) !== -1 && (s = this.tagsNodeStack.pop(), l = l.substring(0, l.lastIndexOf("."))), m !== r.tagname && (l += l ? "." + m : m);
3238
+ const I = s;
3239
+ I && this.options.unpairedTags.indexOf(I.tagname) !== -1 && (s = this.tagsNodeStack.pop(), l = l.substring(0, l.lastIndexOf("."))), m !== r.tagname && (l += l ? "." + m : m);
3238
3240
  const M = u;
3239
3241
  if (this.isItStopNode(this.options.stopNodes, l, m)) {
3240
3242
  let b = "";
@@ -3434,7 +3436,7 @@ function ac(e, r) {
3434
3436
  }
3435
3437
  class cc {
3436
3438
  constructor(r) {
3437
- this.externalEntities = {}, this.options = $a(r);
3439
+ this.externalEntities = {}, this.options = Ia(r);
3438
3440
  }
3439
3441
  /**
3440
3442
  * Parse XML dats to JS object
@@ -3515,8 +3517,8 @@ function Jo(e, r, s, a) {
3515
3517
  }
3516
3518
  let _ = a;
3517
3519
  _ !== "" && (_ += r.indentBy);
3518
- const P = yo(g[":@"], r), k = a + `<${m}${P}`, $ = Jo(g[m], r, N, _);
3519
- r.unpairedTags.indexOf(m) !== -1 ? r.suppressUnpairedNode ? l += k + ">" : l += k + "/>" : (!$ || $.length === 0) && r.suppressEmptyNode ? l += k + "/>" : $ && $.endsWith(">") ? l += k + `>${$}${a}</${m}>` : (l += k + ">", $ && a !== "" && ($.includes("/>") || $.includes("</")) ? l += a + r.indentBy + $ + a : l += $, l += `</${m}>`), u = !0;
3520
+ const P = yo(g[":@"], r), k = a + `<${m}${P}`, I = Jo(g[m], r, N, _);
3521
+ r.unpairedTags.indexOf(m) !== -1 ? r.suppressUnpairedNode ? l += k + ">" : l += k + "/>" : (!I || I.length === 0) && r.suppressEmptyNode ? l += k + "/>" : I && I.endsWith(">") ? l += k + `>${I}${a}</${m}>` : (l += k + ">", I && a !== "" && (I.includes("/>") || I.includes("</")) ? l += a + r.indentBy + I + a : l += I, l += `</${m}>`), u = !0;
3520
3522
  }
3521
3523
  return l;
3522
3524
  }
@@ -3704,7 +3706,7 @@ const vc = /* @__PURE__ */ Oe(({
3704
3706
  shouldStripStyles: u = !0,
3705
3707
  ...p
3706
3708
  }, g) => {
3707
- const m = "@_", N = ["id"].map((M) => `${m}${M}`), _ = ["class"].map((M) => `${m}${M}`), P = ["fill", "stroke", "style"].map((M) => `${m}${M}`), k = ["x", "y"].map((M) => `${m}${M}`), $ = () => {
3709
+ const m = "@_", N = ["id"].map((M) => `${m}${M}`), _ = ["class"].map((M) => `${m}${M}`), P = ["fill", "stroke", "style"].map((M) => `${m}${M}`), k = ["x", "y"].map((M) => `${m}${M}`), I = () => {
3708
3710
  const M = new cc({
3709
3711
  attributeNamePrefix: m,
3710
3712
  ignoreAttributes: !1,
@@ -3712,21 +3714,21 @@ const vc = /* @__PURE__ */ Oe(({
3712
3714
  ignorePiTags: !0,
3713
3715
  removeNSPrefix: !0,
3714
3716
  trimValues: !0,
3715
- updateTag: (K, W, F) => {
3717
+ updateTag: (K, W, B) => {
3716
3718
  if (u && K.toLowerCase() === "style") return !1;
3717
- const Y = Object.keys(F);
3719
+ const Y = Object.keys(B);
3718
3720
  for (const S of Y)
3719
- K.toLowerCase() === "svg" && (l && k.includes(S.toLowerCase()) && delete F[S], e !== "preserve" && (S.toLowerCase() === `${m}width` && delete F[S], S.toLowerCase() === `${m}height` && delete F[S])), a && N.includes(S.toLowerCase()) && delete F[S], s && _.includes(S.toLowerCase()) && delete F[S], u && P.includes(S.toLowerCase()) && delete F[S];
3721
+ K.toLowerCase() === "svg" && (l && k.includes(S.toLowerCase()) && delete B[S], e !== "preserve" && (S.toLowerCase() === `${m}width` && delete B[S], S.toLowerCase() === `${m}height` && delete B[S])), a && N.includes(S.toLowerCase()) && delete B[S], s && _.includes(S.toLowerCase()) && delete B[S], u && P.includes(S.toLowerCase()) && delete B[S];
3720
3722
  if (K.toLowerCase() === "svg")
3721
3723
  switch (e) {
3722
3724
  case "fill":
3723
- F[`${m}width`] = "100%", F[`${m}height`] = "100%";
3725
+ B[`${m}width`] = "100%", B[`${m}height`] = "100%";
3724
3726
  break;
3725
3727
  case "width":
3726
- F[`${m}width`] = "100%", F[`${m}height`] = "auto";
3728
+ B[`${m}width`] = "100%";
3727
3729
  break;
3728
3730
  case "height":
3729
- F[`${m}width`] = "auto", F[`${m}height`] = "100%";
3731
+ B[`${m}height`] = "100%";
3730
3732
  break;
3731
3733
  }
3732
3734
  return K;
@@ -3743,7 +3745,7 @@ const vc = /* @__PURE__ */ Oe(({
3743
3745
  {
3744
3746
  ...p,
3745
3747
  ref: g,
3746
- dangerouslySetInnerHTML: { __html: $() },
3748
+ dangerouslySetInnerHTML: { __html: I() },
3747
3749
  role: "img"
3748
3750
  }
3749
3751
  );
@@ -3760,7 +3762,7 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
3760
3762
  verticalSpacing: g = 0,
3761
3763
  ...m
3762
3764
  }, N) => {
3763
- const _ = Ee(null), [P, k] = Se(NaN), [$, M] = Se(NaN), [b, j] = Se(NaN), [K, W] = Se(NaN), F = () => ge.from(_.current)?.width ?? 0, Y = () => ge.from(_.current)?.height ?? 0, S = () => {
3765
+ const _ = Ee(null), [P, k] = Se(NaN), [I, M] = Se(NaN), [b, j] = Se(NaN), [K, W] = Se(NaN), B = () => ge.from(_.current)?.width ?? 0, Y = () => ge.from(_.current)?.height ?? 0, S = () => {
3764
3766
  const U = _.current;
3765
3767
  if (!U) return;
3766
3768
  const G = U.children, te = p;
@@ -3774,15 +3776,15 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
3774
3776
  if (!(A instanceof HTMLElement)) continue;
3775
3777
  const Q = wo(A, p), [Z, se] = bo(J, Q);
3776
3778
  A.role = "gridcell", A.style.position = "absolute", A.style.width = `calc(${100 / te * Q}% - ${a * (te - 1) / te * Q}px + ${a * (Q - 1)}px)`, A.style.height = "", A.style.left = `calc(${100 / te * Z}% - ${a * (te - 1) / te * Z}px + ${a * Z}px)`, A.style.top = `${se + (se === 0 ? 0 : g)}px`;
3777
- for (let D = 0; D < Q; D++)
3778
- J[Z + D] = se + (se === 0 ? 0 : g) + (ge.from(A)?.height ?? 0);
3779
+ for (let F = 0; F < Q; F++)
3780
+ J[Z + F] = se + (se === 0 ? 0 : g) + (ge.from(A)?.height ?? 0);
3779
3781
  if (e && Z + Q === te) {
3780
- const D = Pt(J);
3782
+ const F = Pt(J);
3781
3783
  for (let T = 0; T < te; T++)
3782
- J[T] = D;
3784
+ J[T] = F;
3783
3785
  }
3784
3786
  }
3785
- const H = F(), z = Pt(J, te);
3787
+ const H = B(), z = Pt(J, te);
3786
3788
  if (k(H), M(z), isNaN(z) || (U.style.height = `${z}px`), l)
3787
3789
  for (const A of Array.from(G))
3788
3790
  A instanceof HTMLElement && (A.style.left = `calc(${H}px - ${A.style.left} - ${A.getBoundingClientRect().width}px)`);
@@ -3792,12 +3794,12 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
3792
3794
  if (!(A instanceof HTMLElement)) continue;
3793
3795
  const Q = wo(A, p), [Z, se] = bo(J, Q);
3794
3796
  A.style.position = "absolute", A.style.width = "", A.style.height = `calc(${100 / te * Q}% - ${g * (te - 1) / te * Q}px + ${g * (Q - 1)}px)`, A.style.top = `calc(${100 / te * Z}% - ${g * (te - 1) / te * Z}px + ${g * Z}px)`, A.style.left = `${se + (se === 0 ? 0 : a)}px`;
3795
- for (let D = 0; D < Q; D++)
3796
- J[Z + D] = se + (se === 0 ? 0 : a) + (ge.from(A)?.width ?? 0);
3797
+ for (let F = 0; F < Q; F++)
3798
+ J[Z + F] = se + (se === 0 ? 0 : a) + (ge.from(A)?.width ?? 0);
3797
3799
  if (e && Z + Q === te) {
3798
- const D = Pt(J);
3800
+ const F = Pt(J);
3799
3801
  for (let T = 0; T < te; T++)
3800
- J[T] = D;
3802
+ J[T] = F;
3801
3803
  }
3802
3804
  }
3803
3805
  const H = Y(), z = Pt(J, te);
@@ -3806,8 +3808,8 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
3806
3808
  A instanceof HTMLElement && (A.style.top = `calc(${H}px - ${A.style.top} - ${A.getBoundingClientRect().height}px)`);
3807
3809
  }
3808
3810
  }, C = me((U) => {
3809
- const G = ge.size(ge.from(U) ?? ge.zero), te = F(), J = Y();
3810
- (P !== te || $ !== J || G.width !== b || G.height !== K) && (S(), j(G.width), W(G.height));
3811
+ const G = ge.size(ge.from(U) ?? ge.zero), te = B(), J = Y();
3812
+ (P !== te || I !== J || G.width !== b || G.height !== K) && (S(), j(G.width), W(G.height));
3811
3813
  }, [e, a, l, p, g, u]);
3812
3814
  dr(_, {
3813
3815
  onResize: C
@@ -3820,7 +3822,7 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
3820
3822
  H.src = J, H.onload = () => S();
3821
3823
  }
3822
3824
  }, [r]);
3823
- const E = xc({ orientation: u }), R = bc({ orientation: u, minHeight: $, minWidth: P });
3825
+ const E = xc({ orientation: u }), R = bc({ orientation: u, minHeight: I, minWidth: P });
3824
3826
  return /* @__PURE__ */ x.jsx(
3825
3827
  "div",
3826
3828
  {
@@ -3976,7 +3978,7 @@ function Sc() {
3976
3978
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3977
3979
  return n;
3978
3980
  }
3979
- function $(n) {
3981
+ function I(n) {
3980
3982
  var t = function() {
3981
3983
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
3982
3984
  if (typeof Proxy == "function") return !0;
@@ -4028,7 +4030,7 @@ function Sc() {
4028
4030
  var j = function(n) {
4029
4031
  return !(!n || !n.Window) && n instanceof n.Window;
4030
4032
  }, K = void 0, W = void 0;
4031
- function F(n) {
4033
+ function B(n) {
4032
4034
  K = n;
4033
4035
  var t = n.document.createTextNode("");
4034
4036
  t.ownerDocument !== n.document && typeof n.wrap == "function" && n.wrap(t) === t && (n = n.wrap(n)), W = n;
@@ -4036,7 +4038,7 @@ function Sc() {
4036
4038
  function Y(n) {
4037
4039
  return j(n) ? n : (n.ownerDocument || n).defaultView || W.window;
4038
4040
  }
4039
- typeof window < "u" && window && F(window);
4041
+ typeof window < "u" && window && B(window);
4040
4042
  var S = function(n) {
4041
4043
  return !!n && l(n) === "object";
4042
4044
  }, C = function(n) {
@@ -4110,11 +4112,11 @@ function Sc() {
4110
4112
  function se(n, t) {
4111
4113
  for (; E.element(n); ) {
4112
4114
  if (T(n, t)) return n;
4113
- n = D(n);
4115
+ n = F(n);
4114
4116
  }
4115
4117
  return null;
4116
4118
  }
4117
- function D(n) {
4119
+ function F(n) {
4118
4120
  var t = n.parentNode;
4119
4121
  if (E.docFrag(t)) {
4120
4122
  for (; (t = t.host) && E.docFrag(t); ) ;
@@ -4125,17 +4127,17 @@ function Sc() {
4125
4127
  function T(n, t) {
4126
4128
  return W !== K && (t = t.replace(/\/deep\//g, " ")), n[Q.prefixedMatchesSelector](t);
4127
4129
  }
4128
- var V = function(n) {
4130
+ var D = function(n) {
4129
4131
  return n.parentNode || n.host;
4130
4132
  };
4131
4133
  function ne(n, t) {
4132
- for (var o, i = [], c = n; (o = V(c)) && c !== t && o !== c.ownerDocument; ) i.unshift(c), c = o;
4134
+ for (var o, i = [], c = n; (o = D(c)) && c !== t && o !== c.ownerDocument; ) i.unshift(c), c = o;
4133
4135
  return i;
4134
4136
  }
4135
4137
  function re(n, t, o) {
4136
4138
  for (; E.element(n); ) {
4137
4139
  if (T(n, t)) return !0;
4138
- if ((n = D(n)) === o) return T(n, t);
4140
+ if ((n = F(n)) === o) return T(n, t);
4139
4141
  }
4140
4142
  return !1;
4141
4143
  }
@@ -4155,7 +4157,7 @@ function Sc() {
4155
4157
  return o;
4156
4158
  }
4157
4159
  function Te(n) {
4158
- for (var t = []; n; ) t.push(n), n = D(n);
4160
+ for (var t = []; n; ) t.push(n), n = F(n);
4159
4161
  return t;
4160
4162
  }
4161
4163
  function xe(n) {
@@ -4166,7 +4168,7 @@ function Sc() {
4166
4168
  return n;
4167
4169
  }
4168
4170
  function Fe(n, t, o) {
4169
- return n === "parent" ? D(o) : n === "self" ? t.getRect(o) : se(o, n);
4171
+ return n === "parent" ? F(o) : n === "self" ? t.getRect(o) : se(o, n);
4170
4172
  }
4171
4173
  function je(n, t, o, i) {
4172
4174
  var c = n;
@@ -4209,7 +4211,7 @@ function Sc() {
4209
4211
  var pt = function(n, t) {
4210
4212
  return Math.sqrt(n * n + t * t);
4211
4213
  }, ii = ["webkit", "moz"];
4212
- function $t(n, t) {
4214
+ function It(n, t) {
4213
4215
  n.__set || (n.__set = {});
4214
4216
  var o = function(c) {
4215
4217
  if (ii.some(function(f) {
@@ -4224,7 +4226,7 @@ function Sc() {
4224
4226
  for (var i in t) o(i);
4225
4227
  return n;
4226
4228
  }
4227
- function It(n, t) {
4229
+ function $t(n, t) {
4228
4230
  n.page = n.page || {}, n.page.x = t.page.x, n.page.y = t.page.y, n.client = n.client || {}, n.client.x = t.client.x, n.client.y = t.client.y, n.timeStamp = t.timeStamp;
4229
4231
  }
4230
4232
  function yr(n) {
@@ -4310,7 +4312,7 @@ function Sc() {
4310
4312
  return n[gt(n, t)];
4311
4313
  }, ut = function(n) {
4312
4314
  N(o, n);
4313
- var t = $(o);
4315
+ var t = I(o);
4314
4316
  function o(i, c, f) {
4315
4317
  var d;
4316
4318
  u(this, o), (d = t.call(this, c._interaction)).dropzone = void 0, d.dragEvent = void 0, d.relatedTarget = void 0, d.draggable = void 0, d.propagationStopped = !1, d.immediatePropagationStopped = !1;
@@ -4347,8 +4349,8 @@ function Sc() {
4347
4349
  var y = w[v];
4348
4350
  if (y.options.drop.enabled) {
4349
4351
  var O = y.options.drop.accept;
4350
- if (!(E.element(O) && O !== d || E.string(O) && !T(d, O) || E.func(O) && !O({ dropzone: y, draggableElement: d }))) for (var I = 0, B = y.getAllElements(); I < B.length; I++) {
4351
- var L = B[I];
4352
+ if (!(E.element(O) && O !== d || E.string(O) && !T(d, O) || E.func(O) && !O({ dropzone: y, draggableElement: d }))) for (var $ = 0, V = y.getAllElements(); $ < V.length; $++) {
4353
+ var L = V[$];
4352
4354
  L !== d && h.push({ dropzone: y, element: L, rect: y.getRect(L) });
4353
4355
  }
4354
4356
  }
@@ -4362,15 +4364,15 @@ function Sc() {
4362
4364
  }
4363
4365
  function Or(n, t, o) {
4364
4366
  for (var i = n.dropState, c = n.interactable, f = n.element, d = [], h = 0, v = i.activeDrops; h < v.length; h++) {
4365
- var w = v[h], y = w.dropzone, O = w.element, I = w.rect, B = y.dropCheck(t, o, c, f, O, I);
4366
- d.push(B ? O : null);
4367
+ var w = v[h], y = w.dropzone, O = w.element, $ = w.rect, V = y.dropCheck(t, o, c, f, O, $);
4368
+ d.push(V ? O : null);
4367
4369
  }
4368
4370
  var L = function(X) {
4369
4371
  for (var oe, ee, ae, ve = [], we = 0; we < X.length; we++) {
4370
4372
  var ue = X[we], ye = X[oe];
4371
4373
  if (ue && we !== oe) if (ye) {
4372
- var Ie = V(ue), Pe = V(ye);
4373
- if (Ie !== ue.ownerDocument) if (Pe !== ue.ownerDocument) if (Ie !== Pe) {
4374
+ var $e = D(ue), Pe = D(ye);
4375
+ if ($e !== ue.ownerDocument) if (Pe !== ue.ownerDocument) if ($e !== Pe) {
4374
4376
  ve = ve.length ? ve : ne(ye);
4375
4377
  var Le = void 0;
4376
4378
  if (ye instanceof z.HTMLElement && ue instanceof z.SVGElement && !(ue instanceof z.SVGSVGElement)) {
@@ -4418,8 +4420,8 @@ function Sc() {
4418
4420
  return function(d, h) {
4419
4421
  if (E.object(h)) {
4420
4422
  if (d.options.drop.enabled = h.enabled !== !1, h.listeners) {
4421
- var v = Ye(h.listeners), w = Object.keys(v).reduce(function(O, I) {
4422
- return O[/^(enter|leave)/.test(I) ? "drag".concat(I) : /^(activate|deactivate|move)/.test(I) ? "drop".concat(I) : I] = v[I], O;
4423
+ var v = Ye(h.listeners), w = Object.keys(v).reduce(function(O, $) {
4424
+ return O[/^(enter|leave)/.test($) ? "drag".concat($) : /^(activate|deactivate|move)/.test($) ? "drop".concat($) : $] = v[$], O;
4423
4425
  }, {}), y = d.options.drop.listeners;
4424
4426
  y && d.off(y), d.on(w), d.options.drop.listeners = w;
4425
4427
  }
@@ -4428,22 +4430,22 @@ function Sc() {
4428
4430
  return E.bool(h) ? (d.options.drop.enabled = h, d) : d.options.drop;
4429
4431
  }(this, f);
4430
4432
  }, i.prototype.dropCheck = function(f, d, h, v, w, y) {
4431
- return function(O, I, B, L, X, oe, ee) {
4433
+ return function(O, $, V, L, X, oe, ee) {
4432
4434
  var ae = !1;
4433
- if (!(ee = ee || O.getRect(oe))) return !!O.options.drop.checker && O.options.drop.checker(I, B, ae, O, oe, L, X);
4435
+ if (!(ee = ee || O.getRect(oe))) return !!O.options.drop.checker && O.options.drop.checker($, V, ae, O, oe, L, X);
4434
4436
  var ve = O.options.drop.overlap;
4435
4437
  if (ve === "pointer") {
4436
- var we = He(L, X, "drag"), ue = br(I);
4438
+ var we = He(L, X, "drag"), ue = br($);
4437
4439
  ue.x += we.x, ue.y += we.y;
4438
- var ye = ue.x > ee.left && ue.x < ee.right, Ie = ue.y > ee.top && ue.y < ee.bottom;
4439
- ae = ye && Ie;
4440
+ var ye = ue.x > ee.left && ue.x < ee.right, $e = ue.y > ee.top && ue.y < ee.bottom;
4441
+ ae = ye && $e;
4440
4442
  }
4441
4443
  var Pe = L.getRect(X);
4442
4444
  if (Pe && ve === "center") {
4443
4445
  var Le = Pe.left + Pe.width / 2, De = Pe.top + Pe.height / 2;
4444
4446
  ae = Le >= ee.left && Le <= ee.right && De >= ee.top && De <= ee.bottom;
4445
4447
  }
4446
- return Pe && E.number(ve) && (ae = Math.max(0, Math.min(ee.right, Pe.right) - Math.max(ee.left, Pe.left)) * Math.max(0, Math.min(ee.bottom, Pe.bottom) - Math.max(ee.top, Pe.top)) / (Pe.width * Pe.height) >= ve), O.options.drop.checker && (ae = O.options.drop.checker(I, B, ae, O, oe, L, X)), ae;
4448
+ return Pe && E.number(ve) && (ae = Math.max(0, Math.min(ee.right, Pe.right) - Math.max(ee.left, Pe.left)) * Math.max(0, Math.min(ee.bottom, Pe.bottom) - Math.max(ee.top, Pe.top)) / (Pe.width * Pe.height) >= ve), O.options.drop.checker && (ae = O.options.drop.checker($, V, ae, O, oe, L, X)), ae;
4447
4449
  }(this, f, d, h, v, w, y);
4448
4450
  }, o.dynamicDrop = function(f) {
4449
4451
  return E.bool(f) ? (n.dynamicDrop = f, o) : n.dynamicDrop;
@@ -4555,12 +4557,12 @@ function Sc() {
4555
4557
  (function(t) {
4556
4558
  var o = t.iEvent, i = t.interaction;
4557
4559
  if (i.prepared.name === "resize" && i.prepared.edges) {
4558
- var c = o, f = i.interactable.options.resize.invert, d = f === "reposition" || f === "negate", h = i.rect, v = i._rects, w = v.start, y = v.corrected, O = v.delta, I = v.previous;
4559
- if (q(I, y), d) {
4560
+ var c = o, f = i.interactable.options.resize.invert, d = f === "reposition" || f === "negate", h = i.rect, v = i._rects, w = v.start, y = v.corrected, O = v.delta, $ = v.previous;
4561
+ if (q($, y), d) {
4560
4562
  if (q(y, h), f === "reposition") {
4561
4563
  if (y.top > y.bottom) {
4562
- var B = y.top;
4563
- y.top = y.bottom, y.bottom = B;
4564
+ var V = y.top;
4565
+ y.top = y.bottom, y.bottom = V;
4564
4566
  }
4565
4567
  if (y.left > y.right) {
4566
4568
  var L = y.left;
@@ -4568,7 +4570,7 @@ function Sc() {
4568
4570
  }
4569
4571
  }
4570
4572
  } else y.top = Math.min(h.top, w.bottom), y.bottom = Math.max(h.bottom, w.top), y.left = Math.min(h.left, w.right), y.right = Math.max(h.right, w.left);
4571
- for (var X in y.width = y.right - y.left, y.height = y.bottom - y.top, y) O[X] = y[X] - I[X];
4573
+ for (var X in y.width = y.right - y.left, y.height = y.bottom - y.top, y) O[X] = y[X] - $[X];
4572
4574
  c.edges = i.prepared.edges, c.rect = y, c.deltaRect = O;
4573
4575
  }
4574
4576
  })(n), Cr(n);
@@ -4631,14 +4633,14 @@ function Sc() {
4631
4633
  }, stop: function() {
4632
4634
  fe.isScrolling = !1, fe.interaction && (fe.interaction.autoScroll = null), Ke.cancel(fe.i);
4633
4635
  }, scroll: function() {
4634
- var n = fe.interaction, t = n.interactable, o = n.element, i = n.prepared.name, c = t.options[i].autoScroll, f = $r(c.container, t, o), d = fe.now(), h = (d - fe.prevTime) / 1e3, v = c.speed * h;
4636
+ var n = fe.interaction, t = n.interactable, o = n.element, i = n.prepared.name, c = t.options[i].autoScroll, f = Ir(c.container, t, o), d = fe.now(), h = (d - fe.prevTime) / 1e3, v = c.speed * h;
4635
4637
  if (v >= 1) {
4636
4638
  var w = { x: fe.x * v, y: fe.y * v };
4637
4639
  if (w.x || w.y) {
4638
- var y = Ir(f);
4640
+ var y = $r(f);
4639
4641
  E.window(f) ? f.scrollBy(w.x, w.y) : f && (f.scrollLeft += w.x, f.scrollTop += w.y);
4640
- var O = Ir(f), I = { x: O.x - y.x, y: O.y - y.y };
4641
- (I.x || I.y) && t.fire({ type: "autoscroll", target: o, interactable: t, delta: I, interaction: n, container: f });
4642
+ var O = $r(f), $ = { x: O.x - y.x, y: O.y - y.y };
4643
+ ($.x || $.y) && t.fire({ type: "autoscroll", target: o, interactable: t, delta: $, interaction: n, container: f });
4642
4644
  }
4643
4645
  fe.prevTime = d;
4644
4646
  }
@@ -4650,19 +4652,19 @@ function Sc() {
4650
4652
  var t = n.interaction, o = n.pointer;
4651
4653
  if (t.interacting() && fe.check(t.interactable, t.prepared.name)) if (t.simulation) fe.x = fe.y = 0;
4652
4654
  else {
4653
- var i, c, f, d, h = t.interactable, v = t.element, w = t.prepared.name, y = h.options[w].autoScroll, O = $r(y.container, h, v);
4655
+ var i, c, f, d, h = t.interactable, v = t.element, w = t.prepared.name, y = h.options[w].autoScroll, O = Ir(y.container, h, v);
4654
4656
  if (E.window(O)) d = o.clientX < fe.margin, i = o.clientY < fe.margin, c = o.clientX > O.innerWidth - fe.margin, f = o.clientY > O.innerHeight - fe.margin;
4655
4657
  else {
4656
- var I = pe(O);
4657
- d = o.clientX < I.left + fe.margin, i = o.clientY < I.top + fe.margin, c = o.clientX > I.right - fe.margin, f = o.clientY > I.bottom - fe.margin;
4658
+ var $ = pe(O);
4659
+ d = o.clientX < $.left + fe.margin, i = o.clientY < $.top + fe.margin, c = o.clientX > $.right - fe.margin, f = o.clientY > $.bottom - fe.margin;
4658
4660
  }
4659
4661
  fe.x = c ? 1 : d ? -1 : 0, fe.y = f ? 1 : i ? -1 : 0, fe.isScrolling || (fe.margin = y.margin, fe.speed = y.speed, fe.start(t));
4660
4662
  }
4661
4663
  } };
4662
- function $r(n, t, o) {
4664
+ function Ir(n, t, o) {
4663
4665
  return (E.string(n) ? Fe(n, t, o) : n) || Y(o);
4664
4666
  }
4665
- function Ir(n) {
4667
+ function $r(n) {
4666
4668
  return E.window(n) && (n = window.document.body), { x: n.scrollLeft, y: n.scrollTop };
4667
4669
  }
4668
4670
  var di = { id: "auto-scroll", install: function(n) {
@@ -4696,7 +4698,7 @@ function Sc() {
4696
4698
  var t = n.Interactable;
4697
4699
  t.prototype.getAction = function(o, i, c, f) {
4698
4700
  var d = function(h, v, w, y, O) {
4699
- var I = h.getRect(y), B = v.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[v.button], L = { action: null, interactable: h, interaction: w, element: y, rect: I, buttons: B };
4701
+ var $ = h.getRect(y), V = v.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[v.button], L = { action: null, interactable: h, interaction: w, element: y, rect: $, buttons: V };
4700
4702
  return O.fire("auto-start:check", L), L.action;
4701
4703
  }(this, i, c, f, n);
4702
4704
  return this.options.actionChecker ? this.options.actionChecker(o, i, d, this, f, c) : d;
@@ -4713,8 +4715,8 @@ function Sc() {
4713
4715
  for (var h = 0, v = i.length; h < v; h++) {
4714
4716
  var w = i[h], y = c[h], O = w.getAction(t, o, n, y);
4715
4717
  if (O) {
4716
- var I = Ar(O, w, y, f, d);
4717
- if (I) return { action: I, interactable: w, element: y };
4718
+ var $ = Ar(O, w, y, f, d);
4719
+ if ($) return { action: $, interactable: w, element: y };
4718
4720
  }
4719
4721
  }
4720
4722
  return { action: null, interactable: null, element: null };
@@ -4728,7 +4730,7 @@ function Sc() {
4728
4730
  f = [], d = [], c.interactables.forEachMatch(h, v);
4729
4731
  var w = vi(n, t, o, f, d, i, c);
4730
4732
  if (w.action && !w.interactable.options[w.action.name].manualStart) return w;
4731
- h = D(h);
4733
+ h = F(h);
4732
4734
  }
4733
4735
  return { action: null, interactable: null, element: null };
4734
4736
  }
@@ -4739,9 +4741,9 @@ function Sc() {
4739
4741
  function Rt(n, t, o, i) {
4740
4742
  var c = n.options, f = c[o.name].max, d = c[o.name].maxPerElement, h = i.autoStart.maxInteractions, v = 0, w = 0, y = 0;
4741
4743
  if (!(f && d && h)) return !1;
4742
- for (var O = 0, I = i.interactions.list; O < I.length; O++) {
4743
- var B = I[O], L = B.prepared.name;
4744
- if (B.interacting() && (++v >= h || B.interactable === n && ((w += L === o.name ? 1 : 0) >= f || B.element === t && (y++, L === o.name && y >= d))))
4744
+ for (var O = 0, $ = i.interactions.list; O < $.length; O++) {
4745
+ var V = $[O], L = V.prepared.name;
4746
+ if (V.interacting() && (++v >= h || V.interactable === n && ((w += L === o.name ? 1 : 0) >= f || V.element === t && (y++, L === o.name && y >= d))))
4745
4747
  return !1;
4746
4748
  }
4747
4749
  return h > 0;
@@ -4793,7 +4795,7 @@ function Sc() {
4793
4795
  var d = Math.abs(c), h = Math.abs(f), v = o.interactable.options.drag, w = v.startAxis, y = d > h ? "x" : d < h ? "y" : "xy";
4794
4796
  if (o.prepared.axis = v.lockAxis === "start" ? y[0] : v.lockAxis, y !== "xy" && w !== "xy" && w !== y) {
4795
4797
  o.prepared.name = null;
4796
- for (var O = i, I = function(L) {
4798
+ for (var O = i, $ = function(L) {
4797
4799
  if (L !== o.interactable) {
4798
4800
  var X = o.interactable.options.drag;
4799
4801
  if (!X.manualStart && L.testIgnoreAllow(X, O, i)) {
@@ -4806,12 +4808,12 @@ function Sc() {
4806
4808
  }
4807
4809
  }
4808
4810
  }; E.element(O); ) {
4809
- var B = t.interactables.forEachMatch(O, I);
4810
- if (B) {
4811
- o.prepared.name = "drag", o.interactable = B, o.element = O;
4811
+ var V = t.interactables.forEachMatch(O, $);
4812
+ if (V) {
4813
+ o.prepared.name = "drag", o.interactable = V, o.element = O;
4812
4814
  break;
4813
4815
  }
4814
- O = D(O);
4816
+ O = F(O);
4815
4817
  }
4816
4818
  }
4817
4819
  }
@@ -4889,11 +4891,11 @@ function Sc() {
4889
4891
  return g(n, [{ key: "start", value: function(t, o) {
4890
4892
  var i, c, f = t.phase, d = this.interaction, h = function(w) {
4891
4893
  var y = w.interactable.options[w.prepared.name], O = y.modifiers;
4892
- return O && O.length ? O : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map(function(I) {
4893
- var B = y[I];
4894
- return B && B.enabled && { options: B, methods: B._methods };
4895
- }).filter(function(I) {
4896
- return !!I;
4894
+ return O && O.length ? O : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map(function($) {
4895
+ var V = y[$];
4896
+ return V && V.enabled && { options: V, methods: V._methods };
4897
+ }).filter(function($) {
4898
+ return !!$;
4897
4899
  });
4898
4900
  }(d);
4899
4901
  this.prepareStates(h), this.startEdges = q({}, d.edges), this.edges = q({}, this.startEdges), this.startOffset = (i = d.rect, c = o, i ? { left: c.x - i.left, top: c.y - i.top, right: i.right - c.x, bottom: i.bottom - c.y } : { left: 0, top: 0, right: 0, bottom: 0 }), this.startDelta = { x: 0, y: 0 };
@@ -4911,8 +4913,8 @@ function Sc() {
4911
4913
  var o = t.phase, i = t.preEnd, c = t.skipModifiers, f = t.rect, d = t.edges;
4912
4914
  t.coords = q({}, t.pageCoords), t.rect = q({}, f), t.edges = q({}, d);
4913
4915
  for (var h = c ? this.states.slice(c) : this.states, v = Lt(t.coords, t.rect), w = 0; w < h.length; w++) {
4914
- var y, O = h[w], I = O.options, B = q({}, t.coords), L = null;
4915
- (y = O.methods) != null && y.set && this.shouldDo(I, i, o) && (t.state = O, L = O.methods.set(t), Re(t.edges, t.rect, { x: t.coords.x - B.x, y: t.coords.y - B.y })), v.eventProps.push(L);
4916
+ var y, O = h[w], $ = O.options, V = q({}, t.coords), L = null;
4917
+ (y = O.methods) != null && y.set && this.shouldDo($, i, o) && (t.state = O, L = O.methods.set(t), Re(t.edges, t.rect, { x: t.coords.x - V.x, y: t.coords.y - V.y })), v.eventProps.push(L);
4916
4918
  }
4917
4919
  q(this.edges, t.edges), v.delta.x = t.coords.x - t.pageCoords.x, v.delta.y = t.coords.y - t.pageCoords.y, v.rectDelta.left = t.rect.left - f.left, v.rectDelta.right = t.rect.right - f.right, v.rectDelta.top = t.rect.top - f.top, v.rectDelta.bottom = t.rect.bottom - f.bottom;
4918
4920
  var X = this.result.coords, oe = this.result.rect;
@@ -4925,8 +4927,8 @@ function Sc() {
4925
4927
  var o = this.interaction, i = t.phase, c = o.coords.cur, f = o.coords.start, d = this.result, h = this.startDelta, v = d.delta;
4926
4928
  i === "start" && q(this.startDelta, d.delta);
4927
4929
  for (var w = 0, y = [[f, h], [c, v]]; w < y.length; w++) {
4928
- var O = y[w], I = O[0], B = O[1];
4929
- I.page.x += B.x, I.page.y += B.y, I.client.x += B.x, I.client.y += B.y;
4930
+ var O = y[w], $ = O[0], V = O[1];
4931
+ $.page.x += V.x, $.page.y += V.y, $.client.x += V.x, $.client.y += V.y;
4930
4932
  }
4931
4933
  var L = this.result.rectDelta, X = t.rect || o.rect;
4932
4934
  X.left += L.left, X.right += L.right, X.top += L.top, X.bottom += L.bottom, X.width = X.right - X.left, X.height = X.bottom - X.top;
@@ -4972,8 +4974,8 @@ function Sc() {
4972
4974
  var o = t.interaction, i = o.coords, c = o.rect, f = o.modification;
4973
4975
  if (f.result) {
4974
4976
  for (var d = f.startDelta, h = f.result, v = h.delta, w = h.rectDelta, y = 0, O = [[i.start, d], [i.cur, v]]; y < O.length; y++) {
4975
- var I = O[y], B = I[0], L = I[1];
4976
- B.page.x -= L.x, B.page.y -= L.y, B.client.x -= L.x, B.client.y -= L.y;
4977
+ var $ = O[y], V = $[0], L = $[1];
4978
+ V.page.x -= L.x, V.page.y -= L.y, V.client.x -= L.x, V.client.y -= L.y;
4977
4979
  }
4978
4980
  c.left -= w.left, c.right -= w.right, c.top -= w.top, c.bottom -= w.bottom;
4979
4981
  }
@@ -5029,12 +5031,12 @@ function Sc() {
5029
5031
  return n.interaction.modification.stop(n);
5030
5032
  } } }, Dr = Ti, Vr = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, Sn = function(n) {
5031
5033
  N(o, n);
5032
- var t = $(o);
5034
+ var t = I(o);
5033
5035
  function o(i, c, f, d, h, v, w) {
5034
5036
  var y;
5035
5037
  u(this, o), (y = t.call(this, i)).relatedTarget = null, y.screenX = void 0, y.screenY = void 0, y.button = void 0, y.buttons = void 0, y.ctrlKey = void 0, y.shiftKey = void 0, y.altKey = void 0, y.metaKey = void 0, y.page = void 0, y.client = void 0, y.delta = void 0, y.rect = void 0, y.x0 = void 0, y.y0 = void 0, y.t0 = void 0, y.dt = void 0, y.duration = void 0, y.clientX0 = void 0, y.clientY0 = void 0, y.velocity = void 0, y.speed = void 0, y.swipe = void 0, y.axes = void 0, y.preEnd = void 0, h = h || i.element;
5036
- var O = i.interactable, I = (O && O.options || Vr).deltaSource, B = He(O, h, f), L = d === "start", X = d === "end", oe = L ? k(y) : i.prevEvent, ee = L ? i.coords.start : X ? { page: oe.page, client: oe.client, timeStamp: i.coords.cur.timeStamp } : i.coords.cur;
5037
- return y.page = q({}, ee.page), y.client = q({}, ee.client), y.rect = q({}, i.rect), y.timeStamp = ee.timeStamp, X || (y.page.x -= B.x, y.page.y -= B.y, y.client.x -= B.x, y.client.y -= B.y), y.ctrlKey = c.ctrlKey, y.altKey = c.altKey, y.shiftKey = c.shiftKey, y.metaKey = c.metaKey, y.button = c.button, y.buttons = c.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = w || f + (d || ""), y.interactable = O, y.t0 = L ? i.pointers[i.pointers.length - 1].downTime : oe.t0, y.x0 = i.coords.start.page.x - B.x, y.y0 = i.coords.start.page.y - B.y, y.clientX0 = i.coords.start.client.x - B.x, y.clientY0 = i.coords.start.client.y - B.y, y.delta = L || X ? { x: 0, y: 0 } : { x: y[I].x - oe[I].x, y: y[I].y - oe[I].y }, y.dt = i.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = q({}, i.coords.velocity[I]), y.speed = pt(y.velocity.x, y.velocity.y), y.swipe = X || d === "inertiastart" ? y.getSwipe() : null, y;
5038
+ var O = i.interactable, $ = (O && O.options || Vr).deltaSource, V = He(O, h, f), L = d === "start", X = d === "end", oe = L ? k(y) : i.prevEvent, ee = L ? i.coords.start : X ? { page: oe.page, client: oe.client, timeStamp: i.coords.cur.timeStamp } : i.coords.cur;
5039
+ return y.page = q({}, ee.page), y.client = q({}, ee.client), y.rect = q({}, i.rect), y.timeStamp = ee.timeStamp, X || (y.page.x -= V.x, y.page.y -= V.y, y.client.x -= V.x, y.client.y -= V.y), y.ctrlKey = c.ctrlKey, y.altKey = c.altKey, y.shiftKey = c.shiftKey, y.metaKey = c.metaKey, y.button = c.button, y.buttons = c.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = w || f + (d || ""), y.interactable = O, y.t0 = L ? i.pointers[i.pointers.length - 1].downTime : oe.t0, y.x0 = i.coords.start.page.x - V.x, y.y0 = i.coords.start.page.y - V.y, y.clientX0 = i.coords.start.client.x - V.x, y.clientY0 = i.coords.start.client.y - V.y, y.delta = L || X ? { x: 0, y: 0 } : { x: y[$].x - oe[$].x, y: y[$].y - oe[$].y }, y.dt = i.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = q({}, i.coords.velocity[$]), y.speed = pt(y.velocity.x, y.velocity.y), y.swipe = X || d === "inertiastart" ? y.getSwipe() : null, y;
5038
5040
  }
5039
5041
  return g(o, [{ key: "getSwipe", value: function() {
5040
5042
  var i = this._interaction;
@@ -5123,7 +5125,7 @@ function Sc() {
5123
5125
  var c, f, d = this.coords.cur.page.x === this.coords.prev.page.x && this.coords.cur.page.y === this.coords.prev.page.y && this.coords.cur.client.x === this.coords.prev.client.x && this.coords.cur.client.y === this.coords.prev.client.y;
5124
5126
  this.pointerIsDown && !this.pointerWasMoved && (c = this.coords.cur.client.x - this.coords.start.client.x, f = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved = pt(c, f) > this.pointerMoveTolerance);
5125
5127
  var h, v, w, y = this.getPointerIndex(t), O = { pointer: t, pointerIndex: y, pointerInfo: this.pointers[y], event: o, type: "move", eventTarget: i, dx: c, dy: f, duplicate: d, interaction: this };
5126
- d || (h = this.coords.velocity, v = this.coords.delta, w = Math.max(v.timeStamp / 1e3, 1e-3), h.page.x = v.page.x / w, h.page.y = v.page.y / w, h.client.x = v.client.x / w, h.client.y = v.client.y / w, h.timeStamp = w), this._scopeFire("interactions:move", O), d || this.simulation || (this.interacting() && (O.type = null, this.move(O)), this.pointerWasMoved && It(this.coords.prev, this.coords.cur));
5128
+ d || (h = this.coords.velocity, v = this.coords.delta, w = Math.max(v.timeStamp / 1e3, 1e-3), h.page.x = v.page.x / w, h.page.y = v.page.y / w, h.client.x = v.client.x / w, h.client.y = v.client.y / w, h.timeStamp = w), this._scopeFire("interactions:move", O), d || this.simulation || (this.interacting() && (O.type = null, this.move(O)), this.pointerWasMoved && $t(this.coords.prev, this.coords.cur));
5127
5129
  } }, { key: "move", value: function(t) {
5128
5130
  t && t.event || yr(this.coords.delta), (t = q({ pointer: this._latestPointer.pointer, event: this._latestPointer.event, eventTarget: this._latestPointer.eventTarget, interaction: this }, t || {})).phase = "move", this._doPhase(t);
5129
5131
  } }, { key: "pointerUp", value: function(t, o, i, c) {
@@ -5153,7 +5155,7 @@ function Sc() {
5153
5155
  var f, d, h, v = ht(t), w = this.getPointerIndex(t), y = this.pointers[w];
5154
5156
  return c = c !== !1 && (c || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new _i(v, t, o, null, null), w = this.pointers.length, this.pointers.push(y)), si(this.coords.cur, this.pointers.map(function(O) {
5155
5157
  return O.pointer;
5156
- }), this._now()), f = this.coords.delta, d = this.coords.prev, h = this.coords.cur, f.page.x = h.page.x - d.page.x, f.page.y = h.page.y - d.page.y, f.client.x = h.client.x - d.client.x, f.client.y = h.client.y - d.client.y, f.timeStamp = h.timeStamp - d.timeStamp, c && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = i, $t(this.downPointer, t), this.interacting() || (It(this.coords.start, this.coords.cur), It(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(t, o, i), this._scopeFire("interactions:update-pointer", { pointer: t, event: o, eventTarget: i, down: c, pointerInfo: y, pointerIndex: w, interaction: this }), w;
5158
+ }), this._now()), f = this.coords.delta, d = this.coords.prev, h = this.coords.cur, f.page.x = h.page.x - d.page.x, f.page.y = h.page.y - d.page.y, f.client.x = h.client.x - d.client.x, f.client.y = h.client.y - d.client.y, f.timeStamp = h.timeStamp - d.timeStamp, c && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = i, It(this.downPointer, t), this.interacting() || ($t(this.coords.start, this.coords.cur), $t(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(t, o, i), this._scopeFire("interactions:update-pointer", { pointer: t, event: o, eventTarget: i, down: c, pointerInfo: y, pointerIndex: w, interaction: this }), w;
5157
5159
  } }, { key: "removePointer", value: function(t, o) {
5158
5160
  var i = this.getPointerIndex(t);
5159
5161
  if (i !== -1) {
@@ -5211,7 +5213,7 @@ function Sc() {
5211
5213
  }, "interactions:stop": function(n) {
5212
5214
  var t = n.interaction;
5213
5215
  t.offset.total.x = 0, t.offset.total.y = 0, t.offset.pending.x = 0, t.offset.pending.y = 0;
5214
- } } }, Xr = ji, $i = function() {
5216
+ } } }, Xr = ji, Ii = function() {
5215
5217
  function n(t) {
5216
5218
  u(this, n), this.active = !1, this.isModified = !1, this.smoothEnd = !1, this.allowResume = !1, this.modification = void 0, this.modifierCount = 0, this.modifierArg = void 0, this.startCoords = void 0, this.t0 = 0, this.v0 = 0, this.te = 0, this.targetOffset = void 0, this.modifiedOffset = void 0, this.currentOffset = void 0, this.lambda_v0 = 0, this.one_ve_v0 = 0, this.timeout = void 0, this.interaction = void 0, this.interaction = t;
5217
5219
  }
@@ -5245,9 +5247,9 @@ function Sc() {
5245
5247
  } }, { key: "inertiaTick", value: function() {
5246
5248
  var t, o, i, c, f, d, h, v = this, w = this.interaction, y = Ft(w).resistance, O = (w._now() - this.t0) / 1e3;
5247
5249
  if (O < this.te) {
5248
- var I, B = 1 - (Math.exp(-y * O) - this.lambda_v0) / this.one_ve_v0;
5249
- this.isModified ? (t = 0, o = 0, i = this.targetOffset.x, c = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, I = { x: Ur(h = B, t, i, f), y: Ur(h, o, c, d) }) : I = { x: this.targetOffset.x * B, y: this.targetOffset.y * B };
5250
- var L = { x: I.x - this.currentOffset.x, y: I.y - this.currentOffset.y };
5250
+ var $, V = 1 - (Math.exp(-y * O) - this.lambda_v0) / this.one_ve_v0;
5251
+ this.isModified ? (t = 0, o = 0, i = this.targetOffset.x, c = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, $ = { x: Ur(h = V, t, i, f), y: Ur(h, o, c, d) }) : $ = { x: this.targetOffset.x * V, y: this.targetOffset.y * V };
5252
+ var L = { x: $.x - this.currentOffset.x, y: $.y - this.currentOffset.y };
5251
5253
  this.currentOffset.x += L.x, this.currentOffset.y += L.y, w.offsetBy(L), w.move(), this.onNextFrame(function() {
5252
5254
  return v.inertiaTick();
5253
5255
  });
@@ -5262,7 +5264,7 @@ function Sc() {
5262
5264
  } else o.offsetBy({ x: this.targetOffset.x - this.currentOffset.x, y: this.targetOffset.y - this.currentOffset.y }), this.end();
5263
5265
  } }, { key: "resume", value: function(t) {
5264
5266
  var o = t.pointer, i = t.event, c = t.eventTarget, f = this.interaction;
5265
- f.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), f.updatePointer(o, i, c, !0), f._doPhase({ interaction: f, event: i, phase: "resume" }), It(f.coords.prev, f.coords.cur), this.stop();
5267
+ f.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), f.updatePointer(o, i, c, !0), f._doPhase({ interaction: f, event: i, phase: "resume" }), $t(f.coords.prev, f.coords.cur), this.stop();
5266
5268
  } }, { key: "end", value: function() {
5267
5269
  this.interaction.move(), this.interaction.end(), this.stop();
5268
5270
  } }, { key: "stop", value: function() {
@@ -5273,12 +5275,12 @@ function Sc() {
5273
5275
  var t = n.interactable, o = n.prepared;
5274
5276
  return t && t.options && o.name && t.options[o.name].inertia;
5275
5277
  }
5276
- var Ii = { id: "inertia", before: ["modifiers", "actions"], install: function(n) {
5278
+ var $i = { id: "inertia", before: ["modifiers", "actions"], install: function(n) {
5277
5279
  var t = n.defaults;
5278
5280
  n.usePlugin(Xr), n.usePlugin(Dr), n.actions.phases.inertiastart = !0, n.actions.phases.resume = !0, t.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
5279
5281
  }, listeners: { "interactions:new": function(n) {
5280
5282
  var t = n.interaction;
5281
- t.inertia = new $i(t);
5283
+ t.inertia = new Ii(t);
5282
5284
  }, "interactions:before-action-end": function(n) {
5283
5285
  var t = n.interaction, o = n.event;
5284
5286
  return (!t._interacting || t.simulation || !t.inertia.start(o)) && null;
@@ -5289,7 +5291,7 @@ function Sc() {
5289
5291
  i.resume(n);
5290
5292
  break;
5291
5293
  }
5292
- c = D(c);
5294
+ c = F(c);
5293
5295
  }
5294
5296
  }, "interactions:stop": function(n) {
5295
5297
  var t = n.interaction.inertia;
@@ -5311,7 +5313,7 @@ function Sc() {
5311
5313
  function qr(n, t, o, i) {
5312
5314
  return -o * (n /= i) * (n - 2) + t;
5313
5315
  }
5314
- var Ai = Ii;
5316
+ var Ai = $i;
5315
5317
  function Gr(n, t) {
5316
5318
  for (var o = 0; o < t.length; o++) {
5317
5319
  var i = t[o];
@@ -5343,7 +5345,7 @@ function Sc() {
5343
5345
  } }]), n;
5344
5346
  }(), Mi = function() {
5345
5347
  function n(t) {
5346
- u(this, n), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = t, $t(this, t);
5348
+ u(this, n), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = t, It(this, t);
5347
5349
  }
5348
5350
  return g(n, [{ key: "preventOriginalDefault", value: function() {
5349
5351
  this.originalEvent.preventDefault();
@@ -5360,29 +5362,29 @@ function Sc() {
5360
5362
  return n === t || (typeof n == "boolean" ? !!t.capture === n && !t.passive : !!n.capture == !!t.capture && !!n.passive == !!t.passive);
5361
5363
  }
5362
5364
  var Ri = { id: "events", install: function(n) {
5363
- var t, o = [], i = {}, c = [], f = { add: d, remove: h, addDelegate: function(y, O, I, B, L) {
5365
+ var t, o = [], i = {}, c = [], f = { add: d, remove: h, addDelegate: function(y, O, $, V, L) {
5364
5366
  var X = xt(L);
5365
- if (!i[I]) {
5366
- i[I] = [];
5367
+ if (!i[$]) {
5368
+ i[$] = [];
5367
5369
  for (var oe = 0; oe < c.length; oe++) {
5368
5370
  var ee = c[oe];
5369
- d(ee, I, v), d(ee, I, w, !0);
5371
+ d(ee, $, v), d(ee, $, w, !0);
5370
5372
  }
5371
5373
  }
5372
- var ae = i[I], ve = mt(ae, function(we) {
5374
+ var ae = i[$], ve = mt(ae, function(we) {
5373
5375
  return we.selector === y && we.context === O;
5374
5376
  });
5375
- ve || (ve = { selector: y, context: O, listeners: [] }, ae.push(ve)), ve.listeners.push({ func: B, options: X });
5376
- }, removeDelegate: function(y, O, I, B, L) {
5377
- var X, oe = xt(L), ee = i[I], ae = !1;
5377
+ ve || (ve = { selector: y, context: O, listeners: [] }, ae.push(ve)), ve.listeners.push({ func: V, options: X });
5378
+ }, removeDelegate: function(y, O, $, V, L) {
5379
+ var X, oe = xt(L), ee = i[$], ae = !1;
5378
5380
  if (ee)
5379
5381
  for (X = ee.length - 1; X >= 0; X--) {
5380
5382
  var ve = ee[X];
5381
5383
  if (ve.selector === y && ve.context === O) {
5382
5384
  for (var we = ve.listeners, ue = we.length - 1; ue >= 0; ue--) {
5383
5385
  var ye = we[ue];
5384
- if (ye.func === B && Dt(ye.options, oe)) {
5385
- we.splice(ue, 1), we.length || (ee.splice(X, 1), h(O, I, v), h(O, I, w, !0)), ae = !0;
5386
+ if (ye.func === V && Dt(ye.options, oe)) {
5387
+ we.splice(ue, 1), we.length || (ee.splice(X, 1), h(O, $, v), h(O, $, w, !0)), ae = !0;
5386
5388
  break;
5387
5389
  }
5388
5390
  }
@@ -5390,35 +5392,35 @@ function Sc() {
5390
5392
  }
5391
5393
  }
5392
5394
  }, delegateListener: v, delegateUseCapture: w, delegatedEvents: i, documents: c, targets: o, supportsOptions: !1, supportsPassive: !1 };
5393
- function d(y, O, I, B) {
5395
+ function d(y, O, $, V) {
5394
5396
  if (y.addEventListener) {
5395
- var L = xt(B), X = mt(o, function(oe) {
5397
+ var L = xt(V), X = mt(o, function(oe) {
5396
5398
  return oe.eventTarget === y;
5397
5399
  });
5398
5400
  X || (X = { eventTarget: y, events: {} }, o.push(X)), X.events[O] || (X.events[O] = []), mt(X.events[O], function(oe) {
5399
- return oe.func === I && Dt(oe.options, L);
5400
- }) || (y.addEventListener(O, I, f.supportsOptions ? L : L.capture), X.events[O].push({ func: I, options: L }));
5401
+ return oe.func === $ && Dt(oe.options, L);
5402
+ }) || (y.addEventListener(O, $, f.supportsOptions ? L : L.capture), X.events[O].push({ func: $, options: L }));
5401
5403
  }
5402
5404
  }
5403
- function h(y, O, I, B) {
5405
+ function h(y, O, $, V) {
5404
5406
  if (y.addEventListener && y.removeEventListener) {
5405
- var L = gt(o, function(Ie) {
5406
- return Ie.eventTarget === y;
5407
+ var L = gt(o, function($e) {
5408
+ return $e.eventTarget === y;
5407
5409
  }), X = o[L];
5408
5410
  if (X && X.events) if (O !== "all") {
5409
5411
  var oe = !1, ee = X.events[O];
5410
5412
  if (ee) {
5411
- if (I === "all") {
5413
+ if ($ === "all") {
5412
5414
  for (var ae = ee.length - 1; ae >= 0; ae--) {
5413
5415
  var ve = ee[ae];
5414
5416
  h(y, O, ve.func, ve.options);
5415
5417
  }
5416
5418
  return;
5417
5419
  }
5418
- for (var we = xt(B), ue = 0; ue < ee.length; ue++) {
5420
+ for (var we = xt(V), ue = 0; ue < ee.length; ue++) {
5419
5421
  var ye = ee[ue];
5420
- if (ye.func === I && Dt(ye.options, we)) {
5421
- y.removeEventListener(O, I, f.supportsOptions ? we : we.capture), ee.splice(ue, 1), ee.length === 0 && (delete X.events[O], oe = !0);
5422
+ if (ye.func === $ && Dt(ye.options, we)) {
5423
+ y.removeEventListener(O, $, f.supportsOptions ? we : we.capture), ee.splice(ue, 1), ee.length === 0 && (delete X.events[O], oe = !0);
5422
5424
  break;
5423
5425
  }
5424
5426
  }
@@ -5428,19 +5430,19 @@ function Sc() {
5428
5430
  }
5429
5431
  }
5430
5432
  function v(y, O) {
5431
- for (var I = xt(O), B = new Mi(y), L = i[y.type], X = Nr(y)[0], oe = X; E.element(oe); ) {
5433
+ for (var $ = xt(O), V = new Mi(y), L = i[y.type], X = Nr(y)[0], oe = X; E.element(oe); ) {
5432
5434
  for (var ee = 0; ee < L.length; ee++) {
5433
5435
  var ae = L[ee], ve = ae.selector, we = ae.context;
5434
5436
  if (T(oe, ve) && Z(we, X) && Z(we, oe)) {
5435
5437
  var ue = ae.listeners;
5436
- B.currentTarget = oe;
5438
+ V.currentTarget = oe;
5437
5439
  for (var ye = 0; ye < ue.length; ye++) {
5438
- var Ie = ue[ye];
5439
- Dt(Ie.options, I) && Ie.func(B);
5440
+ var $e = ue[ye];
5441
+ Dt($e.options, $) && $e.func(V);
5440
5442
  }
5441
5443
  }
5442
5444
  }
5443
- oe = D(oe);
5445
+ oe = F(oe);
5444
5446
  }
5445
5447
  }
5446
5448
  function w(y) {
@@ -5464,7 +5466,7 @@ function Sc() {
5464
5466
  var h = d[f], v = i;
5465
5467
  if (h.simulation && h.simulation.allowResume && h.pointerType === t) for (; v; ) {
5466
5468
  if (v === h.element) return h;
5467
- v = D(v);
5469
+ v = F(v);
5468
5470
  }
5469
5471
  }
5470
5472
  return null;
@@ -5514,8 +5516,8 @@ function Sc() {
5514
5516
  if (/^touch/.test(o.type)) {
5515
5517
  t.prevTouchTime = t.now();
5516
5518
  for (var w = 0, y = o.changedTouches; w < y.length; w++) {
5517
- var O = y[w], I = { pointer: O, pointerId: ht(O), pointerType: c, eventType: o.type, eventTarget: d, curEventTarget: h, scope: t }, B = Zr(I);
5518
- v.push([I.pointer, I.eventTarget, I.curEventTarget, B]);
5519
+ var O = y[w], $ = { pointer: O, pointerId: ht(O), pointerType: c, eventType: o.type, eventTarget: d, curEventTarget: h, scope: t }, V = Zr($);
5520
+ v.push([$.pointer, $.eventTarget, $.curEventTarget, V]);
5519
5521
  }
5520
5522
  } else {
5521
5523
  var L = !1;
@@ -5556,11 +5558,11 @@ function Sc() {
5556
5558
  for (var h = 0, v = n.interactions.list; h < v.length; h++) {
5557
5559
  var w = v[h];
5558
5560
  if (w.pointerIsDown && w.pointerType === "touch" && !w._interacting) for (var y = function() {
5559
- var B = I[O];
5561
+ var V = $[O];
5560
5562
  n.documents.some(function(L) {
5561
- return Z(L.doc, B.downTarget);
5562
- }) || w.removePointer(B.pointer, B.event);
5563
- }, O = 0, I = w.pointers; O < I.length; O++) y();
5563
+ return Z(L.doc, V.downTarget);
5564
+ }) || w.removePointer(V.pointer, V.event);
5565
+ }, O = 0, $ = w.pointers; O < $.length; O++) y();
5564
5566
  }
5565
5567
  }
5566
5568
  (c = z.PointerEvent ? [{ type: f.down, listener: d }, { type: f.down, listener: t.pointerDown }, { type: f.move, listener: t.pointerMove }, { type: f.up, listener: t.pointerUp }, { type: f.cancel, listener: t.pointerUp }] : [{ type: "mousedown", listener: t.pointerDown }, { type: "mousemove", listener: t.pointerMove }, { type: "mouseup", listener: t.pointerUp }, { type: "touchstart", listener: d }, { type: "touchstart", listener: t.pointerDown }, { type: "touchmove", listener: t.pointerMove }, { type: "touchend", listener: t.pointerUp }, { type: "touchcancel", listener: t.pointerUp }]).push({ type: "blur", listener: function(h) {
@@ -5568,7 +5570,7 @@ function Sc() {
5568
5570
  w[v].documentBlur(h);
5569
5571
  } }), n.prevTouchTime = 0, n.Interaction = function(h) {
5570
5572
  N(w, h);
5571
- var v = $(w);
5573
+ var v = I(w);
5572
5574
  function w() {
5573
5575
  return u(this, w), v.apply(this, arguments);
5574
5576
  }
@@ -5742,8 +5744,8 @@ function Sc() {
5742
5744
  for (var O in f) this.off(O, f[O], d);
5743
5745
  return this;
5744
5746
  }
5745
- var I;
5746
- return zt(f, this.scope.actions) ? f in this.globalEvents && (I = this.globalEvents[f].indexOf(d)) !== -1 && this.globalEvents[f].splice(I, 1) : this.scope.events.remove(this.scope.document, f, d, h), this;
5747
+ var $;
5748
+ return zt(f, this.scope.actions) ? f in this.globalEvents && ($ = this.globalEvents[f].indexOf(d)) !== -1 && this.globalEvents[f].splice($, 1) : this.scope.events.remove(this.scope.document, f, d, h), this;
5747
5749
  }, "The interact.off() method is being deprecated"), c.debug = function() {
5748
5750
  return this.scope;
5749
5751
  }, c.supportsTouch = function() {
@@ -5766,7 +5768,7 @@ function Sc() {
5766
5768
  var o = this;
5767
5769
  this.Interactable = function(i) {
5768
5770
  N(f, i);
5769
- var c = $(f);
5771
+ var c = I(f);
5770
5772
  function f() {
5771
5773
  return u(this, f), c.apply(this, arguments);
5772
5774
  }
@@ -5790,7 +5792,7 @@ function Sc() {
5790
5792
  }
5791
5793
  } }, { key: "init", value: function(t) {
5792
5794
  return this.isInitialized ? this : function(o, i) {
5793
- return o.isInitialized = !0, E.window(i) && F(i), z.init(i), Q.init(i), Ke.init(i), o.window = i, o.document = i.document, o.usePlugin(Fi), o.usePlugin(Ri), o;
5795
+ return o.isInitialized = !0, E.window(i) && B(i), z.init(i), Q.init(i), Ke.init(i), o.window = i, o.document = i.document, o.usePlugin(Fi), o.usePlugin(Ri), o;
5794
5796
  }(this, t);
5795
5797
  } }, { key: "pluginIsInstalled", value: function(t) {
5796
5798
  var o = t.id;
@@ -5828,7 +5830,7 @@ function Sc() {
5828
5830
  function Qr(n) {
5829
5831
  return n && n.replace(/\/.*$/, "");
5830
5832
  }
5831
- var eo = new Bi(), $e = eo.interactStatic, Hi = typeof globalThis < "u" ? globalThis : window;
5833
+ var eo = new Bi(), Ie = eo.interactStatic, Hi = typeof globalThis < "u" ? globalThis : window;
5832
5834
  eo.init(Hi);
5833
5835
  var Yi = Object.freeze({ __proto__: null, edgeTarget: function() {
5834
5836
  }, elements: function() {
@@ -5838,8 +5840,8 @@ function Sc() {
5838
5840
  return c in n || f in n;
5839
5841
  }), o = function(i, c) {
5840
5842
  for (var f = n.range, d = n.limits, h = d === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : d, v = n.offset, w = v === void 0 ? { x: 0, y: 0 } : v, y = { range: f, grid: n, x: null, y: null }, O = 0; O < t.length; O++) {
5841
- var I = t[O], B = I[0], L = I[1], X = Math.round((i - w.x) / n[B]), oe = Math.round((c - w.y) / n[L]);
5842
- y[B] = Math.max(h.left, Math.min(h.right, X * n[B] + w.x)), y[L] = Math.max(h.top, Math.min(h.bottom, oe * n[L] + w.y));
5843
+ var $ = t[O], V = $[0], L = $[1], X = Math.round((i - w.x) / n[V]), oe = Math.round((c - w.y) / n[L]);
5844
+ y[V] = Math.max(h.left, Math.min(h.right, X * n[V] + w.x)), y[L] = Math.max(h.top, Math.min(h.bottom, oe * n[L] + w.y));
5843
5845
  }
5844
5846
  return y;
5845
5847
  };
@@ -5852,12 +5854,12 @@ function Sc() {
5852
5854
  d === "preserve" && (d = o.width / o.height), t.startCoords = q({}, c), t.startRect = q({}, o), t.ratio = d, t.equalDelta = w;
5853
5855
  var O = t.linkedEdges = { top: i.top || i.left && !i.bottom, left: i.left || i.top && !i.right, bottom: i.bottom || i.right && !i.top, right: i.right || i.bottom && !i.left };
5854
5856
  if (t.xIsPrimaryAxis = !(!i.left && !i.right), t.equalDelta) {
5855
- var I = (O.left ? 1 : -1) * (O.top ? 1 : -1);
5856
- t.edgeSign = { x: I, y: I };
5857
+ var $ = (O.left ? 1 : -1) * (O.top ? 1 : -1);
5858
+ t.edgeSign = { x: $, y: $ };
5857
5859
  } else t.edgeSign = { x: O.left ? -1 : 1, y: O.top ? -1 : 1 };
5858
5860
  if (h !== !1 && q(i, O), y != null && y.length) {
5859
- var B = new Nn(n.interaction);
5860
- B.copyFrom(n.interaction.modification), B.prepareStates(y), t.subModification = B, B.startAll(a({}, n));
5861
+ var V = new Nn(n.interaction);
5862
+ V.copyFrom(n.interaction.modification), V.prepareStates(y), t.subModification = V, V.startAll(a({}, n));
5861
5863
  }
5862
5864
  }, set: function(n) {
5863
5865
  var t = n.state, o = n.rect, i = n.coords, c = t.linkedEdges, f = q({}, i), d = t.equalDelta ? Gi : Wi;
@@ -5936,8 +5938,8 @@ function Sc() {
5936
5938
  o.options = { endOnly: f.endOnly, inner: q({}, bt.noInner), outer: q({}, bt.noOuter) }, c.top ? (o.options.inner.top = i.bottom - d.height, o.options.outer.top = i.bottom - h.height) : c.bottom && (o.options.inner.bottom = i.top + d.height, o.options.outer.bottom = i.top + h.height), c.left ? (o.options.inner.left = i.right - d.width, o.options.outer.left = i.right - h.width) : c.right && (o.options.inner.right = i.left + d.width, o.options.outer.right = i.left + h.width), bt.set(n), o.options = f;
5937
5939
  }
5938
5940
  }, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), kn = { start: function(n) {
5939
- var t, o = n.interaction, i = n.interactable, c = n.element, f = n.rect, d = n.state, h = n.startOffset, v = d.options, w = v.offsetWithOrigin ? function(I) {
5940
- var B = I.interaction.element, L = ke(je(I.state.options.origin, null, null, [B])), X = L || He(I.interactable, B, I.interaction.prepared.name);
5941
+ var t, o = n.interaction, i = n.interactable, c = n.element, f = n.rect, d = n.state, h = n.startOffset, v = d.options, w = v.offsetWithOrigin ? function($) {
5942
+ var V = $.interaction.element, L = ke(je($.state.options.origin, null, null, [V])), X = L || He($.interactable, V, $.interaction.prepared.name);
5941
5943
  return X;
5942
5944
  }(n) : { x: 0, y: 0 };
5943
5945
  if (v.offset === "startCoords") t = { x: o.coords.start.page.x, y: o.coords.start.page.y };
@@ -5946,19 +5948,19 @@ function Sc() {
5946
5948
  (t = ke(y) || { x: 0, y: 0 }).x += w.x, t.y += w.y;
5947
5949
  }
5948
5950
  var O = v.relativePoints;
5949
- d.offsets = f && O && O.length ? O.map(function(I, B) {
5950
- return { index: B, relativePoint: I, x: h.left - f.width * I.x + t.x, y: h.top - f.height * I.y + t.y };
5951
+ d.offsets = f && O && O.length ? O.map(function($, V) {
5952
+ return { index: V, relativePoint: $, x: h.left - f.width * $.x + t.x, y: h.top - f.height * $.y + t.y };
5951
5953
  }) : [{ index: 0, relativePoint: null, x: t.x, y: t.y }];
5952
5954
  }, set: function(n) {
5953
5955
  var t = n.interaction, o = n.coords, i = n.state, c = i.options, f = i.offsets, d = He(t.interactable, t.element, t.prepared.name), h = q({}, o), v = [];
5954
5956
  c.offsetWithOrigin || (h.x -= d.x, h.y -= d.y);
5955
- for (var w = 0, y = f; w < y.length; w++) for (var O = y[w], I = h.x - O.x, B = h.y - O.y, L = 0, X = c.targets.length; L < X; L++) {
5957
+ for (var w = 0, y = f; w < y.length; w++) for (var O = y[w], $ = h.x - O.x, V = h.y - O.y, L = 0, X = c.targets.length; L < X; L++) {
5956
5958
  var oe = c.targets[L], ee = void 0;
5957
- (ee = E.func(oe) ? oe(I, B, t._proxy, O, L) : oe) && v.push({ x: (E.number(ee.x) ? ee.x : I) + O.x, y: (E.number(ee.y) ? ee.y : B) + O.y, range: E.number(ee.range) ? ee.range : c.range, source: oe, index: L, offset: O });
5959
+ (ee = E.func(oe) ? oe($, V, t._proxy, O, L) : oe) && v.push({ x: (E.number(ee.x) ? ee.x : $) + O.x, y: (E.number(ee.y) ? ee.y : V) + O.y, range: E.number(ee.range) ? ee.range : c.range, source: oe, index: L, offset: O });
5958
5960
  }
5959
5961
  for (var ae = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, ve = 0; ve < v.length; ve++) {
5960
- var we = v[ve], ue = we.range, ye = we.x - h.x, Ie = we.y - h.y, Pe = pt(ye, Ie), Le = Pe <= ue;
5961
- ue === 1 / 0 && ae.inRange && ae.range !== 1 / 0 && (Le = !1), ae.target && !(Le ? ae.inRange && ue !== 1 / 0 ? Pe / ue < ae.distance / ae.range : ue === 1 / 0 && ae.range !== 1 / 0 || Pe < ae.distance : !ae.inRange && Pe < ae.distance) || (ae.target = we, ae.distance = Pe, ae.range = ue, ae.inRange = Le, ae.delta.x = ye, ae.delta.y = Ie);
5962
+ var we = v[ve], ue = we.range, ye = we.x - h.x, $e = we.y - h.y, Pe = pt(ye, $e), Le = Pe <= ue;
5963
+ ue === 1 / 0 && ae.inRange && ae.range !== 1 / 0 && (Le = !1), ae.target && !(Le ? ae.inRange && ue !== 1 / 0 ? Pe / ue < ae.distance / ae.range : ue === 1 / 0 && ae.range !== 1 / 0 || Pe < ae.distance : !ae.inRange && Pe < ae.distance) || (ae.target = we, ae.distance = Pe, ae.range = ue, ae.inRange = Le, ae.delta.x = ye, ae.delta.y = $e);
5962
5964
  }
5963
5965
  return ae.inRange && (o.x = ae.target.x, o.y = ae.target.y), i.closest = ae, ae;
5964
5966
  }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, os = Je(kn, "snap"), Ht = { start: function(n) {
@@ -5971,8 +5973,8 @@ function Sc() {
5971
5973
  for (var h = 0, v = c.targets || []; h < v.length; h++) {
5972
5974
  var w = v[h], y = void 0;
5973
5975
  if (y = E.func(w) ? w(d.x, d.y, t) : w) {
5974
- for (var O = 0, I = o.targetFields; O < I.length; O++) {
5975
- var B = I[O], L = B[0], X = B[1];
5976
+ for (var O = 0, $ = o.targetFields; O < $.length; O++) {
5977
+ var V = $[O], L = V[0], X = V[1];
5976
5978
  if (L in y || X in y) {
5977
5979
  y.x = y[L], y.y = y[X];
5978
5980
  break;
@@ -5994,10 +5996,10 @@ function Sc() {
5994
5996
  }
5995
5997
  } }, as = ss, io = function(n) {
5996
5998
  N(o, n);
5997
- var t = $(o);
5999
+ var t = I(o);
5998
6000
  function o(i, c, f, d, h, v) {
5999
6001
  var w;
6000
- if (u(this, o), $t(k(w = t.call(this, h)), f), f !== c && $t(k(w), c), w.timeStamp = v, w.originalEvent = f, w.type = i, w.pointerId = ht(c), w.pointerType = Er(c), w.target = d, w.currentTarget = null, i === "tap") {
6002
+ if (u(this, o), It(k(w = t.call(this, h)), f), f !== c && It(k(w), c), w.timeStamp = v, w.originalEvent = f, w.type = i, w.pointerId = ht(c), w.pointerType = Er(c), w.target = d, w.currentTarget = null, i === "tap") {
6001
6003
  var y = h.getPointerIndex(c);
6002
6004
  w.dt = w.timeStamp - h.pointers[y].downTime;
6003
6005
  var O = w.timeStamp - h.tapTime;
@@ -6027,9 +6029,9 @@ function Sc() {
6027
6029
  n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && jn(n), Qe({ interaction: o, pointer: i, event: c, eventTarget: f, type: "move" }, t));
6028
6030
  }, "interactions:down": function(n, t) {
6029
6031
  (function(o, i) {
6030
- for (var c = o.interaction, f = o.pointer, d = o.event, h = o.eventTarget, v = o.pointerIndex, w = c.pointers[v].hold, y = Te(h), O = { interaction: c, pointer: f, event: d, eventTarget: h, type: "hold", targets: [], path: y, node: null }, I = 0; I < y.length; I++) {
6031
- var B = y[I];
6032
- O.node = B, i.fire("pointerEvents:collect-targets", O);
6032
+ for (var c = o.interaction, f = o.pointer, d = o.event, h = o.eventTarget, v = o.pointerIndex, w = c.pointers[v].hold, y = Te(h), O = { interaction: c, pointer: f, event: d, eventTarget: h, type: "hold", targets: [], path: y, node: null }, $ = 0; $ < y.length; $++) {
6033
+ var V = y[$];
6034
+ O.node = V, i.fire("pointerEvents:collect-targets", O);
6033
6035
  }
6034
6036
  if (O.targets.length) {
6035
6037
  for (var L = 1 / 0, X = 0, oe = O.targets; X < oe.length; X++) {
@@ -6053,10 +6055,10 @@ function Sc() {
6053
6055
  var o = n.interaction, i = n.pointer, c = n.event, f = n.eventTarget, d = n.type, h = n.targets, v = h === void 0 ? so(n, t) : h, w = new io(d, i, c, f, o, t.now());
6054
6056
  t.fire("pointerEvents:new", { pointerEvent: w });
6055
6057
  for (var y = { interaction: o, pointer: i, event: c, eventTarget: f, targets: v, type: d, pointerEvent: w }, O = 0; O < v.length; O++) {
6056
- var I = v[O];
6057
- for (var B in I.props || {}) w[B] = I.props[B];
6058
- var L = He(I.eventable, I.node);
6059
- if (w._subtractOrigin(L), w.eventable = I.eventable, w.currentTarget = I.node, I.eventable.fire(w), w._addOrigin(L), w.immediatePropagationStopped || w.propagationStopped && O + 1 < v.length && v[O + 1].node !== w.currentTarget) break;
6058
+ var $ = v[O];
6059
+ for (var V in $.props || {}) w[V] = $.props[V];
6060
+ var L = He($.eventable, $.node);
6061
+ if (w._subtractOrigin(L), w.eventable = $.eventable, w.currentTarget = $.node, $.eventable.fire(w), w._addOrigin(L), w.immediatePropagationStopped || w.propagationStopped && O + 1 < v.length && v[O + 1].node !== w.currentTarget) break;
6060
6062
  }
6061
6063
  if (t.fire("pointerEvents:fired", y), d === "tap") {
6062
6064
  var X = w.double ? Qe({ interaction: o, pointer: i, event: c, eventTarget: f, type: "doubletap" }, t) : w;
@@ -6068,12 +6070,12 @@ function Sc() {
6068
6070
  var o = n.interaction, i = n.pointer, c = n.event, f = n.eventTarget, d = n.type, h = o.getPointerIndex(i), v = o.pointers[h];
6069
6071
  if (d === "tap" && (o.pointerWasMoved || !v || v.downTarget !== f)) return [];
6070
6072
  for (var w = Te(f), y = { interaction: o, pointer: i, event: c, eventTarget: f, type: d, path: w, targets: [], node: null }, O = 0; O < w.length; O++) {
6071
- var I = w[O];
6072
- y.node = I, t.fire("pointerEvents:collect-targets", y);
6073
+ var $ = w[O];
6074
+ y.node = $, t.fire("pointerEvents:collect-targets", y);
6073
6075
  }
6074
- return d === "hold" && (y.targets = y.targets.filter(function(B) {
6076
+ return d === "hold" && (y.targets = y.targets.filter(function(V) {
6075
6077
  var L, X;
6076
- return B.eventable.options.holdDuration === ((L = o.pointers[h]) == null || (X = L.hold) == null ? void 0 : X.duration);
6078
+ return V.eventable.options.holdDuration === ((L = o.pointers[h]) == null || (X = L.hold) == null ? void 0 : X.duration);
6077
6079
  })), y.targets;
6078
6080
  }
6079
6081
  function jn(n) {
@@ -6133,16 +6135,16 @@ function Sc() {
6133
6135
  n.actions.phases.reflow = !0, t.prototype.reflow = function(o) {
6134
6136
  return function(i, c, f) {
6135
6137
  for (var d = i.getAllElements(), h = f.window.Promise, v = h ? [] : null, w = function() {
6136
- var O = d[y], I = i.getRect(O);
6137
- if (!I) return 1;
6138
- var B, L = mt(f.interactions.list, function(ee) {
6138
+ var O = d[y], $ = i.getRect(O);
6139
+ if (!$) return 1;
6140
+ var V, L = mt(f.interactions.list, function(ee) {
6139
6141
  return ee.interacting() && ee.interactable === i && ee.element === O && ee.prepared.name === c.name;
6140
6142
  });
6141
- if (L) L.move(), v && (B = L._reflowPromise || new h(function(ee) {
6143
+ if (L) L.move(), v && (V = L._reflowPromise || new h(function(ee) {
6142
6144
  L._reflowResolve = ee;
6143
6145
  }));
6144
6146
  else {
6145
- var X = Ve(I), oe = /* @__PURE__ */ function(ee) {
6147
+ var X = Ve($), oe = /* @__PURE__ */ function(ee) {
6146
6148
  return { coords: ee, get page() {
6147
6149
  return this.coords.page;
6148
6150
  }, get client() {
@@ -6170,16 +6172,16 @@ function Sc() {
6170
6172
  }, preventDefault: function() {
6171
6173
  } };
6172
6174
  }({ page: { x: X.x, y: X.y }, client: { x: X.x, y: X.y }, timeStamp: f.now() });
6173
- B = function(ee, ae, ve, we, ue) {
6174
- var ye = ee.interactions.new({ pointerType: "reflow" }), Ie = { interaction: ye, event: ue, pointer: ue, eventTarget: ve, phase: "reflow" };
6175
- ye.interactable = ae, ye.element = ve, ye.prevEvent = ue, ye.updatePointer(ue, ue, ve, !0), yr(ye.coords.delta), xn(ye.prepared, we), ye._doPhase(Ie);
6175
+ V = function(ee, ae, ve, we, ue) {
6176
+ var ye = ee.interactions.new({ pointerType: "reflow" }), $e = { interaction: ye, event: ue, pointer: ue, eventTarget: ve, phase: "reflow" };
6177
+ ye.interactable = ae, ye.element = ve, ye.prevEvent = ue, ye.updatePointer(ue, ue, ve, !0), yr(ye.coords.delta), xn(ye.prepared, we), ye._doPhase($e);
6176
6178
  var Pe = ee.window, Le = Pe.Promise, De = Le ? new Le(function(qe) {
6177
6179
  ye._reflowResolve = qe;
6178
6180
  }) : void 0;
6179
- return ye._reflowPromise = De, ye.start(we, ae, ve), ye._interacting ? (ye.move(Ie), ye.end(ue)) : (ye.stop(), ye._reflowResolve()), ye.removePointer(ue, ue), De;
6181
+ return ye._reflowPromise = De, ye.start(we, ae, ve), ye._interacting ? (ye.move($e), ye.end(ue)) : (ye.stop(), ye._reflowResolve()), ye.removePointer(ue, ue), De;
6180
6182
  }(f, i, O, c, oe);
6181
6183
  }
6182
- v && v.push(B);
6184
+ v && v.push(V);
6183
6185
  }, y = 0; y < d.length && !w(); y++) ;
6184
6186
  return v && h.all(v).then(function() {
6185
6187
  return i;
@@ -6192,11 +6194,11 @@ function Sc() {
6192
6194
  i.splice(i.indexOf(c), 1);
6193
6195
  }(t.interactions.list, o));
6194
6196
  } } }, vs = ms;
6195
- if ($e.use(Fr), $e.use(Xr), $e.use(gs), $e.use(Ai), $e.use(as), $e.use(Ei), $e.use(fi), $e.use(pi), $e.use(vs), $e.default = $e, l(e) === "object" && e) try {
6196
- e.exports = $e;
6197
+ if (Ie.use(Fr), Ie.use(Xr), Ie.use(gs), Ie.use(Ai), Ie.use(as), Ie.use(Ei), Ie.use(fi), Ie.use(pi), Ie.use(vs), Ie.default = Ie, l(e) === "object" && e) try {
6198
+ e.exports = Ie;
6197
6199
  } catch {
6198
6200
  }
6199
- return $e.default = $e, $e;
6201
+ return Ie.default = Ie, Ie;
6200
6202
  });
6201
6203
  }(Wt)), Wt.exports;
6202
6204
  }
@@ -6224,12 +6226,12 @@ function Oc(e, {
6224
6226
  const k = de.make(P);
6225
6227
  p.current?.(k);
6226
6228
  },
6227
- onmove: ({ client: P, clientX0: k, clientY0: $, dx: M, dy: b }) => {
6228
- const j = de.make(k, $), K = de.make(P), W = de.make(M, b);
6229
+ onmove: ({ client: P, clientX0: k, clientY0: I, dx: M, dy: b }) => {
6230
+ const j = de.make(k, I), K = de.make(P), W = de.make(M, b);
6229
6231
  g.current?.(W, K, j);
6230
6232
  },
6231
- onend: ({ client: P, clientX0: k, clientY0: $ }) => {
6232
- const M = de.make(k, $), b = de.make(P);
6233
+ onend: ({ client: P, clientX0: k, clientY0: I }) => {
6234
+ const M = de.make(k, I), b = de.make(P);
6233
6235
  m.current?.(b, M);
6234
6236
  }
6235
6237
  });
@@ -6246,14 +6248,14 @@ function Ct(e, {
6246
6248
  onDragEnd: u,
6247
6249
  ...p
6248
6250
  }) {
6249
- const g = Ee(r), [m, N] = Se(!1), [_, P] = Se(!1), [k, $] = Se(r), M = _e(a), b = _e(l), j = _e(u), K = _e(s);
6251
+ const g = Ee(r), [m, N] = Se(!1), [_, P] = Se(!1), [k, I] = Se(r), M = _e(a), b = _e(l), j = _e(u), K = _e(s);
6250
6252
  return Oc(e, {
6251
6253
  onDragStart: (S) => {
6252
6254
  N(!0), P(!1), M.current?.(S);
6253
6255
  },
6254
6256
  onDragMove: (S, C, E) => {
6255
6257
  const R = K.current(g.current, S.x, S.y);
6256
- No(g, R) && $(R), N(!0), P(!1), b.current?.(S, C, E);
6258
+ No(g, R) && I(R), N(!0), P(!1), b.current?.(S, C, E);
6257
6259
  },
6258
6260
  onDragEnd: (S, C) => {
6259
6261
  N(!1), P(!0), j.current?.(S, C);
@@ -6265,7 +6267,7 @@ function Ct(e, {
6265
6267
  isDragging: m,
6266
6268
  isReleasing: _,
6267
6269
  value: k,
6268
- setValue: $
6270
+ setValue: I
6269
6271
  };
6270
6272
  }
6271
6273
  function No(e, r) {
@@ -6285,12 +6287,12 @@ const Qo = /* @__PURE__ */ Oe(({
6285
6287
  onLoadImageError: _,
6286
6288
  onImageSizeChange: P,
6287
6289
  ...k
6288
- }, $) => {
6290
+ }, I) => {
6289
6291
  const M = me((R, U, G) => R - U * r, [r]), b = Ee(null), j = nt(b), K = Lo({ src: s }, {
6290
6292
  onLoadStart: m,
6291
6293
  onLoadComplete: N,
6292
6294
  onLoadError: _
6293
- }), [W, F] = Se(e), { isDragging: Y, value: S, setValue: C } = Ct(b, {
6295
+ }), [W, B] = Se(e), { isDragging: Y, value: S, setValue: C } = Ct(b, {
6294
6296
  initialValue: 0,
6295
6297
  transform: M,
6296
6298
  onDragStart: p,
@@ -6299,11 +6301,11 @@ const Qo = /* @__PURE__ */ Oe(({
6299
6301
  be(() => {
6300
6302
  if (Y || !K) return;
6301
6303
  const R = kc(e, K, ge.size(j), a);
6302
- R !== S && C(R), e !== W && F(e);
6304
+ R !== S && C(R), e !== W && B(e);
6303
6305
  }, [e, K, j.width, j.height, a]), be(() => {
6304
6306
  if (!Y || !K) return;
6305
6307
  const R = Cc(S, K, ge.size(j), a);
6306
- W !== R && F(R);
6308
+ W !== R && B(R);
6307
6309
  }, [S, K, j.width, j.height, a]), be(() => {
6308
6310
  l?.(W, Y), u?.(W / 360, Y);
6309
6311
  }, [W]), be(() => {
@@ -6314,7 +6316,7 @@ const Qo = /* @__PURE__ */ Oe(({
6314
6316
  "div",
6315
6317
  {
6316
6318
  ...k,
6317
- ref: $,
6319
+ ref: I,
6318
6320
  "aria-valuenow": W,
6319
6321
  role: "slider",
6320
6322
  children: /* @__PURE__ */ x.jsx("div", { ref: b, style: E.body })
@@ -6365,17 +6367,17 @@ const jc = /* @__PURE__ */ Oe(({
6365
6367
  onAngleChange: _,
6366
6368
  onDragEnd: P,
6367
6369
  onDragStart: k,
6368
- onLoadImageComplete: $,
6370
+ onLoadImageComplete: I,
6369
6371
  onLoadImageError: M,
6370
6372
  onLoadImageStart: b,
6371
6373
  onImageSizeChange: j,
6372
6374
  onPositionChange: K,
6373
6375
  ...W
6374
- }, F) => {
6376
+ }, B) => {
6375
6377
  const Y = Ee(null), S = nt(Y), [C, E] = Se(), [R, U] = Se(!1), te = me(() => {
6376
6378
  if (!C) return 0;
6377
- const { width: T, height: V } = C;
6378
- return V === 0 ? 0 : T / V;
6379
+ const { width: T, height: D } = C;
6380
+ return D === 0 ? 0 : T / D;
6379
6381
  }, [C?.width, C?.height])(), H = me(() => {
6380
6382
  const T = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * te) * 360 : 0)));
6381
6383
  return S.width * (T / 360);
@@ -6387,14 +6389,14 @@ const jc = /* @__PURE__ */ Oe(({
6387
6389
  track: Kt,
6388
6390
  reticle: Qn,
6389
6391
  indicator: Zn
6390
- }), D = $c({ autoDimension: a, panoramaRect: S, aspectRatio: te, reticleWidth: H });
6392
+ }), F = Ic({ autoDimension: a, panoramaRect: S, aspectRatio: te, reticleWidth: H });
6391
6393
  return /* @__PURE__ */ x.jsxs(
6392
6394
  "div",
6393
6395
  {
6394
6396
  ...W,
6395
- ref: F,
6397
+ ref: B,
6396
6398
  className: ie(e, { dragging: R }),
6397
- style: ce(r, D.root),
6399
+ style: ce(r, F.root),
6398
6400
  children: [
6399
6401
  /* @__PURE__ */ x.jsx(
6400
6402
  Qo,
@@ -6403,29 +6405,29 @@ const jc = /* @__PURE__ */ Oe(({
6403
6405
  angle: s,
6404
6406
  speed: p,
6405
6407
  src: g,
6406
- style: D.panorama,
6408
+ style: F.panorama,
6407
6409
  zeroAnchor: A,
6408
6410
  onAngleChange: _,
6409
6411
  onDragEnd: Z,
6410
6412
  onDragStart: Q,
6411
6413
  onImageSizeChange: E,
6412
- onLoadImageComplete: $,
6414
+ onLoadImageComplete: I,
6413
6415
  onLoadImageError: M,
6414
6416
  onLoadImageStart: b,
6415
6417
  onPositionChange: K
6416
6418
  }
6417
6419
  ),
6418
- /* @__PURE__ */ x.jsx("div", { style: D.body, children: /* @__PURE__ */ x.jsxs("div", { style: D.controls, children: [
6419
- /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.track ?? /* @__PURE__ */ x.jsx(Kt, {}), style: D.track }),
6420
- /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.reticle ?? /* @__PURE__ */ x.jsx(Qn, {}), style: D.reticle }),
6421
- /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.track ?? /* @__PURE__ */ x.jsx(Kt, {}), style: D.track })
6420
+ /* @__PURE__ */ x.jsx("div", { style: F.body, children: /* @__PURE__ */ x.jsxs("div", { style: F.controls, children: [
6421
+ /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.track ?? /* @__PURE__ */ x.jsx(Kt, {}), style: F.track }),
6422
+ /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.reticle ?? /* @__PURE__ */ x.jsx(Qn, {}), style: F.reticle }),
6423
+ /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.track ?? /* @__PURE__ */ x.jsx(Kt, {}), style: F.track })
6422
6424
  ] }) }),
6423
- /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.indicator ?? /* @__PURE__ */ x.jsx(Zn, {}), style: D.indicator })
6425
+ /* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.indicator ?? /* @__PURE__ */ x.jsx(Zn, {}), style: F.indicator })
6424
6426
  ]
6425
6427
  }
6426
6428
  );
6427
6429
  }), Zn = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Qn = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Kt = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e });
6428
- function $c({ autoDimension: e = "width", panoramaRect: r = ge.zero, aspectRatio: s = 0, reticleWidth: a = 0 }) {
6430
+ function Ic({ autoDimension: e = "width", panoramaRect: r = ge.zero, aspectRatio: s = 0, reticleWidth: a = 0 }) {
6429
6431
  return {
6430
6432
  root: {
6431
6433
  ...e === "width" ? {
@@ -6470,7 +6472,7 @@ function $c({ autoDimension: e = "width", panoramaRect: r = ge.zero, aspectRatio
6470
6472
  };
6471
6473
  }
6472
6474
  process.env.NODE_ENV !== "production" && (jc.displayName = "PanoramaSlider", Zn.displayName = "PanoramaSliderIndicator", Qn.displayName = "PanoramaSliderReticle", Kt.displayName = "PanoramaSliderTrack");
6473
- const Ic = /* @__PURE__ */ Oe(({
6475
+ const $c = /* @__PURE__ */ Oe(({
6474
6476
  children: e,
6475
6477
  className: r,
6476
6478
  decimalPlaces: s = 2,
@@ -6484,49 +6486,49 @@ const Ic = /* @__PURE__ */ Oe(({
6484
6486
  range: _,
6485
6487
  steps: P = -1,
6486
6488
  onChange: k,
6487
- ...$
6489
+ ...I
6488
6490
  }, M) => {
6489
- const b = Ee(null), j = nt(b), K = Ee(null), W = Ee(null), [F, Y] = Se(_ ?? [m, g]), S = Dc(m, g, P), [C, E] = F.map((ne) => st(ne, m, g, N, j, p, l, a)), R = E - C, U = ze(e, {
6491
+ const b = Ee(null), j = nt(b), K = Ee(null), W = Ee(null), [B, Y] = Se(_ ?? [m, g]), S = Dc(m, g, P), [C, E] = B.map((ne) => st(ne, m, g, N, j, p, l, a)), R = E - C, U = ze(e, {
6490
6492
  gutter: er,
6491
6493
  highlight: tr,
6492
6494
  knob: Zt,
6493
6495
  knobContainer: zn,
6494
6496
  label: Jt
6495
6497
  }), G = me((ne, re, le) => {
6496
- const pe = N === "horizontal" ? re : le, Ne = st(m, m, g, N, j, p, l, a), Te = st(F[1], m, g, N, j, p, l, a), xe = st(ne, m, g, N, j, p, l, a) + pe;
6498
+ const pe = N === "horizontal" ? re : le, Ne = st(m, m, g, N, j, p, l, a), Te = st(B[1], m, g, N, j, p, l, a), xe = st(ne, m, g, N, j, p, l, a) + pe;
6497
6499
  return So(Math.max(Ne, Math.min(Te, xe)), m, g, N, j, p, l, a);
6498
- }, [p, l, a, m, g, N, F[1], ge.toString(j)]), te = me((ne, re, le) => {
6499
- const pe = N === "horizontal" ? re : le, Ne = st(F[0], m, g, N, j, p, l, a), Te = st(g, m, g, N, j, p, l, a), xe = st(ne, m, g, N, j, p, l, a) + pe;
6500
+ }, [p, l, a, m, g, N, B[1], ge.toString(j)]), te = me((ne, re, le) => {
6501
+ const pe = N === "horizontal" ? re : le, Ne = st(B[0], m, g, N, j, p, l, a), Te = st(g, m, g, N, j, p, l, a), xe = st(ne, m, g, N, j, p, l, a) + pe;
6500
6502
  return So(Math.max(Ne, Math.min(Te, xe)), m, g, N, j, p, l, a);
6501
- }, [p, l, a, m, g, N, F[0], ge.toString(j)]), { isDragging: J, isReleasing: H, value: z, setValue: A } = Ct(K, {
6503
+ }, [p, l, a, m, g, N, B[0], ge.toString(j)]), { isDragging: J, isReleasing: H, value: z, setValue: A } = Ct(K, {
6502
6504
  initialValue: _?.[0] ?? m,
6503
6505
  transform: G
6504
- }), { isDragging: Q, isReleasing: Z, value: se, setValue: D } = Ct(W, {
6506
+ }), { isDragging: Q, isReleasing: Z, value: se, setValue: F } = Ct(W, {
6505
6507
  initialValue: _?.[1] ?? g,
6506
6508
  transform: te
6507
- }), T = Ac({ isDraggingEndKnob: Q, isDraggingStartKnob: J, isReleasingEndKnob: Z, isReleasingStartKnob: H }), V = Mc({ orientation: N, highlightLength: R, start: C, knobPadding: u, knobWidth: p, knobHeight: l });
6509
+ }), T = Ac({ isDraggingEndKnob: Q, isDraggingStartKnob: J, isReleasingEndKnob: Z, isReleasingStartKnob: H }), D = Mc({ orientation: N, highlightLength: R, start: C, knobPadding: u, knobWidth: p, knobHeight: l });
6508
6510
  return be(() => {
6509
6511
  Y([z, se]);
6510
6512
  }, [z, se]), be(() => {
6511
- k?.(F);
6512
- }, [F[0], F[1]]), be(() => {
6513
- J || Q || Z || Ge(_, F) || (Y(_ ?? [m, g]), A(_?.[0] ?? m), D(_?.[1] ?? g));
6513
+ k?.(B);
6514
+ }, [B[0], B[1]]), be(() => {
6515
+ J || Q || Z || Ge(_, B) || (Y(_ ?? [m, g]), A(_?.[0] ?? m), F(_?.[1] ?? g));
6514
6516
  }, [_?.[0], _?.[1], J, Q, Z]), be(() => {
6515
6517
  S && A(To(z, S));
6516
6518
  }, [H, We(S)]), be(() => {
6517
- !S || !Z || D(To(se, S));
6519
+ !S || !Z || F(To(se, S));
6518
6520
  }, [Z, We(S)]), /* @__PURE__ */ x.jsx(
6519
6521
  "div",
6520
6522
  {
6521
- ...$,
6523
+ ...I,
6522
6524
  ref: M,
6523
6525
  "aria-valuemax": g,
6524
6526
  "aria-valuemin": m,
6525
6527
  className: ie(r, N),
6526
6528
  role: "slider",
6527
- children: /* @__PURE__ */ x.jsxs("div", { ref: b, style: V.body, children: [
6528
- /* @__PURE__ */ x.jsx(he, { element: U.gutter ?? /* @__PURE__ */ x.jsx(er, {}), style: ce(V.gutter) }),
6529
- /* @__PURE__ */ x.jsx(he, { element: U.highlight ?? /* @__PURE__ */ x.jsx(tr, {}), style: ce(V.highlight) }),
6529
+ children: /* @__PURE__ */ x.jsxs("div", { ref: b, style: D.body, children: [
6530
+ /* @__PURE__ */ x.jsx(he, { element: U.gutter ?? /* @__PURE__ */ x.jsx(er, {}), style: ce(D.gutter) }),
6531
+ /* @__PURE__ */ x.jsx(he, { element: U.highlight ?? /* @__PURE__ */ x.jsx(tr, {}), style: ce(D.highlight) }),
6530
6532
  /* @__PURE__ */ x.jsx(
6531
6533
  he,
6532
6534
  {
@@ -6534,7 +6536,7 @@ const Ic = /* @__PURE__ */ Oe(({
6534
6536
  className: T.startKnobContainer,
6535
6537
  disabled: Ge([z, se], [m, m]),
6536
6538
  element: U.knobContainer ?? /* @__PURE__ */ x.jsx(zn, {}),
6537
- style: ce(V.knobContainer, {
6539
+ style: ce(D.knobContainer, {
6538
6540
  pointerEvents: Ge([z, se], [m, m]) ? "none" : "auto"
6539
6541
  }, N === "horizontal" ? {
6540
6542
  left: `${C}px`,
@@ -6543,9 +6545,9 @@ const Ic = /* @__PURE__ */ Oe(({
6543
6545
  left: `${j.width * 0.5}px`,
6544
6546
  top: `${C}px`
6545
6547
  }),
6546
- children: /* @__PURE__ */ x.jsxs(he, { className: T.startKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(V.knob), children: [
6547
- /* @__PURE__ */ x.jsx("div", { style: V.knobHitBox }),
6548
- U.label && /* @__PURE__ */ x.jsx(he, { className: T.startLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(V.label), children: Number(z.toFixed(s)).toLocaleString() })
6548
+ children: /* @__PURE__ */ x.jsxs(he, { className: T.startKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(D.knob), children: [
6549
+ /* @__PURE__ */ x.jsx("div", { style: D.knobHitBox }),
6550
+ U.label && /* @__PURE__ */ x.jsx(he, { className: T.startLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(D.label), children: Number(z.toFixed(s)).toLocaleString() })
6549
6551
  ] })
6550
6552
  }
6551
6553
  ),
@@ -6556,7 +6558,7 @@ const Ic = /* @__PURE__ */ Oe(({
6556
6558
  className: T.endKnobContainer,
6557
6559
  disabled: Ge([z, se], [g, g]),
6558
6560
  element: U.knobContainer ?? /* @__PURE__ */ x.jsx(zn, {}),
6559
- style: ce(V.knobContainer, {
6561
+ style: ce(D.knobContainer, {
6560
6562
  pointerEvents: Ge([z, se], [g, g]) ? "none" : "auto"
6561
6563
  }, N === "horizontal" ? {
6562
6564
  left: `${E}px`,
@@ -6565,9 +6567,9 @@ const Ic = /* @__PURE__ */ Oe(({
6565
6567
  left: `${j.width * 0.5}px`,
6566
6568
  top: `${E}px`
6567
6569
  }),
6568
- children: /* @__PURE__ */ x.jsxs(he, { className: T.endKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(V.knob), children: [
6569
- /* @__PURE__ */ x.jsx("div", { style: V.knobHitBox }),
6570
- U.label && /* @__PURE__ */ x.jsx(he, { className: T.endLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(V.label), children: Number(se.toFixed(s)).toLocaleString() })
6570
+ children: /* @__PURE__ */ x.jsxs(he, { className: T.endKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(D.knob), children: [
6571
+ /* @__PURE__ */ x.jsx("div", { style: D.knobHitBox }),
6572
+ U.label && /* @__PURE__ */ x.jsx(he, { className: T.endLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(D.label), children: Number(se.toFixed(s)).toLocaleString() })
6571
6573
  ] })
6572
6574
  }
6573
6575
  )
@@ -6719,7 +6721,7 @@ function Dc(e, r, s) {
6719
6721
  r
6720
6722
  ];
6721
6723
  }
6722
- process.env.NODE_ENV !== "production" && (Ic.displayName = "RangeSlider", er.displayName = "RangeSliderGutter", Jt.displayName = "RangeSliderLabel", tr.displayName = "RangeSliderHighlight", Zt.displayName = "RangeSliderKnob");
6724
+ process.env.NODE_ENV !== "production" && ($c.displayName = "RangeSlider", er.displayName = "RangeSliderGutter", Jt.displayName = "RangeSliderLabel", tr.displayName = "RangeSliderHighlight", Zt.displayName = "RangeSliderKnob");
6723
6725
  const Vc = Oe(({
6724
6726
  children: e,
6725
6727
  id: r,
@@ -6828,20 +6830,20 @@ const Hc = /* @__PURE__ */ Oe(({
6828
6830
  position: _ = 0,
6829
6831
  trackPadding: P = 0,
6830
6832
  labelProvider: k,
6831
- onDragEnd: $,
6833
+ onDragEnd: I,
6832
6834
  onDragStart: M,
6833
6835
  onChange: b,
6834
6836
  ...j
6835
6837
  }, K) => {
6836
- const W = Ee(null), F = Ee(null), Y = me((Q, Z, se) => {
6837
- const D = ge.from(W.current) ?? ge.zero, T = a ? 1 - Q : Q;
6838
+ const W = Ee(null), B = Ee(null), Y = me((Q, Z, se) => {
6839
+ const F = ge.from(W.current) ?? ge.zero, T = a ? 1 - Q : Q;
6838
6840
  switch (N) {
6839
6841
  case "horizontal": {
6840
- const V = s ? D.width - g : D.width, ne = T * V + Z, re = Math.max(0, Math.min(1, ne / V));
6842
+ const D = s ? F.width - g : F.width, ne = T * D + Z, re = Math.max(0, Math.min(1, ne / D));
6841
6843
  return a ? 1 - re : re;
6842
6844
  }
6843
6845
  case "vertical": {
6844
- const V = s ? D.height - u : D.height, ne = T * V + se, re = Math.max(0, Math.min(1, ne / V));
6846
+ const D = s ? F.height - u : F.height, ne = T * D + se, re = Math.max(0, Math.min(1, ne / D));
6845
6847
  return a ? 1 - re : re;
6846
6848
  }
6847
6849
  default:
@@ -6852,23 +6854,23 @@ const Hc = /* @__PURE__ */ Oe(({
6852
6854
  const Z = ge.from(W.current) ?? ge.zero, se = ge.fromViewport();
6853
6855
  switch (N) {
6854
6856
  case "horizontal": {
6855
- const D = (Q.clientX + se.left - Z.left) / Z.width, T = a ? 1 - D : D;
6857
+ const F = (Q.clientX + se.left - Z.left) / Z.width, T = a ? 1 - F : F;
6856
6858
  U(T);
6857
6859
  break;
6858
6860
  }
6859
6861
  case "vertical": {
6860
- const D = (Q.clientY + se.top - Z.top) / Z.height, T = a ? 1 - D : D;
6862
+ const F = (Q.clientY + se.top - Z.top) / Z.height, T = a ? 1 - F : F;
6861
6863
  U(T);
6862
6864
  break;
6863
6865
  }
6864
6866
  default:
6865
6867
  console.error(`[etudes::Slider] Invalid orientation: ${N}`);
6866
6868
  }
6867
- }, [W.current, a, l, N]), { isDragging: C, isReleasing: E, value: R, setValue: U } = Ct(F, {
6869
+ }, [W.current, a, l, N]), { isDragging: C, isReleasing: E, value: R, setValue: U } = Ct(B, {
6868
6870
  initialValue: _,
6869
6871
  transform: Y,
6870
6872
  onDragStart: M,
6871
- onDragEnd: $
6873
+ onDragEnd: I
6872
6874
  }), G = a ? 1 - R : R, H = Yc({ orientation: N, isAtEnd: a ? R === 0 : R === 1, isAtStart: a ? R === 1 : R === 0, isDragging: C, isReleasing: E }), z = Xc({ orientation: N, isClipped: s, naturalPosition: G, knobPadding: p, knobHeight: u, knobWidth: g, isTrackInteractive: l });
6873
6875
  be(() => {
6874
6876
  C || _ === R || U(_);
@@ -6928,7 +6930,7 @@ const Hc = /* @__PURE__ */ Oe(({
6928
6930
  /* @__PURE__ */ x.jsx(
6929
6931
  he,
6930
6932
  {
6931
- ref: F,
6933
+ ref: B,
6932
6934
  className: ie(H.knobContainer),
6933
6935
  element: A.knobContainer ?? /* @__PURE__ */ x.jsx(or, {}),
6934
6936
  style: z.knobContainer,
@@ -7056,15 +7058,15 @@ const Uc = /* @__PURE__ */ Oe(({
7056
7058
  onlyDispatchesOnDragEnd: _ = !1,
7057
7059
  orientation: P = "vertical",
7058
7060
  steps: k = qc(10),
7059
- trackPadding: $ = 0,
7061
+ trackPadding: I = 0,
7060
7062
  onDragEnd: M,
7061
7063
  onDragStart: b,
7062
7064
  onIndexChange: j,
7063
7065
  onPositionChange: K,
7064
7066
  ...W
7065
- }, F) => {
7066
- const Y = Ee(null), S = Ee(null), C = nt(Y), [E, R] = Se(s), U = me((V, ne, re) => {
7067
- const le = l ? et(V) : V;
7067
+ }, B) => {
7068
+ const Y = Ee(null), S = Ee(null), C = nt(Y), [E, R] = Se(s), U = me((D, ne, re) => {
7069
+ const le = l ? et(D) : D;
7068
7070
  switch (P) {
7069
7071
  case "horizontal": {
7070
7072
  const pe = a ? C.width - m : C.width, Ne = le * pe + ne, Te = qt(Ne / pe);
@@ -7082,12 +7084,12 @@ const Uc = /* @__PURE__ */ Oe(({
7082
7084
  transform: U,
7083
7085
  onDragStart: b,
7084
7086
  onDragEnd: M
7085
- }), z = me((V) => {
7087
+ }), z = me((D) => {
7086
7088
  if (!u) return;
7087
7089
  const ne = ge.fromViewport();
7088
7090
  switch (P) {
7089
7091
  case "horizontal": {
7090
- const re = (V.clientX + ne.left - C.left) / C.width, le = l ? et(re) : re, pe = Ot(le, k);
7092
+ const re = (D.clientX + ne.left - C.left) / C.width, le = l ? et(re) : re, pe = Ot(le, k);
7091
7093
  if (pe === E) {
7092
7094
  const Ne = le > J ? pe + 1 : pe - 1;
7093
7095
  R(qt(Ne, k.length - 1));
@@ -7096,7 +7098,7 @@ const Uc = /* @__PURE__ */ Oe(({
7096
7098
  break;
7097
7099
  }
7098
7100
  case "vertical": {
7099
- const re = (V.clientY + ne.top - C.top) / C.height, le = l ? et(re) : re, pe = Ot(le, k);
7101
+ const re = (D.clientY + ne.top - C.top) / C.height, le = l ? et(re) : re, pe = Ot(le, k);
7100
7102
  if (pe === E) {
7101
7103
  const Ne = le > J ? pe + 1 : pe - 1, Te = dt(Ne, k);
7102
7104
  H(Te), R(qt(Ne, k.length - 1));
@@ -7109,7 +7111,7 @@ const Uc = /* @__PURE__ */ Oe(({
7109
7111
  default:
7110
7112
  console.error(`[etudes::StepSlider] Invalid orientation: ${P}`);
7111
7113
  }
7112
- }, [C.width, C.left, C.top, C.height, E, J, l, u, P, We(k)]), A = l ? et(J) : J, se = Gc({ orientation: P, isAtEnd: l ? J === 0 : J === 1, isAtStart: l ? J === 1 : J === 0, isDragging: G, isReleasing: te }), D = Wc({ orientation: P, naturalPosition: A, isClipped: a, knobPadding: g, knobHeight: p, knobWidth: m, isTrackInteractive: u }), T = ze(e, {
7114
+ }, [C.width, C.left, C.top, C.height, E, J, l, u, P, We(k)]), A = l ? et(J) : J, se = Gc({ orientation: P, isAtEnd: l ? J === 0 : J === 1, isAtStart: l ? J === 1 : J === 0, isDragging: G, isReleasing: te }), F = Wc({ orientation: P, naturalPosition: A, isClipped: a, knobPadding: g, knobHeight: p, knobWidth: m, isTrackInteractive: u }), T = ze(e, {
7113
7115
  knob: sr,
7114
7116
  knobContainer: ar,
7115
7117
  label: cr,
@@ -7122,8 +7124,8 @@ const Uc = /* @__PURE__ */ Oe(({
7122
7124
  if (_) return;
7123
7125
  R(Ot(J, k));
7124
7126
  } else {
7125
- const V = Ot(J, k), ne = dt(V, k);
7126
- H(ne), R(V);
7127
+ const D = Ot(J, k), ne = dt(D, k);
7128
+ H(ne), R(D);
7127
7129
  }
7128
7130
  }, [J, G, _, We(k)]), be(() => {
7129
7131
  K?.(J, G);
@@ -7133,25 +7135,25 @@ const Uc = /* @__PURE__ */ Oe(({
7133
7135
  "div",
7134
7136
  {
7135
7137
  ...W,
7136
- ref: F,
7138
+ ref: B,
7137
7139
  "aria-valuenow": E,
7138
7140
  className: ie(r, se.root),
7139
7141
  role: "slider",
7140
- children: /* @__PURE__ */ x.jsxs("div", { ref: Y, style: D.body, children: [
7142
+ children: /* @__PURE__ */ x.jsxs("div", { ref: Y, style: F.body, children: [
7141
7143
  /* @__PURE__ */ x.jsx(
7142
7144
  he,
7143
7145
  {
7144
7146
  className: ie(l ? "end" : "start", se.track),
7145
7147
  element: T.track ?? /* @__PURE__ */ x.jsx(tn, {}),
7146
- style: ce(D.track, P === "vertical" ? {
7147
- height: `calc(${A * 100}% - ${$ <= 0 ? 0 : p * 0.5}px - ${$}px)`,
7148
+ style: ce(F.track, P === "vertical" ? {
7149
+ height: `calc(${A * 100}% - ${I <= 0 ? 0 : p * 0.5}px - ${I}px)`,
7148
7150
  top: "0"
7149
7151
  } : {
7150
7152
  left: "0",
7151
- width: `calc(${A * 100}% - ${$ <= 0 ? 0 : m * 0.5}px - ${$}px)`
7153
+ width: `calc(${A * 100}% - ${I <= 0 ? 0 : m * 0.5}px - ${I}px)`
7152
7154
  }),
7153
7155
  onClick: z,
7154
- children: /* @__PURE__ */ x.jsx("div", { style: D.trackHitBox })
7156
+ children: /* @__PURE__ */ x.jsx("div", { style: F.trackHitBox })
7155
7157
  }
7156
7158
  ),
7157
7159
  /* @__PURE__ */ x.jsx(
@@ -7159,15 +7161,15 @@ const Uc = /* @__PURE__ */ Oe(({
7159
7161
  {
7160
7162
  className: ie(l ? "start" : "end", se.track),
7161
7163
  element: T.track ?? /* @__PURE__ */ x.jsx(tn, {}),
7162
- style: ce(D.track, P === "vertical" ? {
7164
+ style: ce(F.track, P === "vertical" ? {
7163
7165
  bottom: "0",
7164
- height: `calc(${et(A) * 100}% - ${$ <= 0 ? 0 : p * 0.5}px - ${$}px)`
7166
+ height: `calc(${et(A) * 100}% - ${I <= 0 ? 0 : p * 0.5}px - ${I}px)`
7165
7167
  } : {
7166
7168
  right: "0",
7167
- width: `calc(${et(A) * 100}% - ${$ <= 0 ? 0 : m * 0.5}px - ${$}px)`
7169
+ width: `calc(${et(A) * 100}% - ${I <= 0 ? 0 : m * 0.5}px - ${I}px)`
7168
7170
  }),
7169
7171
  onClick: z,
7170
- children: /* @__PURE__ */ x.jsx("div", { style: D.trackHitBox })
7172
+ children: /* @__PURE__ */ x.jsx("div", { style: F.trackHitBox })
7171
7173
  }
7172
7174
  ),
7173
7175
  /* @__PURE__ */ x.jsx(
@@ -7176,10 +7178,10 @@ const Uc = /* @__PURE__ */ Oe(({
7176
7178
  ref: S,
7177
7179
  className: ie(se.knobContainer),
7178
7180
  element: T.knobContainer ?? /* @__PURE__ */ x.jsx(ar, {}),
7179
- style: ce(D.knobContainer),
7180
- children: /* @__PURE__ */ x.jsxs(he, { className: ie(se.knob), element: T.knob ?? /* @__PURE__ */ x.jsx(sr, {}), style: ce(D.knob), children: [
7181
- /* @__PURE__ */ x.jsx("div", { style: D.knobHitBox }),
7182
- k && N && /* @__PURE__ */ x.jsx(he, { className: ie(se.label), element: T.label ?? /* @__PURE__ */ x.jsx(cr, {}), style: ce(D.label), children: N(J, Ot(J, k)) })
7181
+ style: ce(F.knobContainer),
7182
+ children: /* @__PURE__ */ x.jsxs(he, { className: ie(se.knob), element: T.knob ?? /* @__PURE__ */ x.jsx(sr, {}), style: ce(F.knob), children: [
7183
+ /* @__PURE__ */ x.jsx("div", { style: F.knobHitBox }),
7184
+ k && N && /* @__PURE__ */ x.jsx(he, { className: ie(se.label), element: T.label ?? /* @__PURE__ */ x.jsx(cr, {}), style: ce(F.label), children: N(J, Ot(J, k)) })
7183
7185
  ] })
7184
7186
  }
7185
7187
  )
@@ -7324,18 +7326,18 @@ const Kc = /* @__PURE__ */ Oe(({
7324
7326
  onSwipeUp: p,
7325
7327
  ...g
7326
7328
  }, m) => {
7327
- const [N, _] = Se(void 0), [P, k] = Se(void 0), [$, M] = Se(NaN), b = (F, Y) => {
7328
- if (isNaN(F) || isNaN(Y)) return W();
7329
- _(de.make(F, Y));
7330
- }, j = (F, Y) => {
7329
+ const [N, _] = Se(void 0), [P, k] = Se(void 0), [I, M] = Se(NaN), b = (B, Y) => {
7330
+ if (isNaN(B) || isNaN(Y)) return W();
7331
+ _(de.make(B, Y));
7332
+ }, j = (B, Y) => {
7331
7333
  const S = N;
7332
7334
  if (S === void 0) return;
7333
- const C = S.x !== F || S.y !== Y, E = !isNaN($);
7334
- C && (E || M(Date.now()), k(de.make(F, Y)));
7335
+ const C = S.x !== B || S.y !== Y, E = !isNaN(I);
7336
+ C && (E || M(Date.now()), k(de.make(B, Y)));
7335
7337
  }, K = () => {
7336
- const F = $, Y = N, S = P;
7337
- if (isNaN(F) || Y === void 0 || S === void 0) return;
7338
- const C = Date.now() - F, E = S.x - Y.x, R = S.y - Y.y, U = E / C, G = R / C;
7338
+ const B = I, Y = N, S = P;
7339
+ if (isNaN(B) || Y === void 0 || S === void 0) return;
7340
+ const C = Date.now() - B, E = S.x - Y.x, R = S.y - Y.y, U = E / C, G = R / C;
7339
7341
  r && (Math.abs(U) >= s && Math.abs(U) > Math.abs(G) ? U > 0 ? u?.() : l?.() : Math.abs(G) >= s && Math.abs(G) > Math.abs(U) && (G > 0 ? a?.() : p?.())), W();
7340
7342
  }, W = () => {
7341
7343
  _(void 0), k(void 0), M(NaN);
@@ -7345,13 +7347,13 @@ const Kc = /* @__PURE__ */ Oe(({
7345
7347
  {
7346
7348
  ...g,
7347
7349
  ref: m,
7348
- onMouseDown: (F) => b(F.clientX, F.clientY),
7350
+ onMouseDown: (B) => b(B.clientX, B.clientY),
7349
7351
  onMouseLeave: () => W(),
7350
- onMouseMove: (F) => j(F.clientX, F.clientY),
7352
+ onMouseMove: (B) => j(B.clientX, B.clientY),
7351
7353
  onMouseUp: () => K(),
7352
7354
  onTouchEnd: () => K(),
7353
- onTouchMove: (F) => j(F.targetTouches[0].clientX, F.targetTouches[0].clientY),
7354
- onTouchStart: (F) => b(F.targetTouches[0].clientX, F.targetTouches[0].clientY),
7355
+ onTouchMove: (B) => j(B.targetTouches[0].clientX, B.targetTouches[0].clientY),
7356
+ onTouchStart: (B) => b(B.targetTouches[0].clientX, B.targetTouches[0].clientY),
7355
7357
  children: e
7356
7358
  }
7357
7359
  );
@@ -7382,10 +7384,10 @@ const Zc = Oe(({
7382
7384
  const N = Ee(null), _ = jo(N), P = ze(r, {
7383
7385
  knob: ur,
7384
7386
  track: lr
7385
- }), k = Qc({ isOn: a }), $ = el({ isOn: a, isInverted: s, orientation: l, knobSize: _ });
7386
- return /* @__PURE__ */ x.jsxs("label", { ...g, ref: m, className: ie(e, k.root), style: ce(u, $.root), children: [
7387
- /* @__PURE__ */ x.jsx("input", { checked: a, style: $.input, type: "checkbox", onChange: (M) => p?.(M.target.checked) }),
7388
- /* @__PURE__ */ x.jsx(he, { className: k.track, element: P.track ?? /* @__PURE__ */ x.jsx(lr, {}), style: $.track, children: /* @__PURE__ */ x.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ x.jsx(he, { ref: N, className: k.knob, element: P.knob ?? /* @__PURE__ */ x.jsx(ur, {}), style: $.knob }) }) })
7387
+ }), k = Qc({ isOn: a }), I = el({ isOn: a, isInverted: s, orientation: l, knobSize: _ });
7388
+ return /* @__PURE__ */ x.jsxs("label", { ...g, ref: m, className: ie(e, k.root), style: ce(u, I.root), children: [
7389
+ /* @__PURE__ */ x.jsx("input", { checked: a, style: I.input, type: "checkbox", onChange: (M) => p?.(M.target.checked) }),
7390
+ /* @__PURE__ */ x.jsx(he, { className: k.track, element: P.track ?? /* @__PURE__ */ x.jsx(lr, {}), style: I.track, children: /* @__PURE__ */ x.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ x.jsx(he, { ref: N, className: k.knob, element: P.knob ?? /* @__PURE__ */ x.jsx(ur, {}), style: I.knob }) }) })
7389
7391
  ] });
7390
7392
  }), lr = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), ur = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e });
7391
7393
  function Qc({ isOn: e = !1 }) {
@@ -7476,24 +7478,24 @@ function tl({
7476
7478
  maxWidth: m = 200,
7477
7479
  threshold: N = 100
7478
7480
  }) {
7479
- const _ = Ee(null), P = Ee(void 0), k = nt(_), $ = me(() => {
7481
+ const _ = Ee(null), P = Ee(void 0), k = nt(_), I = me(() => {
7480
7482
  const j = document.createElement("span");
7481
7483
  j.className = ie(r), j.innerHTML = g, j.role = "tooltip";
7482
- const K = a ?? (_.current ? rl(_.current, N) : "tl"), W = nl(j), F = sl({ alignment: K, arrowSize: Me.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: W.width, targetWidth: k.width }), Y = ce(s, F.dialog);
7484
+ const K = a ?? (_.current ? rl(_.current, N) : "tl"), W = nl(j), B = sl({ alignment: K, arrowSize: Me.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: W.width, targetWidth: k.width }), Y = ce(s, B.dialog);
7483
7485
  Object.keys(Y).forEach((C) => j.style[C] = Y[C]);
7484
7486
  const S = document.createElement("span");
7485
- return Object.keys(F.arrow).forEach((C) => S.style[C] = F.arrow[C]), j.appendChild(S), j;
7487
+ return Object.keys(B.arrow).forEach((C) => S.style[C] = B.arrow[C]), j.appendChild(S), j;
7486
7488
  }, [r, a, g, m, We(s), k.width, N, l, u, p]), M = me(() => {
7487
7489
  P.current && (P.current.style.opacity = "1", P.current.ariaHidden = "false");
7488
7490
  }, []), b = me(() => {
7489
7491
  P.current && (P.current.style.opacity = "0", P.current.ariaHidden = "true");
7490
7492
  }, []);
7491
7493
  return be(() => {
7492
- const j = $();
7494
+ const j = I();
7493
7495
  return _.current?.appendChild(j), P.current = j, () => {
7494
7496
  _.current?.removeChild(j), P.current = void 0;
7495
7497
  };
7496
- }, [$]), /* @__PURE__ */ x.jsx(
7498
+ }, [I]), /* @__PURE__ */ x.jsx(
7497
7499
  ni,
7498
7500
  {
7499
7501
  ref: _,
@@ -7774,10 +7776,10 @@ function El(e, r, {
7774
7776
  mapStateToSearchParam: a,
7775
7777
  shouldPopulateDefaultState: l = !1
7776
7778
  } = {}) {
7777
- const u = me((k, $) => s ? s(k) : k || $, [s]), p = me((k) => a ? a(k) : !l && k === r ? void 0 : `${k}`, [r, l, a]), [g, m] = Es(), N = u(g.get(e) ?? void 0, r), [_, P] = Se(N);
7779
+ const u = me((k, I) => s ? s(k) : k || I, [s]), p = me((k) => a ? a(k) : !l && k === r ? void 0 : `${k}`, [r, l, a]), [g, m] = Es(), N = u(g.get(e) ?? void 0, r), [_, P] = Se(N);
7778
7780
  return be(() => {
7779
- const k = g.get(e), $ = p(_);
7780
- $ !== k && ($ ? g.set(e, $) : g.delete(e), m(g));
7781
+ const k = g.get(e), I = p(_);
7782
+ I !== k && (I ? g.set(e, I) : g.delete(e), m(g));
7781
7783
  }, [_, p]), [_, P];
7782
7784
  }
7783
7785
  function Nl(e, {
@@ -7932,9 +7934,9 @@ function _o(e) {
7932
7934
  return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(_o)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([r], [s]) => r.localeCompare(s)).map(([r, s]) => [r, _o(s)])) : We(e);
7933
7935
  }
7934
7936
  export {
7935
- $s as Accordion,
7937
+ Is as Accordion,
7936
7938
  Ao as AccordionCollapseIcon,
7937
- Io as AccordionExpandIcon,
7939
+ $o as AccordionExpandIcon,
7938
7940
  Fn as AccordionHeader,
7939
7941
  Dn as AccordionItem,
7940
7942
  fo as AccordionSection,
@@ -7983,7 +7985,7 @@ export {
7983
7985
  Zn as PanoramaSliderIndicator,
7984
7986
  Qn as PanoramaSliderReticle,
7985
7987
  Kt as PanoramaSliderTrack,
7986
- Ic as RangeSlider,
7988
+ $c as RangeSlider,
7987
7989
  er as RangeSliderGutter,
7988
7990
  tr as RangeSliderHighlight,
7989
7991
  Zt as RangeSliderKnob,