@caspeco/casper-ui-library 9.0.2 → 9.2.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.
Files changed (105) hide show
  1. package/README.md +10 -4
  2. package/dist/components/combobox/combobox.d.ts.map +1 -1
  3. package/dist/components/icon/icons/calendar-icon.d.ts +2 -0
  4. package/dist/components/icon/icons/calendar-icon.d.ts.map +1 -0
  5. package/dist/components/icon/icons/calendar-icon.js +8 -0
  6. package/dist/components/icon/icons/cart-icon.js +1 -1
  7. package/dist/components/icon/icons/closed-icon.d.ts +2 -0
  8. package/dist/components/icon/icons/closed-icon.d.ts.map +1 -0
  9. package/dist/components/icon/icons/closed-icon.js +8 -0
  10. package/dist/components/icon/icons/comment-add-icon.d.ts +2 -0
  11. package/dist/components/icon/icons/comment-add-icon.d.ts.map +1 -0
  12. package/dist/components/icon/icons/comment-add-icon.js +8 -0
  13. package/dist/components/icon/icons/comment-icon.js +1 -1
  14. package/dist/components/icon/icons/deliverect-icon.d.ts +2 -0
  15. package/dist/components/icon/icons/deliverect-icon.d.ts.map +1 -0
  16. package/dist/components/icon/icons/deliverect-icon.js +8 -0
  17. package/dist/components/icon/icons/door-closed-icon.d.ts +2 -0
  18. package/dist/components/icon/icons/door-closed-icon.d.ts.map +1 -0
  19. package/dist/components/icon/icons/door-closed-icon.js +8 -0
  20. package/dist/components/icon/icons/door-open-icon.d.ts +2 -0
  21. package/dist/components/icon/icons/door-open-icon.d.ts.map +1 -0
  22. package/dist/components/icon/icons/door-open-icon.js +8 -0
  23. package/dist/components/icon/icons/failed-print-icon.d.ts +2 -0
  24. package/dist/components/icon/icons/failed-print-icon.d.ts.map +1 -0
  25. package/dist/components/icon/icons/failed-print-icon.js +8 -0
  26. package/dist/components/icon/icons/index.d.ts +27 -4
  27. package/dist/components/icon/icons/index.d.ts.map +1 -1
  28. package/dist/components/icon/icons/key-command-icon.d.ts +2 -0
  29. package/dist/components/icon/icons/key-command-icon.d.ts.map +1 -0
  30. package/dist/components/icon/icons/key-command-icon.js +8 -0
  31. package/dist/components/icon/icons/key-enter-icon.d.ts +2 -0
  32. package/dist/components/icon/icons/key-enter-icon.d.ts.map +1 -0
  33. package/dist/components/icon/icons/key-enter-icon.js +8 -0
  34. package/dist/components/icon/icons/key-option-icon.d.ts +2 -0
  35. package/dist/components/icon/icons/key-option-icon.d.ts.map +1 -0
  36. package/dist/components/icon/icons/key-option-icon.js +8 -0
  37. package/dist/components/icon/icons/message-add-icon.d.ts +2 -0
  38. package/dist/components/icon/icons/message-add-icon.d.ts.map +1 -0
  39. package/dist/components/icon/icons/message-add-icon.js +8 -0
  40. package/dist/components/icon/icons/message-icon.js +1 -1
  41. package/dist/components/icon/icons/message-lines-icon.d.ts +2 -0
  42. package/dist/components/icon/icons/message-lines-icon.d.ts.map +1 -0
  43. package/dist/components/icon/icons/message-lines-icon.js +8 -0
  44. package/dist/components/icon/icons/module-home-icon.js +1 -1
  45. package/dist/components/icon/icons/no-cart-icon.d.ts +2 -0
  46. package/dist/components/icon/icons/no-cart-icon.d.ts.map +1 -0
  47. package/dist/components/icon/icons/no-cart-icon.js +8 -0
  48. package/dist/components/icon/icons/note-icon.d.ts +2 -0
  49. package/dist/components/icon/icons/note-icon.d.ts.map +1 -0
  50. package/dist/components/icon/icons/note-icon.js +8 -0
  51. package/dist/components/icon/icons/product-my-pages-icon.d.ts +2 -0
  52. package/dist/components/icon/icons/product-my-pages-icon.d.ts.map +1 -0
  53. package/dist/components/icon/icons/product-my-pages-icon.js +8 -0
  54. package/dist/components/icon/icons/puck-icon.d.ts +2 -0
  55. package/dist/components/icon/icons/puck-icon.d.ts.map +1 -0
  56. package/dist/components/icon/icons/puck-icon.js +8 -0
  57. package/dist/components/icon/icons/redo-icon.d.ts +2 -0
  58. package/dist/components/icon/icons/redo-icon.d.ts.map +1 -0
  59. package/dist/components/icon/icons/redo-icon.js +8 -0
  60. package/dist/components/icon/icons/sidebar-hide-icon.d.ts +2 -0
  61. package/dist/components/icon/icons/sidebar-hide-icon.d.ts.map +1 -0
  62. package/dist/components/icon/icons/sidebar-hide-icon.js +8 -0
  63. package/dist/components/icon/icons/sidebar-left-icon.d.ts +2 -0
  64. package/dist/components/icon/icons/sidebar-left-icon.d.ts.map +1 -0
  65. package/dist/components/icon/icons/sidebar-left-icon.js +8 -0
  66. package/dist/components/icon/icons/sidebar-right-icon.d.ts +2 -0
  67. package/dist/components/icon/icons/sidebar-right-icon.d.ts.map +1 -0
  68. package/dist/components/icon/icons/sidebar-right-icon.js +8 -0
  69. package/dist/components/icon/icons/sidebar-show-icon.d.ts +2 -0
  70. package/dist/components/icon/icons/sidebar-show-icon.d.ts.map +1 -0
  71. package/dist/components/icon/icons/sidebar-show-icon.js +8 -0
  72. package/dist/components/icon/icons/swatch-icon.d.ts +2 -0
  73. package/dist/components/icon/icons/swatch-icon.d.ts.map +1 -0
  74. package/dist/components/icon/icons/swatch-icon.js +8 -0
  75. package/dist/components/icon/icons/trivec-icon.d.ts +2 -0
  76. package/dist/components/icon/icons/trivec-icon.d.ts.map +1 -0
  77. package/dist/components/icon/icons/trivec-icon.js +9 -0
  78. package/dist/components/icon/icons/waste-icon.d.ts +2 -0
  79. package/dist/components/icon/icons/waste-icon.d.ts.map +1 -0
  80. package/dist/components/icon/icons/waste-icon.js +8 -0
  81. package/dist/components/table/table-toolbar-settings.d.ts +15 -1
  82. package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
  83. package/dist/components/table/table-toolbar-settings.js +71 -44
  84. package/dist/components/table/table-toolbar-settings.spec.d.ts +2 -0
  85. package/dist/components/table/table-toolbar-settings.spec.d.ts.map +1 -0
  86. package/dist/components/table/table.constants.d.ts +2 -0
  87. package/dist/components/table/table.constants.d.ts.map +1 -0
  88. package/dist/components/table/table.constants.js +4 -0
  89. package/dist/components/table/translations.d.ts +14 -0
  90. package/dist/components/table/translations.d.ts.map +1 -1
  91. package/dist/components/table/translations.js +12 -0
  92. package/dist/index.js +727 -681
  93. package/dist/node_modules/@dnd-kit/abstract/index.js +502 -442
  94. package/dist/node_modules/@dnd-kit/dom/index.js +817 -779
  95. package/dist/node_modules/@dnd-kit/dom/sortable.js +260 -262
  96. package/dist/node_modules/@dnd-kit/dom/utilities.js +470 -463
  97. package/dist/node_modules/@dnd-kit/react/hooks.js +26 -26
  98. package/dist/node_modules/@dnd-kit/react/index.js +8 -1
  99. package/dist/node_modules/@dnd-kit/react/sortable.js +45 -46
  100. package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +11 -11
  101. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +85 -73
  102. package/package.json +20 -18
  103. package/dist/components/icon/icons/tablet-icon.d.ts +0 -2
  104. package/dist/components/icon/icons/tablet-icon.d.ts.map +0 -1
  105. package/dist/components/icon/icons/tablet-icon.js +0 -8
@@ -1,109 +1,108 @@
1
1
  import { Rectangle as it } from "../geometry/dist/index.js";
2
- var vt = (t) => {
2
+ var gt = (t) => {
3
3
  throw TypeError(t);
4
- }, ot = (t, n, e) => n.has(t) || vt("Cannot " + e), f = (t, n, e) => (ot(t, n, "read from private field"), n.get(t)), _ = (t, n, e) => n.has(t) ? vt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, e), R = (t, n, e, i) => (ot(t, n, "write to private field"), n.set(t, e), e), gt = (t, n, e) => (ot(t, n, "access private method"), e);
4
+ }, st = (t, e, n) => e.has(t) || gt("Cannot " + n), u = (t, e, n) => (st(t, e, "read from private field"), e.get(t)), _ = (t, e, n) => e.has(t) ? gt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), R = (t, e, n, i) => (st(t, e, "write to private field"), e.set(t, n), n), yt = (t, e, n) => (st(t, e, "access private method"), n);
5
5
  function q(t) {
6
6
  return t ? t instanceof KeyframeEffect ? !0 : "getKeyframes" in t && typeof t.getKeyframes == "function" : !1;
7
7
  }
8
- function Wt(t, n) {
9
- const e = t.getAnimations();
10
- if (e.length > 0)
11
- for (const i of e) {
12
- if (i.playState !== "running") continue;
13
- const { effect: o } = i, r = (q(o) ? o.getKeyframes() : []).filter(n);
14
- if (r.length > 0)
15
- return [r[r.length - 1], i];
16
- }
17
- return null;
8
+ function Ct(t, e) {
9
+ const n = t.getAnimations();
10
+ let i = null;
11
+ for (const o of n) {
12
+ if (o.playState !== "running") continue;
13
+ const { effect: s } = o, l = (q(s) ? s.getKeyframes() : []).filter(e);
14
+ l.length > 0 && (i = [l[l.length - 1], o]);
15
+ }
16
+ return i;
18
17
  }
19
18
  function j(t) {
20
- const { width: n, height: e, top: i, left: o, bottom: s, right: r } = t.getBoundingClientRect();
21
- return { width: n, height: e, top: i, left: o, bottom: s, right: r };
19
+ const { width: e, height: n, top: i, left: o, bottom: s, right: r } = t.getBoundingClientRect();
20
+ return { width: e, height: n, top: i, left: o, bottom: s, right: r };
22
21
  }
23
- function st(t) {
24
- const n = Object.prototype.toString.call(t);
25
- return n === "[object Window]" || // In Electron context the Window object serializes to [object global]
26
- n === "[object global]";
22
+ function ot(t) {
23
+ const e = Object.prototype.toString.call(t);
24
+ return e === "[object Window]" || // In Electron context the Window object serializes to [object global]
25
+ e === "[object global]";
27
26
  }
28
27
  function X(t) {
29
28
  return "nodeType" in t;
30
29
  }
31
30
  function E(t) {
32
- var n, e, i;
33
- return t ? st(t) ? t : X(t) ? "defaultView" in t ? (n = t.defaultView) != null ? n : window : (i = (e = t.ownerDocument) == null ? void 0 : e.defaultView) != null ? i : window : window : window;
31
+ var e, n, i;
32
+ return t ? ot(t) ? t : X(t) ? "defaultView" in t ? (e = t.defaultView) != null ? e : window : (i = (n = t.ownerDocument) == null ? void 0 : n.defaultView) != null ? i : window : window : window;
34
33
  }
35
- function yt(t) {
36
- const { Document: n } = E(t);
37
- return t instanceof n || "nodeType" in t && t.nodeType === Node.DOCUMENT_NODE;
34
+ function mt(t) {
35
+ const { Document: e } = E(t);
36
+ return t instanceof e || "nodeType" in t && t.nodeType === Node.DOCUMENT_NODE;
38
37
  }
39
- function V(t) {
40
- return !t || st(t) ? !1 : t instanceof E(t).HTMLElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("html");
38
+ function C(t) {
39
+ return !t || ot(t) ? !1 : t instanceof E(t).HTMLElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("html");
41
40
  }
42
- function mt(t) {
41
+ function wt(t) {
43
42
  return t instanceof E(t).SVGElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("svg");
44
43
  }
45
44
  function rt(t) {
46
- return t ? st(t) ? t.document : X(t) ? yt(t) ? t : V(t) || mt(t) ? t.ownerDocument : document : document : document;
45
+ return t ? ot(t) ? t.document : X(t) ? mt(t) ? t : C(t) || wt(t) ? t.ownerDocument : document : document : document;
47
46
  }
48
- function Ct(t) {
49
- var n, e, i, o;
50
- const { documentElement: s } = rt(t), r = E(t).visualViewport, c = (n = r?.width) != null ? n : s.clientWidth, l = (e = r?.height) != null ? e : s.clientHeight, a = (i = r?.offsetTop) != null ? i : 0, u = (o = r?.offsetLeft) != null ? o : 0;
47
+ function Nt(t) {
48
+ var e, n, i, o;
49
+ const { documentElement: s } = rt(t), r = E(t).visualViewport, l = (e = r?.width) != null ? e : s.clientWidth, c = (n = r?.height) != null ? n : s.clientHeight, a = (i = r?.offsetTop) != null ? i : 0, f = (o = r?.offsetLeft) != null ? o : 0;
51
50
  return {
52
51
  top: a,
53
- left: u,
54
- right: u + c,
55
- bottom: a + l,
56
- width: c,
57
- height: l
52
+ left: f,
53
+ right: f + l,
54
+ bottom: a + c,
55
+ width: l,
56
+ height: c
58
57
  };
59
58
  }
60
- function It(t, n) {
61
- if (Nt(t) && t.open === !1)
59
+ function Lt(t, e) {
60
+ if (Pt(t) && t.open === !1)
62
61
  return !1;
63
- const { overflow: e, overflowX: i, overflowY: o } = getComputedStyle(t);
64
- return e === "visible" && i === "visible" && o === "visible";
62
+ const { overflow: n, overflowX: i, overflowY: o } = getComputedStyle(t);
63
+ return n === "visible" && i === "visible" && o === "visible";
65
64
  }
66
- function Nt(t) {
65
+ function Pt(t) {
67
66
  return t.tagName === "DETAILS";
68
67
  }
69
- function D(t, n = t.getBoundingClientRect(), e = 0) {
70
- var i, o, s, r, c;
71
- let l = n;
72
- const { ownerDocument: a } = t, u = (i = a.defaultView) != null ? i : window;
68
+ function B(t, e = t.getBoundingClientRect(), n = 0) {
69
+ var i, o, s, r, l;
70
+ let c = e;
71
+ const { ownerDocument: a } = t, f = (i = a.defaultView) != null ? i : window;
73
72
  let h = t.parentElement;
74
73
  for (; h && h !== a.documentElement; ) {
75
- if (!It(h)) {
76
- const g = h.getBoundingClientRect(), M = e * (g.bottom - g.top), m = e * (g.right - g.left), G = e * (g.bottom - g.top), J = e * (g.right - g.left);
77
- l = {
78
- top: Math.max(l.top, g.top - M),
79
- right: Math.min(l.right, g.right + m),
80
- bottom: Math.min(l.bottom, g.bottom + G),
81
- left: Math.max(l.left, g.left - J),
74
+ if (!Lt(h)) {
75
+ const y = h.getBoundingClientRect(), M = n * (y.bottom - y.top), g = n * (y.right - y.left), G = n * (y.bottom - y.top), J = n * (y.right - y.left);
76
+ c = {
77
+ top: Math.max(c.top, y.top - M),
78
+ right: Math.min(c.right, y.right + g),
79
+ bottom: Math.min(c.bottom, y.bottom + G),
80
+ left: Math.max(c.left, y.left - J),
82
81
  width: 0,
83
82
  // Will be calculated next
84
83
  height: 0
85
84
  // Will be calculated next
86
- }, l.width = l.right - l.left, l.height = l.bottom - l.top;
85
+ }, c.width = c.right - c.left, c.height = c.bottom - c.top;
87
86
  }
88
87
  h = h.parentElement;
89
88
  }
90
- const v = u.visualViewport, y = (o = v?.offsetTop) != null ? o : 0, w = (s = v?.offsetLeft) != null ? s : 0, d = (r = v?.width) != null ? r : u.innerWidth, x = (c = v?.height) != null ? c : u.innerHeight, b = e * x, p = e * d;
91
- return l = {
92
- top: Math.max(l.top, y - b),
89
+ const v = f.visualViewport, m = (o = v?.offsetTop) != null ? o : 0, w = (s = v?.offsetLeft) != null ? s : 0, d = (r = v?.width) != null ? r : f.innerWidth, x = (l = v?.height) != null ? l : f.innerHeight, b = n * x, p = n * d;
90
+ return c = {
91
+ top: Math.max(c.top, m - b),
93
92
  right: Math.min(
94
- l.right,
93
+ c.right,
95
94
  w + d + p
96
95
  ),
97
96
  bottom: Math.min(
98
- l.bottom,
99
- y + x + b
97
+ c.bottom,
98
+ m + x + b
100
99
  ),
101
- left: Math.max(l.left, w - p),
100
+ left: Math.max(c.left, w - p),
102
101
  width: 0,
103
102
  // Will be calculated next
104
103
  height: 0
105
104
  // Will be calculated next
106
- }, l.width = l.right - l.left, l.height = l.bottom - l.top, l.width < 0 && (l.width = 0), l.height < 0 && (l.height = 0), l;
105
+ }, c.width = c.right - c.left, c.height = c.bottom - c.top, c.width < 0 && (c.width = 0), c.height < 0 && (c.height = 0), c;
107
106
  }
108
107
  function ye(t) {
109
108
  return {
@@ -111,50 +110,50 @@ function ye(t) {
111
110
  y: t.clientY
112
111
  };
113
112
  }
114
- var wt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
115
- function at(t = document, n = /* @__PURE__ */ new Set()) {
116
- if (n.has(t)) return [];
117
- n.add(t);
118
- const e = [t];
113
+ var bt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
114
+ function at(t = document, e = /* @__PURE__ */ new Set()) {
115
+ if (e.has(t)) return [];
116
+ e.add(t);
117
+ const n = [t];
119
118
  for (const i of Array.from(
120
119
  t.querySelectorAll("iframe, frame")
121
120
  ))
122
121
  try {
123
122
  const o = i.contentDocument;
124
- o && !n.has(o) && e.push(...at(o, n));
123
+ o && !e.has(o) && n.push(...at(o, e));
125
124
  } catch {
126
125
  }
127
126
  try {
128
127
  const i = t.defaultView;
129
128
  if (i && i !== window.top) {
130
129
  const o = i.parent;
131
- o && o.document && o.document !== t && e.push(...at(o.document, n));
130
+ o && o.document && o.document !== t && n.push(...at(o.document, e));
132
131
  }
133
132
  } catch {
134
133
  }
135
- return e;
134
+ return n;
136
135
  }
137
- function bt() {
136
+ function xt() {
138
137
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
139
138
  }
140
139
  function me() {
141
- var t, n;
142
- const e = bt() ? window.visualViewport : null;
140
+ var t, e;
141
+ const n = xt() ? window.visualViewport : null;
143
142
  return {
144
- x: (t = e?.offsetLeft) != null ? t : 0,
145
- y: (n = e?.offsetTop) != null ? n : 0
143
+ x: (t = n?.offsetLeft) != null ? t : 0,
144
+ y: (e = n?.offsetTop) != null ? e : 0
146
145
  };
147
146
  }
148
- function xt(t) {
147
+ function Tt(t) {
149
148
  return !t || !X(t) ? !1 : t instanceof E(t).ShadowRoot;
150
149
  }
151
150
  function we(t) {
152
151
  if (t && X(t)) {
153
- let n = t.getRootNode();
154
- if (xt(n))
155
- return n;
156
- if (n instanceof Document)
157
- return n;
152
+ let e = t.getRootNode();
153
+ if (Tt(e))
154
+ return e;
155
+ if (e instanceof Document)
156
+ return e;
158
157
  }
159
158
  return rt(t);
160
159
  }
@@ -162,36 +161,36 @@ function be(t) {
162
161
  return t.matchMedia("(prefers-reduced-motion: reduce)").matches;
163
162
  }
164
163
  function xe(t) {
165
- const n = "input, textarea, select, canvas, [contenteditable]", e = t.cloneNode(!0), i = Array.from(t.querySelectorAll(n));
166
- return Array.from(e.querySelectorAll(n)).forEach((s, r) => {
167
- const c = i[r];
168
- if (ut(s) && ut(c) && (s.type !== "file" && (s.value = c.value), s.type === "radio" && s.name && (s.name = `Cloned__${s.name}`)), ft(s) && ft(c) && c.width > 0 && c.height > 0) {
169
- const l = s.getContext("2d");
170
- l?.drawImage(c, 0, 0);
164
+ const e = "input, textarea, select, canvas, [contenteditable]", n = t.cloneNode(!0), i = Array.from(t.querySelectorAll(e));
165
+ return Array.from(n.querySelectorAll(e)).forEach((s, r) => {
166
+ const l = i[r];
167
+ if (ft(s) && ft(l) && (s.type !== "file" && (s.value = l.value), s.type === "radio" && s.name && (s.name = `Cloned__${s.name}`)), ut(s) && ut(l) && l.width > 0 && l.height > 0) {
168
+ const c = s.getContext("2d");
169
+ c?.drawImage(l, 0, 0);
171
170
  }
172
- }), e;
171
+ }), n;
173
172
  }
174
- function ut(t) {
173
+ function ft(t) {
175
174
  return "value" in t;
176
175
  }
177
- function ft(t) {
176
+ function ut(t) {
178
177
  return t.tagName === "CANVAS";
179
178
  }
180
- function Lt(t, { x: n, y: e }) {
181
- const i = t.elementFromPoint(n, e);
182
- if (Ft(i)) {
179
+ function Ft(t, { x: e, y: n }) {
180
+ const i = t.elementFromPoint(e, n);
181
+ if (Ot(i)) {
183
182
  const { contentDocument: o } = i;
184
183
  if (o) {
185
184
  const { left: s, top: r } = i.getBoundingClientRect();
186
- return Lt(o, {
187
- x: n - s,
188
- y: e - r
185
+ return Ft(o, {
186
+ x: e - s,
187
+ y: n - r
189
188
  });
190
189
  }
191
190
  }
192
191
  return i;
193
192
  }
194
- function Ft(t) {
193
+ function Ot(t) {
195
194
  return t?.tagName === "IFRAME";
196
195
  }
197
196
  var Te = /* @__PURE__ */ new WeakMap();
@@ -209,236 +208,239 @@ var Re = class {
209
208
  constructor() {
210
209
  this.entries = /* @__PURE__ */ new Set(), this.clear = () => {
211
210
  for (const t of this.entries) {
212
- const [n, { type: e, listener: i, options: o }] = t;
213
- n.removeEventListener(e, i, o);
211
+ const [e, { type: n, listener: i, options: o }] = t;
212
+ e.removeEventListener(n, i, o);
214
213
  }
215
214
  this.entries.clear();
216
215
  };
217
216
  }
218
- bind(t, n) {
219
- const e = Array.isArray(t) ? t : [t], i = Array.isArray(n) ? n : [n], o = [];
220
- for (const s of e)
221
- for (const r of i) {
222
- const { type: c, listener: l, options: a } = r, u = [s, r];
223
- s.addEventListener(c, l, a), this.entries.add(u), o.push(u);
217
+ bind(t, e) {
218
+ const n = Array.isArray(t) ? t : [t], i = Array.isArray(e) ? e : [e], o = [];
219
+ for (const r of n)
220
+ for (const l of i) {
221
+ const { type: c, listener: a, options: f } = l, h = [r, l];
222
+ r.addEventListener(c, a, f), this.entries.add(h), o.push(h);
224
223
  }
224
+ const s = this.entries;
225
225
  return function() {
226
- for (const [r, { type: c, listener: l, options: a }] of o)
227
- r.removeEventListener(c, l, a);
226
+ for (const l of o) {
227
+ const [c, { type: a, listener: f, options: h }] = l;
228
+ c.removeEventListener(a, f, h), s.delete(l);
229
+ }
228
230
  };
229
231
  }
230
232
  };
231
233
  function H(t) {
232
- const n = t?.ownerDocument.defaultView;
233
- if (n && n.self !== n.parent)
234
- return n.frameElement;
234
+ const e = t?.ownerDocument.defaultView;
235
+ if (e && e.self !== e.parent)
236
+ return e.frameElement;
235
237
  }
236
- function Pt(t) {
237
- const n = /* @__PURE__ */ new Set();
238
- let e = H(t);
239
- for (; e; )
240
- n.add(e), e = H(e);
241
- return n;
238
+ function It(t) {
239
+ const e = /* @__PURE__ */ new Set();
240
+ let n = H(t);
241
+ for (; n; )
242
+ e.add(n), n = H(n);
243
+ return e;
242
244
  }
243
- function Vt(t, n) {
244
- const e = setTimeout(t, n);
245
- return () => clearTimeout(e);
245
+ function Xt(t, e) {
246
+ const n = setTimeout(t, e);
247
+ return () => clearTimeout(n);
246
248
  }
247
- function Tt(t, n) {
248
- const e = () => performance.now();
249
+ function _t(t, e) {
250
+ const n = () => performance.now();
249
251
  let i, o;
250
252
  return function(...s) {
251
253
  const r = this;
252
- o ? (i?.(), i = Vt(
254
+ o ? (i?.(), i = Xt(
253
255
  () => {
254
- t.apply(r, s), o = e();
256
+ t.apply(r, s), o = n();
255
257
  },
256
- n - (e() - o)
257
- )) : (t.apply(r, s), o = e());
258
+ e - (n() - o)
259
+ )) : (t.apply(r, s), o = n());
258
260
  };
259
261
  }
260
- function Xt(t, n) {
261
- return t === n ? !0 : !t || !n ? !1 : t.top == n.top && t.left == n.left && t.right == n.right && t.bottom == n.bottom;
262
+ function Vt(t, e) {
263
+ return t === e ? !0 : !t || !e ? !1 : t.top == e.top && t.left == e.left && t.right == e.right && t.bottom == e.bottom;
262
264
  }
263
- function Yt(t, n = t.getBoundingClientRect()) {
264
- const { width: e, height: i } = D(
265
+ function Yt(t, e = t.getBoundingClientRect()) {
266
+ const { width: n, height: i } = B(
265
267
  t,
266
- n
268
+ e
267
269
  );
268
- return e > 0 && i > 0;
270
+ return n > 0 && i > 0;
269
271
  }
270
- var Ot = wt ? ResizeObserver : class {
272
+ var Dt = bt ? ResizeObserver : class {
271
273
  observe() {
272
274
  }
273
275
  unobserve() {
274
276
  }
275
277
  disconnect() {
276
278
  }
277
- }, z, zt = class extends Ot {
279
+ }, D, zt = class extends Dt {
278
280
  constructor(t) {
279
- super((n) => {
280
- if (!f(this, z)) {
281
- R(this, z, !0);
281
+ super((e) => {
282
+ if (!u(this, D)) {
283
+ R(this, D, !0);
282
284
  return;
283
285
  }
284
- t(n, this);
285
- }), _(this, z, !1);
286
+ t(e, this);
287
+ }), _(this, D, !1);
286
288
  }
287
289
  };
288
- z = /* @__PURE__ */ new WeakMap();
289
- var ht = Array.from({ length: 100 }, (t, n) => n / 100), _t = 75, A, $, S, W, C, T, F, I, K, Rt, Mt, Et = class {
290
- constructor(t, n, e = {
290
+ D = /* @__PURE__ */ new WeakMap();
291
+ var ht = Array.from({ length: 100 }, (t, e) => e / 100), Rt = 75, k, $, S, A, N, T, O, L, K, Mt, Et, St = class {
292
+ constructor(t, e, n = {
291
293
  debug: !1,
292
294
  skipInitial: !1
293
295
  }) {
294
- this.element = t, this.callback = n, _(this, K), this.disconnect = () => {
295
- var s, r, c;
296
- R(this, F, !0), (s = f(this, S)) == null || s.disconnect(), (r = f(this, W)) == null || r.disconnect(), f(this, C).disconnect(), (c = f(this, T)) == null || c.remove();
297
- }, _(this, A, !0), _(this, $), _(this, S), _(this, W), _(this, C), _(this, T), _(this, F, !1), _(this, I, Tt(() => {
298
- var s, r, c;
299
- const { element: l } = this;
300
- if ((s = f(this, W)) == null || s.disconnect(), f(this, F) || !f(this, A) || !l.isConnected)
296
+ this.element = t, this.callback = e, _(this, K), this.disconnect = () => {
297
+ var s, r, l;
298
+ R(this, O, !0), (s = u(this, S)) == null || s.disconnect(), (r = u(this, A)) == null || r.disconnect(), u(this, N).disconnect(), (l = u(this, T)) == null || l.remove();
299
+ }, _(this, k, !0), _(this, $), _(this, S), _(this, A), _(this, N), _(this, T), _(this, O, !1), _(this, L, _t(() => {
300
+ var s, r, l;
301
+ const { element: c } = this;
302
+ if ((s = u(this, A)) == null || s.disconnect(), u(this, O) || !u(this, k) || !c.isConnected)
301
303
  return;
302
- const a = (r = l.ownerDocument) != null ? r : document, { innerHeight: u, innerWidth: h } = (c = a.defaultView) != null ? c : window, v = l.getBoundingClientRect(), y = D(l, v), { top: w, left: d, bottom: x, right: b } = y, p = -Math.floor(w), g = -Math.floor(d), M = -Math.floor(h - b), m = -Math.floor(u - x), G = `${p}px ${M}px ${m}px ${g}px`;
303
- this.boundingClientRect = v, R(this, W, new IntersectionObserver(
304
+ const a = (r = c.ownerDocument) != null ? r : document, { innerHeight: f, innerWidth: h } = (l = a.defaultView) != null ? l : window, v = c.getBoundingClientRect(), m = B(c, v), { top: w, left: d, bottom: x, right: b } = m, p = -Math.floor(w), y = -Math.floor(d), M = -Math.floor(h - b), g = -Math.floor(f - x), G = `${p}px ${M}px ${g}px ${y}px`;
305
+ this.boundingClientRect = v, R(this, A, new IntersectionObserver(
304
306
  (J) => {
305
- const [Q] = J, { intersectionRect: At } = Q;
307
+ const [Q] = J, { intersectionRect: Wt } = Q;
306
308
  (Q.intersectionRatio !== 1 ? Q.intersectionRatio : it.intersectionRatio(
307
- At,
308
- D(l)
309
- )) !== 1 && f(this, I).call(this);
309
+ Wt,
310
+ B(c)
311
+ )) !== 1 && u(this, L).call(this);
310
312
  },
311
313
  {
312
314
  threshold: ht,
313
315
  rootMargin: G,
314
316
  root: a
315
317
  }
316
- )), f(this, W).observe(l), gt(this, K, Rt).call(this);
317
- }, _t)), this.boundingClientRect = t.getBoundingClientRect(), R(this, A, Yt(t, this.boundingClientRect));
318
+ )), u(this, A).observe(c), yt(this, K, Mt).call(this);
319
+ }, Rt)), this.boundingClientRect = t.getBoundingClientRect(), R(this, k, Yt(t, this.boundingClientRect));
318
320
  let i = !0;
319
321
  this.callback = (s) => {
320
- i && (i = !1, e.skipInitial) || n(s);
322
+ i && (i = !1, n.skipInitial) || e(s);
321
323
  };
322
324
  const o = t.ownerDocument;
323
- e?.debug && (R(this, T, document.createElement("div")), f(this, T).style.background = "rgba(0,0,0,0.15)", f(this, T).style.position = "fixed", f(this, T).style.pointerEvents = "none", o.body.appendChild(f(this, T))), R(this, C, new IntersectionObserver(
325
+ n?.debug && (R(this, T, document.createElement("div")), u(this, T).style.background = "rgba(0,0,0,0.15)", u(this, T).style.position = "fixed", u(this, T).style.pointerEvents = "none", o.body.appendChild(u(this, T))), R(this, N, new IntersectionObserver(
324
326
  (s) => {
325
- var r, c;
326
- const l = s[s.length - 1], { boundingClientRect: a, isIntersecting: u } = l, { width: h, height: v } = a, y = f(this, A);
327
- R(this, A, u), !(!h && !v) && (y && !u ? ((r = f(this, W)) == null || r.disconnect(), this.callback(null), (c = f(this, S)) == null || c.disconnect(), R(this, S, void 0), f(this, T) && (f(this, T).style.visibility = "hidden")) : f(this, I).call(this), u && !f(this, S) && (R(this, S, new zt(f(this, I))), f(this, S).observe(t)));
327
+ var r, l;
328
+ const c = s[s.length - 1], { boundingClientRect: a, isIntersecting: f } = c, { width: h, height: v } = a, m = u(this, k);
329
+ R(this, k, f), !(!h && !v) && (m && !f ? ((r = u(this, A)) == null || r.disconnect(), this.callback(null), (l = u(this, S)) == null || l.disconnect(), R(this, S, void 0), u(this, T) && (u(this, T).style.visibility = "hidden")) : u(this, L).call(this), f && !u(this, S) && (R(this, S, new zt(u(this, L))), u(this, S).observe(t)));
328
330
  },
329
331
  {
330
332
  threshold: ht,
331
333
  root: o
332
334
  }
333
- )), f(this, A) && !e.skipInitial && this.callback(this.boundingClientRect), f(this, C).observe(t);
335
+ )), u(this, k) && !n.skipInitial && this.callback(this.boundingClientRect), u(this, N).observe(t);
334
336
  }
335
337
  };
336
- A = /* @__PURE__ */ new WeakMap();
338
+ k = /* @__PURE__ */ new WeakMap();
337
339
  $ = /* @__PURE__ */ new WeakMap();
338
340
  S = /* @__PURE__ */ new WeakMap();
339
- W = /* @__PURE__ */ new WeakMap();
340
- C = /* @__PURE__ */ new WeakMap();
341
+ A = /* @__PURE__ */ new WeakMap();
342
+ N = /* @__PURE__ */ new WeakMap();
341
343
  T = /* @__PURE__ */ new WeakMap();
342
- F = /* @__PURE__ */ new WeakMap();
343
- I = /* @__PURE__ */ new WeakMap();
344
+ O = /* @__PURE__ */ new WeakMap();
345
+ L = /* @__PURE__ */ new WeakMap();
344
346
  K = /* @__PURE__ */ new WeakSet();
345
- Rt = function() {
346
- f(this, F) || (gt(this, K, Mt).call(this), !Xt(this.boundingClientRect, f(this, $)) && (this.callback(this.boundingClientRect), R(this, $, this.boundingClientRect)));
347
- };
348
347
  Mt = function() {
349
- if (f(this, T)) {
350
- const { top: t, left: n, width: e, height: i } = D(
348
+ u(this, O) || (yt(this, K, Et).call(this), !Vt(this.boundingClientRect, u(this, $)) && (this.callback(this.boundingClientRect), R(this, $, this.boundingClientRect)));
349
+ };
350
+ Et = function() {
351
+ if (u(this, T)) {
352
+ const { top: t, left: e, width: n, height: i } = B(
351
353
  this.element
352
354
  );
353
- f(this, T).style.overflow = "hidden", f(this, T).style.visibility = "visible", f(this, T).style.top = `${Math.floor(t)}px`, f(this, T).style.left = `${Math.floor(n)}px`, f(this, T).style.width = `${Math.floor(e)}px`, f(this, T).style.height = `${Math.floor(i)}px`;
355
+ u(this, T).style.overflow = "hidden", u(this, T).style.visibility = "visible", u(this, T).style.top = `${Math.floor(t)}px`, u(this, T).style.left = `${Math.floor(e)}px`, u(this, T).style.width = `${Math.floor(n)}px`, u(this, T).style.height = `${Math.floor(i)}px`;
354
356
  }
355
357
  };
356
- var Y = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap();
357
- function Bt(t, n) {
358
- let e = Y.get(t);
359
- return e || (e = { disconnect: new Et(
358
+ var V = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
359
+ function Bt(t, e) {
360
+ let n = V.get(t);
361
+ return n || (n = { disconnect: new St(
360
362
  t,
361
363
  (o) => {
362
- const s = Y.get(t);
364
+ const s = V.get(t);
363
365
  s && s.callbacks.forEach((r) => r(o));
364
366
  },
365
367
  { skipInitial: !0 }
366
- ).disconnect, callbacks: /* @__PURE__ */ new Set() }), e.callbacks.add(n), Y.set(t, e), () => {
367
- e.callbacks.delete(n), e.callbacks.size === 0 && (Y.delete(t), e.disconnect());
368
+ ).disconnect, callbacks: /* @__PURE__ */ new Set() }), n.callbacks.add(e), V.set(t, n), () => {
369
+ n.callbacks.delete(e), n.callbacks.size === 0 && (V.delete(t), n.disconnect());
368
370
  };
369
371
  }
370
- function Dt(t, n) {
371
- const e = /* @__PURE__ */ new Set();
372
+ function Ht(t, e) {
373
+ const n = /* @__PURE__ */ new Set();
372
374
  for (const i of t) {
373
- const o = Bt(i, n);
374
- e.add(o);
375
+ const o = Bt(i, e);
376
+ n.add(o);
375
377
  }
376
- return () => e.forEach((i) => i());
378
+ return () => n.forEach((i) => i());
377
379
  }
378
- function Ht(t, n) {
379
- var e;
380
+ function $t(t, e) {
381
+ var n;
380
382
  const i = t.ownerDocument;
381
- if (!O.has(i)) {
382
- const r = new AbortController(), c = /* @__PURE__ */ new Set();
383
+ if (!Y.has(i)) {
384
+ const r = new AbortController(), l = /* @__PURE__ */ new Set();
383
385
  document.addEventListener(
384
386
  "scroll",
385
- (l) => c.forEach((a) => a(l)),
387
+ (c) => l.forEach((a) => a(c)),
386
388
  {
387
389
  capture: !0,
388
390
  passive: !0,
389
391
  signal: r.signal
390
392
  }
391
- ), O.set(i, { disconnect: () => r.abort(), listeners: c });
393
+ ), Y.set(i, { disconnect: () => r.abort(), listeners: l });
392
394
  }
393
- const { listeners: o, disconnect: s } = (e = O.get(i)) != null ? e : {};
395
+ const { listeners: o, disconnect: s } = (n = Y.get(i)) != null ? n : {};
394
396
  return !o || !s ? () => {
395
- } : (o.add(n), () => {
396
- o.delete(n), o.size === 0 && (s(), O.delete(i));
397
+ } : (o.add(e), () => {
398
+ o.delete(e), o.size === 0 && (s(), Y.delete(i));
397
399
  });
398
400
  }
399
- var N, L, B, et, Ee = class {
400
- constructor(t, n, e) {
401
- this.callback = n, _(this, N), _(this, L, !1), _(this, B), _(this, et, Tt((r) => {
402
- if (!f(this, L) && r.target && "contains" in r.target && typeof r.target.contains == "function") {
403
- for (const c of f(this, B))
404
- if (r.target.contains(c)) {
405
- this.callback(f(this, N).boundingClientRect);
401
+ var P, F, z, et, Ee = class {
402
+ constructor(t, e, n) {
403
+ this.callback = e, _(this, P), _(this, F, !1), _(this, z), _(this, et, _t((r) => {
404
+ if (!u(this, F) && r.target && "contains" in r.target && typeof r.target.contains == "function") {
405
+ for (const l of u(this, z))
406
+ if (r.target.contains(l)) {
407
+ this.callback(u(this, P).boundingClientRect);
406
408
  break;
407
409
  }
408
410
  }
409
- }, _t));
410
- const i = Pt(t), o = Dt(i, n), s = Ht(t, f(this, et));
411
- R(this, B, i), R(this, N, new Et(t, n, e)), this.disconnect = () => {
412
- f(this, L) || (R(this, L, !0), o(), s(), f(this, N).disconnect());
411
+ }, Rt));
412
+ const i = It(t), o = Ht(i, e), s = $t(t, u(this, et));
413
+ R(this, z, i), R(this, P, new St(t, e, n)), this.disconnect = () => {
414
+ u(this, F) || (R(this, F, !0), o(), s(), u(this, P).disconnect());
413
415
  };
414
416
  }
415
417
  };
416
- N = /* @__PURE__ */ new WeakMap();
417
- L = /* @__PURE__ */ new WeakMap();
418
- B = /* @__PURE__ */ new WeakMap();
418
+ P = /* @__PURE__ */ new WeakMap();
419
+ F = /* @__PURE__ */ new WeakMap();
420
+ z = /* @__PURE__ */ new WeakMap();
419
421
  et = /* @__PURE__ */ new WeakMap();
420
- function $t(t) {
422
+ function Kt(t) {
421
423
  return "showPopover" in t && "hidePopover" in t && typeof t.showPopover == "function" && typeof t.hidePopover == "function";
422
424
  }
423
425
  function Se(t) {
424
426
  try {
425
- $t(t) && t.isConnected && t.hasAttribute("popover") && // This selector can throw an error in browsers that don't support it
427
+ Kt(t) && t.isConnected && t.hasAttribute("popover") && // This selector can throw an error in browsers that don't support it
426
428
  !t.matches(":popover-open") && t.showPopover();
427
429
  } catch {
428
430
  }
429
431
  }
430
432
  function dt(t) {
431
- return !wt || !t ? !1 : t === rt(t).scrollingElement;
433
+ return !bt || !t ? !1 : t === rt(t).scrollingElement;
432
434
  }
433
- function St(t) {
434
- var n, e;
435
- const i = E(t), o = dt(t) ? Ct(t) : j(t), s = i.visualViewport, r = dt(t) ? {
436
- height: (n = s?.height) != null ? n : i.innerHeight,
437
- width: (e = s?.width) != null ? e : i.innerWidth
435
+ function kt(t) {
436
+ var e, n;
437
+ const i = E(t), o = dt(t) ? Nt(t) : j(t), s = i.visualViewport, r = dt(t) ? {
438
+ height: (e = s?.height) != null ? e : i.innerHeight,
439
+ width: (n = s?.width) != null ? n : i.innerWidth
438
440
  } : {
439
441
  height: t.clientHeight,
440
442
  width: t.clientWidth
441
- }, c = {
443
+ }, l = {
442
444
  current: {
443
445
  x: t.scrollLeft,
444
446
  y: t.scrollTop
@@ -447,157 +449,153 @@ function St(t) {
447
449
  x: t.scrollWidth - r.width,
448
450
  y: t.scrollHeight - r.height
449
451
  }
450
- }, l = c.current.y <= 0, a = c.current.x <= 0, u = c.current.y >= c.max.y, h = c.current.x >= c.max.x;
452
+ }, c = l.current.y <= 0, a = l.current.x <= 0, f = l.current.y >= l.max.y, h = l.current.x >= l.max.x;
451
453
  return {
452
454
  rect: o,
453
- position: c,
454
- isTop: l,
455
+ position: l,
456
+ isTop: c,
455
457
  isLeft: a,
456
- isBottom: u,
458
+ isBottom: f,
457
459
  isRight: h
458
460
  };
459
461
  }
460
- function ke(t, n) {
461
- const { isTop: e, isBottom: i, isLeft: o, isRight: s, position: r } = St(t), { x: c, y: l } = n ?? { x: 0, y: 0 }, a = !e && r.current.y + l > 0, u = !i && r.current.y + l < r.max.y, h = !o && r.current.x + c > 0, v = !s && r.current.x + c < r.max.x;
462
+ function ke(t, e) {
463
+ const { isTop: n, isBottom: i, isLeft: o, isRight: s, position: r } = kt(t), { x: l, y: c } = e ?? { x: 0, y: 0 }, a = !n && r.current.y + c > 0, f = !i && r.current.y + c < r.max.y, h = !o && r.current.x + l > 0, v = !s && r.current.x + l < r.max.x;
462
464
  return {
463
465
  top: a,
464
- bottom: u,
466
+ bottom: f,
465
467
  left: h,
466
468
  right: v,
467
469
  x: h || v,
468
- y: a || u
470
+ y: a || f
469
471
  };
470
472
  }
471
- var ct = class {
473
+ var lt = class {
472
474
  constructor(t) {
473
475
  this.scheduler = t, this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set(), this.flush = () => {
474
- const { tasks: n, resolvers: e } = this;
476
+ const { tasks: e, resolvers: n } = this;
475
477
  this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set();
476
- for (const i of n)
477
- i();
478
478
  for (const i of e)
479
479
  i();
480
+ for (const i of n)
481
+ i();
480
482
  };
481
483
  }
482
484
  schedule(t) {
483
- return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((n) => this.resolvers.add(n));
485
+ return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((e) => this.resolvers.add(e));
484
486
  }
485
- }, Ae = new ct((t) => {
487
+ }, Ae = new lt((t) => {
486
488
  typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : t();
487
- }), Kt = new ct((t) => setTimeout(t, 50)), U = /* @__PURE__ */ new Map(), Ut = U.clear.bind(U);
488
- function k(t, n = !1) {
489
- if (!n) return pt(t);
490
- let e = U.get(t);
491
- return e || (e = pt(t), U.set(t, e), Kt.schedule(Ut), e);
489
+ }), Ut = new lt((t) => setTimeout(t, 50)), U = /* @__PURE__ */ new Map(), qt = U.clear.bind(U);
490
+ function W(t, e = !1) {
491
+ if (!e) return pt(t);
492
+ let n = U.get(t);
493
+ return n || (n = pt(t), U.set(t, n), Ut.schedule(qt), n);
492
494
  }
493
495
  function pt(t) {
494
496
  return E(t).getComputedStyle(t);
495
497
  }
496
- function qt(t, n = k(t, !0)) {
497
- return n.position === "fixed" || n.position === "sticky";
498
+ function jt(t, e = W(t, !0)) {
499
+ return e.position === "fixed" || e.position === "sticky";
498
500
  }
499
- function jt(t, n = k(t, !0)) {
500
- const e = /(auto|scroll|overlay)/;
501
+ function Gt(t, e = W(t, !0)) {
502
+ const n = /(auto|scroll|overlay)/;
501
503
  return ["overflow", "overflowX", "overflowY"].some((o) => {
502
- const s = n[o];
503
- return typeof s == "string" ? e.test(s) : !1;
504
+ const s = e[o];
505
+ return typeof s == "string" ? n.test(s) : !1;
504
506
  });
505
507
  }
506
- var Gt = {
508
+ var Jt = {
507
509
  excludeElement: !0,
508
510
  escapeShadowDOM: !0
509
511
  };
510
- function Jt(t, n = Gt) {
511
- const { limit: e, excludeElement: i, escapeShadowDOM: o } = n, s = /* @__PURE__ */ new Set();
512
- function r(c) {
513
- if (e != null && s.size >= e || !c)
512
+ function Qt(t, e = Jt) {
513
+ const { limit: n, excludeElement: i, escapeShadowDOM: o } = e, s = /* @__PURE__ */ new Set();
514
+ function r(l) {
515
+ if (n != null && s.size >= n || !l)
514
516
  return s;
515
- if (yt(c) && c.scrollingElement != null && !s.has(c.scrollingElement))
516
- return s.add(c.scrollingElement), s;
517
- if (o && xt(c))
518
- return r(c.host);
519
- if (!V(c))
520
- return mt(c) ? r(c.parentElement) : s;
521
- if (s.has(c))
517
+ if (mt(l) && l.scrollingElement != null && !s.has(l.scrollingElement))
518
+ return s.add(l.scrollingElement), s;
519
+ if (o && Tt(l))
520
+ return r(l.host);
521
+ if (!C(l))
522
+ return wt(l) ? r(l.parentElement) : s;
523
+ if (s.has(l))
522
524
  return s;
523
- const l = k(c, !0);
524
- if (i && c === t || jt(c, l) && s.add(c), qt(c, l)) {
525
- const { scrollingElement: a } = c.ownerDocument;
525
+ const c = W(l, !0);
526
+ if (i && l === t || Gt(l, c) && s.add(l), jt(l, c)) {
527
+ const { scrollingElement: a } = l.ownerDocument;
526
528
  return a && s.add(a), s;
527
529
  }
528
- return r(c.parentNode);
530
+ return r(l.parentNode);
529
531
  }
530
532
  return t ? r(t) : s;
531
533
  }
532
- function Qt(t) {
533
- const [n] = Jt(t, { limit: 1 });
534
- return n ?? null;
535
- }
536
- function kt(t, n = window.frameElement) {
537
- const e = {
534
+ function At(t, e = window.frameElement) {
535
+ const n = {
538
536
  x: 0,
539
537
  y: 0,
540
538
  scaleX: 1,
541
539
  scaleY: 1
542
540
  };
543
- if (!t) return e;
541
+ if (!t) return n;
544
542
  let i = H(t);
545
543
  for (; i; ) {
546
- if (i === n)
547
- return e;
544
+ if (i === e)
545
+ return n;
548
546
  const o = j(i), { x: s, y: r } = Zt(i, o);
549
- e.x = e.x + o.left, e.y = e.y + o.top, e.scaleX = e.scaleX * s, e.scaleY = e.scaleY * r, i = H(i);
547
+ n.x = n.x + o.left, n.y = n.y + o.top, n.scaleX = n.scaleX * s, n.scaleY = n.scaleY * r, i = H(i);
550
548
  }
551
- return e;
549
+ return n;
552
550
  }
553
- function Zt(t, n = j(t)) {
554
- const e = Math.round(n.width), i = Math.round(n.height);
555
- if (V(t))
551
+ function Zt(t, e = j(t)) {
552
+ const n = Math.round(e.width), i = Math.round(e.height);
553
+ if (C(t))
556
554
  return {
557
- x: e / t.offsetWidth,
555
+ x: n / t.offsetWidth,
558
556
  y: i / t.offsetHeight
559
557
  };
560
- const o = k(t, !0);
558
+ const o = W(t, !0);
561
559
  return {
562
- x: (parseFloat(o.width) || e) / e,
560
+ x: (parseFloat(o.width) || n) / n,
563
561
  y: (parseFloat(o.height) || i) / i
564
562
  };
565
563
  }
566
564
  function te(t) {
567
565
  if (t === "none")
568
566
  return null;
569
- const n = t.split(" "), e = parseFloat(n[0]), i = parseFloat(n[1]);
570
- return isNaN(e) && isNaN(i) ? null : {
571
- x: isNaN(e) ? i : e,
572
- y: isNaN(i) ? e : i
567
+ const e = t.split(" "), n = parseFloat(e[0]), i = parseFloat(e[1]);
568
+ return isNaN(n) && isNaN(i) ? null : {
569
+ x: isNaN(n) ? i : n,
570
+ y: isNaN(i) ? n : i
573
571
  };
574
572
  }
575
573
  function nt(t) {
576
574
  if (t === "none")
577
575
  return null;
578
- const [n, e, i = "0"] = t.split(" "), o = { x: parseFloat(n), y: parseFloat(e), z: parseInt(i, 10) };
576
+ const [e, n, i = "0"] = t.split(" "), o = { x: parseFloat(e), y: parseFloat(n), z: parseInt(i, 10) };
579
577
  return isNaN(o.x) && isNaN(o.y) ? null : {
580
578
  x: isNaN(o.x) ? 0 : o.x,
581
579
  y: isNaN(o.y) ? 0 : o.y,
582
580
  z: isNaN(o.z) ? 0 : o.z
583
581
  };
584
582
  }
585
- function lt(t) {
586
- var n, e, i, o, s, r, c, l, a;
587
- const { scale: u, transform: h, translate: v } = t, y = te(u), w = nt(v), d = ee(h);
588
- if (!d && !y && !w)
583
+ function ct(t) {
584
+ var e, n, i, o, s, r, l, c, a;
585
+ const { scale: f, transform: h, translate: v } = t, m = te(f), w = nt(v), d = ee(h);
586
+ if (!d && !m && !w)
589
587
  return null;
590
588
  const x = {
591
- x: (n = y?.x) != null ? n : 1,
592
- y: (e = y?.y) != null ? e : 1
589
+ x: (e = m?.x) != null ? e : 1,
590
+ y: (n = m?.y) != null ? n : 1
593
591
  }, b = {
594
592
  x: (i = w?.x) != null ? i : 0,
595
593
  y: (o = w?.y) != null ? o : 0
596
594
  }, p = {
597
595
  x: (s = d?.x) != null ? s : 0,
598
596
  y: (r = d?.y) != null ? r : 0,
599
- scaleX: (c = d?.scaleX) != null ? c : 1,
600
- scaleY: (l = d?.scaleY) != null ? l : 1
597
+ scaleX: (l = d?.scaleX) != null ? l : 1,
598
+ scaleY: (c = d?.scaleY) != null ? c : 1
601
599
  };
602
600
  return {
603
601
  x: b.x + p.x,
@@ -609,20 +607,20 @@ function lt(t) {
609
607
  }
610
608
  function ee(t) {
611
609
  if (t.startsWith("matrix3d(")) {
612
- const n = t.slice(9, -1).split(/, /);
610
+ const e = t.slice(9, -1).split(/, /);
613
611
  return {
614
- x: +n[12],
615
- y: +n[13],
616
- scaleX: +n[0],
617
- scaleY: +n[5]
612
+ x: +e[12],
613
+ y: +e[13],
614
+ scaleX: +e[0],
615
+ scaleY: +e[5]
618
616
  };
619
617
  } else if (t.startsWith("matrix(")) {
620
- const n = t.slice(7, -1).split(/, /);
618
+ const e = t.slice(7, -1).split(/, /);
621
619
  return {
622
- x: +n[4],
623
- y: +n[5],
624
- scaleX: +n[0],
625
- scaleY: +n[3]
620
+ x: +e[4],
621
+ y: +e[5],
622
+ scaleX: +e[0],
623
+ scaleY: +e[3]
626
624
  };
627
625
  }
628
626
  return null;
@@ -630,88 +628,108 @@ function ee(t) {
630
628
  var ne = /* @__PURE__ */ ((t) => (t[t.Idle = 0] = "Idle", t[t.Forward = 1] = "Forward", t[t.Reverse = -1] = "Reverse", t))(ne || {}), ie = {
631
629
  x: 0.2,
632
630
  y: 0.2
633
- }, oe = {
631
+ }, se = {
634
632
  x: 10,
635
633
  y: 10
636
634
  };
637
- function We(t, n, e, i = 25, o = ie, s = oe) {
638
- const { x: r, y: c } = n, { rect: l, isTop: a, isBottom: u, isLeft: h, isRight: v } = St(t), y = kt(t), w = k(t, !0), d = lt(w), x = d !== null ? d?.scaleX < 0 : !1, b = d !== null ? d?.scaleY < 0 : !1, p = new it(
639
- l.left * y.scaleX + y.x,
640
- l.top * y.scaleY + y.y,
641
- l.width * y.scaleX,
642
- l.height * y.scaleY
643
- ), g = {
635
+ function We(t, e, n, i = 25, o = ie, s = se) {
636
+ const { x: r, y: l } = e, { rect: c, isTop: a, isBottom: f, isLeft: h, isRight: v } = kt(t), m = At(t), w = W(t, !0), d = ct(w), x = d !== null ? d?.scaleX < 0 : !1, b = d !== null ? d?.scaleY < 0 : !1, p = new it(
637
+ c.left * m.scaleX + m.x,
638
+ c.top * m.scaleY + m.y,
639
+ c.width * m.scaleX,
640
+ c.height * m.scaleY
641
+ ), y = {
644
642
  x: 0,
645
643
  y: 0
646
644
  /* Idle */
647
645
  }, M = {
648
646
  x: 0,
649
647
  y: 0
650
- }, m = {
648
+ }, g = {
651
649
  height: p.height * o.y,
652
650
  width: p.width * o.x
653
651
  };
654
- return (!a || b && !u) && c <= p.top + m.height && e?.y !== 1 && r >= p.left - s.x && r <= p.right + s.x ? (g.y = b ? 1 : -1, M.y = i * Math.abs(
655
- (p.top + m.height - c) / m.height
656
- )) : (!u || b && !a) && c >= p.bottom - m.height && e?.y !== -1 && r >= p.left - s.x && r <= p.right + s.x && (g.y = b ? -1 : 1, M.y = i * Math.abs(
657
- (p.bottom - m.height - c) / m.height
658
- )), (!v || x && !h) && r >= p.right - m.width && e?.x !== -1 && c >= p.top - s.y && c <= p.bottom + s.y ? (g.x = x ? -1 : 1, M.x = i * Math.abs(
659
- (p.right - m.width - r) / m.width
660
- )) : (!h || x && !v) && r <= p.left + m.width && e?.x !== 1 && c >= p.top - s.y && c <= p.bottom + s.y && (g.x = x ? 1 : -1, M.x = i * Math.abs(
661
- (p.left + m.width - r) / m.width
652
+ return g.height > 0 && (!a || b && !f) && l <= p.top + g.height && n?.y !== 1 && r >= p.left - s.x && r <= p.right + s.x ? (y.y = b ? 1 : -1, M.y = i * Math.abs(
653
+ (p.top + g.height - l) / g.height
654
+ )) : g.height > 0 && (!f || b && !a) && l >= p.bottom - g.height && n?.y !== -1 && r >= p.left - s.x && r <= p.right + s.x && (y.y = b ? -1 : 1, M.y = i * Math.abs(
655
+ (p.bottom - g.height - l) / g.height
656
+ )), g.width > 0 && (!v || x && !h) && r >= p.right - g.width && n?.x !== -1 && l >= p.top - s.y && l <= p.bottom + s.y ? (y.x = x ? -1 : 1, M.x = i * Math.abs(
657
+ (p.right - g.width - r) / g.width
658
+ )) : g.width > 0 && (!h || x && !v) && r <= p.left + g.width && n?.x !== 1 && l >= p.top - s.y && l <= p.bottom + s.y && (y.x = x ? 1 : -1, M.x = i * Math.abs(
659
+ (p.left + g.width - r) / g.width
662
660
  )), {
663
- direction: g,
661
+ direction: y,
664
662
  speed: M
665
663
  };
666
664
  }
667
- function se(t) {
668
- return "scrollIntoViewIfNeeded" in t && typeof t.scrollIntoViewIfNeeded == "function";
669
- }
670
- function Ce(t, n = !1) {
671
- if (se(t)) {
672
- t.scrollIntoViewIfNeeded(n);
665
+ function Ce(t, { block: e = "nearest", inline: n = "nearest" } = {}) {
666
+ if (!C(t))
673
667
  return;
668
+ const i = Qt(t), o = [];
669
+ for (const s of i) {
670
+ if (!C(s))
671
+ continue;
672
+ const { top: r, left: l } = oe(t, s);
673
+ let c = r, a = l;
674
+ for (const f of o)
675
+ c -= f.scrollTop, a -= f.scrollLeft;
676
+ if (e !== "none") {
677
+ const f = c < s.scrollTop, h = c + t.offsetHeight > s.scrollTop + s.clientHeight;
678
+ f !== h && (e === "center" ? s.scrollTop = c - s.clientHeight / 2 + t.offsetHeight / 2 : f ? s.scrollTop = c : s.scrollTop = c + t.offsetHeight - s.clientHeight);
679
+ }
680
+ if (n !== "none") {
681
+ const f = a < s.scrollLeft, h = a + t.offsetWidth > s.scrollLeft + s.clientWidth;
682
+ f !== h && (n === "center" ? s.scrollLeft = a - s.clientWidth / 2 + t.offsetWidth / 2 : f ? s.scrollLeft = a : s.scrollLeft = a + t.offsetWidth - s.clientWidth);
683
+ }
684
+ o.push(s);
674
685
  }
675
- if (!V(t))
676
- return t.scrollIntoView();
677
- var e = Qt(t);
678
- if (!V(e))
679
- return;
680
- const i = k(e, !0), o = parseInt(
681
- i.getPropertyValue("border-top-width")
682
- ), s = parseInt(
683
- i.getPropertyValue("border-left-width")
684
- ), r = t.offsetTop - e.offsetTop < e.scrollTop, c = t.offsetTop - e.offsetTop + t.clientHeight - o > e.scrollTop + e.clientHeight, l = t.offsetLeft - e.offsetLeft < e.scrollLeft, a = t.offsetLeft - e.offsetLeft + t.clientWidth - s > e.scrollLeft + e.clientWidth, u = r && !c;
685
- (r || c) && n && (e.scrollTop = t.offsetTop - e.offsetTop - e.clientHeight / 2 - o + t.clientHeight / 2), (l || a) && n && (e.scrollLeft = t.offsetLeft - e.offsetLeft - e.clientWidth / 2 - s + t.clientWidth / 2), (r || c || l || a) && !n && t.scrollIntoView(u);
686
- }
687
- function re(t, n, e) {
688
- const { scaleX: i, scaleY: o, x: s, y: r } = n, c = t.left + s + (1 - i) * parseFloat(e), l = t.top + r + (1 - o) * parseFloat(e.slice(e.indexOf(" ") + 1)), a = i ? t.width * i : t.width, u = o ? t.height * o : t.height;
686
+ }
687
+ function vt(t) {
688
+ let e = 0, n = 0, i = t;
689
+ for (; i; ) {
690
+ e += i.offsetTop, n += i.offsetLeft;
691
+ const o = i.offsetParent;
692
+ if (!C(o))
693
+ break;
694
+ e += o.clientTop, n += o.clientLeft, i = o;
695
+ }
696
+ return { top: e, left: n };
697
+ }
698
+ function oe(t, e) {
699
+ const n = vt(t), i = vt(e);
700
+ return {
701
+ top: n.top - i.top - e.clientTop,
702
+ left: n.left - i.left - e.clientLeft
703
+ };
704
+ }
705
+ function re(t, e, n) {
706
+ const { scaleX: i, scaleY: o, x: s, y: r } = e, l = t.left + s + (1 - i) * parseFloat(n), c = t.top + r + (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), a = i ? t.width * i : t.width, f = o ? t.height * o : t.height;
689
707
  return {
690
708
  width: a,
691
- height: u,
692
- top: l,
693
- right: c + a,
694
- bottom: l + u,
695
- left: c
709
+ height: f,
710
+ top: c,
711
+ right: l + a,
712
+ bottom: c + f,
713
+ left: l
696
714
  };
697
715
  }
698
- function ce(t, n, e) {
699
- const { scaleX: i, scaleY: o, x: s, y: r } = n, c = t.left - s - (1 - i) * parseFloat(e), l = t.top - r - (1 - o) * parseFloat(e.slice(e.indexOf(" ") + 1)), a = i ? t.width / i : t.width, u = o ? t.height / o : t.height;
716
+ function le(t, e, n) {
717
+ const { scaleX: i, scaleY: o, x: s, y: r } = e, l = t.left - s - (1 - i) * parseFloat(n), c = t.top - r - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), a = i ? t.width / i : t.width, f = o ? t.height / o : t.height;
700
718
  return {
701
719
  width: a,
702
- height: u,
703
- top: l,
704
- right: c + a,
705
- bottom: l + u,
706
- left: c
720
+ height: f,
721
+ top: c,
722
+ right: l + a,
723
+ bottom: c + f,
724
+ left: l
707
725
  };
708
726
  }
709
- function Ie({ element: t, keyframes: n, options: e }) {
710
- return t.animate(n, e).finished;
727
+ function Ne({ element: t, keyframes: e, options: n }) {
728
+ return t.animate(e, n).finished;
711
729
  }
712
- function Ne(t, n = k(t).translate, e = !0) {
713
- if (e) {
714
- const i = Wt(
730
+ function Le(t, e = W(t).translate, n = !0) {
731
+ if (n) {
732
+ const i = Ct(
715
733
  t,
716
734
  (o) => "translate" in o
717
735
  );
@@ -724,33 +742,33 @@ function Ne(t, n = k(t).translate, e = !0) {
724
742
  }
725
743
  }
726
744
  }
727
- if (n) {
728
- const i = nt(n);
745
+ if (e) {
746
+ const i = nt(e);
729
747
  if (i)
730
748
  return i;
731
749
  }
732
750
  return { x: 0, y: 0, z: 0 };
733
751
  }
734
- var le = new ct((t) => setTimeout(t, 0)), P = /* @__PURE__ */ new Map(), ae = P.clear.bind(P);
735
- function ue(t) {
736
- const n = t.ownerDocument;
737
- let e = P.get(n);
738
- if (e) return e;
739
- e = n.getAnimations(), P.set(n, e), le.schedule(ae);
740
- const i = e.filter(
752
+ var ce = new lt((t) => setTimeout(t, 0)), I = /* @__PURE__ */ new Map(), ae = I.clear.bind(I);
753
+ function fe(t) {
754
+ const e = t.ownerDocument;
755
+ let n = I.get(e);
756
+ if (n) return n;
757
+ n = e.getAnimations(), I.set(e, n), ce.schedule(ae);
758
+ const i = n.filter(
741
759
  (o) => q(o.effect) && o.effect.target === t
742
760
  );
743
- return P.set(t, i), e;
761
+ return I.set(t, i), n;
744
762
  }
745
- function fe(t, n) {
746
- const e = ue(t).filter((i) => {
763
+ function ue(t, e) {
764
+ const n = fe(t).filter((i) => {
747
765
  var o, s;
748
766
  if (q(i.effect)) {
749
767
  const { target: r } = i.effect;
750
- if ((s = r && ((o = n.isValidTarget) == null ? void 0 : o.call(n, r))) != null ? s : !0)
751
- return i.effect.getKeyframes().some((l) => {
752
- for (const a of n.properties)
753
- if (l[a]) return !0;
768
+ if ((s = r && ((o = e.isValidTarget) == null ? void 0 : o.call(e, r))) != null ? s : !0)
769
+ return i.effect.getKeyframes().some((c) => {
770
+ for (const a of e.properties)
771
+ if (c[a]) return !0;
754
772
  });
755
773
  }
756
774
  }).map((i) => {
@@ -760,71 +778,61 @@ function fe(t, n) {
760
778
  i.currentTime = s;
761
779
  };
762
780
  });
763
- if (e.length > 0)
764
- return () => e.forEach((i) => i?.());
781
+ if (n.length > 0)
782
+ return () => n.forEach((i) => i?.());
765
783
  }
766
- var Le = class extends it {
767
- constructor(t, n = {}) {
768
- var e, i, o, s;
784
+ var Pe = class extends it {
785
+ constructor(t, e = {}) {
786
+ var n, i, o, s;
769
787
  const {
770
- frameTransform: r = kt(t),
771
- ignoreTransforms: c,
772
- getBoundingClientRect: l = j
773
- } = n, a = fe(t, {
788
+ frameTransform: r = At(t),
789
+ ignoreTransforms: l,
790
+ getBoundingClientRect: c = j
791
+ } = e, a = ue(t, {
774
792
  properties: ["transform", "translate", "scale", "width", "height"],
775
- isValidTarget: (m) => (m !== t || bt()) && m.contains(t)
776
- }), u = l(t);
777
- let { top: h, left: v, width: y, height: w } = u, d;
778
- const x = k(t), b = lt(x), p = {
779
- x: (e = b?.scaleX) != null ? e : 1,
793
+ isValidTarget: (g) => (g !== t || xt()) && g.contains(t)
794
+ }), f = c(t);
795
+ let { top: h, left: v, width: m, height: w } = f, d;
796
+ const x = W(t), b = ct(x), p = {
797
+ x: (n = b?.scaleX) != null ? n : 1,
780
798
  y: (i = b?.scaleY) != null ? i : 1
781
- }, g = he(t, x);
782
- a?.(), b && (d = ce(
783
- u,
799
+ }, y = he(t, x);
800
+ a?.(), b && (d = le(
801
+ f,
784
802
  b,
785
803
  x.transformOrigin
786
- ), (c || g) && (h = d.top, v = d.left, y = d.width, w = d.height));
804
+ ), (l || y) && (h = d.top, v = d.left, m = d.width, w = d.height));
787
805
  const M = {
788
- width: (o = d?.width) != null ? o : y,
806
+ width: (o = d?.width) != null ? o : m,
789
807
  height: (s = d?.height) != null ? s : w
790
808
  };
791
- if (g && !c && d) {
792
- const m = re(
809
+ if (y && !l && d) {
810
+ const g = re(
793
811
  d,
794
- g,
812
+ y,
795
813
  x.transformOrigin
796
814
  );
797
- h = m.top, v = m.left, y = m.width, w = m.height, p.x = g.scaleX, p.y = g.scaleY;
815
+ h = g.top, v = g.left, m = g.width, w = g.height, p.x = y.scaleX, p.y = y.scaleY;
798
816
  }
799
- r && (c || (v *= r.scaleX, y *= r.scaleX, h *= r.scaleY, w *= r.scaleY), v += r.x, h += r.y), super(v, h, y, w), this.scale = p, this.intrinsicWidth = M.width, this.intrinsicHeight = M.height;
817
+ r && (l || (v *= r.scaleX, m *= r.scaleX, h *= r.scaleY, w *= r.scaleY), v += r.x, h += r.y), super(v, h, m, w), this.scale = p, this.intrinsicWidth = M.width, this.intrinsicHeight = M.height;
800
818
  }
801
819
  };
802
- function he(t, n) {
803
- var e;
804
- const i = t.getAnimations();
805
- let o = null;
806
- if (!i.length) return null;
807
- for (const s of i) {
808
- if (s.playState !== "running") continue;
809
- const r = q(s.effect) ? s.effect.getKeyframes() : [], c = r[r.length - 1];
810
- if (!c) continue;
811
- const { transform: l, translate: a, scale: u } = c;
812
- if (l || a || u) {
813
- const h = lt({
814
- transform: typeof l == "string" && l ? l : n.transform,
815
- translate: typeof a == "string" && a ? a : n.translate,
816
- scale: typeof u == "string" && u ? u : n.scale
817
- });
818
- h && (o = o ? {
819
- x: o.x + h.x,
820
- y: o.y + h.y,
821
- z: (e = o.z) != null ? e : h.z,
822
- scaleX: o.scaleX * h.scaleX,
823
- scaleY: o.scaleY * h.scaleY
824
- } : h);
825
- }
820
+ function he(t, e) {
821
+ const n = t.getAnimations();
822
+ if (!n.length) return null;
823
+ let i, o, s, r = !1;
824
+ for (const l of n) {
825
+ if (l.playState !== "running") continue;
826
+ const c = q(l.effect) ? l.effect.getKeyframes() : [], a = c[c.length - 1];
827
+ if (!a) continue;
828
+ const { transform: f, translate: h, scale: v } = a;
829
+ typeof f == "string" && f && (i = f, r = !0), typeof h == "string" && h && (o = h, r = !0), typeof v == "string" && v && (s = v, r = !0);
826
830
  }
827
- return o;
831
+ return r ? ct({
832
+ transform: i ?? e.transform,
833
+ translate: o ?? e.translate,
834
+ scale: s ?? e.scale
835
+ }) : null;
828
836
  }
829
837
  function Z(t) {
830
838
  return "style" in t && typeof t.style == "object" && t.style !== null && "setProperty" in t.style && "removeProperty" in t.style && typeof t.style.setProperty == "function" && typeof t.style.removeProperty == "function";
@@ -833,30 +841,30 @@ var Fe = class {
833
841
  constructor(t) {
834
842
  this.element = t, this.initial = /* @__PURE__ */ new Map();
835
843
  }
836
- set(t, n = "") {
837
- const { element: e } = this;
838
- if (Z(e))
844
+ set(t, e = "") {
845
+ const { element: n } = this;
846
+ if (Z(n))
839
847
  for (const [i, o] of Object.entries(t)) {
840
- const s = `${n}${i}`;
841
- this.initial.has(s) || this.initial.set(s, e.style.getPropertyValue(s)), e.style.setProperty(
848
+ const s = `${e}${i}`;
849
+ this.initial.has(s) || this.initial.set(s, n.style.getPropertyValue(s)), n.style.setProperty(
842
850
  s,
843
851
  typeof o == "string" ? o : `${o}px`
844
852
  );
845
853
  }
846
854
  }
847
- remove(t, n = "") {
848
- const { element: e } = this;
849
- if (Z(e))
855
+ remove(t, e = "") {
856
+ const { element: n } = this;
857
+ if (Z(n))
850
858
  for (const i of t) {
851
- const o = `${n}${i}`;
852
- e.style.removeProperty(o);
859
+ const o = `${e}${i}`;
860
+ n.style.removeProperty(o);
853
861
  }
854
862
  }
855
863
  reset() {
856
864
  const { element: t } = this;
857
865
  if (Z(t)) {
858
- for (const [n, e] of this.initial)
859
- t.style.setProperty(n, e);
866
+ for (const [e, n] of this.initial)
867
+ t.style.setProperty(e, n);
860
868
  t.getAttribute("style") === "" && t.removeAttribute("style");
861
869
  }
862
870
  }
@@ -864,80 +872,79 @@ var Fe = class {
864
872
  function de(t) {
865
873
  return t ? t instanceof E(t).Element || X(t) && t.nodeType === Node.ELEMENT_NODE : !1;
866
874
  }
867
- function Pe(t) {
875
+ function Oe(t) {
868
876
  if (!t) return !1;
869
- const { KeyboardEvent: n } = E(t.target);
870
- return t instanceof n;
877
+ const { KeyboardEvent: e } = E(t.target);
878
+ return t instanceof e;
871
879
  }
872
- function Ve(t) {
880
+ function Ie(t) {
873
881
  if (!t) return !1;
874
- const { PointerEvent: n } = E(t.target);
875
- return t instanceof n;
882
+ const { PointerEvent: e } = E(t.target);
883
+ return t instanceof e;
876
884
  }
877
885
  function Xe(t) {
878
886
  if (!de(t)) return !1;
879
- const { tagName: n } = t;
880
- return n === "INPUT" || n === "TEXTAREA" || pe(t);
887
+ const { tagName: e } = t;
888
+ return e === "INPUT" || e === "TEXTAREA" || pe(t);
881
889
  }
882
890
  function pe(t) {
883
891
  return t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false";
884
892
  }
885
893
  var tt = {};
886
- function Ye(t) {
887
- const n = tt[t] == null ? 0 : tt[t] + 1;
888
- return tt[t] = n, `${t}-${n}`;
894
+ function Ve(t) {
895
+ const e = tt[t] == null ? 0 : tt[t] + 1;
896
+ return tt[t] = e, `${t}-${e}`;
889
897
  }
890
898
  export {
891
- Le as DOMRectangle,
899
+ Pe as DOMRectangle,
892
900
  Re as Listeners,
893
901
  Ee as PositionObserver,
894
902
  Te as ProxiedElements,
895
903
  zt as ResizeNotifier,
896
- ct as Scheduler,
904
+ lt as Scheduler,
897
905
  ne as ScrollDirection,
898
906
  Fe as Styles,
899
- Ie as animateTransform,
907
+ Ne as animateTransform,
900
908
  ke as canScroll,
901
- wt as canUseDOM,
909
+ bt as canUseDOM,
902
910
  xe as cloneElement,
903
- Ne as computeTranslate,
911
+ Le as computeTranslate,
904
912
  We as detectScrollIntent,
905
- Ye as generateUniqueId,
913
+ Ve as generateUniqueId,
906
914
  j as getBoundingRectangle,
907
- k as getComputedStyles,
915
+ W as getComputedStyles,
908
916
  rt as getDocument,
909
917
  at as getDocuments,
910
- Lt as getElementFromPoint,
918
+ Ft as getElementFromPoint,
911
919
  ye as getEventCoordinates,
912
- Wt as getFinalKeyframe,
913
- Qt as getFirstScrollableAncestor,
920
+ Ct as getFinalKeyframe,
914
921
  me as getFixedPositionOffset,
915
922
  H as getFrameElement,
916
- kt as getFrameTransform,
923
+ At as getFrameTransform,
917
924
  we as getRoot,
918
- Jt as getScrollableAncestors,
919
- Ct as getViewportBoundingRectangle,
920
- D as getVisibleBoundingRectangle,
925
+ Qt as getScrollableAncestors,
926
+ Nt as getViewportBoundingRectangle,
927
+ B as getVisibleBoundingRectangle,
921
928
  E as getWindow,
922
- ce as inverseTransform,
923
- yt as isDocument,
929
+ le as inverseTransform,
930
+ mt as isDocument,
924
931
  dt as isDocumentScrollingElement,
925
932
  de as isElement,
926
- V as isHTMLElement,
933
+ C as isHTMLElement,
927
934
  _e as isInteractiveElement,
928
- Pe as isKeyboardEvent,
935
+ Oe as isKeyboardEvent,
929
936
  q as isKeyframeEffect,
930
- Ve as isPointerEvent,
931
- bt as isSafari,
932
- xt as isShadowRoot,
937
+ Ie as isPointerEvent,
938
+ xt as isSafari,
939
+ Tt as isShadowRoot,
933
940
  Xe as isTextInput,
934
- lt as parseTransform,
941
+ ct as parseTransform,
935
942
  nt as parseTranslate,
936
943
  be as prefersReducedMotion,
937
944
  Ae as scheduler,
938
945
  Ce as scrollIntoViewIfNeeded,
939
946
  Se as showPopover,
940
- $t as supportsPopover,
947
+ Kt as supportsPopover,
941
948
  Z as supportsStyle,
942
- Vt as timeout
949
+ Xt as timeout
943
950
  };