@thednp/shorty 2.0.4 → 2.0.6

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