aptechka 0.5.41 → 0.5.42

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