aptechka 0.71.23 → 0.71.24

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,11 +1,11 @@
1
1
  var oi = Object.defineProperty;
2
- var Ns = Object.getOwnPropertySymbols, ci = Object.getPrototypeOf, li = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ai = Reflect.get;
2
+ var Ns = Object.getOwnPropertySymbols, li = Object.getPrototypeOf, ci = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ai = Reflect.get;
3
3
  var Gs = (a) => {
4
4
  throw TypeError(a);
5
5
  };
6
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
- li.call(n, e) && qs(a, e, n[e]);
8
+ ci.call(n, e) && qs(a, e, n[e]);
9
9
  if (Ns)
10
10
  for (var e of Ns(n))
11
11
  ui.call(n, e) && qs(a, e, n[e]);
@@ -13,19 +13,19 @@ var qs = (a, n, e) => n in a ? oi(a, n, { enumerable: !0, configurable: !0, writ
13
13
  };
14
14
  var Ls = (a, n, e) => n.has(a) || Gs("Cannot " + e);
15
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) => {
16
+ var ks = (a, n, e) => ai(li(a), e, n);
17
+ var Vs = (a, n, e) => new Promise((s, h) => {
18
18
  var u = (C) => {
19
19
  try {
20
20
  v(e.next(C));
21
- } catch (oe) {
22
- h(oe);
21
+ } catch (le) {
22
+ h(le);
23
23
  }
24
24
  }, g = (C) => {
25
25
  try {
26
26
  v(e.throw(C));
27
- } catch (oe) {
28
- h(oe);
27
+ } catch (le) {
28
+ h(le);
29
29
  }
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());
@@ -36,7 +36,7 @@ import { q as di } from "../easings-BEmRlrDd.js";
36
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 ns, g as os, c as fi } from "../layout-DpZo-I0y.js";
39
+ import { a as os, g as ls, c as fi } from "../layout-DpZo-I0y.js";
40
40
  import { c as Zs, s as bi } from "../math-BOBiC4TN.js";
41
41
  import { p as mi, l as Si } from "../number-CumqY64S.js";
42
42
  import { c as js } from "../stylesheet-DpnWNVyD.js";
@@ -46,52 +46,52 @@ import { D as Qs } from "../Damped-CtQmJ52v.js";
46
46
  import { T as gi } from "../Tweened-BlZB0vl4.js";
47
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
- import { scrollEntries as ne } from "../scroll-entries/index.js";
49
+ import { scrollEntries as oe } from "../scroll-entries/index.js";
50
50
  import { cssUnitParser as Ks } from "../css-unit-parser/index.js";
51
- import { CSSProperty as c } from "../css-property/index.js";
51
+ import { CSSProperty as l } from "../css-property/index.js";
52
52
  import { d as Ei } from "../Viewport-DA10iWAO.js";
53
53
  import "construct-style-sheets-polyfill";
54
- import { elementResizer as hs } from "../element-resizer/index.js";
54
+ import { elementResizer as ns } from "../element-resizer/index.js";
55
55
  import { s as wi } from "../gestures-CcXV6fCp.js";
56
56
  import { b as xi } from "../dom-CVWzyXPH.js";
57
- var f, Me, E, cs, ls, ae, bt, Dt, de, pe, ss;
57
+ var f, Fe, E, cs, us, de, bt, Dt, pe, fe, is;
58
58
  class Li {
59
59
  constructor(n, e, s) {
60
- i(this, pe);
60
+ i(this, fe);
61
61
  i(this, f);
62
- i(this, Me);
62
+ i(this, Fe);
63
63
  i(this, E);
64
64
  i(this, cs, 0);
65
- i(this, ls, 0);
66
- i(this, ae, 0);
65
+ i(this, us, 0);
66
+ i(this, de, 0);
67
67
  i(this, bt, 0);
68
68
  i(this, Dt, null);
69
- i(this, de, 0);
70
- r(this, f, n), r(this, Me, e), r(this, E, s), ne.register(t(this, f)), this.setIndex(t(this, Me));
69
+ i(this, pe, 0);
70
+ r(this, f, n), r(this, Fe, e), r(this, E, s), oe.register(t(this, f)), this.setIndex(t(this, Fe));
71
71
  }
72
72
  get element() {
73
73
  return t(this, f);
74
74
  }
75
75
  get index() {
76
- return t(this, Me);
76
+ return t(this, Fe);
77
77
  }
78
78
  get size() {
79
- return t(this, ae);
79
+ return t(this, de);
80
80
  }
81
81
  get width() {
82
82
  return t(this, cs);
83
83
  }
84
84
  get height() {
85
- return t(this, ls);
85
+ return t(this, us);
86
86
  }
87
87
  get position() {
88
88
  return t(this, bt);
89
89
  }
90
90
  get transformPosition() {
91
- return t(this, de);
91
+ return t(this, pe);
92
92
  }
93
93
  destroy() {
94
- ne.unregister(t(this, f)), this.unsetTransform();
94
+ oe.unregister(t(this, f)), this.unsetTransform();
95
95
  }
96
96
  unsetTransform() {
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();
@@ -100,19 +100,19 @@ class Li {
100
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, 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);
103
+ r(this, cs, t(this, f).offsetWidth), r(this, us, t(this, f).offsetHeight), r(this, de, t(this, E).vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth), r(this, bt, t(this, E).vertical ? os(t(this, f)) : ls(t(this, f))), r(this, bt, t(this, bt) - t(this, E).contentPosition);
104
104
  }
105
105
  transform() {
106
106
  const n = t(this, E).shiftSectionPositionCSSProperty.current;
107
107
  let e = n;
108
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(
109
+ t(this, E).loopCSSProperty.current && t(this, bt) + t(this, de) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), oe.update(
110
110
  t(this, f),
111
111
  t(this, E).axisCSSProperty.current,
112
112
  e
113
113
  );
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)`;
114
+ const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, de) + s, v = mi(Zs(h, u, g), 3);
115
+ r(this, pe, v * -1), t(this, E).vertical ? t(this, f).style.transform = `translate3d(0px, ${t(this, pe)}px, 0px)` : t(this, f).style.transform = `translate3d(${t(this, pe)}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,19 +127,19 @@ class Li {
127
127
  t(this, f).classList.toggle("middle", n);
128
128
  }
129
129
  setIndex(n) {
130
- o(this, pe, ss).call(this, "index", n);
130
+ o(this, fe, is).call(this, "index", n);
131
131
  }
132
132
  setCurrentIndex(n) {
133
- o(this, pe, ss).call(this, "current-index", n);
133
+ o(this, fe, is).call(this, "current-index", n);
134
134
  }
135
135
  setCurrentIndexArc(n) {
136
- o(this, pe, ss).call(this, "current-index-arc", n);
136
+ o(this, fe, is).call(this, "current-index-arc", n);
137
137
  }
138
138
  setCurrentIndexArcAbs(n) {
139
- o(this, pe, ss).call(this, "current-index-arc-abs", n);
139
+ o(this, fe, is).call(this, "current-index-arc-abs", n);
140
140
  }
141
141
  }
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) {
142
+ f = new WeakMap(), Fe = new WeakMap(), E = new WeakMap(), cs = new WeakMap(), us = new WeakMap(), de = new WeakMap(), bt = new WeakMap(), Dt = new WeakMap(), pe = new WeakMap(), fe = new WeakSet(), is = 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
145
  const ki = js({
@@ -181,97 +181,97 @@ const ki = js({
181
181
  flexShrink: "0"
182
182
  }
183
183
  });
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 {
184
+ var p, be, R, Ot, mt, St, gt, et, Ht, $t, vt, Bt, me, st, V, Se, ge, ve, ye, Te, Ce, J, Pe, Wt, Q, Nt, yt, Ee, qt, we, Gt, Ut, Kt, b, Re, G, d, as, ds, L, P, U, it, Zt, rt, M, D, De, Ct, Pt, Et, K, Oe, jt, Jt, xe, ht, z, He, wt, Le, $e, c, As, rs, Me, Ps, Es, Is, Ms, F, ps, Xs, Be, fs, Fs, Ts, ue, Ys, bs, hs, We;
185
+ class zs extends HTMLElement {
186
186
  constructor() {
187
187
  super();
188
- i(this, l);
188
+ i(this, c);
189
189
  i(this, p, null);
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, {
190
+ i(this, be, 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, {
195
195
  validate: (e) => Math.max(0, e - 1)
196
196
  }));
197
- i(this, gt, new c(this, "--split", !1));
198
- i(this, et, new c(this, "--sectional", !1));
199
- i(this, Ht, new c(
197
+ i(this, gt, new l(this, "--split", !1));
198
+ i(this, et, new l(this, "--sectional", !1));
199
+ i(this, Ht, new l(
200
200
  this,
201
201
  "--tween-easing",
202
202
  !1
203
203
  ));
204
- i(this, $t, new c(
204
+ i(this, $t, new l(
205
205
  this,
206
206
  "--tween-duration",
207
207
  !1
208
208
  ));
209
- i(this, vt, new c(this, "--auto-size", !1));
210
- i(this, Bt, new c(
209
+ i(this, vt, new l(this, "--auto-size", !1));
210
+ i(this, Bt, new l(
211
211
  this,
212
212
  "--wheel-max-delta",
213
213
  !1
214
214
  ));
215
- i(this, be, new c(this, "--drag-inertion", 1));
216
- i(this, st, new c(
215
+ i(this, me, new l(this, "--drag-inertion", 1));
216
+ i(this, st, new l(
217
217
  this,
218
218
  "--sections-in-view",
219
219
  1
220
220
  ));
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(
221
+ i(this, V, new l(this, "--loop", !1));
222
+ i(this, Se, new l(this, "--damping", 20));
223
+ i(this, ge, new l(this, "--mass", 0));
224
+ i(this, ve, new l(this, "--stiffness", 0));
225
+ i(this, ye, new l(this, "--mouse-drag", !1));
226
+ i(this, Te, new l(
227
227
  this,
228
228
  "--section-distance-scale",
229
229
  0.5
230
230
  ));
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(
231
+ i(this, Ce, new l(this, "--start-section", 0));
232
+ i(this, J, new l(this, "--autoplay", 0));
233
+ i(this, Pe, new l(
234
234
  this,
235
235
  "--autoplay-pause-duration",
236
236
  0
237
237
  ));
238
- i(this, Wt, new c(
238
+ i(this, Wt, new l(
239
239
  this,
240
240
  "--autoplay-user-direction",
241
241
  !1
242
242
  ));
243
- i(this, Q, new c(this, "--classes", !1));
244
- i(this, Nt, new c(
243
+ i(this, Q, new l(this, "--classes", !1));
244
+ i(this, Nt, new l(
245
245
  this,
246
246
  "--current-index-start-offset",
247
247
  0
248
248
  ));
249
- i(this, yt, new c(
249
+ i(this, yt, new l(
250
250
  this,
251
251
  "--current-index-end-offset",
252
252
  0
253
253
  ));
254
- i(this, Pe, new c(
254
+ i(this, Ee, new l(
255
255
  this,
256
256
  "--shift-section-position",
257
257
  0,
258
258
  { rawValueCheck: !1 }
259
259
  ));
260
- i(this, qt, new c(this, "--focus-delay", 0));
261
- i(this, Ee, new c(
260
+ i(this, qt, new l(this, "--focus-delay", 0));
261
+ i(this, we, new l(
262
262
  this,
263
263
  "--focus-duration",
264
264
  3e3
265
265
  ));
266
- i(this, Gt, new c(this, "--disabled", !1));
267
- i(this, Ut, new c(this, "--hibernate", !1));
266
+ i(this, Gt, new l(this, "--disabled", !1));
267
+ i(this, Ut, new l(this, "--hibernate", !1));
268
268
  i(this, Kt, null);
269
269
  i(this, b, null);
270
- i(this, Te, null);
270
+ i(this, Re, null);
271
271
  i(this, G, []);
272
272
  i(this, d, []);
273
- i(this, us, 0);
274
273
  i(this, as, 0);
274
+ i(this, ds, 0);
275
275
  i(this, L, 0);
276
276
  i(this, P, 0);
277
277
  i(this, U, 0);
@@ -280,48 +280,48 @@ class Vs extends HTMLElement {
280
280
  i(this, rt, null);
281
281
  i(this, M, null);
282
282
  i(this, D, new ce(0));
283
- i(this, Re, 0);
283
+ i(this, De, 0);
284
284
  i(this, Ct, 0);
285
285
  i(this, Pt, !1);
286
286
  i(this, Et, !0);
287
287
  i(this, K, !0);
288
- i(this, De);
288
+ i(this, Oe);
289
289
  i(this, jt);
290
290
  i(this, Jt, new gi());
291
- i(this, we, !1);
291
+ i(this, xe, !1);
292
292
  i(this, ht, null);
293
- i(this, V, !1);
294
- i(this, Oe, null);
293
+ i(this, z, !1);
294
+ i(this, He, null);
295
295
  i(this, wt, []);
296
- i(this, xe, !1);
297
- i(this, He);
296
+ i(this, Le, !1);
297
+ i(this, $e);
298
298
  i(this, F, (e) => {
299
- if (e && t(this, xe)) {
300
- r(this, xe, !1);
299
+ if (e && t(this, Le)) {
300
+ r(this, Le, !1);
301
301
  return;
302
302
  }
303
303
  this.resize();
304
304
  });
305
- i(this, ds, () => {
305
+ i(this, ps, () => {
306
306
  if (!t(this, Pt) || t(this, K) || t(this, Et))
307
307
  return;
308
308
  const e = this.currentScrollValue;
309
- if (r(this, Re, Math.max(0, e - t(this, P))), t(this, d).length) {
309
+ if (r(this, De, Math.max(0, e - t(this, P))), t(this, d).length) {
310
310
  for (let s = 0; s < t(this, G).length; s++)
311
311
  t(this, G)[s].transform();
312
- t(this, D).current = o(this, l, rs).call(this);
312
+ t(this, D).current = o(this, c, hs).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, l, Ys).call(this), ne.update(
315
+ o(this, c, Ys).call(this), oe.update(
316
316
  this,
317
317
  t(this, R).current,
318
318
  e
319
319
  );
320
320
  });
321
- i(this, $e, (e, s) => {
322
- t(this, fe).current && (o(this, l, Fs).call(this, Math.sign(s) || 1), t(this, ps).call(this, e, s));
321
+ i(this, Be, (e, s) => {
322
+ t(this, be).current && (o(this, c, Fs).call(this, Math.sign(s) || 1), t(this, fs).call(this, e, s));
323
323
  });
324
- i(this, ps, (e, s) => {
324
+ i(this, fs, (e, s) => {
325
325
  if (!t(this, jt)) {
326
326
  if (t(this, mt).current) {
327
327
  if (t(this, mt).current < 0 && s > 0)
@@ -329,15 +329,15 @@ class Vs extends HTMLElement {
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, l, rs).call(this)];
332
+ if (!t(this, J).current && t(this, qt).current && (clearInterval(t(this, Oe)), r(this, Oe, setTimeout(() => {
333
+ const h = t(this, d)[o(this, c, hs).call(this)];
334
334
  h && this.scrollToSection(h.index, {
335
335
  tween: {
336
- duration: t(this, Ee).current,
336
+ duration: t(this, we).current,
337
337
  easing: di
338
338
  }
339
339
  });
340
- }, t(this, qt).current))), !(e.includes("drag") && !Ei.isTouch && !t(this, ve).current)) {
340
+ }, t(this, qt).current))), !(e.includes("drag") && !Ei.isTouch && !t(this, ye).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,32 +347,32 @@ class Vs extends HTMLElement {
347
347
  duration: t(this, $t).current || 500
348
348
  } : void 0
349
349
  };
350
- t(this, we) ? this.scrollToSection(o(this, l, rs).call(this, !0), u) : this.shiftSections(h, u);
350
+ t(this, xe) ? this.scrollToSection(o(this, c, hs).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, we, e === "drag");
355
+ r(this, xe, e === "drag");
356
356
  }
357
357
  }
358
358
  });
359
- i(this, fs, ws(() => {
359
+ i(this, bs, ws(() => {
360
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);
364
- clearTimeout(t(this, He)), r(this, xe, !0), this.style.setProperty("--max-section-size", ""), r(this, He, setTimeout(() => {
365
- r(this, xe, !0), this.style.setProperty("--max-section-size", e + "px");
364
+ clearTimeout(t(this, $e)), r(this, Le, !0), this.style.setProperty("--max-section-size", ""), r(this, $e, setTimeout(() => {
365
+ r(this, Le, !0), this.style.setProperty("--max-section-size", e + "px");
366
366
  }, 10));
367
367
  }, 20));
368
- i(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));
368
+ i(this, We, () => {
369
+ r(this, z, !0), this.hibernatedCSSProperty.current || o(this, c, Ms).call(this), ns.subscribe(this, t(this, F)), ft.unsubscribe(t(this, We));
370
370
  });
371
371
  if (q) {
372
372
  const e = this.attachShadow({ mode: "open" });
373
373
  e.adoptedStyleSheets = [ki];
374
374
  const s = document.createElement("div");
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(
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, Re, document.createElement("slot")), t(this, b).appendChild(t(this, Re)), t(this, Kt).appendChild(t(this, b)), e.appendChild(t(this, Kt)), r(this, He, new MutationObserver(
376
376
  ws(() => {
377
377
  this.tryResplit();
378
378
  }, 10)
@@ -383,7 +383,7 @@ class Vs extends HTMLElement {
383
383
  return t(this, p);
384
384
  }
385
385
  get controlsCSSProperty() {
386
- return t(this, fe);
386
+ return t(this, be);
387
387
  }
388
388
  get axisCSSProperty() {
389
389
  return t(this, R);
@@ -416,37 +416,37 @@ class Vs extends HTMLElement {
416
416
  return t(this, Bt);
417
417
  }
418
418
  get dragInertionCSSProperty() {
419
- return t(this, be);
419
+ return t(this, me);
420
420
  }
421
421
  get sectionsInViewCSSProperty() {
422
422
  return t(this, st);
423
423
  }
424
424
  get loopCSSProperty() {
425
- return t(this, z);
425
+ return t(this, V);
426
426
  }
427
427
  get dampingCSSProperty() {
428
- return t(this, me);
428
+ return t(this, Se);
429
429
  }
430
430
  get massCSSProperty() {
431
- return t(this, Se);
431
+ return t(this, ge);
432
432
  }
433
433
  get stiffnessCSSProperty() {
434
- return t(this, ge);
434
+ return t(this, ve);
435
435
  }
436
436
  get mouseDragCSSProperty() {
437
- return t(this, ve);
437
+ return t(this, ye);
438
438
  }
439
439
  get sectionDistanceScaleCSSProperty() {
440
- return t(this, Fe);
440
+ return t(this, Te);
441
441
  }
442
442
  get startSectionCSSProperty() {
443
- return t(this, ye);
443
+ return t(this, Ce);
444
444
  }
445
445
  get autoplayCSSProperty() {
446
446
  return t(this, J);
447
447
  }
448
448
  get autoplayPauseDurationCSSProperty() {
449
- return t(this, Ce);
449
+ return t(this, Pe);
450
450
  }
451
451
  get autoplayUserDirectionCSSProperty() {
452
452
  return t(this, Wt);
@@ -461,13 +461,13 @@ class Vs extends HTMLElement {
461
461
  return t(this, yt);
462
462
  }
463
463
  get shiftSectionPositionCSSProperty() {
464
- return t(this, Pe);
464
+ return t(this, Ee);
465
465
  }
466
466
  get focusDelayCSSProperty() {
467
467
  return t(this, qt);
468
468
  }
469
469
  get focusDurationCSSProperty() {
470
- return t(this, Ee);
470
+ return t(this, we);
471
471
  }
472
472
  get disabledCSSProperty() {
473
473
  return t(this, Gt);
@@ -476,10 +476,10 @@ class Vs extends HTMLElement {
476
476
  return t(this, Ut);
477
477
  }
478
478
  get currentScrollValue() {
479
- return o(this, l, Ts).call(this, "current");
479
+ return o(this, c, Ts).call(this, "current");
480
480
  }
481
481
  get targetScrollValue() {
482
- return o(this, l, Ts).call(this, "target");
482
+ return o(this, c, Ts).call(this, "target");
483
483
  }
484
484
  get contentWrapperElement() {
485
485
  return t(this, Kt);
@@ -494,10 +494,10 @@ class Vs extends HTMLElement {
494
494
  return t(this, d);
495
495
  }
496
496
  get position() {
497
- return t(this, us);
497
+ return t(this, as);
498
498
  }
499
499
  get contentPosition() {
500
- return t(this, as);
500
+ return t(this, ds);
501
501
  }
502
502
  get viewportSize() {
503
503
  return t(this, L);
@@ -520,13 +520,13 @@ class Vs extends HTMLElement {
520
520
  return t(this, Ct);
521
521
  }
522
522
  get loopDistance() {
523
- return t(this, z).current ? t(this, Ct) + t(this, U) : t(this, Ct);
523
+ return t(this, V).current ? t(this, Ct) + t(this, U) : t(this, Ct);
524
524
  }
525
525
  get hasOverflow() {
526
526
  return t(this, Pt);
527
527
  }
528
528
  get overscroll() {
529
- return t(this, Re);
529
+ return t(this, De);
530
530
  }
531
531
  get scrollLine() {
532
532
  return t(this, ht);
@@ -547,7 +547,7 @@ class Vs extends HTMLElement {
547
547
  return t(this, R).current === "x" ? 0 : t(this, p).distance;
548
548
  }
549
549
  tryResplit() {
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);
550
+ !t(this, K) && (t(this, V).current || t(this, gt).current || t(this, V).current || t(this, vt).current || t(this, et).current) && o(this, c, rs).call(this);
551
551
  }
552
552
  onScroll(...e) {
553
553
  return t(this, p).subscribe(...e);
@@ -570,19 +570,19 @@ class Vs extends HTMLElement {
570
570
  scrollToSection(e, s) {
571
571
  if (!t(this, d).length || t(this, K))
572
572
  return;
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];
573
+ const h = t(this, D).current, u = o(this, c, 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, 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);
576
+ const le = o(this, c, hs).call(this), Ie = t(this, d)[le];
577
+ let ss = Ie ? this.targetScrollValue - Ie.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, U), t(this, xe) || (ss = 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 - ss, 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, 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(() => {
585
+ t(this, K) || (o(this, c, 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
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"
@@ -601,7 +601,7 @@ class Vs extends HTMLElement {
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, 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(
604
+ if (r(this, as, this.vertical ? os(this) : ls(this)), r(this, ds, this.vertical ? os(t(this, b)) : ls(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
606
  )) : r(this, U, Ks.parse(
607
607
  getComputedStyle(t(this, b)).columnGap
@@ -622,11 +622,11 @@ class Vs 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, z).current) {
625
+ if (!t(this, V).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, z).current && t(this, d).length) {
629
+ if (t(this, V).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,87 +640,87 @@ class Vs 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, l, Es).call(this) : o(this, l, Ps).call(this), t(this, fs).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, c, Es).call(this) : o(this, c, Ps).call(this), t(this, bs).call(this), tt(this, "scrollResize", { custom: !0 }), t(this, p).notify();
644
644
  }
645
645
  connectedCallback() {
646
- ne.register(this), r(this, p, new Qs(0, {
646
+ oe.register(this), r(this, p, new Qs(0, {
647
647
  damping: 0.01,
648
648
  min: 0,
649
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({
650
+ })), this.setAttribute("tabindex", "0"), r(this, it, new vi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Be)), r(this, Zt, new yi({
651
651
  element: this
652
652
  })), t(this, Zt).changeEvent.subscribe(
653
- t(this, $e)
653
+ t(this, Be)
654
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 Pi({
657
+ })), t(this, rt).changeEvent.subscribe(t(this, Be)), r(this, M, new Pi({
658
658
  culling: this
659
- })), t(this, M).changeEvent.subscribe(t(this, ps)), t(this, R).subscribe(() => {
660
- o(this, l, As).call(this);
659
+ })), t(this, M).changeEvent.subscribe(t(this, fs)), t(this, R).subscribe(() => {
660
+ o(this, c, As).call(this);
661
661
  }), t(this, Ot).subscribe(() => {
662
- o(this, l, As).call(this);
662
+ o(this, c, As).call(this);
663
663
  }), t(this, Bt).subscribe((e) => {
664
664
  t(this, it).axis = e.current ? "max" : t(this, R).current;
665
- }), t(this, be).subscribe((e) => {
665
+ }), t(this, me).subscribe((e) => {
666
666
  t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
667
667
  }), t(this, St).subscribe(() => {
668
- t(this, V) && t(this, F).call(this);
668
+ t(this, z) && t(this, F).call(this);
669
669
  }), t(this, gt).subscribe(({ current: e }) => {
670
- t(this, V) && (e ? o(this, l, is).call(this) : o(this, l, Ie).call(this));
670
+ t(this, z) && (e ? o(this, c, rs).call(this) : o(this, c, Me).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, 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));
672
+ t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, M).interval = e.current, t(this, z) && (e.current && !e.previous && !t(this, d).length ? o(this, c, rs).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Me).call(this));
673
673
  }), t(this, vt).subscribe((e) => {
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));
674
+ t(this, z) && (t(this, F).call(this), e.current && !e.previous && !t(this, d).length ? o(this, c, rs).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Me).call(this));
675
675
  }), t(this, st).subscribe((e) => {
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
- }), t(this, me).subscribe((e) => {
680
- t(this, p).damping = e.current;
676
+ t(this, z) && (t(this, F).call(this), o(this, c, ue).call(this));
677
+ }), t(this, V).subscribe((e) => {
678
+ e.current ? (t(this, z) && (t(this, d).length || (t(this, gt).current = !0)), t(this, p).max = 1 / 0, t(this, p).min = -1 / 0) : (r(this, De, 0), t(this, p).max = t(this, P), t(this, p).min = 0);
681
679
  }), t(this, Se).subscribe((e) => {
682
- t(this, p).mass = e.current;
680
+ t(this, p).damping = e.current;
683
681
  }), t(this, ge).subscribe((e) => {
682
+ t(this, p).mass = e.current;
683
+ }), t(this, ve).subscribe((e) => {
684
684
  t(this, p).stiffness = e.current;
685
685
  }), t(this, J).subscribe((e) => {
686
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
689
  }), t(this, Q).subscribe((e) => {
690
- t(this, V) && o(this, l, le).call(this);
690
+ t(this, z) && o(this, c, ue).call(this);
691
691
  }), t(this, Nt).subscribe((e) => {
692
- t(this, V) && t(this, Q).current && o(this, l, le).call(this);
692
+ t(this, z) && t(this, Q).current && o(this, c, ue).call(this);
693
693
  }), t(this, yt).subscribe((e) => {
694
- t(this, V) && t(this, Q).current && o(this, l, le).call(this);
695
- }), t(this, Pe).subscribe((e) => {
696
- t(this, V) && t(this, p).notify();
694
+ t(this, z) && t(this, Q).current && o(this, c, ue).call(this);
695
+ }), t(this, Ee).subscribe((e) => {
696
+ t(this, z) && 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, K) || (t(this, d).length && o(this, l, le).call(this), this.style.setProperty("--counter", e.current + ""));
700
+ t(this, K) || (t(this, d).length && o(this, c, ue).call(this), this.style.setProperty("--counter", e.current + ""));
701
701
  }), t(this, Jt).subscribe((e) => {
702
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, l, Ps).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, l, Es).call(this));
704
+ e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Ps).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, Es).call(this));
705
705
  }), t(this, Ut).subscribe((e) => {
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 });
706
+ e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Is).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, Ms).call(this));
707
+ }), t(this, be).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, me).observe(), t(this, st).observe(), t(this, V).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, Te).observe(), t(this, Ce).observe(), t(this, J).observe(), t(this, J).observe(), t(this, Pe).observe(), t(this, Wt).observe(), t(this, Q).observe(), t(this, Nt).observe(), t(this, yt).observe(), t(this, Ee).observe(), t(this, qt).observe(), t(this, we).observe(), t(this, Gt).observe(), t(this, Ut).observe(), ft.subscribe(t(this, We), xs.LAST), t(this, He).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, 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();
710
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, be).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, me).unobserve(), t(this, st).unobserve(), t(this, V).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, Te).unobserve(), t(this, Ce).unobserve(), t(this, J).unobserve(), t(this, Pe).unobserve(), t(this, Wt).unobserve(), t(this, Q).unobserve(), t(this, Nt).unobserve(), t(this, yt).unobserve(), t(this, Ee).unobserve(), t(this, qt).unobserve(), t(this, we).unobserve(), t(this, Gt).unobserve(), t(this, Ut).unobserve(), ft.unsubscribe(t(this, We)), ft.unsubscribe(t(this, F)), ns.unsubscribe(t(this, F)), o(this, c, Is).call(this), t(this, He).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(), 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() {
713
+ p = new WeakMap(), be = 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(), me = new WeakMap(), st = new WeakMap(), V = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), Te = new WeakMap(), Ce = new WeakMap(), J = new WeakMap(), Pe = new WeakMap(), Wt = new WeakMap(), Q = new WeakMap(), Nt = new WeakMap(), yt = new WeakMap(), Ee = new WeakMap(), qt = new WeakMap(), we = new WeakMap(), Gt = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), b = new WeakMap(), Re = new WeakMap(), G = new WeakMap(), d = new WeakMap(), as = new WeakMap(), ds = 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(), De = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), K = new WeakMap(), Oe = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), xe = new WeakMap(), ht = new WeakMap(), z = new WeakMap(), He = new WeakMap(), wt = new WeakMap(), Le = new WeakMap(), $e = new WeakMap(), c = 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, V) && t(this, F).call(this);
716
- }, is = function() {
717
- o(this, l, Ie).call(this), t(this, Te).assignedElements().forEach((e, s) => {
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, z) && t(this, F).call(this);
716
+ }, rs = function() {
717
+ o(this, c, Me).call(this), t(this, Re).assignedElements().forEach((e, s) => {
718
718
  e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new Li(e, s, this));
719
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, l, le).call(this);
723
- }, Ie = function() {
722
+ }), t(this, F).call(this), o(this, c, ue).call(this);
723
+ }, Me = function() {
724
724
  t(this, G).forEach((e) => {
725
725
  e.destroy();
726
726
  }), r(this, G, []), r(this, d, []), t(this, D).reset(), t(this, p).reset(), this.style.removeProperty("--max-section-size"), tt(this, "scrollSectionsChange", {
@@ -728,32 +728,32 @@ p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt
728
728
  composed: !0
729
729
  });
730
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) => {
731
+ t(this, Et) || (r(this, Et, !0), t(this, p).unsubscribe(t(this, ps)), t(this, p).unlistenAnimationFrame(), clearInterval(t(this, Oe)), 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
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());
735
+ t(this, Et) && (r(this, Et, !1), t(this, p).subscribe(t(this, ps), -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
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));
737
+ t(this, K) || (r(this, K, !0), clearTimeout(t(this, $e)), ft.unsubscribe(t(this, F)), o(this, c, 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, c, Me).call(this) : (t(this, D).reset(), t(this, p).reset()), oe.unregister(this));
738
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, {
739
+ t(this, K) && (r(this, K, !1), oe.register(this), this.tryResplit(), o(this, c, Es).call(this), this.scrollToSection(t(this, Ce).current, {
740
740
  behaviour: "instant"
741
741
  }), ft.subscribe(t(this, F), xs.SCROLL));
742
- }, F = new WeakMap(), ds = new WeakMap(), Xs = function(e) {
742
+ }, F = new WeakMap(), ps = new WeakMap(), Xs = function(e) {
743
743
  let s = t(this, D).current;
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) {
744
+ return t(this, V).current ? s = Si(e, t(this, d).length) : s = Zs(e, 0, this.limit), s;
745
+ }, Be = new WeakMap(), fs = new WeakMap(), Fs = function(e = 1) {
746
746
  t(this, Wt).current && (t(this, M).direction = e), t(this, J).current && t(this, M).pauseAndContinue(
747
- t(this, Ce).current,
747
+ t(this, Pe).current,
748
748
  this.sectionalCSSProperty.current
749
749
  );
750
750
  }, Ts = function(e = "current") {
751
- if (t(this, z).current && t(this, d).length) {
751
+ if (t(this, V).current && t(this, d).length) {
752
752
  const s = t(this, p)[e] % Math.round(t(this, P) + t(this, L) + t(this, U));
753
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
- }, le = function() {
756
+ }, ue = 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", {
@@ -765,7 +765,7 @@ p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt
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
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);
768
+ }), t(this, bs).call(this);
769
769
  }
770
770
  }
771
771
  }, Ys = function() {
@@ -776,59 +776,59 @@ p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt
776
776
  s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
777
777
  });
778
778
  }
779
- }, fs = new WeakMap(), rs = function(e = !1) {
779
+ }, bs = new WeakMap(), hs = 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, we) ? C.size * g * -1 * 0.4 : 0, Ae = C.position;
785
- this.overscroll && Ae === 0 && e && (Ae = t(this, Ct));
786
- let es = Math.abs(Ae + oe - s);
787
- es <= h && (h = es, u = v);
784
+ let le = t(this, xe) ? C.size * g * -1 * 0.4 : 0, Ie = C.position;
785
+ this.overscroll && Ie === 0 && e && (Ie = t(this, Ct));
786
+ let ss = Math.abs(Ie + le - s);
787
+ ss <= h && (h = ss, u = v);
788
788
  }
789
789
  return u;
790
- }, Be = new WeakMap();
791
- q && !customElements.get("e-scroll") && customElements.define("e-scroll", Vs);
792
- var bs;
793
- class ts extends HTMLElement {
790
+ }, We = new WeakMap();
791
+ q && !customElements.get("e-scroll") && customElements.define("e-scroll", zs);
792
+ var ms;
793
+ class es extends HTMLElement {
794
794
  constructor() {
795
795
  super(...arguments);
796
- i(this, bs, null);
796
+ i(this, ms, null);
797
797
  }
798
798
  get scrollElement() {
799
- return t(this, bs);
799
+ return t(this, ms);
800
800
  }
801
801
  connectedCallback() {
802
- const e = xi(this, Vs);
803
- e instanceof Vs ? r(this, bs, e) : console.error(this, "e-scroll not found");
802
+ const e = xi(this, zs);
803
+ e instanceof zs ? r(this, ms, e) : console.error(this, "e-scroll not found");
804
804
  }
805
805
  }
806
- bs = new WeakMap();
807
- var Qt, O, xt, Lt, We, Ne, Xt, qe, ms, Ss;
808
- class zi extends ts {
806
+ ms = new WeakMap();
807
+ var Qt, O, xt, Lt, Ne, qe, Xt, Ge, Ss, gs;
808
+ class Vi extends es {
809
809
  constructor() {
810
810
  super();
811
811
  i(this, Qt, null);
812
812
  i(this, O, null);
813
813
  i(this, xt, !1);
814
814
  i(this, Lt, 0);
815
- i(this, We, 0);
816
815
  i(this, Ne, 0);
816
+ i(this, qe, 0);
817
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
- 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);
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, Ne, e - t(this, Lt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ge).call(this);
821
821
  });
822
- i(this, qe, () => {
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)`;
822
+ i(this, Ge, () => {
823
+ r(this, qe, this.scrollElement.currentProgress * t(this, Ne)), t(this, xt) ? t(this, O).style.transform = `translate3d(${t(this, qe)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, qe)}px, 0px)`;
824
824
  });
825
- i(this, ms, () => {
825
+ i(this, Ss, () => {
826
826
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
827
827
  });
828
- i(this, Ss, (e) => {
828
+ i(this, gs, (e) => {
829
829
  document.documentElement.classList.add("grabbing"), wi(
830
830
  (u) => {
831
- const g = t(this, xt) ? u.x : u.y, v = this.scrollElement.distance / t(this, We), C = (g - h) * v;
831
+ const g = t(this, xt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ne), C = (g - h) * v;
832
832
  this.scrollElement.setPosition(s + C);
833
833
  },
834
834
  () => {
@@ -878,27 +878,27 @@ class zi extends ts {
878
878
  connectedCallback() {
879
879
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
880
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));
881
+ r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, gs)), ft.subscribe(t(this, Xt), xs.SCROLL), ns.subscribe(this, t(this, Xt)), ns.subscribe(this.scrollElement, t(this, Xt)), this.scrollElement.onScroll(t(this, Ge)), this.scrollElement.axisCSSProperty.subscribe(t(this, Ss));
882
882
  }
883
883
  disconnectedCallback() {
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));
884
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, gs)), ft.unsubscribe(t(this, Xt)), ns.unsubscribe(t(this, Xt)), this.scrollElement.offScroll(t(this, Ge)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, Ss));
885
885
  }
886
886
  }
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
- var Ge, Ue, Ke;
890
- class $s extends ts {
887
+ Qt = new WeakMap(), O = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(), Ne = new WeakMap(), qe = new WeakMap(), Xt = new WeakMap(), Ge = new WeakMap(), Ss = new WeakMap(), gs = new WeakMap();
888
+ q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", Vi);
889
+ var Ue, Ke, Ze;
890
+ class $s extends es {
891
891
  constructor() {
892
892
  super();
893
- i(this, Ge, new c(this, "--behaviour", "smooth"));
894
- i(this, Ue, new c(
893
+ i(this, Ue, new l(this, "--behaviour", "smooth"));
894
+ i(this, Ke, new l(
895
895
  this,
896
896
  "--tween-easing",
897
897
  !1
898
898
  ));
899
- i(this, Ke, new c(this, "--tween-duration", 0));
899
+ i(this, Ze, new l(this, "--tween-duration", 0));
900
900
  q && this.addEventListener("click", () => {
901
- const e = t(this, Ge).current, s = t(this, Ue).current, h = t(this, Ke).current;
901
+ const e = t(this, Ue).current, s = t(this, Ke).current, h = t(this, Ze).current;
902
902
  this.handleClick({
903
903
  behaviour: e,
904
904
  tween: s || h ? { easing: s, duration: h } : void 0
@@ -906,37 +906,37 @@ class $s extends ts {
906
906
  });
907
907
  }
908
908
  connectedCallback() {
909
- super.connectedCallback(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, Ge).observe(), t(this, Ue).observe(), t(this, Ke).observe();
909
+ super.connectedCallback(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, Ue).observe(), t(this, Ke).observe(), t(this, Ze).observe();
910
910
  }
911
911
  disconnectedCallback() {
912
- this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, Ge).close(), t(this, Ue).close(), t(this, Ke).close();
912
+ this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, Ue).close(), t(this, Ke).close(), t(this, Ze).close();
913
913
  }
914
914
  }
915
- Ge = new WeakMap(), Ue = new WeakMap(), Ke = new WeakMap();
916
- var Ze;
917
- class Vi extends $s {
915
+ Ue = new WeakMap(), Ke = new WeakMap(), Ze = new WeakMap();
916
+ var je;
917
+ class zi extends $s {
918
918
  constructor() {
919
919
  super(...arguments);
920
- i(this, Ze, new c(this, "--set", 1));
920
+ i(this, je, new l(this, "--set", 1));
921
921
  }
922
922
  handleClick(e) {
923
- this.scrollElement.scrollToSection(t(this, Ze).current, e);
923
+ this.scrollElement.scrollToSection(t(this, je).current, e);
924
924
  }
925
925
  connectedCallback() {
926
- super.connectedCallback(), t(this, Ze).observe();
926
+ super.connectedCallback(), t(this, je).observe();
927
927
  }
928
928
  disconnectedCallback() {
929
- super.disconnectedCallback(), t(this, Ze).close();
929
+ super.disconnectedCallback(), t(this, je).close();
930
930
  }
931
931
  }
932
- Ze = new WeakMap();
933
- q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Vi);
934
- var kt, je;
932
+ je = new WeakMap();
933
+ q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", zi);
934
+ var kt, Je;
935
935
  class Ai extends $s {
936
936
  constructor() {
937
937
  super(...arguments);
938
- i(this, kt, new c(this, "--step", 1));
939
- i(this, je, () => {
938
+ i(this, kt, new l(this, "--step", 1));
939
+ i(this, Je, () => {
940
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
  }
@@ -945,51 +945,51 @@ class Ai extends $s {
945
945
  }
946
946
  connectedCallback() {
947
947
  super.connectedCallback(), this.scrollElement && (t(this, kt).subscribe(() => {
948
- t(this, je).call(this);
948
+ t(this, Je).call(this);
949
949
  }), t(this, kt).observe(), this.scrollElement.addEventListener(
950
950
  "scrollLine",
951
- t(this, je)
952
- ), t(this, je).call(this));
951
+ t(this, Je)
952
+ ), t(this, Je).call(this));
953
953
  }
954
954
  disconnectedCallback() {
955
955
  super.disconnectedCallback(), t(this, kt).close(), this.removeAttribute("disabled");
956
956
  }
957
957
  }
958
- kt = new WeakMap(), je = new WeakMap();
958
+ kt = new WeakMap(), Je = new WeakMap();
959
959
  q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ai);
960
- var nt, Yt, Je, gs, vs, Qe;
960
+ var nt, Yt, Qe, vs, ys, Xe;
961
961
  class Ii {
962
962
  constructor(n, e, s) {
963
963
  i(this, nt, null);
964
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)
965
+ i(this, Qe, null);
966
+ i(this, vs, null);
967
+ i(this, ys, () => {
968
+ t(this, Yt).scrollToSection(t(this, Qe), {
969
+ behaviour: t(this, vs)
970
970
  });
971
971
  });
972
- i(this, Qe, () => {
972
+ i(this, Xe, () => {
973
973
  t(this, nt).classList.toggle(
974
974
  "current",
975
- t(this, Yt).counter.current === t(this, Je)
975
+ t(this, Yt).counter.current === t(this, Qe)
976
976
  );
977
977
  });
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));
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, vs, s), r(this, Qe, e), t(this, nt).addEventListener("click", t(this, ys)), t(this, Yt).counter.subscribe(t(this, Xe)), t(this, Xe).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, vs)), t(this, Yt).counter.unsubscribe(t(this, Qe)), t(this, nt).remove();
984
+ t(this, nt).removeEventListener("click", t(this, ys)), t(this, Yt).counter.unsubscribe(t(this, Xe)), t(this, nt).remove();
985
985
  }
986
986
  }
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 {
987
+ nt = new WeakMap(), Yt = new WeakMap(), Qe = new WeakMap(), vs = new WeakMap(), ys = new WeakMap(), Xe = new WeakMap();
988
+ var ke, _t, ot;
989
+ class Mi extends es {
990
990
  constructor() {
991
991
  super(...arguments);
992
- i(this, Le, null);
992
+ i(this, ke, null);
993
993
  i(this, _t, []);
994
994
  i(this, ot, ws(() => {
995
995
  t(this, _t).forEach((s) => s.destroy()), r(this, _t, []);
@@ -1001,12 +1001,12 @@ class Mi extends ts {
1001
1001
  s,
1002
1002
  this.getAttribute("behaviour") || "smooth"
1003
1003
  );
1004
- t(this, Le).appendChild(h.element), t(this, _t).push(h);
1004
+ t(this, ke).appendChild(h.element), t(this, _t).push(h);
1005
1005
  }
1006
1006
  }, 0));
1007
1007
  }
1008
1008
  connectedCallback() {
1009
- super.connectedCallback(), this.innerHTML = "", r(this, Le, document.createElement("div")), this.appendChild(t(this, Le)), this.scrollElement.addEventListener(
1009
+ super.connectedCallback(), this.innerHTML = "", r(this, ke, document.createElement("div")), this.appendChild(t(this, ke)), this.scrollElement.addEventListener(
1010
1010
  "scrollSectionsChange",
1011
1011
  t(this, ot)
1012
1012
  ), this.scrollElement.sectionsInViewCSSProperty.subscribe(
@@ -1019,13 +1019,13 @@ class Mi extends ts {
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, _t).forEach((e) => e.destroy()), r(this, _t, []), t(this, Le).remove();
1022
+ ), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, _t).forEach((e) => e.destroy()), r(this, _t, []), t(this, ke).remove();
1023
1023
  }
1024
1024
  }
1025
- Le = new WeakMap(), _t = new WeakMap(), ot = new WeakMap();
1025
+ ke = new WeakMap(), _t = new WeakMap(), ot = new WeakMap();
1026
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 {
1027
+ var te, ee, se, ie, Vt, zt, At, It, A, H, $, B, Mt, k, lt, ct, X, Ft, Ve, ut, at, dt, w, W, N, Y, _, Z, Ye, S, Tt, re, _e, x, pt, T, I, j, ze, Rt, y, he, m, _s, ti, ei, si, ii, ri, ts, Ae, Rs, ae, hi, ni, Ds;
1028
+ class Fi extends es {
1029
1029
  constructor() {
1030
1030
  super(...arguments);
1031
1031
  i(this, m);
@@ -1033,8 +1033,8 @@ class Fi extends ts {
1033
1033
  i(this, ee);
1034
1034
  i(this, se);
1035
1035
  i(this, ie);
1036
- i(this, zt);
1037
1036
  i(this, Vt);
1037
+ i(this, zt);
1038
1038
  i(this, At);
1039
1039
  i(this, It);
1040
1040
  i(this, A);
@@ -1043,11 +1043,11 @@ class Fi extends ts {
1043
1043
  i(this, B);
1044
1044
  i(this, Mt);
1045
1045
  i(this, k);
1046
- i(this, ct);
1047
1046
  i(this, lt);
1047
+ i(this, ct);
1048
1048
  i(this, X);
1049
1049
  i(this, Ft);
1050
- i(this, ke);
1050
+ i(this, Ve);
1051
1051
  i(this, ut);
1052
1052
  i(this, at);
1053
1053
  i(this, dt);
@@ -1057,11 +1057,11 @@ class Fi extends ts {
1057
1057
  i(this, Y);
1058
1058
  i(this, _);
1059
1059
  i(this, Z);
1060
- i(this, Xe);
1060
+ i(this, Ye);
1061
1061
  i(this, S);
1062
1062
  i(this, Tt);
1063
1063
  i(this, re);
1064
- i(this, Ye);
1064
+ i(this, _e);
1065
1065
  i(this, x);
1066
1066
  i(this, pt);
1067
1067
  i(this, T);
@@ -1071,68 +1071,68 @@ class Fi extends ts {
1071
1071
  i(this, Rt);
1072
1072
  i(this, y);
1073
1073
  i(this, he);
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(
1074
+ i(this, ts);
1075
+ i(this, Ae);
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, zt, new l(
1077
1077
  this,
1078
1078
  "--distance-offset",
1079
1079
  0,
1080
1080
  { rawValueCheck: !1 }
1081
- )), r(this, At, new c(this, "--start-offset", 0, {
1081
+ )), r(this, At, new l(this, "--start-offset", 0, {
1082
1082
  rawValueCheck: !1
1083
- })), r(this, It, new c(
1083
+ })), r(this, It, new l(
1084
1084
  this,
1085
1085
  "--capture-once",
1086
1086
  !1
1087
- )), r(this, A, new c(this, "--captured", "")), r(this, H, new c(this, "--released", "")), r(this, $, new c(
1087
+ )), r(this, A, new l(this, "--captured", "")), r(this, H, new l(this, "--released", "")), r(this, $, new l(
1088
1088
  this,
1089
1089
  "--captured-from-start",
1090
1090
  ""
1091
- )), r(this, B, new c(
1091
+ )), r(this, B, new l(
1092
1092
  this,
1093
1093
  "--captured-from-finish",
1094
1094
  ""
1095
- )), r(this, Mt, new c(
1095
+ )), r(this, Mt, new l(
1096
1096
  this,
1097
1097
  "--released-from-start",
1098
1098
  ""
1099
- )), r(this, k, new c(
1099
+ )), r(this, k, new l(
1100
1100
  this,
1101
1101
  "--released-from-finish",
1102
1102
  ""
1103
- )), r(this, ct, new c(this, "--passed-var", "")), r(this, lt, new c(this, "--progress-var", "")), r(this, X, new c(
1103
+ )), r(this, lt, new l(this, "--passed-var", "")), r(this, ct, new l(this, "--progress-var", "")), r(this, X, new l(
1104
1104
  this,
1105
1105
  "--progress-arc-var",
1106
1106
  ""
1107
- )), r(this, Ft, new c(
1107
+ )), r(this, Ft, new l(
1108
1108
  this,
1109
1109
  "--progress-arc-mult",
1110
1110
  1
1111
- )), r(this, ke, new c(
1111
+ )), r(this, Ve, new l(
1112
1112
  this,
1113
1113
  "--animation-var-type",
1114
1114
  "target"
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));
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, 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, Ye, []), r(this, S, this), r(this, Tt, 0), r(this, re, 0), r(this, _e, 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 ? os(this, this.scrollElement) : ls(this, this.scrollElement));
1117
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, 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);
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, zt).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, Ae).call(this);
1122
1122
  }, this.findAnotherScrollEntries = ws(() => {
1123
- const e = ne.getAll(this).reverse();
1123
+ const e = oe.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, Xe, e.slice(s + 1)), this.tick();
1128
- }, 0), r(this, _e, () => {
1127
+ }), r(this, Ye, e.slice(s + 1)), this.tick();
1128
+ }, 0), r(this, ts, () => {
1129
1129
  t(this, y) || this.resize();
1130
- }), r(this, Ve, () => {
1130
+ }), r(this, Ae, () => {
1131
1131
  !t(this, y) && t(this, ze) && this.tick();
1132
1132
  });
1133
1133
  }
1134
1134
  get distanceOffsetCSSProperty() {
1135
- return t(this, Vt);
1135
+ return t(this, zt);
1136
1136
  }
1137
1137
  get startOffsetCSSProperty() {
1138
1138
  return t(this, At);
@@ -1159,10 +1159,10 @@ class Fi extends ts {
1159
1159
  return t(this, k);
1160
1160
  }
1161
1161
  get passedVarCSSProperty() {
1162
- return t(this, ct);
1162
+ return t(this, lt);
1163
1163
  }
1164
1164
  get progressVarCSSProperty() {
1165
- return t(this, lt);
1165
+ return t(this, ct);
1166
1166
  }
1167
1167
  get progressArcVarCSSProperty() {
1168
1168
  return t(this, X);
@@ -1171,7 +1171,7 @@ class Fi extends ts {
1171
1171
  return t(this, Ft);
1172
1172
  }
1173
1173
  get animationVarTypeCSSProperty() {
1174
- return t(this, ke);
1174
+ return t(this, Ve);
1175
1175
  }
1176
1176
  get distanceVarCSSProperty() {
1177
1177
  return t(this, ut);
@@ -1183,7 +1183,7 @@ class Fi extends ts {
1183
1183
  return t(this, dt);
1184
1184
  }
1185
1185
  get disabledCSSProperty() {
1186
- return t(this, zt);
1186
+ return t(this, Vt);
1187
1187
  }
1188
1188
  get dampingCSSProperty() {
1189
1189
  return t(this, te);
@@ -1247,7 +1247,7 @@ class Fi extends ts {
1247
1247
  }
1248
1248
  tick() {
1249
1249
  let e = this.scrollElement.currentScrollValue;
1250
- t(this, Xe).forEach((u) => {
1250
+ t(this, Ye).forEach((u) => {
1251
1251
  e += u.value;
1252
1252
  });
1253
1253
  const s = e - t(this, T);
@@ -1294,9 +1294,9 @@ class Fi extends ts {
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, 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();
1297
+ }), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, Vt).observe(), t(this, zt).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, lt).observe(), t(this, ct).observe(), t(this, X).observe(), t(this, Ft).observe(), t(this, Ve).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1298
1298
  let e = !1;
1299
- this.findAnotherScrollEntries(), t(this, zt).current || this.enable(), t(this, te).subscribe((s) => {
1299
+ this.findAnotherScrollEntries(), t(this, Vt).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;
@@ -1304,29 +1304,29 @@ class Fi extends ts {
1304
1304
  t(this, x).stiffness = s.current;
1305
1305
  }), t(this, ie).subscribe((s) => {
1306
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) => {
1307
+ }), t(this, Vt).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, Vt).subscribe(() => {
1311
+ }), t(this, zt).subscribe(() => {
1312
1312
  e && !t(this, y) && this.resize();
1313
1313
  }), t(this, A).subscribe((s) => {
1314
- o(this, m, ue).call(this, s);
1314
+ o(this, m, ae).call(this, s);
1315
1315
  }), t(this, $).subscribe((s) => {
1316
- o(this, m, ue).call(this, s);
1316
+ o(this, m, ae).call(this, s);
1317
1317
  }), t(this, B).subscribe((s) => {
1318
- o(this, m, ue).call(this, s);
1318
+ o(this, m, ae).call(this, s);
1319
1319
  }), t(this, H).subscribe((s) => {
1320
- o(this, m, ue).call(this, s);
1320
+ o(this, m, ae).call(this, s);
1321
1321
  }), t(this, Mt).subscribe((s) => {
1322
- o(this, m, ue).call(this, s);
1322
+ o(this, m, ae).call(this, s);
1323
1323
  }), t(this, k).subscribe((s) => {
1324
- o(this, m, ue).call(this, s);
1324
+ o(this, m, ae).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, ct).subscribe((s) => {
1328
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1329
1327
  }), t(this, lt).subscribe((s) => {
1328
+ t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1329
+ }), t(this, ct).subscribe((s) => {
1330
1330
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, pt)));
1331
1331
  }), t(this, X).subscribe((s) => {
1332
1332
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
@@ -1347,13 +1347,13 @@ class Fi extends ts {
1347
1347
  }), this.scrollElement.addEventListener(
1348
1348
  "scrollSectionsChange",
1349
1349
  this.findAnotherScrollEntries
1350
- ), this.scrollElement.addEventListener("scrollResize", this.resize), ft.subscribe(t(this, _e), xs.SCROLL + 1), this.scrollElement.onScroll(t(this, Ve)), e = !0;
1350
+ ), this.scrollElement.addEventListener("scrollResize", this.resize), ft.subscribe(t(this, ts), xs.SCROLL + 1), this.scrollElement.onScroll(t(this, Ae)), e = !0;
1351
1351
  }
1352
1352
  disconnectedCallback() {
1353
- ft.unsubscribe(t(this, _e)), this.scrollElement.offScroll(t(this, Ve)), this.scrollElement.removeEventListener(
1353
+ ft.unsubscribe(t(this, ts)), this.scrollElement.offScroll(t(this, Ae)), 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, 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();
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, zt).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, lt).close(), t(this, ct).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,13 +1365,13 @@ class Fi extends ts {
1365
1365
  }
1366
1366
  }
1367
1367
  getDistance() {
1368
- return t(this, re) + t(this, Ye);
1368
+ return t(this, re) + t(this, _e);
1369
1369
  }
1370
1370
  getStart() {
1371
- return t(this, Tt) - t(this, Ye);
1371
+ return t(this, Tt) - t(this, _e);
1372
1372
  }
1373
1373
  }
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() {
1374
+ te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), Vt = new WeakMap(), zt = 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(), lt = new WeakMap(), ct = new WeakMap(), X = new WeakMap(), Ft = new WeakMap(), Ve = 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(), Ye = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), re = new WeakMap(), _e = 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
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
1376
  t(this, k).current
1377
1377
  ), t(this, k).current && t(this, S).classList.remove(
@@ -1399,10 +1399,10 @@ te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(),
1399
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
1400
  t(this, k).current
1401
1401
  );
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
- }, ue = function(e) {
1402
+ }, ts = new WeakMap(), Ae = new WeakMap(), Rs = function() {
1403
+ const e = t(this, x)[t(this, Ve).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, X).current && this.setVar(t(this, X).current, this.progressArc);
1405
+ }, ae = 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;
@@ -1417,13 +1417,13 @@ te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(),
1417
1417
  s && t(this, S).style.removeProperty(`--${s}`);
1418
1418
  });
1419
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);
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, lt).current, t(this, ct).current, t(this, X).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1421
1421
  };
1422
1422
  q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Fi);
1423
1423
  class Ti extends $s {
1424
1424
  handleClick(n) {
1425
1425
  this.scrollElement.setPosition(
1426
- this.scrollElement.vertical ? ns(this) : os(this),
1426
+ this.scrollElement.vertical ? os(this) : ls(this),
1427
1427
  n
1428
1428
  );
1429
1429
  }
@@ -1435,56 +1435,66 @@ class Ti extends $s {
1435
1435
  }
1436
1436
  }
1437
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 {
1438
+ var Cs;
1439
+ const Bs = class Bs extends es {
1440
1440
  constructor() {
1441
1441
  super(...arguments);
1442
- i(this, ys, () => {
1442
+ i(this, Cs, () => {
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 zs(this, null, function* () {
1449
- ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, ys));
1448
+ return Vs(this, null, function* () {
1449
+ ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Cs));
1450
1450
  });
1451
1451
  }
1452
1452
  disconnectedCallback() {
1453
- this.scrollElement.counter.unsubscribe(t(this, ys));
1453
+ this.scrollElement.counter.unsubscribe(t(this, Cs));
1454
1454
  }
1455
1455
  };
1456
- ys = new WeakMap();
1456
+ Cs = new WeakMap();
1457
1457
  let Os = Bs;
1458
1458
  q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Os);
1459
- var Cs;
1460
- const Ws = class Ws extends ts {
1459
+ var ne;
1460
+ const Ws = class Ws extends es {
1461
1461
  constructor() {
1462
1462
  super(...arguments);
1463
- i(this, Cs, () => {
1464
- const e = this.scrollElement.limit, s = parseInt(this.getAttribute("pad") || "0");
1463
+ i(this, ne, () => {
1464
+ const e = this.scrollElement.limit + 1, s = parseInt(this.getAttribute("pad") || "0");
1465
1465
  this.textContent = e.toString().padStart(s, "0");
1466
1466
  });
1467
1467
  }
1468
1468
  connectedCallback() {
1469
- return zs(this, null, function* () {
1470
- ks(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Cs));
1469
+ return Vs(this, null, function* () {
1470
+ ks(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.sectionsInViewCSSProperty.subscribe(
1471
+ t(this, ne)
1472
+ ), this.scrollElement.addEventListener(
1473
+ "scrollSectionsChange",
1474
+ t(this, ne)
1475
+ ), t(this, ne).call(this);
1471
1476
  });
1472
1477
  }
1473
1478
  disconnectedCallback() {
1474
- this.scrollElement.counter.unsubscribe(t(this, Cs));
1479
+ this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
1480
+ t(this, ne)
1481
+ ), this.scrollElement.removeEventListener(
1482
+ "scrollSectionsChange",
1483
+ t(this, ne)
1484
+ );
1475
1485
  }
1476
1486
  };
1477
- Cs = new WeakMap();
1487
+ ne = new WeakMap();
1478
1488
  let Hs = Ws;
1479
1489
  q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", Hs);
1480
1490
  export {
1481
1491
  Mi as ScrollBulletButtonsElement,
1482
1492
  Os as ScrollCounterElement,
1483
- Vs as ScrollElement,
1493
+ zs as ScrollElement,
1484
1494
  Ti as ScrollSectionButtonElement,
1485
1495
  Fi as ScrollSegmentElement,
1486
- Vi as ScrollSetButtonElement,
1496
+ zi as ScrollSetButtonElement,
1487
1497
  Ai as ScrollStepButtonElement,
1488
1498
  Hs as ScrollTotalElement,
1489
- zi as ScrollbarElement
1499
+ Vi as ScrollbarElement
1490
1500
  };