aptechka 0.13.0 → 0.14.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 (108) hide show
  1. package/lib/{Animation-seVC6-fS.cjs → Animation-De9aUv3b.cjs} +1 -1
  2. package/lib/{Animation-DF5jPON_.js → Animation-NAGXiFv5.js} +1 -1
  3. package/lib/{Composed-ChlKoJEp.cjs → Composed-C_4slJQ6.cjs} +1 -1
  4. package/lib/{Composed-CoX1ImVk.js → Composed-CfWa-69I.js} +1 -1
  5. package/lib/{Damped-C7WAqKPh.cjs → Damped-DYJ6Z0xo.cjs} +1 -1
  6. package/lib/{Damped-BDO-F13V.js → Damped-DbJKrUIf.js} +1 -1
  7. package/lib/Derived-BIBU-y7Z.cjs +1 -0
  8. package/lib/Derived-Vo_RsJfi.js +23 -0
  9. package/lib/{SourceManager-B8-EMNnd.js → SourceManager-B6wZpXUZ.js} +1 -1
  10. package/lib/{SourceManager-TzU9Rw08.cjs → SourceManager-CfHcGLUa.cjs} +1 -1
  11. package/lib/Store-C46i0nvr.js +137 -0
  12. package/lib/Store-npaZHvX4.cjs +1 -0
  13. package/lib/{Tweened-DSXD0I0k.cjs → Tweened-BkkD9s4n.cjs} +1 -1
  14. package/lib/{Tweened-CHhmfvzo.js → Tweened-DOSHLCZa.js} +1 -1
  15. package/lib/{Viewport-DTlImj28.js → Viewport-B55BvLsV.js} +1 -1
  16. package/lib/{Viewport-BmLTk_6k.cjs → Viewport-Cv4TRGiv.cjs} +1 -1
  17. package/lib/animation/index.cjs +1 -1
  18. package/lib/animation/index.js +3 -3
  19. package/lib/attribute/index.cjs +1 -1
  20. package/lib/attribute/index.js +13 -13
  21. package/lib/canvas/index.cjs +7 -1
  22. package/lib/canvas/index.js +54 -58
  23. package/lib/class-linked-status/index.cjs +1 -1
  24. package/lib/class-linked-status/index.js +1 -1
  25. package/lib/controls/index.cjs +1 -1
  26. package/lib/controls/index.js +3 -3
  27. package/lib/{createStylesheet-DO5t5q-m.js → createStylesheet-C68ja-RS.js} +3 -3
  28. package/lib/{createStylesheet-CaDI99iu.cjs → createStylesheet-Csfmh-MH.cjs} +1 -1
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +4 -4
  31. package/lib/dev/index.cjs +1 -1
  32. package/lib/dev/index.js +1 -1
  33. package/lib/device/index.cjs +1 -1
  34. package/lib/device/index.js +1 -1
  35. package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
  36. package/lib/element-constructor/index.cjs +1 -1
  37. package/lib/element-constructor/index.js +133 -122
  38. package/lib/element-resizer/index.js +8 -8
  39. package/lib/en3/helpers/index.cjs +1 -1
  40. package/lib/en3/helpers/index.js +4 -4
  41. package/lib/en3/index.js +1 -1
  42. package/lib/en3/loaders/index.js +1 -1
  43. package/lib/en3/misc/index.cjs +1 -1
  44. package/lib/en3/misc/index.js +2 -2
  45. package/lib/en3/utils/index.js +2 -2
  46. package/lib/{en3-x-Ki30MY.js → en3-sK9Z-fp2.js} +1 -1
  47. package/lib/file-BEr-o55N.js +31 -0
  48. package/lib/file-C9BbxzVU.cjs +1 -0
  49. package/lib/image/index.cjs +1 -1
  50. package/lib/image/index.js +1 -1
  51. package/lib/intersector/index.js +7 -7
  52. package/lib/ladder/index.cjs +1 -1
  53. package/lib/ladder/index.js +1 -1
  54. package/lib/layout-box/index.js +14 -14
  55. package/lib/media/index.cjs +1 -1
  56. package/lib/media/index.js +1 -1
  57. package/lib/need_redo_tweaker/index.cjs +18 -0
  58. package/lib/need_redo_tweaker/index.js +1343 -0
  59. package/lib/pointer/index.cjs +1 -1
  60. package/lib/pointer/index.js +3 -3
  61. package/lib/popover/index.cjs +1 -1
  62. package/lib/popover/index.js +60 -62
  63. package/lib/scroll/index.cjs +1 -1
  64. package/lib/scroll/index.js +105 -106
  65. package/lib/scroll-entries/index.js +15 -15
  66. package/lib/sequence/index.cjs +1 -1
  67. package/lib/sequence/index.js +1 -1
  68. package/lib/slicer/index.cjs +5 -5
  69. package/lib/slicer/index.js +55 -86
  70. package/lib/source/index.cjs +1 -1
  71. package/lib/source/index.js +2 -2
  72. package/lib/store/index.cjs +1 -1
  73. package/lib/store/index.js +38 -112
  74. package/lib/{tags-v-OSVkiQ.cjs → tags-6_ETuR75.cjs} +1 -1
  75. package/lib/{tags-4AoxVUe3.js → tags-zft1DGBz.js} +93 -93
  76. package/lib/ticker/index.js +1 -1
  77. package/lib/{traverseMaterials-mGC2_FkG.js → traverseMaterials-BlZbRhgW.js} +1 -1
  78. package/lib/utils/index.cjs +1 -1
  79. package/lib/utils/index.js +56 -57
  80. package/lib/video/index.cjs +1 -1
  81. package/lib/video/index.js +1 -1
  82. package/package.json +7 -55
  83. package/lib/Derived-B-2UXnVE.cjs +0 -1
  84. package/lib/Derived-CDGpSMKu.js +0 -56
  85. package/lib/Store-BnA-dJsE.cjs +0 -1
  86. package/lib/Store-DGtldlBH.js +0 -147
  87. package/lib/accordion/index.cjs +0 -1
  88. package/lib/accordion/index.js +0 -167
  89. package/lib/checkbox/index.cjs +0 -1
  90. package/lib/checkbox/index.js +0 -112
  91. package/lib/createTheme-CHnsCgAr.js +0 -15
  92. package/lib/createTheme-Cfaw9UmV.cjs +0 -1
  93. package/lib/events-BGwqaxVW.cjs +0 -1
  94. package/lib/events-CJTUMSLU.js +0 -20
  95. package/lib/file-EevnUtRj.cjs +0 -1
  96. package/lib/file-lxi_oXJf.js +0 -13
  97. package/lib/index-BhbT9PrL.js +0 -261
  98. package/lib/index-BpsQqM-8.cjs +0 -9
  99. package/lib/modal/index.cjs +0 -1
  100. package/lib/modal/index.js +0 -133
  101. package/lib/select/index.cjs +0 -1
  102. package/lib/select/index.js +0 -7
  103. package/lib/svg-path-data/index.cjs +0 -3
  104. package/lib/svg-path-data/index.js +0 -490
  105. package/lib/theme/index.cjs +0 -1
  106. package/lib/theme/index.js +0 -25
  107. package/lib/tweaker/index.cjs +0 -10
  108. package/lib/tweaker/index.js +0 -992
@@ -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-BnA-dJsE.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-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;
@@ -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-DGtldlBH.js";
6
+ import { S as q } from "./Store-C46i0nvr.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";
@@ -1 +1 @@
1
- "use strict";var t=s=>{throw TypeError(s)};var b=(s,e,r)=>e.has(s)||t("Cannot "+r);var c=(s,e,r)=>(b(s,e,"read from private field"),r?r.call(s):e.get(s)),u=(s,e,r)=>e.has(s)?t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,r);const d=require("./function-MthRj-GJ.cjs"),l=require("./Store-BnA-dJsE.cjs");var o;class a extends l.Store{constructor(r,n,i){super(null,i);u(this,o,[]);const h=d.debounce(()=>{this.current=n()},0);r.forEach(p=>{c(this,o).push(p.subscribe(()=>{h()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=a;
1
+ "use strict";var t=s=>{throw TypeError(s)};var b=(s,e,r)=>e.has(s)||t("Cannot "+r);var c=(s,e,r)=>(b(s,e,"read from private field"),r?r.call(s):e.get(s)),u=(s,e,r)=>e.has(s)?t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,r);const d=require("./function-MthRj-GJ.cjs"),l=require("./Store-npaZHvX4.cjs");var o;class a extends l.Store{constructor(r,n,i){super(null,i);u(this,o,[]);const h=d.debounce(()=>{this.current=n()},0);r.forEach(p=>{c(this,o).push(p.subscribe(()=>{h()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=a;
@@ -4,7 +4,7 @@ var c = (s) => {
4
4
  var h = (s, r, o) => r.has(s) || c("Cannot " + o);
5
5
  var t = (s, r, o) => (h(s, r, "read from private field"), o ? o.call(s) : r.get(s)), u = (s, r, o) => r.has(s) ? c("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, o);
6
6
  import { d as b } from "./function-C10DGppn.js";
7
- import { S as d } from "./Store-DGtldlBH.js";
7
+ import { S as d } from "./Store-C46i0nvr.js";
8
8
  var e;
9
9
  class x extends d {
10
10
  constructor(o, p, a) {
@@ -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-seVC6-fS.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-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;
@@ -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-DF5jPON_.js";
20
+ import { A as q } from "./Animation-NAGXiFv5.js";
21
21
  var i, h;
22
22
  class j extends q {
23
23
  constructor(t, r) {
@@ -0,0 +1 @@
1
+ "use strict";var u=e=>{throw TypeError(e)};var i=(e,r,s)=>r.has(e)||u("Cannot "+s);var n=(e,r,s)=>(i(e,r,"read from private field"),s?s.call(e):r.get(e)),o=(e,r,s)=>r.has(e)?u("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),l=(e,r,s,c)=>(i(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const h=require("./Store-npaZHvX4.cjs");var t;class p extends h.Store{constructor(s,c,b){super(null,b);o(this,t);l(this,t,s.subscribe(d=>{this.current=c(d.current)}))}close(){super.close(),n(this,t).call(this)}}t=new WeakMap;exports.Derived=p;
@@ -0,0 +1,23 @@
1
+ var u = (s) => {
2
+ throw TypeError(s);
3
+ };
4
+ var o = (s, r, e) => r.has(s) || u("Cannot " + e);
5
+ var i = (s, r, e) => (o(s, r, "read from private field"), e ? e.call(s) : r.get(s)), n = (s, r, e) => r.has(s) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), l = (s, r, e, c) => (o(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
6
+ import { S as a } from "./Store-C46i0nvr.js";
7
+ var t;
8
+ class m extends a {
9
+ constructor(e, c, b) {
10
+ super(null, b);
11
+ n(this, t);
12
+ l(this, t, e.subscribe((p) => {
13
+ this.current = c(p.current);
14
+ }));
15
+ }
16
+ close() {
17
+ super.close(), i(this, t).call(this);
18
+ }
19
+ }
20
+ t = new WeakMap();
21
+ export {
22
+ m as D
23
+ };
@@ -5,7 +5,7 @@ var k = (a, e, t) => e.has(a) || $("Cannot " + t);
5
5
  var r = (a, e, t) => (k(a, e, "read from private field"), t ? t.call(a) : e.get(a)), o = (a, e, t) => e.has(a) ? $("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t), i = (a, e, t, n) => (k(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
6
6
  import { RESIZE_ORDER as B } from "./order/index.js";
7
7
  import { windowResizer as A } from "./window-resizer/index.js";
8
- import { S as T } from "./Store-DGtldlBH.js";
8
+ import { S as T } from "./Store-C46i0nvr.js";
9
9
  var y, g, q, u, c, d, w;
10
10
  class O {
11
11
  constructor(e) {
@@ -1 +1 @@
1
- "use strict";var b=c=>{throw TypeError(c)};var k=(c,e,t)=>e.has(c)||b("Cannot "+t);var r=(c,e,t)=>(k(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>e.has(c)?b("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,t),i=(c,e,t,n)=>(k(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const T=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),_=require("./Store-BnA-dJsE.cjs");var y,g,q,m,a,d,w;class A{constructor(e){o(this,y);o(this,g);o(this,q);o(this,m);o(this,a);o(this,d);o(this,w);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class B{constructor(e){o(this,p);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new A(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class O extends _.Store{constructor(t){super(void 0);o(this,R);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new B(t.srcset))}close(){super.close(),this.disconnect()}connect(){z.windowResizer.subscribe(r(this,E),T.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){z.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=A;exports.SourceManager=O;exports.SourceSet=B;
1
+ "use strict";var b=c=>{throw TypeError(c)};var k=(c,e,t)=>e.has(c)||b("Cannot "+t);var r=(c,e,t)=>(k(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>e.has(c)?b("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,t),i=(c,e,t,n)=>(k(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const T=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),_=require("./Store-npaZHvX4.cjs");var y,g,q,m,a,d,w;class A{constructor(e){o(this,y);o(this,g);o(this,q);o(this,m);o(this,a);o(this,d);o(this,w);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class B{constructor(e){o(this,p);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new A(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class O extends _.Store{constructor(t){super(void 0);o(this,R);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new B(t.srcset))}close(){super.close(),this.disconnect()}connect(){z.windowResizer.subscribe(r(this,E),T.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){z.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=A;exports.SourceManager=O;exports.SourceSet=B;
@@ -0,0 +1,137 @@
1
+ var A = (r) => {
2
+ throw TypeError(r);
3
+ };
4
+ var o = (r, t, e) => t.has(r) || A("Cannot " + e);
5
+ var i = (r, t, e) => (o(r, t, "read from private field"), e ? e.call(r) : t.get(r)), c = (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), h = (r, t, e, a) => (o(r, t, "write to private field"), a ? a.call(r, e) : t.set(r, e), e), k = (r, t, e) => (o(r, t, "access private method"), e);
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 t = this.getState(), e = JSON.stringify(t);
18
+ localStorage.setItem(this.name, e);
19
+ }
20
+ loadState(t = localStorage.getItem(this.name)) {
21
+ t && (typeof t == "string" ? h(this, l, JSON.parse(t)) : h(this, l, t), f.current.forEach((e) => {
22
+ e.passport && this.updateStore(e);
23
+ }));
24
+ }
25
+ resetState() {
26
+ f.current.forEach((t) => {
27
+ t.passport && t.reset();
28
+ }), this.saveState();
29
+ }
30
+ updateStore(t) {
31
+ var a, y;
32
+ if (!Array.isArray((a = i(this, l)) == null ? void 0 : a.stores))
33
+ return t;
34
+ const e = t.passport;
35
+ if (e) {
36
+ const w = (y = i(this, l)) == null ? void 0 : y.stores.find(
37
+ (N) => N.name === e.name
38
+ );
39
+ w && (t.current = w.value);
40
+ }
41
+ return t;
42
+ }
43
+ getState() {
44
+ const t = {
45
+ stores: []
46
+ };
47
+ return f.current.forEach((e) => {
48
+ e.passport && (t.stores.find((a) => a.name === e.passport.name) || t.stores.push({
49
+ value: e.current,
50
+ name: e.passport.name
51
+ }));
52
+ }), t;
53
+ }
54
+ }
55
+ l = new WeakMap();
56
+ const M = new E();
57
+ var d, s, S, n, g, u, m, b, v, C;
58
+ class q {
59
+ constructor(t, e) {
60
+ c(this, v);
61
+ c(this, d);
62
+ c(this, s);
63
+ c(this, S);
64
+ c(this, n, /* @__PURE__ */ new Set());
65
+ c(this, g);
66
+ c(this, u);
67
+ c(this, m);
68
+ c(this, b);
69
+ h(this, d, e == null ? void 0 : e.passport), h(this, s, {
70
+ initial: t,
71
+ previous: void 0,
72
+ current: t
73
+ }), h(this, S, (e == null ? void 0 : e.equalityCheck) || ((a, y) => a === y)), e != null && e.validate && this.addMiddleware(e.validate), h(this, m, (e == null ? void 0 : e.notifyAndClose) || !1), h(this, b, (e == null ? void 0 : e.invisible) || !1), h(this, g, (e == null ? void 0 : e.skipSubscribeNotification) || !1), i(this, d) && M.updateStore(this);
74
+ }
75
+ get passport() {
76
+ return i(this, d);
77
+ }
78
+ get initial() {
79
+ return i(this, s).initial;
80
+ }
81
+ get previous() {
82
+ return i(this, s).previous;
83
+ }
84
+ get current() {
85
+ return i(this, s).current;
86
+ }
87
+ set current(t) {
88
+ if (!i(this, S).call(this, i(this, s).current, t)) {
89
+ if (i(this, s).previous = i(this, s).current, i(this, u))
90
+ for (const e of i(this, u))
91
+ t = e(t);
92
+ i(this, s).current = t, k(this, v, C).call(this), i(this, m) && this.close();
93
+ }
94
+ }
95
+ get subscribers() {
96
+ return i(this, n);
97
+ }
98
+ addMiddleware(t) {
99
+ i(this, u) || h(this, u, /* @__PURE__ */ new Set()), i(this, u).add(t);
100
+ }
101
+ removeMiddleware(t) {
102
+ var e, a;
103
+ (e = i(this, u)) == null || e.delete(t), (a = i(this, u)) != null && a.size || h(this, u, void 0);
104
+ }
105
+ subscribe(t) {
106
+ return !i(this, b) && !i(this, n).size && I(this), i(this, n).add(t), i(this, g) || t(i(this, s)), () => {
107
+ this.unsubscribe(t);
108
+ };
109
+ }
110
+ unsubscribe(t) {
111
+ i(this, n).delete(t), i(this, n).size || p(this);
112
+ }
113
+ reset() {
114
+ this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
115
+ }
116
+ close() {
117
+ i(this, n).clear(), p(this);
118
+ }
119
+ }
120
+ d = new WeakMap(), s = new WeakMap(), S = new WeakMap(), n = new WeakMap(), g = new WeakMap(), u = new WeakMap(), m = new WeakMap(), b = new WeakMap(), v = new WeakSet(), C = function() {
121
+ for (const t of i(this, n))
122
+ t(i(this, s));
123
+ };
124
+ const f = new q([], {
125
+ invisible: !0
126
+ });
127
+ function I(r) {
128
+ f.current.includes(r) || (f.current = [...f.current, r]);
129
+ }
130
+ function p(r) {
131
+ f.current.includes(r) && (f.current = f.current.filter((t) => t !== r));
132
+ }
133
+ export {
134
+ q as S,
135
+ f as a,
136
+ M as s
137
+ };
@@ -0,0 +1 @@
1
+ "use strict";var A=i=>{throw TypeError(i)};var o=(i,t,e)=>t.has(i)||A("Cannot "+e);var r=(i,t,e)=>(o(i,t,"read from private field"),e?e.call(i):t.get(i)),c=(i,t,e)=>t.has(i)?A("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,a)=>(o(i,t,"write to private field"),a?a.call(i,e):t.set(i,e),e),k=(i,t,e)=>(o(i,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");var f;class R{constructor(){c(this,f);this.storage=null,this.name="store-registry",h(this,f,null),M.isBrowser&&(this.storage=localStorage)}get loadedState(){return r(this,f)}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,f,JSON.parse(t)):h(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var a,y;if(!Array.isArray((a=r(this,f))==null?void 0:a.stores))return t;const e=t.passport;if(e){const w=(y=r(this,f))==null?void 0:y.stores.find(E=>E.name===e.name);w&&(t.current=w.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(a=>a.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap;const N=new R;var d,s,S,n,g,u,b,m,v,z;class q{constructor(t,e){c(this,v);c(this,d);c(this,s);c(this,S);c(this,n,new Set);c(this,g);c(this,u);c(this,b);c(this,m);h(this,d,e==null?void 0:e.passport),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,b,(e==null?void 0:e.notifyAndClose)||!1),h(this,m,(e==null?void 0:e.invisible)||!1),h(this,g,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&N.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,s).initial}get previous(){return r(this,s).previous}get current(){return r(this,s).current}set current(t){if(!r(this,S).call(this,r(this,s).current,t)){if(r(this,s).previous=r(this,s).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,s).current=t,k(this,v,z).call(this),r(this,b)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||h(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,a;(e=r(this,u))==null||e.delete(t),(a=r(this,u))!=null&&a.size||h(this,u,void 0)}subscribe(t){return!r(this,m)&&!r(this,n).size&&p(this),r(this,n).add(t),r(this,g)||t(r(this,s)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),C(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,n=new WeakMap,g=new WeakMap,u=new WeakMap,b=new WeakMap,m=new WeakMap,v=new WeakSet,z=function(){for(const t of r(this,n))t(r(this,s))};const l=new q([],{invisible:!0});function p(i){l.current.includes(i)||(l.current=[...l.current,i])}function C(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=q;exports.activeStores=l;exports.storeRegistry=N;
@@ -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-seVC6-fS.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-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;
@@ -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-DF5jPON_.js";
21
+ import { A as w } from "./Animation-NAGXiFv5.js";
22
22
  var s, r;
23
23
  class k extends w {
24
24
  constructor(t, a) {
@@ -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-DGtldlBH.js";
10
+ import { S as I } from "./Store-C46i0nvr.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";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-BnA-dJsE.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-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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-seVC6-fS.cjs"),n=require("../Damped-C7WAqKPh.cjs"),i=require("../Tweened-DSXD0I0k.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-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,6 +1,6 @@
1
- import { A as r } from "../Animation-DF5jPON_.js";
2
- import { D as m } from "../Damped-BDO-F13V.js";
3
- import { T as t } from "../Tweened-CHhmfvzo.js";
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";
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-BnA-dJsE.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-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,22 +1,22 @@
1
- var A = (t) => {
1
+ var g = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var m = (t, e, s) => e.has(t) || A("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) ? A("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), a = (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-DGtldlBH.js";
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-C46i0nvr.js";
7
7
  import { p as S } from "../attributes-69we3byR.js";
8
8
  import { i as w } from "../browser-0zX67oeU.js";
9
- import { a as x } from "../dom-P5QbAASX.js";
10
- var i, u, c, b, n, p;
9
+ import { g as x } from "../dom-0S_WDL4g.js";
10
+ var i, u, a, b, n, p;
11
11
  class N extends y {
12
- constructor(s, o, g, f) {
13
- super(g, f);
12
+ constructor(s, o, A, f) {
13
+ super(A, f);
14
14
  h(this, n);
15
15
  h(this, i, null);
16
16
  h(this, u);
17
- h(this, c, null);
17
+ h(this, a, null);
18
18
  h(this, b, !1);
19
- a(this, u, o), w && (a(this, i, x(s)), a(this, c, new MutationObserver((l) => {
19
+ c(this, u, o), w && (c(this, i, x(s)), c(this, a, new MutationObserver((l) => {
20
20
  l.forEach((d) => {
21
21
  d.type === "attributes" && d.attributeName === r(this, u) && v(this, n, p).call(this);
22
22
  });
@@ -31,18 +31,18 @@ class N extends y {
31
31
  super.unsubscribe(s), this.subscribers.size || this.unobserve();
32
32
  }
33
33
  observe() {
34
- r(this, b) || (a(this, b, !0), r(this, c).observe(r(this, i), {
34
+ r(this, b) || (c(this, b, !0), r(this, a).observe(r(this, i), {
35
35
  attributes: !0
36
36
  }), v(this, n, p).call(this));
37
37
  }
38
38
  unobserve() {
39
- r(this, b) && (a(this, b, !1), r(this, c).disconnect());
39
+ r(this, b) && (c(this, b, !1), r(this, a).disconnect());
40
40
  }
41
41
  close() {
42
42
  super.close(), this.unobserve();
43
43
  }
44
44
  }
45
- i = new WeakMap(), u = new WeakMap(), c = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
45
+ i = new WeakMap(), u = new WeakMap(), a = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
46
46
  const s = r(this, i).getAttribute(r(this, u));
47
47
  s != null && (this.current = S(s));
48
48
  };
@@ -1 +1,7 @@
1
- "use strict";var y=i=>{throw TypeError(i)};var R=(i,s,e)=>s.has(i)||y("Cannot "+e);var t=(i,s,e)=>(R(i,s,"read from private field"),e?e.call(i):s.get(i)),h=(i,s,e)=>s.has(i)?y("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),a=(i,s,e,r)=>(R(i,s,"write to private field"),r?r.call(i,e):s.set(i,e),e),l=(i,s,e)=>(R(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../css-property/index.cjs");require("../Store-BnA-dJsE.cjs");const F=require("../math-GDWEqu7y.cjs"),w=require("../ticker/index.cjs"),f=require("../tags-v-OSVkiQ.cjs"),B=require("../createStylesheet-CaDI99iu.cjs"),C=require("../element-resizer/index.cjs"),L=B.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});var c,o,m,u,d,p,b,g,n,E,q,x,v,S,P;class k extends HTMLElement{constructor(){super();h(this,n);h(this,c,new z.CSSProperty(this,"--fps",0));h(this,o,null);h(this,m,null);h(this,u,0);h(this,d,0);h(this,p,1);h(this,b,0);h(this,g,1);h(this,x,e=>{a(this,p,F.clamp(devicePixelRatio,1,2)),a(this,u,e.contentRect.width),a(this,d,e.contentRect.height),t(this,o).width=t(this,u)*this.pixelRatio,t(this,o).height=t(this,d)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),l(this,n,P).call(this),l(this,n,S).call(this)});h(this,v,e=>{a(this,b,e.timestamp),a(this,g,e.timeBetweenFrames),l(this,n,S).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(L),f.element(this,{children:f.canvas({ref:r=>{a(this,o,r),a(this,m,r.getContext("2d"))}})}),t(this,c).subscribe(r=>{typeof r.previous!="undefined"&&r.current!==r.previous&&l(this,n,E).call(this)})}get fpsCSSProperty(){return t(this,c)}get canvasElement(){return t(this,o)}get context(){return t(this,m)}get pixelRatio(){return t(this,p)}get width(){return t(this,u)}get height(){return t(this,d)}get detail(){return{width:t(this,u),height:t(this,d),element:this,canvasElement:t(this,o),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)),l(this,n,E).call(this)}disconnectedCallback(){t(this,c).unobserve(),C.elementResizer.unsubscribe(t(this,x)),l(this,n,q).call(this)}}c=new WeakMap,o=new WeakMap,m=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,b=new WeakMap,g=new WeakMap,n=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})},q=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",k);exports.CanvasElement=k;
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,103 +1,99 @@
1
- var S = (i) => {
1
+ var C = (i) => {
2
2
  throw TypeError(i);
3
3
  };
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, r) => (x(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e), m = (i, s, e) => (x(i, s, "access private method"), e);
6
- import { CSSProperty as P } from "../css-property/index.js";
7
- import "../Store-DGtldlBH.js";
8
- import { c as z } from "../math-BOBiC4TN.js";
9
- import { ticker as w } from "../ticker/index.js";
10
- import { e as F, q as B } from "../tags-4AoxVUe3.js";
11
- import { c as L } from "../createStylesheet-DO5t5q-m.js";
12
- import { elementResizer as C } from "../element-resizer/index.js";
13
- const q = L({
14
- ":host, canvas": {
15
- display: "block",
16
- width: "100%",
17
- height: "100%"
18
- }
19
- });
20
- var o, c, d, l, p, u, b, f, n, R, y, g, v, E, k;
21
- class A extends HTMLElement {
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";
10
+ 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
+ class L extends HTMLElement {
22
13
  constructor() {
23
14
  super();
24
15
  h(this, n);
25
- h(this, o, new P(this, "--fps", 0));
26
- h(this, c, null);
27
- h(this, d, null);
16
+ h(this, c, new z(this, "--fps", 0));
17
+ h(this, r, null);
18
+ h(this, p, null);
28
19
  h(this, l, 0);
29
- h(this, p, 0);
30
- h(this, u, 1);
20
+ h(this, m, 0);
21
+ h(this, d, 1);
31
22
  h(this, b, 0);
32
- h(this, f, 1);
33
- h(this, g, (e) => {
34
- a(this, u, z(devicePixelRatio, 1, 2)), a(this, l, e.contentRect.width), a(this, p, e.contentRect.height), t(this, c).width = t(this, l) * this.pixelRatio, t(this, c).height = t(this, p) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), m(this, n, k).call(this), m(this, n, E).call(this);
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);
35
26
  });
36
- h(this, v, (e) => {
37
- a(this, b, e.timestamp), a(this, f, e.timeBetweenFrames), m(this, n, E).call(this);
27
+ h(this, u, (e) => {
28
+ a(this, b, e.timestamp), a(this, g, e.timeBetweenFrames), o(this, n, E).call(this);
38
29
  });
39
- this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(q), F(this, {
40
- children: B({
41
- ref: (r) => {
42
- a(this, c, r), a(this, d, r.getContext("2d"));
30
+ if (B) {
31
+ const e = new CSSStyleSheet();
32
+ e.replaceSync(`
33
+ :host, canvas {
34
+ display: block;
35
+ width: 100%;
36
+ height: 100%;
43
37
  }
44
- })
45
- }), t(this, o).subscribe((r) => {
46
- typeof r.previous != "undefined" && r.current !== r.previous && m(this, n, R).call(this);
47
- });
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);
42
+ });
43
+ }
48
44
  }
49
45
  get fpsCSSProperty() {
50
- return t(this, o);
46
+ return t(this, c);
51
47
  }
52
48
  get canvasElement() {
53
- return t(this, c);
49
+ return t(this, r);
54
50
  }
55
51
  get context() {
56
- return t(this, d);
52
+ return t(this, p);
57
53
  }
58
54
  get pixelRatio() {
59
- return t(this, u);
55
+ return t(this, d);
60
56
  }
61
57
  get width() {
62
58
  return t(this, l);
63
59
  }
64
60
  get height() {
65
- return t(this, p);
61
+ return t(this, m);
66
62
  }
67
63
  get detail() {
68
64
  return {
69
65
  width: t(this, l),
70
- height: t(this, p),
66
+ height: t(this, m),
71
67
  element: this,
72
- canvasElement: t(this, c),
73
- pixelRatio: t(this, u),
74
- context: t(this, d),
68
+ canvasElement: t(this, r),
69
+ pixelRatio: t(this, d),
70
+ context: t(this, p),
75
71
  timestamp: t(this, b),
76
- timeBetweenFrames: t(this, f)
72
+ timeBetweenFrames: t(this, g)
77
73
  };
78
74
  }
79
75
  connectedCallback() {
80
- t(this, o).observe(), C.subscribe(this, t(this, g)), m(this, n, R).call(this);
76
+ t(this, c).observe(), y.subscribe(this, t(this, w)), o(this, n, R).call(this);
81
77
  }
82
78
  disconnectedCallback() {
83
- t(this, o).unobserve(), C.unsubscribe(t(this, g)), m(this, n, y).call(this);
79
+ t(this, c).unobserve(), y.unsubscribe(t(this, w)), o(this, n, k).call(this);
84
80
  }
85
81
  }
86
- o = new WeakMap(), c = new WeakMap(), d = new WeakMap(), l = new WeakMap(), p = new WeakMap(), u = new WeakMap(), b = new WeakMap(), f = new WeakMap(), n = new WeakSet(), R = function() {
87
- w.unsubscribe(t(this, v)), this.hasAttribute("static") || w.subscribe(t(this, v), {
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), {
88
84
  culling: this,
89
- maxFPS: t(this, o).current
85
+ maxFPS: t(this, c).current
90
86
  });
91
- }, y = function() {
92
- w.unsubscribe(t(this, v));
93
- }, g = new WeakMap(), v = new WeakMap(), E = function() {
87
+ }, k = function() {
88
+ f.unsubscribe(t(this, u));
89
+ }, w = new WeakMap(), u = new WeakMap(), E = function() {
94
90
  this.dispatchEvent(
95
91
  new CustomEvent("canvasRender", {
96
92
  composed: !0,
97
93
  detail: this.detail
98
94
  })
99
95
  );
100
- }, k = function() {
96
+ }, P = function() {
101
97
  this.dispatchEvent(
102
98
  new CustomEvent("canvasResize", {
103
99
  composed: !0,
@@ -105,7 +101,7 @@ o = new WeakMap(), c = new WeakMap(), d = new WeakMap(), l = new WeakMap(), p =
105
101
  })
106
102
  );
107
103
  };
108
- customElements.get("e-canvas") || customElements.define("e-canvas", A);
104
+ customElements.get("e-canvas") || customElements.define("e-canvas", L);
109
105
  export {
110
- A as CanvasElement
106
+ L as CanvasElement
111
107
  };
@@ -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-BnA-dJsE.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-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;
@@ -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-DGtldlBH.js";
18
+ import { S as T } from "../Store-C46i0nvr.js";
19
19
  import { c as p } from "../string-f0Dnk0L1.js";
20
20
  var i;
21
21
  class g extends T {