aptechka 0.1.5 → 0.1.6

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 (84) hide show
  1. package/lib/{Animated-CzBHCHNm.js → Animated-CJcYqJzq.js} +1 -1
  2. package/lib/{Animated-DZ_fbJmi.cjs → Animated-DyZuTEQE.cjs} +1 -1
  3. package/lib/{Damped--qBZAdEi.cjs → Damped-AHRBHNEQ.cjs} +1 -1
  4. package/lib/{Damped-Bm1kSn1f.js → Damped-Csj-9_gH.js} +1 -1
  5. package/lib/{Derived-BS2ja9qa.js → Derived-Bc88XJ8J.js} +1 -1
  6. package/lib/{Derived-CqmIkTGN.cjs → Derived-SjPdLJiZ.cjs} +1 -1
  7. package/lib/ElementConstructor-9f-12v7T.cjs +1 -0
  8. package/lib/ElementConstructor-CoKM2CTK.js +228 -0
  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 +1 -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 +3 -3
  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-BON7aJYs.js +10 -0
  27. package/lib/{createStylesheet-ChhZFwSX.cjs → createStylesheet-uicRVW05.cjs} +1 -1
  28. package/lib/device/index.cjs +1 -1
  29. package/lib/device/index.js +1 -1
  30. package/lib/element-constructor/ElementConstructor.d.ts +4 -2
  31. package/lib/element-constructor/htmlTags.d.ts +1 -1
  32. package/lib/element-constructor/index.cjs +1 -1
  33. package/lib/element-constructor/index.js +4 -4
  34. package/lib/en3/index.cjs +1 -1
  35. package/lib/en3/index.js +2 -2
  36. package/lib/{htmlTags-CNEFIHPp.js → htmlTags-BCNUG7oK.js} +1 -1
  37. package/lib/{htmlTags-CwYHVo9n.cjs → htmlTags-BSQys9wH.cjs} +1 -1
  38. package/lib/image/index.cjs +1 -1
  39. package/lib/image/index.js +1 -1
  40. package/lib/{index-DyJhLxk8.js → index-DgtdcBEI.js} +3 -3
  41. package/lib/{index-tPw9mmLF.cjs → index-i_Ki9M-w.cjs} +1 -1
  42. package/lib/jsx/ComponentElement.d.ts +17 -0
  43. package/lib/jsx/h.d.ts +5 -4
  44. package/lib/jsx/hooks.d.ts +10 -4
  45. package/lib/jsx/index.cjs +1 -1
  46. package/lib/jsx/index.js +97 -106
  47. package/lib/jsx/type.d.ts +6 -5
  48. package/lib/ladder/index.cjs +1 -1
  49. package/lib/ladder/index.js +1 -1
  50. package/lib/media/index.cjs +1 -1
  51. package/lib/media/index.js +1 -1
  52. package/lib/modal/index.cjs +1 -1
  53. package/lib/modal/index.js +3 -3
  54. package/lib/popover/index.cjs +1 -1
  55. package/lib/popover/index.js +1 -1
  56. package/lib/scroll/index.cjs +1 -1
  57. package/lib/scroll/index.js +6 -6
  58. package/lib/select/index.cjs +1 -1
  59. package/lib/select/index.js +1 -1
  60. package/lib/source/index.cjs +1 -1
  61. package/lib/source/index.js +2 -2
  62. package/lib/store/index.cjs +1 -1
  63. package/lib/store/index.js +3 -3
  64. package/lib/studio/index.cjs +3 -3
  65. package/lib/studio/index.js +307 -288
  66. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  67. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +1 -1
  68. package/lib/studio/tweaker/TweakerFieldElement.d.ts +2 -1
  69. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  70. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +1 -1
  71. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +1 -1
  72. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  73. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +5 -2
  74. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +1 -1
  75. package/lib/theme/index.cjs +1 -1
  76. package/lib/theme/index.js +2 -2
  77. package/lib/video/index.cjs +1 -1
  78. package/lib/video/index.js +1 -1
  79. package/package.json +1 -1
  80. package/lib/ElementConstructor-DB0xOoat.js +0 -199
  81. package/lib/ElementConstructor-v1FPLXAW.cjs +0 -1
  82. package/lib/Store-BOOfmlyv.cjs +0 -1
  83. package/lib/createStylesheet-74ZP3AZm.js +0 -8
  84. package/lib/jsx/ComponentWrapper.d.ts +0 -12
@@ -1,81 +1,93 @@
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 { e as m } from "../ElementConstructor-CoKM2CTK.js";
13
+ import { c as f } from "../createStylesheet-BON7aJYs.js";
14
+ import { s as S, S as ie, a as $ } from "../Store-JOKrNVEr.js";
15
+ import { c as $e } from "../file-lxi_oXJf.js";
16
+ import { d as Pe } from "../function-C10DGppn.js";
17
+ import { _ as N, a as Oe, aW as re, az as Me, C as w, p as I, a1 as Ee } from "../htmlTags-BCNUG7oK.js";
18
+ import { A as Te } from "../Animated-CJcYqJzq.js";
19
+ import { a as De } from "../Viewport-CXY5xcGJ.js";
20
+ import { AccordionElement as We } from "../accordion/index.js";
21
+ import { a as Re } from "../index-DgtdcBEI.js";
22
+ import { d as Le } from "../events-CoqmkUxo.js";
22
23
  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 {
24
+ import { c as Fe } from "../math-BOBiC4TN.js";
25
+ 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>';
26
+ var O, g;
27
+ class ze {
27
28
  constructor() {
28
- Z(this, $, "");
29
- Z(this, u, []);
30
- P(this, $, _.projectName + "-studio");
29
+ G(this, O, "");
30
+ G(this, g, []);
31
+ M(this, O, S.projectName + "-studio");
31
32
  }
32
33
  openPanel(e) {
33
- w(this, u).includes(e) || w(this, u).push(e);
34
+ d(this, g).includes(e) || d(this, g).push(e);
34
35
  }
35
36
  closePanel(e) {
36
- P(this, u, w(this, u).filter((r) => r !== e));
37
+ M(this, g, d(this, g).filter((r) => r !== e));
37
38
  }
38
39
  isPanelOpened(e) {
39
- return w(this, u).includes(e);
40
+ return d(this, g).includes(e);
40
41
  }
41
42
  save() {
42
43
  const e = {
43
- openedPanels: w(this, u)
44
+ openedPanels: d(this, g)
44
45
  };
45
- localStorage.setItem(w(this, $), JSON.stringify(e)), _.saveState();
46
+ localStorage.setItem(d(this, O), JSON.stringify(e)), S.saveState();
46
47
  }
47
48
  load() {
48
- _.loadState();
49
- const e = localStorage.getItem(w(this, $));
49
+ S.loadState();
50
+ const e = localStorage.getItem(d(this, O));
50
51
  if (e)
51
52
  try {
52
53
  const r = JSON.parse(e);
53
- r.openedPanels && P(this, u, r.openedPanels);
54
+ r.openedPanels && M(this, g, r.openedPanels);
54
55
  } catch (r) {
55
56
  console.error(r);
56
57
  }
57
58
  }
58
59
  }
59
- $ = new WeakMap(), u = new WeakMap();
60
- const S = new Ae();
61
- var I;
62
- class N extends ue {
63
- constructor(r) {
60
+ O = new WeakMap(), g = new WeakMap();
61
+ const P = new ze();
62
+ var y;
63
+ class H extends ge {
64
+ constructor(...r) {
64
65
  super();
65
- Z(this, I, void 0);
66
- P(this, I, r);
66
+ G(this, y, void 0);
67
+ M(this, y, r);
67
68
  }
68
- get store() {
69
- return w(this, I);
69
+ addStore(r) {
70
+ d(this, y).push(r);
71
+ }
72
+ get firstStore() {
73
+ return d(this, y)[0];
74
+ }
75
+ get stores() {
76
+ return d(this, y);
77
+ }
78
+ updateStores(r) {
79
+ d(this, y).forEach((s) => {
80
+ s.current = r;
81
+ });
70
82
  }
71
83
  }
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--)
84
+ y = new WeakMap();
85
+ var Ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ze = (t, e, r, s) => {
86
+ for (var a = s > 1 ? void 0 : s ? He(e, r) : e, o = t.length - 1, n; o >= 0; o--)
75
87
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
76
- return s && a && Ie(e, r, a), a;
88
+ return s && a && Ne(e, r, a), a;
77
89
  };
78
- const He = g({
90
+ const Ge = f({
79
91
  ":host": {
80
92
  width: "100%",
81
93
  display: "inline-flex",
@@ -91,21 +103,21 @@ const He = g({
91
103
  accentColor: i.colorLight.var
92
104
  }
93
105
  });
94
- let ne = class extends N {
95
- constructor(t) {
96
- super(t), this.openShadow(He), m(this, {
106
+ let oe = class extends H {
107
+ constructor(...t) {
108
+ super(...t), this.openShadow(Ge), m(this, {
97
109
  shadowChildren: [
98
- z({
110
+ N({
99
111
  attributes: {
100
112
  type: "checkbox"
101
113
  },
102
114
  events: {
103
115
  change: (e) => {
104
- this.store.current = e.currentTarget.checked;
116
+ this.updateStores(e.currentTarget.checked);
105
117
  }
106
118
  },
107
119
  ref: (e) => {
108
- this.store.subscribe((r) => {
120
+ this.firstStore.subscribe((r) => {
109
121
  e.checked = r.current;
110
122
  });
111
123
  }
@@ -114,15 +126,15 @@ let ne = class extends N {
114
126
  });
115
127
  }
116
128
  };
117
- ne = Ne([
129
+ oe = Ze([
118
130
  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--)
131
+ ], oe);
132
+ var Ke = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
133
+ for (var a = s > 1 ? void 0 : s ? Je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
122
134
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
123
- return s && a && Ze(e, r, a), a;
135
+ return s && a && Ke(e, r, a), a;
124
136
  };
125
- const Je = g({
137
+ const Ye = f({
126
138
  ":host": {
127
139
  width: "100%",
128
140
  display: "inline-flex",
@@ -145,18 +157,18 @@ const Je = g({
145
157
  height: `calc(${i.heightInput.var} * 0.93)`
146
158
  }
147
159
  });
148
- let ie = class extends N {
149
- constructor(t) {
150
- super(t), this.openShadow(Je), m(this, {
160
+ let le = class extends H {
161
+ constructor(...t) {
162
+ super(...t), this.openShadow(Ye), m(this, {
151
163
  shadowChildren: [
152
- z({
164
+ N({
153
165
  attributes: {
154
166
  type: "color",
155
- value: this.store
167
+ value: this.firstStore
156
168
  },
157
169
  events: {
158
170
  input: (e) => {
159
- this.store.current = e.currentTarget.value;
171
+ this.updateStores(e.currentTarget.value);
160
172
  }
161
173
  }
162
174
  })
@@ -164,51 +176,51 @@ let ie = class extends N {
164
176
  });
165
177
  }
166
178
  };
167
- ie = Ke([
179
+ le = Ve([
168
180
  p("e-tweaker-color-manager")
169
- ], ie);
170
- var Ve = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, Ye = (t, e, r, s) => {
181
+ ], le);
182
+ var qe = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, Qe = (t, e, r, s) => {
171
183
  for (var a = s > 1 ? void 0 : s ? Be(e, r) : e, o = t.length - 1, n; o >= 0; o--)
172
184
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
173
- return s && a && Ve(e, r, a), a;
185
+ return s && a && qe(e, r, a), a;
174
186
  };
175
- const qe = g({
187
+ const Ue = f({
176
188
  a: {
177
189
  color: "inherit"
178
190
  }
179
191
  });
180
- let oe = class extends N {
181
- constructor(t) {
192
+ let he = class extends H {
193
+ constructor(...t) {
182
194
  var e, r;
183
- super(t), this.openShadow(qe), m(this, {
195
+ super(...t), this.openShadow(Ue), m(this, {
184
196
  shadowChildren: [
185
- Pe({
197
+ Oe({
186
198
  attributes: {
187
- href: this.store,
188
- target: (r = (e = this.store.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
199
+ href: this.firstStore,
200
+ target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank"
189
201
  },
190
- children: this.store
202
+ children: this.firstStore
191
203
  })
192
204
  ]
193
205
  });
194
206
  }
195
207
  };
196
- oe = Ye([
208
+ he = Qe([
197
209
  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--)
210
+ ], he);
211
+ var Xe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, et = (t, e, r, s) => {
212
+ for (var a = s > 1 ? void 0 : s ? je(e, r) : e, o = t.length - 1, n; o >= 0; o--)
201
213
  (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) => {
214
+ return s && a && Xe(e, r, a), a;
215
+ }, tt = (t, e, r) => {
204
216
  if (!e.has(t))
205
217
  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) => {
218
+ }, ae = (t, e, r) => (tt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), rt = (t, e, r) => {
207
219
  if (e.has(t))
208
220
  throw TypeError("Cannot add the same private member more than once");
209
221
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
210
- }, M;
211
- const tt = g({
222
+ }, E;
223
+ const at = f({
212
224
  ":host": {
213
225
  width: "100%",
214
226
  display: "flex",
@@ -232,88 +244,90 @@ const tt = g({
232
244
  borderRadius: i.borderRadius.var
233
245
  }
234
246
  });
235
- let X = class extends N {
236
- constructor(t) {
237
- super(t), et(this, M, new se([])), this.openShadow(tt), m(this, {
247
+ let j = class extends H {
248
+ constructor(...t) {
249
+ super(...t), rt(this, E, new ie([])), this.openShadow(at), m(this, {
238
250
  shadowChildren: [
239
- z({
251
+ N({
240
252
  class: "text-input",
241
253
  attributes: {
242
254
  type: "string",
243
- value: this.store
255
+ value: this.firstStore
244
256
  },
245
257
  events: {
246
258
  change: (e) => {
247
- this.store.current = e.currentTarget.value;
259
+ this.updateStores(
260
+ e.currentTarget.value
261
+ );
248
262
  }
249
263
  }
250
264
  }),
251
- te(this, M)
265
+ ae(this, E)
252
266
  ]
253
267
  });
254
268
  }
255
269
  appendContent(t) {
256
- te(this, M).current = [...te(this, M).current, t];
270
+ ae(this, E).current = [...ae(this, E).current, t];
257
271
  }
258
272
  };
259
- M = /* @__PURE__ */ new WeakMap();
260
- X = Xe([
273
+ E = /* @__PURE__ */ new WeakMap();
274
+ j = et([
261
275
  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--)
276
+ ], j);
277
+ var st = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = (t, e, r, s) => {
278
+ for (var a = s > 1 ? void 0 : s ? nt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
265
279
  (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) => {
280
+ return s && a && st(e, r, a), a;
281
+ }, Se = (t, e, r) => {
268
282
  if (!e.has(t))
269
283
  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) => {
284
+ }, _ = (t, e, r) => (Se(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
271
285
  if (e.has(t))
272
286
  throw TypeError("Cannot add the same private member more than once");
273
287
  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) {
288
+ }, se = (t, e, r, s) => (Se(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), T, D, W, J;
289
+ let ee = class extends j {
290
+ constructor(...t) {
277
291
  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));
292
+ super(...t), K(this, T, void 0), K(this, D, void 0), K(this, W, void 0), K(this, J, (b) => {
293
+ const Z = typeof b == "string" ? parseFloat(b) || this.min : b, ke = Fe(Z, _(this, D), _(this, W));
280
294
  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);
295
+ }), se(this, D, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), se(this, W, ((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
296
  }
283
297
  get min() {
284
- return b(this, T);
298
+ return _(this, D);
285
299
  }
286
300
  get max() {
287
- return b(this, D);
301
+ return _(this, W);
288
302
  }
289
303
  get step() {
290
- return b(this, E);
304
+ return _(this, T);
291
305
  }
292
306
  toFixed(t) {
293
307
  var r;
294
- const e = ((r = b(this, E).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
308
+ const e = ((r = _(this, T).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
295
309
  return e ? +t.toFixed(e) : Math.ceil(t);
296
310
  }
297
311
  connectedCallback() {
298
- this.store.addMiddleware(b(this, K));
312
+ this.firstStore.addMiddleware(_(this, J));
299
313
  }
300
314
  disconnectedCallback() {
301
- this.store.removeMiddleware(b(this, K));
315
+ this.firstStore.removeMiddleware(_(this, J));
302
316
  }
303
317
  };
304
- E = /* @__PURE__ */ new WeakMap();
305
318
  T = /* @__PURE__ */ new WeakMap();
306
319
  D = /* @__PURE__ */ new WeakMap();
307
- K = /* @__PURE__ */ new WeakMap();
308
- j = st([
320
+ W = /* @__PURE__ */ new WeakMap();
321
+ J = /* @__PURE__ */ new WeakMap();
322
+ ee = it([
309
323
  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--)
324
+ ], ee);
325
+ var ot = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ht = (t, e, r, s) => {
326
+ for (var a = s > 1 ? void 0 : s ? lt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
313
327
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
314
- return s && a && nt(e, r, a), a;
328
+ return s && a && ot(e, r, a), a;
315
329
  };
316
- const lt = g({
330
+ const ct = f({
317
331
  ":host": {
318
332
  width: "100%"
319
333
  },
@@ -351,22 +365,22 @@ const lt = g({
351
365
  background: "transparent"
352
366
  }
353
367
  });
354
- let le = class extends j {
355
- constructor(t) {
356
- super(t), this.addStylesheet(lt), this.appendContent(
357
- z({
368
+ let ce = class extends ee {
369
+ constructor(...t) {
370
+ super(...t), this.addStylesheet(ct), this.appendContent(
371
+ N({
358
372
  class: "range-input",
359
373
  attributes: {
360
374
  type: "range",
361
375
  min: this.min,
362
376
  max: this.max,
363
377
  step: this.step,
364
- value: this.store
378
+ value: this.firstStore
365
379
  },
366
380
  events: {
367
381
  input: (e) => {
368
- this.store.current = parseFloat(
369
- e.currentTarget.value
382
+ this.updateStores(
383
+ parseFloat(e.currentTarget.value)
370
384
  );
371
385
  }
372
386
  }
@@ -374,15 +388,15 @@ let le = class extends j {
374
388
  );
375
389
  }
376
390
  };
377
- le = ot([
391
+ ce = ht([
378
392
  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--)
393
+ ], ce);
394
+ var dt = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, ut = (t, e, r, s) => {
395
+ for (var a = s > 1 ? void 0 : s ? pt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
382
396
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
383
- return s && a && ct(e, r, a), a;
397
+ return s && a && dt(e, r, a), a;
384
398
  };
385
- const pt = g({
399
+ const vt = f({
386
400
  "e-select": {
387
401
  width: "100%",
388
402
  "--arrow-color": i.colorLight.var
@@ -411,25 +425,25 @@ const pt = g({
411
425
  transform: "scaleY(-1)"
412
426
  }
413
427
  });
414
- let ce = class extends N {
415
- constructor(t) {
428
+ let de = class extends H {
429
+ constructor(...t) {
416
430
  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) || [];
431
+ super(...t), this.openShadow(vt);
432
+ const e = ((s = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : s.variants) || [];
419
433
  m(this, {
420
- shadowChildren: ee("e-select", {
434
+ shadowChildren: re("e-select", {
421
435
  attributes: {
422
- value: this.store
436
+ value: this.firstStore
423
437
  },
424
438
  events: {
425
439
  change: (a) => {
426
- this.store.current = a.currentTarget.value;
440
+ this.updateStores(a.currentTarget.value);
427
441
  }
428
442
  },
429
443
  children: [
430
- ee("e-select-head", {
444
+ re("e-select-head", {
431
445
  children: [
432
- Oe({
446
+ Me({
433
447
  attributes: {
434
448
  "data-value-holder": ""
435
449
  }
@@ -437,7 +451,7 @@ let ce = class extends N {
437
451
  ]
438
452
  }),
439
453
  ...e.map(
440
- (a, o) => ee("e-select-option", {
454
+ (a, o) => re("e-select-option", {
441
455
  children: a,
442
456
  attributes: {
443
457
  default: o === 0 ? !0 : null
@@ -449,31 +463,31 @@ let ce = class extends N {
449
463
  });
450
464
  }
451
465
  };
452
- ce = dt([
466
+ de = ut([
453
467
  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
468
+ ], de);
469
+ const gt = {
470
+ boolean: oe,
471
+ color: le,
472
+ link: he,
473
+ number: ee,
474
+ range: ce,
475
+ select: de,
476
+ string: j
463
477
  };
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--)
478
+ var ft = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, mt = (t, e, r, s) => {
479
+ for (var a = s > 1 ? void 0 : s ? wt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
466
480
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
467
- return s && a && ut(e, r, a), a;
481
+ return s && a && ft(e, r, a), a;
468
482
  }, ye = (t, e, r) => {
469
483
  if (!e.has(t))
470
484
  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) => {
485
+ }, h = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
472
486
  if (e.has(t))
473
487
  throw TypeError("Cannot add the same private member more than once");
474
488
  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({
489
+ }, k = (t, e, r, s) => (ye(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), u, R, L, F, A, V, Y;
490
+ const bt = f({
477
491
  ":host": {
478
492
  display: "grid",
479
493
  gridAutoFlow: "column",
@@ -518,50 +532,54 @@ const ft = g({
518
532
  height: "100%"
519
533
  }
520
534
  });
521
- let he = class extends ue {
535
+ let te = class extends ge {
522
536
  constructor(t) {
523
537
  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, {
538
+ super(), C(this, u, []), C(this, R, void 0), C(this, L, void 0), C(this, F, !1), C(this, A, void 0), C(this, V, () => {
539
+ $.current.find((n) => h(this, u).includes(n)) || this.remove();
540
+ }), C(this, Y, (n) => {
541
+ 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) => {
542
+ b.reset();
543
+ }), n.preventDefault()));
544
+ }), k(this, u, [t.store]), k(this, R, t.store.passport.name), k(this, L, h(this, R).split(".").slice(-1).toString());
545
+ const e = ((s = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : s.type) || "string";
546
+ k(this, A, new gt[e](h(this, u)[0])), this.openShadow(bt), m(this, {
531
547
  class: {
532
- disabled: ((o = (a = c(this, h).passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
548
+ disabled: ((o = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : o.disabled) || !1
533
549
  },
534
550
  events: {
535
551
  pointerleave: () => {
536
- O(this, L, !1);
552
+ k(this, F, !1);
537
553
  },
538
554
  pointerenter: () => {
539
- O(this, L, !0);
555
+ k(this, F, !0);
540
556
  }
541
557
  },
542
558
  shadowChildren: [
543
- f({
559
+ w({
544
560
  class: "head",
545
561
  children: [
546
- f({ class: "name", children: c(this, W) + ":" }),
547
- f({
562
+ w({ class: "name", children: h(this, L) + ":" }),
563
+ w({
548
564
  class: "head-buttons",
549
565
  children: [
550
- F({
566
+ I({
551
567
  class: "head-button",
552
- children: be,
568
+ children: _e,
553
569
  events: {
554
570
  click: () => {
555
- navigator.clipboard.writeText(c(this, h).current);
571
+ navigator.clipboard.writeText(h(this, u)[0].current);
556
572
  }
557
573
  }
558
574
  }),
559
- F({
575
+ I({
560
576
  class: "head-button",
561
- children: me,
577
+ children: be,
562
578
  events: {
563
579
  click: () => {
564
- c(this, h).reset();
580
+ h(this, u).forEach((n) => {
581
+ n.reset();
582
+ });
565
583
  }
566
584
  }
567
585
  })
@@ -569,48 +587,52 @@ let he = class extends ue {
569
587
  })
570
588
  ]
571
589
  }),
572
- new vt[e](c(this, h))
590
+ h(this, A)
573
591
  ]
574
592
  });
575
593
  }
576
594
  get key() {
577
- return c(this, R);
595
+ return h(this, R);
578
596
  }
579
597
  get name() {
580
- return c(this, W);
598
+ return h(this, L);
599
+ }
600
+ get stores() {
601
+ return h(this, u);
581
602
  }
582
- get store() {
583
- return c(this, h);
603
+ addStore(t) {
604
+ h(this, A).addStore(t);
584
605
  }
585
606
  connectedCallback() {
586
- x.subscribe(c(this, J)), addEventListener("keydown", c(this, V));
607
+ $.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), Le(this);
587
608
  }
588
609
  disconnectedCallback() {
589
- x.unsubscribe(c(this, J)), removeEventListener("keydown", c(this, V));
610
+ $.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
590
611
  }
591
612
  };
592
- h = /* @__PURE__ */ new WeakMap();
613
+ u = /* @__PURE__ */ new WeakMap();
593
614
  R = /* @__PURE__ */ new WeakMap();
594
- W = /* @__PURE__ */ new WeakMap();
595
615
  L = /* @__PURE__ */ new WeakMap();
596
- J = /* @__PURE__ */ new WeakMap();
616
+ F = /* @__PURE__ */ new WeakMap();
617
+ A = /* @__PURE__ */ new WeakMap();
597
618
  V = /* @__PURE__ */ new WeakMap();
598
- he = wt([
619
+ Y = /* @__PURE__ */ new WeakMap();
620
+ te = mt([
599
621
  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--)
622
+ ], te);
623
+ var _t = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yt = (t, e, r, s) => {
624
+ for (var a = s > 1 ? void 0 : s ? St(e, r) : e, o = t.length - 1, n; o >= 0; o--)
603
625
  (n = t[o]) && (a = (s ? n(e, r, a) : n(a)) || a);
604
- return s && a && mt(e, r, a), a;
626
+ return s && a && _t(e, r, a), a;
605
627
  }, Ce = (t, e, r) => {
606
628
  if (!e.has(t))
607
629
  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) => {
630
+ }, l = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
609
631
  if (e.has(t))
610
632
  throw TypeError("Cannot add the same private member more than once");
611
633
  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({
634
+ }, ne = (t, e, r, s) => (Ce(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r), v, q, c, B, Q, pe;
635
+ const Ct = f({
614
636
  ".wrapper": {
615
637
  boxSizing: "border-box",
616
638
  backgroundColor: "rgba(255, 255, 255, 0.1)",
@@ -654,44 +676,44 @@ const yt = g({
654
676
  transform: "scaleY(-1)"
655
677
  }
656
678
  });
657
- let A = class extends De {
679
+ let z = class extends We {
658
680
  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) => {
681
+ super(), x(this, v, void 0), x(this, q, new ie(null)), x(this, c, new ie([])), x(this, B, void 0), x(this, Q, null), x(this, pe, (e) => {
660
682
  let r = [], s = [];
661
683
  e.forEach((a) => {
662
684
  r = [...r, ...a.removedNodes], s = [...s, ...a.addedNodes];
663
- }), l(this, d).current = l(this, d).current.filter(
685
+ }), l(this, c).current = l(this, c).current.filter(
664
686
  (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, {
687
+ ), l(this, v) && !l(this, c).current.length && !s.length && this.remove();
688
+ }), this.openShadow(Ct), ne(this, v, t.key), ne(this, B, new MutationObserver(l(this, pe))), m(this, {
667
689
  events: {
668
690
  "e-accordion-item-toggle": (e) => {
669
- e.stopPropagation(), e.detail.opened ? S.openPanel(l(this, v)) : S.closePanel(l(this, v));
691
+ e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, v)) : P.closePanel(l(this, v));
670
692
  }
671
693
  },
672
694
  shadowChildren: [
673
- f({
695
+ w({
674
696
  class: "wrapper",
675
697
  children: [
676
- f({
698
+ w({
677
699
  class: "head",
678
700
  children: [
679
- l(this, v) ? f({
701
+ l(this, v) ? w({
680
702
  class: "name",
681
703
  children: [l(this, v).split(".").slice(-1).toString()]
682
704
  }) : null,
683
- l(this, B),
705
+ l(this, q),
684
706
  m(Re, {
685
707
  class: "arrow"
686
708
  })
687
709
  ]
688
710
  }),
689
- f({
711
+ w({
690
712
  class: "body",
691
- children: f({
713
+ children: w({
692
714
  class: "body-content",
693
- children: l(this, d),
694
- ref: (e) => ae(this, q, e.firstElementChild)
715
+ children: l(this, c),
716
+ ref: (e) => ne(this, Q, e.firstElementChild)
695
717
  })
696
718
  })
697
719
  ]
@@ -703,27 +725,27 @@ let A = class extends De {
703
725
  return l(this, v);
704
726
  }
705
727
  get head() {
706
- return l(this, B);
728
+ return l(this, q);
707
729
  }
708
730
  get content() {
709
- return l(this, d);
731
+ return l(this, c);
710
732
  }
711
733
  connectedCallback() {
712
734
  super.connectedCallback(), setTimeout(() => {
713
- S.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
714
- }, 50), l(this, Y).observe(l(this, q), {
735
+ P.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
736
+ }, 50), l(this, B).observe(l(this, Q), {
715
737
  childList: !0
716
738
  });
717
739
  }
718
740
  handleStore(t) {
719
741
  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({
742
+ 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);
743
+ a instanceof z ? a.handleStore({
722
744
  store: t.store,
723
745
  remainingFolders: t.remainingFolders.slice(1)
724
- }) : l(this, d).current = [
725
- ...l(this, d).current,
726
- new A({
746
+ }) : l(this, c).current = [
747
+ ...l(this, c).current,
748
+ new z({
727
749
  key: s,
728
750
  storeBox: {
729
751
  store: t.store,
@@ -731,37 +753,41 @@ let A = class extends De {
731
753
  }
732
754
  })
733
755
  ];
734
- } else
735
- l(this, d).current = [
736
- ...l(this, d).current,
737
- new he({
756
+ } else {
757
+ const e = l(this, c).current.find(
758
+ (r) => r.key === t.store.passport.name
759
+ );
760
+ e instanceof te ? e.addStore(t.store) : l(this, c).current = [
761
+ ...l(this, c).current,
762
+ new te({
738
763
  store: t.store
739
764
  })
740
765
  ];
766
+ }
741
767
  }
742
768
  };
743
769
  v = /* @__PURE__ */ new WeakMap();
744
- B = /* @__PURE__ */ new WeakMap();
745
- d = /* @__PURE__ */ new WeakMap();
746
- Y = /* @__PURE__ */ new WeakMap();
747
770
  q = /* @__PURE__ */ new WeakMap();
748
- de = /* @__PURE__ */ new WeakMap();
749
- A = _t([
771
+ c = /* @__PURE__ */ new WeakMap();
772
+ B = /* @__PURE__ */ new WeakMap();
773
+ Q = /* @__PURE__ */ new WeakMap();
774
+ pe = /* @__PURE__ */ new WeakMap();
775
+ z = yt([
750
776
  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--)
777
+ ], z);
778
+ var kt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, $t = (t, e, r, s) => {
779
+ for (var a = s > 1 ? void 0 : s ? xt(e, r) : e, o = t.length - 1, n; o >= 0; o--)
754
780
  (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) => {
781
+ return s && a && kt(e, r, a), a;
782
+ }, Pt = (t, e, r) => {
757
783
  if (!e.has(t))
758
784
  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) => {
785
+ }, we = (t, e, r) => (Pt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ot = (t, e, r) => {
760
786
  if (e.has(t))
761
787
  throw TypeError("Cannot add the same private member more than once");
762
788
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
763
- }, Q;
764
- const Pt = g({
789
+ }, U;
790
+ const Mt = f({
765
791
  ":host": {
766
792
  position: "absolute",
767
793
  top: i.tweakerOffset.var,
@@ -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, Pe(() => {
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
+ $e(
906
+ S.projectName,
907
+ S.getState()
882
908
  );
883
909
  }
884
910
  }
885
911
  }),
886
- Me({
912
+ Ee({
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
+ }, Wt = (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) => (Wt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Rt = (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(), Rt(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());