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,102 +1,104 @@
1
- var F = (i, s, e) => {
2
- if (!s.has(i))
3
- throw TypeError("Cannot " + e);
1
+ var F = (i, e, s) => {
2
+ if (!e.has(i))
3
+ throw TypeError("Cannot " + s);
4
4
  };
5
- var t = (i, s, e) => (F(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => {
6
- if (s.has(i))
5
+ var t = (i, e, s) => (F(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
6
+ if (e.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- s instanceof WeakSet ? s.add(i) : s.set(i, e);
9
- }, r = (i, s, e, n) => (F(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e);
10
- var L = (i, s, e) => (F(i, s, "access private method"), e);
11
- import { cssUnitParser as St } from "../css-unit-parser/index.js";
8
+ e instanceof WeakSet ? e.add(i) : e.set(i, s);
9
+ }, r = (i, e, s, l) => (F(i, e, "write to private field"), l ? l.call(i, s) : e.set(i, s), s);
10
+ var O = (i, e, s) => (F(i, e, "access private method"), s);
11
+ import { cssUnitParser as dt } from "../css-unit-parser/index.js";
12
12
  import { Ladder as G } from "../ladder/index.js";
13
- import { RESIZE_ORDER as ft, TICK_ORDER as dt } from "../order/index.js";
13
+ import { RESIZE_ORDER as ft, TICK_ORDER as pt } from "../order/index.js";
14
14
  import { scrollEntries as J } from "../scroll-entries/index.js";
15
- import { ticker as tt } from "../ticker/index.js";
15
+ import { ticker as et } from "../ticker/index.js";
16
16
  import { i as st } from "../browser-0zX67oeU.js";
17
- import { g as et } from "../dom-0S_WDL4g.js";
18
- import { g as N, a as Q } from "../layout-HoBT_Da2.js";
19
- import { elementResizer as it } from "../element-resizer/index.js";
20
- import { windowResizer as ht } from "../window-resizer/index.js";
17
+ import { g as it } from "../dom-0S_WDL4g.js";
18
+ import { g as Q, a as j } from "../layout-HoBT_Da2.js";
19
+ import { elementResizer as ht } from "../element-resizer/index.js";
20
+ import { windowResizer as rt } from "../window-resizer/index.js";
21
+ import { Notifier as gt } from "../notifier/index.js";
21
22
  function mt(i) {
22
- const s = Math.sqrt(
23
+ const e = Math.sqrt(
23
24
  i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
24
- ), e = Math.sqrt(
25
+ ), s = Math.sqrt(
25
26
  i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
26
- ), n = Math.sqrt(
27
+ ), l = Math.sqrt(
27
28
  i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
28
- ), b = Math.atan2(i.m32, i.m33), V = Math.atan2(
29
+ ), b = Math.atan2(i.m32, i.m33), Z = Math.atan2(
29
30
  -i.m31,
30
31
  Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
31
- ), $ = Math.atan2(i.m21, i.m11), u = i.m41, P = i.m42 * -1, O = i.m43;
32
+ ), $ = Math.atan2(i.m21, i.m11), u = i.m41, P = i.m42 * -1, V = i.m43;
32
33
  return {
33
- scaleX: s,
34
- scaleY: e,
35
- scaleZ: n,
34
+ scaleX: e,
35
+ scaleY: s,
36
+ scaleZ: l,
36
37
  rotationX: b,
37
- rotationY: V,
38
+ rotationY: Z,
38
39
  rotationZ: $,
39
40
  translationX: u,
40
41
  translationY: P,
41
- translationZ: O
42
+ translationZ: V
42
43
  };
43
44
  }
44
- var c, g, z, v, A, X, R, C, W, q, y, M, Y, S, f, E, H, T, B, d, m, p, a, l, o, _, x, D, j, k, rt, I, nt, K, lt, w, U, Z;
45
- class Et {
46
- constructor(s, e) {
45
+ var a, m, z, R, A, L, _, v, W, q, y, x, X, S, d, w, Y, H, B, f, p, g, c, n, o, M, E, I, D, tt, k, nt, K, lt, N, ot, C, U, T;
46
+ class Vt {
47
+ constructor(e, s) {
47
48
  h(this, D);
48
49
  h(this, k);
49
- h(this, I);
50
50
  h(this, K);
51
- h(this, c, null);
52
- h(this, g, null);
51
+ h(this, N);
52
+ h(this, a, null);
53
+ h(this, m, null);
53
54
  h(this, z, []);
54
- h(this, v, "auto");
55
+ h(this, R, "auto");
55
56
  h(this, A, "top");
56
- h(this, X, !1);
57
- h(this, R, !0);
58
- h(this, C, !0);
57
+ h(this, L, !1);
58
+ h(this, _, !0);
59
+ h(this, v, !0);
59
60
  h(this, W, !0);
60
61
  h(this, q, !0);
61
62
  h(this, y, 0);
62
- h(this, M, 0);
63
- h(this, Y, 0);
63
+ h(this, x, 0);
64
+ h(this, X, 0);
64
65
  h(this, S, 0);
65
- h(this, f, 0);
66
- h(this, E, 0);
66
+ h(this, d, 0);
67
+ h(this, w, 0);
68
+ h(this, Y, 0);
67
69
  h(this, H, 0);
68
- h(this, T, 0);
69
70
  h(this, B, 0);
70
- h(this, d, { x: 0, y: 0, z: 0 });
71
- h(this, m, { x: 0, y: 0, z: 0 });
72
- h(this, p, { x: 1, y: 1, z: 1 });
73
- h(this, a, new G({ x: 0, y: 0, z: 0 }));
74
- h(this, l, new G({ x: 0, y: 0, z: 0 }));
71
+ h(this, f, { x: 0, y: 0, z: 0 });
72
+ h(this, p, { x: 0, y: 0, z: 0 });
73
+ h(this, g, { x: 1, y: 1, z: 1 });
74
+ h(this, c, new G({ x: 0, y: 0, z: 0 }));
75
+ h(this, n, new G({ x: 0, y: 0, z: 0 }));
75
76
  h(this, o, new G({ x: 0, y: 0, z: 0 }));
76
- h(this, _, { x: 0, y: 0, z: 0 });
77
- h(this, x, /* @__PURE__ */ new Map());
78
- h(this, w, () => {
79
- st && L(this, I, nt).call(this);
77
+ h(this, M, { x: 0, y: 0, z: 0 });
78
+ h(this, E, /* @__PURE__ */ new Map());
79
+ h(this, I, new gt());
80
+ h(this, C, () => {
81
+ st && O(this, K, lt).call(this);
80
82
  });
81
83
  h(this, U, () => {
82
- L(this, K, lt).call(this), L(this, D, j).call(this);
84
+ O(this, N, ot).call(this), O(this, D, tt).call(this);
83
85
  });
84
- h(this, Z, () => {
85
- const s = J.getAll(this.element);
86
- t(this, x).forEach((e, n) => {
87
- s.includes(n) || (this.deleteScrollStep(e), t(this, x).delete(n));
88
- }), s.forEach((e) => {
89
- if (!t(this, x).has(e)) {
90
- const n = () => e;
91
- t(this, x).set(e, n), this.setScrollStep(n);
86
+ h(this, T, () => {
87
+ const e = J.getAll(this.element);
88
+ t(this, E).forEach((s, l) => {
89
+ e.includes(l) || (this.deleteScrollStep(s), t(this, E).delete(l));
90
+ }), e.forEach((s) => {
91
+ if (!t(this, E).has(s)) {
92
+ const l = () => s;
93
+ t(this, E).set(s, l), this.setScrollStep(l);
92
94
  }
93
95
  });
94
96
  });
95
- st && (r(this, c, et(s) || document.body), r(this, g, et(e == null ? void 0 : e.containerElement) || document.body), r(this, v, (e == null ? void 0 : e.scrollAxis) || "auto"), r(this, A, (e == null ? void 0 : e.frontSide) || "top"), r(this, X, (e == null ? void 0 : e.cartesian) || !1), r(this, R, (e == null ? void 0 : e.sizeStep) !== void 0 ? e.sizeStep : !0), r(this, C, (e == null ? void 0 : e.positionStep) !== void 0 ? e.positionStep : !0), r(this, W, (e == null ? void 0 : e.transformStep) !== void 0 ? e.transformStep : !0), r(this, q, (e == null ? void 0 : e.scrollStep) !== void 0 ? e.scrollStep : !0), t(this, o).setStep("_size", "+", {
97
+ st && (r(this, a, it(e) || document.body), r(this, m, it(s == null ? void 0 : s.containerElement) || document.body), r(this, R, (s == null ? void 0 : s.scrollAxis) || "auto"), r(this, A, (s == null ? void 0 : s.frontSide) || "top"), r(this, L, (s == null ? void 0 : s.cartesian) || !1), r(this, _, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), r(this, v, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), r(this, W, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), r(this, q, (s == null ? void 0 : s.scrollStep) !== void 0 ? s.scrollStep : !0), t(this, o).setStep("_size", "+", {
96
98
  x: 1,
97
99
  y: 1,
98
100
  z: 1
99
- }), t(this, l).setStep("_position", "+", {
101
+ }), t(this, n).setStep("_position", "+", {
100
102
  x: 0,
101
103
  y: 0,
102
104
  z: 0
@@ -104,197 +106,221 @@ class Et {
104
106
  x: 1,
105
107
  y: 1,
106
108
  z: 1
107
- }), t(this, l).setStep("_translation", "+", {
109
+ }), t(this, n).setStep("_translation", "+", {
108
110
  x: 0,
109
111
  y: 0,
110
112
  z: 0
111
- }), t(this, a).setStep("_rotation", "+", {
113
+ }), t(this, c).setStep("_rotation", "+", {
112
114
  x: 0,
113
115
  y: 0,
114
116
  z: 0
115
- }), t(this, q) && (J.notifier.subscribe(t(this, Z)), t(this, Z).call(this)), it.subscribe(this.element, t(this, w)), ht.subscribe(t(this, w), ft.LAYOUT_BOX), tt.subscribe(t(this, U), {
116
- order: dt.LAYOUT_BOX,
117
- culling: e != null && e.culling ? this.element : void 0
117
+ }), t(this, q) && (J.notifier.subscribe(t(this, T)), t(this, T).call(this)), ht.subscribe(this.element, t(this, C)), rt.subscribe(t(this, C), ft.LAYOUT_BOX), et.subscribe(t(this, U), {
118
+ order: pt.LAYOUT_BOX,
119
+ culling: s != null && s.culling ? this.element : void 0
118
120
  }));
119
121
  }
120
122
  get element() {
121
- return t(this, c);
123
+ return t(this, a);
122
124
  }
123
125
  get containerElement() {
124
- return t(this, g);
126
+ return t(this, m);
125
127
  }
126
128
  get position() {
127
- return t(this, l).current;
129
+ return t(this, n).current;
128
130
  }
129
131
  get rotation() {
130
- return t(this, a).current;
132
+ return t(this, c).current;
131
133
  }
132
134
  get scale() {
133
135
  return t(this, o).current;
134
136
  }
135
137
  get scrollValue() {
136
- return t(this, _);
138
+ return t(this, M);
137
139
  }
138
140
  get left() {
139
- return t(this, f);
141
+ return t(this, d);
140
142
  }
141
143
  get top() {
142
144
  return t(this, S);
143
145
  }
144
146
  get CSSTranslation() {
145
- return t(this, d);
147
+ return t(this, f);
146
148
  }
147
149
  get CSSRotation() {
148
- return t(this, m);
150
+ return t(this, p);
149
151
  }
150
152
  get CSSScale() {
151
- return t(this, p);
153
+ return t(this, g);
152
154
  }
153
155
  get front() {
154
- return t(this, E);
156
+ return t(this, w);
155
157
  }
156
158
  get width() {
157
159
  return t(this, y);
158
160
  }
159
161
  get height() {
160
- return t(this, M);
162
+ return t(this, x);
161
163
  }
162
164
  get depth() {
163
- return t(this, Y);
165
+ return t(this, X);
164
166
  }
165
167
  destroy() {
166
- tt.unsubscribe(t(this, U)), it.unsubscribe(t(this, w)), ht.unsubscribe(t(this, w)), J.notifier.unsubscribe(t(this, Z)), t(this, x).clear(), t(this, l).close(), t(this, a).close(), t(this, o).close();
168
+ et.unsubscribe(t(this, U)), ht.unsubscribe(t(this, C)), rt.unsubscribe(t(this, C)), J.notifier.unsubscribe(t(this, T)), t(this, E).clear(), t(this, n).close(), t(this, c).close(), t(this, o).close();
167
169
  }
168
- bindObject(s) {
169
- s.position && t(this, l).bind(s.position), s.rotation && t(this, a).bind(s.rotation), s.scale && t(this, o).bind(s.scale);
170
+ bindObject(e) {
171
+ e.position && t(this, n).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, o).bind(e.scale);
170
172
  }
171
- unbindObject(s) {
172
- s.position && t(this, l).unbind(s.position), s.rotation && t(this, a).unbind(s.rotation), s.scale && t(this, o).unbind(s.scale);
173
+ unbindObject(e) {
174
+ e.position && t(this, n).unbind(e.position), e.rotation && t(this, c).unbind(e.rotation), e.scale && t(this, o).unbind(e.scale);
173
175
  }
174
- setScrollStep(s) {
175
- return t(this, z).includes(s) || t(this, z).push(s), () => this.deleteScrollStep(s);
176
+ setScrollStep(e) {
177
+ return t(this, z).includes(e) || t(this, z).push(e), () => this.deleteScrollStep(e);
176
178
  }
177
- deleteScrollStep(s) {
179
+ deleteScrollStep(e) {
178
180
  r(this, z, t(this, z).filter(
179
- (e) => e !== s
181
+ (s) => s !== e
180
182
  ));
181
183
  }
182
- setPositionStep(...s) {
183
- t(this, l).setStep(...s);
184
+ setPositionStep(...e) {
185
+ t(this, n).setStep(...e);
186
+ }
187
+ getPositionStep(...e) {
188
+ return t(this, n).getStepValue(...e);
189
+ }
190
+ setRotationStep(...e) {
191
+ t(this, c).setStep(...e);
192
+ }
193
+ getRotationStep(...e) {
194
+ return t(this, c).getStepValue(...e);
195
+ }
196
+ getExcludedRotationSteps(...e) {
197
+ return t(this, c).getExcludedStepsValue(...e);
184
198
  }
185
- getPositionStep(...s) {
186
- return t(this, l).getStepValue(...s);
199
+ getIncludedRotationSteps(...e) {
200
+ return t(this, c).getIncludedStepsValue(...e);
187
201
  }
188
- setRotationStep(...s) {
189
- t(this, a).setStep(...s);
202
+ setScaleStep(...e) {
203
+ t(this, o).setStep(...e);
190
204
  }
191
- getRotationStep(...s) {
192
- return t(this, a).getStepValue(...s);
205
+ getScaleStep(...e) {
206
+ return t(this, o).getStepValue(...e);
193
207
  }
194
- setScaleStep(...s) {
195
- t(this, o).setStep(...s);
208
+ getExcludedScaleSteps(...e) {
209
+ return t(this, o).getExcludedStepsValue(...e);
196
210
  }
197
- getScaleStep(...s) {
198
- return t(this, o).getStepValue(...s);
211
+ getIncludedScaleSteps(...e) {
212
+ return t(this, o).getIncludedStepsValue(...e);
199
213
  }
200
- deletePositionStep(...s) {
201
- t(this, l).deleteStep(...s);
214
+ deletePositionStep(...e) {
215
+ t(this, n).deleteStep(...e);
202
216
  }
203
- deleteRotationStep(...s) {
204
- t(this, a).deleteStep(...s);
217
+ getExcludedPositionSteps(...e) {
218
+ return t(this, n).getExcludedStepsValue(...e);
205
219
  }
206
- deleteScaleStep(...s) {
207
- t(this, o).deleteStep(...s);
220
+ getIncludedPositionSteps(...e) {
221
+ return t(this, n).getIncludedStepsValue(...e);
208
222
  }
209
- onPosition(...s) {
210
- return t(this, l).subscribe(...s);
223
+ deleteRotationStep(...e) {
224
+ t(this, c).deleteStep(...e);
211
225
  }
212
- offPosition(...s) {
213
- t(this, l).unsubscribe(...s);
226
+ deleteScaleStep(...e) {
227
+ t(this, o).deleteStep(...e);
214
228
  }
215
- onScale(...s) {
216
- return t(this, o).subscribe(...s);
229
+ onPosition(...e) {
230
+ return t(this, n).subscribe(...e);
217
231
  }
218
- offScale(...s) {
219
- t(this, o).unsubscribe(...s);
232
+ offPosition(...e) {
233
+ t(this, n).unsubscribe(...e);
220
234
  }
221
- onRotation(...s) {
222
- return t(this, a).subscribe(...s);
235
+ onScale(...e) {
236
+ return t(this, o).subscribe(...e);
223
237
  }
224
- offRotation(...s) {
225
- t(this, a).unsubscribe(...s);
238
+ offScale(...e) {
239
+ t(this, o).unsubscribe(...e);
240
+ }
241
+ onRotation(...e) {
242
+ return t(this, c).subscribe(...e);
243
+ }
244
+ offRotation(...e) {
245
+ t(this, c).unsubscribe(...e);
246
+ }
247
+ onResize(...e) {
248
+ return t(this, I).subscribe(...e);
249
+ }
250
+ offResize(...e) {
251
+ return t(this, I).unsubscribe(...e);
226
252
  }
227
253
  }
228
- c = new WeakMap(), g = new WeakMap(), z = new WeakMap(), v = new WeakMap(), A = new WeakMap(), X = new WeakMap(), R = new WeakMap(), C = new WeakMap(), W = new WeakMap(), q = new WeakMap(), y = new WeakMap(), M = new WeakMap(), Y = new WeakMap(), S = new WeakMap(), f = new WeakMap(), E = new WeakMap(), H = new WeakMap(), T = new WeakMap(), B = new WeakMap(), d = new WeakMap(), m = new WeakMap(), p = new WeakMap(), a = new WeakMap(), l = new WeakMap(), o = new WeakMap(), _ = new WeakMap(), x = new WeakMap(), D = new WeakSet(), j = function() {
229
- t(this, o).calculate(), t(this, l).calculate(), t(this, a).calculate();
230
- }, k = new WeakSet(), rt = function() {
254
+ a = new WeakMap(), m = new WeakMap(), z = new WeakMap(), R = new WeakMap(), A = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), v = new WeakMap(), W = new WeakMap(), q = new WeakMap(), y = new WeakMap(), x = new WeakMap(), X = new WeakMap(), S = new WeakMap(), d = new WeakMap(), w = new WeakMap(), Y = new WeakMap(), H = new WeakMap(), B = new WeakMap(), f = new WeakMap(), p = new WeakMap(), g = new WeakMap(), c = new WeakMap(), n = new WeakMap(), o = new WeakMap(), M = new WeakMap(), E = new WeakMap(), I = new WeakMap(), D = new WeakSet(), tt = function() {
255
+ t(this, o).calculate(), t(this, n).calculate(), t(this, c).calculate();
256
+ }, k = new WeakSet(), nt = function() {
231
257
  t(this, o).setStep("_size", "+", {
232
- x: t(this, R) ? t(this, y) : 1,
233
- y: t(this, R) ? t(this, M) : 1,
234
- z: t(this, R) ? t(this, Y) : 1
258
+ x: t(this, _) ? t(this, y) : 1,
259
+ y: t(this, _) ? t(this, x) : 1,
260
+ z: t(this, _) ? t(this, X) : 1
235
261
  });
236
- const s = t(this, C) ? t(this, H) : 0, e = t(this, C) ? t(this, T) : 0, n = t(this, C) ? t(this, B) : 0;
237
- t(this, l).setStep("_position", "+", {
238
- x: s,
239
- y: e,
240
- z: n
262
+ const e = t(this, v) ? t(this, Y) : 0, s = t(this, v) ? t(this, H) : 0, l = t(this, v) ? t(this, B) : 0;
263
+ t(this, n).setStep("_position", "+", {
264
+ x: e,
265
+ y: s,
266
+ z: l
241
267
  }), t(this, W) ? (t(this, o).setStep("_scale", "*", {
268
+ x: t(this, g).x,
269
+ y: t(this, g).y,
270
+ z: t(this, g).z
271
+ }), t(this, n).setStep("_translation", "+", {
272
+ x: t(this, f).x,
273
+ y: t(this, f).y,
274
+ z: t(this, f).z
275
+ }), t(this, c).setStep("_rotation", "+", {
242
276
  x: t(this, p).x,
243
277
  y: t(this, p).y,
244
278
  z: t(this, p).z
245
- }), t(this, l).setStep("_translation", "+", {
246
- x: t(this, d).x,
247
- y: t(this, d).y,
248
- z: t(this, d).z
249
- }), t(this, a).setStep("_rotation", "+", {
250
- x: t(this, m).x,
251
- y: t(this, m).y,
252
- z: t(this, m).z
253
279
  })) : (t(this, o).setStep("_scale", "*", {
254
280
  x: 1,
255
281
  y: 1,
256
282
  z: 1
257
- }), t(this, l).setStep("_translation", "+", {
283
+ }), t(this, n).setStep("_translation", "+", {
258
284
  x: 0,
259
285
  y: 0,
260
286
  z: 0
261
- }), t(this, a).setStep("_rotation", "+", {
287
+ }), t(this, c).setStep("_rotation", "+", {
262
288
  x: 0,
263
289
  y: 0,
264
290
  z: 0
265
291
  }));
266
- }, I = new WeakSet(), nt = function() {
267
- const s = getComputedStyle(t(this, c));
268
- r(this, y, Math.max(t(this, c).clientWidth, 1)), r(this, M, Math.max(t(this, c).clientHeight, 1)), r(this, Y, Math.max(
269
- St.parse(s.getPropertyValue("--depth") || "0px"),
292
+ }, K = new WeakSet(), lt = function() {
293
+ const e = getComputedStyle(t(this, a));
294
+ r(this, y, Math.max(t(this, a).clientWidth, 1)), r(this, x, Math.max(t(this, a).clientHeight, 1)), r(this, X, Math.max(
295
+ dt.parse(e.getPropertyValue("--depth") || "0px"),
270
296
  1
271
297
  ));
272
- const e = N(t(this, g)), n = Q(t(this, g)), b = t(this, g).clientWidth, V = t(this, g).clientHeight;
273
- if (r(this, f, N(t(this, c)) - e), r(this, S, Q(t(this, c)) - n), t(this, v) === "z") {
274
- const P = t(this, f) / b, O = t(this, S) / V;
275
- r(this, f, (P - Math.floor(P)) * b), r(this, S, (O - Math.floor(O)) * V), t(this, A) === "left" ? r(this, E, N(t(this, c)) - e - t(this, f)) : r(this, E, Q(t(this, c)) - n - t(this, S));
276
- }
277
- if (r(this, f, t(this, f) + t(this, c).clientLeft), r(this, S, t(this, S) + t(this, c).clientTop), t(this, X)) {
278
- const P = Math.round(b / 2), O = Math.round(V / 2), ot = t(this, y) ? Math.round(t(this, y) / 2) : 0, at = t(this, M) ? Math.round(t(this, M) / 2) : 0, ct = t(this, f) - P + ot, ut = (t(this, S) - O + at) * -1;
279
- r(this, H, ct), r(this, T, ut);
298
+ const s = Q(t(this, m)), l = j(t(this, m)), b = t(this, m).clientWidth, Z = t(this, m).clientHeight;
299
+ if (r(this, d, Q(t(this, a)) - s), r(this, S, j(t(this, a)) - l), t(this, R) === "z") {
300
+ const P = t(this, d) / b, V = t(this, S) / Z;
301
+ r(this, d, (P - Math.floor(P)) * b), r(this, S, (V - Math.floor(V)) * Z), t(this, A) === "left" ? r(this, w, Q(t(this, a)) - s - t(this, d)) : r(this, w, j(t(this, a)) - l - t(this, S));
302
+ }
303
+ if (r(this, d, t(this, d) + t(this, a).clientLeft), r(this, S, t(this, S) + t(this, a).clientTop), t(this, L)) {
304
+ const P = Math.round(b / 2), V = Math.round(Z / 2), ct = t(this, y) ? Math.round(t(this, y) / 2) : 0, at = t(this, x) ? Math.round(t(this, x) / 2) : 0, ut = t(this, d) - P + ct, St = (t(this, S) - V + at) * -1;
305
+ r(this, Y, ut), r(this, H, St);
280
306
  } else
281
- r(this, H, t(this, f)), r(this, T, t(this, S));
282
- r(this, B, t(this, E) * -1);
283
- const $ = new WebKitCSSMatrix(s.transform), u = mt($);
284
- t(this, d).x = u.translationX, t(this, d).y = u.translationY, t(this, d).z = u.translationZ, t(this, p).x = u.scaleX, t(this, p).y = u.scaleY, t(this, p).z = u.scaleZ, t(this, m).x = u.rotationX, t(this, m).y = u.rotationY, t(this, m).z = u.rotationZ, L(this, k, rt).call(this), L(this, D, j).call(this);
285
- }, K = new WeakSet(), lt = function() {
286
- t(this, _).x = 0, t(this, _).y = 0, t(this, _).z = 0;
287
- for (let s = 0; s < t(this, z).length; s++) {
288
- const e = t(this, z)[s]();
289
- let n = e.axis;
290
- t(this, v) !== "auto" && (n = t(this, v));
291
- const b = e.value * (n === "x" ? -1 : t(this, X) ? 1 : -1);
292
- t(this, _)[n] += b, t(this, l).setStep(`_scroll_${s}`, "+", {
293
- [n]: b
307
+ r(this, Y, t(this, d)), r(this, H, t(this, S));
308
+ r(this, B, t(this, w) * -1);
309
+ const $ = new WebKitCSSMatrix(e.transform), u = mt($);
310
+ t(this, f).x = u.translationX, t(this, f).y = u.translationY, t(this, f).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, p).x = u.rotationX, t(this, p).y = u.rotationY, t(this, p).z = u.rotationZ, O(this, k, nt).call(this), O(this, D, tt).call(this), t(this, I).notify();
311
+ }, N = new WeakSet(), ot = function() {
312
+ t(this, M).x = 0, t(this, M).y = 0, t(this, M).z = 0;
313
+ for (let e = 0; e < t(this, z).length; e++) {
314
+ const s = t(this, z)[e]();
315
+ let l = s.axis;
316
+ t(this, R) !== "auto" && (l = t(this, R));
317
+ const b = s.value * (l === "x" ? -1 : t(this, L) ? 1 : -1);
318
+ t(this, M)[l] += b, t(this, n).setStep(`_scroll_${e}`, "+", {
319
+ [l]: b
294
320
  });
295
321
  }
296
- }, w = new WeakMap(), U = new WeakMap(), Z = new WeakMap();
322
+ }, C = new WeakMap(), U = new WeakMap(), T = new WeakMap();
297
323
  export {
298
- Et as LayoutBox,
324
+ Vt as LayoutBox,
299
325
  mt as decomposeCSSMatrix
300
326
  };
@@ -1 +1 @@
1
- "use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},u=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-C-1ruEIm.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);u(this,i,s),u(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;
1
+ "use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},u=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-6s0YXK4o.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);u(this,i,s),u(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;
@@ -9,7 +9,7 @@ var o = (e, s, r) => (a(e, s, "read from private field"), r ? r.call(e) : s.get(
9
9
  }, u = (e, s, r, m) => (a(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
10
10
  import { RESIZE_ORDER as h } from "../order/index.js";
11
11
  import { windowResizer as n } from "../window-resizer/index.js";
12
- import { S as f } from "../Store-BQXXikps.js";
12
+ import { S as f } from "../Store-BI2xxXOA.js";
13
13
  var t, i;
14
14
  class b extends f {
15
15
  constructor(r) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const v=require("../browser-CpzFX2xg.cjs"),s=require("../tags-Djb6mb1o.cjs"),b=require("../createStylesheet-CqHU9_qv.cjs"),m=require("../popover/index.cjs"),g=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(n=(r?d(e,o,n):d(n))||n);return r&&n&&w(e,o,n),n},f=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(f(t,e,"read from private field"),o?o.call(t):e.get(t)),h=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},u=(t,e,o,r)=>(f(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=b.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:"var(--duration-short)"},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:"var(--duration-short)",willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${g.aptechkaTheme.colorMain.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends m.PopoverElement{constructor(){super(),h(this,i,null),h(this,a,null),v.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",lightChildren:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>u(this,a,e)})}),u(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([p.define("e-modal")],exports.ModalElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../custom-element/index.cjs");require("../Store-6s0YXK4o.cjs");const v=require("../browser-CpzFX2xg.cjs"),n=require("../tags-ld5jemJw.cjs"),b=require("../createStylesheet-p23sZ7Ey.cjs"),m=require("../popover/index.cjs"),g=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,s)=>{for(var r=s>1?void 0:s?_(e,o):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(r=(s?d(e,o,r):d(r))||r);return s&&r&&w(e,o,r),r},f=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(f(t,e,"read from private field"),o?o.call(t):e.get(t)),h=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},u=(t,e,o,s)=>(f(t,e,"write to private field"),e.set(t,o),o),i,a;const C=b.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:"var(--duration-short)"},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:"var(--duration-short)",willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${g.aptechkaTheme.colorMain.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends m.PopoverElement{constructor(){super(),h(this,i,null),h(this,a,null),v.isBrowser&&(this.openShadow(C),n.element(this,{children:n.div({class:"inner",outside:!0,children:n.div({class:"content",children:[n.element("e-popover-button",{type:"close",target:this.id,class:"close-button",lightChildren:[n.slot({name:"close-button",children:n.span({class:"close-button-default"})})]}),n.slot()]}),ref:e=>u(this,a,e)})}),u(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([p.define("e-modal")],exports.ModalElement);
@@ -1,22 +1,22 @@
1
- import { define as b } from "../custom-element/index.js";
2
- import "../Store-BQXXikps.js";
1
+ import { define as m } from "../custom-element/index.js";
2
+ import "../Store-BI2xxXOA.js";
3
3
  import { i as g } from "../browser-0zX67oeU.js";
4
- import { e as h, D as d, ay as f, aB as w } from "../tags-CMPg9ETZ.js";
5
- import { c as _ } from "../createStylesheet-DBCEbDjI.js";
6
- import { PopoverElement as y } from "../popover/index.js";
7
- import { aptechkaTheme as C } from "../theme/index.js";
8
- var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
9
- for (var n = r > 1 ? void 0 : r ? k(e, o) : e, l = t.length - 1, c; l >= 0; l--)
10
- (c = t[l]) && (n = (r ? c(e, o, n) : c(n)) || n);
11
- return r && n && x(e, o, n), n;
12
- }, m = (t, e, o) => {
4
+ import { e as h, D as d, ax as f, aA as w } from "../tags-BqJKcIve.js";
5
+ import { c as _ } from "../createStylesheet-CR_yi5tp.js";
6
+ import { PopoverElement as C } from "../popover/index.js";
7
+ import { aptechkaTheme as y } from "../theme/index.js";
8
+ var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, z = (t, e, o, n) => {
9
+ for (var r = n > 1 ? void 0 : n ? k(e, o) : e, l = t.length - 1, c; l >= 0; l--)
10
+ (c = t[l]) && (r = (n ? c(e, o, r) : c(r)) || r);
11
+ return n && r && x(e, o, r), r;
12
+ }, b = (t, e, o) => {
13
13
  if (!e.has(t))
14
14
  throw TypeError("Cannot " + o);
15
- }, a = (t, e, o) => (m(t, e, "read from private field"), o ? o.call(t) : e.get(t)), u = (t, e, o) => {
15
+ }, a = (t, e, o) => (b(t, e, "read from private field"), o ? o.call(t) : e.get(t)), u = (t, e, o) => {
16
16
  if (e.has(t))
17
17
  throw TypeError("Cannot add the same private member more than once");
18
18
  e instanceof WeakSet ? e.add(t) : e.set(t, o);
19
- }, p = (t, e, o, r) => (m(t, e, "write to private field"), r ? r.call(t, o) : e.set(t, o), o), s, i;
19
+ }, p = (t, e, o, n) => (b(t, e, "write to private field"), e.set(t, o), o), s, i;
20
20
  const P = _({
21
21
  ":host": {
22
22
  position: "fixed",
@@ -84,7 +84,7 @@ const P = _({
84
84
  position: "absolute",
85
85
  width: "var(--close-button-thickness, 0.1em)",
86
86
  height: "100%",
87
- backgroundColor: `var(--close-button-color, ${C.colorMain.var})`
87
+ backgroundColor: `var(--close-button-color, ${y.colorMain.var})`
88
88
  },
89
89
  ".close-button-default::before": {
90
90
  transform: "rotate(-45deg)"
@@ -93,7 +93,7 @@ const P = _({
93
93
  transform: "rotate(45deg)"
94
94
  }
95
95
  });
96
- let v = class extends y {
96
+ let v = class extends C {
97
97
  constructor() {
98
98
  super(), u(this, s, null), u(this, i, null), g && (this.openShadow(P), h(this, {
99
99
  children: d({
@@ -132,7 +132,7 @@ let v = class extends y {
132
132
  s = /* @__PURE__ */ new WeakMap();
133
133
  i = /* @__PURE__ */ new WeakMap();
134
134
  v = z([
135
- b("e-modal")
135
+ m("e-modal")
136
136
  ], v);
137
137
  export {
138
138
  v as ModalElement
@@ -1,6 +1,6 @@
1
+ import { ChangeHistoryAction } from '../utils';
1
2
  import { Link } from './Link';
2
3
 
3
- export type MorphHistoryAction = 'replace' | 'push' | 'none';
4
4
  export interface MorphParameters {
5
5
  base?: string;
6
6
  waitForHeadToLoad?: boolean;
@@ -33,5 +33,5 @@ export declare class Morph {
33
33
  beforeNavigationEvent(callback: MorphNavigationCallback): () => void;
34
34
  afterNavigationEvent(callback: MorphNavigationCallback): () => void;
35
35
  prefetch(path: string): Promise<Document>;
36
- navigate(path: string, historyAction?: MorphHistoryAction): Promise<void>;
36
+ navigate(path: string, historyAction?: ChangeHistoryAction): Promise<void>;
37
37
  }