aptechka 0.3.1 → 0.4.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.
- package/lib/{Damped-BvkThM-2.cjs → Damped-B0eRyTcV.cjs} +1 -1
- package/lib/{Damped-DEHDBwBz.js → Damped-Do9H-LKf.js} +1 -1
- package/lib/{Derived-Bc88XJ8J.js → Derived-Dbjm-dob.js} +1 -1
- package/lib/{Derived-SjPdLJiZ.cjs → Derived-vGokdC4b.cjs} +1 -1
- package/lib/{SourceManager-CI6NfLzW.cjs → SourceManager-CzcqsC3z.cjs} +1 -1
- package/lib/{SourceManager-BoP9RAJr.js → SourceManager-noBYGNeX.js} +1 -1
- package/lib/{Store-JOKrNVEr.js → Store-DdDuj5hz.js} +42 -41
- package/lib/Store-Dis8QUAR.cjs +1 -0
- package/lib/{Viewport-COsaberc.cjs → Viewport-CRLSlcoi.cjs} +1 -1
- package/lib/{Viewport-CXY5xcGJ.js → Viewport-VSV_isot.js} +1 -1
- package/lib/{WheelControls-BJdZsEkS.js → WheelControls-BqO_fTyY.js} +1 -1
- package/lib/{WheelControls-CctFwJwY.cjs → WheelControls-fiz52vcl.cjs} +1 -1
- package/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +2 -2
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +2 -0
- package/lib/attribute/index.js +36 -30
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +3 -3
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-De-6zF24.cjs → createStylesheet-B4vLzvah.cjs} +1 -1
- package/lib/{createStylesheet-CYZlwj0H.js → createStylesheet-CR-XQRVT.js} +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/dom-0S_WDL4g.js +42 -0
- package/lib/dom-JBOkFLTh.cjs +1 -0
- package/lib/element-constructor/ElementConstructor.d.ts +2 -0
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +113 -114
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/core/en3.d.ts +2 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +6 -6
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-8MIh-Dcx.js → index-D-FPaxdJ.js} +3 -3
- package/lib/{index-CHamNqUl.cjs → index-MKoD8NCT.cjs} +1 -1
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +1 -1
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +54 -52
- package/lib/resized/index.cjs +1 -1
- package/lib/resized/index.js +1 -1
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +93 -98
- package/lib/scroll/ScrollElement.d.ts +0 -22
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +159 -183
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +16 -17
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/Store.d.ts +1 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +119 -48
- package/lib/studio/index.cjs +1 -1
- package/lib/studio/index.js +17 -17
- package/lib/tags-D3-tO-m6.cjs +1 -0
- package/lib/tags-D9nd9mMM.js +846 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +68 -67
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -65
- package/lib/ComponentElement-CIl1lnep.cjs +0 -1
- package/lib/ComponentElement-CzGRgBvs.js +0 -76
- package/lib/Composed-ClTo1f0b.js +0 -79
- package/lib/Composed-Mdr4ZFbI.cjs +0 -1
- package/lib/ElementConstructor-C_HDpVEZ.cjs +0 -1
- package/lib/ElementConstructor-ChgHpqb6.js +0 -326
- package/lib/Store-D0_rDIsE.cjs +0 -1
- package/lib/animation/hooks/index.cjs +0 -1
- package/lib/animation/hooks/index.d.ts +0 -9
- package/lib/animation/hooks/index.js +0 -32
- package/lib/attribute/hooks/index.d.ts +0 -3
- package/lib/controls/hooks/index.d.ts +0 -1
- package/lib/createStore-BSUQyZjo.js +0 -15
- package/lib/createStore-D61G4jpF.cjs +0 -1
- package/lib/dom-BY7JhTx5.js +0 -24
- package/lib/dom-qY2LdCVL.cjs +0 -1
- package/lib/element-resizer/hooks/index.cjs +0 -1
- package/lib/element-resizer/hooks/index.d.ts +0 -5
- package/lib/element-resizer/hooks/index.js +0 -12
- package/lib/instantiate-CXUQ7AmI.js +0 -72
- package/lib/instantiate-D63dC3Vr.cjs +0 -1
- package/lib/intersector/hooks/index.cjs +0 -1
- package/lib/intersector/hooks/index.d.ts +0 -5
- package/lib/intersector/hooks/index.js +0 -12
- package/lib/jsx/ComponentElement.d.ts +0 -26
- package/lib/jsx/h.d.ts +0 -4
- package/lib/jsx/hooks/attachInternals.d.ts +0 -1
- package/lib/jsx/hooks/attachShadow.d.ts +0 -1
- package/lib/jsx/hooks/attachStylesheet.d.ts +0 -3
- package/lib/jsx/hooks/createContext.d.ts +0 -2
- package/lib/jsx/hooks/createStore.d.ts +0 -4
- package/lib/jsx/hooks/index.cjs +0 -1
- package/lib/jsx/hooks/index.d.ts +0 -8
- package/lib/jsx/hooks/index.js +0 -73
- package/lib/jsx/hooks/onConnect.d.ts +0 -3
- package/lib/jsx/hooks/onDisconnect.d.ts +0 -3
- package/lib/jsx/hooks/withCurrentComponent.d.ts +0 -3
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -5
- package/lib/jsx/index.js +0 -27
- package/lib/jsx/instantiate.d.ts +0 -1
- package/lib/jsx/register.d.ts +0 -1
- package/lib/jsx/render.d.ts +0 -1
- package/lib/jsx/type.d.ts +0 -186
- package/lib/onConnect-CNMynOhK.js +0 -9
- package/lib/onConnect-DyAwFqQQ.cjs +0 -1
- package/lib/store/hooks/index.cjs +0 -1
- package/lib/store/hooks/index.d.ts +0 -7
- package/lib/store/hooks/index.js +0 -26
- package/lib/tags-DSmoyoPZ.js +0 -485
- package/lib/tags-Di21YbUL.cjs +0 -1
- package/lib/ticker/hooks/index.cjs +0 -1
- package/lib/ticker/hooks/index.d.ts +0 -6
- package/lib/ticker/hooks/index.js +0 -23
- package/lib/window-resizer/hooks/index.cjs +0 -1
- package/lib/window-resizer/hooks/index.d.ts +0 -3
- package/lib/window-resizer/hooks/index.js +0 -9
- package/lib/withCurrentComponent-BDsFmjJ9.cjs +0 -1
- package/lib/withCurrentComponent-DIBND_yO.js +0 -7
package/lib/scroll/index.js
CHANGED
|
@@ -2,74 +2,74 @@ var Mt = (e, s, i) => {
|
|
|
2
2
|
if (!s.has(e))
|
|
3
3
|
throw TypeError("Cannot " + i);
|
|
4
4
|
};
|
|
5
|
-
var n = (e, s, i) => (Mt(e, s, "read from private field"), i ? i.call(e) : s.get(e)),
|
|
5
|
+
var n = (e, s, i) => (Mt(e, s, "read from private field"), i ? i.call(e) : s.get(e)), H = (e, s, i) => {
|
|
6
6
|
if (s.has(e))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
s instanceof WeakSet ? s.add(e) : s.set(e, i);
|
|
9
|
-
},
|
|
10
|
-
import { D as Ft } from "../Damped-
|
|
11
|
-
import { S as Bt } from "../Store-
|
|
12
|
-
import { D as Kt } from "../Derived-
|
|
13
|
-
import { i as
|
|
14
|
-
import { a as
|
|
15
|
-
import { c as
|
|
9
|
+
}, D = (e, s, i, r) => (Mt(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i);
|
|
10
|
+
import { D as Ft } from "../Damped-Do9H-LKf.js";
|
|
11
|
+
import { S as Bt } from "../Store-DdDuj5hz.js";
|
|
12
|
+
import { D as Kt } from "../Derived-Dbjm-dob.js";
|
|
13
|
+
import { i as Lt } from "../browser-0zX67oeU.js";
|
|
14
|
+
import { a as bt, g as vt } from "../layout-HoBT_Da2.js";
|
|
15
|
+
import { c as Pt } from "../math-BOBiC4TN.js";
|
|
16
16
|
import "../ticker/index.js";
|
|
17
|
-
import { Attribute as
|
|
18
|
-
import { W as Gt, K as Ut } from "../WheelControls-
|
|
19
|
-
import { CustomElement as
|
|
20
|
-
import { TICK_ORDER as Zt, RESIZE_ORDER as
|
|
17
|
+
import { Attribute as W } from "../attribute/index.js";
|
|
18
|
+
import { W as Gt, K as Ut } from "../WheelControls-BqO_fTyY.js";
|
|
19
|
+
import { CustomElement as zt, define as $t } from "../custom-element/index.js";
|
|
20
|
+
import { TICK_ORDER as Zt, RESIZE_ORDER as Ot } from "../order/index.js";
|
|
21
21
|
import { windowResizer as ct } from "../window-resizer/index.js";
|
|
22
|
-
import { scrollEntries as
|
|
23
|
-
import { e as
|
|
24
|
-
import { c as
|
|
22
|
+
import { scrollEntries as G } from "../scroll-entries/index.js";
|
|
23
|
+
import { e as Vt, D as Ct, ay as wt } from "../tags-D9nd9mMM.js";
|
|
24
|
+
import { c as Dt } from "../createStylesheet-CR-XQRVT.js";
|
|
25
25
|
import { cssUnitParser as qt } from "../css-unit-parser/index.js";
|
|
26
|
-
import { f as Jt } from "../dom-
|
|
26
|
+
import { f as Jt } from "../dom-0S_WDL4g.js";
|
|
27
27
|
var Nt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Xt = (e, s, i, r) => {
|
|
28
28
|
for (var a = r > 1 ? void 0 : r ? Qt(s, i) : s, f = e.length - 1, v; f >= 0; f--)
|
|
29
29
|
(v = e[f]) && (a = (r ? v(s, i, a) : v(a)) || a);
|
|
30
30
|
return r && a && Nt(s, i, a), a;
|
|
31
|
-
},
|
|
31
|
+
}, Et = (e, s, i) => {
|
|
32
32
|
if (!s.has(e))
|
|
33
33
|
throw TypeError("Cannot " + i);
|
|
34
|
-
}, t = (e, s, i) => (
|
|
34
|
+
}, t = (e, s, i) => (Et(e, s, "read from private field"), i ? i.call(e) : s.get(e)), h = (e, s, i) => {
|
|
35
35
|
if (s.has(e))
|
|
36
36
|
throw TypeError("Cannot add the same private member more than once");
|
|
37
37
|
s instanceof WeakSet ? s.add(e) : s.set(e, i);
|
|
38
|
-
}, d = (e, s, i, r) => (
|
|
38
|
+
}, d = (e, s, i, r) => (Et(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i), m = (e, s, i) => (Et(e, s, "access private method"), i), l, E, L, y, P, F, x, R, B, K, u, ut, c, j, tt, _, p, O, M, U, b, q, T, Q, pt, Z, X, ft, Wt, dt, yt, et, _t, st, St, I, gt, xt, Rt, it, rt, kt, S, g, V, C;
|
|
39
39
|
class Yt {
|
|
40
40
|
constructor(s, i) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
H(this, S, void 0);
|
|
42
|
+
H(this, g, void 0);
|
|
43
|
+
H(this, V, 0);
|
|
44
|
+
H(this, C, 0);
|
|
45
|
+
D(this, S, s), D(this, g, i), G.register(n(this, S));
|
|
46
46
|
}
|
|
47
47
|
get size() {
|
|
48
|
-
return n(this,
|
|
48
|
+
return n(this, V);
|
|
49
49
|
}
|
|
50
50
|
get position() {
|
|
51
|
-
return n(this,
|
|
51
|
+
return n(this, C);
|
|
52
52
|
}
|
|
53
53
|
destroy() {
|
|
54
|
-
|
|
54
|
+
G.unregister(n(this, S)), n(this, S).style.transform = "";
|
|
55
55
|
}
|
|
56
56
|
resize() {
|
|
57
|
-
|
|
57
|
+
D(this, V, n(this, g).vertical ? n(this, S).offsetHeight : n(this, S).offsetWidth), D(this, C, n(this, g).vertical ? bt(n(this, S)) : vt(n(this, S))), D(this, C, n(this, C) - n(this, g).contentPosition);
|
|
58
58
|
}
|
|
59
59
|
transform() {
|
|
60
60
|
let s = 0;
|
|
61
|
-
const i = n(this, g).viewportSize - n(this,
|
|
62
|
-
n(this, g).infiniteAttribute.current && n(this, g).overscroll && n(this,
|
|
61
|
+
const i = n(this, g).viewportSize - n(this, V);
|
|
62
|
+
n(this, g).infiniteAttribute.current && n(this, g).overscroll && n(this, C) + n(this, V) < n(this, g).currentScrollValue && (s = n(this, g).distance * -1 - n(this, g).gap), G.update(
|
|
63
63
|
n(this, S),
|
|
64
64
|
n(this, g).axisAttibute.current,
|
|
65
65
|
s
|
|
66
66
|
);
|
|
67
|
-
const r = n(this, g).currentScrollValue + s, a = n(this,
|
|
67
|
+
const r = n(this, g).currentScrollValue + s, a = n(this, C) - n(this, g).viewportSize - i, f = n(this, C) + n(this, V) + i, v = Pt(r, a, f);
|
|
68
68
|
n(this, g).vertical ? n(this, S).style.transform = `translate3d(0px, ${v * -1}px, 0px)` : n(this, S).style.transform = `translate3d(${v * -1}px, 0px, 0px)`;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
S = new WeakMap(), g = new WeakMap(),
|
|
72
|
-
const jt =
|
|
71
|
+
S = new WeakMap(), g = new WeakMap(), V = new WeakMap(), C = new WeakMap();
|
|
72
|
+
const jt = Dt({
|
|
73
73
|
":host": {
|
|
74
74
|
position: "relative",
|
|
75
75
|
width: "100%",
|
|
@@ -101,135 +101,135 @@ const jt = Rt({
|
|
|
101
101
|
flexShrink: "0"
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
-
let mt = class extends
|
|
104
|
+
let mt = class extends zt {
|
|
105
105
|
constructor() {
|
|
106
|
-
super(), h(this,
|
|
106
|
+
super(), h(this, Q), h(this, Z), h(this, ft), h(this, dt), h(this, et), h(this, st), h(this, xt), h(this, rt), h(this, l, null), h(this, E, new W(this, "axis", "y")), h(this, L, new W(this, "pages", 0, {
|
|
107
107
|
validate: (e) => Math.max(0, e - 1)
|
|
108
|
-
})), h(this,
|
|
108
|
+
})), h(this, y, new W(this, "split", !1)), h(this, P, new W(this, "sectional", !1)), h(this, F, new W(
|
|
109
109
|
this,
|
|
110
110
|
"wheel-max-delta",
|
|
111
111
|
!1
|
|
112
|
-
)), h(this,
|
|
112
|
+
)), h(this, x, new W(this, "infinite", !1)), h(this, R, new W(this, "damping", 0.03)), h(this, B, new W(this, "disabled", !1)), h(this, K, new W(this, "hibernated", !1)), h(this, u, null), h(this, ut, null), h(this, c, []), h(this, j, 0), h(this, tt, 0), h(this, _, 0), h(this, p, 0), h(this, O, 0), h(this, M, null), h(this, U, null), h(this, b, new Bt(0)), h(this, q, 0), h(this, T, 0), h(this, I, () => {
|
|
113
113
|
const e = this.currentScrollValue / t(this, p) || 0;
|
|
114
|
-
if (d(this, j, this.vertical ?
|
|
115
|
-
d(this, p, t(this, _) * t(this,
|
|
114
|
+
if (d(this, j, this.vertical ? bt(this) : vt(this)), d(this, tt, this.vertical ? bt(t(this, u)) : vt(t(this, u))), d(this, _, this.vertical ? this.offsetHeight : this.offsetWidth), t(this, L).current) {
|
|
115
|
+
d(this, p, t(this, _) * t(this, L).current);
|
|
116
116
|
const s = t(this, p) + t(this, _);
|
|
117
117
|
this.vertical ? (t(this, u).style.width = s + "px", t(this, u).style.height = "100%") : (t(this, u).style.height = s + "px", t(this, u).style.width = "100%");
|
|
118
118
|
} else
|
|
119
119
|
this.vertical ? (t(this, u).style.width = "100%", t(this, u).style.height = "max-content", d(this, p, t(this, u).offsetHeight - t(this, _))) : (t(this, u).style.width = "max-content", t(this, u).style.height = "100%", d(this, p, t(this, u).offsetWidth - t(this, _)));
|
|
120
|
-
if (d(this,
|
|
120
|
+
if (d(this, O, qt.parse(getComputedStyle(t(this, u)).gap)), !t(this, x).current) {
|
|
121
121
|
const s = getComputedStyle(this);
|
|
122
122
|
d(this, p, t(this, p) + (this.vertical ? parseFloat(s.paddingBlockStart) + parseFloat(s.paddingBlockEnd) : parseFloat(s.paddingInlineStart) + parseFloat(s.paddingInlineEnd))), t(this, l).max = t(this, p);
|
|
123
123
|
}
|
|
124
124
|
if (t(this, c).forEach((s) => {
|
|
125
125
|
s.resize(), s.transform();
|
|
126
|
-
}), t(this,
|
|
126
|
+
}), t(this, x).current && t(this, c).length) {
|
|
127
127
|
const s = t(this, c)[t(this, c).length - 1], i = s.position + s.size - t(this, _), r = t(this, p) - i;
|
|
128
|
-
d(this,
|
|
128
|
+
d(this, T, s.position + s.size + r);
|
|
129
129
|
} else
|
|
130
|
-
d(this,
|
|
131
|
-
if (t(this,
|
|
132
|
-
const s = t(this, c)[t(this,
|
|
130
|
+
d(this, T, t(this, p));
|
|
131
|
+
if (t(this, P).current && t(this, c).length) {
|
|
132
|
+
const s = t(this, c)[t(this, b).current];
|
|
133
133
|
t(this, l).set(s.position, !0);
|
|
134
134
|
} else
|
|
135
135
|
t(this, l).set(e * t(this, p), !0);
|
|
136
136
|
}), h(this, gt, () => {
|
|
137
137
|
const e = this.currentScrollValue;
|
|
138
|
-
if (d(this,
|
|
138
|
+
if (d(this, q, Math.max(0, e - t(this, p))), t(this, c).length) {
|
|
139
139
|
let s = 0;
|
|
140
140
|
for (let i = 0; i < t(this, c).length; i++) {
|
|
141
141
|
const r = t(this, c)[i];
|
|
142
142
|
r.transform(), // this.targetScrollValue + this.viewportSize / 2 >=
|
|
143
143
|
this.targetScrollValue + this.viewportSize / 2 >= r.position && (s = i);
|
|
144
144
|
}
|
|
145
|
-
t(this,
|
|
145
|
+
t(this, b).current = s;
|
|
146
146
|
} else
|
|
147
147
|
this.vertical ? t(this, u).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, u).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
148
|
-
|
|
148
|
+
G.update(this, t(this, E).current, e);
|
|
149
149
|
}), h(this, it, (e) => {
|
|
150
150
|
if (typeof e == "number")
|
|
151
|
-
if (t(this,
|
|
151
|
+
if (t(this, P).current) {
|
|
152
152
|
const s = Math.sign(e);
|
|
153
153
|
t(this, c).length ? this.shiftSections(s) : t(this, l).shift(s * t(this, _));
|
|
154
154
|
} else
|
|
155
155
|
t(this, l).shift(e);
|
|
156
156
|
else
|
|
157
157
|
e === "min" ? t(this, l).set(t(this, l).min) : e === "max" && t(this, l).set(t(this, l).length);
|
|
158
|
-
}),
|
|
158
|
+
}), Lt && (d(this, l, new Ft(0, {
|
|
159
159
|
damping: 0.01,
|
|
160
160
|
min: 0,
|
|
161
161
|
order: Zt.SCROLL
|
|
162
|
-
})), this.openShadow(jt),
|
|
162
|
+
})), this.openShadow(jt), Vt(this, {
|
|
163
163
|
tabIndex: 0,
|
|
164
164
|
children: [
|
|
165
165
|
Ct({
|
|
166
166
|
class: "static",
|
|
167
|
-
children: [
|
|
167
|
+
children: [wt({ name: "static" })]
|
|
168
168
|
}),
|
|
169
169
|
Ct({
|
|
170
170
|
class: "content",
|
|
171
|
-
children: [
|
|
171
|
+
children: [wt({ ref: (e) => d(this, ut, e) })],
|
|
172
172
|
style: {
|
|
173
173
|
flexDirection: new Kt(
|
|
174
|
-
t(this,
|
|
174
|
+
t(this, E),
|
|
175
175
|
(e) => e === "x" ? "row" : "column"
|
|
176
176
|
)
|
|
177
177
|
},
|
|
178
178
|
ref: (e) => d(this, u, e)
|
|
179
179
|
})
|
|
180
180
|
]
|
|
181
|
-
}), d(this,
|
|
182
|
-
t(this, u).style.flexDirection = e === "x" ? "row" : "column", t(this,
|
|
183
|
-
}), t(this,
|
|
184
|
-
t(this,
|
|
185
|
-
}), t(this,
|
|
186
|
-
this.isConnected && t(this,
|
|
187
|
-
}), t(this,
|
|
188
|
-
this.isConnected && (e ? m(this,
|
|
189
|
-
}), t(this,
|
|
190
|
-
t(this,
|
|
191
|
-
}), t(this,
|
|
192
|
-
e.current ? (this.isConnected && (t(this, c).length || (t(this,
|
|
193
|
-
}), t(this,
|
|
181
|
+
}), d(this, M, new Gt({ element: this })), t(this, M).changeEvent.subscribe(t(this, it)), d(this, U, new Ut({ element: this })), t(this, U).changeEvent.subscribe(t(this, it)), t(this, E).subscribe(({ current: e }) => {
|
|
182
|
+
t(this, u).style.flexDirection = e === "x" ? "row" : "column", t(this, M).axis = t(this, F).current ? "max" : e, this.isConnected && t(this, I).call(this);
|
|
183
|
+
}), t(this, F).subscribe((e) => {
|
|
184
|
+
t(this, M).axis = e.current ? "max" : t(this, E).current;
|
|
185
|
+
}), t(this, L).subscribe(() => {
|
|
186
|
+
this.isConnected && t(this, I).call(this);
|
|
187
|
+
}), t(this, y).subscribe(({ current: e }) => {
|
|
188
|
+
this.isConnected && (e ? m(this, Q, pt).call(this) : m(this, Z, X).call(this));
|
|
189
|
+
}), t(this, P).subscribe((e) => {
|
|
190
|
+
t(this, b).current = 0, t(this, M).debounce = e.current, t(this, l).reset(), this.isConnected && (e.current && !e.previous ? m(this, Q, pt).call(this) : !e.current && e.previous && m(this, Z, X).call(this));
|
|
191
|
+
}), t(this, x).subscribe((e) => {
|
|
192
|
+
e.current ? (this.isConnected && (t(this, c).length || (t(this, y).current = !0)), t(this, c).length && (t(this, l).max = 1 / 0, t(this, l).min = -1 / 0)) : (d(this, q, 0), t(this, l).max = t(this, p), t(this, l).min = 0);
|
|
193
|
+
}), t(this, R).subscribe((e) => {
|
|
194
194
|
t(this, l).damping = e.current;
|
|
195
|
-
}), t(this,
|
|
195
|
+
}), t(this, B).subscribe((e) => {
|
|
196
196
|
e.current && !e.previous ? m(this, ft, Wt).call(this) : !e.current && e.previous && m(this, dt, yt).call(this);
|
|
197
|
-
}), t(this,
|
|
197
|
+
}), t(this, K).subscribe((e) => {
|
|
198
198
|
e.current && !e.previous ? m(this, et, _t).call(this) : !e.current && e.previous && m(this, st, St).call(this);
|
|
199
199
|
}));
|
|
200
200
|
}
|
|
201
201
|
get dampingAttribute() {
|
|
202
|
-
return t(this,
|
|
202
|
+
return t(this, R);
|
|
203
203
|
}
|
|
204
204
|
get axisAttibute() {
|
|
205
|
-
return t(this,
|
|
205
|
+
return t(this, E);
|
|
206
206
|
}
|
|
207
207
|
get pagesAttibute() {
|
|
208
|
-
return t(this,
|
|
208
|
+
return t(this, L);
|
|
209
209
|
}
|
|
210
210
|
get splitAttibute() {
|
|
211
|
-
return t(this,
|
|
211
|
+
return t(this, y);
|
|
212
212
|
}
|
|
213
213
|
get sectionalAttibute() {
|
|
214
|
-
return t(this,
|
|
214
|
+
return t(this, P);
|
|
215
215
|
}
|
|
216
216
|
get infiniteAttribute() {
|
|
217
|
-
return t(this,
|
|
217
|
+
return t(this, x);
|
|
218
218
|
}
|
|
219
219
|
get dampingAttibute() {
|
|
220
|
-
return t(this,
|
|
220
|
+
return t(this, R);
|
|
221
221
|
}
|
|
222
222
|
get disabledAttibute() {
|
|
223
|
-
return t(this,
|
|
223
|
+
return t(this, B);
|
|
224
224
|
}
|
|
225
225
|
get hibernatedAttibute() {
|
|
226
|
-
return t(this,
|
|
226
|
+
return t(this, K);
|
|
227
227
|
}
|
|
228
228
|
get currentScrollValue() {
|
|
229
|
-
return m(this, rt,
|
|
229
|
+
return m(this, rt, kt).call(this, "current");
|
|
230
230
|
}
|
|
231
231
|
get targetScrollValue() {
|
|
232
|
-
return m(this, rt,
|
|
232
|
+
return m(this, rt, kt).call(this, "target");
|
|
233
233
|
}
|
|
234
234
|
get contentElement() {
|
|
235
235
|
return t(this, u);
|
|
@@ -247,25 +247,25 @@ let mt = class extends Lt {
|
|
|
247
247
|
return t(this, p);
|
|
248
248
|
}
|
|
249
249
|
get gap() {
|
|
250
|
-
return t(this,
|
|
250
|
+
return t(this, O);
|
|
251
251
|
}
|
|
252
252
|
get counter() {
|
|
253
|
-
return t(this,
|
|
253
|
+
return t(this, b);
|
|
254
254
|
}
|
|
255
255
|
get distance() {
|
|
256
|
-
return t(this,
|
|
256
|
+
return t(this, T);
|
|
257
257
|
}
|
|
258
258
|
get overscroll() {
|
|
259
|
-
return t(this,
|
|
259
|
+
return t(this, q);
|
|
260
260
|
}
|
|
261
261
|
get vertical() {
|
|
262
|
-
return t(this,
|
|
262
|
+
return t(this, E).current === "y";
|
|
263
263
|
}
|
|
264
264
|
get currentProgress() {
|
|
265
|
-
return this.currentScrollValue / t(this,
|
|
265
|
+
return this.currentScrollValue / t(this, T) || 0;
|
|
266
266
|
}
|
|
267
267
|
get targetProgress() {
|
|
268
|
-
return this.targetScrollValue / t(this,
|
|
268
|
+
return this.targetScrollValue / t(this, T) || 0;
|
|
269
269
|
}
|
|
270
270
|
get speed() {
|
|
271
271
|
return t(this, l).speed;
|
|
@@ -282,30 +282,6 @@ let mt = class extends Lt {
|
|
|
282
282
|
offScroll(...e) {
|
|
283
283
|
t(this, l).unsubscribe(...e);
|
|
284
284
|
}
|
|
285
|
-
get context() {
|
|
286
|
-
return {
|
|
287
|
-
currentScrollValue: this.currentScrollValue,
|
|
288
|
-
targetScrollValue: this.targetScrollValue,
|
|
289
|
-
contentElement: this.contentElement,
|
|
290
|
-
position: this.position,
|
|
291
|
-
contentPosition: this.contentPosition,
|
|
292
|
-
viewportSize: this.viewportSize,
|
|
293
|
-
scrollSize: this.scrollSize,
|
|
294
|
-
gap: this.gap,
|
|
295
|
-
counter: this.counter,
|
|
296
|
-
distance: this.distance,
|
|
297
|
-
overscroll: this.overscroll,
|
|
298
|
-
vertical: this.vertical,
|
|
299
|
-
currentProgress: this.currentProgress,
|
|
300
|
-
targetProgress: this.targetProgress,
|
|
301
|
-
speed: this.speed,
|
|
302
|
-
direction: this.direction,
|
|
303
|
-
isRunning: this.isRunning,
|
|
304
|
-
range: this.range,
|
|
305
|
-
curve: this.curve,
|
|
306
|
-
visible: this.visible
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
285
|
//https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
|
|
310
286
|
range(e, s, i = 0) {
|
|
311
287
|
const r = e - i, a = r + s + i * 2;
|
|
@@ -322,38 +298,38 @@ let mt = class extends Lt {
|
|
|
322
298
|
scrollToSection(e, s = "smooth") {
|
|
323
299
|
if (!t(this, c).length)
|
|
324
300
|
return;
|
|
325
|
-
const i = t(this,
|
|
326
|
-
m(this, xt,
|
|
327
|
-
const r = t(this, c)[i], a = t(this, c)[t(this,
|
|
301
|
+
const i = t(this, b).current;
|
|
302
|
+
m(this, xt, Rt).call(this, e);
|
|
303
|
+
const r = t(this, c)[i], a = t(this, c)[t(this, b).current];
|
|
328
304
|
if (r && a) {
|
|
329
305
|
let f = 0;
|
|
330
306
|
const v = t(this, c).length - 1;
|
|
331
|
-
t(this,
|
|
307
|
+
t(this, x).current ? t(this, b).current === 0 && i === v ? f = t(this, p) + t(this, _) - r.position + t(this, O) : t(this, b).current === v && i === 0 ? f = a.position - (t(this, p) + t(this, _) + t(this, O)) : f = a.position - r.position : f = a.position - r.position, t(this, l).shift(f, s === "instant");
|
|
332
308
|
}
|
|
333
309
|
}
|
|
334
310
|
shiftSections(e, s = "smooth") {
|
|
335
|
-
t(this, c).length && this.scrollToSection(t(this,
|
|
311
|
+
t(this, c).length && this.scrollToSection(t(this, b).current + e, s);
|
|
336
312
|
}
|
|
337
313
|
setPosition(e, s = "smooth") {
|
|
338
314
|
t(this, l).set(e, s === "instant");
|
|
339
315
|
}
|
|
340
316
|
connectedCallback() {
|
|
341
|
-
m(this, st, St).call(this);
|
|
317
|
+
t(this, E).observe(), t(this, L).observe(), t(this, y).observe(), t(this, P).observe(), t(this, F).observe(), t(this, x).observe(), t(this, R).observe(), t(this, B).observe(), t(this, K).observe(), m(this, st, St).call(this);
|
|
342
318
|
}
|
|
343
319
|
disconnectedCallback() {
|
|
344
|
-
m(this, et, _t).call(this);
|
|
320
|
+
t(this, E).unobserve(), t(this, L).unobserve(), t(this, y).unobserve(), t(this, P).unobserve(), t(this, F).unobserve(), t(this, x).unobserve(), t(this, R).unobserve(), t(this, B).unobserve(), t(this, K).unobserve(), m(this, et, _t).call(this);
|
|
345
321
|
}
|
|
346
322
|
};
|
|
347
323
|
l = /* @__PURE__ */ new WeakMap();
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
324
|
+
E = /* @__PURE__ */ new WeakMap();
|
|
325
|
+
L = /* @__PURE__ */ new WeakMap();
|
|
326
|
+
y = /* @__PURE__ */ new WeakMap();
|
|
327
|
+
P = /* @__PURE__ */ new WeakMap();
|
|
328
|
+
F = /* @__PURE__ */ new WeakMap();
|
|
329
|
+
x = /* @__PURE__ */ new WeakMap();
|
|
330
|
+
R = /* @__PURE__ */ new WeakMap();
|
|
331
|
+
B = /* @__PURE__ */ new WeakMap();
|
|
354
332
|
K = /* @__PURE__ */ new WeakMap();
|
|
355
|
-
X = /* @__PURE__ */ new WeakMap();
|
|
356
|
-
Y = /* @__PURE__ */ new WeakMap();
|
|
357
333
|
u = /* @__PURE__ */ new WeakMap();
|
|
358
334
|
ut = /* @__PURE__ */ new WeakMap();
|
|
359
335
|
c = /* @__PURE__ */ new WeakMap();
|
|
@@ -361,73 +337,73 @@ j = /* @__PURE__ */ new WeakMap();
|
|
|
361
337
|
tt = /* @__PURE__ */ new WeakMap();
|
|
362
338
|
_ = /* @__PURE__ */ new WeakMap();
|
|
363
339
|
p = /* @__PURE__ */ new WeakMap();
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
340
|
+
O = /* @__PURE__ */ new WeakMap();
|
|
341
|
+
M = /* @__PURE__ */ new WeakMap();
|
|
342
|
+
U = /* @__PURE__ */ new WeakMap();
|
|
343
|
+
b = /* @__PURE__ */ new WeakMap();
|
|
344
|
+
q = /* @__PURE__ */ new WeakMap();
|
|
345
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
346
|
+
Q = /* @__PURE__ */ new WeakSet();
|
|
371
347
|
pt = function() {
|
|
372
|
-
m(this,
|
|
348
|
+
m(this, Z, X).call(this), t(this, ut).assignedElements().forEach((e) => {
|
|
373
349
|
e instanceof HTMLElement && t(this, c).push(new Yt(e, this));
|
|
374
|
-
}), t(this, u).style.transform = "", t(this,
|
|
350
|
+
}), t(this, u).style.transform = "", t(this, I).call(this);
|
|
375
351
|
};
|
|
376
|
-
|
|
377
|
-
|
|
352
|
+
Z = /* @__PURE__ */ new WeakSet();
|
|
353
|
+
X = function() {
|
|
378
354
|
t(this, c).forEach((e) => {
|
|
379
355
|
e.destroy();
|
|
380
356
|
}), d(this, c, []);
|
|
381
357
|
};
|
|
382
358
|
ft = /* @__PURE__ */ new WeakSet();
|
|
383
359
|
Wt = function() {
|
|
384
|
-
t(this, l).unsubscribe(t(this, gt)), t(this, l).stopAnimation(), t(this,
|
|
360
|
+
t(this, l).unsubscribe(t(this, gt)), t(this, l).stopAnimation(), t(this, M).disconnect(), t(this, U).disconnect();
|
|
385
361
|
};
|
|
386
362
|
dt = /* @__PURE__ */ new WeakSet();
|
|
387
363
|
yt = function() {
|
|
388
|
-
t(this, l).subscribe(t(this, gt)), t(this,
|
|
364
|
+
t(this, l).subscribe(t(this, gt)), t(this, M).connect(), t(this, U).connect();
|
|
389
365
|
};
|
|
390
366
|
et = /* @__PURE__ */ new WeakSet();
|
|
391
367
|
_t = function() {
|
|
392
|
-
ct.unsubscribe(t(this,
|
|
368
|
+
ct.unsubscribe(t(this, I)), t(this, l).reset(), m(this, ft, Wt).call(this), t(this, u).style.transform = "", t(this, y).current && m(this, Z, X).call(this), G.unregister(this);
|
|
393
369
|
};
|
|
394
370
|
st = /* @__PURE__ */ new WeakSet();
|
|
395
371
|
St = function() {
|
|
396
|
-
t(this,
|
|
372
|
+
t(this, y).current && m(this, Q, pt).call(this), G.register(this), ct.subscribe(t(this, I), Ot.SCROLL), m(this, dt, yt).call(this);
|
|
397
373
|
};
|
|
398
|
-
|
|
374
|
+
I = /* @__PURE__ */ new WeakMap();
|
|
399
375
|
gt = /* @__PURE__ */ new WeakMap();
|
|
400
376
|
xt = /* @__PURE__ */ new WeakSet();
|
|
401
|
-
|
|
402
|
-
t(this,
|
|
377
|
+
Rt = function(e) {
|
|
378
|
+
t(this, x).current ? (t(this, b).current = e % t(this, c).length, t(this, b).current = t(this, b).current < 0 ? t(this, c).length + t(this, b).current : t(this, b).current) : t(this, b).current = Pt(e, 0, t(this, c).length - 1);
|
|
403
379
|
};
|
|
404
380
|
it = /* @__PURE__ */ new WeakMap();
|
|
405
381
|
rt = /* @__PURE__ */ new WeakSet();
|
|
406
|
-
|
|
407
|
-
if (t(this,
|
|
408
|
-
const s = t(this, l)[e] % (t(this, p) + t(this, _) + t(this,
|
|
409
|
-
return s < 0 ? t(this, p) + s + t(this, _) + t(this,
|
|
382
|
+
kt = function(e = "current") {
|
|
383
|
+
if (t(this, x).current && t(this, c).length) {
|
|
384
|
+
const s = t(this, l)[e] % (t(this, p) + t(this, _) + t(this, O));
|
|
385
|
+
return s < 0 ? t(this, p) + s + t(this, _) + t(this, O) : s;
|
|
410
386
|
} else
|
|
411
387
|
return t(this, l)[e];
|
|
412
388
|
};
|
|
413
389
|
mt = Xt([
|
|
414
|
-
|
|
390
|
+
$t("e-scroll")
|
|
415
391
|
], mt);
|
|
416
|
-
var
|
|
417
|
-
class te extends
|
|
392
|
+
var Y;
|
|
393
|
+
class te extends zt {
|
|
418
394
|
constructor() {
|
|
419
395
|
super(...arguments);
|
|
420
|
-
|
|
396
|
+
H(this, Y, null);
|
|
421
397
|
}
|
|
422
398
|
get scrollElement() {
|
|
423
|
-
return n(this,
|
|
399
|
+
return n(this, Y);
|
|
424
400
|
}
|
|
425
401
|
connectedCallback() {
|
|
426
402
|
const i = Jt(this, mt);
|
|
427
|
-
i instanceof mt ?
|
|
403
|
+
i instanceof mt ? D(this, Y, i) : console.error(this, "e-scroll not found");
|
|
428
404
|
}
|
|
429
405
|
}
|
|
430
|
-
|
|
406
|
+
Y = new WeakMap();
|
|
431
407
|
var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, ie = (e, s, i, r) => {
|
|
432
408
|
for (var a = r > 1 ? void 0 : r ? se(s, i) : s, f = e.length - 1, v; f >= 0; f--)
|
|
433
409
|
(v = e[f]) && (a = (r ? v(s, i, a) : v(a)) || a);
|
|
@@ -435,12 +411,12 @@ var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, ie = (e, s
|
|
|
435
411
|
}, Tt = (e, s, i) => {
|
|
436
412
|
if (!s.has(e))
|
|
437
413
|
throw TypeError("Cannot " + i);
|
|
438
|
-
}, o = (e, s, i) => (Tt(e, s, "read from private field"), i ? i.call(e) : s.get(e)),
|
|
414
|
+
}, o = (e, s, i) => (Tt(e, s, "read from private field"), i ? i.call(e) : s.get(e)), k = (e, s, i) => {
|
|
439
415
|
if (s.has(e))
|
|
440
416
|
throw TypeError("Cannot add the same private member more than once");
|
|
441
417
|
s instanceof WeakSet ? s.add(e) : s.set(e, i);
|
|
442
|
-
},
|
|
443
|
-
const re =
|
|
418
|
+
}, A = (e, s, i, r) => (Tt(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i), nt, w, z, $, J, N, ht, ot, lt, at;
|
|
419
|
+
const re = Dt({
|
|
444
420
|
":host": {
|
|
445
421
|
display: "inline-block",
|
|
446
422
|
zIndex: "1",
|
|
@@ -469,55 +445,55 @@ const re = Rt({
|
|
|
469
445
|
touchAction: "none"
|
|
470
446
|
}
|
|
471
447
|
});
|
|
472
|
-
let
|
|
448
|
+
let At = class extends te {
|
|
473
449
|
constructor() {
|
|
474
|
-
super(),
|
|
475
|
-
|
|
476
|
-
const e = o(this,
|
|
477
|
-
|
|
478
|
-
}),
|
|
479
|
-
|
|
480
|
-
}),
|
|
450
|
+
super(), k(this, nt, null), k(this, w, null), k(this, z, !1), k(this, $, 0), k(this, J, 0), k(this, N, 0), k(this, ht, () => {
|
|
451
|
+
A(this, z, this.offsetWidth > this.offsetHeight);
|
|
452
|
+
const e = o(this, z) ? this.offsetWidth : this.offsetHeight;
|
|
453
|
+
A(this, $, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), A(this, $, Math.max(o(this, $), 30)), o(this, z) ? (o(this, w).style.width = o(this, $) + "px", o(this, w).style.height = "100%") : (o(this, w).style.width = "100%", o(this, w).style.height = o(this, $) + "px"), A(this, J, e - o(this, $)), this.scrollElement.scrollSize || (this.style.display = "none");
|
|
454
|
+
}), k(this, ot, () => {
|
|
455
|
+
A(this, N, this.scrollElement.currentProgress * o(this, J)), o(this, z) ? o(this, w).style.transform = `translate3d(${o(this, N)}px, 0px, 0px)` : o(this, w).style.transform = `translate3d(0px, ${o(this, N)}px, 0px)`;
|
|
456
|
+
}), k(this, lt, () => {
|
|
481
457
|
this.setAttribute("axis", this.scrollElement.axisAttibute.current);
|
|
482
|
-
}),
|
|
458
|
+
}), k(this, at, (e) => {
|
|
483
459
|
const s = (f) => {
|
|
484
|
-
const v = o(this,
|
|
460
|
+
const v = o(this, z) ? f.x : f.y, It = this.scrollElement.distance / o(this, J), Ht = (v - a) * It;
|
|
485
461
|
this.scrollElement.setPosition(r + Ht);
|
|
486
462
|
}, i = () => {
|
|
487
463
|
removeEventListener("pointermove", s), removeEventListener("pointerup", i), removeEventListener("touchend", i);
|
|
488
464
|
};
|
|
489
465
|
addEventListener("pointermove", s), addEventListener("pointerup", i), addEventListener("touchend", i);
|
|
490
|
-
const r = this.scrollElement.targetScrollValue, a = o(this,
|
|
491
|
-
}),
|
|
492
|
-
children: [
|
|
466
|
+
const r = this.scrollElement.targetScrollValue, a = o(this, z) ? e.x : e.y;
|
|
467
|
+
}), Lt && (this.openShadow(re), Vt(this, {
|
|
468
|
+
children: [wt({ ref: (e) => A(this, nt, e) })]
|
|
493
469
|
}));
|
|
494
470
|
}
|
|
495
471
|
get thumbElement() {
|
|
496
|
-
return o(this,
|
|
472
|
+
return o(this, w);
|
|
497
473
|
}
|
|
498
474
|
connectedCallback() {
|
|
499
475
|
super.connectedCallback();
|
|
500
476
|
const e = o(this, nt).assignedElements()[0];
|
|
501
|
-
e instanceof HTMLElement ?
|
|
477
|
+
e instanceof HTMLElement ? A(this, w, e) : (A(this, w, document.createElement("div")), o(this, w).classList.add("default-thumb"), this.shadowRoot.appendChild(o(this, w))), o(this, w).addEventListener("pointerdown", o(this, at)), ct.subscribe(o(this, ht), Ot.SCROLL + 1), this.scrollElement.onScroll(o(this, ot)), this.scrollElement.axisAttibute.subscribe(o(this, lt));
|
|
502
478
|
}
|
|
503
479
|
disconnectedCallback() {
|
|
504
|
-
o(this,
|
|
480
|
+
o(this, w).removeEventListener("pointerdown", o(this, at)), ct.unsubscribe(o(this, ht)), this.scrollElement.offScroll(o(this, ot)), this.scrollElement.axisAttibute.unsubscribe(o(this, lt));
|
|
505
481
|
}
|
|
506
482
|
};
|
|
507
483
|
nt = /* @__PURE__ */ new WeakMap();
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
484
|
+
w = /* @__PURE__ */ new WeakMap();
|
|
485
|
+
z = /* @__PURE__ */ new WeakMap();
|
|
486
|
+
$ = /* @__PURE__ */ new WeakMap();
|
|
487
|
+
J = /* @__PURE__ */ new WeakMap();
|
|
488
|
+
N = /* @__PURE__ */ new WeakMap();
|
|
513
489
|
ht = /* @__PURE__ */ new WeakMap();
|
|
514
490
|
ot = /* @__PURE__ */ new WeakMap();
|
|
515
491
|
lt = /* @__PURE__ */ new WeakMap();
|
|
516
492
|
at = /* @__PURE__ */ new WeakMap();
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
],
|
|
493
|
+
At = ie([
|
|
494
|
+
$t("e-scrollbar")
|
|
495
|
+
], At);
|
|
520
496
|
export {
|
|
521
497
|
mt as ScrollElement,
|
|
522
|
-
|
|
498
|
+
At as ScrollbarElement
|
|
523
499
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(o(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a,n;class
|
|
1
|
+
"use strict";var o=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(o(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../dom-JBOkFLTh.cjs");var a,n;class c{constructor(){h(this,a,new Set);h(this,n,new WeakMap)}register(t){s(this,n).set(t,{axis:"y",value:0}),s(this,a).add(t)}unregister(t){s(this,n).delete(t),s(this,a).delete(t)}update(t,e,i){const l=s(this,n).get(t);l.axis=e,l.value=i}hasEntry(t){return s(this,n).has(t)}getEntry(t){return s(this,n).get(t)}getClosest(t){let e=t.parentElement;for(;e&&!this.hasEntry(e);)e=e.parentElement;if(e&&e!==t){const i=this.getEntry(e);return i||this.getClosest(e)}return null}getAll(t){const e=u.getAllParentElements(t).filter(l=>s(this,a).has(l)),i=[];return e.forEach(l=>{s(this,n).has(l)&&i.push(s(this,n).get(l))}),i}}a=new WeakMap,n=new WeakMap;const g=new c;exports.scrollEntries=g;
|