aptechka 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/lib/{Animation-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
  2. package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
  3. package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
  4. package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
  5. package/lib/Store-CDb6RMce.cjs +1 -0
  6. package/lib/Store-OTdcl6SX.js +134 -0
  7. package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
  8. package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
  9. package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
  10. package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +1 -1
  11. package/lib/animation/index.cjs +1 -1
  12. package/lib/animation/index.js +3 -3
  13. package/lib/attribute/index.cjs +1 -1
  14. package/lib/attribute/index.js +1 -1
  15. package/lib/canvas/index.cjs +1 -7
  16. package/lib/canvas/index.js +49 -48
  17. package/lib/class-linked-status/index.cjs +1 -1
  18. package/lib/class-linked-status/index.js +1 -1
  19. package/lib/controls/index.cjs +1 -1
  20. package/lib/controls/index.js +2 -2
  21. package/lib/css-property/index.cjs +1 -1
  22. package/lib/css-property/index.js +1 -1
  23. package/lib/dev/index.cjs +1 -1
  24. package/lib/dev/index.js +1 -1
  25. package/lib/device/index.cjs +1 -1
  26. package/lib/device/index.js +1 -1
  27. package/lib/element-constructor/index.cjs +1 -1
  28. package/lib/element-constructor/index.js +845 -130
  29. package/lib/en3/index.cjs +8 -1
  30. package/lib/en3/index.js +372 -4
  31. package/lib/image/index.cjs +1 -1
  32. package/lib/image/index.js +1 -1
  33. package/lib/jss-CjccJC-K.js +21 -0
  34. package/lib/jss-GJLvaNfT.cjs +1 -0
  35. package/lib/ladder/index.cjs +1 -1
  36. package/lib/ladder/index.js +1 -1
  37. package/lib/media/index.cjs +1 -1
  38. package/lib/media/index.js +1 -1
  39. package/lib/need_redo_tweaker/index.cjs +4 -4
  40. package/lib/need_redo_tweaker/index.js +415 -421
  41. package/lib/pointer/index.cjs +1 -1
  42. package/lib/pointer/index.js +2 -2
  43. package/lib/popover/index.cjs +1 -1
  44. package/lib/popover/index.js +15 -21
  45. package/lib/scroll/index.cjs +1 -1
  46. package/lib/scroll/index.js +576 -608
  47. package/lib/sequence/index.cjs +1 -1
  48. package/lib/sequence/index.js +1 -1
  49. package/lib/source/index.cjs +2 -2
  50. package/lib/source/index.js +154 -62
  51. package/lib/store/index.cjs +1 -1
  52. package/lib/store/index.js +71 -37
  53. package/lib/utils/index.cjs +1 -1
  54. package/lib/utils/index.js +59 -56
  55. package/lib/video/index.cjs +1 -1
  56. package/lib/video/index.js +1 -1
  57. package/package.json +1 -26
  58. package/lib/Composed-C_4slJQ6.cjs +0 -1
  59. package/lib/Composed-CfWa-69I.js +0 -31
  60. package/lib/Derived-BIBU-y7Z.cjs +0 -1
  61. package/lib/Derived-Vo_RsJfi.js +0 -23
  62. package/lib/SourceManager-B6wZpXUZ.js +0 -104
  63. package/lib/SourceManager-CfHcGLUa.cjs +0 -1
  64. package/lib/Store-C46i0nvr.js +0 -137
  65. package/lib/Store-npaZHvX4.cjs +0 -1
  66. package/lib/createStylesheet-C68ja-RS.js +0 -8
  67. package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
  68. package/lib/en3/helpers/index.cjs +0 -1
  69. package/lib/en3/helpers/index.js +0 -1870
  70. package/lib/en3/libs/index.cjs +0 -1
  71. package/lib/en3/libs/index.js +0 -200
  72. package/lib/en3/loaders/index.cjs +0 -1
  73. package/lib/en3/loaders/index.js +0 -1742
  74. package/lib/en3/misc/index.cjs +0 -10
  75. package/lib/en3/misc/index.js +0 -110
  76. package/lib/en3/utils/index.cjs +0 -1
  77. package/lib/en3/utils/index.js +0 -20
  78. package/lib/en3-C1fLmsjs.cjs +0 -8
  79. package/lib/en3-sK9Z-fp2.js +0 -344
  80. package/lib/tags-6_ETuR75.cjs +0 -1
  81. package/lib/tags-zft1DGBz.js +0 -833
  82. package/lib/traverseMaterials-BlZbRhgW.js +0 -29
  83. package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("Cannot "+t);var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-npaZHvX4.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,y,x;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f);a(this,b,N.TICK_ORDER.ANIMATION);a(this,A);a(this,c,new I.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,P.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,P.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),M(this,q,y).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,y=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=O;
1
+ "use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("Cannot "+t);var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-CDb6RMce.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,y,x;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f);a(this,b,N.TICK_ORDER.ANIMATION);a(this,A);a(this,c,new I.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,P.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,P.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),M(this,q,y).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,y=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=O;
@@ -3,7 +3,7 @@ var I = (i) => {
3
3
  };
4
4
  var S = (i, r, t) => r.has(i) || I("Cannot " + t);
5
5
  var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(i)), a = (i, r, t) => r.has(i) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, t), h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t), P = (i, r, t) => (S(i, r, "access private method"), t);
6
- import { S as q } from "./Store-C46i0nvr.js";
6
+ import { S as q } from "./Store-OTdcl6SX.js";
7
7
  import { c as y } from "./math-BOBiC4TN.js";
8
8
  import { p as z, n as F } from "./polyfills-X6KXuHg-.js";
9
9
  import { ticker as O } from "./ticker/index.js";
@@ -17,7 +17,7 @@ var A = (s, e, t) => e.has(s) || g("Cannot " + t);
17
17
  var a = (s, e, t) => (A(s, e, "read from private field"), t ? t.call(s) : e.get(s)), c = (s, e, t) => e.has(s) ? g("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), m = (s, e, t, r) => (A(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
18
18
  import { d as D } from "./math-BOBiC4TN.js";
19
19
  import { n as u, p as F } from "./polyfills-X6KXuHg-.js";
20
- import { A as q } from "./Animation-NAGXiFv5.js";
20
+ import { A as q } from "./Animation-w6BLTCum.js";
21
21
  var i, h;
22
22
  class j extends q {
23
23
  constructor(t, r) {
@@ -1 +1 @@
1
- "use strict";var b=Object.defineProperty,y=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))O.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))v.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>y(t,C(e));var q=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),u=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(q(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const w=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),B=require("./Animation-De9aUv3b.cjs");var i,h;class D extends B.Animation{constructor(s,r){super(s,r);u(this,i);u(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(p(f({},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,6)===c.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*m),this.current+=a(this,i)*m}else this.current=w.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
1
+ "use strict";var b=Object.defineProperty,y=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))O.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))v.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>y(t,C(e));var q=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),u=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(q(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const w=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),B=require("./Animation-DI864E0i.cjs");var i,h;class D extends B.Animation{constructor(s,r){super(s,r);u(this,i);u(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(p(f({},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,6)===c.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*m),this.current+=a(this,i)*m}else this.current=w.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
@@ -0,0 +1 @@
1
+ "use strict";var A=r=>{throw TypeError(r)};var w=(r,e,t)=>e.has(r)||A("Cannot "+t);var i=(r,e,t)=>(w(r,e,"read from private field"),t?t.call(r):e.get(r)),c=(r,e,t)=>e.has(r)?A("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),h=(r,e,t,a)=>(w(r,e,"write to private field"),a?a.call(r,t):e.set(r,t),t),k=(r,e,t)=>(w(r,e,"access private method"),t);const E=require("./browser-CpzFX2xg.cjs");var f;class M{constructor(){c(this,f);this.storage=null,this.name="store-registry",h(this,f,null),E.isBrowser&&(this.storage=localStorage)}get loadedState(){return i(this,f)}saveState(){const e=this.getState(),t=JSON.stringify(e);localStorage.setItem(this.name,t)}loadState(e=localStorage.getItem(this.name)){e&&(typeof e=="string"?h(this,f,JSON.parse(e)):h(this,f,e),l.current.forEach(t=>{t.name&&this.updateStore(t)}))}resetState(){l.current.forEach(e=>{e.name&&e.reset()}),this.saveState()}updateStore(e){var t,a;if(!Array.isArray((t=i(this,f))==null?void 0:t.stores))return e;if(e.name){const y=(a=i(this,f))==null?void 0:a.stores.find(z=>z.name===e.name);y&&(e.current=y.value)}return e}getState(){const e={stores:[]};return l.current.forEach(t=>{t.name&&(e.stores.find(a=>a.name===t.name)||e.stores.push({value:t.current,name:t.name}))}),e}}f=new WeakMap;const N=new M;var d,s,S,u,m,n,g,b,v,q;class _{constructor(e,t){c(this,v);c(this,d);c(this,s);c(this,S);c(this,u,new Set);c(this,m);c(this,n);c(this,g);c(this,b);h(this,d,t==null?void 0:t.name),this.__manager=t==null?void 0:t.__manager,h(this,s,{initial:e,previous:void 0,current:e}),h(this,S,(t==null?void 0:t.equalityCheck)||((a,y)=>a===y)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,g,(t==null?void 0:t.notifyAndClose)||!1),h(this,b,(t==null?void 0:t.invisible)||!1),h(this,m,(t==null?void 0:t.skipSubscribeNotification)||!1),i(this,d)&&N.updateStore(this)}get name(){return i(this,d)}get initial(){return i(this,s).initial}get previous(){return i(this,s).previous}get current(){return i(this,s).current}set current(e){if(!i(this,S).call(this,i(this,s).current,e)){if(i(this,s).previous=i(this,s).current,i(this,n))for(const t of i(this,n))e=t(e);i(this,s).current=e,k(this,v,q).call(this),i(this,g)&&this.close()}}get subscribers(){return i(this,u)}addMiddleware(e){i(this,n)||h(this,n,new Set),i(this,n).add(e)}removeMiddleware(e){var t,a;(t=i(this,n))==null||t.delete(e),(a=i(this,n))!=null&&a.size||h(this,n,void 0)}subscribe(e){return!i(this,b)&&!i(this,u).size&&R(this),i(this,u).add(e),i(this,m)||e(i(this,s)),()=>{this.unsubscribe(e)}}unsubscribe(e){i(this,u).delete(e),i(this,u).size||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,u).clear(),C(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,u=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,b=new WeakMap,v=new WeakSet,q=function(){for(const e of i(this,u))e(i(this,s))};const l=new _([],{invisible:!0});function R(r){l.current.includes(r)||(l.current=[...l.current,r])}function C(r){l.current.includes(r)&&(l.current=l.current.filter(e=>e!==r))}exports.Store=_;exports.activeStores=l;exports.storeRegistry=N;
@@ -0,0 +1,134 @@
1
+ var A = (r) => {
2
+ throw TypeError(r);
3
+ };
4
+ var w = (r, e, t) => e.has(r) || A("Cannot " + t);
5
+ var i = (r, e, t) => (w(r, e, "read from private field"), t ? t.call(r) : e.get(r)), c = (r, e, t) => e.has(r) ? A("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), h = (r, e, t, a) => (w(r, e, "write to private field"), a ? a.call(r, t) : e.set(r, t), t), k = (r, e, t) => (w(r, e, "access private method"), t);
6
+ import { i as z } from "./browser-0zX67oeU.js";
7
+ var l;
8
+ class E {
9
+ constructor() {
10
+ c(this, l);
11
+ this.storage = null, this.name = "store-registry", h(this, l, null), z && (this.storage = localStorage);
12
+ }
13
+ get loadedState() {
14
+ return i(this, l);
15
+ }
16
+ saveState() {
17
+ const e = this.getState(), t = JSON.stringify(e);
18
+ localStorage.setItem(this.name, t);
19
+ }
20
+ loadState(e = localStorage.getItem(this.name)) {
21
+ e && (typeof e == "string" ? h(this, l, JSON.parse(e)) : h(this, l, e), f.current.forEach((t) => {
22
+ t.name && this.updateStore(t);
23
+ }));
24
+ }
25
+ resetState() {
26
+ f.current.forEach((e) => {
27
+ e.name && e.reset();
28
+ }), this.saveState();
29
+ }
30
+ updateStore(e) {
31
+ var t, a;
32
+ if (!Array.isArray((t = i(this, l)) == null ? void 0 : t.stores))
33
+ return e;
34
+ if (e.name) {
35
+ const y = (a = i(this, l)) == null ? void 0 : a.stores.find((_) => _.name === e.name);
36
+ y && (e.current = y.value);
37
+ }
38
+ return e;
39
+ }
40
+ getState() {
41
+ const e = {
42
+ stores: []
43
+ };
44
+ return f.current.forEach((t) => {
45
+ t.name && (e.stores.find((a) => a.name === t.name) || e.stores.push({
46
+ value: t.current,
47
+ name: t.name
48
+ }));
49
+ }), e;
50
+ }
51
+ }
52
+ l = new WeakMap();
53
+ const M = new E();
54
+ var d, s, S, u, m, n, g, b, v, N;
55
+ class q {
56
+ constructor(e, t) {
57
+ c(this, v);
58
+ c(this, d);
59
+ c(this, s);
60
+ c(this, S);
61
+ c(this, u, /* @__PURE__ */ new Set());
62
+ c(this, m);
63
+ c(this, n);
64
+ c(this, g);
65
+ c(this, b);
66
+ h(this, d, t == null ? void 0 : t.name), this.__manager = t == null ? void 0 : t.__manager, h(this, s, {
67
+ initial: e,
68
+ previous: void 0,
69
+ current: e
70
+ }), h(this, S, (t == null ? void 0 : t.equalityCheck) || ((a, y) => a === y)), t != null && t.validate && this.addMiddleware(t.validate), h(this, g, (t == null ? void 0 : t.notifyAndClose) || !1), h(this, b, (t == null ? void 0 : t.invisible) || !1), h(this, m, (t == null ? void 0 : t.skipSubscribeNotification) || !1), i(this, d) && M.updateStore(this);
71
+ }
72
+ get name() {
73
+ return i(this, d);
74
+ }
75
+ get initial() {
76
+ return i(this, s).initial;
77
+ }
78
+ get previous() {
79
+ return i(this, s).previous;
80
+ }
81
+ get current() {
82
+ return i(this, s).current;
83
+ }
84
+ set current(e) {
85
+ if (!i(this, S).call(this, i(this, s).current, e)) {
86
+ if (i(this, s).previous = i(this, s).current, i(this, n))
87
+ for (const t of i(this, n))
88
+ e = t(e);
89
+ i(this, s).current = e, k(this, v, N).call(this), i(this, g) && this.close();
90
+ }
91
+ }
92
+ get subscribers() {
93
+ return i(this, u);
94
+ }
95
+ addMiddleware(e) {
96
+ i(this, n) || h(this, n, /* @__PURE__ */ new Set()), i(this, n).add(e);
97
+ }
98
+ removeMiddleware(e) {
99
+ var t, a;
100
+ (t = i(this, n)) == null || t.delete(e), (a = i(this, n)) != null && a.size || h(this, n, void 0);
101
+ }
102
+ subscribe(e) {
103
+ return !i(this, b) && !i(this, u).size && I(this), i(this, u).add(e), i(this, m) || e(i(this, s)), () => {
104
+ this.unsubscribe(e);
105
+ };
106
+ }
107
+ unsubscribe(e) {
108
+ i(this, u).delete(e), i(this, u).size || C(this);
109
+ }
110
+ reset() {
111
+ this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
112
+ }
113
+ close() {
114
+ i(this, u).clear(), C(this);
115
+ }
116
+ }
117
+ d = new WeakMap(), s = new WeakMap(), S = new WeakMap(), u = new WeakMap(), m = new WeakMap(), n = new WeakMap(), g = new WeakMap(), b = new WeakMap(), v = new WeakSet(), N = function() {
118
+ for (const e of i(this, u))
119
+ e(i(this, s));
120
+ };
121
+ const f = new q([], {
122
+ invisible: !0
123
+ });
124
+ function I(r) {
125
+ f.current.includes(r) || (f.current = [...f.current, r]);
126
+ }
127
+ function C(r) {
128
+ f.current.includes(r) && (f.current = f.current.filter((e) => e !== r));
129
+ }
130
+ export {
131
+ q as S,
132
+ f as a,
133
+ M as s
134
+ };
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,o=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,t,e)=>t in i?F(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,g=(i,t)=>{for(var e in t||(t={}))b.call(t,e)&&m(i,e,t[e]);if(c)for(var e of c(t))p.call(t,e)&&m(i,e,t[e]);return i},A=(i,t)=>o(i,O(t));var q=(i,t,e)=>t.has(i)||d("Cannot "+e);var a=(i,t,e)=>(q(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>t.has(i)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,s)=>(q(i,t,"write to private field"),s?s.call(i,e):t.set(i,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),S=require("./Animation-De9aUv3b.cjs");var n,r;class T extends S.Animation{constructor(e,s){super(e||0,s);u(this,n,w.linear);u(this,r,1e3);this.updateOptions(A(g({},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),f=a(this,n).call(this,C.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*f,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=T;
1
+ "use strict";var F=Object.defineProperty,o=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,t,e)=>t in i?F(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,g=(i,t)=>{for(var e in t||(t={}))b.call(t,e)&&m(i,e,t[e]);if(c)for(var e of c(t))p.call(t,e)&&m(i,e,t[e]);return i},A=(i,t)=>o(i,O(t));var q=(i,t,e)=>t.has(i)||d("Cannot "+e);var a=(i,t,e)=>(q(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>t.has(i)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,s)=>(q(i,t,"write to private field"),s?s.call(i,e):t.set(i,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),S=require("./Animation-DI864E0i.cjs");var n,r;class T extends S.Animation{constructor(e,s){super(e||0,s);u(this,n,w.linear);u(this,r,1e3);this.updateOptions(A(g({},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),f=a(this,n).call(this,C.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*f,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=T;
@@ -18,7 +18,7 @@ var n = (e, i, t) => (p(e, i, "read from private field"), t ? t.call(e) : i.get(
18
18
  import { l as S } from "./easings-BKi40vHz.js";
19
19
  import { c as T } from "./math-BOBiC4TN.js";
20
20
  import { n as A, p as q } from "./polyfills-X6KXuHg-.js";
21
- import { A as w } from "./Animation-NAGXiFv5.js";
21
+ import { A as w } from "./Animation-w6BLTCum.js";
22
22
  var s, r;
23
23
  class k extends w {
24
24
  constructor(t, a) {
@@ -1 +1 @@
1
- "use strict";var W=t=>{throw TypeError(t)};var k=(t,s,o)=>s.has(t)||W("Cannot "+o);var i=(t,s,o)=>(k(t,s,"read from private field"),o?o.call(t):s.get(t)),n=(t,s,o)=>s.has(t)?W("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,o),e=(t,s,o,v)=>(k(t,s,"write to private field"),v?v.call(t,o):s.set(t,o),o);const z=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),q=require("detect-gpu"),I=require("./Store-npaZHvX4.cjs");var r,l,m,c,g,u,w,x,d;class M{constructor(){n(this,r);n(this,l);n(this,m);n(this,c);n(this,g);n(this,u);n(this,w);n(this,x);n(this,d);var s,o;if(e(this,r,"unknown"),e(this,l,"unknown"),e(this,m,0),e(this,c,null),e(this,g,!1),e(this,u,!1),e(this,w,!1),e(this,x,!1),e(this,d,!1),this.resize=()=>{e(this,g,/Mobi|Android/i.test(navigator.userAgent)),e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},D.isBrowser){e(this,c,q.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),this.resize(),A.windowResizer.subscribe(this.resize,z.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&e(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,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];O.includes(E)?(e(this,r,"macOS"),e(this,d,!0)):T.includes(E)?(e(this,r,"iOS"),e(this,d,!0)):R.includes(E)?e(this,r,"Windows"):/Android/.test(v)?e(this,r,"Android"):/Linux/.test(E)?e(this,r,"Linux"):e(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 L=new M;var S=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(S||{}),C=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(C||{}),p,b,f,h;class _{constructor(){n(this,p);n(this,b);n(this,f);n(this,h);e(this,p,0),e(this,b,0),e(this,f,0),e(this,h,new I.Store(void 0)),this.resize=()=>{e(this,p,document.documentElement.clientWidth),e(this,b,innerHeight),e(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")},D.isBrowser&&(this.resize(),A.windowResizer.subscribe(this.resize,z.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 G=new _;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=L;exports.viewport=G;
1
+ "use strict";var W=t=>{throw TypeError(t)};var k=(t,s,o)=>s.has(t)||W("Cannot "+o);var i=(t,s,o)=>(k(t,s,"read from private field"),o?o.call(t):s.get(t)),n=(t,s,o)=>s.has(t)?W("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,o),e=(t,s,o,v)=>(k(t,s,"write to private field"),v?v.call(t,o):s.set(t,o),o);const z=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),q=require("detect-gpu"),I=require("./Store-CDb6RMce.cjs");var r,l,m,c,g,u,w,x,d;class M{constructor(){n(this,r);n(this,l);n(this,m);n(this,c);n(this,g);n(this,u);n(this,w);n(this,x);n(this,d);var s,o;if(e(this,r,"unknown"),e(this,l,"unknown"),e(this,m,0),e(this,c,null),e(this,g,!1),e(this,u,!1),e(this,w,!1),e(this,x,!1),e(this,d,!1),this.resize=()=>{e(this,g,/Mobi|Android/i.test(navigator.userAgent)),e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},D.isBrowser){e(this,c,q.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),this.resize(),A.windowResizer.subscribe(this.resize,z.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&e(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,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];O.includes(E)?(e(this,r,"macOS"),e(this,d,!0)):T.includes(E)?(e(this,r,"iOS"),e(this,d,!0)):R.includes(E)?e(this,r,"Windows"):/Android/.test(v)?e(this,r,"Android"):/Linux/.test(E)?e(this,r,"Linux"):e(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 L=new M;var S=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(S||{}),C=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(C||{}),p,b,f,h;class _{constructor(){n(this,p);n(this,b);n(this,f);n(this,h);e(this,p,0),e(this,b,0),e(this,f,0),e(this,h,new I.Store(void 0)),this.resize=()=>{e(this,p,document.documentElement.clientWidth),e(this,b,innerHeight),e(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")},D.isBrowser&&(this.resize(),A.windowResizer.subscribe(this.resize,z.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 G=new _;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=L;exports.viewport=G;
@@ -7,7 +7,7 @@ import { RESIZE_ORDER as A } from "./order/index.js";
7
7
  import { windowResizer as C } from "./window-resizer/index.js";
8
8
  import { i as D } from "./browser-0zX67oeU.js";
9
9
  import { getGPUTier as O } from "detect-gpu";
10
- import { S as I } from "./Store-C46i0nvr.js";
10
+ import { S as I } from "./Store-OTdcl6SX.js";
11
11
  var h, d, l, c, g, m, p, x, u;
12
12
  class L {
13
13
  constructor() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-De9aUv3b.cjs"),n=require("../Damped-DYJ6Z0xo.cjs"),i=require("../Tweened-BkkD9s4n.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-DI864E0i.cjs"),n=require("../Damped-ipnDc0iX.cjs"),i=require("../Tweened-B1TfANfR.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-NAGXiFv5.js";
2
- import { D as m } from "../Damped-DbJKrUIf.js";
3
- import { T as t } from "../Tweened-DOSHLCZa.js";
1
+ import { A as r } from "../Animation-w6BLTCum.js";
2
+ import { D as m } from "../Damped-DEHDEq-b.js";
3
+ import { T as t } from "../Tweened-C52xXDLY.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -1 +1 @@
1
- "use strict";var y=t=>{throw TypeError(t)};var v=(t,s,e)=>s.has(t)||y("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)=>s.has(t)?y("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),d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-npaZHvX4.cjs"),q=require("../attributes-Bf2svn4j.cjs"),p=require("../browser-CpzFX2xg.cjs"),w=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class O extends S.Store{constructor(e,a,A,l){super(A,l);c(this,o);c(this,i,null);c(this,u);c(this,n,null);c(this,b,!1);h(this,u,a),p.isBrowser&&(h(this,i,w.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=q.parseAttributeValue(e))};exports.Attribute=O;
1
+ "use strict";var y=t=>{throw TypeError(t)};var v=(t,s,e)=>s.has(t)||y("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)=>s.has(t)?y("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),d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-CDb6RMce.cjs"),q=require("../attributes-Bf2svn4j.cjs"),p=require("../browser-CpzFX2xg.cjs"),w=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class O extends S.Store{constructor(e,a,A,l){super(A,l);c(this,o);c(this,i,null);c(this,u);c(this,n,null);c(this,b,!1);h(this,u,a),p.isBrowser&&(h(this,i,w.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=q.parseAttributeValue(e))};exports.Attribute=O;
@@ -3,7 +3,7 @@ var g = (t) => {
3
3
  };
4
4
  var m = (t, e, s) => e.has(t) || g("Cannot " + s);
5
5
  var r = (t, e, s) => (m(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => e.has(t) ? g("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s), v = (t, e, s) => (m(t, e, "access private method"), s);
6
- import { S as y } from "../Store-C46i0nvr.js";
6
+ import { S as y } from "../Store-OTdcl6SX.js";
7
7
  import { p as S } from "../attributes-69we3byR.js";
8
8
  import { i as w } from "../browser-0zX67oeU.js";
9
9
  import { g as x } from "../dom-0S_WDL4g.js";
@@ -1,7 +1 @@
1
- "use strict";var C=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||C("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),n=(i,s,e)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,v)=>(w(i,s,"write to private field"),v?v.call(i,e):s.set(i,e),e),o=(i,s,e)=>(w(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../css-property/index.cjs"),f=require("../element-resizer/index.cjs"),R=require("../ticker/index.cjs"),B=require("../browser-CpzFX2xg.cjs"),F=require("../math-GDWEqu7y.cjs");var a,r,d,l,u,m,b,g,h,E,P,x,p,y,z;class k extends HTMLElement{constructor(){super();n(this,h);n(this,a,new q.CSSProperty(this,"--fps",0));n(this,r,null);n(this,d,null);n(this,l,0);n(this,u,0);n(this,m,1);n(this,b,0);n(this,g,1);n(this,x,e=>{c(this,m,F.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,u,e.contentRect.height),t(this,r).width=t(this,l)*this.pixelRatio,t(this,r).height=t(this,u)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,h,z).call(this),o(this,h,y).call(this)});n(this,p,e=>{c(this,b,e.timestamp),c(this,g,e.timeBetweenFrames),o(this,h,y).call(this)});if(B.isBrowser){const e=new CSSStyleSheet;e.replaceSync(`
2
- :host, canvas {
3
- display: block;
4
- width: 100%;
5
- height: 100%;
6
- }
7
- `);const v=this.attachShadow({mode:"open"});v.adoptedStyleSheets.push(e),c(this,r,document.createElement("canvas")),c(this,d,t(this,r).getContext("2d")),v.appendChild(t(this,r)),t(this,a).subscribe(S=>{typeof S.previous!="undefined"&&S.current!==S.previous&&o(this,h,E).call(this)})}}get fpsCSSProperty(){return t(this,a)}get canvasElement(){return t(this,r)}get context(){return t(this,d)}get pixelRatio(){return t(this,m)}get width(){return t(this,l)}get height(){return t(this,u)}get detail(){return{width:t(this,l),height:t(this,u),element:this,canvasElement:t(this,r),pixelRatio:t(this,m),context:t(this,d),timestamp:t(this,b),timeBetweenFrames:t(this,g)}}connectedCallback(){t(this,a).observe(),f.elementResizer.subscribe(this,t(this,x)),o(this,h,E).call(this)}disconnectedCallback(){t(this,a).unobserve(),f.elementResizer.unsubscribe(t(this,x)),o(this,h,P).call(this)}}a=new WeakMap,r=new WeakMap,d=new WeakMap,l=new WeakMap,u=new WeakMap,m=new WeakMap,b=new WeakMap,g=new WeakMap,h=new WeakSet,E=function(){R.ticker.unsubscribe(t(this,p)),this.hasAttribute("static")||R.ticker.subscribe(t(this,p),{culling:this,maxFPS:t(this,a).current})},P=function(){R.ticker.unsubscribe(t(this,p))},x=new WeakMap,p=new WeakMap,y=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},z=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};customElements.get("e-canvas")||customElements.define("e-canvas",k);exports.CanvasElement=k;
1
+ "use strict";var f=i=>{throw TypeError(i)};var R=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(R(i,s,"read from private field"),e?e.call(i):s.get(i)),n=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),a=(i,s,e,d)=>(R(i,s,"write to private field"),d?d.call(i,e):s.set(i,e),e),o=(i,s,e)=>(R(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../css-property/index.cjs"),C=require("../element-resizer/index.cjs"),w=require("../ticker/index.cjs"),z=require("../browser-CpzFX2xg.cjs"),B=require("../jss-GJLvaNfT.cjs"),F=require("../math-GDWEqu7y.cjs");var c,r,m,l,u,p,b,g,h,E,k,x,v,S,P;class y extends HTMLElement{constructor(){super();n(this,h);n(this,c,new q.CSSProperty(this,"--fps",0));n(this,r,null);n(this,m,null);n(this,l,0);n(this,u,0);n(this,p,1);n(this,b,0);n(this,g,1);n(this,x,e=>{a(this,p,F.clamp(devicePixelRatio,1,2)),a(this,l,e.contentRect.width),a(this,u,e.contentRect.height),t(this,r).width=t(this,l)*this.pixelRatio,t(this,r).height=t(this,u)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,h,P).call(this),o(this,h,S).call(this)});n(this,v,e=>{a(this,b,e.timestamp),a(this,g,e.timeBetweenFrames),o(this,h,S).call(this)});if(z.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets.push(B.createStylesheet({" :host, canvas":{display:"block",width:"100%",height:"100%"}})),a(this,r,document.createElement("canvas")),a(this,m,t(this,r).getContext("2d")),e.appendChild(t(this,r)),t(this,c).subscribe(d=>{typeof d.previous!="undefined"&&d.current!==d.previous&&o(this,h,E).call(this)})}}get fpsCSSProperty(){return t(this,c)}get canvasElement(){return t(this,r)}get context(){return t(this,m)}get pixelRatio(){return t(this,p)}get width(){return t(this,l)}get height(){return t(this,u)}get detail(){return{width:t(this,l),height:t(this,u),element:this,canvasElement:t(this,r),pixelRatio:t(this,p),context:t(this,m),timestamp:t(this,b),timeBetweenFrames:t(this,g)}}connectedCallback(){t(this,c).observe(),C.elementResizer.subscribe(this,t(this,x)),o(this,h,E).call(this)}disconnectedCallback(){t(this,c).unobserve(),C.elementResizer.unsubscribe(t(this,x)),o(this,h,k).call(this)}}c=new WeakMap,r=new WeakMap,m=new WeakMap,l=new WeakMap,u=new WeakMap,p=new WeakMap,b=new WeakMap,g=new WeakMap,h=new WeakSet,E=function(){w.ticker.unsubscribe(t(this,v)),this.hasAttribute("static")||w.ticker.subscribe(t(this,v),{culling:this,maxFPS:t(this,c).current})},k=function(){w.ticker.unsubscribe(t(this,v))},x=new WeakMap,v=new WeakMap,S=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},P=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};customElements.get("e-canvas")||customElements.define("e-canvas",y);exports.CanvasElement=y;
@@ -1,99 +1,100 @@
1
- var C = (i) => {
1
+ var S = (i) => {
2
2
  throw TypeError(i);
3
3
  };
4
- var S = (i, s, e) => s.has(i) || C("Cannot " + e);
5
- var t = (i, s, e) => (S(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => s.has(i) ? C("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), a = (i, s, e, v) => (S(i, s, "write to private field"), v ? v.call(i, e) : s.set(i, e), e), o = (i, s, e) => (S(i, s, "access private method"), e);
6
- import { CSSProperty as z } from "../css-property/index.js";
7
- import { elementResizer as y } from "../element-resizer/index.js";
8
- import { ticker as f } from "../ticker/index.js";
9
- import { i as B } from "../browser-0zX67oeU.js";
4
+ var x = (i, s, e) => s.has(i) || S("Cannot " + e);
5
+ var t = (i, s, e) => (x(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => s.has(i) ? S("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), a = (i, s, e, p) => (x(i, s, "write to private field"), p ? p.call(i, e) : s.set(i, e), e), c = (i, s, e) => (x(i, s, "access private method"), e);
6
+ import { CSSProperty as P } from "../css-property/index.js";
7
+ import { elementResizer as C } from "../element-resizer/index.js";
8
+ import { ticker as w } from "../ticker/index.js";
9
+ import { i as z } from "../browser-0zX67oeU.js";
10
+ import { c as B } from "../jss-CjccJC-K.js";
10
11
  import { c as F } from "../math-BOBiC4TN.js";
11
- var c, r, p, l, m, d, b, g, n, R, k, w, u, E, P;
12
+ var o, r, d, m, l, u, b, f, n, R, y, g, v, E, k;
12
13
  class L extends HTMLElement {
13
14
  constructor() {
14
15
  super();
15
16
  h(this, n);
16
- h(this, c, new z(this, "--fps", 0));
17
+ h(this, o, new P(this, "--fps", 0));
17
18
  h(this, r, null);
18
- h(this, p, null);
19
- h(this, l, 0);
19
+ h(this, d, null);
20
20
  h(this, m, 0);
21
- h(this, d, 1);
21
+ h(this, l, 0);
22
+ h(this, u, 1);
22
23
  h(this, b, 0);
23
- h(this, g, 1);
24
- h(this, w, (e) => {
25
- a(this, d, F(devicePixelRatio, 1, 2)), a(this, l, e.contentRect.width), a(this, m, e.contentRect.height), t(this, r).width = t(this, l) * this.pixelRatio, t(this, r).height = t(this, m) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), o(this, n, P).call(this), o(this, n, E).call(this);
24
+ h(this, f, 1);
25
+ h(this, g, (e) => {
26
+ a(this, u, F(devicePixelRatio, 1, 2)), a(this, m, e.contentRect.width), a(this, l, e.contentRect.height), t(this, r).width = t(this, m) * this.pixelRatio, t(this, r).height = t(this, l) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), c(this, n, k).call(this), c(this, n, E).call(this);
26
27
  });
27
- h(this, u, (e) => {
28
- a(this, b, e.timestamp), a(this, g, e.timeBetweenFrames), o(this, n, E).call(this);
28
+ h(this, v, (e) => {
29
+ a(this, b, e.timestamp), a(this, f, e.timeBetweenFrames), c(this, n, E).call(this);
29
30
  });
30
- if (B) {
31
- const e = new CSSStyleSheet();
32
- e.replaceSync(`
33
- :host, canvas {
34
- display: block;
35
- width: 100%;
36
- height: 100%;
37
- }
38
- `);
39
- const v = this.attachShadow({ mode: "open" });
40
- v.adoptedStyleSheets.push(e), a(this, r, document.createElement("canvas")), a(this, p, t(this, r).getContext("2d")), v.appendChild(t(this, r)), t(this, c).subscribe((x) => {
41
- typeof x.previous != "undefined" && x.current !== x.previous && o(this, n, R).call(this);
31
+ if (z) {
32
+ const e = this.attachShadow({ mode: "open" });
33
+ e.adoptedStyleSheets.push(
34
+ B({
35
+ " :host, canvas": {
36
+ display: "block",
37
+ width: "100%",
38
+ height: "100%"
39
+ }
40
+ })
41
+ ), a(this, r, document.createElement("canvas")), a(this, d, t(this, r).getContext("2d")), e.appendChild(t(this, r)), t(this, o).subscribe((p) => {
42
+ typeof p.previous != "undefined" && p.current !== p.previous && c(this, n, R).call(this);
42
43
  });
43
44
  }
44
45
  }
45
46
  get fpsCSSProperty() {
46
- return t(this, c);
47
+ return t(this, o);
47
48
  }
48
49
  get canvasElement() {
49
50
  return t(this, r);
50
51
  }
51
52
  get context() {
52
- return t(this, p);
53
+ return t(this, d);
53
54
  }
54
55
  get pixelRatio() {
55
- return t(this, d);
56
+ return t(this, u);
56
57
  }
57
58
  get width() {
58
- return t(this, l);
59
+ return t(this, m);
59
60
  }
60
61
  get height() {
61
- return t(this, m);
62
+ return t(this, l);
62
63
  }
63
64
  get detail() {
64
65
  return {
65
- width: t(this, l),
66
- height: t(this, m),
66
+ width: t(this, m),
67
+ height: t(this, l),
67
68
  element: this,
68
69
  canvasElement: t(this, r),
69
- pixelRatio: t(this, d),
70
- context: t(this, p),
70
+ pixelRatio: t(this, u),
71
+ context: t(this, d),
71
72
  timestamp: t(this, b),
72
- timeBetweenFrames: t(this, g)
73
+ timeBetweenFrames: t(this, f)
73
74
  };
74
75
  }
75
76
  connectedCallback() {
76
- t(this, c).observe(), y.subscribe(this, t(this, w)), o(this, n, R).call(this);
77
+ t(this, o).observe(), C.subscribe(this, t(this, g)), c(this, n, R).call(this);
77
78
  }
78
79
  disconnectedCallback() {
79
- t(this, c).unobserve(), y.unsubscribe(t(this, w)), o(this, n, k).call(this);
80
+ t(this, o).unobserve(), C.unsubscribe(t(this, g)), c(this, n, y).call(this);
80
81
  }
81
82
  }
82
- c = new WeakMap(), r = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), d = new WeakMap(), b = new WeakMap(), g = new WeakMap(), n = new WeakSet(), R = function() {
83
- f.unsubscribe(t(this, u)), this.hasAttribute("static") || f.subscribe(t(this, u), {
83
+ o = new WeakMap(), r = new WeakMap(), d = new WeakMap(), m = new WeakMap(), l = new WeakMap(), u = new WeakMap(), b = new WeakMap(), f = new WeakMap(), n = new WeakSet(), R = function() {
84
+ w.unsubscribe(t(this, v)), this.hasAttribute("static") || w.subscribe(t(this, v), {
84
85
  culling: this,
85
- maxFPS: t(this, c).current
86
+ maxFPS: t(this, o).current
86
87
  });
87
- }, k = function() {
88
- f.unsubscribe(t(this, u));
89
- }, w = new WeakMap(), u = new WeakMap(), E = function() {
88
+ }, y = function() {
89
+ w.unsubscribe(t(this, v));
90
+ }, g = new WeakMap(), v = new WeakMap(), E = function() {
90
91
  this.dispatchEvent(
91
92
  new CustomEvent("canvasRender", {
92
93
  composed: !0,
93
94
  detail: this.detail
94
95
  })
95
96
  );
96
- }, P = function() {
97
+ }, k = function() {
97
98
  this.dispatchEvent(
98
99
  new CustomEvent("canvasResize", {
99
100
  composed: !0,
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty,f=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=e=>{throw TypeError(e)};var a=(e,s,t)=>s in e?m(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,l=(e,s)=>{for(var t in s||(s={}))T.call(s,t)&&a(e,t,s[t]);if(u)for(var t of u(s))g.call(s,t)&&a(e,t,s[t]);return e},o=(e,s)=>f(e,L(s));var h=(e,s,t)=>s.has(e)||c("Cannot "+t);var n=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>s.has(e)?c("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),b=(e,s,t,r)=>(h(e,s,"write to private field"),r?r.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../Store-npaZHvX4.cjs"),S=require("../string-DhgS_iFl.cjs");var i;class q extends p.Store{constructor(t,r){super(r);d(this,i);b(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=o(l({},this.current),{[t]:r}),r?n(this,i).classList.add(S.camelToKebab(t)):n(this,i).classList.remove(S.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=q;
1
+ "use strict";var m=Object.defineProperty,f=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=e=>{throw TypeError(e)};var a=(e,s,t)=>s in e?m(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,l=(e,s)=>{for(var t in s||(s={}))T.call(s,t)&&a(e,t,s[t]);if(u)for(var t of u(s))g.call(s,t)&&a(e,t,s[t]);return e},o=(e,s)=>f(e,L(s));var h=(e,s,t)=>s.has(e)||c("Cannot "+t);var n=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>s.has(e)?c("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),b=(e,s,t,r)=>(h(e,s,"write to private field"),r?r.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../Store-CDb6RMce.cjs"),S=require("../string-DhgS_iFl.cjs");var i;class q extends p.Store{constructor(t,r){super(r);d(this,i);b(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=o(l({},this.current),{[t]:r}),r?n(this,i).classList.add(S.camelToKebab(t)):n(this,i).classList.remove(S.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=q;
@@ -15,7 +15,7 @@ var c = (t, e, s) => e in t ? d(t, e, { enumerable: !0, configurable: !0, writab
15
15
  }, h = (t, e) => L(t, S(e));
16
16
  var l = (t, e, s) => e.has(t) || o("Cannot " + s);
17
17
  var n = (t, e, s) => (l(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? o("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), f = (t, e, s, r) => (l(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
18
- import { S as T } from "../Store-C46i0nvr.js";
18
+ import { S as T } from "../Store-OTdcl6SX.js";
19
19
  import { c as p } from "../string-f0Dnk0L1.js";
20
20
  var i;
21
21
  class g extends T {
@@ -1 +1 @@
1
- "use strict";var Q=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||Q("Cannot "+e);var t=(h,n,e)=>(F(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?Q("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,a)=>(F(h,n,"write to private field"),a?a.call(h,e):n.set(h,e),e),M=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),j=require("../dom-JBOkFLTh.cjs"),k=require("../ticker/index.cjs");require("../Store-npaZHvX4.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-BkkD9s4n.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.cjs"),_=require("../order/index.cjs");var S;class K{constructor(){s(this,S,new V.Notifier)}get changeEvent(){return t(this,S)}}S=new WeakMap;var w,d,u,D;class p extends K{constructor(e){super();s(this,w,null);s(this,d,null);s(this,u,"offsetHeight");s(this,D,e=>{const a=e.shiftKey?-1:1;let r;e.code==="Space"?r=a*t(this,d)[t(this,u)]*.4:e.code==="ArrowLeft"?r=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowRight"?r=1*t(this,d)[t(this,u)]*.2:e.code==="ArrowUp"?r=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowDown"?r=1*t(this,d)[t(this,u)]*.2:e.code==="PageUp"?r=-1*t(this,d)[t(this,u)]:e.code==="PageDown"?r=1*t(this,d)[t(this,u)]:e.code==="Home"?r=0:e.code==="End"&&(r=t(this,u)==="offsetWidth"?t(this,d).scrollWidth:t(this,d).scrollHeight),r&&(e.stopPropagation(),this.changeEvent.notify("keyboard",r))});m.isBrowser&&(i(this,w,e!=null&&e.element&&j.getElement(e.element)||window),i(this,d,t(this,w)instanceof HTMLElement?t(this,w):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){m.isBrowser&&t(this,w).addEventListener("keydown",t(this,D))}disconnect(){m.isBrowser&&t(this,w).removeEventListener("keydown",t(this,D))}}w=new WeakMap,d=new WeakMap,u=new WeakMap,D=new WeakMap;var b,E,H,P,l,C,f,o,R,N,q,W,B;class ee extends K{constructor(e){super();s(this,o);s(this,b);s(this,E);s(this,H);s(this,P);s(this,l);s(this,C);s(this,f);s(this,q);s(this,W);s(this,B);this.direction=1,i(this,l,new J.Tweened(0,{easing:G.easeInQuad})),i(this,f,!1),i(this,q,a=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",a.timeBetweenFrames*t(this,b)*this.direction*(1-t(this,l).current))}),i(this,W,()=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,b))*this.direction*(1-t(this,l).current))}),i(this,B,()=>{t(this,E)&&(document.hidden?t(this,l).set(1,{equalize:!0}):t(this,l).set(0,{equalize:!0}))}),i(this,b,(e==null?void 0:e.speed)||1),i(this,E,(e==null?void 0:e.interval)||!1),i(this,H,e)}set interval(e){i(this,E,e),t(this,f)&&M(this,o,R).call(this)}set speed(e){i(this,b,e),t(this,f)&&M(this,o,R).call(this)}connect(){t(this,f)||(i(this,f,!0),M(this,o,R).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),M(this,o,N).call(this))}pauseAndContinue(e){e&&!t(this,l).target&&(clearInterval(t(this,C)),t(this,l).set(1,{duration:Math.min(e,1e3)}),i(this,C,setTimeout(()=>{t(this,l).set(0,{duration:Math.min(e,5e3)})},e)))}}b=new WeakMap,E=new WeakMap,H=new WeakMap,P=new WeakMap,l=new WeakMap,C=new WeakMap,f=new WeakMap,o=new WeakSet,R=function(){M(this,o,N).call(this),t(this,E)?i(this,P,setInterval(t(this,W),Math.abs(t(this,b)))):k.ticker.subscribe(t(this,q),t(this,H)),document.addEventListener("visibilitychange",t(this,B))},N=function(){clearInterval(t(this,P)),k.ticker.unsubscribe(t(this,q)),clearInterval(t(this,C)),t(this,l).close(),document.removeEventListener("visibilitychange",t(this,B))},q=new WeakMap,W=new WeakMap,B=new WeakMap;var T,x,I,X;class te extends K{constructor(e){super();s(this,T,null);s(this,x);s(this,I);s(this,X,e=>{let a=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(a=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const r=Date.now();if(r-t(this,I)>40&&(a=100*Math.sign(a)),i(this,I,r),Math.abs(a)<100||t(this,x))return;this.changeEvent.notify("wheel",a),i(this,x,setTimeout(()=>{i(this,x,void 0)},80))}else this.changeEvent.notify("wheel",a)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,I,Date.now()),m.isBrowser&&i(this,T,e!=null&&e.element&&j.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,T).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){m.isBrowser&&(t(this,T).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,x)))}}T=new WeakMap,x=new WeakMap,I=new WeakMap,X=new WeakMap;var v,g,A,c,Y,L;const y=class y extends K{constructor(e){super();s(this,g,null);s(this,A,!1);s(this,c,0);s(this,Y,e=>{if(e.composedPath().find(r=>r instanceof HTMLElement&&r.hasAttribute("drag-dead-zone")))return;this.swipe||k.ticker.unsubscribe(t(this,L));let a=e;i(this,c,0),document.documentElement.classList.add("grabbing"),Z.setupDrag(r=>{if(t(this,A)||t(y,v)&&t(y,v)!==t(this,g))return;this.swipe&&i(this,A,!0);const z=a.x-r.x,O=a.y-r.y;this.axis==="x"?i(this,c,z):i(this,c,O),a=r,(this.axis==="x"&&Math.abs(z)>Math.abs(O)||this.axis==="y"&&Math.abs(O)>Math.abs(z))&&(i(y,v,t(this,g)),this.changeEvent.notify("drag",t(this,c)))},()=>{i(y,v,null),this.swipe||(i(this,c,t(this,c)*3),k.ticker.subscribe(t(this,L),{order:_.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,L,()=>{Math.floor(t(this,c))||k.ticker.unsubscribe(t(this,L)),i(this,c,t(this,c)*.95),i(this,c,$.preciseNumber(t(this,c),3)),this.changeEvent.notify("drag",t(this,c))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,m.isBrowser&&i(this,g,e!=null&&e.element&&j.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,g).addEventListener("pointerdown",t(this,Y))}disconnect(){m.isBrowser&&(t(this,g).removeEventListener("pointerdown",t(this,Y)),k.ticker.unsubscribe(t(this,L)))}};v=new WeakMap,g=new WeakMap,A=new WeakMap,c=new WeakMap,Y=new WeakMap,L=new WeakMap,s(y,v,null);let U=y;exports.AutoplayControls=ee;exports.Controls=K;exports.DragControls=U;exports.KeyboardControls=p;exports.WheelControls=te;
1
+ "use strict";var Q=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||Q("Cannot "+e);var t=(h,n,e)=>(F(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?Q("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,a)=>(F(h,n,"write to private field"),a?a.call(h,e):n.set(h,e),e),M=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),j=require("../dom-JBOkFLTh.cjs"),k=require("../ticker/index.cjs");require("../Store-CDb6RMce.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-B1TfANfR.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.cjs"),_=require("../order/index.cjs");var S;class K{constructor(){s(this,S,new V.Notifier)}get changeEvent(){return t(this,S)}}S=new WeakMap;var w,d,u,D;class p extends K{constructor(e){super();s(this,w,null);s(this,d,null);s(this,u,"offsetHeight");s(this,D,e=>{const a=e.shiftKey?-1:1;let r;e.code==="Space"?r=a*t(this,d)[t(this,u)]*.4:e.code==="ArrowLeft"?r=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowRight"?r=1*t(this,d)[t(this,u)]*.2:e.code==="ArrowUp"?r=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowDown"?r=1*t(this,d)[t(this,u)]*.2:e.code==="PageUp"?r=-1*t(this,d)[t(this,u)]:e.code==="PageDown"?r=1*t(this,d)[t(this,u)]:e.code==="Home"?r=0:e.code==="End"&&(r=t(this,u)==="offsetWidth"?t(this,d).scrollWidth:t(this,d).scrollHeight),r&&(e.stopPropagation(),this.changeEvent.notify("keyboard",r))});m.isBrowser&&(i(this,w,e!=null&&e.element&&j.getElement(e.element)||window),i(this,d,t(this,w)instanceof HTMLElement?t(this,w):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){m.isBrowser&&t(this,w).addEventListener("keydown",t(this,D))}disconnect(){m.isBrowser&&t(this,w).removeEventListener("keydown",t(this,D))}}w=new WeakMap,d=new WeakMap,u=new WeakMap,D=new WeakMap;var b,E,H,P,l,C,f,o,R,N,q,W,B;class ee extends K{constructor(e){super();s(this,o);s(this,b);s(this,E);s(this,H);s(this,P);s(this,l);s(this,C);s(this,f);s(this,q);s(this,W);s(this,B);this.direction=1,i(this,l,new J.Tweened(0,{easing:G.easeInQuad})),i(this,f,!1),i(this,q,a=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",a.timeBetweenFrames*t(this,b)*this.direction*(1-t(this,l).current))}),i(this,W,()=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,b))*this.direction*(1-t(this,l).current))}),i(this,B,()=>{t(this,E)&&(document.hidden?t(this,l).set(1,{equalize:!0}):t(this,l).set(0,{equalize:!0}))}),i(this,b,(e==null?void 0:e.speed)||1),i(this,E,(e==null?void 0:e.interval)||!1),i(this,H,e)}set interval(e){i(this,E,e),t(this,f)&&M(this,o,R).call(this)}set speed(e){i(this,b,e),t(this,f)&&M(this,o,R).call(this)}connect(){t(this,f)||(i(this,f,!0),M(this,o,R).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),M(this,o,N).call(this))}pauseAndContinue(e){e&&!t(this,l).target&&(clearInterval(t(this,C)),t(this,l).set(1,{duration:Math.min(e,1e3)}),i(this,C,setTimeout(()=>{t(this,l).set(0,{duration:Math.min(e,5e3)})},e)))}}b=new WeakMap,E=new WeakMap,H=new WeakMap,P=new WeakMap,l=new WeakMap,C=new WeakMap,f=new WeakMap,o=new WeakSet,R=function(){M(this,o,N).call(this),t(this,E)?i(this,P,setInterval(t(this,W),Math.abs(t(this,b)))):k.ticker.subscribe(t(this,q),t(this,H)),document.addEventListener("visibilitychange",t(this,B))},N=function(){clearInterval(t(this,P)),k.ticker.unsubscribe(t(this,q)),clearInterval(t(this,C)),t(this,l).close(),document.removeEventListener("visibilitychange",t(this,B))},q=new WeakMap,W=new WeakMap,B=new WeakMap;var T,x,I,X;class te extends K{constructor(e){super();s(this,T,null);s(this,x);s(this,I);s(this,X,e=>{let a=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(a=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const r=Date.now();if(r-t(this,I)>40&&(a=100*Math.sign(a)),i(this,I,r),Math.abs(a)<100||t(this,x))return;this.changeEvent.notify("wheel",a),i(this,x,setTimeout(()=>{i(this,x,void 0)},80))}else this.changeEvent.notify("wheel",a)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,I,Date.now()),m.isBrowser&&i(this,T,e!=null&&e.element&&j.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,T).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){m.isBrowser&&(t(this,T).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,x)))}}T=new WeakMap,x=new WeakMap,I=new WeakMap,X=new WeakMap;var v,g,A,c,Y,L;const y=class y extends K{constructor(e){super();s(this,g,null);s(this,A,!1);s(this,c,0);s(this,Y,e=>{if(e.composedPath().find(r=>r instanceof HTMLElement&&r.hasAttribute("drag-dead-zone")))return;this.swipe||k.ticker.unsubscribe(t(this,L));let a=e;i(this,c,0),document.documentElement.classList.add("grabbing"),Z.setupDrag(r=>{if(t(this,A)||t(y,v)&&t(y,v)!==t(this,g))return;this.swipe&&i(this,A,!0);const z=a.x-r.x,O=a.y-r.y;this.axis==="x"?i(this,c,z):i(this,c,O),a=r,(this.axis==="x"&&Math.abs(z)>Math.abs(O)||this.axis==="y"&&Math.abs(O)>Math.abs(z))&&(i(y,v,t(this,g)),this.changeEvent.notify("drag",t(this,c)))},()=>{i(y,v,null),this.swipe||(i(this,c,t(this,c)*3),k.ticker.subscribe(t(this,L),{order:_.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,L,()=>{Math.floor(t(this,c))||k.ticker.unsubscribe(t(this,L)),i(this,c,t(this,c)*.95),i(this,c,$.preciseNumber(t(this,c),3)),this.changeEvent.notify("drag",t(this,c))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,m.isBrowser&&i(this,g,e!=null&&e.element&&j.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,g).addEventListener("pointerdown",t(this,Y))}disconnect(){m.isBrowser&&(t(this,g).removeEventListener("pointerdown",t(this,Y)),k.ticker.unsubscribe(t(this,L)))}};v=new WeakMap,g=new WeakMap,A=new WeakMap,c=new WeakMap,Y=new WeakMap,L=new WeakMap,s(y,v,null);let U=y;exports.AutoplayControls=ee;exports.Controls=K;exports.DragControls=U;exports.KeyboardControls=p;exports.WheelControls=te;
@@ -7,9 +7,9 @@ import { Notifier as j } from "../notifier/index.js";
7
7
  import { i as m } from "../browser-0zX67oeU.js";
8
8
  import { g as U } from "../dom-0S_WDL4g.js";
9
9
  import { ticker as I } from "../ticker/index.js";
10
- import "../Store-C46i0nvr.js";
10
+ import "../Store-OTdcl6SX.js";
11
11
  import { e as G } from "../easings-BKi40vHz.js";
12
- import { T as J } from "../Tweened-DOSHLCZa.js";
12
+ import { T as J } from "../Tweened-C52xXDLY.js";
13
13
  import { s as Z } from "../gestures-D2Fdra_G.js";
14
14
  import { p as $ } from "../polyfills-X6KXuHg-.js";
15
15
  import { TICK_ORDER as p } from "../order/index.js";
@@ -1 +1 @@
1
- "use strict";var w=s=>{throw TypeError(s)};var f=(s,r,e)=>r.has(s)||w("Cannot "+e);var t=(s,r,e)=>(f(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>r.has(s)?w("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),i=(s,r,e,n)=>(f(s,r,"write to private field"),n?n.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../css-value-parser/index.cjs"),g=require("../order/index.cjs"),p=require("../Store-npaZHvX4.cjs"),v=require("../dom-JBOkFLTh.cjs"),R=require("../window-resizer/index.cjs");var a,b,u,o,h,l;class y extends p.Store{constructor(e,n,d,S){super(d,S);c(this,a);c(this,b);c(this,u);c(this,o);c(this,h,!1);c(this,l,()=>{this.check()});i(this,a,v.getElement(e)),i(this,b,n),i(this,u,d.toString()),i(this,o,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,u)}observe(){t(this,h)||(i(this,h,!0),R.windowResizer.subscribe(t(this,l),g.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,h)&&(i(this,h,!1),R.windowResizer.unsubscribe(t(this,l)))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,a)).getPropertyValue(t(this,b));if(!(t(this,o)&&t(this,u)===e))if(i(this,u,e),e){const n=V.cssValueParser.parse(t(this,u));this.current=n}else this.current=this.initial}}a=new WeakMap,b=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakMap,l=new WeakMap;exports.CSSProperty=y;
1
+ "use strict";var w=s=>{throw TypeError(s)};var f=(s,r,e)=>r.has(s)||w("Cannot "+e);var t=(s,r,e)=>(f(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>r.has(s)?w("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),i=(s,r,e,n)=>(f(s,r,"write to private field"),n?n.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../css-value-parser/index.cjs"),g=require("../order/index.cjs"),p=require("../Store-CDb6RMce.cjs"),v=require("../dom-JBOkFLTh.cjs"),R=require("../window-resizer/index.cjs");var a,b,u,o,h,l;class y extends p.Store{constructor(e,n,d,S){super(d,S);c(this,a);c(this,b);c(this,u);c(this,o);c(this,h,!1);c(this,l,()=>{this.check()});i(this,a,v.getElement(e)),i(this,b,n),i(this,u,d.toString()),i(this,o,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,u)}observe(){t(this,h)||(i(this,h,!0),R.windowResizer.subscribe(t(this,l),g.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,h)&&(i(this,h,!1),R.windowResizer.unsubscribe(t(this,l)))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,a)).getPropertyValue(t(this,b));if(!(t(this,o)&&t(this,u)===e))if(i(this,u,e),e){const n=V.cssValueParser.parse(t(this,u));this.current=n}else this.current=this.initial}}a=new WeakMap,b=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakMap,l=new WeakMap;exports.CSSProperty=y;
@@ -5,7 +5,7 @@ var S = (s, r, e) => r.has(s) || p("Cannot " + e);
5
5
  var t = (s, r, e) => (S(s, r, "read from private field"), e ? e.call(s) : r.get(s)), h = (s, r, e) => r.has(s) ? p("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), i = (s, r, e, a) => (S(s, r, "write to private field"), a ? a.call(s, e) : r.set(s, e), e);
6
6
  import { cssValueParser as R } from "../css-value-parser/index.js";
7
7
  import { RESIZE_ORDER as V } from "../order/index.js";
8
- import { S as g } from "../Store-C46i0nvr.js";
8
+ import { S as g } from "../Store-OTdcl6SX.js";
9
9
  import { g as v } from "../dom-0S_WDL4g.js";
10
10
  import { windowResizer as w } from "../window-resizer/index.js";
11
11
  var b, o, u, l, c, n;
package/lib/dev/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-npaZHvX4.cjs"),c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-CDb6RMce.cjs"),c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
package/lib/dev/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CSSProperty as o } from "../css-property/index.js";
2
- import { a as t } from "../Store-C46i0nvr.js";
2
+ import { a as t } from "../Store-OTdcl6SX.js";
3
3
  import { ticker as c } from "../ticker/index.js";
4
4
  function s() {
5
5
  c.subscribe(() => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-Cv4TRGiv.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-BDPsnAF4.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
@@ -1,4 +1,4 @@
1
- import { V as i, a as o, d as r, v as s } from "../Viewport-B55BvLsV.js";
1
+ import { V as i, a as o, d as r, v as s } from "../Viewport-taEXS8Uv.js";
2
2
  export {
3
3
  i as ViewportBreakpoints,
4
4
  o as ViewportMediaRules,