aptechka 0.4.7 → 0.4.9
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/DragControls-CuGSxr1d.js +137 -0
- package/lib/DragControls-Dfbbq8Wb.cjs +1 -0
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +2 -2
- package/lib/controls/Controls.d.ts +1 -1
- package/lib/controls/DragControls.d.ts +16 -0
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.d.ts +1 -0
- package/lib/controls/index.js +10 -9
- package/lib/{createStylesheet-DrkbCUJk.js → createStylesheet-D6C3BPkl.js} +1 -1
- package/lib/{createStylesheet-u1ZQ2BI5.cjs → createStylesheet-W0b965g0.cjs} +1 -1
- package/lib/{createTheme-D0IoYkYN.js → createTheme-CHnsCgAr.js} +1 -1
- package/lib/{createTheme-B_W5dUY9.cjs → createTheme-Cfaw9UmV.cjs} +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/en3/index.cjs +2 -2
- package/lib/en3/index.js +3 -1
- package/lib/index-C_qv6rk4.cjs +9 -0
- package/lib/{index-BigQay-N.js → index-ilQWX_BM.js} +68 -68
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +2 -2
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.d.ts +2 -1
- package/lib/order/index.js +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/scroll/ScrollElement.d.ts +4 -2
- package/lib/scroll/ScrollSegmentElement.d.ts +68 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.d.ts +2 -1
- package/lib/scroll/index.js +715 -340
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.d.ts +2 -2
- package/lib/scroll-entries/index.js +27 -36
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +1 -1
- package/lib/string-DhgS_iFl.cjs +1 -0
- package/lib/{string-3lAkpJJP.js → string-f0Dnk0L1.js} +9 -5
- package/lib/tags-CK7mk_EP.cjs +1 -0
- package/lib/{tags-CAxO5Rs3.js → tags-D0zt3vue.js} +38 -36
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +3 -3
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +43 -42
- package/lib/utils/string.d.ts +1 -0
- package/package.json +9 -11
- package/lib/WheelControls-0zNcnAB3.cjs +0 -1
- package/lib/WheelControls-BAyRKpRZ.js +0 -97
- package/lib/index-DTrWxWOM.cjs +0 -9
- package/lib/string-vBu90jhV.cjs +0 -1
- package/lib/tags-Dz_Yisj_.cjs +0 -1
package/lib/utils/index.js
CHANGED
|
@@ -4,79 +4,79 @@ import { f as v, b as P, a as T, g as A } from "../dom-0S_WDL4g.js";
|
|
|
4
4
|
import { c as B, n as M, f as N, p as j, b as z, i as U, m as V, e as q, g as J, j as K, d as $, o as F, a as G, h as W, k as X, l as Y } from "../easings-BKi40vHz.js";
|
|
5
5
|
import { d as _ } from "../events-_C2CztxR.js";
|
|
6
6
|
import { c as L } from "../file-lxi_oXJf.js";
|
|
7
|
-
import { d as
|
|
7
|
+
import { d as ae, t as te } from "../function-C10DGppn.js";
|
|
8
8
|
import { s as ne } from "../gestures-D2Fdra_G.js";
|
|
9
9
|
import { g as ie, a as re, b as ue } from "../layout-HoBT_Da2.js";
|
|
10
10
|
import { e as ce, f as me, c as de, d as pe, l as fe, m as xe, r as he, b as ge, a as be, s as ye } from "../math-BOBiC4TN.js";
|
|
11
11
|
import { p as Ce, r as Ee } from "../number-Bo5RdrA1.js";
|
|
12
12
|
import { c as Se, d as Ie, i as Re, b as De, a as Qe, m as ve, e as Pe, o as Te, p as Ae } from "../object-R34VLqhp.js";
|
|
13
13
|
import { n as Be } from "../polyfills-DJUYczFm.js";
|
|
14
|
-
import { c as Ne, a as je, g as ze,
|
|
15
|
-
import { g as
|
|
16
|
-
function c(
|
|
17
|
-
return [...
|
|
14
|
+
import { c as Ne, a as je, g as ze, i as Ue, k as Ve, s as qe, t as Je, u as Ke } from "../string-f0Dnk0L1.js";
|
|
15
|
+
import { g as Fe, a as Ge } from "../style-j2TwriJ_.js";
|
|
16
|
+
function c(a, e, ...t) {
|
|
17
|
+
return [...a.slice(0, e), ...t, ...a.slice(e)];
|
|
18
18
|
}
|
|
19
|
-
function m(
|
|
20
|
-
const
|
|
19
|
+
function m(a, e) {
|
|
20
|
+
const t = a.measureText(e), s = t.actualBoundingBoxAscent + t.actualBoundingBoxDescent, n = t.width;
|
|
21
21
|
return {
|
|
22
22
|
height: s,
|
|
23
23
|
width: n
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function d(
|
|
27
|
-
return Math.floor(
|
|
26
|
+
function d(a) {
|
|
27
|
+
return Math.floor(a) + 0.5;
|
|
28
28
|
}
|
|
29
|
-
function p(
|
|
30
|
-
let u =
|
|
31
|
-
return n = typeof n == "undefined" ? 0.5 : n, o = typeof o == "undefined" ? 0.5 : o, u > l ? (i = s, r = s * u) : (r =
|
|
32
|
-
(
|
|
29
|
+
function p(a, e, t, s, n, o) {
|
|
30
|
+
let u = a / e, l = t / s, i = 0, r = 0;
|
|
31
|
+
return n = typeof n == "undefined" ? 0.5 : n, o = typeof o == "undefined" ? 0.5 : o, u > l ? (i = s, r = s * u) : (r = t, i = t / u), [
|
|
32
|
+
(t - r) * n,
|
|
33
33
|
(s - i) * o,
|
|
34
34
|
r,
|
|
35
35
|
i
|
|
36
36
|
];
|
|
37
37
|
}
|
|
38
|
-
function f(
|
|
39
|
-
return
|
|
38
|
+
function f(a, e) {
|
|
39
|
+
return a.x < e.x + e.width && a.x > e.x && a.y < e.y + e.height && a.y > e.y;
|
|
40
40
|
}
|
|
41
|
-
function x(
|
|
42
|
-
return Math.sqrt((
|
|
41
|
+
function x(a, e) {
|
|
42
|
+
return Math.sqrt((a.x - e.x) ** 2 + (a.y - e.y) ** 2) < e.radius;
|
|
43
43
|
}
|
|
44
|
-
function h(
|
|
45
|
-
let s =
|
|
46
|
-
return
|
|
44
|
+
function h(a, e, t = !1) {
|
|
45
|
+
let s = a.x - e.width / 2, n = e.height / 2 - a.y;
|
|
46
|
+
return t && (s = s / (e.width / 2), n = n / (e.height / 2)), { x: s, y: n };
|
|
47
47
|
}
|
|
48
|
-
function g(
|
|
49
|
-
const
|
|
50
|
-
return { x:
|
|
48
|
+
function g(a, e) {
|
|
49
|
+
const t = a.x / e.x, s = a.y / e.y;
|
|
50
|
+
return { x: t, y: s };
|
|
51
51
|
}
|
|
52
|
-
function b(
|
|
52
|
+
function b(a, e) {
|
|
53
53
|
return e = e || {
|
|
54
54
|
x: 0,
|
|
55
55
|
y: 0,
|
|
56
56
|
width: document.documentElement.offsetWidth,
|
|
57
57
|
height: innerHeight
|
|
58
58
|
}, {
|
|
59
|
-
x: (
|
|
60
|
-
y: (
|
|
59
|
+
x: (a.x - e.x) / e.width * e.width,
|
|
60
|
+
y: (a.y - e.y) / e.height * e.height
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
function y(...
|
|
63
|
+
function y(...a) {
|
|
64
64
|
const e = {};
|
|
65
|
-
return Array.from(document.styleSheets).forEach((
|
|
66
|
-
Array.from(
|
|
67
|
-
s instanceof CSSStyleRule && s.selectorText === ":root" &&
|
|
65
|
+
return Array.from(document.styleSheets).forEach((t) => {
|
|
66
|
+
Array.from(t.cssRules).forEach((s) => {
|
|
67
|
+
s instanceof CSSStyleRule && s.selectorText === ":root" && a.forEach((n) => {
|
|
68
68
|
const o = s.styleMap.get(n);
|
|
69
69
|
o ? e[n] = o.toString() : console.warn(`variable named ${n} not found`);
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
}), e;
|
|
73
73
|
}
|
|
74
|
-
function w(
|
|
75
|
-
const e = window.atob(
|
|
74
|
+
function w(a) {
|
|
75
|
+
const e = window.atob(a);
|
|
76
76
|
return decodeURIComponent(window.escape(e));
|
|
77
77
|
}
|
|
78
|
-
function C(
|
|
79
|
-
const e = window.unescape(encodeURIComponent(
|
|
78
|
+
function C(a) {
|
|
79
|
+
const e = window.unescape(encodeURIComponent(a));
|
|
80
80
|
return window.btoa(e);
|
|
81
81
|
}
|
|
82
82
|
export {
|
|
@@ -90,7 +90,7 @@ export {
|
|
|
90
90
|
p as cover,
|
|
91
91
|
L as createJSONAndSave,
|
|
92
92
|
pe as damp,
|
|
93
|
-
|
|
93
|
+
ae as debounce,
|
|
94
94
|
C as decode,
|
|
95
95
|
_ as dispatchSizeChangeEvent,
|
|
96
96
|
x as dotCircleCollision,
|
|
@@ -120,8 +120,8 @@ export {
|
|
|
120
120
|
re as getCumulativeOffsetTop,
|
|
121
121
|
ue as getCumulativePosition,
|
|
122
122
|
A as getElement,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
Fe as getElementTransitionDurationMS,
|
|
124
|
+
Ge as getElementTransitionDurationS,
|
|
125
125
|
b as getPointerPosition,
|
|
126
126
|
y as getRootVariables,
|
|
127
127
|
c as insert,
|
|
@@ -129,7 +129,8 @@ export {
|
|
|
129
129
|
Re as isESClass,
|
|
130
130
|
De as isNullish,
|
|
131
131
|
Qe as isObject,
|
|
132
|
-
Ue as
|
|
132
|
+
Ue as isUppercase,
|
|
133
|
+
Ve as kebabToCamel,
|
|
133
134
|
fe as lerp,
|
|
134
135
|
Y as linear,
|
|
135
136
|
xe as mapRange,
|
|
@@ -149,9 +150,9 @@ export {
|
|
|
149
150
|
ne as setupDrag,
|
|
150
151
|
ge as smootherstep,
|
|
151
152
|
be as smoothstep,
|
|
152
|
-
|
|
153
|
+
qe as snakeToDotted,
|
|
153
154
|
ye as step,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
te as throttle,
|
|
156
|
+
Je as toPascalCase,
|
|
157
|
+
Ke as uncapitalize
|
|
157
158
|
};
|
package/lib/utils/string.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare function toPascalCase(str: string): string;
|
|
|
5
5
|
export declare function capitalize(string: string, everyWord?: boolean): string;
|
|
6
6
|
export declare function uncapitalize(string: string, everyWord?: boolean): string;
|
|
7
7
|
export declare function generateId(length: number, characters?: string): string;
|
|
8
|
+
export declare function isUppercase(string: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -355,28 +355,26 @@
|
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
357
|
"scripts": {
|
|
358
|
-
"dev": "vite --mode site",
|
|
358
|
+
"dev": "vite --host --mode site",
|
|
359
359
|
"build:lib": "tsc && vite build --mode lib",
|
|
360
360
|
"build:site": "tsc && vite build --mode site",
|
|
361
361
|
"preview": "vite preview"
|
|
362
362
|
},
|
|
363
363
|
"devDependencies": {
|
|
364
|
-
"@types/node": "^20.
|
|
365
|
-
"@types/three": "^0.
|
|
366
|
-
"vite": "5.2.
|
|
367
|
-
"vite-plugin-dts": "^3.8.
|
|
364
|
+
"@types/node": "^20.12.5",
|
|
365
|
+
"@types/three": "^0.163.0",
|
|
366
|
+
"vite": "5.2.8",
|
|
367
|
+
"vite-plugin-dts": "^3.8.1",
|
|
368
368
|
"vite-plugin-htmc": "^0.1.9"
|
|
369
369
|
},
|
|
370
370
|
"dependencies": {
|
|
371
371
|
"detect-gpu": "^5.0.38",
|
|
372
|
-
"
|
|
373
|
-
"three": "^0.162.0",
|
|
372
|
+
"three": "^0.163.0",
|
|
374
373
|
"urlpattern-polyfill": "^10.0.0"
|
|
375
374
|
},
|
|
376
375
|
"peerDependencies": {
|
|
377
|
-
"detect-gpu": "^5.0.
|
|
378
|
-
"
|
|
379
|
-
"three": "^0.161.0",
|
|
376
|
+
"detect-gpu": "^5.0.38",
|
|
377
|
+
"three": "^0.163.0",
|
|
380
378
|
"urlpattern-polyfill": "^10.0.0"
|
|
381
379
|
}
|
|
382
380
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var x=(s,i,e)=>{if(!i.has(s))throw TypeError("Cannot "+e)};var t=(s,i,e)=>(x(s,i,"read from private field"),e?e.call(s):i.get(s)),n=(s,i,e)=>{if(i.has(s))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(s):i.set(s,e)},d=(s,i,e,l)=>(x(s,i,"write to private field"),l?l.call(s,e):i.set(s,e),e);const f=require("./browser-CpzFX2xg.cjs"),y=require("./dom-JBOkFLTh.cjs"),M=require("./notifier/index.cjs");var E;class b{constructor(){n(this,E,new M.Notifier)}get changeEvent(){return t(this,E)}}E=new WeakMap;var c,r,a,u;class L extends b{constructor(e){super();n(this,c,null);n(this,r,null);n(this,a,"offsetHeight");n(this,u,e=>{const l=e.shiftKey?-1:1;let h;e.code==="Space"?h=l*t(this,r)[t(this,a)]*.4:e.code==="ArrowLeft"?h=-1*t(this,r)[t(this,a)]*.2:e.code==="ArrowRight"?h=1*t(this,r)[t(this,a)]*.2:e.code==="ArrowUp"?h=-1*t(this,r)[t(this,a)]*.2:e.code==="ArrowDown"?h=1*t(this,r)[t(this,a)]*.2:e.code==="PageUp"?h=-1*t(this,r)[t(this,a)]:e.code==="PageDown"?h=1*t(this,r)[t(this,a)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,a)==="offsetWidth"?t(this,r).scrollWidth:t(this,r).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify(h))});f.isBrowser&&(d(this,c,e!=null&&e.element&&y.getElement(e.element)||window),d(this,r,t(this,c)instanceof HTMLElement?t(this,c):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){d(this,a,e==="width"?"offsetWidth":"offsetHeight")}connect(){f.isBrowser&&t(this,c).addEventListener("keydown",t(this,u))}disconnect(){f.isBrowser&&t(this,c).removeEventListener("keydown",t(this,u))}}c=new WeakMap,r=new WeakMap,a=new WeakMap,u=new WeakMap;var o,w,m,g;class v extends b{constructor(e){super();n(this,o,null);n(this,w,void 0);n(this,m,void 0);n(this,g,e=>{let l=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(l=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const h=Date.now();if(h-t(this,m)>40&&(l=100*Math.sign(l)),d(this,m,h),Math.abs(l)<100||t(this,w))return;this.changeEvent.notify(l),d(this,w,setTimeout(()=>{d(this,w,void 0)},80))}else this.changeEvent.notify(l)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,d(this,m,Date.now()),f.isBrowser&&d(this,o,e!=null&&e.element&&y.getElement(e.element)||window)}connect(){f.isBrowser&&t(this,o).addEventListener("wheel",t(this,g),{passive:!1})}disconnect(){f.isBrowser&&t(this,o).removeEventListener("wheel",t(this,g))}}o=new WeakMap,w=new WeakMap,m=new WeakMap,g=new WeakMap;exports.Controls=b;exports.KeyboardControls=L;exports.WheelControls=v;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
var x = (s, i, e) => {
|
|
2
|
-
if (!i.has(s))
|
|
3
|
-
throw TypeError("Cannot " + e);
|
|
4
|
-
};
|
|
5
|
-
var t = (s, i, e) => (x(s, i, "read from private field"), e ? e.call(s) : i.get(s)), n = (s, i, e) => {
|
|
6
|
-
if (i.has(s))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
i instanceof WeakSet ? i.add(s) : i.set(s, e);
|
|
9
|
-
}, r = (s, i, e, l) => (x(s, i, "write to private field"), l ? l.call(s, e) : i.set(s, e), e);
|
|
10
|
-
import { i as c } from "./browser-0zX67oeU.js";
|
|
11
|
-
import { g as b } from "./dom-0S_WDL4g.js";
|
|
12
|
-
import { Notifier as M } from "./notifier/index.js";
|
|
13
|
-
var E;
|
|
14
|
-
class y {
|
|
15
|
-
constructor() {
|
|
16
|
-
n(this, E, new M());
|
|
17
|
-
}
|
|
18
|
-
get changeEvent() {
|
|
19
|
-
return t(this, E);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
E = new WeakMap();
|
|
23
|
-
var f, a, d, u;
|
|
24
|
-
class W extends y {
|
|
25
|
-
constructor(e) {
|
|
26
|
-
super();
|
|
27
|
-
n(this, f, null);
|
|
28
|
-
n(this, a, null);
|
|
29
|
-
n(this, d, "offsetHeight");
|
|
30
|
-
n(this, u, (e) => {
|
|
31
|
-
const l = e.shiftKey ? -1 : 1;
|
|
32
|
-
let h;
|
|
33
|
-
e.code === "Space" ? h = l * t(this, a)[t(this, d)] * 0.4 : e.code === "ArrowLeft" ? h = -1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowRight" ? h = 1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowUp" ? h = -1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowDown" ? h = 1 * t(this, a)[t(this, d)] * 0.2 : e.code === "PageUp" ? h = -1 * t(this, a)[t(this, d)] : e.code === "PageDown" ? h = 1 * t(this, a)[t(this, d)] : e.code === "Home" ? h = 0 : e.code === "End" && (h = t(this, d) === "offsetWidth" ? t(this, a).scrollWidth : t(this, a).scrollHeight), h && (e.stopPropagation(), this.changeEvent.notify(h));
|
|
34
|
-
});
|
|
35
|
-
c && (r(this, f, e != null && e.element && b(e.element) || window), r(this, a, t(this, f) instanceof HTMLElement ? t(this, f) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
|
|
36
|
-
}
|
|
37
|
-
set dimension(e) {
|
|
38
|
-
r(this, d, e === "width" ? "offsetWidth" : "offsetHeight");
|
|
39
|
-
}
|
|
40
|
-
connect() {
|
|
41
|
-
c && t(this, f).addEventListener(
|
|
42
|
-
"keydown",
|
|
43
|
-
t(this, u)
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
disconnect() {
|
|
47
|
-
c && t(this, f).removeEventListener(
|
|
48
|
-
"keydown",
|
|
49
|
-
t(this, u)
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
f = new WeakMap(), a = new WeakMap(), d = new WeakMap(), u = new WeakMap();
|
|
54
|
-
var m, w, o, g;
|
|
55
|
-
class X extends y {
|
|
56
|
-
constructor(e) {
|
|
57
|
-
super();
|
|
58
|
-
n(this, m, null);
|
|
59
|
-
n(this, w, void 0);
|
|
60
|
-
n(this, o, void 0);
|
|
61
|
-
n(this, g, (e) => {
|
|
62
|
-
let l = 0;
|
|
63
|
-
if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
|
|
64
|
-
if (l = (this.axis === "max" ? Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY : this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), e.preventDefault(), this.debounce) {
|
|
65
|
-
const h = Date.now();
|
|
66
|
-
if (h - t(this, o) > 40 && (l = 100 * Math.sign(l)), r(this, o, h), Math.abs(l) < 100 || t(this, w))
|
|
67
|
-
return;
|
|
68
|
-
this.changeEvent.notify(l), r(this, w, setTimeout(() => {
|
|
69
|
-
r(this, w, void 0);
|
|
70
|
-
}, 80));
|
|
71
|
-
} else
|
|
72
|
-
this.changeEvent.notify(l);
|
|
73
|
-
});
|
|
74
|
-
this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, r(this, o, Date.now()), c && r(this, m, e != null && e.element && b(e.element) || window);
|
|
75
|
-
}
|
|
76
|
-
connect() {
|
|
77
|
-
c && t(this, m).addEventListener(
|
|
78
|
-
"wheel",
|
|
79
|
-
t(this, g),
|
|
80
|
-
{
|
|
81
|
-
passive: !1
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
disconnect() {
|
|
86
|
-
c && t(this, m).removeEventListener(
|
|
87
|
-
"wheel",
|
|
88
|
-
t(this, g)
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
m = new WeakMap(), w = new WeakMap(), o = new WeakMap(), g = new WeakMap();
|
|
93
|
-
export {
|
|
94
|
-
y as C,
|
|
95
|
-
W as K,
|
|
96
|
-
X as W
|
|
97
|
-
};
|
package/lib/index-DTrWxWOM.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(D(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const E=require("./custom-element/index.cjs");require("./Store-C-1ruEIm.cjs");const W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),Y=require("./style-At6aDoqG.cjs"),a=require("./tags-Dz_Yisj_.cjs"),M=require("./createStylesheet-u1ZQ2BI5.cjs"),w=require("./theme/index.cjs");var Z=Object.defineProperty,J=Object.getOwnPropertyDescriptor,K=(t,e,s,i)=>{for(var n=i>1?void 0:i?J(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Z(e,s,n),n},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),y,S,o,v,u,f,$,C,b;const Q=M.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${w.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends E.CustomElement{constructor(){super(),c(this,C),c(this,y,null),c(this,S,""),c(this,o,null),c(this,v,!1),c(this,u,void 0),c(this,f,null),c(this,$,()=>{N.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(Q),d(this,y,this.attachInternals()),d(this,f,new ResizeObserver(r(this,$))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,S)}set value(e){d(this,S,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}get internals(){return r(this,y)}get opened(){return r(this,v)}open(){clearTimeout(r(this,u)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",I(this,C,b).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),I(this,C,b).call(this),d(this,u,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},Y.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,f).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,u)),r(this,f).disconnect()}};y=new WeakMap;S=new WeakMap;o=new WeakMap;v=new WeakMap;u=new WeakMap;f=new WeakMap;$=new WeakMap;C=new WeakSet;b=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=K([E.define("e-select")],exports.SelectElement);var _;class q extends E.CustomElement{constructor(){super(...arguments);A(this,_,null)}get selectElement(){return z(this,_)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,_,s):console.log(this,"e-select not found")}}_=new WeakMap;var V=Object.defineProperty,X=Object.getOwnPropertyDescriptor,j=(t,e,s,i)=>{for(var n=i>1?void 0:i?X(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&V(e,s,n),n},G=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},x=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},ee=(t,e,s)=>(G(t,e,"access private method"),s),m,L,R;const te=M.createStylesheet({":host":{width:"100%",height:w.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"},button:{all:"inherit"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,L),B(this,m,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{children:[a.button({onClick:()=>{ee(this,L,R).call(this)},children:a.slot()})]}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",x(this,m)),setTimeout(()=>{x(this,m).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",x(this,m))}};m=new WeakMap;L=new WeakSet;R=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=j([E.define("e-select-option")],exports.SelectOptionElement);const U=`<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
width="32"
|
|
4
|
-
height="32"
|
|
5
|
-
viewBox="0 0 24 24"
|
|
6
|
-
>
|
|
7
|
-
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
8
|
-
</svg>
|
|
9
|
-
`;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&se(e,s,n),n},F=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(F(t,e,"read from private field"),s?s.call(t):e.get(t)),O=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},re=(t,e,s,i)=>(F(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),T,g,k;const ae=M.createStylesheet({":host":{width:"100%",height:w.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${w.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${w.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends q{constructor(){super(),O(this,T,null),O(this,g,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,T).innerHTML=s.innerHTML)}),O(this,k,()=>{this.classList.toggle("opened",this.selectElement.opened)}),W.isBrowser&&(this.openShadow(ae),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(U,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),re(this,T,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,g)),p(this,g).call(this),this.selectElement.addEventListener("selectToggle",p(this,k))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,g)),this.selectElement.removeEventListener("selectToggle",p(this,k))}};T=new WeakMap;g=new WeakMap;k=new WeakMap;exports.SelectHeadElement=ne([E.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=q;exports.arrowIcon=U;
|
package/lib/string-vBu90jhV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function u(e,t=!1){let a="";return e.split("-").forEach((n,o)=>{if(o===0&&!t)a+=n;else{const i=n[0],s=n.slice(1),l=i.toUpperCase()+s;a+=l}}),a}function f(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function p(e){return e.split("_").join(".")}function d(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,a,n)=>a.toUpperCase()+n.toLowerCase()).replace(/[^a-z\d]/gi,"")}function r(e,t){return e.slice(0,1)[t]()+e.slice(1)}function c(e,t=!1,a){return t?e.split(" ").map(n=>r(n,a)).join(" "):r(e,a)}function z(e,t=!1){return c(e,t,"toUpperCase")}function C(e,t=!1){return c(e,t,"toLowerCase")}function b(e,t="abcdefghijklmnopqrstuvwxyz0123456789"){const a=t.length,n=crypto.getRandomValues(new Uint8Array(e));let o="";for(let i=0;i<e;i++)o+=t.charAt(n[i]%a);return o}exports.camelToKebab=f;exports.capitalize=z;exports.generateId=b;exports.kebabToCamel=u;exports.snakeToDotted=p;exports.toPascalCase=d;exports.uncapitalize=C;
|
package/lib/tags-Dz_Yisj_.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Te=Object.defineProperty,Le=Object.defineProperties;var qe=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var he=(e,t,r)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))xe.call(t,r)&&he(e,r,t[r]);if(de)for(var r of de(t))Ae.call(t,r)&&he(e,r,t[r]);return e},me=(e,t)=>Le(e,qe(t));var O=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var o=(e,t,r)=>(O(e,t,"read from private field"),r?r.call(e):t.get(e)),a=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},g=(e,t,r,i)=>(O(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var c=(e,t,r)=>(O(e,t,"access private method"),r);const y=require("./Store-C-1ruEIm.cjs"),Me=require("./browser-CpzFX2xg.cjs"),we=require("./object-BZELAoVj.cjs"),j=require("./string-vBu90jhV.cjs"),De=require("./connector/index.cjs"),Fe=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"]);var u,b,l,N,h,m,R,pe,$,be,B,ge,k,ee,T,te,G,ye,V,Ee,W,Se,z,Ce,L,ne,q,re,I,ve,x,ie,A,oe,J,Ne,M,se,v,P,D,ue,F,ce,H,ae,K,U;const Y=class Y{constructor(...t){a(this,R);a(this,$);a(this,B);a(this,k);a(this,T);a(this,G);a(this,V);a(this,W);a(this,z);a(this,L);a(this,q);a(this,I);a(this,x);a(this,A);a(this,J);a(this,M);a(this,v);a(this,D);a(this,F);a(this,H);a(this,u,void 0);a(this,b,new Set);a(this,l,new Set);a(this,N,void 0);a(this,h,void 0);a(this,m,void 0);a(this,K,()=>{o(this,b).forEach(t=>{t()}),o(this,b).clear()});a(this,U,t=>{o(this,l).forEach(r=>{r(t)}),o(this,l).clear(),c(this,A,oe).call(this)});const r=t[0],i=t[1];g(this,u,c(this,R,pe).call(this,r,i==null?void 0:i.forceSvg)),c(this,B,ge).call(this,i)}get node(){return o(this,u)}set node(t){var r;c(this,A,oe).call(this),g(this,u,t),(r=o(this,N))==null||r.call(this),o(this,u)instanceof Element&&g(this,h,[...o(this,u).querySelectorAll("store-root")]),c(this,x,ie).call(this),c(this,k,ee).call(this)}};u=new WeakMap,b=new WeakMap,l=new WeakMap,N=new WeakMap,h=new WeakMap,m=new WeakMap,R=new WeakSet,pe=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 s=document.createElement("div");s.innerHTML=t,i=s.firstElementChild}else Fe.has(t)||r?i=document.createElementNS("http://www.w3.org/2000/svg",t):i=document.createElement(t);else i=document.createElement("div");return i},$=new WeakSet,be=function(t){return t instanceof HTMLElement||t instanceof SVGElement},B=new WeakSet,ge=function(t){if(!t)return;const r=c(this,$,be).call(this,o(this,u)),i=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,b).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,l).add(t.onDisconnect),delete t.onDisconnect);let s,f;for(const d in t){const w=t[d];d==="class"&&r?c(this,T,te).call(this,w):d==="style"&&r?c(this,W,Se).call(this,w):d==="lightChildren"?c(this,v,P).call(this,o(this,u),w):d==="children"?c(this,v,P).call(this,o(this,u)instanceof Element?o(this,u).shadowRoot||o(this,u):o(this,u),w):d.startsWith("on")?(f||(f={}),f[d]=w):(s||(s={}),s[d]=w)}c(this,J,Ne).call(this,s),c(this,I,ve).call(this,f),i&&(typeof i=="function"?i(o(this,u)):i.current=o(this,u)),c(this,k,ee).call(this)},k=new WeakSet,ee=function(){if(Me.isBrowser&&(o(this,l).size||o(this,b).size)){const t=o(this,u)instanceof DocumentFragment?o(this,u).firstChild:o(this,u);g(this,N,De.connector.subscribe(t,{connectCallback:o(this,K),disconnectCallback:o(this,U),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,te=function(t){if(t){if(typeof t=="string")o(this,u).classList.add(t);else if(Array.isArray(t))t.forEach(r=>{c(this,T,te).call(this,r)});else if(typeof t=="object")if(t instanceof y.Store)c(this,G,ye).call(this,t);else for(const r in t){const i=t[r];i instanceof y.Store?c(this,V,Ee).call(this,r,i):i?o(this,u).classList.add(r):o(this,u).classList.remove(r)}}else return},G=new WeakSet,ye=function(t){o(this,l).add(t.subscribe(({current:r,previous:i})=>{i&&[i].flat().forEach(s=>{s&&o(this,u).classList.remove(s)}),r&&[r].flat().forEach(s=>{s&&o(this,u).classList.add(s)})}))},V=new WeakSet,Ee=function(t,r){o(this,l).add(r.subscribe(({current:i})=>{i?o(this,u).classList.add(t):o(this,u).classList.remove(t)}))},W=new WeakSet,Se=function(t){if(!t)return;o(this,u).tagName==="style"||o(this,u).tagName==="STYLE"?c(this,L,ne).call(this,t):c(this,z,Ce).call(this,t)},z=new WeakSet,Ce=function(t){for(const r in t){const i=r,s=t[i];s instanceof y.Store?o(this,l).add(s.subscribe(({current:f})=>{c(this,q,re).call(this,i,f)})):c(this,q,re).call(this,i,s)}},L=new WeakSet,ne=function(t){for(const r in t){const i=t[r];if(typeof i=="object"&&!(i instanceof y.Store))o(this,u).appendChild(document.createTextNode(`${r} {`)),c(this,L,ne).call(this,i),o(this,u).appendChild(document.createTextNode("}"));else if(i instanceof y.Store){const s=document.createTextNode("");o(this,l).add(i.subscribe(f=>{f.current?s.nodeValue=`${j.camelToKebab(r)}: ${f.current};`:s.nodeValue=""})),o(this,u).appendChild(s)}else o(this,u).appendChild(document.createTextNode(`${j.camelToKebab(r)}: ${i};`))}},q=new WeakSet,re=function(t,r){t.includes("--")?r?o(this,u).style.setProperty(t,r):o(this,u).style.removeProperty(t):r?o(this,u).style[t]=r:o(this,u).style[t]=""},I=new WeakSet,ve=function(t){if(t){o(this,m)||g(this,m,[]);for(const r in t){const i=r,s=j.uncapitalize(i.split("on").slice(1).join("on")),f=t[i];typeof f=="object"?o(this,m).push({name:s,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,m).push({name:s,callback:f})}c(this,x,ie).call(this)}},x=new WeakSet,ie=function(){var t;(t=o(this,m))==null||t.forEach(r=>{o(this,u).addEventListener(r.name,r.callback,r.options)})},A=new WeakSet,oe=function(){var t;(t=o(this,m))==null||t.forEach(r=>{o(this,u).removeEventListener(r.name,r.callback,r.options)})},J=new WeakSet,Ne=function(t){for(const r in t){const i=t[r];i instanceof y.Store?o(this,l).add(i.subscribe(({current:s})=>{c(this,M,se).call(this,r,s)})):c(this,M,se).call(this,r,i)}},M=new WeakSet,se=function(t,r){var s,f;const i=o(this,u);t in i&&!((f=(s=i.constructor)==null?void 0:s.observedAttributes)!=null&&f.includes(t))?r!=null&&(i[t]=r.toString()):r!=null&&i.setAttribute(t,r.toString())},v=new WeakSet,P=function(t,r){r&&(r=[r].flat(),r.forEach(i=>{if(i instanceof y.Store){const s=document.createElement("div");s.style.display="contents",t.appendChild(s),o(this,h)||g(this,h,[]);const f=o(this,h).length;s.setAttribute("store-root",""),o(this,h).push(s),o(this,l).add(i.subscribe(({current:d,previous:w})=>{const E=o(this,h)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Q=Array.from(E.childNodes),fe=[d].flat(),ke=[w].flat(),le=[],X=[];ke.forEach((p,S)=>{!fe.includes(p)&&Q[S]?le.push(Q[S]):X.push(p)}),fe.forEach((p,S)=>{if(X[S]){if(p!==X[S]){const C=c(this,F,ce).call(this,p),Z=Q[S];C instanceof Node?Z.isEqualNode(C)||E.replaceChild(C,Z):E.removeChild(Z)}}else{const C=c(this,F,ce).call(this,p);C instanceof Node&&s.appendChild(C)}}),le.forEach(p=>{E.removeChild(p)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof Y)c(this,D,ue).call(this,t,i.node);else if(i instanceof Function)c(this,v,P).call(this,t,we.isESClass(i)?new i:i());else{const s=c(this,H,ae).call(this,i);s instanceof Node&&c(this,D,ue).call(this,t,s)}}))},D=new WeakSet,ue=function(t,r){!(t instanceof ShadowRoot)&&r instanceof HTMLElement&&r.tagName==="STYLE"?(o(this,b).add(()=>{[...document.head.querySelectorAll("style")].find(s=>s.outerHTML===r.outerHTML)||document.head.appendChild(r)}),o(this,l).add(()=>{r.remove()})):t.appendChild(r)},F=new WeakSet,ce=function(t){return t instanceof Y?t.node:typeof t=="function"?we.isESClass(t)?new t:t():c(this,H,ae).call(this,t)},H=new WeakSet,ae=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},K=new WeakMap,U=new WeakMap;let n=Y;function He(...e){return new n(...e)}function Pe(e){return new n("a",e)}function Re(e){return new n("abbr",e)}function $e(e){return new n("address",e)}function Be(e){return new n("area",e)}function Ge(e){return new n("article",e)}function Ve(e){return new n("aside",e)}function We(e){return new n("audio",e)}function ze(e){return new n("b",e)}function Ie(e){return new n("base",e)}function Je(e){return new n("bdi",e)}function Ke(e){return new n("bdo",e)}function Ue(e){return new n("blockquote",e)}function Ye(e){return new n("body",e)}function Qe(e){return new n("br",e)}function Xe(e){return new n("button",e)}function Ze(e){return new n("canvas",e)}function _e(e){return new n("caption",e)}function Oe(e){return new n("cite",e)}function je(e){return new n("code",e)}function et(e){return new n("col",e)}function tt(e){return new n("colgroup",e)}function nt(e){return new n("data",e)}function rt(e){return new n("datalist",e)}function it(e){return new n("dd",e)}function ot(e){return new n("del",e)}function st(e){return new n("details",e)}function ut(e){return new n("dfn",e)}function ct(e){return new n("dialog",e)}function at(e){return new n("div",e)}function ft(e){return new n("dl",e)}function lt(e){return new n("dt",e)}function dt(e){return new n("em",e)}function ht(e){return new n("embed",e)}function mt(e){return new n("fieldset",e)}function wt(e){return new n("figcaption",e)}function pt(e){return new n("figure",e)}function bt(e){return new n("footer",e)}function gt(e){return new n("form",e)}function yt(e){return new n("h1",e)}function Et(e){return new n("h2",e)}function St(e){return new n("h3",e)}function Ct(e){return new n("h4",e)}function vt(e){return new n("h5",e)}function Nt(e){return new n("h6",e)}function kt(e){return new n("head",e)}function Tt(e){return new n("header",e)}function Lt(e){return new n("hgroup",e)}function qt(e){return new n("hr",e)}function xt(e){return new n("html",e)}function At(e){return new n("i",e)}function Mt(e){return new n("iframe",e)}function Dt(e){return new n("img",e)}function Ft(e){return new n("input",e)}function Ht(e){return new n("ins",e)}function Pt(e){return new n("kbd",e)}function Rt(e){return new n("label",e)}function $t(e){return new n("legend",e)}function Bt(e){return new n("li",e)}function Gt(e){return new n("link",e)}function Vt(e){return new n("main",e)}function Wt(e){return new n("map",e)}function zt(e){return new n("mark",e)}function It(e){return new n("menu",e)}function Jt(e){return new n("meta",e)}function Kt(e){return new n("meter",e)}function Ut(e){return new n("nav",e)}function Yt(e){return new n("noscript",e)}function Qt(e){return new n("object",e)}function Xt(e){return new n("ol",e)}function Zt(e){return new n("optgroup",e)}function _t(e){return new n("option",e)}function Ot(e){return new n("output",e)}function jt(e){return new n("p",e)}function en(e){return new n("picture",e)}function tn(e){return new n("pre",e)}function nn(e){return new n("progress",e)}function rn(e){return new n("q",e)}function on(e){return new n("rp",e)}function sn(e){return new n("rt",e)}function un(e){return new n("ruby",e)}function cn(e){return new n("s",e)}function an(e){return new n("samp",e)}function fn(e){return new n("script",e)}function ln(e){return new n("search",e)}function dn(e){return new n("section",e)}function hn(e){return new n("select",e)}function mn(e){return new n("slot",e)}function wn(e){return new n("small",e)}function pn(e){return new n("source",e)}function bn(e){return new n("span",e)}function gn(e){return new n("strong",e)}function yn(e){return new n("style",{style:e})}function En(e){return new n("sub",e)}function Sn(e){return new n("summary",e)}function Cn(e){return new n("sup",e)}function vn(e){return new n("table",e)}function Nn(e){return new n("tbody",e)}function kn(e){return new n("td",e)}function Tn(e){return new n("template",e)}function Ln(e){return new n("textarea",e)}function qn(e){return new n("tfoot",e)}function xn(e){return new n("th",e)}function An(e){return new n("thead",e)}function Mn(e){return new n("time",e)}function Dn(e){return new n("title",e)}function Fn(e){return new n("tr",e)}function Hn(e){return new n("track",e)}function Pn(e){return new n("u",e)}function Rn(e){return new n("ul",e)}function $n(e){return new n("var",e)}function Bn(e){return new n("video",e)}function Gn(e){return new n("wbr",e)}function Vn(e){return new n(document.createDocumentFragment(),e)}function Wn(e){return new n(document.createTextNode(""),e)}function zn(e){return new n("div",me(_({},e),{style:_({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=Pe;exports.abbr=Re;exports.address=$e;exports.area=Be;exports.article=Ge;exports.aside=Ve;exports.audio=We;exports.b=ze;exports.base=Ie;exports.bdi=Je;exports.bdo=Ke;exports.blockquote=Ue;exports.body=Ye;exports.br=Qe;exports.button=Xe;exports.canvas=Ze;exports.caption=_e;exports.cite=Oe;exports.code=je;exports.col=et;exports.colgroup=tt;exports.contents=zn;exports.data=nt;exports.datalist=rt;exports.dd=it;exports.del=ot;exports.details=st;exports.dfn=ut;exports.dialog=ct;exports.div=at;exports.dl=ft;exports.dt=lt;exports.element=He;exports.em=dt;exports.embed=ht;exports.empty=Wn;exports.fieldset=mt;exports.figcaption=wt;exports.figure=pt;exports.footer=bt;exports.form=gt;exports.fragment=Vn;exports.h1=yt;exports.h2=Et;exports.h3=St;exports.h4=Ct;exports.h5=vt;exports.h6=Nt;exports.head=kt;exports.header=Tt;exports.hgroup=Lt;exports.hr=qt;exports.html=xt;exports.htmlVar=$n;exports.i=At;exports.iframe=Mt;exports.img=Dt;exports.input=Ft;exports.ins=Ht;exports.kbd=Pt;exports.label=Rt;exports.legend=$t;exports.li=Bt;exports.link=Gt;exports.main=Vt;exports.map=Wt;exports.mark=zt;exports.menu=It;exports.meta=Jt;exports.meter=Kt;exports.nav=Ut;exports.noscript=Yt;exports.object=Qt;exports.ol=Xt;exports.optgroup=Zt;exports.option=_t;exports.output=Ot;exports.p=jt;exports.picture=en;exports.pre=tn;exports.progress=nn;exports.q=rn;exports.rp=on;exports.rt=sn;exports.ruby=un;exports.s=cn;exports.samp=an;exports.script=fn;exports.search=ln;exports.section=dn;exports.select=hn;exports.slot=mn;exports.small=wn;exports.source=pn;exports.span=bn;exports.strong=gn;exports.style=yn;exports.sub=En;exports.summary=Sn;exports.sup=Cn;exports.table=vn;exports.tbody=Nn;exports.td=kn;exports.template=Tn;exports.textarea=Ln;exports.tfoot=qn;exports.th=xn;exports.thead=An;exports.time=Mn;exports.title=Dn;exports.tr=Fn;exports.track=Hn;exports.u=Pn;exports.ul=Rn;exports.video=Bn;exports.wbr=Gn;
|