aptechka 0.7.11 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/lib/Animation-CwgyQH5y.js +110 -0
  2. package/lib/Animation-DBfrekcV.cjs +1 -0
  3. package/lib/{Composed-Dx2hs-va.cjs → Composed-CIXY_HwN.cjs} +1 -1
  4. package/lib/{Composed-DmLYTh1b.js → Composed-CgnR5oah.js} +1 -1
  5. package/lib/Damped-DmcKRSST.cjs +1 -0
  6. package/lib/Damped-vepIw9Ku.js +57 -0
  7. package/lib/{Derived-DlCvc0xQ.js → Derived-B4CxuebG.js} +1 -1
  8. package/lib/{Derived-a6MDQEPY.cjs → Derived-Xb4EzLLO.cjs} +1 -1
  9. package/lib/{SourceManager-kxr5eUyL.cjs → SourceManager-Ce49-NQe.cjs} +1 -1
  10. package/lib/{SourceManager-Bz329f90.js → SourceManager-U3KHUnNl.js} +1 -1
  11. package/lib/Store-CIs_NjhF.cjs +1 -0
  12. package/lib/Store-Dqcu1DnE.js +152 -0
  13. package/lib/{Tweened-B_mclQ61.cjs → Tweened-5Bj7ht3x.cjs} +1 -1
  14. package/lib/{Tweened-NE8M9onF.js → Tweened-DPi9pZ8Q.js} +1 -1
  15. package/lib/{Viewport-D9IL7kUQ.js → Viewport-4ZTWxLo_.js} +1 -1
  16. package/lib/{Viewport-CJeKnL5V.cjs → Viewport-CIBlSU2t.cjs} +1 -1
  17. package/lib/animation/Animation.d.ts +3 -18
  18. package/lib/animation/Damped.d.ts +2 -18
  19. package/lib/animation/Tweened.d.ts +2 -2
  20. package/lib/animation/index.cjs +1 -1
  21. package/lib/animation/index.d.ts +2 -2
  22. package/lib/animation/index.js +3 -3
  23. package/lib/attribute/index.cjs +1 -1
  24. package/lib/attribute/index.d.ts +3 -3
  25. package/lib/attribute/index.js +1 -1
  26. package/lib/canvas/index.cjs +1 -1
  27. package/lib/canvas/index.d.ts +1 -0
  28. package/lib/canvas/index.js +63 -54
  29. package/lib/checkbox/index.cjs +1 -1
  30. package/lib/checkbox/index.js +3 -3
  31. package/lib/class-linked-status/index.cjs +1 -1
  32. package/lib/class-linked-status/index.js +1 -1
  33. package/lib/controls/index.cjs +1 -1
  34. package/lib/controls/index.js +2 -2
  35. package/lib/{createStylesheet-p23sZ7Ey.cjs → createStylesheet-BX1RVTfW.cjs} +1 -1
  36. package/lib/{createStylesheet-CR_yi5tp.js → createStylesheet-CgWN4UhW.js} +1 -1
  37. package/lib/css-property/index.cjs +1 -1
  38. package/lib/css-property/index.d.ts +3 -3
  39. package/lib/css-property/index.js +1 -1
  40. package/lib/dev/index.cjs +1 -1
  41. package/lib/dev/index.js +1 -1
  42. package/lib/device/Viewport.d.ts +1 -1
  43. package/lib/device/index.cjs +1 -1
  44. package/lib/device/index.js +1 -1
  45. package/lib/element-constructor/ElementConstructor.d.ts +1 -1
  46. package/lib/element-constructor/index.cjs +1 -1
  47. package/lib/element-constructor/index.js +113 -114
  48. package/lib/en3/helpers/index.cjs +1 -1
  49. package/lib/en3/helpers/index.js +2 -2
  50. package/lib/en3/misc/En3SourceManager.d.ts +2 -2
  51. package/lib/en3/misc/index.cjs +1 -1
  52. package/lib/en3/misc/index.js +2 -2
  53. package/lib/en3/objects/fluid/En3Fluid.d.ts +5 -5
  54. package/lib/en3/objects/fluid/Simulation.d.ts +10 -10
  55. package/lib/image/index.cjs +1 -1
  56. package/lib/image/index.js +1 -1
  57. package/lib/{index-CoOTQk9H.js → index-C2xWAQFq.js} +3 -3
  58. package/lib/{index-DVUk3T-y.cjs → index-DfSyc2GT.cjs} +1 -1
  59. package/lib/ladder/index.cjs +1 -1
  60. package/lib/ladder/index.js +1 -1
  61. package/lib/layout-box/index.d.ts +2 -2
  62. package/lib/media/index.cjs +1 -1
  63. package/lib/media/index.js +1 -1
  64. package/lib/modal/index.cjs +1 -1
  65. package/lib/modal/index.js +7 -7
  66. package/lib/pointer/index.cjs +1 -1
  67. package/lib/pointer/index.js +2 -2
  68. package/lib/popover/PopoverElement.d.ts +1 -1
  69. package/lib/popover/index.cjs +1 -1
  70. package/lib/popover/index.js +2 -2
  71. package/lib/router/index.cjs +1 -1
  72. package/lib/router/index.js +73 -76
  73. package/lib/scroll/ScrollElement.d.ts +1 -1
  74. package/lib/scroll/ScrollSegmentElement.d.ts +6 -6
  75. package/lib/scroll/index.cjs +1 -1
  76. package/lib/scroll/index.js +7 -7
  77. package/lib/select/index.cjs +1 -1
  78. package/lib/select/index.js +1 -1
  79. package/lib/sequence/index.cjs +1 -1
  80. package/lib/sequence/index.js +1 -1
  81. package/lib/source/index.cjs +1 -1
  82. package/lib/source/index.js +2 -2
  83. package/lib/store/Derived.d.ts +1 -1
  84. package/lib/store/Resource.d.ts +1 -4
  85. package/lib/store/Store.d.ts +10 -10
  86. package/lib/store/StoreRegistry.d.ts +1 -1
  87. package/lib/store/index.cjs +1 -1
  88. package/lib/store/index.d.ts +1 -3
  89. package/lib/store/index.js +38 -68
  90. package/lib/tags-C-6uXIAT.js +848 -0
  91. package/lib/tags-yvEoM921.cjs +1 -0
  92. package/lib/test/starting-style/index.d.ts +1 -0
  93. package/lib/theme/index.cjs +1 -1
  94. package/lib/theme/index.js +2 -2
  95. package/lib/tweaker/TweakerFieldElement.d.ts +3 -3
  96. package/lib/tweaker/TweakerFolderElement.d.ts +4 -4
  97. package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -1
  98. package/lib/tweaker/index.cjs +2 -2
  99. package/lib/tweaker/index.js +168 -162
  100. package/lib/tweaker/tweakerManagerConstructors.d.ts +1 -1
  101. package/lib/video/index.cjs +1 -1
  102. package/lib/video/index.js +1 -1
  103. package/package.json +1 -65
  104. package/lib/Animation-6Na1MCtM.cjs +0 -1
  105. package/lib/Animation-CELiTw3n.js +0 -132
  106. package/lib/Damped-Mx_FNNVz.js +0 -63
  107. package/lib/Damped-loFiBsBy.cjs +0 -1
  108. package/lib/ElementConstructor-CAZ2ra8m.cjs +0 -1
  109. package/lib/ElementConstructor-OYlPJf2L.js +0 -366
  110. package/lib/Resource-D3TQormz.cjs +0 -1
  111. package/lib/Resource-DIcoALGo.js +0 -64
  112. package/lib/Store-6s0YXK4o.cjs +0 -1
  113. package/lib/Store-BI2xxXOA.js +0 -156
  114. package/lib/_createStore-Cf1MyeHa.cjs +0 -1
  115. package/lib/_createStore-Ck9bHolX.js +0 -12
  116. package/lib/globals-DMjysUXI.js +0 -8
  117. package/lib/globals-bYKki-b9.cjs +0 -1
  118. package/lib/instantiate-Cx-JmH6m.cjs +0 -1
  119. package/lib/instantiate-D87JFF1W.js +0 -125
  120. package/lib/jsx/ComponentElement.d.ts +0 -18
  121. package/lib/jsx/globals.d.ts +0 -13
  122. package/lib/jsx/h.d.ts +0 -7
  123. package/lib/jsx/hooks/basic/_createStore.d.ts +0 -4
  124. package/lib/jsx/hooks/basic/attachInternals.d.ts +0 -1
  125. package/lib/jsx/hooks/basic/attachShadow.d.ts +0 -1
  126. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +0 -3
  127. package/lib/jsx/hooks/basic/createContext.d.ts +0 -2
  128. package/lib/jsx/hooks/basic/onConnect.d.ts +0 -3
  129. package/lib/jsx/hooks/basic/onDisconnect.d.ts +0 -3
  130. package/lib/jsx/hooks/onAnimationFrame.cjs +0 -1
  131. package/lib/jsx/hooks/onAnimationFrame.d.ts +0 -6
  132. package/lib/jsx/hooks/onAnimationFrame.js +0 -22
  133. package/lib/jsx/hooks/onElementResize.cjs +0 -1
  134. package/lib/jsx/hooks/onElementResize.d.ts +0 -5
  135. package/lib/jsx/hooks/onElementResize.js +0 -11
  136. package/lib/jsx/hooks/onIntersection.cjs +0 -1
  137. package/lib/jsx/hooks/onIntersection.d.ts +0 -5
  138. package/lib/jsx/hooks/onIntersection.js +0 -11
  139. package/lib/jsx/hooks/onWindowResize.cjs +0 -1
  140. package/lib/jsx/hooks/onWindowResize.d.ts +0 -3
  141. package/lib/jsx/hooks/onWindowResize.js +0 -8
  142. package/lib/jsx/hooks/store/createArrayStore.d.ts +0 -3
  143. package/lib/jsx/hooks/store/createComposed.d.ts +0 -3
  144. package/lib/jsx/hooks/store/createDerived.d.ts +0 -3
  145. package/lib/jsx/hooks/store/createDerivedArray.d.ts +0 -3
  146. package/lib/jsx/hooks/store/createDerivedComponent.d.ts +0 -3
  147. package/lib/jsx/hooks/store/createDerivedComponents.d.ts +0 -3
  148. package/lib/jsx/hooks/store/createResource.d.ts +0 -3
  149. package/lib/jsx/hooks/store/createStore.d.ts +0 -3
  150. package/lib/jsx/hooks/store/index.cjs +0 -1
  151. package/lib/jsx/hooks/store/index.d.ts +0 -7
  152. package/lib/jsx/hooks/store/index.js +0 -49
  153. package/lib/jsx/hooks/watchAttribute.cjs +0 -1
  154. package/lib/jsx/hooks/watchAttribute.d.ts +0 -6
  155. package/lib/jsx/hooks/watchAttribute.js +0 -17
  156. package/lib/jsx/hooks/watchCSSProperty.cjs +0 -1
  157. package/lib/jsx/hooks/watchCSSProperty.d.ts +0 -7
  158. package/lib/jsx/hooks/watchCSSProperty.js +0 -17
  159. package/lib/jsx/index.cjs +0 -1
  160. package/lib/jsx/index.d.ts +0 -13
  161. package/lib/jsx/index.js +0 -91
  162. package/lib/jsx/instantiate.d.ts +0 -5
  163. package/lib/jsx/register.d.ts +0 -1
  164. package/lib/jsx/render.d.ts +0 -6
  165. package/lib/jsx/type.d.ts +0 -188
  166. package/lib/onConnect-DGP866cj.cjs +0 -1
  167. package/lib/onConnect-y5DrxJ9P.js +0 -7
  168. package/lib/store/ArrayStore.d.ts +0 -21
  169. package/lib/store/DerivedArray.d.ts +0 -8
  170. package/lib/tags-BqJKcIve.js +0 -485
  171. package/lib/tags-ld5jemJw.cjs +0 -1
@@ -0,0 +1,110 @@
1
+ var S = (e, r, t) => {
2
+ if (!r.has(e))
3
+ throw TypeError("Cannot " + t);
4
+ };
5
+ var i = (e, r, t) => (S(e, r, "read from private field"), t ? t.call(e) : r.get(e)), a = (e, r, t) => {
6
+ if (r.has(e))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ r instanceof WeakSet ? r.add(e) : r.set(e, t);
9
+ }, h = (e, r, t, u) => (S(e, r, "write to private field"), u ? u.call(e, t) : r.set(e, t), t);
10
+ var I = (e, r, t) => (S(e, r, "access private method"), t);
11
+ import { S as P } from "./Store-Dqcu1DnE.js";
12
+ import { c as R } from "./math-BOBiC4TN.js";
13
+ import { p as q, n as F } from "./polyfills-X6KXuHg-.js";
14
+ import { ticker as z } from "./ticker/index.js";
15
+ import { TICK_ORDER as N } from "./order/index.js";
16
+ var g, f, d, l, b, s, n, m, c, A, M, O, x;
17
+ class E extends P {
18
+ constructor(t, u) {
19
+ super(t || 0, u);
20
+ a(this, M);
21
+ a(this, g, void 0);
22
+ a(this, f, N.ANIMATION);
23
+ a(this, d, void 0);
24
+ a(this, l, new P(!1));
25
+ a(this, b, 0);
26
+ a(this, s, 0);
27
+ a(this, n, -1 / 0);
28
+ a(this, m, 1 / 0);
29
+ a(this, c, 0);
30
+ a(this, A, null);
31
+ a(this, x, (t) => {
32
+ this.handleAnimationFrame(t);
33
+ });
34
+ h(this, s, this.current);
35
+ }
36
+ get direction() {
37
+ return i(this, b);
38
+ }
39
+ get target() {
40
+ return i(this, s);
41
+ }
42
+ get min() {
43
+ return i(this, n);
44
+ }
45
+ set min(t) {
46
+ h(this, n, t), this.set(i(this, s), {
47
+ equalize: !0
48
+ });
49
+ }
50
+ get max() {
51
+ return i(this, m);
52
+ }
53
+ set max(t) {
54
+ h(this, m, t), this.set(i(this, s), {
55
+ equalize: !0
56
+ });
57
+ }
58
+ get from() {
59
+ return i(this, c);
60
+ }
61
+ get isRunning() {
62
+ return i(this, l);
63
+ }
64
+ get delta() {
65
+ return Math.abs(i(this, s) - i(this, c));
66
+ }
67
+ get deltaProgress() {
68
+ return this.delta ? q(Math.abs(this.current - i(this, c)) / this.delta, 6) : 0;
69
+ }
70
+ get distance() {
71
+ return Math.abs(i(this, m) - i(this, n));
72
+ }
73
+ get distanceProgress() {
74
+ return this.distance ? q(Math.abs(this.current - i(this, n)) / this.distance, 6) : 0;
75
+ }
76
+ set(t, u) {
77
+ (i(this, s) !== t || u != null && u.restart) && (h(this, A, t), this.updateOptions(u), h(this, A, null), i(this, s) !== this.current && this.start());
78
+ }
79
+ shift(t, u) {
80
+ this.set(i(this, s) + t, u);
81
+ }
82
+ reset() {
83
+ super.reset(), this.set(this.initial, { equalize: !0 });
84
+ }
85
+ close() {
86
+ super.close(), this.reset(), this.unlistenAnimationFrame();
87
+ }
88
+ listenAnimationFrame() {
89
+ i(this, l).current || (i(this, l).current = !0, z.subscribe(i(this, x), {
90
+ maxFPS: i(this, g),
91
+ order: i(this, f),
92
+ culling: i(this, d)
93
+ }));
94
+ }
95
+ unlistenAnimationFrame() {
96
+ i(this, l).current && (i(this, l).current = !1, z.unsubscribe(i(this, x)));
97
+ }
98
+ updateOptions(t) {
99
+ h(this, g, F(t == null ? void 0 : t.maxFPS, i(this, g))), h(this, f, F(t == null ? void 0 : t.order, i(this, f))), h(this, d, F(t == null ? void 0 : t.culling, i(this, d))), h(this, n, F(t == null ? void 0 : t.min, i(this, n))), h(this, m, F(t == null ? void 0 : t.max, i(this, m))), I(this, M, O).call(this, i(this, A) || i(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = i(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
100
+ }
101
+ start() {
102
+ this.listenAnimationFrame();
103
+ }
104
+ }
105
+ g = new WeakMap(), f = new WeakMap(), d = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), n = new WeakMap(), m = new WeakMap(), c = new WeakMap(), A = new WeakMap(), M = new WeakSet(), O = function(t) {
106
+ h(this, b, Math.sign(t - i(this, s))), h(this, s, R(t, i(this, n), i(this, m))), h(this, c, this.current);
107
+ }, x = new WeakMap();
108
+ export {
109
+ E as A
110
+ };
@@ -0,0 +1 @@
1
+ "use strict";var S=(i,s,t)=>{if(!s.has(i))throw TypeError("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)=>{if(s.has(i))throw TypeError("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);var C=(i,s,t)=>(S(i,s,"access private method"),t);const M=require("./Store-CIs_NjhF.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),I=require("./ticker/index.cjs"),N=require("./order/index.cjs");var d,f,A,c,b,r,u,l,g,F,q,P,x;class O extends M.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,d,void 0);a(this,f,N.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new M.Store(!1));a(this,b,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,F,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,b)}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,F,t),this.updateOptions(n),h(this,F,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,I.ticker.subscribe(e(this,x),{maxFPS:e(this,d),order:e(this,f),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,I.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,d,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),h(this,f,m.nullishCoalescing(t==null?void 0:t.order,e(this,f))),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))),C(this,q,P).call(this,e(this,F)||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()}}d=new WeakMap,f=new WeakMap,A=new WeakMap,c=new WeakMap,b=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,F=new WeakMap,q=new WeakSet,P=function(t){h(this,b,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;
@@ -1 +1 @@
1
- "use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-6s0YXK4o.cjs");var o;class l extends d.Store{constructor(r,u,n){super(null,n);t(this,o,[]);const i=b.debounce(()=>{this.current=u()},0);r.forEach(h=>{c(this,o).push(h.subscribe(()=>{i()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=l;
1
+ "use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-CIs_NjhF.cjs");var o;class l extends d.Store{constructor(r,u,n){super(null,n);t(this,o,[]);const i=b.debounce(()=>{this.current=u()},0);r.forEach(h=>{c(this,o).push(h.subscribe(()=>{i()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=l;
@@ -8,7 +8,7 @@ var t = (s, r, o) => (n(s, r, "read from private field"), o ? o.call(s) : r.get(
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, o);
9
9
  };
10
10
  import { d as h } from "./function-C10DGppn.js";
11
- import { S as b } from "./Store-BI2xxXOA.js";
11
+ import { S as b } from "./Store-Dqcu1DnE.js";
12
12
  var e;
13
13
  class f extends b {
14
14
  constructor(o, u, p) {
@@ -0,0 +1 @@
1
+ "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var d=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,g=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&d(e,s,t[s]);if(l)for(var s of l(t))O.call(t,s)&&d(e,s,t[s]);return e},f=(e,t)=>b(e,y(t));var p=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)};var a=(e,t,s)=>(p(e,t,"read from private field"),s?s.call(e):t.get(e)),u=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},n=(e,t,s,r)=>(p(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);const v=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-DBfrekcV.cjs");var i,h;class B extends w.Animation{constructor(s,r){super(s,r);u(this,i,void 0);u(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(f(g({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,q=Math.abs(r-this.target);n(this,h,q/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const A=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+A/this.mass*m),this.current+=a(this,i)*m}else this.current=v.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=B;
@@ -0,0 +1,57 @@
1
+ var b = Object.defineProperty, v = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
+ var d = Object.getOwnPropertySymbols;
4
+ var x = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
5
+ var f = (e, s, t) => s in e ? b(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, g = (e, s) => {
6
+ for (var t in s || (s = {}))
7
+ x.call(s, t) && f(e, t, s[t]);
8
+ if (d)
9
+ for (var t of d(s))
10
+ y.call(s, t) && f(e, t, s[t]);
11
+ return e;
12
+ }, l = (e, s) => v(e, w(s));
13
+ var p = (e, s, t) => {
14
+ if (!s.has(e))
15
+ throw TypeError("Cannot " + t);
16
+ };
17
+ var a = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(e)), c = (e, s, t) => {
18
+ if (s.has(e))
19
+ throw TypeError("Cannot add the same private member more than once");
20
+ s instanceof WeakSet ? s.add(e) : s.set(e, t);
21
+ }, m = (e, s, t, r) => (p(e, s, "write to private field"), r ? r.call(e, t) : s.set(e, t), t);
22
+ import { d as B } from "./math-BOBiC4TN.js";
23
+ import { n as u, p as A } from "./polyfills-X6KXuHg-.js";
24
+ import { A as D } from "./Animation-CwgyQH5y.js";
25
+ var i, h;
26
+ class N extends D {
27
+ constructor(t, r) {
28
+ super(t, r);
29
+ c(this, i, void 0);
30
+ c(this, h, void 0);
31
+ this.damping = 20, this.stiffness = 0, this.mass = 0, m(this, i, 0), m(this, h, 0), this.updateOptions(l(g({}, r), { equalize: !0 }));
32
+ }
33
+ get velocity() {
34
+ return a(this, i);
35
+ }
36
+ get speed() {
37
+ return a(this, h);
38
+ }
39
+ updateOptions(t) {
40
+ this.damping = u(t == null ? void 0 : t.damping, this.damping), this.mass = u(t == null ? void 0 : t.mass, this.mass), this.stiffness = u(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
41
+ }
42
+ handleAnimationFrame(t) {
43
+ A(this.current, 4) === A(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
44
+ const r = this.current, F = Math.abs(r - this.target);
45
+ m(this, h, F / t.timeBetweenFrames);
46
+ const n = t.timeBetweenFrames / 1e3;
47
+ if (this.mass || this.stiffness) {
48
+ const O = (this.target - this.current) * this.stiffness - a(this, i) * this.damping;
49
+ m(this, i, a(this, i) + O / this.mass * n), this.current += a(this, i) * n;
50
+ } else
51
+ this.current = B(this.current, this.target, this.damping, n);
52
+ }
53
+ }
54
+ i = new WeakMap(), h = new WeakMap();
55
+ export {
56
+ N as D
57
+ };
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
9
  }, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
10
- import { S as p } from "./Store-BI2xxXOA.js";
10
+ import { S as p } from "./Store-Dqcu1DnE.js";
11
11
  var t;
12
12
  class d extends p {
13
13
  constructor(e, c, l) {
@@ -1 +1 @@
1
- "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-6s0YXK4o.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
1
+ "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-CIs_NjhF.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
@@ -1 +1 @@
1
- "use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-6s0YXK4o.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
1
+ "use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-CIs_NjhF.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
@@ -9,7 +9,7 @@ var r = (a, e, t) => ($(a, e, "read from private field"), t ? t.call(a) : e.get(
9
9
  }, i = (a, e, t, n) => ($(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
10
10
  import { RESIZE_ORDER as A } from "./order/index.js";
11
11
  import { windowResizer as k } from "./window-resizer/index.js";
12
- import { S as B } from "./Store-BI2xxXOA.js";
12
+ import { S as B } from "./Store-Dqcu1DnE.js";
13
13
  var y, g, q, u, c, d, w;
14
14
  class T {
15
15
  constructor(e) {
@@ -0,0 +1 @@
1
+ "use strict";var N=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(N(i,t,"access private method"),e);const q=require("./browser-CpzFX2xg.cjs");var f,d,S;class z{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");q.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,f)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?a(this,f,JSON.parse(t)):a(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var c,v;if(!Array.isArray((c=r(this,f))==null?void 0:c.stores))return t;const e=t.passport;if(e){const A=(v=r(this,f))==null?void 0:v.stores.find(j=>j.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(c=>c.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap,d=new WeakMap,S=new WeakMap;const k=new z;var g,h,m,n,o,u,y,b,w,E;class C{constructor(t,e){s(this,w);s(this,g,void 0);s(this,h,void 0);s(this,m,void 0);s(this,n,new Set);s(this,o,void 0);s(this,u,void 0);s(this,y,void 0);s(this,b,void 0);a(this,g,e==null?void 0:e.passport),a(this,h,{initial:t,previous:t,current:t}),a(this,m,(e==null?void 0:e.equalityCheck)||((c,v)=>c===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),a(this,y,(e==null?void 0:e.notifyAndClose)||!1),a(this,b,(e==null?void 0:e.invisible)||!1),a(this,o,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,g)&&k.updateStore(this)}get passport(){return r(this,g)}get initial(){return r(this,h).initial}get previous(){return r(this,h).previous}get current(){return r(this,h).current}set current(t){if(!r(this,m).call(this,r(this,h).current,t)){if(r(this,h).previous=r(this,h).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,h).current=t,p(this,w,E).call(this),r(this,y)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||a(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,c;(e=r(this,u))==null||e.delete(t),(c=r(this,u))!=null&&c.size||a(this,u,void 0)}subscribe(t){return!r(this,b)&&!r(this,n).size&&M(this),r(this,n).add(t),r(this,o)||t(r(this,h)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||R(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),R(this)}}g=new WeakMap,h=new WeakMap,m=new WeakMap,n=new WeakMap,o=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakSet,E=function(){for(const t of r(this,n))t(r(this,h))};const l=new C([],{invisible:!0});function M(i){l.current.includes(i)||(l.current=[...l.current,i])}function R(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=C;exports.activeStores=l;exports.storeRegistry=k;
@@ -0,0 +1,152 @@
1
+ var N = (i, t, e) => {
2
+ if (!t.has(i))
3
+ throw TypeError("Cannot " + e);
4
+ };
5
+ var r = (i, t, e) => (N(i, t, "read from private field"), e ? e.call(i) : t.get(i)), s = (i, t, e) => {
6
+ if (t.has(i))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ t instanceof WeakSet ? t.add(i) : t.set(i, e);
9
+ }, a = (i, t, e, c) => (N(i, t, "write to private field"), c ? c.call(i, e) : t.set(i, e), e);
10
+ var A = (i, t, e) => (N(i, t, "access private method"), e);
11
+ import { i as R } from "./browser-0zX67oeU.js";
12
+ var f, d, S;
13
+ class j {
14
+ constructor() {
15
+ s(this, f, null);
16
+ s(this, d, "");
17
+ s(this, S, "");
18
+ R && (a(this, d, document.documentElement.getAttribute("data-project") || "unnamed"), a(this, S, r(this, d) ? r(this, d) + "-store-registry" : "store-registry"));
19
+ }
20
+ get projectName() {
21
+ return r(this, d);
22
+ }
23
+ get localStoreRegistryName() {
24
+ return r(this, S);
25
+ }
26
+ get loadedState() {
27
+ return r(this, f);
28
+ }
29
+ saveState() {
30
+ const t = this.getState(), e = JSON.stringify(t);
31
+ localStorage.setItem(r(this, S), e);
32
+ }
33
+ loadState(t = localStorage.getItem(
34
+ r(this, S)
35
+ )) {
36
+ t && (typeof t == "string" ? a(this, f, JSON.parse(t)) : a(this, f, t), l.current.forEach((e) => {
37
+ e.passport && this.updateStore(e);
38
+ }));
39
+ }
40
+ resetState() {
41
+ l.current.forEach((t) => {
42
+ t.passport && t.reset();
43
+ }), this.saveState();
44
+ }
45
+ updateStore(t) {
46
+ var c, v;
47
+ if (!Array.isArray((c = r(this, f)) == null ? void 0 : c.stores))
48
+ return t;
49
+ const e = t.passport;
50
+ if (e) {
51
+ const p = (v = r(this, f)) == null ? void 0 : v.stores.find(
52
+ (E) => E.name === e.name
53
+ );
54
+ p && (t.current = p.value);
55
+ }
56
+ return t;
57
+ }
58
+ getState() {
59
+ const t = {
60
+ stores: []
61
+ };
62
+ return l.current.forEach((e) => {
63
+ e.passport && (t.stores.find((c) => c.name === e.passport.name) || t.stores.push({
64
+ value: e.current,
65
+ name: e.passport.name
66
+ }));
67
+ }), t;
68
+ }
69
+ }
70
+ f = new WeakMap(), d = new WeakMap(), S = new WeakMap();
71
+ const z = new j();
72
+ var g, h, m, n, y, u, b, o, w, C;
73
+ class M {
74
+ constructor(t, e) {
75
+ s(this, w);
76
+ s(this, g, void 0);
77
+ s(this, h, void 0);
78
+ s(this, m, void 0);
79
+ s(this, n, /* @__PURE__ */ new Set());
80
+ s(this, y, void 0);
81
+ s(this, u, void 0);
82
+ s(this, b, void 0);
83
+ s(this, o, void 0);
84
+ a(this, g, e == null ? void 0 : e.passport), a(this, h, {
85
+ initial: t,
86
+ previous: t,
87
+ current: t
88
+ }), a(this, m, (e == null ? void 0 : e.equalityCheck) || ((c, v) => c === v)), e != null && e.validate && this.addMiddleware(e.validate), a(this, b, (e == null ? void 0 : e.notifyAndClose) || !1), a(this, o, (e == null ? void 0 : e.invisible) || !1), a(this, y, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, g) && z.updateStore(this);
89
+ }
90
+ get passport() {
91
+ return r(this, g);
92
+ }
93
+ get initial() {
94
+ return r(this, h).initial;
95
+ }
96
+ get previous() {
97
+ return r(this, h).previous;
98
+ }
99
+ get current() {
100
+ return r(this, h).current;
101
+ }
102
+ set current(t) {
103
+ if (!r(this, m).call(this, r(this, h).current, t)) {
104
+ if (r(this, h).previous = r(this, h).current, r(this, u))
105
+ for (const e of r(this, u))
106
+ t = e(t);
107
+ r(this, h).current = t, A(this, w, C).call(this), r(this, b) && this.close();
108
+ }
109
+ }
110
+ get subscribers() {
111
+ return r(this, n);
112
+ }
113
+ addMiddleware(t) {
114
+ r(this, u) || a(this, u, /* @__PURE__ */ new Set()), r(this, u).add(t);
115
+ }
116
+ removeMiddleware(t) {
117
+ var e, c;
118
+ (e = r(this, u)) == null || e.delete(t), (c = r(this, u)) != null && c.size || a(this, u, void 0);
119
+ }
120
+ subscribe(t) {
121
+ return !r(this, o) && !r(this, n).size && q(this), r(this, n).add(t), r(this, y) || t(r(this, h)), () => {
122
+ this.unsubscribe(t);
123
+ };
124
+ }
125
+ unsubscribe(t) {
126
+ r(this, n).delete(t), r(this, n).size || k(this);
127
+ }
128
+ reset() {
129
+ this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
130
+ }
131
+ close() {
132
+ r(this, n).clear(), k(this);
133
+ }
134
+ }
135
+ g = new WeakMap(), h = new WeakMap(), m = new WeakMap(), n = new WeakMap(), y = new WeakMap(), u = new WeakMap(), b = new WeakMap(), o = new WeakMap(), w = new WeakSet(), C = function() {
136
+ for (const t of r(this, n))
137
+ t(r(this, h));
138
+ };
139
+ const l = new M([], {
140
+ invisible: !0
141
+ });
142
+ function q(i) {
143
+ l.current.includes(i) || (l.current = [...l.current, i]);
144
+ }
145
+ function k(i) {
146
+ l.current.includes(i) && (l.current = l.current.filter((t) => t !== i));
147
+ }
148
+ export {
149
+ M as S,
150
+ l as a,
151
+ z as s
152
+ };
@@ -1 +1 @@
1
- "use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-6Na1MCtM.cjs");var n,r;class S extends C.Animation{constructor(e,s){super(e||0,s);u(this,n,p.linear);u(this,r,1e3);this.updateOptions(g(d({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),q=a(this,n).call(this,w.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*q,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=S;
1
+ "use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-DBfrekcV.cjs");var n,r;class S extends C.Animation{constructor(e,s){super(e||0,s);u(this,n,p.linear);u(this,r,1e3);this.updateOptions(g(d({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),q=a(this,n).call(this,w.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*q,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=S;
@@ -22,7 +22,7 @@ var n = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(
22
22
  import { l as x } from "./easings-BKi40vHz.js";
23
23
  import { c as S } from "./math-BOBiC4TN.js";
24
24
  import { n as p, p as T } from "./polyfills-X6KXuHg-.js";
25
- import { A as q } from "./Animation-CELiTw3n.js";
25
+ import { A as q } from "./Animation-CwgyQH5y.js";
26
26
  var s, r;
27
27
  class j extends q {
28
28
  constructor(t, a) {
@@ -11,7 +11,7 @@ import { RESIZE_ORDER as k } from "./order/index.js";
11
11
  import { windowResizer as A } from "./window-resizer/index.js";
12
12
  import { i as C } from "./browser-0zX67oeU.js";
13
13
  import { getGPUTier as z } from "detect-gpu";
14
- import { S as O } from "./Store-BI2xxXOA.js";
14
+ import { S as O } from "./Store-Dqcu1DnE.js";
15
15
  var h, d, l, c, g, m, p, x, u;
16
16
  class I {
17
17
  constructor() {
@@ -1 +1 @@
1
- "use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-6s0YXK4o.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
1
+ "use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-CIs_NjhF.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
@@ -1,13 +1,6 @@
1
- import { Store, StoreEntry, StoreOptions } from '../store';
1
+ import { Store, StoreOptions } from '../store';
2
2
  import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
3
3
 
4
- export interface AnimationEntry extends StoreEntry<number> {
5
- delta: number;
6
- distance: number;
7
- deltaProgress: number;
8
- distanceProgress: number;
9
- direction: number;
10
- }
11
4
  export interface AnimationOptions extends TickerAddOptions {
12
5
  min?: number;
13
6
  max?: number;
@@ -15,7 +8,7 @@ export interface AnimationOptions extends TickerAddOptions {
15
8
  restart?: boolean;
16
9
  }
17
10
  export type AnimationConstructorOptions<Options extends AnimationOptions> = StoreOptions<number, 'number'> & Options;
18
- export declare abstract class Animation<Entry extends AnimationEntry = AnimationEntry, Options extends AnimationOptions = AnimationOptions> extends Store<number, 'number', Entry> {
11
+ export declare abstract class Animation<Options extends AnimationOptions = AnimationOptions> extends Store<number, 'number'> {
19
12
  #private;
20
13
  constructor(initial?: number, options?: StoreOptions<number, 'number'>);
21
14
  get direction(): number;
@@ -25,19 +18,11 @@ export declare abstract class Animation<Entry extends AnimationEntry = Animation
25
18
  get max(): number;
26
19
  set max(value: number);
27
20
  get from(): number;
28
- get isRunning(): Store<boolean, keyof import('../store').StoreManagers, StoreEntry<boolean>>;
21
+ get isRunning(): Store<boolean, keyof import('../store').StoreManagers>;
29
22
  get delta(): number;
30
23
  get deltaProgress(): number;
31
24
  get distance(): number;
32
25
  get distanceProgress(): number;
33
- get entry(): Entry & {
34
- from: number;
35
- delta: number;
36
- distance: number;
37
- direction: number;
38
- deltaProgress: number;
39
- distanceProgress: number;
40
- };
41
26
  set(value: number, options?: Options): void;
42
27
  shift(value: number, options?: Options): void;
43
28
  reset(): void;
@@ -1,16 +1,12 @@
1
1
  import { TickerCallbackEntry } from '../ticker';
2
- import { Animation, AnimationConstructorOptions, AnimationEntry, AnimationOptions } from './Animation';
2
+ import { Animation, AnimationConstructorOptions, AnimationOptions } from './Animation';
3
3
 
4
4
  export interface DampedOptions extends AnimationOptions {
5
5
  stiffness?: number;
6
6
  damping?: number;
7
7
  mass?: number;
8
8
  }
9
- export interface DampedEntry extends AnimationEntry {
10
- velocity: number;
11
- speed: number;
12
- }
13
- export declare class Damped extends Animation<DampedEntry, DampedOptions> {
9
+ export declare class Damped extends Animation<DampedOptions> {
14
10
  #private;
15
11
  damping: number;
16
12
  stiffness: number;
@@ -18,18 +14,6 @@ export declare class Damped extends Animation<DampedEntry, DampedOptions> {
18
14
  constructor(initial?: number, options?: AnimationConstructorOptions<DampedOptions>);
19
15
  get velocity(): number;
20
16
  get speed(): number;
21
- get entry(): {
22
- velocity: number;
23
- speed: number;
24
- delta: number;
25
- distance: number;
26
- deltaProgress: number;
27
- distanceProgress: number;
28
- direction: number;
29
- current: number;
30
- previous: number | undefined;
31
- from: number;
32
- };
33
17
  updateOptions(options?: DampedOptions): void;
34
18
  protected handleAnimationFrame(e: TickerCallbackEntry): void;
35
19
  }
@@ -1,12 +1,12 @@
1
1
  import { TickerCallbackEntry } from '../ticker';
2
2
  import { EasingFunction } from '../utils';
3
- import { Animation, AnimationConstructorOptions, AnimationEntry, AnimationOptions } from './Animation';
3
+ import { Animation, AnimationConstructorOptions, AnimationOptions } from './Animation';
4
4
 
5
5
  export interface TweenedOptions extends AnimationOptions {
6
6
  easing?: EasingFunction;
7
7
  duration?: number;
8
8
  }
9
- export declare class Tweened extends Animation<AnimationEntry, TweenedOptions> {
9
+ export declare class Tweened extends Animation<TweenedOptions> {
10
10
  #private;
11
11
  constructor(initial?: number, options?: AnimationConstructorOptions<TweenedOptions>);
12
12
  updateOptions(options?: TweenedOptions): void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-6Na1MCtM.cjs"),n=require("../Damped-loFiBsBy.cjs"),i=require("../Tweened-B_mclQ61.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-DBfrekcV.cjs"),n=require("../Damped-DmcKRSST.cjs"),i=require("../Tweened-5Bj7ht3x.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,3 +1,3 @@
1
- export { Animation, type AnimationOptions, type AnimationEntry, } from './Animation';
2
- export { Damped, type DampedOptions, type DampedEntry } from './Damped';
1
+ export { Animation, type AnimationOptions } from './Animation';
2
+ export { Damped, type DampedOptions } from './Damped';
3
3
  export { Tweened, type TweenedOptions } from './Tweened';
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-CELiTw3n.js";
2
- import { D as m } from "../Damped-Mx_FNNVz.js";
3
- import { T as t } from "../Tweened-NE8M9onF.js";
1
+ import { A as r } from "../Animation-CwgyQH5y.js";
2
+ import { D as m } from "../Damped-vepIw9Ku.js";
3
+ import { T as t } from "../Tweened-DPi9pZ8Q.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -1 +1 @@
1
- "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-6s0YXK4o.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
1
+ "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-CIs_NjhF.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
@@ -1,4 +1,4 @@
1
- import { Store, StoreCallback, StoreEntry, StoreOptions } from '../store';
1
+ import { Store, StoreCallback, StoreOptions } from '../store';
2
2
  import { ElementOrSelector } from '../utils';
3
3
 
4
4
  export interface AttributeOptions<T> extends StoreOptions<T> {
@@ -7,8 +7,8 @@ export interface AttributeOptions<T> extends StoreOptions<T> {
7
7
  export declare class Attribute<T extends string | number | boolean> extends Store<T> {
8
8
  #private;
9
9
  constructor(elementOrSelector: ElementOrSelector, name: string, defaultValue: T, options?: AttributeOptions<T>);
10
- subscribe(callback: StoreCallback<StoreEntry<T>>): () => void;
11
- unsubscribe(callback: StoreCallback<StoreEntry<T>>): void;
10
+ subscribe(callback: StoreCallback<T>): () => void;
11
+ unsubscribe(callback: StoreCallback<T>): void;
12
12
  observe(): void;
13
13
  unobserve(): void;
14
14
  close(): void;
@@ -8,7 +8,7 @@ var r = (t, e, s) => (m(t, e, "read from private field"), s ? s.call(t) : e.get(
8
8
  e instanceof WeakSet ? e.add(t) : e.set(t, s);
9
9
  }, c = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
10
10
  var v = (t, e, s) => (m(t, e, "access private method"), s);
11
- import { S as A } from "../Store-BI2xxXOA.js";
11
+ import { S as A } from "../Store-Dqcu1DnE.js";
12
12
  import { p as y } from "../attributes-69we3byR.js";
13
13
  import { i as S } from "../browser-0zX67oeU.js";
14
14
  import { g as w } from "../dom-0S_WDL4g.js";