aptechka 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/lib/{Damped-BvkThM-2.cjs → Damped-B0eRyTcV.cjs} +1 -1
  2. package/lib/{Damped-DEHDBwBz.js → Damped-Do9H-LKf.js} +1 -1
  3. package/lib/{Derived-Bc88XJ8J.js → Derived-Dbjm-dob.js} +1 -1
  4. package/lib/{Derived-SjPdLJiZ.cjs → Derived-vGokdC4b.cjs} +1 -1
  5. package/lib/{SourceManager-CI6NfLzW.cjs → SourceManager-CzcqsC3z.cjs} +1 -1
  6. package/lib/{SourceManager-BoP9RAJr.js → SourceManager-noBYGNeX.js} +1 -1
  7. package/lib/{Store-JOKrNVEr.js → Store-DdDuj5hz.js} +42 -41
  8. package/lib/Store-Dis8QUAR.cjs +1 -0
  9. package/lib/{Viewport-COsaberc.cjs → Viewport-CRLSlcoi.cjs} +1 -1
  10. package/lib/{Viewport-CXY5xcGJ.js → Viewport-VSV_isot.js} +1 -1
  11. package/lib/{WheelControls-BJdZsEkS.js → WheelControls-BqO_fTyY.js} +1 -1
  12. package/lib/{WheelControls-CctFwJwY.cjs → WheelControls-fiz52vcl.cjs} +1 -1
  13. package/lib/abstract-elements/index.cjs +1 -1
  14. package/lib/abstract-elements/index.js +2 -2
  15. package/lib/animation/index.cjs +1 -1
  16. package/lib/animation/index.js +2 -2
  17. package/lib/attribute/index.cjs +1 -1
  18. package/lib/attribute/index.d.ts +2 -0
  19. package/lib/attribute/index.js +36 -30
  20. package/lib/canvas/index.cjs +1 -1
  21. package/lib/canvas/index.js +3 -3
  22. package/lib/controls/index.cjs +1 -1
  23. package/lib/controls/index.js +2 -2
  24. package/lib/{createStylesheet-De-6zF24.cjs → createStylesheet-B4vLzvah.cjs} +1 -1
  25. package/lib/{createStylesheet-CYZlwj0H.js → createStylesheet-CR-XQRVT.js} +1 -1
  26. package/lib/device/index.cjs +1 -1
  27. package/lib/device/index.js +1 -1
  28. package/lib/dom-0S_WDL4g.js +42 -0
  29. package/lib/dom-JBOkFLTh.cjs +1 -0
  30. package/lib/element-constructor/ElementConstructor.d.ts +2 -0
  31. package/lib/element-constructor/index.cjs +1 -1
  32. package/lib/element-constructor/index.js +113 -114
  33. package/lib/element-resizer/index.cjs +1 -1
  34. package/lib/element-resizer/index.js +1 -1
  35. package/lib/en3/core/en3.d.ts +2 -1
  36. package/lib/en3/index.cjs +1 -1
  37. package/lib/en3/index.js +6 -6
  38. package/lib/image/index.cjs +1 -1
  39. package/lib/image/index.js +1 -1
  40. package/lib/{index-8MIh-Dcx.js → index-D-FPaxdJ.js} +3 -3
  41. package/lib/{index-CHamNqUl.cjs → index-MKoD8NCT.cjs} +1 -1
  42. package/lib/intersector/index.cjs +1 -1
  43. package/lib/intersector/index.js +1 -1
  44. package/lib/ladder/index.cjs +1 -1
  45. package/lib/ladder/index.js +1 -1
  46. package/lib/layout-box/index.cjs +1 -1
  47. package/lib/layout-box/index.js +1 -1
  48. package/lib/media/index.cjs +1 -1
  49. package/lib/media/index.js +1 -1
  50. package/lib/modal/index.cjs +1 -1
  51. package/lib/modal/index.js +3 -3
  52. package/lib/popover/index.cjs +1 -1
  53. package/lib/popover/index.js +54 -52
  54. package/lib/resized/index.cjs +1 -1
  55. package/lib/resized/index.js +1 -1
  56. package/lib/router/index.cjs +1 -1
  57. package/lib/router/index.js +93 -98
  58. package/lib/scroll/ScrollElement.d.ts +0 -22
  59. package/lib/scroll/index.cjs +1 -1
  60. package/lib/scroll/index.js +159 -183
  61. package/lib/scroll-entries/index.cjs +1 -1
  62. package/lib/scroll-entries/index.js +16 -17
  63. package/lib/select/index.cjs +1 -1
  64. package/lib/select/index.js +1 -1
  65. package/lib/source/index.cjs +1 -1
  66. package/lib/source/index.js +2 -2
  67. package/lib/store/Store.d.ts +1 -0
  68. package/lib/store/index.cjs +1 -1
  69. package/lib/store/index.js +119 -48
  70. package/lib/studio/index.cjs +1 -1
  71. package/lib/studio/index.js +17 -17
  72. package/lib/tags-D3-tO-m6.cjs +1 -0
  73. package/lib/tags-D9nd9mMM.js +846 -0
  74. package/lib/theme/index.cjs +1 -1
  75. package/lib/theme/index.js +2 -2
  76. package/lib/utils/dom.d.ts +1 -0
  77. package/lib/utils/index.cjs +1 -1
  78. package/lib/utils/index.d.ts +1 -1
  79. package/lib/utils/index.js +68 -67
  80. package/lib/video/index.cjs +1 -1
  81. package/lib/video/index.js +1 -1
  82. package/package.json +1 -65
  83. package/lib/ComponentElement-CIl1lnep.cjs +0 -1
  84. package/lib/ComponentElement-CzGRgBvs.js +0 -76
  85. package/lib/Composed-ClTo1f0b.js +0 -79
  86. package/lib/Composed-Mdr4ZFbI.cjs +0 -1
  87. package/lib/ElementConstructor-C_HDpVEZ.cjs +0 -1
  88. package/lib/ElementConstructor-ChgHpqb6.js +0 -326
  89. package/lib/Store-D0_rDIsE.cjs +0 -1
  90. package/lib/animation/hooks/index.cjs +0 -1
  91. package/lib/animation/hooks/index.d.ts +0 -9
  92. package/lib/animation/hooks/index.js +0 -32
  93. package/lib/attribute/hooks/index.d.ts +0 -3
  94. package/lib/controls/hooks/index.d.ts +0 -1
  95. package/lib/createStore-BSUQyZjo.js +0 -15
  96. package/lib/createStore-D61G4jpF.cjs +0 -1
  97. package/lib/dom-BY7JhTx5.js +0 -24
  98. package/lib/dom-qY2LdCVL.cjs +0 -1
  99. package/lib/element-resizer/hooks/index.cjs +0 -1
  100. package/lib/element-resizer/hooks/index.d.ts +0 -5
  101. package/lib/element-resizer/hooks/index.js +0 -12
  102. package/lib/instantiate-CXUQ7AmI.js +0 -72
  103. package/lib/instantiate-D63dC3Vr.cjs +0 -1
  104. package/lib/intersector/hooks/index.cjs +0 -1
  105. package/lib/intersector/hooks/index.d.ts +0 -5
  106. package/lib/intersector/hooks/index.js +0 -12
  107. package/lib/jsx/ComponentElement.d.ts +0 -26
  108. package/lib/jsx/h.d.ts +0 -4
  109. package/lib/jsx/hooks/attachInternals.d.ts +0 -1
  110. package/lib/jsx/hooks/attachShadow.d.ts +0 -1
  111. package/lib/jsx/hooks/attachStylesheet.d.ts +0 -3
  112. package/lib/jsx/hooks/createContext.d.ts +0 -2
  113. package/lib/jsx/hooks/createStore.d.ts +0 -4
  114. package/lib/jsx/hooks/index.cjs +0 -1
  115. package/lib/jsx/hooks/index.d.ts +0 -8
  116. package/lib/jsx/hooks/index.js +0 -73
  117. package/lib/jsx/hooks/onConnect.d.ts +0 -3
  118. package/lib/jsx/hooks/onDisconnect.d.ts +0 -3
  119. package/lib/jsx/hooks/withCurrentComponent.d.ts +0 -3
  120. package/lib/jsx/index.cjs +0 -1
  121. package/lib/jsx/index.d.ts +0 -5
  122. package/lib/jsx/index.js +0 -27
  123. package/lib/jsx/instantiate.d.ts +0 -1
  124. package/lib/jsx/register.d.ts +0 -1
  125. package/lib/jsx/render.d.ts +0 -1
  126. package/lib/jsx/type.d.ts +0 -186
  127. package/lib/onConnect-CNMynOhK.js +0 -9
  128. package/lib/onConnect-DyAwFqQQ.cjs +0 -1
  129. package/lib/store/hooks/index.cjs +0 -1
  130. package/lib/store/hooks/index.d.ts +0 -7
  131. package/lib/store/hooks/index.js +0 -26
  132. package/lib/tags-DSmoyoPZ.js +0 -485
  133. package/lib/tags-Di21YbUL.cjs +0 -1
  134. package/lib/ticker/hooks/index.cjs +0 -1
  135. package/lib/ticker/hooks/index.d.ts +0 -6
  136. package/lib/ticker/hooks/index.js +0 -23
  137. package/lib/window-resizer/hooks/index.cjs +0 -1
  138. package/lib/window-resizer/hooks/index.d.ts +0 -3
  139. package/lib/window-resizer/hooks/index.js +0 -9
  140. package/lib/withCurrentComponent-BDsFmjJ9.cjs +0 -1
  141. package/lib/withCurrentComponent-DIBND_yO.js +0 -7
@@ -1 +1 @@
1
- "use strict";var v=Object.defineProperty,z=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var D=(r,i,t)=>i in r?v(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,I=(r,i)=>{for(var t in i||(i={}))E.call(i,t)&&D(r,t,i[t]);if(N)for(var t of N(i))G.call(i,t)&&D(r,t,i[t]);return r},M=(r,i)=>z(r,B(i));var P=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var e=(r,i,t)=>(P(r,i,"read from private field"),t?t.call(r):i.get(r)),n=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,s)=>(P(r,i,"write to private field"),s?s.call(r,t):i.set(r,t),t);var k=(r,i,t)=>(P(r,i,"access private method"),t);const R=require("./Store-D0_rDIsE.cjs"),w=require("./math-GDWEqu7y.cjs"),C=require("./number-yVpzMdbQ.cjs"),L=require("./polyfills-CrcS4RcO.cjs"),_=require("./ticker/index.cjs");var d,f,x,g,m,b,l,a,c,u,F,j,q,p,S,A;class H extends R.Store{constructor(t,s){super(t||0);n(this,F);n(this,q);n(this,d,void 0);n(this,f,void 0);n(this,x,void 0);n(this,g,void 0);n(this,m,new R.Store(!1));n(this,b,0);n(this,l,0);n(this,a,0);n(this,c,0);n(this,u,void 0);n(this,S,t=>{const s=this.current;C.preciseNumber(this.current,4)===C.preciseNumber(this.target,4)&&(this.stopAnimation(),this.current=this.target),this.current=w.damp(this.current,this.target,e(this,g),t.elapsed);const y=Math.abs(s-this.target);h(this,l,y/t.elapsed)});n(this,A,()=>{this.set(e(this,u),!0)});h(this,g,(s==null?void 0:s.damping)||.01),h(this,f,s==null?void 0:s.order),h(this,d,s==null?void 0:s.maxFPS),h(this,x,s==null?void 0:s.culling),h(this,a,L.nullishCoalescing(s==null?void 0:s.min,-1/0)),h(this,c,L.nullishCoalescing(s==null?void 0:s.max,1/0)),h(this,u,this.current)}get target(){return e(this,u)}get isRunning(){return e(this,m)}get direction(){return e(this,b)}get maxFPS(){return e(this,d)}get speed(){return e(this,l)}get min(){return e(this,a)}set min(t){h(this,a,t),e(this,A).call(this)}get max(){return e(this,c)}set max(t){h(this,c,t),e(this,A).call(this)}get length(){return e(this,c)-e(this,a)}get progress(){return this.length?C.preciseNumber((this.current-e(this,a))/this.length,6):0}get damping(){return e(this,g)}set damping(t){h(this,g,t)}get entry(){return M(I({},super.entry),{min:e(this,a),max:e(this,c),length:this.length,direction:this.direction,progress:this.progress,speed:this.speed})}set(t,s=!1){const y=e(this,u);h(this,u,w.clamp(t,e(this,a),e(this,c))),s&&(this.current=e(this,u)),e(this,u)!==y&&(h(this,l,0),h(this,b,Math.sign(t-e(this,u))||1),k(this,q,p).call(this))}shift(t,s=!1){this.set(e(this,u)+t,s)}close(){super.close(),this.stopAnimation()}reset(){this.set(this.initial,!0)}stopAnimation(){e(this,m).current&&(h(this,l,0),e(this,m).current=!1,_.ticker.unsubscribe(e(this,S)))}}d=new WeakMap,f=new WeakMap,x=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,l=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,F=new WeakSet,j=function(){e(this,m).current||(e(this,m).current=!0,_.ticker.subscribe(e(this,S),{maxFPS:e(this,d),order:e(this,f),culling:e(this,x)}))},q=new WeakSet,p=function(){e(this,g)?this.current!==this.target&&k(this,F,j).call(this):(this.current=this.target,this.stopAnimation())},S=new WeakMap,A=new WeakMap;exports.Damped=H;
1
+ "use strict";var v=Object.defineProperty,z=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var D=(r,i,t)=>i in r?v(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,I=(r,i)=>{for(var t in i||(i={}))E.call(i,t)&&D(r,t,i[t]);if(N)for(var t of N(i))G.call(i,t)&&D(r,t,i[t]);return r},M=(r,i)=>z(r,B(i));var P=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var e=(r,i,t)=>(P(r,i,"read from private field"),t?t.call(r):i.get(r)),n=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,s)=>(P(r,i,"write to private field"),s?s.call(r,t):i.set(r,t),t);var k=(r,i,t)=>(P(r,i,"access private method"),t);const R=require("./Store-Dis8QUAR.cjs"),w=require("./math-GDWEqu7y.cjs"),C=require("./number-yVpzMdbQ.cjs"),L=require("./polyfills-CrcS4RcO.cjs"),_=require("./ticker/index.cjs");var d,f,x,g,m,b,l,a,c,u,F,j,q,p,S,A;class H extends R.Store{constructor(t,s){super(t||0);n(this,F);n(this,q);n(this,d,void 0);n(this,f,void 0);n(this,x,void 0);n(this,g,void 0);n(this,m,new R.Store(!1));n(this,b,0);n(this,l,0);n(this,a,0);n(this,c,0);n(this,u,void 0);n(this,S,t=>{const s=this.current;C.preciseNumber(this.current,4)===C.preciseNumber(this.target,4)&&(this.stopAnimation(),this.current=this.target),this.current=w.damp(this.current,this.target,e(this,g),t.elapsed);const y=Math.abs(s-this.target);h(this,l,y/t.elapsed)});n(this,A,()=>{this.set(e(this,u),!0)});h(this,g,(s==null?void 0:s.damping)||.01),h(this,f,s==null?void 0:s.order),h(this,d,s==null?void 0:s.maxFPS),h(this,x,s==null?void 0:s.culling),h(this,a,L.nullishCoalescing(s==null?void 0:s.min,-1/0)),h(this,c,L.nullishCoalescing(s==null?void 0:s.max,1/0)),h(this,u,this.current)}get target(){return e(this,u)}get isRunning(){return e(this,m)}get direction(){return e(this,b)}get maxFPS(){return e(this,d)}get speed(){return e(this,l)}get min(){return e(this,a)}set min(t){h(this,a,t),e(this,A).call(this)}get max(){return e(this,c)}set max(t){h(this,c,t),e(this,A).call(this)}get length(){return e(this,c)-e(this,a)}get progress(){return this.length?C.preciseNumber((this.current-e(this,a))/this.length,6):0}get damping(){return e(this,g)}set damping(t){h(this,g,t)}get entry(){return M(I({},super.entry),{min:e(this,a),max:e(this,c),length:this.length,direction:this.direction,progress:this.progress,speed:this.speed})}set(t,s=!1){const y=e(this,u);h(this,u,w.clamp(t,e(this,a),e(this,c))),s&&(this.current=e(this,u)),e(this,u)!==y&&(h(this,l,0),h(this,b,Math.sign(t-e(this,u))||1),k(this,q,p).call(this))}shift(t,s=!1){this.set(e(this,u)+t,s)}close(){super.close(),this.stopAnimation()}reset(){this.set(this.initial,!0)}stopAnimation(){e(this,m).current&&(h(this,l,0),e(this,m).current=!1,_.ticker.unsubscribe(e(this,S)))}}d=new WeakMap,f=new WeakMap,x=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,l=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,F=new WeakSet,j=function(){e(this,m).current||(e(this,m).current=!0,_.ticker.subscribe(e(this,S),{maxFPS:e(this,d),order:e(this,f),culling:e(this,x)}))},q=new WeakSet,p=function(){e(this,g)?this.current!==this.target&&k(this,F,j).call(this):(this.current=this.target,this.stopAnimation())},S=new WeakMap,A=new WeakMap;exports.Damped=H;
@@ -20,7 +20,7 @@ var i = (r, e, t) => (p(r, e, "read from private field"), t ? t.call(r) : e.get(
20
20
  e instanceof WeakSet ? e.add(r) : e.set(r, t);
21
21
  }, h = (r, e, t, s) => (p(r, e, "write to private field"), s ? s.call(r, t) : e.set(r, t), t);
22
22
  var C = (r, e, t) => (p(r, e, "access private method"), t);
23
- import { S as w } from "./Store-JOKrNVEr.js";
23
+ import { S as w } from "./Store-DdDuj5hz.js";
24
24
  import { c as H, d as J } from "./math-BOBiC4TN.js";
25
25
  import { p as D } from "./number-Bo5RdrA1.js";
26
26
  import { n as L } from "./polyfills-DJUYczFm.js";
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
9
  }, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
10
- import { S as p } from "./Store-JOKrNVEr.js";
10
+ import { S as p } from "./Store-DdDuj5hz.js";
11
11
  var t;
12
12
  class d extends p {
13
13
  constructor(e, c, l) {
@@ -1 +1 @@
1
- "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-D0_rDIsE.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
1
+ "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-Dis8QUAR.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
@@ -1 +1 @@
1
- "use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-D0_rDIsE.cjs");var l,g,q,x,a,p,w;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,w,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,g)}get density(){return n(this,q)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const m=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
1
+ "use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-Dis8QUAR.cjs");var l,g,q,x,a,p,w;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,w,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,g)}get density(){return n(this,q)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const m=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
@@ -9,7 +9,7 @@ var n = (r, s, t) => (M(r, s, "read from private field"), t ? t.call(r) : s.get(
9
9
  }, h = (r, s, t, i) => (M(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
10
10
  import { RESIZE_ORDER as I } from "./order/index.js";
11
11
  import { windowResizer as b } from "./window-resizer/index.js";
12
- import { S } from "./Store-JOKrNVEr.js";
12
+ import { S } from "./Store-DdDuj5hz.js";
13
13
  var l, g, q, x, o, p, w;
14
14
  class k {
15
15
  constructor(s) {
@@ -1,57 +1,57 @@
1
- var v = (s, t, e) => {
1
+ var p = (s, t, e) => {
2
2
  if (!t.has(s))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var r = (s, t, e) => (v(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
5
+ var r = (s, t, e) => (p(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
6
6
  if (t.has(s))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(s) : t.set(s, e);
9
- }, i = (s, t, e, h) => (v(s, t, "write to private field"), h ? h.call(s, e) : t.set(s, e), e);
10
- var k = (s, t, e) => (v(s, t, "access private method"), e);
11
- import { i as z } from "./browser-0zX67oeU.js";
12
- var l, o, S;
13
- class A {
9
+ }, i = (s, t, e, h) => (p(s, t, "write to private field"), h ? h.call(s, e) : t.set(s, e), e);
10
+ var k = (s, t, e) => (p(s, t, "access private method"), e);
11
+ import { i as j } from "./browser-0zX67oeU.js";
12
+ var l, S, o;
13
+ class z {
14
14
  constructor() {
15
15
  a(this, l, null);
16
- a(this, o, "");
17
16
  a(this, S, "");
18
- z && (i(this, o, document.documentElement.getAttribute("data-project") || "unnamed"), i(this, S, r(this, o) ? r(this, o) + "-store-registry" : "store-registry"));
17
+ a(this, o, "");
18
+ j && (i(this, S, document.documentElement.getAttribute("data-project") || "unnamed"), i(this, o, r(this, S) ? r(this, S) + "-store-registry" : "store-registry"));
19
19
  }
20
20
  get projectName() {
21
- return r(this, o);
21
+ return r(this, S);
22
22
  }
23
23
  get localStoreRegistryName() {
24
- return r(this, S);
24
+ return r(this, o);
25
25
  }
26
26
  get loadedState() {
27
27
  return r(this, l);
28
28
  }
29
29
  saveState() {
30
30
  const t = this.getState(), e = JSON.stringify(t);
31
- localStorage.setItem(r(this, S), e);
31
+ localStorage.setItem(r(this, o), e);
32
32
  }
33
33
  loadState(t = localStorage.getItem(
34
- r(this, S)
34
+ r(this, o)
35
35
  )) {
36
- t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), f.current.forEach((e) => {
36
+ t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), d.current.forEach((e) => {
37
37
  this.updateStore(e);
38
38
  }));
39
39
  }
40
40
  resetState() {
41
- f.current.forEach((t) => {
41
+ d.current.forEach((t) => {
42
42
  t.reset();
43
43
  }), this.saveState();
44
44
  }
45
45
  updateStore(t) {
46
- var h, p;
46
+ var h, v;
47
47
  if (!Array.isArray((h = r(this, l)) == null ? void 0 : h.stores))
48
48
  return t;
49
49
  const e = t.passport;
50
50
  if (e) {
51
- const N = (p = r(this, l)) == null ? void 0 : p.stores.find(
52
- (j) => j.name === e.name
51
+ const A = (v = r(this, l)) == null ? void 0 : v.stores.find(
52
+ (R) => R.name === e.name
53
53
  );
54
- N && (t.current = N.value);
54
+ A && (t.current = A.value);
55
55
  }
56
56
  return t;
57
57
  }
@@ -59,7 +59,7 @@ class A {
59
59
  const t = {
60
60
  stores: []
61
61
  };
62
- return f.current.forEach((e) => {
62
+ return d.current.forEach((e) => {
63
63
  e.passport && (t.stores.find((h) => h.name === e.passport.name) || t.stores.push({
64
64
  value: e.current,
65
65
  name: e.passport.name
@@ -67,21 +67,22 @@ class A {
67
67
  }), t;
68
68
  }
69
69
  }
70
- l = new WeakMap(), o = new WeakMap(), S = new WeakMap();
71
- const M = new A();
72
- var u, m, g, d, y, n, b, c, w, R;
70
+ l = new WeakMap(), S = new WeakMap(), o = new WeakMap();
71
+ const M = new z();
72
+ var u, m, g, f, y, n, b, c, w, N, E;
73
73
  class q {
74
74
  constructor(t, e) {
75
- a(this, w);
75
+ a(this, N);
76
76
  a(this, u, void 0);
77
77
  a(this, m, void 0);
78
78
  a(this, g, void 0);
79
- a(this, d, void 0);
79
+ a(this, f, void 0);
80
80
  a(this, y, void 0);
81
81
  a(this, n, /* @__PURE__ */ new Set());
82
82
  a(this, b, void 0);
83
83
  a(this, c, void 0);
84
- i(this, u, e == null ? void 0 : e.passport), i(this, m, t), i(this, g, void 0), i(this, d, t), i(this, y, (e == null ? void 0 : e.equalityCheck) || ((h, p) => h === p)), e != null && e.validate && this.addMiddleware(e.validate), i(this, b, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, u) && M.updateStore(this);
84
+ a(this, w, void 0);
85
+ i(this, u, e == null ? void 0 : e.passport), i(this, m, t), i(this, g, void 0), i(this, f, t), i(this, y, (e == null ? void 0 : e.equalityCheck) || ((h, v) => h === v)), e != null && e.validate && this.addMiddleware(e.validate), i(this, w, (e == null ? void 0 : e.notifyAndClose) || !1), i(this, b, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, u) && M.updateStore(this);
85
86
  }
86
87
  get passport() {
87
88
  return r(this, u);
@@ -93,14 +94,14 @@ class q {
93
94
  return r(this, g);
94
95
  }
95
96
  get current() {
96
- return r(this, d);
97
+ return r(this, f);
97
98
  }
98
99
  set current(t) {
99
- if (!r(this, y).call(this, r(this, d), t)) {
100
- if (i(this, g, r(this, d)), r(this, c))
100
+ if (!r(this, y).call(this, r(this, f), t)) {
101
+ if (i(this, g, r(this, f)), r(this, c))
101
102
  for (const e of r(this, c))
102
103
  t = e(t);
103
- i(this, d, t), k(this, w, R).call(this);
104
+ i(this, f, t), k(this, N, E).call(this), r(this, w) && this.close();
104
105
  }
105
106
  }
106
107
  get subscribers() {
@@ -108,7 +109,7 @@ class q {
108
109
  }
109
110
  get entry() {
110
111
  return {
111
- current: r(this, d),
112
+ current: r(this, f),
112
113
  previous: r(this, g)
113
114
  };
114
115
  }
@@ -120,33 +121,33 @@ class q {
120
121
  (e = r(this, c)) == null || e.delete(t), (h = r(this, c)) != null && h.size || i(this, c, void 0);
121
122
  }
122
123
  subscribe(t) {
123
- return r(this, u) && !r(this, n).size && C(this), r(this, n).add(t), r(this, b) || t(this.entry), () => {
124
+ return r(this, u) && !r(this, n).size && I(this), r(this, n).add(t), r(this, b) || t(this.entry), () => {
124
125
  this.unsubscribe(t);
125
126
  };
126
127
  }
127
128
  unsubscribe(t) {
128
- r(this, n).delete(t), r(this, u) && !r(this, n).size && E(this);
129
+ r(this, n).delete(t), r(this, u) && !r(this, n).size && C(this);
129
130
  }
130
131
  reset() {
131
132
  this.current = this.initial;
132
133
  }
133
134
  close() {
134
- r(this, n).clear(), r(this, u) && E(this);
135
+ r(this, n).clear(), r(this, u) && C(this);
135
136
  }
136
137
  }
137
- u = new WeakMap(), m = new WeakMap(), g = new WeakMap(), d = new WeakMap(), y = new WeakMap(), n = new WeakMap(), b = new WeakMap(), c = new WeakMap(), w = new WeakSet(), R = function() {
138
+ u = new WeakMap(), m = new WeakMap(), g = new WeakMap(), f = new WeakMap(), y = new WeakMap(), n = new WeakMap(), b = new WeakMap(), c = new WeakMap(), w = new WeakMap(), N = new WeakSet(), E = function() {
138
139
  for (const t of r(this, n))
139
140
  t(this.entry);
140
141
  };
141
- const f = new q([]);
142
- function C(s) {
143
- f.current.includes(s) || (f.current = [...f.current, s]);
142
+ const d = new q([]);
143
+ function I(s) {
144
+ d.current.includes(s) || (d.current = [...d.current, s]);
144
145
  }
145
- function E(s) {
146
- f.current.includes(s) && (f.current = f.current.filter((t) => t !== s));
146
+ function C(s) {
147
+ d.current.includes(s) && (d.current = d.current.filter((t) => t !== s));
147
148
  }
148
149
  export {
149
150
  q as S,
150
- f as a,
151
+ d as a,
151
152
  M as s
152
153
  };
@@ -0,0 +1 @@
1
+ "use strict";var p=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(p(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,h)=>(p(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(p(s,t,"access private method"),e);const z=require("./browser-CpzFX2xg.cjs");var l,S,o;class M{constructor(){a(this,l,null);a(this,S,"");a(this,o,"");z.isBrowser&&(i(this,S,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,o,r(this,S)?r(this,S)+"-store-registry":"store-registry"))}get projectName(){return r(this,S)}get localStoreRegistryName(){return r(this,o)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,o),e)}loadState(t=localStorage.getItem(r(this,o))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),u.current.forEach(e=>{this.updateStore(e)}))}resetState(){u.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var h,v;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const A=(v=r(this,l))==null?void 0:v.stores.find(q=>q.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return u.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,S=new WeakMap,o=new WeakMap;const C=new M;var f,m,g,d,y,n,b,c,w,N,j;class E{constructor(t,e){a(this,N);a(this,f,void 0);a(this,m,void 0);a(this,g,void 0);a(this,d,void 0);a(this,y,void 0);a(this,n,new Set);a(this,b,void 0);a(this,c,void 0);a(this,w,void 0);i(this,f,e==null?void 0:e.passport),i(this,m,t),i(this,g,void 0),i(this,d,t),i(this,y,(e==null?void 0:e.equalityCheck)||((h,v)=>h===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,w,(e==null?void 0:e.notifyAndClose)||!1),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,f)&&C.updateStore(this)}get passport(){return r(this,f)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,d)}set current(t){if(!r(this,y).call(this,r(this,d),t)){if(i(this,g,r(this,d)),r(this,c))for(const e of r(this,c))t=e(t);i(this,d,t),R(this,N,j).call(this),r(this,w)&&this.close()}}get subscribers(){return r(this,n)}get entry(){return{current:r(this,d),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return r(this,f)&&!r(this,n).size&&I(this),r(this,n).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,f)&&!r(this,n).size&&k(this)}reset(){this.current=this.initial}close(){r(this,n).clear(),r(this,f)&&k(this)}}f=new WeakMap,m=new WeakMap,g=new WeakMap,d=new WeakMap,y=new WeakMap,n=new WeakMap,b=new WeakMap,c=new WeakMap,w=new WeakMap,N=new WeakSet,j=function(){for(const t of r(this,n))t(this.entry)};const u=new E([]);function I(s){u.current.includes(s)||(u.current=[...u.current,s])}function k(s){u.current.includes(s)&&(u.current=u.current.filter(t=>t!==s))}exports.Store=E;exports.activeStores=u;exports.storeRegistry=C;
@@ -1 +1 @@
1
- "use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),_=require("detect-gpu"),q=require("./Store-D0_rDIsE.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){s(this,r,"unknown");s(this,l,"unknown");s(this,m,0);s(this,c,null);s(this,g,!1);s(this,u,!1);s(this,w,!1);s(this,x,!1);s(this,d,!1);var n,o;if(D.isBrowser){e(this,c,_.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),A.windowResizer.subscribe(()=>{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)},k.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=(n=window.navigator)==null?void 0:n.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 M=new I;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 L{constructor(){s(this,p,0);s(this,b,0);s(this,f,0);s(this,h,new q.Store(void 0));D.isBrowser&&A.windowResizer.subscribe(()=>{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")},k.RESIZE_ORDER.DEVICE)}get width(){return i(this,p)}get height(){return i(this,b)}get store_type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const z=new L;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=M;exports.viewport=z;
1
+ "use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),_=require("detect-gpu"),q=require("./Store-Dis8QUAR.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){s(this,r,"unknown");s(this,l,"unknown");s(this,m,0);s(this,c,null);s(this,g,!1);s(this,u,!1);s(this,w,!1);s(this,x,!1);s(this,d,!1);var n,o;if(D.isBrowser){e(this,c,_.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),A.windowResizer.subscribe(()=>{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)},k.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=(n=window.navigator)==null?void 0:n.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 M=new I;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 L{constructor(){s(this,p,0);s(this,b,0);s(this,f,0);s(this,h,new q.Store(void 0));D.isBrowser&&A.windowResizer.subscribe(()=>{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")},k.RESIZE_ORDER.DEVICE)}get width(){return i(this,p)}get height(){return i(this,b)}get store_type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const z=new L;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=M;exports.viewport=z;
@@ -11,7 +11,7 @@ import { RESIZE_ORDER as k } from "./order/index.js";
11
11
  import { windowResizer as A } from "./window-resizer/index.js";
12
12
  import { i as C } from "./browser-0zX67oeU.js";
13
13
  import { getGPUTier as O } from "detect-gpu";
14
- import { S as I } from "./Store-JOKrNVEr.js";
14
+ import { S as I } from "./Store-DdDuj5hz.js";
15
15
  var r, d, l, c, g, m, p, x, u;
16
16
  class L {
17
17
  constructor() {
@@ -8,7 +8,7 @@ var i = (t, s, e) => (g(t, s, "read from private field"), e ? e.call(t) : s.get(
8
8
  s instanceof WeakSet ? s.add(t) : s.set(t, e);
9
9
  }, l = (t, s, e, r) => (g(t, s, "write to private field"), r ? r.call(t, e) : s.set(t, e), e);
10
10
  import { i as d } from "./browser-0zX67oeU.js";
11
- import { g as x } from "./dom-BY7JhTx5.js";
11
+ import { g as x } from "./dom-0S_WDL4g.js";
12
12
  import { Notifier as b } from "./notifier/index.js";
13
13
  var u;
14
14
  class E {
@@ -1 +1 @@
1
- "use strict";var b=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(b(t,s,"read from private field"),e?e.call(t):s.get(t)),l=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(b(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);const n=require("./browser-CpzFX2xg.cjs"),x=require("./dom-qY2LdCVL.cjs"),E=require("./notifier/index.cjs");var m;class g{constructor(){l(this,m,new E.Notifier)}get changeEvent(){return r(this,m)}}m=new WeakMap;var d,o;class y extends g{constructor(e){super();l(this,d,null);l(this,o,e=>{const a=e.shiftKey?-1:1;let i;e.code==="Space"?i=a*500:e.code==="ArrowLeft"?i=-1*100:e.code==="ArrowRight"?i=1*100:e.code==="ArrowUp"?i=-1*100:e.code==="ArrowDown"?i=1*100:e.code==="PageUp"?i=-1*1e3:e.code==="PageDown"?i=1*1e3:e.code==="Home"?i="min":e.code==="End"&&(i="max"),i&&(e.stopPropagation(),this.changeEvent.notify(i))});n.isBrowser&&h(this,d,e!=null&&e.element&&x.getElement(e.element)||window)}connect(){n.isBrowser&&r(this,d).addEventListener("keydown",r(this,o))}disconnect(){n.isBrowser&&r(this,d).removeEventListener("keydown",r(this,o))}}d=new WeakMap,o=new WeakMap;var c,f,w,u;class M extends g{constructor(e){super();l(this,c,null);l(this,f,void 0);l(this,w,void 0);l(this,u,e=>{let a=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(a=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const i=Date.now();if(i-r(this,w)>40&&(a=100*Math.sign(a)),h(this,w,i),Math.abs(a)<100||r(this,f))return;this.changeEvent.notify(a),h(this,f,setTimeout(()=>{h(this,f,void 0)},80))}else this.changeEvent.notify(a)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,h(this,w,Date.now()),n.isBrowser&&h(this,c,e!=null&&e.element&&x.getElement(e.element)||window)}connect(){n.isBrowser&&r(this,c).addEventListener("wheel",r(this,u),{passive:!1})}disconnect(){n.isBrowser&&r(this,c).removeEventListener("wheel",r(this,u))}}c=new WeakMap,f=new WeakMap,w=new WeakMap,u=new WeakMap;exports.Controls=g;exports.KeyboardControls=y;exports.WheelControls=M;
1
+ "use strict";var b=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(b(t,s,"read from private field"),e?e.call(t):s.get(t)),l=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(b(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);const n=require("./browser-CpzFX2xg.cjs"),x=require("./dom-JBOkFLTh.cjs"),E=require("./notifier/index.cjs");var m;class g{constructor(){l(this,m,new E.Notifier)}get changeEvent(){return r(this,m)}}m=new WeakMap;var d,o;class y extends g{constructor(e){super();l(this,d,null);l(this,o,e=>{const a=e.shiftKey?-1:1;let i;e.code==="Space"?i=a*500:e.code==="ArrowLeft"?i=-1*100:e.code==="ArrowRight"?i=1*100:e.code==="ArrowUp"?i=-1*100:e.code==="ArrowDown"?i=1*100:e.code==="PageUp"?i=-1*1e3:e.code==="PageDown"?i=1*1e3:e.code==="Home"?i="min":e.code==="End"&&(i="max"),i&&(e.stopPropagation(),this.changeEvent.notify(i))});n.isBrowser&&h(this,d,e!=null&&e.element&&x.getElement(e.element)||window)}connect(){n.isBrowser&&r(this,d).addEventListener("keydown",r(this,o))}disconnect(){n.isBrowser&&r(this,d).removeEventListener("keydown",r(this,o))}}d=new WeakMap,o=new WeakMap;var c,f,w,u;class M extends g{constructor(e){super();l(this,c,null);l(this,f,void 0);l(this,w,void 0);l(this,u,e=>{let a=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(a=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const i=Date.now();if(i-r(this,w)>40&&(a=100*Math.sign(a)),h(this,w,i),Math.abs(a)<100||r(this,f))return;this.changeEvent.notify(a),h(this,f,setTimeout(()=>{h(this,f,void 0)},80))}else this.changeEvent.notify(a)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,h(this,w,Date.now()),n.isBrowser&&h(this,c,e!=null&&e.element&&x.getElement(e.element)||window)}connect(){n.isBrowser&&r(this,c).addEventListener("wheel",r(this,u),{passive:!1})}disconnect(){n.isBrowser&&r(this,c).removeEventListener("wheel",r(this,u))}}c=new WeakMap,f=new WeakMap,w=new WeakMap,u=new WeakMap;exports.Controls=g;exports.KeyboardControls=y;exports.WheelControls=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-Di21YbUL.cjs");class o extends t.CustomElement{constructor(){super(),r.isBrowser&&s.element(this,{style:{cursor:"default"},tabIndex:this.getAttribute("tabindex")||"0",role:"button",onKeydown:e=>{e.code==="Space"&&this.click()},onClick:()=>{this.click()}})}}exports.AbstractButtonElement=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-Dis8QUAR.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-D3-tO-m6.cjs");class o extends t.CustomElement{constructor(){super(),r.isBrowser&&s.element(this,{style:{cursor:"default"},tabIndex:this.getAttribute("tabindex")||"0",role:"button",onKeydown:e=>{e.code==="Space"&&this.click()},onClick:()=>{this.click()}})}}exports.AbstractButtonElement=o;
@@ -1,7 +1,7 @@
1
1
  import { CustomElement as e } from "../custom-element/index.js";
2
- import "../Store-JOKrNVEr.js";
2
+ import "../Store-DdDuj5hz.js";
3
3
  import { i as o } from "../browser-0zX67oeU.js";
4
- import { e as r } from "../tags-DSmoyoPZ.js";
4
+ import { e as r } from "../tags-D9nd9mMM.js";
5
5
  class l extends e {
6
6
  constructor() {
7
7
  super(), o && r(this, {
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty,_=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var D=(r,t,e)=>t in r?L(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,A=(r,t)=>{for(var e in t||(t={}))B.call(t,e)&&D(r,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&D(r,e,t[e]);return r},M=(r,t)=>_(r,z(t));var T=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var i=(r,t,e)=>(T(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},n=(r,t,e,s)=>(T(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e);var u=(r,t,e)=>(T(r,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../Damped-BvkThM-2.cjs"),N=require("../Store-D0_rDIsE.cjs"),H=require("../easings-DsS5-Kqc.cjs"),I=require("../math-GDWEqu7y.cjs"),O=require("../number-yVpzMdbQ.cjs"),F=require("../polyfills-CrcS4RcO.cjs"),R=require("../ticker/index.cjs");var f,b,S,q,g,c,l,m,x,y,k,P,j,a,d,C;class J extends N.Store{constructor(e,s){super(e||0);h(this,y);h(this,P);h(this,a);h(this,f,void 0);h(this,b,void 0);h(this,S,void 0);h(this,q,H.linear);h(this,g,1e3);h(this,c,new N.Store(!1));h(this,l,0);h(this,m,0);h(this,x,0);h(this,C,e=>{const s=(e.timestamp-e.startTimestamp)/1e3/(i(this,g)/1e3),v=i(this,q).call(this,I.clamp(s,0,1));this.current=O.preciseNumber(i(this,l)+(i(this,m)-i(this,l))*v,6),s>1&&u(this,a,d).call(this)});u(this,y,k).call(this,s)}get isRunning(){return i(this,c)}get direction(){return i(this,x)}get length(){return i(this,m)-i(this,l)}get progress(){return this.length?O.preciseNumber((this.current-i(this,l))/this.length,6):0}get entry(){return M(A({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(e,s){s!=null&&s.restart&&(this.current=this.initial),n(this,l,this.current),n(this,m,e),n(this,x,Math.sign(this.length)),u(this,y,k).call(this,s),i(this,g)?(u(this,a,d).call(this),u(this,P,j).call(this)):(this.current=i(this,m),u(this,a,d).call(this))}shift(e,s){this.set(this.current+e,s)}reset(){u(this,a,d).call(this),super.reset()}close(){super.close(),u(this,a,d).call(this)}}f=new WeakMap,b=new WeakMap,S=new WeakMap,q=new WeakMap,g=new WeakMap,c=new WeakMap,l=new WeakMap,m=new WeakMap,x=new WeakMap,y=new WeakSet,k=function(e){n(this,q,F.nullishCoalescing(e==null?void 0:e.easing,i(this,q))),n(this,g,F.nullishCoalescing(e==null?void 0:e.duration,i(this,g))),n(this,f,F.nullishCoalescing(e==null?void 0:e.maxFPS,i(this,f))),n(this,b,F.nullishCoalescing(e==null?void 0:e.order,i(this,b))),n(this,S,F.nullishCoalescing(e==null?void 0:e.culling,i(this,S)))},P=new WeakSet,j=function(){i(this,c).current||(i(this,c).current=!0,R.ticker.subscribe(i(this,C),{maxFPS:i(this,f),order:i(this,b),culling:i(this,S)}))},a=new WeakSet,d=function(){i(this,c).current&&(i(this,c).current=!1,R.ticker.unsubscribe(i(this,C)))},C=new WeakMap;exports.Damped=G.Damped;exports.Tweened=J;
1
+ "use strict";var L=Object.defineProperty,_=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var D=(r,t,e)=>t in r?L(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,A=(r,t)=>{for(var e in t||(t={}))B.call(t,e)&&D(r,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&D(r,e,t[e]);return r},M=(r,t)=>_(r,z(t));var T=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var i=(r,t,e)=>(T(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},n=(r,t,e,s)=>(T(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e);var u=(r,t,e)=>(T(r,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../Damped-B0eRyTcV.cjs"),N=require("../Store-Dis8QUAR.cjs"),H=require("../easings-DsS5-Kqc.cjs"),I=require("../math-GDWEqu7y.cjs"),O=require("../number-yVpzMdbQ.cjs"),F=require("../polyfills-CrcS4RcO.cjs"),R=require("../ticker/index.cjs");var f,b,S,q,g,c,l,m,x,y,k,P,j,a,d,C;class J extends N.Store{constructor(e,s){super(e||0);h(this,y);h(this,P);h(this,a);h(this,f,void 0);h(this,b,void 0);h(this,S,void 0);h(this,q,H.linear);h(this,g,1e3);h(this,c,new N.Store(!1));h(this,l,0);h(this,m,0);h(this,x,0);h(this,C,e=>{const s=(e.timestamp-e.startTimestamp)/1e3/(i(this,g)/1e3),v=i(this,q).call(this,I.clamp(s,0,1));this.current=O.preciseNumber(i(this,l)+(i(this,m)-i(this,l))*v,6),s>1&&u(this,a,d).call(this)});u(this,y,k).call(this,s)}get isRunning(){return i(this,c)}get direction(){return i(this,x)}get length(){return i(this,m)-i(this,l)}get progress(){return this.length?O.preciseNumber((this.current-i(this,l))/this.length,6):0}get entry(){return M(A({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(e,s){s!=null&&s.restart&&(this.current=this.initial),n(this,l,this.current),n(this,m,e),n(this,x,Math.sign(this.length)),u(this,y,k).call(this,s),i(this,g)?(u(this,a,d).call(this),u(this,P,j).call(this)):(this.current=i(this,m),u(this,a,d).call(this))}shift(e,s){this.set(this.current+e,s)}reset(){u(this,a,d).call(this),super.reset()}close(){super.close(),u(this,a,d).call(this)}}f=new WeakMap,b=new WeakMap,S=new WeakMap,q=new WeakMap,g=new WeakMap,c=new WeakMap,l=new WeakMap,m=new WeakMap,x=new WeakMap,y=new WeakSet,k=function(e){n(this,q,F.nullishCoalescing(e==null?void 0:e.easing,i(this,q))),n(this,g,F.nullishCoalescing(e==null?void 0:e.duration,i(this,g))),n(this,f,F.nullishCoalescing(e==null?void 0:e.maxFPS,i(this,f))),n(this,b,F.nullishCoalescing(e==null?void 0:e.order,i(this,b))),n(this,S,F.nullishCoalescing(e==null?void 0:e.culling,i(this,S)))},P=new WeakSet,j=function(){i(this,c).current||(i(this,c).current=!0,R.ticker.subscribe(i(this,C),{maxFPS:i(this,f),order:i(this,b),culling:i(this,S)}))},a=new WeakSet,d=function(){i(this,c).current&&(i(this,c).current=!1,R.ticker.unsubscribe(i(this,C)))},C=new WeakMap;exports.Damped=G.Damped;exports.Tweened=J;
@@ -20,8 +20,8 @@ var r = (i, e, t) => (D(i, e, "read from private field"), t ? t.call(i) : e.get(
20
20
  e instanceof WeakSet ? e.add(i) : e.set(i, t);
21
21
  }, n = (i, e, t, s) => (D(i, e, "write to private field"), s ? s.call(i, t) : e.set(i, t), t);
22
22
  var u = (i, e, t) => (D(i, e, "access private method"), t);
23
- import { D as $ } from "../Damped-DEHDBwBz.js";
24
- import { S as M } from "../Store-JOKrNVEr.js";
23
+ import { D as $ } from "../Damped-Do9H-LKf.js";
24
+ import { S as M } from "../Store-DdDuj5hz.js";
25
25
  import { l as H } from "../easings-BKi40vHz.js";
26
26
  import { c as I } from "../math-BOBiC4TN.js";
27
27
  import { p as N } from "../number-Bo5RdrA1.js";
@@ -1 +1 @@
1
- "use strict";var f=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(f(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},a=(e,s,t,c)=>(f(e,s,"write to private field"),c?c.call(e,t):s.set(e,t),t);var v=(e,s,t)=>(f(e,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-D0_rDIsE.cjs"),A=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),q=require("../dom-qY2LdCVL.cjs");var i,u,b,h,m;class p extends y.Store{constructor(t,c,l,o){super(l,o);n(this,h);n(this,i,null);n(this,u,void 0);n(this,b,null);a(this,u,c),S.isBrowser&&(a(this,i,q.getElement(t)),a(this,b,new MutationObserver(d=>{d.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&v(this,h,m).call(this)})})),o!=null&&o.sync&&this.subscribe(d=>{r(this,i).setAttribute(r(this,u),d.current.toString())}))}subscribe(t){const c=!this.subscribers.size,l=super.subscribe(t);return c&&(r(this,b).observe(r(this,i),{attributes:!0}),v(this,h,m).call(this)),l}unsubscribe(t){super.unsubscribe(t),this.subscribers.size||r(this,b).disconnect()}close(){super.close(),r(this,b).disconnect()}}i=new WeakMap,u=new WeakMap,b=new WeakMap,h=new WeakSet,m=function(){const t=r(this,i).getAttribute(r(this,u));t!=null&&(this.current=A.parseAttributeValue(t))};exports.Attribute=p;
1
+ "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),n=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},a=(t,s,e,b)=>(v(t,s,"write to private field"),b?b.call(t,e):s.set(t,e),e);var f=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-Dis8QUAR.cjs"),A=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),q=require("../dom-JBOkFLTh.cjs");var i,u,c,o,d;class p extends y.Store{constructor(e,b,g,h){super(g,h);n(this,o);n(this,i,null);n(this,u,void 0);n(this,c,null);a(this,u,b),S.isBrowser&&(a(this,i,q.getElement(e)),a(this,c,new MutationObserver(l=>{l.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&f(this,o,d).call(this)})})),h!=null&&h.sync&&this.subscribe(l=>{r(this,i).setAttribute(r(this,u),l.current.toString())}))}subscribe(e){const b=super.subscribe(e);return this.observe(),b}unsubscribe(e){super.unsubscribe(e),this.unobserve()}observe(){!this.subscribers.size&&(r(this,c).observe(r(this,i),{attributes:!0}),f(this,o,d).call(this))}unobserve(){this.subscribers.size||r(this,c).disconnect()}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakSet,d=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=A.parseAttributeValue(e))};exports.Attribute=p;
@@ -9,5 +9,7 @@ export declare class Attribute<T extends string | number | boolean> extends Stor
9
9
  constructor(elementOrSelector: ElementOrSelector, name: string, defaultValue: T, options?: AttributeOptions<T>);
10
10
  subscribe(callback: StoreCallback<StoreEntry<T>>): () => void;
11
11
  unsubscribe(callback: StoreCallback<StoreEntry<T>>): void;
12
+ observe(): void;
13
+ unobserve(): void;
12
14
  close(): void;
13
15
  }
@@ -1,49 +1,55 @@
1
- var l = (s, e, t) => {
2
- if (!e.has(s))
3
- throw TypeError("Cannot " + t);
1
+ var v = (e, t, s) => {
2
+ if (!t.has(e))
3
+ throw TypeError("Cannot " + s);
4
4
  };
5
- var r = (s, e, t) => (l(s, e, "read from private field"), t ? t.call(s) : e.get(s)), h = (s, e, t) => {
6
- if (e.has(s))
5
+ var r = (e, t, s) => (v(e, t, "read from private field"), s ? s.call(e) : t.get(e)), h = (e, t, s) => {
6
+ if (t.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(s) : e.set(s, t);
9
- }, o = (s, e, t, c) => (l(s, e, "write to private field"), c ? c.call(s, t) : e.set(s, t), t);
10
- var p = (s, e, t) => (l(s, e, "access private method"), t);
11
- import { S as g } from "../Store-JOKrNVEr.js";
8
+ t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
+ }, a = (e, t, s, b) => (v(e, t, "write to private field"), b ? b.call(e, s) : t.set(e, s), s);
10
+ var f = (e, t, s) => (v(e, t, "access private method"), s);
11
+ import { S as g } from "../Store-DdDuj5hz.js";
12
12
  import { p as A } from "../attributes-69we3byR.js";
13
13
  import { i as y } from "../browser-0zX67oeU.js";
14
- import { g as S } from "../dom-BY7JhTx5.js";
15
- var i, u, b, n, v;
14
+ import { g as S } from "../dom-0S_WDL4g.js";
15
+ var i, u, c, o, l;
16
16
  class B extends g {
17
- constructor(t, c, m, a) {
18
- super(m, a);
19
- h(this, n);
17
+ constructor(s, b, d, n) {
18
+ super(d, n);
19
+ h(this, o);
20
20
  h(this, i, null);
21
21
  h(this, u, void 0);
22
- h(this, b, null);
23
- o(this, u, c), y && (o(this, i, S(t)), o(this, b, new MutationObserver((f) => {
24
- f.forEach((d) => {
25
- d.type === "attributes" && d.attributeName === r(this, u) && p(this, n, v).call(this);
22
+ h(this, c, null);
23
+ a(this, u, b), y && (a(this, i, S(s)), a(this, c, new MutationObserver((m) => {
24
+ m.forEach((p) => {
25
+ p.type === "attributes" && p.attributeName === r(this, u) && f(this, o, l).call(this);
26
26
  });
27
- })), a != null && a.sync && this.subscribe((f) => {
28
- r(this, i).setAttribute(r(this, u), f.current.toString());
27
+ })), n != null && n.sync && this.subscribe((m) => {
28
+ r(this, i).setAttribute(r(this, u), m.current.toString());
29
29
  }));
30
30
  }
31
- subscribe(t) {
32
- const c = !this.subscribers.size, m = super.subscribe(t);
33
- return c && (r(this, b).observe(r(this, i), {
31
+ subscribe(s) {
32
+ const b = super.subscribe(s);
33
+ return this.observe(), b;
34
+ }
35
+ unsubscribe(s) {
36
+ super.unsubscribe(s), this.unobserve();
37
+ }
38
+ observe() {
39
+ !this.subscribers.size && (r(this, c).observe(r(this, i), {
34
40
  attributes: !0
35
- }), p(this, n, v).call(this)), m;
41
+ }), f(this, o, l).call(this));
36
42
  }
37
- unsubscribe(t) {
38
- super.unsubscribe(t), this.subscribers.size || r(this, b).disconnect();
43
+ unobserve() {
44
+ this.subscribers.size || r(this, c).disconnect();
39
45
  }
40
46
  close() {
41
- super.close(), r(this, b).disconnect();
47
+ super.close(), this.unobserve();
42
48
  }
43
49
  }
44
- i = new WeakMap(), u = new WeakMap(), b = new WeakMap(), n = new WeakSet(), v = function() {
45
- const t = r(this, i).getAttribute(r(this, u));
46
- t != null && (this.current = A(t));
50
+ i = new WeakMap(), u = new WeakMap(), c = new WeakMap(), o = new WeakSet(), l = function() {
51
+ const s = r(this, i).getAttribute(r(this, u));
52
+ s != null && (this.current = A(s));
47
53
  };
48
54
  export {
49
55
  B as Attribute
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-Di21YbUL.cjs"),b=require("../createStylesheet-De-6zF24.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-Dis8QUAR.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-D3-tO-m6.cjs"),b=require("../createStylesheet-B4vLzvah.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
@@ -1,8 +1,8 @@
1
1
  import { CustomElement as M, define as b } from "../custom-element/index.js";
2
- import "../Store-JOKrNVEr.js";
2
+ import "../Store-DdDuj5hz.js";
3
3
  import { c as P } from "../math-BOBiC4TN.js";
4
- import { e as S, q as y } from "../tags-DSmoyoPZ.js";
5
- import { c as A } from "../createStylesheet-CYZlwj0H.js";
4
+ import { e as S, q as y } from "../tags-D9nd9mMM.js";
5
+ import { c as A } from "../createStylesheet-CR-XQRVT.js";
6
6
  import { elementResizer as k } from "../element-resizer/index.js";
7
7
  import { ticker as E } from "../ticker/index.js";
8
8
  var O = Object.defineProperty, z = Object.getOwnPropertyDescriptor, D = (t, i, s, r) => {
@@ -1 +1 @@
1
- "use strict";var i=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var n=(r,t,e)=>(i(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../WheelControls-CctFwJwY.cjs"),c=require("../ticker/index.cjs");var s;class a extends o.Controls{constructor(e){super();l(this,s,e=>{this.changeEvent.notify(e.elapsed*this.speed)});this.speed=(e==null?void 0:e.speed)||1}connect(){c.ticker.subscribe(n(this,s))}disconnect(){c.ticker.unsubscribe(n(this,s))}}s=new WeakMap;exports.Controls=o.Controls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;exports.LinearControls=a;
1
+ "use strict";var i=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var n=(r,t,e)=>(i(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../WheelControls-fiz52vcl.cjs"),c=require("../ticker/index.cjs");var s;class a extends o.Controls{constructor(e){super();l(this,s,e=>{this.changeEvent.notify(e.elapsed*this.speed)});this.speed=(e==null?void 0:e.speed)||1}connect(){c.ticker.subscribe(n(this,s))}disconnect(){c.ticker.unsubscribe(n(this,s))}}s=new WeakMap;exports.Controls=o.Controls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;exports.LinearControls=a;
@@ -7,8 +7,8 @@ var o = (s, r, e) => (c(s, r, "read from private field"), e ? e.call(s) : r.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
9
  };
10
- import { C as i } from "../WheelControls-BJdZsEkS.js";
11
- import { K as p, W as u } from "../WheelControls-BJdZsEkS.js";
10
+ import { C as i } from "../WheelControls-BqO_fTyY.js";
11
+ import { K as p, W as u } from "../WheelControls-BqO_fTyY.js";
12
12
  import { ticker as n } from "../ticker/index.js";
13
13
  var t;
14
14
  class m extends i {
@@ -1 +1 @@
1
- "use strict";const n=require("./tags-Di21YbUL.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
1
+ "use strict";const n=require("./tags-D3-tO-m6.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
@@ -1,4 +1,4 @@
1
- import { aC as n } from "./tags-DSmoyoPZ.js";
1
+ import { aD as n } from "./tags-D9nd9mMM.js";
2
2
  function c(t) {
3
3
  const e = new CSSStyleSheet();
4
4
  return e.replaceSync(n(t).node.innerHTML), e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-COsaberc.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-CRLSlcoi.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
@@ -1,4 +1,4 @@
1
- import { V as i, a as o, d as r, v as s } from "../Viewport-CXY5xcGJ.js";
1
+ import { V as i, a as o, d as r, v as s } from "../Viewport-VSV_isot.js";
2
2
  export {
3
3
  i as ViewportBreakpoints,
4
4
  o as ViewportMediaRules,
@@ -0,0 +1,42 @@
1
+ function u(e, t) {
2
+ if (!e)
3
+ return null;
4
+ let n = e.parentElement;
5
+ return e.parentElement instanceof t || (n = u(e.parentElement, t)), n;
6
+ }
7
+ function a(e, t = document) {
8
+ return typeof e == "string" ? t.querySelector(e) : e;
9
+ }
10
+ function l(e, t = null) {
11
+ if (t = t || e, !e || !(e instanceof HTMLElement))
12
+ return document.body;
13
+ if (t !== e) {
14
+ const n = getComputedStyle(e);
15
+ if (n.overflow.includes("auto") || n.overflow.includes("scroll"))
16
+ return e;
17
+ }
18
+ return l(e.parentNode, t);
19
+ }
20
+ function c(e) {
21
+ let t = [];
22
+ return document.documentElement.addEventListener(
23
+ "__illuminate-tree",
24
+ (n) => {
25
+ n.composedPath().forEach((r) => {
26
+ r instanceof HTMLElement && t.push(r);
27
+ });
28
+ },
29
+ { once: !0 }
30
+ ), e.dispatchEvent(
31
+ new CustomEvent("__illuminate-tree", {
32
+ bubbles: !0,
33
+ composed: !0
34
+ })
35
+ ), t;
36
+ }
37
+ export {
38
+ c as a,
39
+ l as b,
40
+ u as f,
41
+ a as g
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";function l(e,t){if(!e)return null;let n=e.parentElement;return e.parentElement instanceof t||(n=l(e.parentElement,t)),n}function o(e,t=document){return typeof e=="string"?t.querySelector(e):e}function u(e,t=null){if(t=t||e,!e||!(e instanceof HTMLElement))return document.body;if(t!==e){const n=getComputedStyle(e);if(n.overflow.includes("auto")||n.overflow.includes("scroll"))return e}return u(e.parentNode,t)}function c(e){let t=[];return document.documentElement.addEventListener("__illuminate-tree",n=>{n.composedPath().forEach(r=>{r instanceof HTMLElement&&t.push(r)})},{once:!0}),e.dispatchEvent(new CustomEvent("__illuminate-tree",{bubbles:!0,composed:!0})),t}exports.findParentElement=l;exports.findScrollParentElement=u;exports.getAllParentElements=c;exports.getElement=o;