aptechka 0.50.28 → 0.51.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 (57) hide show
  1. package/lib/{Animation-FtUeV8dp.js → Animation-eO5_LIJl.js} +1 -1
  2. package/lib/{Animation-ChZNIOTS.cjs → Animation-rTojHgyz.cjs} +1 -1
  3. package/lib/{Damped-B1lXa9nb.cjs → Damped-DgAIjXp3.cjs} +1 -1
  4. package/lib/{Damped-BXsGpI-B.js → Damped-GyAS-U-z.js} +1 -1
  5. package/lib/Store-GokLe_g-.cjs +1 -0
  6. package/lib/Store-swP_0ymB.js +134 -0
  7. package/lib/{Tweened-BhDWLNF0.js → Tweened-BSC-evuL.js} +1 -1
  8. package/lib/{Tweened-cJ36zq1A.cjs → Tweened-DpJDlbj9.cjs} +1 -1
  9. package/lib/animation/index.cjs +1 -1
  10. package/lib/animation/index.js +3 -3
  11. package/lib/attribute/index.cjs +1 -1
  12. package/lib/attribute/index.d.ts +1 -1
  13. package/lib/attribute/index.js +27 -27
  14. package/lib/class-linked-status/index.cjs +1 -1
  15. package/lib/class-linked-status/index.js +1 -1
  16. package/lib/controls/index.cjs +1 -1
  17. package/lib/controls/index.js +2 -2
  18. package/lib/css-property/index.cjs +1 -1
  19. package/lib/css-property/index.d.ts +1 -1
  20. package/lib/css-property/index.js +28 -28
  21. package/lib/dev/index.cjs +1 -1
  22. package/lib/dev/index.js +1 -1
  23. package/lib/device/index.cjs +1 -1
  24. package/lib/device/index.js +1 -1
  25. package/lib/iframe/index.cjs +1 -1
  26. package/lib/iframe/index.js +1 -1
  27. package/lib/image/index.cjs +1 -1
  28. package/lib/image/index.js +1 -1
  29. package/lib/ladder/index.cjs +1 -1
  30. package/lib/ladder/index.js +1 -1
  31. package/lib/media/index.cjs +1 -1
  32. package/lib/media/index.js +1 -1
  33. package/lib/need_redo_tweaker/index.cjs +1 -1
  34. package/lib/need_redo_tweaker/index.js +1 -1
  35. package/lib/notifier/index.cjs +1 -1
  36. package/lib/notifier/index.d.ts +6 -0
  37. package/lib/notifier/index.js +21 -15
  38. package/lib/pointer/index.cjs +1 -1
  39. package/lib/pointer/index.js +2 -2
  40. package/lib/scroll/index.cjs +1 -1
  41. package/lib/scroll/index.js +233 -232
  42. package/lib/scroll-segment/index.cjs +1 -1
  43. package/lib/scroll-segment/index.js +3 -3
  44. package/lib/sequence/index.cjs +1 -1
  45. package/lib/sequence/index.js +1 -1
  46. package/lib/source/index.cjs +1 -1
  47. package/lib/source/index.js +1 -1
  48. package/lib/store/Store.d.ts +3 -2
  49. package/lib/store/index.cjs +1 -1
  50. package/lib/store/index.js +2 -2
  51. package/lib/video/index.cjs +1 -1
  52. package/lib/video/index.js +1 -1
  53. package/lib/youtube/index.cjs +1 -1
  54. package/lib/youtube/index.js +1 -1
  55. package/package.json +1 -1
  56. package/lib/Store-D2xCXENW.js +0 -134
  57. package/lib/Store-DRp_K37w.cjs +0 -1
@@ -3,7 +3,7 @@ var I = (i) => {
3
3
  };
4
4
  var S = (i, s, t) => s.has(i) || I("Cannot " + t);
5
5
  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) ? I("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, t), r = (i, s, t, u) => (S(i, s, "write to private field"), u ? u.call(i, t) : s.set(i, t), t), P = (i, s, t) => (S(i, s, "access private method"), t);
6
- import { S as q } from "./Store-D2xCXENW.js";
6
+ import { S as q } from "./Store-swP_0ymB.js";
7
7
  import { c as R } from "./math-BOBiC4TN.js";
8
8
  import { p as y } from "./number-DwCxt_Ck.js";
9
9
  import { n as A } from "./polyfills-DJrTJQky.js";
@@ -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)),u=(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),r=(i,s,t,a)=>(S(i,s,"write to private field"),a?a.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const y=require("./Store-DRp_K37w.cjs"),N=require("./math-GDWEqu7y.cjs"),I=require("./number-0243DApo.cjs"),q=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const P=require("./ticker/index.cjs"),O=require("./order/index.cjs");var d,f,b,m,A,h,n,c,l,g,x,z,F;class R extends y.Store{constructor(t,a){super(t||0,a);u(this,x);u(this,d);u(this,f,O.TICK_ORDER.ANIMATION);u(this,b);u(this,m,new y.Store(!1));u(this,A,0);u(this,h,0);u(this,n,-1/0);u(this,c,1/0);u(this,l,0);u(this,g,null);u(this,F,t=>{this.handleAnimationFrame(t)});r(this,h,this.current)}get direction(){return e(this,A)}get target(){return e(this,h)}get min(){return e(this,n)}set min(t){r(this,n,t),this.set(e(this,h),{equalize:!0})}get max(){return e(this,c)}set max(t){r(this,c,t),this.set(e(this,h),{equalize:!0})}get from(){return e(this,l)}get isRunning(){return e(this,m)}get delta(){return Math.abs(e(this,h)-e(this,l))}get deltaProgress(){return this.delta?I.preciseNumber(Math.abs(this.current-e(this,l))/this.delta,6):0}get distance(){return Math.abs(e(this,c)-e(this,n))}get distanceProgress(){return this.distance?I.preciseNumber(Math.abs(this.current-e(this,n))/this.distance,6):0}set(t,a){(e(this,h)!==t||a!=null&&a.restart)&&(r(this,g,t),this.updateOptions(a),r(this,g,null),e(this,h)!==this.current&&this.start())}shift(t,a){this.set(e(this,h)+t,a)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,m).current||(e(this,m).current=!0,P.ticker.subscribe(e(this,F),{maxFPS:e(this,d),order:e(this,f),culling:e(this,b)}))}unlistenAnimationFrame(){e(this,m).current&&(e(this,m).current=!1,P.ticker.unsubscribe(e(this,F)))}updateOptions(t){r(this,d,q.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),r(this,f,q.nullishCoalescing(t==null?void 0:t.order,e(this,f))),r(this,b,q.nullishCoalescing(t==null?void 0:t.culling,e(this,b))),r(this,n,q.nullishCoalescing(t==null?void 0:t.min,e(this,n))),r(this,c,q.nullishCoalescing(t==null?void 0:t.max,e(this,c))),M(this,x,z).call(this,typeof e(this,g)=="number"?e(this,g):e(this,h)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=r(this,l,e(this,h))),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=r(this,l,this.initial)),typeof(t==null?void 0:t.current)=="number"&&r(this,l,this.current=t.current)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,b=new WeakMap,m=new WeakMap,A=new WeakMap,h=new WeakMap,n=new WeakMap,c=new WeakMap,l=new WeakMap,g=new WeakMap,x=new WeakSet,z=function(t){r(this,A,Math.sign(t-e(this,h))),r(this,h,N.clamp(t,e(this,n),e(this,c))),r(this,l,this.current)},F=new WeakMap;exports.Animation=R;
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)),u=(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),r=(i,s,t,a)=>(S(i,s,"write to private field"),a?a.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const y=require("./Store-GokLe_g-.cjs"),N=require("./math-GDWEqu7y.cjs"),I=require("./number-0243DApo.cjs"),q=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const P=require("./ticker/index.cjs"),O=require("./order/index.cjs");var d,f,b,m,A,h,n,c,l,g,x,z,F;class R extends y.Store{constructor(t,a){super(t||0,a);u(this,x);u(this,d);u(this,f,O.TICK_ORDER.ANIMATION);u(this,b);u(this,m,new y.Store(!1));u(this,A,0);u(this,h,0);u(this,n,-1/0);u(this,c,1/0);u(this,l,0);u(this,g,null);u(this,F,t=>{this.handleAnimationFrame(t)});r(this,h,this.current)}get direction(){return e(this,A)}get target(){return e(this,h)}get min(){return e(this,n)}set min(t){r(this,n,t),this.set(e(this,h),{equalize:!0})}get max(){return e(this,c)}set max(t){r(this,c,t),this.set(e(this,h),{equalize:!0})}get from(){return e(this,l)}get isRunning(){return e(this,m)}get delta(){return Math.abs(e(this,h)-e(this,l))}get deltaProgress(){return this.delta?I.preciseNumber(Math.abs(this.current-e(this,l))/this.delta,6):0}get distance(){return Math.abs(e(this,c)-e(this,n))}get distanceProgress(){return this.distance?I.preciseNumber(Math.abs(this.current-e(this,n))/this.distance,6):0}set(t,a){(e(this,h)!==t||a!=null&&a.restart)&&(r(this,g,t),this.updateOptions(a),r(this,g,null),e(this,h)!==this.current&&this.start())}shift(t,a){this.set(e(this,h)+t,a)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,m).current||(e(this,m).current=!0,P.ticker.subscribe(e(this,F),{maxFPS:e(this,d),order:e(this,f),culling:e(this,b)}))}unlistenAnimationFrame(){e(this,m).current&&(e(this,m).current=!1,P.ticker.unsubscribe(e(this,F)))}updateOptions(t){r(this,d,q.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),r(this,f,q.nullishCoalescing(t==null?void 0:t.order,e(this,f))),r(this,b,q.nullishCoalescing(t==null?void 0:t.culling,e(this,b))),r(this,n,q.nullishCoalescing(t==null?void 0:t.min,e(this,n))),r(this,c,q.nullishCoalescing(t==null?void 0:t.max,e(this,c))),M(this,x,z).call(this,typeof e(this,g)=="number"?e(this,g):e(this,h)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=r(this,l,e(this,h))),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=r(this,l,this.initial)),typeof(t==null?void 0:t.current)=="number"&&r(this,l,this.current=t.current)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,b=new WeakMap,m=new WeakMap,A=new WeakMap,h=new WeakMap,n=new WeakMap,c=new WeakMap,l=new WeakMap,g=new WeakMap,x=new WeakSet,z=function(t){r(this,A,Math.sign(t-e(this,h))),r(this,h,N.clamp(t,e(this,n),e(this,c))),r(this,l,this.current)},F=new WeakMap;exports.Animation=R;
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>C(t,O(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)),c=(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 B=require("./math-GDWEqu7y.cjs"),b=require("./number-0243DApo.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const D=require("./Animation-ChZNIOTS.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(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=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.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 u=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*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
1
+ "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>C(t,O(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)),c=(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 B=require("./math-GDWEqu7y.cjs"),b=require("./number-0243DApo.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const D=require("./Animation-rTojHgyz.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(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=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.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 u=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*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
@@ -19,7 +19,7 @@ import { d as D } from "./math-BOBiC4TN.js";
19
19
  import { p as F } from "./number-DwCxt_Ck.js";
20
20
  import { n as u } from "./polyfills-DJrTJQky.js";
21
21
  import "./index-euf5anj6.js";
22
- import { A as q } from "./Animation-FtUeV8dp.js";
22
+ import { A as q } from "./Animation-eO5_LIJl.js";
23
23
  var i, h;
24
24
  class E extends q {
25
25
  constructor(t, r) {
@@ -0,0 +1 @@
1
+ "use strict";var v=r=>{throw TypeError(r)};var w=(r,t,e)=>t.has(r)||v("Cannot "+e);var i=(r,t,e)=>(w(r,t,"read from private field"),e?e.call(r):t.get(r)),u=(r,t,e)=>t.has(r)?v("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),h=(r,t,e,a)=>(w(r,t,"write to private field"),a?a.call(r,e):t.set(r,e),e);const C=require("./notifier/index.cjs"),z=require("./index-Cqw2NKev.cjs");var l;class E{constructor(){u(this,l);this.storage=null,this.name="store-registry",h(this,l,null),z.isBrowser&&(this.storage=localStorage)}get loadedState(){return i(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(this.name,e)}loadState(t=localStorage.getItem(this.name)){t&&(typeof t=="string"?h(this,l,JSON.parse(t)):h(this,l,t),f.current.forEach(e=>{e.name&&this.updateStore(e)}))}resetState(){f.current.forEach(t=>{t.name&&t.reset()}),this.saveState()}updateStore(t){var e,a;if(!Array.isArray((e=i(this,l))==null?void 0:e.stores))return t;if(t.name){const y=(a=i(this,l))==null?void 0:a.stores.find(q=>q.name===t.name);y&&(t.current=y.value)}return t}getState(){const t={stores:[]};return f.current.forEach(e=>{e.name&&(t.stores.find(a=>a.name===e.name)||t.stores.push({value:e.current,name:e.name}))}),t}}l=new WeakMap;const _=new E;var d,s,S,c,m,n,g,b;class N{constructor(t,e){u(this,d);u(this,s);u(this,S);u(this,c,new C.Notifier);u(this,m);u(this,n);u(this,g);u(this,b);h(this,d,e==null?void 0:e.name),this.__manager=e==null?void 0:e.__manager,h(this,s,{initial:t,previous:void 0,current:t}),h(this,S,(e==null?void 0:e.equalityCheck)||((a,y)=>a===y)),e!=null&&e.validate&&this.addMiddleware(e.validate),h(this,g,(e==null?void 0:e.notifyAndClose)||!1),h(this,b,(e==null?void 0:e.invisible)||!1),h(this,m,(e==null?void 0:e.skipSubscribeNotification)||!1),i(this,d)&&_.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(t){if(!i(this,S).call(this,i(this,s).current,t)){if(i(this,s).previous=i(this,s).current,i(this,n))for(const e of i(this,n))t=e(t);i(this,s).current=t,this.notify(),i(this,g)&&this.close()}}get subscribers(){return i(this,c).subscribers}notify(){i(this,c).notify(i(this,s))}addMiddleware(t){i(this,n)||h(this,n,new Set),i(this,n).add(t)}removeMiddleware(t){var e,a;(e=i(this,n))==null||e.delete(t),(a=i(this,n))!=null&&a.size||h(this,n,void 0)}subscribe(t,e){return!i(this,b)&&!i(this,c).size&&M(this),i(this,c).subscribe(t,e),i(this,m)||t(i(this,s)),()=>{this.unsubscribe(t)}}unsubscribe(t){i(this,c).unsubscribe(t),i(this,c).size||A(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,c).close(),i(this,s).previous=void 0,i(this,s).current=i(this,s).initial,A(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,c=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,b=new WeakMap;const f=new N([],{invisible:!0});function M(r){f.current.includes(r)||(f.current=[...f.current,r])}function A(r){f.current.includes(r)&&(f.current=f.current.filter(t=>t!==r))}exports.Store=N;exports.activeStores=f;exports.storeRegistry=_;
@@ -0,0 +1,134 @@
1
+ var v = (r) => {
2
+ throw TypeError(r);
3
+ };
4
+ var w = (r, t, e) => t.has(r) || v("Cannot " + e);
5
+ var i = (r, t, e) => (w(r, t, "read from private field"), e ? e.call(r) : t.get(r)), u = (r, t, e) => t.has(r) ? v("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), h = (r, t, e, a) => (w(r, t, "write to private field"), a ? a.call(r, e) : t.set(r, e), e);
6
+ import { Notifier as C } from "./notifier/index.js";
7
+ import { i as _ } from "./index-euf5anj6.js";
8
+ var f;
9
+ class z {
10
+ constructor() {
11
+ u(this, f);
12
+ this.storage = null, this.name = "store-registry", h(this, f, null), _ && (this.storage = localStorage);
13
+ }
14
+ get loadedState() {
15
+ return i(this, f);
16
+ }
17
+ saveState() {
18
+ const t = this.getState(), e = JSON.stringify(t);
19
+ localStorage.setItem(this.name, e);
20
+ }
21
+ loadState(t = localStorage.getItem(this.name)) {
22
+ t && (typeof t == "string" ? h(this, f, JSON.parse(t)) : h(this, f, t), l.current.forEach((e) => {
23
+ e.name && this.updateStore(e);
24
+ }));
25
+ }
26
+ resetState() {
27
+ l.current.forEach((t) => {
28
+ t.name && t.reset();
29
+ }), this.saveState();
30
+ }
31
+ updateStore(t) {
32
+ var e, a;
33
+ if (!Array.isArray((e = i(this, f)) == null ? void 0 : e.stores))
34
+ return t;
35
+ if (t.name) {
36
+ const y = (a = i(this, f)) == null ? void 0 : a.stores.find((N) => N.name === t.name);
37
+ y && (t.current = y.value);
38
+ }
39
+ return t;
40
+ }
41
+ getState() {
42
+ const t = {
43
+ stores: []
44
+ };
45
+ return l.current.forEach((e) => {
46
+ e.name && (t.stores.find((a) => a.name === e.name) || t.stores.push({
47
+ value: e.current,
48
+ name: e.name
49
+ }));
50
+ }), t;
51
+ }
52
+ }
53
+ f = new WeakMap();
54
+ const E = new z();
55
+ var d, s, m, c, S, n, g, b;
56
+ class M {
57
+ constructor(t, e) {
58
+ u(this, d);
59
+ u(this, s);
60
+ u(this, m);
61
+ u(this, c, new C());
62
+ u(this, S);
63
+ u(this, n);
64
+ u(this, g);
65
+ u(this, b);
66
+ h(this, d, e == null ? void 0 : e.name), this.__manager = e == null ? void 0 : e.__manager, h(this, s, {
67
+ initial: t,
68
+ previous: void 0,
69
+ current: t
70
+ }), h(this, m, (e == null ? void 0 : e.equalityCheck) || ((a, y) => a === y)), e != null && e.validate && this.addMiddleware(e.validate), h(this, g, (e == null ? void 0 : e.notifyAndClose) || !1), h(this, b, (e == null ? void 0 : e.invisible) || !1), h(this, S, (e == null ? void 0 : e.skipSubscribeNotification) || !1), i(this, d) && E.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(t) {
85
+ if (!i(this, m).call(this, i(this, s).current, t)) {
86
+ if (i(this, s).previous = i(this, s).current, i(this, n))
87
+ for (const e of i(this, n))
88
+ t = e(t);
89
+ i(this, s).current = t, this.notify(), i(this, g) && this.close();
90
+ }
91
+ }
92
+ get subscribers() {
93
+ return i(this, c).subscribers;
94
+ }
95
+ notify() {
96
+ i(this, c).notify(i(this, s));
97
+ }
98
+ addMiddleware(t) {
99
+ i(this, n) || h(this, n, /* @__PURE__ */ new Set()), i(this, n).add(t);
100
+ }
101
+ removeMiddleware(t) {
102
+ var e, a;
103
+ (e = i(this, n)) == null || e.delete(t), (a = i(this, n)) != null && a.size || h(this, n, void 0);
104
+ }
105
+ subscribe(t, e) {
106
+ return !i(this, b) && !i(this, c).size && k(this), i(this, c).subscribe(t, e), i(this, S) || t(i(this, s)), () => {
107
+ this.unsubscribe(t);
108
+ };
109
+ }
110
+ unsubscribe(t) {
111
+ i(this, c).unsubscribe(t), i(this, c).size || A(this);
112
+ }
113
+ reset() {
114
+ this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
115
+ }
116
+ close() {
117
+ i(this, c).close(), i(this, s).previous = void 0, i(this, s).current = i(this, s).initial, A(this);
118
+ }
119
+ }
120
+ d = new WeakMap(), s = new WeakMap(), m = new WeakMap(), c = new WeakMap(), S = new WeakMap(), n = new WeakMap(), g = new WeakMap(), b = new WeakMap();
121
+ const l = new M([], {
122
+ invisible: !0
123
+ });
124
+ function k(r) {
125
+ l.current.includes(r) || (l.current = [...l.current, r]);
126
+ }
127
+ function A(r) {
128
+ l.current.includes(r) && (l.current = l.current.filter((t) => t !== r));
129
+ }
130
+ export {
131
+ M as S,
132
+ l as a,
133
+ E as s
134
+ };
@@ -20,7 +20,7 @@ import { c as q } from "./math-BOBiC4TN.js";
20
20
  import { p as w } from "./number-DwCxt_Ck.js";
21
21
  import { n as z } from "./polyfills-DJrTJQky.js";
22
22
  import "./index-euf5anj6.js";
23
- import { A as C } from "./Animation-FtUeV8dp.js";
23
+ import { A as C } from "./Animation-eO5_LIJl.js";
24
24
  var s, t;
25
25
  class G extends C {
26
26
  constructor(e, i) {
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-0243DApo.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const z=require("./Animation-ChZNIOTS.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
1
+ "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-0243DApo.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const z=require("./Animation-rTojHgyz.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-ChZNIOTS.cjs"),n=require("../Damped-B1lXa9nb.cjs"),i=require("../Tweened-cJ36zq1A.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-rTojHgyz.cjs"),n=require("../Damped-DgAIjXp3.cjs"),i=require("../Tweened-DpJDlbj9.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-FtUeV8dp.js";
2
- import { D as m } from "../Damped-BXsGpI-B.js";
3
- import { T as t } from "../Tweened-BhDWLNF0.js";
1
+ import { A as r } from "../Animation-eO5_LIJl.js";
2
+ import { D as m } from "../Damped-GyAS-U-z.js";
3
+ import { T as t } from "../Tweened-BSC-evuL.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-DRp_K37w.cjs"),q=require("../attributes-Bf2svn4j.cjs"),p=require("../index-Cqw2NKev.cjs"),O=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w 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,O.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=w;
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)),h=(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),n=(t,s,e,c)=>(v(t,s,"write to private field"),c?c.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-GokLe_g-.cjs"),q=require("../attributes-Bf2svn4j.cjs"),p=require("../index-Cqw2NKev.cjs"),O=require("../dom-JBOkFLTh.cjs");var i,u,o,b,a,g;class w extends S.Store{constructor(e,c,A,l){super(A,l);h(this,a);h(this,i,null);h(this,u);h(this,o,null);h(this,b,!1);n(this,u,c),p.isBrowser&&(n(this,i,O.getElement(e)),n(this,o,new MutationObserver(f=>{f.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&d(this,a,g).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e,c){return this.subscribers.length||this.observe(),super.subscribe(e,c)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}observe(){r(this,b)||(n(this,b,!0),r(this,o).observe(r(this,i),{attributes:!0}),d(this,a,g).call(this))}unobserve(){r(this,b)&&(n(this,b,!1),r(this,o).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,o=new WeakMap,b=new WeakMap,a=new WeakSet,g=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=q.parseAttributeValue(e))};exports.Attribute=w;
@@ -6,7 +6,7 @@ export interface AttributeOptions<T> extends StoreOptions<T> {
6
6
  export declare class Attribute<T extends string | number | boolean> extends Store<T> {
7
7
  #private;
8
8
  constructor(elementOrSelector: ElementOrSelector, name: string, defaultValue: T, options?: AttributeOptions<T>);
9
- subscribe(callback: StoreSubscribeCallback<T>): () => void;
9
+ subscribe(callback: StoreSubscribeCallback<T>, order?: number): () => void;
10
10
  unsubscribe(callback: StoreSubscribeCallback<T>): void;
11
11
  observe(): void;
12
12
  unobserve(): void;
@@ -1,51 +1,51 @@
1
- var g = (t) => {
2
- throw TypeError(t);
1
+ var d = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var m = (t, e, s) => e.has(t) || g("Cannot " + s);
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-D2xCXENW.js";
4
+ var m = (e, s, t) => s.has(e) || d("Cannot " + t);
5
+ var r = (e, s, t) => (m(e, s, "read from private field"), t ? t.call(e) : s.get(e)), c = (e, s, t) => s.has(e) ? d("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), a = (e, s, t, h) => (m(e, s, "write to private field"), h ? h.call(e, t) : s.set(e, t), t), v = (e, s, t) => (m(e, s, "access private method"), t);
6
+ import { S as y } from "../Store-swP_0ymB.js";
7
7
  import { p as S } from "../attributes-69we3byR.js";
8
8
  import { i as w } from "../index-euf5anj6.js";
9
9
  import { g as x } from "../dom-CVWzyXPH.js";
10
- var i, u, a, b, n, p;
11
- class N extends y {
12
- constructor(s, o, A, f) {
10
+ var i, u, n, b, o, p;
11
+ class U extends y {
12
+ constructor(t, h, A, f) {
13
13
  super(A, f);
14
- h(this, n);
15
- h(this, i, null);
16
- h(this, u);
17
- h(this, a, null);
18
- h(this, b, !1);
19
- c(this, u, o), w && (c(this, i, x(s)), c(this, a, new MutationObserver((l) => {
20
- l.forEach((d) => {
21
- d.type === "attributes" && d.attributeName === r(this, u) && v(this, n, p).call(this);
14
+ c(this, o);
15
+ c(this, i, null);
16
+ c(this, u);
17
+ c(this, n, null);
18
+ c(this, b, !1);
19
+ a(this, u, h), w && (a(this, i, x(t)), a(this, n, new MutationObserver((l) => {
20
+ l.forEach((g) => {
21
+ g.type === "attributes" && g.attributeName === r(this, u) && v(this, o, p).call(this);
22
22
  });
23
23
  })), f != null && f.sync && this.subscribe((l) => {
24
24
  r(this, i).setAttribute(r(this, u), l.current.toString());
25
25
  }));
26
26
  }
27
- subscribe(s) {
28
- return this.subscribers.size || this.observe(), super.subscribe(s);
27
+ subscribe(t, h) {
28
+ return this.subscribers.length || this.observe(), super.subscribe(t, h);
29
29
  }
30
- unsubscribe(s) {
31
- super.unsubscribe(s), this.subscribers.size || this.unobserve();
30
+ unsubscribe(t) {
31
+ super.unsubscribe(t), this.subscribers.length || this.unobserve();
32
32
  }
33
33
  observe() {
34
- r(this, b) || (c(this, b, !0), r(this, a).observe(r(this, i), {
34
+ r(this, b) || (a(this, b, !0), r(this, n).observe(r(this, i), {
35
35
  attributes: !0
36
- }), v(this, n, p).call(this));
36
+ }), v(this, o, p).call(this));
37
37
  }
38
38
  unobserve() {
39
- r(this, b) && (c(this, b, !1), r(this, a).disconnect());
39
+ r(this, b) && (a(this, b, !1), r(this, n).disconnect());
40
40
  }
41
41
  close() {
42
42
  super.close(), this.unobserve();
43
43
  }
44
44
  }
45
- i = new WeakMap(), u = new WeakMap(), a = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
46
- const s = r(this, i).getAttribute(r(this, u));
47
- s != null && (this.current = S(s));
45
+ i = new WeakMap(), u = new WeakMap(), n = new WeakMap(), b = new WeakMap(), o = new WeakSet(), p = function() {
46
+ const t = r(this, i).getAttribute(r(this, u));
47
+ t != null && (this.current = S(t));
48
48
  };
49
49
  export {
50
- N as Attribute
50
+ U as Attribute
51
51
  };
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,p=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var h=s=>{throw TypeError(s)};var o=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&o(s,t,e[t]);if(c)for(var t of c(e))T.call(e,t)&&o(s,t,e[t]);return s},d=(s,e)=>p(s,E(e));var f=(s,e,t)=>e.has(s)||h("Cannot "+t);var a=(s,e,t)=>(f(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>e.has(s)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),u=(s,e,t,r)=>(f(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-DRp_K37w.cjs"),m=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var i;class q extends g.Store{constructor(t,r){super(r);b(this,i);u(this,i,Array.isArray(t)?t:[t])}addElement(t){a(this,i).push(t)}removeElement(t){u(this,i,a(this,i).filter(r=>r!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=d(l({},this.current),{[t]:r}),r?a(this,i).forEach(n=>n.classList.add(m.camelToKebab(t))):a(this,i).forEach(n=>n.classList.remove(m.camelToKebab(t)))}}i=new WeakMap;exports.ClassLinkedStatus=q;
1
+ "use strict";var S=Object.defineProperty,p=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var h=s=>{throw TypeError(s)};var o=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&o(s,t,e[t]);if(c)for(var t of c(e))T.call(e,t)&&o(s,t,e[t]);return s},d=(s,e)=>p(s,E(e));var f=(s,e,t)=>e.has(s)||h("Cannot "+t);var a=(s,e,t)=>(f(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>e.has(s)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),u=(s,e,t,r)=>(f(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-GokLe_g-.cjs"),m=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var i;class q extends g.Store{constructor(t,r){super(r);b(this,i);u(this,i,Array.isArray(t)?t:[t])}addElement(t){a(this,i).push(t)}removeElement(t){u(this,i,a(this,i).filter(r=>r!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=d(l({},this.current),{[t]:r}),r?a(this,i).forEach(n=>n.classList.add(m.camelToKebab(t))):a(this,i).forEach(n=>n.classList.remove(m.camelToKebab(t)))}}i=new WeakMap;exports.ClassLinkedStatus=q;
@@ -15,7 +15,7 @@ var n = (t, r, s) => r in t ? E(t, r, { enumerable: !0, configurable: !0, writab
15
15
  }, m = (t, r) => L(t, S(r));
16
16
  var f = (t, r, s) => r.has(t) || u("Cannot " + s);
17
17
  var a = (t, r, s) => (f(t, r, "read from private field"), s ? s.call(t) : r.get(t)), p = (t, r, s) => r.has(t) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, s), o = (t, r, s, e) => (f(t, r, "write to private field"), e ? e.call(t, s) : r.set(t, s), s);
18
- import { S as A } from "../Store-D2xCXENW.js";
18
+ import { S as A } from "../Store-swP_0ymB.js";
19
19
  import { c as d } from "../string-BlMQbe8b.js";
20
20
  import "../index-euf5anj6.js";
21
21
  var i;
@@ -1 +1 @@
1
- "use strict";var V=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||V("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)?V("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,r)=>(F(h,n,"write to private field"),r?r.call(h,e):n.set(h,e),e),k=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../notifier/index.cjs"),w=require("../index-Cqw2NKev.cjs"),Q=require("../dom-JBOkFLTh.cjs"),q=require("../ticker/index.cjs");require("../Store-DRp_K37w.cjs");const J=require("../easings-GegIwET5.cjs"),Z=require("../Tweened-cJ36zq1A.cjs"),_=require("../gestures-C7gbKx11.cjs"),$=require("../number-0243DApo.cjs"),p=require("../order/index.cjs");var R;class Y{constructor(){s(this,R,new G.Notifier)}get changeEvent(){return t(this,R)}}R=new WeakMap;var g,c,u,H;class ee extends Y{constructor(e){super();s(this,g,null);s(this,c,null);s(this,u,"offsetHeight");s(this,H,e=>{const r=e.shiftKey?-1:1;let a;e.code==="Space"?a=r*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?a=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?a=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?a=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?a=1*t(this,c)[t(this,u)]:e.code==="Home"?a=0:e.code==="End"&&(a=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),a&&(e.stopPropagation(),this.changeEvent.notify("keyboard",a,e))});w.isBrowser&&(i(this,g,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,c,t(this,g)instanceof HTMLElement?t(this,g):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,g).addEventListener("keydown",t(this,H))}disconnect(){w.isBrowser&&t(this,g).removeEventListener("keydown",t(this,H))}}g=new WeakMap,c=new WeakMap,u=new WeakMap,H=new WeakMap;var y,L,P,z,d,T,f,b,O,U,C,W,B;class te extends Y{constructor(e){super();s(this,b);s(this,y);s(this,L);s(this,P);s(this,z);s(this,d);s(this,T);s(this,f);s(this,C);s(this,W);s(this,B);this.direction=1,i(this,d,new Z.Tweened(0,{easing:J.easeInQuad})),i(this,f,!1),i(this,C,r=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",r.timeBetweenFrames*t(this,y)*this.direction*(1-t(this,d).current),r)}),i(this,W,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,y))*this.direction*(1-t(this,d).current),null)}),i(this,B,()=>{t(this,L)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,y,(e==null?void 0:e.speed)||1),i(this,L,(e==null?void 0:e.interval)||!1),i(this,P,e)}set interval(e){i(this,L,e),t(this,f)&&k(this,b,O).call(this)}set speed(e){i(this,y,e),t(this,f)&&k(this,b,O).call(this)}connect(){t(this,f)||(i(this,f,!0),k(this,b,O).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),k(this,b,U).call(this))}pauseAndContinue(e,r){t(this,f)&&e&&(clearTimeout(t(this,T)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:r}),i(this,T,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:r})},e)))}}y=new WeakMap,L=new WeakMap,P=new WeakMap,z=new WeakMap,d=new WeakMap,T=new WeakMap,f=new WeakMap,b=new WeakSet,O=function(){k(this,b,U).call(this),t(this,L)?i(this,z,setInterval(t(this,W),Math.abs(t(this,y)))):q.ticker.subscribe(t(this,C),t(this,P)),document.addEventListener("visibilitychange",t(this,B))},U=function(){clearInterval(t(this,z)),q.ticker.unsubscribe(t(this,C)),clearTimeout(t(this,T)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,B))},C=new WeakMap,W=new WeakMap,B=new WeakMap;var A,M,D,X;class ie extends Y{constructor(e){super();s(this,A,null);s(this,M);s(this,D);s(this,X,e=>{let r=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*1||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*1))if(e.preventDefault(),r=(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 a=Date.now();if(a-t(this,D)>40&&(r=100*Math.sign(r)),i(this,D,a),Math.abs(r)<100||t(this,M))return;this.changeEvent.notify("wheel",r,e),i(this,M,setTimeout(()=>{i(this,M,void 0)},80))}else this.changeEvent.notify("wheel",r,e)});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,D,Date.now()),w.isBrowser&&i(this,A,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,A).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){w.isBrowser&&(t(this,A).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,M)))}}A=new WeakMap,M=new WeakMap,D=new WeakMap,X=new WeakMap;var v,o,l,I,E;const x=class x extends Y{constructor(e){super();s(this,o);s(this,l);s(this,I);s(this,E);this.inertion=1,i(this,o,null),i(this,l,0),i(this,I,r=>{if(r.button!==0||r.composedPath().find(m=>m instanceof HTMLElement&&m.hasAttribute("drag-dead-zone")))return;this.swipe||q.ticker.unsubscribe(t(this,E));let a=r,S=!1;i(this,l,0),document.documentElement.classList.add("grabbing");let K=0,N=0;_.setupDrag(m=>{t(x,v)&&t(x,v)!==t(this,o)||(K=a.x-m.x,N=a.y-m.y,this.axis==="x"?i(this,l,K):i(this,l,N),a=m,S=this.axis==="x"&&Math.abs(K)>Math.abs(N)||this.axis==="y"&&Math.abs(N)>Math.abs(K),S&&(document.documentElement.classList.add("dragging"),i(x,v,t(this,o)),this.changeEvent.notify("drag",t(this,l),m)))},m=>{i(x,v,null),S&&!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),q.ticker.subscribe(t(this,E),{order:p.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),m),document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging")})}),i(this,E,()=>{Math.floor(Math.abs(t(this,l)))||q.ticker.unsubscribe(t(this,E)),i(this,l,t(this,l)*.95),i(this,l,$.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&i(this,o,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){w.isBrowser&&t(this,o).addEventListener("pointerdown",t(this,I))}disconnect(){w.isBrowser&&(t(this,o).removeEventListener("pointerdown",t(this,I)),q.ticker.unsubscribe(t(this,E)))}};v=new WeakMap,o=new WeakMap,l=new WeakMap,I=new WeakMap,E=new WeakMap,s(x,v,null);let j=x;exports.AutoplayControls=te;exports.Controls=Y;exports.DragControls=j;exports.KeyboardControls=ee;exports.WheelControls=ie;
1
+ "use strict";var V=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||V("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)?V("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,r)=>(F(h,n,"write to private field"),r?r.call(h,e):n.set(h,e),e),k=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../notifier/index.cjs"),w=require("../index-Cqw2NKev.cjs"),Q=require("../dom-JBOkFLTh.cjs"),q=require("../ticker/index.cjs");require("../Store-GokLe_g-.cjs");const J=require("../easings-GegIwET5.cjs"),Z=require("../Tweened-DpJDlbj9.cjs"),_=require("../gestures-C7gbKx11.cjs"),$=require("../number-0243DApo.cjs"),p=require("../order/index.cjs");var R;class Y{constructor(){s(this,R,new G.Notifier)}get changeEvent(){return t(this,R)}}R=new WeakMap;var g,c,u,H;class ee extends Y{constructor(e){super();s(this,g,null);s(this,c,null);s(this,u,"offsetHeight");s(this,H,e=>{const r=e.shiftKey?-1:1;let a;e.code==="Space"?a=r*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?a=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?a=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?a=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?a=1*t(this,c)[t(this,u)]:e.code==="Home"?a=0:e.code==="End"&&(a=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),a&&(e.stopPropagation(),this.changeEvent.notify("keyboard",a,e))});w.isBrowser&&(i(this,g,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,c,t(this,g)instanceof HTMLElement?t(this,g):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,g).addEventListener("keydown",t(this,H))}disconnect(){w.isBrowser&&t(this,g).removeEventListener("keydown",t(this,H))}}g=new WeakMap,c=new WeakMap,u=new WeakMap,H=new WeakMap;var y,L,P,z,d,T,f,b,O,U,C,W,B;class te extends Y{constructor(e){super();s(this,b);s(this,y);s(this,L);s(this,P);s(this,z);s(this,d);s(this,T);s(this,f);s(this,C);s(this,W);s(this,B);this.direction=1,i(this,d,new Z.Tweened(0,{easing:J.easeInQuad})),i(this,f,!1),i(this,C,r=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",r.timeBetweenFrames*t(this,y)*this.direction*(1-t(this,d).current),r)}),i(this,W,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,y))*this.direction*(1-t(this,d).current),null)}),i(this,B,()=>{t(this,L)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,y,(e==null?void 0:e.speed)||1),i(this,L,(e==null?void 0:e.interval)||!1),i(this,P,e)}set interval(e){i(this,L,e),t(this,f)&&k(this,b,O).call(this)}set speed(e){i(this,y,e),t(this,f)&&k(this,b,O).call(this)}connect(){t(this,f)||(i(this,f,!0),k(this,b,O).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),k(this,b,U).call(this))}pauseAndContinue(e,r){t(this,f)&&e&&(clearTimeout(t(this,T)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:r}),i(this,T,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:r})},e)))}}y=new WeakMap,L=new WeakMap,P=new WeakMap,z=new WeakMap,d=new WeakMap,T=new WeakMap,f=new WeakMap,b=new WeakSet,O=function(){k(this,b,U).call(this),t(this,L)?i(this,z,setInterval(t(this,W),Math.abs(t(this,y)))):q.ticker.subscribe(t(this,C),t(this,P)),document.addEventListener("visibilitychange",t(this,B))},U=function(){clearInterval(t(this,z)),q.ticker.unsubscribe(t(this,C)),clearTimeout(t(this,T)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,B))},C=new WeakMap,W=new WeakMap,B=new WeakMap;var A,M,D,X;class ie extends Y{constructor(e){super();s(this,A,null);s(this,M);s(this,D);s(this,X,e=>{let r=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*1||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*1))if(e.preventDefault(),r=(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 a=Date.now();if(a-t(this,D)>40&&(r=100*Math.sign(r)),i(this,D,a),Math.abs(r)<100||t(this,M))return;this.changeEvent.notify("wheel",r,e),i(this,M,setTimeout(()=>{i(this,M,void 0)},80))}else this.changeEvent.notify("wheel",r,e)});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,D,Date.now()),w.isBrowser&&i(this,A,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,A).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){w.isBrowser&&(t(this,A).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,M)))}}A=new WeakMap,M=new WeakMap,D=new WeakMap,X=new WeakMap;var v,o,l,I,E;const x=class x extends Y{constructor(e){super();s(this,o);s(this,l);s(this,I);s(this,E);this.inertion=1,i(this,o,null),i(this,l,0),i(this,I,r=>{if(r.button!==0||r.composedPath().find(m=>m instanceof HTMLElement&&m.hasAttribute("drag-dead-zone")))return;this.swipe||q.ticker.unsubscribe(t(this,E));let a=r,S=!1;i(this,l,0),document.documentElement.classList.add("grabbing");let K=0,N=0;_.setupDrag(m=>{t(x,v)&&t(x,v)!==t(this,o)||(K=a.x-m.x,N=a.y-m.y,this.axis==="x"?i(this,l,K):i(this,l,N),a=m,S=this.axis==="x"&&Math.abs(K)>Math.abs(N)||this.axis==="y"&&Math.abs(N)>Math.abs(K),S&&(document.documentElement.classList.add("dragging"),i(x,v,t(this,o)),this.changeEvent.notify("drag",t(this,l),m)))},m=>{i(x,v,null),S&&!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),q.ticker.subscribe(t(this,E),{order:p.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),m),document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging")})}),i(this,E,()=>{Math.floor(Math.abs(t(this,l)))||q.ticker.unsubscribe(t(this,E)),i(this,l,t(this,l)*.95),i(this,l,$.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&i(this,o,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){w.isBrowser&&t(this,o).addEventListener("pointerdown",t(this,I))}disconnect(){w.isBrowser&&(t(this,o).removeEventListener("pointerdown",t(this,I)),q.ticker.unsubscribe(t(this,E)))}};v=new WeakMap,o=new WeakMap,l=new WeakMap,I=new WeakMap,E=new WeakMap,s(x,v,null);let j=x;exports.AutoplayControls=te;exports.Controls=Y;exports.DragControls=j;exports.KeyboardControls=ee;exports.WheelControls=ie;
@@ -7,9 +7,9 @@ import { Notifier as G } from "../notifier/index.js";
7
7
  import { i as b } from "../index-euf5anj6.js";
8
8
  import { g as Q } from "../dom-CVWzyXPH.js";
9
9
  import { ticker as k } from "../ticker/index.js";
10
- import "../Store-D2xCXENW.js";
10
+ import "../Store-swP_0ymB.js";
11
11
  import { b as J } from "../easings-Bni3YAAW.js";
12
- import { T as Z } from "../Tweened-BhDWLNF0.js";
12
+ import { T as Z } from "../Tweened-BSC-evuL.js";
13
13
  import { s as $ } from "../gestures-CcXV6fCp.js";
14
14
  import { p } from "../number-DwCxt_Ck.js";
15
15
  import { TICK_ORDER as _ } 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-DRp_K37w.cjs"),v=require("../dom-JBOkFLTh.cjs");require("../index-Cqw2NKev.cjs");const 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)).trim();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=r=>{throw TypeError(r)};var f=(r,s,e)=>s.has(r)||w("Cannot "+e);var t=(r,s,e)=>(f(r,s,"read from private field"),e?e.call(r):s.get(r)),h=(r,s,e)=>s.has(r)?w("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),u=(r,s,e,i)=>(f(r,s,"write to private field"),i?i.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),p=require("../Store-GokLe_g-.cjs"),v=require("../dom-JBOkFLTh.cjs");require("../index-Cqw2NKev.cjs");const g=require("../window-resizer/index.cjs");var l,a,c,b,n,o;class y extends p.Store{constructor(e,i,d,S){super(d,S);h(this,l);h(this,a);h(this,c);h(this,b);h(this,n,!1);h(this,o,()=>{this.check()});u(this,l,v.getElement(e)),u(this,a,i),u(this,c,d.toString()),u(this,b,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,c)}observe(){t(this,n)||(u(this,n,!0),g.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,n)&&(u(this,n,!1),g.windowResizer.unsubscribe(t(this,o)))}subscribe(e,i){return this.subscribers.length||this.observe(),super.subscribe(e,i)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,l)).getPropertyValue(t(this,a)).trim();if(!(t(this,b)&&t(this,c)===e))if(u(this,c,e),e){const i=R.cssValueParser.parse(t(this,c));this.current=i}else this.current=this.initial}}l=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,n=new WeakMap,o=new WeakMap;exports.CSSProperty=y;
@@ -9,7 +9,7 @@ export declare class CSSProperty<StoreType extends number | boolean | string> ex
9
9
  get currentRawValue(): string;
10
10
  observe(): void;
11
11
  unobserve(): void;
12
- subscribe(callback: StoreSubscribeCallback<StoreType>): () => void;
12
+ subscribe(callback: StoreSubscribeCallback<StoreType>, order?: number): () => void;
13
13
  unsubscribe(callback: StoreSubscribeCallback<StoreType>): void;
14
14
  close(): void;
15
15
  check(): void;
@@ -2,56 +2,56 @@ var p = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
4
  var S = (s, r, e) => r.has(s) || p("Cannot " + e);
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
- import { cssValueParser as R } from "../css-value-parser/index.js";
7
- import { RESIZE_ORDER as V } from "../order/index.js";
8
- import { S as g } from "../Store-D2xCXENW.js";
5
+ var t = (s, r, e) => (S(s, r, "read from private field"), e ? e.call(s) : r.get(s)), c = (s, r, e) => r.has(s) ? p("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), u = (s, r, e, i) => (S(s, r, "write to private field"), i ? i.call(s, e) : r.set(s, e), e);
6
+ import { cssValueParser as w } from "../css-value-parser/index.js";
7
+ import { RESIZE_ORDER as R } from "../order/index.js";
8
+ import { S as V } from "../Store-swP_0ymB.js";
9
9
  import { g as v } from "../dom-CVWzyXPH.js";
10
10
  import "../index-euf5anj6.js";
11
- import { windowResizer as w } from "../window-resizer/index.js";
12
- var b, o, u, l, c, n;
13
- class x extends g {
14
- constructor(e, a, f, m) {
11
+ import { windowResizer as g } from "../window-resizer/index.js";
12
+ var b, l, h, n, a, o;
13
+ class z extends V {
14
+ constructor(e, i, f, m) {
15
15
  super(f, m);
16
- h(this, b);
17
- h(this, o);
18
- h(this, u);
19
- h(this, l);
20
- h(this, c, !1);
21
- h(this, n, () => {
16
+ c(this, b);
17
+ c(this, l);
18
+ c(this, h);
19
+ c(this, n);
20
+ c(this, a, !1);
21
+ c(this, o, () => {
22
22
  this.check();
23
23
  });
24
- i(this, b, v(e)), i(this, o, a), i(this, u, f.toString()), i(this, l, (m == null ? void 0 : m.rawValueCheck) !== !1);
24
+ u(this, b, v(e)), u(this, l, i), u(this, h, f.toString()), u(this, n, (m == null ? void 0 : m.rawValueCheck) !== !1);
25
25
  }
26
26
  get currentRawValue() {
27
- return t(this, u);
27
+ return t(this, h);
28
28
  }
29
29
  observe() {
30
- t(this, c) || (i(this, c, !0), w.subscribe(t(this, n), V.CSS_VARIABLE));
30
+ t(this, a) || (u(this, a, !0), g.subscribe(t(this, o), R.CSS_VARIABLE));
31
31
  }
32
32
  unobserve() {
33
- t(this, c) && (i(this, c, !1), w.unsubscribe(t(this, n)));
33
+ t(this, a) && (u(this, a, !1), g.unsubscribe(t(this, o)));
34
34
  }
35
- subscribe(e) {
36
- return this.subscribers.size || this.observe(), super.subscribe(e);
35
+ subscribe(e, i) {
36
+ return this.subscribers.length || this.observe(), super.subscribe(e, i);
37
37
  }
38
38
  unsubscribe(e) {
39
- super.unsubscribe(e), this.subscribers.size || this.unobserve();
39
+ super.unsubscribe(e), this.subscribers.length || this.unobserve();
40
40
  }
41
41
  close() {
42
42
  this.unobserve(), super.close();
43
43
  }
44
44
  check() {
45
- const e = getComputedStyle(t(this, b)).getPropertyValue(t(this, o)).trim();
46
- if (!(t(this, l) && t(this, u) === e))
47
- if (i(this, u, e), e) {
48
- const a = R.parse(t(this, u));
49
- this.current = a;
45
+ const e = getComputedStyle(t(this, b)).getPropertyValue(t(this, l)).trim();
46
+ if (!(t(this, n) && t(this, h) === e))
47
+ if (u(this, h, e), e) {
48
+ const i = w.parse(t(this, h));
49
+ this.current = i;
50
50
  } else
51
51
  this.current = this.initial;
52
52
  }
53
53
  }
54
- b = new WeakMap(), o = new WeakMap(), u = new WeakMap(), l = new WeakMap(), c = new WeakMap(), n = new WeakMap();
54
+ b = new WeakMap(), l = new WeakMap(), h = new WeakMap(), n = new WeakMap(), a = new WeakMap(), o = new WeakMap();
55
55
  export {
56
- x as CSSProperty
56
+ z as CSSProperty
57
57
  };
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-DRp_K37w.cjs");require("../index-Cqw2NKev.cjs");const c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-GokLe_g-.cjs");require("../index-Cqw2NKev.cjs");const c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
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 e } from "../Store-D2xCXENW.js";
2
+ import { a as e } from "../Store-swP_0ymB.js";
3
3
  import "../index-euf5anj6.js";
4
4
  import { ticker as i } from "../ticker/index.js";
5
5
  function s() {
@@ -1 +1 @@
1
- "use strict";var v=t=>{throw TypeError(t)};var E=(t,i,n)=>i.has(t)||v("Cannot "+n);var s=(t,i,n)=>(E(t,i,"read from private field"),n?n.call(t):i.get(t)),o=(t,i,n)=>i.has(t)?v("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,n),e=(t,i,n,b)=>(E(t,i,"write to private field"),b?b.call(t,n):i.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../order/index.cjs"),S=require("../window-resizer/index.cjs"),W=require("../index-Cqw2NKev.cjs"),R=require("../Store-DRp_K37w.cjs");var r,d,a,l,m,c;class D{constructor(){o(this,r);o(this,d);o(this,a);o(this,l);o(this,m);o(this,c);var i,n;if(e(this,r,"unknown"),e(this,d,!1),e(this,a,!1),e(this,l,!1),e(this,m,!1),e(this,c,!1),this.resize=()=>{e(this,d,/Mobi|Android/i.test(navigator.userAgent)),e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},W.isBrowser){this.resize(),S.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE);{const g=document.createElement("canvas"),f=g.getContext("webgl")||g.getContext("experimental-webgl");e(this,l,f&&f instanceof WebGLRenderingContext||!1)}{const g=document.createElement("canvas");g.getContext("2d")&&e(this,m,g.toDataURL("image/webp").indexOf("data:image/webp")==0)}const b=window.navigator.userAgent,p=((n=(i=window.navigator)==null?void 0:i.userAgentData)==null?void 0:n.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],k=["Win32","Win64","Windows","WinCE"],C=["iPhone","iPad","iPod"];O.includes(p)?(e(this,r,"macOS"),e(this,c,!0)):C.includes(p)?(e(this,r,"iOS"),e(this,c,!0)):k.includes(p)?e(this,r,"Windows"):/Android/.test(b)?e(this,r,"Android"):/Linux/.test(p)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return s(this,r)}get isMobile(){return s(this,d)}get isTouch(){return s(this,a)}get isWebgl(){return s(this,l)}get isWebp(){return s(this,m)}get isApple(){return s(this,c)}}r=new WeakMap,d=new WeakMap,a=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap;const M=new D;var z=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(z||{}),A=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(A||{}),u,w,x,h;class T{constructor(){o(this,u);o(this,w);o(this,x);o(this,h);e(this,u,0),e(this,w,0),e(this,x,0),e(this,h,new R.Store(void 0)),this.resize=()=>{e(this,u,document.documentElement.clientWidth),e(this,w,innerHeight),e(this,x,devicePixelRatio),matchMedia("(max-width: 600px)").matches?s(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?s(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?s(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(s(this,h).current="desktop")},W.isBrowser&&(this.resize(),S.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE))}get width(){return s(this,u)}get height(){return s(this,w)}get type(){return s(this,h)}get pixelRatio(){return s(this,x)}}u=new WeakMap,w=new WeakMap,x=new WeakMap,h=new WeakMap;const I=new T;exports.ViewportBreakpoints=z;exports.ViewportMediaRules=A;exports.device=M;exports.viewport=I;
1
+ "use strict";var v=t=>{throw TypeError(t)};var E=(t,i,n)=>i.has(t)||v("Cannot "+n);var s=(t,i,n)=>(E(t,i,"read from private field"),n?n.call(t):i.get(t)),o=(t,i,n)=>i.has(t)?v("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,n),e=(t,i,n,b)=>(E(t,i,"write to private field"),b?b.call(t,n):i.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../order/index.cjs"),S=require("../window-resizer/index.cjs"),W=require("../index-Cqw2NKev.cjs"),R=require("../Store-GokLe_g-.cjs");var r,d,a,l,m,c;class D{constructor(){o(this,r);o(this,d);o(this,a);o(this,l);o(this,m);o(this,c);var i,n;if(e(this,r,"unknown"),e(this,d,!1),e(this,a,!1),e(this,l,!1),e(this,m,!1),e(this,c,!1),this.resize=()=>{e(this,d,/Mobi|Android/i.test(navigator.userAgent)),e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},W.isBrowser){this.resize(),S.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE);{const g=document.createElement("canvas"),f=g.getContext("webgl")||g.getContext("experimental-webgl");e(this,l,f&&f instanceof WebGLRenderingContext||!1)}{const g=document.createElement("canvas");g.getContext("2d")&&e(this,m,g.toDataURL("image/webp").indexOf("data:image/webp")==0)}const b=window.navigator.userAgent,p=((n=(i=window.navigator)==null?void 0:i.userAgentData)==null?void 0:n.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],k=["Win32","Win64","Windows","WinCE"],C=["iPhone","iPad","iPod"];O.includes(p)?(e(this,r,"macOS"),e(this,c,!0)):C.includes(p)?(e(this,r,"iOS"),e(this,c,!0)):k.includes(p)?e(this,r,"Windows"):/Android/.test(b)?e(this,r,"Android"):/Linux/.test(p)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return s(this,r)}get isMobile(){return s(this,d)}get isTouch(){return s(this,a)}get isWebgl(){return s(this,l)}get isWebp(){return s(this,m)}get isApple(){return s(this,c)}}r=new WeakMap,d=new WeakMap,a=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap;const M=new D;var z=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(z||{}),A=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(A||{}),u,w,x,h;class T{constructor(){o(this,u);o(this,w);o(this,x);o(this,h);e(this,u,0),e(this,w,0),e(this,x,0),e(this,h,new R.Store(void 0)),this.resize=()=>{e(this,u,document.documentElement.clientWidth),e(this,w,innerHeight),e(this,x,devicePixelRatio),matchMedia("(max-width: 600px)").matches?s(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?s(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?s(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(s(this,h).current="desktop")},W.isBrowser&&(this.resize(),S.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE))}get width(){return s(this,u)}get height(){return s(this,w)}get type(){return s(this,h)}get pixelRatio(){return s(this,x)}}u=new WeakMap,w=new WeakMap,x=new WeakMap,h=new WeakMap;const I=new T;exports.ViewportBreakpoints=z;exports.ViewportMediaRules=A;exports.device=M;exports.viewport=I;
@@ -6,7 +6,7 @@ var s = (t, e, n) => (E(t, e, "read from private field"), n ? n.call(t) : e.get(
6
6
  import { RESIZE_ORDER as P } from "../order/index.js";
7
7
  import { windowResizer as W } from "../window-resizer/index.js";
8
8
  import { i as A } from "../index-euf5anj6.js";
9
- import { S as z } from "../Store-D2xCXENW.js";
9
+ import { S as z } from "../Store-swP_0ymB.js";
10
10
  var h, m, r, d, l, c;
11
11
  class O {
12
12
  constructor() {
@@ -1 +1 @@
1
- "use strict";var u=r=>{throw TypeError(r)};var a=(r,t,e)=>t.has(r)||u("Cannot "+e);var s=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),o=(r,t,e)=>t.has(r)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),c=(r,t,e,i)=>(a(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const f=require("../index-Cqw2NKev.cjs");var n,l,m;class E extends h.SourceElement{constructor(){super({sourceSetOptions:{mediaBuckets:!1}});o(this,n,null);o(this,l,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("load"))});o(this,m,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("error"))})}createConsumer(){return document.createElement("div")}consumeSource(e){s(this,n)&&(s(this,n).onload=null,s(this,n).onerror=null),this.consumerElement.innerHTML=(e==null?void 0:e.replace(/\\u003C/g,"<").replace(/\\u003E/g,">").replace(/\\"/g,'"'))||"",c(this,n,this.consumerElement.querySelector("iframe")),s(this,n)&&(s(this,n).onload=s(this,l),s(this,n).onerror=s(this,m))}}n=new WeakMap,l=new WeakMap,m=new WeakMap;f.isBrowser&&!customElements.get("e-iframe")&&customElements.define("e-iframe",E);exports.IFrameElement=E;
1
+ "use strict";var u=r=>{throw TypeError(r)};var a=(r,t,e)=>t.has(r)||u("Cannot "+e);var s=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),o=(r,t,e)=>t.has(r)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),c=(r,t,e,i)=>(a(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-GokLe_g-.cjs");const f=require("../index-Cqw2NKev.cjs");var n,l,m;class E extends h.SourceElement{constructor(){super({sourceSetOptions:{mediaBuckets:!1}});o(this,n,null);o(this,l,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("load"))});o(this,m,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("error"))})}createConsumer(){return document.createElement("div")}consumeSource(e){s(this,n)&&(s(this,n).onload=null,s(this,n).onerror=null),this.consumerElement.innerHTML=(e==null?void 0:e.replace(/\\u003C/g,"<").replace(/\\u003E/g,">").replace(/\\"/g,'"'))||"",c(this,n,this.consumerElement.querySelector("iframe")),s(this,n)&&(s(this,n).onload=s(this,l),s(this,n).onerror=s(this,m))}}n=new WeakMap,l=new WeakMap,m=new WeakMap;f.isBrowser&&!customElements.get("e-iframe")&&customElements.define("e-iframe",E);exports.IFrameElement=E;
@@ -5,7 +5,7 @@ var u = (r, t, e) => t.has(r) || a("Cannot " + e);
5
5
  var s = (r, t, e) => (u(r, t, "read from private field"), e ? e.call(r) : t.get(r)), i = (r, t, e) => t.has(r) ? a("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), c = (r, t, e, o) => (u(r, t, "write to private field"), o ? o.call(r, e) : t.set(r, e), e);
6
6
  import { SourceElement as E } from "../source/index.js";
7
7
  import "../window-resizer/index.js";
8
- import "../Store-D2xCXENW.js";
8
+ import "../Store-swP_0ymB.js";
9
9
  import { i as f } from "../index-euf5anj6.js";
10
10
  var n, m, l;
11
11
  class h extends E {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../device/index.cjs"),i=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const n=require("../index-Cqw2NKev.cjs");class t extends i.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(e){if(e&&this.hasAttribute("webp")&&r.device.isWebp){const s=e.split(".").slice(0,-1).join(".")+".webp";this.consumerElement.src=s}else this.consumerElement.src=e||""}}n.isBrowser&&!customElements.get("e-image")&&customElements.define("e-image",t);exports.ImageElement=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../device/index.cjs"),i=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-GokLe_g-.cjs");const n=require("../index-Cqw2NKev.cjs");class t extends i.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(e){if(e&&this.hasAttribute("webp")&&r.device.isWebp){const s=e.split(".").slice(0,-1).join(".")+".webp";this.consumerElement.src=s}else this.consumerElement.src=e||""}}n.isBrowser&&!customElements.get("e-image")&&customElements.define("e-image",t);exports.ImageElement=t;
@@ -1,7 +1,7 @@
1
1
  import { device as m } from "../device/index.js";
2
2
  import { SourceElement as s } from "../source/index.js";
3
3
  import "../window-resizer/index.js";
4
- import "../Store-D2xCXENW.js";
4
+ import "../Store-swP_0ymB.js";
5
5
  import { i } from "../index-euf5anj6.js";
6
6
  class r extends s {
7
7
  createConsumer() {