aptechka 0.1.2 → 0.1.5
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/Animated-CzBHCHNm.js +130 -0
- package/lib/Animated-DZ_fbJmi.cjs +1 -0
- package/lib/Damped--qBZAdEi.cjs +1 -0
- package/lib/Damped-Bm1kSn1f.js +36 -0
- package/lib/Derived-BS2ja9qa.js +27 -0
- package/lib/Derived-CqmIkTGN.cjs +1 -0
- package/lib/ElementConstructor-DB0xOoat.js +199 -0
- package/lib/ElementConstructor-v1FPLXAW.cjs +1 -0
- package/lib/{SourceManager-F94MRde6.js → SourceManager-B44FUTig.js} +26 -26
- package/lib/SourceManager-D447KWpH.cjs +1 -0
- package/lib/Store-BOOfmlyv.cjs +1 -0
- package/lib/Store-uTyReFzx.js +152 -0
- package/lib/Viewport-CDqiD8Ao.cjs +1 -0
- package/lib/Viewport-Cj0i-H5d.js +129 -0
- package/lib/WheelControls-CX9WUbBC.js +83 -0
- package/lib/WheelControls-CfDeGCOU.cjs +1 -0
- package/lib/abstract-elements/AbstractButtonElement.d.ts +5 -0
- package/lib/abstract-elements/index.cjs +1 -0
- package/lib/abstract-elements/index.d.ts +1 -0
- package/lib/abstract-elements/index.js +27 -0
- package/lib/accordion/AccordionElement.d.ts +30 -0
- package/lib/accordion/index.cjs +1 -0
- package/lib/accordion/index.d.ts +1 -0
- package/lib/accordion/index.js +166 -0
- package/lib/animation/Animated.d.ts +9 -12
- package/lib/animation/Tweened.d.ts +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.d.ts +1 -1
- package/lib/animation/index.js +11 -17
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +8 -4
- package/lib/attribute/index.js +44 -35
- package/lib/canvas/index.cjs +1 -0
- package/lib/{canvas-2d → canvas}/index.d.ts +7 -6
- package/lib/canvas/index.js +97 -0
- package/lib/connector/index.cjs +1 -0
- package/lib/connector/index.d.ts +14 -0
- package/lib/connector/index.js +53 -0
- package/lib/controls/WheelControls.d.ts +3 -2
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.d.ts +0 -1
- package/lib/controls/index.js +23 -28
- package/lib/createStylesheet-74ZP3AZm.js +8 -0
- package/lib/createStylesheet-ChhZFwSX.cjs +1 -0
- package/lib/createTheme-BMH9cRrS.js +15 -0
- package/lib/createTheme-COo8IzPG.cjs +1 -0
- package/lib/custom-element/index.cjs +1 -1
- package/lib/custom-element/index.d.ts +3 -1
- package/lib/custom-element/index.js +19 -9
- package/lib/device/Viewport.d.ts +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +5 -121
- package/lib/element-constructor/ElementConstructor.d.ts +11 -15
- package/lib/element-constructor/createStylesheet.d.ts +2 -0
- package/lib/element-constructor/createTheme.d.ts +12 -0
- package/lib/element-constructor/htmlTags.d.ts +115 -113
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.d.ts +2 -1
- package/lib/element-constructor/index.js +387 -1135
- package/lib/element-constructor/svgTags.d.ts +63 -63
- package/lib/element-resizer/index.cjs +1 -0
- package/lib/element-resizer/index.d.ts +9 -0
- package/lib/element-resizer/index.js +64 -0
- package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
- package/lib/en3/index.cjs +7 -7
- package/lib/en3/index.js +252 -242
- package/lib/en3/objects/En3Clip.d.ts +2 -2
- package/lib/events-CoqmkUxo.js +11 -0
- package/lib/events-D68xg4dy.cjs +1 -0
- package/lib/file-EevnUtRj.cjs +1 -0
- package/lib/file-lxi_oXJf.js +13 -0
- package/lib/htmlTags-CNEFIHPp.js +683 -0
- package/lib/htmlTags-CwYHVo9n.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +13 -20
- package/lib/index-DyJhLxk8.js +310 -0
- package/lib/index-tPw9mmLF.cjs +9 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.d.ts +2 -1
- package/lib/intersector/index.js +33 -22
- package/lib/jsx/ComponentWrapper.d.ts +12 -0
- package/lib/jsx/h.d.ts +7 -0
- package/lib/jsx/hooks.d.ts +19 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +4 -0
- package/lib/jsx/index.js +125 -0
- package/lib/jsx/render.d.ts +2 -0
- package/lib/jsx/type.d.ts +185 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +3 -4
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.d.ts +1 -0
- package/lib/layout-box/index.js +113 -99
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +17 -20
- package/lib/modal/ModalElement.d.ts +12 -0
- package/lib/modal/index.cjs +1 -0
- package/lib/modal/index.d.ts +1 -0
- package/lib/modal/index.js +144 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +1 -1
- package/lib/number-Bo5RdrA1.js +23 -0
- package/lib/number-yVpzMdbQ.cjs +1 -0
- package/lib/popover/PopoverButtonElement.d.ts +14 -0
- package/lib/popover/PopoverElement.d.ts +19 -0
- package/lib/popover/index.cjs +1 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/popover/index.js +122 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +2 -2
- package/lib/scroll/ScrollElement.d.ts +5 -3
- package/lib/scroll/index.cjs +1 -71
- package/lib/scroll/index.js +349 -314
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.d.ts +1 -1
- package/lib/scroll-entries/index.js +4 -2
- package/lib/select/SelectElement.d.ts +25 -0
- package/lib/select/SelectHeadElement.d.ts +12 -0
- package/lib/select/SelectOptionElement.d.ts +13 -0
- package/lib/select/SelectUserElement.d.ts +7 -0
- package/lib/select/index.cjs +1 -0
- package/lib/select/index.d.ts +4 -0
- package/lib/select/index.js +7 -0
- package/lib/source/SourceClass.d.ts +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +13 -18
- package/lib/store/CumulativeResource.d.ts +12 -0
- package/lib/store/Resource.d.ts +5 -2
- package/lib/store/Store.d.ts +56 -9
- package/lib/store/StoreRegistry.d.ts +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -1
- package/lib/store/index.js +108 -66
- package/lib/string-BrDhnNUL.js +39 -0
- package/lib/string-DzUwFYSS.cjs +1 -0
- package/lib/studio/StudioElement.d.ts +12 -0
- package/lib/studio/index.cjs +10 -0
- package/lib/studio/index.d.ts +1 -0
- package/lib/studio/index.js +985 -0
- package/lib/studio/studioStorage.d.ts +14 -0
- package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerElement.d.ts +17 -0
- package/lib/studio/tweaker/TweakerFieldElement.d.ts +20 -0
- package/lib/studio/tweaker/TweakerFolderElement.d.ts +22 -0
- package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +17 -0
- package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +7 -0
- package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +12 -0
- package/lib/studio/tweaker/tweakerManagerConstructors.d.ts +5 -0
- package/lib/style-At6aDoqG.cjs +1 -0
- package/lib/style-j2TwriJ_.js +10 -0
- package/lib/theme/index.cjs +1 -0
- package/lib/theme/index.d.ts +90 -0
- package/lib/theme/index.js +34 -0
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/utils/events.d.ts +6 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +8 -7
- package/lib/utils/index.js +95 -105
- package/lib/utils/number.d.ts +2 -3
- package/lib/utils/string.d.ts +1 -0
- package/lib/utils/style.d.ts +2 -0
- package/lib/utils/ts-utility.d.ts +2 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +13 -20
- package/lib/window-resizer/index.cjs +1 -0
- package/lib/window-resizer/index.d.ts +9 -0
- package/lib/window-resizer/index.js +46 -0
- package/package.json +92 -30
- package/lib/Damped-1hlKSFaB.cjs +0 -1
- package/lib/Damped-523xgzT3.js +0 -152
- package/lib/SourceManager-3c3kr7oj.cjs +0 -1
- package/lib/Store-2hWEUGTj.js +0 -135
- package/lib/Store-WXFmsaEI.cjs +0 -1
- package/lib/WheelControls-F-xg5-oq.js +0 -102
- package/lib/WheelControls-Hp5NWRZY.cjs +0 -1
- package/lib/canvas-2d/index.cjs +0 -5
- package/lib/canvas-2d/index.js +0 -90
- package/lib/controls/User.d.ts +0 -7
- package/lib/element-constructor/specialObjects.d.ts +0 -2
- package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
- package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
- package/lib/measurer/Meaurer.d.ts +0 -8
- package/lib/measurer/index.cjs +0 -1
- package/lib/measurer/index.d.ts +0 -3
- package/lib/measurer/index.js +0 -48
- package/lib/number-2bR0KBcX.cjs +0 -1
- package/lib/number-bCHB2GAD.js +0 -31
- package/lib/resizer/index.cjs +0 -1
- package/lib/resizer/index.d.ts +0 -10
- package/lib/resizer/index.js +0 -45
- package/lib/string-GmxZA5Nq.js +0 -31
- package/lib/string-WmNOGq16.cjs +0 -1
- package/lib/utils/dev.d.ts +0 -3
- /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
- /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
- /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
- /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
- /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
- /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
- /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
- /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
- /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
- /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
- /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
- /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
- /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
- /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
var j = Object.defineProperty, q = Object.defineProperties;
|
|
2
|
+
var z = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var B = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var $ = (s, r, e) => r in s ? j(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e, k = (s, r) => {
|
|
6
|
+
for (var e in r || (r = {}))
|
|
7
|
+
B.call(r, e) && $(s, e, r[e]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var e of R(r))
|
|
10
|
+
D.call(r, e) && $(s, e, r[e]);
|
|
11
|
+
return s;
|
|
12
|
+
}, v = (s, r) => q(s, z(r));
|
|
13
|
+
var C = (s, r, e) => {
|
|
14
|
+
if (!r.has(s))
|
|
15
|
+
throw TypeError("Cannot " + e);
|
|
16
|
+
};
|
|
17
|
+
var t = (s, r, e) => (C(s, r, "read from private field"), e ? e.call(s) : r.get(s)), i = (s, r, e) => {
|
|
18
|
+
if (r.has(s))
|
|
19
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
+
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
21
|
+
}, a = (s, r, e, u) => (C(s, r, "write to private field"), u ? u.call(s, e) : r.set(s, e), e);
|
|
22
|
+
import { S as m } from "./Store-uTyReFzx.js";
|
|
23
|
+
import { c as E } from "./math-BOBiC4TN.js";
|
|
24
|
+
import { p as G } from "./number-Bo5RdrA1.js";
|
|
25
|
+
import { ticker as N } from "./ticker/index.js";
|
|
26
|
+
var g, x, F, h, n, c, b, f, A, l, P, S, w;
|
|
27
|
+
class Q extends m {
|
|
28
|
+
constructor(e) {
|
|
29
|
+
super((e == null ? void 0 : e.default) || 0, e);
|
|
30
|
+
i(this, g, void 0);
|
|
31
|
+
i(this, x, void 0);
|
|
32
|
+
i(this, F, void 0);
|
|
33
|
+
i(this, h, void 0);
|
|
34
|
+
i(this, n, void 0);
|
|
35
|
+
i(this, c, void 0);
|
|
36
|
+
i(this, b, new m(null));
|
|
37
|
+
i(this, f, new m(!1));
|
|
38
|
+
i(this, A, 0);
|
|
39
|
+
i(this, l, 0);
|
|
40
|
+
i(this, P, (e) => {
|
|
41
|
+
this.set(e.current);
|
|
42
|
+
});
|
|
43
|
+
i(this, S, (e) => {
|
|
44
|
+
const u = this.current;
|
|
45
|
+
this.handleAnimationFrame(e);
|
|
46
|
+
const d = Math.abs(u - this.target);
|
|
47
|
+
a(this, l, d / e.elapsed);
|
|
48
|
+
});
|
|
49
|
+
i(this, w, () => {
|
|
50
|
+
this.set(t(this, h)), this.current = t(this, h);
|
|
51
|
+
});
|
|
52
|
+
a(this, x, e == null ? void 0 : e.order), a(this, g, e == null ? void 0 : e.maxFPS), a(this, F, e == null ? void 0 : e.culling), a(this, h, this.current);
|
|
53
|
+
let u, d;
|
|
54
|
+
e != null && e.passport && (u = {
|
|
55
|
+
name: `${e.passport.name + "-min"}`
|
|
56
|
+
}, d = {
|
|
57
|
+
name: `${e.passport.name + "-max"}`
|
|
58
|
+
}), a(this, n, (e == null ? void 0 : e.min) instanceof m ? e.min : new m(0, { passport: u })), a(this, c, (e == null ? void 0 : e.max) instanceof m ? e.max : new m(0, { passport: d })), t(this, n).subscribe(t(this, w)), t(this, c).subscribe(t(this, w)), t(this, b).subscribe((L) => {
|
|
59
|
+
var y, M;
|
|
60
|
+
(y = L.previous) == null || y.unsubscribe(t(this, P)), (M = L.current) == null || M.subscribe(t(this, P));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
get target() {
|
|
64
|
+
return t(this, h);
|
|
65
|
+
}
|
|
66
|
+
get isRunning() {
|
|
67
|
+
return t(this, f);
|
|
68
|
+
}
|
|
69
|
+
get direction() {
|
|
70
|
+
return t(this, A);
|
|
71
|
+
}
|
|
72
|
+
get maxFPS() {
|
|
73
|
+
return t(this, g);
|
|
74
|
+
}
|
|
75
|
+
get speed() {
|
|
76
|
+
return t(this, l);
|
|
77
|
+
}
|
|
78
|
+
get min() {
|
|
79
|
+
return t(this, n);
|
|
80
|
+
}
|
|
81
|
+
get max() {
|
|
82
|
+
return t(this, c);
|
|
83
|
+
}
|
|
84
|
+
get delta() {
|
|
85
|
+
return t(this, c).current - t(this, n).current;
|
|
86
|
+
}
|
|
87
|
+
get progress() {
|
|
88
|
+
return this.delta ? G((this.current - this.min.current) / this.delta, 6) : 0;
|
|
89
|
+
}
|
|
90
|
+
get entry() {
|
|
91
|
+
return v(k({}, super.entry), {
|
|
92
|
+
min: t(this, n).current,
|
|
93
|
+
max: t(this, c).current,
|
|
94
|
+
delta: this.delta,
|
|
95
|
+
direction: this.direction,
|
|
96
|
+
progress: this.progress,
|
|
97
|
+
speed: this.speed
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
get updater() {
|
|
101
|
+
return t(this, b);
|
|
102
|
+
}
|
|
103
|
+
set(e, u = !1) {
|
|
104
|
+
const d = t(this, h);
|
|
105
|
+
a(this, h, E(e, t(this, n).current, t(this, c).current)), u && (this.current = t(this, h)), t(this, h) !== d && (a(this, l, 0), a(this, A, Math.sign(e - t(this, h)) || 1), this.update());
|
|
106
|
+
}
|
|
107
|
+
shift(e, u = !1) {
|
|
108
|
+
this.set(t(this, h) + e, u);
|
|
109
|
+
}
|
|
110
|
+
close() {
|
|
111
|
+
super.close(), this.unlistenAnimationFrame(), t(this, b).current = null;
|
|
112
|
+
}
|
|
113
|
+
reset() {
|
|
114
|
+
this.set(this.initial, !0), super.reset(), this.unlistenAnimationFrame();
|
|
115
|
+
}
|
|
116
|
+
listenAnimationFrame() {
|
|
117
|
+
t(this, f).current = !0, N.subscribe(t(this, S), {
|
|
118
|
+
maxFPS: t(this, g),
|
|
119
|
+
order: t(this, x),
|
|
120
|
+
culling: t(this, F)
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
unlistenAnimationFrame() {
|
|
124
|
+
a(this, l, 0), t(this, f).current = !1, N.unsubscribe(t(this, S));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
g = new WeakMap(), x = new WeakMap(), F = new WeakMap(), h = new WeakMap(), n = new WeakMap(), c = new WeakMap(), b = new WeakMap(), f = new WeakMap(), A = new WeakMap(), l = new WeakMap(), P = new WeakMap(), S = new WeakMap(), w = new WeakMap();
|
|
128
|
+
export {
|
|
129
|
+
Q as A
|
|
130
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var N=Object.defineProperty,_=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var M=(s,r,e)=>r in s?N(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e,R=(s,r)=>{for(var e in r||(r={}))z.call(r,e)&&M(s,e,r[e]);if(y)for(var e of y(r))B.call(r,e)&&M(s,e,r[e]);return s},$=(s,r)=>_(s,j(r));var v=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(v(s,r,"read from private field"),e?e.call(s):r.get(s)),i=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},n=(s,r,e,u)=>(v(s,r,"write to private field"),u?u.call(s,e):r.set(s,e),e);const m=require("./Store-BOOfmlyv.cjs"),D=require("./math-GDWEqu7y.cjs"),E=require("./number-yVpzMdbQ.cjs"),C=require("./ticker/index.cjs");var g,S,f,h,a,c,b,x,F,l,A,P,q;class G extends m.Store{constructor(e){super((e==null?void 0:e.default)||0,e);i(this,g,void 0);i(this,S,void 0);i(this,f,void 0);i(this,h,void 0);i(this,a,void 0);i(this,c,void 0);i(this,b,new m.Store(null));i(this,x,new m.Store(!1));i(this,F,0);i(this,l,0);i(this,A,e=>{this.set(e.current)});i(this,P,e=>{const u=this.current;this.handleAnimationFrame(e);const d=Math.abs(u-this.target);n(this,l,d/e.elapsed)});i(this,q,()=>{this.set(t(this,h)),this.current=t(this,h)});n(this,S,e==null?void 0:e.order),n(this,g,e==null?void 0:e.maxFPS),n(this,f,e==null?void 0:e.culling),n(this,h,this.current);let u,d;e!=null&&e.passport&&(u={name:`${e.passport.name+"-min"}`},d={name:`${e.passport.name+"-max"}`}),n(this,a,(e==null?void 0:e.min)instanceof m.Store?e.min:new m.Store(0,{passport:u})),n(this,c,(e==null?void 0:e.max)instanceof m.Store?e.max:new m.Store(0,{passport:d})),t(this,a).subscribe(t(this,q)),t(this,c).subscribe(t(this,q)),t(this,b).subscribe(w=>{var k,L;(k=w.previous)==null||k.unsubscribe(t(this,A)),(L=w.current)==null||L.subscribe(t(this,A))})}get target(){return t(this,h)}get isRunning(){return t(this,x)}get direction(){return t(this,F)}get maxFPS(){return t(this,g)}get speed(){return t(this,l)}get min(){return t(this,a)}get max(){return t(this,c)}get delta(){return t(this,c).current-t(this,a).current}get progress(){return this.delta?E.preciseNumber((this.current-this.min.current)/this.delta,6):0}get entry(){return $(R({},super.entry),{min:t(this,a).current,max:t(this,c).current,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}get updater(){return t(this,b)}set(e,u=!1){const d=t(this,h);n(this,h,D.clamp(e,t(this,a).current,t(this,c).current)),u&&(this.current=t(this,h)),t(this,h)!==d&&(n(this,l,0),n(this,F,Math.sign(e-t(this,h))||1),this.update())}shift(e,u=!1){this.set(t(this,h)+e,u)}close(){super.close(),this.unlistenAnimationFrame(),t(this,b).current=null}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,x).current=!0,C.ticker.subscribe(t(this,P),{maxFPS:t(this,g),order:t(this,S),culling:t(this,f)})}unlistenAnimationFrame(){n(this,l,0),t(this,x).current=!1,C.ticker.unsubscribe(t(this,P))}}g=new WeakMap,S=new WeakMap,f=new WeakMap,h=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,x=new WeakMap,F=new WeakMap,l=new WeakMap,A=new WeakMap,P=new WeakMap,q=new WeakMap;exports.Animated=G;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty,g=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,h=(r,t)=>{for(var e in t||(t={}))A.call(t,e)&&i(r,e,t[e]);if(n)for(var e of n(t))f.call(t,e)&&i(r,e,t[e]);return r},s=(r,t)=>g(r,l(t));var u=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);const F=require("./math-GDWEqu7y.cjs"),c=require("./number-yVpzMdbQ.cjs"),b=require("./Animated-DZ_fbJmi.cjs");class q extends b.Animated{constructor(e){var a,m;super(s(h({},e),{min:(a=e==null?void 0:e.min)!=null?a:-1/0,max:(m=e==null?void 0:e.max)!=null?m:1/0}));u(this,"damping");this.damping=(e==null?void 0:e.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(e){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=F.damp(this.current,this.target,this.damping,e.elapsed)}}exports.Damped=q;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var c = Object.defineProperty, g = Object.defineProperties;
|
|
2
|
+
var f = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var n = Object.getOwnPropertySymbols;
|
|
4
|
+
var l = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var r = (a, t, e) => t in a ? c(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, h = (a, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
l.call(t, e) && r(a, e, t[e]);
|
|
8
|
+
if (n)
|
|
9
|
+
for (var e of n(t))
|
|
10
|
+
A.call(t, e) && r(a, e, t[e]);
|
|
11
|
+
return a;
|
|
12
|
+
}, s = (a, t) => g(a, f(t));
|
|
13
|
+
var d = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
import { d as x } from "./math-BOBiC4TN.js";
|
|
15
|
+
import { p as u } from "./number-Bo5RdrA1.js";
|
|
16
|
+
import { A as F } from "./Animated-CzBHCHNm.js";
|
|
17
|
+
class p extends F {
|
|
18
|
+
constructor(e) {
|
|
19
|
+
var i, m;
|
|
20
|
+
super(s(h({}, e), {
|
|
21
|
+
min: (i = e == null ? void 0 : e.min) != null ? i : -1 / 0,
|
|
22
|
+
max: (m = e == null ? void 0 : e.max) != null ? m : 1 / 0
|
|
23
|
+
}));
|
|
24
|
+
d(this, "damping");
|
|
25
|
+
this.damping = (e == null ? void 0 : e.damping) || 0;
|
|
26
|
+
}
|
|
27
|
+
update() {
|
|
28
|
+
this.damping ? this.listenAnimationFrame() : (this.current = this.target, this.unlistenAnimationFrame());
|
|
29
|
+
}
|
|
30
|
+
handleAnimationFrame(e) {
|
|
31
|
+
u(this.current, 4) === u(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target), this.current = x(this.current, this.target, this.damping, e.elapsed);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
p as D
|
|
36
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var u = (s, r, e) => {
|
|
2
|
+
if (!r.has(s))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
|
+
};
|
|
5
|
+
var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(s)), i = (s, r, e) => {
|
|
6
|
+
if (r.has(s))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
9
|
+
}, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
|
|
10
|
+
import { S as p } from "./Store-uTyReFzx.js";
|
|
11
|
+
var t;
|
|
12
|
+
class d extends p {
|
|
13
|
+
constructor(e, c, l) {
|
|
14
|
+
super(null, l);
|
|
15
|
+
i(this, t, void 0);
|
|
16
|
+
n(this, t, e.subscribe((b) => {
|
|
17
|
+
this.current = c(b.current);
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
close() {
|
|
21
|
+
super.close(), o(this, t).call(this);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
t = new WeakMap();
|
|
25
|
+
export {
|
|
26
|
+
d as D
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-BOOfmlyv.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
var J = (f, s, t) => {
|
|
2
|
+
if (!s.has(f))
|
|
3
|
+
throw TypeError("Cannot " + t);
|
|
4
|
+
};
|
|
5
|
+
var K = (f, s, t) => (J(f, s, "read from private field"), t ? t.call(f) : s.get(f)), o = (f, s, t) => {
|
|
6
|
+
if (s.has(f))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
s instanceof WeakSet ? s.add(f) : s.set(f, t);
|
|
9
|
+
}, N = (f, s, t, e) => (J(f, s, "write to private field"), e ? e.call(f, t) : s.set(f, t), t);
|
|
10
|
+
var r = (f, s, t) => (J(f, s, "access private method"), t);
|
|
11
|
+
import { S as c } from "./Store-uTyReFzx.js";
|
|
12
|
+
import { i as st } from "./browser-0zX67oeU.js";
|
|
13
|
+
import { c as U } from "./string-BrDhnNUL.js";
|
|
14
|
+
var l, b, Y, v, z, d, m, h, M, A, D, C, G, T, I, p, Q, y, q, E, R, x, X, P, Z, S, V, g, W, $, _, k, O, B, j, L, F, H, tt;
|
|
15
|
+
const u = class u {
|
|
16
|
+
constructor(...s) {
|
|
17
|
+
o(this, b);
|
|
18
|
+
o(this, v);
|
|
19
|
+
o(this, d);
|
|
20
|
+
o(this, h);
|
|
21
|
+
o(this, A);
|
|
22
|
+
o(this, C);
|
|
23
|
+
o(this, T);
|
|
24
|
+
o(this, p);
|
|
25
|
+
o(this, y);
|
|
26
|
+
o(this, E);
|
|
27
|
+
o(this, x);
|
|
28
|
+
o(this, P);
|
|
29
|
+
o(this, S);
|
|
30
|
+
o(this, g);
|
|
31
|
+
o(this, $);
|
|
32
|
+
o(this, k);
|
|
33
|
+
o(this, B);
|
|
34
|
+
o(this, L);
|
|
35
|
+
o(this, H);
|
|
36
|
+
o(this, l, []);
|
|
37
|
+
const t = s[0], e = s[1];
|
|
38
|
+
if (st)
|
|
39
|
+
if (typeof t == "string") {
|
|
40
|
+
const i = document.createElement("div");
|
|
41
|
+
i.innerHTML = t;
|
|
42
|
+
const n = i.firstElementChild;
|
|
43
|
+
N(this, l, [n]), r(this, d, m).call(this, n, e);
|
|
44
|
+
} else
|
|
45
|
+
t instanceof HTMLElement ? (N(this, l, [t]), r(this, d, m).call(this, t, e)) : N(this, l, r(this, b, Y).call(this, t));
|
|
46
|
+
}
|
|
47
|
+
get rootElements() {
|
|
48
|
+
return K(this, l);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
l = new WeakMap(), b = new WeakSet(), Y = function(s) {
|
|
52
|
+
const t = [];
|
|
53
|
+
for (const e in s) {
|
|
54
|
+
const i = e, n = s[i], a = r(this, v, z).call(this, i, n == null ? void 0 : n.svg);
|
|
55
|
+
n && r(this, d, m).call(this, a, n), t.push(a);
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
58
|
+
}, v = new WeakSet(), z = function(s, t = !1) {
|
|
59
|
+
let e = null;
|
|
60
|
+
return s.includes("-") ? e = new (customElements.get(s))() : t ? e = document.createElementNS("http://www.w3.org/2000/svg", s) : e = document.createElement(s), e;
|
|
61
|
+
}, d = new WeakSet(), m = function(s, t) {
|
|
62
|
+
for (const e in t) {
|
|
63
|
+
const i = e;
|
|
64
|
+
i === "class" ? r(this, h, M).call(this, s, t[i]) : i === "style" ? r(this, T, I).call(this, s, t[i]) : i === "events" ? r(this, x, X).call(this, s, t[i]) : i === "attributes" ? r(this, P, Z).call(this, s, t[i]) : i === "children" ? r(this, g, W).call(this, s, t[i]) : i === "shadowChildren" ? r(this, g, W).call(this, s.shadowRoot || s, t[i]) : i === "parent" && r(this, H, tt).call(this, s, t[i]);
|
|
65
|
+
}
|
|
66
|
+
t != null && t.ref && (typeof (t == null ? void 0 : t.ref) == "function" ? t.ref(s) : t.ref.current = s);
|
|
67
|
+
}, h = new WeakSet(), M = function(s, t) {
|
|
68
|
+
if (t) {
|
|
69
|
+
if (typeof t == "string")
|
|
70
|
+
s.classList.add(t);
|
|
71
|
+
else if (Array.isArray(t))
|
|
72
|
+
t.forEach((e) => {
|
|
73
|
+
r(this, h, M).call(this, s, e);
|
|
74
|
+
});
|
|
75
|
+
else if (typeof t == "object")
|
|
76
|
+
if (t instanceof c)
|
|
77
|
+
r(this, A, D).call(this, s, t);
|
|
78
|
+
else
|
|
79
|
+
for (const e in t) {
|
|
80
|
+
const i = t[e];
|
|
81
|
+
i instanceof c ? r(this, C, G).call(this, s, e, i) : i ? s.classList.add(e) : s.classList.remove(e);
|
|
82
|
+
}
|
|
83
|
+
} else
|
|
84
|
+
return;
|
|
85
|
+
}, A = new WeakSet(), D = function(s, t) {
|
|
86
|
+
t.subscribe(({ current: e, previous: i }) => {
|
|
87
|
+
i && [i].flat().forEach((n) => {
|
|
88
|
+
n && s.classList.remove(n);
|
|
89
|
+
}), e && [e].flat().forEach((n) => {
|
|
90
|
+
n && s.classList.add(n);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}, C = new WeakSet(), G = function(s, t, e) {
|
|
94
|
+
e.subscribe(({ current: i }) => {
|
|
95
|
+
i ? s.classList.add(t) : s.classList.remove(t);
|
|
96
|
+
});
|
|
97
|
+
}, T = new WeakSet(), I = function(s, t) {
|
|
98
|
+
if (!t)
|
|
99
|
+
return;
|
|
100
|
+
s.tagName === "style" || s.tagName === "STYLE" ? r(this, y, q).call(this, s, t) : r(this, p, Q).call(this, s, t);
|
|
101
|
+
}, p = new WeakSet(), Q = function(s, t) {
|
|
102
|
+
for (const e in t) {
|
|
103
|
+
const i = e, n = t[i];
|
|
104
|
+
n instanceof c ? n.subscribe(({ current: a }) => {
|
|
105
|
+
r(this, E, R).call(this, s, i, a);
|
|
106
|
+
}) : r(this, E, R).call(this, s, i, n);
|
|
107
|
+
}
|
|
108
|
+
}, y = new WeakSet(), q = function(s, t) {
|
|
109
|
+
for (const e in t) {
|
|
110
|
+
const i = t[e];
|
|
111
|
+
if (typeof i == "object" && !(i instanceof c))
|
|
112
|
+
s.appendChild(new Text(`${e} {`)), r(this, y, q).call(this, s, i), s.appendChild(new Text("}"));
|
|
113
|
+
else if (i instanceof c) {
|
|
114
|
+
const n = new Text();
|
|
115
|
+
i.subscribe((a) => {
|
|
116
|
+
a.current ? n.nodeValue = `${U(e)}: ${a.current};` : n.nodeValue = "";
|
|
117
|
+
}), s.appendChild(n);
|
|
118
|
+
} else
|
|
119
|
+
s.appendChild(new Text(`${U(e)}: ${i};`));
|
|
120
|
+
}
|
|
121
|
+
}, E = new WeakSet(), R = function(s, t, e) {
|
|
122
|
+
t.includes("--") ? e ? s.style.setProperty(t, e) : s.style.removeProperty(t) : e ? s.style[t] = e : s.style[t] = "";
|
|
123
|
+
}, x = new WeakSet(), X = function(s, t) {
|
|
124
|
+
if (t)
|
|
125
|
+
for (const e in t) {
|
|
126
|
+
const i = e, n = t[i];
|
|
127
|
+
typeof n == "object" ? s.addEventListener(
|
|
128
|
+
i,
|
|
129
|
+
n.callback,
|
|
130
|
+
n.options
|
|
131
|
+
) : typeof n == "function" && s.addEventListener(i, n);
|
|
132
|
+
}
|
|
133
|
+
}, P = new WeakSet(), Z = function(s, t) {
|
|
134
|
+
for (const e in t) {
|
|
135
|
+
const i = t[e];
|
|
136
|
+
i instanceof c ? i.subscribe(({ current: n }) => {
|
|
137
|
+
r(this, S, V).call(this, s, e, n);
|
|
138
|
+
}) : r(this, S, V).call(this, s, e, i);
|
|
139
|
+
}
|
|
140
|
+
}, S = new WeakSet(), V = function(s, t, e) {
|
|
141
|
+
var i, n;
|
|
142
|
+
t in s && !((n = (i = s.constructor) == null ? void 0 : i.observedAttributes) != null && n.includes(t)) ? e != null && (s[t] = e.toString()) : e != null && s.setAttribute(t, e.toString());
|
|
143
|
+
}, g = new WeakSet(), W = function(s, t) {
|
|
144
|
+
t && (t = [t].flat(), t.forEach((e) => {
|
|
145
|
+
if (e instanceof c) {
|
|
146
|
+
const i = document.createElement("div");
|
|
147
|
+
i.style.display = "contents", s.appendChild(i), e.subscribe(({ current: n }) => {
|
|
148
|
+
r(this, k, O).call(this, i, r(this, $, _).call(this, n), Array.from(i.childNodes));
|
|
149
|
+
});
|
|
150
|
+
} else if (e instanceof u)
|
|
151
|
+
s.append(...e.rootElements);
|
|
152
|
+
else {
|
|
153
|
+
const i = r(this, L, F).call(this, e);
|
|
154
|
+
i instanceof Node && s.append(i);
|
|
155
|
+
}
|
|
156
|
+
}));
|
|
157
|
+
}, $ = new WeakSet(), _ = function(s) {
|
|
158
|
+
return [s].flat().map((e) => e instanceof u ? e.rootElements : r(this, L, F).call(this, e)).flat().filter(Boolean);
|
|
159
|
+
}, k = new WeakSet(), O = function(s, t, e) {
|
|
160
|
+
e.forEach((i, n) => {
|
|
161
|
+
if (n < t.length) {
|
|
162
|
+
const a = t[n];
|
|
163
|
+
r(this, B, j).call(this, i, a) || s.replaceChild(a, i);
|
|
164
|
+
} else
|
|
165
|
+
s.removeChild(i);
|
|
166
|
+
});
|
|
167
|
+
for (let i = e.length; i < t.length; i++)
|
|
168
|
+
s.appendChild(t[i]);
|
|
169
|
+
}, B = new WeakSet(), j = function(s, t) {
|
|
170
|
+
return t ? t instanceof Node ? s.isEqualNode(t) : s.textContent === t.toString() : !1;
|
|
171
|
+
}, L = new WeakSet(), F = function(s) {
|
|
172
|
+
if (s instanceof Node)
|
|
173
|
+
return s;
|
|
174
|
+
if (s != null) {
|
|
175
|
+
const t = String(s);
|
|
176
|
+
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
177
|
+
const e = document.createElement("div");
|
|
178
|
+
return e.innerHTML = t, e.firstElementChild;
|
|
179
|
+
} else
|
|
180
|
+
return new Text(t);
|
|
181
|
+
} else
|
|
182
|
+
return;
|
|
183
|
+
}, H = new WeakSet(), tt = function(s, t) {
|
|
184
|
+
if (!t)
|
|
185
|
+
return;
|
|
186
|
+
(t instanceof u ? t.rootElements[0] : t).appendChild(s);
|
|
187
|
+
};
|
|
188
|
+
let w = u;
|
|
189
|
+
function ot(...f) {
|
|
190
|
+
return new w(...f);
|
|
191
|
+
}
|
|
192
|
+
function ft(...f) {
|
|
193
|
+
return () => new w(...f);
|
|
194
|
+
}
|
|
195
|
+
export {
|
|
196
|
+
w as E,
|
|
197
|
+
ft as a,
|
|
198
|
+
ot as e
|
|
199
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var H=(f,e,t)=>{if(!e.has(f))throw TypeError("Cannot "+t)};var W=(f,e,t)=>(H(f,e,"read from private field"),t?t.call(f):e.get(f)),o=(f,e,t)=>{if(e.has(f))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(f):e.set(f,t)},N=(f,e,t,s)=>(H(f,e,"write to private field"),s?s.call(f,t):e.set(f,t),t);var r=(f,e,t)=>(H(f,e,"access private method"),t);const c=require("./Store-BOOfmlyv.cjs"),et=require("./browser-CpzFX2xg.cjs"),U=require("./string-DzUwFYSS.cjs");var l,v,Y,C,z,d,w,y,J,T,D,m,G,A,I,x,Q,S,M,E,F,p,X,q,Z,g,K,b,R,P,_,$,O,k,j,L,V,B,tt;const u=class u{constructor(...e){o(this,v);o(this,C);o(this,d);o(this,y);o(this,T);o(this,m);o(this,A);o(this,x);o(this,S);o(this,E);o(this,p);o(this,q);o(this,g);o(this,b);o(this,P);o(this,$);o(this,k);o(this,L);o(this,B);o(this,l,[]);const t=e[0],s=e[1];if(et.isBrowser)if(typeof t=="string"){const i=document.createElement("div");i.innerHTML=t;const n=i.firstElementChild;N(this,l,[n]),r(this,d,w).call(this,n,s)}else t instanceof HTMLElement?(N(this,l,[t]),r(this,d,w).call(this,t,s)):N(this,l,r(this,v,Y).call(this,t))}get rootElements(){return W(this,l)}};l=new WeakMap,v=new WeakSet,Y=function(e){const t=[];for(const s in e){const i=s,n=e[i],a=r(this,C,z).call(this,i,n==null?void 0:n.svg);n&&r(this,d,w).call(this,a,n),t.push(a)}return t},C=new WeakSet,z=function(e,t=!1){let s=null;return e.includes("-")?s=new(customElements.get(e)):t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e),s},d=new WeakSet,w=function(e,t){for(const s in t){const i=s;i==="class"?r(this,y,J).call(this,e,t[i]):i==="style"?r(this,A,I).call(this,e,t[i]):i==="events"?r(this,p,X).call(this,e,t[i]):i==="attributes"?r(this,q,Z).call(this,e,t[i]):i==="children"?r(this,b,R).call(this,e,t[i]):i==="shadowChildren"?r(this,b,R).call(this,e.shadowRoot||e,t[i]):i==="parent"&&r(this,B,tt).call(this,e,t[i])}t!=null&&t.ref&&(typeof(t==null?void 0:t.ref)=="function"?t.ref(e):t.ref.current=e)},y=new WeakSet,J=function(e,t){if(t){if(typeof t=="string")e.classList.add(t);else if(Array.isArray(t))t.forEach(s=>{r(this,y,J).call(this,e,s)});else if(typeof t=="object")if(t instanceof c.Store)r(this,T,D).call(this,e,t);else for(const s in t){const i=t[s];i instanceof c.Store?r(this,m,G).call(this,e,s,i):i?e.classList.add(s):e.classList.remove(s)}}else return},T=new WeakSet,D=function(e,t){t.subscribe(({current:s,previous:i})=>{i&&[i].flat().forEach(n=>{n&&e.classList.remove(n)}),s&&[s].flat().forEach(n=>{n&&e.classList.add(n)})})},m=new WeakSet,G=function(e,t,s){s.subscribe(({current:i})=>{i?e.classList.add(t):e.classList.remove(t)})},A=new WeakSet,I=function(e,t){if(!t)return;e.tagName==="style"||e.tagName==="STYLE"?r(this,S,M).call(this,e,t):r(this,x,Q).call(this,e,t)},x=new WeakSet,Q=function(e,t){for(const s in t){const i=s,n=t[i];n instanceof c.Store?n.subscribe(({current:a})=>{r(this,E,F).call(this,e,i,a)}):r(this,E,F).call(this,e,i,n)}},S=new WeakSet,M=function(e,t){for(const s in t){const i=t[s];if(typeof i=="object"&&!(i instanceof c.Store))e.appendChild(new Text(`${s} {`)),r(this,S,M).call(this,e,i),e.appendChild(new Text("}"));else if(i instanceof c.Store){const n=new Text;i.subscribe(a=>{a.current?n.nodeValue=`${U.camelToKebab(s)}: ${a.current};`:n.nodeValue=""}),e.appendChild(n)}else e.appendChild(new Text(`${U.camelToKebab(s)}: ${i};`))}},E=new WeakSet,F=function(e,t,s){t.includes("--")?s?e.style.setProperty(t,s):e.style.removeProperty(t):s?e.style[t]=s:e.style[t]=""},p=new WeakSet,X=function(e,t){if(t)for(const s in t){const i=s,n=t[i];typeof n=="object"?e.addEventListener(i,n.callback,n.options):typeof n=="function"&&e.addEventListener(i,n)}},q=new WeakSet,Z=function(e,t){for(const s in t){const i=t[s];i instanceof c.Store?i.subscribe(({current:n})=>{r(this,g,K).call(this,e,s,n)}):r(this,g,K).call(this,e,s,i)}},g=new WeakSet,K=function(e,t,s){var i,n;t in e&&!((n=(i=e.constructor)==null?void 0:i.observedAttributes)!=null&&n.includes(t))?s!=null&&(e[t]=s.toString()):s!=null&&e.setAttribute(t,s.toString())},b=new WeakSet,R=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof c.Store){const i=document.createElement("div");i.style.display="contents",e.appendChild(i),s.subscribe(({current:n})=>{r(this,$,O).call(this,i,r(this,P,_).call(this,n),Array.from(i.childNodes))})}else if(s instanceof u)e.append(...s.rootElements);else{const i=r(this,L,V).call(this,s);i instanceof Node&&e.append(i)}}))},P=new WeakSet,_=function(e){return[e].flat().map(s=>s instanceof u?s.rootElements:r(this,L,V).call(this,s)).flat().filter(Boolean)},$=new WeakSet,O=function(e,t,s){s.forEach((i,n)=>{if(n<t.length){const a=t[n];r(this,k,j).call(this,i,a)||e.replaceChild(a,i)}else e.removeChild(i)});for(let i=s.length;i<t.length;i++)e.appendChild(t[i])},k=new WeakSet,j=function(e,t){return t?t instanceof Node?e.isEqualNode(t):e.textContent===t.toString():!1},L=new WeakSet,V=function(e){if(e instanceof Node)return e;if(e!=null){const t=String(e);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const s=document.createElement("div");return s.innerHTML=t,s.firstElementChild}else return new Text(t)}else return},B=new WeakSet,tt=function(e,t){if(!t)return;(t instanceof u?t.rootElements[0]:t).appendChild(e)};let h=u;function st(...f){return new h(...f)}function it(...f){return()=>new h(...f)}exports.ElementConstructor=h;exports.element=st;exports.elementFactory=it;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
1
|
+
var M = (r, s, t) => {
|
|
2
2
|
if (!s.has(r))
|
|
3
3
|
throw TypeError("Cannot " + t);
|
|
4
4
|
};
|
|
5
|
-
var n = (r, s, t) => (
|
|
5
|
+
var n = (r, s, t) => (M(r, s, "read from private field"), t ? t.call(r) : s.get(r)), a = (r, s, t) => {
|
|
6
6
|
if (s.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
s instanceof WeakSet ? s.add(r) : s.set(r, t);
|
|
9
|
-
}, h = (r, s, t, i) => (
|
|
9
|
+
}, h = (r, s, t, i) => (M(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
|
|
10
10
|
import { RESIZE_ORDER as I } from "./order/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import { S } from "./Store-
|
|
13
|
-
var l, g, q,
|
|
11
|
+
import { windowResizer as b } from "./window-resizer/index.js";
|
|
12
|
+
import { S } from "./Store-uTyReFzx.js";
|
|
13
|
+
var l, g, q, x, o, p, w;
|
|
14
14
|
class k {
|
|
15
15
|
constructor(s) {
|
|
16
16
|
a(this, l, void 0);
|
|
17
17
|
a(this, g, void 0);
|
|
18
18
|
a(this, q, void 0);
|
|
19
|
-
a(this,
|
|
19
|
+
a(this, x, void 0);
|
|
20
20
|
a(this, o, void 0);
|
|
21
21
|
a(this, p, void 0);
|
|
22
|
-
a(this,
|
|
22
|
+
a(this, w, void 0);
|
|
23
23
|
h(this, l, s);
|
|
24
24
|
const t = s.indexOf("?");
|
|
25
25
|
t >= 0 && (s = s.slice(0, t));
|
|
26
26
|
const i = s.split(".");
|
|
27
27
|
h(this, g, i[0]);
|
|
28
|
-
const
|
|
28
|
+
const d = /\d+x/g, c = i.find((y) => y.match(d));
|
|
29
29
|
h(this, q, c ? parseInt(c) : 1);
|
|
30
|
-
const f = /\d+max/g,
|
|
31
|
-
e ? (h(this, o, parseInt(e)), h(this, p, "max"), h(this,
|
|
30
|
+
const f = /\d+max/g, R = /\d+min/g, e = i.find((y) => y.match(f)), m = i.find((y) => y.match(R));
|
|
31
|
+
e ? (h(this, o, parseInt(e)), h(this, p, "max"), h(this, x, `(max-width: ${n(this, o)}px)`)) : m ? (h(this, o, parseInt(m)), h(this, x, `(min-width: ${n(this, o)}px)`), h(this, p, "min")) : (h(this, o, 0), h(this, x, `(min-width: ${n(this, o)}px)`), h(this, p, "min")), h(this, w, "." + i[i.length - 1]);
|
|
32
32
|
}
|
|
33
33
|
get url() {
|
|
34
34
|
return n(this, l);
|
|
@@ -40,10 +40,10 @@ class k {
|
|
|
40
40
|
return n(this, q);
|
|
41
41
|
}
|
|
42
42
|
get query() {
|
|
43
|
-
return n(this,
|
|
43
|
+
return n(this, x);
|
|
44
44
|
}
|
|
45
45
|
get extension() {
|
|
46
|
-
return n(this,
|
|
46
|
+
return n(this, w);
|
|
47
47
|
}
|
|
48
48
|
get queryType() {
|
|
49
49
|
return n(this, p);
|
|
@@ -52,7 +52,7 @@ class k {
|
|
|
52
52
|
return n(this, o);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
l = new WeakMap(), g = new WeakMap(), q = new WeakMap(),
|
|
55
|
+
l = new WeakMap(), g = new WeakMap(), q = new WeakMap(), x = new WeakMap(), o = new WeakMap(), p = new WeakMap(), w = new WeakMap();
|
|
56
56
|
var u;
|
|
57
57
|
class B {
|
|
58
58
|
constructor(s) {
|
|
@@ -63,8 +63,8 @@ class B {
|
|
|
63
63
|
const m = new k(e);
|
|
64
64
|
i.push([m.query, m]);
|
|
65
65
|
});
|
|
66
|
-
const
|
|
67
|
-
(f ? [...f, ...
|
|
66
|
+
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)");
|
|
67
|
+
(f ? [...f, ...d, ...c] : [...d, ...c]).forEach((e) => {
|
|
68
68
|
n(this, u).has(e[0]) || n(this, u).set(e[0], []), n(this, u).get(e[0]).push(e[1]);
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -73,34 +73,34 @@ class B {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
u = new WeakMap();
|
|
76
|
-
var
|
|
76
|
+
var E, P;
|
|
77
77
|
class A extends S {
|
|
78
78
|
constructor(t) {
|
|
79
79
|
super(void 0);
|
|
80
|
-
a(this,
|
|
81
|
-
a(this,
|
|
80
|
+
a(this, E, void 0);
|
|
81
|
+
a(this, P, () => {
|
|
82
82
|
let t;
|
|
83
|
-
n(this,
|
|
83
|
+
n(this, E).mediaBuckets.forEach((c, f) => {
|
|
84
84
|
matchMedia(f).matches && (t = c);
|
|
85
85
|
});
|
|
86
|
-
let i,
|
|
86
|
+
let i, d = 0;
|
|
87
87
|
t == null || t.forEach((c) => {
|
|
88
|
-
c.density >
|
|
88
|
+
c.density > d && c.density <= Math.max(devicePixelRatio, 1) && (d = c.density, i = c);
|
|
89
89
|
}), t != null && t.length && !i && (i = t[0]), this.current = i;
|
|
90
90
|
});
|
|
91
|
-
h(this,
|
|
91
|
+
h(this, E, new B(t.srcset));
|
|
92
92
|
}
|
|
93
93
|
close() {
|
|
94
94
|
super.close(), this.disconnect();
|
|
95
95
|
}
|
|
96
96
|
connect() {
|
|
97
|
-
b.subscribe(n(this,
|
|
97
|
+
b.subscribe(n(this, P), I.SOURCE_MANAGER);
|
|
98
98
|
}
|
|
99
99
|
disconnect() {
|
|
100
|
-
b.unsubscribe(n(this,
|
|
100
|
+
b.unsubscribe(n(this, P));
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
E = new WeakMap(), P = new WeakMap();
|
|
104
104
|
export {
|
|
105
105
|
A as S,
|
|
106
106
|
k as a,
|
|
@@ -0,0 +1 @@
|
|
|
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-BOOfmlyv.cjs");var l,g,q,x,a,p,w;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,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,g,i[0]);const m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,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,g)}get density(){return n(this,q)}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,g=new WeakMap,q=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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var v=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(v(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,c)=>(v(s,t,"write to private field"),c?c.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(v(s,t,"access private method"),e);const A=require("./browser-CpzFX2xg.cjs");var l,o,S;class M{constructor(){a(this,l,null);a(this,o,"");a(this,S,"");A.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),u.current.forEach(e=>{this.updateStore(e)}))}resetState(){u.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var c,p;if(!Array.isArray((c=r(this,l))==null?void 0:c.stores))return t;const e=t.passport;if(e){const N=(p=r(this,l))==null?void 0:p.stores.find(z=>z.name===e.name);N&&(t.current=N.value)}return t}getState(){const t={stores:[]};return u.current.forEach(e=>{e.passport&&t.stores.push({value:e.current,name:e.passport.name})}),t}}l=new WeakMap,o=new WeakMap,S=new WeakMap;const E=new M;var d,m,g,f,y,n,b,h,w,q;class j{constructor(t,e){a(this,w);a(this,d,void 0);a(this,m,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,n,new Set);a(this,b,void 0);a(this,h,void 0);i(this,d,e==null?void 0:e.passport),i(this,m,t),i(this,g,void 0),i(this,f,t),i(this,y,(e==null?void 0:e.equalityCheck)||((c,p)=>c===p)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&E.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,y).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,h))for(const e of r(this,h))t=e(t);i(this,f,t),R(this,w,q).call(this)}}get subscribers(){return r(this,n)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,h)||i(this,h,new Set),r(this,h).add(t)}removeMiddleware(t){var e,c;(e=r(this,h))==null||e.delete(t),(c=r(this,h))!=null&&c.size||i(this,h,void 0)}subscribe(t){return r(this,d)&&!r(this,n).size&&C(this),r(this,n).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,d)&&!r(this,n).size&&k(this)}reset(){this.current=this.initial}close(){r(this,n).clear(),r(this,d)&&k(this)}}d=new WeakMap,m=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,n=new WeakMap,b=new WeakMap,h=new WeakMap,w=new WeakSet,q=function(){for(const t of r(this,n))t(this.entry)};const u=new j([]);function C(s){u.current.find(t=>t.passport.name===s.passport.name)||(u.current=[...u.current,s])}function k(s){u.current.includes(s)&&(u.current=u.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=u;exports.storeRegistry=E;
|