aptechka 0.5.15 → 0.5.17
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/SourceManager-BFSCX4Q8.cjs +1 -0
- package/lib/SourceManager-DmXmmA6z.js +109 -0
- package/lib/Viewport-CCDNxaDg.js +128 -0
- package/lib/Viewport-DhKPH5nw.cjs +1 -0
- package/lib/device/Device.d.ts +1 -0
- package/lib/device/Viewport.d.ts +1 -0
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +1 -1
- package/lib/source/SourceClass.d.ts +2 -2
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +1 -1
- package/package.json +1 -1
- package/lib/SourceManager-Bl_uduSS.cjs +0 -1
- package/lib/SourceManager-D_8MZ3bR.js +0 -109
- package/lib/Viewport-Bx-VImCe.js +0 -128
- package/lib/Viewport-_WllZTJ0.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-BQGNOHlY.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
var $ = (a, e, t) => {
|
|
2
|
+
if (!e.has(a))
|
|
3
|
+
throw TypeError("Cannot " + t);
|
|
4
|
+
};
|
|
5
|
+
var r = (a, e, t) => ($(a, e, "read from private field"), t ? t.call(a) : e.get(a)), o = (a, e, t) => {
|
|
6
|
+
if (e.has(a))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
e instanceof WeakSet ? e.add(a) : e.set(a, t);
|
|
9
|
+
}, i = (a, e, t, n) => ($(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
|
|
10
|
+
import { RESIZE_ORDER as A } from "./order/index.js";
|
|
11
|
+
import { windowResizer as k } from "./window-resizer/index.js";
|
|
12
|
+
import { S as B } from "./Store-Cd-E5W1z.js";
|
|
13
|
+
import "./path-data-polyfill-DgeDWYeI.js";
|
|
14
|
+
var y, g, q, u, c, d, w;
|
|
15
|
+
class T {
|
|
16
|
+
constructor(e) {
|
|
17
|
+
o(this, y, void 0);
|
|
18
|
+
o(this, g, void 0);
|
|
19
|
+
o(this, q, void 0);
|
|
20
|
+
o(this, u, void 0);
|
|
21
|
+
o(this, c, void 0);
|
|
22
|
+
o(this, d, void 0);
|
|
23
|
+
o(this, w, void 0);
|
|
24
|
+
i(this, y, e);
|
|
25
|
+
const t = e.indexOf("?");
|
|
26
|
+
t >= 0 && (e = e.slice(0, t));
|
|
27
|
+
const n = e.split(".");
|
|
28
|
+
i(this, g, n[0]);
|
|
29
|
+
const f = /\d+x/g, h = n.find((m) => m.match(f));
|
|
30
|
+
i(this, q, h ? parseInt(h) : 1);
|
|
31
|
+
const x = /\d+max/g, M = /\d+min/g, s = /\d+mar/g, p = /\d+mir/g, I = n.find((m) => m.match(x)), V = n.find((m) => m.match(M)), b = n.find((m) => m.match(s)), S = n.find((m) => m.match(p));
|
|
32
|
+
b ? (i(this, c, parseInt(b)), i(this, d, "max"), i(this, u, `(max-aspect-ratio: ${r(this, c)})`)) : S ? (i(this, c, parseInt(S)), i(this, d, "max"), i(this, u, `(min-aspect-ratio: ${r(this, c)})`)) : I ? (i(this, c, parseInt(I)), i(this, d, "max"), i(this, u, `(max-width: ${r(this, c)}px)`)) : V ? (i(this, c, parseInt(V)), i(this, u, `(min-width: ${r(this, c)}px)`), i(this, d, "min")) : (i(this, c, 0), i(this, u, `(min-width: ${r(this, c)}px)`), i(this, d, "min")), i(this, w, "." + n[n.length - 1]);
|
|
33
|
+
}
|
|
34
|
+
get url() {
|
|
35
|
+
return r(this, y);
|
|
36
|
+
}
|
|
37
|
+
get name() {
|
|
38
|
+
return r(this, g);
|
|
39
|
+
}
|
|
40
|
+
get density() {
|
|
41
|
+
return r(this, q);
|
|
42
|
+
}
|
|
43
|
+
get query() {
|
|
44
|
+
return r(this, u);
|
|
45
|
+
}
|
|
46
|
+
get extension() {
|
|
47
|
+
return r(this, w);
|
|
48
|
+
}
|
|
49
|
+
get queryType() {
|
|
50
|
+
return r(this, d);
|
|
51
|
+
}
|
|
52
|
+
get queryValue() {
|
|
53
|
+
return r(this, c);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
y = new WeakMap(), g = new WeakMap(), q = new WeakMap(), u = new WeakMap(), c = new WeakMap(), d = new WeakMap(), w = new WeakMap();
|
|
57
|
+
var l;
|
|
58
|
+
class O {
|
|
59
|
+
constructor(e) {
|
|
60
|
+
o(this, l, void 0);
|
|
61
|
+
i(this, l, /* @__PURE__ */ new Map());
|
|
62
|
+
const t = typeof e == "string" ? e.trim().split(",").map((s) => s.trim()).filter((s) => !!s) : e, n = [];
|
|
63
|
+
t.forEach((s) => {
|
|
64
|
+
const p = new T(s);
|
|
65
|
+
n.push([p.query, p]);
|
|
66
|
+
});
|
|
67
|
+
const f = n.filter((s) => s[1].queryType.includes("max")).sort((s, p) => p[1].queryValue - s[1].queryValue), h = n.filter((s) => s[1].queryType.includes("min") && s[1].queryValue !== 0).sort((s, p) => s[1].queryValue - p[1].queryValue), x = n.filter((s) => s[0] === "(min-width: 0px)");
|
|
68
|
+
(x ? [...x, ...f, ...h] : [...f, ...h]).forEach((s) => {
|
|
69
|
+
r(this, l).has(s[0]) || r(this, l).set(s[0], []), r(this, l).get(s[0]).push(s[1]);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
get mediaBuckets() {
|
|
73
|
+
return r(this, l);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
l = new WeakMap();
|
|
77
|
+
var E, R;
|
|
78
|
+
class G extends B {
|
|
79
|
+
constructor(t) {
|
|
80
|
+
super(void 0);
|
|
81
|
+
o(this, E, void 0);
|
|
82
|
+
o(this, R, () => {
|
|
83
|
+
let t;
|
|
84
|
+
r(this, E).mediaBuckets.forEach((h, x) => {
|
|
85
|
+
matchMedia(x).matches && (t = h);
|
|
86
|
+
});
|
|
87
|
+
let n, f = 0;
|
|
88
|
+
t == null || t.forEach((h) => {
|
|
89
|
+
h.density > f && h.density <= Math.max(devicePixelRatio, 1) && (f = h.density, n = h);
|
|
90
|
+
}), t != null && t.length && !n && (n = t[0]), this.current = n;
|
|
91
|
+
});
|
|
92
|
+
i(this, E, new O(t.srcset));
|
|
93
|
+
}
|
|
94
|
+
close() {
|
|
95
|
+
super.close(), this.disconnect();
|
|
96
|
+
}
|
|
97
|
+
connect() {
|
|
98
|
+
k.subscribe(r(this, R), A.SOURCE_MANAGER);
|
|
99
|
+
}
|
|
100
|
+
disconnect() {
|
|
101
|
+
k.unsubscribe(r(this, R));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
E = new WeakMap(), R = new WeakMap();
|
|
105
|
+
export {
|
|
106
|
+
G as S,
|
|
107
|
+
T as a,
|
|
108
|
+
O as b
|
|
109
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
var W = (i, s, o) => {
|
|
2
|
+
if (!s.has(i))
|
|
3
|
+
throw TypeError("Cannot " + o);
|
|
4
|
+
};
|
|
5
|
+
var e = (i, s, o) => (W(i, s, "read from private field"), o ? o.call(i) : s.get(i)), n = (i, s, o) => {
|
|
6
|
+
if (s.has(i))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
s instanceof WeakSet ? s.add(i) : s.set(i, o);
|
|
9
|
+
}, t = (i, s, o, v) => (W(i, s, "write to private field"), v ? v.call(i, o) : s.set(i, o), o);
|
|
10
|
+
import { RESIZE_ORDER as k } from "./order/index.js";
|
|
11
|
+
import { windowResizer as A } from "./window-resizer/index.js";
|
|
12
|
+
import { i as C } from "./browser-0zX67oeU.js";
|
|
13
|
+
import "./path-data-polyfill-DgeDWYeI.js";
|
|
14
|
+
import { getGPUTier as z } from "detect-gpu";
|
|
15
|
+
import { S as O } from "./Store-Cd-E5W1z.js";
|
|
16
|
+
var h, d, l, c, g, m, p, x, u;
|
|
17
|
+
class I {
|
|
18
|
+
constructor() {
|
|
19
|
+
n(this, h, void 0);
|
|
20
|
+
n(this, d, void 0);
|
|
21
|
+
n(this, l, void 0);
|
|
22
|
+
n(this, c, void 0);
|
|
23
|
+
n(this, g, void 0);
|
|
24
|
+
n(this, m, void 0);
|
|
25
|
+
n(this, p, void 0);
|
|
26
|
+
n(this, x, void 0);
|
|
27
|
+
n(this, u, void 0);
|
|
28
|
+
var s, o;
|
|
29
|
+
if (t(this, h, "unknown"), t(this, d, "unknown"), t(this, l, 0), t(this, c, null), t(this, g, !1), t(this, m, !1), t(this, p, !1), t(this, x, !1), t(this, u, !1), this.resize = () => {
|
|
30
|
+
t(this, g, /Mobi|Android/i.test(navigator.userAgent)), t(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0), setTimeout(() => {
|
|
31
|
+
t(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
32
|
+
}, 0);
|
|
33
|
+
}, C) {
|
|
34
|
+
t(this, c, z()), e(this, c).then((a) => {
|
|
35
|
+
t(this, d, a.gpu || "unknown"), t(this, l, a.tier);
|
|
36
|
+
}), this.resize(), A.subscribe(this.resize, k.DEVICE);
|
|
37
|
+
{
|
|
38
|
+
const a = document.createElement("canvas"), E = a.getContext("webgl") || a.getContext("experimental-webgl");
|
|
39
|
+
t(this, p, E && E instanceof WebGLRenderingContext || !1);
|
|
40
|
+
}
|
|
41
|
+
{
|
|
42
|
+
const a = document.createElement("canvas");
|
|
43
|
+
a.getContext("2d") && t(this, x, a.toDataURL("image/webp").indexOf("data:image/webp") == 0);
|
|
44
|
+
}
|
|
45
|
+
const v = window.navigator.userAgent, P = ((o = (s = window.navigator) == null ? void 0 : s.userAgentData) == null ? void 0 : o.platform) || window.navigator.platform, D = [
|
|
46
|
+
"Macintosh",
|
|
47
|
+
"MacIntel",
|
|
48
|
+
"MacPPC",
|
|
49
|
+
"Mac68K",
|
|
50
|
+
"macOS"
|
|
51
|
+
], S = ["Win32", "Win64", "Windows", "WinCE"], T = ["iPhone", "iPad", "iPod"];
|
|
52
|
+
D.includes(P) ? (t(this, h, "macOS"), t(this, u, !0)) : T.includes(P) ? (t(this, h, "iOS"), t(this, u, !0)) : S.includes(P) ? t(this, h, "Windows") : /Android/.test(v) ? t(this, h, "Android") : /Linux/.test(P) ? t(this, h, "Linux") : t(this, h, "unknown");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
get OS() {
|
|
56
|
+
return e(this, h);
|
|
57
|
+
}
|
|
58
|
+
get gpu() {
|
|
59
|
+
return e(this, d);
|
|
60
|
+
}
|
|
61
|
+
get gpuTier() {
|
|
62
|
+
return e(this, l);
|
|
63
|
+
}
|
|
64
|
+
get gpuDetection() {
|
|
65
|
+
return e(this, c);
|
|
66
|
+
}
|
|
67
|
+
get isMobile() {
|
|
68
|
+
return e(this, g);
|
|
69
|
+
}
|
|
70
|
+
get isTouch() {
|
|
71
|
+
return e(this, m);
|
|
72
|
+
}
|
|
73
|
+
get isWebgl() {
|
|
74
|
+
return e(this, p);
|
|
75
|
+
}
|
|
76
|
+
get isWebp() {
|
|
77
|
+
return e(this, x);
|
|
78
|
+
}
|
|
79
|
+
get isApple() {
|
|
80
|
+
return e(this, u);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
h = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap(), g = new WeakMap(), m = new WeakMap(), p = new WeakMap(), x = new WeakMap(), u = new WeakMap();
|
|
84
|
+
const j = new I();
|
|
85
|
+
var L = /* @__PURE__ */ ((i) => (i.mobile = "600px", i.tablet = "1024px", i.notebook = "1280px", i.desktop = "1281px", i))(L || {}), M = /* @__PURE__ */ ((i) => (i["<=mobile"] = "(max-width: 600px)", i[">=mobile"] = "(min-width: 601px)", i["<=tablet"] = "(max-width: 1024px)", i[">=tablet"] = "(min-width: 1025px)", i["<=notebook"] = "(max-width: 1280px)", i[">=notebook"] = "(min-width: 1281px)", i["<=desktop"] = "(max-width: 1280px)", i[">=desktop"] = "(min-width: 1281px)", i))(M || {}), w, f, b, r;
|
|
86
|
+
class y {
|
|
87
|
+
constructor() {
|
|
88
|
+
n(this, w, void 0);
|
|
89
|
+
n(this, f, void 0);
|
|
90
|
+
n(this, b, void 0);
|
|
91
|
+
n(this, r, void 0);
|
|
92
|
+
t(this, w, 0), t(this, f, 0), t(this, b, 0), t(this, r, new O(void 0)), this.resize = () => {
|
|
93
|
+
t(this, w, document.documentElement.clientWidth), t(this, f, innerHeight), t(this, b, devicePixelRatio), matchMedia(
|
|
94
|
+
"(max-width: 600px)"
|
|
95
|
+
/* <=mobile */
|
|
96
|
+
).matches ? e(this, r).current = "mobile" : matchMedia(
|
|
97
|
+
"(max-width: 1024px)"
|
|
98
|
+
/* <=tablet */
|
|
99
|
+
).matches ? e(this, r).current = "tablet" : matchMedia(
|
|
100
|
+
"(max-width: 1280px)"
|
|
101
|
+
/* <=notebook */
|
|
102
|
+
).matches ? e(this, r).current = "notebook" : matchMedia(
|
|
103
|
+
"(min-width: 1281px)"
|
|
104
|
+
/* >=desktop */
|
|
105
|
+
).matches && (e(this, r).current = "desktop");
|
|
106
|
+
}, C && (this.resize(), A.subscribe(this.resize, k.DEVICE));
|
|
107
|
+
}
|
|
108
|
+
get width() {
|
|
109
|
+
return e(this, w);
|
|
110
|
+
}
|
|
111
|
+
get height() {
|
|
112
|
+
return e(this, f);
|
|
113
|
+
}
|
|
114
|
+
get type() {
|
|
115
|
+
return e(this, r);
|
|
116
|
+
}
|
|
117
|
+
get pixelRatio() {
|
|
118
|
+
return e(this, b);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
w = new WeakMap(), f = new WeakMap(), b = new WeakMap(), r = new WeakMap();
|
|
122
|
+
const q = new y();
|
|
123
|
+
export {
|
|
124
|
+
L as V,
|
|
125
|
+
M as a,
|
|
126
|
+
j as d,
|
|
127
|
+
q as v
|
|
128
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");const T=require("detect-gpu"),q=require("./Store-BQGNOHlY.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
|
package/lib/device/Device.d.ts
CHANGED
package/lib/device/Viewport.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ declare class Viewport {
|
|
|
23
23
|
get height(): number;
|
|
24
24
|
get type(): Store<"mobile" | "tablet" | "notebook" | "desktop" | undefined, keyof import('../store').StoreManagers, import('../store').StoreEntry<"mobile" | "tablet" | "notebook" | "desktop" | undefined>>;
|
|
25
25
|
get pixelRatio(): number;
|
|
26
|
+
resize: () => void;
|
|
26
27
|
}
|
|
27
28
|
export declare const viewport: Viewport;
|
|
28
29
|
export {};
|
package/lib/device/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-DhKPH5nw.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
|
package/lib/device/index.js
CHANGED
package/lib/en3/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ht=Object.defineProperty,lt=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Ne=(C,A,e)=>A in C?ht(C,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):C[A]=e,AA=(C,A)=>{for(var e in A||(A={}))ut.call(A,e)&&Ne(C,e,A[e]);if(xe)for(var e of xe(A))ft.call(A,e)&&Ne(C,e,A[e]);return C},oe=(C,A)=>lt(C,dt(A));var Ie=(C,A,e)=>{if(!A.has(C))throw TypeError("Cannot "+e)};var E=(C,A,e)=>(Ie(C,A,"read from private field"),e?e.call(C):A.get(C)),G=(C,A,e)=>{if(A.has(C))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(C):A.set(C,e)},R=(C,A,e,s)=>(Ie(C,A,"write to private field"),s?s.call(C,e):A.set(C,e),e);var re=(C,A,e)=>(Ie(C,A,"access private method"),e);var uA=(C,A,e)=>new Promise((s,t)=>{var n=o=>{try{r(e.next(o))}catch(a){t(a)}},i=o=>{try{r(e.throw(o))}catch(a){t(a)}},r=o=>o.done?s(o.value):Promise.resolve(o.value).then(n,i);r((e=e.apply(C,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const NA=require("../order/index.cjs"),yA=require("../window-resizer/index.cjs"),LA=require("../ticker/index.cjs"),je=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const B=require("three"),pe=require("../layout-box/index.cjs"),ge=require("../loading/index.cjs"),Dt=require("../SourceManager-
|
|
1
|
+
"use strict";var ht=Object.defineProperty,lt=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Ne=(C,A,e)=>A in C?ht(C,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):C[A]=e,AA=(C,A)=>{for(var e in A||(A={}))ut.call(A,e)&&Ne(C,e,A[e]);if(xe)for(var e of xe(A))ft.call(A,e)&&Ne(C,e,A[e]);return C},oe=(C,A)=>lt(C,dt(A));var Ie=(C,A,e)=>{if(!A.has(C))throw TypeError("Cannot "+e)};var E=(C,A,e)=>(Ie(C,A,"read from private field"),e?e.call(C):A.get(C)),G=(C,A,e)=>{if(A.has(C))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(C):A.set(C,e)},R=(C,A,e,s)=>(Ie(C,A,"write to private field"),s?s.call(C,e):A.set(C,e),e);var re=(C,A,e)=>(Ie(C,A,"access private method"),e);var uA=(C,A,e)=>new Promise((s,t)=>{var n=o=>{try{r(e.next(o))}catch(a){t(a)}},i=o=>{try{r(e.throw(o))}catch(a){t(a)}},r=o=>o.done?s(o.value):Promise.resolve(o.value).then(n,i);r((e=e.apply(C,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const NA=require("../order/index.cjs"),yA=require("../window-resizer/index.cjs"),LA=require("../ticker/index.cjs"),je=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const B=require("three"),pe=require("../layout-box/index.cjs"),ge=require("../loading/index.cjs"),Dt=require("../SourceManager-BFSCX4Q8.cjs"),ke=require("../Store-BQGNOHlY.cjs");function kA(C){const A=e=>{e.dispose();for(const s of Object.keys(e)){const t=e[s];t&&typeof t=="object"&&"minFilter"in t&&t.dispose()}};C.traverse(e=>{if(e instanceof B.Mesh){if(e.geometry.dispose(),!Array.isArray(e.material)&&e.material.isMaterial)A(e.material);else if(Array.isArray(e.material))for(const s of e.material)A(s)}})}var bA,T,EA,sA,nA,DA,iA,oA;class me{constructor(A,e){G(this,bA,void 0);G(this,T,void 0);G(this,EA,void 0);G(this,sA,void 0);G(this,nA,void 0);G(this,DA,void 0);G(this,iA,void 0);G(this,oA,void 0);R(this,bA,A),R(this,T,(e==null?void 0:e.cameraType)==="orthographic"?new B.OrthographicCamera:new B.PerspectiveCamera),R(this,EA,new B.Scene),R(this,sA,[]),R(this,nA,(e==null?void 0:e.cameraDistance)||1e3),E(this,T).near=(e==null?void 0:e.cameraNear)||1,E(this,T).far=(e==null?void 0:e.cameraFar)||11e3,R(this,DA,(e==null?void 0:e.cameraFov)||"auto"),R(this,iA,je.getElement(e==null?void 0:e.sizeElement)||document.documentElement),this.beforeRenderCallback=e==null?void 0:e.beforeRender,R(this,oA,new pe.LayoutBox(E(this,iA))),E(this,oA).onScale(()=>{this.resize()})}get name(){return E(this,bA)}get camera(){return E(this,T)}get scene(){return E(this,EA)}get box(){return E(this,oA)}get cameraDistance(){return E(this,nA)}set cameraDistance(A){R(this,nA,A),this.resize()}get sizeElement(){return E(this,iA)}get isClipped(){return E(this,iA)!==w.containerElement}resize(){const{width:A,height:e}=E(this,oA);E(this,T).position.z=E(this,nA),E(this,T)instanceof B.PerspectiveCamera?(E(this,T).aspect=A/e,E(this,T).fov=E(this,DA)==="auto"?2*Math.atan(e/2/E(this,nA))*(180/Math.PI):E(this,DA)):E(this,T)instanceof B.OrthographicCamera&&(E(this,T).left=A/-2,E(this,T).right=A/2,E(this,T).top=e/2,E(this,T).bottom=e/-2),E(this,T).updateProjectionMatrix()}destroy(){E(this,sA).forEach(A=>{A.userData.box.destroy()}),E(this,EA).clear(),kA(E(this,EA)),w.destroyView(this.name),E(this,oA).destroy()}attachToHTMLElement(A,e,s){const t=new pe.LayoutBox(A,oe(AA({},s),{containerElement:E(this,iA),cartesian:!0,scrollStep:!this.isClipped}));return t.bindObject(e),e.userData.box=t,E(this,sA).push(e),e}detachFromHTMLElement(A){R(this,sA,E(this,sA).filter(e=>e===A?(A.userData.box.destroy(),!1):!0))}add(...A){const e=A[0],s=A[1],t=A[2];return this.scene.add(e),s?this.attachToHTMLElement(s,e,t):e}remove(A,e){this.scene.remove(A),e&&this.detachFromHTMLElement(A)}}bA=new WeakMap,T=new WeakMap,EA=new WeakMap,sA=new WeakMap,nA=new WeakMap,DA=new WeakMap,iA=new WeakMap,oA=new WeakMap;const O=new Map;var ae,W,y,x,FA,GA,RA,KA,cA,OA,_A,PA;class Ft{constructor(){G(this,ae,`https://unpkg.com/three@0.${B.REVISION}.x`);G(this,W,null);G(this,y,null);G(this,x,new Map);G(this,FA,0);G(this,GA,0);G(this,RA,0);G(this,KA,2);G(this,cA,!1);G(this,OA,!1);G(this,_A,()=>{var A;R(this,FA,E(this,W).clientWidth),R(this,GA,E(this,W).clientHeight),R(this,RA,Math.min(E(this,KA),devicePixelRatio||1)),E(this,y).setPixelRatio(E(this,RA)),E(this,y).setSize(E(this,FA),E(this,GA)),(A=this.onResize)==null||A.call(this)});G(this,PA,()=>{E(this,y).setRenderTarget(null),E(this,x).forEach(A=>{this.render(A)})})}get CDNVersion(){return E(this,ae)}get containerElement(){return E(this,W)}get webglRenderer(){return E(this,y)}get views(){return E(this,x)}get view(){return this.getView("default")}get width(){return E(this,FA)}get height(){return E(this,GA)}get pixelRatio(){return E(this,RA)}get cacheAssets(){return E(this,OA)}setup(A){if(E(this,cA)){console.warn("[en3.setup]: You are trying to setup en3 again.");return}R(this,W,je.getElement(A==null?void 0:A.containerElement)||document.body),R(this,KA,(A==null?void 0:A.maxPixelRatio)||2),R(this,y,new B.WebGLRenderer(A==null?void 0:A.webGLRendererParameters)),E(this,y).domElement.style.cssText=`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 0;
|
|
4
4
|
top: 0;
|
package/lib/en3/index.js
CHANGED
|
@@ -44,7 +44,7 @@ import "../path-data-polyfill-DgeDWYeI.js";
|
|
|
44
44
|
import { Mesh as Qe, OrthographicCamera as me, PerspectiveCamera as Xe, Scene as as, REVISION as Is, WebGLRenderer as gs, TextureLoader as Lt, TrianglesDrawMode as Es, TriangleFanDrawMode as ve, TriangleStripDrawMode as Jt, Loader as et, LoaderUtils as WA, FileLoader as FA, Color as cA, LinearSRGBColorSpace as P, SpotLight as cs, PointLight as Qs, DirectionalLight as hs, MeshBasicMaterial as qA, SRGBColorSpace as eA, MeshPhysicalMaterial as tA, Vector2 as Ht, Matrix4 as bA, Vector3 as y, Quaternion as tt, InstancedMesh as ls, InstancedBufferAttribute as ds, Object3D as st, ImageBitmapLoader as us, BufferAttribute as VA, InterleavedBuffer as fs, InterleavedBufferAttribute as Ds, LinearFilter as Me, LinearMipmapLinearFilter as nt, RepeatWrapping as We, PointsMaterial as Fs, Material as Je, LineBasicMaterial as Gs, MeshStandardMaterial as Tt, DoubleSide as Rs, PropertyBinding as ps, BufferGeometry as Ut, SkinnedMesh as ms, LineSegments as Ms, Line as ws, LineLoop as ys, Points as Ss, Group as jA, MathUtils as Ls, Skeleton as Js, AnimationClip as Hs, Bone as Ts, InterpolateLinear as xt, ColorManagement as rt, NearestFilter as Us, NearestMipmapNearestFilter as xs, LinearMipmapNearestFilter as Ns, NearestMipmapLinearFilter as ks, ClampToEdgeWrapping as bs, MirroredRepeatWrapping as Ks, InterpolateDiscrete as Os, FrontSide as _s, Texture as Ct, VectorKeyframeTrack as at, NumberKeyframeTrack as It, QuaternionKeyframeTrack as gt, Box3 as Ps, Sphere as Ys, Interpolant as qs, CompressedCubeTexture as Xs, UnsignedByteType as O, CompressedArrayTexture as vs, CompressedTexture as Nt, RGBAFormat as mA, RGBA_ASTC_4x4_Format as Ws, RGBA_BPTC_Format as Vs, RGBA_ETC2_EAC_Format as js, RGBA_PVRTC_4BPPV1_Format as Zs, RGBA_S3TC_DXT5_Format as zs, RGB_ETC1_Format as $s, RGB_ETC2_Format as An, RGB_PVRTC_4BPPV1_Format as en, RGB_S3TC_DXT1_Format as tn, FloatType as Re, HalfFloatType as pe, DataTexture as sn, Data3DTexture as nn, DisplayP3ColorSpace as on, LinearDisplayP3ColorSpace as Bn, NoColorSpace as Et, RGFormat as XA, RedFormat as vA, RGBA_ASTC_6x6_Format as ct, Plane as De, PlaneHelper as Fe, BoxGeometry as rn, VideoTexture as Cn } from "three";
|
|
45
45
|
import { LayoutBox as Ve } from "../layout-box/index.js";
|
|
46
46
|
import { loading as He } from "../loading/index.js";
|
|
47
|
-
import { S as an } from "../SourceManager-
|
|
47
|
+
import { S as an } from "../SourceManager-DmXmmA6z.js";
|
|
48
48
|
import { S as Qt } from "../Store-Cd-E5W1z.js";
|
|
49
49
|
function we(C) {
|
|
50
50
|
const A = (e) => {
|
package/lib/scroll/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ps=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(ps(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(ps(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ct=require("../Store-BQGNOHlY.cjs"),Os=require("../Derived-BZtlW0bB.cjs"),is=require("../browser-CpzFX2xg.cjs"),gt=require("../layout-8ryRAMGJ.cjs"),rs=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const ge=require("../order/index.cjs"),ms=require("../Damped-CbWlWAbx.cjs"),ye=require("../controls/index.cjs"),wt=require("../custom-element/index.cjs"),re=require("../window-resizer/index.cjs"),qt=require("../scroll-entries/index.cjs"),A=require("../tags-CueX-JLX.cjs"),ns=require("../createStylesheet-C8aQQ4hd.cjs"),fs=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),$s=require("../Viewport-_WllZTJ0.cjs"),qe=require("../element-resizer/index.cjs"),Ds=require("../gestures-DHLrn6Q8.cjs"),Ss=require("../theme/index.cjs"),Fs=require("../dom-JBOkFLTh.cjs"),gs=require("../function-MthRj-GJ.cjs");var Rs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Ts=(r,e,i,n)=>{for(var h=n>1?void 0:n?qs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Rs(e,i,h),h},hs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(hs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},b=(r,e,i,n)=>(hs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(hs(r,e,"access private method"),i),d,R,st,X,it,_t,yt,Z,T,Bt,At,It,Ht,oe,ot,Gt,Pt,Ut,Nt,g,Te,u,Pe,Ee,W,_,B,Y,$t,ft,$,P,ae,Et,ne,he,te,ve,Dt,ee,Be,os,Ae,as,ke,Ue,We,Ne,I,He,Ke,ws,le,Me,xe,Ze,me,Ie,Je,bs,w,y,Rt,tt,vt;class Bs{constructor(e,i){V(this,w,void 0);V(this,y,void 0);V(this,Rt,0);V(this,tt,0);V(this,vt,null);F(this,w,e),F(this,y,i),qt.scrollEntries.register(o(this,w))}get size(){return o(this,Rt)}get position(){return o(this,tt)}destroy(){qt.scrollEntries.unregister(o(this,w)),o(this,w).style.transform="",this.mark(null)}setSize(e){e?(o(this,w).style.setProperty("--size",e+"px"),o(this,y).axisCSSProperty.current==="x"?(o(this,w).style.width=e+"px",o(this,w).style.height=""):(o(this,w).style.height=e+"px",o(this,w).style.width="")):(o(this,w).style.width="",o(this,w).style.height="",o(this,w).style.removeProperty("--size"))}resize(){F(this,Rt,o(this,y).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),F(this,tt,o(this,y).vertical?gt.getCumulativeOffsetTop(o(this,w)):gt.getCumulativeOffsetLeft(o(this,w))),F(this,tt,o(this,tt)-o(this,y).contentPosition)}transform(){let e=0;const i=o(this,y).viewportSize*o(this,y).sectionDistanceScaleCSSProperty.current;o(this,y).infiniteCSSProperty.current&&o(this,y).overscroll&&o(this,tt)+o(this,Rt)<o(this,y).currentScrollValue&&(e=o(this,y).distance*-1-o(this,y).gap),qt.scrollEntries.update(o(this,w),o(this,y).axisCSSProperty.current,e);const n=o(this,y).currentScrollValue+e,h=o(this,tt)-o(this,y).viewportSize-i,c=o(this,tt)+o(this,Rt)+i,f=rs.clamp(n,h,c);o(this,y).vertical?o(this,w).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:o(this,w).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}mark(e){o(this,vt)!==e&&(o(this,vt)&&o(this,w).classList.remove(o(this,vt)),e&&o(this,w).classList.add(e),F(this,vt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,vt)}})))}}w=new WeakMap,y=new WeakMap,Rt=new WeakMap,tt=new WeakMap,vt=new WeakMap;const As=ns.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(){super(),l(this,te),l(this,Dt),l(this,Be),l(this,Ae),l(this,ke),l(this,We),l(this,Ke),l(this,xe),l(this,me),l(this,Je),l(this,d,null),l(this,R,new p.CSSProperty(this,"--axis","y")),l(this,st,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,X,new p.CSSProperty(this,"--split",!1)),l(this,it,new p.CSSProperty(this,"--sectional",!1)),l(this,_t,new p.CSSProperty(this,"--auto-size",!1)),l(this,yt,new p.CSSProperty(this,"--wheel-max-delta",!1)),l(this,Z,new p.CSSProperty(this,"--sections-in-view",1)),l(this,T,new p.CSSProperty(this,"--infinite",!1)),l(this,Bt,new p.CSSProperty(this,"--damping",20)),l(this,At,new p.CSSProperty(this,"--mass",0)),l(this,It,new p.CSSProperty(this,"--stiffness",0)),l(this,Ht,new p.CSSProperty(this,"--mouse-drag",!1)),l(this,oe,new p.CSSProperty(this,"--section-distance-scale",.5)),l(this,ot,new p.CSSProperty(this,"--autoplay",0)),l(this,Gt,new p.CSSProperty(this,"--autoplay-pause-duration",0)),l(this,Pt,new p.CSSProperty(this,"--autoplay-user-direction",!1)),l(this,Ut,new p.CSSProperty(this,"--disabled",!1)),l(this,Nt,new p.CSSProperty(this,"--hibernated",!1)),l(this,g,null),l(this,Te,null),l(this,u,[]),l(this,Pe,0),l(this,Ee,0),l(this,W,0),l(this,_,0),l(this,B,0),l(this,Y,null),l(this,$t,null),l(this,ft,null),l(this,$,null),l(this,P,new Ct.Store(0)),l(this,ae,0),l(this,Et,0),l(this,ne,!0),l(this,he,!0),l(this,I,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,_)||0,i=t(this,P).current;if(b(this,Pe,this.vertical?gt.getCumulativeOffsetTop(this):gt.getCumulativeOffsetLeft(this)),b(this,Ee,this.vertical?gt.getCumulativeOffsetTop(t(this,g)):gt.getCumulativeOffsetLeft(t(this,g))),b(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).rowGap)):b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).columnGap)),t(this,_t).current&&t(this,u).length){const n=t(this,Z).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,u).forEach(c=>{c.setSize(h)})}else t(this,u).forEach(n=>{n.setSize()});if(t(this,u).forEach(n=>{n.resize()}),t(this,st).current){b(this,_,t(this,W)*t(this,st).current);const n=t(this,_)+t(this,W);this.vertical?(t(this,g).style.width=n+"px",t(this,g).style.height="100%"):(t(this,g).style.height=n+"px",t(this,g).style.width="100%")}else this.vertical?(t(this,g).style.width="100%",t(this,g).style.height="max-content",b(this,_,t(this,g).offsetHeight-t(this,W))):(t(this,g).style.width="max-content",t(this,g).style.height="100%",b(this,_,t(this,g).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);b(this,_,t(this,_)+h),t(this,d).max=t(this,_)}if(t(this,T).current&&t(this,u).length){const n=t(this,u)[t(this,u).length-1],h=n.position+n.size-t(this,W),c=t(this,_)-h;b(this,Et,n.position+n.size+c)}else b(this,Et,t(this,_));if(t(this,it).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,_),{equalize:!0})}),l(this,He,()=>{const e=this.currentScrollValue;if(b(this,ae,Math.max(0,e-t(this,_))),t(this,u).length){let i=0;for(let n=0;n<t(this,u).length;n++){const h=t(this,u)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,g).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,g).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;qt.scrollEntries.update(this,t(this,R).current,e)}),l(this,le,(e,i)=>{t(this,$).pauseAndContinue(t(this,Gt).current),t(this,Pt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,Me).call(this,e,i)}),l(this,Me,(e,i)=>{if(!(e==="drag"&&!$s.device.isMobile&&!t(this,Ht).current))if(t(this,it).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),is.isBrowser&&(b(this,d,new ms.Damped(0,{damping:.01,min:0,order:ge.TICK_ORDER.SCROLL})),this.openShadow(As),A.element(this,{tabIndex:0,children:[A.div({class:"static",children:[A.slot({name:"static"})]}),A.div({class:"content",children:[A.slot({ref:e=>b(this,Te,e)})],style:{flexDirection:new Os.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>b(this,g,e)})]}),b(this,Y,new ye.WheelControls({element:t(this,g)})),t(this,Y).changeEvent.subscribe(t(this,le)),b(this,$t,new ye.KeyboardControls({element:this})),t(this,$t).changeEvent.subscribe(t(this,le)),b(this,ft,new ye.DragControls({element:t(this,g)})),t(this,ft).changeEvent.subscribe(t(this,le)),b(this,$,new ye.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,Me)),t(this,R).subscribe(({current:e})=>{t(this,g).style.flexDirection=e==="x"?"row":"column",t(this,Y).axis=t(this,yt).current?"max":e,t(this,$t).dimension=e==="x"?"width":"height",t(this,ft).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,I).call(this)}),t(this,yt).subscribe(e=>{t(this,Y).axis=e.current?"max":t(this,R).current}),t(this,st).subscribe(()=>{this.isConnected&&t(this,I).call(this)}),t(this,X).subscribe(({current:e})=>{this.isConnected&&(e?C(this,te,ve).call(this):C(this,Dt,ee).call(this))}),t(this,it).subscribe(e=>{t(this,Y).debounce=e.current,t(this,ft).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,_t).subscribe(e=>{this.isConnected&&(t(this,I).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,Z).subscribe(e=>{this.isConnected&&(t(this,I).call(this),C(this,me,Ie).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,X).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,ae,0),t(this,d).max=t(this,_),t(this,d).min=0)}),t(this,Bt).subscribe(e=>{t(this,d).damping=e.current}),t(this,At).subscribe(e=>{t(this,d).mass=e.current}),t(this,It).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?C(this,Be,os).call(this):!e.current&&e.previous&&C(this,Ae,as).call(this)}),t(this,Nt).subscribe(e=>{e.current&&!e.previous?C(this,ke,Ue).call(this):!e.current&&e.previous&&C(this,We,Ne).call(this)}),t(this,ot).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Pt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,u).length&&C(this,me,Ie).call(this)}))}get damped(){return t(this,d)}get axisCSSProperty(){return t(this,R)}get pagesCSSProperty(){return t(this,st)}get splitCSSProperty(){return t(this,X)}get sectionalCSSProperty(){return t(this,it)}get autoSizeCSSProperty(){return t(this,_t)}get wheelMaxDeltaCSSProperty(){return t(this,yt)}get sectionsInViewCSSProperty(){return t(this,Z)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Bt)}get massCSSProperty(){return t(this,At)}get stiffnessCSSProperty(){return t(this,It)}get mouseDragCSSProperty(){return t(this,Ht)}get sectionDistanceScaleCSSProperty(){return t(this,oe)}get autoplayCSSProperty(){return t(this,ot)}get autoplayPauseDurationCSSProperty(){return t(this,Gt)}get autoplayUserDirectionCSSProperty(){return t(this,Pt)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Nt)}get currentScrollValue(){return C(this,xe,Ze).call(this,"current")}get targetScrollValue(){return C(this,xe,Ze).call(this,"target")}get contentElement(){return t(this,g)}get sections(){return t(this,u)}get position(){return t(this,Pe)}get contentPosition(){return t(this,Ee)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,_)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,u).length-t(this,Z).current}get distance(){return t(this,Et)}get infiniteDistance(){return t(this,T).current?t(this,Et)+t(this,B):t(this,Et)}get overscroll(){return t(this,ae)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,u).length)return;const n=t(this,P).current;C(this,Ke,ws).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,P).current];if(h&&c){let f=0;const _e=C(this,Je,bs).call(this),Vs=_e?this.targetScrollValue-_e.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,u).length-1?f=t(this,_)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,u).length-1&&n===0?f=c.position-(t(this,_)+t(this,W)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-Vs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,R).observe(),t(this,st).observe(),t(this,X).observe(),t(this,it).observe(),t(this,_t).observe(),t(this,yt).observe(),t(this,Z).observe(),t(this,T).observe(),t(this,Bt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,Ht).observe(),t(this,oe).observe(),t(this,ot).observe(),t(this,ot).observe(),t(this,Gt).observe(),t(this,Pt).observe(),t(this,Ut).observe(),t(this,Nt).observe(),C(this,We,Ne).call(this)}disconnectedCallback(){t(this,R).unobserve(),t(this,st).unobserve(),t(this,X).unobserve(),t(this,it).unobserve(),t(this,_t).unobserve(),t(this,yt).unobserve(),t(this,Z).unobserve(),t(this,T).unobserve(),t(this,Bt).unobserve(),t(this,At).unobserve(),t(this,It).unobserve(),t(this,Ht).unobserve(),t(this,oe).unobserve(),t(this,ot).unobserve(),t(this,Gt).unobserve(),t(this,Pt).unobserve(),t(this,Ut).unobserve(),t(this,Nt).unobserve(),C(this,ke,Ue).call(this)}};d=new WeakMap;R=new WeakMap;st=new WeakMap;X=new WeakMap;it=new WeakMap;_t=new WeakMap;yt=new WeakMap;Z=new WeakMap;T=new WeakMap;Bt=new WeakMap;At=new WeakMap;It=new WeakMap;Ht=new WeakMap;oe=new WeakMap;ot=new WeakMap;Gt=new WeakMap;Pt=new WeakMap;Ut=new WeakMap;Nt=new WeakMap;g=new WeakMap;Te=new WeakMap;u=new WeakMap;Pe=new WeakMap;Ee=new WeakMap;W=new WeakMap;_=new WeakMap;B=new WeakMap;Y=new WeakMap;$t=new WeakMap;ft=new WeakMap;$=new WeakMap;P=new WeakMap;ae=new WeakMap;Et=new WeakMap;ne=new WeakMap;he=new WeakMap;te=new WeakSet;ve=function(){C(this,Dt,ee).call(this),t(this,Te).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new Bs(r,this))}),t(this,g).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,I).call(this),C(this,me,Ie).call(this)};Dt=new WeakSet;ee=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Be=new WeakSet;os=function(){t(this,ne)||(b(this,ne,!0),t(this,d).unsubscribe(t(this,He)),t(this,d).unlistenAnimationFrame(),t(this,Y).disconnect(),t(this,$t).disconnect(),t(this,ft).disconnect(),t(this,$).disconnect())};Ae=new WeakSet;as=function(){t(this,ne)&&(b(this,ne,!1),t(this,d).subscribe(t(this,He)),t(this,Y).connect(),t(this,$t).connect(),t(this,ft).connect(),t(this,ot).current&&t(this,$).connect())};ke=new WeakSet;Ue=function(){t(this,he)||(b(this,he,!0),re.windowResizer.unsubscribe(t(this,I)),qe.elementResizer.unsubscribe(t(this,I)),t(this,d).reset(),C(this,Be,os).call(this),t(this,g).style.transform="",t(this,X).current&&C(this,Dt,ee).call(this),qt.scrollEntries.unregister(this))};We=new WeakSet;Ne=function(){t(this,he)&&(b(this,he,!1),t(this,X).current&&C(this,te,ve).call(this),qt.scrollEntries.register(this),re.windowResizer.subscribe(t(this,I),ge.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,I)),C(this,Ae,as).call(this))};I=new WeakMap;He=new WeakMap;Ke=new WeakSet;ws=function(r){t(this,T).current?(t(this,P).current=r%t(this,u).length,t(this,P).current=t(this,P).current<0?t(this,u).length+t(this,P).current:t(this,P).current):t(this,P).current=rs.clamp(r,0,this.limit)};le=new WeakMap;Me=new WeakMap;xe=new WeakSet;Ze=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,_)+t(this,W)+t(this,B));return e<0?t(this,_)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};me=new WeakSet;Ie=function(){if(t(this,u).length){const r=t(this,P).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end"),t(this,u).forEach((e,i)=>{const n=r-this.limit-1,h=r+t(this,Z).current,c=this.sections.length-h;i>=r&&i<h||i<=n?e.mark("current"):i>=h&&i<h+c/2||i<=n+t(this,Z).current?e.mark("next"):e.mark("previous")})}};Je=new WeakSet;bs=function(){let r=null,e=1/0;for(let i=0;i<t(this,u).length;i++){const n=Math.abs(t(this,u)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,u)[r]:null};exports.ScrollElement=Ts([wt.define("e-scroll")],exports.ScrollElement);var we;class Ge extends wt.CustomElement{constructor(){super(...arguments);V(this,we,null)}get scrollElement(){return o(this,we)}connectedCallback(){const i=Fs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,we,i):console.error(this,"e-scroll not found")}}we=new WeakMap;var Is=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Is(e,i,h),h},Cs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(Cs(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},bt=(r,e,i,n)=>(Cs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),ce,q,rt,nt,ue,pe,Kt,Le,ze,Ve;const Us=ns.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ss.aptechkaTheme.colorLight.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ss.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Ge{constructor(){super(),N(this,ce,null),N(this,q,null),N(this,rt,!1),N(this,nt,0),N(this,ue,0),N(this,pe,0),N(this,Kt,()=>{bt(this,rt,this.offsetWidth>this.offsetHeight);const e=S(this,rt)?this.offsetWidth:this.offsetHeight;bt(this,nt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),bt(this,nt,Math.max(S(this,nt),30)),S(this,rt)?(S(this,q).style.width=S(this,nt)+"px",S(this,q).style.height="100%"):(S(this,q).style.width="100%",S(this,q).style.height=S(this,nt)+"px"),bt(this,ue,e-S(this,nt)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Le,()=>{bt(this,pe,this.scrollElement.currentProgress*S(this,ue)),S(this,rt)?S(this,q).style.transform=`translate3d(${S(this,pe)}px, 0px, 0px)`:S(this,q).style.transform=`translate3d(0px, ${S(this,pe)}px, 0px)`}),N(this,ze,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,Ve,e=>{document.documentElement.classList.add("grabbing"),Ds.setupDrag(h=>{const c=S(this,rt)?h.x:h.y,f=this.scrollElement.distance/S(this,ue),_e=(c-n)*f;this.scrollElement.setPosition(i+_e)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,rt)?e.x:e.y}),is.isBrowser&&(this.openShadow(Us),A.element(this,{slot:"static","drag-dead-zone":"",children:[A.slot({ref:e=>bt(this,ce,e),children:A.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,q)}connectedCallback(){super.connectedCallback();const e=S(this,ce).assignedElements()[0]||S(this,ce).firstElementChild;bt(this,q,e),S(this,q).addEventListener("pointerdown",S(this,Ve)),re.windowResizer.subscribe(S(this,Kt),ge.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,S(this,Kt)),this.scrollElement.onScroll(S(this,Le)),this.scrollElement.axisCSSProperty.subscribe(S(this,ze))}disconnectedCallback(){S(this,q).removeEventListener("pointerdown",S(this,Ve)),re.windowResizer.unsubscribe(S(this,Kt)),qe.elementResizer.unsubscribe(S(this,Kt)),this.scrollElement.offScroll(S(this,Le)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,ze))}};ce=new WeakMap;q=new WeakMap;rt=new WeakMap;nt=new WeakMap;ue=new WeakMap;pe=new WeakMap;Kt=new WeakMap;Le=new WeakMap;ze=new WeakMap;Ve=new WeakMap;exports.ScrollbarElement=Gs([wt.define("e-scrollbar")],exports.ScrollbarElement);const Ns=ns.createStylesheet({button:{all:"inherit"}});class _s extends Ge{constructor(){super(),this.openShadow(Ns),is.isBrowser&&A.element(this,{children:[A.button({onClick:()=>{this.handleClick()},children:[A.slot()]})]})}}var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Ks(e,i,h),h};exports.ScrollSetButtonElement=class extends _s{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Js([wt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var Qs=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,Ys=(r,e,i,n)=>{for(var h=n>1?void 0:n?Xs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Qs(e,i,h),h};exports.ScrollStepButtonElement=class extends _s{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=Ys([wt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var js=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(r,e,i,n)=>{for(var h=n>1?void 0:n?ti(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&js(e,i,h),h},ys=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Tt=(r,e,i)=>(ys(r,e,"read from private field"),i?i.call(r):e.get(r)),ds=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},vs=(r,e,i,n)=>(ys(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),kt,fe,et,mt,se,be,Ce,ie;class si{constructor(e,i,n){V(this,et,void 0);V(this,mt,void 0);V(this,se,void 0);V(this,be,void 0);V(this,Ce,()=>{o(this,mt).scrollToSection(o(this,se),o(this,be))});V(this,ie,()=>{o(this,et).classList.toggle("current",o(this,mt).counter.current===o(this,se))});F(this,et,document.createElement("button")),F(this,mt,e),F(this,be,n),F(this,se,i),o(this,et).addEventListener("click",o(this,Ce)),o(this,mt).counter.subscribe(o(this,ie)),o(this,ie).call(this)}get element(){return o(this,et)}destroy(){o(this,et).removeEventListener("click",o(this,Ce)),o(this,mt).counter.unsubscribe(o(this,ie)),o(this,et).remove()}}et=new WeakMap,mt=new WeakMap,se=new WeakMap,be=new WeakMap,Ce=new WeakMap,ie=new WeakMap;exports.ScrollBulletButtonsElement=class extends Ge{constructor(){super(...arguments),ds(this,kt,[]),ds(this,fe,gs.debounce(()=>{Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new si(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Tt(this,kt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Tt(this,fe)),Tt(this,fe).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Tt(this,fe)),Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[])}};kt=new WeakMap;fe=new WeakMap;exports.ScrollBulletButtonsElement=ei([wt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ii=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ni=(r,e,i,n)=>{for(var h=n>1?void 0:n?ri(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&ii(e,i,h),h},ls=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(ls(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},m=(r,e,i,n)=>(ls(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(ls(r,e,"access private method"),i),Zt,Jt,Qt,Xt,Wt,Mt,xt,Lt,D,H,G,U,Ot,x,at,lt,ct,ut,pt,M,Q,J,St,dt,j,Oe,v,Yt,jt,$e,L,zt,O,z,K,Se,Ft,E,Qe,Ps,Xe,Es,Ye,ks,je,Ws,ts,Ms,es,xs,De,de,ht,Vt,cs,Ls,us,zs,Fe,ss,Re;exports.ScrollSegmentElement=class extends Ge{constructor(){super(),a(this,Qe),a(this,Xe),a(this,Ye),a(this,je),a(this,ts),a(this,es),a(this,ht),a(this,cs),a(this,us),a(this,Fe),a(this,Zt,new p.CSSProperty(this,"--damping",20)),a(this,Jt,new p.CSSProperty(this,"--mass",0)),a(this,Qt,new p.CSSProperty(this,"--stiffness",0)),a(this,Xt,new p.CSSProperty(this,"--target","")),a(this,Wt,new p.CSSProperty(this,"--disabled",!1)),a(this,Mt,new p.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),a(this,xt,new p.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),a(this,Lt,new p.CSSProperty(this,"--capture-once",!1)),a(this,D,new p.CSSProperty(this,"--captured","")),a(this,H,new p.CSSProperty(this,"--released","")),a(this,G,new p.CSSProperty(this,"--captured-from-start","")),a(this,U,new p.CSSProperty(this,"--captured-from-finish","")),a(this,Ot,new p.CSSProperty(this,"--released-from-start","")),a(this,x,new p.CSSProperty(this,"--released-from-finish","")),a(this,at,new p.CSSProperty(this,"--passed-var","")),a(this,lt,new p.CSSProperty(this,"--progress-var","")),a(this,ct,new p.CSSProperty(this,"--distance-var","")),a(this,ut,new p.CSSProperty(this,"--start-var","")),a(this,pt,new p.CSSProperty(this,"--finish-var","")),a(this,M,new Ct.Store(!1)),a(this,Q,new Ct.Store(!1)),a(this,J,new Ct.Store(!1)),a(this,St,new Ct.Store(!1)),a(this,dt,new Ct.Store(!1)),a(this,j,new Ct.Store(!1)),a(this,Oe,[]),a(this,v,this),a(this,Yt,0),a(this,jt,0),a(this,$e,0),a(this,L,new ms.Damped(0,{order:ge.TICK_ORDER.SCROLL-1,min:0,max:1})),a(this,zt,0),a(this,O,0),a(this,z,0),a(this,K,0),a(this,Se,!1),a(this,Ft,!1),a(this,E,!0),a(this,De,()=>{s(this,E)||(this.resize(),s(this,de).call(this))}),a(this,de,()=>{!s(this,E)&&s(this,Se)&&this.tick()}),a(this,Re,gs.debounce(()=>{const e=qt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),m(this,Oe,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Mt)}get startOffsetCSSProperty(){return s(this,xt)}get captureOnceCSSProperty(){return s(this,Lt)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,Ot)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,at)}get progressVarCSSProperty(){return s(this,lt)}get distanceVarCSSProperty(){return s(this,ct)}get startVarCSSProperty(){return s(this,ut)}get finishVarCSSProperty(){return s(this,pt)}get disabledCSSProperty(){return s(this,Wt)}get dampingCSSProperty(){return s(this,Zt)}get massCSSProperty(){return s(this,Jt)}get stiffnessCSSProperty(){return s(this,Qt)}get targetCSSProperty(){return s(this,Xt)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,Q)}get isCapturedFromStart(){return s(this,J)}get isReleasedFromStart(){return s(this,St)}get isCapturedFromFinish(){return s(this,dt)}get isReleasedFromFinish(){return s(this,j)}get directionPosition(){return s(this,Yt)}get directionSize(){return s(this,jt)}get passed(){return s(this,L)}get progress(){return s(this,zt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,Ft)}get isDisabled(){return s(this,E)}resize(){m(this,jt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),m(this,Yt,this.scrollElement.vertical?gt.getCumulativeOffsetTop(this,this.scrollElement):gt.getCumulativeOffsetLeft(this,this.scrollElement)),m(this,O,this.getStart()),m(this,z,this.getDistance()),m(this,O,s(this,O)+s(this,xt).current),m(this,z,s(this,z)+s(this,Mt).current),m(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,Q).current&&(s(this,M).current=!0),this.setVar(s(this,ut).current,s(this,O)),this.setVar(s(this,pt).current,s(this,K)),this.setVar(s(this,ct).current,s(this,z)),s(this,L).max=s(this,z),m(this,Se,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Oe).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,J).current||k(this,Ye,ks).call(this):s(this,J).current&&!s(this,St).current&&k(this,ts,Ms).call(this),i<s(this,K)?s(this,j).current&&!s(this,dt).current&&k(this,je,Ws).call(this):s(this,J).current&&!s(this,j).current&&k(this,es,xs).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,Qe,Ps).call(this):s(this,M).current&&(s(this,L).set(rs.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,Xe,Es).call(this)),s(this,Ft)&&s(this,Lt).current&&(s(this,D).current&&s(this,v).classList.add(s(this,D).current),m(this,E,!0))}disable(){this.style.cssText="",m(this,Yt,0),m(this,jt,0),s(this,L).reset(),m(this,zt,0),m(this,O,0),m(this,z,0),m(this,K,0),m(this,Se,!1),s(this,M).current=!1,s(this,Q).current=!1,s(this,J).current=!1,s(this,St).current=!1,s(this,dt).current=!1,s(this,j).current=!1,m(this,Ft,!1),m(this,E,!0),k(this,Fe,ss).call(this)}enable(){m(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,Zt).observe(),s(this,Jt).observe(),s(this,Qt).observe(),s(this,Xt).observe(),s(this,Wt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Ot).observe(),s(this,x).observe(),s(this,at).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,pt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Re)),s(this,Re).call(this),s(this,Wt).current||this.enable(),s(this,Zt).subscribe(i=>{s(this,L).damping=i.current}),s(this,Jt).subscribe(i=>{s(this,L).mass=i.current}),s(this,Qt).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,Xt).subscribe(i=>{i.previous&&k(this,Fe,ss).call(this),i.current?i.current==="parent"?m(this,v,this.parentElement||this):m(this,v,document.querySelector(i.current)||this):m(this,v,this)}),s(this,Wt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,xt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Mt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,G).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,U).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,H).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Ot).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,x).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Lt).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,at).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,lt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,zt)))}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,ct).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{m(this,zt,s(this,L).current/s(this,z)||0),this.setVar(s(this,at).current,s(this,L).current.toFixed(6)),this.setVar(s(this,lt).current,s(this,zt).toFixed(6))}),re.windowResizer.subscribe(s(this,De),ge.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,de)),e=!0}disconnectedCallback(){re.windowResizer.unsubscribe(s(this,De)),this.scrollElement.offScroll(s(this,de)),s(this,Zt).close(),s(this,Jt).close(),s(this,Qt).close(),s(this,Xt).close(),s(this,Wt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Ot).close(),s(this,x).close(),s(this,at).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,pt).close(),s(this,M).close(),s(this,Q).close(),s(this,J).close(),s(this,St).close(),s(this,dt).close(),s(this,j).close(),this.disable()}removeVar(e){e&&s(this,v).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,v).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,jt)+s(this,$e)}getStart(){return s(this,Yt)-s(this,$e)}};Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Ot=new WeakMap;x=new WeakMap;at=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;M=new WeakMap;Q=new WeakMap;J=new WeakMap;St=new WeakMap;dt=new WeakMap;j=new WeakMap;Oe=new WeakMap;v=new WeakMap;Yt=new WeakMap;jt=new WeakMap;$e=new WeakMap;L=new WeakMap;zt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;Se=new WeakMap;Ft=new WeakMap;E=new WeakMap;Qe=new WeakSet;Ps=function(){s(this,M).current=!0,s(this,Q).current=!1,m(this,Ft,!0),s(this,H).current&&s(this,v).classList.remove(s(this,H).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,D).current&&s(this,v).classList.add(s(this,D).current)};Xe=new WeakSet;Es=function(){s(this,Q).current=!0,s(this,M).current=!1,m(this,Ft,!0),s(this,D).current&&s(this,v).classList.remove(s(this,D).current),s(this,G).current&&s(this,v).classList.remove(s(this,G).current),s(this,U).current&&s(this,v).classList.remove(s(this,U).current),s(this,H).current&&s(this,v).classList.add(s(this,H).current)};Ye=new WeakSet;ks=function(){s(this,M).current=!0,s(this,J).current=!0,s(this,St).current=!1,s(this,G).current&&s(this,v).classList.add(s(this,G).current)};je=new WeakSet;Ws=function(){s(this,M).current=!0,s(this,dt).current=!0,s(this,j).current=!1,s(this,U).current&&s(this,v).classList.add(s(this,U).current)};ts=new WeakSet;Ms=function(){s(this,Q).current=!0,s(this,St).current=!0,s(this,J).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};es=new WeakSet;xs=function(){s(this,Q).current=!0,s(this,j).current=!0,s(this,dt).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};De=new WeakMap;de=new WeakMap;ht=new WeakSet;Vt=function(r){if(s(this,E)){r.previous&&s(this,v).classList.remove(r.previous),r.current&&s(this,v).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,v).classList.remove(r.previous),s(this,v).classList.add(r.current)):!r.current&&r.previous&&s(this,v).classList.remove(r.previous)};cs=new WeakSet;Ls=function(...r){r.forEach(e=>{e&&s(this,v).classList.remove(e)})};us=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,v).style.removeProperty(`--${e}`)})};Fe=new WeakSet;ss=function(){k(this,cs,Ls).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Ot).current,s(this,x).current),k(this,us,zs).call(this,s(this,at).current,s(this,lt).current,s(this,ct).current,s(this,ut).current,s(this,pt).current)};Re=new WeakMap;exports.ScrollSegmentElement=ni([wt.define("e-scroll-segment")],exports.ScrollSegmentElement);
|
|
1
|
+
"use strict";var ps=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(ps(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(ps(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ct=require("../Store-BQGNOHlY.cjs"),Os=require("../Derived-BZtlW0bB.cjs"),is=require("../browser-CpzFX2xg.cjs"),gt=require("../layout-8ryRAMGJ.cjs"),rs=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const ge=require("../order/index.cjs"),ms=require("../Damped-CbWlWAbx.cjs"),ye=require("../controls/index.cjs"),wt=require("../custom-element/index.cjs"),re=require("../window-resizer/index.cjs"),qt=require("../scroll-entries/index.cjs"),A=require("../tags-CueX-JLX.cjs"),ns=require("../createStylesheet-C8aQQ4hd.cjs"),fs=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),$s=require("../Viewport-DhKPH5nw.cjs"),qe=require("../element-resizer/index.cjs"),Ds=require("../gestures-DHLrn6Q8.cjs"),Ss=require("../theme/index.cjs"),Fs=require("../dom-JBOkFLTh.cjs"),gs=require("../function-MthRj-GJ.cjs");var Rs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Ts=(r,e,i,n)=>{for(var h=n>1?void 0:n?qs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Rs(e,i,h),h},hs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(hs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},b=(r,e,i,n)=>(hs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(hs(r,e,"access private method"),i),d,R,st,X,it,_t,yt,Z,T,Bt,At,It,Ht,oe,ot,Gt,Pt,Ut,Nt,g,Te,u,Pe,Ee,W,_,B,Y,$t,ft,$,P,ae,Et,ne,he,te,ve,Dt,ee,Be,os,Ae,as,ke,Ue,We,Ne,I,He,Ke,ws,le,Me,xe,Ze,me,Ie,Je,bs,w,y,Rt,tt,vt;class Bs{constructor(e,i){V(this,w,void 0);V(this,y,void 0);V(this,Rt,0);V(this,tt,0);V(this,vt,null);F(this,w,e),F(this,y,i),qt.scrollEntries.register(o(this,w))}get size(){return o(this,Rt)}get position(){return o(this,tt)}destroy(){qt.scrollEntries.unregister(o(this,w)),o(this,w).style.transform="",this.mark(null)}setSize(e){e?(o(this,w).style.setProperty("--size",e+"px"),o(this,y).axisCSSProperty.current==="x"?(o(this,w).style.width=e+"px",o(this,w).style.height=""):(o(this,w).style.height=e+"px",o(this,w).style.width="")):(o(this,w).style.width="",o(this,w).style.height="",o(this,w).style.removeProperty("--size"))}resize(){F(this,Rt,o(this,y).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),F(this,tt,o(this,y).vertical?gt.getCumulativeOffsetTop(o(this,w)):gt.getCumulativeOffsetLeft(o(this,w))),F(this,tt,o(this,tt)-o(this,y).contentPosition)}transform(){let e=0;const i=o(this,y).viewportSize*o(this,y).sectionDistanceScaleCSSProperty.current;o(this,y).infiniteCSSProperty.current&&o(this,y).overscroll&&o(this,tt)+o(this,Rt)<o(this,y).currentScrollValue&&(e=o(this,y).distance*-1-o(this,y).gap),qt.scrollEntries.update(o(this,w),o(this,y).axisCSSProperty.current,e);const n=o(this,y).currentScrollValue+e,h=o(this,tt)-o(this,y).viewportSize-i,c=o(this,tt)+o(this,Rt)+i,f=rs.clamp(n,h,c);o(this,y).vertical?o(this,w).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:o(this,w).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}mark(e){o(this,vt)!==e&&(o(this,vt)&&o(this,w).classList.remove(o(this,vt)),e&&o(this,w).classList.add(e),F(this,vt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,vt)}})))}}w=new WeakMap,y=new WeakMap,Rt=new WeakMap,tt=new WeakMap,vt=new WeakMap;const As=ns.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(){super(),l(this,te),l(this,Dt),l(this,Be),l(this,Ae),l(this,ke),l(this,We),l(this,Ke),l(this,xe),l(this,me),l(this,Je),l(this,d,null),l(this,R,new p.CSSProperty(this,"--axis","y")),l(this,st,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,X,new p.CSSProperty(this,"--split",!1)),l(this,it,new p.CSSProperty(this,"--sectional",!1)),l(this,_t,new p.CSSProperty(this,"--auto-size",!1)),l(this,yt,new p.CSSProperty(this,"--wheel-max-delta",!1)),l(this,Z,new p.CSSProperty(this,"--sections-in-view",1)),l(this,T,new p.CSSProperty(this,"--infinite",!1)),l(this,Bt,new p.CSSProperty(this,"--damping",20)),l(this,At,new p.CSSProperty(this,"--mass",0)),l(this,It,new p.CSSProperty(this,"--stiffness",0)),l(this,Ht,new p.CSSProperty(this,"--mouse-drag",!1)),l(this,oe,new p.CSSProperty(this,"--section-distance-scale",.5)),l(this,ot,new p.CSSProperty(this,"--autoplay",0)),l(this,Gt,new p.CSSProperty(this,"--autoplay-pause-duration",0)),l(this,Pt,new p.CSSProperty(this,"--autoplay-user-direction",!1)),l(this,Ut,new p.CSSProperty(this,"--disabled",!1)),l(this,Nt,new p.CSSProperty(this,"--hibernated",!1)),l(this,g,null),l(this,Te,null),l(this,u,[]),l(this,Pe,0),l(this,Ee,0),l(this,W,0),l(this,_,0),l(this,B,0),l(this,Y,null),l(this,$t,null),l(this,ft,null),l(this,$,null),l(this,P,new Ct.Store(0)),l(this,ae,0),l(this,Et,0),l(this,ne,!0),l(this,he,!0),l(this,I,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,_)||0,i=t(this,P).current;if(b(this,Pe,this.vertical?gt.getCumulativeOffsetTop(this):gt.getCumulativeOffsetLeft(this)),b(this,Ee,this.vertical?gt.getCumulativeOffsetTop(t(this,g)):gt.getCumulativeOffsetLeft(t(this,g))),b(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).rowGap)):b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).columnGap)),t(this,_t).current&&t(this,u).length){const n=t(this,Z).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,u).forEach(c=>{c.setSize(h)})}else t(this,u).forEach(n=>{n.setSize()});if(t(this,u).forEach(n=>{n.resize()}),t(this,st).current){b(this,_,t(this,W)*t(this,st).current);const n=t(this,_)+t(this,W);this.vertical?(t(this,g).style.width=n+"px",t(this,g).style.height="100%"):(t(this,g).style.height=n+"px",t(this,g).style.width="100%")}else this.vertical?(t(this,g).style.width="100%",t(this,g).style.height="max-content",b(this,_,t(this,g).offsetHeight-t(this,W))):(t(this,g).style.width="max-content",t(this,g).style.height="100%",b(this,_,t(this,g).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);b(this,_,t(this,_)+h),t(this,d).max=t(this,_)}if(t(this,T).current&&t(this,u).length){const n=t(this,u)[t(this,u).length-1],h=n.position+n.size-t(this,W),c=t(this,_)-h;b(this,Et,n.position+n.size+c)}else b(this,Et,t(this,_));if(t(this,it).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,_),{equalize:!0})}),l(this,He,()=>{const e=this.currentScrollValue;if(b(this,ae,Math.max(0,e-t(this,_))),t(this,u).length){let i=0;for(let n=0;n<t(this,u).length;n++){const h=t(this,u)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,g).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,g).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;qt.scrollEntries.update(this,t(this,R).current,e)}),l(this,le,(e,i)=>{t(this,$).pauseAndContinue(t(this,Gt).current),t(this,Pt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,Me).call(this,e,i)}),l(this,Me,(e,i)=>{if(!(e==="drag"&&!$s.device.isMobile&&!t(this,Ht).current))if(t(this,it).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),is.isBrowser&&(b(this,d,new ms.Damped(0,{damping:.01,min:0,order:ge.TICK_ORDER.SCROLL})),this.openShadow(As),A.element(this,{tabIndex:0,children:[A.div({class:"static",children:[A.slot({name:"static"})]}),A.div({class:"content",children:[A.slot({ref:e=>b(this,Te,e)})],style:{flexDirection:new Os.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>b(this,g,e)})]}),b(this,Y,new ye.WheelControls({element:t(this,g)})),t(this,Y).changeEvent.subscribe(t(this,le)),b(this,$t,new ye.KeyboardControls({element:this})),t(this,$t).changeEvent.subscribe(t(this,le)),b(this,ft,new ye.DragControls({element:t(this,g)})),t(this,ft).changeEvent.subscribe(t(this,le)),b(this,$,new ye.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,Me)),t(this,R).subscribe(({current:e})=>{t(this,g).style.flexDirection=e==="x"?"row":"column",t(this,Y).axis=t(this,yt).current?"max":e,t(this,$t).dimension=e==="x"?"width":"height",t(this,ft).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,I).call(this)}),t(this,yt).subscribe(e=>{t(this,Y).axis=e.current?"max":t(this,R).current}),t(this,st).subscribe(()=>{this.isConnected&&t(this,I).call(this)}),t(this,X).subscribe(({current:e})=>{this.isConnected&&(e?C(this,te,ve).call(this):C(this,Dt,ee).call(this))}),t(this,it).subscribe(e=>{t(this,Y).debounce=e.current,t(this,ft).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,_t).subscribe(e=>{this.isConnected&&(t(this,I).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,Z).subscribe(e=>{this.isConnected&&(t(this,I).call(this),C(this,me,Ie).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,X).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,ae,0),t(this,d).max=t(this,_),t(this,d).min=0)}),t(this,Bt).subscribe(e=>{t(this,d).damping=e.current}),t(this,At).subscribe(e=>{t(this,d).mass=e.current}),t(this,It).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?C(this,Be,os).call(this):!e.current&&e.previous&&C(this,Ae,as).call(this)}),t(this,Nt).subscribe(e=>{e.current&&!e.previous?C(this,ke,Ue).call(this):!e.current&&e.previous&&C(this,We,Ne).call(this)}),t(this,ot).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Pt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,u).length&&C(this,me,Ie).call(this)}))}get damped(){return t(this,d)}get axisCSSProperty(){return t(this,R)}get pagesCSSProperty(){return t(this,st)}get splitCSSProperty(){return t(this,X)}get sectionalCSSProperty(){return t(this,it)}get autoSizeCSSProperty(){return t(this,_t)}get wheelMaxDeltaCSSProperty(){return t(this,yt)}get sectionsInViewCSSProperty(){return t(this,Z)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Bt)}get massCSSProperty(){return t(this,At)}get stiffnessCSSProperty(){return t(this,It)}get mouseDragCSSProperty(){return t(this,Ht)}get sectionDistanceScaleCSSProperty(){return t(this,oe)}get autoplayCSSProperty(){return t(this,ot)}get autoplayPauseDurationCSSProperty(){return t(this,Gt)}get autoplayUserDirectionCSSProperty(){return t(this,Pt)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Nt)}get currentScrollValue(){return C(this,xe,Ze).call(this,"current")}get targetScrollValue(){return C(this,xe,Ze).call(this,"target")}get contentElement(){return t(this,g)}get sections(){return t(this,u)}get position(){return t(this,Pe)}get contentPosition(){return t(this,Ee)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,_)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,u).length-t(this,Z).current}get distance(){return t(this,Et)}get infiniteDistance(){return t(this,T).current?t(this,Et)+t(this,B):t(this,Et)}get overscroll(){return t(this,ae)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,u).length)return;const n=t(this,P).current;C(this,Ke,ws).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,P).current];if(h&&c){let f=0;const _e=C(this,Je,bs).call(this),Vs=_e?this.targetScrollValue-_e.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,u).length-1?f=t(this,_)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,u).length-1&&n===0?f=c.position-(t(this,_)+t(this,W)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-Vs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,R).observe(),t(this,st).observe(),t(this,X).observe(),t(this,it).observe(),t(this,_t).observe(),t(this,yt).observe(),t(this,Z).observe(),t(this,T).observe(),t(this,Bt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,Ht).observe(),t(this,oe).observe(),t(this,ot).observe(),t(this,ot).observe(),t(this,Gt).observe(),t(this,Pt).observe(),t(this,Ut).observe(),t(this,Nt).observe(),C(this,We,Ne).call(this)}disconnectedCallback(){t(this,R).unobserve(),t(this,st).unobserve(),t(this,X).unobserve(),t(this,it).unobserve(),t(this,_t).unobserve(),t(this,yt).unobserve(),t(this,Z).unobserve(),t(this,T).unobserve(),t(this,Bt).unobserve(),t(this,At).unobserve(),t(this,It).unobserve(),t(this,Ht).unobserve(),t(this,oe).unobserve(),t(this,ot).unobserve(),t(this,Gt).unobserve(),t(this,Pt).unobserve(),t(this,Ut).unobserve(),t(this,Nt).unobserve(),C(this,ke,Ue).call(this)}};d=new WeakMap;R=new WeakMap;st=new WeakMap;X=new WeakMap;it=new WeakMap;_t=new WeakMap;yt=new WeakMap;Z=new WeakMap;T=new WeakMap;Bt=new WeakMap;At=new WeakMap;It=new WeakMap;Ht=new WeakMap;oe=new WeakMap;ot=new WeakMap;Gt=new WeakMap;Pt=new WeakMap;Ut=new WeakMap;Nt=new WeakMap;g=new WeakMap;Te=new WeakMap;u=new WeakMap;Pe=new WeakMap;Ee=new WeakMap;W=new WeakMap;_=new WeakMap;B=new WeakMap;Y=new WeakMap;$t=new WeakMap;ft=new WeakMap;$=new WeakMap;P=new WeakMap;ae=new WeakMap;Et=new WeakMap;ne=new WeakMap;he=new WeakMap;te=new WeakSet;ve=function(){C(this,Dt,ee).call(this),t(this,Te).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new Bs(r,this))}),t(this,g).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,I).call(this),C(this,me,Ie).call(this)};Dt=new WeakSet;ee=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Be=new WeakSet;os=function(){t(this,ne)||(b(this,ne,!0),t(this,d).unsubscribe(t(this,He)),t(this,d).unlistenAnimationFrame(),t(this,Y).disconnect(),t(this,$t).disconnect(),t(this,ft).disconnect(),t(this,$).disconnect())};Ae=new WeakSet;as=function(){t(this,ne)&&(b(this,ne,!1),t(this,d).subscribe(t(this,He)),t(this,Y).connect(),t(this,$t).connect(),t(this,ft).connect(),t(this,ot).current&&t(this,$).connect())};ke=new WeakSet;Ue=function(){t(this,he)||(b(this,he,!0),re.windowResizer.unsubscribe(t(this,I)),qe.elementResizer.unsubscribe(t(this,I)),t(this,d).reset(),C(this,Be,os).call(this),t(this,g).style.transform="",t(this,X).current&&C(this,Dt,ee).call(this),qt.scrollEntries.unregister(this))};We=new WeakSet;Ne=function(){t(this,he)&&(b(this,he,!1),t(this,X).current&&C(this,te,ve).call(this),qt.scrollEntries.register(this),re.windowResizer.subscribe(t(this,I),ge.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,I)),C(this,Ae,as).call(this))};I=new WeakMap;He=new WeakMap;Ke=new WeakSet;ws=function(r){t(this,T).current?(t(this,P).current=r%t(this,u).length,t(this,P).current=t(this,P).current<0?t(this,u).length+t(this,P).current:t(this,P).current):t(this,P).current=rs.clamp(r,0,this.limit)};le=new WeakMap;Me=new WeakMap;xe=new WeakSet;Ze=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,_)+t(this,W)+t(this,B));return e<0?t(this,_)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};me=new WeakSet;Ie=function(){if(t(this,u).length){const r=t(this,P).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end"),t(this,u).forEach((e,i)=>{const n=r-this.limit-1,h=r+t(this,Z).current,c=this.sections.length-h;i>=r&&i<h||i<=n?e.mark("current"):i>=h&&i<h+c/2||i<=n+t(this,Z).current?e.mark("next"):e.mark("previous")})}};Je=new WeakSet;bs=function(){let r=null,e=1/0;for(let i=0;i<t(this,u).length;i++){const n=Math.abs(t(this,u)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,u)[r]:null};exports.ScrollElement=Ts([wt.define("e-scroll")],exports.ScrollElement);var we;class Ge extends wt.CustomElement{constructor(){super(...arguments);V(this,we,null)}get scrollElement(){return o(this,we)}connectedCallback(){const i=Fs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,we,i):console.error(this,"e-scroll not found")}}we=new WeakMap;var Is=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Is(e,i,h),h},Cs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(Cs(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},bt=(r,e,i,n)=>(Cs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),ce,q,rt,nt,ue,pe,Kt,Le,ze,Ve;const Us=ns.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ss.aptechkaTheme.colorLight.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ss.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Ge{constructor(){super(),N(this,ce,null),N(this,q,null),N(this,rt,!1),N(this,nt,0),N(this,ue,0),N(this,pe,0),N(this,Kt,()=>{bt(this,rt,this.offsetWidth>this.offsetHeight);const e=S(this,rt)?this.offsetWidth:this.offsetHeight;bt(this,nt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),bt(this,nt,Math.max(S(this,nt),30)),S(this,rt)?(S(this,q).style.width=S(this,nt)+"px",S(this,q).style.height="100%"):(S(this,q).style.width="100%",S(this,q).style.height=S(this,nt)+"px"),bt(this,ue,e-S(this,nt)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Le,()=>{bt(this,pe,this.scrollElement.currentProgress*S(this,ue)),S(this,rt)?S(this,q).style.transform=`translate3d(${S(this,pe)}px, 0px, 0px)`:S(this,q).style.transform=`translate3d(0px, ${S(this,pe)}px, 0px)`}),N(this,ze,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,Ve,e=>{document.documentElement.classList.add("grabbing"),Ds.setupDrag(h=>{const c=S(this,rt)?h.x:h.y,f=this.scrollElement.distance/S(this,ue),_e=(c-n)*f;this.scrollElement.setPosition(i+_e)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,rt)?e.x:e.y}),is.isBrowser&&(this.openShadow(Us),A.element(this,{slot:"static","drag-dead-zone":"",children:[A.slot({ref:e=>bt(this,ce,e),children:A.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,q)}connectedCallback(){super.connectedCallback();const e=S(this,ce).assignedElements()[0]||S(this,ce).firstElementChild;bt(this,q,e),S(this,q).addEventListener("pointerdown",S(this,Ve)),re.windowResizer.subscribe(S(this,Kt),ge.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,S(this,Kt)),this.scrollElement.onScroll(S(this,Le)),this.scrollElement.axisCSSProperty.subscribe(S(this,ze))}disconnectedCallback(){S(this,q).removeEventListener("pointerdown",S(this,Ve)),re.windowResizer.unsubscribe(S(this,Kt)),qe.elementResizer.unsubscribe(S(this,Kt)),this.scrollElement.offScroll(S(this,Le)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,ze))}};ce=new WeakMap;q=new WeakMap;rt=new WeakMap;nt=new WeakMap;ue=new WeakMap;pe=new WeakMap;Kt=new WeakMap;Le=new WeakMap;ze=new WeakMap;Ve=new WeakMap;exports.ScrollbarElement=Gs([wt.define("e-scrollbar")],exports.ScrollbarElement);const Ns=ns.createStylesheet({button:{all:"inherit"}});class _s extends Ge{constructor(){super(),this.openShadow(Ns),is.isBrowser&&A.element(this,{children:[A.button({onClick:()=>{this.handleClick()},children:[A.slot()]})]})}}var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Ks(e,i,h),h};exports.ScrollSetButtonElement=class extends _s{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Js([wt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var Qs=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,Ys=(r,e,i,n)=>{for(var h=n>1?void 0:n?Xs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Qs(e,i,h),h};exports.ScrollStepButtonElement=class extends _s{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=Ys([wt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var js=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(r,e,i,n)=>{for(var h=n>1?void 0:n?ti(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&js(e,i,h),h},ys=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Tt=(r,e,i)=>(ys(r,e,"read from private field"),i?i.call(r):e.get(r)),ds=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},vs=(r,e,i,n)=>(ys(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),kt,fe,et,mt,se,be,Ce,ie;class si{constructor(e,i,n){V(this,et,void 0);V(this,mt,void 0);V(this,se,void 0);V(this,be,void 0);V(this,Ce,()=>{o(this,mt).scrollToSection(o(this,se),o(this,be))});V(this,ie,()=>{o(this,et).classList.toggle("current",o(this,mt).counter.current===o(this,se))});F(this,et,document.createElement("button")),F(this,mt,e),F(this,be,n),F(this,se,i),o(this,et).addEventListener("click",o(this,Ce)),o(this,mt).counter.subscribe(o(this,ie)),o(this,ie).call(this)}get element(){return o(this,et)}destroy(){o(this,et).removeEventListener("click",o(this,Ce)),o(this,mt).counter.unsubscribe(o(this,ie)),o(this,et).remove()}}et=new WeakMap,mt=new WeakMap,se=new WeakMap,be=new WeakMap,Ce=new WeakMap,ie=new WeakMap;exports.ScrollBulletButtonsElement=class extends Ge{constructor(){super(...arguments),ds(this,kt,[]),ds(this,fe,gs.debounce(()=>{Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new si(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Tt(this,kt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Tt(this,fe)),Tt(this,fe).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Tt(this,fe)),Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[])}};kt=new WeakMap;fe=new WeakMap;exports.ScrollBulletButtonsElement=ei([wt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ii=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ni=(r,e,i,n)=>{for(var h=n>1?void 0:n?ri(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&ii(e,i,h),h},ls=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(ls(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},m=(r,e,i,n)=>(ls(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(ls(r,e,"access private method"),i),Zt,Jt,Qt,Xt,Wt,Mt,xt,Lt,D,H,G,U,Ot,x,at,lt,ct,ut,pt,M,Q,J,St,dt,j,Oe,v,Yt,jt,$e,L,zt,O,z,K,Se,Ft,E,Qe,Ps,Xe,Es,Ye,ks,je,Ws,ts,Ms,es,xs,De,de,ht,Vt,cs,Ls,us,zs,Fe,ss,Re;exports.ScrollSegmentElement=class extends Ge{constructor(){super(),a(this,Qe),a(this,Xe),a(this,Ye),a(this,je),a(this,ts),a(this,es),a(this,ht),a(this,cs),a(this,us),a(this,Fe),a(this,Zt,new p.CSSProperty(this,"--damping",20)),a(this,Jt,new p.CSSProperty(this,"--mass",0)),a(this,Qt,new p.CSSProperty(this,"--stiffness",0)),a(this,Xt,new p.CSSProperty(this,"--target","")),a(this,Wt,new p.CSSProperty(this,"--disabled",!1)),a(this,Mt,new p.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),a(this,xt,new p.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),a(this,Lt,new p.CSSProperty(this,"--capture-once",!1)),a(this,D,new p.CSSProperty(this,"--captured","")),a(this,H,new p.CSSProperty(this,"--released","")),a(this,G,new p.CSSProperty(this,"--captured-from-start","")),a(this,U,new p.CSSProperty(this,"--captured-from-finish","")),a(this,Ot,new p.CSSProperty(this,"--released-from-start","")),a(this,x,new p.CSSProperty(this,"--released-from-finish","")),a(this,at,new p.CSSProperty(this,"--passed-var","")),a(this,lt,new p.CSSProperty(this,"--progress-var","")),a(this,ct,new p.CSSProperty(this,"--distance-var","")),a(this,ut,new p.CSSProperty(this,"--start-var","")),a(this,pt,new p.CSSProperty(this,"--finish-var","")),a(this,M,new Ct.Store(!1)),a(this,Q,new Ct.Store(!1)),a(this,J,new Ct.Store(!1)),a(this,St,new Ct.Store(!1)),a(this,dt,new Ct.Store(!1)),a(this,j,new Ct.Store(!1)),a(this,Oe,[]),a(this,v,this),a(this,Yt,0),a(this,jt,0),a(this,$e,0),a(this,L,new ms.Damped(0,{order:ge.TICK_ORDER.SCROLL-1,min:0,max:1})),a(this,zt,0),a(this,O,0),a(this,z,0),a(this,K,0),a(this,Se,!1),a(this,Ft,!1),a(this,E,!0),a(this,De,()=>{s(this,E)||(this.resize(),s(this,de).call(this))}),a(this,de,()=>{!s(this,E)&&s(this,Se)&&this.tick()}),a(this,Re,gs.debounce(()=>{const e=qt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),m(this,Oe,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Mt)}get startOffsetCSSProperty(){return s(this,xt)}get captureOnceCSSProperty(){return s(this,Lt)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,Ot)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,at)}get progressVarCSSProperty(){return s(this,lt)}get distanceVarCSSProperty(){return s(this,ct)}get startVarCSSProperty(){return s(this,ut)}get finishVarCSSProperty(){return s(this,pt)}get disabledCSSProperty(){return s(this,Wt)}get dampingCSSProperty(){return s(this,Zt)}get massCSSProperty(){return s(this,Jt)}get stiffnessCSSProperty(){return s(this,Qt)}get targetCSSProperty(){return s(this,Xt)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,Q)}get isCapturedFromStart(){return s(this,J)}get isReleasedFromStart(){return s(this,St)}get isCapturedFromFinish(){return s(this,dt)}get isReleasedFromFinish(){return s(this,j)}get directionPosition(){return s(this,Yt)}get directionSize(){return s(this,jt)}get passed(){return s(this,L)}get progress(){return s(this,zt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,Ft)}get isDisabled(){return s(this,E)}resize(){m(this,jt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),m(this,Yt,this.scrollElement.vertical?gt.getCumulativeOffsetTop(this,this.scrollElement):gt.getCumulativeOffsetLeft(this,this.scrollElement)),m(this,O,this.getStart()),m(this,z,this.getDistance()),m(this,O,s(this,O)+s(this,xt).current),m(this,z,s(this,z)+s(this,Mt).current),m(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,Q).current&&(s(this,M).current=!0),this.setVar(s(this,ut).current,s(this,O)),this.setVar(s(this,pt).current,s(this,K)),this.setVar(s(this,ct).current,s(this,z)),s(this,L).max=s(this,z),m(this,Se,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Oe).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,J).current||k(this,Ye,ks).call(this):s(this,J).current&&!s(this,St).current&&k(this,ts,Ms).call(this),i<s(this,K)?s(this,j).current&&!s(this,dt).current&&k(this,je,Ws).call(this):s(this,J).current&&!s(this,j).current&&k(this,es,xs).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,Qe,Ps).call(this):s(this,M).current&&(s(this,L).set(rs.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,Xe,Es).call(this)),s(this,Ft)&&s(this,Lt).current&&(s(this,D).current&&s(this,v).classList.add(s(this,D).current),m(this,E,!0))}disable(){this.style.cssText="",m(this,Yt,0),m(this,jt,0),s(this,L).reset(),m(this,zt,0),m(this,O,0),m(this,z,0),m(this,K,0),m(this,Se,!1),s(this,M).current=!1,s(this,Q).current=!1,s(this,J).current=!1,s(this,St).current=!1,s(this,dt).current=!1,s(this,j).current=!1,m(this,Ft,!1),m(this,E,!0),k(this,Fe,ss).call(this)}enable(){m(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,Zt).observe(),s(this,Jt).observe(),s(this,Qt).observe(),s(this,Xt).observe(),s(this,Wt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Ot).observe(),s(this,x).observe(),s(this,at).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,pt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Re)),s(this,Re).call(this),s(this,Wt).current||this.enable(),s(this,Zt).subscribe(i=>{s(this,L).damping=i.current}),s(this,Jt).subscribe(i=>{s(this,L).mass=i.current}),s(this,Qt).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,Xt).subscribe(i=>{i.previous&&k(this,Fe,ss).call(this),i.current?i.current==="parent"?m(this,v,this.parentElement||this):m(this,v,document.querySelector(i.current)||this):m(this,v,this)}),s(this,Wt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,xt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Mt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,G).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,U).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,H).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Ot).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,x).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Lt).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,at).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,lt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,zt)))}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,ct).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{m(this,zt,s(this,L).current/s(this,z)||0),this.setVar(s(this,at).current,s(this,L).current.toFixed(6)),this.setVar(s(this,lt).current,s(this,zt).toFixed(6))}),re.windowResizer.subscribe(s(this,De),ge.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,de)),e=!0}disconnectedCallback(){re.windowResizer.unsubscribe(s(this,De)),this.scrollElement.offScroll(s(this,de)),s(this,Zt).close(),s(this,Jt).close(),s(this,Qt).close(),s(this,Xt).close(),s(this,Wt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Ot).close(),s(this,x).close(),s(this,at).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,pt).close(),s(this,M).close(),s(this,Q).close(),s(this,J).close(),s(this,St).close(),s(this,dt).close(),s(this,j).close(),this.disable()}removeVar(e){e&&s(this,v).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,v).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,jt)+s(this,$e)}getStart(){return s(this,Yt)-s(this,$e)}};Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Ot=new WeakMap;x=new WeakMap;at=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;M=new WeakMap;Q=new WeakMap;J=new WeakMap;St=new WeakMap;dt=new WeakMap;j=new WeakMap;Oe=new WeakMap;v=new WeakMap;Yt=new WeakMap;jt=new WeakMap;$e=new WeakMap;L=new WeakMap;zt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;Se=new WeakMap;Ft=new WeakMap;E=new WeakMap;Qe=new WeakSet;Ps=function(){s(this,M).current=!0,s(this,Q).current=!1,m(this,Ft,!0),s(this,H).current&&s(this,v).classList.remove(s(this,H).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,D).current&&s(this,v).classList.add(s(this,D).current)};Xe=new WeakSet;Es=function(){s(this,Q).current=!0,s(this,M).current=!1,m(this,Ft,!0),s(this,D).current&&s(this,v).classList.remove(s(this,D).current),s(this,G).current&&s(this,v).classList.remove(s(this,G).current),s(this,U).current&&s(this,v).classList.remove(s(this,U).current),s(this,H).current&&s(this,v).classList.add(s(this,H).current)};Ye=new WeakSet;ks=function(){s(this,M).current=!0,s(this,J).current=!0,s(this,St).current=!1,s(this,G).current&&s(this,v).classList.add(s(this,G).current)};je=new WeakSet;Ws=function(){s(this,M).current=!0,s(this,dt).current=!0,s(this,j).current=!1,s(this,U).current&&s(this,v).classList.add(s(this,U).current)};ts=new WeakSet;Ms=function(){s(this,Q).current=!0,s(this,St).current=!0,s(this,J).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};es=new WeakSet;xs=function(){s(this,Q).current=!0,s(this,j).current=!0,s(this,dt).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};De=new WeakMap;de=new WeakMap;ht=new WeakSet;Vt=function(r){if(s(this,E)){r.previous&&s(this,v).classList.remove(r.previous),r.current&&s(this,v).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,v).classList.remove(r.previous),s(this,v).classList.add(r.current)):!r.current&&r.previous&&s(this,v).classList.remove(r.previous)};cs=new WeakSet;Ls=function(...r){r.forEach(e=>{e&&s(this,v).classList.remove(e)})};us=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,v).style.removeProperty(`--${e}`)})};Fe=new WeakSet;ss=function(){k(this,cs,Ls).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Ot).current,s(this,x).current),k(this,us,zs).call(this,s(this,at).current,s(this,lt).current,s(this,ct).current,s(this,ut).current,s(this,pt).current)};Re=new WeakMap;exports.ScrollSegmentElement=ni([wt.define("e-scroll-segment")],exports.ScrollSegmentElement);
|
package/lib/scroll/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import { e as hs, D as qe, ay as De, p as Zs } from "../tags-BoPv9fDr.js";
|
|
|
24
24
|
import { c as ns } from "../createStylesheet-KMRQhSa-.js";
|
|
25
25
|
import { cssUnitParser as ds } from "../css-unit-parser/index.js";
|
|
26
26
|
import { CSSProperty as u } from "../css-property/index.js";
|
|
27
|
-
import { d as Js } from "../Viewport-
|
|
27
|
+
import { d as Js } from "../Viewport-CCDNxaDg.js";
|
|
28
28
|
import { elementResizer as Oe } from "../element-resizer/index.js";
|
|
29
29
|
import { s as Qs } from "../gestures-D2Fdra_G.js";
|
|
30
30
|
import { aptechkaTheme as Ss } from "../theme/index.js";
|
package/lib/source/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var L=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(L(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},u=(i,r,t,n)=>(L(i,r,"write to private field"),n?n.call(i,t):r.set(i,t),t);var y=(i,r,t)=>(L(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../SourceManager-
|
|
1
|
+
"use strict";var L=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(L(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},u=(i,r,t,n)=>(L(i,r,"write to private field"),n?n.call(i,t):r.set(i,t),t);var y=(i,r,t)=>(L(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../SourceManager-BFSCX4Q8.cjs"),k=require("../custom-element/index.cjs"),C=require("../loading/index.cjs"),q=require("../class-linked-status/index.cjs"),x=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");let M=0;var h,s,c,f,l,d,o,m,S,w,b,p,E;class A extends k.CustomElement{constructor(){super();a(this,S);a(this,h,null);a(this,s,null);a(this,c,!1);a(this,f,!1);a(this,l,!1);a(this,d,"");a(this,o,new q.ClassLinkedStatus(this,{loading:!1,loaded:!1,error:!1}));a(this,m,null);a(this,b,t=>{const n=t[0];e(this,l)&&!e(this,f)&&n.isIntersecting&&(e(this,h).current&&e(this,h).current!==e(this,h).previous&&y(this,S,w).call(this,e(this,h).current),u(this,f,!0)),n.isIntersecting?this.dispatchEvent(new CustomEvent("sourceCapture")):this.dispatchEvent(new CustomEvent("sourceRelease"))});a(this,p,()=>{e(this,o).set("loaded",!0),e(this,o).set("error",!1),e(this,o).set("loading",!1),!e(this,l)&&!e(this,c)&&C.loading.setLoaded(e(this,d),1),u(this,c,!0)});a(this,E,t=>{e(this,o).set("loaded",!1),e(this,o).set("error",!0),e(this,o).set("loading",!1),!e(this,l)&&!e(this,c)&&C.loading.setError(e(this,d),t),u(this,c,!0)});x.isBrowser&&(u(this,d,`source-consumer-${++M}`),u(this,m,new IntersectionObserver(e(this,b))))}get consumerElement(){return e(this,s)}get status(){return e(this,o)}get isLazy(){return e(this,l)}connectedCallback(){const t=this.getAttribute("srcset");t&&(u(this,s,this.createConsumer()),e(this,s).style.cssText=`
|
|
2
2
|
display: block;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
package/lib/source/index.js
CHANGED
|
@@ -8,8 +8,8 @@ var t = (i, r, s) => (E(i, r, "read from private field"), s ? s.call(i) : r.get(
|
|
|
8
8
|
r instanceof WeakSet ? r.add(i) : r.set(i, s);
|
|
9
9
|
}, u = (i, r, s, o) => (E(i, r, "write to private field"), o ? o.call(i, s) : r.set(i, s), s);
|
|
10
10
|
var C = (i, r, s) => (E(i, r, "access private method"), s);
|
|
11
|
-
import { S as y } from "../SourceManager-
|
|
12
|
-
import { a as V, b as $ } from "../SourceManager-
|
|
11
|
+
import { S as y } from "../SourceManager-DmXmmA6z.js";
|
|
12
|
+
import { a as V, b as $ } from "../SourceManager-DmXmmA6z.js";
|
|
13
13
|
import { CustomElement as k } from "../custom-element/index.js";
|
|
14
14
|
import { loading as L } from "../loading/index.js";
|
|
15
15
|
import { ClassLinkedStatus as x } from "../class-linked-status/index.js";
|
package/lib/tweaker/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ce=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var u=(t,e,r)=>(ce(t,e,"read from private field"),r?r.call(t):e.get(t)),q=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},$=(t,e,r,n)=>(ce(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);const we=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const v=require("../custom-element/index.cjs"),d=require("../Store-BQGNOHlY.cjs"),me=require("../file-EevnUtRj.cjs"),ke=require("../function-MthRj-GJ.cjs"),h=require("../tags-CueX-JLX.cjs"),m=require("../createStylesheet-C8aQQ4hd.cjs"),be=require("../Viewport-_WllZTJ0.cjs"),s=require("../theme/index.cjs"),_e=require("../accordion/index.cjs"),Se=require("../index-nxoux28n.cjs"),ye=require("../events-Crwi8fz6.cjs");require("../checkbox/index.cjs");const Te=require("../math-GDWEqu7y.cjs"),de='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',pe='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',Ce='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',xe='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';var x,w;class $e{constructor(){q(this,x,"");q(this,w,[]);$(this,x,d.storeRegistry.projectName+"-studio")}openPanel(e){u(this,w).includes(e)||u(this,w).push(e)}closePanel(e){$(this,w,u(this,w).filter(r=>r!==e))}isPanelOpened(e){return u(this,w).includes(e)}save(){const e={openedPanels:u(this,w)};localStorage.setItem(u(this,x),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(u(this,x));if(e)try{const r=JSON.parse(e);r.openedPanels&&$(this,w,r.openedPanels)}catch(r){console.error(r)}}}x=new WeakMap,w=new WeakMap;const C=new $e;var _;class F extends v.CustomElement{constructor(...r){super();q(this,_,void 0);$(this,_,r)}addStore(r){u(this,_).push(r)}get firstStore(){return u(this,_)[0]}get stores(){return u(this,_)}updateStores(r){u(this,_).forEach(n=>{n.current=r})}}_=new WeakMap;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Me=(t,e,r,n)=>{for(var a=n>1?void 0:n?Oe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Pe(e,r,a),a};const Ee=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:s.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:s.aptechkaTheme.colorLight.var}});let re=class extends F{constructor(...t){super(...t),this.openShadow(Ee),h.element(this,{children:[h.element("e-checkbox",{onChange:e=>{this.updateStores(e.currentTarget.checked)},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};re=Me([v.define("e-tweaker-boolean-manager")],re);var Re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,We=(t,e,r,n)=>{for(var a=n>1?void 0:n?De(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Re(e,r,a),a};const Le=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:s.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:s.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:s.aptechkaTheme.borderRadius.var,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.93)`}});let ae=class extends F{constructor(...t){super(...t),this.openShadow(Le),h.element(this,{children:[h.input({type:"color",value:this.firstStore,onInput:e=>{this.updateStores(e.currentTarget.value)}})]})}};ae=We([v.define("e-tweaker-color-manager")],ae);var Ie=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ae=(t,e,r,n)=>{for(var a=n>1?void 0:n?Fe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ie(e,r,a),a};const qe=m.createStylesheet({a:{color:"inherit"}});let ne=class extends F{constructor(...t){var e,r;super(...t),this.openShadow(qe),h.element(this,{children:[h.a({href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}};ne=Ae([v.define("e-tweaker-link-manager")],ne);var ze=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,He=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ne(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ze(e,r,a),a},Ze=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},j=(t,e,r)=>(Ze(t,e,"read from private field"),r?r.call(t):e.get(t)),Ke=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P;const Ge=m.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:s.aptechkaTheme.fontSizeSmall.var},".text-input":{height:s.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${s.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var}});let Q=class extends F{constructor(...t){super(...t),Ke(this,P,new d.Store([])),this.openShadow(Ge),h.element(this,{children:[h.input({class:"text-input",type:"string",value:this.firstStore,onChange:e=>{this.updateStores(e.currentTarget.value)}}),j(this,P)]})}appendContent(t){j(this,P).current=[...j(this,P).current,t]}};P=new WeakMap;Q=He([v.define("e-tweaker-string-manager")],Q);var Ve=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=(t,e,r,n)=>{for(var a=n>1?void 0:n?Je(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ve(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},b=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ee=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,M,E,H;let U=class extends Q{constructor(...t){var e,r,n,a,o,i;super(...t),z(this,O,void 0),z(this,M,void 0),z(this,E,void 0),z(this,H,k=>{const A=typeof k=="string"?parseFloat(k)||this.min:k,fe=Te.clamp(A,b(this,M),b(this,E));return this.toFixed(fe)}),ee(this,M,((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),ee(this,E,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),ee(this,O,((i=(o=this.firstStore.passport)==null?void 0:o.manager)==null?void 0:i.step)||.01)}get min(){return b(this,M)}get max(){return b(this,E)}get step(){return b(this,O)}toFixed(t){var r;const e=((r=b(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.firstStore.addMiddleware(b(this,H))}disconnectedCallback(){this.firstStore.removeMiddleware(b(this,H))}};O=new WeakMap;M=new WeakMap;E=new WeakMap;H=new WeakMap;U=Ye([v.define("e-tweaker-number-manager")],U);var Be=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var a=n>1?void 0:n?Qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Be(e,r,a),a};const Xe=m.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:s.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${s.aptechkaTheme.heightInput.var} * 0.7)`,width:s.aptechkaTheme.borderRadius.var,borderRadius:s.aptechkaTheme.borderRadius.var,backgroundColor:s.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:s.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:s.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ie=class extends U{constructor(...t){super(...t),this.addStylesheet(Xe),this.appendContent(h.input({class:"range-input",type:"range",min:this.min,max:this.max,step:this.step,value:this.firstStore,onInput:e=>{this.updateStores(parseFloat(e.currentTarget.value))}}))}};ie=Ue([v.define("e-tweaker-range-manager")],ie);var je=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=(t,e,r,n)=>{for(var a=n>1?void 0:n?et(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&je(e,r,a),a};const rt=m.createStylesheet({"e-select":{width:"100%","--arrow-color":s.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:s.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:s.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let se=class extends F{constructor(...t){var r,n;super(...t),this.openShadow(rt);const e=((n=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];h.element(this,{children:h.element("e-select",{value:this.firstStore,onChange:a=>{this.updateStores(a.currentTarget.value)},lightChildren:[h.element("e-select-head",{lightChildren:[h.span({"data-value-holder":""})]}),...e.map((a,o)=>h.element("e-select-option",{lightChildren:a,default:o===0?!0:null}))]})})}};se=tt([v.define("e-tweaker-select-manager")],se);const at={boolean:re,color:ae,link:ne,number:U,range:ie,select:se,string:Q};var nt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,st=(t,e,r,n)=>{for(var a=n>1?void 0:n?it(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&nt(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,R,D,W,L,Z,K;const ot=m.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.4fr 1fr",alignItems:"center",color:s.aptechkaTheme.colorLight.var,gap:s.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:s.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:s.aptechkaTheme.colorLight.var,transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:s.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let X=class extends v.CustomElement{constructor(t){var r,n,a,o;super(),S(this,g,[]),S(this,R,void 0),S(this,D,void 0),S(this,W,!1),S(this,L,void 0),S(this,Z,()=>{d.activeStores.current.find(i=>l(this,g).includes(i))||this.remove()}),S(this,K,i=>{l(this,W)&&((i.metaKey||i.ctrlKey)&&i.code==="KeyC"?navigator.clipboard.writeText(l(this,g)[0].current):(i.metaKey||i.ctrlKey)&&i.code==="KeyR"&&(l(this,g).forEach(k=>{k.reset()}),i.preventDefault()))}),y(this,g,[t.store]),y(this,R,t.store.passport.name),y(this,D,l(this,R).split(".").slice(-1).toString());const e=((n=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";y(this,L,new at[e](l(this,g)[0])),this.openShadow(ot),h.element(this,{class:{disabled:((o=(a=t.store.passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},onPointerleave:()=>{y(this,W,!1)},onPointerenter:()=>{y(this,W,!0)},children:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,onClick:()=>{navigator.clipboard.writeText(l(this,g)[0].current)}}),h.button({class:"head-button",children:de,onClick:()=>{l(this,g).forEach(i=>{i.reset()})}})]})]}),l(this,L)]})}get key(){return l(this,R)}get name(){return l(this,D)}get stores(){return l(this,g)}addStore(t){l(this,L).addStore(t)}connectedCallback(){d.activeStores.subscribe(l(this,Z)),addEventListener("keydown",l(this,K)),ye.dispatchSizeChangeEvent(this)}disconnectedCallback(){d.activeStores.unsubscribe(l(this,Z)),removeEventListener("keydown",l(this,K))}};g=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;L=new WeakMap;Z=new WeakMap;K=new WeakMap;X=st([v.define("e-tweaker-field")],X);var ht=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ct(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ht(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),T=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},te=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),f,G,p,V,J,oe;const dt=m.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:s.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:s.aptechkaTheme.gapMedium.var,paddingRight:s.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:s.aptechkaTheme.colorDarkAux.var,borderRadius:s.aptechkaTheme.borderRadius.var},".name":{fontSize:s.aptechkaTheme.fontSizeLarge.var,color:s.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:s.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:s.aptechkaTheme.gapLarge.var,display:"grid",gap:s.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:s.aptechkaTheme.colorLight.var,transition:`transform ${s.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let I=class extends _e.AccordionElement{constructor(t){super(),T(this,f,void 0),T(this,G,new d.Store(null)),T(this,p,new d.Store([])),T(this,V,void 0),T(this,J,null),T(this,oe,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,p).current=c(this,p).current.filter(a=>!r.includes(a)),c(this,f)&&!c(this,p).current.length&&!n.length&&this.remove()}),this.openShadow(dt),te(this,f,t.key),te(this,V,new MutationObserver(c(this,oe))),h.element(this,{onAccordionItemToggle:e=>{e.stopPropagation(),e.detail.opened?C.openPanel(c(this,f)):C.closePanel(c(this,f))},children:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,f)?h.div({class:"name",children:[c(this,f).split(".").slice(-1).toString()]}):null,c(this,G),h.element(Se.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,p),ref:e=>te(this,J,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,f)}get head(){return c(this,G)}get content(){return c(this,p)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{C.isPanelOpened(c(this,f))&&this.openAll({skipTransition:!0})},50),c(this,V).observe(c(this,J),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,p).current.find(o=>o.key===n);a instanceof I?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,p).current=[...c(this,p).current,new I({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=c(this,p).current.find(r=>r.key===t.store.passport.name);e instanceof X?e.addStore(t.store):c(this,p).current=[...c(this,p).current,new X({store:t.store})]}}};f=new WeakMap;G=new WeakMap;p=new WeakMap;V=new WeakMap;J=new WeakMap;oe=new WeakMap;I=lt([v.define("e-tweaker-folder")],I);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ut(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&pt(e,r,a),a},gt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},N=(t,e,r)=>(gt(t,e,"read from private field"),r?r.call(t):e.get(t)),le=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Y,B;const ft=m.createStylesheet({":host":{fontFamily:"sans-serif",position:"absolute",top:s.aptechkaTheme.tweakerOffset.var,right:s.aptechkaTheme.tweakerOffset.var,width:s.aptechkaTheme.tweakerWidth.var,backgroundColor:s.aptechkaTheme.colorDark.var,borderRadius:s.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"fill",transitionDuration:s.aptechkaTheme.durationShort.var},".tweaker-button:hover":{fill:s.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
|
|
1
|
+
"use strict";var ce=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var u=(t,e,r)=>(ce(t,e,"read from private field"),r?r.call(t):e.get(t)),q=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},$=(t,e,r,n)=>(ce(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);const we=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const v=require("../custom-element/index.cjs"),d=require("../Store-BQGNOHlY.cjs"),me=require("../file-EevnUtRj.cjs"),ke=require("../function-MthRj-GJ.cjs"),h=require("../tags-CueX-JLX.cjs"),m=require("../createStylesheet-C8aQQ4hd.cjs"),be=require("../Viewport-DhKPH5nw.cjs"),s=require("../theme/index.cjs"),_e=require("../accordion/index.cjs"),Se=require("../index-nxoux28n.cjs"),ye=require("../events-Crwi8fz6.cjs");require("../checkbox/index.cjs");const Te=require("../math-GDWEqu7y.cjs"),de='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',pe='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',Ce='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',xe='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';var x,w;class $e{constructor(){q(this,x,"");q(this,w,[]);$(this,x,d.storeRegistry.projectName+"-studio")}openPanel(e){u(this,w).includes(e)||u(this,w).push(e)}closePanel(e){$(this,w,u(this,w).filter(r=>r!==e))}isPanelOpened(e){return u(this,w).includes(e)}save(){const e={openedPanels:u(this,w)};localStorage.setItem(u(this,x),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(u(this,x));if(e)try{const r=JSON.parse(e);r.openedPanels&&$(this,w,r.openedPanels)}catch(r){console.error(r)}}}x=new WeakMap,w=new WeakMap;const C=new $e;var _;class F extends v.CustomElement{constructor(...r){super();q(this,_,void 0);$(this,_,r)}addStore(r){u(this,_).push(r)}get firstStore(){return u(this,_)[0]}get stores(){return u(this,_)}updateStores(r){u(this,_).forEach(n=>{n.current=r})}}_=new WeakMap;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Me=(t,e,r,n)=>{for(var a=n>1?void 0:n?Oe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Pe(e,r,a),a};const Ee=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:s.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:s.aptechkaTheme.colorLight.var}});let re=class extends F{constructor(...t){super(...t),this.openShadow(Ee),h.element(this,{children:[h.element("e-checkbox",{onChange:e=>{this.updateStores(e.currentTarget.checked)},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};re=Me([v.define("e-tweaker-boolean-manager")],re);var Re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,We=(t,e,r,n)=>{for(var a=n>1?void 0:n?De(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Re(e,r,a),a};const Le=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:s.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:s.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:s.aptechkaTheme.borderRadius.var,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.93)`}});let ae=class extends F{constructor(...t){super(...t),this.openShadow(Le),h.element(this,{children:[h.input({type:"color",value:this.firstStore,onInput:e=>{this.updateStores(e.currentTarget.value)}})]})}};ae=We([v.define("e-tweaker-color-manager")],ae);var Ie=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ae=(t,e,r,n)=>{for(var a=n>1?void 0:n?Fe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ie(e,r,a),a};const qe=m.createStylesheet({a:{color:"inherit"}});let ne=class extends F{constructor(...t){var e,r;super(...t),this.openShadow(qe),h.element(this,{children:[h.a({href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}};ne=Ae([v.define("e-tweaker-link-manager")],ne);var ze=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,He=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ne(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ze(e,r,a),a},Ze=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},j=(t,e,r)=>(Ze(t,e,"read from private field"),r?r.call(t):e.get(t)),Ke=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P;const Ge=m.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:s.aptechkaTheme.fontSizeSmall.var},".text-input":{height:s.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${s.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var}});let Q=class extends F{constructor(...t){super(...t),Ke(this,P,new d.Store([])),this.openShadow(Ge),h.element(this,{children:[h.input({class:"text-input",type:"string",value:this.firstStore,onChange:e=>{this.updateStores(e.currentTarget.value)}}),j(this,P)]})}appendContent(t){j(this,P).current=[...j(this,P).current,t]}};P=new WeakMap;Q=He([v.define("e-tweaker-string-manager")],Q);var Ve=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=(t,e,r,n)=>{for(var a=n>1?void 0:n?Je(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ve(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},b=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ee=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,M,E,H;let U=class extends Q{constructor(...t){var e,r,n,a,o,i;super(...t),z(this,O,void 0),z(this,M,void 0),z(this,E,void 0),z(this,H,k=>{const A=typeof k=="string"?parseFloat(k)||this.min:k,fe=Te.clamp(A,b(this,M),b(this,E));return this.toFixed(fe)}),ee(this,M,((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),ee(this,E,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),ee(this,O,((i=(o=this.firstStore.passport)==null?void 0:o.manager)==null?void 0:i.step)||.01)}get min(){return b(this,M)}get max(){return b(this,E)}get step(){return b(this,O)}toFixed(t){var r;const e=((r=b(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.firstStore.addMiddleware(b(this,H))}disconnectedCallback(){this.firstStore.removeMiddleware(b(this,H))}};O=new WeakMap;M=new WeakMap;E=new WeakMap;H=new WeakMap;U=Ye([v.define("e-tweaker-number-manager")],U);var Be=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var a=n>1?void 0:n?Qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Be(e,r,a),a};const Xe=m.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:s.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${s.aptechkaTheme.heightInput.var} * 0.7)`,width:s.aptechkaTheme.borderRadius.var,borderRadius:s.aptechkaTheme.borderRadius.var,backgroundColor:s.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:s.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:s.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ie=class extends U{constructor(...t){super(...t),this.addStylesheet(Xe),this.appendContent(h.input({class:"range-input",type:"range",min:this.min,max:this.max,step:this.step,value:this.firstStore,onInput:e=>{this.updateStores(parseFloat(e.currentTarget.value))}}))}};ie=Ue([v.define("e-tweaker-range-manager")],ie);var je=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=(t,e,r,n)=>{for(var a=n>1?void 0:n?et(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&je(e,r,a),a};const rt=m.createStylesheet({"e-select":{width:"100%","--arrow-color":s.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:s.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:s.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let se=class extends F{constructor(...t){var r,n;super(...t),this.openShadow(rt);const e=((n=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];h.element(this,{children:h.element("e-select",{value:this.firstStore,onChange:a=>{this.updateStores(a.currentTarget.value)},lightChildren:[h.element("e-select-head",{lightChildren:[h.span({"data-value-holder":""})]}),...e.map((a,o)=>h.element("e-select-option",{lightChildren:a,default:o===0?!0:null}))]})})}};se=tt([v.define("e-tweaker-select-manager")],se);const at={boolean:re,color:ae,link:ne,number:U,range:ie,select:se,string:Q};var nt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,st=(t,e,r,n)=>{for(var a=n>1?void 0:n?it(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&nt(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,R,D,W,L,Z,K;const ot=m.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.4fr 1fr",alignItems:"center",color:s.aptechkaTheme.colorLight.var,gap:s.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:s.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:s.aptechkaTheme.colorLight.var,transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:s.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let X=class extends v.CustomElement{constructor(t){var r,n,a,o;super(),S(this,g,[]),S(this,R,void 0),S(this,D,void 0),S(this,W,!1),S(this,L,void 0),S(this,Z,()=>{d.activeStores.current.find(i=>l(this,g).includes(i))||this.remove()}),S(this,K,i=>{l(this,W)&&((i.metaKey||i.ctrlKey)&&i.code==="KeyC"?navigator.clipboard.writeText(l(this,g)[0].current):(i.metaKey||i.ctrlKey)&&i.code==="KeyR"&&(l(this,g).forEach(k=>{k.reset()}),i.preventDefault()))}),y(this,g,[t.store]),y(this,R,t.store.passport.name),y(this,D,l(this,R).split(".").slice(-1).toString());const e=((n=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";y(this,L,new at[e](l(this,g)[0])),this.openShadow(ot),h.element(this,{class:{disabled:((o=(a=t.store.passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},onPointerleave:()=>{y(this,W,!1)},onPointerenter:()=>{y(this,W,!0)},children:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,onClick:()=>{navigator.clipboard.writeText(l(this,g)[0].current)}}),h.button({class:"head-button",children:de,onClick:()=>{l(this,g).forEach(i=>{i.reset()})}})]})]}),l(this,L)]})}get key(){return l(this,R)}get name(){return l(this,D)}get stores(){return l(this,g)}addStore(t){l(this,L).addStore(t)}connectedCallback(){d.activeStores.subscribe(l(this,Z)),addEventListener("keydown",l(this,K)),ye.dispatchSizeChangeEvent(this)}disconnectedCallback(){d.activeStores.unsubscribe(l(this,Z)),removeEventListener("keydown",l(this,K))}};g=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;L=new WeakMap;Z=new WeakMap;K=new WeakMap;X=st([v.define("e-tweaker-field")],X);var ht=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ct(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ht(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),T=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},te=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),f,G,p,V,J,oe;const dt=m.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:s.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:s.aptechkaTheme.gapMedium.var,paddingRight:s.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:s.aptechkaTheme.colorDarkAux.var,borderRadius:s.aptechkaTheme.borderRadius.var},".name":{fontSize:s.aptechkaTheme.fontSizeLarge.var,color:s.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:s.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:s.aptechkaTheme.gapLarge.var,display:"grid",gap:s.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:s.aptechkaTheme.colorLight.var,transition:`transform ${s.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let I=class extends _e.AccordionElement{constructor(t){super(),T(this,f,void 0),T(this,G,new d.Store(null)),T(this,p,new d.Store([])),T(this,V,void 0),T(this,J,null),T(this,oe,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,p).current=c(this,p).current.filter(a=>!r.includes(a)),c(this,f)&&!c(this,p).current.length&&!n.length&&this.remove()}),this.openShadow(dt),te(this,f,t.key),te(this,V,new MutationObserver(c(this,oe))),h.element(this,{onAccordionItemToggle:e=>{e.stopPropagation(),e.detail.opened?C.openPanel(c(this,f)):C.closePanel(c(this,f))},children:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,f)?h.div({class:"name",children:[c(this,f).split(".").slice(-1).toString()]}):null,c(this,G),h.element(Se.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,p),ref:e=>te(this,J,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,f)}get head(){return c(this,G)}get content(){return c(this,p)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{C.isPanelOpened(c(this,f))&&this.openAll({skipTransition:!0})},50),c(this,V).observe(c(this,J),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,p).current.find(o=>o.key===n);a instanceof I?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,p).current=[...c(this,p).current,new I({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=c(this,p).current.find(r=>r.key===t.store.passport.name);e instanceof X?e.addStore(t.store):c(this,p).current=[...c(this,p).current,new X({store:t.store})]}}};f=new WeakMap;G=new WeakMap;p=new WeakMap;V=new WeakMap;J=new WeakMap;oe=new WeakMap;I=lt([v.define("e-tweaker-folder")],I);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ut(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&pt(e,r,a),a},gt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},N=(t,e,r)=>(gt(t,e,"read from private field"),r?r.call(t):e.get(t)),le=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Y,B;const ft=m.createStylesheet({":host":{fontFamily:"sans-serif",position:"absolute",top:s.aptechkaTheme.tweakerOffset.var,right:s.aptechkaTheme.tweakerOffset.var,width:s.aptechkaTheme.tweakerWidth.var,backgroundColor:s.aptechkaTheme.colorDark.var,borderRadius:s.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"fill",transitionDuration:s.aptechkaTheme.durationShort.var},".tweaker-button:hover":{fill:s.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
|
|
2
2
|
100dvh -
|
|
3
3
|
(
|
|
4
4
|
${s.aptechkaTheme.tweakerOffset.var} * 2 +
|
package/lib/tweaker/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { c as ke } from "../file-lxi_oXJf.js";
|
|
|
15
15
|
import { d as xe } from "../function-C10DGppn.js";
|
|
16
16
|
import { e as p, a0 as re, a as $e, aB as Pe, D as w, p as A, a3 as Oe } from "../tags-BoPv9fDr.js";
|
|
17
17
|
import { c as m } from "../createStylesheet-KMRQhSa-.js";
|
|
18
|
-
import { a as Me } from "../Viewport-
|
|
18
|
+
import { a as Me } from "../Viewport-CCDNxaDg.js";
|
|
19
19
|
import { aptechkaTheme as s } from "../theme/index.js";
|
|
20
20
|
import { AccordionElement as Ee } from "../accordion/index.js";
|
|
21
21
|
import { a as Te } from "../index-DTe0hK7c.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-BQGNOHlY.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");var l,q,g,x,a,p,w;class I{constructor(s){o(this,l,void 0);o(this,q,void 0);o(this,g,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,w,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,q,i[0]);const m=/\d+x/g,h=i.find(f=>f.match(m));c(this,g,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,q)}get density(){return n(this,g)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,q=new WeakMap,g=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const m=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
var M = (r, s, t) => {
|
|
2
|
-
if (!s.has(r))
|
|
3
|
-
throw TypeError("Cannot " + t);
|
|
4
|
-
};
|
|
5
|
-
var n = (r, s, t) => (M(r, s, "read from private field"), t ? t.call(r) : s.get(r)), o = (r, s, t) => {
|
|
6
|
-
if (s.has(r))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
s instanceof WeakSet ? s.add(r) : s.set(r, t);
|
|
9
|
-
}, h = (r, s, t, i) => (M(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
|
|
10
|
-
import { RESIZE_ORDER as I } from "./order/index.js";
|
|
11
|
-
import { windowResizer as b } from "./window-resizer/index.js";
|
|
12
|
-
import { S } from "./Store-Cd-E5W1z.js";
|
|
13
|
-
import "./path-data-polyfill-DgeDWYeI.js";
|
|
14
|
-
var l, g, q, p, a, x, w;
|
|
15
|
-
class k {
|
|
16
|
-
constructor(s) {
|
|
17
|
-
o(this, l, void 0);
|
|
18
|
-
o(this, g, void 0);
|
|
19
|
-
o(this, q, void 0);
|
|
20
|
-
o(this, p, void 0);
|
|
21
|
-
o(this, a, void 0);
|
|
22
|
-
o(this, x, void 0);
|
|
23
|
-
o(this, w, void 0);
|
|
24
|
-
h(this, l, s);
|
|
25
|
-
const t = s.indexOf("?");
|
|
26
|
-
t >= 0 && (s = s.slice(0, t));
|
|
27
|
-
const i = s.split(".");
|
|
28
|
-
h(this, g, i[0]);
|
|
29
|
-
const d = /\d+x/g, c = i.find((y) => y.match(d));
|
|
30
|
-
h(this, q, c ? parseInt(c) : 1);
|
|
31
|
-
const f = /\d+max/g, R = /\d+min/g, e = i.find((y) => y.match(f)), m = i.find((y) => y.match(R));
|
|
32
|
-
e ? (h(this, a, parseInt(e)), h(this, x, "max"), h(this, p, `(max-width: ${n(this, a)}px)`)) : m ? (h(this, a, parseInt(m)), h(this, p, `(min-width: ${n(this, a)}px)`), h(this, x, "min")) : (h(this, a, 0), h(this, p, `(min-width: ${n(this, a)}px)`), h(this, x, "min")), h(this, w, "." + i[i.length - 1]);
|
|
33
|
-
}
|
|
34
|
-
get url() {
|
|
35
|
-
return n(this, l);
|
|
36
|
-
}
|
|
37
|
-
get name() {
|
|
38
|
-
return n(this, g);
|
|
39
|
-
}
|
|
40
|
-
get density() {
|
|
41
|
-
return n(this, q);
|
|
42
|
-
}
|
|
43
|
-
get query() {
|
|
44
|
-
return n(this, p);
|
|
45
|
-
}
|
|
46
|
-
get extension() {
|
|
47
|
-
return n(this, w);
|
|
48
|
-
}
|
|
49
|
-
get queryType() {
|
|
50
|
-
return n(this, x);
|
|
51
|
-
}
|
|
52
|
-
get queryPx() {
|
|
53
|
-
return n(this, a);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
l = new WeakMap(), g = new WeakMap(), q = new WeakMap(), p = new WeakMap(), a = new WeakMap(), x = new WeakMap(), w = new WeakMap();
|
|
57
|
-
var u;
|
|
58
|
-
class B {
|
|
59
|
-
constructor(s) {
|
|
60
|
-
o(this, u, void 0);
|
|
61
|
-
h(this, u, /* @__PURE__ */ new Map());
|
|
62
|
-
const t = typeof s == "string" ? s.trim().split(",").map((e) => e.trim()).filter((e) => !!e) : s, i = [];
|
|
63
|
-
t.forEach((e) => {
|
|
64
|
-
const m = new k(e);
|
|
65
|
-
i.push([m.query, m]);
|
|
66
|
-
});
|
|
67
|
-
const d = i.filter((e) => e[1].queryType === "max").sort((e, m) => m[1].queryPx - e[1].queryPx), c = i.filter((e) => e[1].queryType === "min" && e[1].queryPx !== 0).sort((e, m) => e[1].queryPx - m[1].queryPx), f = i.filter((e) => e[0] === "(min-width: 0px)");
|
|
68
|
-
(f ? [...f, ...d, ...c] : [...d, ...c]).forEach((e) => {
|
|
69
|
-
n(this, u).has(e[0]) || n(this, u).set(e[0], []), n(this, u).get(e[0]).push(e[1]);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
get mediaBuckets() {
|
|
73
|
-
return n(this, u);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
u = new WeakMap();
|
|
77
|
-
var E, P;
|
|
78
|
-
class D extends S {
|
|
79
|
-
constructor(t) {
|
|
80
|
-
super(void 0);
|
|
81
|
-
o(this, E, void 0);
|
|
82
|
-
o(this, P, () => {
|
|
83
|
-
let t;
|
|
84
|
-
n(this, E).mediaBuckets.forEach((c, f) => {
|
|
85
|
-
matchMedia(f).matches && (t = c);
|
|
86
|
-
});
|
|
87
|
-
let i, d = 0;
|
|
88
|
-
t == null || t.forEach((c) => {
|
|
89
|
-
c.density > d && c.density <= Math.max(devicePixelRatio, 1) && (d = c.density, i = c);
|
|
90
|
-
}), t != null && t.length && !i && (i = t[0]), this.current = i;
|
|
91
|
-
});
|
|
92
|
-
h(this, E, new B(t.srcset));
|
|
93
|
-
}
|
|
94
|
-
close() {
|
|
95
|
-
super.close(), this.disconnect();
|
|
96
|
-
}
|
|
97
|
-
connect() {
|
|
98
|
-
b.subscribe(n(this, P), I.SOURCE_MANAGER);
|
|
99
|
-
}
|
|
100
|
-
disconnect() {
|
|
101
|
-
b.unsubscribe(n(this, P));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
E = new WeakMap(), P = new WeakMap();
|
|
105
|
-
export {
|
|
106
|
-
D as S,
|
|
107
|
-
k as a,
|
|
108
|
-
B as b
|
|
109
|
-
};
|
package/lib/Viewport-Bx-VImCe.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
var W = (t, n, o) => {
|
|
2
|
-
if (!n.has(t))
|
|
3
|
-
throw TypeError("Cannot " + o);
|
|
4
|
-
};
|
|
5
|
-
var i = (t, n, o) => (W(t, n, "read from private field"), o ? o.call(t) : n.get(t)), s = (t, n, o) => {
|
|
6
|
-
if (n.has(t))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
n instanceof WeakSet ? n.add(t) : n.set(t, o);
|
|
9
|
-
}, e = (t, n, o, v) => (W(t, n, "write to private field"), v ? v.call(t, o) : n.set(t, o), o);
|
|
10
|
-
import { RESIZE_ORDER as k } from "./order/index.js";
|
|
11
|
-
import { windowResizer as A } from "./window-resizer/index.js";
|
|
12
|
-
import { i as C } from "./browser-0zX67oeU.js";
|
|
13
|
-
import "./path-data-polyfill-DgeDWYeI.js";
|
|
14
|
-
import { getGPUTier as O } from "detect-gpu";
|
|
15
|
-
import { S as I } from "./Store-Cd-E5W1z.js";
|
|
16
|
-
var a, d, l, c, g, m, p, x, u;
|
|
17
|
-
class L {
|
|
18
|
-
constructor() {
|
|
19
|
-
s(this, a, "unknown");
|
|
20
|
-
s(this, d, "unknown");
|
|
21
|
-
s(this, l, 0);
|
|
22
|
-
s(this, c, null);
|
|
23
|
-
s(this, g, !1);
|
|
24
|
-
s(this, m, !1);
|
|
25
|
-
s(this, p, !1);
|
|
26
|
-
s(this, x, !1);
|
|
27
|
-
s(this, u, !1);
|
|
28
|
-
var n, o;
|
|
29
|
-
if (C) {
|
|
30
|
-
e(this, c, O()), i(this, c).then((r) => {
|
|
31
|
-
e(this, d, r.gpu || "unknown"), e(this, l, r.tier);
|
|
32
|
-
}), A.subscribe(() => {
|
|
33
|
-
e(this, g, /Mobi|Android/i.test(navigator.userAgent)), e(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0), setTimeout(() => {
|
|
34
|
-
e(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
35
|
-
}, 0);
|
|
36
|
-
}, k.DEVICE);
|
|
37
|
-
{
|
|
38
|
-
const r = document.createElement("canvas"), E = r.getContext("webgl") || r.getContext("experimental-webgl");
|
|
39
|
-
e(this, p, E && E instanceof WebGLRenderingContext || !1);
|
|
40
|
-
}
|
|
41
|
-
{
|
|
42
|
-
const r = document.createElement("canvas");
|
|
43
|
-
r.getContext("2d") && e(this, x, r.toDataURL("image/webp").indexOf("data:image/webp") == 0);
|
|
44
|
-
}
|
|
45
|
-
const v = window.navigator.userAgent, P = ((o = (n = window.navigator) == null ? void 0 : n.userAgentData) == null ? void 0 : o.platform) || window.navigator.platform, D = [
|
|
46
|
-
"Macintosh",
|
|
47
|
-
"MacIntel",
|
|
48
|
-
"MacPPC",
|
|
49
|
-
"Mac68K",
|
|
50
|
-
"macOS"
|
|
51
|
-
], S = ["Win32", "Win64", "Windows", "WinCE"], T = ["iPhone", "iPad", "iPod"];
|
|
52
|
-
D.includes(P) ? (e(this, a, "macOS"), e(this, u, !0)) : T.includes(P) ? (e(this, a, "iOS"), e(this, u, !0)) : S.includes(P) ? e(this, a, "Windows") : /Android/.test(v) ? e(this, a, "Android") : /Linux/.test(P) ? e(this, a, "Linux") : e(this, a, "unknown");
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
get OS() {
|
|
56
|
-
return i(this, a);
|
|
57
|
-
}
|
|
58
|
-
get gpu() {
|
|
59
|
-
return i(this, d);
|
|
60
|
-
}
|
|
61
|
-
get gpuTier() {
|
|
62
|
-
return i(this, l);
|
|
63
|
-
}
|
|
64
|
-
get gpuDetection() {
|
|
65
|
-
return i(this, c);
|
|
66
|
-
}
|
|
67
|
-
get isMobile() {
|
|
68
|
-
return i(this, g);
|
|
69
|
-
}
|
|
70
|
-
get isTouch() {
|
|
71
|
-
return i(this, m);
|
|
72
|
-
}
|
|
73
|
-
get isWebgl() {
|
|
74
|
-
return i(this, p);
|
|
75
|
-
}
|
|
76
|
-
get isWebp() {
|
|
77
|
-
return i(this, x);
|
|
78
|
-
}
|
|
79
|
-
get isApple() {
|
|
80
|
-
return i(this, u);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
a = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap(), g = new WeakMap(), m = new WeakMap(), p = new WeakMap(), x = new WeakMap(), u = new WeakMap();
|
|
84
|
-
const j = new L();
|
|
85
|
-
var M = /* @__PURE__ */ ((t) => (t.mobile = "600px", t.tablet = "1024px", t.notebook = "1280px", t.desktop = "1281px", t))(M || {}), y = /* @__PURE__ */ ((t) => (t["<=mobile"] = "(max-width: 600px)", t[">=mobile"] = "(min-width: 601px)", t["<=tablet"] = "(max-width: 1024px)", t[">=tablet"] = "(min-width: 1025px)", t["<=notebook"] = "(max-width: 1280px)", t[">=notebook"] = "(min-width: 1281px)", t["<=desktop"] = "(max-width: 1280px)", t[">=desktop"] = "(min-width: 1281px)", t))(y || {}), w, f, b, h;
|
|
86
|
-
class G {
|
|
87
|
-
constructor() {
|
|
88
|
-
s(this, w, 0);
|
|
89
|
-
s(this, f, 0);
|
|
90
|
-
s(this, b, 0);
|
|
91
|
-
s(this, h, new I(void 0));
|
|
92
|
-
C && A.subscribe(() => {
|
|
93
|
-
e(this, w, document.documentElement.clientWidth), e(this, f, innerHeight), e(this, b, devicePixelRatio), matchMedia(
|
|
94
|
-
"(max-width: 600px)"
|
|
95
|
-
/* <=mobile */
|
|
96
|
-
).matches ? i(this, h).current = "mobile" : matchMedia(
|
|
97
|
-
"(max-width: 1024px)"
|
|
98
|
-
/* <=tablet */
|
|
99
|
-
).matches ? i(this, h).current = "tablet" : matchMedia(
|
|
100
|
-
"(max-width: 1280px)"
|
|
101
|
-
/* <=notebook */
|
|
102
|
-
).matches ? i(this, h).current = "notebook" : matchMedia(
|
|
103
|
-
"(min-width: 1281px)"
|
|
104
|
-
/* >=desktop */
|
|
105
|
-
).matches && (i(this, h).current = "desktop");
|
|
106
|
-
}, k.DEVICE);
|
|
107
|
-
}
|
|
108
|
-
get width() {
|
|
109
|
-
return i(this, w);
|
|
110
|
-
}
|
|
111
|
-
get height() {
|
|
112
|
-
return i(this, f);
|
|
113
|
-
}
|
|
114
|
-
get type() {
|
|
115
|
-
return i(this, h);
|
|
116
|
-
}
|
|
117
|
-
get pixelRatio() {
|
|
118
|
-
return i(this, b);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
w = new WeakMap(), f = new WeakMap(), b = new WeakMap(), h = new WeakMap();
|
|
122
|
-
const q = new G();
|
|
123
|
-
export {
|
|
124
|
-
M as V,
|
|
125
|
-
y as a,
|
|
126
|
-
j as d,
|
|
127
|
-
q as v
|
|
128
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");const q=require("detect-gpu"),I=require("./Store-BQGNOHlY.cjs");var r,l,m,c,g,u,w,x,d;class M{constructor(){s(this,r,"unknown");s(this,l,"unknown");s(this,m,0);s(this,c,null);s(this,g,!1);s(this,u,!1);s(this,w,!1);s(this,x,!1);s(this,d,!1);var n,o;if(D.isBrowser){e(this,c,q.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),A.windowResizer.subscribe(()=>{e(this,g,/Mobi|Android/i.test(navigator.userAgent)),e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&e(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(n=window.navigator)==null?void 0:n.userAgentData)==null?void 0:o.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];O.includes(E)?(e(this,r,"macOS"),e(this,d,!0)):T.includes(E)?(e(this,r,"iOS"),e(this,d,!0)):R.includes(E)?e(this,r,"Windows"):/Android/.test(v)?e(this,r,"Android"):/Linux/.test(E)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const L=new M;var S=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(S||{}),C=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(C||{}),p,b,f,h;class _{constructor(){s(this,p,0);s(this,b,0);s(this,f,0);s(this,h,new I.Store(void 0));D.isBrowser&&A.windowResizer.subscribe(()=>{e(this,p,document.documentElement.clientWidth),e(this,b,innerHeight),e(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},k.RESIZE_ORDER.DEVICE)}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const z=new _;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=L;exports.viewport=z;
|