@thednp/shorty 2.0.0-alpha9 → 2.0.1

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/dist/shorty.mjs CHANGED
@@ -1,85 +1,107 @@
1
- const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", ve = "aria-expanded", Ee = "aria-haspopup", be = "aria-hidden", he = "aria-label", ye = "aria-labelledby", we = "aria-modal", Ae = "aria-pressed", Se = "aria-selected", Me = "aria-valuemin", Ne = "aria-valuemax", ke = "aria-valuenow", Te = "aria-valuetext", j = "abort", J = "beforeunload", K = "blur", X = "change", Y = "contextmenu", H = "DOMContentLoaded", Z = "DOMMouseScroll", $ = "error", _ = "focus", tt = "focusin", et = "focusout", nt = "gesturechange", ot = "gestureend", st = "gesturestart", ct = "keydown", rt = "keypress", at = "keyup", it = "load", ut = "click", lt = "dblclick", dt = "mousedown", pt = "mouseup", ft = "hover", mt = "mouseenter", gt = "mouseleave", vt = "mousein", Et = "mouseout", bt = "mouseover", ht = "mousemove", yt = "mousewheel", wt = "move", At = "orientationchange", St = "pointercancel", Mt = "pointerdown", Nt = "pointerleave", kt = "pointermove", Tt = "pointerup", Dt = "readystatechange", Ct = "reset", Lt = "resize", Ot = "select", It = "selectend", zt = "selectstart", xt = "scroll", Vt = "submit", Bt = "touchstart", Ht = "touchmove", Pt = "touchcancel", Ut = "touchend", Ft = "unload", De = {
2
- DOMContentLoaded: H,
3
- DOMMouseScroll: Z,
4
- abort: j,
5
- beforeunload: J,
6
- blur: K,
7
- change: X,
8
- click: ut,
9
- contextmenu: Y,
10
- dblclick: lt,
11
- error: $,
12
- focus: _,
13
- focusin: tt,
14
- focusout: et,
15
- gesturechange: nt,
16
- gestureend: ot,
17
- gesturestart: st,
18
- hover: ft,
19
- keydown: ct,
20
- keypress: rt,
21
- keyup: at,
22
- load: it,
23
- mousedown: dt,
24
- mousemove: ht,
25
- mousein: vt,
26
- mouseout: Et,
1
+ const pe = "aria-checked", me = "aria-description", fe = "aria-describedby", ge = "aria-expanded", ve = "aria-haspopup", Ee = "aria-hidden", be = "aria-label", he = "aria-labelledby", ye = "aria-modal", we = "aria-pressed", Ae = "aria-selected", Se = "aria-valuemin", Ne = "aria-valuemax", ke = "aria-valuenow", Me = "aria-valuetext", q = "abort", G = "beforeunload", J = "blur", K = "change", X = "contextmenu", P = "DOMContentLoaded", Y = "DOMMouseScroll", Z = "error", $ = "focus", _ = "focusin", tt = "focusout", et = "gesturechange", nt = "gestureend", ot = "gesturestart", st = "keydown", ct = "keypress", rt = "keyup", at = "load", it = "click", ut = "dblclick", lt = "mousedown", dt = "mouseup", pt = "hover", mt = "mouseenter", ft = "mouseleave", gt = "mousein", vt = "mouseout", Et = "mouseover", bt = "mousemove", ht = "mousewheel", yt = "move", wt = "orientationchange", At = "pointercancel", St = "pointerdown", Nt = "pointerleave", kt = "pointermove", Mt = "pointerup", Tt = "readystatechange", Dt = "reset", Ct = "resize", Ot = "select", Lt = "selectend", It = "selectstart", zt = "scroll", xt = "submit", Vt = "touchstart", Bt = "touchmove", Ht = "touchcancel", Pt = "touchend", Ft = "unload", Te = {
2
+ DOMContentLoaded: P,
3
+ DOMMouseScroll: Y,
4
+ abort: q,
5
+ beforeunload: G,
6
+ blur: J,
7
+ change: K,
8
+ click: it,
9
+ contextmenu: X,
10
+ dblclick: ut,
11
+ error: Z,
12
+ focus: $,
13
+ focusin: _,
14
+ focusout: tt,
15
+ gesturechange: et,
16
+ gestureend: nt,
17
+ gesturestart: ot,
18
+ hover: pt,
19
+ keydown: st,
20
+ keypress: ct,
21
+ keyup: rt,
22
+ load: at,
23
+ mousedown: lt,
24
+ mousemove: bt,
25
+ mousein: gt,
26
+ mouseout: vt,
27
27
  mouseenter: mt,
28
- mouseleave: gt,
29
- mouseover: bt,
30
- mouseup: pt,
31
- mousewheel: yt,
32
- move: wt,
33
- orientationchange: At,
34
- pointercancel: St,
35
- pointerdown: Mt,
28
+ mouseleave: ft,
29
+ mouseover: Et,
30
+ mouseup: dt,
31
+ mousewheel: ht,
32
+ move: yt,
33
+ orientationchange: wt,
34
+ pointercancel: At,
35
+ pointerdown: St,
36
36
  pointerleave: Nt,
37
37
  pointermove: kt,
38
- pointerup: Tt,
39
- readystatechange: Dt,
40
- reset: Ct,
41
- resize: Lt,
42
- scroll: xt,
38
+ pointerup: Mt,
39
+ readystatechange: Tt,
40
+ reset: Dt,
41
+ resize: Ct,
42
+ scroll: zt,
43
43
  select: Ot,
44
- selectend: It,
45
- selectstart: zt,
46
- submit: Vt,
47
- touchcancel: Pt,
48
- touchend: Ut,
49
- touchmove: Ht,
50
- touchstart: Bt,
44
+ selectend: Lt,
45
+ selectstart: It,
46
+ submit: xt,
47
+ touchcancel: Ht,
48
+ touchend: Pt,
49
+ touchmove: Bt,
50
+ touchstart: Vt,
51
51
  unload: Ft
52
- }, Ce = "drag", Le = "dragstart", Oe = "dragenter", Ie = "dragleave", ze = "dragover", xe = "dragend", Ve = "loadstart", Be = {
52
+ }, De = "drag", Ce = "dragstart", Oe = "dragenter", Le = "dragleave", Ie = "dragover", ze = "dragend", xe = "loadstart", Ve = {
53
53
  start: "mousedown",
54
54
  end: "mouseup",
55
55
  move: "mousemove",
56
56
  cancel: "mouseleave"
57
- }, He = { down: "mousedown", up: "mouseup" }, Pe = "onmouseleave" in document ? ["mouseenter", "mouseleave"] : ["mouseover", "mouseout"], Ue = {
57
+ }, Be = { down: "mousedown", up: "mouseup" }, He = "onmouseleave" in document ? ["mouseenter", "mouseleave"] : (
58
+ /* istanbul ignore next */
59
+ ["mouseover", "mouseout"]
60
+ ), Pe = {
58
61
  start: "touchstart",
59
62
  end: "touchend",
60
63
  move: "touchmove",
61
64
  cancel: "touchcancel"
62
- }, Fe = { in: "focusin", out: "focusout" }, We = {
65
+ }, Fe = { in: "focusin", out: "focusout" }, Ue = {
63
66
  Backspace: "Backspace",
67
+ // 8
64
68
  Tab: "Tab",
69
+ // 9
65
70
  Enter: "Enter",
71
+ // 13
66
72
  Shift: "Shift",
73
+ // 16
67
74
  Control: "Control",
75
+ // 17
68
76
  Alt: "Alt",
77
+ // 18
69
78
  Pause: "Pause",
79
+ // 19
70
80
  CapsLock: "CapsLock",
81
+ // 20
71
82
  Escape: "Escape",
83
+ // 27
72
84
  Scape: "Space",
85
+ // 32
73
86
  ArrowLeft: "ArrowLeft",
87
+ // 37
74
88
  ArrowUp: "ArrowUp",
89
+ // 38
75
90
  ArrowRight: "ArrowRight",
91
+ // 39
76
92
  ArrowDown: "ArrowDown",
93
+ // 40
77
94
  Insert: "Insert",
95
+ // 45
78
96
  Delete: "Delete",
97
+ // 46
79
98
  Meta: "Meta",
99
+ // 91 windows key
80
100
  ContextMenu: "ContextMenu",
101
+ // 93
81
102
  ScrollLock: "ScrollLock"
82
- }, Re = "Alt", Qe = "ArrowDown", qe = "ArrowUp", Ge = "ArrowLeft", je = "ArrowRight", Je = "Backspace", Ke = "CapsLock", Xe = "Control", Ye = "Delete", Ze = "Enter", $e = "Escape", _e = "Insert", tn = "Meta", en = "Pause", nn = "ScrollLock", on = "Shift", sn = "Space", cn = "Tab", Wt = "animationDuration", Rt = "animationDelay", P = "animationName", T = "animationend", Qt = "transitionDuration", qt = "transitionDelay", D = "transitionend", U = "transitionProperty", rn = "addEventListener", an = "removeEventListener", un = {
103
+ // 145
104
+ }, We = "Alt", Re = "ArrowDown", Qe = "ArrowUp", je = "ArrowLeft", qe = "ArrowRight", Ge = "Backspace", Je = "CapsLock", Ke = "Control", Xe = "Delete", Ye = "Enter", Ze = "NumpadEnter", $e = "Escape", _e = "Insert", tn = "Meta", en = "Pause", nn = "ScrollLock", on = "Shift", sn = "Space", cn = "Tab", Ut = "animationDuration", Wt = "animationDelay", F = "animationName", D = "animationend", Rt = "transitionDuration", Qt = "transitionDelay", C = "transitionend", U = "transitionProperty", rn = "addEventListener", an = "removeEventListener", un = {
83
105
  linear: "linear",
84
106
  easingSinusoidalIn: "cubic-bezier(0.47,0,0.745,0.715)",
85
107
  easingSinusoidalOut: "cubic-bezier(0.39,0.575,0.565,1)",
@@ -105,448 +127,531 @@ const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", ve
105
127
  easingBackIn: "cubic-bezier(0.6,-0.28,0.735,0.045)",
106
128
  easingBackOut: "cubic-bezier(0.175,0.885,0.32,1.275)",
107
129
  easingBackInOut: "cubic-bezier(0.68,-0.55,0.265,1.55)"
108
- }, ln = "offsetHeight", dn = "offsetWidth", pn = "scrollHeight", fn = "scrollWidth", mn = "tabindex", Gt = navigator.userAgentData, S = Gt, { userAgent: jt } = navigator, M = jt, I = /iPhone|iPad|iPod|Android/i;
109
- let C = !1;
110
- S ? C = S.brands.some((t) => I.test(t.brand)) : C = I.test(M);
111
- const gn = C, z = /(iPhone|iPod|iPad)/, vn = S ? S.brands.some((t) => z.test(t.brand)) : z.test(M), En = M ? M.includes("Firefox") : !1, { head: N } = document, bn = ["webkitPerspective", "perspective"].some((t) => t in N.style), Jt = (t, e, n, o) => {
130
+ }, ln = "offsetHeight", dn = "offsetWidth", pn = "scrollHeight", mn = "scrollWidth", fn = "tabindex", jt = navigator.userAgentData, A = jt, { userAgent: qt } = navigator, S = qt, z = /iPhone|iPad|iPod|Android/i;
131
+ let O = !1;
132
+ A ? O = A.brands.some((t) => z.test(t.brand)) : O = z.test(S);
133
+ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.brand)) : (
134
+ /* istanbul ignore next */
135
+ x.test(S)
136
+ ), En = S ? S.includes("Firefox") : (
137
+ /* istanbul ignore next */
138
+ !1
139
+ ), { head: N } = document, bn = ["webkitPerspective", "perspective"].some((t) => t in N.style), Gt = (t, e, n, o) => {
112
140
  const s = o || !1;
113
141
  t.addEventListener(e, n, s);
114
- }, Kt = (t, e, n, o) => {
142
+ }, Jt = (t, e, n, o) => {
115
143
  const s = o || !1;
116
144
  t.removeEventListener(e, n, s);
117
- }, Xt = (t, e, n, o) => {
118
- const s = (c) => {
119
- (c.target === t || c.currentTarget === t) && (n.apply(t, [c]), Kt(t, e, s, o));
145
+ }, Kt = (t, e, n, o) => {
146
+ const s = (r) => {
147
+ (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Jt(t, e, s, o));
120
148
  };
121
- Jt(t, e, s, o);
122
- }, Yt = () => {
149
+ Gt(t, e, s, o);
150
+ }, Xt = () => {
123
151
  }, hn = (() => {
124
152
  let t = !1;
125
153
  try {
126
154
  const e = Object.defineProperty({}, "passive", {
127
155
  get: () => (t = !0, t)
128
156
  });
129
- Xt(document, H, Yt, e);
157
+ Kt(document, P, Xt, e);
130
158
  } catch {
131
159
  }
132
160
  return t;
133
- })(), yn = ["webkitTransform", "transform"].some((t) => t in N.style), wn = "ontouchstart" in window || "msMaxTouchPoints" in navigator, An = ["webkitAnimation", "animation"].some((t) => t in N.style), Sn = ["webkitTransition", "transition"].some((t) => t in N.style), Zt = (t, e) => t.getAttribute(e), Mn = (t, e, n) => e.getAttributeNS(t, n), Nn = (t, e) => t.hasAttribute(e), kn = (t, e, n) => e.hasAttributeNS(t, n), F = (t, e, n) => t.setAttribute(e, n), Tn = (t, e, n, o) => e.setAttributeNS(t, n, o), Dn = (t, e) => t.removeAttribute(e), Cn = (t, e, n) => e.removeAttributeNS(t, n), Ln = (t, ...e) => {
161
+ })(), yn = ["webkitTransform", "transform"].some((t) => t in N.style), wn = "ontouchstart" in window || /* istanbul ignore next */
162
+ "msMaxTouchPoints" in navigator, An = ["webkitAnimation", "animation"].some((t) => t in N.style), Sn = ["webkitTransition", "transition"].some((t) => t in N.style), Yt = (t, e) => t.getAttribute(e), Nn = (t, e, n) => e.getAttributeNS(t, n), kn = (t, e) => t.hasAttribute(e), Mn = (t, e, n) => e.hasAttributeNS(t, n), Tn = (t, e, n) => t.setAttribute(e, n), Dn = (t, e, n, o) => e.setAttributeNS(t, n, o), Cn = (t, e) => t.removeAttribute(e), On = (t, e, n) => e.removeAttributeNS(t, n), Ln = (t, ...e) => {
134
163
  t.classList.add(...e);
135
- }, On = (t, ...e) => {
164
+ }, In = (t, ...e) => {
136
165
  t.classList.remove(...e);
137
- }, In = (t, e) => t.classList.contains(e), { body: zn } = document, { documentElement: xn } = document, Vn = (t) => Array.from(t), E = (t) => t != null && typeof t == "object" || !1, i = (t) => E(t) && typeof t.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some((e) => t.nodeType === e) || !1, u = (t) => i(t) && t.nodeType === 1 || !1, y = /* @__PURE__ */ new Map(), L = {
166
+ }, zn = (t, e) => t.classList.contains(e), { body: xn } = document, { documentElement: Vn } = document, Bn = (t) => Array.from(t), v = (t) => t != null && typeof t == "object" || !1, i = (t) => v(t) && typeof t.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some((e) => t.nodeType === e) || !1, u = (t) => i(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {
167
+ data: E,
168
+ /**
169
+ * Sets web components data.
170
+ *
171
+ * @param element target element
172
+ * @param component the component's name or a unique key
173
+ * @param instance the component instance
174
+ */
138
175
  set: (t, e, n) => {
139
- if (!u(t))
140
- return;
141
- y.has(e) || y.set(e, /* @__PURE__ */ new Map()), y.get(e).set(t, n);
176
+ if (!u(t)) return;
177
+ E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);
142
178
  },
143
- getAllFor: (t) => y.get(t) || null,
179
+ /**
180
+ * Returns all instances for specified component.
181
+ *
182
+ * @param component the component's name or a unique key
183
+ * @returns all the component instances
184
+ */
185
+ getAllFor: (t) => E.get(t) || null,
186
+ /**
187
+ * Returns the instance associated with the target.
188
+ *
189
+ * @param element target element
190
+ * @param component the component's name or a unique key
191
+ * @returns the instance
192
+ */
144
193
  get: (t, e) => {
145
- if (!u(t) || !e)
146
- return null;
194
+ if (!u(t) || !e) return null;
147
195
  const n = L.getAllFor(e);
148
196
  return t && n && n.get(t) || null;
149
197
  },
198
+ /**
199
+ * Removes web components data.
200
+ *
201
+ * @param element target element
202
+ * @param component the component's name or a unique key
203
+ */
150
204
  remove: (t, e) => {
151
205
  const n = L.getAllFor(e);
152
- !n || !u(t) || (n.delete(t), n.size === 0 && y.delete(e));
206
+ !n || !u(t) || (n.delete(t), n.size === 0 && E.delete(e));
153
207
  }
154
- }, Bn = (t, e) => L.get(t, e), g = (t) => typeof t == "string" || !1, W = (t) => E(t) && t.constructor.name === "Window" || !1, R = (t) => i(t) && t.nodeType === 9 || !1, d = (t) => W(t) ? t.document : R(t) ? t : i(t) ? t.ownerDocument : window.document, h = (t) => Object.entries(t), $t = (t) => {
155
- if (!t)
156
- return;
157
- if (g(t))
208
+ }, Hn = (t, e) => L.get(t, e), k = (t) => typeof t == "string" || !1, W = (t) => v(t) && t.constructor.name === "Window" || !1, R = (t) => i(t) && t.nodeType === 9 || !1, d = (t) => W(t) ? t.document : R(t) ? t : i(t) ? t.ownerDocument : window.document, M = (t, ...e) => Object.assign(t, ...e), Zt = (t) => {
209
+ if (!t) return;
210
+ if (k(t))
158
211
  return d().createElement(t);
159
- const { tagName: e } = t, n = $t(e);
160
- if (!n)
161
- return;
212
+ const { tagName: e } = t, n = Zt(e);
213
+ if (!n) return;
162
214
  const o = { ...t };
163
- return delete o.tagName, h(o).forEach(([s, c]) => {
164
- g(s) && g(c) && F(n, s, c);
165
- }), n;
166
- }, _t = (t, e) => {
167
- if (!t || !e)
168
- return;
169
- if (g(e))
215
+ return delete o.tagName, M(n, o);
216
+ }, $t = (t, e) => {
217
+ if (!t || !e) return;
218
+ if (k(e))
170
219
  return d().createElementNS(t, e);
171
- const { tagName: n } = e, o = _t(t, n);
172
- if (!o)
173
- return;
220
+ const { tagName: n } = e, o = $t(t, n);
221
+ if (!o) return;
174
222
  const s = { ...e };
175
- return delete s.tagName, h(s).forEach(([c, a]) => {
176
- g(c) && g(a) && F(o, c, a);
177
- }), o;
178
- }, Q = (t, e) => t.dispatchEvent(e), Hn = (t, e, n) => n.indexOf(t) === e, v = (t, e) => {
223
+ return delete s.tagName, M(o, s);
224
+ }, Q = (t, e) => t.dispatchEvent(e), Pn = (t, e, n) => n.indexOf(t) === e, g = (t, e) => {
179
225
  const n = getComputedStyle(t), o = e.replace("webkit", "Webkit").replace(/([A-Z])/g, "-$1").toLowerCase();
180
226
  return n.getPropertyValue(o);
227
+ }, _t = (t) => {
228
+ const e = g(t, F), n = g(t, Wt), o = n.includes("ms") ? (
229
+ /* istanbul ignore next */
230
+ 1
231
+ ) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
232
+ return Number.isNaN(s) ? (
233
+ /* istanbul ignore next */
234
+ 0
235
+ ) : s;
181
236
  }, te = (t) => {
182
- const e = v(t, P), n = v(t, Rt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
183
- return Number.isNaN(s) ? 0 : s;
184
- }, ee = (t) => {
185
- const e = v(t, P), n = v(t, Wt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
186
- return Number.isNaN(s) ? 0 : s;
187
- }, Pn = (t, e) => {
237
+ const e = g(t, F), n = g(t, Ut), o = n.includes("ms") ? (
238
+ /* istanbul ignore next */
239
+ 1
240
+ ) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
241
+ return Number.isNaN(s) ? (
242
+ /* istanbul ignore next */
243
+ 0
244
+ ) : s;
245
+ }, Fn = (t, e) => {
188
246
  let n = 0;
189
- const o = new Event(T), s = ee(t), c = te(t);
247
+ const o = new Event(D), s = te(t), r = _t(t);
190
248
  if (s) {
191
249
  const a = (l) => {
192
- l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);
250
+ l.target === t && (e.apply(t, [l]), t.removeEventListener(D, a), n = 1);
193
251
  };
194
- t.addEventListener(T, a), setTimeout(() => {
252
+ t.addEventListener(D, a), setTimeout(() => {
195
253
  n || Q(t, o);
196
- }, s + c + 17);
254
+ }, s + r + 17);
197
255
  } else
198
256
  e.apply(t, [o]);
257
+ }, ee = (t) => {
258
+ const e = g(t, U), n = g(t, Qt), o = n.includes("ms") ? (
259
+ /* istanbul ignore next */
260
+ 1
261
+ ) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : (
262
+ /* istanbul ignore next */
263
+ 0
264
+ );
265
+ return Number.isNaN(s) ? (
266
+ /* istanbul ignore next */
267
+ 0
268
+ ) : s;
199
269
  }, ne = (t) => {
200
- const e = v(t, U), n = v(t, qt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
201
- return Number.isNaN(s) ? 0 : s;
202
- }, oe = (t) => {
203
- const e = v(t, U), n = v(t, Qt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
204
- return Number.isNaN(s) ? 0 : s;
270
+ const e = g(t, U), n = g(t, Rt), o = n.includes("ms") ? (
271
+ /* istanbul ignore next */
272
+ 1
273
+ ) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : (
274
+ /* istanbul ignore next */
275
+ 0
276
+ );
277
+ return Number.isNaN(s) ? (
278
+ /* istanbul ignore next */
279
+ 0
280
+ ) : s;
205
281
  }, Un = (t, e) => {
206
282
  let n = 0;
207
- const o = new Event(D), s = oe(t), c = ne(t);
283
+ const o = new Event(C), s = ne(t), r = ee(t);
208
284
  if (s) {
209
285
  const a = (l) => {
210
- l.target === t && (e.apply(t, [l]), t.removeEventListener(D, a), n = 1);
286
+ l.target === t && (e.apply(t, [l]), t.removeEventListener(C, a), n = 1);
211
287
  };
212
- t.addEventListener(D, a), setTimeout(() => {
288
+ t.addEventListener(C, a), setTimeout(() => {
213
289
  n || Q(t, o);
214
- }, s + c + 17);
290
+ }, s + r + 17);
215
291
  } else
216
292
  e.apply(t, [o]);
217
- }, Fn = (t) => Float32Array.from(Array.from(t)), Wn = (t) => Float64Array.from(Array.from(t)), Rn = (t, e) => t.focus(e), x = (t) => ["true", !0].includes(t) ? !0 : ["false", !1].includes(t) ? !1 : ["null", "", null, void 0].includes(t) ? null : t !== "" && !Number.isNaN(+t) ? +t : t, se = (t) => t.toLowerCase(), Qn = (t, e, n, o) => {
218
- const s = { ...n }, c = { ...t.dataset }, a = { ...e }, l = {}, p = "title";
219
- return h(c).forEach(([r, f]) => {
220
- const A = o && typeof r == "string" && r.includes(o) ? r.replace(o, "").replace(/[A-Z]/g, (G) => se(G)) : r;
221
- l[A] = x(f);
222
- }), h(s).forEach(([r, f]) => {
223
- s[r] = x(f);
224
- }), h(e).forEach(([r, f]) => {
225
- r in s ? a[r] = s[r] : r in l ? a[r] = l[r] : a[r] = r === p ? Zt(t, p) : f;
293
+ }, Wn = (t) => Float32Array.from(Array.from(t)), Rn = (t) => Float64Array.from(Array.from(t)), Qn = (t, e) => t.focus(e), V = (t) => ["true", !0].includes(t) ? !0 : ["false", !1].includes(t) ? !1 : ["null", "", null, void 0].includes(t) ? null : t !== "" && !Number.isNaN(+t) ? +t : t, w = (t) => Object.entries(t), oe = (t) => t.toLowerCase(), jn = (t, e, n, o) => {
294
+ const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = "title";
295
+ return w(r).forEach(([c, m]) => {
296
+ const y = o && typeof c == "string" && c.includes(o) ? c.replace(o, "").replace(/[A-Z]/g, (j) => oe(j)) : c;
297
+ l[y] = V(m);
298
+ }), w(s).forEach(([c, m]) => {
299
+ s[c] = V(m);
300
+ }), w(e).forEach(([c, m]) => {
301
+ c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? Yt(t, p) : m;
226
302
  }), a;
227
- }, q = (t, ...e) => Object.assign(t, ...e), qn = (t, e) => E(t) && (Object.hasOwn(t, e) || e in t), Gn = (t) => Object.keys(t), jn = (t) => Object.values(t), Jn = (t, e) => {
303
+ }, qn = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), Gn = (t) => Object.keys(t), Jn = (t) => Object.values(t), Kn = (t) => Object.fromEntries(t), Xn = (t, e) => {
228
304
  const n = new CustomEvent(t, {
229
305
  cancelable: !0,
230
306
  bubbles: !0
231
307
  });
232
- return E(e) && q(n, e), n;
233
- }, Kn = { passive: !0 }, Xn = (t) => t.offsetHeight, Yn = (t, e) => {
234
- h(e).forEach(([n, o]) => {
235
- if (o && g(n) && n.includes("--"))
308
+ return v(e) && M(n, e), n;
309
+ }, Yn = { passive: !0 }, Zn = (t) => t.offsetHeight, $n = (t, e) => {
310
+ w(e).forEach(([n, o]) => {
311
+ if (o && k(n) && n.includes("--"))
236
312
  t.style.setProperty(n, o);
237
313
  else {
238
314
  const s = {};
239
- s[n] = o, q(t.style, s);
315
+ s[n] = o, M(t.style, s);
240
316
  }
241
317
  });
242
- }, O = (t) => E(t) && t.constructor.name === "Map" || !1, ce = (t) => typeof t == "number" || !1, m = /* @__PURE__ */ new Map(), Zn = {
318
+ }, I = (t) => v(t) && t.constructor.name === "Map" || !1, se = (t) => typeof t == "number" || !1, f = /* @__PURE__ */ new Map(), _n = {
319
+ /**
320
+ * Sets a new timeout timer for an element, or element -> key association.
321
+ *
322
+ * @param element target element
323
+ * @param callback the callback
324
+ * @param delay the execution delay
325
+ * @param key a unique key
326
+ */
243
327
  set: (t, e, n, o) => {
244
- !u(t) || (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));
328
+ u(t) && (o && o.length ? (f.has(t) || f.set(t, /* @__PURE__ */ new Map()), f.get(t).set(o, setTimeout(e, n))) : f.set(t, setTimeout(e, n)));
245
329
  },
330
+ /**
331
+ * Returns the timer associated with the target.
332
+ *
333
+ * @param element target element
334
+ * @param key a unique
335
+ * @returns the timer
336
+ */
246
337
  get: (t, e) => {
247
- if (!u(t))
248
- return null;
249
- const n = m.get(t);
250
- return e && n && O(n) ? n.get(e) || null : ce(n) ? n : null;
338
+ if (!u(t)) return null;
339
+ const n = f.get(t);
340
+ return e && n && I(n) ? n.get(e) || /* istanbul ignore next */
341
+ null : se(n) ? n : null;
251
342
  },
343
+ /**
344
+ * Clears the element's timer.
345
+ *
346
+ * @param element target element
347
+ * @param key a unique key
348
+ */
252
349
  clear: (t, e) => {
253
- if (!u(t))
254
- return;
255
- const n = m.get(t);
256
- e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));
350
+ if (!u(t)) return;
351
+ const n = f.get(t);
352
+ e && e.length && I(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && f.delete(t)) : (clearTimeout(n), f.delete(t));
257
353
  }
258
- }, $n = (t) => t.toUpperCase(), w = (t, e) => {
259
- const { width: n, height: o, top: s, right: c, bottom: a, left: l } = t.getBoundingClientRect();
260
- let p = 1, r = 1;
354
+ }, to = (t) => t.toUpperCase(), h = (t, e) => {
355
+ const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();
356
+ let p = 1, c = 1;
261
357
  if (e && u(t)) {
262
- const { offsetWidth: f, offsetHeight: A } = t;
263
- p = f > 0 ? Math.round(n) / f : 1, r = A > 0 ? Math.round(o) / A : 1;
358
+ const { offsetWidth: m, offsetHeight: y } = t;
359
+ p = m > 0 ? Math.round(n) / m : (
360
+ /* istanbul ignore next */
361
+ 1
362
+ ), c = y > 0 ? Math.round(o) / y : (
363
+ /* istanbul ignore next */
364
+ 1
365
+ );
264
366
  }
265
367
  return {
266
368
  width: n / p,
267
- height: o / r,
268
- top: s / r,
269
- right: c / p,
270
- bottom: a / r,
369
+ height: o / c,
370
+ top: s / c,
371
+ right: r / p,
372
+ bottom: a / c,
271
373
  left: l / p,
272
374
  x: l / p,
273
- y: s / r
375
+ y: s / c
274
376
  };
275
- }, _n = (t) => d(t).body, k = (t) => d(t).documentElement, to = (t) => d(t).head, eo = (t) => {
377
+ }, eo = (t) => d(t).body, T = (t) => d(t).documentElement, no = (t) => d(t).head, oo = (t) => {
276
378
  const e = W(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;
277
379
  return { x: n, y: o };
278
- }, re = (t) => i(t) && t.constructor.name === "ShadowRoot" || !1, no = (t) => t.nodeName === "HTML" ? t : u(t) && t.assignedSlot || i(t) && t.parentNode || re(t) && t.host || k(t), ae = (t) => {
279
- if (!u(t))
280
- return !1;
281
- const { width: e, height: n } = w(t), { offsetWidth: o, offsetHeight: s } = t;
380
+ }, ce = (t) => i(t) && t.constructor.name === "ShadowRoot" || !1, so = (t) => t.nodeName === "HTML" ? t : u(t) && t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
381
+ i(t) && t.parentNode || // DOM Element detected
382
+ ce(t) && t.host || // ShadowRoot detected
383
+ T(t), re = (t) => {
384
+ if (!u(t)) return !1;
385
+ const { width: e, height: n } = h(t), { offsetWidth: o, offsetHeight: s } = t;
282
386
  return Math.round(e) !== o || Math.round(n) !== s;
283
- }, oo = (t, e, n) => {
284
- const o = u(e), s = w(t, o && ae(e)), c = { x: 0, y: 0 };
387
+ }, co = (t, e, n) => {
388
+ const o = u(e), s = h(t, o && re(e)), r = { x: 0, y: 0 };
285
389
  if (o) {
286
- const a = w(e, !0);
287
- c.x = a.x + e.clientLeft, c.y = a.y + e.clientTop;
390
+ const a = h(e, !0);
391
+ r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;
288
392
  }
289
393
  return {
290
- x: s.left + n.x - c.x,
291
- y: s.top + n.y - c.y,
394
+ x: s.left + n.x - r.x,
395
+ y: s.top + n.y - r.y,
292
396
  width: s.width,
293
397
  height: s.height
294
398
  };
295
399
  };
296
- let V = 0, B = 0;
297
- const b = /* @__PURE__ */ new Map(), ie = (t, e) => {
298
- let n = e ? V : B;
400
+ let B = 0, H = 0;
401
+ const b = /* @__PURE__ */ new Map(), ae = (t, e) => {
402
+ let n = e ? B : H;
299
403
  if (e) {
300
- const o = ie(t), s = b.get(o) || /* @__PURE__ */ new Map();
301
- b.has(o) || b.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), V += 1) : n = s.get(e);
404
+ const o = ae(t), s = b.get(o) || /* @__PURE__ */ new Map();
405
+ b.has(o) || b.set(o, s), I(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);
302
406
  } else {
303
407
  const o = t.id || t;
304
- b.has(o) ? n = b.get(o) : (b.set(o, n), B += 1);
408
+ b.has(o) ? n = b.get(o) : (b.set(o, n), H += 1);
305
409
  }
306
410
  return n;
307
- }, so = (t) => {
411
+ }, ro = (t) => {
308
412
  var e;
309
413
  return t ? R(t) ? t.defaultView : i(t) ? (e = t == null ? void 0 : t.ownerDocument) == null ? void 0 : e.defaultView : t : window;
310
- }, ue = (t) => Array.isArray(t) || !1, co = (t) => i(t) && t.nodeName === "CANVAS" || !1, le = (t) => u(t) && !!t.shadowRoot || !1, ro = (t) => i(t) && [1, 2, 3, 4, 5, 6, 7, 8].some((e) => t.nodeType === e) || !1, ao = (t) => {
311
- if (!i(t))
312
- return !1;
313
- const { top: e, bottom: n } = w(t), { clientHeight: o } = k(t);
414
+ }, ie = (t) => Array.isArray(t) || !1, ao = (t) => i(t) && t.nodeName === "CANVAS" || !1, ue = (t) => u(t) && !!t.shadowRoot || !1, io = (t) => i(t) && [1, 2, 3, 4, 5, 6, 7, 8].some((e) => t.nodeType === e) || !1, uo = (t) => {
415
+ if (!i(t)) return !1;
416
+ const { top: e, bottom: n } = h(t), { clientHeight: o } = T(t);
314
417
  return e <= o && n >= 0;
315
- }, io = (t) => {
316
- if (!i(t))
317
- return !1;
318
- const { clientWidth: e, clientHeight: n } = k(t), { top: o, left: s, bottom: c, right: a } = w(t, !0);
319
- return o >= 0 && s >= 0 && c <= n && a <= e;
320
- }, uo = (t) => ue(t) && t.every(u) || !1, lo = (t) => typeof t == "function" || !1, po = (t) => E(t) && t.constructor.name === "HTMLCollection" || !1, fo = (t) => u(t) && t.tagName === "IMG" || !1, mo = (t) => {
321
- if (!g(t))
322
- return !1;
418
+ }, lo = (t) => {
419
+ if (!i(t)) return !1;
420
+ const { clientWidth: e, clientHeight: n } = T(t), { top: o, left: s, bottom: r, right: a } = h(t, !0);
421
+ return o >= 0 && s >= 0 && r <= n && a <= e;
422
+ }, po = (t) => ie(t) && t.every(u) || !1, mo = (t) => typeof t == "function" || !1, fo = (t) => v(t) && t.constructor.name === "HTMLCollection" || !1, go = (t) => u(t) && t.tagName === "IMG" || !1, vo = (t) => {
423
+ if (!k(t)) return !1;
323
424
  try {
324
425
  JSON.parse(t);
325
426
  } catch {
326
427
  return !1;
327
428
  }
328
429
  return !0;
329
- }, go = (t) => E(t) && t.constructor.name === "WeakMap" || !1, vo = (t) => i(t) && ["SVG", "Image", "Video", "Canvas"].some((e) => t.constructor.name.includes(e)) || !1, Eo = (t) => E(t) && t.constructor.name === "NodeList" || !1, bo = (t) => k(t).dir === "rtl", ho = (t) => i(t) && t.constructor.name.includes("SVG") || !1, yo = (t) => i(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, de = (t, e) => t ? t.closest(e) || de(t.getRootNode().host, e) : null, wo = (t, e) => u(t) ? t : (i(e) ? e : d()).querySelector(t), pe = (t, e) => (i(e) ? e : d()).getElementsByTagName(t), Ao = (t) => [...pe("*", t)].filter(le), So = (t, e) => d(e).getElementById(t) || null, Mo = (t, e) => (i(e) ? e : d()).querySelectorAll(t), No = (t, e) => (e && i(e) ? e : d()).getElementsByClassName(
430
+ }, Eo = (t) => v(t) && t.constructor.name === "WeakMap" || !1, bo = (t) => i(t) && ["SVG", "Image", "Video", "Canvas"].some((e) => t.constructor.name.includes(e)) || !1, ho = (t) => v(t) && t.constructor.name === "NodeList" || !1, yo = (t) => T(t).dir === "rtl", wo = (t) => i(t) && t.constructor.name.includes("SVG") || !1, Ao = (t) => i(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, le = (t, e) => t ? t.closest(e) || // break out of `ShadowRoot`
431
+ le(t.getRootNode().host, e) : null, So = (t, e) => u(t) ? t : (i(e) ? e : d()).querySelector(t), de = (t, e) => (i(e) ? e : d()).getElementsByTagName(t), No = (t) => [...de("*", t)].filter(ue), ko = (t, e) => d(e).getElementById(t) || null, Mo = (t, e) => (i(e) ? e : d()).querySelectorAll(t), To = (t, e) => (e && i(e) ? e : d()).getElementsByClassName(
330
432
  t
331
- ), ko = (t, e) => t.matches(e);
433
+ ), Do = (t, e) => t.matches(e), Co = "2.0.1";
332
434
  export {
333
- Vn as ArrayFrom,
334
- H as DOMContentLoadedEvent,
335
- Z as DOMMouseScrollEvent,
435
+ Bn as ArrayFrom,
436
+ P as DOMContentLoadedEvent,
437
+ Y as DOMMouseScrollEvent,
336
438
  L as Data,
337
- Fn as Float32ArrayFrom,
338
- Wn as Float64ArrayFrom,
339
- q as ObjectAssign,
340
- h as ObjectEntries,
439
+ Wn as Float32ArrayFrom,
440
+ Rn as Float64ArrayFrom,
441
+ M as ObjectAssign,
442
+ w as ObjectEntries,
443
+ Kn as ObjectFromEntries,
341
444
  qn as ObjectHasOwn,
342
445
  Gn as ObjectKeys,
343
- jn as ObjectValues,
344
- Zn as Timer,
345
- j as abortEvent,
446
+ Jn as ObjectValues,
447
+ _n as Timer,
448
+ q as abortEvent,
346
449
  Ln as addClass,
347
450
  rn as addEventListener,
348
- Rt as animationDelay,
349
- Wt as animationDuration,
350
- T as animationEndEvent,
351
- P as animationName,
352
- fe as ariaChecked,
353
- ge as ariaDescribedBy,
451
+ Wt as animationDelay,
452
+ Ut as animationDuration,
453
+ D as animationEndEvent,
454
+ F as animationName,
455
+ pe as ariaChecked,
456
+ fe as ariaDescribedBy,
354
457
  me as ariaDescription,
355
- ve as ariaExpanded,
356
- Ee as ariaHasPopup,
357
- be as ariaHidden,
358
- he as ariaLabel,
359
- ye as ariaLabelledBy,
360
- we as ariaModal,
361
- Ae as ariaPressed,
362
- Se as ariaSelected,
458
+ ge as ariaExpanded,
459
+ ve as ariaHasPopup,
460
+ Ee as ariaHidden,
461
+ be as ariaLabel,
462
+ he as ariaLabelledBy,
463
+ ye as ariaModal,
464
+ we as ariaPressed,
465
+ Ae as ariaSelected,
363
466
  Ne as ariaValueMax,
364
- Me as ariaValueMin,
467
+ Se as ariaValueMin,
365
468
  ke as ariaValueNow,
366
- Te as ariaValueText,
367
- J as beforeunloadEvent,
469
+ Me as ariaValueText,
470
+ G as beforeunloadEvent,
368
471
  un as bezierEasings,
369
- K as blurEvent,
370
- X as changeEvent,
371
- de as closest,
372
- Y as contextmenuEvent,
373
- Jn as createCustomEvent,
374
- $t as createElement,
375
- _t as createElementNS,
472
+ J as blurEvent,
473
+ K as changeEvent,
474
+ le as closest,
475
+ X as contextmenuEvent,
476
+ Xn as createCustomEvent,
477
+ Zt as createElement,
478
+ $t as createElementNS,
376
479
  Q as dispatchEvent,
377
- Hn as distinct,
378
- zn as documentBody,
379
- xn as documentElement,
480
+ Pn as distinct,
481
+ xn as documentBody,
482
+ Vn as documentElement,
380
483
  N as documentHead,
381
- Ce as dragEvent,
382
- xe as dragendEvent,
484
+ De as dragEvent,
485
+ ze as dragendEvent,
383
486
  Oe as dragenterEvent,
384
- Ie as dragleaveEvent,
385
- ze as dragoverEvent,
386
- Le as dragstartEvent,
387
- Pn as emulateAnimationEnd,
487
+ Le as dragleaveEvent,
488
+ Ie as dragoverEvent,
489
+ Ce as dragstartEvent,
490
+ Fn as emulateAnimationEnd,
388
491
  Un as emulateTransitionEnd,
389
- $ as errorEvent,
390
- Rn as focus,
391
- _ as focusEvent,
492
+ Z as errorEvent,
493
+ Qn as focus,
494
+ $ as focusEvent,
392
495
  Fe as focusEvents,
393
- tt as focusinEvent,
394
- et as focusoutEvent,
395
- nt as gesturechangeEvent,
396
- ot as gestureendEvent,
397
- st as gesturestartEvent,
398
- Zt as getAttribute,
399
- Mn as getAttributeNS,
400
- w as getBoundingClientRect,
401
- Ao as getCustomElements,
496
+ _ as focusinEvent,
497
+ tt as focusoutEvent,
498
+ et as gesturechangeEvent,
499
+ nt as gestureendEvent,
500
+ ot as gesturestartEvent,
501
+ Yt as getAttribute,
502
+ Nn as getAttributeNS,
503
+ h as getBoundingClientRect,
504
+ No as getCustomElements,
402
505
  d as getDocument,
403
- _n as getDocumentBody,
404
- k as getDocumentElement,
405
- to as getDocumentHead,
406
- te as getElementAnimationDelay,
407
- ee as getElementAnimationDuration,
408
- So as getElementById,
409
- v as getElementStyle,
410
- ne as getElementTransitionDelay,
411
- oe as getElementTransitionDuration,
412
- No as getElementsByClassName,
413
- pe as getElementsByTagName,
414
- Bn as getInstance,
415
- eo as getNodeScroll,
416
- no as getParentNode,
417
- oo as getRectRelativeToOffsetParent,
418
- ie as getUID,
419
- so as getWindow,
420
- Nn as hasAttribute,
421
- kn as hasAttributeNS,
422
- In as hasClass,
506
+ eo as getDocumentBody,
507
+ T as getDocumentElement,
508
+ no as getDocumentHead,
509
+ _t as getElementAnimationDelay,
510
+ te as getElementAnimationDuration,
511
+ ko as getElementById,
512
+ g as getElementStyle,
513
+ ee as getElementTransitionDelay,
514
+ ne as getElementTransitionDuration,
515
+ To as getElementsByClassName,
516
+ de as getElementsByTagName,
517
+ Hn as getInstance,
518
+ oo as getNodeScroll,
519
+ so as getParentNode,
520
+ co as getRectRelativeToOffsetParent,
521
+ ae as getUID,
522
+ ro as getWindow,
523
+ kn as hasAttribute,
524
+ Mn as hasAttributeNS,
525
+ zn as hasClass,
423
526
  vn as isApple,
424
- ue as isArray,
425
- co as isCanvas,
426
- le as isCustomElement,
527
+ ie as isArray,
528
+ ao as isCanvas,
529
+ ue as isCustomElement,
427
530
  R as isDocument,
428
- ro as isElement,
429
- ao as isElementInScrollRange,
430
- io as isElementInViewport,
431
- uo as isElementsArray,
531
+ io as isElement,
532
+ uo as isElementInScrollRange,
533
+ lo as isElementInViewport,
534
+ po as isElementsArray,
432
535
  En as isFirefox,
433
- lo as isFunction,
434
- po as isHTMLCollection,
536
+ mo as isFunction,
537
+ fo as isHTMLCollection,
435
538
  u as isHTMLElement,
436
- fo as isHTMLImageElement,
437
- mo as isJSON,
438
- O as isMap,
439
- vo as isMedia,
539
+ go as isHTMLImageElement,
540
+ vo as isJSON,
541
+ I as isMap,
542
+ bo as isMedia,
440
543
  gn as isMobile,
441
544
  i as isNode,
442
- Eo as isNodeList,
443
- ce as isNumber,
444
- E as isObject,
445
- bo as isRTL,
446
- ho as isSVGElement,
447
- ae as isScaledElement,
448
- re as isShadowRoot,
449
- g as isString,
450
- yo as isTableElement,
451
- go as isWeakMap,
545
+ ho as isNodeList,
546
+ se as isNumber,
547
+ v as isObject,
548
+ yo as isRTL,
549
+ wo as isSVGElement,
550
+ re as isScaledElement,
551
+ ce as isShadowRoot,
552
+ k as isString,
553
+ Ao as isTableElement,
554
+ Eo as isWeakMap,
452
555
  W as isWindow,
453
- Re as keyAlt,
454
- Qe as keyArrowDown,
455
- Ge as keyArrowLeft,
456
- je as keyArrowRight,
457
- qe as keyArrowUp,
458
- Je as keyBackspace,
459
- Ke as keyCapsLock,
460
- Xe as keyControl,
461
- Ye as keyDelete,
462
- Ze as keyEnter,
556
+ We as keyAlt,
557
+ Re as keyArrowDown,
558
+ je as keyArrowLeft,
559
+ qe as keyArrowRight,
560
+ Qe as keyArrowUp,
561
+ Ge as keyBackspace,
562
+ Je as keyCapsLock,
563
+ Ke as keyControl,
564
+ Xe as keyDelete,
565
+ Ye as keyEnter,
463
566
  $e as keyEscape,
464
567
  _e as keyInsert,
465
568
  tn as keyMeta,
569
+ Ze as keyNumpadEnter,
466
570
  en as keyPause,
467
571
  nn as keyScrollLock,
468
572
  on as keyShift,
469
573
  sn as keySpace,
470
574
  cn as keyTab,
471
- We as keyboardEventKeys,
472
- ct as keydownEvent,
473
- rt as keypressEvent,
474
- at as keyupEvent,
475
- it as loadEvent,
476
- Ve as loadstartEvent,
477
- ko as matches,
478
- He as mouseClickEvents,
479
- Pe as mouseHoverEvents,
480
- Be as mouseSwipeEvents,
481
- ut as mouseclickEvent,
482
- lt as mousedblclickEvent,
483
- dt as mousedownEvent,
575
+ Ue as keyboardEventKeys,
576
+ st as keydownEvent,
577
+ ct as keypressEvent,
578
+ rt as keyupEvent,
579
+ at as loadEvent,
580
+ xe as loadstartEvent,
581
+ Do as matches,
582
+ Be as mouseClickEvents,
583
+ He as mouseHoverEvents,
584
+ Ve as mouseSwipeEvents,
585
+ it as mouseclickEvent,
586
+ ut as mousedblclickEvent,
587
+ lt as mousedownEvent,
484
588
  mt as mouseenterEvent,
485
- ft as mousehoverEvent,
486
- vt as mouseinEvent,
487
- gt as mouseleaveEvent,
488
- ht as mousemoveEvent,
489
- Et as mouseoutEvent,
490
- bt as mouseoverEvent,
491
- pt as mouseupEvent,
492
- yt as mousewheelEvent,
493
- wt as moveEvent,
494
- De as nativeEvents,
495
- Yt as noop,
496
- Qn as normalizeOptions,
497
- x as normalizeValue,
498
- Kt as off,
589
+ pt as mousehoverEvent,
590
+ gt as mouseinEvent,
591
+ ft as mouseleaveEvent,
592
+ bt as mousemoveEvent,
593
+ vt as mouseoutEvent,
594
+ Et as mouseoverEvent,
595
+ dt as mouseupEvent,
596
+ ht as mousewheelEvent,
597
+ yt as moveEvent,
598
+ Te as nativeEvents,
599
+ Xt as noop,
600
+ jn as normalizeOptions,
601
+ V as normalizeValue,
602
+ Jt as off,
499
603
  ln as offsetHeight,
500
604
  dn as offsetWidth,
501
- Jt as on,
502
- Xt as one,
503
- At as orientationchangeEvent,
504
- Kn as passiveHandler,
505
- St as pointercancelEvent,
506
- Mt as pointerdownEvent,
605
+ Gt as on,
606
+ Kt as one,
607
+ wt as orientationchangeEvent,
608
+ Yn as passiveHandler,
609
+ At as pointercancelEvent,
610
+ St as pointerdownEvent,
507
611
  Nt as pointerleaveEvent,
508
612
  kt as pointermoveEvent,
509
- Tt as pointerupEvent,
510
- wo as querySelector,
613
+ Mt as pointerupEvent,
614
+ So as querySelector,
511
615
  Mo as querySelectorAll,
512
- Dt as readystatechangeEvent,
513
- Xn as reflow,
514
- Dn as removeAttribute,
515
- Cn as removeAttributeNS,
516
- On as removeClass,
616
+ Tt as readystatechangeEvent,
617
+ Zn as reflow,
618
+ Cn as removeAttribute,
619
+ On as removeAttributeNS,
620
+ In as removeClass,
517
621
  an as removeEventListener,
518
- Ct as resetEvent,
519
- Lt as resizeEvent,
520
- xt as scrollEvent,
622
+ Dt as resetEvent,
623
+ Ct as resizeEvent,
624
+ zt as scrollEvent,
521
625
  pn as scrollHeight,
522
- fn as scrollWidth,
626
+ mn as scrollWidth,
523
627
  Ot as selectEvent,
524
- It as selectendEvent,
525
- zt as selectstartEvent,
526
- F as setAttribute,
527
- Tn as setAttributeNS,
528
- Yn as setElementStyle,
529
- Vt as submitEvent,
628
+ Lt as selectendEvent,
629
+ It as selectstartEvent,
630
+ Tn as setAttribute,
631
+ Dn as setAttributeNS,
632
+ $n as setElementStyle,
633
+ xt as submitEvent,
530
634
  bn as support3DTransform,
531
635
  An as supportAnimation,
532
636
  hn as supportPassive,
533
637
  wn as supportTouch,
534
638
  yn as supportTransform,
535
639
  Sn as supportTransition,
536
- mn as tabindex,
537
- se as toLowerCase,
538
- $n as toUpperCase,
539
- Ue as touchEvents,
540
- Pt as touchcancelEvent,
541
- Ut as touchendEvent,
542
- Ht as touchmoveEvent,
543
- Bt as touchstartEvent,
544
- qt as transitionDelay,
545
- Qt as transitionDuration,
546
- D as transitionEndEvent,
640
+ fn as tabindex,
641
+ oe as toLowerCase,
642
+ to as toUpperCase,
643
+ Pe as touchEvents,
644
+ Ht as touchcancelEvent,
645
+ Pt as touchendEvent,
646
+ Bt as touchmoveEvent,
647
+ Vt as touchstartEvent,
648
+ Qt as transitionDelay,
649
+ Rt as transitionDuration,
650
+ C as transitionEndEvent,
547
651
  U as transitionProperty,
548
652
  Ft as unloadEvent,
549
- M as userAgent,
550
- S as userAgentData
653
+ S as userAgent,
654
+ A as userAgentData,
655
+ Co as version
551
656
  };
552
657
  //# sourceMappingURL=shorty.mjs.map