aptechka 0.83.1 → 0.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/lib/Animation-BAiM6_n1.js +111 -0
  2. package/lib/Animation-DMWabSR0.cjs +1 -0
  3. package/lib/Composed-B0fvCtZz.cjs +1 -0
  4. package/lib/Composed-CgA9lLWA.js +75 -0
  5. package/lib/Damped-BLo-OAVb.cjs +1 -0
  6. package/lib/Damped-Dcz5UdMH.js +57 -0
  7. package/lib/DerivedArray-DFhxap_z.js +63 -0
  8. package/lib/DerivedArray-DYtWMW0n.cjs +1 -0
  9. package/lib/DragControls-BPHsDeH6.cjs +1 -0
  10. package/lib/DragControls-D2a1Cifp.js +234 -0
  11. package/lib/LocalLinks-BWFJYhGX.cjs +1 -0
  12. package/lib/LocalLinks-Dwgf3No6.js +65 -0
  13. package/lib/PageAnnouncerElement-DPMlVJZG.cjs +1 -0
  14. package/lib/PageAnnouncerElement-DV9pm_od.js +28 -0
  15. package/lib/PageScroll-BAatKJx6.cjs +1 -0
  16. package/lib/PageScroll-m3TsHnzR.js +65 -0
  17. package/lib/SourceElement-941MrYpq.js +265 -0
  18. package/lib/SourceElement-DBLZ7b5k.cjs +5 -0
  19. package/lib/Store-BCW70G3Z.cjs +1 -0
  20. package/lib/Store-uLDYY9ed.js +158 -0
  21. package/lib/Tweened-BvtjLCa3.js +48 -0
  22. package/lib/Tweened-DdXm1dbF.cjs +1 -0
  23. package/lib/Viewport-BiDoiU8M.js +113 -0
  24. package/lib/Viewport-CXGKUyDy.cjs +1 -0
  25. package/lib/accordion/index.cjs +1 -1
  26. package/lib/accordion/index.js +97 -93
  27. package/lib/animation/index.cjs +1 -1
  28. package/lib/animation/index.js +6 -6
  29. package/lib/api-fetcher/index.cjs +1 -1
  30. package/lib/api-fetcher/index.js +67 -66
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.js +37 -34
  33. package/lib/attributes-BADnRZpK.cjs +1 -0
  34. package/lib/attributes-FObgMNCf.js +36 -0
  35. package/lib/billboard/index.cjs +1 -1
  36. package/lib/billboard/index.js +240 -232
  37. package/lib/cache/index.cjs +1 -1
  38. package/lib/cache/index.js +26 -23
  39. package/lib/canvas/index.cjs +1 -1
  40. package/lib/canvas/index.js +62 -59
  41. package/lib/canvas-BP1ceie3.cjs +1 -0
  42. package/lib/canvas-DsglKco1.js +40 -0
  43. package/lib/connector/index.cjs +1 -1
  44. package/lib/connector/index.js +44 -41
  45. package/lib/controls/index.cjs +1 -1
  46. package/lib/controls/index.js +6 -6
  47. package/lib/coordinates--JG1U6kQ.js +29 -0
  48. package/lib/coordinates-DQ9XV9M1.cjs +1 -0
  49. package/lib/css-property/index.cjs +1 -1
  50. package/lib/css-property/index.d.ts +1 -1
  51. package/lib/css-property/index.js +40 -37
  52. package/lib/css-unit-parser/index.cjs +2 -2
  53. package/lib/css-unit-parser/index.js +22 -19
  54. package/lib/css-value-parser/index.cjs +1 -1
  55. package/lib/css-value-parser/index.js +13 -11
  56. package/lib/custom-elements-BfZCJde6.cjs +1 -0
  57. package/lib/custom-elements-HEMuF7yH.js +27 -0
  58. package/lib/dev/index.cjs +2 -1
  59. package/lib/dev/index.d.ts +1 -0
  60. package/lib/dev/index.js +25 -10
  61. package/lib/device/index.cjs +1 -1
  62. package/lib/device/index.js +5 -5
  63. package/lib/dom-B40i6NXw.cjs +1 -0
  64. package/lib/dom-D8D-_9ty.js +108 -0
  65. package/lib/easings-BSGJFMAo.js +40 -0
  66. package/lib/easings-BWq0pPLq.cjs +1 -0
  67. package/lib/element-CqD0jqBJ.cjs +1 -0
  68. package/lib/element-DKw5H-Tu.js +10 -0
  69. package/lib/element-linked-store/index.cjs +1 -1
  70. package/lib/element-linked-store/index.js +53 -52
  71. package/lib/element-resizer/index.cjs +1 -1
  72. package/lib/element-resizer/index.js +47 -44
  73. package/lib/en3/index.cjs +4 -4
  74. package/lib/en3/index.js +192 -185
  75. package/lib/events-Ds-TuvYW.js +9 -0
  76. package/lib/events-UlGk63iC.cjs +1 -0
  77. package/lib/file-DwQs6bB6.js +28 -0
  78. package/lib/file-RHfA3OS-.cjs +1 -0
  79. package/lib/function-H4b_gTg6.cjs +1 -0
  80. package/lib/function-UmbPrOHm.js +19 -0
  81. package/lib/gestures-DmKKNnh4.js +14 -0
  82. package/lib/gestures-DtYbQr49.cjs +1 -0
  83. package/lib/history/index.cjs +1 -1
  84. package/lib/history/index.js +24 -21
  85. package/lib/iframe/index.cjs +1 -1
  86. package/lib/iframe/index.js +27 -24
  87. package/lib/image/index.cjs +1 -1
  88. package/lib/image/index.js +17 -13
  89. package/lib/index-BpO2RJ__.cjs +1 -0
  90. package/lib/index-DpKsHe97.js +68 -0
  91. package/lib/intersector/index.cjs +1 -1
  92. package/lib/intersector/index.js +3 -3
  93. package/lib/jsx/ComponentElement.d.ts +4 -0
  94. package/lib/jsx/h.d.ts +7 -16
  95. package/lib/jsx/hooks/component/useStylesheet.d.ts +1 -1
  96. package/lib/jsx/hooks/cssProperty.d.ts +6 -0
  97. package/lib/jsx/hooks/resize.d.ts +4 -0
  98. package/lib/jsx/hooks/store.d.ts +1 -2
  99. package/lib/jsx/hooks/ticker.d.ts +5 -0
  100. package/lib/jsx/index.cjs +1 -1
  101. package/lib/jsx/index.d.ts +4 -4
  102. package/lib/jsx/index.js +171 -349
  103. package/lib/jsx/plugins/vite/index.cjs +49 -0
  104. package/lib/jsx/plugins/vite/index.d.ts +38 -0
  105. package/lib/jsx/plugins/vite/index.js +104 -0
  106. package/lib/jsx/render.d.ts +2 -0
  107. package/lib/jsx/type.d.ts +228 -190
  108. package/lib/ladder/index.cjs +1 -1
  109. package/lib/ladder/index.js +86 -84
  110. package/lib/layout-C26zkY7D.js +35 -0
  111. package/lib/layout-CnGLl7oe.cjs +1 -0
  112. package/lib/layout-box/index.cjs +1 -1
  113. package/lib/layout-box/index.js +221 -217
  114. package/lib/loading/index.cjs +1 -1
  115. package/lib/loading/index.js +48 -45
  116. package/lib/local-links/index.cjs +1 -1
  117. package/lib/local-links/index.js +2 -2
  118. package/lib/masonry-layout/index.cjs +1 -1
  119. package/lib/masonry-layout/index.js +48 -45
  120. package/lib/math-C-knY2TL.cjs +1 -0
  121. package/lib/math-r8V23YFe.js +57 -0
  122. package/lib/media/index.cjs +1 -1
  123. package/lib/media/index.js +28 -25
  124. package/lib/metadata-BNdkmeeD.js +15 -0
  125. package/lib/metadata-BrHUfpV9.cjs +1 -0
  126. package/lib/morph/index.cjs +1 -1
  127. package/lib/morph/index.js +561 -556
  128. package/lib/morph-BtgB1YQP.js +256 -0
  129. package/lib/morph-Buhxq-X0.cjs +1 -0
  130. package/lib/need_redo_tweaker/index.cjs +4 -4
  131. package/lib/need_redo_tweaker/index.js +862 -834
  132. package/lib/notifier/index.cjs +1 -1
  133. package/lib/notifier/index.js +29 -26
  134. package/lib/number-Bu4sGvW7.cjs +1 -0
  135. package/lib/number-DiVt2xnh.js +47 -0
  136. package/lib/object-CiIdEmJx.js +98 -0
  137. package/lib/object-DTY_W6xG.cjs +1 -0
  138. package/lib/order/index.cjs +1 -1
  139. package/lib/order/index.js +3 -3
  140. package/lib/page-announcer/index.cjs +1 -1
  141. package/lib/page-announcer/index.js +2 -2
  142. package/lib/page-scroll/index.cjs +1 -1
  143. package/lib/page-scroll/index.js +2 -2
  144. package/lib/pixel-perfect/index.cjs +4 -4
  145. package/lib/pixel-perfect/index.js +43 -40
  146. package/lib/pointer/index.cjs +1 -1
  147. package/lib/pointer/index.js +125 -122
  148. package/lib/polyfills-CG1XJNia.js +28 -0
  149. package/lib/polyfills-DZCuDBkA.cjs +1 -0
  150. package/lib/popover/index.cjs +1 -1
  151. package/lib/popover/index.js +249 -245
  152. package/lib/radio/index.cjs +1 -1
  153. package/lib/radio/index.js +58 -55
  154. package/lib/render-DLcWVnuH.js +355 -0
  155. package/lib/render-DdomypCo.cjs +1 -0
  156. package/lib/router/index.cjs +1 -1
  157. package/lib/router/index.js +196 -194
  158. package/lib/scroll/index.cjs +1 -1
  159. package/lib/scroll/index.js +890 -877
  160. package/lib/scroll-BvIWh1xB.js +41 -0
  161. package/lib/scroll-CT0lpyRZ.cjs +1 -0
  162. package/lib/scroll-entries/index.cjs +1 -1
  163. package/lib/scroll-entries/index.js +37 -34
  164. package/lib/scroll-kit/index.cjs +1 -1
  165. package/lib/scroll-kit/index.js +214 -209
  166. package/lib/sequence/index.cjs +1 -1
  167. package/lib/sequence/index.js +102 -98
  168. package/lib/size-element/index.cjs +1 -1
  169. package/lib/size-element/index.js +29 -26
  170. package/lib/slicer/index.cjs +1 -1
  171. package/lib/slicer/index.js +118 -113
  172. package/lib/source/index.cjs +1 -1
  173. package/lib/source/index.js +5 -5
  174. package/lib/spa/index.cjs +1 -1
  175. package/lib/spa/index.js +94 -94
  176. package/lib/store/index.cjs +1 -1
  177. package/lib/store/index.d.ts +2 -2
  178. package/lib/store/index.js +10 -8
  179. package/lib/string-B3lm2b7v.js +84 -0
  180. package/lib/string-CbRNzmd9.cjs +1 -0
  181. package/lib/style-DBoQWK0d.js +14 -0
  182. package/lib/style-IDJ6db6n.cjs +1 -0
  183. package/lib/stylesheet-CHvuef16.js +28 -0
  184. package/lib/stylesheet-CQdBaIAA.cjs +1 -0
  185. package/lib/ticker/index.cjs +1 -1
  186. package/lib/ticker/index.js +96 -92
  187. package/lib/url-CPCO10Sy.cjs +1 -0
  188. package/lib/url-CWCY_qe_.js +124 -0
  189. package/lib/utils/attributes.d.ts +2 -0
  190. package/lib/utils/dom.d.ts +1 -0
  191. package/lib/utils/index.cjs +1 -1
  192. package/lib/utils/index.js +245 -226
  193. package/lib/utils/polyfills.d.ts +1 -1
  194. package/lib/video/index.cjs +1 -1
  195. package/lib/video/index.js +36 -33
  196. package/lib/window-resizer/index.cjs +1 -1
  197. package/lib/window-resizer/index.js +27 -24
  198. package/lib/youtube/index.cjs +1 -1
  199. package/lib/youtube/index.js +56 -54
  200. package/package.json +11 -24
  201. package/lib/Animation-BzTjZIE-.js +0 -108
  202. package/lib/Animation-C39Ah-LM.cjs +0 -1
  203. package/lib/Composed-C-TV9te3.cjs +0 -1
  204. package/lib/Composed-DyAWjEXE.js +0 -121
  205. package/lib/Damped-CRusiRIV.js +0 -56
  206. package/lib/Damped-Prr0iKu1.cjs +0 -1
  207. package/lib/DragControls-8rNZwQrs.cjs +0 -1
  208. package/lib/DragControls-DBNdMBA4.js +0 -228
  209. package/lib/LocalLinks-BxhSFv_Q.cjs +0 -1
  210. package/lib/LocalLinks-DFZFpbjs.js +0 -62
  211. package/lib/PageAnnouncerElement-0LxZjtVH.js +0 -24
  212. package/lib/PageAnnouncerElement-AQ0Ja6HM.cjs +0 -1
  213. package/lib/PageScroll-0LxFblry.js +0 -62
  214. package/lib/PageScroll-BXJUQwG7.cjs +0 -1
  215. package/lib/SourceElement-BHqPFbna.cjs +0 -5
  216. package/lib/SourceElement-DjbHjynf.js +0 -260
  217. package/lib/Store-Blf4msDz.cjs +0 -1
  218. package/lib/Store-ZThXYBQd.js +0 -152
  219. package/lib/Tweened-Bw1Cn1PJ.js +0 -47
  220. package/lib/Tweened-DWtk9E-O.cjs +0 -1
  221. package/lib/Viewport-BxCr0GlB.cjs +0 -1
  222. package/lib/Viewport-Dt-d9DPi.js +0 -109
  223. package/lib/attributes-69we3byR.js +0 -10
  224. package/lib/attributes-Bf2svn4j.cjs +0 -1
  225. package/lib/canvas-CU5Xjahf.cjs +0 -1
  226. package/lib/canvas-DeZ0SLUJ.js +0 -34
  227. package/lib/coordinates-CgdGoSYs.js +0 -24
  228. package/lib/coordinates-D8Np3cPD.cjs +0 -1
  229. package/lib/custom-elements-DBnCK7Zx.js +0 -24
  230. package/lib/custom-elements-Dh4TWRDJ.cjs +0 -1
  231. package/lib/dom-BETkVSSZ.js +0 -82
  232. package/lib/dom-CBLlqORw.cjs +0 -1
  233. package/lib/easings-BEmRlrDd.js +0 -38
  234. package/lib/easings-GegIwET5.cjs +0 -1
  235. package/lib/element-CGVl1jA-.js +0 -7
  236. package/lib/element-yhcBhsho.cjs +0 -1
  237. package/lib/events-CsVF98U6.js +0 -6
  238. package/lib/events-KVanG9sR.cjs +0 -1
  239. package/lib/file-DSpfWdd9.cjs +0 -1
  240. package/lib/file-GHShUlue.js +0 -24
  241. package/lib/function-C10DGppn.js +0 -17
  242. package/lib/function-MthRj-GJ.cjs +0 -1
  243. package/lib/gestures-C7gbKx11.cjs +0 -1
  244. package/lib/gestures-CcXV6fCp.js +0 -11
  245. package/lib/index-OE2INULi.cjs +0 -1
  246. package/lib/index-e9eDuagL.js +0 -65
  247. package/lib/jsx/hydrate.d.ts +0 -1
  248. package/lib/jsx/integrations/astro/client.cjs +0 -1
  249. package/lib/jsx/integrations/astro/client.d.ts +0 -2
  250. package/lib/jsx/integrations/astro/client.js +0 -50
  251. package/lib/jsx/integrations/astro/index.cjs +0 -1
  252. package/lib/jsx/integrations/astro/index.d.ts +0 -2
  253. package/lib/jsx/integrations/astro/index.js +0 -54
  254. package/lib/jsx/integrations/astro/server.cjs +0 -1
  255. package/lib/jsx/integrations/astro/server.d.ts +0 -3
  256. package/lib/jsx/integrations/astro/server.js +0 -35
  257. package/lib/jsx/plugins/vite.d.ts +0 -21
  258. package/lib/layout-BSMtwCga.js +0 -29
  259. package/lib/layout-Ctc2p3uz.cjs +0 -1
  260. package/lib/math-BOBiC4TN.js +0 -45
  261. package/lib/math-GDWEqu7y.cjs +0 -1
  262. package/lib/metadata-BcYZ5w3T.cjs +0 -1
  263. package/lib/metadata-jfowcCyz.js +0 -12
  264. package/lib/morph-B6sGhLCi.cjs +0 -1
  265. package/lib/morph-BQErz7qP.js +0 -242
  266. package/lib/number-ChAm68cm.cjs +0 -1
  267. package/lib/number-CumqY64S.js +0 -40
  268. package/lib/object-CcMK4y_r.js +0 -87
  269. package/lib/object-baN9pgbU.cjs +0 -1
  270. package/lib/polyfills-DJrTJQky.js +0 -24
  271. package/lib/polyfills-Df4r-ETT.cjs +0 -1
  272. package/lib/render-DQs7rIoN.cjs +0 -1
  273. package/lib/render-D_0FCWEu.js +0 -18
  274. package/lib/scroll-BA2WnUrb.cjs +0 -1
  275. package/lib/scroll-DY5senkF.js +0 -37
  276. package/lib/string-BlMQbe8b.js +0 -70
  277. package/lib/string-DUXXtU8v.cjs +0 -1
  278. package/lib/style-At6aDoqG.cjs +0 -1
  279. package/lib/style-j2TwriJ_.js +0 -10
  280. package/lib/stylesheet-5_o7PFzM.cjs +0 -1
  281. package/lib/stylesheet-DdBzowZY.js +0 -24
  282. package/lib/url-CHgcNwJ1.cjs +0 -1
  283. package/lib/url-CYgo5vrG.js +0 -113
  284. package/lib/vite-C-i3hVDL.js +0 -75
  285. package/lib/vite-DzanPumM.cjs +0 -44
@@ -1,260 +0,0 @@
1
- var X = (u) => {
2
- throw TypeError(u);
3
- };
4
- var Z = (u, h, e) => h.has(u) || X("Cannot " + e);
5
- var t = (u, h, e) => (Z(u, h, "read from private field"), e ? e.call(u) : h.get(u)), i = (u, h, e) => h.has(u) ? X("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(u) : h.set(u, e), s = (u, h, e, l) => (Z(u, h, "write to private field"), l ? l.call(u, e) : h.set(u, e), e), j = (u, h, e) => (Z(u, h, "access private method"), e);
6
- import { ElementLinkedStore as st } from "./element-linked-store/index.js";
7
- import { loading as J } from "./loading/index.js";
8
- import { i as it } from "./index-e9eDuagL.js";
9
- import { d as q } from "./events-CsVF98U6.js";
10
- import { k as Y } from "./string-BlMQbe8b.js";
11
- import { f as rt } from "./metadata-jfowcCyz.js";
12
- import "construct-style-sheets-polyfill";
13
- import { RESIZE_ORDER as at } from "./order/index.js";
14
- import { windowResizer as tt } from "./window-resizer/index.js";
15
- import { S as nt } from "./Store-ZThXYBQd.js";
16
- var V, S, z, x, m, p, A;
17
- class ht {
18
- constructor(h) {
19
- i(this, V);
20
- i(this, S);
21
- i(this, z);
22
- i(this, x);
23
- i(this, m);
24
- i(this, p);
25
- i(this, A);
26
- s(this, V, h);
27
- let e = h.split(".");
28
- const l = /\b\d{1,2}x\b/g, a = e.find((y) => y.match(l) && parseInt(y));
29
- s(this, z, a ? parseInt(a) : 1), a && (e = e.slice(0, -1)), s(this, S, e.length > 1 ? e.slice(0, -1).join(".") : e.join("."));
30
- const c = /\d+max/g, d = /\d+min/g, F = /\d+mar/g, N = /\d+mir/g, W = e.find((y) => y.match(c)), o = e.find((y) => y.match(d)), L = e.find((y) => y.match(F)), Q = e.find((y) => y.match(N));
31
- L ? (s(this, m, parseInt(L)), s(this, p, "max"), s(this, x, `(max-aspect-ratio: ${t(this, m)})`)) : Q ? (s(this, m, parseInt(Q)), s(this, p, "max"), s(this, x, `(min-aspect-ratio: ${t(this, m)})`)) : W ? (s(this, m, parseInt(W)), s(this, p, "max"), s(this, x, `(max-width: ${t(this, m)}px)`)) : o ? (s(this, m, parseInt(o)), s(this, x, `(min-width: ${t(this, m)}px)`), s(this, p, "min")) : (s(this, m, 0), s(this, x, `(min-width: ${t(this, m)}px)`), s(this, p, "min")), s(this, S, t(this, S).replace(
32
- `.${t(this, m)}${t(this, p)}`,
33
- ""
34
- )), s(this, A, e[e.length - 1] === t(this, S) ? "" : "." + e[e.length - 1]), s(this, A, t(this, A).replace(
35
- `.${t(this, m)}${t(this, p)}`,
36
- ""
37
- ));
38
- }
39
- get url() {
40
- return t(this, V);
41
- }
42
- get name() {
43
- return t(this, S);
44
- }
45
- get density() {
46
- return t(this, z);
47
- }
48
- get query() {
49
- return t(this, x);
50
- }
51
- get extension() {
52
- return t(this, A);
53
- }
54
- get queryType() {
55
- return t(this, p);
56
- }
57
- get queryValue() {
58
- return t(this, m);
59
- }
60
- }
61
- V = new WeakMap(), S = new WeakMap(), z = new WeakMap(), x = new WeakMap(), m = new WeakMap(), p = new WeakMap(), A = new WeakMap();
62
- var v;
63
- class et {
64
- constructor(h, e) {
65
- i(this, v);
66
- s(this, v, /* @__PURE__ */ new Map());
67
- const l = (e == null ? void 0 : e.mediaBuckets) !== !1, a = typeof h == "string" ? l ? h.trim().split(",").map((o) => o.trim()).filter((o) => !!o) : [h] : h, c = [];
68
- a.forEach((o) => {
69
- const L = new ht(o);
70
- c.push([L.query, L]);
71
- });
72
- const d = c.filter((o) => o[1].queryType.includes("max")).sort((o, L) => L[1].queryValue - o[1].queryValue), F = c.filter((o) => o[1].queryType.includes("min") && o[1].queryValue !== 0).sort((o, L) => o[1].queryValue - L[1].queryValue), N = c.filter((o) => o[0] === "(min-width: 0px)");
73
- (N ? [...N, ...d, ...F] : [...d, ...F]).forEach((o) => {
74
- t(this, v).has(o[0]) || t(this, v).set(o[0], []), t(this, v).get(o[0]).push(o[1]);
75
- });
76
- }
77
- get mediaBuckets() {
78
- return t(this, v);
79
- }
80
- }
81
- v = new WeakMap();
82
- var M, k;
83
- class ot extends nt {
84
- constructor(e) {
85
- super(void 0);
86
- i(this, M);
87
- i(this, k, () => {
88
- let e;
89
- t(this, M).mediaBuckets.forEach((c, d) => {
90
- matchMedia(d).matches && (e = c);
91
- });
92
- let l, a = 0;
93
- e == null || e.forEach((c) => {
94
- c.density > a && c.density <= Math.max(devicePixelRatio, 1) && (a = c.density, l = c);
95
- }), e != null && e.length && !l && (l = e[0]), this.current = l;
96
- });
97
- s(this, M, new et(e.srcset, e.sourceSetOptions));
98
- }
99
- updateSource(e) {
100
- s(this, M, new et(e.srcset, e.sourceSetOptions)), t(this, k).call(this);
101
- }
102
- close() {
103
- super.close(), this.disconnect();
104
- }
105
- connect() {
106
- tt.subscribe(t(this, k), at.SOURCE_MANAGER), t(this, k).call(this);
107
- }
108
- disconnect() {
109
- tt.unsubscribe(t(this, k));
110
- }
111
- }
112
- M = new WeakMap(), k = new WeakMap();
113
- let lt = 0;
114
- var f, r, O, E, b, g, B, I, n, R, $, w, P, T, _, G, D, K, H, U, C;
115
- class bt extends HTMLElement {
116
- constructor(e) {
117
- super();
118
- i(this, T);
119
- i(this, f, null);
120
- i(this, r, null);
121
- i(this, O, this);
122
- i(this, E, !1);
123
- i(this, b, !1);
124
- i(this, g, !1);
125
- i(this, B, "");
126
- i(this, I, "");
127
- i(this, n, new st(this, {
128
- loading: !1,
129
- loaded: !1,
130
- error: !1,
131
- clear: !1,
132
- playing: !1,
133
- metadata: !1
134
- }));
135
- i(this, R, null);
136
- i(this, $);
137
- i(this, w, null);
138
- i(this, P);
139
- i(this, G, (e) => {
140
- const l = e[0];
141
- t(this, g) && (!t(this, b) || this.hasAttribute("reload-source")) && l.isIntersecting && this.triggerLazyLoad(), l.isIntersecting ? q(this, "sourceCapture", { custom: !0 }) : (this.hasAttribute("reload-source") && (j(this, T, _).call(this, void 0), s(this, b, !1)), q(this, "sourceRelease", { custom: !0 }));
142
- });
143
- i(this, D, () => {
144
- t(this, n).set("loaded", !0), t(this, n).set("error", !1), t(this, n).set("loading", !1), !t(this, g) && !t(this, E) && J.complete(t(this, I)), q(this, "sourceLoaded", { custom: !0 });
145
- const e = getComputedStyle(this).getPropertyValue("--clear-duration");
146
- e ? s(this, $, setTimeout(
147
- () => {
148
- t(this, n).set("clear", !0);
149
- },
150
- parseFloat(e) * 1e3
151
- )) : t(this, n).set("clear", !0), s(this, E, !0);
152
- });
153
- i(this, K, (e) => {
154
- t(this, n).set("loaded", !1), t(this, n).set("error", !0), t(this, n).set("loading", !1), !t(this, g) && !t(this, E) && J.error(t(this, I)), q(this, "sourceError", { custom: !0 }), s(this, E, !0);
155
- });
156
- i(this, H, () => {
157
- t(this, n).set("playing", !0), q(this, "sourcePlay", { custom: !0 });
158
- });
159
- i(this, U, () => {
160
- t(this, n).set("playing", !1), q(this, "sourcePause", { custom: !0 });
161
- });
162
- i(this, C, () => {
163
- const e = t(this, r);
164
- (e.tagName === "VIDEO" || e.tagName === "AUDIO") && e.readyState >= 1 && (t(this, n).set("metadata", !0), q(this, "sourceMetadataLoaded", { custom: !0 }), this.querySelectorAll("[data-source-duration]").forEach((l) => {
165
- l.textContent = rt(e.duration);
166
- }));
167
- });
168
- s(this, P, e == null ? void 0 : e.sourceSetOptions), it && window.IntersectionObserver && s(this, R, new IntersectionObserver(
169
- t(this, G)
170
- )), t(this, n).subscribe((l) => {
171
- var c;
172
- const a = (c = this.getAttribute("data-global-play-class")) == null ? void 0 : c.split(
173
- ","
174
- );
175
- a != null && a.length && (l.current.playing ? a.forEach((d) => {
176
- document.documentElement.classList.add(d.trim());
177
- }) : a.forEach((d) => {
178
- document.documentElement.classList.remove(d.trim());
179
- }));
180
- });
181
- }
182
- get consumerElement() {
183
- return t(this, r);
184
- }
185
- get consumerHolderElement() {
186
- return t(this, O);
187
- }
188
- get sourceManager() {
189
- return t(this, f);
190
- }
191
- get status() {
192
- return t(this, n);
193
- }
194
- get isLazy() {
195
- return t(this, g);
196
- }
197
- get currentURL() {
198
- return t(this, w);
199
- }
200
- get isFirstLoadHappened() {
201
- return t(this, E);
202
- }
203
- triggerLazyLoad() {
204
- !t(this, b) && t(this, f).current && t(this, f).current !== t(this, f).previous && (s(this, b, !0), j(this, T, _).call(this, t(this, f).current));
205
- }
206
- connectedCallback() {
207
- s(this, B, `source-consumer-${++lt}`);
208
- const e = this.getAttribute("srcset") || "", l = this.hasAttribute("notify") ? this.closest(this.getAttribute("notify")) : null;
209
- l && t(this, n).addElement(l), s(this, O, this.querySelector("[data-consumer-holder]") || this), this.querySelectorAll(".source-consumer").forEach((a) => a == null ? void 0 : a.remove()), s(this, r, this.createConsumer()), t(this, r).style.cssText = `
210
- display: block;
211
- width: 100%;
212
- height: 100%;
213
- `, t(this, r).classList.add("source-consumer"), t(this, r).addEventListener("play", t(this, H)), t(this, r).addEventListener("pause", t(this, U)), t(this, r).addEventListener(
214
- "loadedmetadata",
215
- t(this, C)
216
- ), t(this, C).call(this), Array.from(this.attributes).forEach((a) => {
217
- if (a.name !== "srcset") {
218
- const c = a.nodeValue || "", d = Y(a.name);
219
- d in t(this, r) && (t(this, r)[d] = c || !0);
220
- }
221
- });
222
- for (const a in this.dataset) {
223
- const c = this.dataset[a], d = Y(a);
224
- d in t(this, r) && (t(this, r)[d] = c ? c === "false" ? !1 : c : !0);
225
- }
226
- t(this, O).appendChild(t(this, r)), s(this, f, new ot({
227
- srcset: e,
228
- sourceSetOptions: t(this, P)
229
- })), s(this, g, this.hasAttribute("lazy")), t(this, f).subscribe((a) => {
230
- (!t(this, g) || t(this, g) && t(this, b)) && j(this, T, _).call(this, a.current);
231
- }), t(this, f).connect(), t(this, R).observe(this);
232
- }
233
- disconnectedCallback() {
234
- var e;
235
- clearTimeout(t(this, $)), t(this, R).disconnect(), (e = t(this, f)) == null || e.close(), t(this, r) && (this.consumeSource(null), t(this, r).removeEventListener("play", t(this, H)), t(this, r).removeEventListener("pause", t(this, U)), t(this, r).removeEventListener(
236
- "loadedmetadata",
237
- t(this, C)
238
- ), t(this, r).onloadeddata = null, t(this, r).onload = null, t(this, r).onerror = null, t(this, r).onerror = null, t(this, r).remove()), s(this, E, !1), s(this, b, !1), t(this, n).reset();
239
- }
240
- }
241
- f = new WeakMap(), r = new WeakMap(), O = new WeakMap(), E = new WeakMap(), b = new WeakMap(), g = new WeakMap(), B = new WeakMap(), I = new WeakMap(), n = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), w = new WeakMap(), P = new WeakMap(), T = new WeakSet(), _ = function(e) {
242
- if (clearTimeout(t(this, $)), t(this, r).onloadeddata = null, t(this, r).onload = null, t(this, r).onerror = null, t(this, n).set("loaded", !1), t(this, n).set("error", !1), t(this, n).set("loading", !1), t(this, n).set("clear", !1), t(this, n).set("playing", !1), t(this, n).set("metadata", !1), e) {
243
- s(this, I, `${t(this, B)}-${e.url}`);
244
- const l = this.hasAttribute("keep-source-parameters");
245
- t(this, n).set("loading", !0), s(this, w, l ? e.url : e.name + e.extension), this.consumeSource(t(this, w)), !t(this, g) && !t(this, E) && J.add(t(this, I)), t(this, r).onloadeddata = () => {
246
- t(this, D).call(this);
247
- }, t(this, r).onload = () => {
248
- t(this, D).call(this);
249
- }, t(this, r).onerror = () => {
250
- t(this, K).call(this, t(this, w));
251
- };
252
- } else
253
- s(this, w, null), this.consumeSource(null);
254
- }, G = new WeakMap(), D = new WeakMap(), K = new WeakMap(), H = new WeakMap(), U = new WeakMap(), C = new WeakMap();
255
- export {
256
- ht as S,
257
- bt as a,
258
- et as b,
259
- ot as c
260
- };
@@ -1 +0,0 @@
1
- "use strict";var w=i=>{throw TypeError(i)};var A=(i,e,t)=>e.has(i)||w("Cannot "+t);var r=(i,e,t)=>(A(i,e,"read from private field"),t?t.call(i):e.get(i)),n=(i,e,t)=>e.has(i)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),h=(i,e,t,a)=>(A(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t);const z=require("./notifier/index.cjs"),E=require("./string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");const I=require("./index-OE2INULi.cjs");var l;class M{constructor(){n(this,l);this.storage=null,this.name="store-registry",h(this,l,null),I.isBrowser&&(this.storage=localStorage)}get loadedState(){return r(this,l)}saveState(){const e=this.getState(),t=JSON.stringify(e);localStorage.setItem(this.name,t)}loadState(e=localStorage.getItem(this.name)){e&&(typeof e=="string"?h(this,l,JSON.parse(e)):h(this,l,e),f.current.forEach(t=>{t.name&&this.updateStore(t)}))}resetState(){f.current.forEach(e=>{e.name&&e.reset()}),this.saveState()}updateStore(e){var t,a;if(!Array.isArray((t=r(this,l))==null?void 0:t.stores))return e;if(e.name){const b=(a=r(this,l))==null?void 0:a.stores.find(N=>N.name===e.name);b&&(e.current=b.value)}return e}getState(){const e={stores:[]};return f.current.forEach(t=>{t.name&&(e.stores.find(a=>a.name===t.name)||e.stores.push({value:t.current,name:t.name}))}),e}}l=new WeakMap;const _=new M;var d,s,S,c,g,u,m,y,v;class C{constructor(e,t){n(this,d);n(this,s);n(this,S);n(this,c,new z.Notifier);n(this,g);n(this,u);n(this,m);n(this,y);n(this,v,"store-"+E.generateId(10));h(this,d,t==null?void 0:t.name),this.__manager=t==null?void 0:t.__manager,h(this,s,{initial:e,previous:void 0,current:e}),h(this,S,(t==null?void 0:t.equalityCheck)||((a,b)=>a===b)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,m,(t==null?void 0:t.notifyAndClose)||!1),h(this,y,(t==null?void 0:t.invisible)||!1),h(this,g,(t==null?void 0:t.skipSubscribeNotification)||!1),r(this,d)&&_.updateStore(this)}get id(){return r(this,v)}get name(){return r(this,d)}get initial(){return r(this,s).initial}get previous(){return r(this,s).previous}get current(){return r(this,s).current}set current(e){if(!r(this,S).call(this,r(this,s).current,e)){if(r(this,s).previous=r(this,s).current,r(this,u))for(const t of r(this,u))e=t(e);r(this,s).current=e,this.notify(),r(this,m)&&this.close()}}setCurrent(e){this.current=e}update(e){this.current=e(this.current)}add(e){Array.isArray(this.current)&&(this.current=[...this.current,e])}filter(e){Array.isArray(this.current)&&(this.current=this.current.filter(e))}get subscribers(){return r(this,c).subscribers}notify(){r(this,c).notify(r(this,s))}addMiddleware(e){r(this,u)||h(this,u,new Set),r(this,u).add(e)}removeMiddleware(e){var t,a;(t=r(this,u))==null||t.delete(e),(a=r(this,u))!=null&&a.size||h(this,u,void 0)}subscribe(e,t){return!r(this,y)&&!r(this,c).size&&R(this),r(this,c).subscribe(e,t),r(this,g)||e(r(this,s)),()=>{this.unsubscribe(e)}}unsubscribe(e){r(this,c).unsubscribe(e),r(this,c).size||q(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,c).close(),r(this,s).previous=void 0,r(this,s).current=r(this,s).initial,q(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap;const f=new C([],{invisible:!0});function R(i){f.current.includes(i)||(f.current=[...f.current,i])}function q(i){f.current.includes(i)&&(f.current=f.current.filter(e=>e!==i))}exports.Store=C;exports.activeStores=f;exports.storeRegistry=_;
@@ -1,152 +0,0 @@
1
- var w = (r) => {
2
- throw TypeError(r);
3
- };
4
- var A = (r, t, e) => t.has(r) || w("Cannot " + e);
5
- var i = (r, t, e) => (A(r, t, "read from private field"), e ? e.call(r) : t.get(r)), n = (r, t, e) => t.has(r) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), h = (r, t, e, a) => (A(r, t, "write to private field"), a ? a.call(r, e) : t.set(r, e), e);
6
- import { Notifier as _ } from "./notifier/index.js";
7
- import { g as z } from "./string-BlMQbe8b.js";
8
- import "construct-style-sheets-polyfill";
9
- import { i as E } from "./index-e9eDuagL.js";
10
- var f;
11
- class I {
12
- constructor() {
13
- n(this, f);
14
- this.storage = null, this.name = "store-registry", h(this, f, null), E && (this.storage = localStorage);
15
- }
16
- get loadedState() {
17
- return i(this, f);
18
- }
19
- saveState() {
20
- const t = this.getState(), e = JSON.stringify(t);
21
- localStorage.setItem(this.name, e);
22
- }
23
- loadState(t = localStorage.getItem(this.name)) {
24
- t && (typeof t == "string" ? h(this, f, JSON.parse(t)) : h(this, f, t), l.current.forEach((e) => {
25
- e.name && this.updateStore(e);
26
- }));
27
- }
28
- resetState() {
29
- l.current.forEach((t) => {
30
- t.name && t.reset();
31
- }), this.saveState();
32
- }
33
- updateStore(t) {
34
- var e, a;
35
- if (!Array.isArray((e = i(this, f)) == null ? void 0 : e.stores))
36
- return t;
37
- if (t.name) {
38
- const b = (a = i(this, f)) == null ? void 0 : a.stores.find((N) => N.name === t.name);
39
- b && (t.current = b.value);
40
- }
41
- return t;
42
- }
43
- getState() {
44
- const t = {
45
- stores: []
46
- };
47
- return l.current.forEach((e) => {
48
- e.name && (t.stores.find((a) => a.name === e.name) || t.stores.push({
49
- value: e.current,
50
- name: e.name
51
- }));
52
- }), t;
53
- }
54
- }
55
- f = new WeakMap();
56
- const M = new I();
57
- var d, s, m, c, S, u, g, y, v;
58
- class k {
59
- constructor(t, e) {
60
- n(this, d);
61
- n(this, s);
62
- n(this, m);
63
- n(this, c, new _());
64
- n(this, S);
65
- n(this, u);
66
- n(this, g);
67
- n(this, y);
68
- n(this, v, "store-" + z(10));
69
- h(this, d, e == null ? void 0 : e.name), this.__manager = e == null ? void 0 : e.__manager, h(this, s, {
70
- initial: t,
71
- previous: void 0,
72
- current: t
73
- }), h(this, m, (e == null ? void 0 : e.equalityCheck) || ((a, b) => a === b)), e != null && e.validate && this.addMiddleware(e.validate), h(this, g, (e == null ? void 0 : e.notifyAndClose) || !1), h(this, y, (e == null ? void 0 : e.invisible) || !1), h(this, S, (e == null ? void 0 : e.skipSubscribeNotification) || !1), i(this, d) && M.updateStore(this);
74
- }
75
- get id() {
76
- return i(this, v);
77
- }
78
- get name() {
79
- return i(this, d);
80
- }
81
- get initial() {
82
- return i(this, s).initial;
83
- }
84
- get previous() {
85
- return i(this, s).previous;
86
- }
87
- get current() {
88
- return i(this, s).current;
89
- }
90
- set current(t) {
91
- if (!i(this, m).call(this, i(this, s).current, t)) {
92
- if (i(this, s).previous = i(this, s).current, i(this, u))
93
- for (const e of i(this, u))
94
- t = e(t);
95
- i(this, s).current = t, this.notify(), i(this, g) && this.close();
96
- }
97
- }
98
- setCurrent(t) {
99
- this.current = t;
100
- }
101
- update(t) {
102
- this.current = t(this.current);
103
- }
104
- add(t) {
105
- Array.isArray(this.current) && (this.current = [...this.current, t]);
106
- }
107
- filter(t) {
108
- Array.isArray(this.current) && (this.current = this.current.filter(t));
109
- }
110
- get subscribers() {
111
- return i(this, c).subscribers;
112
- }
113
- notify() {
114
- i(this, c).notify(i(this, s));
115
- }
116
- addMiddleware(t) {
117
- i(this, u) || h(this, u, /* @__PURE__ */ new Set()), i(this, u).add(t);
118
- }
119
- removeMiddleware(t) {
120
- var e, a;
121
- (e = i(this, u)) == null || e.delete(t), (a = i(this, u)) != null && a.size || h(this, u, void 0);
122
- }
123
- subscribe(t, e) {
124
- return !i(this, y) && !i(this, c).size && q(this), i(this, c).subscribe(t, e), i(this, S) || t(i(this, s)), () => {
125
- this.unsubscribe(t);
126
- };
127
- }
128
- unsubscribe(t) {
129
- i(this, c).unsubscribe(t), i(this, c).size || C(this);
130
- }
131
- reset() {
132
- this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
133
- }
134
- close() {
135
- i(this, c).close(), i(this, s).previous = void 0, i(this, s).current = i(this, s).initial, C(this);
136
- }
137
- }
138
- d = new WeakMap(), s = new WeakMap(), m = new WeakMap(), c = new WeakMap(), S = new WeakMap(), u = new WeakMap(), g = new WeakMap(), y = new WeakMap(), v = new WeakMap();
139
- const l = new k([], {
140
- invisible: !0
141
- });
142
- function q(r) {
143
- l.current.includes(r) || (l.current = [...l.current, r]);
144
- }
145
- function C(r) {
146
- l.current.includes(r) && (l.current = l.current.filter((t) => t !== r));
147
- }
148
- export {
149
- k as S,
150
- l as a,
151
- M as s
152
- };
@@ -1,47 +0,0 @@
1
- var O = Object.defineProperty, b = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var l = Object.getOwnPropertySymbols;
4
- var y = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var f = (a) => {
6
- throw TypeError(a);
7
- };
8
- var c = (a, r, e) => r in a ? O(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, d = (a, r) => {
9
- for (var e in r || (r = {}))
10
- y.call(r, e) && c(a, e, r[e]);
11
- if (l)
12
- for (var e of l(r))
13
- S.call(r, e) && c(a, e, r[e]);
14
- return a;
15
- }, g = (a, r) => b(a, x(r));
16
- var A = (a, r, e) => r.has(a) || f("Cannot " + e);
17
- var s = (a, r, e) => (A(a, r, "read from private field"), e ? e.call(a) : r.get(a)), n = (a, r, e) => r.has(a) ? f("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, e), u = (a, r, e, i) => (A(a, r, "write to private field"), i ? i.call(a, e) : r.set(a, e), e);
18
- import { l as h, e as T } from "./easings-BEmRlrDd.js";
19
- import { c as q } from "./math-BOBiC4TN.js";
20
- import { p as w } from "./number-CumqY64S.js";
21
- import { n as z } from "./polyfills-DJrTJQky.js";
22
- import "construct-style-sheets-polyfill";
23
- import "./index-e9eDuagL.js";
24
- import { A as C } from "./Animation-BzTjZIE-.js";
25
- var m, t;
26
- class G extends C {
27
- constructor(e, i) {
28
- super(e || 0, i);
29
- n(this, m, h);
30
- n(this, t, 1e3);
31
- this.updateOptions(g(d({}, i), { equalize: !0 }));
32
- }
33
- updateOptions(e) {
34
- super.updateOptions(e), u(this, m, typeof (e == null ? void 0 : e.easing) == "function" ? e.easing : typeof (e == null ? void 0 : e.easing) == "string" ? T[e.easing] || h : h), u(this, t, (e == null ? void 0 : e.duration) === !1 ? 0 : z(e == null ? void 0 : e.duration, s(this, t)));
35
- }
36
- handleAnimationFrame(e) {
37
- const i = e.timeElapsedSinceSubscription / 1e3 / (s(this, t) / 1e3) || 0, F = s(this, m).call(this, q(i, 0, 1));
38
- this.current = w(this.from + (this.target - this.from) * F, 6), i > 1 && this.unlistenAnimationFrame();
39
- }
40
- start() {
41
- this.unlistenAnimationFrame(), this.listenAnimationFrame();
42
- }
43
- }
44
- m = new WeakMap(), t = new WeakMap();
45
- export {
46
- G as T
47
- };
@@ -1 +0,0 @@
1
- "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-ChAm68cm.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const z=require("./Animation-C39Ah-LM.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
@@ -1 +0,0 @@
1
- "use strict";var v=t=>{throw TypeError(t)};var E=(t,i,n)=>i.has(t)||v("Cannot "+n);var s=(t,i,n)=>(E(t,i,"read from private field"),n?n.call(t):i.get(t)),o=(t,i,n)=>i.has(t)?v("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,n),e=(t,i,n,p)=>(E(t,i,"write to private field"),p?p.call(t,n):i.set(t,n),n);const P=require("./order/index.cjs"),W=require("./window-resizer/index.cjs"),z=require("./index-OE2INULi.cjs");require("construct-style-sheets-polyfill");const R=require("./Store-Blf4msDz.cjs");var r,d,a,m,l,c;class D{constructor(){o(this,r);o(this,d);o(this,a);o(this,m);o(this,l);o(this,c);var i,n;if(e(this,r,"unknown"),e(this,d,!1),e(this,a,!1),e(this,m,!1),e(this,l,!1),e(this,c,!1),this.resize=()=>{e(this,d,/Mobi|Android/i.test(navigator.userAgent)),e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},z.isBrowser){this.resize(),W.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE);{const g=document.createElement("canvas"),f=g.getContext("webgl")||g.getContext("experimental-webgl");e(this,m,f&&f instanceof WebGLRenderingContext||!1)}{const g=document.createElement("canvas");g.getContext("2d")&&e(this,l,g.toDataURL("image/webp").indexOf("data:image/webp")==0)}const p=window.navigator.userAgent,b=((n=(i=window.navigator)==null?void 0:i.userAgentData)==null?void 0:n.platform)||window.navigator.platform,k=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],C=["Win32","Win64","Windows","WinCE"],O=["iPhone","iPad","iPod"];k.includes(b)?(e(this,r,"macOS"),e(this,c,!0)):O.includes(b)?(e(this,r,"iOS"),e(this,c,!0)):C.includes(b)?e(this,r,"Windows"):/Android/.test(p)?e(this,r,"Android"):/Linux/.test(b)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return s(this,r)}get isMobile(){return s(this,d)}get isTouch(){return s(this,a)}get isWebgl(){return s(this,m)}get isWebp(){return s(this,l)}get isApple(){return s(this,c)}}r=new WeakMap,d=new WeakMap,a=new WeakMap,m=new WeakMap,l=new WeakMap,c=new WeakMap;const q=new D;var A=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(A||{}),S=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(S||{}),u,w,x,h;class I{constructor(){o(this,u);o(this,w);o(this,x);o(this,h);e(this,u,0),e(this,w,0),e(this,x,0),e(this,h,new R.Store(void 0)),this.resize=()=>{e(this,u,document.documentElement.clientWidth),e(this,w,innerHeight),e(this,x,devicePixelRatio),matchMedia("(max-width: 600px)").matches?s(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?s(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?s(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(s(this,h).current="desktop")},z.isBrowser&&(this.resize(),W.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE))}get width(){return s(this,u)}get height(){return s(this,w)}get type(){return s(this,h)}get pixelRatio(){return s(this,x)}}u=new WeakMap,w=new WeakMap,x=new WeakMap,h=new WeakMap;const M=new I;exports.ViewportBreakpoints=A;exports.ViewportMediaRules=S;exports.device=q;exports.viewport=M;
@@ -1,109 +0,0 @@
1
- var v = (t) => {
2
- throw TypeError(t);
3
- };
4
- var E = (t, e, n) => e.has(t) || v("Cannot " + n);
5
- var s = (t, e, n) => (E(t, e, "read from private field"), n ? n.call(t) : e.get(t)), o = (t, e, n) => e.has(t) ? v("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), i = (t, e, n, p) => (E(t, e, "write to private field"), p ? p.call(t, n) : e.set(t, n), n);
6
- import { RESIZE_ORDER as P } from "./order/index.js";
7
- import { windowResizer as W } from "./window-resizer/index.js";
8
- import { i as A } from "./index-e9eDuagL.js";
9
- import "construct-style-sheets-polyfill";
10
- import { S as z } from "./Store-ZThXYBQd.js";
11
- var a, m, r, d, l, c;
12
- class O {
13
- constructor() {
14
- o(this, a);
15
- o(this, m);
16
- o(this, r);
17
- o(this, d);
18
- o(this, l);
19
- o(this, c);
20
- var e, n;
21
- if (i(this, a, "unknown"), i(this, m, !1), i(this, r, !1), i(this, d, !1), i(this, l, !1), i(this, c, !1), this.resize = () => {
22
- i(this, m, /Mobi|Android/i.test(navigator.userAgent)), i(this, r, "ontouchstart" in window || navigator.maxTouchPoints > 0), setTimeout(() => {
23
- i(this, r, "ontouchstart" in window || navigator.maxTouchPoints > 0);
24
- }, 0);
25
- }, A) {
26
- this.resize(), W.subscribe(this.resize, P.DEVICE);
27
- {
28
- const w = document.createElement("canvas"), b = w.getContext("webgl") || w.getContext("experimental-webgl");
29
- i(this, d, b && b instanceof WebGLRenderingContext || !1);
30
- }
31
- {
32
- const w = document.createElement("canvas");
33
- w.getContext("2d") && i(this, l, w.toDataURL("image/webp").indexOf("data:image/webp") == 0);
34
- }
35
- const p = window.navigator.userAgent, f = ((n = (e = window.navigator) == null ? void 0 : e.userAgentData) == null ? void 0 : n.platform) || window.navigator.platform, C = [
36
- "Macintosh",
37
- "MacIntel",
38
- "MacPPC",
39
- "Mac68K",
40
- "macOS"
41
- ], S = ["Win32", "Win64", "Windows", "WinCE"], k = ["iPhone", "iPad", "iPod"];
42
- C.includes(f) ? (i(this, a, "macOS"), i(this, c, !0)) : k.includes(f) ? (i(this, a, "iOS"), i(this, c, !0)) : S.includes(f) ? i(this, a, "Windows") : /Android/.test(p) ? i(this, a, "Android") : /Linux/.test(f) ? i(this, a, "Linux") : i(this, a, "unknown");
43
- }
44
- }
45
- get OS() {
46
- return s(this, a);
47
- }
48
- get isMobile() {
49
- return s(this, m);
50
- }
51
- get isTouch() {
52
- return s(this, r);
53
- }
54
- get isWebgl() {
55
- return s(this, d);
56
- }
57
- get isWebp() {
58
- return s(this, l);
59
- }
60
- get isApple() {
61
- return s(this, c);
62
- }
63
- }
64
- a = new WeakMap(), m = new WeakMap(), r = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap();
65
- const K = new O();
66
- var D = /* @__PURE__ */ ((t) => (t.mobile = "600px", t.tablet = "1024px", t.notebook = "1280px", t.desktop = "1281px", t))(D || {}), T = /* @__PURE__ */ ((t) => (t["<=mobile"] = "(max-width: 600px)", t[">=mobile"] = "(min-width: 601px)", t["<=tablet"] = "(max-width: 1024px)", t[">=tablet"] = "(min-width: 1025px)", t["<=notebook"] = "(max-width: 1280px)", t[">=notebook"] = "(min-width: 1281px)", t["<=desktop"] = "(max-width: 1280px)", t[">=desktop"] = "(min-width: 1281px)", t))(T || {}), u, x, g, h;
67
- class I {
68
- constructor() {
69
- o(this, u);
70
- o(this, x);
71
- o(this, g);
72
- o(this, h);
73
- i(this, u, 0), i(this, x, 0), i(this, g, 0), i(this, h, new z(void 0)), this.resize = () => {
74
- i(this, u, document.documentElement.clientWidth), i(this, x, innerHeight), i(this, g, devicePixelRatio), matchMedia(
75
- "(max-width: 600px)"
76
- /* <=mobile */
77
- ).matches ? s(this, h).current = "mobile" : matchMedia(
78
- "(max-width: 1024px)"
79
- /* <=tablet */
80
- ).matches ? s(this, h).current = "tablet" : matchMedia(
81
- "(max-width: 1280px)"
82
- /* <=notebook */
83
- ).matches ? s(this, h).current = "notebook" : matchMedia(
84
- "(min-width: 1281px)"
85
- /* >=desktop */
86
- ).matches && (s(this, h).current = "desktop");
87
- }, A && (this.resize(), W.subscribe(this.resize, P.DEVICE));
88
- }
89
- get width() {
90
- return s(this, u);
91
- }
92
- get height() {
93
- return s(this, x);
94
- }
95
- get type() {
96
- return s(this, h);
97
- }
98
- get pixelRatio() {
99
- return s(this, g);
100
- }
101
- }
102
- u = new WeakMap(), x = new WeakMap(), g = new WeakMap(), h = new WeakMap();
103
- const U = new I();
104
- export {
105
- D as V,
106
- T as a,
107
- K as d,
108
- U as v
109
- };
@@ -1,10 +0,0 @@
1
- function u(e, r) {
2
- return t(e.getAttribute(r));
3
- }
4
- function t(e) {
5
- return e == null ? null : e ? isNaN(Number(e)) ? e === "true" ? !0 : e === "false" ? !1 : e : Number(e) : !0;
6
- }
7
- export {
8
- u as a,
9
- t as p
10
- };
@@ -1 +0,0 @@
1
- "use strict";function u(e,r){return t(e.getAttribute(r))}function t(e){return e==null?null:e?isNaN(Number(e))?e==="true"?!0:e==="false"?!1:e:Number(e):!0}exports.parseAttribute=u;exports.parseAttributeValue=t;
@@ -1 +0,0 @@
1
- "use strict";function x(r,d){const u=r.measureText(d),e=u.actualBoundingBoxAscent+u.actualBoundingBoxDescent,n=u.width;return{height:e,width:n}}function a(r){return Math.floor(r)+.5}function m(r,d,u,e,n,l){let c=r/d,s=u/e,t=0,i=0;return n=typeof n=="undefined"?.5:n,l=typeof l=="undefined"?.5:l,c>s?(t=e,i=e*c):(i=u,t=u/c),[(u-i)*n,(e-t)*l,i,t]}function y(r,d,u,e,n,l){let c=r/d,s=u/e,t=0,i=0;return n=typeof n=="undefined"?.5:n,l=typeof l=="undefined"?.5:l,c>s?(i=u,t=u/c):(t=e,i=e*c),[(u-i)*n,(e-t)*l,i,t]}exports.contain=y;exports.cover=m;exports.fixPosition=a;exports.measureText=x;
@@ -1,34 +0,0 @@
1
- function i(r, c) {
2
- const u = r.measureText(c), l = u.actualBoundingBoxAscent + u.actualBoundingBoxDescent, n = u.width;
3
- return {
4
- height: l,
5
- width: n
6
- };
7
- }
8
- function x(r) {
9
- return Math.floor(r) + 0.5;
10
- }
11
- function m(r, c, u, l, n, e) {
12
- let a = r / c, s = u / l, t = 0, d = 0;
13
- return n = typeof n == "undefined" ? 0.5 : n, e = typeof e == "undefined" ? 0.5 : e, a > s ? (t = l, d = l * a) : (d = u, t = u / a), [
14
- (u - d) * n,
15
- (l - t) * e,
16
- d,
17
- t
18
- ];
19
- }
20
- function y(r, c, u, l, n, e) {
21
- let a = r / c, s = u / l, t = 0, d = 0;
22
- return n = typeof n == "undefined" ? 0.5 : n, e = typeof e == "undefined" ? 0.5 : e, a > s ? (d = u, t = u / a) : (t = l, d = l * a), [
23
- (u - d) * n,
24
- (l - t) * e,
25
- d,
26
- t
27
- ];
28
- }
29
- export {
30
- y as a,
31
- m as c,
32
- x as f,
33
- i as m
34
- };
@@ -1,24 +0,0 @@
1
- function s(t, h, n = !1) {
2
- let i = t.x - h.width / 2, g = h.height / 2 - t.y;
3
- return n && (i = i / (h.width / 2), g = g / (h.height / 2)), { x: i, y: g };
4
- }
5
- function x(t, h) {
6
- const n = t.x / h.width, i = t.y / h.height;
7
- return { x: n, y: i };
8
- }
9
- function e(t, h) {
10
- return h = h || {
11
- x: 0,
12
- y: 0,
13
- width: document.documentElement.offsetWidth,
14
- height: innerHeight
15
- }, {
16
- x: (t.x - h.x) / h.width * h.width,
17
- y: (t.y - h.y) / h.height * h.height
18
- };
19
- }
20
- export {
21
- e as g,
22
- x as n,
23
- s
24
- };