aptechka 0.35.3 → 0.36.1

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,63 +1,63 @@
1
- var Te = Object.defineProperty;
2
- var ye = Object.getOwnPropertySymbols;
3
- var Ae = Object.prototype.hasOwnProperty, Me = Object.prototype.propertyIsEnumerable;
4
- var we = (c) => {
5
- throw TypeError(c);
1
+ var Me = Object.defineProperty;
2
+ var we = Object.getOwnPropertySymbols;
3
+ var Ve = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
4
+ var xe = (a) => {
5
+ throw TypeError(a);
6
6
  };
7
- var Ce = (c, h, e) => h in c ? Te(c, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[h] = e, Ee = (c, h) => {
7
+ var Ee = (a, h, e) => h in a ? Me(a, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[h] = e, Pe = (a, h) => {
8
8
  for (var e in h || (h = {}))
9
- Ae.call(h, e) && Ce(c, e, h[e]);
10
- if (ye)
11
- for (var e of ye(h))
12
- Me.call(h, e) && Ce(c, e, h[e]);
13
- return c;
9
+ Ve.call(h, e) && Ee(a, e, h[e]);
10
+ if (we)
11
+ for (var e of we(h))
12
+ Oe.call(h, e) && Ee(a, e, h[e]);
13
+ return a;
14
14
  };
15
- var ue = (c, h, e) => h.has(c) || we("Cannot " + e);
16
- var t = (c, h, e) => (ue(c, h, "read from private field"), e ? e.call(c) : h.get(c)), s = (c, h, e) => h.has(c) ? we("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(c) : h.set(c, e), r = (c, h, e, i) => (ue(c, h, "write to private field"), i ? i.call(c, e) : h.set(c, e), e), d = (c, h, e) => (ue(c, h, "access private method"), e);
17
- import { S as Ve } from "../../Store-OTdcl6SX.js";
18
- import { i as ce } from "../../browser-0zX67oeU.js";
19
- import { q as Oe } from "../../easings-BEmRlrDd.js";
20
- import { d as ne } from "../../events-CsVF98U6.js";
21
- import { c as Pe } from "../../jss-CjccJC-K.js";
22
- import { a as de, g as fe } from "../../layout-HoBT_Da2.js";
23
- import { c as Le } from "../../math-BOBiC4TN.js";
15
+ var de = (a, h, e) => h.has(a) || xe("Cannot " + e);
16
+ var t = (a, h, e) => (de(a, h, "read from private field"), e ? e.call(a) : h.get(a)), s = (a, h, e) => h.has(a) ? xe("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(a) : h.set(a, e), r = (a, h, e, i) => (de(a, h, "write to private field"), i ? i.call(a, e) : h.set(a, e), e), c = (a, h, e) => (de(a, h, "access private method"), e);
17
+ import { S as Re } from "../../Store-OTdcl6SX.js";
18
+ import { i as ae } from "../../browser-0zX67oeU.js";
19
+ import { q as He } from "../../easings-BEmRlrDd.js";
20
+ import { d as he } from "../../events-CsVF98U6.js";
21
+ import { c as ke } from "../../jss-CjccJC-K.js";
22
+ import { a as pe, g as fe } from "../../layout-HoBT_Da2.js";
23
+ import { c as ze } from "../../math-BOBiC4TN.js";
24
24
  import "../../ticker/vanilla/index.js";
25
- import { TICK_ORDER as Re, RESIZE_ORDER as pe } from "../../order/index.js";
26
- import { D as He } from "../../Damped-Chu29wn-.js";
27
- import { T as Be } from "../../Tweened-DJzAFsVZ.js";
28
- import { WheelControls as We, KeyboardControls as Fe, DragControls as $e, AutoplayControls as qe } from "../../controls/index.js";
29
- import { windowResizer as Lt } from "../../window-resizer/vanilla/index.js";
30
- import { scrollEntries as pt } from "../../scroll-entries/index.js";
31
- import { cssUnitParser as xe } from "../../css-unit-parser/index.js";
25
+ import { TICK_ORDER as Be, RESIZE_ORDER as me } from "../../order/index.js";
26
+ import { D as We } from "../../Damped-Chu29wn-.js";
27
+ import { T as Fe } from "../../Tweened-DJzAFsVZ.js";
28
+ import { WheelControls as $e, KeyboardControls as qe, DragControls as Ne, AutoplayControls as Ue } from "../../controls/index.js";
29
+ import { windowResizer as kt } from "../../window-resizer/vanilla/index.js";
30
+ import { scrollEntries as mt } from "../../scroll-entries/index.js";
31
+ import { cssUnitParser as Le } from "../../css-unit-parser/index.js";
32
32
  import { CSSProperty as p } from "../../css-property/index.js";
33
- import { device as Ne } from "../../device/index.js";
34
- import { elementResizer as _t } from "../../element-resizer/vanilla/index.js";
35
- import { s as Ue } from "../../gestures-D2Fdra_G.js";
36
- import { f as ke } from "../../dom-0S_WDL4g.js";
37
- import { d as Ge } from "../../function-C10DGppn.js";
38
- import { ScrollSegmentElement as Ke } from "../../scroll-segment/index.js";
39
- var b, jt, g, mt, H, Q;
40
- class _e {
33
+ import { device as Ge } from "../../device/index.js";
34
+ import { elementResizer as Zt } from "../../element-resizer/vanilla/index.js";
35
+ import { s as Ke } from "../../gestures-D2Fdra_G.js";
36
+ import { f as Ie } from "../../dom-0S_WDL4g.js";
37
+ import { d as _e } from "../../function-C10DGppn.js";
38
+ import { ScrollSegmentElement as Ze } from "../../scroll-segment/index.js";
39
+ var b, Jt, g, bt, H, Q;
40
+ class je {
41
41
  constructor(h, e, i) {
42
42
  s(this, b);
43
- s(this, jt);
43
+ s(this, Jt);
44
44
  s(this, g);
45
- s(this, mt, 0);
45
+ s(this, bt, 0);
46
46
  s(this, H, 0);
47
47
  s(this, Q, null);
48
- r(this, b, h), r(this, jt, e), r(this, g, i), pt.register(t(this, b));
48
+ r(this, b, h), r(this, Jt, e), r(this, g, i), mt.register(t(this, b));
49
49
  }
50
50
  get index() {
51
- return t(this, jt);
51
+ return t(this, Jt);
52
52
  }
53
53
  get size() {
54
- return t(this, mt);
54
+ return t(this, bt);
55
55
  }
56
56
  get position() {
57
57
  return t(this, H);
58
58
  }
59
59
  destroy() {
60
- pt.unregister(t(this, b)), this.unsetTransform();
60
+ mt.unregister(t(this, b)), this.unsetTransform();
61
61
  }
62
62
  unsetTransform() {
63
63
  t(this, b).style.transform = "", this.mark(null), this.setSize();
@@ -66,21 +66,21 @@ class _e {
66
66
  h ? (t(this, b).style.setProperty("--size", h + "px"), t(this, g).axisCSSProperty.current === "x" ? (t(this, b).style.width = h + "px", t(this, b).style.height = "") : (t(this, b).style.height = h + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
67
67
  }
68
68
  resize() {
69
- r(this, mt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), r(this, H, t(this, g).vertical ? de(t(this, b)) : fe(t(this, b))), r(this, H, t(this, H) - t(this, g).contentPosition);
69
+ r(this, bt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), r(this, H, t(this, g).vertical ? pe(t(this, b)) : fe(t(this, b))), r(this, H, t(this, H) - t(this, g).contentPosition);
70
70
  }
71
71
  transform() {
72
72
  let h = 0;
73
73
  const e = t(this, g).viewportSize * t(this, g).sectionDistanceScaleCSSProperty.current;
74
- t(this, g).loopCSSProperty.current && t(this, g).overscroll && t(this, H) + t(this, mt) < t(this, g).currentScrollValue && (h = t(this, g).distance * -1 - t(this, g).gap), pt.update(
74
+ t(this, g).loopCSSProperty.current && t(this, g).overscroll && t(this, H) + t(this, bt) < t(this, g).currentScrollValue && (h = t(this, g).distance * -1 - t(this, g).gap), mt.update(
75
75
  t(this, b),
76
76
  t(this, g).axisCSSProperty.current,
77
77
  h
78
78
  );
79
- const i = t(this, g).currentScrollValue + h, n = t(this, H) - t(this, g).viewportSize - e, u = t(this, H) + t(this, mt) + e, m = Le(i, n, u);
79
+ const i = t(this, g).currentScrollValue + h, n = t(this, H) - t(this, g).viewportSize - e, d = t(this, H) + t(this, bt) + e, m = ze(i, n, d);
80
80
  t(this, g).vertical ? t(this, b).style.transform = `translate3d(0px, ${m * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${m * -1}px, 0px, 0px)`;
81
81
  }
82
82
  mark(h) {
83
- t(this, Q) !== h && (t(this, Q) && t(this, b).classList.remove(t(this, Q)), h && t(this, b).classList.add(h), r(this, Q, h), ne(t(this, b), "scrollSectionMarkChange", {
83
+ t(this, Q) !== h && (t(this, Q) && t(this, b).classList.remove(t(this, Q)), h && t(this, b).classList.add(h), r(this, Q, h), he(t(this, b), "scrollSectionMarkChange", {
84
84
  composed: !0,
85
85
  detail: {
86
86
  mark: t(this, Q)
@@ -89,8 +89,8 @@ class _e {
89
89
  }));
90
90
  }
91
91
  }
92
- b = new WeakMap(), jt = new WeakMap(), g = new WeakMap(), mt = new WeakMap(), H = new WeakMap(), Q = new WeakMap();
93
- const Ze = Pe({
92
+ b = new WeakMap(), Jt = new WeakMap(), g = new WeakMap(), bt = new WeakMap(), H = new WeakMap(), Q = new WeakMap();
93
+ const Je = ke({
94
94
  ":host": {
95
95
  position: "relative",
96
96
  width: "100%",
@@ -128,65 +128,66 @@ const Ze = Pe({
128
128
  flexShrink: "0"
129
129
  }
130
130
  });
131
- var a, bt, L, B, W, F, T, X, Y, $, tt, St, A, y, gt, vt, yt, Ct, kt, D, wt, et, M, st, q, it, Et, N, U, rt, f, zt, l, Jt, Qt, v, S, k, V, nt, O, w, E, It, ht, G, ot, xt, Dt, lt, K, Tt, R, x, o, Kt, Pt, he, oe, me, be, z, At, ze, Mt, Xt, Se, ge, ft, le, Yt;
132
- class Zt extends HTMLElement {
131
+ var u, St, P, X, B, W, F, D, Y, tt, $, et, gt, T, y, vt, yt, Ct, wt, zt, A, Et, st, M, it, q, rt, xt, N, U, nt, f, It, l, Qt, Xt, v, S, k, V, ht, O, w, E, At, ot, G, lt, Pt, Dt, ct, K, Tt, R, x, o, be, _t, Lt, oe, le, Se, ge, z, Mt, Ae, Vt, Yt, ve, ye, ft, ce, te;
132
+ class jt extends HTMLElement {
133
133
  constructor() {
134
134
  super();
135
135
  s(this, o);
136
- s(this, a, null);
137
- s(this, bt, new p(this, "--controls", !0));
138
- s(this, L, new p(this, "--axis", "y"));
136
+ s(this, u, null);
137
+ s(this, St, new p(this, "--controls", !0));
138
+ s(this, P, new p(this, "--axis", "y"));
139
+ s(this, X, new p(this, "--reverse", !1));
139
140
  s(this, B, new p(this, "--direction", 0));
140
141
  s(this, W, new p(this, "--pages", 0, {
141
142
  validate: (e) => Math.max(0, e - 1)
142
143
  }));
143
144
  s(this, F, new p(this, "--split", !1));
144
- s(this, T, new p(this, "--sectional", !1));
145
- s(this, X, new p(
145
+ s(this, D, new p(this, "--sectional", !1));
146
+ s(this, Y, new p(
146
147
  this,
147
148
  "--tween-easing",
148
149
  !1
149
150
  ));
150
- s(this, Y, new p(
151
+ s(this, tt, new p(
151
152
  this,
152
153
  "--tween-duration",
153
154
  !1
154
155
  ));
155
156
  s(this, $, new p(this, "--auto-size", !1));
156
- s(this, tt, new p(
157
+ s(this, et, new p(
157
158
  this,
158
159
  "--wheel-max-delta",
159
160
  !1
160
161
  ));
161
- s(this, St, new p(this, "--drag-inertion", 1));
162
- s(this, A, new p(
162
+ s(this, gt, new p(this, "--drag-inertion", 1));
163
+ s(this, T, new p(
163
164
  this,
164
165
  "--sections-in-view",
165
166
  1
166
167
  ));
167
168
  s(this, y, new p(this, "--loop", !1));
168
- s(this, gt, new p(this, "--damping", 20));
169
- s(this, vt, new p(this, "--mass", 0));
170
- s(this, yt, new p(this, "--stiffness", 0));
171
- s(this, Ct, new p(this, "--mouse-drag", !1));
172
- s(this, kt, new p(
169
+ s(this, vt, new p(this, "--damping", 20));
170
+ s(this, yt, new p(this, "--mass", 0));
171
+ s(this, Ct, new p(this, "--stiffness", 0));
172
+ s(this, wt, new p(this, "--mouse-drag", !1));
173
+ s(this, zt, new p(
173
174
  this,
174
175
  "--section-distance-scale",
175
176
  0.5
176
177
  ));
177
- s(this, D, new p(this, "--autoplay", 0));
178
- s(this, wt, new p(
178
+ s(this, A, new p(this, "--autoplay", 0));
179
+ s(this, Et, new p(
179
180
  this,
180
181
  "--autoplay-pause-duration",
181
182
  0
182
183
  ));
183
- s(this, et, new p(
184
+ s(this, st, new p(
184
185
  this,
185
186
  "--autoplay-user-direction",
186
187
  !1
187
188
  ));
188
189
  s(this, M, new p(this, "--classes", !1));
189
- s(this, st, new p(
190
+ s(this, it, new p(
190
191
  this,
191
192
  "--current-index-start-offset",
192
193
  0
@@ -196,52 +197,52 @@ class Zt extends HTMLElement {
196
197
  "--current-index-end-offset",
197
198
  0
198
199
  ));
199
- s(this, it, new p(this, "--focus-delay", 0));
200
- s(this, Et, new p(
200
+ s(this, rt, new p(this, "--focus-delay", 0));
201
+ s(this, xt, new p(
201
202
  this,
202
203
  "--focus-duration",
203
204
  3e3
204
205
  ));
205
206
  s(this, N, new p(this, "--disabled", !1));
206
207
  s(this, U, new p(this, "--hibernate", !1));
207
- s(this, rt, null);
208
+ s(this, nt, null);
208
209
  s(this, f, null);
209
- s(this, zt, null);
210
+ s(this, It, null);
210
211
  s(this, l, []);
211
- s(this, Jt, 0);
212
212
  s(this, Qt, 0);
213
+ s(this, Xt, 0);
213
214
  s(this, v, 0);
214
215
  s(this, S, 0);
215
216
  s(this, k, 0);
216
217
  s(this, V, null);
217
- s(this, nt, null);
218
+ s(this, ht, null);
218
219
  s(this, O, null);
219
220
  s(this, w, null);
220
- s(this, E, new Ve(0));
221
- s(this, It, 0);
222
- s(this, ht, 0);
221
+ s(this, E, new Re(0));
222
+ s(this, At, 0);
223
+ s(this, ot, 0);
223
224
  s(this, G, !1);
224
- s(this, ot, !0);
225
- s(this, xt, !0);
225
+ s(this, lt, !0);
226
+ s(this, Pt, !0);
226
227
  s(this, Dt);
227
- s(this, lt);
228
- s(this, K, new Be());
228
+ s(this, ct);
229
+ s(this, K, new Fe());
229
230
  s(this, Tt, !1);
230
231
  s(this, R, null);
231
232
  s(this, x, !1);
232
233
  s(this, z, () => {
233
234
  if (t(this, U).current)
234
235
  return;
235
- t(this, a).unlistenAnimationFrame();
236
+ t(this, u).unlistenAnimationFrame();
236
237
  const e = this.currentScrollValue / t(this, S) || 0, i = t(this, E).current;
237
- if (r(this, Jt, this.vertical ? de(this) : fe(this)), r(this, Qt, this.vertical ? de(t(this, f)) : fe(t(this, f))), r(this, v, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, k, xe.parse(
238
+ if (r(this, Qt, this.vertical ? pe(this) : fe(this)), r(this, Xt, this.vertical ? pe(t(this, f)) : fe(t(this, f))), r(this, v, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, k, Le.parse(
238
239
  getComputedStyle(t(this, f)).rowGap
239
- )) : r(this, k, xe.parse(
240
+ )) : r(this, k, Le.parse(
240
241
  getComputedStyle(t(this, f)).columnGap
241
242
  )), t(this, $).current && t(this, l).length) {
242
- const n = t(this, A).current, u = (t(this, v) - t(this, k) * (n - 1)) / n;
243
+ const n = t(this, T).current, d = (t(this, v) - t(this, k) * (n - 1)) / n;
243
244
  t(this, l).forEach((m) => {
244
- m.setSize(u);
245
+ m.setSize(d);
245
246
  });
246
247
  } else
247
248
  t(this, l).forEach((n) => {
@@ -256,95 +257,98 @@ class Zt extends HTMLElement {
256
257
  } else
257
258
  this.vertical ? (t(this, f).style.width = "100%", t(this, f).style.height = "max-content", r(this, S, t(this, f).offsetHeight - t(this, v))) : (t(this, f).style.width = "max-content", t(this, f).style.height = "100%", r(this, S, t(this, f).offsetWidth - t(this, v)));
258
259
  if (!t(this, y).current) {
259
- const n = getComputedStyle(this), u = this.vertical ? parseFloat(n.paddingBlockStart) + parseFloat(n.paddingBlockEnd) : parseFloat(n.paddingInlineStart) + parseFloat(n.paddingInlineEnd);
260
- r(this, S, t(this, S) + u), t(this, a).max = t(this, S);
260
+ const n = getComputedStyle(this), d = this.vertical ? parseFloat(n.paddingBlockStart) + parseFloat(n.paddingBlockEnd) : parseFloat(n.paddingInlineStart) + parseFloat(n.paddingInlineEnd);
261
+ r(this, S, t(this, S) + d), t(this, u).max = t(this, S);
261
262
  }
262
263
  if (t(this, y).current && t(this, l).length) {
263
- const n = t(this, l)[t(this, l).length - 1], u = n.position + n.size - t(this, v), m = t(this, S) - u;
264
- r(this, ht, n.position + n.size + m);
264
+ const n = t(this, l)[t(this, l).length - 1], d = n.position + n.size - t(this, v), m = t(this, S) - d;
265
+ r(this, ot, n.position + n.size + m);
265
266
  } else
266
- r(this, ht, t(this, S));
267
- if (t(this, T).current && t(this, l).length) {
267
+ r(this, ot, t(this, S));
268
+ if (t(this, D).current && t(this, l).length) {
268
269
  const n = t(this, l)[i];
269
- t(this, a).set(n.position, {
270
+ t(this, u).set(n.position, {
270
271
  equalize: !0
271
272
  });
272
273
  } else
273
- t(this, a).set(e * t(this, S), {
274
+ t(this, u).set(e * t(this, S), {
274
275
  equalize: !0
275
276
  });
276
- r(this, G, (this.vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth) > t(this, v)), this.classList.toggle("has-overflow", t(this, G)), t(this, G) ? t(this, N).current || d(this, o, oe).call(this) : d(this, o, he).call(this), t(this, At).call(this);
277
+ r(this, G, (this.vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth) > t(this, v)), this.classList.toggle("has-overflow", t(this, G)), t(this, G) ? t(this, N).current || c(this, o, le).call(this) : c(this, o, oe).call(this), t(this, Mt).call(this);
277
278
  });
278
- s(this, At, () => {
279
+ s(this, Mt, () => {
279
280
  if (!t(this, G) || t(this, U).current || t(this, N).current)
280
281
  return;
281
282
  const e = this.currentScrollValue;
282
- if (r(this, It, Math.max(0, e - t(this, S))), t(this, l).length) {
283
+ if (r(this, At, Math.max(0, e - t(this, S))), t(this, l).length) {
283
284
  for (let i = 0; i < t(this, l).length; i++)
284
285
  t(this, l)[i].transform();
285
- t(this, E).current = d(this, o, le).call(this);
286
+ t(this, E).current = c(this, o, ce).call(this);
286
287
  } else
287
288
  this.vertical ? t(this, f).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, f).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
288
- pt.update(
289
+ mt.update(
289
290
  this,
290
- t(this, L).current,
291
+ t(this, P).current,
291
292
  e
292
293
  );
293
294
  });
294
- s(this, Mt, (e, i) => {
295
- t(this, bt).current && (d(this, o, Se).call(this, Math.sign(i) || 1), t(this, Xt).call(this, e, i));
295
+ s(this, Vt, (e, i) => {
296
+ t(this, St).current && (c(this, o, ve).call(this, Math.sign(i) || 1), t(this, Yt).call(this, e, i));
296
297
  });
297
- s(this, Xt, (e, i) => {
298
+ s(this, Yt, (e, i) => {
298
299
  if (t(this, B).current) {
299
300
  if (t(this, B).current < 0 && i > 0)
300
301
  return;
301
302
  if (t(this, B).current > 0 && i < 0)
302
303
  return;
303
304
  }
304
- if (t(this, lt) || t(this, K).unlistenAnimationFrame(), !t(this, D).current && t(this, it).current && (clearInterval(t(this, Dt)), r(this, Dt, setTimeout(() => {
305
- const n = t(this, l)[d(this, o, le).call(this)];
305
+ if (t(this, ct) || t(this, K).unlistenAnimationFrame(), !t(this, A).current && t(this, rt).current && (clearInterval(t(this, Dt)), r(this, Dt, setTimeout(() => {
306
+ const n = t(this, l)[c(this, o, ce).call(this)];
306
307
  n && this.scrollToSection(n.index, {
307
308
  tween: {
308
- duration: t(this, Et).current,
309
- easing: Oe
309
+ duration: t(this, xt).current,
310
+ easing: He
310
311
  }
311
312
  });
312
- }, t(this, it).current))), !(e.includes("drag") && !Ne.isMobile && !t(this, Ct).current)) {
313
- if (t(this, T).current && e !== "drag") {
313
+ }, t(this, rt).current))), !(e.includes("drag") && !Ge.isMobile && !t(this, wt).current)) {
314
+ if (t(this, D).current && e !== "drag") {
314
315
  const n = Math.sign(i);
315
316
  if (t(this, l).length) {
316
- const u = {
317
- tween: t(this, X).current || t(this, Y).current ? {
318
- easing: t(this, X).current || "easeInOutCubic",
319
- duration: t(this, Y).current || 500
317
+ const d = {
318
+ tween: t(this, Y).current || t(this, tt).current ? {
319
+ easing: t(this, Y).current || "easeInOutCubic",
320
+ duration: t(this, tt).current || 500
320
321
  } : void 0
321
322
  };
322
- t(this, Tt) ? this.scrollToSection(t(this, E).current, u) : this.shiftSections(n, u);
323
+ t(this, Tt) ? this.scrollToSection(t(this, E).current, d) : this.shiftSections(n, d);
323
324
  } else
324
- t(this, a).shift(n * t(this, v));
325
+ t(this, u).shift(n * t(this, v));
325
326
  } else
326
- t(this, a).shift(i);
327
+ t(this, u).shift(i);
327
328
  r(this, Tt, e === "drag");
328
329
  }
329
330
  });
330
- s(this, Yt, () => {
331
- r(this, x, !0), this.hibernatedCSSProperty.current || d(this, o, be).call(this);
331
+ s(this, te, () => {
332
+ r(this, x, !0), this.hibernatedCSSProperty.current || c(this, o, ge).call(this);
332
333
  });
333
- if (ce) {
334
+ if (ae) {
334
335
  const e = this.attachShadow({ mode: "open" });
335
- e.adoptedStyleSheets = [Ze];
336
+ e.adoptedStyleSheets = [Je];
336
337
  const i = document.createElement("div");
337
- i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), r(this, rt, document.createElement("div")), t(this, rt).className = "content-wrapper", r(this, f, document.createElement("div")), t(this, f).className = "content", r(this, zt, document.createElement("slot")), t(this, f).appendChild(t(this, zt)), t(this, rt).appendChild(t(this, f)), e.appendChild(t(this, rt));
338
+ i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), r(this, nt, document.createElement("div")), t(this, nt).className = "content-wrapper", r(this, f, document.createElement("div")), t(this, f).className = "content", r(this, It, document.createElement("slot")), t(this, f).appendChild(t(this, It)), t(this, nt).appendChild(t(this, f)), e.appendChild(t(this, nt));
338
339
  }
339
340
  }
340
341
  get damped() {
341
- return t(this, a);
342
+ return t(this, u);
342
343
  }
343
344
  get controlsCSSProperty() {
344
- return t(this, bt);
345
+ return t(this, St);
345
346
  }
346
347
  get axisCSSProperty() {
347
- return t(this, L);
348
+ return t(this, P);
349
+ }
350
+ get reverseCSSProperty() {
351
+ return t(this, X);
348
352
  }
349
353
  get directionCSSProperty() {
350
354
  return t(this, B);
@@ -356,67 +360,67 @@ class Zt extends HTMLElement {
356
360
  return t(this, F);
357
361
  }
358
362
  get sectionalCSSProperty() {
359
- return t(this, T);
363
+ return t(this, D);
360
364
  }
361
365
  get easingCSSProperty() {
362
- return t(this, X);
366
+ return t(this, Y);
363
367
  }
364
368
  get durationCSSProperty() {
365
- return t(this, Y);
369
+ return t(this, tt);
366
370
  }
367
371
  get autoSizeCSSProperty() {
368
372
  return t(this, $);
369
373
  }
370
374
  get wheelMaxDeltaCSSProperty() {
371
- return t(this, tt);
375
+ return t(this, et);
372
376
  }
373
377
  get dragInertionCSSProperty() {
374
- return t(this, St);
378
+ return t(this, gt);
375
379
  }
376
380
  get sectionsInViewCSSProperty() {
377
- return t(this, A);
381
+ return t(this, T);
378
382
  }
379
383
  get loopCSSProperty() {
380
384
  return t(this, y);
381
385
  }
382
386
  get dampingCSSProperty() {
383
- return t(this, gt);
387
+ return t(this, vt);
384
388
  }
385
389
  get massCSSProperty() {
386
- return t(this, vt);
390
+ return t(this, yt);
387
391
  }
388
392
  get stiffnessCSSProperty() {
389
- return t(this, yt);
393
+ return t(this, Ct);
390
394
  }
391
395
  get mouseDragCSSProperty() {
392
- return t(this, Ct);
396
+ return t(this, wt);
393
397
  }
394
398
  get sectionDistanceScaleCSSProperty() {
395
- return t(this, kt);
399
+ return t(this, zt);
396
400
  }
397
401
  get autoplayCSSProperty() {
398
- return t(this, D);
402
+ return t(this, A);
399
403
  }
400
404
  get autoplayPauseDurationCSSProperty() {
401
- return t(this, wt);
405
+ return t(this, Et);
402
406
  }
403
407
  get autoplayUserDirectionCSSProperty() {
404
- return t(this, et);
408
+ return t(this, st);
405
409
  }
406
410
  get classesCSSProperty() {
407
411
  return t(this, M);
408
412
  }
409
413
  get currentIndexStartOffsetCSSProperty() {
410
- return t(this, st);
414
+ return t(this, it);
411
415
  }
412
416
  get currentIndexEndOffsetCSSProperty() {
413
417
  return t(this, q);
414
418
  }
415
419
  get focusDelayCSSProperty() {
416
- return t(this, it);
420
+ return t(this, rt);
417
421
  }
418
422
  get focusDurationCSSProperty() {
419
- return t(this, Et);
423
+ return t(this, xt);
420
424
  }
421
425
  get disabledCSSProperty() {
422
426
  return t(this, N);
@@ -425,13 +429,13 @@ class Zt extends HTMLElement {
425
429
  return t(this, U);
426
430
  }
427
431
  get currentScrollValue() {
428
- return d(this, o, ge).call(this, "current");
432
+ return c(this, o, ye).call(this, "current");
429
433
  }
430
434
  get targetScrollValue() {
431
- return d(this, o, ge).call(this, "target");
435
+ return c(this, o, ye).call(this, "target");
432
436
  }
433
437
  get contentWrapperElement() {
434
- return t(this, rt);
438
+ return t(this, nt);
435
439
  }
436
440
  get contentElement() {
437
441
  return t(this, f);
@@ -440,10 +444,10 @@ class Zt extends HTMLElement {
440
444
  return t(this, l);
441
445
  }
442
446
  get position() {
443
- return t(this, Jt);
447
+ return t(this, Qt);
444
448
  }
445
449
  get contentPosition() {
446
- return t(this, Qt);
450
+ return t(this, Xt);
447
451
  }
448
452
  get viewportSize() {
449
453
  return t(this, v);
@@ -459,26 +463,26 @@ class Zt extends HTMLElement {
459
463
  }
460
464
  get limit() {
461
465
  return Math.ceil(
462
- t(this, l).length - t(this, A).current
466
+ t(this, l).length - t(this, T).current
463
467
  );
464
468
  }
465
469
  get distance() {
466
- return t(this, ht);
470
+ return t(this, ot);
467
471
  }
468
472
  get loopDistance() {
469
- return t(this, y).current ? t(this, ht) + t(this, k) : t(this, ht);
473
+ return t(this, y).current ? t(this, ot) + t(this, k) : t(this, ot);
470
474
  }
471
475
  get hasOverflow() {
472
476
  return t(this, G);
473
477
  }
474
478
  get overscroll() {
475
- return t(this, It);
479
+ return t(this, At);
476
480
  }
477
481
  get scrollLine() {
478
482
  return t(this, R);
479
483
  }
480
484
  get vertical() {
481
- return t(this, L).current === "y";
485
+ return t(this, P).current === "y";
482
486
  }
483
487
  get currentProgress() {
484
488
  return this.currentScrollValue / this.loopDistance || 0;
@@ -487,218 +491,223 @@ class Zt extends HTMLElement {
487
491
  return this.targetScrollValue / this.loopDistance || 0;
488
492
  }
489
493
  get scrollWidth() {
490
- return t(this, L).current === "y" ? 0 : t(this, a).distance;
494
+ return t(this, P).current === "y" ? 0 : t(this, u).distance;
491
495
  }
492
496
  get scrollHeight() {
493
- return t(this, L).current === "x" ? 0 : t(this, a).distance;
497
+ return t(this, P).current === "x" ? 0 : t(this, u).distance;
494
498
  }
495
499
  onScroll(...e) {
496
- return t(this, a).subscribe(...e);
500
+ return t(this, u).subscribe(...e);
497
501
  }
498
502
  offScroll(...e) {
499
- t(this, a).unsubscribe(...e);
503
+ t(this, u).unsubscribe(...e);
500
504
  }
501
505
  //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
502
506
  range(e, i, n = 0) {
503
- const u = e - n, m = u + i + n * 2;
504
- return this.currentProgress < u ? 0 : this.currentProgress > m ? 1 : (this.currentProgress - u) / (m - u);
507
+ const d = e - n, m = d + i + n * 2;
508
+ return this.currentProgress < d ? 0 : this.currentProgress > m ? 1 : (this.currentProgress - d) / (m - d);
505
509
  }
506
510
  curve(e, i, n = 0) {
507
511
  return Math.sin(this.range(e, i, n) * Math.PI);
508
512
  }
509
513
  visible(e, i, n = 0) {
510
- const u = e - n, m = u + i + n * 2;
511
- return this.currentProgress >= u && this.currentProgress <= m;
514
+ const d = e - n, m = d + i + n * 2;
515
+ return this.currentProgress >= d && this.currentProgress <= m;
512
516
  }
513
517
  scrollToSection(e, i) {
514
518
  if (!t(this, l).length)
515
519
  return;
516
- const n = t(this, E).current, u = d(this, o, ze).call(this, e), m = t(this, l)[n], C = t(this, l)[u];
520
+ const n = t(this, E).current, d = c(this, o, Ae).call(this, e), m = t(this, l)[n], C = t(this, l)[d];
517
521
  if (m && C) {
518
522
  let I = 0;
519
- const ae = d(this, o, le).call(this), Gt = t(this, l)[ae], De = Gt ? this.targetScrollValue - Gt.position : 0;
520
- t(this, y).current ? u === 0 && n === t(this, l).length - 1 ? I = t(this, S) + t(this, v) - m.position + t(this, k) : u === t(this, l).length - 1 && n === 0 ? I = C.position - (t(this, S) + t(this, v) + t(this, k)) : I = C.position - m.position : I = C.position - m.position, this.shiftPosition(I - De, i);
523
+ const ue = c(this, o, ce).call(this), Kt = t(this, l)[ue], Te = Kt ? this.targetScrollValue - Kt.position : 0;
524
+ t(this, y).current ? d === 0 && n === t(this, l).length - 1 ? I = t(this, S) + t(this, v) - m.position + t(this, k) : d === t(this, l).length - 1 && n === 0 ? I = C.position - (t(this, S) + t(this, v) + t(this, k)) : I = C.position - m.position : I = C.position - m.position, this.shiftPosition(I - Te, i);
521
525
  }
522
526
  }
523
527
  shiftSections(e, i) {
524
528
  t(this, l).length && this.scrollToSection(t(this, E).current + e, i);
525
529
  }
526
530
  setPosition(e, i) {
527
- d(this, o, Se).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, lt) || (t(this, K).set(t(this, a).current, { equalize: !0 }), t(this, K).set(e, Ee({}, i.tween)), r(this, lt, setTimeout(() => {
528
- r(this, lt, void 0);
529
- }, i.tween.duration || 0))) : t(this, a).set(e, {
531
+ c(this, o, ve).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ct) || (t(this, K).set(t(this, u).current, { equalize: !0 }), t(this, K).set(e, Pe({}, i.tween)), r(this, ct, setTimeout(() => {
532
+ r(this, ct, void 0);
533
+ }, i.tween.duration || 0))) : t(this, u).set(e, {
530
534
  equalize: (i == null ? void 0 : i.behaviour) === "instant"
531
535
  });
532
536
  }
533
537
  shiftPosition(e, i) {
534
- this.setPosition(t(this, a).target + e, i);
538
+ this.setPosition(t(this, u).target + e, i);
535
539
  }
536
540
  connectedCallback() {
537
- pt.register(this), r(this, a, new He(0, {
541
+ mt.register(this), r(this, u, new We(0, {
538
542
  damping: 0.01,
539
543
  min: 0,
540
- order: Re.SCROLL
541
- })), this.setAttribute("tabindex", "0"), r(this, V, new We({ element: t(this, f) })), t(this, V).changeEvent.subscribe(t(this, Mt)), r(this, nt, new Fe({
544
+ order: Be.SCROLL
545
+ })), this.setAttribute("tabindex", "0"), r(this, V, new $e({ element: t(this, f) })), t(this, V).changeEvent.subscribe(t(this, Vt)), r(this, ht, new qe({
542
546
  element: this
543
- })), t(this, nt).changeEvent.subscribe(
544
- t(this, Mt)
545
- ), r(this, O, new $e({ element: t(this, f) })), t(this, O).changeEvent.subscribe(t(this, Mt)), r(this, w, new qe({
547
+ })), t(this, ht).changeEvent.subscribe(
548
+ t(this, Vt)
549
+ ), r(this, O, new Ne({ element: t(this, f) })), t(this, O).changeEvent.subscribe(t(this, Vt)), r(this, w, new Ue({
546
550
  culling: this
547
- })), t(this, w).changeEvent.subscribe(t(this, Xt)), t(this, L).subscribe(({ current: e }) => {
548
- t(this, f).style.flexDirection = e === "x" ? "row" : "column", t(this, V).axis = t(this, tt).current ? "max" : e, t(this, nt).dimension = e === "x" ? "width" : "height", t(this, O).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, x) && t(this, z).call(this);
549
- }), t(this, tt).subscribe((e) => {
550
- t(this, V).axis = e.current ? "max" : t(this, L).current;
551
- }), t(this, St).subscribe((e) => {
551
+ })), t(this, w).changeEvent.subscribe(t(this, Yt)), t(this, P).subscribe(() => {
552
+ c(this, o, be).call(this);
553
+ }), t(this, X).subscribe(() => {
554
+ c(this, o, be).call(this);
555
+ }), t(this, et).subscribe((e) => {
556
+ t(this, V).axis = e.current ? "max" : t(this, P).current;
557
+ }), t(this, gt).subscribe((e) => {
552
558
  t(this, O).inertion = typeof e.current == "number" ? e.current : 1;
553
559
  }), t(this, W).subscribe(() => {
554
560
  t(this, x) && t(this, z).call(this);
555
561
  }), t(this, F).subscribe(({ current: e }) => {
556
- t(this, x) && (e ? d(this, o, Kt).call(this) : d(this, o, Pt).call(this));
557
- }), t(this, T).subscribe((e) => {
558
- t(this, V).debounce = e.current, t(this, O).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, l).length ? d(this, o, Kt).call(this) : !e.current && e.previous && t(this, l).length && d(this, o, Pt).call(this));
562
+ t(this, x) && (e ? c(this, o, _t).call(this) : c(this, o, Lt).call(this));
563
+ }), t(this, D).subscribe((e) => {
564
+ t(this, V).debounce = e.current, t(this, O).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, l).length ? c(this, o, _t).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, Lt).call(this));
559
565
  }), t(this, $).subscribe((e) => {
560
- t(this, x) && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? d(this, o, Kt).call(this) : !e.current && e.previous && t(this, l).length && d(this, o, Pt).call(this));
561
- }), t(this, A).subscribe((e) => {
562
- t(this, x) && (t(this, z).call(this), d(this, o, ft).call(this));
566
+ t(this, x) && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? c(this, o, _t).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, Lt).call(this));
567
+ }), t(this, T).subscribe((e) => {
568
+ t(this, x) && (t(this, z).call(this), c(this, o, ft).call(this));
563
569
  }), t(this, y).subscribe((e) => {
564
- e.current ? (t(this, x) && (t(this, l).length || (t(this, F).current = !0)), t(this, a).max = 1 / 0, t(this, a).min = -1 / 0) : (r(this, It, 0), t(this, a).max = t(this, S), t(this, a).min = 0);
565
- }), t(this, gt).subscribe((e) => {
566
- t(this, a).damping = e.current;
570
+ e.current ? (t(this, x) && (t(this, l).length || (t(this, F).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (r(this, At, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
567
571
  }), t(this, vt).subscribe((e) => {
568
- t(this, a).mass = e.current;
572
+ t(this, u).damping = e.current;
569
573
  }), t(this, yt).subscribe((e) => {
570
- t(this, a).stiffness = e.current;
571
- }), t(this, D).subscribe((e) => {
572
- t(this, w).speed = e.current, !t(this, ot) && e.current && !e.previous ? t(this, w).connect() : !e.current && e.previous && t(this, w).disconnect();
573
- }), t(this, et).subscribe((e) => {
574
+ t(this, u).mass = e.current;
575
+ }), t(this, Ct).subscribe((e) => {
576
+ t(this, u).stiffness = e.current;
577
+ }), t(this, A).subscribe((e) => {
578
+ t(this, w).speed = e.current, !t(this, lt) && e.current && !e.previous ? t(this, w).connect() : !e.current && e.previous && t(this, w).disconnect();
579
+ }), t(this, st).subscribe((e) => {
574
580
  e.current || (t(this, w).direction = 1);
575
581
  }), t(this, M).subscribe((e) => {
576
- t(this, x) && d(this, o, ft).call(this);
577
- }), t(this, st).subscribe((e) => {
578
- t(this, x) && t(this, M).current && d(this, o, ft).call(this);
582
+ t(this, x) && c(this, o, ft).call(this);
583
+ }), t(this, it).subscribe((e) => {
584
+ t(this, x) && t(this, M).current && c(this, o, ft).call(this);
579
585
  }), t(this, q).subscribe((e) => {
580
- t(this, x) && t(this, M).current && d(this, o, ft).call(this);
581
- }), t(this, a).isRunning.subscribe((e) => {
586
+ t(this, x) && t(this, M).current && c(this, o, ft).call(this);
587
+ }), t(this, u).isRunning.subscribe((e) => {
582
588
  this.classList.toggle("active", e.current);
583
589
  }), t(this, E).subscribe((e) => {
584
- t(this, l).length && d(this, o, ft).call(this);
590
+ t(this, l).length && c(this, o, ft).call(this);
585
591
  }), t(this, K).subscribe((e) => {
586
- t(this, K).isRunning.current && t(this, a).set(e.current, { equalize: !0 });
592
+ t(this, K).isRunning.current && t(this, u).set(e.current, { equalize: !0 });
587
593
  }), t(this, N).subscribe((e) => {
588
- e.current && !e.previous ? (this.classList.add("disabled"), d(this, o, he).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), d(this, o, oe).call(this));
594
+ e.current && !e.previous ? (this.classList.add("disabled"), c(this, o, oe).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), c(this, o, le).call(this));
589
595
  }), t(this, U).subscribe((e) => {
590
- e.current && !e.previous ? (this.classList.add("hibernated"), d(this, o, me).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), d(this, o, be).call(this));
591
- }), t(this, bt).observe(), t(this, L).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, T).observe(), t(this, X).observe(), t(this, Y).observe(), t(this, $).observe(), t(this, tt).observe(), t(this, St).observe(), t(this, A).observe(), t(this, y).observe(), t(this, gt).observe(), t(this, vt).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, kt).observe(), t(this, D).observe(), t(this, D).observe(), t(this, wt).observe(), t(this, et).observe(), t(this, M).observe(), t(this, st).observe(), t(this, q).observe(), t(this, it).observe(), t(this, Et).observe(), t(this, N).observe(), t(this, U).observe(), Lt.subscribe(t(this, Yt), pe.LAST);
596
+ e.current && !e.previous ? (this.classList.add("hibernated"), c(this, o, Se).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), c(this, o, ge).call(this));
597
+ }), t(this, St).observe(), t(this, P).observe(), t(this, X).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, D).observe(), t(this, Y).observe(), t(this, tt).observe(), t(this, $).observe(), t(this, et).observe(), t(this, gt).observe(), t(this, T).observe(), t(this, y).observe(), t(this, vt).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, wt).observe(), t(this, zt).observe(), t(this, A).observe(), t(this, A).observe(), t(this, Et).observe(), t(this, st).observe(), t(this, M).observe(), t(this, it).observe(), t(this, q).observe(), t(this, rt).observe(), t(this, xt).observe(), t(this, N).observe(), t(this, U).observe(), kt.subscribe(t(this, te), me.LAST);
592
598
  }
593
599
  disconnectedCallback() {
594
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, bt).unobserve(), t(this, L).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, T).unobserve(), t(this, X).unobserve(), t(this, Y).unobserve(), t(this, $).unobserve(), t(this, tt).unobserve(), t(this, St).unobserve(), t(this, A).unobserve(), t(this, y).unobserve(), t(this, gt).unobserve(), t(this, vt).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, kt).unobserve(), t(this, D).unobserve(), t(this, wt).unobserve(), t(this, et).unobserve(), t(this, M).unobserve(), t(this, st).unobserve(), t(this, q).unobserve(), t(this, it).unobserve(), t(this, Et).unobserve(), t(this, N).unobserve(), t(this, U).unobserve(), Lt.unsubscribe(t(this, Yt)), d(this, o, me).call(this);
600
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, St).unobserve(), t(this, P).unobserve(), t(this, X).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, D).unobserve(), t(this, Y).unobserve(), t(this, tt).unobserve(), t(this, $).unobserve(), t(this, et).unobserve(), t(this, gt).unobserve(), t(this, T).unobserve(), t(this, y).unobserve(), t(this, vt).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, wt).unobserve(), t(this, zt).unobserve(), t(this, A).unobserve(), t(this, Et).unobserve(), t(this, st).unobserve(), t(this, M).unobserve(), t(this, it).unobserve(), t(this, q).unobserve(), t(this, rt).unobserve(), t(this, xt).unobserve(), t(this, N).unobserve(), t(this, U).unobserve(), kt.unsubscribe(t(this, te)), c(this, o, Se).call(this);
595
601
  }
596
602
  }
597
- a = new WeakMap(), bt = new WeakMap(), L = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), T = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), $ = new WeakMap(), tt = new WeakMap(), St = new WeakMap(), A = new WeakMap(), y = new WeakMap(), gt = new WeakMap(), vt = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), kt = new WeakMap(), D = new WeakMap(), wt = new WeakMap(), et = new WeakMap(), M = new WeakMap(), st = new WeakMap(), q = new WeakMap(), it = new WeakMap(), Et = new WeakMap(), N = new WeakMap(), U = new WeakMap(), rt = new WeakMap(), f = new WeakMap(), zt = new WeakMap(), l = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), v = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), nt = new WeakMap(), O = new WeakMap(), w = new WeakMap(), E = new WeakMap(), It = new WeakMap(), ht = new WeakMap(), G = new WeakMap(), ot = new WeakMap(), xt = new WeakMap(), Dt = new WeakMap(), lt = new WeakMap(), K = new WeakMap(), Tt = new WeakMap(), R = new WeakMap(), x = new WeakMap(), o = new WeakSet(), Kt = function() {
598
- d(this, o, Pt).call(this), t(this, zt).assignedElements().forEach((e, i) => {
599
- e instanceof HTMLElement && t(this, l).push(new _e(e, i, this));
600
- }), t(this, f).style.transform = "", ne(this, "scrollSectionsChange", {
603
+ u = new WeakMap(), St = new WeakMap(), P = new WeakMap(), X = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), D = new WeakMap(), Y = new WeakMap(), tt = new WeakMap(), $ = new WeakMap(), et = new WeakMap(), gt = new WeakMap(), T = new WeakMap(), y = new WeakMap(), vt = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), wt = new WeakMap(), zt = new WeakMap(), A = new WeakMap(), Et = new WeakMap(), st = new WeakMap(), M = new WeakMap(), it = new WeakMap(), q = new WeakMap(), rt = new WeakMap(), xt = new WeakMap(), N = new WeakMap(), U = new WeakMap(), nt = new WeakMap(), f = new WeakMap(), It = new WeakMap(), l = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), v = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), ht = new WeakMap(), O = new WeakMap(), w = new WeakMap(), E = new WeakMap(), At = new WeakMap(), ot = new WeakMap(), G = new WeakMap(), lt = new WeakMap(), Pt = new WeakMap(), Dt = new WeakMap(), ct = new WeakMap(), K = new WeakMap(), Tt = new WeakMap(), R = new WeakMap(), x = new WeakMap(), o = new WeakSet(), be = function() {
604
+ const e = t(this, P).current, i = t(this, X).current ? "-reverse" : "";
605
+ t(this, f).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, et).current ? "max" : e, t(this, ht).dimension = e === "x" ? "width" : "height", t(this, O).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, x) && t(this, z).call(this);
606
+ }, _t = function() {
607
+ c(this, o, Lt).call(this), t(this, It).assignedElements().forEach((e, i) => {
608
+ e instanceof HTMLElement && t(this, l).push(new je(e, i, this));
609
+ }), t(this, f).style.transform = "", he(this, "scrollSectionsChange", {
601
610
  custom: !0,
602
611
  composed: !0
603
- }), t(this, z).call(this), d(this, o, ft).call(this);
604
- }, Pt = function() {
612
+ }), t(this, z).call(this), c(this, o, ft).call(this);
613
+ }, Lt = function() {
605
614
  t(this, l).forEach((e) => {
606
615
  e.destroy();
607
- }), r(this, l, []), t(this, E).reset(), t(this, a).reset(), ne(this, "scrollSectionsChange", {
616
+ }), r(this, l, []), t(this, E).reset(), t(this, u).reset(), he(this, "scrollSectionsChange", {
608
617
  custom: !0,
609
618
  composed: !0
610
619
  });
611
- }, he = function() {
612
- t(this, ot) || (r(this, ot, !0), t(this, a).unsubscribe(t(this, At)), t(this, a).unlistenAnimationFrame(), clearInterval(t(this, Dt)), clearInterval(t(this, lt)), t(this, K).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, nt).disconnect(), t(this, O).disconnect(), t(this, w).disconnect(), t(this, G) || this.sections.forEach((e) => {
620
+ }, oe = function() {
621
+ t(this, lt) || (r(this, lt, !0), t(this, u).unsubscribe(t(this, Mt)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, Dt)), clearInterval(t(this, ct)), t(this, K).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, ht).disconnect(), t(this, O).disconnect(), t(this, w).disconnect(), t(this, G) || this.sections.forEach((e) => {
613
622
  e.unsetTransform();
614
623
  }));
615
- }, oe = function() {
616
- t(this, ot) && (r(this, ot, !1), t(this, a).subscribe(t(this, At)), t(this, V).connect(), t(this, nt).connect(), t(this, O).connect(), t(this, D).current && t(this, w).connect());
617
- }, me = function() {
618
- t(this, xt) || (r(this, xt, !0), Lt.unsubscribe(t(this, z)), _t.unsubscribe(t(this, z)), d(this, o, he).call(this), t(this, f).style.transform = "", t(this, f).style.height = "", t(this, f).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, l).length ? d(this, o, Pt).call(this) : (t(this, E).reset(), t(this, a).reset()), pt.unregister(this));
619
- }, be = function() {
620
- t(this, xt) && (r(this, xt, !1), pt.register(this), (t(this, y).current || t(this, F).current || t(this, y).current || t(this, $).current || t(this, T).current) && d(this, o, Kt).call(this), d(this, o, oe).call(this), Lt.subscribe(t(this, z), pe.SCROLL), _t.subscribe(this, t(this, z)));
621
- }, z = new WeakMap(), At = new WeakMap(), ze = function(e) {
624
+ }, le = function() {
625
+ t(this, lt) && (r(this, lt, !1), t(this, u).subscribe(t(this, Mt)), t(this, V).connect(), t(this, ht).connect(), t(this, O).connect(), t(this, A).current && t(this, w).connect());
626
+ }, Se = function() {
627
+ t(this, Pt) || (r(this, Pt, !0), kt.unsubscribe(t(this, z)), Zt.unsubscribe(t(this, z)), c(this, o, oe).call(this), t(this, f).style.transform = "", t(this, f).style.height = "", t(this, f).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, l).length ? c(this, o, Lt).call(this) : (t(this, E).reset(), t(this, u).reset()), mt.unregister(this));
628
+ }, ge = function() {
629
+ t(this, Pt) && (r(this, Pt, !1), mt.register(this), (t(this, y).current || t(this, F).current || t(this, y).current || t(this, $).current || t(this, D).current) && c(this, o, _t).call(this), c(this, o, le).call(this), kt.subscribe(t(this, z), me.SCROLL), Zt.subscribe(this, t(this, z)));
630
+ }, z = new WeakMap(), Mt = new WeakMap(), Ae = function(e) {
622
631
  let i = t(this, E).current;
623
- return t(this, y).current ? (i = e % t(this, l).length, i = i < 0 ? t(this, l).length + i : i) : i = Le(e, 0, this.limit), i;
624
- }, Mt = new WeakMap(), Xt = new WeakMap(), Se = function(e = 1) {
625
- t(this, et).current && (t(this, w).direction = e), t(this, D).current && t(this, w).pauseAndContinue(
626
- t(this, wt).current,
632
+ return t(this, y).current ? (i = e % t(this, l).length, i = i < 0 ? t(this, l).length + i : i) : i = ze(e, 0, this.limit), i;
633
+ }, Vt = new WeakMap(), Yt = new WeakMap(), ve = function(e = 1) {
634
+ t(this, st).current && (t(this, w).direction = e), t(this, A).current && t(this, w).pauseAndContinue(
635
+ t(this, Et).current,
627
636
  this.sectionalCSSProperty.current
628
637
  );
629
- }, ge = function(e = "current") {
638
+ }, ye = function(e = "current") {
630
639
  if (t(this, y).current && t(this, l).length) {
631
- const i = t(this, a)[e] % (t(this, S) + t(this, v) + t(this, k));
640
+ const i = t(this, u)[e] % (t(this, S) + t(this, v) + t(this, k));
632
641
  return i < 0 ? t(this, S) + i + t(this, v) + t(this, k) : i;
633
642
  } else
634
- return t(this, a)[e];
643
+ return t(this, u)[e];
635
644
  }, ft = function() {
636
645
  if (t(this, l).length) {
637
- const e = t(this, E).current + t(this, st).current;
638
- if (e === 0 ? r(this, R, "start") : e === this.limit ? r(this, R, "end") : r(this, R, null), ne(this, "scrollLine", {
646
+ const e = t(this, E).current + t(this, it).current;
647
+ if (e === 0 ? r(this, R, "start") : e === this.limit ? r(this, R, "end") : r(this, R, null), he(this, "scrollLine", {
639
648
  detail: { line: t(this, R) }
640
649
  }), t(this, M).current) {
641
650
  this.classList.remove("end", "start"), t(this, R) && this.classList.add(t(this, R));
642
- const i = t(this, A).current + t(this, q).current;
643
- t(this, l).forEach((n, u) => {
651
+ const i = t(this, T).current + t(this, q).current;
652
+ t(this, l).forEach((n, d) => {
644
653
  const m = e - this.limit - 1 + t(this, q).current, C = e + i, I = this.sections.length - C;
645
- u >= e && u < C || u <= m ? n.mark("current") : u >= C && u < C + I / 2 || u <= m + i ? n.mark("next") : n.mark("previous");
654
+ d >= e && d < C || d <= m ? n.mark("current") : d >= C && d < C + I / 2 || d <= m + i ? n.mark("next") : n.mark("previous");
646
655
  });
647
656
  }
648
657
  }
649
658
  }, // TODO: Учитывать loop
650
- le = function() {
659
+ ce = function() {
651
660
  let e = this.targetScrollValue, i = 1 / 0, n = 0;
652
- const u = t(this, a).direction;
661
+ const d = t(this, u).direction;
653
662
  for (let m = 0; m < t(this, l).length; m++) {
654
663
  const C = t(this, l)[m];
655
- let I = t(this, Tt) ? C.size * u * -1 * 0.4 : 0, ae = C.position;
656
- const Gt = Math.abs(ae + I - e);
657
- Gt < i && (i = Gt, n = m);
664
+ let I = t(this, Tt) ? C.size * d * -1 * 0.4 : 0, ue = C.position;
665
+ const Kt = Math.abs(ue + I - e);
666
+ Kt < i && (i = Kt, n = m);
658
667
  }
659
668
  return n;
660
- }, Yt = new WeakMap();
661
- customElements.get("e-scroll") || customElements.define("e-scroll", Zt);
662
- var te;
663
- class ve extends HTMLElement {
669
+ }, te = new WeakMap();
670
+ customElements.get("e-scroll") || customElements.define("e-scroll", jt);
671
+ var ee;
672
+ class Ce extends HTMLElement {
664
673
  constructor() {
665
674
  super(...arguments);
666
- s(this, te, null);
675
+ s(this, ee, null);
667
676
  }
668
677
  get scrollElement() {
669
- return t(this, te);
678
+ return t(this, ee);
670
679
  }
671
680
  connectedCallback() {
672
- const e = ke(this, Zt);
673
- e instanceof Zt ? r(this, te, e) : console.error(this, "e-scroll not found");
681
+ const e = Ie(this, jt);
682
+ e instanceof jt ? r(this, ee, e) : console.error(this, "e-scroll not found");
674
683
  }
675
684
  }
676
- te = new WeakMap();
677
- var ct, P, _, Z, Vt, Ot, at, Rt, ee, se;
678
- class je extends ve {
685
+ ee = new WeakMap();
686
+ var at, L, _, Z, Ot, Rt, ut, Ht, se, ie;
687
+ class Qe extends Ce {
679
688
  constructor() {
680
689
  super();
681
- s(this, ct, null);
682
- s(this, P, null);
690
+ s(this, at, null);
691
+ s(this, L, null);
683
692
  s(this, _, !1);
684
693
  s(this, Z, 0);
685
- s(this, Vt, 0);
686
694
  s(this, Ot, 0);
687
- s(this, at, () => {
695
+ s(this, Rt, 0);
696
+ s(this, ut, () => {
688
697
  r(this, _, this.offsetWidth > this.offsetHeight);
689
698
  const e = t(this, _) ? this.offsetWidth : this.offsetHeight;
690
- r(this, Z, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Z, Math.max(t(this, Z), 30)), t(this, _) ? (t(this, P).style.width = t(this, Z) + "px", t(this, P).style.height = "100%") : (t(this, P).style.width = "100%", t(this, P).style.height = t(this, Z) + "px"), r(this, Vt, e - t(this, Z)), this.scrollElement.scrollSize ? this.style.display = "" : this.style.display = "none", t(this, Rt).call(this);
699
+ r(this, Z, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Z, Math.max(t(this, Z), 30)), t(this, _) ? (t(this, L).style.width = t(this, Z) + "px", t(this, L).style.height = "100%") : (t(this, L).style.width = "100%", t(this, L).style.height = t(this, Z) + "px"), r(this, Ot, e - t(this, Z)), this.scrollElement.scrollSize ? this.style.display = "" : this.style.display = "none", t(this, Ht).call(this);
691
700
  });
692
- s(this, Rt, () => {
693
- r(this, Ot, this.scrollElement.currentProgress * t(this, Vt)), t(this, _) ? t(this, P).style.transform = `translate3d(${t(this, Ot)}px, 0px, 0px)` : t(this, P).style.transform = `translate3d(0px, ${t(this, Ot)}px, 0px)`;
701
+ s(this, Ht, () => {
702
+ r(this, Rt, this.scrollElement.currentProgress * t(this, Ot)), t(this, _) ? t(this, L).style.transform = `translate3d(${t(this, Rt)}px, 0px, 0px)` : t(this, L).style.transform = `translate3d(0px, ${t(this, Rt)}px, 0px)`;
694
703
  });
695
- s(this, ee, () => {
704
+ s(this, se, () => {
696
705
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
697
706
  });
698
- s(this, se, (e) => {
699
- document.documentElement.classList.add("grabbing"), Ue(
700
- (u) => {
701
- const m = t(this, _) ? u.x : u.y, C = this.scrollElement.distance / t(this, Vt), I = (m - n) * C;
707
+ s(this, ie, (e) => {
708
+ document.documentElement.classList.add("grabbing"), Ke(
709
+ (d) => {
710
+ const m = t(this, _) ? d.x : d.y, C = this.scrollElement.distance / t(this, Ot), I = (m - n) * C;
702
711
  this.scrollElement.setPosition(i + I);
703
712
  },
704
713
  () => {
@@ -707,10 +716,10 @@ class je extends ve {
707
716
  );
708
717
  const i = this.scrollElement.damped.target, n = t(this, _) ? e.x : e.y;
709
718
  });
710
- if (ce) {
719
+ if (ae) {
711
720
  const e = this.attachShadow({ mode: "open" });
712
721
  e.adoptedStyleSheets = [
713
- Pe({
722
+ ke({
714
723
  ":host": {
715
724
  display: "inline-block",
716
725
  zIndex: "1",
@@ -739,36 +748,36 @@ class je extends ve {
739
748
  touchAction: "none"
740
749
  }
741
750
  })
742
- ], r(this, ct, document.createElement("slot")), t(this, ct).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, ct));
751
+ ], r(this, at, document.createElement("slot")), t(this, at).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, at));
743
752
  }
744
753
  }
745
754
  get thumbElement() {
746
- return t(this, P);
755
+ return t(this, L);
747
756
  }
748
757
  connectedCallback() {
749
758
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
750
- const e = t(this, ct).assignedElements()[0] || t(this, ct).firstElementChild;
751
- r(this, P, e), t(this, P).addEventListener("pointerdown", t(this, se)), Lt.subscribe(t(this, at), pe.SCROLL), _t.subscribe(this, t(this, at)), _t.subscribe(this.scrollElement, t(this, at)), this.scrollElement.onScroll(t(this, Rt)), this.scrollElement.axisCSSProperty.subscribe(t(this, ee));
759
+ const e = t(this, at).assignedElements()[0] || t(this, at).firstElementChild;
760
+ r(this, L, e), t(this, L).addEventListener("pointerdown", t(this, ie)), kt.subscribe(t(this, ut), me.SCROLL), Zt.subscribe(this, t(this, ut)), Zt.subscribe(this.scrollElement, t(this, ut)), this.scrollElement.onScroll(t(this, Ht)), this.scrollElement.axisCSSProperty.subscribe(t(this, se));
752
761
  }
753
762
  disconnectedCallback() {
754
- this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, P).removeEventListener("pointerdown", t(this, se)), Lt.unsubscribe(t(this, at)), _t.unsubscribe(t(this, at)), this.scrollElement.offScroll(t(this, Rt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ee));
763
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, L).removeEventListener("pointerdown", t(this, ie)), kt.unsubscribe(t(this, ut)), Zt.unsubscribe(t(this, ut)), this.scrollElement.offScroll(t(this, Ht)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, se));
755
764
  }
756
765
  }
757
- ct = new WeakMap(), P = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), Vt = new WeakMap(), Ot = new WeakMap(), at = new WeakMap(), Rt = new WeakMap(), ee = new WeakMap(), se = new WeakMap();
758
- customElements.get("e-scrollbar") || customElements.define("e-scrollbar", je);
759
- var Ht, Bt, Wt;
760
- class Ie extends ve {
766
+ at = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), ut = new WeakMap(), Ht = new WeakMap(), se = new WeakMap(), ie = new WeakMap();
767
+ customElements.get("e-scrollbar") || customElements.define("e-scrollbar", Qe);
768
+ var Bt, Wt, Ft;
769
+ class De extends Ce {
761
770
  constructor() {
762
771
  super();
763
- s(this, Ht, new p(this, "--behaviour", "smooth"));
764
- s(this, Bt, new p(
772
+ s(this, Bt, new p(this, "--behaviour", "smooth"));
773
+ s(this, Wt, new p(
765
774
  this,
766
775
  "--tween-easing",
767
776
  !1
768
777
  ));
769
- s(this, Wt, new p(this, "--tween-duration", 0));
770
- ce && this.addEventListener("click", () => {
771
- const e = t(this, Ht).current, i = t(this, Bt).current, n = t(this, Wt).current;
778
+ s(this, Ft, new p(this, "--tween-duration", 0));
779
+ ae && this.addEventListener("click", () => {
780
+ const e = t(this, Bt).current, i = t(this, Wt).current, n = t(this, Ft).current;
772
781
  this.handleClick({
773
782
  behaviour: e,
774
783
  tween: i || n ? { easing: i, duration: n } : void 0
@@ -776,37 +785,37 @@ class Ie extends ve {
776
785
  });
777
786
  }
778
787
  connectedCallback() {
779
- super.connectedCallback(), t(this, Ht).observe(), t(this, Bt).observe(), t(this, Wt).observe();
788
+ super.connectedCallback(), t(this, Bt).observe(), t(this, Wt).observe(), t(this, Ft).observe();
780
789
  }
781
790
  disconnectedCallback() {
782
- t(this, Ht).close(), t(this, Bt).close(), t(this, Wt).close();
791
+ t(this, Bt).close(), t(this, Wt).close(), t(this, Ft).close();
783
792
  }
784
793
  }
785
- Ht = new WeakMap(), Bt = new WeakMap(), Wt = new WeakMap();
786
- var Ft;
787
- class Je extends Ie {
794
+ Bt = new WeakMap(), Wt = new WeakMap(), Ft = new WeakMap();
795
+ var $t;
796
+ class Xe extends De {
788
797
  constructor() {
789
798
  super(...arguments);
790
- s(this, Ft, new p(this, "--set", 1));
799
+ s(this, $t, new p(this, "--set", 1));
791
800
  }
792
801
  handleClick(e) {
793
- this.scrollElement.scrollToSection(t(this, Ft).current, e);
802
+ this.scrollElement.scrollToSection(t(this, $t).current, e);
794
803
  }
795
804
  connectedCallback() {
796
- super.connectedCallback(), t(this, Ft).observe();
805
+ super.connectedCallback(), t(this, $t).observe();
797
806
  }
798
807
  disconnectedCallback() {
799
- super.disconnectedCallback(), t(this, Ft).close();
808
+ super.disconnectedCallback(), t(this, $t).close();
800
809
  }
801
810
  }
802
- Ft = new WeakMap();
803
- customElements.get("e-scroll-set-button") || customElements.define("e-scroll-set-button", Je);
804
- var j, $t;
805
- class Qe extends Ie {
811
+ $t = new WeakMap();
812
+ customElements.get("e-scroll-set-button") || customElements.define("e-scroll-set-button", Xe);
813
+ var j, qt;
814
+ class Ye extends De {
806
815
  constructor() {
807
816
  super(...arguments);
808
817
  s(this, j, new p(this, "--step", 1));
809
- s(this, $t, () => {
818
+ s(this, qt, () => {
810
819
  this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, j).current > 0 && this.scrollElement.scrollLine === "end" || t(this, j).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
811
820
  });
812
821
  }
@@ -815,93 +824,93 @@ class Qe extends Ie {
815
824
  }
816
825
  connectedCallback() {
817
826
  super.connectedCallback(), this.scrollElement && (t(this, j).subscribe(() => {
818
- t(this, $t).call(this);
827
+ t(this, qt).call(this);
819
828
  }), t(this, j).observe(), this.scrollElement.addEventListener(
820
829
  "scrollLine",
821
- t(this, $t)
822
- ), t(this, $t).call(this));
830
+ t(this, qt)
831
+ ), t(this, qt).call(this));
823
832
  }
824
833
  disconnectedCallback() {
825
834
  super.disconnectedCallback(), t(this, j).close(), this.removeAttribute("disabled");
826
835
  }
827
836
  }
828
- j = new WeakMap(), $t = new WeakMap();
829
- customElements.get("e-scroll-step-button") || customElements.define("e-scroll-step-button", Qe);
830
- var J, ut, qt, ie, re, Nt;
831
- class Xe {
837
+ j = new WeakMap(), qt = new WeakMap();
838
+ customElements.get("e-scroll-step-button") || customElements.define("e-scroll-step-button", Ye);
839
+ var J, dt, Nt, re, ne, Ut;
840
+ class ts {
832
841
  constructor(h, e, i) {
833
842
  s(this, J, null);
834
- s(this, ut, null);
835
- s(this, qt, null);
836
- s(this, ie, null);
837
- s(this, re, () => {
838
- t(this, ut).scrollToSection(t(this, qt), {
839
- behaviour: t(this, ie)
843
+ s(this, dt, null);
844
+ s(this, Nt, null);
845
+ s(this, re, null);
846
+ s(this, ne, () => {
847
+ t(this, dt).scrollToSection(t(this, Nt), {
848
+ behaviour: t(this, re)
840
849
  });
841
850
  });
842
- s(this, Nt, () => {
851
+ s(this, Ut, () => {
843
852
  t(this, J).classList.toggle(
844
853
  "current",
845
- t(this, ut).counter.current === t(this, qt)
854
+ t(this, dt).counter.current === t(this, Nt)
846
855
  );
847
856
  });
848
- ce && (r(this, J, document.createElement("button")), r(this, ut, h), r(this, ie, i), r(this, qt, e), t(this, J).addEventListener("click", t(this, re)), t(this, ut).counter.subscribe(t(this, Nt)), t(this, Nt).call(this));
857
+ ae && (r(this, J, document.createElement("button")), r(this, dt, h), r(this, re, i), r(this, Nt, e), t(this, J).addEventListener("click", t(this, ne)), t(this, dt).counter.subscribe(t(this, Ut)), t(this, Ut).call(this));
849
858
  }
850
859
  get element() {
851
860
  return t(this, J);
852
861
  }
853
862
  destroy() {
854
- t(this, J).removeEventListener("click", t(this, re)), t(this, ut).counter.unsubscribe(t(this, Nt)), t(this, J).remove();
863
+ t(this, J).removeEventListener("click", t(this, ne)), t(this, dt).counter.unsubscribe(t(this, Ut)), t(this, J).remove();
855
864
  }
856
865
  }
857
- J = new WeakMap(), ut = new WeakMap(), qt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), Nt = new WeakMap();
858
- var dt, Ut;
859
- class Ye extends ve {
866
+ J = new WeakMap(), dt = new WeakMap(), Nt = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), Ut = new WeakMap();
867
+ var pt, Gt;
868
+ class es extends Ce {
860
869
  constructor() {
861
870
  super(...arguments);
862
- s(this, dt, []);
863
- s(this, Ut, Ge(() => {
864
- t(this, dt).forEach((e) => e.destroy()), r(this, dt, []);
871
+ s(this, pt, []);
872
+ s(this, Gt, _e(() => {
873
+ t(this, pt).forEach((e) => e.destroy()), r(this, pt, []);
865
874
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
866
- const i = new Xe(
875
+ const i = new ts(
867
876
  this.scrollElement,
868
877
  e,
869
878
  this.getAttribute("behaviour") || "smooth"
870
879
  );
871
- this.appendChild(i.element), t(this, dt).push(i);
880
+ this.appendChild(i.element), t(this, pt).push(i);
872
881
  }
873
882
  }, 0));
874
883
  }
875
884
  connectedCallback() {
876
885
  super.connectedCallback(), this.scrollElement.addEventListener(
877
886
  "sectionsChange",
878
- t(this, Ut)
879
- ), t(this, Ut).call(this);
887
+ t(this, Gt)
888
+ ), t(this, Gt).call(this);
880
889
  }
881
890
  disconnectedCallback() {
882
891
  this.scrollElement.removeEventListener(
883
892
  "sectionsChange",
884
- t(this, Ut)
885
- ), t(this, dt).forEach((e) => e.destroy()), r(this, dt, []);
893
+ t(this, Gt)
894
+ ), t(this, pt).forEach((e) => e.destroy()), r(this, pt, []);
886
895
  }
887
896
  }
888
- dt = new WeakMap(), Ut = new WeakMap();
889
- customElements.get("e-scroll-bullet-buttons") || customElements.define("e-scroll-bullet-buttons", Ye);
890
- class ts extends Ke {
897
+ pt = new WeakMap(), Gt = new WeakMap();
898
+ customElements.get("e-scroll-bullet-buttons") || customElements.define("e-scroll-bullet-buttons", es);
899
+ class ss extends Ze {
891
900
  connectedCallback() {
892
- const h = ke(this, Zt);
893
- h instanceof Zt ? (this.scrollContainer = h, this.scrollContainer.addEventListener(
901
+ const h = Ie(this, jt);
902
+ h instanceof jt ? (this.scrollContainer = h, this.scrollContainer.addEventListener(
894
903
  "scrollSectionsChange",
895
904
  this.findAnotherScrollEntries
896
905
  )) : console.error(this, "e-scroll not found");
897
906
  }
898
907
  }
899
- customElements.get("e-scroll-segment") || customElements.define("e-scroll-segment", ts);
908
+ customElements.get("e-scroll-segment") || customElements.define("e-scroll-segment", ss);
900
909
  export {
901
- Ye as ScrollBulletButtonsElement,
902
- Zt as ScrollElement,
903
- ts as ScrollSegmentElement,
904
- Je as ScrollSetButtonElement,
905
- Qe as ScrollStepButtonElement,
906
- je as ScrollbarElement
910
+ es as ScrollBulletButtonsElement,
911
+ jt as ScrollElement,
912
+ ss as ScrollSegmentElement,
913
+ Xe as ScrollSetButtonElement,
914
+ Ye as ScrollStepButtonElement,
915
+ Qe as ScrollbarElement
907
916
  };