aptechka 0.4.26 → 0.4.28

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.
@@ -1,95 +1,95 @@
1
- var cs = (e, i, r) => {
1
+ var Ss = (e, i, r) => {
2
2
  if (!i.has(e))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var a = (e, i, r) => (cs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
5
+ var a = (e, i, r) => (Ss(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
6
6
  if (i.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
9
- }, F = (e, i, r, h) => (cs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
- import { D as Ts } from "../Damped-DpaKIZqv.js";
11
- import { i as Ye } from "../browser-0zX67oeU.js";
12
- import { a as Ee, g as xe } from "../layout-HoBT_Da2.js";
13
- import { c as je, s as As, b as Is, a as Bs } from "../math-BOBiC4TN.js";
9
+ }, F = (e, i, r, h) => (Ss(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
+ import { D as Gs } from "../Damped-DpaKIZqv.js";
11
+ import { i as is } from "../browser-0zX67oeU.js";
12
+ import { a as $e, g as De } from "../layout-HoBT_Da2.js";
13
+ import { c as rs, s as Ns, b as Us, a as Ks } from "../math-BOBiC4TN.js";
14
14
  import "../path-data-polyfill-DgeDWYeI.js";
15
- import { S as vt } from "../Store-Cd-E5W1z.js";
16
- import { D as Hs } from "../Derived-DH-ouLBq.js";
15
+ import { S as wt } from "../Store-Cd-E5W1z.js";
16
+ import { D as qs } from "../Derived-DH-ouLBq.js";
17
17
  import "../ticker/index.js";
18
- import { W as Gs, K as Ns, D as Ks } from "../DragControls-DniSlzgr.js";
19
- import { CustomElement as _s, define as Yt } from "../custom-element/index.js";
20
- import { TICK_ORDER as Us, RESIZE_ORDER as ts } from "../order/index.js";
21
- import { windowResizer as Jt } from "../window-resizer/index.js";
22
- import { scrollEntries as zt } from "../scroll-entries/index.js";
23
- import { e as es, D as Te, ay as Le, p as qs } from "../tags-BoPv9fDr.js";
24
- import { c as ss } from "../createStylesheet-KMRQhSa-.js";
25
- import { cssUnitParser as us } from "../css-unit-parser/index.js";
26
- import { CSSProperty as d } from "../css-property/index.js";
27
- import { d as Zs } from "../Viewport-Bx-VImCe.js";
28
- import { s as Js } from "../gestures-D2Fdra_G.js";
29
- import { aptechkaTheme as ps } from "../theme/index.js";
30
- import { elementResizer as fs } from "../element-resizer/index.js";
31
- import { f as Qs } from "../dom-0S_WDL4g.js";
32
- import { d as Cs } from "../function-C10DGppn.js";
33
- var Xs = Object.defineProperty, Ys = Object.getOwnPropertyDescriptor, js = (e, i, r, h) => {
34
- for (var n = h > 1 ? void 0 : h ? Ys(i, r) : i, u = e.length - 1, S; u >= 0; u--)
35
- (S = e[u]) && (n = (h ? S(i, r, n) : S(n)) || n);
36
- return h && n && Xs(i, r, n), n;
37
- }, is = (e, i, r) => {
18
+ import { WheelControls as Zs, KeyboardControls as Js, DragControls as Qs, AutoplayControls as Xs } from "../controls/index.js";
19
+ import { CustomElement as Ws, define as ee } from "../custom-element/index.js";
20
+ import { TICK_ORDER as Ys, RESIZE_ORDER as hs } from "../order/index.js";
21
+ import { windowResizer as Yt } from "../window-resizer/index.js";
22
+ import { scrollEntries as Dt } from "../scroll-entries/index.js";
23
+ import { e as ns, D as Ge, ay as Fe, p as js } from "../tags-BoPv9fDr.js";
24
+ import { c as as } from "../createStylesheet-KMRQhSa-.js";
25
+ import { cssUnitParser as vs } from "../css-unit-parser/index.js";
26
+ import { CSSProperty as u } from "../css-property/index.js";
27
+ import { d as ti } from "../Viewport-Bx-VImCe.js";
28
+ import { s as ei } from "../gestures-D2Fdra_G.js";
29
+ import { aptechkaTheme as ms } from "../theme/index.js";
30
+ import { elementResizer as gs } from "../element-resizer/index.js";
31
+ import { f as si } from "../dom-0S_WDL4g.js";
32
+ import { d as Ms } from "../function-C10DGppn.js";
33
+ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, hi = (e, i, r, h) => {
34
+ for (var n = h > 1 ? void 0 : h ? ri(i, r) : i, p = e.length - 1, S; p >= 0; p--)
35
+ (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
36
+ return h && n && ii(i, r, n), n;
37
+ }, os = (e, i, r) => {
38
38
  if (!i.has(e))
39
39
  throw TypeError("Cannot " + r);
40
- }, t = (e, i, r) => (is(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
40
+ }, t = (e, i, r) => (os(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
41
41
  if (i.has(e))
42
42
  throw TypeError("Cannot add the same private member more than once");
43
43
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
44
- }, b = (e, i, r, h) => (is(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (is(e, i, "access private method"), r), f, D, et, Z, st, gt, wt, K, R, Ft, Dt, Ot, Rt, jt, Tt, At, g, Ve, c, de, Se, E, C, A, J, Et, lt, P, te, bt, Qt, Xt, Kt, le, xt, Ut, ze, rs, $e, hs, me, Ae, ve, Ie, tt, Oe, Be, ys, ee, ge, He, ce, Fe, Ge, ks, w, k, Vt, Y, dt;
45
- class ti {
44
+ }, b = (e, i, r, h) => (os(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (os(e, i, "access private method"), r), d, O, st, J, it, bt, _t, K, R, Ot, At, Rt, Tt, se, at, It, ie, Bt, Ht, g, Oe, c, ge, we, E, C, I, Q, Lt, ut, $, P, re, Ct, jt, te, Zt, fe, Vt, Jt, Ae, ls, Re, cs, be, Ne, _e, Ue, et, Be, Ke, Es, he, Ce, ye, qe, de, Te, Ze, xs, w, k, $t, j, vt;
45
+ class ni {
46
46
  constructor(i, r) {
47
47
  z(this, w, void 0);
48
48
  z(this, k, void 0);
49
- z(this, Vt, 0);
50
- z(this, Y, 0);
51
- z(this, dt, null);
52
- F(this, w, i), F(this, k, r), zt.register(a(this, w));
49
+ z(this, $t, 0);
50
+ z(this, j, 0);
51
+ z(this, vt, null);
52
+ F(this, w, i), F(this, k, r), Dt.register(a(this, w));
53
53
  }
54
54
  get size() {
55
- return a(this, Vt);
55
+ return a(this, $t);
56
56
  }
57
57
  get position() {
58
- return a(this, Y);
58
+ return a(this, j);
59
59
  }
60
60
  destroy() {
61
- zt.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
61
+ Dt.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
62
62
  }
63
63
  setSize(i) {
64
64
  i ? (a(this, w).style.setProperty("--size", i + "px"), a(this, k).axisCSSProperty.current === "x" ? (a(this, w).style.width = i + "px", a(this, w).style.height = "") : (a(this, w).style.height = i + "px", a(this, w).style.width = "")) : (a(this, w).style.width = "", a(this, w).style.height = "", a(this, w).style.removeProperty("--size"));
65
65
  }
66
66
  resize() {
67
- F(this, Vt, a(this, k).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), F(this, Y, a(this, k).vertical ? Ee(a(this, w)) : xe(a(this, w))), F(this, Y, a(this, Y) - a(this, k).contentPosition);
67
+ F(this, $t, a(this, k).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), F(this, j, a(this, k).vertical ? $e(a(this, w)) : De(a(this, w))), F(this, j, a(this, j) - a(this, k).contentPosition);
68
68
  }
69
69
  transform() {
70
70
  let i = 0;
71
- const r = a(this, k).viewportSize * a(this, k).sectionDistanceScale.current;
72
- a(this, k).infiniteCSSProperty.current && a(this, k).overscroll && a(this, Y) + a(this, Vt) < a(this, k).currentScrollValue && (i = a(this, k).distance * -1 - a(this, k).gap), zt.update(
71
+ const r = a(this, k).viewportSize * a(this, k).sectionDistanceScaleCSSProperty.current;
72
+ a(this, k).infiniteCSSProperty.current && a(this, k).overscroll && a(this, j) + a(this, $t) < a(this, k).currentScrollValue && (i = a(this, k).distance * -1 - a(this, k).gap), Dt.update(
73
73
  a(this, w),
74
74
  a(this, k).axisCSSProperty.current,
75
75
  i
76
76
  );
77
- const h = a(this, k).currentScrollValue + i, n = a(this, Y) - a(this, k).viewportSize - r, u = a(this, Y) + a(this, Vt) + r, S = je(h, n, u);
77
+ const h = a(this, k).currentScrollValue + i, n = a(this, j) - a(this, k).viewportSize - r, p = a(this, j) + a(this, $t) + r, S = rs(h, n, p);
78
78
  a(this, k).vertical ? a(this, w).style.transform = `translate3d(0px, ${S * -1}px, 0px)` : a(this, w).style.transform = `translate3d(${S * -1}px, 0px, 0px)`;
79
79
  }
80
80
  mark(i) {
81
- a(this, dt) !== i && (a(this, dt) && a(this, w).classList.remove(a(this, dt)), i && a(this, w).classList.add(i), F(this, dt, i), a(this, w).dispatchEvent(
81
+ a(this, vt) !== i && (a(this, vt) && a(this, w).classList.remove(a(this, vt)), i && a(this, w).classList.add(i), F(this, vt, i), a(this, w).dispatchEvent(
82
82
  new CustomEvent("sectionsChange", {
83
83
  composed: !0,
84
84
  detail: {
85
- mark: a(this, dt)
85
+ mark: a(this, vt)
86
86
  }
87
87
  })
88
88
  ));
89
89
  }
90
90
  }
91
- w = new WeakMap(), k = new WeakMap(), Vt = new WeakMap(), Y = new WeakMap(), dt = new WeakMap();
92
- const ei = ss({
91
+ w = new WeakMap(), k = new WeakMap(), $t = new WeakMap(), j = new WeakMap(), vt = new WeakMap();
92
+ const ai = as({
93
93
  ":host": {
94
94
  position: "relative",
95
95
  width: "100%",
@@ -121,31 +121,39 @@ const ei = ss({
121
121
  flexShrink: "0"
122
122
  }
123
123
  });
124
- let De = class extends _s {
124
+ let Ie = class extends Ws {
125
125
  constructor() {
126
- super(), l(this, Kt), l(this, xt), l(this, ze), l(this, $e), l(this, me), l(this, ve), l(this, Be), l(this, ge), l(this, ce), l(this, Ge), l(this, f, null), l(this, D, new d(this, "--axis", "y")), l(this, et, new d(this, "--pages", 0, {
126
+ super(), l(this, Zt), l(this, Vt), l(this, Ae), l(this, Re), l(this, be), l(this, _e), l(this, Ke), l(this, ye), l(this, de), l(this, Ze), l(this, d, null), l(this, O, new u(this, "--axis", "y")), l(this, st, new u(this, "--pages", 0, {
127
127
  validate: (e) => Math.max(0, e - 1)
128
- })), l(this, Z, new d(this, "--split", !1)), l(this, st, new d(this, "--sectional", !1)), l(this, gt, new d(this, "--auto-size", !1)), l(this, wt, new d(
128
+ })), l(this, J, new u(this, "--split", !1)), l(this, it, new u(this, "--sectional", !1)), l(this, bt, new u(this, "--auto-size", !1)), l(this, _t, new u(
129
129
  this,
130
130
  "--wheel-max-delta",
131
131
  !1
132
- )), l(this, K, new d(
132
+ )), l(this, K, new u(
133
133
  this,
134
134
  "--sections-in-view",
135
135
  1
136
- )), l(this, R, new d(this, "--infinite", !1)), l(this, Ft, new d(this, "--damping", 20)), l(this, Dt, new d(this, "--mass", 0)), l(this, Ot, new d(this, "--stiffness", 0)), l(this, Rt, new d(this, "--mouse-drag", !1)), l(this, jt, new d(
136
+ )), l(this, R, new u(this, "--infinite", !1)), l(this, Ot, new u(this, "--damping", 20)), l(this, At, new u(this, "--mass", 0)), l(this, Rt, new u(this, "--stiffness", 0)), l(this, Tt, new u(this, "--mouse-drag", !1)), l(this, se, new u(
137
137
  this,
138
138
  "--section-distance-scale",
139
139
  0.5
140
- )), l(this, Tt, new d(this, "--disabled", !1)), l(this, At, new d(this, "--hibernated", !1)), l(this, g, null), l(this, Ve, null), l(this, c, []), l(this, de, 0), l(this, Se, 0), l(this, E, 0), l(this, C, 0), l(this, A, 0), l(this, J, null), l(this, Et, null), l(this, lt, null), l(this, P, new vt(0)), l(this, te, 0), l(this, bt, 0), l(this, Qt, !0), l(this, Xt, !0), l(this, tt, () => {
141
- t(this, f).unlistenAnimationFrame();
140
+ )), l(this, at, new u(this, "--autoplay", 0)), l(this, It, new u(
141
+ this,
142
+ "--autoplay-pause-duration",
143
+ 0
144
+ )), l(this, ie, new u(
145
+ this,
146
+ "--autoplay-user-direction",
147
+ !1
148
+ )), l(this, Bt, new u(this, "--disabled", !1)), l(this, Ht, new u(this, "--hibernated", !1)), l(this, g, null), l(this, Oe, null), l(this, c, []), l(this, ge, 0), l(this, we, 0), l(this, E, 0), l(this, C, 0), l(this, I, 0), l(this, Q, null), l(this, Lt, null), l(this, ut, null), l(this, $, null), l(this, P, new wt(0)), l(this, re, 0), l(this, Ct, 0), l(this, jt, !0), l(this, te, !0), l(this, et, () => {
149
+ t(this, d).unlistenAnimationFrame();
142
150
  const e = this.currentScrollValue / t(this, C) || 0, i = t(this, P).current;
143
- if (b(this, de, this.vertical ? Ee(this) : xe(this)), b(this, Se, this.vertical ? Ee(t(this, g)) : xe(t(this, g))), b(this, E, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? b(this, A, us.parse(
151
+ if (b(this, ge, this.vertical ? $e(this) : De(this)), b(this, we, this.vertical ? $e(t(this, g)) : De(t(this, g))), b(this, E, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? b(this, I, vs.parse(
144
152
  getComputedStyle(t(this, g)).rowGap
145
- )) : b(this, A, us.parse(
153
+ )) : b(this, I, vs.parse(
146
154
  getComputedStyle(t(this, g)).columnGap
147
- )), t(this, gt).current && t(this, c).length) {
148
- const r = t(this, K).current, h = (t(this, E) - t(this, A) * (r - 1)) / r;
155
+ )), t(this, bt).current && t(this, c).length) {
156
+ const r = t(this, K).current, h = (t(this, E) - t(this, I) * (r - 1)) / r;
149
157
  t(this, c).forEach((n) => {
150
158
  n.setSize(h);
151
159
  });
@@ -155,29 +163,29 @@ let De = class extends _s {
155
163
  });
156
164
  if (t(this, c).forEach((r) => {
157
165
  r.resize();
158
- }), t(this, et).current) {
159
- b(this, C, t(this, E) * t(this, et).current);
166
+ }), t(this, st).current) {
167
+ b(this, C, t(this, E) * t(this, st).current);
160
168
  const r = t(this, C) + t(this, E);
161
169
  this.vertical ? (t(this, g).style.width = r + "px", t(this, g).style.height = "100%") : (t(this, g).style.height = r + "px", t(this, g).style.width = "100%");
162
170
  } else
163
171
  this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content", b(this, C, t(this, g).offsetHeight - t(this, E))) : (t(this, g).style.width = "max-content", t(this, g).style.height = "100%", b(this, C, t(this, g).offsetWidth - t(this, E)));
164
172
  if (!t(this, R).current) {
165
173
  const r = getComputedStyle(this), h = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
166
- b(this, C, t(this, C) + h), t(this, f).max = t(this, C);
174
+ b(this, C, t(this, C) + h), t(this, d).max = t(this, C);
167
175
  }
168
176
  if (t(this, R).current && t(this, c).length) {
169
177
  const r = t(this, c)[t(this, c).length - 1], h = r.position + r.size - t(this, E), n = t(this, C) - h;
170
- b(this, bt, r.position + r.size + n);
178
+ b(this, Ct, r.position + r.size + n);
171
179
  } else
172
- b(this, bt, t(this, C));
173
- if (t(this, st).current && t(this, c).length) {
180
+ b(this, Ct, t(this, C));
181
+ if (t(this, it).current && t(this, c).length) {
174
182
  const r = t(this, c)[i];
175
- t(this, f).set(r.position, !0);
183
+ t(this, d).set(r.position, !0);
176
184
  } else
177
- t(this, f).set(e * t(this, C), !0);
178
- }), l(this, Oe, () => {
185
+ t(this, d).set(e * t(this, C), !0);
186
+ }), l(this, Be, () => {
179
187
  const e = this.currentScrollValue;
180
- if (b(this, te, Math.max(0, e - t(this, C))), t(this, c).length) {
188
+ if (b(this, re, Math.max(0, e - t(this, C))), t(this, c).length) {
181
189
  let i = 0;
182
190
  for (let r = 0; r < t(this, c).length; r++) {
183
191
  const h = t(this, c)[r];
@@ -186,92 +194,104 @@ let De = class extends _s {
186
194
  t(this, P).current = i;
187
195
  } else
188
196
  this.vertical ? t(this, g).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, g).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
189
- zt.update(
197
+ Dt.update(
190
198
  this,
191
- t(this, D).current,
199
+ t(this, O).current,
192
200
  e
193
201
  );
194
- }), l(this, ee, (e, i) => {
195
- if (!(e === "drag" && !Zs.isMobile && !t(this, Rt).current))
196
- if (t(this, st).current) {
202
+ }), l(this, he, (e, i) => {
203
+ t(this, $).pauseAndContinue(
204
+ t(this, It).current
205
+ ), t(this, ie).current && (t(this, $).direction = Math.sign(i) || 1), t(this, Ce).call(this, e, i);
206
+ }), l(this, Ce, (e, i) => {
207
+ if (!(e === "drag" && !ti.isMobile && !t(this, Tt).current))
208
+ if (t(this, it).current) {
197
209
  const r = Math.sign(i);
198
- t(this, c).length ? this.shiftSections(r) : t(this, f).shift(r * t(this, E));
210
+ t(this, c).length ? this.shiftSections(r) : t(this, d).shift(r * t(this, E));
199
211
  } else
200
- t(this, f).shift(i);
201
- }), Ye && (b(this, f, new Ts(0, {
212
+ t(this, d).shift(i);
213
+ }), is && (b(this, d, new Gs(0, {
202
214
  damping: 0.01,
203
215
  min: 0,
204
- order: Us.SCROLL
205
- })), this.openShadow(ei), es(this, {
216
+ order: Ys.SCROLL
217
+ })), this.openShadow(ai), ns(this, {
206
218
  tabIndex: 0,
207
219
  children: [
208
- Te({
220
+ Ge({
209
221
  class: "static",
210
- children: [Le({ name: "static" })]
222
+ children: [Fe({ name: "static" })]
211
223
  }),
212
- Te({
224
+ Ge({
213
225
  class: "content",
214
- children: [Le({ ref: (e) => b(this, Ve, e) })],
226
+ children: [Fe({ ref: (e) => b(this, Oe, e) })],
215
227
  style: {
216
- flexDirection: new Hs(
217
- t(this, D),
228
+ flexDirection: new qs(
229
+ t(this, O),
218
230
  (e) => e === "x" ? "row" : "column"
219
231
  )
220
232
  },
221
233
  ref: (e) => b(this, g, e)
222
234
  })
223
235
  ]
224
- }), b(this, J, new Gs({ element: t(this, g) })), t(this, J).changeEvent.subscribe(t(this, ee)), b(this, Et, new Ns({
236
+ }), b(this, Q, new Zs({ element: t(this, g) })), t(this, Q).changeEvent.subscribe(
237
+ t(this, he)
238
+ ), b(this, Lt, new Js({
225
239
  element: t(this, g)
226
- })), t(this, Et).changeEvent.subscribe(t(this, ee)), b(this, lt, new Ks({ element: t(this, g) })), t(this, lt).changeEvent.subscribe(t(this, ee)), t(this, D).subscribe(({ current: e }) => {
227
- t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, J).axis = t(this, wt).current ? "max" : e, t(this, Et).dimension = e === "x" ? "width" : "height", t(this, lt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, tt).call(this);
228
- }), t(this, wt).subscribe((e) => {
229
- t(this, J).axis = e.current ? "max" : t(this, D).current;
230
- }), t(this, et).subscribe(() => {
231
- this.isConnected && t(this, tt).call(this);
232
- }), t(this, Z).subscribe(({ current: e }) => {
233
- this.isConnected && (e ? _(this, Kt, le).call(this) : _(this, xt, Ut).call(this));
234
- }), t(this, st).subscribe((e) => {
235
- t(this, J).debounce = e.current, t(this, lt).swipe = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? _(this, Kt, le).call(this) : !e.current && e.previous && t(this, c).length && _(this, xt, Ut).call(this));
236
- }), t(this, gt).subscribe((e) => {
237
- this.isConnected && (t(this, tt).call(this), e.current && !e.previous && !t(this, c).length ? _(this, Kt, le).call(this) : !e.current && e.previous && t(this, c).length && _(this, xt, Ut).call(this));
240
+ })), t(this, Lt).changeEvent.subscribe(
241
+ t(this, he)
242
+ ), b(this, ut, new Qs({ element: t(this, g) })), t(this, ut).changeEvent.subscribe(t(this, he)), b(this, $, new Xs()), t(this, $).changeEvent.subscribe(t(this, Ce)), t(this, O).subscribe(({ current: e }) => {
243
+ t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, Q).axis = t(this, _t).current ? "max" : e, t(this, Lt).dimension = e === "x" ? "width" : "height", t(this, ut).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, et).call(this);
244
+ }), t(this, _t).subscribe((e) => {
245
+ t(this, Q).axis = e.current ? "max" : t(this, O).current;
246
+ }), t(this, st).subscribe(() => {
247
+ this.isConnected && t(this, et).call(this);
248
+ }), t(this, J).subscribe(({ current: e }) => {
249
+ this.isConnected && (e ? _(this, Zt, fe).call(this) : _(this, Vt, Jt).call(this));
250
+ }), t(this, it).subscribe((e) => {
251
+ t(this, Q).debounce = e.current, t(this, ut).swipe = e.current, t(this, $).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? _(this, Zt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, Vt, Jt).call(this));
252
+ }), t(this, bt).subscribe((e) => {
253
+ this.isConnected && (t(this, et).call(this), e.current && !e.previous && !t(this, c).length ? _(this, Zt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, Vt, Jt).call(this));
238
254
  }), t(this, K).subscribe((e) => {
239
- this.isConnected && (t(this, tt).call(this), _(this, ce, Fe).call(this));
255
+ this.isConnected && (t(this, et).call(this), _(this, de, Te).call(this));
240
256
  }), t(this, R).subscribe((e) => {
241
- e.current ? (this.isConnected && (t(this, c).length || (t(this, Z).current = !0)), t(this, c).length && (t(this, f).max = 1 / 0, t(this, f).min = -1 / 0)) : (b(this, te, 0), t(this, f).max = t(this, C), t(this, f).min = 0);
242
- }), t(this, Ft).subscribe((e) => {
243
- t(this, f).damping = e.current;
244
- }), t(this, Dt).subscribe((e) => {
245
- t(this, f).mass = e.current;
257
+ e.current ? (this.isConnected && (t(this, c).length || (t(this, J).current = !0)), t(this, c).length && (t(this, d).max = 1 / 0, t(this, d).min = -1 / 0)) : (b(this, re, 0), t(this, d).max = t(this, C), t(this, d).min = 0);
246
258
  }), t(this, Ot).subscribe((e) => {
247
- t(this, f).stiffness = e.current;
248
- }), t(this, Tt).subscribe((e) => {
249
- e.current && !e.previous ? _(this, ze, rs).call(this) : !e.current && e.previous && _(this, $e, hs).call(this);
259
+ t(this, d).damping = e.current;
250
260
  }), t(this, At).subscribe((e) => {
251
- e.current && !e.previous ? _(this, me, Ae).call(this) : !e.current && e.previous && _(this, ve, Ie).call(this);
252
- }), t(this, f).isRunning.subscribe((e) => {
261
+ t(this, d).mass = e.current;
262
+ }), t(this, Rt).subscribe((e) => {
263
+ t(this, d).stiffness = e.current;
264
+ }), t(this, Bt).subscribe((e) => {
265
+ e.current && !e.previous ? _(this, Ae, ls).call(this) : !e.current && e.previous && _(this, Re, cs).call(this);
266
+ }), t(this, Ht).subscribe((e) => {
267
+ e.current && !e.previous ? _(this, be, Ne).call(this) : !e.current && e.previous && _(this, _e, Ue).call(this);
268
+ }), t(this, at).subscribe((e) => {
269
+ t(this, $).speed = e.current, e.current && !e.previous ? t(this, $).connect() : !e.current && e.previous && t(this, $).disconnect();
270
+ }), t(this, ie).subscribe((e) => {
271
+ e.current || (t(this, $).direction = 1);
272
+ }), t(this, d).isRunning.subscribe((e) => {
253
273
  this.classList.toggle("active", e.current);
254
274
  }), t(this, P).subscribe((e) => {
255
- t(this, c).length && _(this, ce, Fe).call(this);
275
+ t(this, c).length && _(this, de, Te).call(this);
256
276
  }));
257
277
  }
258
278
  get axisCSSProperty() {
259
- return t(this, D);
279
+ return t(this, O);
260
280
  }
261
281
  get pagesCSSProperty() {
262
- return t(this, et);
282
+ return t(this, st);
263
283
  }
264
284
  get splitCSSProperty() {
265
- return t(this, Z);
285
+ return t(this, J);
266
286
  }
267
287
  get sectionalCSSProperty() {
268
- return t(this, st);
288
+ return t(this, it);
269
289
  }
270
290
  get autoSizeCSSProperty() {
271
- return t(this, gt);
291
+ return t(this, bt);
272
292
  }
273
293
  get wheelMaxDeltaCSSProperty() {
274
- return t(this, wt);
294
+ return t(this, _t);
275
295
  }
276
296
  get sectionsInViewCSSProperty() {
277
297
  return t(this, K);
@@ -280,31 +300,40 @@ let De = class extends _s {
280
300
  return t(this, R);
281
301
  }
282
302
  get dampingCSSProperty() {
283
- return t(this, Ft);
303
+ return t(this, Ot);
284
304
  }
285
305
  get massCSSProperty() {
286
- return t(this, Dt);
306
+ return t(this, At);
287
307
  }
288
308
  get stiffnessCSSProperty() {
289
- return t(this, Ot);
309
+ return t(this, Rt);
290
310
  }
291
311
  get mouseDragCSSProperty() {
292
- return t(this, Rt);
312
+ return t(this, Tt);
313
+ }
314
+ get sectionDistanceScaleCSSProperty() {
315
+ return t(this, se);
316
+ }
317
+ get autoplayCSSProperty() {
318
+ return t(this, at);
293
319
  }
294
- get sectionDistanceScale() {
295
- return t(this, jt);
320
+ get autoplayPauseDurationCSSProperty() {
321
+ return t(this, It);
322
+ }
323
+ get autoplayUserDirectionCSSProperty() {
324
+ return t(this, ie);
296
325
  }
297
326
  get disabledCSSProperty() {
298
- return t(this, Tt);
327
+ return t(this, Bt);
299
328
  }
300
329
  get hibernatedCSSProperty() {
301
- return t(this, At);
330
+ return t(this, Ht);
302
331
  }
303
332
  get currentScrollValue() {
304
- return _(this, ge, He).call(this, "current");
333
+ return _(this, ye, qe).call(this, "current");
305
334
  }
306
335
  get targetScrollValue() {
307
- return _(this, ge, He).call(this, "target");
336
+ return _(this, ye, qe).call(this, "target");
308
337
  }
309
338
  get contentElement() {
310
339
  return t(this, g);
@@ -313,10 +342,10 @@ let De = class extends _s {
313
342
  return t(this, c);
314
343
  }
315
344
  get position() {
316
- return t(this, de);
345
+ return t(this, ge);
317
346
  }
318
347
  get contentPosition() {
319
- return t(this, Se);
348
+ return t(this, we);
320
349
  }
321
350
  get viewportSize() {
322
351
  return t(this, E);
@@ -325,7 +354,7 @@ let De = class extends _s {
325
354
  return t(this, C);
326
355
  }
327
356
  get gap() {
328
- return t(this, A);
357
+ return t(this, I);
329
358
  }
330
359
  get counter() {
331
360
  return t(this, P);
@@ -334,16 +363,16 @@ let De = class extends _s {
334
363
  return t(this, c).length - t(this, K).current;
335
364
  }
336
365
  get distance() {
337
- return t(this, bt);
366
+ return t(this, Ct);
338
367
  }
339
368
  get infiniteDistance() {
340
- return t(this, R).current ? t(this, bt) + t(this, A) : t(this, bt);
369
+ return t(this, R).current ? t(this, Ct) + t(this, I) : t(this, Ct);
341
370
  }
342
371
  get overscroll() {
343
- return t(this, te);
372
+ return t(this, re);
344
373
  }
345
374
  get vertical() {
346
- return t(this, D).current === "y";
375
+ return t(this, O).current === "y";
347
376
  }
348
377
  get currentProgress() {
349
378
  return this.currentScrollValue / this.infiniteDistance || 0;
@@ -352,25 +381,25 @@ let De = class extends _s {
352
381
  return this.targetScrollValue / this.infiniteDistance || 0;
353
382
  }
354
383
  get speed() {
355
- return t(this, f).speed;
384
+ return t(this, d).speed;
356
385
  }
357
386
  get direction() {
358
- return t(this, f).direction;
387
+ return t(this, d).direction;
359
388
  }
360
389
  get isRunning() {
361
- return t(this, f).isRunning;
390
+ return t(this, d).isRunning;
362
391
  }
363
392
  get scrollWidth() {
364
- return t(this, D).current === "y" ? 0 : t(this, f).length;
393
+ return t(this, O).current === "y" ? 0 : t(this, d).length;
365
394
  }
366
395
  get scrollHeight() {
367
- return t(this, D).current === "x" ? 0 : t(this, f).length;
396
+ return t(this, O).current === "x" ? 0 : t(this, d).length;
368
397
  }
369
398
  onScroll(...e) {
370
- return t(this, f).subscribe(...e);
399
+ return t(this, d).subscribe(...e);
371
400
  }
372
401
  offScroll(...e) {
373
- t(this, f).unsubscribe(...e);
402
+ t(this, d).unsubscribe(...e);
374
403
  }
375
404
  //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
376
405
  range(e, i, r = 0) {
@@ -388,13 +417,13 @@ let De = class extends _s {
388
417
  if (!t(this, c).length)
389
418
  return;
390
419
  const r = t(this, P).current;
391
- _(this, Be, ys).call(this, e);
420
+ _(this, Ke, Es).call(this, e);
392
421
  const h = t(this, c)[r], n = t(this, c)[t(this, P).current];
393
422
  if (h && n) {
394
- let u = 0;
395
- const S = _(this, Ge, ks).call(this), Rs = S ? this.targetScrollValue - S.position : 0;
396
- t(this, R).current ? t(this, P).current === 0 && r === t(this, c).length - 1 ? u = t(this, C) + t(this, E) - h.position + t(this, A) : t(this, P).current === t(this, c).length - 1 && r === 0 ? u = n.position - (t(this, C) + t(this, E) + t(this, A)) : u = n.position - h.position : u = n.position - h.position, t(this, f).shift(
397
- u - Rs,
423
+ let p = 0;
424
+ const S = _(this, Ze, xs).call(this), Hs = S ? this.targetScrollValue - S.position : 0;
425
+ t(this, R).current ? t(this, P).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, E) - h.position + t(this, I) : t(this, P).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, E) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, d).shift(
426
+ p - Hs,
398
427
  i === "instant"
399
428
  );
400
429
  }
@@ -403,110 +432,115 @@ let De = class extends _s {
403
432
  t(this, c).length && this.scrollToSection(t(this, P).current + e, i);
404
433
  }
405
434
  setPosition(e, i = "smooth") {
406
- t(this, f).set(e, i === "instant");
435
+ t(this, d).set(e, i === "instant");
407
436
  }
408
437
  connectedCallback() {
409
- t(this, D).observe(), t(this, et).observe(), t(this, Z).observe(), t(this, st).observe(), t(this, gt).observe(), t(this, wt).observe(), t(this, K).observe(), t(this, R).observe(), t(this, Ft).observe(), t(this, Dt).observe(), t(this, Ot).observe(), t(this, Rt).observe(), t(this, jt).observe(), t(this, Tt).observe(), t(this, At).observe(), _(this, ve, Ie).call(this);
438
+ t(this, O).observe(), t(this, st).observe(), t(this, J).observe(), t(this, it).observe(), t(this, bt).observe(), t(this, _t).observe(), t(this, K).observe(), t(this, R).observe(), t(this, Ot).observe(), t(this, At).observe(), t(this, Rt).observe(), t(this, Tt).observe(), t(this, se).observe(), t(this, at).observe(), t(this, at).observe(), t(this, It).observe(), t(this, Bt).observe(), t(this, Ht).observe(), _(this, _e, Ue).call(this);
410
439
  }
411
440
  disconnectedCallback() {
412
- t(this, D).unobserve(), t(this, et).unobserve(), t(this, Z).unobserve(), t(this, st).unobserve(), t(this, gt).unobserve(), t(this, wt).unobserve(), t(this, K).unobserve(), t(this, R).unobserve(), t(this, Ft).unobserve(), t(this, Dt).unobserve(), t(this, Ot).unobserve(), t(this, Rt).unobserve(), t(this, jt).unobserve(), t(this, Tt).unobserve(), t(this, At).unobserve(), _(this, me, Ae).call(this);
441
+ t(this, O).unobserve(), t(this, st).unobserve(), t(this, J).unobserve(), t(this, it).unobserve(), t(this, bt).unobserve(), t(this, _t).unobserve(), t(this, K).unobserve(), t(this, R).unobserve(), t(this, Ot).unobserve(), t(this, At).unobserve(), t(this, Rt).unobserve(), t(this, Tt).unobserve(), t(this, se).unobserve(), t(this, at).unobserve(), t(this, It).unobserve(), t(this, Bt).unobserve(), t(this, Ht).unobserve(), _(this, be, Ne).call(this);
413
442
  }
414
443
  };
415
- f = /* @__PURE__ */ new WeakMap();
416
- D = /* @__PURE__ */ new WeakMap();
417
- et = /* @__PURE__ */ new WeakMap();
418
- Z = /* @__PURE__ */ new WeakMap();
444
+ d = /* @__PURE__ */ new WeakMap();
445
+ O = /* @__PURE__ */ new WeakMap();
419
446
  st = /* @__PURE__ */ new WeakMap();
420
- gt = /* @__PURE__ */ new WeakMap();
421
- wt = /* @__PURE__ */ new WeakMap();
447
+ J = /* @__PURE__ */ new WeakMap();
448
+ it = /* @__PURE__ */ new WeakMap();
449
+ bt = /* @__PURE__ */ new WeakMap();
450
+ _t = /* @__PURE__ */ new WeakMap();
422
451
  K = /* @__PURE__ */ new WeakMap();
423
452
  R = /* @__PURE__ */ new WeakMap();
424
- Ft = /* @__PURE__ */ new WeakMap();
425
- Dt = /* @__PURE__ */ new WeakMap();
426
453
  Ot = /* @__PURE__ */ new WeakMap();
454
+ At = /* @__PURE__ */ new WeakMap();
427
455
  Rt = /* @__PURE__ */ new WeakMap();
428
- jt = /* @__PURE__ */ new WeakMap();
429
456
  Tt = /* @__PURE__ */ new WeakMap();
430
- At = /* @__PURE__ */ new WeakMap();
457
+ se = /* @__PURE__ */ new WeakMap();
458
+ at = /* @__PURE__ */ new WeakMap();
459
+ It = /* @__PURE__ */ new WeakMap();
460
+ ie = /* @__PURE__ */ new WeakMap();
461
+ Bt = /* @__PURE__ */ new WeakMap();
462
+ Ht = /* @__PURE__ */ new WeakMap();
431
463
  g = /* @__PURE__ */ new WeakMap();
432
- Ve = /* @__PURE__ */ new WeakMap();
464
+ Oe = /* @__PURE__ */ new WeakMap();
433
465
  c = /* @__PURE__ */ new WeakMap();
434
- de = /* @__PURE__ */ new WeakMap();
435
- Se = /* @__PURE__ */ new WeakMap();
466
+ ge = /* @__PURE__ */ new WeakMap();
467
+ we = /* @__PURE__ */ new WeakMap();
436
468
  E = /* @__PURE__ */ new WeakMap();
437
469
  C = /* @__PURE__ */ new WeakMap();
438
- A = /* @__PURE__ */ new WeakMap();
439
- J = /* @__PURE__ */ new WeakMap();
440
- Et = /* @__PURE__ */ new WeakMap();
441
- lt = /* @__PURE__ */ new WeakMap();
470
+ I = /* @__PURE__ */ new WeakMap();
471
+ Q = /* @__PURE__ */ new WeakMap();
472
+ Lt = /* @__PURE__ */ new WeakMap();
473
+ ut = /* @__PURE__ */ new WeakMap();
474
+ $ = /* @__PURE__ */ new WeakMap();
442
475
  P = /* @__PURE__ */ new WeakMap();
476
+ re = /* @__PURE__ */ new WeakMap();
477
+ Ct = /* @__PURE__ */ new WeakMap();
478
+ jt = /* @__PURE__ */ new WeakMap();
443
479
  te = /* @__PURE__ */ new WeakMap();
444
- bt = /* @__PURE__ */ new WeakMap();
445
- Qt = /* @__PURE__ */ new WeakMap();
446
- Xt = /* @__PURE__ */ new WeakMap();
447
- Kt = /* @__PURE__ */ new WeakSet();
448
- le = function() {
449
- _(this, xt, Ut).call(this), t(this, Ve).assignedElements().forEach((e) => {
450
- e instanceof HTMLElement && t(this, c).push(new ti(e, this));
480
+ Zt = /* @__PURE__ */ new WeakSet();
481
+ fe = function() {
482
+ _(this, Vt, Jt).call(this), t(this, Oe).assignedElements().forEach((e) => {
483
+ e instanceof HTMLElement && t(this, c).push(new ni(e, this));
451
484
  }), t(this, g).style.transform = "", this.dispatchEvent(
452
485
  new CustomEvent("sectionsChange", {
453
486
  composed: !0
454
487
  })
455
- ), t(this, tt).call(this), _(this, ce, Fe).call(this);
488
+ ), t(this, et).call(this), _(this, de, Te).call(this);
456
489
  };
457
- xt = /* @__PURE__ */ new WeakSet();
458
- Ut = function() {
490
+ Vt = /* @__PURE__ */ new WeakSet();
491
+ Jt = function() {
459
492
  t(this, c).forEach((e) => {
460
493
  e.destroy();
461
- }), b(this, c, []), t(this, P).current = 0, t(this, f).reset(), this.dispatchEvent(
494
+ }), b(this, c, []), t(this, P).current = 0, t(this, d).reset(), this.dispatchEvent(
462
495
  new CustomEvent("sectionsChange", {
463
496
  composed: !0
464
497
  })
465
498
  );
466
499
  };
467
- ze = /* @__PURE__ */ new WeakSet();
468
- rs = function() {
469
- t(this, Qt) || (b(this, Qt, !0), t(this, f).unsubscribe(t(this, Oe)), t(this, f).unlistenAnimationFrame(), t(this, J).disconnect(), t(this, Et).disconnect(), t(this, lt).disconnect());
500
+ Ae = /* @__PURE__ */ new WeakSet();
501
+ ls = function() {
502
+ t(this, jt) || (b(this, jt, !0), t(this, d).unsubscribe(t(this, Be)), t(this, d).unlistenAnimationFrame(), t(this, Q).disconnect(), t(this, Lt).disconnect(), t(this, ut).disconnect(), t(this, $).disconnect());
470
503
  };
471
- $e = /* @__PURE__ */ new WeakSet();
472
- hs = function() {
473
- t(this, Qt) && (b(this, Qt, !1), t(this, f).subscribe(t(this, Oe)), t(this, J).connect(), t(this, Et).connect(), t(this, lt).connect());
504
+ Re = /* @__PURE__ */ new WeakSet();
505
+ cs = function() {
506
+ t(this, jt) && (b(this, jt, !1), t(this, d).subscribe(t(this, Be)), t(this, Q).connect(), t(this, Lt).connect(), t(this, ut).connect(), t(this, at).current && t(this, $).connect());
474
507
  };
475
- me = /* @__PURE__ */ new WeakSet();
476
- Ae = function() {
477
- t(this, Xt) || (b(this, Xt, !0), Jt.unsubscribe(t(this, tt)), t(this, f).reset(), _(this, ze, rs).call(this), t(this, g).style.transform = "", t(this, Z).current && _(this, xt, Ut).call(this), zt.unregister(this));
508
+ be = /* @__PURE__ */ new WeakSet();
509
+ Ne = function() {
510
+ t(this, te) || (b(this, te, !0), Yt.unsubscribe(t(this, et)), t(this, d).reset(), _(this, Ae, ls).call(this), t(this, g).style.transform = "", t(this, J).current && _(this, Vt, Jt).call(this), Dt.unregister(this));
478
511
  };
479
- ve = /* @__PURE__ */ new WeakSet();
480
- Ie = function() {
481
- t(this, Xt) && (b(this, Xt, !1), t(this, Z).current && _(this, Kt, le).call(this), zt.register(this), Jt.subscribe(t(this, tt), ts.SCROLL), _(this, $e, hs).call(this));
512
+ _e = /* @__PURE__ */ new WeakSet();
513
+ Ue = function() {
514
+ t(this, te) && (b(this, te, !1), t(this, J).current && _(this, Zt, fe).call(this), Dt.register(this), Yt.subscribe(t(this, et), hs.SCROLL), _(this, Re, cs).call(this));
482
515
  };
483
- tt = /* @__PURE__ */ new WeakMap();
484
- Oe = /* @__PURE__ */ new WeakMap();
485
- Be = /* @__PURE__ */ new WeakSet();
486
- ys = function(e) {
487
- t(this, R).current ? (t(this, P).current = e % t(this, c).length, t(this, P).current = t(this, P).current < 0 ? t(this, c).length + t(this, P).current : t(this, P).current) : t(this, P).current = je(e, 0, this.limit);
516
+ et = /* @__PURE__ */ new WeakMap();
517
+ Be = /* @__PURE__ */ new WeakMap();
518
+ Ke = /* @__PURE__ */ new WeakSet();
519
+ Es = function(e) {
520
+ t(this, R).current ? (t(this, P).current = e % t(this, c).length, t(this, P).current = t(this, P).current < 0 ? t(this, c).length + t(this, P).current : t(this, P).current) : t(this, P).current = rs(e, 0, this.limit);
488
521
  };
489
- ee = /* @__PURE__ */ new WeakMap();
490
- ge = /* @__PURE__ */ new WeakSet();
491
- He = function(e = "current") {
522
+ he = /* @__PURE__ */ new WeakMap();
523
+ Ce = /* @__PURE__ */ new WeakMap();
524
+ ye = /* @__PURE__ */ new WeakSet();
525
+ qe = function(e = "current") {
492
526
  if (t(this, R).current && t(this, c).length) {
493
- const i = t(this, f)[e] % (t(this, C) + t(this, E) + t(this, A));
494
- return i < 0 ? t(this, C) + i + t(this, E) + t(this, A) : i;
527
+ const i = t(this, d)[e] % (t(this, C) + t(this, E) + t(this, I));
528
+ return i < 0 ? t(this, C) + i + t(this, E) + t(this, I) : i;
495
529
  } else
496
- return t(this, f)[e];
530
+ return t(this, d)[e];
497
531
  };
498
- ce = /* @__PURE__ */ new WeakSet();
499
- Fe = function() {
532
+ de = /* @__PURE__ */ new WeakSet();
533
+ Te = function() {
500
534
  if (t(this, c).length) {
501
535
  const e = t(this, P).current;
502
536
  e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end"), t(this, c).forEach((i, r) => {
503
- const h = e - this.limit - 1, n = e + t(this, K).current, u = this.sections.length - n;
504
- r >= e && r < n || r <= h ? i.mark("current") : r >= n && r < n + u / 2 || r <= h + t(this, K).current ? i.mark("next") : i.mark("previous");
537
+ const h = e - this.limit - 1, n = e + t(this, K).current, p = this.sections.length - n;
538
+ r >= e && r < n || r <= h ? i.mark("current") : r >= n && r < n + p / 2 || r <= h + t(this, K).current ? i.mark("next") : i.mark("previous");
505
539
  });
506
540
  }
507
541
  };
508
- Ge = /* @__PURE__ */ new WeakSet();
509
- ks = function() {
542
+ Ze = /* @__PURE__ */ new WeakSet();
543
+ xs = function() {
510
544
  let e = null, i = 1 / 0;
511
545
  for (let r = 0; r < t(this, c).length; r++) {
512
546
  const h = Math.abs(t(this, c)[r].position - this.targetScrollValue);
@@ -514,41 +548,41 @@ ks = function() {
514
548
  }
515
549
  return e !== null ? t(this, c)[e] : null;
516
550
  };
517
- De = js([
518
- Yt("e-scroll")
519
- ], De);
520
- var ue;
521
- class Re extends _s {
551
+ Ie = hi([
552
+ ee("e-scroll")
553
+ ], Ie);
554
+ var Se;
555
+ class He extends Ws {
522
556
  constructor() {
523
557
  super(...arguments);
524
- z(this, ue, null);
558
+ z(this, Se, null);
525
559
  }
526
560
  get scrollElement() {
527
- return a(this, ue);
561
+ return a(this, Se);
528
562
  }
529
563
  connectedCallback() {
530
- const r = Qs(this, De);
531
- r instanceof De ? F(this, ue, r) : console.error(this, "e-scroll not found");
564
+ const r = si(this, Ie);
565
+ r instanceof Ie ? F(this, Se, r) : console.error(this, "e-scroll not found");
532
566
  }
533
567
  }
534
- ue = new WeakMap();
535
- var si = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, ri = (e, i, r, h) => {
536
- for (var n = h > 1 ? void 0 : h ? ii(i, r) : i, u = e.length - 1, S; u >= 0; u--)
537
- (S = e[u]) && (n = (h ? S(i, r, n) : S(n)) || n);
538
- return h && n && si(i, r, n), n;
539
- }, Ps = (e, i, r) => {
568
+ Se = new WeakMap();
569
+ var oi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ci = (e, i, r, h) => {
570
+ for (var n = h > 1 ? void 0 : h ? li(i, r) : i, p = e.length - 1, S; p >= 0; p--)
571
+ (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
572
+ return h && n && oi(i, r, n), n;
573
+ }, Ls = (e, i, r) => {
540
574
  if (!i.has(e))
541
575
  throw TypeError("Cannot " + r);
542
- }, p = (e, i, r) => (Ps(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
576
+ }, f = (e, i, r) => (Ls(e, i, "read from private field"), r ? r.call(e) : i.get(e)), U = (e, i, r) => {
543
577
  if (i.has(e))
544
578
  throw TypeError("Cannot add the same private member more than once");
545
579
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
546
- }, mt = (e, i, r, h) => (Ps(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), se, O, it, rt, ie, re, It, we, be, _e;
547
- const hi = ss({
580
+ }, gt = (e, i, r, h) => (Ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), ne, A, rt, ht, ae, oe, Gt, ke, Pe, We;
581
+ const ui = as({
548
582
  ":host": {
549
583
  display: "inline-block",
550
584
  zIndex: "1",
551
- backgroundColor: ps.colorLight.var
585
+ backgroundColor: ms.colorLight.var
552
586
  },
553
587
  ':host([axis="y"])': {
554
588
  position: "absolute",
@@ -565,7 +599,7 @@ const hi = ss({
565
599
  height: "1vmin"
566
600
  },
567
601
  ".default-thumb": {
568
- backgroundColor: ps.colorDark.var,
602
+ backgroundColor: ms.colorDark.var,
569
603
  borderRadius: "1vmin",
570
604
  touchAction: "none"
571
605
  },
@@ -573,316 +607,316 @@ const hi = ss({
573
607
  touchAction: "none"
574
608
  }
575
609
  });
576
- let ds = class extends Re {
610
+ let ws = class extends He {
577
611
  constructor() {
578
- super(), N(this, se, null), N(this, O, null), N(this, it, !1), N(this, rt, 0), N(this, ie, 0), N(this, re, 0), N(this, It, () => {
579
- mt(this, it, this.offsetWidth > this.offsetHeight);
580
- const e = p(this, it) ? this.offsetWidth : this.offsetHeight;
581
- mt(this, rt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), mt(this, rt, Math.max(p(this, rt), 30)), p(this, it) ? (p(this, O).style.width = p(this, rt) + "px", p(this, O).style.height = "100%") : (p(this, O).style.width = "100%", p(this, O).style.height = p(this, rt) + "px"), mt(this, ie, e - p(this, rt)), this.scrollElement.scrollSize || (this.style.display = "none");
582
- }), N(this, we, () => {
583
- mt(this, re, this.scrollElement.currentProgress * p(this, ie)), p(this, it) ? p(this, O).style.transform = `translate3d(${p(this, re)}px, 0px, 0px)` : p(this, O).style.transform = `translate3d(0px, ${p(this, re)}px, 0px)`;
584
- }), N(this, be, () => {
612
+ super(), U(this, ne, null), U(this, A, null), U(this, rt, !1), U(this, ht, 0), U(this, ae, 0), U(this, oe, 0), U(this, Gt, () => {
613
+ gt(this, rt, this.offsetWidth > this.offsetHeight);
614
+ const e = f(this, rt) ? this.offsetWidth : this.offsetHeight;
615
+ gt(this, ht, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), gt(this, ht, Math.max(f(this, ht), 30)), f(this, rt) ? (f(this, A).style.width = f(this, ht) + "px", f(this, A).style.height = "100%") : (f(this, A).style.width = "100%", f(this, A).style.height = f(this, ht) + "px"), gt(this, ae, e - f(this, ht)), this.scrollElement.scrollSize || (this.style.display = "none");
616
+ }), U(this, ke, () => {
617
+ gt(this, oe, this.scrollElement.currentProgress * f(this, ae)), f(this, rt) ? f(this, A).style.transform = `translate3d(${f(this, oe)}px, 0px, 0px)` : f(this, A).style.transform = `translate3d(0px, ${f(this, oe)}px, 0px)`;
618
+ }), U(this, Pe, () => {
585
619
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
586
- }), N(this, _e, (e) => {
587
- document.documentElement.classList.add("grabbing"), Js(
620
+ }), U(this, We, (e) => {
621
+ document.documentElement.classList.add("grabbing"), ei(
588
622
  (h) => {
589
- const n = p(this, it) ? h.x : h.y, u = this.scrollElement.distance / p(this, ie), S = (n - r) * u;
623
+ const n = f(this, rt) ? h.x : h.y, p = this.scrollElement.distance / f(this, ae), S = (n - r) * p;
590
624
  this.scrollElement.setPosition(i + S);
591
625
  },
592
626
  () => {
593
627
  document.documentElement.classList.remove("grabbing");
594
628
  }
595
629
  );
596
- const i = this.scrollElement.targetScrollValue, r = p(this, it) ? e.x : e.y;
597
- }), Ye && (this.openShadow(hi), es(this, {
630
+ const i = this.scrollElement.targetScrollValue, r = f(this, rt) ? e.x : e.y;
631
+ }), is && (this.openShadow(ui), ns(this, {
598
632
  slot: "static",
599
633
  "drag-dead-zone": "",
600
634
  children: [
601
- Le({
602
- ref: (e) => mt(this, se, e),
603
- children: Te({ class: "default-thumb" })
635
+ Fe({
636
+ ref: (e) => gt(this, ne, e),
637
+ children: Ge({ class: "default-thumb" })
604
638
  })
605
639
  ]
606
640
  }));
607
641
  }
608
642
  get thumbElement() {
609
- return p(this, O);
643
+ return f(this, A);
610
644
  }
611
645
  connectedCallback() {
612
646
  super.connectedCallback();
613
- const e = p(this, se).assignedElements()[0] || p(this, se).firstElementChild;
614
- mt(this, O, e), p(this, O).addEventListener("pointerdown", p(this, _e)), Jt.subscribe(p(this, It), ts.SCROLL + 1), fs.subscribe(this, p(this, It)), this.scrollElement.onScroll(p(this, we)), this.scrollElement.axisCSSProperty.subscribe(p(this, be));
647
+ const e = f(this, ne).assignedElements()[0] || f(this, ne).firstElementChild;
648
+ gt(this, A, e), f(this, A).addEventListener("pointerdown", f(this, We)), Yt.subscribe(f(this, Gt), hs.SCROLL + 1), gs.subscribe(this, f(this, Gt)), this.scrollElement.onScroll(f(this, ke)), this.scrollElement.axisCSSProperty.subscribe(f(this, Pe));
615
649
  }
616
650
  disconnectedCallback() {
617
- p(this, O).removeEventListener("pointerdown", p(this, _e)), Jt.unsubscribe(p(this, It)), fs.unsubscribe(p(this, It)), this.scrollElement.offScroll(p(this, we)), this.scrollElement.axisCSSProperty.unsubscribe(p(this, be));
651
+ f(this, A).removeEventListener("pointerdown", f(this, We)), Yt.unsubscribe(f(this, Gt)), gs.unsubscribe(f(this, Gt)), this.scrollElement.offScroll(f(this, ke)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Pe));
618
652
  }
619
653
  };
620
- se = /* @__PURE__ */ new WeakMap();
621
- O = /* @__PURE__ */ new WeakMap();
622
- it = /* @__PURE__ */ new WeakMap();
654
+ ne = /* @__PURE__ */ new WeakMap();
655
+ A = /* @__PURE__ */ new WeakMap();
623
656
  rt = /* @__PURE__ */ new WeakMap();
624
- ie = /* @__PURE__ */ new WeakMap();
625
- re = /* @__PURE__ */ new WeakMap();
626
- It = /* @__PURE__ */ new WeakMap();
627
- we = /* @__PURE__ */ new WeakMap();
628
- be = /* @__PURE__ */ new WeakMap();
629
- _e = /* @__PURE__ */ new WeakMap();
630
- ds = ri([
631
- Yt("e-scrollbar")
632
- ], ds);
633
- const ni = ss({
657
+ ht = /* @__PURE__ */ new WeakMap();
658
+ ae = /* @__PURE__ */ new WeakMap();
659
+ oe = /* @__PURE__ */ new WeakMap();
660
+ Gt = /* @__PURE__ */ new WeakMap();
661
+ ke = /* @__PURE__ */ new WeakMap();
662
+ Pe = /* @__PURE__ */ new WeakMap();
663
+ We = /* @__PURE__ */ new WeakMap();
664
+ ws = ci([
665
+ ee("e-scrollbar")
666
+ ], ws);
667
+ const pi = as({
634
668
  button: {
635
669
  all: "inherit"
636
670
  }
637
671
  });
638
- class Ws extends Re {
672
+ class Vs extends He {
639
673
  constructor() {
640
- super(), this.openShadow(ni), Ye && es(this, {
674
+ super(), this.openShadow(pi), is && ns(this, {
641
675
  children: [
642
- qs({
676
+ js({
643
677
  onClick: () => {
644
678
  this.handleClick();
645
679
  },
646
- children: [Le()]
680
+ children: [Fe()]
647
681
  })
648
682
  ]
649
683
  });
650
684
  }
651
685
  }
652
- var ai = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, li = (e, i, r, h) => {
653
- for (var n = h > 1 ? void 0 : h ? oi(i, r) : i, u = e.length - 1, S; u >= 0; u--)
654
- (S = e[u]) && (n = (h ? S(i, r, n) : S(n)) || n);
655
- return h && n && ai(i, r, n), n;
686
+ var fi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, Si = (e, i, r, h) => {
687
+ for (var n = h > 1 ? void 0 : h ? di(i, r) : i, p = e.length - 1, S; p >= 0; p--)
688
+ (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
689
+ return h && n && fi(i, r, n), n;
656
690
  };
657
- let Ss = class extends Ws {
691
+ let bs = class extends Vs {
658
692
  handleClick() {
659
693
  const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
660
694
  this.scrollElement.scrollToSection(parseInt(e || "0"), i);
661
695
  }
662
696
  };
663
- Ss = li([
664
- Yt("e-scroll-set-button")
665
- ], Ss);
666
- var ci = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, pi = (e, i, r, h) => {
667
- for (var n = h > 1 ? void 0 : h ? ui(i, r) : i, u = e.length - 1, S; u >= 0; u--)
668
- (S = e[u]) && (n = (h ? S(i, r, n) : S(n)) || n);
669
- return h && n && ci(i, r, n), n;
697
+ bs = Si([
698
+ ee("e-scroll-set-button")
699
+ ], bs);
700
+ var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, gi = (e, i, r, h) => {
701
+ for (var n = h > 1 ? void 0 : h ? mi(i, r) : i, p = e.length - 1, S; p >= 0; p--)
702
+ (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
703
+ return h && n && vi(i, r, n), n;
670
704
  };
671
- let ms = class extends Ws {
705
+ let _s = class extends Vs {
672
706
  handleClick() {
673
707
  const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
674
708
  this.scrollElement.shiftSections(parseInt(e || "1"), i);
675
709
  }
676
710
  };
677
- ms = pi([
678
- Yt("e-scroll-step-button")
679
- ], ms);
680
- var fi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, Si = (e, i, r, h) => {
681
- for (var n = h > 1 ? void 0 : h ? di(i, r) : i, u = e.length - 1, S; u >= 0; u--)
682
- (S = e[u]) && (n = (h ? S(i, r, n) : S(n)) || n);
683
- return h && n && fi(i, r, n), n;
684
- }, Ms = (e, i, r) => {
711
+ _s = gi([
712
+ ee("e-scroll-step-button")
713
+ ], _s);
714
+ var wi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, _i = (e, i, r, h) => {
715
+ for (var n = h > 1 ? void 0 : h ? bi(i, r) : i, p = e.length - 1, S; p >= 0; p--)
716
+ (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
717
+ return h && n && wi(i, r, n), n;
718
+ }, zs = (e, i, r) => {
685
719
  if (!i.has(e))
686
720
  throw TypeError("Cannot " + r);
687
- }, $t = (e, i, r) => (Ms(e, i, "read from private field"), r ? r.call(e) : i.get(e)), vs = (e, i, r) => {
721
+ }, Ft = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), Cs = (e, i, r) => {
688
722
  if (i.has(e))
689
723
  throw TypeError("Cannot add the same private member more than once");
690
724
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
691
- }, gs = (e, i, r, h) => (Ms(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _t, he, j, St, qt, pe, fe, Zt;
692
- class mi {
725
+ }, ys = (e, i, r, h) => (zs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), yt, le, tt, mt, Qt, ve, me, Xt;
726
+ class Ci {
693
727
  constructor(i, r, h) {
694
- z(this, j, void 0);
695
- z(this, St, void 0);
696
- z(this, qt, void 0);
697
- z(this, pe, void 0);
698
- z(this, fe, () => {
699
- a(this, St).scrollToSection(a(this, qt), a(this, pe));
728
+ z(this, tt, void 0);
729
+ z(this, mt, void 0);
730
+ z(this, Qt, void 0);
731
+ z(this, ve, void 0);
732
+ z(this, me, () => {
733
+ a(this, mt).scrollToSection(a(this, Qt), a(this, ve));
700
734
  });
701
- z(this, Zt, () => {
702
- a(this, j).classList.toggle(
735
+ z(this, Xt, () => {
736
+ a(this, tt).classList.toggle(
703
737
  "current",
704
- a(this, St).counter.current === a(this, qt)
738
+ a(this, mt).counter.current === a(this, Qt)
705
739
  );
706
740
  });
707
- F(this, j, document.createElement("button")), F(this, St, i), F(this, pe, h), F(this, qt, r), a(this, j).addEventListener("click", a(this, fe)), a(this, St).counter.subscribe(a(this, Zt)), a(this, Zt).call(this);
741
+ F(this, tt, document.createElement("button")), F(this, mt, i), F(this, ve, h), F(this, Qt, r), a(this, tt).addEventListener("click", a(this, me)), a(this, mt).counter.subscribe(a(this, Xt)), a(this, Xt).call(this);
708
742
  }
709
743
  get element() {
710
- return a(this, j);
744
+ return a(this, tt);
711
745
  }
712
746
  destroy() {
713
- a(this, j).removeEventListener("click", a(this, fe)), a(this, St).counter.unsubscribe(a(this, Zt)), a(this, j).remove();
747
+ a(this, tt).removeEventListener("click", a(this, me)), a(this, mt).counter.unsubscribe(a(this, Xt)), a(this, tt).remove();
714
748
  }
715
749
  }
716
- j = new WeakMap(), St = new WeakMap(), qt = new WeakMap(), pe = new WeakMap(), fe = new WeakMap(), Zt = new WeakMap();
717
- let ws = class extends Re {
750
+ tt = new WeakMap(), mt = new WeakMap(), Qt = new WeakMap(), ve = new WeakMap(), me = new WeakMap(), Xt = new WeakMap();
751
+ let ks = class extends He {
718
752
  constructor() {
719
- super(...arguments), vs(this, _t, []), vs(this, he, Cs(() => {
720
- $t(this, _t).forEach((e) => e.destroy()), gs(this, _t, []);
753
+ super(...arguments), Cs(this, yt, []), Cs(this, le, Ms(() => {
754
+ Ft(this, yt).forEach((e) => e.destroy()), ys(this, yt, []);
721
755
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
722
- const i = new mi(
756
+ const i = new Ci(
723
757
  this.scrollElement,
724
758
  e,
725
759
  this.getAttribute("behaviour") || "smooth"
726
760
  );
727
- this.appendChild(i.element), $t(this, _t).push(i);
761
+ this.appendChild(i.element), Ft(this, yt).push(i);
728
762
  }
729
763
  }, 0));
730
764
  }
731
765
  connectedCallback() {
732
766
  super.connectedCallback(), this.scrollElement.addEventListener(
733
767
  "sectionsChange",
734
- $t(this, he)
735
- ), $t(this, he).call(this);
768
+ Ft(this, le)
769
+ ), Ft(this, le).call(this);
736
770
  }
737
771
  disconnectedCallback() {
738
772
  this.scrollElement.removeEventListener(
739
773
  "sectionsChange",
740
- $t(this, he)
741
- ), $t(this, _t).forEach((e) => e.destroy()), gs(this, _t, []);
774
+ Ft(this, le)
775
+ ), Ft(this, yt).forEach((e) => e.destroy()), ys(this, yt, []);
742
776
  }
743
777
  };
744
- _t = /* @__PURE__ */ new WeakMap();
745
- he = /* @__PURE__ */ new WeakMap();
746
- ws = Si([
747
- Yt("e-scroll-bullet-buttons")
748
- ], ws);
749
- var vi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, wi = (e, i, r, h) => {
750
- for (var n = h > 1 ? void 0 : h ? gi(i, r) : i, u = e.length - 1, S; u >= 0; u--)
751
- (S = e[u]) && (n = (h ? S(i, r, n) : S(n)) || n);
752
- return h && n && vi(i, r, n), n;
753
- }, ns = (e, i, r) => {
778
+ yt = /* @__PURE__ */ new WeakMap();
779
+ le = /* @__PURE__ */ new WeakMap();
780
+ ks = _i([
781
+ ee("e-scroll-bullet-buttons")
782
+ ], ks);
783
+ var yi = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Pi = (e, i, r, h) => {
784
+ for (var n = h > 1 ? void 0 : h ? ki(i, r) : i, p = e.length - 1, S; p >= 0; p--)
785
+ (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
786
+ return h && n && yi(i, r, n), n;
787
+ }, us = (e, i, r) => {
754
788
  if (!i.has(e))
755
789
  throw TypeError("Cannot " + r);
756
- }, s = (e, i, r) => (ns(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
790
+ }, s = (e, i, r) => (us(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
757
791
  if (i.has(e))
758
792
  throw TypeError("Cannot add the same private member more than once");
759
793
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
760
- }, m = (e, i, r, h) => (ns(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), y = (e, i, r) => (ns(e, i, "access private method"), r), Bt, Ct, yt, kt, Pt, $, B, H, G, Mt, L, ct, ut, nt, at, ot, Ht, ne, x, q, U, pt, ft, Q, Ce, v, Gt, Nt, ye, I, X, V, M, T, ae, Lt, W, ke, Ne, as, Es, Ke, xs, Ue, Ls, qe, Vs, Ze, zs, Je, $s, Qe, Fs, Pe, oe, ht, Wt, os, Ds, ls, Os, We, Xe, Me;
761
- let bs = class extends Re {
794
+ }, v = (e, i, r, h) => (us(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), y = (e, i, r) => (us(e, i, "access private method"), r), Nt, kt, Pt, Wt, Mt, D, H, G, N, xt, L, pt, ft, ot, lt, ct, Ut, ce, x, Z, q, dt, St, X, Me, m, Kt, qt, Ee, B, Y, V, M, T, ue, zt, W, xe, Je, ps, $s, Qe, Ds, Xe, Fs, Ye, Os, je, As, ts, Rs, es, Ts, Le, pe, nt, Et, fs, Is, ds, Bs, Ve, ss, ze;
795
+ let Ps = class extends He {
762
796
  constructor() {
763
- super(...arguments), o(this, ke), o(this, as), o(this, Ke), o(this, Ue), o(this, qe), o(this, Ze), o(this, Je), o(this, Qe), o(this, ht), o(this, os), o(this, ls), o(this, We), o(this, Bt, new d(this, "--target", "")), o(this, Ct, new d(this, "--disabled", !1)), o(this, yt, new d(
797
+ super(...arguments), o(this, xe), o(this, ps), o(this, Qe), o(this, Xe), o(this, Ye), o(this, je), o(this, ts), o(this, es), o(this, nt), o(this, fs), o(this, ds), o(this, Ve), o(this, Nt, new u(this, "--target", "")), o(this, kt, new u(this, "--disabled", !1)), o(this, Pt, new u(
764
798
  this,
765
799
  "--distance-offset",
766
800
  0
767
- )), o(this, kt, new d(this, "--start-offset", 0)), o(this, Pt, new d(
801
+ )), o(this, Wt, new u(this, "--start-offset", 0)), o(this, Mt, new u(
768
802
  this,
769
803
  "--capture-once",
770
804
  !1
771
- )), o(this, $, new d(this, "--captured", "")), o(this, B, new d(this, "--released", "")), o(this, H, new d(
805
+ )), o(this, D, new u(this, "--captured", "")), o(this, H, new u(this, "--released", "")), o(this, G, new u(
772
806
  this,
773
807
  "--captured-from-start",
774
808
  ""
775
- )), o(this, G, new d(
809
+ )), o(this, N, new u(
776
810
  this,
777
811
  "--captured-from-finish",
778
812
  ""
779
- )), o(this, Mt, new d(
813
+ )), o(this, xt, new u(
780
814
  this,
781
815
  "--released-from-start",
782
816
  ""
783
- )), o(this, L, new d(
817
+ )), o(this, L, new u(
784
818
  this,
785
819
  "--released-from-finish",
786
820
  ""
787
- )), o(this, ct, new d(this, "--passed-var", "")), o(this, ut, new d(this, "--progress-var", "")), o(this, nt, new d(this, "--distance-var", "")), o(this, at, new d(this, "--start-var", "")), o(this, ot, new d(this, "--finish-var", "")), o(this, Ht, new d(this, "--smoothstep", !1)), o(this, ne, new d(
821
+ )), o(this, pt, new u(this, "--passed-var", "")), o(this, ft, new u(this, "--progress-var", "")), o(this, ot, new u(this, "--distance-var", "")), o(this, lt, new u(this, "--start-var", "")), o(this, ct, new u(this, "--finish-var", "")), o(this, Ut, new u(this, "--smoothstep", !1)), o(this, ce, new u(
788
822
  this,
789
823
  "--smootherstep",
790
824
  !1
791
- )), o(this, x, new vt(!1)), o(this, q, new vt(!1)), o(this, U, new vt(!1)), o(this, pt, new vt(!1)), o(this, ft, new vt(!1)), o(this, Q, new vt(!1)), o(this, Ce, []), o(this, v, this), o(this, Gt, 0), o(this, Nt, 0), o(this, ye, 0), o(this, I, 0), o(this, X, 0), o(this, V, 0), o(this, M, 0), o(this, T, 0), o(this, ae, !1), o(this, Lt, !1), o(this, W, !0), o(this, Pe, () => {
792
- s(this, W) || (this.resize(), s(this, oe).call(this));
793
- }), o(this, oe, () => {
794
- !s(this, W) && s(this, ae) && this.tick();
795
- }), o(this, Me, Cs(() => {
796
- const e = zt.getAll(this).reverse();
825
+ )), o(this, x, new wt(!1)), o(this, Z, new wt(!1)), o(this, q, new wt(!1)), o(this, dt, new wt(!1)), o(this, St, new wt(!1)), o(this, X, new wt(!1)), o(this, Me, []), o(this, m, this), o(this, Kt, 0), o(this, qt, 0), o(this, Ee, 0), o(this, B, 0), o(this, Y, 0), o(this, V, 0), o(this, M, 0), o(this, T, 0), o(this, ue, !1), o(this, zt, !1), o(this, W, !0), o(this, Le, () => {
826
+ s(this, W) || (this.resize(), s(this, pe).call(this));
827
+ }), o(this, pe, () => {
828
+ !s(this, W) && s(this, ue) && this.tick();
829
+ }), o(this, ze, Ms(() => {
830
+ const e = Dt.getAll(this).reverse();
797
831
  let i = 0;
798
832
  e.forEach((r, h) => {
799
833
  r.element === this.scrollElement && (i = h);
800
- }), m(this, Ce, e.slice(i + 1));
834
+ }), v(this, Me, e.slice(i + 1));
801
835
  }, 0));
802
836
  }
803
837
  get distanceOffsetCSSProperty() {
804
- return s(this, yt);
838
+ return s(this, Pt);
805
839
  }
806
840
  get startOffsetCSSProperty() {
807
- return s(this, kt);
841
+ return s(this, Wt);
808
842
  }
809
843
  get captureOnceCSSProperty() {
810
- return s(this, Pt);
844
+ return s(this, Mt);
811
845
  }
812
846
  get capturedCSSProperty() {
813
- return s(this, $);
847
+ return s(this, D);
814
848
  }
815
849
  get releasedCSSProperty() {
816
- return s(this, B);
850
+ return s(this, H);
817
851
  }
818
852
  get capturedFromStartCSSProperty() {
819
- return s(this, H);
853
+ return s(this, G);
820
854
  }
821
855
  get capturedFromFinishCSSProperty() {
822
- return s(this, G);
856
+ return s(this, N);
823
857
  }
824
858
  get releasedFromStartCSSProperty() {
825
- return s(this, Mt);
859
+ return s(this, xt);
826
860
  }
827
861
  get releasedFromFinishCSSProperty() {
828
862
  return s(this, L);
829
863
  }
830
864
  get passedVarCSSProperty() {
831
- return s(this, ct);
865
+ return s(this, pt);
832
866
  }
833
867
  get progressVarCSSProperty() {
834
- return s(this, ut);
868
+ return s(this, ft);
835
869
  }
836
870
  get distanceVarCSSProperty() {
837
- return s(this, nt);
871
+ return s(this, ot);
838
872
  }
839
873
  get startVarCSSProperty() {
840
- return s(this, at);
874
+ return s(this, lt);
841
875
  }
842
876
  get finishVarCSSProperty() {
843
- return s(this, ot);
877
+ return s(this, ct);
844
878
  }
845
879
  get smoothstepCSSProperty() {
846
- return s(this, Ht);
880
+ return s(this, Ut);
847
881
  }
848
882
  get smootherstepCSSProperty() {
849
- return s(this, ne);
883
+ return s(this, ce);
850
884
  }
851
885
  get disabledCSSProperty() {
852
- return s(this, Ct);
886
+ return s(this, kt);
853
887
  }
854
888
  get targetCSSProperty() {
855
- return s(this, Bt);
889
+ return s(this, Nt);
856
890
  }
857
891
  get isCaptured() {
858
892
  return s(this, x);
859
893
  }
860
894
  get isReleased() {
861
- return s(this, q);
895
+ return s(this, Z);
862
896
  }
863
897
  get isCapturedFromStart() {
864
- return s(this, U);
898
+ return s(this, q);
865
899
  }
866
900
  get isReleasedFromStart() {
867
- return s(this, pt);
901
+ return s(this, dt);
868
902
  }
869
903
  get isCapturedFromFinish() {
870
- return s(this, ft);
904
+ return s(this, St);
871
905
  }
872
906
  get isReleasedFromFinish() {
873
- return s(this, Q);
907
+ return s(this, X);
874
908
  }
875
909
  get directionPosition() {
876
- return s(this, Gt);
910
+ return s(this, Kt);
877
911
  }
878
912
  get directionSize() {
879
- return s(this, Nt);
913
+ return s(this, qt);
880
914
  }
881
915
  get passed() {
882
- return s(this, I);
916
+ return s(this, B);
883
917
  }
884
918
  get progress() {
885
- return s(this, X);
919
+ return s(this, Y);
886
920
  }
887
921
  get start() {
888
922
  return s(this, V);
@@ -894,217 +928,217 @@ let bs = class extends Re {
894
928
  return s(this, M);
895
929
  }
896
930
  get isCapturedOnce() {
897
- return s(this, Lt);
931
+ return s(this, zt);
898
932
  }
899
933
  get isDisabled() {
900
934
  return s(this, W);
901
935
  }
902
936
  resize() {
903
- m(this, Nt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), m(this, Gt, this.scrollElement.vertical ? Ee(this, this.scrollElement) : xe(this, this.scrollElement)), m(this, V, this.getStart()), m(this, M, this.getDistance()), m(this, V, s(this, V) + s(this, kt).current), m(this, M, s(this, M) + s(this, yt).current), m(this, T, s(this, V) + s(this, M)), this.scrollElement.currentScrollValue > s(this, T) && !s(this, x).current && !s(this, q).current && (s(this, x).current = !0), this.setVar(s(this, at).current, s(this, V)), this.setVar(s(this, ot).current, s(this, T)), this.setVar(s(this, nt).current, s(this, M)), m(this, ae, !0);
937
+ v(this, qt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), v(this, Kt, this.scrollElement.vertical ? $e(this, this.scrollElement) : De(this, this.scrollElement)), v(this, V, this.getStart()), v(this, M, this.getDistance()), v(this, V, s(this, V) + s(this, Wt).current), v(this, M, s(this, M) + s(this, Pt).current), v(this, T, s(this, V) + s(this, M)), this.scrollElement.currentScrollValue > s(this, T) && !s(this, x).current && !s(this, Z).current && (s(this, x).current = !0), this.setVar(s(this, lt).current, s(this, V)), this.setVar(s(this, ct).current, s(this, T)), this.setVar(s(this, ot).current, s(this, M)), v(this, ue, !0);
904
938
  }
905
939
  tick() {
906
940
  let e = this.scrollElement.currentScrollValue;
907
- s(this, Ce).forEach((r) => {
941
+ s(this, Me).forEach((r) => {
908
942
  e += r.value;
909
- }), m(this, I, this.updateValue(e - s(this, V), 0, s(this, M)) || 0), m(this, X, s(this, I) / s(this, M) || 0);
943
+ }), v(this, B, this.updateValue(e - s(this, V), 0, s(this, M)) || 0), v(this, Y, s(this, B) / s(this, M) || 0);
910
944
  const i = Math.round(e);
911
- s(this, x).current && (i > s(this, V) ? s(this, U).current || y(this, qe, Vs).call(this) : s(this, U).current && !s(this, pt).current && y(this, Je, $s).call(this), i < s(this, T) ? s(this, Q).current && !s(this, ft).current && y(this, Ze, zs).call(this) : s(this, U).current && !s(this, Q).current && y(this, Qe, Fs).call(this)), i > s(this, V) && i < s(this, T) ? (y(this, ke, Ne).call(this), s(this, x).current || y(this, Ke, xs).call(this)) : s(this, x).current && (m(this, I, As(s(this, M) / 2, s(this, I), 0, s(this, M))), m(this, X, s(this, I) / s(this, M)), y(this, ke, Ne).call(this), y(this, Ue, Ls).call(this)), s(this, Lt) && s(this, Pt).current && (s(this, $).current && s(this, v).classList.add(s(this, $).current), m(this, W, !0));
945
+ s(this, x).current && (i > s(this, V) ? s(this, q).current || y(this, Ye, Os).call(this) : s(this, q).current && !s(this, dt).current && y(this, ts, Rs).call(this), i < s(this, T) ? s(this, X).current && !s(this, St).current && y(this, je, As).call(this) : s(this, q).current && !s(this, X).current && y(this, es, Ts).call(this)), i > s(this, V) && i < s(this, T) ? (y(this, xe, Je).call(this), s(this, x).current || y(this, Qe, Ds).call(this)) : s(this, x).current && (v(this, B, Ns(s(this, M) / 2, s(this, B), 0, s(this, M))), v(this, Y, s(this, B) / s(this, M)), y(this, xe, Je).call(this), y(this, Xe, Fs).call(this)), s(this, zt) && s(this, Mt).current && (s(this, D).current && s(this, m).classList.add(s(this, D).current), v(this, W, !0));
912
946
  }
913
947
  disable() {
914
- this.style.cssText = "", m(this, Gt, 0), m(this, Nt, 0), m(this, I, 0), m(this, X, 0), m(this, V, 0), m(this, M, 0), m(this, T, 0), m(this, ae, !1), s(this, x).current = !1, s(this, q).current = !1, s(this, U).current = !1, s(this, pt).current = !1, s(this, ft).current = !1, s(this, Q).current = !1, m(this, Lt, !1), m(this, W, !0), y(this, We, Xe).call(this);
948
+ this.style.cssText = "", v(this, Kt, 0), v(this, qt, 0), v(this, B, 0), v(this, Y, 0), v(this, V, 0), v(this, M, 0), v(this, T, 0), v(this, ue, !1), s(this, x).current = !1, s(this, Z).current = !1, s(this, q).current = !1, s(this, dt).current = !1, s(this, St).current = !1, s(this, X).current = !1, v(this, zt, !1), v(this, W, !0), y(this, Ve, ss).call(this);
915
949
  }
916
950
  enable() {
917
- m(this, W, !1);
951
+ v(this, W, !1);
918
952
  }
919
953
  connectedCallback() {
920
- super.connectedCallback(), s(this, Bt).observe(), s(this, Ct).observe(), s(this, yt).observe(), s(this, kt).observe(), s(this, Pt).observe(), s(this, $).observe(), s(this, B).observe(), s(this, H).observe(), s(this, G).observe(), s(this, Mt).observe(), s(this, L).observe(), s(this, ct).observe(), s(this, ut).observe(), s(this, nt).observe(), s(this, at).observe(), s(this, ot).observe(), s(this, Ht).observe(), s(this, ne).observe();
954
+ super.connectedCallback(), s(this, Nt).observe(), s(this, kt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, N).observe(), s(this, xt).observe(), s(this, L).observe(), s(this, pt).observe(), s(this, ft).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, Ut).observe(), s(this, ce).observe();
921
955
  let e = !1;
922
956
  this.scrollElement.addEventListener(
923
957
  "sectionsChange",
924
- s(this, Me)
925
- ), s(this, Me).call(this), s(this, Ct).current || this.enable(), s(this, Bt).subscribe((i) => {
926
- i.previous && y(this, We, Xe).call(this), i.current ? i.current === "parent" ? m(this, v, this.parentElement || this) : m(this, v, document.querySelector(i.current) || this) : m(this, v, this);
927
- }), s(this, Ct).subscribe((i) => {
958
+ s(this, ze)
959
+ ), s(this, ze).call(this), s(this, kt).current || this.enable(), s(this, Nt).subscribe((i) => {
960
+ i.previous && y(this, Ve, ss).call(this), i.current ? i.current === "parent" ? v(this, m, this.parentElement || this) : v(this, m, document.querySelector(i.current) || this) : v(this, m, this);
961
+ }), s(this, kt).subscribe((i) => {
928
962
  i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
929
- }), s(this, kt).subscribe(() => {
963
+ }), s(this, Wt).subscribe(() => {
930
964
  e && !s(this, W) && this.resize();
931
- }), s(this, yt).subscribe(() => {
965
+ }), s(this, Pt).subscribe(() => {
932
966
  e && !s(this, W) && this.resize();
933
- }), s(this, $).subscribe((i) => {
934
- y(this, ht, Wt).call(this, i);
935
- }), s(this, H).subscribe((i) => {
936
- y(this, ht, Wt).call(this, i);
967
+ }), s(this, D).subscribe((i) => {
968
+ y(this, nt, Et).call(this, i);
937
969
  }), s(this, G).subscribe((i) => {
938
- y(this, ht, Wt).call(this, i);
939
- }), s(this, B).subscribe((i) => {
940
- y(this, ht, Wt).call(this, i);
941
- }), s(this, Mt).subscribe((i) => {
942
- y(this, ht, Wt).call(this, i);
970
+ y(this, nt, Et).call(this, i);
971
+ }), s(this, N).subscribe((i) => {
972
+ y(this, nt, Et).call(this, i);
973
+ }), s(this, H).subscribe((i) => {
974
+ y(this, nt, Et).call(this, i);
975
+ }), s(this, xt).subscribe((i) => {
976
+ y(this, nt, Et).call(this, i);
943
977
  }), s(this, L).subscribe((i) => {
944
- y(this, ht, Wt).call(this, i);
945
- }), s(this, Pt).subscribe((i) => {
978
+ y(this, nt, Et).call(this, i);
979
+ }), s(this, Mt).subscribe((i) => {
946
980
  s(this, W) || !i.current && i.previous && (this.resize(), this.enable());
947
- }), s(this, ct).subscribe((i) => {
981
+ }), s(this, pt).subscribe((i) => {
948
982
  s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, this.passed));
949
- }), s(this, ut).subscribe((i) => {
950
- s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, X)));
951
- }), s(this, at).subscribe((i) => {
983
+ }), s(this, ft).subscribe((i) => {
984
+ s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, Y)));
985
+ }), s(this, lt).subscribe((i) => {
952
986
  s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, V)));
953
- }), s(this, ot).subscribe((i) => {
987
+ }), s(this, ct).subscribe((i) => {
954
988
  s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, T)));
955
- }), s(this, nt).subscribe((i) => {
989
+ }), s(this, ot).subscribe((i) => {
956
990
  s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, M)));
957
- }), Jt.subscribe(s(this, Pe), ts.SEGMENT), this.scrollElement.onScroll(s(this, oe)), e = !0;
991
+ }), Yt.subscribe(s(this, Le), hs.SEGMENT), this.scrollElement.onScroll(s(this, pe)), e = !0;
958
992
  }
959
993
  disconnectedCallback() {
960
- Jt.unsubscribe(s(this, Pe)), this.scrollElement.offScroll(s(this, oe)), s(this, Bt).close(), s(this, Ct).close(), s(this, yt).close(), s(this, kt).close(), s(this, Pt).close(), s(this, $).close(), s(this, B).close(), s(this, H).close(), s(this, G).close(), s(this, Mt).close(), s(this, L).close(), s(this, ct).close(), s(this, ut).close(), s(this, nt).close(), s(this, at).close(), s(this, ot).close(), s(this, Ht).close(), s(this, ne).close(), s(this, x).close(), s(this, q).close(), s(this, U).close(), s(this, pt).close(), s(this, ft).close(), s(this, Q).close(), this.disable();
994
+ Yt.unsubscribe(s(this, Le)), this.scrollElement.offScroll(s(this, pe)), s(this, Nt).close(), s(this, kt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, N).close(), s(this, xt).close(), s(this, L).close(), s(this, pt).close(), s(this, ft).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, Ut).close(), s(this, ce).close(), s(this, x).close(), s(this, Z).close(), s(this, q).close(), s(this, dt).close(), s(this, St).close(), s(this, X).close(), this.disable();
961
995
  }
962
996
  removeVar(e) {
963
- e && s(this, v).style.removeProperty(`--${e}`);
997
+ e && s(this, m).style.removeProperty(`--${e}`);
964
998
  }
965
999
  setVar(e, i) {
966
- e && s(this, v).style.setProperty(`--${e}`, i.toString());
1000
+ e && s(this, m).style.setProperty(`--${e}`, i.toString());
967
1001
  }
968
1002
  updateValue(e, i = 0, r = 1) {
969
- return this.smootherstepCSSProperty.current ? Is(e, i, r) * r : s(this, Ht).current ? Bs(e, i, r) * r : je(e, i, r);
1003
+ return this.smootherstepCSSProperty.current ? Us(e, i, r) * r : s(this, Ut).current ? Ks(e, i, r) * r : rs(e, i, r);
970
1004
  }
971
1005
  getDistance() {
972
- return s(this, Nt) + s(this, ye);
1006
+ return s(this, qt) + s(this, Ee);
973
1007
  }
974
1008
  getStart() {
975
- return s(this, Gt) - s(this, ye);
1009
+ return s(this, Kt) - s(this, Ee);
976
1010
  }
977
1011
  };
978
- Bt = /* @__PURE__ */ new WeakMap();
979
- Ct = /* @__PURE__ */ new WeakMap();
980
- yt = /* @__PURE__ */ new WeakMap();
1012
+ Nt = /* @__PURE__ */ new WeakMap();
981
1013
  kt = /* @__PURE__ */ new WeakMap();
982
1014
  Pt = /* @__PURE__ */ new WeakMap();
983
- $ = /* @__PURE__ */ new WeakMap();
984
- B = /* @__PURE__ */ new WeakMap();
1015
+ Wt = /* @__PURE__ */ new WeakMap();
1016
+ Mt = /* @__PURE__ */ new WeakMap();
1017
+ D = /* @__PURE__ */ new WeakMap();
985
1018
  H = /* @__PURE__ */ new WeakMap();
986
1019
  G = /* @__PURE__ */ new WeakMap();
987
- Mt = /* @__PURE__ */ new WeakMap();
1020
+ N = /* @__PURE__ */ new WeakMap();
1021
+ xt = /* @__PURE__ */ new WeakMap();
988
1022
  L = /* @__PURE__ */ new WeakMap();
989
- ct = /* @__PURE__ */ new WeakMap();
990
- ut = /* @__PURE__ */ new WeakMap();
991
- nt = /* @__PURE__ */ new WeakMap();
992
- at = /* @__PURE__ */ new WeakMap();
1023
+ pt = /* @__PURE__ */ new WeakMap();
1024
+ ft = /* @__PURE__ */ new WeakMap();
993
1025
  ot = /* @__PURE__ */ new WeakMap();
994
- Ht = /* @__PURE__ */ new WeakMap();
995
- ne = /* @__PURE__ */ new WeakMap();
1026
+ lt = /* @__PURE__ */ new WeakMap();
1027
+ ct = /* @__PURE__ */ new WeakMap();
1028
+ Ut = /* @__PURE__ */ new WeakMap();
1029
+ ce = /* @__PURE__ */ new WeakMap();
996
1030
  x = /* @__PURE__ */ new WeakMap();
1031
+ Z = /* @__PURE__ */ new WeakMap();
997
1032
  q = /* @__PURE__ */ new WeakMap();
998
- U = /* @__PURE__ */ new WeakMap();
999
- pt = /* @__PURE__ */ new WeakMap();
1000
- ft = /* @__PURE__ */ new WeakMap();
1001
- Q = /* @__PURE__ */ new WeakMap();
1002
- Ce = /* @__PURE__ */ new WeakMap();
1003
- v = /* @__PURE__ */ new WeakMap();
1004
- Gt = /* @__PURE__ */ new WeakMap();
1005
- Nt = /* @__PURE__ */ new WeakMap();
1006
- ye = /* @__PURE__ */ new WeakMap();
1007
- I = /* @__PURE__ */ new WeakMap();
1033
+ dt = /* @__PURE__ */ new WeakMap();
1034
+ St = /* @__PURE__ */ new WeakMap();
1008
1035
  X = /* @__PURE__ */ new WeakMap();
1036
+ Me = /* @__PURE__ */ new WeakMap();
1037
+ m = /* @__PURE__ */ new WeakMap();
1038
+ Kt = /* @__PURE__ */ new WeakMap();
1039
+ qt = /* @__PURE__ */ new WeakMap();
1040
+ Ee = /* @__PURE__ */ new WeakMap();
1041
+ B = /* @__PURE__ */ new WeakMap();
1042
+ Y = /* @__PURE__ */ new WeakMap();
1009
1043
  V = /* @__PURE__ */ new WeakMap();
1010
1044
  M = /* @__PURE__ */ new WeakMap();
1011
1045
  T = /* @__PURE__ */ new WeakMap();
1012
- ae = /* @__PURE__ */ new WeakMap();
1013
- Lt = /* @__PURE__ */ new WeakMap();
1046
+ ue = /* @__PURE__ */ new WeakMap();
1047
+ zt = /* @__PURE__ */ new WeakMap();
1014
1048
  W = /* @__PURE__ */ new WeakMap();
1015
- ke = /* @__PURE__ */ new WeakSet();
1016
- Ne = function() {
1017
- y(this, as, Es).call(this), this.setVar(s(this, ct).current, s(this, I)), this.setVar(s(this, ut).current, s(this, X));
1049
+ xe = /* @__PURE__ */ new WeakSet();
1050
+ Je = function() {
1051
+ y(this, ps, $s).call(this), this.setVar(s(this, pt).current, s(this, B)), this.setVar(s(this, ft).current, s(this, Y));
1018
1052
  };
1019
- as = /* @__PURE__ */ new WeakSet();
1020
- Es = function() {
1053
+ ps = /* @__PURE__ */ new WeakSet();
1054
+ $s = function() {
1021
1055
  this.dispatchEvent(
1022
1056
  new CustomEvent("segmentPass", {
1023
1057
  detail: {
1024
1058
  distance: s(this, M),
1025
1059
  start: s(this, V),
1026
1060
  finish: s(this, T),
1027
- passed: s(this, I),
1028
- progress: s(this, X)
1061
+ passed: s(this, B),
1062
+ progress: s(this, Y)
1029
1063
  }
1030
1064
  })
1031
1065
  );
1032
1066
  };
1033
- Ke = /* @__PURE__ */ new WeakSet();
1034
- xs = function() {
1035
- s(this, x).current = !0, s(this, q).current = !1, m(this, Lt, !0), s(this, B).current && s(this, v).classList.remove(s(this, B).current), s(this, L).current && s(this, v).classList.remove(
1067
+ Qe = /* @__PURE__ */ new WeakSet();
1068
+ Ds = function() {
1069
+ s(this, x).current = !0, s(this, Z).current = !1, v(this, zt, !0), s(this, H).current && s(this, m).classList.remove(s(this, H).current), s(this, L).current && s(this, m).classList.remove(
1036
1070
  s(this, L).current
1037
- ), s(this, L).current && s(this, v).classList.remove(
1071
+ ), s(this, L).current && s(this, m).classList.remove(
1038
1072
  s(this, L).current
1039
- ), s(this, $).current && s(this, v).classList.add(s(this, $).current);
1073
+ ), s(this, D).current && s(this, m).classList.add(s(this, D).current);
1040
1074
  };
1041
- Ue = /* @__PURE__ */ new WeakSet();
1042
- Ls = function() {
1043
- s(this, q).current = !0, s(this, x).current = !1, m(this, Lt, !0), s(this, $).current && s(this, v).classList.remove(s(this, $).current), s(this, H).current && s(this, v).classList.remove(
1044
- s(this, H).current
1045
- ), s(this, G).current && s(this, v).classList.remove(
1075
+ Xe = /* @__PURE__ */ new WeakSet();
1076
+ Fs = function() {
1077
+ s(this, Z).current = !0, s(this, x).current = !1, v(this, zt, !0), s(this, D).current && s(this, m).classList.remove(s(this, D).current), s(this, G).current && s(this, m).classList.remove(
1046
1078
  s(this, G).current
1047
- ), s(this, B).current && s(this, v).classList.add(s(this, B).current);
1079
+ ), s(this, N).current && s(this, m).classList.remove(
1080
+ s(this, N).current
1081
+ ), s(this, H).current && s(this, m).classList.add(s(this, H).current);
1048
1082
  };
1049
- qe = /* @__PURE__ */ new WeakSet();
1050
- Vs = function() {
1051
- s(this, x).current = !0, s(this, U).current = !0, s(this, pt).current = !1, s(this, H).current && s(this, v).classList.add(
1052
- s(this, H).current
1083
+ Ye = /* @__PURE__ */ new WeakSet();
1084
+ Os = function() {
1085
+ s(this, x).current = !0, s(this, q).current = !0, s(this, dt).current = !1, s(this, G).current && s(this, m).classList.add(
1086
+ s(this, G).current
1053
1087
  );
1054
1088
  };
1055
- Ze = /* @__PURE__ */ new WeakSet();
1056
- zs = function() {
1057
- s(this, x).current = !0, s(this, ft).current = !0, s(this, Q).current = !1, s(this, G).current && s(this, v).classList.add(
1058
- s(this, G).current
1089
+ je = /* @__PURE__ */ new WeakSet();
1090
+ As = function() {
1091
+ s(this, x).current = !0, s(this, St).current = !0, s(this, X).current = !1, s(this, N).current && s(this, m).classList.add(
1092
+ s(this, N).current
1059
1093
  );
1060
1094
  };
1061
- Je = /* @__PURE__ */ new WeakSet();
1062
- $s = function() {
1063
- s(this, q).current = !0, s(this, pt).current = !0, s(this, U).current = !1, s(this, L).current && s(this, v).classList.add(
1095
+ ts = /* @__PURE__ */ new WeakSet();
1096
+ Rs = function() {
1097
+ s(this, Z).current = !0, s(this, dt).current = !0, s(this, q).current = !1, s(this, L).current && s(this, m).classList.add(
1064
1098
  s(this, L).current
1065
1099
  );
1066
1100
  };
1067
- Qe = /* @__PURE__ */ new WeakSet();
1068
- Fs = function() {
1069
- s(this, q).current = !0, s(this, Q).current = !0, s(this, ft).current = !1, s(this, L).current && s(this, v).classList.add(
1101
+ es = /* @__PURE__ */ new WeakSet();
1102
+ Ts = function() {
1103
+ s(this, Z).current = !0, s(this, X).current = !0, s(this, St).current = !1, s(this, L).current && s(this, m).classList.add(
1070
1104
  s(this, L).current
1071
1105
  );
1072
1106
  };
1073
- Pe = /* @__PURE__ */ new WeakMap();
1074
- oe = /* @__PURE__ */ new WeakMap();
1075
- ht = /* @__PURE__ */ new WeakSet();
1076
- Wt = function(e) {
1107
+ Le = /* @__PURE__ */ new WeakMap();
1108
+ pe = /* @__PURE__ */ new WeakMap();
1109
+ nt = /* @__PURE__ */ new WeakSet();
1110
+ Et = function(e) {
1077
1111
  if (s(this, W)) {
1078
- e.previous && s(this, v).classList.remove(e.previous), e.current && s(this, v).classList.remove(e.current);
1112
+ e.previous && s(this, m).classList.remove(e.previous), e.current && s(this, m).classList.remove(e.current);
1079
1113
  return;
1080
1114
  }
1081
- e.current && s(this, x).current ? (e.previous && s(this, v).classList.remove(e.previous), s(this, v).classList.add(e.current)) : !e.current && e.previous && s(this, v).classList.remove(e.previous);
1115
+ e.current && s(this, x).current ? (e.previous && s(this, m).classList.remove(e.previous), s(this, m).classList.add(e.current)) : !e.current && e.previous && s(this, m).classList.remove(e.previous);
1082
1116
  };
1083
- os = /* @__PURE__ */ new WeakSet();
1084
- Ds = function(...e) {
1117
+ fs = /* @__PURE__ */ new WeakSet();
1118
+ Is = function(...e) {
1085
1119
  e.forEach((i) => {
1086
- i && s(this, v).classList.remove(i);
1120
+ i && s(this, m).classList.remove(i);
1087
1121
  });
1088
1122
  };
1089
- ls = /* @__PURE__ */ new WeakSet();
1090
- Os = function(...e) {
1123
+ ds = /* @__PURE__ */ new WeakSet();
1124
+ Bs = function(...e) {
1091
1125
  e.forEach((i) => {
1092
- i && s(this, v).style.removeProperty(`--${i}`);
1126
+ i && s(this, m).style.removeProperty(`--${i}`);
1093
1127
  });
1094
1128
  };
1095
- We = /* @__PURE__ */ new WeakSet();
1096
- Xe = function() {
1097
- y(this, os, Ds).call(this, s(this, $).current, s(this, H).current, s(this, G).current, s(this, B).current, s(this, Mt).current, s(this, L).current), y(this, ls, Os).call(this, s(this, ct).current, s(this, ut).current, s(this, nt).current, s(this, at).current, s(this, ot).current);
1129
+ Ve = /* @__PURE__ */ new WeakSet();
1130
+ ss = function() {
1131
+ y(this, fs, Is).call(this, s(this, D).current, s(this, G).current, s(this, N).current, s(this, H).current, s(this, xt).current, s(this, L).current), y(this, ds, Bs).call(this, s(this, pt).current, s(this, ft).current, s(this, ot).current, s(this, lt).current, s(this, ct).current);
1098
1132
  };
1099
- Me = /* @__PURE__ */ new WeakMap();
1100
- bs = wi([
1101
- Yt("e-scroll-segment")
1102
- ], bs);
1133
+ ze = /* @__PURE__ */ new WeakMap();
1134
+ Ps = Pi([
1135
+ ee("e-scroll-segment")
1136
+ ], Ps);
1103
1137
  export {
1104
- ws as ScrollBulletButtonsElement,
1105
- De as ScrollElement,
1106
- bs as ScrollSegmentElement,
1107
- Ss as ScrollSetButtonElement,
1108
- ms as ScrollStepButtonElement,
1109
- ds as ScrollbarElement
1138
+ ks as ScrollBulletButtonsElement,
1139
+ Ie as ScrollElement,
1140
+ Ps as ScrollSegmentElement,
1141
+ bs as ScrollSetButtonElement,
1142
+ _s as ScrollStepButtonElement,
1143
+ ws as ScrollbarElement
1110
1144
  };