@snabcentr/vue-ui-lib 2.13.0 → 2.13.1

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.
@@ -309,14 +309,14 @@ const ep = Ye({ name: "ion-chevron-forward-outline", render: Qf }), tp = ["data-
309
309
  },
310
310
  emits: ["header:click"],
311
311
  setup(e, { emit: t }) {
312
- const i = e, n = t, s = Ge("itemHeaderClickHandler", wa), r = Ge("defaultExpandedNames", []), o = Ge("expandedNames", []), a = wl(r, (h) => h === i.name), l = N(() => wl(o, (h) => h === i.name)), c = H(a), u = () => {
312
+ const i = e, n = t, s = Ge("itemHeaderClickHandler", wa), r = Ge("defaultExpandedNames", []), o = Ge("expandedNames", []), a = wl(r, (d) => d === i.name), l = N(() => wl(o, (d) => d === i.name)), c = H(a), u = () => {
313
313
  i.disabled || (c.value = l.value || !c.value, n("header:click", i.name, c.value), s(i.name, c.value));
314
314
  };
315
- return (h, d) => {
315
+ return (d, h) => {
316
316
  const f = ep;
317
317
  return x(), R("div", {
318
- "data-name": h.name,
319
- class: tt({ "sc-collapse-item flex flex-col p-1": !0, "cursor-not-allowed text-gray-400": h.disabled })
318
+ "data-name": d.name,
319
+ class: tt({ "sc-collapse-item flex flex-col p-1": !0, "cursor-not-allowed text-gray-400": d.disabled })
320
320
  }, [
321
321
  T("div", ip, [
322
322
  T("div", np, [
@@ -324,14 +324,14 @@ const ep = Ye({ name: "ion-chevron-forward-outline", render: Qf }), tp = ["data-
324
324
  class: tt({ "rotate-90": c.value }),
325
325
  onClick: u
326
326
  }, [
327
- Me(h.$slots, "arrow", {}, () => [
327
+ Me(d.$slots, "arrow", {}, () => [
328
328
  z(f)
329
329
  ], !0)
330
330
  ], 2)
331
331
  ]),
332
- K(ws).hasSlotContent(h.$slots["pre-arrow"]) ? (x(), R("div", sp, [
332
+ K(ws).hasSlotContent(d.$slots["pre-arrow"]) ? (x(), R("div", sp, [
333
333
  T("div", rp, [
334
- Me(h.$slots, "pre-arrow", {}, void 0, !0)
334
+ Me(d.$slots, "pre-arrow", {}, void 0, !0)
335
335
  ])
336
336
  ])) : U("", !0),
337
337
  T("div", op, [
@@ -339,22 +339,22 @@ const ep = Ye({ name: "ion-chevron-forward-outline", render: Qf }), tp = ["data-
339
339
  class: "sc-collapse-item-title flex flex-1 cursor-pointer flex-col text-lg font-semibold",
340
340
  onClick: u
341
341
  }, [
342
- Me(h.$slots, "header", {}, () => [
343
- oe(q(h.title), 1)
342
+ Me(d.$slots, "header", {}, () => [
343
+ oe(q(d.title), 1)
344
344
  ], !0)
345
345
  ]),
346
- K(ws).hasSlotContent(h.$slots["sub-header"]) ? (x(), R("div", ap, [
347
- Me(h.$slots, "sub-header", {}, void 0, !0)
346
+ K(ws).hasSlotContent(d.$slots["sub-header"]) ? (x(), R("div", ap, [
347
+ Me(d.$slots, "sub-header", {}, void 0, !0)
348
348
  ])) : U("", !0)
349
349
  ]),
350
- K(ws).hasSlotContent(h.$slots["header-extra"]) ? (x(), R("div", lp, [
351
- Me(h.$slots, "header-extra", {}, void 0, !0)
350
+ K(ws).hasSlotContent(d.$slots["header-extra"]) ? (x(), R("div", lp, [
351
+ Me(d.$slots, "header-extra", {}, void 0, !0)
352
352
  ])) : U("", !0)
353
353
  ]),
354
354
  z(jn, { name: "fade" }, {
355
355
  default: F(() => [
356
356
  l.value || c.value ? (x(), R("div", cp, [
357
- Me(h.$slots, "default", {}, void 0, !0)
357
+ Me(d.$slots, "default", {}, void 0, !0)
358
358
  ])) : U("", !0)
359
359
  ]),
360
360
  _: 3
@@ -463,9 +463,9 @@ const ep = Ye({ name: "ion-chevron-forward-outline", render: Qf }), tp = ["data-
463
463
  };
464
464
  return (a, l) => {
465
465
  var g;
466
- const c = Nu, u = qe, h = ao, d = Du, f = Lu, p = Qa;
466
+ const c = Nu, u = qe, d = ao, h = Du, f = Lu, p = Qa;
467
467
  return x(), R("div", fp, [
468
- (K(vi)(a.showProductAddToCartButton) ? a.showProductAddToCartButton(a.product) : a.showProductAddToCartButton) ? (x(), re(h, {
468
+ (K(vi)(a.showProductAddToCartButton) ? a.showProductAddToCartButton(a.product) : a.showProductAddToCartButton) ? (x(), re(d, {
469
469
  key: 0,
470
470
  placement: "bottom",
471
471
  trigger: "hover"
@@ -488,7 +488,7 @@ const ep = Ye({ name: "ion-chevron-forward-outline", render: Qf }), tp = ["data-
488
488
  ]),
489
489
  _: 1
490
490
  })) : U("", !0),
491
- (K(vi)(a.showProductEditButton) ? a.showProductEditButton(a.product) : a.showProductEditButton) ? (x(), re(h, {
491
+ (K(vi)(a.showProductEditButton) ? a.showProductEditButton(a.product) : a.showProductEditButton) ? (x(), re(d, {
492
492
  key: 1,
493
493
  placement: "bottom",
494
494
  trigger: "hover"
@@ -501,7 +501,7 @@ const ep = Ye({ name: "ion-chevron-forward-outline", render: Qf }), tp = ["data-
501
501
  onClick: r
502
502
  }, {
503
503
  default: F(() => [
504
- z(d)
504
+ z(h)
505
505
  ]),
506
506
  _: 1
507
507
  }, 8, ["size"])
@@ -575,8 +575,8 @@ const _p = Ye({ name: "tabler-history", render: vp }), yp = { class: "flex flex-
575
575
  () => (vi(t.allowPriceClick) ? t.allowPriceClick(t.product) : t.allowPriceClick) && !bs(n.value)
576
576
  ), o = N(() => bs(n.value) ? "-" : new Intl.NumberFormat("ru-RU", { style: "decimal", minimumFractionDigits: 2 }).format(Number.parseFloat(n.value)));
577
577
  return (a, l) => {
578
- var d;
579
- const c = rf, u = ao, h = _p;
578
+ var h;
579
+ const c = rf, u = ao, d = _p;
580
580
  return x(), R("div", yp, [
581
581
  a.showBadge ? (x(), re(u, { key: 0 }, {
582
582
  trigger: F(() => {
@@ -600,7 +600,7 @@ const _p = Ye({ name: "tabler-history", render: vp }), yp = { class: "flex flex-
600
600
  T("div", null, [
601
601
  T("span", bp, [
602
602
  T("span", {
603
- class: tt({ "text-gray-600": (d = i.value) == null ? void 0 : d.readOnly })
603
+ class: tt({ "text-gray-600": (h = i.value) == null ? void 0 : h.readOnly })
604
604
  }, [
605
605
  T("span", {
606
606
  class: tt({ "text-nowrap": !0, "cursor-pointer underline decoration-dashed": r.value && a.eventEmitter }),
@@ -619,7 +619,7 @@ const _p = Ye({ name: "tabler-history", render: vp }), yp = { class: "flex flex-
619
619
  placement: "top-end"
620
620
  }, {
621
621
  trigger: F(() => [
622
- z(h, {
622
+ z(d, {
623
623
  class: "cursor-pointer",
624
624
  onClick: l[1] || (l[1] = (f) => {
625
625
  var p;
@@ -985,9 +985,9 @@ var Wr = function() {
985
985
  if (!(Math.abs(i) <= 0)) {
986
986
  var r = this.containerRect.width / 2 + this.containerRect.left, o = this.containerRect.height / 2 + this.containerRect.top + this.scrollTop, a, l;
987
987
  t === 1 && (this.positionChanged = !1);
988
- var c = this.getDragAllowedAxises(0, i), u = c.allowY, h = c.allowX;
988
+ var c = this.getDragAllowedAxises(0, i), u = c.allowY, d = c.allowX;
989
989
  this.positionChanged && (a = this.left / (this.scale - i), l = this.top / (this.scale - i), this.pageX = r - a, this.pageY = o - l, this.positionChanged = !1);
990
- var d = this.getPossibleSwipeDragCords(i), f, p, g = r - this.pageX, m = o - this.pageY;
990
+ var h = this.getPossibleSwipeDragCords(i), f, p, g = r - this.pageX, m = o - this.pageY;
991
991
  if (t - i > 1) {
992
992
  var v = (t - i) / Math.abs(i);
993
993
  g = (i < 0 ? -g : g) + this.left * (v + (i < 0 ? -1 : 1)), m = (i < 0 ? -m : m) + this.top * (v + (i < 0 ? -1 : 1)), f = g / v, p = m / v;
@@ -995,7 +995,7 @@ var Wr = function() {
995
995
  var v = (t - i) * i;
996
996
  f = g * v, p = m * v;
997
997
  }
998
- n && (h ? this.isBeyondPossibleLeft(f, d.minX) ? f = d.minX : this.isBeyondPossibleRight(f, d.maxX) && (f = d.maxX) : t > 1 && (f < d.minX ? f = d.minX : f > d.maxX && (f = d.maxX)), u ? this.isBeyondPossibleTop(p, d.minY) ? p = d.minY : this.isBeyondPossibleBottom(p, d.maxY) && (p = d.maxY) : t > 1 && (p < d.minY ? p = d.minY : p > d.maxY && (p = d.maxY))), this.setZoomStyles({
998
+ n && (d ? this.isBeyondPossibleLeft(f, h.minX) ? f = h.minX : this.isBeyondPossibleRight(f, h.maxX) && (f = h.maxX) : t > 1 && (f < h.minX ? f = h.minX : f > h.maxX && (f = h.maxX)), u ? this.isBeyondPossibleTop(p, h.minY) ? p = h.minY : this.isBeyondPossibleBottom(p, h.maxY) && (p = h.maxY) : t > 1 && (p < h.minY ? p = h.minY : p > h.maxY && (p = h.maxY))), this.setZoomStyles({
999
999
  x: f,
1000
1000
  y: p,
1001
1001
  scale: t
@@ -1137,8 +1137,8 @@ var Wr = function() {
1137
1137
  r = t.scale;
1138
1138
  var u = Math.max(1, s + -c * 0.02);
1139
1139
  t.scale = Math.round((u + Number.EPSILON) * 100) / 100;
1140
- var h = t.scale - r;
1141
- t.zoomImage(t.scale, Math.round((h + Number.EPSILON) * 100) / 100, !1, !1);
1140
+ var d = t.scale - r;
1141
+ t.zoomImage(t.scale, Math.round((d + Number.EPSILON) * 100) / 100, !1, !1);
1142
1142
  }
1143
1143
  }
1144
1144
  }), this.core.$inner.on("touchend.lg", function(a) {
@@ -1159,10 +1159,10 @@ var Wr = function() {
1159
1159
  }, e.prototype.touchendZoom = function(t, i, n, s, r) {
1160
1160
  var o = i.x - t.x, a = i.y - t.y, l = Math.abs(o) / r + 1, c = Math.abs(a) / r + 1;
1161
1161
  l > 2 && (l += 1), c > 2 && (c += 1), o = o * l, a = a * c;
1162
- var u = this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(), h = {};
1163
- h.x = this.left + o, h.y = this.top + a;
1164
- var d = this.getPossibleSwipeDragCords();
1165
- (Math.abs(o) > 15 || Math.abs(a) > 15) && (s && (this.isBeyondPossibleTop(h.y, d.minY) ? h.y = d.minY : this.isBeyondPossibleBottom(h.y, d.maxY) && (h.y = d.maxY)), n && (this.isBeyondPossibleLeft(h.x, d.minX) ? h.x = d.minX : this.isBeyondPossibleRight(h.x, d.maxX) && (h.x = d.maxX)), s ? this.top = h.y : h.y = this.top, n ? this.left = h.x : h.x = this.left, this.setZoomSwipeStyles(u, h), this.positionChanged = !0);
1162
+ var u = this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(), d = {};
1163
+ d.x = this.left + o, d.y = this.top + a;
1164
+ var h = this.getPossibleSwipeDragCords();
1165
+ (Math.abs(o) > 15 || Math.abs(a) > 15) && (s && (this.isBeyondPossibleTop(d.y, h.minY) ? d.y = h.minY : this.isBeyondPossibleBottom(d.y, h.maxY) && (d.y = h.maxY)), n && (this.isBeyondPossibleLeft(d.x, h.minX) ? d.x = h.minX : this.isBeyondPossibleRight(d.x, h.maxX) && (d.x = h.maxX)), s ? this.top = d.y : d.y = this.top, n ? this.left = d.x : d.x = this.left, this.setZoomSwipeStyles(u, d), this.positionChanged = !0);
1166
1166
  }, e.prototype.getZoomSwipeCords = function(t, i, n, s, r) {
1167
1167
  var o = {};
1168
1168
  if (s) {
@@ -1200,32 +1200,32 @@ var Wr = function() {
1200
1200
  }, e.prototype.getPossibleSwipeDragCords = function(t) {
1201
1201
  var i = this.core.getSlideItem(this.core.index).find(".lg-image").first(), n = this.core.mediaContainerPosition.bottom, s = i.get().getBoundingClientRect(), r = s.height, o = s.width;
1202
1202
  t && (r = r + t * r, o = o + t * o);
1203
- var a = (r - this.containerRect.height) / 2, l = (this.containerRect.height - r) / 2 + n, c = (o - this.containerRect.width) / 2, u = (this.containerRect.width - o) / 2, h = {
1203
+ var a = (r - this.containerRect.height) / 2, l = (this.containerRect.height - r) / 2 + n, c = (o - this.containerRect.width) / 2, u = (this.containerRect.width - o) / 2, d = {
1204
1204
  minY: a,
1205
1205
  maxY: l,
1206
1206
  minX: c,
1207
1207
  maxX: u
1208
1208
  };
1209
- return h;
1209
+ return d;
1210
1210
  }, e.prototype.setZoomSwipeStyles = function(t, i) {
1211
1211
  t.css("transform", "translate3d(" + i.x + "px, " + i.y + "px, 0)");
1212
1212
  }, e.prototype.zoomSwipe = function() {
1213
- var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date(), c, u, h = this.core.getSlideItem(this.core.index);
1214
- this.core.$inner.on("touchstart.lg", function(d) {
1215
- if (t.isImageSlide(t.core.index) && (h = t.core.getSlideItem(t.core.index), (t.$LG(d.target).hasClass("lg-item") || h.get().contains(d.target)) && d.touches.length === 1 && t.core.outer.hasClass("lg-zoomed"))) {
1216
- d.preventDefault(), a = /* @__PURE__ */ new Date(), t.core.touchAction = "zoomSwipe", u = t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();
1213
+ var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date(), c, u, d = this.core.getSlideItem(this.core.index);
1214
+ this.core.$inner.on("touchstart.lg", function(h) {
1215
+ if (t.isImageSlide(t.core.index) && (d = t.core.getSlideItem(t.core.index), (t.$LG(h.target).hasClass("lg-item") || d.get().contains(h.target)) && h.touches.length === 1 && t.core.outer.hasClass("lg-zoomed"))) {
1216
+ h.preventDefault(), a = /* @__PURE__ */ new Date(), t.core.touchAction = "zoomSwipe", u = t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();
1217
1217
  var f = t.getDragAllowedAxises(0);
1218
- o = f.allowY, r = f.allowX, (r || o) && (i = t.getSwipeCords(d)), c = t.getPossibleSwipeDragCords(), t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition");
1218
+ o = f.allowY, r = f.allowX, (r || o) && (i = t.getSwipeCords(h)), c = t.getPossibleSwipeDragCords(), t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition");
1219
1219
  }
1220
- }), this.core.$inner.on("touchmove.lg", function(d) {
1221
- if (d.touches.length === 1 && t.core.touchAction === "zoomSwipe" && (t.$LG(d.target).hasClass("lg-item") || h.get().contains(d.target))) {
1222
- d.preventDefault(), t.core.touchAction = "zoomSwipe", n = t.getSwipeCords(d);
1220
+ }), this.core.$inner.on("touchmove.lg", function(h) {
1221
+ if (h.touches.length === 1 && t.core.touchAction === "zoomSwipe" && (t.$LG(h.target).hasClass("lg-item") || d.get().contains(h.target))) {
1222
+ h.preventDefault(), t.core.touchAction = "zoomSwipe", n = t.getSwipeCords(h);
1223
1223
  var f = t.getZoomSwipeCords(i, n, r, o, c);
1224
1224
  (Math.abs(n.x - i.x) > 15 || Math.abs(n.y - i.y) > 15) && (s = !0, t.setZoomSwipeStyles(u, f));
1225
1225
  }
1226
- }), this.core.$inner.on("touchend.lg", function(d) {
1227
- if (t.core.touchAction === "zoomSwipe" && (t.$LG(d.target).hasClass("lg-item") || h.get().contains(d.target))) {
1228
- if (d.preventDefault(), t.core.touchAction = void 0, t.core.outer.removeClass("lg-zoom-dragging"), !s)
1226
+ }), this.core.$inner.on("touchend.lg", function(h) {
1227
+ if (t.core.touchAction === "zoomSwipe" && (t.$LG(h.target).hasClass("lg-item") || d.get().contains(h.target))) {
1228
+ if (h.preventDefault(), t.core.touchAction = void 0, t.core.outer.removeClass("lg-zoom-dragging"), !s)
1229
1229
  return;
1230
1230
  s = !1, l = /* @__PURE__ */ new Date();
1231
1231
  var f = l.valueOf() - a.valueOf();
@@ -1233,26 +1233,26 @@ var Wr = function() {
1233
1233
  }
1234
1234
  });
1235
1235
  }, e.prototype.zoomDrag = function() {
1236
- var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = !1, l, c, u, h;
1237
- this.core.outer.on("mousedown.lg.zoom", function(d) {
1236
+ var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = !1, l, c, u, d;
1237
+ this.core.outer.on("mousedown.lg.zoom", function(h) {
1238
1238
  if (t.isImageSlide(t.core.index)) {
1239
1239
  var f = t.core.getSlideItem(t.core.index);
1240
- if (t.$LG(d.target).hasClass("lg-item") || f.get().contains(d.target)) {
1241
- l = /* @__PURE__ */ new Date(), h = t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();
1240
+ if (t.$LG(h.target).hasClass("lg-item") || f.get().contains(h.target)) {
1241
+ l = /* @__PURE__ */ new Date(), d = t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();
1242
1242
  var p = t.getDragAllowedAxises(0);
1243
- a = p.allowY, o = p.allowX, t.core.outer.hasClass("lg-zoomed") && t.$LG(d.target).hasClass("lg-object") && (o || a) && (d.preventDefault(), i = t.getDragCords(d), u = t.getPossibleSwipeDragCords(), s = !0, t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"));
1243
+ a = p.allowY, o = p.allowX, t.core.outer.hasClass("lg-zoomed") && t.$LG(h.target).hasClass("lg-object") && (o || a) && (h.preventDefault(), i = t.getDragCords(h), u = t.getPossibleSwipeDragCords(), s = !0, t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"));
1244
1244
  }
1245
1245
  }
1246
- }), this.$LG(window).on("mousemove.lg.zoom.global" + this.core.lgId, function(d) {
1246
+ }), this.$LG(window).on("mousemove.lg.zoom.global" + this.core.lgId, function(h) {
1247
1247
  if (s) {
1248
- r = !0, n = t.getDragCords(d);
1248
+ r = !0, n = t.getDragCords(h);
1249
1249
  var f = t.getZoomSwipeCords(i, n, o, a, u);
1250
- t.setZoomSwipeStyles(h, f);
1250
+ t.setZoomSwipeStyles(d, f);
1251
1251
  }
1252
- }), this.$LG(window).on("mouseup.lg.zoom.global" + this.core.lgId, function(d) {
1252
+ }), this.$LG(window).on("mouseup.lg.zoom.global" + this.core.lgId, function(h) {
1253
1253
  if (s) {
1254
1254
  if (c = /* @__PURE__ */ new Date(), s = !1, t.core.outer.removeClass("lg-zoom-dragging"), r && (i.x !== n.x || i.y !== n.y)) {
1255
- n = t.getDragCords(d);
1255
+ n = t.getDragCords(h);
1256
1256
  var f = c.valueOf() - l.valueOf();
1257
1257
  t.touchendZoom(i, n, o, a, f);
1258
1258
  }
@@ -1512,8 +1512,8 @@ const Ep = {
1512
1512
  */
1513
1513
  show: l
1514
1514
  }), window.addEventListener("resize", a), (c, u) => {
1515
- const h = Wu, d = tn;
1516
- return x(), re(d, {
1515
+ const d = Wu, h = tn;
1516
+ return x(), re(h, {
1517
1517
  trigger: "manual",
1518
1518
  show: i.value,
1519
1519
  class: "sc-image",
@@ -1527,7 +1527,7 @@ const Ep = {
1527
1527
  onClick: u[0] || (u[0] = (f) => i.value = !i.value)
1528
1528
  }, [
1529
1529
  Me(c.$slots, "default", {}, () => [
1530
- z(h)
1530
+ z(d)
1531
1531
  ])
1532
1532
  ])
1533
1533
  ]),
@@ -1628,8 +1628,8 @@ const Ep = {
1628
1628
  setup(e, { expose: t }) {
1629
1629
  const i = e, n = N(() => vi(i.showProductCosts) ? i.showProductCosts(i.product) : i.showProductCosts), s = N(() => $u(i.product.priceCoefficients, ["coefficient.slug"])), r = N(
1630
1630
  () => {
1631
- var u, h, d, f;
1632
- return (h = (u = i.product) == null ? void 0 : u.properties) != null && h.planingIncomingDate ? Yn((f = (d = i.product) == null ? void 0 : d.properties) == null ? void 0 : f.planingIncomingDate, Rs.getConfig().dateFormats.uiDate) : void 0;
1631
+ var u, d, h, f;
1632
+ return (d = (u = i.product) == null ? void 0 : u.properties) != null && d.planingIncomingDate ? Yn((f = (h = i.product) == null ? void 0 : h.properties) == null ? void 0 : f.planingIncomingDate, Rs.getConfig().dateFormats.uiDate) : void 0;
1633
1633
  }
1634
1634
  ), o = wi("image-gallery"), a = () => {
1635
1635
  var u;
@@ -1651,9 +1651,9 @@ const Ep = {
1651
1651
  * Открывает всплывающий диалог предпросмотра изображений.
1652
1652
  */
1653
1653
  showProductImagesPreview: a
1654
- }), (u, h) => {
1654
+ }), (u, d) => {
1655
1655
  var p, g, m, v;
1656
- const d = Wu, f = Hu;
1656
+ const h = Wu, f = Hu;
1657
1657
  return x(), R("div", null, [
1658
1658
  T("div", Wp, [
1659
1659
  T("span", null, [
@@ -1666,7 +1666,7 @@ const Ep = {
1666
1666
  ]),
1667
1667
  T("div", jp, [
1668
1668
  u.product.supplierSku ? (x(), R("div", Xp, [
1669
- h[0] || (h[0] = oe(" Артикул производителя/поставщика: ")),
1669
+ d[0] || (d[0] = oe(" Артикул производителя/поставщика: ")),
1670
1670
  T("span", Up, q(u.product.supplierSku), 1)
1671
1671
  ])) : U("", !0),
1672
1672
  T("div", Yp, [
@@ -1678,14 +1678,14 @@ const Ep = {
1678
1678
  default: F(() => [
1679
1679
  T("div", qp, [
1680
1680
  T("span", Gp, "Фото (" + q(u.product.images.length) + ")", 1),
1681
- z(d, { class: "mt-0.5" })
1681
+ z(h, { class: "mt-0.5" })
1682
1682
  ])
1683
1683
  ]),
1684
1684
  _: 1
1685
1685
  }, 8, ["images"])) : U("", !0)
1686
1686
  ]),
1687
1687
  u.showCode ? (x(), R("span", Kp, [
1688
- h[1] || (h[1] = oe(" Артикул: ")),
1688
+ d[1] || (d[1] = oe(" Артикул: ")),
1689
1689
  T("span", Zp, q(u.product.code), 1)
1690
1690
  ])) : U("", !0),
1691
1691
  u.product.stockCount && u.product.stockCount.length > 0 ? (x(), re(Hp, {
@@ -1694,18 +1694,18 @@ const Ep = {
1694
1694
  }, {
1695
1695
  default: F(() => [
1696
1696
  T("span", Jp, [
1697
- h[2] || (h[2] = T("span", { class: "underline decoration-dashed" }, "В наличии", -1)),
1697
+ d[2] || (d[2] = T("span", { class: "underline decoration-dashed" }, "В наличии", -1)),
1698
1698
  z(f, { class: "mt-0.5" })
1699
1699
  ])
1700
1700
  ]),
1701
1701
  _: 1
1702
1702
  }, 8, ["product"])) : (x(), R("span", Qp, " Нет в наличии ")),
1703
1703
  (g = (p = u.product) == null ? void 0 : p.properties) != null && g.pack ? (x(), R("span", eg, [
1704
- h[3] || (h[3] = oe(" Норма упаковки: ")),
1704
+ d[3] || (d[3] = oe(" Норма упаковки: ")),
1705
1705
  T("span", tg, q((v = (m = u.product) == null ? void 0 : m.properties) == null ? void 0 : v.pack), 1)
1706
1706
  ])) : U("", !0),
1707
1707
  u.showPlanningDates && r.value ? (x(), R("span", ig, [
1708
- h[4] || (h[4] = oe(" Планируемая дата поступления на основной склад: ")),
1708
+ d[4] || (d[4] = oe(" Планируемая дата поступления на основной склад: ")),
1709
1709
  T("span", ng, q(r.value), 1)
1710
1710
  ])) : U("", !0)
1711
1711
  ]),
@@ -1870,9 +1870,9 @@ const Ep = {
1870
1870
  () => vi(t.showHideForClientButton) ? t.showHideForClientButton(t.categoryItem) : t.showHideForClientButton
1871
1871
  ), c = N(() => vi(t.showPinButton) ? t.showPinButton(t.categoryItem) : t.showPinButton), u = N(
1872
1872
  () => vi(t.showCategoryEditButton) ? t.showCategoryEditButton(t.categoryItem) : t.showCategoryEditButton
1873
- ), h = N(
1873
+ ), d = N(
1874
1874
  () => bs(t.categoryContextButtonsConfig) ? [] : vi(t.categoryContextButtonsConfig) ? t.categoryContextButtonsConfig(t.categoryItem) : t.categoryContextButtonsConfig
1875
- ), d = N(() => new mf(t.categoryItem)), f = H(!1), p = H(!1), g = N(() => !gn(t.selectedCategoriesItems)), m = N(() => (t.selectedCategoriesItems ?? []).some((L) => L.id === t.categoryItem.id)), v = (L) => {
1875
+ ), h = N(() => new mf(t.categoryItem)), f = H(!1), p = H(!1), g = N(() => !gn(t.selectedCategoriesItems)), m = N(() => (t.selectedCategoriesItems ?? []).some((L) => L.id === t.categoryItem.id)), v = (L) => {
1876
1876
  t.eventEmitter.emit("category:checked", { category: t.categoryItem, checked: L });
1877
1877
  }, _ = (L, Z) => {
1878
1878
  t.eventEmitter.emit("category:header-click", { categoryItem: t.categoryItem, expanded: Z, isLoadingState: f });
@@ -1918,7 +1918,7 @@ const Ep = {
1918
1918
  "onUpdate:checked": v
1919
1919
  }, null, 8, ["checked"])
1920
1920
  ])) : U("", !0),
1921
- !l.value && ((Be = d.value) != null && Be.isDisabled) ? (x(), re(X, {
1921
+ !l.value && ((Be = h.value) != null && Be.isDisabled) ? (x(), re(X, {
1922
1922
  key: 1,
1923
1923
  placement: "bottom",
1924
1924
  trigger: "hover"
@@ -1931,7 +1931,7 @@ const Ep = {
1931
1931
  ]),
1932
1932
  _: 1
1933
1933
  })) : U("", !0),
1934
- (($e = d.value) == null ? void 0 : $e.isFavorite) ?? !1 ? (x(), re(X, {
1934
+ (($e = h.value) == null ? void 0 : $e.isFavorite) ?? !1 ? (x(), re(X, {
1935
1935
  key: 2,
1936
1936
  placement: "bottom",
1937
1937
  trigger: "hover"
@@ -1944,7 +1944,7 @@ const Ep = {
1944
1944
  ]),
1945
1945
  _: 1
1946
1946
  })) : U("", !0),
1947
- ((Ke = d.value) == null ? void 0 : Ke.isRequired) ?? !1 ? (x(), re(X, {
1947
+ ((Ke = h.value) == null ? void 0 : Ke.isRequired) ?? !1 ? (x(), re(X, {
1948
1948
  key: 3,
1949
1949
  placement: "bottom",
1950
1950
  trigger: "hover"
@@ -1966,7 +1966,7 @@ const Ep = {
1966
1966
  class: tt({
1967
1967
  "text-base font-semibold uppercase xl:text-lg": !0,
1968
1968
  "text-gray-400 line-through": L.categoryItem.isHidden,
1969
- "text-gray-400": (Be = d.value) == null ? void 0 : Be.isDisabled
1969
+ "text-gray-400": (Be = h.value) == null ? void 0 : Be.isDisabled
1970
1970
  })
1971
1971
  }, [
1972
1972
  z(X, {
@@ -2000,7 +2000,7 @@ const Ep = {
2000
2000
  ]),
2001
2001
  _: 1
2002
2002
  }, 8, ["size"])) : U("", !0),
2003
- c.value && ((Ke = d.value) != null && Ke.manager) ? (x(), re(E, {
2003
+ c.value && ((Ke = h.value) != null && Ke.manager) ? (x(), re(E, {
2004
2004
  key: 1,
2005
2005
  size: K(i),
2006
2006
  closable: !0,
@@ -2017,14 +2017,14 @@ const Ep = {
2017
2017
  return [
2018
2018
  T("span", dg, [
2019
2019
  z(J),
2020
- oe(" " + q((dt = (Ne = d.value) == null ? void 0 : Ne.manager) == null ? void 0 : dt.name), 1)
2020
+ oe(" " + q((dt = (Ne = h.value) == null ? void 0 : Ne.manager) == null ? void 0 : dt.name), 1)
2021
2021
  ])
2022
2022
  ];
2023
2023
  }),
2024
2024
  default: F(() => {
2025
2025
  var Ne, dt;
2026
2026
  return [
2027
- oe(' Категория закреплена за "' + q((dt = (Ne = d.value) == null ? void 0 : Ne.manager) == null ? void 0 : dt.name) + '" ', 1)
2027
+ oe(' Категория закреплена за "' + q((dt = (Ne = h.value) == null ? void 0 : Ne.manager) == null ? void 0 : dt.name) + '" ', 1)
2028
2028
  ];
2029
2029
  }),
2030
2030
  _: 1
@@ -2060,7 +2060,7 @@ const Ep = {
2060
2060
  default: F(() => {
2061
2061
  var $e;
2062
2062
  return [
2063
- ($e = d.value) != null && $e.isDisabled ? (x(), re(W, { key: 1 })) : (x(), re(Y, { key: 0 }))
2063
+ ($e = h.value) != null && $e.isDisabled ? (x(), re(W, { key: 1 })) : (x(), re(Y, { key: 0 }))
2064
2064
  ];
2065
2065
  }),
2066
2066
  _: 1
@@ -2069,8 +2069,8 @@ const Ep = {
2069
2069
  default: F(() => {
2070
2070
  var $e;
2071
2071
  return [
2072
- ($e = d.value) != null && $e.isDisabled ? (x(), R(Oe, { key: 0 }, [
2073
- oe(" Скрыто для клиента" + q(d.value.hidingComment ? `. Причина: '${d.value.hidingComment}'` : ""), 1)
2072
+ ($e = h.value) != null && $e.isDisabled ? (x(), R(Oe, { key: 0 }, [
2073
+ oe(" Скрыто для клиента" + q(h.value.hidingComment ? `. Причина: '${h.value.hidingComment}'` : ""), 1)
2074
2074
  ], 64)) : (x(), R(Oe, { key: 1 }, [
2075
2075
  oe("Видимо клиенту")
2076
2076
  ], 64))
@@ -2078,7 +2078,7 @@ const Ep = {
2078
2078
  }),
2079
2079
  _: 1
2080
2080
  })) : U("", !0),
2081
- c.value && !((Be = d.value) != null && Be.manager) ? (x(), re(X, {
2081
+ c.value && !((Be = h.value) != null && Be.manager) ? (x(), re(X, {
2082
2082
  key: 1,
2083
2083
  placement: "bottom",
2084
2084
  trigger: "hover"
@@ -2097,8 +2097,8 @@ const Ep = {
2097
2097
  default: F(() => {
2098
2098
  var $e, Ke, Ne;
2099
2099
  return [
2100
- ($e = d.value) != null && $e.manager ? (x(), R(Oe, { key: 1 }, [
2101
- oe('Категория закреплена за "' + q(((Ne = (Ke = d.value) == null ? void 0 : Ke.manager) == null ? void 0 : Ne.name) ?? "-") + '"', 1)
2100
+ ($e = h.value) != null && $e.manager ? (x(), R(Oe, { key: 1 }, [
2101
+ oe('Категория закреплена за "' + q(((Ne = (Ke = h.value) == null ? void 0 : Ke.manager) == null ? void 0 : Ne.name) ?? "-") + '"', 1)
2102
2102
  ], 64)) : (x(), R(Oe, { key: 0 }, [
2103
2103
  oe("Закрепить")
2104
2104
  ], 64))
@@ -2129,9 +2129,9 @@ const Ep = {
2129
2129
  ]),
2130
2130
  _: 1
2131
2131
  })) : U("", !0),
2132
- h.value.length > 0 ? (x(), re(ke, {
2132
+ d.value.length > 0 ? (x(), re(ke, {
2133
2133
  key: 3,
2134
- options: h.value,
2134
+ options: d.value,
2135
2135
  size: K(i),
2136
2136
  trigger: "click",
2137
2137
  onSelect: w
@@ -2341,14 +2341,14 @@ const Ep = {
2341
2341
  },
2342
2342
  emits: ["submit"],
2343
2343
  setup(e, { emit: t }) {
2344
- var a, l, c, u, h, d, f, p;
2344
+ var a, l, c, u, d, h, f, p;
2345
2345
  const i = e, n = H(
2346
2346
  new Un(
2347
2347
  i.cartItem ?? new Un({
2348
2348
  product: i.product,
2349
2349
  quantity: ((l = (a = i.product) == null ? void 0 : a.properties) == null ? void 0 : l.minCount) ?? 1,
2350
2350
  // eslint-disable-next-line vue/max-len
2351
- length: ((u = (c = i.product) == null ? void 0 : c.properties) == null ? void 0 : u.minLength) || ((d = (h = i.product) == null ? void 0 : h.properties) != null && d.ignoreMinCountCheck ? 0 : (p = (f = i.product) == null ? void 0 : f.properties) == null ? void 0 : p.minCount) || 0
2351
+ length: ((u = (c = i.product) == null ? void 0 : c.properties) == null ? void 0 : u.minLength) || ((h = (d = i.product) == null ? void 0 : d.properties) != null && h.ignoreMinCountCheck ? 0 : (p = (f = i.product) == null ? void 0 : f.properties) == null ? void 0 : p.minCount) || 0
2352
2352
  })
2353
2353
  )
2354
2354
  ), s = t, r = N(() => {
@@ -2724,7 +2724,7 @@ const im = Ye({ name: "tabler-phone-call", render: tm }), nm = {
2724
2724
  return fn(i.value) ? i.value : ((a = i.value) == null ? void 0 : a.format("E.164")) ?? "";
2725
2725
  }), o = H(!1);
2726
2726
  return (a, l) => {
2727
- const c = im, u = Uu, h = Xu, d = ju, f = Vu;
2727
+ const c = im, u = Uu, d = Xu, h = ju, f = Vu;
2728
2728
  return x(), R("div", null, [
2729
2729
  T("div", {
2730
2730
  class: tt({ "border-xl relative inline-flex items-center rounded px-2": n.value && o.value, "min-w-10": !0 }),
@@ -2753,7 +2753,7 @@ const im = Ye({ name: "tabler-phone-call", render: tm }), nm = {
2753
2753
  rel: "noopener noreferrer",
2754
2754
  class: "hover:animate-pulse"
2755
2755
  }, [
2756
- z(h)
2756
+ z(d)
2757
2757
  ], 8, rm)) : U("", !0),
2758
2758
  n.value ? (x(), R("a", {
2759
2759
  key: 2,
@@ -2762,7 +2762,7 @@ const im = Ye({ name: "tabler-phone-call", render: tm }), nm = {
2762
2762
  rel: "noopener noreferrer",
2763
2763
  class: "hover:animate-pulse"
2764
2764
  }, [
2765
- z(d)
2765
+ z(h)
2766
2766
  ], 8, om)) : U("", !0),
2767
2767
  n.value ? (x(), R("a", {
2768
2768
  key: 3,
@@ -2847,7 +2847,7 @@ const dm = Ye({ name: "mdi-envelope", render: um }), hm = { class: "flex flex-co
2847
2847
  }), o = N(() => n.value || t.contact.email), a = H(!1);
2848
2848
  return (l, c) => {
2849
2849
  var m, v;
2850
- const u = Uu, h = Xu, d = ju, f = Vu, p = dm, g = tn;
2850
+ const u = Uu, d = Xu, h = ju, f = Vu, p = dm, g = tn;
2851
2851
  return x(), R("div", hm, [
2852
2852
  z(g, {
2853
2853
  disabled: l.fullView,
@@ -2886,7 +2886,7 @@ const dm = Ye({ name: "mdi-envelope", render: um }), hm = { class: "flex flex-co
2886
2886
  rel: "noopener noreferrer",
2887
2887
  class: "hover:text-3xl"
2888
2888
  }, [
2889
- z(h)
2889
+ z(d)
2890
2890
  ], 8, ym)) : U("", !0),
2891
2891
  n.value ? (x(), R("a", {
2892
2892
  key: 2,
@@ -2895,7 +2895,7 @@ const dm = Ye({ name: "mdi-envelope", render: um }), hm = { class: "flex flex-co
2895
2895
  rel: "noopener noreferrer",
2896
2896
  class: "hover:text-3xl"
2897
2897
  }, [
2898
- z(d)
2898
+ z(h)
2899
2899
  ], 8, bm)) : U("", !0),
2900
2900
  n.value ? (x(), R("a", {
2901
2901
  key: 3,
@@ -3133,7 +3133,7 @@ const qu = Ye({ name: "ion-plus", render: Vm }), jm = { class: "flex flex-col ga
3133
3133
  },
3134
3134
  { deep: !0 }
3135
3135
  ), (l, c) => {
3136
- const u = qu, h = Yu, d = Qn;
3136
+ const u = qu, d = Yu, h = Qn;
3137
3137
  return x(), re(K(or), { class: "grid gap-2 md:grid-cols-2 md:gap-6" }, {
3138
3138
  default: F(() => {
3139
3139
  var f, p, g, m, v, _, S, k, C;
@@ -3234,7 +3234,7 @@ const qu = Ye({ name: "ion-plus", render: Vm }), jm = { class: "flex flex-col ga
3234
3234
  onClick: (W) => n("click:remove-line", w)
3235
3235
  }, {
3236
3236
  default: F(() => [
3237
- z(h)
3237
+ z(d)
3238
3238
  ]),
3239
3239
  _: 2
3240
3240
  }, 1032, ["disabled", "onClick"]))
@@ -3353,7 +3353,7 @@ const qu = Ye({ name: "ion-plus", render: Vm }), jm = { class: "flex flex-col ga
3353
3353
  label: "Маркировка"
3354
3354
  }, {
3355
3355
  default: F(() => [
3356
- z(d, {
3356
+ z(h, {
3357
3357
  value: l.value.marker,
3358
3358
  "onUpdate:value": c[6] || (c[6] = (P) => l.value.marker = P),
3359
3359
  placeholder: "Введите маркировку"
@@ -4085,8 +4085,8 @@ function ll(e, t, i, n, s, r, o, a, l) {
4085
4085
  if (Math.abs(e - o) < 1e-3 && Math.abs(t - a) < 1e-3)
4086
4086
  return [new Ee(o, a)];
4087
4087
  const u = [];
4088
- for (let h = 0; h < c; h++) {
4089
- const d = h / c, f = qs(d, e, i, s, o), p = qs(d, t, n, r, a);
4088
+ for (let d = 0; d < c; d++) {
4089
+ const h = d / c, f = qs(h, e, i, s, o), p = qs(h, t, n, r, a);
4090
4090
  u.push(new Ee(f, p));
4091
4091
  }
4092
4092
  return u;
@@ -4096,24 +4096,24 @@ function rd(e, t, i, n, s, r, o, a, l) {
4096
4096
  const m = o - e, v = a - t;
4097
4097
  return Math.sqrt(m * m + v * v);
4098
4098
  }
4099
- const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, h = 3 * (i - e), d = 9 * (n - r) + 3 * (a - t), f = 6 * (t + r) - 12 * n, p = 3 * (n - t);
4099
+ const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, d = 3 * (i - e), h = 9 * (n - r) + 3 * (a - t), f = 6 * (t + r) - 12 * n, p = 3 * (n - t);
4100
4100
  function g(m) {
4101
- const v = (c * m + u) * m + h, _ = (d * m + f) * m + p;
4101
+ const v = (c * m + u) * m + d, _ = (h * m + f) * m + p;
4102
4102
  return Math.sqrt(v * v + _ * _);
4103
4103
  }
4104
4104
  return ad(g, 0, 1, l || $s.RecursionLimit);
4105
4105
  }
4106
4106
  function od(e, t, i, n, s, r, o, a) {
4107
4107
  const l = [], c = [[], []];
4108
- let u, h, d, f, p, g, m, v;
4108
+ let u, d, h, f, p, g, m, v;
4109
4109
  for (let C = 0; C < 2; ++C) {
4110
- if (C == 0 ? (h = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, d = 3 * i - 3 * e) : (h = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, d = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
4111
- if (Math.abs(h) < 1e-12)
4110
+ if (C == 0 ? (d = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, h = 3 * i - 3 * e) : (d = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, h = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
4111
+ if (Math.abs(d) < 1e-12)
4112
4112
  continue;
4113
- f = -d / h, 0 < f && f < 1 && l.push(f);
4113
+ f = -h / d, 0 < f && f < 1 && l.push(f);
4114
4114
  continue;
4115
4115
  }
4116
- m = h * h - 4 * d * u, v = Math.sqrt(m), !(m < 0) && (p = (-h + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-h - v) / (2 * u), 0 < g && g < 1 && l.push(g));
4116
+ m = d * d - 4 * h * u, v = Math.sqrt(m), !(m < 0) && (p = (-d + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-d - v) / (2 * u), 0 < g && g < 1 && l.push(g));
4117
4117
  }
4118
4118
  let _ = l.length, S = _, k;
4119
4119
  for (; _--; )
@@ -4126,8 +4126,8 @@ function od(e, t, i, n, s, r, o, a) {
4126
4126
  function ad(e, t, i, n) {
4127
4127
  let s = $s.abscissas[n - 2], r = $s.weights[n - 2], o = 0.5 * (i - t), a = o + t, l = 0, c = n + 1 >> 1, u = n & 1 ? r[l++] * e(a) : 0;
4128
4128
  for (; l < c; ) {
4129
- const h = o * s[l];
4130
- u += r[l++] * (e(a + h) + e(a - h));
4129
+ const d = o * s[l];
4130
+ u += r[l++] * (e(a + d) + e(a - d));
4131
4131
  }
4132
4132
  return o * u;
4133
4133
  }
@@ -4154,7 +4154,7 @@ function rv(e, t, i, n, s, r, o) {
4154
4154
  for (let l = 0; l < a; l++) {
4155
4155
  let c = (l + 1) / a;
4156
4156
  o && (c = 1 - c);
4157
- const u = c * r + s, h = i * Math.cos(u), d = n * Math.sin(u), f = new Ee(h, d);
4157
+ const u = c * r + s, d = i * Math.cos(u), h = n * Math.sin(u), f = new Ee(d, h);
4158
4158
  f.command = ce.line;
4159
4159
  }
4160
4160
  }
@@ -4942,13 +4942,13 @@ function jr(e, t) {
4942
4942
  }
4943
4943
  function hd(e, t, i) {
4944
4944
  let n, s, r, o, a, l, c, u;
4945
- const h = t.controls && t.controls.right, d = e.controls && e.controls.left;
4946
- return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (d || e).x, c = (d || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), d && e._relative && (r += e.x, c += e.y), rd(n, a, s, l, r, c, o, u, i);
4945
+ const d = t.controls && t.controls.right, h = e.controls && e.controls.left;
4946
+ return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (h || e).x, c = (h || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), h && e._relative && (r += e.x, c += e.y), rd(n, a, s, l, r, c, o, u, i);
4947
4947
  }
4948
4948
  function Al(e, t, i) {
4949
4949
  let n, s, r, o, a, l, c, u;
4950
- const h = t.controls && t.controls.right, d = e.controls && e.controls.left;
4951
- return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (d || e).x, c = (d || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), d && e._relative && (r += e.x, c += e.y), ll(n, a, s, l, r, c, o, u, i);
4950
+ const d = t.controls && t.controls.right, h = e.controls && e.controls.left;
4951
+ return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (h || e).x, c = (h || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), h && e._relative && (r += e.x, c += e.y), ll(n, a, s, l, r, c, o, u, i);
4952
4952
  }
4953
4953
  function qn(e) {
4954
4954
  switch (e.renderer.type) {
@@ -4976,8 +4976,8 @@ var vv = Math.cos, _v = Math.sin, Ol = Math.tan, Xo = [], Zt = class extends Q {
4976
4976
  const I = t[0] || 0, O = t[1] || 0, L = t[2] || 0;
4977
4977
  return P = C[0] * I + C[1] * O + C[2] * L, w = C[3] * I + C[4] * O + C[5] * L, A = C[6] * I + C[7] * O + C[8] * L, [P, w, A];
4978
4978
  }
4979
- const n = e[0], s = e[1], r = e[2], o = e[3], a = e[4], l = e[5], c = e[6], u = e[7], h = e[8], d = t[0], f = t[1], p = t[2], g = t[3], m = t[4], v = t[5], _ = t[6], S = t[7], k = t[8];
4980
- return i = i || new Fi(9), i[0] = n * d + s * g + r * _, i[1] = n * f + s * m + r * S, i[2] = n * p + s * v + r * k, i[3] = o * d + a * g + l * _, i[4] = o * f + a * m + l * S, i[5] = o * p + a * v + l * k, i[6] = c * d + u * g + h * _, i[7] = c * f + u * m + h * S, i[8] = c * p + u * v + h * k, i;
4979
+ const n = e[0], s = e[1], r = e[2], o = e[3], a = e[4], l = e[5], c = e[6], u = e[7], d = e[8], h = t[0], f = t[1], p = t[2], g = t[3], m = t[4], v = t[5], _ = t[6], S = t[7], k = t[8];
4980
+ return i = i || new Fi(9), i[0] = n * h + s * g + r * _, i[1] = n * f + s * m + r * S, i[2] = n * p + s * v + r * k, i[3] = o * h + a * g + l * _, i[4] = o * f + a * m + l * S, i[5] = o * p + a * v + l * k, i[6] = c * h + u * g + d * _, i[7] = c * f + u * m + d * S, i[8] = c * p + u * v + d * k, i;
4981
4981
  }
4982
4982
  static fromObject(e) {
4983
4983
  return new Zt().copy(e);
@@ -5003,15 +5003,15 @@ var vv = Math.cos, _v = Math.sin, Ol = Math.tan, Xo = [], Zt = class extends Q {
5003
5003
  const D = s[0] * e + s[1] * t + s[2] * i, W = s[3] * e + s[4] * t + s[5] * i, X = s[6] * e + s[7] * t + s[8] * i;
5004
5004
  return [D, W, X];
5005
5005
  }
5006
- const c = this.elements, u = [e, t, i, n, s, r, o, a, l], h = c[0], d = c[1], f = c[2], p = c[3], g = c[4], m = c[5], v = c[6], _ = c[7], S = c[8], k = u[0], C = u[1], P = u[2], w = u[3], A = u[4], I = u[5], O = u[6], L = u[7], Z = u[8];
5007
- return this.elements[0] = h * k + d * w + f * O, this.elements[1] = h * C + d * A + f * L, this.elements[2] = h * P + d * I + f * Z, this.elements[3] = p * k + g * w + m * O, this.elements[4] = p * C + g * A + m * L, this.elements[5] = p * P + g * I + m * Z, this.elements[6] = v * k + _ * w + S * O, this.elements[7] = v * C + _ * A + S * L, this.elements[8] = v * P + _ * I + S * Z, this.trigger(Q.Types.change);
5006
+ const c = this.elements, u = [e, t, i, n, s, r, o, a, l], d = c[0], h = c[1], f = c[2], p = c[3], g = c[4], m = c[5], v = c[6], _ = c[7], S = c[8], k = u[0], C = u[1], P = u[2], w = u[3], A = u[4], I = u[5], O = u[6], L = u[7], Z = u[8];
5007
+ return this.elements[0] = d * k + h * w + f * O, this.elements[1] = d * C + h * A + f * L, this.elements[2] = d * P + h * I + f * Z, this.elements[3] = p * k + g * w + m * O, this.elements[4] = p * C + g * A + m * L, this.elements[5] = p * P + g * I + m * Z, this.elements[6] = v * k + _ * w + S * O, this.elements[7] = v * C + _ * A + S * L, this.elements[8] = v * P + _ * I + S * Z, this.trigger(Q.Types.change);
5008
5008
  }
5009
5009
  inverse(e) {
5010
5010
  const t = this.elements;
5011
5011
  e = e || new Zt();
5012
- const i = t[0], n = t[1], s = t[2], r = t[3], o = t[4], a = t[5], l = t[6], c = t[7], u = t[8], h = u * o - a * c, d = -u * r + a * l, f = c * r - o * l;
5013
- let p = i * h + n * d + s * f;
5014
- return p ? (p = 1 / p, e.elements[0] = h * p, e.elements[1] = (-u * n + s * c) * p, e.elements[2] = (a * n - s * o) * p, e.elements[3] = d * p, e.elements[4] = (u * i - s * l) * p, e.elements[5] = (-a * i + s * r) * p, e.elements[6] = f * p, e.elements[7] = (-c * i + n * l) * p, e.elements[8] = (o * i - n * r) * p, e) : null;
5012
+ const i = t[0], n = t[1], s = t[2], r = t[3], o = t[4], a = t[5], l = t[6], c = t[7], u = t[8], d = u * o - a * c, h = -u * r + a * l, f = c * r - o * l;
5013
+ let p = i * d + n * h + s * f;
5014
+ return p ? (p = 1 / p, e.elements[0] = d * p, e.elements[1] = (-u * n + s * c) * p, e.elements[2] = (a * n - s * o) * p, e.elements[3] = h * p, e.elements[4] = (u * i - s * l) * p, e.elements[5] = (-a * i + s * r) * p, e.elements[6] = f * p, e.elements[7] = (-c * i + n * l) * p, e.elements[8] = (o * i - n * r) * p, e) : null;
5015
5015
  }
5016
5016
  scale(e, t) {
5017
5017
  return arguments.length <= 1 && (t = e), this.multiply(e, 0, 0, 0, t, 0, 0, 0, 1);
@@ -5037,12 +5037,12 @@ var vv = Math.cos, _v = Math.sin, Ol = Math.tan, Xo = [], Zt = class extends Q {
5037
5037
  toTransformArray(e, t) {
5038
5038
  const i = this.elements, n = !!t, s = i[0], r = i[1], o = i[2], a = i[3], l = i[4], c = i[5];
5039
5039
  if (e) {
5040
- const u = i[6], h = i[7], d = i[8];
5040
+ const u = i[6], d = i[7], h = i[8];
5041
5041
  if (n) {
5042
- t[0] = s, t[1] = a, t[2] = u, t[3] = r, t[4] = l, t[5] = h, t[6] = o, t[7] = c, t[8] = d;
5042
+ t[0] = s, t[1] = a, t[2] = u, t[3] = r, t[4] = l, t[5] = d, t[6] = o, t[7] = c, t[8] = h;
5043
5043
  return;
5044
5044
  }
5045
- return [s, a, u, r, l, h, o, c, d];
5045
+ return [s, a, u, r, l, d, o, c, h];
5046
5046
  }
5047
5047
  if (n) {
5048
5048
  t[0] = s, t[1] = a, t[2] = r, t[3] = l, t[4] = o, t[5] = c;
@@ -5060,12 +5060,12 @@ var vv = Math.cos, _v = Math.sin, Ol = Math.tan, Xo = [], Zt = class extends Q {
5060
5060
  toArray(e, t) {
5061
5061
  const i = this.elements, n = !!t, s = i[0], r = i[1], o = i[2], a = i[3], l = i[4], c = i[5];
5062
5062
  if (e) {
5063
- const u = i[6], h = i[7], d = i[8];
5063
+ const u = i[6], d = i[7], h = i[8];
5064
5064
  if (n) {
5065
- t[0] = s, t[1] = r, t[2] = o, t[3] = a, t[4] = l, t[5] = c, t[6] = u, t[7] = h, t[8] = d;
5065
+ t[0] = s, t[1] = r, t[2] = o, t[3] = a, t[4] = l, t[5] = c, t[6] = u, t[7] = d, t[8] = h;
5066
5066
  return;
5067
5067
  }
5068
- return [s, r, o, a, l, c, u, h, d];
5068
+ return [s, r, o, a, l, c, u, d, h];
5069
5069
  }
5070
5070
  if (n) {
5071
5071
  t[0] = s, t[1] = r, t[2] = o, t[3] = a, t[4] = l, t[5] = c;
@@ -5279,7 +5279,7 @@ var cs = Math.min, us = Math.max, yv = Math.ceil, bv = Math.floor, wv = new se()
5279
5279
  let t, i, n, s, r, o, a = 1 / 0, l = -1 / 0, c = 1 / 0, u = -1 / 0;
5280
5280
  if (this._update(!0), t = e ? this.matrix : this.worldMatrix, i = (this.linewidth || 0) / 2, n = this._renderer.vertices.length, this.linewidth > 0 || this.stroke && !/(transparent|none)/i.test(this.stroke))
5281
5281
  if (this.matrix.manual) {
5282
- const { scaleX: h, scaleY: d } = Ts(
5282
+ const { scaleX: d, scaleY: h } = Ts(
5283
5283
  t.elements[0],
5284
5284
  t.elements[3],
5285
5285
  t.elements[1],
@@ -5287,7 +5287,7 @@ var cs = Math.min, us = Math.max, yv = Math.ceil, bv = Math.floor, wv = new se()
5287
5287
  t.elements[2],
5288
5288
  t.elements[5]
5289
5289
  );
5290
- typeof h == "number" && typeof d == "number" && (i = Math.max(h, d) * (this.linewidth || 0) / 2);
5290
+ typeof d == "number" && typeof h == "number" && (i = Math.max(d, h) * (this.linewidth || 0) / 2);
5291
5291
  } else
5292
5292
  i *= typeof this.scale == "number" ? this.scale : Math.max(this.scale.x, this.scale.y);
5293
5293
  if (n <= 0)
@@ -5297,17 +5297,17 @@ var cs = Math.min, us = Math.max, yv = Math.ceil, bv = Math.floor, wv = new se()
5297
5297
  };
5298
5298
  for (s = 0; s < n; s++) {
5299
5299
  o = this._renderer.vertices[s], r = this._renderer.vertices[(s + n - 1) % n];
5300
- const [h, d] = t.multiply(r.x, r.y), [f, p] = t.multiply(o.x, o.y);
5300
+ const [d, h] = t.multiply(r.x, r.y), [f, p] = t.multiply(o.x, o.y);
5301
5301
  if (r.controls && o.controls) {
5302
5302
  let g = r.controls.right.x, m = r.controls.right.y;
5303
5303
  r.relative && (g += r.x, m += r.y);
5304
5304
  let [v, _] = t.multiply(g, m), S = o.controls.left.x, k = o.controls.left.y;
5305
5305
  o.relative && (S += o.x, k += o.y);
5306
5306
  let [C, P] = t.multiply(S, k);
5307
- const w = od(h, d, v, _, C, P, f, p);
5307
+ const w = od(d, h, v, _, C, P, f, p);
5308
5308
  c = cs(w.min.y - i, c), a = cs(w.min.x - i, a), l = us(w.max.x + i, l), u = us(w.max.y + i, u);
5309
5309
  } else
5310
- s <= 1 && (c = cs(d - i, c), a = cs(h - i, a), l = us(h + i, l), u = us(d + i, u)), c = cs(p - i, c), a = cs(f - i, a), l = us(f + i, l), u = us(p + i, u);
5310
+ s <= 1 && (c = cs(h - i, c), a = cs(d - i, a), l = us(d + i, l), u = us(h + i, u)), c = cs(p - i, c), a = cs(f - i, a), l = us(f + i, l), u = us(p + i, u);
5311
5311
  }
5312
5312
  return {
5313
5313
  top: c,
@@ -5319,7 +5319,7 @@ var cs = Math.min, us = Math.max, yv = Math.ceil, bv = Math.floor, wv = new se()
5319
5319
  };
5320
5320
  }
5321
5321
  getPointAt(e, t) {
5322
- let i, n, s, r, o, a, l, c, u, h, d, f, p, g, m, v = this.length * Math.min(Math.max(e, 0), 1);
5322
+ let i, n, s, r, o, a, l, c, u, d, h, f, p, g, m, v = this.length * Math.min(Math.max(e, 0), 1);
5323
5323
  const _ = this.vertices.length, S = _ - 1;
5324
5324
  let k = null, C = null;
5325
5325
  for (let ne = 0, B = this._lengths.length, E = 0; ne < B; ne++) {
@@ -5335,8 +5335,8 @@ var cs = Math.min, us = Math.max, yv = Math.ceil, bv = Math.floor, wv = new se()
5335
5335
  if (!C)
5336
5336
  return k;
5337
5337
  } else return C;
5338
- m = C.controls && C.controls.right, g = k.controls && k.controls.left, o = C.x, h = C.y, a = (m || C).x, d = (m || C).y, l = (g || k).x, f = (g || k).y, c = k.x, p = k.y, m && C.relative && (a += C.x, d += C.y), g && k.relative && (l += k.x, f += k.y), r = qs(e, o, a, l, c), u = qs(e, h, d, f, p);
5339
- const P = Qt(o, a, e), w = Qt(h, d, e), A = Qt(a, l, e), I = Qt(d, f, e), O = Qt(l, c, e), L = Qt(f, p, e), Z = Qt(P, A, e), D = Qt(w, I, e), W = Qt(A, O, e), X = Qt(I, L, e);
5338
+ m = C.controls && C.controls.right, g = k.controls && k.controls.left, o = C.x, d = C.y, a = (m || C).x, h = (m || C).y, l = (g || k).x, f = (g || k).y, c = k.x, p = k.y, m && C.relative && (a += C.x, h += C.y), g && k.relative && (l += k.x, f += k.y), r = qs(e, o, a, l, c), u = qs(e, d, h, f, p);
5339
+ const P = Qt(o, a, e), w = Qt(d, h, e), A = Qt(a, l, e), I = Qt(h, f, e), O = Qt(l, c, e), L = Qt(f, p, e), Z = Qt(P, A, e), D = Qt(w, I, e), W = Qt(A, O, e), X = Qt(I, L, e);
5340
5340
  return ge.isObject(t) ? (t.x = r, t.y = u, t instanceof Ee && (t.controls.left.x = Z, t.controls.left.y = D, t.controls.right.x = W, t.controls.right.y = X, (typeof t.relative != "boolean" || t.relative) && (t.controls.left.x -= r, t.controls.left.y -= u, t.controls.right.x -= r, t.controls.right.y -= u)), t.t = e, t) : (s = new Ee(
5341
5341
  r,
5342
5342
  u,
@@ -5398,10 +5398,10 @@ var cs = Math.min, us = Math.max, yv = Math.ceil, bv = Math.floor, wv = new se()
5398
5398
  if (this._flagVertices) {
5399
5399
  this._automatic && this.plot(), this._flagLength && this._updateLength(void 0, !0);
5400
5400
  const e = this._collection.length, t = this._closed, i = Math.min(this._beginning, this._ending), n = Math.max(this._beginning, this._ending), s = jr(this, i * this._length), r = jr(this, n * this._length), o = yv(s), a = bv(r);
5401
- let l, c, u, h, d, f;
5401
+ let l, c, u, d, h, f;
5402
5402
  for (this._renderer.vertices.length = 0, f = 0; f < e; f++)
5403
- this._renderer.collection.length <= f && this._renderer.collection.push(new Ee()), f > a && !c ? (d = this._renderer.collection[f].copy(this._collection[f]), this.getPointAt(n, d), d.command = this._renderer.collection[f].command, this._renderer.vertices.push(d), c = d, u = this._collection[f - 1], u && u.controls && (d.relative ? d.controls.right.clear() : d.controls.right.copy(d), u.relative ? this._renderer.collection[f - 1].controls.right.copy(u.controls.right).lerp(se.zero, 1 - d.t) : this._renderer.collection[f - 1].controls.right.copy(u.controls.right).lerp(u, 1 - d.t))) : f >= o && f <= a && (d = this._renderer.collection[f].copy(this._collection[f]), this._renderer.vertices.push(d), f === a && El(this, n) ? (c = d, !t && c.controls && (c.relative ? c.controls.right.clear() : c.controls.right.copy(c))) : f === o && El(this, i) && (l = d, l.command = ce.move, !t && l.controls && (l.relative ? l.controls.left.clear() : l.controls.left.copy(l))));
5404
- o > 0 && !l && (f = o - 1, d = this._renderer.collection[f].copy(this._collection[f]), this.getPointAt(i, d), d.command = ce.move, this._renderer.vertices.unshift(d), h = this._collection[f + 1], h && h.controls && (d.controls.left.clear(), h.relative ? this._renderer.collection[f + 1].controls.left.copy(h.controls.left).lerp(se.zero, d.t) : (wv.copy(h), this._renderer.collection[f + 1].controls.left.copy(h.controls.left).lerp(h, d.t))));
5403
+ this._renderer.collection.length <= f && this._renderer.collection.push(new Ee()), f > a && !c ? (h = this._renderer.collection[f].copy(this._collection[f]), this.getPointAt(n, h), h.command = this._renderer.collection[f].command, this._renderer.vertices.push(h), c = h, u = this._collection[f - 1], u && u.controls && (h.relative ? h.controls.right.clear() : h.controls.right.copy(h), u.relative ? this._renderer.collection[f - 1].controls.right.copy(u.controls.right).lerp(se.zero, 1 - h.t) : this._renderer.collection[f - 1].controls.right.copy(u.controls.right).lerp(u, 1 - h.t))) : f >= o && f <= a && (h = this._renderer.collection[f].copy(this._collection[f]), this._renderer.vertices.push(h), f === a && El(this, n) ? (c = h, !t && c.controls && (c.relative ? c.controls.right.clear() : c.controls.right.copy(c))) : f === o && El(this, i) && (l = h, l.command = ce.move, !t && l.controls && (l.relative ? l.controls.left.clear() : l.controls.left.copy(l))));
5404
+ o > 0 && !l && (f = o - 1, h = this._renderer.collection[f].copy(this._collection[f]), this.getPointAt(i, h), h.command = ce.move, this._renderer.vertices.unshift(h), d = this._collection[f + 1], d && d.controls && (h.controls.left.clear(), d.relative ? this._renderer.collection[f + 1].controls.left.copy(d.controls.left).lerp(se.zero, h.t) : (wv.copy(d), this._renderer.collection[f + 1].controls.left.copy(d.controls.left).lerp(d, h.t))));
5405
5405
  }
5406
5406
  return Zi.prototype._update.apply(this, arguments), this;
5407
5407
  }
@@ -5739,10 +5739,10 @@ var zl = {
5739
5739
  }
5740
5740
  _update() {
5741
5741
  const e = this._texture, t = this._columns, i = this._rows;
5742
- let n, s, r, o, a, l, c, u, h;
5742
+ let n, s, r, o, a, l, c, u, d;
5743
5743
  if (e && ((this._flagColumns || this._flagRows) && (this._amount = this._columns * this._rows), this._flagFrameRate && (this._duration = 1e3 * this._amount / this._frameRate), this._flagTexture && (this.fill = e), e.loaded)) {
5744
- c = e.image.width, u = e.image.height, n = c / t, s = u / i, o = this._amount, this.width !== n && (this.width = n), this.height !== s && (this.height = s), this._playing && this._frameRate > 0 && (ge.isNaN(this._lastFrame) && (this._lastFrame = o - 1), r = ge.performance.now() - this._startTime, h = this._lastFrame + 1, a = 1e3 * (h - this._firstFrame) / this._frameRate, this._loop ? r = r % a : r = Math.min(r, a), l = Qt(this._firstFrame, h, r / a), l = Math.floor(l), l !== this._index && (this._index = l, l >= this._lastFrame - 1 && this._onLastFrame && this._onLastFrame()));
5745
- const d = this._index % t, f = Math.floor(this._index / t), p = -n * d + (c - n) / 2, g = -s * f + (u - s) / 2;
5744
+ c = e.image.width, u = e.image.height, n = c / t, s = u / i, o = this._amount, this.width !== n && (this.width = n), this.height !== s && (this.height = s), this._playing && this._frameRate > 0 && (ge.isNaN(this._lastFrame) && (this._lastFrame = o - 1), r = ge.performance.now() - this._startTime, d = this._lastFrame + 1, a = 1e3 * (d - this._firstFrame) / this._frameRate, this._loop ? r = r % a : r = Math.min(r, a), l = Qt(this._firstFrame, d, r / a), l = Math.floor(l), l !== this._index && (this._index = l, l >= this._lastFrame - 1 && this._onLastFrame && this._onLastFrame()));
5745
+ const h = this._index % t, f = Math.floor(this._index / t), p = -n * h + (c - n) / 2, g = -s * f + (u - s) / 2;
5746
5746
  p !== e.offset.x && (e.offset.x = p), g !== e.offset.y && (e.offset.y = g);
5747
5747
  }
5748
5748
  return super._update.call(this), this;
@@ -5880,20 +5880,20 @@ var Pn = class extends ze {
5880
5880
  _update() {
5881
5881
  if (this._flagVertices || this._flagStartAngle || this._flagEndAngle || this._flagInnerRadius || this._flagOuterRadius) {
5882
5882
  const e = this._startAngle, t = this._endAngle, i = this._innerRadius, n = this._outerRadius, s = si(e, At) === si(t, At), r = i > 0, o = this.vertices;
5883
- let a = r ? o.length / 2 : o.length, l, c = 0, u, h, d, f, p, g, m, v, _;
5884
- for (s ? a-- : r || (a -= 2), u = 0, h = a - 1; u < a; u++) {
5885
- switch (d = u / h, f = o[c], p = d * (t - e) + e, g = (t - e) / a, m = n * Math.cos(p), v = n * Math.sin(p), u) {
5883
+ let a = r ? o.length / 2 : o.length, l, c = 0, u, d, h, f, p, g, m, v, _;
5884
+ for (s ? a-- : r || (a -= 2), u = 0, d = a - 1; u < a; u++) {
5885
+ switch (h = u / d, f = o[c], p = h * (t - e) + e, g = (t - e) / a, m = n * Math.cos(p), v = n * Math.sin(p), u) {
5886
5886
  case 0:
5887
5887
  l = ce.move;
5888
5888
  break;
5889
5889
  default:
5890
5890
  l = ce.curve;
5891
5891
  }
5892
- f.command = l, f.x = m, f.y = v, f.controls.left.clear(), f.controls.right.clear(), f.command === ce.curve && (_ = n * g / Math.PI, f.controls.left.x = _ * Math.cos(p - yt), f.controls.left.y = _ * Math.sin(p - yt), f.controls.right.x = _ * Math.cos(p + yt), f.controls.right.y = _ * Math.sin(p + yt), u === 1 && f.controls.left.multiplyScalar(2), u === h && f.controls.right.multiplyScalar(2)), c++;
5892
+ f.command = l, f.x = m, f.y = v, f.controls.left.clear(), f.controls.right.clear(), f.command === ce.curve && (_ = n * g / Math.PI, f.controls.left.x = _ * Math.cos(p - yt), f.controls.left.y = _ * Math.sin(p - yt), f.controls.right.x = _ * Math.cos(p + yt), f.controls.right.y = _ * Math.sin(p + yt), u === 1 && f.controls.left.multiplyScalar(2), u === d && f.controls.right.multiplyScalar(2)), c++;
5893
5893
  }
5894
5894
  if (r) {
5895
- for (s ? (o[c].command = ce.close, c++) : (a--, h = a - 1), u = 0; u < a; u++)
5896
- d = u / h, f = o[c], p = (1 - d) * (t - e) + e, g = (t - e) / a, m = i * Math.cos(p), v = i * Math.sin(p), l = ce.curve, u <= 0 && (l = s ? ce.move : ce.line), f.command = l, f.x = m, f.y = v, f.controls.left.clear(), f.controls.right.clear(), f.command === ce.curve && (_ = i * g / Math.PI, f.controls.left.x = _ * Math.cos(p + yt), f.controls.left.y = _ * Math.sin(p + yt), f.controls.right.x = _ * Math.cos(p - yt), f.controls.right.y = _ * Math.sin(p - yt), u === 1 && f.controls.left.multiplyScalar(2), u === h && f.controls.right.multiplyScalar(2)), c++;
5895
+ for (s ? (o[c].command = ce.close, c++) : (a--, d = a - 1), u = 0; u < a; u++)
5896
+ h = u / d, f = o[c], p = (1 - h) * (t - e) + e, g = (t - e) / a, m = i * Math.cos(p), v = i * Math.sin(p), l = ce.curve, u <= 0 && (l = s ? ce.move : ce.line), f.command = l, f.x = m, f.y = v, f.controls.left.clear(), f.controls.right.clear(), f.command === ce.curve && (_ = i * g / Math.PI, f.controls.left.x = _ * Math.cos(p + yt), f.controls.left.y = _ * Math.sin(p + yt), f.controls.right.x = _ * Math.cos(p - yt), f.controls.right.y = _ * Math.sin(p - yt), u === 1 && f.controls.left.multiplyScalar(2), u === d && f.controls.right.multiplyScalar(2)), c++;
5897
5897
  o[c].copy(o[0]), o[c].command = ce.line;
5898
5898
  } else s || (o[c].command = ce.line, o[c].x = 0, o[c].y = 0, c++, o[c].copy(o[0]), o[c].command = ce.line);
5899
5899
  }
@@ -5987,8 +5987,8 @@ var Ll = {
5987
5987
  !this._closed && e > 2 && (e -= 1);
5988
5988
  const t = 4 / 3 * Math.tan(Math.PI / (e * 2)), i = this._radius, n = i * t;
5989
5989
  for (let s = 0; s < this.vertices.length; s++) {
5990
- const o = s / e * At, a = i * Uo(o), l = i * Yo(o), c = n * Uo(o - yt), u = n * Yo(o - yt), h = n * Uo(o + yt), d = n * Yo(o + yt), f = this.vertices[s];
5991
- f.command = s === 0 ? ce.move : ce.curve, f.set(a, l), f.controls.left.set(c, u), f.controls.right.set(h, d);
5990
+ const o = s / e * At, a = i * Uo(o), l = i * Yo(o), c = n * Uo(o - yt), u = n * Yo(o - yt), d = n * Uo(o + yt), h = n * Yo(o + yt), f = this.vertices[s];
5991
+ f.command = s === 0 ? ce.move : ce.curve, f.set(a, l), f.controls.left.set(c, u), f.controls.right.set(d, h);
5992
5992
  }
5993
5993
  }
5994
5994
  return super._update.call(this), this;
@@ -6055,8 +6055,8 @@ var Dl = {
6055
6055
  !this._closed && e > 2 && (e -= 1);
6056
6056
  const t = 4 / 3 * Math.tan(Math.PI / (this.vertices.length * 2)), i = this._width / 2, n = this._height / 2;
6057
6057
  for (let s = 0; s < this.vertices.length; s++) {
6058
- const o = s / e * At, a = i * qo(o), l = n * Go(o), c = i * t * qo(o - yt), u = n * t * Go(o - yt), h = i * t * qo(o + yt), d = n * t * Go(o + yt), f = this.vertices[s];
6059
- f.command = s === 0 ? ce.move : ce.curve, f.set(a, l), f.controls.left.set(c, u), f.controls.right.set(h, d);
6058
+ const o = s / e * At, a = i * qo(o), l = n * Go(o), c = i * t * qo(o - yt), u = n * t * Go(o - yt), d = i * t * qo(o + yt), h = n * t * Go(o + yt), f = this.vertices[s];
6059
+ f.command = s === 0 ? ce.move : ce.curve, f.set(a, l), f.controls.left.set(c, u), f.controls.right.set(d, h);
6060
6060
  }
6061
6061
  }
6062
6062
  return super._update.call(this), this;
@@ -6652,8 +6652,8 @@ var Jt = class extends Zi {
6652
6652
  default:
6653
6653
  s = -(a + l), r = l;
6654
6654
  }
6655
- const [c, u] = t.multiply(i, s), [h, d] = t.multiply(i, r), [f, p] = t.multiply(n, s), [g, m] = t.multiply(n, r);
6656
- return s = Xl(u, d, p, m), i = Xl(c, h, f, g), n = Ul(c, h, f, g), r = Ul(u, d, p, m), {
6655
+ const [c, u] = t.multiply(i, s), [d, h] = t.multiply(i, r), [f, p] = t.multiply(n, s), [g, m] = t.multiply(n, r);
6656
+ return s = Xl(u, h, p, m), i = Xl(c, d, f, g), n = Ul(c, d, f, g), r = Ul(u, h, p, m), {
6657
6657
  top: s,
6658
6658
  left: i,
6659
6659
  right: n,
@@ -7015,11 +7015,11 @@ var vr = Math.min, _r = Math.max, vs = class extends Zi {
7015
7015
  let t, i, n, s, r, o;
7016
7016
  this._update(!0);
7017
7017
  let a = 1 / 0, l = -1 / 0, c = 1 / 0, u = -1 / 0;
7018
- const h = /texture|gradient/i;
7018
+ const d = /texture|gradient/i;
7019
7019
  i = e ? this.matrix : this.worldMatrix;
7020
- for (let d = 0; d < this.children.length; d++) {
7021
- const f = this.children[d];
7022
- if (!(!f.visible || h.test(f._renderer.type)) && (t = f.getBoundingClientRect(e), n = typeof t.top != "number" || ge.isNaN(t.top) || !isFinite(t.top), s = typeof t.left != "number" || ge.isNaN(t.left) || !isFinite(t.left), r = typeof t.right != "number" || ge.isNaN(t.right) || !isFinite(t.right), o = typeof t.bottom != "number" || ge.isNaN(t.bottom) || !isFinite(t.bottom), !(n || s || r || o)))
7020
+ for (let h = 0; h < this.children.length; h++) {
7021
+ const f = this.children[h];
7022
+ if (!(!f.visible || d.test(f._renderer.type)) && (t = f.getBoundingClientRect(e), n = typeof t.top != "number" || ge.isNaN(t.top) || !isFinite(t.top), s = typeof t.left != "number" || ge.isNaN(t.left) || !isFinite(t.left), r = typeof t.right != "number" || ge.isNaN(t.right) || !isFinite(t.right), o = typeof t.bottom != "number" || ge.isNaN(t.bottom) || !isFinite(t.bottom), !(n || s || r || o)))
7023
7023
  if (e) {
7024
7024
  const [p, g] = i.multiply(t.left, t.top), [m, v] = i.multiply(t.right, t.top), [_, S] = i.multiply(t.left, t.bottom), [k, C] = i.multiply(t.right, t.bottom);
7025
7025
  c = vr(g, v, S, C, c), a = vr(p, m, _, k, a), l = _r(p, m, _, k, l), u = _r(g, v, S, C, u);
@@ -7384,16 +7384,16 @@ function Iv(e) {
7384
7384
  function Lv(e, t) {
7385
7385
  const i = t.split(/[\s,]/), n = -parseFloat(i[0]), s = -parseFloat(i[1]), r = parseFloat(i[2]), o = parseFloat(i[3]);
7386
7386
  if (n && s)
7387
- for (let h = 0; h < e.children.length; h++) {
7388
- const d = e.children[h];
7389
- "translation" in d ? d.translation.add(n, s) : "x" in d ? d.x = n : "y" in d && (d.y = s);
7387
+ for (let d = 0; d < e.children.length; d++) {
7388
+ const h = e.children[d];
7389
+ "translation" in h ? h.translation.add(n, s) : "x" in h ? h.x = n : "y" in h && (h.y = s);
7390
7390
  }
7391
7391
  const a = typeof e.x == "number", l = typeof e.y == "number", c = typeof e.width == "number", u = typeof e.height == "number";
7392
7392
  return a && (e.translation.x += e.x), l && (e.translation.y += e.y), (c || u) && (e.scale = new se(1, 1)), c && (e.scale.x = e.width / r), u && (e.scale.y = e.height / o), e.mask = new wn(0, 0, r, o), e.mask.origin.set(-r / 2, -o / 2), e;
7393
7393
  }
7394
7394
  function oi(e, t, i) {
7395
7395
  const n = {}, s = {}, r = {};
7396
- let o, a, l, c, u, h, d, f, p, g, m, v, _, S, k, C, P;
7396
+ let o, a, l, c, u, d, h, f, p, g, m, v, _, S, k, C, P;
7397
7397
  if (e === null)
7398
7398
  return n;
7399
7399
  if (lt.getComputedStyle) {
@@ -7402,26 +7402,26 @@ function oi(e, t, i) {
7402
7402
  l = w[o], c = w[l], typeof c < "u" && (n[l] = c);
7403
7403
  }
7404
7404
  for (o = 0; o < e.attributes.length; o++)
7405
- h = e.attributes[o], /style/i.test(h.nodeName) ? Bv(h.value, r) : s[h.nodeName] = h.value;
7405
+ d = e.attributes[o], /style/i.test(d.nodeName) ? Bv(d.value, r) : s[d.nodeName] = d.value;
7406
7406
  typeof n.opacity < "u" && (n["stroke-opacity"] = n.opacity, n["fill-opacity"] = n.opacity, delete n.opacity), i && ge.defaults(n, i), ge.extend(n, r, s), n.visible = !(typeof n.display > "u" && /none/i.test(n.display)) || typeof n.visibility > "u" && /hidden/i.test(n.visibility);
7407
7407
  for (l in n)
7408
7408
  switch (c = n[l], l) {
7409
7409
  case "gradientTransform":
7410
7410
  if (/none/i.test(c) || (a = e.gradientTransform && e.gradientTransform.baseVal && e.gradientTransform.baseVal.length > 0 ? e.gradientTransform.baseVal[0].matrix : e.getCTM ? e.getCTM() : null, a === null))
7411
7411
  break;
7412
- switch (d = Ts(a), t._renderer.type) {
7412
+ switch (h = Ts(a), t._renderer.type) {
7413
7413
  case "linear-gradient":
7414
- Jl(d, t.left), Jl(d, t.right);
7414
+ Jl(h, t.left), Jl(h, t.right);
7415
7415
  break;
7416
7416
  case "radial-gradient":
7417
- t.center.x += d.translateX, t.center.y += d.translateY, t.focal.x += d.translateX, t.focal.y += d.translateY, t.radius *= Math.max(d.scaleX, d.scaleY);
7417
+ t.center.x += h.translateX, t.center.y += h.translateY, t.focal.x += h.translateX, t.focal.y += h.translateY, t.radius *= Math.max(h.scaleX, h.scaleY);
7418
7418
  break;
7419
7419
  }
7420
7420
  break;
7421
7421
  case "transform":
7422
7422
  if (/none/i.test(c) || (a = e.transform && e.transform.baseVal && e.transform.baseVal.length > 0 ? e.transform.baseVal[0].matrix : e.getCTM ? e.getCTM() : null, a === null))
7423
7423
  break;
7424
- d = Ts(a), t.translation.set(d.translateX, d.translateY), t.rotation = Math.PI * (d.rotation / 180), t.scale = new se(d.scaleX, d.scaleY), f = parseFloat((n.x + "").replace("px")), p = parseFloat((n.y + "").replace("px")), f && (t.translation.x = f), p && (t.translation.y = p);
7424
+ h = Ts(a), t.translation.set(h.translateX, h.translateY), t.rotation = Math.PI * (h.rotation / 180), t.scale = new se(h.scaleX, h.scaleY), f = parseFloat((n.x + "").replace("px")), p = parseFloat((n.y + "").replace("px")), f && (t.translation.x = f), p && (t.translation.y = p);
7425
7425
  break;
7426
7426
  case "visible":
7427
7427
  if (t instanceof ft) {
@@ -7536,8 +7536,8 @@ var st = {
7536
7536
  Dv(i[p], t);
7537
7537
  const n = st.g.call(this, e), s = e.getAttribute("viewBox"), r = e.getAttribute("x"), o = e.getAttribute("y"), a = e.getAttribute("width"), l = e.getAttribute("height");
7538
7538
  n.defs = t;
7539
- const c = s !== null, u = r !== null, h = o !== null, d = a !== null, f = l !== null;
7540
- return u && (n.x = parseFloat(r.replace(Ri.unitSuffix, ""))), h && (n.y = parseFloat(o.replace(Ri.unitSuffix, ""))), d && (n.width = parseFloat(a.replace(Ri.unitSuffix, ""))), f && (n.height = parseFloat(l.replace(Ri.unitSuffix, ""))), c && Lv(n, s), delete st.defs.current, n;
7539
+ const c = s !== null, u = r !== null, d = o !== null, h = a !== null, f = l !== null;
7540
+ return u && (n.x = parseFloat(r.replace(Ri.unitSuffix, ""))), d && (n.y = parseFloat(o.replace(Ri.unitSuffix, ""))), h && (n.width = parseFloat(a.replace(Ri.unitSuffix, ""))), f && (n.height = parseFloat(l.replace(Ri.unitSuffix, ""))), c && Lv(n, s), delete st.defs.current, n;
7541
7541
  },
7542
7542
  defs: function(e) {
7543
7543
  return null;
@@ -7554,8 +7554,8 @@ var st = {
7554
7554
  ), console.warn(i.name, i.message), null;
7555
7555
  const o = st.defs.current.get(s).cloneNode(!0);
7556
7556
  for (let l = 0; l < e.attributes.length; l++) {
7557
- const c = e.attributes[l], u = Ev.includes(c.nodeName), h = !o.hasAttribute(c.nodeName);
7558
- (u || h) && o.setAttribute(c.nodeName, c.value);
7557
+ const c = e.attributes[l], u = Ev.includes(c.nodeName), d = !o.hasAttribute(c.nodeName);
7558
+ (u || d) && o.setAttribute(c.nodeName, c.value);
7559
7559
  }
7560
7560
  const a = Gs(o.nodeName);
7561
7561
  return st[a].call(this, o, t);
@@ -7599,9 +7599,9 @@ var st = {
7599
7599
  let n = [], s = !1, r = !1;
7600
7600
  if (i) {
7601
7601
  let a = new Ee(), l, c, u = i.match(/[a-df-z][^a-df-z]*/gi);
7602
- const h = u.length - 1;
7603
- ge.each(u.slice(0), function(d, f) {
7604
- const p = d.slice(1).trim().match(Ri.path), g = d[0], m = g.toLowerCase();
7602
+ const d = u.length - 1;
7603
+ ge.each(u.slice(0), function(h, f) {
7604
+ const p = h.slice(1).trim().match(Ri.path), g = h[0], m = g.toLowerCase();
7605
7605
  let v, _, S, k, C;
7606
7606
  const P = [];
7607
7607
  switch (f === 0 && (u = []), m) {
@@ -7640,15 +7640,15 @@ var st = {
7640
7640
  }
7641
7641
  u = Array.prototype.concat.apply(u, P);
7642
7642
  } else
7643
- u.push(d);
7644
- }), ge.each(u, function(d, f) {
7643
+ u.push(h);
7644
+ }), ge.each(u, function(h, f) {
7645
7645
  let p, g, m;
7646
- const v = d[0], _ = v.toLowerCase();
7647
- c = d.slice(1).trim().match(Ri.path), r = v === _;
7646
+ const v = h[0], _ = v.toLowerCase();
7647
+ c = h.slice(1).trim().match(Ri.path), r = v === _;
7648
7648
  let S, k, C, P, w, A, I, O, L, Z, D, W, X, ne, B, E, J;
7649
7649
  switch (_) {
7650
7650
  case "z":
7651
- if (f >= h)
7651
+ if (f >= d)
7652
7652
  s = !0;
7653
7653
  else {
7654
7654
  g = a.x, m = a.y, p = new Ee(
@@ -7766,15 +7766,15 @@ var st = {
7766
7766
  const l = (o + s) / 2, c = (a + r) / 2;
7767
7767
  /userSpaceOnUse/i.test(i) && (s -= l, r -= c, o -= l, a -= c);
7768
7768
  const u = [];
7769
- for (let d = 0; d < e.children.length; d++) {
7770
- const f = e.children[d];
7769
+ for (let h = 0; h < e.children.length; h++) {
7770
+ const f = e.children[h];
7771
7771
  let p = f.getAttribute("offset");
7772
7772
  /%/gi.test(p) && (p = parseFloat(p.replace(/%/gi, "")) / 100), p = parseFloat(p);
7773
7773
  let g = f.getAttribute("stop-color"), m = f.getAttribute("stop-opacity"), v = f.getAttribute("style"), _;
7774
7774
  g === null && (_ = v ? v.match(/stop-color:\s?([#a-fA-F0-9]*)/) : !1, g = _ && _.length > 1 ? _[1] : void 0), m === null ? (_ = v ? v.match(/stop-opacity:\s?([0-9.-]*)/) : !1, m = _ && _.length > 1 ? parseFloat(_[1]) : 1) : m = parseFloat(m), u.push(new Ai(p, g, m));
7775
7775
  }
7776
- const h = new Qe(s, r, o, a, u);
7777
- return h.spread = n, h.units = i, oi.call(this, e, h, t), h;
7776
+ const d = new Qe(s, r, o, a, u);
7777
+ return d.spread = n, d.units = i, oi.call(this, e, d, t), d;
7778
7778
  },
7779
7779
  radialgradient: function(e, t) {
7780
7780
  let i = e.getAttribute("gradientUnits"), n = e.getAttribute("spreadMethod");
@@ -7783,16 +7783,16 @@ var st = {
7783
7783
  ge.isNaN(a) && (a = s), ge.isNaN(l) && (l = r);
7784
7784
  const c = Math.abs(s + a) / 2, u = Math.abs(r + l) / 2;
7785
7785
  /userSpaceOnUse/i.test(i) && (s -= c, r -= u, a -= c, l -= u);
7786
- const h = [];
7786
+ const d = [];
7787
7787
  for (let f = 0; f < e.children.length; f++) {
7788
7788
  const p = e.children[f];
7789
7789
  let g = p.getAttribute("offset");
7790
7790
  /%/gi.test(g) && (g = parseFloat(g.replace(/%/gi, "")) / 100), g = parseFloat(g);
7791
7791
  let m = p.getAttribute("stop-color"), v = p.getAttribute("stop-opacity"), _ = p.getAttribute("style"), S;
7792
- m === null && (S = _ ? _.match(/stop-color:\s?([#a-fA-F0-9]*)/) : !1, m = S && S.length > 1 ? S[1] : void 0), v === null ? (S = _ ? _.match(/stop-opacity:\s?([0-9.-]*)/) : !1, v = S && S.length > 1 ? parseFloat(S[1]) : 1) : v = parseFloat(v), h.push(new Ai(g, m, v));
7792
+ m === null && (S = _ ? _.match(/stop-color:\s?([#a-fA-F0-9]*)/) : !1, m = S && S.length > 1 ? S[1] : void 0), v === null ? (S = _ ? _.match(/stop-opacity:\s?([0-9.-]*)/) : !1, v = S && S.length > 1 ? parseFloat(S[1]) : 1) : v = parseFloat(v), d.push(new Ai(g, m, v));
7793
7793
  }
7794
- const d = new et(s, r, o, h, a, l);
7795
- return d.spread = n, d.units = i, oi.call(this, e, d, t), d;
7794
+ const h = new et(s, r, o, d, a, l);
7795
+ return h.spread = n, h.units = i, oi.call(this, e, h, t), h;
7796
7796
  },
7797
7797
  text: function(e, t) {
7798
7798
  const i = Av(e.getAttribute("text-anchor")) || "left", n = Ov(e) || "baseline";
@@ -8007,10 +8007,10 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8007
8007
  },
8008
8008
  path: {
8009
8009
  render: function(e, t, i) {
8010
- let n, s, r, o, a, l, c, u, h, d, f, p, g, m, v, _, S, k, C, P, w, A, I, O, L, Z, D, W, X, ne, B, E, J, Y;
8010
+ let n, s, r, o, a, l, c, u, d, h, f, p, g, m, v, _, S, k, C, P, w, A, I, O, L, Z, D, W, X, ne, B, E, J, Y;
8011
8011
  if (Y = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, X = this._mask, ne = this._clip, a = this._opacity * (Y || 1), l = this._visible, !t && (!l || ne || a === 0))
8012
8012
  return this;
8013
- if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, c = this._cap, u = this._join, h = this._miter, d = this._closed, f = this._renderer.vertices, p = f.length, g = p - 1, B = wr(n), J = this.dashes, B || (e.save(), e.transform(
8013
+ if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, c = this._cap, u = this._join, d = this._miter, h = this._closed, f = this._renderer.vertices, p = f.length, g = p - 1, B = wr(n), J = this.dashes, B || (e.save(), e.transform(
8014
8014
  n[0],
8015
8015
  n[3],
8016
8016
  n[1],
@@ -8035,7 +8035,7 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8035
8035
  const fe = De.getRendererType(s._renderer.type);
8036
8036
  De[fe].render.call(s, e, this), e.strokeStyle = s._renderer.effect;
8037
8037
  }
8038
- r && (e.lineWidth = r), h && (e.miterLimit = h), u && (e.lineJoin = u), !d && c && (e.lineCap = c);
8038
+ r && (e.lineWidth = r), d && (e.miterLimit = d), u && (e.lineJoin = u), !h && c && (e.lineCap = c);
8039
8039
  }
8040
8040
  typeof a == "number" && (e.globalAlpha = a), J && J.length > 0 && (e.lineDashOffset = J.offset || 0, e.setLineDash(J)), e.beginPath();
8041
8041
  let ee, V, j, ae, ke, he, be;
@@ -8045,7 +8045,7 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8045
8045
  e.closePath();
8046
8046
  break;
8047
8047
  case ce.arc:
8048
- ee = _.rx, V = _.ry, j = _.xAxisRotation, ae = _.largeArcFlag, ke = _.sweepFlag, m = d ? si(fe - 1, p) : Pa(fe - 1, 0), v = f[m], he = v.x, be = v.y, De.renderSvgArcCommand(
8048
+ ee = _.rx, V = _.ry, j = _.xAxisRotation, ae = _.largeArcFlag, ke = _.sweepFlag, m = h ? si(fe - 1, p) : Pa(fe - 1, 0), v = f[m], he = v.x, be = v.y, De.renderSvgArcCommand(
8049
8049
  e,
8050
8050
  he,
8051
8051
  be,
@@ -8059,7 +8059,7 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8059
8059
  );
8060
8060
  break;
8061
8061
  case ce.curve:
8062
- m = d ? si(fe - 1, p) : Math.max(fe - 1, 0), v = f[m], I = v.controls && v.controls.right || se.zero, O = _.controls && _.controls.left || se.zero, v._relative ? (w = I.x + v.x, A = I.y + v.y) : (w = I.x, A = I.y), _._relative ? (C = O.x + _.x, P = O.y + _.y) : (C = O.x, P = O.y), e.bezierCurveTo(w, A, C, P, D, W), fe >= g && d && (S = k, L = _.controls && _.controls.right || se.zero, Z = S.controls && S.controls.left || se.zero, _._relative ? (w = L.x + _.x, A = L.y + _.y) : (w = L.x, A = L.y), S._relative ? (C = Z.x + S.x, P = Z.y + S.y) : (C = Z.x, P = Z.y), D = S.x, W = S.y, e.bezierCurveTo(w, A, C, P, D, W));
8062
+ m = h ? si(fe - 1, p) : Math.max(fe - 1, 0), v = f[m], I = v.controls && v.controls.right || se.zero, O = _.controls && _.controls.left || se.zero, v._relative ? (w = I.x + v.x, A = I.y + v.y) : (w = I.x, A = I.y), _._relative ? (C = O.x + _.x, P = O.y + _.y) : (C = O.x, P = O.y), e.bezierCurveTo(w, A, C, P, D, W), fe >= g && h && (S = k, L = _.controls && _.controls.right || se.zero, Z = S.controls && S.controls.left || se.zero, _._relative ? (w = L.x + _.x, A = L.y + _.y) : (w = L.x, A = L.y), S._relative ? (C = Z.x + S.x, P = Z.y + S.y) : (C = Z.x, P = Z.y), D = S.x, W = S.y, e.bezierCurveTo(w, A, C, P, D, W));
8063
8063
  break;
8064
8064
  case ce.line:
8065
8065
  e.lineTo(D, W);
@@ -8068,7 +8068,7 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8068
8068
  k = _, e.moveTo(D, W);
8069
8069
  break;
8070
8070
  }
8071
- return d && e.closePath(), !ne && !i && (De.isHidden.test(o) || (E = o._renderer && o._renderer.offset, E && (e.save(), e.translate(-o._renderer.offset.x, -o._renderer.offset.y), e.scale(o._renderer.scale.x, o._renderer.scale.y)), e.fill(), E && e.restore()), De.isHidden.test(s) || (E = s._renderer && s._renderer.offset, E && (e.save(), e.translate(
8071
+ return h && e.closePath(), !ne && !i && (De.isHidden.test(o) || (E = o._renderer && o._renderer.offset, E && (e.save(), e.translate(-o._renderer.offset.x, -o._renderer.offset.y), e.scale(o._renderer.scale.x, o._renderer.scale.y)), e.fill(), E && e.restore()), De.isHidden.test(s) || (E = s._renderer && s._renderer.offset, E && (e.save(), e.translate(
8072
8072
  -s._renderer.offset.x,
8073
8073
  -s._renderer.offset.y
8074
8074
  ), e.scale(s._renderer.scale.x, s._renderer.scale.y), e.lineWidth = r / s._renderer.scale.x), e.stroke(), E && e.restore())), B || e.restore(), ne && !i && e.clip(), J && J.length > 0 && e.setLineDash(Ko), this.flagReset();
@@ -8076,10 +8076,10 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8076
8076
  },
8077
8077
  points: {
8078
8078
  render: function(e, t, i) {
8079
- let n, s, r, o, a, l, c, u, h, d, f, p, g, m, v, _;
8079
+ let n, s, r, o, a, l, c, u, d, h, f, p, g, m, v, _;
8080
8080
  if (_ = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, a = this._opacity * (_ || 1), l = this._visible, !t && (!l || a === 0))
8081
8081
  return this;
8082
- if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, u = this._renderer.collection, h = u.length, g = wr(n), v = this.dashes, c = this._size, g || (e.save(), e.transform(n[0], n[3], n[1], n[4], n[2], n[5])), o)
8082
+ if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, u = this._renderer.collection, d = u.length, g = wr(n), v = this.dashes, c = this._size, g || (e.save(), e.transform(n[0], n[3], n[1], n[4], n[2], n[5])), o)
8083
8083
  if (typeof o == "string")
8084
8084
  e.fillStyle = o;
8085
8085
  else {
@@ -8098,8 +8098,8 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8098
8098
  typeof a == "number" && (e.globalAlpha = a), v && v.length > 0 && (e.lineDashOffset = v.offset || 0, e.setLineDash(v)), e.beginPath();
8099
8099
  let S = c * 0.5, k;
8100
8100
  this._sizeAttenuation || (k = this.worldMatrix.elements, k = Ts(k[0], k[3], k[1], k[4], k[2], k[5]), S /= Math.max(k.scaleX, k.scaleY));
8101
- for (let C = 0; C < h; C++)
8102
- d = u[C], f = d.x, p = d.y, e.moveTo(f + S, p), e.arc(f, p, S, 0, At);
8101
+ for (let C = 0; C < d; C++)
8102
+ h = u[C], f = h.x, p = h.y, e.moveTo(f + S, p), e.arc(f, p, S, 0, At);
8103
8103
  return i || (De.isHidden.test(o) || (m = o._renderer && o._renderer.offset, m && (e.save(), e.translate(-o._renderer.offset.x, -o._renderer.offset.y), e.scale(o._renderer.scale.x, o._renderer.scale.y)), e.fill(), m && e.restore()), De.isHidden.test(s) || (m = s._renderer && s._renderer.offset, m && (e.save(), e.translate(
8104
8104
  -s._renderer.offset.x,
8105
8105
  -s._renderer.offset.y
@@ -8112,7 +8112,7 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8112
8112
  if (!t && (!r || a || s === 0))
8113
8113
  return this;
8114
8114
  this._update();
8115
- const l = this._matrix.elements, c = this._stroke, u = this._linewidth, h = this._fill, d = this._decoration, f = this._direction, p = wr(l), g = h._renderer && h._renderer.offset && c._renderer && c._renderer.offset, m = this.dashes, v = De.alignments[this._alignment] || this._alignment, _ = De.baselines[this._baseline] || this._baseline;
8115
+ const l = this._matrix.elements, c = this._stroke, u = this._linewidth, d = this._fill, h = this._decoration, f = this._direction, p = wr(l), g = d._renderer && d._renderer.offset && c._renderer && c._renderer.offset, m = this.dashes, v = De.alignments[this._alignment] || this._alignment, _ = De.baselines[this._baseline] || this._baseline;
8116
8116
  let S, k, C, P, w, A, I, O, L, Z, D;
8117
8117
  if (p || (e.save(), e.transform(
8118
8118
  l[0],
@@ -8130,12 +8130,12 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8130
8130
  this._weight,
8131
8131
  this._size + "px/" + this._leading + "px",
8132
8132
  this._family
8133
- ].join(" ")), e.textAlign = v, e.textBaseline = _, e.direction = f, h)
8134
- if (typeof h == "string")
8135
- e.fillStyle = h;
8133
+ ].join(" ")), e.textAlign = v, e.textBaseline = _, e.direction = f, d)
8134
+ if (typeof d == "string")
8135
+ e.fillStyle = d;
8136
8136
  else {
8137
- const W = De.getRendererType(h._renderer.type);
8138
- De[W].render.call(h, e, this), e.fillStyle = h._renderer.effect;
8137
+ const W = De.getRendererType(d._renderer.type);
8138
+ De[W].render.call(d, e, this), e.fillStyle = d._renderer.effect;
8139
8139
  }
8140
8140
  if (c) {
8141
8141
  if (typeof c == "string")
@@ -8146,13 +8146,13 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8146
8146
  }
8147
8147
  u && (e.lineWidth = u);
8148
8148
  }
8149
- if (typeof s == "number" && (e.globalAlpha = s), m && m.length > 0 && (e.lineDashOffset = m.offset || 0, e.setLineDash(m)), !a && !i && (De.isHidden.test(h) || (h._renderer && h._renderer.offset ? (A = h._renderer.scale.x, I = h._renderer.scale.y, e.save(), e.translate(-h._renderer.offset.x, -h._renderer.offset.y), e.scale(A, I), S = this._size / h._renderer.scale.y, k = this._leading / h._renderer.scale.y, e.font = [
8149
+ if (typeof s == "number" && (e.globalAlpha = s), m && m.length > 0 && (e.lineDashOffset = m.offset || 0, e.setLineDash(m)), !a && !i && (De.isHidden.test(d) || (d._renderer && d._renderer.offset ? (A = d._renderer.scale.x, I = d._renderer.scale.y, e.save(), e.translate(-d._renderer.offset.x, -d._renderer.offset.y), e.scale(A, I), S = this._size / d._renderer.scale.y, k = this._leading / d._renderer.scale.y, e.font = [
8150
8150
  this._style,
8151
8151
  this._weight,
8152
8152
  S + "px/",
8153
8153
  k + "px",
8154
8154
  this._family
8155
- ].join(" "), C = h._renderer.offset.x / h._renderer.scale.x, P = h._renderer.offset.y / h._renderer.scale.y, e.fillText(this.value, C, P), e.restore()) : e.fillText(this.value, 0, 0)), De.isHidden.test(c) || (c._renderer && c._renderer.offset ? (A = c._renderer.scale.x, I = c._renderer.scale.y, e.save(), e.translate(
8155
+ ].join(" "), C = d._renderer.offset.x / d._renderer.scale.x, P = d._renderer.offset.y / d._renderer.scale.y, e.fillText(this.value, C, P), e.restore()) : e.fillText(this.value, 0, 0)), De.isHidden.test(c) || (c._renderer && c._renderer.offset ? (A = c._renderer.scale.x, I = c._renderer.scale.y, e.save(), e.translate(
8156
8156
  -c._renderer.offset.x,
8157
8157
  -c._renderer.offset.y
8158
8158
  ), e.scale(A, I), S = this._size / c._renderer.scale.y, k = this._leading / c._renderer.scale.y, e.font = [
@@ -8161,10 +8161,10 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8161
8161
  S + "px/",
8162
8162
  k + "px",
8163
8163
  this._family
8164
- ].join(" "), C = c._renderer.offset.x / c._renderer.scale.x, P = c._renderer.offset.y / c._renderer.scale.y, w = u / c._renderer.scale.x, e.lineWidth = w, e.strokeText(this.value, C, P), e.restore()) : e.strokeText(this.value, 0, 0))), /(underline|strikethrough)/i.test(d)) {
8164
+ ].join(" "), C = c._renderer.offset.x / c._renderer.scale.x, P = c._renderer.offset.y / c._renderer.scale.y, w = u / c._renderer.scale.x, e.lineWidth = w, e.strokeText(this.value, C, P), e.restore()) : e.strokeText(this.value, 0, 0))), /(underline|strikethrough)/i.test(h)) {
8165
8165
  const W = e.measureText(this.value);
8166
8166
  let X = 1;
8167
- switch (d) {
8167
+ switch (h) {
8168
8168
  case "underline":
8169
8169
  L = W.actualBoundingBoxDescent, D = W.actualBoundingBoxDescent;
8170
8170
  break;
@@ -8244,7 +8244,7 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8244
8244
  },
8245
8245
  renderSvgArcCommand: function(e, t, i, n, s, r, o, a, l, c) {
8246
8246
  a = a * Math.PI / 180, n = tc(n), s = tc(s);
8247
- const u = (t - l) / 2, h = (i - c) / 2, d = br(a) * u + yr(a) * h, f = -yr(a) * u + br(a) * h, p = d * d, g = f * f;
8247
+ const u = (t - l) / 2, d = (i - c) / 2, h = br(a) * u + yr(a) * d, f = -yr(a) * u + br(a) * d, p = h * h, g = f * f;
8248
8248
  let m = n * n, v = s * s;
8249
8249
  const _ = p / m + g / v;
8250
8250
  if (_ > 1) {
@@ -8254,10 +8254,10 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8254
8254
  const S = m * g + v * p, k = (m * v - S) / S;
8255
8255
  let C = Xr(Pa(0, k));
8256
8256
  r === o && (C = -C);
8257
- const P = C * n * f / s, w = -C * s * d / n, A = br(a) * P - yr(a) * w + (t + l) / 2, I = yr(a) * P + br(a) * w + (i + c) / 2, O = ic(1, 0, (d - P) / n, (f - w) / s), L = ic(
8258
- (d - P) / n,
8257
+ const P = C * n * f / s, w = -C * s * h / n, A = br(a) * P - yr(a) * w + (t + l) / 2, I = yr(a) * P + br(a) * w + (i + c) / 2, O = ic(1, 0, (h - P) / n, (f - w) / s), L = ic(
8258
+ (h - P) / n,
8259
8259
  (f - w) / s,
8260
- (-d - P) / n,
8260
+ (-h - P) / n,
8261
8261
  (-f - w) / s
8262
8262
  ) % At, Z = O + L;
8263
8263
  Uv(
@@ -8291,11 +8291,11 @@ var Ko = [], Pa = Math.max, jv = Math.min, tc = Math.abs, yr = Math.sin, br = Ma
8291
8291
  };
8292
8292
  y(Rt, "Utils", De);
8293
8293
  function Uv(e, t, i, n, s, r, o, a, l) {
8294
- const c = o - r, u = $s.Tolerance.epsilon, h = Math.abs(c) < u;
8295
- let d = si(c, At);
8296
- d < u && (h ? d = 0 : d = At), a === !0 && !h && (d === At ? d = -At : d = d - At);
8294
+ const c = o - r, u = $s.Tolerance.epsilon, d = Math.abs(c) < u;
8295
+ let h = si(c, At);
8296
+ h < u && (d ? h = 0 : h = At), a === !0 && !d && (h === At ? h = -At : h = h - At);
8297
8297
  for (let f = 0; f < Vt.Resolution; f++) {
8298
- const p = f / (Vt.Resolution - 1), g = r + p * d;
8298
+ const p = f / (Vt.Resolution - 1), g = r + p * h;
8299
8299
  let m = t + n * Math.cos(g), v = i + s * Math.sin(g);
8300
8300
  if (l !== 0) {
8301
8301
  const _ = Math.cos(l), S = Math.sin(l), k = m - t, C = v - i;
@@ -8348,7 +8348,7 @@ var pe = {
8348
8348
  let i = e.length, n = i - 1, s, r = "";
8349
8349
  for (let o = 0; o < i; o++) {
8350
8350
  const a = e[o], l = t ? si(o - 1, i) : Math.max(o - 1, 0), c = e[l];
8351
- let u, h, d, f, p, g, m, v, _, S, k, C, P, w, A, I = Xe(a.x), O = Xe(a.y);
8351
+ let u, d, h, f, p, g, m, v, _, S, k, C, P, w, A, I = Xe(a.x), O = Xe(a.y);
8352
8352
  switch (a.command) {
8353
8353
  case ce.close:
8354
8354
  u = ce.close;
@@ -8357,7 +8357,7 @@ var pe = {
8357
8357
  k = a.rx, C = a.ry, P = a.xAxisRotation, w = a.largeArcFlag, A = a.sweepFlag, u = ce.arc + " " + k + " " + C + " " + P + " " + w + " " + A + " " + I + " " + O;
8358
8358
  break;
8359
8359
  case ce.curve:
8360
- m = c.controls && c.controls.right || se.zero, v = a.controls && a.controls.left || se.zero, c.relative ? (d = Xe(m.x + c.x), f = Xe(m.y + c.y)) : (d = Xe(m.x), f = Xe(m.y)), a.relative ? (p = Xe(v.x + a.x), g = Xe(v.y + a.y)) : (p = Xe(v.x), g = Xe(v.y)), u = (o === 0 ? ce.move : ce.curve) + " " + d + " " + f + " " + p + " " + g + " " + I + " " + O;
8360
+ m = c.controls && c.controls.right || se.zero, v = a.controls && a.controls.left || se.zero, c.relative ? (h = Xe(m.x + c.x), f = Xe(m.y + c.y)) : (h = Xe(m.x), f = Xe(m.y)), a.relative ? (p = Xe(v.x + a.x), g = Xe(v.y + a.y)) : (p = Xe(v.x), g = Xe(v.y)), u = (o === 0 ? ce.move : ce.curve) + " " + h + " " + f + " " + p + " " + g + " " + I + " " + O;
8361
8361
  break;
8362
8362
  case ce.move:
8363
8363
  s = a, u = ce.move + " " + I + " " + O;
@@ -8365,7 +8365,7 @@ var pe = {
8365
8365
  default:
8366
8366
  u = a.command + " " + I + " " + O;
8367
8367
  }
8368
- o >= n && t && (a.command === ce.curve && (h = s, _ = a.controls && a.controls.right || a, S = h.controls && h.controls.left || h, a.relative ? (d = Xe(_.x + a.x), f = Xe(_.y + a.y)) : (d = Xe(_.x), f = Xe(_.y)), h.relative ? (p = Xe(S.x + h.x), g = Xe(S.y + h.y)) : (p = Xe(S.x), g = Xe(S.y)), I = Xe(h.x), O = Xe(h.y), u += " C " + d + " " + f + " " + p + " " + g + " " + I + " " + O), a.command !== ce.close && (u += " Z")), r += u + " ";
8368
+ o >= n && t && (a.command === ce.curve && (d = s, _ = a.controls && a.controls.right || a, S = d.controls && d.controls.left || d, a.relative ? (h = Xe(_.x + a.x), f = Xe(_.y + a.y)) : (h = Xe(_.x), f = Xe(_.y)), d.relative ? (p = Xe(S.x + d.x), g = Xe(S.y + d.y)) : (p = Xe(S.x), g = Xe(S.y)), I = Xe(d.x), O = Xe(d.y), u += " C " + h + " " + f + " " + p + " " + g + " " + I + " " + O), a.command !== ce.close && (u += " Z")), r += u + " ";
8369
8369
  }
8370
8370
  return r;
8371
8371
  },
@@ -8752,7 +8752,7 @@ var ai = {
8752
8752
  },
8753
8753
  path: {
8754
8754
  updateCanvas: function(e, t) {
8755
- let i, n, s, r, o, a, l, c, u, h, d, f, p, g;
8755
+ let i, n, s, r, o, a, l, c, u, d, h, f, p, g;
8756
8756
  const m = t._renderer.vertices, v = this.canvas, _ = this.ctx, S = e.renderer.ratio, k = nc.copy(t._renderer.scale).multiply(S), C = t._stroke, P = t._linewidth, w = t._fill, A = t._renderer.opacity || t._opacity, I = t._cap, O = t._join, L = t._miter, Z = t._closed, D = t.dashes, W = m.length, X = W - 1;
8757
8757
  v.width = Math.max(
8758
8758
  Math.ceil(t._renderer.rect.width * k.x),
@@ -8806,7 +8806,7 @@ var ai = {
8806
8806
  );
8807
8807
  break;
8808
8808
  case ce.curve:
8809
- i = Z ? si(be - 1, W) : Math.max(be - 1, 0), n = m[i], c = n.controls && n.controls.right || se.zero, u = fe.controls && fe.controls.left || se.zero, n._relative ? (a = c.x + n.x, l = c.y + n.y) : (a = c.x, l = c.y), fe._relative ? (r = u.x + fe.x, o = u.y + fe.y) : (r = u.x, o = u.y), _.bezierCurveTo(a, l, r, o, f, p), be >= X && Z && (s = J, h = fe.controls && fe.controls.right || se.zero, d = s.controls && s.controls.left || se.zero, fe._relative ? (a = h.x + fe.x, l = h.y + fe.y) : (a = h.x, l = h.y), s._relative ? (r = d.x + s.x, o = d.y + s.y) : (r = d.x, o = d.y), f = s.x, p = s.y, _.bezierCurveTo(a, l, r, o, f, p));
8809
+ i = Z ? si(be - 1, W) : Math.max(be - 1, 0), n = m[i], c = n.controls && n.controls.right || se.zero, u = fe.controls && fe.controls.left || se.zero, n._relative ? (a = c.x + n.x, l = c.y + n.y) : (a = c.x, l = c.y), fe._relative ? (r = u.x + fe.x, o = u.y + fe.y) : (r = u.x, o = u.y), _.bezierCurveTo(a, l, r, o, f, p), be >= X && Z && (s = J, d = fe.controls && fe.controls.right || se.zero, h = s.controls && s.controls.left || se.zero, fe._relative ? (a = d.x + fe.x, l = d.y + fe.y) : (a = d.x, l = d.y), s._relative ? (r = h.x + s.x, o = h.y + s.y) : (r = h.x, o = h.y), f = s.x, p = s.y, _.bezierCurveTo(a, l, r, o, f, p));
8810
8810
  break;
8811
8811
  case ce.line:
8812
8812
  _.lineTo(f, p);
@@ -8821,9 +8821,9 @@ var ai = {
8821
8821
  getBoundingClientRect: function(e, t, i) {
8822
8822
  let n = 1 / 0, s = -1 / 0, r = 1 / 0, o = -1 / 0, a, l;
8823
8823
  e.forEach(function(c) {
8824
- const u = c.x, h = c.y, d = c.controls;
8824
+ const u = c.x, d = c.y, h = c.controls;
8825
8825
  let f, p, g, m, v, _;
8826
- r = Math.min(h, r), n = Math.min(u, n), s = Math.max(u, s), o = Math.max(h, o), c.controls && (v = d.left, _ = d.right, !(!v || !_) && (f = c._relative ? v.x + u : v.x, p = c._relative ? v.y + h : v.y, g = c._relative ? _.x + u : _.x, m = c._relative ? _.y + h : _.y, !(!f || !p || !g || !m) && (r = Math.min(p, m, r), n = Math.min(f, g, n), s = Math.max(f, g, s), o = Math.max(p, m, o))));
8826
+ r = Math.min(d, r), n = Math.min(u, n), s = Math.max(u, s), o = Math.max(d, o), c.controls && (v = h.left, _ = h.right, !(!v || !_) && (f = c._relative ? v.x + u : v.x, p = c._relative ? v.y + d : v.y, g = c._relative ? _.x + u : _.x, m = c._relative ? _.y + d : _.y, !(!f || !p || !g || !m) && (r = Math.min(p, m, r), n = Math.min(f, g, n), s = Math.max(f, g, s), o = Math.max(p, m, o))));
8827
8827
  }), typeof t == "number" && (r -= t, n -= t, s += t, o += t), a = s - n, l = o - r, i.top = r, i.left = n, i.right = s, i.bottom = o, i.width = a, i.height = l, i.centroid || (i.centroid = {}), i.centroid.x = -n, i.centroid.y = -r;
8828
8828
  },
8829
8829
  render: function(e, t, i) {
@@ -8837,15 +8837,15 @@ var ai = {
8837
8837
  n._renderer.matrix,
8838
8838
  this._renderer.matrix
8839
8839
  ), this._renderer.scale instanceof se || (this._renderer.scale = new se());
8840
- let h, d;
8841
- this._scale instanceof se ? (h = this._scale.x * n._renderer.scale.x, d = this._scale.y * n._renderer.scale.y) : (h = this._scale * n._renderer.scale.x, d = this._scale * n._renderer.scale.y), this._renderer.scale.x = h < 0 ? -h : h, this._renderer.scale.y = d < 0 ? -d : d, l && (this._renderer.parent = n);
8840
+ let d, h;
8841
+ this._scale instanceof se ? (d = this._scale.x * n._renderer.scale.x, h = this._scale.y * n._renderer.scale.y) : (d = this._scale * n._renderer.scale.x, h = this._scale * n._renderer.scale.y), this._renderer.scale.x = d < 0 ? -d : d, this._renderer.scale.y = h < 0 ? -h : h, l && (this._renderer.parent = n);
8842
8842
  }
8843
8843
  if (this._mask) {
8844
8844
  e.clear(e.STENCIL_BUFFER_BIT), e.enable(e.STENCIL_TEST), e.stencilFunc(e.ALWAYS, 1, 0), e.stencilOp(e.KEEP, e.KEEP, e.REPLACE), e.colorMask(!1, !1, !1, !1);
8845
- const h = Rt.Utils.getRendererType(
8845
+ const d = Rt.Utils.getRendererType(
8846
8846
  this._mask._renderer.type
8847
8847
  );
8848
- Pe[h].render.call(this._mask, e, t, this), e.stencilFunc(e.EQUAL, 1, 255), e.stencilOp(e.KEEP, e.KEEP, e.KEEP), e.colorMask(!0, !0, !0, !0);
8848
+ Pe[d].render.call(this._mask, e, t, this), e.stencilFunc(e.EQUAL, 1, 255), e.stencilOp(e.KEEP, e.KEEP, e.KEEP), e.colorMask(!0, !0, !0, !0);
8849
8849
  }
8850
8850
  if (c ? (this._renderer.rect || (this._renderer.rect = {}), this._renderer.opacity = this._opacity * n._renderer.opacity, Pe.path.getBoundingClientRect(
8851
8851
  this._renderer.vertices,
@@ -8869,10 +8869,10 @@ var ai = {
8869
8869
  points: {
8870
8870
  updateCanvas: function(e, t) {
8871
8871
  let i;
8872
- const n = this.canvas, s = this.ctx, r = e.renderer.ratio, o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, h = t._size * r;
8873
- let d = h;
8874
- Pe.isHidden.test(o) || (d += a), n.width = sd(d), n.height = n.width;
8875
- const f = d / n.width, p = n.width / 2, g = n.height / 2;
8872
+ const n = this.canvas, s = this.ctx, r = e.renderer.ratio, o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, d = t._size * r;
8873
+ let h = d;
8874
+ Pe.isHidden.test(o) || (h += a), n.width = sd(h), n.height = n.width;
8875
+ const f = h / n.width, p = n.width / 2, g = n.height / 2;
8876
8876
  if (s.clearRect(0, 0, n.width, n.height), l)
8877
8877
  if (typeof l == "string")
8878
8878
  s.fillStyle = l;
@@ -8893,26 +8893,26 @@ var ai = {
8893
8893
  }
8894
8894
  a && (s.lineWidth = a / f);
8895
8895
  }
8896
- typeof c == "number" && (s.globalAlpha = c), u && u.length > 0 && (s.lineDashOffset = u.offset || 0, s.setLineDash(u)), s.save(), s.translate(p, g), s.scale(Pe.precision, Pe.precision), s.beginPath(), s.arc(0, 0, h / f * 0.5, 0, At), s.restore(), closed && s.closePath(), Pe.isHidden.test(l) || (i = l._renderer && l._renderer.offset, i && (s.save(), s.translate(-l._renderer.offset.x, -l._renderer.offset.y), s.scale(l._renderer.scale.x, l._renderer.scale.y)), s.fill(), i && s.restore()), Pe.isHidden.test(o) || (i = o._renderer && o._renderer.offset, i && (s.save(), s.translate(-o._renderer.offset.x, -o._renderer.offset.y), s.scale(o._renderer.scale.x, o._renderer.scale.y), s.lineWidth = a / o._renderer.scale.x), s.stroke(), i && s.restore());
8896
+ typeof c == "number" && (s.globalAlpha = c), u && u.length > 0 && (s.lineDashOffset = u.offset || 0, s.setLineDash(u)), s.save(), s.translate(p, g), s.scale(Pe.precision, Pe.precision), s.beginPath(), s.arc(0, 0, d / f * 0.5, 0, At), s.restore(), closed && s.closePath(), Pe.isHidden.test(l) || (i = l._renderer && l._renderer.offset, i && (s.save(), s.translate(-l._renderer.offset.x, -l._renderer.offset.y), s.scale(l._renderer.scale.x, l._renderer.scale.y)), s.fill(), i && s.restore()), Pe.isHidden.test(o) || (i = o._renderer && o._renderer.offset, i && (s.save(), s.translate(-o._renderer.offset.x, -o._renderer.offset.y), s.scale(o._renderer.scale.x, o._renderer.scale.y), s.lineWidth = a / o._renderer.scale.x), s.stroke(), i && s.restore());
8897
8897
  },
8898
8898
  render: function(e, t, i) {
8899
8899
  if (!this._visible || !this._opacity)
8900
8900
  return this;
8901
8901
  this._update();
8902
8902
  let n = this._size;
8903
- const s = i || this.parent, r = t[this._renderer.type], o = this._sizeAttenuation, a = this._stroke, l = this._linewidth, c = s._matrix.manual || s._flagMatrix, u = this._matrix.manual || this._flagMatrix, h = this._renderer.parent !== s, d = this._renderer.vertices, f = this._renderer.collection.length, p = this._flagVertices, g = this._flagFill || this._fill instanceof Qe && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagEndPoints) || this._fill instanceof et && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagRadius || this._fill._flagCenter || this._fill._flagFocal) || this._fill instanceof We && (this._fill._flagLoaded && this._fill.loaded || this._fill._flagImage || this._fill._flagVideo || this._fill._flagRepeat || this._fill._flagOffset || this._fill._flagScale) || this._stroke instanceof Qe && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagEndPoints) || this._stroke instanceof et && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagRadius || this._stroke._flagCenter || this._stroke._flagFocal) || this._stroke instanceof We && (this._stroke._flagLoaded && this._stroke.loaded || this._stroke._flagImage || this._stroke._flagVideo || this._stroke._flagRepeat || this._stroke._flagOffset || this._fill._flagScale) || this._flagStroke || this._flagLinewidth || this._flagOpacity || s._flagOpacity || this._flagVisible || this._flagScale || this.dashes && this.dashes.length > 0 || !this._renderer.texture;
8904
- if (c || u || h) {
8903
+ const s = i || this.parent, r = t[this._renderer.type], o = this._sizeAttenuation, a = this._stroke, l = this._linewidth, c = s._matrix.manual || s._flagMatrix, u = this._matrix.manual || this._flagMatrix, d = this._renderer.parent !== s, h = this._renderer.vertices, f = this._renderer.collection.length, p = this._flagVertices, g = this._flagFill || this._fill instanceof Qe && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagEndPoints) || this._fill instanceof et && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagRadius || this._fill._flagCenter || this._fill._flagFocal) || this._fill instanceof We && (this._fill._flagLoaded && this._fill.loaded || this._fill._flagImage || this._fill._flagVideo || this._fill._flagRepeat || this._fill._flagOffset || this._fill._flagScale) || this._stroke instanceof Qe && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagEndPoints) || this._stroke instanceof et && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagRadius || this._stroke._flagCenter || this._stroke._flagFocal) || this._stroke instanceof We && (this._stroke._flagLoaded && this._stroke.loaded || this._stroke._flagImage || this._stroke._flagVideo || this._stroke._flagRepeat || this._stroke._flagOffset || this._fill._flagScale) || this._flagStroke || this._flagLinewidth || this._flagOpacity || s._flagOpacity || this._flagVisible || this._flagScale || this.dashes && this.dashes.length > 0 || !this._renderer.texture;
8904
+ if (c || u || d) {
8905
8905
  this._renderer.matrix || (this._renderer.matrix = new Fi(9)), this._matrix.toTransformArray(!0, rn), xr(
8906
8906
  rn,
8907
8907
  s._renderer.matrix,
8908
8908
  this._renderer.matrix
8909
8909
  ), this._renderer.scale instanceof se || (this._renderer.scale = new se());
8910
8910
  let m, v;
8911
- this._scale instanceof se ? (m = this._scale.x * s._renderer.scale.x, v = this._scale.y * s._renderer.scale.y) : (m = this._scale * s._renderer.scale.x, v = this._scale * s._renderer.scale.y), this._renderer.scale.x = m < 0 ? -m : m, this._renderer.scale.y = v < 0 ? -v : v, h && (this._renderer.parent = s);
8911
+ this._scale instanceof se ? (m = this._scale.x * s._renderer.scale.x, v = this._scale.y * s._renderer.scale.y) : (m = this._scale * s._renderer.scale.x, v = this._scale * s._renderer.scale.y), this._renderer.scale.x = m < 0 ? -m : m, this._renderer.scale.y = v < 0 ? -v : v, d && (this._renderer.parent = s);
8912
8912
  }
8913
8913
  if (p) {
8914
8914
  const m = this._renderer.positionBuffer;
8915
- m && e.deleteBuffer(m), this._renderer.positionBuffer = e.createBuffer(), e.bindBuffer(e.ARRAY_BUFFER, this._renderer.positionBuffer), e.vertexAttribPointer(r.position, 2, e.FLOAT, !1, 0, 0), e.enableVertexAttribArray(r.position), e.bufferData(e.ARRAY_BUFFER, d, e.STATIC_DRAW);
8915
+ m && e.deleteBuffer(m), this._renderer.positionBuffer = e.createBuffer(), e.bindBuffer(e.ARRAY_BUFFER, this._renderer.positionBuffer), e.vertexAttribPointer(r.position, 2, e.FLOAT, !1, 0, 0), e.enableVertexAttribArray(r.position), e.bufferData(e.ARRAY_BUFFER, h, e.STATIC_DRAW);
8916
8916
  }
8917
8917
  return g ? (this._renderer.opacity = this._opacity * s._renderer.opacity, Pe.updateTexture.call(Pe, e, this)) : (this._fill && this._fill._update && this._fill._update(), this._stroke && this._stroke._update && this._stroke._update()), this._clip && !i || !this._renderer.texture ? this : (Pe.isHidden.test(a) || (n += l), n /= Pe.precision, o && (n *= Math.max(this._renderer.scale.x, this._renderer.scale.y)), t.current !== r && (e.useProgram(r), t.resolution.flagged || e.uniform2f(
8918
8918
  e.getUniformLocation(r, "u_resolution"),
@@ -8927,7 +8927,7 @@ var ai = {
8927
8927
  },
8928
8928
  text: {
8929
8929
  updateCanvas: function(e, t) {
8930
- const i = this.canvas, n = this.ctx, s = e.renderer.ratio, r = nc.copy(t._renderer.scale).multiply(s), o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, h = t._decoration, d = t._direction;
8930
+ const i = this.canvas, n = this.ctx, s = e.renderer.ratio, r = nc.copy(t._renderer.scale).multiply(s), o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, d = t._decoration, h = t._direction;
8931
8931
  i.width = Math.max(
8932
8932
  Math.ceil(t._renderer.rect.width * r.x),
8933
8933
  1
@@ -8943,7 +8943,7 @@ var ai = {
8943
8943
  t._weight,
8944
8944
  t._size + "px/" + t._leading + "px",
8945
8945
  t._family
8946
- ].join(" ")), n.textAlign = "center", n.textBaseline = "middle", n.textDirection = d, l)
8946
+ ].join(" ")), n.textAlign = "center", n.textBaseline = "middle", n.textDirection = h, l)
8947
8947
  if (typeof l == "string")
8948
8948
  n.fillStyle = l;
8949
8949
  else {
@@ -8975,9 +8975,9 @@ var ai = {
8975
8975
  m + "px/",
8976
8976
  v + "px",
8977
8977
  t._family
8978
- ].join(" "), _ = o._renderer.offset.x / o._renderer.scale.x, S = o._renderer.offset.y / o._renderer.scale.y, k = a / o._renderer.scale.x, n.lineWidth = k, n.strokeText(t.value, _, S), n.restore()) : n.strokeText(t.value, 0, 0)), /(underline|strikethrough)/i.test(h)) {
8978
+ ].join(" "), _ = o._renderer.offset.x / o._renderer.scale.x, S = o._renderer.offset.y / o._renderer.scale.y, k = a / o._renderer.scale.x, n.lineWidth = k, n.strokeText(t.value, _, S), n.restore()) : n.strokeText(t.value, 0, 0)), /(underline|strikethrough)/i.test(d)) {
8979
8979
  const Z = n.measureText(t.value);
8980
- switch (h) {
8980
+ switch (d) {
8981
8981
  case "underline":
8982
8982
  A = Z.actualBoundingBoxDescent, O = Z.actualBoundingBoxDescent;
8983
8983
  break;
@@ -9037,8 +9037,8 @@ var ai = {
9037
9037
  n._renderer.matrix,
9038
9038
  this._renderer.matrix
9039
9039
  ), this._renderer.scale instanceof se || (this._renderer.scale = new se());
9040
- let u, h;
9041
- this._scale instanceof se ? (u = this._scale.x * n._renderer.scale.x, h = this._scale.y * n._renderer.scale.y) : (u = this._scale * n._renderer.scale.x, h = this._scale * n._renderer.scale.y), this._renderer.scale.x = u < 0 ? -u : u, this._renderer.scale.y = h < 0 ? -h : h, a && (this._renderer.parent = n);
9040
+ let u, d;
9041
+ this._scale instanceof se ? (u = this._scale.x * n._renderer.scale.x, d = this._scale.y * n._renderer.scale.y) : (u = this._scale * n._renderer.scale.x, d = this._scale * n._renderer.scale.y), this._renderer.scale.x = u < 0 ? -u : u, this._renderer.scale.y = d < 0 ? -d : d, a && (this._renderer.parent = n);
9042
9042
  }
9043
9043
  if (this._mask) {
9044
9044
  e.clear(e.STENCIL_BUFFER_BIT), e.enable(e.STENCIL_TEST), e.stencilFunc(e.ALWAYS, 1, 0), e.stencilOp(e.KEEP, e.KEEP, e.REPLACE), e.colorMask(!1, !1, !1, !1);
@@ -10681,8 +10681,8 @@ function Sd(e, t, i, n, s, r, o, a, l) {
10681
10681
  if (Math.abs(e - o) < 1e-3 && Math.abs(t - a) < 1e-3)
10682
10682
  return [new He(o, a)];
10683
10683
  const u = [];
10684
- for (let h = 0; h < c; h++) {
10685
- const d = h / c, f = Yr(d, e, i, s, o), p = Yr(d, t, n, r, a);
10684
+ for (let d = 0; d < c; d++) {
10685
+ const h = d / c, f = Yr(h, e, i, s, o), p = Yr(h, t, n, r, a);
10686
10686
  u.push(new He(f, p));
10687
10687
  }
10688
10688
  return u;
@@ -10692,24 +10692,24 @@ function s0(e, t, i, n, s, r, o, a, l) {
10692
10692
  const m = o - e, v = a - t;
10693
10693
  return Math.sqrt(m * m + v * v);
10694
10694
  }
10695
- const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, h = 3 * (i - e), d = 9 * (n - r) + 3 * (a - t), f = 6 * (t + r) - 12 * n, p = 3 * (n - t);
10695
+ const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, d = 3 * (i - e), h = 9 * (n - r) + 3 * (a - t), f = 6 * (t + r) - 12 * n, p = 3 * (n - t);
10696
10696
  function g(m) {
10697
- const v = (c * m + u) * m + h, _ = (d * m + f) * m + p;
10697
+ const v = (c * m + u) * m + d, _ = (h * m + f) * m + p;
10698
10698
  return Math.sqrt(v * v + _ * _);
10699
10699
  }
10700
10700
  return o0(g, 0, 1, l || Ur.RecursionLimit);
10701
10701
  }
10702
10702
  function r0(e, t, i, n, s, r, o, a) {
10703
10703
  const l = [], c = [[], []];
10704
- let u, h, d, f, p, g, m, v;
10704
+ let u, d, h, f, p, g, m, v;
10705
10705
  for (let C = 0; C < 2; ++C) {
10706
- if (C == 0 ? (h = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, d = 3 * i - 3 * e) : (h = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, d = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
10707
- if (Math.abs(h) < 1e-12)
10706
+ if (C == 0 ? (d = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, h = 3 * i - 3 * e) : (d = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, h = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
10707
+ if (Math.abs(d) < 1e-12)
10708
10708
  continue;
10709
- f = -d / h, 0 < f && f < 1 && l.push(f);
10709
+ f = -h / d, 0 < f && f < 1 && l.push(f);
10710
10710
  continue;
10711
10711
  }
10712
- m = h * h - 4 * d * u, v = Math.sqrt(m), !(m < 0) && (p = (-h + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-h - v) / (2 * u), 0 < g && g < 1 && l.push(g));
10712
+ m = d * d - 4 * h * u, v = Math.sqrt(m), !(m < 0) && (p = (-d + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-d - v) / (2 * u), 0 < g && g < 1 && l.push(g));
10713
10713
  }
10714
10714
  let _ = l.length, S = _, k;
10715
10715
  for (; _--; )
@@ -10722,8 +10722,8 @@ function r0(e, t, i, n, s, r, o, a) {
10722
10722
  function o0(e, t, i, n) {
10723
10723
  let s = Ur.abscissas[n - 2], r = Ur.weights[n - 2], o = 0.5 * (i - t), a = o + t, l = 0, c = n + 1 >> 1, u = n & 1 ? r[l++] * e(a) : 0;
10724
10724
  for (; l < c; ) {
10725
- const h = o * s[l];
10726
- u += r[l++] * (e(a + h) + e(a - h));
10725
+ const d = o * s[l];
10726
+ u += r[l++] * (e(a + d) + e(a - d));
10727
10727
  }
10728
10728
  return o * u;
10729
10729
  }
@@ -11994,13 +11994,13 @@ function Gr(e, t) {
11994
11994
  }
11995
11995
  function mc(e, t, i) {
11996
11996
  let n, s, r, o, a, l, c, u;
11997
- const h = t.controls && t.controls.right, d = e.controls && e.controls.left;
11998
- return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (d || e).x, c = (d || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), d && e._relative && (r += e.x, c += e.y), s0(n, a, s, l, r, c, o, u, i);
11997
+ const d = t.controls && t.controls.right, h = e.controls && e.controls.left;
11998
+ return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (h || e).x, c = (h || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), h && e._relative && (r += e.x, c += e.y), s0(n, a, s, l, r, c, o, u, i);
11999
11999
  }
12000
12000
  function vc(e, t, i) {
12001
12001
  let n, s, r, o, a, l, c, u;
12002
- const h = t.controls && t.controls.right, d = e.controls && e.controls.left;
12003
- return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (d || e).x, c = (d || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), d && e._relative && (r += e.x, c += e.y), Sd(n, a, s, l, r, c, o, u, i);
12002
+ const d = t.controls && t.controls.right, h = e.controls && e.controls.left;
12003
+ return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (h || e).x, c = (h || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), h && e._relative && (r += e.x, c += e.y), Sd(n, a, s, l, r, c, o, u, i);
12004
12004
  }
12005
12005
  function Kn(e) {
12006
12006
  switch (e.renderer.type) {
@@ -12048,8 +12048,8 @@ const y0 = Math.cos, b0 = Math.sin, _c = Math.tan, Zo = [], zt = class zt extend
12048
12048
  const L = n[0] || 0, Z = n[1] || 0, D = n[2] || 0;
12049
12049
  return A = w[0] * L + w[1] * Z + w[2] * D, I = w[3] * L + w[4] * Z + w[5] * D, O = w[6] * L + w[7] * Z + w[8] * D, [A, I, O];
12050
12050
  }
12051
- const r = i[0], o = i[1], a = i[2], l = i[3], c = i[4], u = i[5], h = i[6], d = i[7], f = i[8], p = n[0], g = n[1], m = n[2], v = n[3], _ = n[4], S = n[5], k = n[6], C = n[7], P = n[8];
12052
- return s = s || new sc(9), s[0] = r * p + o * v + a * k, s[1] = r * g + o * _ + a * C, s[2] = r * m + o * S + a * P, s[3] = l * p + c * v + u * k, s[4] = l * g + c * _ + u * C, s[5] = l * m + c * S + u * P, s[6] = h * p + d * v + f * k, s[7] = h * g + d * _ + f * C, s[8] = h * m + d * S + f * P, s;
12051
+ const r = i[0], o = i[1], a = i[2], l = i[3], c = i[4], u = i[5], d = i[6], h = i[7], f = i[8], p = n[0], g = n[1], m = n[2], v = n[3], _ = n[4], S = n[5], k = n[6], C = n[7], P = n[8];
12052
+ return s = s || new sc(9), s[0] = r * p + o * v + a * k, s[1] = r * g + o * _ + a * C, s[2] = r * m + o * S + a * P, s[3] = l * p + c * v + u * k, s[4] = l * g + c * _ + u * C, s[5] = l * m + c * S + u * P, s[6] = d * p + h * v + f * k, s[7] = d * g + h * _ + f * C, s[8] = d * m + h * S + f * P, s;
12053
12053
  }
12054
12054
  /**
12055
12055
  * @name Two.Matrix.fromObject
@@ -12084,8 +12084,8 @@ const y0 = Math.cos, b0 = Math.sin, _c = Math.tan, Zo = [], zt = class zt extend
12084
12084
  */
12085
12085
  set(i, n, s, r, o, a, l, c, u) {
12086
12086
  if (typeof n > "u") {
12087
- const h = i;
12088
- i = h[0], n = h[1], s = h[2], r = h[3], o = h[4], a = h[5], l = h[6], c = h[7], u = h[8];
12087
+ const d = i;
12088
+ i = d[0], n = d[1], s = d[2], r = d[3], o = d[4], a = d[5], l = d[6], c = d[7], u = d[8];
12089
12089
  }
12090
12090
  return this.elements[0] = i, this.elements[1] = n, this.elements[2] = s, this.elements[3] = r, this.elements[4] = o, this.elements[5] = a, this.elements[6] = l, this.elements[7] = c, this.elements[8] = u, this.trigger(ie.Types.change);
12091
12091
  }
@@ -12144,7 +12144,7 @@ const y0 = Math.cos, b0 = Math.sin, _c = Math.tan, Zo = [], zt = class zt extend
12144
12144
  const X = o[0] * i + o[1] * n + o[2] * s, ne = o[3] * i + o[4] * n + o[5] * s, B = o[6] * i + o[7] * n + o[8] * s;
12145
12145
  return [X, ne, B];
12146
12146
  }
12147
- const h = this.elements, d = [i, n, s, r, o, a, l, c, u], f = h[0], p = h[1], g = h[2], m = h[3], v = h[4], _ = h[5], S = h[6], k = h[7], C = h[8], P = d[0], w = d[1], A = d[2], I = d[3], O = d[4], L = d[5], Z = d[6], D = d[7], W = d[8];
12147
+ const d = this.elements, h = [i, n, s, r, o, a, l, c, u], f = d[0], p = d[1], g = d[2], m = d[3], v = d[4], _ = d[5], S = d[6], k = d[7], C = d[8], P = h[0], w = h[1], A = h[2], I = h[3], O = h[4], L = h[5], Z = h[6], D = h[7], W = h[8];
12148
12148
  return this.elements[0] = f * P + p * I + g * Z, this.elements[1] = f * w + p * O + g * D, this.elements[2] = f * A + p * L + g * W, this.elements[3] = m * P + v * I + _ * Z, this.elements[4] = m * w + v * O + _ * D, this.elements[5] = m * A + v * L + _ * W, this.elements[6] = S * P + k * I + C * Z, this.elements[7] = S * w + k * O + C * D, this.elements[8] = S * A + k * L + C * W, this.trigger(ie.Types.change);
12149
12149
  }
12150
12150
  /**
@@ -12156,9 +12156,9 @@ const y0 = Math.cos, b0 = Math.sin, _c = Math.tan, Zo = [], zt = class zt extend
12156
12156
  inverse(i) {
12157
12157
  const n = this.elements;
12158
12158
  i = i || new zt();
12159
- const s = n[0], r = n[1], o = n[2], a = n[3], l = n[4], c = n[5], u = n[6], h = n[7], d = n[8], f = d * l - c * h, p = -d * a + c * u, g = h * a - l * u;
12159
+ const s = n[0], r = n[1], o = n[2], a = n[3], l = n[4], c = n[5], u = n[6], d = n[7], h = n[8], f = h * l - c * d, p = -h * a + c * u, g = d * a - l * u;
12160
12160
  let m = s * f + r * p + o * g;
12161
- return m ? (m = 1 / m, i.elements[0] = f * m, i.elements[1] = (-d * r + o * h) * m, i.elements[2] = (c * r - o * l) * m, i.elements[3] = p * m, i.elements[4] = (d * s - o * u) * m, i.elements[5] = (-c * s + o * a) * m, i.elements[6] = g * m, i.elements[7] = (-h * s + r * u) * m, i.elements[8] = (l * s - r * a) * m, i) : null;
12161
+ return m ? (m = 1 / m, i.elements[0] = f * m, i.elements[1] = (-h * r + o * d) * m, i.elements[2] = (c * r - o * l) * m, i.elements[3] = p * m, i.elements[4] = (h * s - o * u) * m, i.elements[5] = (-c * s + o * a) * m, i.elements[6] = g * m, i.elements[7] = (-d * s + r * u) * m, i.elements[8] = (l * s - r * a) * m, i) : null;
12162
12162
  }
12163
12163
  /**
12164
12164
  * @name Two.Matrix#scale
@@ -12234,17 +12234,17 @@ const y0 = Math.cos, b0 = Math.sin, _c = Math.tan, Zo = [], zt = class zt extend
12234
12234
  * @description Create a transform array. Used for the Two.js rendering APIs.
12235
12235
  */
12236
12236
  toTransformArray(i, n) {
12237
- const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], h = s[5];
12237
+ const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], d = s[5];
12238
12238
  if (i) {
12239
- const d = s[6], f = s[7], p = s[8];
12239
+ const h = s[6], f = s[7], p = s[8];
12240
12240
  if (r) {
12241
- n[0] = o, n[1] = c, n[2] = d, n[3] = a, n[4] = u, n[5] = f, n[6] = l, n[7] = h, n[8] = p;
12241
+ n[0] = o, n[1] = c, n[2] = h, n[3] = a, n[4] = u, n[5] = f, n[6] = l, n[7] = d, n[8] = p;
12242
12242
  return;
12243
12243
  }
12244
- return [o, c, d, a, u, f, l, h, p];
12244
+ return [o, c, h, a, u, f, l, d, p];
12245
12245
  }
12246
12246
  if (r) {
12247
- n[0] = o, n[1] = c, n[2] = a, n[3] = u, n[4] = l, n[5] = h;
12247
+ n[0] = o, n[1] = c, n[2] = a, n[3] = u, n[4] = l, n[5] = d;
12248
12248
  return;
12249
12249
  }
12250
12250
  return [
@@ -12253,7 +12253,7 @@ const y0 = Math.cos, b0 = Math.sin, _c = Math.tan, Zo = [], zt = class zt extend
12253
12253
  a,
12254
12254
  u,
12255
12255
  l,
12256
- h
12256
+ d
12257
12257
  // Specific format see LN:19
12258
12258
  ];
12259
12259
  }
@@ -12265,20 +12265,20 @@ const y0 = Math.cos, b0 = Math.sin, _c = Math.tan, Zo = [], zt = class zt extend
12265
12265
  * @description Create a transform array. Used for the Two.js rendering APIs.
12266
12266
  */
12267
12267
  toArray(i, n) {
12268
- const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], h = s[5];
12268
+ const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], d = s[5];
12269
12269
  if (i) {
12270
- const d = s[6], f = s[7], p = s[8];
12270
+ const h = s[6], f = s[7], p = s[8];
12271
12271
  if (r) {
12272
- n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = h, n[6] = d, n[7] = f, n[8] = p;
12272
+ n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = d, n[6] = h, n[7] = f, n[8] = p;
12273
12273
  return;
12274
12274
  }
12275
- return [o, a, l, c, u, h, d, f, p];
12275
+ return [o, a, l, c, u, d, h, f, p];
12276
12276
  }
12277
12277
  if (r) {
12278
- n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = h;
12278
+ n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = d;
12279
12279
  return;
12280
12280
  }
12281
- return [o, a, l, c, u, h];
12281
+ return [o, a, l, c, u, d];
12282
12282
  }
12283
12283
  /**
12284
12284
  * @name Two.Matrix#toObject
@@ -12842,7 +12842,7 @@ const ds = Math.min, hs = Math.max, w0 = Math.ceil, x0 = Math.floor, k0 = new Fe
12842
12842
  * @description Return an object with top, left, right, bottom, width, and height parameters of the path.
12843
12843
  */
12844
12844
  getBoundingClientRect(i) {
12845
- let n, s, r, o, a, l, c = 1 / 0, u = -1 / 0, h = 1 / 0, d = -1 / 0;
12845
+ let n, s, r, o, a, l, c = 1 / 0, u = -1 / 0, d = 1 / 0, h = -1 / 0;
12846
12846
  if (this._update(!0), n = i ? this.matrix : this.worldMatrix, s = (this.linewidth || 0) / 2, r = this._renderer.vertices.length, this.linewidth > 0 || this.stroke && !/(transparent|none)/i.test(this.stroke))
12847
12847
  if (this.matrix.manual) {
12848
12848
  const { scaleX: f, scaleY: p } = Qv(
@@ -12871,17 +12871,17 @@ const ds = Math.min, hs = Math.max, w0 = Math.ceil, x0 = Math.floor, k0 = new Fe
12871
12871
  l.relative && (C += l.x, P += l.y);
12872
12872
  let [w, A] = n.multiply(C, P);
12873
12873
  const I = r0(f, p, S, k, w, A, g, m);
12874
- h = ds(I.min.y - s, h), c = ds(I.min.x - s, c), u = hs(I.max.x + s, u), d = hs(I.max.y + s, d);
12874
+ d = ds(I.min.y - s, d), c = ds(I.min.x - s, c), u = hs(I.max.x + s, u), h = hs(I.max.y + s, h);
12875
12875
  } else
12876
- o <= 1 && (h = ds(p - s, h), c = ds(f - s, c), u = hs(f + s, u), d = hs(p + s, d)), h = ds(m - s, h), c = ds(g - s, c), u = hs(g + s, u), d = hs(m + s, d);
12876
+ o <= 1 && (d = ds(p - s, d), c = ds(f - s, c), u = hs(f + s, u), h = hs(p + s, h)), d = ds(m - s, d), c = ds(g - s, c), u = hs(g + s, u), h = hs(m + s, h);
12877
12877
  }
12878
12878
  return {
12879
- top: h,
12879
+ top: d,
12880
12880
  left: c,
12881
12881
  right: u,
12882
- bottom: d,
12882
+ bottom: h,
12883
12883
  width: u - c,
12884
- height: d - h
12884
+ height: h - d
12885
12885
  };
12886
12886
  }
12887
12887
  /**
@@ -12893,7 +12893,7 @@ const ds = Math.min, hs = Math.max, w0 = Math.ceil, x0 = Math.floor, k0 = new Fe
12893
12893
  * @description Given a float `t` from 0 to 1, return a point or assign a passed `obj`'s coordinates to that percentage on this {@link Two.Path}'s curve.
12894
12894
  */
12895
12895
  getPointAt(i, n) {
12896
- let s, r, o, a, l, c, u, h, d, f, p, g, m, v, _, S = this.length * Math.min(Math.max(i, 0), 1);
12896
+ let s, r, o, a, l, c, u, d, h, f, p, g, m, v, _, S = this.length * Math.min(Math.max(i, 0), 1);
12897
12897
  const k = this.vertices.length, C = k - 1;
12898
12898
  let P = null, w = null;
12899
12899
  for (let E = 0, J = this._lengths.length, Y = 0; E < J; E++) {
@@ -12909,15 +12909,15 @@ const ds = Math.min, hs = Math.max, w0 = Math.ceil, x0 = Math.floor, k0 = new Fe
12909
12909
  if (!w)
12910
12910
  return P;
12911
12911
  } else return w;
12912
- _ = w.controls && w.controls.right, v = P.controls && P.controls.left, l = w.x, f = w.y, c = (_ || w).x, p = (_ || w).y, u = (v || P).x, g = (v || P).y, h = P.x, m = P.y, _ && w.relative && (c += w.x, p += w.y), v && P.relative && (u += P.x, g += P.y), a = Yr(i, l, c, u, h), d = Yr(i, f, p, g, m);
12913
- const A = Ci(l, c, i), I = Ci(f, p, i), O = Ci(c, u, i), L = Ci(p, g, i), Z = Ci(u, h, i), D = Ci(g, m, i), W = Ci(A, O, i), X = Ci(I, L, i), ne = Ci(O, Z, i), B = Ci(L, D, i);
12914
- return Je.isObject(n) ? (n.x = a, n.y = d, n instanceof He && (n.controls.left.x = W, n.controls.left.y = X, n.controls.right.x = ne, n.controls.right.y = B, (typeof n.relative != "boolean" || n.relative) && (n.controls.left.x -= a, n.controls.left.y -= d, n.controls.right.x -= a, n.controls.right.y -= d)), n.t = i, n) : (o = new He(
12912
+ _ = w.controls && w.controls.right, v = P.controls && P.controls.left, l = w.x, f = w.y, c = (_ || w).x, p = (_ || w).y, u = (v || P).x, g = (v || P).y, d = P.x, m = P.y, _ && w.relative && (c += w.x, p += w.y), v && P.relative && (u += P.x, g += P.y), a = Yr(i, l, c, u, d), h = Yr(i, f, p, g, m);
12913
+ const A = Ci(l, c, i), I = Ci(f, p, i), O = Ci(c, u, i), L = Ci(p, g, i), Z = Ci(u, d, i), D = Ci(g, m, i), W = Ci(A, O, i), X = Ci(I, L, i), ne = Ci(O, Z, i), B = Ci(L, D, i);
12914
+ return Je.isObject(n) ? (n.x = a, n.y = h, n instanceof He && (n.controls.left.x = W, n.controls.left.y = X, n.controls.right.x = ne, n.controls.right.y = B, (typeof n.relative != "boolean" || n.relative) && (n.controls.left.x -= a, n.controls.left.y -= h, n.controls.right.x -= a, n.controls.right.y -= h)), n.t = i, n) : (o = new He(
12915
12915
  a,
12916
- d,
12916
+ h,
12917
12917
  W - a,
12918
- X - d,
12918
+ X - h,
12919
12919
  ne - a,
12920
- B - d,
12920
+ B - h,
12921
12921
  this._curved ? Se.curve : Se.line
12922
12922
  ), o.t = i, o);
12923
12923
  }
@@ -12955,10 +12955,10 @@ const ds = Math.min, hs = Math.max, w0 = Math.ceil, x0 = Math.floor, k0 = new Fe
12955
12955
  o.push(new He(r.x, r.y)), c > 0 && (o[o.length - 1].command = Se.line), r = l;
12956
12956
  return;
12957
12957
  }
12958
- a = vc(l, r, i), o = o.concat(a), Je.each(a, function(u, h) {
12959
- h <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
12960
- }), c >= n && (this._closed && this._automatic && (r = l, a = vc(l, r, i), o = o.concat(a), Je.each(a, function(u, h) {
12961
- h <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
12958
+ a = vc(l, r, i), o = o.concat(a), Je.each(a, function(u, d) {
12959
+ d <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
12960
+ }), c >= n && (this._closed && this._automatic && (r = l, a = vc(l, r, i), o = o.concat(a), Je.each(a, function(u, d) {
12961
+ d <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
12962
12962
  })), o.push(new He(l.x, l.y)), o[o.length - 1].command = s ? Se.close : Se.line), r = l;
12963
12963
  },
12964
12964
  this
@@ -13000,9 +13000,9 @@ const ds = Math.min, hs = Math.max, w0 = Math.ceil, x0 = Math.floor, k0 = new Fe
13000
13000
  if (this._flagVertices) {
13001
13001
  this._automatic && this.plot(), this._flagLength && this._updateLength(void 0, !0);
13002
13002
  const i = this._collection.length, n = this._closed, s = Math.min(this._beginning, this._ending), r = Math.max(this._beginning, this._ending), o = Gr(this, s * this._length), a = Gr(this, r * this._length), l = w0(o), c = x0(a);
13003
- let u, h, d, f, p, g;
13003
+ let u, d, h, f, p, g;
13004
13004
  for (this._renderer.vertices.length = 0, g = 0; g < i; g++)
13005
- this._renderer.collection.length <= g && this._renderer.collection.push(new He()), g > c && !h ? (p = this._renderer.collection[g].copy(this._collection[g]), this.getPointAt(r, p), p.command = this._renderer.collection[g].command, this._renderer.vertices.push(p), h = p, d = this._collection[g - 1], d && d.controls && (p.relative ? p.controls.right.clear() : p.controls.right.copy(p), d.relative ? this._renderer.collection[g - 1].controls.right.copy(d.controls.right).lerp(Fe.zero, 1 - p.t) : this._renderer.collection[g - 1].controls.right.copy(d.controls.right).lerp(d, 1 - p.t))) : g >= l && g <= c && (p = this._renderer.collection[g].copy(this._collection[g]), this._renderer.vertices.push(p), g === c && gc(this, r) ? (h = p, !n && h.controls && (h.relative ? h.controls.right.clear() : h.controls.right.copy(h))) : g === l && gc(this, s) && (u = p, u.command = Se.move, !n && u.controls && (u.relative ? u.controls.left.clear() : u.controls.left.copy(u))));
13005
+ this._renderer.collection.length <= g && this._renderer.collection.push(new He()), g > c && !d ? (p = this._renderer.collection[g].copy(this._collection[g]), this.getPointAt(r, p), p.command = this._renderer.collection[g].command, this._renderer.vertices.push(p), d = p, h = this._collection[g - 1], h && h.controls && (p.relative ? p.controls.right.clear() : p.controls.right.copy(p), h.relative ? this._renderer.collection[g - 1].controls.right.copy(h.controls.right).lerp(Fe.zero, 1 - p.t) : this._renderer.collection[g - 1].controls.right.copy(h.controls.right).lerp(h, 1 - p.t))) : g >= l && g <= c && (p = this._renderer.collection[g].copy(this._collection[g]), this._renderer.vertices.push(p), g === c && gc(this, r) ? (d = p, !n && d.controls && (d.relative ? d.controls.right.clear() : d.controls.right.copy(d))) : g === l && gc(this, s) && (u = p, u.command = Se.move, !n && u.controls && (u.relative ? u.controls.left.clear() : u.controls.left.copy(u))));
13006
13006
  l > 0 && !u && (g = l - 1, p = this._renderer.collection[g].copy(this._collection[g]), this.getPointAt(s, p), p.command = Se.move, this._renderer.vertices.unshift(p), f = this._collection[g + 1], f && f.controls && (p.controls.left.clear(), f.relative ? this._renderer.collection[g + 1].controls.left.copy(f.controls.left).lerp(Fe.zero, p.t) : (k0.copy(f), this._renderer.collection[g + 1].controls.left.copy(f.controls.left).lerp(f, p.t))));
13007
13007
  }
13008
13008
  return Ji.prototype._update.apply(this, arguments), this;
@@ -13377,8 +13377,8 @@ const C0 = Math.ceil, S0 = Math.floor, Pi = class Pi extends Ji {
13377
13377
  const r = this.vertices[s], o = this.vertices[s - 1];
13378
13378
  if (!o)
13379
13379
  continue;
13380
- const a = r.x, l = r.y, c = o.x, u = o.y, h = Sd(a, l, a, l, c, u, c, u, i);
13381
- n = n.concat(h);
13380
+ const a = r.x, l = r.y, c = o.x, u = o.y, d = Sd(a, l, a, l, c, u, c, u, i);
13381
+ n = n.concat(d);
13382
13382
  }
13383
13383
  return this.vertices = n, this;
13384
13384
  }
@@ -13580,7 +13580,7 @@ no = new WeakMap();
13580
13580
  const Vi = class Vi extends Ve {
13581
13581
  constructor(i, n, s, r, o, a, l) {
13582
13582
  const c = l || Ra.Resolution * 3, u = [];
13583
- for (let h = 0; h < c; h++)
13583
+ for (let d = 0; d < c; d++)
13584
13584
  u.push(new He());
13585
13585
  super(u, !0, !1, !0);
13586
13586
  /**
@@ -13632,8 +13632,8 @@ const Vi = class Vi extends Ve {
13632
13632
  */
13633
13633
  b(this, "_outerRadius", 0);
13634
13634
  this._renderer.type = "arc-segment";
13635
- for (let h in wc)
13636
- Object.defineProperty(this, h, wc[h]);
13635
+ for (let d in wc)
13636
+ Object.defineProperty(this, d, wc[d]);
13637
13637
  typeof s == "number" && (this.innerRadius = s), typeof r == "number" && (this.outerRadius = r), typeof o == "number" && (this.startAngle = o), typeof a == "number" && (this.endAngle = a), this._update(), typeof i == "number" && (this.translation.x = i), typeof n == "number" && (this.translation.y = n);
13638
13638
  }
13639
13639
  /**
@@ -13673,22 +13673,22 @@ const Vi = class Vi extends Ve {
13673
13673
  _update() {
13674
13674
  if (this._flagVertices || this._flagStartAngle || this._flagEndAngle || this._flagInnerRadius || this._flagOuterRadius) {
13675
13675
  const i = this._startAngle, n = this._endAngle, s = this._innerRadius, r = this._outerRadius, o = Ps(i, Ln) === Ps(n, Ln), a = s > 0, l = this.vertices;
13676
- let c = a ? l.length / 2 : l.length, u, h = 0, d, f, p, g, m, v, _, S, k;
13677
- for (o ? c-- : a || (c -= 2), d = 0, f = c - 1; d < c; d++) {
13678
- switch (p = d / f, g = l[h], m = p * (n - i) + i, v = (n - i) / c, _ = r * Math.cos(m), S = r * Math.sin(m), d) {
13676
+ let c = a ? l.length / 2 : l.length, u, d = 0, h, f, p, g, m, v, _, S, k;
13677
+ for (o ? c-- : a || (c -= 2), h = 0, f = c - 1; h < c; h++) {
13678
+ switch (p = h / f, g = l[d], m = p * (n - i) + i, v = (n - i) / c, _ = r * Math.cos(m), S = r * Math.sin(m), h) {
13679
13679
  case 0:
13680
13680
  u = Se.move;
13681
13681
  break;
13682
13682
  default:
13683
13683
  u = Se.curve;
13684
13684
  }
13685
- g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (k = r * v / Math.PI, g.controls.left.x = k * Math.cos(m - xt), g.controls.left.y = k * Math.sin(m - xt), g.controls.right.x = k * Math.cos(m + xt), g.controls.right.y = k * Math.sin(m + xt), d === 1 && g.controls.left.multiplyScalar(2), d === f && g.controls.right.multiplyScalar(2)), h++;
13685
+ g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (k = r * v / Math.PI, g.controls.left.x = k * Math.cos(m - xt), g.controls.left.y = k * Math.sin(m - xt), g.controls.right.x = k * Math.cos(m + xt), g.controls.right.y = k * Math.sin(m + xt), h === 1 && g.controls.left.multiplyScalar(2), h === f && g.controls.right.multiplyScalar(2)), d++;
13686
13686
  }
13687
13687
  if (a) {
13688
- for (o ? (l[h].command = Se.close, h++) : (c--, f = c - 1), d = 0; d < c; d++)
13689
- p = d / f, g = l[h], m = (1 - p) * (n - i) + i, v = (n - i) / c, _ = s * Math.cos(m), S = s * Math.sin(m), u = Se.curve, d <= 0 && (u = o ? Se.move : Se.line), g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (k = s * v / Math.PI, g.controls.left.x = k * Math.cos(m + xt), g.controls.left.y = k * Math.sin(m + xt), g.controls.right.x = k * Math.cos(m - xt), g.controls.right.y = k * Math.sin(m - xt), d === 1 && g.controls.left.multiplyScalar(2), d === f && g.controls.right.multiplyScalar(2)), h++;
13690
- l[h].copy(l[0]), l[h].command = Se.line;
13691
- } else o || (l[h].command = Se.line, l[h].x = 0, l[h].y = 0, h++, l[h].copy(l[0]), l[h].command = Se.line);
13688
+ for (o ? (l[d].command = Se.close, d++) : (c--, f = c - 1), h = 0; h < c; h++)
13689
+ p = h / f, g = l[d], m = (1 - p) * (n - i) + i, v = (n - i) / c, _ = s * Math.cos(m), S = s * Math.sin(m), u = Se.curve, h <= 0 && (u = o ? Se.move : Se.line), g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (k = s * v / Math.PI, g.controls.left.x = k * Math.cos(m + xt), g.controls.left.y = k * Math.sin(m + xt), g.controls.right.x = k * Math.cos(m - xt), g.controls.right.y = k * Math.sin(m - xt), h === 1 && g.controls.left.multiplyScalar(2), h === f && g.controls.right.multiplyScalar(2)), d++;
13690
+ l[d].copy(l[0]), l[d].command = Se.line;
13691
+ } else o || (l[d].command = Se.line, l[d].x = 0, l[d].y = 0, d++, l[d].copy(l[0]), l[d].command = Se.line);
13692
13692
  }
13693
13693
  return super._update.call(this), this;
13694
13694
  }
@@ -13839,8 +13839,8 @@ const wc = {
13839
13839
  !this._closed && i > 2 && (i -= 1);
13840
13840
  const n = 4 / 3 * Math.tan(Math.PI / (i * 2)), s = this._radius, r = s * n;
13841
13841
  for (let o = 0; o < this.vertices.length; o++) {
13842
- const l = o / i * Ln, c = s * Jo(l), u = s * Qo(l), h = r * Jo(l - xt), d = r * Qo(l - xt), f = r * Jo(l + xt), p = r * Qo(l + xt), g = this.vertices[o];
13843
- g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(h, d), g.controls.right.set(f, p);
13842
+ const l = o / i * Ln, c = s * Jo(l), u = s * Qo(l), d = r * Jo(l - xt), h = r * Qo(l - xt), f = r * Jo(l + xt), p = r * Qo(l + xt), g = this.vertices[o];
13843
+ g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(d, h), g.controls.right.set(f, p);
13844
13844
  }
13845
13845
  }
13846
13846
  return super._update.call(this), this;
@@ -13978,8 +13978,8 @@ const xc = {
13978
13978
  !this._closed && i > 2 && (i -= 1);
13979
13979
  const n = 4 / 3 * Math.tan(Math.PI / (this.vertices.length * 2)), s = this._width / 2, r = this._height / 2;
13980
13980
  for (let o = 0; o < this.vertices.length; o++) {
13981
- const l = o / i * Ln, c = s * ea(l), u = r * ta(l), h = s * n * ea(l - xt), d = r * n * ta(l - xt), f = s * n * ea(l + xt), p = r * n * ta(l + xt), g = this.vertices[o];
13982
- g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(h, d), g.controls.right.set(f, p);
13981
+ const l = o / i * Ln, c = s * ea(l), u = r * ta(l), d = s * n * ea(l - xt), h = r * n * ta(l - xt), f = s * n * ea(l + xt), p = r * n * ta(l + xt), g = this.vertices[o];
13982
+ g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(d, h), g.controls.right.set(f, p);
13983
13983
  }
13984
13984
  }
13985
13985
  return super._update.call(this), this;
@@ -15077,8 +15077,8 @@ const Mt = class Mt extends Ji {
15077
15077
  default:
15078
15078
  o = -(c + u), a = u;
15079
15079
  }
15080
- const [h, d] = n.multiply(s, o), [f, p] = n.multiply(s, a), [g, m] = n.multiply(r, o), [v, _] = n.multiply(r, a);
15081
- return o = Pc(d, p, m, _), s = Pc(h, f, g, v), r = Mc(h, f, g, v), a = Mc(d, p, m, _), {
15080
+ const [d, h] = n.multiply(s, o), [f, p] = n.multiply(s, a), [g, m] = n.multiply(r, o), [v, _] = n.multiply(r, a);
15081
+ return o = Pc(h, p, m, _), s = Pc(d, f, g, v), r = Mc(d, f, g, v), a = Mc(h, p, m, _), {
15082
15082
  top: o,
15083
15083
  left: s,
15084
15084
  right: r,
@@ -15670,7 +15670,7 @@ const Cr = Math.min, Sr = Math.max, Gi = class Gi extends Ji {
15670
15670
  getBoundingClientRect(i) {
15671
15671
  let n, s, r, o, a, l;
15672
15672
  this._update(!0);
15673
- let c = 1 / 0, u = -1 / 0, h = 1 / 0, d = -1 / 0;
15673
+ let c = 1 / 0, u = -1 / 0, d = 1 / 0, h = -1 / 0;
15674
15674
  const f = /texture|gradient/i;
15675
15675
  s = i ? this.matrix : this.worldMatrix;
15676
15676
  for (let p = 0; p < this.children.length; p++) {
@@ -15678,17 +15678,17 @@ const Cr = Math.min, Sr = Math.max, Gi = class Gi extends Ji {
15678
15678
  if (!(!g.visible || f.test(g._renderer.type)) && (n = g.getBoundingClientRect(i), r = typeof n.top != "number" || Je.isNaN(n.top) || !isFinite(n.top), o = typeof n.left != "number" || Je.isNaN(n.left) || !isFinite(n.left), a = typeof n.right != "number" || Je.isNaN(n.right) || !isFinite(n.right), l = typeof n.bottom != "number" || Je.isNaN(n.bottom) || !isFinite(n.bottom), !(r || o || a || l)))
15679
15679
  if (i) {
15680
15680
  const [m, v] = s.multiply(n.left, n.top), [_, S] = s.multiply(n.right, n.top), [k, C] = s.multiply(n.left, n.bottom), [P, w] = s.multiply(n.right, n.bottom);
15681
- h = Cr(v, S, C, w, h), c = Cr(m, _, k, P, c), u = Sr(m, _, k, P, u), d = Sr(v, S, C, w, d);
15681
+ d = Cr(v, S, C, w, d), c = Cr(m, _, k, P, c), u = Sr(m, _, k, P, u), h = Sr(v, S, C, w, h);
15682
15682
  } else
15683
- h = Cr(n.top, h), c = Cr(n.left, c), u = Sr(n.right, u), d = Sr(n.bottom, d);
15683
+ d = Cr(n.top, d), c = Cr(n.left, c), u = Sr(n.right, u), h = Sr(n.bottom, h);
15684
15684
  }
15685
15685
  return {
15686
- top: h,
15686
+ top: d,
15687
15687
  left: c,
15688
15688
  right: u,
15689
- bottom: d,
15689
+ bottom: h,
15690
15690
  width: u - c,
15691
- height: d - h
15691
+ height: h - d
15692
15692
  };
15693
15693
  }
15694
15694
  /**
@@ -16152,7 +16152,7 @@ const it = {
16152
16152
  let r = [], o = [], a = [], l = null;
16153
16153
  const c = 0.75, u = N(
16154
16154
  () => i.value.configuratorParams.linesAngles.map((B, E) => new ks(i.value.configuratorParams.linesWidths[E], B, `A-${E + 1}`))
16155
- ), h = N(() => i.value.configuratorParams.colorSide === "bottom"), d = N(
16155
+ ), d = N(() => i.value.configuratorParams.colorSide === "bottom"), h = N(
16156
16156
  () => {
16157
16157
  var B, E;
16158
16158
  return i.value.configuratorParams.startTailType && ((B = i.settings.startTailConfigs) != null && B[i.value.configuratorParams.startTailType]) ? (E = i.settings.startTailConfigs) == null ? void 0 : E[i.value.configuratorParams.startTailType].points : [];
@@ -16247,7 +16247,7 @@ const it = {
16247
16247
  let ae;
16248
16248
  j.size = it.lineLabel.size, j.weight = 600, j.fill = it.lineLabel.color, j.id += 1, j.rotation = it.lineLabel.rotation, Y > 0 && (ae = new xs(`${B.angle}°`, E.vertices[0].x + 25, E.vertices[0].y - 25), ae.size = it.angleLabel.size, ae.weight = 600, ae.fill = it.angleLabel.color, ae.rotation = it.angleLabel.rotation, ae.id += Y, r.push(ae), J.add(ae)), J.add(j), I(j, E, 0, ae), I(j, E, 1);
16249
16249
  }, A = () => {
16250
- const { size: B } = it.colorSideLabel, E = 0, J = 0, Y = h.value ? B / 2 : B / 2 - B, ee = h.value ? B / 2 - B : B / 2, V = new Ki();
16250
+ const { size: B } = it.colorSideLabel, E = 0, J = 0, Y = d.value ? B / 2 : B / 2 - B, ee = d.value ? B / 2 - B : B / 2, V = new Ki();
16251
16251
  if (!l)
16252
16252
  return V;
16253
16253
  const j = 5, ae = Math.atan2(ee - Y, J - E), ke = [
@@ -16258,10 +16258,10 @@ const it = {
16258
16258
  new He(J - j * Math.cos(ae + Math.PI / 4), ee - j * Math.sin(ae + Math.PI / 4), 0, 0, 0, 0, xe.Commands.line)
16259
16259
  ], he = new Ve(ke, !1, !1, !0);
16260
16260
  he.noFill(), he.cap = "round", he.join = "round", he.linewidth = B / 7, he.stroke = it.colorSideLabel.color, V.add(he);
16261
- const be = new xs(h.value ? "Цвет снизу" : "Цвет сверху", 10, 0);
16261
+ const be = new xs(d.value ? "Цвет снизу" : "Цвет сверху", 10, 0);
16262
16262
  be.size = B, be.weight = 600, be.fill = it.colorSideLabel.color, be.alignment = "left", V.add(be);
16263
16263
  const fe = V.getBoundingClientRect();
16264
- return V.position.x = (l.width - fe.width) * c + 10, V.position.y = h.value ? l.height + fe.height * 2 : fe.height / 2, V;
16264
+ return V.position.x = (l.width - fe.width) * c + 10, V.position.y = d.value ? l.height + fe.height * 2 : fe.height / 2, V;
16265
16265
  }, I = (B, E, J, Y) => {
16266
16266
  E.vertices[J].bind(ie.Types.change, () => {
16267
16267
  const ee = E.vertices.length - 1, V = Math.atan2(E.vertices[0].y - E.vertices[ee].y, E.vertices[0].x - E.vertices[ee].x) * 180 / Math.PI, j = E.vertices[0].x + (E.vertices[ee].x - E.vertices[0].x) / 2 - 8 * Math.sin(V * Math.PI / 180), ae = E.vertices[0].y + (E.vertices[ee].y - E.vertices[0].y) / 2 - 8 * Math.cos(V * Math.PI / 180);
@@ -16305,7 +16305,7 @@ const it = {
16305
16305
  J.appendTo(B), O(J, [], E.points, [], !0);
16306
16306
  }
16307
16307
  }, Z = () => {
16308
- l && O(l, d.value, u.value, f.value, !1);
16308
+ l && O(l, h.value, u.value, f.value, !1);
16309
16309
  }, D = (B) => B * (180 / Math.PI), W = (B, E) => {
16310
16310
  const J = B[1].x - B[0].x, Y = B[1].y - B[0].y, ee = E[1].x - E[0].x, V = E[1].y - E[0].y;
16311
16311
  let j = Math.atan2(J * V - Y * ee, J * ee + Y * V);
@@ -16333,7 +16333,7 @@ const it = {
16333
16333
  return (he == null ? void 0 : he.elem) === ae.target;
16334
16334
  }), [J] = g(
16335
16335
  B,
16336
- d.value,
16336
+ h.value,
16337
16337
  u.value.map((ke) => ke),
16338
16338
  f.value
16339
16339
  );
@@ -16392,9 +16392,9 @@ const it = {
16392
16392
  quantity: {},
16393
16393
  marker: {},
16394
16394
  length: {}
16395
- }), h = H(0), d = (C = 0) => {
16395
+ }), d = H(0), h = (C = 0) => {
16396
16396
  const P = l.value.allTemplates.at(C);
16397
- P !== void 0 && (h.value = C, a.value.configuratorParams.linesWidths = P.points.map((w) => Lt(w) ? w[0] : w.width), a.value.configuratorParams.linesAngles = P.points.map((w) => Lt(w) ? w[1] : w.angle), v()), g(a.value.configuratorParams);
16397
+ P !== void 0 && (d.value = C, a.value.configuratorParams.linesWidths = P.points.map((w) => Lt(w) ? w[0] : w.width), a.value.configuratorParams.linesAngles = P.points.map((w) => Lt(w) ? w[1] : w.angle), v()), g(a.value.configuratorParams);
16398
16398
  }, f = async () => {
16399
16399
  const C = prompt("Введите название шаблона:");
16400
16400
  if (!C)
@@ -16408,12 +16408,12 @@ const it = {
16408
16408
  ])
16409
16409
  };
16410
16410
  await pt.getInstance(Ys).createTemplate(i.cartItem.category, P, u.value).then(() => {
16411
- l.value.addCustomTemplate(P), h.value = l.value.allTemplates.length - 1;
16411
+ l.value.addCustomTemplate(P), d.value = l.value.allTemplates.length - 1;
16412
16412
  }).catch(() => {
16413
16413
  o.value = !1;
16414
16414
  }), o.value = !1;
16415
16415
  }, p = () => {
16416
- l.value.showOnlyTemplates || l.value.allowSaveTemplates && (h.value = l.value.allTemplates.length - 1);
16416
+ l.value.showOnlyTemplates || l.value.allowSaveTemplates && (d.value = l.value.allTemplates.length - 1);
16417
16417
  }, g = async (C) => {
16418
16418
  v(), s.value = !0, await pt.getInstance(Ys).searchProduct(i.cartItem.category, C, u.value).then((P) => {
16419
16419
  a.value.product = P;
@@ -16446,15 +16446,15 @@ const it = {
16446
16446
  c.value.linesWidths = C, c.value.linesAngles = P;
16447
16447
  };
16448
16448
  return oo(() => {
16449
- d();
16449
+ h();
16450
16450
  }), (C, P) => (x(), R("div", L0, [
16451
16451
  z(I0, {
16452
16452
  value: a.value,
16453
- "select-template-index": h.value,
16453
+ "select-template-index": d.value,
16454
16454
  settings: l.value,
16455
16455
  "onPointer:up": S,
16456
16456
  "onPointer:move": _,
16457
- "onTemplate:select": d
16457
+ "onTemplate:select": h
16458
16458
  }, null, 8, ["value", "select-template-index", "settings"]),
16459
16459
  z(Zm, {
16460
16460
  value: a.value,
@@ -16464,7 +16464,7 @@ const it = {
16464
16464
  settings: l.value,
16465
16465
  "is-submit-processing": r.value,
16466
16466
  "is-product-searching": s.value,
16467
- "select-template-index": h.value,
16467
+ "select-template-index": d.value,
16468
16468
  "onUpdate:params": P[1] || (P[1] = (w) => g(w)),
16469
16469
  "onUpdate:preview": k,
16470
16470
  onSubmit: m,
@@ -16754,13 +16754,13 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16754
16754
  ref: "first-input-element",
16755
16755
  value: r.value.width,
16756
16756
  "onUpdate:value": [
16757
- c[0] || (c[0] = (h) => r.value.width = h),
16757
+ c[0] || (c[0] = (d) => r.value.width = d),
16758
16758
  o
16759
16759
  ],
16760
16760
  class: "w-full",
16761
16761
  max: l.settings.maxWidth ?? void 0,
16762
16762
  min: l.settings.minWidth,
16763
- validator: (h) => !!h && h >= l.settings.minWidth && (!l.settings.maxWidth || h <= l.settings.maxWidth),
16763
+ validator: (d) => !!d && d >= l.settings.minWidth && (!l.settings.maxWidth || d <= l.settings.maxWidth),
16764
16764
  placeholder: "Введите ширину"
16765
16765
  }, null, 8, ["value", "max", "min", "validator"])
16766
16766
  ]),
@@ -16777,13 +16777,13 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16777
16777
  z(Js, {
16778
16778
  value: r.value.length,
16779
16779
  "onUpdate:value": [
16780
- c[1] || (c[1] = (h) => r.value.length = h),
16780
+ c[1] || (c[1] = (d) => r.value.length = d),
16781
16781
  o
16782
16782
  ],
16783
16783
  placeholder: "Введите длину",
16784
16784
  max: l.settings.maxLength,
16785
16785
  min: l.settings.minLength,
16786
- validator: (h) => h >= l.settings.minLength && h <= l.settings.maxLength,
16786
+ validator: (d) => d >= l.settings.minLength && d <= l.settings.maxLength,
16787
16787
  class: "w-full"
16788
16788
  }, null, 8, ["value", "max", "min", "validator"])
16789
16789
  ]),
@@ -16801,9 +16801,9 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16801
16801
  value: l.value.quantity,
16802
16802
  placeholder: "Введите количество",
16803
16803
  min: 1,
16804
- validator: (h) => h > 0,
16804
+ validator: (d) => d > 0,
16805
16805
  class: "w-full",
16806
- "onUpdate:value": c[2] || (c[2] = (h) => a("quantity", h ?? 0))
16806
+ "onUpdate:value": c[2] || (c[2] = (d) => a("quantity", d ?? 0))
16807
16807
  }, null, 8, ["value", "validator"])
16808
16808
  ]),
16809
16809
  _: 1
@@ -16818,7 +16818,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16818
16818
  z(u, {
16819
16819
  value: l.value.marker,
16820
16820
  placeholder: "Введите маркировку",
16821
- "onUpdate:value": c[3] || (c[3] = (h) => a("marker", h))
16821
+ "onUpdate:value": c[3] || (c[3] = (d) => a("marker", d))
16822
16822
  }, null, 8, ["value"])
16823
16823
  ]),
16824
16824
  _: 1
@@ -16835,7 +16835,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16835
16835
  ),
16836
16836
  type: "primary",
16837
16837
  class: "self-start",
16838
- onClick: c[4] || (c[4] = (h) => n("submit", l.value))
16838
+ onClick: c[4] || (c[4] = (d) => n("submit", l.value))
16839
16839
  }, {
16840
16840
  default: F(() => [
16841
16841
  oe(q(l.value.isNewRec() ? "В корзину" : "Изменить"), 1)
@@ -16846,7 +16846,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16846
16846
  key: 0,
16847
16847
  type: "tertiary",
16848
16848
  class: "self-start",
16849
- onClick: c[5] || (c[5] = (h) => n("click:view-switch"))
16849
+ onClick: c[5] || (c[5] = (d) => n("click:view-switch"))
16850
16850
  }, {
16851
16851
  default: F(() => c[6] || (c[6] = [
16852
16852
  oe(" Показать в виде списка ")
@@ -16875,8 +16875,8 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16875
16875
  quantity: {},
16876
16876
  marker: {}
16877
16877
  }), o = H(!1), a = H(!1), l = async (u) => {
16878
- o.value = !0, await pt.getInstance(Ys).searchProduct(i.cartItem.category, u, r.value).then((h) => {
16879
- s.value.product = h;
16878
+ o.value = !0, await pt.getInstance(Ys).searchProduct(i.cartItem.category, u, r.value).then((d) => {
16879
+ s.value.product = d;
16880
16880
  }).catch(() => {
16881
16881
  o.value = !1;
16882
16882
  }), o.value = !1;
@@ -16891,15 +16891,15 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16891
16891
  a.value = !1;
16892
16892
  })), a.value = !1;
16893
16893
  };
16894
- return (u, h) => (x(), R("div", j0, [
16894
+ return (u, d) => (x(), R("div", j0, [
16895
16895
  z(V0, {
16896
16896
  value: s.value,
16897
- "onUpdate:value": h[0] || (h[0] = (d) => s.value = d),
16897
+ "onUpdate:value": d[0] || (d[0] = (h) => s.value = h),
16898
16898
  validation: r.value,
16899
16899
  settings: u.settings,
16900
16900
  "is-submit-processing": a.value,
16901
- "onUpdate:params": h[1] || (h[1] = (d) => l(d)),
16902
- onSubmit: h[2] || (h[2] = (d) => c())
16901
+ "onUpdate:params": d[1] || (d[1] = (h) => l(h)),
16902
+ onSubmit: d[2] || (d[2] = (h) => c())
16903
16903
  }, null, 8, ["value", "validation", "settings", "is-submit-processing"])
16904
16904
  ]));
16905
16905
  }
@@ -16921,13 +16921,13 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16921
16921
  },
16922
16922
  emits: ["update:value", "update:params", "submit", "click:instructions-toggle", "click:show-preview-drawer"],
16923
16923
  setup(e, { emit: t }) {
16924
- const i = e, n = t, s = N(() => ni.isPhoneDevice()), r = H(Ka(ui(i.value.configuratorParams))), o = N(() => i.settings.widthOverlaps[r.value.mountType] ?? 0), a = N(() => i.settings.heightOverlaps[r.value.mountType] ?? 0), l = N(() => i.settings.maxWidths[r.value.netType]), c = N(() => i.settings.maxHeights[r.value.netType] - a.value), u = (d, f) => {
16925
- d && d in r.value && (r.value[d] = f ?? 0), n("update:params", r.value), h("configuratorParams", r.value);
16926
- }, h = (d, f) => {
16924
+ const i = e, n = t, s = N(() => ni.isPhoneDevice()), r = H(Ka(ui(i.value.configuratorParams))), o = N(() => i.settings.widthOverlaps[r.value.mountType] ?? 0), a = N(() => i.settings.heightOverlaps[r.value.mountType] ?? 0), l = N(() => i.settings.maxWidths[r.value.netType]), c = N(() => i.settings.maxHeights[r.value.netType] - a.value), u = (h, f) => {
16925
+ h && h in r.value && (r.value[h] = f ?? 0), n("update:params", r.value), d("configuratorParams", r.value);
16926
+ }, d = (h, f) => {
16927
16927
  const p = new Un(i.value);
16928
- p[d] = f, n("update:value", p);
16928
+ p[h] = f, n("update:value", p);
16929
16929
  };
16930
- return (d, f) => {
16930
+ return (h, f) => {
16931
16931
  const p = Qn;
16932
16932
  return x(), re(K(or), { class: "flex flex-col gap-2 px-4 md:max-w-96" }, {
16933
16933
  default: F(() => [
@@ -16943,7 +16943,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16943
16943
  f[0] || (f[0] = (g) => r.value.netType = g),
16944
16944
  u
16945
16945
  ],
16946
- options: d.settings.netType.map((g) => ({ label: d.settings.descriptions.net_type[g], value: g }))
16946
+ options: h.settings.netType.map((g) => ({ label: h.settings.descriptions.net_type[g], value: g }))
16947
16947
  }, null, 8, ["value", "options"])
16948
16948
  ]),
16949
16949
  _: 1
@@ -16957,7 +16957,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16957
16957
  z(K(pn), {
16958
16958
  value: r.value.color,
16959
16959
  "onUpdate:value": f[1] || (f[1] = (g) => r.value.color = g),
16960
- options: d.settings.color.map((g) => ({ label: d.settings.descriptions.color[g], value: g }))
16960
+ options: h.settings.color.map((g) => ({ label: h.settings.descriptions.color[g], value: g }))
16961
16961
  }, null, 8, ["value", "options"])
16962
16962
  ]),
16963
16963
  _: 1
@@ -16974,20 +16974,20 @@ const N0 = {}, Js = /* @__PURE__ */ te({
16974
16974
  f[2] || (f[2] = (g) => r.value.mountType = g),
16975
16975
  u
16976
16976
  ],
16977
- options: d.settings.mountType.map((g) => ({ label: d.settings.descriptions.mount_type[g], value: g }))
16977
+ options: h.settings.mountType.map((g) => ({ label: h.settings.descriptions.mount_type[g], value: g }))
16978
16978
  }, null, 8, ["value", "options"])
16979
16979
  ]),
16980
16980
  _: 1
16981
16981
  }),
16982
16982
  z(K(Ze), {
16983
16983
  required: !0,
16984
- feedback: d.validation.width.feedback || "",
16985
- "show-feedback": d.validation.width.showFeedback || r.value.width >= d.settings.minWidth && r.value.width <= d.settings.maxWidths[r.value.netType],
16986
- "validation-status": d.validation.width.validationStatus || void 0,
16987
- label: `Ширина светового проёма от ${d.settings.minWidth - o.value} ${l.value ? " до " + l.value : ""} мм.`
16984
+ feedback: h.validation.width.feedback || "",
16985
+ "show-feedback": h.validation.width.showFeedback || r.value.width >= h.settings.minWidth && r.value.width <= h.settings.maxWidths[r.value.netType],
16986
+ "validation-status": h.validation.width.validationStatus || void 0,
16987
+ label: `Ширина светового проёма от ${h.settings.minWidth - o.value} ${l.value ? " до " + l.value : ""} мм.`
16988
16988
  }, {
16989
16989
  feedback: F(() => [
16990
- !d.validation.width.showFeedback && r.value.width >= d.settings.minWidth && r.value.width <= d.settings.maxWidths[r.value.netType] ? (x(), R("div", U0, [
16990
+ !h.validation.width.showFeedback && r.value.width >= h.settings.minWidth && r.value.width <= h.settings.maxWidths[r.value.netType] ? (x(), R("div", U0, [
16991
16991
  z(K(Dr), { type: "success" }, {
16992
16992
  default: F(() => [
16993
16993
  oe("Ширина готового изделия " + q(r.value.width + o.value), 1)
@@ -17011,7 +17011,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17011
17011
  z(Js, {
17012
17012
  value: r.value.width && r.value.width - o.value,
17013
17013
  max: l.value,
17014
- min: d.settings.minWidth - o.value,
17014
+ min: h.settings.minWidth - o.value,
17015
17015
  placeholder: "Введите ширину светового проёма",
17016
17016
  class: "w-full",
17017
17017
  "onUpdate:value": f[3] || (f[3] = (g) => u("width", (g && g + o.value) ?? void 0))
@@ -17021,13 +17021,13 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17021
17021
  }, 8, ["feedback", "show-feedback", "validation-status", "label"]),
17022
17022
  z(K(Ze), {
17023
17023
  required: !0,
17024
- feedback: d.validation.height.feedback || "",
17025
- "show-feedback": d.validation.height.showFeedback || r.value.height >= d.settings.minHeight && r.value.height <= d.settings.maxHeights[r.value.netType],
17026
- "validation-status": d.validation.height.validationStatus || void 0,
17027
- label: `Высота светового проёма от ${d.settings.minHeight - a.value} ${c.value ? " до " + c.value : ""} мм.`
17024
+ feedback: h.validation.height.feedback || "",
17025
+ "show-feedback": h.validation.height.showFeedback || r.value.height >= h.settings.minHeight && r.value.height <= h.settings.maxHeights[r.value.netType],
17026
+ "validation-status": h.validation.height.validationStatus || void 0,
17027
+ label: `Высота светового проёма от ${h.settings.minHeight - a.value} ${c.value ? " до " + c.value : ""} мм.`
17028
17028
  }, {
17029
17029
  feedback: F(() => [
17030
- !d.validation.height.showFeedback && r.value.height >= d.settings.minHeight && r.value.height <= d.settings.maxHeights[r.value.netType] ? (x(), R("div", Y0, [
17030
+ !h.validation.height.showFeedback && r.value.height >= h.settings.minHeight && r.value.height <= h.settings.maxHeights[r.value.netType] ? (x(), R("div", Y0, [
17031
17031
  z(K(Dr), { type: "success" }, {
17032
17032
  default: F(() => [
17033
17033
  oe("Высота готового изделия " + q(r.value.height + a.value), 1)
@@ -17051,7 +17051,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17051
17051
  z(Js, {
17052
17052
  value: r.value.height && r.value.height - a.value,
17053
17053
  max: c.value,
17054
- min: d.settings.minHeight - a.value,
17054
+ min: h.settings.minHeight - a.value,
17055
17055
  placeholder: "Введите высоту светового проёма",
17056
17056
  class: "w-full",
17057
17057
  "onUpdate:value": f[5] || (f[5] = (g) => u("height", (g && g + a.value) ?? void 0))
@@ -17061,15 +17061,15 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17061
17061
  }, 8, ["feedback", "show-feedback", "validation-status", "label"]),
17062
17062
  z(K(Ze), {
17063
17063
  required: !0,
17064
- feedback: d.validation.quantity.feedback || "",
17065
- "show-feedback": d.validation.quantity.showFeedback || !1,
17066
- "validation-status": d.validation.quantity.validationStatus || void 0,
17064
+ feedback: h.validation.quantity.feedback || "",
17065
+ "show-feedback": h.validation.quantity.showFeedback || !1,
17066
+ "validation-status": h.validation.quantity.validationStatus || void 0,
17067
17067
  label: "Количество"
17068
17068
  }, {
17069
17069
  default: F(() => [
17070
17070
  z(K(_i), {
17071
- value: d.value.quantity,
17072
- "onUpdate:value": f[7] || (f[7] = (g) => d.value.quantity = g),
17071
+ value: h.value.quantity,
17072
+ "onUpdate:value": f[7] || (f[7] = (g) => h.value.quantity = g),
17073
17073
  min: 1,
17074
17074
  validator: (g) => Number.isInteger(g),
17075
17075
  placeholder: "Введите количество",
@@ -17079,34 +17079,34 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17079
17079
  _: 1
17080
17080
  }, 8, ["feedback", "show-feedback", "validation-status"]),
17081
17081
  z(K(Ze), {
17082
- feedback: d.validation.marker.feedback || "",
17083
- "show-feedback": d.validation.marker.showFeedback || !1,
17084
- "validation-status": d.validation.marker.validationStatus || void 0,
17082
+ feedback: h.validation.marker.feedback || "",
17083
+ "show-feedback": h.validation.marker.showFeedback || !1,
17084
+ "validation-status": h.validation.marker.validationStatus || void 0,
17085
17085
  label: "Маркировка"
17086
17086
  }, {
17087
17087
  default: F(() => [
17088
17088
  z(p, {
17089
- value: d.value.marker,
17090
- "onUpdate:value": f[8] || (f[8] = (g) => d.value.marker = g),
17089
+ value: h.value.marker,
17090
+ "onUpdate:value": f[8] || (f[8] = (g) => h.value.marker = g),
17091
17091
  placeholder: "Введите маркировку"
17092
17092
  }, null, 8, ["value"])
17093
17093
  ]),
17094
17094
  _: 1
17095
17095
  }, 8, ["feedback", "show-feedback", "validation-status"]),
17096
17096
  z(uo, {
17097
- "is-product-searching": d.isProductSearching,
17098
- product: d.value.product
17097
+ "is-product-searching": h.isProductSearching,
17098
+ product: h.value.product
17099
17099
  }, null, 8, ["is-product-searching", "product"]),
17100
17100
  T("div", q0, [
17101
17101
  z(K(qe), {
17102
- loading: d.isSubmitProcessing,
17103
- disabled: d.isProductSearching || !d.value.product || d.value.product.isNewRec() || r.value.width < d.settings.minHeight - a.value || r.value.height < d.settings.minHeight - a.value,
17102
+ loading: h.isSubmitProcessing,
17103
+ disabled: h.isProductSearching || !h.value.product || h.value.product.isNewRec() || r.value.width < h.settings.minHeight - a.value || r.value.height < h.settings.minHeight - a.value,
17104
17104
  type: "primary",
17105
17105
  class: "self-start",
17106
- onClick: f[9] || (f[9] = (g) => n("submit", d.value))
17106
+ onClick: f[9] || (f[9] = (g) => n("submit", h.value))
17107
17107
  }, {
17108
17108
  default: F(() => [
17109
- oe(q(d.value.isNewRec() ? "В корзину" : "Изменить"), 1)
17109
+ oe(q(h.value.isNewRec() ? "В корзину" : "Изменить"), 1)
17110
17110
  ]),
17111
17111
  _: 1
17112
17112
  }, 8, ["loading", "disabled"]),
@@ -17308,13 +17308,13 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17308
17308
  height: {},
17309
17309
  quantity: {},
17310
17310
  marker: {}
17311
- }), c = H(!1), u = H(!1), h = async (f) => {
17311
+ }), c = H(!1), u = H(!1), d = async (f) => {
17312
17312
  f.height > 0 && f.width > 0 && (c.value = !0, await pt.getInstance(Ys).searchProduct(i.cartItem.category, f, l.value).then((p) => {
17313
17313
  a.value.product = p;
17314
17314
  }).catch(() => {
17315
17315
  c.value = !1;
17316
17316
  }), c.value = !1);
17317
- }, d = async () => {
17317
+ }, h = async () => {
17318
17318
  u.value = !0, await (a.value.isNewRec() ? pt.getInstance(mn).addCartItem(i.client, a.value).then((f) => {
17319
17319
  n("submit-success", f);
17320
17320
  }).catch(() => {
@@ -17381,8 +17381,8 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17381
17381
  settings: f.settings,
17382
17382
  "is-product-searching": c.value,
17383
17383
  "is-submit-processing": u.value,
17384
- "onUpdate:params": p[6] || (p[6] = (m) => h(m)),
17385
- onSubmit: p[7] || (p[7] = (m) => d()),
17384
+ "onUpdate:params": p[6] || (p[6] = (m) => d(m)),
17385
+ onSubmit: p[7] || (p[7] = (m) => h()),
17386
17386
  "onClick:instructionsToggle": p[8] || (p[8] = (m) => o.value = !o.value),
17387
17387
  "onClick:showPreviewDrawer": p[9] || (p[9] = (m) => r.value = !0)
17388
17388
  }, null, 8, ["value", "validation", "settings", "is-product-searching", "is-submit-processing"])
@@ -17421,7 +17421,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17421
17421
  return t({
17422
17422
  focusWidthInput: l
17423
17423
  }), (c, u) => {
17424
- const h = qu, d = Yu;
17424
+ const d = qu, h = Yu;
17425
17425
  return x(), re(K(Ze), {
17426
17426
  label: `Полоса №${c.index + 1}, мм`,
17427
17427
  required: !0
@@ -17460,7 +17460,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17460
17460
  onClick: u[0] || (u[0] = (f) => s("click:add-line", c.index))
17461
17461
  }, {
17462
17462
  default: F(() => [
17463
- z(h)
17463
+ z(d)
17464
17464
  ]),
17465
17465
  _: 1
17466
17466
  }, 8, ["disabled"]),
@@ -17471,7 +17471,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17471
17471
  onClick: u[1] || (u[1] = (f) => s("click:remove-line", c.index))
17472
17472
  }, {
17473
17473
  default: F(() => [
17474
- z(d)
17474
+ z(h)
17475
17475
  ]),
17476
17476
  _: 1
17477
17477
  }, 8, ["disabled"])
@@ -17491,24 +17491,24 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17491
17491
  },
17492
17492
  emits: ["update:value", "update:params", "click:view-switch", "submit", "click:add-line", "click:remove-line"],
17493
17493
  setup(e, { emit: t }) {
17494
- const i = e, n = t, s = N(() => i.value[0].configuratorParams.linesWidths.map((u) => u).reduce((u, h) => u + h, 0)), r = N(() => i.settings.width - s.value), o = N(() => !i.value.some(({ product: u }) => !u)), a = N(
17494
+ const i = e, n = t, s = N(() => i.value[0].configuratorParams.linesWidths.map((u) => u).reduce((u, d) => u + d, 0)), r = N(() => i.settings.width - s.value), o = N(() => !i.value.some(({ product: u }) => !u)), a = N(
17495
17495
  () => r.value === 0 ? void 0 : [{ label: `${(r.value > 0 ? "Остаток +" : "Излишек ") + r.value} мм.`, key: r.value }]
17496
- ), l = (u, h, d) => {
17497
- const f = i.value.at(h);
17496
+ ), l = (u, d, h) => {
17497
+ const f = i.value.at(d);
17498
17498
  if (f)
17499
17499
  if (u && u >= i.settings.minLineWidth && u % i.settings.lineWidthStep === 0) {
17500
- const p = { linesWidths: f.configuratorParams.linesWidths.toSpliced(h, 1, u) };
17501
- n("update:params", p, h, d), c("configuratorParams", p);
17500
+ const p = { linesWidths: f.configuratorParams.linesWidths.toSpliced(d, 1, u) };
17501
+ n("update:params", p, d, h), c("configuratorParams", p);
17502
17502
  } else
17503
17503
  f.product.id = -1;
17504
- }, c = (u, h) => {
17505
- const d = i.value.map((f) => new Un(f));
17506
- d.forEach((f) => {
17507
- f[u] = h;
17508
- }), n("update:value", d);
17504
+ }, c = (u, d) => {
17505
+ const h = i.value.map((f) => new Un(f));
17506
+ h.forEach((f) => {
17507
+ f[u] = d;
17508
+ }), n("update:value", h);
17509
17509
  };
17510
- return (u, h) => {
17511
- const d = Dr, f = Qn;
17510
+ return (u, d) => {
17511
+ const h = Dr, f = Qn;
17512
17512
  return x(), re(K(or), { class: "flex flex-col gap-2" }, {
17513
17513
  default: F(() => {
17514
17514
  var p;
@@ -17524,11 +17524,11 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17524
17524
  "add-line-button-disabled": r.value <= 0 || u.value.length >= u.settings.maxLinesCount,
17525
17525
  "remove-line-button-disabled": u.value.length === 1,
17526
17526
  "onUpdate:value": l,
17527
- "onClick:addLine": h[0] || (h[0] = (v) => n("click:add-line", v)),
17528
- "onClick:removeLine": h[1] || (h[1] = (v) => n("click:remove-line", v))
17527
+ "onClick:addLine": d[0] || (d[0] = (v) => n("click:add-line", v)),
17528
+ "onClick:removeLine": d[1] || (d[1] = (v) => n("click:remove-line", v))
17529
17529
  }, null, 8, ["index", "value", "product", "settings", "suggestion-option", "add-line-button-disabled", "remove-line-button-disabled"]))), 128)),
17530
17530
  T("div", y_, [
17531
- r.value < 0 ? (x(), re(d, {
17531
+ r.value < 0 ? (x(), re(h, {
17532
17532
  key: 0,
17533
17533
  type: "error"
17534
17534
  }, {
@@ -17537,18 +17537,18 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17537
17537
  ]),
17538
17538
  _: 1
17539
17539
  })) : U("", !0),
17540
- o.value && u.value.length === u.settings.maxLinesCount && r.value > 0 ? (x(), re(d, {
17540
+ o.value && u.value.length === u.settings.maxLinesCount && r.value > 0 ? (x(), re(h, {
17541
17541
  key: 1,
17542
17542
  type: "error"
17543
17543
  }, {
17544
- default: F(() => h[8] || (h[8] = [
17544
+ default: F(() => d[8] || (d[8] = [
17545
17545
  oe(" Остаток резки должен быть равен 0 ")
17546
17546
  ])),
17547
17547
  _: 1
17548
17548
  })) : U("", !0),
17549
17549
  T("div", null, [
17550
- h[9] || (h[9] = oe(" Остаток для резки: ")),
17551
- z(d, {
17550
+ d[9] || (d[9] = oe(" Остаток для резки: ")),
17551
+ z(h, {
17552
17552
  type: r.value >= 0 ? "Success" : "error"
17553
17553
  }, {
17554
17554
  default: F(() => [
@@ -17564,9 +17564,9 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17564
17564
  disabled: !o.value || r.value <= 0 || u.value.length >= u.settings.maxLinesCount,
17565
17565
  type: "primary",
17566
17566
  class: "self-center",
17567
- onClick: h[2] || (h[2] = (g) => n("click:add-line", u.value.length))
17567
+ onClick: d[2] || (d[2] = (g) => n("click:add-line", u.value.length))
17568
17568
  }, {
17569
- default: F(() => h[10] || (h[10] = [
17569
+ default: F(() => d[10] || (d[10] = [
17570
17570
  oe(" Добавить полосу ")
17571
17571
  ])),
17572
17572
  _: 1
@@ -17584,7 +17584,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17584
17584
  validator: (g) => g % u.settings.lengthStep === 0,
17585
17585
  placeholder: "Введите метраж",
17586
17586
  class: "w-full",
17587
- "onUpdate:value": h[3] || (h[3] = (g) => c("length", g ?? 0))
17587
+ "onUpdate:value": d[3] || (d[3] = (g) => c("length", g ?? 0))
17588
17588
  }, null, 8, ["value", "max", "min", "step", "validator"])
17589
17589
  ]),
17590
17590
  _: 1
@@ -17600,7 +17600,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17600
17600
  validator: (g) => Number.isInteger(g),
17601
17601
  placeholder: "Введите количество",
17602
17602
  class: "w-full",
17603
- "onUpdate:value": h[4] || (h[4] = (g) => c("quantity", g ?? 0))
17603
+ "onUpdate:value": d[4] || (d[4] = (g) => c("quantity", g ?? 0))
17604
17604
  }, null, 8, ["value", "validator"])
17605
17605
  ]),
17606
17606
  _: 1
@@ -17610,7 +17610,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17610
17610
  z(f, {
17611
17611
  value: i.value[0].marker,
17612
17612
  placeholder: "Введите маркировку",
17613
- "onUpdate:value": h[5] || (h[5] = (g) => c("marker", g))
17613
+ "onUpdate:value": d[5] || (d[5] = (g) => c("marker", g))
17614
17614
  }, null, 8, ["value"])
17615
17615
  ]),
17616
17616
  _: 1
@@ -17624,7 +17624,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17624
17624
  ),
17625
17625
  type: "primary",
17626
17626
  class: "self-start",
17627
- onClick: h[6] || (h[6] = (g) => n("submit", u.value))
17627
+ onClick: d[6] || (d[6] = (g) => n("submit", u.value))
17628
17628
  }, {
17629
17629
  default: F(() => [
17630
17630
  oe(q(u.value[0].isNewRec() ? "В корзину" : "Изменить"), 1)
@@ -17635,9 +17635,9 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17635
17635
  key: 0,
17636
17636
  type: "tertiary",
17637
17637
  class: "self-start",
17638
- onClick: h[7] || (h[7] = (g) => n("click:view-switch"))
17638
+ onClick: d[7] || (d[7] = (g) => n("click:view-switch"))
17639
17639
  }, {
17640
- default: F(() => h[11] || (h[11] = [
17640
+ default: F(() => d[11] || (d[11] = [
17641
17641
  oe(" Показать в виде списка ")
17642
17642
  ])),
17643
17643
  _: 1
@@ -17689,12 +17689,12 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17689
17689
  length: {},
17690
17690
  quantity: {},
17691
17691
  marker: {}
17692
- }), o = H(!1), a = N(() => s.value[0].configuratorParams.linesWidths.map((d) => d).reduce((d, f) => d + f, 0)), l = (d) => {
17693
- d === void 0 && (d = s.value.length - 1);
17692
+ }), o = H(!1), a = N(() => s.value[0].configuratorParams.linesWidths.map((h) => h).reduce((h, f) => h + f, 0)), l = (h) => {
17693
+ h === void 0 && (h = s.value.length - 1);
17694
17694
  const f = s.value.at(0);
17695
17695
  if (!f)
17696
17696
  return;
17697
- f.configuratorParams.linesWidths = f.configuratorParams.linesWidths.toSpliced(d + 1, 0, 0), s.value.forEach((g) => {
17697
+ f.configuratorParams.linesWidths = f.configuratorParams.linesWidths.toSpliced(h + 1, 0, 0), s.value.forEach((g) => {
17698
17698
  g.configuratorParams.linesWidths = f.configuratorParams.linesWidths;
17699
17699
  });
17700
17700
  const p = new Un({
@@ -17706,43 +17706,43 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17706
17706
  linesWidths: f == null ? void 0 : f.configuratorParams.linesWidths
17707
17707
  }
17708
17708
  });
17709
- s.value = s.value.toSpliced(d + 1, 0, p);
17710
- }, c = (d) => {
17709
+ s.value = s.value.toSpliced(h + 1, 0, p);
17710
+ }, c = (h) => {
17711
17711
  const f = s.value.at(0);
17712
- f && (f.configuratorParams.linesWidths = f.configuratorParams.linesWidths.toSpliced(d, 1), s.value.forEach((p) => {
17712
+ f && (f.configuratorParams.linesWidths = f.configuratorParams.linesWidths.toSpliced(h, 1), s.value.forEach((p) => {
17713
17713
  p.configuratorParams.linesWidths = f.configuratorParams.linesWidths;
17714
- }), s.value = s.value.toSpliced(d, 1), delete r[`linesWidths.${d}`], delete r[`linesWidths.${d}`]);
17715
- }, u = async (d, f, p) => {
17716
- p.value = !0, await pt.getInstance(Ys).searchProduct(s.value[f].category, { linesWidths: d.linesWidths.at(f) }, r.value).then((g) => {
17714
+ }), s.value = s.value.toSpliced(h, 1), delete r[`linesWidths.${h}`], delete r[`linesWidths.${h}`]);
17715
+ }, u = async (h, f, p) => {
17716
+ p.value = !0, await pt.getInstance(Ys).searchProduct(s.value[f].category, { linesWidths: h.linesWidths.at(f) }, r.value).then((g) => {
17717
17717
  s.value[f].product = g, s.value.length < i.settings.maxLinesCount && a.value < i.settings.width && l();
17718
17718
  }).catch(() => {
17719
17719
  s.value[f].product = new _f(), p.value = !1;
17720
17720
  }), p.value = !1;
17721
- }, h = async () => {
17722
- o.value = !0, await (s.value[0].isNewRec() ? pt.getInstance(mn).addCartItem(i.client, s.value[0]).then((d) => {
17723
- n("submit-success", d);
17721
+ }, d = async () => {
17722
+ o.value = !0, await (s.value[0].isNewRec() ? pt.getInstance(mn).addCartItem(i.client, s.value[0]).then((h) => {
17723
+ n("submit-success", h);
17724
17724
  }).catch(() => {
17725
17725
  o.value = !1;
17726
- }) : pt.getInstance(mn).patchCartItem(i.client, s.value[0]).then((d) => {
17727
- n("submit-success", d);
17726
+ }) : pt.getInstance(mn).patchCartItem(i.client, s.value[0]).then((h) => {
17727
+ n("submit-success", h);
17728
17728
  }).catch(() => {
17729
17729
  o.value = !1;
17730
17730
  })), o.value = !1;
17731
17731
  };
17732
- return (d, f) => (x(), R("div", P_, [
17732
+ return (h, f) => (x(), R("div", P_, [
17733
17733
  z($_, {
17734
17734
  value: s.value,
17735
17735
  "onUpdate:value": f[0] || (f[0] = (p) => s.value = p),
17736
- settings: d.settings
17736
+ settings: h.settings
17737
17737
  }, null, 8, ["value", "settings"]),
17738
17738
  z(x_, {
17739
17739
  value: s.value,
17740
17740
  "onUpdate:value": f[1] || (f[1] = (p) => s.value = p),
17741
17741
  validation: r.value,
17742
- settings: d.settings,
17742
+ settings: h.settings,
17743
17743
  "is-submit-processing": o.value,
17744
17744
  "onUpdate:params": u,
17745
- onSubmit: h,
17745
+ onSubmit: d,
17746
17746
  "onClick:addLine": l,
17747
17747
  "onClick:removeLine": c
17748
17748
  }, null, 8, ["value", "validation", "settings", "is-submit-processing"])
@@ -17777,37 +17777,40 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17777
17777
  n("update:date-range", { from: o ? Pf(new Date(o)) : void 0, to: a ? $f(new Date(a)) : void 0 });
17778
17778
  };
17779
17779
  return (o, a) => {
17780
- var u, h;
17780
+ var u, d, h, f;
17781
17781
  const l = qe, c = cf;
17782
17782
  return x(), R("div", R_, [
17783
17783
  z(c, {
17784
- value: (u = o.dateRange.from) == null ? void 0 : u.getTime(),
17784
+ value: (d = (u = o.dateRange) == null ? void 0 : u.from) == null ? void 0 : d.getTime(),
17785
17785
  clearable: o.clearable,
17786
- "is-date-disabled": (d) => o.dateRange.to && d > o.dateRange.to,
17786
+ "is-date-disabled": (p) => {
17787
+ var g, m;
17788
+ return ((g = o.dateRange) == null ? void 0 : g.to) && p > ((m = o.dateRange) == null ? void 0 : m.to);
17789
+ },
17787
17790
  format: o.dateFormat,
17788
17791
  type: "date",
17789
- onUpdateValue: a[0] || (a[0] = (d) => {
17790
- var f;
17791
- return r(d, (f = o.dateRange.to) == null ? void 0 : f.getTime());
17792
+ onUpdateValue: a[0] || (a[0] = (p) => {
17793
+ var g, m;
17794
+ return r(p, (m = (g = o.dateRange) == null ? void 0 : g.to) == null ? void 0 : m.getTime());
17792
17795
  })
17793
17796
  }, Xn({ _: 2 }, [
17794
17797
  s.value ? {
17795
17798
  name: "footer",
17796
17799
  fn: F(() => [
17797
17800
  T("div", F_, [
17798
- (x(!0), R(Oe, null, Wt(s.value, (d, f) => (x(), re(l, {
17799
- key: f,
17801
+ (x(!0), R(Oe, null, Wt(s.value, (p, g) => (x(), re(l, {
17802
+ key: g,
17800
17803
  class: "my-1 mr-2",
17801
17804
  size: "small",
17802
17805
  type: "info",
17803
17806
  ghost: "",
17804
- onClick: (p) => {
17805
- var g, m;
17806
- return r((g = d.from) == null ? void 0 : g.getTime(), (m = d.to) == null ? void 0 : m.getTime());
17807
+ onClick: (m) => {
17808
+ var v, _;
17809
+ return r((v = p == null ? void 0 : p.from) == null ? void 0 : v.getTime(), (_ = p == null ? void 0 : p.to) == null ? void 0 : _.getTime());
17807
17810
  }
17808
17811
  }, {
17809
17812
  default: F(() => [
17810
- oe(q(d.label), 1)
17813
+ oe(q(p.label), 1)
17811
17814
  ]),
17812
17815
  _: 2
17813
17816
  }, 1032, ["onClick"]))), 128))
@@ -17817,33 +17820,36 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17817
17820
  } : void 0
17818
17821
  ]), 1032, ["value", "clearable", "is-date-disabled", "format"]),
17819
17822
  z(c, {
17820
- value: (h = o.dateRange.to) == null ? void 0 : h.getTime(),
17823
+ value: (f = (h = o.dateRange) == null ? void 0 : h.to) == null ? void 0 : f.getTime(),
17821
17824
  clearable: o.clearable,
17822
- "is-date-disabled": (d) => o.dateRange.from && d < o.dateRange.from,
17825
+ "is-date-disabled": (p) => {
17826
+ var g, m;
17827
+ return ((g = o.dateRange) == null ? void 0 : g.from) && p < ((m = o.dateRange) == null ? void 0 : m.from);
17828
+ },
17823
17829
  format: o.dateFormat,
17824
17830
  type: "date",
17825
- onUpdateValue: a[1] || (a[1] = (d) => {
17826
- var f;
17827
- return r((f = o.dateRange.from) == null ? void 0 : f.getTime(), d);
17831
+ onUpdateValue: a[1] || (a[1] = (p) => {
17832
+ var g, m;
17833
+ return r((m = (g = o.dateRange) == null ? void 0 : g.from) == null ? void 0 : m.getTime(), p);
17828
17834
  })
17829
17835
  }, Xn({ _: 2 }, [
17830
17836
  s.value ? {
17831
17837
  name: "footer",
17832
17838
  fn: F(() => [
17833
17839
  T("div", E_, [
17834
- (x(!0), R(Oe, null, Wt(s.value, (d, f) => (x(), re(l, {
17835
- key: f,
17840
+ (x(!0), R(Oe, null, Wt(s.value, (p, g) => (x(), re(l, {
17841
+ key: g,
17836
17842
  class: "my-1 mr-2",
17837
17843
  size: "small",
17838
17844
  type: "info",
17839
17845
  ghost: "",
17840
- onClick: (p) => {
17841
- var g, m;
17842
- return r((g = d.from) == null ? void 0 : g.getTime(), (m = d.to) == null ? void 0 : m.getTime());
17846
+ onClick: (m) => {
17847
+ var v, _;
17848
+ return r((v = p == null ? void 0 : p.from) == null ? void 0 : v.getTime(), (_ = p == null ? void 0 : p.to) == null ? void 0 : _.getTime());
17843
17849
  }
17844
17850
  }, {
17845
17851
  default: F(() => [
17846
- oe(q(d.label), 1)
17852
+ oe(q(p.label), 1)
17847
17853
  ]),
17848
17854
  _: 2
17849
17855
  }, 1032, ["onClick"]))), 128))
@@ -17944,7 +17950,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17944
17950
  setup(e, { expose: t, emit: i }) {
17945
17951
  const n = e, s = i, r = H(n.show), o = H(n.processing), a = ni.initRefDependingOnDeviceResolution(n.sizes.phone.size, n.sizes.tablet.size, n.sizes.default.size), l = ni.initRefDependingOnDeviceResolution(n.sizes.phone.scale, n.sizes.tablet.scale, n.sizes.default.scale), c = N(() => window.innerWidth * l.value), u = () => {
17946
17952
  s("opening"), r.value = !0, s("update:show", r.value);
17947
- }, h = (f = "other") => {
17953
+ }, d = (f = "other") => {
17948
17954
  if (o.value) {
17949
17955
  s("processing:cancel", (v) => {
17950
17956
  o.value = v;
@@ -17955,7 +17961,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17955
17961
  s("closing", f, () => {
17956
17962
  p = !0;
17957
17963
  }), p || (r.value = !1, s("update:show", r.value));
17958
- }, d = () => {
17964
+ }, h = () => {
17959
17965
  s("accept", (p) => {
17960
17966
  o.value = p;
17961
17967
  });
@@ -17963,7 +17969,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17963
17969
  return Ie(
17964
17970
  () => n.show,
17965
17971
  (f) => {
17966
- f ? u() : h("other");
17972
+ f ? u() : d("other");
17967
17973
  }
17968
17974
  ), Ie(
17969
17975
  () => n.processing,
@@ -17978,7 +17984,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17978
17984
  /**
17979
17985
  * Закрывает модальное окно.
17980
17986
  */
17981
- close: h
17987
+ close: d
17982
17988
  }), (f, p) => {
17983
17989
  const g = qe, m = tl;
17984
17990
  return x(), re(m, {
@@ -17990,9 +17996,9 @@ const N0 = {}, Js = /* @__PURE__ */ te({
17990
17996
  title: f.title,
17991
17997
  "action-class": f.$slots["extra-action"] ? "grid grid-cols-2 !justify-between" : void 0,
17992
17998
  preset: "dialog",
17993
- onClose: p[1] || (p[1] = (v) => h("header")),
17994
- onEsc: p[2] || (p[2] = (v) => h("esc")),
17995
- onMaskClick: p[3] || (p[3] = (v) => h("mask"))
17999
+ onClose: p[1] || (p[1] = (v) => d("header")),
18000
+ onEsc: p[2] || (p[2] = (v) => d("esc")),
18001
+ onMaskClick: p[3] || (p[3] = (v) => d("mask"))
17996
18002
  }, Xn({
17997
18003
  default: F(() => [
17998
18004
  Me(f.$slots, "default")
@@ -18019,7 +18025,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
18019
18025
  disabled: o.value,
18020
18026
  size: K(a),
18021
18027
  type: "primary",
18022
- onClick: d
18028
+ onClick: h
18023
18029
  }, {
18024
18030
  default: F(() => [
18025
18031
  oe(q(f.acceptButton.text ?? "ОК"), 1)
@@ -18030,7 +18036,7 @@ const N0 = {}, Js = /* @__PURE__ */ te({
18030
18036
  key: 1,
18031
18037
  size: K(a),
18032
18038
  type: "default",
18033
- onClick: p[0] || (p[0] = (v) => h("footer"))
18039
+ onClick: p[0] || (p[0] = (v) => d("footer"))
18034
18040
  }, {
18035
18041
  default: F(() => [
18036
18042
  oe(q(f.cancelButton.text ?? "Отмена"), 1)
@@ -18199,7 +18205,7 @@ const Q_ = Ye({ name: "ion-options-outline", render: J_ }), ey = { class: "flex
18199
18205
  i("cancel", r);
18200
18206
  };
18201
18207
  return (l, c) => {
18202
- const u = Q_, h = qe, d = tn, f = K_, p = ho;
18208
+ const u = Q_, d = qe, h = tn, f = K_, p = ho;
18203
18209
  return x(), R("div", ey, [
18204
18210
  T("div", ty, [
18205
18211
  Me(l.$slots, "default")
@@ -18207,12 +18213,12 @@ const Q_ = Ye({ name: "ion-options-outline", render: J_ }), ey = { class: "flex
18207
18213
  T("div", null, [
18208
18214
  T("div", iy, [
18209
18215
  T("div", ny, [
18210
- l.showEditButton ? (x(), re(d, {
18216
+ l.showEditButton ? (x(), re(h, {
18211
18217
  key: 0,
18212
18218
  placement: "bottom"
18213
18219
  }, {
18214
18220
  trigger: F(() => [
18215
- z(h, {
18221
+ z(d, {
18216
18222
  disabled: l.disabled || n.value,
18217
18223
  type: "info",
18218
18224
  ghost: "",
@@ -18230,13 +18236,13 @@ const Q_ = Ye({ name: "ion-options-outline", render: J_ }), ey = { class: "flex
18230
18236
  ]),
18231
18237
  _: 1
18232
18238
  })) : U("", !0),
18233
- l.showApplyButton ? (x(), re(d, {
18239
+ l.showApplyButton ? (x(), re(h, {
18234
18240
  key: 1,
18235
18241
  disabled: n.value,
18236
18242
  placement: "bottom"
18237
18243
  }, {
18238
18244
  trigger: F(() => [
18239
- z(h, {
18245
+ z(d, {
18240
18246
  disabled: l.disabled || n.value,
18241
18247
  type: "primary",
18242
18248
  size: "small",
@@ -18253,12 +18259,12 @@ const Q_ = Ye({ name: "ion-options-outline", render: J_ }), ey = { class: "flex
18253
18259
  ]),
18254
18260
  _: 1
18255
18261
  }, 8, ["disabled"])) : U("", !0),
18256
- l.showCancelButton ? (x(), re(d, {
18262
+ l.showCancelButton ? (x(), re(h, {
18257
18263
  key: 2,
18258
18264
  placement: "bottom"
18259
18265
  }, {
18260
18266
  trigger: F(() => [
18261
- z(h, {
18267
+ z(d, {
18262
18268
  disabled: l.disabled || n.value,
18263
18269
  type: "error",
18264
18270
  size: "small",
@@ -18948,9 +18954,9 @@ function oa(e, t) {
18948
18954
  indeterminateKeys: Array.from(r)
18949
18955
  };
18950
18956
  const { levelTreeNodeMap: u } = t;
18951
- let h;
18952
- s !== void 0 ? h = Ky(s, i, t, c) : n !== void 0 ? h = qy(n, i, t, c) : h = Qr(i, t, c, !1);
18953
- const d = l === "parent", f = l === "child" || a, p = h, g = /* @__PURE__ */ new Set(), m = Math.max.apply(null, Array.from(u.keys()));
18957
+ let d;
18958
+ s !== void 0 ? d = Ky(s, i, t, c) : n !== void 0 ? d = qy(n, i, t, c) : d = Qr(i, t, c, !1);
18959
+ const h = l === "parent", f = l === "child" || a, p = d, g = /* @__PURE__ */ new Set(), m = Math.max.apply(null, Array.from(u.keys()));
18954
18960
  for (let v = m; v >= 0; v -= 1) {
18955
18961
  const _ = v === 0, S = u.get(v);
18956
18962
  for (const k of S) {
@@ -18974,7 +18980,7 @@ function oa(e, t) {
18974
18980
  break;
18975
18981
  }
18976
18982
  }
18977
- w && !I ? (d && k.children.forEach((O) => {
18983
+ w && !I ? (h && k.children.forEach((O) => {
18978
18984
  !O.disabled && p.has(O.key) && p.delete(O.key);
18979
18985
  }), p.add(C)) : A && g.add(C), _ && f && p.has(C) && p.delete(C);
18980
18986
  }
@@ -18991,8 +18997,8 @@ function Qr(e, t, i, n) {
18991
18997
  c !== void 0 && Nd(c, (u) => {
18992
18998
  if (u.disabled)
18993
18999
  return Na.STOP;
18994
- const { key: h } = u;
18995
- if (!o.has(h) && (o.add(h), a.add(h), Hy(u.rawNode, r))) {
19000
+ const { key: d } = u;
19001
+ if (!o.has(d) && (o.add(d), a.add(d), Hy(u.rawNode, r))) {
18996
19002
  if (n)
18997
19003
  return Na.STOP;
18998
19004
  if (!i)
@@ -19052,8 +19058,8 @@ function Nc(e, t, { loop: i = !1, includeDisabled: n = !1 } = {}) {
19052
19058
  if (u !== null)
19053
19059
  l(u);
19054
19060
  else {
19055
- const h = tb(c);
19056
- h != null && h.isGroup ? l(s(h, i)) : i && l(s(c, !0));
19061
+ const d = tb(c);
19062
+ d != null && d.isGroup ? l(s(d, i)) : i && l(s(c, !0));
19057
19063
  }
19058
19064
  }
19059
19065
  }
@@ -19124,12 +19130,12 @@ function Hd(e, t, i, n, s, r = null, o = 0) {
19124
19130
  return e.forEach((l, c) => {
19125
19131
  var u;
19126
19132
  rb.NODE_ENV !== "production" && Wy(l, s) && console.error("[treemate]: node", l, "is invalid");
19127
- const h = Object.create(n);
19128
- if (h.rawNode = l, h.siblings = a, h.level = o, h.index = c, h.isFirstChild = c === 0, h.isLastChild = c + 1 === e.length, h.parent = r, !h.ignored) {
19129
- const d = s(l);
19130
- Array.isArray(d) && (h.children = Hd(d, t, i, n, s, h, o + 1));
19133
+ const d = Object.create(n);
19134
+ if (d.rawNode = l, d.siblings = a, d.level = o, d.index = c, d.isFirstChild = c === 0, d.isLastChild = c + 1 === e.length, d.parent = r, !d.ignored) {
19135
+ const h = s(l);
19136
+ Array.isArray(h) && (d.children = Hd(h, t, i, n, s, d, o + 1));
19131
19137
  }
19132
- a.push(h), t.set(h.key, h), i.has(o) || i.set(o, []), (u = i.get(o)) === null || u === void 0 || u.push(h);
19138
+ a.push(d), t.set(d.key, d), i.has(o) || i.set(o, []), (u = i.get(o)) === null || u === void 0 || u.push(d);
19133
19139
  }), a;
19134
19140
  }
19135
19141
  function ob(e, t = {}) {
@@ -19137,7 +19143,7 @@ function ob(e, t = {}) {
19137
19143
  const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), { getDisabled: r = Ny, getIgnored: o = Ly, getIsGroup: a = Xy, getKey: l = Iy } = t, c = (i = t.getChildren) !== null && i !== void 0 ? i : zy, u = t.ignoreEmptyChildren ? (k) => {
19138
19144
  const C = c(k);
19139
19145
  return Array.isArray(C) ? C.length ? C : null : C;
19140
- } : c, h = Object.assign({
19146
+ } : c, d = Object.assign({
19141
19147
  get key() {
19142
19148
  return l(this.rawNode);
19143
19149
  },
@@ -19159,7 +19165,7 @@ function ob(e, t = {}) {
19159
19165
  contains(k) {
19160
19166
  return sb(this, k);
19161
19167
  }
19162
- }, ib), d = Hd(e, n, s, h, u);
19168
+ }, ib), h = Hd(e, n, s, d, u);
19163
19169
  function f(k) {
19164
19170
  if (k == null)
19165
19171
  return null;
@@ -19189,13 +19195,13 @@ function ob(e, t = {}) {
19189
19195
  return C ? C.getChild() : null;
19190
19196
  }
19191
19197
  const S = {
19192
- treeNodes: d,
19198
+ treeNodes: h,
19193
19199
  treeNodeMap: n,
19194
19200
  levelTreeNodeMap: s,
19195
19201
  maxLevel: Math.max(...s.keys()),
19196
19202
  getChildren: u,
19197
19203
  getFlattenedNodes(k) {
19198
- return nb(d, k);
19204
+ return nb(h, k);
19199
19205
  },
19200
19206
  getNode: f,
19201
19207
  getPrev: g,
@@ -19203,7 +19209,7 @@ function ob(e, t = {}) {
19203
19209
  getParent: v,
19204
19210
  getChild: _,
19205
19211
  getFirstAvailableNode() {
19206
- return Jy(d);
19212
+ return Jy(h);
19207
19213
  },
19208
19214
  getPath(k, C = {}) {
19209
19215
  return Zy(k, C, S);
@@ -19244,7 +19250,7 @@ function ob(e, t = {}) {
19244
19250
  }, S);
19245
19251
  },
19246
19252
  getNonLeafKeys(k = {}) {
19247
- return Oy(d, k);
19253
+ return Oy(h, k);
19248
19254
  }
19249
19255
  };
19250
19256
  return S;
@@ -19348,8 +19354,8 @@ function db() {
19348
19354
  const u = {
19349
19355
  bubble: {},
19350
19356
  capture: {}
19351
- }, h = {};
19352
- function d() {
19357
+ }, d = {};
19358
+ function h() {
19353
19359
  const w = function(A) {
19354
19360
  const { type: I, eventPhase: O, bubbles: L } = A, Z = Ir(A);
19355
19361
  if (O === 2)
@@ -19407,18 +19413,18 @@ function db() {
19407
19413
  const { type: I, eventPhase: O } = A;
19408
19414
  if (O !== 2)
19409
19415
  return;
19410
- const L = h[I];
19416
+ const L = d[I];
19411
19417
  L !== void 0 && L.forEach((Z) => Z(A));
19412
19418
  };
19413
19419
  return w.displayName = "evtdUnifiedWindowEventHandler", w;
19414
19420
  }
19415
- const p = d(), g = f();
19421
+ const p = h(), g = f();
19416
19422
  function m(w, A) {
19417
19423
  const I = u[w];
19418
19424
  return I[A] === void 0 && (I[A] = /* @__PURE__ */ new Map(), window.addEventListener(A, p, w === "capture")), I[A];
19419
19425
  }
19420
19426
  function v(w) {
19421
- return h[w] === void 0 && (h[w] = /* @__PURE__ */ new Set(), window.addEventListener(w, g)), h[w];
19427
+ return d[w] === void 0 && (d[w] = /* @__PURE__ */ new Set(), window.addEventListener(w, g)), d[w];
19422
19428
  }
19423
19429
  function _(w, A) {
19424
19430
  let I = w.get(A);
@@ -19434,7 +19440,7 @@ function db() {
19434
19440
  return !1;
19435
19441
  }
19436
19442
  function k(w, A) {
19437
- const I = h[w];
19443
+ const I = d[w];
19438
19444
  return !!(I !== void 0 && I.has(A));
19439
19445
  }
19440
19446
  function C(w, A, I, O) {
@@ -19454,8 +19460,8 @@ function db() {
19454
19460
  return;
19455
19461
  const Z = O === !0 || typeof O == "object" && O.capture === !0, D = Z ? "capture" : "bubble", W = m(D, w), X = _(W, A);
19456
19462
  if (A === window && !S(A, Z ? "bubble" : "capture", w, I) && k(w, I)) {
19457
- const B = h[w];
19458
- B.delete(I), B.size === 0 && (window.removeEventListener(w, g), h[w] = void 0);
19463
+ const B = d[w];
19464
+ B.delete(I), B.size === 0 && (window.removeEventListener(w, g), d[w] = void 0);
19459
19465
  }
19460
19466
  X.has(I) && X.delete(I), X.size === 0 && W.delete(A), W.size === 0 && (window.removeEventListener(w, p, D === "capture"), u[D][w] = void 0);
19461
19467
  }
@@ -19731,18 +19737,18 @@ const Yd = te({
19731
19737
  for (; v = Ud(v), v !== null; )
19732
19738
  r.push(v);
19733
19739
  for (const _ of r)
19734
- Ht("scroll", _, h, !0);
19740
+ Ht("scroll", _, d, !0);
19735
19741
  }, a = () => {
19736
19742
  for (const v of r)
19737
- bt("scroll", v, h, !0);
19743
+ bt("scroll", v, d, !0);
19738
19744
  r = [];
19739
19745
  }, l = /* @__PURE__ */ new Set(), c = (v) => {
19740
19746
  l.size === 0 && o(), l.has(v) || l.add(v);
19741
19747
  }, u = (v) => {
19742
19748
  l.has(v) && l.delete(v), l.size === 0 && a();
19743
- }, h = () => {
19744
- Bd(d);
19745
19749
  }, d = () => {
19750
+ Bd(h);
19751
+ }, h = () => {
19746
19752
  l.forEach((v) => v());
19747
19753
  }, f = /* @__PURE__ */ new Set(), p = (v) => {
19748
19754
  f.size === 0 && Ht("resize", window, m), f.has(v) || f.add(v);
@@ -20014,15 +20020,15 @@ function Lb(e, t, i, n, s, r, o, a, l) {
20014
20020
  const u = wo(i, a);
20015
20021
  if (u !== null && !r)
20016
20022
  return u;
20017
- const h = u ?? Eb(i);
20018
- if (c === void 0 && (c = t.render(n)), h.textContent = c, u !== null)
20023
+ const d = u ?? Eb(i);
20024
+ if (c === void 0 && (c = t.render(n)), d.textContent = c, u !== null)
20019
20025
  return u;
20020
20026
  if (o) {
20021
- const d = a.querySelector(`meta[name="${o}"]`);
20022
- if (d)
20023
- return a.insertBefore(h, d), Xc(t.els, h), h;
20027
+ const h = a.querySelector(`meta[name="${o}"]`);
20028
+ if (h)
20029
+ return a.insertBefore(d, h), Xc(t.els, d), d;
20024
20030
  }
20025
- return s ? a.insertBefore(h, a.querySelector("style, link")) : a.appendChild(h), Xc(t.els, h), h;
20031
+ return s ? a.insertBefore(d, a.querySelector("style, link")) : a.appendChild(d), Xc(t.els, d), d;
20026
20032
  }
20027
20033
  function Db(e) {
20028
20034
  return zb(this, this.instance, e);
@@ -20249,7 +20255,7 @@ function qb(e, t, i, n, s, r) {
20249
20255
  left: m,
20250
20256
  top: v
20251
20257
  };
20252
- }, h = o === "left" || o === "right";
20258
+ }, d = o === "left" || o === "right";
20253
20259
  if (l !== "center") {
20254
20260
  const f = Yb[e], p = Mr[f], g = ca[f];
20255
20261
  if (i[g] > t[g]) {
@@ -20260,7 +20266,7 @@ function qb(e, t, i, n, s, r) {
20260
20266
  t[f] + t[g] < i[g]
20261
20267
  ) {
20262
20268
  const m = (i[g] - t[g]) / 2;
20263
- t[f] < m || t[p] < m ? t[f] < t[p] ? (l = qc[a], c = u(g, p, h)) : c = u(g, f, h) : l = "center";
20269
+ t[f] < m || t[p] < m ? t[f] < t[p] ? (l = qc[a], c = u(g, p, d)) : c = u(g, f, d) : l = "center";
20264
20270
  }
20265
20271
  } else i[g] < t[g] && t[p] < 0 && // opposite align has larger space
20266
20272
  // ------------[ target ]
@@ -20271,14 +20277,14 @@ function qb(e, t, i, n, s, r) {
20271
20277
  // center is not enough
20272
20278
  // ----------- [ target ]--|
20273
20279
  // -------[ follower ]
20274
- (t[f] < m || t[p] < m) && (t[f] > t[p] ? (l = Kc[f], c = u(g, f, h)) : (l = Kc[p], c = u(g, p, h)));
20280
+ (t[f] < m || t[p] < m) && (t[f] > t[p] ? (l = Kc[f], c = u(g, f, d)) : (l = Kc[p], c = u(g, p, d)));
20275
20281
  }
20276
- let d = o;
20282
+ let h = o;
20277
20283
  return (
20278
20284
  // space is not enough
20279
20285
  t[o] < i[ca[o]] && // opposite position's space is larger
20280
- t[o] < t[Mr[o]] && (d = Mr[o]), {
20281
- placement: l !== "center" ? `${d}-${l}` : d,
20286
+ t[o] < t[Mr[o]] && (h = Mr[o]), {
20287
+ placement: l !== "center" ? `${h}-${l}` : h,
20282
20288
  left: c.left,
20283
20289
  top: c.top
20284
20290
  }
@@ -20496,8 +20502,8 @@ const Zb = hn([
20496
20502
  },
20497
20503
  setup(e) {
20498
20504
  const t = Ge("VBinder"), i = di(() => e.enabled !== void 0 ? e.enabled : e.show), n = H(null), s = H(null), r = () => {
20499
- const { syncTrigger: d } = e;
20500
- d.includes("scroll") && t.addScrollListener(l), d.includes("resize") && t.addResizeListener(l);
20505
+ const { syncTrigger: h } = e;
20506
+ h.includes("scroll") && t.addScrollListener(l), h.includes("resize") && t.addResizeListener(l);
20501
20507
  }, o = () => {
20502
20508
  t.removeScrollListener(l), t.removeResizeListener(l);
20503
20509
  };
@@ -20518,23 +20524,23 @@ const Zb = hn([
20518
20524
  const l = () => {
20519
20525
  if (!i.value)
20520
20526
  return;
20521
- const d = n.value;
20522
- if (d === null)
20527
+ const h = n.value;
20528
+ if (h === null)
20523
20529
  return;
20524
20530
  const f = t.targetRef, { x: p, y: g, overlap: m } = e, v = p !== void 0 && g !== void 0 ? wb(p, g) : la(f);
20525
- d.style.setProperty("--v-target-width", `${Math.round(v.width)}px`), d.style.setProperty("--v-target-height", `${Math.round(v.height)}px`);
20531
+ h.style.setProperty("--v-target-width", `${Math.round(v.width)}px`), h.style.setProperty("--v-target-height", `${Math.round(v.height)}px`);
20526
20532
  const { width: _, minWidth: S, placement: k, internalShift: C, flip: P } = e;
20527
- d.setAttribute("v-placement", k), m ? d.setAttribute("v-overlap", "") : d.removeAttribute("v-overlap");
20528
- const { style: w } = d;
20533
+ h.setAttribute("v-placement", k), m ? h.setAttribute("v-overlap", "") : h.removeAttribute("v-overlap");
20534
+ const { style: w } = h;
20529
20535
  _ === "target" ? w.width = `${v.width}px` : _ !== void 0 ? w.width = _ : w.width = "", S === "target" ? w.minWidth = `${v.width}px` : S !== void 0 ? w.minWidth = S : w.minWidth = "";
20530
- const A = la(d), I = la(s.value), { left: O, top: L, placement: Z } = qb(k, v, A, C, P, m), D = Gb(Z, m), { left: W, top: X, transform: ne } = Kb(Z, I, v, L, O, m);
20531
- d.setAttribute("v-placement", Z), d.style.setProperty("--v-offset-left", `${Math.round(O)}px`), d.style.setProperty("--v-offset-top", `${Math.round(L)}px`), d.style.transform = `translateX(${W}) translateY(${X}) ${ne}`, d.style.setProperty("--v-transform-origin", D), d.style.transformOrigin = D;
20536
+ const A = la(h), I = la(s.value), { left: O, top: L, placement: Z } = qb(k, v, A, C, P, m), D = Gb(Z, m), { left: W, top: X, transform: ne } = Kb(Z, I, v, L, O, m);
20537
+ h.setAttribute("v-placement", Z), h.style.setProperty("--v-offset-left", `${Math.round(O)}px`), h.style.setProperty("--v-offset-top", `${Math.round(L)}px`), h.style.transform = `translateX(${W}) translateY(${X}) ${ne}`, h.style.setProperty("--v-transform-origin", D), h.style.transformOrigin = D;
20532
20538
  };
20533
- Ie(i, (d) => {
20534
- d ? (r(), c()) : o();
20539
+ Ie(i, (h) => {
20540
+ h ? (r(), c()) : o();
20535
20541
  });
20536
20542
  const c = () => {
20537
- Oi().then(l).catch((d) => console.error(d));
20543
+ Oi().then(l).catch((h) => console.error(h));
20538
20544
  };
20539
20545
  [
20540
20546
  "placement",
@@ -20545,17 +20551,17 @@ const Zb = hn([
20545
20551
  "width",
20546
20552
  "overlap",
20547
20553
  "minWidth"
20548
- ].forEach((d) => {
20549
- Ie(Ue(e, d), l);
20550
- }), ["teleportDisabled"].forEach((d) => {
20551
- Ie(Ue(e, d), c);
20552
- }), Ie(Ue(e, "syncTrigger"), (d) => {
20553
- d.includes("resize") ? t.addResizeListener(l) : t.removeResizeListener(l), d.includes("scroll") ? t.addScrollListener(l) : t.removeScrollListener(l);
20554
+ ].forEach((h) => {
20555
+ Ie(Ue(e, h), l);
20556
+ }), ["teleportDisabled"].forEach((h) => {
20557
+ Ie(Ue(e, h), c);
20558
+ }), Ie(Ue(e, "syncTrigger"), (h) => {
20559
+ h.includes("resize") ? t.addResizeListener(l) : t.removeResizeListener(l), h.includes("scroll") ? t.addScrollListener(l) : t.removeScrollListener(l);
20554
20560
  });
20555
- const u = bo(), h = di(() => {
20556
- const { to: d } = e;
20557
- if (d !== void 0)
20558
- return d;
20561
+ const u = bo(), d = di(() => {
20562
+ const { to: h } = e;
20563
+ if (h !== void 0)
20564
+ return h;
20559
20565
  u.value;
20560
20566
  });
20561
20567
  return {
@@ -20563,7 +20569,7 @@ const Zb = hn([
20563
20569
  mergedEnabled: i,
20564
20570
  offsetContainerRef: s,
20565
20571
  followerRef: n,
20566
- mergedTo: h,
20572
+ mergedTo: d,
20567
20573
  syncPosition: l
20568
20574
  };
20569
20575
  },
@@ -20675,11 +20681,11 @@ var Wn = function(e) {
20675
20681
  return Rr.get(e);
20676
20682
  if (ih(e))
20677
20683
  return Rr.set(e, eu), eu;
20678
- var i = getComputedStyle(e), n = fl(e) && e.ownerSVGElement && e.getBBox(), s = !s1 && i.boxSizing === "border-box", r = n1.test(i.writingMode || ""), o = !n && Qc.test(i.overflowY || ""), a = !n && Qc.test(i.overflowX || ""), l = n ? 0 : Si(i.paddingTop), c = n ? 0 : Si(i.paddingRight), u = n ? 0 : Si(i.paddingBottom), h = n ? 0 : Si(i.paddingLeft), d = n ? 0 : Si(i.borderTopWidth), f = n ? 0 : Si(i.borderRightWidth), p = n ? 0 : Si(i.borderBottomWidth), g = n ? 0 : Si(i.borderLeftWidth), m = h + c, v = l + u, _ = g + f, S = d + p, k = a ? e.offsetHeight - S - e.clientHeight : 0, C = o ? e.offsetWidth - _ - e.clientWidth : 0, P = s ? m + _ : 0, w = s ? v + S : 0, A = n ? n.width : Si(i.width) - P - C, I = n ? n.height : Si(i.height) - w - k, O = A + m + C + _, L = I + v + k + S, Z = Wn({
20684
+ var i = getComputedStyle(e), n = fl(e) && e.ownerSVGElement && e.getBBox(), s = !s1 && i.boxSizing === "border-box", r = n1.test(i.writingMode || ""), o = !n && Qc.test(i.overflowY || ""), a = !n && Qc.test(i.overflowX || ""), l = n ? 0 : Si(i.paddingTop), c = n ? 0 : Si(i.paddingRight), u = n ? 0 : Si(i.paddingBottom), d = n ? 0 : Si(i.paddingLeft), h = n ? 0 : Si(i.borderTopWidth), f = n ? 0 : Si(i.borderRightWidth), p = n ? 0 : Si(i.borderBottomWidth), g = n ? 0 : Si(i.borderLeftWidth), m = d + c, v = l + u, _ = g + f, S = h + p, k = a ? e.offsetHeight - S - e.clientHeight : 0, C = o ? e.offsetWidth - _ - e.clientWidth : 0, P = s ? m + _ : 0, w = s ? v + S : 0, A = n ? n.width : Si(i.width) - P - C, I = n ? n.height : Si(i.height) - w - k, O = A + m + C + _, L = I + v + k + S, Z = Wn({
20679
20685
  devicePixelContentBoxSize: Ss(Math.round(A * devicePixelRatio), Math.round(I * devicePixelRatio), r),
20680
20686
  borderBoxSize: Ss(O, L, r),
20681
20687
  contentBoxSize: Ss(A, I, r),
20682
- contentRect: new th(h, l, A, I)
20688
+ contentRect: new th(d, l, A, I)
20683
20689
  });
20684
20690
  return Rr.set(e, Z), Z;
20685
20691
  }, sh = function(e, t, i) {
@@ -20710,8 +20716,8 @@ var Wn = function(e) {
20710
20716
  if (o.activeTargets.length !== 0) {
20711
20717
  var a = [];
20712
20718
  o.activeTargets.forEach(function(c) {
20713
- var u = new r1(c.target), h = rh(c.target);
20714
- a.push(u), c.lastReportedSize = sh(c.target, c.observedBox), h < e && (e = h);
20719
+ var u = new r1(c.target), d = rh(c.target);
20720
+ a.push(u), c.lastReportedSize = sh(c.target, c.observedBox), d < e && (e = d);
20715
20721
  }), t.push(function() {
20716
20722
  o.callback.call(o.observer, a, o.observer);
20717
20723
  }), o.activeTargets.splice(0, o.activeTargets.length);
@@ -20943,8 +20949,8 @@ function w1({ columnsRef: e, renderColRef: t, renderItemWithColsRef: i }) {
20943
20949
  if (c.length === 0)
20944
20950
  return null;
20945
20951
  const u = new Qd(c.length, 0);
20946
- return c.forEach((h, d) => {
20947
- u.add(d, h.width);
20952
+ return c.forEach((d, h) => {
20953
+ u.add(h, d.width);
20948
20954
  }), u;
20949
20955
  }), o = di(() => {
20950
20956
  const c = r.value;
@@ -21117,13 +21123,13 @@ const au = te({
21117
21123
  columnsRef: Ue(e, "columns"),
21118
21124
  renderColRef: Ue(e, "renderCol"),
21119
21125
  renderItemWithColsRef: Ue(e, "renderItemWithCols")
21120
- }), l = H(null), c = H(void 0), u = /* @__PURE__ */ new Map(), h = N(() => {
21126
+ }), l = H(null), c = H(void 0), u = /* @__PURE__ */ new Map(), d = N(() => {
21121
21127
  const { items: D, itemSize: W, keyField: X } = e, ne = new Qd(D.length, W);
21122
21128
  return D.forEach((B, E) => {
21123
21129
  const J = B[X], Y = u.get(J);
21124
21130
  Y !== void 0 && ne.add(E, Y);
21125
21131
  }), ne;
21126
- }), d = H(0), f = H(0), p = di(() => Math.max(h.value.getBound(f.value - er(e.paddingTop)) - 1, 0)), g = N(() => {
21132
+ }), h = H(0), f = H(0), p = di(() => Math.max(d.value.getBound(f.value - er(e.paddingTop)) - 1, 0)), g = N(() => {
21127
21133
  const { value: D } = c;
21128
21134
  if (D === void 0)
21129
21135
  return [];
@@ -21148,7 +21154,7 @@ const au = te({
21148
21154
  };
21149
21155
  let v, _ = null;
21150
21156
  function S(D, W, X) {
21151
- const { value: ne } = h, B = ne.sum(D) + er(e.paddingTop);
21157
+ const { value: ne } = d, B = ne.sum(D) + er(e.paddingTop);
21152
21158
  if (!X)
21153
21159
  l.value.scrollTo({
21154
21160
  left: 0,
@@ -21186,7 +21192,7 @@ const au = te({
21186
21192
  var X, ne, B;
21187
21193
  if (i || e.ignoreItemResize || Z(W.target))
21188
21194
  return;
21189
- const { value: E } = h, J = r.value.get(D), Y = E.get(J), ee = (B = (ne = (X = W.borderBoxSize) === null || X === void 0 ? void 0 : X[0]) === null || ne === void 0 ? void 0 : ne.blockSize) !== null && B !== void 0 ? B : W.contentRect.height;
21195
+ const { value: E } = d, J = r.value.get(D), Y = E.get(J), ee = (B = (ne = (X = W.borderBoxSize) === null || X === void 0 ? void 0 : X[0]) === null || ne === void 0 ? void 0 : ne.blockSize) !== null && B !== void 0 ? B : W.contentRect.height;
21190
21196
  if (ee === Y)
21191
21197
  return;
21192
21198
  ee - e.itemSize === 0 ? u.delete(D) : u.set(D, ee - e.itemSize);
@@ -21209,7 +21215,7 @@ const au = te({
21209
21215
  }
21210
21216
  L();
21211
21217
  }
21212
- d.value++;
21218
+ h.value++;
21213
21219
  }
21214
21220
  const P = !b1();
21215
21221
  let w = !1;
@@ -21262,8 +21268,8 @@ const au = te({
21262
21268
  },
21263
21269
  keyToIndex: r,
21264
21270
  itemsStyle: N(() => {
21265
- const { itemResizable: D } = e, W = As(h.value.sum());
21266
- return d.value, [
21271
+ const { itemResizable: D } = e, W = As(d.value.sum());
21272
+ return h.value, [
21267
21273
  e.itemsStyle,
21268
21274
  {
21269
21275
  boxSizing: "content-box",
@@ -21275,8 +21281,8 @@ const au = te({
21275
21281
  }
21276
21282
  ];
21277
21283
  }),
21278
- visibleItemsStyle: N(() => (d.value, {
21279
- transform: `translateY(${As(h.value.sum(p.value))})`
21284
+ visibleItemsStyle: N(() => (h.value, {
21285
+ transform: `translateY(${As(d.value.sum(p.value))})`
21280
21286
  })),
21281
21287
  viewportItems: g,
21282
21288
  listElRef: l,
@@ -21313,16 +21319,16 @@ const au = te({
21313
21319
  default: () => {
21314
21320
  const { renderCol: o, renderItemWithCols: a } = this;
21315
21321
  return this.viewportItems.map((l) => {
21316
- const c = l[t], u = i.get(c), h = o != null ? M(au, {
21322
+ const c = l[t], u = i.get(c), d = o != null ? M(au, {
21317
21323
  index: u,
21318
21324
  item: l
21319
- }) : void 0, d = a != null ? M(au, {
21325
+ }) : void 0, h = a != null ? M(au, {
21320
21326
  index: u,
21321
21327
  item: l
21322
21328
  }) : void 0, f = this.$slots.default({
21323
21329
  item: l,
21324
- renderedCols: h,
21325
- renderedItemWithCols: d,
21330
+ renderedCols: d,
21331
+ renderedItemWithCols: h,
21326
21332
  index: u
21327
21333
  })[0];
21328
21334
  return e ? M(to, {
@@ -21358,30 +21364,30 @@ const au = te({
21358
21364
  if (l !== void 0 ? u = l() : u = n.value, !a || !u)
21359
21365
  return;
21360
21366
  u.hasAttribute(Hi) && u.removeAttribute(Hi);
21361
- const { children: h } = a;
21367
+ const { children: d } = a;
21362
21368
  if (o.showAllItemsBeforeCalculate)
21363
- for (const S of h)
21369
+ for (const S of d)
21364
21370
  S.hasAttribute(Hi) && S.removeAttribute(Hi);
21365
- const d = a.offsetWidth, f = [], p = t.tail ? c == null ? void 0 : c() : null;
21371
+ const h = a.offsetWidth, f = [], p = t.tail ? c == null ? void 0 : c() : null;
21366
21372
  let g = p ? p.offsetWidth : 0, m = !1;
21367
21373
  const v = a.children.length - (t.tail ? 1 : 0);
21368
21374
  for (let S = 0; S < v - 1; ++S) {
21369
21375
  if (S < 0)
21370
21376
  continue;
21371
- const k = h[S];
21377
+ const k = d[S];
21372
21378
  if (m) {
21373
21379
  k.hasAttribute(Hi) || k.setAttribute(Hi, "");
21374
21380
  continue;
21375
21381
  } else k.hasAttribute(Hi) && k.removeAttribute(Hi);
21376
21382
  const C = k.offsetWidth;
21377
- if (g += C, f[S] = C, g > d) {
21383
+ if (g += C, f[S] = C, g > h) {
21378
21384
  const { updateCounter: P } = e;
21379
21385
  for (let w = S; w >= 0; --w) {
21380
21386
  const A = v - 1 - w;
21381
21387
  P !== void 0 ? P(A) : u.textContent = `${A}`;
21382
21388
  const I = u.offsetWidth;
21383
- if (g -= f[w], g + I <= d || w === 0) {
21384
- m = !0, S = w - 1, p && (S === -1 ? (p.style.maxWidth = `${d - I}px`, p.style.boxSizing = "border-box") : p.style.maxWidth = "");
21389
+ if (g -= f[w], g + I <= h || w === 0) {
21390
+ m = !0, S = w - 1, p && (S === -1 ? (p.style.maxWidth = `${h - I}px`, p.style.boxSizing = "border-box") : p.style.maxWidth = "");
21385
21391
  const { onUpdateCount: O } = e;
21386
21392
  O && O(A);
21387
21393
  break;
@@ -21504,12 +21510,12 @@ const T1 = te({
21504
21510
  }
21505
21511
  gt(() => {
21506
21512
  Ie(() => e.active, (m) => {
21507
- m ? (h(), Ht("keydown", document, l)) : (bt("keydown", document, l), s && d());
21513
+ m ? (d(), Ht("keydown", document, l)) : (bt("keydown", document, l), s && h());
21508
21514
  }, {
21509
21515
  immediate: !0
21510
21516
  });
21511
21517
  }), ri(() => {
21512
- bt("keydown", document, l), s && d();
21518
+ bt("keydown", document, l), s && h();
21513
21519
  });
21514
21520
  function c(m) {
21515
21521
  if (!r && a()) {
@@ -21528,7 +21534,7 @@ const T1 = te({
21528
21534
  ;
21529
21535
  return v;
21530
21536
  }
21531
- function h() {
21537
+ function d() {
21532
21538
  var m;
21533
21539
  if (!e.disabled) {
21534
21540
  if (Os.push(t), e.autoFocus) {
@@ -21538,7 +21544,7 @@ const T1 = te({
21538
21544
  s = !0, document.addEventListener("focus", c, !0);
21539
21545
  }
21540
21546
  }
21541
- function d() {
21547
+ function h() {
21542
21548
  var m;
21543
21549
  if (e.disabled || (document.removeEventListener("focus", c, !0), Os = Os.filter((_) => _ !== t), a()))
21544
21550
  return;
@@ -21914,28 +21920,28 @@ function ss(e, t, i, n) {
21914
21920
  i || bh("useThemeClass", "cssVarsRef is not passed");
21915
21921
  const s = Ge(is, null), r = s == null ? void 0 : s.mergedThemeHashRef, o = s == null ? void 0 : s.styleMountTarget, a = H(""), l = ts();
21916
21922
  let c;
21917
- const u = `__${e}`, h = () => {
21918
- let d = u;
21923
+ const u = `__${e}`, d = () => {
21924
+ let h = u;
21919
21925
  const f = t ? t.value : void 0, p = r == null ? void 0 : r.value;
21920
- p && (d += `-${p}`), f && (d += `-${f}`);
21926
+ p && (h += `-${p}`), f && (h += `-${f}`);
21921
21927
  const {
21922
21928
  themeOverrides: g,
21923
21929
  builtinThemeOverrides: m
21924
21930
  } = n;
21925
- g && (d += `-${Xa(JSON.stringify(g))}`), m && (d += `-${Xa(JSON.stringify(m))}`), a.value = d, c = () => {
21931
+ g && (h += `-${Xa(JSON.stringify(g))}`), m && (h += `-${Xa(JSON.stringify(m))}`), a.value = h, c = () => {
21926
21932
  const v = i.value;
21927
21933
  let _ = "";
21928
21934
  for (const S in v)
21929
21935
  _ += `${S}: ${v[S]};`;
21930
- me(`.${d}`, _).mount({
21931
- id: d,
21936
+ me(`.${h}`, _).mount({
21937
+ id: h,
21932
21938
  ssr: l,
21933
21939
  parent: o
21934
21940
  }), c = void 0;
21935
21941
  };
21936
21942
  };
21937
21943
  return Qi(() => {
21938
- h();
21944
+ d();
21939
21945
  }), {
21940
21946
  themeClass: a,
21941
21947
  onRender: () => {
@@ -22145,9 +22151,9 @@ function zs(e) {
22145
22151
  const n = i.width, s = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], r = t.match(s);
22146
22152
  if (!r)
22147
22153
  return null;
22148
- const o = r[0], a = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? j1(a, (h) => h.test(o)) : (
22154
+ const o = r[0], a = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? j1(a, (d) => d.test(o)) : (
22149
22155
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
22150
- V1(a, (h) => h.test(o))
22156
+ V1(a, (d) => d.test(o))
22151
22157
  );
22152
22158
  let c;
22153
22159
  c = e.valueCallback ? e.valueCallback(l) : l, c = i.valueCallback ? (
@@ -22697,8 +22703,8 @@ function Ot(e, t, i, n, s, r) {
22697
22703
  const {
22698
22704
  theme: {
22699
22705
  common: u,
22700
- self: h,
22701
- peers: d = {}
22706
+ self: d,
22707
+ peers: h = {}
22702
22708
  } = {},
22703
22709
  themeOverrides: f = {},
22704
22710
  builtinThemeOverrides: p = {}
@@ -22720,7 +22726,7 @@ function Ot(e, t, i, n, s, r) {
22720
22726
  peers: A = {}
22721
22727
  } = P, I = gr({}, u || _ || v || n.common, C, w, g), O = gr(
22722
22728
  // {}, executed every time, no need for empty obj
22723
- (c = h || S || n.self) === null || c === void 0 ? void 0 : c(I),
22729
+ (c = d || S || n.self) === null || c === void 0 ? void 0 : c(I),
22724
22730
  p,
22725
22731
  P,
22726
22732
  f
@@ -22728,7 +22734,7 @@ function Ot(e, t, i, n, s, r) {
22728
22734
  return {
22729
22735
  common: I,
22730
22736
  self: O,
22731
- peers: gr({}, n.peers, k, d),
22737
+ peers: gr({}, n.peers, k, h),
22732
22738
  peerOverrides: gr({}, p.peers, A, m)
22733
22739
  };
22734
22740
  });
@@ -23540,12 +23546,12 @@ const $h = {
23540
23546
  mergedClsPrefixRef: t,
23541
23547
  inlineThemeDisabled: i,
23542
23548
  mergedRtlRef: n
23543
- } = ns(e), s = ko("Scrollbar", n, t), r = H(null), o = H(null), a = H(null), l = H(null), c = H(null), u = H(null), h = H(null), d = H(null), f = H(null), p = H(null), g = H(null), m = H(0), v = H(0), _ = H(!1), S = H(!1);
23549
+ } = ns(e), s = ko("Scrollbar", n, t), r = H(null), o = H(null), a = H(null), l = H(null), c = H(null), u = H(null), d = H(null), h = H(null), f = H(null), p = H(null), g = H(null), m = H(0), v = H(0), _ = H(!1), S = H(!1);
23544
23550
  let k = !1, C = !1, P, w, A = 0, I = 0, O = 0, L = 0;
23545
23551
  const Z = bb(), D = Ot("Scrollbar", "-scrollbar", Uw, $h, e, t), W = N(() => {
23546
23552
  const {
23547
23553
  value: $
23548
- } = d, {
23554
+ } = h, {
23549
23555
  value: G
23550
23556
  } = u, {
23551
23557
  value: le
@@ -23556,14 +23562,14 @@ const $h = {
23556
23562
  value: $
23557
23563
  } = f, {
23558
23564
  value: G
23559
- } = h, {
23565
+ } = d, {
23560
23566
  value: le
23561
23567
  } = g;
23562
23568
  return $ === null || G === null || le === null ? 0 : le * $ / G + er(D.value.self.height) * 1.5;
23563
23569
  }), B = N(() => `${ne.value}px`), E = N(() => {
23564
23570
  const {
23565
23571
  value: $
23566
- } = d, {
23572
+ } = h, {
23567
23573
  value: G
23568
23574
  } = m, {
23569
23575
  value: le
@@ -23583,7 +23589,7 @@ const $h = {
23583
23589
  value: G
23584
23590
  } = v, {
23585
23591
  value: le
23586
- } = h, {
23592
+ } = d, {
23587
23593
  value: ve
23588
23594
  } = g;
23589
23595
  if ($ === null || le === null || ve === null)
@@ -23595,7 +23601,7 @@ const $h = {
23595
23601
  }), ee = N(() => `${Y.value}px`), V = N(() => {
23596
23602
  const {
23597
23603
  value: $
23598
- } = d, {
23604
+ } = h, {
23599
23605
  value: G
23600
23606
  } = u;
23601
23607
  return $ !== null && G !== null && G > $;
@@ -23604,7 +23610,7 @@ const $h = {
23604
23610
  value: $
23605
23611
  } = f, {
23606
23612
  value: G
23607
- } = h;
23613
+ } = d;
23608
23614
  return $ !== null && G !== null && G > $;
23609
23615
  }), ae = N(() => {
23610
23616
  const {
@@ -23730,11 +23736,11 @@ const $h = {
23730
23736
  const {
23731
23737
  value: $
23732
23738
  } = be;
23733
- $ && (u.value = $.offsetHeight, h.value = $.offsetWidth);
23739
+ $ && (u.value = $.offsetHeight, d.value = $.offsetWidth);
23734
23740
  const {
23735
23741
  value: G
23736
23742
  } = he;
23737
- G && (d.value = G.offsetHeight, f.value = G.offsetWidth);
23743
+ G && (h.value = G.offsetHeight, f.value = G.offsetWidth);
23738
23744
  const {
23739
23745
  value: le
23740
23746
  } = c, {
@@ -23746,7 +23752,7 @@ const $h = {
23746
23752
  const {
23747
23753
  value: $
23748
23754
  } = he;
23749
- $ && (m.value = $.scrollTop, v.value = $.scrollLeft * (s != null && s.value ? -1 : 1), d.value = $.offsetHeight, f.value = $.offsetWidth, u.value = $.scrollHeight, h.value = $.scrollWidth);
23755
+ $ && (m.value = $.scrollTop, v.value = $.scrollLeft * (s != null && s.value ? -1 : 1), h.value = $.offsetHeight, f.value = $.offsetWidth, u.value = $.scrollHeight, d.value = $.scrollWidth);
23750
23756
  const {
23751
23757
  value: G
23752
23758
  } = c, {
@@ -23771,7 +23777,7 @@ const $h = {
23771
23777
  value: G
23772
23778
  } = f, {
23773
23779
  value: le
23774
- } = h, {
23780
+ } = d, {
23775
23781
  value: ve
23776
23782
  } = ne;
23777
23783
  if (G === null || le === null) return;
@@ -23800,7 +23806,7 @@ const $h = {
23800
23806
  P !== void 0 && window.clearTimeout(P), w !== void 0 && window.clearTimeout(w);
23801
23807
  const {
23802
23808
  value: G
23803
- } = d, {
23809
+ } = h, {
23804
23810
  value: le
23805
23811
  } = u, {
23806
23812
  value: ve
@@ -23964,7 +23970,7 @@ const $h = {
23964
23970
  },
23965
23971
  onMousedown: this.handleYScrollMouseDown
23966
23972
  }) : null
23967
- })), h = () => {
23973
+ })), d = () => {
23968
23974
  var f, p;
23969
23975
  return (f = this.onRender) === null || f === void 0 || f.call(this), M("div", Za(this.$attrs, {
23970
23976
  role: "none",
@@ -24010,12 +24016,12 @@ const $h = {
24010
24016
  onMousedown: this.handleXScrollMouseDown
24011
24017
  }) : null
24012
24018
  }))]);
24013
- }, d = this.container ? h() : M(to, {
24019
+ }, h = this.container ? d() : M(to, {
24014
24020
  onResize: this.handleContainerResize
24015
24021
  }, {
24016
- default: h
24022
+ default: d
24017
24023
  });
24018
- return r ? M(Oe, null, d, u(this.themeClass, this.cssVars)) : d;
24024
+ return r ? M(Oe, null, h, u(this.themeClass, this.cssVars)) : h;
24019
24025
  }
24020
24026
  }), qw = Ph, Gw = {
24021
24027
  iconSizeTiny: "28px",
@@ -24100,20 +24106,20 @@ const Mh = {
24100
24106
  } = ns(e), s = Ot("Empty", "-empty", Zw, Mh, e, t), {
24101
24107
  localeRef: r
24102
24108
  } = wh("Empty"), o = N(() => {
24103
- var u, h, d;
24104
- return (u = e.description) !== null && u !== void 0 ? u : (d = (h = n == null ? void 0 : n.value) === null || h === void 0 ? void 0 : h.Empty) === null || d === void 0 ? void 0 : d.description;
24109
+ var u, d, h;
24110
+ return (u = e.description) !== null && u !== void 0 ? u : (h = (d = n == null ? void 0 : n.value) === null || d === void 0 ? void 0 : d.Empty) === null || h === void 0 ? void 0 : h.description;
24105
24111
  }), a = N(() => {
24106
- var u, h;
24107
- return ((h = (u = n == null ? void 0 : n.value) === null || u === void 0 ? void 0 : u.Empty) === null || h === void 0 ? void 0 : h.renderIcon) || (() => M(Ew, null));
24112
+ var u, d;
24113
+ return ((d = (u = n == null ? void 0 : n.value) === null || u === void 0 ? void 0 : u.Empty) === null || d === void 0 ? void 0 : d.renderIcon) || (() => M(Ew, null));
24108
24114
  }), l = N(() => {
24109
24115
  const {
24110
24116
  size: u
24111
24117
  } = e, {
24112
24118
  common: {
24113
- cubicBezierEaseInOut: h
24119
+ cubicBezierEaseInOut: d
24114
24120
  },
24115
24121
  self: {
24116
- [ct("iconSize", u)]: d,
24122
+ [ct("iconSize", u)]: h,
24117
24123
  [ct("fontSize", u)]: f,
24118
24124
  textColor: p,
24119
24125
  iconColor: g,
@@ -24121,9 +24127,9 @@ const Mh = {
24121
24127
  }
24122
24128
  } = s.value;
24123
24129
  return {
24124
- "--n-icon-size": d,
24130
+ "--n-icon-size": h,
24125
24131
  "--n-font-size": f,
24126
- "--n-bezier": h,
24132
+ "--n-bezier": d,
24127
24133
  "--n-text-color": p,
24128
24134
  "--n-icon-color": g,
24129
24135
  "--n-extra-text-color": m
@@ -24131,9 +24137,9 @@ const Mh = {
24131
24137
  }), c = i ? ss("empty", N(() => {
24132
24138
  let u = "";
24133
24139
  const {
24134
- size: h
24140
+ size: d
24135
24141
  } = e;
24136
- return u += h[0], u;
24142
+ return u += d[0], u;
24137
24143
  }), l, e) : void 0;
24138
24144
  return {
24139
24145
  mergedClsPrefix: t,
@@ -24191,8 +24197,8 @@ function t2(e) {
24191
24197
  primaryColor: l,
24192
24198
  opacityDisabled: c,
24193
24199
  hoverColor: u,
24194
- fontSizeTiny: h,
24195
- fontSizeSmall: d,
24200
+ fontSizeTiny: d,
24201
+ fontSizeSmall: h,
24196
24202
  fontSizeMedium: f,
24197
24203
  fontSizeLarge: p,
24198
24204
  fontSizeHuge: g,
@@ -24203,8 +24209,8 @@ function t2(e) {
24203
24209
  heightHuge: k
24204
24210
  } = e;
24205
24211
  return Object.assign(Object.assign({}, e2), {
24206
- optionFontSizeTiny: h,
24207
- optionFontSizeSmall: d,
24212
+ optionFontSizeTiny: d,
24213
+ optionFontSizeSmall: h,
24208
24214
  optionFontSizeMedium: f,
24209
24215
  optionFontSizeLarge: p,
24210
24216
  optionFontSizeHuge: g,
@@ -24322,8 +24328,8 @@ const wu = te({
24322
24328
  valueFieldRef: l,
24323
24329
  showCheckmarkRef: c,
24324
24330
  nodePropsRef: u,
24325
- handleOptionClick: h,
24326
- handleOptionMouseEnter: d
24331
+ handleOptionClick: d,
24332
+ handleOptionMouseEnter: h
24327
24333
  } = Ge(pl), f = di(() => {
24328
24334
  const {
24329
24335
  value: v
@@ -24334,13 +24340,13 @@ const wu = te({
24334
24340
  const {
24335
24341
  tmNode: _
24336
24342
  } = e;
24337
- _.disabled || h(v, _);
24343
+ _.disabled || d(v, _);
24338
24344
  }
24339
24345
  function g(v) {
24340
24346
  const {
24341
24347
  tmNode: _
24342
24348
  } = e;
24343
- _.disabled || d(v, _);
24349
+ _.disabled || h(v, _);
24344
24350
  }
24345
24351
  function m(v) {
24346
24352
  const {
@@ -24348,7 +24354,7 @@ const wu = te({
24348
24354
  } = e, {
24349
24355
  value: S
24350
24356
  } = f;
24351
- _.disabled || S || d(v, _);
24357
+ _.disabled || S || h(v, _);
24352
24358
  }
24353
24359
  return {
24354
24360
  multiple: n,
@@ -24402,8 +24408,8 @@ const wu = te({
24402
24408
  renderLabel: l,
24403
24409
  handleClick: c,
24404
24410
  handleMouseEnter: u,
24405
- handleMouseMove: h
24406
- } = this, d = i2(i, e), f = l ? [l(t, i), r && d] : [ys(t[this.labelField], t, i), r && d], p = o == null ? void 0 : o(t), g = M("div", Object.assign({}, p, {
24411
+ handleMouseMove: d
24412
+ } = this, h = i2(i, e), f = l ? [l(t, i), r && h] : [ys(t[this.labelField], t, i), r && h], p = o == null ? void 0 : o(t), g = M("div", Object.assign({}, p, {
24407
24413
  class: [`${e}-base-select-option`, t.class, p == null ? void 0 : p.class, {
24408
24414
  [`${e}-base-select-option--disabled`]: t.disabled,
24409
24415
  [`${e}-base-select-option--selected`]: i,
@@ -24414,7 +24420,7 @@ const wu = te({
24414
24420
  style: [(p == null ? void 0 : p.style) || "", t.style || ""],
24415
24421
  onClick: ga([c, p == null ? void 0 : p.onClick]),
24416
24422
  onMouseenter: ga([u, p == null ? void 0 : p.onMouseenter]),
24417
- onMousemove: ga([h, p == null ? void 0 : p.onMousemove])
24423
+ onMousemove: ga([d, p == null ? void 0 : p.onMousemove])
24418
24424
  }), M("div", {
24419
24425
  class: `${e}-base-select-option__content`
24420
24426
  }, f));
@@ -24636,7 +24642,7 @@ const n2 = we("base-select-menu", `
24636
24642
  mergedClsPrefixRef: t,
24637
24643
  mergedRtlRef: i
24638
24644
  } = ns(e), n = ko("InternalSelectMenu", i, t), s = Ot("InternalSelectMenu", "-internal-select-menu", n2, Rh, e, Ue(e, "clsPrefix")), r = H(null), o = H(null), a = H(null), l = N(() => e.treeMate.getFlattenedNodes()), c = N(() => Uy(l.value)), u = H(null);
24639
- function h() {
24645
+ function d() {
24640
24646
  const {
24641
24647
  treeMate: V
24642
24648
  } = e;
@@ -24646,7 +24652,7 @@ const n2 = we("base-select-menu", `
24646
24652
  } = e;
24647
24653
  ae === null ? j = V.getFirstAvailableNode() : (e.multiple ? j = V.getNode((ae || [])[(ae || []).length - 1]) : j = V.getNode(ae), (!j || j.disabled) && (j = V.getFirstAvailableNode())), W(j || null);
24648
24654
  }
24649
- function d() {
24655
+ function h() {
24650
24656
  const {
24651
24657
  value: V
24652
24658
  } = u;
@@ -24655,7 +24661,7 @@ const n2 = we("base-select-menu", `
24655
24661
  let f;
24656
24662
  Ie(() => e.show, (V) => {
24657
24663
  V ? f = Ie(() => e.treeMate, () => {
24658
- e.resetMenuOnOptionsChange ? (e.autoPending ? h() : d(), Oi(X)) : d();
24664
+ e.resetMenuOnOptionsChange ? (e.autoPending ? d() : h(), Oi(X)) : h();
24659
24665
  }, {
24660
24666
  immediate: !0
24661
24667
  }) : f == null || f();
@@ -25204,14 +25210,14 @@ const c2 = te({
25204
25210
  namespaceRef: n,
25205
25211
  mergedClsPrefixRef: s,
25206
25212
  inlineThemeDisabled: r
25207
- } = ns(e), o = Ot("Popover", "-popover", a2, Eh, e, s), a = H(null), l = Ge("NPopover"), c = H(null), u = H(e.show), h = H(!1);
25213
+ } = ns(e), o = Ot("Popover", "-popover", a2, Eh, e, s), a = H(null), l = Ge("NPopover"), c = H(null), u = H(e.show), d = H(!1);
25208
25214
  Qi(() => {
25209
25215
  const {
25210
25216
  show: w
25211
25217
  } = e;
25212
- w && !B1() && !e.internalDeactivateImmediately && (h.value = !0);
25218
+ w && !B1() && !e.internalDeactivateImmediately && (d.value = !0);
25213
25219
  });
25214
- const d = N(() => {
25220
+ const h = N(() => {
25215
25221
  const {
25216
25222
  trigger: w,
25217
25223
  onClickoutside: A
@@ -25224,7 +25230,7 @@ const c2 = te({
25224
25230
  capture: !0
25225
25231
  }]), w === "hover" && I.push([hb, S])), A && I.push([eo, k, void 0, {
25226
25232
  capture: !0
25227
- }]), (e.displayDirective === "show" || e.animated && h.value) && I.push([Eu, e.show]), I;
25233
+ }]), (e.displayDirective === "show" || e.animated && d.value) && I.push([Eu, e.show]), I;
25228
25234
  }), f = N(() => {
25229
25235
  const {
25230
25236
  common: {
@@ -25307,7 +25313,7 @@ const c2 = te({
25307
25313
  }
25308
25314
  ii(gh, c), ii(fh, null), ii(ph, null);
25309
25315
  function P() {
25310
- if (g == null || g.onRender(), !(e.displayDirective === "show" || e.show || e.animated && h.value))
25316
+ if (g == null || g.onRender(), !(e.displayDirective === "show" || e.show || e.animated && d.value))
25311
25317
  return null;
25312
25318
  let A;
25313
25319
  const I = l.internalRenderBodyRef.value, {
@@ -25378,10 +25384,10 @@ const c2 = te({
25378
25384
  default: W
25379
25385
  }) : W());
25380
25386
  }
25381
- return rr(A, d.value);
25387
+ return rr(A, h.value);
25382
25388
  }
25383
25389
  return {
25384
- displayed: h,
25390
+ displayed: d,
25385
25391
  namespace: n,
25386
25392
  isMounted: l.isMountedRef,
25387
25393
  zIndex: l.zIndexRef,
@@ -25553,8 +25559,8 @@ const p2 = {
25553
25559
  } = e;
25554
25560
  return !!(X != null && X());
25555
25561
  }, l = () => a() ? !1 : r.value, c = jd(e, ["arrow", "showArrow"]), u = N(() => e.overlap ? !1 : c.value);
25556
- let h = null;
25557
- const d = H(null), f = H(null), p = di(() => e.x !== void 0 && e.y !== void 0);
25562
+ let d = null;
25563
+ const h = H(null), f = H(null), p = di(() => e.x !== void 0 && e.y !== void 0);
25558
25564
  function g(X) {
25559
25565
  const {
25560
25566
  "onUpdate:show": ne,
@@ -25565,13 +25571,13 @@ const p2 = {
25565
25571
  s.value = X, ne && Ft(ne, X), B && Ft(B, X), X && E && Ft(E, !0), X && J && Ft(J, !1);
25566
25572
  }
25567
25573
  function m() {
25568
- h && h.syncPosition();
25574
+ d && d.syncPosition();
25569
25575
  }
25570
25576
  function v() {
25571
25577
  const {
25572
25578
  value: X
25573
- } = d;
25574
- X && (window.clearTimeout(X), d.value = null);
25579
+ } = h;
25580
+ X && (window.clearTimeout(X), h.value = null);
25575
25581
  }
25576
25582
  function _() {
25577
25583
  const {
@@ -25596,13 +25602,13 @@ const p2 = {
25596
25602
  function C() {
25597
25603
  const X = a();
25598
25604
  if (e.trigger === "hover" && !X) {
25599
- if (_(), d.value !== null || l()) return;
25605
+ if (_(), h.value !== null || l()) return;
25600
25606
  const ne = () => {
25601
- g(!0), d.value = null;
25607
+ g(!0), h.value = null;
25602
25608
  }, {
25603
25609
  delay: B
25604
25610
  } = e;
25605
- B === 0 ? ne() : d.value = window.setTimeout(ne, B);
25611
+ B === 0 ? ne() : h.value = window.setTimeout(ne, B);
25606
25612
  }
25607
25613
  }
25608
25614
  function P() {
@@ -25642,7 +25648,7 @@ const p2 = {
25642
25648
  return (X = i.value) === null || X === void 0 ? void 0 : X.targetRef;
25643
25649
  }
25644
25650
  function D(X) {
25645
- h = X;
25651
+ d = X;
25646
25652
  }
25647
25653
  return ii("NPopover", {
25648
25654
  getTriggerElement: Z,
@@ -25795,8 +25801,8 @@ function _2(e) {
25795
25801
  errorColor: l,
25796
25802
  baseColor: c,
25797
25803
  borderColor: u,
25798
- opacityDisabled: h,
25799
- tagColor: d,
25804
+ opacityDisabled: d,
25805
+ tagColor: h,
25800
25806
  closeIconColor: f,
25801
25807
  closeIconColorHover: p,
25802
25808
  closeIconColorPressed: g,
@@ -25822,7 +25828,7 @@ function _2(e) {
25822
25828
  heightMedium: w,
25823
25829
  heightLarge: A,
25824
25830
  borderRadius: m,
25825
- opacityDisabled: h,
25831
+ opacityDisabled: d,
25826
25832
  fontSizeTiny: v,
25827
25833
  fontSizeSmall: _,
25828
25834
  fontSizeMedium: S,
@@ -25842,7 +25848,7 @@ function _2(e) {
25842
25848
  // default
25843
25849
  border: `1px solid ${u}`,
25844
25850
  textColor: t,
25845
- color: d,
25851
+ color: h,
25846
25852
  colorBordered: "rgb(250, 250, 252)",
25847
25853
  closeIconColor: f,
25848
25854
  closeIconColorHover: p,
@@ -26105,7 +26111,7 @@ const k2 = Object.assign(Object.assign(Object.assign({}, Ot.props), b2), {
26105
26111
  } = t;
26106
26112
  p && (p.textContent = f);
26107
26113
  }
26108
- }, u = ko("Tag", r, n), h = N(() => {
26114
+ }, u = ko("Tag", r, n), d = N(() => {
26109
26115
  const {
26110
26116
  type: f,
26111
26117
  size: p,
@@ -26185,7 +26191,7 @@ const k2 = Object.assign(Object.assign(Object.assign({}, Ot.props), b2), {
26185
26191
  "--n-text-color-hover-checkable": w,
26186
26192
  "--n-text-color-pressed-checkable": A
26187
26193
  };
26188
- }), d = s ? ss("tag", N(() => {
26194
+ }), h = s ? ss("tag", N(() => {
26189
26195
  let f = "";
26190
26196
  const {
26191
26197
  type: p,
@@ -26196,7 +26202,7 @@ const k2 = Object.assign(Object.assign(Object.assign({}, Ot.props), b2), {
26196
26202
  } = {}
26197
26203
  } = e;
26198
26204
  return f += p[0], f += g[0], m && (f += `a${cu(m)}`), v && (f += `b${cu(v)}`), i.value && (f += "c"), f;
26199
- }), h, e) : void 0;
26205
+ }), d, e) : void 0;
26200
26206
  return Object.assign(Object.assign({}, c), {
26201
26207
  rtlEnabled: u,
26202
26208
  mergedClsPrefix: n,
@@ -26204,9 +26210,9 @@ const k2 = Object.assign(Object.assign(Object.assign({}, Ot.props), b2), {
26204
26210
  mergedBordered: i,
26205
26211
  handleClick: a,
26206
26212
  handleCloseClick: l,
26207
- cssVars: s ? void 0 : h,
26208
- themeClass: d == null ? void 0 : d.themeClass,
26209
- onRender: d == null ? void 0 : d.onRender
26213
+ cssVars: s ? void 0 : d,
26214
+ themeClass: h == null ? void 0 : h.themeClass,
26215
+ onRender: h == null ? void 0 : h.onRender
26210
26216
  });
26211
26217
  },
26212
26218
  render() {
@@ -26223,11 +26229,11 @@ const k2 = Object.assign(Object.assign(Object.assign({}, Ot.props), b2), {
26223
26229
  $slots: l
26224
26230
  } = this;
26225
26231
  a == null || a();
26226
- const c = Vn(l.avatar, (h) => h && M("div", {
26232
+ const c = Vn(l.avatar, (d) => d && M("div", {
26227
26233
  class: `${i}-tag__avatar`
26228
- }, h)), u = Vn(l.icon, (h) => h && M("div", {
26234
+ }, d)), u = Vn(l.icon, (d) => d && M("div", {
26229
26235
  class: `${i}-tag__icon`
26230
- }, h));
26236
+ }, d));
26231
26237
  return M("div", {
26232
26238
  class: [`${i}-tag`, this.themeClass, {
26233
26239
  [`${i}-tag--rtl`]: n,
@@ -26331,8 +26337,8 @@ function $2(e) {
26331
26337
  warningColor: l,
26332
26338
  warningColorHover: c,
26333
26339
  errorColor: u,
26334
- errorColorHover: h,
26335
- borderColor: d,
26340
+ errorColorHover: d,
26341
+ borderColor: h,
26336
26342
  iconColor: f,
26337
26343
  iconColorDisabled: p,
26338
26344
  clearColor: g,
@@ -26369,7 +26375,7 @@ function $2(e) {
26369
26375
  color: s,
26370
26376
  colorDisabled: r,
26371
26377
  colorActive: s,
26372
- border: `1px solid ${d}`,
26378
+ border: `1px solid ${h}`,
26373
26379
  borderHover: `1px solid ${a}`,
26374
26380
  borderActive: `1px solid ${o}`,
26375
26381
  borderFocus: `1px solid ${a}`,
@@ -26400,9 +26406,9 @@ function $2(e) {
26400
26406
  caretColorWarning: l,
26401
26407
  // error
26402
26408
  borderError: `1px solid ${u}`,
26403
- borderHoverError: `1px solid ${h}`,
26409
+ borderHoverError: `1px solid ${d}`,
26404
26410
  borderActiveError: `1px solid ${u}`,
26405
- borderFocusError: `1px solid ${h}`,
26411
+ borderFocusError: `1px solid ${d}`,
26406
26412
  boxShadowHoverError: "none",
26407
26413
  boxShadowActiveError: `0 0 0 2px ${je(u, {
26408
26414
  alpha: 0.2
@@ -26698,7 +26704,7 @@ const Oh = {
26698
26704
  const {
26699
26705
  mergedClsPrefixRef: t,
26700
26706
  mergedRtlRef: i
26701
- } = ns(e), n = ko("InternalSelection", i, t), s = H(null), r = H(null), o = H(null), a = H(null), l = H(null), c = H(null), u = H(null), h = H(null), d = H(null), f = H(null), p = H(!1), g = H(!1), m = H(!1), v = Ot("InternalSelection", "-internal-selection", P2, Oh, e, Ue(e, "clsPrefix")), _ = N(() => e.clearable && !e.disabled && (m.value || e.active)), S = N(() => e.selectedOption ? e.renderTag ? e.renderTag({
26707
+ } = ns(e), n = ko("InternalSelection", i, t), s = H(null), r = H(null), o = H(null), a = H(null), l = H(null), c = H(null), u = H(null), d = H(null), h = H(null), f = H(null), p = H(!1), g = H(!1), m = H(!1), v = Ot("InternalSelection", "-internal-selection", P2, Oh, e, Ue(e, "clsPrefix")), _ = N(() => e.clearable && !e.disabled && (m.value || e.active)), S = N(() => e.selectedOption ? e.renderTag ? e.renderTag({
26702
26708
  option: e.selectedOption,
26703
26709
  handleClose: () => {
26704
26710
  }
@@ -26716,7 +26722,7 @@ const Oh = {
26716
26722
  const {
26717
26723
  value: rt
26718
26724
  } = r;
26719
- rt && (rt.style.width = `${de.offsetWidth}px`, e.maxTagCount !== "responsive" && ((ue = d.value) === null || ue === void 0 || ue.sync({
26725
+ rt && (rt.style.width = `${de.offsetWidth}px`, e.maxTagCount !== "responsive" && ((ue = h.value) === null || ue === void 0 || ue.sync({
26720
26726
  showAllItemsBeforeCalculate: !1
26721
26727
  })));
26722
26728
  }
@@ -26866,7 +26872,7 @@ const Oh = {
26866
26872
  function Ii() {
26867
26873
  const {
26868
26874
  value: ue
26869
- } = h;
26875
+ } = d;
26870
26876
  return ue;
26871
26877
  }
26872
26878
  function Li() {
@@ -27029,14 +27035,14 @@ const Oh = {
27029
27035
  isComposing: ee,
27030
27036
  // dom ref
27031
27037
  counterRef: u,
27032
- counterWrapperRef: h,
27038
+ counterWrapperRef: d,
27033
27039
  patternInputMirrorRef: s,
27034
27040
  patternInputRef: r,
27035
27041
  selfRef: o,
27036
27042
  multipleElRef: a,
27037
27043
  singleElRef: l,
27038
27044
  patternInputWrapperRef: c,
27039
- overflowRef: d,
27045
+ overflowRef: h,
27040
27046
  inputTagElRef: f,
27041
27047
  handleMouseDown: J,
27042
27048
  handleFocusin: W,
@@ -27080,10 +27086,10 @@ const Oh = {
27080
27086
  ellipsisTagPopoverProps: l,
27081
27087
  onRender: c,
27082
27088
  renderTag: u,
27083
- renderLabel: h
27089
+ renderLabel: d
27084
27090
  } = this;
27085
27091
  c == null || c();
27086
- const d = r === "responsive", f = typeof r == "number", p = d || f, g = M(qa, null, {
27092
+ const h = r === "responsive", f = typeof r == "number", p = h || f, g = M(qa, null, {
27087
27093
  default: () => M(S2, {
27088
27094
  clsPrefix: a,
27089
27095
  loading: this.loading,
@@ -27119,7 +27125,7 @@ const Oh = {
27119
27125
  internalCloseIsButtonTag: !1,
27120
27126
  internalCloseFocusable: !1
27121
27127
  }, {
27122
- default: () => h ? h(D, !0) : ys(D[v], D, !0)
27128
+ default: () => d ? d(D, !0) : ys(D[v], D, !0)
27123
27129
  })), S = () => (f ? this.selectedOptions.slice(0, r) : this.selectedOptions).map(_), k = s ? M("div", {
27124
27130
  class: `${a}-base-selection-input-tag`,
27125
27131
  ref: "inputTagElRef",
@@ -27140,7 +27146,7 @@ const Oh = {
27140
27146
  })), M("span", {
27141
27147
  ref: "patternInputMirrorRef",
27142
27148
  class: `${a}-base-selection-input-tag__mirror`
27143
- }, this.pattern)) : null, C = d ? () => M("div", {
27149
+ }, this.pattern)) : null, C = h ? () => M("div", {
27144
27150
  class: `${a}-base-selection-tag-wrapper`,
27145
27151
  ref: "counterWrapperRef"
27146
27152
  }, M(ya, {
@@ -27165,7 +27171,7 @@ const Oh = {
27165
27171
  default: () => `+${D}`
27166
27172
  })));
27167
27173
  }
27168
- const w = d ? s ? M(lu, {
27174
+ const w = h ? s ? M(lu, {
27169
27175
  ref: "overflowRef",
27170
27176
  updateCounter: this.updateCounter,
27171
27177
  getCounter: this.getCounter,
@@ -27193,7 +27199,7 @@ const Oh = {
27193
27199
  counter: C
27194
27200
  }) : f && P ? S().concat(P) : S(), A = p ? () => M("div", {
27195
27201
  class: `${a}-base-selection-popover`
27196
- }, d ? S() : this.selectedOptions.map(_)) : void 0, I = p ? Object.assign({
27202
+ }, h ? S() : this.selectedOptions.map(_)) : void 0, I = p ? Object.assign({
27197
27203
  show: this.showTagsPanel,
27198
27204
  trigger: "hover",
27199
27205
  overlap: !0,
@@ -27209,7 +27215,7 @@ const Oh = {
27209
27215
  }, this.placeholder)) : null, Z = s ? M("div", {
27210
27216
  ref: "patternInputWrapperRef",
27211
27217
  class: `${a}-base-selection-tags`
27212
- }, w, d ? null : k, g) : M("div", {
27218
+ }, w, h ? null : k, g) : M("div", {
27213
27219
  ref: "multipleElRef",
27214
27220
  class: `${a}-base-selection-tags`,
27215
27221
  tabindex: n ? void 0 : 0
@@ -27250,7 +27256,7 @@ const Oh = {
27250
27256
  option: this.selectedOption,
27251
27257
  handleClose: () => {
27252
27258
  }
27253
- }) : h ? h(this.selectedOption, !0) : ys(this.label, this.selectedOption, !0))) : null, _ ? M("div", {
27259
+ }) : d ? d(this.selectedOption, !0) : ys(this.label, this.selectedOption, !0))) : null, _ ? M("div", {
27254
27260
  class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
27255
27261
  key: "placeholder"
27256
27262
  }, M("div", {
@@ -27271,7 +27277,7 @@ const Oh = {
27271
27277
  option: this.selectedOption,
27272
27278
  handleClose: () => {
27273
27279
  }
27274
- }) : h ? h(this.selectedOption, !0) : ys(this.label, this.selectedOption, !0))) : M("div", {
27280
+ }) : d ? d(this.selectedOption, !0) : ys(this.label, this.selectedOption, !0))) : M("div", {
27275
27281
  class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
27276
27282
  key: "placeholder"
27277
27283
  }, M("div", {
@@ -27518,7 +27524,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
27518
27524
  mergedBorderedRef: i,
27519
27525
  namespaceRef: n,
27520
27526
  inlineThemeDisabled: s
27521
- } = ns(e), r = Ot("Select", "-select", E2, F2, e, t), o = H(e.defaultValue), a = Ue(e, "value"), l = Ha(a, o), c = H(!1), u = H(""), h = jd(e, ["items", "options"]), d = H([]), f = H([]), p = N(() => f.value.concat(d.value).concat(h.value)), g = N(() => {
27527
+ } = ns(e), r = Ot("Select", "-select", E2, F2, e, t), o = H(e.defaultValue), a = Ue(e, "value"), l = Ha(a, o), c = H(!1), u = H(""), d = jd(e, ["items", "options"]), h = H([]), f = H([]), p = N(() => f.value.concat(h.value).concat(d.value)), g = N(() => {
27522
27528
  const {
27523
27529
  filter: $
27524
27530
  } = e;
@@ -27537,7 +27543,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
27537
27543
  };
27538
27544
  }), m = N(() => {
27539
27545
  if (e.remote)
27540
- return h.value;
27546
+ return d.value;
27541
27547
  {
27542
27548
  const {
27543
27549
  value: $
@@ -27764,8 +27770,8 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
27764
27770
  value: Ce
27765
27771
  } = f, Re = Ce[0] || null;
27766
27772
  if (Re) {
27767
- const Ae = d.value;
27768
- Ae.length ? Ae.push(Re) : d.value = [Re], f.value = O;
27773
+ const Ae = h.value;
27774
+ Ae.length ? Ae.push(Re) : h.value = [Re], f.value = O;
27769
27775
  }
27770
27776
  }
27771
27777
  if (le && L.value.set($[_e], $), e.multiple) {
@@ -27773,7 +27779,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
27773
27779
  if (~Re) {
27774
27780
  if (Ce.splice(Re, 1), G && !le) {
27775
27781
  const Ae = ue($[_e]);
27776
- ~Ae && (d.value.splice(Ae, 1), ve && (u.value = ""));
27782
+ ~Ae && (h.value.splice(Ae, 1), ve && (u.value = ""));
27777
27783
  }
27778
27784
  } else
27779
27785
  Ce.push($[_e]), ve && (u.value = "");
@@ -27781,13 +27787,13 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
27781
27787
  } else {
27782
27788
  if (G && !le) {
27783
27789
  const Ce = ue($[_e]);
27784
- ~Ce ? d.value = [d.value[Ce]] : d.value = O;
27790
+ ~Ce ? h.value = [h.value[Ce]] : h.value = O;
27785
27791
  }
27786
27792
  as(), Be(), Y($[_e], $);
27787
27793
  }
27788
27794
  }
27789
27795
  function ue($) {
27790
- return d.value.findIndex((le) => le[e.valueField] === $);
27796
+ return h.value.findIndex((le) => le[e.valueField] === $);
27791
27797
  }
27792
27798
  function de($) {
27793
27799
  k.value || fe();
@@ -27813,7 +27819,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
27813
27819
  valueField: Re,
27814
27820
  labelField: Ae
27815
27821
  } = e;
27816
- h.value.some((ot) => ot[Re] === Ce[Re] || ot[Ae] === Ce[Ae]) || d.value.some((ot) => ot[Re] === Ce[Re] || ot[Ae] === Ce[Ae]) ? f.value = O : f.value = [Ce];
27822
+ d.value.some((ot) => ot[Re] === Ce[Re] || ot[Ae] === Ce[Ae]) || h.value.some((ot) => ot[Re] === Ce[Re] || ot[Ae] === Ce[Ae]) ? f.value = O : f.value = [Ce];
27817
27823
  }
27818
27824
  }
27819
27825
  function rt($) {
@@ -28106,7 +28112,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
28106
28112
  ..._,
28107
28113
  class: n.wrapContent ? `${_.class} consistent-menu-width` : _.class
28108
28114
  }))
28109
- ), c = H(!1), u = wi("select-component"), h = (_) => {
28115
+ ), c = H(!1), u = wi("select-component"), d = (_) => {
28110
28116
  _.length < n.minTermLength || (c.value = !0, n.searchDataHandler(_, c).then((S) => {
28111
28117
  if (Su(S))
28112
28118
  return;
@@ -28116,13 +28122,13 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
28116
28122
  c.value = !1;
28117
28123
  }));
28118
28124
  };
28119
- let d = "";
28125
+ let h = "";
28120
28126
  const f = Jn(
28121
28127
  // eslint-disable-next-line func-names
28122
- () => h(d),
28128
+ () => d(h),
28123
28129
  800
28124
28130
  ), p = (_) => {
28125
- d = _, f();
28131
+ h = _, f();
28126
28132
  }, g = (_) => {
28127
28133
  var S;
28128
28134
  if (Lt(_)) {
@@ -28182,43 +28188,43 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
28182
28188
  },
28183
28189
  emits: ["update:value"],
28184
28190
  setup(e, { expose: t, emit: i }) {
28185
- const n = e, s = i, r = wi("select-component"), o = async (h) => n.searchType === "categories" ? pt.getInstance(bf).publicSimpleSearch(h) : n.searchType === "products" ? pt.getInstance(wf).publicSimpleSearch(h) : new Promise((d) => {
28186
- d([]);
28187
- }), a = (h) => n.searchType === "categories" ? vn.convertReferencesToSelectOptionsList(h, !0, !1, (d) => d != null && d.isNewRec() ? "-" : d.name) : n.searchType === "products" ? vn.convertReferencesToSelectOptionsList(h, !0, !1, (d) => d != null && d.isNewRec() ? "-" : `[${d.code}] ${d.name}`) : [], l = (h, d) => {
28191
+ const n = e, s = i, r = wi("select-component"), o = async (d) => n.searchType === "categories" ? pt.getInstance(bf).publicSimpleSearch(d) : n.searchType === "products" ? pt.getInstance(wf).publicSimpleSearch(d) : new Promise((h) => {
28192
+ h([]);
28193
+ }), a = (d) => n.searchType === "categories" ? vn.convertReferencesToSelectOptionsList(d, !0, !1, (h) => h != null && h.isNewRec() ? "-" : h.name) : n.searchType === "products" ? vn.convertReferencesToSelectOptionsList(d, !0, !1, (h) => h != null && h.isNewRec() ? "-" : `[${h.code}] ${h.name}`) : [], l = (d, h) => {
28188
28194
  if (n.renderLabel)
28189
- return n.renderLabel(h, d);
28195
+ return n.renderLabel(d, h);
28190
28196
  if (n.searchType === "products") {
28191
- const f = h.item;
28197
+ const f = d.item;
28192
28198
  return M("div", {}, [M("span", { class: "text-sc-grey mr-2.5" }, f.code), M("span", {}, [f.name])]);
28193
28199
  }
28194
28200
  if (n.searchType === "categories") {
28195
- const f = h.item;
28201
+ const f = d.item;
28196
28202
  return M("div", {}, [f.name]);
28197
28203
  }
28198
28204
  };
28199
28205
  return t({
28200
28206
  focus: () => {
28201
- var h;
28202
- return (h = r.value) == null ? void 0 : h.focus();
28207
+ var d;
28208
+ return (d = r.value) == null ? void 0 : d.focus();
28203
28209
  },
28204
28210
  blur: () => {
28205
- var h;
28206
- return (h = r.value) == null ? void 0 : h.blur();
28211
+ var d;
28212
+ return (d = r.value) == null ? void 0 : d.blur();
28207
28213
  }
28208
- }), (h, d) => (x(), re(N2, {
28214
+ }), (d, h) => (x(), re(N2, {
28209
28215
  ref: "select-component",
28210
- value: h.value,
28211
- clearable: h.clearable,
28212
- disabled: h.disabled,
28213
- placeholder: h.placeholder,
28216
+ value: d.value,
28217
+ clearable: d.clearable,
28218
+ disabled: d.disabled,
28219
+ placeholder: d.placeholder,
28214
28220
  "search-data-handler": o,
28215
28221
  "options-list-converter": a,
28216
- "consistent-menu-width": h.consistentMenuWidth,
28217
- "wrap-content": h.wrapContent,
28218
- "min-term-length": h.minTermLength,
28222
+ "consistent-menu-width": d.consistentMenuWidth,
28223
+ "wrap-content": d.wrapContent,
28224
+ "min-term-length": d.minTermLength,
28219
28225
  "render-label": l,
28220
- "render-tag": h.renderTag,
28221
- "onUpdate:value": d[0] || (d[0] = (f) => s("update:value", f))
28226
+ "render-tag": d.renderTag,
28227
+ "onUpdate:value": h[0] || (h[0] = (f) => s("update:value", f))
28222
28228
  }, null, 8, ["value", "clearable", "disabled", "placeholder", "consistent-menu-width", "wrap-content", "min-term-length", "render-tag"]));
28223
28229
  }
28224
28230
  }), V2 = { class: "col-span-2 flex flex-row gap-2.5" }, j2 = { class: "flex-1" }, X2 = { class: "text-sc-grey" }, U2 = { class: "ml-2.5" }, Y2 = {
@@ -28238,46 +28244,46 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
28238
28244
  const i = e, n = t, s = H(null), r = () => structuredClone(ui(i.value)), o = H(r()), a = () => {
28239
28245
  n(
28240
28246
  "update:value",
28241
- o.value.map((h) => ui(h))
28247
+ o.value.map((d) => ui(d))
28242
28248
  );
28243
- }, l = (h) => {
28244
- h && (o.value = [
28245
- ...o.value.map((d) => ui(d)),
28249
+ }, l = (d) => {
28250
+ d && (o.value = [
28251
+ ...o.value.map((h) => ui(h)),
28246
28252
  // eslint-disable-next-line vue/max-len,lodash/prefer-lodash-method
28247
- ...(Lt(h) ? h : [h]).filter((d) => !o.value.some((f) => f.id === d.id))
28253
+ ...(Lt(d) ? d : [d]).filter((h) => !o.value.some((f) => f.id === h.id))
28248
28254
  ], Oi(() => {
28249
28255
  s.value = null;
28250
28256
  }), a());
28251
- }, c = (h) => {
28252
- h && (o.value = o.value.map((d) => d.id === h.id ? h : ui(d)), a());
28253
- }, u = (h) => {
28254
- o.value = o.value.filter((d) => d.id !== h.id), a();
28257
+ }, c = (d) => {
28258
+ d && (o.value = o.value.map((h) => h.id === d.id ? d : ui(h)), a());
28259
+ }, u = (d) => {
28260
+ o.value = o.value.filter((h) => h.id !== d.id), a();
28255
28261
  };
28256
28262
  return Ie(
28257
28263
  () => i.value,
28258
28264
  () => {
28259
28265
  o.value = r();
28260
28266
  }
28261
- ), (h, d) => {
28267
+ ), (d, h) => {
28262
28268
  const f = ff, p = _y, g = qe, m = hf;
28263
28269
  return x(), re(m, {
28264
28270
  "show-divider": !1,
28265
28271
  hoverable: !0
28266
28272
  }, {
28267
28273
  header: F(() => [
28268
- Me(h.$slots, "header")
28274
+ Me(d.$slots, "header")
28269
28275
  ]),
28270
28276
  footer: F(() => [
28271
28277
  z(W2, {
28272
28278
  value: s.value,
28273
28279
  "onUpdate:value": [
28274
- d[0] || (d[0] = (v) => s.value = v),
28280
+ h[0] || (h[0] = (v) => s.value = v),
28275
28281
  l
28276
28282
  ],
28277
28283
  clearable: !0,
28278
- disabled: h.disabled,
28279
- "min-term-length": h.minTermLength,
28280
- "search-type": h.searchType,
28284
+ disabled: d.disabled,
28285
+ "min-term-length": d.minTermLength,
28286
+ "search-type": d.searchType,
28281
28287
  placeholder: "Введите название"
28282
28288
  }, null, 8, ["value", "disabled", "min-term-length", "search-type"])
28283
28289
  ]),
@@ -28286,7 +28292,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
28286
28292
  key: 0,
28287
28293
  class: "text-center text-sm text-gray-600"
28288
28294
  }, {
28289
- default: F(() => d[1] || (d[1] = [
28295
+ default: F(() => h[1] || (h[1] = [
28290
28296
  oe(" --- Список пуст --- ")
28291
28297
  ])),
28292
28298
  _: 1
@@ -28296,7 +28302,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
28296
28302
  }, {
28297
28303
  suffix: F(() => [
28298
28304
  z(g, {
28299
- disabled: h.disabled,
28305
+ disabled: d.disabled,
28300
28306
  quaternary: "",
28301
28307
  type: "error",
28302
28308
  onClick: (_) => u(v)
@@ -28313,8 +28319,8 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
28313
28319
  T("span", X2, q(v.code), 1),
28314
28320
  T("span", U2, q(v.name), 1)
28315
28321
  ]),
28316
- h.$slots["item-extra"] ? (x(), R("div", Y2, [
28317
- Me(h.$slots, "item-extra", {
28322
+ d.$slots["item-extra"] ? (x(), R("div", Y2, [
28323
+ Me(d.$slots, "item-extra", {
28318
28324
  item: v,
28319
28325
  updateItemCallback: c
28320
28326
  })
@@ -28399,7 +28405,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
28399
28405
  return (s = co().deliveryTypeReference) == null ? void 0 : s.find((r) => r.id === n.delivery.type);
28400
28406
  }), i = N(() => Yn(n.delivery.date, "dd.MM.yyyy")), n = e;
28401
28407
  return (s, r) => {
28402
- var c, u, h, d, f, p, g, m;
28408
+ var c, u, d, h, f, p, g, m;
28403
28409
  const o = nx, a = ex, l = Z2;
28404
28410
  return x(), R("div", sx, [
28405
28411
  s.showType ? (x(), R("span", rx, [
@@ -28411,11 +28417,11 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
28411
28417
  key: 1,
28412
28418
  class: "text-sm"
28413
28419
  })) : U("", !0),
28414
- ((h = t.value) == null ? void 0 : h.slug) === "transport_company_delivery" ? (x(), re(l, {
28420
+ ((d = t.value) == null ? void 0 : d.slug) === "transport_company_delivery" ? (x(), re(l, {
28415
28421
  key: 2,
28416
28422
  class: "text-sm"
28417
28423
  })) : U("", !0),
28418
- T("span", null, q((d = t.value) == null ? void 0 : d.name), 1)
28424
+ T("span", null, q((h = t.value) == null ? void 0 : h.name), 1)
28419
28425
  ])) : U("", !0),
28420
28426
  s.showDetails ? (x(), R("span", ox, [
28421
28427
  T("span", ax, q(i.value), 1),
@@ -28890,9 +28896,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
28890
28896
  }).finally(() => {
28891
28897
  r.value = !1;
28892
28898
  }));
28893
- }, h = (g) => {
28894
- c.value.page = g, u();
28895
28899
  }, d = (g) => {
28900
+ c.value.page = g, u();
28901
+ }, h = (g) => {
28896
28902
  c.value.pageSize = g, u();
28897
28903
  }, f = (g) => {
28898
28904
  Jh(g) ? n.value = i() : (n.value.field = g.columnKey.toString(), n.value.direction = g.order === "ascend" ? "asc" : "desc"), l.value.forEach((m) => {
@@ -28933,8 +28939,8 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
28933
28939
  "bottom-bordered": !1,
28934
28940
  "sticky-expanded-rows": !0,
28935
28941
  "pagination-behavior-on-filter": "first",
28936
- "onUpdate:page": h,
28937
- "onUpdate:pageSize": d,
28942
+ "onUpdate:page": d,
28943
+ "onUpdate:pageSize": h,
28938
28944
  "onUpdate:sorter": f
28939
28945
  }, null, 8, ["columns", "data", "row-key", "pagination", "loading"]);
28940
28946
  };
@@ -29019,7 +29025,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29019
29025
  ), nr(() => {
29020
29026
  window.removeEventListener("resize", a);
29021
29027
  }), a(), window.addEventListener("resize", a), (l, c) => {
29022
- const u = Bu, h = Ou;
29028
+ const u = Bu, d = Ou;
29023
29029
  return x(), R(Oe, null, [
29024
29030
  T("div", tk, [
29025
29031
  T("div", {
@@ -29029,9 +29035,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29029
29035
  Me(l.$slots, "default")
29030
29036
  ], 4)
29031
29037
  ]),
29032
- z(h, {
29038
+ z(d, {
29033
29039
  show: r.value,
29034
- "onUpdate:show": c[0] || (c[0] = (d) => r.value = d),
29040
+ "onUpdate:show": c[0] || (c[0] = (h) => r.value = h),
29035
29041
  resizable: !0,
29036
29042
  width: s.value,
29037
29043
  placement: "left"
@@ -29251,49 +29257,49 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29251
29257
  setup(e, { expose: t, emit: i }) {
29252
29258
  const n = e, s = i, r = N(() => Lt(n.value)), o = N(
29253
29259
  () => {
29254
- var d;
29255
- return Lt(n.value) ? n.value.map((f) => f.id) : ((d = n.value) == null ? void 0 : d.id) ?? null;
29260
+ var h;
29261
+ return Lt(n.value) ? n.value.map((f) => f.id) : ((h = n.value) == null ? void 0 : h.id) ?? null;
29256
29262
  }
29257
29263
  ), a = N(() => {
29258
29264
  var p;
29259
- let d = n.showEmptyValue ? [Sf.generateUndefinedManagerInstance(), ...n.managerReferenceList] : n.managerReferenceList, f = [];
29265
+ let h = n.showEmptyValue ? [Sf.generateUndefinedManagerInstance(), ...n.managerReferenceList] : n.managerReferenceList, f = [];
29260
29266
  if (n.showActualOnly) {
29261
29267
  const g = Lt(n.value) ? n.value.map((m) => m.id) : [(p = n.value) == null ? void 0 : p.id];
29262
- f = n.managerReferenceList.filter((m) => !m.isActive).map((m) => m.id), d = n.managerReferenceList.filter((m) => m.isActive || g.includes(m.id));
29268
+ f = n.managerReferenceList.filter((m) => !m.isActive).map((m) => m.id), h = n.managerReferenceList.filter((m) => m.isActive || g.includes(m.id));
29263
29269
  }
29264
29270
  return vn.convertReferencesToSelectOptionsList(
29265
- d,
29271
+ h,
29266
29272
  !0,
29267
29273
  !0,
29268
29274
  (g) => g.salesDirection.isNewRec() ? g.name : `${g.name} (${g.salesDirection.name})`,
29269
29275
  (g) => f.includes(g.id)
29270
29276
  );
29271
- }), l = wi("select-component"), c = (d) => {
29277
+ }), l = wi("select-component"), c = (h) => {
29272
29278
  var f;
29273
- if (Lt(d)) {
29274
- const p = d.length > 0 ? d.map((g) => {
29279
+ if (Lt(h)) {
29280
+ const p = h.length > 0 ? h.map((g) => {
29275
29281
  var m;
29276
29282
  return (m = a.value.find((v) => v.value === g)) == null ? void 0 : m.item;
29277
29283
  }) : [];
29278
29284
  s("update:value", p);
29279
29285
  } else {
29280
- const p = d > 0 ? (f = a.value.find((g) => g.value === d)) == null ? void 0 : f.item : new Tf();
29286
+ const p = h > 0 ? (f = a.value.find((g) => g.value === h)) == null ? void 0 : f.item : new Tf();
29281
29287
  s("update:value", p);
29282
29288
  }
29283
29289
  };
29284
29290
  return t({
29285
29291
  focus: () => {
29286
- var d;
29287
- return (d = l.value) == null ? void 0 : d.focusInput();
29292
+ var h;
29293
+ return (h = l.value) == null ? void 0 : h.focusInput();
29288
29294
  },
29289
29295
  blur: () => {
29290
- var d;
29291
- return (d = l.value) == null ? void 0 : d.blurInput();
29296
+ var h;
29297
+ return (h = l.value) == null ? void 0 : h.blurInput();
29292
29298
  }
29293
- }), (d, f) => (x(), re(K(pn), {
29299
+ }), (h, f) => (x(), re(K(pn), {
29294
29300
  ref: "select-component",
29295
29301
  value: o.value,
29296
- clearable: d.clearable,
29302
+ clearable: h.clearable,
29297
29303
  disabled: a.value.length === 0,
29298
29304
  multiple: r.value,
29299
29305
  options: a.value,
@@ -29369,7 +29375,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29369
29375
  !r.value || r.value.length < 4 || (o.value = !0, a.value = await n.searchDataHandler(r.value, o).finally(() => {
29370
29376
  o.value = !1;
29371
29377
  }));
29372
- }, h = (g, m) => {
29378
+ }, d = (g, m) => {
29373
29379
  const v = a.value.find((_) => _.id === g.value) || {};
29374
29380
  return M(
29375
29381
  Ck,
@@ -29381,7 +29387,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29381
29387
  default: so("-")
29382
29388
  }
29383
29389
  );
29384
- }, d = (g) => {
29390
+ }, h = (g) => {
29385
29391
  c.cancel();
29386
29392
  const m = a.value.find((v) => v.id === g) || {};
29387
29393
  s("select", m);
@@ -29408,9 +29414,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29408
29414
  disabled: g.disabled,
29409
29415
  loading: o.value,
29410
29416
  options: l.value,
29411
- "render-label": h,
29417
+ "render-label": d,
29412
29418
  placeholder: "",
29413
- onSelect: d
29419
+ onSelect: h
29414
29420
  }, null, 8, ["value", "clearable", "disabled", "loading", "options", "onUpdate:value"]);
29415
29421
  };
29416
29422
  }
@@ -29470,7 +29476,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29470
29476
  o.value = !1;
29471
29477
  }
29472
29478
  }
29473
- }, h = (g, m) => {
29479
+ }, d = (g, m) => {
29474
29480
  const v = a.value.find((_) => _.id === g.value) || {};
29475
29481
  return M(
29476
29482
  Ek,
@@ -29482,7 +29488,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29482
29488
  default: so("-")
29483
29489
  }
29484
29490
  );
29485
- }, d = (g) => {
29491
+ }, h = (g) => {
29486
29492
  c.cancel();
29487
29493
  const m = a.value.find((v) => v.id === g) || {};
29488
29494
  s("select", m);
@@ -29509,9 +29515,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29509
29515
  disabled: g.disabled,
29510
29516
  loading: o.value,
29511
29517
  options: l.value,
29512
- "render-label": h,
29518
+ "render-label": d,
29513
29519
  placeholder: "",
29514
- onSelect: d
29520
+ onSelect: h
29515
29521
  }, null, 8, ["value", "clearable", "disabled", "loading", "options", "onUpdate:value"]);
29516
29522
  };
29517
29523
  }
@@ -29583,9 +29589,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29583
29589
  });
29584
29590
  const u = Jn(
29585
29591
  // eslint-disable-next-line func-names
29586
- () => h(),
29592
+ () => d(),
29587
29593
  800
29588
- ), h = async () => {
29594
+ ), d = async () => {
29589
29595
  if (!(!r.value || r.value.length < 4)) {
29590
29596
  o.value = !0;
29591
29597
  try {
@@ -29594,7 +29600,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29594
29600
  o.value = !1;
29595
29601
  }
29596
29602
  }
29597
- }, d = (m, v) => {
29603
+ }, h = (m, v) => {
29598
29604
  const _ = a.value.find((S) => S.id === m.value) || {};
29599
29605
  return M(
29600
29606
  Dk,
@@ -29633,7 +29639,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29633
29639
  disabled: m.disabled,
29634
29640
  loading: o.value,
29635
29641
  options: c.value,
29636
- "render-label": d,
29642
+ "render-label": h,
29637
29643
  placeholder: "",
29638
29644
  onSelect: f
29639
29645
  }, null, 8, ["value", "clearable", "disabled", "loading", "options", "onUpdate:value"]);
@@ -29665,7 +29671,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29665
29671
  i.disableConfirm ? r() : s.value = !0;
29666
29672
  };
29667
29673
  return (a, l) => {
29668
- const c = qe, u = tn, h = tl;
29674
+ const c = qe, u = tn, d = tl;
29669
29675
  return x(), R("div", null, [
29670
29676
  z(u, {
29671
29677
  disabled: a.popoverText.length === 0,
@@ -29693,9 +29699,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29693
29699
  ]),
29694
29700
  _: 3
29695
29701
  }, 8, ["disabled"]),
29696
- z(h, {
29702
+ z(d, {
29697
29703
  show: s.value,
29698
- "onUpdate:show": l[1] || (l[1] = (d) => s.value = d),
29704
+ "onUpdate:show": l[1] || (l[1] = (h) => s.value = h),
29699
29705
  content: a.dialogContent,
29700
29706
  closable: !1,
29701
29707
  "mask-closable": !1,
@@ -29717,7 +29723,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29717
29723
  }),
29718
29724
  z(c, {
29719
29725
  type: "default",
29720
- onClick: l[0] || (l[0] = (d) => s.value = !1)
29726
+ onClick: l[0] || (l[0] = (h) => s.value = !1)
29721
29727
  }, {
29722
29728
  default: F(() => l[3] || (l[3] = [
29723
29729
  oe(" Отмена ")