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
@@ -1,81 +1,92 @@
1
- var ge = (t, e, r) => {
1
+ var fe = (t, e, r) => {
2
2
  if (!e.has(t))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var w = (t, e, r) => (ge(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Z = (t, e, r) => {
5
+ var d = (t, e, r) => (fe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (t, e, r) => {
6
6
  if (e.has(t))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
9
- }, P = (t, e, r, s) => (ge(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
9
+ }, M = (t, e, r, s) => (fe(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
10
10
  import { i as xe } from "../browser-0zX67oeU.js";
11
- import { CustomElement as ue, define as p } from "../custom-element/index.js";
12
- import { e as m } from "../ElementConstructor-DB0xOoat.js";
13
- import { c as g } from "../createStylesheet-74ZP3AZm.js";
14
- import { s as _, S as se, a as x } from "../Store-uTyReFzx.js";
15
- import { c as Se } from "../file-lxi_oXJf.js";
16
- import { d as $e } from "../function-C10DGppn.js";
17
- import { _ as z, a as Pe, aW as ee, az as Oe, C as f, p as F, a1 as Me } from "../htmlTags-CNEFIHPp.js";
18
- import { A as Ee } from "../Animated-CzBHCHNm.js";
19
- import { a as Te } from "../Viewport-Cj0i-H5d.js";
20
- import { AccordionElement as De } from "../accordion/index.js";
21
- import { a as Re } from "../index-DyJhLxk8.js";
11
+ import { CustomElement as ge, define as p } from "../custom-element/index.js";
12
+ import { s as S, S as ie, a as $ } from "../Store-JOKrNVEr.js";
13
+ import { e as m, a0 as N, a as $e, aY as re, aB as Pe, D as w, p as I, a3 as Oe } from "../tags-D-lzPz_v.js";
14
+ import { c as f } from "../createStylesheet-BSXZrWW6.js";
15
+ import { c as Me } from "../file-lxi_oXJf.js";
16
+ import { d as Ee } from "../function-C10DGppn.js";
17
+ import { A as Te } from "../Animated-Br_4OSth.js";
18
+ import { a as De } from "../Viewport-CXY5xcGJ.js";
19
+ import { AccordionElement as Re } from "../accordion/index.js";
20
+ import { a as We } from "../index-dBwVZz_v.js";
21
+ import { d as Le } from "../events-CoqmkUxo.js";
22
22
  import { aptechkaTheme as i } from "../theme/index.js";
23
- import { c as We } from "../math-BOBiC4TN.js";
24
- const me = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', be = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', Le = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', Fe = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';
25
- var $, u;
26
- class Ae {
23
+ import { c as Fe } from "../math-BOBiC4TN.js";
24
+ const be = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', _e = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', Ae = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', Ie = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';
25
+ var O, g;
26
+ class ze {
27
27
  constructor() {
28
- Z(this, $, "");
29
- Z(this, u, []);
30
- P(this, $, _.projectName + "-studio");
28
+ G(this, O, "");
29
+ G(this, g, []);
30
+ M(this, O, S.projectName + "-studio");
31
31
  }
32
32
  openPanel(e) {
33
- w(this, u).includes(e) || w(this, u).push(e);
33
+ d(this, g).includes(e) || d(this, g).push(e);
34
34
  }
35
35
  closePanel(e) {
36
- P(this, u, w(this, u).filter((r) => r !== e));
36
+ M(this, g, d(this, g).filter((r) => r !== e));
37
37
  }
38
38
  isPanelOpened(e) {
39
- return w(this, u).includes(e);
39
+ return d(this, g).includes(e);
40
40
  }
41
41
  save() {
42
42
  const e = {
43
- openedPanels: w(this, u)
43
+ openedPanels: d(this, g)
44
44
  };
45
- localStorage.setItem(w(this, $), JSON.stringify(e)), _.saveState();
45
+ localStorage.setItem(d(this, O), JSON.stringify(e)), S.saveState();
46
46
  }
47
47
  load() {
48
- _.loadState();
49
- const e = localStorage.getItem(w(this, $));
48
+ S.loadState();
49
+ const e = localStorage.getItem(d(this, O));
50
50
  if (e)
51
51
  try {
52
52
  const r = JSON.parse(e);
53
- r.openedPanels && P(this, u, r.openedPanels);
53
+ r.openedPanels && M(this, g, r.openedPanels);
54
54
  } catch (r) {
55
55
  console.error(r);
56
56
  }
57
57
  }
58
58
  }
59
- $ = new WeakMap(), u = new WeakMap();
60
- const S = new Ae();
61
- var I;
62
- class N extends ue {
63
- constructor(r) {
59
+ O = new WeakMap(), g = new WeakMap();
60
+ const P = new ze();
61
+ var y;
62
+ class H extends ge {
63
+ constructor(...r) {
64
64
  super();
65
- Z(this, I, void 0);
66
- P(this, I, r);
65
+ G(this, y, void 0);
66
+ M(this, y, r);
67
67
  }
68
- get store() {
69
- return w(this, I);
68
+ addStore(r) {
69
+ d(this, y).push(r);
70
+ }
71
+ get firstStore() {
72
+ return d(this, y)[0];
73
+ }
74
+ get stores() {
75
+ return d(this, y);
76
+ }
77
+ updateStores(r) {
78
+ d(this, y).forEach((s) => {
79
+ s.current = r;
80
+ });
70
81
  }
71
82
  }
72
- I = new WeakMap();
73
- var Ie = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, Ne = (t, e, r, s) => {
74
- for (var a = s > 1 ? void 0 : s ? ze(e, r) : e, o = t.length - 1, n; o >= 0; o--)
83
+ y = new WeakMap();
84
+ var Ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ze = (t, e, r, s) => {
85
+ for (var a = s > 1 ? void 0 : s ? He(e, r) : e, o = t.length - 1, n; o >= 0; o--)
75
86
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
76
- return s && a && Ie(e, r, a), a;
87
+ return s && a && Ne(e, r, a), a;
77
88
  };
78
- const He = g({
89
+ const Ge = f({
79
90
  ":host": {
80
91
  width: "100%",
81
92
  display: "inline-flex",
@@ -91,21 +102,21 @@ const He = g({
91
102
  accentColor: i.colorLight.var
92
103
  }
93
104
  });
94
- let ne = class extends N {
95
- constructor(t) {
96
- super(t), this.openShadow(He), m(this, {
105
+ let oe = class extends H {
106
+ constructor(...t) {
107
+ super(...t), this.openShadow(Ge), m(this, {
97
108
  shadowChildren: [
98
- z({
109
+ N({
99
110
  attributes: {
100
111
  type: "checkbox"
101
112
  },
102
113
  events: {
103
114
  change: (e) => {
104
- this.store.current = e.currentTarget.checked;
115
+ this.updateStores(e.currentTarget.checked);
105
116
  }
106
117
  },
107
118
  ref: (e) => {
108
- this.store.subscribe((r) => {
119
+ this.firstStore.subscribe((r) => {
109
120
  e.checked = r.current;
110
121
  });
111
122
  }
@@ -114,15 +125,15 @@ let ne = class extends N {
114
125
  });
115
126
  }
116
127
  };
117
- ne = Ne([
128
+ oe = Ze([
118
129
  p("e-tweaker-boolean-manager")
119
- ], ne);
120
- var Ze = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Ke = (t, e, r, s) => {
121
- for (var a = s > 1 ? void 0 : s ? Ge(e, r) : e, o = t.length - 1, n; o >= 0; o--)
130
+ ], oe);
131
+ var Ke = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
132
+ for (var a = s > 1 ? void 0 : s ? Je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
122
133
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
123
- return s && a && Ze(e, r, a), a;
134
+ return s && a && Ke(e, r, a), a;
124
135
  };
125
- const Je = g({
136
+ const Ye = f({
126
137
  ":host": {
127
138
  width: "100%",
128
139
  display: "inline-flex",
@@ -145,18 +156,18 @@ const Je = g({
145
156
  height: `calc(${i.heightInput.var} * 0.93)`
146
157
  }
147
158
  });
148
- let ie = class extends N {
149
- constructor(t) {
150
- super(t), this.openShadow(Je), m(this, {
159
+ let le = class extends H {
160
+ constructor(...t) {
161
+ super(...t), this.openShadow(Ye), m(this, {
151
162
  shadowChildren: [
152
- z({
163
+ N({
153
164
  attributes: {
154
165
  type: "color",
155
- value: this.store
166
+ value: this.firstStore
156
167
  },
157
168
  events: {
158
169
  input: (e) => {
159
- this.store.current = e.currentTarget.value;
170
+ this.updateStores(e.currentTarget.value);
160
171
  }
161
172
  }
162
173
  })
@@ -164,51 +175,51 @@ let ie = class extends N {
164
175
  });
165
176
  }
166
177
  };
167
- ie = Ke([
178
+ le = Ve([
168
179
  p("e-tweaker-color-manager")
169
- ], ie);
170
- var Ve = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, Ye = (t, e, r, s) => {
171
- for (var a = s > 1 ? void 0 : s ? Be(e, r) : e, o = t.length - 1, n; o >= 0; o--)
180
+ ], le);
181
+ var Be = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, Qe = (t, e, r, s) => {
182
+ for (var a = s > 1 ? void 0 : s ? qe(e, r) : e, o = t.length - 1, n; o >= 0; o--)
172
183
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
173
- return s && a && Ve(e, r, a), a;
184
+ return s && a && Be(e, r, a), a;
174
185
  };
175
- const qe = g({
186
+ const Ue = f({
176
187
  a: {
177
188
  color: "inherit"
178
189
  }
179
190
  });
180
- let oe = class extends N {
181
- constructor(t) {
191
+ let he = class extends H {
192
+ constructor(...t) {
182
193
  var e, r;
183
- super(t), this.openShadow(qe), m(this, {
194
+ super(...t), this.openShadow(Ue), m(this, {
184
195
  shadowChildren: [
185
- Pe({
196
+ $e({
186
197
  attributes: {
187
- href: this.store,
188
- target: (r = (e = this.store.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
198
+ href: this.firstStore,
199
+ target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
189
200
  },
190
- children: this.store
201
+ children: this.firstStore
191
202
  })
192
203
  ]
193
204
  });
194
205
  }
195
206
  };
196
- oe = Ye([
207
+ he = Qe([
197
208
  p("e-tweaker-link-manager")
198
- ], oe);
199
- var Qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Xe = (t, e, r, s) => {
200
- for (var a = s > 1 ? void 0 : s ? Ue(e, r) : e, o = t.length - 1, n; o >= 0; o--)
209
+ ], he);
210
+ var Xe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, et = (t, e, r, s) => {
211
+ for (var a = s > 1 ? void 0 : s ? je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
201
212
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
202
- return s && a && Qe(e, r, a), a;
203
- }, je = (t, e, r) => {
213
+ return s && a && Xe(e, r, a), a;
214
+ }, tt = (t, e, r) => {
204
215
  if (!e.has(t))
205
216
  throw TypeError("Cannot " + r);
206
- }, te = (t, e, r) => (je(t, e, "read from private field"), r ? r.call(t) : e.get(t)), et = (t, e, r) => {
217
+ }, ae = (t, e, r) => (tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), rt = (t, e, r) => {
207
218
  if (e.has(t))
208
219
  throw TypeError("Cannot add the same private member more than once");
209
220
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
210
- }, M;
211
- const tt = g({
221
+ }, E;
222
+ const at = f({
212
223
  ":host": {
213
224
  width: "100%",
214
225
  display: "flex",
@@ -232,88 +243,90 @@ const tt = g({
232
243
  borderRadius: i.borderRadius.var
233
244
  }
234
245
  });
235
- let X = class extends N {
236
- constructor(t) {
237
- super(t), et(this, M, new se([])), this.openShadow(tt), m(this, {
246
+ let j = class extends H {
247
+ constructor(...t) {
248
+ super(...t), rt(this, E, new ie([])), this.openShadow(at), m(this, {
238
249
  shadowChildren: [
239
- z({
250
+ N({
240
251
  class: "text-input",
241
252
  attributes: {
242
253
  type: "string",
243
- value: this.store
254
+ value: this.firstStore
244
255
  },
245
256
  events: {
246
257
  change: (e) => {
247
- this.store.current = e.currentTarget.value;
258
+ this.updateStores(
259
+ e.currentTarget.value
260
+ );
248
261
  }
249
262
  }
250
263
  }),
251
- te(this, M)
264
+ ae(this, E)
252
265
  ]
253
266
  });
254
267
  }
255
268
  appendContent(t) {
256
- te(this, M).current = [...te(this, M).current, t];
269
+ ae(this, E).current = [...ae(this, E).current, t];
257
270
  }
258
271
  };
259
- M = /* @__PURE__ */ new WeakMap();
260
- X = Xe([
272
+ E = /* @__PURE__ */ new WeakMap();
273
+ j = et([
261
274
  p("e-tweaker-string-manager")
262
- ], X);
263
- var rt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, st = (t, e, r, s) => {
264
- for (var a = s > 1 ? void 0 : s ? at(e, r) : e, o = t.length - 1, n; o >= 0; o--)
275
+ ], j);
276
+ var st = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = (t, e, r, s) => {
277
+ for (var a = s > 1 ? void 0 : s ? nt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
265
278
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
266
- return s && a && rt(e, r, a), a;
267
- }, _e = (t, e, r) => {
279
+ return s && a && st(e, r, a), a;
280
+ }, Se = (t, e, r) => {
268
281
  if (!e.has(t))
269
282
  throw TypeError("Cannot " + r);
270
- }, b = (t, e, r) => (_e(t, e, "read from private field"), r ? r.call(t) : e.get(t)), G = (t, e, r) => {
283
+ }, _ = (t, e, r) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
271
284
  if (e.has(t))
272
285
  throw TypeError("Cannot add the same private member more than once");
273
286
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
274
- }, re = (t, e, r, s) => (_e(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), E, T, D, K;
275
- let j = class extends X {
276
- constructor(t) {
287
+ }, se = (t, e, r, s) => (Se(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), T, D, R, J;
288
+ let ee = class extends j {
289
+ constructor(...t) {
277
290
  var e, r, s, a, o, n;
278
- super(t), G(this, E, void 0), G(this, T, void 0), G(this, D, void 0), G(this, K, (y) => {
279
- const H = typeof y == "string" ? parseFloat(y) || this.min : y, ke = We(H, b(this, T), b(this, D));
291
+ super(...t), K(this, T, void 0), K(this, D, void 0), K(this, R, void 0), K(this, J, (b) => {
292
+ const Z = typeof b == "string" ? parseFloat(b) || this.min : b, ke = Fe(Z, _(this, D), _(this, R));
280
293
  return this.toFixed(ke);
281
- }), re(this, T, ((r = (e = this.store.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), re(this, D, ((a = (s = this.store.passport) == null ? void 0 : s.manager) == null ? void 0 : a.max) || 1), re(this, E, ((n = (o = this.store.passport) == null ? void 0 : o.manager) == null ? void 0 : n.step) || 0.01);
294
+ }), se(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), se(this, R, ((a = (s = this.firstStore.passport) == null ? void 0 : s.manager) == null ? void 0 : a.max) || 1), se(this, T, ((n = (o = this.firstStore.passport) == null ? void 0 : o.manager) == null ? void 0 : n.step) || 0.01);
282
295
  }
283
296
  get min() {
284
- return b(this, T);
297
+ return _(this, D);
285
298
  }
286
299
  get max() {
287
- return b(this, D);
300
+ return _(this, R);
288
301
  }
289
302
  get step() {
290
- return b(this, E);
303
+ return _(this, T);
291
304
  }
292
305
  toFixed(t) {
293
306
  var r;
294
- const e = ((r = b(this, E).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
307
+ const e = ((r = _(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
295
308
  return e ? +t.toFixed(e) : Math.ceil(t);
296
309
  }
297
310
  connectedCallback() {
298
- this.store.addMiddleware(b(this, K));
311
+ this.firstStore.addMiddleware(_(this, J));
299
312
  }
300
313
  disconnectedCallback() {
301
- this.store.removeMiddleware(b(this, K));
314
+ this.firstStore.removeMiddleware(_(this, J));
302
315
  }
303
316
  };
304
- E = /* @__PURE__ */ new WeakMap();
305
317
  T = /* @__PURE__ */ new WeakMap();
306
318
  D = /* @__PURE__ */ new WeakMap();
307
- K = /* @__PURE__ */ new WeakMap();
308
- j = st([
319
+ R = /* @__PURE__ */ new WeakMap();
320
+ J = /* @__PURE__ */ new WeakMap();
321
+ ee = it([
309
322
  p("e-tweaker-number-manager")
310
- ], j);
311
- var nt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, ot = (t, e, r, s) => {
312
- for (var a = s > 1 ? void 0 : s ? it(e, r) : e, o = t.length - 1, n; o >= 0; o--)
323
+ ], ee);
324
+ var ot = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ht = (t, e, r, s) => {
325
+ for (var a = s > 1 ? void 0 : s ? lt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
313
326
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
314
- return s && a && nt(e, r, a), a;
327
+ return s && a && ot(e, r, a), a;
315
328
  };
316
- const lt = g({
329
+ const ct = f({
317
330
  ":host": {
318
331
  width: "100%"
319
332
  },
@@ -351,22 +364,22 @@ const lt = g({
351
364
  background: "transparent"
352
365
  }
353
366
  });
354
- let le = class extends j {
355
- constructor(t) {
356
- super(t), this.addStylesheet(lt), this.appendContent(
357
- z({
367
+ let ce = class extends ee {
368
+ constructor(...t) {
369
+ super(...t), this.addStylesheet(ct), this.appendContent(
370
+ N({
358
371
  class: "range-input",
359
372
  attributes: {
360
373
  type: "range",
361
374
  min: this.min,
362
375
  max: this.max,
363
376
  step: this.step,
364
- value: this.store
377
+ value: this.firstStore
365
378
  },
366
379
  events: {
367
380
  input: (e) => {
368
- this.store.current = parseFloat(
369
- e.currentTarget.value
381
+ this.updateStores(
382
+ parseFloat(e.currentTarget.value)
370
383
  );
371
384
  }
372
385
  }
@@ -374,15 +387,15 @@ let le = class extends j {
374
387
  );
375
388
  }
376
389
  };
377
- le = ot([
390
+ ce = ht([
378
391
  p("e-tweaker-range-manager")
379
- ], le);
380
- var ct = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, dt = (t, e, r, s) => {
381
- for (var a = s > 1 ? void 0 : s ? ht(e, r) : e, o = t.length - 1, n; o >= 0; o--)
392
+ ], ce);
393
+ var dt = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, ut = (t, e, r, s) => {
394
+ for (var a = s > 1 ? void 0 : s ? pt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
382
395
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
383
- return s && a && ct(e, r, a), a;
396
+ return s && a && dt(e, r, a), a;
384
397
  };
385
- const pt = g({
398
+ const vt = f({
386
399
  "e-select": {
387
400
  width: "100%",
388
401
  "--arrow-color": i.colorLight.var
@@ -411,25 +424,25 @@ const pt = g({
411
424
  transform: "scaleY(-1)"
412
425
  }
413
426
  });
414
- let ce = class extends N {
415
- constructor(t) {
427
+ let de = class extends H {
428
+ constructor(...t) {
416
429
  var r, s;
417
- super(t), this.openShadow(pt);
418
- const e = ((s = (r = this.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
430
+ super(...t), this.openShadow(vt);
431
+ const e = ((s = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
419
432
  m(this, {
420
- shadowChildren: ee("e-select", {
433
+ shadowChildren: re("e-select", {
421
434
  attributes: {
422
- value: this.store
435
+ value: this.firstStore
423
436
  },
424
437
  events: {
425
438
  change: (a) => {
426
- this.store.current = a.currentTarget.value;
439
+ this.updateStores(a.currentTarget.value);
427
440
  }
428
441
  },
429
442
  children: [
430
- ee("e-select-head", {
443
+ re("e-select-head", {
431
444
  children: [
432
- Oe({
445
+ Pe({
433
446
  attributes: {
434
447
  "data-value-holder": ""
435
448
  }
@@ -437,7 +450,7 @@ let ce = class extends N {
437
450
  ]
438
451
  }),
439
452
  ...e.map(
440
- (a, o) => ee("e-select-option", {
453
+ (a, o) => re("e-select-option", {
441
454
  children: a,
442
455
  attributes: {
443
456
  default: o === 0 ? !0 : null
@@ -449,31 +462,31 @@ let ce = class extends N {
449
462
  });
450
463
  }
451
464
  };
452
- ce = dt([
465
+ de = ut([
453
466
  p("e-tweaker-select-manager")
454
- ], ce);
455
- const vt = {
456
- boolean: ne,
457
- color: ie,
458
- link: oe,
459
- number: j,
460
- range: le,
461
- select: ce,
462
- string: X
467
+ ], de);
468
+ const gt = {
469
+ boolean: oe,
470
+ color: le,
471
+ link: he,
472
+ number: ee,
473
+ range: ce,
474
+ select: de,
475
+ string: j
463
476
  };
464
- var ut = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, wt = (t, e, r, s) => {
465
- for (var a = s > 1 ? void 0 : s ? gt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
477
+ var ft = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, mt = (t, e, r, s) => {
478
+ for (var a = s > 1 ? void 0 : s ? wt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
466
479
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
467
- return s && a && ut(e, r, a), a;
480
+ return s && a && ft(e, r, a), a;
468
481
  }, ye = (t, e, r) => {
469
482
  if (!e.has(t))
470
483
  throw TypeError("Cannot " + r);
471
- }, c = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
484
+ }, h = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
472
485
  if (e.has(t))
473
486
  throw TypeError("Cannot add the same private member more than once");
474
487
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
475
- }, O = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), h, R, W, L, J, V;
476
- const ft = g({
488
+ }, k = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), u, W, L, F, A, V, Y;
489
+ const bt = f({
477
490
  ":host": {
478
491
  display: "grid",
479
492
  gridAutoFlow: "column",
@@ -518,50 +531,54 @@ const ft = g({
518
531
  height: "100%"
519
532
  }
520
533
  });
521
- let he = class extends ue {
534
+ let te = class extends ge {
522
535
  constructor(t) {
523
536
  var r, s, a, o;
524
- super(), C(this, h, null), C(this, R, void 0), C(this, W, void 0), C(this, L, !1), C(this, J, () => {
525
- x.current.includes(c(this, h)) || this.remove();
526
- }), C(this, V, (n) => {
527
- c(this, L) && ((n.metaKey || n.ctrlKey) && n.code === "KeyC" ? navigator.clipboard.writeText(c(this, h).current) : (n.metaKey || n.ctrlKey) && n.code === "KeyR" && (c(this, h).reset(), n.preventDefault()));
528
- }), O(this, h, t.store), O(this, R, c(this, h).passport.name), O(this, W, c(this, R).split(".").slice(-1).toString()), this.openShadow(ft);
529
- const e = ((s = (r = c(this, h).passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
530
- m(this, {
537
+ super(), C(this, u, []), C(this, W, void 0), C(this, L, void 0), C(this, F, !1), C(this, A, void 0), C(this, V, () => {
538
+ $.current.find((n) => h(this, u).includes(n)) || this.remove();
539
+ }), C(this, Y, (n) => {
540
+ h(this, F) && ((n.metaKey || n.ctrlKey) && n.code === "KeyC" ? navigator.clipboard.writeText(h(this, u)[0].current) : (n.metaKey || n.ctrlKey) && n.code === "KeyR" && (h(this, u).forEach((b) => {
541
+ b.reset();
542
+ }), n.preventDefault()));
543
+ }), k(this, u, [t.store]), k(this, W, t.store.passport.name), k(this, L, h(this, W).split(".").slice(-1).toString());
544
+ const e = ((s = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
545
+ k(this, A, new gt[e](h(this, u)[0])), this.openShadow(bt), m(this, {
531
546
  class: {
532
- disabled: ((o = (a = c(this, h).passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
547
+ disabled: ((o = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
533
548
  },
534
549
  events: {
535
550
  pointerleave: () => {
536
- O(this, L, !1);
551
+ k(this, F, !1);
537
552
  },
538
553
  pointerenter: () => {
539
- O(this, L, !0);
554
+ k(this, F, !0);
540
555
  }
541
556
  },
542
557
  shadowChildren: [
543
- f({
558
+ w({
544
559
  class: "head",
545
560
  children: [
546
- f({ class: "name", children: c(this, W) + ":" }),
547
- f({
561
+ w({ class: "name", children: h(this, L) + ":" }),
562
+ w({
548
563
  class: "head-buttons",
549
564
  children: [
550
- F({
565
+ I({
551
566
  class: "head-button",
552
- children: be,
567
+ children: _e,
553
568
  events: {
554
569
  click: () => {
555
- navigator.clipboard.writeText(c(this, h).current);
570
+ navigator.clipboard.writeText(h(this, u)[0].current);
556
571
  }
557
572
  }
558
573
  }),
559
- F({
574
+ I({
560
575
  class: "head-button",
561
- children: me,
576
+ children: be,
562
577
  events: {
563
578
  click: () => {
564
- c(this, h).reset();
579
+ h(this, u).forEach((n) => {
580
+ n.reset();
581
+ });
565
582
  }
566
583
  }
567
584
  })
@@ -569,48 +586,52 @@ let he = class extends ue {
569
586
  })
570
587
  ]
571
588
  }),
572
- new vt[e](c(this, h))
589
+ h(this, A)
573
590
  ]
574
591
  });
575
592
  }
576
593
  get key() {
577
- return c(this, R);
594
+ return h(this, W);
578
595
  }
579
596
  get name() {
580
- return c(this, W);
597
+ return h(this, L);
581
598
  }
582
- get store() {
583
- return c(this, h);
599
+ get stores() {
600
+ return h(this, u);
601
+ }
602
+ addStore(t) {
603
+ h(this, A).addStore(t);
584
604
  }
585
605
  connectedCallback() {
586
- x.subscribe(c(this, J)), addEventListener("keydown", c(this, V));
606
+ $.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), Le(this);
587
607
  }
588
608
  disconnectedCallback() {
589
- x.unsubscribe(c(this, J)), removeEventListener("keydown", c(this, V));
609
+ $.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
590
610
  }
591
611
  };
592
- h = /* @__PURE__ */ new WeakMap();
593
- R = /* @__PURE__ */ new WeakMap();
612
+ u = /* @__PURE__ */ new WeakMap();
594
613
  W = /* @__PURE__ */ new WeakMap();
595
614
  L = /* @__PURE__ */ new WeakMap();
596
- J = /* @__PURE__ */ new WeakMap();
615
+ F = /* @__PURE__ */ new WeakMap();
616
+ A = /* @__PURE__ */ new WeakMap();
597
617
  V = /* @__PURE__ */ new WeakMap();
598
- he = wt([
618
+ Y = /* @__PURE__ */ new WeakMap();
619
+ te = mt([
599
620
  p("e-tweaker-field")
600
- ], he);
601
- var mt = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, _t = (t, e, r, s) => {
602
- for (var a = s > 1 ? void 0 : s ? bt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
621
+ ], te);
622
+ var _t = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yt = (t, e, r, s) => {
623
+ for (var a = s > 1 ? void 0 : s ? St(e, r) : e, o = t.length - 1, n; o >= 0; o--)
603
624
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
604
- return s && a && mt(e, r, a), a;
625
+ return s && a && _t(e, r, a), a;
605
626
  }, Ce = (t, e, r) => {
606
627
  if (!e.has(t))
607
628
  throw TypeError("Cannot " + r);
608
- }, l = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), k = (t, e, r) => {
629
+ }, l = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
609
630
  if (e.has(t))
610
631
  throw TypeError("Cannot add the same private member more than once");
611
632
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
612
- }, ae = (t, e, r, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, B, d, Y, q, de;
613
- const yt = g({
633
+ }, ne = (t, e, r, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, B, c, q, Q, pe;
634
+ const Ct = f({
614
635
  ".wrapper": {
615
636
  boxSizing: "border-box",
616
637
  backgroundColor: "rgba(255, 255, 255, 0.1)",
@@ -654,44 +675,44 @@ const yt = g({
654
675
  transform: "scaleY(-1)"
655
676
  }
656
677
  });
657
- let A = class extends De {
678
+ let z = class extends Re {
658
679
  constructor(t) {
659
- super(), k(this, v, void 0), k(this, B, new se(null)), k(this, d, new se([])), k(this, Y, void 0), k(this, q, null), k(this, de, (e) => {
680
+ super(), x(this, v, void 0), x(this, B, new ie(null)), x(this, c, new ie([])), x(this, q, void 0), x(this, Q, null), x(this, pe, (e) => {
660
681
  let r = [], s = [];
661
682
  e.forEach((a) => {
662
683
  r = [...r, ...a.removedNodes], s = [...s, ...a.addedNodes];
663
- }), l(this, d).current = l(this, d).current.filter(
684
+ }), l(this, c).current = l(this, c).current.filter(
664
685
  (a) => !r.includes(a)
665
- ), l(this, v) && !l(this, d).current.length && !s.length && this.remove();
666
- }), this.openShadow(yt), ae(this, v, t.key), ae(this, Y, new MutationObserver(l(this, de))), m(this, {
686
+ ), l(this, v) && !l(this, c).current.length && !s.length && this.remove();
687
+ }), this.openShadow(Ct), ne(this, v, t.key), ne(this, q, new MutationObserver(l(this, pe))), m(this, {
667
688
  events: {
668
689
  "e-accordion-item-toggle": (e) => {
669
- e.stopPropagation(), e.detail.opened ? S.openPanel(l(this, v)) : S.closePanel(l(this, v));
690
+ e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
670
691
  }
671
692
  },
672
693
  shadowChildren: [
673
- f({
694
+ w({
674
695
  class: "wrapper",
675
696
  children: [
676
- f({
697
+ w({
677
698
  class: "head",
678
699
  children: [
679
- l(this, v) ? f({
700
+ l(this, v) ? w({
680
701
  class: "name",
681
702
  children: [l(this, v).split(".").slice(-1).toString()]
682
703
  }) : null,
683
704
  l(this, B),
684
- m(Re, {
705
+ m(We, {
685
706
  class: "arrow"
686
707
  })
687
708
  ]
688
709
  }),
689
- f({
710
+ w({
690
711
  class: "body",
691
- children: f({
712
+ children: w({
692
713
  class: "body-content",
693
- children: l(this, d),
694
- ref: (e) => ae(this, q, e.firstElementChild)
714
+ children: l(this, c),
715
+ ref: (e) => ne(this, Q, e.firstElementChild)
695
716
  })
696
717
  })
697
718
  ]
@@ -706,24 +727,24 @@ let A = class extends De {
706
727
  return l(this, B);
707
728
  }
708
729
  get content() {
709
- return l(this, d);
730
+ return l(this, c);
710
731
  }
711
732
  connectedCallback() {
712
733
  super.connectedCallback(), setTimeout(() => {
713
- S.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
714
- }, 50), l(this, Y).observe(l(this, q), {
734
+ P.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
735
+ }, 50), l(this, q).observe(l(this, Q), {
715
736
  childList: !0
716
737
  });
717
738
  }
718
739
  handleStore(t) {
719
740
  if (t.remainingFolders.length) {
720
- const r = t.store.passport.name.split("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, d).current.find((o) => o.key === s);
721
- a instanceof A ? a.handleStore({
741
+ const r = t.store.passport.name.split("."), s = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((o) => o.key === s);
742
+ a instanceof z ? a.handleStore({
722
743
  store: t.store,
723
744
  remainingFolders: t.remainingFolders.slice(1)
724
- }) : l(this, d).current = [
725
- ...l(this, d).current,
726
- new A({
745
+ }) : l(this, c).current = [
746
+ ...l(this, c).current,
747
+ new z({
727
748
  key: s,
728
749
  storeBox: {
729
750
  store: t.store,
@@ -731,37 +752,41 @@ let A = class extends De {
731
752
  }
732
753
  })
733
754
  ];
734
- } else
735
- l(this, d).current = [
736
- ...l(this, d).current,
737
- new he({
755
+ } else {
756
+ const e = l(this, c).current.find(
757
+ (r) => r.key === t.store.passport.name
758
+ );
759
+ e instanceof te ? e.addStore(t.store) : l(this, c).current = [
760
+ ...l(this, c).current,
761
+ new te({
738
762
  store: t.store
739
763
  })
740
764
  ];
765
+ }
741
766
  }
742
767
  };
743
768
  v = /* @__PURE__ */ new WeakMap();
744
769
  B = /* @__PURE__ */ new WeakMap();
745
- d = /* @__PURE__ */ new WeakMap();
746
- Y = /* @__PURE__ */ new WeakMap();
770
+ c = /* @__PURE__ */ new WeakMap();
747
771
  q = /* @__PURE__ */ new WeakMap();
748
- de = /* @__PURE__ */ new WeakMap();
749
- A = _t([
772
+ Q = /* @__PURE__ */ new WeakMap();
773
+ pe = /* @__PURE__ */ new WeakMap();
774
+ z = yt([
750
775
  p("e-tweaker-folder")
751
- ], A);
752
- var Ct = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, xt = (t, e, r, s) => {
753
- for (var a = s > 1 ? void 0 : s ? kt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
776
+ ], z);
777
+ var kt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, $t = (t, e, r, s) => {
778
+ for (var a = s > 1 ? void 0 : s ? xt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
754
779
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
755
- return s && a && Ct(e, r, a), a;
756
- }, St = (t, e, r) => {
780
+ return s && a && kt(e, r, a), a;
781
+ }, Pt = (t, e, r) => {
757
782
  if (!e.has(t))
758
783
  throw TypeError("Cannot " + r);
759
- }, we = (t, e, r) => (St(t, e, "read from private field"), r ? r.call(t) : e.get(t)), $t = (t, e, r) => {
784
+ }, we = (t, e, r) => (Pt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ot = (t, e, r) => {
760
785
  if (e.has(t))
761
786
  throw TypeError("Cannot add the same private member more than once");
762
787
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
763
- }, Q;
764
- const Pt = g({
788
+ }, U;
789
+ const Mt = f({
765
790
  ":host": {
766
791
  position: "absolute",
767
792
  top: i.tweakerOffset.var,
@@ -769,7 +794,8 @@ const Pt = g({
769
794
  width: i.tweakerWidth.var,
770
795
  backgroundColor: i.colorDark.var,
771
796
  borderRadius: i.borderRadius.var,
772
- transition: "opacity 0.2s"
797
+ transition: "opacity 0.2s",
798
+ zIndex: "100"
773
799
  },
774
800
  ":host(:hover)": {
775
801
  opacity: "1 !important"
@@ -811,7 +837,7 @@ const Pt = g({
811
837
  ":host .body-content::-webkit-scrollbar": {
812
838
  display: "none"
813
839
  },
814
- [`@media ${Te["<=mobile"]}`]: {
840
+ [`@media ${De["<=mobile"]}`]: {
815
841
  ":host": {
816
842
  position: "absolute",
817
843
  top: "0",
@@ -828,13 +854,13 @@ const Pt = g({
828
854
  }
829
855
  }
830
856
  });
831
- let pe = class extends A {
857
+ let ue = class extends z {
832
858
  constructor() {
833
859
  super({
834
860
  key: ""
835
- }), $t(this, Q, $e(() => {
836
- x.current.forEach((t) => {
837
- if (!(t instanceof Ee)) {
861
+ }), Ot(this, U, Ee(() => {
862
+ $.current.forEach((t) => {
863
+ if (!(t instanceof Te)) {
838
864
  const e = t.passport.name.split(".");
839
865
  this.handleStore({
840
866
  store: t,
@@ -842,8 +868,8 @@ let pe = class extends A {
842
868
  });
843
869
  }
844
870
  });
845
- }, 10)), this.addStylesheet(Pt), this.head.current = [
846
- f({
871
+ }, 10)), this.addStylesheet(Mt), this.head.current = [
872
+ w({
847
873
  class: "tweaker-buttons",
848
874
  events: {
849
875
  click: (t) => {
@@ -851,43 +877,43 @@ let pe = class extends A {
851
877
  }
852
878
  },
853
879
  children: [
854
- F({
880
+ I({
855
881
  class: "tweaker-button",
856
- children: me,
882
+ children: be,
857
883
  events: {
858
884
  click: () => {
859
- _.resetState();
885
+ S.resetState();
860
886
  }
861
887
  }
862
888
  }),
863
- F({
889
+ I({
864
890
  class: ["tweaker-button"],
865
- children: [be],
891
+ children: [_e],
866
892
  events: {
867
893
  click: () => {
868
894
  navigator.clipboard.writeText(
869
- JSON.stringify(_.getState())
895
+ JSON.stringify(S.getState())
870
896
  );
871
897
  }
872
898
  }
873
899
  }),
874
- F({
900
+ I({
875
901
  class: "tweaker-button",
876
- children: Le,
902
+ children: Ae,
877
903
  events: {
878
904
  click: () => {
879
- Se(
880
- _.projectName,
881
- _.getState()
905
+ Me(
906
+ S.projectName,
907
+ S.getState()
882
908
  );
883
909
  }
884
910
  }
885
911
  }),
886
- Me({
912
+ Oe({
887
913
  class: "tweaker-button",
888
914
  children: [
889
- Fe,
890
- z({
915
+ Ie,
916
+ N({
891
917
  attributes: {
892
918
  type: "file"
893
919
  },
@@ -903,9 +929,9 @@ let pe = class extends A {
903
929
  if (r) {
904
930
  const a = new FileReader();
905
931
  a.onload = (o) => {
906
- var y, H;
907
- const n = (H = (y = o.target) == null ? void 0 : y.result) == null ? void 0 : H.toString();
908
- n && _.loadState(n);
932
+ var b, Z;
933
+ const n = (Z = (b = o.target) == null ? void 0 : b.result) == null ? void 0 : Z.toString();
934
+ n && S.loadState(n);
909
935
  }, a.readAsText(r);
910
936
  }
911
937
  e.onchange = null;
@@ -926,57 +952,50 @@ let pe = class extends A {
926
952
  });
927
953
  }
928
954
  connectedCallback() {
929
- super.connectedCallback(), x.subscribe(we(this, Q));
955
+ super.connectedCallback(), $.subscribe(we(this, U));
930
956
  }
931
957
  disconnectedCallback() {
932
- super.disconnectedCallback(), x.unsubscribe(we(this, Q));
958
+ super.disconnectedCallback(), $.unsubscribe(we(this, U));
933
959
  }
934
960
  };
935
- Q = /* @__PURE__ */ new WeakMap();
936
- pe = xt([
961
+ U = /* @__PURE__ */ new WeakMap();
962
+ ue = $t([
937
963
  p("e-tweaker")
938
- ], pe);
939
- var Ot = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, Et = (t, e, r, s) => {
940
- for (var a = s > 1 ? void 0 : s ? Mt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
964
+ ], ue);
965
+ var Et = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, Dt = (t, e, r, s) => {
966
+ for (var a = s > 1 ? void 0 : s ? Tt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
941
967
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
942
- return s && a && Ot(e, r, a), a;
943
- }, Tt = (t, e, r) => {
968
+ return s && a && Et(e, r, a), a;
969
+ }, Rt = (t, e, r) => {
944
970
  if (!e.has(t))
945
971
  throw TypeError("Cannot " + r);
946
- }, fe = (t, e, r) => (Tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Dt = (t, e, r) => {
972
+ }, me = (t, e, r) => (Rt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Wt = (t, e, r) => {
947
973
  if (e.has(t))
948
974
  throw TypeError("Cannot add the same private member more than once");
949
975
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
950
- }, U;
951
- const Rt = g({
976
+ }, X;
977
+ const Lt = f({
952
978
  ":host": {
953
- fontFamily: "sans-serif",
954
- position: "fixed",
955
- top: "0",
956
- left: "0",
957
- zIndex: "1000",
958
- display: "block",
959
- width: "100%",
960
- height: "100%"
979
+ fontFamily: "sans-serif"
961
980
  }
962
981
  });
963
- let ve = class extends ue {
982
+ let ve = class extends ge {
964
983
  constructor() {
965
- super(), Dt(this, U, () => {
966
- S.save();
967
- }), this.openShadow(Rt), S.load(), m(this, {
968
- shadowChildren: [new pe()]
984
+ super(), Wt(this, X, () => {
985
+ P.save();
986
+ }), this.openShadow(Lt), P.load(), m(this, {
987
+ shadowChildren: [new ue()]
969
988
  });
970
989
  }
971
990
  connectedCallback() {
972
- window.addEventListener("beforeunload", fe(this, U));
991
+ window.addEventListener("beforeunload", me(this, X));
973
992
  }
974
993
  disconnectedCallback() {
975
- window.removeEventListener("beforeunload", fe(this, U)), S.save();
994
+ window.removeEventListener("beforeunload", me(this, X)), P.save();
976
995
  }
977
996
  };
978
- U = /* @__PURE__ */ new WeakMap();
979
- ve = Et([
997
+ X = /* @__PURE__ */ new WeakMap();
998
+ ve = Dt([
980
999
  p("e-studio")
981
1000
  ], ve);
982
1001
  xe && document.body.appendChild(new ve());