aptechka 0.71.21 → 0.71.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,20 +1,20 @@
1
- var ri = Object.defineProperty;
2
- var Os = Object.getOwnPropertySymbols, hi = Object.getPrototypeOf, ni = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, li = Reflect.get;
3
- var $s = (a) => {
1
+ var oi = Object.defineProperty;
2
+ var Ns = Object.getOwnPropertySymbols, ci = Object.getPrototypeOf, li = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ai = Reflect.get;
3
+ var Gs = (a) => {
4
4
  throw TypeError(a);
5
5
  };
6
- var Hs = (a, n, e) => n in a ? ri(a, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[n] = e, Bs = (a, n) => {
6
+ var qs = (a, n, e) => n in a ? oi(a, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[n] = e, Us = (a, n) => {
7
7
  for (var e in n || (n = {}))
8
- ni.call(n, e) && Hs(a, e, n[e]);
9
- if (Os)
10
- for (var e of Os(n))
11
- oi.call(n, e) && Hs(a, e, n[e]);
8
+ li.call(n, e) && qs(a, e, n[e]);
9
+ if (Ns)
10
+ for (var e of Ns(n))
11
+ ui.call(n, e) && qs(a, e, n[e]);
12
12
  return a;
13
13
  };
14
- var xs = (a, n, e) => n.has(a) || $s("Cannot " + e);
15
- var t = (a, n, e) => (xs(a, n, "read from private field"), e ? e.call(a) : n.get(a)), i = (a, n, e) => n.has(a) ? $s("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), r = (a, n, e, s) => (xs(a, n, "write to private field"), s ? s.call(a, e) : n.set(a, e), e), o = (a, n, e) => (xs(a, n, "access private method"), e);
16
- var Ws = (a, n, e) => li(hi(a), e, n);
17
- var Ns = (a, n, e) => new Promise((s, h) => {
14
+ var Ls = (a, n, e) => n.has(a) || Gs("Cannot " + e);
15
+ var t = (a, n, e) => (Ls(a, n, "read from private field"), e ? e.call(a) : n.get(a)), i = (a, n, e) => n.has(a) ? Gs("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), r = (a, n, e, s) => (Ls(a, n, "write to private field"), s ? s.call(a, e) : n.set(a, e), e), o = (a, n, e) => (Ls(a, n, "access private method"), e);
16
+ var ks = (a, n, e) => ai(ci(a), e, n);
17
+ var zs = (a, n, e) => new Promise((s, h) => {
18
18
  var u = (C) => {
19
19
  try {
20
20
  v(e.next(C));
@@ -30,44 +30,44 @@ var Ns = (a, n, e) => new Promise((s, h) => {
30
30
  }, v = (C) => C.done ? s(C.value) : Promise.resolve(C.value).then(u, g);
31
31
  v((e = e.apply(a, n)).next());
32
32
  });
33
- import { S as le } from "../Store-0BVty6AZ.js";
34
- import { i as _ } from "../index-Bv9zgfdb.js";
35
- import { q as ci } from "../easings-BEmRlrDd.js";
36
- import { i as ui } from "../element-CGVl1jA-.js";
33
+ import { S as ce } from "../Store-0BVty6AZ.js";
34
+ import { i as q } from "../index-Bv9zgfdb.js";
35
+ import { q as di } from "../easings-BEmRlrDd.js";
36
+ import { i as pi } from "../element-CGVl1jA-.js";
37
37
  import { d as tt } from "../events-CsVF98U6.js";
38
38
  import { d as ws } from "../function-C10DGppn.js";
39
- import { a as hs, g as ns, c as ai } from "../layout-DpZo-I0y.js";
40
- import { c as Gs, s as di } from "../math-BOBiC4TN.js";
41
- import { p as pi, l as fi } from "../number-CumqY64S.js";
42
- import { c as Us } from "../stylesheet-DpnWNVyD.js";
39
+ import { a as ns, g as os, c as fi } from "../layout-DpZo-I0y.js";
40
+ import { c as Zs, s as bi } from "../math-BOBiC4TN.js";
41
+ import { p as mi, l as Si } from "../number-CumqY64S.js";
42
+ import { c as js } from "../stylesheet-DpnWNVyD.js";
43
43
  import "../ticker/index.js";
44
- import { TICK_ORDER as Ks, RESIZE_ORDER as Es } from "../order/index.js";
45
- import { D as Zs } from "../Damped-CtQmJ52v.js";
46
- import { T as bi } from "../Tweened-BlZB0vl4.js";
47
- import { W as mi, K as Si, D as gi, A as vi } from "../DragControls-CkhCt-4W.js";
44
+ import { TICK_ORDER as Js, RESIZE_ORDER as xs } from "../order/index.js";
45
+ import { D as Qs } from "../Damped-CtQmJ52v.js";
46
+ import { T as gi } from "../Tweened-BlZB0vl4.js";
47
+ import { W as vi, K as yi, D as Ci, A as Pi } from "../DragControls-CkhCt-4W.js";
48
48
  import { windowResizer as ft } from "../window-resizer/index.js";
49
49
  import { scrollEntries as ne } from "../scroll-entries/index.js";
50
- import { cssUnitParser as qs } from "../css-unit-parser/index.js";
51
- import { CSSProperty as l } from "../css-property/index.js";
52
- import { d as yi } from "../Viewport-DA10iWAO.js";
50
+ import { cssUnitParser as Ks } from "../css-unit-parser/index.js";
51
+ import { CSSProperty as c } from "../css-property/index.js";
52
+ import { d as Ei } from "../Viewport-DA10iWAO.js";
53
53
  import "construct-style-sheets-polyfill";
54
- import { elementResizer as rs } from "../element-resizer/index.js";
55
- import { s as Ci } from "../gestures-CcXV6fCp.js";
56
- import { b as Pi } from "../dom-CVWzyXPH.js";
57
- var f, Me, w, os, ls, ae, bt, Dt, de, pe, es;
58
- class wi {
54
+ import { elementResizer as hs } from "../element-resizer/index.js";
55
+ import { s as wi } from "../gestures-CcXV6fCp.js";
56
+ import { b as xi } from "../dom-CVWzyXPH.js";
57
+ var f, Me, E, cs, ls, ae, bt, Dt, de, pe, ss;
58
+ class Li {
59
59
  constructor(n, e, s) {
60
60
  i(this, pe);
61
61
  i(this, f);
62
62
  i(this, Me);
63
- i(this, w);
64
- i(this, os, 0);
63
+ i(this, E);
64
+ i(this, cs, 0);
65
65
  i(this, ls, 0);
66
66
  i(this, ae, 0);
67
67
  i(this, bt, 0);
68
68
  i(this, Dt, null);
69
69
  i(this, de, 0);
70
- r(this, f, n), r(this, Me, e), r(this, w, s), ne.register(t(this, f)), this.setIndex(t(this, Me));
70
+ r(this, f, n), r(this, Me, e), r(this, E, s), ne.register(t(this, f)), this.setIndex(t(this, Me));
71
71
  }
72
72
  get element() {
73
73
  return t(this, f);
@@ -79,7 +79,7 @@ class wi {
79
79
  return t(this, ae);
80
80
  }
81
81
  get width() {
82
- return t(this, os);
82
+ return t(this, cs);
83
83
  }
84
84
  get height() {
85
85
  return t(this, ls);
@@ -97,22 +97,22 @@ class wi {
97
97
  t(this, f).style.transform = "", this.setMark(null), this.setIndex(null), this.setCurrentIndex(null), this.setCurrentIndexArc(null), this.setCurrentIndexArcAbs(null), this.setMiddle(!1), this.setSize();
98
98
  }
99
99
  setSize(n) {
100
- n ? (t(this, f).style.setProperty("--size", n + "px"), t(this, w).axisCSSProperty.current === "x" ? (t(this, f).style.width = n + "px", t(this, f).style.height = "") : (t(this, f).style.height = n + "px", t(this, f).style.width = "")) : (t(this, f).style.width = "", t(this, f).style.height = "", t(this, f).style.removeProperty("--size"));
100
+ n ? (t(this, f).style.setProperty("--size", n + "px"), t(this, E).axisCSSProperty.current === "x" ? (t(this, f).style.width = n + "px", t(this, f).style.height = "") : (t(this, f).style.height = n + "px", t(this, f).style.width = "")) : (t(this, f).style.width = "", t(this, f).style.height = "", t(this, f).style.removeProperty("--size"));
101
101
  }
102
102
  resize() {
103
- r(this, os, t(this, f).offsetWidth), r(this, ls, t(this, f).offsetHeight), r(this, ae, t(this, w).vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth), r(this, bt, t(this, w).vertical ? hs(t(this, f)) : ns(t(this, f))), r(this, bt, t(this, bt) - t(this, w).contentPosition);
103
+ r(this, cs, t(this, f).offsetWidth), r(this, ls, t(this, f).offsetHeight), r(this, ae, t(this, E).vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth), r(this, bt, t(this, E).vertical ? ns(t(this, f)) : os(t(this, f))), r(this, bt, t(this, bt) - t(this, E).contentPosition);
104
104
  }
105
105
  transform() {
106
- const n = t(this, w).shiftSectionPositionCSSProperty.current;
106
+ const n = t(this, E).shiftSectionPositionCSSProperty.current;
107
107
  let e = n;
108
- const s = t(this, w).viewportSize * t(this, w).sectionDistanceScaleCSSProperty.current;
109
- t(this, w).loopCSSProperty.current && t(this, bt) + t(this, ae) <= t(this, w).currentScrollValue - n / 2 && (e = (t(this, w).distance - n) * -1 - t(this, w).gap), ne.update(
108
+ const s = t(this, E).viewportSize * t(this, E).sectionDistanceScaleCSSProperty.current;
109
+ t(this, E).loopCSSProperty.current && t(this, bt) + t(this, ae) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), ne.update(
110
110
  t(this, f),
111
- t(this, w).axisCSSProperty.current,
111
+ t(this, E).axisCSSProperty.current,
112
112
  e
113
113
  );
114
- const h = t(this, w).currentScrollValue + e, u = t(this, bt) - t(this, w).viewportSize - s, g = t(this, bt) + t(this, ae) + s, v = pi(Gs(h, u, g), 3);
115
- r(this, de, v * -1), t(this, w).vertical ? t(this, f).style.transform = `translate3d(0px, ${t(this, de)}px, 0px)` : t(this, f).style.transform = `translate3d(${t(this, de)}px, 0px, 0px)`;
114
+ const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, ae) + s, v = mi(Zs(h, u, g), 3);
115
+ r(this, de, v * -1), t(this, E).vertical ? t(this, f).style.transform = `translate3d(0px, ${t(this, de)}px, 0px)` : t(this, f).style.transform = `translate3d(${t(this, de)}px, 0px, 0px)`;
116
116
  }
117
117
  setMark(n) {
118
118
  t(this, Dt) !== n && (t(this, Dt) && t(this, f).classList.remove(t(this, Dt)), n && t(this, f).classList.add(n), r(this, Dt, n), tt(t(this, f), "scrollSectionMarkChange", {
@@ -127,22 +127,22 @@ class wi {
127
127
  t(this, f).classList.toggle("middle", n);
128
128
  }
129
129
  setIndex(n) {
130
- o(this, pe, es).call(this, "index", n);
130
+ o(this, pe, ss).call(this, "index", n);
131
131
  }
132
132
  setCurrentIndex(n) {
133
- o(this, pe, es).call(this, "current-index", n);
133
+ o(this, pe, ss).call(this, "current-index", n);
134
134
  }
135
135
  setCurrentIndexArc(n) {
136
- o(this, pe, es).call(this, "current-index-arc", n);
136
+ o(this, pe, ss).call(this, "current-index-arc", n);
137
137
  }
138
138
  setCurrentIndexArcAbs(n) {
139
- o(this, pe, es).call(this, "current-index-arc-abs", n);
139
+ o(this, pe, ss).call(this, "current-index-arc-abs", n);
140
140
  }
141
141
  }
142
- f = new WeakMap(), Me = new WeakMap(), w = new WeakMap(), os = new WeakMap(), ls = new WeakMap(), ae = new WeakMap(), bt = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), pe = new WeakSet(), es = function(n, e) {
142
+ f = new WeakMap(), Me = new WeakMap(), E = new WeakMap(), cs = new WeakMap(), ls = new WeakMap(), ae = new WeakMap(), bt = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), pe = new WeakSet(), ss = function(n, e) {
143
143
  e !== null ? (t(this, f).style.setProperty(`--${n}`, e.toString()), t(this, f).setAttribute(`data-${n}`, e.toString())) : (t(this, f).style.removeProperty(`--${n}`), t(this, f).removeAttribute(`data-${n}`));
144
144
  };
145
- const Ei = Us({
145
+ const ki = js({
146
146
  ":host": {
147
147
  position: "relative",
148
148
  width: "100%",
@@ -181,118 +181,118 @@ const Ei = Us({
181
181
  flexShrink: "0"
182
182
  }
183
183
  });
184
- var p, fe, R, Ot, mt, St, gt, et, Ht, $t, vt, Bt, be, st, V, me, Se, ge, ve, Fe, ye, j, Ce, Wt, J, Nt, yt, Pe, qt, we, Gt, Ut, Kt, b, Te, q, d, cs, us, L, P, G, it, Zt, rt, M, D, Re, Ct, Pt, wt, U, De, _t, jt, Ee, ht, k, Oe, Et, xe, He, c, zs, ss, Ie, Cs, Ps, Vs, ks, F, as, _s, $e, ds, As, Is, ce, js, ps, is, Be;
185
- class Ls extends HTMLElement {
184
+ var p, fe, R, Ot, mt, St, gt, et, Ht, $t, vt, Bt, be, st, z, me, Se, ge, ve, Fe, ye, J, Ce, Wt, Q, Nt, yt, Pe, qt, Ee, Gt, Ut, Kt, b, Te, G, d, us, as, L, P, U, it, Zt, rt, M, D, Re, Ct, Pt, Et, K, De, jt, Jt, we, ht, V, Oe, wt, xe, He, l, As, is, Ie, Ps, Es, Is, Ms, F, ds, Xs, $e, ps, Fs, Ts, le, Ys, fs, rs, Be;
185
+ class Vs extends HTMLElement {
186
186
  constructor() {
187
187
  super();
188
- i(this, c);
188
+ i(this, l);
189
189
  i(this, p, null);
190
- i(this, fe, new l(this, "--controls", !0));
191
- i(this, R, new l(this, "--axis", "y"));
192
- i(this, Ot, new l(this, "--reverse", !1));
193
- i(this, mt, new l(this, "--direction", 0));
194
- i(this, St, new l(this, "--pages", 0, {
190
+ i(this, fe, new c(this, "--controls", !0));
191
+ i(this, R, new c(this, "--axis", "y"));
192
+ i(this, Ot, new c(this, "--reverse", !1));
193
+ i(this, mt, new c(this, "--direction", 0));
194
+ i(this, St, new c(this, "--pages", 0, {
195
195
  validate: (e) => Math.max(0, e - 1)
196
196
  }));
197
- i(this, gt, new l(this, "--split", !1));
198
- i(this, et, new l(this, "--sectional", !1));
199
- i(this, Ht, new l(
197
+ i(this, gt, new c(this, "--split", !1));
198
+ i(this, et, new c(this, "--sectional", !1));
199
+ i(this, Ht, new c(
200
200
  this,
201
201
  "--tween-easing",
202
202
  !1
203
203
  ));
204
- i(this, $t, new l(
204
+ i(this, $t, new c(
205
205
  this,
206
206
  "--tween-duration",
207
207
  !1
208
208
  ));
209
- i(this, vt, new l(this, "--auto-size", !1));
210
- i(this, Bt, new l(
209
+ i(this, vt, new c(this, "--auto-size", !1));
210
+ i(this, Bt, new c(
211
211
  this,
212
212
  "--wheel-max-delta",
213
213
  !1
214
214
  ));
215
- i(this, be, new l(this, "--drag-inertion", 1));
216
- i(this, st, new l(
215
+ i(this, be, new c(this, "--drag-inertion", 1));
216
+ i(this, st, new c(
217
217
  this,
218
218
  "--sections-in-view",
219
219
  1
220
220
  ));
221
- i(this, V, new l(this, "--loop", !1));
222
- i(this, me, new l(this, "--damping", 20));
223
- i(this, Se, new l(this, "--mass", 0));
224
- i(this, ge, new l(this, "--stiffness", 0));
225
- i(this, ve, new l(this, "--mouse-drag", !1));
226
- i(this, Fe, new l(
221
+ i(this, z, new c(this, "--loop", !1));
222
+ i(this, me, new c(this, "--damping", 20));
223
+ i(this, Se, new c(this, "--mass", 0));
224
+ i(this, ge, new c(this, "--stiffness", 0));
225
+ i(this, ve, new c(this, "--mouse-drag", !1));
226
+ i(this, Fe, new c(
227
227
  this,
228
228
  "--section-distance-scale",
229
229
  0.5
230
230
  ));
231
- i(this, ye, new l(this, "--start-section", 0));
232
- i(this, j, new l(this, "--autoplay", 0));
233
- i(this, Ce, new l(
231
+ i(this, ye, new c(this, "--start-section", 0));
232
+ i(this, J, new c(this, "--autoplay", 0));
233
+ i(this, Ce, new c(
234
234
  this,
235
235
  "--autoplay-pause-duration",
236
236
  0
237
237
  ));
238
- i(this, Wt, new l(
238
+ i(this, Wt, new c(
239
239
  this,
240
240
  "--autoplay-user-direction",
241
241
  !1
242
242
  ));
243
- i(this, J, new l(this, "--classes", !1));
244
- i(this, Nt, new l(
243
+ i(this, Q, new c(this, "--classes", !1));
244
+ i(this, Nt, new c(
245
245
  this,
246
246
  "--current-index-start-offset",
247
247
  0
248
248
  ));
249
- i(this, yt, new l(
249
+ i(this, yt, new c(
250
250
  this,
251
251
  "--current-index-end-offset",
252
252
  0
253
253
  ));
254
- i(this, Pe, new l(
254
+ i(this, Pe, new c(
255
255
  this,
256
256
  "--shift-section-position",
257
257
  0,
258
258
  { rawValueCheck: !1 }
259
259
  ));
260
- i(this, qt, new l(this, "--focus-delay", 0));
261
- i(this, we, new l(
260
+ i(this, qt, new c(this, "--focus-delay", 0));
261
+ i(this, Ee, new c(
262
262
  this,
263
263
  "--focus-duration",
264
264
  3e3
265
265
  ));
266
- i(this, Gt, new l(this, "--disabled", !1));
267
- i(this, Ut, new l(this, "--hibernate", !1));
266
+ i(this, Gt, new c(this, "--disabled", !1));
267
+ i(this, Ut, new c(this, "--hibernate", !1));
268
268
  i(this, Kt, null);
269
269
  i(this, b, null);
270
270
  i(this, Te, null);
271
- i(this, q, []);
271
+ i(this, G, []);
272
272
  i(this, d, []);
273
- i(this, cs, 0);
274
273
  i(this, us, 0);
274
+ i(this, as, 0);
275
275
  i(this, L, 0);
276
276
  i(this, P, 0);
277
- i(this, G, 0);
277
+ i(this, U, 0);
278
278
  i(this, it, null);
279
279
  i(this, Zt, null);
280
280
  i(this, rt, null);
281
281
  i(this, M, null);
282
- i(this, D, new le(0));
282
+ i(this, D, new ce(0));
283
283
  i(this, Re, 0);
284
284
  i(this, Ct, 0);
285
285
  i(this, Pt, !1);
286
- i(this, wt, !0);
287
- i(this, U, !0);
286
+ i(this, Et, !0);
287
+ i(this, K, !0);
288
288
  i(this, De);
289
- i(this, _t);
290
- i(this, jt, new bi());
291
- i(this, Ee, !1);
289
+ i(this, jt);
290
+ i(this, Jt, new gi());
291
+ i(this, we, !1);
292
292
  i(this, ht, null);
293
- i(this, k, !1);
293
+ i(this, V, !1);
294
294
  i(this, Oe, null);
295
- i(this, Et, []);
295
+ i(this, wt, []);
296
296
  i(this, xe, !1);
297
297
  i(this, He);
298
298
  i(this, F, (e) => {
@@ -302,42 +302,42 @@ class Ls extends HTMLElement {
302
302
  }
303
303
  this.resize();
304
304
  });
305
- i(this, as, () => {
306
- if (!t(this, Pt) || t(this, U) || t(this, wt))
305
+ i(this, ds, () => {
306
+ if (!t(this, Pt) || t(this, K) || t(this, Et))
307
307
  return;
308
308
  const e = this.currentScrollValue;
309
309
  if (r(this, Re, Math.max(0, e - t(this, P))), t(this, d).length) {
310
- for (let s = 0; s < t(this, q).length; s++)
311
- t(this, q)[s].transform();
312
- t(this, D).current = o(this, c, is).call(this);
310
+ for (let s = 0; s < t(this, G).length; s++)
311
+ t(this, G)[s].transform();
312
+ t(this, D).current = o(this, l, rs).call(this);
313
313
  } else
314
314
  this.vertical ? t(this, b).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
315
- o(this, c, js).call(this), ne.update(
315
+ o(this, l, Ys).call(this), ne.update(
316
316
  this,
317
317
  t(this, R).current,
318
318
  e
319
319
  );
320
320
  });
321
321
  i(this, $e, (e, s) => {
322
- t(this, fe).current && (o(this, c, As).call(this, Math.sign(s) || 1), t(this, ds).call(this, e, s));
322
+ t(this, fe).current && (o(this, l, Fs).call(this, Math.sign(s) || 1), t(this, ps).call(this, e, s));
323
323
  });
324
- i(this, ds, (e, s) => {
325
- if (!t(this, _t)) {
324
+ i(this, ps, (e, s) => {
325
+ if (!t(this, jt)) {
326
326
  if (t(this, mt).current) {
327
327
  if (t(this, mt).current < 0 && s > 0)
328
328
  return;
329
329
  if (t(this, mt).current > 0 && s < 0)
330
330
  return;
331
331
  }
332
- if (!t(this, j).current && t(this, qt).current && (clearInterval(t(this, De)), r(this, De, setTimeout(() => {
333
- const h = t(this, d)[o(this, c, is).call(this)];
332
+ if (!t(this, J).current && t(this, qt).current && (clearInterval(t(this, De)), r(this, De, setTimeout(() => {
333
+ const h = t(this, d)[o(this, l, rs).call(this)];
334
334
  h && this.scrollToSection(h.index, {
335
335
  tween: {
336
- duration: t(this, we).current,
337
- easing: ci
336
+ duration: t(this, Ee).current,
337
+ easing: di
338
338
  }
339
339
  });
340
- }, t(this, qt).current))), !(e.includes("drag") && !yi.isTouch && !t(this, ve).current)) {
340
+ }, t(this, qt).current))), !(e.includes("drag") && !Ei.isTouch && !t(this, ve).current)) {
341
341
  if (t(this, et).current && e !== "drag") {
342
342
  const h = Math.sign(s);
343
343
  if (t(this, d).length) {
@@ -347,17 +347,17 @@ class Ls extends HTMLElement {
347
347
  duration: t(this, $t).current || 500
348
348
  } : void 0
349
349
  };
350
- t(this, Ee) ? this.scrollToSection(o(this, c, is).call(this, !0), u) : this.shiftSections(h, u);
350
+ t(this, we) ? this.scrollToSection(o(this, l, rs).call(this, !0), u) : this.shiftSections(h, u);
351
351
  } else
352
352
  t(this, p).shift(h * t(this, L));
353
353
  } else
354
354
  t(this, p).shift(s);
355
- r(this, Ee, e === "drag");
355
+ r(this, we, e === "drag");
356
356
  }
357
357
  }
358
358
  });
359
- i(this, ps, ws(() => {
360
- const e = t(this, Et).reduce((s, h) => {
359
+ i(this, fs, ws(() => {
360
+ const e = t(this, wt).reduce((s, h) => {
361
361
  const u = this.vertical ? h.width : h.height;
362
362
  return u > s ? u : s;
363
363
  }, 0);
@@ -366,11 +366,11 @@ class Ls extends HTMLElement {
366
366
  }, 10));
367
367
  }, 20));
368
368
  i(this, Be, () => {
369
- r(this, k, !0), this.hibernatedCSSProperty.current || o(this, c, ks).call(this), rs.subscribe(this, t(this, F)), ft.unsubscribe(t(this, Be));
369
+ r(this, V, !0), this.hibernatedCSSProperty.current || o(this, l, Ms).call(this), hs.subscribe(this, t(this, F)), ft.unsubscribe(t(this, Be));
370
370
  });
371
- if (_) {
371
+ if (q) {
372
372
  const e = this.attachShadow({ mode: "open" });
373
- e.adoptedStyleSheets = [Ei];
373
+ e.adoptedStyleSheets = [ki];
374
374
  const s = document.createElement("div");
375
375
  s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Kt, document.createElement("div")), t(this, Kt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Te, document.createElement("slot")), t(this, b).appendChild(t(this, Te)), t(this, Kt).appendChild(t(this, b)), e.appendChild(t(this, Kt)), r(this, Oe, new MutationObserver(
376
376
  ws(() => {
@@ -422,7 +422,7 @@ class Ls extends HTMLElement {
422
422
  return t(this, st);
423
423
  }
424
424
  get loopCSSProperty() {
425
- return t(this, V);
425
+ return t(this, z);
426
426
  }
427
427
  get dampingCSSProperty() {
428
428
  return t(this, me);
@@ -443,7 +443,7 @@ class Ls extends HTMLElement {
443
443
  return t(this, ye);
444
444
  }
445
445
  get autoplayCSSProperty() {
446
- return t(this, j);
446
+ return t(this, J);
447
447
  }
448
448
  get autoplayPauseDurationCSSProperty() {
449
449
  return t(this, Ce);
@@ -452,7 +452,7 @@ class Ls extends HTMLElement {
452
452
  return t(this, Wt);
453
453
  }
454
454
  get classesCSSProperty() {
455
- return t(this, J);
455
+ return t(this, Q);
456
456
  }
457
457
  get currentIndexStartOffsetCSSProperty() {
458
458
  return t(this, Nt);
@@ -467,7 +467,7 @@ class Ls extends HTMLElement {
467
467
  return t(this, qt);
468
468
  }
469
469
  get focusDurationCSSProperty() {
470
- return t(this, we);
470
+ return t(this, Ee);
471
471
  }
472
472
  get disabledCSSProperty() {
473
473
  return t(this, Gt);
@@ -476,10 +476,10 @@ class Ls extends HTMLElement {
476
476
  return t(this, Ut);
477
477
  }
478
478
  get currentScrollValue() {
479
- return o(this, c, Is).call(this, "current");
479
+ return o(this, l, Ts).call(this, "current");
480
480
  }
481
481
  get targetScrollValue() {
482
- return o(this, c, Is).call(this, "target");
482
+ return o(this, l, Ts).call(this, "target");
483
483
  }
484
484
  get contentWrapperElement() {
485
485
  return t(this, Kt);
@@ -488,16 +488,16 @@ class Ls extends HTMLElement {
488
488
  return t(this, b);
489
489
  }
490
490
  get sections() {
491
- return t(this, q);
491
+ return t(this, G);
492
492
  }
493
493
  get visibleSections() {
494
494
  return t(this, d);
495
495
  }
496
496
  get position() {
497
- return t(this, cs);
497
+ return t(this, us);
498
498
  }
499
499
  get contentPosition() {
500
- return t(this, us);
500
+ return t(this, as);
501
501
  }
502
502
  get viewportSize() {
503
503
  return t(this, L);
@@ -506,7 +506,7 @@ class Ls extends HTMLElement {
506
506
  return t(this, P);
507
507
  }
508
508
  get gap() {
509
- return t(this, G);
509
+ return t(this, U);
510
510
  }
511
511
  get counter() {
512
512
  return t(this, D);
@@ -520,7 +520,7 @@ class Ls extends HTMLElement {
520
520
  return t(this, Ct);
521
521
  }
522
522
  get loopDistance() {
523
- return t(this, V).current ? t(this, Ct) + t(this, G) : t(this, Ct);
523
+ return t(this, z).current ? t(this, Ct) + t(this, U) : t(this, Ct);
524
524
  }
525
525
  get hasOverflow() {
526
526
  return t(this, Pt);
@@ -547,7 +547,7 @@ class Ls extends HTMLElement {
547
547
  return t(this, R).current === "x" ? 0 : t(this, p).distance;
548
548
  }
549
549
  tryResplit() {
550
- !t(this, U) && (t(this, V).current || t(this, gt).current || t(this, V).current || t(this, vt).current || t(this, et).current) && o(this, c, ss).call(this);
550
+ !t(this, K) && (t(this, z).current || t(this, gt).current || t(this, z).current || t(this, vt).current || t(this, et).current) && o(this, l, is).call(this);
551
551
  }
552
552
  onScroll(...e) {
553
553
  return t(this, p).subscribe(...e);
@@ -568,22 +568,22 @@ class Ls extends HTMLElement {
568
568
  return this.currentProgress >= u && this.currentProgress <= g;
569
569
  }
570
570
  scrollToSection(e, s) {
571
- if (!t(this, d).length || t(this, U))
571
+ if (!t(this, d).length || t(this, K))
572
572
  return;
573
- const h = t(this, D).current, u = o(this, c, _s).call(this, e), g = t(this, d)[h], v = t(this, d)[u];
573
+ const h = t(this, D).current, u = o(this, l, Xs).call(this, e), g = t(this, d)[h], v = t(this, d)[u];
574
574
  if (g && v) {
575
575
  let C = 0;
576
- const oe = o(this, c, is).call(this), Ae = t(this, d)[oe];
577
- let ts = Ae ? this.targetScrollValue - Ae.position : 0;
578
- t(this, V).current ? u === 0 && h === t(this, d).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, G), t(this, Ee) || (ts = 0)) : u === t(this, d).length - 1 && h === 0 ? C = v.position - (t(this, P) + t(this, L) + t(this, G)) : C = v.position - g.position : C = v.position - g.position, this.shiftPosition(C - ts, s);
576
+ const oe = o(this, l, rs).call(this), Ae = t(this, d)[oe];
577
+ let es = Ae ? this.targetScrollValue - Ae.position : 0;
578
+ t(this, z).current ? u === 0 && h === t(this, d).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, we) || (es = 0)) : u === t(this, d).length - 1 && h === 0 ? C = v.position - (t(this, P) + t(this, L) + t(this, U)) : C = v.position - g.position : C = v.position - g.position, this.shiftPosition(C - es, s);
579
579
  }
580
580
  }
581
581
  shiftSections(e, s) {
582
582
  t(this, d).length && this.scrollToSection(t(this, D).current + e, s);
583
583
  }
584
584
  setPosition(e, s) {
585
- t(this, U) || (o(this, c, As).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, _t)), t(this, jt).set(t(this, p).current, { equalize: !0 }), t(this, jt).set(Math.min(e, this.distance), Bs({}, s.tween)), r(this, _t, setTimeout(() => {
586
- r(this, _t, void 0);
585
+ t(this, K) || (o(this, l, Fs).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, jt)), t(this, Jt).set(t(this, p).current, { equalize: !0 }), t(this, Jt).set(Math.min(e, this.distance), Us({}, s.tween)), r(this, jt, setTimeout(() => {
586
+ r(this, jt, void 0);
587
587
  }, s.tween.duration || 0))) : t(this, p).set(e, {
588
588
  equalize: (s == null ? void 0 : s.behaviour) === "instant"
589
589
  }));
@@ -594,19 +594,19 @@ class Ls extends HTMLElement {
594
594
  resize() {
595
595
  if (t(this, Ut).current)
596
596
  return;
597
- r(this, d, t(this, q).filter(
598
- (h) => ui(h.element)
597
+ r(this, d, t(this, G).filter(
598
+ (h) => pi(h.element)
599
599
  )), this.style.setProperty(
600
600
  "--sections",
601
601
  t(this, d).length.toString()
602
602
  ), t(this, p).unlistenAnimationFrame();
603
603
  const e = this.currentScrollValue / t(this, P) || 0, s = t(this, D).current;
604
- if (r(this, cs, this.vertical ? hs(this) : ns(this)), r(this, us, this.vertical ? hs(t(this, b)) : ns(t(this, b))), r(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, G, qs.parse(
604
+ if (r(this, us, this.vertical ? ns(this) : os(this)), r(this, as, this.vertical ? ns(t(this, b)) : os(t(this, b))), r(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, U, Ks.parse(
605
605
  getComputedStyle(t(this, b)).rowGap
606
- )) : r(this, G, qs.parse(
606
+ )) : r(this, U, Ks.parse(
607
607
  getComputedStyle(t(this, b)).columnGap
608
608
  )), t(this, vt).current && t(this, d).length) {
609
- const h = t(this, st).current, u = (t(this, L) - t(this, G) * (h - 1)) / h;
609
+ const h = t(this, st).current, u = (t(this, L) - t(this, U) * (h - 1)) / h;
610
610
  t(this, d).forEach((g) => {
611
611
  g.setSize(u);
612
612
  });
@@ -622,11 +622,11 @@ class Ls extends HTMLElement {
622
622
  this.vertical ? (t(this, b).style.width = h + "px", t(this, b).style.height = "100%") : (t(this, b).style.height = h + "px", t(this, b).style.width = "100%");
623
623
  } else
624
624
  this.vertical ? (t(this, b).style.width = "100%", t(this, b).style.height = "max-content", r(this, P, t(this, b).offsetHeight - t(this, L))) : (t(this, b).style.width = "max-content", t(this, b).style.height = "100%", r(this, P, t(this, b).offsetWidth - t(this, L)));
625
- if (!t(this, V).current) {
625
+ if (!t(this, z).current) {
626
626
  const h = getComputedStyle(this), u = this.vertical ? parseFloat(h.paddingBlockStart) + parseFloat(h.paddingBlockEnd) : parseFloat(h.paddingInlineStart) + parseFloat(h.paddingInlineEnd);
627
627
  r(this, P, t(this, P) + u), t(this, p).max = t(this, P);
628
628
  }
629
- if (t(this, V).current && t(this, d).length) {
629
+ if (t(this, z).current && t(this, d).length) {
630
630
  const h = t(this, d)[t(this, d).length - 1], u = h.position + h.size - t(this, L), g = t(this, P) - u;
631
631
  r(this, Ct, h.position + h.size + g);
632
632
  } else
@@ -640,181 +640,181 @@ class Ls extends HTMLElement {
640
640
  t(this, p).set(e * t(this, P), {
641
641
  equalize: !0
642
642
  });
643
- r(this, Pt, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Pt)), t(this, Pt) ? t(this, Gt).current || o(this, c, Ps).call(this) : o(this, c, Cs).call(this), t(this, ps).call(this), tt(this, "scrollResize", { custom: !0 }), t(this, p).notify();
643
+ r(this, Pt, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Pt)), t(this, Pt) ? t(this, Gt).current || o(this, l, Es).call(this) : o(this, l, Ps).call(this), t(this, fs).call(this), tt(this, "scrollResize", { custom: !0 }), t(this, p).notify();
644
644
  }
645
645
  connectedCallback() {
646
- ne.register(this), r(this, p, new Zs(0, {
646
+ ne.register(this), r(this, p, new Qs(0, {
647
647
  damping: 0.01,
648
648
  min: 0,
649
- order: Ks.SCROLL
650
- })), this.setAttribute("tabindex", "0"), r(this, it, new mi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, $e)), r(this, Zt, new Si({
649
+ order: Js.SCROLL
650
+ })), this.setAttribute("tabindex", "0"), r(this, it, new vi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, $e)), r(this, Zt, new yi({
651
651
  element: this
652
652
  })), t(this, Zt).changeEvent.subscribe(
653
653
  t(this, $e)
654
- ), r(this, rt, new gi({
654
+ ), r(this, rt, new Ci({
655
655
  element: t(this, b),
656
656
  rootElement: this
657
- })), t(this, rt).changeEvent.subscribe(t(this, $e)), r(this, M, new vi({
657
+ })), t(this, rt).changeEvent.subscribe(t(this, $e)), r(this, M, new Pi({
658
658
  culling: this
659
- })), t(this, M).changeEvent.subscribe(t(this, ds)), t(this, R).subscribe(() => {
660
- o(this, c, zs).call(this);
659
+ })), t(this, M).changeEvent.subscribe(t(this, ps)), t(this, R).subscribe(() => {
660
+ o(this, l, As).call(this);
661
661
  }), t(this, Ot).subscribe(() => {
662
- o(this, c, zs).call(this);
662
+ o(this, l, As).call(this);
663
663
  }), t(this, Bt).subscribe((e) => {
664
664
  t(this, it).axis = e.current ? "max" : t(this, R).current;
665
665
  }), t(this, be).subscribe((e) => {
666
666
  t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
667
667
  }), t(this, St).subscribe(() => {
668
- t(this, k) && t(this, F).call(this);
668
+ t(this, V) && t(this, F).call(this);
669
669
  }), t(this, gt).subscribe(({ current: e }) => {
670
- t(this, k) && (e ? o(this, c, ss).call(this) : o(this, c, Ie).call(this));
670
+ t(this, V) && (e ? o(this, l, is).call(this) : o(this, l, Ie).call(this));
671
671
  }), t(this, et).subscribe((e) => {
672
- t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, M).interval = e.current, t(this, k) && (e.current && !e.previous && !t(this, d).length ? o(this, c, ss).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Ie).call(this));
672
+ t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, M).interval = e.current, t(this, V) && (e.current && !e.previous && !t(this, d).length ? o(this, l, is).call(this) : !e.current && e.previous && t(this, d).length && o(this, l, Ie).call(this));
673
673
  }), t(this, vt).subscribe((e) => {
674
- t(this, k) && (t(this, F).call(this), e.current && !e.previous && !t(this, d).length ? o(this, c, ss).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Ie).call(this));
674
+ t(this, V) && (t(this, F).call(this), e.current && !e.previous && !t(this, d).length ? o(this, l, is).call(this) : !e.current && e.previous && t(this, d).length && o(this, l, Ie).call(this));
675
675
  }), t(this, st).subscribe((e) => {
676
- t(this, k) && (t(this, F).call(this), o(this, c, ce).call(this));
677
- }), t(this, V).subscribe((e) => {
678
- e.current ? (t(this, k) && (t(this, d).length || (t(this, gt).current = !0)), t(this, p).max = 1 / 0, t(this, p).min = -1 / 0) : (r(this, Re, 0), t(this, p).max = t(this, P), t(this, p).min = 0);
676
+ t(this, V) && (t(this, F).call(this), o(this, l, le).call(this));
677
+ }), t(this, z).subscribe((e) => {
678
+ e.current ? (t(this, V) && (t(this, d).length || (t(this, gt).current = !0)), t(this, p).max = 1 / 0, t(this, p).min = -1 / 0) : (r(this, Re, 0), t(this, p).max = t(this, P), t(this, p).min = 0);
679
679
  }), t(this, me).subscribe((e) => {
680
680
  t(this, p).damping = e.current;
681
681
  }), t(this, Se).subscribe((e) => {
682
682
  t(this, p).mass = e.current;
683
683
  }), t(this, ge).subscribe((e) => {
684
684
  t(this, p).stiffness = e.current;
685
- }), t(this, j).subscribe((e) => {
686
- t(this, M).speed = e.current, !t(this, wt) && e.current && !e.previous ? t(this, M).connect() : !e.current && e.previous && t(this, M).disconnect();
685
+ }), t(this, J).subscribe((e) => {
686
+ t(this, M).speed = e.current, !t(this, Et) && e.current && !e.previous ? t(this, M).connect() : !e.current && e.previous && t(this, M).disconnect();
687
687
  }), t(this, Wt).subscribe((e) => {
688
688
  e.current || (t(this, M).direction = 1);
689
- }), t(this, J).subscribe((e) => {
690
- t(this, k) && o(this, c, ce).call(this);
689
+ }), t(this, Q).subscribe((e) => {
690
+ t(this, V) && o(this, l, le).call(this);
691
691
  }), t(this, Nt).subscribe((e) => {
692
- t(this, k) && t(this, J).current && o(this, c, ce).call(this);
692
+ t(this, V) && t(this, Q).current && o(this, l, le).call(this);
693
693
  }), t(this, yt).subscribe((e) => {
694
- t(this, k) && t(this, J).current && o(this, c, ce).call(this);
694
+ t(this, V) && t(this, Q).current && o(this, l, le).call(this);
695
695
  }), t(this, Pe).subscribe((e) => {
696
- t(this, k) && t(this, p).notify();
696
+ t(this, V) && t(this, p).notify();
697
697
  }), t(this, p).isRunning.subscribe((e) => {
698
698
  this.classList.toggle("active", e.current);
699
699
  }), t(this, D).subscribe((e) => {
700
- t(this, U) || (t(this, d).length && o(this, c, ce).call(this), this.style.setProperty("--counter", e.current + ""));
701
- }), t(this, jt).subscribe((e) => {
702
- t(this, jt).isRunning.current && t(this, p).set(e.current, { equalize: !0 });
700
+ t(this, K) || (t(this, d).length && o(this, l, le).call(this), this.style.setProperty("--counter", e.current + ""));
701
+ }), t(this, Jt).subscribe((e) => {
702
+ t(this, Jt).isRunning.current && t(this, p).set(e.current, { equalize: !0 });
703
703
  }), t(this, Gt).subscribe((e) => {
704
- e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Cs).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, Ps).call(this));
704
+ e.current && !e.previous ? (this.classList.add("disabled"), o(this, l, Ps).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, l, Es).call(this));
705
705
  }), t(this, Ut).subscribe((e) => {
706
- e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Vs).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, ks).call(this));
707
- }), t(this, fe).observe(), t(this, R).observe(), t(this, Ot).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, et).observe(), t(this, Ht).observe(), t(this, $t).observe(), t(this, vt).observe(), t(this, Bt).observe(), t(this, be).observe(), t(this, st).observe(), t(this, V).observe(), t(this, me).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, Fe).observe(), t(this, ye).observe(), t(this, j).observe(), t(this, j).observe(), t(this, Ce).observe(), t(this, Wt).observe(), t(this, J).observe(), t(this, Nt).observe(), t(this, yt).observe(), t(this, Pe).observe(), t(this, qt).observe(), t(this, we).observe(), t(this, Gt).observe(), t(this, Ut).observe(), ft.subscribe(t(this, Be), Es.LAST), t(this, Oe).observe(this, { childList: !0 });
706
+ e.current && !e.previous ? (this.classList.add("hibernated"), o(this, l, Is).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, l, Ms).call(this));
707
+ }), t(this, fe).observe(), t(this, R).observe(), t(this, Ot).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, et).observe(), t(this, Ht).observe(), t(this, $t).observe(), t(this, vt).observe(), t(this, Bt).observe(), t(this, be).observe(), t(this, st).observe(), t(this, z).observe(), t(this, me).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, Fe).observe(), t(this, ye).observe(), t(this, J).observe(), t(this, J).observe(), t(this, Ce).observe(), t(this, Wt).observe(), t(this, Q).observe(), t(this, Nt).observe(), t(this, yt).observe(), t(this, Pe).observe(), t(this, qt).observe(), t(this, Ee).observe(), t(this, Gt).observe(), t(this, Ut).observe(), ft.subscribe(t(this, Be), xs.LAST), t(this, Oe).observe(this, { childList: !0 });
708
708
  }
709
709
  disconnectedCallback() {
710
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, fe).unobserve(), t(this, R).unobserve(), t(this, Ot).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, et).unobserve(), t(this, Ht).unobserve(), t(this, $t).unobserve(), t(this, vt).unobserve(), t(this, Bt).unobserve(), t(this, be).unobserve(), t(this, st).unobserve(), t(this, V).unobserve(), t(this, me).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, Fe).unobserve(), t(this, ye).unobserve(), t(this, j).unobserve(), t(this, Ce).unobserve(), t(this, Wt).unobserve(), t(this, J).unobserve(), t(this, Nt).unobserve(), t(this, yt).unobserve(), t(this, Pe).unobserve(), t(this, qt).unobserve(), t(this, we).unobserve(), t(this, Gt).unobserve(), t(this, Ut).unobserve(), ft.unsubscribe(t(this, Be)), ft.unsubscribe(t(this, F)), rs.unsubscribe(t(this, F)), o(this, c, Vs).call(this), t(this, Oe).disconnect();
710
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, fe).unobserve(), t(this, R).unobserve(), t(this, Ot).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, et).unobserve(), t(this, Ht).unobserve(), t(this, $t).unobserve(), t(this, vt).unobserve(), t(this, Bt).unobserve(), t(this, be).unobserve(), t(this, st).unobserve(), t(this, z).unobserve(), t(this, me).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, Fe).unobserve(), t(this, ye).unobserve(), t(this, J).unobserve(), t(this, Ce).unobserve(), t(this, Wt).unobserve(), t(this, Q).unobserve(), t(this, Nt).unobserve(), t(this, yt).unobserve(), t(this, Pe).unobserve(), t(this, qt).unobserve(), t(this, Ee).unobserve(), t(this, Gt).unobserve(), t(this, Ut).unobserve(), ft.unsubscribe(t(this, Be)), ft.unsubscribe(t(this, F)), hs.unsubscribe(t(this, F)), o(this, l, Is).call(this), t(this, Oe).disconnect();
711
711
  }
712
712
  }
713
- p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), et = new WeakMap(), Ht = new WeakMap(), $t = new WeakMap(), vt = new WeakMap(), Bt = new WeakMap(), be = new WeakMap(), st = new WeakMap(), V = new WeakMap(), me = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), Fe = new WeakMap(), ye = new WeakMap(), j = new WeakMap(), Ce = new WeakMap(), Wt = new WeakMap(), J = new WeakMap(), Nt = new WeakMap(), yt = new WeakMap(), Pe = new WeakMap(), qt = new WeakMap(), we = new WeakMap(), Gt = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), b = new WeakMap(), Te = new WeakMap(), q = new WeakMap(), d = new WeakMap(), cs = new WeakMap(), us = new WeakMap(), L = new WeakMap(), P = new WeakMap(), G = new WeakMap(), it = new WeakMap(), Zt = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), D = new WeakMap(), Re = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(), U = new WeakMap(), De = new WeakMap(), _t = new WeakMap(), jt = new WeakMap(), Ee = new WeakMap(), ht = new WeakMap(), k = new WeakMap(), Oe = new WeakMap(), Et = new WeakMap(), xe = new WeakMap(), He = new WeakMap(), c = new WeakSet(), zs = function() {
713
+ p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), et = new WeakMap(), Ht = new WeakMap(), $t = new WeakMap(), vt = new WeakMap(), Bt = new WeakMap(), be = new WeakMap(), st = new WeakMap(), z = new WeakMap(), me = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), Fe = new WeakMap(), ye = new WeakMap(), J = new WeakMap(), Ce = new WeakMap(), Wt = new WeakMap(), Q = new WeakMap(), Nt = new WeakMap(), yt = new WeakMap(), Pe = new WeakMap(), qt = new WeakMap(), Ee = new WeakMap(), Gt = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), b = new WeakMap(), Te = new WeakMap(), G = new WeakMap(), d = new WeakMap(), us = new WeakMap(), as = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), Zt = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), D = new WeakMap(), Re = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), K = new WeakMap(), De = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), we = new WeakMap(), ht = new WeakMap(), V = new WeakMap(), Oe = new WeakMap(), wt = new WeakMap(), xe = new WeakMap(), He = new WeakMap(), l = new WeakSet(), As = function() {
714
714
  const e = t(this, R).current, s = t(this, Ot).current ? "-reverse" : "";
715
- t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Bt).current ? "max" : e, t(this, Zt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, k) && t(this, F).call(this);
716
- }, ss = function() {
717
- o(this, c, Ie).call(this), t(this, Te).assignedElements().forEach((e, s) => {
718
- e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, q).push(new wi(e, s, this));
719
- }), r(this, d, [...t(this, q)]), t(this, b).style.transform = "", tt(this, "scrollSectionsChange", {
715
+ t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Bt).current ? "max" : e, t(this, Zt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, V) && t(this, F).call(this);
716
+ }, is = function() {
717
+ o(this, l, Ie).call(this), t(this, Te).assignedElements().forEach((e, s) => {
718
+ e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new Li(e, s, this));
719
+ }), r(this, d, [...t(this, G)]), t(this, b).style.transform = "", tt(this, "scrollSectionsChange", {
720
720
  custom: !0,
721
721
  composed: !0
722
- }), t(this, F).call(this), o(this, c, ce).call(this);
722
+ }), t(this, F).call(this), o(this, l, le).call(this);
723
723
  }, Ie = function() {
724
- t(this, q).forEach((e) => {
724
+ t(this, G).forEach((e) => {
725
725
  e.destroy();
726
- }), r(this, q, []), r(this, d, []), t(this, D).reset(), t(this, p).reset(), this.style.removeProperty("--max-section-size"), tt(this, "scrollSectionsChange", {
726
+ }), r(this, G, []), r(this, d, []), t(this, D).reset(), t(this, p).reset(), this.style.removeProperty("--max-section-size"), tt(this, "scrollSectionsChange", {
727
727
  custom: !0,
728
728
  composed: !0
729
729
  });
730
- }, Cs = function() {
731
- t(this, wt) || (r(this, wt, !0), t(this, p).unsubscribe(t(this, as)), t(this, p).unlistenAnimationFrame(), clearInterval(t(this, De)), clearInterval(t(this, _t)), t(this, jt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Zt).disconnect(), t(this, rt).disconnect(), t(this, M).disconnect(), t(this, Pt) || (this.sections.forEach((e) => {
730
+ }, Ps = function() {
731
+ t(this, Et) || (r(this, Et, !0), t(this, p).unsubscribe(t(this, ds)), t(this, p).unlistenAnimationFrame(), clearInterval(t(this, De)), clearInterval(t(this, jt)), t(this, Jt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Zt).disconnect(), t(this, rt).disconnect(), t(this, M).disconnect(), t(this, Pt) || (this.sections.forEach((e) => {
732
732
  e.unsetTransform();
733
733
  }), t(this, F).call(this)));
734
- }, Ps = function() {
735
- t(this, wt) && (r(this, wt, !1), t(this, p).subscribe(t(this, as), -1e4), t(this, p).notify(), t(this, it).connect(), t(this, Zt).connect(), t(this, rt).connect(), t(this, j).current && t(this, M).connect());
736
- }, Vs = function() {
737
- t(this, U) || (r(this, U, !0), clearTimeout(t(this, He)), ft.unsubscribe(t(this, F)), o(this, c, Cs).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, q).length ? o(this, c, Ie).call(this) : (t(this, D).reset(), t(this, p).reset()), ne.unregister(this));
738
- }, ks = function() {
739
- t(this, U) && (r(this, U, !1), ne.register(this), this.tryResplit(), o(this, c, Ps).call(this), this.scrollToSection(t(this, ye).current, {
734
+ }, Es = function() {
735
+ t(this, Et) && (r(this, Et, !1), t(this, p).subscribe(t(this, ds), -1e4), t(this, p).notify(), t(this, it).connect(), t(this, Zt).connect(), t(this, rt).connect(), t(this, J).current && t(this, M).connect());
736
+ }, Is = function() {
737
+ t(this, K) || (r(this, K, !0), clearTimeout(t(this, He)), ft.unsubscribe(t(this, F)), o(this, l, Ps).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, l, Ie).call(this) : (t(this, D).reset(), t(this, p).reset()), ne.unregister(this));
738
+ }, Ms = function() {
739
+ t(this, K) && (r(this, K, !1), ne.register(this), this.tryResplit(), o(this, l, Es).call(this), this.scrollToSection(t(this, ye).current, {
740
740
  behaviour: "instant"
741
- }), ft.subscribe(t(this, F), Es.SCROLL));
742
- }, F = new WeakMap(), as = new WeakMap(), _s = function(e) {
741
+ }), ft.subscribe(t(this, F), xs.SCROLL));
742
+ }, F = new WeakMap(), ds = new WeakMap(), Xs = function(e) {
743
743
  let s = t(this, D).current;
744
- return t(this, V).current ? s = fi(e, t(this, d).length) : s = Gs(e, 0, this.limit), s;
745
- }, $e = new WeakMap(), ds = new WeakMap(), As = function(e = 1) {
746
- t(this, Wt).current && (t(this, M).direction = e), t(this, j).current && t(this, M).pauseAndContinue(
744
+ return t(this, z).current ? s = Si(e, t(this, d).length) : s = Zs(e, 0, this.limit), s;
745
+ }, $e = new WeakMap(), ps = new WeakMap(), Fs = function(e = 1) {
746
+ t(this, Wt).current && (t(this, M).direction = e), t(this, J).current && t(this, M).pauseAndContinue(
747
747
  t(this, Ce).current,
748
748
  this.sectionalCSSProperty.current
749
749
  );
750
- }, Is = function(e = "current") {
751
- if (t(this, V).current && t(this, d).length) {
752
- const s = t(this, p)[e] % Math.round(t(this, P) + t(this, L) + t(this, G));
753
- return s < 0 ? t(this, P) + s + t(this, L) + t(this, G) : s;
750
+ }, Ts = function(e = "current") {
751
+ if (t(this, z).current && t(this, d).length) {
752
+ const s = t(this, p)[e] % Math.round(t(this, P) + t(this, L) + t(this, U));
753
+ return s < 0 ? t(this, P) + s + t(this, L) + t(this, U) : s;
754
754
  } else
755
755
  return t(this, p)[e];
756
- }, ce = function() {
756
+ }, le = function() {
757
757
  if (t(this, d).length) {
758
758
  const e = t(this, D).current + t(this, Nt).current;
759
759
  if (e === 0 ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), tt(this, "scrollLine", {
760
760
  detail: { line: t(this, ht) }
761
- }), t(this, J).current) {
761
+ }), t(this, Q).current) {
762
762
  this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
763
763
  const s = t(this, st).current + t(this, yt).current;
764
- r(this, Et, []), t(this, d).forEach((h, u) => {
764
+ r(this, wt, []), t(this, d).forEach((h, u) => {
765
765
  h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
766
766
  const g = e - this.limit - 1 + t(this, yt).current, v = e + s, C = this.sections.length - v;
767
- u >= e && u < v || u <= g ? (h.setMark("current"), t(this, Et).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
768
- }), t(this, ps).call(this);
767
+ u >= e && u < v || u <= g ? (h.setMark("current"), t(this, wt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
768
+ }), t(this, fs).call(this);
769
769
  }
770
770
  }
771
- }, js = function() {
772
- if (t(this, J).current) {
773
- const e = Math.floor(t(this, Et).length / 2);
774
- t(this, Et).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, Et).forEach((s, h) => {
771
+ }, Ys = function() {
772
+ if (t(this, Q).current) {
773
+ const e = Math.floor(t(this, wt).length / 2);
774
+ t(this, wt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, wt).forEach((s, h) => {
775
775
  const u = h - e;
776
776
  s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
777
777
  });
778
778
  }
779
- }, ps = new WeakMap(), is = function(e = !1) {
779
+ }, fs = new WeakMap(), rs = function(e = !1) {
780
780
  let s = this.targetScrollValue, h = 1 / 0, u = 0;
781
781
  const g = t(this, p).direction;
782
782
  for (let v = 0; v < t(this, d).length; v++) {
783
783
  const C = t(this, d)[v];
784
- let oe = t(this, Ee) ? C.size * g * -1 * 0.4 : 0, Ae = C.position;
784
+ let oe = t(this, we) ? C.size * g * -1 * 0.4 : 0, Ae = C.position;
785
785
  this.overscroll && Ae === 0 && e && (Ae = t(this, Ct));
786
- let ts = Math.abs(Ae + oe - s);
787
- ts <= h && (h = ts, u = v);
786
+ let es = Math.abs(Ae + oe - s);
787
+ es <= h && (h = es, u = v);
788
788
  }
789
789
  return u;
790
790
  }, Be = new WeakMap();
791
- _ && !customElements.get("e-scroll") && customElements.define("e-scroll", Ls);
792
- var fs;
793
- class ys extends HTMLElement {
791
+ q && !customElements.get("e-scroll") && customElements.define("e-scroll", Vs);
792
+ var bs;
793
+ class ts extends HTMLElement {
794
794
  constructor() {
795
795
  super(...arguments);
796
- i(this, fs, null);
796
+ i(this, bs, null);
797
797
  }
798
798
  get scrollElement() {
799
- return t(this, fs);
799
+ return t(this, bs);
800
800
  }
801
801
  connectedCallback() {
802
- const e = Pi(this, Ls);
803
- e instanceof Ls ? r(this, fs, e) : console.error(this, "e-scroll not found");
802
+ const e = xi(this, Vs);
803
+ e instanceof Vs ? r(this, bs, e) : console.error(this, "e-scroll not found");
804
804
  }
805
805
  }
806
- fs = new WeakMap();
807
- var Jt, O, xt, Lt, We, Ne, Qt, qe, bs, ms;
808
- class xi extends ys {
806
+ bs = new WeakMap();
807
+ var Qt, O, xt, Lt, We, Ne, Xt, qe, ms, Ss;
808
+ class zi extends ts {
809
809
  constructor() {
810
810
  super();
811
- i(this, Jt, null);
811
+ i(this, Qt, null);
812
812
  i(this, O, null);
813
813
  i(this, xt, !1);
814
814
  i(this, Lt, 0);
815
815
  i(this, We, 0);
816
816
  i(this, Ne, 0);
817
- i(this, Qt, () => {
817
+ i(this, Xt, () => {
818
818
  r(this, xt, this.offsetWidth > this.offsetHeight);
819
819
  const e = t(this, xt) ? this.offsetWidth : this.offsetHeight;
820
820
  r(this, Lt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Lt, Math.max(t(this, Lt), 30)), t(this, xt) ? (t(this, O).style.width = t(this, Lt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, Lt) + "px"), r(this, We, e - t(this, Lt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, qe).call(this);
@@ -822,11 +822,11 @@ class xi extends ys {
822
822
  i(this, qe, () => {
823
823
  r(this, Ne, this.scrollElement.currentProgress * t(this, We)), t(this, xt) ? t(this, O).style.transform = `translate3d(${t(this, Ne)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ne)}px, 0px)`;
824
824
  });
825
- i(this, bs, () => {
825
+ i(this, ms, () => {
826
826
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
827
827
  });
828
- i(this, ms, (e) => {
829
- document.documentElement.classList.add("grabbing"), Ci(
828
+ i(this, Ss, (e) => {
829
+ document.documentElement.classList.add("grabbing"), wi(
830
830
  (u) => {
831
831
  const g = t(this, xt) ? u.x : u.y, v = this.scrollElement.distance / t(this, We), C = (g - h) * v;
832
832
  this.scrollElement.setPosition(s + C);
@@ -837,10 +837,10 @@ class xi extends ys {
837
837
  );
838
838
  const s = this.scrollElement.damped.target, h = t(this, xt) ? e.x : e.y;
839
839
  });
840
- if (_) {
840
+ if (q) {
841
841
  const e = this.attachShadow({ mode: "open" });
842
842
  e.adoptedStyleSheets = [
843
- Us({
843
+ js({
844
844
  ":host": {
845
845
  display: "inline-block",
846
846
  zIndex: "1",
@@ -869,7 +869,7 @@ class xi extends ys {
869
869
  touchAction: "none"
870
870
  }
871
871
  })
872
- ], r(this, Jt, document.createElement("slot")), t(this, Jt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, Jt));
872
+ ], r(this, Qt, document.createElement("slot")), t(this, Qt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, Qt));
873
873
  }
874
874
  }
875
875
  get thumbElement() {
@@ -877,27 +877,27 @@ class xi extends ys {
877
877
  }
878
878
  connectedCallback() {
879
879
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
880
- const e = t(this, Jt).assignedElements()[0] || t(this, Jt).firstElementChild;
881
- r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, ms)), ft.subscribe(t(this, Qt), Es.SCROLL), rs.subscribe(this, t(this, Qt)), rs.subscribe(this.scrollElement, t(this, Qt)), this.scrollElement.onScroll(t(this, qe)), this.scrollElement.axisCSSProperty.subscribe(t(this, bs));
880
+ const e = t(this, Qt).assignedElements()[0] || t(this, Qt).firstElementChild;
881
+ r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, Ss)), ft.subscribe(t(this, Xt), xs.SCROLL), hs.subscribe(this, t(this, Xt)), hs.subscribe(this.scrollElement, t(this, Xt)), this.scrollElement.onScroll(t(this, qe)), this.scrollElement.axisCSSProperty.subscribe(t(this, ms));
882
882
  }
883
883
  disconnectedCallback() {
884
- this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, ms)), ft.unsubscribe(t(this, Qt)), rs.unsubscribe(t(this, Qt)), this.scrollElement.offScroll(t(this, qe)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, bs));
884
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, Ss)), ft.unsubscribe(t(this, Xt)), hs.unsubscribe(t(this, Xt)), this.scrollElement.offScroll(t(this, qe)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ms));
885
885
  }
886
886
  }
887
- Jt = new WeakMap(), O = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(), We = new WeakMap(), Ne = new WeakMap(), Qt = new WeakMap(), qe = new WeakMap(), bs = new WeakMap(), ms = new WeakMap();
888
- _ && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", xi);
887
+ Qt = new WeakMap(), O = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(), We = new WeakMap(), Ne = new WeakMap(), Xt = new WeakMap(), qe = new WeakMap(), ms = new WeakMap(), Ss = new WeakMap();
888
+ q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", zi);
889
889
  var Ge, Ue, Ke;
890
- class Rs extends ys {
890
+ class $s extends ts {
891
891
  constructor() {
892
892
  super();
893
- i(this, Ge, new l(this, "--behaviour", "smooth"));
894
- i(this, Ue, new l(
893
+ i(this, Ge, new c(this, "--behaviour", "smooth"));
894
+ i(this, Ue, new c(
895
895
  this,
896
896
  "--tween-easing",
897
897
  !1
898
898
  ));
899
- i(this, Ke, new l(this, "--tween-duration", 0));
900
- _ && this.addEventListener("click", () => {
899
+ i(this, Ke, new c(this, "--tween-duration", 0));
900
+ q && this.addEventListener("click", () => {
901
901
  const e = t(this, Ge).current, s = t(this, Ue).current, h = t(this, Ke).current;
902
902
  this.handleClick({
903
903
  behaviour: e,
@@ -914,10 +914,10 @@ class Rs extends ys {
914
914
  }
915
915
  Ge = new WeakMap(), Ue = new WeakMap(), Ke = new WeakMap();
916
916
  var Ze;
917
- class Li extends Rs {
917
+ class Vi extends $s {
918
918
  constructor() {
919
919
  super(...arguments);
920
- i(this, Ze, new l(this, "--set", 1));
920
+ i(this, Ze, new c(this, "--set", 1));
921
921
  }
922
922
  handleClick(e) {
923
923
  this.scrollElement.scrollToSection(t(this, Ze).current, e);
@@ -930,78 +930,78 @@ class Li extends Rs {
930
930
  }
931
931
  }
932
932
  Ze = new WeakMap();
933
- _ && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Li);
934
- var zt, _e;
935
- class zi extends Rs {
933
+ q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Vi);
934
+ var kt, je;
935
+ class Ai extends $s {
936
936
  constructor() {
937
937
  super(...arguments);
938
- i(this, zt, new l(this, "--step", 1));
939
- i(this, _e, () => {
940
- this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, zt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, zt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
938
+ i(this, kt, new c(this, "--step", 1));
939
+ i(this, je, () => {
940
+ this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, kt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, kt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
941
941
  });
942
942
  }
943
943
  handleClick(e) {
944
- this.scrollElement.shiftSections(t(this, zt).current, e);
944
+ this.scrollElement.shiftSections(t(this, kt).current, e);
945
945
  }
946
946
  connectedCallback() {
947
- super.connectedCallback(), this.scrollElement && (t(this, zt).subscribe(() => {
948
- t(this, _e).call(this);
949
- }), t(this, zt).observe(), this.scrollElement.addEventListener(
947
+ super.connectedCallback(), this.scrollElement && (t(this, kt).subscribe(() => {
948
+ t(this, je).call(this);
949
+ }), t(this, kt).observe(), this.scrollElement.addEventListener(
950
950
  "scrollLine",
951
- t(this, _e)
952
- ), t(this, _e).call(this));
951
+ t(this, je)
952
+ ), t(this, je).call(this));
953
953
  }
954
954
  disconnectedCallback() {
955
- super.disconnectedCallback(), t(this, zt).close(), this.removeAttribute("disabled");
955
+ super.disconnectedCallback(), t(this, kt).close(), this.removeAttribute("disabled");
956
956
  }
957
957
  }
958
- zt = new WeakMap(), _e = new WeakMap();
959
- _ && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", zi);
960
- var nt, Xt, je, Ss, gs, Je;
961
- class Vi {
958
+ kt = new WeakMap(), je = new WeakMap();
959
+ q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ai);
960
+ var nt, Yt, Je, gs, vs, Qe;
961
+ class Ii {
962
962
  constructor(n, e, s) {
963
963
  i(this, nt, null);
964
- i(this, Xt, null);
965
- i(this, je, null);
966
- i(this, Ss, null);
967
- i(this, gs, () => {
968
- t(this, Xt).scrollToSection(t(this, je), {
969
- behaviour: t(this, Ss)
964
+ i(this, Yt, null);
965
+ i(this, Je, null);
966
+ i(this, gs, null);
967
+ i(this, vs, () => {
968
+ t(this, Yt).scrollToSection(t(this, Je), {
969
+ behaviour: t(this, gs)
970
970
  });
971
971
  });
972
- i(this, Je, () => {
972
+ i(this, Qe, () => {
973
973
  t(this, nt).classList.toggle(
974
974
  "current",
975
- t(this, Xt).counter.current === t(this, je)
975
+ t(this, Yt).counter.current === t(this, Je)
976
976
  );
977
977
  });
978
- _ && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, Xt, n), r(this, Ss, s), r(this, je, e), t(this, nt).addEventListener("click", t(this, gs)), t(this, Xt).counter.subscribe(t(this, Je)), t(this, Je).call(this));
978
+ q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, Yt, n), r(this, gs, s), r(this, Je, e), t(this, nt).addEventListener("click", t(this, vs)), t(this, Yt).counter.subscribe(t(this, Qe)), t(this, Qe).call(this));
979
979
  }
980
980
  get element() {
981
981
  return t(this, nt);
982
982
  }
983
983
  destroy() {
984
- t(this, nt).removeEventListener("click", t(this, gs)), t(this, Xt).counter.unsubscribe(t(this, Je)), t(this, nt).remove();
984
+ t(this, nt).removeEventListener("click", t(this, vs)), t(this, Yt).counter.unsubscribe(t(this, Qe)), t(this, nt).remove();
985
985
  }
986
986
  }
987
- nt = new WeakMap(), Xt = new WeakMap(), je = new WeakMap(), Ss = new WeakMap(), gs = new WeakMap(), Je = new WeakMap();
988
- var Le, Yt, ot;
989
- class ki extends ys {
987
+ nt = new WeakMap(), Yt = new WeakMap(), Je = new WeakMap(), gs = new WeakMap(), vs = new WeakMap(), Qe = new WeakMap();
988
+ var Le, _t, ot;
989
+ class Mi extends ts {
990
990
  constructor() {
991
991
  super(...arguments);
992
992
  i(this, Le, null);
993
- i(this, Yt, []);
993
+ i(this, _t, []);
994
994
  i(this, ot, ws(() => {
995
- t(this, Yt).forEach((s) => s.destroy()), r(this, Yt, []);
995
+ t(this, _t).forEach((s) => s.destroy()), r(this, _t, []);
996
996
  let e = 0;
997
997
  this.scrollElement.loopCSSProperty.current ? e = this.scrollElement.visibleSections.length : e = this.scrollElement.visibleSections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
998
998
  for (let s = 0; s < e; s++) {
999
- const h = new Vi(
999
+ const h = new Ii(
1000
1000
  this.scrollElement,
1001
1001
  s,
1002
1002
  this.getAttribute("behaviour") || "smooth"
1003
1003
  );
1004
- t(this, Le).appendChild(h.element), t(this, Yt).push(h);
1004
+ t(this, Le).appendChild(h.element), t(this, _t).push(h);
1005
1005
  }
1006
1006
  }, 0));
1007
1007
  }
@@ -1019,13 +1019,13 @@ class ki extends ys {
1019
1019
  t(this, ot)
1020
1020
  ), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
1021
1021
  t(this, ot)
1022
- ), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, Yt).forEach((e) => e.destroy()), r(this, Yt, []), t(this, Le).remove();
1022
+ ), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, _t).forEach((e) => e.destroy()), r(this, _t, []), t(this, Le).remove();
1023
1023
  }
1024
1024
  }
1025
- Le = new WeakMap(), Yt = new WeakMap(), ot = new WeakMap();
1026
- _ && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", ki);
1027
- var te, ee, se, ie, Vt, kt, At, It, A, H, $, B, Mt, z, lt, ct, Q, Ft, ze, ut, at, dt, E, W, N, X, Y, K, Qe, S, Tt, re, Xe, x, pt, T, I, Z, Ve, Rt, y, he, m, Js, Qs, Xs, Ys, ti, ei, Ye, ke, Ms, ue, si, ii, Fs;
1028
- class Ai extends ys {
1025
+ Le = new WeakMap(), _t = new WeakMap(), ot = new WeakMap();
1026
+ q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Mi);
1027
+ var te, ee, se, ie, zt, Vt, At, It, A, H, $, B, Mt, k, ct, lt, X, Ft, ke, ut, at, dt, w, W, N, Y, _, Z, Xe, S, Tt, re, Ye, x, pt, T, I, j, ze, Rt, y, he, m, _s, ti, ei, si, ii, ri, _e, Ve, Rs, ue, hi, ni, Ds;
1028
+ class Fi extends ts {
1029
1029
  constructor() {
1030
1030
  super(...arguments);
1031
1031
  i(this, m);
@@ -1033,8 +1033,8 @@ class Ai extends ys {
1033
1033
  i(this, ee);
1034
1034
  i(this, se);
1035
1035
  i(this, ie);
1036
+ i(this, zt);
1036
1037
  i(this, Vt);
1037
- i(this, kt);
1038
1038
  i(this, At);
1039
1039
  i(this, It);
1040
1040
  i(this, A);
@@ -1042,97 +1042,97 @@ class Ai extends ys {
1042
1042
  i(this, $);
1043
1043
  i(this, B);
1044
1044
  i(this, Mt);
1045
- i(this, z);
1046
- i(this, lt);
1045
+ i(this, k);
1047
1046
  i(this, ct);
1048
- i(this, Q);
1047
+ i(this, lt);
1048
+ i(this, X);
1049
1049
  i(this, Ft);
1050
- i(this, ze);
1050
+ i(this, ke);
1051
1051
  i(this, ut);
1052
1052
  i(this, at);
1053
1053
  i(this, dt);
1054
- i(this, E);
1054
+ i(this, w);
1055
1055
  i(this, W);
1056
1056
  i(this, N);
1057
- i(this, X);
1058
1057
  i(this, Y);
1059
- i(this, K);
1060
- i(this, Qe);
1058
+ i(this, _);
1059
+ i(this, Z);
1060
+ i(this, Xe);
1061
1061
  i(this, S);
1062
1062
  i(this, Tt);
1063
1063
  i(this, re);
1064
- i(this, Xe);
1064
+ i(this, Ye);
1065
1065
  i(this, x);
1066
1066
  i(this, pt);
1067
1067
  i(this, T);
1068
1068
  i(this, I);
1069
- i(this, Z);
1070
- i(this, Ve);
1069
+ i(this, j);
1070
+ i(this, ze);
1071
1071
  i(this, Rt);
1072
1072
  i(this, y);
1073
1073
  i(this, he);
1074
- i(this, Ye);
1075
- i(this, ke);
1076
- r(this, te, new l(this, "--damping", 20)), r(this, ee, new l(this, "--mass", 0)), r(this, se, new l(this, "--stiffness", 0)), r(this, ie, new l(this, "--target", "")), r(this, Vt, new l(this, "--disabled", !1)), r(this, kt, new l(
1074
+ i(this, _e);
1075
+ i(this, Ve);
1076
+ r(this, te, new c(this, "--damping", 20)), r(this, ee, new c(this, "--mass", 0)), r(this, se, new c(this, "--stiffness", 0)), r(this, ie, new c(this, "--target", "")), r(this, zt, new c(this, "--disabled", !1)), r(this, Vt, new c(
1077
1077
  this,
1078
1078
  "--distance-offset",
1079
1079
  0,
1080
1080
  { rawValueCheck: !1 }
1081
- )), r(this, At, new l(this, "--start-offset", 0, {
1081
+ )), r(this, At, new c(this, "--start-offset", 0, {
1082
1082
  rawValueCheck: !1
1083
- })), r(this, It, new l(
1083
+ })), r(this, It, new c(
1084
1084
  this,
1085
1085
  "--capture-once",
1086
1086
  !1
1087
- )), r(this, A, new l(this, "--captured", "")), r(this, H, new l(this, "--released", "")), r(this, $, new l(
1087
+ )), r(this, A, new c(this, "--captured", "")), r(this, H, new c(this, "--released", "")), r(this, $, new c(
1088
1088
  this,
1089
1089
  "--captured-from-start",
1090
1090
  ""
1091
- )), r(this, B, new l(
1091
+ )), r(this, B, new c(
1092
1092
  this,
1093
1093
  "--captured-from-finish",
1094
1094
  ""
1095
- )), r(this, Mt, new l(
1095
+ )), r(this, Mt, new c(
1096
1096
  this,
1097
1097
  "--released-from-start",
1098
1098
  ""
1099
- )), r(this, z, new l(
1099
+ )), r(this, k, new c(
1100
1100
  this,
1101
1101
  "--released-from-finish",
1102
1102
  ""
1103
- )), r(this, lt, new l(this, "--passed-var", "")), r(this, ct, new l(this, "--progress-var", "")), r(this, Q, new l(
1103
+ )), r(this, ct, new c(this, "--passed-var", "")), r(this, lt, new c(this, "--progress-var", "")), r(this, X, new c(
1104
1104
  this,
1105
1105
  "--progress-arc-var",
1106
1106
  ""
1107
- )), r(this, Ft, new l(
1107
+ )), r(this, Ft, new c(
1108
1108
  this,
1109
1109
  "--progress-arc-mult",
1110
1110
  1
1111
- )), r(this, ze, new l(
1111
+ )), r(this, ke, new c(
1112
1112
  this,
1113
1113
  "--animation-var-type",
1114
1114
  "target"
1115
- )), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, E, new le(!1)), r(this, W, new le(!1)), r(this, N, new le(!1)), r(this, X, new le(!1)), r(this, Y, new le(!1)), r(this, K, new le(!1)), r(this, Qe, []), r(this, S, this), r(this, Tt, 0), r(this, re, 0), r(this, Xe, 0), r(this, x, new Zs(0, { order: Ks.SEGMENT, min: 0, max: 1 })), r(this, pt, 0), r(this, T, 0), r(this, I, 0), r(this, Z, 0), r(this, Ve, !1), r(this, Rt, !1), r(this, y, !0), r(this, he, !1), this.resize = () => {
1116
- r(this, re, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ? hs(this, this.scrollElement) : ns(this, this.scrollElement));
1117
- const e = ai(
1115
+ )), r(this, ut, new c(this, "--distance-var", "")), r(this, at, new c(this, "--start-var", "")), r(this, dt, new c(this, "--finish-var", "")), r(this, w, new ce(!1)), r(this, W, new ce(!1)), r(this, N, new ce(!1)), r(this, Y, new ce(!1)), r(this, _, new ce(!1)), r(this, Z, new ce(!1)), r(this, Xe, []), r(this, S, this), r(this, Tt, 0), r(this, re, 0), r(this, Ye, 0), r(this, x, new Qs(0, { order: Js.SEGMENT, min: 0, max: 1 })), r(this, pt, 0), r(this, T, 0), r(this, I, 0), r(this, j, 0), r(this, ze, !1), r(this, Rt, !1), r(this, y, !0), r(this, he, !1), this.resize = () => {
1116
+ r(this, re, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ? ns(this, this.scrollElement) : os(this, this.scrollElement));
1117
+ const e = fi(
1118
1118
  this,
1119
1119
  this.scrollElement.vertical ? "top" : "left"
1120
1120
  );
1121
- r(this, Tt, t(this, Tt) - e), r(this, T, this.getStart()), r(this, I, this.getDistance()), r(this, T, t(this, T) + t(this, At).current), r(this, I, t(this, I) + t(this, kt).current), r(this, Z, t(this, T) + t(this, I)), this.scrollElement.currentScrollValue > t(this, Z) && !t(this, E).current && !t(this, W).current && (t(this, E).current = !0), this.setVar(t(this, at).current, t(this, T)), this.setVar(t(this, dt).current, t(this, Z)), this.setVar(t(this, ut).current, t(this, I)), t(this, x).max = t(this, I), r(this, Ve, !0), t(this, ke).call(this);
1121
+ r(this, Tt, t(this, Tt) - e), r(this, T, this.getStart()), r(this, I, this.getDistance()), r(this, T, t(this, T) + t(this, At).current), r(this, I, t(this, I) + t(this, Vt).current), r(this, j, t(this, T) + t(this, I)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, T)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, I)), t(this, x).max = t(this, I), r(this, ze, !0), t(this, Ve).call(this);
1122
1122
  }, this.findAnotherScrollEntries = ws(() => {
1123
1123
  const e = ne.getAll(this).reverse();
1124
1124
  let s = 0;
1125
1125
  e.forEach((h, u) => {
1126
1126
  h.element === this.scrollElement && (s = u);
1127
- }), r(this, Qe, e.slice(s + 1)), this.tick();
1128
- }, 0), r(this, Ye, () => {
1127
+ }), r(this, Xe, e.slice(s + 1)), this.tick();
1128
+ }, 0), r(this, _e, () => {
1129
1129
  t(this, y) || this.resize();
1130
- }), r(this, ke, () => {
1131
- !t(this, y) && t(this, Ve) && this.tick();
1130
+ }), r(this, Ve, () => {
1131
+ !t(this, y) && t(this, ze) && this.tick();
1132
1132
  });
1133
1133
  }
1134
1134
  get distanceOffsetCSSProperty() {
1135
- return t(this, kt);
1135
+ return t(this, Vt);
1136
1136
  }
1137
1137
  get startOffsetCSSProperty() {
1138
1138
  return t(this, At);
@@ -1156,22 +1156,22 @@ class Ai extends ys {
1156
1156
  return t(this, Mt);
1157
1157
  }
1158
1158
  get releasedFromFinishCSSProperty() {
1159
- return t(this, z);
1159
+ return t(this, k);
1160
1160
  }
1161
1161
  get passedVarCSSProperty() {
1162
- return t(this, lt);
1162
+ return t(this, ct);
1163
1163
  }
1164
1164
  get progressVarCSSProperty() {
1165
- return t(this, ct);
1165
+ return t(this, lt);
1166
1166
  }
1167
1167
  get progressArcVarCSSProperty() {
1168
- return t(this, Q);
1168
+ return t(this, X);
1169
1169
  }
1170
1170
  get progressArcMultCSSProperty() {
1171
1171
  return t(this, Ft);
1172
1172
  }
1173
1173
  get animationVarTypeCSSProperty() {
1174
- return t(this, ze);
1174
+ return t(this, ke);
1175
1175
  }
1176
1176
  get distanceVarCSSProperty() {
1177
1177
  return t(this, ut);
@@ -1183,7 +1183,7 @@ class Ai extends ys {
1183
1183
  return t(this, dt);
1184
1184
  }
1185
1185
  get disabledCSSProperty() {
1186
- return t(this, Vt);
1186
+ return t(this, zt);
1187
1187
  }
1188
1188
  get dampingCSSProperty() {
1189
1189
  return t(this, te);
@@ -1198,7 +1198,7 @@ class Ai extends ys {
1198
1198
  return t(this, ie);
1199
1199
  }
1200
1200
  get isCaptured() {
1201
- return t(this, E);
1201
+ return t(this, w);
1202
1202
  }
1203
1203
  get isReleased() {
1204
1204
  return t(this, W);
@@ -1207,13 +1207,13 @@ class Ai extends ys {
1207
1207
  return t(this, N);
1208
1208
  }
1209
1209
  get isReleasedFromStart() {
1210
- return t(this, X);
1210
+ return t(this, Y);
1211
1211
  }
1212
1212
  get isCapturedFromFinish() {
1213
- return t(this, Y);
1213
+ return t(this, _);
1214
1214
  }
1215
1215
  get isReleasedFromFinish() {
1216
- return t(this, K);
1216
+ return t(this, Z);
1217
1217
  }
1218
1218
  get directionPosition() {
1219
1219
  return t(this, Tt);
@@ -1234,7 +1234,7 @@ class Ai extends ys {
1234
1234
  return t(this, T);
1235
1235
  }
1236
1236
  get finish() {
1237
- return t(this, Z);
1237
+ return t(this, j);
1238
1238
  }
1239
1239
  get distance() {
1240
1240
  return t(this, I);
@@ -1247,24 +1247,24 @@ class Ai extends ys {
1247
1247
  }
1248
1248
  tick() {
1249
1249
  let e = this.scrollElement.currentScrollValue;
1250
- t(this, Qe).forEach((u) => {
1250
+ t(this, Xe).forEach((u) => {
1251
1251
  e += u.value;
1252
1252
  });
1253
1253
  const s = e - t(this, T);
1254
1254
  t(this, he) || r(this, he, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
1255
1255
  const h = Math.round(e);
1256
- t(this, E).current && (h >= t(this, T) ? t(this, N).current || o(this, m, Xs).call(this) : t(this, N).current && !t(this, X).current && o(this, m, ti).call(this), h < t(this, Z) ? t(this, K).current && !t(this, Y).current && o(this, m, Ys).call(this) : t(this, N).current && !t(this, K).current && o(this, m, ei).call(this)), h >= t(this, T) && h < t(this, Z) ? t(this, E).current || o(this, m, Js).call(this) : t(this, E).current && (t(this, x).set(
1257
- di(t(this, I) / 2, t(this, x).target, 0, t(this, I))
1258
- ), o(this, m, Qs).call(this)), t(this, Rt) && t(this, It).current && (t(this, A).current && t(this, S).classList.add(t(this, A).current), r(this, y, !0));
1256
+ t(this, w).current && (h >= t(this, T) ? t(this, N).current || o(this, m, ei).call(this) : t(this, N).current && !t(this, Y).current && o(this, m, ii).call(this), h < t(this, j) ? t(this, Z).current && !t(this, _).current && o(this, m, si).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, ri).call(this)), h >= t(this, T) && h < t(this, j) ? t(this, w).current || o(this, m, _s).call(this) : t(this, w).current && (t(this, x).set(
1257
+ bi(t(this, I) / 2, t(this, x).target, 0, t(this, I))
1258
+ ), o(this, m, ti).call(this)), t(this, Rt) && t(this, It).current && (t(this, A).current && t(this, S).classList.add(t(this, A).current), r(this, y, !0));
1259
1259
  }
1260
1260
  disable() {
1261
- this.style.cssText = "", r(this, Tt, 0), r(this, re, 0), t(this, x).reset(), r(this, pt, 0), r(this, T, 0), r(this, I, 0), r(this, Z, 0), r(this, Ve, !1), t(this, E).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, X).current = !1, t(this, Y).current = !1, t(this, K).current = !1, r(this, Rt, !1), r(this, y, !0), o(this, m, Fs).call(this);
1261
+ this.style.cssText = "", r(this, Tt, 0), r(this, re, 0), t(this, x).reset(), r(this, pt, 0), r(this, T, 0), r(this, I, 0), r(this, j, 0), r(this, ze, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, Y).current = !1, t(this, _).current = !1, t(this, Z).current = !1, r(this, Rt, !1), r(this, y, !0), o(this, m, Ds).call(this);
1262
1262
  }
1263
1263
  enable() {
1264
1264
  r(this, y, !1);
1265
1265
  }
1266
1266
  connectedCallback() {
1267
- super.connectedCallback(), t(this, E).subscribe((s) => {
1267
+ super.connectedCallback(), t(this, w).subscribe((s) => {
1268
1268
  s.current && tt(this, "scrollSegmentCapture", {
1269
1269
  composed: !0,
1270
1270
  custom: !0
@@ -1274,7 +1274,7 @@ class Ai extends ys {
1274
1274
  composed: !0,
1275
1275
  custom: !0
1276
1276
  });
1277
- }), t(this, Y).subscribe((s) => {
1277
+ }), t(this, _).subscribe((s) => {
1278
1278
  s.current && tt(this, "scrollSegmentCaptureFromFinish", {
1279
1279
  composed: !0,
1280
1280
  custom: !0
@@ -1284,31 +1284,31 @@ class Ai extends ys {
1284
1284
  composed: !0,
1285
1285
  custom: !0
1286
1286
  });
1287
- }), t(this, X).subscribe((s) => {
1287
+ }), t(this, Y).subscribe((s) => {
1288
1288
  s.current && tt(this, "scrollSegmentReleaseFromStart", {
1289
1289
  composed: !0,
1290
1290
  custom: !0
1291
1291
  });
1292
- }), t(this, K).subscribe((s) => {
1292
+ }), t(this, Z).subscribe((s) => {
1293
1293
  s.current && tt(this, "scrollSegmentReleaseFromFinish", {
1294
1294
  composed: !0,
1295
1295
  custom: !0
1296
1296
  });
1297
- }), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, Vt).observe(), t(this, kt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, A).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Mt).observe(), t(this, z).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, Q).observe(), t(this, Ft).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1297
+ }), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, zt).observe(), t(this, Vt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, A).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Mt).observe(), t(this, k).observe(), t(this, ct).observe(), t(this, lt).observe(), t(this, X).observe(), t(this, Ft).observe(), t(this, ke).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1298
1298
  let e = !1;
1299
- this.findAnotherScrollEntries(), t(this, Vt).current || this.enable(), t(this, te).subscribe((s) => {
1299
+ this.findAnotherScrollEntries(), t(this, zt).current || this.enable(), t(this, te).subscribe((s) => {
1300
1300
  t(this, x).damping = s.current;
1301
1301
  }), t(this, ee).subscribe((s) => {
1302
1302
  t(this, x).mass = s.current;
1303
1303
  }), t(this, se).subscribe((s) => {
1304
1304
  t(this, x).stiffness = s.current;
1305
1305
  }), t(this, ie).subscribe((s) => {
1306
- s.previous && o(this, m, Fs).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
1307
- }), t(this, Vt).subscribe((s) => {
1306
+ s.previous && o(this, m, Ds).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
1307
+ }), t(this, zt).subscribe((s) => {
1308
1308
  s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
1309
1309
  }), t(this, At).subscribe(() => {
1310
1310
  e && !t(this, y) && this.resize();
1311
- }), t(this, kt).subscribe(() => {
1311
+ }), t(this, Vt).subscribe(() => {
1312
1312
  e && !t(this, y) && this.resize();
1313
1313
  }), t(this, A).subscribe((s) => {
1314
1314
  o(this, m, ue).call(this, s);
@@ -1320,22 +1320,22 @@ class Ai extends ys {
1320
1320
  o(this, m, ue).call(this, s);
1321
1321
  }), t(this, Mt).subscribe((s) => {
1322
1322
  o(this, m, ue).call(this, s);
1323
- }), t(this, z).subscribe((s) => {
1323
+ }), t(this, k).subscribe((s) => {
1324
1324
  o(this, m, ue).call(this, s);
1325
1325
  }), t(this, It).subscribe((s) => {
1326
1326
  t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
1327
- }), t(this, lt).subscribe((s) => {
1328
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1329
1327
  }), t(this, ct).subscribe((s) => {
1328
+ t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1329
+ }), t(this, lt).subscribe((s) => {
1330
1330
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, pt)));
1331
- }), t(this, Q).subscribe((s) => {
1331
+ }), t(this, X).subscribe((s) => {
1332
1332
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
1333
1333
  }), t(this, Ft).subscribe((s) => {
1334
- t(this, y) || o(this, m, Ms).call(this);
1334
+ t(this, y) || o(this, m, Rs).call(this);
1335
1335
  }), t(this, at).subscribe((s) => {
1336
1336
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, T)));
1337
1337
  }), t(this, dt).subscribe((s) => {
1338
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, Z)));
1338
+ t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, j)));
1339
1339
  }), t(this, ut).subscribe((s) => {
1340
1340
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, I)));
1341
1341
  }), t(this, x).subscribe((s) => {
@@ -1343,17 +1343,17 @@ class Ai extends ys {
1343
1343
  r(this, he, !1);
1344
1344
  return;
1345
1345
  }
1346
- o(this, m, Ms).call(this);
1346
+ o(this, m, Rs).call(this);
1347
1347
  }), this.scrollElement.addEventListener(
1348
1348
  "scrollSectionsChange",
1349
1349
  this.findAnotherScrollEntries
1350
- ), this.scrollElement.addEventListener("scrollResize", this.resize), ft.subscribe(t(this, Ye), Es.SCROLL + 1), this.scrollElement.onScroll(t(this, ke)), e = !0;
1350
+ ), this.scrollElement.addEventListener("scrollResize", this.resize), ft.subscribe(t(this, _e), xs.SCROLL + 1), this.scrollElement.onScroll(t(this, Ve)), e = !0;
1351
1351
  }
1352
1352
  disconnectedCallback() {
1353
- ft.unsubscribe(t(this, Ye)), this.scrollElement.offScroll(t(this, ke)), this.scrollElement.removeEventListener(
1353
+ ft.unsubscribe(t(this, _e)), this.scrollElement.offScroll(t(this, Ve)), this.scrollElement.removeEventListener(
1354
1354
  "scrollSectionsChange",
1355
1355
  this.findAnotherScrollEntries
1356
- ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, Vt).close(), t(this, kt).close(), t(this, At).close(), t(this, It).close(), t(this, A).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Mt).close(), t(this, z).close(), t(this, lt).close(), t(this, ct).close(), t(this, Q).close(), t(this, Ft).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, E).close(), t(this, W).close(), t(this, N).close(), t(this, X).close(), t(this, Y).close(), t(this, K).close(), this.disable(), t(this, x).close();
1356
+ ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, zt).close(), t(this, Vt).close(), t(this, At).close(), t(this, It).close(), t(this, A).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Mt).close(), t(this, k).close(), t(this, ct).close(), t(this, lt).close(), t(this, X).close(), t(this, Ft).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, Y).close(), t(this, _).close(), t(this, Z).close(), this.disable(), t(this, x).close();
1357
1357
  }
1358
1358
  removeVar(e) {
1359
1359
  e && t(this, S).style.removeProperty(`--${e}`);
@@ -1365,65 +1365,65 @@ class Ai extends ys {
1365
1365
  }
1366
1366
  }
1367
1367
  getDistance() {
1368
- return t(this, re) + t(this, Xe);
1368
+ return t(this, re) + t(this, Ye);
1369
1369
  }
1370
1370
  getStart() {
1371
- return t(this, Tt) - t(this, Xe);
1371
+ return t(this, Tt) - t(this, Ye);
1372
1372
  }
1373
1373
  }
1374
- te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), Vt = new WeakMap(), kt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), A = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Mt = new WeakMap(), z = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Q = new WeakMap(), Ft = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), E = new WeakMap(), W = new WeakMap(), N = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), K = new WeakMap(), Qe = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), re = new WeakMap(), Xe = new WeakMap(), x = new WeakMap(), pt = new WeakMap(), T = new WeakMap(), I = new WeakMap(), Z = new WeakMap(), Ve = new WeakMap(), Rt = new WeakMap(), y = new WeakMap(), he = new WeakMap(), m = new WeakSet(), Js = function() {
1375
- t(this, E).current = !0, t(this, W).current = !1, r(this, Rt, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, z).current && t(this, S).classList.remove(
1376
- t(this, z).current
1377
- ), t(this, z).current && t(this, S).classList.remove(
1378
- t(this, z).current
1374
+ te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), zt = new WeakMap(), Vt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), A = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Mt = new WeakMap(), k = new WeakMap(), ct = new WeakMap(), lt = new WeakMap(), X = new WeakMap(), Ft = new WeakMap(), ke = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), Y = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), Xe = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), re = new WeakMap(), Ye = new WeakMap(), x = new WeakMap(), pt = new WeakMap(), T = new WeakMap(), I = new WeakMap(), j = new WeakMap(), ze = new WeakMap(), Rt = new WeakMap(), y = new WeakMap(), he = new WeakMap(), m = new WeakSet(), _s = function() {
1375
+ t(this, w).current = !0, t(this, W).current = !1, r(this, Rt, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
1376
+ t(this, k).current
1377
+ ), t(this, k).current && t(this, S).classList.remove(
1378
+ t(this, k).current
1379
1379
  ), t(this, A).current && t(this, S).classList.add(t(this, A).current);
1380
- }, Qs = function() {
1381
- t(this, W).current = !0, t(this, E).current = !1, r(this, Rt, !0), t(this, A).current && t(this, S).classList.remove(t(this, A).current), t(this, $).current && t(this, S).classList.remove(
1380
+ }, ti = function() {
1381
+ t(this, W).current = !0, t(this, w).current = !1, r(this, Rt, !0), t(this, A).current && t(this, S).classList.remove(t(this, A).current), t(this, $).current && t(this, S).classList.remove(
1382
1382
  t(this, $).current
1383
1383
  ), t(this, B).current && t(this, S).classList.remove(
1384
1384
  t(this, B).current
1385
1385
  ), t(this, H).current && t(this, S).classList.add(t(this, H).current);
1386
- }, Xs = function() {
1387
- t(this, E).current = !0, t(this, N).current = !0, t(this, X).current = !1, t(this, $).current && t(this, S).classList.add(
1386
+ }, ei = function() {
1387
+ t(this, w).current = !0, t(this, N).current = !0, t(this, Y).current = !1, t(this, $).current && t(this, S).classList.add(
1388
1388
  t(this, $).current
1389
1389
  );
1390
- }, Ys = function() {
1391
- t(this, E).current = !0, t(this, Y).current = !0, t(this, K).current = !1, t(this, B).current && t(this, S).classList.add(
1390
+ }, si = function() {
1391
+ t(this, w).current = !0, t(this, _).current = !0, t(this, Z).current = !1, t(this, B).current && t(this, S).classList.add(
1392
1392
  t(this, B).current
1393
1393
  );
1394
- }, ti = function() {
1395
- t(this, W).current = !0, t(this, X).current = !0, t(this, N).current = !1, t(this, z).current && t(this, S).classList.add(
1396
- t(this, z).current
1394
+ }, ii = function() {
1395
+ t(this, W).current = !0, t(this, Y).current = !0, t(this, N).current = !1, t(this, k).current && t(this, S).classList.add(
1396
+ t(this, k).current
1397
1397
  );
1398
- }, ei = function() {
1399
- t(this, W).current = !0, t(this, K).current = !0, t(this, Y).current = !1, t(this, z).current && t(this, S).classList.add(
1400
- t(this, z).current
1398
+ }, ri = function() {
1399
+ t(this, W).current = !0, t(this, Z).current = !0, t(this, _).current = !1, t(this, k).current && t(this, S).classList.add(
1400
+ t(this, k).current
1401
1401
  );
1402
- }, Ye = new WeakMap(), ke = new WeakMap(), Ms = function() {
1403
- const e = t(this, x)[t(this, ze).current];
1404
- this.setVar(t(this, lt).current, e), r(this, pt, e / t(this, I) || 0), this.setVar(t(this, ct).current, t(this, pt)), t(this, Q).current && this.setVar(t(this, Q).current, this.progressArc);
1402
+ }, _e = new WeakMap(), Ve = new WeakMap(), Rs = function() {
1403
+ const e = t(this, x)[t(this, ke).current];
1404
+ this.setVar(t(this, ct).current, e), r(this, pt, e / t(this, I) || 0), this.setVar(t(this, lt).current, t(this, pt)), t(this, X).current && this.setVar(t(this, X).current, this.progressArc);
1405
1405
  }, ue = function(e) {
1406
1406
  if (t(this, y)) {
1407
1407
  e.previous && t(this, S).classList.remove(e.previous), e.current && t(this, S).classList.remove(e.current);
1408
1408
  return;
1409
1409
  }
1410
- e.current && t(this, E).current ? (e.previous && t(this, S).classList.remove(e.previous), t(this, S).classList.add(e.current)) : !e.current && e.previous && t(this, S).classList.remove(e.previous);
1411
- }, si = function(...e) {
1410
+ e.current && t(this, w).current ? (e.previous && t(this, S).classList.remove(e.previous), t(this, S).classList.add(e.current)) : !e.current && e.previous && t(this, S).classList.remove(e.previous);
1411
+ }, hi = function(...e) {
1412
1412
  e.forEach((s) => {
1413
1413
  s && t(this, S).classList.remove(s);
1414
1414
  });
1415
- }, ii = function(...e) {
1415
+ }, ni = function(...e) {
1416
1416
  e.forEach((s) => {
1417
1417
  s && t(this, S).style.removeProperty(`--${s}`);
1418
1418
  });
1419
- }, Fs = function() {
1420
- o(this, m, si).call(this, t(this, A).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Mt).current, t(this, z).current), o(this, m, ii).call(this, t(this, lt).current, t(this, ct).current, t(this, Q).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1419
+ }, Ds = function() {
1420
+ o(this, m, hi).call(this, t(this, A).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Mt).current, t(this, k).current), o(this, m, ni).call(this, t(this, ct).current, t(this, lt).current, t(this, X).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1421
1421
  };
1422
- _ && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ai);
1423
- class Ii extends Rs {
1422
+ q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Fi);
1423
+ class Ti extends $s {
1424
1424
  handleClick(n) {
1425
1425
  this.scrollElement.setPosition(
1426
- this.scrollElement.vertical ? hs(this) : ns(this),
1426
+ this.scrollElement.vertical ? ns(this) : os(this),
1427
1427
  n
1428
1428
  );
1429
1429
  }
@@ -1434,35 +1434,57 @@ class Ii extends Rs {
1434
1434
  super.disconnectedCallback();
1435
1435
  }
1436
1436
  }
1437
- _ && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ii);
1438
- var vs;
1439
- const Ds = class Ds extends ys {
1437
+ q && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ti);
1438
+ var ys;
1439
+ const Bs = class Bs extends ts {
1440
1440
  constructor() {
1441
1441
  super(...arguments);
1442
- i(this, vs, () => {
1442
+ i(this, ys, () => {
1443
1443
  const e = this.scrollElement.counter.current + 1, s = parseInt(this.getAttribute("pad") || "0");
1444
1444
  this.textContent = e.toString().padStart(s, "0");
1445
1445
  });
1446
1446
  }
1447
1447
  connectedCallback() {
1448
- return Ns(this, null, function* () {
1449
- Ws(Ds.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, vs));
1448
+ return zs(this, null, function* () {
1449
+ ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, ys));
1450
+ });
1451
+ }
1452
+ disconnectedCallback() {
1453
+ this.scrollElement.counter.unsubscribe(t(this, ys));
1454
+ }
1455
+ };
1456
+ ys = new WeakMap();
1457
+ let Os = Bs;
1458
+ q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Os);
1459
+ var Cs;
1460
+ const Ws = class Ws extends ts {
1461
+ constructor() {
1462
+ super(...arguments);
1463
+ i(this, Cs, () => {
1464
+ const e = this.scrollElement.limit, s = parseInt(this.getAttribute("pad") || "0");
1465
+ this.textContent = e.toString().padStart(s, "0");
1466
+ });
1467
+ }
1468
+ connectedCallback() {
1469
+ return zs(this, null, function* () {
1470
+ ks(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Cs));
1450
1471
  });
1451
1472
  }
1452
1473
  disconnectedCallback() {
1453
- this.scrollElement.counter.unsubscribe(t(this, vs));
1474
+ this.scrollElement.counter.unsubscribe(t(this, Cs));
1454
1475
  }
1455
1476
  };
1456
- vs = new WeakMap();
1457
- let Ts = Ds;
1458
- _ && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Ts);
1477
+ Cs = new WeakMap();
1478
+ let Hs = Ws;
1479
+ q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", Hs);
1459
1480
  export {
1460
- ki as ScrollBulletButtonsElement,
1461
- Ts as ScrollCounterElement,
1462
- Ls as ScrollElement,
1463
- Ii as ScrollSectionButtonElement,
1464
- Ai as ScrollSegmentElement,
1465
- Li as ScrollSetButtonElement,
1466
- zi as ScrollStepButtonElement,
1467
- xi as ScrollbarElement
1481
+ Mi as ScrollBulletButtonsElement,
1482
+ Os as ScrollCounterElement,
1483
+ Vs as ScrollElement,
1484
+ Ti as ScrollSectionButtonElement,
1485
+ Fi as ScrollSegmentElement,
1486
+ Vi as ScrollSetButtonElement,
1487
+ Ai as ScrollStepButtonElement,
1488
+ Hs as ScrollTotalElement,
1489
+ zi as ScrollbarElement
1468
1490
  };