@pie-players/pie-tool-ruler 0.3.36 → 0.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tool-ruler.js +298 -298
  2. package/package.json +4 -4
@@ -134,7 +134,7 @@ var T2 = null;
134
134
  function ue(t) {
135
135
  T2 = t;
136
136
  }
137
- function A1(t, e = !1, r) {
137
+ function P1(t, e = !1, r) {
138
138
  T2 = {
139
139
  p: T2,
140
140
  i: !1,
@@ -150,7 +150,7 @@ function A1(t, e = !1, r) {
150
150
  } : null
151
151
  };
152
152
  }
153
- function P1(t) {
153
+ function A1(t) {
154
154
  var e = T2, r = e.e;
155
155
  if (r !== null) {
156
156
  e.e = null;
@@ -244,7 +244,7 @@ function O(t, e) {
244
244
  function l2(t, e, r) {
245
245
  return t.set(g2(t, e), r), r;
246
246
  }
247
- var L1, A0 = /* @__PURE__ */ new Set(), f2 = null, so = null, H2 = null, ri = null, Be = !1, An = !1, fe = null, Yr = null, N1 = 0;
247
+ var L1, P0 = /* @__PURE__ */ new Set(), f2 = null, so = null, H2 = null, ri = null, Be = !1, Pn = !1, fe = null, Yr = null, N1 = 0;
248
248
  var bu = 1, qr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), y0 = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Z2 = /* @__PURE__ */ new WeakSet(), Lt = class F1 {
249
249
  constructor() {
250
250
  Ji(this, Z2), Z(this, "id", bu++), Z(this, "current", /* @__PURE__ */ new Map()), Z(this, "previous", /* @__PURE__ */ new Map()), o2(this, qr, /* @__PURE__ */ new Set()), o2(this, mr, /* @__PURE__ */ new Set()), o2(this, Te, /* @__PURE__ */ new Set()), o2(this, bt, /* @__PURE__ */ new Map()), o2(this, st, /* @__PURE__ */ new Map()), o2(this, zr, null), o2(this, y0, []), o2(this, ni, []), o2(this, de, /* @__PURE__ */ new Set()), o2(this, Dt, /* @__PURE__ */ new Set()), o2(this, lt, /* @__PURE__ */ new Map()), o2(this, Br, /* @__PURE__ */ new Set()), Z(this, "is_fork", !1), o2(this, _r, !1), o2(this, ie, /* @__PURE__ */ new Set());
@@ -278,14 +278,14 @@ var bu = 1, qr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap
278
278
  flush() {
279
279
  var e = null;
280
280
  try {
281
- An = !0, f2 = this, g2(Z2, this, Qi).call(this);
281
+ Pn = !0, f2 = this, g2(Z2, this, Qi).call(this);
282
282
  } finally {
283
- N1 = 0, ri = null, fe = null, Yr = null, An = !1, f2 = null, H2 = null, Rt.clear();
283
+ N1 = 0, ri = null, fe = null, Yr = null, Pn = !1, f2 = null, H2 = null, Rt.clear();
284
284
  }
285
285
  }
286
286
  discard() {
287
287
  for (const e of O(mr, this)) e(this);
288
- O(mr, this).clear(), O(Te, this).clear(), A0.delete(this);
288
+ O(mr, this).clear(), O(Te, this).clear(), P0.delete(this);
289
289
  }
290
290
  register_created_effect(e) {
291
291
  O(ni, this).push(e);
@@ -331,20 +331,20 @@ var bu = 1, qr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap
331
331
  static ensure() {
332
332
  if (f2 === null) {
333
333
  const e = f2 = new F1();
334
- An || (A0.add(f2), Be || ce(() => {
334
+ Pn || (P0.add(f2), Be || ce(() => {
335
335
  f2 === e && e.flush();
336
336
  }));
337
337
  }
338
338
  return f2;
339
339
  }
340
340
  apply() {
341
- if (!q0 || !this.is_fork && A0.size === 1) {
341
+ if (!q0 || !this.is_fork && P0.size === 1) {
342
342
  H2 = null;
343
343
  return;
344
344
  }
345
345
  H2 = /* @__PURE__ */ new Map();
346
346
  for (const [n, [i]] of this.current) H2.set(n, i);
347
- for (const n of A0)
347
+ for (const n of P0)
348
348
  if (!(n === this || n.is_fork)) {
349
349
  var e = !1, r = !1;
350
350
  if (n.id < this.id) for (const [i, [, a]] of n.current)
@@ -389,7 +389,7 @@ function yu() {
389
389
  return !1;
390
390
  }
391
391
  function Qi() {
392
- if (N1++ > 1e3 && (A0.delete(this), wu()), !g2(Z2, this, ii).call(this)) {
392
+ if (N1++ > 1e3 && (P0.delete(this), wu()), !g2(Z2, this, ii).call(this)) {
393
393
  for (const o of O(de, this))
394
394
  O(Dt, this).delete(o), D2(o, D0), this.schedule(o);
395
395
  for (const o of O(Dt, this))
@@ -411,7 +411,7 @@ function Qi() {
411
411
  g2(Z2, this, ai).call(this, r), g2(Z2, this, ai).call(this, e);
412
412
  for (const [o, s] of O(lt, this)) j1(o, s);
413
413
  } else {
414
- O(bt, this).size === 0 && A0.delete(this), O(de, this).clear(), O(Dt, this).clear();
414
+ O(bt, this).size === 0 && P0.delete(this), O(de, this).clear(), O(Dt, this).clear();
415
415
  for (const o of O(qr, this)) o(this);
416
416
  O(qr, this).clear(), so = this, lo(r), lo(e), so = null, O(zr, this)?.resolve();
417
417
  }
@@ -420,7 +420,7 @@ function Qi() {
420
420
  const o = a ?? (a = this);
421
421
  O(y0, o).push(...O(y0, this).filter((s) => !O(y0, o).includes(s)));
422
422
  }
423
- a !== null && (A0.add(a), g2(Z2, a, Qi).call(a)), q0 && !A0.has(this) && g2(Z2, this, ku).call(this);
423
+ a !== null && (P0.add(a), g2(Z2, a, Qi).call(a)), q0 && !P0.has(this) && g2(Z2, this, ku).call(this);
424
424
  }
425
425
  function W1(t, e, r) {
426
426
  t.f ^= v0;
@@ -448,7 +448,7 @@ function ai(t) {
448
448
  for (var e = 0; e < t.length; e += 1) $1(t[e], O(de, this), O(Dt, this));
449
449
  }
450
450
  function ku() {
451
- for (const u of A0) {
451
+ for (const u of P0) {
452
452
  var t = u.id < this.id, e = [];
453
453
  for (const [c, [d, f]] of this.current) {
454
454
  if (u.current.has(c)) {
@@ -479,7 +479,7 @@ function ku() {
479
479
  u.deactivate();
480
480
  }
481
481
  }
482
- for (const u of A0) O(ie, u).has(this) && (O(ie, u).delete(this), O(ie, u).size === 0 && !g2(Z2, u, ii).call(u) && (u.activate(), g2(Z2, u, Qi).call(u)));
482
+ for (const u of P0) O(ie, u).has(this) && (O(ie, u).delete(this), O(ie, u).size === 0 && !g2(Z2, u, ii).call(u) && (u.activate(), g2(Z2, u, Qi).call(u)));
483
483
  }
484
484
  function oi(t) {
485
485
  var e = Be;
@@ -749,7 +749,7 @@ function Ou(t, e, r, n) {
749
749
  }
750
750
  var c = U1();
751
751
  function d() {
752
- Promise.all(r.map((f) => /* @__PURE__ */ Au(f))).then((f) => u([...e.map(i), ...f])).catch((f) => ut(f, o)).finally(() => c());
752
+ Promise.all(r.map((f) => /* @__PURE__ */ Pu(f))).then((f) => u([...e.map(i), ...f])).catch((f) => ut(f, o)).finally(() => c());
753
753
  }
754
754
  l ? l.then(() => {
755
755
  s(), d(), Xr();
@@ -790,7 +790,7 @@ function dn(t) {
790
790
  };
791
791
  }
792
792
  // @__NO_SIDE_EFFECTS__
793
- function Au(t, e, r) {
793
+ function Pu(t, e, r) {
794
794
  let n = c2;
795
795
  n === null && Ql();
796
796
  var i = void 0, a = rr($2), o = !d2, s = /* @__PURE__ */ new Map();
@@ -850,7 +850,7 @@ function Z1(t) {
850
850
  const e = /* @__PURE__ */ dn(t);
851
851
  return e.equals = R1, e;
852
852
  }
853
- function Pu(t) {
853
+ function Au(t) {
854
854
  var e = t.effects;
855
855
  if (e !== null) {
856
856
  t.effects = null;
@@ -863,7 +863,7 @@ function na(t) {
863
863
  return cu(), t.v;
864
864
  B0(n);
865
865
  try {
866
- t.f &= ~Qe, Pu(t), e = Cs(t);
866
+ t.f &= ~Qe, Au(t), e = Cs(t);
867
867
  } finally {
868
868
  B0(r);
869
869
  }
@@ -960,9 +960,9 @@ function Kt(t) {
960
960
  if (typeof t != "object" || t === null || ze in t) return t;
961
961
  const e = x1(t);
962
962
  if (e !== Fl && e !== Wl) return t;
963
- var r = /* @__PURE__ */ new Map(), n = $l(t), i = /* @__PURE__ */ i0(0), a = null, o = At, s = (d) => {
964
- if (At === o) return d();
965
- var f = d2, p = At;
963
+ var r = /* @__PURE__ */ new Map(), n = $l(t), i = /* @__PURE__ */ i0(0), a = null, o = Pt, s = (d) => {
964
+ if (Pt === o) return d();
965
+ var f = d2, p = Pt;
966
966
  h0(null), go(o);
967
967
  var v = d();
968
968
  return h0(f), go(p), v;
@@ -1116,7 +1116,7 @@ function vo(t, e = !1) {
1116
1116
  }
1117
1117
  return b2;
1118
1118
  }
1119
- function Pn(t, e = 1, r = !1) {
1119
+ function An(t, e = 1, r = !1) {
1120
1120
  let n = x2 ? b2 : t;
1121
1121
  for (var i; e--; )
1122
1122
  i = n, n = /* @__PURE__ */ Q0(n);
@@ -1370,9 +1370,9 @@ var K2 = null, n0 = 0, c0 = null;
1370
1370
  function t9(t) {
1371
1371
  c0 = t;
1372
1372
  }
1373
- var vs = 1, Et = 0, At = Et;
1373
+ var vs = 1, Et = 0, Pt = Et;
1374
1374
  function go(t) {
1375
- At = t;
1375
+ Pt = t;
1376
1376
  }
1377
1377
  function hs() {
1378
1378
  return ++vs;
@@ -1398,8 +1398,8 @@ function gs(t, e, r = !0) {
1398
1398
  }
1399
1399
  }
1400
1400
  function Cs(t) {
1401
- var e = K2, r = n0, n = c0, i = d2, a = d0, o = T2, s = k0, l = At, u = t.f;
1402
- K2 = null, n0 = 0, c0 = null, d2 = (u & 96) === 0 ? t : null, d0 = null, ue(t.ctx), k0 = !1, At = ++Et, t.ac !== null && (is(() => {
1401
+ var e = K2, r = n0, n = c0, i = d2, a = d0, o = T2, s = k0, l = Pt, u = t.f;
1402
+ K2 = null, n0 = 0, c0 = null, d2 = (u & 96) === 0 ? t : null, d0 = null, ue(t.ctx), k0 = !1, Pt = ++Et, t.ac !== null && (is(() => {
1403
1403
  t.ac.abort(W0);
1404
1404
  }), t.ac = null);
1405
1405
  try {
@@ -1427,7 +1427,7 @@ function Cs(t) {
1427
1427
  } catch (g) {
1428
1428
  return z1(g);
1429
1429
  } finally {
1430
- t.f ^= ao, K2 = e, n0 = r, c0 = n, d2 = i, d0 = a, ue(o), k0 = s, At = l;
1430
+ t.f ^= ao, K2 = e, n0 = r, c0 = n, d2 = i, d0 = a, ue(o), k0 = s, Pt = l;
1431
1431
  }
1432
1432
  }
1433
1433
  function e9(t, e) {
@@ -1727,11 +1727,11 @@ function ks(t, { target: e, anchor: r, props: n = {}, events: i, context: a, int
1727
1727
  var c = r ?? e.appendChild(X0());
1728
1728
  Eu(c, { pending: () => {
1729
1729
  } }, (p) => {
1730
- A1({});
1730
+ P1({});
1731
1731
  var v = T2;
1732
1732
  if (a && (v.c = a), i && (n.$$events = i), x2 && ae(p, null), _o = o, l = t(p, n) || {}, _o = !0, x2 && (c2.nodes.end = b2, b2 === null || b2.nodeType !== 8 || b2.data !== "]"))
1733
1733
  throw fn(), se;
1734
- P1();
1734
+ A1();
1735
1735
  }, s);
1736
1736
  var d = /* @__PURE__ */ new Set(), f = (p) => {
1737
1737
  for (var v = 0; v < p.length; v++) {
@@ -2193,7 +2193,7 @@ var R9 = class extends Event {
2193
2193
  composed: !0
2194
2194
  }), Z(this, "context", void 0), Z(this, "contextTarget", void 0), Z(this, "callback", void 0), Z(this, "subscribe", void 0), this.context = t, this.contextTarget = e, this.callback = r, this.subscribe = n ?? !1;
2195
2195
  }
2196
- }, A9 = class {
2196
+ }, P9 = class {
2197
2197
  constructor(t, e) {
2198
2198
  Z(this, "host", void 0), Z(this, "context", void 0), Z(this, "subscribe", void 0), Z(this, "onValue", void 0), Z(this, "isConnected", !1), Z(this, "unsubscribe", void 0), Z(this, "currentValue", void 0), Z(this, "handleValue", (r, n) => {
2199
2199
  n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
@@ -2211,10 +2211,10 @@ var R9 = class extends Event {
2211
2211
  requestValue() {
2212
2212
  this.host.dispatchEvent(new R9(this.context, this.host, this.handleValue, this.subscribe));
2213
2213
  }
2214
- }, vn = (t) => t, P9 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), a5 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), o5 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), s5 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2214
+ }, vn = (t) => t, A9 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), a5 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), o5 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), s5 = vn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2215
2215
  function V9(t, e, r) {
2216
2216
  let n = !1;
2217
- const i = new A9(t, {
2217
+ const i = new P9(t, {
2218
2218
  context: e,
2219
2219
  subscribe: !0,
2220
2220
  onValue: (u) => {
@@ -2239,7 +2239,7 @@ function V9(t, e, r) {
2239
2239
  };
2240
2240
  }
2241
2241
  function z9(t, e) {
2242
- return V9(t, P9, e);
2242
+ return V9(t, A9, e);
2243
2243
  }
2244
2244
  function B9(t, e) {
2245
2245
  return z9(t, e);
@@ -2269,7 +2269,7 @@ var l5 = Es("I18nService"), $n = {
2269
2269
  item: [...$n.item],
2270
2270
  passage: [...$n.passage]
2271
2271
  };
2272
- function Pt(t) {
2272
+ function At(t) {
2273
2273
  return typeof t == "object" && t !== null && !Array.isArray(t);
2274
2274
  }
2275
2275
  function it(t, e) {
@@ -2280,28 +2280,28 @@ function it(t, e) {
2280
2280
  }
2281
2281
  function $9(t) {
2282
2282
  if (t != null) {
2283
- if (!Pt(t)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
2283
+ if (!At(t)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
2284
2284
  return t;
2285
2285
  }
2286
2286
  }
2287
2287
  function G9(t) {
2288
2288
  if (t != null) {
2289
- if (!Pt(t)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
2289
+ if (!At(t)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
2290
2290
  return t;
2291
2291
  }
2292
2292
  }
2293
2293
  function L9(t, e) {
2294
2294
  if (e == null) return;
2295
- if (!Pt(e)) throw new Error(`Invalid tools config at "providers.${t}": expected an object.`);
2295
+ if (!At(e)) throw new Error(`Invalid tools config at "providers.${t}": expected an object.`);
2296
2296
  const r = e;
2297
2297
  if ("enabled" in r && r.enabled !== void 0 && typeof r.enabled != "boolean") throw new Error(`Invalid tools config at "providers.${t}.enabled": expected a boolean.`);
2298
- if ("settings" in r && r.settings !== void 0 && !Pt(r.settings)) throw new Error(`Invalid tools config at "providers.${t}.settings": expected an object.`);
2299
- if ("provider" in r && r.provider !== void 0 && !Pt(r.provider)) throw new Error(`Invalid tools config at "providers.${t}.provider": expected an object.`);
2298
+ if ("settings" in r && r.settings !== void 0 && !At(r.settings)) throw new Error(`Invalid tools config at "providers.${t}.settings": expected an object.`);
2299
+ if ("provider" in r && r.provider !== void 0 && !At(r.provider)) throw new Error(`Invalid tools config at "providers.${t}.provider": expected an object.`);
2300
2300
  return r;
2301
2301
  }
2302
2302
  function N9(t) {
2303
2303
  if (t == null) return {};
2304
- if (!Pt(t)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
2304
+ if (!At(t)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
2305
2305
  const e = {};
2306
2306
  for (const [r, n] of Object.entries(t)) e[r] = L9(r, n);
2307
2307
  return e;
@@ -2320,15 +2320,15 @@ function at(t) {
2320
2320
  }
2321
2321
  return Array.from(e);
2322
2322
  }
2323
- function F9(t) {
2323
+ function F9(t, e) {
2324
2324
  if (t != null) {
2325
2325
  if (t === "on" || t === "off") return t;
2326
- throw new Error(`Invalid tools config at "qtiEnforcement": expected "on" or "off", got ${JSON.stringify(t)}.`);
2326
+ throw new Error(`Invalid tools config at "${e}": expected "on" or "off", got ${JSON.stringify(t)}.`);
2327
2327
  }
2328
2328
  }
2329
2329
  function W9(t) {
2330
- if (t != null && !Pt(t)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
2331
- const e = G9(t?.policy), r = $9(t?.placement), n = N9(t?.providers), i = F9(t?.qtiEnforcement), a = {
2330
+ if (t != null && !At(t)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
2331
+ const e = G9(t?.policy), r = $9(t?.placement), n = N9(t?.providers), i = F9(t?.pnpEnforcement, "pnpEnforcement"), a = {
2332
2332
  policy: {
2333
2333
  allowed: at(it(e?.allowed, "policy.allowed")),
2334
2334
  blocked: at(it(e?.blocked, "policy.blocked"))
@@ -2340,7 +2340,7 @@ function W9(t) {
2340
2340
  },
2341
2341
  providers: n
2342
2342
  };
2343
- return i && (a.qtiEnforcement = i), a;
2343
+ return i && (a.pnpEnforcement = i), a;
2344
2344
  }
2345
2345
  var H9 = [
2346
2346
  "assessment",
@@ -3214,8 +3214,8 @@ var e6 = class {
3214
3214
  includeAuthOnAssetFetch: t.includeAuthOnAssetFetch,
3215
3215
  validateEndpoint: t.validateEndpoint
3216
3216
  };
3217
- }, As = (t) => Kr(t.layoutMode), g6 = (t) => {
3218
- switch (As(t)) {
3217
+ }, Ps = (t) => Kr(t.layoutMode), g6 = (t) => {
3218
+ switch (Ps(t)) {
3219
3219
  case "reserved-row":
3220
3220
  return {
3221
3221
  mount: "before-buttons",
@@ -3281,7 +3281,7 @@ var e6 = class {
3281
3281
  return gn(t);
3282
3282
  },
3283
3283
  renderToolbar(t, e) {
3284
- const r = () => Nn(e.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Ln(r().speedOptions), i = () => As(r()), a = () => g6(r()), o = ca(this.toolId, e.scope.level, e.scope.scopeId), s = () => {
3284
+ const r = () => Nn(e.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Ln(r().speedOptions), i = () => Ps(r()), a = () => g6(r()), o = ca(this.toolId, e.scope.level, e.scope.scopeId), s = () => {
3285
3285
  const c = e.ui?.size;
3286
3286
  return c === "sm" || c === "lg" ? c : "md";
3287
3287
  }, l = () => {
@@ -3821,11 +3821,11 @@ function R6() {
3821
3821
  for (const r of t.getAllTools()) for (const n of r.pnpSupportIds || []) e.add(n);
3822
3822
  return [...e].sort();
3823
3823
  }
3824
- var A6 = R6(), u5 = {
3825
- supports: [...A6],
3824
+ var P6 = R6(), u5 = {
3825
+ supports: [...P6],
3826
3826
  prohibitedSupports: [],
3827
3827
  activateAtInit: []
3828
- }, P6 = {
3828
+ }, A6 = {
3829
3829
  visual: {
3830
3830
  magnification: "magnification",
3831
3831
  screenMagnifier: "screenMagnifier",
@@ -3938,14 +3938,14 @@ var A6 = R6(), u5 = {
3938
3938
  itemGlossary: "itemGlossary",
3939
3939
  tutorialAvailable: "tutorialAvailable"
3940
3940
  }
3941
- }, c5 = Object.values(P6).flatMap((t) => Object.values(t)), f5 = Es("ToolCoordinator"), Ci;
3941
+ }, c5 = Object.values(A6).flatMap((t) => Object.values(t)), f5 = Es("ToolCoordinator"), Ci;
3942
3942
  (function(t) {
3943
3943
  t[t.BASE = 0] = "BASE", t[t.TOOL = 1e3] = "TOOL", t[t.MODAL = 2e3] = "MODAL", t[t.CONTROL = 3e3] = "CONTROL", t[t.HIGHLIGHT = 4e3] = "HIGHLIGHT";
3944
3944
  })(Ci || (Ci = {}));
3945
- var Ao;
3945
+ var Po;
3946
3946
  (function(t) {
3947
3947
  t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
3948
- })(Ao || (Ao = {}));
3948
+ })(Po || (Po = {}));
3949
3949
  var d5 = W9({
3950
3950
  policy: {
3951
3951
  allowed: [],
@@ -3976,12 +3976,12 @@ function H0(t, e) {
3976
3976
  r && (t[e] = r);
3977
3977
  };
3978
3978
  }
3979
- function Ps(t, e, r) {
3979
+ function As(t, e, r) {
3980
3980
  return function(n) {
3981
3981
  n && (t[e][r] = n);
3982
3982
  };
3983
3983
  }
3984
- function Po(t, e) {
3984
+ function Ao(t, e) {
3985
3985
  return function(r) {
3986
3986
  var n = r.prototype;
3987
3987
  t.forEach(function(i) {
@@ -4069,7 +4069,7 @@ function Cn(t) {
4069
4069
  function x0(t) {
4070
4070
  return t && typeof t == "object";
4071
4071
  }
4072
- function P2(t) {
4072
+ function A2(t) {
4073
4073
  return Array.isArray(t);
4074
4074
  }
4075
4075
  function Q2(t) {
@@ -4451,14 +4451,14 @@ function sr(t, e) {
4451
4451
  }
4452
4452
  t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
4453
4453
  }
4454
- var P0 = function() {
4455
- return P0 = Object.assign || function(e) {
4454
+ var A0 = function() {
4455
+ return A0 = Object.assign || function(e) {
4456
4456
  for (var r, n = 1, i = arguments.length; n < i; n++) {
4457
4457
  r = arguments[n];
4458
4458
  for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
4459
4459
  }
4460
4460
  return e;
4461
- }, P0.apply(this, arguments);
4461
+ }, A0.apply(this, arguments);
4462
4462
  };
4463
4463
  function Ys(t, e) {
4464
4464
  var r = {};
@@ -4481,7 +4481,7 @@ function Go(t) {
4481
4481
  function qs(t) {
4482
4482
  var e = [];
4483
4483
  return t.forEach(function(r) {
4484
- e = e.concat(P2(r) ? qs(r) : r);
4484
+ e = e.concat(A2(r) ? qs(r) : r);
4485
4485
  }), e;
4486
4486
  }
4487
4487
  function Fn(t, e) {
@@ -4579,7 +4579,7 @@ var _a = /* @__PURE__ */ (function() {
4579
4579
  return this.props !== r || this.state !== n;
4580
4580
  }, e.setState = function(r, n, i) {
4581
4581
  var a = this;
4582
- a.$_timer || (a.$_state = {}), clearTimeout(a.$_timer), a.$_timer = 0, a.$_state = P0(P0({}, a.$_state), r), i ? a.$_setState(n, i) : a.$_timer = window.setTimeout(function() {
4582
+ a.$_timer || (a.$_state = {}), clearTimeout(a.$_timer), a.$_timer = 0, a.$_state = A0(A0({}, a.$_state), r), i ? a.$_setState(n, i) : a.$_timer = window.setTimeout(function() {
4583
4583
  a.$_timer = 0, a.$_setState(n, i);
4584
4584
  });
4585
4585
  }, e.forceUpdate = function(r) {
@@ -4589,7 +4589,7 @@ var _a = /* @__PURE__ */ (function() {
4589
4589
  }, e.componentWillUnmount = function() {
4590
4590
  }, e.$_setState = function(r, n) {
4591
4591
  var i = [], a = this.$_p;
4592
- lr(a.c, [a], [a.o], i, a._cs, P0(P0({}, this.state), this.$_state), n) && (r && i.push(r), Us(i), ma(null));
4592
+ lr(a.c, [a], [a.o], i, a._cs, A0(A0({}, this.state), this.$_state), n) && (r && i.push(r), Us(i), ma(null));
4593
4593
  }, t;
4594
4594
  })(), Ks = /* @__PURE__ */ (function(t) {
4595
4595
  sr(e, t);
@@ -4636,7 +4636,7 @@ var cc = /* @__PURE__ */ (function(t) {
4636
4636
  l._usefs = [], l._uefs = [];
4637
4637
  var g = p.render();
4638
4638
  ((s = (o = g?.props) === null || o === void 0 ? void 0 : o.children) === null || s === void 0 ? void 0 : s.length) === 0 && (g.props.children = l.ps.children);
4639
- var C = P0(P0({}, i), p.$_cs);
4639
+ var C = A0(A0({}, i), p.$_cs);
4640
4640
  lr(l, l._ps, g ? [g] : [], n, C), d ? l._uefs.push(function() {
4641
4641
  f?.register(l), p.componentDidMount();
4642
4642
  }) : l._uefs.push(function() {
@@ -4768,7 +4768,7 @@ function M0(t, e) {
4768
4768
  type: t,
4769
4769
  key: a,
4770
4770
  ref: o,
4771
- props: P0(P0({}, s), { children: Ns(r).filter(function(l) {
4771
+ props: A0(A0({}, s), { children: Ns(r).filter(function(l) {
4772
4772
  return l != null && l !== !1;
4773
4773
  }) })
4774
4774
  };
@@ -4945,7 +4945,7 @@ function Mc(t, e) {
4945
4945
  function yi(t) {
4946
4946
  return t.replace(/_/g, ".");
4947
4947
  }
4948
- function Ae(t, e) {
4948
+ function Pe(t, e) {
4949
4949
  var r = null, n = "-1";
4950
4950
  return ya(t, function(i) {
4951
4951
  var a = ka("(" + i.test + ")((?:\\/|\\s|:)([0-9|\\.|_]+))?", e);
@@ -5094,7 +5094,7 @@ var ki = [
5094
5094
  }
5095
5095
  ];
5096
5096
  function u8(t) {
5097
- return !!Ae(s8, t).preset;
5097
+ return !!Pe(s8, t).preset;
5098
5098
  }
5099
5099
  function Sc(t) {
5100
5100
  var e = i8(t), r = !!/mobi/g.exec(e), n = {
@@ -5110,9 +5110,9 @@ function Sc(t) {
5110
5110
  name: "unknown",
5111
5111
  version: "-1",
5112
5112
  majorVersion: -1
5113
- }, a = Ae(ki, e), o = a.preset, s = a.version, l = Ae(l8, e), u = l.preset, c = l.version, d = Ae(o8, e);
5113
+ }, a = Pe(ki, e), o = a.preset, s = a.version, l = Pe(l8, e), u = l.preset, c = l.version, d = Pe(o8, e);
5114
5114
  if (n.chromium = !!d.preset, n.chromiumVersion = d.version, !n.chromium) {
5115
- var f = Ae(wi, e);
5115
+ var f = Pe(wi, e);
5116
5116
  n.webkit = !!f.preset, n.webkitVersion = f.version;
5117
5117
  }
5118
5118
  return u && (i.name = u.id, i.version = c, i.majorVersion = parseInt(c, 10)), o && (n.name = o.id, n.version = s, n.webview && i.name === "ios" && n.name !== "safari" && (n.webview = !1)), n.majorVersion = parseInt(n.version, 10), {
@@ -5261,7 +5261,7 @@ function t2(t, e) {
5261
5261
  for (var r = Math.min(t.length, e.length), n = t.slice(), i = 0; i < r; ++i) n[i] = n[i] - e[i];
5262
5262
  return n;
5263
5263
  }
5264
- function Ac(t, e) {
5264
+ function Pc(t, e) {
5265
5265
  return e === void 0 && (e = t.length === 6), e ? [
5266
5266
  t[0],
5267
5267
  t[1],
@@ -5291,7 +5291,7 @@ function F2(t, e, r) {
5291
5291
  return a / i;
5292
5292
  });
5293
5293
  }
5294
- function Pc(t, e) {
5294
+ function Ac(t, e) {
5295
5295
  return y2(t, [
5296
5296
  1,
5297
5297
  0,
@@ -5531,7 +5531,7 @@ function Ut(t) {
5531
5531
  }), e;
5532
5532
  }
5533
5533
  function ge(t, e) {
5534
- return e === void 0 && (e = 0), (P2(t) ? t : pt(t)).map(function(r) {
5534
+ return e === void 0 && (e = 0), (A2(t) ? t : pt(t)).map(function(r) {
5535
5535
  var n = $s(r), i = n.prefix, a = n.value, o = null, s = i, l = "";
5536
5536
  if (i === "translate" || i === "translateX" || i === "translate3d") {
5537
5537
  var u = x0(e) ? Ge(Ge({}, e), { "o%": e["%"] }) : {
@@ -5591,7 +5591,7 @@ function ge(t, e) {
5591
5591
  ];
5592
5592
  } else if (i === "rotate" || i === "rotateZ" || i === "rotateX" || i === "rotateY") {
5593
5593
  var b = ar(a), M = b.unit, w = b.value, S = M === "rad" ? w : w * Math.PI / 180;
5594
- i === "rotate" || i === "rotateZ" ? (s = "rotateZ", o = zc) : i === "rotateX" ? o = Pc : i === "rotateY" && (o = Vc), l = S;
5594
+ i === "rotate" || i === "rotateZ" ? (s = "rotateZ", o = zc) : i === "rotateX" ? o = Ac : i === "rotateY" && (o = Vc), l = S;
5595
5595
  } else if (i === "matrix3d")
5596
5596
  o = Ho, l = xt(a).map(function(I) {
5597
5597
  return parseFloat(I);
@@ -6095,14 +6095,14 @@ function Kc(t, e) {
6095
6095
  }
6096
6096
  t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
6097
6097
  }
6098
- var A2 = function() {
6099
- return A2 = Object.assign || function(e) {
6098
+ var P2 = function() {
6099
+ return P2 = Object.assign || function(e) {
6100
6100
  for (var r, n = 1, i = arguments.length; n < i; n++) {
6101
6101
  r = arguments[n];
6102
6102
  for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
6103
6103
  }
6104
6104
  return e;
6105
- }, A2.apply(this, arguments);
6105
+ }, P2.apply(this, arguments);
6106
6106
  };
6107
6107
  function Jc(t, e) {
6108
6108
  var r = e[0] - t[0], n = e[1] - t[1], i = Math.atan2(n, r);
@@ -6210,8 +6210,8 @@ var Yn = /* @__PURE__ */ (function() {
6210
6210
  if (I) {
6211
6211
  var T = i._window.document.activeElement, R = f.target;
6212
6212
  if (R) {
6213
- var A = R.tagName.toLowerCase(), P = Xo.indexOf(A) > -1, B = R.isContentEditable;
6214
- if (P || B) {
6213
+ var P = R.tagName.toLowerCase(), A = Xo.indexOf(P) > -1, B = R.isContentEditable;
6214
+ if (A || B) {
6215
6215
  if (k || !b && T === R) return !1;
6216
6216
  if (T && (T === R || B && T.isContentEditable && T.contains(R))) if (b) R.blur();
6217
6217
  else return !1;
@@ -6221,7 +6221,7 @@ var Yn = /* @__PURE__ */ (function() {
6221
6221
  }
6222
6222
  (M || w || S) && G2(i._window, "click", i._onClick, !0);
6223
6223
  }
6224
- i.clientStores = [new Yn(Er(f))], i._isIdle = !1, i.flag = !0, i.isDrag = !1, i._isTrusted = p, i._dragFlag = !0, i._prevInputEvent = f, i.data = {}, i.doubleFlag = qe() - i.prevTime < 200, i._isMouseEvent = tf(f), !i._isMouseEvent && i._preventMouseEvent && i._allowMouseEvent(), (i._preventMouseEvent || i.emit("dragStart", A2(A2({
6224
+ i.clientStores = [new Yn(Er(f))], i._isIdle = !1, i.flag = !0, i.isDrag = !1, i._isTrusted = p, i._dragFlag = !0, i._prevInputEvent = f, i.data = {}, i.doubleFlag = qe() - i.prevTime < 200, i._isMouseEvent = tf(f), !i._isMouseEvent && i._preventMouseEvent && i._allowMouseEvent(), (i._preventMouseEvent || i.emit("dragStart", P2(P2({
6225
6225
  data: i.data,
6226
6226
  datas: i.data,
6227
6227
  inputEvent: f,
@@ -6254,7 +6254,7 @@ var Yn = /* @__PURE__ */ (function() {
6254
6254
  !i._isMouseEvent && v && f.preventDefault(), i._prevInputEvent = f;
6255
6255
  var h = Er(f), g = i.moveClients(h, f, !1);
6256
6256
  if (i._dragFlag) {
6257
- if ((i.pinchFlag || g.deltaX || g.deltaY) && (i._preventMouseEvent || i.emit("drag", A2(A2({}, g), {
6257
+ if ((i.pinchFlag || g.deltaX || g.deltaY) && (i._preventMouseEvent || i.emit("drag", P2(P2({}, g), {
6258
6258
  isScroll: !!p,
6259
6259
  inputEvent: f
6260
6260
  }))) === !1) {
@@ -6274,7 +6274,7 @@ var Yn = /* @__PURE__ */ (function() {
6274
6274
  var y = f?.touches ? Er(f) : [];
6275
6275
  y.length === 0 || !i.options.keepDragging ? i.flag = !1 : i._addStore(new Yn(y));
6276
6276
  var k = i._getPosition(), b = qe(), M = !_ && i.doubleFlag;
6277
- i._prevInputEvent = null, i.prevTime = _ || M ? 0 : b, i.flag || (i._dettachDragEvent(), i._preventMouseEvent || i.emit("dragEnd", A2({
6277
+ i._prevInputEvent = null, i.prevTime = _ || M ? 0 : b, i.flag || (i._dettachDragEvent(), i._preventMouseEvent || i.emit("dragEnd", P2({
6278
6278
  data: i.data,
6279
6279
  datas: i.data,
6280
6280
  isDouble: M,
@@ -6301,7 +6301,7 @@ var Yn = /* @__PURE__ */ (function() {
6301
6301
  }, i._passCallback = function() {
6302
6302
  };
6303
6303
  var a = [].concat(r), o = a[0];
6304
- i._window = js(o) ? o : dt(o), i.options = A2({
6304
+ i._window = js(o) ? o : dt(o), i.options = P2({
6305
6305
  checkInput: !1,
6306
6306
  container: o && !("document" in o) ? dt(o) : o,
6307
6307
  preventRightClick: !0,
@@ -6368,7 +6368,7 @@ var Yn = /* @__PURE__ */ (function() {
6368
6368
  }, e.prototype.setEventDatas = function(r) {
6369
6369
  return this.setEventData(r);
6370
6370
  }, e.prototype.getCurrentEvent = function(r) {
6371
- return r === void 0 && (r = this._prevInputEvent), A2(A2({
6371
+ return r === void 0 && (r = this._prevInputEvent), P2(P2({
6372
6372
  data: this.data,
6373
6373
  datas: this.data
6374
6374
  }, this._getPosition()), {
@@ -6395,7 +6395,7 @@ var Yn = /* @__PURE__ */ (function() {
6395
6395
  var n = this, i = this.options.pinchThreshold;
6396
6396
  if (!(this.isDrag && this.getMovement() > i)) {
6397
6397
  var a = new Yn(Er(r));
6398
- this.pinchFlag = !0, this._addStore(a), this.emit("pinchStart", A2(A2({
6398
+ this.pinchFlag = !0, this._addStore(a), this.emit("pinchStart", P2(P2({
6399
6399
  data: this.data,
6400
6400
  datas: this.data,
6401
6401
  angle: a.getAngle(),
@@ -6414,7 +6414,7 @@ var Yn = /* @__PURE__ */ (function() {
6414
6414
  }, e.prototype.onPinch = function(r, n) {
6415
6415
  if (!(!this.flag || !this.pinchFlag || n.length < 2)) {
6416
6416
  var i = this.getCurrentStore();
6417
- this.isPinch = !0, this.emit("pinch", A2(A2({
6417
+ this.isPinch = !0, this.emit("pinch", P2(P2({
6418
6418
  data: this.data,
6419
6419
  datas: this.data,
6420
6420
  movement: this.getMovement(n),
@@ -6433,7 +6433,7 @@ var Yn = /* @__PURE__ */ (function() {
6433
6433
  var n = this.isPinch;
6434
6434
  this.isPinch = !1, this.pinchFlag = !1;
6435
6435
  var i = this.getCurrentStore();
6436
- this.emit("pinchEnd", A2(A2({
6436
+ this.emit("pinchEnd", P2(P2({
6437
6437
  data: this.data,
6438
6438
  datas: this.data,
6439
6439
  isPinch: n,
@@ -6446,7 +6446,7 @@ var Yn = /* @__PURE__ */ (function() {
6446
6446
  var a = this._getPosition(r, i), o = this.isDrag;
6447
6447
  (a.deltaX || a.deltaY) && (this.isDrag = !0);
6448
6448
  var s = !1;
6449
- return !o && this.isDrag && (s = !0), A2(A2({
6449
+ return !o && this.isDrag && (s = !0), P2(P2({
6450
6450
  data: this.data,
6451
6451
  datas: this.data
6452
6452
  }, a), {
@@ -6467,7 +6467,7 @@ var Yn = /* @__PURE__ */ (function() {
6467
6467
  var c = u.getPosition();
6468
6468
  return l.distX += c.distX, l.distY += c.distY, l;
6469
6469
  }, i), o = a.distX, s = a.distY;
6470
- return A2(A2({}, i), {
6470
+ return P2(P2({}, i), {
6471
6471
  distX: o,
6472
6472
  distY: s
6473
6473
  });
@@ -6856,7 +6856,7 @@ transform-origin: inherit;
6856
6856
  1,
6857
6857
  2
6858
6858
  ]
6859
- ], Ri = 1e-4, X2 = 1e-7, xr = 1e-9, Ai = Math.pow(10, 10), Uo = -Ai, xf = {
6859
+ ], Ri = 1e-4, X2 = 1e-7, xr = 1e-9, Pi = Math.pow(10, 10), Uo = -Pi, xf = {
6860
6860
  n: [0, -1],
6861
6861
  e: [1, 0],
6862
6862
  s: [0, 1],
@@ -7054,14 +7054,14 @@ function qn(t, e) {
7054
7054
  function B2(t, e) {
7055
7055
  return qn([qn([t[0], t[1]], e[0]), qn([t[2], t[3]], e[0])], e[1]);
7056
7056
  }
7057
- function Af(t, e, r, n, i, a) {
7057
+ function Pf(t, e, r, n, i, a) {
7058
7058
  var o = B2(Ft(e, r, n, i), a);
7059
7059
  return [t[0] - o[0], t[1] - o[1]];
7060
7060
  }
7061
7061
  function vr(t, e, r, n) {
7062
7062
  return y2(t, Fe(e, n, r), n);
7063
7063
  }
7064
- function Pf(t, e, r, n) {
7064
+ function Af(t, e, r, n) {
7065
7065
  var i = t.transformOrigin, a = t.offsetMatrix, o = t.is3d ? 4 : 3, s;
7066
7066
  if (Q2(r)) {
7067
7067
  var l = e.beforeTransform, u = e.afterTransform;
@@ -7077,20 +7077,20 @@ function wn(t, e) {
7077
7077
  var r = Ee(e);
7078
7078
  return {
7079
7079
  setTransform: function(n, i) {
7080
- i === void 0 && (i = -1), r.startTransforms = P2(n) ? n : pt(n), Pi(t, e, i);
7080
+ i === void 0 && (i = -1), r.startTransforms = A2(n) ? n : pt(n), Ai(t, e, i);
7081
7081
  },
7082
7082
  setTransformIndex: function(n) {
7083
- Pi(t, e, n);
7083
+ Ai(t, e, n);
7084
7084
  }
7085
7085
  };
7086
7086
  }
7087
7087
  function Mn(t, e, r) {
7088
7088
  var n = Ee(e).startTransforms;
7089
- Pi(t, e, K0(n, function(i) {
7089
+ Ai(t, e, K0(n, function(i) {
7090
7090
  return i.indexOf("".concat(r, "(")) === 0;
7091
7091
  }));
7092
7092
  }
7093
- function Pi(t, e, r) {
7093
+ function Ai(t, e, r) {
7094
7094
  var n = Ee(e), i = e.datas;
7095
7095
  if (i.transformIndex = r, r !== -1) {
7096
7096
  var a = n.startTransforms[r];
@@ -7132,7 +7132,7 @@ function D8(t, e, r, n, i) {
7132
7132
  }, q2({ transform: o }, i)), { afterTransform: o });
7133
7133
  }
7134
7134
  function Ia(t, e, r, n, i, a) {
7135
- return $f(t, r, n, Pf(t.state, i, e, a));
7135
+ return $f(t, r, n, Af(t.state, i, e, a));
7136
7136
  }
7137
7137
  function I8(t, e, r, n, i, a, o) {
7138
7138
  var s = Ia(t, e, r, i, a, o), l = t.state, u = l.left, c = l.top, d = t.props.groupable, f = d ? u : 0, p = d ? c : 0;
@@ -7155,7 +7155,7 @@ function Gf(t, e, r) {
7155
7155
  }
7156
7156
  function Lf(t, e, r, n, i, a) {
7157
7157
  var o = t.props.groupable, s = t.state, l = s.transformOrigin, u = s.offsetMatrix, c = s.is3d, d = s.width, f = s.height, p = s.left, v = s.top, h = a.fixedDirection, g = a.nextTargetMatrix || s.targetMatrix, C = c ? 4 : 3, m = Of(i, e, r, d, f, l), _ = o ? p : 0, y = o ? v : 0;
7158
- return t2(Af(n, vr(u, g, m, C), e, r, C, h), [_, y]);
7158
+ return t2(Pf(n, vr(u, g, m, C), e, r, C, h), [_, y]);
7159
7159
  }
7160
7160
  function Nf(t, e) {
7161
7161
  return B2(C0(t.state), e);
@@ -7177,14 +7177,14 @@ function Hf(t) {
7177
7177
  function O8(t, e, r) {
7178
7178
  for (var n = t, i = [], a = ga(t) || gt(t), o = !r && t === e || t === a, s = o, l = !1, u = 3, c, d, f, p = !1, v = Ke(e, e, !0).offsetParent, h = 1; n && !s; ) {
7179
7179
  s = o;
7180
- var g = e0(n), C = g("position"), m = el(n), _ = C === "fixed", y = Hf(g), k = Ac(L4(m)), b = void 0, M = !1, w = !1, S = 0, x = 0, I = 0, T = 0, R = {
7180
+ var g = e0(n), C = g("position"), m = el(n), _ = C === "fixed", y = Hf(g), k = Pc(L4(m)), b = void 0, M = !1, w = !1, S = 0, x = 0, I = 0, T = 0, R = {
7181
7181
  hasTransform: !1,
7182
7182
  fixedContainer: null
7183
7183
  };
7184
7184
  _ && (p = !0, R = j4(n), v = R.fixedContainer);
7185
- var A = k.length;
7186
- !l && (A === 16 || y.length) && (l = !0, u = 4, Li(i), f && (f = T0(f, 3, 4))), l && A === 9 && (k = T0(k, 3, 4));
7187
- var P = H4(n, t), B = P.tagName, V = P.hasOffset, W = P.isSVG, G = P.origin, z = P.targetOrigin, L = P.offset, F = D(L, 2), Y = F[0], H = F[1];
7185
+ var P = k.length;
7186
+ !l && (P === 16 || y.length) && (l = !0, u = 4, Li(i), f && (f = T0(f, 3, 4))), l && P === 9 && (k = T0(k, 3, 4));
7187
+ var A = H4(n, t), B = A.tagName, V = A.hasOffset, W = A.isSVG, G = A.origin, z = A.targetOrigin, L = A.offset, F = D(L, 2), Y = F[0], H = F[1];
7188
7188
  B === "svg" && !n.ownerSVGElement && f && (i.push({
7189
7189
  type: "target",
7190
7190
  target: n,
@@ -7378,7 +7378,7 @@ function R8(t, e, r, n) {
7378
7378
  }));
7379
7379
  });
7380
7380
  }
7381
- function A8(t, e, r, n) {
7381
+ function P8(t, e, r, n) {
7382
7382
  var i = $t(t.props, r), a = i.renderDirections, o = a === void 0 ? e : a, s = i.displayAroundControls;
7383
7383
  if (!o) return [];
7384
7384
  var l = o === !0 ? Ea : o;
@@ -7407,7 +7407,7 @@ function Ze(t, e, r, n, i, a) {
7407
7407
  style: Ve(r, n, i, l)
7408
7408
  });
7409
7409
  }
7410
- function P8(t, e, r, n, i) {
7410
+ function A8(t, e, r, n, i) {
7411
7411
  return (r === !0 ? hf : r).map(function(a, o) {
7412
7412
  var s = D(Ta[a], 2), l = s[0], u = s[1];
7413
7413
  if (u != null)
@@ -7417,14 +7417,14 @@ function P8(t, e, r, n, i) {
7417
7417
  function V8(t) {
7418
7418
  return function(e, r) {
7419
7419
  var n = $t(e.props, t).edge;
7420
- return n && (n === !0 || n.length) ? N(N([], D(P8(r, t, n, e.getState().renderPoses, e.props.zoom)), !1), D(qf(e, t, r)), !1) : z8(e, t, r);
7420
+ return n && (n === !0 || n.length) ? N(N([], D(A8(r, t, n, e.getState().renderPoses, e.props.zoom)), !1), D(qf(e, t, r)), !1) : z8(e, t, r);
7421
7421
  };
7422
7422
  }
7423
7423
  function z8(t, e, r) {
7424
- return A8(t, Ea, e, r);
7424
+ return P8(t, Ea, e, r);
7425
7425
  }
7426
7426
  function qf(t, e, r) {
7427
- return A8(t, [
7427
+ return P8(t, [
7428
7428
  "nw",
7429
7429
  "ne",
7430
7430
  "sw",
@@ -7614,7 +7614,7 @@ function Qf(t, e) {
7614
7614
  for (var i in r) i in e && r[i] && (n[i] = e[i]);
7615
7615
  return n;
7616
7616
  }
7617
- function Aa(t, e) {
7617
+ function Pa(t, e) {
7618
7618
  var r = Qf(t, e), n = Jf.filter(function(a) {
7619
7619
  return a in r;
7620
7620
  }), i = Kf.filter(function(a) {
@@ -7690,8 +7690,8 @@ function r4(t, e, r) {
7690
7690
  else if (d === 0)
7691
7691
  y && (v.isSnap = !0, v.pos = x, v.offset = i - x);
7692
7692
  else {
7693
- var I = d / c, T = r[1] - I * i, R = 0, A = 0, P = !1;
7694
- y ? (A = x, R = I * A + T, P = !0) : M && (R = S, A = (R - T) / I, P = !0), P && (v.isSnap = !0, v.pos = A, v.offset = i - A, h.isSnap = !0, h.pos = R, h.offset = a - R);
7693
+ var I = d / c, T = r[1] - I * i, R = 0, P = 0, A = !1;
7694
+ y ? (P = x, R = I * P + T, A = !0) : M && (R = S, P = (R - T) / I, A = !0), A && (v.isSnap = !0, v.pos = P, v.offset = i - P, h.isSnap = !0, h.pos = R, h.offset = a - R);
7695
7695
  }
7696
7696
  return {
7697
7697
  vertical: v,
@@ -7703,7 +7703,7 @@ function ct(t) {
7703
7703
  return t === -1 || t === "top" || t === "left" ? e = "start" : t === 0 || t === "center" || t === "middle" ? e = "center" : (t === 1 || t === "right" || t === "bottom") && (e = "end"), e;
7704
7704
  }
7705
7705
  function Qo(t, e, r, n) {
7706
- var i = Aa(t.props.snapDirections, e), a = En(t, i.vertical, i.horizontal, i.verticalNames.map(function(l) {
7706
+ var i = Pa(t.props.snapDirections, e), a = En(t, i.vertical, i.horizontal, i.verticalNames.map(function(l) {
7707
7707
  return ct(l);
7708
7708
  }), i.horizontalNames.map(function(l) {
7709
7709
  return ct(l);
@@ -7865,7 +7865,7 @@ function H8(t, e) {
7865
7865
  horizontal: n <= t[1]
7866
7866
  };
7867
7867
  }
7868
- function Pa(t, e) {
7868
+ function Aa(t, e) {
7869
7869
  var r = D(e, 2), n = r[0], i = r[1], a = i[0] - n[0], o = i[1] - n[1];
7870
7870
  $(a) < X2 && (a = 0), $(o) < X2 && (o = 0);
7871
7871
  var s, l;
@@ -7873,7 +7873,7 @@ function Pa(t, e) {
7873
7873
  }
7874
7874
  function j8(t, e, r, n) {
7875
7875
  return n === void 0 && (n = X2), t.every(function(i) {
7876
- var a = Pa(i, e);
7876
+ var a = Aa(i, e);
7877
7877
  return a <= 0 === r || $(a) <= n;
7878
7878
  });
7879
7879
  }
@@ -8047,7 +8047,7 @@ function Va(t, e, r, n) {
8047
8047
  var c = D(u, 3), d = c[0], f = c[1], p = c[2], v = [B2(s, f), B2(s, p)], h = e4(v), g = H8(l, v), C = g.vertical, m = g.horizontal;
8048
8048
  return {
8049
8049
  multiple: d,
8050
- centerSign: Pa(l, v) <= 0,
8050
+ centerSign: Aa(l, v) <= 0,
8051
8051
  verticalSign: C,
8052
8052
  horizontalSign: m,
8053
8053
  lineConstants: h,
@@ -8065,7 +8065,7 @@ function r1(t, e, r, n) {
8065
8065
  [i[3], i[2]],
8066
8066
  [i[2], i[0]]
8067
8067
  ].some(function(a) {
8068
- return !j8(e, a, Pa(r, a) <= 0);
8068
+ return !j8(e, a, Aa(r, a) <= 0);
8069
8069
  });
8070
8070
  }
8071
8071
  function l4(t) {
@@ -8213,7 +8213,7 @@ function v4(t, e, r, n, i, a) {
8213
8213
  vertical: o.map(function(T) {
8214
8214
  return T[0];
8215
8215
  })
8216
- }, p = xn(t, i, Aa(Ra(t.props.snapDirections), {
8216
+ }, p = xn(t, i, Pa(Ra(t.props.snapDirections), {
8217
8217
  left: l,
8218
8218
  right: u,
8219
8219
  top: c,
@@ -8364,8 +8364,8 @@ function m4(t, e, r, n, i) {
8364
8364
  if (b) {
8365
8365
  var x = w.slice();
8366
8366
  ($(S - 90) < 2 || $(S - 270) < 2) && (x[0] = n[0]);
8367
- var A = zi(n, x, (n[0] < w[0] ? m : v) - w[0], !0, i), P = D(A.offset, 1)[0], B = A.isOutside;
8368
- isNaN(P) || (c = s + (B ? 1 : -1) * $(P));
8367
+ var P = zi(n, x, (n[0] < w[0] ? m : v) - w[0], !0, i), A = D(P.offset, 1)[0], B = P.isOutside;
8368
+ isNaN(A) || (c = s + (B ? 1 : -1) * $(A));
8369
8369
  }
8370
8370
  });
8371
8371
  }
@@ -8447,9 +8447,9 @@ var j2 = {
8447
8447
  k = I * Math.PI / 180, d = R * Math.cos(k), f = R * Math.sin(k);
8448
8448
  }
8449
8449
  if (!a && !n && !i) {
8450
- var A = D(v4(t, d, f, y, !s && l || o, r), 2), P = A[0], B = A[1];
8451
- b = P.isSnap, M = P.isBound, w = B.isSnap, S = B.isBound;
8452
- var V = P.offset, W = B.offset;
8450
+ var P = D(v4(t, d, f, y, !s && l || o, r), 2), A = P[0], B = P[1];
8451
+ b = A.isSnap, M = A.isBound, w = B.isSnap, S = B.isBound;
8452
+ var V = A.offset, W = B.offset;
8453
8453
  d += V, f += W;
8454
8454
  }
8455
8455
  var G = v2(x8({
@@ -8671,10 +8671,10 @@ var a1 = Na("resizable"), Bi = {
8671
8671
  var r, n = e.datas, i = e.parentFlag, a = e.isPinch, o = e.parentKeepRatio, s = e.dragClient, l = e.parentDist, u = e.useSnap, c = e.isRequest, d = e.isGroup, f = e.parentEvent, p = e.resolveMatrix, v = n.isResize, h = n.transformOrigin, g = n.startWidth, C = n.startHeight, m = n.prevWidth, _ = n.prevHeight, y = n.minSize, k = n.maxSize, b = n.ratio, M = n.startOffsetWidth, w = n.startOffsetHeight, S = n.isWidth;
8672
8672
  if (!v) return;
8673
8673
  if (p) {
8674
- var x = t.state.is3d, I = n.startOffsetMatrix, T = n.startTransformOrigin, R = x ? 4 : 3, A = Ue(rn(e)), P = Math.sqrt(A.length);
8675
- R !== P && (A = T0(A, P, R));
8676
- var B = vr(I, A, T, R);
8677
- n.startPositions = Ft(B, M, w, R), n.nextTargetMatrix = A, n.nextAllMatrix = B;
8674
+ var x = t.state.is3d, I = n.startOffsetMatrix, T = n.startTransformOrigin, R = x ? 4 : 3, P = Ue(rn(e)), A = Math.sqrt(P.length);
8675
+ R !== A && (P = T0(P, A, R));
8676
+ var B = vr(I, P, T, R);
8677
+ n.startPositions = Ft(B, M, w, R), n.nextTargetMatrix = P, n.nextAllMatrix = B;
8678
8678
  }
8679
8679
  var V = $t(t.props, "resizable"), W = V.resizeFormat, G = V.throttleResize, z = G === void 0 ? i ? 0 : 1 : G, L = V.parentMoveable, F = V.keepRatioFinally, Y = n.direction, H = Y, K = 0, q = 0;
8680
8680
  !Y[0] && !Y[1] && (H = [1, 1]);
@@ -8707,7 +8707,7 @@ var a1 = Na("resizable"), Bi = {
8707
8707
  var h2 = s;
8708
8708
  s || (!i && a ? h2 = Nf(t, [0, 0]) : h2 = n.fixedPosition);
8709
8709
  var u2 = [0, 0];
8710
- a || (u2 = P4(t, j, Q, Y, h2, !u && c, n)), l && (!l[0] && (u2[0] = 0), !l[1] && (u2[1] = 0));
8710
+ a || (u2 = A4(t, j, Q, Y, h2, !u && c, n)), l && (!l[0] && (u2[0] = 0), !l[1] && (u2[1] = 0));
8711
8711
  function n2() {
8712
8712
  var m2;
8713
8713
  W && (m2 = D(W([j, Q]), 2), j = m2[0], Q = m2[1]), j = i2(j, z), Q = i2(Q, z);
@@ -8904,7 +8904,7 @@ function Zn(t, e, r, n) {
8904
8904
  function Kn(t, e, r, n, i, a) {
8905
8905
  var o = t.props.throttleRotate, s = o === void 0 ? 0 : o, l = r.prevSnapDeg, u = 0, c = !1;
8906
8906
  if (a) {
8907
- var d = A4(t, e, n, i + n);
8907
+ var d = P4(t, e, n, i + n);
8908
8908
  c = d.isSnap, u = i + d.dist;
8909
8909
  }
8910
8910
  c || (u = i2(i + n, s));
@@ -8918,7 +8918,7 @@ function Kn(t, e, r, n, i, a) {
8918
8918
  function U8(t, e, r) {
8919
8919
  var n = D(e, 4), i = n[0], a = n[1], o = n[2], s = n[3];
8920
8920
  if (t === "none") return [];
8921
- if (P2(t)) return t.map(function(g) {
8921
+ if (A2(t)) return t.map(function(g) {
8922
8922
  return U8(g, [
8923
8923
  i,
8924
8924
  a,
@@ -9026,7 +9026,7 @@ cursor: move;
9026
9026
  });
9027
9027
  });
9028
9028
  var g = [];
9029
- P2(o) && (g = o.map(function(C) {
9029
+ A2(o) && (g = o.map(function(C) {
9030
9030
  var m = h[C];
9031
9031
  return {
9032
9032
  data: m ? { resolve: m } : {},
@@ -9063,13 +9063,13 @@ cursor: move;
9063
9063
  startValue: R
9064
9064
  });
9065
9065
  } else {
9066
- var A = (n = e.inputEvent) === null || n === void 0 ? void 0 : n.target;
9067
- if (A) {
9068
- var P = xf[A.getAttribute("data-direction") || ""];
9069
- if (P) {
9070
- i.isControl = !0, i.isAroundControl = z2(A, J("around-control")), i.controlDirection = P;
9071
- var B = A.getAttribute("data-resolve");
9072
- B && (i.resolveAble = B), r = D(B2(U4(d.rootMatrix, d.renderPoses, m), P), 2), I = r[0], T = r[1];
9066
+ var P = (n = e.inputEvent) === null || n === void 0 ? void 0 : n.target;
9067
+ if (P) {
9068
+ var A = xf[P.getAttribute("data-direction") || ""];
9069
+ if (A) {
9070
+ i.isControl = !0, i.isAroundControl = z2(P, J("around-control")), i.controlDirection = A;
9071
+ var B = P.getAttribute("data-resolve");
9072
+ B && (i.resolveAble = B), r = D(B2(U4(d.rootMatrix, d.renderPoses, m), A), 2), I = r[0], T = r[1];
9073
9073
  }
9074
9074
  }
9075
9075
  i.beforeInfo = { origin: w.beforeOrigin }, i.afterInfo = { origin: w.origin }, i.absoluteInfo = {
@@ -9114,19 +9114,19 @@ cursor: move;
9114
9114
  var r, n, i, a = e.datas, o = e.clientDistX, s = e.clientDistY, l = e.parentRotate, u = e.parentFlag, c = e.isPinch, d = e.groupDelta, f = e.resolveMatrix, p = a.beforeDirection, v = a.beforeInfo, h = a.afterInfo, g = a.absoluteInfo, C = a.isRotate, m = a.startValue, _ = a.rect, y = a.startClientX, k = a.startClientY;
9115
9115
  if (C) {
9116
9116
  yn(t, e, "rotate");
9117
- var b = p * Tf(e), M = t.props.parentMoveable, w = 0, S, x, I = 0, T, R, A = 0, P, B, V = 180 / Math.PI * m, W = g.startValue, G = !1, z = y + o, L = k + s;
9117
+ var b = p * Tf(e), M = t.props.parentMoveable, w = 0, S, x, I = 0, T, R, P = 0, A, B, V = 180 / Math.PI * m, W = g.startValue, G = !1, z = y + o, L = k + s;
9118
9118
  if (!u && "parentDist" in e) {
9119
9119
  var F = e.parentDist;
9120
- S = F, T = F, P = F;
9121
- } else c || u ? (S = Fr(l, p, v), T = Fr(l, b, h), P = Fr(l, b, g)) : (S = Zn(z, L, p, v), T = Zn(z, L, b, h), P = Zn(z, L, b, g), G = !0);
9122
- if (x = V + S, R = V + T, B = W + P, U(t, "onBeforeRotate", s2(t, e, {
9120
+ S = F, T = F, A = F;
9121
+ } else c || u ? (S = Fr(l, p, v), T = Fr(l, b, h), A = Fr(l, b, g)) : (S = Zn(z, L, p, v), T = Zn(z, L, b, h), A = Zn(z, L, b, g), G = !0);
9122
+ if (x = V + S, R = V + T, B = W + A, U(t, "onBeforeRotate", s2(t, e, {
9123
9123
  beforeRotation: x,
9124
9124
  rotation: R,
9125
9125
  absoluteRotation: B,
9126
9126
  setRotation: function(h2) {
9127
- T = h2 - V, S = T, P = T;
9127
+ T = h2 - V, S = T, A = T;
9128
9128
  }
9129
- }, !0)), r = D(Kn(t, _, v, S, V, G), 3), w = r[0], S = r[1], x = r[2], n = D(Kn(t, _, h, T, V, G), 3), I = n[0], T = n[1], R = n[2], i = D(Kn(t, _, g, P, W, G), 3), A = i[0], P = i[1], B = i[2], !(!A && !I && !w && !M && !f)) {
9129
+ }, !0)), r = D(Kn(t, _, v, S, V, G), 3), w = r[0], S = r[1], x = r[2], n = D(Kn(t, _, h, T, V, G), 3), I = n[0], T = n[1], R = n[2], i = D(Kn(t, _, g, A, W, G), 3), P = i[0], A = i[1], B = i[2], !(!P && !I && !w && !M && !f)) {
9130
9130
  var Y = kn(a, "rotate(".concat(R, "deg)"), "rotate(".concat(T, "deg)"));
9131
9131
  f && (a.fixedPosition = Ia(t, a.targetAllTransform, a.fixedDirection, a.fixedOffset, a));
9132
9132
  var H = Gf(t, T, a), K = t2(v2(d || [0, 0], H), a.prevInverseDist || [0, 0]);
@@ -9148,8 +9148,8 @@ cursor: move;
9148
9148
  beforeDelta: w,
9149
9149
  beforeRotate: x,
9150
9150
  beforeRotation: x,
9151
- absoluteDist: P,
9152
- absoluteDelta: A,
9151
+ absoluteDist: A,
9152
+ absoluteDelta: P,
9153
9153
  absoluteRotate: B,
9154
9154
  absoluteRotation: B,
9155
9155
  isPinch: !!c,
@@ -9299,7 +9299,7 @@ function s1(t, e, r, n, i, a) {
9299
9299
  }, a);
9300
9300
  });
9301
9301
  }
9302
- function Pe(t, e, r, n, i, a, o, s) {
9302
+ function Ae(t, e, r, n, i, a, o, s) {
9303
9303
  var l, u = t.props, c = u.snapDigit, d = c === void 0 ? 0 : c, f = u.isDisplaySnapDigit, p = f === void 0 ? !0 : f, v = u.snapDistFormat, h = v === void 0 ? function(k, b) {
9304
9304
  return k;
9305
9305
  } : v, g = u.zoom, C = e === "horizontal" ? "X" : "Y", m = e === "vertical" ? "height" : "width", _ = Math.abs(i), y = p ? parseFloat(_.toFixed(d)) : 0;
@@ -9380,19 +9380,19 @@ function w4(t, e, r, n, i) {
9380
9380
  var w = M.elementRect.rect, S = b[f.start] - w[f.end];
9381
9381
  if (S > 0) {
9382
9382
  var x = [0, 0];
9383
- x[u] = r[u] + b[f.start] - v - S, x[c] = k, o.push(Pe(t, s, "dashed", o.length, S, x, M.className, i));
9383
+ x[u] = r[u] + b[f.start] - v - S, x[c] = k, o.push(Ae(t, s, "dashed", o.length, S, x, M.className, i));
9384
9384
  }
9385
9385
  b = w;
9386
9386
  }), b = n, _.forEach(function(M) {
9387
9387
  var w = M.elementRect.rect, S = w[f.start] - b[f.end];
9388
9388
  if (S > 0) {
9389
9389
  var x = [0, 0];
9390
- x[u] = r[u] + b[f.end] - v, x[c] = k, o.push(Pe(t, s, "dashed", o.length, S, x, M.className, i));
9390
+ x[u] = r[u] + b[f.end] - v, x[c] = k, o.push(Ae(t, s, "dashed", o.length, S, x, M.className, i));
9391
9391
  }
9392
9392
  b = w;
9393
9393
  }), y.forEach(function(M) {
9394
9394
  var w = M.elementRect.rect, S = v - w[f.start], x = w[f.end] - h, I = [0, 0], T = [0, 0];
9395
- I[u] = r[u] - S, I[c] = k, T[u] = r[u] + h - v, T[c] = k, o.push(Pe(t, s, "dashed", o.length, S, I, M.className, i)), o.push(Pe(t, s, "dashed", o.length, x, T, M.className, i));
9395
+ I[u] = r[u] - S, I[c] = k, T[u] = r[u] + h - v, T[c] = k, o.push(Ae(t, s, "dashed", o.length, S, I, M.className, i)), o.push(Ae(t, s, "dashed", o.length, x, T, M.className, i));
9396
9396
  });
9397
9397
  });
9398
9398
  }), o;
@@ -9414,7 +9414,7 @@ function M4(t, e, r, n, i) {
9414
9414
  if (M[c.end] < f) S[l] += M[c.end] - f;
9415
9415
  else if (p < M[c.start]) S[l] += M[c.start] - f - C;
9416
9416
  else return;
9417
- S[u] += k - v, a.push(Pe(t, l ? "vertical" : "horizontal", "gap", a.length, C, S, w, i));
9417
+ S[u] += k - v, a.push(Ae(t, l ? "vertical" : "horizontal", "gap", a.length, C, S, w, i));
9418
9418
  });
9419
9419
  });
9420
9420
  }), a;
@@ -9427,21 +9427,21 @@ function Gi(t) {
9427
9427
  right: I,
9428
9428
  center: (S + I) / 2,
9429
9429
  middle: (w + x) / 2
9430
- }, R = N([], D(T4(t)), !1), A = ((r = (e = n.snapThresholdInfo) === null || e === void 0 ? void 0 : e.multiples) !== null && r !== void 0 ? r : [1, 1]).map(function(W) {
9430
+ }, R = N([], D(T4(t)), !1), P = ((r = (e = n.snapThresholdInfo) === null || e === void 0 ? void 0 : e.multiples) !== null && r !== void 0 ? r : [1, 1]).map(function(W) {
9431
9431
  return W * _;
9432
9432
  });
9433
- h && R.push.apply(R, N([], D(S4(t, T, A)), !1));
9434
- var P = E({}, n.snapOffset || {
9433
+ h && R.push.apply(R, N([], D(S4(t, T, P)), !1));
9434
+ var A = E({}, n.snapOffset || {
9435
9435
  left: 0,
9436
9436
  top: 0,
9437
9437
  bottom: 0,
9438
9438
  right: 0
9439
9439
  });
9440
- if (R.push.apply(R, N([], D(x4(t, o ? l : c, o ? s : u, d, f, P, b)), !1)), a) {
9440
+ if (R.push.apply(R, N([], D(x4(t, o ? l : c, o ? s : u, d, f, A, b)), !1)), a) {
9441
9441
  var B = i.left, V = i.top;
9442
- P.left += B, P.top += V, P.right += B, P.bottom += V;
9442
+ A.left += B, A.top += V, A.right += B, A.bottom += V;
9443
9443
  }
9444
- return R.push.apply(R, N([], D(K8(C || !1, g || !1, o ? l : c, o ? s : u, d, f, P)), !1)), R = R.filter(function(W) {
9444
+ return R.push.apply(R, N([], D(K8(C || !1, g || !1, o ? l : c, o ? s : u, d, f, A)), !1)), R = R.filter(function(W) {
9445
9445
  var G = W.element, z = W.elementRect, L = W.type;
9446
9446
  if (!G || !z) return !0;
9447
9447
  var F = z.rect;
@@ -9476,18 +9476,18 @@ function S4(t, e, r) {
9476
9476
  b.forEach(function(w) {
9477
9477
  b.forEach(function(S) {
9478
9478
  if (w !== S) {
9479
- var x = w.rect, I = S.rect, T = x[v.start], R = x[v.end], A = I[v.start];
9480
- T > I[v.end] || A > R || M.push([w, S]);
9479
+ var x = w.rect, I = S.rect, T = x[v.start], R = x[v.end], P = I[v.start];
9480
+ T > I[v.end] || P > R || M.push([w, S]);
9481
9481
  }
9482
9482
  });
9483
9483
  }), M.forEach(function(w) {
9484
- var S = D(w, 2), x = S[0], I = S[1], T = x.rect, R = I.rect, A = T[p.start], P = T[p.end], B = R[p.start], V = R[p.end], W = y[p.start], G = 0, z = 0, L = !1, F = !1, Y = !1;
9485
- if (P <= h && g <= B) {
9486
- if (F = !0, G = (B - P - (g - h)) / 2, z = P + G + (g - h) / 2, $(z - C) > W) return;
9487
- } else if (P < B && V < h + W) {
9488
- if (L = !0, G = B - P, z = V + G, $(z - h) > W) return;
9489
- } else if (P < B && g - W < A) {
9490
- if (Y = !0, G = B - P, z = A - G, $(z - g) > W) return;
9484
+ var S = D(w, 2), x = S[0], I = S[1], T = x.rect, R = I.rect, P = T[p.start], A = T[p.end], B = R[p.start], V = R[p.end], W = y[p.start], G = 0, z = 0, L = !1, F = !1, Y = !1;
9485
+ if (A <= h && g <= B) {
9486
+ if (F = !0, G = (B - A - (g - h)) / 2, z = A + G + (g - h) / 2, $(z - C) > W) return;
9487
+ } else if (A < B && V < h + W) {
9488
+ if (L = !0, G = B - A, z = V + G, $(z - h) > W) return;
9489
+ } else if (A < B && g - W < P) {
9490
+ if (Y = !0, G = B - A, z = P - G, $(z - g) > W) return;
9491
9491
  } else return;
9492
9492
  G && Z8(e, R, f, a) && (G > s || u.push({
9493
9493
  type: f,
@@ -9535,7 +9535,7 @@ function E4(t, e, r, n) {
9535
9535
  snapSize: w,
9536
9536
  snapOffset: 0
9537
9537
  };
9538
- var T = g[x], R = g[S], A = Ns(C.map(function(L) {
9538
+ var T = g[x], R = g[S], P = Ns(C.map(function(L) {
9539
9539
  return [
9540
9540
  L[S] - R,
9541
9541
  L[x],
@@ -9545,9 +9545,9 @@ function E4(t, e, r, n) {
9545
9545
  return L;
9546
9546
  }).sort(function(L, F) {
9547
9547
  return L - F;
9548
- }), P = A[0], B = A.map(function(L) {
9549
- return i2(L / P, 0.1) * w;
9550
- }), V = 1, W = i2(T / P, 0.1);
9548
+ }), A = P[0], B = P.map(function(L) {
9549
+ return i2(L / A, 0.1) * w;
9550
+ }), V = 1, W = i2(T / A, 0.1);
9551
9551
  for (V = 1; V <= 10 && !B.every(function(L) {
9552
9552
  return L * V % 1 === 0;
9553
9553
  }); ++V) ;
@@ -9632,15 +9632,15 @@ function T4(t) {
9632
9632
  }), e.elementRects = u;
9633
9633
  var c = Ra(t.props.elementSnapDirections), d = [];
9634
9634
  return u.forEach(function(f) {
9635
- var p = f.element, v = f.top, h = v === void 0 ? c.top : v, g = f.left, C = g === void 0 ? c.left : g, m = f.right, _ = m === void 0 ? c.right : m, y = f.bottom, k = y === void 0 ? c.bottom : y, b = f.center, M = b === void 0 ? c.center : b, w = f.middle, S = w === void 0 ? c.middle : w, x = f.className, I = f.rect, T = Aa({
9635
+ var p = f.element, v = f.top, h = v === void 0 ? c.top : v, g = f.left, C = g === void 0 ? c.left : g, m = f.right, _ = m === void 0 ? c.right : m, y = f.bottom, k = y === void 0 ? c.bottom : y, b = f.center, M = b === void 0 ? c.center : b, w = f.middle, S = w === void 0 ? c.middle : w, x = f.className, I = f.rect, T = Pa({
9636
9636
  top: h,
9637
9637
  right: _,
9638
9638
  left: C,
9639
9639
  bottom: k,
9640
9640
  center: M,
9641
9641
  middle: S
9642
- }, I), R = T.horizontal, A = T.vertical, P = T.horizontalNames, B = T.verticalNames, V = I.top, W = I.left, G = I.right - W, z = I.bottom - V, L = [G, z];
9643
- A.forEach(function(F, Y) {
9642
+ }, I), R = T.horizontal, P = T.vertical, A = T.horizontalNames, B = T.verticalNames, V = I.top, W = I.left, G = I.right - W, z = I.bottom - V, L = [G, z];
9643
+ P.forEach(function(F, Y) {
9644
9644
  d.push({
9645
9645
  type: "vertical",
9646
9646
  element: p,
@@ -9661,7 +9661,7 @@ function T4(t) {
9661
9661
  sizes: L,
9662
9662
  className: x,
9663
9663
  elementRect: f,
9664
- elementDirection: Jo[P[Y]] || P[Y],
9664
+ elementDirection: Jo[A[Y]] || A[Y],
9665
9665
  direction: ""
9666
9666
  });
9667
9667
  });
@@ -9800,7 +9800,7 @@ function Jn(t, e) {
9800
9800
  var r = Ne(t - e);
9801
9801
  return Math.min(r, 360 - r);
9802
9802
  }
9803
- function A4(t, e, r, n) {
9803
+ function P4(t, e, r, n) {
9804
9804
  var i, a = t.props, o = (i = a[$8]) !== null && i !== void 0 ? i : 5, s = a[G8];
9805
9805
  if (xe(t, "rotatable")) {
9806
9806
  var l = e.pos1, u = e.pos2, c = e.pos3, d = e.pos4, f = e.origin, p = r * Math.PI / 180, v = [
@@ -9836,7 +9836,7 @@ function A4(t, e, r, n) {
9836
9836
  dist: r
9837
9837
  };
9838
9838
  }
9839
- function P4(t, e, r, n, i, a, o) {
9839
+ function A4(t, e, r, n, i, a, o) {
9840
9840
  if (!xe(t, "resizable")) return [0, 0];
9841
9841
  var s = o.fixedDirection, l = o.nextAllMatrix, u = t.state, c = u.allMatrix, d = u.is3d;
9842
9842
  return Q8(t, function(f, p) {
@@ -9997,13 +9997,13 @@ color: #f55;
9997
9997
  bottom: x,
9998
9998
  center: (S + I) / 2,
9999
9999
  middle: (w + x) / 2
10000
- }, R = v.length > 0, A = R ? p0(v) : {};
10000
+ }, R = v.length > 0, P = R ? p0(v) : {};
10001
10001
  if (!u.request) {
10002
10002
  if (u.direction && y.push(n4(t, h, u.direction, d, d)), u.snap) {
10003
- var P = p0(h);
10004
- u.center && (P.middle = (P.top + P.bottom) / 2, P.center = (P.left + P.right) / 2), y.push(Qo(t, P, d, d));
10003
+ var A = p0(h);
10004
+ u.center && (A.middle = (A.top + A.bottom) / 2, A.center = (A.left + A.right) / 2), y.push(Qo(t, A, d, d));
10005
10005
  }
10006
- R && (u.center && (A.middle = (A.top + A.bottom) / 2, A.center = (A.left + A.right) / 2), y.push(Qo(t, A, d, d))), y.forEach(function(H) {
10006
+ R && (u.center && (P.middle = (P.top + P.bottom) / 2, P.center = (P.left + P.right) / 2), y.push(Qo(t, P, d, d))), y.forEach(function(H) {
10007
10007
  var K = H.vertical.posInfos, q = H.horizontal.posInfos;
10008
10008
  g.push.apply(g, N([], D(K.filter(function(X) {
10009
10009
  return X.guidelineInfos.some(function(a2) {
@@ -10027,7 +10027,7 @@ color: #f55;
10027
10027
  });
10028
10028
  }
10029
10029
  var B = f1(t, [S, I], [w, x], g, C), V = B.boundMap, W = B.innerBoundMap;
10030
- R && f1(t, [A.left, A.right], [A.top, A.bottom], g, C, u.externalBounds);
10030
+ R && f1(t, [P.left, P.right], [P.top, P.bottom], g, C, u.externalBounds);
10031
10031
  var G = N(N([], D(m), !1), D(_), !1), z = G.filter(function(H) {
10032
10032
  return H.element && !H.gapRects;
10033
10033
  }), L = G.filter(function(H) {
@@ -10338,9 +10338,9 @@ function X4(t, e, r, n, i) {
10338
10338
  var a, o = t.target, s = t.origin, l = e.matrix, u = il(o), c = u.offsetWidth, d = u.offsetHeight, f = r.getBoundingClientRect(), p = [0, 0];
10339
10339
  r === gt(r) && (p = rl(o, !0));
10340
10340
  for (var v = o.getBoundingClientRect(), h = v.left - f.left + r.scrollLeft - (r.clientLeft || 0) + p[0], g = v.top - f.top + r.scrollTop - (r.clientTop || 0) + p[1], C = v.width, m = v.height, _ = tn(n, i, l), y = d1(_, c, d, n), k = y.left, b = y.top, M = y.width, w = y.height, S = E2(_, s, n), x = t2(S, [k, b]), I = [h + x[0] * C / M, g + x[1] * m / w], T = [0, 0], R = 0; ++R < 10; ) {
10341
- var A = $0(i, n);
10342
- a = D(t2(E2(A, I, n), E2(A, S, n)), 2), T[0] = a[0], T[1] = a[1];
10343
- var P = d1(tn(n, i, zt(T, n), l), c, d, n), B = P.left, V = P.top, W = B - h, G = V - g;
10341
+ var P = $0(i, n);
10342
+ a = D(t2(E2(P, I, n), E2(P, S, n)), 2), T[0] = a[0], T[1] = a[1];
10343
+ var A = d1(tn(n, i, zt(T, n), l), c, d, n), B = A.left, V = A.top, W = B - h, G = V - g;
10344
10344
  if ($(W) < 2 && $(G) < 2) break;
10345
10345
  I[0] -= W, I[1] -= G;
10346
10346
  }
@@ -10389,7 +10389,7 @@ function il(t) {
10389
10389
  var k = t.getBBox();
10390
10390
  y = !0, r = k.width, n = k.height, o = r, s = n, l = r, u = n, i = r, a = n;
10391
10391
  } else {
10392
- var b = e0(t), M = t.style, w = b("boxSizing") === "border-box", S = parseFloat(b("borderLeftWidth")) || 0, x = parseFloat(b("borderRightWidth")) || 0, I = parseFloat(b("borderTopWidth")) || 0, T = parseFloat(b("borderBottomWidth")) || 0, R = parseFloat(b("paddingLeft")) || 0, A = parseFloat(b("paddingRight")) || 0, P = parseFloat(b("paddingTop")) || 0, B = parseFloat(b("paddingBottom")) || 0, V = R + A, W = P + B, G = S + x, z = I + T, L = V + G, F = W + z, Y = b("position"), H = 0, K = 0;
10392
+ var b = e0(t), M = t.style, w = b("boxSizing") === "border-box", S = parseFloat(b("borderLeftWidth")) || 0, x = parseFloat(b("borderRightWidth")) || 0, I = parseFloat(b("borderTopWidth")) || 0, T = parseFloat(b("borderBottomWidth")) || 0, R = parseFloat(b("paddingLeft")) || 0, P = parseFloat(b("paddingRight")) || 0, A = parseFloat(b("paddingTop")) || 0, B = parseFloat(b("paddingBottom")) || 0, V = R + P, W = A + B, G = S + x, z = I + T, L = V + G, F = W + z, Y = b("position"), H = 0, K = 0;
10393
10393
  if ("clientLeft" in t) {
10394
10394
  var q = null;
10395
10395
  if (Y === "absolute" ? q = Ke(t, gt(t)).offsetParent : q = t.parentElement, q) {
@@ -10710,14 +10710,14 @@ function J4(t, e, r) {
10710
10710
  };
10711
10711
  }
10712
10712
  function Q4(t) {
10713
- return !t || !x0(t) || Me(t) ? !1 : P2(t) || "length" in t;
10713
+ return !t || !x0(t) || Me(t) ? !1 : A2(t) || "length" in t;
10714
10714
  }
10715
10715
  function z0(t, e) {
10716
10716
  return t ? Me(t) ? t : Q2(t) ? e ? document.querySelector(t) : t : pa(t) ? t() : js(t) ? t : "current" in t ? t.current : t : null;
10717
10717
  }
10718
10718
  function Fa(t, e) {
10719
10719
  return t ? (Q4(t) ? [].slice.call(t) : [t]).reduce(function(r, n) {
10720
- return Q2(n) && e ? N(N([], D(r), !1), D([].slice.call(document.querySelectorAll(n))), !1) : (P2(n) ? r.push(Fa(n, e)) : r.push(z0(n, e)), r);
10720
+ return Q2(n) && e ? N(N([], D(r), !1), D([].slice.call(document.querySelectorAll(n))), !1) : (A2(n) ? r.push(Fa(n, e)) : r.push(z0(n, e)), r);
10721
10721
  }, []) : [];
10722
10722
  }
10723
10723
  function t7(t, e, r) {
@@ -10829,7 +10829,7 @@ function e7(t, e, r) {
10829
10829
  }
10830
10830
  function hl(t, e) {
10831
10831
  return t.length === e.length && t.every(function(r, n) {
10832
- var i = e[n], a = P2(r), o = P2(i);
10832
+ var i = e[n], a = A2(r), o = A2(i);
10833
10833
  return a && o ? hl(r, i) : !a && !o ? r === i : !1;
10834
10834
  });
10835
10835
  }
@@ -11023,7 +11023,7 @@ var r7 = dr("pinchable", {
11023
11023
  var x = S();
11024
11024
  if (!a && t.props.groupable) {
11025
11025
  var I = (M.snapRenderInfo || {}).direction;
11026
- P2(I) && (I[0] || I[1]) && (M.snapRenderInfo = {
11026
+ A2(I) && (I[0] || I[1]) && (M.snapRenderInfo = {
11027
11027
  direction: d,
11028
11028
  request: e.isRequest
11029
11029
  });
@@ -11038,21 +11038,21 @@ var r7 = dr("pinchable", {
11038
11038
  x = j;
11039
11039
  }
11040
11040
  }, !0));
11041
- var T = [x[0] / w[0], x[1] / w[1]], R = o, A = [0, 0], P = Y2(T[0] * T[1]), B = !o && !i && a;
11042
- if (B || u ? R = Ia(t, r.targetAllTransform, [0, 0], [0, 0], r) : o || (R = r.fixedPosition), a || (A = V4(t, T, d, !l && s, r)), b) {
11043
- k[0] && k[1] && A[0] && A[1] && (Math.abs(A[0] * f) > Math.abs(A[1] * p) ? A[1] = 0 : A[0] = 0);
11044
- var V = !A[0] && !A[1];
11045
- if (V && (g ? T[0] = i2(T[0] * w[0], _) / w[0] : T[1] = i2(T[1] * w[1], _) / w[1]), k[0] && !k[1] || A[0] && !A[1] || V && g) {
11046
- T[0] += A[0];
11041
+ var T = [x[0] / w[0], x[1] / w[1]], R = o, P = [0, 0], A = Y2(T[0] * T[1]), B = !o && !i && a;
11042
+ if (B || u ? R = Ia(t, r.targetAllTransform, [0, 0], [0, 0], r) : o || (R = r.fixedPosition), a || (P = V4(t, T, d, !l && s, r)), b) {
11043
+ k[0] && k[1] && P[0] && P[1] && (Math.abs(P[0] * f) > Math.abs(P[1] * p) ? P[1] = 0 : P[0] = 0);
11044
+ var V = !P[0] && !P[1];
11045
+ if (V && (g ? T[0] = i2(T[0] * w[0], _) / w[0] : T[1] = i2(T[1] * w[1], _) / w[1]), k[0] && !k[1] || P[0] && !P[1] || V && g) {
11046
+ T[0] += P[0];
11047
11047
  var W = f * T[0] * w[0] / C;
11048
- T[1] = Y2(P * T[0]) * $(W / p / w[1]);
11049
- } else if (!k[0] && k[1] || !A[0] && A[1] || V && !g) {
11050
- T[1] += A[1];
11048
+ T[1] = Y2(A * T[0]) * $(W / p / w[1]);
11049
+ } else if (!k[0] && k[1] || !P[0] && P[1] || V && !g) {
11050
+ T[1] += P[1];
11051
11051
  var G = p * T[1] * w[1] * C;
11052
- T[0] = Y2(P * T[1]) * $(G / f / w[0]);
11052
+ T[0] = Y2(A * T[1]) * $(G / f / w[0]);
11053
11053
  }
11054
11054
  } else
11055
- T[0] += A[0], T[1] += A[1], A[0] || (T[0] = i2(T[0] * w[0], _) / w[0]), A[1] || (T[1] = i2(T[1] * w[1], _) / w[1]);
11055
+ T[0] += P[0], T[1] += P[1], P[0] || (T[0] = i2(T[0] * w[0], _) / w[0]), P[1] || (T[1] = i2(T[1] * w[1], _) / w[1]);
11056
11056
  T[0] === 0 && (T[0] = Y2(c[0]) * xr), T[1] === 0 && (T[1] = Y2(c[1]) * xr), x = G4(T, [w[0], w[1]]);
11057
11057
  var z = [f, p], L = [f * x[0], p * x[1]];
11058
11058
  L = Ls(L, r.minScaleSize, r.maxScaleSize, b ? C : !1), x = ti(2, function(j) {
@@ -11310,7 +11310,7 @@ var a7 = {
11310
11310
  var r = e.datas, n = e.isDrag;
11311
11311
  return r.isWarp ? (r.isWarp = !1, U(t, "onWarpEnd", o0(t, e, {})), n) : !1;
11312
11312
  }
11313
- }, o7 = /* @__PURE__ */ J("area-pieces"), Ar = /* @__PURE__ */ J("area-piece"), Cl = /* @__PURE__ */ J("avoid"), s7 = J("view-dragging");
11313
+ }, o7 = /* @__PURE__ */ J("area-pieces"), Pr = /* @__PURE__ */ J("area-piece"), Cl = /* @__PURE__ */ J("avoid"), s7 = J("view-dragging");
11314
11314
  function ei(t) {
11315
11315
  var e = t.areaElement;
11316
11316
  if (e) {
@@ -11322,7 +11322,7 @@ function C1(t) {
11322
11322
  return t.createElement("div", {
11323
11323
  key: "area_pieces",
11324
11324
  className: o7
11325
- }, t.createElement("div", { className: Ar }), t.createElement("div", { className: Ar }), t.createElement("div", { className: Ar }), t.createElement("div", { className: Ar }));
11325
+ }, t.createElement("div", { className: Pr }), t.createElement("div", { className: Pr }), t.createElement("div", { className: Pr }), t.createElement("div", { className: Pr }));
11326
11326
  }
11327
11327
  var ml = {
11328
11328
  name: "dragArea",
@@ -11591,7 +11591,7 @@ var c7 = {
11591
11591
  "se",
11592
11592
  "sw"
11593
11593
  ];
11594
- function Pr(t, e) {
11594
+ function Ar(t, e) {
11595
11595
  var r = t[0] + t[1], n = r > e ? e / r : 1;
11596
11596
  return t[0] *= n, t[1] = e - t[1] * n, t;
11597
11597
  }
@@ -11649,7 +11649,7 @@ function bl(t) {
11649
11649
  function yl(t, e, r, n, i, a, o) {
11650
11650
  var s, l, u, c;
11651
11651
  a === void 0 && (a = [0, 0]), o === void 0 && (o = !1);
11652
- var d = t.indexOf("/"), f = (d > -1 ? t.slice(0, d) : t).length, p = t.slice(0, f), v = t.slice(f + 1), h = p.length, g = v.length, C = g > 0, m = D(p, 4), _ = m[0], y = _ === void 0 ? "0px" : _, k = m[1], b = k === void 0 ? y : k, M = m[2], w = M === void 0 ? y : M, S = m[3], x = S === void 0 ? b : S, I = D(v, 4), T = I[0], R = T === void 0 ? y : T, A = I[1], P = A === void 0 ? C ? R : b : A, B = I[2], V = B === void 0 ? C ? R : w : B, W = I[3], G = W === void 0 ? C ? P : x : W, z = [
11652
+ var d = t.indexOf("/"), f = (d > -1 ? t.slice(0, d) : t).length, p = t.slice(0, f), v = t.slice(f + 1), h = p.length, g = v.length, C = g > 0, m = D(p, 4), _ = m[0], y = _ === void 0 ? "0px" : _, k = m[1], b = k === void 0 ? y : k, M = m[2], w = M === void 0 ? y : M, S = m[3], x = S === void 0 ? b : S, I = D(v, 4), T = I[0], R = T === void 0 ? y : T, P = I[1], A = P === void 0 ? C ? R : b : P, B = I[2], V = B === void 0 ? C ? R : w : B, W = I[3], G = W === void 0 ? C ? A : x : W, z = [
11653
11653
  y,
11654
11654
  b,
11655
11655
  w,
@@ -11658,13 +11658,13 @@ function yl(t, e, r, n, i, a, o) {
11658
11658
  return _2(q, e);
11659
11659
  }), L = [
11660
11660
  R,
11661
- P,
11661
+ A,
11662
11662
  V,
11663
11663
  G
11664
11664
  ].map(function(q) {
11665
11665
  return _2(q, r);
11666
11666
  }), F = z.slice(), Y = L.slice();
11667
- s = D(Pr([F[0], F[1]], e), 2), F[0] = s[0], F[1] = s[1], l = D(Pr([F[3], F[2]], e), 2), F[3] = l[0], F[2] = l[1], u = D(Pr([Y[0], Y[3]], r), 2), Y[0] = u[0], Y[3] = u[1], c = D(Pr([Y[1], Y[2]], r), 2), Y[1] = c[0], Y[2] = c[1];
11667
+ s = D(Ar([F[0], F[1]], e), 2), F[0] = s[0], F[1] = s[1], l = D(Ar([F[3], F[2]], e), 2), F[3] = l[0], F[2] = l[1], u = D(Ar([Y[0], Y[3]], r), 2), Y[0] = u[0], Y[3] = u[1], c = D(Ar([Y[1], Y[2]], r), 2), Y[1] = c[0], Y[2] = c[1];
11668
11668
  var H = o ? F : F.slice(0, Math.max(a[0], h)), K = o ? Y : Y.slice(0, Math.max(a[1], g));
11669
11669
  return N(N([], D(H.map(function(q, X) {
11670
11670
  var a2 = m1[X];
@@ -11893,13 +11893,13 @@ function _1(t, e, r, n, i) {
11893
11893
  bottom: x.maxY
11894
11894
  };
11895
11895
  } else if (b || _ === "ellipse") {
11896
- var I = "", T = "", R = 0, A = 0, w = pt(k);
11896
+ var I = "", T = "", R = 0, P = 0, w = pt(k);
11897
11897
  if (b) {
11898
- var P = "";
11899
- a = D(w, 4), o = a[0], P = o === void 0 ? "50%" : o, s = a[2], I = s === void 0 ? "50%" : s, l = a[3], T = l === void 0 ? "50%" : l, R = _2(P, Math.sqrt((e * e + r * r) / 2)), A = R;
11898
+ var A = "";
11899
+ a = D(w, 4), o = a[0], A = o === void 0 ? "50%" : o, s = a[2], I = s === void 0 ? "50%" : s, l = a[3], T = l === void 0 ? "50%" : l, R = _2(A, Math.sqrt((e * e + r * r) / 2)), P = R;
11900
11900
  } else {
11901
11901
  var B = "", V = "";
11902
- u = D(w, 5), c = u[0], B = c === void 0 ? "50%" : c, d = u[1], V = d === void 0 ? "50%" : d, f = u[3], I = f === void 0 ? "50%" : f, p = u[4], T = p === void 0 ? "50%" : p, R = _2(B, e), A = _2(V, r);
11902
+ u = D(w, 5), c = u[0], B = c === void 0 ? "50%" : c, d = u[1], V = d === void 0 ? "50%" : d, f = u[3], I = f === void 0 ? "50%" : f, p = u[4], T = p === void 0 ? "50%" : p, R = _2(B, e), P = _2(V, r);
11903
11903
  }
11904
11904
  var W = [_2(I, e), _2(T, r)], S = N([{
11905
11905
  vertical: 1,
@@ -11912,18 +11912,18 @@ function _1(t, e, r, n, i) {
11912
11912
  horizontal: m2[0],
11913
11913
  direction: m2[2],
11914
11914
  sub: !0,
11915
- pos: [W[0] + m2[0] * R, W[1] + m2[1] * A]
11915
+ pos: [W[0] + m2[0] * R, W[1] + m2[1] * P]
11916
11916
  };
11917
11917
  })), !1);
11918
11918
  return {
11919
11919
  type: _,
11920
11920
  clipText: v,
11921
11921
  radiusX: R,
11922
- radiusY: A,
11922
+ radiusY: P,
11923
11923
  left: W[0] - R,
11924
- top: W[1] - A,
11924
+ top: W[1] - P,
11925
11925
  right: W[0] + R,
11926
- bottom: W[1] + A,
11926
+ bottom: W[1] + P,
11927
11927
  poses: S,
11928
11928
  splitter: M
11929
11929
  };
@@ -11988,14 +11988,14 @@ function _7(t, e, r, n, i) {
11988
11988
  });
11989
11989
  } else
11990
11990
  t.forEach(function(T, R) {
11991
- var A = T.direction;
11992
- A && (A.indexOf(f) > -1 && (l[R][0] = r[0]), A.indexOf(p) > -1 && (l[R][1] = r[1]));
11991
+ var P = T.direction;
11992
+ P && (P.indexOf(f) > -1 && (l[R][0] = r[0]), P.indexOf(p) > -1 && (l[R][1] = r[1]));
11993
11993
  }), f && (l[1][0] = r[0] / 2, l[5][0] = r[0] / 2), p && (l[3][1] = r[1] / 2, l[7][1] = r[1] / 2);
11994
11994
  } else o && !s ? u.forEach(function(T) {
11995
11995
  var R = T === "n" || T === "s";
11996
- t.forEach(function(A, P) {
11997
- var B = A.direction, V = A.horizontal, W = A.vertical;
11998
- !B || B.indexOf(T) === -1 || (l[P] = [R || !V ? 0 : r[0], !R || !W ? 0 : r[1]]);
11996
+ t.forEach(function(P, A) {
11997
+ var B = P.direction, V = P.horizontal, W = P.vertical;
11998
+ !B || B.indexOf(T) === -1 || (l[A] = [R || !V ? 0 : r[0], !R || !W ? 0 : r[1]]);
11999
11999
  });
12000
12000
  }) : l[e] = r;
12001
12001
  return l;
@@ -12106,9 +12106,9 @@ background: var(--bounds-color);
12106
12106
  var w = p ? 4 : 3, S = M.type, x = M.poses.map(function(n2) {
12107
12107
  var r2 = E2(f, n2.pos, w);
12108
12108
  return [r2[0] - v, r2[1] - h];
12109
- }), I = [], T = [], R = S === "rect", A = S === "inset", P = S === "polygon";
12110
- if (R || A || P) {
12111
- var B = A ? x.slice(0, 8) : x;
12109
+ }), I = [], T = [], R = S === "rect", P = S === "inset", A = S === "polygon";
12110
+ if (R || P || A) {
12111
+ var B = P ? x.slice(0, 8) : x;
12112
12112
  T = B.map(function(n2, r2) {
12113
12113
  var p2 = r2 === 0 ? B[B.length - 1] : B[r2 - 1], O2 = I2(p2, n2), M2 = nl(p2, n2);
12114
12114
  return e.createElement("div", {
@@ -12129,7 +12129,7 @@ background: var(--bounds-color);
12129
12129
  "data-clip-index": r2,
12130
12130
  style: { transform: "translate(".concat(n2[0], "px, ").concat(n2[1], "px) rotate(").concat(b, "rad) scale(").concat(o, ")") }
12131
12131
  });
12132
- }), A && I.push.apply(I, N([], D(x.slice(8).map(function(n2, r2) {
12132
+ }), P && I.push.apply(I, N([], D(x.slice(8).map(function(n2, r2) {
12133
12133
  return e.createElement("div", {
12134
12134
  key: "clipRadiusControl".concat(r2),
12135
12135
  className: J("control", "clip-control", "clip-radius", "snap-control"),
@@ -12165,8 +12165,8 @@ background: var(--bounds-color);
12165
12165
  m,
12166
12166
  _
12167
12167
  ], D(x), !1)), j = k2.width, Q = k2.height, h2 = k2.left, u2 = k2.top;
12168
- if (P || R || A) {
12169
- var q = A ? x.slice(0, 8) : x;
12168
+ if (A || R || P) {
12169
+ var q = P ? x.slice(0, 8) : x;
12170
12170
  I.push(e.createElement("div", {
12171
12171
  key: "clipArea",
12172
12172
  className: J("clip-area", "snap-control"),
@@ -12228,23 +12228,23 @@ background: var(--bounds-color);
12228
12228
  return w2.pos;
12229
12229
  });
12230
12230
  w && (g = -g, C = -C);
12231
- var R = !u || x[f].direction === "nesw", A = S === "inset" || S === "rect", P = x.map(function() {
12231
+ var R = !u || x[f].direction === "nesw", P = S === "inset" || S === "rect", A = x.map(function() {
12232
12232
  return [0, 0];
12233
12233
  });
12234
12234
  if (u && !R) {
12235
12235
  var B = x[f], V = B.horizontal, W = B.vertical;
12236
- P = _7(x, f, [g * $(V), C * $(W)], A, h);
12237
- } else R && (P = T.map(function() {
12236
+ A = _7(x, f, [g * $(V), C * $(W)], P, h);
12237
+ } else R && (A = T.map(function() {
12238
12238
  return [g, C];
12239
12239
  }));
12240
12240
  var G = T.map(function(w2, W2) {
12241
- return v2(w2, P[W2]);
12241
+ return v2(w2, A[W2]);
12242
12242
  }), z = N([], D(G), !1);
12243
12243
  k.snapBoundInfos = null;
12244
12244
  var L = p.type === "circle", F = p.type === "ellipse";
12245
12245
  if (L || F) {
12246
12246
  var Y = p0(G), H = $(Y.bottom - Y.top), K = $(F ? Y.right - Y.left : H), q = G[0][1] + H, X = G[0][0] - K, a2 = G[0][0] + K;
12247
- L && (z.push([a2, Y.bottom]), P.push([1, 0])), z.push([Y.left, q]), P.push([0, 1]), z.push([X, Y.bottom]), P.push([1, 0]);
12247
+ L && (z.push([a2, Y.bottom]), A.push([1, 0])), z.push([Y.left, q]), A.push([0, 1]), z.push([X, Y.bottom]), A.push([1, 0]);
12248
12248
  }
12249
12249
  var k2 = K8((v.clipHorizontalGuidelines || []).map(function(w2) {
12250
12250
  return _2("".concat(w2), M);
@@ -12253,17 +12253,17 @@ background: var(--bounds-color);
12253
12253
  }), b, M), j = [], Q = [];
12254
12254
  if (L || F)
12255
12255
  j = [z[4][0], z[2][0]], Q = [z[1][1], z[3][1]];
12256
- else if (A) {
12256
+ else if (P) {
12257
12257
  var h2 = [
12258
12258
  z[0],
12259
12259
  z[2],
12260
12260
  z[4],
12261
12261
  z[6]
12262
12262
  ], u2 = [
12263
- P[0],
12264
- P[2],
12265
- P[4],
12266
- P[6]
12263
+ A[0],
12264
+ A[2],
12265
+ A[4],
12266
+ A[6]
12267
12267
  ];
12268
12268
  j = h2.filter(function(w2, W2) {
12269
12269
  return u2[W2][0];
@@ -12276,11 +12276,11 @@ background: var(--bounds-color);
12276
12276
  });
12277
12277
  } else
12278
12278
  j = z.filter(function(w2, W2) {
12279
- return P[W2][0];
12279
+ return A[W2][0];
12280
12280
  }).map(function(w2) {
12281
12281
  return w2[0];
12282
12282
  }), Q = z.filter(function(w2, W2) {
12283
- return P[W2][1];
12283
+ return A[W2][1];
12284
12284
  }).map(function(w2) {
12285
12285
  return w2[1];
12286
12286
  });
@@ -12290,27 +12290,27 @@ background: var(--bounds-color);
12290
12290
  right: b,
12291
12291
  bottom: M
12292
12292
  }, j, Q, 5, 5), p2 = r2.horizontal, O2 = r2.vertical, M2 = p2.offset, C2 = O2.offset;
12293
- if (p2.isBound && (n2[1] += M2), O2.isBound && (n2[0] += C2), (F || L) && P[0][0] === 0 && P[0][1] === 0) {
12293
+ if (p2.isBound && (n2[1] += M2), O2.isBound && (n2[0] += C2), (F || L) && A[0][0] === 0 && A[0][1] === 0) {
12294
12294
  var Y = p0(G), r0 = Y.bottom - Y.top, s0 = F ? Y.right - Y.left : r0, Ct = O2.isBound ? $(C2) : O2.snapIndex === 0 ? -C2 : C2, m2 = p2.isBound ? $(M2) : p2.snapIndex === 0 ? -M2 : M2;
12295
12295
  s0 -= Ct, r0 -= m2, L && (r0 = W8(O2, p2) > 0 ? r0 : s0, s0 = r0);
12296
12296
  var R2 = z[0];
12297
12297
  z[1][1] = R2[1] - r0, z[2][0] = R2[0] + s0, z[3][1] = R2[1] + r0, z[4][0] = R2[0] - s0;
12298
- } else if (A && h && u) {
12298
+ } else if (P && h && u) {
12299
12299
  var Wt = D(kl(x), 2), rt = Wt[0], Ua = Wt[1], Za = rt && Ua ? rt / Ua : 0, hr = x[f].direction || "", In = z[1][1], q = z[5][1], X = z[7][0], a2 = z[3][0];
12300
12300
  $(M2) <= $(C2) ? M2 = Y2(M2) * $(C2) / Za : C2 = Y2(C2) * $(M2) * Za, hr.indexOf("w") > -1 ? X -= C2 : hr.indexOf("e") > -1 ? a2 -= C2 : (X += C2 / 2, a2 -= C2 / 2), hr.indexOf("n") > -1 ? In -= M2 : hr.indexOf("s") > -1 ? q -= M2 : (In += M2 / 2, q -= M2 / 2);
12301
- var Al = cn(In, a2, q, X);
12301
+ var Pl = cn(In, a2, q, X);
12302
12302
  z.forEach(function(Qa, Bl) {
12303
- var to = D(Al[Bl].pos, 2);
12303
+ var to = D(Pl[Bl].pos, 2);
12304
12304
  Qa[0] = to[0], Qa[1] = to[1];
12305
12305
  });
12306
12306
  } else z.forEach(function(w2, W2) {
12307
- var Ja = P[W2];
12307
+ var Ja = A[W2];
12308
12308
  Ja[0] && (w2[0] -= C2), Ja[1] && (w2[1] -= M2);
12309
12309
  });
12310
12310
  var Ka = ja(t, p, G), On = "".concat(S, "(").concat(Ka.join(I), ")");
12311
12311
  if (k.clipPathState = On, L || F)
12312
12312
  j = [z[4][0], z[2][0]], Q = [z[1][1], z[3][1]];
12313
- else if (A) {
12313
+ else if (P) {
12314
12314
  var h2 = [
12315
12315
  z[0],
12316
12316
  z[2],
@@ -12334,7 +12334,7 @@ background: var(--bounds-color);
12334
12334
  right: b,
12335
12335
  bottom: M
12336
12336
  }, j, Q, 1, 1), m) {
12337
- var Pl = k.is3d, Vl = k.allMatrix, zl = Pl ? 4 : 3, Rn = n2;
12337
+ var Al = k.is3d, Vl = k.allMatrix, zl = Al ? 4 : 3, Rn = n2;
12338
12338
  s && (Rn = [y[0] + n2[0] - _[0], y[1] + n2[1] - _[1]]), m.deltaOffset = y2(Vl, [
12339
12339
  Rn[0],
12340
12340
  Rn[1],
@@ -12549,8 +12549,8 @@ cursor: pointer;
12549
12549
  if (!M) return null;
12550
12550
  var w = 0, S = 0, x = y ? [0, 0] : [l, u];
12551
12551
  return M.map(function(I, T) {
12552
- var R = I.horizontal, A = I.vertical, P = I.direction || "", B = N([], D(I.pos), !1);
12553
- S += Math.abs(R), w += Math.abs(A), R && P.indexOf("n") > -1 && (B[1] -= m), A && P.indexOf("w") > -1 && (B[0] -= m), R && P.indexOf("s") > -1 && (B[1] += m), A && P.indexOf("e") > -1 && (B[0] += m);
12552
+ var R = I.horizontal, P = I.vertical, A = I.direction || "", B = N([], D(I.pos), !1);
12553
+ S += Math.abs(R), w += Math.abs(P), R && A.indexOf("n") > -1 && (B[1] -= m), P && A.indexOf("w") > -1 && (B[0] -= m), R && A.indexOf("s") > -1 && (B[1] += m), P && A.indexOf("e") > -1 && (B[0] += m);
12554
12554
  var V = t2(E2(o, B, b), x), W = _ && _ !== "horizontal", G = I.vertical ? w <= h[1] && (W || !I.virtual) : S <= h[0] && (_ || !I.virtual);
12555
12555
  return e.createElement("div", {
12556
12556
  key: "borderRadiusControl".concat(T),
@@ -12727,7 +12727,7 @@ var wl = {
12727
12727
  fillDragStartParams: function(t, e) {
12728
12728
  return s2(t, e, {
12729
12729
  setTransform: function(r) {
12730
- e.datas.startTransforms = P2(r) ? r : pt(r);
12730
+ e.datas.startTransforms = A2(r) ? r : pt(r);
12731
12731
  },
12732
12732
  isPinch: !!e.isPinch
12733
12733
  });
@@ -12924,15 +12924,15 @@ function He(t, e, r, n, i, a, o) {
12924
12924
  _ && t.updateRect(i, !0, !1);
12925
12925
  var y = a.datas, k = f ? "controlGesto" : "targetGesto", b = t[k], M = function(I, T, R) {
12926
12926
  if (!(T in I) || b !== t[k]) return !1;
12927
- var A = I.name, P = y[A] || (y[A] = {});
12928
- if (s && (P.isEventStart = !R || !I[R] || I[R](t, a)), !P.isEventStart) return !1;
12927
+ var P = I.name, A = y[P] || (y[P] = {});
12928
+ if (s && (A.isEventStart = !R || !I[R] || I[R](t, a)), !A.isEventStart) return !1;
12929
12929
  var B = I[T](t, E(E({}, a), {
12930
12930
  stop: m,
12931
- datas: P,
12931
+ datas: A,
12932
12932
  originalDatas: y,
12933
12933
  inputTarget: g
12934
12934
  }));
12935
- return t._emitter.off(), s && B === !1 && (P.isEventStart = !1), B;
12935
+ return t._emitter.off(), s && B === !1 && (A.isEventStart = !1), B;
12936
12936
  };
12937
12937
  _ && p.forEach(function(I) {
12938
12938
  I.unset && I.unset(t);
@@ -12942,16 +12942,16 @@ function He(t, e, r, n, i, a, o) {
12942
12942
  if (C) return !1;
12943
12943
  var T = "".concat(I).concat(n).concat(i), R = "".concat(I).concat(n, "Condition");
12944
12944
  i === "" && !d && dl(t.state, a);
12945
- var A = p.filter(function(B) {
12945
+ var P = p.filter(function(B) {
12946
12946
  return B[T];
12947
12947
  });
12948
- A = A.filter(function(B, V) {
12949
- return B.name && A.indexOf(B) === V;
12948
+ P = P.filter(function(B, V) {
12949
+ return B.name && P.indexOf(B) === V;
12950
12950
  });
12951
- var P = A.filter(function(B) {
12951
+ var A = P.filter(function(B) {
12952
12952
  return M(B, T, R);
12953
12953
  }).length;
12954
- C && ++w, P && ++S, !C && s && A.length && !P && (w += A.filter(function(B) {
12954
+ C && ++w, A && ++S, !C && s && P.length && !A && (w += P.filter(function(B) {
12955
12955
  return y[B.name].isEventStart ? B.dragRelation !== "strong" : !1;
12956
12956
  }).length ? 1 : 0);
12957
12957
  }), (!u || S) && M(Ml, "drag".concat(n).concat(i));
@@ -13054,13 +13054,13 @@ function I7(t, e, r, n) {
13054
13054
  o.reverse(), !s && _ && (b = T0(b, 3, 4), Li(o)), !g && _ && Li(T), T.forEach(function(G) {
13055
13055
  w = y2(w, G.matrix, y);
13056
13056
  });
13057
- var R = r || gt(t), A = ((i = T[0]) === null || i === void 0 ? void 0 : i.target) || Ke(R, R, !0).offsetParent, P = T.slice(1).reduce(function(G, z) {
13057
+ var R = r || gt(t), P = ((i = T[0]) === null || i === void 0 ? void 0 : i.target) || Ke(R, R, !0).offsetParent, A = T.slice(1).reduce(function(G, z) {
13058
13058
  return y2(G, z.matrix, y);
13059
13059
  }, S2(y));
13060
13060
  o.forEach(function(G, z) {
13061
13061
  if (I - 2 === z && (S = M.slice()), I - 1 === z && (x = M.slice()), !G.matrix) {
13062
13062
  var L = o[z + 1];
13063
- G.matrix = zt(X4(G, L, A, y, y2(P, M, y)), y);
13063
+ G.matrix = zt(X4(G, L, P, y, y2(A, M, y)), y);
13064
13064
  }
13065
13065
  M = y2(M, G.matrix, y);
13066
13066
  });
@@ -13237,12 +13237,12 @@ var ye = /* @__PURE__ */ (function(t) {
13237
13237
  var r = this.props, n = this.getState(), i = r.parentPosition, a = r.className, o = r.target, s = r.zoom, l = r.cspNonce, u = r.translateZ, c = r.cssStyled, d = r.groupable, f = r.linePadding, p = r.controlPadding;
13238
13238
  this._checkUpdateRootContainer(), this.checkUpdate(), this.updateRenderPoses();
13239
13239
  var v = D(i || [0, 0], 2), h = v[0], g = v[1], C = n.left, m = n.top, _ = n.target, y = n.direction, k = n.hasFixed, b = n.offsetDelta, M = r.targets, w = this.isDragging(), S = {};
13240
- this.getEnabledAbles().forEach(function(P) {
13241
- S["data-able-".concat(P.name.toLowerCase())] = !0;
13240
+ this.getEnabledAbles().forEach(function(A) {
13241
+ S["data-able-".concat(A.name.toLowerCase())] = !0;
13242
13242
  });
13243
13243
  var x = this._getAbleClassName(), I = M && M.length && (_ || d) || o || !this._hasFirstTarget && this.state.isPersisted, T = this.controlBox || this.props.firstRenderState || this.props.persistData, R = [C - h, m - g];
13244
13244
  !d && r.useAccuratePosition && (R[0] += b[0], R[1] += b[1]);
13245
- var A = {
13245
+ var P = {
13246
13246
  position: k ? "fixed" : "absolute",
13247
13247
  display: I ? "block" : "none",
13248
13248
  visibility: T ? "visible" : "hidden",
@@ -13250,13 +13250,13 @@ var ye = /* @__PURE__ */ (function(t) {
13250
13250
  "--zoom": s,
13251
13251
  "--zoompx": "".concat(s, "px")
13252
13252
  };
13253
- return f && (A["--moveable-line-padding"] = f), p && (A["--moveable-control-padding"] = p), M0(c, E({
13253
+ return f && (P["--moveable-line-padding"] = f), p && (P["--moveable-control-padding"] = p), M0(c, E({
13254
13254
  cspNonce: l,
13255
13255
  ref: H0(this, "controlBox"),
13256
13256
  className: "".concat(J("control-box", y === -1 ? "reverse" : "", w ? "dragging" : ""), " ").concat(x, " ").concat(a)
13257
13257
  }, S, {
13258
13258
  onClick: this._onPreventClick,
13259
- style: A
13259
+ style: P
13260
13260
  }), this.renderAbles(), this._renderLines());
13261
13261
  }, e.prototype.componentDidMount = function() {
13262
13262
  this.isMoveableMounted = !0, this.isUnmounted = !1;
@@ -13439,8 +13439,8 @@ var ye = /* @__PURE__ */ (function(t) {
13439
13439
  }
13440
13440
  var C = gl(i || {}), m = C.left, _ = C.top, y = C.bottom, k = C.right, b = l ? 4 : 3, M = [];
13441
13441
  h ? M = o : this.controlBox && n.groupable ? M = a : M = v2(a, [p, v]);
13442
- var w = tn(b, zt(M.map(function(A) {
13443
- return -A;
13442
+ var w = tn(b, zt(M.map(function(P) {
13443
+ return -P;
13444
13444
  }), b), s, zt(o, b)), S = u0(w, u, [-m, -_], b), x = u0(w, c, [k, -_], b), I = u0(w, d, [-m, y], b), T = u0(w, f, [k, y], b);
13445
13445
  if (r.renderPoses = [
13446
13446
  S,
@@ -13717,7 +13717,7 @@ var ye = /* @__PURE__ */ (function(t) {
13717
13717
  return t.moveables = t.moveables.slice(0, i.length), N(N([], D(i.map(function(v, h) {
13718
13718
  return e.createElement(ye, {
13719
13719
  key: "moveable" + h,
13720
- ref: Ps(t, "moveables", h),
13720
+ ref: As(t, "moveables", h),
13721
13721
  target: v,
13722
13722
  origin: !1,
13723
13723
  requestStyles: p,
@@ -13802,13 +13802,13 @@ function jt(t) {
13802
13802
  var e = t.originalDatas.draggable;
13803
13803
  return e || (t.originalDatas.draggable = {}, e = t.originalDatas.draggable), E(E({}, t), { datas: e });
13804
13804
  }
13805
- var A7 = dr("edgeDraggable", {
13805
+ var P7 = dr("edgeDraggable", {
13806
13806
  css: [`.edge.edgeDraggable.line {
13807
13807
  cursor: move;
13808
13808
  }`],
13809
13809
  render: function(t, e) {
13810
13810
  var r = t.props, n = r.edgeDraggable;
13811
- return n ? P8(e, "edgeDraggable", n, t.getState().renderPoses, r.zoom) : [];
13811
+ return n ? A8(e, "edgeDraggable", n, t.getState().renderPoses, r.zoom) : [];
13812
13812
  },
13813
13813
  dragCondition: function(t, e) {
13814
13814
  var r, n = t.props, i = (r = e.inputEvent) === null || r === void 0 ? void 0 : r.target;
@@ -13849,7 +13849,7 @@ cursor: move;
13849
13849
  $4,
13850
13850
  r7,
13851
13851
  j2,
13852
- A7,
13852
+ P7,
13853
13853
  Bi,
13854
13854
  n7,
13855
13855
  a7,
@@ -13865,7 +13865,7 @@ cursor: move;
13865
13865
  R7,
13866
13866
  ml,
13867
13867
  Ml
13868
- ], P7 = /* @__PURE__ */ Xa.reduce(function(t, e) {
13868
+ ], A7 = /* @__PURE__ */ Xa.reduce(function(t, e) {
13869
13869
  return (e.events || []).forEach(function(r) {
13870
13870
  Fs(t, r);
13871
13871
  }), t;
@@ -13911,7 +13911,7 @@ function z7(t, e) {
13911
13911
  };
13912
13912
  var d = i2(e, X2);
13913
13913
  if (d % 90) {
13914
- var f = d / 180 * Math.PI, p = Math.tan(f), v = -1 / p, h = [Ai, Uo], g = [[0, 0], [0, 0]], C = [Ai, Uo], m = [[0, 0], [0, 0]];
13914
+ var f = d / 180 * Math.PI, p = Math.tan(f), v = -1 / p, h = [Pi, Uo], g = [[0, 0], [0, 0]], C = [Pi, Uo], m = [[0, 0], [0, 0]];
13915
13915
  t.forEach(function(Y) {
13916
13916
  Y.forEach(function(H) {
13917
13917
  var K = M1([
@@ -13953,15 +13953,15 @@ function z7(t, e) {
13953
13953
  return Sa(K, q)[0];
13954
13954
  }), 4), a = r[0], o = r[1], s = r[2], l = r[3], u = C[1] - C[0], c = h[1] - h[0];
13955
13955
  } else {
13956
- var R = E1(t, 0), A = E1(t, 1), P = S1(t, 0), B = S1(t, 1);
13957
- if (a = [R, A], o = [P, A], s = [R, B], l = [P, B], u = P - R, c = B - A, d % 180) {
13956
+ var R = E1(t, 0), P = E1(t, 1), A = S1(t, 0), B = S1(t, 1);
13957
+ if (a = [R, P], o = [A, P], s = [R, B], l = [A, B], u = A - R, c = B - P, d % 180) {
13958
13958
  var V = [
13959
13959
  s,
13960
13960
  a,
13961
13961
  l,
13962
13962
  o
13963
13963
  ];
13964
- n = D(V, 4), a = n[0], o = n[1], s = n[2], l = n[3], u = B - A, c = P - R;
13964
+ n = D(V, 4), a = n[0], o = n[1], s = n[2], l = n[3], u = B - P, c = A - R;
13965
13965
  }
13966
13966
  }
13967
13967
  if (d % 360 > 180) {
@@ -13995,7 +13995,7 @@ function z7(t, e) {
13995
13995
  }
13996
13996
  function Dl(t, e) {
13997
13997
  var r = e.map(function(n) {
13998
- if (P2(n)) {
13998
+ if (A2(n)) {
13999
13999
  var i = Dl(t, n), a = i.length;
14000
14000
  return a > 1 ? i : a === 1 ? i[0] : null;
14001
14001
  } else {
@@ -14005,7 +14005,7 @@ function Dl(t, e) {
14005
14005
  return o ? (o.finded = !0, o.manager) : null;
14006
14006
  }
14007
14007
  }).filter(Boolean);
14008
- return r.length === 1 && P2(r[0]) ? r[0] : r;
14008
+ return r.length === 1 && A2(r[0]) ? r[0] : r;
14009
14009
  }
14010
14010
  var B7 = /* @__PURE__ */ (function(t) {
14011
14011
  fr(e, t);
@@ -14045,7 +14045,7 @@ var B7 = /* @__PURE__ */ (function(t) {
14045
14045
  }
14046
14046
  function m(X, a2, k2) {
14047
14047
  var j = X.map(function(r2) {
14048
- if (P2(r2)) {
14048
+ if (A2(r2)) {
14049
14049
  var p2 = m(r2, a2), O2 = [
14050
14050
  p2.pos1,
14051
14051
  p2.pos2,
@@ -14076,15 +14076,15 @@ var B7 = /* @__PURE__ */ (function(t) {
14076
14076
  [M, 0],
14077
14077
  [0, w],
14078
14078
  [M, w]
14079
- ], Wa(y, M, w), this.rotation / 180 * Math.PI).result), T = I.minX, R = I.minY, A = " rotate(".concat(k, "deg)") + " scale(".concat(Y2(b[0]), ", ").concat(Y2(b[1]), ")"), P = "translate(".concat(-T, "px, ").concat(-R, "px)").concat(A);
14080
- this.controlBox.style.transform = "translate3d(".concat(S, "px, ").concat(x, "px, ").concat(this.props.translateZ || 0, ")"), u.style.cssText += "left:0px;top:0px;" + "transform-origin:".concat(y, ";") + "width:".concat(M, "px;height:").concat(w, "px;") + "transform: ".concat(P), o.width = M, o.height = w;
14079
+ ], Wa(y, M, w), this.rotation / 180 * Math.PI).result), T = I.minX, R = I.minY, P = " rotate(".concat(k, "deg)") + " scale(".concat(Y2(b[0]), ", ").concat(Y2(b[1]), ")"), A = "translate(".concat(-T, "px, ").concat(-R, "px)").concat(P);
14080
+ this.controlBox.style.transform = "translate3d(".concat(S, "px, ").concat(x, "px, ").concat(this.props.translateZ || 0, ")"), u.style.cssText += "left:0px;top:0px;" + "transform-origin:".concat(y, ";") + "width:".concat(M, "px;height:").concat(w, "px;") + "transform: ".concat(A), o.width = M, o.height = w;
14081
14081
  var B = this.getContainer(), V = Hi(this.controlBox, u, this.controlBox, this.getContainer(), this._rootContainer || B, []), W = [V.left, V.top], G = D(C0(V), 4), z = G[0], L = G[1], F = G[2], Y = G[3], H = Bt([
14082
14082
  z,
14083
14083
  L,
14084
14084
  F,
14085
14085
  Y
14086
14086
  ]), K = [H.minX, H.minY], q = Y2(b[0] * b[1]);
14087
- V.pos1 = t2(z, K), V.pos2 = t2(L, K), V.pos3 = t2(F, K), V.pos4 = t2(Y, K), V.left = S - V.left + K[0], V.top = x - V.top + K[1], V.origin = t2(v2(W, V.origin), K), V.beforeOrigin = t2(v2(W, V.beforeOrigin), K), V.originalBeforeOrigin = v2(W, V.originalBeforeOrigin), V.transformOrigin = t2(v2(W, V.transformOrigin), K), u.style.transform = "translate(".concat(-T - K[0], "px, ").concat(-R - K[1], "px)") + A, me(), this.updateState(E(E({}, V), {
14087
+ V.pos1 = t2(z, K), V.pos2 = t2(L, K), V.pos3 = t2(F, K), V.pos4 = t2(Y, K), V.left = S - V.left + K[0], V.top = x - V.top + K[1], V.origin = t2(v2(W, V.origin), K), V.beforeOrigin = t2(v2(W, V.beforeOrigin), K), V.originalBeforeOrigin = v2(W, V.originalBeforeOrigin), V.transformOrigin = t2(v2(W, V.transformOrigin), K), u.style.transform = "translate(".concat(-T - K[0], "px, ").concat(-R - K[1], "px)") + P, me(), this.updateState(E(E({}, V), {
14088
14088
  posDelta: K,
14089
14089
  direction: q,
14090
14090
  beforeDirection: q
@@ -14140,7 +14140,7 @@ var B7 = /* @__PURE__ */ (function(t) {
14140
14140
  var v, h, g = (h = (v = i.individualGroupableProps) === null || v === void 0 ? void 0 : v.call(i, f, p)) !== null && h !== void 0 ? h : {};
14141
14141
  return M0(ye, E({
14142
14142
  key: "moveable" + p,
14143
- ref: Ps(r, "moveables", p)
14143
+ ref: As(r, "moveables", p)
14144
14144
  }, i, g, {
14145
14145
  target: f,
14146
14146
  wrapperMoveable: r,
@@ -14210,7 +14210,7 @@ function Il(t, e) {
14210
14210
  e[n] && r.push.apply(r, N([], D(e[n]), !1));
14211
14211
  return;
14212
14212
  }
14213
- P2(n) ? r.push.apply(r, N([], D(Il(n, e)), !1)) : r.push(n);
14213
+ A2(n) ? r.push.apply(r, N([], D(Il(n, e)), !1)) : r.push(n);
14214
14214
  }
14215
14215
  }), r;
14216
14216
  }
@@ -14222,14 +14222,14 @@ function Ol(t, e) {
14222
14222
  e[n] && r.push.apply(r, N([], D(e[n]), !1));
14223
14223
  return;
14224
14224
  }
14225
- P2(n) ? r.push(Ol(n, e)) : r.push(n);
14225
+ A2(n) ? r.push(Ol(n, e)) : r.push(n);
14226
14226
  }
14227
14227
  }), r;
14228
14228
  }
14229
14229
  function Rl(t, e) {
14230
14230
  return t.length !== e.length || t.some(function(r, n) {
14231
14231
  var i = e[n];
14232
- return !r && !i ? !1 : r != i ? P2(r) && P2(i) ? Rl(r, i) : !0 : !1;
14232
+ return !r && !i ? !1 : r != i ? A2(r) && A2(i) ? Rl(r, i) : !0 : !1;
14233
14233
  });
14234
14234
  }
14235
14235
  var G7 = /* @__PURE__ */ (function(t) {
@@ -14333,7 +14333,7 @@ var G7 = /* @__PURE__ */ (function(t) {
14333
14333
  }, e.prototype._updateRefs = function(r) {
14334
14334
  var n = this.refTargets, i = Fa(this.props.target || this.props.targets), a = typeof document < "u", o = Rl(n, i), s = this.selectorMap, l = {};
14335
14335
  return this.refTargets.forEach(function u(c) {
14336
- Q2(c) ? s[c] ? l[c] = s[c] : a && (o = !0, l[c] = [].slice.call(document.querySelectorAll(c))) : P2(c) && c.forEach(u);
14336
+ Q2(c) ? s[c] ? l[c] = s[c] : a && (o = !0, l[c] = [].slice.call(document.querySelectorAll(c))) : A2(c) && c.forEach(u);
14337
14337
  }), this._tmpRefTargets = i, this._tmpSelectorMap = l, [
14338
14338
  i,
14339
14339
  l,
@@ -14396,7 +14396,7 @@ var F7 = /* @__PURE__ */ (function(t) {
14396
14396
  return r.render = function() {
14397
14397
  return M0(L7, Je({ ref: H0(this, "moveable") }, this.state));
14398
14398
  }, e;
14399
- })(_a), W7 = V7, H7 = M8, j7 = P7, Y7 = /* @__PURE__ */ (function(t) {
14399
+ })(_a), W7 = V7, H7 = M8, j7 = A7, Y7 = /* @__PURE__ */ (function(t) {
14400
14400
  Yi(e, t);
14401
14401
  function e() {
14402
14402
  return t !== null && t.apply(this, arguments) || this;
@@ -14417,7 +14417,7 @@ var F7 = /* @__PURE__ */ (function(t) {
14417
14417
  var l;
14418
14418
  i.warpSelf ? (delete i.warpSelf, a._warp = !0, l = n) : (l = we(n).createElement("div"), n.appendChild(l)), a.containerProvider = Wo(M0(F7, Je({ ref: H0(a, "innerMoveable") }, o, s)), l), a.selfElement = l;
14419
14419
  var u = o.target;
14420
- return P2(u) && u.length > 1 && a.updateRect(), a;
14420
+ return A2(u) && u.length > 1 && a.updateRect(), a;
14421
14421
  }
14422
14422
  var r = e.prototype;
14423
14423
  return r.setState = function(n, i) {
@@ -14431,14 +14431,14 @@ var F7 = /* @__PURE__ */ (function(t) {
14431
14431
  Wo(null, i, this.containerProvider), this._warp || (n = i?.parentElement) === null || n === void 0 || n.removeChild(i), this.containerProvider = null, this.off(), this.selfElement = null, this.innerMoveable = null;
14432
14432
  }, r.getMoveable = function() {
14433
14433
  return this.innerMoveable.moveable;
14434
- }, e = N7([Po(H7, function(n, i) {
14434
+ }, e = N7([Ao(H7, function(n, i) {
14435
14435
  n[i] || (n[i] = function() {
14436
14436
  for (var a = [], o = 0; o < arguments.length; o++) a[o] = arguments[o];
14437
14437
  var s = this.getMoveable();
14438
14438
  if (!(!s || !s[i]))
14439
14439
  return s[i].apply(s, a);
14440
14440
  });
14441
- }), Po(W7, function(n, i) {
14441
+ }), Ao(W7, function(n, i) {
14442
14442
  Object.defineProperty(n, i, {
14443
14443
  get: function() {
14444
14444
  return this.getMoveable().props[i];
@@ -14462,7 +14462,7 @@ var F7 = /* @__PURE__ */ (function(t) {
14462
14462
  /* Production implementation uses black (--moveable-color: #000) globally, not red for ruler */body .moveable-control-box[data-pie-tool-surface="frameless"] {--moveable-color: transparent;z-index:2003; /* ZIndexLayer.CONTROL */}[data-moveablejs-tool-id="ruler"] {z-index:2002; /* ZIndexLayer.MODAL */}`
14463
14463
  };
14464
14464
  function K7(t, e) {
14465
- A1(e, !0), _9(t, Z7);
14465
+ P1(e, !0), _9(t, Z7);
14466
14466
  let r = Eo(e, "visible", 7, !1), n = Eo(e, "toolId", 7, "ruler");
14467
14467
  const i = typeof window < "u";
14468
14468
  let a = /* @__PURE__ */ i0(void 0), o = /* @__PURE__ */ i0(null);
@@ -14524,8 +14524,8 @@ function K7(t, e) {
14524
14524
  function k(x) {
14525
14525
  if (!c || !e2(a)) return;
14526
14526
  let I = !1;
14527
- const T = x.shiftKey, R = e2(a).style.transform || "", A = new DOMMatrix(R || "none");
14528
- let P = A.e || (i ? window.innerWidth / 2 : 400), B = A.f || (i ? window.innerHeight / 2 : 300), V = Math.round(Math.atan2(A.b, A.a) * (180 / Math.PI));
14527
+ const T = x.shiftKey, R = e2(a).style.transform || "", P = new DOMMatrix(R || "none");
14528
+ let A = P.e || (i ? window.innerWidth / 2 : 400), B = P.f || (i ? window.innerHeight / 2 : 300), V = Math.round(Math.atan2(P.b, P.a) * (180 / Math.PI));
14529
14529
  switch (x.key) {
14530
14530
  case "ArrowUp":
14531
14531
  T ? (V = (V - p + 360) % 360, g(`Rotated to ${V} degrees`)) : (B -= f, g(`Moved up to ${Math.round(B)}`)), I = !0;
@@ -14534,10 +14534,10 @@ function K7(t, e) {
14534
14534
  T ? (V = (V + p) % 360, g(`Rotated to ${V} degrees`)) : (B += f, g(`Moved down to ${Math.round(B)}`)), I = !0;
14535
14535
  break;
14536
14536
  case "ArrowLeft":
14537
- T ? (V = (V - p + 360) % 360, g(`Rotated to ${V} degrees`)) : (P -= f, g(`Moved left to ${Math.round(P)}`)), I = !0;
14537
+ T ? (V = (V - p + 360) % 360, g(`Rotated to ${V} degrees`)) : (A -= f, g(`Moved left to ${Math.round(A)}`)), I = !0;
14538
14538
  break;
14539
14539
  case "ArrowRight":
14540
- T ? (V = (V + p) % 360, g(`Rotated to ${V} degrees`)) : (P += f, g(`Moved right to ${Math.round(P)}`)), I = !0;
14540
+ T ? (V = (V + p) % 360, g(`Rotated to ${V} degrees`)) : (A += f, g(`Moved right to ${Math.round(A)}`)), I = !0;
14541
14541
  break;
14542
14542
  case "PageUp":
14543
14543
  V = (V - v + 360) % 360, g(`Rotated to ${V} degrees`), I = !0;
@@ -14552,7 +14552,7 @@ function K7(t, e) {
14552
14552
  }
14553
14553
  if (I && c) {
14554
14554
  x.preventDefault();
14555
- const W = `translate(-50%, -50%) translate(${P}px, ${B}px) rotate(${V}deg)`;
14555
+ const W = `translate(-50%, -50%) translate(${A}px, ${B}px) rotate(${V}deg)`;
14556
14556
  e2(a).style.transform = W, c.updateRect();
14557
14557
  }
14558
14558
  }
@@ -14583,13 +14583,13 @@ function K7(t, e) {
14583
14583
  }, M = s9(), w = vo(M), S = (x) => {
14584
14584
  var I = U7(), T = vo(I), R = yr(T, !0);
14585
14585
  gr(T);
14586
- var A = Pn(T, 2), P = yr(A), B = yr(P), V = Pn(B, 2), W = yr(V);
14586
+ var P = An(T, 2), A = yr(P), B = yr(A), V = An(B, 2), W = yr(V);
14587
14587
  let G;
14588
- var z = Pn(W, 2);
14588
+ var z = An(W, 2);
14589
14589
  let L;
14590
- gr(V), gr(P), gr(A), x9(A, (F) => L2(a, F), () => e2(a)), Uu(() => {
14591
- d9(R, e2(l)), Ht(A, "data-moveablejs-tool-id", n()), Ht(A, "aria-label", `Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp/PageDown for fine rotation, U to toggle units. Current unit: ${e2(u) ?? ""}`), Ht(B, "src", e2(h)), Ht(B, "alt", `Ruler showing ${e2(u) ?? ""}`), G = ko(W, 1, "pie-tool-ruler__unit-button svelte-34u9fv", null, G, { "pie-tool-ruler__unit-button--active": e2(u) === "inches" }), Ht(W, "aria-pressed", e2(u) === "inches"), L = ko(z, 1, "pie-tool-ruler__unit-button svelte-34u9fv", null, L, { "pie-tool-ruler__unit-button--active": e2(u) === "cm" }), Ht(z, "aria-pressed", e2(u) === "cm");
14592
- }), De("pointerdown", A, () => e2(s)?.bringToFront(e2(a))), De("keydown", A, k), De("pointerdown", V, (F) => F.stopPropagation()), De("click", W, () => {
14590
+ gr(V), gr(A), gr(P), x9(P, (F) => L2(a, F), () => e2(a)), Uu(() => {
14591
+ d9(R, e2(l)), Ht(P, "data-moveablejs-tool-id", n()), Ht(P, "aria-label", `Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp/PageDown for fine rotation, U to toggle units. Current unit: ${e2(u) ?? ""}`), Ht(B, "src", e2(h)), Ht(B, "alt", `Ruler showing ${e2(u) ?? ""}`), G = ko(W, 1, "pie-tool-ruler__unit-button svelte-34u9fv", null, G, { "pie-tool-ruler__unit-button--active": e2(u) === "inches" }), Ht(W, "aria-pressed", e2(u) === "inches"), L = ko(z, 1, "pie-tool-ruler__unit-button svelte-34u9fv", null, L, { "pie-tool-ruler__unit-button--active": e2(u) === "cm" }), Ht(z, "aria-pressed", e2(u) === "cm");
14592
+ }), De("pointerdown", P, () => e2(s)?.bringToFront(e2(a))), De("keydown", P, k), De("pointerdown", V, (F) => F.stopPropagation()), De("click", W, () => {
14593
14593
  L2(u, "inches"), g("Switched to inches");
14594
14594
  }), De("click", z, () => {
14595
14595
  L2(u, "cm"), g("Switched to centimeters");
@@ -14597,7 +14597,7 @@ function K7(t, e) {
14597
14597
  };
14598
14598
  return m9(w, (x) => {
14599
14599
  r() && i && x(S);
14600
- }), vi(t, M), P1(b);
14600
+ }), vi(t, M), A1(b);
14601
14601
  }
14602
14602
  r9([
14603
14603
  "pointerdown",