etudes 19.8.1 → 20.0.0

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
@@ -1,5 +1,5 @@
1
- import Es, { Fragment as ko, useRef as we, useEffect as Ee, useLayoutEffect as Re, useState as _e, Children as an, isValidElement as cn, cloneElement as Ns, forwardRef as Oe, useCallback as ge, useMemo as dr, createContext as Ss, useContext as pr } from "react";
2
- function Co(t) {
1
+ import Ns, { Fragment as Co, useRef as we, useEffect as Ee, useLayoutEffect as Re, useState as _e, Children as an, isValidElement as cn, cloneElement as Ss, forwardRef as Oe, useCallback as ge, useMemo as ln, createContext as Ts, useContext as pr, Suspense as _s } from "react";
2
+ function $o(t) {
3
3
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
4
4
  }
5
5
  var Ut = { exports: {} }, Nt = {};
@@ -13,7 +13,7 @@ var Ut = { exports: {} }, Nt = {};
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
15
  var lo;
16
- function Ts() {
16
+ function Os() {
17
17
  if (lo) return Nt;
18
18
  lo = 1;
19
19
  var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
@@ -45,7 +45,7 @@ var St = {};
45
45
  * LICENSE file in the root directory of this source tree.
46
46
  */
47
47
  var uo;
48
- function _s() {
48
+ function Ps() {
49
49
  return uo || (uo = 1, process.env.NODE_ENV !== "production" && (function() {
50
50
  function t(P) {
51
51
  if (P == null) return null;
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
239
239
  function k(P) {
240
240
  return typeof P == "object" && P !== null && P.$$typeof === M;
241
241
  }
242
- var $ = Es, M = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), J = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), oe = Symbol.for("react.client.reference"), Z = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, D = Array.isArray, z = console.createTask ? console.createTask : function() {
242
+ var $ = Ns, M = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), J = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), oe = Symbol.for("react.client.reference"), Z = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, D = Array.isArray, z = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  $ = {
@@ -275,26 +275,26 @@ React keys must be passed directly to JSX without using spread:
275
275
  })()), St;
276
276
  }
277
277
  var fo;
278
- function Os() {
279
- return fo || (fo = 1, process.env.NODE_ENV === "production" ? Ut.exports = /* @__PURE__ */ Ts() : Ut.exports = /* @__PURE__ */ _s()), Ut.exports;
278
+ function Is() {
279
+ return fo || (fo = 1, process.env.NODE_ENV === "production" ? Ut.exports = /* @__PURE__ */ Os() : Ut.exports = /* @__PURE__ */ Ps()), Ut.exports;
280
280
  }
281
- var b = /* @__PURE__ */ Os();
282
- function $o(t) {
281
+ var b = /* @__PURE__ */ Is();
282
+ function jo(t) {
283
283
  var r, i, a = "";
284
284
  if (typeof t == "string" || typeof t == "number") a += t;
285
285
  else if (typeof t == "object") if (Array.isArray(t)) {
286
286
  var c = t.length;
287
- for (r = 0; r < c; r++) t[r] && (i = $o(t[r])) && (a && (a += " "), a += i);
287
+ for (r = 0; r < c; r++) t[r] && (i = jo(t[r])) && (a && (a += " "), a += i);
288
288
  } else for (i in t) t[i] && (a && (a += " "), a += i);
289
289
  return a;
290
290
  }
291
291
  function se() {
292
- for (var t, r, i = 0, a = "", c = arguments.length; i < c; i++) (t = arguments[i]) && (r = $o(t)) && (a && (a += " "), a += r);
292
+ for (var t, r, i = 0, a = "", c = arguments.length; i < c; i++) (t = arguments[i]) && (r = jo(t)) && (a && (a += " "), a += r);
293
293
  return a;
294
294
  }
295
- var jn, po;
296
- function Ps() {
297
- return po || (po = 1, jn = function t(r, i) {
295
+ var An, po;
296
+ function ks() {
297
+ return po || (po = 1, An = function t(r, i) {
298
298
  if (r === i) return !0;
299
299
  if (r && i && typeof r == "object" && typeof i == "object") {
300
300
  if (r.constructor !== i.constructor) return !1;
@@ -319,20 +319,20 @@ function Ps() {
319
319
  return !0;
320
320
  }
321
321
  return r !== r && i !== i;
322
- }), jn;
322
+ }), An;
323
323
  }
324
- var Is = /* @__PURE__ */ Ps();
325
- const Ke = /* @__PURE__ */ Co(Is);
326
- function ln({
324
+ var Cs = /* @__PURE__ */ ks();
325
+ const Ke = /* @__PURE__ */ $o(Cs);
326
+ function un({
327
327
  in: t,
328
328
  children: r,
329
329
  render: i
330
330
  }) {
331
331
  if (t == null) return /* @__PURE__ */ b.jsx(b.Fragment, {});
332
332
  if (!(t instanceof Array)) throw TypeError(`Provided list <${t}> is not an array`);
333
- return /* @__PURE__ */ b.jsx(b.Fragment, { children: t.map((a, c) => /* @__PURE__ */ b.jsx(ko, { children: i?.(a, c) ?? (typeof r == "function" ? r(a, c) : r) }, `item-${c}`)) });
333
+ return /* @__PURE__ */ b.jsx(b.Fragment, { children: t.map((a, c) => /* @__PURE__ */ b.jsx(Co, { children: i?.(a, c) ?? (typeof r == "function" ? r(a, c) : r) }, `item-${c}`)) });
334
334
  }
335
- process.env.NODE_ENV === "development" && (ln.displayName = "Each");
335
+ process.env.NODE_ENV === "development" && (un.displayName = "Each");
336
336
  var Te;
337
337
  ((t) => {
338
338
  t.zero = r();
@@ -390,7 +390,7 @@ var Te;
390
390
  y: S.x
391
391
  });
392
392
  }
393
- t.invert = g;
393
+ t.reflect = g;
394
394
  function m(S, C) {
395
395
  return !(S.x !== C.x || S.y !== C.y);
396
396
  }
@@ -423,7 +423,7 @@ var Te;
423
423
  }
424
424
  t.isZero = M;
425
425
  })(Te || (Te = {}));
426
- function ks(t, r) {
426
+ function $s(t, r) {
427
427
  try {
428
428
  const i = Te.isValidDescriptor(t) && Te.make(t), a = Te.isValidDescriptor(r) && Te.make(r);
429
429
  if (i && !a) {
@@ -516,7 +516,7 @@ var $e;
516
516
  height: S.width
517
517
  });
518
518
  }
519
- t.invert = g;
519
+ t.rotate = g;
520
520
  function m(S, C) {
521
521
  return !(S.width !== C.width || S.height !== C.height);
522
522
  }
@@ -705,13 +705,13 @@ var xe;
705
705
  height: E.width
706
706
  });
707
707
  }
708
- t.invert = $;
708
+ t.rotate = $;
709
709
  function M(E, I) {
710
710
  return !(E.top !== I.top || E.right !== I.right || E.bottom !== I.bottom || E.left !== I.left || E.width !== I.width || E.height !== I.height);
711
711
  }
712
712
  t.isEqual = M;
713
713
  function S(E, I) {
714
- return ks(I, E);
714
+ return $s(I, E);
715
715
  }
716
716
  t.contains = S;
717
717
  function C(E) {
@@ -764,7 +764,7 @@ function hr(t, { onResize: r }) {
764
764
  };
765
765
  }, [t.current]);
766
766
  }
767
- function jo(t) {
767
+ function Ao(t) {
768
768
  const [r, i] = _e(xe.zero);
769
769
  return hr(t, {
770
770
  onResize: (a) => {
@@ -795,12 +795,12 @@ function Fe(t, r = {}) {
795
795
  c[g] = u;
796
796
  }), c;
797
797
  }
798
- function Nl(t) {
798
+ function Ol(t) {
799
799
  return t;
800
800
  }
801
801
  function gr(t, r = {}, ...i) {
802
802
  const { className: a, style: c, ...u } = r, { className: d, style: g, ...m } = t.props;
803
- return Ns(t, {
803
+ return Ss(t, {
804
804
  className: `${d ?? ""} ${a ?? ""}`.split(" ").filter(Boolean).join(" ") || void 0,
805
805
  style: {
806
806
  ...g ?? {},
@@ -849,14 +849,14 @@ const mr = /* @__PURE__ */ Oe(({
849
849
  ItemComponent: ee,
850
850
  ...W
851
851
  }, X) => {
852
- const J = $s(O ?? [], d), E = js({ itemLength: c, itemPadding: u, layout: g, numSegments: m, orientation: x }), I = (Y) => J.indexOf(Y) >= 0, N = (Y) => {
852
+ const J = As(O ?? [], d), E = Ms({ itemLength: c, itemPadding: u, layout: g, numSegments: m, orientation: x }), I = (Y) => J.indexOf(Y) >= 0, N = (Y) => {
853
853
  I(Y) ? B(Y) : A(Y);
854
854
  }, A = (Y) => {
855
855
  if (I(Y)) return;
856
856
  let D;
857
857
  switch (T) {
858
858
  case "multiple": {
859
- D = (ne) => Ao([...ne.filter((ae) => ae !== Y), Y]);
859
+ D = (ne) => Mo([...ne.filter((ae) => ae !== Y), Y]);
860
860
  break;
861
861
  }
862
862
  case "single": {
@@ -907,7 +907,7 @@ const mr = /* @__PURE__ */ Oe(({
907
907
  className: se(t),
908
908
  role: g === "grid" ? "grid" : T === "none" ? "list" : "listbox",
909
909
  style: le(i, E.root),
910
- children: /* @__PURE__ */ b.jsx(ln, { in: d, children: (Y, D) => {
910
+ children: /* @__PURE__ */ b.jsx(un, { in: d, children: (Y, D) => {
911
911
  const z = g === "grid" ? "gridcell" : T === "none" ? "listitem" : "option", te = I(D), ne = le(E.item, {
912
912
  pointerEvents: a !== !0 && I(D) ? "none" : "auto",
913
913
  ...D >= d.length - 1 ? {} : {
@@ -952,16 +952,16 @@ const mr = /* @__PURE__ */ Oe(({
952
952
  }
953
953
  );
954
954
  }), kt = ({ children: t, selectionMode: r, onActivateAt: i, ...a }) => i || r === "single" || r === "multiple" ? /* @__PURE__ */ b.jsx("button", { ...a, children: t }) : /* @__PURE__ */ b.jsx("div", { ...a, children: t });
955
- function Cs(t, r) {
955
+ function js(t, r) {
956
956
  return !!(isNaN(t) || t >= r.length || t < 0);
957
957
  }
958
- function $s(t, r) {
959
- return Ao(t).filter((i) => !Cs(i, r));
958
+ function As(t, r) {
959
+ return Mo(t).filter((i) => !js(i, r));
960
960
  }
961
- function Ao(t) {
961
+ function Mo(t) {
962
962
  return t.sort((r, i) => r - i);
963
963
  }
964
- function js({ itemLength: t = NaN, itemPadding: r = 0, layout: i = "collection", numSegments: a = 1, orientation: c = "vertical" }) {
964
+ function Ms({ itemLength: t = NaN, itemPadding: r = 0, layout: i = "collection", numSegments: a = 1, orientation: c = "vertical" }) {
965
965
  return {
966
966
  root: {
967
967
  counterReset: "item-counter",
@@ -1002,7 +1002,7 @@ function js({ itemLength: t = NaN, itemPadding: r = 0, layout: i = "collection",
1002
1002
  };
1003
1003
  }
1004
1004
  process.env.NODE_ENV === "development" && (mr.displayName = "Collection", kt.displayName = "CollectionItem");
1005
- const As = /* @__PURE__ */ Oe(({
1005
+ const Rs = /* @__PURE__ */ Oe(({
1006
1006
  children: t,
1007
1007
  style: r,
1008
1008
  autoCollapseSections: i = !1,
@@ -1025,7 +1025,7 @@ const As = /* @__PURE__ */ Oe(({
1025
1025
  ItemComponent: X,
1026
1026
  ...J
1027
1027
  }, E) => {
1028
- const I = zs(g ?? {}, d), N = Rs(a ?? [], d), A = Ls({ orientation: c }), B = d.map(() => we(null)), q = B.map((F) => jo(F)), oe = (F, R) => (I[R]?.indexOf(F) ?? -1) >= 0, Z = (F) => N.indexOf(F) >= 0, Y = (F) => {
1028
+ const I = Fs(g ?? {}, d), N = Ls(a ?? [], d), A = Vs({ orientation: c }), B = d.map(() => we(null)), q = B.map((F) => Ao(F)), oe = (F, R) => (I[R]?.indexOf(F) ?? -1) >= 0, Z = (F) => N.indexOf(F) >= 0, Y = (F) => {
1029
1029
  let R;
1030
1030
  Z(F) ? R = (P) => P.filter((U) => U !== F) : i ? R = (P) => [F] : R = (P) => [...P.filter((U) => U !== F), F], te(N, R(N));
1031
1031
  }, D = (F, R) => {
@@ -1069,13 +1069,13 @@ const As = /* @__PURE__ */ Oe(({
1069
1069
  }
1070
1070
  U.forEach((G) => T?.(G[0], G[1])), K.forEach((G) => C?.(G[0], G[1])), ee?.(R);
1071
1071
  }, ae = Fe(t, {
1072
- collapseIcon: Ro,
1073
- expandIcon: Mo,
1074
- header: Fn,
1075
- item: Vn,
1072
+ collapseIcon: zo,
1073
+ expandIcon: Ro,
1074
+ header: Vn,
1075
+ item: Dn,
1076
1076
  section: ho
1077
1077
  });
1078
- return /* @__PURE__ */ b.jsx("div", { ...J, ref: E, style: le(r, A.root), children: /* @__PURE__ */ b.jsx(ln, { in: d, children: (F, R) => {
1078
+ return /* @__PURE__ */ b.jsx("div", { ...J, ref: E, style: le(r, A.root), children: /* @__PURE__ */ b.jsx(un, { in: d, children: (F, R) => {
1079
1079
  const { collectionPadding: P = 0, items: U = [], itemLength: K = 50, itemPadding: G = 0, isSelectionTogglable: fe, layout: he = "list", maxVisible: ue = -1, numSegments: Ne = 1 } = F, Q = he === "list" ? U.length : Math.ceil(U.length / Ne), He = ue < 0 ? Q : Math.min(Q, ue), Ce = K * He + G * (He - 1), Ie = !Z(R), Be = q[R];
1080
1080
  return /* @__PURE__ */ b.jsxs(
1081
1081
  me,
@@ -1120,7 +1120,7 @@ const As = /* @__PURE__ */ Oe(({
1120
1120
  {
1121
1121
  "aria-expanded": !Ie,
1122
1122
  className: se({ collapsed: Ie, expanded: !Ie }),
1123
- element: ae.header ?? /* @__PURE__ */ b.jsx(Fn, {}),
1123
+ element: ae.header ?? /* @__PURE__ */ b.jsx(Vn, {}),
1124
1124
  role: "button",
1125
1125
  style: le(A.header),
1126
1126
  onClick: () => Y(R),
@@ -1175,7 +1175,7 @@ const As = /* @__PURE__ */ Oe(({
1175
1175
  onCustomEvent: (ze, Ye, Xe) => S?.(ze, R, Ye, Xe),
1176
1176
  onDeselectAt: (ze) => z(ze, R),
1177
1177
  onSelectAt: (ze) => D(ze, R),
1178
- children: !X && (ae.item ?? /* @__PURE__ */ b.jsx(Vn, {}))
1178
+ children: !X && (ae.item ?? /* @__PURE__ */ b.jsx(Dn, {}))
1179
1179
  }
1180
1180
  )
1181
1181
  }
@@ -1184,31 +1184,31 @@ const As = /* @__PURE__ */ Oe(({
1184
1184
  }
1185
1185
  );
1186
1186
  } }) });
1187
- }), Fn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), Mo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: t }), Ro = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: t }), ho = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Vn = kt;
1188
- function zo(t, r) {
1187
+ }), Vn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), Ro = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: t }), zo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: t }), ho = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Dn = kt;
1188
+ function Lo(t, r) {
1189
1189
  return t >= r.length || t < 0;
1190
1190
  }
1191
- function Ms(t, r, i) {
1192
- if (zo(r, i)) return !0;
1191
+ function zs(t, r, i) {
1192
+ if (Lo(r, i)) return !0;
1193
1193
  const a = i[r].items ?? [];
1194
1194
  return t >= a.length || t < 0;
1195
1195
  }
1196
- function Rs(t, r) {
1197
- return nn(t).filter((i) => !zo(i, r));
1196
+ function Ls(t, r) {
1197
+ return nn(t).filter((i) => !Lo(i, r));
1198
1198
  }
1199
- function zs(t, r) {
1199
+ function Fs(t, r) {
1200
1200
  const i = {};
1201
1201
  for (const a in r) {
1202
1202
  if (!Object.hasOwn(r, a)) continue;
1203
1203
  const c = nn([...t[a] ?? []]);
1204
- i[Number(a)] = nn(c).filter((u) => !Ms(u, Number(a), r));
1204
+ i[Number(a)] = nn(c).filter((u) => !zs(u, Number(a), r));
1205
1205
  }
1206
1206
  return i;
1207
1207
  }
1208
1208
  function nn(t) {
1209
1209
  return t.sort((r, i) => r - i);
1210
1210
  }
1211
- function Ls({ orientation: t = "vertical" }) {
1211
+ function Vs({ orientation: t = "vertical" }) {
1212
1212
  return {
1213
1213
  root: {
1214
1214
  alignItems: "center",
@@ -1268,19 +1268,19 @@ function Ls({ orientation: t = "vertical" }) {
1268
1268
  }
1269
1269
  };
1270
1270
  }
1271
- process.env.NODE_ENV === "development" && (As.displayName = "Accordion", Fn.displayName = "AccordionHeader", Mo.displayName = "AccordionExpandIcon", Ro.displayName = "AccordionCollapseIcon", Vn.displayName = "AccordionItem");
1272
- function Dn({
1271
+ process.env.NODE_ENV === "development" && (Rs.displayName = "Accordion", Vn.displayName = "AccordionHeader", Ro.displayName = "AccordionExpandIcon", zo.displayName = "AccordionCollapseIcon", Dn.displayName = "AccordionItem");
1272
+ function Hn({
1273
1273
  count: t = 1,
1274
1274
  children: r,
1275
1275
  render: i
1276
1276
  }) {
1277
- return /* @__PURE__ */ b.jsx(b.Fragment, { children: [...Array(t)].map((a, c) => /* @__PURE__ */ b.jsx(ko, { children: i?.(c) ?? (typeof r == "function" ? r(c) : r) }, `element-${c}`)) });
1277
+ return /* @__PURE__ */ b.jsx(b.Fragment, { children: [...Array(t)].map((a, c) => /* @__PURE__ */ b.jsx(Co, { children: i?.(c) ?? (typeof r == "function" ? r(c) : r) }, `element-${c}`)) });
1278
1278
  }
1279
- process.env.NODE_ENV === "development" && (Dn.displayName = "Repeat");
1280
- function Sl(t) {
1279
+ process.env.NODE_ENV === "development" && (Hn.displayName = "Repeat");
1280
+ function Pl(t) {
1281
1281
  return t;
1282
1282
  }
1283
- const Lo = /* @__PURE__ */ Oe(({
1283
+ const Fo = /* @__PURE__ */ Oe(({
1284
1284
  children: t,
1285
1285
  className: r,
1286
1286
  isActive: i = !1,
@@ -1298,14 +1298,14 @@ const Lo = /* @__PURE__ */ Oe(({
1298
1298
  bar: se({
1299
1299
  active: i
1300
1300
  })
1301
- }, O = Fs({ isSplit: c, isActive: i, isTailHidden: a });
1301
+ }, O = Ds({ isSplit: c, isActive: i, isTailHidden: a });
1302
1302
  return /* @__PURE__ */ b.jsx(
1303
1303
  "div",
1304
1304
  {
1305
1305
  ...d,
1306
1306
  ref: g,
1307
1307
  className: se(r, x.root),
1308
- children: /* @__PURE__ */ b.jsx(Dn, { count: c ? 2 : 1, children: (T) => /* @__PURE__ */ b.jsx("div", { "aria-hidden": !0, style: le(O.section, O[`section${T}`]), children: /* @__PURE__ */ b.jsx(Dn, { count: u, children: (k) => /* @__PURE__ */ b.jsx(
1308
+ children: /* @__PURE__ */ b.jsx(Hn, { count: c ? 2 : 1, children: (T) => /* @__PURE__ */ b.jsx("div", { "aria-hidden": !0, style: le(O.section, O[`section${T}`]), children: /* @__PURE__ */ b.jsx(Hn, { count: u, children: (k) => /* @__PURE__ */ b.jsx(
1309
1309
  me,
1310
1310
  {
1311
1311
  "aria-hidden": !0,
@@ -1325,7 +1325,7 @@ const Lo = /* @__PURE__ */ Oe(({
1325
1325
  }
1326
1326
  );
1327
1327
  }), rn = ({ ...t }) => /* @__PURE__ */ b.jsx("span", { ...t });
1328
- function Fs({ isActive: t = !1, isSplit: r = !1, isTailHidden: i = !1 }) {
1328
+ function Ds({ isActive: t = !1, isSplit: r = !1, isTailHidden: i = !1 }) {
1329
1329
  return {
1330
1330
  section: {
1331
1331
  height: "100%",
@@ -1386,8 +1386,8 @@ function Fs({ isActive: t = !1, isSplit: r = !1, isTailHidden: i = !1 }) {
1386
1386
  }
1387
1387
  };
1388
1388
  }
1389
- process.env.NODE_ENV === "development" && (Lo.displayName = "Burger", rn.displayName = "BurgerBar");
1390
- const Vs = /* @__PURE__ */ Oe(({
1389
+ process.env.NODE_ENV === "development" && (Fo.displayName = "Burger", rn.displayName = "BurgerBar");
1390
+ const Hs = /* @__PURE__ */ Oe(({
1391
1391
  children: t,
1392
1392
  className: r,
1393
1393
  style: i,
@@ -1407,7 +1407,7 @@ const Vs = /* @__PURE__ */ Oe(({
1407
1407
  root: se({
1408
1408
  active: a
1409
1409
  })
1410
- }, M = Hs();
1410
+ }, M = Ys();
1411
1411
  return /* @__PURE__ */ b.jsx(
1412
1412
  "button",
1413
1413
  {
@@ -1418,7 +1418,7 @@ const Vs = /* @__PURE__ */ Oe(({
1418
1418
  style: le(i, M.root),
1419
1419
  onClick: k,
1420
1420
  children: /* @__PURE__ */ b.jsx(
1421
- Lo,
1421
+ Fo,
1422
1422
  {
1423
1423
  isActive: a,
1424
1424
  isSplit: u,
@@ -1429,8 +1429,8 @@ const Vs = /* @__PURE__ */ Oe(({
1429
1429
  )
1430
1430
  }
1431
1431
  );
1432
- }), Ds = rn;
1433
- function Hs() {
1432
+ }), Bs = rn;
1433
+ function Ys() {
1434
1434
  return {
1435
1435
  root: {
1436
1436
  background: "transparent",
@@ -1440,10 +1440,10 @@ function Hs() {
1440
1440
  }
1441
1441
  };
1442
1442
  }
1443
- process.env.NODE_ENV === "development" && (Vs.displayName = "BurgerButton", Ds.displayName = "BurgerButtonBar");
1444
- const Bs = /* @__PURE__ */ Oe((t, r) => {
1443
+ process.env.NODE_ENV === "development" && (Hs.displayName = "BurgerButton", Bs.displayName = "BurgerButtonBar");
1444
+ const Xs = /* @__PURE__ */ Oe((t, r) => {
1445
1445
  switch (!0) {
1446
- case Ys(t): {
1446
+ case Us(t): {
1447
1447
  const { action: i, children: a, className: c, isDisabled: u, label: d, opensInNewTab: g, ...m } = t;
1448
1448
  return /* @__PURE__ */ b.jsx(
1449
1449
  "a",
@@ -1460,7 +1460,7 @@ const Bs = /* @__PURE__ */ Oe((t, r) => {
1460
1460
  }
1461
1461
  );
1462
1462
  }
1463
- case Xs(t): {
1463
+ case Gs(t): {
1464
1464
  const { action: i, children: a, className: c, isDisabled: u, label: d, type: g = "button", ...m } = t;
1465
1465
  return /* @__PURE__ */ b.jsx(
1466
1466
  "button",
@@ -1481,14 +1481,14 @@ const Bs = /* @__PURE__ */ Oe((t, r) => {
1481
1481
  return console.error("[etudes::Button] Unknown button type"), /* @__PURE__ */ b.jsx(b.Fragment, {});
1482
1482
  }
1483
1483
  });
1484
- function Ys(t) {
1484
+ function Us(t) {
1485
1485
  return typeof t.action == "string";
1486
1486
  }
1487
- function Xs(t) {
1487
+ function Gs(t) {
1488
1488
  return typeof t.action == "function";
1489
1489
  }
1490
- process.env.NODE_ENV === "development" && (Bs.displayName = "Button");
1491
- function Us(t, {
1490
+ process.env.NODE_ENV === "development" && (Xs.displayName = "Button");
1491
+ function qs(t, {
1492
1492
  isEnabled: r = !0,
1493
1493
  updatesCursor: i = !0,
1494
1494
  onDragStart: a,
@@ -1526,7 +1526,7 @@ function Us(t, {
1526
1526
  };
1527
1527
  }, [r, T, k, $]);
1528
1528
  }
1529
- function Gs(t, {
1529
+ function Ks(t, {
1530
1530
  autoStarts: r = !0,
1531
1531
  shouldInvokeInitially: i = !1,
1532
1532
  onInterval: a
@@ -1540,13 +1540,13 @@ function Gs(t, {
1540
1540
  }, [t, i, g]);
1541
1541
  return Ee(() => (r && t > 0 && m(), g), [r, t, m, g, ...c]), { start: m, stop: g };
1542
1542
  }
1543
- function qs() {
1543
+ function Ws() {
1544
1544
  return typeof window > "u" ? !1 : !!(typeof window.navigator < "u" && (window.navigator.maxTouchPoints > 0 || "msMaxTouchPoints" in window.navigator && window.navigator.msMaxTouchPoints > 0) || window.matchMedia("(pointer: coarse)").matches || window.matchMedia("(hover: none)").matches || "ontouchstart" in window || "ontouchstart" in window.document.documentElement);
1545
1545
  }
1546
- function Ks() {
1547
- return dr(() => qs(), []);
1546
+ function Js() {
1547
+ return ln(() => Ws(), []);
1548
1548
  }
1549
- const Ws = /* @__PURE__ */ Oe(({
1549
+ const Zs = /* @__PURE__ */ Oe(({
1550
1550
  autoAdvanceInterval: t = 0,
1551
1551
  index: r = 0,
1552
1552
  isDragEnabled: i = !0,
@@ -1559,14 +1559,14 @@ const Ws = /* @__PURE__ */ Oe(({
1559
1559
  ItemComponent: x,
1560
1560
  ...O
1561
1561
  }, T) => {
1562
- const k = we(void 0), $ = we(null), M = we(void 0), S = we(void 0), C = we(void 0), ee = 1e3, W = Se(d), X = Se(g), J = Se(m), E = we(!1), I = we(!1), N = Ks(), [A, B] = _e(go($, c)), [q, oe] = _e(!1), Z = Qs({ scrollSnapEnabled: N || !q, orientation: c }), Y = t > 0, D = ge(() => {
1562
+ const k = we(void 0), $ = we(null), M = we(void 0), S = we(void 0), C = we(void 0), ee = 1e3, W = Se(d), X = Se(g), J = Se(m), E = we(!1), I = we(!1), N = Js(), [A, B] = _e(go($, c)), [q, oe] = _e(!1), Z = ta({ scrollSnapEnabled: N || !q, orientation: c }), Y = t > 0, D = ge(() => {
1563
1563
  C.current !== void 0 && (clearTimeout(C.current), C.current = void 0);
1564
1564
  }, []), z = ge(() => {
1565
1565
  D(), C.current = setTimeout(() => {
1566
1566
  clearTimeout(C.current), C.current = void 0;
1567
1567
  }, ee);
1568
1568
  }, [ee, D]), te = ge(() => {
1569
- Js($, r, c), z();
1569
+ Qs($, r, c), z();
1570
1570
  }, [r, c]), ne = ge(() => {
1571
1571
  B(go($, c));
1572
1572
  }, [c]), ae = ge((G) => {
@@ -1605,10 +1605,10 @@ const Ws = /* @__PURE__ */ Oe(({
1605
1605
  I.current = !1;
1606
1606
  }));
1607
1607
  }, [a.length, r, c, u, ne]);
1608
- return Us($, {
1608
+ return qs($, {
1609
1609
  isEnabled: !N && i && a.length > 1,
1610
1610
  onDragMove: U
1611
- }), Gs(q || !Y ? -1 : t, {
1611
+ }), Ks(q || !Y ? -1 : t, {
1612
1612
  onInterval: P
1613
1613
  }, [r]), Re(() => {
1614
1614
  !Y || N || (q ? W.current?.() : X.current?.());
@@ -1630,7 +1630,7 @@ const Ws = /* @__PURE__ */ Oe(({
1630
1630
  onPointerDown: ae,
1631
1631
  onPointerLeave: F,
1632
1632
  onPointerUp: F,
1633
- children: /* @__PURE__ */ b.jsx("div", { ref: $, style: le(Z.viewport), children: /* @__PURE__ */ b.jsx(ln, { in: a, children: ({ style: G, ...fe }, he) => /* @__PURE__ */ b.jsx("div", { style: le(Z.itemContainer), children: /* @__PURE__ */ b.jsx(
1633
+ children: /* @__PURE__ */ b.jsx("div", { ref: $, style: le(Z.viewport), children: /* @__PURE__ */ b.jsx(un, { in: a, children: ({ style: G, ...fe }, he) => /* @__PURE__ */ b.jsx("div", { style: le(Z.itemContainer), children: /* @__PURE__ */ b.jsx(
1634
1634
  x,
1635
1635
  {
1636
1636
  "aria-hidden": he !== r,
@@ -1642,7 +1642,7 @@ const Ws = /* @__PURE__ */ Oe(({
1642
1642
  }
1643
1643
  );
1644
1644
  });
1645
- function Js(t, r, i) {
1645
+ function Qs(t, r, i) {
1646
1646
  const a = t?.current;
1647
1647
  if (!a) return;
1648
1648
  const c = i === "horizontal" ? 0 : a.clientHeight * r, u = i === "horizontal" ? a.clientWidth * r : 0;
@@ -1653,10 +1653,10 @@ function go(t, r) {
1653
1653
  if (!i) return;
1654
1654
  const a = [];
1655
1655
  for (let c = 0; c < i.children.length; c++)
1656
- a.push(Zs(c, t, r));
1656
+ a.push(ea(c, t, r));
1657
1657
  return a;
1658
1658
  }
1659
- function Zs(t, r, i) {
1659
+ function ea(t, r, i) {
1660
1660
  const a = r?.current, c = a?.children[t];
1661
1661
  if (!c) return 0;
1662
1662
  const u = xe.intersecting(c, a);
@@ -1670,7 +1670,7 @@ function Zs(t, r, i) {
1670
1670
  return console.error(`[etudes::Carousel] Unsupported orientation: ${i}`), NaN;
1671
1671
  }
1672
1672
  }
1673
- function Qs({ scrollSnapEnabled: t = !1, orientation: r = "horizontal" }) {
1673
+ function ta({ scrollSnapEnabled: t = !1, orientation: r = "horizontal" }) {
1674
1674
  return {
1675
1675
  viewport: {
1676
1676
  alignItems: "center",
@@ -1706,14 +1706,14 @@ function Qs({ scrollSnapEnabled: t = !1, orientation: r = "horizontal" }) {
1706
1706
  }
1707
1707
  };
1708
1708
  }
1709
- process.env.NODE_ENV === "development" && (Ws.displayName = "Carousel");
1710
- function ea(t) {
1709
+ process.env.NODE_ENV === "development" && (Zs.displayName = "Carousel");
1710
+ function na(t) {
1711
1711
  const r = we(void 0);
1712
1712
  return Ee(() => {
1713
1713
  r.current = t;
1714
1714
  }, [t]), r.current;
1715
1715
  }
1716
- const Fo = /* @__PURE__ */ Oe(({
1716
+ const Vo = /* @__PURE__ */ Oe(({
1717
1717
  className: t,
1718
1718
  emptyValue: r = "",
1719
1719
  isDisabled: i = !1,
@@ -1750,8 +1750,8 @@ const Fo = /* @__PURE__ */ Oe(({
1750
1750
  }
1751
1751
  );
1752
1752
  });
1753
- process.env.NODE_ENV === "development" && (Fo.displayName = "TextField");
1754
- const ta = /* @__PURE__ */ Oe(({
1753
+ process.env.NODE_ENV === "development" && (Vo.displayName = "TextField");
1754
+ const ra = /* @__PURE__ */ Oe(({
1755
1755
  children: t,
1756
1756
  style: r,
1757
1757
  allowsInput: i = !0,
@@ -1776,23 +1776,23 @@ const ta = /* @__PURE__ */ Oe(({
1776
1776
  }, S = (I) => {
1777
1777
  let N = I;
1778
1778
  return isNaN(c) || (N = Math.max(c, N)), isNaN(a) || (N = Math.min(a, N)), N;
1779
- }, [C, ee] = _e($(u)), W = ea(u), X = !isNaN(a) && u + 1 > a, J = !isNaN(c) && u - 1 < c;
1779
+ }, [C, ee] = _e($(u)), W = na(u), X = !isNaN(a) && u + 1 > a, J = !isNaN(c) && u - 1 < c;
1780
1780
  Ee(() => {
1781
1781
  if (W === void 0 || W === u) return;
1782
1782
  const I = S(u);
1783
1783
  ee($(I));
1784
1784
  }, [u, c, a]);
1785
1785
  const E = Fe(t, {
1786
- textField: Hn,
1787
- addButton: Bn,
1788
- subscribeButton: Yn
1786
+ textField: Bn,
1787
+ addButton: Yn,
1788
+ subscribeButton: Xn
1789
1789
  });
1790
1790
  return /* @__PURE__ */ b.jsxs("div", { ...g, ref: m, style: le(r, Gt.root), children: [
1791
1791
  /* @__PURE__ */ b.jsx(
1792
1792
  me,
1793
1793
  {
1794
1794
  className: se({ disabled: J }),
1795
- element: E.subscribeButton ?? /* @__PURE__ */ b.jsx(Yn, {}),
1795
+ element: E.subscribeButton ?? /* @__PURE__ */ b.jsx(Xn, {}),
1796
1796
  style: le(Gt.subtract),
1797
1797
  onClick: () => x()
1798
1798
  }
@@ -1800,7 +1800,7 @@ const ta = /* @__PURE__ */ Oe(({
1800
1800
  /* @__PURE__ */ b.jsx(
1801
1801
  me,
1802
1802
  {
1803
- element: E.textField ?? /* @__PURE__ */ b.jsx(Hn, {}),
1803
+ element: E.textField ?? /* @__PURE__ */ b.jsx(Bn, {}),
1804
1804
  isDisabled: !i,
1805
1805
  style: le(Gt.textField),
1806
1806
  value: C,
@@ -1812,13 +1812,13 @@ const ta = /* @__PURE__ */ Oe(({
1812
1812
  me,
1813
1813
  {
1814
1814
  className: se({ disabled: X }),
1815
- element: E.addButton ?? /* @__PURE__ */ b.jsx(Bn, {}),
1815
+ element: E.addButton ?? /* @__PURE__ */ b.jsx(Yn, {}),
1816
1816
  style: le(Gt.add),
1817
1817
  onClick: () => O()
1818
1818
  }
1819
1819
  )
1820
1820
  ] });
1821
- }), Hn = ({ ...t }) => /* @__PURE__ */ b.jsx(Fo, { ...t }), Bn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), Yn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), Gt = {
1821
+ }), Bn = ({ ...t }) => /* @__PURE__ */ b.jsx(Vo, { ...t }), Yn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), Xn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), Gt = {
1822
1822
  root: {
1823
1823
  alignItems: "stretch",
1824
1824
  display: "flex",
@@ -1835,8 +1835,8 @@ const ta = /* @__PURE__ */ Oe(({
1835
1835
  width: "100%"
1836
1836
  }
1837
1837
  };
1838
- process.env.NODE_ENV === "development" && (ta.displayName = "Counter", Bn.displayName = "CounterAddButton", Yn.displayName = "CounterSubtractButton", Hn.displayName = "CounterTextField");
1839
- function na(t, { onChange: r }) {
1838
+ process.env.NODE_ENV === "development" && (ra.displayName = "Counter", Yn.displayName = "CounterAddButton", Xn.displayName = "CounterSubtractButton", Bn.displayName = "CounterTextField");
1839
+ function oa(t, { onChange: r }) {
1840
1840
  const i = Se(r);
1841
1841
  Re(() => {
1842
1842
  const a = t.current;
@@ -1853,7 +1853,7 @@ function na(t, { onChange: r }) {
1853
1853
  };
1854
1854
  }, [t.current]);
1855
1855
  }
1856
- function ra() {
1856
+ function ia() {
1857
1857
  const [t, r] = _e($e.zero);
1858
1858
  return Re(() => {
1859
1859
  const i = () => {
@@ -1866,13 +1866,13 @@ function ra() {
1866
1866
  }, []), t;
1867
1867
  }
1868
1868
  function nt(t) {
1869
- const [r, i] = _e(xe.zero), a = ra();
1869
+ const [r, i] = _e(xe.zero), a = ia();
1870
1870
  return hr(t, {
1871
1871
  onResize: (c) => {
1872
1872
  const u = xe.from(c);
1873
1873
  u && i(u);
1874
1874
  }
1875
- }), na(t, {
1875
+ }), oa(t, {
1876
1876
  onChange: (c) => {
1877
1877
  const u = xe.from(c);
1878
1878
  u && i(u);
@@ -1929,7 +1929,7 @@ var on;
1929
1929
  }).filter(Boolean).join(", ");
1930
1930
  }
1931
1931
  })(on || (on = {}));
1932
- function oa({
1932
+ function sa({
1933
1933
  src: t,
1934
1934
  srcSet: r,
1935
1935
  sizes: i
@@ -1952,7 +1952,7 @@ function oa({
1952
1952
  };
1953
1953
  }, [t, r, i]);
1954
1954
  }
1955
- function Vo({
1955
+ function Do({
1956
1956
  src: t,
1957
1957
  srcSet: r,
1958
1958
  sizes: i
@@ -1965,21 +1965,21 @@ function Vo({
1965
1965
  const [g, m] = _e(), x = Se(c), O = Se(u), T = Se(d), k = ge((S) => {
1966
1966
  a || m(void 0), x.current?.(S);
1967
1967
  }, [a]), $ = ge((S) => {
1968
- m(ia(S)), O.current?.(S);
1968
+ m(aa(S)), O.current?.(S);
1969
1969
  }, []), M = ge((S) => {
1970
1970
  a || m(void 0), T.current?.(S);
1971
1971
  }, [a]);
1972
- return oa({ src: t, srcSet: r, sizes: i }, {
1972
+ return sa({ src: t, srcSet: r, sizes: i }, {
1973
1973
  onLoadStart: k,
1974
1974
  onLoadComplete: $,
1975
1975
  onLoadError: M
1976
1976
  }), g;
1977
1977
  }
1978
- function ia(t) {
1978
+ function aa(t) {
1979
1979
  if (t && typeof t.width == "number" && typeof t.height == "number")
1980
1980
  return $e.make(t.width, t.height);
1981
1981
  }
1982
- const Do = /* @__PURE__ */ Oe(({
1982
+ const Ho = /* @__PURE__ */ Oe(({
1983
1983
  alt: t,
1984
1984
  source: r,
1985
1985
  loadingMode: i,
@@ -1991,7 +1991,7 @@ const Do = /* @__PURE__ */ Oe(({
1991
1991
  onSizeChange: m,
1992
1992
  ...x
1993
1993
  }, O) => {
1994
- const T = r ? on.asProps(r) : void 0, k = Vo({
1994
+ const T = r ? on.asProps(r) : void 0, k = Do({
1995
1995
  src: a,
1996
1996
  srcSet: T?.srcSet,
1997
1997
  sizes: T?.sizes
@@ -1999,7 +1999,7 @@ const Do = /* @__PURE__ */ Oe(({
1999
1999
  onLoadStart: u,
2000
2000
  onLoadComplete: d,
2001
2001
  onLoadError: g
2002
- }), $ = sa();
2002
+ }), $ = ca();
2003
2003
  return Ee(() => {
2004
2004
  m?.(k);
2005
2005
  }, [k?.width, k?.height]), /* @__PURE__ */ b.jsx(
@@ -2015,15 +2015,15 @@ const Do = /* @__PURE__ */ Oe(({
2015
2015
  }
2016
2016
  );
2017
2017
  });
2018
- function sa() {
2018
+ function ca() {
2019
2019
  return {
2020
2020
  root: {
2021
2021
  fontSize: "0"
2022
2022
  }
2023
2023
  };
2024
2024
  }
2025
- process.env.NODE_ENV === "development" && (Do.displayName = "Image");
2026
- const Ho = /* @__PURE__ */ Oe(({
2025
+ process.env.NODE_ENV === "development" && (Ho.displayName = "Image");
2026
+ const Bo = /* @__PURE__ */ Oe(({
2027
2027
  alt: t,
2028
2028
  loadingMode: r,
2029
2029
  sources: i = [],
@@ -2036,7 +2036,7 @@ const Ho = /* @__PURE__ */ Oe(({
2036
2036
  }, x) => /* @__PURE__ */ b.jsxs("picture", { ...m, ref: x, children: [
2037
2037
  i.map((O, T) => /* @__PURE__ */ b.jsx("source", { ...on.asProps(O) }, T)),
2038
2038
  /* @__PURE__ */ b.jsx(
2039
- Do,
2039
+ Ho,
2040
2040
  {
2041
2041
  alt: t,
2042
2042
  loadingMode: r,
@@ -2049,8 +2049,8 @@ const Ho = /* @__PURE__ */ Oe(({
2049
2049
  }
2050
2050
  )
2051
2051
  ] }));
2052
- process.env.NODE_ENV === "development" && (Ho.displayName = "Picture");
2053
- const aa = /* @__PURE__ */ Oe(({
2052
+ process.env.NODE_ENV === "development" && (Bo.displayName = "Picture");
2053
+ const la = /* @__PURE__ */ Oe(({
2054
2054
  children: t,
2055
2055
  alt: r,
2056
2056
  aspectRatio: i = NaN,
@@ -2069,23 +2069,23 @@ const aa = /* @__PURE__ */ Oe(({
2069
2069
  X > 1 ? Math.max(W.width, W.height * ee) : Math.max(W.width, Math.max(W.height, W.width / ee) * ee),
2070
2070
  X > 1 ? Math.max(W.height, Math.max(W.width, W.height * ee) / ee) : Math.max(W.height, W.width / ee)
2071
2071
  ), E = Fe(t, {
2072
- content: Bo,
2073
- viewport: Yo
2072
+ content: Yo,
2073
+ viewport: Xo
2074
2074
  });
2075
2075
  return /* @__PURE__ */ b.jsxs(
2076
2076
  "div",
2077
2077
  {
2078
2078
  ...O,
2079
2079
  ref: M,
2080
- style: le(d, An.root),
2080
+ style: le(d, Mn.root),
2081
2081
  children: [
2082
2082
  /* @__PURE__ */ b.jsx(
2083
- Ho,
2083
+ Bo,
2084
2084
  {
2085
2085
  alt: r,
2086
2086
  sources: a,
2087
2087
  src: u,
2088
- style: le(An.viewport, {
2088
+ style: le(Mn.viewport, {
2089
2089
  height: `${J.height}px`,
2090
2090
  maxWidth: "unset",
2091
2091
  width: `${J.width}px`
@@ -2100,7 +2100,7 @@ const aa = /* @__PURE__ */ Oe(({
2100
2100
  me,
2101
2101
  {
2102
2102
  element: E.viewport,
2103
- style: le(An.viewport, {
2103
+ style: le(Mn.viewport, {
2104
2104
  height: `${J.height}px`,
2105
2105
  pointerEvents: "none",
2106
2106
  width: `${J.width}px`
@@ -2111,7 +2111,7 @@ const aa = /* @__PURE__ */ Oe(({
2111
2111
  ]
2112
2112
  }
2113
2113
  );
2114
- }), Bo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Yo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), An = {
2114
+ }), Yo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Xo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Mn = {
2115
2115
  root: {
2116
2116
  overflow: "hidden"
2117
2117
  },
@@ -2123,8 +2123,8 @@ const aa = /* @__PURE__ */ Oe(({
2123
2123
  transform: "translate(-50%, -50%)"
2124
2124
  }
2125
2125
  };
2126
- process.env.NODE_ENV === "development" && (aa.displayName = "CoverImage", Bo.displayName = "CoverImageContent", Yo.displayName = "CoverImageViewport");
2127
- function ca(t, {
2126
+ process.env.NODE_ENV === "development" && (la.displayName = "CoverImage", Yo.displayName = "CoverImageContent", Xo.displayName = "CoverImageViewport");
2127
+ function ua(t, {
2128
2128
  onLoadStart: r,
2129
2129
  onLoadComplete: i,
2130
2130
  onLoadError: a
@@ -2138,7 +2138,7 @@ function ca(t, {
2138
2138
  };
2139
2139
  }, [t]);
2140
2140
  }
2141
- function la(t, {
2141
+ function fa(t, {
2142
2142
  preservesSizeBetweenLoads: r = !0,
2143
2143
  onLoadStart: i,
2144
2144
  onLoadComplete: a,
@@ -2147,21 +2147,21 @@ function la(t, {
2147
2147
  const [u, d] = _e(), g = Se(i), m = Se(a), x = Se(c), O = ge(($) => {
2148
2148
  r || d(void 0), g.current?.($);
2149
2149
  }, [r]), T = ge(($) => {
2150
- d(ua($)), m.current?.($);
2150
+ d(da($)), m.current?.($);
2151
2151
  }, []), k = ge(($) => {
2152
2152
  r || d(void 0), x.current?.($);
2153
2153
  }, [r]);
2154
- return ca(t, {
2154
+ return ua(t, {
2155
2155
  onLoadStart: O,
2156
2156
  onLoadComplete: T,
2157
2157
  onLoadError: k
2158
2158
  }), u;
2159
2159
  }
2160
- function ua(t) {
2160
+ function da(t) {
2161
2161
  if (t && typeof t.videoWidth == "number" && typeof t.videoHeight == "number")
2162
2162
  return $e.make(t.videoWidth, t.videoHeight);
2163
2163
  }
2164
- const Xo = /* @__PURE__ */ Oe(({
2164
+ const Uo = /* @__PURE__ */ Oe(({
2165
2165
  autoLoop: t = !0,
2166
2166
  autoPlay: r = !0,
2167
2167
  hasControls: i = !1,
@@ -2182,11 +2182,11 @@ const Xo = /* @__PURE__ */ Oe(({
2182
2182
  onTimeUpdate: ee,
2183
2183
  ...W
2184
2184
  }, X) => {
2185
- const J = we(null), E = X ?? J, I = la(d, {
2185
+ const J = we(null), E = X ?? J, I = fa(d, {
2186
2186
  onLoadStart: T,
2187
2187
  onLoadComplete: k,
2188
2188
  onLoadError: $
2189
- }), N = fa();
2189
+ }), N = pa();
2190
2190
  Ee(() => {
2191
2191
  if (!E.current) return;
2192
2192
  if (d.toLowerCase().endsWith(".m3u8")) {
@@ -2244,15 +2244,15 @@ const Xo = /* @__PURE__ */ Oe(({
2244
2244
  }
2245
2245
  );
2246
2246
  });
2247
- function fa() {
2247
+ function pa() {
2248
2248
  return {
2249
2249
  root: {
2250
2250
  fontSize: "0"
2251
2251
  }
2252
2252
  };
2253
2253
  }
2254
- process.env.NODE_ENV === "development" && (Xo.displayName = "Video");
2255
- const da = /* @__PURE__ */ Oe(({
2254
+ process.env.NODE_ENV === "development" && (Uo.displayName = "Video");
2255
+ const ha = /* @__PURE__ */ Oe(({
2256
2256
  className: t,
2257
2257
  children: r,
2258
2258
  style: i,
@@ -2281,8 +2281,8 @@ const da = /* @__PURE__ */ Oe(({
2281
2281
  Z > 1 ? Math.max(A.width, A.height * oe) : Math.max(A.width, Math.max(A.height, A.width / oe) * oe),
2282
2282
  Z > 1 ? Math.max(A.height, Math.max(A.width, A.height * oe) / oe) : Math.max(A.height, A.width / oe)
2283
2283
  ), D = Fe(r, {
2284
- content: Uo,
2285
- viewport: Go
2284
+ content: Go,
2285
+ viewport: qo
2286
2286
  });
2287
2287
  return /* @__PURE__ */ b.jsxs(
2288
2288
  "div",
@@ -2290,10 +2290,10 @@ const da = /* @__PURE__ */ Oe(({
2290
2290
  ...J,
2291
2291
  ref: N,
2292
2292
  className: t,
2293
- style: le(i, Mn.root),
2293
+ style: le(i, Rn.root),
2294
2294
  children: [
2295
2295
  /* @__PURE__ */ b.jsx(
2296
- Xo,
2296
+ Uo,
2297
2297
  {
2298
2298
  autoLoop: c,
2299
2299
  autoPlay: u,
@@ -2302,7 +2302,7 @@ const da = /* @__PURE__ */ Oe(({
2302
2302
  playsInline: m,
2303
2303
  posterSrc: x,
2304
2304
  src: O,
2305
- style: le(Mn.viewport, {
2305
+ style: le(Rn.viewport, {
2306
2306
  width: `${Y.width}px`,
2307
2307
  height: `${Y.height}px`,
2308
2308
  maxWidth: "unset"
@@ -2322,7 +2322,7 @@ const da = /* @__PURE__ */ Oe(({
2322
2322
  me,
2323
2323
  {
2324
2324
  element: D.viewport,
2325
- style: le(Mn.viewport, {
2325
+ style: le(Rn.viewport, {
2326
2326
  height: `${Y.height}px`,
2327
2327
  pointerEvents: "none",
2328
2328
  width: `${Y.width}px`
@@ -2333,7 +2333,7 @@ const da = /* @__PURE__ */ Oe(({
2333
2333
  ]
2334
2334
  }
2335
2335
  );
2336
- }), Uo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Go = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Mn = {
2336
+ }), Go = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), qo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), Rn = {
2337
2337
  root: {
2338
2338
  overflow: "hidden"
2339
2339
  },
@@ -2345,8 +2345,8 @@ const da = /* @__PURE__ */ Oe(({
2345
2345
  transform: "translate(-50%, -50%)"
2346
2346
  }
2347
2347
  };
2348
- process.env.NODE_ENV === "development" && (da.displayName = "CoverVideo", Uo.displayName = "CoverVideoContent", Go.displayName = "CoverVideoViewport");
2349
- const pa = /* @__PURE__ */ Oe(({
2348
+ process.env.NODE_ENV === "development" && (ha.displayName = "CoverVideo", Go.displayName = "CoverVideoContent", qo.displayName = "CoverVideoViewport");
2349
+ const ga = /* @__PURE__ */ Oe(({
2350
2350
  children: t,
2351
2351
  style: r,
2352
2352
  angle: i = 0,
@@ -2358,16 +2358,16 @@ const pa = /* @__PURE__ */ Oe(({
2358
2358
  ...m
2359
2359
  }, x) => {
2360
2360
  const O = u * 2, T = Math.max(0, Math.min(360, a)), k = Fe(t, {
2361
- track: Xn,
2362
- knob: Un
2363
- }), $ = ga({ angle: i, diameter: O });
2361
+ track: Un,
2362
+ knob: Gn
2363
+ }), $ = va({ angle: i, diameter: O });
2364
2364
  return /* @__PURE__ */ b.jsxs("div", { ...m, ref: x, style: le(r, $.root), children: [
2365
2365
  /* @__PURE__ */ b.jsx("div", { style: $.trackContainer, children: /* @__PURE__ */ b.jsx("svg", { height: O, style: $.svgContainer, viewBox: `0 0 ${O} ${O}`, width: O, children: /* @__PURE__ */ b.jsx(
2366
2366
  me,
2367
2367
  {
2368
2368
  cx: u,
2369
2369
  cy: u,
2370
- element: k.track ?? /* @__PURE__ */ b.jsx(Xn, {}),
2370
+ element: k.track ?? /* @__PURE__ */ b.jsx(Un, {}),
2371
2371
  fill: "none",
2372
2372
  r: u - g / 2,
2373
2373
  strokeDasharray: d,
@@ -2377,14 +2377,14 @@ const pa = /* @__PURE__ */ Oe(({
2377
2377
  /* @__PURE__ */ b.jsx("div", { style: le($.knobContainer), children: /* @__PURE__ */ b.jsx("svg", { style: $.svgContainer, viewBox: `0 0 ${O} ${O}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ b.jsx(
2378
2378
  me,
2379
2379
  {
2380
- d: ha(u, u, u - c / 2 - (g - c) / 2, -T / 2, T / 2),
2381
- element: k.knob ?? /* @__PURE__ */ b.jsx(Un, {}),
2380
+ d: ma(u, u, u - c / 2 - (g - c) / 2, -T / 2, T / 2),
2381
+ element: k.knob ?? /* @__PURE__ */ b.jsx(Gn, {}),
2382
2382
  fill: "none",
2383
2383
  strokeWidth: c
2384
2384
  }
2385
2385
  ) }) })
2386
2386
  ] });
2387
- }), Xn = ({ ...t }) => /* @__PURE__ */ b.jsx("circle", { ...t }), Un = ({ ...t }) => /* @__PURE__ */ b.jsx("path", { ...t });
2387
+ }), Un = ({ ...t }) => /* @__PURE__ */ b.jsx("circle", { ...t }), Gn = ({ ...t }) => /* @__PURE__ */ b.jsx("path", { ...t });
2388
2388
  function mo(t, r, i, a) {
2389
2389
  const c = (a - 90) * Math.PI / 180;
2390
2390
  return {
@@ -2392,7 +2392,7 @@ function mo(t, r, i, a) {
2392
2392
  y: r + i * Math.sin(c)
2393
2393
  };
2394
2394
  }
2395
- function ha(t, r, i, a, c) {
2395
+ function ma(t, r, i, a, c) {
2396
2396
  const u = mo(t, r, i, c), d = mo(t, r, i, a), g = c - a <= 180 ? "0" : "1";
2397
2397
  return [
2398
2398
  "M",
@@ -2408,7 +2408,7 @@ function ha(t, r, i, a, c) {
2408
2408
  d.y
2409
2409
  ].join(" ");
2410
2410
  }
2411
- function ga({ diameter: t = 0, angle: r = 0 }) {
2411
+ function va({ diameter: t = 0, angle: r = 0 }) {
2412
2412
  return {
2413
2413
  root: {
2414
2414
  height: `${t}px`,
@@ -2442,8 +2442,8 @@ function ga({ diameter: t = 0, angle: r = 0 }) {
2442
2442
  }
2443
2443
  };
2444
2444
  }
2445
- process.env.NODE_ENV === "development" && (pa.displayName = "Dial", Xn.displayName = "DialTrack", Un.displayName = "DialKnob");
2446
- const ma = /* @__PURE__ */ Oe(({
2445
+ process.env.NODE_ENV === "development" && (ga.displayName = "Dial", Un.displayName = "DialTrack", Gn.displayName = "DialKnob");
2446
+ const ya = /* @__PURE__ */ Oe(({
2447
2447
  children: t,
2448
2448
  className: r,
2449
2449
  style: i,
@@ -2473,12 +2473,12 @@ const ma = /* @__PURE__ */ Oe(({
2473
2473
  ToggleComponent: q,
2474
2474
  ...oe
2475
2475
  }, Z) => {
2476
- const Y = we(null), D = nt(Y), z = k.length, te = ba(k, $, M, m), ne = O ?? (S === "vertical" ? D.height : D.width), ae = ne * te + T * (te - 1), F = ya(C, k), [R, P] = _e(u ?? !0), U = wa({ isCollapsed: R, collectionPadding: c, isInverted: d, maxVisibleItems: $, menuLength: ae, numItems: z, orientation: S }), K = Fe(t, {
2477
- collapseIcon: qo,
2478
- collection: Gn,
2479
- expandIcon: Ko,
2480
- item: qn,
2481
- toggle: Kn
2476
+ const Y = we(null), D = nt(Y), z = k.length, te = Ea(k, $, M, m), ne = O ?? (S === "vertical" ? D.height : D.width), ae = ne * te + T * (te - 1), F = ba(C, k), [R, P] = _e(u ?? !0), U = Na({ isCollapsed: R, collectionPadding: c, isInverted: d, maxVisibleItems: $, menuLength: ae, numItems: z, orientation: S }), K = Fe(t, {
2477
+ collapseIcon: Ko,
2478
+ collection: qn,
2479
+ expandIcon: Wo,
2480
+ item: Kn,
2481
+ toggle: Wn
2482
2482
  }), G = () => {
2483
2483
  R && (P(!1), E?.());
2484
2484
  }, fe = () => {
@@ -2531,7 +2531,7 @@ const ma = /* @__PURE__ */ Oe(({
2531
2531
  "aria-expanded": !R,
2532
2532
  "aria-haspopup": "listbox",
2533
2533
  className: se({ collapsed: R, expanded: !R }),
2534
- element: K.toggle ?? /* @__PURE__ */ b.jsx(Kn, {}),
2534
+ element: K.toggle ?? /* @__PURE__ */ b.jsx(Wn, {}),
2535
2535
  style: le(U.toggle),
2536
2536
  onClick: he,
2537
2537
  children: [
@@ -2550,7 +2550,7 @@ const ma = /* @__PURE__ */ Oe(({
2550
2550
  /* @__PURE__ */ b.jsx(
2551
2551
  me,
2552
2552
  {
2553
- element: K.collection ?? /* @__PURE__ */ b.jsx(Gn, {}),
2553
+ element: K.collection ?? /* @__PURE__ */ b.jsx(qn, {}),
2554
2554
  isSelectionTogglable: x,
2555
2555
  ItemComponent: B,
2556
2556
  itemLength: ne,
@@ -2566,23 +2566,23 @@ const ma = /* @__PURE__ */ Oe(({
2566
2566
  onDeselectAt: J,
2567
2567
  onSelectAt: ue,
2568
2568
  onSelectionChange: N,
2569
- children: !B && (K.item ?? /* @__PURE__ */ b.jsx(qn, {}))
2569
+ children: !B && (K.item ?? /* @__PURE__ */ b.jsx(Kn, {}))
2570
2570
  }
2571
2571
  )
2572
2572
  ] })
2573
2573
  }
2574
2574
  );
2575
- }), Gn = mr, qn = kt, Kn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), qo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, "aria-hidden": !0, children: t }), Ko = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, "aria-hidden": !0, children: t });
2576
- function va(t, r) {
2575
+ }), qn = mr, Kn = kt, Wn = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: t }), Ko = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, "aria-hidden": !0, children: t }), Wo = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, "aria-hidden": !0, children: t });
2576
+ function xa(t, r) {
2577
2577
  return !!(isNaN(t) || t >= r.length || t < 0);
2578
2578
  }
2579
- function ya(t, r) {
2580
- return xa(t).filter((i) => !va(i, r));
2579
+ function ba(t, r) {
2580
+ return wa(t).filter((i) => !xa(i, r));
2581
2581
  }
2582
- function xa(t) {
2582
+ function wa(t) {
2583
2583
  return t.sort((r, i) => r - i);
2584
2584
  }
2585
- function ba(t, r, i, a) {
2585
+ function Ea(t, r, i, a) {
2586
2586
  const c = t.length;
2587
2587
  switch (a) {
2588
2588
  case "grid": {
@@ -2593,7 +2593,7 @@ function ba(t, r, i, a) {
2593
2593
  return r < 0 ? c : Math.min(c, r);
2594
2594
  }
2595
2595
  }
2596
- function wa({ isCollapsed: t = !0, isInverted: r = !1, collectionPadding: i = 0, maxVisibleItems: a = 0, menuLength: c = NaN, numItems: u = 0, orientation: d = "vertical" }) {
2596
+ function Na({ isCollapsed: t = !0, isInverted: r = !1, collectionPadding: i = 0, maxVisibleItems: a = 0, menuLength: c = NaN, numItems: u = 0, orientation: d = "vertical" }) {
2597
2597
  return {
2598
2598
  root: {
2599
2599
  alignItems: "center",
@@ -2656,9 +2656,9 @@ function wa({ isCollapsed: t = !0, isInverted: r = !1, collectionPadding: i = 0,
2656
2656
  }
2657
2657
  };
2658
2658
  }
2659
- process.env.NODE_ENV === "development" && (ma.displayName = "Dropdown", Gn.displayName = "DropdownCollection", qo.displayName = "DropdownCollapseIcon", Ko.displayName = "DropdownExpandIcon", qn.displayName = "DropdownItem", Kn.displayName = "DropdownToggle");
2660
- const Wo = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", Ea = Wo + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", Na = "[" + Wo + "][" + Ea + "]*", Sa = new RegExp("^" + Na + "$");
2661
- function Jo(t, r) {
2659
+ process.env.NODE_ENV === "development" && (ya.displayName = "Dropdown", qn.displayName = "DropdownCollection", Ko.displayName = "DropdownCollapseIcon", Wo.displayName = "DropdownExpandIcon", Kn.displayName = "DropdownItem", Wn.displayName = "DropdownToggle");
2660
+ const Jo = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", Sa = Jo + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", Ta = "[" + Jo + "][" + Sa + "]*", _a = new RegExp("^" + Ta + "$");
2661
+ function Zo(t, r) {
2662
2662
  const i = [];
2663
2663
  let a = r.exec(t);
2664
2664
  for (; a; ) {
@@ -2671,20 +2671,20 @@ function Jo(t, r) {
2671
2671
  }
2672
2672
  return i;
2673
2673
  }
2674
- const un = function(t) {
2675
- const r = Sa.exec(t);
2674
+ const fn = function(t) {
2675
+ const r = _a.exec(t);
2676
2676
  return !(r === null || typeof r > "u");
2677
2677
  };
2678
- function Ta(t) {
2678
+ function Oa(t) {
2679
2679
  return typeof t < "u";
2680
2680
  }
2681
- const _a = {
2681
+ const Pa = {
2682
2682
  allowBooleanAttributes: !1,
2683
2683
  //A tag can have attributes without any value
2684
2684
  unpairedTags: []
2685
2685
  };
2686
- function Oa(t, r) {
2687
- r = Object.assign({}, _a, r);
2686
+ function Ia(t, r) {
2687
+ r = Object.assign({}, Pa, r);
2688
2688
  const i = [];
2689
2689
  let a = !1, c = !1;
2690
2690
  t[0] === "\uFEFF" && (t = t.substr(1));
@@ -2703,11 +2703,11 @@ function Oa(t, r) {
2703
2703
  for (; u < t.length && t[u] !== ">" && t[u] !== " " && t[u] !== " " && t[u] !== `
2704
2704
  ` && t[u] !== "\r"; u++)
2705
2705
  m += t[u];
2706
- if (m = m.trim(), m[m.length - 1] === "/" && (m = m.substring(0, m.length - 1), u--), !Ma(m)) {
2706
+ if (m = m.trim(), m[m.length - 1] === "/" && (m = m.substring(0, m.length - 1), u--), !za(m)) {
2707
2707
  let T;
2708
2708
  return m.trim().length === 0 ? T = "Invalid space after '<'." : T = "Tag '" + m + "' is an invalid name.", ke("InvalidTag", T, Me(t, u));
2709
2709
  }
2710
- const x = ka(t, u);
2710
+ const x = $a(t, u);
2711
2711
  if (x === !1)
2712
2712
  return ke("InvalidAttr", "Attributes for '" + m + "' have open quote.", Me(t, u));
2713
2713
  let O = x.value;
@@ -2756,7 +2756,7 @@ function Oa(t, r) {
2756
2756
  } else
2757
2757
  break;
2758
2758
  else if (t[u] === "&") {
2759
- const T = ja(t, u);
2759
+ const T = Ma(t, u);
2760
2760
  if (T == -1)
2761
2761
  return ke("InvalidChar", "char '&' is not expected.", Me(t, u));
2762
2762
  u = T;
@@ -2819,11 +2819,11 @@ function xo(t, r) {
2819
2819
  }
2820
2820
  return r;
2821
2821
  }
2822
- const Pa = '"', Ia = "'";
2823
- function ka(t, r) {
2822
+ const ka = '"', Ca = "'";
2823
+ function $a(t, r) {
2824
2824
  let i = "", a = "", c = !1;
2825
2825
  for (; r < t.length; r++) {
2826
- if (t[r] === Pa || t[r] === Ia)
2826
+ if (t[r] === ka || t[r] === Ca)
2827
2827
  a === "" ? a = t[r] : a !== t[r] || (a = "");
2828
2828
  else if (t[r] === ">" && a === "") {
2829
2829
  c = !0;
@@ -2837,9 +2837,9 @@ function ka(t, r) {
2837
2837
  tagClosed: c
2838
2838
  };
2839
2839
  }
2840
- const Ca = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
2840
+ const ja = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
2841
2841
  function bo(t, r) {
2842
- const i = Jo(t, Ca), a = {};
2842
+ const i = Zo(t, ja), a = {};
2843
2843
  for (let c = 0; c < i.length; c++) {
2844
2844
  if (i[c][1].length === 0)
2845
2845
  return ke("InvalidAttr", "Attribute '" + i[c][2] + "' has no space in starting.", _t(i[c]));
@@ -2848,7 +2848,7 @@ function bo(t, r) {
2848
2848
  if (i[c][3] === void 0 && !r.allowBooleanAttributes)
2849
2849
  return ke("InvalidAttr", "boolean attribute '" + i[c][2] + "' is not allowed.", _t(i[c]));
2850
2850
  const u = i[c][2];
2851
- if (!Aa(u))
2851
+ if (!Ra(u))
2852
2852
  return ke("InvalidAttr", "Attribute '" + u + "' is an invalid name.", _t(i[c]));
2853
2853
  if (!a.hasOwnProperty(u))
2854
2854
  a[u] = 1;
@@ -2857,7 +2857,7 @@ function bo(t, r) {
2857
2857
  }
2858
2858
  return !0;
2859
2859
  }
2860
- function $a(t, r) {
2860
+ function Aa(t, r) {
2861
2861
  let i = /\d/;
2862
2862
  for (t[r] === "x" && (r++, i = /[\da-fA-F]/); r < t.length; r++) {
2863
2863
  if (t[r] === ";")
@@ -2867,11 +2867,11 @@ function $a(t, r) {
2867
2867
  }
2868
2868
  return -1;
2869
2869
  }
2870
- function ja(t, r) {
2870
+ function Ma(t, r) {
2871
2871
  if (r++, t[r] === ";")
2872
2872
  return -1;
2873
2873
  if (t[r] === "#")
2874
- return r++, $a(t, r);
2874
+ return r++, Aa(t, r);
2875
2875
  let i = 0;
2876
2876
  for (; r < t.length; r++, i++)
2877
2877
  if (!(t[r].match(/\w/) && i < 20)) {
@@ -2891,11 +2891,11 @@ function ke(t, r, i) {
2891
2891
  }
2892
2892
  };
2893
2893
  }
2894
- function Aa(t) {
2895
- return un(t);
2894
+ function Ra(t) {
2895
+ return fn(t);
2896
2896
  }
2897
- function Ma(t) {
2898
- return un(t);
2897
+ function za(t) {
2898
+ return fn(t);
2899
2899
  }
2900
2900
  function Me(t, r) {
2901
2901
  const i = t.substring(0, r).split(/\r?\n/);
@@ -2908,7 +2908,7 @@ function Me(t, r) {
2908
2908
  function _t(t) {
2909
2909
  return t.startIndex + t[1].length;
2910
2910
  }
2911
- const Ra = {
2911
+ const La = {
2912
2912
  preserveOrder: !1,
2913
2913
  attributeNamePrefix: "@_",
2914
2914
  attributesGroupName: !1,
@@ -2952,8 +2952,8 @@ const Ra = {
2952
2952
  },
2953
2953
  // skipEmptyListItem: false
2954
2954
  captureMetaData: !1
2955
- }, za = function(t) {
2956
- return Object.assign({}, Ra, t);
2955
+ }, Fa = function(t) {
2956
+ return Object.assign({}, La, t);
2957
2957
  };
2958
2958
  let sn;
2959
2959
  typeof Symbol != "function" ? sn = "@@xmlMetadata" : sn = Symbol("XML Node Metadata");
@@ -2972,7 +2972,7 @@ class ct {
2972
2972
  return sn;
2973
2973
  }
2974
2974
  }
2975
- class La {
2975
+ class Va {
2976
2976
  constructor(r) {
2977
2977
  this.suppressValidationErr = !r;
2978
2978
  }
@@ -3060,7 +3060,7 @@ class La {
3060
3060
  let a = "";
3061
3061
  for (; i < r.length && !/\s/.test(r[i]); )
3062
3062
  a += r[i], i++;
3063
- if (!this.suppressValidationErr && !un(a))
3063
+ if (!this.suppressValidationErr && !fn(a))
3064
3064
  throw new Error(`Invalid element name: "${a}"`);
3065
3065
  i = Le(r, i);
3066
3066
  let c = "";
@@ -3137,11 +3137,11 @@ function st(t, r, i) {
3137
3137
  return !0;
3138
3138
  }
3139
3139
  function Ot(t) {
3140
- if (un(t))
3140
+ if (fn(t))
3141
3141
  return t;
3142
3142
  throw new Error(`Invalid entity name ${t}`);
3143
3143
  }
3144
- const Fa = /^[-+]?0x[a-fA-F0-9]+$/, Va = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Da = {
3144
+ const Da = /^[-+]?0x[a-fA-F0-9]+$/, Ha = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Ba = {
3145
3145
  hex: !0,
3146
3146
  // oct: false,
3147
3147
  leadingZeros: !0,
@@ -3149,20 +3149,20 @@ const Fa = /^[-+]?0x[a-fA-F0-9]+$/, Va = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, D
3149
3149
  eNotation: !0
3150
3150
  //skipLike: /regex/
3151
3151
  };
3152
- function Ha(t, r = {}) {
3153
- if (r = Object.assign({}, Da, r), !t || typeof t != "string") return t;
3152
+ function Ya(t, r = {}) {
3153
+ if (r = Object.assign({}, Ba, r), !t || typeof t != "string") return t;
3154
3154
  let i = t.trim();
3155
3155
  if (r.skipLike !== void 0 && r.skipLike.test(i)) return t;
3156
3156
  if (t === "0") return 0;
3157
- if (r.hex && Fa.test(i))
3158
- return Ua(i, 16);
3157
+ if (r.hex && Da.test(i))
3158
+ return qa(i, 16);
3159
3159
  if (i.search(/.+[eE].+/) !== -1)
3160
- return Ya(t, i, r);
3160
+ return Ua(t, i, r);
3161
3161
  {
3162
- const a = Va.exec(i);
3162
+ const a = Ha.exec(i);
3163
3163
  if (a) {
3164
3164
  const c = a[1] || "", u = a[2];
3165
- let d = Xa(a[3]);
3165
+ let d = Ga(a[3]);
3166
3166
  const g = c ? (
3167
3167
  // 0., -00., 000.
3168
3168
  t[u.length + 1] === "."
@@ -3183,10 +3183,10 @@ function Ha(t, r = {}) {
3183
3183
  return t;
3184
3184
  }
3185
3185
  }
3186
- const Ba = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
3187
- function Ya(t, r, i) {
3186
+ const Xa = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
3187
+ function Ua(t, r, i) {
3188
3188
  if (!i.eNotation) return t;
3189
- const a = r.match(Ba);
3189
+ const a = r.match(Xa);
3190
3190
  if (a) {
3191
3191
  let c = a[1] || "";
3192
3192
  const u = a[3].indexOf("e") === -1 ? "E" : "e", d = a[2], g = c ? (
@@ -3197,23 +3197,23 @@ function Ya(t, r, i) {
3197
3197
  } else
3198
3198
  return t;
3199
3199
  }
3200
- function Xa(t) {
3200
+ function Ga(t) {
3201
3201
  return t && t.indexOf(".") !== -1 && (t = t.replace(/0+$/, ""), t === "." ? t = "0" : t[0] === "." ? t = "0" + t : t[t.length - 1] === "." && (t = t.substring(0, t.length - 1))), t;
3202
3202
  }
3203
- function Ua(t, r) {
3203
+ function qa(t, r) {
3204
3204
  if (parseInt) return parseInt(t, r);
3205
3205
  if (Number.parseInt) return Number.parseInt(t, r);
3206
3206
  if (window && window.parseInt) return window.parseInt(t, r);
3207
3207
  throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
3208
3208
  }
3209
- function Zo(t) {
3209
+ function Qo(t) {
3210
3210
  return typeof t == "function" ? t : Array.isArray(t) ? (r) => {
3211
3211
  for (const i of t)
3212
3212
  if (typeof i == "string" && r === i || i instanceof RegExp && i.test(r))
3213
3213
  return !0;
3214
3214
  } : () => !1;
3215
3215
  }
3216
- class Ga {
3216
+ class Ka {
3217
3217
  constructor(r) {
3218
3218
  this.options = r, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
3219
3219
  apos: { regex: /&(apos|#39|#x27);/g, val: "'" },
@@ -3236,10 +3236,10 @@ class Ga {
3236
3236
  inr: { regex: /&(inr|#8377);/g, val: "₹" },
3237
3237
  num_dec: { regex: /&#([0-9]{1,7});/g, val: (i, a) => String.fromCodePoint(Number.parseInt(a, 10)) },
3238
3238
  num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (i, a) => String.fromCodePoint(Number.parseInt(a, 16)) }
3239
- }, this.addExternalEntities = qa, this.parseXml = Qa, this.parseTextData = Ka, this.resolveNameSpace = Wa, this.buildAttributesMap = Za, this.isItStopNode = rc, this.replaceEntitiesValue = tc, this.readStopNodeData = ic, this.saveTextToParentTag = nc, this.addChild = ec, this.ignoreAttributesFn = Zo(this.options.ignoreAttributes);
3239
+ }, this.addExternalEntities = Wa, this.parseXml = tc, this.parseTextData = Ja, this.resolveNameSpace = Za, this.buildAttributesMap = ec, this.isItStopNode = ic, this.replaceEntitiesValue = rc, this.readStopNodeData = ac, this.saveTextToParentTag = oc, this.addChild = nc, this.ignoreAttributesFn = Qo(this.options.ignoreAttributes);
3240
3240
  }
3241
3241
  }
3242
- function qa(t) {
3242
+ function Wa(t) {
3243
3243
  const r = Object.keys(t);
3244
3244
  for (let i = 0; i < r.length; i++) {
3245
3245
  const a = r[i];
@@ -3249,14 +3249,14 @@ function qa(t) {
3249
3249
  };
3250
3250
  }
3251
3251
  }
3252
- function Ka(t, r, i, a, c, u, d) {
3252
+ function Ja(t, r, i, a, c, u, d) {
3253
3253
  if (t !== void 0 && (this.options.trimValues && !a && (t = t.trim()), t.length > 0)) {
3254
3254
  d || (t = this.replaceEntitiesValue(t));
3255
3255
  const g = this.options.tagValueProcessor(r, t, i, c, u);
3256
- return g == null ? t : typeof g != typeof t || g !== t ? g : this.options.trimValues ? Jn(t, this.options.parseTagValue, this.options.numberParseOptions) : t.trim() === t ? Jn(t, this.options.parseTagValue, this.options.numberParseOptions) : t;
3256
+ return g == null ? t : typeof g != typeof t || g !== t ? g : this.options.trimValues ? Zn(t, this.options.parseTagValue, this.options.numberParseOptions) : t.trim() === t ? Zn(t, this.options.parseTagValue, this.options.numberParseOptions) : t;
3257
3257
  }
3258
3258
  }
3259
- function Wa(t) {
3259
+ function Za(t) {
3260
3260
  if (this.options.removeNSPrefix) {
3261
3261
  const r = t.split(":"), i = t.charAt(0) === "/" ? "/" : "";
3262
3262
  if (r[0] === "xmlns")
@@ -3265,10 +3265,10 @@ function Wa(t) {
3265
3265
  }
3266
3266
  return t;
3267
3267
  }
3268
- const Ja = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3269
- function Za(t, r, i) {
3268
+ const Qa = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3269
+ function ec(t, r, i) {
3270
3270
  if (this.options.ignoreAttributes !== !0 && typeof t == "string") {
3271
- const a = Jo(t, Ja), c = a.length, u = {};
3271
+ const a = Zo(t, Qa), c = a.length, u = {};
3272
3272
  for (let d = 0; d < c; d++) {
3273
3273
  const g = this.resolveNameSpace(a[d][1]);
3274
3274
  if (this.ignoreAttributesFn(g, r))
@@ -3278,7 +3278,7 @@ function Za(t, r, i) {
3278
3278
  if (this.options.transformAttributeName && (x = this.options.transformAttributeName(x)), x === "__proto__" && (x = "#__proto__"), m !== void 0) {
3279
3279
  this.options.trimValues && (m = m.trim()), m = this.replaceEntitiesValue(m);
3280
3280
  const O = this.options.attributeValueProcessor(g, m, r);
3281
- O == null ? u[x] = m : typeof O != typeof m || O !== m ? u[x] = O : u[x] = Jn(
3281
+ O == null ? u[x] = m : typeof O != typeof m || O !== m ? u[x] = O : u[x] = Zn(
3282
3282
  m,
3283
3283
  this.options.parseAttributeValue,
3284
3284
  this.options.numberParseOptions
@@ -3294,12 +3294,12 @@ function Za(t, r, i) {
3294
3294
  return u;
3295
3295
  }
3296
3296
  }
3297
- const Qa = function(t) {
3297
+ const tc = function(t) {
3298
3298
  t = t.replace(/\r\n?/g, `
3299
3299
  `);
3300
3300
  const r = new ct("!xml");
3301
3301
  let i = r, a = "", c = "";
3302
- const u = new La(this.options.processEntities);
3302
+ const u = new Va(this.options.processEntities);
3303
3303
  for (let d = 0; d < t.length; d++)
3304
3304
  if (t[d] === "<")
3305
3305
  if (t[d + 1] === "/") {
@@ -3316,7 +3316,7 @@ const Qa = function(t) {
3316
3316
  let T = 0;
3317
3317
  O && this.options.unpairedTags.indexOf(O) !== -1 ? (T = c.lastIndexOf(".", c.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : T = c.lastIndexOf("."), c = c.substring(0, T), i = this.tagsNodeStack.pop(), a = "", d = m;
3318
3318
  } else if (t[d + 1] === "?") {
3319
- let m = Wn(t, d, !1, "?>");
3319
+ let m = Jn(t, d, !1, "?>");
3320
3320
  if (!m) throw new Error("Pi Tag is not closed.");
3321
3321
  if (a = this.saveTextToParentTag(a, i, c), !(this.options.ignoreDeclaration && m.tagName === "?xml" || this.options.ignorePiTags)) {
3322
3322
  const x = new ct(m.tagName);
@@ -3339,7 +3339,7 @@ const Qa = function(t) {
3339
3339
  let O = this.parseTextData(x, i.tagname, c, !0, !1, !0, !0);
3340
3340
  O == null && (O = ""), this.options.cdataPropName ? i.add(this.options.cdataPropName, [{ [this.options.textNodeName]: x }]) : i.add(this.options.textNodeName, O), d = m + 2;
3341
3341
  } else {
3342
- let m = Wn(t, d, this.options.removeNSPrefix), x = m.tagName;
3342
+ let m = Jn(t, d, this.options.removeNSPrefix), x = m.tagName;
3343
3343
  const O = m.rawTagName;
3344
3344
  let T = m.tagExp, k = m.attrExpPresent, $ = m.closeIndex;
3345
3345
  this.options.transformTagName && (x = this.options.transformTagName(x)), i && a && i.tagname !== "!xml" && (a = this.saveTextToParentTag(a, i, c, !1));
@@ -3375,12 +3375,12 @@ const Qa = function(t) {
3375
3375
  a += t[d];
3376
3376
  return r.child;
3377
3377
  };
3378
- function ec(t, r, i, a) {
3378
+ function nc(t, r, i, a) {
3379
3379
  this.options.captureMetaData || (a = void 0);
3380
3380
  const c = this.options.updateTag(r.tagname, i, r[":@"]);
3381
3381
  c === !1 || (typeof c == "string" && (r.tagname = c), t.addChild(r, a));
3382
3382
  }
3383
- const tc = function(t) {
3383
+ const rc = function(t) {
3384
3384
  if (this.options.processEntities) {
3385
3385
  for (let r in this.docTypeEntities) {
3386
3386
  const i = this.docTypeEntities[r];
@@ -3399,7 +3399,7 @@ const tc = function(t) {
3399
3399
  }
3400
3400
  return t;
3401
3401
  };
3402
- function nc(t, r, i, a) {
3402
+ function oc(t, r, i, a) {
3403
3403
  return t && (a === void 0 && (a = r.child.length === 0), t = this.parseTextData(
3404
3404
  t,
3405
3405
  r.tagname,
@@ -3409,7 +3409,7 @@ function nc(t, r, i, a) {
3409
3409
  a
3410
3410
  ), t !== void 0 && t !== "" && r.add(this.options.textNodeName, t), t = ""), t;
3411
3411
  }
3412
- function rc(t, r, i) {
3412
+ function ic(t, r, i) {
3413
3413
  const a = "*." + i;
3414
3414
  for (const c in t) {
3415
3415
  const u = t[c];
@@ -3417,7 +3417,7 @@ function rc(t, r, i) {
3417
3417
  }
3418
3418
  return !1;
3419
3419
  }
3420
- function oc(t, r, i = ">") {
3420
+ function sc(t, r, i = ">") {
3421
3421
  let a, c = "";
3422
3422
  for (let u = r; u < t.length; u++) {
3423
3423
  let d = t[u];
@@ -3447,8 +3447,8 @@ function lt(t, r, i, a) {
3447
3447
  throw new Error(a);
3448
3448
  return c + r.length - 1;
3449
3449
  }
3450
- function Wn(t, r, i, a = ">") {
3451
- const c = oc(t, r + 1, a);
3450
+ function Jn(t, r, i, a = ">") {
3451
+ const c = sc(t, r + 1, a);
3452
3452
  if (!c) return;
3453
3453
  let u = c.data;
3454
3454
  const d = c.index, g = u.search(/\s/);
@@ -3467,7 +3467,7 @@ function Wn(t, r, i, a = ">") {
3467
3467
  rawTagName: O
3468
3468
  };
3469
3469
  }
3470
- function ic(t, r, i) {
3470
+ function ac(t, r, i) {
3471
3471
  const a = i;
3472
3472
  let c = 1;
3473
3473
  for (; i < t.length; i++)
@@ -3487,26 +3487,26 @@ function ic(t, r, i) {
3487
3487
  else if (t.substr(i + 1, 2) === "![")
3488
3488
  i = lt(t, "]]>", i, "StopNode is not closed.") - 2;
3489
3489
  else {
3490
- const u = Wn(t, i, ">");
3490
+ const u = Jn(t, i, ">");
3491
3491
  u && ((u && u.tagName) === r && u.tagExp[u.tagExp.length - 1] !== "/" && c++, i = u.closeIndex);
3492
3492
  }
3493
3493
  }
3494
- function Jn(t, r, i) {
3494
+ function Zn(t, r, i) {
3495
3495
  if (r && typeof t == "string") {
3496
3496
  const a = t.trim();
3497
- return a === "true" ? !0 : a === "false" ? !1 : Ha(t, i);
3497
+ return a === "true" ? !0 : a === "false" ? !1 : Ya(t, i);
3498
3498
  } else
3499
- return Ta(t) ? t : "";
3499
+ return Oa(t) ? t : "";
3500
3500
  }
3501
- const Rn = ct.getMetaDataSymbol();
3502
- function sc(t, r) {
3503
- return Qo(t, r);
3501
+ const zn = ct.getMetaDataSymbol();
3502
+ function cc(t, r) {
3503
+ return ei(t, r);
3504
3504
  }
3505
- function Qo(t, r, i) {
3505
+ function ei(t, r, i) {
3506
3506
  let a;
3507
3507
  const c = {};
3508
3508
  for (let u = 0; u < t.length; u++) {
3509
- const d = t[u], g = ac(d);
3509
+ const d = t[u], g = lc(d);
3510
3510
  let m = "";
3511
3511
  if (i === void 0 ? m = g : m = i + "." + g, g === r.textNodeName)
3512
3512
  a === void 0 ? a = d[g] : a += "" + d[g];
@@ -3514,22 +3514,22 @@ function Qo(t, r, i) {
3514
3514
  if (g === void 0)
3515
3515
  continue;
3516
3516
  if (d[g]) {
3517
- let x = Qo(d[g], r, m);
3518
- const O = lc(x, r);
3519
- d[Rn] !== void 0 && (x[Rn] = d[Rn]), d[":@"] ? cc(x, d[":@"], m, r) : Object.keys(x).length === 1 && x[r.textNodeName] !== void 0 && !r.alwaysCreateTextNode ? x = x[r.textNodeName] : Object.keys(x).length === 0 && (r.alwaysCreateTextNode ? x[r.textNodeName] = "" : x = ""), c[g] !== void 0 && c.hasOwnProperty(g) ? (Array.isArray(c[g]) || (c[g] = [c[g]]), c[g].push(x)) : r.isArray(g, m, O) ? c[g] = [x] : c[g] = x;
3517
+ let x = ei(d[g], r, m);
3518
+ const O = fc(x, r);
3519
+ d[zn] !== void 0 && (x[zn] = d[zn]), d[":@"] ? uc(x, d[":@"], m, r) : Object.keys(x).length === 1 && x[r.textNodeName] !== void 0 && !r.alwaysCreateTextNode ? x = x[r.textNodeName] : Object.keys(x).length === 0 && (r.alwaysCreateTextNode ? x[r.textNodeName] = "" : x = ""), c[g] !== void 0 && c.hasOwnProperty(g) ? (Array.isArray(c[g]) || (c[g] = [c[g]]), c[g].push(x)) : r.isArray(g, m, O) ? c[g] = [x] : c[g] = x;
3520
3520
  }
3521
3521
  }
3522
3522
  }
3523
3523
  return typeof a == "string" ? a.length > 0 && (c[r.textNodeName] = a) : a !== void 0 && (c[r.textNodeName] = a), c;
3524
3524
  }
3525
- function ac(t) {
3525
+ function lc(t) {
3526
3526
  const r = Object.keys(t);
3527
3527
  for (let i = 0; i < r.length; i++) {
3528
3528
  const a = r[i];
3529
3529
  if (a !== ":@") return a;
3530
3530
  }
3531
3531
  }
3532
- function cc(t, r, i, a) {
3532
+ function uc(t, r, i, a) {
3533
3533
  if (r) {
3534
3534
  const c = Object.keys(r), u = c.length;
3535
3535
  for (let d = 0; d < u; d++) {
@@ -3538,13 +3538,13 @@ function cc(t, r, i, a) {
3538
3538
  }
3539
3539
  }
3540
3540
  }
3541
- function lc(t, r) {
3541
+ function fc(t, r) {
3542
3542
  const { textNodeName: i } = r, a = Object.keys(t).length;
3543
3543
  return !!(a === 0 || a === 1 && (t[i] || typeof t[i] == "boolean" || t[i] === 0));
3544
3544
  }
3545
- class uc {
3545
+ class dc {
3546
3546
  constructor(r) {
3547
- this.externalEntities = {}, this.options = za(r);
3547
+ this.externalEntities = {}, this.options = Fa(r);
3548
3548
  }
3549
3549
  /**
3550
3550
  * Parse XML dats to JS object
@@ -3558,14 +3558,14 @@ class uc {
3558
3558
  throw new Error("XML data is accepted in String or Bytes[] form.");
3559
3559
  if (i) {
3560
3560
  i === !0 && (i = {});
3561
- const u = Oa(r, i);
3561
+ const u = Ia(r, i);
3562
3562
  if (u !== !0)
3563
3563
  throw Error(`${u.err.msg}:${u.err.line}:${u.err.col}`);
3564
3564
  }
3565
- const a = new Ga(this.options);
3565
+ const a = new Ka(this.options);
3566
3566
  a.addExternalEntities(this.externalEntities);
3567
3567
  const c = a.parseXml(r);
3568
- return this.options.preserveOrder || c === void 0 ? c : sc(c, this.options);
3568
+ return this.options.preserveOrder || c === void 0 ? c : cc(c, this.options);
3569
3569
  }
3570
3570
  /**
3571
3571
  * Add Entity which is not by default supported by this library
@@ -3595,21 +3595,21 @@ class uc {
3595
3595
  return ct.getMetaDataSymbol();
3596
3596
  }
3597
3597
  }
3598
- const fc = `
3598
+ const pc = `
3599
3599
  `;
3600
- function dc(t, r) {
3600
+ function hc(t, r) {
3601
3601
  let i = "";
3602
- return r.format && r.indentBy.length > 0 && (i = fc), ei(t, r, "", i);
3602
+ return r.format && r.indentBy.length > 0 && (i = pc), ti(t, r, "", i);
3603
3603
  }
3604
- function ei(t, r, i, a) {
3604
+ function ti(t, r, i, a) {
3605
3605
  let c = "", u = !1;
3606
3606
  for (let d = 0; d < t.length; d++) {
3607
- const g = t[d], m = pc(g);
3607
+ const g = t[d], m = gc(g);
3608
3608
  if (m === void 0) continue;
3609
3609
  let x = "";
3610
3610
  if (i.length === 0 ? x = m : x = `${i}.${m}`, m === r.textNodeName) {
3611
3611
  let M = g[m];
3612
- hc(x, r) || (M = r.tagValueProcessor(m, M), M = ti(M, r)), u && (c += a), c += M, u = !1;
3612
+ mc(x, r) || (M = r.tagValueProcessor(m, M), M = ni(M, r)), u && (c += a), c += M, u = !1;
3613
3613
  continue;
3614
3614
  } else if (m === r.cdataPropName) {
3615
3615
  u && (c += a), c += `<![CDATA[${g[m][0][r.textNodeName]}]]>`, u = !1;
@@ -3625,12 +3625,12 @@ function ei(t, r, i, a) {
3625
3625
  }
3626
3626
  let O = a;
3627
3627
  O !== "" && (O += r.indentBy);
3628
- const T = wo(g[":@"], r), k = a + `<${m}${T}`, $ = ei(g[m], r, x, O);
3628
+ const T = wo(g[":@"], r), k = a + `<${m}${T}`, $ = ti(g[m], r, x, O);
3629
3629
  r.unpairedTags.indexOf(m) !== -1 ? r.suppressUnpairedNode ? c += k + ">" : c += k + "/>" : (!$ || $.length === 0) && r.suppressEmptyNode ? c += k + "/>" : $ && $.endsWith(">") ? c += k + `>${$}${a}</${m}>` : (c += k + ">", $ && a !== "" && ($.includes("/>") || $.includes("</")) ? c += a + r.indentBy + $ + a : c += $, c += `</${m}>`), u = !0;
3630
3630
  }
3631
3631
  return c;
3632
3632
  }
3633
- function pc(t) {
3633
+ function gc(t) {
3634
3634
  const r = Object.keys(t);
3635
3635
  for (let i = 0; i < r.length; i++) {
3636
3636
  const a = r[i];
@@ -3644,18 +3644,18 @@ function wo(t, r) {
3644
3644
  for (let a in t) {
3645
3645
  if (!t.hasOwnProperty(a)) continue;
3646
3646
  let c = r.attributeValueProcessor(a, t[a]);
3647
- c = ti(c, r), c === !0 && r.suppressBooleanAttributes ? i += ` ${a.substr(r.attributeNamePrefix.length)}` : i += ` ${a.substr(r.attributeNamePrefix.length)}="${c}"`;
3647
+ c = ni(c, r), c === !0 && r.suppressBooleanAttributes ? i += ` ${a.substr(r.attributeNamePrefix.length)}` : i += ` ${a.substr(r.attributeNamePrefix.length)}="${c}"`;
3648
3648
  }
3649
3649
  return i;
3650
3650
  }
3651
- function hc(t, r) {
3651
+ function mc(t, r) {
3652
3652
  t = t.substr(0, t.length - r.textNodeName.length - 1);
3653
3653
  let i = t.substr(t.lastIndexOf(".") + 1);
3654
3654
  for (let a in r.stopNodes)
3655
3655
  if (r.stopNodes[a] === t || r.stopNodes[a] === "*." + i) return !0;
3656
3656
  return !1;
3657
3657
  }
3658
- function ti(t, r) {
3658
+ function ni(t, r) {
3659
3659
  if (t && t.length > 0 && r.processEntities)
3660
3660
  for (let i = 0; i < r.entities.length; i++) {
3661
3661
  const a = r.entities[i];
@@ -3663,7 +3663,7 @@ function ti(t, r) {
3663
3663
  }
3664
3664
  return t;
3665
3665
  }
3666
- const gc = {
3666
+ const vc = {
3667
3667
  attributeNamePrefix: "@_",
3668
3668
  attributesGroupName: !1,
3669
3669
  textNodeName: "#text",
@@ -3698,16 +3698,16 @@ const gc = {
3698
3698
  oneListGroup: !1
3699
3699
  };
3700
3700
  function rt(t) {
3701
- this.options = Object.assign({}, gc, t), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3701
+ this.options = Object.assign({}, vc, t), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3702
3702
  return !1;
3703
- } : (this.ignoreAttributesFn = Zo(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = yc), this.processTextOrObjNode = mc, this.options.format ? (this.indentate = vc, this.tagEndChar = `>
3703
+ } : (this.ignoreAttributesFn = Qo(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = bc), this.processTextOrObjNode = yc, this.options.format ? (this.indentate = xc, this.tagEndChar = `>
3704
3704
  `, this.newLine = `
3705
3705
  `) : (this.indentate = function() {
3706
3706
  return "";
3707
3707
  }, this.tagEndChar = ">", this.newLine = "");
3708
3708
  }
3709
3709
  rt.prototype.build = function(t) {
3710
- return this.options.preserveOrder ? dc(t, this.options) : (Array.isArray(t) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t = {
3710
+ return this.options.preserveOrder ? hc(t, this.options) : (Array.isArray(t) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t = {
3711
3711
  [this.options.arrayNodeName]: t
3712
3712
  }), this.j2x(t, 0, []).val);
3713
3713
  };
@@ -3763,7 +3763,7 @@ rt.prototype.j2x = function(t, r, i) {
3763
3763
  rt.prototype.buildAttrPairStr = function(t, r) {
3764
3764
  return r = this.options.attributeValueProcessor(t, "" + r), r = this.replaceEntitiesValue(r), this.options.suppressBooleanAttributes && r === "true" ? " " + t : " " + t + '="' + r + '"';
3765
3765
  };
3766
- function mc(t, r, i, a) {
3766
+ function yc(t, r, i, a) {
3767
3767
  const c = this.j2x(t, i + 1, a.concat(r));
3768
3768
  return t[this.options.textNodeName] !== void 0 && Object.keys(t).length === 1 ? this.buildTextValNode(t[this.options.textNodeName], r, c.attrStr, i) : this.buildObjectNode(c.val, r, c.attrStr, i);
3769
3769
  }
@@ -3799,13 +3799,13 @@ rt.prototype.replaceEntitiesValue = function(t) {
3799
3799
  }
3800
3800
  return t;
3801
3801
  };
3802
- function vc(t) {
3802
+ function xc(t) {
3803
3803
  return this.options.indentBy.repeat(t);
3804
3804
  }
3805
- function yc(t) {
3805
+ function bc(t) {
3806
3806
  return t.startsWith(this.options.attributeNamePrefix) && t !== this.options.textNodeName ? t.substr(this.attrPrefixLen) : !1;
3807
3807
  }
3808
- const xc = /* @__PURE__ */ Oe(({
3808
+ const wc = /* @__PURE__ */ Oe(({
3809
3809
  fillMode: t = "preserve",
3810
3810
  svg: r,
3811
3811
  shouldStripClasses: i = !0,
@@ -3815,7 +3815,7 @@ const xc = /* @__PURE__ */ Oe(({
3815
3815
  ...d
3816
3816
  }, g) => {
3817
3817
  const x = ["id"].map((M) => `@_${M}`), O = ["class"].map((M) => `@_${M}`), T = ["fill", "stroke", "style"].map((M) => `@_${M}`), k = ["x", "y"].map((M) => `@_${M}`), $ = () => {
3818
- const M = new uc({
3818
+ const M = new dc({
3819
3819
  attributeNamePrefix: "@_",
3820
3820
  ignoreAttributes: !1,
3821
3821
  ignoreDeclaration: !0,
@@ -3858,8 +3858,8 @@ const xc = /* @__PURE__ */ Oe(({
3858
3858
  }
3859
3859
  );
3860
3860
  });
3861
- process.env.NODE_ENV === "development" && (xc.displayName = "FlatSVG");
3862
- const Eo = "base-", bc = /* @__PURE__ */ Oe(({
3861
+ process.env.NODE_ENV === "development" && (wc.displayName = "FlatSVG");
3862
+ const Eo = "base-", Ec = /* @__PURE__ */ Oe(({
3863
3863
  alignSections: t = !1,
3864
3864
  children: r,
3865
3865
  className: i,
@@ -3922,7 +3922,7 @@ const Eo = "base-", bc = /* @__PURE__ */ Oe(({
3922
3922
  hr(O, {
3923
3923
  onResize: I
3924
3924
  }), Ee(() => {
3925
- const B = Nc(O.current?.innerHTML);
3925
+ const B = Tc(O.current?.innerHTML);
3926
3926
  if (B.length === 0) return E();
3927
3927
  const q = B.length;
3928
3928
  for (let oe = 0; oe < q; oe++) {
@@ -3930,7 +3930,7 @@ const Eo = "base-", bc = /* @__PURE__ */ Oe(({
3930
3930
  Y.src = Z, Y.onload = () => E();
3931
3931
  }
3932
3932
  }, [r]);
3933
- const N = wc({ orientation: u }), A = Ec({ orientation: u, minHeight: $, minWidth: T });
3933
+ const N = Nc({ orientation: u }), A = Sc({ orientation: u, minHeight: $, minWidth: T });
3934
3934
  return /* @__PURE__ */ b.jsx(
3935
3935
  "div",
3936
3936
  {
@@ -3942,12 +3942,12 @@ const Eo = "base-", bc = /* @__PURE__ */ Oe(({
3942
3942
  }
3943
3943
  );
3944
3944
  });
3945
- function wc({ orientation: t = "horizontal" }) {
3945
+ function Nc({ orientation: t = "horizontal" }) {
3946
3946
  return {
3947
3947
  root: se(t)
3948
3948
  };
3949
3949
  }
3950
- function Ec({ orientation: t = "horizontal", minHeight: r = NaN, minWidth: i = NaN }) {
3950
+ function Sc({ orientation: t = "horizontal", minHeight: r = NaN, minWidth: i = NaN }) {
3951
3951
  return {
3952
3952
  body: {
3953
3953
  height: t === "horizontal" ? "100%" : "auto",
@@ -3983,7 +3983,7 @@ function So(t, r) {
3983
3983
  }
3984
3984
  return 1;
3985
3985
  }
3986
- function Nc(t) {
3986
+ function Tc(t) {
3987
3987
  if (!t) return [];
3988
3988
  const r = /<img.*?src=(["'])(.*?)\1/g, i = /<img.*?src=(["'])(.*?)\1/, a = r.exec(t) ?? [], c = [];
3989
3989
  for (const u of a) {
@@ -3992,8 +3992,8 @@ function Nc(t) {
3992
3992
  }
3993
3993
  return c;
3994
3994
  }
3995
- process.env.NODE_ENV === "development" && (bc.displayName = "MasonryGrid");
3996
- const Sc = /* @__PURE__ */ Oe(({
3995
+ process.env.NODE_ENV === "development" && (Ec.displayName = "MasonryGrid");
3996
+ const _c = /* @__PURE__ */ Oe(({
3997
3997
  index: t = 0,
3998
3998
  isDisabled: r = !1,
3999
3999
  options: i,
@@ -4018,13 +4018,13 @@ const Sc = /* @__PURE__ */ Oe(({
4018
4018
  }
4019
4019
  );
4020
4020
  });
4021
- process.env.NODE_ENV === "development" && (Sc.displayName = "OptionButton");
4022
- var Kt = { exports: {} }, Tc = Kt.exports, To;
4023
- function _c() {
4021
+ process.env.NODE_ENV === "development" && (_c.displayName = "OptionButton");
4022
+ var Kt = { exports: {} }, Oc = Kt.exports, To;
4023
+ function Pc() {
4024
4024
  return To || (To = 1, (function(t, r) {
4025
4025
  (function(i, a) {
4026
4026
  t.exports = a();
4027
- })(Tc, (function() {
4027
+ })(Oc, (function() {
4028
4028
  function i(n, e) {
4029
4029
  var o = Object.keys(n);
4030
4030
  if (Object.getOwnPropertySymbols) {
@@ -4318,11 +4318,11 @@ function _c() {
4318
4318
  }
4319
4319
  var pt = function(n, e) {
4320
4320
  return Math.sqrt(n * n + e * e);
4321
- }, li = ["webkit", "moz"];
4321
+ }, ui = ["webkit", "moz"];
4322
4322
  function jt(n, e) {
4323
4323
  n.__set || (n.__set = {});
4324
4324
  var o = function(l) {
4325
- if (li.some((function(f) {
4325
+ if (ui.some((function(f) {
4326
4326
  return l.indexOf(f) === 0;
4327
4327
  }))) return 1;
4328
4328
  typeof n[l] != "function" && l !== "__set" && Object.defineProperty(n, l, { get: function() {
@@ -4352,13 +4352,13 @@ function _c() {
4352
4352
  function ht(n) {
4353
4353
  return N.number(n.pointerId) ? n.pointerId : n.identifier;
4354
4354
  }
4355
- function ui(n, e, o) {
4355
+ function fi(n, e, o) {
4356
4356
  var s = e.length > 1 ? Nr(e) : e[0];
4357
4357
  Er(s, n.page), (function(l, f) {
4358
4358
  f = f || {}, te.isOperaMobile && wr(l) ? Mt("screen", l, f) : Mt("client", l, f);
4359
4359
  })(s, n.client), n.timeStamp = o;
4360
4360
  }
4361
- function fn(n) {
4361
+ function dn(n) {
4362
4362
  var e = [];
4363
4363
  return N.array(n) ? (e[0] = n[0], e[1] = n[1]) : n.type === "touchend" ? n.touches.length === 1 ? (e[0] = n.touches[0], e[1] = n.changedTouches[0]) : n.touches.length === 0 && (e[0] = n.changedTouches[0], e[1] = n.changedTouches[1]) : (e[0] = n.touches[0], e[1] = n.touches[1]), e;
4364
4364
  }
@@ -4370,17 +4370,17 @@ function _c() {
4370
4370
  for (var f in e) e[f] /= n.length;
4371
4371
  return e;
4372
4372
  }
4373
- function dn(n) {
4373
+ function pn(n) {
4374
4374
  if (!n.length) return null;
4375
- var e = fn(n), o = Math.min(e[0].pageX, e[1].pageX), s = Math.min(e[0].pageY, e[1].pageY), l = Math.max(e[0].pageX, e[1].pageX), f = Math.max(e[0].pageY, e[1].pageY);
4375
+ var e = dn(n), o = Math.min(e[0].pageX, e[1].pageX), s = Math.min(e[0].pageY, e[1].pageY), l = Math.max(e[0].pageX, e[1].pageX), f = Math.max(e[0].pageY, e[1].pageY);
4376
4376
  return { x: o, y: s, left: o, top: s, right: l, bottom: f, width: l - o, height: f - s };
4377
4377
  }
4378
- function pn(n, e) {
4379
- var o = e + "X", s = e + "Y", l = fn(n), f = l[0][o] - l[1][o], p = l[0][s] - l[1][s];
4378
+ function hn(n, e) {
4379
+ var o = e + "X", s = e + "Y", l = dn(n), f = l[0][o] - l[1][o], p = l[0][s] - l[1][s];
4380
4380
  return pt(f, p);
4381
4381
  }
4382
- function hn(n, e) {
4383
- var o = e + "X", s = e + "Y", l = fn(n), f = l[1][o] - l[0][o], p = l[1][s] - l[0][s];
4382
+ function gn(n, e) {
4383
+ var o = e + "X", s = e + "Y", l = dn(n), f = l[1][o] - l[0][o], p = l[1][s] - l[0][s];
4384
4384
  return 180 * Math.atan2(p, f) / Math.PI;
4385
4385
  }
4386
4386
  function Sr(n) {
@@ -4451,7 +4451,7 @@ function _c() {
4451
4451
  e.dropzone = f, e.target = p, f.fire(e), e.propagationStopped = e.immediatePropagationStopped = !1;
4452
4452
  }
4453
4453
  }
4454
- function gn(n, e) {
4454
+ function mn(n, e) {
4455
4455
  for (var o = (function(f, p) {
4456
4456
  for (var h = [], v = 0, w = f.interactables.list; v < w.length; v++) {
4457
4457
  var y = w[v];
@@ -4505,11 +4505,11 @@ function _c() {
4505
4505
  })(p);
4506
4506
  return s.activeDrops[L] || null;
4507
4507
  }
4508
- function mn(n, e, o) {
4508
+ function vn(n, e, o) {
4509
4509
  var s = n.dropState, l = { enter: null, leave: null, activate: null, deactivate: null, move: null, drop: null };
4510
4510
  return o.type === "dragstart" && (l.activate = new ut(s, o, "dropactivate"), l.activate.target = null, l.activate.dropzone = null), o.type === "dragend" && (l.deactivate = new ut(s, o, "dropdeactivate"), l.deactivate.target = null, l.deactivate.dropzone = null), s.rejected || (s.cur.element !== s.prev.element && (s.prev.dropzone && (l.leave = new ut(s, o, "dragleave"), o.dragLeave = l.leave.target = s.prev.element, o.prevDropzone = l.leave.dropzone = s.prev.dropzone), s.cur.dropzone && (l.enter = new ut(s, o, "dragenter"), o.dragEnter = s.cur.element, o.dropzone = s.cur.dropzone)), o.type === "dragend" && s.cur.dropzone && (l.drop = new ut(s, o, "drop"), o.dropzone = s.cur.dropzone, o.relatedTarget = s.cur.element), o.type === "dragmove" && s.cur.dropzone && (l.move = new ut(s, o, "dropmove"), o.dropzone = s.cur.dropzone)), l;
4511
4511
  }
4512
- function vn(n, e) {
4512
+ function yn(n, e) {
4513
4513
  var o = n.dropState, s = o.activeDrops, l = o.cur, f = o.prev;
4514
4514
  e.leave && f.dropzone.fire(e.leave), e.enter && l.dropzone.fire(e.enter), e.move && l.dropzone.fire(e.move), e.drop && l.dropzone.fire(e.drop), e.deactivate && Pr(s, e.deactivate), o.prev.dropzone = l.dropzone, o.prev.element = l.element;
4515
4515
  }
@@ -4517,9 +4517,9 @@ function _c() {
4517
4517
  var o = n.interaction, s = n.iEvent, l = n.event;
4518
4518
  if (s.type === "dragmove" || s.type === "dragend") {
4519
4519
  var f = o.dropState;
4520
- e.dynamicDrop && (f.activeDrops = gn(e, o.element));
4520
+ e.dynamicDrop && (f.activeDrops = mn(e, o.element));
4521
4521
  var p = s, h = Ir(o, p, l);
4522
- f.rejected = f.rejected && !!h && h.dropzone === f.cur.dropzone && h.element === f.cur.element, f.cur.dropzone = h && h.dropzone, f.cur.element = h && h.element, f.events = mn(o, 0, p);
4522
+ f.rejected = f.rejected && !!h && h.dropzone === f.cur.dropzone && h.element === f.cur.element, f.cur.dropzone = h && h.dropzone, f.cur.element = h && h.element, f.events = vn(o, 0, p);
4523
4523
  }
4524
4524
  }
4525
4525
  var Cr = { id: "actions/drop", install: function(n) {
@@ -4565,18 +4565,18 @@ function _c() {
4565
4565
  var o = n.interaction, s = n.iEvent;
4566
4566
  if (o.prepared.name === "drag") {
4567
4567
  var l = o.dropState;
4568
- l.activeDrops = [], l.events = {}, l.activeDrops = gn(e, o.element), l.events = mn(o, 0, s), l.events.activate && (Pr(l.activeDrops, l.events.activate), e.fire("actions/drop:start", { interaction: o, dragEvent: s }));
4568
+ l.activeDrops = [], l.events = {}, l.activeDrops = mn(e, o.element), l.events = vn(o, 0, s), l.events.activate && (Pr(l.activeDrops, l.events.activate), e.fire("actions/drop:start", { interaction: o, dragEvent: s }));
4569
4569
  }
4570
4570
  }, "interactions:action-move": kr, "interactions:after-action-move": function(n, e) {
4571
4571
  var o = n.interaction, s = n.iEvent;
4572
4572
  if (o.prepared.name === "drag") {
4573
4573
  var l = o.dropState;
4574
- vn(o, l.events), e.fire("actions/drop:move", { interaction: o, dragEvent: s }), l.events = {};
4574
+ yn(o, l.events), e.fire("actions/drop:move", { interaction: o, dragEvent: s }), l.events = {};
4575
4575
  }
4576
4576
  }, "interactions:action-end": function(n, e) {
4577
4577
  if (n.interaction.prepared.name === "drag") {
4578
4578
  var o = n.interaction, s = n.iEvent;
4579
- kr(n, e), vn(o, o.dropState.events), e.fire("actions/drop:end", { interaction: o, dragEvent: s });
4579
+ kr(n, e), yn(o, o.dropState.events), e.fire("actions/drop:end", { interaction: o, dragEvent: s });
4580
4580
  }
4581
4581
  }, "interactions:stop": function(n) {
4582
4582
  var e = n.interaction;
@@ -4584,29 +4584,29 @@ function _c() {
4584
4584
  var o = e.dropState;
4585
4585
  o && (o.activeDrops = null, o.events = null, o.cur.dropzone = null, o.cur.element = null, o.prev.dropzone = null, o.prev.element = null, o.rejected = !1);
4586
4586
  }
4587
- } }, getActiveDrops: gn, getDrop: Ir, getDropEvents: mn, fireDropEvents: vn, filterEventType: function(n) {
4587
+ } }, getActiveDrops: mn, getDrop: Ir, getDropEvents: vn, fireDropEvents: yn, filterEventType: function(n) {
4588
4588
  return n.search("drag") === 0 || n.search("drop") === 0;
4589
- }, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, fi = Cr;
4590
- function yn(n) {
4589
+ }, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, di = Cr;
4590
+ function xn(n) {
4591
4591
  var e = n.interaction, o = n.iEvent, s = n.phase;
4592
4592
  if (e.prepared.name === "gesture") {
4593
4593
  var l = e.pointers.map((function(w) {
4594
4594
  return w.pointer;
4595
4595
  })), f = s === "start", p = s === "end", h = e.interactable.options.deltaSource;
4596
- if (o.touches = [l[0], l[1]], f) o.distance = pn(l, h), o.box = dn(l), o.scale = 1, o.ds = 0, o.angle = hn(l, h), o.da = 0, e.gesture.startDistance = o.distance, e.gesture.startAngle = o.angle;
4596
+ if (o.touches = [l[0], l[1]], f) o.distance = hn(l, h), o.box = pn(l), o.scale = 1, o.ds = 0, o.angle = gn(l, h), o.da = 0, e.gesture.startDistance = o.distance, e.gesture.startAngle = o.angle;
4597
4597
  else if (p || e.pointers.length < 2) {
4598
4598
  var v = e.prevEvent;
4599
4599
  o.distance = v.distance, o.box = v.box, o.scale = v.scale, o.ds = 0, o.angle = v.angle, o.da = 0;
4600
- } else o.distance = pn(l, h), o.box = dn(l), o.scale = o.distance / e.gesture.startDistance, o.angle = hn(l, h), o.ds = o.scale - e.gesture.scale, o.da = o.angle - e.gesture.angle;
4600
+ } else o.distance = hn(l, h), o.box = pn(l), o.scale = o.distance / e.gesture.startDistance, o.angle = gn(l, h), o.ds = o.scale - e.gesture.scale, o.da = o.angle - e.gesture.angle;
4601
4601
  e.gesture.distance = o.distance, e.gesture.angle = o.angle, N.number(o.scale) && o.scale !== 1 / 0 && !isNaN(o.scale) && (e.gesture.scale = o.scale);
4602
4602
  }
4603
4603
  }
4604
- var xn = { id: "actions/gesture", before: ["actions/drag", "actions/resize"], install: function(n) {
4604
+ var bn = { id: "actions/gesture", before: ["actions/drag", "actions/resize"], install: function(n) {
4605
4605
  var e = n.actions, o = n.Interactable, s = n.defaults;
4606
4606
  o.prototype.gesturable = function(l) {
4607
4607
  return N.object(l) ? (this.options.gesture.enabled = l.enabled !== !1, this.setPerAction("gesture", l), this.setOnEvents("gesture", l), this) : N.bool(l) ? (this.options.gesture.enabled = l, this) : this.options.gesture;
4608
- }, e.map.gesture = xn, e.methodDict.gesture = "gesturable", s.actions.gesture = xn.defaults;
4609
- }, listeners: { "interactions:action-start": yn, "interactions:action-move": yn, "interactions:action-end": yn, "interactions:new": function(n) {
4608
+ }, e.map.gesture = bn, e.methodDict.gesture = "gesturable", s.actions.gesture = bn.defaults;
4609
+ }, listeners: { "interactions:action-start": xn, "interactions:action-move": xn, "interactions:action-end": xn, "interactions:new": function(n) {
4610
4610
  n.interaction.gesture = { angle: 0, distance: 0, scale: 1, startAngle: 0, startDistance: 0 };
4611
4611
  }, "auto-start:check": function(n) {
4612
4612
  if (!(n.interaction.pointers.length < 2)) {
@@ -4617,8 +4617,8 @@ function _c() {
4617
4617
  return "";
4618
4618
  }, filterEventType: function(n) {
4619
4619
  return n.search("gesture") === 0;
4620
- } }, di = xn;
4621
- function pi(n, e, o, s, l, f, p) {
4620
+ } }, pi = bn;
4621
+ function hi(n, e, o, s, l, f, p) {
4622
4622
  if (!e) return !1;
4623
4623
  if (e === !0) {
4624
4624
  var h = N.number(f.width) ? f.width : f.right - f.left, v = N.number(f.height) ? f.height : f.bottom - f.top;
@@ -4695,7 +4695,7 @@ function _c() {
4695
4695
  if (h && h.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || (f & h.mouseButtons) != 0)) {
4696
4696
  if (N.object(h.edges)) {
4697
4697
  var v = { left: !1, right: !1, top: !1, bottom: !1 };
4698
- for (var w in v) v[w] = pi(w, h.edges[w], p, e._latestPointer.eventTarget, s, l, h.margin || Ge.defaultMargin);
4698
+ for (var w in v) v[w] = hi(w, h.edges[w], p, e._latestPointer.eventTarget, s, l, h.margin || Ge.defaultMargin);
4699
4699
  v.left = v.left && !v.right, v.top = v.top && !v.bottom, (v.left || v.right || v.top || v.bottom) && (n.action = { name: "resize", edges: v });
4700
4700
  } else {
4701
4701
  var y = h.axis !== "y" && p.x > l.right - Ge.defaultMargin, _ = h.axis !== "x" && p.y > l.bottom - Ge.defaultMargin;
@@ -4717,8 +4717,8 @@ function _c() {
4717
4717
  return f;
4718
4718
  }, filterEventType: function(n) {
4719
4719
  return n.search("resize") === 0;
4720
- }, defaultMargin: null }, hi = Ge, gi = { id: "actions", install: function(n) {
4721
- n.usePlugin(di), n.usePlugin(hi), n.usePlugin(oe), n.usePlugin(fi);
4720
+ }, defaultMargin: null }, gi = Ge, mi = { id: "actions", install: function(n) {
4721
+ n.usePlugin(pi), n.usePlugin(gi), n.usePlugin(oe), n.usePlugin(di);
4722
4722
  } }, jr = 0, Je = { request: function(n) {
4723
4723
  return Ue(n);
4724
4724
  }, cancel: function(n) {
@@ -4775,7 +4775,7 @@ function _c() {
4775
4775
  function Mr(n) {
4776
4776
  return N.window(n) && (n = window.document.body), { x: n.scrollLeft, y: n.scrollTop };
4777
4777
  }
4778
- var mi = { id: "auto-scroll", install: function(n) {
4778
+ var vi = { id: "auto-scroll", install: function(n) {
4779
4779
  var e = n.defaults, o = n.actions;
4780
4780
  n.autoScroll = pe, pe.now = function() {
4781
4781
  return n.now();
@@ -4786,23 +4786,23 @@ function _c() {
4786
4786
  n.interaction.autoScroll = null, pe.stop(), pe.interaction && (pe.interaction = null);
4787
4787
  }, "interactions:stop": pe.stop, "interactions:action-move": function(n) {
4788
4788
  return pe.onInteractionMove(n);
4789
- } } }, vi = mi;
4789
+ } } }, yi = vi;
4790
4790
  function vt(n, e) {
4791
4791
  var o = !1;
4792
4792
  return function() {
4793
4793
  return o || (W.console.warn(e), o = !0), n.apply(this, arguments);
4794
4794
  };
4795
4795
  }
4796
- function bn(n, e) {
4796
+ function wn(n, e) {
4797
4797
  return n.name = e.name, n.axis = e.axis, n.edges = e.edges, n;
4798
4798
  }
4799
- function yi(n) {
4799
+ function xi(n) {
4800
4800
  return N.bool(n) ? (this.options.styleCursor = n, this) : n === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
4801
4801
  }
4802
- function xi(n) {
4802
+ function bi(n) {
4803
4803
  return N.func(n) ? (this.options.actionChecker = n, this) : n === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
4804
4804
  }
4805
- var bi = { id: "auto-start/interactableMethods", install: function(n) {
4805
+ var wi = { id: "auto-start/interactableMethods", install: function(n) {
4806
4806
  var e = n.Interactable;
4807
4807
  e.prototype.getAction = function(o, s, l, f) {
4808
4808
  var p = (function(h, v, w, y, _) {
@@ -4814,12 +4814,12 @@ function _c() {
4814
4814
  return this._backCompatOption("ignoreFrom", o);
4815
4815
  }), "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), e.prototype.allowFrom = vt((function(o) {
4816
4816
  return this._backCompatOption("allowFrom", o);
4817
- }), "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker = xi, e.prototype.styleCursor = yi;
4817
+ }), "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker = bi, e.prototype.styleCursor = xi;
4818
4818
  } };
4819
4819
  function Rr(n, e, o, s, l) {
4820
4820
  return e.testIgnoreAllow(e.options[n.name], o, s) && e.options[n.name].enabled && zt(e, o, n, l) ? n : null;
4821
4821
  }
4822
- function wi(n, e, o, s, l, f, p) {
4822
+ function Ei(n, e, o, s, l, f, p) {
4823
4823
  for (var h = 0, v = s.length; h < v; h++) {
4824
4824
  var w = s[h], y = l[h], _ = w.getAction(e, o, n, y);
4825
4825
  if (_) {
@@ -4836,7 +4836,7 @@ function _c() {
4836
4836
  }
4837
4837
  for (; N.element(h); ) {
4838
4838
  f = [], p = [], l.interactables.forEachMatch(h, v);
4839
- var w = wi(n, e, o, f, p, s, l);
4839
+ var w = Ei(n, e, o, f, p, s, l);
4840
4840
  if (w.action && !w.interactable.options[w.action.name].manualStart) return w;
4841
4841
  h = F(h);
4842
4842
  }
@@ -4844,7 +4844,7 @@ function _c() {
4844
4844
  }
4845
4845
  function Lr(n, e, o) {
4846
4846
  var s = e.action, l = e.interactable, f = e.element;
4847
- s = s || { name: null }, n.interactable = l, n.element = f, bn(n.prepared, s), n.rect = l && s.name ? l.getRect(f) : null, Vr(n, o), o.fire("autoStart:prepared", { interaction: n });
4847
+ s = s || { name: null }, n.interactable = l, n.element = f, wn(n.prepared, s), n.rect = l && s.name ? l.getRect(f) : null, Vr(n, o), o.fire("autoStart:prepared", { interaction: n });
4848
4848
  }
4849
4849
  function zt(n, e, o, s) {
4850
4850
  var l = n.options, f = l[o.name].max, p = l[o.name].maxPerElement, h = s.autoStart.maxInteractions, v = 0, w = 0, y = 0;
@@ -4859,7 +4859,7 @@ function _c() {
4859
4859
  function Fr(n, e) {
4860
4860
  return N.number(n) ? (e.autoStart.maxInteractions = n, this) : e.autoStart.maxInteractions;
4861
4861
  }
4862
- function wn(n, e, o) {
4862
+ function En(n, e, o) {
4863
4863
  var s = o.autoStart.cursorElement;
4864
4864
  s && s !== n && (s.style.cursor = ""), n.ownerDocument.documentElement.style.cursor = e, n.style.cursor = e, o.autoStart.cursorElement = e ? n : null;
4865
4865
  }
@@ -4871,12 +4871,12 @@ function _c() {
4871
4871
  var p = o.options[l.name].cursorChecker;
4872
4872
  f = N.func(p) ? p(l, o, s, n._interacting) : e.actions.map[l.name].getCursor(l);
4873
4873
  }
4874
- wn(n.element, f || "", e);
4875
- } else e.autoStart.cursorElement && wn(e.autoStart.cursorElement, "", e);
4874
+ En(n.element, f || "", e);
4875
+ } else e.autoStart.cursorElement && En(e.autoStart.cursorElement, "", e);
4876
4876
  }
4877
- var Ei = { id: "auto-start/base", before: ["actions"], install: function(n) {
4877
+ var Ni = { id: "auto-start/base", before: ["actions"], install: function(n) {
4878
4878
  var e = n.interactStatic, o = n.defaults;
4879
- n.usePlugin(bi), o.base.actionChecker = null, o.base.styleCursor = !0, Q(o.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), e.maxInteractions = function(s) {
4879
+ n.usePlugin(wi), o.base.actionChecker = null, o.base.styleCursor = !0, Q(o.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), e.maxInteractions = function(s) {
4880
4880
  return Fr(s, n);
4881
4881
  }, n.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: zt, cursorElement: null };
4882
4882
  }, listeners: { "interactions:down": function(n, e) {
@@ -4896,8 +4896,8 @@ function _c() {
4896
4896
  })(n, e);
4897
4897
  }, "interactions:stop": function(n, e) {
4898
4898
  var o = n.interaction, s = o.interactable;
4899
- s && s.options.styleCursor && wn(o.element, "", e);
4900
- } }, maxInteractions: Fr, withinInteractionLimit: zt, validateAction: Rr }, En = Ei, Ni = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(n, e) {
4899
+ s && s.options.styleCursor && En(o.element, "", e);
4900
+ } }, maxInteractions: Fr, withinInteractionLimit: zt, validateAction: Rr }, Nn = Ni, Si = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(n, e) {
4901
4901
  var o = n.interaction, s = n.eventTarget, l = n.dx, f = n.dy;
4902
4902
  if (o.prepared.name === "drag") {
4903
4903
  var p = Math.abs(l), h = Math.abs(f), v = o.interactable.options.drag, w = v.startAxis, y = p > h ? "x" : p < h ? "y" : "xy";
@@ -4912,7 +4912,7 @@ function _c() {
4912
4912
  if (!ce) return !1;
4913
4913
  var ve = ce.options.drag.startAxis;
4914
4914
  return re === "xy" || ve === "xy" || ve === re;
4915
- })(y, L) && En.validateAction(ie, L, _, s, e)) return L;
4915
+ })(y, L) && Nn.validateAction(ie, L, _, s, e)) return L;
4916
4916
  }
4917
4917
  }
4918
4918
  }; N.element(_); ) {
@@ -4926,19 +4926,19 @@ function _c() {
4926
4926
  }
4927
4927
  }
4928
4928
  } } };
4929
- function Nn(n) {
4929
+ function Sn(n) {
4930
4930
  var e = n.prepared && n.prepared.name;
4931
4931
  if (!e) return null;
4932
4932
  var o = n.interactable.options;
4933
4933
  return o[e].hold || o[e].delay;
4934
4934
  }
4935
- var Si = { id: "auto-start/hold", install: function(n) {
4935
+ var Ti = { id: "auto-start/hold", install: function(n) {
4936
4936
  var e = n.defaults;
4937
- n.usePlugin(En), e.perAction.hold = 0, e.perAction.delay = 0;
4937
+ n.usePlugin(Nn), e.perAction.hold = 0, e.perAction.delay = 0;
4938
4938
  }, listeners: { "interactions:new": function(n) {
4939
4939
  n.interaction.autoStartHoldTimer = null;
4940
4940
  }, "autoStart:prepared": function(n) {
4941
- var e = n.interaction, o = Nn(e);
4941
+ var e = n.interaction, o = Sn(e);
4942
4942
  o > 0 && (e.autoStartHoldTimer = setTimeout((function() {
4943
4943
  e.start(e.prepared, e.interactable, e.element);
4944
4944
  }), o));
@@ -4947,19 +4947,19 @@ function _c() {
4947
4947
  e.autoStartHoldTimer && e.pointerWasMoved && !o && (clearTimeout(e.autoStartHoldTimer), e.autoStartHoldTimer = null);
4948
4948
  }, "autoStart:before-start": function(n) {
4949
4949
  var e = n.interaction;
4950
- Nn(e) > 0 && (e.prepared.name = null);
4951
- } }, getHoldDuration: Nn }, Ti = Si, _i = { id: "auto-start", install: function(n) {
4952
- n.usePlugin(En), n.usePlugin(Ti), n.usePlugin(Ni);
4953
- } }, Oi = function(n) {
4950
+ Sn(e) > 0 && (e.prepared.name = null);
4951
+ } }, getHoldDuration: Sn }, _i = Ti, Oi = { id: "auto-start", install: function(n) {
4952
+ n.usePlugin(Nn), n.usePlugin(_i), n.usePlugin(Si);
4953
+ } }, Pi = function(n) {
4954
4954
  return /^(always|never|auto)$/.test(n) ? (this.options.preventDefault = n, this) : N.bool(n) ? (this.options.preventDefault = n ? "always" : "never", this) : this.options.preventDefault;
4955
4955
  };
4956
- function Pi(n) {
4956
+ function Ii(n) {
4957
4957
  var e = n.interaction, o = n.event;
4958
4958
  e.interactable && e.interactable.checkAndPreventDefault(o);
4959
4959
  }
4960
4960
  var Dr = { id: "core/interactablePreventDefault", install: function(n) {
4961
4961
  var e = n.Interactable;
4962
- e.prototype.preventDefault = Oi, e.prototype.checkAndPreventDefault = function(o) {
4962
+ e.prototype.preventDefault = Pi, e.prototype.checkAndPreventDefault = function(o) {
4963
4963
  return (function(s, l, f) {
4964
4964
  var p = s.options.preventDefault;
4965
4965
  if (p !== "never") if (p !== "always") {
@@ -4977,7 +4977,7 @@ function _c() {
4977
4977
  }
4978
4978
  } });
4979
4979
  }, listeners: ["down", "move", "up", "cancel"].reduce((function(n, e) {
4980
- return n["interactions:".concat(e)] = Pi, n;
4980
+ return n["interactions:".concat(e)] = Ii, n;
4981
4981
  }), {}) };
4982
4982
  function Lt(n, e) {
4983
4983
  if (e.phaselessTypes[n]) return !0;
@@ -4992,7 +4992,7 @@ function _c() {
4992
4992
  }
4993
4993
  return e;
4994
4994
  }
4995
- var Sn = (function() {
4995
+ var Tn = (function() {
4996
4996
  function n(e) {
4997
4997
  u(this, n), this.states = [], this.startOffset = { left: 0, right: 0, top: 0, bottom: 0 }, this.startDelta = void 0, this.result = void 0, this.endResult = void 0, this.startEdges = void 0, this.edges = void 0, this.interaction = void 0, this.interaction = e, this.result = Ft(), this.edges = { left: !1, right: !1, top: !1, bottom: !1 };
4998
4998
  }
@@ -5117,11 +5117,11 @@ function _c() {
5117
5117
  var e = n.iEvent, o = n.interaction.modification.result;
5118
5118
  o && (e.modifiers = o.eventProps);
5119
5119
  }
5120
- var Ii = { id: "modifiers/base", before: ["actions"], install: function(n) {
5120
+ var ki = { id: "modifiers/base", before: ["actions"], install: function(n) {
5121
5121
  n.defaults.perAction.modifiers = [];
5122
5122
  }, listeners: { "interactions:new": function(n) {
5123
5123
  var e = n.interaction;
5124
- e.modification = new Sn(e);
5124
+ e.modification = new Tn(e);
5125
5125
  }, "interactions:before-action-start": function(n) {
5126
5126
  var e = n.interaction, o = n.interaction.modification;
5127
5127
  o.start(n, e.coords.start.page), e.edges = o.edges, o.applyToInteraction(n);
@@ -5137,7 +5137,7 @@ function _c() {
5137
5137
  return n.interaction.modification.restoreInteractionCoords(n);
5138
5138
  }, "interactions:stop": function(n) {
5139
5139
  return n.interaction.modification.stop(n);
5140
- } } }, Hr = Ii, Br = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, Tn = (function(n) {
5140
+ } } }, Hr = ki, Br = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, _n = (function(n) {
5141
5141
  x(o, n);
5142
5142
  var e = $(o);
5143
5143
  function o(s, l, f, p, h, v, w) {
@@ -5160,7 +5160,7 @@ function _c() {
5160
5160
  this.propagationStopped = !0;
5161
5161
  } }]), o;
5162
5162
  })(Rt);
5163
- Object.defineProperties(Tn.prototype, { pageX: { get: function() {
5163
+ Object.defineProperties(_n.prototype, { pageX: { get: function() {
5164
5164
  return this.page.x;
5165
5165
  }, set: function(n) {
5166
5166
  this.page.x = n;
@@ -5193,18 +5193,18 @@ function _c() {
5193
5193
  }, set: function(n) {
5194
5194
  this.velocity.y = n;
5195
5195
  } } });
5196
- var ki = g((function n(e, o, s, l, f) {
5196
+ var Ci = g((function n(e, o, s, l, f) {
5197
5197
  u(this, n), this.id = void 0, this.pointer = void 0, this.event = void 0, this.downTime = void 0, this.downTarget = void 0, this.id = e, this.pointer = o, this.event = s, this.downTime = l, this.downTarget = f;
5198
- })), Ci = (function(n) {
5198
+ })), $i = (function(n) {
5199
5199
  return n.interactable = "", n.element = "", n.prepared = "", n.pointerIsDown = "", n.pointerWasMoved = "", n._proxy = "", n;
5200
5200
  })({}), Yr = (function(n) {
5201
5201
  return n.start = "", n.move = "", n.end = "", n.stop = "", n.interacting = "", n;
5202
- })({}), $i = 0, ji = (function() {
5202
+ })({}), ji = 0, Ai = (function() {
5203
5203
  function n(e) {
5204
5204
  var o = this, s = e.pointerType, l = e.scopeFire;
5205
5205
  u(this, n), this.interactable = null, this.element = null, this.rect = null, this._rects = void 0, this.edges = null, this._scopeFire = void 0, this.prepared = { name: null, axis: null, edges: null }, this.pointerType = void 0, this.pointers = [], this.downEvent = null, this.downPointer = {}, this._latestPointer = { pointer: null, event: null, eventTarget: null }, this.prevEvent = null, this.pointerIsDown = !1, this.pointerWasMoved = !1, this._interacting = !1, this._ending = !1, this._stopped = !0, this._proxy = void 0, this.simulation = null, this.doMove = vt((function(y) {
5206
5206
  this.move(y);
5207
- }), "The interaction.doMove() method has been renamed to interaction.move()"), this.coords = { start: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, prev: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, cur: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, delta: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, velocity: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 } }, this._id = $i++, this._scopeFire = l, this.pointerType = s;
5207
+ }), "The interaction.doMove() method has been renamed to interaction.move()"), this.coords = { start: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, prev: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, cur: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, delta: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, velocity: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 } }, this._id = ji++, this._scopeFire = l, this.pointerType = s;
5208
5208
  var f = this;
5209
5209
  this._proxy = {};
5210
5210
  var p = function(y) {
@@ -5212,7 +5212,7 @@ function _c() {
5212
5212
  return f[y];
5213
5213
  } });
5214
5214
  };
5215
- for (var h in Ci) p(h);
5215
+ for (var h in $i) p(h);
5216
5216
  var v = function(y) {
5217
5217
  Object.defineProperty(o._proxy, y, { value: function() {
5218
5218
  return f[y].apply(f, arguments);
@@ -5227,7 +5227,7 @@ function _c() {
5227
5227
  var l = this.updatePointer(e, o, s, !0), f = this.pointers[l];
5228
5228
  this._scopeFire("interactions:down", { pointer: e, event: o, eventTarget: s, pointerIndex: l, pointerInfo: f, type: "down", interaction: this });
5229
5229
  } }, { key: "start", value: function(e, o, s) {
5230
- return !(this.interacting() || !this.pointerIsDown || this.pointers.length < (e.name === "gesture" ? 2 : 1) || !o.options[e.name].enabled) && (bn(this.prepared, e), this.interactable = o, this.element = s, this.rect = o.getRect(s), this.edges = this.prepared.edges ? Q({}, this.prepared.edges) : { left: !0, right: !0, top: !0, bottom: !0 }, this._stopped = !1, this._interacting = this._doPhase({ interaction: this, event: this.downEvent, phase: "start" }) && !this._stopped, this._interacting);
5230
+ return !(this.interacting() || !this.pointerIsDown || this.pointers.length < (e.name === "gesture" ? 2 : 1) || !o.options[e.name].enabled) && (wn(this.prepared, e), this.interactable = o, this.element = s, this.rect = o.getRect(s), this.edges = this.prepared.edges ? Q({}, this.prepared.edges) : { left: !0, right: !0, top: !0, bottom: !0 }, this._stopped = !1, this._interacting = this._doPhase({ interaction: this, event: this.downEvent, phase: "start" }) && !this._stopped, this._interacting);
5231
5231
  } }, { key: "pointerMove", value: function(e, o, s) {
5232
5232
  this.simulation || this.modification && this.modification.endResult || this.updatePointer(e, o, s, !1);
5233
5233
  var l, f, p = 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;
@@ -5261,7 +5261,7 @@ function _c() {
5261
5261
  return this.pointers[this.getPointerIndex(e)];
5262
5262
  } }, { key: "updatePointer", value: function(e, o, s, l) {
5263
5263
  var f, p, h, v = ht(e), w = this.getPointerIndex(e), y = this.pointers[w];
5264
- return l = l !== !1 && (l || /(down|start)$/i.test(o.type)), y ? y.pointer = e : (y = new ki(v, e, o, null, null), w = this.pointers.length, this.pointers.push(y)), ui(this.coords.cur, this.pointers.map((function(_) {
5264
+ return l = l !== !1 && (l || /(down|start)$/i.test(o.type)), y ? y.pointer = e : (y = new Ci(v, e, o, null, null), w = this.pointers.length, this.pointers.push(y)), fi(this.coords.cur, this.pointers.map((function(_) {
5265
5265
  return _.pointer;
5266
5266
  })), this._now()), f = this.coords.delta, p = this.coords.prev, h = this.coords.cur, f.page.x = h.page.x - p.page.x, f.page.y = h.page.y - p.page.y, f.client.x = h.client.x - p.client.x, f.client.y = h.client.y - p.client.y, f.timeStamp = h.timeStamp - p.timeStamp, l && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = s, jt(this.downPointer, e), this.interacting() || (At(this.coords.start, this.coords.cur), At(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(e, o, s), this._scopeFire("interactions:update-pointer", { pointer: e, event: o, eventTarget: s, down: l, pointerInfo: y, pointerIndex: w, interaction: this }), w;
5267
5267
  } }, { key: "removePointer", value: function(e, o) {
@@ -5275,7 +5275,7 @@ function _c() {
5275
5275
  } }, { key: "destroy", value: function() {
5276
5276
  this._latestPointer.pointer = null, this._latestPointer.event = null, this._latestPointer.eventTarget = null;
5277
5277
  } }, { key: "_createPreparedEvent", value: function(e, o, s, l) {
5278
- return new Tn(this, e, this.prepared.name, o, this.element, s, l);
5278
+ return new _n(this, e, this.prepared.name, o, this.element, s, l);
5279
5279
  } }, { key: "_fireEvent", value: function(e) {
5280
5280
  var o;
5281
5281
  (o = this.interactable) == null || o.fire(e), (!this.prevEvent || e.timeStamp >= this.prevEvent.timeStamp) && (this.prevEvent = e);
@@ -5296,24 +5296,24 @@ function _c() {
5296
5296
  return !(!o.offset.pending.x && !o.offset.pending.y);
5297
5297
  })(n)) return !1;
5298
5298
  var e = n.offset.pending;
5299
- return _n(n.coords.cur, e), _n(n.coords.delta, e), ze(n.edges, n.rect, e), e.x = 0, e.y = 0, !0;
5299
+ return On(n.coords.cur, e), On(n.coords.delta, e), ze(n.edges, n.rect, e), e.x = 0, e.y = 0, !0;
5300
5300
  }
5301
- function Ai(n) {
5301
+ function Mi(n) {
5302
5302
  var e = n.x, o = n.y;
5303
5303
  this.offset.pending.x += e, this.offset.pending.y += o, this.offset.total.x += e, this.offset.total.y += o;
5304
5304
  }
5305
- function _n(n, e) {
5305
+ function On(n, e) {
5306
5306
  var o = n.page, s = n.client, l = e.x, f = e.y;
5307
5307
  o.x += l, o.y += f, s.x += l, s.y += f;
5308
5308
  }
5309
5309
  Yr.offsetBy = "";
5310
- var Mi = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(n) {
5311
- n.Interaction.prototype.offsetBy = Ai;
5310
+ var Ri = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(n) {
5311
+ n.Interaction.prototype.offsetBy = Mi;
5312
5312
  }, listeners: { "interactions:new": function(n) {
5313
5313
  n.interaction.offset = { total: { x: 0, y: 0 }, pending: { x: 0, y: 0 } };
5314
5314
  }, "interactions:update-pointer": function(n) {
5315
5315
  return (function(e) {
5316
- e.pointerIsDown && (_n(e.coords.cur, e.offset.total), e.offset.pending.x = 0, e.offset.pending.y = 0);
5316
+ e.pointerIsDown && (On(e.coords.cur, e.offset.total), e.offset.pending.x = 0, e.offset.pending.y = 0);
5317
5317
  })(n.interaction);
5318
5318
  }, "interactions:before-action-start": Xr, "interactions:before-action-move": Xr, "interactions:before-action-end": function(n) {
5319
5319
  var e = n.interaction;
@@ -5321,14 +5321,14 @@ function _c() {
5321
5321
  }, "interactions:stop": function(n) {
5322
5322
  var e = n.interaction;
5323
5323
  e.offset.total.x = 0, e.offset.total.y = 0, e.offset.pending.x = 0, e.offset.pending.y = 0;
5324
- } } }, Gr = Mi, Ri = (function() {
5324
+ } } }, Gr = Ri, zi = (function() {
5325
5325
  function n(e) {
5326
5326
  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 = e;
5327
5327
  }
5328
5328
  return g(n, [{ key: "start", value: function(e) {
5329
5329
  var o = this.interaction, s = Vt(o);
5330
5330
  if (!s || !s.enabled) return !1;
5331
- var l = o.coords.velocity.client, f = pt(l.x, l.y), p = this.modification || (this.modification = new Sn(o));
5331
+ var l = o.coords.velocity.client, f = pt(l.x, l.y), p = this.modification || (this.modification = new Tn(o));
5332
5332
  if (p.copyFrom(o.modification), this.t0 = o._now(), this.allowResume = s.allowResume, this.v0 = f, this.currentOffset = { x: 0, y: 0 }, this.startCoords = o.coords.cur.page, this.modifierArg = p.fillArg({ pageCoords: this.startCoords, preEnd: !0, phase: "inertiastart" }), this.t0 - o.coords.cur.timeStamp < 50 && f > s.minSpeed && f > s.endSpeed) this.startInertia();
5333
5333
  else {
5334
5334
  if (p.result = p.setAll(this.modifierArg), !p.result.changed) return !1;
@@ -5383,12 +5383,12 @@ function _c() {
5383
5383
  var e = n.interactable, o = n.prepared;
5384
5384
  return e && e.options && o.name && e.options[o.name].inertia;
5385
5385
  }
5386
- var zi = { id: "inertia", before: ["modifiers", "actions"], install: function(n) {
5386
+ var Li = { id: "inertia", before: ["modifiers", "actions"], install: function(n) {
5387
5387
  var e = n.defaults;
5388
5388
  n.usePlugin(Gr), n.usePlugin(Hr), n.actions.phases.inertiastart = !0, n.actions.phases.resume = !0, e.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
5389
5389
  }, listeners: { "interactions:new": function(n) {
5390
5390
  var e = n.interaction;
5391
- e.inertia = new Ri(e);
5391
+ e.inertia = new zi(e);
5392
5392
  }, "interactions:before-action-end": function(n) {
5393
5393
  var e = n.interaction, o = n.event;
5394
5394
  return (!e._interacting || e.simulation || !e.inertia.start(o)) && null;
@@ -5421,7 +5421,7 @@ function _c() {
5421
5421
  function Kr(n, e, o, s) {
5422
5422
  return -o * (n /= s) * (n - 2) + e;
5423
5423
  }
5424
- var Li = zi;
5424
+ var Fi = Li;
5425
5425
  function Wr(n, e) {
5426
5426
  for (var o = 0; o < e.length; o++) {
5427
5427
  var s = e[o];
@@ -5451,7 +5451,7 @@ function _c() {
5451
5451
  } }, { key: "getRect", value: function(e) {
5452
5452
  return null;
5453
5453
  } }]), n;
5454
- })(), Fi = (function() {
5454
+ })(), Vi = (function() {
5455
5455
  function n(e) {
5456
5456
  u(this, n), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = e, jt(this, e);
5457
5457
  }
@@ -5469,7 +5469,7 @@ function _c() {
5469
5469
  function Dt(n, e) {
5470
5470
  return n === e || (typeof n == "boolean" ? !!e.capture === n && !e.passive : !!n.capture == !!e.capture && !!n.passive == !!e.passive);
5471
5471
  }
5472
- var Vi = { id: "events", install: function(n) {
5472
+ var Di = { id: "events", install: function(n) {
5473
5473
  var e, o = [], s = {}, l = [], f = { add: p, remove: h, addDelegate: function(y, _, j, V, L) {
5474
5474
  var H = xt(L);
5475
5475
  if (!s[j]) {
@@ -5538,7 +5538,7 @@ function _c() {
5538
5538
  }
5539
5539
  }
5540
5540
  function v(y, _) {
5541
- for (var j = xt(_), V = new Fi(y), L = s[y.type], H = Tr(y)[0], ie = H; N.element(ie); ) {
5541
+ for (var j = xt(_), V = new Vi(y), L = s[y.type], H = Tr(y)[0], ie = H; N.element(ie); ) {
5542
5542
  for (var re = 0; re < L.length; re++) {
5543
5543
  var ce = L[re], ve = ce.selector, be = ce.context;
5544
5544
  if (R(ie, ve) && ne(be, H) && ne(be, ie)) {
@@ -5561,9 +5561,9 @@ function _c() {
5561
5561
  }, get passive() {
5562
5562
  return f.supportsPassive = !0;
5563
5563
  } }), n.events = f, f;
5564
- } }, On = { methodOrder: ["simulationResume", "mouseOrPen", "hasPointer", "idle"], search: function(n) {
5565
- for (var e = 0, o = On.methodOrder; e < o.length; e++) {
5566
- var s = o[e], l = On[s](n);
5564
+ } }, Pn = { methodOrder: ["simulationResume", "mouseOrPen", "hasPointer", "idle"], search: function(n) {
5565
+ for (var e = 0, o = Pn.methodOrder; e < o.length; e++) {
5566
+ var s = o[e], l = Pn[s](n);
5567
5567
  if (l) return l;
5568
5568
  }
5569
5569
  return null;
@@ -5617,7 +5617,7 @@ function _c() {
5617
5617
  return o.id === e;
5618
5618
  }));
5619
5619
  }
5620
- var Di = On, Pn = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
5620
+ var Hi = Pn, In = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
5621
5621
  function Qr(n, e) {
5622
5622
  return function(o) {
5623
5623
  var s = e.interactions.list, l = Sr(o), f = Tr(o), p = f[0], h = f[1], v = [];
@@ -5645,10 +5645,10 @@ function _c() {
5645
5645
  };
5646
5646
  }
5647
5647
  function eo(n) {
5648
- var e = n.pointerType, o = n.scope, s = { interaction: Di.search(n), searchDetails: n };
5648
+ var e = n.pointerType, o = n.scope, s = { interaction: Hi.search(n), searchDetails: n };
5649
5649
  return o.fire("interactions:find", s), s.interaction || o.interactions.new({ pointerType: e });
5650
5650
  }
5651
- function In(n, e) {
5651
+ function kn(n, e) {
5652
5652
  var o = n.doc, s = n.scope, l = n.options, f = s.interactions.docEvents, p = s.events, h = p[e];
5653
5653
  for (var v in s.browser.isIOS && !l.events && (l.events = { passive: !1 }), p.delegatedEvents) h(o, v, p.delegateListener), h(o, v, p.delegateUseCapture, !0);
5654
5654
  for (var w = l && l.events, y = 0; y < f.length; y++) {
@@ -5656,9 +5656,9 @@ function _c() {
5656
5656
  h(o, _.type, _.listener, w);
5657
5657
  }
5658
5658
  }
5659
- var Hi = { id: "core/interactions", install: function(n) {
5660
- for (var e = {}, o = 0; o < Pn.length; o++) {
5661
- var s = Pn[o];
5659
+ var Bi = { id: "core/interactions", install: function(n) {
5660
+ for (var e = {}, o = 0; o < In.length; o++) {
5661
+ var s = In[o];
5662
5662
  e[s] = Qr(s, n);
5663
5663
  }
5664
5664
  var l, f = te.pEventTypes;
@@ -5689,7 +5689,7 @@ function _c() {
5689
5689
  } }, { key: "_now", value: function() {
5690
5690
  return n.now();
5691
5691
  } }]), w;
5692
- })(ji), n.interactions = { list: [], new: function(h) {
5692
+ })(Ai), n.interactions = { list: [], new: function(h) {
5693
5693
  h.scopeFire = function(w, y) {
5694
5694
  return n.fire(w, y);
5695
5695
  };
@@ -5697,17 +5697,17 @@ function _c() {
5697
5697
  return n.interactions.list.push(v), v;
5698
5698
  }, listeners: e, docEvents: l, pointerMoveTolerance: 1 }, n.usePlugin(Dr);
5699
5699
  }, listeners: { "scope:add-document": function(n) {
5700
- return In(n, "add");
5700
+ return kn(n, "add");
5701
5701
  }, "scope:remove-document": function(n) {
5702
- return In(n, "remove");
5702
+ return kn(n, "remove");
5703
5703
  }, "interactable:unset": function(n, e) {
5704
5704
  for (var o = n.interactable, s = e.interactions.list.length - 1; s >= 0; s--) {
5705
5705
  var l = e.interactions.list[s];
5706
5706
  l.interactable === o && (l.stop(), e.fire("interactions:destroy", { interaction: l }), l.destroy(), e.interactions.list.length > 2 && e.interactions.list.splice(s, 1));
5707
5707
  }
5708
- } }, onDocSignal: In, doOnInteractions: Qr, methodNames: Pn }, Bi = Hi, Qe = (function(n) {
5708
+ } }, onDocSignal: kn, doOnInteractions: Qr, methodNames: In }, Yi = Bi, Qe = (function(n) {
5709
5709
  return n[n.On = 0] = "On", n[n.Off = 1] = "Off", n;
5710
- })(Qe || {}), Yi = (function() {
5710
+ })(Qe || {}), Xi = (function() {
5711
5711
  function n(e, o, s, l) {
5712
5712
  u(this, n), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new Jr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = o.actions, this.target = e, this._context = o.context || s, this._win = J(Ne(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = l, this.set(o);
5713
5713
  }
@@ -5790,7 +5790,7 @@ function _c() {
5790
5790
  }
5791
5791
  else this._scopeEvents.remove(this.target, "all");
5792
5792
  } }]), n;
5793
- })(), Xi = (function() {
5793
+ })(), Ui = (function() {
5794
5794
  function n(e) {
5795
5795
  var o = this;
5796
5796
  u(this, n), this.list = [], this.selectorMap = {}, this.scope = void 0, this.scope = e, e.addListeners({ "interactable:unset": function(s) {
@@ -5815,7 +5815,7 @@ function _c() {
5815
5815
  if ((N.string(f.target) ? N.element(e) && R(e, f.target) : e === f.target) && f.inContext(e) && (p = o(f)), p !== void 0) return p;
5816
5816
  }
5817
5817
  } }]), n;
5818
- })(), Ui = (function() {
5818
+ })(), Gi = (function() {
5819
5819
  function n() {
5820
5820
  var e = this;
5821
5821
  u(this, n), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = te, this.defaults = ft(Br), this.Eventable = Jr, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = (function(s) {
@@ -5823,7 +5823,7 @@ function _c() {
5823
5823
  var v = s.interactables.getExisting(p, h);
5824
5824
  return v || ((v = s.interactables.new(p, h)).events.global = f.globalEvents), v;
5825
5825
  };
5826
- return l.getPointerAverage = Nr, l.getTouchBBox = dn, l.getTouchDistance = pn, l.getTouchAngle = hn, l.getElementRect = he, l.getElementClientRect = fe, l.matchesSelector = R, l.closest = ae, l.globalEvents = {}, l.version = "1.10.27", l.scope = s, l.use = function(f, p) {
5826
+ return l.getPointerAverage = Nr, l.getTouchBBox = pn, l.getTouchDistance = hn, l.getTouchAngle = gn, l.getElementRect = he, l.getElementClientRect = fe, l.matchesSelector = R, l.closest = ae, l.globalEvents = {}, l.version = "1.10.27", l.scope = s, l.use = function(f, p) {
5827
5827
  return this.scope.usePlugin(f, p), this;
5828
5828
  }, l.isSet = function(f, p) {
5829
5829
  return !!this.scope.interactables.get(f, p && p.context);
@@ -5870,7 +5870,7 @@ function _c() {
5870
5870
  }, l.removeDocument = function(f) {
5871
5871
  this.scope.removeDocument(f);
5872
5872
  }, l;
5873
- })(this), this.InteractEvent = Tn, this.Interactable = void 0, this.interactables = new Xi(this), this._win = void 0, this.document = void 0, this.window = void 0, this.documents = [], this._plugins = { list: [], map: {} }, this.onWindowUnload = function(s) {
5873
+ })(this), this.InteractEvent = _n, this.Interactable = void 0, this.interactables = new Ui(this), this._win = void 0, this.document = void 0, this.window = void 0, this.documents = [], this._plugins = { list: [], map: {} }, this.onWindowUnload = function(s) {
5874
5874
  return e.removeDocument(s.target);
5875
5875
  };
5876
5876
  var o = this;
@@ -5889,7 +5889,7 @@ function _c() {
5889
5889
  var p = o.interactables.list.indexOf(this);
5890
5890
  p < 0 || (o.interactables.list.splice(p, 1), o.fire("interactable:unset", { interactable: this }));
5891
5891
  } }]), f;
5892
- })(Yi);
5892
+ })(Xi);
5893
5893
  }
5894
5894
  return g(n, [{ key: "addListeners", value: function(e, o) {
5895
5895
  this.listenerMaps.push({ id: o, map: e });
@@ -5900,7 +5900,7 @@ function _c() {
5900
5900
  }
5901
5901
  } }, { key: "init", value: function(e) {
5902
5902
  return this.isInitialized ? this : (function(o, s) {
5903
- return o.isInitialized = !0, N.window(s) && X(s), D.init(s), te.init(s), Je.init(s), o.window = s, o.document = s.document, o.usePlugin(Bi), o.usePlugin(Vi), o;
5903
+ return o.isInitialized = !0, N.window(s) && X(s), D.init(s), te.init(s), Je.init(s), o.window = s, o.document = s.document, o.usePlugin(Yi), o.usePlugin(Di), o;
5904
5904
  })(this, e);
5905
5905
  } }, { key: "pluginIsInstalled", value: function(e) {
5906
5906
  var o = e.id;
@@ -5938,9 +5938,9 @@ function _c() {
5938
5938
  function to(n) {
5939
5939
  return n && n.replace(/\/.*$/, "");
5940
5940
  }
5941
- var no = new Ui(), je = no.interactStatic, Gi = typeof globalThis < "u" ? globalThis : window;
5942
- no.init(Gi);
5943
- var qi = Object.freeze({ __proto__: null, edgeTarget: function() {
5941
+ var no = new Gi(), je = no.interactStatic, qi = typeof globalThis < "u" ? globalThis : window;
5942
+ no.init(qi);
5943
+ var Ki = Object.freeze({ __proto__: null, edgeTarget: function() {
5944
5944
  }, elements: function() {
5945
5945
  }, grid: function(n) {
5946
5946
  var e = [["x", "y"], ["left", "top"], ["right", "bottom"], ["width", "height"]].filter((function(s) {
@@ -5954,10 +5954,10 @@ function _c() {
5954
5954
  return y;
5955
5955
  };
5956
5956
  return o.grid = n, o.coordFields = e, o;
5957
- } }), Ki = { id: "snappers", install: function(n) {
5957
+ } }), Wi = { id: "snappers", install: function(n) {
5958
5958
  var e = n.interactStatic;
5959
- e.snappers = Q(e.snappers || {}, qi), e.createSnapGrid = e.snappers.grid;
5960
- } }, Wi = Ki, Ji = { start: function(n) {
5959
+ e.snappers = Q(e.snappers || {}, Ki), e.createSnapGrid = e.snappers.grid;
5960
+ } }, Ji = Wi, Zi = { start: function(n) {
5961
5961
  var e = n.state, o = n.rect, s = n.edges, l = n.pageCoords, f = e.options, p = f.ratio, h = f.enabled, v = e.options, w = v.equalDelta, y = v.modifiers;
5962
5962
  p === "preserve" && (p = o.width / o.height), e.startCoords = Q({}, l), e.startRect = Q({}, o), e.ratio = p, e.equalDelta = w;
5963
5963
  var _ = e.linkedEdges = { top: s.top || s.left && !s.bottom, left: s.left || s.top && !s.right, bottom: s.bottom || s.right && !s.top, right: s.right || s.bottom && !s.left };
@@ -5966,22 +5966,22 @@ function _c() {
5966
5966
  e.edgeSign = { x: j, y: j };
5967
5967
  } else e.edgeSign = { x: _.left ? -1 : 1, y: _.top ? -1 : 1 };
5968
5968
  if (h !== !1 && Q(s, _), y != null && y.length) {
5969
- var V = new Sn(n.interaction);
5969
+ var V = new Tn(n.interaction);
5970
5970
  V.copyFrom(n.interaction.modification), V.prepareStates(y), e.subModification = V, V.startAll(a({}, n));
5971
5971
  }
5972
5972
  }, set: function(n) {
5973
- var e = n.state, o = n.rect, s = n.coords, l = e.linkedEdges, f = Q({}, s), p = e.equalDelta ? Zi : Qi;
5973
+ var e = n.state, o = n.rect, s = n.coords, l = e.linkedEdges, f = Q({}, s), p = e.equalDelta ? Qi : es;
5974
5974
  if (Q(n.edges, l), p(e, e.xIsPrimaryAxis, s, o), !e.subModification) return null;
5975
5975
  var h = Q({}, o);
5976
5976
  ze(l, h, { x: s.x - f.x, y: s.y - f.y });
5977
5977
  var v = e.subModification.setAll(a(a({}, n), {}, { rect: h, edges: l, pageCoords: s, prevCoords: s, prevRect: h })), w = v.delta;
5978
5978
  return v.changed && (p(e, Math.abs(w.x) > Math.abs(w.y), v.coords, v.rect), Q(s, v.coords)), v.eventProps;
5979
5979
  }, defaults: { ratio: "preserve", equalDelta: !1, modifiers: [], enabled: !1 } };
5980
- function Zi(n, e, o) {
5980
+ function Qi(n, e, o) {
5981
5981
  var s = n.startCoords, l = n.edgeSign;
5982
5982
  e ? o.y = s.y + (o.x - s.x) * l.y : o.x = s.x + (o.y - s.y) * l.x;
5983
5983
  }
5984
- function Qi(n, e, o, s) {
5984
+ function es(n, e, o, s) {
5985
5985
  var l = n.startRect, f = n.startCoords, p = n.ratio, h = n.edgeSign;
5986
5986
  if (e) {
5987
5987
  var v = s.width / p;
@@ -5991,7 +5991,7 @@ function _c() {
5991
5991
  o.x = f.x + (w - l.width) * h.x;
5992
5992
  }
5993
5993
  }
5994
- var es = Ze(Ji, "aspectRatio"), ro = function() {
5994
+ var ts = Ze(Zi, "aspectRatio"), ro = function() {
5995
5995
  };
5996
5996
  ro._defaults = {};
5997
5997
  var Ht = ro;
@@ -6017,7 +6017,7 @@ function _c() {
6017
6017
  })(p);
6018
6018
  e.x = Math.max(Math.min(h.right - f.right, e.x), h.left + f.left), e.y = Math.max(Math.min(h.bottom - f.bottom, e.y), h.top + f.top);
6019
6019
  }
6020
- }, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, ts = Ze(Bt, "restrict"), oo = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, io = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
6020
+ }, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, ns = Ze(Bt, "restrict"), oo = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, io = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
6021
6021
  function so(n, e) {
6022
6022
  for (var o = 0, s = ["top", "left", "bottom", "right"]; o < s.length; o++) {
6023
6023
  var l = s[o];
@@ -6034,18 +6034,18 @@ function _c() {
6034
6034
  var h = Q({}, e), v = it(p.inner, s, h) || {}, w = it(p.outer, s, h) || {};
6035
6035
  so(v, oo), so(w, io), o.top ? e.y = Math.min(Math.max(w.top + f.top, h.y), v.top + f.top) : o.bottom && (e.y = Math.max(Math.min(w.bottom + f.bottom, h.y), v.bottom + f.bottom)), o.left ? e.x = Math.min(Math.max(w.left + f.left, h.x), v.left + f.left) : o.right && (e.x = Math.max(Math.min(w.right + f.right, h.x), v.right + f.right));
6036
6036
  }
6037
- }, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, ns = Ze(bt, "restrictEdges"), rs = Q({ get elementRect() {
6037
+ }, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, rs = Ze(bt, "restrictEdges"), os = Q({ get elementRect() {
6038
6038
  return { top: 0, left: 0, bottom: 1, right: 1 };
6039
6039
  }, set elementRect(n) {
6040
- } }, Bt.defaults), os = Ze({ start: Bt.start, set: Bt.set, defaults: rs }, "restrictRect"), is = { width: -1 / 0, height: -1 / 0 }, ss = { width: 1 / 0, height: 1 / 0 }, as = Ze({ start: function(n) {
6040
+ } }, Bt.defaults), is = Ze({ start: Bt.start, set: Bt.set, defaults: os }, "restrictRect"), ss = { width: -1 / 0, height: -1 / 0 }, as = { width: 1 / 0, height: 1 / 0 }, cs = Ze({ start: function(n) {
6041
6041
  return bt.start(n);
6042
6042
  }, set: function(n) {
6043
6043
  var e = n.interaction, o = n.state, s = n.rect, l = n.edges, f = o.options;
6044
6044
  if (l) {
6045
- var p = Be(it(f.min, e, n.coords)) || is, h = Be(it(f.max, e, n.coords)) || ss;
6045
+ var p = Be(it(f.min, e, n.coords)) || ss, h = Be(it(f.max, e, n.coords)) || as;
6046
6046
  o.options = { endOnly: f.endOnly, inner: Q({}, bt.noInner), outer: Q({}, bt.noOuter) }, l.top ? (o.options.inner.top = s.bottom - p.height, o.options.outer.top = s.bottom - h.height) : l.bottom && (o.options.inner.bottom = s.top + p.height, o.options.outer.bottom = s.top + h.height), l.left ? (o.options.inner.left = s.right - p.width, o.options.outer.left = s.right - h.width) : l.right && (o.options.inner.right = s.left + p.width, o.options.outer.right = s.left + h.width), bt.set(n), o.options = f;
6047
6047
  }
6048
- }, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), kn = { start: function(n) {
6048
+ }, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), Cn = { start: function(n) {
6049
6049
  var e, o = n.interaction, s = n.interactable, l = n.element, f = n.rect, p = n.state, h = n.startOffset, v = p.options, w = v.offsetWithOrigin ? (function(j) {
6050
6050
  var V = j.interaction.element, L = Ie(Ce(j.state.options.origin, null, null, [V])), H = L || Ye(j.interactable, V, j.interaction.prepared.name);
6051
6051
  return H;
@@ -6071,10 +6071,10 @@ function _c() {
6071
6071
  de === 1 / 0 && ce.inRange && ce.range !== 1 / 0 && (Ve = !1), ce.target && !(Ve ? ce.inRange && de !== 1 / 0 ? Pe / de < ce.distance / ce.range : de === 1 / 0 && ce.range !== 1 / 0 || Pe < ce.distance : !ce.inRange && Pe < ce.distance) || (ce.target = be, ce.distance = Pe, ce.range = de, ce.inRange = Ve, ce.delta.x = ye, ce.delta.y = Ae);
6072
6072
  }
6073
6073
  return ce.inRange && (o.x = ce.target.x, o.y = ce.target.y), s.closest = ce, ce;
6074
- }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, cs = Ze(kn, "snap"), Yt = { start: function(n) {
6074
+ }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, ls = Ze(Cn, "snap"), Yt = { start: function(n) {
6075
6075
  var e = n.state, o = n.edges, s = e.options;
6076
6076
  if (!o) return null;
6077
- n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: s.offset || "self", origin: { x: 0, y: 0 }, range: s.range } }, e.targetFields = e.targetFields || [["width", "height"], ["x", "y"]], kn.start(n), e.offsets = n.state.offsets, n.state = e;
6077
+ n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: s.offset || "self", origin: { x: 0, y: 0 }, range: s.range } }, e.targetFields = e.targetFields || [["width", "height"], ["x", "y"]], Cn.start(n), e.offsets = n.state.offsets, n.state = e;
6078
6078
  }, set: function(n) {
6079
6079
  var e = n.interaction, o = n.state, s = n.coords, l = o.options, f = o.offsets, p = { x: s.x - f[0].x, y: s.y - f[0].y };
6080
6080
  o.options = Q({}, l), o.options.targets = [];
@@ -6091,18 +6091,18 @@ function _c() {
6091
6091
  o.options.targets.push(y);
6092
6092
  }
6093
6093
  }
6094
- var ie = kn.set(n);
6094
+ var ie = Cn.set(n);
6095
6095
  return o.options = l, ie;
6096
- }, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, ls = Ze(Yt, "snapSize"), Cn = { aspectRatio: es, restrictEdges: ns, restrict: ts, restrictRect: os, restrictSize: as, snapEdges: Ze({ start: function(n) {
6096
+ }, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, us = Ze(Yt, "snapSize"), $n = { aspectRatio: ts, restrictEdges: rs, restrict: ns, restrictRect: is, restrictSize: cs, snapEdges: Ze({ start: function(n) {
6097
6097
  var e = n.edges;
6098
6098
  return e ? (n.state.targetFields = n.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]], Yt.start(n)) : null;
6099
- }, set: Yt.set, defaults: Q(ft(Yt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: cs, snapSize: ls, spring: Ht, avoid: Ht, transform: Ht, rubberband: Ht }, us = { id: "modifiers", install: function(n) {
6099
+ }, set: Yt.set, defaults: Q(ft(Yt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: ls, snapSize: us, spring: Ht, avoid: Ht, transform: Ht, rubberband: Ht }, fs = { id: "modifiers", install: function(n) {
6100
6100
  var e = n.interactStatic;
6101
- for (var o in n.usePlugin(Hr), n.usePlugin(Wi), e.modifiers = Cn, Cn) {
6102
- var s = Cn[o], l = s._defaults, f = s._methods;
6101
+ for (var o in n.usePlugin(Hr), n.usePlugin(Ji), e.modifiers = $n, $n) {
6102
+ var s = $n[o], l = s._defaults, f = s._methods;
6103
6103
  l._methods = f, n.defaults.perAction[o] = l;
6104
6104
  }
6105
- } }, fs = us, ao = (function(n) {
6105
+ } }, ds = fs, ao = (function(n) {
6106
6106
  x(o, n);
6107
6107
  var e = $(o);
6108
6108
  function o(s, l, f, p, h, v) {
@@ -6134,7 +6134,7 @@ function _c() {
6134
6134
  !e && o.hold || (o.hold = { duration: 1 / 0, timeout: null });
6135
6135
  }, "interactions:move": function(n, e) {
6136
6136
  var o = n.interaction, s = n.pointer, l = n.event, f = n.eventTarget;
6137
- n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && $n(n), et({ interaction: o, pointer: s, event: l, eventTarget: f, type: "move" }, e));
6137
+ n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && jn(n), et({ interaction: o, pointer: s, event: l, eventTarget: f, type: "move" }, e));
6138
6138
  }, "interactions:down": function(n, e) {
6139
6139
  (function(o, s) {
6140
6140
  for (var l = o.interaction, f = o.pointer, p = o.event, h = o.eventTarget, v = o.pointerIndex, w = l.pointers[v].hold, y = ue(h), _ = { interaction: l, pointer: f, event: p, eventTarget: h, type: "hold", targets: [], path: y, node: null }, j = 0; j < y.length; j++) {
@@ -6152,12 +6152,12 @@ function _c() {
6152
6152
  }
6153
6153
  })(n, e), et(n, e);
6154
6154
  }, "interactions:up": function(n, e) {
6155
- $n(n), et(n, e), (function(o, s) {
6155
+ jn(n), et(n, e), (function(o, s) {
6156
6156
  var l = o.interaction, f = o.pointer, p = o.event, h = o.eventTarget;
6157
6157
  l.pointerWasMoved || et({ interaction: l, eventTarget: h, pointer: f, event: p, type: "tap" }, s);
6158
6158
  })(n, e);
6159
6159
  }, "interactions:cancel": function(n, e) {
6160
- $n(n), et(n, e);
6160
+ jn(n), et(n, e);
6161
6161
  } }, PointerEvent: ao, fire: et, collectEventTargets: co, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 } }, types: { down: !0, move: !0, up: !0, cancel: !0, tap: !0, doubletap: !0, hold: !0 } };
6162
6162
  function et(n, e) {
6163
6163
  var o = n.interaction, s = n.pointer, l = n.event, f = n.eventTarget, p = n.type, h = n.targets, v = h === void 0 ? co(n, e) : h, w = new ao(p, s, l, f, o, e.now());
@@ -6186,21 +6186,21 @@ function _c() {
6186
6186
  return V.eventable.options.holdDuration === ((L = o.pointers[h]) == null || (H = L.hold) == null ? void 0 : H.duration);
6187
6187
  }))), y.targets;
6188
6188
  }
6189
- function $n(n) {
6189
+ function jn(n) {
6190
6190
  var e = n.interaction, o = n.pointerIndex, s = e.pointers[o].hold;
6191
6191
  s && s.timeout && (clearTimeout(s.timeout), s.timeout = null);
6192
6192
  }
6193
- var ds = Object.freeze({ __proto__: null, default: wt });
6194
- function ps(n) {
6193
+ var ps = Object.freeze({ __proto__: null, default: wt });
6194
+ function hs(n) {
6195
6195
  var e = n.interaction;
6196
6196
  e.holdIntervalHandle && (clearInterval(e.holdIntervalHandle), e.holdIntervalHandle = null);
6197
6197
  }
6198
- var hs = { id: "pointer-events/holdRepeat", install: function(n) {
6198
+ var gs = { id: "pointer-events/holdRepeat", install: function(n) {
6199
6199
  n.usePlugin(wt);
6200
6200
  var e = n.pointerEvents;
6201
6201
  e.defaults.holdRepeatInterval = 0, e.types.holdrepeat = n.actions.phaselessTypes.holdrepeat = !0;
6202
6202
  }, listeners: ["move", "up", "cancel", "endall"].reduce((function(n, e) {
6203
- return n["pointerEvents:".concat(e)] = ps, n;
6203
+ return n["pointerEvents:".concat(e)] = hs, n;
6204
6204
  }), { "pointerEvents:new": function(n) {
6205
6205
  var e = n.pointerEvent;
6206
6206
  e.type === "hold" && (e.count = (e.count || 0) + 1);
@@ -6212,7 +6212,7 @@ function _c() {
6212
6212
  e.pointerEvents.fire({ interaction: o, eventTarget: l, type: "hold", pointer: s, event: s }, e);
6213
6213
  }), p));
6214
6214
  }
6215
- } }) }, gs = hs, ms = { id: "pointer-events/interactableTargets", install: function(n) {
6215
+ } }) }, ms = gs, vs = { id: "pointer-events/interactableTargets", install: function(n) {
6216
6216
  var e = n.Interactable;
6217
6217
  e.prototype.pointerEvents = function(s) {
6218
6218
  return Q(this.events.options, s), this;
@@ -6236,9 +6236,9 @@ function _c() {
6236
6236
  }, "interactable:set": function(n, e) {
6237
6237
  var o = n.interactable, s = n.options;
6238
6238
  Q(o.events.options, e.pointerEvents.defaults), Q(o.events.options, s.pointerEvents || {});
6239
- } } }, vs = ms, ys = { id: "pointer-events", install: function(n) {
6240
- n.usePlugin(ds), n.usePlugin(gs), n.usePlugin(vs);
6241
- } }, xs = ys, bs = { id: "reflow", install: function(n) {
6239
+ } } }, ys = vs, xs = { id: "pointer-events", install: function(n) {
6240
+ n.usePlugin(ps), n.usePlugin(ms), n.usePlugin(ys);
6241
+ } }, bs = xs, ws = { id: "reflow", install: function(n) {
6242
6242
  var e = n.Interactable;
6243
6243
  n.actions.phases.reflow = !0, e.prototype.reflow = function(o) {
6244
6244
  return (function(s, l, f) {
@@ -6282,7 +6282,7 @@ function _c() {
6282
6282
  })({ page: { x: H.x, y: H.y }, client: { x: H.x, y: H.y }, timeStamp: f.now() });
6283
6283
  V = (function(re, ce, ve, be, de) {
6284
6284
  var ye = re.interactions.new({ pointerType: "reflow" }), Ae = { interaction: ye, event: de, pointer: de, eventTarget: ve, phase: "reflow" };
6285
- ye.interactable = ce, ye.element = ve, ye.prevEvent = de, ye.updatePointer(de, de, ve, !0), br(ye.coords.delta), bn(ye.prepared, be), ye._doPhase(Ae);
6285
+ ye.interactable = ce, ye.element = ve, ye.prevEvent = de, ye.updatePointer(de, de, ve, !0), br(ye.coords.delta), wn(ye.prepared, be), ye._doPhase(Ae);
6286
6286
  var Pe = re.window, Ve = Pe.Promise, De = Ve ? new Ve((function(qe) {
6287
6287
  ye._reflowResolve = qe;
6288
6288
  })) : void 0;
@@ -6301,8 +6301,8 @@ function _c() {
6301
6301
  o.pointerType === "reflow" && (o._reflowResolve && o._reflowResolve(), (function(s, l) {
6302
6302
  s.splice(s.indexOf(l), 1);
6303
6303
  })(e.interactions.list, o));
6304
- } } }, ws = bs;
6305
- if (je.use(Dr), je.use(Gr), je.use(xs), je.use(Li), je.use(fs), je.use(_i), je.use(gi), je.use(vi), je.use(ws), je.default = je, c(t) === "object" && t) try {
6304
+ } } }, Es = ws;
6305
+ if (je.use(Dr), je.use(Gr), je.use(bs), je.use(Fi), je.use(ds), je.use(Oi), je.use(mi), je.use(yi), je.use(Es), je.default = je, c(t) === "object" && t) try {
6306
6306
  t.exports = je;
6307
6307
  } catch {
6308
6308
  }
@@ -6310,12 +6310,12 @@ function _c() {
6310
6310
  }));
6311
6311
  })(Kt)), Kt.exports;
6312
6312
  }
6313
- var Oc = /* @__PURE__ */ _c();
6314
- const Pc = /* @__PURE__ */ Co(Oc);
6313
+ var Ic = /* @__PURE__ */ Pc();
6314
+ const kc = /* @__PURE__ */ $o(Ic);
6315
6315
  function We(t) {
6316
6316
  return t == null ? "" : typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? String(t) : typeof t == "function" ? t.toString() : t instanceof Date ? t.toISOString() : t instanceof RegExp ? t.toString() : t instanceof Map ? JSON.stringify(Array.from(t.entries())) : t instanceof Set ? JSON.stringify(Array.from(t.values())) : t instanceof WeakMap || t instanceof WeakSet ? "" : t instanceof ArrayBuffer ? t.toString() : Array.isArray(t) ? JSON.stringify(t.map(We)) : typeof t == "object" ? JSON.stringify(Object.entries(t).sort(([r], [i]) => r.localeCompare(i))) : "";
6317
6317
  }
6318
- function Ic(t, {
6318
+ function Cc(t, {
6319
6319
  isEnabled: r = !0,
6320
6320
  onDragStart: i,
6321
6321
  onDragMove: a,
@@ -6327,7 +6327,7 @@ function Ic(t, {
6327
6327
  if (!r) return;
6328
6328
  const x = t.current;
6329
6329
  if (!x) return;
6330
- const O = Pc(x).draggable({
6330
+ const O = kc(x).draggable({
6331
6331
  inertia: !0,
6332
6332
  ...u,
6333
6333
  onstart: ({ client: T }) => {
@@ -6357,7 +6357,7 @@ function Ct(t, {
6357
6357
  ...d
6358
6358
  }) {
6359
6359
  const g = we(r), [m, x] = _e(!1), [O, T] = _e(!1), [k, $] = _e(r), M = Se(a), S = Se(c), C = Se(u), ee = Se(i);
6360
- return Ic(t, {
6360
+ return Cc(t, {
6361
6361
  onDragStart: (E) => {
6362
6362
  x(!0), T(!1), M.current?.(E);
6363
6363
  },
@@ -6381,7 +6381,7 @@ function Ct(t, {
6381
6381
  function _o(t, r) {
6382
6382
  return Ke(t.current, r) ? !1 : (t.current = r, !0);
6383
6383
  }
6384
- const ni = /* @__PURE__ */ Oe(({
6384
+ const ri = /* @__PURE__ */ Oe(({
6385
6385
  angle: t = 0,
6386
6386
  speed: r = 1,
6387
6387
  src: i,
@@ -6396,7 +6396,7 @@ const ni = /* @__PURE__ */ Oe(({
6396
6396
  onImageSizeChange: T,
6397
6397
  ...k
6398
6398
  }, $) => {
6399
- const M = ge((A, B, q) => A - B * r, [r]), S = we(null), C = nt(S), ee = Vo({ src: i }, {
6399
+ const M = ge((A, B, q) => A - B * r, [r]), S = we(null), C = nt(S), ee = Do({ src: i }, {
6400
6400
  onLoadStart: m,
6401
6401
  onLoadComplete: x,
6402
6402
  onLoadError: O
@@ -6408,18 +6408,18 @@ const ni = /* @__PURE__ */ Oe(({
6408
6408
  });
6409
6409
  Ee(() => {
6410
6410
  if (J || !ee) return;
6411
- const A = Cc(t, ee, xe.size(C), a);
6411
+ const A = jc(t, ee, xe.size(C), a);
6412
6412
  A !== E && I(A), t !== W && X(t);
6413
6413
  }, [t, ee, C.width, C.height, a]), Ee(() => {
6414
6414
  if (!J || !ee) return;
6415
- const A = $c(E, ee, xe.size(C), a);
6415
+ const A = Ac(E, ee, xe.size(C), a);
6416
6416
  W !== A && X(A);
6417
6417
  }, [E, ee, C.width, C.height, a]), Ee(() => {
6418
6418
  c?.(W, J), u?.(W / 360, J);
6419
6419
  }, [W]), Ee(() => {
6420
6420
  T?.(ee);
6421
6421
  }, [ee?.width, ee?.height]);
6422
- const N = kc({ src: i, displacement: E });
6422
+ const N = $c({ src: i, displacement: E });
6423
6423
  return /* @__PURE__ */ b.jsx(
6424
6424
  "div",
6425
6425
  {
@@ -6431,7 +6431,7 @@ const ni = /* @__PURE__ */ Oe(({
6431
6431
  }
6432
6432
  );
6433
6433
  });
6434
- function kc({ src: t = "", displacement: r = NaN }) {
6434
+ function $c({ src: t = "", displacement: r = NaN }) {
6435
6435
  return {
6436
6436
  body: {
6437
6437
  backgroundImage: `url(${t})`,
@@ -6444,24 +6444,24 @@ function kc({ src: t = "", displacement: r = NaN }) {
6444
6444
  }
6445
6445
  };
6446
6446
  }
6447
- function ri(t, r) {
6447
+ function oi(t, r) {
6448
6448
  const { width: i, height: a } = t, { height: c } = r;
6449
6449
  if (a <= 0) return $e.zero;
6450
6450
  const d = c / a * i;
6451
6451
  return $e.make(d, c);
6452
6452
  }
6453
- function Cc(t, r, i, a) {
6454
- const { width: c } = ri(r, i), { width: u } = i, d = u * a;
6453
+ function jc(t, r, i, a) {
6454
+ const { width: c } = oi(r, i), { width: u } = i, d = u * a;
6455
6455
  return t / 360 * c - d;
6456
6456
  }
6457
- function $c(t, r, i, a) {
6458
- const { width: c } = ri(r, i), { width: u } = i, d = u * a;
6457
+ function Ac(t, r, i, a) {
6458
+ const { width: c } = oi(r, i), { width: u } = i, d = u * a;
6459
6459
  let g = (t + d) % c / c * 360;
6460
6460
  for (; g < 0; ) g += 360;
6461
6461
  return g;
6462
6462
  }
6463
- process.env.NODE_ENV === "development" && (ni.displayName = "Panorama");
6464
- const jc = /* @__PURE__ */ Oe(({
6463
+ process.env.NODE_ENV === "development" && (ri.displayName = "Panorama");
6464
+ const Mc = /* @__PURE__ */ Oe(({
6465
6465
  className: t,
6466
6466
  style: r,
6467
6467
  angle: i = 0,
@@ -6495,9 +6495,9 @@ const jc = /* @__PURE__ */ Oe(({
6495
6495
  B(!1), T?.();
6496
6496
  }, [T]), ae = Fe(c, {
6497
6497
  track: Wt,
6498
- reticle: Qn,
6499
- indicator: Zn
6500
- }), F = Ac({ autoDimension: a, panoramaRect: E, aspectRatio: oe, reticleWidth: Y });
6498
+ reticle: er,
6499
+ indicator: Qn
6500
+ }), F = Rc({ autoDimension: a, panoramaRect: E, aspectRatio: oe, reticleWidth: Y });
6501
6501
  return /* @__PURE__ */ b.jsxs(
6502
6502
  "div",
6503
6503
  {
@@ -6507,7 +6507,7 @@ const jc = /* @__PURE__ */ Oe(({
6507
6507
  style: le(r, F.root),
6508
6508
  children: [
6509
6509
  /* @__PURE__ */ b.jsx(
6510
- ni,
6510
+ ri,
6511
6511
  {
6512
6512
  ref: J,
6513
6513
  angle: i,
@@ -6527,15 +6527,15 @@ const jc = /* @__PURE__ */ Oe(({
6527
6527
  ),
6528
6528
  /* @__PURE__ */ b.jsx("div", { style: F.body, children: /* @__PURE__ */ b.jsxs("div", { style: F.controls, children: [
6529
6529
  /* @__PURE__ */ b.jsx(me, { className: se({ dragging: A }), element: ae.track ?? /* @__PURE__ */ b.jsx(Wt, {}), style: F.track }),
6530
- /* @__PURE__ */ b.jsx(me, { className: se({ dragging: A }), element: ae.reticle ?? /* @__PURE__ */ b.jsx(Qn, {}), style: F.reticle }),
6530
+ /* @__PURE__ */ b.jsx(me, { className: se({ dragging: A }), element: ae.reticle ?? /* @__PURE__ */ b.jsx(er, {}), style: F.reticle }),
6531
6531
  /* @__PURE__ */ b.jsx(me, { className: se({ dragging: A }), element: ae.track ?? /* @__PURE__ */ b.jsx(Wt, {}), style: F.track })
6532
6532
  ] }) }),
6533
- /* @__PURE__ */ b.jsx(me, { className: se({ dragging: A }), element: ae.indicator ?? /* @__PURE__ */ b.jsx(Zn, {}), style: F.indicator })
6533
+ /* @__PURE__ */ b.jsx(me, { className: se({ dragging: A }), element: ae.indicator ?? /* @__PURE__ */ b.jsx(Qn, {}), style: F.indicator })
6534
6534
  ]
6535
6535
  }
6536
6536
  );
6537
- }), Zn = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Qn = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Wt = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t });
6538
- function Ac({ autoDimension: t = "width", panoramaRect: r = xe.zero, aspectRatio: i = 0, reticleWidth: a = 0 }) {
6537
+ }), Qn = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), er = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Wt = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t });
6538
+ function Rc({ autoDimension: t = "width", panoramaRect: r = xe.zero, aspectRatio: i = 0, reticleWidth: a = 0 }) {
6539
6539
  return {
6540
6540
  root: {
6541
6541
  ...t === "width" ? {
@@ -6579,8 +6579,8 @@ function Ac({ autoDimension: t = "width", panoramaRect: r = xe.zero, aspectRatio
6579
6579
  }
6580
6580
  };
6581
6581
  }
6582
- process.env.NODE_ENV === "development" && (jc.displayName = "PanoramaSlider", Zn.displayName = "PanoramaSliderIndicator", Qn.displayName = "PanoramaSliderReticle", Wt.displayName = "PanoramaSliderTrack");
6583
- const Mc = /* @__PURE__ */ Oe(({
6582
+ process.env.NODE_ENV === "development" && (Mc.displayName = "PanoramaSlider", Qn.displayName = "PanoramaSliderIndicator", er.displayName = "PanoramaSliderReticle", Wt.displayName = "PanoramaSliderTrack");
6583
+ const zc = /* @__PURE__ */ Oe(({
6584
6584
  children: t,
6585
6585
  className: r,
6586
6586
  decimalPlaces: i = 2,
@@ -6596,11 +6596,11 @@ const Mc = /* @__PURE__ */ Oe(({
6596
6596
  onChange: k,
6597
6597
  ...$
6598
6598
  }, M) => {
6599
- const S = we(null), C = nt(S), ee = we(null), W = we(null), [X, J] = _e(O ?? [m, g]), E = Hc(m, g, T), [I, N] = X.map((U) => at(U, m, g, x, C, d, c, a)), A = N - I, B = Fe(t, {
6600
- gutter: er,
6601
- highlight: tr,
6599
+ const S = we(null), C = nt(S), ee = we(null), W = we(null), [X, J] = _e(O ?? [m, g]), E = Yc(m, g, T), [I, N] = X.map((U) => at(U, m, g, x, C, d, c, a)), A = N - I, B = Fe(t, {
6600
+ gutter: tr,
6601
+ highlight: nr,
6602
6602
  knob: Zt,
6603
- knobContainer: zn,
6603
+ knobContainer: Ln,
6604
6604
  label: Jt
6605
6605
  }), q = ge((U, K, G) => {
6606
6606
  const fe = x === "horizontal" ? K : G, he = at(m, m, g, x, C, d, c, a), ue = at(X[1], m, g, x, C, d, c, a), Ne = at(U, m, g, x, C, d, c, a) + fe;
@@ -6614,7 +6614,7 @@ const Mc = /* @__PURE__ */ Oe(({
6614
6614
  }), { isDragging: te, isReleasing: ne, value: ae, setValue: F } = Ct(W, {
6615
6615
  initialValue: O?.[1] ?? g,
6616
6616
  transform: oe
6617
- }), R = Rc({ isDraggingEndKnob: te, isDraggingStartKnob: Z, isReleasingEndKnob: ne, isReleasingStartKnob: Y }), P = zc({ orientation: x, highlightLength: A, start: I, knobPadding: u, knobWidth: d, knobHeight: c });
6617
+ }), R = Lc({ isDraggingEndKnob: te, isDraggingStartKnob: Z, isReleasingEndKnob: ne, isReleasingStartKnob: Y }), P = Fc({ orientation: x, highlightLength: A, start: I, knobPadding: u, knobWidth: d, knobHeight: c });
6618
6618
  return Ee(() => {
6619
6619
  J([D, ae]);
6620
6620
  }, [D, ae]), Ee(() => {
@@ -6635,15 +6635,15 @@ const Mc = /* @__PURE__ */ Oe(({
6635
6635
  className: se(r, x),
6636
6636
  role: "slider",
6637
6637
  children: /* @__PURE__ */ b.jsxs("div", { ref: S, style: P.body, children: [
6638
- /* @__PURE__ */ b.jsx(me, { element: B.gutter ?? /* @__PURE__ */ b.jsx(er, {}), style: le(P.gutter) }),
6639
- /* @__PURE__ */ b.jsx(me, { element: B.highlight ?? /* @__PURE__ */ b.jsx(tr, {}), style: le(P.highlight) }),
6638
+ /* @__PURE__ */ b.jsx(me, { element: B.gutter ?? /* @__PURE__ */ b.jsx(tr, {}), style: le(P.gutter) }),
6639
+ /* @__PURE__ */ b.jsx(me, { element: B.highlight ?? /* @__PURE__ */ b.jsx(nr, {}), style: le(P.highlight) }),
6640
6640
  /* @__PURE__ */ b.jsx(
6641
6641
  me,
6642
6642
  {
6643
6643
  ref: ee,
6644
6644
  className: R.startKnobContainer,
6645
6645
  disabled: Ke([D, ae], [m, m]),
6646
- element: B.knobContainer ?? /* @__PURE__ */ b.jsx(zn, {}),
6646
+ element: B.knobContainer ?? /* @__PURE__ */ b.jsx(Ln, {}),
6647
6647
  style: le(P.knobContainer, {
6648
6648
  pointerEvents: Ke([D, ae], [m, m]) ? "none" : "auto"
6649
6649
  }, x === "horizontal" ? {
@@ -6665,7 +6665,7 @@ const Mc = /* @__PURE__ */ Oe(({
6665
6665
  ref: W,
6666
6666
  className: R.endKnobContainer,
6667
6667
  disabled: Ke([D, ae], [g, g]),
6668
- element: B.knobContainer ?? /* @__PURE__ */ b.jsx(zn, {}),
6668
+ element: B.knobContainer ?? /* @__PURE__ */ b.jsx(Ln, {}),
6669
6669
  style: le(P.knobContainer, {
6670
6670
  pointerEvents: Ke([D, ae], [g, g]) ? "none" : "auto"
6671
6671
  }, x === "horizontal" ? {
@@ -6684,8 +6684,8 @@ const Mc = /* @__PURE__ */ Oe(({
6684
6684
  ] })
6685
6685
  }
6686
6686
  );
6687
- }), er = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Jt = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), tr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Zt = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), zn = ({ ...t }) => /* @__PURE__ */ b.jsx("button", { ...t });
6688
- function Rc({ isDraggingStartKnob: t = !1, isReleasingStartKnob: r = !1, isDraggingEndKnob: i = !1, isReleasingEndKnob: a = !1 }) {
6687
+ }), tr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Jt = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), nr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Zt = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), Ln = ({ ...t }) => /* @__PURE__ */ b.jsx("button", { ...t });
6688
+ function Lc({ isDraggingStartKnob: t = !1, isReleasingStartKnob: r = !1, isDraggingEndKnob: i = !1, isReleasingEndKnob: a = !1 }) {
6689
6689
  return {
6690
6690
  startKnobContainer: se({
6691
6691
  dragging: t,
@@ -6713,7 +6713,7 @@ function Rc({ isDraggingStartKnob: t = !1, isReleasingStartKnob: r = !1, isDragg
6713
6713
  })
6714
6714
  };
6715
6715
  }
6716
- function zc({ orientation: t = "horizontal", knobWidth: r = 0, knobHeight: i = 0, highlightLength: a = 0, start: c = 0, knobPadding: u = 0 }) {
6716
+ function Fc({ orientation: t = "horizontal", knobWidth: r = 0, knobHeight: i = 0, highlightLength: a = 0, start: c = 0, knobPadding: u = 0 }) {
6717
6717
  return {
6718
6718
  body: {
6719
6719
  height: "100%",
@@ -6770,10 +6770,10 @@ function zc({ orientation: t = "horizontal", knobWidth: r = 0, knobHeight: i = 0
6770
6770
  }
6771
6771
  };
6772
6772
  }
6773
- function Lc(t, r, i) {
6773
+ function Vc(t, r, i) {
6774
6774
  return (t - r) / (i - r);
6775
6775
  }
6776
- function Fc(t, r, i, a, c, u) {
6776
+ function Dc(t, r, i, a, c, u) {
6777
6777
  switch (r) {
6778
6778
  case "horizontal": {
6779
6779
  const d = u ? i.width - a : i.width;
@@ -6787,14 +6787,14 @@ function Fc(t, r, i, a, c, u) {
6787
6787
  return console.error(`[etudes::RangeSlider] Invalid orientation: ${r}`), NaN;
6788
6788
  }
6789
6789
  }
6790
- function Vc(t, r, i) {
6790
+ function Hc(t, r, i) {
6791
6791
  return t * (i - r) + r;
6792
6792
  }
6793
6793
  function Oo(t, r, i, a, c, u, d, g) {
6794
- const m = Fc(t, a, c, u, d, g);
6795
- return Vc(m, r, i);
6794
+ const m = Dc(t, a, c, u, d, g);
6795
+ return Hc(m, r, i);
6796
6796
  }
6797
- function Dc(t, r, i, a, c, u) {
6797
+ function Bc(t, r, i, a, c, u) {
6798
6798
  switch (r) {
6799
6799
  case "horizontal": {
6800
6800
  const d = u ? i.width - a : i.width;
@@ -6809,8 +6809,8 @@ function Dc(t, r, i, a, c, u) {
6809
6809
  }
6810
6810
  }
6811
6811
  function at(t, r, i, a, c, u, d, g) {
6812
- const m = Lc(t, r, i);
6813
- return Dc(m, a, c, u, d, g);
6812
+ const m = Vc(t, r, i);
6813
+ return Bc(m, a, c, u, d, g);
6814
6814
  }
6815
6815
  function Po(t, r) {
6816
6816
  const i = r.length;
@@ -6821,7 +6821,7 @@ function Po(t, r) {
6821
6821
  }
6822
6822
  return r[a];
6823
6823
  }
6824
- function Hc(t, r, i) {
6824
+ function Yc(t, r, i) {
6825
6825
  if (!(i < 0))
6826
6826
  return [
6827
6827
  t,
@@ -6829,8 +6829,8 @@ function Hc(t, r, i) {
6829
6829
  r
6830
6830
  ];
6831
6831
  }
6832
- process.env.NODE_ENV === "development" && (Mc.displayName = "RangeSlider", er.displayName = "RangeSliderGutter", Jt.displayName = "RangeSliderLabel", tr.displayName = "RangeSliderHighlight", Zt.displayName = "RangeSliderKnob");
6833
- const Bc = /* @__PURE__ */ Oe(({
6832
+ process.env.NODE_ENV === "development" && (zc.displayName = "RangeSlider", tr.displayName = "RangeSliderGutter", Jt.displayName = "RangeSliderLabel", nr.displayName = "RangeSliderHighlight", Zt.displayName = "RangeSliderKnob");
6833
+ const Xc = /* @__PURE__ */ Oe(({
6834
6834
  children: t,
6835
6835
  id: r,
6836
6836
  isRequired: i = !1,
@@ -6842,19 +6842,19 @@ const Bc = /* @__PURE__ */ Oe(({
6842
6842
  ...m
6843
6843
  }, x) => {
6844
6844
  const O = Fe(t, {
6845
- expandIcon: oi,
6845
+ expandIcon: ii,
6846
6846
  option: Qt,
6847
- toggle: nr
6847
+ toggle: rr
6848
6848
  });
6849
- return /* @__PURE__ */ b.jsxs("div", { ...m, ref: x, style: Ln.root, children: [
6849
+ return /* @__PURE__ */ b.jsxs("div", { ...m, ref: x, style: Fn.root, children: [
6850
6850
  /* @__PURE__ */ b.jsxs(
6851
6851
  me,
6852
6852
  {
6853
6853
  "aria-required": i ? "true" : void 0,
6854
- element: O.toggle ?? /* @__PURE__ */ b.jsx(nr, {}),
6854
+ element: O.toggle ?? /* @__PURE__ */ b.jsx(rr, {}),
6855
6855
  name: a,
6856
6856
  required: i,
6857
- style: Ln.select,
6857
+ style: Fn.select,
6858
6858
  value: d,
6859
6859
  onChange: (T) => g?.(T.target.value),
6860
6860
  children: [
@@ -6863,9 +6863,9 @@ const Bc = /* @__PURE__ */ Oe(({
6863
6863
  ]
6864
6864
  }
6865
6865
  ),
6866
- O.expandIcon && /* @__PURE__ */ b.jsx(me, { element: O.expandIcon, style: Ln.expandIcon })
6866
+ O.expandIcon && /* @__PURE__ */ b.jsx(me, { element: O.expandIcon, style: Fn.expandIcon })
6867
6867
  ] });
6868
- }), oi = ({ children: t, style: r, ...i }) => /* @__PURE__ */ b.jsx("figure", { ...i, "aria-hidden": !0, style: le(r, { pointerEvents: "none" }), children: t }), nr = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("select", { ...r, children: t }), Qt = ({ ...t }) => /* @__PURE__ */ b.jsx("option", { ...t }), Ln = {
6868
+ }), ii = ({ children: t, style: r, ...i }) => /* @__PURE__ */ b.jsx("figure", { ...i, "aria-hidden": !0, style: le(r, { pointerEvents: "none" }), children: t }), rr = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("select", { ...r, children: t }), Qt = ({ ...t }) => /* @__PURE__ */ b.jsx("option", { ...t }), Fn = {
6869
6869
  root: {
6870
6870
  alignItems: "center",
6871
6871
  display: "flex",
@@ -6887,8 +6887,8 @@ const Bc = /* @__PURE__ */ Oe(({
6887
6887
  zIndex: 1
6888
6888
  }
6889
6889
  };
6890
- process.env.NODE_ENV === "development" && (Bc.displayName = "Select", oi.displayName = "SelectExpandIcon", Qt.displayName = "SelectOption", nr.displayName = "SelectToggle");
6891
- const Yc = /* @__PURE__ */ Oe(({
6890
+ process.env.NODE_ENV === "development" && (Xc.displayName = "Select", ii.displayName = "SelectExpandIcon", Qt.displayName = "SelectOption", rr.displayName = "SelectToggle");
6891
+ const Uc = /* @__PURE__ */ Oe(({
6892
6892
  children: t,
6893
6893
  className: r,
6894
6894
  isDeselectable: i = !1,
@@ -6923,8 +6923,8 @@ const Yc = /* @__PURE__ */ Oe(({
6923
6923
  }
6924
6924
  );
6925
6925
  });
6926
- process.env.NODE_ENV === "development" && (Yc.displayName = "SelectableButton");
6927
- const Xc = /* @__PURE__ */ Oe(({
6926
+ process.env.NODE_ENV === "development" && (Uc.displayName = "SelectableButton");
6927
+ const Gc = /* @__PURE__ */ Oe(({
6928
6928
  children: t,
6929
6929
  className: r,
6930
6930
  isClipped: i = !1,
@@ -6979,7 +6979,7 @@ const Xc = /* @__PURE__ */ Oe(({
6979
6979
  transform: J,
6980
6980
  onDragStart: M,
6981
6981
  onDragEnd: $
6982
- }), q = a ? 1 - A : A, Y = Uc({ orientation: x, isAtEnd: a ? A === 0 : A === 1, isAtStart: a ? A === 1 : A === 0, isDragging: I, isReleasing: N }), D = Gc({ orientation: x, isClipped: i, naturalPosition: q, knobPadding: d, knobHeight: u, knobWidth: g, isTrackInteractive: c });
6982
+ }), q = a ? 1 - A : A, Y = qc({ orientation: x, isAtEnd: a ? A === 0 : A === 1, isAtStart: a ? A === 1 : A === 0, isDragging: I, isReleasing: N }), D = Kc({ orientation: x, isClipped: i, naturalPosition: q, knobPadding: d, knobHeight: u, knobWidth: g, isTrackInteractive: c });
6983
6983
  Ee(() => {
6984
6984
  I || O === A || B(O);
6985
6985
  }, [O]), Ee(() => {
@@ -6988,9 +6988,9 @@ const Xc = /* @__PURE__ */ Oe(({
6988
6988
  I || !m || S?.(A, !0);
6989
6989
  }, [I]);
6990
6990
  const z = Fe(t, {
6991
- knob: rr,
6992
- knobContainer: or,
6993
- label: ir,
6991
+ knob: or,
6992
+ knobContainer: ir,
6993
+ label: sr,
6994
6994
  track: en
6995
6995
  });
6996
6996
  return /* @__PURE__ */ b.jsx(
@@ -7040,19 +7040,19 @@ const Xc = /* @__PURE__ */ Oe(({
7040
7040
  {
7041
7041
  ref: X,
7042
7042
  className: se(Y.knobContainer),
7043
- element: z.knobContainer ?? /* @__PURE__ */ b.jsx(or, {}),
7043
+ element: z.knobContainer ?? /* @__PURE__ */ b.jsx(ir, {}),
7044
7044
  style: D.knobContainer,
7045
- children: /* @__PURE__ */ b.jsxs(me, { className: se(Y.knob), element: z.knob ?? /* @__PURE__ */ b.jsx(rr, {}), style: le(D.knob), children: [
7045
+ children: /* @__PURE__ */ b.jsxs(me, { className: se(Y.knob), element: z.knob ?? /* @__PURE__ */ b.jsx(or, {}), style: le(D.knob), children: [
7046
7046
  /* @__PURE__ */ b.jsx("div", { style: D.knobHitBox }),
7047
- k && /* @__PURE__ */ b.jsx(me, { className: se(Y.label), element: z.label ?? /* @__PURE__ */ b.jsx(ir, {}), style: le(D.label), children: k(A) })
7047
+ k && /* @__PURE__ */ b.jsx(me, { className: se(Y.label), element: z.label ?? /* @__PURE__ */ b.jsx(sr, {}), style: le(D.label), children: k(A) })
7048
7048
  ] })
7049
7049
  }
7050
7050
  )
7051
7051
  ] })
7052
7052
  }
7053
7053
  );
7054
- }), en = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), rr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), or = ({ ...t }) => /* @__PURE__ */ b.jsx("button", { ...t }), ir = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t });
7055
- function Uc({ orientation: t = "vertical", isAtEnd: r = !1, isAtStart: i = !1, isDragging: a = !1, isReleasing: c = !1 }) {
7054
+ }), en = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), or = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), ir = ({ ...t }) => /* @__PURE__ */ b.jsx("button", { ...t }), sr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t });
7055
+ function qc({ orientation: t = "vertical", isAtEnd: r = !1, isAtStart: i = !1, isDragging: a = !1, isReleasing: c = !1 }) {
7056
7056
  return {
7057
7057
  root: se(t, {
7058
7058
  "at-end": r,
@@ -7086,7 +7086,7 @@ function Uc({ orientation: t = "vertical", isAtEnd: r = !1, isAtStart: i = !1, i
7086
7086
  })
7087
7087
  };
7088
7088
  }
7089
- function Gc({ orientation: t = "vertical", isClipped: r = !1, naturalPosition: i = 0, knobPadding: a = 0, knobHeight: c = 0, knobWidth: u = 0, isTrackInteractive: d = !0 }) {
7089
+ function Kc({ orientation: t = "vertical", isClipped: r = !1, naturalPosition: i = 0, knobPadding: a = 0, knobHeight: c = 0, knobWidth: u = 0, isTrackInteractive: d = !0 }) {
7090
7090
  return {
7091
7091
  body: {
7092
7092
  height: "100%",
@@ -7151,8 +7151,8 @@ function Gc({ orientation: t = "vertical", isClipped: r = !1, naturalPosition: i
7151
7151
  }
7152
7152
  };
7153
7153
  }
7154
- process.env.NODE_ENV === "development" && (Xc.displayName = "Slider", en.displayName = "SliderTrack", rr.displayName = "SliderKnob", or.displayName = "SliderKnobContainer", ir.displayName = "SliderLabel");
7155
- const qc = /* @__PURE__ */ Oe(({
7154
+ process.env.NODE_ENV === "development" && (Gc.displayName = "Slider", en.displayName = "SliderTrack", or.displayName = "SliderKnob", ir.displayName = "SliderKnobContainer", sr.displayName = "SliderLabel");
7155
+ const Wc = /* @__PURE__ */ Oe(({
7156
7156
  children: t,
7157
7157
  className: r,
7158
7158
  index: i = 0,
@@ -7165,7 +7165,7 @@ const qc = /* @__PURE__ */ Oe(({
7165
7165
  labelProvider: x,
7166
7166
  onlyDispatchesOnDragEnd: O = !1,
7167
7167
  orientation: T = "vertical",
7168
- steps: k = Kc(10),
7168
+ steps: k = Jc(10),
7169
7169
  trackPadding: $ = 0,
7170
7170
  onDragEnd: M,
7171
7171
  onDragStart: S,
@@ -7219,10 +7219,10 @@ const qc = /* @__PURE__ */ Oe(({
7219
7219
  default:
7220
7220
  console.error(`[etudes::StepSlider] Invalid orientation: ${T}`);
7221
7221
  }
7222
- }, [I.width, I.left, I.top, I.height, N, Z, c, u, T, We(k)]), z = c ? tt(Z) : Z, ae = Wc({ orientation: T, isAtEnd: c ? Z === 0 : Z === 1, isAtStart: c ? Z === 1 : Z === 0, isDragging: q, isReleasing: oe }), F = Jc({ orientation: T, naturalPosition: z, isClipped: a, knobPadding: g, knobHeight: d, knobWidth: m, isTrackInteractive: u }), R = Fe(t, {
7223
- knob: sr,
7224
- knobContainer: ar,
7225
- label: cr,
7222
+ }, [I.width, I.left, I.top, I.height, N, Z, c, u, T, We(k)]), z = c ? tt(Z) : Z, ae = Zc({ orientation: T, isAtEnd: c ? Z === 0 : Z === 1, isAtStart: c ? Z === 1 : Z === 0, isDragging: q, isReleasing: oe }), F = Qc({ orientation: T, naturalPosition: z, isClipped: a, knobPadding: g, knobHeight: d, knobWidth: m, isTrackInteractive: u }), R = Fe(t, {
7223
+ knob: ar,
7224
+ knobContainer: cr,
7225
+ label: lr,
7226
7226
  track: tn
7227
7227
  });
7228
7228
  return Ee(() => {
@@ -7285,19 +7285,19 @@ const qc = /* @__PURE__ */ Oe(({
7285
7285
  {
7286
7286
  ref: E,
7287
7287
  className: se(ae.knobContainer),
7288
- element: R.knobContainer ?? /* @__PURE__ */ b.jsx(ar, {}),
7288
+ element: R.knobContainer ?? /* @__PURE__ */ b.jsx(cr, {}),
7289
7289
  style: le(F.knobContainer),
7290
- children: /* @__PURE__ */ b.jsxs(me, { className: se(ae.knob), element: R.knob ?? /* @__PURE__ */ b.jsx(sr, {}), style: le(F.knob), children: [
7290
+ children: /* @__PURE__ */ b.jsxs(me, { className: se(ae.knob), element: R.knob ?? /* @__PURE__ */ b.jsx(ar, {}), style: le(F.knob), children: [
7291
7291
  /* @__PURE__ */ b.jsx("div", { style: F.knobHitBox }),
7292
- k && x && /* @__PURE__ */ b.jsx(me, { className: se(ae.label), element: R.label ?? /* @__PURE__ */ b.jsx(cr, {}), style: le(F.label), children: x(Z, Pt(Z, k)) })
7292
+ k && x && /* @__PURE__ */ b.jsx(me, { className: se(ae.label), element: R.label ?? /* @__PURE__ */ b.jsx(lr, {}), style: le(F.label), children: x(Z, Pt(Z, k)) })
7293
7293
  ] })
7294
7294
  }
7295
7295
  )
7296
7296
  ] })
7297
7297
  }
7298
7298
  );
7299
- }), sr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), ar = ({ ...t }) => /* @__PURE__ */ b.jsx("button", { ...t }), cr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), tn = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t });
7300
- function Kc(t) {
7299
+ }), ar = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), cr = ({ ...t }) => /* @__PURE__ */ b.jsx("button", { ...t }), lr = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t }), tn = ({ ...t }) => /* @__PURE__ */ b.jsx("div", { ...t });
7300
+ function Jc(t) {
7301
7301
  if (t <= 1)
7302
7302
  return console.error("[etudes::StepSlider] `length` value must be greater than or equal to 2"), [];
7303
7303
  if (Math.round(t) !== t)
@@ -7318,7 +7318,7 @@ function Pt(t, r) {
7318
7318
  function dt(t, r) {
7319
7319
  return t >= r.length ? NaN : r[t];
7320
7320
  }
7321
- function Wc({ orientation: t = "vertical", isAtEnd: r = !1, isAtStart: i = !1, isDragging: a = !1, isReleasing: c = !1 }) {
7321
+ function Zc({ orientation: t = "vertical", isAtEnd: r = !1, isAtStart: i = !1, isDragging: a = !1, isReleasing: c = !1 }) {
7322
7322
  return {
7323
7323
  root: se(t, {
7324
7324
  "at-end": r,
@@ -7352,7 +7352,7 @@ function Wc({ orientation: t = "vertical", isAtEnd: r = !1, isAtStart: i = !1, i
7352
7352
  })
7353
7353
  };
7354
7354
  }
7355
- function Jc({ orientation: t = "vertical", naturalPosition: r = 0, isClipped: i = !1, knobPadding: a = 0, knobHeight: c = 0, knobWidth: u = 0, isTrackInteractive: d = !1 }) {
7355
+ function Qc({ orientation: t = "vertical", naturalPosition: r = 0, isClipped: i = !1, knobPadding: a = 0, knobHeight: c = 0, knobWidth: u = 0, isTrackInteractive: d = !1 }) {
7356
7356
  return {
7357
7357
  body: {
7358
7358
  height: "100%",
@@ -7423,8 +7423,8 @@ function tt(t) {
7423
7423
  function qt(t, r = 1, i = 0) {
7424
7424
  return Math.max(i, Math.min(r, t));
7425
7425
  }
7426
- process.env.NODE_ENV === "development" && (qc.displayName = "StepSlider", tn.displayName = "StepSliderTrack", sr.displayName = "StepSliderKnob", ar.displayName = "StepSliderKnobContainer", cr.displayName = "StepSliderLabel");
7427
- const Zc = /* @__PURE__ */ Oe(({
7426
+ process.env.NODE_ENV === "development" && (Wc.displayName = "StepSlider", tn.displayName = "StepSliderTrack", ar.displayName = "StepSliderKnob", cr.displayName = "StepSliderKnobContainer", lr.displayName = "StepSliderLabel");
7427
+ const el = /* @__PURE__ */ Oe(({
7428
7428
  children: t,
7429
7429
  isEnabled: r = !0,
7430
7430
  threshold: i = 0.5,
@@ -7466,8 +7466,8 @@ const Zc = /* @__PURE__ */ Oe(({
7466
7466
  }
7467
7467
  );
7468
7468
  });
7469
- process.env.NODE_ENV === "development" && (Zc.displayName = "SwipeRegion");
7470
- const Qc = /* @__PURE__ */ Oe(({
7469
+ process.env.NODE_ENV === "development" && (el.displayName = "SwipeRegion");
7470
+ const tl = /* @__PURE__ */ Oe(({
7471
7471
  onChange: t,
7472
7472
  ...r
7473
7473
  }, i) => /* @__PURE__ */ b.jsx(
@@ -7478,8 +7478,8 @@ const Qc = /* @__PURE__ */ Oe(({
7478
7478
  onChange: (a) => t(a.target.value)
7479
7479
  }
7480
7480
  ));
7481
- process.env.NODE_ENV === "development" && (Qc.displayName = "TextArea");
7482
- const el = /* @__PURE__ */ Oe(({
7481
+ process.env.NODE_ENV === "development" && (tl.displayName = "TextArea");
7482
+ const nl = /* @__PURE__ */ Oe(({
7483
7483
  className: t,
7484
7484
  children: r,
7485
7485
  isInverted: i = !1,
@@ -7489,23 +7489,23 @@ const el = /* @__PURE__ */ Oe(({
7489
7489
  onChange: d,
7490
7490
  ...g
7491
7491
  }, m) => {
7492
- const x = we(null), O = jo(x), T = Fe(r, {
7493
- knob: ur,
7494
- track: lr
7495
- }), k = tl({ isOn: a }), $ = nl({ isOn: a, isInverted: i, orientation: c, knobSize: O });
7492
+ const x = we(null), O = Ao(x), T = Fe(r, {
7493
+ knob: fr,
7494
+ track: ur
7495
+ }), k = rl({ isOn: a }), $ = ol({ isOn: a, isInverted: i, orientation: c, knobSize: O });
7496
7496
  return /* @__PURE__ */ b.jsxs("label", { ...g, ref: m, className: se(t, k.root), style: le(u, $.root), children: [
7497
7497
  /* @__PURE__ */ b.jsx("input", { checked: a, style: $.input, type: "checkbox", onChange: (M) => d?.(M.target.checked) }),
7498
- /* @__PURE__ */ b.jsx(me, { className: k.track, element: T.track ?? /* @__PURE__ */ b.jsx(lr, {}), style: $.track, children: /* @__PURE__ */ b.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ b.jsx(me, { ref: x, className: k.knob, element: T.knob ?? /* @__PURE__ */ b.jsx(ur, {}), style: $.knob }) }) })
7498
+ /* @__PURE__ */ b.jsx(me, { className: k.track, element: T.track ?? /* @__PURE__ */ b.jsx(ur, {}), style: $.track, children: /* @__PURE__ */ b.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ b.jsx(me, { ref: x, className: k.knob, element: T.knob ?? /* @__PURE__ */ b.jsx(fr, {}), style: $.knob }) }) })
7499
7499
  ] });
7500
- }), lr = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), ur = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t });
7501
- function tl({ isOn: t = !1 }) {
7500
+ }), ur = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t }), fr = ({ children: t, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: t });
7501
+ function rl({ isOn: t = !1 }) {
7502
7502
  return {
7503
7503
  root: se({ active: t }),
7504
7504
  knob: se({ active: t }),
7505
7505
  track: se({ active: t })
7506
7506
  };
7507
7507
  }
7508
- function nl({ isOn: t = !1, isInverted: r = !1, knobSize: i = $e.zero, orientation: a = "horizontal" }) {
7508
+ function ol({ isOn: t = !1, isInverted: r = !1, knobSize: i = $e.zero, orientation: a = "horizontal" }) {
7509
7509
  return {
7510
7510
  root: {
7511
7511
  alignItems: "center",
@@ -7565,16 +7565,16 @@ function nl({ isOn: t = !1, isInverted: r = !1, knobSize: i = $e.zero, orientati
7565
7565
  }
7566
7566
  };
7567
7567
  }
7568
- process.env.NODE_ENV === "development" && (el.displayName = "Toggle", ur.displayName = "ToggleKnob", lr.displayName = "ToggleTrack");
7569
- const ii = /* @__PURE__ */ Oe(({
7568
+ process.env.NODE_ENV === "development" && (nl.displayName = "Toggle", fr.displayName = "ToggleKnob", ur.displayName = "ToggleTrack");
7569
+ const si = /* @__PURE__ */ Oe(({
7570
7570
  children: t,
7571
7571
  ...r
7572
7572
  }, i) => (Array.isArray(t) && console.error(`[etudes::ExtractChild] Only one child is expected, but found ${t.length}. Only the first child is extracted while the rest are discarded.`), an.map(t, (a, c) => {
7573
7573
  if (!(c > 0))
7574
7574
  return cn(a) ? gr(a, { ...r, ref: i }) : a;
7575
7575
  })));
7576
- process.env.NODE_ENV === "development" && (ii.displayName = "ExtractChild");
7577
- function rl({
7576
+ process.env.NODE_ENV === "development" && (si.displayName = "ExtractChild");
7577
+ function il({
7578
7578
  children: t,
7579
7579
  className: r,
7580
7580
  style: i,
@@ -7589,7 +7589,7 @@ function rl({
7589
7589
  const O = we(null), T = we(void 0), k = nt(O), $ = ge(() => {
7590
7590
  const C = window.document.createElement("span");
7591
7591
  C.className = se(r), C.innerHTML = g, C.role = "tooltip";
7592
- const ee = a ?? (O.current ? il(O.current, x) : "tl"), W = ol(C), X = cl({ alignment: ee, arrowSize: $e.make(u, c), gap: d, maxDialogWidth: m, fullDialogWidth: W.width, targetWidth: k.width }), J = le(i, X.dialog);
7592
+ const ee = a ?? (O.current ? al(O.current, x) : "tl"), W = sl(C), X = ul({ alignment: ee, arrowSize: $e.make(u, c), gap: d, maxDialogWidth: m, fullDialogWidth: W.width, targetWidth: k.width }), J = le(i, X.dialog);
7593
7593
  Object.keys(J).forEach((I) => C.style[I] = J[I]);
7594
7594
  const E = window.document.createElement("span");
7595
7595
  return Object.keys(X.arrow).forEach((I) => E.style[I] = X.arrow[I]), C.appendChild(E), C;
@@ -7604,7 +7604,7 @@ function rl({
7604
7604
  O.current?.removeChild(C), T.current = void 0;
7605
7605
  };
7606
7606
  }, [$]), /* @__PURE__ */ b.jsx(
7607
- ii,
7607
+ si,
7608
7608
  {
7609
7609
  ref: O,
7610
7610
  onMouseEnter: M,
@@ -7613,14 +7613,14 @@ function rl({
7613
7613
  }
7614
7614
  );
7615
7615
  }
7616
- function ol(t) {
7616
+ function sl(t) {
7617
7617
  if (typeof window > "u") return $e.zero;
7618
7618
  const r = t.cloneNode(!1);
7619
7619
  r.innerHTML = t.innerHTML, r.style.visibility = "hidden", r.style.whiteSpace = "pre", window.document.body.appendChild(r);
7620
7620
  const i = r.getBoundingClientRect();
7621
7621
  return window.document.body.removeChild(r), $e.make(i.width, i.height);
7622
7622
  }
7623
- function il(t, r) {
7623
+ function al(t, r) {
7624
7624
  const i = xe.fromViewport(), a = xe.intersecting(t);
7625
7625
  if (a) {
7626
7626
  const c = a.left - i.left < r, u = i.right - a.right < r, d = a.top - i.top < r, g = i.bottom - a.bottom < r;
@@ -7634,7 +7634,7 @@ function il(t, r) {
7634
7634
  }
7635
7635
  return "tc";
7636
7636
  }
7637
- function sl({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogWidth: c, targetWidth: u }) {
7637
+ function cl({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogWidth: c, targetWidth: u }) {
7638
7638
  const d = Math.min(i, c), g = u > d;
7639
7639
  switch (t) {
7640
7640
  case "tl":
@@ -7691,7 +7691,7 @@ function sl({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogW
7691
7691
  return console.error(`[etudes::WithTooltip] Invalid alignment: ${t}`), {};
7692
7692
  }
7693
7693
  }
7694
- function al({ alignment: t, arrowSize: r, fullDialogWidth: i, maxDialogWidth: a, targetWidth: c }) {
7694
+ function ll({ alignment: t, arrowSize: r, fullDialogWidth: i, maxDialogWidth: a, targetWidth: c }) {
7695
7695
  const u = Math.min(i, a), d = c > u;
7696
7696
  switch (t) {
7697
7697
  case "tl":
@@ -7772,7 +7772,7 @@ function al({ alignment: t, arrowSize: r, fullDialogWidth: i, maxDialogWidth: a,
7772
7772
  return console.error(`[etudes::WithTooltip] Invalid alignment: ${t}`), {};
7773
7773
  }
7774
7774
  }
7775
- function cl({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogWidth: c, targetWidth: u }) {
7775
+ function ul({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogWidth: c, targetWidth: u }) {
7776
7776
  return {
7777
7777
  dialog: {
7778
7778
  boxSizing: "border-box",
@@ -7784,17 +7784,17 @@ function cl({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogW
7784
7784
  userSelect: "none",
7785
7785
  whiteSpace: i > c ? "normal" : "pre",
7786
7786
  width: i > c ? `${c}px` : "",
7787
- ...sl({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogWidth: c, targetWidth: u })
7787
+ ...cl({ alignment: t, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogWidth: c, targetWidth: u })
7788
7788
  },
7789
7789
  arrow: {
7790
7790
  background: "inherit",
7791
7791
  position: "absolute",
7792
- ...al({ alignment: t, arrowSize: r, fullDialogWidth: i, maxDialogWidth: c, targetWidth: u })
7792
+ ...ll({ alignment: t, arrowSize: r, fullDialogWidth: i, maxDialogWidth: c, targetWidth: u })
7793
7793
  }
7794
7794
  };
7795
7795
  }
7796
- process.env.NODE_ENV === "development" && (rl.displayName = "WithTooltip");
7797
- function ll({ children: t, if: r }) {
7796
+ process.env.NODE_ENV === "development" && (il.displayName = "WithTooltip");
7797
+ function fl({ children: t, if: r }) {
7798
7798
  switch (typeof r) {
7799
7799
  case "function":
7800
7800
  return r() ? /* @__PURE__ */ b.jsx(b.Fragment, { children: t }) : /* @__PURE__ */ b.jsx(b.Fragment, {});
@@ -7802,17 +7802,17 @@ function ll({ children: t, if: r }) {
7802
7802
  return r ? /* @__PURE__ */ b.jsx(b.Fragment, { children: t }) : /* @__PURE__ */ b.jsx(b.Fragment, {});
7803
7803
  }
7804
7804
  }
7805
- process.env.NODE_ENV === "development" && (ll.displayName = "Conditional");
7806
- function Tl({
7805
+ process.env.NODE_ENV === "development" && (fl.displayName = "Conditional");
7806
+ function Il({
7807
7807
  children: t,
7808
7808
  condition: r
7809
7809
  }) {
7810
7810
  const i = an.toArray(t);
7811
7811
  if (i.length === 0)
7812
7812
  return console.error("[etudes::Switch] `Switch` must have at least one child"), /* @__PURE__ */ b.jsx(b.Fragment, {});
7813
- if (!fl(i))
7813
+ if (!pl(i))
7814
7814
  return console.error("[etudes::Switch] `Switch` children must be of `Case` type or `Default` type"), /* @__PURE__ */ b.jsx(b.Fragment, {});
7815
- const a = i.filter((u) => u.type === si);
7815
+ const a = i.filter((u) => u.type === ai);
7816
7816
  if (a.length > 1)
7817
7817
  return console.error("[etudes::Switch] `Switch` can only have maximum one `Default` child"), /* @__PURE__ */ b.jsx(b.Fragment, {});
7818
7818
  const c = a[0];
@@ -7825,16 +7825,25 @@ function Tl({
7825
7825
  if (c)
7826
7826
  return c;
7827
7827
  }
7828
- function ul({ children: t }) {
7828
+ function dl({ children: t }) {
7829
7829
  return t;
7830
7830
  }
7831
- function si({ children: t }) {
7831
+ function ai({ children: t }) {
7832
7832
  return t;
7833
7833
  }
7834
- function fl(t) {
7835
- return t.every((r) => cn(r) && (r.type === ul || r.type === si));
7834
+ function pl(t) {
7835
+ return t.every((r) => cn(r) && (r.type === dl || r.type === ai));
7836
+ }
7837
+ function kl(t, { element: r, isEnabled: i = !0 } = {}) {
7838
+ Re(() => {
7839
+ if (!i) return;
7840
+ const a = r ?? window.document.documentElement, c = a.className;
7841
+ return a.classList.add(t), () => {
7842
+ a.className = c;
7843
+ };
7844
+ }, [t, r, i]);
7836
7845
  }
7837
- function _l(t, r) {
7846
+ function Cl(t, r) {
7838
7847
  const i = Se(r);
7839
7848
  Re(() => {
7840
7849
  const a = (c) => {
@@ -7856,29 +7865,13 @@ function _l(t, r) {
7856
7865
  };
7857
7866
  }, []);
7858
7867
  }
7859
- function Ol(t) {
7860
- return typeof window > "u" ? void 0 : window.getComputedStyle(window.document.documentElement).getPropertyValue(t) || void 0;
7861
- }
7862
- function Pl(t, { isEnabled: r = !0 } = {}) {
7863
- Re(() => {
7864
- if (r)
7865
- return window.document.documentElement.classList.add(t), () => {
7866
- window.document.documentElement.classList.remove(t);
7867
- };
7868
- }, [t, r]);
7869
- }
7870
- function Il(t, { isEnabled: r = !0 } = {}) {
7871
- Re(() => {
7872
- if (r)
7873
- return window.document.documentElement.style = t, () => {
7874
- window.document.documentElement.style = "";
7875
- };
7876
- }, [t]);
7877
- }
7878
- function kl() {
7868
+ function hl() {
7879
7869
  return typeof window > "u" ? 1 : window.devicePixelRatio || 1;
7880
7870
  }
7881
- function Cl(t) {
7871
+ function $l() {
7872
+ return ln(() => hl(), []);
7873
+ }
7874
+ function jl(t) {
7882
7875
  const [r, i] = _e(!1), a = ge((d) => {
7883
7876
  d.preventDefault(), d.stopPropagation(), i(!0);
7884
7877
  }, []), c = ge((d) => {
@@ -7898,7 +7891,13 @@ function Cl(t) {
7898
7891
  onDrop: u
7899
7892
  };
7900
7893
  }
7901
- function $l(t, r) {
7894
+ function Al() {
7895
+ const [t, r] = _e(!1);
7896
+ return Ee(() => (r(!0), () => {
7897
+ r(!1);
7898
+ }), []), t;
7899
+ }
7900
+ function Ml(t, r) {
7902
7901
  const i = Se(r);
7903
7902
  Ee(() => {
7904
7903
  const a = (c) => {
@@ -7910,32 +7909,32 @@ function $l(t, r) {
7910
7909
  }, [t]);
7911
7910
  }
7912
7911
  const vr = typeof window < "u" ? window.localStorage : void 0;
7913
- function dl({ defaultTTL: t = 300 } = {}) {
7912
+ function gl({ defaultTTL: t = 300 } = {}) {
7914
7913
  return {
7915
- get: hl,
7916
- invalidate: ai,
7917
- set: (r, i, a = t) => gl(r, i, a)
7914
+ get: vl,
7915
+ invalidate: ci,
7916
+ set: (r, i, a = t) => yl(r, i, a)
7918
7917
  };
7919
7918
  }
7920
- function ai(t) {
7919
+ function ci(t) {
7921
7920
  vr?.removeItem(t);
7922
7921
  }
7923
- function pl(t) {
7922
+ function ml(t) {
7924
7923
  const { timestamp: r, ttl: i } = t;
7925
7924
  return (Date.now() - r) / 1e3 >= i;
7926
7925
  }
7927
- function hl(t) {
7926
+ function vl(t) {
7928
7927
  const r = vr?.getItem(t);
7929
7928
  if (!r) return;
7930
7929
  const i = JSON.parse(r);
7931
7930
  if (i)
7932
- if (pl(i)) {
7933
- ai(t);
7931
+ if (ml(i)) {
7932
+ ci(t);
7934
7933
  return;
7935
7934
  } else
7936
7935
  return i.value;
7937
7936
  }
7938
- function gl(t, r, i) {
7937
+ function yl(t, r, i) {
7939
7938
  const a = {
7940
7939
  value: t,
7941
7940
  timestamp: Date.now(),
@@ -7943,20 +7942,14 @@ function gl(t, r, i) {
7943
7942
  };
7944
7943
  return vr?.setItem(r, JSON.stringify(a)), t;
7945
7944
  }
7946
- function jl(t) {
7947
- return dr(() => dl({ defaultTTL: t }), [t]);
7948
- }
7949
- function Al() {
7950
- const [t, r] = _e(!1);
7951
- return Ee(() => (r(!0), () => {
7952
- r(!1);
7953
- }), []), t;
7945
+ function Rl(t) {
7946
+ return ln(() => gl({ defaultTTL: t }), [t]);
7954
7947
  }
7955
- function Ml(t, r = []) {
7948
+ function zl(t, r = []) {
7956
7949
  const i = Se(t), a = we(void 0), c = we(!1);
7957
7950
  Re(() => {
7958
7951
  const u = () => {
7959
- const g = ml();
7952
+ const g = xl();
7960
7953
  g && (i.current(g, a.current), a.current = g);
7961
7954
  }, d = () => {
7962
7955
  c.current || typeof requestAnimationFrame == "function" && (c.current = !0, requestAnimationFrame(() => {
@@ -7968,7 +7961,7 @@ function Ml(t, r = []) {
7968
7961
  };
7969
7962
  }, [...r]);
7970
7963
  }
7971
- function ml() {
7964
+ function xl() {
7972
7965
  const t = xe.fromViewport(), r = xe.clone(t, { x: 0, y: 0 }), i = xe.from(window, { overflow: !0 });
7973
7966
  if (!i) return;
7974
7967
  const a = xe.clone(r, { x: i.width - t.width, y: i.height - t.height }), c = Te.make(t.left / a.left, t.top / a.top);
@@ -7980,32 +7973,32 @@ function ml() {
7980
7973
  };
7981
7974
  }
7982
7975
  const yr = typeof window < "u" ? window.sessionStorage : void 0;
7983
- function vl({ defaultTTL: t = 300 } = {}) {
7976
+ function bl({ defaultTTL: t = 300 } = {}) {
7984
7977
  return {
7985
- get: xl,
7986
- invalidate: ci,
7987
- set: (r, i, a = t) => bl(r, i, a)
7978
+ get: El,
7979
+ invalidate: li,
7980
+ set: (r, i, a = t) => Nl(r, i, a)
7988
7981
  };
7989
7982
  }
7990
- function ci(t) {
7983
+ function li(t) {
7991
7984
  yr?.removeItem(t);
7992
7985
  }
7993
- function yl(t) {
7986
+ function wl(t) {
7994
7987
  const { timestamp: r, ttl: i } = t;
7995
7988
  return (Date.now() - r) / 1e3 >= i;
7996
7989
  }
7997
- function xl(t) {
7990
+ function El(t) {
7998
7991
  const r = yr?.getItem(t);
7999
7992
  if (!r) return;
8000
7993
  const i = JSON.parse(r);
8001
7994
  if (i)
8002
- if (yl(i)) {
8003
- ci(t);
7995
+ if (wl(i)) {
7996
+ li(t);
8004
7997
  return;
8005
7998
  } else
8006
7999
  return i.value;
8007
8000
  }
8008
- function bl(t, r, i) {
8001
+ function Nl(t, r, i) {
8009
8002
  const a = {
8010
8003
  value: t,
8011
8004
  timestamp: Date.now(),
@@ -8013,15 +8006,29 @@ function bl(t, r, i) {
8013
8006
  };
8014
8007
  return yr?.setItem(r, JSON.stringify(a)), t;
8015
8008
  }
8016
- function Rl(t) {
8017
- return dr(() => vl({ defaultTTL: t }), [t]);
8009
+ function Ll(t) {
8010
+ return ln(() => bl({ defaultTTL: t }), [t]);
8018
8011
  }
8019
- function zl() {
8020
- return (t, r) => {
8021
- typeof window > "u" || (r === void 0 ? window.document.documentElement.style.removeProperty(t) : window.document.documentElement.style.setProperty(t, r));
8022
- };
8012
+ function Sl(t, { element: r, computed: i }) {
8013
+ if (typeof window > "u") return;
8014
+ const a = r ?? window.document.documentElement;
8015
+ return i ? window.getComputedStyle(a).getPropertyValue(t) || void 0 : a.style.getPropertyValue(t) || void 0;
8016
+ }
8017
+ function Io(t, r, { element: i } = {}) {
8018
+ if (typeof window > "u") return;
8019
+ const a = i ?? window.document.documentElement;
8020
+ r === void 0 ? a.style.removeProperty(t) : a.style.setProperty(t, r);
8021
+ }
8022
+ function Fl(t, r, { element: i, isEnabled: a = !0 } = {}) {
8023
+ Re(() => {
8024
+ if (!a) return;
8025
+ const c = i ?? window.document.documentElement, u = Sl(t, { element: c, computed: !1 });
8026
+ return Io(t, r, { element: c }), () => {
8027
+ Io(t, u, { element: c });
8028
+ };
8029
+ }, [t, r, i, a]);
8023
8030
  }
8024
- function Ll(t, {
8031
+ function Vl(t, {
8025
8032
  autoStarts: r = !0,
8026
8033
  onTimeout: i
8027
8034
  }, a = []) {
@@ -8034,14 +8041,14 @@ function Ll(t, {
8034
8041
  }, [t, d]);
8035
8042
  return Ee(() => (r && t >= 0 && g(), d), [r, t, g, d, ...a]), { start: g, stop: d };
8036
8043
  }
8037
- var fr;
8044
+ var dr;
8038
8045
  ((t) => {
8039
8046
  function r(i) {
8040
8047
  return i === "light" ? "dark" : "light";
8041
8048
  }
8042
8049
  t.toggled = r;
8043
- })(fr || (fr = {}));
8044
- function Fl({ children: t }) {
8050
+ })(dr || (dr = {}));
8051
+ function Dl({ children: t }) {
8045
8052
  const r = () => {
8046
8053
  if (typeof window > "u") return "light";
8047
8054
  const c = window.localStorage.getItem("color-scheme");
@@ -8051,161 +8058,172 @@ function Fl({ children: t }) {
8051
8058
  window.localStorage.setItem("color-scheme", i), window.document.documentElement.classList.toggle("dark", i === "dark");
8052
8059
  }, [i]), /* @__PURE__ */ b.jsx($t.Provider, { value: { colorScheme: i, setColorScheme: a }, children: t });
8053
8060
  }
8054
- const $t = Ss(void 0);
8055
- function Vl() {
8061
+ const $t = Ts(void 0);
8062
+ function Hl() {
8056
8063
  const t = pr($t);
8057
8064
  return t ? t.colorScheme : "light";
8058
8065
  }
8059
- function Dl() {
8066
+ function Bl() {
8060
8067
  const t = pr($t);
8061
8068
  return t ? t.setColorScheme : () => {
8062
8069
  };
8063
8070
  }
8064
- function Hl() {
8071
+ function Yl() {
8065
8072
  const t = pr($t);
8066
8073
  return t ? ge(() => {
8067
- t.setColorScheme((r) => fr.toggled(r));
8074
+ t.setColorScheme((r) => dr.toggled(r));
8068
8075
  }, []) : () => {
8069
8076
  };
8070
8077
  }
8071
8078
  process.env.NODE_ENV === "development" && ($t.displayName = "ColorSchemeContext");
8072
- function Io(t) {
8073
- return t == null ? "" : Array.isArray(t) ? JSON.stringify(t.map(Io)) : typeof t == "object" ? JSON.stringify(Object.entries(t).sort(([r], [i]) => r.localeCompare(i)).map(([r, i]) => [r, Io(i)])) : We(t);
8079
+ function ko(t) {
8080
+ return t == null ? "" : Array.isArray(t) ? JSON.stringify(t.map(ko)) : typeof t == "object" ? JSON.stringify(Object.entries(t).sort(([r], [i]) => r.localeCompare(i)).map(([r, i]) => [r, ko(i)])) : We(t);
8074
8081
  }
8075
- function wl({
8082
+ function Tl({
8076
8083
  children: t,
8077
8084
  ...r
8078
8085
  }) {
8079
8086
  return /* @__PURE__ */ b.jsx(b.Fragment, { children: an.map(t, (i) => cn(i) ? gr(i, { ...r }) : i) });
8080
8087
  }
8081
- process.env.NODE_ENV === "development" && (wl.displayName = "ExtractChildren");
8088
+ process.env.NODE_ENV === "development" && (Tl.displayName = "ExtractChildren");
8089
+ function Xl({
8090
+ children: t,
8091
+ fallback: r = void 0
8092
+ }) {
8093
+ const [i, a] = _e(!1);
8094
+ if (Ee(() => {
8095
+ a(typeof window < "u");
8096
+ }, []), !!i)
8097
+ return /* @__PURE__ */ b.jsx(_s, { fallback: r, children: t });
8098
+ }
8082
8099
  export {
8083
- As as Accordion,
8084
- Ro as AccordionCollapseIcon,
8085
- Mo as AccordionExpandIcon,
8086
- Fn as AccordionHeader,
8087
- Vn as AccordionItem,
8100
+ Rs as Accordion,
8101
+ zo as AccordionCollapseIcon,
8102
+ Ro as AccordionExpandIcon,
8103
+ Vn as AccordionHeader,
8104
+ Dn as AccordionItem,
8088
8105
  ho as AccordionSection,
8089
- Lo as Burger,
8106
+ Fo as Burger,
8090
8107
  rn as BurgerBar,
8091
- Vs as BurgerButton,
8092
- Ds as BurgerButtonBar,
8093
- Bs as Button,
8094
- Ws as Carousel,
8095
- ul as Case,
8108
+ Hs as BurgerButton,
8109
+ Bs as BurgerButtonBar,
8110
+ Xs as Button,
8111
+ Zs as Carousel,
8112
+ dl as Case,
8096
8113
  mr as Collection,
8097
8114
  kt as CollectionItem,
8098
- fr as ColorScheme,
8115
+ dr as ColorScheme,
8099
8116
  $t as ColorSchemeContext,
8100
- Fl as ColorSchemeProvider,
8101
- ll as Conditional,
8102
- ta as Counter,
8103
- Bn as CounterAddButton,
8104
- Yn as CounterSubtractButton,
8105
- Hn as CounterTextField,
8106
- aa as CoverImage,
8107
- Bo as CoverImageContent,
8108
- Yo as CoverImageViewport,
8109
- da as CoverVideo,
8110
- Uo as CoverVideoContent,
8111
- Go as CoverVideoViewport,
8112
- si as Default,
8113
- pa as Dial,
8114
- Un as DialKnob,
8115
- Xn as DialTrack,
8116
- ma as Dropdown,
8117
- qo as DropdownCollapseIcon,
8118
- Gn as DropdownCollection,
8119
- Ko as DropdownExpandIcon,
8120
- qn as DropdownItem,
8121
- Kn as DropdownToggle,
8122
- ln as Each,
8123
- ii as ExtractChild,
8124
- wl as ExtractChildren,
8125
- xc as FlatSVG,
8126
- Do as Image,
8117
+ Dl as ColorSchemeProvider,
8118
+ fl as Conditional,
8119
+ ra as Counter,
8120
+ Yn as CounterAddButton,
8121
+ Xn as CounterSubtractButton,
8122
+ Bn as CounterTextField,
8123
+ la as CoverImage,
8124
+ Yo as CoverImageContent,
8125
+ Xo as CoverImageViewport,
8126
+ ha as CoverVideo,
8127
+ Go as CoverVideoContent,
8128
+ qo as CoverVideoViewport,
8129
+ ai as Default,
8130
+ ga as Dial,
8131
+ Gn as DialKnob,
8132
+ Un as DialTrack,
8133
+ ya as Dropdown,
8134
+ Ko as DropdownCollapseIcon,
8135
+ qn as DropdownCollection,
8136
+ Wo as DropdownExpandIcon,
8137
+ Kn as DropdownItem,
8138
+ Wn as DropdownToggle,
8139
+ un as Each,
8140
+ si as ExtractChild,
8141
+ Tl as ExtractChildren,
8142
+ wc as FlatSVG,
8143
+ Ho as Image,
8127
8144
  on as ImageSource,
8128
- bc as MasonryGrid,
8129
- Sc as OptionButton,
8130
- ni as Panorama,
8131
- jc as PanoramaSlider,
8132
- Zn as PanoramaSliderIndicator,
8133
- Qn as PanoramaSliderReticle,
8145
+ Ec as MasonryGrid,
8146
+ Xl as NoSSR,
8147
+ _c as OptionButton,
8148
+ ri as Panorama,
8149
+ Mc as PanoramaSlider,
8150
+ Qn as PanoramaSliderIndicator,
8151
+ er as PanoramaSliderReticle,
8134
8152
  Wt as PanoramaSliderTrack,
8135
- Ho as Picture,
8136
- Mc as RangeSlider,
8137
- er as RangeSliderGutter,
8138
- tr as RangeSliderHighlight,
8153
+ Bo as Picture,
8154
+ zc as RangeSlider,
8155
+ tr as RangeSliderGutter,
8156
+ nr as RangeSliderHighlight,
8139
8157
  Zt as RangeSliderKnob,
8140
- zn as RangeSliderKnobContainer,
8158
+ Ln as RangeSliderKnobContainer,
8141
8159
  Jt as RangeSliderLabel,
8142
- Dn as Repeat,
8143
- Bc as Select,
8144
- oi as SelectExpandIcon,
8160
+ Hn as Repeat,
8161
+ Xc as Select,
8162
+ ii as SelectExpandIcon,
8145
8163
  Qt as SelectOption,
8146
- nr as SelectToggle,
8147
- Yc as SelectableButton,
8148
- Xc as Slider,
8149
- rr as SliderKnob,
8150
- or as SliderKnobContainer,
8151
- ir as SliderLabel,
8164
+ rr as SelectToggle,
8165
+ Uc as SelectableButton,
8166
+ Gc as Slider,
8167
+ or as SliderKnob,
8168
+ ir as SliderKnobContainer,
8169
+ sr as SliderLabel,
8152
8170
  en as SliderTrack,
8153
- qc as StepSlider,
8154
- sr as StepSliderKnob,
8155
- ar as StepSliderKnobContainer,
8156
- cr as StepSliderLabel,
8171
+ Wc as StepSlider,
8172
+ ar as StepSliderKnob,
8173
+ cr as StepSliderKnobContainer,
8174
+ lr as StepSliderLabel,
8157
8175
  tn as StepSliderTrack,
8158
8176
  me as Styled,
8159
- Zc as SwipeRegion,
8160
- Tl as Switch,
8161
- Qc as TextArea,
8162
- Fo as TextField,
8163
- el as Toggle,
8164
- ur as ToggleKnob,
8165
- lr as ToggleTrack,
8166
- Xo as Video,
8167
- rl as WithTooltip,
8168
- Sl as asClassNameDict,
8177
+ el as SwipeRegion,
8178
+ Il as Switch,
8179
+ tl as TextArea,
8180
+ Vo as TextField,
8181
+ nl as Toggle,
8182
+ fr as ToggleKnob,
8183
+ ur as ToggleTrack,
8184
+ Uo as Video,
8185
+ il as WithTooltip,
8186
+ Pl as asClassNameDict,
8169
8187
  Fe as asComponentDict,
8170
- Nl as asStyleDict,
8188
+ Ol as asStyleDict,
8171
8189
  gr as cloneStyledElement,
8172
8190
  We as createKey,
8173
- Io as createKeyDeep,
8174
- dl as createLocalCache,
8175
- vl as createSessionCache,
8176
- Kc as generateSteps,
8177
- qs as isTouchDevice,
8191
+ ko as createKeyDeep,
8192
+ gl as createLocalCache,
8193
+ bl as createSessionCache,
8194
+ Jc as generateSteps,
8195
+ Sl as getStyle,
8196
+ Ws as isTouchDevice,
8197
+ Io as setStyle,
8178
8198
  le as styles,
8179
- Ol as useCSSProperty,
8180
- _l as useClickOutside,
8181
- Vl as useColorScheme,
8182
- kl as useDPR,
8183
- Pl as useDocumentClassName,
8184
- Il as useDocumentStyle,
8185
- Us as useDrag,
8186
- Cl as useDropzone,
8187
- oa as useImageLoader,
8188
- Vo as useImageSize,
8189
- Ic as useInertiaDrag,
8199
+ kl as useClassName,
8200
+ Cl as useClickOutside,
8201
+ Hl as useColorScheme,
8202
+ $l as useDPR,
8203
+ qs as useDrag,
8204
+ jl as useDropzone,
8205
+ sa as useImageLoader,
8206
+ Do as useImageSize,
8207
+ Cc as useInertiaDrag,
8190
8208
  Ct as useInertiaDragValue,
8191
- na as useIntersectionObserver,
8192
- Gs as useInterval,
8193
- Ks as useIsTouchDevice,
8194
- $l as useKeyboardShortcut,
8209
+ oa as useIntersectionObserver,
8210
+ Ks as useInterval,
8211
+ Al as useIsMounted,
8212
+ Js as useIsTouchDevice,
8213
+ Ml as useKeyboardShortcut,
8195
8214
  Se as useLatest,
8196
- jl as useLocalCache,
8197
- Al as useMounted,
8198
- Ml as usePosition,
8199
- ea as usePrevious,
8215
+ Rl as useLocalCache,
8216
+ zl as usePosition,
8217
+ na as usePrevious,
8200
8218
  nt as useRect,
8201
- Rl as useSessionCache,
8202
- zl as useSetCSSProperty,
8203
- Dl as useSetColorScheme,
8204
- jo as useSize,
8219
+ Ll as useSessionCache,
8220
+ Bl as useSetColorScheme,
8221
+ Ao as useSize,
8205
8222
  hr as useSizeObserver,
8206
- Ll as useTimeout,
8207
- Hl as useToggleColorScheme,
8208
- ca as useVideoMetadataLoader,
8209
- la as useVideoSize,
8210
- ra as useViewportSize
8223
+ Fl as useStyle,
8224
+ Vl as useTimeout,
8225
+ Yl as useToggleColorScheme,
8226
+ ua as useVideoMetadataLoader,
8227
+ fa as useVideoSize,
8228
+ ia as useViewportSize
8211
8229
  };