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