aptechka 0.5.42 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/lib/Animation-6Na1MCtM.cjs +1 -0
  2. package/lib/Animation-CELiTw3n.js +132 -0
  3. package/lib/Composed-DmLYTh1b.js +35 -0
  4. package/lib/Composed-Dx2hs-va.cjs +1 -0
  5. package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
  6. package/lib/Damped-loFiBsBy.cjs +1 -0
  7. package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
  8. package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
  9. package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
  10. package/lib/ElementConstructor-OYlPJf2L.js +366 -0
  11. package/lib/Resource-D3TQormz.cjs +1 -0
  12. package/lib/Resource-DIcoALGo.js +64 -0
  13. package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
  14. package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
  15. package/lib/Store-6s0YXK4o.cjs +1 -0
  16. package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
  17. package/lib/Tweened-B_mclQ61.cjs +1 -0
  18. package/lib/Tweened-NE8M9onF.js +48 -0
  19. package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
  20. package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
  21. package/lib/_createStore-Cf1MyeHa.cjs +1 -0
  22. package/lib/_createStore-Ck9bHolX.js +12 -0
  23. package/lib/accordion/AccordionElement.d.ts +5 -2
  24. package/lib/accordion/index.cjs +1 -1
  25. package/lib/accordion/index.js +141 -105
  26. package/lib/animation/Animation.d.ts +11 -19
  27. package/lib/animation/Damped.d.ts +4 -6
  28. package/lib/animation/Tweened.d.ts +2 -4
  29. package/lib/animation/index.cjs +1 -1
  30. package/lib/animation/index.js +3 -3
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.d.ts +1 -1
  33. package/lib/attribute/index.js +31 -31
  34. package/lib/canvas/index.cjs +1 -1
  35. package/lib/canvas/index.d.ts +1 -1
  36. package/lib/canvas/index.js +29 -29
  37. package/lib/checkbox/index.cjs +1 -1
  38. package/lib/checkbox/index.js +20 -20
  39. package/lib/class-linked-status/index.cjs +1 -1
  40. package/lib/class-linked-status/index.js +1 -1
  41. package/lib/controls/AutoplayControls.d.ts +1 -1
  42. package/lib/controls/DragControls.d.ts +1 -1
  43. package/lib/controls/WheelControls.d.ts +1 -1
  44. package/lib/controls/index.cjs +1 -1
  45. package/lib/controls/index.js +3 -3
  46. package/lib/counter/index.d.ts +8 -0
  47. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
  48. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
  49. package/lib/css-property/index.cjs +1 -1
  50. package/lib/css-property/index.d.ts +2 -1
  51. package/lib/css-property/index.js +36 -32
  52. package/lib/custom-element/index.d.ts +1 -4
  53. package/lib/dev/index.cjs +1 -1
  54. package/lib/dev/index.js +1 -1
  55. package/lib/device/index.cjs +1 -1
  56. package/lib/device/index.js +1 -1
  57. package/lib/element-constructor/ElementConstructor.d.ts +2 -2
  58. package/lib/element-constructor/index.cjs +1 -1
  59. package/lib/element-constructor/index.js +114 -113
  60. package/lib/en3/core/En3Raycaster.d.ts +20 -0
  61. package/lib/en3/core/En3View.d.ts +1 -1
  62. package/lib/en3/core/en3.d.ts +7 -3
  63. package/lib/en3/helpers/En3Controls.d.ts +5 -0
  64. package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
  65. package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
  66. package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
  67. package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
  68. package/lib/en3/helpers/index.cjs +1 -0
  69. package/lib/en3/helpers/index.d.ts +2 -0
  70. package/lib/en3/helpers/index.js +1165 -0
  71. package/lib/en3/index.cjs +1 -215
  72. package/lib/en3/index.d.ts +1 -19
  73. package/lib/en3/index.js +4 -4227
  74. package/lib/en3/libs/index.cjs +1 -0
  75. package/lib/en3/libs/index.d.ts +1 -0
  76. package/lib/en3/libs/index.js +201 -0
  77. package/lib/en3/loaders/_En3GLTFLoader.d.ts +12 -0
  78. package/lib/en3/loaders/_En3TextureLoader.d.ts +8 -0
  79. package/lib/en3/loaders/index.cjs +1 -0
  80. package/lib/en3/loaders/index.d.ts +3 -0
  81. package/lib/en3/loaders/index.js +1757 -0
  82. package/lib/en3/loaders/loaders.d.ts +13 -0
  83. package/lib/en3/misc/index.cjs +10 -0
  84. package/lib/en3/misc/index.d.ts +2 -0
  85. package/lib/en3/misc/index.js +115 -0
  86. package/lib/en3/objects/En3Clip.d.ts +1 -1
  87. package/lib/en3/objects/En3ClipHelpers.d.ts +1 -1
  88. package/lib/en3/objects/En3GLTF.d.ts +4 -3
  89. package/lib/en3/objects/En3Image.d.ts +1 -1
  90. package/lib/en3/objects/En3ImageLike.d.ts +3 -2
  91. package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
  92. package/lib/en3/objects/En3Video.d.ts +1 -1
  93. package/lib/en3/objects/fluid/Advection.d.ts +1 -1
  94. package/lib/en3/objects/fluid/Divergence.d.ts +1 -1
  95. package/lib/en3/objects/fluid/En3Fluid.d.ts +1 -1
  96. package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -1
  97. package/lib/en3/objects/fluid/ExternalForce.d.ts +1 -1
  98. package/lib/en3/objects/fluid/Poisson.d.ts +1 -1
  99. package/lib/en3/objects/fluid/Pressure.d.ts +1 -1
  100. package/lib/en3/objects/fluid/Simulation.d.ts +1 -1
  101. package/lib/en3/objects/fluid/Viscous.d.ts +1 -1
  102. package/lib/en3/objects/fluid/index.d.ts +0 -3
  103. package/lib/en3/objects/index.d.ts +7 -0
  104. package/lib/en3/utils/coverTexture.d.ts +1 -1
  105. package/lib/en3/utils/index.cjs +1 -0
  106. package/lib/en3/utils/index.d.ts +5 -0
  107. package/lib/en3/utils/index.js +43 -0
  108. package/lib/en3-C4mzaF6q.cjs +8 -0
  109. package/lib/en3-hbkN1OPu.js +343 -0
  110. package/lib/globals-DMjysUXI.js +8 -0
  111. package/lib/globals-bYKki-b9.cjs +1 -0
  112. package/lib/image/index.cjs +1 -1
  113. package/lib/image/index.js +1 -1
  114. package/lib/{index-BtsOv9u0.js → index-BAH_fO2N.js} +66 -66
  115. package/lib/index-D1LQUR-R.cjs +9 -0
  116. package/lib/instantiate-D19Uvc31.js +125 -0
  117. package/lib/instantiate-Db5gGSYG.cjs +1 -0
  118. package/lib/jsx/ComponentElement.d.ts +18 -0
  119. package/lib/jsx/globals.d.ts +13 -0
  120. package/lib/jsx/h.d.ts +7 -0
  121. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  122. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  123. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  124. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  125. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  126. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  127. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  128. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  129. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  130. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  131. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  132. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  133. package/lib/jsx/hooks/onElementResize.js +11 -0
  134. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  135. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  136. package/lib/jsx/hooks/onIntersection.js +11 -0
  137. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  138. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  139. package/lib/jsx/hooks/onWindowResize.js +8 -0
  140. package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
  141. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  142. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  143. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  144. package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
  145. package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
  146. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  147. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  148. package/lib/jsx/hooks/store/index.cjs +1 -0
  149. package/lib/jsx/hooks/store/index.d.ts +7 -0
  150. package/lib/jsx/hooks/store/index.js +49 -0
  151. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  152. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  153. package/lib/jsx/hooks/watchAttribute.js +17 -0
  154. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  155. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  156. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  157. package/lib/jsx/index.cjs +1 -0
  158. package/lib/jsx/index.d.ts +13 -0
  159. package/lib/jsx/index.js +91 -0
  160. package/lib/jsx/instantiate.d.ts +5 -0
  161. package/lib/jsx/register.d.ts +1 -0
  162. package/lib/jsx/render.d.ts +6 -0
  163. package/lib/jsx/type.d.ts +188 -0
  164. package/lib/ladder/index.cjs +1 -1
  165. package/lib/ladder/index.d.ts +2 -0
  166. package/lib/ladder/index.js +84 -66
  167. package/lib/layout-box/index.cjs +1 -1
  168. package/lib/layout-box/index.d.ts +11 -2
  169. package/lib/layout-box/index.js +190 -164
  170. package/lib/media/index.cjs +1 -1
  171. package/lib/media/index.js +1 -1
  172. package/lib/modal/index.cjs +1 -1
  173. package/lib/modal/index.js +16 -16
  174. package/lib/morph/Morph.d.ts +2 -2
  175. package/lib/morph/index.cjs +1 -1
  176. package/lib/morph/index.d.ts +1 -1
  177. package/lib/morph/index.js +135 -143
  178. package/lib/notifier/index.d.ts +2 -2
  179. package/lib/notifier/index.js +3 -1
  180. package/lib/onConnect-DGP866cj.cjs +1 -0
  181. package/lib/onConnect-y5DrxJ9P.js +7 -0
  182. package/lib/pointer/Pointer.d.ts +1 -1
  183. package/lib/pointer/PointerElement.d.ts +1 -1
  184. package/lib/pointer/index.cjs +1 -1
  185. package/lib/pointer/index.js +3 -3
  186. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  187. package/lib/polyfills-X6KXuHg-.js +33 -0
  188. package/lib/popover/PopoverButtonElement.d.ts +1 -1
  189. package/lib/popover/PopoverElement.d.ts +2 -2
  190. package/lib/popover/index.cjs +1 -1
  191. package/lib/popover/index.js +49 -49
  192. package/lib/router/Router.d.ts +11 -3
  193. package/lib/router/index.cjs +1 -1
  194. package/lib/router/index.d.ts +1 -1
  195. package/lib/router/index.js +185 -165
  196. package/lib/scroll/ScrollElement.d.ts +8 -25
  197. package/lib/scroll/ScrollSection.d.ts +23 -0
  198. package/lib/scroll/ScrollSegmentElement.d.ts +3 -3
  199. package/lib/scroll/ScrollUserElement.d.ts +1 -1
  200. package/lib/scroll/index.cjs +1 -1
  201. package/lib/scroll/index.js +87 -83
  202. package/lib/scroll-entries/index.d.ts +1 -1
  203. package/lib/select/SelectUserElement.d.ts +1 -1
  204. package/lib/select/index.cjs +1 -1
  205. package/lib/select/index.js +1 -1
  206. package/lib/sequence/index.cjs +1 -1
  207. package/lib/sequence/index.d.ts +1 -1
  208. package/lib/sequence/index.js +8 -8
  209. package/lib/slicer/SlicerElement.d.ts +2 -2
  210. package/lib/slicer/index.cjs +4 -4
  211. package/lib/slicer/index.js +31 -31
  212. package/lib/source/SourceElement.d.ts +2 -2
  213. package/lib/source/SourceManager.d.ts +1 -1
  214. package/lib/source/index.cjs +1 -1
  215. package/lib/source/index.js +2 -2
  216. package/lib/store/ArrayStore.d.ts +21 -0
  217. package/lib/store/Store.d.ts +1 -7
  218. package/lib/store/index.cjs +1 -1
  219. package/lib/store/index.d.ts +2 -2
  220. package/lib/store/index.js +65 -139
  221. package/lib/tags-BqJKcIve.js +485 -0
  222. package/lib/tags-ld5jemJw.cjs +1 -0
  223. package/lib/theme/index.cjs +1 -1
  224. package/lib/theme/index.js +2 -2
  225. package/lib/tweaker/TweakerBooleanManagerElement.d.ts +2 -2
  226. package/lib/tweaker/TweakerColorManagerElement.d.ts +2 -2
  227. package/lib/tweaker/TweakerElement.d.ts +1 -1
  228. package/lib/tweaker/TweakerFieldElement.d.ts +2 -2
  229. package/lib/tweaker/TweakerFolderElement.d.ts +5 -3
  230. package/lib/tweaker/TweakerLinkManagerElement.d.ts +2 -2
  231. package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
  232. package/lib/tweaker/TweakerSelectManagerElement.d.ts +2 -2
  233. package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
  234. package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
  235. package/lib/tweaker/index.cjs +3 -3
  236. package/lib/tweaker/index.js +535 -412
  237. package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
  238. package/lib/tweaker/tweakerStorage.d.ts +8 -1
  239. package/lib/url-C3dWnJQg.cjs +1 -0
  240. package/lib/url-DMNfW7uN.js +22 -0
  241. package/lib/utils/function.d.ts +2 -2
  242. package/lib/utils/index.cjs +1 -1
  243. package/lib/utils/index.d.ts +1 -0
  244. package/lib/utils/index.js +39 -34
  245. package/lib/utils/layout.d.ts +1 -1
  246. package/lib/utils/number.d.ts +1 -0
  247. package/lib/utils/url.d.ts +9 -0
  248. package/lib/video/index.cjs +1 -1
  249. package/lib/video/index.js +14 -14
  250. package/package.json +108 -12
  251. package/lib/Animation-DDHjrbtL.cjs +0 -1
  252. package/lib/Animation-Dq_05jlR.js +0 -217
  253. package/lib/Damped-l0mnlhar.cjs +0 -1
  254. package/lib/Store-C-1ruEIm.cjs +0 -1
  255. package/lib/Tweened-CwDC2zl8.js +0 -51
  256. package/lib/Tweened-DIt9j9B-.cjs +0 -1
  257. package/lib/animation/AnimationLink.d.ts +0 -13
  258. package/lib/en3/loaders/en3GLTFLoader.d.ts +0 -14
  259. package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
  260. package/lib/en3/test/En3HTML.d.ts +0 -10
  261. package/lib/index-Buf76Qoq.cjs +0 -9
  262. package/lib/polyfills-BA-CL_HF.js +0 -27
  263. package/lib/polyfills-DHs2SNbz.cjs +0 -1
  264. package/lib/resized/index.cjs +0 -1
  265. package/lib/resized/index.d.ts +0 -12
  266. package/lib/resized/index.js +0 -30
  267. package/lib/store/CumulativeResource.d.ts +0 -13
  268. package/lib/tags-CMPg9ETZ.js +0 -848
  269. package/lib/tags-Djb6mb1o.cjs +0 -1
  270. package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
  271. package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
  272. package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
  273. package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +2 -2
@@ -1,92 +1,103 @@
1
- var ve = (t, e, r) => {
1
+ var Ke = (t, e, r) => {
2
2
  if (!e.has(t))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var d = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), H = (t, e, r) => {
5
+ var d = (t, e, r) => (Ke(t, e, "read from private field"), r ? r.call(t) : e.get(t)), B = (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
- }, M = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
10
- import { i as xe } from "../browser-0zX67oeU.js";
11
- import { CustomElement as fe, define as f } from "../custom-element/index.js";
12
- import { s as y, S as ie, a as P } from "../Store-BQXXikps.js";
13
- import { c as ke } from "../file-lxi_oXJf.js";
14
- import { d as Ce } from "../function-C10DGppn.js";
15
- import { e as p, a0 as re, a as Pe, aB as $e, D as w, p as I, a3 as Oe } from "../tags-CMPg9ETZ.js";
16
- import { c as m } from "../createStylesheet-DBCEbDjI.js";
17
- import { a as Me } from "../Viewport-CFFhFKqX.js";
18
- import { aptechkaTheme as o } from "../theme/index.js";
19
- import { AccordionElement as Te } from "../accordion/index.js";
20
- import { a as Ee } from "../index-BtsOv9u0.js";
21
- import { d as Re } from "../events-_C2CztxR.js";
9
+ }, I = (t, e, r, i) => (Ke(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
10
+ import { i as rt } from "../browser-0zX67oeU.js";
11
+ import { CustomElement as Ge, define as C } from "../custom-element/index.js";
12
+ import { s as O, a as K, S as Ze } from "../Store-BI2xxXOA.js";
13
+ import { c as st } from "../file-lxi_oXJf.js";
14
+ import { d as it } from "../function-C10DGppn.js";
15
+ import { s as Je } from "../gestures-D2Fdra_G.js";
16
+ import { e as f, $ as xe, a as at, D as g, aA as nt, p as te, a2 as ot } from "../tags-BqJKcIve.js";
17
+ import { c as P } from "../createStylesheet-CR_yi5tp.js";
18
+ import { a as lt } from "../Viewport-D9IL7kUQ.js";
19
+ import { aptechkaTheme as h } from "../theme/index.js";
20
+ import { AccordionElement as ht } from "../accordion/index.js";
21
+ import { a as ct } from "../index-BAH_fO2N.js";
22
+ import { d as dt } from "../events-_C2CztxR.js";
22
23
  import "../checkbox/index.js";
23
- import { c as De } from "../math-BOBiC4TN.js";
24
- const we = '<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>', me = '<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>', We = '<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 O, g;
26
- class ze {
24
+ import { c as pt } from "../math-BOBiC4TN.js";
25
+ import { n as Ve, t as ut } from "../polyfills-X6KXuHg-.js";
26
+ import { elementResizer as He } from "../element-resizer/index.js";
27
+ 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>', Xe = '<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>', gt = '<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>', ft = '<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>';
28
+ var V, k, z;
29
+ class vt {
27
30
  constructor() {
28
- H(this, O, "");
29
- H(this, g, []);
30
- M(this, O, y.projectName + "-studio");
31
+ B(this, V, "");
32
+ B(this, k, []);
33
+ B(this, z, {});
34
+ I(this, V, O.projectName + "-studio");
31
35
  }
32
36
  openPanel(e) {
33
- d(this, g).includes(e) || d(this, g).push(e);
37
+ d(this, k).includes(e) || d(this, k).push(e);
34
38
  }
35
39
  closePanel(e) {
36
- M(this, g, d(this, g).filter((r) => r !== e));
40
+ I(this, k, d(this, k).filter((r) => r !== e));
37
41
  }
38
42
  isPanelOpened(e) {
39
- return d(this, g).includes(e);
43
+ return d(this, k).includes(e);
44
+ }
45
+ changedSizes(e) {
46
+ return d(this, z)[e];
47
+ }
48
+ changeSize(e, r) {
49
+ r ? d(this, z)[e] = r : delete d(this, z)[e];
40
50
  }
41
51
  save() {
42
52
  const e = {
43
- openedPanels: d(this, g)
53
+ openedPanels: d(this, k),
54
+ changedSizes: d(this, z)
44
55
  };
45
- localStorage.setItem(d(this, O), JSON.stringify(e)), y.saveState();
56
+ localStorage.setItem(d(this, V), JSON.stringify(e)), O.saveState();
46
57
  }
47
58
  load() {
48
- y.loadState();
49
- const e = localStorage.getItem(d(this, O));
59
+ O.loadState();
60
+ const e = localStorage.getItem(d(this, V));
50
61
  if (e)
51
62
  try {
52
63
  const r = JSON.parse(e);
53
- r.openedPanels && M(this, g, r.openedPanels);
64
+ r.openedPanels && I(this, k, r.openedPanels), r.changedSizes && I(this, z, r.changedSizes);
54
65
  } catch (r) {
55
66
  console.error(r);
56
67
  }
57
68
  }
58
69
  }
59
- O = new WeakMap(), g = new WeakMap();
60
- const $ = new ze();
61
- var S;
62
- class N extends fe {
70
+ V = new WeakMap(), k = new WeakMap(), z = new WeakMap();
71
+ const S = new vt();
72
+ var W;
73
+ class H extends Ge {
63
74
  constructor(...r) {
64
75
  super();
65
- H(this, S, void 0);
66
- M(this, S, r);
76
+ B(this, W, void 0);
77
+ I(this, W, r);
67
78
  }
68
79
  addStore(r) {
69
- d(this, S).push(r);
80
+ d(this, W).push(r);
70
81
  }
71
82
  get firstStore() {
72
- return d(this, S)[0];
83
+ return d(this, W)[0];
73
84
  }
74
85
  get stores() {
75
- return d(this, S);
86
+ return d(this, W);
76
87
  }
77
88
  updateStores(r) {
78
- d(this, S).forEach((n) => {
79
- n.current = r;
89
+ d(this, W).forEach((i) => {
90
+ i.current = r;
80
91
  });
81
92
  }
82
93
  }
83
- S = new WeakMap();
84
- var Ae = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, Le = (t, e, r, n) => {
85
- for (var a = n > 1 ? void 0 : n ? Ie(e, r) : e, i = t.length - 1, s; i >= 0; i--)
86
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
87
- return n && a && Ae(e, r, a), a;
94
+ W = new WeakMap();
95
+ var wt = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, bt = (t, e, r, i) => {
96
+ for (var s = i > 1 ? void 0 : i ? mt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
97
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
98
+ return i && s && wt(e, r, s), s;
88
99
  };
89
- const Ne = m({
100
+ const _t = P({
90
101
  ":host": {
91
102
  width: "100%",
92
103
  display: "inline-flex",
@@ -95,14 +106,14 @@ const Ne = m({
95
106
  "e-checkbox": {
96
107
  width: "var(--height-input)",
97
108
  height: "var(--height-input)",
98
- borderRadius: o.borderRadiusSmall.var
109
+ borderRadius: h.borderRadiusSmall.var
99
110
  }
100
111
  });
101
- let oe = class extends N {
112
+ let Ee = class extends H {
102
113
  constructor(...t) {
103
- super(...t), this.openShadow(Ne), p(this, {
114
+ super(...t), this.openShadow(_t), f(this, {
104
115
  children: [
105
- p("e-checkbox", {
116
+ f("e-checkbox", {
106
117
  onChange: (e) => {
107
118
  this.updateStores(e.currentTarget.checked);
108
119
  },
@@ -116,15 +127,15 @@ let oe = class extends N {
116
127
  });
117
128
  }
118
129
  };
119
- oe = Le([
120
- f("e-tweaker-boolean-manager")
121
- ], oe);
122
- var Ze = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ke = (t, e, r, n) => {
123
- for (var a = n > 1 ? void 0 : n ? He(e, r) : e, i = t.length - 1, s; i >= 0; i--)
124
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
125
- return n && a && Ze(e, r, a), a;
130
+ Ee = bt([
131
+ C("e-tweaker-boolean-manager")
132
+ ], Ee);
133
+ var yt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, kt = (t, e, r, i) => {
134
+ for (var s = i > 1 ? void 0 : i ? St(e, r) : e, n = t.length - 1, a; n >= 0; n--)
135
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
136
+ return i && s && yt(e, r, s), s;
126
137
  };
127
- const Ge = m({
138
+ const xt = P({
128
139
  ":host": {
129
140
  width: "100%",
130
141
  display: "inline-flex",
@@ -135,7 +146,7 @@ const Ge = m({
135
146
  height: "var(--height-input)",
136
147
  padding: "0",
137
148
  background: "none",
138
- borderRadius: o.borderRadius.var,
149
+ borderRadius: h.borderRadius.var,
139
150
  border: "none",
140
151
  blockSize: "unset"
141
152
  },
@@ -143,15 +154,15 @@ const Ge = m({
143
154
  boxSizing: "border-box",
144
155
  padding: "0px",
145
156
  border: "none",
146
- borderRadius: o.borderRadius.var,
157
+ borderRadius: h.borderRadius.var,
147
158
  height: "calc(var(--height-input) * 0.93)"
148
159
  }
149
160
  });
150
- let le = class extends N {
161
+ let Oe = class extends H {
151
162
  constructor(...t) {
152
- super(...t), this.openShadow(Ge), p(this, {
163
+ super(...t), this.openShadow(xt), f(this, {
153
164
  children: [
154
- re({
165
+ xe({
155
166
  type: "color",
156
167
  value: this.firstStore,
157
168
  onInput: (e) => {
@@ -162,25 +173,25 @@ let le = class extends N {
162
173
  });
163
174
  }
164
175
  };
165
- le = Ke([
166
- f("e-tweaker-color-manager")
167
- ], le);
168
- var Je = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, Ye = (t, e, r, n) => {
169
- for (var a = n > 1 ? void 0 : n ? Ve(e, r) : e, i = t.length - 1, s; i >= 0; i--)
170
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
171
- return n && a && Je(e, r, a), a;
176
+ Oe = kt([
177
+ C("e-tweaker-color-manager")
178
+ ], Oe);
179
+ var Ct = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, Mt = (t, e, r, i) => {
180
+ for (var s = i > 1 ? void 0 : i ? Pt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
181
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
182
+ return i && s && Ct(e, r, s), s;
172
183
  };
173
- const Be = m({
184
+ const $t = P({
174
185
  a: {
175
186
  color: "inherit"
176
187
  }
177
188
  });
178
- let he = class extends N {
189
+ let ze = class extends H {
179
190
  constructor(...t) {
180
191
  var e, r;
181
- super(...t), this.openShadow(Be), p(this, {
192
+ super(...t), this.openShadow($t), f(this, {
182
193
  children: [
183
- Pe({
194
+ at({
184
195
  href: this.firstStore,
185
196
  target: (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) != null && r.sameWindow ? "_self" : "_blank",
186
197
  children: this.firstStore
@@ -189,26 +200,32 @@ let he = class extends N {
189
200
  });
190
201
  }
191
202
  };
192
- he = Ye([
193
- f("e-tweaker-link-manager")
194
- ], he);
195
- var qe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Ue = (t, e, r, n) => {
196
- for (var a = n > 1 ? void 0 : n ? Qe(e, r) : e, i = t.length - 1, s; i >= 0; i--)
197
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
198
- return n && a && qe(e, r, a), a;
199
- }, Xe = (t, e, r) => {
203
+ ze = Mt([
204
+ C("e-tweaker-link-manager")
205
+ ], ze);
206
+ var Et = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, zt = (t, e, r, i) => {
207
+ for (var s = i > 1 ? void 0 : i ? Ot(e, r) : e, n = t.length - 1, a; n >= 0; n--)
208
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
209
+ return i && s && Et(e, r, s), s;
210
+ }, Ae = (t, e, r) => {
200
211
  if (!e.has(t))
201
212
  throw TypeError("Cannot " + r);
202
- }, ae = (t, e, r) => (Xe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), je = (t, e, r) => {
213
+ }, o = (t, e, r) => (Ae(t, e, "read from private field"), r ? r.call(t) : e.get(t)), p = (t, e, r) => {
203
214
  if (e.has(t))
204
215
  throw TypeError("Cannot add the same private member more than once");
205
216
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
206
- }, T;
207
- const et = m({
217
+ }, M = (t, e, r, i) => (Ae(t, e, "write to private field"), e.set(t, r), r), w = (t, e, r) => (Ae(t, e, "access private method"), r), L, re, Y, E, F, ne, oe, x, Z, le, he, R, N, ce, We, ye, Le, se, Se, de;
218
+ const Wt = P({
208
219
  ":host": {
209
220
  width: "100%",
210
221
  display: "flex",
211
- alignItems: "center"
222
+ alignItems: "center",
223
+ gap: "var(--gap-small)"
224
+ },
225
+ ".inputs-wrapper": {
226
+ display: "grid",
227
+ gap: "var(--gap-small)",
228
+ width: "100%"
212
229
  },
213
230
  input: {
214
231
  boxSizing: "border-box",
@@ -217,165 +234,186 @@ const et = m({
217
234
  fontFamily: "inherit",
218
235
  color: "inherit",
219
236
  border: "none",
220
- fontSize: "var(--font-size-small)"
221
- },
222
- ".text-input": {
223
- height: "var(--height-input)",
237
+ fontSize: "var(--font-size-small)",
224
238
  width: "100%",
239
+ height: "var(--height-input)",
225
240
  margin: "0",
226
241
  padding: "0 var(--gap-small)",
227
242
  backgroundColor: "rgba(255, 255, 255, 0.1)",
228
- borderRadius: o.borderRadius.var
243
+ borderRadius: h.borderRadius.var
244
+ },
245
+ ".drag": {
246
+ position: "relative",
247
+ width: "100%",
248
+ height: "calc(var(--height-input) * 0.2)",
249
+ display: "flex",
250
+ alignItems: "center"
251
+ },
252
+ ".drag::before": {
253
+ content: '""',
254
+ position: "absolute",
255
+ left: "0",
256
+ width: "100%",
257
+ zIndex: "-1",
258
+ height: "1px",
259
+ borderBottom: `1px solid ${h.colorFont.var}`,
260
+ transform: "translateY(-50%)",
261
+ opacity: "0.3"
262
+ },
263
+ ":host(.infinite) .drag::before": {
264
+ borderBottom: `1px dashed ${h.colorFont.var}`
265
+ },
266
+ ".drag-knob": {
267
+ "--size": "calc(var(--height-input) * 0.4)",
268
+ width: "var(--size)",
269
+ height: "var(--size)"
270
+ },
271
+ ".drag-knob-inner": {
272
+ width: "100%",
273
+ height: "100%",
274
+ backgroundColor: h.colorFont.var,
275
+ borderRadius: h.borderRadiusSmall.var,
276
+ transition: "opacity var(--duration-short)"
277
+ },
278
+ ":host(.infinite) .grabbing .drag-knob-inner": {
279
+ opacity: 0.3
229
280
  }
230
281
  });
231
- let j = class extends N {
282
+ let Te = class extends H {
232
283
  constructor(...t) {
233
- super(...t), je(this, T, new ie([])), this.openShadow(et), p(this, {
234
- children: [
235
- re({
236
- class: "text-input",
237
- type: "string",
238
- value: this.firstStore,
239
- onChange: (e) => {
240
- this.updateStores(
241
- e.currentTarget.value
242
- );
243
- }
244
- }),
245
- ae(this, T)
246
- ]
284
+ var e, r, i, s, n, a, T, j;
285
+ super(...t), p(this, R), p(this, ce), p(this, ye), p(this, se), p(this, L, []), p(this, re, []), p(this, Y, void 0), p(this, E, void 0), p(this, F, void 0), p(this, ne, void 0), p(this, oe, void 0), p(this, x, void 0), p(this, Z, !1), p(this, le, (G) => {
286
+ const m = w(this, R, N).call(this, G);
287
+ return m.map((u, J) => {
288
+ const Ce = typeof u == "string" ? parseFloat(u) || o(this, E) : u, b = pt(Ce, o(this, E), o(this, F)), Pe = ut(b, o(this, Y));
289
+ m[J] = Pe;
290
+ }), o(this, oe) === "number" ? m[0] : m;
291
+ }), p(this, he, () => {
292
+ w(this, R, N).call(this).map((G, m) => {
293
+ const u = o(this, L)[m];
294
+ u && (u.value = G.toString());
295
+ }), w(this, ce, We).call(this);
296
+ }), p(this, de, () => {
297
+ w(this, ce, We).call(this);
298
+ }), this.openShadow(Wt), M(this, E, Ve(
299
+ (r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min,
300
+ -1 / 0
301
+ )), M(this, F, Ve(
302
+ (s = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : s.max,
303
+ 1 / 0
304
+ )), M(this, Y, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.step) || 0.01), M(this, ne, ((j = (T = this.firstStore.passport) == null ? void 0 : T.manager) == null ? void 0 : j.ease) || 1), M(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), M(this, x, isFinite(o(this, F)) && isFinite(o(this, E))), f(this, {
305
+ class: o(this, x) ? "" : "infinite",
306
+ children: w(this, R, N).call(this).map((G, m) => g({
307
+ class: "inputs-wrapper",
308
+ children: [
309
+ xe({
310
+ type: "number",
311
+ step: o(this, Y),
312
+ min: o(this, E),
313
+ max: o(this, F),
314
+ ref: (u) => o(this, L).push(u),
315
+ value: G,
316
+ onChange: () => {
317
+ this.updateStores(
318
+ o(this, L).map((u) => parseFloat(u.value))
319
+ );
320
+ }
321
+ }),
322
+ g({
323
+ class: "drag",
324
+ children: [
325
+ g({
326
+ class: "drag-knob",
327
+ ref: (u) => o(this, re).push(u),
328
+ onPointerdown: (u) => {
329
+ u.preventDefault(), M(this, Z, !0);
330
+ const J = w(this, R, N).call(this), Ce = J[m], b = o(this, re)[m], Pe = o(this, L)[m];
331
+ if (b && Pe) {
332
+ const Me = b.parentElement, Qe = w(this, ye, Le).call(this);
333
+ Me.classList.add("grabbing"), Je(
334
+ ($e) => {
335
+ const Ne = $e.x - u.x, Ue = o(this, x) ? Me.offsetWidth / (Qe || 1) : 1, et = Ce + Ne / Ue * o(this, ne);
336
+ if (J[m] = et, !o(this, x)) {
337
+ const tt = w(this, se, Se).call(this, b, 0);
338
+ b.style.transform = `translateX(${tt + Ne}px)`;
339
+ }
340
+ this.updateStores([...J]);
341
+ },
342
+ () => {
343
+ if (M(this, Z, !1), !o(this, x)) {
344
+ const $e = w(this, se, Se).call(this, b, 0);
345
+ b.style.transition = "transform 0.1s", b.style.transform = `translateX(${$e}px)`, Me.classList.remove("grabbing"), setTimeout(() => {
346
+ b.style.transition = "";
347
+ }, 100);
348
+ }
349
+ }
350
+ );
351
+ }
352
+ },
353
+ children: g({
354
+ class: "drag-knob-inner"
355
+ })
356
+ })
357
+ ]
358
+ })
359
+ ]
360
+ }))
247
361
  });
248
362
  }
249
- appendContent(t) {
250
- ae(this, T).current = [...ae(this, T).current, t];
251
- }
252
- };
253
- T = /* @__PURE__ */ new WeakMap();
254
- j = Ue([
255
- f("e-tweaker-string-manager")
256
- ], j);
257
- var tt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, at = (t, e, r, n) => {
258
- for (var a = n > 1 ? void 0 : n ? rt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
259
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
260
- return n && a && tt(e, r, a), a;
261
- }, be = (t, e, r) => {
262
- if (!e.has(t))
263
- throw TypeError("Cannot " + r);
264
- }, _ = (t, e, r) => (be(t, e, "read from private field"), r ? r.call(t) : e.get(t)), K = (t, e, r) => {
265
- if (e.has(t))
266
- throw TypeError("Cannot add the same private member more than once");
267
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
268
- }, ne = (t, e, r, n) => (be(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), E, R, D, J;
269
- let ee = class extends j {
270
- constructor(...t) {
271
- var e, r, n, a, i, s;
272
- super(...t), K(this, E, void 0), K(this, R, void 0), K(this, D, void 0), K(this, J, (b) => {
273
- const Z = typeof b == "string" ? parseFloat(b) || this.min : b, Se = De(Z, _(this, R), _(this, D));
274
- return this.toFixed(Se);
275
- }), ne(this, R, ((r = (e = this.firstStore.passport) == null ? void 0 : e.manager) == null ? void 0 : r.min) || 0), ne(this, D, ((a = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : a.max) || 1), ne(this, E, ((s = (i = this.firstStore.passport) == null ? void 0 : i.manager) == null ? void 0 : s.step) || 0.01);
276
- }
277
- get min() {
278
- return _(this, R);
279
- }
280
- get max() {
281
- return _(this, D);
282
- }
283
- get step() {
284
- return _(this, E);
285
- }
286
- toFixed(t) {
287
- var r;
288
- const e = ((r = _(this, E).toString().split(".")[1]) == null ? void 0 : r.length) || 0;
289
- return e ? +t.toFixed(e) : Math.ceil(t);
290
- }
291
363
  connectedCallback() {
292
- this.firstStore.addMiddleware(_(this, J));
364
+ this.firstStore.addMiddleware(o(this, le)), this.firstStore.subscribe(o(this, he)), He.subscribe(this, o(this, de));
293
365
  }
294
366
  disconnectedCallback() {
295
- this.firstStore.removeMiddleware(_(this, J));
367
+ this.firstStore.removeMiddleware(o(this, le)), this.firstStore.unsubscribe(o(this, he)), He.unsubscribe(o(this, de));
296
368
  }
297
369
  };
370
+ L = /* @__PURE__ */ new WeakMap();
371
+ re = /* @__PURE__ */ new WeakMap();
372
+ Y = /* @__PURE__ */ new WeakMap();
298
373
  E = /* @__PURE__ */ new WeakMap();
299
- R = /* @__PURE__ */ new WeakMap();
300
- D = /* @__PURE__ */ new WeakMap();
301
- J = /* @__PURE__ */ new WeakMap();
302
- ee = at([
303
- f("e-tweaker-number-manager")
304
- ], ee);
305
- var nt = Object.defineProperty, st = Object.getOwnPropertyDescriptor, it = (t, e, r, n) => {
306
- for (var a = n > 1 ? void 0 : n ? st(e, r) : e, i = t.length - 1, s; i >= 0; i--)
307
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
308
- return n && a && nt(e, r, a), a;
374
+ F = /* @__PURE__ */ new WeakMap();
375
+ ne = /* @__PURE__ */ new WeakMap();
376
+ oe = /* @__PURE__ */ new WeakMap();
377
+ x = /* @__PURE__ */ new WeakMap();
378
+ Z = /* @__PURE__ */ new WeakMap();
379
+ le = /* @__PURE__ */ new WeakMap();
380
+ he = /* @__PURE__ */ new WeakMap();
381
+ R = /* @__PURE__ */ new WeakSet();
382
+ N = function(t = this.firstStore.current) {
383
+ return Array.isArray(t) ? t : [t];
309
384
  };
310
- const ot = m({
311
- ":host": {
312
- width: "100%"
313
- },
314
- ".text-input": {
315
- width: "60px",
316
- marginRight: "var(--gap-large)",
317
- textAlign: "center"
318
- },
319
- ".range-input": {
320
- boxSizing: "border-box",
321
- "-webkit-appearance": "none",
322
- height: "8px",
323
- width: "100%",
324
- margin: "0",
325
- padding: "0",
326
- backgroundColor: "rgba(255, 255, 255, 0.1)",
327
- borderRadius: o.borderRadius.var
328
- },
329
- ".range-input::-webkit-slider-thumb": {
330
- "-webkit-appearance": "none",
331
- height: "calc(var(--height-input) * 0.7)",
332
- width: o.borderRadius.var,
333
- borderRadius: o.borderRadius.var,
334
- backgroundColor: o.colorFont.var,
335
- transitionProperty: "background-color",
336
- transitionDuration: "var(--duration-short)"
337
- },
338
- ".range-input:focus::-webkit-slider-thumb": {
339
- backgroundColor: o.colorActive.var
340
- },
341
- ".range-input::-webkit-slider-runnable-track": {
342
- "-webkit-appearance": "none",
343
- "box-shadow": "none",
344
- border: "none",
345
- background: "transparent"
346
- }
347
- });
348
- let ce = class extends ee {
349
- constructor(...t) {
350
- super(...t), this.addStylesheet(ot), this.appendContent(
351
- re({
352
- class: "range-input",
353
- type: "range",
354
- min: this.min,
355
- max: this.max,
356
- step: this.step,
357
- value: this.firstStore,
358
- onInput: (e) => {
359
- this.updateStores(
360
- parseFloat(e.currentTarget.value)
361
- );
362
- }
363
- })
364
- );
365
- }
385
+ ce = /* @__PURE__ */ new WeakSet();
386
+ We = function() {
387
+ w(this, R, N).call(this).map((t, e) => {
388
+ const r = o(this, re)[e];
389
+ if (r && (!o(this, Z) || o(this, Z) && o(this, x))) {
390
+ const i = w(this, se, Se).call(this, r, t);
391
+ r.style.transform = `translateX(${i}px)`;
392
+ }
393
+ });
394
+ };
395
+ ye = /* @__PURE__ */ new WeakSet();
396
+ Le = function() {
397
+ return o(this, x) ? o(this, F) - o(this, E) : 0;
398
+ };
399
+ se = /* @__PURE__ */ new WeakSet();
400
+ Se = function(t, e) {
401
+ const r = t.parentElement, i = w(this, ye, Le).call(this), s = i ? e / i : 0.5;
402
+ return (r.offsetWidth - t.offsetWidth) * s;
366
403
  };
367
- ce = it([
368
- f("e-tweaker-range-manager")
369
- ], ce);
370
- var lt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, ct = (t, e, r, n) => {
371
- for (var a = n > 1 ? void 0 : n ? ht(e, r) : e, i = t.length - 1, s; i >= 0; i--)
372
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
373
- return n && a && lt(e, r, a), a;
404
+ de = /* @__PURE__ */ new WeakMap();
405
+ Te = zt([
406
+ C("e-tweaker-number-manager")
407
+ ], Te);
408
+ var Tt = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, Ft = (t, e, r, i) => {
409
+ for (var s = i > 1 ? void 0 : i ? Dt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
410
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
411
+ return i && s && Tt(e, r, s), s;
374
412
  };
375
- const dt = m({
413
+ const Rt = P({
376
414
  "e-select": {
377
415
  width: "100%",
378
- "--arrow-color": o.colorFont.var
416
+ "--arrow-color": h.colorFont.var
379
417
  },
380
418
  "e-select-head": {
381
419
  width: "100%",
@@ -388,12 +426,12 @@ const dt = m({
388
426
  transitionProperty: "color"
389
427
  },
390
428
  "e-select-option:hover": {
391
- color: o.colorActive.var
429
+ color: h.colorActive.var
392
430
  },
393
431
  svg: {
394
432
  width: "16px",
395
433
  height: "16px",
396
- fill: o.colorFont.var,
434
+ fill: h.colorFont.var,
397
435
  transitionProperty: "transform",
398
436
  transitionDuration: "var(--duration-short)"
399
437
  },
@@ -401,29 +439,29 @@ const dt = m({
401
439
  transform: "scaleY(-1)"
402
440
  }
403
441
  });
404
- let de = class extends N {
442
+ let De = class extends H {
405
443
  constructor(...t) {
406
- var r, n;
407
- super(...t), this.openShadow(dt);
408
- const e = ((n = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : n.variants) || [];
409
- p(this, {
410
- children: p("e-select", {
444
+ var r, i;
445
+ super(...t), this.openShadow(Rt);
446
+ const e = ((i = (r = this.firstStore.passport) == null ? void 0 : r.manager) == null ? void 0 : i.variants) || [];
447
+ f(this, {
448
+ children: f("e-select", {
411
449
  value: this.firstStore,
412
- onChange: (a) => {
413
- this.updateStores(a.currentTarget.value);
450
+ onChange: (s) => {
451
+ this.updateStores(s.currentTarget.value);
414
452
  },
415
453
  lightChildren: [
416
- p("e-select-head", {
454
+ f("e-select-head", {
417
455
  lightChildren: [
418
- $e({
456
+ nt({
419
457
  "data-value-holder": ""
420
458
  })
421
459
  ]
422
460
  }),
423
461
  ...e.map(
424
- (a, i) => p("e-select-option", {
425
- lightChildren: a,
426
- default: i === 0 ? !0 : null
462
+ (s, n) => f("e-select-option", {
463
+ lightChildren: s,
464
+ default: n === 0 ? !0 : null
427
465
  })
428
466
  )
429
467
  ]
@@ -431,37 +469,84 @@ let de = class extends N {
431
469
  });
432
470
  }
433
471
  };
434
- de = ct([
435
- f("e-tweaker-select-manager")
436
- ], de);
437
- const pt = {
438
- boolean: oe,
439
- color: le,
440
- link: he,
441
- number: ee,
442
- range: ce,
443
- select: de,
444
- string: j
472
+ De = Ft([
473
+ C("e-tweaker-select-manager")
474
+ ], De);
475
+ var It = Object.defineProperty, At = Object.getOwnPropertyDescriptor, Lt = (t, e, r, i) => {
476
+ for (var s = i > 1 ? void 0 : i ? At(e, r) : e, n = t.length - 1, a; n >= 0; n--)
477
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
478
+ return i && s && It(e, r, s), s;
479
+ };
480
+ const Nt = P({
481
+ ":host": {
482
+ width: "100%",
483
+ display: "flex",
484
+ alignItems: "center"
485
+ },
486
+ input: {
487
+ boxSizing: "border-box",
488
+ outline: "none",
489
+ fontVariantNumeric: "tabular-nums",
490
+ fontFamily: "inherit",
491
+ color: "inherit",
492
+ border: "none",
493
+ fontSize: "var(--font-size-small)",
494
+ height: "var(--height-input)",
495
+ width: "100%",
496
+ margin: "0",
497
+ padding: "0 var(--gap-small)",
498
+ backgroundColor: "rgba(255, 255, 255, 0.1)",
499
+ borderRadius: h.borderRadius.var
500
+ }
501
+ });
502
+ let Fe = class extends H {
503
+ constructor(...t) {
504
+ super(...t), this.openShadow(Nt), f(this, {
505
+ children: [
506
+ xe({
507
+ class: "text-input",
508
+ type: "string",
509
+ value: this.firstStore,
510
+ onChange: (e) => {
511
+ this.updateStores(
512
+ e.currentTarget.value
513
+ );
514
+ }
515
+ })
516
+ ]
517
+ });
518
+ }
519
+ };
520
+ Fe = Lt([
521
+ C("e-tweaker-string-manager")
522
+ ], Fe);
523
+ const Kt = {
524
+ boolean: Ee,
525
+ color: Oe,
526
+ link: ze,
527
+ number: Te,
528
+ select: De,
529
+ string: Fe
445
530
  };
446
- var ut = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, gt = (t, e, r, n) => {
447
- for (var a = n > 1 ? void 0 : n ? vt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
448
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
449
- return n && a && ut(e, r, a), a;
450
- }, _e = (t, e, r) => {
531
+ var Zt = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, Ht = (t, e, r, i) => {
532
+ for (var s = i > 1 ? void 0 : i ? Vt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
533
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
534
+ return i && s && Zt(e, r, s), s;
535
+ }, Ye = (t, e, r) => {
451
536
  if (!e.has(t))
452
537
  throw TypeError("Cannot " + r);
453
- }, h = (t, e, r) => (_e(t, e, "read from private field"), r ? r.call(t) : e.get(t)), x = (t, e, r) => {
538
+ }, c = (t, e, r) => (Ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), D = (t, e, r) => {
454
539
  if (e.has(t))
455
540
  throw TypeError("Cannot add the same private member more than once");
456
541
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
457
- }, k = (t, e, r, n) => (_e(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), u, W, F, z, A, V, Y;
458
- const ft = m({
542
+ }, A = (t, e, r, i) => (Ye(t, e, "write to private field"), e.set(t, r), r), _, q, Q, U, ee, pe, ue;
543
+ const jt = P({
459
544
  ":host": {
460
545
  display: "grid",
461
546
  gridAutoFlow: "column",
462
547
  gridTemplateColumns: "0.4fr 1fr",
463
548
  alignItems: "center",
464
- color: o.colorFont.var,
549
+ color: h.colorFont.var,
465
550
  gap: "var(--gap-medium)"
466
551
  },
467
552
  ":host(.disabled)": {
@@ -484,7 +569,7 @@ const ft = m({
484
569
  margin: "0",
485
570
  border: "none",
486
571
  background: "none",
487
- fill: o.colorFont.var,
572
+ fill: h.colorFont.var,
488
573
  transitionDuration: "var(--duration-short)",
489
574
  transitionProperty: "fill, opacity",
490
575
  opacity: "0"
@@ -493,55 +578,55 @@ const ft = m({
493
578
  opacity: "1"
494
579
  },
495
580
  ".head-button:hover": {
496
- fill: o.colorActive.var
581
+ fill: h.colorActive.var
497
582
  },
498
583
  ".head-button svg": {
499
584
  width: "100%",
500
585
  height: "100%"
501
586
  }
502
587
  });
503
- let te = class extends fe {
588
+ let ke = class extends Ge {
504
589
  constructor(t) {
505
- var r, n, a, i;
506
- super(), x(this, u, []), x(this, W, void 0), x(this, F, void 0), x(this, z, !1), x(this, A, void 0), x(this, V, () => {
507
- P.current.find((s) => h(this, u).includes(s)) || this.remove();
508
- }), x(this, Y, (s) => {
509
- h(this, z) && ((s.metaKey || s.ctrlKey) && s.code === "KeyC" ? navigator.clipboard.writeText(h(this, u)[0].current) : (s.metaKey || s.ctrlKey) && s.code === "KeyR" && (h(this, u).forEach((b) => {
510
- b.reset();
511
- }), s.preventDefault()));
512
- }), k(this, u, [t.store]), k(this, W, t.store.passport.name), k(this, F, h(this, W).split(".").slice(-1).toString());
513
- const e = ((n = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : n.type) || "string";
514
- k(this, A, new pt[e](h(this, u)[0])), this.openShadow(ft), p(this, {
590
+ var r, i, s, n;
591
+ super(), D(this, _, []), D(this, q, void 0), D(this, Q, void 0), D(this, U, !1), D(this, ee, void 0), D(this, pe, () => {
592
+ K.current.find((a) => c(this, _).includes(a)) || this.remove();
593
+ }), D(this, ue, (a) => {
594
+ c(this, U) && ((a.metaKey || a.ctrlKey) && a.code === "KeyC" ? navigator.clipboard.writeText(c(this, _)[0].current) : (a.metaKey || a.ctrlKey) && a.code === "KeyR" && (c(this, _).forEach((T) => {
595
+ T.reset();
596
+ }), a.preventDefault()));
597
+ }), A(this, _, [t.store]), A(this, q, t.store.passport.name), A(this, Q, c(this, q).split(".").slice(-1).toString());
598
+ const e = ((i = (r = t.store.passport) == null ? void 0 : r.manager) == null ? void 0 : i.type) || "string";
599
+ A(this, ee, new Kt[e](c(this, _)[0])), this.openShadow(jt), f(this, {
515
600
  class: {
516
- disabled: ((i = (a = t.store.passport) == null ? void 0 : a.manager) == null ? void 0 : i.disabled) || !1
601
+ disabled: ((n = (s = t.store.passport) == null ? void 0 : s.manager) == null ? void 0 : n.disabled) || !1
517
602
  },
518
603
  onPointerleave: () => {
519
- k(this, z, !1);
604
+ A(this, U, !1);
520
605
  },
521
606
  onPointerenter: () => {
522
- k(this, z, !0);
607
+ A(this, U, !0);
523
608
  },
524
609
  children: [
525
- w({
610
+ g({
526
611
  class: "head",
527
612
  children: [
528
- w({ class: "name", children: h(this, F) + ":" }),
529
- w({
613
+ g({ class: "name", children: c(this, Q) + ":" }),
614
+ g({
530
615
  class: "head-buttons",
531
616
  children: [
532
- I({
617
+ te({
533
618
  class: "head-button",
534
- children: me,
619
+ children: Xe,
535
620
  onClick: () => {
536
- navigator.clipboard.writeText(h(this, u)[0].current);
621
+ navigator.clipboard.writeText(c(this, _)[0].current);
537
622
  }
538
623
  }),
539
- I({
624
+ te({
540
625
  class: "head-button",
541
- children: we,
626
+ children: Be,
542
627
  onClick: () => {
543
- h(this, u).forEach((s) => {
544
- s.reset();
628
+ c(this, _).forEach((a) => {
629
+ a.reset();
545
630
  });
546
631
  }
547
632
  })
@@ -549,56 +634,56 @@ let te = class extends fe {
549
634
  })
550
635
  ]
551
636
  }),
552
- h(this, A)
637
+ c(this, ee)
553
638
  ]
554
639
  });
555
640
  }
556
641
  get key() {
557
- return h(this, W);
642
+ return c(this, q);
558
643
  }
559
644
  get name() {
560
- return h(this, F);
645
+ return c(this, Q);
561
646
  }
562
647
  get stores() {
563
- return h(this, u);
648
+ return c(this, _);
564
649
  }
565
650
  addStore(t) {
566
- h(this, A).addStore(t);
651
+ c(this, ee).addStore(t);
567
652
  }
568
653
  connectedCallback() {
569
- P.subscribe(h(this, V)), addEventListener("keydown", h(this, Y)), Re(this);
654
+ K.subscribe(c(this, pe)), addEventListener("keydown", c(this, ue)), dt(this);
570
655
  }
571
656
  disconnectedCallback() {
572
- P.unsubscribe(h(this, V)), removeEventListener("keydown", h(this, Y));
657
+ K.unsubscribe(c(this, pe)), removeEventListener("keydown", c(this, ue));
573
658
  }
574
659
  };
575
- u = /* @__PURE__ */ new WeakMap();
576
- W = /* @__PURE__ */ new WeakMap();
577
- F = /* @__PURE__ */ new WeakMap();
578
- z = /* @__PURE__ */ new WeakMap();
579
- A = /* @__PURE__ */ new WeakMap();
580
- V = /* @__PURE__ */ new WeakMap();
581
- Y = /* @__PURE__ */ new WeakMap();
582
- te = gt([
583
- f("e-tweaker-field")
584
- ], te);
585
- var wt = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, bt = (t, e, r, n) => {
586
- for (var a = n > 1 ? void 0 : n ? mt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
587
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
588
- return n && a && wt(e, r, a), a;
589
- }, ye = (t, e, r) => {
660
+ _ = /* @__PURE__ */ new WeakMap();
661
+ q = /* @__PURE__ */ new WeakMap();
662
+ Q = /* @__PURE__ */ new WeakMap();
663
+ U = /* @__PURE__ */ new WeakMap();
664
+ ee = /* @__PURE__ */ new WeakMap();
665
+ pe = /* @__PURE__ */ new WeakMap();
666
+ ue = /* @__PURE__ */ new WeakMap();
667
+ ke = Ht([
668
+ C("e-tweaker-field")
669
+ ], ke);
670
+ var Gt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Bt = (t, e, r, i) => {
671
+ for (var s = i > 1 ? void 0 : i ? Jt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
672
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
673
+ return i && s && Gt(e, r, s), s;
674
+ }, qe = (t, e, r) => {
590
675
  if (!e.has(t))
591
676
  throw TypeError("Cannot " + r);
592
- }, l = (t, e, r) => (ye(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => {
677
+ }, l = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), $ = (t, e, r) => {
593
678
  if (e.has(t))
594
679
  throw TypeError("Cannot add the same private member more than once");
595
680
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
596
- }, se = (t, e, r, n) => (ye(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), v, B, c, q, Q, pe;
597
- const _t = m({
681
+ }, X = (t, e, r, i) => (qe(t, e, "write to private field"), e.set(t, r), r), y, ge, v, fe, ve, we, me, Re;
682
+ const Xt = P({
598
683
  ".wrapper": {
599
684
  boxSizing: "border-box",
600
685
  backgroundColor: "rgba(255, 255, 255, 0.1)",
601
- borderRadius: o.borderRadius.var
686
+ borderRadius: h.borderRadius.var
602
687
  },
603
688
  ".head": {
604
689
  boxSizing: "border-box",
@@ -609,12 +694,12 @@ const _t = m({
609
694
  display: "flex",
610
695
  alignItems: "center",
611
696
  justifyContent: "space-between",
612
- backgroundColor: o.colorMainAux.var,
613
- borderRadius: o.borderRadius.var
697
+ backgroundColor: h.colorMainAux.var,
698
+ borderRadius: h.borderRadius.var
614
699
  },
615
700
  ".name": {
616
701
  fontSize: "var(--font-size-large)",
617
- color: o.colorFont.var
702
+ color: h.colorFont.var
618
703
  },
619
704
  ".body": {
620
705
  transitionProperty: "height",
@@ -631,49 +716,54 @@ const _t = m({
631
716
  ".arrow": {
632
717
  width: "20px",
633
718
  height: "20px",
634
- fill: o.colorFont.var,
719
+ fill: h.colorFont.var,
635
720
  transition: "transform var(--duration-short)"
636
721
  },
637
722
  ".opened .arrow": {
638
723
  transform: "scaleY(-1)"
639
724
  }
640
725
  });
641
- let L = class extends Te {
726
+ let ie = class extends ht {
642
727
  constructor(t) {
643
- super(), C(this, v, void 0), C(this, B, new ie(null)), C(this, c, new ie([])), C(this, q, void 0), C(this, Q, null), C(this, pe, (e) => {
644
- let r = [], n = [];
645
- e.forEach((a) => {
646
- r = [...r, ...a.removedNodes], n = [...n, ...a.addedNodes];
647
- }), l(this, c).current = l(this, c).current.filter(
648
- (a) => !r.includes(a)
649
- ), l(this, v) && !l(this, c).current.length && !n.length && this.remove();
650
- }), this.openShadow(_t), se(this, v, t.key), se(this, q, new MutationObserver(l(this, pe))), p(this, {
728
+ super(), $(this, y, void 0), $(this, ge, new Ze(null)), $(this, v, new Ze([])), $(this, fe, void 0), $(this, ve, null), $(this, we, null), $(this, me, null), $(this, Re, (e) => {
729
+ let r = [], i = [];
730
+ e.forEach((s) => {
731
+ r = [...r, ...s.removedNodes], i = [...i, ...s.addedNodes];
732
+ }), l(this, v).current = l(this, v).current.filter(
733
+ (s) => !r.includes(s)
734
+ ), l(this, y) && !l(this, v).current.length && !i.length && this.remove();
735
+ }), this.openShadow(Xt), X(this, y, t.key), X(this, fe, new MutationObserver(l(this, Re))), f(this, {
651
736
  onAccordionItemToggle: (e) => {
652
- e.stopPropagation(), e.detail.opened ? $.openPanel(l(this, v)) : $.closePanel(l(this, v));
737
+ e.stopPropagation(), e.detail.opened ? S.openPanel(l(this, y)) : S.closePanel(l(this, y));
653
738
  },
654
739
  children: [
655
- w({
740
+ g({
656
741
  class: "wrapper",
657
742
  children: [
658
- w({
743
+ g({
659
744
  class: "head",
660
745
  children: [
661
- l(this, v) ? w({
746
+ l(this, y) ? g({
662
747
  class: "name",
663
- children: [l(this, v).split(".").slice(-1).toString()]
748
+ children: [l(this, y).split(".").slice(-1).toString()]
664
749
  }) : null,
665
- l(this, B),
666
- p(Ee, {
750
+ l(this, ge),
751
+ f(ct, {
667
752
  class: "arrow"
668
753
  })
669
754
  ]
670
755
  }),
671
- w({
756
+ g({
672
757
  class: "body",
673
- children: w({
758
+ ref: (e) => {
759
+ X(this, ve, e);
760
+ },
761
+ children: g({
674
762
  class: "body-content",
675
- children: l(this, c),
676
- ref: (e) => se(this, Q, e.firstElementChild)
763
+ children: l(this, v),
764
+ ref: (e) => {
765
+ X(this, we, e), X(this, me, e.firstElementChild);
766
+ }
677
767
  })
678
768
  })
679
769
  ]
@@ -682,31 +772,37 @@ let L = class extends Te {
682
772
  }), t != null && t.storeBox && this.handleStore(t.storeBox);
683
773
  }
684
774
  get key() {
685
- return l(this, v);
775
+ return l(this, y);
686
776
  }
687
777
  get head() {
688
- return l(this, B);
778
+ return l(this, ge);
689
779
  }
690
780
  get content() {
691
- return l(this, c);
781
+ return l(this, v);
782
+ }
783
+ get bodyElement() {
784
+ return l(this, ve);
785
+ }
786
+ get contentElement() {
787
+ return l(this, we);
692
788
  }
693
789
  connectedCallback() {
694
790
  super.connectedCallback(), setTimeout(() => {
695
- $.isPanelOpened(l(this, v)) && this.openAll({ skipTransition: !0 });
696
- }, 50), l(this, q).observe(l(this, Q), {
791
+ S.isPanelOpened(l(this, y)) && this.openAll({ skipTransition: !0 });
792
+ }, 50), l(this, fe).observe(l(this, me), {
697
793
  childList: !0
698
794
  });
699
795
  }
700
796
  handleStore(t) {
701
797
  if (t.remainingFolders.length) {
702
- const r = t.store.passport.name.split("."), n = r.slice(0, r.length - t.remainingFolders.length).join("."), a = l(this, c).current.find((i) => i.key === n);
703
- a instanceof L ? a.handleStore({
798
+ const r = t.store.passport.name.split("."), i = r.slice(0, r.length - t.remainingFolders.length).join("."), s = l(this, v).current.find((n) => n.key === i);
799
+ s instanceof ie ? s.handleStore({
704
800
  store: t.store,
705
801
  remainingFolders: t.remainingFolders.slice(1)
706
- }) : l(this, c).current = [
707
- ...l(this, c).current,
708
- new L({
709
- key: n,
802
+ }) : l(this, v).current = [
803
+ ...l(this, v).current,
804
+ new ie({
805
+ key: i,
710
806
  storeBox: {
711
807
  store: t.store,
712
808
  remainingFolders: t.remainingFolders.slice(1)
@@ -714,40 +810,42 @@ let L = class extends Te {
714
810
  })
715
811
  ];
716
812
  } else {
717
- const e = l(this, c).current.find(
813
+ const e = l(this, v).current.find(
718
814
  (r) => r.key === t.store.passport.name
719
815
  );
720
- e instanceof te ? e.addStore(t.store) : l(this, c).current = [
721
- ...l(this, c).current,
722
- new te({
816
+ e instanceof ke ? e.addStore(t.store) : l(this, v).current = [
817
+ ...l(this, v).current,
818
+ new ke({
723
819
  store: t.store
724
820
  })
725
821
  ];
726
822
  }
727
823
  }
728
824
  };
825
+ y = /* @__PURE__ */ new WeakMap();
826
+ ge = /* @__PURE__ */ new WeakMap();
729
827
  v = /* @__PURE__ */ new WeakMap();
730
- B = /* @__PURE__ */ new WeakMap();
731
- c = /* @__PURE__ */ new WeakMap();
732
- q = /* @__PURE__ */ new WeakMap();
733
- Q = /* @__PURE__ */ new WeakMap();
734
- pe = /* @__PURE__ */ new WeakMap();
735
- L = bt([
736
- f("e-tweaker-folder")
737
- ], L);
738
- var yt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, xt = (t, e, r, n) => {
739
- for (var a = n > 1 ? void 0 : n ? St(e, r) : e, i = t.length - 1, s; i >= 0; i--)
740
- (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
741
- return n && a && yt(e, r, a), a;
742
- }, kt = (t, e, r) => {
828
+ fe = /* @__PURE__ */ new WeakMap();
829
+ ve = /* @__PURE__ */ new WeakMap();
830
+ we = /* @__PURE__ */ new WeakMap();
831
+ me = /* @__PURE__ */ new WeakMap();
832
+ Re = /* @__PURE__ */ new WeakMap();
833
+ ie = Bt([
834
+ C("e-tweaker-folder")
835
+ ], ie);
836
+ var Yt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Qt = (t, e, r, i) => {
837
+ for (var s = i > 1 ? void 0 : i ? qt(e, r) : e, n = t.length - 1, a; n >= 0; n--)
838
+ (a = t[n]) && (s = (i ? a(e, r, s) : a(s)) || s);
839
+ return i && s && Yt(e, r, s), s;
840
+ }, Ut = (t, e, r) => {
743
841
  if (!e.has(t))
744
842
  throw TypeError("Cannot " + r);
745
- }, G = (t, e, r) => (kt(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ge = (t, e, r) => {
843
+ }, ae = (t, e, r) => (Ut(t, e, "read from private field"), e.get(t)), je = (t, e, r) => {
746
844
  if (e.has(t))
747
845
  throw TypeError("Cannot add the same private member more than once");
748
846
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
749
- }, U, X;
750
- const Ct = m({
847
+ }, be, _e;
848
+ const er = P({
751
849
  ":host": {
752
850
  "--tweaker-width": "500px",
753
851
  "--tweaker-offset": "20px",
@@ -766,8 +864,8 @@ const Ct = m({
766
864
  top: "var(--tweaker-offset)",
767
865
  right: "var(--tweaker-offset)",
768
866
  width: "var(--tweaker-width)",
769
- backgroundColor: o.colorMain.var,
770
- borderRadius: o.borderRadius.var,
867
+ backgroundColor: h.colorMain.var,
868
+ borderRadius: h.borderRadius.var,
771
869
  transition: "opacity 0.2s",
772
870
  zIndex: "100",
773
871
  opacity: "0.1"
@@ -775,6 +873,15 @@ const Ct = m({
775
873
  ":host(:hover)": {
776
874
  opacity: "1 !important"
777
875
  },
876
+ ".resize": {
877
+ position: "absolute",
878
+ left: "0",
879
+ top: "0",
880
+ width: "calc(var(--tweaker-width) * 0.025)",
881
+ height: "100%",
882
+ zIndex: "1",
883
+ cursor: "ew-resize"
884
+ },
778
885
  ".tweaker-buttons": {
779
886
  display: "flex",
780
887
  alignItems: "center",
@@ -787,12 +894,12 @@ const Ct = m({
787
894
  margin: "0",
788
895
  background: "none",
789
896
  border: "none",
790
- fill: o.colorFont.var,
897
+ fill: h.colorFont.var,
791
898
  transitionProperty: "fill",
792
899
  transitionDuration: "var(--duration-short)"
793
900
  },
794
901
  ".tweaker-button:hover": {
795
- fill: o.colorActive.var
902
+ fill: h.colorActive.var
796
903
  },
797
904
  ".tweaker-button svg": {
798
905
  width: "100%",
@@ -813,12 +920,12 @@ const Ct = m({
813
920
  ":host .body-content::-webkit-scrollbar": {
814
921
  display: "none"
815
922
  },
816
- [`@media ${Me["<=mobile"]}`]: {
923
+ [`@media ${lt["<=mobile"]}`]: {
817
924
  ":host": {
818
925
  position: "absolute",
819
926
  top: "0",
820
927
  right: "0",
821
- width: "100%",
928
+ width: "100% !important",
822
929
  borderTopLeftRadius: "0",
823
930
  borderTopRightRadius: "0"
824
931
  },
@@ -830,14 +937,14 @@ const Ct = m({
830
937
  }
831
938
  }
832
939
  });
833
- let ue = class extends L {
940
+ let Ie = class extends ie {
834
941
  constructor() {
835
942
  super({
836
943
  key: ""
837
- }), ge(this, U, () => {
838
- $.save();
839
- }), ge(this, X, Ce(() => {
840
- P.current.forEach((t) => {
944
+ }), je(this, be, () => {
945
+ S.save();
946
+ }), je(this, _e, it(() => {
947
+ K.current.forEach((t) => {
841
948
  if (t.passport) {
842
949
  const e = t.passport.name.split(".");
843
950
  this.handleStore({
@@ -846,58 +953,58 @@ let ue = class extends L {
846
953
  });
847
954
  }
848
955
  });
849
- }, 10)), $.load(), this.addStylesheet(Ct), this.head.current = [
850
- w({
956
+ }, 10)), S.load(), this.addStylesheet(er), this.head.current = [
957
+ g({
851
958
  class: "tweaker-buttons",
852
959
  onClick: (t) => {
853
960
  t.stopPropagation();
854
961
  },
855
962
  children: [
856
- I({
963
+ te({
857
964
  class: "tweaker-button",
858
- children: we,
965
+ children: Be,
859
966
  onClick: () => {
860
- y.resetState();
967
+ O.resetState();
861
968
  }
862
969
  }),
863
- I({
970
+ te({
864
971
  class: ["tweaker-button"],
865
- children: [me],
972
+ children: [Xe],
866
973
  onClick: () => {
867
974
  navigator.clipboard.writeText(
868
- JSON.stringify(y.getState())
975
+ JSON.stringify(O.getState())
869
976
  );
870
977
  }
871
978
  }),
872
- I({
979
+ te({
873
980
  class: "tweaker-button",
874
- children: We,
981
+ children: gt,
875
982
  onClick: () => {
876
- ke(
877
- y.projectName,
878
- y.getState()
983
+ st(
984
+ O.projectName,
985
+ O.getState()
879
986
  );
880
987
  }
881
988
  }),
882
- Oe({
989
+ ot({
883
990
  class: "tweaker-button",
884
991
  children: [
885
- Fe,
886
- re({
992
+ ft,
993
+ xe({
887
994
  type: "file",
888
995
  style: {
889
996
  display: "none"
890
997
  },
891
998
  onChange: (t) => {
892
- var n;
893
- const r = (n = t.currentTarget.files) == null ? void 0 : n[0];
999
+ var i;
1000
+ const r = (i = t.currentTarget.files) == null ? void 0 : i[0];
894
1001
  if (r) {
895
- const a = new FileReader();
896
- a.onload = (i) => {
897
- var b, Z;
898
- const s = (Z = (b = i.target) == null ? void 0 : b.result) == null ? void 0 : Z.toString();
899
- s && y.loadState(s);
900
- }, a.readAsText(r);
1002
+ const s = new FileReader();
1003
+ s.onload = (n) => {
1004
+ var T, j;
1005
+ const a = (j = (T = n.target) == null ? void 0 : T.result) == null ? void 0 : j.toString();
1006
+ a && O.loadState(a);
1007
+ }, s.readAsText(r);
901
1008
  }
902
1009
  }
903
1010
  })
@@ -905,20 +1012,36 @@ let ue = class extends L {
905
1012
  })
906
1013
  ]
907
1014
  })
908
- ], this.addEventListener("accordionItemToggle", (t) => {
1015
+ ], f(this.bodyElement, {
1016
+ children: [
1017
+ g({
1018
+ class: "resize",
1019
+ onPointerdown: (t) => {
1020
+ const e = this.getBoundingClientRect();
1021
+ Je((r) => {
1022
+ const i = t.x - r.x, s = Math.max(400, e.width + i);
1023
+ this.style.width = s + "px", S.changeSize("tweaker", s);
1024
+ });
1025
+ },
1026
+ onDblclick: () => {
1027
+ this.style.width = "", S.changeSize("tweaker", null);
1028
+ }
1029
+ })
1030
+ ]
1031
+ }), this.addEventListener("accordionItemToggle", (t) => {
909
1032
  t.detail.opened ? this.style.opacity = "1" : this.style.opacity = "0.1";
910
1033
  });
911
1034
  }
912
1035
  connectedCallback() {
913
- super.connectedCallback(), window.addEventListener("beforeunload", G(this, U)), P.subscribe(G(this, X));
1036
+ super.connectedCallback(), window.addEventListener("beforeunload", ae(this, be)), K.subscribe(ae(this, _e)), S.changedSizes("tweaker") && (this.style.width = S.changedSizes("tweaker") + "px");
914
1037
  }
915
1038
  disconnectedCallback() {
916
- super.disconnectedCallback(), window.removeEventListener("beforeunload", G(this, U)), $.save(), P.unsubscribe(G(this, X));
1039
+ super.disconnectedCallback(), window.removeEventListener("beforeunload", ae(this, be)), S.save(), K.unsubscribe(ae(this, _e));
917
1040
  }
918
1041
  };
919
- U = /* @__PURE__ */ new WeakMap();
920
- X = /* @__PURE__ */ new WeakMap();
921
- ue = xt([
922
- f("e-tweaker")
923
- ], ue);
924
- xe && document.body.appendChild(new ue());
1042
+ be = /* @__PURE__ */ new WeakMap();
1043
+ _e = /* @__PURE__ */ new WeakMap();
1044
+ Ie = Qt([
1045
+ C("e-tweaker")
1046
+ ], Ie);
1047
+ rt && document.body.appendChild(new Ie());