aptechka 0.1.5 → 0.1.7

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 (104) hide show
  1. package/lib/Animated-Bf-gPIQM.cjs +1 -0
  2. package/lib/{Animated-CzBHCHNm.js → Animated-Br_4OSth.js} +36 -35
  3. package/lib/Composed-C2Vv1xxR.cjs +1 -0
  4. package/lib/Composed-DhtYBEmo.js +79 -0
  5. package/lib/{Damped--qBZAdEi.cjs → Damped-BwpMU9Gi.cjs} +1 -1
  6. package/lib/{Damped-Bm1kSn1f.js → Damped-urvryQLo.js} +1 -1
  7. package/lib/{Derived-BS2ja9qa.js → Derived-Bc88XJ8J.js} +1 -1
  8. package/lib/{Derived-CqmIkTGN.cjs → Derived-SjPdLJiZ.cjs} +1 -1
  9. package/lib/{SourceManager-B44FUTig.js → SourceManager-BoP9RAJr.js} +1 -1
  10. package/lib/{SourceManager-D447KWpH.cjs → SourceManager-CI6NfLzW.cjs} +1 -1
  11. package/lib/Store-D0_rDIsE.cjs +1 -0
  12. package/lib/{Store-uTyReFzx.js → Store-JOKrNVEr.js} +18 -18
  13. package/lib/{Viewport-CDqiD8Ao.cjs → Viewport-COsaberc.cjs} +1 -1
  14. package/lib/{Viewport-Cj0i-H5d.js → Viewport-CXY5xcGJ.js} +1 -1
  15. package/lib/abstract-elements/index.cjs +1 -1
  16. package/lib/abstract-elements/index.js +2 -1
  17. package/lib/animation/index.cjs +1 -1
  18. package/lib/animation/index.js +2 -2
  19. package/lib/attribute/index.cjs +1 -1
  20. package/lib/attribute/index.js +1 -1
  21. package/lib/canvas/index.cjs +1 -1
  22. package/lib/canvas/index.js +8 -8
  23. package/lib/connector/index.cjs +1 -1
  24. package/lib/connector/index.d.ts +1 -0
  25. package/lib/connector/index.js +32 -31
  26. package/lib/createStylesheet-BSXZrWW6.js +8 -0
  27. package/lib/createStylesheet-C1rimcGc.cjs +1 -0
  28. package/lib/device/index.cjs +1 -1
  29. package/lib/device/index.js +1 -1
  30. package/lib/element-constructor/ElementConstructor.d.ts +18 -27
  31. package/lib/element-constructor/index.cjs +1 -1
  32. package/lib/element-constructor/index.d.ts +1 -2
  33. package/lib/element-constructor/index.js +120 -639
  34. package/lib/element-constructor/knownSvgTags.d.ts +1 -0
  35. package/lib/element-constructor/tags.d.ts +117 -0
  36. package/lib/en3/index.cjs +1 -1
  37. package/lib/en3/index.js +2 -2
  38. package/lib/image/index.cjs +1 -1
  39. package/lib/image/index.js +1 -1
  40. package/lib/{index-DyJhLxk8.js → index-dBwVZz_v.js} +25 -25
  41. package/lib/index-vI4hmrI8.cjs +9 -0
  42. package/lib/jsx/ComponentElement.d.ts +17 -0
  43. package/lib/jsx/h.d.ts +5 -4
  44. package/lib/jsx/hooks/animation-frame.d.ts +5 -0
  45. package/lib/jsx/hooks/animation.d.ts +3 -0
  46. package/lib/jsx/hooks/basic.d.ts +4 -0
  47. package/lib/jsx/hooks/element-resize.d.ts +3 -0
  48. package/lib/jsx/hooks/intersection.d.ts +3 -0
  49. package/lib/jsx/hooks/store.d.ts +6 -0
  50. package/lib/jsx/hooks/style.d.ts +2 -0
  51. package/lib/jsx/hooks/utils.d.ts +4 -0
  52. package/lib/jsx/hooks/window-resize.d.ts +2 -0
  53. package/lib/jsx/index.cjs +1 -1
  54. package/lib/jsx/index.d.ts +8 -1
  55. package/lib/jsx/index.js +170 -102
  56. package/lib/jsx/type.d.ts +7 -5
  57. package/lib/ladder/index.cjs +1 -1
  58. package/lib/ladder/index.js +1 -1
  59. package/lib/media/index.cjs +1 -1
  60. package/lib/media/index.js +1 -1
  61. package/lib/modal/index.cjs +1 -1
  62. package/lib/modal/index.js +7 -7
  63. package/lib/popover/index.cjs +1 -1
  64. package/lib/popover/index.js +1 -1
  65. package/lib/scroll/index.cjs +1 -1
  66. package/lib/scroll/index.js +23 -24
  67. package/lib/select/index.cjs +1 -1
  68. package/lib/select/index.js +1 -1
  69. package/lib/source/index.cjs +1 -1
  70. package/lib/source/index.js +2 -2
  71. package/lib/store/Derived.d.ts +1 -1
  72. package/lib/store/index.cjs +1 -1
  73. package/lib/store/index.js +48 -111
  74. package/lib/studio/index.cjs +2 -2
  75. package/lib/studio/index.js +307 -288
  76. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  77. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +1 -1
  78. package/lib/studio/tweaker/TweakerFieldElement.d.ts +2 -1
  79. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  80. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +1 -1
  81. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +1 -1
  82. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  83. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +5 -2
  84. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +1 -1
  85. package/lib/tags-D-lzPz_v.js +748 -0
  86. package/lib/tags-DkAbVUQP.cjs +1 -0
  87. package/lib/theme/index.cjs +1 -1
  88. package/lib/theme/index.js +7 -7
  89. package/lib/video/index.cjs +1 -1
  90. package/lib/video/index.js +1 -1
  91. package/package.json +1 -1
  92. package/lib/Animated-DZ_fbJmi.cjs +0 -1
  93. package/lib/ElementConstructor-DB0xOoat.js +0 -199
  94. package/lib/ElementConstructor-v1FPLXAW.cjs +0 -1
  95. package/lib/Store-BOOfmlyv.cjs +0 -1
  96. package/lib/createStylesheet-74ZP3AZm.js +0 -8
  97. package/lib/createStylesheet-ChhZFwSX.cjs +0 -1
  98. package/lib/element-constructor/htmlTags.d.ts +0 -115
  99. package/lib/element-constructor/svgTags.d.ts +0 -64
  100. package/lib/htmlTags-CNEFIHPp.js +0 -683
  101. package/lib/htmlTags-CwYHVo9n.cjs +0 -1
  102. package/lib/index-tPw9mmLF.cjs +0 -9
  103. package/lib/jsx/ComponentWrapper.d.ts +0 -12
  104. package/lib/jsx/hooks.d.ts +0 -19
@@ -0,0 +1 @@
1
+ "use strict";var j=Object.defineProperty,z=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var $=(s,r,e)=>r in s?j(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e,v=(s,r)=>{for(var e in r||(r={}))D.call(r,e)&&$(s,e,r[e]);if(R)for(var e of R(r))E.call(r,e)&&$(s,e,r[e]);return s},C=(s,r)=>z(s,B(r));var N=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(N(s,r,"read from private field"),e?e.call(s):r.get(s)),i=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},u=(s,r,e,a)=>(N(s,r,"write to private field"),a?a.call(s,e):r.set(s,e),e);const m=require("./Store-D0_rDIsE.cjs"),G=require("./math-GDWEqu7y.cjs"),H=require("./number-yVpzMdbQ.cjs"),_=require("./ticker/index.cjs");var g,S,f,h,n,c,b,x,F,l,A,P,q;class I extends m.Store{constructor(e){var w,k;super((e==null?void 0:e.default)||0,e);i(this,g,void 0);i(this,S,void 0);i(this,f,void 0);i(this,h,void 0);i(this,n,void 0);i(this,c,void 0);i(this,b,new m.Store(null));i(this,x,new m.Store(!1));i(this,F,0);i(this,l,0);i(this,A,e=>{this.set(e.current)});i(this,P,e=>{const a=this.current;this.handleAnimationFrame(e);const d=Math.abs(a-this.target);u(this,l,d/e.elapsed)});i(this,q,()=>{this.set(t(this,h)),this.current=t(this,h)});u(this,S,e==null?void 0:e.order),u(this,g,e==null?void 0:e.maxFPS),u(this,f,e==null?void 0:e.culling),u(this,h,this.current);let a,d;e!=null&&e.passport&&(a={name:`${e.passport.name+"-min"}`},d={name:`${e.passport.name+"-max"}`}),u(this,n,(e==null?void 0:e.min)instanceof m.Store?e.min:new m.Store((w=e==null?void 0:e.min)!=null?w:0,{passport:a})),u(this,c,(e==null?void 0:e.max)instanceof m.Store?e.max:new m.Store((k=e==null?void 0:e.max)!=null?k:1,{passport:d})),t(this,n).subscribe(t(this,q)),t(this,c).subscribe(t(this,q)),t(this,b).subscribe(L=>{var y,M;(y=L.previous)==null||y.unsubscribe(t(this,A)),(M=L.current)==null||M.subscribe(t(this,A))})}get target(){return t(this,h)}get isRunning(){return t(this,x)}get direction(){return t(this,F)}get maxFPS(){return t(this,g)}get speed(){return t(this,l)}get min(){return t(this,n)}get max(){return t(this,c)}get delta(){return t(this,c).current-t(this,n).current}get progress(){return this.delta?H.preciseNumber((this.current-this.min.current)/this.delta,6):0}get entry(){return C(v({},super.entry),{min:t(this,n).current,max:t(this,c).current,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}get updater(){return t(this,b)}set(e,a=!1){const d=t(this,h);u(this,h,G.clamp(e,t(this,n).current,t(this,c).current)),a&&(this.current=t(this,h)),t(this,h)!==d&&(u(this,l,0),u(this,F,Math.sign(e-t(this,h))||1),this.update())}shift(e,a=!1){this.set(t(this,h)+e,a)}close(){super.close(),this.unlistenAnimationFrame(),t(this,b).current=null}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,x).current=!0,_.ticker.subscribe(t(this,P),{maxFPS:t(this,g),order:t(this,S),culling:t(this,f)})}unlistenAnimationFrame(){u(this,l,0),t(this,x).current=!1,_.ticker.unsubscribe(t(this,P))}}g=new WeakMap,S=new WeakMap,f=new WeakMap,h=new WeakMap,n=new WeakMap,c=new WeakMap,b=new WeakMap,x=new WeakMap,F=new WeakMap,l=new WeakMap,A=new WeakMap,P=new WeakMap,q=new WeakMap;exports.Animated=I;
@@ -1,40 +1,41 @@
1
- var j = Object.defineProperty, q = Object.defineProperties;
2
- var z = Object.getOwnPropertyDescriptors;
3
- var R = Object.getOwnPropertySymbols;
4
- var B = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
- var $ = (s, r, e) => r in s ? j(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e, k = (s, r) => {
1
+ var z = Object.defineProperty, B = Object.defineProperties;
2
+ var D = Object.getOwnPropertyDescriptors;
3
+ var k = Object.getOwnPropertySymbols;
4
+ var E = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
+ var v = (s, r, e) => r in s ? z(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e, C = (s, r) => {
6
6
  for (var e in r || (r = {}))
7
- B.call(r, e) && $(s, e, r[e]);
8
- if (R)
9
- for (var e of R(r))
10
- D.call(r, e) && $(s, e, r[e]);
7
+ E.call(r, e) && v(s, e, r[e]);
8
+ if (k)
9
+ for (var e of k(r))
10
+ G.call(r, e) && v(s, e, r[e]);
11
11
  return s;
12
- }, v = (s, r) => q(s, z(r));
13
- var C = (s, r, e) => {
12
+ }, N = (s, r) => B(s, D(r));
13
+ var j = (s, r, e) => {
14
14
  if (!r.has(s))
15
15
  throw TypeError("Cannot " + e);
16
16
  };
17
- var t = (s, r, e) => (C(s, r, "read from private field"), e ? e.call(s) : r.get(s)), i = (s, r, e) => {
17
+ var t = (s, r, e) => (j(s, r, "read from private field"), e ? e.call(s) : r.get(s)), i = (s, r, e) => {
18
18
  if (r.has(s))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
21
- }, a = (s, r, e, u) => (C(s, r, "write to private field"), u ? u.call(s, e) : r.set(s, e), e);
22
- import { S as m } from "./Store-uTyReFzx.js";
23
- import { c as E } from "./math-BOBiC4TN.js";
24
- import { p as G } from "./number-Bo5RdrA1.js";
25
- import { ticker as N } from "./ticker/index.js";
26
- var g, x, F, h, n, c, b, f, A, l, P, S, w;
27
- class Q extends m {
21
+ }, a = (s, r, e, u) => (j(s, r, "write to private field"), u ? u.call(s, e) : r.set(s, e), e);
22
+ import { S as c } from "./Store-JOKrNVEr.js";
23
+ import { c as H } from "./math-BOBiC4TN.js";
24
+ import { p as I } from "./number-Bo5RdrA1.js";
25
+ import { ticker as q } from "./ticker/index.js";
26
+ var g, x, F, h, n, m, b, f, A, l, P, S, w;
27
+ class U extends c {
28
28
  constructor(e) {
29
+ var L, y;
29
30
  super((e == null ? void 0 : e.default) || 0, e);
30
31
  i(this, g, void 0);
31
32
  i(this, x, void 0);
32
33
  i(this, F, void 0);
33
34
  i(this, h, void 0);
34
35
  i(this, n, void 0);
35
- i(this, c, void 0);
36
- i(this, b, new m(null));
37
- i(this, f, new m(!1));
36
+ i(this, m, void 0);
37
+ i(this, b, new c(null));
38
+ i(this, f, new c(!1));
38
39
  i(this, A, 0);
39
40
  i(this, l, 0);
40
41
  i(this, P, (e) => {
@@ -55,9 +56,9 @@ class Q extends m {
55
56
  name: `${e.passport.name + "-min"}`
56
57
  }, d = {
57
58
  name: `${e.passport.name + "-max"}`
58
- }), a(this, n, (e == null ? void 0 : e.min) instanceof m ? e.min : new m(0, { passport: u })), a(this, c, (e == null ? void 0 : e.max) instanceof m ? e.max : new m(0, { passport: d })), t(this, n).subscribe(t(this, w)), t(this, c).subscribe(t(this, w)), t(this, b).subscribe((L) => {
59
- var y, M;
60
- (y = L.previous) == null || y.unsubscribe(t(this, P)), (M = L.current) == null || M.subscribe(t(this, P));
59
+ }), a(this, n, (e == null ? void 0 : e.min) instanceof c ? e.min : new c((L = e == null ? void 0 : e.min) != null ? L : 0, { passport: u })), a(this, m, (e == null ? void 0 : e.max) instanceof c ? e.max : new c((y = e == null ? void 0 : e.max) != null ? y : 1, { passport: d })), t(this, n).subscribe(t(this, w)), t(this, m).subscribe(t(this, w)), t(this, b).subscribe((M) => {
60
+ var R, $;
61
+ (R = M.previous) == null || R.unsubscribe(t(this, P)), ($ = M.current) == null || $.subscribe(t(this, P));
61
62
  });
62
63
  }
63
64
  get target() {
@@ -79,18 +80,18 @@ class Q extends m {
79
80
  return t(this, n);
80
81
  }
81
82
  get max() {
82
- return t(this, c);
83
+ return t(this, m);
83
84
  }
84
85
  get delta() {
85
- return t(this, c).current - t(this, n).current;
86
+ return t(this, m).current - t(this, n).current;
86
87
  }
87
88
  get progress() {
88
- return this.delta ? G((this.current - this.min.current) / this.delta, 6) : 0;
89
+ return this.delta ? I((this.current - this.min.current) / this.delta, 6) : 0;
89
90
  }
90
91
  get entry() {
91
- return v(k({}, super.entry), {
92
+ return N(C({}, super.entry), {
92
93
  min: t(this, n).current,
93
- max: t(this, c).current,
94
+ max: t(this, m).current,
94
95
  delta: this.delta,
95
96
  direction: this.direction,
96
97
  progress: this.progress,
@@ -102,7 +103,7 @@ class Q extends m {
102
103
  }
103
104
  set(e, u = !1) {
104
105
  const d = t(this, h);
105
- a(this, h, E(e, t(this, n).current, t(this, c).current)), u && (this.current = t(this, h)), t(this, h) !== d && (a(this, l, 0), a(this, A, Math.sign(e - t(this, h)) || 1), this.update());
106
+ a(this, h, H(e, t(this, n).current, t(this, m).current)), u && (this.current = t(this, h)), t(this, h) !== d && (a(this, l, 0), a(this, A, Math.sign(e - t(this, h)) || 1), this.update());
106
107
  }
107
108
  shift(e, u = !1) {
108
109
  this.set(t(this, h) + e, u);
@@ -114,17 +115,17 @@ class Q extends m {
114
115
  this.set(this.initial, !0), super.reset(), this.unlistenAnimationFrame();
115
116
  }
116
117
  listenAnimationFrame() {
117
- t(this, f).current = !0, N.subscribe(t(this, S), {
118
+ t(this, f).current = !0, q.subscribe(t(this, S), {
118
119
  maxFPS: t(this, g),
119
120
  order: t(this, x),
120
121
  culling: t(this, F)
121
122
  });
122
123
  }
123
124
  unlistenAnimationFrame() {
124
- a(this, l, 0), t(this, f).current = !1, N.unsubscribe(t(this, S));
125
+ a(this, l, 0), t(this, f).current = !1, q.unsubscribe(t(this, S));
125
126
  }
126
127
  }
127
- g = new WeakMap(), x = new WeakMap(), F = new WeakMap(), h = new WeakMap(), n = new WeakMap(), c = new WeakMap(), b = new WeakMap(), f = new WeakMap(), A = new WeakMap(), l = new WeakMap(), P = new WeakMap(), S = new WeakMap(), w = new WeakMap();
128
+ g = new WeakMap(), x = new WeakMap(), F = new WeakMap(), h = new WeakMap(), n = new WeakMap(), m = new WeakMap(), b = new WeakMap(), f = new WeakMap(), A = new WeakMap(), l = new WeakMap(), P = new WeakMap(), S = new WeakMap(), w = new WeakMap();
128
129
  export {
129
- Q as A
130
+ U as A
130
131
  };
@@ -0,0 +1 @@
1
+ "use strict";var g=(r,s,e)=>{if(!s.has(r))throw TypeError("Cannot "+e)};var t=(r,s,e)=>(g(r,s,"read from private field"),e?e.call(r):s.get(r)),h=(r,s,e)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,e)},f=(r,s,e,c)=>(g(r,s,"write to private field"),c?c.call(r,e):s.set(r,e),e);const x=require("./Store-D0_rDIsE.cjs"),v=require("./function-MthRj-GJ.cjs");var a;class C extends x.Store{constructor(e,c,u){super(null,u);h(this,a,void 0);f(this,a,e.subscribe(o=>{const l=[];o.current.forEach((m,p)=>{var S;o.current[p]===((S=o.previous)==null?void 0:S[p])&&this.current[p]?l.push(this.current[p]):l.push(c(m))}),this.current=l}))}close(){super.close(),t(this,a).call(this)}}a=new WeakMap;var d,n,i;class E extends x.Store{constructor(e,c,u){super(e,u);h(this,d,void 0);h(this,n,void 0);h(this,i,0);f(this,n,new x.Store(!1)),f(this,d,c),u!=null&&u.manualControl||this.refetch()}get isPending(){return t(this,n)}refetch(){t(this,n).current=!0,f(this,i,t(this,i)+1);const e=t(this,i);t(this,d).call(this).then(c=>{e===t(this,i)&&(t(this,n).current=!1,this.current=c)})}}d=new WeakMap,n=new WeakMap,i=new WeakMap;var b;class q extends x.Store{constructor(e,c,u){super(null,u);h(this,b,[]);const o=v.debounce(()=>{this.current=c()},0);e.forEach(l=>{t(this,b).push(l.subscribe(()=>{o()}))})}close(){super.close(),t(this,b).forEach(e=>e())}}b=new WeakMap;exports.Composed=q;exports.DerivedArray=C;exports.Resource=E;
@@ -0,0 +1,79 @@
1
+ var g = (e, r, s) => {
2
+ if (!r.has(e))
3
+ throw TypeError("Cannot " + s);
4
+ };
5
+ var t = (e, r, s) => (g(e, r, "read from private field"), s ? s.call(e) : r.get(e)), n = (e, r, s) => {
6
+ if (r.has(e))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ r instanceof WeakSet ? r.add(e) : r.set(e, s);
9
+ }, l = (e, r, s, c) => (g(e, r, "write to private field"), c ? c.call(e, s) : r.set(e, s), s);
10
+ import { S as m } from "./Store-JOKrNVEr.js";
11
+ import { d as E } from "./function-C10DGppn.js";
12
+ var f;
13
+ class P extends m {
14
+ constructor(s, c, u) {
15
+ super(null, u);
16
+ n(this, f, void 0);
17
+ l(this, f, s.subscribe((o) => {
18
+ const a = [];
19
+ o.current.forEach((C, p) => {
20
+ var x;
21
+ o.current[p] === ((x = o.previous) == null ? void 0 : x[p]) && this.current[p] ? a.push(this.current[p]) : a.push(c(C));
22
+ }), this.current = a;
23
+ }));
24
+ }
25
+ close() {
26
+ super.close(), t(this, f).call(this);
27
+ }
28
+ }
29
+ f = new WeakMap();
30
+ var d, h, i;
31
+ class R extends m {
32
+ constructor(s, c, u) {
33
+ super(s, u);
34
+ n(this, d, void 0);
35
+ n(this, h, void 0);
36
+ n(this, i, 0);
37
+ l(this, h, new m(!1)), l(this, d, c), u != null && u.manualControl || this.refetch();
38
+ }
39
+ get isPending() {
40
+ return t(this, h);
41
+ }
42
+ /**
43
+ * Calls fetcher again and sets isPending to true.
44
+ */
45
+ refetch() {
46
+ t(this, h).current = !0, l(this, i, t(this, i) + 1);
47
+ const s = t(this, i);
48
+ t(this, d).call(this).then((c) => {
49
+ s === t(this, i) && (t(this, h).current = !1, this.current = c);
50
+ });
51
+ }
52
+ }
53
+ d = new WeakMap(), h = new WeakMap(), i = new WeakMap();
54
+ var b;
55
+ class S extends m {
56
+ constructor(s, c, u) {
57
+ super(null, u);
58
+ n(this, b, []);
59
+ const o = E(() => {
60
+ this.current = c();
61
+ }, 0);
62
+ s.forEach((a) => {
63
+ t(this, b).push(
64
+ a.subscribe(() => {
65
+ o();
66
+ })
67
+ );
68
+ });
69
+ }
70
+ close() {
71
+ super.close(), t(this, b).forEach((s) => s());
72
+ }
73
+ }
74
+ b = new WeakMap();
75
+ export {
76
+ S as C,
77
+ P as D,
78
+ R
79
+ };
@@ -1 +1 @@
1
- "use strict";var d=Object.defineProperty,g=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,h=(r,t)=>{for(var e in t||(t={}))A.call(t,e)&&i(r,e,t[e]);if(n)for(var e of n(t))f.call(t,e)&&i(r,e,t[e]);return r},s=(r,t)=>g(r,l(t));var u=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);const F=require("./math-GDWEqu7y.cjs"),c=require("./number-yVpzMdbQ.cjs"),b=require("./Animated-DZ_fbJmi.cjs");class q extends b.Animated{constructor(e){var a,m;super(s(h({},e),{min:(a=e==null?void 0:e.min)!=null?a:-1/0,max:(m=e==null?void 0:e.max)!=null?m:1/0}));u(this,"damping");this.damping=(e==null?void 0:e.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(e){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=F.damp(this.current,this.target,this.damping,e.elapsed)}}exports.Damped=q;
1
+ "use strict";var d=Object.defineProperty,g=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,h=(r,t)=>{for(var e in t||(t={}))A.call(t,e)&&i(r,e,t[e]);if(n)for(var e of n(t))f.call(t,e)&&i(r,e,t[e]);return r},s=(r,t)=>g(r,l(t));var u=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);const F=require("./math-GDWEqu7y.cjs"),c=require("./number-yVpzMdbQ.cjs"),b=require("./Animated-Bf-gPIQM.cjs");class q extends b.Animated{constructor(e){var a,m;super(s(h({},e),{min:(a=e==null?void 0:e.min)!=null?a:-1/0,max:(m=e==null?void 0:e.max)!=null?m:1/0}));u(this,"damping");this.damping=(e==null?void 0:e.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(e){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=F.damp(this.current,this.target,this.damping,e.elapsed)}}exports.Damped=q;
@@ -13,7 +13,7 @@ var r = (a, t, e) => t in a ? c(a, t, { enumerable: !0, configurable: !0, writab
13
13
  var d = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  import { d as x } from "./math-BOBiC4TN.js";
15
15
  import { p as u } from "./number-Bo5RdrA1.js";
16
- import { A as F } from "./Animated-CzBHCHNm.js";
16
+ import { A as F } from "./Animated-Br_4OSth.js";
17
17
  class p extends F {
18
18
  constructor(e) {
19
19
  var i, m;
@@ -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-uTyReFzx.js";
10
+ import { S as p } from "./Store-JOKrNVEr.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-BOOfmlyv.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-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;
@@ -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-uTyReFzx.js";
12
+ import { S } from "./Store-JOKrNVEr.js";
13
13
  var l, g, q, x, o, p, w;
14
14
  class k {
15
15
  constructor(s) {
@@ -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-BOOfmlyv.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-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;
@@ -0,0 +1 @@
1
+ "use strict";var v=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(v(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)=>(v(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(v(s,t,"access private method"),e);const A=require("./browser-CpzFX2xg.cjs");var l,o,S;class M{constructor(){a(this,l,null);a(this,o,"");a(this,S,"");A.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){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,w;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const N=(w=r(this,l))==null?void 0:w.stores.find(z=>z.name===e.name);N&&(t.current=N.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,o=new WeakMap,S=new WeakMap;const E=new M;var d,m,g,f,y,n,b,c,p,q;class j{constructor(t,e){a(this,p);a(this,d,void 0);a(this,m,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,n,new Set);a(this,b,void 0);a(this,c,void 0);i(this,d,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,w)=>h===w)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&E.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,y).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),R(this,p,q).call(this)}}get subscribers(){return r(this,n)}get entry(){return{current:r(this,f),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,d)&&!r(this,n).size&&C(this),r(this,n).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,d)&&!r(this,n).size&&k(this)}reset(){this.current=this.initial}close(){r(this,n).clear(),r(this,d)&&k(this)}}d=new WeakMap,m=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,n=new WeakMap,b=new WeakMap,c=new WeakMap,p=new WeakSet,q=function(){for(const t of r(this,n))t(this.entry)};const u=new j([]);function C(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=j;exports.activeStores=u;exports.storeRegistry=E;
@@ -6,7 +6,7 @@ var r = (s, t, e) => (v(s, t, "read from private field"), e ? e.call(s) : t.get(
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, c) => (v(s, t, "write to private field"), c ? c.call(s, e) : t.set(s, e), 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
10
  var k = (s, t, e) => (v(s, t, "access private method"), e);
11
11
  import { i as z } from "./browser-0zX67oeU.js";
12
12
  var l, o, S;
@@ -43,12 +43,12 @@ class A {
43
43
  }), this.saveState();
44
44
  }
45
45
  updateStore(t) {
46
- var c, b;
47
- if (!Array.isArray((c = r(this, l)) == null ? void 0 : c.stores))
46
+ var h, p;
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 = (b = r(this, l)) == null ? void 0 : b.stores.find(
51
+ const N = (p = r(this, l)) == null ? void 0 : p.stores.find(
52
52
  (j) => j.name === e.name
53
53
  );
54
54
  N && (t.current = N.value);
@@ -60,16 +60,16 @@ class A {
60
60
  stores: []
61
61
  };
62
62
  return f.current.forEach((e) => {
63
- e.passport && t.stores.push({
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
66
- });
66
+ }));
67
67
  }), t;
68
68
  }
69
69
  }
70
70
  l = new WeakMap(), o = new WeakMap(), S = new WeakMap();
71
71
  const M = new A();
72
- var u, m, g, d, y, n, p, h, w, R;
72
+ var u, m, g, d, y, n, b, c, w, R;
73
73
  class q {
74
74
  constructor(t, e) {
75
75
  a(this, w);
@@ -79,9 +79,9 @@ class q {
79
79
  a(this, d, void 0);
80
80
  a(this, y, void 0);
81
81
  a(this, n, /* @__PURE__ */ new Set());
82
- a(this, p, void 0);
83
- a(this, h, 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) || ((c, b) => c === b)), e != null && e.validate && this.addMiddleware(e.validate), i(this, p, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, u) && M.updateStore(this);
82
+ a(this, b, void 0);
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);
85
85
  }
86
86
  get passport() {
87
87
  return r(this, u);
@@ -97,8 +97,8 @@ class q {
97
97
  }
98
98
  set current(t) {
99
99
  if (!r(this, y).call(this, r(this, d), t)) {
100
- if (i(this, g, r(this, d)), r(this, h))
101
- for (const e of r(this, h))
100
+ if (i(this, g, r(this, d)), r(this, c))
101
+ for (const e of r(this, c))
102
102
  t = e(t);
103
103
  i(this, d, t), k(this, w, R).call(this);
104
104
  }
@@ -113,14 +113,14 @@ class q {
113
113
  };
114
114
  }
115
115
  addMiddleware(t) {
116
- r(this, h) || i(this, h, /* @__PURE__ */ new Set()), r(this, h).add(t);
116
+ r(this, c) || i(this, c, /* @__PURE__ */ new Set()), r(this, c).add(t);
117
117
  }
118
118
  removeMiddleware(t) {
119
- var e, c;
120
- (e = r(this, h)) == null || e.delete(t), (c = r(this, h)) != null && c.size || i(this, h, void 0);
119
+ var e, h;
120
+ (e = r(this, c)) == null || e.delete(t), (h = r(this, c)) != null && h.size || i(this, c, void 0);
121
121
  }
122
122
  subscribe(t) {
123
- return r(this, u) && !r(this, n).size && C(this), r(this, n).add(t), r(this, p) || t(this.entry), () => {
123
+ return r(this, u) && !r(this, n).size && C(this), r(this, n).add(t), r(this, b) || t(this.entry), () => {
124
124
  this.unsubscribe(t);
125
125
  };
126
126
  }
@@ -134,13 +134,13 @@ class q {
134
134
  r(this, n).clear(), r(this, u) && E(this);
135
135
  }
136
136
  }
137
- u = new WeakMap(), m = new WeakMap(), g = new WeakMap(), d = new WeakMap(), y = new WeakMap(), n = new WeakMap(), p = new WeakMap(), h = new WeakMap(), w = new WeakSet(), R = function() {
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
138
  for (const t of r(this, n))
139
139
  t(this.entry);
140
140
  };
141
141
  const f = new q([]);
142
142
  function C(s) {
143
- f.current.find((t) => t.passport.name === s.passport.name) || (f.current = [...f.current, s]);
143
+ f.current.includes(s) || (f.current = [...f.current, s]);
144
144
  }
145
145
  function E(s) {
146
146
  f.current.includes(s) && (f.current = f.current.filter((t) => t !== s));
@@ -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-BOOfmlyv.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-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;
@@ -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-uTyReFzx.js";
14
+ import { S as I } from "./Store-JOKrNVEr.js";
15
15
  var r, d, l, c, g, m, p, x, u;
16
16
  class L {
17
17
  constructor() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../custom-element/index.cjs"),r=require("../ElementConstructor-v1FPLXAW.cjs"),s=require("../browser-CpzFX2xg.cjs");class n extends e.CustomElement{constructor(){super(),s.isBrowser&&r.element(this,{attributes:{tabIndex:this.getAttribute("tabindex")||"0",role:"button"},style:{cursor:"default"},events:{keydown:t=>{t.code==="Space"&&this.click()},click:()=>{this.click()}}})}}exports.AbstractButtonElement=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-DkAbVUQP.cjs");class i extends e.CustomElement{constructor(){super(),r.isBrowser&&s.element(this,{attributes:{tabIndex:this.getAttribute("tabindex")||"0",role:"button"},style:{cursor:"default"},events:{keydown:t=>{t.code==="Space"&&this.click()},click:()=>{this.click()}}})}}exports.AbstractButtonElement=i;
@@ -1,6 +1,7 @@
1
1
  import { CustomElement as e } from "../custom-element/index.js";
2
- import { e as s } from "../ElementConstructor-DB0xOoat.js";
2
+ import "../Store-JOKrNVEr.js";
3
3
  import { i as r } from "../browser-0zX67oeU.js";
4
+ import { e as s } from "../tags-D-lzPz_v.js";
4
5
  class l extends e {
5
6
  constructor() {
6
7
  super(), r && s(this, {
@@ -1 +1 @@
1
- "use strict";var h=Object.defineProperty,c=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var i=(a,t,e)=>t in a?h(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,n=(a,t)=>{for(var e in t||(t={}))g.call(t,e)&&i(a,e,t[e]);if(r)for(var e of r(t))A.call(t,e)&&i(a,e,t[e]);return a},s=(a,t)=>c(a,l(t));var m=(a,t,e)=>(i(a,typeof t!="symbol"?t+"":t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Animated-DZ_fbJmi.cjs"),x=require("../easings-DsS5-Kqc.cjs"),F=require("../Damped--qBZAdEi.cjs");class f extends d.Animated{constructor(e){super(s(n({},e),{min:(e==null?void 0:e.min)||0,max:(e==null?void 0:e.max)||1e3}));m(this,"easing");this.easing=(e==null?void 0:e.easing)||x.linear}start(){this.listenAnimationFrame()}pause(){this.unlistenAnimationFrame()}stop(){this.reset()}get max(){return super.max}update(){const e=(this.target-this.min.current)/(this.delta||1),u=this.easing(e);this.current=this.min.current+u*this.delta}handleAnimationFrame(e){this.shift(e.elapsed),(e.elapsed&&this.current===0||this.current===this.delta)&&this.unlistenAnimationFrame()}}exports.Animated=d.Animated;exports.Damped=F.Damped;exports.Tweened=f;
1
+ "use strict";var h=Object.defineProperty,c=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var i=(a,t,e)=>t in a?h(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,n=(a,t)=>{for(var e in t||(t={}))g.call(t,e)&&i(a,e,t[e]);if(r)for(var e of r(t))A.call(t,e)&&i(a,e,t[e]);return a},s=(a,t)=>c(a,l(t));var m=(a,t,e)=>(i(a,typeof t!="symbol"?t+"":t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Animated-Bf-gPIQM.cjs"),x=require("../easings-DsS5-Kqc.cjs"),F=require("../Damped-BwpMU9Gi.cjs");class f extends d.Animated{constructor(e){super(s(n({},e),{min:(e==null?void 0:e.min)||0,max:(e==null?void 0:e.max)||1e3}));m(this,"easing");this.easing=(e==null?void 0:e.easing)||x.linear}start(){this.listenAnimationFrame()}pause(){this.unlistenAnimationFrame()}stop(){this.reset()}get max(){return super.max}update(){const e=(this.target-this.min.current)/(this.delta||1),u=this.easing(e);this.current=this.min.current+u*this.delta}handleAnimationFrame(e){this.shift(e.elapsed),(e.elapsed&&this.current===0||this.current===this.delta)&&this.unlistenAnimationFrame()}}exports.Animated=d.Animated;exports.Damped=F.Damped;exports.Tweened=f;
@@ -11,9 +11,9 @@ var r = (a, t, e) => t in a ? d(a, t, { enumerable: !0, configurable: !0, writab
11
11
  return a;
12
12
  }, m = (a, t) => l(a, u(t));
13
13
  var n = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
14
- import { A as g } from "../Animated-CzBHCHNm.js";
14
+ import { A as g } from "../Animated-Br_4OSth.js";
15
15
  import { l as A } from "../easings-BKi40vHz.js";
16
- import { D as b } from "../Damped-Bm1kSn1f.js";
16
+ import { D as b } from "../Damped-urvryQLo.js";
17
17
  class w extends g {
18
18
  constructor(e) {
19
19
  super(m(s({}, e), {
@@ -1 +1 @@
1
- "use strict";var m=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(m(s,r,"read from private field"),e?e.call(s):r.get(s)),u=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},h=(s,r,e,f)=>(m(s,r,"write to private field"),f?f.call(s,e):r.set(s,e),e);var o=(s,r,e)=>(m(s,r,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-BOOfmlyv.cjs"),q=require("../attributes-Bf2svn4j.cjs"),C=require("../browser-CpzFX2xg.cjs"),p=require("../dom-qY2LdCVL.cjs");var i,n,b,a,c,l,w,d,y;class z extends S.Store{constructor(e,f,O,v){super(O,v);u(this,l);u(this,d);u(this,i,null);u(this,n,void 0);u(this,b,null);u(this,a,null);u(this,c,!1);h(this,n,f),C.isBrowser&&(h(this,i,p.getElement(e)),v!=null&&v.sync&&this.subscribe(g=>{t(this,i).setAttribute(t(this,n),g.current.toString())}),h(this,b,new MutationObserver(g=>{g.forEach(A=>{A.type==="attributes"&&A.attributeName===t(this,n)&&o(this,l,w).call(this)})})),h(this,a,new ResizeObserver(()=>{t(this,i).isConnected&&!t(this,c)?t(this,b).observe(t(this,i),{attributes:!0}):!t(this,i).isConnected&&t(this,c)&&(t(this,b).disconnect(),t(this,a).disconnect()),h(this,c,t(this,i).isConnected)})))}get current(){return o(this,d,y).call(this),super.current}set current(e){super.current=e}subscribe(e){return o(this,d,y).call(this),super.subscribe(e)}}i=new WeakMap,n=new WeakMap,b=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakSet,w=function(){const e=t(this,i).getAttribute(t(this,n));e!=null&&(this.current=q.parseAttributeValue(e))},d=new WeakSet,y=function(){t(this,c)||(o(this,l,w).call(this),t(this,a).observe(t(this,i)))};exports.Attribute=z;
1
+ "use strict";var m=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(m(s,r,"read from private field"),e?e.call(s):r.get(s)),u=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},h=(s,r,e,f)=>(m(s,r,"write to private field"),f?f.call(s,e):r.set(s,e),e);var o=(s,r,e)=>(m(s,r,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-D0_rDIsE.cjs"),q=require("../attributes-Bf2svn4j.cjs"),C=require("../browser-CpzFX2xg.cjs"),p=require("../dom-qY2LdCVL.cjs");var i,n,b,a,c,l,w,d,y;class z extends S.Store{constructor(e,f,O,v){super(O,v);u(this,l);u(this,d);u(this,i,null);u(this,n,void 0);u(this,b,null);u(this,a,null);u(this,c,!1);h(this,n,f),C.isBrowser&&(h(this,i,p.getElement(e)),v!=null&&v.sync&&this.subscribe(g=>{t(this,i).setAttribute(t(this,n),g.current.toString())}),h(this,b,new MutationObserver(g=>{g.forEach(A=>{A.type==="attributes"&&A.attributeName===t(this,n)&&o(this,l,w).call(this)})})),h(this,a,new ResizeObserver(()=>{t(this,i).isConnected&&!t(this,c)?t(this,b).observe(t(this,i),{attributes:!0}):!t(this,i).isConnected&&t(this,c)&&(t(this,b).disconnect(),t(this,a).disconnect()),h(this,c,t(this,i).isConnected)})))}get current(){return o(this,d,y).call(this),super.current}set current(e){super.current=e}subscribe(e){return o(this,d,y).call(this),super.subscribe(e)}}i=new WeakMap,n=new WeakMap,b=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakSet,w=function(){const e=t(this,i).getAttribute(t(this,n));e!=null&&(this.current=q.parseAttributeValue(e))},d=new WeakSet,y=function(){t(this,c)||(o(this,l,w).call(this),t(this,a).observe(t(this,i)))};exports.Attribute=z;
@@ -8,7 +8,7 @@ var e = (s, r, t) => (v(s, r, "read from private field"), t ? t.call(s) : r.get(
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, t);
9
9
  }, c = (s, r, t, m) => (v(s, r, "write to private field"), m ? m.call(s, t) : r.set(s, t), t);
10
10
  var o = (s, r, t) => (v(s, r, "access private method"), t);
11
- import { S as O } from "../Store-uTyReFzx.js";
11
+ import { S as O } from "../Store-JOKrNVEr.js";
12
12
  import { p as y } from "../attributes-69we3byR.js";
13
13
  import { i as S } from "../browser-0zX67oeU.js";
14
14
  import { g as x } from "../dom-BY7JhTx5.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../custom-element/index.cjs"),R=require("../ElementConstructor-v1FPLXAW.cjs"),M=require("../htmlTags-CwYHVo9n.cjs"),W=require("../createStylesheet-ChhZFwSX.cjs"),y=require("../math-GDWEqu7y.cjs"),b=require("../notifier/index.cjs"),x=require("../element-resizer/index.cjs"),E=require("../ticker/index.cjs");var q=Object.defineProperty,S=Object.getOwnPropertyDescriptor,P=(i,e,s,r)=>{for(var h=r>1?void 0:r?S(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(h=(r?g(e,s,h):g(h))||h);return r&&h&&q(e,s,h),h},C=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(C(i,e,"read from private field"),s?s.call(i):e.get(i)),n=(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,r)=>(C(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),p,a,d,l,o,u,v,_,m,w;const O=W.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends k.CustomElement{constructor(){super(),n(this,p,new b.Notifier),n(this,a,null),n(this,d,null),n(this,l,0),n(this,o,0),n(this,u,1),n(this,v,0),n(this,_,1),n(this,m,e=>{c(this,u,y.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,a).width=t(this,l)*this.pixelRatio,t(this,a).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),this.renderEvent.notify(this.detail)}),n(this,w,e=>{c(this,v,e.timestamp),c(this,_,e.elapsed),t(this,p).notify(this.detail)}),this.openShadow(O),R.element(this,{shadowChildren:M.canvas({ref:e=>{c(this,a,e),c(this,d,e.getContext("2d"))}})})}get renderEvent(){return t(this,p)}get canvasElement(){return t(this,a)}get context(){return t(this,d)}get pixelRatio(){return t(this,u)}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,a),pixelRatio:t(this,u),context:t(this,d),timestamp:t(this,v),elapsed:t(this,_)}}connectedCallback(){x.elementResizer.subscribe(this,t(this,m)),this.hasAttribute("static")||E.ticker.subscribe(t(this,w),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){x.elementResizer.unsubscribe(t(this,m)),E.ticker.unsubscribe(t(this,w)),t(this,p).close(),t(this,a).remove()}};p=new WeakMap;a=new WeakMap;d=new WeakMap;l=new WeakMap;o=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakMap;exports.CanvasElement=P([k.define("e-canvas")],exports.CanvasElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const M=require("../math-GDWEqu7y.cjs"),x=require("../tags-DkAbVUQP.cjs"),W=require("../createStylesheet-C1rimcGc.cjs"),y=require("../notifier/index.cjs"),k=require("../element-resizer/index.cjs"),E=require("../ticker/index.cjs");var b=Object.defineProperty,q=Object.getOwnPropertyDescriptor,S=(i,e,s,r)=>{for(var h=r>1?void 0:r?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(h=(r?g(e,s,h):g(h))||h);return r&&h&&b(e,s,h),h},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)),n=(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,r)=>(R(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),p,a,d,l,o,u,v,_,w,m;const P=W.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends C.CustomElement{constructor(){super(),n(this,p,new y.Notifier),n(this,a,null),n(this,d,null),n(this,l,0),n(this,o,0),n(this,u,1),n(this,v,0),n(this,_,1),n(this,w,e=>{c(this,u,M.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,a).width=t(this,l)*this.pixelRatio,t(this,a).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),this.renderEvent.notify(this.detail)}),n(this,m,e=>{c(this,v,e.timestamp),c(this,_,e.elapsed),t(this,p).notify(this.detail)}),this.openShadow(P),x.element(this,{shadowChildren:x.canvas({ref:e=>{c(this,a,e),c(this,d,e.getContext("2d"))}})})}get renderEvent(){return t(this,p)}get canvasElement(){return t(this,a)}get context(){return t(this,d)}get pixelRatio(){return t(this,u)}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,a),pixelRatio:t(this,u),context:t(this,d),timestamp:t(this,v),elapsed:t(this,_)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,w)),this.hasAttribute("static")||E.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,w)),E.ticker.unsubscribe(t(this,m)),t(this,p).close(),t(this,a).remove()}};p=new WeakMap;a=new WeakMap;d=new WeakMap;l=new WeakMap;o=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;w=new WeakMap;m=new WeakMap;exports.CanvasElement=S([C.define("e-canvas")],exports.CanvasElement);
@@ -1,8 +1,8 @@
1
1
  import { CustomElement as C, define as E } from "../custom-element/index.js";
2
- import { e as M } from "../ElementConstructor-DB0xOoat.js";
3
- import { c as y } from "../htmlTags-CNEFIHPp.js";
4
- import { c as b } from "../createStylesheet-74ZP3AZm.js";
5
- import { c as P } from "../math-BOBiC4TN.js";
2
+ import "../Store-JOKrNVEr.js";
3
+ import { c as M } from "../math-BOBiC4TN.js";
4
+ import { e as y, q as b } from "../tags-D-lzPz_v.js";
5
+ import { c as P } from "../createStylesheet-BSXZrWW6.js";
6
6
  import { Notifier as S } from "../notifier/index.js";
7
7
  import { elementResizer as x } from "../element-resizer/index.js";
8
8
  import { ticker as k } from "../ticker/index.js";
@@ -18,7 +18,7 @@ var A = Object.defineProperty, O = Object.getOwnPropertyDescriptor, z = (t, i, s
18
18
  throw TypeError("Cannot add the same private member more than once");
19
19
  i instanceof WeakSet ? i.add(t) : i.set(t, s);
20
20
  }, o = (t, i, s, r) => (W(t, i, "write to private field"), r ? r.call(t, s) : i.set(t, s), s), l, h, d, p, c, m, v, f, u, w;
21
- const D = b({
21
+ const D = P({
22
22
  ":host, canvas": {
23
23
  display: "block",
24
24
  width: "100%",
@@ -28,11 +28,11 @@ const D = b({
28
28
  let R = class extends C {
29
29
  constructor() {
30
30
  super(), a(this, l, new S()), a(this, h, null), a(this, d, null), a(this, p, 0), a(this, c, 0), a(this, m, 1), a(this, v, 0), a(this, f, 1), a(this, u, (t) => {
31
- o(this, m, P(devicePixelRatio, 1, 2)), o(this, p, t.contentRect.width), o(this, c, t.contentRect.height), e(this, h).width = e(this, p) * this.pixelRatio, e(this, h).height = e(this, c) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), this.renderEvent.notify(this.detail);
31
+ o(this, m, M(devicePixelRatio, 1, 2)), o(this, p, t.contentRect.width), o(this, c, t.contentRect.height), e(this, h).width = e(this, p) * this.pixelRatio, e(this, h).height = e(this, c) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), this.renderEvent.notify(this.detail);
32
32
  }), a(this, w, (t) => {
33
33
  o(this, v, t.timestamp), o(this, f, t.elapsed), e(this, l).notify(this.detail);
34
- }), this.openShadow(D), M(this, {
35
- shadowChildren: y({
34
+ }), this.openShadow(D), y(this, {
35
+ shadowChildren: b({
36
36
  ref: (t) => {
37
37
  o(this, h, t), o(this, d, t.getContext("2d"));
38
38
  }
@@ -1 +1 @@
1
- "use strict";var C=(t,n,e)=>{if(!n.has(t))throw TypeError("Cannot "+e)};var a=(t,n,e)=>(C(t,n,"read from private field"),e?e.call(t):n.get(t)),s=(t,n,e)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,e)},r=(t,n,e,l)=>(C(t,n,"write to private field"),l?l.call(t,e):n.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../browser-CpzFX2xg.cjs");var i,o,d;class h{constructor(){s(this,i,[]);s(this,o,void 0);s(this,d,()=>{var n,e;for(let l=0;l<a(this,i).length;l++){const c=a(this,i)[l];c.node.isConnected&&!c.isConnected?((n=c.connectCallback)==null||n.call(c),c.isConnected=!0):!c.node.isConnected&&c.isConnected&&((e=c.disconnectCallback)==null||e.call(c),c.isConnected=!1),c.timer+=100,!c.isConnected&&c.timer>c.maxWaitSec*1e3&&this.unsubscribe(c)}});b.isBrowser&&r(this,o,setInterval(a(this,d),100))}subscribe(n,e){return a(this,i).push({node:n,connectCallback:e.connectCallback,disconnectCallback:e.disconnectCallback,isConnected:!1,maxWaitSec:e.maxWaitSec||1/0,timer:0}),()=>{this.unsubscribe(e)}}unsubscribe(n){a(this,i).forEach(e=>{e.connectCallback===n.connectCallback&&(e.connectCallback=void 0),e.disconnectCallback===n.disconnectCallback&&(e.disconnectCallback=void 0)}),r(this,i,a(this,i).filter(e=>e.connectCallback&&e.disconnectCallback))}destroy(){clearInterval(a(this,o)),r(this,i,[])}}i=new WeakMap,o=new WeakMap,d=new WeakMap;const k=new h;exports.Connector=h;exports.connector=k;
1
+ "use strict";var C=(t,n,e)=>{if(!n.has(t))throw TypeError("Cannot "+e)};var s=(t,n,e)=>(C(t,n,"read from private field"),e?e.call(t):n.get(t)),o=(t,n,e)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,e)},r=(t,n,e,a)=>(C(t,n,"write to private field"),a?a.call(t,e):n.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../browser-CpzFX2xg.cjs");var i,l,d;class b{constructor(){o(this,i,[]);o(this,l,void 0);o(this,d,()=>{var n,e;for(let a=0;a<s(this,i).length;a++){const c=s(this,i)[a];c.node.isConnected&&!c.isConnected?((n=c.connectCallback)==null||n.call(c),c.isConnected=!0):!c.node.isConnected&&c.isConnected&&((e=c.disconnectCallback)==null||e.call(c),c.isConnected=!1,c.unsubscribeAfterDisconnect&&this.unsubscribe(c)),c.timer+=100,!c.isConnected&&c.timer>c.maxWaitSec*1e3&&this.unsubscribe(c)}});f.isBrowser&&r(this,l,setInterval(s(this,d),100))}subscribe(n,e){return s(this,i).push({node:n,connectCallback:e.connectCallback,disconnectCallback:e.disconnectCallback,isConnected:!1,maxWaitSec:e.maxWaitSec||1/0,timer:0,unsubscribeAfterDisconnect:e.unsubscribeAfterDisconnect||!1}),()=>{this.unsubscribe(e)}}unsubscribe(n){s(this,i).forEach(e=>{e.connectCallback===n.connectCallback&&(e.connectCallback=void 0),e.disconnectCallback===n.disconnectCallback&&(e.disconnectCallback=void 0)}),r(this,i,s(this,i).filter(e=>e.connectCallback&&e.disconnectCallback))}destroy(){clearInterval(s(this,l)),r(this,i,[])}}i=new WeakMap,l=new WeakMap,d=new WeakMap;const u=new b;exports.Connector=b;exports.connector=u;
@@ -3,6 +3,7 @@ export interface ConnectorOptions {
3
3
  connectCallback?: ConnectorCallback;
4
4
  disconnectCallback?: ConnectorCallback;
5
5
  maxWaitSec?: number;
6
+ unsubscribeAfterDisconnect?: boolean;
6
7
  }
7
8
  export declare class Connector {
8
9
  #private;