aptechka 0.64.0 → 0.64.3

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 (118) hide show
  1. package/lib/Animation-BRqj4VfN.cjs +1 -0
  2. package/lib/{Animation-Cb-klopb.js → Animation-D29tc5VS.js} +5 -4
  3. package/lib/Damped-BD1OQ1fH.cjs +1 -0
  4. package/lib/{Damped-ByZFbNSt.js → Damped-YrqW5V4w.js} +5 -4
  5. package/lib/DragControls-D8BXtKVu.cjs +1 -0
  6. package/lib/DragControls-DGDUw6bM.js +226 -0
  7. package/lib/ScrollSegmentElement-B6gp1q_z.js +459 -0
  8. package/lib/ScrollSegmentElement-DtMMAirz.cjs +1 -0
  9. package/lib/SourceElement-D_YeNqsI.cjs +5 -0
  10. package/lib/SourceElement-jbviggZp.js +217 -0
  11. package/lib/{Store-swP_0ymB.js → Store-0BVty6AZ.js} +2 -1
  12. package/lib/Store-Cd1GlEmZ.cjs +1 -0
  13. package/lib/Tweened-B-AHx93m.cjs +1 -0
  14. package/lib/{Tweened-DzZwfKNm.js → Tweened-_pF0zXXN.js} +9 -8
  15. package/lib/Viewport-DA10iWAO.js +109 -0
  16. package/lib/Viewport-DB0qAZPJ.cjs +1 -0
  17. package/lib/accordion/index.cjs +1 -1
  18. package/lib/accordion/index.js +2 -1
  19. package/lib/animation/index.cjs +1 -1
  20. package/lib/animation/index.js +3 -3
  21. package/lib/attribute/index.cjs +1 -1
  22. package/lib/attribute/index.js +5 -4
  23. package/lib/billboard/index.cjs +1 -1
  24. package/lib/billboard/index.js +2 -1
  25. package/lib/canvas/index.cjs +1 -1
  26. package/lib/canvas/index.js +5 -5
  27. package/lib/controls/index.cjs +1 -1
  28. package/lib/controls/index.js +6 -223
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +15 -14
  31. package/lib/custom-scrollbar/index.cjs +1 -1
  32. package/lib/custom-scrollbar/index.js +25 -24
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +7 -6
  35. package/lib/device/index.cjs +1 -1
  36. package/lib/device/index.js +5 -106
  37. package/lib/element-linked-store/index.cjs +1 -1
  38. package/lib/element-linked-store/index.js +5 -4
  39. package/lib/element-resizer/index.cjs +1 -1
  40. package/lib/element-resizer/index.js +22 -21
  41. package/lib/en3/En3View.d.ts +2 -2
  42. package/lib/en3/en3.d.ts +3 -2
  43. package/lib/en3/index.cjs +3 -3
  44. package/lib/en3/index.js +93 -91
  45. package/lib/iframe/index.cjs +1 -1
  46. package/lib/iframe/index.js +4 -3
  47. package/lib/image/index.cjs +1 -1
  48. package/lib/image/index.js +5 -4
  49. package/lib/{index-euf5anj6.js → index-Bv9zgfdb.js} +3 -2
  50. package/lib/index-DekP7OZe.cjs +1 -0
  51. package/lib/intersector/index.cjs +1 -1
  52. package/lib/intersector/index.js +4 -3
  53. package/lib/ladder/index.cjs +1 -1
  54. package/lib/ladder/index.js +41 -40
  55. package/lib/{layout-DpZo-I0y.js → layout-BSMtwCga.js} +2 -2
  56. package/lib/layout-box/index.cjs +1 -1
  57. package/lib/layout-box/index.js +18 -17
  58. package/lib/loading/index.cjs +1 -1
  59. package/lib/loading/index.js +4 -3
  60. package/lib/masonry-layout/index.cjs +1 -1
  61. package/lib/masonry-layout/index.js +2 -2
  62. package/lib/media/index.cjs +1 -1
  63. package/lib/media/index.js +12 -11
  64. package/lib/morph/index.cjs +1 -1
  65. package/lib/morph/index.js +3 -2
  66. package/lib/need_redo_tweaker/index.cjs +3 -3
  67. package/lib/need_redo_tweaker/index.js +368 -340
  68. package/lib/pixel-perfect/index.cjs +1 -1
  69. package/lib/pixel-perfect/index.js +2 -2
  70. package/lib/pointer/index.cjs +1 -1
  71. package/lib/pointer/index.js +19 -18
  72. package/lib/popover/index.cjs +1 -1
  73. package/lib/popover/index.js +3 -2
  74. package/lib/radio/index.cjs +1 -1
  75. package/lib/radio/index.js +2 -1
  76. package/lib/router/index.cjs +1 -1
  77. package/lib/router/index.js +11 -10
  78. package/lib/scroll/index.cjs +1 -1
  79. package/lib/scroll/index.js +66 -65
  80. package/lib/{scroll-Benkuq-t.js → scroll-BWF48oHS.js} +11 -10
  81. package/lib/scroll-CFDCeArT.cjs +1 -0
  82. package/lib/scroll-segment/index.cjs +1 -1
  83. package/lib/scroll-segment/index.js +3 -456
  84. package/lib/sequence/index.cjs +1 -1
  85. package/lib/sequence/index.js +4 -3
  86. package/lib/size-element/index.cjs +1 -1
  87. package/lib/size-element/index.js +2 -1
  88. package/lib/slicer/index.cjs +3 -3
  89. package/lib/slicer/index.js +31 -30
  90. package/lib/source/SourceElement.d.ts +1 -1
  91. package/lib/source/index.cjs +1 -5
  92. package/lib/source/index.js +5 -214
  93. package/lib/store/index.cjs +1 -1
  94. package/lib/store/index.js +14 -13
  95. package/lib/stylesheet-DpnWNVyD.js +24 -0
  96. package/lib/stylesheet-HWF2a3nr.cjs +1 -0
  97. package/lib/ticker/index.cjs +1 -1
  98. package/lib/ticker/index.js +14 -13
  99. package/lib/utils/index.cjs +1 -1
  100. package/lib/utils/index.d.ts +1 -0
  101. package/lib/utils/index.js +5 -5
  102. package/lib/utils/jss.d.ts +0 -1
  103. package/lib/utils/stylesheet.d.ts +2 -0
  104. package/lib/video/index.cjs +1 -1
  105. package/lib/video/index.js +11 -10
  106. package/lib/window-resizer/index.cjs +1 -1
  107. package/lib/window-resizer/index.js +9 -8
  108. package/lib/youtube/index.cjs +1 -1
  109. package/lib/youtube/index.js +12 -11
  110. package/package.json +4 -4
  111. package/lib/Animation-dD_idtTU.cjs +0 -1
  112. package/lib/Damped-B8bmTxAr.cjs +0 -1
  113. package/lib/Store-GokLe_g-.cjs +0 -1
  114. package/lib/Tweened-BsL9FamJ.cjs +0 -1
  115. package/lib/index-Cqw2NKev.cjs +0 -1
  116. package/lib/jss-CRBgdvJ3.cjs +0 -1
  117. package/lib/jss-DtnXPEnq.js +0 -23
  118. package/lib/scroll-DAhSpkhR.cjs +0 -1
@@ -1,225 +1,8 @@
1
- var _ = (n) => {
2
- throw TypeError(n);
3
- };
4
- var G = (n, r, e) => r.has(n) || _("Cannot " + e);
5
- var t = (n, r, e) => (G(n, r, "read from private field"), e ? e.call(n) : r.get(n)), s = (n, r, e) => r.has(n) ? _("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), i = (n, r, e, h) => (G(n, r, "write to private field"), h ? h.call(n, e) : r.set(n, e), e), A = (n, r, e) => (G(n, r, "access private method"), e);
6
- import { Notifier as ee } from "../notifier/index.js";
7
- import { i as w } from "../index-euf5anj6.js";
8
- import { g as Z } from "../dom-CVWzyXPH.js";
9
- import { ticker as D } from "../ticker/index.js";
10
- import "../Store-swP_0ymB.js";
11
- import { a as te } from "../easings-BEmRlrDd.js";
12
- import { T as ie } from "../Tweened-DzZwfKNm.js";
13
- import { s as se } from "../gestures-CcXV6fCp.js";
14
- import { p as he } from "../number-CbdpfO3u.js";
15
- import { TICK_ORDER as ne } from "../order/index.js";
16
- var V;
17
- class j {
18
- constructor() {
19
- s(this, V, new ee());
20
- }
21
- get changeEvent() {
22
- return t(this, V);
23
- }
24
- }
25
- V = new WeakMap();
26
- var y, c, u, Y;
27
- class ge extends j {
28
- constructor(e) {
29
- super();
30
- s(this, y, null);
31
- s(this, c, null);
32
- s(this, u, "offsetHeight");
33
- s(this, Y, (e) => {
34
- const h = e.shiftKey ? -1 : 1;
35
- let a;
36
- e.code === "Space" ? a = h * t(this, c)[t(this, u)] * 0.4 : e.code === "ArrowLeft" ? a = -1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowRight" ? a = 1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowUp" ? a = -1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowDown" ? a = 1 * t(this, c)[t(this, u)] * 0.2 : e.code === "PageUp" ? a = -1 * t(this, c)[t(this, u)] : e.code === "PageDown" ? a = 1 * t(this, c)[t(this, u)] : e.code === "Home" ? a = 0 : e.code === "End" && (a = t(this, u) === "offsetWidth" ? t(this, c).scrollWidth : t(this, c).scrollHeight), a && (e.stopPropagation(), this.changeEvent.notify("keyboard", a, e));
37
- });
38
- w && (i(this, y, e != null && e.element && Z(e.element) || window), i(this, c, t(this, y) instanceof HTMLElement ? t(this, y) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
39
- }
40
- set dimension(e) {
41
- i(this, u, e === "width" ? "offsetWidth" : "offsetHeight");
42
- }
43
- connect() {
44
- w && t(this, y).addEventListener(
45
- "keydown",
46
- t(this, Y)
47
- );
48
- }
49
- disconnect() {
50
- w && t(this, y).removeEventListener(
51
- "keydown",
52
- t(this, Y)
53
- );
54
- }
55
- }
56
- y = new WeakMap(), c = new WeakMap(), u = new WeakMap(), Y = new WeakMap();
57
- var E, M, K, O, d, I, m, b, Q, J, H, S, q;
58
- class ye extends j {
59
- constructor(e) {
60
- super();
61
- s(this, b);
62
- s(this, E);
63
- s(this, M);
64
- s(this, K);
65
- s(this, O);
66
- s(this, d);
67
- s(this, I);
68
- s(this, m);
69
- s(this, H);
70
- s(this, S);
71
- s(this, q);
72
- this.direction = 1, i(this, d, new ie(0, { easing: te })), i(this, m, !1), i(this, H, (h) => {
73
- t(this, d).current !== 1 && this.changeEvent.notify(
74
- "autoplay",
75
- h.timeBetweenFrames * t(this, E) * this.direction * (1 - t(this, d).current),
76
- h
77
- );
78
- }), i(this, S, () => {
79
- t(this, d).current !== 1 && this.changeEvent.notify(
80
- "autoplay",
81
- Math.sign(t(this, E)) * this.direction * (1 - t(this, d).current),
82
- null
83
- );
84
- }), i(this, q, () => {
85
- t(this, M) && (document.hidden ? t(this, d).set(1, { equalize: !0 }) : t(this, d).set(0, { equalize: !0 }));
86
- }), i(this, E, (e == null ? void 0 : e.speed) || 1), i(this, M, (e == null ? void 0 : e.interval) || !1), i(this, K, e);
87
- }
88
- set interval(e) {
89
- i(this, M, e), t(this, m) && A(this, b, Q).call(this);
90
- }
91
- set speed(e) {
92
- i(this, E, e), t(this, m) && A(this, b, Q).call(this);
93
- }
94
- connect() {
95
- t(this, m) || (i(this, m, !0), A(this, b, Q).call(this));
96
- }
97
- disconnect() {
98
- t(this, m) && (i(this, m, !1), A(this, b, J).call(this));
99
- }
100
- pauseAndContinue(e, h) {
101
- t(this, m) && e && (clearTimeout(t(this, I)), t(this, d).set(1, {
102
- duration: Math.min(e, 1e3),
103
- equalize: h
104
- }), i(this, I, setTimeout(() => {
105
- t(this, d).set(0, {
106
- duration: Math.min(e, 5e3),
107
- equalize: h
108
- });
109
- }, e)));
110
- }
111
- }
112
- E = new WeakMap(), M = new WeakMap(), K = new WeakMap(), O = new WeakMap(), d = new WeakMap(), I = new WeakMap(), m = new WeakMap(), b = new WeakSet(), Q = function() {
113
- A(this, b, J).call(this), t(this, M) ? i(this, O, setInterval(
114
- t(this, S),
115
- Math.abs(t(this, E))
116
- )) : D.subscribe(t(this, H), t(this, K)), document.addEventListener(
117
- "visibilitychange",
118
- t(this, q)
119
- );
120
- }, J = function() {
121
- clearInterval(t(this, O)), D.unsubscribe(t(this, H)), clearTimeout(t(this, I)), t(this, d).close(), document.removeEventListener(
122
- "visibilitychange",
123
- t(this, q)
124
- );
125
- }, H = new WeakMap(), S = new WeakMap(), q = new WeakMap();
126
- var z, k, P, B;
127
- class Ee extends j {
128
- constructor(e) {
129
- super();
130
- s(this, z, null);
131
- s(this, k);
132
- s(this, P);
133
- s(this, B, (e) => {
134
- let h = 0;
135
- const a = Math.abs(e.deltaY), g = Math.abs(e.deltaX);
136
- if (!(this.axis === "x" && a > g || this.axis === "y" && g > a) && (e.preventDefault(), !(this.debounce && this.axis === "x" && g < 5 || this.axis === "y" && a < 5)))
137
- if (h = (this.axis === "max" ? g > a ? e.deltaX : e.deltaY : this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), this.debounce) {
138
- const X = Date.now();
139
- if (X - t(this, P) > 40 && (h = 100 * Math.sign(h)), i(this, P, X), Math.abs(h) < 100 || t(this, k))
140
- return;
141
- this.changeEvent.notify("wheel", h, e), i(this, k, setTimeout(() => {
142
- i(this, k, void 0);
143
- }, 80));
144
- } else
145
- this.changeEvent.notify("wheel", h, e);
146
- });
147
- this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, i(this, P, Date.now()), w && i(this, z, e != null && e.element && Z(e.element) || window);
148
- }
149
- connect() {
150
- w && t(this, z).addEventListener(
151
- "wheel",
152
- t(this, B),
153
- {
154
- passive: !1
155
- }
156
- );
157
- }
158
- disconnect() {
159
- w && (t(this, z).removeEventListener(
160
- "wheel",
161
- t(this, B)
162
- ), clearTimeout(t(this, k)));
163
- }
164
- }
165
- z = new WeakMap(), k = new WeakMap(), P = new WeakMap(), B = new WeakMap();
166
- var T, N, o, l, C, x, R, W, L;
167
- const v = class v extends j {
168
- constructor(e) {
169
- super();
170
- s(this, N);
171
- s(this, o);
172
- s(this, l);
173
- s(this, C);
174
- s(this, x);
175
- s(this, R);
176
- s(this, W);
177
- s(this, L);
178
- this.inertion = 1, i(this, N, null), i(this, o, null), i(this, l, 0), i(this, C, []), i(this, x, 0), i(this, R, (h) => {
179
- Math.abs(t(this, x)) > 2 && h.preventDefault();
180
- }), i(this, W, (h) => {
181
- if (i(this, x, 0), i(this, l, 0), h.button !== 0 || h.composedPath().find(
182
- (f) => f instanceof HTMLElement && f.hasAttribute("drag-dead-zone")
183
- ))
184
- return;
185
- this.swipe || D.unsubscribe(t(this, L));
186
- let a = h, g = !1;
187
- document.documentElement.classList.add("grabbing");
188
- let X = 0, $ = 0, F = 0, U = 0;
189
- se(
190
- (f) => {
191
- t(v, T) && t(v, T) !== t(this, o) || (X = a.x - f.x, $ = a.y - f.y, F = f.x - h.x, U = f.y - h.y, this.axis === "x" ? (i(this, x, F), i(this, l, X)) : (i(this, x, U), i(this, l, $)), a = f, g = this.axis === "x" && Math.abs(F) > Math.abs(U) || this.axis === "y" && Math.abs(U) > Math.abs(F), g && (document.documentElement.classList.add("dragging"), i(v, T, t(this, o)), this.changeEvent.notify("drag", t(this, l), f)));
192
- },
193
- (f) => {
194
- i(v, T, null), g && (!this.swipe && this.inertion ? (i(this, l, t(this, l) * this.inertion), D.subscribe(t(this, L), {
195
- order: ne.CONTROLS - 1
196
- })) : this.swipe && this.changeEvent.notify("drag-end", t(this, l), f)), document.documentElement.classList.remove("grabbing"), document.documentElement.classList.remove("dragging");
197
- }
198
- );
199
- }), i(this, L, () => {
200
- Math.floor(Math.abs(t(this, l))) || D.unsubscribe(t(this, L)), i(this, l, t(this, l) * 0.95), i(this, l, he(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l), null);
201
- }), this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, w && (i(this, o, e != null && e.element && Z(e.element) || document.documentElement), i(this, N, (e == null ? void 0 : e.rootElement) || t(this, o)));
202
- }
203
- connect() {
204
- w && (i(this, C, [...t(this, N).querySelectorAll("a")]), t(this, C).forEach((e) => {
205
- e.addEventListener("click", t(this, R));
206
- }), t(this, o).addEventListener("pointerdown", t(this, W)));
207
- }
208
- disconnect() {
209
- w && (t(this, C).forEach((e) => {
210
- e.removeEventListener("click", t(this, R));
211
- }), t(this, o).removeEventListener(
212
- "pointerdown",
213
- t(this, W)
214
- ), D.unsubscribe(t(this, L)));
215
- }
216
- };
217
- T = new WeakMap(), N = new WeakMap(), o = new WeakMap(), l = new WeakMap(), C = new WeakMap(), x = new WeakMap(), R = new WeakMap(), W = new WeakMap(), L = new WeakMap(), s(v, T, null);
218
- let p = v;
1
+ import { A as r, C as a, D as l, K as t, W as C } from "../DragControls-DGDUw6bM.js";
219
2
  export {
220
- ye as AutoplayControls,
221
- j as Controls,
222
- p as DragControls,
223
- ge as KeyboardControls,
224
- Ee as WheelControls
3
+ r as AutoplayControls,
4
+ a as Controls,
5
+ l as DragControls,
6
+ t as KeyboardControls,
7
+ C as WheelControls
225
8
  };
@@ -1 +1 @@
1
- "use strict";var w=r=>{throw TypeError(r)};var f=(r,s,e)=>s.has(r)||w("Cannot "+e);var t=(r,s,e)=>(f(r,s,"read from private field"),e?e.call(r):s.get(r)),h=(r,s,e)=>s.has(r)?w("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),u=(r,s,e,i)=>(f(r,s,"write to private field"),i?i.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),p=require("../Store-GokLe_g-.cjs"),v=require("../dom-JBOkFLTh.cjs");require("../index-Cqw2NKev.cjs");const g=require("../window-resizer/index.cjs");var l,a,c,b,n,o;class y extends p.Store{constructor(e,i,d,S){super(d,S);h(this,l);h(this,a);h(this,c);h(this,b);h(this,n,!1);h(this,o,()=>{this.check()});u(this,l,v.getElement(e)),u(this,a,i),u(this,c,d.toString()),u(this,b,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,c)}observe(){t(this,n)||(u(this,n,!0),g.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,n)&&(u(this,n,!1),g.windowResizer.unsubscribe(t(this,o)))}subscribe(e,i){return this.subscribers.length||this.observe(),super.subscribe(e,i)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,l)).getPropertyValue(t(this,a)).trim();if(!(t(this,b)&&t(this,c)===e))if(u(this,c,e),e){const i=R.cssValueParser.parse(t(this,c));this.current=i}else this.current=this.initial}}l=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,n=new WeakMap,o=new WeakMap;exports.CSSProperty=y;
1
+ "use strict";var w=r=>{throw TypeError(r)};var f=(r,s,e)=>s.has(r)||w("Cannot "+e);var t=(r,s,e)=>(f(r,s,"read from private field"),e?e.call(r):s.get(r)),h=(r,s,e)=>s.has(r)?w("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),u=(r,s,e,i)=>(f(r,s,"write to private field"),i?i.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),p=require("../Store-Cd1GlEmZ.cjs"),q=require("../dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");const g=require("../window-resizer/index.cjs");var l,a,c,b,n,o;class v extends p.Store{constructor(e,i,d,S){super(d,S);h(this,l);h(this,a);h(this,c);h(this,b);h(this,n,!1);h(this,o,()=>{this.check()});u(this,l,q.getElement(e)),u(this,a,i),u(this,c,d.toString()),u(this,b,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,c)}observe(){t(this,n)||(u(this,n,!0),g.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,n)&&(u(this,n,!1),g.windowResizer.unsubscribe(t(this,o)))}subscribe(e,i){return this.subscribers.length||this.observe(),super.subscribe(e,i)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,l)).getPropertyValue(t(this,a)).trim();if(!(t(this,b)&&t(this,c)===e))if(u(this,c,e),e){const i=R.cssValueParser.parse(t(this,c));this.current=i}else this.current=this.initial}}l=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,n=new WeakMap,o=new WeakMap;exports.CSSProperty=v;
@@ -5,32 +5,33 @@ var S = (s, r, e) => r.has(s) || p("Cannot " + e);
5
5
  var t = (s, r, e) => (S(s, r, "read from private field"), e ? e.call(s) : r.get(s)), c = (s, r, e) => r.has(s) ? p("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), u = (s, r, e, i) => (S(s, r, "write to private field"), i ? i.call(s, e) : r.set(s, e), e);
6
6
  import { cssValueParser as w } from "../css-value-parser/index.js";
7
7
  import { RESIZE_ORDER as R } from "../order/index.js";
8
- import { S as V } from "../Store-swP_0ymB.js";
8
+ import { S as V } from "../Store-0BVty6AZ.js";
9
9
  import { g as v } from "../dom-CVWzyXPH.js";
10
- import "../index-euf5anj6.js";
10
+ import "construct-style-sheets-polyfill";
11
+ import "../index-Bv9zgfdb.js";
11
12
  import { windowResizer as g } from "../window-resizer/index.js";
12
- var b, l, h, n, a, o;
13
- class z extends V {
13
+ var b, o, h, l, a, n;
14
+ class A extends V {
14
15
  constructor(e, i, f, m) {
15
16
  super(f, m);
16
17
  c(this, b);
17
- c(this, l);
18
+ c(this, o);
18
19
  c(this, h);
19
- c(this, n);
20
+ c(this, l);
20
21
  c(this, a, !1);
21
- c(this, o, () => {
22
+ c(this, n, () => {
22
23
  this.check();
23
24
  });
24
- u(this, b, v(e)), u(this, l, i), u(this, h, f.toString()), u(this, n, (m == null ? void 0 : m.rawValueCheck) !== !1);
25
+ u(this, b, v(e)), u(this, o, i), u(this, h, f.toString()), u(this, l, (m == null ? void 0 : m.rawValueCheck) !== !1);
25
26
  }
26
27
  get currentRawValue() {
27
28
  return t(this, h);
28
29
  }
29
30
  observe() {
30
- t(this, a) || (u(this, a, !0), g.subscribe(t(this, o), R.CSS_VARIABLE));
31
+ t(this, a) || (u(this, a, !0), g.subscribe(t(this, n), R.CSS_VARIABLE));
31
32
  }
32
33
  unobserve() {
33
- t(this, a) && (u(this, a, !1), g.unsubscribe(t(this, o)));
34
+ t(this, a) && (u(this, a, !1), g.unsubscribe(t(this, n)));
34
35
  }
35
36
  subscribe(e, i) {
36
37
  return this.subscribers.length || this.observe(), super.subscribe(e, i);
@@ -42,8 +43,8 @@ class z extends V {
42
43
  this.unobserve(), super.close();
43
44
  }
44
45
  check() {
45
- const e = getComputedStyle(t(this, b)).getPropertyValue(t(this, l)).trim();
46
- if (!(t(this, n) && t(this, h) === e))
46
+ const e = getComputedStyle(t(this, b)).getPropertyValue(t(this, o)).trim();
47
+ if (!(t(this, l) && t(this, h) === e))
47
48
  if (u(this, h, e), e) {
48
49
  const i = w.parse(t(this, h));
49
50
  this.current = i;
@@ -51,7 +52,7 @@ class z extends V {
51
52
  this.current = this.initial;
52
53
  }
53
54
  }
54
- b = new WeakMap(), l = new WeakMap(), h = new WeakMap(), n = new WeakMap(), a = new WeakMap(), o = new WeakMap();
55
+ b = new WeakMap(), o = new WeakMap(), h = new WeakMap(), l = new WeakMap(), a = new WeakMap(), n = new WeakMap();
55
56
  export {
56
- z as CSSProperty
57
+ A as CSSProperty
57
58
  };
@@ -1 +1 @@
1
- "use strict";var v=l=>{throw TypeError(l)};var k=(l,o,s)=>o.has(l)||v("Cannot "+s);var t=(l,o,s)=>(k(l,o,"read from private field"),s?s.call(l):o.get(l)),h=(l,o,s)=>o.has(l)?v("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(l):o.set(l,s),c=(l,o,s,e)=>(k(l,o,"write to private field"),e?e.call(l,s):o.set(l,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-Cqw2NKev.cjs"),q=require("../dom-JBOkFLTh.cjs"),w=require("../gestures-C7gbKx11.cjs"),E=require("../ticker/index.cjs");var i,n,m,a,r,d,f,y,p,u,g;class T extends HTMLElement{constructor(){super(...arguments);h(this,i,null);h(this,n,null);h(this,m,0);h(this,a,0);h(this,r,!1);h(this,d);h(this,f,()=>{this.classList.add("active"),clearTimeout(t(this,d));const e=(t(this,r)?t(this,i).scrollLeft:t(this,i).scrollTop)/t(this,a)*t(this,m);t(this,r)?t(this,n).style.transform=`translate3d(${e}px, 0px, 0px)`:t(this,n).style.transform=`translate3d(0px, ${e}px, 0px)`,c(this,d,setTimeout(()=>{this.classList.remove("active")},1e3))});h(this,y,()=>{const s=t(this,r)?this.offsetWidth:this.offsetHeight;c(this,a,t(this,r)?t(this,i).scrollWidth-t(this,i).offsetWidth:t(this,i).scrollHeight-t(this,i).offsetHeight);let e=s*s/(t(this,a)+s);e=Math.max(e,30),t(this,r)?(t(this,n).style.width=e+"px",t(this,n).style.height="100%"):(t(this,n).style.width="100%",t(this,n).style.height=e+"px"),c(this,m,s-e),t(this,r)&&!(t(this,i).scrollWidth>t(this,i).offsetWidth)||!t(this,r)&&!(t(this,i).scrollHeight>t(this,i).offsetHeight)?this.style.display="none":this.style.display="block"});h(this,p,s=>{document.documentElement.classList.add("grabbing");const e=t(this,r)?t(this,i).scrollLeft:t(this,i).scrollTop,b=t(this,r)?s.x:s.y;w.setupDrag(x=>{const H=t(this,a)/t(this,m),S=(t(this,r)?x.x-b:x.y-b)*H;t(this,r)?t(this,i).scroll({left:e+S,behavior:"instant"}):t(this,i).scroll({top:e+S,behavior:"instant"})},()=>{document.documentElement.classList.remove("grabbing")})});h(this,u,()=>{t(this,y).call(this)});h(this,g,s=>{s.isIntersecting?(E.ticker.subscribe(t(this,u),{maxFPS:5}),t(this,u).call(this)):E.ticker.unsubscribe(t(this,u))})}connectedCallback(){const s=this.getAttribute("data-scroll");c(this,r,this.hasAttribute("horisontal"));let e=null;s&&(s==="parent"?e=this.parentElement:e=document.querySelector(s)),e||(e=q.findScrollParentElement(this));const b=this.querySelector("[data-thumb]");e&&b&&(c(this,i,e),c(this,n,b),t(this,i).addEventListener("scroll",t(this,f)),t(this,n).addEventListener("pointerdown",t(this,p)),L.intersector.subscribe(this.parentElement,t(this,g)))}disconnectedCallback(){t(this,i).removeEventListener("scroll",t(this,f)),t(this,n).removeEventListener("pointerdown",t(this,p)),clearTimeout(t(this,d)),L.intersector.unsubscribe(t(this,g)),E.ticker.unsubscribe(t(this,u))}}i=new WeakMap,n=new WeakMap,m=new WeakMap,a=new WeakMap,r=new WeakMap,d=new WeakMap,f=new WeakMap,y=new WeakMap,p=new WeakMap,u=new WeakMap,g=new WeakMap;L.isBrowser&&!customElements.get("e-custom-scrollbar")&&customElements.define("e-custom-scrollbar",T);exports.CustomScrollbarElement=T;
1
+ "use strict";var v=l=>{throw TypeError(l)};var k=(l,o,s)=>o.has(l)||v("Cannot "+s);var t=(l,o,s)=>(k(l,o,"read from private field"),s?s.call(l):o.get(l)),h=(l,o,s)=>o.has(l)?v("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(l):o.set(l,s),c=(l,o,s,e)=>(k(l,o,"write to private field"),e?e.call(l,s):o.set(l,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-DekP7OZe.cjs"),H=require("../dom-JBOkFLTh.cjs"),w=require("../gestures-C7gbKx11.cjs");require("construct-style-sheets-polyfill");const E=require("../ticker/index.cjs");var i,n,m,a,r,d,f,y,p,u,g;class T extends HTMLElement{constructor(){super(...arguments);h(this,i,null);h(this,n,null);h(this,m,0);h(this,a,0);h(this,r,!1);h(this,d);h(this,f,()=>{this.classList.add("active"),clearTimeout(t(this,d));const e=(t(this,r)?t(this,i).scrollLeft:t(this,i).scrollTop)/t(this,a)*t(this,m);t(this,r)?t(this,n).style.transform=`translate3d(${e}px, 0px, 0px)`:t(this,n).style.transform=`translate3d(0px, ${e}px, 0px)`,c(this,d,setTimeout(()=>{this.classList.remove("active")},1e3))});h(this,y,()=>{const s=t(this,r)?this.offsetWidth:this.offsetHeight;c(this,a,t(this,r)?t(this,i).scrollWidth-t(this,i).offsetWidth:t(this,i).scrollHeight-t(this,i).offsetHeight);let e=s*s/(t(this,a)+s);e=Math.max(e,30),t(this,r)?(t(this,n).style.width=e+"px",t(this,n).style.height="100%"):(t(this,n).style.width="100%",t(this,n).style.height=e+"px"),c(this,m,s-e),t(this,r)&&!(t(this,i).scrollWidth>t(this,i).offsetWidth)||!t(this,r)&&!(t(this,i).scrollHeight>t(this,i).offsetHeight)?this.style.display="none":this.style.display="block"});h(this,p,s=>{document.documentElement.classList.add("grabbing");const e=t(this,r)?t(this,i).scrollLeft:t(this,i).scrollTop,b=t(this,r)?s.x:s.y;w.setupDrag(x=>{const q=t(this,a)/t(this,m),S=(t(this,r)?x.x-b:x.y-b)*q;t(this,r)?t(this,i).scroll({left:e+S,behavior:"instant"}):t(this,i).scroll({top:e+S,behavior:"instant"})},()=>{document.documentElement.classList.remove("grabbing")})});h(this,u,()=>{t(this,y).call(this)});h(this,g,s=>{s.isIntersecting?(E.ticker.subscribe(t(this,u),{maxFPS:5}),t(this,u).call(this)):E.ticker.unsubscribe(t(this,u))})}connectedCallback(){const s=this.getAttribute("data-scroll");c(this,r,this.hasAttribute("horisontal"));let e=null;s&&(s==="parent"?e=this.parentElement:e=document.querySelector(s)),e||(e=H.findScrollParentElement(this));const b=this.querySelector("[data-thumb]");e&&b&&(c(this,i,e),c(this,n,b),t(this,i).addEventListener("scroll",t(this,f)),t(this,n).addEventListener("pointerdown",t(this,p)),L.intersector.subscribe(this.parentElement,t(this,g)))}disconnectedCallback(){t(this,i).removeEventListener("scroll",t(this,f)),t(this,n).removeEventListener("pointerdown",t(this,p)),clearTimeout(t(this,d)),L.intersector.unsubscribe(t(this,g)),E.ticker.unsubscribe(t(this,u))}}i=new WeakMap,n=new WeakMap,m=new WeakMap,a=new WeakMap,r=new WeakMap,d=new WeakMap,f=new WeakMap,y=new WeakMap,p=new WeakMap,u=new WeakMap,g=new WeakMap;L.isBrowser&&!customElements.get("e-custom-scrollbar")&&customElements.define("e-custom-scrollbar",T);exports.CustomScrollbarElement=T;
@@ -1,46 +1,47 @@
1
1
  var v = (l) => {
2
2
  throw TypeError(l);
3
3
  };
4
- var S = (l, o, s) => o.has(l) || v("Cannot " + s);
5
- var t = (l, o, s) => (S(l, o, "read from private field"), s ? s.call(l) : o.get(l)), r = (l, o, s) => o.has(l) ? v("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(l) : o.set(l, s), c = (l, o, s, e) => (S(l, o, "write to private field"), e ? e.call(l, s) : o.set(l, s), s);
6
- import { i as k, a as H } from "../index-euf5anj6.js";
4
+ var S = (l, h, s) => h.has(l) || v("Cannot " + s);
5
+ var t = (l, h, s) => (S(l, h, "read from private field"), s ? s.call(l) : h.get(l)), r = (l, h, s) => h.has(l) ? v("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(l) : h.set(l, s), c = (l, h, s, i) => (S(l, h, "write to private field"), i ? i.call(l, s) : h.set(l, s), s);
6
+ import { i as k, a as H } from "../index-Bv9zgfdb.js";
7
7
  import { f as w } from "../dom-CVWzyXPH.js";
8
8
  import { s as z } from "../gestures-CcXV6fCp.js";
9
+ import "construct-style-sheets-polyfill";
9
10
  import { ticker as E } from "../ticker/index.js";
10
- var i, n, u, a, h, d, b, L, p, m, g;
11
+ var e, n, u, a, o, d, b, L, p, m, g;
11
12
  class W extends HTMLElement {
12
13
  constructor() {
13
14
  super(...arguments);
14
- r(this, i, null);
15
+ r(this, e, null);
15
16
  r(this, n, null);
16
17
  r(this, u, 0);
17
18
  r(this, a, 0);
18
- r(this, h, !1);
19
+ r(this, o, !1);
19
20
  r(this, d);
20
21
  r(this, b, () => {
21
22
  this.classList.add("active"), clearTimeout(t(this, d));
22
- const e = (t(this, h) ? t(this, i).scrollLeft : t(this, i).scrollTop) / t(this, a) * t(this, u);
23
- t(this, h) ? t(this, n).style.transform = `translate3d(${e}px, 0px, 0px)` : t(this, n).style.transform = `translate3d(0px, ${e}px, 0px)`, c(this, d, setTimeout(() => {
23
+ const i = (t(this, o) ? t(this, e).scrollLeft : t(this, e).scrollTop) / t(this, a) * t(this, u);
24
+ t(this, o) ? t(this, n).style.transform = `translate3d(${i}px, 0px, 0px)` : t(this, n).style.transform = `translate3d(0px, ${i}px, 0px)`, c(this, d, setTimeout(() => {
24
25
  this.classList.remove("active");
25
26
  }, 1e3));
26
27
  });
27
28
  r(this, L, () => {
28
- const s = t(this, h) ? this.offsetWidth : this.offsetHeight;
29
- c(this, a, t(this, h) ? t(this, i).scrollWidth - t(this, i).offsetWidth : t(this, i).scrollHeight - t(this, i).offsetHeight);
30
- let e = s * s / (t(this, a) + s);
31
- e = Math.max(e, 30), t(this, h) ? (t(this, n).style.width = e + "px", t(this, n).style.height = "100%") : (t(this, n).style.width = "100%", t(this, n).style.height = e + "px"), c(this, u, s - e), t(this, h) && !(t(this, i).scrollWidth > t(this, i).offsetWidth) || !t(this, h) && !(t(this, i).scrollHeight > t(this, i).offsetHeight) ? this.style.display = "none" : this.style.display = "block";
29
+ const s = t(this, o) ? this.offsetWidth : this.offsetHeight;
30
+ c(this, a, t(this, o) ? t(this, e).scrollWidth - t(this, e).offsetWidth : t(this, e).scrollHeight - t(this, e).offsetHeight);
31
+ let i = s * s / (t(this, a) + s);
32
+ i = Math.max(i, 30), t(this, o) ? (t(this, n).style.width = i + "px", t(this, n).style.height = "100%") : (t(this, n).style.width = "100%", t(this, n).style.height = i + "px"), c(this, u, s - i), t(this, o) && !(t(this, e).scrollWidth > t(this, e).offsetWidth) || !t(this, o) && !(t(this, e).scrollHeight > t(this, e).offsetHeight) ? this.style.display = "none" : this.style.display = "block";
32
33
  });
33
34
  r(this, p, (s) => {
34
35
  document.documentElement.classList.add("grabbing");
35
- const e = t(this, h) ? t(this, i).scrollLeft : t(this, i).scrollTop, f = t(this, h) ? s.x : s.y;
36
+ const i = t(this, o) ? t(this, e).scrollLeft : t(this, e).scrollTop, f = t(this, o) ? s.x : s.y;
36
37
  z(
37
38
  (x) => {
38
- const T = t(this, a) / t(this, u), y = (t(this, h) ? x.x - f : x.y - f) * T;
39
- t(this, h) ? t(this, i).scroll({
40
- left: e + y,
39
+ const T = t(this, a) / t(this, u), y = (t(this, o) ? x.x - f : x.y - f) * T;
40
+ t(this, o) ? t(this, e).scroll({
41
+ left: i + y,
41
42
  behavior: "instant"
42
- }) : t(this, i).scroll({
43
- top: e + y,
43
+ }) : t(this, e).scroll({
44
+ top: i + y,
44
45
  behavior: "instant"
45
46
  });
46
47
  },
@@ -58,17 +59,17 @@ class W extends HTMLElement {
58
59
  }
59
60
  connectedCallback() {
60
61
  const s = this.getAttribute("data-scroll");
61
- c(this, h, this.hasAttribute("horisontal"));
62
- let e = null;
63
- s && (s === "parent" ? e = this.parentElement : e = document.querySelector(s)), e || (e = w(this));
62
+ c(this, o, this.hasAttribute("horisontal"));
63
+ let i = null;
64
+ s && (s === "parent" ? i = this.parentElement : i = document.querySelector(s)), i || (i = w(this));
64
65
  const f = this.querySelector("[data-thumb]");
65
- e && f && (c(this, i, e), c(this, n, f), t(this, i).addEventListener("scroll", t(this, b)), t(this, n).addEventListener("pointerdown", t(this, p)), H.subscribe(this.parentElement, t(this, g)));
66
+ i && f && (c(this, e, i), c(this, n, f), t(this, e).addEventListener("scroll", t(this, b)), t(this, n).addEventListener("pointerdown", t(this, p)), H.subscribe(this.parentElement, t(this, g)));
66
67
  }
67
68
  disconnectedCallback() {
68
- t(this, i).removeEventListener("scroll", t(this, b)), t(this, n).removeEventListener("pointerdown", t(this, p)), clearTimeout(t(this, d)), H.unsubscribe(t(this, g)), E.unsubscribe(t(this, m));
69
+ t(this, e).removeEventListener("scroll", t(this, b)), t(this, n).removeEventListener("pointerdown", t(this, p)), clearTimeout(t(this, d)), H.unsubscribe(t(this, g)), E.unsubscribe(t(this, m));
69
70
  }
70
71
  }
71
- i = new WeakMap(), n = new WeakMap(), u = new WeakMap(), a = new WeakMap(), h = new WeakMap(), d = new WeakMap(), b = new WeakMap(), L = new WeakMap(), p = new WeakMap(), m = new WeakMap(), g = new WeakMap();
72
+ e = new WeakMap(), n = new WeakMap(), u = new WeakMap(), a = new WeakMap(), o = new WeakMap(), d = new WeakMap(), b = new WeakMap(), L = new WeakMap(), p = new WeakMap(), m = new WeakMap(), g = new WeakMap();
72
73
  k && !customElements.get("e-custom-scrollbar") && customElements.define("e-custom-scrollbar", W);
73
74
  export {
74
75
  W as CustomScrollbarElement
package/lib/dev/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-GokLe_g-.cjs");require("../index-Cqw2NKev.cjs");const c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../css-property/index.cjs"),t=require("../Store-Cd1GlEmZ.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");const o=require("../ticker/index.cjs");function c(){o.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof i.CSSProperty&&r.check()}})}exports.devMode=c;
package/lib/dev/index.js CHANGED
@@ -1,12 +1,13 @@
1
- import { CSSProperty as o } from "../css-property/index.js";
2
- import { a as e } from "../Store-swP_0ymB.js";
3
- import "../index-euf5anj6.js";
1
+ import { CSSProperty as e } from "../css-property/index.js";
2
+ import { a as o } from "../Store-0BVty6AZ.js";
3
+ import "construct-style-sheets-polyfill";
4
+ import "../index-Bv9zgfdb.js";
4
5
  import { ticker as i } from "../ticker/index.js";
5
6
  function s() {
6
7
  i.subscribe(() => {
7
- for (let r = 0; r < e.current.length; r++) {
8
- const t = e.current[r];
9
- t instanceof o && t.check();
8
+ for (let r = 0; r < o.current.length; r++) {
9
+ const t = o.current[r];
10
+ t instanceof e && t.check();
10
11
  }
11
12
  });
12
13
  }
@@ -1 +1 @@
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,b)=>(E(t,i,"write to private field"),b?b.call(t,n):i.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../order/index.cjs"),S=require("../window-resizer/index.cjs"),W=require("../index-Cqw2NKev.cjs"),R=require("../Store-GokLe_g-.cjs");var r,d,a,l,m,c;class D{constructor(){o(this,r);o(this,d);o(this,a);o(this,l);o(this,m);o(this,c);var i,n;if(e(this,r,"unknown"),e(this,d,!1),e(this,a,!1),e(this,l,!1),e(this,m,!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)},W.isBrowser){this.resize(),S.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE);{const g=document.createElement("canvas"),f=g.getContext("webgl")||g.getContext("experimental-webgl");e(this,l,f&&f instanceof WebGLRenderingContext||!1)}{const g=document.createElement("canvas");g.getContext("2d")&&e(this,m,g.toDataURL("image/webp").indexOf("data:image/webp")==0)}const b=window.navigator.userAgent,p=((n=(i=window.navigator)==null?void 0:i.userAgentData)==null?void 0:n.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],k=["Win32","Win64","Windows","WinCE"],C=["iPhone","iPad","iPod"];O.includes(p)?(e(this,r,"macOS"),e(this,c,!0)):C.includes(p)?(e(this,r,"iOS"),e(this,c,!0)):k.includes(p)?e(this,r,"Windows"):/Android/.test(b)?e(this,r,"Android"):/Linux/.test(p)?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,l)}get isWebp(){return s(this,m)}get isApple(){return s(this,c)}}r=new WeakMap,d=new WeakMap,a=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap;const M=new D;var z=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(z||{}),A=(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))(A||{}),u,w,x,h;class T{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")},W.isBrowser&&(this.resize(),S.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 I=new T;exports.ViewportBreakpoints=z;exports.ViewportMediaRules=A;exports.device=M;exports.viewport=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-DB0qAZPJ.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
@@ -1,108 +1,7 @@
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, f) => (E(t, e, "write to private field"), f ? f.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-euf5anj6.js";
9
- import { S as z } from "../Store-swP_0ymB.js";
10
- var h, m, r, d, l, c;
11
- class O {
12
- constructor() {
13
- o(this, h);
14
- o(this, m);
15
- o(this, r);
16
- o(this, d);
17
- o(this, l);
18
- o(this, c);
19
- var e, n;
20
- if (i(this, h, "unknown"), i(this, m, !1), i(this, r, !1), i(this, d, !1), i(this, l, !1), i(this, c, !1), this.resize = () => {
21
- i(this, m, /Mobi|Android/i.test(navigator.userAgent)), i(this, r, "ontouchstart" in window || navigator.maxTouchPoints > 0), setTimeout(() => {
22
- i(this, r, "ontouchstart" in window || navigator.maxTouchPoints > 0);
23
- }, 0);
24
- }, A) {
25
- this.resize(), W.subscribe(this.resize, P.DEVICE);
26
- {
27
- const w = document.createElement("canvas"), b = w.getContext("webgl") || w.getContext("experimental-webgl");
28
- i(this, d, b && b instanceof WebGLRenderingContext || !1);
29
- }
30
- {
31
- const w = document.createElement("canvas");
32
- w.getContext("2d") && i(this, l, w.toDataURL("image/webp").indexOf("data:image/webp") == 0);
33
- }
34
- const f = window.navigator.userAgent, p = ((n = (e = window.navigator) == null ? void 0 : e.userAgentData) == null ? void 0 : n.platform) || window.navigator.platform, C = [
35
- "Macintosh",
36
- "MacIntel",
37
- "MacPPC",
38
- "Mac68K",
39
- "macOS"
40
- ], S = ["Win32", "Win64", "Windows", "WinCE"], k = ["iPhone", "iPad", "iPod"];
41
- C.includes(p) ? (i(this, h, "macOS"), i(this, c, !0)) : k.includes(p) ? (i(this, h, "iOS"), i(this, c, !0)) : S.includes(p) ? i(this, h, "Windows") : /Android/.test(f) ? i(this, h, "Android") : /Linux/.test(p) ? i(this, h, "Linux") : i(this, h, "unknown");
42
- }
43
- }
44
- get OS() {
45
- return s(this, h);
46
- }
47
- get isMobile() {
48
- return s(this, m);
49
- }
50
- get isTouch() {
51
- return s(this, r);
52
- }
53
- get isWebgl() {
54
- return s(this, d);
55
- }
56
- get isWebp() {
57
- return s(this, l);
58
- }
59
- get isApple() {
60
- return s(this, c);
61
- }
62
- }
63
- h = new WeakMap(), m = new WeakMap(), r = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap();
64
- const H = new O();
65
- 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, a;
66
- class I {
67
- constructor() {
68
- o(this, u);
69
- o(this, x);
70
- o(this, g);
71
- o(this, a);
72
- i(this, u, 0), i(this, x, 0), i(this, g, 0), i(this, a, new z(void 0)), this.resize = () => {
73
- i(this, u, document.documentElement.clientWidth), i(this, x, innerHeight), i(this, g, devicePixelRatio), matchMedia(
74
- "(max-width: 600px)"
75
- /* <=mobile */
76
- ).matches ? s(this, a).current = "mobile" : matchMedia(
77
- "(max-width: 1024px)"
78
- /* <=tablet */
79
- ).matches ? s(this, a).current = "tablet" : matchMedia(
80
- "(max-width: 1280px)"
81
- /* <=notebook */
82
- ).matches ? s(this, a).current = "notebook" : matchMedia(
83
- "(min-width: 1281px)"
84
- /* >=desktop */
85
- ).matches && (s(this, a).current = "desktop");
86
- }, A && (this.resize(), W.subscribe(this.resize, P.DEVICE));
87
- }
88
- get width() {
89
- return s(this, u);
90
- }
91
- get height() {
92
- return s(this, x);
93
- }
94
- get type() {
95
- return s(this, a);
96
- }
97
- get pixelRatio() {
98
- return s(this, g);
99
- }
100
- }
101
- u = new WeakMap(), x = new WeakMap(), g = new WeakMap(), a = new WeakMap();
102
- const K = new I();
1
+ import { V as i, a as o, d as r, v as s } from "../Viewport-DA10iWAO.js";
103
2
  export {
104
- D as ViewportBreakpoints,
105
- T as ViewportMediaRules,
106
- H as device,
107
- K as viewport
3
+ i as ViewportBreakpoints,
4
+ o as ViewportMediaRules,
5
+ r as device,
6
+ s as viewport
108
7
  };
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,b=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var u=e=>{throw TypeError(e)};var l=(e,s,t)=>s in e?S(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,f=(e,s)=>{for(var t in s||(s={}))g.call(s,t)&&l(e,t,s[t]);if(a)for(var t of a(s))k.call(s,t)&&l(e,t,s[t]);return e},d=(e,s)=>b(e,p(s));var m=(e,s,t)=>s.has(e)||u("Cannot "+t);var h=(e,s,t)=>(m(e,s,"read from private field"),t?t.call(e):s.get(e)),y=(e,s,t)=>s.has(e)?u("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,r)=>(m(e,s,"write to private field"),r?r.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../Store-GokLe_g-.cjs"),E=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var i;class T extends L.Store{constructor(t,r){super(r);y(this,i);c(this,i,Array.isArray(t)?t:[t]);for(const o in this.initial)this.set(o,this.initial[o])}addElement(t){h(this,i).push(t)}removeElement(t){c(this,i,h(this,i).filter(r=>r!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r){const o=t;this.current=d(f({},this.current),{[t]:r}),o.startsWith("--")?r?h(this,i).forEach(n=>n.style.setProperty(o,r.toString())):h(this,i).forEach(n=>n.style.removeProperty(o)):r?h(this,i).forEach(n=>n.classList.add(E.camelToKebab(o))):h(this,i).forEach(n=>n.classList.remove(E.camelToKebab(o)))}}i=new WeakMap;exports.ElementLinkedStore=T;
1
+ "use strict";var S=Object.defineProperty,b=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var u=e=>{throw TypeError(e)};var l=(e,s,t)=>s in e?S(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,f=(e,s)=>{for(var t in s||(s={}))g.call(s,t)&&l(e,t,s[t]);if(a)for(var t of a(s))k.call(s,t)&&l(e,t,s[t]);return e},d=(e,s)=>b(e,p(s));var m=(e,s,t)=>s.has(e)||u("Cannot "+t);var h=(e,s,t)=>(m(e,s,"read from private field"),t?t.call(e):s.get(e)),y=(e,s,t)=>s.has(e)?u("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,r)=>(m(e,s,"write to private field"),r?r.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../Store-Cd1GlEmZ.cjs"),E=require("../string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");var i;class L extends q.Store{constructor(t,r){super(r);y(this,i);c(this,i,Array.isArray(t)?t:[t]);for(const o in this.initial)this.set(o,this.initial[o])}addElement(t){h(this,i).push(t)}removeElement(t){c(this,i,h(this,i).filter(r=>r!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r){const o=t;this.current=d(f({},this.current),{[t]:r}),o.startsWith("--")?r?h(this,i).forEach(n=>n.style.setProperty(o,r.toString())):h(this,i).forEach(n=>n.style.removeProperty(o)):r?h(this,i).forEach(n=>n.classList.add(E.camelToKebab(o))):h(this,i).forEach(n=>n.classList.remove(E.camelToKebab(o)))}}i=new WeakMap;exports.ElementLinkedStore=L;
@@ -15,11 +15,12 @@ var l = (s, r, t) => r in s ? d(s, r, { enumerable: !0, configurable: !0, writab
15
15
  }, p = (s, r) => S(s, k(r));
16
16
  var u = (s, r, t) => r.has(s) || f("Cannot " + t);
17
17
  var n = (s, r, t) => (u(s, r, "read from private field"), t ? t.call(s) : r.get(s)), y = (s, r, t) => r.has(s) ? f("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), a = (s, r, t, i) => (u(s, r, "write to private field"), i ? i.call(s, t) : r.set(s, t), t);
18
- import { S as x } from "../Store-swP_0ymB.js";
18
+ import { S as x } from "../Store-0BVty6AZ.js";
19
19
  import { c as E } from "../string-BlMQbe8b.js";
20
- import "../index-euf5anj6.js";
20
+ import "construct-style-sheets-polyfill";
21
+ import "../index-Bv9zgfdb.js";
21
22
  var e;
22
- class F extends x {
23
+ class K extends x {
23
24
  constructor(t, i) {
24
25
  super(i);
25
26
  y(this, e);
@@ -53,5 +54,5 @@ class F extends x {
53
54
  }
54
55
  e = new WeakMap();
55
56
  export {
56
- F as ElementLinkedStore
57
+ K as ElementLinkedStore
57
58
  };
@@ -1 +1 @@
1
- "use strict";var h=n=>{throw TypeError(n)};var y=(n,s,t)=>s.has(n)||h("Cannot "+t);var r=(n,s,t)=>(y(n,s,"read from private field"),t?t.call(n):s.get(n)),u=(n,s,t)=>s.has(n)?h("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(n):s.set(n,t),f=(n,s,t,e)=>(y(n,s,"write to private field"),e?e.call(n,t):s.set(n,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../index-Cqw2NKev.cjs"),v=require("../dom-JBOkFLTh.cjs");var i,o,b;class d{constructor(){u(this,i,[]);u(this,o,null);u(this,b,s=>{r(this,i).map(e=>({subscriber:e,entry:s.find(l=>l.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});z.isBrowser&&window.ResizeObserver&&f(this,o,new ResizeObserver(r(this,b)))}subscribe(s,t){const e=v.getElement(s);if(!e)return()=>{};const l=r(this,i).find(c=>c.element===e);if(!l)r(this,o).observe(e);else{const c=r(this,i).find(m=>m.element===e&&m.entry);c!=null&&c.element.isConnected&&t(c.entry)}return r(this,i).push({element:e,callback:t,entry:(l==null?void 0:l.entry)||null}),()=>{this.unsubscribe(t)}}unsubscribe(s){const t=r(this,i).find(e=>e.callback===s);t&&(f(this,i,r(this,i).filter(e=>e.callback!==t.callback)),r(this,i).find(e=>e.element===t.element)||r(this,o).unobserve(t.element))}}i=new WeakMap,o=new WeakMap,b=new WeakMap;const w=new d;exports.ElementResizer=d;exports.elementResizer=w;
1
+ "use strict";var h=r=>{throw TypeError(r)};var y=(r,s,t)=>s.has(r)||h("Cannot "+t);var n=(r,s,t)=>(y(r,s,"read from private field"),t?t.call(r):s.get(r)),u=(r,s,t)=>s.has(r)?h("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,t),f=(r,s,t,e)=>(y(r,s,"write to private field"),e?e.call(r,t):s.set(r,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../index-DekP7OZe.cjs"),v=require("../dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");var i,o,b;class d{constructor(){u(this,i,[]);u(this,o,null);u(this,b,s=>{n(this,i).map(e=>({subscriber:e,entry:s.find(l=>l.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});z.isBrowser&&window.ResizeObserver&&f(this,o,new ResizeObserver(n(this,b)))}subscribe(s,t){const e=v.getElement(s);if(!e)return()=>{};const l=n(this,i).find(c=>c.element===e);if(!l)n(this,o).observe(e);else{const c=n(this,i).find(m=>m.element===e&&m.entry);c!=null&&c.element.isConnected&&t(c.entry)}return n(this,i).push({element:e,callback:t,entry:(l==null?void 0:l.entry)||null}),()=>{this.unsubscribe(t)}}unsubscribe(s){const t=n(this,i).find(e=>e.callback===s);t&&(f(this,i,n(this,i).filter(e=>e.callback!==t.callback)),n(this,i).find(e=>e.element===t.element)||n(this,o).unobserve(t.element))}}i=new WeakMap,o=new WeakMap,b=new WeakMap;const w=new d;exports.ElementResizer=d;exports.elementResizer=w;