aptechka 0.83.1 → 0.84.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-BAiM6_n1.js +111 -0
- package/lib/Animation-DMWabSR0.cjs +1 -0
- package/lib/Composed-B0fvCtZz.cjs +1 -0
- package/lib/Composed-CgA9lLWA.js +75 -0
- package/lib/Damped-BLo-OAVb.cjs +1 -0
- package/lib/Damped-Dcz5UdMH.js +57 -0
- package/lib/DerivedArray-DFhxap_z.js +63 -0
- package/lib/DerivedArray-DYtWMW0n.cjs +1 -0
- package/lib/DragControls-BPHsDeH6.cjs +1 -0
- package/lib/DragControls-D2a1Cifp.js +234 -0
- package/lib/LocalLinks-BWFJYhGX.cjs +1 -0
- package/lib/LocalLinks-Dwgf3No6.js +65 -0
- package/lib/PageAnnouncerElement-DPMlVJZG.cjs +1 -0
- package/lib/PageAnnouncerElement-DV9pm_od.js +28 -0
- package/lib/PageScroll-BAatKJx6.cjs +1 -0
- package/lib/PageScroll-m3TsHnzR.js +65 -0
- package/lib/SourceElement-941MrYpq.js +265 -0
- package/lib/SourceElement-DBLZ7b5k.cjs +5 -0
- package/lib/Store-BCW70G3Z.cjs +1 -0
- package/lib/Store-uLDYY9ed.js +158 -0
- package/lib/Tweened-BvtjLCa3.js +48 -0
- package/lib/Tweened-DdXm1dbF.cjs +1 -0
- package/lib/Viewport-BiDoiU8M.js +113 -0
- package/lib/Viewport-CXGKUyDy.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +97 -93
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -6
- package/lib/api-fetcher/index.cjs +1 -1
- package/lib/api-fetcher/index.js +67 -66
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +37 -34
- package/lib/attributes-BADnRZpK.cjs +1 -0
- package/lib/attributes-FObgMNCf.js +36 -0
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +240 -232
- package/lib/cache/index.cjs +1 -1
- package/lib/cache/index.js +26 -23
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +62 -59
- package/lib/canvas-BP1ceie3.cjs +1 -0
- package/lib/canvas-DsglKco1.js +40 -0
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.js +44 -41
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +6 -6
- package/lib/coordinates--JG1U6kQ.js +29 -0
- package/lib/coordinates-DQ9XV9M1.cjs +1 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +1 -1
- package/lib/css-property/index.js +40 -37
- package/lib/css-unit-parser/index.cjs +2 -2
- package/lib/css-unit-parser/index.js +22 -19
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +13 -11
- package/lib/custom-elements-BfZCJde6.cjs +1 -0
- package/lib/custom-elements-HEMuF7yH.js +27 -0
- package/lib/dev/index.cjs +2 -1
- package/lib/dev/index.d.ts +1 -0
- package/lib/dev/index.js +25 -10
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +5 -5
- package/lib/dom-B40i6NXw.cjs +1 -0
- package/lib/dom-D8D-_9ty.js +108 -0
- package/lib/easings-BSGJFMAo.js +40 -0
- package/lib/easings-BWq0pPLq.cjs +1 -0
- package/lib/element-CqD0jqBJ.cjs +1 -0
- package/lib/element-DKw5H-Tu.js +10 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +53 -52
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +47 -44
- package/lib/en3/index.cjs +4 -4
- package/lib/en3/index.js +192 -185
- package/lib/events-Ds-TuvYW.js +9 -0
- package/lib/events-UlGk63iC.cjs +1 -0
- package/lib/file-DwQs6bB6.js +28 -0
- package/lib/file-RHfA3OS-.cjs +1 -0
- package/lib/function-H4b_gTg6.cjs +1 -0
- package/lib/function-UmbPrOHm.js +19 -0
- package/lib/gestures-DmKKNnh4.js +14 -0
- package/lib/gestures-DtYbQr49.cjs +1 -0
- package/lib/history/index.cjs +1 -1
- package/lib/history/index.js +24 -21
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +27 -24
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +17 -13
- package/lib/index-BpO2RJ__.cjs +1 -0
- package/lib/index-DpKsHe97.js +68 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +3 -3
- package/lib/jsx/ComponentElement.d.ts +4 -0
- package/lib/jsx/h.d.ts +7 -16
- package/lib/jsx/hooks/component/useStylesheet.d.ts +1 -1
- package/lib/jsx/hooks/cssProperty.d.ts +6 -0
- package/lib/jsx/hooks/resize.d.ts +4 -0
- package/lib/jsx/hooks/store.d.ts +1 -2
- package/lib/jsx/hooks/ticker.d.ts +5 -0
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +4 -4
- package/lib/jsx/index.js +171 -349
- package/lib/jsx/plugins/vite/index.cjs +49 -0
- package/lib/jsx/plugins/vite/index.d.ts +38 -0
- package/lib/jsx/plugins/vite/index.js +104 -0
- package/lib/jsx/render.d.ts +2 -0
- package/lib/jsx/type.d.ts +228 -190
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +86 -84
- package/lib/layout-C26zkY7D.js +35 -0
- package/lib/layout-CnGLl7oe.cjs +1 -0
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +221 -217
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +48 -45
- package/lib/local-links/index.cjs +1 -1
- package/lib/local-links/index.js +2 -2
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +48 -45
- package/lib/math-C-knY2TL.cjs +1 -0
- package/lib/math-r8V23YFe.js +57 -0
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +28 -25
- package/lib/metadata-BNdkmeeD.js +15 -0
- package/lib/metadata-BrHUfpV9.cjs +1 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +561 -556
- package/lib/morph-BtgB1YQP.js +256 -0
- package/lib/morph-Buhxq-X0.cjs +1 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +862 -834
- package/lib/notifier/index.cjs +1 -1
- package/lib/notifier/index.js +29 -26
- package/lib/number-Bu4sGvW7.cjs +1 -0
- package/lib/number-DiVt2xnh.js +47 -0
- package/lib/object-CiIdEmJx.js +98 -0
- package/lib/object-DTY_W6xG.cjs +1 -0
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.js +3 -3
- package/lib/page-announcer/index.cjs +1 -1
- package/lib/page-announcer/index.js +2 -2
- package/lib/page-scroll/index.cjs +1 -1
- package/lib/page-scroll/index.js +2 -2
- package/lib/pixel-perfect/index.cjs +4 -4
- package/lib/pixel-perfect/index.js +43 -40
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +125 -122
- package/lib/polyfills-CG1XJNia.js +28 -0
- package/lib/polyfills-DZCuDBkA.cjs +1 -0
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +249 -245
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +58 -55
- package/lib/render-DLcWVnuH.js +355 -0
- package/lib/render-DdomypCo.cjs +1 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +196 -194
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +890 -877
- package/lib/scroll-BvIWh1xB.js +41 -0
- package/lib/scroll-CT0lpyRZ.cjs +1 -0
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +37 -34
- package/lib/scroll-kit/index.cjs +1 -1
- package/lib/scroll-kit/index.js +214 -209
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +102 -98
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +29 -26
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +118 -113
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +5 -5
- package/lib/spa/index.cjs +1 -1
- package/lib/spa/index.js +94 -94
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -2
- package/lib/store/index.js +10 -8
- package/lib/string-B3lm2b7v.js +84 -0
- package/lib/string-CbRNzmd9.cjs +1 -0
- package/lib/style-DBoQWK0d.js +14 -0
- package/lib/style-IDJ6db6n.cjs +1 -0
- package/lib/stylesheet-CHvuef16.js +28 -0
- package/lib/stylesheet-CQdBaIAA.cjs +1 -0
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +96 -92
- package/lib/url-CPCO10Sy.cjs +1 -0
- package/lib/url-CWCY_qe_.js +124 -0
- package/lib/utils/attributes.d.ts +2 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +245 -226
- package/lib/utils/polyfills.d.ts +1 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +36 -33
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +27 -24
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +56 -54
- package/package.json +11 -24
- package/lib/Animation-BzTjZIE-.js +0 -108
- package/lib/Animation-C39Ah-LM.cjs +0 -1
- package/lib/Composed-C-TV9te3.cjs +0 -1
- package/lib/Composed-DyAWjEXE.js +0 -121
- package/lib/Damped-CRusiRIV.js +0 -56
- package/lib/Damped-Prr0iKu1.cjs +0 -1
- package/lib/DragControls-8rNZwQrs.cjs +0 -1
- package/lib/DragControls-DBNdMBA4.js +0 -228
- package/lib/LocalLinks-BxhSFv_Q.cjs +0 -1
- package/lib/LocalLinks-DFZFpbjs.js +0 -62
- package/lib/PageAnnouncerElement-0LxZjtVH.js +0 -24
- package/lib/PageAnnouncerElement-AQ0Ja6HM.cjs +0 -1
- package/lib/PageScroll-0LxFblry.js +0 -62
- package/lib/PageScroll-BXJUQwG7.cjs +0 -1
- package/lib/SourceElement-BHqPFbna.cjs +0 -5
- package/lib/SourceElement-DjbHjynf.js +0 -260
- package/lib/Store-Blf4msDz.cjs +0 -1
- package/lib/Store-ZThXYBQd.js +0 -152
- package/lib/Tweened-Bw1Cn1PJ.js +0 -47
- package/lib/Tweened-DWtk9E-O.cjs +0 -1
- package/lib/Viewport-BxCr0GlB.cjs +0 -1
- package/lib/Viewport-Dt-d9DPi.js +0 -109
- package/lib/attributes-69we3byR.js +0 -10
- package/lib/attributes-Bf2svn4j.cjs +0 -1
- package/lib/canvas-CU5Xjahf.cjs +0 -1
- package/lib/canvas-DeZ0SLUJ.js +0 -34
- package/lib/coordinates-CgdGoSYs.js +0 -24
- package/lib/coordinates-D8Np3cPD.cjs +0 -1
- package/lib/custom-elements-DBnCK7Zx.js +0 -24
- package/lib/custom-elements-Dh4TWRDJ.cjs +0 -1
- package/lib/dom-BETkVSSZ.js +0 -82
- package/lib/dom-CBLlqORw.cjs +0 -1
- package/lib/easings-BEmRlrDd.js +0 -38
- package/lib/easings-GegIwET5.cjs +0 -1
- package/lib/element-CGVl1jA-.js +0 -7
- package/lib/element-yhcBhsho.cjs +0 -1
- package/lib/events-CsVF98U6.js +0 -6
- package/lib/events-KVanG9sR.cjs +0 -1
- package/lib/file-DSpfWdd9.cjs +0 -1
- package/lib/file-GHShUlue.js +0 -24
- package/lib/function-C10DGppn.js +0 -17
- package/lib/function-MthRj-GJ.cjs +0 -1
- package/lib/gestures-C7gbKx11.cjs +0 -1
- package/lib/gestures-CcXV6fCp.js +0 -11
- package/lib/index-OE2INULi.cjs +0 -1
- package/lib/index-e9eDuagL.js +0 -65
- package/lib/jsx/hydrate.d.ts +0 -1
- package/lib/jsx/integrations/astro/client.cjs +0 -1
- package/lib/jsx/integrations/astro/client.d.ts +0 -2
- package/lib/jsx/integrations/astro/client.js +0 -50
- package/lib/jsx/integrations/astro/index.cjs +0 -1
- package/lib/jsx/integrations/astro/index.d.ts +0 -2
- package/lib/jsx/integrations/astro/index.js +0 -54
- package/lib/jsx/integrations/astro/server.cjs +0 -1
- package/lib/jsx/integrations/astro/server.d.ts +0 -3
- package/lib/jsx/integrations/astro/server.js +0 -35
- package/lib/jsx/plugins/vite.d.ts +0 -21
- package/lib/layout-BSMtwCga.js +0 -29
- package/lib/layout-Ctc2p3uz.cjs +0 -1
- package/lib/math-BOBiC4TN.js +0 -45
- package/lib/math-GDWEqu7y.cjs +0 -1
- package/lib/metadata-BcYZ5w3T.cjs +0 -1
- package/lib/metadata-jfowcCyz.js +0 -12
- package/lib/morph-B6sGhLCi.cjs +0 -1
- package/lib/morph-BQErz7qP.js +0 -242
- package/lib/number-ChAm68cm.cjs +0 -1
- package/lib/number-CumqY64S.js +0 -40
- package/lib/object-CcMK4y_r.js +0 -87
- package/lib/object-baN9pgbU.cjs +0 -1
- package/lib/polyfills-DJrTJQky.js +0 -24
- package/lib/polyfills-Df4r-ETT.cjs +0 -1
- package/lib/render-DQs7rIoN.cjs +0 -1
- package/lib/render-D_0FCWEu.js +0 -18
- package/lib/scroll-BA2WnUrb.cjs +0 -1
- package/lib/scroll-DY5senkF.js +0 -37
- package/lib/string-BlMQbe8b.js +0 -70
- package/lib/string-DUXXtU8v.cjs +0 -1
- package/lib/style-At6aDoqG.cjs +0 -1
- package/lib/style-j2TwriJ_.js +0 -10
- package/lib/stylesheet-5_o7PFzM.cjs +0 -1
- package/lib/stylesheet-DdBzowZY.js +0 -24
- package/lib/url-CHgcNwJ1.cjs +0 -1
- package/lib/url-CYgo5vrG.js +0 -113
- package/lib/vite-C-i3hVDL.js +0 -75
- package/lib/vite-DzanPumM.cjs +0 -44
package/lib/morph-BQErz7qP.js
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
var l = (e, t, r) => new Promise((n, s) => {
|
|
2
|
-
var a = (c) => {
|
|
3
|
-
try {
|
|
4
|
-
u(r.next(c));
|
|
5
|
-
} catch (T) {
|
|
6
|
-
s(T);
|
|
7
|
-
}
|
|
8
|
-
}, i = (c) => {
|
|
9
|
-
try {
|
|
10
|
-
u(r.throw(c));
|
|
11
|
-
} catch (T) {
|
|
12
|
-
s(T);
|
|
13
|
-
}
|
|
14
|
-
}, u = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
|
|
15
|
-
u((r = r.apply(e, t)).next());
|
|
16
|
-
});
|
|
17
|
-
const b = 1, R = 3, P = 8, M = 9, g = 0, D = 1, v = 2, L = 3, V = 4, S = 5, Y = 6, $ = 7, f = (e) => (t, r) => t[`node${e}`] === r[`node${e}`], N = {
|
|
18
|
-
name: f("Name"),
|
|
19
|
-
type: f("Type"),
|
|
20
|
-
value: f("Value")
|
|
21
|
-
};
|
|
22
|
-
function o(e) {
|
|
23
|
-
if (!e) return !1;
|
|
24
|
-
let t = e;
|
|
25
|
-
for (; t; ) {
|
|
26
|
-
if (t.nodeType === 1 && t.hasAttribute("data-preserve"))
|
|
27
|
-
return !0;
|
|
28
|
-
t = t.parentNode;
|
|
29
|
-
}
|
|
30
|
-
return !1;
|
|
31
|
-
}
|
|
32
|
-
function h(e, t) {
|
|
33
|
-
if (e.attributes.length === 0 && t.attributes.length === 0)
|
|
34
|
-
return [];
|
|
35
|
-
const r = [], n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
36
|
-
for (const a of e.attributes)
|
|
37
|
-
n.set(a.name, a.value);
|
|
38
|
-
for (const a of t.attributes) {
|
|
39
|
-
const i = n.get(a.name);
|
|
40
|
-
a.value === i ? n.delete(a.name) : (typeof i != "undefined" && n.delete(a.name), s.set(a.name, a.value));
|
|
41
|
-
}
|
|
42
|
-
for (const a of n.keys())
|
|
43
|
-
r.push({ type: 5, name: a });
|
|
44
|
-
for (const [a, i] of s.entries())
|
|
45
|
-
r.push({ type: 4, name: a, value: i });
|
|
46
|
-
return r;
|
|
47
|
-
}
|
|
48
|
-
function A(e, t = !0) {
|
|
49
|
-
let r = `${e.localName}`;
|
|
50
|
-
for (const { name: n, value: s } of e.attributes)
|
|
51
|
-
t && n.startsWith("data-") || (r += `[${n}=${s}]`);
|
|
52
|
-
return r += e.innerHTML, r;
|
|
53
|
-
}
|
|
54
|
-
function d(e) {
|
|
55
|
-
switch (e.tagName) {
|
|
56
|
-
case "BASE":
|
|
57
|
-
case "TITLE":
|
|
58
|
-
return e.localName;
|
|
59
|
-
case "META": {
|
|
60
|
-
if (e.hasAttribute("name"))
|
|
61
|
-
return `meta[name="${e.getAttribute("name")}"]`;
|
|
62
|
-
if (e.hasAttribute("property"))
|
|
63
|
-
return `meta[name="${e.getAttribute("property")}"]`;
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
case "LINK": {
|
|
67
|
-
if (e.hasAttribute("rel") && e.hasAttribute("href"))
|
|
68
|
-
return `link[rel="${e.getAttribute("rel")}"][href="${e.getAttribute("href")}"]`;
|
|
69
|
-
if (e.hasAttribute("href"))
|
|
70
|
-
return `link[href="${e.getAttribute("href")}"]`;
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return A(e);
|
|
75
|
-
}
|
|
76
|
-
function C(e) {
|
|
77
|
-
const [t, r = ""] = e.split("?");
|
|
78
|
-
return `${t}?t=${Date.now()}&${r.replace(/t=\d+/g, "")}`;
|
|
79
|
-
}
|
|
80
|
-
function E(e) {
|
|
81
|
-
if (e.nodeType === 1 && e.hasAttribute("data-persist"))
|
|
82
|
-
return e;
|
|
83
|
-
if (e.nodeType === 1 && e.localName === "script") {
|
|
84
|
-
const t = document.createElement("script");
|
|
85
|
-
for (let { name: r, value: n } of e.attributes)
|
|
86
|
-
r === "src" && (n = C(n)), t.setAttribute(r, n);
|
|
87
|
-
return t.innerHTML = e.innerHTML, t;
|
|
88
|
-
}
|
|
89
|
-
return e.cloneNode(!0);
|
|
90
|
-
}
|
|
91
|
-
function y(e, t) {
|
|
92
|
-
if (e.children.length === 0 && t.children.length === 0)
|
|
93
|
-
return [];
|
|
94
|
-
const r = [], n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
95
|
-
for (const i of e.children)
|
|
96
|
-
n.set(d(i), i);
|
|
97
|
-
for (const i of t.children) {
|
|
98
|
-
const u = d(i), c = n.get(u);
|
|
99
|
-
c ? A(i, !1) !== A(c, !1) && s.set(u, E(i)) : a.set(u, E(i)), n.delete(u);
|
|
100
|
-
}
|
|
101
|
-
for (const i of e.childNodes) {
|
|
102
|
-
if (i.nodeType === 1) {
|
|
103
|
-
const u = d(i);
|
|
104
|
-
if (n.has(u)) {
|
|
105
|
-
r.push({ type: 1 });
|
|
106
|
-
continue;
|
|
107
|
-
} else if (s.has(u)) {
|
|
108
|
-
const c = s.get(u);
|
|
109
|
-
r.push({
|
|
110
|
-
type: 3,
|
|
111
|
-
attributes: h(i, c),
|
|
112
|
-
children: _(i, c)
|
|
113
|
-
});
|
|
114
|
-
continue;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
r.push(void 0);
|
|
118
|
-
}
|
|
119
|
-
for (const i of a.values())
|
|
120
|
-
r.push({ type: 0, node: E(i) });
|
|
121
|
-
return r;
|
|
122
|
-
}
|
|
123
|
-
function _(e, t) {
|
|
124
|
-
const r = [], n = Math.max(e.childNodes.length, t.childNodes.length);
|
|
125
|
-
for (let s = 0; s < n; s++) {
|
|
126
|
-
const a = e.childNodes.item(s), i = t.childNodes.item(s);
|
|
127
|
-
o(a) || o(i) ? r[s] = { type: 7 } : r[s] = p(a, i);
|
|
128
|
-
}
|
|
129
|
-
return r;
|
|
130
|
-
}
|
|
131
|
-
function p(e, t) {
|
|
132
|
-
if (o(e) || o(t))
|
|
133
|
-
return { type: 7 };
|
|
134
|
-
if (!e)
|
|
135
|
-
return { type: 0, node: E(t) };
|
|
136
|
-
if (!t)
|
|
137
|
-
return o(e) ? { type: 7 } : { type: 1 };
|
|
138
|
-
if (N.type(e, t)) {
|
|
139
|
-
if (e.nodeType === 3) {
|
|
140
|
-
const r = e.nodeValue, n = t.nodeValue;
|
|
141
|
-
if ((r == null ? void 0 : r.trim().length) === 0 && (n == null ? void 0 : n.trim().length) === 0)
|
|
142
|
-
return { type: 6 };
|
|
143
|
-
}
|
|
144
|
-
if (e.nodeType === 1) {
|
|
145
|
-
if (N.name(e, t)) {
|
|
146
|
-
const r = e.tagName === "HEAD" ? y : _;
|
|
147
|
-
return {
|
|
148
|
-
type: 3,
|
|
149
|
-
attributes: h(e, t),
|
|
150
|
-
children: r(e, t)
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
return {
|
|
154
|
-
type: 2,
|
|
155
|
-
node: E(t)
|
|
156
|
-
};
|
|
157
|
-
} else return e.nodeType === 9 ? p(
|
|
158
|
-
e.documentElement,
|
|
159
|
-
t.documentElement
|
|
160
|
-
) : N.value(e, t) ? { type: 6 } : {
|
|
161
|
-
type: 2,
|
|
162
|
-
value: t.nodeValue
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
return {
|
|
166
|
-
type: 2,
|
|
167
|
-
node: E(t)
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
function m(e, t) {
|
|
171
|
-
if (t.length !== 0)
|
|
172
|
-
for (const { type: r, name: n, value: s } of t)
|
|
173
|
-
r === 5 ? e.removeAttribute(n) : r === 4 && e.setAttribute(n, s);
|
|
174
|
-
}
|
|
175
|
-
function O(e, t, r) {
|
|
176
|
-
return l(this, null, function* () {
|
|
177
|
-
if (!t) return;
|
|
178
|
-
let n;
|
|
179
|
-
switch (e.nodeType === 9 ? (e = e.documentElement, n = e) : r ? n = r : n = e, t.type) {
|
|
180
|
-
case 7:
|
|
181
|
-
return;
|
|
182
|
-
case 0: {
|
|
183
|
-
const { node: s } = t;
|
|
184
|
-
e.appendChild(s);
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
case 1: {
|
|
188
|
-
if (!n)
|
|
189
|
-
return;
|
|
190
|
-
e.removeChild(n);
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
case 2: {
|
|
194
|
-
if (!n)
|
|
195
|
-
return;
|
|
196
|
-
const { node: s, value: a } = t;
|
|
197
|
-
if (typeof a == "string") {
|
|
198
|
-
n.nodeValue = a;
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
s && (n instanceof Element && s instanceof Element ? n.replaceWith(s) : n.parentNode && n.parentNode.replaceChild(s, n));
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
case 3: {
|
|
205
|
-
if (!n || n.nodeType !== 1)
|
|
206
|
-
return;
|
|
207
|
-
const { attributes: s, children: a } = t;
|
|
208
|
-
m(n, s);
|
|
209
|
-
const i = Array.from(n.childNodes);
|
|
210
|
-
yield Promise.all(
|
|
211
|
-
a.map((u, c) => O(n, u, i[c]))
|
|
212
|
-
);
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
case 6:
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function w(e, t) {
|
|
221
|
-
return l(this, null, function* () {
|
|
222
|
-
const r = p(e, t);
|
|
223
|
-
return O(document, r);
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
export {
|
|
227
|
-
g as A,
|
|
228
|
-
b as N,
|
|
229
|
-
R as a,
|
|
230
|
-
P as b,
|
|
231
|
-
M as c,
|
|
232
|
-
D as d,
|
|
233
|
-
v as e,
|
|
234
|
-
L as f,
|
|
235
|
-
V as g,
|
|
236
|
-
S as h,
|
|
237
|
-
Y as i,
|
|
238
|
-
$ as j,
|
|
239
|
-
p as k,
|
|
240
|
-
w as m,
|
|
241
|
-
O as p
|
|
242
|
-
};
|
package/lib/number-ChAm68cm.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function l(t,e=5){return Math.round(t*c[e])/c[e]}function r(t,e){return Math.round(t/e)*e}function n(t,e){var s;const i=((s=e.toString().split(".")[1])==null?void 0:s.length)||0;return i?+t.toFixed(i):Math.ceil(t)}function o(t,e){return t=t%e,t=t<0?e+t:t,t}function $(t){t=t.toString().replace(/\s/g,""),t=Math.ceil(+t),t=t.toString();const e=t.trim();let i="";return e.length===4?i=`${e.slice(0,1)} ${e.slice(1)}`:e.length===5?i=`${e.slice(0,2)} ${e.slice(2)}`:e.length===6?i=`${e.slice(0,3)} ${e.slice(3)}`:e.length===7?i=`${e.slice(0,1)} ${e.slice(1,4)} ${e.slice(4)}`:e.length===8?i=`${e.slice(0,2)} ${e.slice(2,5)} ${e.slice(5)}`:e.length===9?i=`${e.slice(0,3)} ${e.slice(3,6)} ${e.slice(6)}`:i=e,i}exports.beautifyNumber=$;exports.loopNumber=o;exports.preciseNumber=l;exports.roundNumberTo=r;exports.toStep=n;
|
package/lib/number-CumqY64S.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const l = [
|
|
2
|
-
1,
|
|
3
|
-
10,
|
|
4
|
-
100,
|
|
5
|
-
1e3,
|
|
6
|
-
1e4,
|
|
7
|
-
1e5,
|
|
8
|
-
1e6,
|
|
9
|
-
1e7,
|
|
10
|
-
1e8,
|
|
11
|
-
1e9,
|
|
12
|
-
1e10
|
|
13
|
-
];
|
|
14
|
-
function c(t, e = 5) {
|
|
15
|
-
return Math.round(t * l[e]) / l[e];
|
|
16
|
-
}
|
|
17
|
-
function n(t, e) {
|
|
18
|
-
return Math.round(t / e) * e;
|
|
19
|
-
}
|
|
20
|
-
function r(t, e) {
|
|
21
|
-
var s;
|
|
22
|
-
const i = ((s = e.toString().split(".")[1]) == null ? void 0 : s.length) || 0;
|
|
23
|
-
return i ? +t.toFixed(i) : Math.ceil(t);
|
|
24
|
-
}
|
|
25
|
-
function o(t, e) {
|
|
26
|
-
return t = t % e, t = t < 0 ? e + t : t, t;
|
|
27
|
-
}
|
|
28
|
-
function $(t) {
|
|
29
|
-
t = t.toString().replace(/\s/g, ""), t = Math.ceil(+t), t = t.toString();
|
|
30
|
-
const e = t.trim();
|
|
31
|
-
let i = "";
|
|
32
|
-
return e.length === 4 ? i = `${e.slice(0, 1)} ${e.slice(1)}` : e.length === 5 ? i = `${e.slice(0, 2)} ${e.slice(2)}` : e.length === 6 ? i = `${e.slice(0, 3)} ${e.slice(3)}` : e.length === 7 ? i = `${e.slice(0, 1)} ${e.slice(1, 4)} ${e.slice(4)}` : e.length === 8 ? i = `${e.slice(0, 2)} ${e.slice(2, 5)} ${e.slice(5)}` : e.length === 9 ? i = `${e.slice(0, 3)} ${e.slice(3, 6)} ${e.slice(6)}` : i = e, i;
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
$ as b,
|
|
36
|
-
o as l,
|
|
37
|
-
c as p,
|
|
38
|
-
n as r,
|
|
39
|
-
r as t
|
|
40
|
-
};
|
package/lib/object-CcMK4y_r.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
function c(e) {
|
|
2
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3
|
-
}
|
|
4
|
-
function u(e) {
|
|
5
|
-
if (e === null || typeof e != "object")
|
|
6
|
-
return e;
|
|
7
|
-
if (e instanceof Date)
|
|
8
|
-
return new Date(e.getTime());
|
|
9
|
-
if (e instanceof Node)
|
|
10
|
-
return e;
|
|
11
|
-
const t = Array.isArray(e) ? [] : {};
|
|
12
|
-
for (const r in e)
|
|
13
|
-
e.hasOwnProperty(r) && (t[r] = u(e[r]));
|
|
14
|
-
return t;
|
|
15
|
-
}
|
|
16
|
-
function y(e, t, r = c) {
|
|
17
|
-
for (const n in t)
|
|
18
|
-
r(t[n]) ? (e[n] || Object.assign(e, { [n]: {} }), y(e[n], t[n], r)) : Object.assign(e, { [n]: t[n] });
|
|
19
|
-
return e;
|
|
20
|
-
}
|
|
21
|
-
function a(e) {
|
|
22
|
-
return e === null || typeof e == "undefined";
|
|
23
|
-
}
|
|
24
|
-
function i(e, t) {
|
|
25
|
-
if (typeof e != typeof t)
|
|
26
|
-
return !1;
|
|
27
|
-
if ([e, t].some((r) => a(r)))
|
|
28
|
-
return e === t;
|
|
29
|
-
if (Array.isArray(e)) {
|
|
30
|
-
const r = e.length > t.length ? e : t, n = e.length > t.length ? t : e;
|
|
31
|
-
return r.every(
|
|
32
|
-
(f, s) => i(f, n[s])
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
if (typeof e != "object" || e instanceof Node || typeof e == "object" && e.constructor.toString().startsWith("class"))
|
|
36
|
-
return e === t;
|
|
37
|
-
for (const r in e) {
|
|
38
|
-
if (!t.hasOwnProperty(r))
|
|
39
|
-
return !1;
|
|
40
|
-
if (typeof e[r] == "object" && typeof t[r] == "object") {
|
|
41
|
-
if (!i(e[r], t[r]))
|
|
42
|
-
return !1;
|
|
43
|
-
} else if (e[r] !== t[r])
|
|
44
|
-
return !1;
|
|
45
|
-
}
|
|
46
|
-
return !0;
|
|
47
|
-
}
|
|
48
|
-
function p(e, t) {
|
|
49
|
-
const r = {};
|
|
50
|
-
for (const n in e)
|
|
51
|
-
t.includes(n) && (r[n] = e[n]);
|
|
52
|
-
return r;
|
|
53
|
-
}
|
|
54
|
-
function o(e, t) {
|
|
55
|
-
const r = {};
|
|
56
|
-
if (!e)
|
|
57
|
-
return r;
|
|
58
|
-
for (const n in e)
|
|
59
|
-
t.includes(n) || (r[n] = e[n]);
|
|
60
|
-
return r;
|
|
61
|
-
}
|
|
62
|
-
function l(e) {
|
|
63
|
-
var t;
|
|
64
|
-
return typeof e == "function" && ((t = Object.getOwnPropertyDescriptor(e, "prototype")) == null ? void 0 : t.writable) === !1;
|
|
65
|
-
}
|
|
66
|
-
function O(e, ...t) {
|
|
67
|
-
t.forEach((r) => {
|
|
68
|
-
Object.getOwnPropertyNames(r.prototype).forEach((n) => {
|
|
69
|
-
Object.defineProperty(
|
|
70
|
-
e.prototype,
|
|
71
|
-
n,
|
|
72
|
-
Object.getOwnPropertyDescriptor(r.prototype, n) || /* @__PURE__ */ Object.create(null)
|
|
73
|
-
);
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
export {
|
|
78
|
-
c as a,
|
|
79
|
-
a as b,
|
|
80
|
-
u as c,
|
|
81
|
-
i as d,
|
|
82
|
-
O as e,
|
|
83
|
-
l as i,
|
|
84
|
-
y as m,
|
|
85
|
-
o,
|
|
86
|
-
p
|
|
87
|
-
};
|
package/lib/object-baN9pgbU.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function f(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function s(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const r in e)e.hasOwnProperty(r)&&(t[r]=s(e[r]));return t}function c(e,t,r=f){for(const n in t)r(t[n])?(e[n]||Object.assign(e,{[n]:{}}),c(e[n],t[n],r)):Object.assign(e,{[n]:t[n]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(r=>u(r)))return e===t;if(Array.isArray(e)){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;return r.every((p,y)=>i(p,n[y]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const r in e){if(!t.hasOwnProperty(r))return!1;if(typeof e[r]=="object"&&typeof t[r]=="object"){if(!i(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}function l(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r}function o(e,t){const r={};if(!e)return r;for(const n in e)t.includes(n)||(r[n]=e[n]);return r}function a(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function O(e,...t){t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)||Object.create(null))})})}exports.cloneDeep=s;exports.compareObjects=i;exports.isESClass=a;exports.isNullish=u;exports.isObject=f;exports.mergeDeep=c;exports.mixin=O;exports.omit=o;exports.pick=l;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function o(e, t) {
|
|
2
|
-
return typeof e == "undefined" ? t : e;
|
|
3
|
-
}
|
|
4
|
-
function i(e, t = {}) {
|
|
5
|
-
if (window.requestIdleCallback)
|
|
6
|
-
return window.requestIdleCallback(e, t);
|
|
7
|
-
{
|
|
8
|
-
const r = t.timeout || 1, n = performance.now();
|
|
9
|
-
return setTimeout(() => {
|
|
10
|
-
e({
|
|
11
|
-
get didTimeout() {
|
|
12
|
-
return t.timeout ? !1 : performance.now() - n - 1 > r;
|
|
13
|
-
},
|
|
14
|
-
timeRemaining() {
|
|
15
|
-
return Math.max(0, 1 + (performance.now() - n));
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}, 1);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
o as n,
|
|
23
|
-
i as r
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function a(e,t){return typeof e=="undefined"?t:e}function i(e,t={}){if(window.requestIdleCallback)return window.requestIdleCallback(e,t);{const r=t.timeout||1,n=performance.now();return setTimeout(()=>{e({get didTimeout(){return t.timeout?!1:performance.now()-n-1>r},timeRemaining(){return Math.max(0,1+(performance.now()-n))}})},1)}}exports.nullishCoalescing=a;exports.requestIdleCallback=i;
|
package/lib/render-DQs7rIoN.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertySymbols;var o=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=(r,e,n)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,s=(r,e)=>{for(var n in e||(e={}))o.call(e,n)&&d(r,n,e[n]);if(c)for(var n of c(e))p.call(e,n)&&d(r,n,e[n]);return r};function a(r,e,n,u){const t=h(e,s({},n),u);return r.append(t),t}exports.render=a;
|
package/lib/render-D_0FCWEu.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var d = Object.defineProperty;
|
|
2
|
-
var o = Object.getOwnPropertySymbols;
|
|
3
|
-
var s = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var p = (r, e, n) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, a = (r, e) => {
|
|
5
|
-
for (var n in e || (e = {}))
|
|
6
|
-
s.call(e, n) && p(r, n, e[n]);
|
|
7
|
-
if (o)
|
|
8
|
-
for (var n of o(e))
|
|
9
|
-
u.call(e, n) && p(r, n, e[n]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
function i(r, e, n, c) {
|
|
13
|
-
const t = /* @__PURE__ */ h(e, a({}, n), c);
|
|
14
|
-
return r.append(t), t;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
i as r
|
|
18
|
-
};
|
package/lib/scroll-BA2WnUrb.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const f=require("./dom-CBLlqORw.cjs"),g=require("./layout-Ctc2p3uz.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");function h(t){return new Promise(o=>{setTimeout(()=>{o()},t)})}function E(t,{behavior:o="instant",offset:s=0,center:c=!1,scrollElement:l}={}){var u;let n,i=l,r=l;if(typeof t=="number")n=t;else{const e=f.getElement(t);e&&(i=e,r=l||f.findScrollParentElement(e),n=g.getCumulativeOffsetTop(e))}if(i&&r&&typeof n=="number"){const e=(typeof s=="number"?s:((u=f.getElement(s))==null?void 0:u.offsetHeight)||0)*-1,a=i instanceof HTMLElement?i.offsetHeight:innerHeight,m=c?innerHeight/2*-1+a/2:0;r.scroll({top:n+e+m,behavior:o})}}exports.scrollToElement=E;exports.wait=h;
|
package/lib/scroll-DY5senkF.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { g as l, f as u } from "./dom-BETkVSSZ.js";
|
|
2
|
-
import { a as g } from "./layout-BSMtwCga.js";
|
|
3
|
-
import "construct-style-sheets-polyfill";
|
|
4
|
-
import "./index-e9eDuagL.js";
|
|
5
|
-
function w(e) {
|
|
6
|
-
return new Promise((o) => {
|
|
7
|
-
setTimeout(() => {
|
|
8
|
-
o();
|
|
9
|
-
}, e);
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function y(e, {
|
|
13
|
-
behavior: o = "instant",
|
|
14
|
-
offset: s = 0,
|
|
15
|
-
center: m = !1,
|
|
16
|
-
scrollElement: f
|
|
17
|
-
} = {}) {
|
|
18
|
-
var r;
|
|
19
|
-
let n, i = f, a = f;
|
|
20
|
-
if (typeof e == "number")
|
|
21
|
-
n = e;
|
|
22
|
-
else {
|
|
23
|
-
const t = l(e);
|
|
24
|
-
t && (i = t, a = f || u(t), n = g(t));
|
|
25
|
-
}
|
|
26
|
-
if (i && a && typeof n == "number") {
|
|
27
|
-
const t = (typeof s == "number" ? s : ((r = l(s)) == null ? void 0 : r.offsetHeight) || 0) * -1, p = i instanceof HTMLElement ? i.offsetHeight : innerHeight, c = m ? innerHeight / 2 * -1 + p / 2 : 0;
|
|
28
|
-
a.scroll({
|
|
29
|
-
top: n + t + c,
|
|
30
|
-
behavior: o
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
y as s,
|
|
36
|
-
w
|
|
37
|
-
};
|
package/lib/string-BlMQbe8b.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
function f(e, t = !1) {
|
|
2
|
-
let n = "";
|
|
3
|
-
return e.split("-").forEach((r, a) => {
|
|
4
|
-
if (a === 0 && !t)
|
|
5
|
-
n += r;
|
|
6
|
-
else {
|
|
7
|
-
const i = r[0], u = r.slice(1), l = i.toUpperCase() + u;
|
|
8
|
-
n += l;
|
|
9
|
-
}
|
|
10
|
-
}), n;
|
|
11
|
-
}
|
|
12
|
-
function p(e) {
|
|
13
|
-
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
14
|
-
}
|
|
15
|
-
function d(e) {
|
|
16
|
-
return e.split("_").join(".");
|
|
17
|
-
}
|
|
18
|
-
function z(e) {
|
|
19
|
-
return /^[a-z\d]+$/i.test(e) ? e.charAt(0).toUpperCase() + e.slice(1) : e.replace(
|
|
20
|
-
/([a-z\d])([a-z\d]*)/gi,
|
|
21
|
-
(t, n, r) => n.toUpperCase() + r.toLowerCase()
|
|
22
|
-
).replace(/[^a-z\d]/gi, "");
|
|
23
|
-
}
|
|
24
|
-
function o(e, t) {
|
|
25
|
-
return e.slice(0, 1)[t]() + e.slice(1);
|
|
26
|
-
}
|
|
27
|
-
function c(e, t = !1, n) {
|
|
28
|
-
return t ? e.split(" ").map((r) => o(r, n)).join(" ") : o(e, n);
|
|
29
|
-
}
|
|
30
|
-
function C(e, t = !1) {
|
|
31
|
-
return c(e, t, "toUpperCase");
|
|
32
|
-
}
|
|
33
|
-
function g(e, t = !1) {
|
|
34
|
-
return c(e, t, "toLowerCase");
|
|
35
|
-
}
|
|
36
|
-
function L(e, t = "abcdefghijklmnopqrstuvwxyz0123456789") {
|
|
37
|
-
const n = t.length, r = crypto.getRandomValues(new Uint8Array(e));
|
|
38
|
-
let a = "";
|
|
39
|
-
for (let i = 0; i < e; i++)
|
|
40
|
-
a += t.charAt(r[i] % n);
|
|
41
|
-
return a;
|
|
42
|
-
}
|
|
43
|
-
function y(e) {
|
|
44
|
-
return new RegExp("^\\p{Lu}", "u").test(e);
|
|
45
|
-
}
|
|
46
|
-
let s;
|
|
47
|
-
function m(e) {
|
|
48
|
-
return s || (s = document.createElement("textarea")), s.innerHTML = e, s.value;
|
|
49
|
-
}
|
|
50
|
-
function A(e, t, n, r) {
|
|
51
|
-
const a = typeof e == "string" ? parseInt(e) : e;
|
|
52
|
-
if (a === 1)
|
|
53
|
-
return t;
|
|
54
|
-
if (a % 100 >= 11 && a % 100 <= 14)
|
|
55
|
-
return r;
|
|
56
|
-
const i = a % 10;
|
|
57
|
-
return i === 1 ? t : i >= 2 && i <= 4 ? n : r;
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
C as a,
|
|
61
|
-
A as b,
|
|
62
|
-
p as c,
|
|
63
|
-
m as d,
|
|
64
|
-
L as g,
|
|
65
|
-
y as i,
|
|
66
|
-
f as k,
|
|
67
|
-
d as s,
|
|
68
|
-
z as t,
|
|
69
|
-
g as u
|
|
70
|
-
};
|
package/lib/string-DUXXtU8v.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function f(e,t=!1){let n="";return e.split("-").forEach((a,r)=>{if(r===0&&!t)n+=a;else{const i=a[0],l=a.slice(1),u=i.toUpperCase()+l;n+=u}}),n}function p(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function d(e){return e.split("_").join(".")}function z(e){return/^[a-z\d]+$/i.test(e)?e.charAt(0).toUpperCase()+e.slice(1):e.replace(/([a-z\d])([a-z\d]*)/gi,(t,n,a)=>n.toUpperCase()+a.toLowerCase()).replace(/[^a-z\d]/gi,"")}function o(e,t){return e.slice(0,1)[t]()+e.slice(1)}function s(e,t=!1,n){return t?e.split(" ").map(a=>o(a,n)).join(" "):o(e,n)}function C(e,t=!1){return s(e,t,"toUpperCase")}function m(e,t=!1){return s(e,t,"toLowerCase")}function g(e,t="abcdefghijklmnopqrstuvwxyz0123456789"){const n=t.length,a=crypto.getRandomValues(new Uint8Array(e));let r="";for(let i=0;i<e;i++)r+=t.charAt(a[i]%n);return r}function L(e){return new RegExp("^\\p{Lu}","u").test(e)}let c;function b(e){return c||(c=document.createElement("textarea")),c.innerHTML=e,c.value}function y(e,t,n,a){const r=typeof e=="string"?parseInt(e):e;if(r===1)return t;if(r%100>=11&&r%100<=14)return a;const i=r%10;return i===1?t:i>=2&&i<=4?n:a}exports.camelToKebab=p;exports.capitalize=C;exports.declension=y;exports.decodeHtmlEntities=b;exports.generateId=g;exports.isUppercase=L;exports.kebabToCamel=f;exports.snakeToDotted=d;exports.toPascalCase=z;exports.uncapitalize=m;
|
package/lib/style-At6aDoqG.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function n(t){return parseFloat(getComputedStyle(t).transitionDuration||"")}function e(t){return n(t)*1e3}exports.getElementTransitionDurationMS=e;exports.getElementTransitionDurationS=n;
|
package/lib/style-j2TwriJ_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("construct-style-sheets-polyfill");const i=require("./index-OE2INULi.cjs"),o=require("./string-DUXXtU8v.cjs");function s(t){let e="";for(const r in t){const n=t[r];typeof n=="object"?(e+=`${r} {`,e+=s(n),e+="}"):e+=`${o.camelToKebab(r)}: ${n};`}return e}function c(t){if(i.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(typeof t=="string"?t:s(t)),e}return null}exports.createStylesheet=c;exports.styleToString=s;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import "construct-style-sheets-polyfill";
|
|
2
|
-
import { i as s } from "./index-e9eDuagL.js";
|
|
3
|
-
import { c as i } from "./string-BlMQbe8b.js";
|
|
4
|
-
function n(t) {
|
|
5
|
-
let e = "";
|
|
6
|
-
for (const r in t) {
|
|
7
|
-
const o = t[r];
|
|
8
|
-
typeof o == "object" ? (e += `${r} {`, e += n(o), e += "}") : e += `${i(r)}: ${o};`;
|
|
9
|
-
}
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
function y(t) {
|
|
13
|
-
if (s) {
|
|
14
|
-
const e = new CSSStyleSheet();
|
|
15
|
-
return e.replaceSync(
|
|
16
|
-
typeof t == "string" ? t : n(t)
|
|
17
|
-
), e;
|
|
18
|
-
}
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
y as c,
|
|
23
|
-
n as s
|
|
24
|
-
};
|
package/lib/url-CHgcNwJ1.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty,y=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var m=(t,e,r)=>e in t?U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))$.call(e,r)&&m(t,r,e[r]);if(p)for(var r of p(e))W.call(e,r)&&m(t,r,e[r]);return t},g=(t,e)=>y(t,w(e));function j(t,{base:e="",trailingSlash:r=!1,mergeParams:n,removeParams:s}={}){e=e.endsWith("/")?e.slice(0,-1):e,t=t.replace(e,""),t.startsWith("/")&&(t=t.slice(1));const i=t.split("#"),l=i[0].split("?");let a=l[0].startsWith("/")?l[0]:"/"+l[0];r?a=!a.endsWith("/")&&a!=="/"?a+"/":a:a=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;let c=l[1]||"";if(n){const o=new URLSearchParams(c),P=new URLSearchParams(n);for(const[h,R]of P)o.has(h)||o.set(h,R);s==null||s.split(",").forEach(h=>{o.has(h)&&o.delete(h)}),c=o.toString()}const u=e+a,f=i[1],L=`${u}${c?"?"+c:""}${f?"#"+f:""}`;return{leaf:a,pathname:u,parameters:c,hash:f,path:L}}function z(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function O(t){if(t.action==="none")return;const e=t==null?void 0:t.searchParameters,r=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",n=e?e.startsWith("?")?e:"?"+e:"",s=`${t.pathname}${n}${r}`,i=g(S({},t.state),{path:s});t.action==="push"?history.pushState(i,"",s):t.action==="replace"&&history.replaceState(i,"",s)}function A(t){const e=new URLSearchParams(t),r={};for(const[n,s]of e)r[n]=s;return r}function k(t,e){const r=new URL(location.href),n=(e==null?void 0:e.toString())||"";r.searchParams.set(t,n),history.replaceState(history.state,"",r.href)}function d(t,e,r){t.setAttribute(e,new URL(t.getAttribute(e),r).pathname)}function T(t,e){t.querySelectorAll('[href^="./"], [href^="../"]').forEach(r=>d(r,"href",e)),t.querySelectorAll('[src^="./"], [src^="../"]').forEach(r=>d(r,"src",e))}function E(t,{base:e="",trailingSlash:r=!1}={}){e=e.replace(/^\/|\/$/g,"");const n=typeof t=="string"?t.replace(/^\/|\/$/g,""):t.pathname.replace(/^\/|\/$/g,"");let s="";return n.includes(e)?s=`/${n}`:s=`${e}/${n}`,r&&!s.endsWith("/")&&(s+="/"),new URL(s,location.origin)}function q(t){try{const e=new URL(t);if(window.location.origin===e.origin)return e.pathname===window.location.pathname?!e.hash:!0}catch(e){}return!1}function B(t){if(!t)return"";const e=new URLSearchParams;for(const[r,n]of Object.entries(t))n!=null&&n!==!1&&n!==""&&e.append(r,String(n));return e.toString()}function H(t){const e={};for(const[r,n]of t.entries())n!=null&&(e[r]=n);return e}exports.changeHistory=O;exports.isLocalUrl=q;exports.normalizeBase=z;exports.normalizeRelativeURLs=T;exports.normalizeURL=E;exports.parseSearchParameters=A;exports.searchParamsObjectToString=B;exports.searchParamsToObject=H;exports.splitPath=j;exports.updateSearchParameter=k;
|