@fraczled/sdk 1.30.11 → 1.30.12

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.
@@ -869,9 +869,9 @@ class P2 {
869
869
  });
870
870
  const v = { x: d, y: u, width: m - d, height: g - u };
871
871
  if (l) {
872
- let p = v.x, L = v.y;
873
- t === "left" && (p = o), t === "center" && (p = o + (r - v.width) / 2), t === "right" && (p = o + r - v.width), t === "top" && (L = o), t === "middle" && (L = o + (i - v.height) / 2), t === "bottom" && (L = o + i - v.height);
874
- const x = p - v.x, C = L - v.y, I = this.state.pages.map((D) => {
872
+ let p = v.x, _ = v.y;
873
+ t === "left" && (p = o), t === "center" && (p = o + (r - v.width) / 2), t === "right" && (p = o + r - v.width), t === "top" && (_ = o), t === "middle" && (_ = o + (i - v.height) / 2), t === "bottom" && (_ = o + i - v.height);
874
+ const x = p - v.x, C = _ - v.y, I = this.state.pages.map((D) => {
875
875
  if (D.id !== this.state.activePageId) return D;
876
876
  const $ = D.elements.map((U) => this.state.selection.includes(U.id) ? { ...U, x: U.x + x, y: U.y + C } : U);
877
877
  return { ...D, elements: $ };
@@ -879,11 +879,11 @@ class P2 {
879
879
  this.state = { ...this.state, pages: I };
880
880
  } else {
881
881
  const p = s[0];
882
- let L = p.x, x = p.y;
883
- t === "left" && (L = o), t === "center" && (L = o + (r - p.width) / 2), t === "right" && (L = o + r - p.width), t === "top" && (x = o), t === "middle" && (x = o + (i - p.height) / 2), t === "bottom" && (x = o + i - p.height);
882
+ let _ = p.x, x = p.y;
883
+ t === "left" && (_ = o), t === "center" && (_ = o + (r - p.width) / 2), t === "right" && (_ = o + r - p.width), t === "top" && (x = o), t === "middle" && (x = o + (i - p.height) / 2), t === "bottom" && (x = o + i - p.height);
884
884
  const C = this.state.pages.map((I) => {
885
885
  if (I.id !== this.state.activePageId) return I;
886
- const D = I.elements.map(($) => $.id !== p.id ? $ : { ...$, x: L, y: x });
886
+ const D = I.elements.map(($) => $.id !== p.id ? $ : { ...$, x: _, y: x });
887
887
  return { ...I, elements: D };
888
888
  });
889
889
  this.state = { ...this.state, pages: C };
@@ -946,8 +946,8 @@ class P2 {
946
946
  if (!this.activePage || this.state.selection.length !== 1) return;
947
947
  const t = this.activePage.elements.find((n) => n.id === this.state.selection[0]);
948
948
  if (t) {
949
- const { color: n, backgroundColor: r, fontSize: i, fontFamily: s, fontWeight: o, textAlign: l, opacity: d, strokeColor: u, strokeWidth: m, strokeStyle: g, textStrokeWidth: v, textStrokeColor: p, textStrokePosition: L, textStrokeStyle: x, effect: C, cornerRadius: I } = t;
950
- this.styleClipboard = { color: n, backgroundColor: r, fontSize: i, fontFamily: s, fontWeight: o, textAlign: l, opacity: d, strokeColor: u, strokeWidth: m, strokeStyle: g, textStrokeWidth: v, textStrokeColor: p, textStrokePosition: L, textStrokeStyle: x, effect: es(C), cornerRadius: I };
949
+ const { color: n, backgroundColor: r, fontSize: i, fontFamily: s, fontWeight: o, textAlign: l, opacity: d, strokeColor: u, strokeWidth: m, strokeStyle: g, textStrokeWidth: v, textStrokeColor: p, textStrokePosition: _, textStrokeStyle: x, effect: C, cornerRadius: I } = t;
950
+ this.styleClipboard = { color: n, backgroundColor: r, fontSize: i, fontFamily: s, fontWeight: o, textAlign: l, opacity: d, strokeColor: u, strokeWidth: m, strokeStyle: g, textStrokeWidth: v, textStrokeColor: p, textStrokePosition: _, textStrokeStyle: x, effect: es(C), cornerRadius: I };
951
951
  }
952
952
  }
953
953
  pasteStyle() {
@@ -1093,14 +1093,14 @@ class P2 {
1093
1093
  y: x.y + g,
1094
1094
  zIndex: v + C + 1
1095
1095
  };
1096
- }), L = this.state.pages.map((x) => x.id === this.state.activePageId ? {
1096
+ }), _ = this.state.pages.map((x) => x.id === this.state.activePageId ? {
1097
1097
  ...x,
1098
1098
  elements: [...x.elements, ...p],
1099
1099
  groups: { ...x.groups, ...s }
1100
1100
  } : x);
1101
1101
  this.state = {
1102
1102
  ...this.state,
1103
- pages: L,
1103
+ pages: _,
1104
1104
  selection: p.map((x) => x.id)
1105
1105
  }, this.saveHistory(), this.notify();
1106
1106
  }
@@ -1123,7 +1123,7 @@ class P2 {
1123
1123
  return this.state = {
1124
1124
  ...this.state,
1125
1125
  savedDesigns: [...this.state.savedDesigns, i]
1126
- }, this.saveHistory(), this.notify(), i.id;
1126
+ }, this.saveHistory(), this.notify(), this.emit("designSaved", i), i.id;
1127
1127
  }
1128
1128
  loadSavedDesign(t) {
1129
1129
  const n = this.state.savedDesigns.find((r) => r.id === t);
@@ -1138,24 +1138,30 @@ class P2 {
1138
1138
  }
1139
1139
  }
1140
1140
  deleteSavedDesign(t) {
1141
+ const n = this.state.savedDesigns.find((r) => r.id === t);
1141
1142
  this.state = {
1142
1143
  ...this.state,
1143
- savedDesigns: this.state.savedDesigns.filter((n) => n.id !== t)
1144
- }, this.saveHistory(), this.notify();
1144
+ savedDesigns: this.state.savedDesigns.filter((r) => r.id !== t)
1145
+ }, this.saveHistory(), this.notify(), n && this.emit("designDeleted", { id: t, design: n });
1145
1146
  }
1146
1147
  deleteSavedDesigns(t) {
1148
+ const n = this.state.savedDesigns.filter((r) => t.includes(r.id));
1147
1149
  this.state = {
1148
1150
  ...this.state,
1149
- savedDesigns: this.state.savedDesigns.filter((n) => !t.includes(n.id))
1150
- }, this.saveHistory(), this.notify();
1151
+ savedDesigns: this.state.savedDesigns.filter((r) => !t.includes(r.id))
1152
+ }, this.saveHistory(), this.notify(), n.length && n.forEach((r) => {
1153
+ this.emit("designDeleted", { id: r.id, design: r });
1154
+ });
1151
1155
  }
1152
1156
  renameSavedDesign(t, n) {
1153
1157
  this.state = {
1154
1158
  ...this.state,
1155
1159
  savedDesigns: this.state.savedDesigns.map(
1156
- (r) => r.id === t ? { ...r, name: n, updatedAt: Date.now() } : r
1160
+ (i) => i.id === t ? { ...i, name: n, updatedAt: Date.now() } : i
1157
1161
  )
1158
1162
  }, this.saveHistory(), this.notify();
1163
+ const r = this.state.savedDesigns.find((i) => i.id === t);
1164
+ r && this.emit("designSaved", r);
1159
1165
  }
1160
1166
  }
1161
1167
  function Vh(e) {
@@ -1762,15 +1768,15 @@ var Sp = /* @__PURE__ */ wo(ks, 9, 0), Cp = /* @__PURE__ */ wo(_l, 5, 0), r1 = f
1762
1768
  l = n[n[u].f < n[g].f ? u++ : g++], d = n[u != m && n[u].f < n[g].f ? u++ : g++], n[m++] = { s: -1, f: l.f + d.f, l, r: d };
1763
1769
  for (var v = s[0].s, r = 1; r < i; ++r)
1764
1770
  s[r].s > v && (v = s[r].s);
1765
- var p = new Ra(v + 1), L = Zc(n[m - 1], p, 0);
1766
- if (L > t) {
1767
- var r = 0, x = 0, C = L - t, I = 1 << C;
1771
+ var p = new Ra(v + 1), _ = Zc(n[m - 1], p, 0);
1772
+ if (_ > t) {
1773
+ var r = 0, x = 0, C = _ - t, I = 1 << C;
1768
1774
  for (s.sort(function(se, ye) {
1769
1775
  return p[ye.s] - p[se.s] || se.f - ye.f;
1770
1776
  }); r < i; ++r) {
1771
1777
  var D = s[r].s;
1772
1778
  if (p[D] > t)
1773
- x += I - (1 << L - p[D]), p[D] = t;
1779
+ x += I - (1 << _ - p[D]), p[D] = t;
1774
1780
  else
1775
1781
  break;
1776
1782
  }
@@ -1782,9 +1788,9 @@ var Sp = /* @__PURE__ */ wo(ks, 9, 0), Cp = /* @__PURE__ */ wo(_l, 5, 0), r1 = f
1782
1788
  var U = s[r].s;
1783
1789
  p[U] == t && (--p[U], ++x);
1784
1790
  }
1785
- L = t;
1791
+ _ = t;
1786
1792
  }
1787
- return { t: new ai(p), l: L };
1793
+ return { t: new ai(p), l: _ };
1788
1794
  }, Zc = function(e, t, n) {
1789
1795
  return e.s == -1 ? Math.max(Zc(e.l, t, n + 1), Zc(e.r, t, n + 1)) : t[e.s] = n;
1790
1796
  }, Ju = function(e) {
@@ -1822,7 +1828,7 @@ var Sp = /* @__PURE__ */ wo(ks, 9, 0), Cp = /* @__PURE__ */ wo(_l, 5, 0), r1 = f
1822
1828
  return (i + 4 + r) * 8;
1823
1829
  }, Qu = function(e, t, n, r, i, s, o, l, d, u, m) {
1824
1830
  Di(t, m++, n), ++i[256];
1825
- for (var g = cc(i, 15), v = g.t, p = g.l, L = cc(s, 15), x = L.t, C = L.l, I = Ju(v), D = I.c, $ = I.n, U = Ju(x), ue = U.c, se = U.n, ye = new Ra(19), de = 0; de < D.length; ++de)
1831
+ for (var g = cc(i, 15), v = g.t, p = g.l, _ = cc(s, 15), x = _.t, C = _.l, I = Ju(v), D = I.c, $ = I.n, U = Ju(x), ue = U.c, se = U.n, ye = new Ra(19), de = 0; de < D.length; ++de)
1826
1832
  ++ye[D[de] & 31];
1827
1833
  for (var de = 0; de < ue.length; ++de)
1828
1834
  ++ye[ue[de] & 31];
@@ -1840,9 +1846,9 @@ var Sp = /* @__PURE__ */ wo(ks, 9, 0), Cp = /* @__PURE__ */ wo(_l, 5, 0), r1 = f
1840
1846
  Di(t, m + 3 * de, me[Ku[de]]);
1841
1847
  m += 3 * K;
1842
1848
  for (var ne = [D, ue], A = 0; A < 2; ++A)
1843
- for (var _ = ne[A], de = 0; de < _.length; ++de) {
1844
- var b = _[de] & 31;
1845
- Di(t, m, q[b]), m += me[b], b > 15 && (Di(t, m, _[de] >> 5 & 127), m += _[de] >> 12);
1849
+ for (var L = ne[A], de = 0; de < L.length; ++de) {
1850
+ var b = L[de] & 31;
1851
+ Di(t, m, q[b]), m += me[b], b > 15 && (Di(t, m, L[de] >> 5 & 127), m += L[de] >> 12);
1846
1852
  }
1847
1853
  } else
1848
1854
  J = Sp, T = ks, Y = Cp, le = _l;
@@ -1861,8 +1867,8 @@ var Sp = /* @__PURE__ */ wo(ks, 9, 0), Cp = /* @__PURE__ */ wo(_l, 5, 0), r1 = f
1861
1867
  var o = s.z || e.length, l = new ai(r + o + 5 * (1 + Math.ceil(o / 7e3)) + i), d = l.subarray(r, l.length - i), u = s.l, m = (s.r || 0) & 7;
1862
1868
  if (t) {
1863
1869
  m && (d[0] = s.r >> 3);
1864
- for (var g = _p[t - 1], v = g >> 13, p = g & 8191, L = (1 << n) - 1, x = s.p || new Ra(32768), C = s.h || new Ra(L + 1), I = Math.ceil(n / 3), D = 2 * I, $ = function(oe) {
1865
- return (e[oe] ^ e[oe + 1] << I ^ e[oe + 2] << D) & L;
1870
+ for (var g = _p[t - 1], v = g >> 13, p = g & 8191, _ = (1 << n) - 1, x = s.p || new Ra(32768), C = s.h || new Ra(_ + 1), I = Math.ceil(n / 3), D = 2 * I, $ = function(oe) {
1871
+ return (e[oe] ^ e[oe + 1] << I ^ e[oe + 2] << D) & _;
1866
1872
  }, U = new Nd(25e3), ue = new Ra(288), se = new Ra(32), ye = 0, de = 0, X = s.i || 0, me = 0, j = s.w || 0, K = 0; X + 2 < o; ++X) {
1867
1873
  var O = $(X), R = X & 32767, te = C[O];
1868
1874
  if (x[R] = te, C[O] = R, j <= X) {
@@ -1876,7 +1882,7 @@ var Sp = /* @__PURE__ */ wo(ks, 9, 0), Cp = /* @__PURE__ */ wo(_l, 5, 0), r1 = f
1876
1882
  }
1877
1883
  var Y = 2, le = 0, q = p, ne = R - te & 32767;
1878
1884
  if (J > 2 && O == $(X - ne))
1879
- for (var A = Math.min(v, J) - 1, _ = Math.min(32767, X), b = Math.min(258, J); ne <= _ && --q && R != te; ) {
1885
+ for (var A = Math.min(v, J) - 1, L = Math.min(32767, X), b = Math.min(258, J); ne <= L && --q && R != te; ) {
1880
1886
  if (e[X + Y] == e[X + Y - ne]) {
1881
1887
  for (var k = 0; k < b && e[X + k] == e[X + k - ne]; ++k)
1882
1888
  ;
@@ -2688,26 +2694,26 @@ function dm() {
2688
2694
  var um = dm;
2689
2695
  const tl = 16209, hm = 16191;
2690
2696
  var fm = function(t, n) {
2691
- let r, i, s, o, l, d, u, m, g, v, p, L, x, C, I, D, $, U, ue, se, ye, de, X, me;
2697
+ let r, i, s, o, l, d, u, m, g, v, p, _, x, C, I, D, $, U, ue, se, ye, de, X, me;
2692
2698
  const j = t.state;
2693
- r = t.next_in, X = t.input, i = r + (t.avail_in - 5), s = t.next_out, me = t.output, o = s - (n - t.avail_out), l = s + (t.avail_out - 257), d = j.dmax, u = j.wsize, m = j.whave, g = j.wnext, v = j.window, p = j.hold, L = j.bits, x = j.lencode, C = j.distcode, I = (1 << j.lenbits) - 1, D = (1 << j.distbits) - 1;
2699
+ r = t.next_in, X = t.input, i = r + (t.avail_in - 5), s = t.next_out, me = t.output, o = s - (n - t.avail_out), l = s + (t.avail_out - 257), d = j.dmax, u = j.wsize, m = j.whave, g = j.wnext, v = j.window, p = j.hold, _ = j.bits, x = j.lencode, C = j.distcode, I = (1 << j.lenbits) - 1, D = (1 << j.distbits) - 1;
2694
2700
  e:
2695
2701
  do {
2696
- L < 15 && (p += X[r++] << L, L += 8, p += X[r++] << L, L += 8), $ = x[p & I];
2702
+ _ < 15 && (p += X[r++] << _, _ += 8, p += X[r++] << _, _ += 8), $ = x[p & I];
2697
2703
  t:
2698
2704
  for (; ; ) {
2699
- if (U = $ >>> 24, p >>>= U, L -= U, U = $ >>> 16 & 255, U === 0)
2705
+ if (U = $ >>> 24, p >>>= U, _ -= U, U = $ >>> 16 & 255, U === 0)
2700
2706
  me[s++] = $ & 65535;
2701
2707
  else if (U & 16) {
2702
- ue = $ & 65535, U &= 15, U && (L < U && (p += X[r++] << L, L += 8), ue += p & (1 << U) - 1, p >>>= U, L -= U), L < 15 && (p += X[r++] << L, L += 8, p += X[r++] << L, L += 8), $ = C[p & D];
2708
+ ue = $ & 65535, U &= 15, U && (_ < U && (p += X[r++] << _, _ += 8), ue += p & (1 << U) - 1, p >>>= U, _ -= U), _ < 15 && (p += X[r++] << _, _ += 8, p += X[r++] << _, _ += 8), $ = C[p & D];
2703
2709
  n:
2704
2710
  for (; ; ) {
2705
- if (U = $ >>> 24, p >>>= U, L -= U, U = $ >>> 16 & 255, U & 16) {
2706
- if (se = $ & 65535, U &= 15, L < U && (p += X[r++] << L, L += 8, L < U && (p += X[r++] << L, L += 8)), se += p & (1 << U) - 1, se > d) {
2711
+ if (U = $ >>> 24, p >>>= U, _ -= U, U = $ >>> 16 & 255, U & 16) {
2712
+ if (se = $ & 65535, U &= 15, _ < U && (p += X[r++] << _, _ += 8, _ < U && (p += X[r++] << _, _ += 8)), se += p & (1 << U) - 1, se > d) {
2707
2713
  t.msg = "invalid distance too far back", j.mode = tl;
2708
2714
  break e;
2709
2715
  }
2710
- if (p >>>= U, L -= U, U = s - o, se > U) {
2716
+ if (p >>>= U, _ -= U, U = s - o, se > U) {
2711
2717
  if (U = se - U, U > m && j.sane) {
2712
2718
  t.msg = "invalid distance too far back", j.mode = tl;
2713
2719
  break e;
@@ -2773,7 +2779,7 @@ var fm = function(t, n) {
2773
2779
  break;
2774
2780
  }
2775
2781
  } while (r < i && s < l);
2776
- ue = L >> 3, r -= ue, L -= ue << 3, p &= (1 << L) - 1, t.next_in = r, t.next_out = s, t.avail_in = r < i ? 5 + (i - r) : 5 - (r - i), t.avail_out = s < l ? 257 + (l - s) : 257 - (s - l), j.hold = p, j.bits = L;
2782
+ ue = _ >> 3, r -= ue, _ -= ue << 3, p &= (1 << _) - 1, t.next_in = r, t.next_out = s, t.avail_in = r < i ? 5 + (i - r) : 5 - (r - i), t.avail_out = s < l ? 257 + (l - s) : 257 - (s - l), j.hold = p, j.bits = _;
2777
2783
  };
2778
2784
  const Ps = 15, r0 = 852, a0 = 592, i0 = 0, uc = 1, s0 = 2, pm = new Uint16Array([
2779
2785
  /* Length codes 257..285 base */
@@ -2911,7 +2917,7 @@ const Ps = 15, r0 = 852, a0 = 592, i0 = 0, uc = 1, s0 = 2, pm = new Uint16Array(
2911
2917
  64
2912
2918
  ]), ym = (e, t, n, r, i, s, o, l) => {
2913
2919
  const d = l.bits;
2914
- let u = 0, m = 0, g = 0, v = 0, p = 0, L = 0, x = 0, C = 0, I = 0, D = 0, $, U, ue, se, ye, de = null, X;
2920
+ let u = 0, m = 0, g = 0, v = 0, p = 0, _ = 0, x = 0, C = 0, I = 0, D = 0, $, U, ue, se, ye, de = null, X;
2915
2921
  const me = new Uint16Array(Ps + 1), j = new Uint16Array(Ps + 1);
2916
2922
  let K = null, O, R, te;
2917
2923
  for (u = 0; u <= Ps; u++)
@@ -2933,10 +2939,10 @@ const Ps = 15, r0 = 852, a0 = 592, i0 = 0, uc = 1, s0 = 2, pm = new Uint16Array(
2933
2939
  j[u + 1] = j[u] + me[u];
2934
2940
  for (m = 0; m < r; m++)
2935
2941
  t[n + m] !== 0 && (o[j[t[n + m]]++] = m);
2936
- if (e === i0 ? (de = K = o, X = 20) : e === uc ? (de = pm, K = mm, X = 257) : (de = gm, K = bm, X = 0), D = 0, m = 0, u = g, ye = s, L = p, x = 0, ue = -1, I = 1 << p, se = I - 1, e === uc && I > r0 || e === s0 && I > a0)
2942
+ if (e === i0 ? (de = K = o, X = 20) : e === uc ? (de = pm, K = mm, X = 257) : (de = gm, K = bm, X = 0), D = 0, m = 0, u = g, ye = s, _ = p, x = 0, ue = -1, I = 1 << p, se = I - 1, e === uc && I > r0 || e === s0 && I > a0)
2937
2943
  return 1;
2938
2944
  for (; ; ) {
2939
- O = u - x, o[m] + 1 < X ? (R = 0, te = o[m]) : o[m] >= X ? (R = K[o[m] - X], te = de[o[m] - X]) : (R = 96, te = 0), $ = 1 << u - x, U = 1 << L, g = U;
2945
+ O = u - x, o[m] + 1 < X ? (R = 0, te = o[m]) : o[m] >= X ? (R = K[o[m] - X], te = de[o[m] - X]) : (R = 96, te = 0), $ = 1 << u - x, U = 1 << _, g = U;
2940
2946
  do
2941
2947
  U -= $, i[ye + (D >> x) + U] = O << 24 | R << 16 | te | 0;
2942
2948
  while (U !== 0);
@@ -2948,11 +2954,11 @@ const Ps = 15, r0 = 852, a0 = 592, i0 = 0, uc = 1, s0 = 2, pm = new Uint16Array(
2948
2954
  u = t[n + o[m]];
2949
2955
  }
2950
2956
  if (u > p && (D & se) !== ue) {
2951
- for (x === 0 && (x = p), ye += g, L = u - x, C = 1 << L; L + x < v && (C -= me[L + x], !(C <= 0)); )
2952
- L++, C <<= 1;
2953
- if (I += 1 << L, e === uc && I > r0 || e === s0 && I > a0)
2957
+ for (x === 0 && (x = p), ye += g, _ = u - x, C = 1 << _; _ + x < v && (C -= me[_ + x], !(C <= 0)); )
2958
+ _++, C <<= 1;
2959
+ if (I += 1 << _, e === uc && I > r0 || e === s0 && I > a0)
2954
2960
  return 1;
2955
- ue = D & se, i[ue] = p << 24 | L << 16 | ye - s | 0;
2961
+ ue = D & se, i[ue] = p << 24 | _ << 16 | ye - s | 0;
2956
2962
  }
2957
2963
  }
2958
2964
  return D !== 0 && (i[ye + D] = u - x << 24 | 64 << 16 | 0), l.bits = p, 0;
@@ -3026,7 +3032,7 @@ const Pm = (e) => {
3026
3032
  const s = e.state;
3027
3033
  return s.window === null && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new Uint8Array(s.wsize)), r >= s.wsize ? (s.window.set(t.subarray(n - s.wsize, n), 0), s.wnext = 0, s.whave = s.wsize) : (i = s.wsize - s.wnext, i > r && (i = r), s.window.set(t.subarray(n - r, n - r + i), s.wnext), r -= i, r ? (s.window.set(t.subarray(n - r, n), 0), s.wnext = r, s.whave = s.wsize) : (s.wnext += i, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += i))), 0;
3028
3034
  }, Mm = (e, t) => {
3029
- let n, r, i, s, o, l, d, u, m, g, v, p, L, x, C = 0, I, D, $, U, ue, se, ye, de;
3035
+ let n, r, i, s, o, l, d, u, m, g, v, p, _, x, C = 0, I, D, $, U, ue, se, ye, de;
3030
3036
  const X = new Uint8Array(4);
3031
3037
  let me, j;
3032
3038
  const K = (
@@ -3415,12 +3421,12 @@ const Pm = (e) => {
3415
3421
  e.msg = "invalid distance too far back", n.mode = lr;
3416
3422
  break;
3417
3423
  }
3418
- p > n.wnext ? (p -= n.wnext, L = n.wsize - p) : L = n.wnext - p, p > n.length && (p = n.length), x = n.window;
3424
+ p > n.wnext ? (p -= n.wnext, _ = n.wsize - p) : _ = n.wnext - p, p > n.length && (p = n.length), x = n.window;
3419
3425
  } else
3420
- x = i, L = o - n.offset, p = n.length;
3426
+ x = i, _ = o - n.offset, p = n.length;
3421
3427
  p > d && (p = d), d -= p, n.length -= p;
3422
3428
  do
3423
- i[o++] = x[L++];
3429
+ i[o++] = x[_++];
3424
3430
  while (--p);
3425
3431
  n.length === 0 && (n.mode = al);
3426
3432
  break;
@@ -3696,12 +3702,12 @@ function ug(e) {
3696
3702
  const g = o[m], v = Math.ceil((n - g.x) / g.xStep), p = Math.ceil((r - g.y) / g.yStep);
3697
3703
  if (v <= 0 || p <= 0)
3698
3704
  continue;
3699
- const L = v * l, x = new Uint8Array(L);
3705
+ const _ = v * l, x = new Uint8Array(_);
3700
3706
  for (let C = 0; C < p; C++) {
3701
- const I = t[u++], D = t.subarray(u, u + L);
3702
- u += L;
3703
- const $ = new Uint8Array(L);
3704
- og(I, D, $, x, L, l), x.set($);
3707
+ const I = t[u++], D = t.subarray(u, u + _);
3708
+ u += _;
3709
+ const $ = new Uint8Array(_);
3710
+ og(I, D, $, x, _, l), x.set($);
3705
3711
  for (let U = 0; U < v; U++) {
3706
3712
  const ue = g.x + U * g.xStep, se = g.y + C * g.yStep;
3707
3713
  if (!(ue >= n || se >= r))
@@ -3751,8 +3757,8 @@ function R0(e) {
3751
3757
  if (s === 16) {
3752
3758
  const p = new Uint16Array(d.buffer);
3753
3759
  if (mg)
3754
- for (let L = 0; L < p.length; L++)
3755
- p[L] = bg(p[L]);
3760
+ for (let _ = 0; _ < p.length; _++)
3761
+ p[_] = bg(p[_]);
3756
3762
  return p;
3757
3763
  } else
3758
3764
  return d;
@@ -4423,9 +4429,9 @@ function rd(e, t) {
4423
4429
  }
4424
4430
  n = e, r = l;
4425
4431
  } else l = r;
4426
- var g = t.length, v = 0, p = 0, L = "";
4427
- for (d = 0; d < g; d++) p = (p + (m = l[v = (v + 1) % 256])) % 256, l[v] = l[p], l[p] = m, o = l[(l[v] + l[p]) % 256], L += String.fromCharCode(t.charCodeAt(d) ^ o);
4428
- return L;
4432
+ var g = t.length, v = 0, p = 0, _ = "";
4433
+ for (d = 0; d < g; d++) p = (p + (m = l[v = (v + 1) % 256])) % 256, l[v] = l[p], l[p] = m, o = l[(l[v] + l[p]) % 256], _ += String.fromCharCode(t.charCodeAt(d) ^ o);
4434
+ return _;
4429
4435
  }
4430
4436
  /**
4431
4437
  * @license
@@ -4508,11 +4514,11 @@ function Vt(e) {
4508
4514
  Un(e = e || {}) === "object" && (n = e.orientation, r = e.unit || r, i = e.format || i, s = e.compress || e.compressPdf || s, (m = e.encryption || null) !== null && (m.userPassword = m.userPassword || "", m.ownerPassword = m.ownerPassword || "", m.userPermissions = m.userPermissions || []), l = typeof e.userUnit == "number" ? Math.abs(e.userUnit) : 1, e.precision !== void 0 && (t = e.precision), e.floatPrecision !== void 0 && (d = e.floatPrecision), u = e.defaultPathOperation || "S"), o = e.filters || (s === !0 ? ["FlateEncode"] : o), r = r || "mm", n = ("" + (n || "P")).toLowerCase();
4509
4515
  var g = e.putOnlyUsedFonts || !1, v = {}, p = { internal: {}, __private__: {} };
4510
4516
  p.__private__.PubSub = H0;
4511
- var L = "1.3", x = p.__private__.getPdfVersion = function() {
4512
- return L;
4517
+ var _ = "1.3", x = p.__private__.getPdfVersion = function() {
4518
+ return _;
4513
4519
  };
4514
4520
  p.__private__.setPdfVersion = function(f) {
4515
- L = f;
4521
+ _ = f;
4516
4522
  };
4517
4523
  var C = { a0: [2383.94, 3370.39], a1: [1683.78, 2383.94], a2: [1190.55, 1683.78], a3: [841.89, 1190.55], a4: [595.28, 841.89], a5: [419.53, 595.28], a6: [297.64, 419.53], a7: [209.76, 297.64], a8: [147.4, 209.76], a9: [104.88, 147.4], a10: [73.7, 104.88], b0: [2834.65, 4008.19], b1: [2004.09, 2834.65], b2: [1417.32, 2004.09], b3: [1000.63, 1417.32], b4: [708.66, 1000.63], b5: [498.9, 708.66], b6: [354.33, 498.9], b7: [249.45, 354.33], b8: [175.75, 249.45], b9: [124.72, 175.75], b10: [87.87, 124.72], c0: [2599.37, 3676.54], c1: [1836.85, 2599.37], c2: [1298.27, 1836.85], c3: [918.43, 1298.27], c4: [649.13, 918.43], c5: [459.21, 649.13], c6: [323.15, 459.21], c7: [229.61, 323.15], c8: [161.57, 229.61], c9: [113.39, 161.57], c10: [79.37, 113.39], dl: [311.81, 623.62], letter: [612, 792], "government-letter": [576, 756], legal: [612, 1008], "junior-legal": [576, 360], ledger: [1224, 792], tabloid: [792, 1224], "credit-card": [153, 243] };
4518
4524
  p.__private__.getPageFormats = function() {
@@ -4611,7 +4617,7 @@ function Vt(e) {
4611
4617
  }, p.getCreationDate = function(f) {
4612
4618
  return A(f);
4613
4619
  };
4614
- var _, b = p.__private__.padd2 = function(f) {
4620
+ var L, b = p.__private__.padd2 = function(f) {
4615
4621
  return ("0" + parseInt(f)).slice(-2);
4616
4622
  }, k = p.__private__.padd2Hex = function(f) {
4617
4623
  return ("00" + (f = f.toString())).substr(f.length);
@@ -4787,7 +4793,7 @@ function Vt(e) {
4787
4793
  }, p.beginTilingPattern = function(f) {
4788
4794
  X("beginTilingPattern()"), us(f.boundingBox[0], f.boundingBox[1], f.boundingBox[2] - f.boundingBox[0], f.boundingBox[3] - f.boundingBox[1], f.matrix);
4789
4795
  }, p.endTilingPattern = function(f, E) {
4790
- X("endTilingPattern()"), E.stream = V[_].join(`
4796
+ X("endTilingPattern()"), E.stream = V[L].join(`
4791
4797
  `), Mn(f, E), nn.publish("endTilingPattern", E), Hn.pop().restore();
4792
4798
  };
4793
4799
  var Rn, vn = p.__private__.newObject = function() {
@@ -4958,7 +4964,7 @@ Q`), wn(pe, !0), _e({ data: Ee, filters: It(), objectId: pe }), P("endobj"), ee;
4958
4964
  return String.fromCharCode.apply(void 0, lt);
4959
4965
  })(f, E).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
4960
4966
  }, Kt = p.__private__.beginPage = function(f) {
4961
- V[++Zt] = [], Et[Zt] = { objId: 0, contentsObjId: 0, userUnit: Number(l), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(f[0]), topRightY: Number(f[1]) } }, an(Zt), oe(V[_]);
4967
+ V[++Zt] = [], Et[Zt] = { objId: 0, contentsObjId: 0, userUnit: Number(l), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(f[0]), topRightY: Number(f[1]) } }, an(Zt), oe(V[L]);
4962
4968
  }, Je = function(f, E) {
4963
4969
  var M, ee, pe;
4964
4970
  switch (n = E || n, typeof f == "string" && (M = I(f.toLowerCase()), Array.isArray(M) && (ee = M[0], pe = M[1])), Array.isArray(f) && (ee = f[0] * Ze, pe = f[1] * Ze), isNaN(ee) && (ee = i[0], pe = i[1]), (ee > 14400 || pe > 14400) && (Zn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), ee = Math.min(14400, ee), pe = Math.min(14400, pe)), i = [ee, pe], n.substr(0, 1)) {
@@ -4970,9 +4976,9 @@ Q`), wn(pe, !0), _e({ data: Ee, filters: It(), objectId: pe }), P("endobj"), ee;
4970
4976
  }
4971
4977
  Kt(i), Ht(Dn), P(Gr), Ir !== 0 && P(Ir + " J"), cs !== 0 && P(cs + " j"), nn.publish("addPage", { pageNumber: Zt });
4972
4978
  }, Lt = function(f) {
4973
- f > 0 && f <= Zt && (V.splice(f, 1), Et.splice(f, 1), Zt--, _ > Zt && (_ = Zt), this.setPage(_));
4979
+ f > 0 && f <= Zt && (V.splice(f, 1), Et.splice(f, 1), Zt--, L > Zt && (L = Zt), this.setPage(L));
4974
4980
  }, an = function(f) {
4975
- f > 0 && f <= Zt && (_ = f);
4981
+ f > 0 && f <= Zt && (L = f);
4976
4982
  }, mn = p.__private__.getNumberOfPages = p.getNumberOfPages = function() {
4977
4983
  return V.length - 1;
4978
4984
  }, dr = function(f, E, M) {
@@ -5021,7 +5027,7 @@ Q`), wn(pe, !0), _e({ data: Ee, filters: It(), objectId: pe }), P("endobj"), ee;
5021
5027
  }, Yn = p.__private__.putTrailer = function() {
5022
5028
  P("trailer"), P("<<"), P("/Size " + (w + 1)), P("/Root " + w + " 0 R"), P("/Info " + (w - 1) + " 0 R"), m !== null && P("/Encrypt " + Sn.oid + " 0 R"), P("/ID [ <" + J + "> <" + J + "> ]"), P(">>");
5023
5029
  }, tn = p.__private__.putHeader = function() {
5024
- P("%PDF-" + L), P("%ºß¬à");
5030
+ P("%PDF-" + _), P("%ºß¬à");
5025
5031
  }, xn = p.__private__.putXRef = function() {
5026
5032
  var f = "0000000000";
5027
5033
  P("xref"), P("0 " + (w + 1)), P("0000000000 65535 f ");
@@ -5047,7 +5053,7 @@ Q`), wn(pe, !0), _e({ data: Ee, filters: It(), objectId: pe }), P("endobj"), ee;
5047
5053
  for (ee in ut) ut.hasOwnProperty(ee) && (ut[ee] instanceof bs ? kn(ut[ee]) : ut[ee] instanceof zs && Qt(ut[ee], M));
5048
5054
  })(f), nn.publish("putResources"), f.forEach(zr), zr({ resourcesOid: Xe, objectOid: Number.MAX_SAFE_INTEGER }), nn.publish("postPutResources"), m !== null && (Sn.oid = vn(), P("<<"), P("/Filter /Standard"), P("/V " + Sn.v), P("/R " + Sn.r), P("/U <" + Sn.toHexString(Sn.U) + ">"), P("/O <" + Sn.toHexString(Sn.O) + ">"), P("/P " + Sn.P), P(">>"), P("endobj")), en(), un();
5049
5055
  var E = H;
5050
- return xn(), Yn(), P("startxref"), P("" + E), P("%%EOF"), oe(V[_]), z.join(`
5056
+ return xn(), Yn(), P("startxref"), P("" + E), P("%%EOF"), oe(V[L]), z.join(`
5051
5057
  `);
5052
5058
  }, on = p.__private__.getBlob = function(f) {
5053
5059
  return new Blob([Ce(f)], { type: "application/pdf" });
@@ -5159,14 +5165,14 @@ Q`), wn(pe, !0), _e({ data: Ee, filters: It(), objectId: pe }), P("endobj"), ee;
5159
5165
  for (var E in Et) if (Et[E].objId === f) break;
5160
5166
  return ur(E);
5161
5167
  }, oi = p.__private__.getCurrentPageInfo = p.getCurrentPageInfo = function() {
5162
- return { objId: Et[_].objId, pageNumber: _, pageContext: Et[_] };
5168
+ return { objId: Et[L].objId, pageNumber: L, pageContext: Et[L] };
5163
5169
  };
5164
5170
  p.addPage = function() {
5165
5171
  return Je.apply(this, arguments), this;
5166
5172
  }, p.setPage = function() {
5167
- return an.apply(this, arguments), oe.call(this, V[_]), this;
5173
+ return an.apply(this, arguments), oe.call(this, V[L]), this;
5168
5174
  }, p.insertPage = function(f) {
5169
- return this.addPage(), this.movePage(_, f), this;
5175
+ return this.addPage(), this.movePage(L, f), this;
5170
5176
  }, p.movePage = function(f, E) {
5171
5177
  var M, ee;
5172
5178
  if (f > E) {
@@ -5524,7 +5530,7 @@ T* `) : f.join(` Tj
5524
5530
  var jr = p.__private__.getHorizontalCoordinate = function(f) {
5525
5531
  return O(f);
5526
5532
  }, Wr = p.__private__.getVerticalCoordinate = function(f) {
5527
- return U === $ ? f : Et[_].mediaBox.topRightY - Et[_].mediaBox.bottomLeftY - O(f);
5533
+ return U === $ ? f : Et[L].mediaBox.topRightY - Et[L].mediaBox.bottomLeftY - O(f);
5528
5534
  }, li = p.__private__.getHorizontalCoordinateString = p.getHorizontalCoordinateString = function(f) {
5529
5535
  return de(jr(f));
5530
5536
  }, Va = p.__private__.getVerticalCoordinateString = p.getVerticalCoordinateString = function(f) {
@@ -5633,13 +5639,13 @@ T* `) : f.join(` Tj
5633
5639
  isNaN(Le) || (Ee = parseFloat(Le));
5634
5640
  } }), this;
5635
5641
  }, qi = function() {
5636
- this.page = Zt, this.currentPage = _, this.pages = V.slice(0), this.pagesContext = Et.slice(0), this.x = Be, this.y = gt, this.matrix = st, this.width = di(_), this.height = hs(_), this.outputDestination = Q, this.id = "", this.objectNumber = -1;
5642
+ this.page = Zt, this.currentPage = L, this.pages = V.slice(0), this.pagesContext = Et.slice(0), this.x = Be, this.y = gt, this.matrix = st, this.width = di(L), this.height = hs(L), this.outputDestination = Q, this.id = "", this.objectNumber = -1;
5637
5643
  };
5638
5644
  qi.prototype.restore = function() {
5639
- Zt = this.page, _ = this.currentPage, Et = this.pagesContext, V = this.pages, Be = this.x, gt = this.y, st = this.matrix, mr(_, this.width), Xa(_, this.height), Q = this.outputDestination;
5645
+ Zt = this.page, L = this.currentPage, Et = this.pagesContext, V = this.pages, Be = this.x, gt = this.y, st = this.matrix, mr(L, this.width), Xa(L, this.height), Q = this.outputDestination;
5640
5646
  };
5641
5647
  var us = function(f, E, M, ee, pe) {
5642
- Hn.push(new qi()), Zt = _ = 0, V = [], Be = f, gt = E, st = pe, Kt([M, ee]);
5648
+ Hn.push(new qi()), Zt = L = 0, V = [], Be = f, gt = E, st = pe, Kt([M, ee]);
5643
5649
  };
5644
5650
  for (var Ci in p.beginFormObject = function(f, E, M, ee, pe) {
5645
5651
  return us(f, E, M, ee, pe), this;
@@ -5683,22 +5689,22 @@ T* `) : f.join(` Tj
5683
5689
  Et[f].mediaBox.topRightY = E + Et[f].mediaBox.bottomLeftY;
5684
5690
  }
5685
5691
  var W = p.getPageWidth = function(f) {
5686
- return di(f = f || _) / Ze;
5692
+ return di(f = f || L) / Ze;
5687
5693
  }, ve = p.setPageWidth = function(f, E) {
5688
5694
  mr(f, E * Ze);
5689
5695
  }, ze = p.getPageHeight = function(f) {
5690
- return hs(f = f || _) / Ze;
5696
+ return hs(f = f || L) / Ze;
5691
5697
  }, xe = p.setPageHeight = function(f, E) {
5692
5698
  Xa(f, E * Ze);
5693
5699
  };
5694
5700
  return p.internal = { pdfEscape: Wt, getStyle: za, getFont: pr, getFontSize: Re, getCharSpace: ci, getTextColor: ea, getLineHeight: Br, getLineHeightFactor: ga, getLineWidth: Wn, write: ae, getHorizontalCoordinate: jr, getVerticalCoordinate: Wr, getCoordinateString: li, getVerticalCoordinateString: Va, collections: {}, newObject: vn, newAdditionalObject: ot, newObjectDeferred: An, newObjectDeferredBegin: wn, getFilters: It, putStream: _e, events: nn, scaleFactor: Ze, pageSize: { getWidth: function() {
5695
- return W(_);
5701
+ return W(L);
5696
5702
  }, setWidth: function(f) {
5697
- ve(_, f);
5703
+ ve(L, f);
5698
5704
  }, getHeight: function() {
5699
- return ze(_);
5705
+ return ze(L);
5700
5706
  }, setHeight: function(f) {
5701
- xe(_, f);
5707
+ xe(L, f);
5702
5708
  } }, encryptionOptions: m, encryption: Sn, getEncryptor: function(f) {
5703
5709
  return m !== null ? Sn.encryptor(f, 0) : function(E) {
5704
5710
  return E;
@@ -5706,13 +5712,13 @@ T* `) : f.join(` Tj
5706
5712
  }, output: pn, getNumberOfPages: mn, get pages() {
5707
5713
  return V;
5708
5714
  }, out: P, f2: j, f3: K, getPageInfo: ur, getPageInfoByObjId: ka, getCurrentPageInfo: oi, getPDFVersion: x, Point: Qn, Rectangle: ds, Matrix: _t, hasHotfix: Nn }, Object.defineProperty(p.internal.pageSize, "width", { get: function() {
5709
- return W(_);
5715
+ return W(L);
5710
5716
  }, set: function(f) {
5711
- ve(_, f);
5717
+ ve(L, f);
5712
5718
  }, enumerable: !0, configurable: !0 }), Object.defineProperty(p.internal.pageSize, "height", { get: function() {
5713
- return ze(_);
5719
+ return ze(L);
5714
5720
  }, set: function(f) {
5715
- xe(_, f);
5721
+ xe(L, f);
5716
5722
  }, enumerable: !0, configurable: !0 }), (function(f) {
5717
5723
  for (var E = 0, M = be.length; E < M; E++) {
5718
5724
  var ee = Ve.call(this, f[E][0], f[E][1], f[E][2], be[E][3], !0);
@@ -5819,7 +5825,7 @@ var Ea = function(e, t) {
5819
5825
  s++;
5820
5826
  e: for (; s > 0; ) {
5821
5827
  t = "", s--;
5822
- var u, m, g = ol("3", e, s).height, v = e.multiline ? o - s : (o - g) / 2, p = v += 2, L = 0, x = 0, C = 0;
5828
+ var u, m, g = ol("3", e, s).height, v = e.multiline ? o - s : (o - g) / 2, p = v += 2, _ = 0, x = 0, C = 0;
5823
5829
  if (s <= 0) {
5824
5830
  t = `(...) Tj
5825
5831
  `, t += "% Width of Text: " + ol(t, e, s = 12).width + ", FieldWidth:" + l + `
@@ -5846,14 +5852,14 @@ var Ea = function(e, t) {
5846
5852
  x = ue;
5847
5853
  }
5848
5854
  }
5849
- for (var de = "", X = L; X <= x; X++) {
5855
+ for (var de = "", X = _; X <= x; X++) {
5850
5856
  var me = i[X];
5851
5857
  if (e.multiline) {
5852
5858
  if (X === x) {
5853
5859
  de += me[C] + " ", C = (C + 1) % me.length;
5854
5860
  continue;
5855
5861
  }
5856
- if (X === L) {
5862
+ if (X === _) {
5857
5863
  de += me[me.length - 1] + " ";
5858
5864
  continue;
5859
5865
  }
@@ -5873,7 +5879,7 @@ var Ea = function(e, t) {
5873
5879
  t += hn(u) + " " + hn(p) + ` Td
5874
5880
  `, t += "(" + As(de) + `) Tj
5875
5881
  `, t += -hn(u) + ` 0 Td
5876
- `, p = -(s + 2), m = 0, L = U ? x : x + 1, D++, I = "";
5882
+ `, p = -(s + 2), m = 0, _ = U ? x : x + 1, D++, I = "";
5877
5883
  }
5878
5884
  break;
5879
5885
  }
@@ -5922,10 +5928,10 @@ var Ea = function(e, t) {
5922
5928
  var p = l.appearanceStreamContent[v];
5923
5929
  if (g += "/" + v + " ", g += "<<", Object.keys(p).length >= 1 || Array.isArray(p)) {
5924
5930
  for (var o in p) if (p.hasOwnProperty(o)) {
5925
- var L = p[o];
5926
- typeof L == "function" && (L = L.call(i, l)), g += "/" + o + " " + L + " ", i.internal.acroformPlugin.xForms.indexOf(L) >= 0 || i.internal.acroformPlugin.xForms.push(L);
5931
+ var _ = p[o];
5932
+ typeof _ == "function" && (_ = _.call(i, l)), g += "/" + o + " " + _ + " ", i.internal.acroformPlugin.xForms.indexOf(_) >= 0 || i.internal.acroformPlugin.xForms.push(_);
5927
5933
  }
5928
- } else typeof (L = p) == "function" && (L = L.call(i, l)), g += "/" + o + " " + L, i.internal.acroformPlugin.xForms.indexOf(L) >= 0 || i.internal.acroformPlugin.xForms.push(L);
5934
+ } else typeof (_ = p) == "function" && (_ = _.call(i, l)), g += "/" + o + " " + _, i.internal.acroformPlugin.xForms.indexOf(_) >= 0 || i.internal.acroformPlugin.xForms.push(_);
5929
5935
  g += ">>";
5930
5936
  }
5931
5937
  d.push({ key: "AP", value: `<<
@@ -6163,15 +6169,15 @@ var ii = function e() {
6163
6169
  } }), Object.defineProperty(this, "Subtype", { enumerable: !0, configurable: !1, get: function() {
6164
6170
  return this.hasAnnotation ? "/Widget" : null;
6165
6171
  } });
6166
- var L, x = !1;
6172
+ var _, x = !1;
6167
6173
  Object.defineProperty(this, "hasAppearanceStream", { enumerable: !0, configurable: !0, get: function() {
6168
6174
  return x;
6169
6175
  }, set: function(I) {
6170
6176
  I = !!I, x = I;
6171
6177
  } }), Object.defineProperty(this, "page", { enumerable: !0, configurable: !0, get: function() {
6172
- if (L) return L;
6178
+ if (_) return _;
6173
6179
  }, set: function(I) {
6174
- L = I;
6180
+ _ = I;
6175
6181
  } }), Object.defineProperty(this, "readOnly", { enumerable: !0, configurable: !0, get: function() {
6176
6182
  return !!Cr(this.Ff, 1);
6177
6183
  }, set: function(I) {
@@ -6585,8 +6591,8 @@ function B1(e) {
6585
6591
  K.sMask !== void 0 && J.push({ key: "SMask", value: K.objectId + 1 + " 0 R" });
6586
6592
  var q = K.filter !== void 0 ? ["/" + K.filter] : void 0;
6587
6593
  if (R({ data: K.data, additionalKeyValues: J, alreadyAppliedFilters: q, objectId: K.objectId }), O("endobj"), "sMask" in K && K.sMask !== void 0) {
6588
- var ne, A = (ne = K.sMaskBitsPerComponent) !== null && ne !== void 0 ? ne : K.bitsPerComponent, _ = { width: K.width, height: K.height, colorSpace: "DeviceGray", bitsPerComponent: A, data: K.sMask };
6589
- "filter" in K && (_.decodeParameters = "/Predictor ".concat(K.predictor, " /Colors 1 /BitsPerComponent ").concat(A, " /Columns ").concat(K.width), _.filter = K.filter), j.call(this, _);
6594
+ var ne, A = (ne = K.sMaskBitsPerComponent) !== null && ne !== void 0 ? ne : K.bitsPerComponent, L = { width: K.width, height: K.height, colorSpace: "DeviceGray", bitsPerComponent: A, data: K.sMask };
6595
+ "filter" in K && (L.decodeParameters = "/Predictor ".concat(K.predictor, " /Colors 1 /BitsPerComponent ").concat(A, " /Columns ").concat(K.width), L.filter = K.filter), j.call(this, L);
6590
6596
  }
6591
6597
  if (K.colorSpace === I.INDEXED) {
6592
6598
  var b = this.internal.newObject();
@@ -6631,7 +6637,7 @@ function B1(e) {
6631
6637
  }
6632
6638
  return vl(j.toDataURL(te, 1).split("base64,").pop());
6633
6639
  }
6634
- }, L = function(j) {
6640
+ }, _ = function(j) {
6635
6641
  var K = this.internal.collections[t + "images"];
6636
6642
  if (K) {
6637
6643
  for (var O in K) if (j === K[O].alias) return K[O];
@@ -6642,9 +6648,9 @@ function B1(e) {
6642
6648
  var T = x.call(this, O, R, te), Y = this.internal.getCoordinateString, le = this.internal.getVerticalCoordinateString, q = u.call(this);
6643
6649
  if (O = T[0], R = T[1], q[te.index] = te, J) {
6644
6650
  J *= Math.PI / 180;
6645
- var ne = Math.cos(J), A = Math.sin(J), _ = function(k) {
6651
+ var ne = Math.cos(J), A = Math.sin(J), L = function(k) {
6646
6652
  return k.toFixed(4);
6647
- }, b = [_(ne), _(A), _(-1 * A), _(ne), 0, 0, "cm"];
6653
+ }, b = [L(ne), L(A), L(-1 * A), L(ne), 0, 0, "cm"];
6648
6654
  }
6649
6655
  this.internal.write("q"), J ? (this.internal.write([1, "0", "0", 1, Y(j), le(K + R), "cm"].join(" ")), this.internal.write(b.join(" ")), this.internal.write([Y(O), "0", "0", Y(R), "0", "0", "cm"].join(" "))) : this.internal.write([Y(O), "0", "0", Y(R), Y(j), le(K + R), "cm"].join(" ")), this.isAdvancedAPI() && this.internal.write([1, 0, 0, -1, 0, 0, "cm"].join(" ")), this.internal.write("/I" + te.index + " Do"), this.internal.write("Q");
6650
6656
  }, I = e.color_spaces = { DEVICE_RGB: "DeviceRGB", DEVICE_GRAY: "DeviceGray", DEVICE_CMYK: "DeviceCMYK", CAL_GREY: "CalGray", CAL_RGB: "CalRGB", LAB: "Lab", ICC_BASED: "ICCBased", INDEXED: "Indexed", PATTERN: "Pattern", SEPARATION: "Separation", DEVICE_N: "DeviceN" };
@@ -6697,7 +6703,7 @@ function B1(e) {
6697
6703
  if (v(j) && (j = p(j, K)), K = i(j, K), !g(K)) throw new Error("addImage does not support files of type '" + K + "', please ensure that a plugin for '" + K + "' support is added.");
6698
6704
  if (((T = O) == null || T.length === 0) && (O = (function(le) {
6699
6705
  return typeof le == "string" || se(le) ? $(le) : se(le.data) ? $(le.data) : null;
6700
- })(j)), (te = L.call(this, O)) || (j instanceof Uint8Array || K === "RGBA" || (J = j, j = ye(j)), te = this["process" + K.toUpperCase()](j, m.call(this), O, (function(le) {
6706
+ })(j)), (te = _.call(this, O)) || (j instanceof Uint8Array || K === "RGBA" || (J = j, j = ye(j)), te = this["process" + K.toUpperCase()](j, m.call(this), O, (function(le) {
6701
6707
  return le && typeof le == "string" && (le = le.toUpperCase()), le in e.image_compression ? le : D.NONE;
6702
6708
  })(R), J)), !te) throw new Error("An unknown error occurred whilst processing the image.");
6703
6709
  return te;
@@ -6748,7 +6754,7 @@ function B1(e) {
6748
6754
  this.internal.write("/Annots [");
6749
6755
  for (var v = 0; v < u.length; v++) {
6750
6756
  r = u[v];
6751
- var p = this.internal.pdfEscape, L = this.internal.getEncryptor(n.objId);
6757
+ var p = this.internal.pdfEscape, _ = this.internal.getEncryptor(n.objId);
6752
6758
  switch (r.type) {
6753
6759
  case "reference":
6754
6760
  this.internal.write(" " + r.object.objId + " 0 R ");
@@ -6762,14 +6768,14 @@ function B1(e) {
6762
6768
  case "freetext":
6763
6769
  i = "/Rect [" + o(r.bounds.x) + " " + l(r.bounds.y) + " " + o(r.bounds.x + r.bounds.w) + " " + l(r.bounds.y + r.bounds.h) + "] ";
6764
6770
  var U = r.color || "#000000";
6765
- s = "<</Type /Annot /Subtype /FreeText " + i + "/Contents (" + p(L(r.contents)) + ")", s += " /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + U + ")", s += " /Border [0 0 0]", s += " >>", this.internal.write(s);
6771
+ s = "<</Type /Annot /Subtype /FreeText " + i + "/Contents (" + p(_(r.contents)) + ")", s += " /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + U + ")", s += " /Border [0 0 0]", s += " >>", this.internal.write(s);
6766
6772
  break;
6767
6773
  case "link":
6768
6774
  if (r.options.name) {
6769
6775
  var ue = this.annotations._nameMap[r.options.name];
6770
6776
  r.options.pageNumber = ue.page, r.options.top = ue.y;
6771
6777
  } else r.options.top || (r.options.top = 0);
6772
- if (i = "/Rect [" + r.finalBounds.x + " " + r.finalBounds.y + " " + r.finalBounds.w + " " + r.finalBounds.h + "] ", s = "", r.options.url) s = "<</Type /Annot /Subtype /Link " + i + "/Border [0 0 0] /A <</S /URI /URI (" + p(L(r.options.url)) + ") >>";
6778
+ if (i = "/Rect [" + r.finalBounds.x + " " + r.finalBounds.y + " " + r.finalBounds.w + " " + r.finalBounds.h + "] ", s = "", r.options.url) s = "<</Type /Annot /Subtype /Link " + i + "/Border [0 0 0] /A <</S /URI /URI (" + p(_(r.options.url)) + ") >>";
6773
6779
  else if (r.options.pageNumber) switch (s = "<</Type /Annot /Subtype /Link " + i + "/Border [0 0 0] /Dest [" + this.internal.getPageInfo(r.options.pageNumber).objId + " 0 R", r.options.magFactor = r.options.magFactor || "XYZ", r.options.magFactor) {
6774
6780
  case "Fit":
6775
6781
  s += " /Fit]";
@@ -6861,7 +6867,7 @@ function B1(e) {
6861
6867
  ye[C] = g(ye[C]);
6862
6868
  }
6863
6869
  return ye.join(" ");
6864
- }, L = e.__arabicParser__.processArabic = e.processArabic = function() {
6870
+ }, _ = e.__arabicParser__.processArabic = e.processArabic = function() {
6865
6871
  var x, C = typeof arguments[0] == "string" ? arguments[0] : arguments[0].text, I = [];
6866
6872
  if (Array.isArray(C)) {
6867
6873
  var D = 0;
@@ -6870,7 +6876,7 @@ function B1(e) {
6870
6876
  } else x = p(C);
6871
6877
  return typeof arguments[0] == "string" ? x : (arguments[0].text = x, arguments[0]);
6872
6878
  };
6873
- e.events.push(["preProcessText", L]);
6879
+ e.events.push(["preProcessText", _]);
6874
6880
  })(Vt.API), Vt.API.autoPrint = function(e) {
6875
6881
  var t;
6876
6882
  return (e = e || {}).variant = e.variant || "non-conform", e.variant === "javascript" ? this.addJS("print({});") : (this.internal.events.subscribe("postPutResources", function() {
@@ -6970,11 +6976,11 @@ function B1(e) {
6970
6976
  }, set: function(x) {
6971
6977
  p = x;
6972
6978
  } });
6973
- var L = arguments[6];
6979
+ var _ = arguments[6];
6974
6980
  return Object.defineProperty(this, "align", { enumerable: !0, get: function() {
6975
- return L;
6981
+ return _;
6976
6982
  }, set: function(x) {
6977
- L = x;
6983
+ _ = x;
6978
6984
  } }), this;
6979
6985
  };
6980
6986
  s.prototype.clone = function() {
@@ -6985,7 +6991,7 @@ function B1(e) {
6985
6991
  return r.call(this), this.internal.__cell__.headerFunction = typeof d == "function" ? d : void 0, this;
6986
6992
  }, e.getTextDimensions = function(d, u) {
6987
6993
  r.call(this);
6988
- var m = (u = u || {}).fontSize || this.getFontSize(), g = u.font || this.getFont(), v = u.scaleFactor || this.internal.scaleFactor, p = 0, L = 0, x = 0, C = this;
6994
+ var m = (u = u || {}).fontSize || this.getFontSize(), g = u.font || this.getFont(), v = u.scaleFactor || this.internal.scaleFactor, p = 0, _ = 0, x = 0, C = this;
6989
6995
  if (!Array.isArray(d) && typeof d != "string") {
6990
6996
  if (typeof d != "number") throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");
6991
6997
  d = String(d);
@@ -6995,7 +7001,7 @@ function B1(e) {
6995
7001
  return $.concat(C.splitTextToSize(U, I));
6996
7002
  }, [])) : d = Array.isArray(d) ? d : [d];
6997
7003
  for (var D = 0; D < d.length; D++) p < (x = this.getStringUnitWidth(d[D], { font: g }) * m) && (p = x);
6998
- return p !== 0 && (L = d.length), { w: p /= v, h: Math.max((L * m * this.getLineHeightFactor() - m * (this.getLineHeightFactor() - 1)) / v, 0) };
7004
+ return p !== 0 && (_ = d.length), { w: p /= v, h: Math.max((_ * m * this.getLineHeightFactor() - m * (this.getLineHeightFactor() - 1)) / v, 0) };
6999
7005
  }, e.cellAddPage = function() {
7000
7006
  r.call(this), this.addPage();
7001
7007
  var d = this.internal.__cell__.margins || t;
@@ -7009,7 +7015,7 @@ function B1(e) {
7009
7015
  };
7010
7016
  e.table = function(d, u, m, g, v) {
7011
7017
  if (r.call(this), !m) throw new Error("No data for PDF table.");
7012
- var p, L, x, C, I = [], D = [], $ = [], U = {}, ue = {}, se = [], ye = [], de = (v = v || {}).autoSize || !1, X = v.printHeaders !== !1, me = v.css && v.css["font-size"] !== void 0 ? 16 * v.css["font-size"] : v.fontSize || 12, j = v.margins || Object.assign({ width: this.getPageWidth() }, t), K = typeof v.padding == "number" ? v.padding : 3, O = v.headerBackgroundColor || "#c8c8c8", R = v.headerTextColor || "#000";
7018
+ var p, _, x, C, I = [], D = [], $ = [], U = {}, ue = {}, se = [], ye = [], de = (v = v || {}).autoSize || !1, X = v.printHeaders !== !1, me = v.css && v.css["font-size"] !== void 0 ? 16 * v.css["font-size"] : v.fontSize || 12, j = v.margins || Object.assign({ width: this.getPageWidth() }, t), K = typeof v.padding == "number" ? v.padding : 3, O = v.headerBackgroundColor || "#c8c8c8", R = v.headerTextColor || "#000";
7013
7019
  if (i.call(this), this.internal.__cell__.printHeaders = X, this.internal.__cell__.margins = j, this.internal.__cell__.table_font_size = me, this.internal.__cell__.padding = K, this.internal.__cell__.headerBackgroundColor = O, this.internal.__cell__.headerTextColor = R, this.setFontSize(me), g == null) D = I = Object.keys(m[0]), $ = I.map(function() {
7014
7020
  return "left";
7015
7021
  });
@@ -7026,7 +7032,7 @@ function B1(e) {
7026
7032
  if (de || Array.isArray(g) && typeof g[0] == "string") for (p = 0; p < I.length; p += 1) {
7027
7033
  for (U[C = I[p]] = m.map(function(q) {
7028
7034
  return q[C];
7029
- }), this.setFont(void 0, "bold"), se.push(this.getTextDimensions(D[p], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w), L = U[C], this.setFont(void 0, "normal"), x = 0; x < L.length; x += 1) se.push(this.getTextDimensions(L[x], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w);
7035
+ }), this.setFont(void 0, "bold"), se.push(this.getTextDimensions(D[p], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w), _ = U[C], this.setFont(void 0, "normal"), x = 0; x < _.length; x += 1) se.push(this.getTextDimensions(_[x], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w);
7030
7036
  ue[C] = Math.max.apply(null, se) + K + K, se = [];
7031
7037
  }
7032
7038
  if (X) {
@@ -7053,12 +7059,12 @@ function B1(e) {
7053
7059
  var l = function(d, u) {
7054
7060
  var m = this.internal.__cell__.padding, g = this.internal.__cell__.table_font_size, v = this.internal.scaleFactor;
7055
7061
  return Object.keys(d).map(function(p) {
7056
- var L = d[p];
7057
- return this.splitTextToSize(L.hasOwnProperty("text") ? L.text : L, u[p] - m - m);
7062
+ var _ = d[p];
7063
+ return this.splitTextToSize(_.hasOwnProperty("text") ? _.text : _, u[p] - m - m);
7058
7064
  }, this).map(function(p) {
7059
7065
  return this.getLineHeightFactor() * p.length * g / v + m + m;
7060
- }, this).reduce(function(p, L) {
7061
- return Math.max(p, L);
7066
+ }, this).reduce(function(p, _) {
7067
+ return Math.max(p, _);
7062
7068
  }, 0);
7063
7069
  };
7064
7070
  e.setTableHeaderRow = function(d) {
@@ -7073,8 +7079,8 @@ function B1(e) {
7073
7079
  this.setFont(void 0, "bold");
7074
7080
  for (var v = [], p = 0; p < this.internal.__cell__.tableHeaderRow.length; p += 1) {
7075
7081
  m = this.internal.__cell__.tableHeaderRow[p].clone(), u && (m.y = this.internal.__cell__.margins.top || 0, v.push(m)), m.lineNumber = d;
7076
- var L = this.getTextColor();
7077
- this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), o.call(this, m), this.setTextColor(L);
7082
+ var _ = this.getTextColor();
7083
+ this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), o.call(this, m), this.setTextColor(_);
7078
7084
  }
7079
7085
  v.length > 0 && this.setTableHeaderRow(v), this.setFont(void 0, "normal"), n = !1;
7080
7086
  };
@@ -7127,17 +7133,17 @@ function th(e, t, n, r, i) {
7127
7133
  s = 9, o = ih;
7128
7134
  }
7129
7135
  e = (function(d, u, m, g) {
7130
- for (var v, p = d.length / u, L = new Uint8Array(d.length + p), x = [Gg, nh, rh, ah, ih], C = 0; C < p; C += 1) {
7136
+ for (var v, p = d.length / u, _ = new Uint8Array(d.length + p), x = [Gg, nh, rh, ah, ih], C = 0; C < p; C += 1) {
7131
7137
  var I = C * u, D = d.subarray(I, I + u);
7132
- if (g) L.set(g(D, m, v), I + C);
7138
+ if (g) _.set(g(D, m, v), I + C);
7133
7139
  else {
7134
7140
  for (var $ = x.length, U = [], ue = 0; ue < $; ue += 1) U[ue] = x[ue](D, m, v);
7135
7141
  var se = Vg(U.concat());
7136
- L.set(U[se], I + C);
7142
+ _.set(U[se], I + C);
7137
7143
  }
7138
7144
  v = D;
7139
7145
  }
7140
- return L;
7146
+ return _;
7141
7147
  })(e, t, Math.ceil(n * r / 8), o);
7142
7148
  var l = Jc(e, { level: s });
7143
7149
  return Vt.API.__addimage__.arrayBufferToBinaryString(l);
@@ -7219,12 +7225,12 @@ function Xg(e) {
7219
7225
  e[t++], e[t++];
7220
7226
  var l = null, d = null;
7221
7227
  s && (l = t, d = o, t += 3 * o);
7222
- var u = !0, m = [], g = 0, v = null, p = 0, L = null;
7228
+ var u = !0, m = [], g = 0, v = null, p = 0, _ = null;
7223
7229
  for (this.width = n, this.height = r; u && t < e.length; ) switch (e[t++]) {
7224
7230
  case 33:
7225
7231
  switch (e[t++]) {
7226
7232
  case 255:
7227
- if (e[t] !== 11 || e[t + 1] == 78 && e[t + 2] == 69 && e[t + 3] == 84 && e[t + 4] == 83 && e[t + 5] == 67 && e[t + 6] == 65 && e[t + 7] == 80 && e[t + 8] == 69 && e[t + 9] == 50 && e[t + 10] == 46 && e[t + 11] == 48 && e[t + 12] == 3 && e[t + 13] == 1 && e[t + 16] == 0) t += 14, L = e[t++] | e[t++] << 8, t++;
7233
+ if (e[t] !== 11 || e[t + 1] == 78 && e[t + 2] == 69 && e[t + 3] == 84 && e[t + 4] == 83 && e[t + 5] == 67 && e[t + 6] == 65 && e[t + 7] == 80 && e[t + 8] == 69 && e[t + 9] == 50 && e[t + 10] == 46 && e[t + 11] == 48 && e[t + 12] == 3 && e[t + 13] == 1 && e[t + 16] == 0) t += 14, _ = e[t++] | e[t++] << 8, t++;
7228
7234
  else for (t += 12; ; ) {
7229
7235
  if (!((j = e[t++]) >= 0)) throw Error("Invalid block size");
7230
7236
  if (j === 0) break;
@@ -7268,7 +7274,7 @@ function Xg(e) {
7268
7274
  this.numFrames = function() {
7269
7275
  return m.length;
7270
7276
  }, this.loopCount = function() {
7271
- return L;
7277
+ return _;
7272
7278
  }, this.frameInfo = function(K) {
7273
7279
  if (K < 0 || K >= m.length) throw new Error("Frame index out of range.");
7274
7280
  return m[K];
@@ -7277,11 +7283,11 @@ function Xg(e) {
7277
7283
  oh(e, R.data_offset, J, te);
7278
7284
  var T = R.palette_offset, Y = R.transparent_index;
7279
7285
  Y === null && (Y = 256);
7280
- var le = R.width, q = n - le, ne = le, A = 4 * (R.y * n + R.x), _ = 4 * ((R.y + R.height) * n + R.x), b = A, k = 4 * q;
7286
+ var le = R.width, q = n - le, ne = le, A = 4 * (R.y * n + R.x), L = 4 * ((R.y + R.height) * n + R.x), b = A, k = 4 * q;
7281
7287
  R.interlaced === !0 && (k += 4 * n * 7);
7282
7288
  for (var w = 8, S = 0, z = J.length; S < z; ++S) {
7283
7289
  var H = J[S];
7284
- if (ne === 0 && (ne = le, (b += k) >= _ && (k = 4 * q + 4 * n * (w - 1), b = A + (le + q) * (w << 1), w >>= 1)), H === Y) b += 4;
7290
+ if (ne === 0 && (ne = le, (b += k) >= L && (k = 4 * q + 4 * n * (w - 1), b = A + (le + q) * (w << 1), w >>= 1)), H === Y) b += 4;
7285
7291
  else {
7286
7292
  var ce = e[T + 3 * H], V = e[T + 3 * H + 1], F = e[T + 3 * H + 2];
7287
7293
  O[b++] = F, O[b++] = V, O[b++] = ce, O[b++] = 255;
@@ -7293,11 +7299,11 @@ function Xg(e) {
7293
7299
  oh(e, R.data_offset, J, te);
7294
7300
  var T = R.palette_offset, Y = R.transparent_index;
7295
7301
  Y === null && (Y = 256);
7296
- var le = R.width, q = n - le, ne = le, A = 4 * (R.y * n + R.x), _ = 4 * ((R.y + R.height) * n + R.x), b = A, k = 4 * q;
7302
+ var le = R.width, q = n - le, ne = le, A = 4 * (R.y * n + R.x), L = 4 * ((R.y + R.height) * n + R.x), b = A, k = 4 * q;
7297
7303
  R.interlaced === !0 && (k += 4 * n * 7);
7298
7304
  for (var w = 8, S = 0, z = J.length; S < z; ++S) {
7299
7305
  var H = J[S];
7300
- if (ne === 0 && (ne = le, (b += k) >= _ && (k = 4 * q + 4 * n * (w - 1), b = A + (le + q) * (w << 1), w >>= 1)), H === Y) b += 4;
7306
+ if (ne === 0 && (ne = le, (b += k) >= L && (k = 4 * q + 4 * n * (w - 1), b = A + (le + q) * (w << 1), w >>= 1)), H === Y) b += 4;
7301
7307
  else {
7302
7308
  var ce = e[T + 3 * H], V = e[T + 3 * H + 1], F = e[T + 3 * H + 2];
7303
7309
  O[b++] = ce, O[b++] = V, O[b++] = F, O[b++] = 255;
@@ -7307,19 +7313,19 @@ function Xg(e) {
7307
7313
  };
7308
7314
  }
7309
7315
  function oh(e, t, n, r) {
7310
- for (var i = e[t++], s = 1 << i, o = s + 1, l = o + 1, d = i + 1, u = (1 << d) - 1, m = 0, g = 0, v = 0, p = e[t++], L = new Int32Array(4096), x = null; ; ) {
7316
+ for (var i = e[t++], s = 1 << i, o = s + 1, l = o + 1, d = i + 1, u = (1 << d) - 1, m = 0, g = 0, v = 0, p = e[t++], _ = new Int32Array(4096), x = null; ; ) {
7311
7317
  for (; m < 16 && p !== 0; ) g |= e[t++] << m, m += 8, p === 1 ? p = e[t++] : --p;
7312
7318
  if (m < d) break;
7313
7319
  var C = g & u;
7314
7320
  if (g >>= d, m -= d, C !== s) {
7315
7321
  if (C === o) break;
7316
- for (var I = C < l ? C : x, D = 0, $ = I; $ > s; ) $ = L[$] >> 8, ++D;
7322
+ for (var I = C < l ? C : x, D = 0, $ = I; $ > s; ) $ = _[$] >> 8, ++D;
7317
7323
  var U = $;
7318
7324
  if (v + D + (I !== C ? 1 : 0) > r) return void Zn.log("Warning, gif stream longer than expected.");
7319
7325
  n[v++] = U;
7320
7326
  var ue = v += D;
7321
- for (I !== C && (n[v++] = U), $ = I; D--; ) $ = L[$], n[--ue] = 255 & $, $ >>= 8;
7322
- x !== null && l < 4096 && (L[l++] = x << 8 | U, l >= u + 1 && d < 12 && (++d, u = u << 1 | 1)), x = C;
7327
+ for (I !== C && (n[v++] = U), $ = I; D--; ) $ = _[$], n[--ue] = 255 & $, $ >>= 8;
7328
+ x !== null && l < 4096 && (_[l++] = x << 8 | U, l >= u + 1 && d < 12 && (++d, u = u << 1 | 1)), x = C;
7323
7329
  } else l = o + 1, u = (1 << (d = i + 1)) - 1, x = null;
7324
7330
  }
7325
7331
  return v !== r && Zn.log("Warning, gif stream shorter than expected."), n;
@@ -7357,16 +7363,16 @@ function oh(e, t, n, r) {
7357
7363
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7358
7364
  */
7359
7365
  function Lc(e) {
7360
- var t, n, r, i, s, o = Math.floor, l = new Array(64), d = new Array(64), u = new Array(64), m = new Array(64), g = new Array(65535), v = new Array(65535), p = new Array(64), L = new Array(64), x = [], C = 0, I = 7, D = new Array(64), $ = new Array(64), U = new Array(64), ue = new Array(256), se = new Array(2048), ye = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63], de = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], X = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], me = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], j = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], K = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], O = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], R = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], te = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
7361
- function J(A, _) {
7366
+ var t, n, r, i, s, o = Math.floor, l = new Array(64), d = new Array(64), u = new Array(64), m = new Array(64), g = new Array(65535), v = new Array(65535), p = new Array(64), _ = new Array(64), x = [], C = 0, I = 7, D = new Array(64), $ = new Array(64), U = new Array(64), ue = new Array(256), se = new Array(2048), ye = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63], de = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], X = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], me = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], j = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], K = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], O = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], R = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], te = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
7367
+ function J(A, L) {
7362
7368
  for (var b = 0, k = 0, w = new Array(), S = 1; S <= 16; S++) {
7363
- for (var z = 1; z <= A[S]; z++) w[_[k]] = [], w[_[k]][0] = b, w[_[k]][1] = S, k++, b++;
7369
+ for (var z = 1; z <= A[S]; z++) w[L[k]] = [], w[L[k]][0] = b, w[L[k]][1] = S, k++, b++;
7364
7370
  b *= 2;
7365
7371
  }
7366
7372
  return w;
7367
7373
  }
7368
7374
  function T(A) {
7369
- for (var _ = A[0], b = A[1] - 1; b >= 0; ) _ & 1 << b && (C |= 1 << I), b--, --I < 0 && (C == 255 ? (Y(255), Y(0)) : Y(C), I = 7, C = 0);
7375
+ for (var L = A[0], b = A[1] - 1; b >= 0; ) L & 1 << b && (C |= 1 << I), b--, --I < 0 && (C == 255 ? (Y(255), Y(0)) : Y(C), I = 7, C = 0);
7370
7376
  }
7371
7377
  function Y(A) {
7372
7378
  x.push(A);
@@ -7374,7 +7380,7 @@ function Lc(e) {
7374
7380
  function le(A) {
7375
7381
  Y(A >> 8 & 255), Y(255 & A);
7376
7382
  }
7377
- function q(A, _, b, k, w) {
7383
+ function q(A, L, b, k, w) {
7378
7384
  for (var S, z = w[0], H = w[240], ce = (function(Ne, qe) {
7379
7385
  var Re, Ye, Ue, tt, je, ge, We, Oe, Me, Ze, Be = 0;
7380
7386
  for (Me = 0; Me < 8; ++Me) {
@@ -7397,38 +7403,38 @@ function Lc(e) {
7397
7403
  }
7398
7404
  for (Me = 0; Me < 64; ++Me) Ze = Ne[Me] * qe[Me], p[Me] = Ze > 0 ? Ze + 0.5 | 0 : Ze - 0.5 | 0;
7399
7405
  return p;
7400
- })(A, _), V = 0; V < 64; ++V) L[ye[V]] = ce[V];
7401
- var F = L[0] - b;
7402
- b = L[0], F == 0 ? T(k[0]) : (T(k[v[S = 32767 + F]]), T(g[S]));
7403
- for (var Q = 63; Q > 0 && L[Q] == 0; ) Q--;
7406
+ })(A, L), V = 0; V < 64; ++V) _[ye[V]] = ce[V];
7407
+ var F = _[0] - b;
7408
+ b = _[0], F == 0 ? T(k[0]) : (T(k[v[S = 32767 + F]]), T(g[S]));
7409
+ for (var Q = 63; Q > 0 && _[Q] == 0; ) Q--;
7404
7410
  if (Q == 0) return T(z), b;
7405
7411
  for (var oe, P = 1; P <= Q; ) {
7406
- for (var ae = P; L[P] == 0 && P <= Q; ) ++P;
7412
+ for (var ae = P; _[P] == 0 && P <= Q; ) ++P;
7407
7413
  var Ce = P - ae;
7408
7414
  if (Ce >= 16) {
7409
7415
  oe = Ce >> 4;
7410
7416
  for (var be = 1; be <= oe; ++be) T(H);
7411
7417
  Ce &= 15;
7412
7418
  }
7413
- S = 32767 + L[P], T(w[(Ce << 4) + v[S]]), T(g[S]), P++;
7419
+ S = 32767 + _[P], T(w[(Ce << 4) + v[S]]), T(g[S]), P++;
7414
7420
  }
7415
7421
  return Q != 63 && T(z), b;
7416
7422
  }
7417
7423
  function ne(A) {
7418
- A = Math.min(Math.max(A, 1), 100), s != A && ((function(_) {
7424
+ A = Math.min(Math.max(A, 1), 100), s != A && ((function(L) {
7419
7425
  for (var b = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], k = 0; k < 64; k++) {
7420
- var w = o((b[k] * _ + 50) / 100);
7426
+ var w = o((b[k] * L + 50) / 100);
7421
7427
  w = Math.min(Math.max(w, 1), 255), l[ye[k]] = w;
7422
7428
  }
7423
7429
  for (var S = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99], z = 0; z < 64; z++) {
7424
- var H = o((S[z] * _ + 50) / 100);
7430
+ var H = o((S[z] * L + 50) / 100);
7425
7431
  H = Math.min(Math.max(H, 1), 255), d[ye[z]] = H;
7426
7432
  }
7427
7433
  for (var ce = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379], V = 0, F = 0; F < 8; F++) for (var Q = 0; Q < 8; Q++) u[V] = 1 / (l[ye[V]] * ce[F] * ce[Q] * 8), m[V] = 1 / (d[ye[V]] * ce[F] * ce[Q] * 8), V++;
7428
7434
  })(A < 50 ? Math.floor(5e3 / A) : Math.floor(200 - 2 * A)), s = A);
7429
7435
  }
7430
- this.encode = function(A, _) {
7431
- _ && ne(_), x = new Array(), C = 0, I = 7, le(65496), le(65504), le(16), Y(74), Y(70), Y(73), Y(70), Y(0), Y(1), Y(1), Y(0), le(1), le(1), Y(0), Y(0), (function() {
7436
+ this.encode = function(A, L) {
7437
+ L && ne(L), x = new Array(), C = 0, I = 7, le(65496), le(65504), le(16), Y(74), Y(70), Y(73), Y(70), Y(0), Y(1), Y(1), Y(0), le(1), le(1), Y(0), Y(0), (function() {
7432
7438
  le(65499), le(132), Y(0);
7433
7439
  for (var Ye = 0; Ye < 64; Ye++) Y(l[Ye]);
7434
7440
  Y(1);
@@ -7464,12 +7470,12 @@ function Lc(e) {
7464
7470
  }
7465
7471
  return le(65497), new Uint8Array(x);
7466
7472
  }, e = e || 50, (function() {
7467
- for (var A = String.fromCharCode, _ = 0; _ < 256; _++) ue[_] = A(_);
7473
+ for (var A = String.fromCharCode, L = 0; L < 256; L++) ue[L] = A(L);
7468
7474
  })(), t = J(de, X), n = J(K, O), r = J(me, j), i = J(R, te), (function() {
7469
- for (var A = 1, _ = 2, b = 1; b <= 15; b++) {
7470
- for (var k = A; k < _; k++) v[32767 + k] = b, g[32767 + k] = [], g[32767 + k][1] = b, g[32767 + k][0] = k;
7471
- for (var w = -(_ - 1); w <= -A; w++) v[32767 + w] = b, g[32767 + w] = [], g[32767 + w][1] = b, g[32767 + w][0] = _ - 1 + w;
7472
- A <<= 1, _ <<= 1;
7475
+ for (var A = 1, L = 2, b = 1; b <= 15; b++) {
7476
+ for (var k = A; k < L; k++) v[32767 + k] = b, g[32767 + k] = [], g[32767 + k][1] = b, g[32767 + k][0] = k;
7477
+ for (var w = -(L - 1); w <= -A; w++) v[32767 + w] = b, g[32767 + w] = [], g[32767 + w][1] = b, g[32767 + w][0] = L - 1 + w;
7478
+ A <<= 1, L <<= 1;
7473
7479
  }
7474
7480
  })(), (function() {
7475
7481
  for (var A = 0; A < 256; A++) se[A] = 19595 * A, se[A + 256 | 0] = 38470 * A, se[A + 512 | 0] = 7471 * A + 32768, se[A + 768 | 0] = -11059 * A, se[A + 1024 | 0] = -21709 * A, se[A + 1280 | 0] = 32768 * A + 8421375, se[A + 1536 | 0] = -27439 * A, se[A + 1792 | 0] = -5329 * A;
@@ -7598,7 +7604,7 @@ function lh(e) {
7598
7604
  function A() {
7599
7605
  this.b = this.Ca = this.I = 0, this.oa = [], this.pa = 0, this.Jd = [], this.Yc = 0, this.Zc = [], this.Ka = 0;
7600
7606
  }
7601
- function _() {
7607
+ function L() {
7602
7608
  this.Ra = 0, this.oa = [], this.h = this.u = this.bb = this.Sb = this.pa = 0;
7603
7609
  }
7604
7610
  function b(c) {
@@ -8579,7 +8585,7 @@ function lh(e) {
8579
8585
  this.ua = 0, this.Wa = new Ce(), this.vb = new Ce(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new te(), this.yc = new O();
8580
8586
  }
8581
8587
  function lt() {
8582
- this.xb = this.a = 0, this.l = new un(), this.ca = new Zt(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new _(), this.Pb = 0, this.wd = new _(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new Ie(), this.ab = 0, this.gc = o(4, He), this.Oc = 0;
8588
+ this.xb = this.a = 0, this.l = new un(), this.ca = new Zt(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new L(), this.Pb = 0, this.wd = new L(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new Ie(), this.ab = 0, this.gc = o(4, He), this.Oc = 0;
8583
8589
  }
8584
8590
  function mt() {
8585
8591
  this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new un(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
@@ -8926,7 +8932,7 @@ function lh(e) {
8926
8932
  Fe = 7;
8927
8933
  break;
8928
8934
  }
8929
- re = Z, fe = Pe, Ke = G, c == null || 5 > y ? c = 0 : 5 <= y && c[h + 0] == 47 && !(c[h + 4] >> 5) ? (Qe = [0], jt = [0], ft = [0], le(it = new _(), c, h, y), yn(it, Qe, jt, ft) ? (re != null && (re[0] = Qe[0]), fe != null && (fe[0] = jt[0]), Ke != null && (Ke[0] = ft[0]), c = 1) : c = 0) : c = 0;
8935
+ re = Z, fe = Pe, Ke = G, c == null || 5 > y ? c = 0 : 5 <= y && c[h + 0] == 47 && !(c[h + 4] >> 5) ? (Qe = [0], jt = [0], ft = [0], le(it = new L(), c, h, y), yn(it, Qe, jt, ft) ? (re != null && (re[0] = Qe[0]), fe != null && (fe[0] = jt[0]), Ke != null && (Ke[0] = ft[0]), c = 1) : c = 0) : c = 0;
8930
8936
  } else {
8931
8937
  if (10 > y) {
8932
8938
  Fe = 7;
@@ -9284,7 +9290,7 @@ function lh(e) {
9284
9290
  return (X[me + 0] | X[me + 1] << 8 | X[me + 2] << 16 | X[me + 3] << 24) >>> 0;
9285
9291
  }
9286
9292
  new d();
9287
- var p = [0], L = [0], x = [], C = new d(), I = e, D = (function(X, me) {
9293
+ var p = [0], _ = [0], x = [], C = new d(), I = e, D = (function(X, me) {
9288
9294
  var j = {}, K = 0, O = !1, R = 0, te = 0;
9289
9295
  if (j.frames = [], !/** @license
9290
9296
  * Copyright (c) 2017 Dominik Homberger
@@ -9294,8 +9300,8 @@ function lh(e) {
9294
9300
  https://webpjs.appspot.com
9295
9301
  WebPRiffParser dominikhlbg@gmail.com
9296
9302
  */
9297
- (function(A, _) {
9298
- for (var b = 0; b < 4; b++) if (A[_ + b] != "RIFF".charCodeAt(b)) return !0;
9303
+ (function(A, L) {
9304
+ for (var b = 0; b < 4; b++) if (A[L + b] != "RIFF".charCodeAt(b)) return !0;
9299
9305
  return !1;
9300
9306
  })(X, me)) {
9301
9307
  for (v(X, me += 4), me += 8; me < X.length; ) {
@@ -9330,13 +9336,13 @@ function lh(e) {
9330
9336
  D.response = I, D.rgbaoutput = !0, D.dataurl = !1;
9331
9337
  var $ = D.header ? D.header : null, U = D.frames ? D.frames : null;
9332
9338
  if ($) {
9333
- $.loop_counter = $.loop_count, p = [$.canvas_height], L = [$.canvas_width];
9339
+ $.loop_counter = $.loop_count, p = [$.canvas_height], _ = [$.canvas_width];
9334
9340
  for (var ue = 0; ue < U.length && U[ue].blend != 0; ue++) ;
9335
9341
  }
9336
- var se = U[0], ye = C.WebPDecodeRGBA(I, se.src_off, se.src_size, L, p);
9337
- se.rgba = ye, se.imgwidth = L[0], se.imgheight = p[0];
9338
- for (var de = 0; de < L[0] * p[0] * 4; de++) x[de] = ye[de];
9339
- return this.width = L, this.height = p, this.data = x, this;
9342
+ var se = U[0], ye = C.WebPDecodeRGBA(I, se.src_off, se.src_size, _, p);
9343
+ se.rgba = ye, se.imgwidth = _[0], se.imgheight = p[0];
9344
+ for (var de = 0; de < _[0] * p[0] * 4; de++) x[de] = ye[de];
9345
+ return this.width = _, this.height = p, this.data = x, this;
9340
9346
  }
9341
9347
  (function(e) {
9342
9348
  var t, n, r, i, s, o, l, d, u, m = function(A) {
@@ -9349,9 +9355,9 @@ function lh(e) {
9349
9355
  Object.defineProperty(this, "canvas", { get: function() {
9350
9356
  return { parentNode: !1, style: !1 };
9351
9357
  } });
9352
- var _ = A;
9358
+ var L = A;
9353
9359
  Object.defineProperty(this, "pdf", { get: function() {
9354
- return _;
9360
+ return L;
9355
9361
  } });
9356
9362
  var b = !1;
9357
9363
  Object.defineProperty(this, "pageWrapXEnabled", { get: function() {
@@ -9601,142 +9607,142 @@ function lh(e) {
9601
9607
  U.call(this, "stroke", !1);
9602
9608
  }, g.prototype.beginPath = function() {
9603
9609
  this.path = [{ type: "begin" }];
9604
- }, g.prototype.moveTo = function(A, _) {
9605
- if (isNaN(A) || isNaN(_)) throw Zn.error("jsPDF.context2d.moveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.moveTo");
9606
- var b = this.ctx.transform.applyToPoint(new o(A, _));
9607
- this.path.push({ type: "mt", x: b.x, y: b.y }), this.ctx.lastPoint = new o(A, _);
9610
+ }, g.prototype.moveTo = function(A, L) {
9611
+ if (isNaN(A) || isNaN(L)) throw Zn.error("jsPDF.context2d.moveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.moveTo");
9612
+ var b = this.ctx.transform.applyToPoint(new o(A, L));
9613
+ this.path.push({ type: "mt", x: b.x, y: b.y }), this.ctx.lastPoint = new o(A, L);
9608
9614
  }, g.prototype.closePath = function() {
9609
- var A = new o(0, 0), _ = 0;
9610
- for (_ = this.path.length - 1; _ !== -1; _--) if (this.path[_].type === "begin" && Un(this.path[_ + 1]) === "object" && typeof this.path[_ + 1].x == "number") {
9611
- A = new o(this.path[_ + 1].x, this.path[_ + 1].y);
9615
+ var A = new o(0, 0), L = 0;
9616
+ for (L = this.path.length - 1; L !== -1; L--) if (this.path[L].type === "begin" && Un(this.path[L + 1]) === "object" && typeof this.path[L + 1].x == "number") {
9617
+ A = new o(this.path[L + 1].x, this.path[L + 1].y);
9612
9618
  break;
9613
9619
  }
9614
9620
  this.path.push({ type: "close" }), this.ctx.lastPoint = new o(A.x, A.y);
9615
- }, g.prototype.lineTo = function(A, _) {
9616
- if (isNaN(A) || isNaN(_)) throw Zn.error("jsPDF.context2d.lineTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.lineTo");
9617
- var b = this.ctx.transform.applyToPoint(new o(A, _));
9621
+ }, g.prototype.lineTo = function(A, L) {
9622
+ if (isNaN(A) || isNaN(L)) throw Zn.error("jsPDF.context2d.lineTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.lineTo");
9623
+ var b = this.ctx.transform.applyToPoint(new o(A, L));
9618
9624
  this.path.push({ type: "lt", x: b.x, y: b.y }), this.ctx.lastPoint = new o(b.x, b.y);
9619
9625
  }, g.prototype.clip = function() {
9620
9626
  this.ctx.clip_path = JSON.parse(JSON.stringify(this.path)), U.call(this, null, !0);
9621
- }, g.prototype.quadraticCurveTo = function(A, _, b, k) {
9622
- if (isNaN(b) || isNaN(k) || isNaN(A) || isNaN(_)) throw Zn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");
9623
- var w = this.ctx.transform.applyToPoint(new o(b, k)), S = this.ctx.transform.applyToPoint(new o(A, _));
9627
+ }, g.prototype.quadraticCurveTo = function(A, L, b, k) {
9628
+ if (isNaN(b) || isNaN(k) || isNaN(A) || isNaN(L)) throw Zn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");
9629
+ var w = this.ctx.transform.applyToPoint(new o(b, k)), S = this.ctx.transform.applyToPoint(new o(A, L));
9624
9630
  this.path.push({ type: "qct", x1: S.x, y1: S.y, x: w.x, y: w.y }), this.ctx.lastPoint = new o(w.x, w.y);
9625
- }, g.prototype.bezierCurveTo = function(A, _, b, k, w, S) {
9626
- if (isNaN(w) || isNaN(S) || isNaN(A) || isNaN(_) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");
9627
- var z = this.ctx.transform.applyToPoint(new o(w, S)), H = this.ctx.transform.applyToPoint(new o(A, _)), ce = this.ctx.transform.applyToPoint(new o(b, k));
9631
+ }, g.prototype.bezierCurveTo = function(A, L, b, k, w, S) {
9632
+ if (isNaN(w) || isNaN(S) || isNaN(A) || isNaN(L) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");
9633
+ var z = this.ctx.transform.applyToPoint(new o(w, S)), H = this.ctx.transform.applyToPoint(new o(A, L)), ce = this.ctx.transform.applyToPoint(new o(b, k));
9628
9634
  this.path.push({ type: "bct", x1: H.x, y1: H.y, x2: ce.x, y2: ce.y, x: z.x, y: z.y }), this.ctx.lastPoint = new o(z.x, z.y);
9629
- }, g.prototype.arc = function(A, _, b, k, w, S) {
9630
- if (isNaN(A) || isNaN(_) || isNaN(b) || isNaN(k) || isNaN(w)) throw Zn.error("jsPDF.context2d.arc: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.arc");
9635
+ }, g.prototype.arc = function(A, L, b, k, w, S) {
9636
+ if (isNaN(A) || isNaN(L) || isNaN(b) || isNaN(k) || isNaN(w)) throw Zn.error("jsPDF.context2d.arc: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.arc");
9631
9637
  if (S = !!S, !this.ctx.transform.isIdentity) {
9632
- var z = this.ctx.transform.applyToPoint(new o(A, _));
9633
- A = z.x, _ = z.y;
9638
+ var z = this.ctx.transform.applyToPoint(new o(A, L));
9639
+ A = z.x, L = z.y;
9634
9640
  var H = this.ctx.transform.applyToPoint(new o(0, b)), ce = this.ctx.transform.applyToPoint(new o(0, 0));
9635
9641
  b = Math.sqrt(Math.pow(H.x - ce.x, 2) + Math.pow(H.y - ce.y, 2));
9636
9642
  }
9637
- Math.abs(w - k) >= 2 * Math.PI && (k = 0, w = 2 * Math.PI), this.path.push({ type: "arc", x: A, y: _, radius: b, startAngle: k, endAngle: w, counterclockwise: S });
9638
- }, g.prototype.arcTo = function(A, _, b, k, w) {
9643
+ Math.abs(w - k) >= 2 * Math.PI && (k = 0, w = 2 * Math.PI), this.path.push({ type: "arc", x: A, y: L, radius: b, startAngle: k, endAngle: w, counterclockwise: S });
9644
+ }, g.prototype.arcTo = function(A, L, b, k, w) {
9639
9645
  throw new Error("arcTo not implemented.");
9640
- }, g.prototype.rect = function(A, _, b, k) {
9641
- if (isNaN(A) || isNaN(_) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.rect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rect");
9642
- this.moveTo(A, _), this.lineTo(A + b, _), this.lineTo(A + b, _ + k), this.lineTo(A, _ + k), this.lineTo(A, _), this.lineTo(A + b, _), this.lineTo(A, _);
9643
- }, g.prototype.fillRect = function(A, _, b, k) {
9644
- if (isNaN(A) || isNaN(_) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.fillRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillRect");
9646
+ }, g.prototype.rect = function(A, L, b, k) {
9647
+ if (isNaN(A) || isNaN(L) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.rect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rect");
9648
+ this.moveTo(A, L), this.lineTo(A + b, L), this.lineTo(A + b, L + k), this.lineTo(A, L + k), this.lineTo(A, L), this.lineTo(A + b, L), this.lineTo(A, L);
9649
+ }, g.prototype.fillRect = function(A, L, b, k) {
9650
+ if (isNaN(A) || isNaN(L) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.fillRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillRect");
9645
9651
  if (!p.call(this)) {
9646
9652
  var w = {};
9647
- this.lineCap !== "butt" && (w.lineCap = this.lineCap, this.lineCap = "butt"), this.lineJoin !== "miter" && (w.lineJoin = this.lineJoin, this.lineJoin = "miter"), this.beginPath(), this.rect(A, _, b, k), this.fill(), w.hasOwnProperty("lineCap") && (this.lineCap = w.lineCap), w.hasOwnProperty("lineJoin") && (this.lineJoin = w.lineJoin);
9648
- }
9649
- }, g.prototype.strokeRect = function(A, _, b, k) {
9650
- if (isNaN(A) || isNaN(_) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.strokeRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");
9651
- L.call(this) || (this.beginPath(), this.rect(A, _, b, k), this.stroke());
9652
- }, g.prototype.clearRect = function(A, _, b, k) {
9653
- if (isNaN(A) || isNaN(_) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.clearRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.clearRect");
9654
- this.ignoreClearRect || (this.fillStyle = "#ffffff", this.fillRect(A, _, b, k));
9653
+ this.lineCap !== "butt" && (w.lineCap = this.lineCap, this.lineCap = "butt"), this.lineJoin !== "miter" && (w.lineJoin = this.lineJoin, this.lineJoin = "miter"), this.beginPath(), this.rect(A, L, b, k), this.fill(), w.hasOwnProperty("lineCap") && (this.lineCap = w.lineCap), w.hasOwnProperty("lineJoin") && (this.lineJoin = w.lineJoin);
9654
+ }
9655
+ }, g.prototype.strokeRect = function(A, L, b, k) {
9656
+ if (isNaN(A) || isNaN(L) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.strokeRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");
9657
+ _.call(this) || (this.beginPath(), this.rect(A, L, b, k), this.stroke());
9658
+ }, g.prototype.clearRect = function(A, L, b, k) {
9659
+ if (isNaN(A) || isNaN(L) || isNaN(b) || isNaN(k)) throw Zn.error("jsPDF.context2d.clearRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.clearRect");
9660
+ this.ignoreClearRect || (this.fillStyle = "#ffffff", this.fillRect(A, L, b, k));
9655
9661
  }, g.prototype.save = function(A) {
9656
9662
  A = typeof A != "boolean" || A;
9657
- for (var _ = this.pdf.internal.getCurrentPageInfo().pageNumber, b = 0; b < this.pdf.internal.getNumberOfPages(); b++) this.pdf.setPage(b + 1), this.pdf.internal.out("q");
9658
- if (this.pdf.setPage(_), A) {
9663
+ for (var L = this.pdf.internal.getCurrentPageInfo().pageNumber, b = 0; b < this.pdf.internal.getNumberOfPages(); b++) this.pdf.setPage(b + 1), this.pdf.internal.out("q");
9664
+ if (this.pdf.setPage(L), A) {
9659
9665
  this.ctx.fontSize = this.pdf.internal.getFontSize();
9660
9666
  var k = new m(this.ctx);
9661
9667
  this.ctxStack.push(this.ctx), this.ctx = k;
9662
9668
  }
9663
9669
  }, g.prototype.restore = function(A) {
9664
9670
  A = typeof A != "boolean" || A;
9665
- for (var _ = this.pdf.internal.getCurrentPageInfo().pageNumber, b = 0; b < this.pdf.internal.getNumberOfPages(); b++) this.pdf.setPage(b + 1), this.pdf.internal.out("Q");
9666
- this.pdf.setPage(_), A && this.ctxStack.length !== 0 && (this.ctx = this.ctxStack.pop(), this.fillStyle = this.ctx.fillStyle, this.strokeStyle = this.ctx.strokeStyle, this.font = this.ctx.font, this.lineCap = this.ctx.lineCap, this.lineWidth = this.ctx.lineWidth, this.lineJoin = this.ctx.lineJoin, this.lineDash = this.ctx.lineDash, this.lineDashOffset = this.ctx.lineDashOffset);
9671
+ for (var L = this.pdf.internal.getCurrentPageInfo().pageNumber, b = 0; b < this.pdf.internal.getNumberOfPages(); b++) this.pdf.setPage(b + 1), this.pdf.internal.out("Q");
9672
+ this.pdf.setPage(L), A && this.ctxStack.length !== 0 && (this.ctx = this.ctxStack.pop(), this.fillStyle = this.ctx.fillStyle, this.strokeStyle = this.ctx.strokeStyle, this.font = this.ctx.font, this.lineCap = this.ctx.lineCap, this.lineWidth = this.ctx.lineWidth, this.lineJoin = this.ctx.lineJoin, this.lineDash = this.ctx.lineDash, this.lineDashOffset = this.ctx.lineDashOffset);
9667
9673
  }, g.prototype.toDataURL = function() {
9668
9674
  throw new Error("toDataUrl not implemented.");
9669
9675
  };
9670
9676
  var v = function(A) {
9671
- var _, b, k, w;
9677
+ var L, b, k, w;
9672
9678
  if (A.isCanvasGradient === !0 && (A = A.getColor()), !A) return { r: 0, g: 0, b: 0, a: 0, style: A };
9673
- if (/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A)) _ = 0, b = 0, k = 0, w = 0;
9679
+ if (/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A)) L = 0, b = 0, k = 0, w = 0;
9674
9680
  else {
9675
9681
  var S = /rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);
9676
- if (S !== null) _ = parseInt(S[1]), b = parseInt(S[2]), k = parseInt(S[3]), w = 1;
9677
- else if ((S = /rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)) !== null) _ = parseInt(S[1]), b = parseInt(S[2]), k = parseInt(S[3]), w = parseFloat(S[4]);
9682
+ if (S !== null) L = parseInt(S[1]), b = parseInt(S[2]), k = parseInt(S[3]), w = 1;
9683
+ else if ((S = /rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)) !== null) L = parseInt(S[1]), b = parseInt(S[2]), k = parseInt(S[3]), w = parseFloat(S[4]);
9678
9684
  else {
9679
9685
  if (w = 1, typeof A == "string" && A.charAt(0) !== "#") {
9680
9686
  var z = new D1(A);
9681
9687
  A = z.ok ? z.toHex() : "#000000";
9682
9688
  }
9683
- A.length === 4 ? (_ = A.substring(1, 2), _ += _, b = A.substring(2, 3), b += b, k = A.substring(3, 4), k += k) : (_ = A.substring(1, 3), b = A.substring(3, 5), k = A.substring(5, 7)), _ = parseInt(_, 16), b = parseInt(b, 16), k = parseInt(k, 16);
9689
+ A.length === 4 ? (L = A.substring(1, 2), L += L, b = A.substring(2, 3), b += b, k = A.substring(3, 4), k += k) : (L = A.substring(1, 3), b = A.substring(3, 5), k = A.substring(5, 7)), L = parseInt(L, 16), b = parseInt(b, 16), k = parseInt(k, 16);
9684
9690
  }
9685
9691
  }
9686
- return { r: _, g: b, b: k, a: w, style: A };
9692
+ return { r: L, g: b, b: k, a: w, style: A };
9687
9693
  }, p = function() {
9688
9694
  return this.ctx.isFillTransparent || this.globalAlpha == 0;
9689
- }, L = function() {
9695
+ }, _ = function() {
9690
9696
  return !!(this.ctx.isStrokeTransparent || this.globalAlpha == 0);
9691
9697
  };
9692
- g.prototype.fillText = function(A, _, b, k) {
9693
- if (isNaN(_) || isNaN(b) || typeof A != "string") throw Zn.error("jsPDF.context2d.fillText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillText");
9698
+ g.prototype.fillText = function(A, L, b, k) {
9699
+ if (isNaN(L) || isNaN(b) || typeof A != "string") throw Zn.error("jsPDF.context2d.fillText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillText");
9694
9700
  if (k = isNaN(k) ? void 0 : k, !p.call(this)) {
9695
9701
  var w = Y(this.ctx.transform.rotation), S = this.ctx.transform.scaleX;
9696
- K.call(this, { text: A, x: _, y: b, scale: S, angle: w, align: this.textAlign, maxWidth: k });
9702
+ K.call(this, { text: A, x: L, y: b, scale: S, angle: w, align: this.textAlign, maxWidth: k });
9697
9703
  }
9698
- }, g.prototype.strokeText = function(A, _, b, k) {
9699
- if (isNaN(_) || isNaN(b) || typeof A != "string") throw Zn.error("jsPDF.context2d.strokeText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeText");
9700
- if (!L.call(this)) {
9704
+ }, g.prototype.strokeText = function(A, L, b, k) {
9705
+ if (isNaN(L) || isNaN(b) || typeof A != "string") throw Zn.error("jsPDF.context2d.strokeText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeText");
9706
+ if (!_.call(this)) {
9701
9707
  k = isNaN(k) ? void 0 : k;
9702
9708
  var w = Y(this.ctx.transform.rotation), S = this.ctx.transform.scaleX;
9703
- K.call(this, { text: A, x: _, y: b, scale: S, renderingMode: "stroke", angle: w, align: this.textAlign, maxWidth: k });
9709
+ K.call(this, { text: A, x: L, y: b, scale: S, renderingMode: "stroke", angle: w, align: this.textAlign, maxWidth: k });
9704
9710
  }
9705
9711
  }, g.prototype.measureText = function(A) {
9706
9712
  if (typeof A != "string") throw Zn.error("jsPDF.context2d.measureText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.measureText");
9707
- var _ = this.pdf, b = this.pdf.internal.scaleFactor, k = _.internal.getFontSize(), w = _.getStringUnitWidth(A) * k / _.internal.scaleFactor;
9713
+ var L = this.pdf, b = this.pdf.internal.scaleFactor, k = L.internal.getFontSize(), w = L.getStringUnitWidth(A) * k / L.internal.scaleFactor;
9708
9714
  return new function(S) {
9709
9715
  var z = (S = S || {}).width || 0;
9710
9716
  return Object.defineProperty(this, "width", { get: function() {
9711
9717
  return z;
9712
9718
  } }), this;
9713
9719
  }({ width: w *= Math.round(96 * b / 72 * 1e4) / 1e4 });
9714
- }, g.prototype.scale = function(A, _) {
9715
- if (isNaN(A) || isNaN(_)) throw Zn.error("jsPDF.context2d.scale: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.scale");
9716
- var b = new d(A, 0, 0, _, 0, 0);
9720
+ }, g.prototype.scale = function(A, L) {
9721
+ if (isNaN(A) || isNaN(L)) throw Zn.error("jsPDF.context2d.scale: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.scale");
9722
+ var b = new d(A, 0, 0, L, 0, 0);
9717
9723
  this.ctx.transform = this.ctx.transform.multiply(b);
9718
9724
  }, g.prototype.rotate = function(A) {
9719
9725
  if (isNaN(A)) throw Zn.error("jsPDF.context2d.rotate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rotate");
9720
- var _ = new d(Math.cos(A), Math.sin(A), -Math.sin(A), Math.cos(A), 0, 0);
9721
- this.ctx.transform = this.ctx.transform.multiply(_);
9722
- }, g.prototype.translate = function(A, _) {
9723
- if (isNaN(A) || isNaN(_)) throw Zn.error("jsPDF.context2d.translate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.translate");
9724
- var b = new d(1, 0, 0, 1, A, _);
9726
+ var L = new d(Math.cos(A), Math.sin(A), -Math.sin(A), Math.cos(A), 0, 0);
9727
+ this.ctx.transform = this.ctx.transform.multiply(L);
9728
+ }, g.prototype.translate = function(A, L) {
9729
+ if (isNaN(A) || isNaN(L)) throw Zn.error("jsPDF.context2d.translate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.translate");
9730
+ var b = new d(1, 0, 0, 1, A, L);
9725
9731
  this.ctx.transform = this.ctx.transform.multiply(b);
9726
- }, g.prototype.transform = function(A, _, b, k, w, S) {
9727
- if (isNaN(A) || isNaN(_) || isNaN(b) || isNaN(k) || isNaN(w) || isNaN(S)) throw Zn.error("jsPDF.context2d.transform: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.transform");
9728
- var z = new d(A, _, b, k, w, S);
9732
+ }, g.prototype.transform = function(A, L, b, k, w, S) {
9733
+ if (isNaN(A) || isNaN(L) || isNaN(b) || isNaN(k) || isNaN(w) || isNaN(S)) throw Zn.error("jsPDF.context2d.transform: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.transform");
9734
+ var z = new d(A, L, b, k, w, S);
9729
9735
  this.ctx.transform = this.ctx.transform.multiply(z);
9730
- }, g.prototype.setTransform = function(A, _, b, k, w, S) {
9731
- A = isNaN(A) ? 1 : A, _ = isNaN(_) ? 0 : _, b = isNaN(b) ? 0 : b, k = isNaN(k) ? 1 : k, w = isNaN(w) ? 0 : w, S = isNaN(S) ? 0 : S, this.ctx.transform = new d(A, _, b, k, w, S);
9736
+ }, g.prototype.setTransform = function(A, L, b, k, w, S) {
9737
+ A = isNaN(A) ? 1 : A, L = isNaN(L) ? 0 : L, b = isNaN(b) ? 0 : b, k = isNaN(k) ? 1 : k, w = isNaN(w) ? 0 : w, S = isNaN(S) ? 0 : S, this.ctx.transform = new d(A, L, b, k, w, S);
9732
9738
  };
9733
9739
  var x = function() {
9734
9740
  return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0;
9735
9741
  };
9736
- g.prototype.drawImage = function(A, _, b, k, w, S, z, H, ce) {
9742
+ g.prototype.drawImage = function(A, L, b, k, w, S, z, H, ce) {
9737
9743
  var V = this.pdf.getImageProperties(A), F = 1, Q = 1, oe = 1, P = 1;
9738
- k !== void 0 && H !== void 0 && (oe = H / k, P = ce / w, F = V.width / k * H / k, Q = V.height / w * ce / w), S === void 0 && (S = _, z = b, _ = 0, b = 0), k !== void 0 && H === void 0 && (H = k, ce = w), k === void 0 && H === void 0 && (H = V.width, ce = V.height);
9739
- var ae = this.ctx.transform.decompose(), Ce = Y(ae.rotate.shx), be = new d(), Ne = (be = (be = (be = be.multiply(ae.translate)).multiply(ae.skew)).multiply(ae.scale)).applyToRectangle(new l(S - _ * oe, z - b * P, k * F, w * Q));
9744
+ k !== void 0 && H !== void 0 && (oe = H / k, P = ce / w, F = V.width / k * H / k, Q = V.height / w * ce / w), S === void 0 && (S = L, z = b, L = 0, b = 0), k !== void 0 && H === void 0 && (H = k, ce = w), k === void 0 && H === void 0 && (H = V.width, ce = V.height);
9745
+ var ae = this.ctx.transform.decompose(), Ce = Y(ae.rotate.shx), be = new d(), Ne = (be = (be = (be = be.multiply(ae.translate)).multiply(ae.skew)).multiply(ae.scale)).applyToRectangle(new l(S - L * oe, z - b * P, k * F, w * Q));
9740
9746
  if (this.autoPaging) {
9741
9747
  for (var qe, Re = C.call(this, Ne), Ye = [], Ue = 0; Ue < Re.length; Ue += 1) Ye.indexOf(Re[Ue]) === -1 && Ye.push(Re[Ue]);
9742
9748
  $(Ye);
@@ -9754,9 +9760,9 @@ function lh(e) {
9754
9760
  }
9755
9761
  } else this.pdf.addImage(A, "JPEG", Ne.x, Ne.y, Ne.w, Ne.h, null, null, Ce);
9756
9762
  };
9757
- var C = function(A, _, b) {
9763
+ var C = function(A, L, b) {
9758
9764
  var k = [];
9759
- _ = _ || this.pdf.internal.pageSize.width, b = b || this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2];
9765
+ L = L || this.pdf.internal.pageSize.width, b = b || this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2];
9760
9766
  var w = this.posY + this.ctx.prevPageLastElemOffset;
9761
9767
  switch (A.type) {
9762
9768
  default:
@@ -9781,23 +9787,23 @@ function lh(e) {
9781
9787
  for (var H = 0; H < k.length; H += 1) for (; this.pdf.internal.getNumberOfPages() < k[H]; ) I.call(this);
9782
9788
  return k;
9783
9789
  }, I = function() {
9784
- var A = this.fillStyle, _ = this.strokeStyle, b = this.font, k = this.lineCap, w = this.lineWidth, S = this.lineJoin;
9785
- this.pdf.addPage(), this.fillStyle = A, this.strokeStyle = _, this.font = b, this.lineCap = k, this.lineWidth = w, this.lineJoin = S;
9786
- }, D = function(A, _, b) {
9790
+ var A = this.fillStyle, L = this.strokeStyle, b = this.font, k = this.lineCap, w = this.lineWidth, S = this.lineJoin;
9791
+ this.pdf.addPage(), this.fillStyle = A, this.strokeStyle = L, this.font = b, this.lineCap = k, this.lineWidth = w, this.lineJoin = S;
9792
+ }, D = function(A, L, b) {
9787
9793
  for (var k = 0; k < A.length; k++) switch (A[k].type) {
9788
9794
  case "bct":
9789
- A[k].x2 += _, A[k].y2 += b;
9795
+ A[k].x2 += L, A[k].y2 += b;
9790
9796
  case "qct":
9791
- A[k].x1 += _, A[k].y1 += b;
9797
+ A[k].x1 += L, A[k].y1 += b;
9792
9798
  default:
9793
- A[k].x += _, A[k].y += b;
9799
+ A[k].x += L, A[k].y += b;
9794
9800
  }
9795
9801
  return A;
9796
9802
  }, $ = function(A) {
9797
- return A.sort(function(_, b) {
9798
- return _ - b;
9803
+ return A.sort(function(L, b) {
9804
+ return L - b;
9799
9805
  });
9800
- }, U = function(A, _) {
9806
+ }, U = function(A, L) {
9801
9807
  var b = this.fillStyle, k = this.strokeStyle, w = this.lineCap, S = this.lineWidth, z = Math.abs(S * this.ctx.transform.scaleX), H = this.lineJoin;
9802
9808
  if (this.autoPaging) {
9803
9809
  for (var ce, V, F = JSON.parse(JSON.stringify(this.path)), Q = JSON.parse(JSON.stringify(this.path)), oe = [], P = 0; P < Q.length; P++) if (Q[P].x !== void 0) for (var ae = C.call(this, Q[P]), Ce = 0; Ce < ae.length; Ce += 1) oe.indexOf(ae[Ce]) === -1 && oe.push(ae[Ce]);
@@ -9810,16 +9816,16 @@ function lh(e) {
9810
9816
  var We = this.path;
9811
9817
  ce = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = D(ce, this.posX + this.margin[3], -ge + Ue + this.ctx.prevPageLastElemOffset), ue.call(this, A, !0), this.path = We;
9812
9818
  }
9813
- if (V = JSON.parse(JSON.stringify(F)), this.path = D(V, this.posX + this.margin[3], -ge + Ue + this.ctx.prevPageLastElemOffset), _ === !1 || Re === 0) {
9819
+ if (V = JSON.parse(JSON.stringify(F)), this.path = D(V, this.posX + this.margin[3], -ge + Ue + this.ctx.prevPageLastElemOffset), L === !1 || Re === 0) {
9814
9820
  var Oe = (Re > Ne || Re < qe) && x.call(this);
9815
- Oe && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Ye, je, null).clip().discardPath()), ue.call(this, A, _), Oe && this.pdf.restoreGraphicsState();
9821
+ Oe && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Ye, je, null).clip().discardPath()), ue.call(this, A, L), Oe && this.pdf.restoreGraphicsState();
9816
9822
  }
9817
9823
  this.lineWidth = S;
9818
9824
  }
9819
9825
  this.path = F;
9820
- } else this.lineWidth = z, ue.call(this, A, _), this.lineWidth = S;
9821
- }, ue = function(A, _) {
9822
- if ((A !== "stroke" || _ || !L.call(this)) && (A === "stroke" || _ || !p.call(this))) {
9826
+ } else this.lineWidth = z, ue.call(this, A, L), this.lineWidth = S;
9827
+ }, ue = function(A, L) {
9828
+ if ((A !== "stroke" || L || !_.call(this)) && (A === "stroke" || L || !p.call(this))) {
9823
9829
  for (var b, k, w = [], S = this.path, z = 0; z < S.length; z++) {
9824
9830
  var H = S[z];
9825
9831
  switch (H.type) {
@@ -9852,29 +9858,29 @@ function lh(e) {
9852
9858
  w.push({ deltas: [], abs: [], arc: !0 }), Array.isArray(w[w.length - 1].abs) && w[w.length - 1].abs.push(H);
9853
9859
  }
9854
9860
  }
9855
- k = _ ? null : A === "stroke" ? "stroke" : "fill";
9861
+ k = L ? null : A === "stroke" ? "stroke" : "fill";
9856
9862
  for (var Ce = !1, be = 0; be < w.length; be++) if (w[be].arc) for (var Ne = w[be].abs, qe = 0; qe < Ne.length; qe++) {
9857
9863
  var Re = Ne[qe];
9858
- Re.type === "arc" ? de.call(this, Re.x, Re.y, Re.radius, Re.startAngle, Re.endAngle, Re.counterclockwise, void 0, _, !Ce) : O.call(this, Re.x, Re.y), Ce = !0;
9864
+ Re.type === "arc" ? de.call(this, Re.x, Re.y, Re.radius, Re.startAngle, Re.endAngle, Re.counterclockwise, void 0, L, !Ce) : O.call(this, Re.x, Re.y), Ce = !0;
9859
9865
  }
9860
9866
  else if (w[be].close === !0) this.pdf.internal.out("h"), Ce = !1;
9861
9867
  else if (w[be].begin !== !0) {
9862
9868
  var Ye = w[be].start.x, Ue = w[be].start.y;
9863
9869
  R.call(this, w[be].deltas, Ye, Ue), Ce = !0;
9864
9870
  }
9865
- k && X.call(this, k), _ && me.call(this);
9871
+ k && X.call(this, k), L && me.call(this);
9866
9872
  }
9867
9873
  }, se = function(A) {
9868
- var _ = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor, b = _ * (this.pdf.internal.getLineHeightFactor() - 1);
9874
+ var L = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor, b = L * (this.pdf.internal.getLineHeightFactor() - 1);
9869
9875
  switch (this.ctx.textBaseline) {
9870
9876
  case "bottom":
9871
9877
  return A - b;
9872
9878
  case "top":
9873
- return A + _ - b;
9879
+ return A + L - b;
9874
9880
  case "hanging":
9875
- return A + _ - 2 * b;
9881
+ return A + L - 2 * b;
9876
9882
  case "middle":
9877
- return A + _ / 2 - b;
9883
+ return A + L / 2 - b;
9878
9884
  default:
9879
9885
  return A;
9880
9886
  }
@@ -9884,8 +9890,8 @@ function lh(e) {
9884
9890
  g.prototype.createLinearGradient = function() {
9885
9891
  var A = function() {
9886
9892
  };
9887
- return A.colorStops = [], A.addColorStop = function(_, b) {
9888
- this.colorStops.push([_, b]);
9893
+ return A.colorStops = [], A.addColorStop = function(L, b) {
9894
+ this.colorStops.push([L, b]);
9889
9895
  }, A.getColor = function() {
9890
9896
  return this.colorStops.length === 0 ? "#000000" : this.colorStops[0][1];
9891
9897
  }, A.isCanvasGradient = !0, A;
@@ -9894,10 +9900,10 @@ function lh(e) {
9894
9900
  }, g.prototype.createRadialGradient = function() {
9895
9901
  return this.createLinearGradient();
9896
9902
  };
9897
- var de = function(A, _, b, k, w, S, z, H, ce) {
9903
+ var de = function(A, L, b, k, w, S, z, H, ce) {
9898
9904
  for (var V = J.call(this, b, k, w, S), F = 0; F < V.length; F++) {
9899
9905
  var Q = V[F];
9900
- F === 0 && (ce ? j.call(this, Q.x1 + A, Q.y1 + _) : O.call(this, Q.x1 + A, Q.y1 + _)), te.call(this, A, _, Q.x2, Q.y2, Q.x3, Q.y3, Q.x4, Q.y4);
9906
+ F === 0 && (ce ? j.call(this, Q.x1 + A, Q.y1 + L) : O.call(this, Q.x1 + A, Q.y1 + L)), te.call(this, A, L, Q.x2, Q.y2, Q.x3, Q.y3, Q.x4, Q.y4);
9901
9907
  }
9902
9908
  H ? me.call(this) : X.call(this, z);
9903
9909
  }, X = function(A) {
@@ -9910,20 +9916,20 @@ function lh(e) {
9910
9916
  }
9911
9917
  }, me = function() {
9912
9918
  this.pdf.clip(), this.pdf.discardPath();
9913
- }, j = function(A, _) {
9914
- this.pdf.internal.out(n(A) + " " + r(_) + " m");
9919
+ }, j = function(A, L) {
9920
+ this.pdf.internal.out(n(A) + " " + r(L) + " m");
9915
9921
  }, K = function(A) {
9916
- var _;
9922
+ var L;
9917
9923
  switch (A.align) {
9918
9924
  case "right":
9919
9925
  case "end":
9920
- _ = "right";
9926
+ L = "right";
9921
9927
  break;
9922
9928
  case "center":
9923
- _ = "center";
9929
+ L = "center";
9924
9930
  break;
9925
9931
  default:
9926
- _ = "left";
9932
+ L = "left";
9927
9933
  }
9928
9934
  var b, k, w, S = this.pdf.getTextDimensions(A.text), z = se.call(this, A.y), H = ye.call(this, z) - S.h, ce = this.ctx.transform.applyToPoint(new o(A.x, z));
9929
9935
  if (this.autoPaging) {
@@ -9944,42 +9950,42 @@ function lh(e) {
9944
9950
  if (Ze || Me.y + Me.h <= Ue) {
9945
9951
  if (Ze || Me.y >= Re && Me.x <= je) {
9946
9952
  var Be = Ze ? A.text : this.pdf.splitTextToSize(A.text, A.maxWidth || je - Me.x)[0], gt = D([JSON.parse(JSON.stringify(Q))], this.posX + this.margin[3], -We + Re + this.ctx.prevPageLastElemOffset)[0], st = Ze && (qe > be || qe < Ne) && x.call(this);
9947
- st && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ge, tt, null).clip().discardPath()), this.pdf.text(Be, gt.x, gt.y, { angle: A.angle, align: _, renderingMode: A.renderingMode }), st && this.pdf.restoreGraphicsState();
9953
+ st && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ge, tt, null).clip().discardPath()), this.pdf.text(Be, gt.x, gt.y, { angle: A.angle, align: L, renderingMode: A.renderingMode }), st && this.pdf.restoreGraphicsState();
9948
9954
  }
9949
9955
  } else Me.y < Ue && (this.ctx.prevPageLastElemOffset += Ue - Me.y);
9950
9956
  A.scale >= 0.01 && (this.pdf.setFontSize(k), this.lineWidth = w);
9951
9957
  }
9952
- } else A.scale >= 0.01 && (k = this.pdf.internal.getFontSize(), this.pdf.setFontSize(k * A.scale), w = this.lineWidth, this.lineWidth = w * A.scale), this.pdf.text(A.text, ce.x + this.posX, ce.y + this.posY, { angle: A.angle, align: _, renderingMode: A.renderingMode, maxWidth: A.maxWidth }), A.scale >= 0.01 && (this.pdf.setFontSize(k), this.lineWidth = w);
9953
- }, O = function(A, _, b, k) {
9954
- b = b || 0, k = k || 0, this.pdf.internal.out(n(A + b) + " " + r(_ + k) + " l");
9955
- }, R = function(A, _, b) {
9956
- return this.pdf.lines(A, _, b, null, null);
9957
- }, te = function(A, _, b, k, w, S, z, H) {
9958
- this.pdf.internal.out([t(i(b + A)), t(s(k + _)), t(i(w + A)), t(s(S + _)), t(i(z + A)), t(s(H + _)), "c"].join(" "));
9959
- }, J = function(A, _, b, k) {
9960
- for (var w = 2 * Math.PI, S = Math.PI / 2; _ > b; ) _ -= w;
9961
- var z = Math.abs(b - _);
9958
+ } else A.scale >= 0.01 && (k = this.pdf.internal.getFontSize(), this.pdf.setFontSize(k * A.scale), w = this.lineWidth, this.lineWidth = w * A.scale), this.pdf.text(A.text, ce.x + this.posX, ce.y + this.posY, { angle: A.angle, align: L, renderingMode: A.renderingMode, maxWidth: A.maxWidth }), A.scale >= 0.01 && (this.pdf.setFontSize(k), this.lineWidth = w);
9959
+ }, O = function(A, L, b, k) {
9960
+ b = b || 0, k = k || 0, this.pdf.internal.out(n(A + b) + " " + r(L + k) + " l");
9961
+ }, R = function(A, L, b) {
9962
+ return this.pdf.lines(A, L, b, null, null);
9963
+ }, te = function(A, L, b, k, w, S, z, H) {
9964
+ this.pdf.internal.out([t(i(b + A)), t(s(k + L)), t(i(w + A)), t(s(S + L)), t(i(z + A)), t(s(H + L)), "c"].join(" "));
9965
+ }, J = function(A, L, b, k) {
9966
+ for (var w = 2 * Math.PI, S = Math.PI / 2; L > b; ) L -= w;
9967
+ var z = Math.abs(b - L);
9962
9968
  z < w && k && (z = w - z);
9963
- for (var H = [], ce = k ? -1 : 1, V = _; z > 1e-5; ) {
9969
+ for (var H = [], ce = k ? -1 : 1, V = L; z > 1e-5; ) {
9964
9970
  var F = V + ce * Math.min(z, S);
9965
9971
  H.push(T.call(this, A, V, F)), z -= Math.abs(F - V), V = F;
9966
9972
  }
9967
9973
  return H;
9968
- }, T = function(A, _, b) {
9969
- var k = (b - _) / 2, w = A * Math.cos(k), S = A * Math.sin(k), z = w, H = -S, ce = z * z + H * H, V = ce + z * w + H * S, F = 4 / 3 * (Math.sqrt(2 * ce * V) - V) / (z * S - H * w), Q = z - F * H, oe = H + F * z, P = Q, ae = -oe, Ce = k + _, be = Math.cos(Ce), Ne = Math.sin(Ce);
9970
- return { x1: A * Math.cos(_), y1: A * Math.sin(_), x2: Q * be - oe * Ne, y2: Q * Ne + oe * be, x3: P * be - ae * Ne, y3: P * Ne + ae * be, x4: A * Math.cos(b), y4: A * Math.sin(b) };
9974
+ }, T = function(A, L, b) {
9975
+ var k = (b - L) / 2, w = A * Math.cos(k), S = A * Math.sin(k), z = w, H = -S, ce = z * z + H * H, V = ce + z * w + H * S, F = 4 / 3 * (Math.sqrt(2 * ce * V) - V) / (z * S - H * w), Q = z - F * H, oe = H + F * z, P = Q, ae = -oe, Ce = k + L, be = Math.cos(Ce), Ne = Math.sin(Ce);
9976
+ return { x1: A * Math.cos(L), y1: A * Math.sin(L), x2: Q * be - oe * Ne, y2: Q * Ne + oe * be, x3: P * be - ae * Ne, y3: P * Ne + ae * be, x4: A * Math.cos(b), y4: A * Math.sin(b) };
9971
9977
  }, Y = function(A) {
9972
9978
  return 180 * A / Math.PI;
9973
- }, le = function(A, _, b, k, w, S) {
9974
- var z = A + 0.5 * (b - A), H = _ + 0.5 * (k - _), ce = w + 0.5 * (b - w), V = S + 0.5 * (k - S), F = Math.min(A, w, z, ce), Q = Math.max(A, w, z, ce), oe = Math.min(_, S, H, V), P = Math.max(_, S, H, V);
9979
+ }, le = function(A, L, b, k, w, S) {
9980
+ var z = A + 0.5 * (b - A), H = L + 0.5 * (k - L), ce = w + 0.5 * (b - w), V = S + 0.5 * (k - S), F = Math.min(A, w, z, ce), Q = Math.max(A, w, z, ce), oe = Math.min(L, S, H, V), P = Math.max(L, S, H, V);
9975
9981
  return new l(F, oe, Q - F, P - oe);
9976
- }, q = function(A, _, b, k, w, S, z, H) {
9977
- var ce, V, F, Q, oe, P, ae, Ce, be, Ne, qe, Re, Ye, Ue, tt = b - A, je = k - _, ge = w - b, We = S - k, Oe = z - w, Me = H - S;
9978
- for (V = 0; V < 41; V++) be = (ae = (F = A + (ce = V / 40) * tt) + ce * ((oe = b + ce * ge) - F)) + ce * (oe + ce * (w + ce * Oe - oe) - ae), Ne = (Ce = (Q = _ + ce * je) + ce * ((P = k + ce * We) - Q)) + ce * (P + ce * (S + ce * Me - P) - Ce), V == 0 ? (qe = be, Re = Ne, Ye = be, Ue = Ne) : (qe = Math.min(qe, be), Re = Math.min(Re, Ne), Ye = Math.max(Ye, be), Ue = Math.max(Ue, Ne));
9982
+ }, q = function(A, L, b, k, w, S, z, H) {
9983
+ var ce, V, F, Q, oe, P, ae, Ce, be, Ne, qe, Re, Ye, Ue, tt = b - A, je = k - L, ge = w - b, We = S - k, Oe = z - w, Me = H - S;
9984
+ for (V = 0; V < 41; V++) be = (ae = (F = A + (ce = V / 40) * tt) + ce * ((oe = b + ce * ge) - F)) + ce * (oe + ce * (w + ce * Oe - oe) - ae), Ne = (Ce = (Q = L + ce * je) + ce * ((P = k + ce * We) - Q)) + ce * (P + ce * (S + ce * Me - P) - Ce), V == 0 ? (qe = be, Re = Ne, Ye = be, Ue = Ne) : (qe = Math.min(qe, be), Re = Math.min(Re, Ne), Ye = Math.max(Ye, be), Ue = Math.max(Ue, Ne));
9979
9985
  return new l(Math.round(qe), Math.round(Re), Math.round(Ye - qe), Math.round(Ue - Re));
9980
9986
  }, ne = function() {
9981
9987
  if (this.prevLineDash || this.ctx.lineDash.length || this.ctx.lineDashOffset) {
9982
- var A, _, b = (A = this.ctx.lineDash, _ = this.ctx.lineDashOffset, JSON.stringify({ lineDash: A, lineDashOffset: _ }));
9988
+ var A, L, b = (A = this.ctx.lineDash, L = this.ctx.lineDashOffset, JSON.stringify({ lineDash: A, lineDashOffset: L }));
9983
9989
  this.prevLineDash !== b && (this.pdf.setLineDash(this.ctx.lineDash, this.ctx.lineDashOffset), this.prevLineDash = b);
9984
9990
  }
9985
9991
  };
@@ -9993,14 +9999,14 @@ function lh(e) {
9993
9999
  */
9994
10000
  (function(e) {
9995
10001
  var t = function(o) {
9996
- var l, d, u, m, g, v, p, L, x, C;
9997
- for (d = [], u = 0, m = (o += l = "\0\0\0\0".slice(o.length % 4 || 4)).length; m > u; u += 4) (g = (o.charCodeAt(u) << 24) + (o.charCodeAt(u + 1) << 16) + (o.charCodeAt(u + 2) << 8) + o.charCodeAt(u + 3)) !== 0 ? (v = (g = ((g = ((g = ((g = (g - (C = g % 85)) / 85) - (x = g % 85)) / 85) - (L = g % 85)) / 85) - (p = g % 85)) / 85) % 85, d.push(v + 33, p + 33, L + 33, x + 33, C + 33)) : d.push(122);
10002
+ var l, d, u, m, g, v, p, _, x, C;
10003
+ for (d = [], u = 0, m = (o += l = "\0\0\0\0".slice(o.length % 4 || 4)).length; m > u; u += 4) (g = (o.charCodeAt(u) << 24) + (o.charCodeAt(u + 1) << 16) + (o.charCodeAt(u + 2) << 8) + o.charCodeAt(u + 3)) !== 0 ? (v = (g = ((g = ((g = ((g = (g - (C = g % 85)) / 85) - (x = g % 85)) / 85) - (_ = g % 85)) / 85) - (p = g % 85)) / 85) % 85, d.push(v + 33, p + 33, _ + 33, x + 33, C + 33)) : d.push(122);
9998
10004
  return (function(I, D) {
9999
10005
  for (var $ = D; $ > 0; $--) I.pop();
10000
10006
  })(d, l.length), String.fromCharCode.apply(String, d) + "~>";
10001
10007
  }, n = function(o) {
10002
- var l, d, u, m, g, v = String, p = "length", L = 255, x = "charCodeAt", C = "slice", I = "replace";
10003
- for (o[C](-2), o = o[C](0, -2)[I](/\s/g, "")[I]("z", "!!!!!"), u = [], m = 0, g = (o += l = "uuuuu"[C](o[p] % 5 || 5))[p]; g > m; m += 5) d = 52200625 * (o[x](m) - 33) + 614125 * (o[x](m + 1) - 33) + 7225 * (o[x](m + 2) - 33) + 85 * (o[x](m + 3) - 33) + (o[x](m + 4) - 33), u.push(L & d >> 24, L & d >> 16, L & d >> 8, L & d);
10008
+ var l, d, u, m, g, v = String, p = "length", _ = 255, x = "charCodeAt", C = "slice", I = "replace";
10009
+ for (o[C](-2), o = o[C](0, -2)[I](/\s/g, "")[I]("z", "!!!!!"), u = [], m = 0, g = (o += l = "uuuuu"[C](o[p] % 5 || 5))[p]; g > m; m += 5) d = 52200625 * (o[x](m) - 33) + 614125 * (o[x](m + 1) - 33) + 7225 * (o[x](m + 2) - 33) + 85 * (o[x](m + 3) - 33) + (o[x](m + 4) - 33), u.push(_ & d >> 24, _ & d >> 16, _ & d >> 8, _ & d);
10004
10010
  return (function(D, $) {
10005
10011
  for (var U = $; U > 0; U--) D.pop();
10006
10012
  })(u, l[p]), v.fromCharCode.apply(v, u);
@@ -10063,9 +10069,9 @@ function lh(e) {
10063
10069
  var l = void 0;
10064
10070
  try {
10065
10071
  l = (function(d, u, m) {
10066
- var g = new XMLHttpRequest(), v = 0, p = function(L) {
10067
- var x = L.length, C = [], I = String.fromCharCode;
10068
- for (v = 0; v < x; v += 1) C.push(I(255 & L.charCodeAt(v)));
10072
+ var g = new XMLHttpRequest(), v = 0, p = function(_) {
10073
+ var x = _.length, C = [], I = String.fromCharCode;
10074
+ for (v = 0; v < x; v += 1) C.push(I(255 & _.charCodeAt(v)));
10069
10075
  return C.join("");
10070
10076
  };
10071
10077
  if (g.open("GET", d, !u), g.overrideMimeType("text/plain; charset=x-user-defined"), u === !1 && (g.onload = function() {
@@ -10177,10 +10183,10 @@ function lh(e) {
10177
10183
  return this.thenList(l).then(t).then(function(d) {
10178
10184
  var u = this.opt.jsPDF, m = this.opt.fontFaces, g = typeof this.opt.width != "number" || isNaN(this.opt.width) || typeof this.opt.windowWidth != "number" || isNaN(this.opt.windowWidth) ? 1 : this.opt.width / this.opt.windowWidth, v = Object.assign({ async: !0, allowTaint: !0, scale: g, scrollX: this.opt.scrollX || 0, scrollY: this.opt.scrollY || 0, backgroundColor: "#ffffff", imageTimeout: 15e3, logging: !0, proxy: null, removeContainer: !0, foreignObjectRendering: !1, useCORS: !1 }, this.opt.html2canvas);
10179
10185
  if (delete v.onrendered, u.context2d.autoPaging = this.opt.autoPaging === void 0 || this.opt.autoPaging, u.context2d.posX = this.opt.x, u.context2d.posY = this.opt.y, u.context2d.margin = this.opt.margin, u.context2d.fontFaces = m, m) for (var p = 0; p < m.length; ++p) {
10180
- var L = m[p], x = L.src.find(function(C) {
10186
+ var _ = m[p], x = _.src.find(function(C) {
10181
10187
  return C.format === "truetype";
10182
10188
  });
10183
- x && u.addFont(x.url, L.ref.name, L.ref.style);
10189
+ x && u.addFont(x.url, _.ref.name, _.ref.style);
10184
10190
  }
10185
10191
  return v.windowHeight = v.windowHeight || 0, v.windowHeight = v.windowHeight == 0 ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : v.windowHeight, u.context2d.save(!0), d(this.prop.container, v);
10186
10192
  }).then(function(d) {
@@ -10355,17 +10361,17 @@ function lh(e) {
10355
10361
  default:
10356
10362
  throw "Invalid unit: " + d;
10357
10363
  }
10358
- var L, x = 0, C = 0;
10364
+ var _, x = 0, C = 0;
10359
10365
  if (p.hasOwnProperty(v)) x = p[v][1] / g, C = p[v][0] / g;
10360
10366
  else try {
10361
10367
  x = u[1], C = u[0];
10362
10368
  } catch {
10363
10369
  throw new Error("Invalid format: " + u);
10364
10370
  }
10365
- if (l === "p" || l === "portrait") l = "p", C > x && (L = C, C = x, x = L);
10371
+ if (l === "p" || l === "portrait") l = "p", C > x && (_ = C, C = x, x = _);
10366
10372
  else {
10367
10373
  if (l !== "l" && l !== "landscape") throw "Invalid orientation: " + l;
10368
- l = "l", x > C && (L = C, C = x, x = L);
10374
+ l = "l", x > C && (_ = C, C = x, x = _);
10369
10375
  }
10370
10376
  return { width: C, height: x, unit: d, k: g, orientation: l };
10371
10377
  }, e.html = function(l, d) {
@@ -10471,7 +10477,7 @@ endobj\r
10471
10477
  var d, u = this.decode.DCT_DECODE, m = null;
10472
10478
  if (typeof n == "string" || this.__addimage__.isArrayBuffer(n) || this.__addimage__.isArrayBufferView(n)) {
10473
10479
  switch (n = o || n, n = this.__addimage__.isArrayBuffer(n) ? new Uint8Array(n) : n, d = (function(g) {
10474
- for (var v, p = 256 * g.charCodeAt(4) + g.charCodeAt(5), L = g.length, x = { width: 0, height: 0, numcomponents: 1 }, C = 4; C < L; C += 2) {
10480
+ for (var v, p = 256 * g.charCodeAt(4) + g.charCodeAt(5), _ = g.length, x = { width: 0, height: 0, numcomponents: 1 }, C = 4; C < _; C += 2) {
10475
10481
  if (C += p, t.indexOf(g.charCodeAt(C + 1)) !== -1) {
10476
10482
  v = 256 * g.charCodeAt(C + 5) + g.charCodeAt(C + 6), x = { width: 256 * g.charCodeAt(C + 7) + g.charCodeAt(C + 8), height: v, numcomponents: g.charCodeAt(C + 9) };
10477
10483
  break;
@@ -10498,8 +10504,8 @@ endobj\r
10498
10504
  var i, s = _g(e, { checkCrc: !0 }), o = s.width, l = s.height, d = s.channels, u = s.palette, m = s.depth;
10499
10505
  i = u && d === 1 ? (function(de) {
10500
10506
  for (var X = de.width, me = de.height, j = de.data, K = de.palette, O = de.depth, R = !1, te = [], J = [], T = void 0, Y = !1, le = 0, q = 0; q < K.length; q++) {
10501
- var ne = t0(K[q], 4), A = ne[0], _ = ne[1], b = ne[2], k = ne[3];
10502
- te.push(A, _, b), k != null && (k === 0 ? (le++, J.length < 1 && J.push(q)) : k < 255 && (Y = !0));
10507
+ var ne = t0(K[q], 4), A = ne[0], L = ne[1], b = ne[2], k = ne[3];
10508
+ te.push(A, L, b), k != null && (k === 0 ? (le++, J.length < 1 && J.push(q)) : k < 255 && (Y = !0));
10503
10509
  }
10504
10510
  if (Y || le > 1) {
10505
10511
  R = !0, J = void 0;
@@ -10512,12 +10518,12 @@ endobj\r
10512
10518
  } else le === 0 && (J = void 0);
10513
10519
  return { colorSpace: "Indexed", colorsPerPixel: 1, sMaskBitsPerComponent: R ? 8 : void 0, colorBytes: j, alphaBytes: T, needSMask: R, palette: te, mask: J };
10514
10520
  })(s) : d === 2 || d === 4 ? (function(de) {
10515
- for (var X = de.data, me = de.width, j = de.height, K = de.channels, O = de.depth, R = K === 2 ? "DeviceGray" : "DeviceRGB", te = K - 1, J = me * j, T = te, Y = J * T, le = 1 * J, q = Math.ceil(Y * O / 8), ne = Math.ceil(le * O / 8), A = new Uint8Array(q), _ = new Uint8Array(ne), b = new DataView(X.buffer), k = new DataView(A.buffer), w = new DataView(_.buffer), S = !1, z = 0; z < J; z++) {
10521
+ for (var X = de.data, me = de.width, j = de.height, K = de.channels, O = de.depth, R = K === 2 ? "DeviceGray" : "DeviceRGB", te = K - 1, J = me * j, T = te, Y = J * T, le = 1 * J, q = Math.ceil(Y * O / 8), ne = Math.ceil(le * O / 8), A = new Uint8Array(q), L = new Uint8Array(ne), b = new DataView(X.buffer), k = new DataView(A.buffer), w = new DataView(L.buffer), S = !1, z = 0; z < J; z++) {
10516
10522
  for (var H = z * K, ce = 0; ce < T; ce++) sh(k, _c(b, H + ce, O), z * T + ce, O);
10517
10523
  var V = _c(b, H + T, O);
10518
10524
  V < (1 << O) - 1 && (S = !0), sh(w, V, 1 * z, O);
10519
10525
  }
10520
- return { colorSpace: R, colorsPerPixel: te, sMaskBitsPerComponent: S ? O : void 0, colorBytes: A, alphaBytes: _, needSMask: S };
10526
+ return { colorSpace: R, colorsPerPixel: te, sMaskBitsPerComponent: S ? O : void 0, colorBytes: A, alphaBytes: L, needSMask: S };
10521
10527
  })(s) : (function(de) {
10522
10528
  var X = de.data, me = de.channels === 1 ? "DeviceGray" : "DeviceRGB";
10523
10529
  return { colorSpace: me, colorsPerPixel: me === "DeviceGray" ? 1 : 3, colorBytes: X instanceof Uint16Array ? (function(j) {
@@ -10525,7 +10531,7 @@ endobj\r
10525
10531
  return O;
10526
10532
  })(X) : X, needSMask: !1 };
10527
10533
  })(s);
10528
- var g, v, p, L = i, x = L.colorSpace, C = L.colorsPerPixel, I = L.sMaskBitsPerComponent, D = L.colorBytes, $ = L.alphaBytes, U = L.needSMask, ue = L.palette, se = L.mask, ye = null;
10534
+ var g, v, p, _ = i, x = _.colorSpace, C = _.colorsPerPixel, I = _.sMaskBitsPerComponent, D = _.colorBytes, $ = _.alphaBytes, U = _.needSMask, ue = _.palette, se = _.mask, ye = null;
10529
10535
  return r !== Vt.API.image_compression.NONE && typeof Jc == "function" ? (ye = (function(de) {
10530
10536
  var X;
10531
10537
  switch (de) {
@@ -10664,15 +10670,15 @@ endobj\r
10664
10670
  var m = r[u], g = r[u + 1], v = r[u + 2], p = r[u + 3];
10665
10671
  s[l++] = m, s[l++] = g, s[l++] = v, o[d++] = p;
10666
10672
  }
10667
- var L = this.__addimage__.arrayBufferToBinaryString(s);
10668
- return { alpha: this.__addimage__.arrayBufferToBinaryString(o), data: L, index: t, alias: n, colorSpace: "DeviceRGB", bitsPerComponent: 8, width: e.width, height: e.height };
10673
+ var _ = this.__addimage__.arrayBufferToBinaryString(s);
10674
+ return { alpha: this.__addimage__.arrayBufferToBinaryString(o), data: _, index: t, alias: n, colorSpace: "DeviceRGB", bitsPerComponent: 8, width: e.width, height: e.height };
10669
10675
  }, Vt.API.setLanguage = function(e) {
10670
10676
  return this.internal.languageSettings === void 0 && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = !1), { af: "Afrikaans", sq: "Albanian", ar: "Arabic (Standard)", "ar-DZ": "Arabic (Algeria)", "ar-BH": "Arabic (Bahrain)", "ar-EG": "Arabic (Egypt)", "ar-IQ": "Arabic (Iraq)", "ar-JO": "Arabic (Jordan)", "ar-KW": "Arabic (Kuwait)", "ar-LB": "Arabic (Lebanon)", "ar-LY": "Arabic (Libya)", "ar-MA": "Arabic (Morocco)", "ar-OM": "Arabic (Oman)", "ar-QA": "Arabic (Qatar)", "ar-SA": "Arabic (Saudi Arabia)", "ar-SY": "Arabic (Syria)", "ar-TN": "Arabic (Tunisia)", "ar-AE": "Arabic (U.A.E.)", "ar-YE": "Arabic (Yemen)", an: "Aragonese", hy: "Armenian", as: "Assamese", ast: "Asturian", az: "Azerbaijani", eu: "Basque", be: "Belarusian", bn: "Bengali", bs: "Bosnian", br: "Breton", bg: "Bulgarian", my: "Burmese", ca: "Catalan", ch: "Chamorro", ce: "Chechen", zh: "Chinese", "zh-HK": "Chinese (Hong Kong)", "zh-CN": "Chinese (PRC)", "zh-SG": "Chinese (Singapore)", "zh-TW": "Chinese (Taiwan)", cv: "Chuvash", co: "Corsican", cr: "Cree", hr: "Croatian", cs: "Czech", da: "Danish", nl: "Dutch (Standard)", "nl-BE": "Dutch (Belgian)", en: "English", "en-AU": "English (Australia)", "en-BZ": "English (Belize)", "en-CA": "English (Canada)", "en-IE": "English (Ireland)", "en-JM": "English (Jamaica)", "en-NZ": "English (New Zealand)", "en-PH": "English (Philippines)", "en-ZA": "English (South Africa)", "en-TT": "English (Trinidad & Tobago)", "en-GB": "English (United Kingdom)", "en-US": "English (United States)", "en-ZW": "English (Zimbabwe)", eo: "Esperanto", et: "Estonian", fo: "Faeroese", fj: "Fijian", fi: "Finnish", fr: "French (Standard)", "fr-BE": "French (Belgium)", "fr-CA": "French (Canada)", "fr-FR": "French (France)", "fr-LU": "French (Luxembourg)", "fr-MC": "French (Monaco)", "fr-CH": "French (Switzerland)", fy: "Frisian", fur: "Friulian", gd: "Gaelic (Scots)", "gd-IE": "Gaelic (Irish)", gl: "Galacian", ka: "Georgian", de: "German (Standard)", "de-AT": "German (Austria)", "de-DE": "German (Germany)", "de-LI": "German (Liechtenstein)", "de-LU": "German (Luxembourg)", "de-CH": "German (Switzerland)", el: "Greek", gu: "Gujurati", ht: "Haitian", he: "Hebrew", hi: "Hindi", hu: "Hungarian", is: "Icelandic", id: "Indonesian", iu: "Inuktitut", ga: "Irish", it: "Italian (Standard)", "it-CH": "Italian (Switzerland)", ja: "Japanese", kn: "Kannada", ks: "Kashmiri", kk: "Kazakh", km: "Khmer", ky: "Kirghiz", tlh: "Klingon", ko: "Korean", "ko-KP": "Korean (North Korea)", "ko-KR": "Korean (South Korea)", la: "Latin", lv: "Latvian", lt: "Lithuanian", lb: "Luxembourgish", mk: "North Macedonia", ms: "Malay", ml: "Malayalam", mt: "Maltese", mi: "Maori", mr: "Marathi", mo: "Moldavian", nv: "Navajo", ng: "Ndonga", ne: "Nepali", no: "Norwegian", nb: "Norwegian (Bokmal)", nn: "Norwegian (Nynorsk)", oc: "Occitan", or: "Oriya", om: "Oromo", fa: "Persian", "fa-IR": "Persian/Iran", pl: "Polish", pt: "Portuguese", "pt-BR": "Portuguese (Brazil)", pa: "Punjabi", "pa-IN": "Punjabi (India)", "pa-PK": "Punjabi (Pakistan)", qu: "Quechua", rm: "Rhaeto-Romanic", ro: "Romanian", "ro-MO": "Romanian (Moldavia)", ru: "Russian", "ru-MO": "Russian (Moldavia)", sz: "Sami (Lappish)", sg: "Sango", sa: "Sanskrit", sc: "Sardinian", sd: "Sindhi", si: "Singhalese", sr: "Serbian", sk: "Slovak", sl: "Slovenian", so: "Somani", sb: "Sorbian", es: "Spanish", "es-AR": "Spanish (Argentina)", "es-BO": "Spanish (Bolivia)", "es-CL": "Spanish (Chile)", "es-CO": "Spanish (Colombia)", "es-CR": "Spanish (Costa Rica)", "es-DO": "Spanish (Dominican Republic)", "es-EC": "Spanish (Ecuador)", "es-SV": "Spanish (El Salvador)", "es-GT": "Spanish (Guatemala)", "es-HN": "Spanish (Honduras)", "es-MX": "Spanish (Mexico)", "es-NI": "Spanish (Nicaragua)", "es-PA": "Spanish (Panama)", "es-PY": "Spanish (Paraguay)", "es-PE": "Spanish (Peru)", "es-PR": "Spanish (Puerto Rico)", "es-ES": "Spanish (Spain)", "es-UY": "Spanish (Uruguay)", "es-VE": "Spanish (Venezuela)", sx: "Sutu", sw: "Swahili", sv: "Swedish", "sv-FI": "Swedish (Finland)", "sv-SV": "Swedish (Sweden)", ta: "Tamil", tt: "Tatar", te: "Teluga", th: "Thai", tig: "Tigre", ts: "Tsonga", tn: "Tswana", tr: "Turkish", tk: "Turkmen", uk: "Ukrainian", hsb: "Upper Sorbian", ur: "Urdu", ve: "Venda", vi: "Vietnamese", vo: "Volapuk", wa: "Walloon", cy: "Welsh", xh: "Xhosa", ji: "Yiddish", zu: "Zulu" }[e] !== void 0 && (this.internal.languageSettings.languageCode = e, this.internal.languageSettings.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
10671
10677
  this.internal.write("/Lang (" + this.internal.languageSettings.languageCode + ")");
10672
10678
  }), this.internal.languageSettings.isSubscribed = !0)), this;
10673
10679
  }, Is = Vt.API, cl = Is.getCharWidthsArray = function(e, t) {
10674
- var n, r, i = (t = t || {}).font || this.internal.getFont(), s = t.fontSize || this.internal.getFontSize(), o = t.charSpace || this.internal.getCharSpace(), l = t.widths ? t.widths : i.metadata.Unicode.widths, d = l.fof ? l.fof : 1, u = t.kerning ? t.kerning : i.metadata.Unicode.kerning, m = u.fof ? u.fof : 1, g = t.doKerning !== !1, v = 0, p = e.length, L = 0, x = l[0] || d, C = [];
10675
- for (n = 0; n < p; n++) r = e.charCodeAt(n), typeof i.metadata.widthOfString == "function" ? C.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r)) + o * (1e3 / s) || 0) / 1e3) : (v = g && Un(u[r]) === "object" && !isNaN(parseInt(u[r][L], 10)) ? u[r][L] / m : 0, C.push((l[r] || x) / d + v)), L = r;
10680
+ var n, r, i = (t = t || {}).font || this.internal.getFont(), s = t.fontSize || this.internal.getFontSize(), o = t.charSpace || this.internal.getCharSpace(), l = t.widths ? t.widths : i.metadata.Unicode.widths, d = l.fof ? l.fof : 1, u = t.kerning ? t.kerning : i.metadata.Unicode.kerning, m = u.fof ? u.fof : 1, g = t.doKerning !== !1, v = 0, p = e.length, _ = 0, x = l[0] || d, C = [];
10681
+ for (n = 0; n < p; n++) r = e.charCodeAt(n), typeof i.metadata.widthOfString == "function" ? C.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r)) + o * (1e3 / s) || 0) / 1e3) : (v = g && Un(u[r]) === "object" && !isNaN(parseInt(u[r][_], 10)) ? u[r][_] / m : 0, C.push((l[r] || x) / d + v)), _ = r;
10676
10682
  return C;
10677
10683
  }, J0 = Is.getStringUnitWidth = function(e, t) {
10678
10684
  var n = (t = t || {}).fontSize || this.internal.getFontSize(), r = t.font || this.internal.getFont(), i = t.charSpace || this.internal.getCharSpace();
@@ -10687,7 +10693,7 @@ endobj\r
10687
10693
  return d !== s && i.push(e.slice(d, s)), i;
10688
10694
  }, eh = function(e, t, n) {
10689
10695
  n || (n = {});
10690
- var r, i, s, o, l, d, u, m = [], g = [m], v = n.textIndent || 0, p = 0, L = 0, x = e.split(" "), C = cl.apply(this, [" ", n])[0];
10696
+ var r, i, s, o, l, d, u, m = [], g = [m], v = n.textIndent || 0, p = 0, _ = 0, x = e.split(" "), C = cl.apply(this, [" ", n])[0];
10691
10697
  if (d = n.lineIndent === -1 ? x[0].length + 2 : n.lineIndent || 0) {
10692
10698
  var I = Array(d).join(" "), D = [];
10693
10699
  x.map(function(U) {
@@ -10700,17 +10706,17 @@ endobj\r
10700
10706
  for (s = 0, o = x.length; s < o; s++) {
10701
10707
  var $ = 0;
10702
10708
  if (r = x[s], d && r[0] == `
10703
- ` && (r = r.substr(1), $ = 1), v + p + (L = (i = cl.apply(this, [r, n])).reduce(function(U, ue) {
10709
+ ` && (r = r.substr(1), $ = 1), v + p + (_ = (i = cl.apply(this, [r, n])).reduce(function(U, ue) {
10704
10710
  return U + ue;
10705
10711
  }, 0)) > t || $) {
10706
- if (L > t) {
10712
+ if (_ > t) {
10707
10713
  for (l = Q0.apply(this, [r, i, t - (v + p), t]), m.push(l.shift()), m = [l.pop()]; l.length; ) g.push([l.shift()]);
10708
- L = i.slice(r.length - (m[0] ? m[0].length : 0)).reduce(function(U, ue) {
10714
+ _ = i.slice(r.length - (m[0] ? m[0].length : 0)).reduce(function(U, ue) {
10709
10715
  return U + ue;
10710
10716
  }, 0);
10711
10717
  } else m = [r];
10712
- g.push(m), v = L + d, p = C;
10713
- } else m.push(r), v += p + L, p = C;
10718
+ g.push(m), v = _ + d, p = C;
10719
+ } else m.push(r), v += p + _, p = C;
10714
10720
  }
10715
10721
  return u = d ? function(U, ue) {
10716
10722
  return (ue ? I : "") + U.join(" ");
@@ -10735,24 +10741,24 @@ endobj\r
10735
10741
  var o = function(v) {
10736
10742
  return "0x" + parseInt(v, 10).toString(16);
10737
10743
  }, l = e.__fontmetrics__.compress = function(v) {
10738
- var p, L, x, C, I = ["{"];
10744
+ var p, _, x, C, I = ["{"];
10739
10745
  for (var D in v) {
10740
- if (p = v[D], isNaN(parseInt(D, 10)) ? L = "'" + D + "'" : (D = parseInt(D, 10), L = (L = o(D).slice(2)).slice(0, -1) + i[L.slice(-1)]), typeof p == "number") p < 0 ? (x = o(p).slice(3), C = "-") : (x = o(p).slice(2), C = ""), x = C + x.slice(0, -1) + i[x.slice(-1)];
10746
+ if (p = v[D], isNaN(parseInt(D, 10)) ? _ = "'" + D + "'" : (D = parseInt(D, 10), _ = (_ = o(D).slice(2)).slice(0, -1) + i[_.slice(-1)]), typeof p == "number") p < 0 ? (x = o(p).slice(3), C = "-") : (x = o(p).slice(2), C = ""), x = C + x.slice(0, -1) + i[x.slice(-1)];
10741
10747
  else {
10742
10748
  if (Un(p) !== "object") throw new Error("Don't know what to do with value type " + Un(p) + ".");
10743
10749
  x = l(p);
10744
10750
  }
10745
- I.push(L + x);
10751
+ I.push(_ + x);
10746
10752
  }
10747
10753
  return I.push("}"), I.join("");
10748
10754
  }, d = e.__fontmetrics__.uncompress = function(v) {
10749
10755
  if (typeof v != "string") throw new Error("Invalid argument passed to uncompress.");
10750
- for (var p, L, x, C, I = {}, D = 1, $ = I, U = [], ue = "", se = "", ye = v.length - 1, de = 1; de < ye; de += 1) (C = v[de]) == "'" ? p ? (x = p.join(""), p = void 0) : p = [] : p ? p.push(C) : C == "{" ? (U.push([$, x]), $ = {}, x = void 0) : C == "}" ? ((L = U.pop())[0][L[1]] = $, x = void 0, $ = L[0]) : C == "-" ? D = -1 : x === void 0 ? r.hasOwnProperty(C) ? (ue += r[C], x = parseInt(ue, 16) * D, D = 1, ue = "") : ue += C : r.hasOwnProperty(C) ? (se += r[C], $[x] = parseInt(se, 16) * D, D = 1, x = void 0, se = "") : se += C;
10756
+ for (var p, _, x, C, I = {}, D = 1, $ = I, U = [], ue = "", se = "", ye = v.length - 1, de = 1; de < ye; de += 1) (C = v[de]) == "'" ? p ? (x = p.join(""), p = void 0) : p = [] : p ? p.push(C) : C == "{" ? (U.push([$, x]), $ = {}, x = void 0) : C == "}" ? ((_ = U.pop())[0][_[1]] = $, x = void 0, $ = _[0]) : C == "-" ? D = -1 : x === void 0 ? r.hasOwnProperty(C) ? (ue += r[C], x = parseInt(ue, 16) * D, D = 1, ue = "") : ue += C : r.hasOwnProperty(C) ? (se += r[C], $[x] = parseInt(se, 16) * D, D = 1, x = void 0, se = "") : se += C;
10751
10757
  return I;
10752
10758
  }, u = { codePages: ["WinAnsiEncoding"], WinAnsiEncoding: d("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}") }, m = { Unicode: { Courier: u, "Courier-Bold": u, "Courier-BoldOblique": u, "Courier-Oblique": u, Helvetica: u, "Helvetica-Bold": u, "Helvetica-BoldOblique": u, "Helvetica-Oblique": u, "Times-Roman": u, "Times-Bold": u, "Times-BoldItalic": u, "Times-Italic": u } }, g = { Unicode: { "Courier-Oblique": d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-BoldItalic": d("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"), "Helvetica-Bold": d("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), Courier: d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-BoldOblique": d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Bold": d("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"), Symbol: d("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"), Helvetica: d("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"), "Helvetica-BoldOblique": d("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), ZapfDingbats: d("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-Bold": d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Italic": d("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"), "Times-Roman": d("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"), "Helvetica-Oblique": d("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}") } };
10753
10759
  e.events.push(["addFont", function(v) {
10754
- var p = v.font, L = g.Unicode[p.postScriptName];
10755
- L && (p.metadata.Unicode = {}, p.metadata.Unicode.widths = L.widths, p.metadata.Unicode.kerning = L.kerning);
10760
+ var p = v.font, _ = g.Unicode[p.postScriptName];
10761
+ _ && (p.metadata.Unicode = {}, p.metadata.Unicode.widths = _.widths, p.metadata.Unicode.kerning = _.kerning);
10756
10762
  var x = m.Unicode[p.postScriptName];
10757
10763
  x && (p.metadata.Unicode.encoding = x, p.encoding = x.codePages[0]);
10758
10764
  }]);
@@ -10784,7 +10790,7 @@ endobj\r
10784
10790
  var u = d.getContext("2d");
10785
10791
  u.fillStyle = "#fff", u.fillRect(0, 0, d.width, d.height);
10786
10792
  var m = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, g = this;
10787
- return (cn.canvg ? Promise.resolve(cn.canvg) : import("./index.es-BrpA_Qq4.js")).catch(function(v) {
10793
+ return (cn.canvg ? Promise.resolve(cn.canvg) : import("./index.es-CllpzaEn.js")).catch(function(v) {
10788
10794
  return Promise.reject(new Error("Could not load canvg: " + v));
10789
10795
  }).then(function(v) {
10790
10796
  return v.default ? v.default : v;
@@ -10806,9 +10812,9 @@ endobj\r
10806
10812
  var n;
10807
10813
  e = e || {}, t = t || !1;
10808
10814
  var r, i, s, o = { HideToolbar: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, HideMenubar: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, HideWindowUI: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, FitWindow: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, CenterWindow: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, DisplayDocTitle: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.4 }, NonFullScreenPageMode: { defaultValue: "UseNone", value: "UseNone", type: "name", explicitSet: !1, valueSet: ["UseNone", "UseOutlines", "UseThumbs", "UseOC"], pdfVersion: 1.3 }, Direction: { defaultValue: "L2R", value: "L2R", type: "name", explicitSet: !1, valueSet: ["L2R", "R2L"], pdfVersion: 1.3 }, ViewArea: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, ViewClip: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintArea: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintClip: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintScaling: { defaultValue: "AppDefault", value: "AppDefault", type: "name", explicitSet: !1, valueSet: ["AppDefault", "None"], pdfVersion: 1.6 }, Duplex: { defaultValue: "", value: "none", type: "name", explicitSet: !1, valueSet: ["Simplex", "DuplexFlipShortEdge", "DuplexFlipLongEdge", "none"], pdfVersion: 1.7 }, PickTrayByPDFSize: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.7 }, PrintPageRange: { defaultValue: "", value: "", type: "array", explicitSet: !1, valueSet: null, pdfVersion: 1.7 }, NumCopies: { defaultValue: 1, value: 1, type: "integer", explicitSet: !1, valueSet: null, pdfVersion: 1.7 } }, l = Object.keys(o), d = [], u = 0, m = 0, g = 0;
10809
- function v(L, x) {
10815
+ function v(_, x) {
10810
10816
  var C, I = !1;
10811
- for (C = 0; C < L.length; C += 1) L[C] === x && (I = !0);
10817
+ for (C = 0; C < _.length; C += 1) _[C] === x && (I = !0);
10812
10818
  return I;
10813
10819
  }
10814
10820
  if (this.internal.viewerpreferences === void 0 && (this.internal.viewerpreferences = {}, this.internal.viewerpreferences.configuration = JSON.parse(JSON.stringify(o)), this.internal.viewerpreferences.isSubscribed = !1), n = this.internal.viewerpreferences.configuration, e === "reset" || t === !0) {
@@ -10832,8 +10838,8 @@ endobj\r
10832
10838
  }
10833
10839
  }
10834
10840
  return this.internal.viewerpreferences.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
10835
- var L, x = [];
10836
- for (L in n) n[L].explicitSet === !0 && (n[L].type === "name" ? x.push("/" + L + " /" + n[L].value) : x.push("/" + L + " " + n[L].value));
10841
+ var _, x = [];
10842
+ for (_ in n) n[_].explicitSet === !0 && (n[_].type === "name" ? x.push("/" + _ + " /" + n[_].value) : x.push("/" + _ + " " + n[_].value));
10837
10843
  x.length !== 0 && this.internal.write(`/ViewerPreferences
10838
10844
  <<
10839
10845
  ` + x.join(`
@@ -10896,8 +10902,8 @@ begincmap
10896
10902
  /CMapType 2 def
10897
10903
  1 begincodespacerange
10898
10904
  <0000><ffff>
10899
- endcodespacerange`, d = [], g = 0, v = (l = Object.keys(s).sort(function(p, L) {
10900
- return p - L;
10905
+ endcodespacerange`, d = [], g = 0, v = (l = Object.keys(s).sort(function(p, _) {
10906
+ return p - _;
10901
10907
  })).length; g < v; g++) o = l[g], d.length >= 100 && (m += `
10902
10908
  ` + d.length + ` beginbfchar
10903
10909
  ` + d.join(`
@@ -10917,7 +10923,7 @@ end`;
10917
10923
  (function(o) {
10918
10924
  var l = o.font, d = o.out, u = o.newObject, m = o.putStream;
10919
10925
  if (l.metadata instanceof e.API.TTFFont && l.encoding === "Identity-H") {
10920
- for (var g = l.metadata.Unicode.widths, v = l.metadata.subset.encode(l.metadata.glyIdsUsed, 1), p = "", L = 0; L < v.length; L++) p += String.fromCharCode(v[L]);
10926
+ for (var g = l.metadata.Unicode.widths, v = l.metadata.subset.encode(l.metadata.glyIdsUsed, 1), p = "", _ = 0; _ < v.length; _++) p += String.fromCharCode(v[_]);
10921
10927
  var x = u();
10922
10928
  m({ data: p, addLength1: !0, objectId: x }), d("endobj");
10923
10929
  var C = u();
@@ -10933,25 +10939,25 @@ end`;
10933
10939
  var l = o.font, d = o.out, u = o.newObject, m = o.putStream;
10934
10940
  if (l.metadata instanceof e.API.TTFFont && l.encoding === "WinAnsiEncoding") {
10935
10941
  for (var g = l.metadata.rawData, v = "", p = 0; p < g.length; p++) v += String.fromCharCode(g[p]);
10936
- var L = u();
10937
- m({ data: v, addLength1: !0, objectId: L }), d("endobj");
10942
+ var _ = u();
10943
+ m({ data: v, addLength1: !0, objectId: _ }), d("endobj");
10938
10944
  var x = u();
10939
10945
  m({ data: r(l.metadata.toUnicode), addLength1: !0, objectId: x }), d("endobj");
10940
10946
  var C = u();
10941
- d("<<"), d("/Descent " + l.metadata.decender), d("/CapHeight " + l.metadata.capHeight), d("/StemV " + l.metadata.stemV), d("/Type /FontDescriptor"), d("/FontFile2 " + L + " 0 R"), d("/Flags 96"), d("/FontBBox " + e.API.PDFObject.convert(l.metadata.bbox)), d("/FontName /" + Fs(l.fontName)), d("/ItalicAngle " + l.metadata.italicAngle), d("/Ascent " + l.metadata.ascender), d(">>"), d("endobj"), l.objectNumber = u();
10947
+ d("<<"), d("/Descent " + l.metadata.decender), d("/CapHeight " + l.metadata.capHeight), d("/StemV " + l.metadata.stemV), d("/Type /FontDescriptor"), d("/FontFile2 " + _ + " 0 R"), d("/Flags 96"), d("/FontBBox " + e.API.PDFObject.convert(l.metadata.bbox)), d("/FontName /" + Fs(l.fontName)), d("/ItalicAngle " + l.metadata.italicAngle), d("/Ascent " + l.metadata.ascender), d(">>"), d("endobj"), l.objectNumber = u();
10942
10948
  for (var I = 0; I < l.metadata.hmtx.widths.length; I++) l.metadata.hmtx.widths[I] = parseInt(l.metadata.hmtx.widths[I] * (1e3 / l.metadata.head.unitsPerEm));
10943
10949
  d("<</Subtype/TrueType/Type/Font/ToUnicode " + x + " 0 R/BaseFont/" + Fs(l.fontName) + "/FontDescriptor " + C + " 0 R/Encoding/" + l.encoding + " /FirstChar 29 /LastChar 255 /Widths " + e.API.PDFObject.convert(l.metadata.hmtx.widths) + ">>"), d("endobj"), l.isAlreadyPutted = !0;
10944
10950
  }
10945
10951
  })(s);
10946
10952
  }]);
10947
10953
  var i = function(s) {
10948
- var o, l = s.text || "", d = s.x, u = s.y, m = s.options || {}, g = s.mutex || {}, v = g.pdfEscape, p = g.activeFontKey, L = g.fonts, x = p, C = "", I = 0, D = "", $ = L[x].encoding;
10949
- if (L[x].encoding !== "Identity-H") return { text: l, x: d, y: u, options: m, mutex: g };
10950
- for (D = l, x = p, Array.isArray(l) && (D = l[0]), I = 0; I < D.length; I += 1) L[x].metadata.hasOwnProperty("cmap") && (o = L[x].metadata.cmap.unicode.codeMap[D[I].charCodeAt(0)]), o || D[I].charCodeAt(0) < 256 && L[x].metadata.hasOwnProperty("Unicode") ? C += D[I] : C += "";
10954
+ var o, l = s.text || "", d = s.x, u = s.y, m = s.options || {}, g = s.mutex || {}, v = g.pdfEscape, p = g.activeFontKey, _ = g.fonts, x = p, C = "", I = 0, D = "", $ = _[x].encoding;
10955
+ if (_[x].encoding !== "Identity-H") return { text: l, x: d, y: u, options: m, mutex: g };
10956
+ for (D = l, x = p, Array.isArray(l) && (D = l[0]), I = 0; I < D.length; I += 1) _[x].metadata.hasOwnProperty("cmap") && (o = _[x].metadata.cmap.unicode.codeMap[D[I].charCodeAt(0)]), o || D[I].charCodeAt(0) < 256 && _[x].metadata.hasOwnProperty("Unicode") ? C += D[I] : C += "";
10951
10957
  var U = "";
10952
10958
  return parseInt(x.slice(1)) < 14 || $ === "WinAnsiEncoding" ? U = v(C, x).split("").map(function(ue) {
10953
10959
  return ue.charCodeAt(0).toString(16);
10954
- }).join("") : $ === "Identity-H" && (U = n(C, L[x])), g.isHex = !0, { text: U, x: d, y: u, options: m, mutex: g };
10960
+ }).join("") : $ === "Identity-H" && (U = n(C, _[x])), g.isHex = !0, { text: U, x: d, y: u, options: m, mutex: g };
10955
10961
  };
10956
10962
  t.events.push(["postProcessText", function(s) {
10957
10963
  var o = s.text || "", l = [], d = { text: o, x: s.x, y: s.y, options: s.options, mutex: s.mutex };
@@ -10986,7 +10992,7 @@ end`;
10986
10992
  */
10987
10993
  (function(e) {
10988
10994
  e.__bidiEngine__ = e.prototype.__bidiEngine__ = function(r) {
10989
- var i, s, o, l, d, u, m, g = t, v = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]], p = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]], L = { L: 0, R: 1, EN: 2, AN: 3, N: 4, B: 5, S: 6 }, x = { 0: 0, 5: 1, 6: 2, 7: 3, 32: 4, 251: 5, 254: 6, 255: 7 }, C = ["(", ")", "(", "<", ">", "<", "[", "]", "[", "{", "}", "{", "«", "»", "«", "‹", "›", "‹", "⁅", "⁆", "⁅", "⁽", "⁾", "⁽", "₍", "₎", "₍", "≤", "≥", "≤", "〈", "〉", "〈", "﹙", "﹚", "﹙", "﹛", "﹜", "﹛", "﹝", "﹞", "﹝", "﹤", "﹥", "﹤"], I = new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/), D = !1, $ = 0;
10995
+ var i, s, o, l, d, u, m, g = t, v = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]], p = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]], _ = { L: 0, R: 1, EN: 2, AN: 3, N: 4, B: 5, S: 6 }, x = { 0: 0, 5: 1, 6: 2, 7: 3, 32: 4, 251: 5, 254: 6, 255: 7 }, C = ["(", ")", "(", "<", ">", "<", "[", "]", "[", "{", "}", "{", "«", "»", "«", "‹", "›", "‹", "⁅", "⁆", "⁅", "⁽", "⁾", "⁽", "₍", "₎", "₍", "≤", "≥", "≤", "〈", "〉", "〈", "﹙", "﹚", "﹙", "﹛", "﹜", "﹛", "﹝", "﹞", "﹝", "﹤", "﹥", "﹤"], I = new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/), D = !1, $ = 0;
10990
10996
  this.__bidiEngine__ = {};
10991
10997
  var U = function(j) {
10992
10998
  var K = j.charCodeAt(), O = K >> 8, R = x[O];
@@ -11064,14 +11070,14 @@ end`;
11064
11070
  var R = j.split("");
11065
11071
  return O && de(R, O, { hiLevel: $ }), R.reverse(), K && K.reverse(), R.join("");
11066
11072
  }, de = function(j, K, O) {
11067
- var R, te, J, T, Y, le = -1, q = j.length, ne = 0, A = [], _ = $ ? p : v, b = [];
11073
+ var R, te, J, T, Y, le = -1, q = j.length, ne = 0, A = [], L = $ ? p : v, b = [];
11068
11074
  for (D = !1, i = !1, s = !1, te = 0; te < q; te++) b[te] = U(j[te]);
11069
11075
  for (J = 0; J < q; J++) {
11070
- if (Y = ne, A[J] = se(j, b, A, J), R = 240 & (ne = _[Y][L[A[J]]]), ne &= 15, K[J] = T = _[ne][5], R > 0) if (R === 16) {
11076
+ if (Y = ne, A[J] = se(j, b, A, J), R = 240 & (ne = L[Y][_[A[J]]]), ne &= 15, K[J] = T = L[ne][5], R > 0) if (R === 16) {
11071
11077
  for (te = le; te < J; te++) K[te] = 1;
11072
11078
  le = -1;
11073
11079
  } else le = -1;
11074
- if (_[ne][6]) le === -1 && (le = J);
11080
+ if (L[ne][6]) le === -1 && (le = J);
11075
11081
  else if (le > -1) {
11076
11082
  for (te = le; te < J; te++) K[te] = T;
11077
11083
  le = -1;
@@ -11232,9 +11238,9 @@ var si, ls = (function() {
11232
11238
  for (this.scalarType = n.readInt(), this.tableCount = n.readShort(), this.searchRange = n.readShort(), this.entrySelector = n.readShort(), this.rangeShift = n.readShort(), this.tables = {}, i = 0, s = this.tableCount; 0 <= s ? i < s : i > s; i = 0 <= s ? ++i : --i) r = { tag: n.readString(4), checksum: n.readInt(), offset: n.readInt(), length: n.readInt() }, this.tables[r.tag] = r;
11233
11239
  }
11234
11240
  return t.prototype.encode = function(n) {
11235
- var r, i, s, o, l, d, u, m, g, v, p, L, x;
11236
- for (x in p = Object.keys(n).length, d = Math.log(2), g = 16 * Math.floor(Math.log(p) / d), o = Math.floor(g / d), m = 16 * p - g, (i = new ls()).writeInt(this.scalarType), i.writeShort(p), i.writeShort(g), i.writeShort(o), i.writeShort(m), s = 16 * p, u = i.pos + s, l = null, L = [], n) for (v = n[x], i.writeString(x), i.writeInt(e(v)), i.writeInt(u), i.writeInt(v.length), L = L.concat(v), x === "head" && (l = u), u += v.length; u % 4; ) L.push(0), u++;
11237
- return i.write(L), r = 2981146554 - e(i.data), i.pos = l + 8, i.writeUInt32(r), i.data;
11241
+ var r, i, s, o, l, d, u, m, g, v, p, _, x;
11242
+ for (x in p = Object.keys(n).length, d = Math.log(2), g = 16 * Math.floor(Math.log(p) / d), o = Math.floor(g / d), m = 16 * p - g, (i = new ls()).writeInt(this.scalarType), i.writeShort(p), i.writeShort(g), i.writeShort(o), i.writeShort(m), s = 16 * p, u = i.pos + s, l = null, _ = [], n) for (v = n[x], i.writeString(x), i.writeInt(e(v)), i.writeInt(u), i.writeInt(v.length), _ = _.concat(v), x === "head" && (l = u), u += v.length; u % 4; ) _.push(0), u++;
11243
+ return i.write(_), r = 2981146554 - e(i.data), i.pos = l + 8, i.writeUInt32(r), i.data;
11238
11244
  }, e = function(n) {
11239
11245
  var r, i, s, o;
11240
11246
  for (n = W1.call(n); n.length % 4; ) n.push(0);
@@ -11271,7 +11277,7 @@ var Jg = (function() {
11271
11277
  }, e;
11272
11278
  })(), ch = (function() {
11273
11279
  function e(t, n) {
11274
- var r, i, s, o, l, d, u, m, g, v, p, L, x, C, I, D, $;
11280
+ var r, i, s, o, l, d, u, m, g, v, p, _, x, C, I, D, $;
11275
11281
  switch (this.platformID = t.readUInt16(), this.encodingID = t.readShort(), this.offset = n + t.readInt(), g = t.pos, t.pos = this.offset, this.format = t.readUInt16(), this.length = t.readUInt16(), this.language = t.readUInt16(), this.isUnicode = this.platformID === 3 && this.encodingID === 1 && this.format === 4 || this.platformID === 0 && this.format === 4, this.codeMap = {}, this.format) {
11276
11282
  case 0:
11277
11283
  for (d = 0; d < 256; ++d) this.codeMap[d] = t.readByte();
@@ -11297,34 +11303,34 @@ var Jg = (function() {
11297
11303
  var U, ue;
11298
11304
  for (ue = [], d = U = 0; 0 <= i ? U < i : U > i; d = 0 <= i ? ++U : --U) ue.push(t.readUInt16());
11299
11305
  return ue;
11300
- })(), d = I = 0, $ = s.length; I < $; d = ++I) for (C = s[d], r = D = L = x[d]; L <= C ? D <= C : D >= C; r = L <= C ? ++D : --D) m[d] === 0 ? o = r + u[d] : (o = l[m[d] / 2 + (r - L) - (v - d)] || 0) !== 0 && (o += u[d]), this.codeMap[r] = 65535 & o;
11306
+ })(), d = I = 0, $ = s.length; I < $; d = ++I) for (C = s[d], r = D = _ = x[d]; _ <= C ? D <= C : D >= C; r = _ <= C ? ++D : --D) m[d] === 0 ? o = r + u[d] : (o = l[m[d] / 2 + (r - _) - (v - d)] || 0) !== 0 && (o += u[d]), this.codeMap[r] = 65535 & o;
11301
11307
  }
11302
11308
  t.pos = g;
11303
11309
  }
11304
11310
  return e.encode = function(t, n) {
11305
- var r, i, s, o, l, d, u, m, g, v, p, L, x, C, I, D, $, U, ue, se, ye, de, X, me, j, K, O, R, te, J, T, Y, le, q, ne, A, _, b, k, w, S, z, H, ce, V, F;
11311
+ var r, i, s, o, l, d, u, m, g, v, p, _, x, C, I, D, $, U, ue, se, ye, de, X, me, j, K, O, R, te, J, T, Y, le, q, ne, A, L, b, k, w, S, z, H, ce, V, F;
11306
11312
  switch (R = new ls(), o = Object.keys(t).sort(function(Q, oe) {
11307
11313
  return Q - oe;
11308
11314
  }), n) {
11309
11315
  case "macroman":
11310
11316
  for (x = 0, C = (function() {
11311
11317
  var Q = [];
11312
- for (L = 0; L < 256; ++L) Q.push(0);
11318
+ for (_ = 0; _ < 256; ++_) Q.push(0);
11313
11319
  return Q;
11314
11320
  })(), D = { 0: 0 }, s = {}, te = 0, le = o.length; te < le; te++) D[H = t[i = o[te]]] == null && (D[H] = ++x), s[i] = { old: t[i], new: D[t[i]] }, C[i] = D[t[i]];
11315
11321
  return R.writeUInt16(1), R.writeUInt16(0), R.writeUInt32(12), R.writeUInt16(0), R.writeUInt16(262), R.writeUInt16(0), R.write(C), { charMap: s, subtable: R.data, maxGlyphID: x + 1 };
11316
11322
  case "unicode":
11317
11323
  for (K = [], g = [], $ = 0, D = {}, r = {}, I = u = null, J = 0, q = o.length; J < q; J++) D[ue = t[i = o[J]]] == null && (D[ue] = ++$), r[i] = { old: ue, new: D[ue] }, l = D[ue] - i, I != null && l === u || (I && g.push(I), K.push(i), u = l), I = i;
11318
- for (I && g.push(I), g.push(65535), K.push(65535), me = 2 * (X = K.length), de = 2 * Math.pow(Math.log(X) / Math.LN2, 2), v = Math.log(de / 2) / Math.LN2, ye = 2 * X - de, d = [], se = [], p = [], L = T = 0, ne = K.length; T < ne; L = ++T) {
11319
- if (j = K[L], m = g[L], j === 65535) {
11324
+ for (I && g.push(I), g.push(65535), K.push(65535), me = 2 * (X = K.length), de = 2 * Math.pow(Math.log(X) / Math.LN2, 2), v = Math.log(de / 2) / Math.LN2, ye = 2 * X - de, d = [], se = [], p = [], _ = T = 0, ne = K.length; T < ne; _ = ++T) {
11325
+ if (j = K[_], m = g[_], j === 65535) {
11320
11326
  d.push(0), se.push(0);
11321
11327
  break;
11322
11328
  }
11323
- if (j - (O = r[j].new) >= 32768) for (d.push(0), se.push(2 * (p.length + X - L)), i = Y = j; j <= m ? Y <= m : Y >= m; i = j <= m ? ++Y : --Y) p.push(r[i].new);
11329
+ if (j - (O = r[j].new) >= 32768) for (d.push(0), se.push(2 * (p.length + X - _)), i = Y = j; j <= m ? Y <= m : Y >= m; i = j <= m ? ++Y : --Y) p.push(r[i].new);
11324
11330
  else d.push(O - j), se.push(0);
11325
11331
  }
11326
11332
  for (R.writeUInt16(3), R.writeUInt16(1), R.writeUInt32(12), R.writeUInt16(4), R.writeUInt16(16 + 8 * X + 2 * p.length), R.writeUInt16(0), R.writeUInt16(me), R.writeUInt16(de), R.writeUInt16(v), R.writeUInt16(ye), S = 0, A = g.length; S < A; S++) i = g[S], R.writeUInt16(i);
11327
- for (R.writeUInt16(0), z = 0, _ = K.length; z < _; z++) i = K[z], R.writeUInt16(i);
11333
+ for (R.writeUInt16(0), z = 0, L = K.length; z < L; z++) i = K[z], R.writeUInt16(i);
11328
11334
  for (ce = 0, b = d.length; ce < b; ce++) l = d[ce], R.writeUInt16(l);
11329
11335
  for (V = 0, k = se.length; V < k; V++) U = se[V], R.writeUInt16(U);
11330
11336
  for (F = 0, w = p.length; F < w; F++) x = p[F], R.writeUInt16(x);
@@ -11513,9 +11519,9 @@ var Jg = (function() {
11513
11519
  if (n.length > 0) for (s in d = this.glyphsFor(n)) r = d[s], i[s] = r;
11514
11520
  return i;
11515
11521
  }, e.prototype.encode = function(t, n) {
11516
- var r, i, s, o, l, d, u, m, g, v, p, L, x, C, I;
11522
+ var r, i, s, o, l, d, u, m, g, v, p, _, x, C, I;
11517
11523
  for (i in r = H1.encode(this.generateCmap(), "unicode"), o = this.glyphsFor(t), p = { 0: 0 }, I = r.charMap) p[(d = I[i]).old] = d.new;
11518
- for (L in v = r.maxGlyphID, o) L in p || (p[L] = v++);
11524
+ for (_ in v = r.maxGlyphID, o) _ in p || (p[_] = v++);
11519
11525
  return m = (function(D) {
11520
11526
  var $, U;
11521
11527
  for ($ in U = {}, D) U[D[$]] = $;
@@ -13048,7 +13054,7 @@ const m3 = [
13048
13054
  showToolbar: g = !0,
13049
13055
  children: v,
13050
13056
  exportAccess: p,
13051
- canSaveLoadJson: L = !0,
13057
+ canSaveLoadJson: _ = !0,
13052
13058
  upgradeUrl: x,
13053
13059
  onRequestUpgrade: C,
13054
13060
  onSaveDesign: I,
@@ -13068,7 +13074,7 @@ const m3 = [
13068
13074
  const z = S.section ?? "other";
13069
13075
  z === "web" || z === "print" || z === "other" ? Y[z].push(S) : Y.other.push(S);
13070
13076
  });
13071
- const le = te || J || L || !!x || T.length > 0, q = (U || []).filter((S) => (S == null ? void 0 : S.id) && (S == null ? void 0 : S.label)).filter((S) => S.location === "topbar" || S.location === "both").filter((S) => !S.showFor || S.showFor.length === 0 ? !0 : ue != null && ue.element ? S.showFor.includes(ue.element.type) : !1), ne = ye === "custom", A = (S) => {
13077
+ const le = te || J || _ || !!x || T.length > 0, q = (U || []).filter((S) => (S == null ? void 0 : S.id) && (S == null ? void 0 : S.label)).filter((S) => S.location === "topbar" || S.location === "both").filter((S) => !S.showFor || S.showFor.length === 0 ? !0 : ue != null && ue.element ? S.showFor.includes(ue.element.type) : !1), ne = ye === "custom", A = (S) => {
13072
13078
  if (!ue) return null;
13073
13079
  if (S.render) {
13074
13080
  const H = S.render;
@@ -13095,7 +13101,7 @@ const m3 = [
13095
13101
  };
13096
13102
  return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
13097
13103
  }, []);
13098
- const _ = (S) => {
13104
+ const L = (S) => {
13099
13105
  S === "web" && !te || S !== "web" && !J || (t(S), X(!1));
13100
13106
  }, b = (S) => S === "web" ? te : S === "print" ? J : te || J, k = (S) => {
13101
13107
  const z = S.section ?? "other";
@@ -13217,7 +13223,7 @@ const m3 = [
13217
13223
  ), de && /* @__PURE__ */ a.createElement("div", { className: "absolute right-0 top-full mt-2 w-64 bg-white rounded-xl shadow-xl border border-gray-100 p-1.5 animate-in fade-in zoom-in-95 duration-100 z-50" }, /* @__PURE__ */ a.createElement(
13218
13224
  "button",
13219
13225
  {
13220
- onClick: () => _("web"),
13226
+ onClick: () => L("web"),
13221
13227
  disabled: !te,
13222
13228
  className: `w-full text-left px-3 py-2.5 rounded-lg hover:bg-gray-50 flex items-center gap-3 transition-colors group ${te ? "" : "opacity-60 cursor-not-allowed"}`
13223
13229
  },
@@ -13227,7 +13233,7 @@ const m3 = [
13227
13233
  ), Y.web.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "my-1 border-t border-gray-100" }), /* @__PURE__ */ a.createElement("div", { className: "px-3 py-1.5 text-[10px] font-bold text-slate-400 uppercase tracking-wider" }, "Custom Web"), Y.web.map(w)), /* @__PURE__ */ a.createElement("div", { className: "my-1 border-t border-gray-100" }), /* @__PURE__ */ a.createElement("div", { className: "px-3 py-1.5 text-[10px] font-bold text-slate-400 uppercase tracking-wider" }, "Print Ready (300 DPI)"), /* @__PURE__ */ a.createElement(
13228
13234
  "button",
13229
13235
  {
13230
- onClick: () => _("print_pdf"),
13236
+ onClick: () => L("print_pdf"),
13231
13237
  disabled: !J,
13232
13238
  className: `w-full text-left px-3 py-2.5 rounded-lg hover:bg-gray-50 flex items-center gap-3 transition-colors group ${J ? "" : "opacity-60 cursor-not-allowed"}`
13233
13239
  },
@@ -13237,7 +13243,7 @@ const m3 = [
13237
13243
  ), /* @__PURE__ */ a.createElement(
13238
13244
  "button",
13239
13245
  {
13240
- onClick: () => _("print_png"),
13246
+ onClick: () => L("print_png"),
13241
13247
  disabled: !J,
13242
13248
  className: `w-full text-left px-3 py-2.5 rounded-lg hover:bg-gray-50 flex items-center gap-3 transition-colors group ${J ? "" : "opacity-60 cursor-not-allowed"}`
13243
13249
  },
@@ -13247,13 +13253,13 @@ const m3 = [
13247
13253
  ), Y.print.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "my-1 border-t border-gray-100" }), /* @__PURE__ */ a.createElement("div", { className: "px-3 py-1.5 text-[10px] font-bold text-slate-400 uppercase tracking-wider" }, "Custom Print"), Y.print.map(w)), Y.other.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "my-1 border-t border-gray-100" }), /* @__PURE__ */ a.createElement("div", { className: "px-3 py-1.5 text-[10px] font-bold text-slate-400 uppercase tracking-wider" }, "Custom Exports"), Y.other.map(w)), /* @__PURE__ */ a.createElement("div", { className: "my-1 border-t border-gray-100" }), /* @__PURE__ */ a.createElement("div", { className: "px-3 py-1.5 text-[10px] font-bold text-slate-400 uppercase tracking-wider" }, "Backup"), /* @__PURE__ */ a.createElement(
13248
13254
  "button",
13249
13255
  {
13250
- onClick: () => _("json"),
13251
- disabled: !L,
13252
- className: `w-full text-left px-3 py-2.5 rounded-lg hover:bg-gray-50 flex items-center gap-3 transition-colors group ${L ? "" : "opacity-60 cursor-not-allowed"}`
13256
+ onClick: () => L("json"),
13257
+ disabled: !_,
13258
+ className: `w-full text-left px-3 py-2.5 rounded-lg hover:bg-gray-50 flex items-center gap-3 transition-colors group ${_ ? "" : "opacity-60 cursor-not-allowed"}`
13253
13259
  },
13254
13260
  /* @__PURE__ */ a.createElement("div", { className: "p-2 bg-emerald-50 text-emerald-600 rounded-md group-hover:bg-emerald-100 transition-colors" }, /* @__PURE__ */ a.createElement(Xs, { size: 18 })),
13255
13261
  /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("div", { className: "text-sm font-semibold text-slate-800" }, "Save Design (JSON)"), /* @__PURE__ */ a.createElement("div", { className: "text-xs text-slate-500" }, "Download project file")),
13256
- !L && /* @__PURE__ */ a.createElement("div", { className: "ml-auto text-[10px] font-semibold text-amber-600 flex items-center gap-1" }, /* @__PURE__ */ a.createElement(xi, { size: 12 }), /* @__PURE__ */ a.createElement("span", null, "Pro"))
13262
+ !_ && /* @__PURE__ */ a.createElement("div", { className: "ml-auto text-[10px] font-semibold text-amber-600 flex items-center gap-1" }, /* @__PURE__ */ a.createElement(xi, { size: 12 }), /* @__PURE__ */ a.createElement("span", null, "Pro"))
13257
13263
  ), !J && /* @__PURE__ */ a.createElement("div", { className: "mt-2 rounded-lg border border-amber-100 bg-amber-50 px-3 py-2 text-[11px] text-amber-700 flex items-center justify-between gap-2" }, /* @__PURE__ */ a.createElement("span", null, "Upgrade to unlock print exports."), C && /* @__PURE__ */ a.createElement("button", { onClick: () => C("export-print"), className: "text-[11px] font-semibold text-amber-700 hover:text-amber-900" }, "Upgrade")), !te && /* @__PURE__ */ a.createElement("div", { className: "mt-2 rounded-lg border border-amber-100 bg-amber-50 px-3 py-2 text-[11px] text-amber-700 flex items-center justify-between gap-2" }, /* @__PURE__ */ a.createElement("span", null, "Upgrade to unlock web exports."), C && /* @__PURE__ */ a.createElement("button", { onClick: () => C("export-web"), className: "text-[11px] font-semibold text-amber-700 hover:text-amber-900" }, "Upgrade"))))))),
13258
13264
  R && /* @__PURE__ */ a.createElement(
13259
13265
  "div",
@@ -13279,13 +13285,16 @@ const y3 = ({ activeTool: e, setActiveTool: t, featureAccess: n = {}, onRequestU
13279
13285
  { id: Ct.UPLOADS, icon: lb, label: "Uploads", feature: "uploads" },
13280
13286
  { id: Ct.QR_CODE, icon: Fo, label: "QR Code", feature: "qrcode" },
13281
13287
  { id: Ct.LAYERS, icon: Dd, label: "Layers", feature: "layers" }
13282
- ], u = new Set(l), m = o ? [] : d.filter((p) => !u.has(p.id)), g = (s || []).filter((p) => (p == null ? void 0 : p.id) && (p == null ? void 0 : p.label)).filter((p) => !u.has(p.id)).map((p) => ({
13283
- id: p.id,
13284
- icon: p.icon || g4,
13285
- label: p.label,
13286
- feature: p.feature
13287
- })), v = m.concat(g);
13288
- return /* @__PURE__ */ a.createElement(
13288
+ ], u = new Set(l), m = o ? [] : d.filter((p) => !u.has(p.id)), g = (s || []).filter((p) => (p == null ? void 0 : p.id) && (p == null ? void 0 : p.label)).filter((p) => !u.has(p.id)), v = [...m];
13289
+ return g.forEach((p) => {
13290
+ const _ = v.findIndex((I) => I.id === p.id), x = _ >= 0 ? v[_] : null, C = {
13291
+ id: p.id,
13292
+ icon: p.icon || (x == null ? void 0 : x.icon) || g4,
13293
+ label: p.label || (x == null ? void 0 : x.label) || p.id,
13294
+ feature: p.feature ?? (x == null ? void 0 : x.feature)
13295
+ };
13296
+ _ >= 0 ? v[_] = C : v.push(C);
13297
+ }), /* @__PURE__ */ a.createElement(
13289
13298
  "div",
13290
13299
  {
13291
13300
  className: `
@@ -13301,7 +13310,7 @@ const y3 = ({ activeTool: e, setActiveTool: t, featureAccess: n = {}, onRequestU
13301
13310
  style: { paddingBottom: "calc(env(safe-area-inset-bottom) + 10px)" }
13302
13311
  },
13303
13312
  v.map((p) => {
13304
- const L = e === p.id, x = p.icon, C = i && (!p.feature || n[p.feature] !== !1);
13313
+ const _ = e === p.id, x = p.icon, C = i && (!p.feature || n[p.feature] !== !1);
13305
13314
  return p.id === Ct.TEMPLATES ? /* @__PURE__ */ a.createElement(
13306
13315
  "button",
13307
13316
  {
@@ -13311,17 +13320,17 @@ const y3 = ({ activeTool: e, setActiveTool: t, featureAccess: n = {}, onRequestU
13311
13320
  r == null || r(p.label);
13312
13321
  return;
13313
13322
  }
13314
- t(L ? null : p.id);
13323
+ t(_ ? null : p.id);
13315
13324
  },
13316
13325
  "aria-disabled": !C,
13317
13326
  className: `group flex flex-col items-center justify-center gap-1.5 flex-shrink-0 w-16 md:w-16 my-1 ${C ? "" : "opacity-60 cursor-not-allowed"}`
13318
13327
  },
13319
13328
  /* @__PURE__ */ a.createElement("div", { className: `
13320
13329
  w-12 h-12 md:w-11 md:h-11 rounded-full flex items-center justify-center transition-all shadow-sm
13321
- ${L ? "bg-[#0d1824] scale-95" : "bg-[#0d1824] hover:opacity-90 hover:scale-105 hover:shadow-md"}
13330
+ ${_ ? "bg-[#0d1824] scale-95" : "bg-[#0d1824] hover:opacity-90 hover:scale-105 hover:shadow-md"}
13322
13331
  text-white
13323
13332
  ` }, /* @__PURE__ */ a.createElement(x, { size: 26, strokeWidth: 2.5 })),
13324
- /* @__PURE__ */ a.createElement("span", { className: `text-[10px] font-medium transition-colors ${L ? "text-[#0d1824] font-bold" : "text-slate-600 group-hover:text-[#0d1824]"}` }, p.label),
13333
+ /* @__PURE__ */ a.createElement("span", { className: `text-[10px] font-medium transition-colors ${_ ? "text-[#0d1824] font-bold" : "text-slate-600 group-hover:text-[#0d1824]"}` }, p.label),
13325
13334
  !C && /* @__PURE__ */ a.createElement("span", { className: "text-[9px] text-amber-600 font-semibold flex items-center gap-1" }, /* @__PURE__ */ a.createElement(xi, { size: 10 }), "Pro")
13326
13335
  ) : /* @__PURE__ */ a.createElement(
13327
13336
  "button",
@@ -13332,17 +13341,17 @@ const y3 = ({ activeTool: e, setActiveTool: t, featureAccess: n = {}, onRequestU
13332
13341
  r == null || r(p.label);
13333
13342
  return;
13334
13343
  }
13335
- t(L ? null : p.id);
13344
+ t(_ ? null : p.id);
13336
13345
  },
13337
13346
  "aria-disabled": !C,
13338
13347
  className: `
13339
13348
  group relative flex flex-col items-center justify-center gap-1.5 rounded-xl transition-all flex-shrink-0
13340
13349
  w-16 h-16 md:w-16 md:h-16
13341
- ${L ? "bg-indigo-600 text-white shadow-md" : "text-slate-500 hover:bg-indigo-50 hover:text-indigo-900"}
13350
+ ${_ ? "bg-indigo-600 text-white shadow-md" : "text-slate-500 hover:bg-indigo-50 hover:text-indigo-900"}
13342
13351
  ${C ? "" : "opacity-60 cursor-not-allowed"}
13343
13352
  `
13344
13353
  },
13345
- /* @__PURE__ */ a.createElement(x, { size: 24, strokeWidth: L ? 2 : 1.5, className: "md:w-6 md:h-6" }),
13354
+ /* @__PURE__ */ a.createElement(x, { size: 24, strokeWidth: _ ? 2 : 1.5, className: "md:w-6 md:h-6" }),
13346
13355
  /* @__PURE__ */ a.createElement("span", { className: "text-[10px] md:text-[10px] font-medium flex items-center gap-1" }, p.label, !C && /* @__PURE__ */ a.createElement(xi, { size: 10, className: "text-amber-500" }))
13347
13356
  );
13348
13357
  })
@@ -13379,11 +13388,11 @@ const y3 = ({ activeTool: e, setActiveTool: t, featureAccess: n = {}, onRequestU
13379
13388
  if (!e)
13380
13389
  return Oi(t, n, r, i);
13381
13390
  if (x3(e) && r > 0 && i > 0 && t > 0 && n > 0) {
13382
- const s = Math.max(t / r, n / i), o = r * s * e.scale, l = i * s * e.scale, d = (t - o) * (e.x / 100), u = (n - l) * (e.y / 100), m = o / r, g = l / i, v = -d / m, p = -u / g, L = t / m, x = n / g;
13391
+ const s = Math.max(t / r, n / i), o = r * s * e.scale, l = i * s * e.scale, d = (t - o) * (e.x / 100), u = (n - l) * (e.y / 100), m = o / r, g = l / i, v = -d / m, p = -u / g, _ = t / m, x = n / g;
13383
13392
  return Po({
13384
13393
  x: v / r,
13385
13394
  y: p / i,
13386
- width: L / r,
13395
+ width: _ / r,
13387
13396
  height: x / i
13388
13397
  });
13389
13398
  }
@@ -13510,7 +13519,7 @@ function hf(e, t, n = !0) {
13510
13519
  return { ...e, anchors: i };
13511
13520
  if (!(!!s.handleIn || !!s.handleOut || s.type !== "corner"))
13512
13521
  return { ...e, anchors: i };
13513
- const L = v.position.x - g.position.x, x = v.position.y - g.position.y, C = { x: L / 3, y: x / 3 }, I = { x: -L / 3, y: -x / 3 };
13522
+ const _ = v.position.x - g.position.x, x = v.position.y - g.position.y, C = { x: _ / 3, y: x / 3 }, I = { x: -_ / 3, y: -x / 3 };
13514
13523
  return i[u] = {
13515
13524
  ...g,
13516
13525
  handleOut: C,
@@ -13878,11 +13887,11 @@ const L3 = (e) => {
13878
13887
  const { fonts: g, customFonts: v } = w2(i), p = g.filter((D) => {
13879
13888
  const $ = D.family.toLowerCase().includes(l.toLowerCase()), U = u === "all" || D.category === u;
13880
13889
  return $ && U;
13881
- }), L = r ? [
13890
+ }), _ = r ? [
13882
13891
  r.fonts.heading,
13883
13892
  r.fonts.subheading,
13884
13893
  r.fonts.body
13885
- ].filter((D) => D) : [], x = Array.from(new Set(L)), C = (r == null ? void 0 : r.customFonts) || [];
13894
+ ].filter((D) => D) : [], x = Array.from(new Set(_)), C = (r == null ? void 0 : r.customFonts) || [];
13886
13895
  Jt(() => {
13887
13896
  C.forEach((D) => xd(D.name, D.url));
13888
13897
  }, [C]);
@@ -13994,8 +14003,8 @@ const L3 = (e) => {
13994
14003
  t({ qrLogo: (U = $.target) == null ? void 0 : U.result });
13995
14004
  }, D.readAsDataURL(C);
13996
14005
  }
13997
- }, p = r ? "w-full" : "absolute top-12 left-0 w-80 bg-white rounded-xl shadow-xl border border-gray-200 z-50 flex flex-col overflow-hidden animate-in fade-in zoom-in-95 duration-100 font-sans h-[600px] max-h-[80vh]", L = r ? "space-y-6" : "flex-1 overflow-y-auto p-4 custom-scrollbar space-y-6";
13998
- return /* @__PURE__ */ a.createElement("div", { className: p }, !r && /* @__PURE__ */ a.createElement("div", { className: "flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-white sticky top-0 z-10" }, /* @__PURE__ */ a.createElement("h3", { className: "font-bold text-slate-800 text-sm" }, "Edit QR Code"), /* @__PURE__ */ a.createElement("button", { onClick: n, className: "text-slate-400 hover:bg-gray-100 rounded-full p-1 transition-colors" }, /* @__PURE__ */ a.createElement(da, { size: 18 }))), /* @__PURE__ */ a.createElement("div", { className: L }, /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Dots Pattern"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-3 gap-2" }, /* @__PURE__ */ a.createElement(ti, { active: s === "square", onClick: () => t({ qrDotsType: "square" }), label: "square" }, /* @__PURE__ */ a.createElement(xh, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "rounded", onClick: () => t({ qrDotsType: "rounded" }), label: "rounded" }, /* @__PURE__ */ a.createElement(R3, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "dots", onClick: () => t({ qrDotsType: "dots" }), label: "dots" }, /* @__PURE__ */ a.createElement(wh, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "classy", onClick: () => t({ qrDotsType: "classy" }), label: "classy" }, /* @__PURE__ */ a.createElement(O3, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "classy-rounded", onClick: () => t({ qrDotsType: "classy-rounded" }), label: "classy-rnd" }, /* @__PURE__ */ a.createElement(z3, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "extra-rounded", onClick: () => t({ qrDotsType: "extra-rounded" }), label: "ex-rounded" }, /* @__PURE__ */ a.createElement(B3, null)))), /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Corner Square Pattern"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-3 gap-2" }, /* @__PURE__ */ a.createElement(ti, { active: o === "square", onClick: () => t({ qrCornerSquareType: "square" }), label: "Square" }, /* @__PURE__ */ a.createElement(j3, null)), /* @__PURE__ */ a.createElement(ti, { active: o === "extra-rounded", onClick: () => t({ qrCornerSquareType: "extra-rounded" }), label: "Rounded" }, /* @__PURE__ */ a.createElement($3, null)), /* @__PURE__ */ a.createElement(ti, { active: o === "dot", onClick: () => t({ qrCornerSquareType: "dot" }), label: "Circle" }, /* @__PURE__ */ a.createElement(q3, null)))), /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Corner Dot Pattern"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-2 gap-2" }, /* @__PURE__ */ a.createElement(ti, { active: l === "square", onClick: () => t({ qrCornerDotType: "square" }), label: "Square" }, /* @__PURE__ */ a.createElement(xh, null)), /* @__PURE__ */ a.createElement(ti, { active: l === "dot", onClick: () => t({ qrCornerDotType: "dot" }), label: "Circle" }, /* @__PURE__ */ a.createElement(wh, null)))), /* @__PURE__ */ a.createElement("div", { className: "space-y-3" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Colors"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-2 gap-3" }, /* @__PURE__ */ a.createElement(dl, { label: "Foreground", value: d, onChange: (x) => t({ color: x }) }), !e.qrTransparent && /* @__PURE__ */ a.createElement(dl, { label: "Background", value: u, onChange: (x) => t({ backgroundColor: x }) })), /* @__PURE__ */ a.createElement("div", { className: "flex items-center justify-between py-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-medium text-slate-600" }, "Transparent Background"), /* @__PURE__ */ a.createElement(
14006
+ }, p = r ? "w-full" : "absolute top-12 left-0 w-80 bg-white rounded-xl shadow-xl border border-gray-200 z-50 flex flex-col overflow-hidden animate-in fade-in zoom-in-95 duration-100 font-sans h-[600px] max-h-[80vh]", _ = r ? "space-y-6" : "flex-1 overflow-y-auto p-4 custom-scrollbar space-y-6";
14007
+ return /* @__PURE__ */ a.createElement("div", { className: p }, !r && /* @__PURE__ */ a.createElement("div", { className: "flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-white sticky top-0 z-10" }, /* @__PURE__ */ a.createElement("h3", { className: "font-bold text-slate-800 text-sm" }, "Edit QR Code"), /* @__PURE__ */ a.createElement("button", { onClick: n, className: "text-slate-400 hover:bg-gray-100 rounded-full p-1 transition-colors" }, /* @__PURE__ */ a.createElement(da, { size: 18 }))), /* @__PURE__ */ a.createElement("div", { className: _ }, /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Dots Pattern"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-3 gap-2" }, /* @__PURE__ */ a.createElement(ti, { active: s === "square", onClick: () => t({ qrDotsType: "square" }), label: "square" }, /* @__PURE__ */ a.createElement(xh, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "rounded", onClick: () => t({ qrDotsType: "rounded" }), label: "rounded" }, /* @__PURE__ */ a.createElement(R3, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "dots", onClick: () => t({ qrDotsType: "dots" }), label: "dots" }, /* @__PURE__ */ a.createElement(wh, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "classy", onClick: () => t({ qrDotsType: "classy" }), label: "classy" }, /* @__PURE__ */ a.createElement(O3, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "classy-rounded", onClick: () => t({ qrDotsType: "classy-rounded" }), label: "classy-rnd" }, /* @__PURE__ */ a.createElement(z3, null)), /* @__PURE__ */ a.createElement(ti, { active: s === "extra-rounded", onClick: () => t({ qrDotsType: "extra-rounded" }), label: "ex-rounded" }, /* @__PURE__ */ a.createElement(B3, null)))), /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Corner Square Pattern"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-3 gap-2" }, /* @__PURE__ */ a.createElement(ti, { active: o === "square", onClick: () => t({ qrCornerSquareType: "square" }), label: "Square" }, /* @__PURE__ */ a.createElement(j3, null)), /* @__PURE__ */ a.createElement(ti, { active: o === "extra-rounded", onClick: () => t({ qrCornerSquareType: "extra-rounded" }), label: "Rounded" }, /* @__PURE__ */ a.createElement($3, null)), /* @__PURE__ */ a.createElement(ti, { active: o === "dot", onClick: () => t({ qrCornerSquareType: "dot" }), label: "Circle" }, /* @__PURE__ */ a.createElement(q3, null)))), /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Corner Dot Pattern"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-2 gap-2" }, /* @__PURE__ */ a.createElement(ti, { active: l === "square", onClick: () => t({ qrCornerDotType: "square" }), label: "Square" }, /* @__PURE__ */ a.createElement(xh, null)), /* @__PURE__ */ a.createElement(ti, { active: l === "dot", onClick: () => t({ qrCornerDotType: "dot" }), label: "Circle" }, /* @__PURE__ */ a.createElement(wh, null)))), /* @__PURE__ */ a.createElement("div", { className: "space-y-3" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-bold text-slate-900" }, "Colors"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-2 gap-3" }, /* @__PURE__ */ a.createElement(dl, { label: "Foreground", value: d, onChange: (x) => t({ color: x }) }), !e.qrTransparent && /* @__PURE__ */ a.createElement(dl, { label: "Background", value: u, onChange: (x) => t({ backgroundColor: x }) })), /* @__PURE__ */ a.createElement("div", { className: "flex items-center justify-between py-2" }, /* @__PURE__ */ a.createElement("label", { className: "text-xs font-medium text-slate-600" }, "Transparent Background"), /* @__PURE__ */ a.createElement(
13999
14008
  "button",
14000
14009
  {
14001
14010
  onClick: () => t({
@@ -14063,7 +14072,7 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14063
14072
  }, [e, t]), Jt(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
14064
14073
  document.body.style.overflow = "";
14065
14074
  }), [e]);
14066
- const L = (D) => {
14075
+ const _ = (D) => {
14067
14076
  u(!0), v.current = D.clientY, p.current = D.clientY, D.target.setPointerCapture(D.pointerId);
14068
14077
  }, x = (D) => {
14069
14078
  if (!d) return;
@@ -14109,7 +14118,7 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14109
14118
  "div",
14110
14119
  {
14111
14120
  className: "flex-shrink-0 pt-3 pb-2 cursor-grab active:cursor-grabbing touch-none",
14112
- onPointerDown: L,
14121
+ onPointerDown: _,
14113
14122
  onPointerMove: x,
14114
14123
  onPointerUp: C,
14115
14124
  onPointerCancel: C
@@ -14188,7 +14197,7 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14188
14197
  brandColors: l = [],
14189
14198
  isEmbedded: d = !1
14190
14199
  }) => {
14191
- const u = To(), [m, g] = De("solid"), [v, p] = De("linear"), [L, x] = De(90), [C, I] = De([
14200
+ const u = To(), [m, g] = De("solid"), [v, p] = De("linear"), [_, x] = De(90), [C, I] = De([
14192
14201
  { id: "1", offset: 0, color: "#3b82f6" },
14193
14202
  { id: "2", offset: 100, color: "#8b5cf6" }
14194
14203
  ]), [D, $] = De(null), U = qt(null);
@@ -14198,35 +14207,35 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14198
14207
  const ue = (q) => {
14199
14208
  var ne, A;
14200
14209
  try {
14201
- let _ = [], b = 90, k = "linear";
14210
+ let L = [], b = 90, k = "linear";
14202
14211
  if (q.includes("radial-gradient")) {
14203
14212
  k = "radial";
14204
14213
  const w = (ne = q.match(/radial-gradient\((.*)\)/)) == null ? void 0 : ne[1];
14205
14214
  if (w) {
14206
14215
  const S = w.split(/,(?![^(]*\))/), H = S[0].includes("circle") || S[0].includes("ellipse") || S[0].includes("at") ? S.slice(1) : S;
14207
- _ = se(H);
14216
+ L = se(H);
14208
14217
  }
14209
14218
  } else {
14210
14219
  k = "linear";
14211
14220
  const w = (A = q.match(/linear-gradient\((.*)\)/)) == null ? void 0 : A[1];
14212
14221
  if (w) {
14213
14222
  const S = w.split(/,(?![^(]*\))/);
14214
- S[0].includes("deg") ? (b = parseInt(S[0]), _ = se(S.slice(1))) : S[0].includes("to ") ? (S[0].includes("right") ? b = 90 : S[0].includes("bottom") ? b = 180 : S[0].includes("left") ? b = 270 : S[0].includes("top") && (b = 0), _ = se(S.slice(1))) : _ = se(S);
14223
+ S[0].includes("deg") ? (b = parseInt(S[0]), L = se(S.slice(1))) : S[0].includes("to ") ? (S[0].includes("right") ? b = 90 : S[0].includes("bottom") ? b = 180 : S[0].includes("left") ? b = 270 : S[0].includes("top") && (b = 0), L = se(S.slice(1))) : L = se(S);
14215
14224
  }
14216
14225
  }
14217
- _.length > 0 && (I(_), p(k), x(b), $(_[0].id));
14218
- } catch (_) {
14219
- console.error("Error parsing gradient", _);
14226
+ L.length > 0 && (I(L), p(k), x(b), $(L[0].id));
14227
+ } catch (L) {
14228
+ console.error("Error parsing gradient", L);
14220
14229
  }
14221
14230
  }, se = (q) => q.map((ne) => {
14222
- const A = ne.trim(), _ = A.match(/(.*)\s+(\d+)%$/);
14223
- return _ ? { id: fo(), color: _[1], offset: parseInt(_[2]) } : { id: fo(), color: A, offset: 0 };
14224
- }).map((ne, A, _) => (A === 0 && ne.offset === 0 && (ne.offset = 0), A === _.length - 1 && ne.offset === 0 && (ne.offset = 100), ne)), ye = (q, ne, A) => {
14231
+ const A = ne.trim(), L = A.match(/(.*)\s+(\d+)%$/);
14232
+ return L ? { id: fo(), color: L[1], offset: parseInt(L[2]) } : { id: fo(), color: A, offset: 0 };
14233
+ }).map((ne, A, L) => (A === 0 && ne.offset === 0 && (ne.offset = 0), A === L.length - 1 && ne.offset === 0 && (ne.offset = 100), ne)), ye = (q, ne, A) => {
14225
14234
  const b = [...A].sort((k, w) => k.offset - w.offset).map((k) => `${k.color} ${Math.round(k.offset)}%`).join(", ");
14226
14235
  return q === "radial" ? `radial-gradient(circle at center, ${b})` : `linear-gradient(${ne}deg, ${b})`;
14227
14236
  }, de = (q, ne, A) => {
14228
- const _ = ye(q, ne, A);
14229
- t(_);
14237
+ const L = ye(q, ne, A);
14238
+ t(L);
14230
14239
  }, X = (q) => {
14231
14240
  if (g(q), q === "gradient") {
14232
14241
  if (!e.includes("gradient")) {
@@ -14239,24 +14248,24 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14239
14248
  }
14240
14249
  }, me = (q) => {
14241
14250
  if (q.stopPropagation(), q.preventDefault(), !U.current) return;
14242
- const ne = U.current.getBoundingClientRect(), A = q.clientX - ne.left, _ = Math.max(0, Math.min(100, A / ne.width * 100)), b = { id: fo(), offset: _, color: "#888888" }, k = [...C, b].sort((w, S) => w.offset - S.offset);
14243
- I(k), $(b.id), de(v, L, k);
14251
+ const ne = U.current.getBoundingClientRect(), A = q.clientX - ne.left, L = Math.max(0, Math.min(100, A / ne.width * 100)), b = { id: fo(), offset: L, color: "#888888" }, k = [...C, b].sort((w, S) => w.offset - S.offset);
14252
+ I(k), $(b.id), de(v, _, k);
14244
14253
  }, j = (q, ne) => {
14245
- const A = C.map((_) => _.id === q ? { ..._, ...ne } : _);
14246
- I(A), de(v, L, A);
14254
+ const A = C.map((L) => L.id === q ? { ...L, ...ne } : L);
14255
+ I(A), de(v, _, A);
14247
14256
  }, K = (q) => {
14248
14257
  if (C.length <= 2) return;
14249
14258
  const ne = C.filter((A) => A.id !== q);
14250
- I(ne), D === q && $(ne[0].id), de(v, L, ne);
14259
+ I(ne), D === q && $(ne[0].id), de(v, _, ne);
14251
14260
  }, O = (q, ne) => {
14252
14261
  q.stopPropagation(), q.preventDefault(), $(ne);
14253
- const A = q.clientX, _ = C.find((z) => z.id === ne);
14254
- if (!_ || !U.current) return;
14255
- const b = _.offset, k = U.current.getBoundingClientRect(), w = (z) => {
14262
+ const A = q.clientX, L = C.find((z) => z.id === ne);
14263
+ if (!L || !U.current) return;
14264
+ const b = L.offset, k = U.current.getBoundingClientRect(), w = (z) => {
14256
14265
  z.preventDefault();
14257
14266
  const ce = (z.clientX - A) / k.width * 100, V = Math.max(0, Math.min(100, b + ce));
14258
14267
  I((F) => {
14259
- const Q = F.map((P) => P.id === ne ? { ...P, offset: V } : P), oe = ye(v, L, Q);
14268
+ const Q = F.map((P) => P.id === ne ? { ...P, offset: V } : P), oe = ye(v, _, Q);
14260
14269
  return t(oe), Q;
14261
14270
  });
14262
14271
  }, S = () => {
@@ -14285,7 +14294,7 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14285
14294
  p(ne), x(A), de(ne, A, C);
14286
14295
  }, te = (q) => {
14287
14296
  t(q), ue(q);
14288
- }, J = C.find((q) => q.id === D) || C[0], T = u && !d, Y = d || T ? "w-full flex flex-col font-sans text-slate-800" : "absolute top-12 left-0 w-72 bg-white rounded-lg shadow-xl border border-gray-200 z-50 flex flex-col overflow-hidden animate-in fade-in zoom-in-95 duration-100 font-sans text-slate-800", le = /* @__PURE__ */ a.createElement("div", { className: Y }, !d && !T && /* @__PURE__ */ a.createElement("div", { className: "flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-gray-50" }, /* @__PURE__ */ a.createElement("div", { className: "flex gap-1 bg-gray-200 p-0.5 rounded-lg" }, /* @__PURE__ */ a.createElement("button", { onClick: () => X("solid"), className: `px-3 py-1 text-xs font-medium rounded-md transition-all ${m === "solid" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Solid"), /* @__PURE__ */ a.createElement("button", { onClick: () => X("gradient"), className: `px-3 py-1 text-xs font-medium rounded-md transition-all ${m === "gradient" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Gradient")), /* @__PURE__ */ a.createElement("button", { onClick: n, className: "text-slate-400 hover:bg-gray-200 rounded p-1" }, /* @__PURE__ */ a.createElement(da, { size: 16 }))), (d || T) && /* @__PURE__ */ a.createElement("div", { className: "flex px-0 mb-4 bg-gray-100 p-1 rounded-lg self-start w-full" }, /* @__PURE__ */ a.createElement("button", { onClick: () => X("solid"), className: `flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${m === "solid" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Solid"), /* @__PURE__ */ a.createElement("button", { onClick: () => X("gradient"), className: `flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${m === "gradient" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Gradient")), /* @__PURE__ */ a.createElement("div", { className: `${d ? "space-y-4" : "p-4 overflow-y-auto max-h-[400px] custom-scrollbar"}` }, m === "solid" ? /* @__PURE__ */ a.createElement("div", { className: "space-y-4" }, /* @__PURE__ */ a.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ a.createElement("div", { className: "w-10 h-10 rounded-lg border border-gray-200 shadow-sm relative overflow-hidden group", style: Dc }, /* @__PURE__ */ a.createElement("input", { type: "color", value: e.includes("gradient") ? "#000000" : e.substring(0, 7), onChange: (q) => t(Fc(q.target.value, ul(e))), className: "absolute -top-2 -left-2 w-16 h-16 cursor-pointer opacity-0" }), /* @__PURE__ */ a.createElement("div", { className: "w-full h-full", style: { background: e } })), /* @__PURE__ */ a.createElement("div", { className: "flex-1" }, /* @__PURE__ */ a.createElement("input", { type: "text", value: e, onChange: (q) => t(q.target.value), className: "w-full px-3 py-2 text-sm border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 font-mono text-slate-600 uppercase", placeholder: "#HEX" }))), r.length > 0 && /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-400 uppercase tracking-wider mb-2" }, "Saved Colors"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-6 gap-2" }, r.map((q, ne) => /* @__PURE__ */ a.createElement("button", { key: ne, onClick: () => t(q), className: `w-8 h-8 rounded-full border border-gray-200 hover:scale-110 transition-transform ${e === q ? "ring-2 ring-blue-500 ring-offset-2" : ""}`, style: { background: q } })))), /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("div", { className: "flex justify-between items-center mb-2" }, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-400 uppercase tracking-wider" }, "Default Colors"), /* @__PURE__ */ a.createElement("button", { onClick: () => s(e), className: "p-1 hover:bg-gray-100 rounded text-slate-400 hover:text-blue-600", title: "Save current color" }, /* @__PURE__ */ a.createElement(ki, { size: 12 }))), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-6 gap-2" }, W3.map((q) => /* @__PURE__ */ a.createElement("button", { key: q, onClick: () => t(q), className: `w-8 h-8 rounded-full border border-gray-200 flex items-center justify-center transition-transform hover:scale-110 ${e === q ? "ring-2 ring-blue-500 ring-offset-2" : ""}`, style: { backgroundColor: q } }))))) : /* @__PURE__ */ a.createElement("div", { className: "space-y-5" }, /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-2" }, "Style"), /* @__PURE__ */ a.createElement("div", { className: "flex gap-2" }, /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-tl"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && L === 135 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(135deg, #333333, #ffffff)" }, title: "Diagonal Top-Left" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-l"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && L === 90 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(90deg, #333333, #ffffff)" }, title: "Left to Right" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-t"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && L === 180 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(180deg, #333333, #ffffff)" }, title: "Top to Bottom" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("radial"), className: `w-10 h-10 rounded-md border transition-all ${v === "radial" ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "radial-gradient(circle at center, #333333, #ffffff)" }, title: "Radial" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-bl"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && L === 45 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(45deg, #333333, #ffffff)" }, title: "Diagonal Bottom-Left" }))), /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement(
14297
+ }, J = C.find((q) => q.id === D) || C[0], T = u && !d, Y = d || T ? "w-full flex flex-col font-sans text-slate-800" : "absolute top-12 left-0 w-72 bg-white rounded-lg shadow-xl border border-gray-200 z-50 flex flex-col overflow-hidden animate-in fade-in zoom-in-95 duration-100 font-sans text-slate-800", le = /* @__PURE__ */ a.createElement("div", { className: Y }, !d && !T && /* @__PURE__ */ a.createElement("div", { className: "flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-gray-50" }, /* @__PURE__ */ a.createElement("div", { className: "flex gap-1 bg-gray-200 p-0.5 rounded-lg" }, /* @__PURE__ */ a.createElement("button", { onClick: () => X("solid"), className: `px-3 py-1 text-xs font-medium rounded-md transition-all ${m === "solid" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Solid"), /* @__PURE__ */ a.createElement("button", { onClick: () => X("gradient"), className: `px-3 py-1 text-xs font-medium rounded-md transition-all ${m === "gradient" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Gradient")), /* @__PURE__ */ a.createElement("button", { onClick: n, className: "text-slate-400 hover:bg-gray-200 rounded p-1" }, /* @__PURE__ */ a.createElement(da, { size: 16 }))), (d || T) && /* @__PURE__ */ a.createElement("div", { className: "flex px-0 mb-4 bg-gray-100 p-1 rounded-lg self-start w-full" }, /* @__PURE__ */ a.createElement("button", { onClick: () => X("solid"), className: `flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${m === "solid" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Solid"), /* @__PURE__ */ a.createElement("button", { onClick: () => X("gradient"), className: `flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${m === "gradient" ? "bg-white shadow-sm text-slate-800" : "text-slate-500 hover:text-slate-700"}` }, "Gradient")), /* @__PURE__ */ a.createElement("div", { className: `${d ? "space-y-4" : "p-4 overflow-y-auto max-h-[400px] custom-scrollbar"}` }, m === "solid" ? /* @__PURE__ */ a.createElement("div", { className: "space-y-4" }, /* @__PURE__ */ a.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ a.createElement("div", { className: "w-10 h-10 rounded-lg border border-gray-200 shadow-sm relative overflow-hidden group", style: Dc }, /* @__PURE__ */ a.createElement("input", { type: "color", value: e.includes("gradient") ? "#000000" : e.substring(0, 7), onChange: (q) => t(Fc(q.target.value, ul(e))), className: "absolute -top-2 -left-2 w-16 h-16 cursor-pointer opacity-0" }), /* @__PURE__ */ a.createElement("div", { className: "w-full h-full", style: { background: e } })), /* @__PURE__ */ a.createElement("div", { className: "flex-1" }, /* @__PURE__ */ a.createElement("input", { type: "text", value: e, onChange: (q) => t(q.target.value), className: "w-full px-3 py-2 text-sm border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 font-mono text-slate-600 uppercase", placeholder: "#HEX" }))), r.length > 0 && /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-400 uppercase tracking-wider mb-2" }, "Saved Colors"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-6 gap-2" }, r.map((q, ne) => /* @__PURE__ */ a.createElement("button", { key: ne, onClick: () => t(q), className: `w-8 h-8 rounded-full border border-gray-200 hover:scale-110 transition-transform ${e === q ? "ring-2 ring-blue-500 ring-offset-2" : ""}`, style: { background: q } })))), /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("div", { className: "flex justify-between items-center mb-2" }, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-400 uppercase tracking-wider" }, "Default Colors"), /* @__PURE__ */ a.createElement("button", { onClick: () => s(e), className: "p-1 hover:bg-gray-100 rounded text-slate-400 hover:text-blue-600", title: "Save current color" }, /* @__PURE__ */ a.createElement(ki, { size: 12 }))), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-6 gap-2" }, W3.map((q) => /* @__PURE__ */ a.createElement("button", { key: q, onClick: () => t(q), className: `w-8 h-8 rounded-full border border-gray-200 flex items-center justify-center transition-transform hover:scale-110 ${e === q ? "ring-2 ring-blue-500 ring-offset-2" : ""}`, style: { backgroundColor: q } }))))) : /* @__PURE__ */ a.createElement("div", { className: "space-y-5" }, /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-2" }, "Style"), /* @__PURE__ */ a.createElement("div", { className: "flex gap-2" }, /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-tl"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && _ === 135 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(135deg, #333333, #ffffff)" }, title: "Diagonal Top-Left" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-l"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && _ === 90 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(90deg, #333333, #ffffff)" }, title: "Left to Right" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-t"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && _ === 180 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(180deg, #333333, #ffffff)" }, title: "Top to Bottom" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("radial"), className: `w-10 h-10 rounded-md border transition-all ${v === "radial" ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "radial-gradient(circle at center, #333333, #ffffff)" }, title: "Radial" }), /* @__PURE__ */ a.createElement("button", { onClick: () => R("linear-bl"), className: `w-10 h-10 rounded-md border transition-all ${v === "linear" && _ === 45 ? "border-blue-500 ring-1 ring-blue-500" : "border-gray-200 hover:border-gray-300"}`, style: { background: "linear-gradient(45deg, #333333, #ffffff)" }, title: "Diagonal Bottom-Left" }))), /* @__PURE__ */ a.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ a.createElement(
14289
14298
  "div",
14290
14299
  {
14291
14300
  ref: U,
@@ -14361,8 +14370,8 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14361
14370
  step: "0.01",
14362
14371
  value: ul(J.color),
14363
14372
  onChange: (q) => {
14364
- const ne = parseFloat(q.target.value), A = J.color.startsWith("#") ? J.color.substring(0, 7) : J.color, _ = Fc(A, ne);
14365
- j(J.id, { color: _ });
14373
+ const ne = parseFloat(q.target.value), A = J.color.startsWith("#") ? J.color.substring(0, 7) : J.color, L = Fc(A, ne);
14374
+ j(J.id, { color: L });
14366
14375
  },
14367
14376
  className: "flex-1 h-1 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-indigo-600"
14368
14377
  }
@@ -14372,14 +14381,14 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14372
14381
  type: "range",
14373
14382
  min: "0",
14374
14383
  max: "360",
14375
- value: L,
14384
+ value: _,
14376
14385
  onChange: (q) => {
14377
14386
  const ne = parseInt(q.target.value);
14378
14387
  x(ne), de("linear", ne, C);
14379
14388
  },
14380
14389
  className: "flex-1 h-1 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-indigo-600"
14381
14390
  }
14382
- ), /* @__PURE__ */ a.createElement("span", { className: "text-[10px] text-slate-500 w-8 text-right font-mono" }, L, "°")), i.length > 0 && /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-400 uppercase tracking-wider mb-2" }, "Saved Gradients"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-6 gap-2" }, i.map((q, ne) => /* @__PURE__ */ a.createElement(
14391
+ ), /* @__PURE__ */ a.createElement("span", { className: "text-[10px] text-slate-500 w-8 text-right font-mono" }, _, "°")), i.length > 0 && /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("h4", { className: "text-xs font-bold text-slate-400 uppercase tracking-wider mb-2" }, "Saved Gradients"), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-6 gap-2" }, i.map((q, ne) => /* @__PURE__ */ a.createElement(
14383
14392
  "button",
14384
14393
  {
14385
14394
  key: ne,
@@ -14458,12 +14467,12 @@ const To = () => H3("(max-width: 767px)"), Ud = ({
14458
14467
  className: "w-full h-1 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-indigo-600"
14459
14468
  }
14460
14469
  )), Y3 = ({ element: e, onChange: t }) => {
14461
- var p, L;
14470
+ var p, _;
14462
14471
  const n = e.effect || {
14463
14472
  style: { type: "none", params: {} },
14464
14473
  shape: { type: "none", params: { curve: 0 } },
14465
14474
  adjustments: { hue: 0, saturation: 0, brightness: 0, contrast: 0 }
14466
- }, r = e.type === "text", i = ((p = n.style) == null ? void 0 : p.type) || "none", s = ((L = n.shape) == null ? void 0 : L.type) || "none", o = n.adjustments || { hue: 0, saturation: 0, brightness: 0, contrast: 0 }, l = (x) => {
14475
+ }, r = e.type === "text", i = ((p = n.style) == null ? void 0 : p.type) || "none", s = ((_ = n.shape) == null ? void 0 : _.type) || "none", o = n.adjustments || { hue: 0, saturation: 0, brightness: 0, contrast: 0 }, l = (x) => {
14467
14476
  t({ effect: x });
14468
14477
  }, d = (x) => {
14469
14478
  let C = {};
@@ -14579,25 +14588,25 @@ const vf = (e) => {
14579
14588
  Jt(() => {
14580
14589
  Wd(t), m(!0), yf().then(d).finally(() => m(!1));
14581
14590
  }, [t]);
14582
- const [p, L] = De(!1), [x, C] = De(""), [I, D] = De("social-media"), [$, U] = De(""), [ue, se] = De(""), [ye, de] = De(!1), [X, me] = De(!1), [j, K] = De(""), [O, R] = De(""), [te, J] = De([]), [T, Y] = De([]), [le, q] = De(!1), ne = t == null ? void 0 : t.saveAction, A = St(() => {
14583
- v && L(!0);
14584
- }, [v]), _ = Jn(() => ({
14591
+ const [p, _] = De(!1), [x, C] = De(""), [I, D] = De("social-media"), [$, U] = De(""), [ue, se] = De(""), [ye, de] = De(!1), [X, me] = De(!1), [j, K] = De(""), [O, R] = De(""), [te, J] = De([]), [T, Y] = De([]), [le, q] = De(!1), ne = t == null ? void 0 : t.saveAction, A = St(() => {
14592
+ v && _(!0);
14593
+ }, [v]), L = Jn(() => ({
14585
14594
  store: we,
14586
14595
  getState: () => we.getSnapshot(),
14587
14596
  openSaveModal: A
14588
14597
  }), [A]), b = (ne == null ? void 0 : ne.icon) ?? Xs, k = St(() => {
14589
14598
  if (v) {
14590
14599
  if (ne != null && ne.onClick) {
14591
- ne.onClick(_);
14600
+ ne.onClick(L);
14592
14601
  return;
14593
14602
  }
14594
14603
  A();
14595
14604
  }
14596
- }, [v, ne, _, A]), w = St(() => {
14605
+ }, [v, ne, L, A]), w = St(() => {
14597
14606
  if (!v) return null;
14598
14607
  if (ne != null && ne.render) {
14599
14608
  const ae = ne.render;
14600
- return /* @__PURE__ */ a.createElement(ae, { ..._ });
14609
+ return /* @__PURE__ */ a.createElement(ae, { ...L });
14601
14610
  }
14602
14611
  return /* @__PURE__ */ a.createElement(
14603
14612
  "button",
@@ -14608,7 +14617,7 @@ const vf = (e) => {
14608
14617
  /* @__PURE__ */ a.createElement(b, { size: 16 }),
14609
14618
  (ne == null ? void 0 : ne.label) || "Save Current Design as Template"
14610
14619
  );
14611
- }, [b, v, k, ne, _]), S = (ae) => {
14620
+ }, [b, v, k, ne, L]), S = (ae) => {
14612
14621
  const Ce = /* @__PURE__ */ new Set();
14613
14622
  return ae.pages.forEach((be) => {
14614
14623
  const Ne = be.width || ae.settings.width, qe = be.height || ae.settings.height;
@@ -14745,7 +14754,7 @@ const vf = (e) => {
14745
14754
  }
14746
14755
  }, F = () => {
14747
14756
  var ae;
14748
- L(!1), C(""), D(((ae = g[0]) == null ? void 0 : ae.id) ?? "social-media"), U(""), K(""), R(""), J([]), Y([]);
14757
+ _(!1), C(""), D(((ae = g[0]) == null ? void 0 : ae.id) ?? "social-media"), U(""), K(""), R(""), J([]), Y([]);
14749
14758
  }, Q = Jn(() => {
14750
14759
  const ae = r.toLowerCase().trim();
14751
14760
  let Ce = s === "all" ? l : l.filter((be) => be.category === s);
@@ -14999,14 +15008,14 @@ const vf = (e) => {
14999
15008
  return /* @__PURE__ */ a.createElement("div", { className: "w-full h-full bg-slate-100 flex items-center justify-center text-slate-300" }, "Empty");
15000
15009
  let t = 1 / 0, n = 1 / 0, r = -1 / 0, i = -1 / 0;
15001
15010
  e.elements.forEach((u) => {
15002
- const m = u.rotation * Math.PI / 180, g = Math.cos(m), v = Math.sin(m), p = u.x + u.width / 2, L = u.y + u.height / 2;
15011
+ const m = u.rotation * Math.PI / 180, g = Math.cos(m), v = Math.sin(m), p = u.x + u.width / 2, _ = u.y + u.height / 2;
15003
15012
  [
15004
15013
  { x: u.x, y: u.y },
15005
15014
  { x: u.x + u.width, y: u.y },
15006
15015
  { x: u.x + u.width, y: u.y + u.height },
15007
15016
  { x: u.x, y: u.y + u.height }
15008
15017
  ].forEach((C) => {
15009
- const I = C.x - p, D = C.y - L, $ = p + (I * g - D * v), U = L + (I * v + D * g);
15018
+ const I = C.x - p, D = C.y - _, $ = p + (I * g - D * v), U = _ + (I * v + D * g);
15010
15019
  t = Math.min(t, $), r = Math.max(r, $), n = Math.min(n, U), i = Math.max(i, U);
15011
15020
  });
15012
15021
  });
@@ -15107,15 +15116,15 @@ const vf = (e) => {
15107
15116
  ), u.type === "qrcode" && /* @__PURE__ */ a.createElement("rect", { x: u.x, y: u.y, width: u.width, height: u.height, fill: u.color || "black", opacity: 0.2 }));
15108
15117
  })));
15109
15118
  }, hy = ({ element: e, elements: t, settings: n, groups: r, pageId: i, selection: s }) => {
15110
- const [o, l] = De("arrange"), [d, u] = De(!1), [m, g] = De(null), [v, p] = De(null), [L, x] = De(null), [C, I] = De(null), [D, $] = De(null), U = (q, ne) => {
15119
+ const [o, l] = De("arrange"), [d, u] = De(!1), [m, g] = De(null), [v, p] = De(null), [_, x] = De(null), [C, I] = De(null), [D, $] = De(null), U = (q, ne) => {
15111
15120
  const A = parseFloat(ne);
15112
15121
  if (isNaN(A)) return;
15113
- const _ = cr(A, n.unit);
15122
+ const L = cr(A, n.unit);
15114
15123
  if (d && (q === "width" || q === "height")) {
15115
15124
  const b = e.width / e.height;
15116
- q === "width" ? we.updateElement(e.id, { width: _, height: _ / b }) : we.updateElement(e.id, { height: _, width: _ * b });
15125
+ q === "width" ? we.updateElement(e.id, { width: L, height: L / b }) : we.updateElement(e.id, { height: L, width: L * b });
15117
15126
  } else
15118
- we.updateElement(e.id, { [q]: _ });
15127
+ we.updateElement(e.id, { [q]: L });
15119
15128
  }, ue = (q) => {
15120
15129
  we.alignSelection(q);
15121
15130
  }, se = (q) => {
@@ -15131,23 +15140,23 @@ const vf = (e) => {
15131
15140
  const j = (q, ne, A) => {
15132
15141
  x(ne), I(A), q.dataTransfer.effectAllowed = "move", q.dataTransfer.setData("text/plain", ne);
15133
15142
  }, K = (q, ne) => {
15134
- q.preventDefault(), q.dataTransfer.dropEffect = "move", L && L !== ne && $(ne);
15143
+ q.preventDefault(), q.dataTransfer.dropEffect = "move", _ && _ !== ne && $(ne);
15135
15144
  }, O = () => {
15136
15145
  $(null);
15137
15146
  }, R = (q, ne, A) => {
15138
- if (q.preventDefault(), $(null), !L || L === ne) {
15147
+ if (q.preventDefault(), $(null), !_ || _ === ne) {
15139
15148
  x(null), I(null);
15140
15149
  return;
15141
15150
  }
15142
15151
  if (C === "element" && A === "element") {
15143
- const _ = t.findIndex((k) => k.id === L), b = t.findIndex((k) => k.id === ne);
15144
- _ !== -1 && b !== -1 && we.moveLayer(_, b);
15152
+ const L = t.findIndex((k) => k.id === _), b = t.findIndex((k) => k.id === ne);
15153
+ L !== -1 && b !== -1 && we.moveLayer(L, b);
15145
15154
  }
15146
15155
  x(null), I(null);
15147
15156
  }, te = () => {
15148
15157
  x(null), I(null), $(null);
15149
15158
  }, J = (q, ne = !1) => {
15150
- const A = s.includes(q.id), _ = L === q.id, b = D === q.id;
15159
+ const A = s.includes(q.id), L = _ === q.id, b = D === q.id;
15151
15160
  return /* @__PURE__ */ a.createElement(
15152
15161
  "div",
15153
15162
  {
@@ -15159,7 +15168,7 @@ const vf = (e) => {
15159
15168
  onDrop: (k) => R(k, q.id, "element"),
15160
15169
  onDragEnd: te,
15161
15170
  onClick: () => we.setSelection([q.id]),
15162
- className: `group flex items-center gap-2 p-2 mb-1 rounded-lg border cursor-pointer select-none transition-colors ${ne ? "ml-6" : ""} ${A ? "bg-indigo-50 border-indigo-200 ring-1 ring-indigo-200" : "bg-white border-transparent hover:bg-gray-50 hover:border-gray-200"} ${_ ? "opacity-50" : ""} ${b ? "border-indigo-400 border-dashed bg-indigo-50/50" : ""}`
15171
+ className: `group flex items-center gap-2 p-2 mb-1 rounded-lg border cursor-pointer select-none transition-colors ${ne ? "ml-6" : ""} ${A ? "bg-indigo-50 border-indigo-200 ring-1 ring-indigo-200" : "bg-white border-transparent hover:bg-gray-50 hover:border-gray-200"} ${L ? "opacity-50" : ""} ${b ? "border-indigo-400 border-dashed bg-indigo-50/50" : ""}`
15163
15172
  },
15164
15173
  /* @__PURE__ */ a.createElement("div", { className: "cursor-grab text-slate-400 hover:text-slate-600 flex-shrink-0" }, /* @__PURE__ */ a.createElement(Il, { size: 14 })),
15165
15174
  /* @__PURE__ */ a.createElement(
@@ -15203,7 +15212,7 @@ const vf = (e) => {
15203
15212
  }, T = (q) => {
15204
15213
  const ne = r[q];
15205
15214
  if (!ne) return null;
15206
- const A = de[q] || [], _ = ne.collapsed, b = A.map((z) => z.id), k = b.some((z) => s.includes(z)), w = L === q, S = D === q;
15215
+ const A = de[q] || [], L = ne.collapsed, b = A.map((z) => z.id), k = b.some((z) => s.includes(z)), w = _ === q, S = D === q;
15207
15216
  return /* @__PURE__ */ a.createElement("div", { key: q, className: "mb-1" }, /* @__PURE__ */ a.createElement(
15208
15217
  "div",
15209
15218
  {
@@ -15227,7 +15236,7 @@ const vf = (e) => {
15227
15236
  },
15228
15237
  className: "p-1 rounded hover:bg-black/5 text-slate-500"
15229
15238
  },
15230
- _ ? /* @__PURE__ */ a.createElement(Ld, { size: 14 }) : /* @__PURE__ */ a.createElement(Js, { size: 14 })
15239
+ L ? /* @__PURE__ */ a.createElement(Ld, { size: 14 }) : /* @__PURE__ */ a.createElement(Js, { size: 14 })
15231
15240
  ),
15232
15241
  /* @__PURE__ */ a.createElement("div", { className: "w-6 h-6 rounded bg-indigo-100 flex items-center justify-center text-indigo-600 flex-shrink-0" }, /* @__PURE__ */ a.createElement(Q1, { size: 14 })),
15233
15242
  /* @__PURE__ */ a.createElement("div", { className: "flex-1 min-w-0", onDoubleClick: (z) => {
@@ -15260,7 +15269,7 @@ const vf = (e) => {
15260
15269
  },
15261
15270
  /* @__PURE__ */ a.createElement(jd, { size: 14 })
15262
15271
  )
15263
- ), !_ && /* @__PURE__ */ a.createElement("div", { className: "mt-1" }, A.map((z) => J(z, !0))));
15272
+ ), !L && /* @__PURE__ */ a.createElement("div", { className: "mt-1" }, A.map((z) => J(z, !0))));
15264
15273
  }, Y = [], le = /* @__PURE__ */ new Set();
15265
15274
  return ye.forEach((q) => {
15266
15275
  q.groupId && r[q.groupId] ? le.has(q.groupId) || (Y.push({ type: "group", id: q.groupId }), le.add(q.groupId)) : Y.push({ type: "element", id: q.id });
@@ -15334,19 +15343,19 @@ const vf = (e) => {
15334
15343
  }
15335
15344
  })));
15336
15345
  }, fy = ({ elements: e, groups: t, pageId: n, selection: r }) => {
15337
- const [i, s] = De(null), [o, l] = De(null), [d, u] = De(null), [m, g] = De(null), [v, p] = De(null), [L, x] = De(null), [C, I] = De(null);
15346
+ const [i, s] = De(null), [o, l] = De(null), [d, u] = De(null), [m, g] = De(null), [v, p] = De(null), [_, x] = De(null), [C, I] = De(null);
15338
15347
  Jt(() => {
15339
15348
  const T = () => x(null);
15340
- if (L)
15349
+ if (_)
15341
15350
  return document.addEventListener("click", T), () => document.removeEventListener("click", T);
15342
- }, [L]);
15351
+ }, [_]);
15343
15352
  const D = (T, Y) => {
15344
15353
  if (T.ctrlKey || T.metaKey)
15345
15354
  r.includes(Y) ? we.setSelection(r.filter((le) => le !== Y)) : we.setSelection([...r, Y]), I(Y);
15346
15355
  else if (T.shiftKey && C) {
15347
15356
  const le = e.map((A) => A.id), q = le.indexOf(C), ne = le.indexOf(Y);
15348
15357
  if (q !== -1 && ne !== -1) {
15349
- const A = Math.min(q, ne), _ = Math.max(q, ne), b = le.slice(A, _ + 1);
15358
+ const A = Math.min(q, ne), L = Math.max(q, ne), b = le.slice(A, L + 1);
15350
15359
  we.setSelection(b);
15351
15360
  }
15352
15361
  } else
@@ -15354,21 +15363,21 @@ const vf = (e) => {
15354
15363
  }, $ = (T, Y) => {
15355
15364
  T.preventDefault(), T.stopPropagation(), x({ x: T.clientX, y: T.clientY, elementId: Y }), r.includes(Y) || we.setSelection([Y]);
15356
15365
  }, U = (T) => {
15357
- if (!L) return;
15358
- const Y = e.find((le) => le.id === L.elementId);
15366
+ if (!_) return;
15367
+ const Y = e.find((le) => le.id === _.elementId);
15359
15368
  if (Y) {
15360
15369
  switch (T) {
15361
15370
  case "rename":
15362
- s(L.elementId);
15371
+ s(_.elementId);
15363
15372
  break;
15364
15373
  case "delete":
15365
- we.deleteElement(L.elementId);
15374
+ we.deleteElement(_.elementId);
15366
15375
  break;
15367
15376
  case "duplicate":
15368
- we.duplicateElement(L.elementId);
15377
+ we.duplicateElement(_.elementId);
15369
15378
  break;
15370
15379
  case "toggleVisibility":
15371
- we.updateElement(L.elementId, { visible: !Y.visible });
15380
+ we.updateElement(_.elementId, { visible: !Y.visible });
15372
15381
  break;
15373
15382
  }
15374
15383
  x(null);
@@ -15453,7 +15462,7 @@ const vf = (e) => {
15453
15462
  }, O = (T) => {
15454
15463
  const Y = t[T];
15455
15464
  if (!Y) return null;
15456
- const le = se[T] || [], q = Y.collapsed, ne = le.map((k) => k.id), A = ne.some((k) => r.includes(k)), _ = d === T, b = v === T;
15465
+ const le = se[T] || [], q = Y.collapsed, ne = le.map((k) => k.id), A = ne.some((k) => r.includes(k)), L = d === T, b = v === T;
15457
15466
  return /* @__PURE__ */ a.createElement("div", { key: T, className: "mb-1" }, /* @__PURE__ */ a.createElement(
15458
15467
  "div",
15459
15468
  {
@@ -15466,7 +15475,7 @@ const vf = (e) => {
15466
15475
  onClick: () => {
15467
15476
  we.setSelection(ne);
15468
15477
  },
15469
- className: `group flex items-center gap-2 p-2 rounded-lg border cursor-pointer select-none transition-colors ${A ? "bg-indigo-50 border-indigo-200 ring-1 ring-indigo-200" : "bg-slate-50 border-transparent hover:bg-slate-100 hover:border-gray-200"} ${_ ? "opacity-50" : ""} ${b ? "border-indigo-400 border-dashed bg-indigo-50/50" : ""}`
15478
+ className: `group flex items-center gap-2 p-2 rounded-lg border cursor-pointer select-none transition-colors ${A ? "bg-indigo-50 border-indigo-200 ring-1 ring-indigo-200" : "bg-slate-50 border-transparent hover:bg-slate-100 hover:border-gray-200"} ${L ? "opacity-50" : ""} ${b ? "border-indigo-400 border-dashed bg-indigo-50/50" : ""}`
15470
15479
  },
15471
15480
  /* @__PURE__ */ a.createElement("div", { className: "cursor-grab text-slate-400 hover:text-slate-600 flex-shrink-0" }, /* @__PURE__ */ a.createElement(Il, { size: 14 })),
15472
15481
  /* @__PURE__ */ a.createElement(
@@ -15515,7 +15524,7 @@ const vf = (e) => {
15515
15524
  ue.forEach((T) => {
15516
15525
  T.groupId && t[T.groupId] ? te.has(T.groupId) || (R.push({ type: "group", id: T.groupId }), te.add(T.groupId)) : R.push({ type: "element", id: T.id });
15517
15526
  });
15518
- const J = L ? e.find((T) => T.id === L.elementId) : null;
15527
+ const J = _ ? e.find((T) => T.id === _.elementId) : null;
15519
15528
  return /* @__PURE__ */ a.createElement("div", { className: "flex flex-col h-full -mx-6 -mt-6" }, /* @__PURE__ */ a.createElement("div", { className: "p-4 border-b border-gray-100 flex-shrink-0" }, /* @__PURE__ */ a.createElement("h3", { className: "font-bold text-slate-800 text-sm" }, "Layers"), /* @__PURE__ */ a.createElement("p", { className: "text-[10px] text-slate-400 mt-1" }, "Ctrl+click to multi-select, Shift+click for range")), /* @__PURE__ */ a.createElement("div", { className: "flex-1 overflow-y-auto p-4" }, R.length === 0 ? /* @__PURE__ */ a.createElement("div", { className: "text-center text-slate-400 text-sm py-8" }, "No layers yet") : R.map((T) => {
15520
15529
  if (T.type === "group")
15521
15530
  return O(T.id);
@@ -15523,11 +15532,11 @@ const vf = (e) => {
15523
15532
  const Y = e.find((le) => le.id === T.id);
15524
15533
  return Y ? K(Y, !1) : null;
15525
15534
  }
15526
- })), L && J && /* @__PURE__ */ a.createElement(
15535
+ })), _ && J && /* @__PURE__ */ a.createElement(
15527
15536
  "div",
15528
15537
  {
15529
15538
  className: "fixed bg-white rounded-lg shadow-xl border border-gray-200 py-1 z-[9999] min-w-[160px] animate-in fade-in zoom-in-95 duration-100",
15530
- style: { top: L.y, left: L.x },
15539
+ style: { top: _.y, left: _.x },
15531
15540
  onClick: (T) => T.stopPropagation()
15532
15541
  },
15533
15542
  /* @__PURE__ */ a.createElement(
@@ -15583,10 +15592,10 @@ const vf = (e) => {
15583
15592
  customPanels: g,
15584
15593
  customFonts: v,
15585
15594
  customTemplates: p,
15586
- canSaveTemplates: L,
15595
+ canSaveTemplates: _,
15587
15596
  title: x
15588
15597
  }) => {
15589
- const [C, I] = De(""), [D, $] = De(!1), [U, ue] = De(""), [se, ye] = De(null), [de, X] = De(null), [me, j] = De(!1), [K, O] = De("all"), [R, te] = De(!1), [J, T] = De(null), [Y, le] = De(!1), [q, ne] = De("#000000"), A = qt(null), [_, b] = De(null), [k, w] = De("https://example.com"), [S, z] = De("#000000"), [H, ce] = De("#ffffff"), [V, F] = De(""), [Q, oe] = De(""), [P, ae] = De([]), [Ce, be] = De(!1), [Ne, qe] = De(""), [Re, Ye] = De("sizes"), [Ue, tt] = De(!1), [je, ge] = De(""), [We, Oe] = De(null), [Me, Ze] = De(/* @__PURE__ */ new Set()), [Be, gt] = De(!1), st = qt(null), ct = qt(null), dt = qt(null), Ge = vd(
15598
+ const [C, I] = De(""), [D, $] = De(!1), [U, ue] = De(""), [se, ye] = De(null), [de, X] = De(null), [me, j] = De(!1), [K, O] = De("all"), [R, te] = De(!1), [J, T] = De(null), [Y, le] = De(!1), [q, ne] = De("#000000"), A = qt(null), [L, b] = De(null), [k, w] = De("https://example.com"), [S, z] = De("#000000"), [H, ce] = De("#ffffff"), [V, F] = De(""), [Q, oe] = De(""), [P, ae] = De([]), [Ce, be] = De(!1), [Ne, qe] = De(""), [Re, Ye] = De("sizes"), [Ue, tt] = De(!1), [je, ge] = De(""), [We, Oe] = De(null), [Me, Ze] = De(/* @__PURE__ */ new Set()), [Be, gt] = De(!1), st = qt(null), ct = qt(null), dt = qt(null), Ge = vd(
15590
15599
  (Xe) => we.subscribe(Xe),
15591
15600
  () => we.getSnapshot()
15592
15601
  ), ut = Ge.pages.find((Xe) => Xe.id === Ge.activePageId), Dt = ut ? ut.elements : [], At = ut ? ut.groups : {}, xt = Ge.brandKits.find((Xe) => Xe.id === Ge.activeBrandKitId) || Ge.brandKits[0], Mt = Dt.find((Xe) => Xe.id === Ge.selection[0]), [Zt, Et] = De(null);
@@ -15845,7 +15854,7 @@ const vf = (e) => {
15845
15854
  J3,
15846
15855
  {
15847
15856
  customTemplates: p,
15848
- canSaveTemplates: L,
15857
+ canSaveTemplates: _,
15849
15858
  onSelectTemplate: (_e) => {
15850
15859
  we.loadTemplate(_e), t();
15851
15860
  }
@@ -15904,12 +15913,12 @@ const vf = (e) => {
15904
15913
  className: "w-7 h-7 rounded-full border border-dashed border-slate-300 flex items-center justify-center text-slate-400 hover:border-slate-500 hover:text-slate-700 transition-colors"
15905
15914
  },
15906
15915
  /* @__PURE__ */ a.createElement(ki, { size: 16 })
15907
- ), Y && _ && Co(
15916
+ ), Y && L && Co(
15908
15917
  /* @__PURE__ */ a.createElement(
15909
15918
  "div",
15910
15919
  {
15911
15920
  className: "fixed z-[9999]",
15912
- style: _
15921
+ style: L
15913
15922
  },
15914
15923
  /* @__PURE__ */ a.createElement("div", { className: "fixed inset-0 z-0", onClick: () => le(!1) }),
15915
15924
  /* @__PURE__ */ a.createElement("div", { className: "relative z-10" }, /* @__PURE__ */ a.createElement(
@@ -16176,7 +16185,7 @@ const vf = (e) => {
16176
16185
  }, d = we.getSnapshot(), u = d.pages.find((D) => D.id === d.activePageId), m = (u == null ? void 0 : u.width) ?? e.width, g = (u == null ? void 0 : u.height) ?? e.height, v = (u == null ? void 0 : u.unit) ?? e.unit, p = (D, $) => {
16177
16186
  const U = parseFloat(D);
16178
16187
  isNaN(U) || (d.activePageId ? we.updatePageDimensions(d.activePageId, { [$]: cr(U, v) }) : t({ [$]: cr(U, v) }));
16179
- }, L = (D) => {
16188
+ }, _ = (D) => {
16180
16189
  d.activePageId ? we.updatePageDimensions(d.activePageId, { unit: D }) : t({ unit: D });
16181
16190
  }, x = () => {
16182
16191
  d.activePageId && we.rotatePage(d.activePageId);
@@ -16195,7 +16204,7 @@ const vf = (e) => {
16195
16204
  "select",
16196
16205
  {
16197
16206
  value: v,
16198
- onChange: (D) => L(D.target.value),
16207
+ onChange: (D) => _(D.target.value),
16199
16208
  className: "w-full px-2 py-1.5 bg-slate-50 border border-gray-200 rounded text-sm text-slate-700 focus:outline-none focus:border-blue-500"
16200
16209
  },
16201
16210
  /* @__PURE__ */ a.createElement("option", { value: "px" }, "Pixels (px)"),
@@ -16393,14 +16402,14 @@ const vf = (e) => {
16393
16402
  const l = To(), [d, u] = De(null), [m, g] = De(null), v = s ? { ...s, menuType: n } : void 0, p = v ? (i || []).filter((se) => (se == null ? void 0 : se.id) && (se == null ? void 0 : se.label)).filter((se) => {
16394
16403
  const ye = se.showFor ?? "both";
16395
16404
  return ye === "both" || ye === n;
16396
- }) : [], L = {
16405
+ }) : [], _ = {
16397
16406
  top: [],
16398
16407
  middle: [],
16399
16408
  bottom: []
16400
16409
  };
16401
16410
  p.forEach((se) => {
16402
16411
  const ye = se.section ?? "middle";
16403
- L[ye].push(se);
16412
+ _[ye].push(se);
16404
16413
  });
16405
16414
  const x = (se) => {
16406
16415
  const ye = se.icon;
@@ -16435,7 +16444,7 @@ const vf = (e) => {
16435
16444
  zIndex: 102
16436
16445
  }, U = (se) => {
16437
16446
  g(m === se ? null : se);
16438
- }, ue = /* @__PURE__ */ a.createElement(a.Fragment, null, n === "object" ? /* @__PURE__ */ a.createElement(a.Fragment, null, L.top.map(x), L.top.length > 0 && /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), /* @__PURE__ */ a.createElement(
16447
+ }, ue = /* @__PURE__ */ a.createElement(a.Fragment, null, n === "object" ? /* @__PURE__ */ a.createElement(a.Fragment, null, _.top.map(x), _.top.length > 0 && /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), /* @__PURE__ */ a.createElement(
16439
16448
  tr,
16440
16449
  {
16441
16450
  icon: /* @__PURE__ */ a.createElement(Do, { size: 18 }),
@@ -16500,7 +16509,7 @@ const vf = (e) => {
16500
16509
  onMouseEnter: () => u(null),
16501
16510
  isMobile: l
16502
16511
  }
16503
- ), L.middle.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), L.middle.map(x)), /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), /* @__PURE__ */ a.createElement(
16512
+ ), _.middle.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), _.middle.map(x)), /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), /* @__PURE__ */ a.createElement(
16504
16513
  tr,
16505
16514
  {
16506
16515
  icon: o.isLocked ? /* @__PURE__ */ a.createElement(Ys, { size: 18 }) : /* @__PURE__ */ a.createElement(Vs, { size: 18 }),
@@ -16629,7 +16638,7 @@ const vf = (e) => {
16629
16638
  }, isMobile: l }), /* @__PURE__ */ a.createElement(tr, { icon: /* @__PURE__ */ a.createElement(S5, { size: 16 }), label: "Bottom", onClick: () => {
16630
16639
  var se;
16631
16640
  (se = o.onAlign) == null || se.call(o, "bottom"), r();
16632
- }, isMobile: l }))), L.bottom.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), L.bottom.map(x))) : /* @__PURE__ */ a.createElement(a.Fragment, null, L.top.map(x), L.top.length > 0 && /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), /* @__PURE__ */ a.createElement(
16641
+ }, isMobile: l }))), _.bottom.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), _.bottom.map(x))) : /* @__PURE__ */ a.createElement(a.Fragment, null, _.top.map(x), _.top.length > 0 && /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), /* @__PURE__ */ a.createElement(
16633
16642
  tr,
16634
16643
  {
16635
16644
  icon: /* @__PURE__ */ a.createElement(E4, { size: 18 }),
@@ -16640,7 +16649,7 @@ const vf = (e) => {
16640
16649
  },
16641
16650
  isMobile: l
16642
16651
  }
16643
- ), L.middle.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), L.middle.map(x), /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" })), /* @__PURE__ */ a.createElement(
16652
+ ), _.middle.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), _.middle.map(x), /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" })), /* @__PURE__ */ a.createElement(
16644
16653
  tr,
16645
16654
  {
16646
16655
  icon: /* @__PURE__ */ a.createElement(ld, { size: 18 }),
@@ -16651,7 +16660,7 @@ const vf = (e) => {
16651
16660
  },
16652
16661
  isMobile: l
16653
16662
  }
16654
- ), L.bottom.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), L.bottom.map(x))));
16663
+ ), _.bottom.length > 0 && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "h-px bg-gray-100 my-1" }), _.bottom.map(x))));
16655
16664
  return l ? /* @__PURE__ */ a.createElement(
16656
16665
  Ud,
16657
16666
  {
@@ -16690,7 +16699,7 @@ function zc({
16690
16699
  selection: g,
16691
16700
  offsetX: v = 0,
16692
16701
  offsetY: p = 0,
16693
- effectOverlay: L
16702
+ effectOverlay: _
16694
16703
  }) {
16695
16704
  const [x, C] = De(null), I = qt(null), D = r / 100, $ = 1 / D, U = St((O, R, te) => {
16696
16705
  O.stopPropagation(), O.preventDefault(), O.target.setPointerCapture(O.pointerId), C({
@@ -16711,10 +16720,10 @@ function zc({
16711
16720
  } else if (x.type === "handle-out") {
16712
16721
  const A = Ni(ne.position, ne.handleOut);
16713
16722
  if (!A) return;
16714
- const _ = {
16723
+ const L = {
16715
16724
  x: A.x + le,
16716
16725
  y: A.y + q
16717
- }, b = dd(ne.position, _);
16726
+ }, b = dd(ne.position, L);
16718
16727
  let k = { handleOut: b };
16719
16728
  const w = O.altKey;
16720
16729
  if (!w && ne.type === "symmetric")
@@ -16729,10 +16738,10 @@ function zc({
16729
16738
  } else if (x.type === "handle-in") {
16730
16739
  const A = Ni(ne.position, ne.handleIn);
16731
16740
  if (!A) return;
16732
- const _ = {
16741
+ const L = {
16733
16742
  x: A.x + le,
16734
16743
  y: A.y + q
16735
- }, b = dd(ne.position, _);
16744
+ }, b = dd(ne.position, L);
16736
16745
  let k = { handleIn: b };
16737
16746
  const w = O.altKey;
16738
16747
  if (!w && ne.type === "symmetric")
@@ -16747,11 +16756,11 @@ function zc({
16747
16756
  } else if (x.type === "corner") {
16748
16757
  const A = e.anchors.findIndex((be) => be.id === x.anchorId);
16749
16758
  if (A === -1) return;
16750
- const _ = e.closed ? e.anchors[(A - 1 + e.anchors.length) % e.anchors.length] : e.anchors[A - 1], b = e.closed ? e.anchors[(A + 1) % e.anchors.length] : e.anchors[A + 1];
16751
- if (!_ || !b) return;
16759
+ const L = e.closed ? e.anchors[(A - 1 + e.anchors.length) % e.anchors.length] : e.anchors[A - 1], b = e.closed ? e.anchors[(A + 1) % e.anchors.length] : e.anchors[A + 1];
16760
+ if (!L || !b) return;
16752
16761
  const k = Oc({
16753
- x: ne.position.x - _.position.x,
16754
- y: ne.position.y - _.position.y
16762
+ x: ne.position.x - L.position.x,
16763
+ y: ne.position.y - L.position.y
16755
16764
  }), w = Oc({
16756
16765
  x: b.position.x - ne.position.x,
16757
16766
  y: b.position.y - ne.position.y
@@ -16766,7 +16775,7 @@ function zc({
16766
16775
  x: ne.position.x + le,
16767
16776
  y: ne.position.y + q
16768
16777
  }, H = (z.x - ne.position.x) * S.x + (z.y - ne.position.y) * S.y, ce = Math.min(
16769
- Ti(ne.position, _.position),
16778
+ Ti(ne.position, L.position),
16770
16779
  Ti(ne.position, b.position)
16771
16780
  ) * 0.45, V = Ph(H, 0, ce), F = Ph(k.x * w.x + k.y * w.y, -1, 1), Q = Math.acos(F), P = (Q > 0 ? 4 / 3 * Math.tan(Q / 4) : 0) * V;
16772
16781
  if (P <= 1e-4) {
@@ -16822,7 +16831,7 @@ function zc({
16822
16831
  style: { pointerEvents: t ? "none" : "auto" }
16823
16832
  }
16824
16833
  ),
16825
- L && /* @__PURE__ */ a.createElement("g", { style: { pointerEvents: "none" } }, L),
16834
+ _ && /* @__PURE__ */ a.createElement("g", { style: { pointerEvents: "none" } }, _),
16826
16835
  t && /* @__PURE__ */ a.createElement(
16827
16836
  "path",
16828
16837
  {
@@ -16935,8 +16944,8 @@ function yy() {
16935
16944
  for (var ae = 0; ae < Q; ae += 1) oe[P][ae] = null;
16936
16945
  }
16937
16946
  return oe;
16938
- })(Y = 4 * te + 17), _(0, 0), _(Y - 7, 0), _(0, Y - 7), k(), b(), S(V, F), te >= 7 && w(V), le == null && (le = H(te, J, q)), z(le, F);
16939
- }, _ = function(V, F) {
16947
+ })(Y = 4 * te + 17), L(0, 0), L(Y - 7, 0), L(0, Y - 7), k(), b(), S(V, F), te >= 7 && w(V), le == null && (le = H(te, J, q)), z(le, F);
16948
+ }, L = function(V, F) {
16940
16949
  for (var Q = -1; Q <= 7; Q += 1) if (!(V + Q <= -1 || Y <= V + Q)) for (var oe = -1; oe <= 7; oe += 1) F + oe <= -1 || Y <= F + oe || (T[V + Q][F + oe] = 0 <= Q && Q <= 6 && (oe == 0 || oe == 6) || 0 <= oe && oe <= 6 && (Q == 0 || Q == 6) || 2 <= Q && Q <= 4 && 2 <= oe && oe <= 4);
16941
16950
  }, b = function() {
16942
16951
  for (var V = 8; V < Y - 8; V += 1) T[V][6] == null && (T[V][6] = V % 2 == 0);
@@ -17137,8 +17146,8 @@ function yy() {
17137
17146
  }, le = 0, q = {}; ; ) {
17138
17147
  var ne = T.read();
17139
17148
  if (ne == -1) break;
17140
- var A = Y(), _ = Y() << 8 | Y();
17141
- q[String.fromCharCode(ne << 8 | A)] = _, le += 1;
17149
+ var A = Y(), L = Y() << 8 | Y();
17150
+ q[String.fromCharCode(ne << 8 | A)] = L, le += 1;
17142
17151
  }
17143
17152
  if (le != R) throw le + " != " + R;
17144
17153
  return q;
@@ -17155,18 +17164,18 @@ function yy() {
17155
17164
  return Y;
17156
17165
  };
17157
17166
  };
17158
- var g, v, p, L, x, C = { L: 1, M: 0, Q: 3, H: 2 }, I = (g = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], v = 1335, p = 7973, x = function(O) {
17167
+ var g, v, p, _, x, C = { L: 1, M: 0, Q: 3, H: 2 }, I = (g = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], v = 1335, p = 7973, x = function(O) {
17159
17168
  for (var R = 0; O != 0; ) R += 1, O >>>= 1;
17160
17169
  return R;
17161
- }, (L = {}).getBCHTypeInfo = function(O) {
17170
+ }, (_ = {}).getBCHTypeInfo = function(O) {
17162
17171
  for (var R = O << 10; x(R) - x(v) >= 0; ) R ^= v << x(R) - x(v);
17163
17172
  return 21522 ^ (O << 10 | R);
17164
- }, L.getBCHTypeNumber = function(O) {
17173
+ }, _.getBCHTypeNumber = function(O) {
17165
17174
  for (var R = O << 12; x(R) - x(p) >= 0; ) R ^= p << x(R) - x(p);
17166
17175
  return O << 12 | R;
17167
- }, L.getPatternPosition = function(O) {
17176
+ }, _.getPatternPosition = function(O) {
17168
17177
  return g[O - 1];
17169
- }, L.getMaskFunction = function(O) {
17178
+ }, _.getMaskFunction = function(O) {
17170
17179
  switch (O) {
17171
17180
  case 0:
17172
17181
  return function(R, te) {
@@ -17203,10 +17212,10 @@ function yy() {
17203
17212
  default:
17204
17213
  throw "bad maskPattern:" + O;
17205
17214
  }
17206
- }, L.getErrorCorrectPolynomial = function(O) {
17215
+ }, _.getErrorCorrectPolynomial = function(O) {
17207
17216
  for (var R = $([1], 0), te = 0; te < O; te += 1) R = R.multiply($([1, D.gexp(te)], 0));
17208
17217
  return R;
17209
- }, L.getLengthInBits = function(O, R) {
17218
+ }, _.getLengthInBits = function(O, R) {
17210
17219
  if (1 <= R && R < 10) switch (O) {
17211
17220
  case 1:
17212
17221
  return 10;
@@ -17245,7 +17254,7 @@ function yy() {
17245
17254
  throw "mode:" + O;
17246
17255
  }
17247
17256
  }
17248
- }, L.getLostPoint = function(O) {
17257
+ }, _.getLostPoint = function(O) {
17249
17258
  for (var R = O.getModuleCount(), te = 0, J = 0; J < R; J += 1) for (var T = 0; T < R; T += 1) {
17250
17259
  for (var Y = 0, le = O.isDark(J, T), q = -1; q <= 1; q += 1) if (!(J + q < 0 || R <= J + q)) for (var ne = -1; ne <= 1; ne += 1) T + ne < 0 || R <= T + ne || q == 0 && ne == 0 || le == O.isDark(J + q, T + ne) && (Y += 1);
17251
17260
  Y > 5 && (te += 3 + Y - 5);
@@ -17256,10 +17265,10 @@ function yy() {
17256
17265
  }
17257
17266
  for (J = 0; J < R; J += 1) for (T = 0; T < R - 6; T += 1) O.isDark(J, T) && !O.isDark(J, T + 1) && O.isDark(J, T + 2) && O.isDark(J, T + 3) && O.isDark(J, T + 4) && !O.isDark(J, T + 5) && O.isDark(J, T + 6) && (te += 40);
17258
17267
  for (T = 0; T < R; T += 1) for (J = 0; J < R - 6; J += 1) O.isDark(J, T) && !O.isDark(J + 1, T) && O.isDark(J + 2, T) && O.isDark(J + 3, T) && O.isDark(J + 4, T) && !O.isDark(J + 5, T) && O.isDark(J + 6, T) && (te += 40);
17259
- var _ = 0;
17260
- for (T = 0; T < R; T += 1) for (J = 0; J < R; J += 1) O.isDark(J, T) && (_ += 1);
17261
- return te + Math.abs(100 * _ / R / R - 50) / 5 * 10;
17262
- }, L), D = (function() {
17268
+ var L = 0;
17269
+ for (T = 0; T < R; T += 1) for (J = 0; J < R; J += 1) O.isDark(J, T) && (L += 1);
17270
+ return te + Math.abs(100 * L / R / R - 50) / 5 * 10;
17271
+ }, _), D = (function() {
17263
17272
  for (var O = new Array(256), R = new Array(256), te = 0; te < 8; te += 1) O[te] = 1 << te;
17264
17273
  for (te = 8; te < 256; te += 1) O[te] = O[te - 4] ^ O[te - 5] ^ O[te - 6] ^ O[te - 8];
17265
17274
  for (te = 0; te < 255; te += 1) R[O[te]] = te;
@@ -17313,7 +17322,7 @@ function yy() {
17313
17322
  }
17314
17323
  })(J, T);
17315
17324
  if (Y === void 0) throw "bad rs block @ typeNumber:" + J + "/errorCorrectionLevel:" + T;
17316
- for (var le = Y.length / 3, q = [], ne = 0; ne < le; ne += 1) for (var A = Y[3 * ne + 0], _ = Y[3 * ne + 1], b = Y[3 * ne + 2], k = 0; k < A; k += 1) q.push(R(_, b));
17325
+ for (var le = Y.length / 3, q = [], ne = 0; ne < le; ne += 1) for (var A = Y[3 * ne + 0], L = Y[3 * ne + 1], b = Y[3 * ne + 2], k = 0; k < A; k += 1) q.push(R(L, b));
17317
17326
  return q;
17318
17327
  } };
17319
17328
  return te;
@@ -17458,8 +17467,8 @@ function yy() {
17458
17467
  };
17459
17468
  return Y;
17460
17469
  }, K = function(O, R, te) {
17461
- for (var J = (function(_, b) {
17462
- var k = _, w = b, S = new Array(_ * b), z = { setPixel: function(V, F, Q) {
17470
+ for (var J = (function(L, b) {
17471
+ var k = L, w = b, S = new Array(L * b), z = { setPixel: function(V, F, Q) {
17463
17472
  S[F * k + V] = Q;
17464
17473
  }, write: function(V) {
17465
17474
  V.writeString("GIF87a"), V.writeShort(k), V.writeShort(w), V.writeByte(128), V.writeByte(0), V.writeByte(0), V.writeByte(0), V.writeByte(0), V.writeByte(0), V.writeByte(255), V.writeByte(255), V.writeByte(255), V.writeString(","), V.writeShort(0), V.writeShort(0), V.writeShort(k), V.writeShort(w), V.writeByte(0);
@@ -17502,7 +17511,7 @@ function yy() {
17502
17511
  var le = me();
17503
17512
  J.write(le);
17504
17513
  for (var q = (function() {
17505
- var _ = 0, b = 0, k = 0, w = "", S = {}, z = function(ce) {
17514
+ var L = 0, b = 0, k = 0, w = "", S = {}, z = function(ce) {
17506
17515
  w += String.fromCharCode(H(63 & ce));
17507
17516
  }, H = function(ce) {
17508
17517
  if (!(ce < 0)) {
@@ -17515,9 +17524,9 @@ function yy() {
17515
17524
  throw "n:" + ce;
17516
17525
  };
17517
17526
  return S.writeByte = function(ce) {
17518
- for (_ = _ << 8 | 255 & ce, b += 8, k += 1; b >= 6; ) z(_ >>> b - 6), b -= 6;
17527
+ for (L = L << 8 | 255 & ce, b += 8, k += 1; b >= 6; ) z(L >>> b - 6), b -= 6;
17519
17528
  }, S.flush = function() {
17520
- if (b > 0 && (z(_ << 6 - b), _ = 0, b = 0), k % 3 != 0) for (var ce = 3 - k % 3, V = 0; V < ce; V += 1) w += "=";
17529
+ if (b > 0 && (z(L << 6 - b), L = 0, b = 0), k % 3 != 0) for (var ce = 3 - k % 3, V = 0; V < ce; V += 1) w += "=";
17521
17530
  }, S.toString = function() {
17522
17531
  return w;
17523
17532
  }, S;
@@ -17529,8 +17538,8 @@ function yy() {
17529
17538
  u.stringToBytesFuncs["UTF-8"] = function(m) {
17530
17539
  return (function(g) {
17531
17540
  for (var v = [], p = 0; p < g.length; p++) {
17532
- var L = g.charCodeAt(p);
17533
- L < 128 ? v.push(L) : L < 2048 ? v.push(192 | L >> 6, 128 | 63 & L) : L < 55296 || L >= 57344 ? v.push(224 | L >> 12, 128 | L >> 6 & 63, 128 | 63 & L) : (p++, L = 65536 + ((1023 & L) << 10 | 1023 & g.charCodeAt(p)), v.push(240 | L >> 18, 128 | L >> 12 & 63, 128 | L >> 6 & 63, 128 | 63 & L));
17541
+ var _ = g.charCodeAt(p);
17542
+ _ < 128 ? v.push(_) : _ < 2048 ? v.push(192 | _ >> 6, 128 | 63 & _) : _ < 55296 || _ >= 57344 ? v.push(224 | _ >> 12, 128 | _ >> 6 & 63, 128 | 63 & _) : (p++, _ = 65536 + ((1023 & _) << 10 | 1023 & g.charCodeAt(p)), v.push(240 | _ >> 18, 128 | _ >> 12 & 63, 128 | _ >> 6 & 63, 128 | 63 & _));
17534
17543
  }
17535
17544
  return v;
17536
17545
  })(m);
@@ -17540,32 +17549,32 @@ function yy() {
17540
17549
  }, 676: (s, o, l) => {
17541
17550
  l.d(o, { default: () => A });
17542
17551
  var d = function() {
17543
- return (d = Object.assign || function(_) {
17544
- for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (_[S] = b[S]);
17545
- return _;
17552
+ return (d = Object.assign || function(L) {
17553
+ for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (L[S] = b[S]);
17554
+ return L;
17546
17555
  }).apply(this, arguments);
17547
17556
  }, u = function() {
17548
- for (var _ = 0, b = 0, k = arguments.length; b < k; b++) _ += arguments[b].length;
17549
- var w = Array(_), S = 0;
17557
+ for (var L = 0, b = 0, k = arguments.length; b < k; b++) L += arguments[b].length;
17558
+ var w = Array(L), S = 0;
17550
17559
  for (b = 0; b < k; b++) for (var z = arguments[b], H = 0, ce = z.length; H < ce; H++, S++) w[S] = z[H];
17551
17560
  return w;
17552
- }, m = function(_) {
17553
- return !!_ && typeof _ == "object" && !Array.isArray(_);
17561
+ }, m = function(L) {
17562
+ return !!L && typeof L == "object" && !Array.isArray(L);
17554
17563
  };
17555
- function g(_) {
17564
+ function g(L) {
17556
17565
  for (var b = [], k = 1; k < arguments.length; k++) b[k - 1] = arguments[k];
17557
- if (!b.length) return _;
17566
+ if (!b.length) return L;
17558
17567
  var w = b.shift();
17559
- return w !== void 0 && m(_) && m(w) ? (_ = d({}, _), Object.keys(w).forEach((function(S) {
17560
- var z = _[S], H = w[S];
17561
- Array.isArray(z) && Array.isArray(H) ? _[S] = H : m(z) && m(H) ? _[S] = g(Object.assign({}, z), H) : _[S] = H;
17562
- })), g.apply(void 0, u([_], b))) : _;
17568
+ return w !== void 0 && m(L) && m(w) ? (L = d({}, L), Object.keys(w).forEach((function(S) {
17569
+ var z = L[S], H = w[S];
17570
+ Array.isArray(z) && Array.isArray(H) ? L[S] = H : m(z) && m(H) ? L[S] = g(Object.assign({}, z), H) : L[S] = H;
17571
+ })), g.apply(void 0, u([L], b))) : L;
17563
17572
  }
17564
- function v(_, b) {
17573
+ function v(L, b) {
17565
17574
  var k = document.createElement("a");
17566
- k.download = b, k.href = _, document.body.appendChild(k), k.click(), document.body.removeChild(k);
17575
+ k.download = b, k.href = L, document.body.appendChild(k), k.click(), document.body.removeChild(k);
17567
17576
  }
17568
- function p(_) {
17577
+ function p(L) {
17569
17578
  return b = this, k = void 0, S = function() {
17570
17579
  return (function(z, H) {
17571
17580
  var ce, V, F, Q, oe = { label: 0, sent: function() {
@@ -17633,7 +17642,7 @@ function yy() {
17633
17642
  V.onloadend = function() {
17634
17643
  H(V.result);
17635
17644
  }, V.readAsDataURL(ce.response);
17636
- }, ce.open("GET", _), ce.responseType = "blob", ce.send();
17645
+ }, ce.open("GET", L), ce.responseType = "blob", ce.send();
17637
17646
  }))];
17638
17647
  }));
17639
17648
  }, new ((w = void 0) || (w = Promise))((function(z, H) {
@@ -17661,19 +17670,19 @@ function yy() {
17661
17670
  }));
17662
17671
  var b, k, w, S;
17663
17672
  }
17664
- const L = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
17673
+ const _ = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
17665
17674
  var x = function() {
17666
- return (x = Object.assign || function(_) {
17667
- for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (_[S] = b[S]);
17668
- return _;
17675
+ return (x = Object.assign || function(L) {
17676
+ for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (L[S] = b[S]);
17677
+ return L;
17669
17678
  }).apply(this, arguments);
17670
17679
  };
17671
17680
  const C = (function() {
17672
- function _(b) {
17681
+ function L(b) {
17673
17682
  var k = b.svg, w = b.type;
17674
17683
  this._svg = k, this._type = w;
17675
17684
  }
17676
- return _.prototype.draw = function(b, k, w, S) {
17685
+ return L.prototype.draw = function(b, k, w, S) {
17677
17686
  var z;
17678
17687
  switch (this._type) {
17679
17688
  case "dots":
@@ -17696,46 +17705,46 @@ function yy() {
17696
17705
  z = this._drawSquare;
17697
17706
  }
17698
17707
  z.call(this, { x: b, y: k, size: w, getNeighbor: S });
17699
- }, _.prototype._rotateFigure = function(b) {
17708
+ }, L.prototype._rotateFigure = function(b) {
17700
17709
  var k, w = b.x, S = b.y, z = b.size, H = b.rotation, ce = H === void 0 ? 0 : H, V = w + z / 2, F = S + z / 2;
17701
17710
  (0, b.draw)(), (k = this._element) === null || k === void 0 || k.setAttribute("transform", "rotate(" + 180 * ce / Math.PI + "," + V + "," + F + ")");
17702
- }, _.prototype._basicDot = function(b) {
17711
+ }, L.prototype._basicDot = function(b) {
17703
17712
  var k = this, w = b.size, S = b.x, z = b.y;
17704
17713
  this._rotateFigure(x(x({}, b), { draw: function() {
17705
17714
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "circle"), k._element.setAttribute("cx", String(S + w / 2)), k._element.setAttribute("cy", String(z + w / 2)), k._element.setAttribute("r", String(w / 2));
17706
17715
  } }));
17707
- }, _.prototype._basicSquare = function(b) {
17716
+ }, L.prototype._basicSquare = function(b) {
17708
17717
  var k = this, w = b.size, S = b.x, z = b.y;
17709
17718
  this._rotateFigure(x(x({}, b), { draw: function() {
17710
17719
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "rect"), k._element.setAttribute("x", String(S)), k._element.setAttribute("y", String(z)), k._element.setAttribute("width", String(w)), k._element.setAttribute("height", String(w));
17711
17720
  } }));
17712
- }, _.prototype._basicSideRounded = function(b) {
17721
+ }, L.prototype._basicSideRounded = function(b) {
17713
17722
  var k = this, w = b.size, S = b.x, z = b.y;
17714
17723
  this._rotateFigure(x(x({}, b), { draw: function() {
17715
17724
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "path"), k._element.setAttribute("d", "M " + S + " " + z + "v " + w + "h " + w / 2 + "a " + w / 2 + " " + w / 2 + ", 0, 0, 0, 0 " + -w);
17716
17725
  } }));
17717
- }, _.prototype._basicCornerRounded = function(b) {
17726
+ }, L.prototype._basicCornerRounded = function(b) {
17718
17727
  var k = this, w = b.size, S = b.x, z = b.y;
17719
17728
  this._rotateFigure(x(x({}, b), { draw: function() {
17720
17729
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "path"), k._element.setAttribute("d", "M " + S + " " + z + "v " + w + "h " + w + "v " + -w / 2 + "a " + w / 2 + " " + w / 2 + ", 0, 0, 0, " + -w / 2 + " " + -w / 2);
17721
17730
  } }));
17722
- }, _.prototype._basicCornerExtraRounded = function(b) {
17731
+ }, L.prototype._basicCornerExtraRounded = function(b) {
17723
17732
  var k = this, w = b.size, S = b.x, z = b.y;
17724
17733
  this._rotateFigure(x(x({}, b), { draw: function() {
17725
17734
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "path"), k._element.setAttribute("d", "M " + S + " " + z + "v " + w + "h " + w + "a " + w + " " + w + ", 0, 0, 0, " + -w + " " + -w);
17726
17735
  } }));
17727
- }, _.prototype._basicCornersRounded = function(b) {
17736
+ }, L.prototype._basicCornersRounded = function(b) {
17728
17737
  var k = this, w = b.size, S = b.x, z = b.y;
17729
17738
  this._rotateFigure(x(x({}, b), { draw: function() {
17730
17739
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "path"), k._element.setAttribute("d", "M " + S + " " + z + "v " + w / 2 + "a " + w / 2 + " " + w / 2 + ", 0, 0, 0, " + w / 2 + " " + w / 2 + "h " + w / 2 + "v " + -w / 2 + "a " + w / 2 + " " + w / 2 + ", 0, 0, 0, " + -w / 2 + " " + -w / 2);
17731
17740
  } }));
17732
- }, _.prototype._drawDot = function(b) {
17741
+ }, L.prototype._drawDot = function(b) {
17733
17742
  var k = b.x, w = b.y, S = b.size;
17734
17743
  this._basicDot({ x: k, y: w, size: S, rotation: 0 });
17735
- }, _.prototype._drawSquare = function(b) {
17744
+ }, L.prototype._drawSquare = function(b) {
17736
17745
  var k = b.x, w = b.y, S = b.size;
17737
17746
  this._basicSquare({ x: k, y: w, size: S, rotation: 0 });
17738
- }, _.prototype._drawRounded = function(b) {
17747
+ }, L.prototype._drawRounded = function(b) {
17739
17748
  var k = b.x, w = b.y, S = b.size, z = b.getNeighbor, H = z ? +z(-1, 0) : 0, ce = z ? +z(1, 0) : 0, V = z ? +z(0, -1) : 0, F = z ? +z(0, 1) : 0, Q = H + ce + V + F;
17740
17749
  if (Q !== 0) if (Q > 2 || H && ce || V && F) this._basicSquare({ x: k, y: w, size: S, rotation: 0 });
17741
17750
  else {
@@ -17746,7 +17755,7 @@ function yy() {
17746
17755
  if (Q === 1) return oe = 0, V ? oe = Math.PI / 2 : ce ? oe = Math.PI : F && (oe = -Math.PI / 2), void this._basicSideRounded({ x: k, y: w, size: S, rotation: oe });
17747
17756
  }
17748
17757
  else this._basicDot({ x: k, y: w, size: S, rotation: 0 });
17749
- }, _.prototype._drawExtraRounded = function(b) {
17758
+ }, L.prototype._drawExtraRounded = function(b) {
17750
17759
  var k = b.x, w = b.y, S = b.size, z = b.getNeighbor, H = z ? +z(-1, 0) : 0, ce = z ? +z(1, 0) : 0, V = z ? +z(0, -1) : 0, F = z ? +z(0, 1) : 0, Q = H + ce + V + F;
17751
17760
  if (Q !== 0) if (Q > 2 || H && ce || V && F) this._basicSquare({ x: k, y: w, size: S, rotation: 0 });
17752
17761
  else {
@@ -17757,26 +17766,26 @@ function yy() {
17757
17766
  if (Q === 1) return oe = 0, V ? oe = Math.PI / 2 : ce ? oe = Math.PI : F && (oe = -Math.PI / 2), void this._basicSideRounded({ x: k, y: w, size: S, rotation: oe });
17758
17767
  }
17759
17768
  else this._basicDot({ x: k, y: w, size: S, rotation: 0 });
17760
- }, _.prototype._drawClassy = function(b) {
17769
+ }, L.prototype._drawClassy = function(b) {
17761
17770
  var k = b.x, w = b.y, S = b.size, z = b.getNeighbor, H = z ? +z(-1, 0) : 0, ce = z ? +z(1, 0) : 0, V = z ? +z(0, -1) : 0, F = z ? +z(0, 1) : 0;
17762
17771
  H + ce + V + F !== 0 ? H || V ? ce || F ? this._basicSquare({ x: k, y: w, size: S, rotation: 0 }) : this._basicCornerRounded({ x: k, y: w, size: S, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: k, y: w, size: S, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: k, y: w, size: S, rotation: Math.PI / 2 });
17763
- }, _.prototype._drawClassyRounded = function(b) {
17772
+ }, L.prototype._drawClassyRounded = function(b) {
17764
17773
  var k = b.x, w = b.y, S = b.size, z = b.getNeighbor, H = z ? +z(-1, 0) : 0, ce = z ? +z(1, 0) : 0, V = z ? +z(0, -1) : 0, F = z ? +z(0, 1) : 0;
17765
17774
  H + ce + V + F !== 0 ? H || V ? ce || F ? this._basicSquare({ x: k, y: w, size: S, rotation: 0 }) : this._basicCornerExtraRounded({ x: k, y: w, size: S, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: k, y: w, size: S, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: k, y: w, size: S, rotation: Math.PI / 2 });
17766
- }, _;
17775
+ }, L;
17767
17776
  })();
17768
17777
  var I = function() {
17769
- return (I = Object.assign || function(_) {
17770
- for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (_[S] = b[S]);
17771
- return _;
17778
+ return (I = Object.assign || function(L) {
17779
+ for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (L[S] = b[S]);
17780
+ return L;
17772
17781
  }).apply(this, arguments);
17773
17782
  };
17774
17783
  const D = (function() {
17775
- function _(b) {
17784
+ function L(b) {
17776
17785
  var k = b.svg, w = b.type;
17777
17786
  this._svg = k, this._type = w;
17778
17787
  }
17779
- return _.prototype.draw = function(b, k, w, S) {
17788
+ return L.prototype.draw = function(b, k, w, S) {
17780
17789
  var z;
17781
17790
  switch (this._type) {
17782
17791
  case "square":
@@ -17790,47 +17799,47 @@ function yy() {
17790
17799
  z = this._drawDot;
17791
17800
  }
17792
17801
  z.call(this, { x: b, y: k, size: w, rotation: S });
17793
- }, _.prototype._rotateFigure = function(b) {
17802
+ }, L.prototype._rotateFigure = function(b) {
17794
17803
  var k, w = b.x, S = b.y, z = b.size, H = b.rotation, ce = H === void 0 ? 0 : H, V = w + z / 2, F = S + z / 2;
17795
17804
  (0, b.draw)(), (k = this._element) === null || k === void 0 || k.setAttribute("transform", "rotate(" + 180 * ce / Math.PI + "," + V + "," + F + ")");
17796
- }, _.prototype._basicDot = function(b) {
17805
+ }, L.prototype._basicDot = function(b) {
17797
17806
  var k = this, w = b.size, S = b.x, z = b.y, H = w / 7;
17798
17807
  this._rotateFigure(I(I({}, b), { draw: function() {
17799
17808
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "path"), k._element.setAttribute("clip-rule", "evenodd"), k._element.setAttribute("d", "M " + (S + w / 2) + " " + z + "a " + w / 2 + " " + w / 2 + " 0 1 0 0.1 0zm 0 " + H + "a " + (w / 2 - H) + " " + (w / 2 - H) + " 0 1 1 -0.1 0Z");
17800
17809
  } }));
17801
- }, _.prototype._basicSquare = function(b) {
17810
+ }, L.prototype._basicSquare = function(b) {
17802
17811
  var k = this, w = b.size, S = b.x, z = b.y, H = w / 7;
17803
17812
  this._rotateFigure(I(I({}, b), { draw: function() {
17804
17813
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "path"), k._element.setAttribute("clip-rule", "evenodd"), k._element.setAttribute("d", "M " + S + " " + z + "v " + w + "h " + w + "v " + -w + "zM " + (S + H) + " " + (z + H) + "h " + (w - 2 * H) + "v " + (w - 2 * H) + "h " + (2 * H - w) + "z");
17805
17814
  } }));
17806
- }, _.prototype._basicExtraRounded = function(b) {
17815
+ }, L.prototype._basicExtraRounded = function(b) {
17807
17816
  var k = this, w = b.size, S = b.x, z = b.y, H = w / 7;
17808
17817
  this._rotateFigure(I(I({}, b), { draw: function() {
17809
17818
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "path"), k._element.setAttribute("clip-rule", "evenodd"), k._element.setAttribute("d", "M " + S + " " + (z + 2.5 * H) + "v " + 2 * H + "a " + 2.5 * H + " " + 2.5 * H + ", 0, 0, 0, " + 2.5 * H + " " + 2.5 * H + "h " + 2 * H + "a " + 2.5 * H + " " + 2.5 * H + ", 0, 0, 0, " + 2.5 * H + " " + 2.5 * -H + "v " + -2 * H + "a " + 2.5 * H + " " + 2.5 * H + ", 0, 0, 0, " + 2.5 * -H + " " + 2.5 * -H + "h " + -2 * H + "a " + 2.5 * H + " " + 2.5 * H + ", 0, 0, 0, " + 2.5 * -H + " " + 2.5 * H + "M " + (S + 2.5 * H) + " " + (z + H) + "h " + 2 * H + "a " + 1.5 * H + " " + 1.5 * H + ", 0, 0, 1, " + 1.5 * H + " " + 1.5 * H + "v " + 2 * H + "a " + 1.5 * H + " " + 1.5 * H + ", 0, 0, 1, " + 1.5 * -H + " " + 1.5 * H + "h " + -2 * H + "a " + 1.5 * H + " " + 1.5 * H + ", 0, 0, 1, " + 1.5 * -H + " " + 1.5 * -H + "v " + -2 * H + "a " + 1.5 * H + " " + 1.5 * H + ", 0, 0, 1, " + 1.5 * H + " " + 1.5 * -H);
17810
17819
  } }));
17811
- }, _.prototype._drawDot = function(b) {
17820
+ }, L.prototype._drawDot = function(b) {
17812
17821
  var k = b.x, w = b.y, S = b.size, z = b.rotation;
17813
17822
  this._basicDot({ x: k, y: w, size: S, rotation: z });
17814
- }, _.prototype._drawSquare = function(b) {
17823
+ }, L.prototype._drawSquare = function(b) {
17815
17824
  var k = b.x, w = b.y, S = b.size, z = b.rotation;
17816
17825
  this._basicSquare({ x: k, y: w, size: S, rotation: z });
17817
- }, _.prototype._drawExtraRounded = function(b) {
17826
+ }, L.prototype._drawExtraRounded = function(b) {
17818
17827
  var k = b.x, w = b.y, S = b.size, z = b.rotation;
17819
17828
  this._basicExtraRounded({ x: k, y: w, size: S, rotation: z });
17820
- }, _;
17829
+ }, L;
17821
17830
  })();
17822
17831
  var $ = function() {
17823
- return ($ = Object.assign || function(_) {
17824
- for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (_[S] = b[S]);
17825
- return _;
17832
+ return ($ = Object.assign || function(L) {
17833
+ for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (L[S] = b[S]);
17834
+ return L;
17826
17835
  }).apply(this, arguments);
17827
17836
  };
17828
17837
  const U = (function() {
17829
- function _(b) {
17838
+ function L(b) {
17830
17839
  var k = b.svg, w = b.type;
17831
17840
  this._svg = k, this._type = w;
17832
17841
  }
17833
- return _.prototype.draw = function(b, k, w, S) {
17842
+ return L.prototype.draw = function(b, k, w, S) {
17834
17843
  var z;
17835
17844
  switch (this._type) {
17836
17845
  case "square":
@@ -17841,28 +17850,28 @@ function yy() {
17841
17850
  z = this._drawDot;
17842
17851
  }
17843
17852
  z.call(this, { x: b, y: k, size: w, rotation: S });
17844
- }, _.prototype._rotateFigure = function(b) {
17853
+ }, L.prototype._rotateFigure = function(b) {
17845
17854
  var k, w = b.x, S = b.y, z = b.size, H = b.rotation, ce = H === void 0 ? 0 : H, V = w + z / 2, F = S + z / 2;
17846
17855
  (0, b.draw)(), (k = this._element) === null || k === void 0 || k.setAttribute("transform", "rotate(" + 180 * ce / Math.PI + "," + V + "," + F + ")");
17847
- }, _.prototype._basicDot = function(b) {
17856
+ }, L.prototype._basicDot = function(b) {
17848
17857
  var k = this, w = b.size, S = b.x, z = b.y;
17849
17858
  this._rotateFigure($($({}, b), { draw: function() {
17850
17859
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "circle"), k._element.setAttribute("cx", String(S + w / 2)), k._element.setAttribute("cy", String(z + w / 2)), k._element.setAttribute("r", String(w / 2));
17851
17860
  } }));
17852
- }, _.prototype._basicSquare = function(b) {
17861
+ }, L.prototype._basicSquare = function(b) {
17853
17862
  var k = this, w = b.size, S = b.x, z = b.y;
17854
17863
  this._rotateFigure($($({}, b), { draw: function() {
17855
17864
  k._element = document.createElementNS("http://www.w3.org/2000/svg", "rect"), k._element.setAttribute("x", String(S)), k._element.setAttribute("y", String(z)), k._element.setAttribute("width", String(w)), k._element.setAttribute("height", String(w));
17856
17865
  } }));
17857
- }, _.prototype._drawDot = function(b) {
17866
+ }, L.prototype._drawDot = function(b) {
17858
17867
  var k = b.x, w = b.y, S = b.size, z = b.rotation;
17859
17868
  this._basicDot({ x: k, y: w, size: S, rotation: z });
17860
- }, _.prototype._drawSquare = function(b) {
17869
+ }, L.prototype._drawSquare = function(b) {
17861
17870
  var k = b.x, w = b.y, S = b.size, z = b.rotation;
17862
17871
  this._basicSquare({ x: k, y: w, size: S, rotation: z });
17863
- }, _;
17872
+ }, L;
17864
17873
  })(), ue = "circle";
17865
- var se = function(_, b, k, w) {
17874
+ var se = function(L, b, k, w) {
17866
17875
  return new (k || (k = Promise))((function(S, z) {
17867
17876
  function H(F) {
17868
17877
  try {
@@ -17884,9 +17893,9 @@ function yy() {
17884
17893
  oe(Q);
17885
17894
  }))).then(H, ce);
17886
17895
  }
17887
- V((w = w.apply(_, [])).next());
17896
+ V((w = w.apply(L, [])).next());
17888
17897
  }));
17889
- }, ye = function(_, b) {
17898
+ }, ye = function(L, b) {
17890
17899
  var k, w, S, z, H = { label: 0, sent: function() {
17891
17900
  if (1 & S[0]) throw S[1];
17892
17901
  return S[1];
@@ -17933,7 +17942,7 @@ function yy() {
17933
17942
  S[2] && H.ops.pop(), H.trys.pop();
17934
17943
  continue;
17935
17944
  }
17936
- Q = b.call(_, H);
17945
+ Q = b.call(L, H);
17937
17946
  } catch (oe) {
17938
17947
  Q = [6, oe], w = 0;
17939
17948
  } finally {
@@ -17946,16 +17955,16 @@ function yy() {
17946
17955
  }
17947
17956
  }, de = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], X = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
17948
17957
  const me = (function() {
17949
- function _(b) {
17958
+ function L(b) {
17950
17959
  this._element = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(b.width)), this._element.setAttribute("height", String(b.height)), this._defs = document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._options = b;
17951
17960
  }
17952
- return Object.defineProperty(_.prototype, "width", { get: function() {
17961
+ return Object.defineProperty(L.prototype, "width", { get: function() {
17953
17962
  return this._options.width;
17954
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(_.prototype, "height", { get: function() {
17963
+ }, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "height", { get: function() {
17955
17964
  return this._options.height;
17956
- }, enumerable: !1, configurable: !0 }), _.prototype.getElement = function() {
17965
+ }, enumerable: !1, configurable: !0 }), L.prototype.getElement = function() {
17957
17966
  return this._element;
17958
- }, _.prototype.drawQR = function(b) {
17967
+ }, L.prototype.drawQR = function(b) {
17959
17968
  return se(this, void 0, void 0, (function() {
17960
17969
  var k, w, S, z, H, ce, V, F, Q, oe, P = this;
17961
17970
  return ye(this, (function(ae) {
@@ -17964,7 +17973,7 @@ function yy() {
17964
17973
  return k = b.getModuleCount(), w = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, S = this._options.shape === ue ? w / Math.sqrt(2) : w, z = Math.floor(S / k), H = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 }, this._qr = b, this._options.image ? [4, this.loadImage()] : [3, 2];
17965
17974
  case 1:
17966
17975
  if (ae.sent(), !this._image) return [2];
17967
- ce = this._options, V = ce.imageOptions, F = ce.qrOptions, Q = V.imageSize * L[F.errorCorrectionLevel], oe = Math.floor(Q * k * k), H = (function(Ce) {
17976
+ ce = this._options, V = ce.imageOptions, F = ce.qrOptions, Q = V.imageSize * _[F.errorCorrectionLevel], oe = Math.floor(Q * k * k), H = (function(Ce) {
17968
17977
  var be = Ce.originalHeight, Ne = Ce.originalWidth, qe = Ce.maxHiddenDots, Re = Ce.maxHiddenAxisDots, Ye = Ce.dotSize, Ue = { x: 0, y: 0 }, tt = { x: 0, y: 0 };
17969
17978
  if (be <= 0 || Ne <= 0 || qe <= 0 || Ye <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
17970
17979
  var je = be / Ne;
@@ -17982,7 +17991,7 @@ function yy() {
17982
17991
  }
17983
17992
  }));
17984
17993
  }));
17985
- }, _.prototype.drawBackground = function() {
17994
+ }, L.prototype.drawBackground = function() {
17986
17995
  var b, k, w, S = this._element, z = this._options;
17987
17996
  if (S) {
17988
17997
  var H = (b = z.backgroundOptions) === null || b === void 0 ? void 0 : b.gradient, ce = (k = z.backgroundOptions) === null || k === void 0 ? void 0 : k.color;
@@ -17991,7 +18000,7 @@ function yy() {
17991
18000
  this._backgroundClipPath = document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", "clip-path-background-color"), this._defs.appendChild(this._backgroundClipPath), F.setAttribute("x", String((z.width - V) / 2)), F.setAttribute("y", String((z.height - V) / 2)), F.setAttribute("width", String(V)), F.setAttribute("height", String(V)), F.setAttribute("rx", String(V / 2 * z.backgroundOptions.round)), this._backgroundClipPath.appendChild(F);
17992
18001
  }
17993
18002
  }
17994
- }, _.prototype.drawDots = function(b) {
18003
+ }, L.prototype.drawDots = function(b) {
17995
18004
  var k, w, S = this;
17996
18005
  if (!this._qr) throw "QR code is not defined";
17997
18006
  var z = this._options, H = this._qr.getModuleCount();
@@ -18022,7 +18031,7 @@ function yy() {
18022
18031
  }, We = this;
18023
18032
  for (be = 0; be < qe; be++) ge(be);
18024
18033
  }
18025
- }, _.prototype.drawCorners = function() {
18034
+ }, L.prototype.drawCorners = function() {
18026
18035
  var b = this;
18027
18036
  if (!this._qr) throw "QR code is not defined";
18028
18037
  var k = this._element, w = this._options;
@@ -18059,7 +18068,7 @@ function yy() {
18059
18068
  for (Dt = 0; Dt < X.length; Dt++) xt(Dt);
18060
18069
  }
18061
18070
  }));
18062
- }, _.prototype.loadImage = function() {
18071
+ }, L.prototype.loadImage = function() {
18063
18072
  var b = this;
18064
18073
  return new Promise((function(k, w) {
18065
18074
  var S = b._options, z = new Image();
@@ -18068,7 +18077,7 @@ function yy() {
18068
18077
  k();
18069
18078
  }, z.src = S.image;
18070
18079
  }));
18071
- }, _.prototype.drawImage = function(b) {
18080
+ }, L.prototype.drawImage = function(b) {
18072
18081
  var k = b.width, w = b.height, S = b.count, z = b.dotSize;
18073
18082
  return se(this, void 0, void 0, (function() {
18074
18083
  var H, ce, V, F, Q, oe, P, ae, Ce;
@@ -18081,7 +18090,7 @@ function yy() {
18081
18090
  }
18082
18091
  }));
18083
18092
  }));
18084
- }, _.prototype._createColor = function(b) {
18093
+ }, L.prototype._createColor = function(b) {
18085
18094
  var k = b.options, w = b.color, S = b.additionalRotation, z = b.x, H = b.y, ce = b.height, V = b.width, F = b.name, Q = V > ce ? V : ce, oe = document.createElementNS("http://www.w3.org/2000/svg", "rect");
18086
18095
  if (oe.setAttribute("x", String(z)), oe.setAttribute("y", String(H)), oe.setAttribute("height", String(ce)), oe.setAttribute("width", String(V)), oe.setAttribute("clip-path", "url('#clip-path-" + F + "')"), k) {
18087
18096
  var P;
@@ -18096,28 +18105,28 @@ function yy() {
18096
18105
  })), oe.setAttribute("fill", "url('#" + F + "')"), this._defs.appendChild(P);
18097
18106
  } else w && oe.setAttribute("fill", w);
18098
18107
  this._element.appendChild(oe);
18099
- }, _;
18108
+ }, L;
18100
18109
  })(), j = "canvas";
18101
18110
  for (var K = {}, O = 0; O <= 40; O++) K[O] = O;
18102
18111
  const R = { type: j, shape: "square", width: 300, height: 300, data: "", margin: 0, qrOptions: { typeNumber: K[0], mode: void 0, errorCorrectionLevel: "Q" }, imageOptions: { hideBackgroundDots: !0, imageSize: 0.4, crossOrigin: void 0, margin: 0 }, dotsOptions: { type: "square", color: "#000" }, backgroundOptions: { round: 0, color: "#fff" } };
18103
18112
  var te = function() {
18104
- return (te = Object.assign || function(_) {
18105
- for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (_[S] = b[S]);
18106
- return _;
18113
+ return (te = Object.assign || function(L) {
18114
+ for (var b, k = 1, w = arguments.length; k < w; k++) for (var S in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, S) && (L[S] = b[S]);
18115
+ return L;
18107
18116
  }).apply(this, arguments);
18108
18117
  };
18109
- function J(_) {
18110
- var b = te({}, _);
18118
+ function J(L) {
18119
+ var b = te({}, L);
18111
18120
  if (!b.colorStops || !b.colorStops.length) throw "Field 'colorStops' is required in gradient";
18112
18121
  return b.rotation ? b.rotation = Number(b.rotation) : b.rotation = 0, b.colorStops = b.colorStops.map((function(k) {
18113
18122
  return te(te({}, k), { offset: Number(k.offset) });
18114
18123
  })), b;
18115
18124
  }
18116
- function T(_) {
18117
- var b = te({}, _);
18125
+ function T(L) {
18126
+ var b = te({}, L);
18118
18127
  return b.width = Number(b.width), b.height = Number(b.height), b.margin = Number(b.margin), b.imageOptions = te(te({}, b.imageOptions), { hideBackgroundDots: !!b.imageOptions.hideBackgroundDots, imageSize: Number(b.imageOptions.imageSize), margin: Number(b.imageOptions.margin) }), b.margin > Math.min(b.width, b.height) && (b.margin = Math.min(b.width, b.height)), b.dotsOptions = te({}, b.dotsOptions), b.dotsOptions.gradient && (b.dotsOptions.gradient = J(b.dotsOptions.gradient)), b.cornersSquareOptions && (b.cornersSquareOptions = te({}, b.cornersSquareOptions), b.cornersSquareOptions.gradient && (b.cornersSquareOptions.gradient = J(b.cornersSquareOptions.gradient))), b.cornersDotOptions && (b.cornersDotOptions = te({}, b.cornersDotOptions), b.cornersDotOptions.gradient && (b.cornersDotOptions.gradient = J(b.cornersDotOptions.gradient))), b.backgroundOptions && (b.backgroundOptions = te({}, b.backgroundOptions), b.backgroundOptions.gradient && (b.backgroundOptions.gradient = J(b.backgroundOptions.gradient))), b;
18119
18128
  }
18120
- var Y = l(192), le = l.n(Y), q = function(_, b, k, w) {
18129
+ var Y = l(192), le = l.n(Y), q = function(L, b, k, w) {
18121
18130
  return new (k || (k = Promise))((function(S, z) {
18122
18131
  function H(F) {
18123
18132
  try {
@@ -18139,9 +18148,9 @@ function yy() {
18139
18148
  oe(Q);
18140
18149
  }))).then(H, ce);
18141
18150
  }
18142
- V((w = w.apply(_, [])).next());
18151
+ V((w = w.apply(L, [])).next());
18143
18152
  }));
18144
- }, ne = function(_, b) {
18153
+ }, ne = function(L, b) {
18145
18154
  var k, w, S, z, H = { label: 0, sent: function() {
18146
18155
  if (1 & S[0]) throw S[1];
18147
18156
  return S[1];
@@ -18188,7 +18197,7 @@ function yy() {
18188
18197
  S[2] && H.ops.pop(), H.trys.pop();
18189
18198
  continue;
18190
18199
  }
18191
- Q = b.call(_, H);
18200
+ Q = b.call(L, H);
18192
18201
  } catch (oe) {
18193
18202
  Q = [6, oe], w = 0;
18194
18203
  } finally {
@@ -18201,12 +18210,12 @@ function yy() {
18201
18210
  }
18202
18211
  };
18203
18212
  const A = (function() {
18204
- function _(b) {
18213
+ function L(b) {
18205
18214
  this._options = b ? T(g(R, b)) : R, this.update();
18206
18215
  }
18207
- return _._clearContainer = function(b) {
18216
+ return L._clearContainer = function(b) {
18208
18217
  b && (b.innerHTML = "");
18209
- }, _.prototype._setupSvg = function() {
18218
+ }, L.prototype._setupSvg = function() {
18210
18219
  var b = this;
18211
18220
  if (this._qr) {
18212
18221
  var k = new me(this._options);
@@ -18215,7 +18224,7 @@ function yy() {
18215
18224
  b._svg && ((w = b._extension) === null || w === void 0 || w.call(b, k.getElement(), b._options));
18216
18225
  }));
18217
18226
  }
18218
- }, _.prototype._setupCanvas = function() {
18227
+ }, L.prototype._setupCanvas = function() {
18219
18228
  var b, k = this;
18220
18229
  this._qr && (this._canvas = document.createElement("canvas"), this._canvas.width = this._options.width, this._canvas.height = this._options.height, this._setupSvg(), this._canvasDrawingPromise = (b = this._svgDrawingPromise) === null || b === void 0 ? void 0 : b.then((function() {
18221
18230
  if (k._svg) {
@@ -18228,7 +18237,7 @@ function yy() {
18228
18237
  }));
18229
18238
  }
18230
18239
  })));
18231
- }, _.prototype._getElement = function(b) {
18240
+ }, L.prototype._getElement = function(b) {
18232
18241
  return b === void 0 && (b = "png"), q(this, void 0, void 0, (function() {
18233
18242
  return ne(this, (function(k) {
18234
18243
  switch (k.label) {
@@ -18244,8 +18253,8 @@ function yy() {
18244
18253
  }
18245
18254
  }));
18246
18255
  }));
18247
- }, _.prototype.update = function(b) {
18248
- _._clearContainer(this._container), this._options = b ? T(g(this._options, b)) : this._options, this._options.data && (this._qr = le()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(k) {
18256
+ }, L.prototype.update = function(b) {
18257
+ L._clearContainer(this._container), this._options = b ? T(g(this._options, b)) : this._options, this._options.data && (this._qr = le()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(k) {
18249
18258
  switch (!0) {
18250
18259
  case /^[0-9]*$/.test(k):
18251
18260
  return "Numeric";
@@ -18255,17 +18264,17 @@ function yy() {
18255
18264
  return "Byte";
18256
18265
  }
18257
18266
  })(this._options.data)), this._qr.make(), this._options.type === j ? this._setupCanvas() : this._setupSvg(), this.append(this._container));
18258
- }, _.prototype.append = function(b) {
18267
+ }, L.prototype.append = function(b) {
18259
18268
  if (b) {
18260
18269
  if (typeof b.appendChild != "function") throw "Container should be a single DOM node";
18261
18270
  this._options.type === j ? this._canvas && b.appendChild(this._canvas) : this._svg && b.appendChild(this._svg), this._container = b;
18262
18271
  }
18263
- }, _.prototype.applyExtension = function(b) {
18272
+ }, L.prototype.applyExtension = function(b) {
18264
18273
  if (!b) throw "Extension function should be defined.";
18265
18274
  this._extension = b, this.update();
18266
- }, _.prototype.deleteExtension = function() {
18275
+ }, L.prototype.deleteExtension = function() {
18267
18276
  this._extension = void 0, this.update();
18268
- }, _.prototype.getRawData = function(b) {
18277
+ }, L.prototype.getRawData = function(b) {
18269
18278
  return b === void 0 && (b = "png"), q(this, void 0, void 0, (function() {
18270
18279
  var k, w, S;
18271
18280
  return ne(this, (function(z) {
@@ -18281,7 +18290,7 @@ function yy() {
18281
18290
  }
18282
18291
  }));
18283
18292
  }));
18284
- }, _.prototype.download = function(b) {
18293
+ }, L.prototype.download = function(b) {
18285
18294
  return q(this, void 0, void 0, (function() {
18286
18295
  var k, w, S, z, H;
18287
18296
  return ne(this, (function(ce) {
@@ -18295,7 +18304,7 @@ function yy() {
18295
18304
  }
18296
18305
  }));
18297
18306
  }));
18298
- }, _;
18307
+ }, L;
18299
18308
  })();
18300
18309
  } }, r = {};
18301
18310
  function i(s) {
@@ -18333,7 +18342,7 @@ function ln(e, t = 2) {
18333
18342
  return _n(n.toString());
18334
18343
  }
18335
18344
  function wy(e) {
18336
- var n, r, i, s, o, l, d, u, m, g, v, p, L, x, C, I, D, $, U, ue, se, ye, de, X, me, j, K, O, R, te, J, T, Y, le, q, ne, A, _, b, k, w, S;
18345
+ var n, r, i, s, o, l, d, u, m, g, v, p, _, x, C, I, D, $, U, ue, se, ye, de, X, me, j, K, O, R, te, J, T, Y, le, q, ne, A, L, b, k, w, S;
18337
18346
  if (!e) return 0;
18338
18347
  const t = [
18339
18348
  _n(((n = e.style) == null ? void 0 : n.type) || "none"),
@@ -18342,7 +18351,7 @@ function wy(e) {
18342
18351
  ln((d = (l = e.style) == null ? void 0 : l.params) == null ? void 0 : d.blur),
18343
18352
  ln((m = (u = e.style) == null ? void 0 : u.params) == null ? void 0 : m.transparency),
18344
18353
  ln((v = (g = e.style) == null ? void 0 : g.params) == null ? void 0 : v.thickness),
18345
- _n(((L = (p = e.style) == null ? void 0 : p.params) == null ? void 0 : L.color) || ""),
18354
+ _n(((_ = (p = e.style) == null ? void 0 : p.params) == null ? void 0 : _.color) || ""),
18346
18355
  ln((C = (x = e.style) == null ? void 0 : x.params) == null ? void 0 : C.intensity),
18347
18356
  ln((D = (I = e.style) == null ? void 0 : I.params) == null ? void 0 : D.roundness),
18348
18357
  ln((U = ($ = e.style) == null ? void 0 : $.params) == null ? void 0 : U.spread),
@@ -18355,7 +18364,7 @@ function wy(e) {
18355
18364
  ln((Y = (T = e.style) == null ? void 0 : T.params) == null ? void 0 : Y.reflectionOpacity),
18356
18365
  ln((q = (le = e.style) == null ? void 0 : le.params) == null ? void 0 : q.reflectionDistance),
18357
18366
  _n(((ne = e.shape) == null ? void 0 : ne.type) || "none"),
18358
- ln((_ = (A = e.shape) == null ? void 0 : A.params) == null ? void 0 : _.curve),
18367
+ ln((L = (A = e.shape) == null ? void 0 : A.params) == null ? void 0 : L.curve),
18359
18368
  ln((b = e.adjustments) == null ? void 0 : b.hue),
18360
18369
  ln((k = e.adjustments) == null ? void 0 : k.saturation),
18361
18370
  ln((w = e.adjustments) == null ? void 0 : w.brightness),
@@ -18854,7 +18863,7 @@ const By = (e) => typeof e == "number" ? { top: e, right: e, bottom: e, left: e
18854
18863
  flipX: d,
18855
18864
  flipY: u
18856
18865
  }) => {
18857
- const m = qt(null), g = Jn(() => Fy(3), []), v = Jn(() => Af(e), [e.effect]), p = By(i ?? v.padding), L = s ?? v.position, x = l ?? { top: 0, right: 0, bottom: 0, left: 0 }, C = x.top > 0 || x.right > 0 || x.bottom > 0 || x.left > 0, I = t - x.left - x.right, D = n - x.top - x.bottom, $ = C ? I : t, U = C ? D : n, ue = $ + p.left + p.right, se = U + p.top + p.bottom, ye = St(() => {
18866
+ const m = qt(null), g = Jn(() => Fy(3), []), v = Jn(() => Af(e), [e.effect]), p = By(i ?? v.padding), _ = s ?? v.position, x = l ?? { top: 0, right: 0, bottom: 0, left: 0 }, C = x.top > 0 || x.right > 0 || x.bottom > 0 || x.left > 0, I = t - x.left - x.right, D = n - x.top - x.bottom, $ = C ? I : t, U = C ? D : n, ue = $ + p.left + p.right, se = U + p.top + p.bottom, ye = St(() => {
18858
18867
  var O, R;
18859
18868
  if (!m.current || !v.needsRendering) return;
18860
18869
  const j = m.current, K = j.getContext("2d");
@@ -18917,7 +18926,7 @@ const By = (e) => typeof e == "number" ? { top: e, right: e, bottom: e, left: e
18917
18926
  width: ue,
18918
18927
  height: se,
18919
18928
  pointerEvents: "none",
18920
- zIndex: L === "behind" ? -1 : 1,
18929
+ zIndex: _ === "behind" ? -1 : 1,
18921
18930
  transform: me,
18922
18931
  transformOrigin: "center center"
18923
18932
  }
@@ -18955,16 +18964,16 @@ const By = (e) => typeof e == "number" ? { top: e, right: e, bottom: e, left: e
18955
18964
  u = m;
18956
18965
  return;
18957
18966
  }
18958
- let L = "";
18967
+ let _ = "";
18959
18968
  for (const x of m) {
18960
- const C = L + x;
18961
- if (!L || rs(e, C, r) <= n) {
18962
- L = C;
18969
+ const C = _ + x;
18970
+ if (!_ || rs(e, C, r) <= n) {
18971
+ _ = C;
18963
18972
  continue;
18964
18973
  }
18965
- i.push({ text: L, width: rs(e, L, r) }), L = x;
18974
+ i.push({ text: _, width: rs(e, _, r) }), _ = x;
18966
18975
  }
18967
- u = L;
18976
+ u = _;
18968
18977
  }), u && i.push({ text: u, width: rs(e, u, r) }), l < s.length - 1 && o === "" && i.push({ text: "", width: 0 });
18969
18978
  }), i;
18970
18979
  }, Uy = (e, t, n) => {
@@ -18996,9 +19005,9 @@ const By = (e) => typeof e == "number" ? { top: e, right: e, bottom: e, left: e
18996
19005
  }, Sr = (e, t, n) => {
18997
19006
  const { lines: r, lineHeight: i, letterSpacing: s, width: o, align: l, font: d } = t, u = n.offsetX ?? 0, m = n.offsetY ?? 0;
18998
19007
  e.save(), e.font = d, e.textBaseline = "top", e.textAlign = "left", n.fillStyle && (e.fillStyle = n.fillStyle), n.strokeStyle && n.strokeWidth && (e.strokeStyle = n.strokeStyle, e.lineWidth = n.strokeWidth, e.lineJoin = n.lineJoin ?? "round", e.lineCap = n.lineCap ?? "round"), r.forEach((g, v) => {
18999
- const p = v * i + m, L = g.width;
19008
+ const p = v * i + m, _ = g.width;
19000
19009
  let x = u;
19001
- l === "center" ? x = o / 2 - L / 2 + u : l === "right" && (x = o - L + u), n.strokeStyle && n.strokeWidth && Fh(e, g.text, x, p, s, "stroke"), n.fillStyle && Fh(e, g.text, x, p, s, "fill");
19010
+ l === "center" ? x = o / 2 - _ / 2 + u : l === "right" && (x = o - _ + u), n.strokeStyle && n.strokeWidth && Fh(e, g.text, x, p, s, "stroke"), n.fillStyle && Fh(e, g.text, x, p, s, "fill");
19002
19011
  }), e.restore();
19003
19012
  }, Hy = (e, t, n) => {
19004
19013
  const r = Math.min(t, n) / 2;
@@ -19027,7 +19036,7 @@ const Th = (e, t, n, r) => {
19027
19036
  const o = i.length;
19028
19037
  let l = "";
19029
19038
  for (let d = 0; d < o; d++) {
19030
- const u = i[(d - 1 + o) % o], m = i[d], g = i[(d + 1) % o], v = { x: u.x - m.x, y: u.y - m.y }, p = { x: g.x - m.x, y: g.y - m.y }, L = Math.sqrt(v.x * v.x + v.y * v.y), x = Math.sqrt(p.x * p.x + p.y * p.y), C = Math.min(L, x) / 2;
19039
+ const u = i[(d - 1 + o) % o], m = i[d], g = i[(d + 1) % o], v = { x: u.x - m.x, y: u.y - m.y }, p = { x: g.x - m.x, y: g.y - m.y }, _ = Math.sqrt(v.x * v.x + v.y * v.y), x = Math.sqrt(p.x * p.x + p.y * p.y), C = Math.min(_, x) / 2;
19031
19040
  let I = 0;
19032
19041
  s ? I = t : I = t[`p${d}`] ?? 0;
19033
19042
  const D = Math.min(I, C);
@@ -19035,7 +19044,7 @@ const Th = (e, t, n, r) => {
19035
19044
  d === 0 ? l += `M ${m.x},${m.y} ` : l += `L ${m.x},${m.y} `;
19036
19045
  continue;
19037
19046
  }
19038
- const $ = { x: m.x + v.x / L * D, y: m.y + v.y / L * D }, U = { x: m.x + p.x / x * D, y: m.y + p.y / x * D };
19047
+ const $ = { x: m.x + v.x / _ * D, y: m.y + v.y / _ * D }, U = { x: m.x + p.x / x * D, y: m.y + p.y / x * D };
19039
19048
  d === 0 ? l += `M ${$.x},${$.y} ` : l += `L ${$.x},${$.y} `, l += `Q ${m.x},${m.y} ${U.x},${U.y} `;
19040
19049
  }
19041
19050
  return l += "Z", l;
@@ -19082,7 +19091,7 @@ function Xy(e, t, n, r, i, s) {
19082
19091
  if (o.lines.length === 0) return;
19083
19092
  const l = t.color || "#000000", d = Vd(i, l);
19084
19093
  i.textColor;
19085
- const u = Cf(($ = t.effect) == null ? void 0 : $.adjustments), m = i.blurAmount ?? 5, g = s === "blur" ? `${u} blur(${m}px)` : u, v = t.textStrokeWidth ?? 0, p = t.textStrokeColor || "#000000", L = t.textStrokePosition || "behind", x = t.textStrokeStyle || "round", C = x === "round" ? "round" : "miter", I = x === "round" ? "round" : "butt", D = () => {
19094
+ const u = Cf(($ = t.effect) == null ? void 0 : $.adjustments), m = i.blurAmount ?? 5, g = s === "blur" ? `${u} blur(${m}px)` : u, v = t.textStrokeWidth ?? 0, p = t.textStrokeColor || "#000000", _ = t.textStrokePosition || "behind", x = t.textStrokeStyle || "round", C = x === "round" ? "round" : "miter", I = x === "round" ? "round" : "butt", D = () => {
19086
19095
  v <= 0 || Sr(e, o, {
19087
19096
  strokeStyle: p,
19088
19097
  strokeWidth: v,
@@ -19090,7 +19099,7 @@ function Xy(e, t, n, r, i, s) {
19090
19099
  lineCap: I
19091
19100
  });
19092
19101
  };
19093
- switch (e.save(), e.globalAlpha = t.opacity ?? 1, v > 0 && L === "behind" && (e.filter = g, D()), s) {
19102
+ switch (e.save(), e.globalAlpha = t.opacity ?? 1, v > 0 && _ === "behind" && (e.filter = g, D()), s) {
19094
19103
  case "shadow": {
19095
19104
  const { offsetX: U, offsetY: ue } = Es(i), se = i.blur ?? 0, ye = Yd(i), de = No(d, ye);
19096
19105
  e.save(), e.filter = g, e.shadowColor = de, e.shadowBlur = se, e.shadowOffsetX = U, e.shadowOffsetY = ue, Sr(e, o, { fillStyle: l }), e.restore();
@@ -19175,7 +19184,7 @@ function Xy(e, t, n, r, i, s) {
19175
19184
  default:
19176
19185
  e.save(), e.filter = g, Sr(e, o, { fillStyle: l }), e.restore();
19177
19186
  }
19178
- v > 0 && L === "front" && (e.filter = g, D()), e.restore();
19187
+ v > 0 && _ === "front" && (e.filter = g, D()), e.restore();
19179
19188
  }
19180
19189
  function tu(e, t, n, r) {
19181
19190
  e.beginPath();
@@ -19258,13 +19267,13 @@ const Zy = () => {
19258
19267
  const l = e.style.type;
19259
19268
  if (n && eu(l, t ? "text" : "other"))
19260
19269
  return o();
19261
- const { type: u, params: m } = e.style, g = (D, $) => D ?? $, v = Vd(m, "#000000"), p = g(m.blur, 0), L = Yd(m), x = (D, $) => No(D, $), { offsetX: C, offsetY: I } = Es(m);
19270
+ const { type: u, params: m } = e.style, g = (D, $) => D ?? $, v = Vd(m, "#000000"), p = g(m.blur, 0), _ = Yd(m), x = (D, $) => No(D, $), { offsetX: C, offsetY: I } = Es(m);
19262
19271
  if (u === "shadow")
19263
19272
  if (t) {
19264
- const D = `${C}px ${I}px ${p}px ${x(v, L)}`;
19273
+ const D = `${C}px ${I}px ${p}px ${x(v, _)}`;
19265
19274
  return o({ textShadow: D });
19266
19275
  } else
19267
- return s.push(`drop-shadow(${C}px ${I}px ${p}px ${x(v, L)})`), o();
19276
+ return s.push(`drop-shadow(${C}px ${I}px ${p}px ${x(v, _)})`), o();
19268
19277
  if (u === "lift")
19269
19278
  if (t) {
19270
19279
  const D = Rl(m), $ = `0px ${10 * D}px ${20 * D}px -5px rgba(0,0,0, ${0.5 * D})`;
@@ -19300,7 +19309,7 @@ const Zy = () => {
19300
19309
  if (u === "background" && t) {
19301
19310
  const D = g(m.roundness, 0) / 2, $ = g(m.spread, 50) / 5;
19302
19311
  return o({
19303
- backgroundColor: x(v, L),
19312
+ backgroundColor: x(v, _),
19304
19313
  padding: `0 ${$}px`,
19305
19314
  borderRadius: `${D}px`,
19306
19315
  boxDecorationBreak: "clone",
@@ -19413,10 +19422,10 @@ const Zy = () => {
19413
19422
  color: u || t
19414
19423
  },
19415
19424
  image: m
19416
- }).getRawData("svg").then((L) => {
19417
- if (L) {
19425
+ }).getRawData("svg").then((_) => {
19426
+ if (_) {
19418
19427
  const x = new FileReader();
19419
- x.readAsText(L), x.onloadend = () => {
19428
+ x.readAsText(_), x.onloadend = () => {
19420
19429
  let C = x.result;
19421
19430
  C = C.replace(/width="\d+"/, 'width="100%"').replace(/height="\d+"/, 'height="100%"'), C.includes("viewBox") || (C = C.replace("<svg", '<svg viewBox="0 0 1000 1000"')), v(C);
19422
19431
  };
@@ -19440,7 +19449,7 @@ const Zy = () => {
19440
19449
  const o = i.length;
19441
19450
  let l = "";
19442
19451
  for (let d = 0; d < o; d++) {
19443
- const u = i[(d - 1 + o) % o], m = i[d], g = i[(d + 1) % o], v = { x: u.x - m.x, y: u.y - m.y }, p = { x: g.x - m.x, y: g.y - m.y }, L = Math.sqrt(v.x * v.x + v.y * v.y), x = Math.sqrt(p.x * p.x + p.y * p.y), C = Math.min(L, x) / 2;
19452
+ const u = i[(d - 1 + o) % o], m = i[d], g = i[(d + 1) % o], v = { x: u.x - m.x, y: u.y - m.y }, p = { x: g.x - m.x, y: g.y - m.y }, _ = Math.sqrt(v.x * v.x + v.y * v.y), x = Math.sqrt(p.x * p.x + p.y * p.y), C = Math.min(_, x) / 2;
19444
19453
  let I = 0;
19445
19454
  s ? I = t : I = t[`p${d}`] ?? 0;
19446
19455
  const D = Math.min(I, C);
@@ -19448,7 +19457,7 @@ const Zy = () => {
19448
19457
  d === 0 ? l += `M ${m.x},${m.y} ` : l += `L ${m.x},${m.y} `;
19449
19458
  continue;
19450
19459
  }
19451
- const $ = { x: m.x + v.x / L * D, y: m.y + v.y / L * D }, U = { x: m.x + p.x / x * D, y: m.y + p.y / x * D };
19460
+ const $ = { x: m.x + v.x / _ * D, y: m.y + v.y / _ * D }, U = { x: m.x + p.x / x * D, y: m.y + p.y / x * D };
19452
19461
  d === 0 ? l += `M ${$.x},${$.y} ` : l += `L ${$.x},${$.y} `, l += `Q ${m.x},${m.y} ${U.x},${U.y} `;
19453
19462
  }
19454
19463
  return l += "Z", l;
@@ -19531,7 +19540,7 @@ const Zy = () => {
19531
19540
  height: "100%"
19532
19541
  };
19533
19542
  let m = null;
19534
- n && (n.type === "radial" ? m = /* @__PURE__ */ a.createElement("defs", null, /* @__PURE__ */ a.createElement("radialGradient", { id: r, cx: "50%", cy: "50%", r: "50%", fx: "50%", fy: "50%" }, n.stops.map((p, L) => /* @__PURE__ */ a.createElement("stop", { key: L, offset: p.offset, stopColor: p.color })))) : m = /* @__PURE__ */ a.createElement("defs", null, /* @__PURE__ */ a.createElement("linearGradient", { id: r, gradientTransform: `rotate(${n.angle - 90}, 0.5, 0.5)`, x1: "0%", y1: "0%", x2: "100%", y2: "0%" }, n.stops.map((p, L) => /* @__PURE__ */ a.createElement("stop", { key: L, offset: p.offset, stopColor: p.color })))));
19543
+ n && (n.type === "radial" ? m = /* @__PURE__ */ a.createElement("defs", null, /* @__PURE__ */ a.createElement("radialGradient", { id: r, cx: "50%", cy: "50%", r: "50%", fx: "50%", fy: "50%" }, n.stops.map((p, _) => /* @__PURE__ */ a.createElement("stop", { key: _, offset: p.offset, stopColor: p.color })))) : m = /* @__PURE__ */ a.createElement("defs", null, /* @__PURE__ */ a.createElement("linearGradient", { id: r, gradientTransform: `rotate(${n.angle - 90}, 0.5, 0.5)`, x1: "0%", y1: "0%", x2: "100%", y2: "0%" }, n.stops.map((p, _) => /* @__PURE__ */ a.createElement("stop", { key: _, offset: p.offset, stopColor: p.color })))));
19535
19544
  const g = { ...t, overflow: "visible" };
19536
19545
  g.filter && delete g.filter;
19537
19546
  const v = Gd(e.content);
@@ -19552,10 +19561,10 @@ const Zy = () => {
19552
19561
  if (e.content === "rect") {
19553
19562
  if (o)
19554
19563
  return /* @__PURE__ */ a.createElement("svg", { style: g, width: "100%", height: "100%" }, m, /* @__PURE__ */ a.createElement("rect", { x: "0", y: "0", rx: s, ...u }));
19555
- const { tl: p, tr: L, br: x, bl: C } = s, I = 0.01;
19556
- if (Math.abs(p - L) < I && Math.abs(L - x) < I && Math.abs(x - C) < I)
19564
+ const { tl: p, tr: _, br: x, bl: C } = s, I = 0.01;
19565
+ if (Math.abs(p - _) < I && Math.abs(_ - x) < I && Math.abs(x - C) < I)
19557
19566
  return /* @__PURE__ */ a.createElement("svg", { style: g, width: "100%", height: "100%" }, m, /* @__PURE__ */ a.createElement("rect", { x: "0", y: "0", rx: p, ...u }));
19558
- const $ = ev(e.width, e.height, p, L, x, C);
19567
+ const $ = ev(e.width, e.height, p, _, x, C);
19559
19568
  return /* @__PURE__ */ a.createElement("svg", { style: g, width: "100%", height: "100%" }, m, /* @__PURE__ */ a.createElement("path", { d: $, ...u }));
19560
19569
  }
19561
19570
  if (e.content === "circle")
@@ -19580,7 +19589,7 @@ const Zy = () => {
19580
19589
  pageId: g,
19581
19590
  zoom: v,
19582
19591
  unit: p,
19583
- selectionZIndex: L,
19592
+ selectionZIndex: _,
19584
19593
  onPointerDown: x,
19585
19594
  onDoubleClick: C,
19586
19595
  onResizePointerDown: I,
@@ -19596,7 +19605,7 @@ const Zy = () => {
19596
19605
  setCropModeId: j
19597
19606
  }) => {
19598
19607
  var xn, Bt, on, pn, Nn, Sn, ur, ka, oi, Oa, Lr, za, vr, ua, Vn, ma;
19599
- const [K, O] = De(!1), [R, te] = De({ w: 0, h: 0 }), [J, T] = De(!1), [Y, le] = De(/* @__PURE__ */ new Set()), [q, ne] = De(!1), [A, _] = De(!1), b = To(), { invalidate: k, shouldCache: w } = kf(), S = w(e);
19608
+ const [K, O] = De(!1), [R, te] = De({ w: 0, h: 0 }), [J, T] = De(!1), [Y, le] = De(/* @__PURE__ */ new Set()), [q, ne] = De(!1), [A, L] = De(!1), b = To(), { invalidate: k, shouldCache: w } = kf(), S = w(e);
19600
19609
  Jt(() => {
19601
19610
  S && k(e.id);
19602
19611
  }, [
@@ -19613,10 +19622,10 @@ const Zy = () => {
19613
19622
  ]);
19614
19623
  const z = qt(null), [H, ce] = De(null), V = qt(null), F = qt(null), Q = qt(null);
19615
19624
  Jt(() => {
19616
- t || (le(/* @__PURE__ */ new Set()), _(!1));
19625
+ t || (le(/* @__PURE__ */ new Set()), L(!1));
19617
19626
  }, [t]), Jt(() => {
19618
19627
  if (A) {
19619
- const nt = () => _(!1);
19628
+ const nt = () => L(!1);
19620
19629
  return window.addEventListener("scroll", nt, !0), window.addEventListener("resize", nt), () => {
19621
19630
  window.removeEventListener("scroll", nt, !0), window.removeEventListener("resize", nt);
19622
19631
  };
@@ -19657,18 +19666,18 @@ const Zy = () => {
19657
19666
  U(e.id, { crop: E3(vt, yt) }, !1);
19658
19667
  }, Dt = async (nt) => {
19659
19668
  if (q || !e.content) return;
19660
- ne(!0), _(!1);
19669
+ ne(!0), L(!1);
19661
19670
  const vt = await pf(e.content, nt);
19662
19671
  U(e.id, { content: vt }), ne(!1);
19663
19672
  }, At = (nt) => {
19664
19673
  if (nt.stopPropagation(), A)
19665
- _(!1), ce(null);
19674
+ L(!1), ce(null);
19666
19675
  else if (z.current) {
19667
19676
  const vt = z.current.getBoundingClientRect();
19668
19677
  ce({
19669
19678
  top: vt.bottom + 8,
19670
19679
  left: vt.left + vt.width / 2
19671
- }), _(!0);
19680
+ }), L(!0);
19672
19681
  }
19673
19682
  }, xt = e.strokeWidth || 0, Mt = e.strokeColor || "#000000", Zt = e.strokeStyle || "solid";
19674
19683
  let Et = "0";
@@ -19867,7 +19876,7 @@ const Zy = () => {
19867
19876
  height: e.height,
19868
19877
  transform: `rotate(${e.rotation}deg)`,
19869
19878
  transformOrigin: an,
19870
- zIndex: L,
19879
+ zIndex: _,
19871
19880
  pointerEvents: "none"
19872
19881
  }
19873
19882
  },
@@ -19969,7 +19978,7 @@ const Zy = () => {
19969
19978
  transform: "translateX(-50%)"
19970
19979
  }
19971
19980
  },
19972
- /* @__PURE__ */ a.createElement("div", { className: "fixed inset-0", onClick: () => _(!1) }),
19981
+ /* @__PURE__ */ a.createElement("div", { className: "fixed inset-0", onClick: () => L(!1) }),
19973
19982
  /* @__PURE__ */ a.createElement(
19974
19983
  "div",
19975
19984
  {
@@ -20584,7 +20593,7 @@ const sv = (e) => {
20584
20593
  snapEnabled: u = !0,
20585
20594
  snapThreshold: m = 8
20586
20595
  }) => {
20587
- const [g, v] = De(null), [p, L] = De(null), [x, C] = De("end"), [I, D] = De(null), [$, U] = De(null), [ue, se] = De(null), [ye, de] = De(!1), [X, me] = De(null), [j, K] = De(null), [O, R] = De(!1), [te, J] = De(null), [T, Y] = De("#000000"), [le, q] = De(2), ne = qt(null), A = e / 100, _ = Jn(() => {
20596
+ const [g, v] = De(null), [p, _] = De(null), [x, C] = De("end"), [I, D] = De(null), [$, U] = De(null), [ue, se] = De(null), [ye, de] = De(!1), [X, me] = De(null), [j, K] = De(null), [O, R] = De(!1), [te, J] = De(null), [T, Y] = De("#000000"), [le, q] = De(2), ne = qt(null), A = e / 100, L = Jn(() => {
20588
20597
  const ge = Math.max(200, Math.min(2e3, Math.max(t, n))), Oe = 320 / Math.max(A, 0.01);
20589
20598
  return Math.max(ge, Oe);
20590
20599
  }, [t, n, A]), b = Jn(
@@ -20619,10 +20628,10 @@ const sv = (e) => {
20619
20628
  if (!ne.current) return { x: 0, y: 0 };
20620
20629
  const Oe = ne.current.getBoundingClientRect();
20621
20630
  return {
20622
- x: (ge - Oe.left) / A - _,
20623
- y: (We - Oe.top) / A - _
20631
+ x: (ge - Oe.left) / A - L,
20632
+ y: (We - Oe.top) / A - L
20624
20633
  };
20625
- }, [A, _]), z = St((ge) => {
20634
+ }, [A, L]), z = St((ge) => {
20626
20635
  if (!u) return ge;
20627
20636
  const We = m / A;
20628
20637
  let Oe = null, Me = We;
@@ -20699,7 +20708,7 @@ const sv = (e) => {
20699
20708
  }
20700
20709
  return Oe;
20701
20710
  }, [r, m, A]), V = St(() => {
20702
- v(null), L(null), C("end"), D(null), U(null), se(null), de(!1), me(null), K(null), R(!1);
20711
+ v(null), _(null), C("end"), D(null), U(null), se(null), de(!1), me(null), K(null), R(!1);
20703
20712
  }, []), F = St((ge, We = !1) => {
20704
20713
  v(ge), p && o && o(p, ge, We);
20705
20714
  }, [p, o]);
@@ -20725,12 +20734,12 @@ const sv = (e) => {
20725
20734
  if (!g) {
20726
20735
  const gt = H(We);
20727
20736
  if (gt) {
20728
- L(gt.element.id), C(gt.mode), D(Oh(gt.path)), v(gt.path), U(null), se(null), de(!1), me(null), R(!1), J(gt.path.fillColor), Y(gt.path.strokeColor), q(gt.path.strokeWidth), l == null || l(gt.element.id);
20737
+ _(gt.element.id), C(gt.mode), D(Oh(gt.path)), v(gt.path), U(null), se(null), de(!1), me(null), R(!1), J(gt.path.fillColor), Y(gt.path.strokeColor), q(gt.path.strokeWidth), l == null || l(gt.element.id);
20729
20738
  return;
20730
20739
  }
20731
20740
  const st = ce(We);
20732
20741
  if (st) {
20733
- L(st.element.id), C("end"), D(Oh(st.path)), v(st.path), U(st.anchorId), se(st.handleType), de(!0), me(We), R(!1), J(st.path.fillColor), Y(st.path.strokeColor), q(st.path.strokeWidth), l == null || l(st.element.id), ge.target.setPointerCapture(ge.pointerId);
20742
+ _(st.element.id), C("end"), D(Oh(st.path)), v(st.path), U(st.anchorId), se(st.handleType), de(!0), me(We), R(!1), J(st.path.fillColor), Y(st.path.strokeColor), q(st.path.strokeWidth), l == null || l(st.element.id), ge.target.setPointerCapture(ge.pointerId);
20734
20743
  return;
20735
20744
  }
20736
20745
  }
@@ -20862,10 +20871,10 @@ const sv = (e) => {
20862
20871
  className: "absolute z-[100] outline-none",
20863
20872
  style: {
20864
20873
  cursor: Ue,
20865
- left: -_,
20866
- top: -_,
20867
- width: t + _ * 2,
20868
- height: n + _ * 2
20874
+ left: -L,
20875
+ top: -L,
20876
+ width: t + L * 2,
20877
+ height: n + L * 2
20869
20878
  },
20870
20879
  onPointerDown: P,
20871
20880
  onPointerMove: be,
@@ -20873,7 +20882,7 @@ const sv = (e) => {
20873
20882
  tabIndex: 0,
20874
20883
  "data-no-export": "true"
20875
20884
  },
20876
- /* @__PURE__ */ a.createElement("svg", { className: "w-full h-full overflow-visible pointer-events-none" }, /* @__PURE__ */ a.createElement("g", { transform: `translate(${_}, ${_})` }, g && /* @__PURE__ */ a.createElement(
20885
+ /* @__PURE__ */ a.createElement("svg", { className: "w-full h-full overflow-visible pointer-events-none" }, /* @__PURE__ */ a.createElement("g", { transform: `translate(${L}, ${L})` }, g && /* @__PURE__ */ a.createElement(
20877
20886
  "path",
20878
20887
  {
20879
20888
  d: tt,
@@ -20979,8 +20988,8 @@ const sv = (e) => {
20979
20988
  {
20980
20989
  className: "pen-menu absolute bg-white rounded-xl shadow-xl border border-slate-100 p-2 flex items-center gap-3 pointer-events-auto z-[110]",
20981
20990
  style: {
20982
- left: je.left + _,
20983
- top: je.top + _,
20991
+ left: je.left + L,
20992
+ top: je.top + L,
20984
20993
  transform: "translate(-50%, -100%)"
20985
20994
  },
20986
20995
  onPointerDown: (ge) => ge.stopPropagation()
@@ -21046,7 +21055,7 @@ const sv = (e) => {
21046
21055
  "div",
21047
21056
  {
21048
21057
  className: "absolute left-1/2 -translate-x-1/2 bg-slate-900/80 text-white px-4 py-2 rounded-full text-xs font-medium backdrop-blur-sm pointer-events-none select-none shadow-lg whitespace-nowrap flex items-center gap-2",
21049
- style: { bottom: _ + 32 }
21058
+ style: { bottom: L + 32 }
21050
21059
  },
21051
21060
  g != null && g.closed ? /* @__PURE__ */ a.createElement(Qb, { size: 12, className: "text-slate-300" }) : /* @__PURE__ */ a.createElement(Td, { size: 12, className: "text-slate-300" }),
21052
21061
  /* @__PURE__ */ a.createElement("span", null, g != null && g.closed ? "Path closed. Drag points to edit or press Done." : g ? "Click to add point. Drag for curve." : "Click to start drawing"),
@@ -21173,8 +21182,8 @@ class cv {
21173
21182
  if (s && (r.beginPath(), r.rect(s.left * i, s.top * i, s.width * i, s.height * i), r.clip()), t.type === "shape") {
21174
21183
  const v = t.content || "rectangle", p = Bh[v];
21175
21184
  if (p) {
21176
- const L = p(m, g);
21177
- r.fill(L);
21185
+ const _ = p(m, g);
21186
+ r.fill(_);
21178
21187
  } else
21179
21188
  r.fillRect(0, 0, m, g);
21180
21189
  } else if (t.type === "image" && t.clipShape) {
@@ -21228,8 +21237,8 @@ class cv {
21228
21237
  const i = this.getClipRect(r);
21229
21238
  if (i && (i.width <= 0 || i.height <= 0))
21230
21239
  return !1;
21231
- const s = i ? i.originX : r.width / 2, o = i ? i.originY : r.height / 2, l = r.x + s, d = r.y + o, u = -(r.rotation || 0) * Math.PI / 180, m = t - l, g = n - d, v = m * Math.cos(u) - g * Math.sin(u) + s, p = m * Math.sin(u) + g * Math.cos(u) + o, L = i ? i.left : 0, x = i ? i.top : 0, C = i ? i.left + i.width : r.width, I = i ? i.top + i.height : r.height;
21232
- return v >= L && v <= C && p >= x && p <= I;
21240
+ const s = i ? i.originX : r.width / 2, o = i ? i.originY : r.height / 2, l = r.x + s, d = r.y + o, u = -(r.rotation || 0) * Math.PI / 180, m = t - l, g = n - d, v = m * Math.cos(u) - g * Math.sin(u) + s, p = m * Math.sin(u) + g * Math.cos(u) + o, _ = i ? i.left : 0, x = i ? i.top : 0, C = i ? i.left + i.width : r.width, I = i ? i.top + i.height : r.height;
21241
+ return v >= _ && v <= C && p >= x && p <= I;
21233
21242
  }
21234
21243
  // Clean up allocated colors for removed elements
21235
21244
  syncElements(t) {
@@ -21253,7 +21262,7 @@ function dv(e, t = {}) {
21253
21262
  r.current && r.current.invalidate();
21254
21263
  }, []), u = St((v) => {
21255
21264
  const p = s();
21256
- p.setElements(v), p.syncElements(new Set(v.map((L) => L.id)));
21265
+ p.setElements(v), p.syncElements(new Set(v.map((_) => _.id)));
21257
21266
  }, [s]), m = St((v) => {
21258
21267
  i.current = v, r.current && r.current.resize(v);
21259
21268
  }, []), g = St(() => {
@@ -21443,8 +21452,8 @@ function fv(e = {}) {
21443
21452
  r.current.scheduleUpdate(v, p);
21444
21453
  }, []), s = St((v) => {
21445
21454
  r.current.scheduleBatchUpdate(v);
21446
- }, []), o = St(() => r.current.flush(), []), l = St((v, p, L) => {
21447
- r.current.markElementDirty(v, p, L);
21455
+ }, []), o = St(() => r.current.flush(), []), l = St((v, p, _) => {
21456
+ r.current.markElementDirty(v, p, _);
21448
21457
  }, []), d = St(() => r.current.getDirtyRects(), []), u = St(() => {
21449
21458
  r.current.clearDirty();
21450
21459
  }, []), m = St(() => r.current.hasPendingUpdates(), []), g = St((v) => r.current.onFlush(v), []);
@@ -21536,14 +21545,14 @@ class pv {
21536
21545
  m.setAttribute("width", "100%"), m.setAttribute("height", "100%"), m.setAttribute("x", String(r)), m.setAttribute("y", String(r));
21537
21546
  const g = document.createElement("div");
21538
21547
  g.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), g.style.width = `${i.width}px`, g.style.height = `${i.height}px`, g.appendChild(s), m.appendChild(g), u.appendChild(m);
21539
- const v = new XMLSerializer().serializeToString(u), p = new Blob([v], { type: "image/svg+xml;charset=utf-8" }), L = URL.createObjectURL(p);
21548
+ const v = new XMLSerializer().serializeToString(u), p = new Blob([v], { type: "image/svg+xml;charset=utf-8" }), _ = URL.createObjectURL(p);
21540
21549
  return new Promise((x, C) => {
21541
21550
  const I = new Image();
21542
21551
  I.onload = () => {
21543
- n.drawImage(I, 0, 0), URL.revokeObjectURL(L), x();
21552
+ n.drawImage(I, 0, 0), URL.revokeObjectURL(_), x();
21544
21553
  }, I.onerror = () => {
21545
- URL.revokeObjectURL(L), n.fillStyle = "#ddd", n.fillRect(r, r, i.width, i.height), x();
21546
- }, I.src = L;
21554
+ URL.revokeObjectURL(_), n.fillStyle = "#ddd", n.fillRect(r, r, i.width, i.height), x();
21555
+ }, I.src = _;
21547
21556
  });
21548
21557
  }
21549
21558
  /**
@@ -21617,10 +21626,10 @@ function gv(e = {}) {
21617
21626
  activeIds: /* @__PURE__ */ new Set(),
21618
21627
  isCaching: !1
21619
21628
  }), s = qt(null), o = qt(!1), l = qt(/* @__PURE__ */ new Map()), d = St(
21620
- async (L, x) => {
21629
+ async (_, x) => {
21621
21630
  if (!t) return;
21622
- i.current.activeIds = new Set(L), i.current.isCaching = !1, s.current = { x: x.clientX, y: x.clientY }, o.current = !1, l.current.clear();
21623
- const C = L.map(async (I) => {
21631
+ i.current.activeIds = new Set(_), i.current.isCaching = !1, s.current = { x: x.clientX, y: x.clientY }, o.current = !1, l.current.clear();
21632
+ const C = _.map(async (I) => {
21624
21633
  const D = document.querySelector(`[data-element-id="${I}"]`);
21625
21634
  if (!D || !mv(D)) return;
21626
21635
  await yi.createCache(I, D, { padding: r });
@@ -21634,7 +21643,7 @@ function gv(e = {}) {
21634
21643
  },
21635
21644
  [t, r]
21636
21645
  ), u = St(
21637
- (L, x, C, I) => {
21646
+ (_, x, C, I) => {
21638
21647
  if (!t || !s.current) return;
21639
21648
  const { activeIds: D } = i.current;
21640
21649
  if (D.size === 0) return;
@@ -21652,13 +21661,13 @@ function gv(e = {}) {
21652
21661
  [t, n]
21653
21662
  ), m = St(() => {
21654
21663
  if (!t) return;
21655
- const { activeIds: L } = i.current;
21656
- for (const x of L)
21664
+ const { activeIds: _ } = i.current;
21665
+ for (const x of _)
21657
21666
  yi.deactivateCache(x);
21658
21667
  i.current.activeIds.clear(), i.current.isCaching = !1, s.current = null, o.current = !1, l.current.clear();
21659
21668
  }, [t]), g = St(
21660
- (L) => {
21661
- t && yi.invalidateCache(L);
21669
+ (_) => {
21670
+ t && yi.invalidateCache(_);
21662
21671
  },
21663
21672
  [t]
21664
21673
  ), v = St(() => {
@@ -21682,11 +21691,11 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21682
21691
  if (n.length === 0) return null;
21683
21692
  let r = 1 / 0, i = 1 / 0, s = -1 / 0, o = -1 / 0;
21684
21693
  return n.forEach((l) => {
21685
- const d = l.rotation * Math.PI / 180, u = Math.cos(d), m = Math.sin(d), g = l.clip || { top: 0, right: 0, bottom: 0, left: 0 }, v = l.x + g.left, p = l.y + g.top, L = l.width - g.left - g.right, x = l.height - g.top - g.bottom, C = v + L / 2, I = p + x / 2;
21694
+ const d = l.rotation * Math.PI / 180, u = Math.cos(d), m = Math.sin(d), g = l.clip || { top: 0, right: 0, bottom: 0, left: 0 }, v = l.x + g.left, p = l.y + g.top, _ = l.width - g.left - g.right, x = l.height - g.top - g.bottom, C = v + _ / 2, I = p + x / 2;
21686
21695
  [
21687
21696
  { x: v, y: p },
21688
- { x: v + L, y: p },
21689
- { x: v + L, y: p + x },
21697
+ { x: v + _, y: p },
21698
+ { x: v + _, y: p + x },
21690
21699
  { x: v, y: p + x }
21691
21700
  ].forEach(($) => {
21692
21701
  const U = $.x - C, ue = $.y - I, se = U * u - ue * m + C, ye = U * m + ue * u + I;
@@ -21699,7 +21708,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21699
21708
  }, bv = (e, t, n, r, i, s, o, l, d, u) => {
21700
21709
  if (o <= 0 || l <= 0)
21701
21710
  return e;
21702
- const m = e.x * o, g = e.y * l, v = e.width * o, p = e.height * l, L = m + v, x = g + p, C = m + v / 2, I = g + p / 2, D = Math.max(1, v), $ = Math.max(1, p), U = i / D, ue = s / $, se = n / U, ye = r / ue;
21711
+ const m = e.x * o, g = e.y * l, v = e.width * o, p = e.height * l, _ = m + v, x = g + p, C = m + v / 2, I = g + p / 2, D = Math.max(1, v), $ = Math.max(1, p), U = i / D, ue = s / $, se = n / U, ye = r / ue;
21703
21712
  let de = 0, X = 0;
21704
21713
  t.includes("l") && (de = -se), t.includes("r") && (de = se), t.includes("t") && (X = -ye), t.includes("b") && (X = ye), d && ((t.includes("l") || t.includes("r")) && (de *= 2), (t.includes("t") || t.includes("b")) && (X *= 2));
21705
21714
  let me = v + de, j = p + X;
@@ -21710,7 +21719,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21710
21719
  const K = Math.min(o, Ol), O = Math.min(l, Ol);
21711
21720
  me = is(me, K, o), j = is(j, O, l);
21712
21721
  let R, te;
21713
- d || !t.includes("l") && !t.includes("r") ? (R = C - me / 2, te = C + me / 2) : t.includes("l") ? (te = L, R = te - me) : (R = m, te = R + me);
21722
+ d || !t.includes("l") && !t.includes("r") ? (R = C - me / 2, te = C + me / 2) : t.includes("l") ? (te = _, R = te - me) : (R = m, te = R + me);
21714
21723
  let J, T;
21715
21724
  return d || !t.includes("t") && !t.includes("b") ? (J = I - j / 2, T = I + j / 2) : t.includes("t") ? (T = x, J = T - j) : (J = g, T = J + j), R < 0 && (te -= R, R = 0), te > o && (R -= te - o, te = o), J < 0 && (T -= J, J = 0), T > l && (J -= T - l, T = l), R = is(R, 0, Math.max(0, o - me)), J = is(J, 0, Math.max(0, l - j)), {
21716
21725
  x: R / o,
@@ -21721,12 +21730,12 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21721
21730
  }, yv = (e, t, n, r, i, s, o, l, d, u) => {
21722
21731
  if (o <= 0 || l <= 0)
21723
21732
  return e;
21724
- const m = e.width * o, g = e.height * l, v = i / Math.max(1, m), p = s / Math.max(1, g), L = o * v, x = l * p, C = -(e.x * o) * v, I = -(e.y * l) * p, D = C + L, $ = I + x, U = C + L / 2, ue = I + x / 2;
21733
+ const m = e.width * o, g = e.height * l, v = i / Math.max(1, m), p = s / Math.max(1, g), _ = o * v, x = l * p, C = -(e.x * o) * v, I = -(e.y * l) * p, D = C + _, $ = I + x, U = C + _ / 2, ue = I + x / 2;
21725
21734
  let se = 0, ye = 0;
21726
21735
  t.includes("l") && (se = -n), t.includes("r") && (se = n), t.includes("t") && (ye = -r), t.includes("b") && (ye = r), d && ((t.includes("l") || t.includes("r")) && (se *= 2), (t.includes("t") || t.includes("b")) && (ye *= 2));
21727
- let de = L + se, X = x + ye;
21736
+ let de = _ + se, X = x + ye;
21728
21737
  if (u) {
21729
- const w = x > 0 ? L / x : 1, S = t === "l" || t === "r", z = t === "t" || t === "b";
21738
+ const w = x > 0 ? _ / x : 1, S = t === "l" || t === "r", z = t === "t" || t === "b";
21730
21739
  S && !z ? X = de / w : z && !S ? de = X * w : Math.abs(se) >= Math.abs(ye) ? X = de / w : de = X * w;
21731
21740
  }
21732
21741
  const me = Math.min(o, Ol), j = Math.min(l, Ol), K = i, O = s, R = i * o / Math.max(1, me), te = s * l / Math.max(1, j);
@@ -21735,20 +21744,20 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21735
21744
  d || !t.includes("l") && !t.includes("r") ? (J = U - de / 2, T = U + de / 2) : t.includes("l") ? (T = D, J = T - de) : (J = C, T = J + de);
21736
21745
  let Y, le;
21737
21746
  d || !t.includes("t") && !t.includes("b") ? (Y = ue - X / 2, le = ue + X / 2) : t.includes("t") ? (le = $, Y = le - X) : (Y = I, le = Y + X);
21738
- const q = de / o, ne = X / l, A = i / de, _ = s / X, b = -J / (o * q), k = -Y / (l * ne);
21747
+ const q = de / o, ne = X / l, A = i / de, L = s / X, b = -J / (o * q), k = -Y / (l * ne);
21739
21748
  return Po({
21740
21749
  x: b,
21741
21750
  y: k,
21742
21751
  width: A,
21743
- height: _
21752
+ height: L
21744
21753
  });
21745
21754
  }, vv = (e, t, n, r, i, s, o, l) => {
21746
21755
  if (s <= 0 || o <= 0)
21747
21756
  return e;
21748
- const d = e.width * s, u = e.height * o, m = r / Math.max(1, d), g = i / Math.max(1, u), v = -t / m, p = -n / g, L = e.x + v / s, x = e.y + p / o, C = -0.9, I = 1 - 0.1 * e.width, D = -0.9, $ = 1 - 0.1 * e.height;
21757
+ const d = e.width * s, u = e.height * o, m = r / Math.max(1, d), g = i / Math.max(1, u), v = -t / m, p = -n / g, _ = e.x + v / s, x = e.y + p / o, C = -0.9, I = 1 - 0.1 * e.width, D = -0.9, $ = 1 - 0.1 * e.height;
21749
21758
  return {
21750
21759
  ...e,
21751
- x: is(L, C, I),
21760
+ x: is(_, C, I),
21752
21761
  y: is(x, D, $)
21753
21762
  };
21754
21763
  }, xv = ({
@@ -21766,7 +21775,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21766
21775
  onDuplicate: g,
21767
21776
  onDelete: v,
21768
21777
  onBringToFront: p,
21769
- onSendToBack: L,
21778
+ onSendToBack: _,
21770
21779
  onResetZoom: x,
21771
21780
  onSetActivePage: C,
21772
21781
  onAddPage: I,
@@ -21801,7 +21810,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21801
21810
  onDragStart: T,
21802
21811
  onDragMove: Y,
21803
21812
  onDragEnd: le
21804
- } = gv({ padding: 30 }), q = qt(e), ne = qt(t), A = qt(i), _ = qt(null), b = qt(null), k = qt(() => {
21813
+ } = gv({ padding: 30 }), q = qt(e), ne = qt(t), A = qt(i), L = qt(null), b = qt(null), k = qt(() => {
21805
21814
  });
21806
21815
  So(() => {
21807
21816
  q.current = e, ne.current = t, A.current = i;
@@ -21816,7 +21825,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
21816
21825
  offsetY: 0
21817
21826
  });
21818
21827
  }, [j, K, n, J]), Jt(() => () => {
21819
- _.current !== null && (cancelAnimationFrame(_.current), _.current = null), Je.current !== null && (cancelAnimationFrame(Je.current), Je.current = null);
21828
+ L.current !== null && (cancelAnimationFrame(L.current), L.current = null), Je.current !== null && (cancelAnimationFrame(Je.current), Je.current = null);
21820
21829
  }, []);
21821
21830
  const [w, S] = De(!1), [z, H] = De(!1), [ce, V] = De(!1), [F, Q] = De(null), [oe, P] = De({ x: 0, y: 0 }), ae = qt(oe), [Ce, be] = De(null), [Ne, qe] = De({}), Re = qt(Ne), Ye = qt(null), Ue = qt(null), tt = qt(null), je = qt(!1), [ge, We] = De(null), [Oe, Me] = De(0.15);
21822
21831
  Jt(() => {
@@ -22786,7 +22795,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
22786
22795
  k.current = ci;
22787
22796
  });
22788
22797
  const Ir = () => {
22789
- _.current !== null && (cancelAnimationFrame(_.current), _.current = null);
22798
+ L.current !== null && (cancelAnimationFrame(L.current), L.current = null);
22790
22799
  const W = b.current;
22791
22800
  W && (b.current = null, k.current(W));
22792
22801
  }, cs = (W) => {
@@ -22797,8 +22806,8 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
22797
22806
  pointerType: W.pointerType,
22798
22807
  shiftKey: W.shiftKey,
22799
22808
  altKey: W.altKey
22800
- }, _.current === null && (_.current = requestAnimationFrame(() => {
22801
- _.current = null;
22809
+ }, L.current === null && (L.current = requestAnimationFrame(() => {
22810
+ L.current = null;
22802
22811
  const ve = b.current;
22803
22812
  ve && (b.current = null, k.current(ve));
22804
22813
  }));
@@ -22872,7 +22881,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
22872
22881
  onClose: () => rn(null),
22873
22882
  customItems: m,
22874
22883
  context: ds || void 0,
22875
- actions: { onCopy: () => we.copy(), onCopyStyle: () => we.copyStyle(), onPaste: () => we.paste(), onDuplicate: () => pt.targetId && g(pt.targetId), onDelete: () => pt.targetId && v(pt.targetId), onBringToFront: () => pt.targetId && p(pt.targetId), onBringForward: () => pt.targetId && we.reorderElement(pt.targetId, "forward"), onSendToBack: () => pt.targetId && L(pt.targetId), onSendBackward: () => pt.targetId && we.reorderElement(pt.targetId, "backward"), onLock: () => pt.targetId && u(pt.targetId, { locked: !(Qn != null && Qn.locked) }), isLocked: Qn == null ? void 0 : Qn.locked, onResetZoom: x, onFitToScreen: en, onFitToPage: (Qn == null ? void 0 : Qn.type) === "image" && pt.targetId ? () => Va(pt.targetId) : void 0, onAlign: (W) => we.alignSelection(W), onGroup: () => we.groupSelection(), onUngroup: () => we.ungroupSelection(), canGroup: us, canUngroup: Ci, onFlipX: () => pt.targetId && u(pt.targetId, { flipX: !(Qn != null && Qn.flipX) }), onFlipY: () => pt.targetId && u(pt.targetId, { flipY: !(Qn != null && Qn.flipY) }) }
22884
+ actions: { onCopy: () => we.copy(), onCopyStyle: () => we.copyStyle(), onPaste: () => we.paste(), onDuplicate: () => pt.targetId && g(pt.targetId), onDelete: () => pt.targetId && v(pt.targetId), onBringToFront: () => pt.targetId && p(pt.targetId), onBringForward: () => pt.targetId && we.reorderElement(pt.targetId, "forward"), onSendToBack: () => pt.targetId && _(pt.targetId), onSendBackward: () => pt.targetId && we.reorderElement(pt.targetId, "backward"), onLock: () => pt.targetId && u(pt.targetId, { locked: !(Qn != null && Qn.locked) }), isLocked: Qn == null ? void 0 : Qn.locked, onResetZoom: x, onFitToScreen: en, onFitToPage: (Qn == null ? void 0 : Qn.type) === "image" && pt.targetId ? () => Va(pt.targetId) : void 0, onAlign: (W) => we.alignSelection(W), onGroup: () => we.groupSelection(), onUngroup: () => we.ungroupSelection(), canGroup: us, canUngroup: Ci, onFlipX: () => pt.targetId && u(pt.targetId, { flipX: !(Qn != null && Qn.flipX) }), onFlipY: () => pt.targetId && u(pt.targetId, { flipY: !(Qn != null && Qn.flipY) }) }
22876
22885
  }
22877
22886
  ),
22878
22887
  ye && /* @__PURE__ */ a.createElement("div", { className: "fixed bottom-12 right-4 z-[100] bg-white/80 backdrop-blur-[2px] px-2 py-1 rounded text-[10px] font-bold text-slate-400 shadow-sm pointer-events-none select-none" }, "Powered by Fraczled SDK"),
@@ -23074,7 +23083,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
23074
23083
  },
23075
23084
  /* @__PURE__ */ a.createElement("div", { className: "flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-white sticky top-0 z-10" }, /* @__PURE__ */ a.createElement("h3", { className: "font-bold text-slate-800 text-sm" }, "Filters"), /* @__PURE__ */ a.createElement("button", { onClick: r, className: "text-slate-400 hover:bg-gray-100 rounded-full p-1 transition-colors" }, /* @__PURE__ */ a.createElement(da, { size: 18 }))),
23076
23085
  /* @__PURE__ */ a.createElement("div", { className: "flex-1 overflow-y-auto p-4 custom-scrollbar" }, /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-3 gap-3" }, Ev.map((d) => {
23077
- const u = o(d.adjustments), { hue: m, saturation: g, brightness: v, contrast: p } = d.adjustments, L = `hue-rotate(${m}deg) saturate(${100 + g}%) brightness(${100 + v}%) contrast(${100 + p}%)`;
23086
+ const u = o(d.adjustments), { hue: m, saturation: g, brightness: v, contrast: p } = d.adjustments, _ = `hue-rotate(${m}deg) saturate(${100 + g}%) brightness(${100 + v}%) contrast(${100 + p}%)`;
23078
23087
  return /* @__PURE__ */ a.createElement(
23079
23088
  "button",
23080
23089
  {
@@ -23091,7 +23100,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
23091
23100
  className: "w-full h-full bg-cover bg-center",
23092
23101
  style: {
23093
23102
  backgroundImage: "url(https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=150&q=80)",
23094
- filter: L
23103
+ filter: _
23095
23104
  }
23096
23105
  }
23097
23106
  ), u && /* @__PURE__ */ a.createElement("div", { className: "absolute inset-0 flex items-center justify-center bg-indigo-600/10" }, /* @__PURE__ */ a.createElement("div", { className: "bg-white rounded-full p-0.5 shadow-sm" }, /* @__PURE__ */ a.createElement(Bi, { size: 12, className: "text-indigo-600" })))),
@@ -23245,7 +23254,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
23245
23254
  customToolbarItems: p
23246
23255
  }) => {
23247
23256
  var nr, dn, Pt, Hn, _t, rr, yn, Mn, Rn, vn, An, wn;
23248
- const [L, x] = De(!1), [C, I] = De(!1), [D, $] = De(!1), [U, ue] = De(!1), [se, ye] = De(!1), [de, X] = De(!1), [me, j] = De(null), [K, O] = De(null), [R, te] = De(null), [J, T] = De(null), [Y, le] = De(null), [q, ne] = De(null), A = qt(null), _ = qt(null), b = qt(null), k = qt(null), w = qt(null), S = qt(null), z = qt(null), H = qt(null), ce = [6, 8, 10, 12, 14, 16, 18, 21, 24, 28, 32, 36, 42, 48, 56, 64, 72, 80, 96, 128];
23257
+ const [_, x] = De(!1), [C, I] = De(!1), [D, $] = De(!1), [U, ue] = De(!1), [se, ye] = De(!1), [de, X] = De(!1), [me, j] = De(null), [K, O] = De(null), [R, te] = De(null), [J, T] = De(null), [Y, le] = De(null), [q, ne] = De(null), A = qt(null), L = qt(null), b = qt(null), k = qt(null), w = qt(null), S = qt(null), z = qt(null), H = qt(null), ce = [6, 8, 10, 12, 14, 16, 18, 21, 24, 28, 32, 36, 42, 48, 56, 64, 72, 80, 96, 128];
23249
23258
  if (Jt(() => {
23250
23259
  x(!1), I(!1), $(!1), ue(!1), ye(!1), X(!1);
23251
23260
  }, [e]), Jt(() => {
@@ -23260,7 +23269,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
23260
23269
  if (!se) return;
23261
23270
  const ot = (Ot) => {
23262
23271
  var It;
23263
- const Xe = Ot.target, bt = _.current && _.current.contains(Xe), kt = (It = Xe.closest) == null ? void 0 : It.call(Xe, "[data-flip-menu]");
23272
+ const Xe = Ot.target, bt = L.current && L.current.contains(Xe), kt = (It = Xe.closest) == null ? void 0 : It.call(Xe, "[data-flip-menu]");
23264
23273
  !bt && !kt && ye(!1);
23265
23274
  };
23266
23275
  return document.addEventListener("mousedown", ot), () => document.removeEventListener("mousedown", ot);
@@ -23551,13 +23560,13 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
23551
23560
  {
23552
23561
  ref: b,
23553
23562
  onClick: () => {
23554
- if (!L && b.current) {
23563
+ if (!_ && b.current) {
23555
23564
  const ot = b.current.getBoundingClientRect();
23556
23565
  te({ top: ot.bottom + 8, left: ot.left - 100 });
23557
23566
  }
23558
- x(!L);
23567
+ x(!_);
23559
23568
  },
23560
- className: `p-1.5 hover:bg-gray-100 rounded transition-colors ${L ? "bg-indigo-50 text-indigo-600" : "text-slate-500"}`,
23569
+ className: `p-1.5 hover:bg-gray-100 rounded transition-colors ${_ ? "bg-indigo-50 text-indigo-600" : "text-slate-500"}`,
23561
23570
  title: "Spacing"
23562
23571
  },
23563
23572
  /* @__PURE__ */ a.createElement(t4, { size: 16 })
@@ -23569,7 +23578,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
23569
23578
  title: "Uppercase"
23570
23579
  },
23571
23580
  /* @__PURE__ */ a.createElement(b5, { size: 16 })
23572
- ), L && R && /* @__PURE__ */ a.createElement(
23581
+ ), _ && R && /* @__PURE__ */ a.createElement(
23573
23582
  "div",
23574
23583
  {
23575
23584
  className: "fixed w-64 bg-white rounded-xl shadow-xl border border-gray-200 p-4 z-[9999] animate-in fade-in zoom-in-95 duration-100",
@@ -23825,10 +23834,10 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
23825
23834
  /* @__PURE__ */ a.createElement("div", { className: "flex items-center gap-2 text-slate-600 flex-shrink-0" }, /* @__PURE__ */ a.createElement("div", { className: "relative" }, /* @__PURE__ */ a.createElement(
23826
23835
  "button",
23827
23836
  {
23828
- ref: _,
23837
+ ref: L,
23829
23838
  onClick: () => {
23830
- if (!se && _.current) {
23831
- const ot = _.current.getBoundingClientRect();
23839
+ if (!se && L.current) {
23840
+ const ot = L.current.getBoundingClientRect();
23832
23841
  O({ top: ot.bottom + 8, left: ot.left });
23833
23842
  }
23834
23843
  ye(!se);
@@ -24041,7 +24050,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
24041
24050
  canCustomizeNewDesignModal: s,
24042
24051
  canCustomizeTemplateSizes: o
24043
24052
  }) => {
24044
- const l = To(), [d, u] = De("templates"), [m, g] = De(800), [v, p] = De(600), [L, x] = De("px"), [C, I] = De(72), [D, $] = De(!1), [U, ue] = De(!1), [se, ye] = De(""), [de, X] = De("all"), [me, j] = De([]), [K, O] = De(!1), R = Jn(() => vf(r), [r]);
24053
+ const l = To(), [d, u] = De("templates"), [m, g] = De(800), [v, p] = De(600), [_, x] = De("px"), [C, I] = De(72), [D, $] = De(!1), [U, ue] = De(!1), [se, ye] = De(""), [de, X] = De("all"), [me, j] = De([]), [K, O] = De(!1), R = Jn(() => vf(r), [r]);
24045
24054
  Jt(() => {
24046
24055
  e && (d === "templates" || !!(s && (i != null && i.render))) && (Wd(r), O(!0), yf().then(j).finally(() => O(!1)));
24047
24056
  }, [e, d, r, i, s]), Jt(() => {
@@ -24077,11 +24086,11 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
24077
24086
  }, le = (w) => {
24078
24087
  Y(w);
24079
24088
  }, q = () => {
24080
- const w = cr(m, L), S = cr(v, L);
24089
+ const w = cr(m, _), S = cr(v, _);
24081
24090
  we.updateSettings({
24082
24091
  width: w,
24083
24092
  height: S,
24084
- unit: L,
24093
+ unit: _,
24085
24094
  dpi: C,
24086
24095
  bleed: 0,
24087
24096
  showBleed: !1,
@@ -24093,7 +24102,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
24093
24102
  z.activePageId && we.updatePageDimensions(z.activePageId, {
24094
24103
  width: w,
24095
24104
  height: S,
24096
- unit: L
24105
+ unit: _
24097
24106
  }), D && n(), t();
24098
24107
  }, ne = (w, S, z) => !o || !w || w.length === 0 ? S : w.map((H, ce) => ({
24099
24108
  id: H.id,
@@ -24115,7 +24124,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
24115
24124
  );
24116
24125
  },
24117
24126
  [i, o]
24118
- ), _ = Jn(
24127
+ ), L = Jn(
24119
24128
  () => {
24120
24129
  var w;
24121
24130
  return ne(
@@ -24125,7 +24134,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
24125
24134
  );
24126
24135
  },
24127
24136
  [i, o]
24128
- ), b = d === "social" ? A : _, k = {
24137
+ ), b = d === "social" ? A : L, k = {
24129
24138
  store: we,
24130
24139
  getState: () => we.getSnapshot(),
24131
24140
  onClose: t,
@@ -24263,7 +24272,7 @@ const Ol = 10, is = (e, t, n) => Math.min(n, Math.max(t, e)), gl = (e, t) => {
24263
24272
  ))), /* @__PURE__ */ a.createElement("div", { className: "grid grid-cols-2 gap-3" }, /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("label", { className: "block text-xs font-bold text-slate-500 uppercase mb-2" }, "Unit"), /* @__PURE__ */ a.createElement(
24264
24273
  "select",
24265
24274
  {
24266
- value: L,
24275
+ value: _,
24267
24276
  onChange: (w) => x(w.target.value),
24268
24277
  className: `w-full px-3 ${l ? "py-3 text-base" : "py-2"} border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent bg-white`
24269
24278
  },
@@ -24487,12 +24496,12 @@ function Tv(e = {}) {
24487
24496
  );
24488
24497
  kf();
24489
24498
  const [i, s] = De(null), [o, l] = De(!1), d = St(
24490
- async (p, L, x, C) => {
24499
+ async (p, _, x, C) => {
24491
24500
  l(!0), s({ stage: "preparing", percent: 0 });
24492
24501
  try {
24493
24502
  return await r.current.exportWithFallback(
24494
24503
  p,
24495
- L,
24504
+ _,
24496
24505
  x,
24497
24506
  C,
24498
24507
  s
@@ -24505,13 +24514,13 @@ function Tv(e = {}) {
24505
24514
  ), u = St(() => {
24506
24515
  r.current.abort(), l(!1), s(null);
24507
24516
  }, []), m = St(
24508
- (p, L, x) => r.current.shouldUseTiling(p, L, x),
24517
+ (p, _, x) => r.current.shouldUseTiling(p, _, x),
24509
24518
  []
24510
24519
  ), g = St(
24511
- (p, L, x) => r.current.getSafePixelRatio(p, L, x),
24520
+ (p, _, x) => r.current.getSafePixelRatio(p, _, x),
24512
24521
  []
24513
24522
  ), v = St(
24514
- (p, L, x) => r.current.estimateMemory(p, L, x),
24523
+ (p, _, x) => r.current.estimateMemory(p, _, x),
24515
24524
  []
24516
24525
  );
24517
24526
  return {
@@ -24602,13 +24611,13 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
24602
24611
  theme: g,
24603
24612
  ui: v,
24604
24613
  sdkVersion: p,
24605
- getLicenseStatus: L,
24614
+ getLicenseStatus: _,
24606
24615
  subscribeLicense: x
24607
24616
  }) => {
24608
24617
  const C = vd(
24609
24618
  (Se) => we.subscribe(Se),
24610
24619
  () => we.getSnapshot()
24611
- ), I = L || (() => we.getLicenseStatus()), D = x || ((Se) => we.subscribeLicense(Se)), [$, U] = De(() => I());
24620
+ ), I = _ || (() => we.getLicenseStatus()), D = x || ((Se) => we.subscribeLicense(Se)), [$, U] = De(() => I());
24612
24621
  Jt(() => (U(I()), D(() => {
24613
24622
  U(I());
24614
24623
  })), [I, D]);
@@ -24618,7 +24627,7 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
24618
24627
  }, [X]);
24619
24628
  const {
24620
24629
  isExporting: me
24621
- } = Tv(), j = we.canUndo(), K = we.canRedo(), O = $.entitlements.ai, R = $.entitlements.export.web, te = $.entitlements.export.print, J = $.showWatermark || n !== !1, T = $.showWatermark, Y = $.upgradeUrl, le = $.entitlements.features || {}, q = $.entitlements.limits || {}, A = $.isValid && le.topbarActions === !0 && (v == null ? void 0 : v.topbarMode) === "custom" ? "custom" : "default", _ = le.saveLoad !== !1, b = $.isValid && le.templateSave !== !1, k = $.isValid && le.newDesignModal === !0, w = $.isValid && le.templateSizes === !0, S = $.state ?? ($.isValid ? "valid" : "invalid"), z = S === "pending" ? "VALIDATING..." : S === "invalid" ? "INVALID LICENSE" : S === "offline" ? "OFFLINE" : $.plan ? $.plan.toUpperCase() : "FREE", [H, ce] = De(null), V = {
24630
+ } = Tv(), j = we.canUndo(), K = we.canRedo(), O = $.entitlements.ai, R = $.entitlements.export.web, te = $.entitlements.export.print, J = $.showWatermark || n !== !1, T = $.showWatermark, Y = $.upgradeUrl, le = $.entitlements.features || {}, q = $.entitlements.limits || {}, A = $.isValid && le.topbarActions === !0 && (v == null ? void 0 : v.topbarMode) === "custom" ? "custom" : "default", L = le.saveLoad !== !1, b = $.isValid && le.templateSave !== !1, k = $.isValid && le.newDesignModal === !0, w = $.isValid && le.templateSizes === !0, S = $.state ?? ($.isValid ? "valid" : "invalid"), z = S === "pending" ? "VALIDATING..." : S === "invalid" ? "INVALID LICENSE" : S === "offline" ? "OFFLINE" : $.plan ? $.plan.toUpperCase() : "FREE", [H, ce] = De(null), V = {
24622
24631
  [Ct.TEMPLATES]: "Templates",
24623
24632
  [Ct.DESIGN]: "Design",
24624
24633
  [Ct.ELEMENTS]: "Elements",
@@ -25330,7 +25339,7 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
25330
25339
  onExport: rn,
25331
25340
  onCustomExport: En,
25332
25341
  exportAccess: { web: R, print: te },
25333
- canSaveLoadJson: _,
25342
+ canSaveLoadJson: L,
25334
25343
  upgradeUrl: Y,
25335
25344
  isExporting: me || dt
25336
25345
  }), [
@@ -25338,7 +25347,7 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
25338
25347
  R,
25339
25348
  K,
25340
25349
  j,
25341
- _,
25350
+ L,
25342
25351
  En,
25343
25352
  rn,
25344
25353
  Mt,
@@ -25397,7 +25406,7 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
25397
25406
  setZoom: (Se) => we.setZoom(Se),
25398
25407
  showToolbar: C.selection.length > 0,
25399
25408
  exportAccess: { web: R, print: te },
25400
- canSaveLoadJson: _,
25409
+ canSaveLoadJson: L,
25401
25410
  upgradeUrl: Y,
25402
25411
  onRequestUpgrade: ae,
25403
25412
  onSaveDesign: kn,
@@ -25569,7 +25578,7 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
25569
25578
  updateSettings: (Se) => we.updateSettings(Se),
25570
25579
  isOpen: Ue,
25571
25580
  onClose: () => tt(!1),
25572
- canLoadJson: _,
25581
+ canLoadJson: L,
25573
25582
  onLoadJson: (Se) => we.loadJSON(Se)
25574
25583
  }
25575
25584
  ), /* @__PURE__ */ a.createElement(
@@ -25629,7 +25638,7 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
25629
25638
  customElementTypes: g,
25630
25639
  theme: v,
25631
25640
  sdkVersion: p,
25632
- ui: L
25641
+ ui: _
25633
25642
  }) => {
25634
25643
  const x = vd(
25635
25644
  (U) => e.subscribeLicense(U),
@@ -25679,7 +25688,7 @@ const Wc = () => Math.random().toString(36).substring(2, 9), qh = {
25679
25688
  customElementTypes: g,
25680
25689
  theme: v,
25681
25690
  sdkVersion: p,
25682
- ui: L,
25691
+ ui: _,
25683
25692
  getLicenseStatus: () => e.getLicenseStatus(),
25684
25693
  subscribeLicense: (U) => e.subscribeLicense(U)
25685
25694
  }
@@ -25706,7 +25715,7 @@ class $v extends a.Component {
25706
25715
  ))) : this.props.children;
25707
25716
  }
25708
25717
  }
25709
- const qv = "https://cdn.tailwindcss.com", Uv = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap", Hv = ".our-editor-sdk { font-family: 'Inter', sans-serif; }", Wv = "fraczled-sdk-loader-styles", Gv = 3500, Yv = 220, Vv = "1.30.11", Xv = '<svg id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 118.1846 24.1172"><defs><linearGradient id="linear-gradient" x1="109.7684" y1="15.3657" x2="116.6286" y2="22.226" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#99d1a7"/><stop offset="1" stop-color="#8fd4f0"/></linearGradient></defs><g id="Layer_1-2"><path d="M86.0219,13.5526c-.0564-.5503-.1717-1.0508-.3545-1.494-.2642-.6402-.6581-1.1357-1.1813-1.4864-.5236-.3506-1.1715-.5259-1.9438-.5259s-1.4254.1779-1.9588.5335c-.5336.3559-.9428.8385-1.2273,1.4482-.2133.4568-.3465.965-.3999,1.5245h7.0657Z" fill="none"/><path d="M29.4248,16.3577c-.315.0609-.6302.1143-.9452.16-.315.0458-.5997.0892-.8536.1296-.5591.0815-1.0468.211-1.4636.3888-.4168.1779-.7392.4168-.9679.7164-.2287.3-.3431.6735-.3431,1.1206,0,.6402.2337,1.1281.7013,1.4635.4674.3354,1.0671.5031,1.7988.5031.691,0,1.3036-.1396,1.837-.4193.5336-.2794.9502-.6555,1.2502-1.1281.2995-.4726.4497-1.0035.4497-1.5931v-1.8141c-.1426.0914-.3431.1779-.6023.2591-.259.0815-.5463.1525-.8613.2135Z" fill="none"/><path d="M100.9591,10.8924c-.5389-.4116-1.1891-.6173-1.9514-.6173-.7723,0-1.4228.2134-1.9512.6402-.5286.4268-.9299,1.0138-1.2044,1.7608-.2744.7469-.4116,1.6136-.4116,2.5992s.1371,1.8575.4116,2.6144c.2744.7573.6784,1.3492,1.212,1.7761s1.1815.6402,1.9436.6402,1.4102-.2108,1.9438-.6326c.5336-.4216.94-1.0085,1.2196-1.7608.2792-.752.4192-1.6312.4192-2.6373,0-1.0162-.1373-1.8979-.4116-2.645-.2744-.7469-.681-1.3262-1.2196-1.7379Z" fill="none"/><path d="M7.104,5.6101c0-.5793.1371-1.029.4116-1.3491s.7571-.4802,1.4483-.4802c.2947,0,.574.0255.8384.0762.2642.051.4929.1018.686.1525l.8233-3.5368c-.2847-.0812-.7294-.1803-1.3341-.2972-.6047-.1167-1.2728-.1754-2.0046-.1754-1.0671,0-2.0199.2034-2.8583.6098-.8386.4065-1.4993,1.0164-1.982,1.8294-.4828.8132-.7242,1.8346-.7242,3.0642v1.2348H0v3.5673h2.4086v13.4764h4.6955v-13.4764h3.3995v-3.5673h-3.3995v-1.1281Z" fill="#0f1925"/><path d="M33.3808,7.8891c-.676-.4624-1.4459-.8054-2.3096-1.029-.8639-.2234-1.7683-.3354-2.7135-.3354-1.362,0-2.5588.2058-3.5903.6175-1.0315.4116-1.8725.9961-2.523,1.7532-.3151.3668-.579.767-.7939,1.1993v-3.4175c-.2134-.061-.4549-.1041-.7242-.1296-.2692-.0253-.5258-.0381-.7697-.0381-.9452,0-1.7836.2721-2.5154.8156-.7318.5439-1.2554,1.3442-1.5702,2.401h-.1831v-2.988h-4.5581v17.0437h4.7107v-9.6347c0-.691.1548-1.3035.465-1.837.3098-.5335.7392-.9502,1.2881-1.2501.5489-.2996,1.1636-.4497,1.8446-.4497.3355,0,.6987.0228,1.0899.0686.2454.0287.4538.063.6332.1017-.091.2586-.1679.5265-.228.8054l4.3753.3506c.1624-.5691.4955-1.039.9986-1.4102.5031-.3708,1.1763-.5564,2.0199-.5564.8026,0,1.4254.1932,1.8675.5793.4421.3864.6631.9299.6631,1.6312v.0762c0,.3559-.1397.6277-.4192.8156-.2797.1882-.7191.3277-1.3188.4193-.5997.0914-1.3925.1829-2.378.2743-.8536.0815-1.6617.2237-2.424.4268-.7621.2035-1.4431.5031-2.0428.8995-.5997.3963-1.0723.9123-1.4178,1.5473-.3455.6353-.5182,1.4307-.5182,2.3858,0,1.1182.2439,2.0531.7318,2.8051.4876.7523,1.1608,1.3187,2.0199,1.6998.8587.3812,1.8267.5717,2.904.5717.8434,0,1.5854-.1143,2.2257-.343.6405-.2287,1.1891-.5436,1.6465-.9452.4573-.4013.8233-.8713,1.0976-1.4101h.1221v2.3781h4.4971v-11.4945c0-1.0061-.1982-1.8751-.5945-2.6068-.3963-.7318-.9326-1.3288-1.6083-1.7913ZM30.8884,17.6992c0,.5896-.1502,1.1205-.4497,1.5931-.3.4726-.7165.8487-1.2502,1.1281-.5334.2797-1.146.4193-1.837.4193-.7318,0-1.3315-.1677-1.7988-.5031-.4676-.3354-.7013-.8232-.7013-1.4635,0-.4471.1144-.8206.3431-1.1206.2287-.2996.5511-.5385.9679-.7164.4168-.1778.9044-.3073,1.4636-.3888.254-.0404.5387-.0838.8536-.1296.315-.0457.6302-.0991.9452-.16.315-.061.6023-.132.8613-.2135.2592-.0812.4597-.1676.6023-.2591v1.8141Z" fill="#0f1925"/><path d="M42.91,10.8009c.5434-.3911,1.1815-.5869,1.9133-.5869.5792,0,1.0873.117,1.5244.3506.4368.2339.7874.564,1.0518.9909.2642.4269.4368.9249.5184,1.494h4.4515c-.061-1.321-.417-2.4696-1.0673-3.4453-.6505-.9756-1.532-1.7326-2.6449-2.2714-1.1128-.5385-2.4114-.808-3.895-.808-1.728,0-3.2166.3711-4.4668,1.1129-1.2499.7419-2.213,1.7736-2.8888,3.0947-.676,1.3212-1.0139,2.856-1.0139,4.6039,0,1.7279.3355,3.2497,1.0062,4.5658.6708,1.3162,1.6312,2.3476,2.8812,3.0947,1.2502.7469,2.744,1.1205,4.4821,1.1205,1.5244,0,2.8404-.2771,3.9484-.8309,1.1076-.5538,1.9765-1.3262,2.6067-2.3172.6302-.9909.9807-2.1366,1.052-3.4377h-4.4515c-.1321.9048-.4778,1.6136-1.0365,2.1267-.5591.5134-1.2452.7698-2.058.7698-.7318,0-1.3698-.2032-1.9133-.6097-.5439-.4064-.9657-.996-1.2654-1.7684-.2997-.7722-.4497-1.6972-.4497-2.7746s.15-1.9945.4497-2.7517c.2997-.757.7215-1.3313,1.2654-1.7227Z" fill="#0f1925"/><polygon points="59.2611 19.8792 67.0815 9.8328 67.0815 6.7381 53.3462 6.7381 53.3462 10.5188 61.4107 10.5188 61.4107 10.6408 53.0718 20.9616 53.0718 23.7818 67.3714 23.7818 67.3714 20.0011 59.2611 20.0011 59.2611 19.8792" fill="#0f1925"/><rect x="68.7445" y="1.0672" width="4.7105" height="22.7147" fill="#0f1925"/><path d="M88.2286,8.6818c-.7318-.7164-1.5854-1.2551-2.5612-1.6158-.9755-.3607-2.0275-.5413-3.1556-.5413-1.667,0-3.1175.3711-4.3524,1.1129-1.2349.7419-2.1901,1.7736-2.8659,3.0947-.6762,1.3212-1.0139,2.856-1.0139,4.6039,0,1.7988.3377,3.3564,1.0139,4.6725.6758,1.3163,1.6486,2.3301,2.9193,3.0413,1.2702.7115,2.7796,1.0672,4.5276,1.0672,1.4025,0,2.6374-.216,3.7045-.6479s1.9386-1.0366,2.6146-1.8141c.6758-.7776,1.1205-1.6896,1.3339-2.7365l-4.36-.2896c-.1524.4168-.3839.7724-.6936,1.0672-.3102.2948-.6784.5183-1.1052.6708-.4268.1524-.9047.2287-1.4331.2287-.7623,0-1.4357-.1754-2.0199-.526-.5846-.3506-1.0394-.8536-1.3644-1.5092-.2927-.5895-.4523-1.2887-.4817-2.0961h11.6103v-1.2806c0-1.4532-.2034-2.7212-.6097-3.8036-.4065-1.0824-.9757-1.9818-1.7075-2.6984ZM80.5835,10.5799c.5334-.3556,1.1863-.5335,1.9588-.5335s1.4202.1753,1.9438.5259c.5232.3506.9171.8461,1.1813,1.4864.1829.4431.2982.9437.3545,1.494h-7.0657c.0534-.5595.1867-1.0677.3999-1.5245.2845-.6097.6936-1.0923,1.2273-1.4482Z" fill="#0f1925"/><path d="M102.4835,1.0672v8.5522h-.1371c-.2034-.4673-.5031-.9399-.8994-1.4177-.3963-.4776-.9147-.8766-1.5549-1.1968-.6405-.3201-1.4383-.4802-2.3935-.4802-1.2401,0-2.3835.3228-3.4301.9681-1.047.6455-1.8854,1.6186-2.5154,2.9193-.6302,1.3011-.9452,2.927-.9452,4.8784,0,1.8903.305,3.4887.9147,4.7944.6097,1.3061,1.4381,2.2943,2.4849,2.9651,1.0468.6709,2.2204,1.0062,3.5216,1.0062.9147,0,1.6894-.1525,2.3249-.4573.635-.305,1.156-.6884,1.5625-1.151.4063-.4624.7165-.9273.9299-1.3949h.2134v2.7288h4.6497V1.0672h-4.726ZM102.1711,17.9126c-.2797.7523-.686,1.3392-1.2196,1.7608-.5336.4218-1.1815.6326-1.9438.6326s-1.41-.2134-1.9436-.6402-.9376-1.0188-1.212-1.7761c-.2744-.757-.4116-1.6285-.4116-2.6144s.1371-1.8523.4116-2.5992c.2744-.747.6758-1.334,1.2044-1.7608.5284-.4268,1.1789-.6402,1.9512-.6402.7623,0,1.4126.2058,1.9514.6173.5387.4117.9452.991,1.2196,1.7379.2742.747.4116,1.6288.4116,2.645,0,1.0061-.1399,1.8854-.4192,2.6373Z" fill="#0f1925"/><circle cx="113.1907" cy="18.7881" r="4.9939" fill="url(#linear-gradient)"/></g></svg>', Kv = `
25718
+ const qv = "https://cdn.tailwindcss.com", Uv = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap", Hv = ".our-editor-sdk { font-family: 'Inter', sans-serif; }", Wv = "fraczled-sdk-loader-styles", Gv = 3500, Yv = 220, Vv = "1.30.12", Xv = '<svg id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 118.1846 24.1172"><defs><linearGradient id="linear-gradient" x1="109.7684" y1="15.3657" x2="116.6286" y2="22.226" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#99d1a7"/><stop offset="1" stop-color="#8fd4f0"/></linearGradient></defs><g id="Layer_1-2"><path d="M86.0219,13.5526c-.0564-.5503-.1717-1.0508-.3545-1.494-.2642-.6402-.6581-1.1357-1.1813-1.4864-.5236-.3506-1.1715-.5259-1.9438-.5259s-1.4254.1779-1.9588.5335c-.5336.3559-.9428.8385-1.2273,1.4482-.2133.4568-.3465.965-.3999,1.5245h7.0657Z" fill="none"/><path d="M29.4248,16.3577c-.315.0609-.6302.1143-.9452.16-.315.0458-.5997.0892-.8536.1296-.5591.0815-1.0468.211-1.4636.3888-.4168.1779-.7392.4168-.9679.7164-.2287.3-.3431.6735-.3431,1.1206,0,.6402.2337,1.1281.7013,1.4635.4674.3354,1.0671.5031,1.7988.5031.691,0,1.3036-.1396,1.837-.4193.5336-.2794.9502-.6555,1.2502-1.1281.2995-.4726.4497-1.0035.4497-1.5931v-1.8141c-.1426.0914-.3431.1779-.6023.2591-.259.0815-.5463.1525-.8613.2135Z" fill="none"/><path d="M100.9591,10.8924c-.5389-.4116-1.1891-.6173-1.9514-.6173-.7723,0-1.4228.2134-1.9512.6402-.5286.4268-.9299,1.0138-1.2044,1.7608-.2744.7469-.4116,1.6136-.4116,2.5992s.1371,1.8575.4116,2.6144c.2744.7573.6784,1.3492,1.212,1.7761s1.1815.6402,1.9436.6402,1.4102-.2108,1.9438-.6326c.5336-.4216.94-1.0085,1.2196-1.7608.2792-.752.4192-1.6312.4192-2.6373,0-1.0162-.1373-1.8979-.4116-2.645-.2744-.7469-.681-1.3262-1.2196-1.7379Z" fill="none"/><path d="M7.104,5.6101c0-.5793.1371-1.029.4116-1.3491s.7571-.4802,1.4483-.4802c.2947,0,.574.0255.8384.0762.2642.051.4929.1018.686.1525l.8233-3.5368c-.2847-.0812-.7294-.1803-1.3341-.2972-.6047-.1167-1.2728-.1754-2.0046-.1754-1.0671,0-2.0199.2034-2.8583.6098-.8386.4065-1.4993,1.0164-1.982,1.8294-.4828.8132-.7242,1.8346-.7242,3.0642v1.2348H0v3.5673h2.4086v13.4764h4.6955v-13.4764h3.3995v-3.5673h-3.3995v-1.1281Z" fill="#0f1925"/><path d="M33.3808,7.8891c-.676-.4624-1.4459-.8054-2.3096-1.029-.8639-.2234-1.7683-.3354-2.7135-.3354-1.362,0-2.5588.2058-3.5903.6175-1.0315.4116-1.8725.9961-2.523,1.7532-.3151.3668-.579.767-.7939,1.1993v-3.4175c-.2134-.061-.4549-.1041-.7242-.1296-.2692-.0253-.5258-.0381-.7697-.0381-.9452,0-1.7836.2721-2.5154.8156-.7318.5439-1.2554,1.3442-1.5702,2.401h-.1831v-2.988h-4.5581v17.0437h4.7107v-9.6347c0-.691.1548-1.3035.465-1.837.3098-.5335.7392-.9502,1.2881-1.2501.5489-.2996,1.1636-.4497,1.8446-.4497.3355,0,.6987.0228,1.0899.0686.2454.0287.4538.063.6332.1017-.091.2586-.1679.5265-.228.8054l4.3753.3506c.1624-.5691.4955-1.039.9986-1.4102.5031-.3708,1.1763-.5564,2.0199-.5564.8026,0,1.4254.1932,1.8675.5793.4421.3864.6631.9299.6631,1.6312v.0762c0,.3559-.1397.6277-.4192.8156-.2797.1882-.7191.3277-1.3188.4193-.5997.0914-1.3925.1829-2.378.2743-.8536.0815-1.6617.2237-2.424.4268-.7621.2035-1.4431.5031-2.0428.8995-.5997.3963-1.0723.9123-1.4178,1.5473-.3455.6353-.5182,1.4307-.5182,2.3858,0,1.1182.2439,2.0531.7318,2.8051.4876.7523,1.1608,1.3187,2.0199,1.6998.8587.3812,1.8267.5717,2.904.5717.8434,0,1.5854-.1143,2.2257-.343.6405-.2287,1.1891-.5436,1.6465-.9452.4573-.4013.8233-.8713,1.0976-1.4101h.1221v2.3781h4.4971v-11.4945c0-1.0061-.1982-1.8751-.5945-2.6068-.3963-.7318-.9326-1.3288-1.6083-1.7913ZM30.8884,17.6992c0,.5896-.1502,1.1205-.4497,1.5931-.3.4726-.7165.8487-1.2502,1.1281-.5334.2797-1.146.4193-1.837.4193-.7318,0-1.3315-.1677-1.7988-.5031-.4676-.3354-.7013-.8232-.7013-1.4635,0-.4471.1144-.8206.3431-1.1206.2287-.2996.5511-.5385.9679-.7164.4168-.1778.9044-.3073,1.4636-.3888.254-.0404.5387-.0838.8536-.1296.315-.0457.6302-.0991.9452-.16.315-.061.6023-.132.8613-.2135.2592-.0812.4597-.1676.6023-.2591v1.8141Z" fill="#0f1925"/><path d="M42.91,10.8009c.5434-.3911,1.1815-.5869,1.9133-.5869.5792,0,1.0873.117,1.5244.3506.4368.2339.7874.564,1.0518.9909.2642.4269.4368.9249.5184,1.494h4.4515c-.061-1.321-.417-2.4696-1.0673-3.4453-.6505-.9756-1.532-1.7326-2.6449-2.2714-1.1128-.5385-2.4114-.808-3.895-.808-1.728,0-3.2166.3711-4.4668,1.1129-1.2499.7419-2.213,1.7736-2.8888,3.0947-.676,1.3212-1.0139,2.856-1.0139,4.6039,0,1.7279.3355,3.2497,1.0062,4.5658.6708,1.3162,1.6312,2.3476,2.8812,3.0947,1.2502.7469,2.744,1.1205,4.4821,1.1205,1.5244,0,2.8404-.2771,3.9484-.8309,1.1076-.5538,1.9765-1.3262,2.6067-2.3172.6302-.9909.9807-2.1366,1.052-3.4377h-4.4515c-.1321.9048-.4778,1.6136-1.0365,2.1267-.5591.5134-1.2452.7698-2.058.7698-.7318,0-1.3698-.2032-1.9133-.6097-.5439-.4064-.9657-.996-1.2654-1.7684-.2997-.7722-.4497-1.6972-.4497-2.7746s.15-1.9945.4497-2.7517c.2997-.757.7215-1.3313,1.2654-1.7227Z" fill="#0f1925"/><polygon points="59.2611 19.8792 67.0815 9.8328 67.0815 6.7381 53.3462 6.7381 53.3462 10.5188 61.4107 10.5188 61.4107 10.6408 53.0718 20.9616 53.0718 23.7818 67.3714 23.7818 67.3714 20.0011 59.2611 20.0011 59.2611 19.8792" fill="#0f1925"/><rect x="68.7445" y="1.0672" width="4.7105" height="22.7147" fill="#0f1925"/><path d="M88.2286,8.6818c-.7318-.7164-1.5854-1.2551-2.5612-1.6158-.9755-.3607-2.0275-.5413-3.1556-.5413-1.667,0-3.1175.3711-4.3524,1.1129-1.2349.7419-2.1901,1.7736-2.8659,3.0947-.6762,1.3212-1.0139,2.856-1.0139,4.6039,0,1.7988.3377,3.3564,1.0139,4.6725.6758,1.3163,1.6486,2.3301,2.9193,3.0413,1.2702.7115,2.7796,1.0672,4.5276,1.0672,1.4025,0,2.6374-.216,3.7045-.6479s1.9386-1.0366,2.6146-1.8141c.6758-.7776,1.1205-1.6896,1.3339-2.7365l-4.36-.2896c-.1524.4168-.3839.7724-.6936,1.0672-.3102.2948-.6784.5183-1.1052.6708-.4268.1524-.9047.2287-1.4331.2287-.7623,0-1.4357-.1754-2.0199-.526-.5846-.3506-1.0394-.8536-1.3644-1.5092-.2927-.5895-.4523-1.2887-.4817-2.0961h11.6103v-1.2806c0-1.4532-.2034-2.7212-.6097-3.8036-.4065-1.0824-.9757-1.9818-1.7075-2.6984ZM80.5835,10.5799c.5334-.3556,1.1863-.5335,1.9588-.5335s1.4202.1753,1.9438.5259c.5232.3506.9171.8461,1.1813,1.4864.1829.4431.2982.9437.3545,1.494h-7.0657c.0534-.5595.1867-1.0677.3999-1.5245.2845-.6097.6936-1.0923,1.2273-1.4482Z" fill="#0f1925"/><path d="M102.4835,1.0672v8.5522h-.1371c-.2034-.4673-.5031-.9399-.8994-1.4177-.3963-.4776-.9147-.8766-1.5549-1.1968-.6405-.3201-1.4383-.4802-2.3935-.4802-1.2401,0-2.3835.3228-3.4301.9681-1.047.6455-1.8854,1.6186-2.5154,2.9193-.6302,1.3011-.9452,2.927-.9452,4.8784,0,1.8903.305,3.4887.9147,4.7944.6097,1.3061,1.4381,2.2943,2.4849,2.9651,1.0468.6709,2.2204,1.0062,3.5216,1.0062.9147,0,1.6894-.1525,2.3249-.4573.635-.305,1.156-.6884,1.5625-1.151.4063-.4624.7165-.9273.9299-1.3949h.2134v2.7288h4.6497V1.0672h-4.726ZM102.1711,17.9126c-.2797.7523-.686,1.3392-1.2196,1.7608-.5336.4218-1.1815.6326-1.9438.6326s-1.41-.2134-1.9436-.6402-.9376-1.0188-1.212-1.7761c-.2744-.757-.4116-1.6285-.4116-2.6144s.1371-1.8523.4116-2.5992c.2744-.747.6758-1.334,1.2044-1.7608.5284-.4268,1.1789-.6402,1.9512-.6402.7623,0,1.4126.2058,1.9514.6173.5387.4117.9452.991,1.2196,1.7379.2742.747.4116,1.6288.4116,2.645,0,1.0061-.1399,1.8854-.4192,2.6373Z" fill="#0f1925"/><circle cx="113.1907" cy="18.7881" r="4.9939" fill="url(#linear-gradient)"/></g></svg>', Kv = `
25710
25719
  .fraczled-sdk-root {
25711
25720
  width: 100%;
25712
25721
  height: 100%;
@@ -25829,7 +25838,7 @@ const qv = "https://cdn.tailwindcss.com", Uv = "https://fonts.googleapis.com/css
25829
25838
  customElementTypes: g,
25830
25839
  theme: v,
25831
25840
  ui: p,
25832
- sdkVersion: L,
25841
+ sdkVersion: _,
25833
25842
  onReady: x
25834
25843
  }) => (a.useEffect(() => {
25835
25844
  x();
@@ -25848,7 +25857,7 @@ const qv = "https://cdn.tailwindcss.com", Uv = "https://fonts.googleapis.com/css
25848
25857
  customElementTypes: g,
25849
25858
  theme: v,
25850
25859
  ui: p,
25851
- sdkVersion: L
25860
+ sdkVersion: _
25852
25861
  }));
25853
25862
  function nx(e) {
25854
25863
  var u, m, g;
@@ -25860,11 +25869,11 @@ function nx(e) {
25860
25869
  (m = e.services) != null && m.unsplashProxyBaseUrl && L3(e.services.unsplashProxyBaseUrl);
25861
25870
  const i = Vh(e), s = b2.createRoot(n.mount), o = t ? new Promise((v) => {
25862
25871
  let p = !1;
25863
- const L = window.setTimeout(() => {
25872
+ const _ = window.setTimeout(() => {
25864
25873
  p || (p = !0, v());
25865
25874
  }, Gv);
25866
25875
  r.then(() => {
25867
- p || (p = !0, window.clearTimeout(L), v());
25876
+ p || (p = !0, window.clearTimeout(_), v());
25868
25877
  });
25869
25878
  }) : Promise.resolve();
25870
25879
  let l = !1;