aptechka 0.5.22 → 0.5.23

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