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
@@ -2,5 +2,5 @@ import { Store, StoreManagerType } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
 
4
4
  export declare const tweakerManagerConstructors: {
5
- [key in StoreManagerType]: typeof TweakerStoreManagerElement<Store<any, any, any>>;
5
+ [key in StoreManagerType]: typeof TweakerStoreManagerElement<Store<any, any>>;
6
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-6s0YXK4o.cjs");const v=require("../source/index.cjs"),d=require("../ticker/index.cjs");var E=Object.defineProperty,f=Object.getOwnPropertyDescriptor,_=(t,e,r,i)=>{for(var s=i>1?void 0:i?f(e,r):e,o=t.length-1,u;o>=0;o--)(u=t[o])&&(s=(i?u(e,r,s):u(s))||s);return i&&s&&E(e,r,s),s},p=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},n=(t,e,r)=>(p(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},h=(t,e,r,i)=>(p(t,e,"write to private field"),e.set(t,r),r),a,c;exports.VideoElement=class extends v.SourceElement{constructor(){super(...arguments),l(this,a,0),l(this,c,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e>n(this,a)&&h(this,a,e),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:n(this,a)}})),this.consumerElement.readyState===4&&d.ticker.unsubscribe(n(this,c))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{d.ticker.subscribe(n(this,c)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),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(),d.ticker.unsubscribe(n(this,c)),h(this,a,0)}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||""}};a=new WeakMap;c=new WeakMap;exports.VideoElement=_([m.define("e-video")],exports.VideoElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-CIs_NjhF.cjs");const v=require("../source/index.cjs"),d=require("../ticker/index.cjs");var E=Object.defineProperty,f=Object.getOwnPropertyDescriptor,_=(t,e,r,i)=>{for(var s=i>1?void 0:i?f(e,r):e,o=t.length-1,u;o>=0;o--)(u=t[o])&&(s=(i?u(e,r,s):u(s))||s);return i&&s&&E(e,r,s),s},p=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},n=(t,e,r)=>(p(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},h=(t,e,r,i)=>(p(t,e,"write to private field"),e.set(t,r),r),a,c;exports.VideoElement=class extends v.SourceElement{constructor(){super(...arguments),l(this,a,0),l(this,c,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e>n(this,a)&&h(this,a,e),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:n(this,a)}})),this.consumerElement.readyState===4&&d.ticker.unsubscribe(n(this,c))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{d.ticker.subscribe(n(this,c)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),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(),d.ticker.unsubscribe(n(this,c)),h(this,a,0)}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||""}};a=new WeakMap;c=new WeakMap;exports.VideoElement=_([m.define("e-video")],exports.VideoElement);
@@ -1,6 +1,6 @@
1
1
  import { define as v } from "../custom-element/index.js";
2
2
  import "../window-resizer/index.js";
3
- import "../Store-BI2xxXOA.js";
3
+ import "../Store-Dqcu1DnE.js";
4
4
  import { SourceElement as f } from "../source/index.js";
5
5
  import { ticker as h } from "../ticker/index.js";
6
6
  var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, y = (e, t, s, i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.7.11",
3
+ "version": "0.8.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -138,46 +138,6 @@
138
138
  "default": "./lib/intersector/index.js",
139
139
  "types": "./lib/intersector/index.d.ts"
140
140
  },
141
- "./jsx": {
142
- "require": "./lib/jsx/index.cjs",
143
- "default": "./lib/jsx/index.js",
144
- "types": "./lib/jsx/index.d.ts"
145
- },
146
- "./jsx/hooks/store": {
147
- "require": "./lib/jsx/hooks/store/index.cjs",
148
- "default": "./lib/jsx/hooks/store/index.js",
149
- "types": "./lib/jsx/hooks/store/index.d.ts"
150
- },
151
- "./jsx/hooks/onAnimationFrame": {
152
- "require": "./lib/jsx/hooks/onAnimationFrame.cjs",
153
- "default": "./lib/jsx/hooks/onAnimationFrame.js",
154
- "types": "./lib/jsx/hooks/onAnimationFrame.d.ts"
155
- },
156
- "./jsx/hooks/onElementResize": {
157
- "require": "./lib/jsx/hooks/onElementResize.cjs",
158
- "default": "./lib/jsx/hooks/onElementResize.js",
159
- "types": "./lib/jsx/hooks/onElementResize.d.ts"
160
- },
161
- "./jsx/hooks/onIntersection": {
162
- "require": "./lib/jsx/hooks/onIntersection.cjs",
163
- "default": "./lib/jsx/hooks/onIntersection.js",
164
- "types": "./lib/jsx/hooks/onIntersection.d.ts"
165
- },
166
- "./jsx/hooks/onWindowResize": {
167
- "require": "./lib/jsx/hooks/onWindowResize.cjs",
168
- "default": "./lib/jsx/hooks/onWindowResize.js",
169
- "types": "./lib/jsx/hooks/onWindowResize.d.ts"
170
- },
171
- "./jsx/hooks/watchAttribute": {
172
- "require": "./lib/jsx/hooks/watchAttribute.cjs",
173
- "default": "./lib/jsx/hooks/watchAttribute.js",
174
- "types": "./lib/jsx/hooks/watchAttribute.d.ts"
175
- },
176
- "./jsx/hooks/watchCSSProperty": {
177
- "require": "./lib/jsx/hooks/watchCSSProperty.cjs",
178
- "default": "./lib/jsx/hooks/watchCSSProperty.js",
179
- "types": "./lib/jsx/hooks/watchCSSProperty.d.ts"
180
- },
181
141
  "./ladder": {
182
142
  "require": "./lib/ladder/index.cjs",
183
143
  "default": "./lib/ladder/index.js",
@@ -381,30 +341,6 @@
381
341
  "intersector": [
382
342
  "lib/intersector/index.d.ts"
383
343
  ],
384
- "jsx": [
385
- "lib/jsx/index.d.ts"
386
- ],
387
- "jsx/hooks/store": [
388
- "lib/jsx/hooks/store/index.d.ts"
389
- ],
390
- "jsx/hooks/onAnimationFrame": [
391
- "lib/jsx/hooks/onAnimationFrame.d.ts"
392
- ],
393
- "jsx/hooks/onElementResize": [
394
- "lib/jsx/hooks/onElementResize.d.ts"
395
- ],
396
- "jsx/hooks/onIntersection": [
397
- "lib/jsx/hooks/onIntersection.d.ts"
398
- ],
399
- "jsx/hooks/onWindowResize": [
400
- "lib/jsx/hooks/onWindowResize.d.ts"
401
- ],
402
- "jsx/hooks/watchAttribute": [
403
- "lib/jsx/hooks/watchAttribute.d.ts"
404
- ],
405
- "jsx/hooks/watchCSSProperty": [
406
- "lib/jsx/hooks/watchCSSProperty.d.ts"
407
- ],
408
344
  "ladder": [
409
345
  "lib/ladder/index.d.ts"
410
346
  ],
@@ -1 +0,0 @@
1
- "use strict";var R=Object.defineProperty,k=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(s,i,t)=>i in s?R(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t,M=(s,i)=>{for(var t in i||(i={}))_.call(i,t)&&C(s,t,i[t]);if(S)for(var t of S(i))w.call(i,t)&&C(s,t,i[t]);return s},y=(s,i)=>k(s,T(i));var P=(s,i,t)=>{if(!i.has(s))throw TypeError("Cannot "+t)};var e=(s,i,t)=>(P(s,i,"read from private field"),t?t.call(s):i.get(s)),a=(s,i,t)=>{if(i.has(s))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(s):i.set(s,t)},h=(s,i,t,n)=>(P(s,i,"write to private field"),n?n.call(s,t):i.set(s,t),t);var I=(s,i,t)=>(P(s,i,"access private method"),t);const z=require("./Store-6s0YXK4o.cjs"),D=require("./math-GDWEqu7y.cjs"),g=require("./polyfills-CM4SCDTt.cjs"),N=require("./ticker/index.cjs"),E=require("./order/index.cjs");var d,f,A,c,b,r,u,l,m,F,q,O,x;class K extends z.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,d,void 0);a(this,f,E.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new z.Store(!1));a(this,b,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,m,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,m)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,m))}get deltaProgress(){return this.delta?g.preciseNumber(Math.abs(this.current-e(this,m))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?g.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}get entry(){return y(M({},super.entry),{from:e(this,m),delta:this.delta,distance:this.distance,direction:this.direction,deltaProgress:this.deltaProgress,distanceProgress:this.distanceProgress})}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,N.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,N.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,d,g.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),h(this,f,g.nullishCoalescing(t==null?void 0:t.order,e(this,f))),h(this,A,g.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,g.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,g.nullishCoalescing(t==null?void 0:t.max,e(this,l))),I(this,q,O).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,m=new WeakMap,F=new WeakMap,q=new WeakSet,O=function(t){h(this,b,Math.sign(t-e(this,r))),h(this,r,D.clamp(t,e(this,u),e(this,l))),h(this,m,this.current)},x=new WeakMap;exports.Animation=K;
@@ -1,132 +0,0 @@
1
- var C = Object.defineProperty, k = Object.defineProperties;
2
- var w = Object.getOwnPropertyDescriptors;
3
- var S = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var I = (r, i, t) => i in r ? C(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, q = (r, i) => {
6
- for (var t in i || (i = {}))
7
- D.call(i, t) && I(r, t, i[t]);
8
- if (S)
9
- for (var t of S(i))
10
- E.call(i, t) && I(r, t, i[t]);
11
- return r;
12
- }, y = (r, i) => k(r, w(i));
13
- var M = (r, i, t) => {
14
- if (!i.has(r))
15
- throw TypeError("Cannot " + t);
16
- };
17
- var e = (r, i, t) => (M(r, i, "read from private field"), t ? t.call(r) : i.get(r)), a = (r, i, t) => {
18
- if (i.has(r))
19
- throw TypeError("Cannot add the same private member more than once");
20
- i instanceof WeakSet ? i.add(r) : i.set(r, t);
21
- }, h = (r, i, t, n) => (M(r, i, "write to private field"), n ? n.call(r, t) : i.set(r, t), t);
22
- var z = (r, i, t) => (M(r, i, "access private method"), t);
23
- import { S as O } from "./Store-BI2xxXOA.js";
24
- import { c as K } from "./math-BOBiC4TN.js";
25
- import { p as R, n as F } from "./polyfills-X6KXuHg-.js";
26
- import { ticker as N } from "./ticker/index.js";
27
- import { TICK_ORDER as L } from "./order/index.js";
28
- var d, g, f, l, b, s, u, m, c, A, P, T, x;
29
- class J extends O {
30
- constructor(t, n) {
31
- super(t || 0, n);
32
- a(this, P);
33
- a(this, d, void 0);
34
- a(this, g, L.ANIMATION);
35
- a(this, f, void 0);
36
- a(this, l, new O(!1));
37
- a(this, b, 0);
38
- a(this, s, 0);
39
- a(this, u, -1 / 0);
40
- a(this, m, 1 / 0);
41
- a(this, c, 0);
42
- a(this, A, null);
43
- a(this, x, (t) => {
44
- this.handleAnimationFrame(t);
45
- });
46
- h(this, s, this.current);
47
- }
48
- get direction() {
49
- return e(this, b);
50
- }
51
- get target() {
52
- return e(this, s);
53
- }
54
- get min() {
55
- return e(this, u);
56
- }
57
- set min(t) {
58
- h(this, u, t), this.set(e(this, s), {
59
- equalize: !0
60
- });
61
- }
62
- get max() {
63
- return e(this, m);
64
- }
65
- set max(t) {
66
- h(this, m, t), this.set(e(this, s), {
67
- equalize: !0
68
- });
69
- }
70
- get from() {
71
- return e(this, c);
72
- }
73
- get isRunning() {
74
- return e(this, l);
75
- }
76
- get delta() {
77
- return Math.abs(e(this, s) - e(this, c));
78
- }
79
- get deltaProgress() {
80
- return this.delta ? R(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
81
- }
82
- get distance() {
83
- return Math.abs(e(this, m) - e(this, u));
84
- }
85
- get distanceProgress() {
86
- return this.distance ? R(Math.abs(this.current - e(this, u)) / this.distance, 6) : 0;
87
- }
88
- get entry() {
89
- return y(q({}, super.entry), {
90
- from: e(this, c),
91
- delta: this.delta,
92
- distance: this.distance,
93
- direction: this.direction,
94
- deltaProgress: this.deltaProgress,
95
- distanceProgress: this.distanceProgress
96
- });
97
- }
98
- set(t, n) {
99
- (e(this, s) !== t || n != null && n.restart) && (h(this, A, t), this.updateOptions(n), h(this, A, null), e(this, s) !== this.current && this.start());
100
- }
101
- shift(t, n) {
102
- this.set(e(this, s) + t, n);
103
- }
104
- reset() {
105
- super.reset(), this.set(this.initial, { equalize: !0 });
106
- }
107
- close() {
108
- super.close(), this.reset(), this.unlistenAnimationFrame();
109
- }
110
- listenAnimationFrame() {
111
- e(this, l).current || (e(this, l).current = !0, N.subscribe(e(this, x), {
112
- maxFPS: e(this, d),
113
- order: e(this, g),
114
- culling: e(this, f)
115
- }));
116
- }
117
- unlistenAnimationFrame() {
118
- e(this, l).current && (e(this, l).current = !1, N.unsubscribe(e(this, x)));
119
- }
120
- updateOptions(t) {
121
- h(this, d, F(t == null ? void 0 : t.maxFPS, e(this, d))), h(this, g, F(t == null ? void 0 : t.order, e(this, g))), h(this, f, F(t == null ? void 0 : t.culling, e(this, f))), h(this, u, F(t == null ? void 0 : t.min, e(this, u))), h(this, m, F(t == null ? void 0 : t.max, e(this, m))), z(this, P, T).call(this, e(this, A) || e(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
122
- }
123
- start() {
124
- this.listenAnimationFrame();
125
- }
126
- }
127
- d = new WeakMap(), g = new WeakMap(), f = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), u = new WeakMap(), m = new WeakMap(), c = new WeakMap(), A = new WeakMap(), P = new WeakSet(), T = function(t) {
128
- h(this, b, Math.sign(t - e(this, s))), h(this, s, K(t, e(this, u), e(this, m))), h(this, c, this.current);
129
- }, x = new WeakMap();
130
- export {
131
- J as A
132
- };
@@ -1,63 +0,0 @@
1
- var v = Object.defineProperty, O = Object.defineProperties;
2
- var b = Object.getOwnPropertyDescriptors;
3
- var g = Object.getOwnPropertySymbols;
4
- var w = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var l = (e, s, t) => s in e ? v(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, u = (e, s) => {
6
- for (var t in s || (s = {}))
7
- w.call(s, t) && l(e, t, s[t]);
8
- if (g)
9
- for (var t of g(s))
10
- x.call(s, t) && l(e, t, s[t]);
11
- return e;
12
- }, c = (e, s) => O(e, b(s));
13
- var p = (e, s, t) => {
14
- if (!s.has(e))
15
- throw TypeError("Cannot " + t);
16
- };
17
- var r = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(e)), d = (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
- }, n = (e, s, t, a) => (p(e, s, "write to private field"), a ? a.call(e, t) : s.set(e, t), t);
22
- import { d as B } from "./math-BOBiC4TN.js";
23
- import { n as f, p as y } from "./polyfills-X6KXuHg-.js";
24
- import { A as D } from "./Animation-CELiTw3n.js";
25
- var i, h;
26
- class N extends D {
27
- constructor(t, a) {
28
- super(t, a);
29
- d(this, i, void 0);
30
- d(this, h, void 0);
31
- this.damping = 20, this.stiffness = 0, this.mass = 0, n(this, i, 0), n(this, h, 0), this.updateOptions(c(u({}, a), { equalize: !0 }));
32
- }
33
- get velocity() {
34
- return r(this, i);
35
- }
36
- get speed() {
37
- return r(this, h);
38
- }
39
- get entry() {
40
- return c(u({}, super.entry), {
41
- velocity: r(this, i),
42
- speed: r(this, h)
43
- });
44
- }
45
- updateOptions(t) {
46
- this.damping = f(t == null ? void 0 : t.damping, this.damping), this.mass = f(t == null ? void 0 : t.mass, this.mass), this.stiffness = f(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
47
- }
48
- handleAnimationFrame(t) {
49
- y(this.current, 4) === y(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
50
- const a = this.current, A = Math.abs(a - this.target);
51
- n(this, h, A / t.timeBetweenFrames);
52
- const m = t.timeBetweenFrames / 1e3;
53
- if (this.mass || this.stiffness) {
54
- const F = (this.target - this.current) * this.stiffness - r(this, i) * this.damping;
55
- n(this, i, r(this, i) + F / this.mass * m), this.current += r(this, i) * m;
56
- } else
57
- this.current = B(this.current, this.target, this.damping, m);
58
- }
59
- }
60
- i = new WeakMap(), h = new WeakMap();
61
- export {
62
- N as D
63
- };
@@ -1 +0,0 @@
1
- "use strict";var A=Object.defineProperty,F=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?A(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,m=(e,s)=>{for(var t in s||(s={}))v.call(s,t)&&f(e,t,s[t]);if(g)for(var t of g(s))C.call(s,t)&&f(e,t,s[t]);return e},l=(e,s)=>F(e,b(s));var p=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,h)=>(p(e,s,"write to private field"),h?h.call(e,t):s.set(e,t),t);const O=require("./math-GDWEqu7y.cjs"),u=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-6Na1MCtM.cjs");var i,a;class B extends w.Animation{constructor(t,h){super(t,h);d(this,i,void 0);d(this,a,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,a,0),this.updateOptions(l(m({},h),{equalize:!0}))}get velocity(){return r(this,i)}get speed(){return r(this,a)}get entry(){return l(m({},super.entry),{velocity:r(this,i),speed:r(this,a)})}updateOptions(t){this.damping=u.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=u.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=u.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}handleAnimationFrame(t){u.preciseNumber(this.current,4)===u.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const h=this.current,y=Math.abs(h-this.target);n(this,a,y/t.timeBetweenFrames);const c=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const q=(this.target-this.current)*this.stiffness-r(this,i)*this.damping;n(this,i,r(this,i)+q/this.mass*c),this.current+=r(this,i)*c}else this.current=O.damp(this.current,this.target,this.damping,c)}}i=new WeakMap,a=new WeakMap;exports.Damped=B;
@@ -1 +0,0 @@
1
- "use strict";var Z=(f,e,t)=>{if(!e.has(f))throw TypeError("Cannot "+t)};var i=(f,e,t)=>(Z(f,e,"read from private field"),t?t.call(f):e.get(f)),c=(f,e,t)=>{if(e.has(f))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(f):e.set(f,t)},S=(f,e,t,s)=>(Z(f,e,"write to private field"),s?s.call(f,t):e.set(f,t),t);var r=(f,e,t)=>(Z(f,e,"access private method"),t);const b=require("./Store-6s0YXK4o.cjs"),he=require("./browser-CpzFX2xg.cjs"),de=require("./object-CCiXnER2.cjs"),_=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),Le=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var o,E,l,w,d,u,P,ue,B,me,R,ge,L,j,T,ee,G,Ee,W,Se,$,be,z,Ce,v,te,A,se,I,ye,k,ie,M,ne,J,pe,D,oe,N,F,x,re,q,ce,H,ae,V,K;const U=class U{constructor(...e){c(this,P);c(this,B);c(this,R);c(this,L);c(this,T);c(this,G);c(this,W);c(this,$);c(this,z);c(this,v);c(this,A);c(this,I);c(this,k);c(this,M);c(this,J);c(this,D);c(this,N);c(this,x);c(this,q);c(this,H);c(this,o,null);c(this,E,new Set);c(this,l,new Set);c(this,w,void 0);c(this,d,void 0);c(this,u,void 0);c(this,V,()=>{i(this,E).forEach(e=>{e()}),i(this,E).clear()});c(this,K,e=>{i(this,l).forEach(t=>{t(e)}),i(this,l).clear(),r(this,M,ne).call(this)});if(he.isBrowser){const t=e[0],s=e[1];S(this,o,r(this,P,ue).call(this,t,s==null?void 0:s.forceSvg)),r(this,R,ge).call(this,s)}}get node(){return i(this,o)}set node(e){var t;r(this,M,ne).call(this),S(this,o,e),(t=i(this,w))==null||t.call(this),i(this,o)instanceof Element&&S(this,d,[...i(this,o).querySelectorAll("store-root")]),r(this,k,ie).call(this),r(this,L,j).call(this)}};o=new WeakMap,E=new WeakMap,l=new WeakMap,w=new WeakMap,d=new WeakMap,u=new WeakMap,P=new WeakSet,ue=function(e,t){let s=null;if(e instanceof Node)s=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))s=new(customElements.get(e));else if(e.includes("<")){const n=document.createElement("div");n.innerHTML=e,s=n.firstElementChild}else Le.has(e)||t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e);else s=document.createElement("div");return s},B=new WeakSet,me=function(e){return e instanceof HTMLElement||e instanceof SVGElement},R=new WeakSet,ge=function(e){if(!e)return;const t=r(this,B,me).call(this,i(this,o)),s=e.ref;delete e.ref,e!=null&&e.onConnect&&(i(this,E).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(i(this,l).add(e.onDisconnect),delete e.onDisconnect);let n,a;for(const h in e){const m=e[h];h==="class"&&t?r(this,T,ee).call(this,m):h==="style"&&t?r(this,$,be).call(this,m):h==="lightChildren"?r(this,N,F).call(this,i(this,o),m):h==="children"?r(this,N,F).call(this,i(this,o)instanceof Element?i(this,o).shadowRoot||i(this,o):i(this,o),m):h.startsWith("on")?(a||(a={}),a[h]=m):(n||(n={}),n[h]=m)}r(this,J,pe).call(this,n),r(this,I,ye).call(this,a),s&&(typeof s=="function"?s(i(this,o)):s.current=i(this,o)),r(this,L,j).call(this)},L=new WeakSet,j=function(){if(he.isBrowser&&(i(this,l).size||i(this,E).size)){const e=i(this,o)instanceof DocumentFragment?i(this,o).firstChild:i(this,o);S(this,w,we.connector.subscribe(e,{connectCallback:i(this,V),disconnectCallback:i(this,K),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,ee=function(e){if(e){if(typeof e=="string")i(this,o).classList.add(e);else if(Array.isArray(e))e.forEach(t=>{r(this,T,ee).call(this,t)});else if(typeof e=="object")if(e instanceof b.Store)r(this,G,Ee).call(this,e);else for(const t in e){const s=e[t];s instanceof b.Store?r(this,W,Se).call(this,t,s):s?i(this,o).classList.add(t):i(this,o).classList.remove(t)}}else return},G=new WeakSet,Ee=function(e){i(this,l).add(e.subscribe(({current:t,previous:s})=>{s&&[s].flat().forEach(n=>{n&&i(this,o).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&i(this,o).classList.add(n)})}))},W=new WeakSet,Se=function(e,t){i(this,l).add(t.subscribe(({current:s})=>{s?i(this,o).classList.add(e):i(this,o).classList.remove(e)}))},$=new WeakSet,be=function(e){if(!e)return;i(this,o).tagName==="style"||i(this,o).tagName==="STYLE"?r(this,v,te).call(this,e):r(this,z,Ce).call(this,e)},z=new WeakSet,Ce=function(e){for(const t in e){const s=t,n=e[s];n instanceof b.Store?i(this,l).add(n.subscribe(({current:a})=>{r(this,A,se).call(this,s,a)})):r(this,A,se).call(this,s,n)}},v=new WeakSet,te=function(e){for(const t in e){const s=e[t];if(typeof s=="object"&&!(s instanceof b.Store))i(this,o).appendChild(document.createTextNode(`${t} {`)),r(this,v,te).call(this,s),i(this,o).appendChild(document.createTextNode("}"));else if(s instanceof b.Store){const n=document.createTextNode("");i(this,l).add(s.subscribe(a=>{a.current?n.nodeValue=`${_.camelToKebab(t)}: ${a.current};`:n.nodeValue=""})),i(this,o).appendChild(n)}else i(this,o).appendChild(document.createTextNode(`${_.camelToKebab(t)}: ${s};`))}},A=new WeakSet,se=function(e,t){e.includes("--")?t?i(this,o).style.setProperty(e,t):i(this,o).style.removeProperty(e):t?i(this,o).style[e]=t:i(this,o).style[e]=""},I=new WeakSet,ye=function(e){if(e){i(this,u)||S(this,u,[]);for(const t in e){const s=t,n=_.uncapitalize(s.split("on").slice(1).join("on")),a=e[s];typeof a=="object"?i(this,u).push({name:n,callback:a.callback,options:a.options}):typeof a=="function"&&i(this,u).push({name:n,callback:a})}r(this,k,ie).call(this)}},k=new WeakSet,ie=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).addEventListener(t.name,t.callback,t.options)})},M=new WeakSet,ne=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).removeEventListener(t.name,t.callback,t.options)})},J=new WeakSet,pe=function(e){for(const t in e){const s=e[t];s instanceof b.Store?i(this,l).add(s.subscribe(({current:n})=>{r(this,D,oe).call(this,t,n)})):r(this,D,oe).call(this,t,s)}},D=new WeakSet,oe=function(e,t){var n,a;const s=i(this,o);e in s&&!((a=(n=s.constructor)==null?void 0:n.observedAttributes)!=null&&a.includes(e))?t!=null&&(s[e]=t.toString()):t!=null&&s.setAttribute(e,t.toString())},N=new WeakSet,F=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof b.Store){const n=document.createElement("div");n.style.display="contents",e.appendChild(n),i(this,d)||S(this,d,[]);const a=i(this,d).length;n.setAttribute("store-root",""),i(this,d).push(n),i(this,l).add(s.subscribe(({current:h,previous:m})=>{const C=i(this,d)[a];C.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Y=Array.from(C.childNodes),fe=[h].flat(),Ne=[m].flat(),le=[],Q=[];Ne.forEach((g,y)=>{!fe.includes(g)&&Y[y]?le.push(Y[y]):Q.push(g)}),fe.forEach((g,y)=>{if(Q[y]){if(g!==Q[y]){const p=r(this,q,ce).call(this,g),X=Y[y];p instanceof Node?X.isEqualNode(p)||C.replaceChild(p,X):C.removeChild(X)}}else{const p=r(this,q,ce).call(this,g);p instanceof Node&&n.appendChild(p)}}),le.forEach(g=>{C.removeChild(g)}),C.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(s instanceof U)r(this,x,re).call(this,e,s.node);else if(s instanceof Function)r(this,N,F).call(this,e,de.isESClass(s)?new s:s());else{const n=r(this,H,ae).call(this,s);n instanceof Node&&r(this,x,re).call(this,e,n)}}))},x=new WeakSet,re=function(e,t){!(e instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(i(this,E).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),i(this,l).add(()=>{t.remove()})):e.appendChild(t)},q=new WeakSet,ce=function(e){return e instanceof U?e.node:typeof e=="function"?de.isESClass(e)?new e:e():r(this,H,ae).call(this,e)},H=new WeakSet,ae=function(e){if(e instanceof Node)return e;if(e!=null){const t=String(e);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const s=document.createElement("div");return s.innerHTML=t,s.firstElementChild}else return document.createTextNode(t)}else return},V=new WeakMap,K=new WeakMap;let O=U;exports.ElementConstructor=O;