aptechka 0.4.11 → 0.4.13

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 (108) hide show
  1. package/lib/{Damped-Ceg1a3X8.js → Damped-BZujMwuv.js} +11 -10
  2. package/lib/Damped-DK3CSBXb.cjs +1 -0
  3. package/lib/{Derived-B-g8dYgh.cjs → Derived-BZtlW0bB.cjs} +1 -1
  4. package/lib/{Derived-kPJs5JC5.js → Derived-DH-ouLBq.js} +1 -1
  5. package/lib/DragControls-CV1YozSr.cjs +1 -0
  6. package/lib/{DragControls-CZhJHO0_.js → DragControls-Ch_JO2ML.js} +23 -22
  7. package/lib/SourceManager-Bl_uduSS.cjs +1 -0
  8. package/lib/{SourceManager-4OHacQoQ.js → SourceManager-D_8MZ3bR.js} +21 -20
  9. package/lib/Store-BQGNOHlY.cjs +1 -0
  10. package/lib/{Store-BQXXikps.js → Store-Cd-E5W1z.js} +8 -7
  11. package/lib/{Viewport-wlgZaIn7.js → Viewport-Bx-VImCe.js} +6 -5
  12. package/lib/Viewport-_WllZTJ0.cjs +1 -0
  13. package/lib/accordion/index.cjs +1 -1
  14. package/lib/accordion/index.js +1 -0
  15. package/lib/animation/index.cjs +1 -1
  16. package/lib/animation/index.js +6 -5
  17. package/lib/attribute/index.cjs +1 -1
  18. package/lib/attribute/index.js +16 -15
  19. package/lib/canvas/index.cjs +1 -1
  20. package/lib/canvas/index.js +4 -3
  21. package/lib/checkbox/index.cjs +1 -1
  22. package/lib/checkbox/index.js +4 -3
  23. package/lib/controls/index.cjs +1 -1
  24. package/lib/controls/index.js +2 -2
  25. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-C8aQQ4hd.cjs} +1 -1
  26. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-KMRQhSa-.js} +1 -1
  27. package/lib/createTheme-BSreUYge.cjs +1 -0
  28. package/lib/createTheme-u3NsrEV6.js +16 -0
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +4 -3
  31. package/lib/custom-element/index.cjs +1 -1
  32. package/lib/custom-element/index.js +3 -2
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +7 -6
  35. package/lib/device/index.cjs +1 -1
  36. package/lib/device/index.js +1 -1
  37. package/lib/element-constructor/index.cjs +1 -1
  38. package/lib/element-constructor/index.js +3 -3
  39. package/lib/element-resizer/index.cjs +1 -1
  40. package/lib/element-resizer/index.js +23 -22
  41. package/lib/en3/index.cjs +1 -1
  42. package/lib/en3/index.js +23 -22
  43. package/lib/image/index.cjs +1 -1
  44. package/lib/image/index.js +8 -7
  45. package/lib/{index-BUOBDenR.js → index-Fasue6kv.js} +20 -19
  46. package/lib/index-nxoux28n.cjs +9 -0
  47. package/lib/intersector/index.cjs +1 -1
  48. package/lib/intersector/index.js +3 -2
  49. package/lib/ladder/index.cjs +1 -1
  50. package/lib/ladder/index.js +11 -10
  51. package/lib/layout-box/index.cjs +1 -1
  52. package/lib/layout-box/index.js +148 -139
  53. package/lib/libs/path-data-polyfill.d.ts +1 -0
  54. package/lib/loading/index.cjs +1 -1
  55. package/lib/loading/index.js +16 -15
  56. package/lib/media/index.cjs +1 -1
  57. package/lib/media/index.js +6 -5
  58. package/lib/modal/index.cjs +1 -1
  59. package/lib/modal/index.js +4 -3
  60. package/lib/morph/index.cjs +1 -1
  61. package/lib/morph/index.js +21 -20
  62. package/lib/path-data-polyfill-CXsOR7Oc.cjs +3 -0
  63. package/lib/path-data-polyfill-DgeDWYeI.js +454 -0
  64. package/lib/popover/index.cjs +1 -1
  65. package/lib/popover/index.js +14 -13
  66. package/lib/resized/index.cjs +1 -1
  67. package/lib/resized/index.js +8 -7
  68. package/lib/router/index.cjs +1 -1
  69. package/lib/router/index.js +8 -7
  70. package/lib/scroll/index.cjs +1 -1
  71. package/lib/scroll/index.js +307 -298
  72. package/lib/scroll-entries/index.cjs +1 -1
  73. package/lib/scroll-entries/index.d.ts +3 -0
  74. package/lib/scroll-entries/index.js +18 -13
  75. package/lib/select/index.cjs +1 -1
  76. package/lib/select/index.js +1 -1
  77. package/lib/slicer/index.cjs +2 -2
  78. package/lib/slicer/index.js +4 -3
  79. package/lib/source/index.cjs +1 -1
  80. package/lib/source/index.js +2 -2
  81. package/lib/store/index.cjs +1 -1
  82. package/lib/store/index.js +13 -12
  83. package/lib/{tags-CMPg9ETZ.js → tags-BoPv9fDr.js} +234 -233
  84. package/lib/tags-CueX-JLX.cjs +1 -0
  85. package/lib/theme/index.cjs +1 -1
  86. package/lib/theme/index.js +7 -6
  87. package/lib/ticker/index.cjs +1 -1
  88. package/lib/ticker/index.js +3 -2
  89. package/lib/tweaker/index.cjs +1 -1
  90. package/lib/tweaker/index.js +6 -5
  91. package/lib/utils/index.cjs +1 -1
  92. package/lib/utils/index.d.ts +1 -0
  93. package/lib/utils/index.js +164 -127
  94. package/lib/utils/svg.d.ts +15 -0
  95. package/lib/video/index.cjs +1 -1
  96. package/lib/video/index.js +6 -5
  97. package/lib/window-resizer/index.cjs +1 -1
  98. package/lib/window-resizer/index.js +7 -6
  99. package/package.json +1 -1
  100. package/lib/Damped-BdnkNOcb.cjs +0 -1
  101. package/lib/DragControls-C7P6P5HO.cjs +0 -1
  102. package/lib/SourceManager-Bc68GDrb.cjs +0 -1
  103. package/lib/Store-C-1ruEIm.cjs +0 -1
  104. package/lib/Viewport-DAjFJF5V.cjs +0 -1
  105. package/lib/createTheme-CHnsCgAr.js +0 -15
  106. package/lib/createTheme-Cfaw9UmV.cjs +0 -1
  107. package/lib/index-Bv5vIuF-.cjs +0 -9
  108. package/lib/tags-Djb6mb1o.cjs +0 -1
@@ -1,96 +1,109 @@
1
- var k = (i, e, s) => {
2
- if (!e.has(i))
3
- throw TypeError("Cannot " + s);
1
+ var K = (i, s, e) => {
2
+ if (!s.has(i))
3
+ throw TypeError("Cannot " + e);
4
4
  };
5
- var t = (i, e, s) => (k(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
6
- if (e.has(i))
5
+ var t = (i, s, e) => (K(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => {
6
+ if (s.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(i) : e.set(i, s);
9
- }, n = (i, e, s, o) => (k(i, e, "write to private field"), o ? o.call(i, s) : e.set(i, s), s);
10
- var E = (i, e, s) => (k(i, e, "access private method"), s);
11
- import { cssUnitParser as lt } from "../css-unit-parser/index.js";
12
- import { Ladder as I } from "../ladder/index.js";
13
- import { TICK_ORDER as ot, RESIZE_ORDER as at } from "../order/index.js";
14
- import { scrollEntries as ct } from "../scroll-entries/index.js";
15
- import { ticker as G } from "../ticker/index.js";
16
- import { i as J } from "../browser-0zX67oeU.js";
17
- import { g as N } from "../dom-0S_WDL4g.js";
18
- import { g as K, a as $ } from "../layout-HoBT_Da2.js";
19
- import { elementResizer as Q } from "../element-resizer/index.js";
20
- import { windowResizer as j } from "../window-resizer/index.js";
21
- function ut(i) {
22
- const e = Math.sqrt(
8
+ s instanceof WeakSet ? s.add(i) : s.set(i, e);
9
+ }, n = (i, s, e, r) => (K(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e);
10
+ var O = (i, s, e) => (K(i, s, "access private method"), e);
11
+ import { cssUnitParser as ct } from "../css-unit-parser/index.js";
12
+ import { Ladder as $ } from "../ladder/index.js";
13
+ import { TICK_ORDER as ut, RESIZE_ORDER as St } from "../order/index.js";
14
+ import { scrollEntries as F } from "../scroll-entries/index.js";
15
+ import { ticker as Q } from "../ticker/index.js";
16
+ import { i as j } from "../browser-0zX67oeU.js";
17
+ import { g as tt } from "../dom-0S_WDL4g.js";
18
+ import { g as G, a as J } from "../layout-HoBT_Da2.js";
19
+ import "../path-data-polyfill-DgeDWYeI.js";
20
+ import { elementResizer as st } from "../element-resizer/index.js";
21
+ import { windowResizer as et } from "../window-resizer/index.js";
22
+ function dt(i) {
23
+ const s = Math.sqrt(
23
24
  i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
24
- ), s = Math.sqrt(
25
+ ), e = Math.sqrt(
25
26
  i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
26
- ), o = Math.sqrt(
27
+ ), r = Math.sqrt(
27
28
  i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
28
- ), Y = Math.atan2(i.m32, i.m33), H = Math.atan2(
29
+ ), H = Math.atan2(i.m32, i.m33), T = Math.atan2(
29
30
  -i.m31,
30
31
  Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
31
- ), U = Math.atan2(i.m21, i.m11), u = i.m41, C = i.m42 * -1, R = i.m43;
32
+ ), I = Math.atan2(i.m21, i.m11), u = i.m41, R = i.m42 * -1, C = i.m43;
32
33
  return {
33
- scaleX: e,
34
- scaleY: s,
35
- scaleZ: o,
36
- rotationX: Y,
37
- rotationY: H,
38
- rotationZ: U,
34
+ scaleX: s,
35
+ scaleY: e,
36
+ scaleZ: r,
37
+ rotationX: H,
38
+ rotationY: T,
39
+ rotationZ: I,
39
40
  translationX: u,
40
- translationY: C,
41
- translationZ: R
41
+ translationY: R,
42
+ translationZ: C
42
43
  };
43
44
  }
44
- var a, m, p, _, T, O, b, v, Z, y, M, L, S, d, x, P, X, A, f, z, g, c, r, l, W, F, B, tt, D, et, V, st, w, q;
45
- class vt {
46
- constructor(e, s) {
47
- h(this, W);
48
- h(this, B);
45
+ var a, f, p, _, Z, P, x, E, A, y, M, L, S, d, v, X, Y, W, m, z, g, c, l, o, b, q, N, D, it, U, ht, k, nt, w, B, V;
46
+ class wt {
47
+ constructor(s, e) {
48
+ h(this, q);
49
49
  h(this, D);
50
- h(this, V);
50
+ h(this, U);
51
+ h(this, k);
51
52
  h(this, a, null);
52
- h(this, m, null);
53
+ h(this, f, null);
53
54
  h(this, p, []);
54
55
  h(this, _, "auto");
55
- h(this, T, "top");
56
- h(this, O, !1);
57
- h(this, b, !0);
58
- h(this, v, !0);
59
- h(this, Z, !0);
56
+ h(this, Z, "top");
57
+ h(this, P, !1);
58
+ h(this, x, !0);
59
+ h(this, E, !0);
60
+ h(this, A, !0);
60
61
  h(this, y, 0);
61
62
  h(this, M, 0);
62
63
  h(this, L, 0);
63
64
  h(this, S, 0);
64
65
  h(this, d, 0);
65
- h(this, x, 0);
66
- h(this, P, 0);
66
+ h(this, v, 0);
67
67
  h(this, X, 0);
68
- h(this, A, 0);
69
- h(this, f, { x: 0, y: 0, z: 0 });
68
+ h(this, Y, 0);
69
+ h(this, W, 0);
70
+ h(this, m, { x: 0, y: 0, z: 0 });
70
71
  h(this, z, { x: 0, y: 0, z: 0 });
71
72
  h(this, g, { x: 1, y: 1, z: 1 });
72
- h(this, c, new I({ x: 0, y: 0, z: 0 }));
73
- h(this, r, new I({ x: 0, y: 0, z: 0 }));
74
- h(this, l, new I({ x: 0, y: 0, z: 0 }));
73
+ h(this, c, new $({ x: 0, y: 0, z: 0 }));
74
+ h(this, l, new $({ x: 0, y: 0, z: 0 }));
75
+ h(this, o, new $({ x: 0, y: 0, z: 0 }));
76
+ h(this, b, /* @__PURE__ */ new Map());
75
77
  h(this, w, () => {
76
- J && E(this, D, et).call(this);
78
+ j && O(this, U, ht).call(this);
77
79
  });
78
- h(this, q, () => {
79
- E(this, V, st).call(this), E(this, W, F).call(this);
80
+ h(this, B, () => {
81
+ O(this, k, nt).call(this), O(this, q, N).call(this);
80
82
  });
81
- J && (n(this, a, N(e) || document.body), n(this, m, N(s == null ? void 0 : s.containerElement) || document.body), n(this, _, (s == null ? void 0 : s.scrollAxis) || "auto"), n(this, T, (s == null ? void 0 : s.frontSide) || "top"), n(this, O, (s == null ? void 0 : s.cartesian) || !1), n(this, b, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), n(this, v, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), n(this, Z, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), t(this, l).setStep("_size", "+", {
83
+ h(this, V, () => {
84
+ const s = F.getAll(this.element);
85
+ t(this, b).forEach((e, r) => {
86
+ s.includes(r) || (this.deleteScrollStep(e), t(this, b).delete(r));
87
+ }), s.forEach((e) => {
88
+ if (!t(this, b).has(e)) {
89
+ const r = () => e;
90
+ t(this, b).set(e, r), this.setScrollStep(r);
91
+ }
92
+ });
93
+ });
94
+ j && (n(this, a, tt(s) || document.body), n(this, f, tt(e == null ? void 0 : e.containerElement) || document.body), n(this, _, (e == null ? void 0 : e.scrollAxis) || "auto"), n(this, Z, (e == null ? void 0 : e.frontSide) || "top"), n(this, P, (e == null ? void 0 : e.cartesian) || !1), n(this, x, (e == null ? void 0 : e.sizeStep) !== void 0 ? e.sizeStep : !0), n(this, E, (e == null ? void 0 : e.positionStep) !== void 0 ? e.positionStep : !0), n(this, A, (e == null ? void 0 : e.transformStep) !== void 0 ? e.transformStep : !0), t(this, o).setStep("_size", "+", {
82
95
  x: 1,
83
96
  y: 1,
84
97
  z: 1
85
- }), t(this, r).setStep("_position", "+", {
98
+ }), t(this, l).setStep("_position", "+", {
86
99
  x: 0,
87
100
  y: 0,
88
101
  z: 0
89
- }), t(this, l).setStep("_scale", "*", {
102
+ }), t(this, o).setStep("_scale", "*", {
90
103
  x: 1,
91
104
  y: 1,
92
105
  z: 1
93
- }), t(this, r).setStep("_translation", "+", {
106
+ }), t(this, l).setStep("_translation", "+", {
94
107
  x: 0,
95
108
  y: 0,
96
109
  z: 0
@@ -98,29 +111,25 @@ class vt {
98
111
  x: 0,
99
112
  y: 0,
100
113
  z: 0
101
- }), addEventListener("DOMContentLoaded", () => {
102
- ct.getAll(this.element).forEach((o) => {
103
- this.setScrollStep(() => o);
104
- });
105
- }), G.subscribe(t(this, q), {
106
- order: ot.LAYOUT_BOX,
107
- culling: s != null && s.culling ? this.element : void 0
108
- }), Q.subscribe(this.element, t(this, w)), j.subscribe(t(this, w), at.LAYOUT_BOX));
114
+ }), F.notifier.subscribe(t(this, V)), Q.subscribe(t(this, B), {
115
+ order: ut.LAYOUT_BOX,
116
+ culling: e != null && e.culling ? this.element : void 0
117
+ }), st.subscribe(this.element, t(this, w)), et.subscribe(t(this, w), St.LAYOUT_BOX));
109
118
  }
110
119
  get element() {
111
120
  return t(this, a);
112
121
  }
113
122
  get containerElement() {
114
- return t(this, m);
123
+ return t(this, f);
115
124
  }
116
125
  get position() {
117
- return t(this, r).current;
126
+ return t(this, l).current;
118
127
  }
119
128
  get rotation() {
120
129
  return t(this, c).current;
121
130
  }
122
131
  get scale() {
123
- return t(this, l).current;
132
+ return t(this, o).current;
124
133
  }
125
134
  get left() {
126
135
  return t(this, d);
@@ -129,7 +138,7 @@ class vt {
129
138
  return t(this, S);
130
139
  }
131
140
  get front() {
132
- return t(this, x);
141
+ return t(this, v);
133
142
  }
134
143
  get width() {
135
144
  return t(this, y);
@@ -140,81 +149,81 @@ class vt {
140
149
  get depth() {
141
150
  return t(this, L);
142
151
  }
143
- bindObject(e) {
144
- e.position && t(this, r).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, l).bind(e.scale);
152
+ bindObject(s) {
153
+ s.position && t(this, l).bind(s.position), s.rotation && t(this, c).bind(s.rotation), s.scale && t(this, o).bind(s.scale);
145
154
  }
146
- unbindObject(e) {
147
- e.position && t(this, r).unbind(e.position), e.rotation && t(this, c).unbind(e.rotation), e.scale && t(this, l).unbind(e.scale);
155
+ unbindObject(s) {
156
+ s.position && t(this, l).unbind(s.position), s.rotation && t(this, c).unbind(s.rotation), s.scale && t(this, o).unbind(s.scale);
148
157
  }
149
- setScrollStep(e) {
150
- return t(this, p).includes(e) || t(this, p).push(e), () => this.deleteScrollStep(e);
158
+ setScrollStep(s) {
159
+ return t(this, p).includes(s) || t(this, p).push(s), () => this.deleteScrollStep(s);
151
160
  }
152
- deleteScrollStep(e) {
161
+ deleteScrollStep(s) {
153
162
  n(this, p, t(this, p).filter(
154
- (s) => s !== e
163
+ (e) => e !== s
155
164
  ));
156
165
  }
157
166
  destroy() {
158
- G.unsubscribe(t(this, q)), Q.unsubscribe(t(this, w)), j.unsubscribe(t(this, w)), t(this, r).close(), t(this, c).close(), t(this, l).close();
167
+ Q.unsubscribe(t(this, B)), st.unsubscribe(t(this, w)), et.unsubscribe(t(this, w)), F.notifier.unsubscribe(t(this, V)), t(this, b).clear(), t(this, l).close(), t(this, c).close(), t(this, o).close();
159
168
  }
160
- setPositionStep(...e) {
161
- t(this, r).setStep(...e);
169
+ setPositionStep(...s) {
170
+ t(this, l).setStep(...s);
162
171
  }
163
- getPositionStep(...e) {
164
- return t(this, r).getStepValue(...e);
172
+ getPositionStep(...s) {
173
+ return t(this, l).getStepValue(...s);
165
174
  }
166
- setRotationStep(...e) {
167
- t(this, c).setStep(...e);
175
+ setRotationStep(...s) {
176
+ t(this, c).setStep(...s);
168
177
  }
169
- getRotationStep(...e) {
170
- return t(this, c).getStepValue(...e);
178
+ getRotationStep(...s) {
179
+ return t(this, c).getStepValue(...s);
171
180
  }
172
- setScaleStep(...e) {
173
- t(this, l).setStep(...e);
181
+ setScaleStep(...s) {
182
+ t(this, o).setStep(...s);
174
183
  }
175
- getScaleStep(...e) {
176
- return t(this, l).getStepValue(...e);
184
+ getScaleStep(...s) {
185
+ return t(this, o).getStepValue(...s);
177
186
  }
178
- deletePositionStep(...e) {
179
- t(this, r).deleteStep(...e);
187
+ deletePositionStep(...s) {
188
+ t(this, l).deleteStep(...s);
180
189
  }
181
- deleteRotationStep(...e) {
182
- t(this, c).deleteStep(...e);
190
+ deleteRotationStep(...s) {
191
+ t(this, c).deleteStep(...s);
183
192
  }
184
- deleteScaleStep(...e) {
185
- t(this, l).deleteStep(...e);
193
+ deleteScaleStep(...s) {
194
+ t(this, o).deleteStep(...s);
186
195
  }
187
196
  }
188
- a = new WeakMap(), m = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), T = new WeakMap(), O = new WeakMap(), b = new WeakMap(), v = new WeakMap(), Z = new WeakMap(), y = new WeakMap(), M = new WeakMap(), L = new WeakMap(), S = new WeakMap(), d = new WeakMap(), x = new WeakMap(), P = new WeakMap(), X = new WeakMap(), A = new WeakMap(), f = new WeakMap(), z = new WeakMap(), g = new WeakMap(), c = new WeakMap(), r = new WeakMap(), l = new WeakMap(), W = new WeakSet(), F = function() {
189
- t(this, l).calculate(), t(this, r).calculate(), t(this, c).calculate();
190
- }, B = new WeakSet(), tt = function() {
191
- t(this, l).setStep("_size", "+", {
192
- x: t(this, b) ? t(this, y) : 1,
193
- y: t(this, b) ? t(this, M) : 1,
194
- z: t(this, b) ? t(this, L) : 1
197
+ a = new WeakMap(), f = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), P = new WeakMap(), x = new WeakMap(), E = new WeakMap(), A = new WeakMap(), y = new WeakMap(), M = new WeakMap(), L = new WeakMap(), S = new WeakMap(), d = new WeakMap(), v = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), W = new WeakMap(), m = new WeakMap(), z = new WeakMap(), g = new WeakMap(), c = new WeakMap(), l = new WeakMap(), o = new WeakMap(), b = new WeakMap(), q = new WeakSet(), N = function() {
198
+ t(this, o).calculate(), t(this, l).calculate(), t(this, c).calculate();
199
+ }, D = new WeakSet(), it = function() {
200
+ t(this, o).setStep("_size", "+", {
201
+ x: t(this, x) ? t(this, y) : 1,
202
+ y: t(this, x) ? t(this, M) : 1,
203
+ z: t(this, x) ? t(this, L) : 1
195
204
  });
196
- const e = t(this, v) ? t(this, P) : 0, s = t(this, v) ? t(this, X) : 0, o = t(this, v) ? t(this, A) : 0;
197
- t(this, r).setStep("_position", "+", {
198
- x: e,
199
- y: s,
200
- z: o
201
- }), t(this, Z) ? (t(this, l).setStep("_scale", "*", {
205
+ const s = t(this, E) ? t(this, X) : 0, e = t(this, E) ? t(this, Y) : 0, r = t(this, E) ? t(this, W) : 0;
206
+ t(this, l).setStep("_position", "+", {
207
+ x: s,
208
+ y: e,
209
+ z: r
210
+ }), t(this, A) ? (t(this, o).setStep("_scale", "*", {
202
211
  x: t(this, g).x,
203
212
  y: t(this, g).y,
204
213
  z: t(this, g).z
205
- }), t(this, r).setStep("_translation", "+", {
206
- x: t(this, f).x,
207
- y: t(this, f).y,
208
- z: t(this, f).z
214
+ }), t(this, l).setStep("_translation", "+", {
215
+ x: t(this, m).x,
216
+ y: t(this, m).y,
217
+ z: t(this, m).z
209
218
  }), t(this, c).setStep("_rotation", "+", {
210
219
  x: t(this, z).x,
211
220
  y: t(this, z).y,
212
221
  z: t(this, z).z
213
- })) : (t(this, l).setStep("_scale", "*", {
222
+ })) : (t(this, o).setStep("_scale", "*", {
214
223
  x: 1,
215
224
  y: 1,
216
225
  z: 1
217
- }), t(this, r).setStep("_translation", "+", {
226
+ }), t(this, l).setStep("_translation", "+", {
218
227
  x: 0,
219
228
  y: 0,
220
229
  z: 0
@@ -223,35 +232,35 @@ a = new WeakMap(), m = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), T =
223
232
  y: 0,
224
233
  z: 0
225
234
  }));
226
- }, D = new WeakSet(), et = function() {
227
- const e = getComputedStyle(t(this, a));
235
+ }, U = new WeakSet(), ht = function() {
236
+ const s = getComputedStyle(t(this, a));
228
237
  n(this, y, Math.max(t(this, a).clientWidth, 1)), n(this, M, Math.max(t(this, a).clientHeight, 1)), n(this, L, Math.max(
229
- lt.parse(e.getPropertyValue("--depth") || "0px"),
238
+ ct.parse(s.getPropertyValue("--depth") || "0px"),
230
239
  1
231
240
  ));
232
- const s = K(t(this, m)), o = $(t(this, m)), Y = t(this, m).clientWidth, H = t(this, m).clientHeight;
233
- if (n(this, d, K(t(this, a)) - s), n(this, S, $(t(this, a)) - o), t(this, _) === "z") {
234
- const C = t(this, d) / Y, R = t(this, S) / H;
235
- n(this, d, (C - Math.floor(C)) * Y), n(this, S, (R - Math.floor(R)) * H), t(this, T) === "left" ? n(this, x, K(t(this, a)) - s - t(this, d)) : n(this, x, $(t(this, a)) - o - t(this, S));
241
+ const e = G(t(this, f)), r = J(t(this, f)), H = t(this, f).clientWidth, T = t(this, f).clientHeight;
242
+ if (n(this, d, G(t(this, a)) - e), n(this, S, J(t(this, a)) - r), t(this, _) === "z") {
243
+ const R = t(this, d) / H, C = t(this, S) / T;
244
+ n(this, d, (R - Math.floor(R)) * H), n(this, S, (C - Math.floor(C)) * T), t(this, Z) === "left" ? n(this, v, G(t(this, a)) - e - t(this, d)) : n(this, v, J(t(this, a)) - r - t(this, S));
236
245
  }
237
- if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, O)) {
238
- const C = Math.round(Y / 2), R = Math.round(H / 2), it = t(this, y) ? Math.round(t(this, y) / 2) : 0, ht = t(this, M) ? Math.round(t(this, M) / 2) : 0, nt = t(this, d) - C + it, rt = (t(this, S) - R + ht) * -1;
239
- n(this, P, nt), n(this, X, rt);
246
+ if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, P)) {
247
+ const R = Math.round(H / 2), C = Math.round(T / 2), rt = t(this, y) ? Math.round(t(this, y) / 2) : 0, lt = t(this, M) ? Math.round(t(this, M) / 2) : 0, ot = t(this, d) - R + rt, at = (t(this, S) - C + lt) * -1;
248
+ n(this, X, ot), n(this, Y, at);
240
249
  } else
241
- n(this, P, t(this, d)), n(this, X, t(this, S));
242
- n(this, A, t(this, x) * -1);
243
- const U = new WebKitCSSMatrix(e.transform), u = ut(U);
244
- 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, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, E(this, B, tt).call(this), E(this, W, F).call(this);
245
- }, V = new WeakSet(), st = function() {
246
- for (let e = 0; e < t(this, p).length; e++) {
247
- const s = t(this, p)[e]();
248
- let o = s.axis;
249
- t(this, _) !== "auto" && (o = t(this, _)), t(this, r).setStep(`_scroll_${e}`, "+", {
250
- [o]: s.value * (o === "x" ? -1 : t(this, O) ? 1 : -1)
250
+ n(this, X, t(this, d)), n(this, Y, t(this, S));
251
+ n(this, W, t(this, v) * -1);
252
+ const I = new WebKitCSSMatrix(s.transform), u = dt(I);
253
+ t(this, m).x = u.translationX, t(this, m).y = u.translationY, t(this, m).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, O(this, D, it).call(this), O(this, q, N).call(this);
254
+ }, k = new WeakSet(), nt = function() {
255
+ for (let s = 0; s < t(this, p).length; s++) {
256
+ const e = t(this, p)[s]();
257
+ let r = e.axis;
258
+ t(this, _) !== "auto" && (r = t(this, _)), t(this, l).setStep(`_scroll_${s}`, "+", {
259
+ [r]: e.value * (r === "x" ? -1 : t(this, P) ? 1 : -1)
251
260
  });
252
261
  }
253
- }, w = new WeakMap(), q = new WeakMap();
262
+ }, w = new WeakMap(), B = new WeakMap(), V = new WeakMap();
254
263
  export {
255
- vt as LayoutBox,
256
- ut as decomposeCSSMatrix
264
+ wt as LayoutBox,
265
+ dt as decomposeCSSMatrix
257
266
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- "use strict";var p=Object.defineProperty,b=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var S=(s,t,e)=>t in s?p(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,f=(s,t)=>{for(var e in t||(t={}))L.call(t,e)&&S(s,e,t[e]);if(E)for(var e of E(t))N.call(t,e)&&S(s,e,t[e]);return s},c=(s,t)=>b(s,C(t));var w=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(w(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},v=(s,t,e,o)=>(w(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),_=require("../function-MthRj-GJ.cjs");var i,h,a,d,n,u,g;class q{constructor(){l(this,i,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:o}=this.getStats();r(this,h).notify({progress:e/o,loaded:e,total:o,namespace:t}),r(this,g).call(this)});l(this,g,_.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:o}=this.getStats();r(this,a).notify({total:o})}},150))}get progressEvent(){return r(this,h)}get completeEvent(){return r(this,a)}get errorEvent(){return r(this,d)}get _counter(){return r(this,i)}get isComplete(){return r(this,n)}reset(){v(this,n,!1),r(this,i).clear()}setTotal(t,e=1){r(this,n)||r(this,i).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);o.loaded!==e&&(r(this,i).set(t,c(f({},o),{loaded:e})),r(this,u).call(this,t))}}setError(t,e){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);r(this,i).set(t,c(f({},o),{total:o.total-1})),r(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(r(this,i)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}i=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const M=new q;exports.loading=M;
1
+ "use strict";var p=Object.defineProperty,b=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var S=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,f=(r,t)=>{for(var e in t||(t={}))C.call(t,e)&&S(r,e,t[e]);if(E)for(var e of E(t))L.call(t,e)&&S(r,e,t[e]);return r},c=(r,t)=>b(r,q(t));var w=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(w(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},v=(r,t,e,i)=>(w(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),N=require("../function-MthRj-GJ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var o,h,a,d,n,u,g;class _{constructor(){l(this,o,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:i}=this.getStats();s(this,h).notify({progress:e/i,loaded:e,total:i,namespace:t}),s(this,g).call(this)});l(this,g,N.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:i}=this.getStats();s(this,a).notify({total:i})}},150))}get progressEvent(){return s(this,h)}get completeEvent(){return s(this,a)}get errorEvent(){return s(this,d)}get _counter(){return s(this,o)}get isComplete(){return s(this,n)}reset(){v(this,n,!1),s(this,o).clear()}setTotal(t,e=1){s(this,n)||s(this,o).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!s(this,n)&&s(this,o).has(t)){const i=s(this,o).get(t);i.loaded!==e&&(s(this,o).set(t,c(f({},i),{loaded:e})),s(this,u).call(this,t))}}setError(t,e){if(!s(this,n)&&s(this,o).has(t)){const i=s(this,o).get(t);s(this,o).set(t,c(f({},i),{total:i.total-1})),s(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(s(this,o)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}o=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const M=new _;exports.loading=M;
@@ -1,33 +1,34 @@
1
- var m = Object.defineProperty, S = Object.defineProperties;
1
+ var y = Object.defineProperty, S = Object.defineProperties;
2
2
  var C = Object.getOwnPropertyDescriptors;
3
3
  var v = Object.getOwnPropertySymbols;
4
4
  var L = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var w = (s, t, e) => t in s ? m(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
5
+ var m = (s, t, e) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
6
6
  for (var e in t || (t = {}))
7
- L.call(t, e) && w(s, e, t[e]);
7
+ L.call(t, e) && m(s, e, t[e]);
8
8
  if (v)
9
9
  for (var e of v(t))
10
- b.call(t, e) && w(s, e, t[e]);
10
+ b.call(t, e) && m(s, e, t[e]);
11
11
  return s;
12
12
  }, c = (s, t) => S(s, C(t));
13
- var y = (s, t, e) => {
13
+ var w = (s, t, e) => {
14
14
  if (!t.has(s))
15
15
  throw TypeError("Cannot " + e);
16
16
  };
17
- var r = (s, t, e) => (y(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => {
17
+ var r = (s, t, e) => (w(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => {
18
18
  if (t.has(s))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  t instanceof WeakSet ? t.add(s) : t.set(s, e);
21
- }, E = (s, t, e, o) => (y(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
22
- import { Notifier as p } from "../notifier/index.js";
21
+ }, p = (s, t, e, o) => (w(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
22
+ import { Notifier as E } from "../notifier/index.js";
23
23
  import { d as x } from "../function-C10DGppn.js";
24
+ import "../path-data-polyfill-DgeDWYeI.js";
24
25
  var i, l, a, d, n, g, f;
25
26
  class A {
26
27
  constructor() {
27
28
  h(this, i, /* @__PURE__ */ new Map());
28
- h(this, l, new p());
29
- h(this, a, new p());
30
- h(this, d, new p());
29
+ h(this, l, new E());
30
+ h(this, a, new E());
31
+ h(this, d, new E());
31
32
  h(this, n, !1);
32
33
  h(this, g, (t) => {
33
34
  const { loaded: e, total: o } = this.getStats();
@@ -41,7 +42,7 @@ class A {
41
42
  h(this, f, x(() => {
42
43
  const { loaded: t, total: e } = this.getStats();
43
44
  if (t === e) {
44
- E(this, n, !0);
45
+ p(this, n, !0);
45
46
  const { total: o } = this.getStats();
46
47
  r(this, a).notify({
47
48
  total: o
@@ -65,7 +66,7 @@ class A {
65
66
  return r(this, n);
66
67
  }
67
68
  reset() {
68
- E(this, n, !1), r(this, i).clear();
69
+ p(this, n, !1), r(this, i).clear();
69
70
  }
70
71
  setTotal(t, e = 1) {
71
72
  r(this, n) || r(this, i).set(t, { loaded: 0, total: e });
@@ -93,7 +94,7 @@ class A {
93
94
  }
94
95
  }
95
96
  i = new WeakMap(), l = new WeakMap(), a = new WeakMap(), d = new WeakMap(), n = new WeakMap(), g = new WeakMap(), f = new WeakMap();
96
- const _ = new A();
97
+ const j = new A();
97
98
  export {
98
- _ as loading
99
+ j as loading
99
100
  };
@@ -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)),u=(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)},c=(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-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);u(this,i,void 0);u(this,t,void 0);c(this,i,s),c(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;
@@ -6,17 +6,18 @@ var o = (e, s, r) => (a(e, s, "read from private field"), r ? r.call(e) : s.get(
6
6
  if (s.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(e) : s.set(e, r);
9
- }, u = (e, s, r, m) => (a(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
9
+ }, m = (e, s, r, u) => (a(e, s, "write to private field"), u ? u.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 p } from "../Store-Cd-E5W1z.js";
13
+ import "../path-data-polyfill-DgeDWYeI.js";
13
14
  var t, i;
14
- class b extends f {
15
+ class w extends p {
15
16
  constructor(r) {
16
17
  super(!1);
17
18
  c(this, t, void 0);
18
19
  c(this, i, void 0);
19
- u(this, t, r), u(this, i, n.subscribe(() => {
20
+ m(this, t, r), m(this, i, n.subscribe(() => {
20
21
  matchMedia(o(this, t)).matches ? this.current = !0 : this.current = !1;
21
22
  }, h.MEDIA));
22
23
  }
@@ -26,5 +27,5 @@ class b extends f {
26
27
  }
27
28
  t = new WeakMap(), i = new WeakMap();
28
29
  export {
29
- b as Media
30
+ w as Media
30
31
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-Djb6mb1o.cjs"),m=require("../createStylesheet-CqHU9_qv.cjs"),g=require("../popover/index.cjs"),d=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,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(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)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":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:d.aptechkaTheme.durationShort.var,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, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.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=>f(this,a,e)})}),f(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([v.define("e-modal")],exports.ModalElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-BQGNOHlY.cjs");const b=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const s=require("../tags-CueX-JLX.cjs"),m=require("../createStylesheet-C8aQQ4hd.cjs"),g=require("../popover/index.cjs"),d=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,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(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)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":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:d.aptechkaTheme.durationShort.var,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, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.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=>f(this,a,e)})}),f(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([v.define("e-modal")],exports.ModalElement);
@@ -1,8 +1,9 @@
1
1
  import { define as g } from "../custom-element/index.js";
2
- import "../Store-BQXXikps.js";
2
+ import "../Store-Cd-E5W1z.js";
3
3
  import { i as w } from "../browser-0zX67oeU.js";
4
- import { e as d, D as f, ay as u, aB as _ } from "../tags-CMPg9ETZ.js";
5
- import { c as y } from "../createStylesheet-DBCEbDjI.js";
4
+ import "../path-data-polyfill-DgeDWYeI.js";
5
+ import { e as d, D as f, ay as u, aB as _ } from "../tags-BoPv9fDr.js";
6
+ import { c as y } from "../createStylesheet-KMRQhSa-.js";
6
7
  import { PopoverElement as C } from "../popover/index.js";
7
8
  import { aptechkaTheme as h } from "../theme/index.js";
8
9
  var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
@@ -1 +1 @@
1
- "use strict";var V=(s,t)=>(t=Symbol[s])?t:Symbol.for("Symbol."+s);var m=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(m(s,t,"read from private field"),e?e.call(s):t.get(s)),n=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},r=(s,t,e,o)=>(m(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);var f=(s,t,e)=>(m(s,t,"access private method"),e);var T=(s,t,e)=>new Promise((o,c)=>{var l=u=>{try{g(e.next(u))}catch(v){c(v)}},y=u=>{try{g(e.throw(u))}catch(v){c(v)}},g=u=>u.done?o(u.value):Promise.resolve(u.value).then(l,y);g((e=e.apply(s,t)).next())});var X=(s,t,e)=>(t=s[V("asyncIterator")])?t.call(s):(s=s[V("iterator")](),t={},e=(o,c)=>(c=s[o])&&(t[o]=l=>new Promise((y,g,u)=>(l=c.call(s,l),u=l.done,Promise.resolve(l.value).then(v=>y({value:v,done:u}),g)))),e("next"),e("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("../notifier/index.cjs"),st=require("../browser-CpzFX2xg.cjs");var M,d,w,N,P,S;class nt{constructor(t,e){n(this,M,void 0);n(this,d,void 0);n(this,w,void 0);n(this,N,void 0);n(this,P,t=>{t.preventDefault(),i(this,M).navigate(i(this,w),i(this,N))});n(this,S,()=>{i(this,M).prefetch(i(this,w))});r(this,M,e),r(this,d,t),r(this,w,i(this,d).getAttribute("href")||"/"),r(this,N,i(this,d).getAttribute("data-history-action")||"push"),i(this,d).addEventListener("click",i(this,P)),i(this,w)===location.pathname&&i(this,d).classList.add("current"),i(this,d).hasAttribute("data-prefetch")&&i(this,d).addEventListener("pointerenter",i(this,S))}destroy(){i(this,d).removeEventListener("click",i(this,P)),i(this,d).removeEventListener("pointerenter",i(this,S)),i(this,d).classList.remove("current")}}M=new WeakMap,d=new WeakMap,w=new WeakMap,N=new WeakMap,P=new WeakMap,S=new WeakMap;var a,k,A,C,x,j,E,L,H,D,q,R,z,B,$,W,G,F,J,K,p,O,Q,Y;class ot{constructor(t){n(this,R);n(this,B);n(this,W);n(this,F);n(this,K);n(this,O);n(this,a,null);n(this,k,null);n(this,A,null);n(this,C,null);n(this,x,[]);n(this,j,new DOMParser);n(this,E,new Map);n(this,L,void 0);n(this,H,null);n(this,D,new Z.Notifier);n(this,q,new Z.Notifier);n(this,Y,t=>{t.state&&this.navigate(t.state,"none")});st.isBrowser&&(r(this,a,(t==null?void 0:t.base)||"/"),t!=null&&t.base?(r(this,a,t.base),t.base.endsWith("/")||r(this,a,i(this,a)+"/")):r(this,a,"/"),r(this,k,(t==null?void 0:t.waitForHeadToLoad)!==!1),r(this,A,(t==null?void 0:t.cachePages)!==!1),r(this,C,f(this,F,J).call(this,document)),r(this,H,location.pathname),f(this,W,G).call(this),addEventListener("popstate",i(this,Y)))}beforeNavigationEvent(t){return i(this,D).subscribe(t)}afterNavigationEvent(t){return i(this,q).subscribe(t)}prefetch(t){return T(this,null,function*(){return f(this,R,z).call(this,t)})}navigate(t,e="push"){return T(this,null,function*(){var c;if(t=f(this,B,$).call(this,t),i(this,L)===t||i(this,H)===t)return;r(this,L,t);const o=i(this,E).has(t);try{let l=!0;if(this.preprocessor)try{yield new Promise((h,b)=>{var I;(I=this.preprocessor)==null||I.call(this,{pathname:t,resolve:h,reject:b,isCached:o})})}catch(h){h?console.error(h):console.log("Route change canceled"),l=!1}if(i(this,D).notify({pathname:t,isCached:o}),!l||i(this,L)!==t)return;const y=i(this,E).get(t)||(yield f(this,R,z).call(this,t));if(i(this,L)!==t)return;const g=Array.from(document.head.children),u=Array.from(y.head.cloneNode(!0).children),v=f(this,K,p).call(this,g,u),tt=f(this,O,Q).call(this,g,v),U=f(this,O,Q).call(this,u,v);tt.forEach(h=>h.remove()),U.forEach(h=>document.head.appendChild(h));const _=U.filter(h=>h.tagName==="STYLE"||h.tagName==="SCRIPT"||h.tagName==="LINK");i(this,k)&&_.length&&(yield new Promise(h=>T(this,null,function*(){let b=0;try{for(var I=X(_),ct,lt,ut;ct=!(lt=yield I.next()).done;ct=!1){const it=lt.value;it.onload=()=>{b++,b===_.length&&h()}}}catch(lt){ut=[lt]}finally{try{ct&&(lt=I.return)&&(yield lt.call(I))}finally{if(ut)throw ut[0]}}})));const et=f(this,F,J).call(this,y);i(this,C).forEach((h,b)=>{const I=et[b];h.innerHTML=I.innerHTML}),r(this,H,t),e==="push"?history.pushState(t,"",t+location.search):e==="replace"&&history.replaceState(t,"",t+location.search),f(this,W,G).call(this),(c=this.postprocessor)==null||c.call(this,{pathname:t,isCached:o}),i(this,q).notify({pathname:t,isCached:o})}catch(l){console.error(l)}r(this,L,void 0)})}}a=new WeakMap,k=new WeakMap,A=new WeakMap,C=new WeakMap,x=new WeakMap,j=new WeakMap,E=new WeakMap,L=new WeakMap,H=new WeakMap,D=new WeakMap,q=new WeakMap,R=new WeakSet,z=function(t){return T(this,null,function*(){const e=i(this,E).get(t);if(e)return e;const c=yield(yield fetch(t)).text(),l=i(this,j).parseFromString(c,"text/html");return i(this,A)&&i(this,E).set(t,l),l})},B=new WeakSet,$=function(t){return t=t.replace(i(this,a),""),t.startsWith("/")&&(t=t.slice(1)),i(this,a)+t},W=new WeakSet,G=function(){const t=[...document.documentElement.querySelectorAll("a")].filter(e=>{var o;return(o=e.getAttribute("href"))==null?void 0:o.startsWith("/")});i(this,x).forEach(e=>e.destroy()),r(this,x,t.map(e=>new nt(e,this)))},F=new WeakSet,J=function(t){const e=t.querySelectorAll("[data-morph]");return e.length?[...e]:[t.body]},K=new WeakSet,p=function(t,e){return t.filter(o=>e.find(c=>c.outerHTML===o.outerHTML))},O=new WeakSet,Q=function(t,e){return t.filter(o=>!e.find(c=>c.outerHTML===o.outerHTML))},Y=new WeakMap;exports.Morph=ot;
1
+ "use strict";var V=(s,t)=>(t=Symbol[s])?t:Symbol.for("Symbol."+s);var m=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(m(s,t,"read from private field"),e?e.call(s):t.get(s)),n=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},o=(s,t,e,r)=>(m(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e);var f=(s,t,e)=>(m(s,t,"access private method"),e);var T=(s,t,e)=>new Promise((r,c)=>{var l=u=>{try{g(e.next(u))}catch(v){c(v)}},y=u=>{try{g(e.throw(u))}catch(v){c(v)}},g=u=>u.done?r(u.value):Promise.resolve(u.value).then(l,y);g((e=e.apply(s,t)).next())});var X=(s,t,e)=>(t=s[V("asyncIterator")])?t.call(s):(s=s[V("iterator")](),t={},e=(r,c)=>(c=s[r])&&(t[r]=l=>new Promise((y,g,u)=>(l=c.call(s,l),u=l.done,Promise.resolve(l.value).then(v=>y({value:v,done:u}),g)))),e("next"),e("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("../notifier/index.cjs"),st=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var M,d,w,N,P,S;class nt{constructor(t,e){n(this,M,void 0);n(this,d,void 0);n(this,w,void 0);n(this,N,void 0);n(this,P,t=>{t.preventDefault(),i(this,M).navigate(i(this,w),i(this,N))});n(this,S,()=>{i(this,M).prefetch(i(this,w))});o(this,M,e),o(this,d,t),o(this,w,i(this,d).getAttribute("href")||"/"),o(this,N,i(this,d).getAttribute("data-history-action")||"push"),i(this,d).addEventListener("click",i(this,P)),i(this,w)===location.pathname&&i(this,d).classList.add("current"),i(this,d).hasAttribute("data-prefetch")&&i(this,d).addEventListener("pointerenter",i(this,S))}destroy(){i(this,d).removeEventListener("click",i(this,P)),i(this,d).removeEventListener("pointerenter",i(this,S)),i(this,d).classList.remove("current")}}M=new WeakMap,d=new WeakMap,w=new WeakMap,N=new WeakMap,P=new WeakMap,S=new WeakMap;var a,k,A,C,q,j,E,L,H,x,D,R,z,B,$,W,G,F,J,K,p,O,Q,Y;class rt{constructor(t){n(this,R);n(this,B);n(this,W);n(this,F);n(this,K);n(this,O);n(this,a,null);n(this,k,null);n(this,A,null);n(this,C,null);n(this,q,[]);n(this,j,new DOMParser);n(this,E,new Map);n(this,L,void 0);n(this,H,null);n(this,x,new Z.Notifier);n(this,D,new Z.Notifier);n(this,Y,t=>{t.state&&this.navigate(t.state,"none")});st.isBrowser&&(o(this,a,(t==null?void 0:t.base)||"/"),t!=null&&t.base?(o(this,a,t.base),t.base.endsWith("/")||o(this,a,i(this,a)+"/")):o(this,a,"/"),o(this,k,(t==null?void 0:t.waitForHeadToLoad)!==!1),o(this,A,(t==null?void 0:t.cachePages)!==!1),o(this,C,f(this,F,J).call(this,document)),o(this,H,location.pathname),f(this,W,G).call(this),addEventListener("popstate",i(this,Y)))}beforeNavigationEvent(t){return i(this,x).subscribe(t)}afterNavigationEvent(t){return i(this,D).subscribe(t)}prefetch(t){return T(this,null,function*(){return f(this,R,z).call(this,t)})}navigate(t,e="push"){return T(this,null,function*(){var c;if(t=f(this,B,$).call(this,t),i(this,L)===t||i(this,H)===t)return;o(this,L,t);const r=i(this,E).has(t);try{let l=!0;if(this.preprocessor)try{yield new Promise((h,b)=>{var I;(I=this.preprocessor)==null||I.call(this,{pathname:t,resolve:h,reject:b,isCached:r})})}catch(h){h?console.error(h):console.log("Route change canceled"),l=!1}if(i(this,x).notify({pathname:t,isCached:r}),!l||i(this,L)!==t)return;const y=i(this,E).get(t)||(yield f(this,R,z).call(this,t));if(i(this,L)!==t)return;const g=Array.from(document.head.children),u=Array.from(y.head.cloneNode(!0).children),v=f(this,K,p).call(this,g,u),tt=f(this,O,Q).call(this,g,v),U=f(this,O,Q).call(this,u,v);tt.forEach(h=>h.remove()),U.forEach(h=>document.head.appendChild(h));const _=U.filter(h=>h.tagName==="STYLE"||h.tagName==="SCRIPT"||h.tagName==="LINK");i(this,k)&&_.length&&(yield new Promise(h=>T(this,null,function*(){let b=0;try{for(var I=X(_),ct,lt,ut;ct=!(lt=yield I.next()).done;ct=!1){const it=lt.value;it.onload=()=>{b++,b===_.length&&h()}}}catch(lt){ut=[lt]}finally{try{ct&&(lt=I.return)&&(yield lt.call(I))}finally{if(ut)throw ut[0]}}})));const et=f(this,F,J).call(this,y);i(this,C).forEach((h,b)=>{const I=et[b];h.innerHTML=I.innerHTML}),o(this,H,t),e==="push"?history.pushState(t,"",t+location.search):e==="replace"&&history.replaceState(t,"",t+location.search),f(this,W,G).call(this),(c=this.postprocessor)==null||c.call(this,{pathname:t,isCached:r}),i(this,D).notify({pathname:t,isCached:r})}catch(l){console.error(l)}o(this,L,void 0)})}}a=new WeakMap,k=new WeakMap,A=new WeakMap,C=new WeakMap,q=new WeakMap,j=new WeakMap,E=new WeakMap,L=new WeakMap,H=new WeakMap,x=new WeakMap,D=new WeakMap,R=new WeakSet,z=function(t){return T(this,null,function*(){const e=i(this,E).get(t);if(e)return e;const c=yield(yield fetch(t)).text(),l=i(this,j).parseFromString(c,"text/html");return i(this,A)&&i(this,E).set(t,l),l})},B=new WeakSet,$=function(t){return t=t.replace(i(this,a),""),t.startsWith("/")&&(t=t.slice(1)),i(this,a)+t},W=new WeakSet,G=function(){const t=[...document.documentElement.querySelectorAll("a")].filter(e=>{var r;return(r=e.getAttribute("href"))==null?void 0:r.startsWith("/")});i(this,q).forEach(e=>e.destroy()),o(this,q,t.map(e=>new nt(e,this)))},F=new WeakSet,J=function(t){const e=t.querySelectorAll("[data-morph]");return e.length?[...e]:[t.body]},K=new WeakSet,p=function(t,e){return t.filter(r=>e.find(c=>c.outerHTML===r.outerHTML))},O=new WeakSet,Q=function(t,e){return t.filter(r=>!e.find(c=>c.outerHTML===r.outerHTML))},Y=new WeakMap;exports.Morph=rt;