@web-canvas-ui/angular 0.0.0-stage → 0.2.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 (93) hide show
  1. package/README.md +1084 -2
  2. package/index.js +4224 -0
  3. package/package.json +40 -5
  4. package/theme.css +327 -0
  5. package/types/angular/Canvas.d.ts +41 -0
  6. package/types/angular/index.d.ts +4 -0
  7. package/types/angular/node-directives.d.ts +317 -0
  8. package/types/canvas-handle.d.ts +22 -0
  9. package/types/components/Button/button.d.ts +20 -0
  10. package/types/components/Button/index.d.ts +3 -0
  11. package/types/components/Button/logic.d.ts +3 -0
  12. package/types/components/CanvasView/canvasView.d.ts +28 -0
  13. package/types/components/CanvasView/index.d.ts +2 -0
  14. package/types/components/Carousel/carousel.d.ts +31 -0
  15. package/types/components/Carousel/index.d.ts +3 -0
  16. package/types/components/Carousel/logic.d.ts +2 -0
  17. package/types/components/Checkbox/checkbox.d.ts +8 -0
  18. package/types/components/Checkbox/index.d.ts +2 -0
  19. package/types/components/ChoiceGroup/choiceGroup.d.ts +33 -0
  20. package/types/components/ChoiceGroup/index.d.ts +3 -0
  21. package/types/components/ChoiceGroup/logic.d.ts +3 -0
  22. package/types/components/Circle/circle.d.ts +9 -0
  23. package/types/components/Circle/index.d.ts +2 -0
  24. package/types/components/Collapse/collapse.d.ts +32 -0
  25. package/types/components/Collapse/index.d.ts +3 -0
  26. package/types/components/Collapse/logic.d.ts +1 -0
  27. package/types/components/CustomDraw/customDraw.d.ts +22 -0
  28. package/types/components/CustomDraw/index.d.ts +2 -0
  29. package/types/components/DatePicker/datePicker.d.ts +24 -0
  30. package/types/components/DatePicker/index.d.ts +2 -0
  31. package/types/components/Dialog/dialog.d.ts +20 -0
  32. package/types/components/Dialog/index.d.ts +2 -0
  33. package/types/components/Dropdown/dropdown.d.ts +30 -0
  34. package/types/components/Dropdown/index.d.ts +3 -0
  35. package/types/components/Dropdown/logic.d.ts +5 -0
  36. package/types/components/Grid/grid.d.ts +14 -0
  37. package/types/components/Grid/index.d.ts +2 -0
  38. package/types/components/GridItem/gridItem.d.ts +8 -0
  39. package/types/components/GridItem/index.d.ts +2 -0
  40. package/types/components/Group/group.d.ts +5 -0
  41. package/types/components/Group/index.d.ts +2 -0
  42. package/types/components/Icon/icon.d.ts +14 -0
  43. package/types/components/Icon/index.d.ts +2 -0
  44. package/types/components/Image/image.d.ts +12 -0
  45. package/types/components/Image/index.d.ts +2 -0
  46. package/types/components/Input/index.d.ts +2 -0
  47. package/types/components/Input/input.d.ts +32 -0
  48. package/types/components/Progress/index.d.ts +2 -0
  49. package/types/components/Progress/progress.d.ts +15 -0
  50. package/types/components/Radio/index.d.ts +2 -0
  51. package/types/components/Radio/radio.d.ts +8 -0
  52. package/types/components/Rect/index.d.ts +2 -0
  53. package/types/components/Rect/rect.d.ts +11 -0
  54. package/types/components/Slider/index.d.ts +3 -0
  55. package/types/components/Slider/logic.d.ts +1 -0
  56. package/types/components/Slider/slider.d.ts +17 -0
  57. package/types/components/Switch/index.d.ts +3 -0
  58. package/types/components/Switch/logic.d.ts +2 -0
  59. package/types/components/Switch/switch.d.ts +14 -0
  60. package/types/components/Tabs/index.d.ts +3 -0
  61. package/types/components/Tabs/logic.d.ts +2 -0
  62. package/types/components/Tabs/tabs.d.ts +35 -0
  63. package/types/components/Text/index.d.ts +2 -0
  64. package/types/components/Text/text.d.ts +39 -0
  65. package/types/components/Textarea/index.d.ts +2 -0
  66. package/types/components/Textarea/textarea.d.ts +10 -0
  67. package/types/components/Upload/index.d.ts +2 -0
  68. package/types/components/Upload/upload.d.ts +20 -0
  69. package/types/components/Video/index.d.ts +2 -0
  70. package/types/components/Video/video.d.ts +20 -0
  71. package/types/components/draw-utils.d.ts +48 -0
  72. package/types/components/shared.d.ts +7 -0
  73. package/types/components/size.d.ts +6 -0
  74. package/types/components/types.d.ts +28 -0
  75. package/types/engine/carousel.d.ts +10 -0
  76. package/types/engine/events.d.ts +14 -0
  77. package/types/engine/hit-test.d.ts +31 -0
  78. package/types/engine/images.d.ts +8 -0
  79. package/types/engine/interaction.d.ts +11 -0
  80. package/types/engine/layout.d.ts +6 -0
  81. package/types/engine/nodes.d.ts +18 -0
  82. package/types/engine/state.d.ts +80 -0
  83. package/types/engine/text-controls.d.ts +10 -0
  84. package/types/engine/transform.d.ts +13 -0
  85. package/types/engine/videos.d.ts +14 -0
  86. package/types/engine/vnodes.d.ts +36 -0
  87. package/types/engine.d.ts +36 -0
  88. package/types/image-assets.d.ts +2 -0
  89. package/types/input-bridge.d.ts +40 -0
  90. package/types/renderer.d.ts +20 -0
  91. package/types/scene.d.ts +15 -0
  92. package/types/types.d.ts +124 -0
  93. package/types/video-assets.d.ts +11 -0
package/index.js ADDED
@@ -0,0 +1,4224 @@
1
+ import * as e from "@angular/core";
2
+ import { Component as t, Directive as n, EventEmitter as r, HostBinding as i, Input as a, Output as o, ViewChild as s } from "@angular/core";
3
+ // tools/angular-build/.stage/angular-compiled/scene.js
4
+ var c = class e {
5
+ constructor(e, t = {}) {
6
+ this.children = [], this.parent = null, this.dirty = !0, this.type = e, this.props = t;
7
+ }
8
+ setProps(e) {
9
+ this.replaceProps({
10
+ ...this.props,
11
+ ...e
12
+ });
13
+ }
14
+ replaceProps(e) {
15
+ let t = /* @__PURE__ */ new Set([...Object.keys(this.props), ...Object.keys(e)]), n = !1;
16
+ for (let r of t) if (this.props[r] !== e[r]) {
17
+ n = !0;
18
+ break;
19
+ }
20
+ n && (this.props = e, this.markDirty());
21
+ }
22
+ markDirty() {
23
+ this.dirty = !0, this.parent?.markDirty();
24
+ }
25
+ syncChildren(t, n) {
26
+ let r = [...this.children], i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
27
+ if (t.some((e) => typeof e.props._gridVirtualIndex == "number")) for (let e of r) typeof e.props._gridVirtualIndex == "number" && a.set(e.props._gridVirtualIndex, e);
28
+ let o = t.map((t, o) => {
29
+ let s = t.key === null ? null : `${t.type}:${t.key}`, c = s === null ? typeof t.props._gridVirtualIndex == "number" ? a.get(t.props._gridVirtualIndex) : r[o]?.type === t.type && (r[o].props._gridVirtualIndex === void 0 || r[o].props._gridVirtualIndex === o) && !i.has(r[o]) ? r[o] : void 0 : r.find((e) => e.props._key === s && e.type === t.type && !i.has(e)), l = c?.type === t.type && !i.has(c) ? c : void 0, u = l ?? new e(t.type);
30
+ l ? i.add(l) : u.parent = this;
31
+ let d = {
32
+ ...t.props,
33
+ _key: s
34
+ };
35
+ return (t.type === "input" || t.type === "datePicker" || t.type === "textarea" || t.type === "dropdown" || t.type === "slider") && (d.value === void 0 && (d.value = l?.props.value ?? d.defaultValue ?? (t.type === "slider" ? d.min ?? 0 : "")), (t.type === "input" || t.type === "datePicker" || t.type === "textarea") && (d.focused = l?.props.focused ?? !1, d.cursorPos = l?.props.cursorPos ?? String(d.value).length), t.type === "dropdown" && (d.open = l?.props.open ?? !1)), t.type === "switch" && (d.checked = d.checked ?? l?.props.checked ?? d.defaultChecked ?? !1), (t.type === "radio" || t.type === "checkbox") && (d.value = d.value ?? l?.props.value ?? d.defaultValue ?? (t.type === "checkbox" ? [] : "")), u.replaceProps(d), u.syncChildren(t.children, n), u;
36
+ });
37
+ for (let e of r) !i.has(e) && !o.includes(e) && (n(e), e.parent = null);
38
+ (o.length !== this.children.length || o.some((e, t) => this.children[t] !== e)) && (this.children.splice(0, this.children.length, ...o), this.markDirty());
39
+ }
40
+ traverse(e) {
41
+ e(this), this.children.forEach((t) => t.traverse(e));
42
+ }
43
+ };
44
+ function l(e, t, n) {
45
+ let r = e.props._gridVirtualIndex;
46
+ return e.key === null ? `${n}/i${typeof r == "number" ? r : t}` : `${n}/k${e.key}`;
47
+ }
48
+ // tools/angular-build/.stage/angular-compiled/components/draw-utils.js
49
+ function u(e, t) {
50
+ return typeof e == "number" && Number.isFinite(e) ? e : t;
51
+ }
52
+ function d(e, t) {
53
+ return typeof e == "string" ? e : t;
54
+ }
55
+ var f = 1.2, p = "…", m = /[\u2e80-\u9fff\uac00-\ud7af]/u;
56
+ function h(e) {
57
+ return (t) => e.measureText(t).width;
58
+ }
59
+ function g(e, t, n) {
60
+ let r = [];
61
+ for (let i of t.split("\n")) {
62
+ let t = "";
63
+ for (let a of i.split(/(\s+)/).filter(Boolean)) {
64
+ let i = t + a;
65
+ if (t && e(i) <= n) t = i;
66
+ else if (t || !/^\s+$/.test(a)) {
67
+ if (!t && e(a) <= n) t = a;
68
+ else {
69
+ t && !m.test(a) && (r.push(t.trimEnd()), t = "");
70
+ for (let i of Array.from(a)) t && e(t + i) > n && (r.push(t.trimEnd()), t = ""), t += i;
71
+ }
72
+ }
73
+ }
74
+ r.push(t);
75
+ }
76
+ return r;
77
+ }
78
+ function _(e, t, n) {
79
+ let r = Array.from(t), i = 0, a = r.length;
80
+ for (; i < a;) {
81
+ let t = Math.ceil((i + a) / 2);
82
+ e(r.slice(0, t).join("") + p) <= n ? i = t : a = t - 1;
83
+ }
84
+ return r.slice(0, i).join("") + p;
85
+ }
86
+ function v(e, t, n) {
87
+ return !t || e(t) <= n ? t : _(e, t, n);
88
+ }
89
+ function y(e, t, n, r) {
90
+ let i = g(e, t, n);
91
+ if (i.length <= r) return i;
92
+ let a = i.slice(0, r);
93
+ return a[r - 1] = _(e, a[r - 1], n), a;
94
+ }
95
+ function ee(e, t, n, r = 0) {
96
+ return n > 0 ? r > 0 ? y(e, t, n, Math.max(1, Math.round(r))) : g(e, t, n) : [t];
97
+ }
98
+ function te(e, t, n) {
99
+ return g(h(e), t, n);
100
+ }
101
+ function b(e, t, n) {
102
+ return v(h(e), t, n);
103
+ }
104
+ var x = null, S = !1, ne = "";
105
+ function re() {
106
+ return S || (S = !0, typeof document < "u" && (x = document.createElement("canvas").getContext("2d"))), x;
107
+ }
108
+ function C(e, t) {
109
+ let n = re();
110
+ return n ? (ne !== t && (n.font = t, ne = t), n.measureText(e).width) : w(e, t);
111
+ }
112
+ function w(e, t) {
113
+ let n = parseFloat(t) || 14;
114
+ return Array.from(e).reduce((e, t) => {
115
+ let r = m.test(t);
116
+ return e + n * (r ? 1 : .62);
117
+ }, 0);
118
+ }
119
+ function T(e, t, n, r, i, a, o) {
120
+ if (e.beginPath(), e.rect(0, 0, i, a), e.clip(), !(n > 0) || !(r > 0) || !(i > 0) || !(a > 0)) return;
121
+ if (o === "fill") {
122
+ e.drawImage(t, 0, 0, i, a);
123
+ return;
124
+ }
125
+ let s = o === "cover" ? Math.max(i / n, a / r) : o === "none" ? 1 : o === "scale-down" ? Math.min(1, i / n, a / r) : Math.min(i / n, a / r);
126
+ if (o === "cover") {
127
+ let o = i / s, c = a / s;
128
+ e.drawImage(t, (n - o) / 2, (r - c) / 2, o, c, 0, 0, i, a);
129
+ return;
130
+ }
131
+ let c = n * s, l = r * s;
132
+ e.drawImage(t, (i - c) / 2, (a - l) / 2, c, l);
133
+ }
134
+ var E = null;
135
+ function ie() {
136
+ if (E !== null) return E;
137
+ let e = typeof document > "u" ? null : document.body;
138
+ if (!e) return 0;
139
+ let t = document.createElement("div");
140
+ t.style.position = "absolute", t.style.top = "-9999px", t.style.width = "100px", t.style.height = "100px", t.style.overflowY = "scroll";
141
+ let n = document.createElement("div");
142
+ return n.style.width = "10px", n.style.height = "200px", t.appendChild(n), e.appendChild(t), E = Math.max(0, t.offsetWidth - t.clientWidth), t.remove(), E;
143
+ }
144
+ var D = 0, ae = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap();
145
+ function oe(e, t) {
146
+ O.set(e, O.get(t) ?? t);
147
+ }
148
+ function se() {
149
+ D += 1;
150
+ }
151
+ function k(e, t, n) {
152
+ if (typeof getComputedStyle != "function") return n;
153
+ let r = O.get(e.canvas) ?? e.canvas, i = ae.get(r);
154
+ i || (i = /* @__PURE__ */ new Map(), ae.set(r, i));
155
+ let a = i.get(t);
156
+ if (a && a.generation === D) return a.value;
157
+ let o = getComputedStyle(r).getPropertyValue(t).trim() || n;
158
+ return i.set(t, {
159
+ generation: D,
160
+ value: o
161
+ }), o;
162
+ }
163
+ // tools/angular-build/.stage/angular-compiled/components/shared.js
164
+ var ce = Symbol.for("rnative55.web-canvas-ui.kind");
165
+ function A(e) {
166
+ let t = (() => null);
167
+ return t.displayName = e[0].toUpperCase() + e.slice(1), t[ce] = e, t;
168
+ }
169
+ A("button");
170
+ function le(e, t) {
171
+ let n = u(t.width, 120), r = u(t.height, 40), i = u(t.borderRadius, 6);
172
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = t.pressed ? k(e, "--canvas-ui-button-pressed-background", "#0958d9") : d(t.backgroundColor, k(e, "--canvas-ui-button-background", "#1677ff")), e.fill(), t.borderColor && (e.strokeStyle = d(t.borderColor, k(e, "--canvas-ui-button-border", "#1677ff")), e.stroke()), e.font = `${u(t.fontSize, 15)}px sans-serif`, e.textBaseline = "middle", e.textAlign = "center", e.fillStyle = d(t.fontColor, k(e, "--canvas-ui-button-color", "#fff")), e.fillText(b(e, String(t.text ?? ""), Math.max(0, n - 16)), n / 2, r / 2), e.textAlign = "left";
173
+ }
174
+ // tools/angular-build/.stage/angular-compiled/components/Button/logic.js
175
+ function ue(e, t) {
176
+ e.setProps({ pressed: t });
177
+ }
178
+ function de(e) {
179
+ if (e.props.disabled === !0) return;
180
+ let t = e.props.onClick;
181
+ typeof t == "function" && t();
182
+ }
183
+ A("dialog");
184
+ function fe(e, t) {
185
+ let n = u(t._viewportWidth, e.canvas.width), r = u(t._viewportHeight, e.canvas.height), i = u(t.width, 420), a = u(t.height, 240), o = (n - i) / 2, s = (r - a) / 2;
186
+ e.fillStyle = k(e, "--canvas-ui-dialog-mask", "rgba(0, 0, 0, 0.45)"), e.fillRect(0, 0, n, r), e.fillStyle = k(e, "--canvas-ui-dialog-background", "#fff"), e.beginPath(), e.roundRect(o, s, i, a, 8), e.fill(), e.fillStyle = k(e, "--canvas-ui-dialog-title-color", "#1f1f1f"), e.font = "600 16px sans-serif", e.textBaseline = "middle", e.fillText(b(e, String(t.title ?? "Confirm"), Math.max(0, i - 48)), o + 24, s + 28), e.strokeStyle = k(e, "--canvas-ui-dialog-border", "#f0f0f0"), e.beginPath(), e.moveTo(o, s + 56), e.lineTo(o + i, s + 56), e.moveTo(o, s + a - 56), e.lineTo(o + i, s + a - 56), e.stroke(), pe(e, o + i - 196, s + a - 44, 80, 32, String(t.cancelText ?? "Cancel"), !1), pe(e, o + i - 104, s + a - 44, 80, 32, String(t.confirmText ?? "OK"), !0);
187
+ }
188
+ function pe(e, t, n, r, i, a, o) {
189
+ e.beginPath(), e.roundRect(t, n, r, i, 6), e.fillStyle = o ? k(e, "--canvas-ui-dialog-confirm-background", "#1677ff") : k(e, "--canvas-ui-dialog-cancel-background", "#fff"), e.fill(), e.strokeStyle = o ? k(e, "--canvas-ui-dialog-confirm-background", "#1677ff") : k(e, "--canvas-ui-dialog-border", "#d9d9d9"), e.stroke(), e.fillStyle = o ? k(e, "--canvas-ui-dialog-confirm-color", "#fff") : k(e, "--canvas-ui-dialog-cancel-color", "#333"), e.font = "14px sans-serif", e.textAlign = "center", e.textBaseline = "middle", e.fillText(b(e, a, Math.max(0, r - 16)), t + r / 2, n + i / 2), e.textAlign = "left";
190
+ }
191
+ A("circle");
192
+ function me(e, t) {
193
+ let n = u(t.radius, 10);
194
+ e.beginPath(), e.arc(0, 0, n, 0, Math.PI * 2), e.fillStyle = d(t.color, k(e, "--canvas-ui-circle-background", "#e74c3c")), e.fill(), t.stroke && (e.strokeStyle = d(t.stroke, k(e, "--canvas-ui-circle-border", "#000")), e.lineWidth = u(t.strokeWidth, 1), e.stroke());
195
+ }
196
+ A("customDraw");
197
+ function he(e, t) {
198
+ let n = t.draw;
199
+ if (typeof n != "function") throw TypeError("<CustomDraw> requires a draw(context, size) function.");
200
+ let r = ge(t.width, "width"), i = ge(t.height, "height");
201
+ e.save();
202
+ try {
203
+ n(e, {
204
+ width: r,
205
+ height: i
206
+ });
207
+ } finally {
208
+ e.restore();
209
+ }
210
+ }
211
+ function ge(e, t) {
212
+ if (typeof e != "number" || !Number.isFinite(e) || e < 0) throw RangeError(`<CustomDraw> ${t} must be a non-negative finite number.`);
213
+ return e;
214
+ }
215
+ A("canvasView");
216
+ function _e(e, t) {
217
+ let n = t.source;
218
+ if (!ye(n)) throw TypeError("<CanvasView> requires an HTMLCanvasElement source.");
219
+ if (n === e.canvas) throw TypeError("<CanvasView> cannot draw the destination Canvas into itself.");
220
+ let r = ve(t.width, "width"), i = ve(t.height, "height");
221
+ if (!n.width || !n.height || !r || !i) return;
222
+ let a = {
223
+ width: r,
224
+ height: i
225
+ }, o = t.fit ?? "contain";
226
+ e.save();
227
+ try {
228
+ if (e.beginPath(), e.rect(0, 0, a.width, a.height), e.clip(), o === "fill") {
229
+ e.drawImage(n, 0, 0, a.width, a.height);
230
+ return;
231
+ }
232
+ if (o !== "contain" && o !== "cover") throw RangeError("<CanvasView> fit must be \"contain\", \"cover\", or \"fill\".");
233
+ let t = o === "cover" ? Math.max(a.width / n.width, a.height / n.height) : Math.min(a.width / n.width, a.height / n.height), r = n.width * t, i = n.height * t;
234
+ e.drawImage(n, (a.width - r) / 2, (a.height - i) / 2, r, i);
235
+ } finally {
236
+ e.restore();
237
+ }
238
+ }
239
+ function ve(e, t) {
240
+ if (typeof e != "number" || !Number.isFinite(e) || e < 0) throw RangeError(`<CanvasView> ${t} must be a non-negative finite number.`);
241
+ return e;
242
+ }
243
+ function ye(e) {
244
+ return typeof e == "object" && !!e && "nodeName" in e && e.nodeName === "CANVAS" && "width" in e && typeof e.width == "number" && "height" in e && typeof e.height == "number" && "getContext" in e && typeof e.getContext == "function";
245
+ }
246
+ A("collapse"), A("collapseItem");
247
+ function be(e, t) {
248
+ let n = u(t._collapseWidth, 300), r = u(t._collapseHeaderHeight, 40);
249
+ e.fillStyle = d(t.backgroundColor, k(e, "--canvas-ui-collapse-header-background", "#fafafa")), e.fillRect(0, 0, n, r), e.strokeStyle = d(t.borderColor, k(e, "--canvas-ui-collapse-border", "#d9d9d9")), e.strokeRect(0, 0, n, r), e.font = "14px sans-serif", e.textBaseline = "middle", e.fillStyle = t.disabled ? k(e, "--canvas-ui-collapse-disabled-color", "#bfbfbf") : d(t.textColor, k(e, "--canvas-ui-collapse-color", "#262626")), e.fillText(b(e, `${t._expanded ? "−" : "+"} ${String(t.title ?? "")}`, Math.max(0, n - 24)), 12, r / 2);
250
+ }
251
+ // tools/angular-build/.stage/angular-compiled/components/Collapse/logic.js
252
+ function xe(e, t, n) {
253
+ let r = new Set(e);
254
+ return r.has(t) ? r.delete(t) : (n && r.clear(), r.add(t)), [...r];
255
+ }
256
+ A("dropdown");
257
+ function Se(e, t) {
258
+ let n = u(t.width, 200), r = u(t.height, 36), i = Te(t.options).find((e) => e.value === String(t.value ?? ""));
259
+ we(e, n, r, u(t.borderRadius, 4), t, !!(t.focused || t.open)), e.font = `${u(t.fontSize, 14)}px sans-serif`, e.textBaseline = "middle", e.fillStyle = i ? d(t.color, k(e, "--canvas-ui-dropdown-color", "#333")) : k(e, "--canvas-ui-dropdown-placeholder-color", "#999"), e.fillText(b(e, i?.label ?? d(t.placeholder, "Select..."), Math.max(0, n - 34)), 8, r / 2), e.fillStyle = d(t.color, k(e, "--canvas-ui-dropdown-color", "#555")), e.beginPath(), e.moveTo(n - 18, r / 2 - 3), e.lineTo(n - 12, r / 2 + 3), e.lineTo(n - 6, r / 2 - 3), e.stroke();
260
+ }
261
+ function Ce(e, t) {
262
+ let n = u(t.width, 200), r = u(t.height, 36);
263
+ e.font = `${u(t.fontSize, 14)}px sans-serif`, e.textBaseline = "middle", Te(t.options).forEach((i, a) => {
264
+ let o = r * (a + 1);
265
+ e.fillStyle = k(e, "--canvas-ui-dropdown-option-background", "#fff"), e.fillRect(0, o, n, r), e.strokeStyle = k(e, "--canvas-ui-dropdown-option-border", "#e3e7ed"), e.strokeRect(0, o, n, r), e.fillStyle = i.disabled ? k(e, "--canvas-ui-dropdown-disabled-color", "#aaa") : d(t.color, k(e, "--canvas-ui-dropdown-color", "#333")), e.fillText(b(e, i.label, Math.max(0, n - 16)), 8, o + r / 2);
266
+ });
267
+ }
268
+ function we(e, t, n, r, i, a) {
269
+ e.beginPath(), e.roundRect(0, 0, t, n, r), e.fillStyle = d(i.bgColor, k(e, "--canvas-ui-dropdown-background", "#fff")), e.fill(), e.strokeStyle = a ? d(i.focusBorderColor, k(e, "--canvas-ui-dropdown-focus-border", "#1677ff")) : d(i.borderColor, k(e, "--canvas-ui-dropdown-border", "#d9d9d9")), e.stroke();
270
+ }
271
+ function Te(e) {
272
+ return Array.isArray(e) ? e.map((e) => typeof e == "string" ? {
273
+ label: e,
274
+ value: e
275
+ } : e) : [];
276
+ }
277
+ // tools/angular-build/.stage/angular-compiled/components/Dropdown/logic.js
278
+ function j(e) {
279
+ return Array.isArray(e) ? e.flatMap((e) => {
280
+ if (typeof e == "string") return [{
281
+ label: e,
282
+ value: e
283
+ }];
284
+ if (!e || typeof e != "object") return [];
285
+ let t = e;
286
+ return typeof t.label != "string" || typeof t.value != "string" ? [] : [{
287
+ label: t.label,
288
+ value: t.value,
289
+ disabled: t.disabled === !0
290
+ }];
291
+ }) : [];
292
+ }
293
+ function Ee(e, t) {
294
+ return j(e)[t];
295
+ }
296
+ function De(e, t) {
297
+ e.setProps({
298
+ value: t.value,
299
+ open: !1
300
+ });
301
+ let n = e.props.onChange;
302
+ typeof n == "function" && n(t.value);
303
+ }
304
+ // tools/angular-build/.stage/angular-compiled/image-assets.js
305
+ var Oe = /* @__PURE__ */ new Map();
306
+ function ke(e) {
307
+ let t = Oe.get(e);
308
+ if (t) return t;
309
+ let n = new Image(), r = {
310
+ image: n,
311
+ error: null,
312
+ listeners: /* @__PURE__ */ new Set()
313
+ };
314
+ return Oe.set(e, r), n.onload = () => r.listeners.forEach((e) => e(null)), n.onerror = () => {
315
+ r.error = /* @__PURE__ */ Error(`Canvas image failed to load: ${e}`), r.listeners.forEach((e) => e(r.error));
316
+ }, n.src = e, r;
317
+ }
318
+ function Ae(e) {
319
+ let t = ke(e);
320
+ return t.image.complete && t.image.naturalWidth > 0 ? t.image : null;
321
+ }
322
+ function je(e, t) {
323
+ let n = ke(e);
324
+ return n.listeners.add(t), n.image.complete && t(n.error), () => n.listeners.delete(t);
325
+ }
326
+ A("image");
327
+ function Me(e, t) {
328
+ let n = t.src;
329
+ if (typeof n != "string" || !n) return;
330
+ let r = Ae(n);
331
+ if (!r) return;
332
+ let i = u(t.width, r.naturalWidth), a = u(t.height, r.naturalHeight);
333
+ e.save(), T(e, r, r.naturalWidth, r.naturalHeight, i, a, t.objectFit ?? "contain"), e.restore();
334
+ }
335
+ A("progress");
336
+ function Ne(e, t) {
337
+ let n = u(t.width, 200), r = u(t.height, 12), i = u(t.min, 0), a = u(t.max, 100), o = Math.max(i, Math.min(a, u(t.value, i))), s = a > i ? (o - i) / (a - i) : 0, c = Math.max(0, Math.min(u(t.borderRadius, r / 2), r / 2, n / 2));
338
+ e.beginPath(), e.roundRect(0, 0, n, r, c), e.fillStyle = d(t.trackColor, k(e, "--canvas-ui-progress-track", "#f0f0f0")), e.fill(), s > 0 && (e.save(), e.beginPath(), e.roundRect(0, 0, n, r, c), e.clip(), e.fillStyle = d(t.color, k(e, "--canvas-ui-progress-active", "#1677ff")), e.fillRect(0, 0, n * s, r), e.restore()), t.showText && (e.font = `${Math.max(10, r)}px sans-serif`, e.textBaseline = "middle", e.fillStyle = d(t.textColor, k(e, "--canvas-ui-progress-text", "#333")), e.fillText(`${Math.round(s * 100)}%`, n + 8, r / 2));
339
+ }
340
+ A("input");
341
+ function Pe(e, t, n = !1) {
342
+ let r = u(t.width, 200), i = u(t.height, 36), a = Math.max(0, Math.min(u(t.borderRadius, 4), r / 2, i / 2)), o = u(t.padding, 8), s = String(t.value ?? ""), c = String(t.placeholder ?? ""), l = t.type === "password" ? "•".repeat(s.length) : s;
343
+ e.beginPath(), e.roundRect(0, 0, r, i, a), e.fillStyle = d(t.bgColor, k(e, "--canvas-ui-input-background", "#fff")), e.fill(), e.strokeStyle = t.focused ? d(t.focusBorderColor, k(e, "--canvas-ui-input-focus-border", "#1677ff")) : d(t.borderColor, k(e, "--canvas-ui-input-border", "#d9d9d9")), e.lineWidth = 1, e.stroke(), e.save(), e.beginPath(), e.rect(0, 0, r, i), e.clip();
344
+ let f = u(t.fontSize, 14);
345
+ e.font = `${f}px ${d(t.fontFamily, "sans-serif")}`, e.textBaseline = n ? "top" : "middle", e.fillStyle = s ? d(t.color, k(e, "--canvas-ui-input-color", "#333")) : k(e, "--canvas-ui-input-placeholder-color", "#999");
346
+ let p = f * 1.35, m = u(t._scrollClientWidth, 0), h = n && m > 0 ? Math.max(0, r - m) : n && u(t._scrollHeight, 0) > i ? ie() : 0, g = Math.max(1, r - o * 2 - h), _ = n ? te(e, l || c, g) : [], v = n ? Math.max(u(t._scrollHeight, 0), _.length * p + o * 2) : 0, y = n ? Math.max(0, Math.min(v - i, u(t._scrollTop, 0))) : 0;
347
+ if (n ? (_.forEach((t, n) => {
348
+ e.fillText(t, o, o + n * p - y);
349
+ }), v > i && Fe(e, r, i, v, y)) : e.fillText(l || c, o, i / 2), t.focused && !t.disabled) {
350
+ let r = Math.max(0, Math.min(u(t.cursorPos, s.length), l.length)), a, c;
351
+ if (n) {
352
+ let t = [], n = 0;
353
+ for (let e of _) {
354
+ let r = l.indexOf(e, n);
355
+ r < 0 && (r = n), t.length > 0 && e === "" && l[r] === "\n" && (r += 1), t.push(r), n = r + e.length;
356
+ }
357
+ let i = 0;
358
+ for (let e = 1; e < t.length && !(r < t[e]); e++) i = e;
359
+ a = e.measureText(l.slice(t[i] ?? 0, r)).width, c = o + i * p - y;
360
+ } else a = e.measureText(l.slice(0, r)).width, c = (i - f) / 2;
361
+ e.fillStyle = d(t.color, k(e, "--canvas-ui-input-color", "#333")), (!n || c + f >= 0 && c <= i) && e.fillRect(o + a, c, 1, f);
362
+ }
363
+ e.restore();
364
+ }
365
+ function Fe(e, t, n, r, i) {
366
+ let a = Math.min(n, Math.max(16, n * n / r)), o = r - n, s = o > 0 ? (n - a) * i / o : 0;
367
+ e.fillStyle = "rgba(0, 0, 0, 0.08)", e.fillRect(t - 5, 0, 5, n), e.fillStyle = "rgba(0, 0, 0, 0.35)", e.beginPath(), e.roundRect(t - 5 + 1, s, 3, a, 2), e.fill();
368
+ }
369
+ // tools/angular-build/.stage/angular-compiled/components/Icon/icon.js
370
+ var Ie = {
371
+ home: { paths: ["M3 10 L12 3 L21 10 M5 9 V21 H19 V9 M9 21 V14 H15 V21"] },
372
+ house: { paths: ["M2 11 L12 2 L22 11 M4 10 V21 H20 V10 M9 21 V14 H15 V21", "M3 11 H6 M18 11 H21"] },
373
+ building: { paths: ["M4 21 V4 H16 V21 M16 9 H21 V21 M2 21 H22", "M7 7 H9 M12 7 H14 M7 11 H9 M12 11 H14 M7 15 H9 M12 15 H14 M18 12 H19 M18 16 H19"] },
374
+ apartment: { paths: ["M3 21 V3 H21 V21 M2 21 H22", "M7 7 H9 M15 7 H17 M7 11 H9 M15 11 H17 M7 15 H9 M15 15 H17 M10 21 V18 H14 V21"] },
375
+ store: { paths: ["M4 10 V21 H20 V10 M2 10 L4 3 H20 L22 10 M2 10 Q5 14 8 10 Q11 14 14 10 Q17 14 22 10", "M8 21 V14 H16 V21"] },
376
+ mapPin: {
377
+ paths: ["M12 22 C9 18 4 13 4 9 A8 8 0 0 1 20 9 C20 13 15 18 12 22 Z"],
378
+ circles: [[
379
+ 12,
380
+ 9,
381
+ 2.5
382
+ ]]
383
+ },
384
+ map: { paths: ["M3 6 L9 3 L15 6 L21 3 V18 L15 21 L9 18 L3 21 Z", "M9 3 V18 M15 6 V21"] },
385
+ globe: { paths: ["M12 22 A10 10 0 1 0 12 2 A10 10 0 1 0 12 22 Z", "M2 12 H22 M12 2 C7 7 7 17 12 22 M12 2 C17 7 17 17 12 22 M4 7 H20 M4 17 H20"] },
386
+ compass: { paths: ["M12 22 A10 10 0 1 0 12 2 A10 10 0 1 0 12 22 Z", "M15.5 8.5 L13 13 L8.5 15.5 L11 11 Z M12 2 V4 M22 12 H20"] },
387
+ navigation: { paths: ["M12 2 L21 21 L12 17 L3 21 Z M12 17 V9"] },
388
+ flag: { paths: ["M5 22 V3 M5 4 C10 1 14 8 20 4 V15 C14 19 10 12 5 15"] },
389
+ mountain: { paths: ["M2 21 L8 9 L11 14 L16 5 L22 21 Z M6 21 L10 14 M13 11 L16 15"] },
390
+ tree: { paths: ["M12 22 V15 M5 15 L12 4 L19 15 Z M7 10 L12 2 L17 10 Z M8 22 H16"] },
391
+ leaf: { paths: ["M21 3 C10 3 4 6 4 14 C4 18 7 21 11 20 C19 18 21 11 21 3 Z M3 21 L14 10 M8 16 L8 12 M12 12 L16 12"] },
392
+ flower: {
393
+ paths: ["M12 13 V22 M12 18 C8 16 7 19 6 21 M12 18 C16 16 17 19 18 21"],
394
+ circles: [
395
+ [
396
+ 12,
397
+ 7,
398
+ 2
399
+ ],
400
+ [
401
+ 12,
402
+ 3,
403
+ 2
404
+ ],
405
+ [
406
+ 16,
407
+ 7,
408
+ 2
409
+ ],
410
+ [
411
+ 12,
412
+ 11,
413
+ 2
414
+ ],
415
+ [
416
+ 8,
417
+ 7,
418
+ 2
419
+ ]
420
+ ]
421
+ },
422
+ sun: { paths: ["M12 7 A5 5 0 1 0 12 17 A5 5 0 1 0 12 7 Z", "M12 2 V4 M12 20 V22 M2 12 H4 M20 12 H22 M5 5 L6.5 6.5 M17.5 17.5 L19 19 M19 5 L17.5 6.5 M6.5 17.5 L5 19"] },
423
+ moon: { paths: ["M20 15 A8 8 0 0 1 9 4 A9 9 0 1 0 20 15 Z"] },
424
+ cloud: { paths: ["M7 18 H18 A4 4 0 0 0 18 10 A7 7 0 0 0 5 11 A3.5 3.5 0 0 0 7 18 Z"] },
425
+ rain: { paths: ["M7 14 H18 A4 4 0 0 0 18 6 A7 7 0 0 0 5 7 A3.5 3.5 0 0 0 7 14 Z", "M8 17 L7 20 M13 17 L12 20 M18 17 L17 20"] },
426
+ snow: { paths: ["M12 2 V22 M3.3 7 L20.7 17 M3.3 17 L20.7 7", "M9 4 L12 7 L15 4 M9 20 L12 17 L15 20 M4 10 L8 9 L7 5 M20 14 L16 15 L17 19 M4 14 L8 15 L7 19 M20 10 L16 9 L17 5"] },
427
+ fire: { paths: ["M12 22 C5 22 4 16 7 11 C8 9 9 7 9 4 C13 7 14 10 13 12 C16 11 17 8 17 7 C23 15 19 22 12 22 Z", "M12 19 C9 19 9 16 11 14 C12 13 13 12 13 11 C17 14 16 19 12 19 Z"] },
428
+ water: { paths: ["M12 2 C9 7 4 12 4 16 A8 8 0 0 0 20 16 C20 12 15 7 12 2 Z", "M8 17 C9 19 11 20 13 20"] },
429
+ wind: { paths: ["M3 8 H16 C20 8 20 3 17 3 C15 3 14 4 14 5 M2 12 H20 C23 12 23 17 20 17 C18 17 17 16 17 15 M4 16 H11"] },
430
+ car: {
431
+ paths: ["M3 16 L5 8 H19 L21 16 V20 H3 Z M5 8 L7 4 H17 L19 8 M3 13 H21 M6 20 V22 M18 20 V22"],
432
+ circles: [[
433
+ 7,
434
+ 17,
435
+ 1
436
+ ], [
437
+ 17,
438
+ 17,
439
+ 1
440
+ ]]
441
+ },
442
+ bus: {
443
+ paths: ["M5 3 H19 A2 2 0 0 1 21 5 V19 H3 V5 A2 2 0 0 1 5 3 Z M3 12 H21 M6 6 H10 V10 H6 Z M14 6 H18 V10 H14 Z M6 19 V22 M18 19 V22"],
444
+ circles: [[
445
+ 7,
446
+ 16,
447
+ 1
448
+ ], [
449
+ 17,
450
+ 16,
451
+ 1
452
+ ]]
453
+ },
454
+ train: {
455
+ paths: ["M7 3 H17 A3 3 0 0 1 20 6 V16 A3 3 0 0 1 17 19 H7 A3 3 0 0 1 4 16 V6 A3 3 0 0 1 7 3 Z M4 12 H20 M8 22 L10 19 M16 22 L14 19"],
456
+ circles: [[
457
+ 8,
458
+ 7,
459
+ 1
460
+ ], [
461
+ 16,
462
+ 7,
463
+ 1
464
+ ]]
465
+ },
466
+ plane: { paths: ["M2 13 L10 11 L14 3 L17 3 L16 10 L22 12 L22 14 L15 14 L12 21 L10 21 L10 14 L3 16 Z"] },
467
+ bicycle: { paths: ["M5 18 A3 3 0 1 0 5 24 A3 3 0 1 0 5 18 Z M19 18 A3 3 0 1 0 19 24 A3 3 0 1 0 19 18 Z M5 21 L9 13 L13 21 H5 L11 16 L15 11 L19 21 M13 11 H17 M9 13 H6"] },
468
+ ship: { paths: ["M3 14 L6 8 H18 L21 14 L19 19 H5 Z M8 8 V4 H15 V8 M2 21 Q6 19 10 21 Q14 19 18 21 Q20 20 22 21"] },
469
+ rocket: {
470
+ paths: ["M12 2 C17 5 19 10 19 16 L12 21 L5 16 C5 10 7 5 12 2 Z M8 16 L4 20 V14 M16 16 L20 20 V14 M9 22 H15"],
471
+ circles: [[
472
+ 12,
473
+ 9,
474
+ 2
475
+ ]]
476
+ },
477
+ truck: {
478
+ paths: ["M2 6 H15 V18 H2 Z M15 11 H19 L22 14 V18 H15 Z M5 18 V21 M19 18 V21 M15 14 H21"],
479
+ circles: [[
480
+ 6,
481
+ 18,
482
+ 1.5
483
+ ], [
484
+ 18,
485
+ 18,
486
+ 1.5
487
+ ]]
488
+ },
489
+ walk: { paths: ["M12 3 A2 2 0 1 0 12 7 A2 2 0 1 0 12 3 Z M11 9 L8 14 L4 16 M10 12 L15 14 L18 19 M8 14 L10 18 L8 22 M15 14 L14 18 L17 22"] },
490
+ phone: {
491
+ paths: ["M7 2 H17 A2 2 0 0 1 19 4 V20 A2 2 0 0 1 17 22 H7 A2 2 0 0 1 5 20 V4 A2 2 0 0 1 7 2 Z M5 18 H19 M10 5 H14"],
492
+ circles: [[
493
+ 12,
494
+ 20,
495
+ .6
496
+ ]]
497
+ },
498
+ message: { paths: ["M3 4 H21 V17 H11 L5 21 V17 H3 Z M7 9 H17 M7 13 H14"] },
499
+ mail: { paths: ["M3 5 H21 V19 H3 Z M3 6 L12 13 L21 6"] },
500
+ bell: {
501
+ paths: ["M5 17 H19 L17 14 V9 A5 5 0 0 0 7 9 V14 Z M10 20 H14"],
502
+ circles: [[
503
+ 12,
504
+ 3,
505
+ 1
506
+ ]]
507
+ },
508
+ calendar: { paths: ["M3 5 H21 V21 H3 Z M3 9 H21 M7 2 V7 M17 2 V7 M7 13 H9 M12 13 H14 M17 13 H19 M7 17 H9 M12 17 H14"] },
509
+ clock: { paths: ["M12 22 A10 10 0 1 0 12 2 A10 10 0 1 0 12 22 Z M12 6 V12 L16 14"] },
510
+ alarm: { paths: ["M12 22 A8 8 0 1 0 12 6 A8 8 0 1 0 12 22 Z M12 10 V14 L15 16 M4 3 L2 6 M20 3 L22 6 M8 22 L6 24 M16 22 L18 24"] },
511
+ camera: {
512
+ paths: ["M3 7 H7 L9 4 H15 L17 7 H21 V20 H3 Z"],
513
+ circles: [[
514
+ 12,
515
+ 13,
516
+ 4
517
+ ], [
518
+ 12,
519
+ 13,
520
+ 2
521
+ ]]
522
+ },
523
+ image: {
524
+ paths: ["M3 4 H21 V20 H3 Z M4 18 L10 11 L14 15 L17 12 L21 17"],
525
+ circles: [[
526
+ 8,
527
+ 8,
528
+ 1.5
529
+ ]]
530
+ },
531
+ video: { paths: ["M3 6 H15 V18 H3 Z M15 10 L21 7 V17 L15 14 Z"] },
532
+ music: {
533
+ paths: ["M10 17 V5 L21 3 V15 M10 8 L21 6"],
534
+ circles: [[
535
+ 7,
536
+ 18,
537
+ 3
538
+ ], [
539
+ 18,
540
+ 16,
541
+ 3
542
+ ]]
543
+ },
544
+ microphone: { paths: ["M12 15 A3 3 0 0 0 15 12 V5 A3 3 0 0 0 9 5 V12 A3 3 0 0 0 12 15 Z M5 11 A7 7 0 0 0 19 11 M12 18 V22 M8 22 H16"] },
545
+ headphones: { paths: ["M3 13 V11 A9 9 0 0 1 21 11 V13 M3 13 H7 V20 H5 A2 2 0 0 1 3 18 Z M21 13 H17 V20 H19 A2 2 0 0 0 21 18 Z"] },
546
+ play: {
547
+ paths: ["M6 3 L21 12 L6 21 Z"],
548
+ filled: [0]
549
+ },
550
+ pause: {
551
+ paths: ["M6 4 H10 V20 H6 Z M14 4 H18 V20 H14 Z"],
552
+ filled: [0, 1]
553
+ },
554
+ stop: {
555
+ paths: ["M5 5 H19 V19 H5 Z"],
556
+ filled: [0]
557
+ },
558
+ record: {
559
+ paths: ["M3 12 A9 9 0 1 0 21 12 A9 9 0 1 0 3 12 Z"],
560
+ circles: [[
561
+ 12,
562
+ 12,
563
+ 3
564
+ ]]
565
+ },
566
+ volume: { paths: ["M3 9 H7 L13 4 V20 L7 15 H3 Z M17 9 Q21 12 17 15 M19 6 Q25 12 19 18"] },
567
+ wifi: {
568
+ paths: ["M2 8 Q12 0 22 8 M5 12 Q12 6 19 12 M8 16 Q12 12 16 16"],
569
+ circles: [[
570
+ 12,
571
+ 20,
572
+ 1
573
+ ]]
574
+ },
575
+ bluetooth: { paths: ["M12 2 L18 7 L12 12 L18 17 L12 22 V2 M5 7 L18 17 M5 17 L18 7"] },
576
+ battery: { paths: ["M3 7 H20 V19 H3 Z M20 10 H22 V16 H20 M6 10 V16 M10 10 V16 M14 10 V16"] },
577
+ signal: { paths: ["M3 20 V16 H6 V20 Z M9 20 V12 H12 V20 Z M15 20 V8 H18 V20 Z M21 20 V4 H24 V20 Z"] },
578
+ power: { paths: ["M12 2 V12 M6 5 A9 9 0 1 0 18 5"] },
579
+ monitor: { paths: ["M2 4 H22 V18 H2 Z M8 22 H16 M12 18 V22"] },
580
+ laptop: { paths: ["M4 4 H20 V16 H4 Z M2 20 H22 L20 17 H4 Z"] },
581
+ tablet: {
582
+ paths: ["M6 2 H18 A2 2 0 0 1 20 4 V20 A2 2 0 0 1 18 22 H6 A2 2 0 0 1 4 20 V4 A2 2 0 0 1 6 2 Z M4 18 H20"],
583
+ circles: [[
584
+ 12,
585
+ 20,
586
+ .6
587
+ ]]
588
+ },
589
+ keyboard: { paths: ["M2 6 H22 V18 H2 Z M5 9 H6 M9 9 H10 M13 9 H14 M17 9 H18 M5 12 H6 M9 12 H10 M13 12 H14 M17 12 H18 M7 15 H17"] },
590
+ mouse: { paths: ["M12 22 A8 8 0 0 0 20 14 V10 A8 8 0 0 0 4 10 V14 A8 8 0 0 0 12 22 Z M12 3 V11"] },
591
+ printer: {
592
+ paths: ["M6 8 V3 H18 V8 M6 17 H4 A2 2 0 0 1 2 15 V10 A2 2 0 0 1 4 8 H20 A2 2 0 0 1 22 10 V15 A2 2 0 0 1 20 17 H18 M6 14 H18 V21 H6 Z"],
593
+ circles: [[
594
+ 18,
595
+ 11,
596
+ .8
597
+ ]]
598
+ },
599
+ folder: { paths: ["M2 6 H10 L12 9 H22 V20 H2 Z M2 9 H22"] },
600
+ file: { paths: ["M5 2 H15 L20 7 V22 H5 Z M15 2 V7 H20 M8 12 H17 M8 16 H17"] },
601
+ document: { paths: ["M4 3 H17 L21 7 V21 H4 Z M17 3 V7 H21 M8 11 H17 M8 15 H17 M8 18 H14"] },
602
+ download: { paths: ["M12 2 V16 M6 10 L12 16 L18 10 M4 20 H20"] },
603
+ upload: { paths: ["M12 16 V2 M6 8 L12 2 L18 8 M4 20 H20"] },
604
+ share: {
605
+ paths: ["M6 12 L18 5 M6 12 L18 19"],
606
+ circles: [
607
+ [
608
+ 5,
609
+ 12,
610
+ 3
611
+ ],
612
+ [
613
+ 19,
614
+ 4,
615
+ 3
616
+ ],
617
+ [
618
+ 19,
619
+ 20,
620
+ 3
621
+ ]
622
+ ]
623
+ },
624
+ link: { paths: ["M9 15 L15 9 M7 17 L5 19 A4 4 0 0 1 2 13 L7 8 A4 4 0 0 1 13 8 M17 7 L19 5 A4 4 0 0 1 22 11 L17 16 A4 4 0 0 1 11 16"] },
625
+ search: {
626
+ paths: ["M15 15 L22 22"],
627
+ circles: [[
628
+ 10,
629
+ 10,
630
+ 7
631
+ ]]
632
+ },
633
+ settings: {
634
+ paths: ["M12 2 L14 4 L17 4 L18 7 L21 9 L20 12 L21 15 L18 17 L17 20 L14 20 L12 22 L10 20 L7 20 L6 17 L3 15 L4 12 L3 9 L6 7 L7 4 L10 4 Z"],
635
+ circles: [[
636
+ 12,
637
+ 12,
638
+ 3
639
+ ]]
640
+ },
641
+ sliders: {
642
+ paths: ["M3 6 H21 M3 12 H21 M3 18 H21"],
643
+ circles: [
644
+ [
645
+ 8,
646
+ 6,
647
+ 2
648
+ ],
649
+ [
650
+ 15,
651
+ 12,
652
+ 2
653
+ ],
654
+ [
655
+ 10,
656
+ 18,
657
+ 2
658
+ ]
659
+ ]
660
+ },
661
+ menu: { paths: ["M3 6 H21 M3 12 H21 M3 18 H21"] },
662
+ close: { paths: ["M5 5 L19 19 M19 5 L5 19"] },
663
+ check: { paths: ["M3 12 L9 18 L21 5"] },
664
+ plus: { paths: ["M12 3 V21 M3 12 H21"] },
665
+ minus: { paths: ["M3 12 H21"] },
666
+ edit: { paths: ["M4 16 L15 5 L19 9 L8 20 L3 21 Z M13 7 L17 11 M3 21 L4 16"] },
667
+ trash: { paths: ["M4 7 H20 M10 3 H14 M6 7 L7 21 H17 L18 7 M10 11 V17 M14 11 V17"] },
668
+ copy: { paths: ["M8 8 H20 V21 H8 Z M5 16 H3 V3 H15 V5"] },
669
+ save: { paths: ["M3 3 H18 L21 6 V21 H3 Z M7 3 V9 H16 V3 M7 21 V14 H17 V21"] },
670
+ lock: { paths: ["M5 11 H19 V21 H5 Z M8 11 V7 A4 4 0 0 1 16 7 V11"] },
671
+ unlock: { paths: ["M5 11 H19 V21 H5 Z M8 11 V7 A4 4 0 0 1 15 4"] },
672
+ key: {
673
+ paths: ["M14 10 L22 2 M18 6 L21 9 M15 9 L18 12"],
674
+ circles: [[
675
+ 8,
676
+ 14,
677
+ 6
678
+ ]]
679
+ },
680
+ user: {
681
+ paths: ["M4 21 C4 16 8 14 12 14 C16 14 20 16 20 21"],
682
+ circles: [[
683
+ 12,
684
+ 7,
685
+ 4
686
+ ]]
687
+ },
688
+ users: {
689
+ paths: ["M2 21 C2 17 5 15 9 15 M22 21 C22 17 19 15 15 15 M8 21 C8 16 11 14 15 14 C19 14 22 16 22 21"],
690
+ circles: [[
691
+ 8,
692
+ 7,
693
+ 3
694
+ ], [
695
+ 17,
696
+ 7,
697
+ 3
698
+ ]]
699
+ },
700
+ heart: {
701
+ paths: ["M12 21 L4 13 C-1 7 7 1 12 7 C17 1 25 7 20 13 Z"],
702
+ filled: [0]
703
+ },
704
+ star: {
705
+ paths: ["M12 2 L15 9 L22 10 L17 15 L18 22 L12 18 L6 22 L7 15 L2 10 L9 9 Z"],
706
+ filled: [0]
707
+ },
708
+ bookmark: { paths: ["M6 3 H18 V22 L12 18 L6 22 Z"] },
709
+ cart: {
710
+ paths: ["M2 3 H5 L8 17 H19 L22 7 H6 M9 21 H9.1 M18 21 H18.1"],
711
+ circles: [[
712
+ 10,
713
+ 21,
714
+ 1.5
715
+ ], [
716
+ 18,
717
+ 21,
718
+ 1.5
719
+ ]]
720
+ },
721
+ bag: { paths: ["M3 8 H21 L19 21 H5 Z M8 8 V6 A4 4 0 0 1 16 6 V8"] },
722
+ gift: { paths: ["M3 10 H21 V21 H3 Z M2 6 H22 V10 H2 Z M12 6 V21 M12 6 C5 7 5 2 8 2 C11 2 12 6 12 6 C12 6 13 2 16 2 C19 2 19 7 12 6 Z"] },
723
+ creditCard: { paths: ["M2 5 H22 V19 H2 Z M2 10 H22 M6 15 H11"] },
724
+ wallet: {
725
+ paths: ["M3 6 H19 A2 2 0 0 1 21 8 V20 H3 A2 2 0 0 1 1 18 V6 A3 3 0 0 1 4 3 H18 V6 M15 12 H21 V17 H15 A2 2 0 0 1 15 12 Z"],
726
+ circles: [[
727
+ 17,
728
+ 14.5,
729
+ .7
730
+ ]]
731
+ },
732
+ chart: { paths: ["M3 21 V3 M3 21 H22 M7 17 L11 12 L15 15 L21 7"] },
733
+ pieChart: { paths: ["M12 2 V12 H22 A10 10 0 1 1 12 2 Z M14 2 A8 8 0 0 1 22 10 H14 Z"] },
734
+ barChart: { paths: ["M3 21 H22 M5 18 V11 H9 V18 Z M12 18 V5 H16 V18 Z M19 18 V8 H22 V18 Z"] },
735
+ analytics: { paths: ["M3 21 V3 M3 21 H22 M6 17 L10 13 L13 15 L19 7 M16 7 H19 V10"] },
736
+ shield: { paths: ["M12 2 L21 6 V12 C21 17 17 20 12 22 C7 20 3 17 3 12 V6 Z M8 12 L11 15 L17 9"] },
737
+ warning: {
738
+ paths: ["M12 3 L22 21 H2 Z M12 9 V14"],
739
+ circles: [[
740
+ 12,
741
+ 18,
742
+ .8
743
+ ]]
744
+ },
745
+ info: {
746
+ paths: ["M12 22 A10 10 0 1 0 12 2 A10 10 0 1 0 12 22 M12 11 V17"],
747
+ circles: [[
748
+ 12,
749
+ 7,
750
+ .8
751
+ ]]
752
+ },
753
+ help: {
754
+ paths: ["M12 22 A10 10 0 1 0 12 2 A10 10 0 1 0 12 22 M9 9 A3 3 0 1 1 14 12 C12 13 12 14 12 15"],
755
+ circles: [[
756
+ 12,
757
+ 18,
758
+ .7
759
+ ]]
760
+ },
761
+ question: {
762
+ paths: ["M12 22 A10 10 0 1 0 12 2 A10 10 0 1 0 12 22 M9 9 A3 3 0 1 1 14 12 C12 13 12 14 12 15"],
763
+ circles: [[
764
+ 12,
765
+ 18,
766
+ .7
767
+ ]]
768
+ },
769
+ tag: {
770
+ paths: ["M3 4 H13 L22 13 L13 22 L3 12 Z"],
771
+ circles: [[
772
+ 8,
773
+ 9,
774
+ 1
775
+ ]]
776
+ },
777
+ puzzle: { paths: ["M3 3 H9 A3 3 0 1 0 15 3 H21 V9 A3 3 0 1 1 21 15 V21 H15 A3 3 0 1 0 9 21 H3 V15 A3 3 0 1 1 3 9 Z"] },
778
+ code: { paths: ["M8 5 L2 12 L8 19 M16 5 L22 12 L16 19 M14 3 L10 21"] },
779
+ database: { paths: ["M3 5 C3 1 21 1 21 5 V19 C21 23 3 23 3 19 Z M3 5 C3 9 21 9 21 5 M3 12 C3 16 21 16 21 12"] },
780
+ cloudDownload: { paths: ["M7 15 H17 A4 4 0 0 0 17 7 A7 7 0 0 0 4 8 A3.5 3.5 0 0 0 7 15 Z M12 12 V21 M8 17 L12 21 L16 17"] }
781
+ };
782
+ A("icon");
783
+ function Le(e, t) {
784
+ let n = t.name;
785
+ if (typeof n != "string" || !Object.prototype.hasOwnProperty.call(Ie, n)) throw Error(`Unknown Canvas UI icon: ${String(n)}.`);
786
+ let r = Ie[n], i = u(t.size, 24);
787
+ if (i <= 0) throw RangeError("Icon size must be greater than zero.");
788
+ if (t.variant !== void 0 && t.variant !== "outline" && t.variant !== "solid") throw TypeError(`Unknown Canvas UI icon variant: ${String(t.variant)}.`);
789
+ let a = t.variant === "solid" ? "solid" : "outline", o = u(t.strokeWidth, 2);
790
+ if (o <= 0) throw RangeError("Icon strokeWidth must be greater than zero.");
791
+ e.save(), e.translate(i / 2, i / 2), e.scale(i / 24, i / 24), e.translate(-12, -12), e.strokeStyle = d(t.color, k(e, "--canvas-ui-icon-color", "#333")), e.fillStyle = e.strokeStyle, e.lineWidth = (a === "solid" ? Math.max(o, 4) : o) * 24 / i, e.lineCap = "round", e.lineJoin = "round";
792
+ for (let t = 0; t < r.paths.length; t++) e.beginPath(), Re(e, r.paths[t]), a === "solid" && r.filled?.includes(t) && e.fill(), e.stroke();
793
+ for (let [t, n, i] of r.circles ?? []) e.beginPath(), e.arc(t, n, i, 0, Math.PI * 2), a === "solid" ? e.fill() : e.stroke();
794
+ e.restore();
795
+ }
796
+ function Re(e, t) {
797
+ let n = t.match(/[A-Z]|-?(?:\d+\.?\d*|\.\d+)/g) ?? [], r = 0, i = 0, a = 0, o = 0;
798
+ for (let t = 0; t < n.length;) {
799
+ let s = n[t++], c = () => Number(n[t++]);
800
+ switch (s) {
801
+ case "M":
802
+ r = c(), i = c(), a = r, o = i, e.moveTo(r, i);
803
+ break;
804
+ case "L":
805
+ r = c(), i = c(), e.lineTo(r, i);
806
+ break;
807
+ case "H":
808
+ r = c(), e.lineTo(r, i);
809
+ break;
810
+ case "V":
811
+ i = c(), e.lineTo(r, i);
812
+ break;
813
+ case "C": {
814
+ let t = c(), n = c(), a = c(), o = c();
815
+ r = c(), i = c(), e.bezierCurveTo(t, n, a, o, r, i);
816
+ break;
817
+ }
818
+ case "Q": {
819
+ let t = c(), n = c();
820
+ r = c(), i = c(), e.quadraticCurveTo(t, n, r, i);
821
+ break;
822
+ }
823
+ case "A": {
824
+ let t = c(), n = c(), a = c(), o = c() !== 0, s = c() !== 0, l = c(), u = c();
825
+ ze(e, r, i, t, n, a, o, s, l, u), r = l, i = u;
826
+ break;
827
+ }
828
+ case "Z":
829
+ e.closePath(), r = a, i = o;
830
+ break;
831
+ default: throw Error(`Unsupported path command: ${s}.`);
832
+ }
833
+ }
834
+ }
835
+ function ze(e, t, n, r, i, a, o, s, c, l) {
836
+ let u = Math.abs(r), d = Math.abs(i);
837
+ if (u === 0 || d === 0 || t === c && n === l) {
838
+ e.lineTo(c, l);
839
+ return;
840
+ }
841
+ let f = a * Math.PI / 180, p = Math.cos(f), m = Math.sin(f), h = (t - c) / 2, g = (n - l) / 2, _ = p * h + m * g, v = -m * h + p * g, y = _ ** 2 / u ** 2 + v ** 2 / d ** 2;
842
+ if (y > 1) {
843
+ let e = Math.sqrt(y);
844
+ u *= e, d *= e;
845
+ }
846
+ let ee = Math.max(0, u ** 2 * d ** 2 - u ** 2 * v ** 2 - d ** 2 * _ ** 2), te = u ** 2 * v ** 2 + d ** 2 * _ ** 2, b = te === 0 ? 0 : (o === s ? -1 : 1) * Math.sqrt(ee / te), x = b * u * v / d, S = b * -d * _ / u, ne = p * x - m * S + (t + c) / 2, re = m * x + p * S + (n + l) / 2, C = (_ - x) / u, w = (v - S) / d, T = (-_ - x) / u, E = (-v - S) / d, ie = Math.atan2(w, C), D = C * E - w * T, ae = C * T + w * E, O = Math.atan2(D, ae);
847
+ s && O < 0 && (O += Math.PI * 2), !s && O > 0 && (O -= Math.PI * 2), e.ellipse(ne, re, u, d, f, ie, ie + O, !s);
848
+ }
849
+ A("datePicker");
850
+ function Be(e, t) {
851
+ let n = u(t.width, 200), r = u(t.height, 36), i = Math.max(0, Math.min(u(t.borderRadius, 4), n / 2, r / 2)), a = String(t.value ?? "");
852
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = d(t.bgColor, k(e, "--canvas-ui-input-background", "#fff")), e.fill(), e.strokeStyle = t.focused ? d(t.focusBorderColor, k(e, "--canvas-ui-input-focus-border", "#1677ff")) : d(t.borderColor, k(e, "--canvas-ui-input-border", "#d9d9d9")), e.stroke(), e.font = `${u(t.fontSize, 14)}px sans-serif`, e.textBaseline = "middle", e.fillStyle = a ? d(t.color, k(e, "--canvas-ui-input-color", "#333")) : k(e, "--canvas-ui-input-placeholder-color", "#999"), e.fillText(a || d(t.placeholder, "Select date"), 8, r / 2), e.fillStyle = d(t.color, k(e, "--canvas-ui-input-color", "#666")), e.strokeStyle = e.fillStyle, e.lineWidth = 1.4;
853
+ let o = n - 20, s = r / 2 - 7;
854
+ e.strokeRect(o, s + 2, 13, 12), e.beginPath(), e.moveTo(o, s + 5), e.lineTo(o + 13, s + 5), e.moveTo(o + 3, s), e.lineTo(o + 3, s + 4), e.moveTo(o + 10, s), e.lineTo(o + 10, s + 4), e.stroke();
855
+ }
856
+ // tools/angular-build/.stage/angular-compiled/components/size.js
857
+ function M(e, t) {
858
+ return u(Ve(e)?.width, u(e.width, t));
859
+ }
860
+ function N(e, t) {
861
+ return u(Ve(e)?.height, u(e.height, t));
862
+ }
863
+ function Ve(e) {
864
+ let t = e.size;
865
+ if (typeof t == "object" && t && !Array.isArray(t)) return t;
866
+ }
867
+ // tools/angular-build/.stage/angular-compiled/components/ChoiceGroup/choiceGroup.js
868
+ function P(e) {
869
+ return Array.isArray(e) ? e.map((e) => typeof e == "string" ? {
870
+ label: e,
871
+ value: e
872
+ } : e) : [];
873
+ }
874
+ function He(e) {
875
+ let t = P(e.options), n = e.direction !== "vertical", r = u(e.gap, 12), i = u(e.fontSize, 14), a = u(e.optionHeight, 28), o = t.reduce((e, t) => e + F(t.label, i), 0) + r * Math.max(0, t.length - 1), s = t.length * a + r * Math.max(0, t.length - 1);
876
+ return {
877
+ width: M(e, n ? o : 200),
878
+ height: N(e, n ? a : s)
879
+ };
880
+ }
881
+ function Ue(e, t, n) {
882
+ let r = P(t.options), i = t.direction !== "vertical", a = u(t.gap, 12), o = u(t.fontSize, 14), s = u(t.optionHeight, 28), c = t.value;
883
+ e.font = `${o}px sans-serif`, e.textBaseline = "middle", e.lineWidth = 1;
884
+ let l = 0, f = 0;
885
+ for (let u of r) {
886
+ let r = Array.isArray(c) ? c.includes(u.value) : c === u.value, p = f + s / 2, m = l + 9, h = u.disabled === !0;
887
+ e.strokeStyle = h ? d(t.disabledColor, k(e, "--canvas-ui-choice-disabled", "#bfbfbf")) : d(t.borderColor, k(e, "--canvas-ui-choice-border", "#d9d9d9")), e.fillStyle = h ? k(e, "--canvas-ui-choice-disabled-background", "#f5f5f5") : "#fff", n === "radio" ? (e.beginPath(), e.arc(m, p, 8, 0, Math.PI * 2), e.fill(), e.stroke(), r && (e.beginPath(), e.arc(m, p, 4, 0, Math.PI * 2), e.fillStyle = d(t.activeColor, k(e, "--canvas-ui-choice-active", "#1677ff")), e.fill())) : (e.beginPath(), e.roundRect(l + 1, p - 8, 16, 16, 3), e.fill(), e.stroke(), r && (e.strokeStyle = d(t.activeColor, k(e, "--canvas-ui-choice-active", "#1677ff")), e.lineWidth = 2, e.beginPath(), e.moveTo(l + 5, p), e.lineTo(l + 8, p + 3), e.lineTo(l + 13, p - 4), e.stroke(), e.lineWidth = 1)), e.fillStyle = h ? d(t.disabledColor, k(e, "--canvas-ui-choice-disabled", "#bfbfbf")) : d(t.color, k(e, "--canvas-ui-choice-color", "#333")), e.fillText(u.label, l + 23, p), i ? l += F(u.label, o) + a : f += s + a;
888
+ }
889
+ }
890
+ function We(e, t, n) {
891
+ let r = P(e.options), i = e.direction !== "vertical", a = u(e.gap, 12), o = u(e.fontSize, 14), s = u(e.optionHeight, 28), c = He(e);
892
+ if (i) {
893
+ let e = 0;
894
+ for (let i of r) {
895
+ let r = F(i.label, o);
896
+ if (t >= e && t <= e + r && n >= 0 && n <= c.height) return i;
897
+ e += r + a;
898
+ }
899
+ return;
900
+ }
901
+ let l = Math.floor(n / (s + a));
902
+ return n - l * (s + a) <= s && t >= 0 && t <= c.width ? r[l] : void 0;
903
+ }
904
+ function F(e, t) {
905
+ return Math.max(24, C(e, `${t}px sans-serif`)) + 24;
906
+ }
907
+ // tools/angular-build/.stage/angular-compiled/components/ChoiceGroup/logic.js
908
+ function Ge(e, t) {
909
+ return e === t.value ? void 0 : t.value;
910
+ }
911
+ function Ke(e, t) {
912
+ let n = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
913
+ return n.includes(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
914
+ }
915
+ A("radio");
916
+ function qe(e, t) {
917
+ Ue(e, t, "radio");
918
+ }
919
+ A("checkbox");
920
+ function Je(e, t) {
921
+ Ue(e, t, "checkbox");
922
+ }
923
+ A("upload");
924
+ function Ye(e, t) {
925
+ let n = u(t.width, 120), r = u(t.height, 40), i = u(t.borderRadius, 6);
926
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = d(t.backgroundColor, k(e, "--canvas-ui-button-background", "#1677ff")), e.fill(), t.borderColor && (e.strokeStyle = d(t.borderColor, "#1677ff"), e.stroke());
927
+ let a = d(t.text, "Choose File"), o = d(t.textColor, k(e, "--canvas-ui-button-color", "#fff")), s = u(t.fontSize, 15), c = u(t.iconSize, Math.round(s * 1.1));
928
+ e.font = `${s}px sans-serif`, e.textBaseline = "middle", e.textAlign = "left";
929
+ let l = b(e, a, Math.max(0, n - 12 - c - 6)), f = l ? e.measureText(l).width : 0, p = (n - (c + (l ? 6 : 0) + f)) / 2, m = r / 2;
930
+ e.save(), e.translate(p, m - c / 2), Le(e, {
931
+ name: t.icon ?? "upload",
932
+ size: c,
933
+ color: o
934
+ }), e.restore(), p += c + (l ? 6 : 0), e.fillStyle = o, e.fillText(l, p, m);
935
+ }
936
+ A("carousel"), A("carouselItem");
937
+ function Xe(e, t) {
938
+ let n = u(t.width, 300), r = u(t.height, 180);
939
+ e.fillStyle = d(t.backgroundColor, "transparent"), e.fillRect(0, 0, n, r);
940
+ }
941
+ function Ze(e, t) {
942
+ let n = u(t.width, 300), r = u(t.height, 180), i = u(t._itemCount, 0);
943
+ if (!(i < 2)) {
944
+ if (t.showArrows !== !1) {
945
+ let i = d(t.arrowColor, k(e, "--canvas-ui-carousel-arrow", "#fff")), a = r / 2;
946
+ Qe(e, 22, a, -1, i), Qe(e, n - 22, a, 1, i);
947
+ }
948
+ if (t.showDots !== !1) {
949
+ let a = d(t.dotColor, k(e, "--canvas-ui-carousel-dot", "rgba(255,255,255,0.65)")), o = d(t.activeDotColor, k(e, "--canvas-ui-carousel-active-dot", "#1677ff")), s = (n - (i - 1) * 14) / 2, c = r - 14;
950
+ e.beginPath();
951
+ for (let t = 0; t < i; t++) e.moveTo(s + t * 14 + 4, c), e.arc(s + t * 14, c, 4, 0, Math.PI * 2);
952
+ e.fillStyle = a, e.fill();
953
+ let l = Math.max(0, Math.min(i - 1, u(t._activeIndex, 0)));
954
+ e.beginPath(), e.arc(s + l * 14, c, 4, 0, Math.PI * 2), e.fillStyle = o, e.fill();
955
+ }
956
+ }
957
+ }
958
+ function Qe(e, t, n, r, i) {
959
+ e.fillStyle = "rgba(0, 0, 0, 0.3)", e.beginPath(), e.arc(t, n, 16, 0, Math.PI * 2), e.fill(), e.strokeStyle = i, e.lineWidth = 2, e.beginPath(), e.moveTo(t - r * 3, n - 6), e.lineTo(t + r * 3, n), e.lineTo(t - r * 3, n + 6), e.stroke();
960
+ }
961
+ // tools/angular-build/.stage/angular-compiled/components/Carousel/logic.js
962
+ function $e(e, t, n, r, i, a, o) {
963
+ if (!(r < 2 || t < 0 || t > a || n < 0 || n > o)) {
964
+ if (e.showArrows !== !1 && Math.abs(n - o / 2) <= 20) {
965
+ if (t <= 42) return i - 1;
966
+ if (t >= a - 42) return i + 1;
967
+ }
968
+ if (e.showDots !== !1 && n >= o - 26) {
969
+ let e = (a - (r - 1) * 14) / 2, n = Math.round((t - e) / 14);
970
+ if (n >= 0 && n < r && Math.abs(t - (e + n * 14)) <= 9) return n;
971
+ }
972
+ }
973
+ }
974
+ function et(e, t, n, r) {
975
+ return n <= 0 ? 0 : r ? (e % n + n) % n : Math.max(0, Math.min(n - 1, e));
976
+ }
977
+ A("rect");
978
+ function tt(e, t) {
979
+ let n = u(t.width, 100), r = u(t.height, 40), i = Math.max(0, Math.min(u(t.radius, 0), n / 2, r / 2));
980
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = d(t.color, k(e, "--canvas-ui-rect-background", "transparent")), e.fill(), t.stroke && (e.strokeStyle = d(t.stroke, k(e, "--canvas-ui-rect-border", "#000")), e.lineWidth = u(t.strokeWidth, 1), e.stroke());
981
+ }
982
+ A("slider");
983
+ function nt(e, t) {
984
+ let n = u(t.width, 160), r = u(t.height, 32), i = u(t.min, 0), a = u(t.max, 100), o = Math.max(i, Math.min(a, u(t.value, i))), s = a === i ? 0 : (o - i) / (a - i), c = r / 2, l = Math.min(8, r / 3), f = l + s * Math.max(0, n - l * 2);
985
+ e.beginPath(), e.roundRect(l, c - 3, Math.max(0, n - l * 2), 6, 3), e.fillStyle = d(t.trackColor, k(e, "--canvas-ui-slider-track", "#f0f0f0")), e.fill(), e.beginPath(), e.roundRect(l, c - 3, Math.max(0, f - l), 6, 3), e.fillStyle = d(t.activeColor, k(e, "--canvas-ui-slider-active", "#1677ff")), e.fill(), e.beginPath(), e.arc(f, c, l, 0, Math.PI * 2), e.fillStyle = d(t.thumbColor, k(e, "--canvas-ui-slider-thumb", "#fff")), e.fill(), e.strokeStyle = d(t.activeColor, k(e, "--canvas-ui-slider-active", "#1677ff")), e.stroke();
986
+ }
987
+ // tools/angular-build/.stage/angular-compiled/components/Slider/logic.js
988
+ function rt(e, t, n) {
989
+ let r = Math.min(8, u(e.height, 32) / 3), i = u(e.min, 0), a = u(e.max, 100);
990
+ if (a <= i) return;
991
+ let o = Math.max(2 ** -52, u(e.step, 1)), s = i + Math.max(0, Math.min(1, (n - r) / Math.max(1, t - r * 2))) * (a - i);
992
+ return Math.max(i, Math.min(a, i + Math.round((s - i) / o) * o));
993
+ }
994
+ A("switch");
995
+ function it(e, t) {
996
+ let n = u(t.width, 44), r = u(t.height, 24), i = r / 2, a = !!t.checked;
997
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = a ? d(t.onColor, k(e, "--canvas-ui-switch-on", "#1677ff")) : d(t.offColor, k(e, "--canvas-ui-switch-off", "#d9d9d9")), e.fill(), e.beginPath(), e.arc(a ? n - i : i, i, Math.max(1, i - 3), 0, Math.PI * 2), e.fillStyle = d(t.thumbColor, k(e, "--canvas-ui-switch-thumb", "#fff")), e.fill();
998
+ }
999
+ // tools/angular-build/.stage/angular-compiled/components/Switch/logic.js
1000
+ function at(e) {
1001
+ let t = !e.props.checked;
1002
+ e.setProps({ checked: t });
1003
+ let n = e.props.onChange;
1004
+ typeof n == "function" && n(t);
1005
+ }
1006
+ // tools/angular-build/.stage/angular-compiled/video-assets.js
1007
+ var I = /* @__PURE__ */ new Map();
1008
+ function ot(e) {
1009
+ let t = I.get(e);
1010
+ if (t) return t.refs += 1, t;
1011
+ let n = document.createElement("video");
1012
+ n.preload = "auto", n.playsInline = !0, n.crossOrigin = "anonymous";
1013
+ let r = {
1014
+ video: n,
1015
+ error: null,
1016
+ refs: 1,
1017
+ loadListeners: /* @__PURE__ */ new Set(),
1018
+ timeListeners: /* @__PURE__ */ new Set()
1019
+ };
1020
+ I.set(e, r);
1021
+ let i = !0;
1022
+ return n.addEventListener("loadeddata", () => {
1023
+ i = !1, r.error = null, r.loadListeners.forEach((e) => e(null));
1024
+ }), n.addEventListener("error", () => {
1025
+ i ? (i = !1, n.removeAttribute("crossorigin"), n.load()) : (r.error = /* @__PURE__ */ Error(`Canvas video failed to load: ${e}`), r.loadListeners.forEach((e) => e(r.error)));
1026
+ }), n.addEventListener("timeupdate", () => {
1027
+ r.timeListeners.forEach((e) => e(n.currentTime, n.duration));
1028
+ }), n.src = e, r;
1029
+ }
1030
+ function st(e) {
1031
+ return ot(e).video;
1032
+ }
1033
+ function ct(e) {
1034
+ return I.get(e)?.video ?? null;
1035
+ }
1036
+ function lt(e, t, n) {
1037
+ let r = ot(e);
1038
+ return r.loadListeners.add(t), r.timeListeners.add(n), r.video.readyState >= 2 && t(r.error), () => {
1039
+ r.loadListeners.delete(t), r.timeListeners.delete(n);
1040
+ };
1041
+ }
1042
+ function ut(e) {
1043
+ let t = I.get(e);
1044
+ t && (--t.refs, t.refs > 0 || (I.delete(e), t.video.pause(), t.video.removeAttribute("src"), t.video.load()));
1045
+ }
1046
+ A("video");
1047
+ function dt(e, t) {
1048
+ let n = t.src;
1049
+ if (typeof n != "string" || !n) return;
1050
+ let r = ct(n) ?? st(n);
1051
+ if (typeof t.muted == "boolean" && (r.muted = t.muted), typeof t.loop == "boolean" && (r.loop = t.loop), typeof t.currentTime == "number" && Number.isFinite(t.currentTime)) {
1052
+ let e = Math.max(0, t.currentTime);
1053
+ Math.abs(r.currentTime - e) > 1e-4 && (r.currentTime = e);
1054
+ }
1055
+ if (t.paused === !1 || t.autoplay && t.paused !== !0 ? r.play().catch(() => void 0) : t.paused === !0 && !r.paused && r.pause(), r.readyState < 2 || r.videoWidth === 0) return;
1056
+ let i = u(t.width, r.videoWidth), a = u(t.height, r.videoHeight);
1057
+ e.save(), T(e, r, r.videoWidth, r.videoHeight, i, a, t.objectFit ?? "contain"), e.restore();
1058
+ }
1059
+ A("tabs"), A("tabItem");
1060
+ function ft(e, t) {
1061
+ let n = u(t.width, 300), r = u(t.headerHeight, 40), i = t._tabItems ?? [];
1062
+ if (!i.length) return;
1063
+ let a = n / i.length;
1064
+ e.fillStyle = d(t.backgroundColor, k(e, "--canvas-ui-tabs-background", "#fff")), e.fillRect(0, 0, n, r), e.font = "14px sans-serif", e.textAlign = "center", e.textBaseline = "middle", i.forEach((n, i) => {
1065
+ e.fillStyle = n.disabled ? k(e, "--canvas-ui-tabs-disabled-color", "#bfbfbf") : n.selected ? d(t.activeColor, k(e, "--canvas-ui-tabs-active-color", "#1677ff")) : d(t.textColor, k(e, "--canvas-ui-tabs-color", "#595959")), e.fillText(b(e, n.title, Math.max(0, a - 16)), a * (i + .5), r / 2), n.selected && (e.fillStyle = d(t.indicatorColor, k(e, "--canvas-ui-tabs-indicator", "#1677ff")), e.fillRect(a * i, r - 2, a, 2));
1066
+ }), e.textAlign = "left";
1067
+ }
1068
+ // tools/angular-build/.stage/angular-compiled/components/Tabs/logic.js
1069
+ function pt(e, t, n, r, i) {
1070
+ if (n >= i || e.length === 0) return;
1071
+ let a = e[Math.floor(t / (r / e.length))];
1072
+ if (a && !a.props.disabled && typeof a.props.id == "string") return a.props.id;
1073
+ }
1074
+ // tools/angular-build/.stage/angular-compiled/components/Text/text.js
1075
+ var mt = 16;
1076
+ A("text");
1077
+ function ht(e, t) {
1078
+ return e > 0 ? Math.max(1, Math.floor(e / (t * f))) : 0;
1079
+ }
1080
+ function gt(e) {
1081
+ let t = u(e.fontSize, mt), n = `${t}px ${d(e.fontFamily, "sans-serif")}`, r = (e) => C(e, n), i = String(e.text ?? ""), a = u(e.width, u(e._availableWidth, 0)), o = ee(r, i, a, u(e.maxLines, ht(u(e._availableHeight, 0), t)));
1082
+ return {
1083
+ lines: o,
1084
+ width: a > 0 ? a : r(i),
1085
+ height: o.length * t * f
1086
+ };
1087
+ }
1088
+ function _t(e, t) {
1089
+ let n = u(t.fontSize, mt);
1090
+ e.font = `${n}px ${d(t.fontFamily, "sans-serif")}`, e.textBaseline = t.baseline ?? "top";
1091
+ let r = t.textAlign === "center" || t.textAlign === "right" ? t.textAlign : "left";
1092
+ e.textAlign = r, e.fillStyle = d(t.color, k(e, "--canvas-ui-text-color", "#333"));
1093
+ let i = gt(t), a = r === "center" ? i.width / 2 : r === "right" ? i.width : 0;
1094
+ i.lines.forEach((t, r) => {
1095
+ e.fillText(t, a, r * n * f);
1096
+ }), e.textAlign = "left";
1097
+ }
1098
+ A("textarea");
1099
+ function vt(e, t) {
1100
+ Pe(e, t, !0);
1101
+ }
1102
+ // tools/angular-build/.stage/angular-compiled/renderer.js
1103
+ var yt = {
1104
+ rect: tt,
1105
+ circle: me,
1106
+ customDraw: he,
1107
+ canvasView: _e,
1108
+ text: _t,
1109
+ input: Pe,
1110
+ datePicker: Be,
1111
+ radio: qe,
1112
+ checkbox: Je,
1113
+ upload: Ye,
1114
+ carousel: Xe,
1115
+ textarea: vt,
1116
+ dropdown: Se,
1117
+ slider: nt,
1118
+ switch: it,
1119
+ button: le,
1120
+ image: Me,
1121
+ icon: Le,
1122
+ progress: Ne,
1123
+ tabs: ft,
1124
+ collapseItem: be,
1125
+ video: dt
1126
+ };
1127
+ function L(e) {
1128
+ return e;
1129
+ }
1130
+ var R = .5, bt = class {
1131
+ constructor() {
1132
+ this.gridCaches = /* @__PURE__ */ new WeakMap(), this.cacheEnabled = !0;
1133
+ }
1134
+ invalidateGridCache() {
1135
+ this.gridCaches = /* @__PURE__ */ new WeakMap();
1136
+ }
1137
+ render(e, t, n = !0) {
1138
+ this.cacheEnabled = n, n || this.invalidateGridCache();
1139
+ let r = e.canvas;
1140
+ e.save(), e.setTransform(1, 0, 0, 1, 0, 0), e.clearRect(0, 0, r.width, r.height), e.restore(), this.drawNode(e, t), this.drawDialogs(e, t), this.drawDropdownOverlays(e, t), t.traverse((e) => {
1141
+ e.dirty = !1;
1142
+ });
1143
+ }
1144
+ safeDraw(e, t, n) {
1145
+ if (t) {
1146
+ e.save();
1147
+ try {
1148
+ t(e, n.props);
1149
+ } catch (e) {
1150
+ console.error(`[canvas-ui] Skipped drawing <${n.type}> after a render error:`, e);
1151
+ } finally {
1152
+ e.restore();
1153
+ }
1154
+ }
1155
+ }
1156
+ drawNode(e, t) {
1157
+ if (t.props.visible !== !1 && t.type !== "dialog") {
1158
+ if (e.save(), e.translate(z(t.props.x, 0), z(t.props.y, 0)), e.rotate(z(t.props.rotation, 0)), e.scale(z(t.props.scaleX, 1), z(t.props.scaleY, 1)), t.props.disabled === !0 && (e.globalAlpha *= R), t.type === "gridItem" && typeof t.props.backgroundColor == "string" && St(e, t), t.type !== "root" && this.safeDraw(e, yt[t.type], t), t.type === "grid" && typeof t.props.height == "number") this.drawCachedGrid(e, t) || this.drawGrid(e, t);
1159
+ else if (t.type === "tabs") {
1160
+ let n = z(t.props.width, 300), r = z(t.props.height, 200), i = z(t.props.headerHeight, 40);
1161
+ e.save(), e.beginPath(), e.rect(0, i, n, Math.max(0, r - i)), e.clip(), t.children.forEach((t) => this.drawNode(e, t)), e.restore();
1162
+ } else t.type === "carousel" ? (e.save(), e.beginPath(), e.rect(0, 0, z(t.props.width, 300), z(t.props.height, 180)), e.clip(), t.children.forEach((t) => this.drawNode(e, t)), e.restore(), this.safeDraw(e, L(Ze), t)) : t.children.forEach((t) => this.drawNode(e, t));
1163
+ e.restore();
1164
+ }
1165
+ }
1166
+ drawGrid(e, t) {
1167
+ e.save(), e.beginPath(), e.rect(0, 0, z(t.props._gridWidth, z(t.props.width, 0)), z(t.props.height, 0)), e.clip(), t.children.forEach((t) => this.drawNode(e, t)), e.restore(), Ct(e, t);
1168
+ }
1169
+ drawCachedGrid(e, t) {
1170
+ if (!this.cacheEnabled || t.props.virtual !== !0 || e.globalAlpha !== 1 || e.globalCompositeOperation !== "source-over" || e.filter !== "none" || e.shadowColor !== "rgba(0, 0, 0, 0)" || xt(t)) return !1;
1171
+ let n = e.getTransform();
1172
+ if (n.b !== 0 || n.c !== 0 || n.a <= 0 || n.d <= 0) return !1;
1173
+ let r = z(t.props._gridWidth, z(t.props.width, 0)), i = z(t.props.height, 0), a = Math.floor(n.e), o = Math.floor(n.f), s = n.e - a, c = n.f - o, l = Math.ceil(s + r * n.a), u = Math.ceil(c + i * n.d);
1174
+ if (l <= 0 || u <= 0 || l > 4096 || u > 4096) return !1;
1175
+ let d = this.gridCaches.get(t);
1176
+ if (!d || t.dirty || d.sourceCanvas !== e.canvas || d.width !== r || d.height !== i || d.scaleX !== n.a || d.scaleY !== n.d || d.offsetX !== s || d.offsetY !== c) {
1177
+ let a = d?.canvas ?? e.canvas.ownerDocument.createElement("canvas");
1178
+ a.width = l, a.height = u;
1179
+ let o = a.getContext("2d");
1180
+ if (!o) return this.gridCaches.delete(t), !1;
1181
+ oe(a, e.canvas), o.setTransform(n.a, 0, 0, n.d, s, c), this.drawGrid(o, t), d = {
1182
+ canvas: a,
1183
+ sourceCanvas: e.canvas,
1184
+ width: r,
1185
+ height: i,
1186
+ scaleX: n.a,
1187
+ scaleY: n.d,
1188
+ offsetX: s,
1189
+ offsetY: c
1190
+ }, this.gridCaches.set(t, d);
1191
+ }
1192
+ return e.save(), e.setTransform(1, 0, 0, 1, 0, 0), e.drawImage(d.canvas, a, o), e.restore(), !0;
1193
+ }
1194
+ drawDialogs(e, t) {
1195
+ if (t.props.visible !== !1) {
1196
+ if (t.type === "dialog") {
1197
+ if (!t.props.open) return;
1198
+ e.save(), e.translate(z(t.props.x, 0), z(t.props.y, 0)), e.rotate(z(t.props.rotation, 0)), e.scale(z(t.props.scaleX, 1), z(t.props.scaleY, 1)), t.props.disabled === !0 && (e.globalAlpha *= R), this.safeDraw(e, L(fe), t);
1199
+ let n = z(t.props._dialogPanelX, 0), r = z(t.props._dialogPanelY, 0), i = z(t.props.width, 420), a = z(t.props.height, 240);
1200
+ e.save(), e.beginPath(), e.rect(n + 12, r + 56, Math.max(0, i - 24), Math.max(0, a - 112)), e.clip(), t.children.forEach((t) => this.drawNode(e, t)), e.restore(), e.restore();
1201
+ } else t.children.forEach((t) => this.drawDialogs(e, t));
1202
+ }
1203
+ }
1204
+ drawDropdownOverlays(e, t) {
1205
+ t.props.visible !== !1 && (e.save(), e.translate(z(t.props.x, 0), z(t.props.y, 0)), e.rotate(z(t.props.rotation, 0)), e.scale(z(t.props.scaleX, 1), z(t.props.scaleY, 1)), t.props.disabled === !0 && (e.globalAlpha *= R), t.type === "dropdown" && t.props.open && this.safeDraw(e, L(Ce), t), t.type === "grid" && typeof t.props.height == "number" || t.type === "carousel" ? (e.save(), e.beginPath(), e.rect(0, 0, t.type === "grid" ? z(t.props._gridWidth, z(t.props.width, 0)) : z(t.props.width, 300), z(t.props.height, t.type === "carousel" ? 180 : 0)), e.clip(), t.children.forEach((t) => this.drawDropdownOverlays(e, t)), e.restore()) : t.children.forEach((t) => this.drawDropdownOverlays(e, t)), e.restore());
1206
+ }
1207
+ };
1208
+ function xt(e) {
1209
+ for (let t of e.children) if (t.type === "video" || t.type === "image" || t.type === "customDraw" || t.type === "canvasView" || xt(t)) return !0;
1210
+ return !1;
1211
+ }
1212
+ function St(e, t) {
1213
+ e.fillStyle = t.props.backgroundColor, e.fillRect(0, 0, z(t.props._gridItemWidth, 0), z(t.props._gridItemHeight, 0));
1214
+ }
1215
+ function Ct(e, t) {
1216
+ let n = z(t.props.height, 0), r = z(t.props._gridContentHeight, n);
1217
+ if (n <= 0 || r <= n) return;
1218
+ let i = z(t.props._gridWidth, z(t.props.width, 0)), a = Math.max(0, i - 6), o = Math.min(n, Math.max(18, n * n / r)), s = r - n, c = (n - o) * z(t.props._scrollTop, 0) / s;
1219
+ e.fillStyle = "rgba(0, 0, 0, 0.08)", e.fillRect(a, 0, 6, n), e.fillStyle = "rgba(0, 0, 0, 0.35)", e.beginPath(), e.roundRect(a + 1, c, 4, o, 3), e.fill();
1220
+ }
1221
+ function z(e, t) {
1222
+ return typeof e == "number" && Number.isFinite(e) ? e : t;
1223
+ }
1224
+ // tools/angular-build/.stage/angular-compiled/types.js
1225
+ var B = [
1226
+ 1,
1227
+ 0,
1228
+ 0,
1229
+ 1,
1230
+ 0,
1231
+ 0
1232
+ ];
1233
+ // tools/angular-build/.stage/angular-compiled/engine/transform.js
1234
+ function V(e, t) {
1235
+ let n = u(t.rotation, 0), r = u(t.scaleX, 1), i = u(t.scaleY, 1), a = Math.cos(n), o = Math.sin(n), s = a * r, c = o * r, l = -o * i, d = a * i, f = u(t.x, 0), p = u(t.y, 0), [m, h, g, _, v, y] = e;
1236
+ return [
1237
+ m * s + g * c,
1238
+ h * s + _ * c,
1239
+ m * l + g * d,
1240
+ h * l + _ * d,
1241
+ m * f + g * p + v,
1242
+ h * f + _ * p + y
1243
+ ];
1244
+ }
1245
+ function H(e, t, n) {
1246
+ let [r, i, a, o, s, c] = n, l = r * o - i * a;
1247
+ if (!l) return null;
1248
+ let u = e - s, d = t - c;
1249
+ return {
1250
+ x: (o * u - a * d) / l,
1251
+ y: (-i * u + r * d) / l
1252
+ };
1253
+ }
1254
+ function U(e) {
1255
+ let t = [], n = e;
1256
+ for (; n;) t.push(n), n = n.parent;
1257
+ return t.reverse().reduce((e, t) => V(e, t.props), B);
1258
+ }
1259
+ // tools/angular-build/.stage/angular-compiled/engine/nodes.js
1260
+ function wt(e) {
1261
+ let t = e;
1262
+ for (; t;) {
1263
+ if (t.props.visible === !1) return !1;
1264
+ t = t.parent;
1265
+ }
1266
+ return !0;
1267
+ }
1268
+ function Tt(e, t) {
1269
+ let n = t && e.props.visible !== !1;
1270
+ return n ? e.type === "dialog" && e.props.open === !0 || e.children.some((e) => Tt(e, n)) : !1;
1271
+ }
1272
+ function Et(e) {
1273
+ if (e.type === "root") throw Error("The Canvas root is not an event target.");
1274
+ let t = e.props._key, n = typeof t == "string" ? t.indexOf(":") : -1;
1275
+ return {
1276
+ type: e.type,
1277
+ key: typeof t != "string" || n < 0 ? null : t.slice(n + 1)
1278
+ };
1279
+ }
1280
+ function Dt(e) {
1281
+ return typeof e == "object" && !!e && "nodeName" in e && e.nodeName === "CANVAS" && "width" in e && typeof e.width == "number" && "height" in e && typeof e.height == "number";
1282
+ }
1283
+ function Ot(e) {
1284
+ return e === "button" || e === "upload" || e === "switch" || e === "slider" || e === "dropdown" || e === "tabs" || e === "collapse" || e === "grid" || e === "radio" || e === "checkbox" || e === "carousel" || e === "customDraw" || e === "canvasView";
1285
+ }
1286
+ function W(e, t) {
1287
+ let n = e.parent;
1288
+ for (; n;) {
1289
+ if (n === t) return !0;
1290
+ n = n.parent;
1291
+ }
1292
+ return !1;
1293
+ }
1294
+ function G(e, t) {
1295
+ let n = t && e.props._userVisible !== !1;
1296
+ e.setProps({ visible: n }), e.children.forEach((e) => G(e, n));
1297
+ }
1298
+ function K(e) {
1299
+ if (e.type === "radio" || e.type === "checkbox") return He(e.props);
1300
+ if (e.type === "icon") {
1301
+ let t = u(e.props.size, 24);
1302
+ return {
1303
+ width: t,
1304
+ height: t
1305
+ };
1306
+ }
1307
+ if (e.type === "customDraw") return {
1308
+ width: u(e.props.width, 0),
1309
+ height: u(e.props.height, 0)
1310
+ };
1311
+ if (e.type === "text") return {
1312
+ width: M(e.props, u(e.props._textWidth, 0)),
1313
+ height: N(e.props, u(e.props._textHeight, 0))
1314
+ };
1315
+ let t = e.type === "upload" ? 120 : e.type === "switch" ? 44 : e.type === "slider" ? 160 : e.type === "button" ? 120 : 200, n = e.type === "upload" ? 40 : e.type === "switch" ? 24 : e.type === "slider" ? 32 : e.type === "button" ? 40 : 36;
1316
+ return e.type === "switch" || e.type === "slider" || e.type === "button" || e.type === "upload" || e.type === "dropdown" || e.type === "datePicker" ? {
1317
+ width: u(e.props.width, t),
1318
+ height: u(e.props.height, n)
1319
+ } : {
1320
+ width: M(e.props, t),
1321
+ height: N(e.props, n)
1322
+ };
1323
+ }
1324
+ function kt(e, t) {
1325
+ let n = e;
1326
+ for (; n;) {
1327
+ if (n.props.visible === !1) return !1;
1328
+ if (n.type === "grid" && typeof n.props.height == "number") {
1329
+ let [e, r, i, a, o, s] = t.transform, c = H(e * t.width / 2 + i * t.height / 2 + o, r * t.width / 2 + a * t.height / 2 + s, U(n)), l = u(n.props._gridWidth, u(n.props.width, 0)), d = u(n.props.height, 0);
1330
+ if (!c || c.x < 0 || c.x > l || c.y < 0 || c.y > d) return !1;
1331
+ }
1332
+ n = n.parent;
1333
+ }
1334
+ return !0;
1335
+ }
1336
+ // tools/angular-build/.stage/angular-compiled/engine/text-controls.js
1337
+ function At(e, t, n) {
1338
+ let r = /* @__PURE__ */ new Map();
1339
+ e.scene.traverse((e) => {
1340
+ let t = e.props._canvasInputId;
1341
+ typeof t == "string" && r.set(t, e);
1342
+ });
1343
+ let i = new Set(n.map((e) => e.id));
1344
+ for (let [e, n] of t.textControls) i.has(e) && r.get(e) === n.node || (n.dispose(), t.textControls.delete(e), t.inputValues.delete(e));
1345
+ for (let i of n) {
1346
+ let n = r.get(i.id);
1347
+ if (!n) continue;
1348
+ let a = {
1349
+ ...i.layout,
1350
+ visible: kt(n, i.layout)
1351
+ }, o = i.props.value ?? t.inputValues.get(i.id) ?? i.props.defaultValue ?? "";
1352
+ n.setProps({
1353
+ ...n.props,
1354
+ ...i.props,
1355
+ value: o,
1356
+ _canvasInputId: i.id,
1357
+ _controlledValue: i.props.value !== void 0
1358
+ });
1359
+ let s = t.textControls.get(i.id);
1360
+ if (s) {
1361
+ s.layout = a, e.inputBridge.update(i.id, {
1362
+ ...i.props,
1363
+ value: o
1364
+ }, a);
1365
+ continue;
1366
+ }
1367
+ let c = {
1368
+ input: (e, r) => {
1369
+ n.props._controlledValue !== !0 && t.inputValues.set(i.id, e), n.setProps({
1370
+ value: e,
1371
+ cursorPos: r
1372
+ });
1373
+ let a = n.props.onChange;
1374
+ typeof a == "function" && a(e);
1375
+ },
1376
+ selection: (e) => n.setProps({ cursorPos: e }),
1377
+ focus: () => {
1378
+ n.setProps({ focused: !0 });
1379
+ let e = n.props.onFocus;
1380
+ typeof e == "function" && e();
1381
+ },
1382
+ blur: () => {
1383
+ n.setProps({ focused: !1 });
1384
+ let e = n.props.onBlur;
1385
+ typeof e == "function" && e();
1386
+ },
1387
+ scroll: (e, t, r, i) => {
1388
+ (n.props._scrollTop !== e || n.props._scrollHeight !== t || n.props._scrollClientHeight !== r || n.props._scrollClientWidth !== i) && n.setProps({
1389
+ _scrollTop: e,
1390
+ _scrollHeight: t,
1391
+ _scrollClientHeight: r,
1392
+ _scrollClientWidth: i
1393
+ });
1394
+ }
1395
+ }, l = e.inputBridge.mount(i.id, {
1396
+ ...i.props,
1397
+ value: o
1398
+ }, a, c);
1399
+ t.textControls.set(i.id, {
1400
+ node: n,
1401
+ dispose: l,
1402
+ layout: a
1403
+ });
1404
+ }
1405
+ }
1406
+ function q(e, t) {
1407
+ for (let n of t.textControls.values()) {
1408
+ let t = kt(n.node, n.layout);
1409
+ n.layout = {
1410
+ ...n.layout,
1411
+ visible: t
1412
+ }, e.inputBridge.update(String(n.node.props._canvasInputId), n.node.props, n.layout);
1413
+ }
1414
+ }
1415
+ function jt(e, t) {
1416
+ t.children.forEach((t) => jt(e, t));
1417
+ let n = t.props._canvasInputId;
1418
+ typeof n == "string" && (e.textControls.get(n)?.dispose(), e.textControls.delete(n), e.inputValues.delete(n));
1419
+ }
1420
+ // tools/angular-build/.stage/angular-compiled/engine/images.js
1421
+ function Mt(e, t, n) {
1422
+ let r = /* @__PURE__ */ new Set(), i = (e) => e.forEach((e) => {
1423
+ e.type === "image" && typeof e.props.src == "string" && e.props.src && r.add(e.props.src), i(e.children);
1424
+ });
1425
+ i(n);
1426
+ for (let [e, n] of t.imageSubscriptions) r.has(e) || (n(), t.imageSubscriptions.delete(e));
1427
+ for (let n of r) {
1428
+ if (t.imageSubscriptions.has(n)) continue;
1429
+ let r = je(n, (t) => {
1430
+ e.scene.markDirty(), t && e.scene.traverse((e) => {
1431
+ e.type === "image" && e.props.src === n && e.props.onError?.(t);
1432
+ });
1433
+ });
1434
+ t.imageSubscriptions.set(n, r);
1435
+ }
1436
+ }
1437
+ // tools/angular-build/.stage/angular-compiled/engine/videos.js
1438
+ function Nt(e, t) {
1439
+ let n = /* @__PURE__ */ new Set();
1440
+ e.scene.traverse((e) => {
1441
+ if (e.type !== "video") return;
1442
+ let t = e.props.src;
1443
+ typeof t == "string" && t && n.add(t);
1444
+ });
1445
+ for (let [e, r] of t.videoSubscriptions) n.has(e) || (r(), t.videoSubscriptions.delete(e), ut(e));
1446
+ for (let r of n) {
1447
+ if (t.videoSubscriptions.has(r)) continue;
1448
+ let n = lt(r, (t) => {
1449
+ e.scene.markDirty(), t && e.scene.traverse((e) => {
1450
+ e.type === "video" && e.props.src === r && e.props.onError?.(t);
1451
+ });
1452
+ }, (t, n) => {
1453
+ e.scene.traverse((e) => {
1454
+ e.type === "video" && e.props.src === r && e.props.onTimeUpdate?.(t, n);
1455
+ });
1456
+ });
1457
+ t.videoSubscriptions.set(r, n);
1458
+ }
1459
+ }
1460
+ function Pt(e, t) {
1461
+ if (t.videoSubscriptions.size === 0 && t.videoFrames.size === 0) return;
1462
+ let n = !1, r = /* @__PURE__ */ new Set();
1463
+ e.scene.traverse((e) => {
1464
+ if (e.type !== "video") return;
1465
+ r.add(e);
1466
+ let i = e.props.src;
1467
+ if (typeof i != "string" || !i || e.props.visible === !1) return;
1468
+ let a = t.videoFrames.get(e);
1469
+ if (!a || a.src !== i) {
1470
+ t.videoFrames.set(e, {
1471
+ src: i,
1472
+ time: -1,
1473
+ playing: !1
1474
+ }), n = !0;
1475
+ return;
1476
+ }
1477
+ let o = ct(i), s = !(!o || o.paused || o.ended), c = o ? o.currentTime : 0;
1478
+ (s || c !== a.time || a.playing) && (n = !0), a.time = c, a.playing = s;
1479
+ });
1480
+ for (let e of t.videoFrames.keys()) r.has(e) || t.videoFrames.delete(e);
1481
+ n && e.scene.markDirty();
1482
+ }
1483
+ // tools/angular-build/.stage/angular-compiled/engine/vnodes.js
1484
+ function Ft(e) {
1485
+ let t = Lt(e), n = t.children.map((e, t) => {
1486
+ let n = u(e.props.y, 0);
1487
+ return {
1488
+ child: e,
1489
+ index: t,
1490
+ top: n,
1491
+ bottom: n + u(e.props._availableHeight, 0),
1492
+ maxBottom: 0
1493
+ };
1494
+ });
1495
+ n.sort((e, t) => e.top - t.top || e.index - t.index);
1496
+ let r = -Infinity;
1497
+ for (let e of n) r = Math.max(r, e.bottom), e.maxBottom = r;
1498
+ return {
1499
+ token: e.props._gridCacheToken,
1500
+ width: t.width,
1501
+ contentHeight: t.contentHeight,
1502
+ entries: n
1503
+ };
1504
+ }
1505
+ function It(e, t, n, r) {
1506
+ let i = t - r, a = t + n + r, o = 0, s = e.entries.length;
1507
+ for (; o < s;) {
1508
+ let t = Math.floor((o + s) / 2);
1509
+ e.entries[t].maxBottom < i ? o = t + 1 : s = t;
1510
+ }
1511
+ let c = [];
1512
+ for (let t = o; t < e.entries.length; t++) {
1513
+ let n = e.entries[t];
1514
+ if (n.top > a) break;
1515
+ n.bottom >= i && c.push(n);
1516
+ }
1517
+ return c.sort((e, t) => e.index - t.index).map(({ child: e, index: n }) => ({
1518
+ ...e,
1519
+ props: {
1520
+ ...e.props,
1521
+ _gridVirtualIndex: n,
1522
+ _gridBaseY: e.props.y,
1523
+ y: u(e.props.y, 0) - t
1524
+ }
1525
+ }));
1526
+ }
1527
+ function Lt(e) {
1528
+ let t = e.props.columns, n = e.props.cellWidth, r = e.props.width, i = e.props.cellHeight, a = e.props.gap ?? 0;
1529
+ if (!Number.isInteger(t) || t < 1) throw RangeError("Grid columns must be a positive integer.");
1530
+ if (typeof i != "number" || !Number.isFinite(i) || i <= 0) throw RangeError("Grid cellHeight must be a positive finite number.");
1531
+ if (typeof a != "number" || !Number.isFinite(a) || a < 0) throw RangeError("Grid gap must be a non-negative finite number.");
1532
+ if (r !== void 0 && (typeof r != "number" || !Number.isFinite(r) || r <= 0)) throw RangeError("Grid width must be a positive finite number when provided.");
1533
+ if (e.props.height !== void 0 && (typeof e.props.height != "number" || !Number.isFinite(e.props.height) || e.props.height <= 0)) throw RangeError("Grid height must be a positive finite number when provided.");
1534
+ let o = n === void 0 ? typeof r == "number" && Number.isFinite(r) && r > 0 ? (r - a * (t - 1)) / t : NaN : n;
1535
+ if (typeof o != "number" || !Number.isFinite(o) || o <= 0) throw RangeError("Grid requires a positive finite cellWidth, or a positive width large enough for its columns and gaps.");
1536
+ let s = typeof r == "number" && Number.isFinite(r) ? r : o * t + a * (t - 1), c = /* @__PURE__ */ new Set(), l = 0, d = 0;
1537
+ return {
1538
+ children: e.children.map((e) => {
1539
+ let n = e.type === "gridItem", r = n ? e.props.columnSpan ?? 1 : 1, s = n ? e.props.rowSpan ?? 1 : 1;
1540
+ if (!Number.isInteger(r) || r < 1 || r > t) throw RangeError("GridItem columnSpan must be a positive integer no greater than Grid columns.");
1541
+ if (!Number.isInteger(s) || s < 1) throw RangeError("GridItem rowSpan must be a positive integer.");
1542
+ let f = Math.floor(l / t), p = l % t;
1543
+ for (; p + r > t || !zt(c, f, p, r, s);) l++, f = Math.floor(l / t), p = l % t;
1544
+ for (let e = f; e < f + s; e++) for (let t = p; t < p + r; t++) c.add(`${e}:${t}`);
1545
+ d = Math.max(d, f * (i + a) + s * i + (s - 1) * a), l++;
1546
+ let m = o * r + a * (r - 1), h = i * s + a * (s - 1);
1547
+ return {
1548
+ ...e,
1549
+ props: {
1550
+ ...e.props,
1551
+ x: u(e.props.x, 0) + p * (o + a),
1552
+ y: u(e.props.y, 0) + f * (i + a),
1553
+ _availableWidth: m,
1554
+ _availableHeight: h,
1555
+ ...n ? {
1556
+ _gridItemWidth: m,
1557
+ _gridItemHeight: h
1558
+ } : {}
1559
+ },
1560
+ children: n ? Rt(e.children, m, h) : e.children
1561
+ };
1562
+ }),
1563
+ contentHeight: d,
1564
+ width: s
1565
+ };
1566
+ }
1567
+ function Rt(e, t, n) {
1568
+ return e.map((e) => ({
1569
+ ...e,
1570
+ props: {
1571
+ ...e.props,
1572
+ _availableWidth: t,
1573
+ _availableHeight: n
1574
+ }
1575
+ }));
1576
+ }
1577
+ function zt(e, t, n, r, i) {
1578
+ for (let a = t; a < t + i; a++) for (let t = n; t < n + r; t++) if (e.has(`${a}:${t}`)) return !1;
1579
+ return !0;
1580
+ }
1581
+ function Bt(e, t, n) {
1582
+ return e.map((e) => ({
1583
+ ...e,
1584
+ props: {
1585
+ ...e.props,
1586
+ x: u(e.props.x, 0) + t,
1587
+ y: u(e.props.y, 0) + n
1588
+ }
1589
+ }));
1590
+ }
1591
+ function J(e, t) {
1592
+ return e.map((e) => {
1593
+ let n = typeof e.props._userVisible == "boolean" ? e.props._userVisible : e.props.visible !== !1, r = t && n;
1594
+ return {
1595
+ ...e,
1596
+ props: {
1597
+ ...e.props,
1598
+ visible: r,
1599
+ _userVisible: n
1600
+ },
1601
+ children: J(e.children, r)
1602
+ };
1603
+ });
1604
+ }
1605
+ function Vt(e, t, n, r) {
1606
+ return t ? e === t.from ? -t.direction * r * n : e === t.to ? t.direction * r * (1 - n) : 0 : 0;
1607
+ }
1608
+ function Ht(e) {
1609
+ let t = u(e.height, 0), n = u(e._gridContentHeight, t), r = u(e._gridWidth, u(e.width, 0)), i = Math.max(0, n - t), a = i > 0 ? Math.min(t, Math.max(18, t * t / n)) : t;
1610
+ return {
1611
+ width: r,
1612
+ height: t,
1613
+ maxScroll: i,
1614
+ thumbHeight: a,
1615
+ trackX: Math.max(0, r - 6),
1616
+ thumbY: i > 0 ? (t - a) * u(e._scrollTop, 0) / i : 0
1617
+ };
1618
+ }
1619
+ // tools/angular-build/.stage/angular-compiled/engine/carousel.js
1620
+ function Ut(e, t) {
1621
+ return e.duration <= 0 ? 1 : Math.max(0, Math.min(1, (t - e.startedAt) / e.duration));
1622
+ }
1623
+ function Wt(e, t, n, r) {
1624
+ let i = u(e.props.width, 300);
1625
+ e.children.filter((e) => e.type === "carouselItem").forEach((e, a) => {
1626
+ let o = n ? (a === n.from || a === n.to) && e.props._userVisible !== !1 : a === t && e.props._userVisible !== !1, s = u(e.props._carouselBaseX, u(e.props.x, 0)), c = Vt(a, n, r, i);
1627
+ e.setProps({ x: s + c }), G(e, o);
1628
+ });
1629
+ }
1630
+ function Gt(e, t, n) {
1631
+ for (let e of t.textControls.values()) W(e.node, n) && (e.layout = {
1632
+ ...e.layout,
1633
+ transform: U(e.node)
1634
+ });
1635
+ q(e, t);
1636
+ }
1637
+ function Kt(e, t, n, r) {
1638
+ let i = n.children.filter((e) => e.type === "carouselItem");
1639
+ if (!i.length) return;
1640
+ let a = u(n.props._activeIndex, 0), o = et(r, a, i.length, n.props.loop !== !1);
1641
+ if (o === a) return;
1642
+ let s = String(n.props._stateKey ?? "");
1643
+ if (t.carouselTransitions.has(s)) return;
1644
+ let c = Math.max(0, u(n.props.transitionDuration, 450));
1645
+ if (c > 0) {
1646
+ let i = {
1647
+ from: a,
1648
+ to: o,
1649
+ direction: r > a ? 1 : -1,
1650
+ startedAt: t.currentFrameTime,
1651
+ duration: c
1652
+ };
1653
+ t.carouselTransitions.set(s, i), t.carouselFrameTimes.set(s, t.currentFrameTime), n.setProps({
1654
+ _activeIndex: o,
1655
+ _transitionProgress: 0
1656
+ }), Wt(n, o, i, 0), Gt(e, t, n), n.props.activeIndex === void 0 && t.carouselSelections.set(s, o), n.props.onChange?.(o);
1657
+ } else t.carouselFrameTimes.set(s, t.currentFrameTime), n.props.activeIndex === void 0 && (t.carouselSelections.set(s, o), n.setProps({ _activeIndex: o }), i.forEach((e, t) => {
1658
+ G(e, t === o && e.props._userVisible !== !1);
1659
+ }), q(e, t)), n.props.onChange?.(o);
1660
+ }
1661
+ function qt(e, t, n) {
1662
+ t.currentFrameTime = n;
1663
+ let r = /* @__PURE__ */ new Set();
1664
+ e.scene.traverse((i) => {
1665
+ if (i.type !== "carousel") return;
1666
+ let a = String(i.props._stateKey ?? "");
1667
+ r.add(a);
1668
+ let o = t.carouselTransitions.get(a);
1669
+ if (o) {
1670
+ if (n - o.startedAt >= o.duration) t.carouselTransitions.delete(a), i.setProps({ _transitionProgress: 1 }), Wt(i, o.to, null, 1), Gt(e, t, i), t.carouselFrameTimes.set(a, n);
1671
+ else {
1672
+ let r = Ut(o, n);
1673
+ i.setProps({ _transitionProgress: r });
1674
+ let a = r * r * (3 - 2 * r);
1675
+ Wt(i, o.to, o, a), Gt(e, t, i);
1676
+ }
1677
+ return;
1678
+ }
1679
+ if (!wt(i) || i.props.autoplay === !1 || i.children.filter((e) => e.type === "carouselItem").length < 2) {
1680
+ t.carouselFrameTimes.delete(a);
1681
+ return;
1682
+ }
1683
+ let s = t.carouselFrameTimes.get(a);
1684
+ if (s === void 0) {
1685
+ t.carouselFrameTimes.set(a, n);
1686
+ return;
1687
+ }
1688
+ let c = Math.max(250, u(i.props.interval, 3e3));
1689
+ n - s < c || (t.carouselFrameTimes.set(a, n), Kt(e, t, i, u(i.props._activeIndex, 0) + 1));
1690
+ });
1691
+ for (let e of t.carouselFrameTimes.keys()) r.has(e) || t.carouselFrameTimes.delete(e);
1692
+ for (let e of t.carouselTransitions.keys()) r.has(e) || t.carouselTransitions.delete(e);
1693
+ }
1694
+ // tools/angular-build/.stage/angular-compiled/engine/layout.js
1695
+ var Jt = 100;
1696
+ function Yt(e) {
1697
+ return gt(e);
1698
+ }
1699
+ function Xt(e) {
1700
+ let t = u(e.props.height, 0);
1701
+ if (t > 0) return t;
1702
+ let n = Jt;
1703
+ for (let t of e.children) {
1704
+ let e = t.type === "text" ? Yt(t.props).height : u(t.props.height, 0);
1705
+ n = Math.max(n, u(t.props.y, 0) + e);
1706
+ }
1707
+ return n;
1708
+ }
1709
+ function Zt(e, t) {
1710
+ let n = e[t];
1711
+ return Array.isArray(n) ? n.join(",") : typeof n == "string" ? n : "";
1712
+ }
1713
+ function Qt(e, t, n, r) {
1714
+ let i = n.activeKey;
1715
+ if (typeof i == "string") return i;
1716
+ let a = e.tabSelections.get(t), o = typeof n.defaultActiveKey == "string" ? n.defaultActiveKey : String(r[0]?.props.id ?? ""), s = a ?? o;
1717
+ return e.tabSelections.set(t, s), s;
1718
+ }
1719
+ function $t(e, t, n) {
1720
+ if (Array.isArray(n.activeKeys)) {
1721
+ let e = n.activeKeys.filter((e) => typeof e == "string");
1722
+ return new Set(n.accordion ? e.slice(0, 1) : e);
1723
+ }
1724
+ let r = e.collapseSelections.get(t), i = Array.isArray(n.defaultActiveKeys) ? n.defaultActiveKeys.filter((e) => typeof e == "string") : [], a = n.accordion ? i.slice(0, 1) : i, o = r ?? new Set(a);
1725
+ return e.collapseSelections.set(t, o), o;
1726
+ }
1727
+ function en(e, t) {
1728
+ let n = u(e.props.headerHeight, 40), r = u(e.props.width, 300), i = 0;
1729
+ for (let a of e.children) {
1730
+ if (a.type !== "collapseItem") continue;
1731
+ let e = t.has(String(a.props.id ?? ""));
1732
+ a.setProps({
1733
+ y: i + u(a.props._userY, 0),
1734
+ _expanded: e,
1735
+ _collapseWidth: r,
1736
+ _collapseHeaderHeight: n
1737
+ }), a.children.forEach((t) => G(t, e)), i += n + (e ? tn(a) : 0);
1738
+ }
1739
+ }
1740
+ function tn(e) {
1741
+ return u(e.props._collapseBodyHeight, u(e.props.height, Jt));
1742
+ }
1743
+ function nn(e, t, n, r, i, a, o) {
1744
+ return n.map((n, s) => {
1745
+ let c = l(n, s, a), d = n.props, f = V(r, d), p = i && d.visible !== !1 && (n.type !== "dialog" || d.open === !0), m = { ...d };
1746
+ if (m._userVisible = typeof d._userVisible == "boolean" ? d._userVisible : d.visible !== !1, n.type === "text") {
1747
+ let e = Yt(m);
1748
+ m._textWidth = e.width, m._textHeight = e.height;
1749
+ }
1750
+ if (n.type === "input" || n.type === "datePicker" || n.type === "textarea") {
1751
+ let e = `${n.type}:${c}`;
1752
+ m._canvasInputId = e, m._controlledValue = d.value !== void 0, o.push({
1753
+ id: e,
1754
+ props: d,
1755
+ layout: {
1756
+ width: u(d.width, 200),
1757
+ height: u(d.height, 36),
1758
+ transform: f,
1759
+ visible: p
1760
+ }
1761
+ });
1762
+ }
1763
+ let h = n.children;
1764
+ if (n.type === "grid") {
1765
+ let e = c;
1766
+ if (d.virtual === !0 && typeof d.height != "number") throw RangeError("Virtual Grid requires a positive finite height.");
1767
+ let r = d.virtual === !0 ? t.virtualGridLayouts.get(e) : void 0;
1768
+ r && r.token !== d._gridCacheToken && (r = void 0), d.virtual === !0 && t.activeVirtualGridKeys.add(e), d.virtual === !0 && !r && (r = Ft(n), t.virtualGridLayouts.set(e, r));
1769
+ let i = r ?? Lt(n), a = typeof d.height == "number" ? Math.max(0, i.contentHeight - d.height) : 0, o = Math.max(0, Math.min(a, t.gridScrollPositions.get(e) ?? 0));
1770
+ t.gridScrollPositions.set(e, o), m._gridStateKey = e, m._gridWidth = i.width, m._gridContentHeight = i.contentHeight, m._scrollTop = o, h = "entries" in i ? It(i, o, u(d.height, 0), u(d.cellHeight, 0) + u(d.gap, 0)) : i.children.map((e) => ({
1771
+ ...e,
1772
+ props: {
1773
+ ...e.props,
1774
+ _gridBaseY: e.props.y,
1775
+ y: u(e.props.y, 0) - o
1776
+ }
1777
+ }));
1778
+ }
1779
+ if (n.type === "dialog") {
1780
+ m._viewportWidth = e.context.canvas.width / e.pixelRatio, m._viewportHeight = e.context.canvas.height / e.pixelRatio;
1781
+ let t = u(d.width, 420), n = u(d.height, 240), r = (u(m._viewportWidth, 0) - t) / 2, i = (u(m._viewportHeight, 0) - n) / 2;
1782
+ m._dialogPanelX = r, m._dialogPanelY = i, h = Bt(h, r + 24, i + 64);
1783
+ } else if (n.type === "tabs") {
1784
+ let e = h.filter((e) => e.type === "tabItem"), n = `${c}:${Zt(d, "defaultActiveKey")}`, r = Qt(t, n, d, e);
1785
+ m._activeKey = r, m._tabItems = e.map((e) => ({
1786
+ title: e.props.title,
1787
+ disabled: e.props.disabled,
1788
+ selected: e.props.id === r
1789
+ }));
1790
+ let i = u(d.headerHeight, 40);
1791
+ h = h.map((e) => ({
1792
+ ...e,
1793
+ props: {
1794
+ ...e.props,
1795
+ visible: e.type !== "tabItem" || e.props.visible !== !1 && e.props.id === r,
1796
+ _userVisible: e.props._userVisible ?? e.props.visible !== !1
1797
+ },
1798
+ children: e.type === "tabItem" ? J(Bt(e.children, 0, i), e.props.visible !== !1 && e.props.id === r) : e.children
1799
+ })), m._stateKey = n;
1800
+ } else if (n.type === "carousel") {
1801
+ let e = h.filter((e) => e.type === "carouselItem"), n = c, r = d.activeIndex, i = typeof r == "number" && Number.isInteger(r) ? r : t.carouselSelections.get(n) ?? (typeof d.defaultActiveIndex == "number" ? d.defaultActiveIndex : 0), a = i, o = t.carouselTransitions.get(n);
1802
+ o && r !== void 0 && i !== o.to && (t.carouselTransitions.delete(n), o = void 0);
1803
+ let s = e.length ? Math.max(0, Math.min(e.length - 1, a)) : 0;
1804
+ o && (o.from >= e.length || o.to >= e.length) && (t.carouselTransitions.delete(n), o = void 0), o && (a = o.to), d.activeIndex === void 0 && t.carouselSelections.set(n, s), m._stateKey = n, m._activeIndex = o ? o.to : s, m._itemCount = e.length, m._transitionProgress = o ? Ut(o, t.currentFrameTime) : 1;
1805
+ let l = u(m._transitionProgress, 1), f = l * l * (3 - 2 * l);
1806
+ h = h.map((t) => ({
1807
+ ...t,
1808
+ props: {
1809
+ ...t.props,
1810
+ _carouselBaseX: t.props._carouselBaseX ?? u(t.props.x, 0),
1811
+ x: t.type === "carouselItem" ? u(t.props.x, 0) + Vt(e.indexOf(t), o, f, u(d.width, 300)) : t.props.x,
1812
+ visible: t.type !== "carouselItem" || t.props.visible !== !1 && (o ? e.indexOf(t) === o.from || e.indexOf(t) === o.to : e[s] === t),
1813
+ _userVisible: t.props._userVisible ?? t.props.visible !== !1
1814
+ },
1815
+ children: t.type === "carouselItem" ? J(t.children, t.props.visible !== !1 && (o ? e.indexOf(t) === o.from || e.indexOf(t) === o.to : e[s] === t)) : t.children
1816
+ }));
1817
+ } else if (n.type === "collapse") {
1818
+ let e = `${c}:${Zt(d, "defaultActiveKeys")}`, n = $t(t, e, d), r = u(d.headerHeight, 40), i = u(d.width, 300), a = 0;
1819
+ h = h.map((e) => {
1820
+ if (e.type !== "collapseItem") return e;
1821
+ let t = n.has(String(e.props.id ?? "")), o = Xt(e), s = t ? o : 0, c = {
1822
+ ...e,
1823
+ props: {
1824
+ ...e.props,
1825
+ x: u(e.props.x, 0),
1826
+ y: a + u(e.props.y, 0),
1827
+ _userY: u(e.props.y, 0),
1828
+ visible: e.props.visible !== !1,
1829
+ _userVisible: e.props._userVisible ?? e.props.visible !== !1,
1830
+ _expanded: t,
1831
+ _collapseWidth: i,
1832
+ _collapseHeaderHeight: r,
1833
+ _collapseBodyHeight: o,
1834
+ backgroundColor: e.props.backgroundColor ?? d.backgroundColor,
1835
+ textColor: e.props.textColor ?? d.textColor,
1836
+ borderColor: e.props.borderColor ?? d.borderColor
1837
+ },
1838
+ children: J(Bt(e.children, 0, r), t && e.props.visible !== !1)
1839
+ };
1840
+ return a += r + s, c;
1841
+ }), m._stateKey = e, m._activeKeys = [...n];
1842
+ }
1843
+ return {
1844
+ ...n,
1845
+ props: m,
1846
+ children: nn(e, t, h, f, p, c, o)
1847
+ };
1848
+ });
1849
+ }
1850
+ // tools/angular-build/.stage/angular-compiled/engine/hit-test.js
1851
+ function Y(e, t, n, r) {
1852
+ let i = t.getBoundingClientRect();
1853
+ return !i.width || !i.height ? null : {
1854
+ x: (n - i.left) * t.width / i.width / e.pixelRatio,
1855
+ y: (r - i.top) * t.height / i.height / e.pixelRatio
1856
+ };
1857
+ }
1858
+ function X(e, t, n, r, i) {
1859
+ let a = t.getBoundingClientRect();
1860
+ if (!a.width || !a.height) return null;
1861
+ let o = (n - a.left) * t.width / a.width / e.pixelRatio, s = (r - a.top) * t.height / a.height / e.pixelRatio, c = null, l = (e, t) => {
1862
+ let n = V(t, e.props);
1863
+ if (e === i) return c = H(o, s, n), !0;
1864
+ for (let t of e.children) if (l(t, n)) return !0;
1865
+ return !1;
1866
+ };
1867
+ return l(e.scene, B), c;
1868
+ }
1869
+ function rn(e, t, n, r, i) {
1870
+ let a = i.parent;
1871
+ for (; a;) {
1872
+ if (a.type === "grid" && typeof a.props.height == "number" || a.type === "carousel") {
1873
+ let i = X(e, t, n, r, a), o = a.type === "grid" ? u(a.props._gridWidth, u(a.props.width, 0)) : u(a.props.width, 300), s = u(a.props.height, a.type === "carousel" ? 180 : 0);
1874
+ if (!i || i.x < 0 || i.x > o || i.y < 0 || i.y > s) return !1;
1875
+ }
1876
+ a = a.parent;
1877
+ }
1878
+ return !0;
1879
+ }
1880
+ function Z(e, t, n, r) {
1881
+ let i = t.getBoundingClientRect();
1882
+ if (!i.width || !i.height) return null;
1883
+ let a = (n - i.left) * t.width / i.width / e.pixelRatio, o = (r - i.top) * t.height / i.height / e.pixelRatio, s = [], c = (e, t, n) => {
1884
+ let r = n && e.props.visible !== !1;
1885
+ if (!r) return;
1886
+ let i = e.type === "dialog" ? V(B, e.props) : V(t, e.props);
1887
+ (Ot(e.type) || e.type === "dialog" && e.props.open === !0 || (e.type === "text" || e.type === "image" || e.type === "icon") && typeof e.props.onClick == "function") && s.push({
1888
+ node: e,
1889
+ transform: i
1890
+ }), e.children.forEach((e) => c(e, i, r));
1891
+ };
1892
+ c(e.scene, B, !0);
1893
+ let l = [...s].reverse().find((e) => e.node.type === "dialog");
1894
+ for (let i = s.length - 1; i >= 0; i--) {
1895
+ let c = s[i];
1896
+ if (l && c.node !== l.node && !W(c.node, l.node) || c.node.type !== "dropdown" || !c.node.props.open || c.node.props.disabled || !rn(e, t, n, r, c.node)) continue;
1897
+ let u = H(a, o, c.transform);
1898
+ if (!u) continue;
1899
+ let { width: d, height: f } = K(c.node), p = j(c.node.props.options).length * f;
1900
+ if (u.x >= 0 && u.x <= d && u.y >= f && u.y <= f + p) return {
1901
+ node: c.node,
1902
+ x: u.x,
1903
+ y: u.y
1904
+ };
1905
+ }
1906
+ for (let i = s.length - 1; i >= 0; i--) {
1907
+ let c = s[i];
1908
+ if (l && c.node !== l.node && !W(c.node, l.node) || !rn(e, t, n, r, c.node)) continue;
1909
+ let d = H(a, o, c.transform);
1910
+ if (!d) continue;
1911
+ if (c.node.type === "customDraw") {
1912
+ let { width: e, height: t } = K(c.node);
1913
+ if (d.x < 0 || d.x > e || d.y < 0 || d.y > t) continue;
1914
+ let n = c.node.props.hitTest;
1915
+ if (typeof n == "function" && !n(d.x, d.y, {
1916
+ width: e,
1917
+ height: t
1918
+ })) continue;
1919
+ return {
1920
+ node: c.node,
1921
+ x: d.x,
1922
+ y: d.y
1923
+ };
1924
+ }
1925
+ if (c.node.type === "canvasView") {
1926
+ let e = c.node.props.source;
1927
+ if (!Dt(e) || !e.width || !e.height) continue;
1928
+ let { width: t, height: n } = K(c.node);
1929
+ if (d.x < 0 || d.x > t || d.y < 0 || d.y > n) continue;
1930
+ if ((c.node.props.fit ?? "contain") === "contain") {
1931
+ let r = Math.min(t / e.width, n / e.height), i = e.width * r, a = e.height * r, o = (t - i) / 2, s = (n - a) / 2;
1932
+ if (d.x < o || d.x > o + i || d.y < s || d.y > s + a) continue;
1933
+ }
1934
+ return {
1935
+ node: c.node,
1936
+ x: d.x,
1937
+ y: d.y
1938
+ };
1939
+ }
1940
+ if (c.node.type === "dialog") return {
1941
+ node: c.node,
1942
+ x: d.x,
1943
+ y: d.y
1944
+ };
1945
+ if (c.node.type === "tabs") {
1946
+ let e = u(c.node.props.width, 300), t = u(c.node.props.height, 200);
1947
+ if (d.x >= 0 && d.x <= e && d.y >= 0 && d.y <= t) return {
1948
+ node: c.node,
1949
+ x: d.x,
1950
+ y: d.y
1951
+ };
1952
+ continue;
1953
+ }
1954
+ if (c.node.type === "carousel") {
1955
+ let e = u(c.node.props.width, 300), t = u(c.node.props.height, 180);
1956
+ if (d.x >= 0 && d.x <= e && d.y >= 0 && d.y <= t) return {
1957
+ node: c.node,
1958
+ x: d.x,
1959
+ y: d.y
1960
+ };
1961
+ continue;
1962
+ }
1963
+ if (c.node.type === "grid") {
1964
+ if (typeof c.node.props.height != "number") continue;
1965
+ let e = u(c.node.props._gridWidth, u(c.node.props.width, 0)), t = u(c.node.props.height, 0);
1966
+ if (d.x >= 0 && d.x <= e && d.y >= 0 && d.y <= t) return {
1967
+ node: c.node,
1968
+ x: d.x,
1969
+ y: d.y
1970
+ };
1971
+ continue;
1972
+ }
1973
+ if (c.node.type === "collapse") {
1974
+ let e = u(c.node.props.width, 300), t = c.node.children.reduce((e, t) => e + u(t.props._collapseHeaderHeight, 40) + (t.props._expanded ? u(t.props.height, 100) : 0), 0);
1975
+ if (d.x >= 0 && d.x <= e && d.y >= 0 && d.y <= t) return {
1976
+ node: c.node,
1977
+ x: d.x,
1978
+ y: d.y
1979
+ };
1980
+ continue;
1981
+ }
1982
+ let { width: f, height: p } = K(c.node), m = c.node.type === "dropdown" && c.node.props.open ? j(c.node.props.options).length * p : 0;
1983
+ if (d.x >= 0 && d.x <= f && d.y >= 0 && d.y <= p + m) return {
1984
+ node: c.node,
1985
+ x: d.x,
1986
+ y: d.y
1987
+ };
1988
+ }
1989
+ return null;
1990
+ }
1991
+ function an(e, t, n, r) {
1992
+ let i = [], a = [];
1993
+ e.scene.traverse((e) => {
1994
+ e.type === "dialog" && e.props.open === !0 && wt(e) && a.push(e), e.type === "carousel" && wt(e) && i.push(e);
1995
+ });
1996
+ let o = a[a.length - 1];
1997
+ for (let a of i.reverse()) {
1998
+ if (o && !W(a, o)) continue;
1999
+ let i = X(e, t, n, r, a);
2000
+ if (!i) continue;
2001
+ let s = u(a.props.width, 300), c = u(a.props.height, 180), l = a.children.filter((e) => e.type === "carouselItem").length, d = u(a.props._activeIndex, 0), f = $e(a.props, i.x, i.y, l, d, s, c);
2002
+ if (f !== void 0) return {
2003
+ node: a,
2004
+ index: f
2005
+ };
2006
+ }
2007
+ return null;
2008
+ }
2009
+ function on(e, t, n, r) {
2010
+ let i = [];
2011
+ e.scene.traverse((e) => {
2012
+ e.type === "grid" && typeof e.props.height == "number" && i.push(e);
2013
+ });
2014
+ for (let a of i.reverse()) {
2015
+ if (!rn(e, t, n, r, a)) continue;
2016
+ let i = X(e, t, n, r, a);
2017
+ if (!i) continue;
2018
+ let o = Ht(a.props);
2019
+ if (!(o.maxScroll <= 0 || i.x < o.trackX || i.x > o.width || i.y < o.thumbY || i.y > o.thumbY + o.thumbHeight)) return {
2020
+ node: a,
2021
+ pointerY: i.y,
2022
+ scrollTop: u(a.props._scrollTop, 0)
2023
+ };
2024
+ }
2025
+ return null;
2026
+ }
2027
+ // tools/angular-build/.stage/angular-compiled/engine/events.js
2028
+ function sn(e, t, n, r, i) {
2029
+ e.onEvent?.({
2030
+ type: t,
2031
+ target: r ? Et(r.node) : null,
2032
+ x: i.x,
2033
+ y: i.y,
2034
+ localX: r?.x,
2035
+ localY: r?.y,
2036
+ pointerId: n.pointerId
2037
+ });
2038
+ }
2039
+ function Q(e, t, n, r, i) {
2040
+ let a = t.props.source;
2041
+ if (!Dt(a)) return;
2042
+ let { width: o, height: s } = K(t);
2043
+ if (!o || !s || !a.width || !a.height) return;
2044
+ let c = t.props.fit ?? "contain", l = c === "cover" ? Math.max(o / a.width, s / a.height) : c === "fill" ? null : Math.min(o / a.width, s / a.height), u = l === null ? o : a.width * l, d = l === null ? s : a.height * l, f = (o - u) / 2, p = (s - d) / 2, m = l === null ? n * a.width / o : (n - f) / l, h = l === null ? r * a.height / s : (r - p) / l, g = t.props.onPointerEvent;
2045
+ typeof g == "function" && g({
2046
+ type: e,
2047
+ source: a,
2048
+ x: n,
2049
+ y: r,
2050
+ sourceX: m,
2051
+ sourceY: h,
2052
+ sourceWidth: a.width,
2053
+ sourceHeight: a.height,
2054
+ pointerId: i.pointerId,
2055
+ pointerType: i.pointerType,
2056
+ pressure: i.pressure,
2057
+ isPrimary: i.isPrimary,
2058
+ button: i.button,
2059
+ buttons: i.buttons
2060
+ });
2061
+ }
2062
+ // tools/angular-build/.stage/angular-compiled/engine/interaction.js
2063
+ function cn(e, t, n) {
2064
+ let r = an(e, n.currentTarget, n.clientX, n.clientY), i = on(e, n.currentTarget, n.clientX, n.clientY), a = r?.node ?? i?.node, o = a ? X(e, n.currentTarget, n.clientX, n.clientY, a) : null, s = a ? {
2065
+ node: a,
2066
+ x: o?.x ?? 0,
2067
+ y: o?.y ?? 0
2068
+ } : Z(e, n.currentTarget, n.clientX, n.clientY), c = Y(e, n.currentTarget, n.clientX, n.clientY);
2069
+ if (c && (t.pointerSequences.set(n.pointerId, {
2070
+ target: s?.node ?? null,
2071
+ x: c.x,
2072
+ y: c.y,
2073
+ eligible: s?.node.props.disabled !== !0
2074
+ }), sn(e, "pointerdown", n, s, c), s?.node.type === "canvasView" && Q("pointerdown", s.node, s.x, s.y, n)), r) {
2075
+ Kt(e, t, r.node, r.index), n.currentTarget.setPointerCapture(n.pointerId), n.preventDefault();
2076
+ return;
2077
+ }
2078
+ if (i) {
2079
+ t.activeGridScroll = i, n.currentTarget.setPointerCapture(n.pointerId), n.preventDefault();
2080
+ return;
2081
+ }
2082
+ if (gn(e.scene, s?.node), !s || s.node.props.disabled) return;
2083
+ let { node: l, x: d, y: f } = s;
2084
+ if (l.type === "slider") t.activeSlider = l, _n(l, d);
2085
+ else if (l.type === "switch") at(l);
2086
+ else if (l.type === "radio") {
2087
+ let e = We(l.props, d, f), t = e && !e.disabled ? Ge(l.props.value, e) : void 0;
2088
+ if (t === void 0) return;
2089
+ l.props._controlledValue !== !0 && l.setProps({ value: t }), l.props.onChange?.(t);
2090
+ } else if (l.type === "checkbox") {
2091
+ let e = We(l.props, d, f);
2092
+ if (!e || e.disabled) return;
2093
+ let t = Ke(l.props.value, e);
2094
+ l.props._controlledValue !== !0 && l.setProps({ value: t }), l.props.onChange?.(t);
2095
+ } else if (l.type === "upload") e.inputBridge.pickFiles(typeof l.props.accept == "string" ? l.props.accept : void 0, !!l.props.multiple, (e) => l.props.onChange?.(e));
2096
+ else if (l.type === "button") t.activeButton = l, ue(l, !0);
2097
+ else if (l.type === "tabs") {
2098
+ let n = pt(l.children.filter((e) => e.type === "tabItem"), d, f, u(l.props.width, 300), u(l.props.headerHeight, 40));
2099
+ if (n === void 0) return;
2100
+ pn(e, t, l, n);
2101
+ } else if (l.type === "collapse") {
2102
+ let n = u(l.props.headerHeight, 40), r = [...l.children].reverse().find((e) => {
2103
+ let t = u(e.props.y, 0);
2104
+ return f >= t && f <= t + n;
2105
+ });
2106
+ if (r && !r.props.disabled && typeof r.props.id == "string") mn(e, t, l, r);
2107
+ else return;
2108
+ } else if (l.type === "dialog") {
2109
+ hn(l, d, f), n.preventDefault();
2110
+ return;
2111
+ } else if (l.type === "dropdown") {
2112
+ let e = u(l.props.height, 36);
2113
+ if (l.props.open) {
2114
+ let t = Math.floor(f / e) - 1, n = Ee(l.props.options, t);
2115
+ f >= e && n && !n.disabled ? De(l, n) : l.setProps({ open: !1 });
2116
+ } else l.setProps({ open: !0 });
2117
+ } else if (l.type !== "customDraw" && l.type !== "canvasView" && l.type !== "text" && l.type !== "image" && l.type !== "icon") return;
2118
+ n.currentTarget.setPointerCapture(n.pointerId), n.preventDefault();
2119
+ }
2120
+ function ln(e, t, n) {
2121
+ let r = Z(e, n.currentTarget, n.clientX, n.clientY), i = Y(e, n.currentTarget, n.clientX, n.clientY);
2122
+ i && sn(e, "pointermove", n, r, i);
2123
+ let a = t.pointerSequences.get(n.pointerId), o = a?.target?.type === "canvasView" ? a.target : r?.node.type === "canvasView" ? r.node : null;
2124
+ if (o) {
2125
+ let t = o === r?.node ? r : X(e, n.currentTarget, n.clientX, n.clientY, o);
2126
+ t && Q("pointermove", o, t.x, t.y, n);
2127
+ }
2128
+ if (t.activeGridScroll) {
2129
+ let r = t.activeGridScroll, i = X(e, n.currentTarget, n.clientX, n.clientY, r.node);
2130
+ if (i) {
2131
+ let n = Ht(r.node.props), a = n.height - n.thumbHeight;
2132
+ a > 0 && fn(e, t, r.node, r.scrollTop + (i.y - r.pointerY) * n.maxScroll / a);
2133
+ }
2134
+ return;
2135
+ }
2136
+ if (!t.activeSlider) return;
2137
+ let s = X(e, n.currentTarget, n.clientX, n.clientY, t.activeSlider);
2138
+ s && _n(t.activeSlider, s.x);
2139
+ }
2140
+ function un(e, t, n, r = !1) {
2141
+ let i = r ? null : Z(e, n.currentTarget, n.clientX, n.clientY), a = Y(e, n.currentTarget, n.clientX, n.clientY), o = t.pointerSequences.get(n.pointerId);
2142
+ if (t.pointerSequences.delete(n.pointerId), a) {
2143
+ sn(e, r ? "pointercancel" : "pointerup", n, i, a);
2144
+ let t = o?.target?.type === "canvasView" ? o.target : i?.node.type === "canvasView" ? i.node : null;
2145
+ if (t) {
2146
+ let i = X(e, n.currentTarget, n.clientX, n.clientY, t);
2147
+ i && Q(r ? "pointercancel" : "pointerup", t, i.x, i.y, n);
2148
+ }
2149
+ if (!r && o?.eligible && o.target === (i?.node ?? null) && Math.hypot(a.x - o.x, a.y - o.y) <= 8) {
2150
+ if (e.onEvent?.({
2151
+ type: "click",
2152
+ target: i ? Et(i.node) : null,
2153
+ x: a.x,
2154
+ y: a.y,
2155
+ localX: i?.x,
2156
+ localY: i?.y,
2157
+ pointerId: n.pointerId
2158
+ }), i?.node.type === "canvasView" && Q("click", i.node, i.x, i.y, n), i && i.node.props.disabled !== !0 && (i.node.type === "text" || i.node.type === "image" || i.node.type === "icon")) {
2159
+ let e = i.node.props.onClick;
2160
+ typeof e == "function" && e();
2161
+ }
2162
+ if (i?.node.type === "customDraw") {
2163
+ let e = i.node.props.onClick;
2164
+ if (typeof e == "function") {
2165
+ let t = K(i.node);
2166
+ e({
2167
+ x: i.x,
2168
+ y: i.y,
2169
+ canvasX: a.x,
2170
+ canvasY: a.y,
2171
+ width: t.width,
2172
+ height: t.height,
2173
+ pointerId: n.pointerId
2174
+ });
2175
+ }
2176
+ }
2177
+ }
2178
+ }
2179
+ if (t.activeSlider = null, t.activeGridScroll = null, t.activeButton) {
2180
+ let e = t.activeButton;
2181
+ ue(e, !1), i?.node === e && de(e), t.activeButton = null;
2182
+ }
2183
+ n.currentTarget.hasPointerCapture(n.pointerId) && n.currentTarget.releasePointerCapture(n.pointerId);
2184
+ }
2185
+ function dn(e, t, n) {
2186
+ let r = Z(e, n.currentTarget, n.clientX, n.clientY), i = Y(e, n.currentTarget, n.clientX, n.clientY);
2187
+ i && e.onEvent?.({
2188
+ type: "wheel",
2189
+ target: r ? Et(r.node) : null,
2190
+ x: i.x,
2191
+ y: i.y,
2192
+ localX: r?.x,
2193
+ localY: r?.y,
2194
+ deltaY: n.deltaY
2195
+ });
2196
+ let a = r?.node ?? null;
2197
+ for (; a && a.type !== "grid";) a = a.parent;
2198
+ if (!a || typeof a.props.height != "number") return;
2199
+ let o = X(e, n.currentTarget, n.clientX, n.clientY, a), s = u(a.props._gridWidth, u(a.props.width, 0)), c = u(a.props.height, 0), l = u(a.props._gridContentHeight, c);
2200
+ if (!o || o.x < 0 || o.x > s || o.y < 0 || o.y > c || l <= c) return;
2201
+ let d = n.currentTarget.getBoundingClientRect();
2202
+ if (!d.height) return;
2203
+ let [f, p, m, h] = U(a), g = f * h - p * m;
2204
+ if (!g) return;
2205
+ let _ = n.deltaY * n.currentTarget.height / d.height / e.pixelRatio, v = u(a.props._scrollTop, 0) + _ * f / g;
2206
+ fn(e, t, a, v), n.preventDefault();
2207
+ }
2208
+ function fn(e, t, n, r) {
2209
+ let i = Math.max(0, u(n.props._gridContentHeight, 0) - u(n.props.height, 0)), a = Math.max(0, Math.min(i, r));
2210
+ if (a === n.props._scrollTop) return !1;
2211
+ n.setProps({ _scrollTop: a });
2212
+ let o = String(n.props._gridStateKey ?? "");
2213
+ if (t.gridScrollPositions.set(o, a), n.props.virtual === !0) return e.refreshVirtualGrids(), n.props.onScroll?.(a), !0;
2214
+ for (let e of n.children) e.setProps({ y: u(e.props._gridBaseY, u(e.props.y, 0)) - a });
2215
+ for (let e of t.textControls.values()) W(e.node, n) && (e.layout = {
2216
+ ...e.layout,
2217
+ transform: U(e.node)
2218
+ });
2219
+ return q(e, t), n.props.onScroll?.(a), !0;
2220
+ }
2221
+ function pn(e, t, n, r) {
2222
+ let i = String(n.props._stateKey ?? "");
2223
+ n.props.activeKey === void 0 && (t.tabSelections.set(i, r), n.setProps({
2224
+ _activeKey: r,
2225
+ _tabItems: n.children.map((e) => ({
2226
+ title: e.props.title,
2227
+ disabled: e.props.disabled,
2228
+ selected: e.props.id === r
2229
+ }))
2230
+ }), n.children.forEach((e) => {
2231
+ e.type === "tabItem" && G(e, e.props.id === r);
2232
+ }), q(e, t)), n.props.onChange?.(r);
2233
+ }
2234
+ function mn(e, t, n, r) {
2235
+ let i = String(n.props._stateKey ?? ""), a = new Set(Array.isArray(n.props._activeKeys) ? n.props._activeKeys.filter((e) => typeof e == "string") : $t(t, i, n.props)), o = String(r.props.id), s = xe([...a], o, !!n.props.accordion);
2236
+ a.clear(), s.forEach((e) => a.add(e)), n.props.activeKeys === void 0 && (t.collapseSelections.set(i, a), n.setProps({ _activeKeys: [...a] }), en(n, a), q(e, t)), n.props.onChange?.([...a]);
2237
+ }
2238
+ function hn(e, t, n) {
2239
+ let r = u(e.props.width, 420), i = u(e.props.height, 240), a = u(e.props._dialogPanelX, 0), o = u(e.props._dialogPanelY, 0), s = t, c = n, l = s >= a && s <= a + r && c >= o && c <= o + i;
2240
+ if (!l && e.props.closeOnBackdrop !== !1) {
2241
+ e.props.onCancel?.();
2242
+ return;
2243
+ }
2244
+ let d = o + i - 44;
2245
+ !l || c < d || c > d + 32 || (s >= a + r - 104 && s <= a + r - 24 ? e.props.onConfirm?.() : s >= a + r - 196 && s <= a + r - 116 && e.props.onCancel?.());
2246
+ }
2247
+ function gn(e, t) {
2248
+ e.traverse((e) => {
2249
+ e !== t && e.type === "dropdown" && e.props.open && e.setProps({ open: !1 });
2250
+ });
2251
+ }
2252
+ function _n(e, t) {
2253
+ let { width: n } = K(e), r = rt(e.props, n, t);
2254
+ r !== void 0 && e.props.value !== r && (e.setProps({ value: r }), e.props.onChange?.(r));
2255
+ }
2256
+ // tools/angular-build/.stage/angular-compiled/engine/state.js
2257
+ var vn = class {
2258
+ constructor() {
2259
+ this.textControls = /* @__PURE__ */ new Map(), this.inputValues = /* @__PURE__ */ new Map(), this.imageSubscriptions = /* @__PURE__ */ new Map(), this.videoSubscriptions = /* @__PURE__ */ new Map(), this.videoFrames = /* @__PURE__ */ new Map(), this.tabSelections = /* @__PURE__ */ new Map(), this.carouselSelections = /* @__PURE__ */ new Map(), this.carouselFrameTimes = /* @__PURE__ */ new Map(), this.carouselTransitions = /* @__PURE__ */ new Map(), this.collapseSelections = /* @__PURE__ */ new Map(), this.gridScrollPositions = /* @__PURE__ */ new Map(), this.virtualGridLayouts = /* @__PURE__ */ new Map(), this.activeVirtualGridKeys = /* @__PURE__ */ new Set(), this.pointerSequences = /* @__PURE__ */ new Map(), this.activeSlider = null, this.activeButton = null, this.activeGridScroll = null, this.currentFrameTime = 0;
2260
+ }
2261
+ }, yn = class {
2262
+ constructor(e, t, n, r = 1, i) {
2263
+ this.scene = new c("root"), this.renderer = new bt(), this.state = new vn(), this.animationFrame = null, this.themeObserver = null, this.running = !1, this.tree = [], this.context = e, this.core = {
2264
+ scene: this.scene,
2265
+ renderer: this.renderer,
2266
+ context: e,
2267
+ inputBridge: t,
2268
+ pixelRatio: r,
2269
+ onFrame: n,
2270
+ onEvent: i,
2271
+ refreshVirtualGrids: () => this.reconcile()
2272
+ };
2273
+ }
2274
+ update(e) {
2275
+ this.tree = e;
2276
+ for (let [e, t] of this.state.virtualGridLayouts) t.token === void 0 && this.state.virtualGridLayouts.delete(e);
2277
+ this.reconcile();
2278
+ }
2279
+ reconcile() {
2280
+ let e = [];
2281
+ this.state.activeVirtualGridKeys.clear();
2282
+ let t = nn(this.core, this.state, this.tree, B, !0, "root", e);
2283
+ for (let e of this.state.virtualGridLayouts.keys()) this.state.activeVirtualGridKeys.has(e) || this.state.virtualGridLayouts.delete(e);
2284
+ this.scene.syncChildren(t, (e) => jt(this.state, e)), this.core.inputBridge.setOverlayVisible(!Tt(this.scene, !0)), At(this.core, this.state, e), Mt(this.core, this.state, t), Nt(this.core, this.state);
2285
+ }
2286
+ render() {
2287
+ this.renderer.render(this.context, this.scene);
2288
+ }
2289
+ requestRender() {
2290
+ this.renderer.invalidateGridCache(), this.scene.markDirty();
2291
+ }
2292
+ renderTo(e, t, n) {
2293
+ e.save(), e.scale(t, n), this.renderer.render(e, this.scene, !1), e.restore();
2294
+ }
2295
+ start() {
2296
+ if (this.running) return;
2297
+ this.running = !0;
2298
+ let e = this.context.canvas.ownerDocument.defaultView?.MutationObserver;
2299
+ if (e) {
2300
+ this.themeObserver = new e(() => {
2301
+ se(), this.renderer.invalidateGridCache(), this.scene.markDirty();
2302
+ });
2303
+ let t = this.context.canvas;
2304
+ for (; t;) this.themeObserver.observe(t, {
2305
+ attributes: !0,
2306
+ attributeFilter: ["class", "style"]
2307
+ }), t = t.parentElement;
2308
+ }
2309
+ let t = (e) => {
2310
+ this.running && (qt(this.core, this.state, e), Pt(this.core, this.state), this.scene.dirty && this.render(), this.core.onFrame?.(e), this.running && (this.animationFrame = requestAnimationFrame(t)));
2311
+ };
2312
+ this.animationFrame = requestAnimationFrame(t);
2313
+ }
2314
+ pointerDown(e) {
2315
+ cn(this.core, this.state, e);
2316
+ }
2317
+ pointerMove(e) {
2318
+ ln(this.core, this.state, e);
2319
+ }
2320
+ pointerUp(e, t = !1) {
2321
+ un(this.core, this.state, e, t);
2322
+ }
2323
+ wheel(e) {
2324
+ dn(this.core, this.state, e);
2325
+ }
2326
+ destroy() {
2327
+ this.running = !1, this.animationFrame !== null && cancelAnimationFrame(this.animationFrame), this.animationFrame = null, this.themeObserver?.disconnect(), this.themeObserver = null;
2328
+ for (let e of this.state.textControls.values()) e.dispose();
2329
+ this.state.textControls.clear(), this.state.inputValues.clear(), this.state.imageSubscriptions.forEach((e) => e()), this.state.imageSubscriptions.clear(), this.state.videoSubscriptions.forEach((e) => e()), this.state.videoSubscriptions.clear(), this.state.videoFrames.clear(), this.state.tabSelections.clear(), this.state.carouselSelections.clear(), this.state.carouselFrameTimes.clear(), this.state.carouselTransitions.clear(), this.state.collapseSelections.clear(), this.state.gridScrollPositions.clear(), this.state.virtualGridLayouts.clear(), this.state.activeVirtualGridKeys.clear(), this.tree = [], this.state.pointerSequences.clear(), this.state.activeSlider = null, this.state.activeButton = null, this.state.activeGridScroll = null, this.core.inputBridge.destroy();
2330
+ }
2331
+ };
2332
+ // tools/angular-build/.stage/angular-compiled/canvas-handle.js
2333
+ function bn() {
2334
+ return Math.max(1, window.devicePixelRatio || 1);
2335
+ }
2336
+ function xn(e = {}, t) {
2337
+ return typeof e == "string" ? {
2338
+ type: e,
2339
+ quality: t
2340
+ } : {
2341
+ ...e,
2342
+ type: e.type ?? "image/png"
2343
+ };
2344
+ }
2345
+ function Sn(e, t, n) {
2346
+ try {
2347
+ return e.toDataURL(t, n);
2348
+ } catch (e) {
2349
+ throw Tn(e) ? En() : e;
2350
+ }
2351
+ }
2352
+ function Cn(e, t, n) {
2353
+ return new Promise((r, i) => {
2354
+ try {
2355
+ e.toBlob((e) => {
2356
+ e ? r(e) : i(/* @__PURE__ */ Error("Canvas image export failed."));
2357
+ }, t, n);
2358
+ } catch (e) {
2359
+ i(Tn(e) ? En() : e);
2360
+ }
2361
+ });
2362
+ }
2363
+ function wn(e, t, n, r) {
2364
+ let i = n.pixelRatio ?? r;
2365
+ if (!Number.isFinite(i) || i <= 0) throw RangeError("Export pixelRatio must be a positive finite number.");
2366
+ let a = n.width ?? e.width / r, o = n.height ?? e.height / r;
2367
+ if (!Number.isFinite(a) || a <= 0 || !Number.isFinite(o) || o <= 0) throw RangeError("Export width and height must be positive finite numbers.");
2368
+ let s = document.createElement("canvas");
2369
+ s.width = Math.max(1, Math.round(a * i)), s.height = Math.max(1, Math.round(o * i));
2370
+ let c = s.getContext("2d");
2371
+ if (!c) throw Error("Canvas 2D context is not available for image export.");
2372
+ return t ? t.renderTo(c, s.width / a, s.height / o) : c.drawImage(e, 0, 0, s.width, s.height), s;
2373
+ }
2374
+ function Tn(e) {
2375
+ return typeof e == "object" && !!e && "name" in e && e.name === "SecurityError";
2376
+ }
2377
+ function En() {
2378
+ return /* @__PURE__ */ Error("Canvas 导出失败:画布包含未授权跨域读取的图片。请配置图片服务器 CORS(Access-Control-Allow-Origin),或移除该跨域图片后重试。");
2379
+ }
2380
+ // tools/angular-build/.stage/angular-compiled/input-bridge.js
2381
+ function Dn(e, t) {
2382
+ let n = "padding" in e && typeof e.padding == "number" ? e.padding : 8, r = typeof e.fontSize == "number" ? e.fontSize : 14;
2383
+ return {
2384
+ fontFamily: ("fontFamily" in e && typeof e.fontFamily == "string" ? e.fontFamily : "") || "sans-serif",
2385
+ fontSize: `${r}px`,
2386
+ letterSpacing: "0px",
2387
+ fontKerning: "auto",
2388
+ textRendering: "auto",
2389
+ paddingLeft: `${n}px`,
2390
+ paddingRight: `${n}px`,
2391
+ ...t ? {
2392
+ paddingTop: `${n}px`,
2393
+ paddingBottom: `${n}px`,
2394
+ lineHeight: "1.35",
2395
+ overflowY: "auto",
2396
+ overflowX: "hidden"
2397
+ } : {}
2398
+ };
2399
+ }
2400
+ var On = class {
2401
+ constructor(e) {
2402
+ this.mounted = /* @__PURE__ */ new Map(), this.fileInputs = /* @__PURE__ */ new Set(), this.overlayHidden = !1, this.selectionTracked = 0, this.handleInput = (e) => {
2403
+ let t = this.find(e.currentTarget);
2404
+ t && t.events.input(t.element.value, t.element.selectionStart ?? t.element.value.length);
2405
+ }, this.handleSelection = (e) => {
2406
+ let t = this.find(e.currentTarget);
2407
+ t && t.events.selection(t.element.selectionStart ?? t.element.value.length);
2408
+ }, this.handleSelectionChange = () => {
2409
+ let e = this.overlay.ownerDocument.activeElement;
2410
+ if (!(e instanceof HTMLInputElement) && !(e instanceof HTMLTextAreaElement)) return;
2411
+ let t = this.find(e);
2412
+ t && t.events.selection(t.element.selectionStart ?? t.element.value.length);
2413
+ }, this.handleFocus = (e) => this.find(e.currentTarget)?.events.focus(), this.handleBlur = (e) => this.find(e.currentTarget)?.events.blur(), this.handleTextareaScroll = (e) => {
2414
+ let t = this.find(e.currentTarget);
2415
+ t?.element instanceof HTMLTextAreaElement && t.events.scroll(t.element.scrollTop, t.element.scrollHeight, t.element.clientHeight, t.element.clientWidth);
2416
+ }, this.overlay = e, this.originalDisplay = e.style.display;
2417
+ }
2418
+ mount(e, t, n, r) {
2419
+ this.unmount(e);
2420
+ let i = document.createElement(e.startsWith("textarea:") ? "textarea" : "input");
2421
+ return i.setAttribute("aria-label", t.placeholder || "Canvas input"), i instanceof HTMLInputElement && (i.autocomplete = "off"), Object.assign(i.style, {
2422
+ position: "absolute",
2423
+ left: "0",
2424
+ top: "0",
2425
+ margin: "0",
2426
+ padding: "0",
2427
+ border: "0",
2428
+ outline: "0",
2429
+ opacity: "0",
2430
+ color: "transparent",
2431
+ caretColor: "transparent",
2432
+ background: "transparent",
2433
+ boxSizing: "border-box",
2434
+ transformOrigin: "0 0",
2435
+ pointerEvents: "auto"
2436
+ }), i.addEventListener("input", this.handleInput), i.addEventListener("select", this.handleSelection), i.addEventListener("focus", this.handleFocus), i.addEventListener("blur", this.handleBlur), i instanceof HTMLTextAreaElement && i.addEventListener("scroll", this.handleTextareaScroll), this.trackSelections(), this.mounted.set(e, {
2437
+ element: i,
2438
+ events: r
2439
+ }), this.overlay.appendChild(i), this.update(e, t, n), () => this.unmount(e);
2440
+ }
2441
+ update(e, t, n) {
2442
+ let r = this.mounted.get(e);
2443
+ if (!r) return;
2444
+ let { element: i } = r, a = t.value ?? t.defaultValue ?? "";
2445
+ i instanceof HTMLInputElement && (i.type = e.startsWith("datePicker:") ? "date" : "type" in t ? t.type ?? "text" : "text"), i.placeholder = t.placeholder ?? "", i.disabled = t.disabled ?? !1;
2446
+ let o = "maxLength" in t ? t.maxLength : void 0;
2447
+ typeof o == "number" && Number.isInteger(o) && o >= 0 ? i.maxLength = o : i.removeAttribute("maxLength"), i.value !== a && (i.value = a);
2448
+ let s = i instanceof HTMLTextAreaElement;
2449
+ Object.assign(i.style, {
2450
+ display: n.visible ? "block" : "none",
2451
+ width: `${n.width}px`,
2452
+ height: `${n.height}px`,
2453
+ transform: `matrix(${n.transform.join(",")})`,
2454
+ resize: "none",
2455
+ whiteSpace: s ? "pre-wrap" : "normal",
2456
+ ...Dn(t, s)
2457
+ }), s && (i.wrap = "soft", r.events.scroll(i.scrollTop, i.scrollHeight, i.clientHeight, i.clientWidth));
2458
+ }
2459
+ pickFiles(e, t, n) {
2460
+ let r = document.createElement("input");
2461
+ r.type = "file", r.accept = e ?? "", r.multiple = t, Object.assign(r.style, {
2462
+ position: "fixed",
2463
+ width: "1px",
2464
+ height: "1px",
2465
+ opacity: "0",
2466
+ pointerEvents: "none"
2467
+ });
2468
+ let i = () => {
2469
+ r.removeEventListener("change", a), r.removeEventListener("cancel", i), r.remove(), this.fileInputs.delete(r);
2470
+ }, a = () => {
2471
+ let e = Array.from(r.files ?? []);
2472
+ i(), e.length && n(e);
2473
+ };
2474
+ r.addEventListener("change", a, { once: !0 }), r.addEventListener("cancel", i, { once: !0 }), this.fileInputs.add(r), this.overlay.ownerDocument.body.appendChild(r), r.click();
2475
+ }
2476
+ focus(e) {
2477
+ this.mounted.get(e)?.element.focus();
2478
+ }
2479
+ setOverlayVisible(e) {
2480
+ if (e) {
2481
+ if (!this.overlayHidden) return;
2482
+ this.overlay.style.display = this.originalDisplay, this.overlayHidden = !1;
2483
+ return;
2484
+ }
2485
+ if (this.overlayHidden) return;
2486
+ let t = this.overlay.ownerDocument.activeElement;
2487
+ t instanceof HTMLElement && this.overlay.contains(t) && t.blur(), this.overlay.style.display = "none", this.overlayHidden = !0;
2488
+ }
2489
+ unmount(e) {
2490
+ let t = this.mounted.get(e);
2491
+ if (!t) return;
2492
+ let { element: n } = t;
2493
+ n.removeEventListener("input", this.handleInput), n.removeEventListener("select", this.handleSelection), n.removeEventListener("focus", this.handleFocus), n.removeEventListener("blur", this.handleBlur), n instanceof HTMLTextAreaElement && n.removeEventListener("scroll", this.handleTextareaScroll), this.untrackSelections(), n.remove(), this.mounted.delete(e);
2494
+ }
2495
+ destroy() {
2496
+ this.setOverlayVisible(!0);
2497
+ for (let e of this.mounted.keys()) this.unmount(e);
2498
+ this.fileInputs.forEach((e) => e.remove()), this.fileInputs.clear();
2499
+ }
2500
+ find(e) {
2501
+ for (let t of this.mounted.values()) if (t.element === e) return t;
2502
+ }
2503
+ trackSelections() {
2504
+ this.selectionTracked++ === 0 && this.overlay.ownerDocument.addEventListener("selectionchange", this.handleSelectionChange);
2505
+ }
2506
+ untrackSelections() {
2507
+ --this.selectionTracked === 0 && this.overlay.ownerDocument.removeEventListener("selectionchange", this.handleSelectionChange);
2508
+ }
2509
+ }, kn = Symbol("canvas-ui-angular-node"), An = /* @__PURE__ */ "x.y.rotation.scaleX.scaleY.visible.size.width.height.color.radius.stroke.strokeWidth.text.fontSize.fontFamily.baseline.textAlign.maxLines.value.defaultValue.placeholder.bgColor.borderColor.focusBorderColor.borderRadius.padding.disabled.maxLength.type.rows.options.min.max.step.defaultChecked.checked.onColor.offColor.thumbColor.trackColor.activeColor.backgroundColor.textColor.fontColor.onChange.onClick.onFocus.onBlur.columns.cellWidth.cellHeight.virtual.gap.columnSpan.rowSpan.src.objectFit.onError.open.title.confirmText.cancelText.closeOnBackdrop.onConfirm.onCancel.showText.activeKey.defaultActiveKey.headerHeight.indicatorColor.id.activeKeys.defaultActiveKeys.accordion.direction.optionHeight.disabledColor.onScroll.accept.multiple.icon.iconSize.activeIndex.defaultActiveIndex.autoplay.interval.transitionDuration.loop.showArrows.showDots.arrowColor.dotColor.activeDotColor.draw.hitTest.name.variant.source.fit.onPointerEvent.muted.paused.currentTime.onTimeUpdate".split("."), $ = class t {
2510
+ constructor(e) {
2511
+ this.marker = "", this.change = new r(), this.valueChange = new r(), this.checkedChange = new r(), this.activeKeyChange = new r(), this.activeIndexChange = new r(), this.activeKeysChange = new r(), this.confirm = new r(), this.cancel = new r(), this.imageError = new r(), this.videoError = new r(), this.timeUpdate = new r(), this.click = new r(), this.focus = new r(), this.blur = new r(), this.dispatchChange = (e) => {
2512
+ let t = this.onChange;
2513
+ typeof t == "function" && t(e), this.change.emit(e), this.kind === "switch" ? this.checkedChange.emit(!!e) : this.kind === "tabs" && typeof e == "string" ? this.activeKeyChange.emit(e) : this.kind === "carousel" && typeof e == "number" ? this.activeIndexChange.emit(e) : this.kind === "collapse" && Array.isArray(e) ? this.activeKeysChange.emit(e) : (this.kind === "input" || this.kind === "textarea" || this.kind === "datePicker" || this.kind === "dropdown" || this.kind === "slider") && this.valueChange.emit(e);
2514
+ }, this.dispatchClick = (e) => {
2515
+ if (typeof this.onClick == "function") {
2516
+ if (this.kind === "customDraw") {
2517
+ if (!e) throw Error("CustomDraw click event data is required.");
2518
+ this.onClick(e);
2519
+ } else this.onClick();
2520
+ }
2521
+ this.click.emit(e);
2522
+ }, this.dispatchFocus = () => {
2523
+ this.onFocus?.(), this.focus.emit();
2524
+ }, this.dispatchBlur = () => {
2525
+ this.onBlur?.(), this.blur.emit();
2526
+ }, this.dispatchConfirm = () => {
2527
+ this.onConfirm?.(), this.confirm.emit();
2528
+ }, this.dispatchCancel = () => {
2529
+ this.onCancel?.(), this.cancel.emit();
2530
+ }, this.dispatchMediaError = (e) => {
2531
+ this.onError?.(e), this.kind === "video" ? this.videoError.emit(e) : this.imageError.emit(e);
2532
+ }, this.dispatchTimeUpdate = (e, t) => {
2533
+ this.onTimeUpdate?.(e, t), this.timeUpdate.emit({
2534
+ currentTime: e,
2535
+ duration: t
2536
+ });
2537
+ }, e.nativeElement[kn] = this;
2538
+ }
2539
+ getProps() {
2540
+ let e = {}, t = this;
2541
+ for (let n of An) t[n] !== void 0 && (e[n] = t[n]);
2542
+ return this.key !== void 0 && (e.key = String(this.key)), e.onChange = this.dispatchChange, (this.kind !== "text" && this.kind !== "image" && this.kind !== "icon" || typeof this.onClick == "function" || this.click.observed) && (e.onClick = this.dispatchClick), e.onFocus = this.dispatchFocus, e.onBlur = this.dispatchBlur, e.onConfirm = this.dispatchConfirm, e.onCancel = this.dispatchCancel, e.onError = this.dispatchMediaError, e.onTimeUpdate = this.dispatchTimeUpdate, e;
2543
+ }
2544
+ static {
2545
+ this.ɵfac = e.ɵɵngDeclareFactory({
2546
+ minVersion: "12.0.0",
2547
+ version: "17.3.12",
2548
+ ngImport: e,
2549
+ type: t,
2550
+ deps: [{ token: e.ElementRef }],
2551
+ target: e.ɵɵFactoryTarget.Directive
2552
+ });
2553
+ }
2554
+ static {
2555
+ this.ɵdir = e.ɵɵngDeclareDirective({
2556
+ minVersion: "14.0.0",
2557
+ version: "17.3.12",
2558
+ type: t,
2559
+ inputs: {
2560
+ x: "x",
2561
+ y: "y",
2562
+ rotation: "rotation",
2563
+ scaleX: "scaleX",
2564
+ scaleY: "scaleY",
2565
+ visible: "visible",
2566
+ key: "key",
2567
+ size: "size",
2568
+ width: "width",
2569
+ height: "height",
2570
+ color: "color",
2571
+ radius: "radius",
2572
+ stroke: "stroke",
2573
+ strokeWidth: "strokeWidth",
2574
+ text: "text",
2575
+ fontSize: "fontSize",
2576
+ fontFamily: "fontFamily",
2577
+ baseline: "baseline",
2578
+ textAlign: "textAlign",
2579
+ maxLines: "maxLines",
2580
+ value: "value",
2581
+ defaultValue: "defaultValue",
2582
+ placeholder: "placeholder",
2583
+ bgColor: "bgColor",
2584
+ borderColor: "borderColor",
2585
+ focusBorderColor: "focusBorderColor",
2586
+ borderRadius: "borderRadius",
2587
+ padding: "padding",
2588
+ disabled: "disabled",
2589
+ maxLength: "maxLength",
2590
+ type: "type",
2591
+ rows: "rows",
2592
+ options: "options",
2593
+ min: "min",
2594
+ max: "max",
2595
+ step: "step",
2596
+ defaultChecked: "defaultChecked",
2597
+ checked: "checked",
2598
+ onColor: "onColor",
2599
+ offColor: "offColor",
2600
+ thumbColor: "thumbColor",
2601
+ trackColor: "trackColor",
2602
+ activeColor: "activeColor",
2603
+ backgroundColor: "backgroundColor",
2604
+ textColor: "textColor",
2605
+ fontColor: "fontColor",
2606
+ columns: "columns",
2607
+ cellWidth: "cellWidth",
2608
+ cellHeight: "cellHeight",
2609
+ virtual: "virtual",
2610
+ gap: "gap",
2611
+ columnSpan: "columnSpan",
2612
+ rowSpan: "rowSpan",
2613
+ src: "src",
2614
+ objectFit: "objectFit",
2615
+ onError: "onError",
2616
+ open: "open",
2617
+ title: "title",
2618
+ confirmText: "confirmText",
2619
+ cancelText: "cancelText",
2620
+ closeOnBackdrop: "closeOnBackdrop",
2621
+ onConfirm: "onConfirm",
2622
+ onCancel: "onCancel",
2623
+ showText: "showText",
2624
+ activeKey: "activeKey",
2625
+ defaultActiveKey: "defaultActiveKey",
2626
+ headerHeight: "headerHeight",
2627
+ indicatorColor: "indicatorColor",
2628
+ id: "id",
2629
+ activeKeys: "activeKeys",
2630
+ defaultActiveKeys: "defaultActiveKeys",
2631
+ accordion: "accordion",
2632
+ direction: "direction",
2633
+ optionHeight: "optionHeight",
2634
+ disabledColor: "disabledColor",
2635
+ onScroll: "onScroll",
2636
+ accept: "accept",
2637
+ multiple: "multiple",
2638
+ icon: "icon",
2639
+ iconSize: "iconSize",
2640
+ activeIndex: "activeIndex",
2641
+ defaultActiveIndex: "defaultActiveIndex",
2642
+ autoplay: "autoplay",
2643
+ interval: "interval",
2644
+ transitionDuration: "transitionDuration",
2645
+ loop: "loop",
2646
+ showArrows: "showArrows",
2647
+ showDots: "showDots",
2648
+ arrowColor: "arrowColor",
2649
+ dotColor: "dotColor",
2650
+ activeDotColor: "activeDotColor",
2651
+ draw: "draw",
2652
+ hitTest: "hitTest",
2653
+ source: "source",
2654
+ fit: "fit",
2655
+ name: "name",
2656
+ variant: "variant",
2657
+ onPointerEvent: "onPointerEvent",
2658
+ muted: "muted",
2659
+ paused: "paused",
2660
+ currentTime: "currentTime",
2661
+ onTimeUpdate: "onTimeUpdate",
2662
+ onChange: "onChange",
2663
+ onClick: "onClick",
2664
+ onFocus: "onFocus",
2665
+ onBlur: "onBlur"
2666
+ },
2667
+ outputs: {
2668
+ change: "change",
2669
+ valueChange: "valueChange",
2670
+ checkedChange: "checkedChange",
2671
+ activeKeyChange: "activeKeyChange",
2672
+ activeIndexChange: "activeIndexChange",
2673
+ activeKeysChange: "activeKeysChange",
2674
+ confirm: "confirm",
2675
+ cancel: "cancel",
2676
+ imageError: "imageError",
2677
+ videoError: "videoError",
2678
+ timeUpdate: "timeUpdate",
2679
+ click: "click",
2680
+ focus: "focus",
2681
+ blur: "blur"
2682
+ },
2683
+ host: { properties: { "attr.data-canvas-ui-node": "this.marker" } },
2684
+ ngImport: e
2685
+ });
2686
+ }
2687
+ };
2688
+ e.ɵɵngDeclareClassMetadata({
2689
+ minVersion: "12.0.0",
2690
+ version: "17.3.12",
2691
+ ngImport: e,
2692
+ type: $,
2693
+ decorators: [{ type: n }],
2694
+ ctorParameters: () => [{ type: e.ElementRef }],
2695
+ propDecorators: {
2696
+ marker: [{
2697
+ type: i,
2698
+ args: ["attr.data-canvas-ui-node"]
2699
+ }],
2700
+ x: [{ type: a }],
2701
+ y: [{ type: a }],
2702
+ rotation: [{ type: a }],
2703
+ scaleX: [{ type: a }],
2704
+ scaleY: [{ type: a }],
2705
+ visible: [{ type: a }],
2706
+ key: [{ type: a }],
2707
+ size: [{ type: a }],
2708
+ width: [{ type: a }],
2709
+ height: [{ type: a }],
2710
+ color: [{ type: a }],
2711
+ radius: [{ type: a }],
2712
+ stroke: [{ type: a }],
2713
+ strokeWidth: [{ type: a }],
2714
+ text: [{ type: a }],
2715
+ fontSize: [{ type: a }],
2716
+ fontFamily: [{ type: a }],
2717
+ baseline: [{ type: a }],
2718
+ textAlign: [{ type: a }],
2719
+ maxLines: [{ type: a }],
2720
+ value: [{ type: a }],
2721
+ defaultValue: [{ type: a }],
2722
+ placeholder: [{ type: a }],
2723
+ bgColor: [{ type: a }],
2724
+ borderColor: [{ type: a }],
2725
+ focusBorderColor: [{ type: a }],
2726
+ borderRadius: [{ type: a }],
2727
+ padding: [{ type: a }],
2728
+ disabled: [{ type: a }],
2729
+ maxLength: [{ type: a }],
2730
+ type: [{ type: a }],
2731
+ rows: [{ type: a }],
2732
+ options: [{ type: a }],
2733
+ min: [{ type: a }],
2734
+ max: [{ type: a }],
2735
+ step: [{ type: a }],
2736
+ defaultChecked: [{ type: a }],
2737
+ checked: [{ type: a }],
2738
+ onColor: [{ type: a }],
2739
+ offColor: [{ type: a }],
2740
+ thumbColor: [{ type: a }],
2741
+ trackColor: [{ type: a }],
2742
+ activeColor: [{ type: a }],
2743
+ backgroundColor: [{ type: a }],
2744
+ textColor: [{ type: a }],
2745
+ fontColor: [{ type: a }],
2746
+ columns: [{ type: a }],
2747
+ cellWidth: [{ type: a }],
2748
+ cellHeight: [{ type: a }],
2749
+ virtual: [{ type: a }],
2750
+ gap: [{ type: a }],
2751
+ columnSpan: [{ type: a }],
2752
+ rowSpan: [{ type: a }],
2753
+ src: [{ type: a }],
2754
+ objectFit: [{ type: a }],
2755
+ onError: [{ type: a }],
2756
+ open: [{ type: a }],
2757
+ title: [{ type: a }],
2758
+ confirmText: [{ type: a }],
2759
+ cancelText: [{ type: a }],
2760
+ closeOnBackdrop: [{ type: a }],
2761
+ onConfirm: [{ type: a }],
2762
+ onCancel: [{ type: a }],
2763
+ showText: [{ type: a }],
2764
+ activeKey: [{ type: a }],
2765
+ defaultActiveKey: [{ type: a }],
2766
+ headerHeight: [{ type: a }],
2767
+ indicatorColor: [{ type: a }],
2768
+ id: [{ type: a }],
2769
+ activeKeys: [{ type: a }],
2770
+ defaultActiveKeys: [{ type: a }],
2771
+ accordion: [{ type: a }],
2772
+ direction: [{ type: a }],
2773
+ optionHeight: [{ type: a }],
2774
+ disabledColor: [{ type: a }],
2775
+ onScroll: [{ type: a }],
2776
+ accept: [{ type: a }],
2777
+ multiple: [{ type: a }],
2778
+ icon: [{ type: a }],
2779
+ iconSize: [{ type: a }],
2780
+ activeIndex: [{ type: a }],
2781
+ defaultActiveIndex: [{ type: a }],
2782
+ autoplay: [{ type: a }],
2783
+ interval: [{ type: a }],
2784
+ transitionDuration: [{ type: a }],
2785
+ loop: [{ type: a }],
2786
+ showArrows: [{ type: a }],
2787
+ showDots: [{ type: a }],
2788
+ arrowColor: [{ type: a }],
2789
+ dotColor: [{ type: a }],
2790
+ activeDotColor: [{ type: a }],
2791
+ draw: [{ type: a }],
2792
+ hitTest: [{ type: a }],
2793
+ source: [{ type: a }],
2794
+ fit: [{ type: a }],
2795
+ name: [{ type: a }],
2796
+ variant: [{ type: a }],
2797
+ onPointerEvent: [{ type: a }],
2798
+ muted: [{ type: a }],
2799
+ paused: [{ type: a }],
2800
+ currentTime: [{ type: a }],
2801
+ onTimeUpdate: [{ type: a }],
2802
+ onChange: [{ type: a }],
2803
+ onClick: [{ type: a }],
2804
+ onFocus: [{ type: a }],
2805
+ onBlur: [{ type: a }],
2806
+ change: [{ type: o }],
2807
+ valueChange: [{ type: o }],
2808
+ checkedChange: [{ type: o }],
2809
+ activeKeyChange: [{ type: o }],
2810
+ activeIndexChange: [{ type: o }],
2811
+ activeKeysChange: [{ type: o }],
2812
+ confirm: [{ type: o }],
2813
+ cancel: [{ type: o }],
2814
+ imageError: [{ type: o }],
2815
+ videoError: [{ type: o }],
2816
+ timeUpdate: [{ type: o }],
2817
+ click: [{ type: o }],
2818
+ focus: [{ type: o }],
2819
+ blur: [{ type: o }]
2820
+ }
2821
+ });
2822
+ var jn = class t extends $ {
2823
+ constructor(e) {
2824
+ super(e), this.kind = "group";
2825
+ }
2826
+ static {
2827
+ this.ɵfac = e.ɵɵngDeclareFactory({
2828
+ minVersion: "12.0.0",
2829
+ version: "17.3.12",
2830
+ ngImport: e,
2831
+ type: t,
2832
+ deps: [{ token: e.ElementRef }],
2833
+ target: e.ɵɵFactoryTarget.Directive
2834
+ });
2835
+ }
2836
+ static {
2837
+ this.ɵdir = e.ɵɵngDeclareDirective({
2838
+ minVersion: "14.0.0",
2839
+ version: "17.3.12",
2840
+ type: t,
2841
+ isStandalone: !0,
2842
+ selector: "canvas-group",
2843
+ usesInheritance: !0,
2844
+ ngImport: e
2845
+ });
2846
+ }
2847
+ };
2848
+ e.ɵɵngDeclareClassMetadata({
2849
+ minVersion: "12.0.0",
2850
+ version: "17.3.12",
2851
+ ngImport: e,
2852
+ type: jn,
2853
+ decorators: [{
2854
+ type: n,
2855
+ args: [{
2856
+ selector: "canvas-group",
2857
+ standalone: !0
2858
+ }]
2859
+ }],
2860
+ ctorParameters: () => [{ type: e.ElementRef }]
2861
+ });
2862
+ var Mn = class t extends $ {
2863
+ constructor(e) {
2864
+ super(e), this.kind = "grid";
2865
+ }
2866
+ static {
2867
+ this.ɵfac = e.ɵɵngDeclareFactory({
2868
+ minVersion: "12.0.0",
2869
+ version: "17.3.12",
2870
+ ngImport: e,
2871
+ type: t,
2872
+ deps: [{ token: e.ElementRef }],
2873
+ target: e.ɵɵFactoryTarget.Directive
2874
+ });
2875
+ }
2876
+ static {
2877
+ this.ɵdir = e.ɵɵngDeclareDirective({
2878
+ minVersion: "14.0.0",
2879
+ version: "17.3.12",
2880
+ type: t,
2881
+ isStandalone: !0,
2882
+ selector: "canvas-grid",
2883
+ usesInheritance: !0,
2884
+ ngImport: e
2885
+ });
2886
+ }
2887
+ };
2888
+ e.ɵɵngDeclareClassMetadata({
2889
+ minVersion: "12.0.0",
2890
+ version: "17.3.12",
2891
+ ngImport: e,
2892
+ type: Mn,
2893
+ decorators: [{
2894
+ type: n,
2895
+ args: [{
2896
+ selector: "canvas-grid",
2897
+ standalone: !0
2898
+ }]
2899
+ }],
2900
+ ctorParameters: () => [{ type: e.ElementRef }]
2901
+ });
2902
+ var Nn = class t extends $ {
2903
+ constructor(e) {
2904
+ super(e), this.kind = "gridItem";
2905
+ }
2906
+ static {
2907
+ this.ɵfac = e.ɵɵngDeclareFactory({
2908
+ minVersion: "12.0.0",
2909
+ version: "17.3.12",
2910
+ ngImport: e,
2911
+ type: t,
2912
+ deps: [{ token: e.ElementRef }],
2913
+ target: e.ɵɵFactoryTarget.Directive
2914
+ });
2915
+ }
2916
+ static {
2917
+ this.ɵdir = e.ɵɵngDeclareDirective({
2918
+ minVersion: "14.0.0",
2919
+ version: "17.3.12",
2920
+ type: t,
2921
+ isStandalone: !0,
2922
+ selector: "canvas-grid-item",
2923
+ usesInheritance: !0,
2924
+ ngImport: e
2925
+ });
2926
+ }
2927
+ };
2928
+ e.ɵɵngDeclareClassMetadata({
2929
+ minVersion: "12.0.0",
2930
+ version: "17.3.12",
2931
+ ngImport: e,
2932
+ type: Nn,
2933
+ decorators: [{
2934
+ type: n,
2935
+ args: [{
2936
+ selector: "canvas-grid-item",
2937
+ standalone: !0
2938
+ }]
2939
+ }],
2940
+ ctorParameters: () => [{ type: e.ElementRef }]
2941
+ });
2942
+ var Pn = class t extends $ {
2943
+ constructor(e) {
2944
+ super(e), this.kind = "image";
2945
+ }
2946
+ static {
2947
+ this.ɵfac = e.ɵɵngDeclareFactory({
2948
+ minVersion: "12.0.0",
2949
+ version: "17.3.12",
2950
+ ngImport: e,
2951
+ type: t,
2952
+ deps: [{ token: e.ElementRef }],
2953
+ target: e.ɵɵFactoryTarget.Directive
2954
+ });
2955
+ }
2956
+ static {
2957
+ this.ɵdir = e.ɵɵngDeclareDirective({
2958
+ minVersion: "14.0.0",
2959
+ version: "17.3.12",
2960
+ type: t,
2961
+ isStandalone: !0,
2962
+ selector: "canvas-image",
2963
+ usesInheritance: !0,
2964
+ ngImport: e
2965
+ });
2966
+ }
2967
+ };
2968
+ e.ɵɵngDeclareClassMetadata({
2969
+ minVersion: "12.0.0",
2970
+ version: "17.3.12",
2971
+ ngImport: e,
2972
+ type: Pn,
2973
+ decorators: [{
2974
+ type: n,
2975
+ args: [{
2976
+ selector: "canvas-image",
2977
+ standalone: !0
2978
+ }]
2979
+ }],
2980
+ ctorParameters: () => [{ type: e.ElementRef }]
2981
+ });
2982
+ var Fn = class t extends $ {
2983
+ constructor(e) {
2984
+ super(e), this.kind = "video";
2985
+ }
2986
+ static {
2987
+ this.ɵfac = e.ɵɵngDeclareFactory({
2988
+ minVersion: "12.0.0",
2989
+ version: "17.3.12",
2990
+ ngImport: e,
2991
+ type: t,
2992
+ deps: [{ token: e.ElementRef }],
2993
+ target: e.ɵɵFactoryTarget.Directive
2994
+ });
2995
+ }
2996
+ static {
2997
+ this.ɵdir = e.ɵɵngDeclareDirective({
2998
+ minVersion: "14.0.0",
2999
+ version: "17.3.12",
3000
+ type: t,
3001
+ isStandalone: !0,
3002
+ selector: "canvas-video",
3003
+ usesInheritance: !0,
3004
+ ngImport: e
3005
+ });
3006
+ }
3007
+ };
3008
+ e.ɵɵngDeclareClassMetadata({
3009
+ minVersion: "12.0.0",
3010
+ version: "17.3.12",
3011
+ ngImport: e,
3012
+ type: Fn,
3013
+ decorators: [{
3014
+ type: n,
3015
+ args: [{
3016
+ selector: "canvas-video",
3017
+ standalone: !0
3018
+ }]
3019
+ }],
3020
+ ctorParameters: () => [{ type: e.ElementRef }]
3021
+ });
3022
+ var In = class t extends $ {
3023
+ constructor(e) {
3024
+ super(e), this.kind = "dialog";
3025
+ }
3026
+ static {
3027
+ this.ɵfac = e.ɵɵngDeclareFactory({
3028
+ minVersion: "12.0.0",
3029
+ version: "17.3.12",
3030
+ ngImport: e,
3031
+ type: t,
3032
+ deps: [{ token: e.ElementRef }],
3033
+ target: e.ɵɵFactoryTarget.Directive
3034
+ });
3035
+ }
3036
+ static {
3037
+ this.ɵdir = e.ɵɵngDeclareDirective({
3038
+ minVersion: "14.0.0",
3039
+ version: "17.3.12",
3040
+ type: t,
3041
+ isStandalone: !0,
3042
+ selector: "canvas-dialog",
3043
+ usesInheritance: !0,
3044
+ ngImport: e
3045
+ });
3046
+ }
3047
+ };
3048
+ e.ɵɵngDeclareClassMetadata({
3049
+ minVersion: "12.0.0",
3050
+ version: "17.3.12",
3051
+ ngImport: e,
3052
+ type: In,
3053
+ decorators: [{
3054
+ type: n,
3055
+ args: [{
3056
+ selector: "canvas-dialog",
3057
+ standalone: !0
3058
+ }]
3059
+ }],
3060
+ ctorParameters: () => [{ type: e.ElementRef }]
3061
+ });
3062
+ var Ln = class t extends $ {
3063
+ constructor(e) {
3064
+ super(e), this.kind = "progress";
3065
+ }
3066
+ static {
3067
+ this.ɵfac = e.ɵɵngDeclareFactory({
3068
+ minVersion: "12.0.0",
3069
+ version: "17.3.12",
3070
+ ngImport: e,
3071
+ type: t,
3072
+ deps: [{ token: e.ElementRef }],
3073
+ target: e.ɵɵFactoryTarget.Directive
3074
+ });
3075
+ }
3076
+ static {
3077
+ this.ɵdir = e.ɵɵngDeclareDirective({
3078
+ minVersion: "14.0.0",
3079
+ version: "17.3.12",
3080
+ type: t,
3081
+ isStandalone: !0,
3082
+ selector: "canvas-progress",
3083
+ usesInheritance: !0,
3084
+ ngImport: e
3085
+ });
3086
+ }
3087
+ };
3088
+ e.ɵɵngDeclareClassMetadata({
3089
+ minVersion: "12.0.0",
3090
+ version: "17.3.12",
3091
+ ngImport: e,
3092
+ type: Ln,
3093
+ decorators: [{
3094
+ type: n,
3095
+ args: [{
3096
+ selector: "canvas-progress",
3097
+ standalone: !0
3098
+ }]
3099
+ }],
3100
+ ctorParameters: () => [{ type: e.ElementRef }]
3101
+ });
3102
+ var Rn = class t extends $ {
3103
+ constructor(e) {
3104
+ super(e), this.kind = "tabs";
3105
+ }
3106
+ static {
3107
+ this.ɵfac = e.ɵɵngDeclareFactory({
3108
+ minVersion: "12.0.0",
3109
+ version: "17.3.12",
3110
+ ngImport: e,
3111
+ type: t,
3112
+ deps: [{ token: e.ElementRef }],
3113
+ target: e.ɵɵFactoryTarget.Directive
3114
+ });
3115
+ }
3116
+ static {
3117
+ this.ɵdir = e.ɵɵngDeclareDirective({
3118
+ minVersion: "14.0.0",
3119
+ version: "17.3.12",
3120
+ type: t,
3121
+ isStandalone: !0,
3122
+ selector: "canvas-tabs",
3123
+ usesInheritance: !0,
3124
+ ngImport: e
3125
+ });
3126
+ }
3127
+ };
3128
+ e.ɵɵngDeclareClassMetadata({
3129
+ minVersion: "12.0.0",
3130
+ version: "17.3.12",
3131
+ ngImport: e,
3132
+ type: Rn,
3133
+ decorators: [{
3134
+ type: n,
3135
+ args: [{
3136
+ selector: "canvas-tabs",
3137
+ standalone: !0
3138
+ }]
3139
+ }],
3140
+ ctorParameters: () => [{ type: e.ElementRef }]
3141
+ });
3142
+ var zn = class t extends $ {
3143
+ constructor(e) {
3144
+ super(e), this.kind = "tabItem";
3145
+ }
3146
+ static {
3147
+ this.ɵfac = e.ɵɵngDeclareFactory({
3148
+ minVersion: "12.0.0",
3149
+ version: "17.3.12",
3150
+ ngImport: e,
3151
+ type: t,
3152
+ deps: [{ token: e.ElementRef }],
3153
+ target: e.ɵɵFactoryTarget.Directive
3154
+ });
3155
+ }
3156
+ static {
3157
+ this.ɵdir = e.ɵɵngDeclareDirective({
3158
+ minVersion: "14.0.0",
3159
+ version: "17.3.12",
3160
+ type: t,
3161
+ isStandalone: !0,
3162
+ selector: "canvas-tab-item",
3163
+ usesInheritance: !0,
3164
+ ngImport: e
3165
+ });
3166
+ }
3167
+ };
3168
+ e.ɵɵngDeclareClassMetadata({
3169
+ minVersion: "12.0.0",
3170
+ version: "17.3.12",
3171
+ ngImport: e,
3172
+ type: zn,
3173
+ decorators: [{
3174
+ type: n,
3175
+ args: [{
3176
+ selector: "canvas-tab-item",
3177
+ standalone: !0
3178
+ }]
3179
+ }],
3180
+ ctorParameters: () => [{ type: e.ElementRef }]
3181
+ });
3182
+ var Bn = class t extends $ {
3183
+ constructor(e) {
3184
+ super(e), this.kind = "collapse";
3185
+ }
3186
+ static {
3187
+ this.ɵfac = e.ɵɵngDeclareFactory({
3188
+ minVersion: "12.0.0",
3189
+ version: "17.3.12",
3190
+ ngImport: e,
3191
+ type: t,
3192
+ deps: [{ token: e.ElementRef }],
3193
+ target: e.ɵɵFactoryTarget.Directive
3194
+ });
3195
+ }
3196
+ static {
3197
+ this.ɵdir = e.ɵɵngDeclareDirective({
3198
+ minVersion: "14.0.0",
3199
+ version: "17.3.12",
3200
+ type: t,
3201
+ isStandalone: !0,
3202
+ selector: "canvas-collapse",
3203
+ usesInheritance: !0,
3204
+ ngImport: e
3205
+ });
3206
+ }
3207
+ };
3208
+ e.ɵɵngDeclareClassMetadata({
3209
+ minVersion: "12.0.0",
3210
+ version: "17.3.12",
3211
+ ngImport: e,
3212
+ type: Bn,
3213
+ decorators: [{
3214
+ type: n,
3215
+ args: [{
3216
+ selector: "canvas-collapse",
3217
+ standalone: !0
3218
+ }]
3219
+ }],
3220
+ ctorParameters: () => [{ type: e.ElementRef }]
3221
+ });
3222
+ var Vn = class t extends $ {
3223
+ constructor(e) {
3224
+ super(e), this.kind = "collapseItem";
3225
+ }
3226
+ static {
3227
+ this.ɵfac = e.ɵɵngDeclareFactory({
3228
+ minVersion: "12.0.0",
3229
+ version: "17.3.12",
3230
+ ngImport: e,
3231
+ type: t,
3232
+ deps: [{ token: e.ElementRef }],
3233
+ target: e.ɵɵFactoryTarget.Directive
3234
+ });
3235
+ }
3236
+ static {
3237
+ this.ɵdir = e.ɵɵngDeclareDirective({
3238
+ minVersion: "14.0.0",
3239
+ version: "17.3.12",
3240
+ type: t,
3241
+ isStandalone: !0,
3242
+ selector: "canvas-collapse-item",
3243
+ usesInheritance: !0,
3244
+ ngImport: e
3245
+ });
3246
+ }
3247
+ };
3248
+ e.ɵɵngDeclareClassMetadata({
3249
+ minVersion: "12.0.0",
3250
+ version: "17.3.12",
3251
+ ngImport: e,
3252
+ type: Vn,
3253
+ decorators: [{
3254
+ type: n,
3255
+ args: [{
3256
+ selector: "canvas-collapse-item",
3257
+ standalone: !0
3258
+ }]
3259
+ }],
3260
+ ctorParameters: () => [{ type: e.ElementRef }]
3261
+ });
3262
+ var Hn = class t extends $ {
3263
+ constructor(e) {
3264
+ super(e), this.kind = "customDraw";
3265
+ }
3266
+ static {
3267
+ this.ɵfac = e.ɵɵngDeclareFactory({
3268
+ minVersion: "12.0.0",
3269
+ version: "17.3.12",
3270
+ ngImport: e,
3271
+ type: t,
3272
+ deps: [{ token: e.ElementRef }],
3273
+ target: e.ɵɵFactoryTarget.Directive
3274
+ });
3275
+ }
3276
+ static {
3277
+ this.ɵdir = e.ɵɵngDeclareDirective({
3278
+ minVersion: "14.0.0",
3279
+ version: "17.3.12",
3280
+ type: t,
3281
+ isStandalone: !0,
3282
+ selector: "canvas-custom-draw",
3283
+ usesInheritance: !0,
3284
+ ngImport: e
3285
+ });
3286
+ }
3287
+ };
3288
+ e.ɵɵngDeclareClassMetadata({
3289
+ minVersion: "12.0.0",
3290
+ version: "17.3.12",
3291
+ ngImport: e,
3292
+ type: Hn,
3293
+ decorators: [{
3294
+ type: n,
3295
+ args: [{
3296
+ selector: "canvas-custom-draw",
3297
+ standalone: !0
3298
+ }]
3299
+ }],
3300
+ ctorParameters: () => [{ type: e.ElementRef }]
3301
+ });
3302
+ var Un = class t extends $ {
3303
+ constructor(e) {
3304
+ super(e), this.kind = "canvasView";
3305
+ }
3306
+ static {
3307
+ this.ɵfac = e.ɵɵngDeclareFactory({
3308
+ minVersion: "12.0.0",
3309
+ version: "17.3.12",
3310
+ ngImport: e,
3311
+ type: t,
3312
+ deps: [{ token: e.ElementRef }],
3313
+ target: e.ɵɵFactoryTarget.Directive
3314
+ });
3315
+ }
3316
+ static {
3317
+ this.ɵdir = e.ɵɵngDeclareDirective({
3318
+ minVersion: "14.0.0",
3319
+ version: "17.3.12",
3320
+ type: t,
3321
+ isStandalone: !0,
3322
+ selector: "canvas-view",
3323
+ usesInheritance: !0,
3324
+ ngImport: e
3325
+ });
3326
+ }
3327
+ };
3328
+ e.ɵɵngDeclareClassMetadata({
3329
+ minVersion: "12.0.0",
3330
+ version: "17.3.12",
3331
+ ngImport: e,
3332
+ type: Un,
3333
+ decorators: [{
3334
+ type: n,
3335
+ args: [{
3336
+ selector: "canvas-view",
3337
+ standalone: !0
3338
+ }]
3339
+ }],
3340
+ ctorParameters: () => [{ type: e.ElementRef }]
3341
+ });
3342
+ var Wn = class t extends $ {
3343
+ constructor(e) {
3344
+ super(e), this.kind = "icon";
3345
+ }
3346
+ static {
3347
+ this.ɵfac = e.ɵɵngDeclareFactory({
3348
+ minVersion: "12.0.0",
3349
+ version: "17.3.12",
3350
+ ngImport: e,
3351
+ type: t,
3352
+ deps: [{ token: e.ElementRef }],
3353
+ target: e.ɵɵFactoryTarget.Directive
3354
+ });
3355
+ }
3356
+ static {
3357
+ this.ɵdir = e.ɵɵngDeclareDirective({
3358
+ minVersion: "14.0.0",
3359
+ version: "17.3.12",
3360
+ type: t,
3361
+ isStandalone: !0,
3362
+ selector: "canvas-icon",
3363
+ usesInheritance: !0,
3364
+ ngImport: e
3365
+ });
3366
+ }
3367
+ };
3368
+ e.ɵɵngDeclareClassMetadata({
3369
+ minVersion: "12.0.0",
3370
+ version: "17.3.12",
3371
+ ngImport: e,
3372
+ type: Wn,
3373
+ decorators: [{
3374
+ type: n,
3375
+ args: [{
3376
+ selector: "canvas-icon",
3377
+ standalone: !0
3378
+ }]
3379
+ }],
3380
+ ctorParameters: () => [{ type: e.ElementRef }]
3381
+ });
3382
+ var Gn = class t extends $ {
3383
+ constructor(e) {
3384
+ super(e), this.kind = "rect";
3385
+ }
3386
+ static {
3387
+ this.ɵfac = e.ɵɵngDeclareFactory({
3388
+ minVersion: "12.0.0",
3389
+ version: "17.3.12",
3390
+ ngImport: e,
3391
+ type: t,
3392
+ deps: [{ token: e.ElementRef }],
3393
+ target: e.ɵɵFactoryTarget.Directive
3394
+ });
3395
+ }
3396
+ static {
3397
+ this.ɵdir = e.ɵɵngDeclareDirective({
3398
+ minVersion: "14.0.0",
3399
+ version: "17.3.12",
3400
+ type: t,
3401
+ isStandalone: !0,
3402
+ selector: "canvas-rect",
3403
+ usesInheritance: !0,
3404
+ ngImport: e
3405
+ });
3406
+ }
3407
+ };
3408
+ e.ɵɵngDeclareClassMetadata({
3409
+ minVersion: "12.0.0",
3410
+ version: "17.3.12",
3411
+ ngImport: e,
3412
+ type: Gn,
3413
+ decorators: [{
3414
+ type: n,
3415
+ args: [{
3416
+ selector: "canvas-rect",
3417
+ standalone: !0
3418
+ }]
3419
+ }],
3420
+ ctorParameters: () => [{ type: e.ElementRef }]
3421
+ });
3422
+ var Kn = class t extends $ {
3423
+ constructor(e) {
3424
+ super(e), this.kind = "circle";
3425
+ }
3426
+ static {
3427
+ this.ɵfac = e.ɵɵngDeclareFactory({
3428
+ minVersion: "12.0.0",
3429
+ version: "17.3.12",
3430
+ ngImport: e,
3431
+ type: t,
3432
+ deps: [{ token: e.ElementRef }],
3433
+ target: e.ɵɵFactoryTarget.Directive
3434
+ });
3435
+ }
3436
+ static {
3437
+ this.ɵdir = e.ɵɵngDeclareDirective({
3438
+ minVersion: "14.0.0",
3439
+ version: "17.3.12",
3440
+ type: t,
3441
+ isStandalone: !0,
3442
+ selector: "canvas-circle",
3443
+ usesInheritance: !0,
3444
+ ngImport: e
3445
+ });
3446
+ }
3447
+ };
3448
+ e.ɵɵngDeclareClassMetadata({
3449
+ minVersion: "12.0.0",
3450
+ version: "17.3.12",
3451
+ ngImport: e,
3452
+ type: Kn,
3453
+ decorators: [{
3454
+ type: n,
3455
+ args: [{
3456
+ selector: "canvas-circle",
3457
+ standalone: !0
3458
+ }]
3459
+ }],
3460
+ ctorParameters: () => [{ type: e.ElementRef }]
3461
+ });
3462
+ var qn = class t extends $ {
3463
+ constructor(e) {
3464
+ super(e), this.kind = "text";
3465
+ }
3466
+ static {
3467
+ this.ɵfac = e.ɵɵngDeclareFactory({
3468
+ minVersion: "12.0.0",
3469
+ version: "17.3.12",
3470
+ ngImport: e,
3471
+ type: t,
3472
+ deps: [{ token: e.ElementRef }],
3473
+ target: e.ɵɵFactoryTarget.Directive
3474
+ });
3475
+ }
3476
+ static {
3477
+ this.ɵdir = e.ɵɵngDeclareDirective({
3478
+ minVersion: "14.0.0",
3479
+ version: "17.3.12",
3480
+ type: t,
3481
+ isStandalone: !0,
3482
+ selector: "canvas-text",
3483
+ usesInheritance: !0,
3484
+ ngImport: e
3485
+ });
3486
+ }
3487
+ };
3488
+ e.ɵɵngDeclareClassMetadata({
3489
+ minVersion: "12.0.0",
3490
+ version: "17.3.12",
3491
+ ngImport: e,
3492
+ type: qn,
3493
+ decorators: [{
3494
+ type: n,
3495
+ args: [{
3496
+ selector: "canvas-text",
3497
+ standalone: !0
3498
+ }]
3499
+ }],
3500
+ ctorParameters: () => [{ type: e.ElementRef }]
3501
+ });
3502
+ var Jn = class t extends $ {
3503
+ constructor(e) {
3504
+ super(e), this.kind = "input";
3505
+ }
3506
+ static {
3507
+ this.ɵfac = e.ɵɵngDeclareFactory({
3508
+ minVersion: "12.0.0",
3509
+ version: "17.3.12",
3510
+ ngImport: e,
3511
+ type: t,
3512
+ deps: [{ token: e.ElementRef }],
3513
+ target: e.ɵɵFactoryTarget.Directive
3514
+ });
3515
+ }
3516
+ static {
3517
+ this.ɵdir = e.ɵɵngDeclareDirective({
3518
+ minVersion: "14.0.0",
3519
+ version: "17.3.12",
3520
+ type: t,
3521
+ isStandalone: !0,
3522
+ selector: "canvas-input",
3523
+ usesInheritance: !0,
3524
+ ngImport: e
3525
+ });
3526
+ }
3527
+ };
3528
+ e.ɵɵngDeclareClassMetadata({
3529
+ minVersion: "12.0.0",
3530
+ version: "17.3.12",
3531
+ ngImport: e,
3532
+ type: Jn,
3533
+ decorators: [{
3534
+ type: n,
3535
+ args: [{
3536
+ selector: "canvas-input",
3537
+ standalone: !0
3538
+ }]
3539
+ }],
3540
+ ctorParameters: () => [{ type: e.ElementRef }]
3541
+ });
3542
+ var Yn = class t extends $ {
3543
+ constructor(e) {
3544
+ super(e), this.kind = "datePicker";
3545
+ }
3546
+ static {
3547
+ this.ɵfac = e.ɵɵngDeclareFactory({
3548
+ minVersion: "12.0.0",
3549
+ version: "17.3.12",
3550
+ ngImport: e,
3551
+ type: t,
3552
+ deps: [{ token: e.ElementRef }],
3553
+ target: e.ɵɵFactoryTarget.Directive
3554
+ });
3555
+ }
3556
+ static {
3557
+ this.ɵdir = e.ɵɵngDeclareDirective({
3558
+ minVersion: "14.0.0",
3559
+ version: "17.3.12",
3560
+ type: t,
3561
+ isStandalone: !0,
3562
+ selector: "canvas-date-picker",
3563
+ usesInheritance: !0,
3564
+ ngImport: e
3565
+ });
3566
+ }
3567
+ };
3568
+ e.ɵɵngDeclareClassMetadata({
3569
+ minVersion: "12.0.0",
3570
+ version: "17.3.12",
3571
+ ngImport: e,
3572
+ type: Yn,
3573
+ decorators: [{
3574
+ type: n,
3575
+ args: [{
3576
+ selector: "canvas-date-picker",
3577
+ standalone: !0
3578
+ }]
3579
+ }],
3580
+ ctorParameters: () => [{ type: e.ElementRef }]
3581
+ });
3582
+ var Xn = class t extends $ {
3583
+ constructor(e) {
3584
+ super(e), this.kind = "radio";
3585
+ }
3586
+ static {
3587
+ this.ɵfac = e.ɵɵngDeclareFactory({
3588
+ minVersion: "12.0.0",
3589
+ version: "17.3.12",
3590
+ ngImport: e,
3591
+ type: t,
3592
+ deps: [{ token: e.ElementRef }],
3593
+ target: e.ɵɵFactoryTarget.Directive
3594
+ });
3595
+ }
3596
+ static {
3597
+ this.ɵdir = e.ɵɵngDeclareDirective({
3598
+ minVersion: "14.0.0",
3599
+ version: "17.3.12",
3600
+ type: t,
3601
+ isStandalone: !0,
3602
+ selector: "canvas-radio",
3603
+ usesInheritance: !0,
3604
+ ngImport: e
3605
+ });
3606
+ }
3607
+ };
3608
+ e.ɵɵngDeclareClassMetadata({
3609
+ minVersion: "12.0.0",
3610
+ version: "17.3.12",
3611
+ ngImport: e,
3612
+ type: Xn,
3613
+ decorators: [{
3614
+ type: n,
3615
+ args: [{
3616
+ selector: "canvas-radio",
3617
+ standalone: !0
3618
+ }]
3619
+ }],
3620
+ ctorParameters: () => [{ type: e.ElementRef }]
3621
+ });
3622
+ var Zn = class t extends $ {
3623
+ constructor(e) {
3624
+ super(e), this.kind = "checkbox";
3625
+ }
3626
+ static {
3627
+ this.ɵfac = e.ɵɵngDeclareFactory({
3628
+ minVersion: "12.0.0",
3629
+ version: "17.3.12",
3630
+ ngImport: e,
3631
+ type: t,
3632
+ deps: [{ token: e.ElementRef }],
3633
+ target: e.ɵɵFactoryTarget.Directive
3634
+ });
3635
+ }
3636
+ static {
3637
+ this.ɵdir = e.ɵɵngDeclareDirective({
3638
+ minVersion: "14.0.0",
3639
+ version: "17.3.12",
3640
+ type: t,
3641
+ isStandalone: !0,
3642
+ selector: "canvas-checkbox",
3643
+ usesInheritance: !0,
3644
+ ngImport: e
3645
+ });
3646
+ }
3647
+ };
3648
+ e.ɵɵngDeclareClassMetadata({
3649
+ minVersion: "12.0.0",
3650
+ version: "17.3.12",
3651
+ ngImport: e,
3652
+ type: Zn,
3653
+ decorators: [{
3654
+ type: n,
3655
+ args: [{
3656
+ selector: "canvas-checkbox",
3657
+ standalone: !0
3658
+ }]
3659
+ }],
3660
+ ctorParameters: () => [{ type: e.ElementRef }]
3661
+ });
3662
+ var Qn = class t extends $ {
3663
+ constructor(e) {
3664
+ super(e), this.kind = "upload";
3665
+ }
3666
+ static {
3667
+ this.ɵfac = e.ɵɵngDeclareFactory({
3668
+ minVersion: "12.0.0",
3669
+ version: "17.3.12",
3670
+ ngImport: e,
3671
+ type: t,
3672
+ deps: [{ token: e.ElementRef }],
3673
+ target: e.ɵɵFactoryTarget.Directive
3674
+ });
3675
+ }
3676
+ static {
3677
+ this.ɵdir = e.ɵɵngDeclareDirective({
3678
+ minVersion: "14.0.0",
3679
+ version: "17.3.12",
3680
+ type: t,
3681
+ isStandalone: !0,
3682
+ selector: "canvas-upload",
3683
+ usesInheritance: !0,
3684
+ ngImport: e
3685
+ });
3686
+ }
3687
+ };
3688
+ e.ɵɵngDeclareClassMetadata({
3689
+ minVersion: "12.0.0",
3690
+ version: "17.3.12",
3691
+ ngImport: e,
3692
+ type: Qn,
3693
+ decorators: [{
3694
+ type: n,
3695
+ args: [{
3696
+ selector: "canvas-upload",
3697
+ standalone: !0
3698
+ }]
3699
+ }],
3700
+ ctorParameters: () => [{ type: e.ElementRef }]
3701
+ });
3702
+ var $n = class t extends $ {
3703
+ constructor(e) {
3704
+ super(e), this.kind = "carousel";
3705
+ }
3706
+ static {
3707
+ this.ɵfac = e.ɵɵngDeclareFactory({
3708
+ minVersion: "12.0.0",
3709
+ version: "17.3.12",
3710
+ ngImport: e,
3711
+ type: t,
3712
+ deps: [{ token: e.ElementRef }],
3713
+ target: e.ɵɵFactoryTarget.Directive
3714
+ });
3715
+ }
3716
+ static {
3717
+ this.ɵdir = e.ɵɵngDeclareDirective({
3718
+ minVersion: "14.0.0",
3719
+ version: "17.3.12",
3720
+ type: t,
3721
+ isStandalone: !0,
3722
+ selector: "canvas-carousel",
3723
+ usesInheritance: !0,
3724
+ ngImport: e
3725
+ });
3726
+ }
3727
+ };
3728
+ e.ɵɵngDeclareClassMetadata({
3729
+ minVersion: "12.0.0",
3730
+ version: "17.3.12",
3731
+ ngImport: e,
3732
+ type: $n,
3733
+ decorators: [{
3734
+ type: n,
3735
+ args: [{
3736
+ selector: "canvas-carousel",
3737
+ standalone: !0
3738
+ }]
3739
+ }],
3740
+ ctorParameters: () => [{ type: e.ElementRef }]
3741
+ });
3742
+ var er = class t extends $ {
3743
+ constructor(e) {
3744
+ super(e), this.kind = "carouselItem";
3745
+ }
3746
+ static {
3747
+ this.ɵfac = e.ɵɵngDeclareFactory({
3748
+ minVersion: "12.0.0",
3749
+ version: "17.3.12",
3750
+ ngImport: e,
3751
+ type: t,
3752
+ deps: [{ token: e.ElementRef }],
3753
+ target: e.ɵɵFactoryTarget.Directive
3754
+ });
3755
+ }
3756
+ static {
3757
+ this.ɵdir = e.ɵɵngDeclareDirective({
3758
+ minVersion: "14.0.0",
3759
+ version: "17.3.12",
3760
+ type: t,
3761
+ isStandalone: !0,
3762
+ selector: "canvas-carousel-item",
3763
+ usesInheritance: !0,
3764
+ ngImport: e
3765
+ });
3766
+ }
3767
+ };
3768
+ e.ɵɵngDeclareClassMetadata({
3769
+ minVersion: "12.0.0",
3770
+ version: "17.3.12",
3771
+ ngImport: e,
3772
+ type: er,
3773
+ decorators: [{
3774
+ type: n,
3775
+ args: [{
3776
+ selector: "canvas-carousel-item",
3777
+ standalone: !0
3778
+ }]
3779
+ }],
3780
+ ctorParameters: () => [{ type: e.ElementRef }]
3781
+ });
3782
+ var tr = class t extends $ {
3783
+ constructor(e) {
3784
+ super(e), this.kind = "textarea";
3785
+ }
3786
+ static {
3787
+ this.ɵfac = e.ɵɵngDeclareFactory({
3788
+ minVersion: "12.0.0",
3789
+ version: "17.3.12",
3790
+ ngImport: e,
3791
+ type: t,
3792
+ deps: [{ token: e.ElementRef }],
3793
+ target: e.ɵɵFactoryTarget.Directive
3794
+ });
3795
+ }
3796
+ static {
3797
+ this.ɵdir = e.ɵɵngDeclareDirective({
3798
+ minVersion: "14.0.0",
3799
+ version: "17.3.12",
3800
+ type: t,
3801
+ isStandalone: !0,
3802
+ selector: "canvas-textarea",
3803
+ usesInheritance: !0,
3804
+ ngImport: e
3805
+ });
3806
+ }
3807
+ };
3808
+ e.ɵɵngDeclareClassMetadata({
3809
+ minVersion: "12.0.0",
3810
+ version: "17.3.12",
3811
+ ngImport: e,
3812
+ type: tr,
3813
+ decorators: [{
3814
+ type: n,
3815
+ args: [{
3816
+ selector: "canvas-textarea",
3817
+ standalone: !0
3818
+ }]
3819
+ }],
3820
+ ctorParameters: () => [{ type: e.ElementRef }]
3821
+ });
3822
+ var nr = class t extends $ {
3823
+ constructor(e) {
3824
+ super(e), this.kind = "dropdown";
3825
+ }
3826
+ static {
3827
+ this.ɵfac = e.ɵɵngDeclareFactory({
3828
+ minVersion: "12.0.0",
3829
+ version: "17.3.12",
3830
+ ngImport: e,
3831
+ type: t,
3832
+ deps: [{ token: e.ElementRef }],
3833
+ target: e.ɵɵFactoryTarget.Directive
3834
+ });
3835
+ }
3836
+ static {
3837
+ this.ɵdir = e.ɵɵngDeclareDirective({
3838
+ minVersion: "14.0.0",
3839
+ version: "17.3.12",
3840
+ type: t,
3841
+ isStandalone: !0,
3842
+ selector: "canvas-dropdown",
3843
+ usesInheritance: !0,
3844
+ ngImport: e
3845
+ });
3846
+ }
3847
+ };
3848
+ e.ɵɵngDeclareClassMetadata({
3849
+ minVersion: "12.0.0",
3850
+ version: "17.3.12",
3851
+ ngImport: e,
3852
+ type: nr,
3853
+ decorators: [{
3854
+ type: n,
3855
+ args: [{
3856
+ selector: "canvas-dropdown",
3857
+ standalone: !0
3858
+ }]
3859
+ }],
3860
+ ctorParameters: () => [{ type: e.ElementRef }]
3861
+ });
3862
+ var rr = class t extends $ {
3863
+ constructor(e) {
3864
+ super(e), this.kind = "slider";
3865
+ }
3866
+ static {
3867
+ this.ɵfac = e.ɵɵngDeclareFactory({
3868
+ minVersion: "12.0.0",
3869
+ version: "17.3.12",
3870
+ ngImport: e,
3871
+ type: t,
3872
+ deps: [{ token: e.ElementRef }],
3873
+ target: e.ɵɵFactoryTarget.Directive
3874
+ });
3875
+ }
3876
+ static {
3877
+ this.ɵdir = e.ɵɵngDeclareDirective({
3878
+ minVersion: "14.0.0",
3879
+ version: "17.3.12",
3880
+ type: t,
3881
+ isStandalone: !0,
3882
+ selector: "canvas-slider",
3883
+ usesInheritance: !0,
3884
+ ngImport: e
3885
+ });
3886
+ }
3887
+ };
3888
+ e.ɵɵngDeclareClassMetadata({
3889
+ minVersion: "12.0.0",
3890
+ version: "17.3.12",
3891
+ ngImport: e,
3892
+ type: rr,
3893
+ decorators: [{
3894
+ type: n,
3895
+ args: [{
3896
+ selector: "canvas-slider",
3897
+ standalone: !0
3898
+ }]
3899
+ }],
3900
+ ctorParameters: () => [{ type: e.ElementRef }]
3901
+ });
3902
+ var ir = class t extends $ {
3903
+ constructor(e) {
3904
+ super(e), this.kind = "switch";
3905
+ }
3906
+ static {
3907
+ this.ɵfac = e.ɵɵngDeclareFactory({
3908
+ minVersion: "12.0.0",
3909
+ version: "17.3.12",
3910
+ ngImport: e,
3911
+ type: t,
3912
+ deps: [{ token: e.ElementRef }],
3913
+ target: e.ɵɵFactoryTarget.Directive
3914
+ });
3915
+ }
3916
+ static {
3917
+ this.ɵdir = e.ɵɵngDeclareDirective({
3918
+ minVersion: "14.0.0",
3919
+ version: "17.3.12",
3920
+ type: t,
3921
+ isStandalone: !0,
3922
+ selector: "canvas-switch",
3923
+ usesInheritance: !0,
3924
+ ngImport: e
3925
+ });
3926
+ }
3927
+ };
3928
+ e.ɵɵngDeclareClassMetadata({
3929
+ minVersion: "12.0.0",
3930
+ version: "17.3.12",
3931
+ ngImport: e,
3932
+ type: ir,
3933
+ decorators: [{
3934
+ type: n,
3935
+ args: [{
3936
+ selector: "canvas-switch",
3937
+ standalone: !0
3938
+ }]
3939
+ }],
3940
+ ctorParameters: () => [{ type: e.ElementRef }]
3941
+ });
3942
+ var ar = class t extends $ {
3943
+ constructor(e) {
3944
+ super(e), this.kind = "button";
3945
+ }
3946
+ static {
3947
+ this.ɵfac = e.ɵɵngDeclareFactory({
3948
+ minVersion: "12.0.0",
3949
+ version: "17.3.12",
3950
+ ngImport: e,
3951
+ type: t,
3952
+ deps: [{ token: e.ElementRef }],
3953
+ target: e.ɵɵFactoryTarget.Directive
3954
+ });
3955
+ }
3956
+ static {
3957
+ this.ɵdir = e.ɵɵngDeclareDirective({
3958
+ minVersion: "14.0.0",
3959
+ version: "17.3.12",
3960
+ type: t,
3961
+ isStandalone: !0,
3962
+ selector: "canvas-button",
3963
+ usesInheritance: !0,
3964
+ ngImport: e
3965
+ });
3966
+ }
3967
+ };
3968
+ e.ɵɵngDeclareClassMetadata({
3969
+ minVersion: "12.0.0",
3970
+ version: "17.3.12",
3971
+ ngImport: e,
3972
+ type: ar,
3973
+ decorators: [{
3974
+ type: n,
3975
+ args: [{
3976
+ selector: "canvas-button",
3977
+ standalone: !0
3978
+ }]
3979
+ }],
3980
+ ctorParameters: () => [{ type: e.ElementRef }]
3981
+ });
3982
+ function or(e) {
3983
+ return e[kn];
3984
+ }
3985
+ // tools/angular-build/.stage/angular-compiled/angular/Canvas.js
3986
+ var sr = class t {
3987
+ constructor() {
3988
+ this.ariaLabel = "Canvas", this.engine = null, this.ratio = 1, this.initialized = !1, this.appliedStyleKeys = /* @__PURE__ */ new Set();
3989
+ }
3990
+ ngAfterViewInit() {
3991
+ this.initialized = !0, this.applyContainerStyle(), this.initializeEngine();
3992
+ }
3993
+ ngOnChanges(e) {
3994
+ e.style && this.initialized && this.applyContainerStyle(), this.initialized && (e.width || e.height) && this.initializeEngine();
3995
+ }
3996
+ ngAfterContentChecked() {
3997
+ this.engine?.update(this.compileChildren());
3998
+ }
3999
+ ngOnDestroy() {
4000
+ this.initialized = !1, this.disposeEngine();
4001
+ }
4002
+ getCanvas() {
4003
+ return this.canvasRef?.nativeElement ?? null;
4004
+ }
4005
+ requestRender() {
4006
+ this.engine?.requestRender();
4007
+ }
4008
+ toDataURL(e = {}, t) {
4009
+ let n = this.getCanvas();
4010
+ if (!n) throw Error("Canvas is not mounted.");
4011
+ let r = xn(e, t);
4012
+ return Sn(wn(n, this.engine, r, this.ratio), r.type, r.quality);
4013
+ }
4014
+ toBlob(e = {}, t) {
4015
+ return new Promise((n, r) => {
4016
+ let i = this.getCanvas();
4017
+ if (!i) {
4018
+ r(/* @__PURE__ */ Error("Canvas is not mounted."));
4019
+ return;
4020
+ }
4021
+ let a = xn(e, t);
4022
+ Cn(wn(i, this.engine, a, this.ratio), a.type, a.quality).then(n, r);
4023
+ });
4024
+ }
4025
+ pointerDown(e) {
4026
+ let t = this.normalizePointerEvent(e);
4027
+ t && this.engine?.pointerDown(t);
4028
+ }
4029
+ pointerMove(e) {
4030
+ let t = this.normalizePointerEvent(e);
4031
+ t && this.engine?.pointerMove(t);
4032
+ }
4033
+ pointerUp(e) {
4034
+ let t = this.normalizePointerEvent(e);
4035
+ t && this.engine?.pointerUp(t);
4036
+ }
4037
+ pointerCancel(e) {
4038
+ let t = this.normalizePointerEvent(e);
4039
+ t && this.engine?.pointerUp(t, !0);
4040
+ }
4041
+ wheel(e) {
4042
+ let t = this.canvasRef?.nativeElement;
4043
+ t && this.engine?.wheel({
4044
+ currentTarget: t,
4045
+ clientX: e.clientX,
4046
+ clientY: e.clientY,
4047
+ deltaY: e.deltaY,
4048
+ preventDefault: () => e.preventDefault()
4049
+ });
4050
+ }
4051
+ initializeEngine() {
4052
+ let e = this.canvasRef?.nativeElement, t = this.overlayRef?.nativeElement;
4053
+ if (!e || !t) return;
4054
+ this.disposeEngine(), this.ratio = bn(), e.width = Math.round(this.width * this.ratio), e.height = Math.round(this.height * this.ratio);
4055
+ let n = e.getContext("2d");
4056
+ if (!n) throw Error("Canvas 2D context is not available.");
4057
+ n.scale(this.ratio, this.ratio), this.engine = new yn(n, new On(t), (e) => this.onFrame?.(e), this.ratio, (e) => this.onEvent?.(e)), this.engine.update(this.compileChildren()), this.engine.start();
4058
+ }
4059
+ disposeEngine() {
4060
+ this.engine?.destroy(), this.engine = null;
4061
+ }
4062
+ compileChildren() {
4063
+ let e = this.sourceRef?.nativeElement;
4064
+ return e ? this.compileFrom(e) : [];
4065
+ }
4066
+ compileFrom(e) {
4067
+ let t = [];
4068
+ for (let n of Array.from(e.childNodes)) {
4069
+ if (n.nodeType !== Node.ELEMENT_NODE) continue;
4070
+ let e = n, r = or(e);
4071
+ if (!r) {
4072
+ t.push(...this.compileFrom(e));
4073
+ continue;
4074
+ }
4075
+ let i = r.getProps(), a = i.key;
4076
+ delete i.key;
4077
+ let o = r.kind === "group" || r.kind === "grid" || r.kind === "gridItem" || r.kind === "dialog" || r.kind === "tabs" || r.kind === "tabItem" || r.kind === "collapse" || r.kind === "collapseItem" || r.kind === "carousel" || r.kind === "carouselItem";
4078
+ if (!o) {
4079
+ let t = "";
4080
+ for (let n of Array.from(e.childNodes)) if (n.nodeType !== Node.COMMENT_NODE) {
4081
+ if (n.nodeType === Node.TEXT_NODE) {
4082
+ let e = n.nodeValue ?? "";
4083
+ if (r.kind === "button") {
4084
+ t += e;
4085
+ continue;
4086
+ }
4087
+ if (!e.trim()) continue;
4088
+ }
4089
+ throw Error(r.kind === "button" ? "<Button> accepts only text children; components and elements are not supported." : `<${r.kind}> does not accept children.${r.kind === "text" ? " Use the text prop instead." : ""}`);
4090
+ }
4091
+ r.kind === "button" && i.text === void 0 && t.trim() && (i.text = t.trim());
4092
+ }
4093
+ t.push({
4094
+ type: r.kind,
4095
+ key: a === void 0 ? null : String(a),
4096
+ props: i,
4097
+ children: o ? this.compileFrom(e) : []
4098
+ });
4099
+ }
4100
+ return t;
4101
+ }
4102
+ normalizePointerEvent(e) {
4103
+ let t = this.canvasRef?.nativeElement;
4104
+ return t ? {
4105
+ currentTarget: t,
4106
+ clientX: e.clientX,
4107
+ clientY: e.clientY,
4108
+ pointerId: e.pointerId,
4109
+ pointerType: e.pointerType,
4110
+ pressure: e.pressure,
4111
+ isPrimary: e.isPrimary,
4112
+ button: e.button,
4113
+ buttons: e.buttons,
4114
+ preventDefault: () => e.preventDefault()
4115
+ } : null;
4116
+ }
4117
+ applyContainerStyle() {
4118
+ let e = this.canvasRef?.nativeElement.parentElement;
4119
+ if (e) {
4120
+ for (let t of this.appliedStyleKeys) t in (this.style ?? {}) || (e.style[t] = "");
4121
+ this.appliedStyleKeys.clear();
4122
+ for (let [t, n] of Object.entries(this.style ?? {})) n != null && (e.style[t] = String(n), this.appliedStyleKeys.add(t));
4123
+ e.style.position = "relative", e.style.width = `${this.width}px`, e.style.height = `${this.height}px`;
4124
+ }
4125
+ }
4126
+ static {
4127
+ this.ɵfac = e.ɵɵngDeclareFactory({
4128
+ minVersion: "12.0.0",
4129
+ version: "17.3.12",
4130
+ ngImport: e,
4131
+ type: t,
4132
+ deps: [],
4133
+ target: e.ɵɵFactoryTarget.Component
4134
+ });
4135
+ }
4136
+ static {
4137
+ this.ɵcmp = e.ɵɵngDeclareComponent({
4138
+ minVersion: "14.0.0",
4139
+ version: "17.3.12",
4140
+ type: t,
4141
+ isStandalone: !0,
4142
+ selector: "canvas-ui",
4143
+ inputs: {
4144
+ width: "width",
4145
+ height: "height",
4146
+ className: "className",
4147
+ style: "style",
4148
+ ariaLabel: "ariaLabel",
4149
+ onFrame: "onFrame",
4150
+ onEvent: "onEvent"
4151
+ },
4152
+ viewQueries: [
4153
+ {
4154
+ propertyName: "canvasRef",
4155
+ first: !0,
4156
+ predicate: ["canvas"],
4157
+ descendants: !0
4158
+ },
4159
+ {
4160
+ propertyName: "overlayRef",
4161
+ first: !0,
4162
+ predicate: ["overlay"],
4163
+ descendants: !0
4164
+ },
4165
+ {
4166
+ propertyName: "sourceRef",
4167
+ first: !0,
4168
+ predicate: ["source"],
4169
+ descendants: !0
4170
+ }
4171
+ ],
4172
+ exportAs: ["canvasUi"],
4173
+ usesOnChanges: !0,
4174
+ ngImport: e,
4175
+ template: "\n <div\n [class]=\"className ?? ''\"\n [style.position]=\"'relative'\"\n [style.width.px]=\"width\"\n [style.height.px]=\"height\"\n (wheel)=\"wheel($event)\"\n >\n <canvas\n #canvas\n [attr.aria-label]=\"ariaLabel\"\n [style.display]=\"'block'\"\n [style.width]=\"'100%'\"\n [style.height]=\"'100%'\"\n (pointerdown)=\"pointerDown($event)\"\n (pointermove)=\"pointerMove($event)\"\n (pointerup)=\"pointerUp($event)\"\n (pointercancel)=\"pointerCancel($event)\"\n ></canvas>\n <div\n #overlay\n [style.position]=\"'absolute'\"\n [style.inset]=\"'0'\"\n [style.overflow]=\"'hidden'\"\n [style.pointerEvents]=\"'none'\"\n ></div>\n <div #source [style.display]=\"'none'\"><ng-content></ng-content></div>\n </div>\n ",
4176
+ isInline: !0,
4177
+ styles: [":host { display: block; }"]
4178
+ });
4179
+ }
4180
+ };
4181
+ e.ɵɵngDeclareClassMetadata({
4182
+ minVersion: "12.0.0",
4183
+ version: "17.3.12",
4184
+ ngImport: e,
4185
+ type: sr,
4186
+ decorators: [{
4187
+ type: t,
4188
+ args: [{
4189
+ selector: "canvas-ui",
4190
+ standalone: !0,
4191
+ exportAs: "canvasUi",
4192
+ template: "\n <div\n [class]=\"className ?? ''\"\n [style.position]=\"'relative'\"\n [style.width.px]=\"width\"\n [style.height.px]=\"height\"\n (wheel)=\"wheel($event)\"\n >\n <canvas\n #canvas\n [attr.aria-label]=\"ariaLabel\"\n [style.display]=\"'block'\"\n [style.width]=\"'100%'\"\n [style.height]=\"'100%'\"\n (pointerdown)=\"pointerDown($event)\"\n (pointermove)=\"pointerMove($event)\"\n (pointerup)=\"pointerUp($event)\"\n (pointercancel)=\"pointerCancel($event)\"\n ></canvas>\n <div\n #overlay\n [style.position]=\"'absolute'\"\n [style.inset]=\"'0'\"\n [style.overflow]=\"'hidden'\"\n [style.pointerEvents]=\"'none'\"\n ></div>\n <div #source [style.display]=\"'none'\"><ng-content></ng-content></div>\n </div>\n ",
4193
+ styles: [":host { display: block; }"]
4194
+ }]
4195
+ }],
4196
+ propDecorators: {
4197
+ width: [{
4198
+ type: a,
4199
+ args: [{ required: !0 }]
4200
+ }],
4201
+ height: [{
4202
+ type: a,
4203
+ args: [{ required: !0 }]
4204
+ }],
4205
+ className: [{ type: a }],
4206
+ style: [{ type: a }],
4207
+ ariaLabel: [{ type: a }],
4208
+ onFrame: [{ type: a }],
4209
+ onEvent: [{ type: a }],
4210
+ canvasRef: [{
4211
+ type: s,
4212
+ args: ["canvas"]
4213
+ }],
4214
+ overlayRef: [{
4215
+ type: s,
4216
+ args: ["overlay"]
4217
+ }],
4218
+ sourceRef: [{
4219
+ type: s,
4220
+ args: ["source"]
4221
+ }]
4222
+ }
4223
+ });
4224
+ export { ar as Button, sr as Canvas, Un as CanvasView, $n as Carousel, er as CarouselItem, Zn as Checkbox, Kn as Circle, Bn as Collapse, Vn as CollapseItem, Hn as CustomDraw, Yn as DatePicker, In as Dialog, nr as Dropdown, Mn as Grid, Nn as GridItem, jn as Group, Wn as Icon, Pn as Image, Jn as Input, Ln as Progress, Xn as Radio, Gn as Rect, rr as Slider, ir as Switch, zn as TabItem, Rn as Tabs, qn as Text, tr as Textarea, Qn as Upload, Fn as Video };