@web-canvas-ui/angular 0.2.0 → 0.3.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.
package/index.js CHANGED
@@ -32,7 +32,7 @@ var c = class e {
32
32
  ...t.props,
33
33
  _key: s
34
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;
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" ? [] : "")), t.type === "upload" && (d._controlledValue = t.props.value !== void 0, d.value = d.value ?? l?.props.value ?? d.defaultValue ?? [], d._uploadError = l?.props._formResetVersion === d._formResetVersion ? l?.props._uploadError : void 0), u.replaceProps(d), u.syncChildren(t.children, n), u;
36
36
  });
37
37
  for (let e of r) !i.has(e) && !o.includes(e) && (n(e), e.parent = null);
38
38
  (o.length !== this.children.length || o.some((e, t) => this.children[t] !== e)) && (this.children.splice(0, this.children.length, ...o), this.markDirty());
@@ -107,16 +107,16 @@ function re() {
107
107
  }
108
108
  function C(e, t) {
109
109
  let n = re();
110
- return n ? (ne !== t && (n.font = t, ne = t), n.measureText(e).width) : w(e, t);
110
+ return n ? (ne !== t && (n.font = t, ne = t), n.measureText(e).width) : ie(e, t);
111
111
  }
112
- function w(e, t) {
112
+ function ie(e, t) {
113
113
  let n = parseFloat(t) || 14;
114
114
  return Array.from(e).reduce((e, t) => {
115
115
  let r = m.test(t);
116
116
  return e + n * (r ? 1 : .62);
117
117
  }, 0);
118
118
  }
119
- function T(e, t, n, r, i, a, o) {
119
+ function ae(e, t, n, r, i, a, o) {
120
120
  if (e.beginPath(), e.rect(0, 0, i, a), e.clip(), !(n > 0) || !(r > 0) || !(i > 0) || !(a > 0)) return;
121
121
  if (o === "fill") {
122
122
  e.drawImage(t, 0, 0, i, a);
@@ -131,73 +131,73 @@ function T(e, t, n, r, i, a, o) {
131
131
  let c = n * s, l = r * s;
132
132
  e.drawImage(t, (i - c) / 2, (a - l) / 2, c, l);
133
133
  }
134
- var E = null;
135
- function ie() {
136
- if (E !== null) return E;
134
+ var w = null;
135
+ function oe() {
136
+ if (w !== null) return w;
137
137
  let e = typeof document > "u" ? null : document.body;
138
138
  if (!e) return 0;
139
139
  let t = document.createElement("div");
140
140
  t.style.position = "absolute", t.style.top = "-9999px", t.style.width = "100px", t.style.height = "100px", t.style.overflowY = "scroll";
141
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;
142
+ return n.style.width = "10px", n.style.height = "200px", t.appendChild(n), e.appendChild(t), w = Math.max(0, t.offsetWidth - t.clientWidth), t.remove(), w;
143
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);
144
+ var T = 0, se = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
145
+ function ce(e, t) {
146
+ E.set(e, E.get(t) ?? t);
147
147
  }
148
- function se() {
149
- D += 1;
148
+ function le() {
149
+ T += 1;
150
150
  }
151
- function k(e, t, n) {
151
+ function D(e, t, n) {
152
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));
153
+ let r = E.get(e.canvas) ?? e.canvas, i = se.get(r);
154
+ i || (i = /* @__PURE__ */ new Map(), se.set(r, i));
155
155
  let a = i.get(t);
156
- if (a && a.generation === D) return a.value;
156
+ if (a && a.generation === T) return a.value;
157
157
  let o = getComputedStyle(r).getPropertyValue(t).trim() || n;
158
158
  return i.set(t, {
159
- generation: D,
159
+ generation: T,
160
160
  value: o
161
161
  }), o;
162
162
  }
163
163
  // tools/angular-build/.stage/angular-compiled/components/shared.js
164
- var ce = Symbol.for("rnative55.web-canvas-ui.kind");
165
- function A(e) {
164
+ var ue = Symbol.for("rnative55.web-canvas-ui.kind");
165
+ function O(e) {
166
166
  let t = (() => null);
167
- return t.displayName = e[0].toUpperCase() + e.slice(1), t[ce] = e, t;
167
+ return t.displayName = e[0].toUpperCase() + e.slice(1), t[ue] = e, t;
168
168
  }
169
- A("button");
170
- function le(e, t) {
169
+ O("button");
170
+ function de(e, t) {
171
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";
172
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = t.pressed ? D(e, "--canvas-ui-button-pressed-background", "#0958d9") : d(t.backgroundColor, D(e, "--canvas-ui-button-background", "#1677ff")), e.fill(), t.borderColor && (e.strokeStyle = d(t.borderColor, D(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, D(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
173
  }
174
174
  // tools/angular-build/.stage/angular-compiled/components/Button/logic.js
175
- function ue(e, t) {
175
+ function fe(e, t) {
176
176
  e.setProps({ pressed: t });
177
177
  }
178
- function de(e) {
178
+ function pe(e) {
179
179
  if (e.props.disabled === !0) return;
180
180
  let t = e.props.onClick;
181
181
  typeof t == "function" && t();
182
182
  }
183
- A("dialog");
184
- function fe(e, t) {
183
+ O("dialog");
184
+ function me(e, t) {
185
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);
186
+ e.fillStyle = D(e, "--canvas-ui-dialog-mask", "rgba(0, 0, 0, 0.45)"), e.fillRect(0, 0, n, r), e.fillStyle = D(e, "--canvas-ui-dialog-background", "#fff"), e.beginPath(), e.roundRect(o, s, i, a, 8), e.fill(), e.fillStyle = D(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 = D(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(), he(e, o + i - 196, s + a - 44, 80, 32, String(t.cancelText ?? "Cancel"), !1), he(e, o + i - 104, s + a - 44, 80, 32, String(t.confirmText ?? "OK"), !0);
187
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";
188
+ function he(e, t, n, r, i, a, o) {
189
+ e.beginPath(), e.roundRect(t, n, r, i, 6), e.fillStyle = o ? D(e, "--canvas-ui-dialog-confirm-background", "#1677ff") : D(e, "--canvas-ui-dialog-cancel-background", "#fff"), e.fill(), e.strokeStyle = o ? D(e, "--canvas-ui-dialog-confirm-background", "#1677ff") : D(e, "--canvas-ui-dialog-border", "#d9d9d9"), e.stroke(), e.fillStyle = o ? D(e, "--canvas-ui-dialog-confirm-color", "#fff") : D(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
190
  }
191
- A("circle");
192
- function me(e, t) {
191
+ O("circle");
192
+ function ge(e, t) {
193
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());
194
+ e.beginPath(), e.arc(0, 0, n, 0, Math.PI * 2), e.fillStyle = d(t.color, D(e, "--canvas-ui-circle-background", "#e74c3c")), e.fill(), t.stroke && (e.strokeStyle = d(t.stroke, D(e, "--canvas-ui-circle-border", "#000")), e.lineWidth = u(t.strokeWidth, 1), e.stroke());
195
195
  }
196
- A("customDraw");
197
- function he(e, t) {
196
+ O("customDraw");
197
+ function _e(e, t) {
198
198
  let n = t.draw;
199
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");
200
+ let r = ve(t.width, "width"), i = ve(t.height, "height");
201
201
  e.save();
202
202
  try {
203
203
  n(e, {
@@ -208,16 +208,16 @@ function he(e, t) {
208
208
  e.restore();
209
209
  }
210
210
  }
211
- function ge(e, t) {
211
+ function ve(e, t) {
212
212
  if (typeof e != "number" || !Number.isFinite(e) || e < 0) throw RangeError(`<CustomDraw> ${t} must be a non-negative finite number.`);
213
213
  return e;
214
214
  }
215
- A("canvasView");
216
- function _e(e, t) {
215
+ O("canvasView");
216
+ function ye(e, t) {
217
217
  let n = t.source;
218
- if (!ye(n)) throw TypeError("<CanvasView> requires an HTMLCanvasElement source.");
218
+ if (!xe(n)) throw TypeError("<CanvasView> requires an HTMLCanvasElement source.");
219
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");
220
+ let r = be(t.width, "width"), i = be(t.height, "height");
221
221
  if (!n.width || !n.height || !r || !i) return;
222
222
  let a = {
223
223
  width: r,
@@ -236,46 +236,46 @@ function _e(e, t) {
236
236
  e.restore();
237
237
  }
238
238
  }
239
- function ve(e, t) {
239
+ function be(e, t) {
240
240
  if (typeof e != "number" || !Number.isFinite(e) || e < 0) throw RangeError(`<CanvasView> ${t} must be a non-negative finite number.`);
241
241
  return e;
242
242
  }
243
- function ye(e) {
243
+ function xe(e) {
244
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
245
  }
246
- A("collapse"), A("collapseItem");
247
- function be(e, t) {
246
+ O("collapse"), O("collapseItem");
247
+ function Se(e, t) {
248
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);
249
+ e.fillStyle = d(t.backgroundColor, D(e, "--canvas-ui-collapse-header-background", "#fafafa")), e.fillRect(0, 0, n, r), e.strokeStyle = d(t.borderColor, D(e, "--canvas-ui-collapse-border", "#d9d9d9")), e.strokeRect(0, 0, n, r), e.font = "14px sans-serif", e.textBaseline = "middle", e.fillStyle = t.disabled ? D(e, "--canvas-ui-collapse-disabled-color", "#bfbfbf") : d(t.textColor, D(e, "--canvas-ui-collapse-color", "#262626")), e.fillText(b(e, `${t._expanded ? "−" : "+"} ${String(t.title ?? "")}`, Math.max(0, n - 24)), 12, r / 2);
250
250
  }
251
251
  // tools/angular-build/.stage/angular-compiled/components/Collapse/logic.js
252
- function xe(e, t, n) {
252
+ function Ce(e, t, n) {
253
253
  let r = new Set(e);
254
254
  return r.has(t) ? r.delete(t) : (n && r.clear(), r.add(t)), [...r];
255
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();
256
+ O("dropdown");
257
+ function we(e, t) {
258
+ let n = u(t.width, 200), r = u(t.height, 36), i = De(t.options).find((e) => e.value === String(t.value ?? ""));
259
+ Ee(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, D(e, "--canvas-ui-dropdown-color", "#333")) : D(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, D(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
260
  }
261
- function Ce(e, t) {
261
+ function Te(e, t) {
262
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) => {
263
+ e.font = `${u(t.fontSize, 14)}px sans-serif`, e.textBaseline = "middle", De(t.options).forEach((i, a) => {
264
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);
265
+ e.fillStyle = D(e, "--canvas-ui-dropdown-option-background", "#fff"), e.fillRect(0, o, n, r), e.strokeStyle = D(e, "--canvas-ui-dropdown-option-border", "#e3e7ed"), e.strokeRect(0, o, n, r), e.fillStyle = i.disabled ? D(e, "--canvas-ui-dropdown-disabled-color", "#aaa") : d(t.color, D(e, "--canvas-ui-dropdown-color", "#333")), e.fillText(b(e, i.label, Math.max(0, n - 16)), 8, o + r / 2);
266
266
  });
267
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();
268
+ function Ee(e, t, n, r, i, a) {
269
+ e.beginPath(), e.roundRect(0, 0, t, n, r), e.fillStyle = d(i.bgColor, D(e, "--canvas-ui-dropdown-background", "#fff")), e.fill(), e.strokeStyle = a ? d(i.focusBorderColor, D(e, "--canvas-ui-dropdown-focus-border", "#1677ff")) : d(i.borderColor, D(e, "--canvas-ui-dropdown-border", "#d9d9d9")), e.stroke();
270
270
  }
271
- function Te(e) {
271
+ function De(e) {
272
272
  return Array.isArray(e) ? e.map((e) => typeof e == "string" ? {
273
273
  label: e,
274
274
  value: e
275
275
  } : e) : [];
276
276
  }
277
277
  // tools/angular-build/.stage/angular-compiled/components/Dropdown/logic.js
278
- function j(e) {
278
+ function k(e) {
279
279
  return Array.isArray(e) ? e.flatMap((e) => {
280
280
  if (typeof e == "string") return [{
281
281
  label: e,
@@ -290,10 +290,10 @@ function j(e) {
290
290
  }];
291
291
  }) : [];
292
292
  }
293
- function Ee(e, t) {
294
- return j(e)[t];
293
+ function Oe(e, t) {
294
+ return k(e)[t];
295
295
  }
296
- function De(e, t) {
296
+ function ke(e, t) {
297
297
  e.setProps({
298
298
  value: t.value,
299
299
  open: !1
@@ -302,51 +302,51 @@ function De(e, t) {
302
302
  typeof n == "function" && n(t.value);
303
303
  }
304
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);
305
+ var Ae = /* @__PURE__ */ new Map();
306
+ function je(e) {
307
+ let t = Ae.get(e);
308
308
  if (t) return t;
309
309
  let n = new Image(), r = {
310
310
  image: n,
311
311
  error: null,
312
312
  listeners: /* @__PURE__ */ new Set()
313
313
  };
314
- return Oe.set(e, r), n.onload = () => r.listeners.forEach((e) => e(null)), n.onerror = () => {
314
+ return Ae.set(e, r), n.onload = () => r.listeners.forEach((e) => e(null)), n.onerror = () => {
315
315
  r.error = /* @__PURE__ */ Error(`Canvas image failed to load: ${e}`), r.listeners.forEach((e) => e(r.error));
316
316
  }, n.src = e, r;
317
317
  }
318
- function Ae(e) {
319
- let t = ke(e);
318
+ function Me(e) {
319
+ let t = je(e);
320
320
  return t.image.complete && t.image.naturalWidth > 0 ? t.image : null;
321
321
  }
322
- function je(e, t) {
323
- let n = ke(e);
322
+ function Ne(e, t) {
323
+ let n = je(e);
324
324
  return n.listeners.add(t), n.image.complete && t(n.error), () => n.listeners.delete(t);
325
325
  }
326
- A("image");
327
- function Me(e, t) {
326
+ O("image");
327
+ function Pe(e, t) {
328
328
  let n = t.src;
329
329
  if (typeof n != "string" || !n) return;
330
- let r = Ae(n);
330
+ let r = Me(n);
331
331
  if (!r) return;
332
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();
333
+ e.save(), ae(e, r, r.naturalWidth, r.naturalHeight, i, a, t.objectFit ?? "contain"), e.restore();
334
334
  }
335
- A("progress");
336
- function Ne(e, t) {
335
+ O("progress");
336
+ function Fe(e, t) {
337
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));
338
+ e.beginPath(), e.roundRect(0, 0, n, r, c), e.fillStyle = d(t.trackColor, D(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, D(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, D(e, "--canvas-ui-progress-text", "#333")), e.fillText(`${Math.round(s * 100)}%`, n + 8, r / 2));
339
339
  }
340
- A("input");
341
- function Pe(e, t, n = !1) {
340
+ O("input");
341
+ function Ie(e, t, n = !1) {
342
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();
343
+ e.beginPath(), e.roundRect(0, 0, r, i, a), e.fillStyle = d(t.bgColor, D(e, "--canvas-ui-input-background", "#fff")), e.fill(), e.strokeStyle = t.focused ? d(t.focusBorderColor, D(e, "--canvas-ui-input-focus-border", "#1677ff")) : d(t.borderColor, D(e, "--canvas-ui-input-border", "#d9d9d9")), e.lineWidth = 1, e.stroke(), e.save(), e.beginPath(), e.rect(0, 0, r, i), e.clip();
344
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;
345
+ e.font = `${f}px ${d(t.fontFamily, "sans-serif")}`, e.textBaseline = n ? "top" : "middle", e.fillStyle = s ? d(t.color, D(e, "--canvas-ui-input-color", "#333")) : D(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 ? oe() : 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
347
  if (n ? (_.forEach((t, n) => {
348
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) {
349
+ }), v > i && Le(e, r, i, v, y)) : e.fillText(l || c, o, i / 2), t.focused && !t.disabled) {
350
350
  let r = Math.max(0, Math.min(u(t.cursorPos, s.length), l.length)), a, c;
351
351
  if (n) {
352
352
  let t = [], n = 0;
@@ -358,16 +358,16 @@ function Pe(e, t, n = !1) {
358
358
  for (let e = 1; e < t.length && !(r < t[e]); e++) i = e;
359
359
  a = e.measureText(l.slice(t[i] ?? 0, r)).width, c = o + i * p - y;
360
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);
361
+ e.fillStyle = d(t.color, D(e, "--canvas-ui-input-color", "#333")), (!n || c + f >= 0 && c <= i) && e.fillRect(o + a, c, 1, f);
362
362
  }
363
363
  e.restore();
364
364
  }
365
- function Fe(e, t, n, r, i) {
365
+ function Le(e, t, n, r, i) {
366
366
  let a = Math.min(n, Math.max(16, n * n / r)), o = r - n, s = o > 0 ? (n - a) * i / o : 0;
367
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
368
  }
369
369
  // tools/angular-build/.stage/angular-compiled/components/Icon/icon.js
370
- var Ie = {
370
+ var Re = {
371
371
  home: { paths: ["M3 10 L12 3 L21 10 M5 9 V21 H19 V9 M9 21 V14 H15 V21"] },
372
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
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"] },
@@ -779,21 +779,21 @@ var Ie = {
779
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
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
781
  };
782
- A("icon");
783
- function Le(e, t) {
782
+ O("icon");
783
+ function ze(e, t) {
784
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);
785
+ if (typeof n != "string" || !Object.prototype.hasOwnProperty.call(Re, n)) throw Error(`Unknown Canvas UI icon: ${String(n)}.`);
786
+ let r = Re[n], i = u(t.size, 24);
787
787
  if (i <= 0) throw RangeError("Icon size must be greater than zero.");
788
788
  if (t.variant !== void 0 && t.variant !== "outline" && t.variant !== "solid") throw TypeError(`Unknown Canvas UI icon variant: ${String(t.variant)}.`);
789
789
  let a = t.variant === "solid" ? "solid" : "outline", o = u(t.strokeWidth, 2);
790
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();
791
+ e.save(), e.translate(i / 2, i / 2), e.scale(i / 24, i / 24), e.translate(-12, -12), e.strokeStyle = d(t.color, D(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(), Be(e, r.paths[t]), a === "solid" && r.filled?.includes(t) && e.fill(), e.stroke();
793
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
794
  e.restore();
795
795
  }
796
- function Re(e, t) {
796
+ function Be(e, t) {
797
797
  let n = t.match(/[A-Z]|-?(?:\d+\.?\d*|\.\d+)/g) ?? [], r = 0, i = 0, a = 0, o = 0;
798
798
  for (let t = 0; t < n.length;) {
799
799
  let s = n[t++], c = () => Number(n[t++]);
@@ -822,7 +822,7 @@ function Re(e, t) {
822
822
  }
823
823
  case "A": {
824
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;
825
+ Ve(e, r, i, t, n, a, o, s, l, u), r = l, i = u;
826
826
  break;
827
827
  }
828
828
  case "Z":
@@ -832,7 +832,7 @@ function Re(e, t) {
832
832
  }
833
833
  }
834
834
  }
835
- function ze(e, t, n, r, i, a, o, s, c, l) {
835
+ function Ve(e, t, n, r, i, a, o, s, c, l) {
836
836
  let u = Math.abs(r), d = Math.abs(i);
837
837
  if (u === 0 || d === 0 || t === c && n === l) {
838
838
  e.lineTo(c, l);
@@ -843,56 +843,56 @@ function ze(e, t, n, r, i, a, o, s, c, l) {
843
843
  let e = Math.sqrt(y);
844
844
  u *= e, d *= e;
845
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);
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, ie = (v - S) / d, ae = (-_ - x) / u, w = (-v - S) / d, oe = Math.atan2(ie, C), T = C * w - ie * ae, se = C * ae + ie * w, E = Math.atan2(T, se);
847
+ s && E < 0 && (E += Math.PI * 2), !s && E > 0 && (E -= Math.PI * 2), e.ellipse(ne, re, u, d, f, oe, oe + E, !s);
848
848
  }
849
- A("datePicker");
850
- function Be(e, t) {
849
+ O("datePicker");
850
+ function He(e, t) {
851
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;
852
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = d(t.bgColor, D(e, "--canvas-ui-input-background", "#fff")), e.fill(), e.strokeStyle = t.focused ? d(t.focusBorderColor, D(e, "--canvas-ui-input-focus-border", "#1677ff")) : d(t.borderColor, D(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, D(e, "--canvas-ui-input-color", "#333")) : D(e, "--canvas-ui-input-placeholder-color", "#999"), e.fillText(a || d(t.placeholder, "Select date"), 8, r / 2), e.fillStyle = d(t.color, D(e, "--canvas-ui-input-color", "#666")), e.strokeStyle = e.fillStyle, e.lineWidth = 1.4;
853
853
  let o = n - 20, s = r / 2 - 7;
854
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
855
  }
856
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));
857
+ function Ue(e, t) {
858
+ return u(We(e)?.width, u(e.width, t));
859
859
  }
860
- function N(e, t) {
861
- return u(Ve(e)?.height, u(e.height, t));
860
+ function A(e, t) {
861
+ return u(We(e)?.height, u(e.height, t));
862
862
  }
863
- function Ve(e) {
863
+ function We(e) {
864
864
  let t = e.size;
865
865
  if (typeof t == "object" && t && !Array.isArray(t)) return t;
866
866
  }
867
867
  // tools/angular-build/.stage/angular-compiled/components/ChoiceGroup/choiceGroup.js
868
- function P(e) {
868
+ function Ge(e) {
869
869
  return Array.isArray(e) ? e.map((e) => typeof e == "string" ? {
870
870
  label: e,
871
871
  value: e
872
872
  } : e) : [];
873
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);
874
+ function Ke(e) {
875
+ let t = Ge(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 + j(t.label, i), 0) + r * Math.max(0, t.length - 1), s = t.length * a + r * Math.max(0, t.length - 1);
876
876
  return {
877
- width: M(e, n ? o : 200),
878
- height: N(e, n ? a : s)
877
+ width: Ue(e, n ? o : 200),
878
+ height: A(e, n ? a : s)
879
879
  };
880
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;
881
+ function qe(e, t, n) {
882
+ let r = Ge(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
883
  e.font = `${o}px sans-serif`, e.textBaseline = "middle", e.lineWidth = 1;
884
884
  let l = 0, f = 0;
885
885
  for (let u of r) {
886
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;
887
+ e.strokeStyle = h ? d(t.disabledColor, D(e, "--canvas-ui-choice-disabled", "#bfbfbf")) : d(t.borderColor, D(e, "--canvas-ui-choice-border", "#d9d9d9")), e.fillStyle = h ? D(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, D(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, D(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, D(e, "--canvas-ui-choice-disabled", "#bfbfbf")) : d(t.color, D(e, "--canvas-ui-choice-color", "#333")), e.fillText(u.label, l + 23, p), i ? l += j(u.label, o) + a : f += s + a;
888
888
  }
889
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);
890
+ function Je(e, t, n) {
891
+ let r = Ge(e.options), i = e.direction !== "vertical", a = u(e.gap, 12), o = u(e.fontSize, 14), s = u(e.optionHeight, 28), c = Ke(e);
892
892
  if (i) {
893
893
  let e = 0;
894
894
  for (let i of r) {
895
- let r = F(i.label, o);
895
+ let r = j(i.label, o);
896
896
  if (t >= e && t <= e + r && n >= 0 && n <= c.height) return i;
897
897
  e += r + a;
898
898
  }
@@ -901,52 +901,62 @@ function We(e, t, n) {
901
901
  let l = Math.floor(n / (s + a));
902
902
  return n - l * (s + a) <= s && t >= 0 && t <= c.width ? r[l] : void 0;
903
903
  }
904
- function F(e, t) {
904
+ function j(e, t) {
905
905
  return Math.max(24, C(e, `${t}px sans-serif`)) + 24;
906
906
  }
907
907
  // tools/angular-build/.stage/angular-compiled/components/ChoiceGroup/logic.js
908
- function Ge(e, t) {
908
+ function Ye(e, t) {
909
909
  return e === t.value ? void 0 : t.value;
910
910
  }
911
- function Ke(e, t) {
911
+ function Xe(e, t) {
912
912
  let n = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
913
913
  return n.includes(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
914
914
  }
915
- A("radio");
916
- function qe(e, t) {
917
- Ue(e, t, "radio");
915
+ O("radio");
916
+ function Ze(e, t) {
917
+ qe(e, t, "radio");
918
+ }
919
+ O("checkbox");
920
+ function Qe(e, t) {
921
+ qe(e, t, "checkbox");
918
922
  }
919
- A("checkbox");
920
- function Je(e, t) {
921
- Ue(e, t, "checkbox");
923
+ function $e(e) {
924
+ let t = Array.isArray(e.value) ? e.value : [];
925
+ return u(e.height, 40) + t.length * 28;
922
926
  }
923
- A("upload");
924
- function Ye(e, t) {
927
+ O("upload");
928
+ function et(e, t) {
925
929
  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));
930
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = d(t.backgroundColor, D(e, "--canvas-ui-button-background", "#1677ff")), e.fill(), t.borderColor && (e.strokeStyle = d(t.borderColor, "#1677ff"), e.stroke());
931
+ let a = t._uploadError ? "Invalid file" : d(t.text, "Choose File"), o = d(t.textColor, D(e, "--canvas-ui-button-color", "#fff")), s = u(t.fontSize, 15), c = u(t.iconSize, Math.round(s * 1.1));
928
932
  e.font = `${s}px sans-serif`, e.textBaseline = "middle", e.textAlign = "left";
929
933
  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, {
934
+ e.save(), e.translate(p, m - c / 2), ze(e, {
931
935
  name: t.icon ?? "upload",
932
936
  size: c,
933
937
  color: o
934
938
  }), e.restore(), p += c + (l ? 6 : 0), e.fillStyle = o, e.fillText(l, p, m);
939
+ let h = t.value ?? [];
940
+ e.font = "13px sans-serif", e.textAlign = "left";
941
+ for (let [t, i] of h.entries()) {
942
+ let a = r + t * 28;
943
+ e.fillStyle = D(e, "--canvas-ui-input-color", "#333"), e.fillText(b(e, i.name, Math.max(0, n - 32)), 4, a + 14), e.textAlign = "center", e.fillText("×", n - 12, a + 14), e.textAlign = "left";
944
+ }
935
945
  }
936
- A("carousel"), A("carouselItem");
937
- function Xe(e, t) {
946
+ O("carousel"), O("carouselItem");
947
+ function tt(e, t) {
938
948
  let n = u(t.width, 300), r = u(t.height, 180);
939
949
  e.fillStyle = d(t.backgroundColor, "transparent"), e.fillRect(0, 0, n, r);
940
950
  }
941
- function Ze(e, t) {
951
+ function nt(e, t) {
942
952
  let n = u(t.width, 300), r = u(t.height, 180), i = u(t._itemCount, 0);
943
953
  if (!(i < 2)) {
944
954
  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);
955
+ let i = d(t.arrowColor, D(e, "--canvas-ui-carousel-arrow", "#fff")), a = r / 2;
956
+ rt(e, 22, a, -1, i), rt(e, n - 22, a, 1, i);
947
957
  }
948
958
  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;
959
+ let a = d(t.dotColor, D(e, "--canvas-ui-carousel-dot", "rgba(255,255,255,0.65)")), o = d(t.activeDotColor, D(e, "--canvas-ui-carousel-active-dot", "#1677ff")), s = (n - (i - 1) * 14) / 2, c = r - 14;
950
960
  e.beginPath();
951
961
  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
962
  e.fillStyle = a, e.fill();
@@ -955,11 +965,11 @@ function Ze(e, t) {
955
965
  }
956
966
  }
957
967
  }
958
- function Qe(e, t, n, r, i) {
968
+ function rt(e, t, n, r, i) {
959
969
  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
970
  }
961
971
  // tools/angular-build/.stage/angular-compiled/components/Carousel/logic.js
962
- function $e(e, t, n, r, i, a, o) {
972
+ function it(e, t, n, r, i, a, o) {
963
973
  if (!(r < 2 || t < 0 || t > a || n < 0 || n > o)) {
964
974
  if (e.showArrows !== !1 && Math.abs(n - o / 2) <= 20) {
965
975
  if (t <= 42) return i - 1;
@@ -971,163 +981,254 @@ function $e(e, t, n, r, i, a, o) {
971
981
  }
972
982
  }
973
983
  }
974
- function et(e, t, n, r) {
984
+ function at(e, t, n, r) {
975
985
  return n <= 0 ? 0 : r ? (e % n + n) % n : Math.max(0, Math.min(n - 1, e));
976
986
  }
977
- A("rect");
978
- function tt(e, t) {
987
+ O("rect");
988
+ function ot(e, t) {
979
989
  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());
990
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = d(t.color, D(e, "--canvas-ui-rect-background", "transparent")), e.fill(), t.stroke && (e.strokeStyle = d(t.stroke, D(e, "--canvas-ui-rect-border", "#000")), e.lineWidth = u(t.strokeWidth, 1), e.stroke());
981
991
  }
982
- A("slider");
983
- function nt(e, t) {
992
+ O("slider");
993
+ function st(e, t) {
984
994
  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();
995
+ e.beginPath(), e.roundRect(l, c - 3, Math.max(0, n - l * 2), 6, 3), e.fillStyle = d(t.trackColor, D(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, D(e, "--canvas-ui-slider-active", "#1677ff")), e.fill(), e.beginPath(), e.arc(f, c, l, 0, Math.PI * 2), e.fillStyle = d(t.thumbColor, D(e, "--canvas-ui-slider-thumb", "#fff")), e.fill(), e.strokeStyle = d(t.activeColor, D(e, "--canvas-ui-slider-active", "#1677ff")), e.stroke();
986
996
  }
987
997
  // tools/angular-build/.stage/angular-compiled/components/Slider/logic.js
988
- function rt(e, t, n) {
998
+ function ct(e, t, n) {
989
999
  let r = Math.min(8, u(e.height, 32) / 3), i = u(e.min, 0), a = u(e.max, 100);
990
1000
  if (a <= i) return;
991
1001
  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
1002
  return Math.max(i, Math.min(a, i + Math.round((s - i) / o) * o));
993
1003
  }
994
- A("switch");
995
- function it(e, t) {
1004
+ O("switch");
1005
+ function lt(e, t) {
996
1006
  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();
1007
+ e.beginPath(), e.roundRect(0, 0, n, r, i), e.fillStyle = a ? d(t.onColor, D(e, "--canvas-ui-switch-on", "#1677ff")) : d(t.offColor, D(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, D(e, "--canvas-ui-switch-thumb", "#fff")), e.fill();
998
1008
  }
999
1009
  // tools/angular-build/.stage/angular-compiled/components/Switch/logic.js
1000
- function at(e) {
1010
+ function ut(e) {
1001
1011
  let t = !e.props.checked;
1002
1012
  e.setProps({ checked: t });
1003
1013
  let n = e.props.onChange;
1004
1014
  typeof n == "function" && n(t);
1005
1015
  }
1006
1016
  // 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);
1017
+ var dt = /* @__PURE__ */ new Map();
1018
+ function ft(e, t) {
1019
+ e.preload = "auto", e.playsInline = !0, e.crossOrigin = "anonymous";
1020
+ let n = !0, r = () => {
1021
+ n = !1, t.onReady();
1022
+ }, i = () => {
1023
+ n ? (n = !1, e.removeAttribute("crossorigin"), e.load()) : t.onFail(/* @__PURE__ */ Error(`Canvas video failed to load: ${e.src}`));
1024
+ }, a = () => {
1025
+ t.onTime(e.currentTime, e.duration);
1026
+ }, o = () => t.onSeeked?.();
1027
+ return e.addEventListener("loadeddata", r), e.addEventListener("error", i), e.addEventListener("timeupdate", a), e.addEventListener("seeked", o), e.addEventListener("canplay", o), () => {
1028
+ e.removeEventListener("loadeddata", r), e.removeEventListener("error", i), e.removeEventListener("timeupdate", a), e.removeEventListener("seeked", o), e.removeEventListener("canplay", o);
1029
+ };
1030
+ }
1031
+ function pt(e) {
1032
+ let t = dt.get(e);
1010
1033
  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 = {
1034
+ let n = document.createElement("video"), r = {
1014
1035
  video: n,
1015
1036
  error: null,
1016
1037
  refs: 1,
1017
1038
  loadListeners: /* @__PURE__ */ new Set(),
1018
1039
  timeListeners: /* @__PURE__ */ new Set()
1019
1040
  };
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);
1041
+ return ft(n, {
1042
+ onReady: () => {
1043
+ r.error = null, r.loadListeners.forEach((e) => e(null));
1044
+ },
1045
+ onFail: (e) => {
1046
+ r.error = e, r.loadListeners.forEach((t) => t(e));
1047
+ },
1048
+ onTime: (e, t) => {
1049
+ r.timeListeners.forEach((n) => n(e, t));
1050
+ }
1051
+ }), dt.set(e, r), n.src = e, r;
1052
+ }
1053
+ function mt(e) {
1054
+ return pt(e).video;
1055
+ }
1056
+ function ht(e) {
1057
+ return dt.get(e)?.video ?? null;
1058
+ }
1059
+ function gt(e, t, n, r) {
1060
+ let i = document.createElement("video"), a = ft(i, {
1061
+ onReady: () => t(null),
1062
+ onFail: (e) => t(e),
1063
+ onTime: (e, t) => n(e, t),
1064
+ onSeeked: r
1065
+ });
1066
+ i.src = e;
1067
+ let o = {
1068
+ src: e,
1069
+ video: i,
1070
+ frame: void 0,
1071
+ captureFrame: () => {
1072
+ if (i.readyState < 2 || i.seeking || !i.videoWidth || !i.videoHeight) return;
1073
+ let e = o.frame ?? document.createElement("canvas"), t = e.getContext("2d");
1074
+ if (!t) throw Error("Canvas 2D context is not available for video seeking.");
1075
+ e.width !== i.videoWidth && (e.width = i.videoWidth), e.height !== i.videoHeight && (e.height = i.videoHeight), t.drawImage(i, 0, 0), o.frame = e;
1076
+ },
1077
+ dispose: () => {
1078
+ o.fullscreenCleanup?.(), a(), i.pause(), i.removeAttribute("src"), i.load(), o.frame = void 0;
1079
+ }
1080
+ };
1081
+ return o;
1082
+ }
1083
+ // tools/angular-build/.stage/angular-compiled/components/Video/logic.js
1084
+ var _t = "11px sans-serif", vt = 24, yt = 32, M = 24;
1085
+ function bt(e) {
1086
+ let t = Math.max(0, Math.floor(u(e, 0))), n = t % 60, r = Math.floor(t / 60) % 60, i = Math.floor(t / 3600), a = (e) => String(e).padStart(2, "0");
1087
+ return i > 0 ? `${i}:${a(r)}:${a(n)}` : `${r}:${a(n)}`;
1088
+ }
1089
+ function xt(e, t, n) {
1090
+ let r = Math.min(Math.max(vt, Math.round(t / 6)), yt, Math.max(0, t)), i = t - r, a = {
1091
+ x: 4,
1092
+ y: i + Math.max(0, (r - M) / 2),
1093
+ width: M,
1094
+ height: Math.min(M, r)
1095
+ }, o = a.x + M + 6, s = {
1096
+ x: Math.max(0, e - 28),
1097
+ y: a.y,
1098
+ width: e >= 56 ? M : 0,
1099
+ height: a.height
1100
+ }, c = Math.max(0, e - 40 - n - o);
1101
+ return {
1102
+ bar: {
1103
+ y: i,
1104
+ height: r
1105
+ },
1106
+ play: a,
1107
+ fullscreen: s,
1108
+ track: {
1109
+ x: o,
1110
+ y: i + r / 2 - 2,
1111
+ width: c,
1112
+ height: 4
1113
+ }
1040
1114
  };
1041
1115
  }
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()));
1116
+ function St(e, t, n) {
1117
+ return n < e.bar.y || n > e.bar.y + e.bar.height ? null : t >= e.play.x && t <= e.play.x + e.play.width ? "play" : e.fullscreen.width > 0 && t >= e.fullscreen.x && t <= e.fullscreen.x + e.fullscreen.width ? "fullscreen" : e.track.width > 0 && t >= e.track.x - 4 && t <= e.track.x + e.track.width + 4 ? "track" : null;
1045
1118
  }
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);
1119
+ function Ct(e, t) {
1120
+ return e.track.width <= 0 ? 0 : Math.max(0, Math.min(1, (t - e.track.x) / e.track.width));
1121
+ }
1122
+ function wt(e, t) {
1123
+ e.paused ? e.play().catch(() => void 0) : e.pause(), t?.(e.paused);
1124
+ }
1125
+ function Tt(e, t, n, r) {
1126
+ if (!Number.isFinite(e.duration) || e.duration <= 0) return;
1127
+ let i = Math.max(0, Math.min(e.duration, t * e.duration));
1128
+ Math.abs(e.currentTime - i) > 1e-4 && (r?.(), e.currentTime = i), n?.(i);
1129
+ }
1130
+ O("video");
1131
+ function Et(e, t, n) {
1132
+ if (typeof t.muted == "boolean" && (e.muted = t.muted), typeof t.loop == "boolean" && (e.loop = t.loop), typeof t.currentTime == "number" && Number.isFinite(t.currentTime)) {
1133
+ let r = Math.max(0, t.currentTime);
1134
+ Math.abs(e.currentTime - r) > 1e-4 && (n?.(), e.currentTime = r);
1054
1135
  }
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();
1136
+ t.paused === !1 || t.autoplay && t.paused !== !0 ? e.paused && e.play().catch(() => void 0) : t.paused === !0 && !e.paused && e.pause();
1058
1137
  }
1059
- A("tabs"), A("tabItem");
1060
- function ft(e, t) {
1138
+ function Dt(e, t) {
1139
+ let n = t.src;
1140
+ if (typeof n != "string" || !n) return;
1141
+ let r = t._videoElement ?? ht(n) ?? mt(n), i = u(t.width, r.videoWidth), a = u(t.height, r.videoHeight), o = r.readyState >= 2 && !r.seeking && r.videoWidth > 0 ? r : t._videoFrame;
1142
+ o && (e.save(), ae(e, o, o === r ? r.videoWidth : o.width, o === r ? r.videoHeight : o.height, i, a, t.objectFit ?? "contain"), e.restore()), t.controls === !0 && (t.controlsOnHover !== !0 || t._videoControlsVisible === !0) && jt(e, t, r, i, a);
1143
+ }
1144
+ var Ot = "rgba(0, 0, 0, 0.55)", kt = "#fff", At = "rgba(255, 255, 255, 0.35)";
1145
+ function jt(e, t, n, r, i) {
1146
+ let a = Number.isFinite(n.duration) && n.duration > 0 ? n.duration : 0, o = typeof t._videoScrubRatio == "number" ? a * Math.min(1, Math.max(0, t._videoScrubRatio)) : a > 0 ? Math.min(Math.max(0, n.currentTime), a) : 0, s = `${bt(o)} / ${bt(a)}`, c = C(s, _t), l = xt(r, i, c);
1147
+ if (r <= 0 || i <= 0 || l.bar.height <= 0) return;
1148
+ let u = d(t.controlsColor, kt), f = l.track.y + l.track.height / 2;
1149
+ if (e.fillStyle = d(t.controlsBarColor, Ot), e.fillRect(0, l.bar.y, r, l.bar.height), Nt(e, u, l.play.x + l.play.width / 2, f, n.paused || n.ended), l.fullscreen.width > 0 && Mt(e, u, l.fullscreen.x + l.fullscreen.width / 2, f), l.track.width <= 0) return;
1150
+ e.fillStyle = d(t.controlsTrackColor, At), e.beginPath(), e.roundRect(l.track.x, l.track.y, l.track.width, l.track.height, 2), e.fill();
1151
+ let p = a > 0 ? o / a : 0;
1152
+ p > 0 && (e.fillStyle = u, e.beginPath(), e.roundRect(l.track.x, l.track.y, l.track.width * p, l.track.height, 2), e.fill()), e.beginPath(), e.arc(l.track.x + l.track.width * p, f, 4, 0, Math.PI * 2), e.fillStyle = u, e.fill(), e.font = _t, e.textBaseline = "middle", e.textAlign = "left", e.fillText(s, r - 36 - c, f);
1153
+ }
1154
+ function Mt(e, t, n, r) {
1155
+ e.strokeStyle = t, e.lineWidth = 1.5, e.beginPath(), e.moveTo(n - 6, r - 2), e.lineTo(n - 6, r - 6), e.lineTo(n - 2, r - 6), e.moveTo(n + 2, r - 6), e.lineTo(n + 6, r - 6), e.lineTo(n + 6, r - 2), e.moveTo(n + 6, r + 2), e.lineTo(n + 6, r + 6), e.lineTo(n + 2, r + 6), e.moveTo(n - 2, r + 6), e.lineTo(n - 6, r + 6), e.lineTo(n - 6, r + 2), e.stroke();
1156
+ }
1157
+ function Nt(e, t, n, r, i) {
1158
+ e.fillStyle = t, e.beginPath(), i ? (e.moveTo(n - 4, r - 6), e.lineTo(n - 4, r + 6), e.lineTo(n + 6, r)) : (e.moveTo(n - 5, r - 6), e.lineTo(n - 5, r + 6), e.lineTo(n - 1, r + 6), e.lineTo(n - 1, r - 6), e.moveTo(n + 1, r - 6), e.lineTo(n + 1, r + 6), e.lineTo(n + 5, r + 6), e.lineTo(n + 5, r - 6)), e.closePath(), e.fill();
1159
+ }
1160
+ O("tabs"), O("tabItem");
1161
+ function Pt(e, t) {
1061
1162
  let n = u(t.width, 300), r = u(t.headerHeight, 40), i = t._tabItems ?? [];
1062
1163
  if (!i.length) return;
1063
1164
  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));
1165
+ e.fillStyle = d(t.backgroundColor, D(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) => {
1166
+ e.fillStyle = n.disabled ? D(e, "--canvas-ui-tabs-disabled-color", "#bfbfbf") : n.selected ? d(t.activeColor, D(e, "--canvas-ui-tabs-active-color", "#1677ff")) : d(t.textColor, D(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, D(e, "--canvas-ui-tabs-indicator", "#1677ff")), e.fillRect(a * i, r - 2, a, 2));
1066
1167
  }), e.textAlign = "left";
1067
1168
  }
1068
1169
  // tools/angular-build/.stage/angular-compiled/components/Tabs/logic.js
1069
- function pt(e, t, n, r, i) {
1170
+ function Ft(e, t, n, r, i) {
1070
1171
  if (n >= i || e.length === 0) return;
1071
1172
  let a = e[Math.floor(t / (r / e.length))];
1072
1173
  if (a && !a.props.disabled && typeof a.props.id == "string") return a.props.id;
1073
1174
  }
1074
1175
  // tools/angular-build/.stage/angular-compiled/components/Text/text.js
1075
- var mt = 16;
1076
- A("text");
1077
- function ht(e, t) {
1176
+ var It = 16;
1177
+ O("text");
1178
+ function Lt(e, t) {
1078
1179
  return e > 0 ? Math.max(1, Math.floor(e / (t * f))) : 0;
1079
1180
  }
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)));
1181
+ function Rt(e) {
1182
+ let t = u(e.fontSize, It), 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, Lt(u(e._availableHeight, 0), t)));
1082
1183
  return {
1083
1184
  lines: o,
1084
1185
  width: a > 0 ? a : r(i),
1085
1186
  height: o.length * t * f
1086
1187
  };
1087
1188
  }
1088
- function _t(e, t) {
1089
- let n = u(t.fontSize, mt);
1189
+ function zt(e, t) {
1190
+ let n = u(t.fontSize, It);
1090
1191
  e.font = `${n}px ${d(t.fontFamily, "sans-serif")}`, e.textBaseline = t.baseline ?? "top";
1091
1192
  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;
1193
+ e.textAlign = r, e.fillStyle = d(t.color, D(e, "--canvas-ui-text-color", "#333"));
1194
+ let i = Rt(t), a = r === "center" ? i.width / 2 : r === "right" ? i.width : 0;
1094
1195
  i.lines.forEach((t, r) => {
1095
1196
  e.fillText(t, a, r * n * f);
1096
1197
  }), e.textAlign = "left";
1097
1198
  }
1098
- A("textarea");
1099
- function vt(e, t) {
1100
- Pe(e, t, !0);
1199
+ O("textarea");
1200
+ function Bt(e, t) {
1201
+ Ie(e, t, !0);
1101
1202
  }
1102
1203
  // 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
1204
+ var Vt = {
1205
+ rect: ot,
1206
+ circle: ge,
1207
+ customDraw: _e,
1208
+ canvasView: ye,
1209
+ text: zt,
1210
+ input: Ie,
1211
+ datePicker: He,
1212
+ radio: Ze,
1213
+ checkbox: Qe,
1214
+ upload: et,
1215
+ carousel: tt,
1216
+ textarea: Bt,
1217
+ dropdown: we,
1218
+ slider: st,
1219
+ switch: lt,
1220
+ button: de,
1221
+ image: Pe,
1222
+ icon: ze,
1223
+ progress: Fe,
1224
+ tabs: Pt,
1225
+ collapseItem: Se,
1226
+ video: Dt
1126
1227
  };
1127
- function L(e) {
1228
+ function Ht(e) {
1128
1229
  return e;
1129
1230
  }
1130
- var R = .5, bt = class {
1231
+ var Ut = .5, Wt = class {
1131
1232
  constructor() {
1132
1233
  this.gridCaches = /* @__PURE__ */ new WeakMap(), this.cacheEnabled = !0;
1133
1234
  }
@@ -1155,22 +1256,22 @@ var R = .5, bt = class {
1155
1256
  }
1156
1257
  drawNode(e, t) {
1157
1258
  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);
1259
+ if (e.save(), e.translate(N(t.props.x, 0), N(t.props.y, 0)), e.rotate(N(t.props.rotation, 0)), e.scale(N(t.props.scaleX, 1), N(t.props.scaleY, 1)), t.props.disabled === !0 && (e.globalAlpha *= Ut), t.type === "gridItem" && typeof t.props.backgroundColor == "string" && Kt(e, t), t.type !== "root" && this.safeDraw(e, Vt[t.type], t), t.type === "grid" && typeof t.props.height == "number") this.drawCachedGrid(e, t) || this.drawGrid(e, t);
1159
1260
  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);
1261
+ let n = N(t.props.width, 300), r = N(t.props.height, 200), i = N(t.props.headerHeight, 40);
1161
1262
  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));
1263
+ } else t.type === "carousel" ? (e.save(), e.beginPath(), e.rect(0, 0, N(t.props.width, 300), N(t.props.height, 180)), e.clip(), t.children.forEach((t) => this.drawNode(e, t)), e.restore(), this.safeDraw(e, Ht(nt), t)) : t.children.forEach((t) => this.drawNode(e, t));
1163
1264
  e.restore();
1164
1265
  }
1165
1266
  }
1166
1267
  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);
1268
+ e.save(), e.beginPath(), e.rect(0, 0, N(t.props._gridWidth, N(t.props.width, 0)), N(t.props.height, 0)), e.clip(), t.children.forEach((t) => this.drawNode(e, t)), e.restore(), qt(e, t);
1168
1269
  }
1169
1270
  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;
1271
+ if (!this.cacheEnabled || t.props.virtual !== !0 || e.globalAlpha !== 1 || e.globalCompositeOperation !== "source-over" || e.filter !== "none" || e.shadowColor !== "rgba(0, 0, 0, 0)" || Gt(t)) return !1;
1171
1272
  let n = e.getTransform();
1172
1273
  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);
1274
+ let r = N(t.props._gridWidth, N(t.props.width, 0)), i = N(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
1275
  if (l <= 0 || u <= 0 || l > 4096 || u > 4096) return !1;
1175
1276
  let d = this.gridCaches.get(t);
1176
1277
  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) {
@@ -1178,7 +1279,7 @@ var R = .5, bt = class {
1178
1279
  a.width = l, a.height = u;
1179
1280
  let o = a.getContext("2d");
1180
1281
  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 = {
1282
+ ce(a, e.canvas), o.setTransform(n.a, 0, 0, n.d, s, c), this.drawGrid(o, t), d = {
1182
1283
  canvas: a,
1183
1284
  sourceCanvas: e.canvas,
1184
1285
  width: r,
@@ -1195,34 +1296,34 @@ var R = .5, bt = class {
1195
1296
  if (t.props.visible !== !1) {
1196
1297
  if (t.type === "dialog") {
1197
1298
  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);
1299
+ e.save(), e.translate(N(t.props.x, 0), N(t.props.y, 0)), e.rotate(N(t.props.rotation, 0)), e.scale(N(t.props.scaleX, 1), N(t.props.scaleY, 1)), t.props.disabled === !0 && (e.globalAlpha *= Ut), this.safeDraw(e, Ht(me), t);
1300
+ let n = N(t.props._dialogPanelX, 0), r = N(t.props._dialogPanelY, 0), i = N(t.props.width, 420), a = N(t.props.height, 240);
1200
1301
  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
1302
  } else t.children.forEach((t) => this.drawDialogs(e, t));
1202
1303
  }
1203
1304
  }
1204
1305
  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());
1306
+ t.props.visible !== !1 && (e.save(), e.translate(N(t.props.x, 0), N(t.props.y, 0)), e.rotate(N(t.props.rotation, 0)), e.scale(N(t.props.scaleX, 1), N(t.props.scaleY, 1)), t.props.disabled === !0 && (e.globalAlpha *= Ut), t.type === "dropdown" && t.props.open && this.safeDraw(e, Ht(Te), t), t.type === "grid" && typeof t.props.height == "number" || t.type === "carousel" ? (e.save(), e.beginPath(), e.rect(0, 0, t.type === "grid" ? N(t.props._gridWidth, N(t.props.width, 0)) : N(t.props.width, 300), N(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
1307
  }
1207
1308
  };
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;
1309
+ function Gt(e) {
1310
+ for (let t of e.children) if (t.type === "video" || t.type === "image" || t.type === "customDraw" || t.type === "canvasView" || Gt(t)) return !0;
1210
1311
  return !1;
1211
1312
  }
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));
1313
+ function Kt(e, t) {
1314
+ e.fillStyle = t.props.backgroundColor, e.fillRect(0, 0, N(t.props._gridItemWidth, 0), N(t.props._gridItemHeight, 0));
1214
1315
  }
1215
- function Ct(e, t) {
1216
- let n = z(t.props.height, 0), r = z(t.props._gridContentHeight, n);
1316
+ function qt(e, t) {
1317
+ let n = N(t.props.height, 0), r = N(t.props._gridContentHeight, n);
1217
1318
  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;
1319
+ let i = N(t.props._gridWidth, N(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) * N(t.props._scrollTop, 0) / s;
1219
1320
  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
1321
  }
1221
- function z(e, t) {
1322
+ function N(e, t) {
1222
1323
  return typeof e == "number" && Number.isFinite(e) ? e : t;
1223
1324
  }
1224
1325
  // tools/angular-build/.stage/angular-compiled/types.js
1225
- var B = [
1326
+ var P = [
1226
1327
  1,
1227
1328
  0,
1228
1329
  0,
@@ -1231,7 +1332,7 @@ var B = [
1231
1332
  0
1232
1333
  ];
1233
1334
  // tools/angular-build/.stage/angular-compiled/engine/transform.js
1234
- function V(e, t) {
1335
+ function F(e, t) {
1235
1336
  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
1337
  return [
1237
1338
  m * s + g * c,
@@ -1242,7 +1343,7 @@ function V(e, t) {
1242
1343
  h * f + _ * p + y
1243
1344
  ];
1244
1345
  }
1245
- function H(e, t, n) {
1346
+ function I(e, t, n) {
1246
1347
  let [r, i, a, o, s, c] = n, l = r * o - i * a;
1247
1348
  if (!l) return null;
1248
1349
  let u = e - s, d = t - c;
@@ -1251,13 +1352,13 @@ function H(e, t, n) {
1251
1352
  y: (-i * u + r * d) / l
1252
1353
  };
1253
1354
  }
1254
- function U(e) {
1355
+ function L(e) {
1255
1356
  let t = [], n = e;
1256
1357
  for (; n;) t.push(n), n = n.parent;
1257
- return t.reverse().reduce((e, t) => V(e, t.props), B);
1358
+ return t.reverse().reduce((e, t) => F(t.type === "dialog" ? P : e, t.props), P);
1258
1359
  }
1259
1360
  // tools/angular-build/.stage/angular-compiled/engine/nodes.js
1260
- function wt(e) {
1361
+ function Jt(e) {
1261
1362
  let t = e;
1262
1363
  for (; t;) {
1263
1364
  if (t.props.visible === !1) return !1;
@@ -1265,11 +1366,13 @@ function wt(e) {
1265
1366
  }
1266
1367
  return !0;
1267
1368
  }
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;
1369
+ function R(e) {
1370
+ let t = null, n = (e) => {
1371
+ e.props.visible !== !1 && (e.type === "dialog" ? e.props.open === !0 && (t = e) : e.children.forEach(n));
1372
+ };
1373
+ return n(e), t;
1271
1374
  }
1272
- function Et(e) {
1375
+ function Yt(e) {
1273
1376
  if (e.type === "root") throw Error("The Canvas root is not an event target.");
1274
1377
  let t = e.props._key, n = typeof t == "string" ? t.indexOf(":") : -1;
1275
1378
  return {
@@ -1277,13 +1380,13 @@ function Et(e) {
1277
1380
  key: typeof t != "string" || n < 0 ? null : t.slice(n + 1)
1278
1381
  };
1279
1382
  }
1280
- function Dt(e) {
1383
+ function Xt(e) {
1281
1384
  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
1385
  }
1283
- function Ot(e) {
1386
+ function Zt(e) {
1284
1387
  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
1388
  }
1286
- function W(e, t) {
1389
+ function z(e, t) {
1287
1390
  let n = e.parent;
1288
1391
  for (; n;) {
1289
1392
  if (n === t) return !0;
@@ -1291,12 +1394,12 @@ function W(e, t) {
1291
1394
  }
1292
1395
  return !1;
1293
1396
  }
1294
- function G(e, t) {
1397
+ function B(e, t) {
1295
1398
  let n = t && e.props._userVisible !== !1;
1296
- e.setProps({ visible: n }), e.children.forEach((e) => G(e, n));
1399
+ e.setProps({ visible: n }), e.children.forEach((e) => B(e, n));
1297
1400
  }
1298
- function K(e) {
1299
- if (e.type === "radio" || e.type === "checkbox") return He(e.props);
1401
+ function V(e) {
1402
+ if (e.type === "radio" || e.type === "checkbox") return Ke(e.props);
1300
1403
  if (e.type === "icon") {
1301
1404
  let t = u(e.props.size, 24);
1302
1405
  return {
@@ -1309,32 +1412,127 @@ function K(e) {
1309
1412
  height: u(e.props.height, 0)
1310
1413
  };
1311
1414
  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))
1415
+ width: Ue(e.props, u(e.props._textWidth, 0)),
1416
+ height: A(e.props, u(e.props._textHeight, 0))
1314
1417
  };
1418
+ if (e.type === "video") {
1419
+ let t = e.props._videoElement;
1420
+ return {
1421
+ width: u(e.props.width, t?.videoWidth ?? 300),
1422
+ height: u(e.props.height, t?.videoHeight ?? 150)
1423
+ };
1424
+ }
1315
1425
  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" ? {
1426
+ return e.type === "switch" || e.type === "slider" ? {
1427
+ width: u(e.props.width, t),
1428
+ height: u(e.props.height, n)
1429
+ } : e.type === "upload" ? {
1430
+ width: u(e.props.width, t),
1431
+ height: $e(e.props)
1432
+ } : e.type === "button" || e.type === "dropdown" || e.type === "datePicker" ? {
1317
1433
  width: u(e.props.width, t),
1318
1434
  height: u(e.props.height, n)
1319
1435
  } : {
1320
- width: M(e.props, t),
1321
- height: N(e.props, n)
1436
+ width: Ue(e.props, t),
1437
+ height: A(e.props, n)
1322
1438
  };
1323
1439
  }
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);
1440
+ function Qt(e, t, n = null) {
1441
+ if (n && !z(e, n)) return !1;
1442
+ let r = e;
1443
+ for (; r;) {
1444
+ if (r.props.visible === !1) return !1;
1445
+ if (r.type === "dialog") return r === n && r.props.open === !0;
1446
+ if (r.type === "grid" && typeof r.props.height == "number") {
1447
+ let [e, n, i, a, o, s] = t.transform, c = I(e * t.width / 2 + i * t.height / 2 + o, n * t.width / 2 + a * t.height / 2 + s, L(r)), l = u(r.props._gridWidth, u(r.props.width, 0)), d = u(r.props.height, 0);
1330
1448
  if (!c || c.x < 0 || c.x > l || c.y < 0 || c.y > d) return !1;
1331
1449
  }
1332
- n = n.parent;
1450
+ r = r.parent;
1333
1451
  }
1334
1452
  return !0;
1335
1453
  }
1454
+ function $t(e, t) {
1455
+ let [n, r, i, a, o, s] = t;
1456
+ return {
1457
+ x: n * e.x + i * e.y + o,
1458
+ y: r * e.x + a * e.y + s
1459
+ };
1460
+ }
1461
+ function en(e, t, n, r) {
1462
+ if (!e.length) return [];
1463
+ let i = [], a = (e) => r ? e[t] >= n : e[t] <= n, o = e[e.length - 1];
1464
+ for (let r of e) {
1465
+ if (a(r) !== a(o)) {
1466
+ let e = (n - o[t]) / (r[t] - o[t]);
1467
+ i.push({
1468
+ x: o.x + (r.x - o.x) * e,
1469
+ y: o.y + (r.y - o.y) * e
1470
+ });
1471
+ }
1472
+ a(r) && i.push(r), o = r;
1473
+ }
1474
+ return i;
1475
+ }
1476
+ function H(e, t, n) {
1477
+ if (!Qt(e, t, n)) return {
1478
+ ...t,
1479
+ visible: !1
1480
+ };
1481
+ if (!n) return {
1482
+ ...t,
1483
+ visible: t.visible,
1484
+ clipPath: void 0
1485
+ };
1486
+ let r = L(n), i = u(n.props._dialogPanelX, 0), a = u(n.props._dialogPanelY, 0), o = u(n.props.width, 420), s = u(n.props.height, 240), c = i + 12, l = a + 56, d = c + Math.max(0, o - 24), f = l + Math.max(0, s - 112), p = [
1487
+ {
1488
+ x: 0,
1489
+ y: 0
1490
+ },
1491
+ {
1492
+ x: t.width,
1493
+ y: 0
1494
+ },
1495
+ {
1496
+ x: t.width,
1497
+ y: t.height
1498
+ },
1499
+ {
1500
+ x: 0,
1501
+ y: t.height
1502
+ }
1503
+ ].map((e) => {
1504
+ let n = $t(e, t.transform);
1505
+ return I(n.x, n.y, r);
1506
+ });
1507
+ if (p.some((e) => e === null) || d <= c || f <= l) return {
1508
+ ...t,
1509
+ visible: !1
1510
+ };
1511
+ let m = p.filter((e) => e !== null);
1512
+ if (m.every((e) => e.x >= c && e.x <= d && e.y >= l && e.y <= f)) return {
1513
+ ...t,
1514
+ clipPath: void 0
1515
+ };
1516
+ if (m = en(m, "x", c, !0), m = en(m, "x", d, !1), m = en(m, "y", l, !0), m = en(m, "y", f, !1), m.length < 3) return {
1517
+ ...t,
1518
+ visible: !1
1519
+ };
1520
+ let h = m.map((e) => {
1521
+ let n = $t(e, r);
1522
+ return I(n.x, n.y, t.transform);
1523
+ });
1524
+ if (h.some((e) => e === null)) return {
1525
+ ...t,
1526
+ visible: !1
1527
+ };
1528
+ let g = `polygon(${h.filter((e) => e !== null).map((e) => `${e.x}px ${e.y}px`).join(", ")})`;
1529
+ return {
1530
+ ...t,
1531
+ clipPath: g
1532
+ };
1533
+ }
1336
1534
  // tools/angular-build/.stage/angular-compiled/engine/text-controls.js
1337
- function At(e, t, n) {
1535
+ function tn(e, t, n) {
1338
1536
  let r = /* @__PURE__ */ new Map();
1339
1537
  e.scene.traverse((e) => {
1340
1538
  let t = e.props._canvasInputId;
@@ -1342,29 +1540,27 @@ function At(e, t, n) {
1342
1540
  });
1343
1541
  let i = new Set(n.map((e) => e.id));
1344
1542
  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));
1543
+ let a = R(e.scene);
1345
1544
  for (let i of n) {
1346
1545
  let n = r.get(i.id);
1347
1546
  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 ?? "";
1547
+ let o = H(n, i.layout, a), s = i.props.value ?? t.inputValues.get(i.id) ?? i.props.defaultValue ?? "";
1352
1548
  n.setProps({
1353
1549
  ...n.props,
1354
1550
  ...i.props,
1355
- value: o,
1551
+ value: s,
1356
1552
  _canvasInputId: i.id,
1357
1553
  _controlledValue: i.props.value !== void 0
1358
1554
  });
1359
- let s = t.textControls.get(i.id);
1360
- if (s) {
1361
- s.layout = a, e.inputBridge.update(i.id, {
1555
+ let c = t.textControls.get(i.id);
1556
+ if (c) {
1557
+ c.layout = o, e.inputBridge.update(i.id, {
1362
1558
  ...i.props,
1363
- value: o
1364
- }, a);
1559
+ value: s
1560
+ }, o);
1365
1561
  continue;
1366
1562
  }
1367
- let c = {
1563
+ let l = {
1368
1564
  input: (e, r) => {
1369
1565
  n.props._controlledValue !== !0 && t.inputValues.set(i.id, e), n.setProps({
1370
1566
  value: e,
@@ -1392,33 +1588,31 @@ function At(e, t, n) {
1392
1588
  _scrollClientWidth: i
1393
1589
  });
1394
1590
  }
1395
- }, l = e.inputBridge.mount(i.id, {
1591
+ }, u = e.inputBridge.mount(i.id, {
1396
1592
  ...i.props,
1397
- value: o
1398
- }, a, c);
1593
+ value: s
1594
+ }, o, l);
1399
1595
  t.textControls.set(i.id, {
1400
1596
  node: n,
1401
- dispose: l,
1402
- layout: a
1597
+ dispose: u,
1598
+ layout: o
1403
1599
  });
1404
1600
  }
1405
1601
  }
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
- }
1602
+ function U(e, t) {
1603
+ let n = R(e.scene);
1604
+ for (let r of t.textControls.values()) r.layout = H(r.node, {
1605
+ ...r.layout,
1606
+ visible: !0
1607
+ }, n), e.inputBridge.update(String(r.node.props._canvasInputId), r.node.props, r.layout);
1414
1608
  }
1415
- function jt(e, t) {
1416
- t.children.forEach((t) => jt(e, t));
1609
+ function nn(e, t) {
1610
+ t.children.forEach((t) => nn(e, t));
1417
1611
  let n = t.props._canvasInputId;
1418
1612
  typeof n == "string" && (e.textControls.get(n)?.dispose(), e.textControls.delete(n), e.inputValues.delete(n));
1419
1613
  }
1420
1614
  // tools/angular-build/.stage/angular-compiled/engine/images.js
1421
- function Mt(e, t, n) {
1615
+ function rn(e, t, n) {
1422
1616
  let r = /* @__PURE__ */ new Set(), i = (e) => e.forEach((e) => {
1423
1617
  e.type === "image" && typeof e.props.src == "string" && e.props.src && r.add(e.props.src), i(e.children);
1424
1618
  });
@@ -1426,7 +1620,7 @@ function Mt(e, t, n) {
1426
1620
  for (let [e, n] of t.imageSubscriptions) r.has(e) || (n(), t.imageSubscriptions.delete(e));
1427
1621
  for (let n of r) {
1428
1622
  if (t.imageSubscriptions.has(n)) continue;
1429
- let r = je(n, (t) => {
1623
+ let r = Ne(n, (t) => {
1430
1624
  e.scene.markDirty(), t && e.scene.traverse((e) => {
1431
1625
  e.type === "image" && e.props.src === n && e.props.onError?.(t);
1432
1626
  });
@@ -1435,54 +1629,92 @@ function Mt(e, t, n) {
1435
1629
  }
1436
1630
  }
1437
1631
  // 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);
1632
+ function an(e, t) {
1633
+ if (e.fullscreenCleanup) return;
1634
+ let n = e.video, r = n.ownerDocument, i = (e) => {
1635
+ let n = e instanceof Error ? e : /* @__PURE__ */ Error(`Video fullscreen failed: ${String(e)}`), r = t.props.onError;
1636
+ typeof r == "function" ? r(n) : console.error("[canvas-ui] Failed to enter video fullscreen:", n);
1637
+ };
1638
+ if (!r.body) {
1639
+ i(/* @__PURE__ */ Error("Video fullscreen requires a document body."));
1640
+ return;
1641
+ }
1642
+ let a = n.getAttribute("style"), o = n.controls, s = !1, c = () => {
1643
+ r.fullscreenElement === n ? s = !0 : s && p();
1644
+ }, l = () => {
1645
+ s = !0;
1646
+ }, u = () => {
1647
+ t.setProps({ paused: n.paused }), t.props.onPausedChange?.(n.paused);
1648
+ }, d = () => t.setProps({ currentTime: void 0 }), f = () => {
1649
+ t.markDirty(), t.props.onSeek?.(n.currentTime);
1650
+ }, p = () => {
1651
+ s && t.setProps({ paused: n.paused }), r.removeEventListener("fullscreenchange", c), n.removeEventListener("webkitbeginfullscreen", l), n.removeEventListener("webkitendfullscreen", p), n.removeEventListener("play", u), n.removeEventListener("pause", u), n.removeEventListener("seeking", d), n.removeEventListener("seeked", f), n.controls = o, a === null ? n.removeAttribute("style") : n.setAttribute("style", a), n.remove(), e.fullscreenCleanup = void 0, t.markDirty();
1652
+ };
1653
+ e.fullscreenCleanup = p, r.addEventListener("fullscreenchange", c), n.addEventListener("webkitbeginfullscreen", l), n.addEventListener("webkitendfullscreen", p), n.addEventListener("play", u), n.addEventListener("pause", u), n.addEventListener("seeking", d), n.addEventListener("seeked", f);
1654
+ try {
1655
+ n.controls = !0, n.style.cssText = "position:fixed;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:2147483647", r.body.appendChild(n), typeof n.requestFullscreen == "function" ? n.requestFullscreen().catch((t) => {
1656
+ e.fullscreenCleanup === p && (p(), i(t));
1657
+ }) : typeof n.webkitEnterFullscreen == "function" ? n.webkitEnterFullscreen() : (p(), i(/* @__PURE__ */ Error("Native video fullscreen is not supported by this browser.")));
1658
+ } catch (e) {
1659
+ p(), i(e);
1458
1660
  }
1459
1661
  }
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) => {
1662
+ function on(e, t) {
1663
+ let n = t.videoNodes;
1664
+ n.length = 0, e.scene.traverse((e) => {
1464
1665
  if (e.type !== "video") return;
1465
- r.add(e);
1666
+ let t = e.props.src;
1667
+ typeof t == "string" && t && n.push(e);
1668
+ }), t.hoveredVideo && (!n.includes(t.hoveredVideo) || t.hoveredVideo.props.controls !== !0 || t.hoveredVideo.props.controlsOnHover !== !0 || t.hoveredVideo.props.visible === !1 || t.hoveredVideo.props.disabled === !0) && (t.hoveredVideo = null);
1669
+ for (let [e, r] of t.videoElements) {
1466
1670
  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) {
1671
+ n.includes(e) && r.src === i || (r.dispose(), t.videoElements.delete(e));
1672
+ }
1673
+ for (let r of n) {
1674
+ let n = r.props.src, i = t.videoElements.get(r);
1675
+ i && i.src === n || (i = gt(n, (t) => {
1676
+ e.scene.markDirty(), t && r.props.onError?.(t);
1677
+ }, (e, t) => {
1678
+ r.props.onTimeUpdate?.(e, t);
1679
+ }, () => e.scene.markDirty()), t.videoElements.set(r, i)), r.props._videoElement = i.video, r.props._videoFrame = i.frame, r.props._videoControlsVisible = t.hoveredVideo === r;
1680
+ }
1681
+ for (let e of t.videoFrames.keys()) n.includes(e) || t.videoFrames.delete(e);
1682
+ }
1683
+ function sn(e, t) {
1684
+ let n = t.videoNodes;
1685
+ if (n.length === 0 && t.videoFrames.size === 0) return;
1686
+ let r = !1;
1687
+ for (let e of n) {
1688
+ let n = e.props.src;
1689
+ if (typeof n != "string" || !n || e.props.visible === !1) continue;
1690
+ let i = t.videoElements.get(e);
1691
+ if (!i || i.src !== n) continue;
1692
+ let a = i.video, o = e.props;
1693
+ Et(a, i.fullscreenCleanup ? {
1694
+ ...o,
1695
+ paused: void 0,
1696
+ autoplay: !1,
1697
+ currentTime: void 0
1698
+ } : o, () => {
1699
+ i.captureFrame(), e.props._videoFrame = i.frame;
1700
+ });
1701
+ let s = t.videoFrames.get(e);
1702
+ if (!s || s.src !== n) {
1470
1703
  t.videoFrames.set(e, {
1471
- src: i,
1704
+ src: n,
1472
1705
  time: -1,
1473
1706
  playing: !1
1474
- }), n = !0;
1475
- return;
1707
+ }), r = !0;
1708
+ continue;
1476
1709
  }
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();
1710
+ let c = !a.paused && !a.ended, l = a.currentTime;
1711
+ (c || l !== s.time || s.playing) && (r = !0), s.time = l, s.playing = c;
1712
+ }
1713
+ r && e.scene.markDirty();
1482
1714
  }
1483
1715
  // tools/angular-build/.stage/angular-compiled/engine/vnodes.js
1484
- function Ft(e) {
1485
- let t = Lt(e), n = t.children.map((e, t) => {
1716
+ function cn(e) {
1717
+ let t = un(e), n = t.children.map((e, t) => {
1486
1718
  let n = u(e.props.y, 0);
1487
1719
  return {
1488
1720
  child: e,
@@ -1502,7 +1734,7 @@ function Ft(e) {
1502
1734
  entries: n
1503
1735
  };
1504
1736
  }
1505
- function It(e, t, n, r) {
1737
+ function ln(e, t, n, r) {
1506
1738
  let i = t - r, a = t + n + r, o = 0, s = e.entries.length;
1507
1739
  for (; o < s;) {
1508
1740
  let t = Math.floor((o + s) / 2);
@@ -1524,7 +1756,7 @@ function It(e, t, n, r) {
1524
1756
  }
1525
1757
  }));
1526
1758
  }
1527
- function Lt(e) {
1759
+ function un(e) {
1528
1760
  let t = e.props.columns, n = e.props.cellWidth, r = e.props.width, i = e.props.cellHeight, a = e.props.gap ?? 0;
1529
1761
  if (!Number.isInteger(t) || t < 1) throw RangeError("Grid columns must be a positive integer.");
1530
1762
  if (typeof i != "number" || !Number.isFinite(i) || i <= 0) throw RangeError("Grid cellHeight must be a positive finite number.");
@@ -1540,7 +1772,7 @@ function Lt(e) {
1540
1772
  if (!Number.isInteger(r) || r < 1 || r > t) throw RangeError("GridItem columnSpan must be a positive integer no greater than Grid columns.");
1541
1773
  if (!Number.isInteger(s) || s < 1) throw RangeError("GridItem rowSpan must be a positive integer.");
1542
1774
  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;
1775
+ for (; p + r > t || !fn(c, f, p, r, s);) l++, f = Math.floor(l / t), p = l % t;
1544
1776
  for (let e = f; e < f + s; e++) for (let t = p; t < p + r; t++) c.add(`${e}:${t}`);
1545
1777
  d = Math.max(d, f * (i + a) + s * i + (s - 1) * a), l++;
1546
1778
  let m = o * r + a * (r - 1), h = i * s + a * (s - 1);
@@ -1557,14 +1789,14 @@ function Lt(e) {
1557
1789
  _gridItemHeight: h
1558
1790
  } : {}
1559
1791
  },
1560
- children: n ? Rt(e.children, m, h) : e.children
1792
+ children: n ? dn(e.children, m, h) : e.children
1561
1793
  };
1562
1794
  }),
1563
1795
  contentHeight: d,
1564
1796
  width: s
1565
1797
  };
1566
1798
  }
1567
- function Rt(e, t, n) {
1799
+ function dn(e, t, n) {
1568
1800
  return e.map((e) => ({
1569
1801
  ...e,
1570
1802
  props: {
@@ -1574,11 +1806,11 @@ function Rt(e, t, n) {
1574
1806
  }
1575
1807
  }));
1576
1808
  }
1577
- function zt(e, t, n, r, i) {
1809
+ function fn(e, t, n, r, i) {
1578
1810
  for (let a = t; a < t + i; a++) for (let t = n; t < n + r; t++) if (e.has(`${a}:${t}`)) return !1;
1579
1811
  return !0;
1580
1812
  }
1581
- function Bt(e, t, n) {
1813
+ function pn(e, t, n) {
1582
1814
  return e.map((e) => ({
1583
1815
  ...e,
1584
1816
  props: {
@@ -1588,7 +1820,7 @@ function Bt(e, t, n) {
1588
1820
  }
1589
1821
  }));
1590
1822
  }
1591
- function J(e, t) {
1823
+ function mn(e, t) {
1592
1824
  return e.map((e) => {
1593
1825
  let n = typeof e.props._userVisible == "boolean" ? e.props._userVisible : e.props.visible !== !1, r = t && n;
1594
1826
  return {
@@ -1598,14 +1830,14 @@ function J(e, t) {
1598
1830
  visible: r,
1599
1831
  _userVisible: n
1600
1832
  },
1601
- children: J(e.children, r)
1833
+ children: mn(e.children, r)
1602
1834
  };
1603
1835
  });
1604
1836
  }
1605
- function Vt(e, t, n, r) {
1837
+ function hn(e, t, n, r) {
1606
1838
  return t ? e === t.from ? -t.direction * r * n : e === t.to ? t.direction * r * (1 - n) : 0 : 0;
1607
1839
  }
1608
- function Ht(e) {
1840
+ function gn(e) {
1609
1841
  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
1842
  return {
1611
1843
  width: r,
@@ -1617,27 +1849,27 @@ function Ht(e) {
1617
1849
  };
1618
1850
  }
1619
1851
  // tools/angular-build/.stage/angular-compiled/engine/carousel.js
1620
- function Ut(e, t) {
1852
+ function _n(e, t) {
1621
1853
  return e.duration <= 0 ? 1 : Math.max(0, Math.min(1, (t - e.startedAt) / e.duration));
1622
1854
  }
1623
- function Wt(e, t, n, r) {
1855
+ function vn(e, t, n, r) {
1624
1856
  let i = u(e.props.width, 300);
1625
1857
  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);
1858
+ 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 = hn(a, n, r, i);
1859
+ e.setProps({ x: s + c }), B(e, o);
1628
1860
  });
1629
1861
  }
1630
- function Gt(e, t, n) {
1631
- for (let e of t.textControls.values()) W(e.node, n) && (e.layout = {
1862
+ function yn(e, t, n) {
1863
+ for (let e of t.textControls.values()) z(e.node, n) && (e.layout = {
1632
1864
  ...e.layout,
1633
- transform: U(e.node)
1865
+ transform: L(e.node)
1634
1866
  });
1635
- q(e, t);
1867
+ U(e, t);
1636
1868
  }
1637
- function Kt(e, t, n, r) {
1869
+ function bn(e, t, n, r) {
1638
1870
  let i = n.children.filter((e) => e.type === "carouselItem");
1639
1871
  if (!i.length) return;
1640
- let a = u(n.props._activeIndex, 0), o = et(r, a, i.length, n.props.loop !== !1);
1872
+ let a = u(n.props._activeIndex, 0), o = at(r, a, i.length, n.props.loop !== !1);
1641
1873
  if (o === a) return;
1642
1874
  let s = String(n.props._stateKey ?? "");
1643
1875
  if (t.carouselTransitions.has(s)) return;
@@ -1653,70 +1885,315 @@ function Kt(e, t, n, r) {
1653
1885
  t.carouselTransitions.set(s, i), t.carouselFrameTimes.set(s, t.currentFrameTime), n.setProps({
1654
1886
  _activeIndex: o,
1655
1887
  _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);
1888
+ }), vn(n, o, i, 0), yn(e, t, n), n.props.activeIndex === void 0 && t.carouselSelections.set(s, o), n.props.onChange?.(o);
1657
1889
  } 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);
1890
+ B(e, t === o && e.props._userVisible !== !1);
1891
+ }), U(e, t)), n.props.onChange?.(o);
1660
1892
  }
1661
- function qt(e, t, n) {
1893
+ function xn(e, t, n) {
1662
1894
  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);
1895
+ let r = /* @__PURE__ */ new Set(), i = !1;
1896
+ e.scene.traverse((a) => {
1897
+ if (a.type !== "carousel") return;
1898
+ let o = String(a.props._stateKey ?? "");
1899
+ r.add(o);
1900
+ let s = t.carouselTransitions.get(o);
1901
+ if (s) {
1902
+ if (i = !0, n - s.startedAt >= s.duration) t.carouselTransitions.delete(o), a.setProps({ _transitionProgress: 1 }), vn(a, s.to, null, 1), yn(e, t, a), t.carouselFrameTimes.set(o, n);
1671
1903
  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);
1904
+ let r = _n(s, n);
1905
+ a.setProps({ _transitionProgress: r });
1906
+ let i = r * r * (3 - 2 * r);
1907
+ vn(a, s.to, s, i), yn(e, t, a);
1676
1908
  }
1677
1909
  return;
1678
1910
  }
1679
- if (!wt(i) || i.props.autoplay === !1 || i.children.filter((e) => e.type === "carouselItem").length < 2) {
1680
- t.carouselFrameTimes.delete(a);
1911
+ if (!Jt(a) || a.props.autoplay === !1 || a.children.filter((e) => e.type === "carouselItem").length < 2) {
1912
+ t.carouselFrameTimes.delete(o);
1681
1913
  return;
1682
1914
  }
1683
- let s = t.carouselFrameTimes.get(a);
1684
- if (s === void 0) {
1685
- t.carouselFrameTimes.set(a, n);
1915
+ let c = t.carouselFrameTimes.get(o);
1916
+ if (c === void 0) {
1917
+ t.carouselFrameTimes.set(o, n);
1686
1918
  return;
1687
1919
  }
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));
1920
+ let l = Math.max(250, u(a.props.interval, 3e3));
1921
+ n - c < l || (t.carouselFrameTimes.set(o, n), bn(e, t, a, u(a.props._activeIndex, 0) + 1), i = !0);
1690
1922
  });
1691
1923
  for (let e of t.carouselFrameTimes.keys()) r.has(e) || t.carouselFrameTimes.delete(e);
1692
1924
  for (let e of t.carouselTransitions.keys()) r.has(e) || t.carouselTransitions.delete(e);
1925
+ return i;
1926
+ }
1927
+ // tools/angular-build/.stage/angular-compiled/components/Form/form.js
1928
+ var W = /* @__PURE__ */ new WeakMap();
1929
+ function Sn() {
1930
+ let e = () => {
1931
+ let e = W.get(t);
1932
+ if (!e) throw Error("Form controller is not attached to a mounted Form.");
1933
+ return e;
1934
+ }, t = {
1935
+ getValues: () => e().getValues(),
1936
+ getFieldValue: (t) => e().getFieldValue(t),
1937
+ setFieldValue: (t, n) => e().setFieldValue(t, n)
1938
+ };
1939
+ return W.set(t, null), t;
1940
+ }
1941
+ function Cn(e, t) {
1942
+ if (!W.has(e)) throw TypeError("Use createFormController() to create a Form controller.");
1943
+ let n = W.get(e);
1944
+ if (n && n.owner !== t.owner) throw Error("A Form controller can only be attached to one Form.");
1945
+ W.set(e, t);
1946
+ }
1947
+ function wn(e, t) {
1948
+ W.get(e)?.owner === t && W.set(e, null);
1949
+ }
1950
+ O("form"), O("formItem");
1951
+ // tools/angular-build/.stage/angular-compiled/engine/forms.js
1952
+ function Tn(e) {
1953
+ e.attachedController && wn(e.attachedController, e), e.attachedController = void 0;
1954
+ }
1955
+ function En(e) {
1956
+ e.controller !== void 0 && e.binding && (Cn(e.controller, e.binding), e.attachedController = e.controller);
1957
+ }
1958
+ var Dn = /* @__PURE__ */ new Set([
1959
+ "input",
1960
+ "textarea",
1961
+ "datePicker",
1962
+ "radio",
1963
+ "checkbox",
1964
+ "dropdown",
1965
+ "slider",
1966
+ "switch",
1967
+ "upload"
1968
+ ]);
1969
+ function G(e) {
1970
+ return Array.isArray(e) ? e.slice() : e;
1971
+ }
1972
+ function K(e) {
1973
+ return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, G(t)]));
1974
+ }
1975
+ function On(e) {
1976
+ return typeof e == "string" || typeof e == "boolean" || typeof e == "number" && Number.isFinite(e) || Array.isArray(e) && (e.every((e) => typeof e == "string") || typeof File < "u" && e.every((e) => e instanceof File));
1977
+ }
1978
+ function kn(e) {
1979
+ return typeof e == "string" ? e.trim().length === 0 : e === !1 || Array.isArray(e) && !e.length;
1980
+ }
1981
+ function An(e, t, n) {
1982
+ let r = (i) => {
1983
+ if (i >= t.length) return;
1984
+ let a = t[i], o = kn(e);
1985
+ if (a.required && o) return a.message ?? "This field is required.";
1986
+ if (!o && a.minLength !== void 0 && (typeof e == "string" || Array.isArray(e)) && e.length < a.minLength) return a.message ?? `Minimum length is ${a.minLength}.`;
1987
+ if (!o && a.maxLength !== void 0 && (typeof e == "string" || Array.isArray(e)) && e.length > a.maxLength) return a.message ?? `Maximum length is ${a.maxLength}.`;
1988
+ if (!o && a.pattern && typeof e == "string") {
1989
+ let t = a.pattern.lastIndex;
1990
+ a.pattern.lastIndex = 0;
1991
+ let n = a.pattern.test(e);
1992
+ if (a.pattern.lastIndex = t, !n) return a.message ?? "Invalid format.";
1993
+ }
1994
+ let s = a.validator?.(e, n), c = (e) => {
1995
+ if (e !== void 0 && typeof e != "string") throw TypeError("Form validators must return a string or undefined.");
1996
+ return e ? a.message ?? e : r(i + 1);
1997
+ };
1998
+ return s instanceof Promise ? s.then(c) : c(s);
1999
+ };
2000
+ return r(0);
2001
+ }
2002
+ function jn(e) {
2003
+ return `Validation failed: ${e instanceof Error ? e.message : String(e)}`;
2004
+ }
2005
+ function Mn(e, t) {
2006
+ let n = {}, r = [], i = (e, t) => {
2007
+ t && Object.defineProperty(n, e.name, {
2008
+ value: t,
2009
+ enumerable: !0,
2010
+ configurable: !0
2011
+ });
2012
+ };
2013
+ for (let n of e) {
2014
+ let e = An(t[n.name], n.rules, t);
2015
+ e instanceof Promise ? r.push(e.then((e) => i(n, e), (e) => i(n, jn(e)))) : i(n, e);
2016
+ }
2017
+ return r.length ? Promise.all(r).then(() => n) : n;
2018
+ }
2019
+ function Nn(e) {
2020
+ let t = e.props, n = e.type === "switch" ? t.checked ?? t.defaultChecked : t.value ?? t.defaultValue;
2021
+ if (n !== void 0) {
2022
+ if (!On(n)) throw TypeError(`Invalid initial value for <${e.type}> in <FormItem>.`);
2023
+ return G(n);
2024
+ }
2025
+ return e.type === "checkbox" || e.type === "upload" ? [] : e.type === "switch" ? !1 : e.type === "slider" ? typeof t.min == "number" ? t.min : 0 : "";
2026
+ }
2027
+ function Pn(e, t) {
2028
+ return e === "checkbox" ? Array.isArray(t) && t.every((e) => typeof e == "string") : e === "upload" ? Array.isArray(t) && (t.length === 0 || typeof File < "u" && t.every((e) => e instanceof File)) : e === "switch" ? typeof t == "boolean" : e === "slider" ? typeof t == "number" : typeof t == "string";
2029
+ }
2030
+ function Fn(e, t, n, r) {
2031
+ t.activeFormKeys.add(r);
2032
+ let i = n.props, a = t.forms.get(r);
2033
+ a || (a = {
2034
+ values: {},
2035
+ errors: {},
2036
+ attempted: !1,
2037
+ revision: 0,
2038
+ submission: 0,
2039
+ resetVersion: 0,
2040
+ validationEpoch: 0,
2041
+ fieldValidations: /* @__PURE__ */ new Map()
2042
+ }, t.forms.set(r, a));
2043
+ let o = a, s = [], c = /* @__PURE__ */ new Set(), l = (e) => t.forms.get(r) === o && o.revision === e, u = (e, t, n) => {
2044
+ e instanceof Promise ? e.then((e) => {
2045
+ l(t) && n(e);
2046
+ }) : l(t) && n(e);
2047
+ }, d = (t, n, r, a) => {
2048
+ if (!On(r) || !Pn(n, r)) throw TypeError(`Invalid value for form field "${t}".`);
2049
+ o.values[t] = G(r);
2050
+ let c = ++o.revision;
2051
+ o.attempted && (o.validationEpoch++, u(Mn(s, K(o.values)), c, (t) => {
2052
+ o.errors = t, e.refreshVirtualGrids();
2053
+ })), e.refreshVirtualGrids(), typeof a == "function" && a(r), i.onValuesChange?.(K(o.values));
2054
+ };
2055
+ function f(t) {
2056
+ if (t.type === "form") throw Error("Nested <Form> components are not supported.");
2057
+ if (t.type === "formItem") {
2058
+ let n = t.props.name;
2059
+ if (typeof n != "string" || !n) throw Error("<FormItem> requires a name.");
2060
+ if (c.has(n)) throw Error(`Duplicate <FormItem> name: ${n}`);
2061
+ c.add(n);
2062
+ let r = t.children.filter((e) => Dn.has(e.type));
2063
+ if (r.length !== 1 || t.children.length !== 1) throw Error(`<FormItem name="${n}"> requires exactly one direct form control.`);
2064
+ let a = r[0], l = i.initialValues && Object.hasOwn(i.initialValues, n) ? i.initialValues[n] : Nn(a);
2065
+ if (!On(l) || !Pn(a.type, l)) throw TypeError(`Invalid initial value for form field "${n}".`);
2066
+ let f = t.props.rules;
2067
+ if (f !== void 0 && !Array.isArray(f)) throw TypeError("FormItem rules must be an array.");
2068
+ s.push({
2069
+ name: n,
2070
+ kind: a.type,
2071
+ initial: G(l),
2072
+ rules: f ?? []
2073
+ }), Object.hasOwn(o.values, n) && Pn(a.type, o.values[n]) || (o.revision++, Object.defineProperty(o.values, n, {
2074
+ value: G(l),
2075
+ writable: !0,
2076
+ enumerable: !0,
2077
+ configurable: !0
2078
+ }), delete o.errors[n]);
2079
+ let p = a.props.onChange, m = (e) => d(n, a.type, e, p), h = a.props.onBlur, g = () => {
2080
+ let t = o.revision, r = o.validationEpoch, i = (o.fieldValidations.get(n) ?? 0) + 1;
2081
+ o.fieldValidations.set(n, i);
2082
+ let a = s.find((e) => e.name === n);
2083
+ a && u(Mn([a], K(o.values)), t, (t) => {
2084
+ o.validationEpoch === r && o.fieldValidations.get(n) === i && (Object.hasOwn(t, n) ? Object.defineProperty(o.errors, n, {
2085
+ value: t[n],
2086
+ writable: !0,
2087
+ enumerable: !0,
2088
+ configurable: !0
2089
+ }) : delete o.errors[n], e.refreshVirtualGrids());
2090
+ }), typeof h == "function" && h();
2091
+ }, _ = {
2092
+ ...a,
2093
+ props: {
2094
+ ...a.props,
2095
+ [a.type === "switch" ? "checked" : "value"]: G(o.values[n]),
2096
+ _formError: Object.hasOwn(o.errors, n) ? o.errors[n] : void 0,
2097
+ _formResetVersion: o.resetVersion,
2098
+ onChange: m,
2099
+ onBlur: g,
2100
+ _formBlur: g
2101
+ }
2102
+ }, v = {
2103
+ type: "text",
2104
+ key: "$form-error",
2105
+ props: {
2106
+ y: typeof t.props.errorY == "number" ? t.props.errorY : (a.type === "upload" ? $e({
2107
+ ...a.props,
2108
+ value: o.values[n]
2109
+ }) : a.type === "radio" || a.type === "checkbox" ? Ke(a.props).height : A(a.props, a.type === "switch" ? 24 : a.type === "slider" ? 32 : 36)) + 4,
2110
+ text: Object.hasOwn(o.errors, n) ? o.errors[n] : "",
2111
+ color: t.props.errorColor ?? "#d93025",
2112
+ fontSize: t.props.errorFontSize ?? 12
2113
+ },
2114
+ children: []
2115
+ };
2116
+ return {
2117
+ ...t,
2118
+ props: {
2119
+ ...t.props,
2120
+ _formItemManaged: !0
2121
+ },
2122
+ children: [_, v]
2123
+ };
2124
+ }
2125
+ if (t.type === "button" && (t.props.formAction === "submit" || t.props.formAction === "reset")) {
2126
+ let n = t.props.onClick;
2127
+ return {
2128
+ ...t,
2129
+ props: {
2130
+ ...t.props,
2131
+ onClick: () => {
2132
+ if (t.props.formAction === "reset") o.values = Object.fromEntries(s.map((e) => [e.name, G(e.initial)])), o.errors = {}, o.attempted = !1, o.revision++, o.submission++, o.resetVersion++, o.validationEpoch++, o.fieldValidations.clear(), e.refreshVirtualGrids(), i.onReset?.();
2133
+ else {
2134
+ o.attempted = !0, o.validationEpoch++;
2135
+ let t = K(o.values), n = o.revision, r = ++o.submission;
2136
+ u(Mn(s, t), n, (n) => {
2137
+ o.submission === r && (o.errors = n, e.refreshVirtualGrids(), Object.keys(n).length ? i.onInvalid?.({ ...n }, t) : i.onSubmit?.(t));
2138
+ });
2139
+ }
2140
+ typeof n == "function" && n();
2141
+ }
2142
+ }
2143
+ };
2144
+ }
2145
+ let n = t.children.map(f);
2146
+ return {
2147
+ ...t,
2148
+ props: t.type === "grid" && t.props.virtual === !0 ? {
2149
+ ...t.props,
2150
+ _gridCacheToken: n
2151
+ } : t.props,
2152
+ children: n
2153
+ };
2154
+ }
2155
+ let p = n.children.map(f);
2156
+ for (let e of Object.keys(o.values)) c.has(e) || (o.revision++, delete o.values[e], delete o.errors[e]);
2157
+ return o.controller = i.controller, o.binding = o.controller === void 0 ? void 0 : {
2158
+ owner: o,
2159
+ getValues: () => K(o.values),
2160
+ getFieldValue: (e) => {
2161
+ if (!Object.hasOwn(o.values, e)) throw Error(`Unknown form field "${e}".`);
2162
+ return G(o.values[e]);
2163
+ },
2164
+ setFieldValue: (e, t) => {
2165
+ let n = s.find((t) => t.name === e);
2166
+ if (!n) throw Error(`Unknown form field "${e}".`);
2167
+ d(e, n.kind, t);
2168
+ }
2169
+ }, p;
1693
2170
  }
1694
2171
  // tools/angular-build/.stage/angular-compiled/engine/layout.js
1695
- var Jt = 100;
1696
- function Yt(e) {
1697
- return gt(e);
2172
+ var In = 100;
2173
+ function Ln(e) {
2174
+ return Rt(e);
1698
2175
  }
1699
- function Xt(e) {
2176
+ function Rn(e) {
1700
2177
  let t = u(e.props.height, 0);
1701
2178
  if (t > 0) return t;
1702
- let n = Jt;
2179
+ let n = In;
1703
2180
  for (let t of e.children) {
1704
- let e = t.type === "text" ? Yt(t.props).height : u(t.props.height, 0);
2181
+ let e = t.type === "text" ? Ln(t.props).height : u(t.props.height, 0);
1705
2182
  n = Math.max(n, u(t.props.y, 0) + e);
1706
2183
  }
1707
2184
  return n;
1708
2185
  }
1709
- function Zt(e, t) {
2186
+ function zn(e, t) {
1710
2187
  let n = e[t];
1711
2188
  return Array.isArray(n) ? n.join(",") : typeof n == "string" ? n : "";
1712
2189
  }
1713
- function Qt(e, t, n, r) {
2190
+ function Bn(e, t, n, r) {
1714
2191
  let i = n.activeKey;
1715
2192
  if (typeof i == "string") return i;
1716
2193
  let a = e.tabSelections.get(t), o = typeof n.defaultActiveKey == "string" ? n.defaultActiveKey : String(r[0]?.props.id ?? ""), s = a ?? o;
1717
2194
  return e.tabSelections.set(t, s), s;
1718
2195
  }
1719
- function $t(e, t, n) {
2196
+ function Vn(e, t, n) {
1720
2197
  if (Array.isArray(n.activeKeys)) {
1721
2198
  let e = n.activeKeys.filter((e) => typeof e == "string");
1722
2199
  return new Set(n.accordion ? e.slice(0, 1) : e);
@@ -1724,7 +2201,7 @@ function $t(e, t, n) {
1724
2201
  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
2202
  return e.collapseSelections.set(t, o), o;
1726
2203
  }
1727
- function en(e, t) {
2204
+ function Hn(e, t) {
1728
2205
  let n = u(e.props.headerHeight, 40), r = u(e.props.width, 300), i = 0;
1729
2206
  for (let a of e.children) {
1730
2207
  if (a.type !== "collapseItem") continue;
@@ -1734,17 +2211,19 @@ function en(e, t) {
1734
2211
  _expanded: e,
1735
2212
  _collapseWidth: r,
1736
2213
  _collapseHeaderHeight: n
1737
- }), a.children.forEach((t) => G(t, e)), i += n + (e ? tn(a) : 0);
2214
+ }), a.children.forEach((t) => B(t, e)), i += n + (e ? Un(a) : 0);
1738
2215
  }
1739
2216
  }
1740
- function tn(e) {
1741
- return u(e.props._collapseBodyHeight, u(e.props.height, Jt));
2217
+ function Un(e) {
2218
+ return u(e.props._collapseBodyHeight, u(e.props.height, In));
1742
2219
  }
1743
- function nn(e, t, n, r, i, a, o) {
2220
+ function Wn(e, t, n, r, i, a, o) {
1744
2221
  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 };
2222
+ let c = l(n, s, a), d = n.props;
2223
+ if (n.type === "formItem" && d._formItemManaged !== !0) throw Error("<FormItem> must be used inside <Form>.");
2224
+ let f = F(n.type === "dialog" ? P : r, d), p = i && d.visible !== !1 && (n.type !== "dialog" || d.open === !0), m = { ...d };
1746
2225
  if (m._userVisible = typeof d._userVisible == "boolean" ? d._userVisible : d.visible !== !1, n.type === "text") {
1747
- let e = Yt(m);
2226
+ let e = Ln(m);
1748
2227
  m._textWidth = e.width, m._textHeight = e.height;
1749
2228
  }
1750
2229
  if (n.type === "input" || n.type === "datePicker" || n.type === "textarea") {
@@ -1761,13 +2240,13 @@ function nn(e, t, n, r, i, a, o) {
1761
2240
  });
1762
2241
  }
1763
2242
  let h = n.children;
1764
- if (n.type === "grid") {
2243
+ if (n.type === "form" && (h = Fn(e, t, n, c)), n.type === "grid") {
1765
2244
  let e = c;
1766
2245
  if (d.virtual === !0 && typeof d.height != "number") throw RangeError("Virtual Grid requires a positive finite height.");
1767
2246
  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) => ({
2247
+ r && r.token !== d._gridCacheToken && (r = void 0), d.virtual === !0 && t.activeVirtualGridKeys.add(e), d.virtual === !0 && !r && (r = cn(n), t.virtualGridLayouts.set(e, r));
2248
+ let i = r ?? un(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));
2249
+ t.gridScrollPositions.set(e, o), m._gridStateKey = e, m._gridWidth = i.width, m._gridContentHeight = i.contentHeight, m._scrollTop = o, h = "entries" in i ? ln(i, o, u(d.height, 0), u(d.cellHeight, 0) + u(d.gap, 0)) : i.children.map((e) => ({
1771
2250
  ...e,
1772
2251
  props: {
1773
2252
  ...e.props,
@@ -1779,9 +2258,9 @@ function nn(e, t, n, r, i, a, o) {
1779
2258
  if (n.type === "dialog") {
1780
2259
  m._viewportWidth = e.context.canvas.width / e.pixelRatio, m._viewportHeight = e.context.canvas.height / e.pixelRatio;
1781
2260
  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);
2261
+ m._dialogPanelX = r, m._dialogPanelY = i, h = pn(h, r + 24, i + 64);
1783
2262
  } 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);
2263
+ let e = h.filter((e) => e.type === "tabItem"), n = `${c}:${zn(d, "defaultActiveKey")}`, r = Bn(t, n, d, e);
1785
2264
  m._activeKey = r, m._tabItems = e.map((e) => ({
1786
2265
  title: e.props.title,
1787
2266
  disabled: e.props.disabled,
@@ -1795,30 +2274,30 @@ function nn(e, t, n, r, i, a, o) {
1795
2274
  visible: e.type !== "tabItem" || e.props.visible !== !1 && e.props.id === r,
1796
2275
  _userVisible: e.props._userVisible ?? e.props.visible !== !1
1797
2276
  },
1798
- children: e.type === "tabItem" ? J(Bt(e.children, 0, i), e.props.visible !== !1 && e.props.id === r) : e.children
2277
+ children: e.type === "tabItem" ? mn(pn(e.children, 0, i), e.props.visible !== !1 && e.props.id === r) : e.children
1799
2278
  })), m._stateKey = n;
1800
2279
  } else if (n.type === "carousel") {
1801
2280
  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
2281
  o && r !== void 0 && i !== o.to && (t.carouselTransitions.delete(n), o = void 0);
1803
2282
  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;
2283
+ 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 ? _n(o, t.currentFrameTime) : 1;
1805
2284
  let l = u(m._transitionProgress, 1), f = l * l * (3 - 2 * l);
1806
2285
  h = h.map((t) => ({
1807
2286
  ...t,
1808
2287
  props: {
1809
2288
  ...t.props,
1810
2289
  _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,
2290
+ x: t.type === "carouselItem" ? u(t.props.x, 0) + hn(e.indexOf(t), o, f, u(d.width, 300)) : t.props.x,
1812
2291
  visible: t.type !== "carouselItem" || t.props.visible !== !1 && (o ? e.indexOf(t) === o.from || e.indexOf(t) === o.to : e[s] === t),
1813
2292
  _userVisible: t.props._userVisible ?? t.props.visible !== !1
1814
2293
  },
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
2294
+ children: t.type === "carouselItem" ? mn(t.children, t.props.visible !== !1 && (o ? e.indexOf(t) === o.from || e.indexOf(t) === o.to : e[s] === t)) : t.children
1816
2295
  }));
1817
2296
  } 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;
2297
+ let e = `${c}:${zn(d, "defaultActiveKeys")}`, n = Vn(t, e, d), r = u(d.headerHeight, 40), i = u(d.width, 300), a = 0;
1819
2298
  h = h.map((e) => {
1820
2299
  if (e.type !== "collapseItem") return e;
1821
- let t = n.has(String(e.props.id ?? "")), o = Xt(e), s = t ? o : 0, c = {
2300
+ let t = n.has(String(e.props.id ?? "")), o = Rn(e), s = t ? o : 0, c = {
1822
2301
  ...e,
1823
2302
  props: {
1824
2303
  ...e.props,
@@ -1835,7 +2314,7 @@ function nn(e, t, n, r, i, a, o) {
1835
2314
  textColor: e.props.textColor ?? d.textColor,
1836
2315
  borderColor: e.props.borderColor ?? d.borderColor
1837
2316
  },
1838
- children: J(Bt(e.children, 0, r), t && e.props.visible !== !1)
2317
+ children: mn(pn(e.children, 0, r), t && e.props.visible !== !1)
1839
2318
  };
1840
2319
  return a += r + s, c;
1841
2320
  }), m._stateKey = e, m._activeKeys = [...n];
@@ -1843,60 +2322,103 @@ function nn(e, t, n, r, i, a, o) {
1843
2322
  return {
1844
2323
  ...n,
1845
2324
  props: m,
1846
- children: nn(e, t, h, f, p, c, o)
2325
+ children: Wn(e, t, h, f, p, c, o)
1847
2326
  };
1848
2327
  });
1849
2328
  }
2329
+ // tools/angular-build/.stage/angular-compiled/engine/uploads.js
2330
+ function Gn(e) {
2331
+ return Array.isArray(e.props.value) ? e.props.value : [];
2332
+ }
2333
+ function Kn(e, t) {
2334
+ let n = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
2335
+ if (!n.length) return !0;
2336
+ let r = e.name.toLowerCase(), i = e.type.toLowerCase();
2337
+ return n.some((e) => e.startsWith(".") ? r.endsWith(e) : e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : i === e);
2338
+ }
2339
+ function qn(e, t, n) {
2340
+ (e.props.value === void 0 || e.props._controlledValue !== !0) && e.setProps({ value: n });
2341
+ let r = e.props.onChange;
2342
+ typeof r == "function" && r([...n]), t.refreshVirtualGrids();
2343
+ }
2344
+ function Jn(e, t) {
2345
+ if (e.props.disabled) return;
2346
+ let n = typeof e.props.accept == "string" ? e.props.accept : "", r = e.props.maxSize;
2347
+ if (r !== void 0 && (typeof r != "number" || !Number.isFinite(r) || r < 0)) throw RangeError("Upload maxSize must be a non-negative finite number of bytes.");
2348
+ t.inputBridge.pickFiles(n || void 0, !!e.props.multiple, (i) => {
2349
+ if (!e.parent || e.props.disabled) return;
2350
+ let a = [], o = [];
2351
+ for (let e of i) Kn(e, n) ? typeof r == "number" && e.size > r ? o.push({
2352
+ file: e,
2353
+ reason: "size"
2354
+ }) : a.push(e) : o.push({
2355
+ file: e,
2356
+ reason: "type"
2357
+ });
2358
+ e.setProps({ _uploadError: o.length ? "Some files have an invalid type or size." : void 0 });
2359
+ let s = e.props.onReject;
2360
+ a.length ? qn(e, t, e.props.multiple ? [...Gn(e), ...a] : [a[0]]) : t.refreshVirtualGrids(), o.length && typeof s == "function" && s(o);
2361
+ });
2362
+ }
2363
+ function Yn(e, t, n) {
2364
+ if (e.props.disabled) return;
2365
+ let r = Gn(e);
2366
+ n < 0 || n >= r.length || (e.setProps({ _uploadError: void 0 }), qn(e, t, r.filter((e, t) => t !== n)));
2367
+ }
2368
+ function Xn(e, t, n) {
2369
+ let r = u(e.props.height, 40), i = u(e.props.width, 120), a = Math.floor((n - r) / 28);
2370
+ return t >= i - 24 && t <= i && n >= r && a < Gn(e).length ? a : void 0;
2371
+ }
1850
2372
  // tools/angular-build/.stage/angular-compiled/engine/hit-test.js
1851
- function Y(e, t, n, r) {
2373
+ function q(e, t, n, r) {
1852
2374
  let i = t.getBoundingClientRect();
1853
2375
  return !i.width || !i.height ? null : {
1854
2376
  x: (n - i.left) * t.width / i.width / e.pixelRatio,
1855
2377
  y: (r - i.top) * t.height / i.height / e.pixelRatio
1856
2378
  };
1857
2379
  }
1858
- function X(e, t, n, r, i) {
2380
+ function J(e, t, n, r, i) {
1859
2381
  let a = t.getBoundingClientRect();
1860
2382
  if (!a.width || !a.height) return null;
1861
2383
  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;
2384
+ let n = e.type === "dialog" ? F(P, e.props) : F(t, e.props);
2385
+ if (e === i) return c = I(o, s, n), !0;
1864
2386
  for (let t of e.children) if (l(t, n)) return !0;
1865
2387
  return !1;
1866
2388
  };
1867
- return l(e.scene, B), c;
2389
+ return l(e.scene, P), c;
1868
2390
  }
1869
- function rn(e, t, n, r, i) {
2391
+ function Zn(e, t, n, r, i) {
1870
2392
  let a = i.parent;
1871
- for (; a;) {
2393
+ for (; a && a.type !== "dialog";) {
1872
2394
  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);
2395
+ let i = J(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
2396
  if (!i || i.x < 0 || i.x > o || i.y < 0 || i.y > s) return !1;
1875
2397
  }
1876
2398
  a = a.parent;
1877
2399
  }
1878
2400
  return !0;
1879
2401
  }
1880
- function Z(e, t, n, r) {
2402
+ function Qn(e, t, n, r) {
1881
2403
  let i = t.getBoundingClientRect();
1882
2404
  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({
2405
+ 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, r) => {
2406
+ let i = n && e.props.visible !== !1;
2407
+ if (!i || e.type === "dialog" && (r || e.props.open !== !0)) return;
2408
+ let a = e.type === "dialog" ? F(P, e.props) : F(t, e.props);
2409
+ (Zt(e.type) || e.type === "dialog" && e.props.open === !0 || (e.type === "text" || e.type === "image" || e.type === "icon") && typeof e.props.onClick == "function" || e.type === "video" && e.props.controls === !0) && s.push({
1888
2410
  node: e,
1889
- transform: i
1890
- }), e.children.forEach((e) => c(e, i, r));
2411
+ transform: a
2412
+ }), e.children.forEach((t) => c(t, a, i, r || e.type === "dialog"));
1891
2413
  };
1892
- c(e.scene, B, !0);
2414
+ c(e.scene, P, !0, !1);
1893
2415
  let l = [...s].reverse().find((e) => e.node.type === "dialog");
1894
2416
  for (let i = s.length - 1; i >= 0; i--) {
1895
2417
  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);
2418
+ if (l && c.node !== l.node && !z(c.node, l.node) || c.node.type !== "dropdown" || !c.node.props.open || c.node.props.disabled || !Zn(e, t, n, r, c.node)) continue;
2419
+ let u = I(a, o, c.transform);
1898
2420
  if (!u) continue;
1899
- let { width: d, height: f } = K(c.node), p = j(c.node.props.options).length * f;
2421
+ let { width: d, height: f } = V(c.node), p = k(c.node.props.options).length * f;
1900
2422
  if (u.x >= 0 && u.x <= d && u.y >= f && u.y <= f + p) return {
1901
2423
  node: c.node,
1902
2424
  x: u.x,
@@ -1905,11 +2427,11 @@ function Z(e, t, n, r) {
1905
2427
  }
1906
2428
  for (let i = s.length - 1; i >= 0; i--) {
1907
2429
  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);
2430
+ if (l && c.node !== l.node && !z(c.node, l.node) || !Zn(e, t, n, r, c.node)) continue;
2431
+ let d = I(a, o, c.transform);
1910
2432
  if (!d) continue;
1911
2433
  if (c.node.type === "customDraw") {
1912
- let { width: e, height: t } = K(c.node);
2434
+ let { width: e, height: t } = V(c.node);
1913
2435
  if (d.x < 0 || d.x > e || d.y < 0 || d.y > t) continue;
1914
2436
  let n = c.node.props.hitTest;
1915
2437
  if (typeof n == "function" && !n(d.x, d.y, {
@@ -1924,8 +2446,8 @@ function Z(e, t, n, r) {
1924
2446
  }
1925
2447
  if (c.node.type === "canvasView") {
1926
2448
  let e = c.node.props.source;
1927
- if (!Dt(e) || !e.width || !e.height) continue;
1928
- let { width: t, height: n } = K(c.node);
2449
+ if (!Xt(e) || !e.width || !e.height) continue;
2450
+ let { width: t, height: n } = V(c.node);
1929
2451
  if (d.x < 0 || d.x > t || d.y < 0 || d.y > n) continue;
1930
2452
  if ((c.node.props.fit ?? "contain") === "contain") {
1931
2453
  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;
@@ -1979,7 +2501,7 @@ function Z(e, t, n, r) {
1979
2501
  };
1980
2502
  continue;
1981
2503
  }
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;
2504
+ let { width: f, height: p } = V(c.node), m = c.node.type === "dropdown" && c.node.props.open ? k(c.node.props.options).length * p : 0;
1983
2505
  if (d.x >= 0 && d.x <= f && d.y >= 0 && d.y <= p + m) return {
1984
2506
  node: c.node,
1985
2507
  x: d.x,
@@ -1988,17 +2510,17 @@ function Z(e, t, n, r) {
1988
2510
  }
1989
2511
  return null;
1990
2512
  }
1991
- function an(e, t, n, r) {
2513
+ function $n(e, t, n, r) {
1992
2514
  let i = [], a = [];
1993
2515
  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);
2516
+ e.type === "dialog" && e.props.open === !0 && Jt(e) && a.push(e), e.type === "carousel" && Jt(e) && i.push(e);
1995
2517
  });
1996
2518
  let o = a[a.length - 1];
1997
2519
  for (let a of i.reverse()) {
1998
- if (o && !W(a, o)) continue;
1999
- let i = X(e, t, n, r, a);
2520
+ if (o && !z(a, o)) continue;
2521
+ let i = J(e, t, n, r, a);
2000
2522
  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);
2523
+ 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 = it(a.props, i.x, i.y, l, d, s, c);
2002
2524
  if (f !== void 0) return {
2003
2525
  node: a,
2004
2526
  index: f
@@ -2006,16 +2528,16 @@ function an(e, t, n, r) {
2006
2528
  }
2007
2529
  return null;
2008
2530
  }
2009
- function on(e, t, n, r) {
2531
+ function er(e, t, n, r) {
2010
2532
  let i = [];
2011
2533
  e.scene.traverse((e) => {
2012
2534
  e.type === "grid" && typeof e.props.height == "number" && i.push(e);
2013
2535
  });
2014
2536
  for (let a of i.reverse()) {
2015
- if (!rn(e, t, n, r, a)) continue;
2016
- let i = X(e, t, n, r, a);
2537
+ if (!Zn(e, t, n, r, a)) continue;
2538
+ let i = J(e, t, n, r, a);
2017
2539
  if (!i) continue;
2018
- let o = Ht(a.props);
2540
+ let o = gn(a.props);
2019
2541
  if (!(o.maxScroll <= 0 || i.x < o.trackX || i.x > o.width || i.y < o.thumbY || i.y > o.thumbY + o.thumbHeight)) return {
2020
2542
  node: a,
2021
2543
  pointerY: i.y,
@@ -2025,10 +2547,10 @@ function on(e, t, n, r) {
2025
2547
  return null;
2026
2548
  }
2027
2549
  // tools/angular-build/.stage/angular-compiled/engine/events.js
2028
- function sn(e, t, n, r, i) {
2550
+ function tr(e, t, n, r, i) {
2029
2551
  e.onEvent?.({
2030
2552
  type: t,
2031
- target: r ? Et(r.node) : null,
2553
+ target: r ? Yt(r.node) : null,
2032
2554
  x: i.x,
2033
2555
  y: i.y,
2034
2556
  localX: r?.x,
@@ -2036,10 +2558,10 @@ function sn(e, t, n, r, i) {
2036
2558
  pointerId: n.pointerId
2037
2559
  });
2038
2560
  }
2039
- function Q(e, t, n, r, i) {
2561
+ function nr(e, t, n, r, i) {
2040
2562
  let a = t.props.source;
2041
- if (!Dt(a)) return;
2042
- let { width: o, height: s } = K(t);
2563
+ if (!Xt(a)) return;
2564
+ let { width: o, height: s } = V(t);
2043
2565
  if (!o || !s || !a.width || !a.height) return;
2044
2566
  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
2567
  typeof g == "function" && g({
@@ -2060,109 +2582,138 @@ function Q(e, t, n, r, i) {
2060
2582
  });
2061
2583
  }
2062
2584
  // 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 ? {
2585
+ function rr(e, t, n) {
2586
+ let r = $n(e, n.currentTarget, n.clientX, n.clientY), i = er(e, n.currentTarget, n.clientX, n.clientY), a = r?.node ?? i?.node, o = a ? J(e, n.currentTarget, n.clientX, n.clientY, a) : null, s = a ? {
2065
2587
  node: a,
2066
2588
  x: o?.x ?? 0,
2067
2589
  y: o?.y ?? 0
2068
- } : Z(e, n.currentTarget, n.clientX, n.clientY), c = Y(e, n.currentTarget, n.clientX, n.clientY);
2590
+ } : Qn(e, n.currentTarget, n.clientX, n.clientY), c = q(e, n.currentTarget, n.clientX, n.clientY);
2069
2591
  if (c && (t.pointerSequences.set(n.pointerId, {
2070
2592
  target: s?.node ?? null,
2071
2593
  x: c.x,
2072
2594
  y: c.y,
2073
2595
  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();
2596
+ }), tr(e, "pointerdown", n, s, c), s?.node.type === "canvasView" && nr("pointerdown", s.node, s.x, s.y, n)), n.pointerType === "touch") {
2597
+ let e = s?.node.type === "video" && s.node.props.controls === !0 && s.node.props.controlsOnHover === !0 && !s.node.props.disabled ? s.node : null;
2598
+ if (e !== t.hoveredVideo) {
2599
+ if (Y(t, e), e) {
2600
+ n.preventDefault();
2601
+ return;
2602
+ }
2603
+ } else if (e && !St(hr(t, e), s?.x ?? 0, s?.y ?? 0)) {
2604
+ Y(t, null), n.preventDefault();
2605
+ return;
2606
+ }
2607
+ } else t.activeVideo || or(t, s?.node ?? null);
2608
+ if (r) {
2609
+ bn(e, t, r.node, r.index), n.currentTarget.setPointerCapture(n.pointerId), n.preventDefault();
2076
2610
  return;
2077
2611
  }
2078
2612
  if (i) {
2079
2613
  t.activeGridScroll = i, n.currentTarget.setPointerCapture(n.pointerId), n.preventDefault();
2080
2614
  return;
2081
2615
  }
2082
- if (gn(e.scene, s?.node), !s || s.node.props.disabled) return;
2616
+ if (pr(e.scene, s?.node), !s || s.node.props.disabled) return;
2083
2617
  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);
2618
+ if (l.type === "slider") t.activeSlider = l, mr(l, d);
2619
+ else if (l.type === "video" && l.props.controls === !0) {
2620
+ let n = St(hr(t, l), d, f);
2621
+ if (n === "play") gr(t, l);
2622
+ else if (n === "fullscreen") {
2623
+ let e = t.videoElements.get(l);
2624
+ e && an(e, l);
2625
+ } else if (n === "track") t.activeVideo = l, _r(e, t, l, d);
2626
+ else return;
2627
+ } else if (l.type === "switch") ut(l);
2086
2628
  else if (l.type === "radio") {
2087
- let e = We(l.props, d, f), t = e && !e.disabled ? Ge(l.props.value, e) : void 0;
2629
+ let e = Je(l.props, d, f), t = e && !e.disabled ? Ye(l.props.value, e) : void 0;
2088
2630
  if (t === void 0) return;
2089
2631
  l.props._controlledValue !== !0 && l.setProps({ value: t }), l.props.onChange?.(t);
2090
2632
  } else if (l.type === "checkbox") {
2091
- let e = We(l.props, d, f);
2633
+ let e = Je(l.props, d, f);
2092
2634
  if (!e || e.disabled) return;
2093
- let t = Ke(l.props.value, e);
2635
+ let t = Xe(l.props.value, e);
2094
2636
  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);
2637
+ } else if (l.type === "upload") {
2638
+ let t = Xn(l, d, f);
2639
+ t === void 0 ? f <= u(l.props.height, 40) && Jn(l, e) : Yn(l, e, t);
2640
+ } else if (l.type === "button") t.activeButton = l, fe(l, !0);
2097
2641
  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));
2642
+ let n = Ft(l.children.filter((e) => e.type === "tabItem"), d, f, u(l.props.width, 300), u(l.props.headerHeight, 40));
2099
2643
  if (n === void 0) return;
2100
- pn(e, t, l, n);
2644
+ ur(e, t, l, n);
2101
2645
  } else if (l.type === "collapse") {
2102
2646
  let n = u(l.props.headerHeight, 40), r = [...l.children].reverse().find((e) => {
2103
2647
  let t = u(e.props.y, 0);
2104
2648
  return f >= t && f <= t + n;
2105
2649
  });
2106
- if (r && !r.props.disabled && typeof r.props.id == "string") mn(e, t, l, r);
2650
+ if (r && !r.props.disabled && typeof r.props.id == "string") dr(e, t, l, r);
2107
2651
  else return;
2108
2652
  } else if (l.type === "dialog") {
2109
- hn(l, d, f), n.preventDefault();
2653
+ fr(l, d, f), n.preventDefault();
2110
2654
  return;
2111
2655
  } else if (l.type === "dropdown") {
2112
2656
  let e = u(l.props.height, 36);
2113
2657
  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 });
2658
+ let t = Math.floor(f / e) - 1, n = Oe(l.props.options, t);
2659
+ f >= e && n && !n.disabled ? ke(l, n) : l.setProps({ open: !1 });
2116
2660
  } else l.setProps({ open: !0 });
2117
2661
  } else if (l.type !== "customDraw" && l.type !== "canvasView" && l.type !== "text" && l.type !== "image" && l.type !== "icon") return;
2118
2662
  n.currentTarget.setPointerCapture(n.pointerId), n.preventDefault();
2119
2663
  }
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);
2664
+ function ir(e, t, n) {
2665
+ let r = Qn(e, n.currentTarget, n.clientX, n.clientY);
2666
+ n.pointerType !== "touch" && !t.activeVideo && or(t, r?.node ?? null);
2667
+ let i = q(e, n.currentTarget, n.clientX, n.clientY);
2668
+ i && tr(e, "pointermove", n, r, i);
2123
2669
  let a = t.pointerSequences.get(n.pointerId), o = a?.target?.type === "canvasView" ? a.target : r?.node.type === "canvasView" ? r.node : null;
2124
2670
  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);
2671
+ let t = o === r?.node ? r : J(e, n.currentTarget, n.clientX, n.clientY, o);
2672
+ t && nr("pointermove", o, t.x, t.y, n);
2127
2673
  }
2128
2674
  if (t.activeGridScroll) {
2129
- let r = t.activeGridScroll, i = X(e, n.currentTarget, n.clientX, n.clientY, r.node);
2675
+ let r = t.activeGridScroll, i = J(e, n.currentTarget, n.clientX, n.clientY, r.node);
2130
2676
  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);
2677
+ let n = gn(r.node.props), a = n.height - n.thumbHeight;
2678
+ a > 0 && lr(e, t, r.node, r.scrollTop + (i.y - r.pointerY) * n.maxScroll / a);
2133
2679
  }
2134
2680
  return;
2135
2681
  }
2682
+ if (t.activeVideo) {
2683
+ let r = t.activeVideo, i = J(e, n.currentTarget, n.clientX, n.clientY, r);
2684
+ i && _r(e, t, r, i.x);
2685
+ return;
2686
+ }
2136
2687
  if (!t.activeSlider) return;
2137
- let s = X(e, n.currentTarget, n.clientX, n.clientY, t.activeSlider);
2138
- s && _n(t.activeSlider, s.x);
2688
+ let s = J(e, n.currentTarget, n.clientX, n.clientY, t.activeSlider);
2689
+ s && mr(t.activeSlider, s.x);
2139
2690
  }
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);
2691
+ function ar(e, t, n, r = !1) {
2692
+ let i = r ? null : Qn(e, n.currentTarget, n.clientX, n.clientY), a = q(e, n.currentTarget, n.clientX, n.clientY), o = t.pointerSequences.get(n.pointerId);
2142
2693
  if (t.pointerSequences.delete(n.pointerId), a) {
2143
- sn(e, r ? "pointercancel" : "pointerup", n, i, a);
2694
+ tr(e, r ? "pointercancel" : "pointerup", n, i, a);
2144
2695
  let t = o?.target?.type === "canvasView" ? o.target : i?.node.type === "canvasView" ? i.node : null;
2145
2696
  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);
2697
+ let i = J(e, n.currentTarget, n.clientX, n.clientY, t);
2698
+ i && nr(r ? "pointercancel" : "pointerup", t, i.x, i.y, n);
2148
2699
  }
2149
2700
  if (!r && o?.eligible && o.target === (i?.node ?? null) && Math.hypot(a.x - o.x, a.y - o.y) <= 8) {
2150
2701
  if (e.onEvent?.({
2151
2702
  type: "click",
2152
- target: i ? Et(i.node) : null,
2703
+ target: i ? Yt(i.node) : null,
2153
2704
  x: a.x,
2154
2705
  y: a.y,
2155
2706
  localX: i?.x,
2156
2707
  localY: i?.y,
2157
2708
  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")) {
2709
+ }), i?.node.type === "canvasView" && nr("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
2710
  let e = i.node.props.onClick;
2160
2711
  typeof e == "function" && e();
2161
2712
  }
2162
2713
  if (i?.node.type === "customDraw") {
2163
2714
  let e = i.node.props.onClick;
2164
2715
  if (typeof e == "function") {
2165
- let t = K(i.node);
2716
+ let t = V(i.node);
2166
2717
  e({
2167
2718
  x: i.x,
2168
2719
  y: i.y,
@@ -2176,17 +2727,34 @@ function un(e, t, n, r = !1) {
2176
2727
  }
2177
2728
  }
2178
2729
  }
2179
- if (t.activeSlider = null, t.activeGridScroll = null, t.activeButton) {
2730
+ if (t.activeVideo) {
2731
+ let n = t.activeVideo;
2732
+ r ? n.setProps({ _videoScrubRatio: void 0 }) : vr(e, t, n);
2733
+ }
2734
+ if (t.activeSlider = null, t.activeVideo = null, t.activeGridScroll = null, n.pointerType !== "touch") {
2735
+ let e = n.currentTarget.getBoundingClientRect();
2736
+ or(t, !r && n.clientX >= e.left && n.clientX <= e.left + e.width && n.clientY >= e.top && n.clientY <= e.top + e.height ? i?.node ?? null : null);
2737
+ }
2738
+ if (t.activeButton) {
2180
2739
  let e = t.activeButton;
2181
- ue(e, !1), i?.node === e && de(e), t.activeButton = null;
2740
+ fe(e, !1), i?.node === e && pe(e), t.activeButton = null;
2182
2741
  }
2183
2742
  n.currentTarget.hasPointerCapture(n.pointerId) && n.currentTarget.releasePointerCapture(n.pointerId);
2184
2743
  }
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);
2744
+ function Y(e, t) {
2745
+ e.hoveredVideo !== t && (e.hoveredVideo?.setProps({ _videoControlsVisible: !1 }), e.hoveredVideo = t, t?.setProps({ _videoControlsVisible: !0 }));
2746
+ }
2747
+ function or(e, t) {
2748
+ Y(e, t?.type === "video" && t.props.controls === !0 && t.props.controlsOnHover === !0 && t.props.disabled !== !0 ? t : null);
2749
+ }
2750
+ function sr(e, t) {
2751
+ t !== "touch" && !e.activeVideo && Y(e, null);
2752
+ }
2753
+ function cr(e, t, n) {
2754
+ let r = Qn(e, n.currentTarget, n.clientX, n.clientY), i = q(e, n.currentTarget, n.clientX, n.clientY);
2187
2755
  i && e.onEvent?.({
2188
2756
  type: "wheel",
2189
- target: r ? Et(r.node) : null,
2757
+ target: r ? Yt(r.node) : null,
2190
2758
  x: i.x,
2191
2759
  y: i.y,
2192
2760
  localX: r?.x,
@@ -2196,29 +2764,29 @@ function dn(e, t, n) {
2196
2764
  let a = r?.node ?? null;
2197
2765
  for (; a && a.type !== "grid";) a = a.parent;
2198
2766
  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);
2767
+ let o = J(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
2768
  if (!o || o.x < 0 || o.x > s || o.y < 0 || o.y > c || l <= c) return;
2201
2769
  let d = n.currentTarget.getBoundingClientRect();
2202
2770
  if (!d.height) return;
2203
- let [f, p, m, h] = U(a), g = f * h - p * m;
2771
+ let [f, p, m, h] = L(a), g = f * h - p * m;
2204
2772
  if (!g) return;
2205
2773
  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();
2774
+ lr(e, t, a, v), n.preventDefault();
2207
2775
  }
2208
- function fn(e, t, n, r) {
2776
+ function lr(e, t, n, r) {
2209
2777
  let i = Math.max(0, u(n.props._gridContentHeight, 0) - u(n.props.height, 0)), a = Math.max(0, Math.min(i, r));
2210
2778
  if (a === n.props._scrollTop) return !1;
2211
2779
  n.setProps({ _scrollTop: a });
2212
2780
  let o = String(n.props._gridStateKey ?? "");
2213
2781
  if (t.gridScrollPositions.set(o, a), n.props.virtual === !0) return e.refreshVirtualGrids(), n.props.onScroll?.(a), !0;
2214
2782
  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 = {
2783
+ for (let e of t.textControls.values()) z(e.node, n) && (e.layout = {
2216
2784
  ...e.layout,
2217
- transform: U(e.node)
2785
+ transform: L(e.node)
2218
2786
  });
2219
- return q(e, t), n.props.onScroll?.(a), !0;
2787
+ return U(e, t), n.props.onScroll?.(a), !0;
2220
2788
  }
2221
- function pn(e, t, n, r) {
2789
+ function ur(e, t, n, r) {
2222
2790
  let i = String(n.props._stateKey ?? "");
2223
2791
  n.props.activeKey === void 0 && (t.tabSelections.set(i, r), n.setProps({
2224
2792
  _activeKey: r,
@@ -2228,14 +2796,14 @@ function pn(e, t, n, r) {
2228
2796
  selected: e.props.id === r
2229
2797
  }))
2230
2798
  }), n.children.forEach((e) => {
2231
- e.type === "tabItem" && G(e, e.props.id === r);
2232
- }), q(e, t)), n.props.onChange?.(r);
2799
+ e.type === "tabItem" && B(e, e.props.id === r);
2800
+ }), U(e, t)), n.props.onChange?.(r);
2233
2801
  }
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]);
2802
+ function dr(e, t, n, r) {
2803
+ let i = String(n.props._stateKey ?? ""), a = new Set(Array.isArray(n.props._activeKeys) ? n.props._activeKeys.filter((e) => typeof e == "string") : Vn(t, i, n.props)), o = String(r.props.id), s = Ce([...a], o, !!n.props.accordion);
2804
+ a.clear(), s.forEach((e) => a.add(e)), n.props.activeKeys === void 0 && (t.collapseSelections.set(i, a), n.setProps({ _activeKeys: [...a] }), Hn(n, a), U(e, t)), n.props.onChange?.([...a]);
2237
2805
  }
2238
- function hn(e, t, n) {
2806
+ function fr(e, t, n) {
2239
2807
  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
2808
  if (!l && e.props.closeOnBackdrop !== !1) {
2241
2809
  e.props.onCancel?.();
@@ -2244,23 +2812,249 @@ function hn(e, t, n) {
2244
2812
  let d = o + i - 44;
2245
2813
  !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
2814
  }
2247
- function gn(e, t) {
2815
+ function pr(e, t) {
2248
2816
  e.traverse((e) => {
2249
2817
  e !== t && e.type === "dropdown" && e.props.open && e.setProps({ open: !1 });
2250
2818
  });
2251
2819
  }
2252
- function _n(e, t) {
2253
- let { width: n } = K(e), r = rt(e.props, n, t);
2820
+ function mr(e, t) {
2821
+ let { width: n } = V(e), r = ct(e.props, n, t);
2254
2822
  r !== void 0 && e.props.value !== r && (e.setProps({ value: r }), e.props.onChange?.(r));
2255
2823
  }
2824
+ function hr(e, t) {
2825
+ let { width: n, height: r } = V(t), i = e.videoElements.get(t)?.video, a = typeof t.props._videoScrubRatio == "number" ? t.props._videoScrubRatio : null;
2826
+ return xt(n, r, C(`${bt(a === null ? i?.currentTime ?? 0 : (i?.duration ?? 0) * a)} / ${bt(i?.duration ?? 0)}`, _t));
2827
+ }
2828
+ function gr(e, t) {
2829
+ let n = e.videoElements.get(t);
2830
+ n && (wt(n.video, t.props.onPausedChange), t.setProps({ paused: n.video.paused }));
2831
+ }
2832
+ function _r(e, t, n, r) {
2833
+ let i = Ct(hr(t, n), r);
2834
+ n.setProps({ _videoScrubRatio: i }), e.scene.markDirty();
2835
+ }
2836
+ function vr(e, t, n) {
2837
+ let r = n.props._videoScrubRatio;
2838
+ if (typeof r != "number") return;
2839
+ n.setProps({
2840
+ _videoScrubRatio: void 0,
2841
+ currentTime: void 0
2842
+ });
2843
+ let i = t.videoElements.get(n);
2844
+ i && (Tt(i.video, r, n.props.onSeek, () => {
2845
+ i.captureFrame(), n.props._videoFrame = i.frame;
2846
+ }), e.scene.markDirty());
2847
+ }
2848
+ // tools/angular-build/.stage/angular-compiled/engine/accessibility.js
2849
+ var yr = /* @__PURE__ */ new WeakMap(), br = 0;
2850
+ function xr(e) {
2851
+ let t = yr.get(e);
2852
+ return t || (t = `canvas-control-${++br}`, yr.set(e, t)), t;
2853
+ }
2854
+ function X(e, t) {
2855
+ return typeof e.props.ariaLabel == "string" && e.props.ariaLabel.trim() ? e.props.ariaLabel : t;
2856
+ }
2857
+ function Z(e) {
2858
+ return typeof e.props._formError == "string" && e.props._formError ? e.props._formError : void 0;
2859
+ }
2860
+ function Q(e, t) {
2861
+ return H(e, {
2862
+ ...V(e),
2863
+ transform: L(e),
2864
+ visible: !0
2865
+ }, t);
2866
+ }
2867
+ function Sr(e, t) {
2868
+ let n = e.scene, r = R(n), i = [], a = [], o = (e) => {
2869
+ e.layout.visible && (i.push(e), a.push(e.id));
2870
+ }, s = (e) => () => {
2871
+ e(), t();
2872
+ };
2873
+ if (n.traverse((n) => {
2874
+ if (!Jt(n)) return;
2875
+ let i = xr(n);
2876
+ if (n.type === "input" || n.type === "textarea" || n.type === "datePicker") {
2877
+ let e = n.props._canvasInputId;
2878
+ typeof e == "string" && Q(n, r).visible && a.push(e);
2879
+ return;
2880
+ }
2881
+ let c = n.props.disabled === !0, l = typeof n.props._formBlur == "function" ? () => {
2882
+ let e = n.props._formBlur;
2883
+ typeof e == "function" && e();
2884
+ } : void 0;
2885
+ if (n.type === "button") o({
2886
+ id: i,
2887
+ kind: "button",
2888
+ label: X(n, String(n.props.text || "Button")),
2889
+ layout: Q(n, r),
2890
+ disabled: c,
2891
+ activate: s(() => pe(n))
2892
+ });
2893
+ else if (n.type === "upload") {
2894
+ let t = u(n.props.width, 120), a = u(n.props.height, 40), d = L(n);
2895
+ o({
2896
+ id: i,
2897
+ kind: "button",
2898
+ label: X(n, String(n.props.text || "Choose File")),
2899
+ layout: H(n, {
2900
+ width: t,
2901
+ height: a,
2902
+ transform: d,
2903
+ visible: !0
2904
+ }, r),
2905
+ disabled: c,
2906
+ error: Z(n) ?? (typeof n.props._uploadError == "string" ? n.props._uploadError : void 0),
2907
+ blur: l,
2908
+ activate: s(() => Jn(n, e))
2909
+ }), (Array.isArray(n.props.value) ? n.props.value : []).forEach((l, u) => o({
2910
+ id: `${i}:remove:${u}`,
2911
+ kind: "button",
2912
+ label: `Remove ${l.name}`,
2913
+ layout: H(n, {
2914
+ width: 24,
2915
+ height: 28,
2916
+ transform: F(d, {
2917
+ x: t - 24,
2918
+ y: a + u * 28
2919
+ }),
2920
+ visible: !0
2921
+ }, r),
2922
+ disabled: c,
2923
+ activate: s(() => Yn(n, e, u))
2924
+ }));
2925
+ } else if (n.type === "switch") o({
2926
+ id: i,
2927
+ kind: "switch",
2928
+ label: X(n, "Switch"),
2929
+ layout: Q(n, r),
2930
+ disabled: c,
2931
+ checked: !!n.props.checked,
2932
+ error: Z(n),
2933
+ blur: l,
2934
+ activate: s(() => {
2935
+ n.props.disabled || ut(n);
2936
+ })
2937
+ });
2938
+ else if (n.type === "radio" || n.type === "checkbox") {
2939
+ let e = Ge(n.props.options), t = n.props.direction !== "vertical", a = u(n.props.gap, 12), d = u(n.props.fontSize, 14), f = u(n.props.optionHeight, 28), p = V(n), m = 0, h = /* @__PURE__ */ new Map();
2940
+ e.forEach((e) => {
2941
+ let u = h.get(e.value) ?? 0;
2942
+ h.set(e.value, u + 1);
2943
+ let g = t ? j(e.label, d) : p.width, _ = H(n, {
2944
+ width: g,
2945
+ height: t ? p.height : f,
2946
+ transform: F(L(n), t ? { x: m } : { y: m }),
2947
+ visible: !0
2948
+ }, r), v = n.props.value;
2949
+ o({
2950
+ id: `${i}:${JSON.stringify(e.value)}:${u}`,
2951
+ kind: n.type === "radio" ? "radio" : "checkbox",
2952
+ label: X(n, "") ? `${X(n, "")}: ${e.label}` : e.label,
2953
+ layout: _,
2954
+ disabled: c || e.disabled === !0,
2955
+ checked: Array.isArray(v) ? v.includes(e.value) : v === e.value,
2956
+ group: i,
2957
+ error: Z(n),
2958
+ blur: l,
2959
+ activate: s(() => {
2960
+ if (n.props.disabled || e.disabled) return;
2961
+ let t = n.type === "radio" ? Ye(n.props.value, e) : Xe(n.props.value, e);
2962
+ if (t === void 0) return;
2963
+ n.props._controlledValue !== !0 && n.setProps({ value: t });
2964
+ let r = n.props.onChange;
2965
+ typeof r == "function" && r(t);
2966
+ })
2967
+ }), m += (t ? g : f) + a;
2968
+ });
2969
+ } else if (n.type === "slider") {
2970
+ let e = u(n.props.min, 0), a = u(n.props.max, 100);
2971
+ o({
2972
+ id: i,
2973
+ kind: "slider",
2974
+ label: X(n, "Slider"),
2975
+ layout: Q(n, r),
2976
+ disabled: c || a <= e,
2977
+ min: e,
2978
+ max: a,
2979
+ step: Math.max(2 ** -52, u(n.props.step, 1)),
2980
+ value: u(n.props.value, e),
2981
+ error: Z(n),
2982
+ blur: l,
2983
+ change: (e) => {
2984
+ let r = Number(e);
2985
+ if (!Number.isFinite(r) || n.props.disabled || n.props.value === r) return;
2986
+ n.setProps({ value: r });
2987
+ let i = n.props.onChange;
2988
+ typeof i == "function" && i(r), t();
2989
+ }
2990
+ });
2991
+ } else n.type === "dropdown" && o({
2992
+ id: i,
2993
+ kind: "select",
2994
+ label: X(n, String(n.props.placeholder || "Select")),
2995
+ layout: Q(n, r),
2996
+ disabled: c,
2997
+ value: String(n.props.value ?? ""),
2998
+ options: k(n.props.options),
2999
+ error: Z(n),
3000
+ blur: l,
3001
+ change: (e) => {
3002
+ if (n.props.disabled) return;
3003
+ let r = k(n.props.options).find((t) => t.value === e);
3004
+ r && !r.disabled && (ke(n, r), t());
3005
+ }
3006
+ });
3007
+ }), r) {
3008
+ let e = u(r.props.width, 420), t = u(r.props.height, 240), n = u(r.props._dialogPanelX, 0), i = u(r.props._dialogPanelY, 0), a = L(r);
3009
+ for (let [c, l, u] of [[
3010
+ "cancel",
3011
+ 196,
3012
+ "Cancel"
3013
+ ], [
3014
+ "confirm",
3015
+ 104,
3016
+ "OK"
3017
+ ]]) o({
3018
+ id: `${xr(r)}-${c}`,
3019
+ kind: "button",
3020
+ label: String(r.props[c === "cancel" ? "cancelText" : "confirmText"] ?? u),
3021
+ layout: {
3022
+ width: 80,
3023
+ height: 32,
3024
+ visible: !0,
3025
+ transform: F(a, {
3026
+ x: n + e - l,
3027
+ y: i + t - 44
3028
+ })
3029
+ },
3030
+ disabled: r.props.disabled === !0,
3031
+ activate: s(() => {
3032
+ let e = r.props[c === "cancel" ? "onCancel" : "onConfirm"];
3033
+ typeof e == "function" && e();
3034
+ })
3035
+ });
3036
+ }
3037
+ return {
3038
+ controls: i,
3039
+ order: a,
3040
+ dialog: r ? {
3041
+ id: xr(r),
3042
+ label: X(r, String(r.props.title ?? "Dialog")),
3043
+ cancel: () => {
3044
+ let e = r.props.onCancel;
3045
+ typeof e == "function" && e(), t();
3046
+ }
3047
+ } : void 0
3048
+ };
3049
+ }
2256
3050
  // tools/angular-build/.stage/angular-compiled/engine/state.js
2257
- var vn = class {
3051
+ var Cr = class {
2258
3052
  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;
3053
+ this.textControls = /* @__PURE__ */ new Map(), this.inputValues = /* @__PURE__ */ new Map(), this.imageSubscriptions = /* @__PURE__ */ new Map(), this.videoElements = /* @__PURE__ */ new Map(), this.videoFrames = /* @__PURE__ */ new Map(), this.videoNodes = [], 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.forms = /* @__PURE__ */ new Map(), this.activeFormKeys = /* @__PURE__ */ new Set(), this.pointerSequences = /* @__PURE__ */ new Map(), this.activeSlider = null, this.activeButton = null, this.activeGridScroll = null, this.activeVideo = null, this.hoveredVideo = null, this.currentFrameTime = 0;
2260
3054
  }
2261
- }, yn = class {
3055
+ }, wr = class {
2262
3056
  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 = {
3057
+ this.scene = new c("root"), this.renderer = new Wt(), this.state = new Cr(), this.animationFrame = null, this.themeObserver = null, this.running = !1, this.tree = [], this.context = e, this.core = {
2264
3058
  scene: this.scene,
2265
3059
  renderer: this.renderer,
2266
3060
  context: e,
@@ -2278,14 +3072,24 @@ var vn = class {
2278
3072
  }
2279
3073
  reconcile() {
2280
3074
  let e = [];
2281
- this.state.activeVirtualGridKeys.clear();
2282
- let t = nn(this.core, this.state, this.tree, B, !0, "root", e);
3075
+ this.state.activeVirtualGridKeys.clear(), this.state.activeFormKeys.clear();
3076
+ let t = Wn(this.core, this.state, this.tree, P, !0, "root", e);
2283
3077
  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);
3078
+ for (let e of this.state.forms.keys()) if (!this.state.activeFormKeys.has(e)) {
3079
+ let t = this.state.forms.get(e);
3080
+ t && Tn(t), this.state.forms.delete(e);
3081
+ }
3082
+ for (let e of this.state.forms.values()) e.attachedController !== e.controller && Tn(e);
3083
+ this.state.forms.forEach(En), this.scene.syncChildren(t, (e) => nn(this.state, e));
3084
+ let n = R(this.scene);
3085
+ this.core.inputBridge.prepareAccessibility?.(n ? xr(n) : void 0), tn(this.core, this.state, e), rn(this.core, this.state, t), on(this.core, this.state), this.syncAccessibility();
2285
3086
  }
2286
3087
  render() {
2287
3088
  this.renderer.render(this.context, this.scene);
2288
3089
  }
3090
+ syncAccessibility() {
3091
+ this.core.inputBridge.syncAccessibility?.(Sr(this.core, () => this.syncAccessibility()));
3092
+ }
2289
3093
  requestRender() {
2290
3094
  this.renderer.invalidateGridCache(), this.scene.markDirty();
2291
3095
  }
@@ -2298,7 +3102,7 @@ var vn = class {
2298
3102
  let e = this.context.canvas.ownerDocument.defaultView?.MutationObserver;
2299
3103
  if (e) {
2300
3104
  this.themeObserver = new e(() => {
2301
- se(), this.renderer.invalidateGridCache(), this.scene.markDirty();
3105
+ le(), this.renderer.invalidateGridCache(), this.scene.markDirty();
2302
3106
  });
2303
3107
  let t = this.context.canvas;
2304
3108
  for (; t;) this.themeObserver.observe(t, {
@@ -2307,33 +3111,36 @@ var vn = class {
2307
3111
  }), t = t.parentElement;
2308
3112
  }
2309
3113
  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)));
3114
+ this.running && (xn(this.core, this.state, e) && this.syncAccessibility(), sn(this.core, this.state), this.scene.dirty && this.render(), this.core.onFrame?.(e), this.running && (this.animationFrame = requestAnimationFrame(t)));
2311
3115
  };
2312
3116
  this.animationFrame = requestAnimationFrame(t);
2313
3117
  }
2314
3118
  pointerDown(e) {
2315
- cn(this.core, this.state, e);
3119
+ rr(this.core, this.state, e), this.syncAccessibility();
2316
3120
  }
2317
3121
  pointerMove(e) {
2318
- ln(this.core, this.state, e);
3122
+ ir(this.core, this.state, e), (this.state.activeSlider || this.state.activeGridScroll) && this.syncAccessibility();
3123
+ }
3124
+ pointerLeave(e) {
3125
+ sr(this.state, e);
2319
3126
  }
2320
3127
  pointerUp(e, t = !1) {
2321
- un(this.core, this.state, e, t);
3128
+ ar(this.core, this.state, e, t), this.syncAccessibility();
2322
3129
  }
2323
3130
  wheel(e) {
2324
- dn(this.core, this.state, e);
3131
+ cr(this.core, this.state, e), this.syncAccessibility();
2325
3132
  }
2326
3133
  destroy() {
2327
3134
  this.running = !1, this.animationFrame !== null && cancelAnimationFrame(this.animationFrame), this.animationFrame = null, this.themeObserver?.disconnect(), this.themeObserver = null;
2328
3135
  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();
3136
+ this.state.textControls.clear(), this.state.inputValues.clear(), this.state.imageSubscriptions.forEach((e) => e()), this.state.imageSubscriptions.clear(), this.state.videoElements.forEach((e) => e.dispose()), this.state.videoElements.clear(), this.state.videoFrames.clear(), this.state.videoNodes.length = 0, 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.state.forms.forEach(Tn), this.state.forms.clear(), this.tree = [], this.state.pointerSequences.clear(), this.state.activeSlider = null, this.state.activeButton = null, this.state.activeGridScroll = null, this.state.activeVideo = null, this.state.hoveredVideo = null, this.core.inputBridge.destroy();
2330
3137
  }
2331
3138
  };
2332
3139
  // tools/angular-build/.stage/angular-compiled/canvas-handle.js
2333
- function bn() {
3140
+ function Tr() {
2334
3141
  return Math.max(1, window.devicePixelRatio || 1);
2335
3142
  }
2336
- function xn(e = {}, t) {
3143
+ function Er(e = {}, t) {
2337
3144
  return typeof e == "string" ? {
2338
3145
  type: e,
2339
3146
  quality: t
@@ -2342,25 +3149,25 @@ function xn(e = {}, t) {
2342
3149
  type: e.type ?? "image/png"
2343
3150
  };
2344
3151
  }
2345
- function Sn(e, t, n) {
3152
+ function Dr(e, t, n) {
2346
3153
  try {
2347
3154
  return e.toDataURL(t, n);
2348
3155
  } catch (e) {
2349
- throw Tn(e) ? En() : e;
3156
+ throw Ar(e) ? jr() : e;
2350
3157
  }
2351
3158
  }
2352
- function Cn(e, t, n) {
3159
+ function Or(e, t, n) {
2353
3160
  return new Promise((r, i) => {
2354
3161
  try {
2355
3162
  e.toBlob((e) => {
2356
3163
  e ? r(e) : i(/* @__PURE__ */ Error("Canvas image export failed."));
2357
3164
  }, t, n);
2358
3165
  } catch (e) {
2359
- i(Tn(e) ? En() : e);
3166
+ i(Ar(e) ? jr() : e);
2360
3167
  }
2361
3168
  });
2362
3169
  }
2363
- function wn(e, t, n, r) {
3170
+ function kr(e, t, n, r) {
2364
3171
  let i = n.pixelRatio ?? r;
2365
3172
  if (!Number.isFinite(i) || i <= 0) throw RangeError("Export pixelRatio must be a positive finite number.");
2366
3173
  let a = n.width ?? e.width / r, o = n.height ?? e.height / r;
@@ -2371,14 +3178,15 @@ function wn(e, t, n, r) {
2371
3178
  if (!c) throw Error("Canvas 2D context is not available for image export.");
2372
3179
  return t ? t.renderTo(c, s.width / a, s.height / o) : c.drawImage(e, 0, 0, s.width, s.height), s;
2373
3180
  }
2374
- function Tn(e) {
3181
+ function Ar(e) {
2375
3182
  return typeof e == "object" && !!e && "name" in e && e.name === "SecurityError";
2376
3183
  }
2377
- function En() {
3184
+ function jr() {
2378
3185
  return /* @__PURE__ */ Error("Canvas 导出失败:画布包含未授权跨域读取的图片。请配置图片服务器 CORS(Access-Control-Allow-Origin),或移除该跨域图片后重试。");
2379
3186
  }
2380
3187
  // tools/angular-build/.stage/angular-compiled/input-bridge.js
2381
- function Dn(e, t) {
3188
+ var Mr = 0;
3189
+ function Nr(e, t) {
2382
3190
  let n = "padding" in e && typeof e.padding == "number" ? e.padding : 8, r = typeof e.fontSize == "number" ? e.fontSize : 14;
2383
3191
  return {
2384
3192
  fontFamily: ("fontFamily" in e && typeof e.fontFamily == "string" ? e.fontFamily : "") || "sans-serif",
@@ -2397,9 +3205,20 @@ function Dn(e, t) {
2397
3205
  } : {}
2398
3206
  };
2399
3207
  }
2400
- var On = class {
3208
+ var Pr = class {
2401
3209
  constructor(e) {
2402
- this.mounted = /* @__PURE__ */ new Map(), this.fileInputs = /* @__PURE__ */ new Set(), this.overlayHidden = !1, this.selectionTracked = 0, this.handleInput = (e) => {
3210
+ this.mounted = /* @__PURE__ */ new Map(), this.accessible = /* @__PURE__ */ new Map(), this.errors = /* @__PURE__ */ new Map(), this.fileInputs = /* @__PURE__ */ new Set(), this.overlayHidden = !1, this.selectionTracked = 0, this.dialogElement = null, this.returnFocus = null, this.handleDialogKey = (e) => {
3211
+ if (e.key === "Escape" && !e.defaultPrevented) e.preventDefault(), this.dialogCancel?.();
3212
+ else if (e.key === "Tab") {
3213
+ let t = this.dialogFocusable();
3214
+ if (!t.length) {
3215
+ e.preventDefault(), this.dialogElement?.focus();
3216
+ return;
3217
+ }
3218
+ let n = t.indexOf(this.overlay.ownerDocument.activeElement), r = e.shiftKey ? n <= 0 ? t.length - 1 : n - 1 : n < 0 || n === t.length - 1 ? 0 : n + 1;
3219
+ e.preventDefault(), t[r].focus();
3220
+ }
3221
+ }, this.handleInput = (e) => {
2403
3222
  let t = this.find(e.currentTarget);
2404
3223
  t && t.events.input(t.element.value, t.element.selectionStart ?? t.element.value.length);
2405
3224
  }, this.handleSelection = (e) => {
@@ -2418,7 +3237,7 @@ var On = class {
2418
3237
  mount(e, t, n, r) {
2419
3238
  this.unmount(e);
2420
3239
  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, {
3240
+ return i instanceof HTMLInputElement && (i.autocomplete = "off"), Object.assign(i.style, {
2422
3241
  position: "absolute",
2423
3242
  left: "0",
2424
3243
  top: "0",
@@ -2442,19 +3261,24 @@ var On = class {
2442
3261
  let r = this.mounted.get(e);
2443
3262
  if (!r) return;
2444
3263
  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, {
3264
+ i instanceof HTMLInputElement && (i.type = e.startsWith("datePicker:") ? "date" : "type" in t ? t.type ?? "text" : "text"), i.placeholder = t.placeholder ?? "", i.setAttribute("aria-label", t.ariaLabel || t.placeholder || "Canvas input");
3265
+ let o = "_formError" in t && typeof t._formError == "string" ? t._formError : void 0;
3266
+ this.setError(e, i, o);
3267
+ let s = this.errors.get(e);
3268
+ s && (s.hidden = !n.visible), i.disabled = t.disabled ?? !1;
3269
+ let c = "maxLength" in t ? t.maxLength : void 0;
3270
+ typeof c == "number" && Number.isInteger(c) && c >= 0 ? i.maxLength = c : i.removeAttribute("maxLength"), i.value !== a && (i.value = a);
3271
+ let l = i instanceof HTMLTextAreaElement;
3272
+ !n.visible && i === this.overlay.ownerDocument.activeElement && i.blur(), Object.assign(i.style, {
2450
3273
  display: n.visible ? "block" : "none",
2451
3274
  width: `${n.width}px`,
2452
3275
  height: `${n.height}px`,
2453
3276
  transform: `matrix(${n.transform.join(",")})`,
3277
+ clipPath: n.clipPath ?? "",
2454
3278
  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));
3279
+ whiteSpace: l ? "pre-wrap" : "normal",
3280
+ ...Nr(t, l)
3281
+ }), l && (i.wrap = "soft", r.events.scroll(i.scrollTop, i.scrollHeight, i.clientHeight, i.clientWidth));
2458
3282
  }
2459
3283
  pickFiles(e, t, n) {
2460
3284
  let r = document.createElement("input");
@@ -2486,16 +3310,161 @@ var On = class {
2486
3310
  let t = this.overlay.ownerDocument.activeElement;
2487
3311
  t instanceof HTMLElement && this.overlay.contains(t) && t.blur(), this.overlay.style.display = "none", this.overlayHidden = !0;
2488
3312
  }
3313
+ prepareAccessibility(e) {
3314
+ if (!this.dialogId && e) {
3315
+ let e = this.overlay.ownerDocument.activeElement;
3316
+ this.returnFocus = e instanceof HTMLElement ? e : null, this.returnFocusId = [...this.accessible.entries()].find(([, t]) => t.element === e)?.[0];
3317
+ }
3318
+ }
3319
+ syncAccessibility(e) {
3320
+ let t = this.dialogId, n = e.dialog?.id;
3321
+ if (n && !this.dialogElement) {
3322
+ let e = this.overlay.ownerDocument.createElement("div");
3323
+ e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.tabIndex = -1, Object.assign(e.style, {
3324
+ position: "absolute",
3325
+ inset: "0",
3326
+ pointerEvents: "none"
3327
+ }), e.addEventListener("keydown", this.handleDialogKey), this.overlay.appendChild(e), this.dialogElement = e;
3328
+ }
3329
+ this.dialogElement && e.dialog && (this.dialogElement.setAttribute("aria-label", e.dialog.label), this.dialogCancel = e.dialog.cancel);
3330
+ let r = new Set(e.controls.map((e) => e.id)), i = this.overlay.ownerDocument.activeElement, a = [...this.accessible].find(([e, t]) => e.includes(":remove:") && !r.has(e) && t.element === i)?.[0].split(":remove:")[0];
3331
+ for (let [e, t] of this.accessible) r.has(e) || (t.element.remove(), t.ring.remove(), this.removeError(e), this.accessible.delete(e));
3332
+ for (let t of e.controls) this.updateAccessible(t);
3333
+ let o = n ? this.dialogElement : this.overlay;
3334
+ if (!o) return;
3335
+ if (!n && this.dialogElement) {
3336
+ for (let e of this.mounted.values()) this.dialogElement.contains(e.element) && this.overlay.appendChild(e.element);
3337
+ for (let e of this.accessible.values()) this.dialogElement.contains(e.element) && this.overlay.appendChild(e.element);
3338
+ }
3339
+ let s = e.order.flatMap((e) => {
3340
+ let t = this.mounted.get(e)?.element ?? this.accessible.get(e)?.element;
3341
+ return t ? [t] : [];
3342
+ }), c = new Set(s), l = null;
3343
+ for (let e of [...s].reverse()) {
3344
+ let t = e.nextElementSibling;
3345
+ for (; t && !c.has(t);) t = t.nextElementSibling;
3346
+ (e.parentElement !== o || t !== l) && o.insertBefore(e, l), l = e;
3347
+ }
3348
+ let u = new Set(e.order);
3349
+ for (let [e, t] of this.errors) {
3350
+ let r = n && u.has(e) ? o : this.overlay;
3351
+ t.parentElement !== r && r.appendChild(t);
3352
+ }
3353
+ if (!n && this.dialogElement && (this.dialogElement.removeEventListener("keydown", this.handleDialogKey), this.dialogElement.remove(), this.dialogElement = null, this.dialogCancel = void 0), this.dialogId = n, n && n !== t) (this.dialogFocusable()[0] ?? this.dialogElement)?.focus();
3354
+ else if (t && !n) {
3355
+ let e = this.returnFocusId ? this.accessible.get(this.returnFocusId)?.element : this.returnFocus;
3356
+ e?.isConnected && e.focus(), this.returnFocus = null, this.returnFocusId = void 0;
3357
+ } else a && this.accessible.get(a)?.element.focus();
3358
+ }
3359
+ updateAccessible(e) {
3360
+ let t = this.accessible.get(e.id);
3361
+ if (t && t.control.kind !== e.kind && (t.element.remove(), t.ring.remove(), this.removeError(e.id), this.accessible.delete(e.id), t = void 0), !t) {
3362
+ let n = this.overlay.ownerDocument, r = e.kind === "button" || e.kind === "switch" ? n.createElement("button") : e.kind === "select" ? n.createElement("select") : n.createElement("input");
3363
+ r instanceof HTMLButtonElement && (r.type = "button"), r instanceof HTMLInputElement && (r.type = e.kind === "slider" ? "range" : e.kind === "radio" ? "radio" : "checkbox");
3364
+ let i = n.createElement("div");
3365
+ i.setAttribute("aria-hidden", "true"), Object.assign(i.style, {
3366
+ position: "absolute",
3367
+ left: "0",
3368
+ top: "0",
3369
+ pointerEvents: "none",
3370
+ outline: "2px solid #1677ff",
3371
+ outlineOffset: "2px",
3372
+ display: "none",
3373
+ transformOrigin: "0 0",
3374
+ boxSizing: "border-box"
3375
+ }), Object.assign(r.style, {
3376
+ position: "absolute",
3377
+ left: "0",
3378
+ top: "0",
3379
+ margin: "0",
3380
+ opacity: "0",
3381
+ pointerEvents: "none",
3382
+ transformOrigin: "0 0",
3383
+ boxSizing: "border-box"
3384
+ });
3385
+ let a = {
3386
+ element: r,
3387
+ ring: i,
3388
+ control: e
3389
+ };
3390
+ r.addEventListener("focus", () => {
3391
+ a.ring.style.display = "block";
3392
+ }), r.addEventListener("blur", () => {
3393
+ a.ring.style.display = "none", a.control.blur?.();
3394
+ }), r.addEventListener("click", () => {
3395
+ (a.control.kind === "button" || a.control.kind === "switch") && a.control.activate?.();
3396
+ }), r.addEventListener("change", () => {
3397
+ a.control.kind === "checkbox" || a.control.kind === "radio" ? a.control.activate?.() : a.control.kind === "select" && a.control.change?.(a.element.value);
3398
+ }), r.addEventListener("input", () => {
3399
+ a.control.kind === "slider" && a.control.change?.(a.element.value);
3400
+ }), this.overlay.appendChild(i), this.overlay.appendChild(r), this.accessible.set(e.id, a), t = a;
3401
+ }
3402
+ t.control = e;
3403
+ let { element: n, ring: r } = t;
3404
+ if (n.setAttribute("aria-label", e.label), n.disabled = e.disabled, e.kind === "switch" && (n.setAttribute("role", "switch"), n.setAttribute("aria-checked", String(!!e.checked))), n instanceof HTMLInputElement && (e.kind === "radio" && (n.name = e.group ?? e.id), (e.kind === "radio" || e.kind === "checkbox") && (n.checked = !!e.checked), e.kind === "slider" && (n.min = String(e.min), n.max = String(e.max), n.step = String(e.step), n.value = String(e.value))), n instanceof HTMLSelectElement) {
3405
+ let t = e.options ?? [], r = JSON.stringify([t, e.label]), i = "__canvas_ui_placeholder__";
3406
+ for (; t.some((e) => e.value === i);) i += "_";
3407
+ if (n.dataset.options !== r) {
3408
+ n.replaceChildren();
3409
+ let a = this.overlay.ownerDocument.createElement("option");
3410
+ a.value = i, a.textContent = e.label, a.disabled = !0, n.appendChild(a);
3411
+ for (let e of t) {
3412
+ let t = this.overlay.ownerDocument.createElement("option");
3413
+ t.value = e.value, t.textContent = e.label, t.disabled = e.disabled === !0, n.appendChild(t);
3414
+ }
3415
+ n.dataset.options = r;
3416
+ }
3417
+ let a = String(e.value ?? "");
3418
+ n.value = t.some((e) => e.value === a) ? a : i;
3419
+ }
3420
+ this.setError(e.id, n, e.error);
3421
+ let { width: i, height: a, transform: o, clipPath: s } = e.layout, c = {
3422
+ width: `${i}px`,
3423
+ height: `${a}px`,
3424
+ transform: `matrix(${o.join(",")})`,
3425
+ clipPath: s ?? ""
3426
+ };
3427
+ Object.assign(n.style, c), Object.assign(r.style, c);
3428
+ }
3429
+ setError(e, t, n) {
3430
+ if (!n) {
3431
+ this.removeError(e), t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby");
3432
+ return;
3433
+ }
3434
+ let r = this.errors.get(e);
3435
+ r || (r = this.overlay.ownerDocument.createElement("span"), r.id = `canvas-ui-error-${++Mr}`, r.setAttribute("aria-live", "polite"), Object.assign(r.style, {
3436
+ position: "absolute",
3437
+ width: "1px",
3438
+ height: "1px",
3439
+ overflow: "hidden",
3440
+ clipPath: "inset(50%)"
3441
+ }), this.overlay.appendChild(r), this.errors.set(e, r)), r.textContent !== n && (r.textContent = n), t.setAttribute("aria-invalid", "true"), t.setAttribute("aria-describedby", r.id);
3442
+ }
3443
+ removeError(e) {
3444
+ this.errors.get(e)?.remove(), this.errors.delete(e);
3445
+ }
3446
+ dialogFocusable() {
3447
+ if (!this.dialogElement) return [];
3448
+ let e = Array.from(this.dialogElement.querySelectorAll("input, textarea, select, button")).filter((e) => !("disabled" in e && e.disabled) && e.style.display !== "none");
3449
+ return e.filter((t) => {
3450
+ if (!(t instanceof HTMLInputElement) || t.type !== "radio") return !0;
3451
+ let n = e.filter((e) => e instanceof HTMLInputElement && e.type === "radio" && e.name === t.name);
3452
+ return t === (n.find((e) => e.checked) ?? n[0]);
3453
+ });
3454
+ }
2489
3455
  unmount(e) {
2490
3456
  let t = this.mounted.get(e);
2491
3457
  if (!t) return;
2492
3458
  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);
3459
+ 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.removeError(e), this.mounted.delete(e);
2494
3460
  }
2495
3461
  destroy() {
2496
3462
  this.setOverlayVisible(!0);
2497
3463
  for (let e of this.mounted.keys()) this.unmount(e);
2498
- this.fileInputs.forEach((e) => e.remove()), this.fileInputs.clear();
3464
+ for (let e of this.accessible.values()) e.element.remove(), e.ring.remove();
3465
+ this.accessible.clear();
3466
+ for (let e of this.errors.keys()) this.removeError(e);
3467
+ this.dialogElement?.removeEventListener("keydown", this.handleDialogKey), this.dialogElement?.remove(), this.dialogElement = null, this.fileInputs.forEach((e) => e.remove()), this.fileInputs.clear();
2499
3468
  }
2500
3469
  find(e) {
2501
3470
  for (let t of this.mounted.values()) if (t.element === e) return t;
@@ -2506,9 +3475,9 @@ var On = class {
2506
3475
  untrackSelections() {
2507
3476
  --this.selectionTracked === 0 && this.overlay.ownerDocument.removeEventListener("selectionchange", this.handleSelectionChange);
2508
3477
  }
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 {
3478
+ }, Fr = Symbol("canvas-ui-angular-node"), Ir = /* @__PURE__ */ "x.y.rotation.scaleX.scaleY.visible.ariaLabel.initialValues.controller.rules.errorY.errorColor.errorFontSize.formAction.onSubmit.onInvalid.onValuesChange.onReset.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.maxSize.onReject.icon.iconSize.activeIndex.defaultActiveIndex.autoplay.interval.transitionDuration.loop.showArrows.showDots.arrowColor.dotColor.activeDotColor.draw.hitTest.name.variant.source.fit.onPointerEvent.muted.paused.currentTime.controls.controlsOnHover.controlsBarColor.controlsColor.controlsTrackColor.onTimeUpdate.onPausedChange.onSeek".split("."), $ = class t {
2510
3479
  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) => {
3480
+ this.marker = "", this.change = new r(), this.reject = 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.pausedChange = new r(), this.seek = new r(), this.click = new r(), this.focus = new r(), this.blur = new r(), this.formSubmit = new r(), this.formInvalid = new r(), this.valuesChange = new r(), this.formReset = new r(), this.dispatchChange = (e) => {
2512
3481
  let t = this.onChange;
2513
3482
  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
3483
  }, this.dispatchClick = (e) => {
@@ -2523,6 +3492,8 @@ var On = class {
2523
3492
  this.onFocus?.(), this.focus.emit();
2524
3493
  }, this.dispatchBlur = () => {
2525
3494
  this.onBlur?.(), this.blur.emit();
3495
+ }, this.dispatchReject = (e) => {
3496
+ this.onReject?.(e), this.reject.emit(e);
2526
3497
  }, this.dispatchConfirm = () => {
2527
3498
  this.onConfirm?.(), this.confirm.emit();
2528
3499
  }, this.dispatchCancel = () => {
@@ -2534,12 +3505,27 @@ var On = class {
2534
3505
  currentTime: e,
2535
3506
  duration: t
2536
3507
  });
2537
- }, e.nativeElement[kn] = this;
3508
+ }, this.dispatchPausedChange = (e) => {
3509
+ this.onPausedChange?.(e), this.pausedChange.emit(e);
3510
+ }, this.dispatchSeek = (e) => {
3511
+ this.onSeek?.(e), this.seek.emit(e);
3512
+ }, this.dispatchFormSubmit = (e) => {
3513
+ this.onSubmit?.(e), this.formSubmit.emit(e);
3514
+ }, this.dispatchFormInvalid = (e, t) => {
3515
+ this.onInvalid?.(e, t), this.formInvalid.emit({
3516
+ errors: e,
3517
+ values: t
3518
+ });
3519
+ }, this.dispatchValuesChange = (e) => {
3520
+ this.onValuesChange?.(e), this.valuesChange.emit(e);
3521
+ }, this.dispatchFormReset = () => {
3522
+ this.onReset?.(), this.formReset.emit();
3523
+ }, e.nativeElement[Fr] = this;
2538
3524
  }
2539
3525
  getProps() {
2540
3526
  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;
3527
+ for (let n of Ir) t[n] !== void 0 && (e[n] = t[n]);
3528
+ 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, this.kind === "upload" && (e.onReject = this.dispatchReject), e.onConfirm = this.dispatchConfirm, e.onCancel = this.dispatchCancel, e.onError = this.dispatchMediaError, e.onTimeUpdate = this.dispatchTimeUpdate, e.onPausedChange = this.dispatchPausedChange, e.onSeek = this.dispatchSeek, this.kind === "form" && (e.onSubmit = this.dispatchFormSubmit, e.onInvalid = this.dispatchFormInvalid, e.onValuesChange = this.dispatchValuesChange, e.onReset = this.dispatchFormReset), e;
2543
3529
  }
2544
3530
  static {
2545
3531
  this.ɵfac = e.ɵɵngDeclareFactory({
@@ -2563,6 +3549,18 @@ var On = class {
2563
3549
  scaleX: "scaleX",
2564
3550
  scaleY: "scaleY",
2565
3551
  visible: "visible",
3552
+ ariaLabel: "ariaLabel",
3553
+ initialValues: "initialValues",
3554
+ controller: "controller",
3555
+ rules: "rules",
3556
+ errorY: "errorY",
3557
+ errorColor: "errorColor",
3558
+ errorFontSize: "errorFontSize",
3559
+ formAction: "formAction",
3560
+ onSubmit: "onSubmit",
3561
+ onInvalid: "onInvalid",
3562
+ onValuesChange: "onValuesChange",
3563
+ onReset: "onReset",
2566
3564
  key: "key",
2567
3565
  size: "size",
2568
3566
  width: "width",
@@ -2635,6 +3633,8 @@ var On = class {
2635
3633
  onScroll: "onScroll",
2636
3634
  accept: "accept",
2637
3635
  multiple: "multiple",
3636
+ maxSize: "maxSize",
3637
+ onReject: "onReject",
2638
3638
  icon: "icon",
2639
3639
  iconSize: "iconSize",
2640
3640
  activeIndex: "activeIndex",
@@ -2658,7 +3658,14 @@ var On = class {
2658
3658
  muted: "muted",
2659
3659
  paused: "paused",
2660
3660
  currentTime: "currentTime",
3661
+ controls: "controls",
3662
+ controlsOnHover: "controlsOnHover",
3663
+ controlsBarColor: "controlsBarColor",
3664
+ controlsColor: "controlsColor",
3665
+ controlsTrackColor: "controlsTrackColor",
2661
3666
  onTimeUpdate: "onTimeUpdate",
3667
+ onPausedChange: "onPausedChange",
3668
+ onSeek: "onSeek",
2662
3669
  onChange: "onChange",
2663
3670
  onClick: "onClick",
2664
3671
  onFocus: "onFocus",
@@ -2666,6 +3673,7 @@ var On = class {
2666
3673
  },
2667
3674
  outputs: {
2668
3675
  change: "change",
3676
+ reject: "reject",
2669
3677
  valueChange: "valueChange",
2670
3678
  checkedChange: "checkedChange",
2671
3679
  activeKeyChange: "activeKeyChange",
@@ -2676,9 +3684,15 @@ var On = class {
2676
3684
  imageError: "imageError",
2677
3685
  videoError: "videoError",
2678
3686
  timeUpdate: "timeUpdate",
3687
+ pausedChange: "pausedChange",
3688
+ seek: "seek",
2679
3689
  click: "click",
2680
3690
  focus: "focus",
2681
- blur: "blur"
3691
+ blur: "blur",
3692
+ formSubmit: "formSubmit",
3693
+ formInvalid: "formInvalid",
3694
+ valuesChange: "valuesChange",
3695
+ formReset: "formReset"
2682
3696
  },
2683
3697
  host: { properties: { "attr.data-canvas-ui-node": "this.marker" } },
2684
3698
  ngImport: e
@@ -2703,6 +3717,18 @@ e.ɵɵngDeclareClassMetadata({
2703
3717
  scaleX: [{ type: a }],
2704
3718
  scaleY: [{ type: a }],
2705
3719
  visible: [{ type: a }],
3720
+ ariaLabel: [{ type: a }],
3721
+ initialValues: [{ type: a }],
3722
+ controller: [{ type: a }],
3723
+ rules: [{ type: a }],
3724
+ errorY: [{ type: a }],
3725
+ errorColor: [{ type: a }],
3726
+ errorFontSize: [{ type: a }],
3727
+ formAction: [{ type: a }],
3728
+ onSubmit: [{ type: a }],
3729
+ onInvalid: [{ type: a }],
3730
+ onValuesChange: [{ type: a }],
3731
+ onReset: [{ type: a }],
2706
3732
  key: [{ type: a }],
2707
3733
  size: [{ type: a }],
2708
3734
  width: [{ type: a }],
@@ -2775,6 +3801,8 @@ e.ɵɵngDeclareClassMetadata({
2775
3801
  onScroll: [{ type: a }],
2776
3802
  accept: [{ type: a }],
2777
3803
  multiple: [{ type: a }],
3804
+ maxSize: [{ type: a }],
3805
+ onReject: [{ type: a }],
2778
3806
  icon: [{ type: a }],
2779
3807
  iconSize: [{ type: a }],
2780
3808
  activeIndex: [{ type: a }],
@@ -2798,12 +3826,20 @@ e.ɵɵngDeclareClassMetadata({
2798
3826
  muted: [{ type: a }],
2799
3827
  paused: [{ type: a }],
2800
3828
  currentTime: [{ type: a }],
3829
+ controls: [{ type: a }],
3830
+ controlsOnHover: [{ type: a }],
3831
+ controlsBarColor: [{ type: a }],
3832
+ controlsColor: [{ type: a }],
3833
+ controlsTrackColor: [{ type: a }],
2801
3834
  onTimeUpdate: [{ type: a }],
3835
+ onPausedChange: [{ type: a }],
3836
+ onSeek: [{ type: a }],
2802
3837
  onChange: [{ type: a }],
2803
3838
  onClick: [{ type: a }],
2804
3839
  onFocus: [{ type: a }],
2805
3840
  onBlur: [{ type: a }],
2806
3841
  change: [{ type: o }],
3842
+ reject: [{ type: o }],
2807
3843
  valueChange: [{ type: o }],
2808
3844
  checkedChange: [{ type: o }],
2809
3845
  activeKeyChange: [{ type: o }],
@@ -2814,12 +3850,98 @@ e.ɵɵngDeclareClassMetadata({
2814
3850
  imageError: [{ type: o }],
2815
3851
  videoError: [{ type: o }],
2816
3852
  timeUpdate: [{ type: o }],
3853
+ pausedChange: [{ type: o }],
3854
+ seek: [{ type: o }],
2817
3855
  click: [{ type: o }],
2818
3856
  focus: [{ type: o }],
2819
- blur: [{ type: o }]
3857
+ blur: [{ type: o }],
3858
+ formSubmit: [{ type: o }],
3859
+ formInvalid: [{ type: o }],
3860
+ valuesChange: [{ type: o }],
3861
+ formReset: [{ type: o }]
2820
3862
  }
2821
3863
  });
2822
- var jn = class t extends $ {
3864
+ var Lr = class t extends $ {
3865
+ constructor(e) {
3866
+ super(e), this.kind = "form";
3867
+ }
3868
+ static {
3869
+ this.ɵfac = e.ɵɵngDeclareFactory({
3870
+ minVersion: "12.0.0",
3871
+ version: "17.3.12",
3872
+ ngImport: e,
3873
+ type: t,
3874
+ deps: [{ token: e.ElementRef }],
3875
+ target: e.ɵɵFactoryTarget.Directive
3876
+ });
3877
+ }
3878
+ static {
3879
+ this.ɵdir = e.ɵɵngDeclareDirective({
3880
+ minVersion: "14.0.0",
3881
+ version: "17.3.12",
3882
+ type: t,
3883
+ isStandalone: !0,
3884
+ selector: "canvas-form",
3885
+ usesInheritance: !0,
3886
+ ngImport: e
3887
+ });
3888
+ }
3889
+ };
3890
+ e.ɵɵngDeclareClassMetadata({
3891
+ minVersion: "12.0.0",
3892
+ version: "17.3.12",
3893
+ ngImport: e,
3894
+ type: Lr,
3895
+ decorators: [{
3896
+ type: n,
3897
+ args: [{
3898
+ selector: "canvas-form",
3899
+ standalone: !0
3900
+ }]
3901
+ }],
3902
+ ctorParameters: () => [{ type: e.ElementRef }]
3903
+ });
3904
+ var Rr = class t extends $ {
3905
+ constructor(e) {
3906
+ super(e), this.kind = "formItem";
3907
+ }
3908
+ static {
3909
+ this.ɵfac = e.ɵɵngDeclareFactory({
3910
+ minVersion: "12.0.0",
3911
+ version: "17.3.12",
3912
+ ngImport: e,
3913
+ type: t,
3914
+ deps: [{ token: e.ElementRef }],
3915
+ target: e.ɵɵFactoryTarget.Directive
3916
+ });
3917
+ }
3918
+ static {
3919
+ this.ɵdir = e.ɵɵngDeclareDirective({
3920
+ minVersion: "14.0.0",
3921
+ version: "17.3.12",
3922
+ type: t,
3923
+ isStandalone: !0,
3924
+ selector: "canvas-form-item",
3925
+ usesInheritance: !0,
3926
+ ngImport: e
3927
+ });
3928
+ }
3929
+ };
3930
+ e.ɵɵngDeclareClassMetadata({
3931
+ minVersion: "12.0.0",
3932
+ version: "17.3.12",
3933
+ ngImport: e,
3934
+ type: Rr,
3935
+ decorators: [{
3936
+ type: n,
3937
+ args: [{
3938
+ selector: "canvas-form-item",
3939
+ standalone: !0
3940
+ }]
3941
+ }],
3942
+ ctorParameters: () => [{ type: e.ElementRef }]
3943
+ });
3944
+ var zr = class t extends $ {
2823
3945
  constructor(e) {
2824
3946
  super(e), this.kind = "group";
2825
3947
  }
@@ -2849,7 +3971,7 @@ e.ɵɵngDeclareClassMetadata({
2849
3971
  minVersion: "12.0.0",
2850
3972
  version: "17.3.12",
2851
3973
  ngImport: e,
2852
- type: jn,
3974
+ type: zr,
2853
3975
  decorators: [{
2854
3976
  type: n,
2855
3977
  args: [{
@@ -2859,7 +3981,7 @@ e.ɵɵngDeclareClassMetadata({
2859
3981
  }],
2860
3982
  ctorParameters: () => [{ type: e.ElementRef }]
2861
3983
  });
2862
- var Mn = class t extends $ {
3984
+ var Br = class t extends $ {
2863
3985
  constructor(e) {
2864
3986
  super(e), this.kind = "grid";
2865
3987
  }
@@ -2889,7 +4011,7 @@ e.ɵɵngDeclareClassMetadata({
2889
4011
  minVersion: "12.0.0",
2890
4012
  version: "17.3.12",
2891
4013
  ngImport: e,
2892
- type: Mn,
4014
+ type: Br,
2893
4015
  decorators: [{
2894
4016
  type: n,
2895
4017
  args: [{
@@ -2899,7 +4021,7 @@ e.ɵɵngDeclareClassMetadata({
2899
4021
  }],
2900
4022
  ctorParameters: () => [{ type: e.ElementRef }]
2901
4023
  });
2902
- var Nn = class t extends $ {
4024
+ var Vr = class t extends $ {
2903
4025
  constructor(e) {
2904
4026
  super(e), this.kind = "gridItem";
2905
4027
  }
@@ -2929,7 +4051,7 @@ e.ɵɵngDeclareClassMetadata({
2929
4051
  minVersion: "12.0.0",
2930
4052
  version: "17.3.12",
2931
4053
  ngImport: e,
2932
- type: Nn,
4054
+ type: Vr,
2933
4055
  decorators: [{
2934
4056
  type: n,
2935
4057
  args: [{
@@ -2939,7 +4061,7 @@ e.ɵɵngDeclareClassMetadata({
2939
4061
  }],
2940
4062
  ctorParameters: () => [{ type: e.ElementRef }]
2941
4063
  });
2942
- var Pn = class t extends $ {
4064
+ var Hr = class t extends $ {
2943
4065
  constructor(e) {
2944
4066
  super(e), this.kind = "image";
2945
4067
  }
@@ -2969,7 +4091,7 @@ e.ɵɵngDeclareClassMetadata({
2969
4091
  minVersion: "12.0.0",
2970
4092
  version: "17.3.12",
2971
4093
  ngImport: e,
2972
- type: Pn,
4094
+ type: Hr,
2973
4095
  decorators: [{
2974
4096
  type: n,
2975
4097
  args: [{
@@ -2979,7 +4101,7 @@ e.ɵɵngDeclareClassMetadata({
2979
4101
  }],
2980
4102
  ctorParameters: () => [{ type: e.ElementRef }]
2981
4103
  });
2982
- var Fn = class t extends $ {
4104
+ var Ur = class t extends $ {
2983
4105
  constructor(e) {
2984
4106
  super(e), this.kind = "video";
2985
4107
  }
@@ -3009,7 +4131,7 @@ e.ɵɵngDeclareClassMetadata({
3009
4131
  minVersion: "12.0.0",
3010
4132
  version: "17.3.12",
3011
4133
  ngImport: e,
3012
- type: Fn,
4134
+ type: Ur,
3013
4135
  decorators: [{
3014
4136
  type: n,
3015
4137
  args: [{
@@ -3019,7 +4141,7 @@ e.ɵɵngDeclareClassMetadata({
3019
4141
  }],
3020
4142
  ctorParameters: () => [{ type: e.ElementRef }]
3021
4143
  });
3022
- var In = class t extends $ {
4144
+ var Wr = class t extends $ {
3023
4145
  constructor(e) {
3024
4146
  super(e), this.kind = "dialog";
3025
4147
  }
@@ -3049,7 +4171,7 @@ e.ɵɵngDeclareClassMetadata({
3049
4171
  minVersion: "12.0.0",
3050
4172
  version: "17.3.12",
3051
4173
  ngImport: e,
3052
- type: In,
4174
+ type: Wr,
3053
4175
  decorators: [{
3054
4176
  type: n,
3055
4177
  args: [{
@@ -3059,7 +4181,7 @@ e.ɵɵngDeclareClassMetadata({
3059
4181
  }],
3060
4182
  ctorParameters: () => [{ type: e.ElementRef }]
3061
4183
  });
3062
- var Ln = class t extends $ {
4184
+ var Gr = class t extends $ {
3063
4185
  constructor(e) {
3064
4186
  super(e), this.kind = "progress";
3065
4187
  }
@@ -3089,7 +4211,7 @@ e.ɵɵngDeclareClassMetadata({
3089
4211
  minVersion: "12.0.0",
3090
4212
  version: "17.3.12",
3091
4213
  ngImport: e,
3092
- type: Ln,
4214
+ type: Gr,
3093
4215
  decorators: [{
3094
4216
  type: n,
3095
4217
  args: [{
@@ -3099,7 +4221,7 @@ e.ɵɵngDeclareClassMetadata({
3099
4221
  }],
3100
4222
  ctorParameters: () => [{ type: e.ElementRef }]
3101
4223
  });
3102
- var Rn = class t extends $ {
4224
+ var Kr = class t extends $ {
3103
4225
  constructor(e) {
3104
4226
  super(e), this.kind = "tabs";
3105
4227
  }
@@ -3129,7 +4251,7 @@ e.ɵɵngDeclareClassMetadata({
3129
4251
  minVersion: "12.0.0",
3130
4252
  version: "17.3.12",
3131
4253
  ngImport: e,
3132
- type: Rn,
4254
+ type: Kr,
3133
4255
  decorators: [{
3134
4256
  type: n,
3135
4257
  args: [{
@@ -3139,7 +4261,7 @@ e.ɵɵngDeclareClassMetadata({
3139
4261
  }],
3140
4262
  ctorParameters: () => [{ type: e.ElementRef }]
3141
4263
  });
3142
- var zn = class t extends $ {
4264
+ var qr = class t extends $ {
3143
4265
  constructor(e) {
3144
4266
  super(e), this.kind = "tabItem";
3145
4267
  }
@@ -3169,7 +4291,7 @@ e.ɵɵngDeclareClassMetadata({
3169
4291
  minVersion: "12.0.0",
3170
4292
  version: "17.3.12",
3171
4293
  ngImport: e,
3172
- type: zn,
4294
+ type: qr,
3173
4295
  decorators: [{
3174
4296
  type: n,
3175
4297
  args: [{
@@ -3179,7 +4301,7 @@ e.ɵɵngDeclareClassMetadata({
3179
4301
  }],
3180
4302
  ctorParameters: () => [{ type: e.ElementRef }]
3181
4303
  });
3182
- var Bn = class t extends $ {
4304
+ var Jr = class t extends $ {
3183
4305
  constructor(e) {
3184
4306
  super(e), this.kind = "collapse";
3185
4307
  }
@@ -3209,7 +4331,7 @@ e.ɵɵngDeclareClassMetadata({
3209
4331
  minVersion: "12.0.0",
3210
4332
  version: "17.3.12",
3211
4333
  ngImport: e,
3212
- type: Bn,
4334
+ type: Jr,
3213
4335
  decorators: [{
3214
4336
  type: n,
3215
4337
  args: [{
@@ -3219,7 +4341,7 @@ e.ɵɵngDeclareClassMetadata({
3219
4341
  }],
3220
4342
  ctorParameters: () => [{ type: e.ElementRef }]
3221
4343
  });
3222
- var Vn = class t extends $ {
4344
+ var Yr = class t extends $ {
3223
4345
  constructor(e) {
3224
4346
  super(e), this.kind = "collapseItem";
3225
4347
  }
@@ -3249,7 +4371,7 @@ e.ɵɵngDeclareClassMetadata({
3249
4371
  minVersion: "12.0.0",
3250
4372
  version: "17.3.12",
3251
4373
  ngImport: e,
3252
- type: Vn,
4374
+ type: Yr,
3253
4375
  decorators: [{
3254
4376
  type: n,
3255
4377
  args: [{
@@ -3259,7 +4381,7 @@ e.ɵɵngDeclareClassMetadata({
3259
4381
  }],
3260
4382
  ctorParameters: () => [{ type: e.ElementRef }]
3261
4383
  });
3262
- var Hn = class t extends $ {
4384
+ var Xr = class t extends $ {
3263
4385
  constructor(e) {
3264
4386
  super(e), this.kind = "customDraw";
3265
4387
  }
@@ -3289,7 +4411,7 @@ e.ɵɵngDeclareClassMetadata({
3289
4411
  minVersion: "12.0.0",
3290
4412
  version: "17.3.12",
3291
4413
  ngImport: e,
3292
- type: Hn,
4414
+ type: Xr,
3293
4415
  decorators: [{
3294
4416
  type: n,
3295
4417
  args: [{
@@ -3299,7 +4421,7 @@ e.ɵɵngDeclareClassMetadata({
3299
4421
  }],
3300
4422
  ctorParameters: () => [{ type: e.ElementRef }]
3301
4423
  });
3302
- var Un = class t extends $ {
4424
+ var Zr = class t extends $ {
3303
4425
  constructor(e) {
3304
4426
  super(e), this.kind = "canvasView";
3305
4427
  }
@@ -3329,7 +4451,7 @@ e.ɵɵngDeclareClassMetadata({
3329
4451
  minVersion: "12.0.0",
3330
4452
  version: "17.3.12",
3331
4453
  ngImport: e,
3332
- type: Un,
4454
+ type: Zr,
3333
4455
  decorators: [{
3334
4456
  type: n,
3335
4457
  args: [{
@@ -3339,7 +4461,7 @@ e.ɵɵngDeclareClassMetadata({
3339
4461
  }],
3340
4462
  ctorParameters: () => [{ type: e.ElementRef }]
3341
4463
  });
3342
- var Wn = class t extends $ {
4464
+ var Qr = class t extends $ {
3343
4465
  constructor(e) {
3344
4466
  super(e), this.kind = "icon";
3345
4467
  }
@@ -3369,7 +4491,7 @@ e.ɵɵngDeclareClassMetadata({
3369
4491
  minVersion: "12.0.0",
3370
4492
  version: "17.3.12",
3371
4493
  ngImport: e,
3372
- type: Wn,
4494
+ type: Qr,
3373
4495
  decorators: [{
3374
4496
  type: n,
3375
4497
  args: [{
@@ -3379,7 +4501,7 @@ e.ɵɵngDeclareClassMetadata({
3379
4501
  }],
3380
4502
  ctorParameters: () => [{ type: e.ElementRef }]
3381
4503
  });
3382
- var Gn = class t extends $ {
4504
+ var $r = class t extends $ {
3383
4505
  constructor(e) {
3384
4506
  super(e), this.kind = "rect";
3385
4507
  }
@@ -3409,7 +4531,7 @@ e.ɵɵngDeclareClassMetadata({
3409
4531
  minVersion: "12.0.0",
3410
4532
  version: "17.3.12",
3411
4533
  ngImport: e,
3412
- type: Gn,
4534
+ type: $r,
3413
4535
  decorators: [{
3414
4536
  type: n,
3415
4537
  args: [{
@@ -3419,7 +4541,7 @@ e.ɵɵngDeclareClassMetadata({
3419
4541
  }],
3420
4542
  ctorParameters: () => [{ type: e.ElementRef }]
3421
4543
  });
3422
- var Kn = class t extends $ {
4544
+ var ei = class t extends $ {
3423
4545
  constructor(e) {
3424
4546
  super(e), this.kind = "circle";
3425
4547
  }
@@ -3449,7 +4571,7 @@ e.ɵɵngDeclareClassMetadata({
3449
4571
  minVersion: "12.0.0",
3450
4572
  version: "17.3.12",
3451
4573
  ngImport: e,
3452
- type: Kn,
4574
+ type: ei,
3453
4575
  decorators: [{
3454
4576
  type: n,
3455
4577
  args: [{
@@ -3459,7 +4581,7 @@ e.ɵɵngDeclareClassMetadata({
3459
4581
  }],
3460
4582
  ctorParameters: () => [{ type: e.ElementRef }]
3461
4583
  });
3462
- var qn = class t extends $ {
4584
+ var ti = class t extends $ {
3463
4585
  constructor(e) {
3464
4586
  super(e), this.kind = "text";
3465
4587
  }
@@ -3489,7 +4611,7 @@ e.ɵɵngDeclareClassMetadata({
3489
4611
  minVersion: "12.0.0",
3490
4612
  version: "17.3.12",
3491
4613
  ngImport: e,
3492
- type: qn,
4614
+ type: ti,
3493
4615
  decorators: [{
3494
4616
  type: n,
3495
4617
  args: [{
@@ -3499,7 +4621,7 @@ e.ɵɵngDeclareClassMetadata({
3499
4621
  }],
3500
4622
  ctorParameters: () => [{ type: e.ElementRef }]
3501
4623
  });
3502
- var Jn = class t extends $ {
4624
+ var ni = class t extends $ {
3503
4625
  constructor(e) {
3504
4626
  super(e), this.kind = "input";
3505
4627
  }
@@ -3529,7 +4651,7 @@ e.ɵɵngDeclareClassMetadata({
3529
4651
  minVersion: "12.0.0",
3530
4652
  version: "17.3.12",
3531
4653
  ngImport: e,
3532
- type: Jn,
4654
+ type: ni,
3533
4655
  decorators: [{
3534
4656
  type: n,
3535
4657
  args: [{
@@ -3539,7 +4661,7 @@ e.ɵɵngDeclareClassMetadata({
3539
4661
  }],
3540
4662
  ctorParameters: () => [{ type: e.ElementRef }]
3541
4663
  });
3542
- var Yn = class t extends $ {
4664
+ var ri = class t extends $ {
3543
4665
  constructor(e) {
3544
4666
  super(e), this.kind = "datePicker";
3545
4667
  }
@@ -3569,7 +4691,7 @@ e.ɵɵngDeclareClassMetadata({
3569
4691
  minVersion: "12.0.0",
3570
4692
  version: "17.3.12",
3571
4693
  ngImport: e,
3572
- type: Yn,
4694
+ type: ri,
3573
4695
  decorators: [{
3574
4696
  type: n,
3575
4697
  args: [{
@@ -3579,7 +4701,7 @@ e.ɵɵngDeclareClassMetadata({
3579
4701
  }],
3580
4702
  ctorParameters: () => [{ type: e.ElementRef }]
3581
4703
  });
3582
- var Xn = class t extends $ {
4704
+ var ii = class t extends $ {
3583
4705
  constructor(e) {
3584
4706
  super(e), this.kind = "radio";
3585
4707
  }
@@ -3609,7 +4731,7 @@ e.ɵɵngDeclareClassMetadata({
3609
4731
  minVersion: "12.0.0",
3610
4732
  version: "17.3.12",
3611
4733
  ngImport: e,
3612
- type: Xn,
4734
+ type: ii,
3613
4735
  decorators: [{
3614
4736
  type: n,
3615
4737
  args: [{
@@ -3619,7 +4741,7 @@ e.ɵɵngDeclareClassMetadata({
3619
4741
  }],
3620
4742
  ctorParameters: () => [{ type: e.ElementRef }]
3621
4743
  });
3622
- var Zn = class t extends $ {
4744
+ var ai = class t extends $ {
3623
4745
  constructor(e) {
3624
4746
  super(e), this.kind = "checkbox";
3625
4747
  }
@@ -3649,7 +4771,7 @@ e.ɵɵngDeclareClassMetadata({
3649
4771
  minVersion: "12.0.0",
3650
4772
  version: "17.3.12",
3651
4773
  ngImport: e,
3652
- type: Zn,
4774
+ type: ai,
3653
4775
  decorators: [{
3654
4776
  type: n,
3655
4777
  args: [{
@@ -3659,7 +4781,7 @@ e.ɵɵngDeclareClassMetadata({
3659
4781
  }],
3660
4782
  ctorParameters: () => [{ type: e.ElementRef }]
3661
4783
  });
3662
- var Qn = class t extends $ {
4784
+ var oi = class t extends $ {
3663
4785
  constructor(e) {
3664
4786
  super(e), this.kind = "upload";
3665
4787
  }
@@ -3689,7 +4811,7 @@ e.ɵɵngDeclareClassMetadata({
3689
4811
  minVersion: "12.0.0",
3690
4812
  version: "17.3.12",
3691
4813
  ngImport: e,
3692
- type: Qn,
4814
+ type: oi,
3693
4815
  decorators: [{
3694
4816
  type: n,
3695
4817
  args: [{
@@ -3699,7 +4821,7 @@ e.ɵɵngDeclareClassMetadata({
3699
4821
  }],
3700
4822
  ctorParameters: () => [{ type: e.ElementRef }]
3701
4823
  });
3702
- var $n = class t extends $ {
4824
+ var si = class t extends $ {
3703
4825
  constructor(e) {
3704
4826
  super(e), this.kind = "carousel";
3705
4827
  }
@@ -3729,7 +4851,7 @@ e.ɵɵngDeclareClassMetadata({
3729
4851
  minVersion: "12.0.0",
3730
4852
  version: "17.3.12",
3731
4853
  ngImport: e,
3732
- type: $n,
4854
+ type: si,
3733
4855
  decorators: [{
3734
4856
  type: n,
3735
4857
  args: [{
@@ -3739,7 +4861,7 @@ e.ɵɵngDeclareClassMetadata({
3739
4861
  }],
3740
4862
  ctorParameters: () => [{ type: e.ElementRef }]
3741
4863
  });
3742
- var er = class t extends $ {
4864
+ var ci = class t extends $ {
3743
4865
  constructor(e) {
3744
4866
  super(e), this.kind = "carouselItem";
3745
4867
  }
@@ -3769,7 +4891,7 @@ e.ɵɵngDeclareClassMetadata({
3769
4891
  minVersion: "12.0.0",
3770
4892
  version: "17.3.12",
3771
4893
  ngImport: e,
3772
- type: er,
4894
+ type: ci,
3773
4895
  decorators: [{
3774
4896
  type: n,
3775
4897
  args: [{
@@ -3779,7 +4901,7 @@ e.ɵɵngDeclareClassMetadata({
3779
4901
  }],
3780
4902
  ctorParameters: () => [{ type: e.ElementRef }]
3781
4903
  });
3782
- var tr = class t extends $ {
4904
+ var li = class t extends $ {
3783
4905
  constructor(e) {
3784
4906
  super(e), this.kind = "textarea";
3785
4907
  }
@@ -3809,7 +4931,7 @@ e.ɵɵngDeclareClassMetadata({
3809
4931
  minVersion: "12.0.0",
3810
4932
  version: "17.3.12",
3811
4933
  ngImport: e,
3812
- type: tr,
4934
+ type: li,
3813
4935
  decorators: [{
3814
4936
  type: n,
3815
4937
  args: [{
@@ -3819,7 +4941,7 @@ e.ɵɵngDeclareClassMetadata({
3819
4941
  }],
3820
4942
  ctorParameters: () => [{ type: e.ElementRef }]
3821
4943
  });
3822
- var nr = class t extends $ {
4944
+ var ui = class t extends $ {
3823
4945
  constructor(e) {
3824
4946
  super(e), this.kind = "dropdown";
3825
4947
  }
@@ -3849,7 +4971,7 @@ e.ɵɵngDeclareClassMetadata({
3849
4971
  minVersion: "12.0.0",
3850
4972
  version: "17.3.12",
3851
4973
  ngImport: e,
3852
- type: nr,
4974
+ type: ui,
3853
4975
  decorators: [{
3854
4976
  type: n,
3855
4977
  args: [{
@@ -3859,7 +4981,7 @@ e.ɵɵngDeclareClassMetadata({
3859
4981
  }],
3860
4982
  ctorParameters: () => [{ type: e.ElementRef }]
3861
4983
  });
3862
- var rr = class t extends $ {
4984
+ var di = class t extends $ {
3863
4985
  constructor(e) {
3864
4986
  super(e), this.kind = "slider";
3865
4987
  }
@@ -3889,7 +5011,7 @@ e.ɵɵngDeclareClassMetadata({
3889
5011
  minVersion: "12.0.0",
3890
5012
  version: "17.3.12",
3891
5013
  ngImport: e,
3892
- type: rr,
5014
+ type: di,
3893
5015
  decorators: [{
3894
5016
  type: n,
3895
5017
  args: [{
@@ -3899,7 +5021,7 @@ e.ɵɵngDeclareClassMetadata({
3899
5021
  }],
3900
5022
  ctorParameters: () => [{ type: e.ElementRef }]
3901
5023
  });
3902
- var ir = class t extends $ {
5024
+ var fi = class t extends $ {
3903
5025
  constructor(e) {
3904
5026
  super(e), this.kind = "switch";
3905
5027
  }
@@ -3929,7 +5051,7 @@ e.ɵɵngDeclareClassMetadata({
3929
5051
  minVersion: "12.0.0",
3930
5052
  version: "17.3.12",
3931
5053
  ngImport: e,
3932
- type: ir,
5054
+ type: fi,
3933
5055
  decorators: [{
3934
5056
  type: n,
3935
5057
  args: [{
@@ -3939,7 +5061,7 @@ e.ɵɵngDeclareClassMetadata({
3939
5061
  }],
3940
5062
  ctorParameters: () => [{ type: e.ElementRef }]
3941
5063
  });
3942
- var ar = class t extends $ {
5064
+ var pi = class t extends $ {
3943
5065
  constructor(e) {
3944
5066
  super(e), this.kind = "button";
3945
5067
  }
@@ -3969,7 +5091,7 @@ e.ɵɵngDeclareClassMetadata({
3969
5091
  minVersion: "12.0.0",
3970
5092
  version: "17.3.12",
3971
5093
  ngImport: e,
3972
- type: ar,
5094
+ type: pi,
3973
5095
  decorators: [{
3974
5096
  type: n,
3975
5097
  args: [{
@@ -3979,11 +5101,11 @@ e.ɵɵngDeclareClassMetadata({
3979
5101
  }],
3980
5102
  ctorParameters: () => [{ type: e.ElementRef }]
3981
5103
  });
3982
- function or(e) {
3983
- return e[kn];
5104
+ function mi(e) {
5105
+ return e[Fr];
3984
5106
  }
3985
5107
  // tools/angular-build/.stage/angular-compiled/angular/Canvas.js
3986
- var sr = class t {
5108
+ var hi = class t {
3987
5109
  constructor() {
3988
5110
  this.ariaLabel = "Canvas", this.engine = null, this.ratio = 1, this.initialized = !1, this.appliedStyleKeys = /* @__PURE__ */ new Set();
3989
5111
  }
@@ -4008,8 +5130,8 @@ var sr = class t {
4008
5130
  toDataURL(e = {}, t) {
4009
5131
  let n = this.getCanvas();
4010
5132
  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);
5133
+ let r = Er(e, t);
5134
+ return Dr(kr(n, this.engine, r, this.ratio), r.type, r.quality);
4013
5135
  }
4014
5136
  toBlob(e = {}, t) {
4015
5137
  return new Promise((n, r) => {
@@ -4018,8 +5140,8 @@ var sr = class t {
4018
5140
  r(/* @__PURE__ */ Error("Canvas is not mounted."));
4019
5141
  return;
4020
5142
  }
4021
- let a = xn(e, t);
4022
- Cn(wn(i, this.engine, a, this.ratio), a.type, a.quality).then(n, r);
5143
+ let a = Er(e, t);
5144
+ Or(kr(i, this.engine, a, this.ratio), a.type, a.quality).then(n, r);
4023
5145
  });
4024
5146
  }
4025
5147
  pointerDown(e) {
@@ -4030,6 +5152,9 @@ var sr = class t {
4030
5152
  let t = this.normalizePointerEvent(e);
4031
5153
  t && this.engine?.pointerMove(t);
4032
5154
  }
5155
+ pointerLeave(e) {
5156
+ this.engine?.pointerLeave(e.pointerType);
5157
+ }
4033
5158
  pointerUp(e) {
4034
5159
  let t = this.normalizePointerEvent(e);
4035
5160
  t && this.engine?.pointerUp(t);
@@ -4051,10 +5176,10 @@ var sr = class t {
4051
5176
  initializeEngine() {
4052
5177
  let e = this.canvasRef?.nativeElement, t = this.overlayRef?.nativeElement;
4053
5178
  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);
5179
+ this.disposeEngine(), this.ratio = Tr(), e.width = Math.round(this.width * this.ratio), e.height = Math.round(this.height * this.ratio);
4055
5180
  let n = e.getContext("2d");
4056
5181
  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();
5182
+ n.scale(this.ratio, this.ratio), this.engine = new wr(n, new Pr(t), (e) => this.onFrame?.(e), this.ratio, (e) => this.onEvent?.(e)), this.engine.update(this.compileChildren()), this.engine.start();
4058
5183
  }
4059
5184
  disposeEngine() {
4060
5185
  this.engine?.destroy(), this.engine = null;
@@ -4067,14 +5192,14 @@ var sr = class t {
4067
5192
  let t = [];
4068
5193
  for (let n of Array.from(e.childNodes)) {
4069
5194
  if (n.nodeType !== Node.ELEMENT_NODE) continue;
4070
- let e = n, r = or(e);
5195
+ let e = n, r = mi(e);
4071
5196
  if (!r) {
4072
5197
  t.push(...this.compileFrom(e));
4073
5198
  continue;
4074
5199
  }
4075
5200
  let i = r.getProps(), a = i.key;
4076
5201
  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";
5202
+ let o = r.kind === "group" || r.kind === "form" || r.kind === "formItem" || 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
5203
  if (!o) {
4079
5204
  let t = "";
4080
5205
  for (let n of Array.from(e.childNodes)) if (n.nodeType !== Node.COMMENT_NODE) {
@@ -4172,7 +5297,7 @@ var sr = class t {
4172
5297
  exportAs: ["canvasUi"],
4173
5298
  usesOnChanges: !0,
4174
5299
  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 ",
5300
+ 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 (pointerleave)=\"pointerLeave($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
5301
  isInline: !0,
4177
5302
  styles: [":host { display: block; }"]
4178
5303
  });
@@ -4182,14 +5307,14 @@ e.ɵɵngDeclareClassMetadata({
4182
5307
  minVersion: "12.0.0",
4183
5308
  version: "17.3.12",
4184
5309
  ngImport: e,
4185
- type: sr,
5310
+ type: hi,
4186
5311
  decorators: [{
4187
5312
  type: t,
4188
5313
  args: [{
4189
5314
  selector: "canvas-ui",
4190
5315
  standalone: !0,
4191
5316
  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 ",
5317
+ 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 (pointerleave)=\"pointerLeave($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
5318
  styles: [":host { display: block; }"]
4194
5319
  }]
4195
5320
  }],
@@ -4221,4 +5346,4 @@ e.ɵɵngDeclareClassMetadata({
4221
5346
  }]
4222
5347
  }
4223
5348
  });
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 };
5349
+ export { pi as Button, hi as Canvas, Zr as CanvasView, si as Carousel, ci as CarouselItem, ai as Checkbox, ei as Circle, Jr as Collapse, Yr as CollapseItem, Xr as CustomDraw, ri as DatePicker, Wr as Dialog, ui as Dropdown, Lr as Form, Rr as FormItem, Br as Grid, Vr as GridItem, zr as Group, Qr as Icon, Hr as Image, ni as Input, Gr as Progress, ii as Radio, $r as Rect, di as Slider, fi as Switch, qr as TabItem, Kr as Tabs, ti as Text, li as Textarea, oi as Upload, Ur as Video, Sn as createFormController };