aptechka 0.14.0 → 0.16.0

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