aptechka 0.44.0 → 0.44.2

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 (108) hide show
  1. package/lib/Animation-D1lL_XhF.cjs +1 -0
  2. package/lib/Animation-Je56LXXj.js +106 -0
  3. package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
  4. package/lib/Damped-BbJjFOLH.cjs +1 -0
  5. package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
  6. package/lib/Store-DRp_K37w.cjs +1 -0
  7. package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
  8. package/lib/Tweened-Dk1UNPSH.cjs +1 -0
  9. package/lib/accordion/index.cjs +1 -1
  10. package/lib/accordion/index.js +2 -2
  11. package/lib/animation/index.cjs +1 -1
  12. package/lib/animation/index.js +3 -3
  13. package/lib/attribute/index.cjs +1 -1
  14. package/lib/attribute/index.js +2 -2
  15. package/lib/canvas/index.cjs +1 -1
  16. package/lib/canvas/index.js +11 -11
  17. package/lib/class-linked-status/index.cjs +1 -1
  18. package/lib/class-linked-status/index.js +12 -11
  19. package/lib/controls/index.cjs +1 -1
  20. package/lib/controls/index.js +3 -3
  21. package/lib/css-property/index.cjs +1 -1
  22. package/lib/css-property/index.js +7 -6
  23. package/lib/custom-scrollbar/index.cjs +1 -1
  24. package/lib/custom-scrollbar/index.js +13 -12
  25. package/lib/dev/index.cjs +1 -1
  26. package/lib/dev/index.js +7 -6
  27. package/lib/device/index.cjs +1 -1
  28. package/lib/device/index.js +2 -2
  29. package/lib/element-resizer/index.cjs +1 -1
  30. package/lib/element-resizer/index.js +1 -1
  31. package/lib/en3/index.cjs +1 -1
  32. package/lib/en3/index.js +9 -8
  33. package/lib/iframe/index.cjs +1 -1
  34. package/lib/iframe/index.js +6 -5
  35. package/lib/image/index.cjs +1 -1
  36. package/lib/image/index.js +5 -4
  37. package/lib/index-Cqw2NKev.cjs +1 -0
  38. package/lib/index-euf5anj6.js +64 -0
  39. package/lib/intersector/index.cjs +1 -1
  40. package/lib/intersector/index.js +4 -61
  41. package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
  42. package/lib/jss-B_mh4mIw.cjs +1 -0
  43. package/lib/ladder/index.cjs +1 -1
  44. package/lib/ladder/index.js +35 -34
  45. package/lib/layout-box/index.cjs +1 -1
  46. package/lib/layout-box/index.js +1 -1
  47. package/lib/loading/index.cjs +1 -1
  48. package/lib/loading/index.js +10 -9
  49. package/lib/masonry-layout/index.cjs +1 -1
  50. package/lib/masonry-layout/index.js +17 -16
  51. package/lib/media/index.cjs +1 -1
  52. package/lib/media/index.js +7 -6
  53. package/lib/morph/MorphAnnouncer.d.ts +0 -1
  54. package/lib/morph/index.cjs +1 -1
  55. package/lib/morph/index.js +57 -57
  56. package/lib/need_redo_tweaker/index.cjs +3 -3
  57. package/lib/need_redo_tweaker/index.js +260 -260
  58. package/lib/pointer/index.cjs +1 -1
  59. package/lib/pointer/index.js +34 -33
  60. package/lib/popover/index.cjs +1 -1
  61. package/lib/popover/index.js +25 -25
  62. package/lib/router/index.cjs +1 -1
  63. package/lib/router/index.js +3 -3
  64. package/lib/scroll/index.cjs +1 -1
  65. package/lib/scroll/index.js +278 -278
  66. package/lib/scroll-entries/index.cjs +1 -1
  67. package/lib/scroll-entries/index.js +21 -21
  68. package/lib/scroll-segment/ScrollSegmentDefaultContainer.d.ts +11 -0
  69. package/lib/scroll-segment/ScrollSegmentElement.d.ts +78 -0
  70. package/lib/scroll-segment/index.cjs +1 -1
  71. package/lib/scroll-segment/index.d.ts +2 -79
  72. package/lib/scroll-segment/index.js +193 -164
  73. package/lib/sequence/index.cjs +1 -1
  74. package/lib/sequence/index.js +6 -6
  75. package/lib/size-element/index.cjs +1 -1
  76. package/lib/size-element/index.js +12 -11
  77. package/lib/slicer/SlicerElement.d.ts +2 -2
  78. package/lib/slicer/index.cjs +2 -2
  79. package/lib/slicer/index.js +10 -9
  80. package/lib/source/index.cjs +2 -2
  81. package/lib/source/index.js +2 -2
  82. package/lib/store/index.cjs +1 -1
  83. package/lib/store/index.js +13 -12
  84. package/lib/ticker/index.cjs +1 -1
  85. package/lib/ticker/index.js +1 -1
  86. package/lib/url-CLvdjbII.cjs +1 -0
  87. package/lib/{url-D0bFvcuq.js → url-CfcHdBT6.js} +1 -1
  88. package/lib/utils/index.cjs +1 -1
  89. package/lib/utils/index.d.ts +1 -0
  90. package/lib/utils/index.js +163 -148
  91. package/lib/utils/timeouts.d.ts +5 -0
  92. package/lib/utils/url.d.ts +5 -1
  93. package/lib/video/index.cjs +1 -1
  94. package/lib/video/index.js +7 -6
  95. package/lib/window-resizer/index.cjs +1 -1
  96. package/lib/window-resizer/index.js +1 -1
  97. package/lib/youtube/index.cjs +1 -1
  98. package/lib/youtube/index.js +13 -12
  99. package/package.json +1 -1
  100. package/lib/Animation-CMiBKrwE.cjs +0 -1
  101. package/lib/Animation-DPRlQfW2.js +0 -105
  102. package/lib/Damped-CHZ314Rn.cjs +0 -1
  103. package/lib/Store-C2J4Q87x.cjs +0 -1
  104. package/lib/Tweened-Dn6CMA-p.cjs +0 -1
  105. package/lib/browser-0zX67oeU.js +0 -4
  106. package/lib/browser-CpzFX2xg.cjs +0 -1
  107. package/lib/jss-GJLvaNfT.cjs +0 -1
  108. package/lib/url-Bn9ZrvT3.cjs +0 -1
@@ -1,39 +1,40 @@
1
- import { a as A, p as Q } from "../attributes-69we3byR.js";
2
- import { i as D } from "../browser-0zX67oeU.js";
3
- import { a as V, c as N, f as z, m as F } from "../canvas-DeZ0SLUJ.js";
4
- import { g as H, n as U, s as k } from "../coordinates-CgdGoSYs.js";
5
- import { g as i, f as p } from "../dom-CVWzyXPH.js";
6
- import { b as q, a as K } from "../dom-CVWzyXPH.js";
7
- import { f as G, p as J, h as L, a as Y, d as Z, k as X, o as _, b as ee, i as te, m as oe, g as se, q as ae, c as ne, j as re, n as ie, l as ce } from "../easings-Bni3YAAW.js";
8
- import { d as ue } from "../events-CsVF98U6.js";
9
- import { c as pe, d as me } from "../file-GHShUlue.js";
10
- import { d as xe, t as he } from "../function-C10DGppn.js";
11
- import { s as ye } from "../gestures-D2Fdra_G.js";
12
- import { c as Ce, s as Te } from "../jss-CjccJC-K.js";
13
- import { a as m } from "../layout-DpZo-I0y.js";
14
- import { g as we, b as Ee, c as Oe } from "../layout-DpZo-I0y.js";
15
- import { e as Pe, f as Ie, c as Be, d as Ae, l as Qe, m as Re, r as De, b as Me, a as Ve, s as Ne } from "../math-BOBiC4TN.js";
16
- import { l as Fe, n as je, p as He, r as Ue, t as ke } from "../polyfills-CxfUK5OU.js";
17
- import { c as qe, d as Ke, i as We, b as Ge, a as Je, m as Le, e as Ye, o as Ze, p as Xe } from "../object-D6MVWB4l.js";
18
- import { c as et, a as tt, g as ot, i as st, k as at, s as nt, t as rt, u as it } from "../string-f0Dnk0L1.js";
19
- import { g as lt, a as ut } from "../style-j2TwriJ_.js";
20
- import { c as pt, n as mt, p as dt, s as xt, u as ht } from "../url-D0bFvcuq.js";
21
- function h(t, e, ...o) {
22
- return [...t.slice(0, e), ...o, ...t.slice(e)];
1
+ import { a as D, p as M } from "../attributes-69we3byR.js";
2
+ import { a as p } from "../index-euf5anj6.js";
3
+ import { i as N } from "../index-euf5anj6.js";
4
+ import { a as F, c as j, f as H, m as U } from "../canvas-DeZ0SLUJ.js";
5
+ import { g as $, n as q, s as K } from "../coordinates-CgdGoSYs.js";
6
+ import { g as u, f as m } from "../dom-CVWzyXPH.js";
7
+ import { b as G, a as J } from "../dom-CVWzyXPH.js";
8
+ import { f as Y, p as Z, h as X, a as _, d as ee, k as te, o as se, b as ae, i as oe, m as ne, g as re, q as ie, c as ce, j as le, n as ue, l as fe } from "../easings-Bni3YAAW.js";
9
+ import { d as me } from "../events-CsVF98U6.js";
10
+ import { c as ge, d as xe } from "../file-GHShUlue.js";
11
+ import { d as be, t as ye } from "../function-C10DGppn.js";
12
+ import { s as Ie } from "../gestures-D2Fdra_G.js";
13
+ import { c as Te, s as Se } from "../jss-BQSxj7Ls.js";
14
+ import { a as d } from "../layout-DpZo-I0y.js";
15
+ import { g as Ee, b as Oe, c as Pe } from "../layout-DpZo-I0y.js";
16
+ import { e as Ae, f as Qe, c as Re, d as De, l as Me, m as Ve, r as Ne, b as ze, a as Fe, s as je } from "../math-BOBiC4TN.js";
17
+ import { l as Ue, n as ke, p as $e, r as qe, t as Ke } from "../polyfills-CxfUK5OU.js";
18
+ import { c as Ge, d as Je, i as Le, b as Ye, a as Ze, m as Xe, e as _e, o as et, p as tt } from "../object-D6MVWB4l.js";
19
+ import { c as at, a as ot, g as nt, i as rt, k as it, s as ct, t as lt, u as ut } from "../string-f0Dnk0L1.js";
20
+ import { g as pt, a as mt } from "../style-j2TwriJ_.js";
21
+ import { c as gt, n as xt, p as ht, s as bt, u as yt } from "../url-CfcHdBT6.js";
22
+ function b(t, e, ...s) {
23
+ return [...t.slice(0, e), ...s, ...t.slice(e)];
23
24
  }
24
- function g(t, e) {
25
- const o = t.length;
26
- e = e % o;
27
- const s = new Array(o);
28
- for (let a = 0; a < o; a++) {
29
- const n = (a + e) % o;
30
- s[n] = t[a];
25
+ function y(t, e) {
26
+ const s = t.length;
27
+ e = e % s;
28
+ const a = new Array(s);
29
+ for (let o = 0; o < s; o++) {
30
+ const n = (o + e) % s;
31
+ a[n] = t[o];
31
32
  }
32
- return s;
33
+ return a;
33
34
  }
34
- function y(t, e = 2) {
35
+ function C(t, e = 2) {
35
36
  if (!+t) return "0 Bytes";
36
- const o = 1024, s = e < 0 ? 0 : e, a = [
37
+ const s = 1024, a = e < 0 ? 0 : e, o = [
37
38
  "Bytes",
38
39
  "KiB",
39
40
  "MiB",
@@ -43,10 +44,10 @@ function y(t, e = 2) {
43
44
  "EiB",
44
45
  "ZiB",
45
46
  "YiB"
46
- ], n = Math.floor(Math.log(t) / Math.log(o));
47
- return `${parseFloat((t / Math.pow(o, n)).toFixed(s))} ${a[n]}`;
47
+ ], n = Math.floor(Math.log(t) / Math.log(s));
48
+ return `${parseFloat((t / Math.pow(s, n)).toFixed(a))} ${o[n]}`;
48
49
  }
49
- function b(t) {
50
+ function I(t) {
50
51
  if (navigator.clipboard)
51
52
  navigator.clipboard.writeText(t).then(() => {
52
53
  console.log("Text copied to clipboard successfully!");
@@ -58,36 +59,36 @@ function b(t) {
58
59
  e.value = t, e.style.position = "fixed", e.style.top = "0", e.style.left = "0", document.body.appendChild(e), e.select();
59
60
  try {
60
61
  document.execCommand("copy") ? console.log("Text copied to clipboard successfully!") : console.error("Failed to copy text to clipboard.");
61
- } catch (o) {
62
- console.error("Failed to copy text to clipboard:", o);
62
+ } catch (s) {
63
+ console.error("Failed to copy text to clipboard:", s);
63
64
  }
64
65
  document.body.removeChild(e);
65
66
  }
66
67
  }
67
- function C(t, e) {
68
+ function v(t, e) {
68
69
  return t.x < e.x + e.width && t.x > e.x && t.y < e.y + e.height && t.y > e.y;
69
70
  }
70
71
  function T(t, e) {
71
72
  return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
72
73
  }
73
- function c(t, e) {
74
- const o = t.style.getPropertyValue(e);
75
- if (o) {
76
- const s = o.toString();
77
- return s.startsWith("var") ? c(t, s.slice(4, -1)) : s;
74
+ function f(t, e) {
75
+ const s = t.style.getPropertyValue(e);
76
+ if (s) {
77
+ const a = s.toString();
78
+ return a.startsWith("var") ? f(t, a.slice(4, -1)) : a;
78
79
  }
79
80
  }
80
81
  function S(...t) {
81
82
  const e = {};
82
- return Array.from(document.styleSheets).forEach((o) => {
83
- Array.from(o.cssRules).forEach((s) => {
84
- s instanceof CSSStyleRule && s.selectorText === ":root" && t.forEach((a) => {
85
- const n = c(s, a);
86
- n && (e[a] = n);
83
+ return Array.from(document.styleSheets).forEach((s) => {
84
+ Array.from(s.cssRules).forEach((a) => {
85
+ a instanceof CSSStyleRule && a.selectorText === ":root" && t.forEach((o) => {
86
+ const n = f(a, o);
87
+ n && (e[o] = n);
87
88
  });
88
89
  });
89
- }), t.forEach((o) => {
90
- e[o] || console.warn(`variable named ${o} not found`);
90
+ }), t.forEach((s) => {
91
+ e[s] || console.warn(`variable named ${s} not found`);
91
92
  }), e;
92
93
  }
93
94
  function w(t) {
@@ -105,120 +106,134 @@ function O(t) {
105
106
  }, t);
106
107
  });
107
108
  }
108
- function v(t, {
109
+ function P(t, {
109
110
  behaviour: e = "instant",
110
- offset: o = 0,
111
- center: s = !1
111
+ offset: s = 0,
112
+ center: a = !1
112
113
  } = {}) {
113
114
  var n;
114
- const a = i(t);
115
- if (a) {
116
- const r = p(a), l = m(a), u = (typeof o == "number" ? o : ((n = i(o)) == null ? void 0 : n.offsetHeight) || 0) * -1, f = s ? innerHeight / 2 * -1 + a.offsetHeight / 2 : 0;
115
+ const o = u(t);
116
+ if (o) {
117
+ const r = m(o), i = d(o), c = (typeof s == "number" ? s : ((n = u(s)) == null ? void 0 : n.offsetHeight) || 0) * -1, l = a ? innerHeight / 2 * -1 + o.offsetHeight / 2 : 0;
117
118
  r == null || r.scroll({
118
- top: l + u + f,
119
+ top: i + c + l,
119
120
  behavior: e
120
121
  });
121
122
  }
122
123
  }
123
- function P(t, e) {
124
+ function B(t, e) {
124
125
  if (t) {
125
- const s = t.content.cloneNode(!0).firstElementChild;
126
- return s && (e == null || e(s)), s;
126
+ const a = t.content.cloneNode(!0).firstElementChild;
127
+ return a && (e == null || e(a)), a;
127
128
  }
128
129
  return null;
129
130
  }
131
+ function A(t, e, s, a) {
132
+ let o, n = !1, r = 0;
133
+ const i = () => {
134
+ clearInterval(o), a != null && a.restartCounter && (r = 0), n && (o = setInterval(() => {
135
+ s(r++);
136
+ }, e));
137
+ }, c = p.subscribe(t, (l) => {
138
+ n = l.isIntersecting, i();
139
+ });
140
+ return () => {
141
+ c(), clearInterval(o);
142
+ };
143
+ }
130
144
  export {
131
- Pe as calculateDistance,
132
- Ie as calculateDistanceWithRadius,
133
- et as camelToKebab,
134
- tt as capitalize,
135
- pt as changeHistory,
136
- Be as clamp,
137
- qe as cloneDeep,
138
- P as cloneTemplateContent,
139
- Ke as compareObjects,
140
- V as contain,
141
- b as copyTextToClipboard,
142
- N as cover,
143
- pe as createJSONAndSave,
144
- Ce as createStylesheet,
145
- Ae as damp,
146
- xe as debounce,
145
+ Ae as calculateDistance,
146
+ Qe as calculateDistanceWithRadius,
147
+ at as camelToKebab,
148
+ ot as capitalize,
149
+ gt as changeHistory,
150
+ Re as clamp,
151
+ Ge as cloneDeep,
152
+ B as cloneTemplateContent,
153
+ Je as compareObjects,
154
+ F as contain,
155
+ I as copyTextToClipboard,
156
+ j as cover,
157
+ ge as createJSONAndSave,
158
+ Te as createStylesheet,
159
+ De as damp,
160
+ be as debounce,
147
161
  E as decode,
148
- ue as dispatchEvent,
162
+ me as dispatchEvent,
149
163
  T as dotCircleCollision,
150
- C as dotRectCollision,
151
- me as downloadURI,
152
- G as easeInCubic,
153
- J as easeInExpo,
154
- L as easeInOutCubic,
155
- Y as easeInOutExpo,
156
- Z as easeInOutQuad,
157
- X as easeInOutQuart,
158
- _ as easeInOutQuint,
159
- ee as easeInQuad,
160
- te as easeInQuart,
161
- oe as easeInQuint,
162
- se as easeOutCubic,
163
- ae as easeOutExpo,
164
- ne as easeOutQuad,
165
- re as easeOutQuart,
166
- ie as easeOutQuint,
164
+ v as dotRectCollision,
165
+ xe as downloadURI,
166
+ Y as easeInCubic,
167
+ Z as easeInExpo,
168
+ X as easeInOutCubic,
169
+ _ as easeInOutExpo,
170
+ ee as easeInOutQuad,
171
+ te as easeInOutQuart,
172
+ se as easeInOutQuint,
173
+ ae as easeInQuad,
174
+ oe as easeInQuart,
175
+ ne as easeInQuint,
176
+ re as easeOutCubic,
177
+ ie as easeOutExpo,
178
+ ce as easeOutQuad,
179
+ le as easeOutQuart,
180
+ ue as easeOutQuint,
167
181
  w as encode,
168
- q as findParentElement,
169
- p as findScrollParentElement,
170
- z as fixPosition,
171
- y as formatBytes,
172
- ot as generateId,
173
- K as getAllParentElements,
174
- we as getCumulativeOffsetLeft,
175
- m as getCumulativeOffsetTop,
176
- Ee as getCumulativePosition,
177
- i as getElement,
178
- lt as getElementTransitionDurationMS,
179
- ut as getElementTransitionDurationS,
180
- H as getPointerPosition,
182
+ G as findParentElement,
183
+ m as findScrollParentElement,
184
+ H as fixPosition,
185
+ C as formatBytes,
186
+ nt as generateId,
187
+ J as getAllParentElements,
188
+ Ee as getCumulativeOffsetLeft,
189
+ d as getCumulativeOffsetTop,
190
+ Oe as getCumulativePosition,
191
+ u as getElement,
192
+ pt as getElementTransitionDurationMS,
193
+ mt as getElementTransitionDurationS,
194
+ $ as getPointerPosition,
181
195
  S as getRootVariables,
182
- Oe as getStickyOffset,
183
- h as insert,
184
- D as isBrowser,
185
- We as isESClass,
186
- Ge as isNullish,
187
- Je as isObject,
188
- st as isUppercase,
189
- at as kebabToCamel,
190
- Qe as lerp,
191
- ce as linear,
192
- Fe as loopNumber,
193
- Re as mapRange,
194
- F as measureText,
195
- Le as mergeDeep,
196
- Ye as mixin,
197
- U as normalize,
198
- mt as normalizeBase,
199
- je as nullishCoalescing,
200
- Ze as omit,
201
- A as parseAttribute,
202
- Q as parseAttributeValue,
203
- dt as parseSearchParameters,
204
- Xe as pick,
205
- He as preciseNumber,
206
- De as round,
207
- Ue as roundNumberTo,
208
- k as screenToCartesian,
209
- v as scrollToElement,
210
- ye as setupDrag,
211
- g as shiftArray,
212
- Me as smootherstep,
213
- Ve as smoothstep,
214
- nt as snakeToDotted,
215
- xt as splitPath,
216
- Ne as step,
217
- Te as styleToString,
218
- he as throttle,
219
- rt as toPascalCase,
220
- ke as toStep,
221
- it as uncapitalize,
222
- ht as updateSearchParameter,
196
+ Pe as getStickyOffset,
197
+ b as insert,
198
+ N as isBrowser,
199
+ Le as isESClass,
200
+ Ye as isNullish,
201
+ Ze as isObject,
202
+ rt as isUppercase,
203
+ it as kebabToCamel,
204
+ Me as lerp,
205
+ fe as linear,
206
+ Ue as loopNumber,
207
+ Ve as mapRange,
208
+ U as measureText,
209
+ Xe as mergeDeep,
210
+ _e as mixin,
211
+ q as normalize,
212
+ xt as normalizeBase,
213
+ ke as nullishCoalescing,
214
+ et as omit,
215
+ D as parseAttribute,
216
+ M as parseAttributeValue,
217
+ ht as parseSearchParameters,
218
+ tt as pick,
219
+ $e as preciseNumber,
220
+ Ne as round,
221
+ qe as roundNumberTo,
222
+ K as screenToCartesian,
223
+ P as scrollToElement,
224
+ A as setIntervalOnIntersection,
225
+ Ie as setupDrag,
226
+ y as shiftArray,
227
+ ze as smootherstep,
228
+ Fe as smoothstep,
229
+ ct as snakeToDotted,
230
+ bt as splitPath,
231
+ je as step,
232
+ Se as styleToString,
233
+ ye as throttle,
234
+ lt as toPascalCase,
235
+ Ke as toStep,
236
+ ut as uncapitalize,
237
+ yt as updateSearchParameter,
223
238
  O as wait
224
239
  };
@@ -0,0 +1,5 @@
1
+ export type SetIntervalOnIntersectionCallback = (counter: number) => void;
2
+ export interface SetIntervalOnIntersectionOptions {
3
+ restartCounter?: boolean;
4
+ }
5
+ export declare function setIntervalOnIntersection(element: HTMLElement, delay: number, callback: SetIntervalOnIntersectionCallback, options?: SetIntervalOnIntersectionOptions): () => void;
@@ -1,4 +1,8 @@
1
- export declare function splitPath(value: string, base?: string, trailingSlash?: boolean): {
1
+ export interface SplitPathOptions {
2
+ base?: string;
3
+ trailingSlash?: boolean;
4
+ }
5
+ export declare function splitPath(value: string, { base, trailingSlash }?: SplitPathOptions): {
2
6
  leaf: string;
3
7
  pathname: string;
4
8
  parameters: string;
@@ -1 +1 @@
1
- "use strict";var h=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||h("Cannot "+t);var r=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),u=(e,s,t)=>s.has(e)?h("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(d(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-C2J4Q87x.cjs");const b=require("../events-KVanG9sR.cjs"),o=require("../ticker/index.cjs");var i,a,n;class m extends E.SourceElement{constructor(){super(...arguments);u(this,i,0);u(this,a,!1);u(this,n,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>r(this,i)&&c(this,i,t),b.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:r(this,i)}}),this.consumerElement.readyState===4&&(o.ticker.unsubscribe(r(this,n)),r(this,a)&&this.sourceManager.current&&this.consumerElement.play())})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{c(this,a,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():c(this,a,!0)),o.ticker.subscribe(r(this,n))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),o.ticker.unsubscribe(r(this,n)),c(this,i,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}i=new WeakMap,a=new WeakMap,n=new WeakMap;customElements.get("e-video")||customElements.define("e-video",m);exports.VideoElement=m;
1
+ "use strict";var d=e=>{throw TypeError(e)};var h=(e,s,t)=>s.has(e)||d("Cannot "+t);var r=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),u=(e,s,t)=>s.has(e)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(h(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const b=require("../index-Cqw2NKev.cjs"),p=require("../events-KVanG9sR.cjs"),o=require("../ticker/index.cjs");var i,n,a;class m extends E.SourceElement{constructor(){super(...arguments);u(this,i,0);u(this,n,!1);u(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>r(this,i)&&c(this,i,t),p.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:r(this,i)}}),this.consumerElement.readyState===4&&(o.ticker.unsubscribe(r(this,a)),r(this,n)&&this.sourceManager.current&&this.consumerElement.play())})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{c(this,n,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():c(this,n,!0)),o.ticker.subscribe(r(this,a))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),o.ticker.unsubscribe(r(this,a)),c(this,i,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}i=new WeakMap,n=new WeakMap,a=new WeakMap;b.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",m);exports.VideoElement=m;
@@ -5,11 +5,12 @@ var l = (e, s, t) => s.has(e) || h("Cannot " + t);
5
5
  var r = (e, s, t) => (l(e, s, "read from private field"), t ? t.call(e) : s.get(e)), o = (e, s, t) => s.has(e) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, m) => (l(e, s, "write to private field"), m ? m.call(e, t) : s.set(e, t), t);
6
6
  import { SourceElement as d } from "../source/index.js";
7
7
  import "../window-resizer/index.js";
8
- import "../Store-Cm3LPXlx.js";
9
- import { d as p } from "../events-CsVF98U6.js";
8
+ import "../Store-D2xCXENW.js";
9
+ import { i as p } from "../index-euf5anj6.js";
10
+ import { d as E } from "../events-CsVF98U6.js";
10
11
  import { ticker as u } from "../ticker/index.js";
11
12
  var i, a, n;
12
- class E extends d {
13
+ class f extends d {
13
14
  constructor() {
14
15
  super(...arguments);
15
16
  o(this, i, 0);
@@ -17,7 +18,7 @@ class E extends d {
17
18
  o(this, n, () => {
18
19
  this.classList.add(`state-${this.consumerElement.readyState}`);
19
20
  const t = this.consumerElement.readyState / 4;
20
- t > r(this, i) && c(this, i, t), p(this, "videoReadyStateChange", {
21
+ t > r(this, i) && c(this, i, t), E(this, "videoReadyStateChange", {
21
22
  detail: {
22
23
  readyState: this.consumerElement.readyState,
23
24
  progress: r(this, i)
@@ -49,7 +50,7 @@ class E extends d {
49
50
  }
50
51
  }
51
52
  i = new WeakMap(), a = new WeakMap(), n = new WeakMap();
52
- customElements.get("e-video") || customElements.define("e-video", E);
53
+ p && !customElements.get("e-video") && customElements.define("e-video", f);
53
54
  export {
54
- E as VideoElement
55
+ f as VideoElement
55
56
  };
@@ -1 +1 @@
1
- "use strict";var w=e=>{throw TypeError(e)};var f=(e,i,s)=>i.has(e)||w("Cannot "+s);var t=(e,i,s)=>(f(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?w("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(f(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../notifier/index.cjs"),l=require("../browser-CpzFX2xg.cjs"),R=require("../function-MthRj-GJ.cjs");var r,n,d;class h extends z.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const b=super.subscribe(s,o);return t(this,r)||s(),b}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
1
+ "use strict";var f=e=>{throw TypeError(e)};var w=(e,i,s)=>i.has(e)||f("Cannot "+s);var t=(e,i,s)=>(w(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?f("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(w(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-Cqw2NKev.cjs"),R=require("../function-MthRj-GJ.cjs");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const z=super.subscribe(s,o);return t(this,r)||s(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
@@ -4,7 +4,7 @@ var h = (s) => {
4
4
  var c = (s, e, i) => e.has(s) || h("Cannot " + i);
5
5
  var t = (s, e, i) => (c(s, e, "read from private field"), i ? i.call(s) : e.get(s)), u = (s, e, i) => e.has(s) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, i), f = (s, e, i, n) => (c(s, e, "write to private field"), n ? n.call(s, i) : e.set(s, i), i);
6
6
  import { Notifier as m } from "../notifier/index.js";
7
- import { i as p } from "../browser-0zX67oeU.js";
7
+ import { i as p } from "../index-euf5anj6.js";
8
8
  import { d as z } from "../function-C10DGppn.js";
9
9
  var r, o, d;
10
10
  class b extends m {
@@ -1 +1 @@
1
- "use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),I=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-C2J4Q87x.cjs");const L=require("../events-KVanG9sR.cjs"),T=require("../string-DhgS_iFl.cjs");var i,c,n,y,l,f,b,R,p,w;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),I(this,p,w).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+T.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,L.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?I(this,p,w).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,w=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;customElements.get("e-youtube")||customElements.define("e-youtube",m);exports.YouTubeElement=m;
1
+ "use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const L=require("../index-Cqw2NKev.cjs"),T=require("../events-KVanG9sR.cjs"),_=require("../string-DhgS_iFl.cjs");var i,c,n,y,l,f,b,R,p,I;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),w(this,p,I).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+_.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,T.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?w(this,p,I).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,I=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;L.isBrowser&&!customElements.get("e-youtube")&&customElements.define("e-youtube",m);exports.YouTubeElement=m;
@@ -5,10 +5,11 @@ var b = (s, r, t) => r.has(s) || L("Cannot " + t);
5
5
  var e = (s, r, t) => (b(s, r, "read from private field"), t ? t.call(s) : r.get(s)), o = (s, r, t) => r.has(s) ? L("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), u = (s, r, t, a) => (b(s, r, "write to private field"), a ? a.call(s, t) : r.set(s, t), t), E = (s, r, t) => (b(s, r, "access private method"), t);
6
6
  import { SourceElement as g } from "../source/index.js";
7
7
  import "../window-resizer/index.js";
8
- import "../Store-Cm3LPXlx.js";
9
- import { d as v } from "../events-CsVF98U6.js";
10
- import { g as T } from "../string-f0Dnk0L1.js";
11
- var i, c, n, p, l, m, f, R, y, w;
8
+ import "../Store-D2xCXENW.js";
9
+ import { i as v } from "../index-euf5anj6.js";
10
+ import { d as T } from "../events-CsVF98U6.js";
11
+ import { g as V } from "../string-f0Dnk0L1.js";
12
+ var i, c, n, p, l, m, f, R, y, I;
12
13
  const d = class d extends g {
13
14
  constructor() {
14
15
  super();
@@ -31,7 +32,7 @@ const d = class d extends g {
31
32
  }));
32
33
  });
33
34
  o(this, m, () => {
34
- u(this, p, !0), E(this, y, w).call(this);
35
+ u(this, p, !0), E(this, y, I).call(this);
35
36
  });
36
37
  o(this, f, (t) => {
37
38
  var a, h;
@@ -39,8 +40,8 @@ const d = class d extends g {
39
40
  });
40
41
  o(this, R, () => {
41
42
  });
42
- u(this, c, "yt-" + T(10)), d.__apiReady || (window.onYouTubeIframeAPIReady = () => {
43
- d.__apiReady = !0, v(window, "youTubeIframeAPIReady");
43
+ u(this, c, "yt-" + V(10)), d.__apiReady || (window.onYouTubeIframeAPIReady = () => {
44
+ d.__apiReady = !0, T(window, "youTubeIframeAPIReady");
44
45
  }), this.addEventListener("sourceCapture", () => {
45
46
  this.hasAttribute("capture-autoplay") && (e(this, p) ? e(this, i).playVideo() : u(this, n, !0));
46
47
  }), this.addEventListener("sourceRelease", () => {
@@ -63,19 +64,19 @@ const d = class d extends g {
63
64
  const A = document.getElementsByTagName("script")[0];
64
65
  (a = A.parentNode) == null || a.insertBefore(h, A);
65
66
  }
66
- e(this, i) ? E(this, y, w).call(this) : d.__apiReady ? e(this, l).call(this) : addEventListener("youTubeIframeAPIReady", e(this, l));
67
+ e(this, i) ? E(this, y, I).call(this) : d.__apiReady ? e(this, l).call(this) : addEventListener("youTubeIframeAPIReady", e(this, l));
67
68
  } else e(this, i) && e(this, i).stopVideo();
68
69
  }
69
70
  disconnectedCallback() {
70
71
  super.disconnectedCallback(), e(this, i) && e(this, i).destroy(), removeEventListener("youTubeIframeAPIReady", e(this, l));
71
72
  }
72
73
  };
73
- i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(), w = function() {
74
+ i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(), I = function() {
74
75
  var t, a;
75
76
  this.currentURL && (this.currentURL.startsWith("http") ? e(this, i).loadVideoByUrl(this.currentURL) : e(this, i).loadVideoById(this.currentURL)), e(this, n) ? e(this, i).playVideo() : e(this, i).stopVideo(), u(this, n, !1), (a = (t = this.consumerElement).onload) == null || a.call(t, new Event("load"));
76
77
  }, d.__apiReady = !1;
77
- let I = d;
78
- customElements.get("e-youtube") || customElements.define("e-youtube", I);
78
+ let w = d;
79
+ v && !customElements.get("e-youtube") && customElements.define("e-youtube", w);
79
80
  export {
80
- I as YouTubeElement
81
+ w as YouTubeElement
81
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -1 +0,0 @@
1
- "use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("Cannot "+t);var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-C2J4Q87x.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-BANSrI_m.cjs"),P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,y,x;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f);a(this,b,N.TICK_ORDER.ANIMATION);a(this,A);a(this,c,new I.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,P.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,P.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),M(this,q,y).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,y=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=O;