@hprint/shared 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3,19 +3,7 @@ const Oe = class Oe {
3
3
  * 获取设备DPI(缓存结果避免重复计算)
4
4
  */
5
5
  static getDeviceDPI() {
6
- if (!this._deviceDPI)
7
- try {
8
- const o = document.createElement("div");
9
- o.style.width = "1in", o.style.height = "0", o.style.position = "absolute", o.style.visibility = "hidden", document.body.appendChild(o);
10
- const m = o.offsetWidth;
11
- document.body.removeChild(o), this._deviceDPI = m * window.devicePixelRatio || this.CONSTANTS.DEFAULT_DPI;
12
- } catch {
13
- console.warn(
14
- "无法获取设备DPI,使用默认值:",
15
- this.CONSTANTS.DEFAULT_DPI
16
- ), this._deviceDPI = this.CONSTANTS.DEFAULT_DPI;
17
- }
18
- return this._deviceDPI;
6
+ return this.CONSTANTS.DEFAULT_DPI;
19
7
  }
20
8
  /**
21
9
  * 毫米转像素
@@ -158,7 +146,7 @@ const ir = (d, o) => {
158
146
  });
159
147
  }
160
148
  return m;
161
- }, vs = { getPolygonVertices: ir };
149
+ }, _s = { getPolygonVertices: ir };
162
150
  var pe, rr = new Uint8Array(16);
163
151
  function nr() {
164
152
  if (!pe && (pe = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !pe))
@@ -198,7 +186,7 @@ const zt = () => {
198
186
  return ((m) => o[m] || (o[m] = d(m)));
199
187
  }, vi = mi((d) => d.charAt(0).toUpperCase() + d.slice(1)), mr = mi(
200
188
  (d) => d ? `on${vi(d)}` : ""
201
- ), Lt = (d, o) => !Object.is(d, o);
189
+ ), It = (d, o) => !Object.is(d, o);
202
190
  let li;
203
191
  const Pe = () => li || (li = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
204
192
  function qe(d) {
@@ -357,7 +345,7 @@ function bi(d) {
357
345
  try {
358
346
  Ci(d);
359
347
  const b = d.fn(d._value);
360
- (o.version === 0 || Lt(b, d._value)) && (d.flags |= 128, d._value = b, o.version++);
348
+ (o.version === 0 || It(b, d._value)) && (d.flags |= 128, d._value = b, o.version++);
361
349
  } catch (b) {
362
350
  throw o.version++, b;
363
351
  } finally {
@@ -756,7 +744,7 @@ class Pr extends Oi {
756
744
  S,
757
745
  St(o) ? o : b
758
746
  );
759
- return o === at(b) && (u ? Lt(S, T) && Ft(o, "set", m, S, T) : Ft(o, "add", m, S)), n;
747
+ return o === at(b) && (u ? It(S, T) && Ft(o, "set", m, S, T) : Ft(o, "add", m, S)), n;
760
748
  }
761
749
  deleteProperty(o, m) {
762
750
  const S = Xe(o, m), b = o[m], T = Reflect.deleteProperty(o, m);
@@ -831,7 +819,7 @@ function Fr(d, o) {
831
819
  const m = {
832
820
  get(b) {
833
821
  const T = this.__v_raw, F = at(T), u = at(b);
834
- d || (Lt(b, u) && _t(F, "get", b), _t(F, "get", u));
822
+ d || (It(b, u) && _t(F, "get", b), _t(F, "get", u));
835
823
  const { has: n } = me(F), l = o ? He : d ? ae : At;
836
824
  if (n.call(F, b))
837
825
  return l(T.get(b));
@@ -845,7 +833,7 @@ function Fr(d, o) {
845
833
  },
846
834
  has(b) {
847
835
  const T = this.__v_raw, F = at(T), u = at(b);
848
- return d || (Lt(b, u) && _t(F, "has", b), _t(F, "has", u)), b === u ? T.has(b) : T.has(b) || T.has(u);
836
+ return d || (It(b, u) && _t(F, "has", b), _t(F, "has", u)), b === u ? T.has(b) : T.has(b) || T.has(u);
849
837
  },
850
838
  forEach(b, T) {
851
839
  const F = this, u = F.__v_raw, n = at(u), l = o ? He : d ? ae : At;
@@ -871,7 +859,7 @@ function Fr(d, o) {
871
859
  let l = u.call(F, b);
872
860
  l ? process.env.NODE_ENV !== "production" && ui(F, u, b) : (b = at(b), l = u.call(F, b));
873
861
  const a = n.call(F, b);
874
- return F.set(b, T), l ? Lt(T, a) && Ft(F, "set", b, T, a) : Ft(F, "add", b, T), this;
862
+ return F.set(b, T), l ? It(T, a) && Ft(F, "set", b, T, a) : Ft(F, "add", b, T), this;
875
863
  },
876
864
  delete(b) {
877
865
  const T = at(this), { has: F, get: u } = me(T);
@@ -908,9 +896,9 @@ function Ei(d, o) {
908
896
  T
909
897
  );
910
898
  }
911
- const Ir = {
899
+ const Lr = {
912
900
  get: /* @__PURE__ */ Ei(!1, !1)
913
- }, Lr = {
901
+ }, Ir = {
914
902
  get: /* @__PURE__ */ Ei(!0, !1)
915
903
  };
916
904
  function ui(d, o, m) {
@@ -945,7 +933,7 @@ function Ai(d) {
945
933
  d,
946
934
  !1,
947
935
  Ar,
948
- Ir,
936
+ Lr,
949
937
  Pi
950
938
  );
951
939
  }
@@ -954,7 +942,7 @@ function oe(d) {
954
942
  d,
955
943
  !0,
956
944
  kr,
957
- Lr,
945
+ Ir,
958
946
  Di
959
947
  );
960
948
  }
@@ -1018,7 +1006,7 @@ class Wr {
1018
1006
  }
1019
1007
  set value(o) {
1020
1008
  const m = this._rawValue, S = this.__v_isShallow || Ct(o) || Ot(o);
1021
- o = S ? o : at(o), Lt(o, m) && (this._rawValue = o, this._value = S ? o : At(o), process.env.NODE_ENV !== "production" ? this.dep.trigger({
1009
+ o = S ? o : at(o), It(o, m) && (this._rawValue = o, this._value = S ? o : At(o), process.env.NODE_ENV !== "production" ? this.dep.trigger({
1022
1010
  target: this,
1023
1011
  type: "set",
1024
1012
  key: "value",
@@ -1078,7 +1066,7 @@ function Ur(d, o, m = re) {
1078
1066
  p,
1079
1067
  "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
1080
1068
  );
1081
- }, a = (p) => b ? p : Ct(p) || b === !1 || b === 0 ? It(p, 1) : It(p);
1069
+ }, a = (p) => b ? p : Ct(p) || b === !1 || b === 0 ? Lt(p, 1) : Lt(p);
1082
1070
  let t, i, e, s, h = !1, r = !1;
1083
1071
  if (St(d) ? (i = () => d.value, h = Ct(d)) : Gt(d) ? (i = () => a(d), h = !0) : dt(d) ? (r = !0, h = d.some((p) => Gt(p) || Ct(p)), i = () => d.map((p) => {
1084
1072
  if (St(p))
@@ -1106,7 +1094,7 @@ function Ur(d, o, m = re) {
1106
1094
  }
1107
1095
  } : (i = zt, process.env.NODE_ENV !== "production" && l(d)), o && b) {
1108
1096
  const p = i, v = b === !0 ? 1 / 0 : b;
1109
- i = () => It(p(), v);
1097
+ i = () => Lt(p(), v);
1110
1098
  }
1111
1099
  const c = () => {
1112
1100
  t.stop();
@@ -1122,7 +1110,7 @@ function Ur(d, o, m = re) {
1122
1110
  if (!(!(t.flags & 1) || !t.dirty && !p))
1123
1111
  if (o) {
1124
1112
  const v = t.run();
1125
- if (b || h || (r ? v.some((_, x) => Lt(_, f[x])) : Lt(v, f))) {
1113
+ if (b || h || (r ? v.some((_, x) => It(_, f[x])) : It(v, f))) {
1126
1114
  e && e();
1127
1115
  const _ = Nt;
1128
1116
  Nt = t;
@@ -1155,23 +1143,23 @@ function Ur(d, o, m = re) {
1155
1143
  }
1156
1144
  }, process.env.NODE_ENV !== "production" && (t.onTrack = m.onTrack, t.onTrigger = m.onTrigger), o ? S ? g(!0) : f = t.run() : F ? F(g.bind(null, !0), !0) : t.run(), c.pause = t.pause.bind(t), c.resume = t.resume.bind(t), c.stop = c, c;
1157
1145
  }
1158
- function It(d, o = 1 / 0, m) {
1146
+ function Lt(d, o = 1 / 0, m) {
1159
1147
  if (o <= 0 || !yt(d) || d.__v_skip || (m = m || /* @__PURE__ */ new Map(), (m.get(d) || 0) >= o))
1160
1148
  return d;
1161
1149
  if (m.set(d, o), o--, St(d))
1162
- It(d.value, o, m);
1150
+ Lt(d.value, o, m);
1163
1151
  else if (dt(d))
1164
1152
  for (let S = 0; S < d.length; S++)
1165
- It(d[S], o, m);
1153
+ Lt(d[S], o, m);
1166
1154
  else if (fr(d) || Ut(d))
1167
1155
  d.forEach((S) => {
1168
- It(S, o, m);
1156
+ Lt(S, o, m);
1169
1157
  });
1170
1158
  else if (pr(d)) {
1171
1159
  for (const S in d)
1172
- It(d[S], o, m);
1160
+ Lt(d[S], o, m);
1173
1161
  for (const S of Object.getOwnPropertySymbols(d))
1174
- Object.prototype.propertyIsEnumerable.call(d, S) && It(d[S], o, m);
1162
+ Object.prototype.propertyIsEnumerable.call(d, S) && Lt(d[S], o, m);
1175
1163
  }
1176
1164
  return d;
1177
1165
  }
@@ -1182,10 +1170,10 @@ function Gr(d) {
1182
1170
  function qr() {
1183
1171
  Wt.pop();
1184
1172
  }
1185
- let Ie = !1;
1173
+ let Le = !1;
1186
1174
  function pt(d, ...o) {
1187
- if (Ie) return;
1188
- Ie = !0, Kt();
1175
+ if (Le) return;
1176
+ Le = !0, Kt();
1189
1177
  const m = Wt.length ? Wt[Wt.length - 1].component : null, S = m && m.appContext.config.warnHandler, b = Kr();
1190
1178
  if (S)
1191
1179
  De(
@@ -1211,7 +1199,7 @@ function pt(d, ...o) {
1211
1199
  b.length && T.push(`
1212
1200
  `, ...Jr(b)), console.warn(...T);
1213
1201
  }
1214
- Jt(), Ie = !1;
1202
+ Jt(), Le = !1;
1215
1203
  }
1216
1204
  function Kr() {
1217
1205
  let d = Wt[Wt.length - 1];
@@ -1365,14 +1353,14 @@ function Fi(d) {
1365
1353
  if (!(d.flags & 1)) {
1366
1354
  const o = le(d), m = bt[bt.length - 1];
1367
1355
  !m || // fast path when the job id is larger than the tail
1368
- !(d.flags & 2) && o >= le(m) ? bt.push(d) : bt.splice(rn(o), 0, d), d.flags |= 1, Ii();
1356
+ !(d.flags & 2) && o >= le(m) ? bt.push(d) : bt.splice(rn(o), 0, d), d.flags |= 1, Li();
1369
1357
  }
1370
1358
  }
1371
- function Ii() {
1359
+ function Li() {
1372
1360
  ze || (ze = tn.then(Ri));
1373
1361
  }
1374
- function Li(d) {
1375
- dt(d) ? qt.push(...d) : Mt && d.id === -1 ? Mt.splice(Yt + 1, 0, d) : d.flags & 1 || (qt.push(d), d.flags |= 1), Ii();
1362
+ function Ii(d) {
1363
+ dt(d) ? qt.push(...d) : Mt && d.id === -1 ? Mt.splice(Yt + 1, 0, d) : d.flags & 1 || (qt.push(d), d.flags |= 1), Li();
1376
1364
  }
1377
1365
  function nn(d) {
1378
1366
  if (qt.length) {
@@ -1427,7 +1415,7 @@ function ji(d, o) {
1427
1415
  }
1428
1416
  return d.set(o, m + 1), !1;
1429
1417
  }
1430
- const Le = /* @__PURE__ */ new Map();
1418
+ const Ie = /* @__PURE__ */ new Map();
1431
1419
  process.env.NODE_ENV !== "production" && (Pe().__VUE_HMR_RUNTIME__ = {
1432
1420
  createRecord: Re(sn),
1433
1421
  rerender: Re(on),
@@ -1456,15 +1444,15 @@ function an(d, o) {
1456
1444
  const S = [...m.instances];
1457
1445
  for (let b = 0; b < S.length; b++) {
1458
1446
  const T = S[b], F = we(T.type);
1459
- let u = Le.get(F);
1460
- u || (F !== m.initialDef && fi(F, o), Le.set(F, u = /* @__PURE__ */ new Set())), u.add(T), T.appContext.propsCache.delete(T.type), T.appContext.emitsCache.delete(T.type), T.appContext.optionsCache.delete(T.type), T.ceReload ? (u.add(T), T.ceReload(o.styles), u.delete(T)) : T.parent ? Fi(() => {
1447
+ let u = Ie.get(F);
1448
+ u || (F !== m.initialDef && fi(F, o), Ie.set(F, u = /* @__PURE__ */ new Set())), u.add(T), T.appContext.propsCache.delete(T.type), T.appContext.emitsCache.delete(T.type), T.appContext.optionsCache.delete(T.type), T.ceReload ? (u.add(T), T.ceReload(o.styles), u.delete(T)) : T.parent ? Fi(() => {
1461
1449
  T.job.flags & 8 || (T.parent.update(), u.delete(T));
1462
1450
  }) : T.appContext.reload ? T.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1463
1451
  "[HMR] Root or manually mounted instance modified. Full reload required."
1464
1452
  ), T.root.ce && T !== T.root && T.root.ce._removeChildStyle(F);
1465
1453
  }
1466
- Li(() => {
1467
- Le.clear();
1454
+ Ii(() => {
1455
+ Ie.clear();
1468
1456
  });
1469
1457
  }
1470
1458
  function fi(d, o) {
@@ -1586,7 +1574,7 @@ function yn(d, o, m = re) {
1586
1574
  }
1587
1575
  const Cn = {}, Wi = (d) => Object.getPrototypeOf(d) === Cn, Sn = xn, bn = (d) => d.__isSuspense;
1588
1576
  function xn(d, o) {
1589
- o && o.pendingBranch ? dt(d) ? o.effects.push(...d) : o.effects.push(d) : Li(d);
1577
+ o && o.pendingBranch ? dt(d) ? o.effects.push(...d) : o.effects.push(d) : Ii(d);
1590
1578
  }
1591
1579
  const Vi = Symbol.for("v-fgt"), wn = Symbol.for("v-txt"), Tn = Symbol.for("v-cmt");
1592
1580
  function On(d) {
@@ -1783,7 +1771,7 @@ const Fn = (d) => {
1783
1771
  };
1784
1772
  let ce = !1;
1785
1773
  process.env.NODE_ENV;
1786
- const In = /(?:^|[-_])\w/g, Ln = (d) => d.replace(In, (o) => o.toUpperCase()).replace(/[-_]/g, "");
1774
+ const Ln = /(?:^|[-_])\w/g, In = (d) => d.replace(Ln, (o) => o.toUpperCase()).replace(/[-_]/g, "");
1787
1775
  function Ui(d, o = !0) {
1788
1776
  return mt(d) ? d.displayName || d.name : d.name || o && d.__name;
1789
1777
  }
@@ -1803,7 +1791,7 @@ function Gi(d, o, m = !1) {
1803
1791
  d.parent.type.components
1804
1792
  ) || b(d.appContext.components);
1805
1793
  }
1806
- return S ? Ln(S) : m ? "App" : "Anonymous";
1794
+ return S ? In(S) : m ? "App" : "Anonymous";
1807
1795
  }
1808
1796
  function qi(d) {
1809
1797
  return mt(d) && "__vccOpts" in d;
@@ -3472,8 +3460,8 @@ function ns() {
3472
3460
  m: "l",
3473
3461
  M: "L"
3474
3462
  };
3475
- function a(y, E, P, O, I, w, C, A, M, N, L) {
3476
- var Y = o.util.cos(y), U = o.util.sin(y), J = o.util.cos(E), R = o.util.sin(E), k = P * I * J - O * w * R + C, W = O * I * J + P * w * R + A, V = N + M * (-P * I * U - O * w * Y), j = L + M * (-O * I * U + P * w * Y), H = k + M * (P * I * R + O * w * J), $ = W + M * (O * I * R - P * w * J);
3463
+ function a(y, E, P, O, L, w, C, A, M, N, I) {
3464
+ var Y = o.util.cos(y), U = o.util.sin(y), J = o.util.cos(E), R = o.util.sin(E), k = P * L * J - O * w * R + C, W = O * L * J + P * w * R + A, V = N + M * (-P * L * U - O * w * Y), j = I + M * (-O * L * U + P * w * Y), H = k + M * (P * L * R + O * w * J), $ = W + M * (O * L * R - P * w * J);
3477
3465
  return [
3478
3466
  "C",
3479
3467
  V,
@@ -3484,31 +3472,31 @@ function ns() {
3484
3472
  W
3485
3473
  ];
3486
3474
  }
3487
- function t(y, E, P, O, I, w, C) {
3488
- var A = Math.PI, M = C * A / 180, N = o.util.sin(M), L = o.util.cos(M), Y = 0, U = 0;
3475
+ function t(y, E, P, O, L, w, C) {
3476
+ var A = Math.PI, M = C * A / 180, N = o.util.sin(M), I = o.util.cos(M), Y = 0, U = 0;
3489
3477
  P = Math.abs(P), O = Math.abs(O);
3490
- var J = -L * y * 0.5 - N * E * 0.5, R = -L * E * 0.5 + N * y * 0.5, k = P * P, W = O * O, V = R * R, j = J * J, H = k * W - k * V - W * j, $ = 0;
3478
+ var J = -I * y * 0.5 - N * E * 0.5, R = -I * E * 0.5 + N * y * 0.5, k = P * P, W = O * O, V = R * R, j = J * J, H = k * W - k * V - W * j, $ = 0;
3491
3479
  if (H < 0) {
3492
3480
  var st = Math.sqrt(1 - H / (k * W));
3493
3481
  P *= st, O *= st;
3494
3482
  } else
3495
- $ = (I === w ? -1 : 1) * Math.sqrt(H / (k * V + W * j));
3496
- var rt = $ * P * R / O, X = -$ * O * J / P, nt = L * rt - N * X + y * 0.5, ot = N * rt + L * X + E * 0.5, lt = i(1, 0, (J - rt) / P, (R - X) / O), ut = i((J - rt) / P, (R - X) / O, (-J - rt) / P, (-R - X) / O);
3483
+ $ = (L === w ? -1 : 1) * Math.sqrt(H / (k * V + W * j));
3484
+ var rt = $ * P * R / O, X = -$ * O * J / P, nt = I * rt - N * X + y * 0.5, ot = N * rt + I * X + E * 0.5, lt = i(1, 0, (J - rt) / P, (R - X) / O), ut = i((J - rt) / P, (R - X) / O, (-J - rt) / P, (-R - X) / O);
3497
3485
  w === 0 && ut > 0 ? ut -= 2 * A : w === 1 && ut < 0 && (ut += 2 * A);
3498
3486
  for (var ct = Math.ceil(Math.abs(ut / A * 2)), vt = [], ft = ut / ct, Bt = 8 / 3 * Math.sin(ft / 4) * Math.sin(ft / 4) / Math.sin(ft / 2), Qt = lt + ft, wt = 0; wt < ct; wt++)
3499
- vt[wt] = a(lt, Qt, L, N, P, O, nt, ot, Bt, Y, U), Y = vt[wt][5], U = vt[wt][6], lt = Qt, Qt += ft;
3487
+ vt[wt] = a(lt, Qt, I, N, P, O, nt, ot, Bt, Y, U), Y = vt[wt][5], U = vt[wt][6], lt = Qt, Qt += ft;
3500
3488
  return vt;
3501
3489
  }
3502
3490
  function i(y, E, P, O) {
3503
- var I = Math.atan2(E, y), w = Math.atan2(O, P);
3504
- return w >= I ? w - I : 2 * Math.PI - (I - w);
3491
+ var L = Math.atan2(E, y), w = Math.atan2(O, P);
3492
+ return w >= L ? w - L : 2 * Math.PI - (L - w);
3505
3493
  }
3506
- function e(y, E, P, O, I, w, C, A) {
3494
+ function e(y, E, P, O, L, w, C, A) {
3507
3495
  var M;
3508
3496
  if (o.cachesBoundsOfCurve && (M = u.call(arguments), o.boundsOfCurveCache[M]))
3509
3497
  return o.boundsOfCurveCache[M];
3510
- var N = Math.sqrt, L = Math.min, Y = Math.max, U = Math.abs, J = [], R = [[], []], k, W, V, j, H, $, st, rt;
3511
- W = 6 * y - 12 * P + 6 * I, k = -3 * y + 9 * P - 9 * I + 3 * C, V = 3 * P - 3 * y;
3498
+ var N = Math.sqrt, I = Math.min, Y = Math.max, U = Math.abs, J = [], R = [[], []], k, W, V, j, H, $, st, rt;
3499
+ W = 6 * y - 12 * P + 6 * L, k = -3 * y + 9 * P - 9 * L + 3 * C, V = 3 * P - 3 * y;
3512
3500
  for (var X = 0; X < 2; ++X) {
3513
3501
  if (X > 0 && (W = 6 * E - 12 * O + 6 * w, k = -3 * E + 9 * O - 9 * w + 3 * A, V = 3 * O - 3 * E), U(k) < 1e-12) {
3514
3502
  if (U(W) < 1e-12)
@@ -3519,12 +3507,12 @@ function ns() {
3519
3507
  st = W * W - 4 * V * k, !(st < 0) && (rt = N(st), H = (-W + rt) / (2 * k), 0 < H && H < 1 && J.push(H), $ = (-W - rt) / (2 * k), 0 < $ && $ < 1 && J.push($));
3520
3508
  }
3521
3509
  for (var nt, ot, lt = J.length, ut = lt, ct; lt--; )
3522
- j = J[lt], ct = 1 - j, nt = ct * ct * ct * y + 3 * ct * ct * j * P + 3 * ct * j * j * I + j * j * j * C, R[0][lt] = nt, ot = ct * ct * ct * E + 3 * ct * ct * j * O + 3 * ct * j * j * w + j * j * j * A, R[1][lt] = ot;
3510
+ j = J[lt], ct = 1 - j, nt = ct * ct * ct * y + 3 * ct * ct * j * P + 3 * ct * j * j * L + j * j * j * C, R[0][lt] = nt, ot = ct * ct * ct * E + 3 * ct * ct * j * O + 3 * ct * j * j * w + j * j * j * A, R[1][lt] = ot;
3523
3511
  R[0][ut] = y, R[1][ut] = E, R[0][ut + 1] = C, R[1][ut + 1] = A;
3524
3512
  var vt = [
3525
3513
  {
3526
- x: L.apply(null, R[0]),
3527
- y: L.apply(null, R[1])
3514
+ x: I.apply(null, R[0]),
3515
+ y: I.apply(null, R[1])
3528
3516
  },
3529
3517
  {
3530
3518
  x: Y.apply(null, R[0]),
@@ -3534,12 +3522,12 @@ function ns() {
3534
3522
  return o.cachesBoundsOfCurve && (o.boundsOfCurveCache[M] = vt), vt;
3535
3523
  }
3536
3524
  function s(y, E, P) {
3537
- for (var O = P[1], I = P[2], w = P[3], C = P[4], A = P[5], M = P[6], N = P[7], L = t(M - y, N - E, O, I, C, A, w), Y = 0, U = L.length; Y < U; Y++)
3538
- L[Y][1] += y, L[Y][2] += E, L[Y][3] += y, L[Y][4] += E, L[Y][5] += y, L[Y][6] += E;
3539
- return L;
3525
+ for (var O = P[1], L = P[2], w = P[3], C = P[4], A = P[5], M = P[6], N = P[7], I = t(M - y, N - E, O, L, C, A, w), Y = 0, U = I.length; Y < U; Y++)
3526
+ I[Y][1] += y, I[Y][2] += E, I[Y][3] += y, I[Y][4] += E, I[Y][5] += y, I[Y][6] += E;
3527
+ return I;
3540
3528
  }
3541
3529
  function h(y) {
3542
- var E = 0, P = 0, O = y.length, I = 0, w = 0, C, A, M, N = [], L, Y, U;
3530
+ var E = 0, P = 0, O = y.length, L = 0, w = 0, C, A, M, N = [], I, Y, U;
3543
3531
  for (A = 0; A < O; ++A) {
3544
3532
  switch (M = !1, C = y[A].slice(0), C[0]) {
3545
3533
  // first letter
@@ -3565,7 +3553,7 @@ function ns() {
3565
3553
  C[0] = "M", C[1] += E, C[2] += P;
3566
3554
  // falls through
3567
3555
  case "M":
3568
- E = C[1], P = C[2], I = C[1], w = C[2];
3556
+ E = C[1], P = C[2], L = C[1], w = C[2];
3569
3557
  break;
3570
3558
  case "c":
3571
3559
  C[0] = "C", C[1] += E, C[2] += P, C[3] += E, C[4] += P, C[5] += E, C[6] += P;
@@ -3577,7 +3565,7 @@ function ns() {
3577
3565
  C[0] = "S", C[1] += E, C[2] += P, C[3] += E, C[4] += P;
3578
3566
  // falls through
3579
3567
  case "S":
3580
- L === "C" ? (Y = 2 * E - Y, U = 2 * P - U) : (Y = E, U = P), E = C[3], P = C[4], C[0] = "C", C[5] = C[3], C[6] = C[4], C[3] = C[1], C[4] = C[2], C[1] = Y, C[2] = U, Y = C[3], U = C[4];
3568
+ I === "C" ? (Y = 2 * E - Y, U = 2 * P - U) : (Y = E, U = P), E = C[3], P = C[4], C[0] = "C", C[5] = C[3], C[6] = C[4], C[3] = C[1], C[4] = C[2], C[1] = Y, C[2] = U, Y = C[3], U = C[4];
3581
3569
  break;
3582
3570
  case "q":
3583
3571
  C[0] = "Q", C[1] += E, C[2] += P, C[3] += E, C[4] += P;
@@ -3589,7 +3577,7 @@ function ns() {
3589
3577
  C[0] = "T", C[1] += E, C[2] += P;
3590
3578
  // falls through
3591
3579
  case "T":
3592
- L === "Q" ? (Y = 2 * E - Y, U = 2 * P - U) : (Y = E, U = P), C[0] = "Q", E = C[1], P = C[2], C[1] = Y, C[2] = U, C[3] = E, C[4] = P;
3580
+ I === "Q" ? (Y = 2 * E - Y, U = 2 * P - U) : (Y = E, U = P), C[0] = "Q", E = C[1], P = C[2], C[1] = Y, C[2] = U, C[3] = E, C[4] = P;
3593
3581
  break;
3594
3582
  case "a":
3595
3583
  C[0] = "A", C[6] += E, C[7] += P;
@@ -3599,10 +3587,10 @@ function ns() {
3599
3587
  break;
3600
3588
  case "z":
3601
3589
  case "Z":
3602
- E = I, P = w;
3590
+ E = L, P = w;
3603
3591
  break;
3604
3592
  }
3605
- M || N.push(C), L = C[0];
3593
+ M || N.push(C), I = C[0];
3606
3594
  }
3607
3595
  return N;
3608
3596
  }
@@ -3621,19 +3609,19 @@ function ns() {
3621
3609
  function p(y) {
3622
3610
  return (1 - y) * (1 - y) * (1 - y);
3623
3611
  }
3624
- function v(y, E, P, O, I, w, C, A) {
3612
+ function v(y, E, P, O, L, w, C, A) {
3625
3613
  return function(M) {
3626
- var N = c(M), L = f(M), Y = g(M), U = p(M);
3614
+ var N = c(M), I = f(M), Y = g(M), U = p(M);
3627
3615
  return {
3628
- x: C * N + I * L + P * Y + y * U,
3629
- y: A * N + w * L + O * Y + E * U
3616
+ x: C * N + L * I + P * Y + y * U,
3617
+ y: A * N + w * I + O * Y + E * U
3630
3618
  };
3631
3619
  };
3632
3620
  }
3633
- function _(y, E, P, O, I, w, C, A) {
3621
+ function _(y, E, P, O, L, w, C, A) {
3634
3622
  return function(M) {
3635
- var N = 1 - M, L = 3 * N * N * (P - y) + 6 * N * M * (I - P) + 3 * M * M * (C - I), Y = 3 * N * N * (O - E) + 6 * N * M * (w - O) + 3 * M * M * (A - w);
3636
- return Math.atan2(Y, L);
3623
+ var N = 1 - M, I = 3 * N * N * (P - y) + 6 * N * M * (L - P) + 3 * M * M * (C - L), Y = 3 * N * N * (O - E) + 6 * N * M * (w - O) + 3 * M * M * (A - w);
3624
+ return Math.atan2(Y, I);
3637
3625
  };
3638
3626
  }
3639
3627
  function x(y) {
@@ -3645,49 +3633,49 @@ function ns() {
3645
3633
  function B(y) {
3646
3634
  return (1 - y) * (1 - y);
3647
3635
  }
3648
- function z(y, E, P, O, I, w) {
3636
+ function z(y, E, P, O, L, w) {
3649
3637
  return function(C) {
3650
3638
  var A = x(C), M = D(C), N = B(C);
3651
3639
  return {
3652
- x: I * A + P * M + y * N,
3640
+ x: L * A + P * M + y * N,
3653
3641
  y: w * A + O * M + E * N
3654
3642
  };
3655
3643
  };
3656
3644
  }
3657
- function G(y, E, P, O, I, w) {
3645
+ function G(y, E, P, O, L, w) {
3658
3646
  return function(C) {
3659
- var A = 1 - C, M = 2 * A * (P - y) + 2 * C * (I - P), N = 2 * A * (O - E) + 2 * C * (w - O);
3647
+ var A = 1 - C, M = 2 * A * (P - y) + 2 * C * (L - P), N = 2 * A * (O - E) + 2 * C * (w - O);
3660
3648
  return Math.atan2(N, M);
3661
3649
  };
3662
3650
  }
3663
3651
  function Q(y, E, P) {
3664
- var O = { x: E, y: P }, I, w = 0, C;
3652
+ var O = { x: E, y: P }, L, w = 0, C;
3665
3653
  for (C = 1; C <= 100; C += 1)
3666
- I = y(C / 100), w += r(O.x, O.y, I.x, I.y), O = I;
3654
+ L = y(C / 100), w += r(O.x, O.y, L.x, L.y), O = L;
3667
3655
  return w;
3668
3656
  }
3669
3657
  function Z(y, E) {
3670
- for (var P = 0, O = 0, I = y.iterator, w = { x: y.x, y: y.y }, C, A, M = 0.01, N = y.angleFinder, L; O < E && M > 1e-4; )
3671
- C = I(P), L = P, A = r(w.x, w.y, C.x, C.y), A + O > E ? (P -= M, M /= 2) : (w = C, P += M, O += A);
3672
- return C.angle = N(L), C;
3658
+ for (var P = 0, O = 0, L = y.iterator, w = { x: y.x, y: y.y }, C, A, M = 0.01, N = y.angleFinder, I; O < E && M > 1e-4; )
3659
+ C = L(P), I = P, A = r(w.x, w.y, C.x, C.y), A + O > E ? (P -= M, M /= 2) : (w = C, P += M, O += A);
3660
+ return C.angle = N(I), C;
3673
3661
  }
3674
3662
  function q(y) {
3675
- for (var E = 0, P = y.length, O, I = 0, w = 0, C = 0, A = 0, M = [], N, L, Y, U = 0; U < P; U++) {
3676
- switch (O = y[U], L = {
3677
- x: I,
3663
+ for (var E = 0, P = y.length, O, L = 0, w = 0, C = 0, A = 0, M = [], N, I, Y, U = 0; U < P; U++) {
3664
+ switch (O = y[U], I = {
3665
+ x: L,
3678
3666
  y: w,
3679
3667
  command: O[0]
3680
3668
  }, O[0]) {
3681
3669
  //first letter
3682
3670
  case "M":
3683
- L.length = 0, C = I = O[1], A = w = O[2];
3671
+ I.length = 0, C = L = O[1], A = w = O[2];
3684
3672
  break;
3685
3673
  case "L":
3686
- L.length = r(I, w, O[1], O[2]), I = O[1], w = O[2];
3674
+ I.length = r(L, w, O[1], O[2]), L = O[1], w = O[2];
3687
3675
  break;
3688
3676
  case "C":
3689
3677
  N = v(
3690
- I,
3678
+ L,
3691
3679
  w,
3692
3680
  O[1],
3693
3681
  O[2],
@@ -3696,7 +3684,7 @@ function ns() {
3696
3684
  O[5],
3697
3685
  O[6]
3698
3686
  ), Y = _(
3699
- I,
3687
+ L,
3700
3688
  w,
3701
3689
  O[1],
3702
3690
  O[2],
@@ -3704,61 +3692,61 @@ function ns() {
3704
3692
  O[4],
3705
3693
  O[5],
3706
3694
  O[6]
3707
- ), L.iterator = N, L.angleFinder = Y, L.length = Q(N, I, w), I = O[5], w = O[6];
3695
+ ), I.iterator = N, I.angleFinder = Y, I.length = Q(N, L, w), L = O[5], w = O[6];
3708
3696
  break;
3709
3697
  case "Q":
3710
3698
  N = z(
3711
- I,
3699
+ L,
3712
3700
  w,
3713
3701
  O[1],
3714
3702
  O[2],
3715
3703
  O[3],
3716
3704
  O[4]
3717
3705
  ), Y = G(
3718
- I,
3706
+ L,
3719
3707
  w,
3720
3708
  O[1],
3721
3709
  O[2],
3722
3710
  O[3],
3723
3711
  O[4]
3724
- ), L.iterator = N, L.angleFinder = Y, L.length = Q(N, I, w), I = O[3], w = O[4];
3712
+ ), I.iterator = N, I.angleFinder = Y, I.length = Q(N, L, w), L = O[3], w = O[4];
3725
3713
  break;
3726
3714
  case "Z":
3727
3715
  case "z":
3728
- L.destX = C, L.destY = A, L.length = r(I, w, C, A), I = C, w = A;
3716
+ I.destX = C, I.destY = A, I.length = r(L, w, C, A), L = C, w = A;
3729
3717
  break;
3730
3718
  }
3731
- E += L.length, M.push(L);
3719
+ E += I.length, M.push(I);
3732
3720
  }
3733
- return M.push({ length: E, x: I, y: w }), M;
3721
+ return M.push({ length: E, x: L, y: w }), M;
3734
3722
  }
3735
3723
  function K(y, E, P) {
3736
3724
  P || (P = q(y));
3737
3725
  for (var O = 0; E - P[O].length > 0 && O < P.length - 2; )
3738
3726
  E -= P[O].length, O++;
3739
- var I = P[O], w = E / I.length, C = I.command, A = y[O], M;
3727
+ var L = P[O], w = E / L.length, C = L.command, A = y[O], M;
3740
3728
  switch (C) {
3741
3729
  case "M":
3742
- return { x: I.x, y: I.y, angle: 0 };
3730
+ return { x: L.x, y: L.y, angle: 0 };
3743
3731
  case "Z":
3744
3732
  case "z":
3745
- return M = new o.Point(I.x, I.y).lerp(
3746
- new o.Point(I.destX, I.destY),
3733
+ return M = new o.Point(L.x, L.y).lerp(
3734
+ new o.Point(L.destX, L.destY),
3747
3735
  w
3748
- ), M.angle = Math.atan2(I.destY - I.y, I.destX - I.x), M;
3736
+ ), M.angle = Math.atan2(L.destY - L.y, L.destX - L.x), M;
3749
3737
  case "L":
3750
- return M = new o.Point(I.x, I.y).lerp(
3738
+ return M = new o.Point(L.x, L.y).lerp(
3751
3739
  new o.Point(A[1], A[2]),
3752
3740
  w
3753
- ), M.angle = Math.atan2(A[2] - I.y, A[1] - I.x), M;
3741
+ ), M.angle = Math.atan2(A[2] - L.y, A[1] - L.x), M;
3754
3742
  case "C":
3755
- return Z(I, E);
3743
+ return Z(L, E);
3756
3744
  case "Q":
3757
- return Z(I, E);
3745
+ return Z(L, E);
3758
3746
  }
3759
3747
  }
3760
3748
  function tt(y) {
3761
- var E = [], P = [], O, I, w = o.rePathCommand, C = "[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*", A = "(" + C + ")" + o.commaWsp, M = "([01])" + o.commaWsp + "?", N = A + "?" + A + "?" + A + M + M + A + "?(" + C + ")", L = new RegExp(N, "g"), Y, U, J;
3749
+ var E = [], P = [], O, L, w = o.rePathCommand, C = "[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*", A = "(" + C + ")" + o.commaWsp, M = "([01])" + o.commaWsp + "?", N = A + "?" + A + "?" + A + M + M + A + "?(" + C + ")", I = new RegExp(N, "g"), Y, U, J;
3762
3750
  if (!y || !y.match)
3763
3751
  return E;
3764
3752
  J = y.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);
@@ -3766,14 +3754,14 @@ function ns() {
3766
3754
  O = J[R], U = O.slice(1).trim(), P.length = 0;
3767
3755
  var V = O.charAt(0);
3768
3756
  if (k = [V], V.toLowerCase() === "a")
3769
- for (var j; j = L.exec(U); )
3757
+ for (var j; j = I.exec(U); )
3770
3758
  for (var H = 1; H < j.length; H++)
3771
3759
  P.push(j[H]);
3772
3760
  else
3773
3761
  for (; Y = w.exec(U); )
3774
3762
  P.push(Y[0]);
3775
3763
  for (var H = 0, $ = P.length; H < $; H++)
3776
- I = parseFloat(P[H]), isNaN(I) || k.push(I);
3764
+ L = parseFloat(P[H]), isNaN(L) || k.push(L);
3777
3765
  var st = n[V.toLowerCase()], rt = l[V] || V;
3778
3766
  if (k.length - 1 > st)
3779
3767
  for (var X = 1, nt = k.length; X < nt; X += st)
@@ -3784,24 +3772,24 @@ function ns() {
3784
3772
  return E;
3785
3773
  }
3786
3774
  function it(y, E) {
3787
- var P = [], O, I = new o.Point(y[0].x, y[0].y), w = new o.Point(y[1].x, y[1].y), C = y.length, A = 1, M = 0, N = C > 2;
3788
- for (E = E || 0, N && (A = y[2].x < w.x ? -1 : y[2].x === w.x ? 0 : 1, M = y[2].y < w.y ? -1 : y[2].y === w.y ? 0 : 1), P.push(["M", I.x - A * E, I.y - M * E]), O = 1; O < C; O++) {
3789
- if (!I.eq(w)) {
3790
- var L = I.midPointFrom(w);
3791
- P.push(["Q", I.x, I.y, L.x, L.y]);
3775
+ var P = [], O, L = new o.Point(y[0].x, y[0].y), w = new o.Point(y[1].x, y[1].y), C = y.length, A = 1, M = 0, N = C > 2;
3776
+ for (E = E || 0, N && (A = y[2].x < w.x ? -1 : y[2].x === w.x ? 0 : 1, M = y[2].y < w.y ? -1 : y[2].y === w.y ? 0 : 1), P.push(["M", L.x - A * E, L.y - M * E]), O = 1; O < C; O++) {
3777
+ if (!L.eq(w)) {
3778
+ var I = L.midPointFrom(w);
3779
+ P.push(["Q", L.x, L.y, I.x, I.y]);
3792
3780
  }
3793
- I = y[O], O + 1 < y.length && (w = y[O + 1]);
3781
+ L = y[O], O + 1 < y.length && (w = y[O + 1]);
3794
3782
  }
3795
- return N && (A = I.x > y[O - 2].x ? 1 : I.x === y[O - 2].x ? 0 : -1, M = I.y > y[O - 2].y ? 1 : I.y === y[O - 2].y ? 0 : -1), P.push(["L", I.x + A * E, I.y + M * E]), P;
3783
+ return N && (A = L.x > y[O - 2].x ? 1 : L.x === y[O - 2].x ? 0 : -1, M = L.y > y[O - 2].y ? 1 : L.y === y[O - 2].y ? 0 : -1), P.push(["L", L.x + A * E, L.y + M * E]), P;
3796
3784
  }
3797
3785
  function et(y, E, P) {
3798
3786
  return P && (E = o.util.multiplyTransformMatrices(
3799
3787
  E,
3800
3788
  [1, 0, 0, 1, -P.x, -P.y]
3801
3789
  )), y.map(function(O) {
3802
- for (var I = O.slice(0), w = {}, C = 1; C < O.length - 1; C += 2)
3803
- w.x = O[C], w.y = O[C + 1], w = o.util.transformPoint(w, E), I[C] = w.x, I[C + 1] = w.y;
3804
- return I;
3790
+ for (var L = O.slice(0), w = {}, C = 1; C < O.length - 1; C += 2)
3791
+ w.x = O[C], w.y = O[C + 1], w = o.util.transformPoint(w, E), L[C] = w.x, L[C + 1] = w.y;
3792
+ return L;
3805
3793
  });
3806
3794
  }
3807
3795
  o.util.joinPath = function(y) {
@@ -4203,9 +4191,9 @@ function ns() {
4203
4191
  B = y || +/* @__PURE__ */ new Date();
4204
4192
  var E = B > D ? x : B - _, P = E / x, O = q ? K.map(function(w, C) {
4205
4193
  return Z(E, K[C], it[C], x);
4206
- }) : Z(E, K, it, x), I = Math.abs(q ? (O[0] - K[0]) / it[0] : (O - K) / it);
4207
- if (g.currentValue = q ? O.slice() : O, g.completionRate = I, g.durationRate = P, !f) {
4208
- if (G(O, I, P)) {
4194
+ }) : Z(E, K, it, x), L = Math.abs(q ? (O[0] - K[0]) / it[0] : (O - K) / it);
4195
+ if (g.currentValue = q ? O.slice() : O, g.completionRate = L, g.durationRate = P, !f) {
4196
+ if (G(O, L, P)) {
4209
4197
  p();
4210
4198
  return;
4211
4199
  }
@@ -4213,7 +4201,7 @@ function ns() {
4213
4201
  g.currentValue = q ? tt.slice() : tt, g.completionRate = 1, g.durationRate = 1, z(q ? tt.slice() : tt, 1, 1), Q(tt, 1, 1), p();
4214
4202
  return;
4215
4203
  } else
4216
- z(O, I, P), h(et);
4204
+ z(O, L, P), h(et);
4217
4205
  }
4218
4206
  })(_);
4219
4207
  }), g.cancel;
@@ -4326,43 +4314,43 @@ function ns() {
4326
4314
  return y /= O / 2, y < 1 ? -P / 2 * (Math.sqrt(1 - y * y) - 1) + E : P / 2 * (Math.sqrt(1 - (y -= 2) * y) + 1) + E;
4327
4315
  }
4328
4316
  function z(y, E, P, O) {
4329
- var I = 1.70158, w = 0, C = P;
4317
+ var L = 1.70158, w = 0, C = P;
4330
4318
  if (y === 0)
4331
4319
  return E;
4332
4320
  if (y /= O, y === 1)
4333
4321
  return E + P;
4334
4322
  w || (w = O * 0.3);
4335
- var A = u(C, P, w, I);
4323
+ var A = u(C, P, w, L);
4336
4324
  return -n(A, y, O) + E;
4337
4325
  }
4338
4326
  function G(y, E, P, O) {
4339
- var I = 1.70158, w = 0, C = P;
4327
+ var L = 1.70158, w = 0, C = P;
4340
4328
  if (y === 0)
4341
4329
  return E;
4342
4330
  if (y /= O, y === 1)
4343
4331
  return E + P;
4344
4332
  w || (w = O * 0.3);
4345
- var A = u(C, P, w, I);
4333
+ var A = u(C, P, w, L);
4346
4334
  return A.a * Math.pow(2, -10 * y) * Math.sin((y * O - A.s) * (2 * Math.PI) / A.p) + A.c + E;
4347
4335
  }
4348
4336
  function Q(y, E, P, O) {
4349
- var I = 1.70158, w = 0, C = P;
4337
+ var L = 1.70158, w = 0, C = P;
4350
4338
  if (y === 0)
4351
4339
  return E;
4352
4340
  if (y /= O / 2, y === 2)
4353
4341
  return E + P;
4354
4342
  w || (w = O * (0.3 * 1.5));
4355
- var A = u(C, P, w, I);
4343
+ var A = u(C, P, w, L);
4356
4344
  return y < 1 ? -0.5 * n(A, y, O) + E : A.a * Math.pow(2, -10 * (y -= 1)) * Math.sin((y * O - A.s) * (2 * Math.PI) / A.p) * 0.5 + A.c + E;
4357
4345
  }
4358
- function Z(y, E, P, O, I) {
4359
- return I === void 0 && (I = 1.70158), P * (y /= O) * y * ((I + 1) * y - I) + E;
4346
+ function Z(y, E, P, O, L) {
4347
+ return L === void 0 && (L = 1.70158), P * (y /= O) * y * ((L + 1) * y - L) + E;
4360
4348
  }
4361
- function q(y, E, P, O, I) {
4362
- return I === void 0 && (I = 1.70158), P * ((y = y / O - 1) * y * ((I + 1) * y + I) + 1) + E;
4349
+ function q(y, E, P, O, L) {
4350
+ return L === void 0 && (L = 1.70158), P * ((y = y / O - 1) * y * ((L + 1) * y + L) + 1) + E;
4363
4351
  }
4364
- function K(y, E, P, O, I) {
4365
- return I === void 0 && (I = 1.70158), y /= O / 2, y < 1 ? P / 2 * (y * y * (((I *= 1.525) + 1) * y - I)) + E : P / 2 * ((y -= 2) * y * (((I *= 1.525) + 1) * y + I) + 2) + E;
4352
+ function K(y, E, P, O, L) {
4353
+ return L === void 0 && (L = 1.70158), y /= O / 2, y < 1 ? P / 2 * (y * y * (((L *= 1.525) + 1) * y - L)) + E : P / 2 * ((y -= 2) * y * (((L *= 1.525) + 1) * y + L) + 2) + E;
4366
4354
  }
4367
4355
  function tt(y, E, P, O) {
4368
4356
  return P - it(O - y, 0, P, O) + E;
@@ -4480,7 +4468,7 @@ function ns() {
4480
4468
  return w in f ? f[w] : w;
4481
4469
  }
4482
4470
  function x(w, C, A, M) {
4483
- var N = Array.isArray(C), L;
4471
+ var N = Array.isArray(C), I;
4484
4472
  if ((w === "fill" || w === "stroke") && C === "none")
4485
4473
  C = "";
4486
4474
  else {
@@ -4500,7 +4488,7 @@ function ns() {
4500
4488
  else if (w === "textAnchor")
4501
4489
  C = C === "start" ? "left" : C === "end" ? "right" : "center";
4502
4490
  else if (w === "charSpacing")
4503
- L = i(C, M) / M * 1e3;
4491
+ I = i(C, M) / M * 1e3;
4504
4492
  else if (w === "paintFirst") {
4505
4493
  var Y = C.indexOf("fill"), U = C.indexOf("stroke"), C = "fill";
4506
4494
  (Y > -1 && U > -1 && U < Y || Y === -1 && U > -1) && (C = "stroke");
@@ -4509,10 +4497,10 @@ function ns() {
4509
4497
  return C;
4510
4498
  if (w === "imageSmoothing")
4511
4499
  return C === "optimizeQuality";
4512
- L = N ? C.map(i) : i(C, M);
4500
+ I = N ? C.map(i) : i(C, M);
4513
4501
  }
4514
4502
  }
4515
- return !N && isNaN(L) ? C : L;
4503
+ return !N && isNaN(I) ? C : I;
4516
4504
  }
4517
4505
  function D(w) {
4518
4506
  return new RegExp("^(" + w.join("|") + ")\\b", "i");
@@ -4533,9 +4521,9 @@ function ns() {
4533
4521
  return w;
4534
4522
  }
4535
4523
  function z(w, C) {
4536
- var A, M = [], N, L, Y;
4537
- for (L = 0, Y = C.length; L < Y; L++)
4538
- A = C[L], N = w.getElementsByTagName(A), M = M.concat(Array.prototype.slice.call(N));
4524
+ var A, M = [], N, I, Y;
4525
+ for (I = 0, Y = C.length; I < Y; I++)
4526
+ A = C[I], N = w.getElementsByTagName(A), M = M.concat(Array.prototype.slice.call(N));
4539
4527
  return M;
4540
4528
  }
4541
4529
  n.parseTransformAttribute = (function() {
@@ -4553,7 +4541,7 @@ function ns() {
4553
4541
  function M(X, nt) {
4554
4542
  X[4] = nt[0], nt.length === 2 && (X[5] = nt[1]);
4555
4543
  }
4556
- var N = n.iMatrix, L = n.reNum, Y = n.commaWsp, U = "(?:(skewX)\\s*\\(\\s*(" + L + ")\\s*\\))", J = "(?:(skewY)\\s*\\(\\s*(" + L + ")\\s*\\))", R = "(?:(rotate)\\s*\\(\\s*(" + L + ")(?:" + Y + "(" + L + ")" + Y + "(" + L + "))?\\s*\\))", k = "(?:(scale)\\s*\\(\\s*(" + L + ")(?:" + Y + "(" + L + "))?\\s*\\))", W = "(?:(translate)\\s*\\(\\s*(" + L + ")(?:" + Y + "(" + L + "))?\\s*\\))", V = "(?:(matrix)\\s*\\(\\s*(" + L + ")" + Y + "(" + L + ")" + Y + "(" + L + ")" + Y + "(" + L + ")" + Y + "(" + L + ")" + Y + "(" + L + ")\\s*\\))", j = "(?:" + V + "|" + W + "|" + k + "|" + R + "|" + U + "|" + J + ")", H = "(?:" + j + "(?:" + Y + "*" + j + ")*)", $ = "^\\s*(?:" + H + "?)\\s*$", st = new RegExp($), rt = new RegExp(j, "g");
4544
+ var N = n.iMatrix, I = n.reNum, Y = n.commaWsp, U = "(?:(skewX)\\s*\\(\\s*(" + I + ")\\s*\\))", J = "(?:(skewY)\\s*\\(\\s*(" + I + ")\\s*\\))", R = "(?:(rotate)\\s*\\(\\s*(" + I + ")(?:" + Y + "(" + I + ")" + Y + "(" + I + "))?\\s*\\))", k = "(?:(scale)\\s*\\(\\s*(" + I + ")(?:" + Y + "(" + I + "))?\\s*\\))", W = "(?:(translate)\\s*\\(\\s*(" + I + ")(?:" + Y + "(" + I + "))?\\s*\\))", V = "(?:(matrix)\\s*\\(\\s*(" + I + ")" + Y + "(" + I + ")" + Y + "(" + I + ")" + Y + "(" + I + ")" + Y + "(" + I + ")" + Y + "(" + I + ")\\s*\\))", j = "(?:" + V + "|" + W + "|" + k + "|" + R + "|" + U + "|" + J + ")", H = "(?:" + j + "(?:" + Y + "*" + j + ")*)", $ = "^\\s*(?:" + H + "?)\\s*$", st = new RegExp($), rt = new RegExp(j, "g");
4557
4545
  return function(X) {
4558
4546
  var nt = N.concat(), ot = [];
4559
4547
  if (!X || X && !st.test(X))
@@ -4592,8 +4580,8 @@ function ns() {
4592
4580
  function G(w, C) {
4593
4581
  var A, M;
4594
4582
  w.replace(/;\s*$/, "").split(";").forEach(function(N) {
4595
- var L = N.split(":");
4596
- A = L[0].trim().toLowerCase(), M = L[1].trim(), C[A] = M;
4583
+ var I = N.split(":");
4584
+ A = I[0].trim().toLowerCase(), M = I[1].trim(), C[A] = M;
4597
4585
  });
4598
4586
  }
4599
4587
  function Q(w, C) {
@@ -4619,18 +4607,18 @@ function ns() {
4619
4607
  return C.length === 0;
4620
4608
  }
4621
4609
  function tt(w, C) {
4622
- var A = w.nodeName, M = w.getAttribute("class"), N = w.getAttribute("id"), L, Y;
4623
- if (L = new RegExp("^" + A, "i"), C = C.replace(L, ""), N && C.length && (L = new RegExp("#" + N + "(?![a-zA-Z\\-]+)", "i"), C = C.replace(L, "")), M && C.length)
4610
+ var A = w.nodeName, M = w.getAttribute("class"), N = w.getAttribute("id"), I, Y;
4611
+ if (I = new RegExp("^" + A, "i"), C = C.replace(I, ""), N && C.length && (I = new RegExp("#" + N + "(?![a-zA-Z\\-]+)", "i"), C = C.replace(I, "")), M && C.length)
4624
4612
  for (M = M.split(" "), Y = M.length; Y--; )
4625
- L = new RegExp("\\." + M[Y] + "(?![a-zA-Z\\-]+)", "i"), C = C.replace(L, "");
4613
+ I = new RegExp("\\." + M[Y] + "(?![a-zA-Z\\-]+)", "i"), C = C.replace(I, "");
4626
4614
  return C.length === 0;
4627
4615
  }
4628
4616
  function it(w, C) {
4629
4617
  var A;
4630
4618
  if (w.getElementById && (A = w.getElementById(C)), A)
4631
4619
  return A;
4632
- var M, N, L, Y = w.getElementsByTagName("*");
4633
- for (N = 0, L = Y.length; N < L; N++)
4620
+ var M, N, I, Y = w.getElementsByTagName("*");
4621
+ for (N = 0, I = Y.length; N < I; N++)
4634
4622
  if (M = Y[N], C === M.getAttribute("id"))
4635
4623
  return M;
4636
4624
  }
@@ -4639,7 +4627,7 @@ function ns() {
4639
4627
  var M = C[A], N = M.getAttribute("xlink:href") || M.getAttribute("href");
4640
4628
  if (N === null)
4641
4629
  return;
4642
- var L = N.slice(1), Y = M.getAttribute("x") || 0, U = M.getAttribute("y") || 0, J = it(w, L).cloneNode(!0), R = (J.getAttribute("transform") || "") + " translate(" + Y + ", " + U + ")", k, W = C.length, V, j, H, $, st = n.svgNS;
4630
+ var I = N.slice(1), Y = M.getAttribute("x") || 0, U = M.getAttribute("y") || 0, J = it(w, I).cloneNode(!0), R = (J.getAttribute("transform") || "") + " translate(" + Y + ", " + U + ")", k, W = C.length, V, j, H, $, st = n.svgNS;
4643
4631
  if (E(J), /^svg$/i.test(J.nodeName)) {
4644
4632
  var rt = J.ownerDocument.createElementNS(st, "g");
4645
4633
  for (j = 0, H = J.attributes, $ = H.length; j < $; j++)
@@ -4659,14 +4647,14 @@ function ns() {
4659
4647
  function E(w) {
4660
4648
  if (!n.svgViewBoxElementsRegEx.test(w.nodeName))
4661
4649
  return {};
4662
- var C = w.getAttribute("viewBox"), A = 1, M = 1, N = 0, L = 0, Y, U, J, R, k = w.getAttribute("width"), W = w.getAttribute("height"), V = w.getAttribute("x") || 0, j = w.getAttribute("y") || 0, H = w.getAttribute("preserveAspectRatio") || "", $ = !C || !(C = C.match(y)), st = !k || !W || k === "100%" || W === "100%", rt = $ && st, X = {}, nt = "", ot = 0, lt = 0;
4650
+ var C = w.getAttribute("viewBox"), A = 1, M = 1, N = 0, I = 0, Y, U, J, R, k = w.getAttribute("width"), W = w.getAttribute("height"), V = w.getAttribute("x") || 0, j = w.getAttribute("y") || 0, H = w.getAttribute("preserveAspectRatio") || "", $ = !C || !(C = C.match(y)), st = !k || !W || k === "100%" || W === "100%", rt = $ && st, X = {}, nt = "", ot = 0, lt = 0;
4663
4651
  if (X.width = 0, X.height = 0, X.toBeParsed = rt, $ && (V || j) && w.parentNode && w.parentNode.nodeName !== "#document" && (nt = " translate(" + i(V) + " " + i(j) + ") ", J = (w.getAttribute("transform") || "") + nt, w.setAttribute("transform", J), w.removeAttribute("x"), w.removeAttribute("y")), rt)
4664
4652
  return X;
4665
4653
  if ($)
4666
4654
  return X.width = i(k), X.height = i(W), X;
4667
- if (N = -parseFloat(C[1]), L = -parseFloat(C[2]), Y = parseFloat(C[3]), U = parseFloat(C[4]), X.minX = N, X.minY = L, X.viewBoxWidth = Y, X.viewBoxHeight = U, st ? (X.width = Y, X.height = U) : (X.width = i(k), X.height = i(W), A = X.width / Y, M = X.height / U), H = n.util.parsePreserveAspectRatioAttribute(H), H.alignX !== "none" && (H.meetOrSlice === "meet" && (M = A = A > M ? M : A), H.meetOrSlice === "slice" && (M = A = A > M ? A : M), ot = X.width - Y * A, lt = X.height - U * A, H.alignX === "Mid" && (ot /= 2), H.alignY === "Mid" && (lt /= 2), H.alignX === "Min" && (ot = 0), H.alignY === "Min" && (lt = 0)), A === 1 && M === 1 && N === 0 && L === 0 && V === 0 && j === 0)
4655
+ if (N = -parseFloat(C[1]), I = -parseFloat(C[2]), Y = parseFloat(C[3]), U = parseFloat(C[4]), X.minX = N, X.minY = I, X.viewBoxWidth = Y, X.viewBoxHeight = U, st ? (X.width = Y, X.height = U) : (X.width = i(k), X.height = i(W), A = X.width / Y, M = X.height / U), H = n.util.parsePreserveAspectRatioAttribute(H), H.alignX !== "none" && (H.meetOrSlice === "meet" && (M = A = A > M ? M : A), H.meetOrSlice === "slice" && (M = A = A > M ? A : M), ot = X.width - Y * A, lt = X.height - U * A, H.alignX === "Mid" && (ot /= 2), H.alignY === "Mid" && (lt /= 2), H.alignX === "Min" && (ot = 0), H.alignY === "Min" && (lt = 0)), A === 1 && M === 1 && N === 0 && I === 0 && V === 0 && j === 0)
4668
4656
  return X;
4669
- if ((V || j) && w.parentNode.nodeName !== "#document" && (nt = " translate(" + i(V) + " " + i(j) + ") "), J = nt + " matrix(" + A + " 0 0 " + M + " " + (N * A + ot) + " " + (L * M + lt) + ") ", w.nodeName === "svg") {
4657
+ if ((V || j) && w.parentNode.nodeName !== "#document" && (nt = " translate(" + i(V) + " " + i(j) + ") "), J = nt + " matrix(" + A + " 0 0 " + M + " " + (N * A + ot) + " " + (I * M + lt) + ") ", w.nodeName === "svg") {
4670
4658
  for (R = w.ownerDocument.createElementNS(n.svgNS, "g"); w.firstChild; )
4671
4659
  R.appendChild(w.firstChild);
4672
4660
  w.appendChild(R);
@@ -4683,12 +4671,12 @@ function ns() {
4683
4671
  n.parseSVGDocument = function(w, C, A, M) {
4684
4672
  if (w) {
4685
4673
  et(w);
4686
- var N = n.Object.__uid++, L, Y, U = E(w), J = n.util.toArray(w.getElementsByTagName("*"));
4674
+ var N = n.Object.__uid++, I, Y, U = E(w), J = n.util.toArray(w.getElementsByTagName("*"));
4687
4675
  if (U.crossOrigin = M && M.crossOrigin, U.svgUid = N, J.length === 0 && n.isLikelyNode) {
4688
4676
  J = w.selectNodes('//*[name(.)!="svg"]');
4689
4677
  var R = [];
4690
- for (L = 0, Y = J.length; L < Y; L++)
4691
- R[L] = J[L];
4678
+ for (I = 0, Y = J.length; I < Y; I++)
4679
+ R[I] = J[I];
4692
4680
  J = R;
4693
4681
  }
4694
4682
  var k = J.filter(function(V) {
@@ -4712,15 +4700,15 @@ function ns() {
4712
4700
  }
4713
4701
  };
4714
4702
  function O(w, C) {
4715
- var A = ["gradientTransform", "x1", "x2", "y1", "y2", "gradientUnits", "cx", "cy", "r", "fx", "fy"], M = "xlink:href", N = C.getAttribute(M).slice(1), L = it(w, N);
4716
- if (L && L.getAttribute(M) && O(w, L), A.forEach(function(U) {
4717
- L && !C.hasAttribute(U) && L.hasAttribute(U) && C.setAttribute(U, L.getAttribute(U));
4703
+ var A = ["gradientTransform", "x1", "x2", "y1", "y2", "gradientUnits", "cx", "cy", "r", "fx", "fy"], M = "xlink:href", N = C.getAttribute(M).slice(1), I = it(w, N);
4704
+ if (I && I.getAttribute(M) && O(w, I), A.forEach(function(U) {
4705
+ I && !C.hasAttribute(U) && I.hasAttribute(U) && C.setAttribute(U, I.getAttribute(U));
4718
4706
  }), !C.children.length)
4719
- for (var Y = L.cloneNode(!0); Y.firstChild; )
4707
+ for (var Y = I.cloneNode(!0); Y.firstChild; )
4720
4708
  C.appendChild(Y.firstChild);
4721
4709
  C.removeAttribute(M);
4722
4710
  }
4723
- var I = new RegExp(
4711
+ var L = new RegExp(
4724
4712
  "(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*(" + n.reNum + "(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|" + n.reNum + "))?\\s+(.*)"
4725
4713
  );
4726
4714
  l(n, {
@@ -4733,10 +4721,10 @@ function ns() {
4733
4721
  * @param {Object} oStyle definition
4734
4722
  */
4735
4723
  parseFontDeclaration: function(w, C) {
4736
- var A = w.match(I);
4724
+ var A = w.match(L);
4737
4725
  if (A) {
4738
- var M = A[1], N = A[3], L = A[4], Y = A[5], U = A[6];
4739
- M && (C.fontStyle = M), N && (C.fontWeight = isNaN(parseFloat(N)) ? N : parseFloat(N)), L && (C.fontSize = i(L)), U && (C.fontFamily = U), Y && (C.lineHeight = Y === "normal" ? 1 : Y);
4726
+ var M = A[1], N = A[3], I = A[4], Y = A[5], U = A[6];
4727
+ M && (C.fontStyle = M), N && (C.fontWeight = isNaN(parseFloat(N)) ? N : parseFloat(N)), I && (C.fontSize = i(I)), U && (C.fontFamily = U), Y && (C.lineHeight = Y === "normal" ? 1 : Y);
4740
4728
  }
4741
4729
  },
4742
4730
  /**
@@ -4753,10 +4741,10 @@ function ns() {
4753
4741
  "radialGradient",
4754
4742
  "svg:linearGradient",
4755
4743
  "svg:radialGradient"
4756
- ], A = z(w, C), M, N = 0, L = {};
4744
+ ], A = z(w, C), M, N = 0, I = {};
4757
4745
  for (N = A.length; N--; )
4758
- M = A[N], M.getAttribute("xlink:href") && O(w, M), L[M.getAttribute("id")] = M;
4759
- return L;
4746
+ M = A[N], M.getAttribute("xlink:href") && O(w, M), I[M.getAttribute("id")] = M;
4747
+ return I;
4760
4748
  },
4761
4749
  /**
4762
4750
  * Returns an object of attributes' name/value, given element and an array of attribute names;
@@ -4769,7 +4757,7 @@ function ns() {
4769
4757
  */
4770
4758
  parseAttributes: function(w, C, A) {
4771
4759
  if (w) {
4772
- var M, N = {}, L, Y;
4760
+ var M, N = {}, I, Y;
4773
4761
  typeof A > "u" && (A = w.getAttribute("svgUid")), w.parentNode && n.svgValidParentsRegEx.test(w.parentNode.nodeName) && (N = n.parseAttributes(w.parentNode, C, A));
4774
4762
  var U = C.reduce(function(H, $) {
4775
4763
  return M = w.getAttribute($), M && (H[$] = M), H;
@@ -4780,10 +4768,10 @@ function ns() {
4780
4768
  U = l(
4781
4769
  U,
4782
4770
  J
4783
- ), J[v] && w.setAttribute(v, J[v]), L = Y = N.fontSize || n.Text.DEFAULT_SVG_FONT_SIZE, U[p] && (U[p] = L = i(U[p], Y));
4771
+ ), J[v] && w.setAttribute(v, J[v]), I = Y = N.fontSize || n.Text.DEFAULT_SVG_FONT_SIZE, U[p] && (U[p] = I = i(U[p], Y));
4784
4772
  var R, k, W = {};
4785
4773
  for (var V in U)
4786
- R = _(V), k = x(R, U[V], N, L), W[R] = k;
4774
+ R = _(V), k = x(R, U[V], N, I), W[R] = k;
4787
4775
  W && W.font && n.parseFontDeclaration(W.font, W);
4788
4776
  var j = l(N, W);
4789
4777
  return n.svgValidParentsRegEx.test(w.nodeName) ? j : B(j);
@@ -4840,12 +4828,12 @@ function ns() {
4840
4828
  * @return {Object} CSS rules of this document
4841
4829
  */
4842
4830
  getCSSRules: function(w) {
4843
- var C = w.getElementsByTagName("style"), A, M, N = {}, L;
4831
+ var C = w.getElementsByTagName("style"), A, M, N = {}, I;
4844
4832
  for (A = 0, M = C.length; A < M; A++) {
4845
4833
  var Y = C[A].textContent;
4846
- Y = Y.replace(/\/\*[\s\S]*?\*\//g, ""), Y.trim() !== "" && (L = Y.split("}"), L = L.filter(function(U) {
4834
+ Y = Y.replace(/\/\*[\s\S]*?\*\//g, ""), Y.trim() !== "" && (I = Y.split("}"), I = I.filter(function(U) {
4847
4835
  return U.trim();
4848
- }), L.forEach(function(U) {
4836
+ }), I.forEach(function(U) {
4849
4837
  var J = U.split("{"), R = {}, k = J[1].trim(), W = k.split(";").filter(function($) {
4850
4838
  return $.trim();
4851
4839
  });
@@ -4875,8 +4863,8 @@ function ns() {
4875
4863
  method: "get",
4876
4864
  onComplete: N
4877
4865
  });
4878
- function N(L) {
4879
- var Y = L.responseXML;
4866
+ function N(I) {
4867
+ var Y = I.responseXML;
4880
4868
  if (!Y || !Y.documentElement)
4881
4869
  return C && C(null), !1;
4882
4870
  n.parseSVGDocument(Y.documentElement, function(U, J, R, k) {
@@ -4894,8 +4882,8 @@ function ns() {
4894
4882
  * @param {String} [options.crossOrigin] crossOrigin crossOrigin setting to use for external resources
4895
4883
  */
4896
4884
  loadSVGFromString: function(w, C, A, M) {
4897
- var N = new n.window.DOMParser(), L = N.parseFromString(w.trim(), "text/xml");
4898
- n.parseSVGDocument(L.documentElement, function(Y, U, J, R) {
4885
+ var N = new n.window.DOMParser(), I = N.parseFromString(w.trim(), "text/xml");
4886
+ n.parseSVGDocument(I.documentElement, function(Y, U, J, R) {
4899
4887
  C(Y, U, J, R);
4900
4888
  }, A, M);
4901
4889
  }
@@ -5773,7 +5761,7 @@ function ns() {
5773
5761
  var X = tt("skewing", K(E));
5774
5762
  return X(R, k, W, V);
5775
5763
  }
5776
- function I(R, k, W, V) {
5764
+ function L(R, k, W, V) {
5777
5765
  var j = k.target, H = j.skewY, $, st = k.originX;
5778
5766
  if (j.lockSkewingY)
5779
5767
  return !1;
@@ -5826,7 +5814,7 @@ function ns() {
5826
5814
  function N(R, k, W, V) {
5827
5815
  return C(R, k, W, V, { by: "y" });
5828
5816
  }
5829
- function L(R, k, W, V) {
5817
+ function I(R, k, W, V) {
5830
5818
  return R[k.target.canvas.altActionKey] ? t.skewHandlerX(R, k, W, V) : t.scalingY(R, k, W, V);
5831
5819
  }
5832
5820
  function Y(R, k, W, V) {
@@ -5840,7 +5828,7 @@ function ns() {
5840
5828
  var j = k.target, H = W - k.offsetX, $ = V - k.offsetY, st = !j.get("lockMovementX") && j.left !== H, rt = !j.get("lockMovementY") && j.top !== $;
5841
5829
  return st && j.set("left", H), rt && j.set("top", $), (st || rt) && v("moving", q(R, k, W, V)), st || rt;
5842
5830
  }
5843
- t.scaleCursorStyleHandler = B, t.skewCursorStyleHandler = z, t.scaleSkewCursorStyleHandler = G, t.rotationWithSnapping = tt("rotating", K(w)), t.scalingEqually = tt("scaling", K(A)), t.scalingX = tt("scaling", K(M)), t.scalingY = tt("scaling", K(N)), t.scalingYOrSkewingX = L, t.scalingXOrSkewingY = Y, t.changeWidth = tt("resizing", K(U)), t.skewHandlerX = O, t.skewHandlerY = I, t.dragHandler = J, t.scaleOrSkewActionName = Q, t.rotationStyleHandler = Z, t.fireEvent = v, t.wrapWithFixedAnchor = K, t.wrapWithFireEvent = tt, t.getLocalPoint = it, n.controlsUtils = t;
5831
+ t.scaleCursorStyleHandler = B, t.skewCursorStyleHandler = z, t.scaleSkewCursorStyleHandler = G, t.rotationWithSnapping = tt("rotating", K(w)), t.scalingEqually = tt("scaling", K(A)), t.scalingX = tt("scaling", K(M)), t.scalingY = tt("scaling", K(N)), t.scalingYOrSkewingX = I, t.scalingXOrSkewingY = Y, t.changeWidth = tt("resizing", K(U)), t.skewHandlerX = O, t.skewHandlerY = L, t.dragHandler = J, t.scaleOrSkewActionName = Q, t.rotationStyleHandler = Z, t.fireEvent = v, t.wrapWithFixedAnchor = K, t.wrapWithFireEvent = tt, t.getLocalPoint = it, n.controlsUtils = t;
5844
5832
  })(d), (function(u) {
5845
5833
  var n = u.fabric || (u.fabric = {}), l = n.util.degreesToRadians, a = n.controlsUtils;
5846
5834
  function t(e, s, h, r, c) {
@@ -16781,15 +16769,15 @@ varying vec2 vTexCoord;
16781
16769
  */
16782
16770
  lanczosResize: function(f, g, p, v, _) {
16783
16771
  function x(P) {
16784
- var O, I, w, C, A, M, N, L, Y, U, J;
16772
+ var O, L, w, C, A, M, N, I, Y, U, J;
16785
16773
  for (y.x = (P + 0.5) * Q, E.x = a(y.x), O = 0; O < _; O++) {
16786
- for (y.y = (O + 0.5) * Z, E.y = a(y.y), A = 0, M = 0, N = 0, L = 0, Y = 0, I = E.x - tt; I <= E.x + tt; I++)
16787
- if (!(I < 0 || I >= g)) {
16788
- U = a(1e3 * i(I - y.x)), et[U] || (et[U] = {});
16774
+ for (y.y = (O + 0.5) * Z, E.y = a(y.y), A = 0, M = 0, N = 0, I = 0, Y = 0, L = E.x - tt; L <= E.x + tt; L++)
16775
+ if (!(L < 0 || L >= g)) {
16776
+ U = a(1e3 * i(L - y.x)), et[U] || (et[U] = {});
16789
16777
  for (var R = E.y - it; R <= E.y + it; R++)
16790
- R < 0 || R >= p || (J = a(1e3 * i(R - y.y)), et[U][J] || (et[U][J] = G(t(l(U * q, 2) + l(J * K, 2)) / 1e3)), w = et[U][J], w > 0 && (C = (R * g + I) * 4, A += w, M += w * D[C], N += w * D[C + 1], L += w * D[C + 2], Y += w * D[C + 3]));
16778
+ R < 0 || R >= p || (J = a(1e3 * i(R - y.y)), et[U][J] || (et[U][J] = G(t(l(U * q, 2) + l(J * K, 2)) / 1e3)), w = et[U][J], w > 0 && (C = (R * g + L) * 4, A += w, M += w * D[C], N += w * D[C + 1], I += w * D[C + 2], Y += w * D[C + 3]));
16791
16779
  }
16792
- C = (O * v + P) * 4, z[C] = M / A, z[C + 1] = N / A, z[C + 2] = L / A, z[C + 3] = Y / A;
16780
+ C = (O * v + P) * 4, z[C] = M / A, z[C + 1] = N / A, z[C + 2] = I / A, z[C + 3] = Y / A;
16793
16781
  }
16794
16782
  return ++P < v ? x(P) : B;
16795
16783
  }
@@ -16806,11 +16794,11 @@ varying vec2 vTexCoord;
16806
16794
  * @returns {ImageData}
16807
16795
  */
16808
16796
  bilinearFiltering: function(f, g, p, v, _) {
16809
- var x, D, B, z, G, Q, Z, q, K, tt, it, et, y = 0, E, P = this.rcpScaleX, O = this.rcpScaleY, I = 4 * (g - 1), w = f.imageData, C = w.data, A = f.ctx.createImageData(v, _), M = A.data;
16797
+ var x, D, B, z, G, Q, Z, q, K, tt, it, et, y = 0, E, P = this.rcpScaleX, O = this.rcpScaleY, L = 4 * (g - 1), w = f.imageData, C = w.data, A = f.ctx.createImageData(v, _), M = A.data;
16810
16798
  for (Z = 0; Z < _; Z++)
16811
16799
  for (q = 0; q < v; q++)
16812
16800
  for (G = a(P * q), Q = a(O * Z), K = P * q - G, tt = O * Z - Q, E = 4 * (Q * g + G), it = 0; it < 4; it++)
16813
- x = C[E + it], D = C[E + 4 + it], B = C[E + I + it], z = C[E + I + 4 + it], et = x * (1 - K) * (1 - tt) + D * K * (1 - tt) + B * tt * (1 - K) + z * K * tt, M[y++] = et;
16801
+ x = C[E + it], D = C[E + 4 + it], B = C[E + L + it], z = C[E + L + 4 + it], et = x * (1 - K) * (1 - tt) + D * K * (1 - tt) + B * tt * (1 - K) + z * K * tt, M[y++] = et;
16814
16802
  return A;
16815
16803
  },
16816
16804
  /**
@@ -16825,12 +16813,12 @@ varying vec2 vTexCoord;
16825
16813
  hermiteFastResize: function(f, g, p, v, _) {
16826
16814
  for (var x = this.rcpScaleX, D = this.rcpScaleY, B = h(x / 2), z = h(D / 2), G = f.imageData, Q = G.data, Z = f.ctx.createImageData(v, _), q = Z.data, K = 0; K < _; K++)
16827
16815
  for (var tt = 0; tt < v; tt++) {
16828
- for (var it = (tt + K * v) * 4, et = 0, y = 0, E = 0, P = 0, O = 0, I = 0, w = 0, C = (K + 0.5) * D, A = a(K * D); A < (K + 1) * D; A++)
16829
- for (var M = i(C - (A + 0.5)) / z, N = (tt + 0.5) * x, L = M * M, Y = a(tt * x); Y < (tt + 1) * x; Y++) {
16830
- var U = i(N - (Y + 0.5)) / B, J = t(L + U * U);
16831
- J > 1 && J < -1 || (et = 2 * J * J * J - 3 * J * J + 1, et > 0 && (U = 4 * (Y + A * g), w += et * Q[U + 3], E += et, Q[U + 3] < 255 && (et = et * Q[U + 3] / 250), P += et * Q[U], O += et * Q[U + 1], I += et * Q[U + 2], y += et));
16816
+ for (var it = (tt + K * v) * 4, et = 0, y = 0, E = 0, P = 0, O = 0, L = 0, w = 0, C = (K + 0.5) * D, A = a(K * D); A < (K + 1) * D; A++)
16817
+ for (var M = i(C - (A + 0.5)) / z, N = (tt + 0.5) * x, I = M * M, Y = a(tt * x); Y < (tt + 1) * x; Y++) {
16818
+ var U = i(N - (Y + 0.5)) / B, J = t(I + U * U);
16819
+ J > 1 && J < -1 || (et = 2 * J * J * J - 3 * J * J + 1, et > 0 && (U = 4 * (Y + A * g), w += et * Q[U + 3], E += et, Q[U + 3] < 255 && (et = et * Q[U + 3] / 250), P += et * Q[U], O += et * Q[U + 1], L += et * Q[U + 2], y += et));
16832
16820
  }
16833
- q[it] = P / y, q[it + 1] = O / y, q[it + 2] = I / y, q[it + 3] = w / E;
16821
+ q[it] = P / y, q[it + 1] = O / y, q[it + 2] = L / y, q[it + 3] = w / E;
16834
16822
  }
16835
16823
  return Z;
16836
16824
  },
@@ -20395,7 +20383,7 @@ function ms(d) {
20395
20383
  T[F] = S.charCodeAt(F);
20396
20384
  return [new Blob([b], { type: m }), m.slice(6)];
20397
20385
  }
20398
- const _s = {
20386
+ const ys = {
20399
20387
  getImgStr: ss,
20400
20388
  downFile: hs,
20401
20389
  selectFiles: os,
@@ -20408,10 +20396,12 @@ const _s = {
20408
20396
  isActiveSelection: gs,
20409
20397
  blobToBase64: ps,
20410
20398
  base64ToBlob: ms
20411
- }, ys = ge.fabric;
20399
+ }, vs = "0.0.7";
20400
+ window && (window._hprintPrintVersion = vs);
20401
+ const Cs = ge.fabric;
20412
20402
  export {
20413
20403
  ai as LengthConvert,
20414
- ys as fabric,
20415
- vs as mathHelper,
20416
- _s as utils
20404
+ Cs as fabric,
20405
+ _s as mathHelper,
20406
+ ys as utils
20417
20407
  };