aptechka 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/animation/Animation.d.ts +34 -0
- package/lib/animation/Damped.d.ts +18 -0
- package/lib/animation/Tweened.d.ts +14 -0
- package/lib/animation/index.d.ts +3 -0
- package/lib/attribute/index.d.ts +14 -0
- package/lib/canvas/index.d.ts +34 -0
- package/lib/class-linked-status/index.d.ts +11 -0
- package/lib/connector/index.d.ts +15 -0
- package/lib/controls/AutoplayControls.d.ts +16 -0
- package/lib/controls/Controls.d.ts +8 -0
- package/lib/controls/DragControls.d.ts +15 -0
- package/lib/controls/KeyboardControls.d.ts +13 -0
- package/lib/controls/WheelControls.d.ts +18 -0
- package/lib/controls/index.d.ts +5 -0
- package/lib/css-property/index.d.ts +16 -0
- package/lib/css-unit-parser/index.d.ts +6 -0
- package/lib/css-value-parser/index.d.ts +6 -0
- package/lib/dev/index.d.ts +1 -0
- package/lib/device/Device.d.ts +18 -0
- package/lib/device/Viewport.d.ts +28 -0
- package/lib/device/index.d.ts +2 -0
- package/lib/element-resizer/index.d.ts +9 -0
- package/lib/en3/En3Raycaster.d.ts +20 -0
- package/lib/en3/En3View.d.ts +39 -0
- package/lib/en3/en3.d.ts +36 -0
- package/lib/en3/index.d.ts +7 -0
- package/lib/en3/utils/coverTexture.d.ts +6 -0
- package/lib/en3/utils/dispose.d.ts +2 -0
- package/lib/en3/utils/getCurrentViewport.d.ts +8 -0
- package/lib/en3/utils/traverseMaterials.d.ts +2 -0
- package/lib/en3/utils/traverseMeshes.d.ts +2 -0
- package/lib/image/index.d.ts +10 -0
- package/lib/intersector/index.d.ts +9 -0
- package/lib/ladder/index.d.ts +23 -0
- package/lib/layout-box/index.d.ts +95 -0
- package/lib/loading/index.d.ts +38 -0
- package/lib/media/index.d.ts +11 -0
- package/lib/need_redo_tweaker/CheckboxElement.d.ts +14 -0
- package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerElement.d.ts +17 -0
- package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +19 -0
- package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +23 -0
- package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +13 -0
- package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +9 -0
- package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +74 -0
- package/lib/need_redo_tweaker/element-constructor/createStylesheet.d.ts +2 -0
- package/lib/need_redo_tweaker/element-constructor/createTheme.d.ts +12 -0
- package/lib/need_redo_tweaker/element-constructor/index.d.ts +4 -0
- package/lib/need_redo_tweaker/element-constructor/knownSvgTags.d.ts +1 -0
- package/lib/need_redo_tweaker/element-constructor/tags.d.ts +118 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.d.ts +1 -0
- package/lib/need_redo_tweaker/index.js +847 -464
- package/lib/need_redo_tweaker/select/SelectElement.d.ts +24 -0
- package/lib/need_redo_tweaker/select/SelectHeadElement.d.ts +12 -0
- package/lib/need_redo_tweaker/select/SelectOptionElement.d.ts +13 -0
- package/lib/need_redo_tweaker/select/SelectUserElement.d.ts +6 -0
- package/lib/need_redo_tweaker/select/index.d.ts +4 -0
- package/lib/need_redo_tweaker/theme/index.d.ts +35 -0
- package/lib/need_redo_tweaker/tweakerManagerConstructors.d.ts +14 -0
- package/lib/need_redo_tweaker/tweakerStorage.d.ts +23 -0
- package/lib/notifier/index.d.ts +8 -0
- package/lib/object-DOa0yKM9.js +114 -0
- package/lib/object-HBC5QlzO.cjs +1 -0
- package/lib/order/index.d.ts +22 -0
- package/lib/pointer/Pointer.d.ts +22 -0
- package/lib/pointer/PointerElement.d.ts +13 -0
- package/lib/pointer/index.d.ts +2 -0
- package/lib/popover/PopoverButtonElement.d.ts +14 -0
- package/lib/popover/PopoverElement.d.ts +25 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/scroll/ScrollBulletButtonsElement.d.ts +11 -0
- package/lib/scroll/ScrollButtonElement.d.ts +5 -0
- package/lib/scroll/ScrollElement.d.ts +81 -0
- package/lib/scroll/ScrollSection.d.ts +22 -0
- package/lib/scroll/ScrollSegmentElement.d.ts +62 -0
- package/lib/scroll/ScrollSetButtonElement.d.ts +9 -0
- package/lib/scroll/ScrollStepButtonElement.d.ts +9 -0
- package/lib/scroll/ScrollUserElement.d.ts +6 -0
- package/lib/scroll/ScrollbarElement.d.ts +13 -0
- package/lib/scroll/index.d.ts +6 -0
- package/lib/scroll-entries/index.d.ts +20 -0
- package/lib/sequence/index.d.ts +20 -0
- package/lib/slicer/Letter.d.ts +11 -0
- package/lib/slicer/SlicerElement.d.ts +20 -0
- package/lib/slicer/Word.d.ts +16 -0
- package/lib/slicer/index.d.ts +3 -0
- package/lib/source/SourceClass.d.ts +11 -0
- package/lib/source/SourceElement.d.ts +24 -0
- package/lib/source/SourceManager.d.ts +13 -0
- package/lib/source/SourceSet.d.ts +8 -0
- package/lib/source/index.d.ts +4 -0
- package/lib/store/Composed.d.ts +7 -0
- package/lib/store/Derived.d.ts +7 -0
- package/lib/store/DerivedArray.d.ts +7 -0
- package/lib/store/Resource.d.ts +11 -0
- package/lib/store/Store.d.ts +35 -0
- package/lib/store/StoreRegistry.d.ts +22 -0
- package/lib/store/index.d.ts +6 -0
- package/lib/test/starting-style/index.d.ts +1 -0
- package/lib/ticker/index.d.ts +21 -0
- package/lib/utils/array.d.ts +2 -0
- package/lib/utils/attributes.d.ts +2 -0
- package/lib/utils/browser.d.ts +1 -0
- package/lib/utils/bytes.d.ts +1 -0
- package/lib/utils/canvas.d.ts +7 -0
- package/lib/utils/collisions.d.ts +3 -0
- package/lib/utils/coordinates.d.ts +13 -0
- package/lib/utils/cssom.d.ts +5 -0
- package/lib/utils/decoding.d.ts +2 -0
- package/lib/utils/dom.d.ts +5 -0
- package/lib/utils/easings.d.ts +17 -0
- package/lib/utils/events.d.ts +8 -0
- package/lib/utils/file.d.ts +1 -0
- package/lib/utils/function.d.ts +2 -0
- package/lib/utils/gestures.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +27 -0
- package/lib/utils/index.js +155 -140
- package/lib/utils/jss.d.ts +12 -0
- package/lib/utils/layout.d.ts +3 -0
- package/lib/utils/math.d.ts +11 -0
- package/lib/utils/number.d.ts +3 -0
- package/lib/utils/object.d.ts +9 -0
- package/lib/utils/polyfills.d.ts +1 -0
- package/lib/utils/promises.d.ts +1 -0
- package/lib/utils/string.d.ts +8 -0
- package/lib/utils/style.d.ts +2 -0
- package/lib/utils/ts-shape.d.ts +20 -0
- package/lib/utils/ts-utility.d.ts +26 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/video/index.d.ts +21 -0
- package/lib/window-resizer/index.d.ts +9 -0
- package/package.json +3 -29
- package/lib/element-constructor/index.cjs +0 -1
- package/lib/element-constructor/index.js +0 -850
- package/lib/file-BEr-o55N.js +0 -31
- package/lib/file-C9BbxzVU.cjs +0 -1
- package/lib/morph/index.cjs +0 -1
- package/lib/morph/index.js +0 -225
- package/lib/object-CCiXnER2.cjs +0 -1
- package/lib/object-D6MVWB4l.js +0 -85
- package/lib/router/index.cjs +0 -1
- package/lib/router/index.js +0 -266
- package/lib/url-C3dWnJQg.cjs +0 -1
- package/lib/url-DMNfW7uN.js +0 -22
package/lib/utils/index.js
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { i as
|
|
3
|
-
import { a as
|
|
4
|
-
import { g as
|
|
5
|
-
import { f as
|
|
6
|
-
import { c as
|
|
7
|
-
import { c as
|
|
8
|
-
import { d as
|
|
9
|
-
import { s as
|
|
10
|
-
import { c as
|
|
11
|
-
import { g as
|
|
12
|
-
import { e as
|
|
13
|
-
import { n as
|
|
14
|
-
import { c as
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function i(a, e, ...t) {
|
|
19
|
-
return [...a.slice(0, e), ...t, ...a.slice(e)];
|
|
1
|
+
import { a as O, p as b } from "../attributes-69we3byR.js";
|
|
2
|
+
import { i as I } from "../browser-0zX67oeU.js";
|
|
3
|
+
import { a as T, c as A, f as Q, m as W } from "../canvas-DeZ0SLUJ.js";
|
|
4
|
+
import { g as M, n as R, s as z } from "../coordinates-CgdGoSYs.js";
|
|
5
|
+
import { f as v, b as $, a as j, g as N } from "../dom-0S_WDL4g.js";
|
|
6
|
+
import { c as U, n as F, f as K, p as q, b as G, i as H, m as J, e as L, g as Y, j as Z, d as X, o as _, a as tt, h as et, k as st, l as at } from "../easings-BKi40vHz.js";
|
|
7
|
+
import { b as nt, f as rt, c as it, a as ct, d as ut, g as lt, e as ft, i as pt, m as mt, h as ht, o as dt, p as gt } from "../object-DOa0yKM9.js";
|
|
8
|
+
import { d as St, t as yt } from "../function-C10DGppn.js";
|
|
9
|
+
import { s as Et } from "../gestures-D2Fdra_G.js";
|
|
10
|
+
import { c as Ot, s as bt } from "../jss-CjccJC-K.js";
|
|
11
|
+
import { g as It, a as Pt, b as Tt } from "../layout-HoBT_Da2.js";
|
|
12
|
+
import { e as Qt, f as Wt, c as Dt, d as Mt, l as Rt, m as zt, r as kt, b as vt, a as $t, s as jt } from "../math-BOBiC4TN.js";
|
|
13
|
+
import { n as Vt, p as Ut, r as Ft, t as Kt } from "../polyfills-X6KXuHg-.js";
|
|
14
|
+
import { c as Gt, a as Ht, g as Jt, i as Lt, k as Yt, s as Zt, t as Xt, u as _t } from "../string-f0Dnk0L1.js";
|
|
15
|
+
import { g as ee, a as se } from "../style-j2TwriJ_.js";
|
|
16
|
+
function u(t, e, ...s) {
|
|
17
|
+
return [...t.slice(0, e), ...s, ...t.slice(e)];
|
|
20
18
|
}
|
|
21
|
-
function
|
|
22
|
-
const
|
|
23
|
-
e = e %
|
|
24
|
-
const
|
|
25
|
-
for (let o = 0; o <
|
|
26
|
-
const n = (o + e) %
|
|
27
|
-
|
|
19
|
+
function l(t, e) {
|
|
20
|
+
const s = t.length;
|
|
21
|
+
e = e % s;
|
|
22
|
+
const a = new Array(s);
|
|
23
|
+
for (let o = 0; o < s; o++) {
|
|
24
|
+
const n = (o + e) % s;
|
|
25
|
+
a[n] = t[o];
|
|
28
26
|
}
|
|
29
|
-
return
|
|
27
|
+
return a;
|
|
30
28
|
}
|
|
31
|
-
function
|
|
32
|
-
if (!+
|
|
33
|
-
const
|
|
29
|
+
function f(t, e = 2) {
|
|
30
|
+
if (!+t) return "0 Bytes";
|
|
31
|
+
const s = 1024, a = e < 0 ? 0 : e, o = [
|
|
34
32
|
"Bytes",
|
|
35
33
|
"KiB",
|
|
36
34
|
"MiB",
|
|
@@ -40,135 +38,152 @@ function u(a, e = 2) {
|
|
|
40
38
|
"EiB",
|
|
41
39
|
"ZiB",
|
|
42
40
|
"YiB"
|
|
43
|
-
], n = Math.floor(Math.log(
|
|
44
|
-
return `${parseFloat((
|
|
41
|
+
], n = Math.floor(Math.log(t) / Math.log(s));
|
|
42
|
+
return `${parseFloat((t / Math.pow(s, n)).toFixed(a))} ${o[n]}`;
|
|
45
43
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
44
|
+
function p(t, e) {
|
|
45
|
+
return t.x < e.x + e.width && t.x > e.x && t.y < e.y + e.height && t.y > e.y;
|
|
48
46
|
}
|
|
49
|
-
function
|
|
50
|
-
return Math.sqrt((
|
|
47
|
+
function m(t, e) {
|
|
48
|
+
return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
|
|
51
49
|
}
|
|
52
|
-
function
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
const
|
|
56
|
-
return
|
|
50
|
+
function c(t, e) {
|
|
51
|
+
const s = t.styleMap.get(e);
|
|
52
|
+
if (s) {
|
|
53
|
+
const a = s.toString();
|
|
54
|
+
return a.startsWith("var") ? c(t, a.slice(4, -1)) : a;
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
|
-
function
|
|
57
|
+
function h(...t) {
|
|
60
58
|
const e = {};
|
|
61
|
-
return Array.from(document.styleSheets).forEach((
|
|
62
|
-
Array.from(
|
|
63
|
-
|
|
64
|
-
const n =
|
|
59
|
+
return Array.from(document.styleSheets).forEach((s) => {
|
|
60
|
+
Array.from(s.cssRules).forEach((a) => {
|
|
61
|
+
a instanceof CSSStyleRule && a.selectorText === ":root" && t.forEach((o) => {
|
|
62
|
+
const n = c(a, o);
|
|
65
63
|
n && (e[o] = n);
|
|
66
64
|
});
|
|
67
65
|
});
|
|
68
|
-
}),
|
|
69
|
-
e[
|
|
66
|
+
}), t.forEach((s) => {
|
|
67
|
+
e[s] || console.warn(`variable named ${s} not found`);
|
|
70
68
|
}), e;
|
|
71
69
|
}
|
|
72
|
-
function
|
|
73
|
-
const e = window.atob(
|
|
70
|
+
function d(t) {
|
|
71
|
+
const e = window.atob(t);
|
|
74
72
|
return decodeURIComponent(window.escape(e));
|
|
75
73
|
}
|
|
76
|
-
function
|
|
77
|
-
const e = window.unescape(encodeURIComponent(
|
|
74
|
+
function g(t) {
|
|
75
|
+
const e = window.unescape(encodeURIComponent(t));
|
|
78
76
|
return window.btoa(e);
|
|
79
77
|
}
|
|
80
|
-
function
|
|
78
|
+
function x(t) {
|
|
81
79
|
return new Promise((e) => {
|
|
82
80
|
setTimeout(() => {
|
|
83
81
|
e();
|
|
84
|
-
},
|
|
82
|
+
}, t);
|
|
85
83
|
});
|
|
86
84
|
}
|
|
85
|
+
function S(t, e = "") {
|
|
86
|
+
e = e.endsWith("/") ? e.slice(0, -1) : e, t = t.replace(e, ""), t.startsWith("/") && (t = t.slice(1));
|
|
87
|
+
const s = t.split("#"), a = s[0].split("?"), o = a[0].startsWith("/") ? a[0] : "/" + a[0], n = e + o, i = a == null ? void 0 : a[1], r = s == null ? void 0 : s[1];
|
|
88
|
+
return {
|
|
89
|
+
leaf: o,
|
|
90
|
+
pathname: n,
|
|
91
|
+
parameters: i,
|
|
92
|
+
hash: r
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function y(t = "/") {
|
|
96
|
+
return t.endsWith("/") || (t += "/"), t.startsWith("/") || (t += "/"), t;
|
|
97
|
+
}
|
|
98
|
+
function C(t, e, s, a) {
|
|
99
|
+
const o = s || location.search, n = a ? a.startsWith("#") ? a : "#" + a : "", i = o ? o.startsWith("?") ? o : "?" + o : "", r = `${e}${n}${i}`;
|
|
100
|
+
t === "push" ? history.pushState(null, "", r) : t === "replace" && history.replaceState(null, "", r);
|
|
101
|
+
}
|
|
87
102
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
103
|
+
Qt as calculateDistance,
|
|
104
|
+
Wt as calculateDistanceWithRadius,
|
|
105
|
+
Gt as camelToKebab,
|
|
106
|
+
Ht as capitalize,
|
|
107
|
+
C as changeHistory,
|
|
108
|
+
Dt as clamp,
|
|
109
|
+
nt as cloneDeep,
|
|
110
|
+
rt as compareObjects,
|
|
111
|
+
T as contain,
|
|
112
|
+
A as cover,
|
|
113
|
+
it as createJSONAndSave,
|
|
114
|
+
Ot as createStylesheet,
|
|
115
|
+
Mt as damp,
|
|
116
|
+
St as debounce,
|
|
117
|
+
g as decode,
|
|
118
|
+
ct as dispatchBeforeSizeChangeEvent,
|
|
119
|
+
ut as dispatchSizeChangeEvent,
|
|
120
|
+
m as dotCircleCollision,
|
|
121
|
+
p as dotRectCollision,
|
|
122
|
+
U as easeInCubic,
|
|
123
|
+
F as easeInExpo,
|
|
124
|
+
K as easeInOutCubic,
|
|
125
|
+
q as easeInOutExpo,
|
|
126
|
+
G as easeInOutQuad,
|
|
127
|
+
H as easeInOutQuart,
|
|
128
|
+
J as easeInOutQuint,
|
|
129
|
+
L as easeInQuad,
|
|
130
|
+
Y as easeInQuart,
|
|
131
|
+
Z as easeInQuint,
|
|
132
|
+
X as easeOutCubic,
|
|
133
|
+
_ as easeOutExpo,
|
|
134
|
+
tt as easeOutQuad,
|
|
135
|
+
et as easeOutQuart,
|
|
136
|
+
st as easeOutQuint,
|
|
137
|
+
d as encode,
|
|
138
|
+
v as findParentElement,
|
|
139
|
+
$ as findScrollParentElement,
|
|
140
|
+
Q as fixPosition,
|
|
141
|
+
f as formatBytes,
|
|
142
|
+
Jt as generateId,
|
|
143
|
+
j as getAllParentElements,
|
|
144
|
+
It as getCumulativeOffsetLeft,
|
|
145
|
+
Pt as getCumulativeOffsetTop,
|
|
146
|
+
Tt as getCumulativePosition,
|
|
147
|
+
N as getElement,
|
|
148
|
+
ee as getElementTransitionDurationMS,
|
|
149
|
+
se as getElementTransitionDurationS,
|
|
150
|
+
M as getPointerPosition,
|
|
151
|
+
h as getRootVariables,
|
|
152
|
+
u as insert,
|
|
153
|
+
I as isBrowser,
|
|
154
|
+
lt as isESClass,
|
|
155
|
+
ft as isNullish,
|
|
156
|
+
pt as isObject,
|
|
157
|
+
Lt as isUppercase,
|
|
158
|
+
Yt as kebabToCamel,
|
|
159
|
+
Rt as lerp,
|
|
160
|
+
at as linear,
|
|
161
|
+
zt as mapRange,
|
|
162
|
+
W as measureText,
|
|
163
|
+
mt as mergeDeep,
|
|
164
|
+
ht as mixin,
|
|
165
|
+
R as normalize,
|
|
166
|
+
y as normalizeBase,
|
|
167
|
+
Vt as nullishCoalescing,
|
|
168
|
+
dt as omit,
|
|
169
|
+
O as parseAttribute,
|
|
170
|
+
b as parseAttributeValue,
|
|
171
|
+
gt as pick,
|
|
172
|
+
Ut as preciseNumber,
|
|
173
|
+
kt as round,
|
|
174
|
+
Ft as roundNumberTo,
|
|
175
|
+
z as screenToCartesian,
|
|
176
|
+
Et as setupDrag,
|
|
177
|
+
l as shiftArray,
|
|
178
|
+
vt as smootherstep,
|
|
179
|
+
$t as smoothstep,
|
|
180
|
+
Zt as snakeToDotted,
|
|
181
|
+
S as splitPath,
|
|
182
|
+
jt as step,
|
|
183
|
+
bt as styleToString,
|
|
184
|
+
yt as throttle,
|
|
185
|
+
Xt as toPascalCase,
|
|
186
|
+
Kt as toStep,
|
|
187
|
+
_t as uncapitalize,
|
|
188
|
+
x as wait
|
|
174
189
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type StyleToken = Exclude<Extract<keyof CSSStyleDeclaration, string> | `--${string}`, 'length' | 'parentRule'>;
|
|
2
|
+
export type StyleAttribute = Partial<{
|
|
3
|
+
[K in StyleToken]: string | number;
|
|
4
|
+
}>;
|
|
5
|
+
export type StyleWrapper = {
|
|
6
|
+
[key: string]: object | StyleAttribute;
|
|
7
|
+
};
|
|
8
|
+
export type Style = StyleAttribute | {
|
|
9
|
+
[key: string]: StyleWrapper | StyleAttribute;
|
|
10
|
+
};
|
|
11
|
+
export declare function styleToString(object: Style): string;
|
|
12
|
+
export declare function createStylesheet(object: Style): CSSStyleSheet;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const getCumulativePosition: (target: HTMLElement, from?: "offsetLeft" | "offsetTop", stopElement?: HTMLElement) => number;
|
|
2
|
+
export declare const getCumulativeOffsetLeft: (target: HTMLElement, stopElement?: HTMLElement) => number;
|
|
3
|
+
export declare const getCumulativeOffsetTop: (target: HTMLElement, stopElement?: HTMLElement) => number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dot2D } from './ts-shape.js';
|
|
2
|
+
export declare function lerp(a: number, b: number, c: number): number;
|
|
3
|
+
export declare function damp(a: number, b: number, c: number, dt: number): number;
|
|
4
|
+
export declare function step(edge: number, value: number, x?: number, y?: number): number;
|
|
5
|
+
export declare function round(number: number, precision?: number): number;
|
|
6
|
+
export declare function clamp(number: number, min?: number, max?: number): number;
|
|
7
|
+
export declare function mapRange(value: number, rangeA: [number, number], rangeB: [number, number]): number;
|
|
8
|
+
export declare function smoothstep(x: number, min: number, max: number): number;
|
|
9
|
+
export declare function smootherstep(x: number, min: number, max: number): number;
|
|
10
|
+
export declare function calculateDistance(d1: Dot2D, d2: Dot2D): number;
|
|
11
|
+
export declare function calculateDistanceWithRadius(x1: number, y1: number, r1: number, x2: number, y2: number, r2: number): number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function isObject(value: any): value is object;
|
|
2
|
+
export declare function cloneDeep<T>(obj: T): T;
|
|
3
|
+
export declare function mergeDeep(target: object, source: object, isObjectFunction?: typeof isObject): object;
|
|
4
|
+
export declare function isNullish(value: any): boolean;
|
|
5
|
+
export declare function compareObjects(obj1: any, obj2: any): boolean;
|
|
6
|
+
export declare function pick<T extends object, R extends keyof T>(object: T, keys: Array<R>): Pick<T, R>;
|
|
7
|
+
export declare function omit<T extends object, R extends keyof T>(object: T, keys: Array<R>): Omit<T, R>;
|
|
8
|
+
export declare function isESClass(fn: Function): boolean;
|
|
9
|
+
export declare function mixin(baseClass: any, ...mixins: any[]): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function nullishCoalescing<D, V = D>(value: V, defaultValue: D): D | (V & ({} | null));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wait(dur: number): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function kebabToCamel(kebab: string, capitalize?: boolean): string;
|
|
2
|
+
export declare function camelToKebab(camelCaseString: string): string;
|
|
3
|
+
export declare function snakeToDotted(snake: string): string;
|
|
4
|
+
export declare function toPascalCase(str: string): string;
|
|
5
|
+
export declare function capitalize(string: string, everyWord?: boolean): string;
|
|
6
|
+
export declare function uncapitalize(string: string, everyWord?: boolean): string;
|
|
7
|
+
export declare function generateId(length: number, characters?: string): string;
|
|
8
|
+
export declare function isUppercase(string: string): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Axes2D = 'x' | 'y';
|
|
2
|
+
export type Axes3D = Axes2D | 'z';
|
|
3
|
+
export type Dot2D = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
export type Dimension2D = {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
export type Rect2D = Dot2D & Dimension2D;
|
|
12
|
+
export type Circle = Dot2D & {
|
|
13
|
+
radius: number;
|
|
14
|
+
};
|
|
15
|
+
export type Dot3D = Dot2D & {
|
|
16
|
+
z: number;
|
|
17
|
+
};
|
|
18
|
+
export type Rect3D = Rect2D & {
|
|
19
|
+
depth: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type NestedKeys<T> = T extends Node ? '' : T extends object ? {
|
|
2
|
+
[K in keyof T]: T[K] extends infer U ? `${Extract<K, string>}${NestedKeys<U> extends '' ? '' : '.'}${NestedKeys<U>}` : never;
|
|
3
|
+
}[keyof T] : '';
|
|
4
|
+
export type NestedValueOf<Obj, Key extends string> = Obj extends object ? Key extends `${infer Parent}.${infer Leaf}` ? Parent extends keyof Obj ? NestedValueOf<Obj[Parent], Leaf> : never : Key extends keyof Obj ? Obj[Key] : never : never;
|
|
5
|
+
export type Tail<T extends any[]> = ((...t: T) => void) extends (h: any, ...r: infer R) => void ? R : never;
|
|
6
|
+
export type DeepOmit<T, Path extends string[]> = T extends object ? Path['length'] extends 1 ? Omit<T, Path[0]> : {
|
|
7
|
+
[K in keyof T]: K extends Path[0] ? DeepOmit<T[K], Tail<Path>> : T[K];
|
|
8
|
+
} : T;
|
|
9
|
+
export type DeepPartial<T> = {
|
|
10
|
+
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
11
|
+
};
|
|
12
|
+
export type Requiredish<T> = {
|
|
13
|
+
[K in keyof Required<T>]: T[K];
|
|
14
|
+
};
|
|
15
|
+
export type WithRequired<T, K extends keyof T> = T & {
|
|
16
|
+
[P in K]-?: T[P];
|
|
17
|
+
};
|
|
18
|
+
export type Split<S extends string, D extends string> = string extends S ? string[] : S extends '' ? [] : S extends `${infer T}${D}${infer U}` ? [T, ...Split<U, D>] : [S];
|
|
19
|
+
export type SplitFirst<S extends string, D extends string> = string extends S ? string[] : S extends '' ? [] : S extends `${infer T}${D}${infer U}` ? [T, U] : [S];
|
|
20
|
+
export type KebabToCamel<S extends string> = S extends `${infer T}-${infer U}` ? `${T}${Capitalize<KebabToCamel<U>>}` : S;
|
|
21
|
+
export type CamelToKebab<S extends string> = S extends `${infer T}${infer U}` ? U extends Uncapitalize<U> ? `${Uncapitalize<T>}${CamelToKebab<U>}` : `${Uncapitalize<T>}-${CamelToKebab<U>}` : '';
|
|
22
|
+
export type UndefIndex<T extends any[], I extends number> = {
|
|
23
|
+
[P in keyof T]: P extends Exclude<keyof T, keyof any[]> ? P extends `${I}` ? undefined : T[P] : T[P];
|
|
24
|
+
};
|
|
25
|
+
export type FilterUndefined<T extends any[]> = T extends [] ? [] : T extends [infer H, ...infer R] ? H extends undefined ? FilterUndefined<R> : [H, ...FilterUndefined<R>] : T;
|
|
26
|
+
export type SpliceTuple<T extends any[], I extends number> = FilterUndefined<UndefIndex<T, I>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function splitPath(value: string, base?: string): {
|
|
2
|
+
leaf: string;
|
|
3
|
+
pathname: string;
|
|
4
|
+
parameters: string;
|
|
5
|
+
hash: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function normalizeBase(base?: string): string;
|
|
8
|
+
export type ChangeHistoryAction = 'replace' | 'push' | 'none';
|
|
9
|
+
export declare function changeHistory(action: ChangeHistoryAction, pathname: string, parameters?: string | undefined, hash?: string | undefined): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SourceElement } from '../source';
|
|
2
|
+
export interface ReadyStateChangeEventDetail {
|
|
3
|
+
readyState: number;
|
|
4
|
+
progress: number;
|
|
5
|
+
}
|
|
6
|
+
export type ReadyStateChangeEvent = CustomEvent<ReadyStateChangeEventDetail>;
|
|
7
|
+
export declare class VideoElement extends SourceElement<HTMLVideoElement> {
|
|
8
|
+
#private;
|
|
9
|
+
protected connectedCallback(): void;
|
|
10
|
+
protected disconnectedCallback(): void;
|
|
11
|
+
protected createConsumer(): HTMLVideoElement;
|
|
12
|
+
protected consumeSource(url: string | null): void;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'e-video': VideoElement;
|
|
17
|
+
}
|
|
18
|
+
interface HTMLElementEventMap {
|
|
19
|
+
readyStateChange: ReadyStateChangeEvent;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Notifier } from '../notifier';
|
|
2
|
+
export type WindowResizerCallback = () => void;
|
|
3
|
+
export declare const dispatchWindowResizeEvent: (cause?: any) => void;
|
|
4
|
+
export declare class WindowResizer extends Notifier<WindowResizerCallback> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor();
|
|
7
|
+
subscribe(callback: WindowResizerCallback, order?: number): () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const windowResizer: WindowResizer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -73,11 +73,6 @@
|
|
|
73
73
|
"default": "./lib/device/index.js",
|
|
74
74
|
"types": "./lib/device/index.d.ts"
|
|
75
75
|
},
|
|
76
|
-
"./element-constructor": {
|
|
77
|
-
"require": "./lib/element-constructor/index.cjs",
|
|
78
|
-
"default": "./lib/element-constructor/index.js",
|
|
79
|
-
"types": "./lib/element-constructor/index.d.ts"
|
|
80
|
-
},
|
|
81
76
|
"./element-resizer": {
|
|
82
77
|
"require": "./lib/element-resizer/index.cjs",
|
|
83
78
|
"default": "./lib/element-resizer/index.js",
|
|
@@ -118,11 +113,6 @@
|
|
|
118
113
|
"default": "./lib/media/index.js",
|
|
119
114
|
"types": "./lib/media/index.d.ts"
|
|
120
115
|
},
|
|
121
|
-
"./morph": {
|
|
122
|
-
"require": "./lib/morph/index.cjs",
|
|
123
|
-
"default": "./lib/morph/index.js",
|
|
124
|
-
"types": "./lib/morph/index.d.ts"
|
|
125
|
-
},
|
|
126
116
|
"./notifier": {
|
|
127
117
|
"require": "./lib/notifier/index.cjs",
|
|
128
118
|
"default": "./lib/notifier/index.js",
|
|
@@ -143,11 +133,6 @@
|
|
|
143
133
|
"default": "./lib/popover/index.js",
|
|
144
134
|
"types": "./lib/popover/index.d.ts"
|
|
145
135
|
},
|
|
146
|
-
"./router": {
|
|
147
|
-
"require": "./lib/router/index.cjs",
|
|
148
|
-
"default": "./lib/router/index.js",
|
|
149
|
-
"types": "./lib/router/index.d.ts"
|
|
150
|
-
},
|
|
151
136
|
"./scroll": {
|
|
152
137
|
"require": "./lib/scroll/index.cjs",
|
|
153
138
|
"default": "./lib/scroll/index.js",
|
|
@@ -242,9 +227,6 @@
|
|
|
242
227
|
"device": [
|
|
243
228
|
"lib/device/index.d.ts"
|
|
244
229
|
],
|
|
245
|
-
"element-constructor": [
|
|
246
|
-
"lib/element-constructor/index.d.ts"
|
|
247
|
-
],
|
|
248
230
|
"element-resizer": [
|
|
249
231
|
"lib/element-resizer/index.d.ts"
|
|
250
232
|
],
|
|
@@ -284,9 +266,6 @@
|
|
|
284
266
|
"media": [
|
|
285
267
|
"lib/media/index.d.ts"
|
|
286
268
|
],
|
|
287
|
-
"morph": [
|
|
288
|
-
"lib/morph/index.d.ts"
|
|
289
|
-
],
|
|
290
269
|
"notifier": [
|
|
291
270
|
"lib/notifier/index.d.ts"
|
|
292
271
|
],
|
|
@@ -299,9 +278,6 @@
|
|
|
299
278
|
"popover": [
|
|
300
279
|
"lib/popover/index.d.ts"
|
|
301
280
|
],
|
|
302
|
-
"router": [
|
|
303
|
-
"lib/router/index.d.ts"
|
|
304
|
-
],
|
|
305
281
|
"scroll": [
|
|
306
282
|
"lib/scroll/index.d.ts"
|
|
307
283
|
],
|
|
@@ -353,12 +329,10 @@
|
|
|
353
329
|
},
|
|
354
330
|
"dependencies": {
|
|
355
331
|
"detect-gpu": "^5.0.42",
|
|
356
|
-
"three": "^0.167.1"
|
|
357
|
-
"urlpattern-polyfill": "^10.0.0"
|
|
332
|
+
"three": "^0.167.1"
|
|
358
333
|
},
|
|
359
334
|
"peerDependencies": {
|
|
360
335
|
"detect-gpu": "^5.0.42",
|
|
361
|
-
"three": "^0.167.1"
|
|
362
|
-
"urlpattern-polyfill": "^10.0.0"
|
|
336
|
+
"three": "^0.167.1"
|
|
363
337
|
}
|
|
364
338
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var fe=Object.defineProperty,le=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var he=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var X=e=>{throw TypeError(e)};var Q=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))he.call(t,r)&&Q(e,r,t[r]);if(Y)for(var r of Y(t))me.call(t,r)&&Q(e,r,t[r]);return e},Z=(e,t)=>le(e,de(t));var F=(e,t,r)=>t.has(e)||X("Cannot "+r);var o=(e,t,r)=>(F(e,t,"read from private field"),r?r.call(e):t.get(e)),m=(e,t,r)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),y=(e,t,r,i)=>(F(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),a=(e,t,r)=>(F(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-CDb6RMce.cjs"),_=require("../browser-CpzFX2xg.cjs"),N=require("../string-DhgS_iFl.cjs"),O=require("../object-CCiXnER2.cjs"),we=require("../connector/index.cjs"),pe=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var c,w,d,k,p,b,s,j,ee,te,H,P,ne,re,ie,oe,B,R,se,G,V,ue,K,T,W,z,J,L,A;const x=class x{constructor(...t){m(this,s);m(this,c,null);m(this,w,new Set);m(this,d,new Set);m(this,k);m(this,p);m(this,b);m(this,L,t=>{o(this,w).forEach(r=>{r(t)}),o(this,w).clear()});m(this,A,(t,r)=>{o(this,d).forEach(i=>{i(t,r)}),o(this,d).clear(),a(this,s,V).call(this)});if(_.isBrowser){const r=t[0],i=t[1];y(this,c,a(this,s,j).call(this,r,i==null?void 0:i.forceSvg)),a(this,s,te).call(this,i)}}get node(){return o(this,c)}set node(t){var r;a(this,s,V).call(this),y(this,c,t),(r=o(this,k))==null||r.call(this),o(this,c)instanceof Element&&y(this,p,[...o(this,c).querySelectorAll("store-root")]),a(this,s,G).call(this),a(this,s,H).call(this)}};c=new WeakMap,w=new WeakMap,d=new WeakMap,k=new WeakMap,p=new WeakMap,b=new WeakMap,s=new WeakSet,j=function(t,r){let i=null;if(t instanceof Node)i=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))i=new(customElements.get(t));else if(t.includes("<")){const u=document.createElement("div");u.innerHTML=t,i=u.firstElementChild}else pe.has(t)||r?i=document.createElementNS("http://www.w3.org/2000/svg",t):i=document.createElement(t);else i=document.createElement("div");return i},ee=function(t){return t instanceof HTMLElement||t instanceof SVGElement},te=function(t){if(!t)return;const r=a(this,s,ee).call(this,o(this,c)),i=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,w).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,d).add(t.onDisconnect),delete t.onDisconnect);let u,f;for(const l in t){const h=t[l];l==="class"&&r?a(this,s,P).call(this,h):l==="style"&&r?a(this,s,ie).call(this,h):l==="lightChildren"?a(this,s,T).call(this,o(this,c),h):l==="children"?a(this,s,T).call(this,o(this,c)instanceof Element?o(this,c).shadowRoot||o(this,c):o(this,c),h):l==="connectedClass"?o(this,w).add(()=>{requestAnimationFrame(()=>{o(this,c).classList.add(typeof h=="boolean"?"connected":h)})}):l.startsWith("on")?(f||(f={}),f[l]=h):(u||(u={}),u[l]=h)}a(this,s,ue).call(this,u),a(this,s,se).call(this,f),i&&(typeof i=="function"?i(o(this,c)):i.current=o(this,c)),a(this,s,H).call(this)},H=function(){if(_.isBrowser&&(o(this,d).size||o(this,w).size)){const t=o(this,c)instanceof DocumentFragment?o(this,c).firstChild:o(this,c);y(this,k,we.connector.subscribe(t,{connectCallback:o(this,L),disconnectCallback:o(this,A),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},P=function(t){if(t){if(typeof t=="string")o(this,c).classList.add(t);else if(Array.isArray(t))t.forEach(r=>{r&&a(this,s,P).call(this,r)});else if(typeof t=="object")if(t instanceof S.Store)a(this,s,ne).call(this,t);else for(const r in t){const i=t[r];i instanceof S.Store?a(this,s,re).call(this,r,i):i?o(this,c).classList.add(r):o(this,c).classList.remove(r)}}else return},ne=function(t){o(this,d).add(t.subscribe(({current:r,previous:i})=>{i&&[i].flat().forEach(u=>{u&&o(this,c).classList.remove(u)}),r&&[r].flat().forEach(u=>{u&&o(this,c).classList.add(u)})}))},re=function(t,r){o(this,d).add(r.subscribe(({current:i})=>{i?o(this,c).classList.add(t):o(this,c).classList.remove(t)}))},ie=function(t){if(!t)return;o(this,c).tagName==="style"||o(this,c).tagName==="STYLE"?a(this,s,B).call(this,t):a(this,s,oe).call(this,t)},oe=function(t){for(const r in t){const i=r,u=t[i];u instanceof S.Store?o(this,d).add(u.subscribe(({current:f})=>{a(this,s,R).call(this,i,f)})):a(this,s,R).call(this,i,u)}},B=function(t){for(const r in t){const i=t[r];if(typeof i=="object"&&!(i instanceof S.Store))o(this,c).appendChild(document.createTextNode(`${r} {`)),a(this,s,B).call(this,i),o(this,c).appendChild(document.createTextNode("}"));else if(i instanceof S.Store){const u=document.createTextNode("");o(this,d).add(i.subscribe(f=>{f.current?u.nodeValue=`${N.camelToKebab(r)}: ${f.current};`:u.nodeValue=""})),o(this,c).appendChild(u)}else o(this,c).appendChild(document.createTextNode(`${N.camelToKebab(r)}: ${i};`))}},R=function(t,r){t.includes("--")?r?o(this,c).style.setProperty(t,r.toString()):o(this,c).style.removeProperty(t):r?o(this,c).style[t]=r.toString():o(this,c).style[t]=""},se=function(t){if(t){o(this,b)||y(this,b,[]);for(const r in t){const i=r,u=N.uncapitalize(i.split("on").slice(1).join("on")),f=t[i];typeof f=="object"?o(this,b).push({name:u,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,b).push({name:u,callback:f})}a(this,s,G).call(this)}},G=function(){var t;(t=o(this,b))==null||t.forEach(r=>{o(this,c).addEventListener(r.name,r.callback,r.options)})},V=function(){var t;(t=o(this,b))==null||t.forEach(r=>{o(this,c).removeEventListener(r.name,r.callback,r.options)})},ue=function(t){for(const r in t){const i=t[r];i instanceof S.Store?o(this,d).add(i.subscribe(({current:u})=>{a(this,s,K).call(this,r,u)})):a(this,s,K).call(this,r,i)}},K=function(t,r){var u,f;const i=o(this,c);if(t in i&&!((f=(u=i.constructor)==null?void 0:u.observedAttributes)!=null&&f.includes(t)))r!=null&&(i[t]=r.toString());else if(r!=null){const l=r.toString();t.includes("xlink")?i.setAttributeNS("http://www.w3.org/1999/xlink",t,l):i.setAttribute(t,l)}},T=function(t,r){r&&(r=[r].flat(),r.forEach(i=>{if(i instanceof S.Store){const u=document.createElement("div");u.style.display="contents",t.appendChild(u),o(this,p)||y(this,p,[]);const f=o(this,p).length;u.setAttribute("store-root",""),o(this,p).push(u),o(this,d).add(i.subscribe(({current:l,previous:h})=>{const E=o(this,p)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const q=Array.from(E.childNodes),I=Array.isArray(l)?l:[l],ae=Array.isArray(h)?h:[h],U=[],M=[];q.length&&ae.forEach((g,v)=>{I.includes(g)?M.push(g):U.push(q[v])}),I.forEach((g,v)=>{if(M[v]!=null){if(g!==M[v]){const C=a(this,s,z).call(this,g),D=q[v];C instanceof Node&&!D.isEqualNode(C)?E.replaceChild(C,D):E.removeChild(D)}}else{const C=a(this,s,z).call(this,g);C instanceof Node&&u.appendChild(C)}}),U.forEach(g=>{E.removeChild(g)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof x)a(this,s,W).call(this,t,i.node);else if(i instanceof Function)a(this,s,T).call(this,t,O.isESClass(i)?new i:i());else{const u=a(this,s,J).call(this,i);u instanceof Node&&a(this,s,W).call(this,t,u)}}))},W=function(t,r){!(t instanceof ShadowRoot)&&r instanceof HTMLElement&&r.tagName==="STYLE"?(o(this,w).add(()=>{[...document.head.querySelectorAll("style")].find(u=>u.outerHTML===r.outerHTML)||document.head.appendChild(r)}),o(this,d).add(()=>{r.remove()})):t.appendChild(r)},z=function(t){return t instanceof x?t.node:typeof t=="function"?O.isESClass(t)?new t:t():a(this,s,J).call(this,t)},J=function(t){if(t instanceof Node)return t;if(t!=null){const r=String(t);if(r.trim().startsWith("<")&&r.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=r,i.firstElementChild}else return document.createTextNode(r)}else return},L=new WeakMap,A=new WeakMap;let n=x;function be(...e){return new n(...e)}function ge(e){return new n("a",e)}function ye(e){return new n("abbr",e)}function Se(e){return new n("address",e)}function Ee(e){return new n("area",e)}function Ce(e){return new n("article",e)}function ve(e){return new n("aside",e)}function Ne(e){return new n("audio",e)}function ke(e){return new n("b",e)}function Te(e){return new n("base",e)}function Le(e){return new n("bdi",e)}function Ae(e){return new n("bdo",e)}function xe(e){return new n("blockquote",e)}function qe(e){return new n("body",e)}function Me(e){return new n("br",e)}function De(e){return new n("button",e)}function $e(e){return new n("canvas",e)}function Fe(e){return new n("caption",e)}function He(e){return new n("cite",e)}function Pe(e){return new n("code",e)}function Be(e){return new n("col",e)}function Re(e){return new n("colgroup",e)}function Ge(e){return new n("data",e)}function Ve(e){return new n("datalist",e)}function Ke(e){return new n("dd",e)}function We(e){return new n("del",e)}function ze(e){return new n("details",e)}function Je(e){return new n("dfn",e)}function Ie(e){return new n("dialog",e)}function Ue(e){return new n("div",e)}function Ye(e){return new n("dl",e)}function Qe(e){return new n("dt",e)}function Xe(e){return new n("em",e)}function Ze(e){return new n("embed",e)}function _e(e){return new n("fieldset",e)}function Oe(e){return new n("figcaption",e)}function je(e){return new n("figure",e)}function et(e){return new n("footer",e)}function tt(e){return new n("form",e)}function nt(e){return new n("h1",e)}function rt(e){return new n("h2",e)}function it(e){return new n("h3",e)}function ot(e){return new n("h4",e)}function st(e){return new n("h5",e)}function ut(e){return new n("h6",e)}function ct(e){return new n("head",e)}function at(e){return new n("header",e)}function ft(e){return new n("hgroup",e)}function lt(e){return new n("hr",e)}function dt(e){return new n("html",e)}function ht(e){return new n("i",e)}function mt(e){return new n("iframe",e)}function wt(e){return new n("img",e)}function pt(e){return new n("input",e)}function bt(e){return new n("ins",e)}function gt(e){return new n("kbd",e)}function yt(e){return new n("label",e)}function St(e){return new n("legend",e)}function Et(e){return new n("li",e)}function Ct(e){return new n("link",e)}function vt(e){return new n("main",e)}function Nt(e){return new n("map",e)}function kt(e){return new n("mark",e)}function Tt(e){return new n("menu",e)}function Lt(e){return new n("meta",e)}function At(e){return new n("meter",e)}function xt(e){return new n("nav",e)}function qt(e){return new n("noscript",e)}function Mt(e){return new n("object",e)}function Dt(e){return new n("ol",e)}function $t(e){return new n("optgroup",e)}function Ft(e){return new n("option",e)}function Ht(e){return new n("output",e)}function Pt(e){return new n("p",e)}function Bt(e){return new n("picture",e)}function Rt(e){return new n("pre",e)}function Gt(e){return new n("progress",e)}function Vt(e){return new n("q",e)}function Kt(e){return new n("rp",e)}function Wt(e){return new n("rt",e)}function zt(e){return new n("ruby",e)}function Jt(e){return new n("s",e)}function It(e){return new n("samp",e)}function Ut(e){return new n("script",e)}function Yt(e){return new n("search",e)}function Qt(e){return new n("section",e)}function Xt(e){return new n("select",e)}function Zt(e){return new n("slot",e)}function _t(e){return new n("small",e)}function Ot(e){return new n("source",e)}function jt(e){return new n("span",e)}function en(e){return new n("strong",e)}function ce(e){return new n("style",{style:e})}function tn(e){return new n("sub",e)}function nn(e){return new n("summary",e)}function rn(e){return new n("sup",e)}function on(e){return new n("table",e)}function sn(e){return new n("tbody",e)}function un(e){return new n("td",e)}function cn(e){return new n("template",e)}function an(e){return new n("textarea",e)}function fn(e){return new n("tfoot",e)}function ln(e){return new n("th",e)}function dn(e){return new n("thead",e)}function hn(e){return new n("time",e)}function mn(e){return new n("title",e)}function wn(e){return new n("tr",e)}function pn(e){return new n("track",e)}function bn(e){return new n("u",e)}function gn(e){return new n("ul",e)}function yn(e){return new n("var",e)}function Sn(e){return new n("video",e)}function En(e){return new n("wbr",e)}function Cn(e){return new n(document.createDocumentFragment(),e)}function vn(e){return new n(document.createTextNode(""),e)}function Nn(e){return new n("div",Z($({},e),{style:$({display:"contents"},e==null?void 0:e.style)}))}function kn(e){const t=new CSSStyleSheet;return t.replaceSync(ce(e).node.innerHTML),t}function Tn(e,t){const r=(t==null?void 0:t.prefix)||"",i={style:{}};for(const u in e)i[u]={var:`var(--${r}${N.camelToKebab(u)})`,value:e[u]},i.style[`--${r}${N.camelToKebab(u)}`]=e[u];return i}exports.ElementConstructor=n;exports.a=ge;exports.abbr=ye;exports.address=Se;exports.area=Ee;exports.article=Ce;exports.aside=ve;exports.audio=Ne;exports.b=ke;exports.base=Te;exports.bdi=Le;exports.bdo=Ae;exports.blockquote=xe;exports.body=qe;exports.br=Me;exports.button=De;exports.canvas=$e;exports.caption=Fe;exports.cite=He;exports.code=Pe;exports.col=Be;exports.colgroup=Re;exports.contents=Nn;exports.createStylesheet=kn;exports.createTheme=Tn;exports.data=Ge;exports.datalist=Ve;exports.dd=Ke;exports.del=We;exports.details=ze;exports.dfn=Je;exports.dialog=Ie;exports.div=Ue;exports.dl=Ye;exports.dt=Qe;exports.element=be;exports.em=Xe;exports.embed=Ze;exports.empty=vn;exports.fieldset=_e;exports.figcaption=Oe;exports.figure=je;exports.footer=et;exports.form=tt;exports.fragment=Cn;exports.h1=nt;exports.h2=rt;exports.h3=it;exports.h4=ot;exports.h5=st;exports.h6=ut;exports.head=ct;exports.header=at;exports.hgroup=ft;exports.hr=lt;exports.html=dt;exports.htmlVar=yn;exports.i=ht;exports.iframe=mt;exports.img=wt;exports.input=pt;exports.ins=bt;exports.kbd=gt;exports.label=yt;exports.legend=St;exports.li=Et;exports.link=Ct;exports.main=vt;exports.map=Nt;exports.mark=kt;exports.menu=Tt;exports.meta=Lt;exports.meter=At;exports.nav=xt;exports.noscript=qt;exports.object=Mt;exports.ol=Dt;exports.optgroup=$t;exports.option=Ft;exports.output=Ht;exports.p=Pt;exports.picture=Bt;exports.pre=Rt;exports.progress=Gt;exports.q=Vt;exports.rp=Kt;exports.rt=Wt;exports.ruby=zt;exports.s=Jt;exports.samp=It;exports.script=Ut;exports.search=Yt;exports.section=Qt;exports.select=Xt;exports.slot=Zt;exports.small=_t;exports.source=Ot;exports.span=jt;exports.strong=en;exports.style=ce;exports.sub=tn;exports.summary=nn;exports.sup=rn;exports.table=on;exports.tbody=sn;exports.td=un;exports.template=cn;exports.textarea=an;exports.tfoot=fn;exports.th=ln;exports.thead=dn;exports.time=hn;exports.title=mn;exports.tr=wn;exports.track=pn;exports.u=bn;exports.ul=gn;exports.video=Sn;exports.wbr=En;
|