@borurio-print/print-designer 1.0.27 → 1.0.29

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.
@@ -1,4 +1,4 @@
1
- import { i as Mc, a as Ic, f as Bs, g as Rs, r as Ec, b as Cc, c as zu, d as Fc, e as jc, J as Oc, Q as Bc, l as Rc, h as Tc, j as nf, T as Dc, k as qc, m as Uc } from "./index-D-dyV9yP.js";
1
+ import { i as Mc, a as Ic, f as Bs, g as Rs, r as Ec, b as Cc, c as zu, d as Fc, e as jc, h as Oc, J as Bc, Q as Rc, l as Tc, j as Dc, k as nf, T as qc, m as Uc, n as zc } from "./index-DbutHW7U.js";
2
2
  function xe(r) {
3
3
  "@babel/helpers - typeof";
4
4
  return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -83,9 +83,9 @@ var Zr = Uint8Array, jr = Uint16Array, Qo = Int32Array, tu = new Zr([
83
83
  for (var a = e[n]; a < e[n + 1]; ++a)
84
84
  s[a] = a - e[n] << 5 | n;
85
85
  return { b: e, r: s };
86
- }, sf = af(tu, 2), zc = sf.b, zo = sf.r;
87
- zc[28] = 258, zo[258] = 28;
88
- var Hc = af(eu, 0), Wu = Hc.r, Ho = new jr(32768);
86
+ }, sf = af(tu, 2), Hc = sf.b, zo = sf.r;
87
+ Hc[28] = 258, zo[258] = 28;
88
+ var Wc = af(eu, 0), Wu = Wc.r, Ho = new jr(32768);
89
89
  for (var Ce = 0; Ce < 32768; ++Ce) {
90
90
  var Xn = (Ce & 43690) >> 1 | (Ce & 21845) << 1;
91
91
  Xn = (Xn & 52428) >> 2 | (Xn & 13107) << 2, Xn = (Xn & 61680) >> 4 | (Xn & 3855) << 4, Ho[Ce] = ((Xn & 65280) >> 8 | (Xn & 255) << 8) >> 1;
@@ -93,20 +93,20 @@ for (var Ce = 0; Ce < 32768; ++Ce) {
93
93
  var Ca = (function(r, t, e) {
94
94
  for (var n = r.length, s = 0, a = new jr(t); s < n; ++s)
95
95
  r[s] && ++a[r[s] - 1];
96
- var c = new jr(t);
96
+ var f = new jr(t);
97
97
  for (s = 1; s < t; ++s)
98
- c[s] = c[s - 1] + a[s - 1] << 1;
98
+ f[s] = f[s - 1] + a[s - 1] << 1;
99
99
  var u;
100
100
  if (e) {
101
101
  u = new jr(1 << t);
102
- var f = 15 - t;
102
+ var c = 15 - t;
103
103
  for (s = 0; s < n; ++s)
104
104
  if (r[s])
105
- for (var d = s << 4 | r[s], g = t - r[s], x = c[r[s] - 1]++ << g, N = x | (1 << g) - 1; x <= N; ++x)
106
- u[Ho[x] >> f] = d;
105
+ for (var d = s << 4 | r[s], g = t - r[s], x = f[r[s] - 1]++ << g, N = x | (1 << g) - 1; x <= N; ++x)
106
+ u[Ho[x] >> c] = d;
107
107
  } else
108
108
  for (u = new jr(n), s = 0; s < n; ++s)
109
- r[s] && (u[s] = Ho[c[r[s] - 1]++] >> 15 - r[s]);
109
+ r[s] && (u[s] = Ho[f[r[s] - 1]++] >> 15 - r[s]);
110
110
  return u;
111
111
  }), xi = new Zr(288);
112
112
  for (var Ce = 0; Ce < 144; ++Ce)
@@ -120,9 +120,9 @@ for (var Ce = 280; Ce < 288; ++Ce)
120
120
  var Is = new Zr(32);
121
121
  for (var Ce = 0; Ce < 32; ++Ce)
122
122
  Is[Ce] = 5;
123
- var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = function(r) {
123
+ var Gc = /* @__PURE__ */ Ca(xi, 9, 0), Vc = /* @__PURE__ */ Ca(Is, 5, 0), of = function(r) {
124
124
  return (r + 7) / 8 | 0;
125
- }, Vc = function(r, t, e) {
125
+ }, Yc = function(r, t, e) {
126
126
  return (e == null || e > r.length) && (e = r.length), new Zr(r.subarray(t, e));
127
127
  }, En = function(r, t, e) {
128
128
  e <<= t & 7;
@@ -139,15 +139,15 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
139
139
  if (!s)
140
140
  return { t: lf, l: 0 };
141
141
  if (s == 1) {
142
- var c = new Zr(e[0].s + 1);
143
- return c[e[0].s] = 1, { t: c, l: 1 };
142
+ var f = new Zr(e[0].s + 1);
143
+ return f[e[0].s] = 1, { t: f, l: 1 };
144
144
  }
145
145
  e.sort(function(it, mt) {
146
146
  return it.f - mt.f;
147
147
  }), e.push({ s: -1, f: 25001 });
148
- var u = e[0], f = e[1], d = 0, g = 1, x = 2;
149
- for (e[0] = { s: -1, f: u.f + f.f, l: u, r: f }; g != s - 1; )
150
- u = e[e[d].f < e[x].f ? d++ : x++], f = e[d != g && e[d].f < e[x].f ? d++ : x++], e[g++] = { s: -1, f: u.f + f.f, l: u, r: f };
148
+ var u = e[0], c = e[1], d = 0, g = 1, x = 2;
149
+ for (e[0] = { s: -1, f: u.f + c.f, l: u, r: c }; g != s - 1; )
150
+ u = e[e[d].f < e[x].f ? d++ : x++], c = e[d != g && e[d].f < e[x].f ? d++ : x++], e[g++] = { s: -1, f: u.f + c.f, l: u, r: c };
151
151
  for (var N = a[0].s, n = 1; n < s; ++n)
152
152
  a[n].s > N && (N = a[n].s);
153
153
  var p = new jr(N + 1), j = Wo(e[g - 1], p, 0);
@@ -178,23 +178,23 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
178
178
  }, Gu = function(r) {
179
179
  for (var t = r.length; t && !r[--t]; )
180
180
  ;
181
- for (var e = new jr(++t), n = 0, s = r[0], a = 1, c = function(f) {
182
- e[n++] = f;
181
+ for (var e = new jr(++t), n = 0, s = r[0], a = 1, f = function(c) {
182
+ e[n++] = c;
183
183
  }, u = 1; u <= t; ++u)
184
184
  if (r[u] == s && u != t)
185
185
  ++a;
186
186
  else {
187
187
  if (!s && a > 2) {
188
188
  for (; a > 138; a -= 138)
189
- c(32754);
190
- a > 2 && (c(a > 10 ? a - 11 << 5 | 28690 : a - 3 << 5 | 12305), a = 0);
189
+ f(32754);
190
+ a > 2 && (f(a > 10 ? a - 11 << 5 | 28690 : a - 3 << 5 | 12305), a = 0);
191
191
  } else if (a > 3) {
192
- for (c(s), --a; a > 6; a -= 6)
193
- c(8304);
194
- a > 2 && (c(a - 3 << 5 | 8208), a = 0);
192
+ for (f(s), --a; a > 6; a -= 6)
193
+ f(8304);
194
+ a > 2 && (f(a - 3 << 5 | 8208), a = 0);
195
195
  }
196
196
  for (; a--; )
197
- c(s);
197
+ f(s);
198
198
  a = 1, s = r[u];
199
199
  }
200
200
  return { c: e.subarray(0, n), n: t };
@@ -208,7 +208,7 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
208
208
  for (var a = 0; a < n; ++a)
209
209
  r[s + a + 4] = e[a];
210
210
  return (s + 4 + n) * 8;
211
- }, Vu = function(r, t, e, n, s, a, c, u, f, d, g) {
211
+ }, Vu = function(r, t, e, n, s, a, f, u, c, d, g) {
212
212
  En(t, g++, e), ++s[256];
213
213
  for (var x = Ao(s, 15), N = x.t, p = x.l, j = Ao(a, 15), P = j.t, O = j.l, k = Gu(N), G = k.c, Y = k.n, q = Gu(P), it = q.c, mt = q.n, dt = new jr(19), K = 0; K < G.length; ++K)
214
214
  ++dt[G[K] & 31];
@@ -216,9 +216,9 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
216
216
  ++dt[it[K] & 31];
217
217
  for (var R = Ao(dt, 7), tt = R.t, _ = R.l, F = 19; F > 4 && !tt[Hu[F - 1]]; --F)
218
218
  ;
219
- var z = d + 5 << 3, U = Ia(s, xi) + Ia(a, Is) + c, nt = Ia(s, N) + Ia(a, P) + c + 14 + 3 * F + Ia(dt, tt) + 2 * dt[16] + 3 * dt[17] + 7 * dt[18];
220
- if (f >= 0 && z <= U && z <= nt)
221
- return uf(t, g, r.subarray(f, f + d));
219
+ var z = d + 5 << 3, U = Ia(s, xi) + Ia(a, Is) + f, nt = Ia(s, N) + Ia(a, P) + f + 14 + 3 * F + Ia(dt, tt) + 2 * dt[16] + 3 * dt[17] + 7 * dt[18];
220
+ if (c >= 0 && z <= U && z <= nt)
221
+ return uf(t, g, r.subarray(c, c + d));
222
222
  var ot, ft, rt, ht;
223
223
  if (En(t, g, 1 + (nt < U)), g += 2, nt < U) {
224
224
  ot = Ca(N, p, 0), ft = N, rt = Ca(P, O, 0), ht = P;
@@ -233,7 +233,7 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
233
233
  En(t, g, Nt[T]), g += tt[T], T > 15 && (En(t, g, B[K] >> 5 & 127), g += B[K] >> 12);
234
234
  }
235
235
  } else
236
- ot = Wc, ft = xi, rt = Gc, ht = Is;
236
+ ot = Gc, ft = xi, rt = Vc, ht = Is;
237
237
  for (var K = 0; K < u; ++K) {
238
238
  var H = n[K];
239
239
  if (H > 255) {
@@ -245,18 +245,18 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
245
245
  Ma(t, g, ot[H]), g += ft[H];
246
246
  }
247
247
  return Ma(t, g, ot[256]), g + ft[256];
248
- }, Yc = /* @__PURE__ */ new Qo([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), lf = /* @__PURE__ */ new Zr(0), Xc = function(r, t, e, n, s, a) {
249
- var c = a.z || r.length, u = new Zr(n + c + 5 * (1 + Math.ceil(c / 7e3)) + s), f = u.subarray(n, u.length - s), d = a.l, g = (a.r || 0) & 7;
248
+ }, Xc = /* @__PURE__ */ new Qo([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), lf = /* @__PURE__ */ new Zr(0), Jc = function(r, t, e, n, s, a) {
249
+ var f = a.z || r.length, u = new Zr(n + f + 5 * (1 + Math.ceil(f / 7e3)) + s), c = u.subarray(n, u.length - s), d = a.l, g = (a.r || 0) & 7;
250
250
  if (t) {
251
- g && (f[0] = a.r >> 3);
252
- for (var x = Yc[t - 1], N = x >> 13, p = x & 8191, j = (1 << e) - 1, P = a.p || new jr(32768), O = a.h || new jr(j + 1), k = Math.ceil(e / 3), G = 2 * k, Y = function(Dt) {
251
+ g && (c[0] = a.r >> 3);
252
+ for (var x = Xc[t - 1], N = x >> 13, p = x & 8191, j = (1 << e) - 1, P = a.p || new jr(32768), O = a.h || new jr(j + 1), k = Math.ceil(e / 3), G = 2 * k, Y = function(Dt) {
253
253
  return (r[Dt] ^ r[Dt + 1] << k ^ r[Dt + 2] << G) & j;
254
- }, q = new Qo(25e3), it = new jr(288), mt = new jr(32), dt = 0, K = 0, R = a.i || 0, tt = 0, _ = a.w || 0, F = 0; R + 2 < c; ++R) {
254
+ }, q = new Qo(25e3), it = new jr(288), mt = new jr(32), dt = 0, K = 0, R = a.i || 0, tt = 0, _ = a.w || 0, F = 0; R + 2 < f; ++R) {
255
255
  var z = Y(R), U = R & 32767, nt = O[z];
256
256
  if (P[U] = nt, O[z] = U, _ <= R) {
257
- var ot = c - R;
257
+ var ot = f - R;
258
258
  if ((dt > 7e3 || tt > 24576) && (ot > 423 || !d)) {
259
- g = Vu(r, f, 0, q, it, mt, K, tt, F, R - F, g), tt = dt = K = 0, F = R;
259
+ g = Vu(r, c, 0, q, it, mt, K, tt, F, R - F, g), tt = dt = K = 0, F = R;
260
260
  for (var ft = 0; ft < 286; ++ft)
261
261
  it[ft] = 0;
262
262
  for (var ft = 0; ft < 30; ++ft)
@@ -287,24 +287,24 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
287
287
  q[tt++] = r[R], ++it[r[R]];
288
288
  }
289
289
  }
290
- for (R = Math.max(R, _); R < c; ++R)
290
+ for (R = Math.max(R, _); R < f; ++R)
291
291
  q[tt++] = r[R], ++it[r[R]];
292
- g = Vu(r, f, d, q, it, mt, K, tt, F, R - F, g), d || (a.r = g & 7 | f[g / 8 | 0] << 3, g -= 7, a.h = O, a.p = P, a.i = R, a.w = _);
292
+ g = Vu(r, c, d, q, it, mt, K, tt, F, R - F, g), d || (a.r = g & 7 | c[g / 8 | 0] << 3, g -= 7, a.h = O, a.p = P, a.i = R, a.w = _);
293
293
  } else {
294
- for (var R = a.w || 0; R < c + d; R += 65535) {
294
+ for (var R = a.w || 0; R < f + d; R += 65535) {
295
295
  var St = R + 65535;
296
- St >= c && (f[g / 8 | 0] = d, St = c), g = uf(f, g + 1, r.subarray(R, St));
296
+ St >= f && (c[g / 8 | 0] = d, St = f), g = uf(c, g + 1, r.subarray(R, St));
297
297
  }
298
- a.i = c;
298
+ a.i = f;
299
299
  }
300
- return Vc(u, 0, n + of(g) + s);
300
+ return Yc(u, 0, n + of(g) + s);
301
301
  }, ff = function() {
302
302
  var r = 1, t = 0;
303
303
  return {
304
304
  p: function(e) {
305
- for (var n = r, s = t, a = e.length | 0, c = 0; c != a; ) {
306
- for (var u = Math.min(c + 2655, a); c < u; ++c)
307
- s += n += e[c];
305
+ for (var n = r, s = t, a = e.length | 0, f = 0; f != a; ) {
306
+ for (var u = Math.min(f + 2655, a); f < u; ++f)
307
+ s += n += e[f];
308
308
  n = (n & 65535) + 15 * (n >> 16), s = (s & 65535) + 15 * (s >> 16);
309
309
  }
310
310
  r = n, t = s;
@@ -313,16 +313,16 @@ var Wc = /* @__PURE__ */ Ca(xi, 9, 0), Gc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
313
313
  return r %= 65521, t %= 65521, (r & 255) << 24 | (r & 65280) << 8 | (t & 255) << 8 | t >> 8;
314
314
  }
315
315
  };
316
- }, Jc = function(r, t, e, n, s) {
316
+ }, Kc = function(r, t, e, n, s) {
317
317
  if (!s && (s = { l: 1 }, t.dictionary)) {
318
- var a = t.dictionary.subarray(-32768), c = new Zr(a.length + r.length);
319
- c.set(a), c.set(r, a.length), r = c, s.w = a.length;
318
+ var a = t.dictionary.subarray(-32768), f = new Zr(a.length + r.length);
319
+ f.set(a), f.set(r, a.length), r = f, s.w = a.length;
320
320
  }
321
- return Xc(r, t.level == null ? 6 : t.level, t.mem == null ? s.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(r.length))) * 1.5) : 20 : 12 + t.mem, e, n, s);
321
+ return Jc(r, t.level == null ? 6 : t.level, t.mem == null ? s.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(r.length))) * 1.5) : 20 : 12 + t.mem, e, n, s);
322
322
  }, cf = function(r, t, e) {
323
323
  for (; e; ++t)
324
324
  r[t] = e, e >>>= 8;
325
- }, Kc = function(r, t) {
325
+ }, $c = function(r, t) {
326
326
  var e = t.level, n = e == 0 ? 0 : e < 6 ? 1 : e == 9 ? 3 : 2;
327
327
  if (r[0] = 120, r[1] = n << 6 | (t.dictionary && 32), r[1] |= 31 - (r[0] << 8 | r[1]) % 31, t.dictionary) {
328
328
  var s = ff();
@@ -333,28 +333,28 @@ function Go(r, t) {
333
333
  t || (t = {});
334
334
  var e = ff();
335
335
  e.p(r);
336
- var n = Jc(r, t, t.dictionary ? 6 : 2, 4);
337
- return Kc(n, t), cf(n, n.length - 4, e.d()), n;
336
+ var n = Kc(r, t, t.dictionary ? 6 : 2, 4);
337
+ return $c(n, t), cf(n, n.length - 4, e.d()), n;
338
338
  }
339
- var $c = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Zc = 0;
339
+ var Zc = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Qc = 0;
340
340
  try {
341
- $c.decode(lf, { stream: !0 }), Zc = 1;
341
+ Zc.decode(lf, { stream: !0 }), Qc = 1;
342
342
  } catch {
343
343
  }
344
- function Qc(r) {
344
+ function th(r) {
345
345
  if (Array.isArray(r)) return r;
346
346
  }
347
- function th(r, t) {
347
+ function eh(r, t) {
348
348
  var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
349
349
  if (e != null) {
350
- var n, s, a, c, u = [], f = !0, d = !1;
350
+ var n, s, a, f, u = [], c = !0, d = !1;
351
351
  try {
352
- if (a = (e = e.call(r)).next, t !== 0) for (; !(f = (n = a.call(e)).done) && (u.push(n.value), u.length !== t); f = !0) ;
352
+ if (a = (e = e.call(r)).next, t !== 0) for (; !(c = (n = a.call(e)).done) && (u.push(n.value), u.length !== t); c = !0) ;
353
353
  } catch (g) {
354
354
  d = !0, s = g;
355
355
  } finally {
356
356
  try {
357
- if (!f && e.return != null && (c = e.return(), Object(c) !== c)) return;
357
+ if (!c && e.return != null && (f = e.return(), Object(f) !== f)) return;
358
358
  } finally {
359
359
  if (d) throw s;
360
360
  }
@@ -367,28 +367,28 @@ function Yu(r, t) {
367
367
  for (var e = 0, n = Array(t); e < t; e++) n[e] = r[e];
368
368
  return n;
369
369
  }
370
- function eh(r, t) {
370
+ function rh(r, t) {
371
371
  if (r) {
372
372
  if (typeof r == "string") return Yu(r, t);
373
373
  var e = {}.toString.call(r).slice(8, -1);
374
374
  return e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set" ? Array.from(r) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? Yu(r, t) : void 0;
375
375
  }
376
376
  }
377
- function rh() {
377
+ function nh() {
378
378
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
379
379
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
380
380
  }
381
381
  function Xu(r, t) {
382
- return Qc(r) || th(r, t) || eh(r, t) || rh();
382
+ return th(r) || eh(r, t) || rh(r, t) || nh();
383
383
  }
384
384
  function Ju(r, t = "utf8") {
385
385
  return new TextDecoder(t).decode(r);
386
386
  }
387
- const nh = new TextEncoder();
388
- function ih(r) {
389
- return nh.encode(r);
387
+ const ih = new TextEncoder();
388
+ function ah(r) {
389
+ return ih.encode(r);
390
390
  }
391
- const ah = 1024 * 8, sh = (() => {
391
+ const sh = 1024 * 8, oh = (() => {
392
392
  const r = new Uint8Array(4), t = new Uint32Array(r.buffer);
393
393
  return !((t[0] = 1) & r[0]);
394
394
  })(), No = {
@@ -439,12 +439,12 @@ class ru {
439
439
  * @param options - An object for the options.
440
440
  * @returns A new IOBuffer instance.
441
441
  */
442
- constructor(t = ah, e = {}) {
442
+ constructor(t = sh, e = {}) {
443
443
  let n = !1;
444
444
  typeof t == "number" ? t = new ArrayBuffer(t) : (n = !0, this.lastWrittenByte = t.byteLength);
445
445
  const s = e.offset ? e.offset >>> 0 : 0, a = t.byteLength - s;
446
- let c = s;
447
- (ArrayBuffer.isView(t) || t instanceof ru) && (t.byteLength !== t.buffer.byteLength && (c = t.byteOffset + s), t = t.buffer), n ? this.lastWrittenByte = a : this.lastWrittenByte = 0, this.buffer = t, this.length = a, this.byteLength = a, this.byteOffset = c, this.offset = 0, this.littleEndian = !0, this._data = new DataView(this.buffer, c, a), this._mark = 0, this._marks = [];
446
+ let f = s;
447
+ (ArrayBuffer.isView(t) || t instanceof ru) && (t.byteLength !== t.buffer.byteLength && (f = t.byteOffset + s), t = t.buffer), n ? this.lastWrittenByte = a : this.lastWrittenByte = 0, this.buffer = t, this.length = a, this.byteLength = a, this.byteOffset = f, this.offset = 0, this.littleEndian = !0, this._data = new DataView(this.buffer, f, a), this._mark = 0, this._marks = [];
448
448
  }
449
449
  /**
450
450
  * Checks if the memory allocated to the buffer is sufficient to store more
@@ -612,14 +612,14 @@ class ru {
612
612
  */
613
613
  readArray(t, e) {
614
614
  const n = No[e].BYTES_PER_ELEMENT * t, s = this.byteOffset + this.offset, a = this.buffer.slice(s, s + n);
615
- if (this.littleEndian === sh && e !== "uint8" && e !== "int8") {
615
+ if (this.littleEndian === oh && e !== "uint8" && e !== "int8") {
616
616
  const u = new Uint8Array(this.buffer.slice(s, s + n));
617
617
  u.reverse();
618
- const f = new No[e](u.buffer);
619
- return this.offset += n, f.reverse(), f;
618
+ const c = new No[e](u.buffer);
619
+ return this.offset += n, c.reverse(), c;
620
620
  }
621
- const c = new No[e](a);
622
- return this.offset += n, c;
621
+ const f = new No[e](a);
622
+ return this.offset += n, f;
623
623
  }
624
624
  /**
625
625
  * Read a 16-bit signed integer and move pointer forward by 2 bytes.
@@ -868,7 +868,7 @@ class ru {
868
868
  * @returns This.
869
869
  */
870
870
  writeUtf8(t) {
871
- return this.writeBytes(ih(t));
871
+ return this.writeBytes(ah(t));
872
872
  }
873
873
  /**
874
874
  * Export a Uint8Array view of the internal buffer.
@@ -899,31 +899,31 @@ function aa(r) {
899
899
  for (; --t >= 0; )
900
900
  r[t] = 0;
901
901
  }
902
- const oh = 3, uh = 258, hf = 29, lh = 256, fh = lh + 1 + hf, df = 30, ch = 512, hh = new Array((fh + 2) * 2);
903
- aa(hh);
904
- const dh = new Array(df * 2);
902
+ const uh = 3, lh = 258, hf = 29, fh = 256, ch = fh + 1 + hf, df = 30, hh = 512, dh = new Array((ch + 2) * 2);
905
903
  aa(dh);
906
- const ph = new Array(ch);
904
+ const ph = new Array(df * 2);
907
905
  aa(ph);
908
- const gh = new Array(uh - oh + 1);
906
+ const gh = new Array(hh);
909
907
  aa(gh);
910
- const mh = new Array(hf);
908
+ const mh = new Array(lh - uh + 1);
911
909
  aa(mh);
912
- const vh = new Array(df);
910
+ const vh = new Array(hf);
913
911
  aa(vh);
914
- const bh = (r, t, e, n) => {
915
- let s = r & 65535 | 0, a = r >>> 16 & 65535 | 0, c = 0;
912
+ const bh = new Array(df);
913
+ aa(bh);
914
+ const wh = (r, t, e, n) => {
915
+ let s = r & 65535 | 0, a = r >>> 16 & 65535 | 0, f = 0;
916
916
  for (; e !== 0; ) {
917
- c = e > 2e3 ? 2e3 : e, e -= c;
917
+ f = e > 2e3 ? 2e3 : e, e -= f;
918
918
  do
919
919
  s = s + t[n++] | 0, a = a + s | 0;
920
- while (--c);
920
+ while (--f);
921
921
  s %= 65521, a %= 65521;
922
922
  }
923
923
  return s | a << 16 | 0;
924
924
  };
925
- var Vo = bh;
926
- const wh = () => {
925
+ var Vo = wh;
926
+ const yh = () => {
927
927
  let r, t = [];
928
928
  for (var e = 0; e < 256; e++) {
929
929
  r = e;
@@ -932,14 +932,14 @@ const wh = () => {
932
932
  t[e] = r;
933
933
  }
934
934
  return t;
935
- }, yh = new Uint32Array(wh()), xh = (r, t, e, n) => {
936
- const s = yh, a = n + e;
935
+ }, xh = new Uint32Array(yh()), Ah = (r, t, e, n) => {
936
+ const s = xh, a = n + e;
937
937
  r ^= -1;
938
- for (let c = n; c < a; c++)
939
- r = r >>> 8 ^ s[(r ^ t[c]) & 255];
938
+ for (let f = n; f < a; f++)
939
+ r = r >>> 8 ^ s[(r ^ t[f]) & 255];
940
940
  return r ^ -1;
941
941
  };
942
- var hn = xh, Yo = {
942
+ var hn = Ah, Yo = {
943
943
  2: "need dictionary",
944
944
  /* Z_NEED_DICT 2 */
945
945
  1: "stream end",
@@ -978,8 +978,8 @@ var hn = xh, Yo = {
978
978
  Z_DEFLATED: 8
979
979
  //Z_NULL: null // Use -1 or null inline, depending on var type
980
980
  };
981
- const Ah = (r, t) => Object.prototype.hasOwnProperty.call(r, t);
982
- var Nh = function(r) {
981
+ const Nh = (r, t) => Object.prototype.hasOwnProperty.call(r, t);
982
+ var Lh = function(r) {
983
983
  const t = Array.prototype.slice.call(arguments, 1);
984
984
  for (; t.length; ) {
985
985
  const e = t.shift();
@@ -987,23 +987,23 @@ var Nh = function(r) {
987
987
  if (typeof e != "object")
988
988
  throw new TypeError(e + "must be non-object");
989
989
  for (const n in e)
990
- Ah(e, n) && (r[n] = e[n]);
990
+ Nh(e, n) && (r[n] = e[n]);
991
991
  }
992
992
  }
993
993
  return r;
994
- }, Lh = (r) => {
994
+ }, _h = (r) => {
995
995
  let t = 0;
996
996
  for (let n = 0, s = r.length; n < s; n++)
997
997
  t += r[n].length;
998
998
  const e = new Uint8Array(t);
999
999
  for (let n = 0, s = 0, a = r.length; n < a; n++) {
1000
- let c = r[n];
1001
- e.set(c, s), s += c.length;
1000
+ let f = r[n];
1001
+ e.set(f, s), s += f.length;
1002
1002
  }
1003
1003
  return e;
1004
1004
  }, gf = {
1005
- assign: Nh,
1006
- flattenChunks: Lh
1005
+ assign: Lh,
1006
+ flattenChunks: _h
1007
1007
  };
1008
1008
  let mf = !0;
1009
1009
  try {
@@ -1015,17 +1015,17 @@ const Oa = new Uint8Array(256);
1015
1015
  for (let r = 0; r < 256; r++)
1016
1016
  Oa[r] = r >= 252 ? 6 : r >= 248 ? 5 : r >= 240 ? 4 : r >= 224 ? 3 : r >= 192 ? 2 : 1;
1017
1017
  Oa[254] = Oa[255] = 1;
1018
- var _h = (r) => {
1018
+ var Sh = (r) => {
1019
1019
  if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
1020
1020
  return new TextEncoder().encode(r);
1021
- let t, e, n, s, a, c = r.length, u = 0;
1022
- for (s = 0; s < c; s++)
1023
- e = r.charCodeAt(s), (e & 64512) === 55296 && s + 1 < c && (n = r.charCodeAt(s + 1), (n & 64512) === 56320 && (e = 65536 + (e - 55296 << 10) + (n - 56320), s++)), u += e < 128 ? 1 : e < 2048 ? 2 : e < 65536 ? 3 : 4;
1021
+ let t, e, n, s, a, f = r.length, u = 0;
1022
+ for (s = 0; s < f; s++)
1023
+ e = r.charCodeAt(s), (e & 64512) === 55296 && s + 1 < f && (n = r.charCodeAt(s + 1), (n & 64512) === 56320 && (e = 65536 + (e - 55296 << 10) + (n - 56320), s++)), u += e < 128 ? 1 : e < 2048 ? 2 : e < 65536 ? 3 : 4;
1024
1024
  for (t = new Uint8Array(u), a = 0, s = 0; a < u; s++)
1025
- e = r.charCodeAt(s), (e & 64512) === 55296 && s + 1 < c && (n = r.charCodeAt(s + 1), (n & 64512) === 56320 && (e = 65536 + (e - 55296 << 10) + (n - 56320), s++)), e < 128 ? t[a++] = e : e < 2048 ? (t[a++] = 192 | e >>> 6, t[a++] = 128 | e & 63) : e < 65536 ? (t[a++] = 224 | e >>> 12, t[a++] = 128 | e >>> 6 & 63, t[a++] = 128 | e & 63) : (t[a++] = 240 | e >>> 18, t[a++] = 128 | e >>> 12 & 63, t[a++] = 128 | e >>> 6 & 63, t[a++] = 128 | e & 63);
1025
+ e = r.charCodeAt(s), (e & 64512) === 55296 && s + 1 < f && (n = r.charCodeAt(s + 1), (n & 64512) === 56320 && (e = 65536 + (e - 55296 << 10) + (n - 56320), s++)), e < 128 ? t[a++] = e : e < 2048 ? (t[a++] = 192 | e >>> 6, t[a++] = 128 | e & 63) : e < 65536 ? (t[a++] = 224 | e >>> 12, t[a++] = 128 | e >>> 6 & 63, t[a++] = 128 | e & 63) : (t[a++] = 240 | e >>> 18, t[a++] = 128 | e >>> 12 & 63, t[a++] = 128 | e >>> 6 & 63, t[a++] = 128 | e & 63);
1026
1026
  return t;
1027
1027
  };
1028
- const Sh = (r, t) => {
1028
+ const kh = (r, t) => {
1029
1029
  if (t < 65534 && r.subarray && mf)
1030
1030
  return String.fromCharCode.apply(null, r.length === t ? r : r.subarray(0, t));
1031
1031
  let e = "";
@@ -1033,52 +1033,52 @@ const Sh = (r, t) => {
1033
1033
  e += String.fromCharCode(r[n]);
1034
1034
  return e;
1035
1035
  };
1036
- var kh = (r, t) => {
1036
+ var Ph = (r, t) => {
1037
1037
  const e = t || r.length;
1038
1038
  if (typeof TextDecoder == "function" && TextDecoder.prototype.decode)
1039
1039
  return new TextDecoder().decode(r.subarray(0, t));
1040
1040
  let n, s;
1041
1041
  const a = new Array(e * 2);
1042
1042
  for (s = 0, n = 0; n < e; ) {
1043
- let c = r[n++];
1044
- if (c < 128) {
1045
- a[s++] = c;
1043
+ let f = r[n++];
1044
+ if (f < 128) {
1045
+ a[s++] = f;
1046
1046
  continue;
1047
1047
  }
1048
- let u = Oa[c];
1048
+ let u = Oa[f];
1049
1049
  if (u > 4) {
1050
1050
  a[s++] = 65533, n += u - 1;
1051
1051
  continue;
1052
1052
  }
1053
- for (c &= u === 2 ? 31 : u === 3 ? 15 : 7; u > 1 && n < e; )
1054
- c = c << 6 | r[n++] & 63, u--;
1053
+ for (f &= u === 2 ? 31 : u === 3 ? 15 : 7; u > 1 && n < e; )
1054
+ f = f << 6 | r[n++] & 63, u--;
1055
1055
  if (u > 1) {
1056
1056
  a[s++] = 65533;
1057
1057
  continue;
1058
1058
  }
1059
- c < 65536 ? a[s++] = c : (c -= 65536, a[s++] = 55296 | c >> 10 & 1023, a[s++] = 56320 | c & 1023);
1059
+ f < 65536 ? a[s++] = f : (f -= 65536, a[s++] = 55296 | f >> 10 & 1023, a[s++] = 56320 | f & 1023);
1060
1060
  }
1061
- return Sh(a, s);
1062
- }, Ph = (r, t) => {
1061
+ return kh(a, s);
1062
+ }, Mh = (r, t) => {
1063
1063
  t = t || r.length, t > r.length && (t = r.length);
1064
1064
  let e = t - 1;
1065
1065
  for (; e >= 0 && (r[e] & 192) === 128; )
1066
1066
  e--;
1067
1067
  return e < 0 || e === 0 ? t : e + Oa[r[e]] > t ? e : t;
1068
1068
  }, Xo = {
1069
- string2buf: _h,
1070
- buf2string: kh,
1071
- utf8border: Ph
1069
+ string2buf: Sh,
1070
+ buf2string: Ph,
1071
+ utf8border: Mh
1072
1072
  };
1073
- function Mh() {
1073
+ function Ih() {
1074
1074
  this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
1075
1075
  }
1076
- var Ih = Mh;
1077
- const vs = 16209, Eh = 16191;
1078
- var Ch = function(t, e) {
1079
- let n, s, a, c, u, f, d, g, x, N, p, j, P, O, k, G, Y, q, it, mt, dt, K, R, tt;
1076
+ var Eh = Ih;
1077
+ const vs = 16209, Ch = 16191;
1078
+ var Fh = function(t, e) {
1079
+ let n, s, a, f, u, c, d, g, x, N, p, j, P, O, k, G, Y, q, it, mt, dt, K, R, tt;
1080
1080
  const _ = t.state;
1081
- n = t.next_in, R = t.input, s = n + (t.avail_in - 5), a = t.next_out, tt = t.output, c = a - (e - t.avail_out), u = a + (t.avail_out - 257), f = _.dmax, d = _.wsize, g = _.whave, x = _.wnext, N = _.window, p = _.hold, j = _.bits, P = _.lencode, O = _.distcode, k = (1 << _.lenbits) - 1, G = (1 << _.distbits) - 1;
1081
+ n = t.next_in, R = t.input, s = n + (t.avail_in - 5), a = t.next_out, tt = t.output, f = a - (e - t.avail_out), u = a + (t.avail_out - 257), c = _.dmax, d = _.wsize, g = _.whave, x = _.wnext, N = _.window, p = _.hold, j = _.bits, P = _.lencode, O = _.distcode, k = (1 << _.lenbits) - 1, G = (1 << _.distbits) - 1;
1082
1082
  t:
1083
1083
  do {
1084
1084
  j < 15 && (p += R[n++] << j, j += 8, p += R[n++] << j, j += 8), Y = P[p & k];
@@ -1091,11 +1091,11 @@ var Ch = function(t, e) {
1091
1091
  r:
1092
1092
  for (; ; ) {
1093
1093
  if (q = Y >>> 24, p >>>= q, j -= q, q = Y >>> 16 & 255, q & 16) {
1094
- if (mt = Y & 65535, q &= 15, j < q && (p += R[n++] << j, j += 8, j < q && (p += R[n++] << j, j += 8)), mt += p & (1 << q) - 1, mt > f) {
1094
+ if (mt = Y & 65535, q &= 15, j < q && (p += R[n++] << j, j += 8, j < q && (p += R[n++] << j, j += 8)), mt += p & (1 << q) - 1, mt > c) {
1095
1095
  t.msg = "invalid distance too far back", _.mode = vs;
1096
1096
  break t;
1097
1097
  }
1098
- if (p >>>= q, j -= q, q = a - c, mt > q) {
1098
+ if (p >>>= q, j -= q, q = a - f, mt > q) {
1099
1099
  if (q = mt - q, q > g && _.sane) {
1100
1100
  t.msg = "invalid distance too far back", _.mode = vs;
1101
1101
  break t;
@@ -1152,7 +1152,7 @@ var Ch = function(t, e) {
1152
1152
  Y = P[(Y & 65535) + (p & (1 << q) - 1)];
1153
1153
  continue e;
1154
1154
  } else if (q & 32) {
1155
- _.mode = Eh;
1155
+ _.mode = Ch;
1156
1156
  break t;
1157
1157
  } else {
1158
1158
  t.msg = "invalid literal/length code", _.mode = vs;
@@ -1163,7 +1163,7 @@ var Ch = function(t, e) {
1163
1163
  } while (n < s && a < u);
1164
1164
  it = j >> 3, n -= it, j -= it << 3, p &= (1 << j) - 1, t.next_in = n, t.next_out = a, t.avail_in = n < s ? 5 + (s - n) : 5 - (n - s), t.avail_out = a < u ? 257 + (u - a) : 257 - (a - u), _.hold = p, _.bits = j;
1165
1165
  };
1166
- const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array([
1166
+ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, jh = new Uint16Array([
1167
1167
  /* Length codes 257..285 base */
1168
1168
  3,
1169
1169
  4,
@@ -1196,7 +1196,7 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1196
1196
  258,
1197
1197
  0,
1198
1198
  0
1199
- ]), jh = new Uint8Array([
1199
+ ]), Oh = new Uint8Array([
1200
1200
  /* Length codes 257..285 extra */
1201
1201
  16,
1202
1202
  16,
@@ -1229,7 +1229,7 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1229
1229
  16,
1230
1230
  199,
1231
1231
  75
1232
- ]), Oh = new Uint16Array([
1232
+ ]), Bh = new Uint16Array([
1233
1233
  /* Distance codes 0..29 base */
1234
1234
  1,
1235
1235
  2,
@@ -1263,7 +1263,7 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1263
1263
  24577,
1264
1264
  0,
1265
1265
  0
1266
- ]), Bh = new Uint8Array([
1266
+ ]), Rh = new Uint8Array([
1267
1267
  /* Distance codes 0..29 extra */
1268
1268
  16,
1269
1269
  16,
@@ -1297,8 +1297,8 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1297
1297
  29,
1298
1298
  64,
1299
1299
  64
1300
- ]), Rh = (r, t, e, n, s, a, c, u) => {
1301
- const f = u.bits;
1300
+ ]), Th = (r, t, e, n, s, a, f, u) => {
1301
+ const c = u.bits;
1302
1302
  let d = 0, g = 0, x = 0, N = 0, p = 0, j = 0, P = 0, O = 0, k = 0, G = 0, Y, q, it, mt, dt, K = null, R;
1303
1303
  const tt = new Uint16Array(Xi + 1), _ = new Uint16Array(Xi + 1);
1304
1304
  let F = null, z, U, nt;
@@ -1306,7 +1306,7 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1306
1306
  tt[d] = 0;
1307
1307
  for (g = 0; g < n; g++)
1308
1308
  tt[t[e + g]]++;
1309
- for (p = f, N = Xi; N >= 1 && tt[N] === 0; N--)
1309
+ for (p = c, N = Xi; N >= 1 && tt[N] === 0; N--)
1310
1310
  ;
1311
1311
  if (p > N && (p = N), N === 0)
1312
1312
  return s[a++] = 1 << 24 | 64 << 16 | 0, s[a++] = 1 << 24 | 64 << 16 | 0, u.bits = 1, 0;
@@ -1320,11 +1320,11 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1320
1320
  for (_[1] = 0, d = 1; d < Xi; d++)
1321
1321
  _[d + 1] = _[d] + tt[d];
1322
1322
  for (g = 0; g < n; g++)
1323
- t[e + g] !== 0 && (c[_[t[e + g]]++] = g);
1324
- if (r === Zu ? (K = F = c, R = 20) : r === Lo ? (K = Fh, F = jh, R = 257) : (K = Oh, F = Bh, R = 0), G = 0, g = 0, d = x, dt = a, j = p, P = 0, it = -1, k = 1 << p, mt = k - 1, r === Lo && k > Ku || r === Qu && k > $u)
1323
+ t[e + g] !== 0 && (f[_[t[e + g]]++] = g);
1324
+ if (r === Zu ? (K = F = f, R = 20) : r === Lo ? (K = jh, F = Oh, R = 257) : (K = Bh, F = Rh, R = 0), G = 0, g = 0, d = x, dt = a, j = p, P = 0, it = -1, k = 1 << p, mt = k - 1, r === Lo && k > Ku || r === Qu && k > $u)
1325
1325
  return 1;
1326
1326
  for (; ; ) {
1327
- z = d - P, c[g] + 1 < R ? (U = 0, nt = c[g]) : c[g] >= R ? (U = F[c[g] - R], nt = K[c[g] - R]) : (U = 96, nt = 0), Y = 1 << d - P, q = 1 << j, x = q;
1327
+ z = d - P, f[g] + 1 < R ? (U = 0, nt = f[g]) : f[g] >= R ? (U = F[f[g] - R], nt = K[f[g] - R]) : (U = 96, nt = 0), Y = 1 << d - P, q = 1 << j, x = q;
1328
1328
  do
1329
1329
  q -= Y, s[dt + (G >> P) + q] = z << 24 | U << 16 | nt | 0;
1330
1330
  while (q !== 0);
@@ -1333,7 +1333,7 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1333
1333
  if (Y !== 0 ? (G &= Y - 1, G += Y) : G = 0, g++, --tt[d] === 0) {
1334
1334
  if (d === N)
1335
1335
  break;
1336
- d = t[e + c[g]];
1336
+ d = t[e + f[g]];
1337
1337
  }
1338
1338
  if (d > p && (G & mt) !== it) {
1339
1339
  for (P === 0 && (P = p), dt += x, j = d - P, O = 1 << j; j + P < N && (O -= tt[j + P], !(O <= 0)); )
@@ -1345,21 +1345,21 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Fh = new Uint16Array(
1345
1345
  }
1346
1346
  return G !== 0 && (s[dt + G] = d - P << 24 | 64 << 16 | 0), u.bits = p, 0;
1347
1347
  };
1348
- var Fa = Rh;
1349
- const Th = 0, vf = 1, bf = 2, {
1348
+ var Fa = Th;
1349
+ const Dh = 0, vf = 1, bf = 2, {
1350
1350
  Z_FINISH: tl,
1351
- Z_BLOCK: Dh,
1351
+ Z_BLOCK: qh,
1352
1352
  Z_TREES: bs,
1353
1353
  Z_OK: Ai,
1354
- Z_STREAM_END: qh,
1355
- Z_NEED_DICT: Uh,
1354
+ Z_STREAM_END: Uh,
1355
+ Z_NEED_DICT: zh,
1356
1356
  Z_STREAM_ERROR: zr,
1357
1357
  Z_DATA_ERROR: wf,
1358
1358
  Z_MEM_ERROR: yf,
1359
- Z_BUF_ERROR: zh,
1359
+ Z_BUF_ERROR: Hh,
1360
1360
  Z_DEFLATED: el
1361
- } = pf, Ts = 16180, rl = 16181, nl = 16182, il = 16183, al = 16184, sl = 16185, ol = 16186, ul = 16187, ll = 16188, fl = 16189, Es = 16190, Cn = 16191, _o = 16192, cl = 16193, So = 16194, hl = 16195, dl = 16196, pl = 16197, gl = 16198, ws = 16199, ys = 16200, ml = 16201, vl = 16202, bl = 16203, wl = 16204, yl = 16205, ko = 16206, xl = 16207, Al = 16208, Oe = 16209, xf = 16210, Af = 16211, Hh = 852, Wh = 592, Gh = 15, Vh = Gh, Nl = (r) => (r >>> 24 & 255) + (r >>> 8 & 65280) + ((r & 65280) << 8) + ((r & 255) << 24);
1362
- function Yh() {
1361
+ } = pf, Ts = 16180, rl = 16181, nl = 16182, il = 16183, al = 16184, sl = 16185, ol = 16186, ul = 16187, ll = 16188, fl = 16189, Es = 16190, Cn = 16191, _o = 16192, cl = 16193, So = 16194, hl = 16195, dl = 16196, pl = 16197, gl = 16198, ws = 16199, ys = 16200, ml = 16201, vl = 16202, bl = 16203, wl = 16204, yl = 16205, ko = 16206, xl = 16207, Al = 16208, Oe = 16209, xf = 16210, Af = 16211, Wh = 852, Gh = 592, Vh = 15, Yh = Vh, Nl = (r) => (r >>> 24 & 255) + (r >>> 8 & 65280) + ((r & 65280) << 8) + ((r & 255) << 24);
1362
+ function Xh() {
1363
1363
  this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
1364
1364
  }
1365
1365
  const Li = (r) => {
@@ -1371,7 +1371,7 @@ const Li = (r) => {
1371
1371
  if (Li(r))
1372
1372
  return zr;
1373
1373
  const t = r.state;
1374
- return r.total_in = r.total_out = t.total = 0, r.msg = "", t.wrap && (r.adler = t.wrap & 1), t.mode = Ts, t.last = 0, t.havedict = 0, t.flags = -1, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new Int32Array(Hh), t.distcode = t.distdyn = new Int32Array(Wh), t.sane = 1, t.back = -1, Ai;
1374
+ return r.total_in = r.total_out = t.total = 0, r.msg = "", t.wrap && (r.adler = t.wrap & 1), t.mode = Ts, t.last = 0, t.havedict = 0, t.flags = -1, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new Int32Array(Wh), t.distcode = t.distdyn = new Int32Array(Gh), t.sane = 1, t.back = -1, Ai;
1375
1375
  }, Lf = (r) => {
1376
1376
  if (Li(r))
1377
1377
  return zr;
@@ -1386,13 +1386,13 @@ const Li = (r) => {
1386
1386
  }, Sf = (r, t) => {
1387
1387
  if (!r)
1388
1388
  return zr;
1389
- const e = new Yh();
1389
+ const e = new Xh();
1390
1390
  r.state = e, e.strm = r, e.window = null, e.mode = Ts;
1391
1391
  const n = _f(r, t);
1392
1392
  return n !== Ai && (r.state = null), n;
1393
- }, Xh = (r) => Sf(r, Vh);
1393
+ }, Jh = (r) => Sf(r, Yh);
1394
1394
  let Ll = !0, Po, Mo;
1395
- const Jh = (r) => {
1395
+ const Kh = (r) => {
1396
1396
  if (Ll) {
1397
1397
  Po = new Int32Array(512), Mo = new Int32Array(32);
1398
1398
  let t = 0;
@@ -1413,8 +1413,8 @@ const Jh = (r) => {
1413
1413
  let s;
1414
1414
  const a = r.state;
1415
1415
  return a.window === null && (a.window = new Uint8Array(1 << a.wbits)), a.wsize === 0 && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0), n >= a.wsize ? (a.window.set(t.subarray(e - a.wsize, e), 0), a.wnext = 0, a.whave = a.wsize) : (s = a.wsize - a.wnext, s > n && (s = n), a.window.set(t.subarray(e - n, e - n + s), a.wnext), n -= s, n ? (a.window.set(t.subarray(e - n, e), 0), a.wnext = n, a.whave = a.wsize) : (a.wnext += s, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += s))), 0;
1416
- }, Kh = (r, t) => {
1417
- let e, n, s, a, c, u, f, d, g, x, N, p, j, P, O = 0, k, G, Y, q, it, mt, dt, K;
1416
+ }, $h = (r, t) => {
1417
+ let e, n, s, a, f, u, c, d, g, x, N, p, j, P, O = 0, k, G, Y, q, it, mt, dt, K;
1418
1418
  const R = new Uint8Array(4);
1419
1419
  let tt, _;
1420
1420
  const F = (
@@ -1423,7 +1423,7 @@ const Jh = (r) => {
1423
1423
  );
1424
1424
  if (Li(r) || !r.output || !r.input && r.avail_in !== 0)
1425
1425
  return zr;
1426
- e = r.state, e.mode === Cn && (e.mode = _o), c = r.next_out, s = r.output, f = r.avail_out, a = r.next_in, n = r.input, u = r.avail_in, d = e.hold, g = e.bits, x = u, N = f, K = Ai;
1426
+ e = r.state, e.mode === Cn && (e.mode = _o), f = r.next_out, s = r.output, c = r.avail_out, a = r.next_in, n = r.input, u = r.avail_in, d = e.hold, g = e.bits, x = u, N = c, K = Ai;
1427
1427
  t:
1428
1428
  for (; ; )
1429
1429
  switch (e.mode) {
@@ -1564,11 +1564,11 @@ const Jh = (r) => {
1564
1564
  /* falls through */
1565
1565
  case Es:
1566
1566
  if (e.havedict === 0)
1567
- return r.next_out = c, r.avail_out = f, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, Uh;
1567
+ return r.next_out = f, r.avail_out = c, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, zh;
1568
1568
  r.adler = e.check = 1, e.mode = Cn;
1569
1569
  /* falls through */
1570
1570
  case Cn:
1571
- if (t === Dh || t === bs)
1571
+ if (t === qh || t === bs)
1572
1572
  break t;
1573
1573
  /* falls through */
1574
1574
  case _o:
@@ -1586,7 +1586,7 @@ const Jh = (r) => {
1586
1586
  e.mode = cl;
1587
1587
  break;
1588
1588
  case 1:
1589
- if (Jh(e), e.mode = ws, t === bs) {
1589
+ if (Kh(e), e.mode = ws, t === bs) {
1590
1590
  d >>>= 2, g -= 2;
1591
1591
  break t;
1592
1592
  }
@@ -1617,9 +1617,9 @@ const Jh = (r) => {
1617
1617
  /* falls through */
1618
1618
  case hl:
1619
1619
  if (p = e.length, p) {
1620
- if (p > u && (p = u), p > f && (p = f), p === 0)
1620
+ if (p > u && (p = u), p > c && (p = c), p === 0)
1621
1621
  break t;
1622
- s.set(n.subarray(a, a + p), c), u -= p, a += p, f -= p, c += p, e.length -= p;
1622
+ s.set(n.subarray(a, a + p), f), u -= p, a += p, c -= p, f += p, e.length -= p;
1623
1623
  break;
1624
1624
  }
1625
1625
  e.mode = Cn;
@@ -1647,7 +1647,7 @@ const Jh = (r) => {
1647
1647
  }
1648
1648
  for (; e.have < 19; )
1649
1649
  e.lens[F[e.have++]] = 0;
1650
- if (e.lencode = e.lendyn, e.lenbits = 7, tt = { bits: e.lenbits }, K = Fa(Th, e.lens, 0, 19, e.lencode, 0, e.work, tt), e.lenbits = tt.bits, K) {
1650
+ if (e.lencode = e.lendyn, e.lenbits = 7, tt = { bits: e.lenbits }, K = Fa(Dh, e.lens, 0, 19, e.lencode, 0, e.work, tt), e.lenbits = tt.bits, K) {
1651
1651
  r.msg = "invalid code lengths set", e.mode = Oe;
1652
1652
  break;
1653
1653
  }
@@ -1718,8 +1718,8 @@ const Jh = (r) => {
1718
1718
  e.mode = ys;
1719
1719
  /* falls through */
1720
1720
  case ys:
1721
- if (u >= 6 && f >= 258) {
1722
- r.next_out = c, r.avail_out = f, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, Ch(r, N), c = r.next_out, s = r.output, f = r.avail_out, a = r.next_in, n = r.input, u = r.avail_in, d = e.hold, g = e.bits, e.mode === Cn && (e.back = -1);
1721
+ if (u >= 6 && c >= 258) {
1722
+ r.next_out = f, r.avail_out = c, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, Fh(r, N), f = r.next_out, s = r.output, c = r.avail_out, a = r.next_in, n = r.input, u = r.avail_in, d = e.hold, g = e.bits, e.mode === Cn && (e.back = -1);
1723
1723
  break;
1724
1724
  }
1725
1725
  for (e.back = 0; O = e.lencode[d & (1 << e.lenbits) - 1], k = O >>> 24, G = O >>> 16 & 255, Y = O & 65535, !(k <= g); ) {
@@ -1796,26 +1796,26 @@ const Jh = (r) => {
1796
1796
  e.mode = wl;
1797
1797
  /* falls through */
1798
1798
  case wl:
1799
- if (f === 0)
1799
+ if (c === 0)
1800
1800
  break t;
1801
- if (p = N - f, e.offset > p) {
1801
+ if (p = N - c, e.offset > p) {
1802
1802
  if (p = e.offset - p, p > e.whave && e.sane) {
1803
1803
  r.msg = "invalid distance too far back", e.mode = Oe;
1804
1804
  break;
1805
1805
  }
1806
1806
  p > e.wnext ? (p -= e.wnext, j = e.wsize - p) : j = e.wnext - p, p > e.length && (p = e.length), P = e.window;
1807
1807
  } else
1808
- P = s, j = c - e.offset, p = e.length;
1809
- p > f && (p = f), f -= p, e.length -= p;
1808
+ P = s, j = f - e.offset, p = e.length;
1809
+ p > c && (p = c), c -= p, e.length -= p;
1810
1810
  do
1811
- s[c++] = P[j++];
1811
+ s[f++] = P[j++];
1812
1812
  while (--p);
1813
1813
  e.length === 0 && (e.mode = ys);
1814
1814
  break;
1815
1815
  case yl:
1816
- if (f === 0)
1816
+ if (c === 0)
1817
1817
  break t;
1818
- s[c++] = e.length, f--, e.mode = ys;
1818
+ s[f++] = e.length, c--, e.mode = ys;
1819
1819
  break;
1820
1820
  case ko:
1821
1821
  if (e.wrap) {
@@ -1824,8 +1824,8 @@ const Jh = (r) => {
1824
1824
  break t;
1825
1825
  u--, d |= n[a++] << g, g += 8;
1826
1826
  }
1827
- if (N -= f, r.total_out += N, e.total += N, e.wrap & 4 && N && (r.adler = e.check = /*UPDATE_CHECK(state.check, put - _out, _out);*/
1828
- e.flags ? hn(e.check, s, N, c - N) : Vo(e.check, s, N, c - N)), N = f, e.wrap & 4 && (e.flags ? d : Nl(d)) !== e.check) {
1827
+ if (N -= c, r.total_out += N, e.total += N, e.wrap & 4 && N && (r.adler = e.check = /*UPDATE_CHECK(state.check, put - _out, _out);*/
1828
+ e.flags ? hn(e.check, s, N, f - N) : Vo(e.check, s, N, f - N)), N = c, e.wrap & 4 && (e.flags ? d : Nl(d)) !== e.check) {
1829
1829
  r.msg = "incorrect data check", e.mode = Oe;
1830
1830
  break;
1831
1831
  }
@@ -1849,7 +1849,7 @@ const Jh = (r) => {
1849
1849
  e.mode = Al;
1850
1850
  /* falls through */
1851
1851
  case Al:
1852
- K = qh;
1852
+ K = Uh;
1853
1853
  break t;
1854
1854
  case Oe:
1855
1855
  K = wf;
@@ -1861,92 +1861,92 @@ const Jh = (r) => {
1861
1861
  default:
1862
1862
  return zr;
1863
1863
  }
1864
- return r.next_out = c, r.avail_out = f, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, (e.wsize || N !== r.avail_out && e.mode < Oe && (e.mode < ko || t !== tl)) && kf(r, r.output, r.next_out, N - r.avail_out), x -= r.avail_in, N -= r.avail_out, r.total_in += x, r.total_out += N, e.total += N, e.wrap & 4 && N && (r.adler = e.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
1865
- e.flags ? hn(e.check, s, N, r.next_out - N) : Vo(e.check, s, N, r.next_out - N)), r.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === Cn ? 128 : 0) + (e.mode === ws || e.mode === So ? 256 : 0), (x === 0 && N === 0 || t === tl) && K === Ai && (K = zh), K;
1866
- }, $h = (r) => {
1864
+ return r.next_out = f, r.avail_out = c, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, (e.wsize || N !== r.avail_out && e.mode < Oe && (e.mode < ko || t !== tl)) && kf(r, r.output, r.next_out, N - r.avail_out), x -= r.avail_in, N -= r.avail_out, r.total_in += x, r.total_out += N, e.total += N, e.wrap & 4 && N && (r.adler = e.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
1865
+ e.flags ? hn(e.check, s, N, r.next_out - N) : Vo(e.check, s, N, r.next_out - N)), r.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === Cn ? 128 : 0) + (e.mode === ws || e.mode === So ? 256 : 0), (x === 0 && N === 0 || t === tl) && K === Ai && (K = Hh), K;
1866
+ }, Zh = (r) => {
1867
1867
  if (Li(r))
1868
1868
  return zr;
1869
1869
  let t = r.state;
1870
1870
  return t.window && (t.window = null), r.state = null, Ai;
1871
- }, Zh = (r, t) => {
1871
+ }, Qh = (r, t) => {
1872
1872
  if (Li(r))
1873
1873
  return zr;
1874
1874
  const e = r.state;
1875
1875
  return (e.wrap & 2) === 0 ? zr : (e.head = t, t.done = !1, Ai);
1876
- }, Qh = (r, t) => {
1876
+ }, t1 = (r, t) => {
1877
1877
  const e = t.length;
1878
1878
  let n, s, a;
1879
1879
  return Li(r) || (n = r.state, n.wrap !== 0 && n.mode !== Es) ? zr : n.mode === Es && (s = 1, s = Vo(s, t, e, 0), s !== n.check) ? wf : (a = kf(r, t, e, e), a ? (n.mode = xf, yf) : (n.havedict = 1, Ai));
1880
1880
  };
1881
- var t1 = Lf, e1 = _f, r1 = Nf, n1 = Xh, i1 = Sf, a1 = Kh, s1 = $h, o1 = Zh, u1 = Qh, l1 = "pako inflate (from Nodeca project)", pn = {
1882
- inflateReset: t1,
1883
- inflateReset2: e1,
1884
- inflateResetKeep: r1,
1885
- inflateInit: n1,
1886
- inflateInit2: i1,
1887
- inflate: a1,
1888
- inflateEnd: s1,
1889
- inflateGetHeader: o1,
1890
- inflateSetDictionary: u1,
1891
- inflateInfo: l1
1881
+ var e1 = Lf, r1 = _f, n1 = Nf, i1 = Jh, a1 = Sf, s1 = $h, o1 = Zh, u1 = Qh, l1 = t1, f1 = "pako inflate (from Nodeca project)", pn = {
1882
+ inflateReset: e1,
1883
+ inflateReset2: r1,
1884
+ inflateResetKeep: n1,
1885
+ inflateInit: i1,
1886
+ inflateInit2: a1,
1887
+ inflate: s1,
1888
+ inflateEnd: o1,
1889
+ inflateGetHeader: u1,
1890
+ inflateSetDictionary: l1,
1891
+ inflateInfo: f1
1892
1892
  };
1893
- function f1() {
1893
+ function c1() {
1894
1894
  this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
1895
1895
  }
1896
- var c1 = f1;
1896
+ var h1 = c1;
1897
1897
  const Pf = Object.prototype.toString, {
1898
- Z_NO_FLUSH: h1,
1898
+ Z_NO_FLUSH: d1,
1899
1899
  Z_FINISH: _l,
1900
1900
  Z_OK: ta,
1901
1901
  Z_STREAM_END: Io,
1902
1902
  Z_NEED_DICT: Eo,
1903
- Z_STREAM_ERROR: d1,
1903
+ Z_STREAM_ERROR: p1,
1904
1904
  Z_DATA_ERROR: Sl,
1905
- Z_MEM_ERROR: p1,
1905
+ Z_MEM_ERROR: g1,
1906
1906
  Z_BUF_ERROR: kl
1907
- } = pf, g1 = {
1907
+ } = pf, m1 = {
1908
1908
  chunkSize: 1024 * 64,
1909
1909
  windowBits: 15,
1910
1910
  to: ""
1911
1911
  };
1912
1912
  function Ba(r) {
1913
- this.options = gf.assign({}, g1, r || {});
1913
+ this.options = gf.assign({}, m1, r || {});
1914
1914
  const t = this.options;
1915
- t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(r && r.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15) === 0 && (t.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Ih(), this.strm.avail_out = 0;
1915
+ t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(r && r.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15) === 0 && (t.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Eh(), this.strm.avail_out = 0;
1916
1916
  let e = pn.inflateInit2(
1917
1917
  this.strm,
1918
1918
  t.windowBits
1919
1919
  );
1920
1920
  if (e !== ta)
1921
1921
  throw new Error(Yo[e]);
1922
- if (this.header = new c1(), pn.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = Xo.string2buf(t.dictionary) : Pf.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (e = pn.inflateSetDictionary(this.strm, t.dictionary), e !== ta)))
1922
+ if (this.header = new h1(), pn.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = Xo.string2buf(t.dictionary) : Pf.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (e = pn.inflateSetDictionary(this.strm, t.dictionary), e !== ta)))
1923
1923
  throw new Error(Yo[e]);
1924
1924
  }
1925
1925
  Ba.prototype.push = function(r, t) {
1926
1926
  const e = this.strm, n = this.options.chunkSize, s = this.options.dictionary;
1927
- let a, c, u;
1927
+ let a, f, u;
1928
1928
  if (this.ended) return !1;
1929
- for (t === ~~t ? c = t : c = t === !0 ? _l : h1, Pf.call(r) === "[object ArrayBuffer]" ? e.input = new Uint8Array(r) : e.input = r, e.next_in = 0, e.avail_in = e.input.length; ; ) {
1930
- for (e.avail_out === 0 && (e.output = new Uint8Array(n), e.next_out = 0, e.avail_out = n), a = pn.inflate(e, c), a === Eo && s && (a = pn.inflateSetDictionary(e, s), a === ta ? a = pn.inflate(e, c) : a === Sl && (a = Eo)); e.avail_in > 0 && a === Io && e.state.wrap & 2 && e.state.flags !== 0 && e.input[e.next_in] !== 0; )
1931
- pn.inflateReset(e), a = pn.inflate(e, c);
1929
+ for (t === ~~t ? f = t : f = t === !0 ? _l : d1, Pf.call(r) === "[object ArrayBuffer]" ? e.input = new Uint8Array(r) : e.input = r, e.next_in = 0, e.avail_in = e.input.length; ; ) {
1930
+ for (e.avail_out === 0 && (e.output = new Uint8Array(n), e.next_out = 0, e.avail_out = n), a = pn.inflate(e, f), a === Eo && s && (a = pn.inflateSetDictionary(e, s), a === ta ? a = pn.inflate(e, f) : a === Sl && (a = Eo)); e.avail_in > 0 && a === Io && e.state.wrap & 2 && e.state.flags !== 0 && e.input[e.next_in] !== 0; )
1931
+ pn.inflateReset(e), a = pn.inflate(e, f);
1932
1932
  switch (a) {
1933
- case d1:
1933
+ case p1:
1934
1934
  case Sl:
1935
1935
  case Eo:
1936
- case p1:
1936
+ case g1:
1937
1937
  return this.onEnd(a), this.ended = !0, !1;
1938
1938
  }
1939
- if (u = e.avail_out, e.next_out && (e.avail_out === 0 || a === Io || c > 0))
1939
+ if (u = e.avail_out, e.next_out && (e.avail_out === 0 || a === Io || f > 0))
1940
1940
  if (this.options.to === "string") {
1941
- let f = Xo.utf8border(e.output, e.next_out), d = e.next_out - f, g = Xo.buf2string(e.output, f);
1942
- e.next_out = d, e.avail_out = n - d, d && e.output.set(e.output.subarray(f, f + d), 0), this.onData(g);
1941
+ let c = Xo.utf8border(e.output, e.next_out), d = e.next_out - c, g = Xo.buf2string(e.output, c);
1942
+ e.next_out = d, e.avail_out = n - d, d && e.output.set(e.output.subarray(c, c + d), 0), this.onData(g);
1943
1943
  } else
1944
1944
  this.onData(e.output.length === e.next_out ? e.output : e.output.subarray(0, e.next_out)), e.avail_out = 0, e.next_out = 0;
1945
1945
  if (!((a === ta || a === kl) && u === 0)) {
1946
1946
  if (a === Io)
1947
1947
  return a = pn.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, !0;
1948
1948
  if (e.avail_in === 0) {
1949
- if (c === _l)
1949
+ if (f === _l)
1950
1950
  return a = pn.inflateEnd(this.strm), this.onEnd(a === ta ? kl : a), this.ended = !0, !1;
1951
1951
  break;
1952
1952
  }
@@ -1960,17 +1960,17 @@ Ba.prototype.onData = function(r) {
1960
1960
  Ba.prototype.onEnd = function(r) {
1961
1961
  r === ta && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = gf.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
1962
1962
  };
1963
- function m1(r, t) {
1963
+ function v1(r, t) {
1964
1964
  const e = new Ba(t);
1965
1965
  if (e.push(r, !0), e.err) throw e.msg || Yo[e.err];
1966
1966
  return e.result;
1967
1967
  }
1968
- var v1 = Ba, b1 = m1, w1 = {
1969
- Inflate: v1,
1970
- inflate: b1
1968
+ var b1 = Ba, w1 = v1, y1 = {
1969
+ Inflate: b1,
1970
+ inflate: w1
1971
1971
  };
1972
- const { Inflate: y1, inflate: x1 } = w1;
1973
- var A1 = y1, N1 = x1;
1972
+ const { Inflate: x1, inflate: A1 } = y1;
1973
+ var N1 = x1, L1 = A1;
1974
1974
  const Co = [137, 80, 78, 71, 13, 10, 26, 10], Mf = [];
1975
1975
  for (let r = 0; r < 256; r++) {
1976
1976
  let t = r;
@@ -1979,14 +1979,14 @@ for (let r = 0; r < 256; r++) {
1979
1979
  Mf[r] = t;
1980
1980
  }
1981
1981
  const Pl = 4294967295;
1982
- function L1(r, t, e) {
1982
+ function _1(r, t, e) {
1983
1983
  let n = r;
1984
1984
  for (let s = 0; s < e; s++)
1985
1985
  n = Mf[(n ^ t[s]) & 255] ^ n >>> 8;
1986
1986
  return n;
1987
1987
  }
1988
- function _1(r, t) {
1989
- return (L1(Pl, r, t) ^ Pl) >>> 0;
1988
+ function S1(r, t) {
1989
+ return (_1(Pl, r, t) ^ Pl) >>> 0;
1990
1990
  }
1991
1991
  var $r;
1992
1992
  (function(r) {
@@ -2004,12 +2004,12 @@ var Fs;
2004
2004
  (function(r) {
2005
2005
  r[r.UNKNOWN = -1] = "UNKNOWN", r[r.NO_INTERLACE = 0] = "NO_INTERLACE", r[r.ADAM7 = 1] = "ADAM7";
2006
2006
  })(Fs || (Fs = {}));
2007
- const S1 = new Uint8Array(0), Ml = "\0", k1 = new Uint16Array([255]), P1 = new Uint8Array(k1.buffer), M1 = P1[0] === 255;
2008
- class I1 extends ru {
2007
+ const k1 = new Uint8Array(0), Ml = "\0", P1 = new Uint16Array([255]), M1 = new Uint8Array(P1.buffer), I1 = M1[0] === 255;
2008
+ class E1 extends ru {
2009
2009
  constructor(t, e = {}) {
2010
2010
  super(t);
2011
2011
  const { checkCrc: n = !1 } = e;
2012
- this._checkCrc = n, this._inflator = new A1(), this._png = {
2012
+ this._checkCrc = n, this._inflator = new N1(), this._png = {
2013
2013
  width: -1,
2014
2014
  height: -1,
2015
2015
  channels: -1,
@@ -2066,16 +2066,16 @@ class I1 extends ru {
2066
2066
  if (this.offset - n !== t)
2067
2067
  throw new Error(`Length mismatch while decoding chunk ${e}`);
2068
2068
  if (this._checkCrc) {
2069
- const s = this.readUint32(), a = t + 4, c = _1(new Uint8Array(this.buffer, this.byteOffset + this.offset - a - 4, a), a);
2070
- if (c !== s)
2071
- throw new Error(`CRC mismatch for chunk ${e}. Expected ${s}, found ${c}`);
2069
+ const s = this.readUint32(), a = t + 4, f = S1(new Uint8Array(this.buffer, this.byteOffset + this.offset - a - 4, a), a);
2070
+ if (f !== s)
2071
+ throw new Error(`CRC mismatch for chunk ${e}. Expected ${s}, found ${f}`);
2072
2072
  } else
2073
2073
  this.skip(4);
2074
2074
  }
2075
2075
  // https://www.w3.org/TR/PNG/#11IHDR
2076
2076
  decodeIHDR() {
2077
2077
  const t = this._png;
2078
- t.width = this.readUint32(), t.height = this.readUint32(), t.depth = T1(this.readUint8());
2078
+ t.width = this.readUint32(), t.height = this.readUint32(), t.depth = D1(this.readUint8());
2079
2079
  const e = this.readUint8();
2080
2080
  this._colorType = e;
2081
2081
  let n;
@@ -2158,7 +2158,7 @@ class I1 extends ru {
2158
2158
  const a = this.readBytes(t - e.length - 2);
2159
2159
  this._png.iccEmbeddedProfile = {
2160
2160
  name: e,
2161
- profile: N1(a)
2161
+ profile: L1(a)
2162
2162
  };
2163
2163
  }
2164
2164
  // https://www.w3.org/TR/PNG/#11tEXt
@@ -2186,51 +2186,51 @@ class I1 extends ru {
2186
2186
  }
2187
2187
  decodeInterlaceNull(t) {
2188
2188
  const e = this._png.height, n = this._png.channels * this._png.depth / 8, s = this._png.width * n, a = new Uint8Array(this._png.height * s);
2189
- let c = S1, u = 0, f, d;
2189
+ let f = k1, u = 0, c, d;
2190
2190
  for (let g = 0; g < e; g++) {
2191
- switch (f = t.subarray(u + 1, u + 1 + s), d = a.subarray(g * s, (g + 1) * s), t[u]) {
2191
+ switch (c = t.subarray(u + 1, u + 1 + s), d = a.subarray(g * s, (g + 1) * s), t[u]) {
2192
2192
  case 0:
2193
- E1(f, d, s);
2193
+ C1(c, d, s);
2194
2194
  break;
2195
2195
  case 1:
2196
- C1(f, d, s, n);
2196
+ F1(c, d, s, n);
2197
2197
  break;
2198
2198
  case 2:
2199
- F1(f, d, c, s);
2199
+ j1(c, d, f, s);
2200
2200
  break;
2201
2201
  case 3:
2202
- j1(f, d, c, s, n);
2202
+ O1(c, d, f, s, n);
2203
2203
  break;
2204
2204
  case 4:
2205
- O1(f, d, c, s, n);
2205
+ B1(c, d, f, s, n);
2206
2206
  break;
2207
2207
  default:
2208
2208
  throw new Error(`Unsupported filter: ${t[u]}`);
2209
2209
  }
2210
- c = d, u += s + 1;
2210
+ f = d, u += s + 1;
2211
2211
  }
2212
2212
  if (this._hasPalette && (this._png.palette = this._palette), this._hasTransparency && (this._png.transparency = this._transparency), this._png.depth === 16) {
2213
2213
  const g = new Uint16Array(a.buffer);
2214
- if (M1)
2214
+ if (I1)
2215
2215
  for (let x = 0; x < g.length; x++)
2216
- g[x] = R1(g[x]);
2216
+ g[x] = T1(g[x]);
2217
2217
  this._png.data = g;
2218
2218
  } else
2219
2219
  this._png.data = a;
2220
2220
  }
2221
2221
  }
2222
- function E1(r, t, e) {
2222
+ function C1(r, t, e) {
2223
2223
  for (let n = 0; n < e; n++)
2224
2224
  t[n] = r[n];
2225
2225
  }
2226
- function C1(r, t, e, n) {
2226
+ function F1(r, t, e, n) {
2227
2227
  let s = 0;
2228
2228
  for (; s < n; s++)
2229
2229
  t[s] = r[s];
2230
2230
  for (; s < e; s++)
2231
2231
  t[s] = r[s] + t[s - n] & 255;
2232
2232
  }
2233
- function F1(r, t, e, n) {
2233
+ function j1(r, t, e, n) {
2234
2234
  let s = 0;
2235
2235
  if (e.length === 0)
2236
2236
  for (; s < n; s++)
@@ -2239,7 +2239,7 @@ function F1(r, t, e, n) {
2239
2239
  for (; s < n; s++)
2240
2240
  t[s] = r[s] + e[s] & 255;
2241
2241
  }
2242
- function j1(r, t, e, n, s) {
2242
+ function O1(r, t, e, n, s) {
2243
2243
  let a = 0;
2244
2244
  if (e.length === 0) {
2245
2245
  for (; a < s; a++)
@@ -2253,7 +2253,7 @@ function j1(r, t, e, n, s) {
2253
2253
  t[a] = r[a] + (t[a - s] + e[a] >> 1) & 255;
2254
2254
  }
2255
2255
  }
2256
- function O1(r, t, e, n, s) {
2256
+ function B1(r, t, e, n, s) {
2257
2257
  let a = 0;
2258
2258
  if (e.length === 0) {
2259
2259
  for (; a < s; a++)
@@ -2264,17 +2264,17 @@ function O1(r, t, e, n, s) {
2264
2264
  for (; a < s; a++)
2265
2265
  t[a] = r[a] + e[a] & 255;
2266
2266
  for (; a < n; a++)
2267
- t[a] = r[a] + B1(t[a - s], e[a], e[a - s]) & 255;
2267
+ t[a] = r[a] + R1(t[a - s], e[a], e[a - s]) & 255;
2268
2268
  }
2269
2269
  }
2270
- function B1(r, t, e) {
2271
- const n = r + t - e, s = Math.abs(n - r), a = Math.abs(n - t), c = Math.abs(n - e);
2272
- return s <= a && s <= c ? r : a <= c ? t : e;
2270
+ function R1(r, t, e) {
2271
+ const n = r + t - e, s = Math.abs(n - r), a = Math.abs(n - t), f = Math.abs(n - e);
2272
+ return s <= a && s <= f ? r : a <= f ? t : e;
2273
2273
  }
2274
- function R1(r) {
2274
+ function T1(r) {
2275
2275
  return (r & 255) << 8 | r >> 8 & 255;
2276
2276
  }
2277
- function T1(r) {
2277
+ function D1(r) {
2278
2278
  if (r !== 1 && r !== 2 && r !== 4 && r !== 8 && r !== 16)
2279
2279
  throw new Error(`invalid bit depth: ${r}`);
2280
2280
  return r;
@@ -2283,8 +2283,8 @@ var Il;
2283
2283
  (function(r) {
2284
2284
  r[r.UNKNOWN = 0] = "UNKNOWN", r[r.METRE = 1] = "METRE";
2285
2285
  })(Il || (Il = {}));
2286
- function D1(r, t) {
2287
- return new I1(r, t).decode();
2286
+ function q1(r, t) {
2287
+ return new E1(r, t).decode();
2288
2288
  }
2289
2289
  var Jt = /* @__PURE__ */ (function() {
2290
2290
  return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : this;
@@ -2343,17 +2343,17 @@ var bi = Jt.saveAs || ((typeof window > "u" ? "undefined" : xe(window)) !== "obj
2343
2343
  })(r, e), t);
2344
2344
  } : function(r, t, e, n) {
2345
2345
  if ((n = n || open("", "_blank")) && (n.document.title = n.document.body.innerText = "downloading..."), typeof r == "string") return jo(r, t, e);
2346
- var s = r.type === "application/octet-stream", a = /constructor/i.test(Jt.HTMLElement) || Jt.safari, c = /CriOS\/[\d]+/.test(navigator.userAgent);
2347
- if ((c || s && a) && (typeof FileReader > "u" ? "undefined" : xe(FileReader)) === "object") {
2346
+ var s = r.type === "application/octet-stream", a = /constructor/i.test(Jt.HTMLElement) || Jt.safari, f = /CriOS\/[\d]+/.test(navigator.userAgent);
2347
+ if ((f || s && a) && (typeof FileReader > "u" ? "undefined" : xe(FileReader)) === "object") {
2348
2348
  var u = new FileReader();
2349
2349
  u.onloadend = function() {
2350
2350
  var g = u.result;
2351
- g = c ? g : g.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = g : location = g, n = null;
2351
+ g = f ? g : g.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = g : location = g, n = null;
2352
2352
  }, u.readAsDataURL(r);
2353
2353
  } else {
2354
- var f = Jt.URL || Jt.webkitURL, d = f.createObjectURL(r);
2354
+ var c = Jt.URL || Jt.webkitURL, d = c.createObjectURL(r);
2355
2355
  n ? n.location = d : location.href = d, n = null, setTimeout(function() {
2356
- f.revokeObjectURL(d);
2356
+ c.revokeObjectURL(d);
2357
2357
  }, 4e4);
2358
2358
  }
2359
2359
  });
@@ -2367,14 +2367,14 @@ function If(r) {
2367
2367
  } }, { re: /^(\w{1})(\w{1})(\w{1})$/, example: ["#fb0", "f0f"], process: function(u) {
2368
2368
  return [parseInt(u[1] + u[1], 16), parseInt(u[2] + u[2], 16), parseInt(u[3] + u[3], 16)];
2369
2369
  } }], n = 0; n < e.length; n++) {
2370
- var s = e[n].re, a = e[n].process, c = s.exec(r);
2371
- c && (t = a(c), this.r = t[0], this.g = t[1], this.b = t[2], this.ok = !0);
2370
+ var s = e[n].re, a = e[n].process, f = s.exec(r);
2371
+ f && (t = a(f), this.r = t[0], this.g = t[1], this.b = t[2], this.ok = !0);
2372
2372
  }
2373
2373
  this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r, this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g, this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b, this.toRGB = function() {
2374
2374
  return "rgb(" + this.r + ", " + this.g + ", " + this.b + ")";
2375
2375
  }, this.toHex = function() {
2376
- var u = this.r.toString(16), f = this.g.toString(16), d = this.b.toString(16);
2377
- return u.length == 1 && (u = "0" + u), f.length == 1 && (f = "0" + f), d.length == 1 && (d = "0" + d), "#" + u + f + d;
2376
+ var u = this.r.toString(16), c = this.g.toString(16), d = this.b.toString(16);
2377
+ return u.length == 1 && (u = "0" + u), c.length == 1 && (c = "0" + c), d.length == 1 && (d = "0" + d), "#" + u + c + d;
2378
2378
  };
2379
2379
  }
2380
2380
  var _s = Jt.atob.bind(Jt), Cl = Jt.btoa.bind(Jt);
@@ -2385,49 +2385,49 @@ function Oo(r, t) {
2385
2385
  function Ds(r, t, e, n, s, a) {
2386
2386
  return t = Kn(Kn(t, r), Kn(n, a)), Kn(t << s | t >>> 32 - s, e);
2387
2387
  }
2388
- function pr(r, t, e, n, s, a, c) {
2389
- return Ds(t & e | ~t & n, r, t, s, a, c);
2388
+ function pr(r, t, e, n, s, a, f) {
2389
+ return Ds(t & e | ~t & n, r, t, s, a, f);
2390
2390
  }
2391
- function gr(r, t, e, n, s, a, c) {
2392
- return Ds(t & n | e & ~n, r, t, s, a, c);
2391
+ function gr(r, t, e, n, s, a, f) {
2392
+ return Ds(t & n | e & ~n, r, t, s, a, f);
2393
2393
  }
2394
- function mr(r, t, e, n, s, a, c) {
2395
- return Ds(t ^ e ^ n, r, t, s, a, c);
2394
+ function mr(r, t, e, n, s, a, f) {
2395
+ return Ds(t ^ e ^ n, r, t, s, a, f);
2396
2396
  }
2397
- function vr(r, t, e, n, s, a, c) {
2398
- return Ds(e ^ (t | ~n), r, t, s, a, c);
2397
+ function vr(r, t, e, n, s, a, f) {
2398
+ return Ds(e ^ (t | ~n), r, t, s, a, f);
2399
2399
  }
2400
2400
  function Ef(r) {
2401
2401
  var t, e = r.length, n = [1732584193, -271733879, -1732584194, 271733878];
2402
- for (t = 64; t <= r.length; t += 64) Oo(n, q1(r.substring(t - 64, t)));
2402
+ for (t = 64; t <= r.length; t += 64) Oo(n, U1(r.substring(t - 64, t)));
2403
2403
  r = r.substring(t - 64);
2404
2404
  var s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
2405
2405
  for (t = 0; t < r.length; t++) s[t >> 2] |= r.charCodeAt(t) << (t % 4 << 3);
2406
2406
  if (s[t >> 2] |= 128 << (t % 4 << 3), t > 55) for (Oo(n, s), t = 0; t < 16; t++) s[t] = 0;
2407
2407
  return s[14] = 8 * e, Oo(n, s), n;
2408
2408
  }
2409
- function q1(r) {
2409
+ function U1(r) {
2410
2410
  var t, e = [];
2411
2411
  for (t = 0; t < 64; t += 4) e[t >> 2] = r.charCodeAt(t) + (r.charCodeAt(t + 1) << 8) + (r.charCodeAt(t + 2) << 16) + (r.charCodeAt(t + 3) << 24);
2412
2412
  return e;
2413
2413
  }
2414
2414
  var Fl = "0123456789abcdef".split("");
2415
- function U1(r) {
2415
+ function z1(r) {
2416
2416
  for (var t = "", e = 0; e < 4; e++) t += Fl[r >> 8 * e + 4 & 15] + Fl[r >> 8 * e & 15];
2417
2417
  return t;
2418
2418
  }
2419
- function z1(r) {
2419
+ function H1(r) {
2420
2420
  return String.fromCharCode(255 & r, (65280 & r) >> 8, (16711680 & r) >> 16, (4278190080 & r) >> 24);
2421
2421
  }
2422
2422
  function Jo(r) {
2423
- return Ef(r).map(z1).join("");
2423
+ return Ef(r).map(H1).join("");
2424
2424
  }
2425
- var H1 = (function(r) {
2426
- for (var t = 0; t < r.length; t++) r[t] = U1(r[t]);
2425
+ var W1 = (function(r) {
2426
+ for (var t = 0; t < r.length; t++) r[t] = z1(r[t]);
2427
2427
  return r.join("");
2428
2428
  })(Ef("hello")) != "5d41402abc4b2a76b9719d911017c592";
2429
2429
  function Kn(r, t) {
2430
- if (H1) {
2430
+ if (W1) {
2431
2431
  var e = (65535 & r) + (65535 & t);
2432
2432
  return (r >> 16) + (t >> 16) + (e >> 16) << 16 | 65535 & e;
2433
2433
  }
@@ -2436,16 +2436,16 @@ function Kn(r, t) {
2436
2436
  function Ko(r, t) {
2437
2437
  var e, n, s, a;
2438
2438
  if (r !== e) {
2439
- for (var c = (s = r, a = 1 + (256 / r.length | 0), new Array(a + 1).join(s)), u = [], f = 0; f < 256; f++) u[f] = f;
2439
+ for (var f = (s = r, a = 1 + (256 / r.length | 0), new Array(a + 1).join(s)), u = [], c = 0; c < 256; c++) u[c] = c;
2440
2440
  var d = 0;
2441
- for (f = 0; f < 256; f++) {
2442
- var g = u[f];
2443
- d = (d + g + c.charCodeAt(f)) % 256, u[f] = u[d], u[d] = g;
2441
+ for (c = 0; c < 256; c++) {
2442
+ var g = u[c];
2443
+ d = (d + g + f.charCodeAt(c)) % 256, u[c] = u[d], u[d] = g;
2444
2444
  }
2445
2445
  e = r, n = u;
2446
2446
  } else u = n;
2447
2447
  var x = t.length, N = 0, p = 0, j = "";
2448
- for (f = 0; f < x; f++) p = (p + (g = u[N = (N + 1) % 256])) % 256, u[N] = u[p], u[p] = g, c = u[(u[N] + u[p]) % 256], j += String.fromCharCode(t.charCodeAt(f) ^ c);
2448
+ for (c = 0; c < x; c++) p = (p + (g = u[N = (N + 1) % 256])) % 256, u[N] = u[p], u[p] = g, f = u[(u[N] + u[p]) % 256], j += String.fromCharCode(t.charCodeAt(c) ^ f);
2449
2449
  return j;
2450
2450
  }
2451
2451
  var jl = { print: 4, modify: 8, copy: 16, "annot-forms": 32 };
@@ -2456,8 +2456,8 @@ function $i(r, t, e, n) {
2456
2456
  if (jl.perm !== void 0) throw new Error("Invalid permission: " + u);
2457
2457
  s += jl[u];
2458
2458
  }), this.padding = "(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";
2459
- var a = (t + this.padding).substr(0, 32), c = (e + this.padding).substr(0, 32);
2460
- this.O = this.processOwnerPassword(a, c), this.P = -(1 + (255 ^ s)), this.encryptionKey = Jo(a + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(n)).substr(0, 5), this.U = Ko(this.encryptionKey, this.padding);
2459
+ var a = (t + this.padding).substr(0, 32), f = (e + this.padding).substr(0, 32);
2460
+ this.O = this.processOwnerPassword(a, f), this.P = -(1 + (255 ^ s)), this.encryptionKey = Jo(a + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(n)).substr(0, 5), this.U = Ko(this.encryptionKey, this.padding);
2461
2461
  }
2462
2462
  function Zi(r) {
2463
2463
  if (/[^\u0000-\u00ff]/.test(r)) throw new Error("Invalid PDF Name Object: " + r + ", Only accept ASCII characters.");
@@ -2482,13 +2482,13 @@ function Ol(r) {
2482
2482
  if (t.hasOwnProperty(e)) {
2483
2483
  var n = Array.prototype.slice.call(arguments, 1), s = [];
2484
2484
  for (var a in t[e]) {
2485
- var c = t[e][a];
2485
+ var f = t[e][a];
2486
2486
  try {
2487
- c[0].apply(r, n);
2487
+ f[0].apply(r, n);
2488
2488
  } catch (u) {
2489
2489
  Jt.console && _e.error("jsPDF PubSub Error", u.message, u);
2490
2490
  }
2491
- c[1] && s.push(a);
2491
+ f[1] && s.push(a);
2492
2492
  }
2493
2493
  s.length && s.forEach(this.unsubscribe);
2494
2494
  }
@@ -2514,8 +2514,8 @@ function Qi(r, t, e, n, s) {
2514
2514
  this.boundingBox = r, this.xStep = t, this.yStep = e, this.stream = "", this.cloneIndex = 0, Cf.call(this, n, s);
2515
2515
  }
2516
2516
  function Rt(r) {
2517
- var t, e = typeof arguments[0] == "string" ? arguments[0] : "p", n = arguments[1], s = arguments[2], a = arguments[3], c = [], u = 1, f = 16, d = "S", g = null;
2518
- xe(r = r || {}) === "object" && (e = r.orientation, n = r.unit || n, s = r.format || s, a = r.compress || r.compressPdf || a, (g = r.encryption || null) !== null && (g.userPassword = g.userPassword || "", g.ownerPassword = g.ownerPassword || "", g.userPermissions = g.userPermissions || []), u = typeof r.userUnit == "number" ? Math.abs(r.userUnit) : 1, r.precision !== void 0 && (t = r.precision), r.floatPrecision !== void 0 && (f = r.floatPrecision), d = r.defaultPathOperation || "S"), c = r.filters || (a === !0 ? ["FlateEncode"] : c), n = n || "mm", e = ("" + (e || "P")).toLowerCase();
2517
+ var t, e = typeof arguments[0] == "string" ? arguments[0] : "p", n = arguments[1], s = arguments[2], a = arguments[3], f = [], u = 1, c = 16, d = "S", g = null;
2518
+ xe(r = r || {}) === "object" && (e = r.orientation, n = r.unit || n, s = r.format || s, a = r.compress || r.compressPdf || a, (g = r.encryption || null) !== null && (g.userPassword = g.userPassword || "", g.ownerPassword = g.ownerPassword || "", g.userPermissions = g.userPermissions || []), u = typeof r.userUnit == "number" ? Math.abs(r.userUnit) : 1, r.precision !== void 0 && (t = r.precision), r.floatPrecision !== void 0 && (c = r.floatPrecision), d = r.defaultPathOperation || "S"), f = r.filters || (a === !0 ? ["FlateEncode"] : f), n = n || "mm", e = ("" + (e || "P")).toLowerCase();
2519
2519
  var x = r.putOnlyUsedFonts || !1, N = {}, p = { internal: {}, __private__: {} };
2520
2520
  p.__private__.PubSub = Ol;
2521
2521
  var j = "1.3", P = p.__private__.getPdfVersion = function() {
@@ -2559,10 +2559,10 @@ function Rt(r) {
2559
2559
  if (isNaN(l) || isNaN(I)) throw new Error("Invalid argument passed to jsPDF.roundToPrecision");
2560
2560
  return l.toFixed(I).replace(/0+$/, "");
2561
2561
  };
2562
- K = p.hpf = p.__private__.hpf = typeof f == "number" ? function(l) {
2562
+ K = p.hpf = p.__private__.hpf = typeof c == "number" ? function(l) {
2563
2563
  if (isNaN(l)) throw new Error("Invalid argument passed to jsPDF.hpf");
2564
- return tt(l, f);
2565
- } : f === "smart" ? function(l) {
2564
+ return tt(l, c);
2565
+ } : c === "smart" ? function(l) {
2566
2566
  if (isNaN(l)) throw new Error("Invalid argument passed to jsPDF.hpf");
2567
2567
  return tt(l, l > -1 && l < 1 ? 16 : 5);
2568
2568
  } : function(l) {
@@ -2841,7 +2841,7 @@ function Rt(r) {
2841
2841
  } else v = typeof I == "string" ? [I, D, J, ut, vt[2]].join(" ") : l.precision === 2 ? [_(I), _(D), _(J), _(ut), vt[2]].join(" ") : [F(I), F(D), F(J), F(ut), vt[2]].join(" ");
2842
2842
  return v;
2843
2843
  }, Gr = p.__private__.getFilters = function() {
2844
- return c;
2844
+ return f;
2845
2845
  }, Rr = p.__private__.putStream = function(l) {
2846
2846
  var v = (l = l || {}).data || "", I = l.filters || Gr(), D = l.alreadyAppliedFilters || [], J = l.addLength1 || !1, ut = v.length, vt = l.objectId, Ct = function(Ie) {
2847
2847
  return Ie;
@@ -3796,28 +3796,28 @@ var Sr = function(r, t) {
3796
3796
  }, dn = function(r) {
3797
3797
  var t = new jf(), e = It.internal.getHeight(r) || 0, n = It.internal.getWidth(r) || 0;
3798
3798
  return t.BBox = [0, 0, Number($t(n)), Number($t(e))], t;
3799
- }, W1 = Ue.__acroform__.setBit = function(r, t) {
3799
+ }, G1 = Ue.__acroform__.setBit = function(r, t) {
3800
3800
  if (r = r || 0, t = t || 0, isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");
3801
3801
  return r | 1 << t;
3802
- }, G1 = Ue.__acroform__.clearBit = function(r, t) {
3802
+ }, V1 = Ue.__acroform__.clearBit = function(r, t) {
3803
3803
  if (r = r || 0, t = t || 0, isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");
3804
3804
  return r & ~(1 << t);
3805
- }, V1 = Ue.__acroform__.getBit = function(r, t) {
3805
+ }, Y1 = Ue.__acroform__.getBit = function(r, t) {
3806
3806
  if (isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");
3807
3807
  return r & 1 << t ? 1 : 0;
3808
3808
  }, Ve = Ue.__acroform__.getBitForPdf = function(r, t) {
3809
3809
  if (isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");
3810
- return V1(r, t - 1);
3810
+ return Y1(r, t - 1);
3811
3811
  }, Ye = Ue.__acroform__.setBitForPdf = function(r, t) {
3812
3812
  if (isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");
3813
- return W1(r, t - 1);
3813
+ return G1(r, t - 1);
3814
3814
  }, Xe = Ue.__acroform__.clearBitForPdf = function(r, t) {
3815
3815
  if (isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");
3816
- return G1(r, t - 1);
3817
- }, Y1 = Ue.__acroform__.calculateCoordinates = function(r, t) {
3818
- var e = t.internal.getHorizontalCoordinate, n = t.internal.getVerticalCoordinate, s = r[0], a = r[1], c = r[2], u = r[3], f = {};
3819
- return f.lowerLeft_X = e(s) || 0, f.lowerLeft_Y = n(a + u) || 0, f.upperRight_X = e(s + c) || 0, f.upperRight_Y = n(a) || 0, [Number($t(f.lowerLeft_X)), Number($t(f.lowerLeft_Y)), Number($t(f.upperRight_X)), Number($t(f.upperRight_Y))];
3820
- }, X1 = function(r) {
3816
+ return V1(r, t - 1);
3817
+ }, X1 = Ue.__acroform__.calculateCoordinates = function(r, t) {
3818
+ var e = t.internal.getHorizontalCoordinate, n = t.internal.getVerticalCoordinate, s = r[0], a = r[1], f = r[2], u = r[3], c = {};
3819
+ return c.lowerLeft_X = e(s) || 0, c.lowerLeft_Y = n(a + u) || 0, c.upperRight_X = e(s + f) || 0, c.upperRight_Y = n(a) || 0, [Number($t(c.lowerLeft_X)), Number($t(c.lowerLeft_Y)), Number($t(c.upperRight_X)), Number($t(c.upperRight_Y))];
3820
+ }, J1 = function(r) {
3821
3821
  if (r.appearanceStreamContent) return r.appearanceStreamContent;
3822
3822
  if (r.V || r.DV) {
3823
3823
  var t = [], e = r._V || r.DV, n = $o(r, e), s = r.scope.internal.getFont(r.fontName, r.fontStyle).id;
@@ -3834,11 +3834,11 @@ var Sr = function(r, t) {
3834
3834
  }) : s.map(function(_) {
3835
3835
  return [_];
3836
3836
  });
3837
- var a = e, c = It.internal.getHeight(r) || 0;
3838
- c = c < 0 ? -c : c;
3837
+ var a = e, f = It.internal.getHeight(r) || 0;
3838
+ f = f < 0 ? -f : f;
3839
3839
  var u = It.internal.getWidth(r) || 0;
3840
3840
  u = u < 0 ? -u : u;
3841
- var f = function(_, F, z) {
3841
+ var c = function(_, F, z) {
3842
3842
  if (_ + 1 < s.length) {
3843
3843
  var U = F + " " + s[_ + 1][0];
3844
3844
  return As(U, r, z).width <= u - 4;
@@ -3848,7 +3848,7 @@ var Sr = function(r, t) {
3848
3848
  a++;
3849
3849
  t: for (; a > 0; ) {
3850
3850
  t = "", a--;
3851
- var d, g, x = As("3", r, a).height, N = r.multiline ? c - a : (c - x) / 2, p = N += 2, j = 0, P = 0, O = 0;
3851
+ var d, g, x = As("3", r, a).height, N = r.multiline ? f - a : (f - x) / 2, p = N += 2, j = 0, P = 0, O = 0;
3852
3852
  if (a <= 0) {
3853
3853
  t = `(...) Tj
3854
3854
  `, t += "% Width of Text: " + As(t, r, a = 12).width + ", FieldWidth:" + u + `
@@ -3858,20 +3858,20 @@ var Sr = function(r, t) {
3858
3858
  for (var k = "", G = 0, Y = 0; Y < s.length; Y++) if (s.hasOwnProperty(Y)) {
3859
3859
  var q = !1;
3860
3860
  if (s[Y].length !== 1 && O !== s[Y].length - 1) {
3861
- if ((x + 2) * (G + 2) + 2 > c) continue t;
3861
+ if ((x + 2) * (G + 2) + 2 > f) continue t;
3862
3862
  k += s[Y][O], q = !0, P = Y, Y--;
3863
3863
  } else {
3864
3864
  k = (k += s[Y][O] + " ").substr(k.length - 1) == " " ? k.substr(0, k.length - 1) : k;
3865
- var it = parseInt(Y), mt = f(it, k, a), dt = Y >= s.length - 1;
3865
+ var it = parseInt(Y), mt = c(it, k, a), dt = Y >= s.length - 1;
3866
3866
  if (mt && !dt) {
3867
3867
  k += " ", O = 0;
3868
3868
  continue;
3869
3869
  }
3870
3870
  if (mt || dt) {
3871
3871
  if (dt) P = it;
3872
- else if (r.multiline && (x + 2) * (G + 2) + 2 > c) continue t;
3872
+ else if (r.multiline && (x + 2) * (G + 2) + 2 > f) continue t;
3873
3873
  } else {
3874
- if (!r.multiline || (x + 2) * (G + 2) + 2 > c) continue t;
3874
+ if (!r.multiline || (x + 2) * (G + 2) + 2 > f) continue t;
3875
3875
  P = it;
3876
3876
  }
3877
3877
  }
@@ -3910,14 +3910,14 @@ var Sr = function(r, t) {
3910
3910
  }, As = function(r, t, e) {
3911
3911
  var n = t.scope.internal.getFont(t.fontName, t.fontStyle), s = t.scope.getStringUnitWidth(r, { font: n, fontSize: parseFloat(e), charSpace: 0 }) * parseFloat(e);
3912
3912
  return { height: t.scope.getStringUnitWidth("3", { font: n, fontSize: parseFloat(e), charSpace: 0 }) * parseFloat(e) * 1.5, width: s };
3913
- }, J1 = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, K1 = function(r, t) {
3913
+ }, K1 = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, $1 = function(r, t) {
3914
3914
  var e = { type: "reference", object: r };
3915
3915
  t.internal.getPageInfo(r.page).pageContext.annotations.find(function(n) {
3916
3916
  return n.type === e.type && n.object === e.object;
3917
3917
  }) === void 0 && t.internal.getPageInfo(r.page).pageContext.annotations.push(e);
3918
- }, $1 = function(r, t) {
3918
+ }, Z1 = function(r, t) {
3919
3919
  if (t.scope = r, r.internal !== void 0 && (r.internal.acroformPlugin === void 0 || r.internal.acroformPlugin.isInitialized === !1)) {
3920
- if (Qr.FieldNum = 0, r.internal.acroformPlugin = JSON.parse(JSON.stringify(J1)), r.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary");
3920
+ if (Qr.FieldNum = 0, r.internal.acroformPlugin = JSON.parse(JSON.stringify(K1)), r.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary");
3921
3921
  nu = r.internal.scaleFactor, r.internal.acroformPlugin.acroFormDictionaryRoot = new Of(), r.internal.acroformPlugin.acroFormDictionaryRoot.scope = r, r.internal.acroformPlugin.acroFormDictionaryRoot._eventID = r.internal.events.subscribe("postPutResources", function() {
3922
3922
  (function(e) {
3923
3923
  e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID, e.internal.acroformPlugin.printedOut = !0;
@@ -3928,7 +3928,7 @@ var Sr = function(r, t) {
3928
3928
  var n = e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;
3929
3929
  for (var s in n) if (n.hasOwnProperty(s)) {
3930
3930
  var a = n[s];
3931
- a.objId = void 0, a.hasAnnotation && K1(a, e);
3931
+ a.objId = void 0, a.hasAnnotation && $1(a, e);
3932
3932
  }
3933
3933
  })(r);
3934
3934
  }), r.internal.events.subscribe("putCatalog", function() {
@@ -3939,28 +3939,28 @@ var Sr = function(r, t) {
3939
3939
  }), r.internal.events.subscribe("postPutPages", function(e) {
3940
3940
  (function(n, s) {
3941
3941
  var a = !n;
3942
- for (var c in n || (s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), n = n || s.internal.acroformPlugin.acroFormDictionaryRoot.Kids) if (n.hasOwnProperty(c)) {
3943
- var u = n[c], f = [], d = u.Rect;
3944
- if (u.Rect && (u.Rect = Y1(u.Rect, s)), s.internal.newObjectDeferredBegin(u.objId, !0), u.DA = It.createDefaultAppearanceStream(u), xe(u) === "object" && typeof u.getKeyValueListForStream == "function" && (f = u.getKeyValueListForStream()), u.Rect = d, u.hasAppearanceStream && !u.appearanceStreamContent) {
3945
- var g = X1(u);
3946
- f.push({ key: "AP", value: "<</N " + g + ">>" }), s.internal.acroformPlugin.xForms.push(g);
3942
+ for (var f in n || (s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), n = n || s.internal.acroformPlugin.acroFormDictionaryRoot.Kids) if (n.hasOwnProperty(f)) {
3943
+ var u = n[f], c = [], d = u.Rect;
3944
+ if (u.Rect && (u.Rect = X1(u.Rect, s)), s.internal.newObjectDeferredBegin(u.objId, !0), u.DA = It.createDefaultAppearanceStream(u), xe(u) === "object" && typeof u.getKeyValueListForStream == "function" && (c = u.getKeyValueListForStream()), u.Rect = d, u.hasAppearanceStream && !u.appearanceStreamContent) {
3945
+ var g = J1(u);
3946
+ c.push({ key: "AP", value: "<</N " + g + ">>" }), s.internal.acroformPlugin.xForms.push(g);
3947
3947
  }
3948
3948
  if (u.appearanceStreamContent) {
3949
3949
  var x = "";
3950
3950
  for (var N in u.appearanceStreamContent) if (u.appearanceStreamContent.hasOwnProperty(N)) {
3951
3951
  var p = u.appearanceStreamContent[N];
3952
3952
  if (x += "/" + N + " ", x += "<<", Object.keys(p).length >= 1 || Array.isArray(p)) {
3953
- for (var c in p) if (p.hasOwnProperty(c)) {
3954
- var j = p[c];
3955
- typeof j == "function" && (j = j.call(s, u)), x += "/" + c + " " + j + " ", s.internal.acroformPlugin.xForms.indexOf(j) >= 0 || s.internal.acroformPlugin.xForms.push(j);
3953
+ for (var f in p) if (p.hasOwnProperty(f)) {
3954
+ var j = p[f];
3955
+ typeof j == "function" && (j = j.call(s, u)), x += "/" + f + " " + j + " ", s.internal.acroformPlugin.xForms.indexOf(j) >= 0 || s.internal.acroformPlugin.xForms.push(j);
3956
3956
  }
3957
- } else typeof (j = p) == "function" && (j = j.call(s, u)), x += "/" + c + " " + j, s.internal.acroformPlugin.xForms.indexOf(j) >= 0 || s.internal.acroformPlugin.xForms.push(j);
3957
+ } else typeof (j = p) == "function" && (j = j.call(s, u)), x += "/" + f + " " + j, s.internal.acroformPlugin.xForms.indexOf(j) >= 0 || s.internal.acroformPlugin.xForms.push(j);
3958
3958
  x += ">>";
3959
3959
  }
3960
- f.push({ key: "AP", value: `<<
3960
+ c.push({ key: "AP", value: `<<
3961
3961
  ` + x + ">>" });
3962
3962
  }
3963
- s.internal.putStream({ additionalKeyValues: f, objectId: u.objId }), s.internal.out("endobj");
3963
+ s.internal.putStream({ additionalKeyValues: c, objectId: u.objId }), s.internal.out("endobj");
3964
3964
  }
3965
3965
  a && (function(P, O) {
3966
3966
  for (var k in P) if (P.hasOwnProperty(k)) {
@@ -3972,8 +3972,8 @@ var Sr = function(r, t) {
3972
3972
  }), r.internal.acroformPlugin.isInitialized = !0;
3973
3973
  }
3974
3974
  }, Ff = Ue.__acroform__.arrayToPdfArray = function(r, t, e) {
3975
- var n = function(c) {
3976
- return c;
3975
+ var n = function(f) {
3976
+ return f;
3977
3977
  };
3978
3978
  if (Array.isArray(r)) {
3979
3979
  for (var s = "[", a = 0; a < r.length; a++) switch (a !== 0 && (s += " "), xe(r[a])) {
@@ -4126,11 +4126,11 @@ var Qr = function r() {
4126
4126
  }, set: function(k) {
4127
4127
  a = k;
4128
4128
  } });
4129
- var c = "helvetica";
4129
+ var f = "helvetica";
4130
4130
  Object.defineProperty(this, "fontName", { enumerable: !0, configurable: !0, get: function() {
4131
- return c;
4131
+ return f;
4132
4132
  }, set: function(k) {
4133
- c = k;
4133
+ f = k;
4134
4134
  } });
4135
4135
  var u = "normal";
4136
4136
  Object.defineProperty(this, "fontStyle", { enumerable: !0, configurable: !0, get: function() {
@@ -4138,11 +4138,11 @@ var Qr = function r() {
4138
4138
  }, set: function(k) {
4139
4139
  u = k;
4140
4140
  } });
4141
- var f = 0;
4141
+ var c = 0;
4142
4142
  Object.defineProperty(this, "fontSize", { enumerable: !0, configurable: !0, get: function() {
4143
- return f;
4143
+ return c;
4144
4144
  }, set: function(k) {
4145
- f = k;
4145
+ c = k;
4146
4146
  } });
4147
4147
  var d = void 0;
4148
4148
  Object.defineProperty(this, "maxFontSize", { enumerable: !0, configurable: !0, get: function() {
@@ -4267,9 +4267,9 @@ var ea = function() {
4267
4267
  return Ff(t, this.objId, this.scope);
4268
4268
  }, set: function(e) {
4269
4269
  var n, s;
4270
- s = [], typeof (n = e) == "string" && (s = (function(a, c, u) {
4270
+ s = [], typeof (n = e) == "string" && (s = (function(a, f, u) {
4271
4271
  u || (u = 1);
4272
- for (var f, d = []; f = c.exec(a); ) d.push(f[u]);
4272
+ for (var c, d = []; c = f.exec(a); ) d.push(c[u]);
4273
4273
  return d;
4274
4274
  })(n, /\((.*?)\)/g)), t = s;
4275
4275
  } }), this.getOptions = function() {
@@ -4397,9 +4397,9 @@ var Os = function() {
4397
4397
  return u;
4398
4398
  };
4399
4399
  this.scope && (s = this.scope.internal.getEncryptor(this.objId));
4400
- var a, c = [];
4401
- for (a in c.push("<<"), n) c.push("/" + a + " (" + _i(s(n[a])) + ")");
4402
- return c.push(">>"), c.join(`
4400
+ var a, f = [];
4401
+ for (a in f.push("<<"), n) f.push("/" + a + " (" + _i(s(n[a])) + ")");
4402
+ return f.push(">>"), f.join(`
4403
4403
  `);
4404
4404
  }, set: function(s) {
4405
4405
  xe(s) === "object" && (n = s);
@@ -4427,7 +4427,7 @@ Sr(Os, Qr), ia.prototype.setAppearance = function(r) {
4427
4427
  }
4428
4428
  }, ia.prototype.createOption = function(r) {
4429
4429
  var t = new Os();
4430
- return t.Parent = this, t.optionName = r, this.Kids.push(t), Z1.call(this.scope, t), t;
4430
+ return t.Parent = this, t.optionName = r, this.Kids.push(t), Q1.call(this.scope, t), t;
4431
4431
  };
4432
4432
  var Ps = function() {
4433
4433
  nr.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = It.CheckBox.createAppearanceStream();
@@ -4492,8 +4492,8 @@ var It = { CheckBox: { createAppearanceStream: function() {
4492
4492
  }, YesNormal: function(r) {
4493
4493
  var t = dn(r);
4494
4494
  t.scope = r.scope;
4495
- var e = r.scope.internal.getFont(r.fontName, r.fontStyle).id, n = r.scope.__private__.encodeColorString(r.color), s = [], a = It.internal.getHeight(r), c = It.internal.getWidth(r), u = $o(r, r.caption);
4496
- return s.push("1 g"), s.push("0 0 " + $t(c) + " " + $t(a) + " re"), s.push("f"), s.push("q"), s.push("0 0 1 rg"), s.push("0 0 " + $t(c - 1) + " " + $t(a - 1) + " re"), s.push("W"), s.push("n"), s.push("0 g"), s.push("BT"), s.push("/" + e + " " + $t(u.fontSize) + " Tf " + n), s.push(u.text), s.push("ET"), s.push("Q"), t.stream = s.join(`
4495
+ var e = r.scope.internal.getFont(r.fontName, r.fontStyle).id, n = r.scope.__private__.encodeColorString(r.color), s = [], a = It.internal.getHeight(r), f = It.internal.getWidth(r), u = $o(r, r.caption);
4496
+ return s.push("1 g"), s.push("0 0 " + $t(f) + " " + $t(a) + " re"), s.push("f"), s.push("q"), s.push("0 0 1 rg"), s.push("0 0 " + $t(f - 1) + " " + $t(a - 1) + " re"), s.push("W"), s.push("n"), s.push("0 g"), s.push("BT"), s.push("/" + e + " " + $t(u.fontSize) + " Tf " + n), s.push(u.text), s.push("ET"), s.push("Q"), t.stream = s.join(`
4497
4497
  `), t;
4498
4498
  }, OffPushDown: function(r) {
4499
4499
  var t = dn(r);
@@ -4519,8 +4519,8 @@ var It = { CheckBox: { createAppearanceStream: function() {
4519
4519
  t.scope = r.scope;
4520
4520
  var e = [], n = It.internal.getWidth(r) <= It.internal.getHeight(r) ? It.internal.getWidth(r) / 4 : It.internal.getHeight(r) / 4;
4521
4521
  n = Number((0.9 * n).toFixed(5));
4522
- var s = Number((2 * n).toFixed(5)), a = Number((s * It.internal.Bezier_C).toFixed(5)), c = Number((n * It.internal.Bezier_C).toFixed(5));
4523
- return e.push("0.749023 g"), e.push("q"), e.push("1 0 0 1 " + Jn(It.internal.getWidth(r) / 2) + " " + Jn(It.internal.getHeight(r) / 2) + " cm"), e.push(s + " 0 m"), e.push(s + " " + a + " " + a + " " + s + " 0 " + s + " c"), e.push("-" + a + " " + s + " -" + s + " " + a + " -" + s + " 0 c"), e.push("-" + s + " -" + a + " -" + a + " -" + s + " 0 -" + s + " c"), e.push(a + " -" + s + " " + s + " -" + a + " " + s + " 0 c"), e.push("f"), e.push("Q"), e.push("0 g"), e.push("q"), e.push("1 0 0 1 " + Jn(It.internal.getWidth(r) / 2) + " " + Jn(It.internal.getHeight(r) / 2) + " cm"), e.push(n + " 0 m"), e.push(n + " " + c + " " + c + " " + n + " 0 " + n + " c"), e.push("-" + c + " " + n + " -" + n + " " + c + " -" + n + " 0 c"), e.push("-" + n + " -" + c + " -" + c + " -" + n + " 0 -" + n + " c"), e.push(c + " -" + n + " " + n + " -" + c + " " + n + " 0 c"), e.push("f"), e.push("Q"), t.stream = e.join(`
4522
+ var s = Number((2 * n).toFixed(5)), a = Number((s * It.internal.Bezier_C).toFixed(5)), f = Number((n * It.internal.Bezier_C).toFixed(5));
4523
+ return e.push("0.749023 g"), e.push("q"), e.push("1 0 0 1 " + Jn(It.internal.getWidth(r) / 2) + " " + Jn(It.internal.getHeight(r) / 2) + " cm"), e.push(s + " 0 m"), e.push(s + " " + a + " " + a + " " + s + " 0 " + s + " c"), e.push("-" + a + " " + s + " -" + s + " " + a + " -" + s + " 0 c"), e.push("-" + s + " -" + a + " -" + a + " -" + s + " 0 -" + s + " c"), e.push(a + " -" + s + " " + s + " -" + a + " " + s + " 0 c"), e.push("f"), e.push("Q"), e.push("0 g"), e.push("q"), e.push("1 0 0 1 " + Jn(It.internal.getWidth(r) / 2) + " " + Jn(It.internal.getHeight(r) / 2) + " cm"), e.push(n + " 0 m"), e.push(n + " " + f + " " + f + " " + n + " 0 " + n + " c"), e.push("-" + f + " " + n + " -" + n + " " + f + " -" + n + " 0 c"), e.push("-" + n + " -" + f + " -" + f + " -" + n + " 0 -" + n + " c"), e.push(f + " -" + n + " " + n + " -" + f + " " + n + " 0 c"), e.push("f"), e.push("Q"), t.stream = e.join(`
4524
4524
  `), t;
4525
4525
  }, OffPushDown: function(r) {
4526
4526
  var t = dn(r);
@@ -4567,8 +4567,8 @@ It.internal = { Bezier_C: 0.551915024494, calculateCross: function(r) {
4567
4567
  var t = 0;
4568
4568
  return xe(r) === "object" && (t = Bl(r.Rect[3])), t;
4569
4569
  };
4570
- var Z1 = Ue.addField = function(r) {
4571
- if ($1(this, r), !(r instanceof Qr)) throw new Error("Invalid argument passed to jsPDF.addField.");
4570
+ var Q1 = Ue.addField = function(r) {
4571
+ if (Z1(this, r), !(r instanceof Qr)) throw new Error("Invalid argument passed to jsPDF.addField.");
4572
4572
  var t;
4573
4573
  return (t = r).scope.internal.acroformPlugin.printedOut && (t.scope.internal.acroformPlugin.printedOut = !1, t.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t), r.page = r.scope.internal.getCurrentPageInfo().pageNumber, this;
4574
4574
  };
@@ -4624,17 +4624,17 @@ function Bf(r) {
4624
4624
  var T = this.internal.newObject();
4625
4625
  U({ data: K(new Uint8Array(F.palette)), objectId: T }), z("endobj");
4626
4626
  }
4627
- }, c = function() {
4627
+ }, f = function() {
4628
4628
  var _ = this.internal.collections[t + "images"];
4629
4629
  for (var F in _) a.call(this, _[F]);
4630
4630
  }, u = function() {
4631
4631
  var _, F = this.internal.collections[t + "images"], z = this.internal.write;
4632
4632
  for (var U in F) z("/I" + (_ = F[U]).index, _.objectId, "0", "R");
4633
- }, f = function() {
4634
- this.internal.collections[t + "images"] || (this.internal.collections[t + "images"] = {}, this.internal.events.subscribe("putResources", c), this.internal.events.subscribe("putXobjectDict", u));
4633
+ }, c = function() {
4634
+ this.internal.collections[t + "images"] || (this.internal.collections[t + "images"] = {}, this.internal.events.subscribe("putResources", f), this.internal.events.subscribe("putXobjectDict", u));
4635
4635
  }, d = function() {
4636
4636
  var _ = this.internal.collections[t + "images"];
4637
- return f.call(this), _;
4637
+ return c.call(this), _;
4638
4638
  }, g = function() {
4639
4639
  return Object.keys(this.internal.collections[t + "images"]).length;
4640
4640
  }, x = function(_) {
@@ -4715,7 +4715,7 @@ function Bf(r) {
4715
4715
  }
4716
4716
  var wt = this.internal.getFilters();
4717
4717
  if (rt === void 0 && wt.indexOf("FlateEncode") !== -1 && (rt = "SLOW"), isNaN(z) || isNaN(U)) throw new Error("Invalid coordinates passed to jsPDF.addImage");
4718
- f.call(this);
4718
+ c.call(this);
4719
4719
  var A = R.call(this, _, F, ft, rt);
4720
4720
  return O.call(this, z, U, nt, ot, A, ht), this;
4721
4721
  };
@@ -4767,7 +4767,7 @@ function Bf(r) {
4767
4767
  Rt.API.events.push(["addPage", function(e) {
4768
4768
  this.internal.getPageInfo(e.pageNumber).pageContext.annotations = [];
4769
4769
  }]), r.events.push(["putPage", function(e) {
4770
- for (var n, s, a, c = this.internal.getCoordinateString, u = this.internal.getVerticalCoordinateString, f = this.internal.getPageInfoByObjId(e.objId), d = e.pageContext.annotations, g = !1, x = 0; x < d.length && !g; x++) switch ((n = d[x]).type) {
4770
+ for (var n, s, a, f = this.internal.getCoordinateString, u = this.internal.getVerticalCoordinateString, c = this.internal.getPageInfoByObjId(e.objId), d = e.pageContext.annotations, g = !1, x = 0; x < d.length && !g; x++) switch ((n = d[x]).type) {
4771
4771
  case "link":
4772
4772
  (t(n.options.url) || t(n.options.pageNumber)) && (g = !0);
4773
4773
  break;
@@ -4787,12 +4787,12 @@ function Bf(r) {
4787
4787
  break;
4788
4788
  case "text":
4789
4789
  var P = this.internal.newAdditionalObject(), O = this.internal.newAdditionalObject(), k = this.internal.getEncryptor(P.objId), G = n.title || "Note";
4790
- a = "<</Type /Annot /Subtype /Text " + (s = "/Rect [" + c(n.bounds.x) + " " + u(n.bounds.y + n.bounds.h) + " " + c(n.bounds.x + n.bounds.w) + " " + u(n.bounds.y) + "] ") + "/Contents (" + p(k(n.contents)) + ")", a += " /Popup " + O.objId + " 0 R", a += " /P " + f.objId + " 0 R", a += " /T (" + p(k(G)) + ") >>", P.content = a;
4790
+ a = "<</Type /Annot /Subtype /Text " + (s = "/Rect [" + f(n.bounds.x) + " " + u(n.bounds.y + n.bounds.h) + " " + f(n.bounds.x + n.bounds.w) + " " + u(n.bounds.y) + "] ") + "/Contents (" + p(k(n.contents)) + ")", a += " /Popup " + O.objId + " 0 R", a += " /P " + c.objId + " 0 R", a += " /T (" + p(k(G)) + ") >>", P.content = a;
4791
4791
  var Y = P.objId + " 0 R";
4792
- a = "<</Type /Annot /Subtype /Popup " + (s = "/Rect [" + c(n.bounds.x + 30) + " " + u(n.bounds.y + n.bounds.h) + " " + c(n.bounds.x + n.bounds.w + 30) + " " + u(n.bounds.y) + "] ") + " /Parent " + Y, n.open && (a += " /Open true"), a += " >>", O.content = a, this.internal.write(P.objId, "0 R", O.objId, "0 R");
4792
+ a = "<</Type /Annot /Subtype /Popup " + (s = "/Rect [" + f(n.bounds.x + 30) + " " + u(n.bounds.y + n.bounds.h) + " " + f(n.bounds.x + n.bounds.w + 30) + " " + u(n.bounds.y) + "] ") + " /Parent " + Y, n.open && (a += " /Open true"), a += " >>", O.content = a, this.internal.write(P.objId, "0 R", O.objId, "0 R");
4793
4793
  break;
4794
4794
  case "freetext":
4795
- s = "/Rect [" + c(n.bounds.x) + " " + u(n.bounds.y) + " " + c(n.bounds.x + n.bounds.w) + " " + u(n.bounds.y + n.bounds.h) + "] ";
4795
+ s = "/Rect [" + f(n.bounds.x) + " " + u(n.bounds.y) + " " + f(n.bounds.x + n.bounds.w) + " " + u(n.bounds.y + n.bounds.h) + "] ";
4796
4796
  var q = "font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + (n.color || "#000000");
4797
4797
  a = "<</Type /Annot /Subtype /FreeText " + s + "/Contents (" + p(j(n.contents)) + ")", a += " /DS(" + p(j(q)) + ")", a += " /Border [0 0 0]", a += " >>", this.internal.write(a);
4798
4798
  break;
@@ -4831,17 +4831,17 @@ function Bf(r) {
4831
4831
  case "freetext":
4832
4832
  n.pageContext.annotations.push(e);
4833
4833
  }
4834
- }, r.link = function(e, n, s, a, c) {
4835
- var u = this.internal.getCurrentPageInfo(), f = this.internal.getCoordinateString, d = this.internal.getVerticalCoordinateString;
4836
- u.pageContext.annotations.push({ finalBounds: { x: f(e), y: d(n), w: f(e + s), h: d(n + a) }, options: c, type: "link" });
4834
+ }, r.link = function(e, n, s, a, f) {
4835
+ var u = this.internal.getCurrentPageInfo(), c = this.internal.getCoordinateString, d = this.internal.getVerticalCoordinateString;
4836
+ u.pageContext.annotations.push({ finalBounds: { x: c(e), y: d(n), w: c(e + s), h: d(n + a) }, options: f, type: "link" });
4837
4837
  }, r.textWithLink = function(e, n, s, a) {
4838
- var c, u, f = this.getTextWidth(e), d = this.internal.getLineHeight() / this.internal.scaleFactor;
4838
+ var f, u, c = this.getTextWidth(e), d = this.internal.getLineHeight() / this.internal.scaleFactor;
4839
4839
  if (a.maxWidth !== void 0) {
4840
4840
  u = a.maxWidth;
4841
4841
  var g = this.splitTextToSize(e, u).length;
4842
- c = Math.ceil(d * g);
4843
- } else u = f, c = d;
4844
- return this.text(e, n, s, a), s += 0.2 * d, a.align === "center" && (n -= f / 2), a.align === "right" && (n -= f), this.link(n, s - d, u, c, a), f;
4842
+ f = Math.ceil(d * g);
4843
+ } else u = c, f = d;
4844
+ return this.text(e, n, s, a), s += 0.2 * d, a.align === "center" && (n -= c / 2), a.align === "right" && (n -= c), this.link(n, s - d, u, f, a), c;
4845
4845
  }, r.getTextWidth = function(e) {
4846
4846
  var n = this.internal.getFontSize();
4847
4847
  return this.getStringUnitWidth(e) * n / this.internal.scaleFactor;
@@ -4858,24 +4858,24 @@ function Bf(r) {
4858
4858
  r.__arabicParser__ = {};
4859
4859
  var a = r.__arabicParser__.isInArabicSubstitutionA = function(P) {
4860
4860
  return t[P.charCodeAt(0)] !== void 0;
4861
- }, c = r.__arabicParser__.isArabicLetter = function(P) {
4861
+ }, f = r.__arabicParser__.isArabicLetter = function(P) {
4862
4862
  return typeof P == "string" && /^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(P);
4863
4863
  }, u = r.__arabicParser__.isArabicEndLetter = function(P) {
4864
- return c(P) && a(P) && t[P.charCodeAt(0)].length <= 2;
4865
- }, f = r.__arabicParser__.isArabicAlfLetter = function(P) {
4866
- return c(P) && s.indexOf(P.charCodeAt(0)) >= 0;
4864
+ return f(P) && a(P) && t[P.charCodeAt(0)].length <= 2;
4865
+ }, c = r.__arabicParser__.isArabicAlfLetter = function(P) {
4866
+ return f(P) && s.indexOf(P.charCodeAt(0)) >= 0;
4867
4867
  };
4868
4868
  r.__arabicParser__.arabicLetterHasIsolatedForm = function(P) {
4869
- return c(P) && a(P) && t[P.charCodeAt(0)].length >= 1;
4869
+ return f(P) && a(P) && t[P.charCodeAt(0)].length >= 1;
4870
4870
  };
4871
4871
  var d = r.__arabicParser__.arabicLetterHasFinalForm = function(P) {
4872
- return c(P) && a(P) && t[P.charCodeAt(0)].length >= 2;
4872
+ return f(P) && a(P) && t[P.charCodeAt(0)].length >= 2;
4873
4873
  };
4874
4874
  r.__arabicParser__.arabicLetterHasInitialForm = function(P) {
4875
- return c(P) && a(P) && t[P.charCodeAt(0)].length >= 3;
4875
+ return f(P) && a(P) && t[P.charCodeAt(0)].length >= 3;
4876
4876
  };
4877
4877
  var g = r.__arabicParser__.arabicLetterHasMedialForm = function(P) {
4878
- return c(P) && a(P) && t[P.charCodeAt(0)].length == 4;
4878
+ return f(P) && a(P) && t[P.charCodeAt(0)].length == 4;
4879
4879
  }, x = r.__arabicParser__.resolveLigatures = function(P) {
4880
4880
  var O = 0, k = e, G = "", Y = 0;
4881
4881
  for (O = 0; O < P.length; O += 1) k[P.charCodeAt(O)] !== void 0 ? (Y++, typeof (k = k[P.charCodeAt(O)]) == "number" && (G += String.fromCharCode(k), k = e, Y = 0), O === P.length - 1 && (k = e, G += P.charAt(O - (Y - 1)), O -= Y - 1, Y = 0)) : (k = e, G += P.charAt(O - Y), O -= Y, Y = 0);
@@ -4885,11 +4885,11 @@ function Bf(r) {
4885
4885
  return P !== void 0 && n[P.charCodeAt(0)] !== void 0;
4886
4886
  };
4887
4887
  var N = r.__arabicParser__.getCorrectForm = function(P, O, k) {
4888
- return c(P) ? a(P) === !1 ? -1 : !d(P) || !c(O) && !c(k) || !c(k) && u(O) || u(P) && !c(O) || u(P) && f(O) || u(P) && u(O) ? 0 : g(P) && c(O) && !u(O) && c(k) && d(k) ? 3 : u(P) || !c(k) ? 1 : 2 : -1;
4888
+ return f(P) ? a(P) === !1 ? -1 : !d(P) || !f(O) && !f(k) || !f(k) && u(O) || u(P) && !f(O) || u(P) && c(O) || u(P) && u(O) ? 0 : g(P) && f(O) && !u(O) && f(k) && d(k) ? 3 : u(P) || !f(k) ? 1 : 2 : -1;
4889
4889
  }, p = function(P) {
4890
4890
  var O = 0, k = 0, G = 0, Y = "", q = "", it = "", mt = (P = P || "").split("\\s+"), dt = [];
4891
4891
  for (O = 0; O < mt.length; O += 1) {
4892
- for (dt.push(""), k = 0; k < mt[O].length; k += 1) Y = mt[O][k], q = mt[O][k - 1], it = mt[O][k + 1], c(Y) ? (G = N(Y, q, it), dt[O] += G !== -1 ? String.fromCharCode(t[Y.charCodeAt(0)][G]) : Y) : dt[O] += Y;
4892
+ for (dt.push(""), k = 0; k < mt[O].length; k += 1) Y = mt[O][k], q = mt[O][k - 1], it = mt[O][k + 1], f(Y) ? (G = N(Y, q, it), dt[O] += G !== -1 ? String.fromCharCode(t[Y.charCodeAt(0)][G]) : Y) : dt[O] += Y;
4893
4893
  dt[O] = x(dt[O]);
4894
4894
  }
4895
4895
  return dt.join(" ");
@@ -4943,11 +4943,11 @@ function Bf(r) {
4943
4943
  }, set: function(u) {
4944
4944
  a = u;
4945
4945
  } });
4946
- var c = {};
4946
+ var f = {};
4947
4947
  Object.defineProperty(this, "style", { get: function() {
4948
- return c;
4948
+ return f;
4949
4949
  }, set: function(u) {
4950
- c = u;
4950
+ f = u;
4951
4951
  } }), Object.defineProperty(this, "parentNode", {});
4952
4952
  };
4953
4953
  t.prototype.getContext = function(e, n) {
@@ -4966,11 +4966,11 @@ function Bf(r) {
4966
4966
  }, s = function() {
4967
4967
  this.internal.__cell__.lastCell = new a(), this.internal.__cell__.pages = 1;
4968
4968
  }, a = function() {
4969
- var f = arguments[0];
4969
+ var c = arguments[0];
4970
4970
  Object.defineProperty(this, "x", { enumerable: !0, get: function() {
4971
- return f;
4971
+ return c;
4972
4972
  }, set: function(P) {
4973
- f = P;
4973
+ c = P;
4974
4974
  } });
4975
4975
  var d = arguments[1];
4976
4976
  Object.defineProperty(this, "y", { enumerable: !0, get: function() {
@@ -5013,33 +5013,33 @@ function Bf(r) {
5013
5013
  return new a(this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align);
5014
5014
  }, a.prototype.toArray = function() {
5015
5015
  return [this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align];
5016
- }, r.setHeaderFunction = function(f) {
5017
- return n.call(this), this.internal.__cell__.headerFunction = typeof f == "function" ? f : void 0, this;
5018
- }, r.getTextDimensions = function(f, d) {
5016
+ }, r.setHeaderFunction = function(c) {
5017
+ return n.call(this), this.internal.__cell__.headerFunction = typeof c == "function" ? c : void 0, this;
5018
+ }, r.getTextDimensions = function(c, d) {
5019
5019
  n.call(this);
5020
5020
  var g = (d = d || {}).fontSize || this.getFontSize(), x = d.font || this.getFont(), N = d.scaleFactor || this.internal.scaleFactor, p = 0, j = 0, P = 0, O = this;
5021
- if (!Array.isArray(f) && typeof f != "string") {
5022
- if (typeof f != "number") throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");
5023
- f = String(f);
5021
+ if (!Array.isArray(c) && typeof c != "string") {
5022
+ if (typeof c != "number") throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");
5023
+ c = String(c);
5024
5024
  }
5025
5025
  var k = d.maxWidth;
5026
- k > 0 ? typeof f == "string" ? f = this.splitTextToSize(f, k) : Object.prototype.toString.call(f) === "[object Array]" && (f = f.reduce(function(Y, q) {
5026
+ k > 0 ? typeof c == "string" ? c = this.splitTextToSize(c, k) : Object.prototype.toString.call(c) === "[object Array]" && (c = c.reduce(function(Y, q) {
5027
5027
  return Y.concat(O.splitTextToSize(q, k));
5028
- }, [])) : f = Array.isArray(f) ? f : [f];
5029
- for (var G = 0; G < f.length; G++) p < (P = this.getStringUnitWidth(f[G], { font: x }) * g) && (p = P);
5030
- return p !== 0 && (j = f.length), { w: p /= N, h: Math.max((j * g * this.getLineHeightFactor() - g * (this.getLineHeightFactor() - 1)) / N, 0) };
5028
+ }, [])) : c = Array.isArray(c) ? c : [c];
5029
+ for (var G = 0; G < c.length; G++) p < (P = this.getStringUnitWidth(c[G], { font: x }) * g) && (p = P);
5030
+ return p !== 0 && (j = c.length), { w: p /= N, h: Math.max((j * g * this.getLineHeightFactor() - g * (this.getLineHeightFactor() - 1)) / N, 0) };
5031
5031
  }, r.cellAddPage = function() {
5032
5032
  n.call(this), this.addPage();
5033
- var f = this.internal.__cell__.margins || t;
5034
- return this.internal.__cell__.lastCell = new a(f.left, f.top, void 0, void 0), this.internal.__cell__.pages += 1, this;
5033
+ var c = this.internal.__cell__.margins || t;
5034
+ return this.internal.__cell__.lastCell = new a(c.left, c.top, void 0, void 0), this.internal.__cell__.pages += 1, this;
5035
5035
  };
5036
- var c = r.cell = function() {
5037
- var f;
5038
- f = arguments[0] instanceof a ? arguments[0] : new a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]), n.call(this);
5036
+ var f = r.cell = function() {
5037
+ var c;
5038
+ c = arguments[0] instanceof a ? arguments[0] : new a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]), n.call(this);
5039
5039
  var d = this.internal.__cell__.lastCell, g = this.internal.__cell__.padding, x = this.internal.__cell__.margins || t, N = this.internal.__cell__.tableHeaderRow, p = this.internal.__cell__.printHeaders;
5040
- return d.lineNumber !== void 0 && (d.lineNumber === f.lineNumber ? (f.x = (d.x || 0) + (d.width || 0), f.y = d.y || 0) : d.y + d.height + f.height + x.bottom > this.getPageHeight() ? (this.cellAddPage(), f.y = x.top, p && N && (this.printHeaderRow(f.lineNumber, !0), f.y += N[0].height)) : f.y = d.y + d.height || f.y), f.text[0] !== void 0 && (this.rect(f.x, f.y, f.width, f.height, e === !0 ? "FD" : void 0), f.align === "right" ? this.text(f.text, f.x + f.width - g, f.y + g, { align: "right", baseline: "top" }) : f.align === "center" ? this.text(f.text, f.x + f.width / 2, f.y + g, { align: "center", baseline: "top", maxWidth: f.width - g - g }) : this.text(f.text, f.x + g, f.y + g, { align: "left", baseline: "top", maxWidth: f.width - g - g })), this.internal.__cell__.lastCell = f, this;
5040
+ return d.lineNumber !== void 0 && (d.lineNumber === c.lineNumber ? (c.x = (d.x || 0) + (d.width || 0), c.y = d.y || 0) : d.y + d.height + c.height + x.bottom > this.getPageHeight() ? (this.cellAddPage(), c.y = x.top, p && N && (this.printHeaderRow(c.lineNumber, !0), c.y += N[0].height)) : c.y = d.y + d.height || c.y), c.text[0] !== void 0 && (this.rect(c.x, c.y, c.width, c.height, e === !0 ? "FD" : void 0), c.align === "right" ? this.text(c.text, c.x + c.width - g, c.y + g, { align: "right", baseline: "top" }) : c.align === "center" ? this.text(c.text, c.x + c.width / 2, c.y + g, { align: "center", baseline: "top", maxWidth: c.width - g - g }) : this.text(c.text, c.x + g, c.y + g, { align: "left", baseline: "top", maxWidth: c.width - g - g })), this.internal.__cell__.lastCell = c, this;
5041
5041
  };
5042
- r.table = function(f, d, g, x, N) {
5042
+ r.table = function(c, d, g, x, N) {
5043
5043
  if (n.call(this), !g) throw new Error("No data for PDF table.");
5044
5044
  var p, j, P, O, k = [], G = [], Y = [], q = {}, it = {}, mt = [], dt = [], K = (N = N || {}).autoSize || !1, R = N.printHeaders !== !1, tt = N.css && N.css["font-size"] !== void 0 ? 16 * N.css["font-size"] : N.fontSize || 12, _ = N.margins || Object.assign({ width: this.getPageWidth() }, t), F = typeof N.padding == "number" ? N.padding : 3, z = N.headerBackgroundColor || "#c8c8c8", U = N.headerTextColor || "#000";
5045
5045
  if (s.call(this), this.internal.__cell__.printHeaders = R, this.internal.__cell__.margins = _, this.internal.__cell__.table_font_size = tt, this.internal.__cell__.padding = F, this.internal.__cell__.headerBackgroundColor = z, this.internal.__cell__.headerTextColor = U, this.setFontSize(tt), x == null) G = k = Object.keys(g[0]), Y = k.map(function() {
@@ -5066,7 +5066,7 @@ function Bf(r) {
5066
5066
  for (p = 0; p < k.length; p += 1) nt[k[p]] = {}, nt[k[p]].text = G[p], nt[k[p]].align = Y[p];
5067
5067
  var ot = u.call(this, nt, it);
5068
5068
  dt = k.map(function(Nt) {
5069
- return new a(f, d, it[Nt], ot, nt[Nt].text, void 0, nt[Nt].align);
5069
+ return new a(c, d, it[Nt], ot, nt[Nt].text, void 0, nt[Nt].align);
5070
5070
  }), this.setTableHeaderRow(dt), this.printHeaderRow(1, !1);
5071
5071
  }
5072
5072
  var ft = x.reduce(function(Nt, wt) {
@@ -5077,15 +5077,15 @@ function Bf(r) {
5077
5077
  var rt = u.call(this, g[p], it);
5078
5078
  for (P = 0; P < k.length; P += 1) {
5079
5079
  var ht = g[p][k[P]];
5080
- "cellStart" in N && N.cellStart instanceof Function && N.cellStart({ row: p, col: P, data: ht }, this), c.call(this, new a(f, d, it[k[P]], rt, ht, p + 2, ft[k[P]]));
5080
+ "cellStart" in N && N.cellStart instanceof Function && N.cellStart({ row: p, col: P, data: ht }, this), f.call(this, new a(c, d, it[k[P]], rt, ht, p + 2, ft[k[P]]));
5081
5081
  }
5082
5082
  }
5083
- return this.internal.__cell__.table_x = f, this.internal.__cell__.table_y = d, this;
5083
+ return this.internal.__cell__.table_x = c, this.internal.__cell__.table_y = d, this;
5084
5084
  };
5085
- var u = function(f, d) {
5085
+ var u = function(c, d) {
5086
5086
  var g = this.internal.__cell__.padding, x = this.internal.__cell__.table_font_size, N = this.internal.scaleFactor;
5087
- return Object.keys(f).map(function(p) {
5088
- var j = f[p];
5087
+ return Object.keys(c).map(function(p) {
5088
+ var j = c[p];
5089
5089
  return this.splitTextToSize(j.hasOwnProperty("text") ? j.text : j, d[p] - g - g);
5090
5090
  }, this).map(function(p) {
5091
5091
  return this.getLineHeightFactor() * p.length * x / N + g + g;
@@ -5093,9 +5093,9 @@ function Bf(r) {
5093
5093
  return Math.max(p, j);
5094
5094
  }, 0);
5095
5095
  };
5096
- r.setTableHeaderRow = function(f) {
5097
- n.call(this), this.internal.__cell__.tableHeaderRow = f;
5098
- }, r.printHeaderRow = function(f, d) {
5096
+ r.setTableHeaderRow = function(c) {
5097
+ n.call(this), this.internal.__cell__.tableHeaderRow = c;
5098
+ }, r.printHeaderRow = function(c, d) {
5099
5099
  if (n.call(this), !this.internal.__cell__.tableHeaderRow) throw new Error("Property tableHeaderRow does not exist.");
5100
5100
  var g;
5101
5101
  if (e = !0, typeof this.internal.__cell__.headerFunction == "function") {
@@ -5104,14 +5104,14 @@ function Bf(r) {
5104
5104
  }
5105
5105
  this.setFont(void 0, "bold");
5106
5106
  for (var N = [], p = 0; p < this.internal.__cell__.tableHeaderRow.length; p += 1) {
5107
- g = this.internal.__cell__.tableHeaderRow[p].clone(), d && (g.y = this.internal.__cell__.margins.top || 0, N.push(g)), g.lineNumber = f;
5107
+ g = this.internal.__cell__.tableHeaderRow[p].clone(), d && (g.y = this.internal.__cell__.margins.top || 0, N.push(g)), g.lineNumber = c;
5108
5108
  var j = this.getTextColor();
5109
- this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), c.call(this, g), this.setTextColor(j);
5109
+ this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), f.call(this, g), this.setTextColor(j);
5110
5110
  }
5111
5111
  N.length > 0 && this.setTableHeaderRow(N), this.setFont(void 0, "normal"), e = !1;
5112
5112
  };
5113
5113
  })(Rt.API);
5114
- var Rf = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, Tf = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], Zo = Bf(Tf), Df = [100, 200, 300, 400, 500, 600, 700, 800, 900], Q1 = Bf(Df);
5114
+ var Rf = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, Tf = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], Zo = Bf(Tf), Df = [100, 200, 300, 400, 500, 600, 700, 800, 900], t2 = Bf(Df);
5115
5115
  function Ro(r) {
5116
5116
  var t = r.family.replace(/"|'/g, "").toLowerCase(), e = (function(a) {
5117
5117
  return Rf[a = a || "normal"] ? a : "normal";
@@ -5127,54 +5127,54 @@ function Rl(r, t, e, n) {
5127
5127
  for (s = e; s >= 0 && s < t.length; s += n) if (r[t[s]]) return r[t[s]];
5128
5128
  for (s = e; s >= 0 && s < t.length; s -= n) if (r[t[s]]) return r[t[s]];
5129
5129
  }
5130
- var t2 = { "sans-serif": "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", cursive: "times", fantasy: "times", serif: "times" }, Tl = { caption: "times", icon: "times", menu: "times", "message-box": "times", "small-caption": "times", "status-bar": "times" };
5130
+ var e2 = { "sans-serif": "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", cursive: "times", fantasy: "times", serif: "times" }, Tl = { caption: "times", icon: "times", menu: "times", "message-box": "times", "small-caption": "times", "status-bar": "times" };
5131
5131
  function Dl(r) {
5132
5132
  return [r.stretch, r.style, r.weight, r.family].join(" ");
5133
5133
  }
5134
5134
  function ql(r) {
5135
5135
  return r.trimLeft();
5136
5136
  }
5137
- function e2(r, t) {
5137
+ function r2(r, t) {
5138
5138
  for (var e = 0; e < r.length; ) {
5139
5139
  if (r.charAt(e) === t) return [r.substring(0, e), r.substring(e + 1)];
5140
5140
  e += 1;
5141
5141
  }
5142
5142
  return null;
5143
5143
  }
5144
- function r2(r) {
5144
+ function n2(r) {
5145
5145
  var t = r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);
5146
5146
  return t === null ? null : [t[0], r.substring(t[0].length)];
5147
5147
  }
5148
5148
  var Ki, Ns, Ul, zl, Hl, To = ["times"];
5149
5149
  function Wl(r, t, e, n, s) {
5150
- var a = 4, c = Vl;
5150
+ var a = 4, f = Vl;
5151
5151
  switch (s) {
5152
5152
  case Rt.API.image_compression.FAST:
5153
- a = 1, c = Gl;
5153
+ a = 1, f = Gl;
5154
5154
  break;
5155
5155
  case Rt.API.image_compression.MEDIUM:
5156
- a = 6, c = Yl;
5156
+ a = 6, f = Yl;
5157
5157
  break;
5158
5158
  case Rt.API.image_compression.SLOW:
5159
- a = 9, c = Xl;
5159
+ a = 9, f = Xl;
5160
5160
  }
5161
- r = (function(f, d, g, x) {
5162
- for (var N, p = f.length / d, j = new Uint8Array(f.length + p), P = [n2, Gl, Vl, Yl, Xl], O = 0; O < p; O += 1) {
5163
- var k = O * d, G = f.subarray(k, k + d);
5161
+ r = (function(c, d, g, x) {
5162
+ for (var N, p = c.length / d, j = new Uint8Array(c.length + p), P = [i2, Gl, Vl, Yl, Xl], O = 0; O < p; O += 1) {
5163
+ var k = O * d, G = c.subarray(k, k + d);
5164
5164
  if (x) j.set(x(G, g, N), k + O);
5165
5165
  else {
5166
5166
  for (var Y = P.length, q = [], it = 0; it < Y; it += 1) q[it] = P[it](G, g, N);
5167
- var mt = a2(q.concat());
5167
+ var mt = s2(q.concat());
5168
5168
  j.set(q[mt], k + O);
5169
5169
  }
5170
5170
  N = G;
5171
5171
  }
5172
5172
  return j;
5173
- })(r, t, Math.ceil(e * n / 8), c);
5173
+ })(r, t, Math.ceil(e * n / 8), f);
5174
5174
  var u = Go(r, { level: a });
5175
5175
  return Rt.API.__addimage__.arrayBufferToBinaryString(u);
5176
5176
  }
5177
- function n2(r) {
5177
+ function i2(r) {
5178
5178
  var t = Array.apply([], r);
5179
5179
  return t.unshift(0), t;
5180
5180
  }
@@ -5191,8 +5191,8 @@ function Vl(r, t, e) {
5191
5191
  var n = r.length, s = [];
5192
5192
  s[0] = 2;
5193
5193
  for (var a = 0; a < n; a += 1) {
5194
- var c = e && e[a] || 0;
5195
- s[a + 1] = r[a] - c + 256 & 255;
5194
+ var f = e && e[a] || 0;
5195
+ s[a + 1] = r[a] - f + 256 & 255;
5196
5196
  }
5197
5197
  return s;
5198
5198
  }
@@ -5200,8 +5200,8 @@ function Yl(r, t, e) {
5200
5200
  var n = r.length, s = [];
5201
5201
  s[0] = 3;
5202
5202
  for (var a = 0; a < n; a += 1) {
5203
- var c = r[a - t] || 0, u = e && e[a] || 0;
5204
- s[a + 1] = r[a] + 256 - (c + u >>> 1) & 255;
5203
+ var f = r[a - t] || 0, u = e && e[a] || 0;
5204
+ s[a + 1] = r[a] + 256 - (f + u >>> 1) & 255;
5205
5205
  }
5206
5206
  return s;
5207
5207
  }
@@ -5209,17 +5209,17 @@ function Xl(r, t, e) {
5209
5209
  var n = r.length, s = [];
5210
5210
  s[0] = 4;
5211
5211
  for (var a = 0; a < n; a += 1) {
5212
- var c = i2(r[a - t] || 0, e && e[a] || 0, e && e[a - t] || 0);
5213
- s[a + 1] = r[a] - c + 256 & 255;
5212
+ var f = a2(r[a - t] || 0, e && e[a] || 0, e && e[a - t] || 0);
5213
+ s[a + 1] = r[a] - f + 256 & 255;
5214
5214
  }
5215
5215
  return s;
5216
5216
  }
5217
- function i2(r, t, e) {
5217
+ function a2(r, t, e) {
5218
5218
  if (r === t && t === e) return r;
5219
5219
  var n = Math.abs(t - e), s = Math.abs(r - e), a = Math.abs(r + t - e - e);
5220
5220
  return n <= s && n <= a ? r : s <= a ? t : e;
5221
5221
  }
5222
- function a2(r) {
5222
+ function s2(r) {
5223
5223
  var t = r.map(function(e) {
5224
5224
  return e.reduce(function(n, s) {
5225
5225
  return n + Math.abs(s);
@@ -5228,29 +5228,29 @@ function a2(r) {
5228
5228
  return t.indexOf(Math.min.apply(null, t));
5229
5229
  }
5230
5230
  function Do(r, t, e) {
5231
- var n = t * e, s = Math.floor(n / 8), a = 16 - (n - 8 * s + e), c = (1 << e) - 1;
5232
- return qf(r, s) >> a & c;
5231
+ var n = t * e, s = Math.floor(n / 8), a = 16 - (n - 8 * s + e), f = (1 << e) - 1;
5232
+ return qf(r, s) >> a & f;
5233
5233
  }
5234
5234
  function Jl(r, t, e, n) {
5235
- var s = e * n, a = Math.floor(s / 8), c = 16 - (s - 8 * a + n), u = (1 << n) - 1, f = (t & u) << c;
5235
+ var s = e * n, a = Math.floor(s / 8), f = 16 - (s - 8 * a + n), u = (1 << n) - 1, c = (t & u) << f;
5236
5236
  (function(d, g, x) {
5237
5237
  if (g + 1 < d.byteLength) d.setUint16(g, x, !1);
5238
5238
  else {
5239
5239
  var N = x >> 8 & 255;
5240
5240
  d.setUint8(g, N);
5241
5241
  }
5242
- })(r, a, qf(r, a) & ~(u << c) & 65535 | f);
5242
+ })(r, a, qf(r, a) & ~(u << f) & 65535 | c);
5243
5243
  }
5244
5244
  function qf(r, t) {
5245
5245
  return t + 1 < r.byteLength ? r.getUint16(t, !1) : r.getUint8(t) << 8;
5246
5246
  }
5247
- function s2(r) {
5247
+ function o2(r) {
5248
5248
  var t = 0;
5249
5249
  if (r[t++] !== 71 || r[t++] !== 73 || r[t++] !== 70 || r[t++] !== 56 || (r[t++] + 1 & 253) != 56 || r[t++] !== 97) throw new Error("Invalid GIF 87a/89a header.");
5250
- var e = r[t++] | r[t++] << 8, n = r[t++] | r[t++] << 8, s = r[t++], a = s >> 7, c = 1 << 1 + (7 & s);
5250
+ var e = r[t++] | r[t++] << 8, n = r[t++] | r[t++] << 8, s = r[t++], a = s >> 7, f = 1 << 1 + (7 & s);
5251
5251
  r[t++], r[t++];
5252
- var u = null, f = null;
5253
- a && (u = t, f = c, t += 3 * c);
5252
+ var u = null, c = null;
5253
+ a && (u = t, c = f, t += 3 * f);
5254
5254
  var d = !0, g = [], x = 0, N = null, p = 0, j = null;
5255
5255
  for (this.width = e, this.height = n; d && t < r.length; ) switch (r[t++]) {
5256
5256
  case 33:
@@ -5280,7 +5280,7 @@ function s2(r) {
5280
5280
  }
5281
5281
  break;
5282
5282
  case 44:
5283
- var O = r[t++] | r[t++] << 8, k = r[t++] | r[t++] << 8, G = r[t++] | r[t++] << 8, Y = r[t++] | r[t++] << 8, q = r[t++], it = q >> 6 & 1, mt = 1 << 1 + (7 & q), dt = u, K = f, R = !1;
5283
+ var O = r[t++] | r[t++] << 8, k = r[t++] | r[t++] << 8, G = r[t++] | r[t++] << 8, Y = r[t++] | r[t++] << 8, q = r[t++], it = q >> 6 & 1, mt = 1 << 1 + (7 & q), dt = u, K = c, R = !1;
5284
5284
  q >> 7 && (R = !0, dt = t, K = mt, t += 3 * mt);
5285
5285
  var tt = t;
5286
5286
  for (t++; ; ) {
@@ -5343,25 +5343,25 @@ function s2(r) {
5343
5343
  };
5344
5344
  }
5345
5345
  function Kl(r, t, e, n) {
5346
- for (var s = r[t++], a = 1 << s, c = a + 1, u = c + 1, f = s + 1, d = (1 << f) - 1, g = 0, x = 0, N = 0, p = r[t++], j = new Int32Array(4096), P = null; ; ) {
5346
+ for (var s = r[t++], a = 1 << s, f = a + 1, u = f + 1, c = s + 1, d = (1 << c) - 1, g = 0, x = 0, N = 0, p = r[t++], j = new Int32Array(4096), P = null; ; ) {
5347
5347
  for (; g < 16 && p !== 0; ) x |= r[t++] << g, g += 8, p === 1 ? p = r[t++] : --p;
5348
- if (g < f) break;
5348
+ if (g < c) break;
5349
5349
  var O = x & d;
5350
- if (x >>= f, g -= f, O !== a) {
5351
- if (O === c) break;
5350
+ if (x >>= c, g -= c, O !== a) {
5351
+ if (O === f) break;
5352
5352
  for (var k = O < u ? O : P, G = 0, Y = k; Y > a; ) Y = j[Y] >> 8, ++G;
5353
5353
  var q = Y;
5354
5354
  if (N + G + (k !== O ? 1 : 0) > n) return void _e.log("Warning, gif stream longer than expected.");
5355
5355
  e[N++] = q;
5356
5356
  var it = N += G;
5357
5357
  for (k !== O && (e[N++] = q), Y = k; G--; ) Y = j[Y], e[--it] = 255 & Y, Y >>= 8;
5358
- P !== null && u < 4096 && (j[u++] = P << 8 | q, u >= d + 1 && f < 12 && (++f, d = d << 1 | 1)), P = O;
5359
- } else u = c + 1, d = (1 << (f = s + 1)) - 1, P = null;
5358
+ P !== null && u < 4096 && (j[u++] = P << 8 | q, u >= d + 1 && c < 12 && (++c, d = d << 1 | 1)), P = O;
5359
+ } else u = f + 1, d = (1 << (c = s + 1)) - 1, P = null;
5360
5360
  }
5361
5361
  return N !== n && _e.log("Warning, gif stream shorter than expected."), e;
5362
5362
  }
5363
5363
  function qo(r) {
5364
- var t, e, n, s, a, c = Math.floor, u = new Array(64), f = new Array(64), d = new Array(64), g = new Array(64), x = new Array(65535), N = new Array(65535), p = new Array(64), j = new Array(64), P = [], O = 0, k = 7, G = new Array(64), Y = new Array(64), q = new Array(64), it = new Array(256), mt = new Array(2048), dt = [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], K = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], R = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], tt = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], _ = [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], F = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], z = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], U = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], nt = [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];
5364
+ var t, e, n, s, a, f = Math.floor, u = new Array(64), c = new Array(64), d = new Array(64), g = new Array(64), x = new Array(65535), N = new Array(65535), p = new Array(64), j = new Array(64), P = [], O = 0, k = 7, G = new Array(64), Y = new Array(64), q = new Array(64), it = new Array(256), mt = new Array(2048), dt = [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], K = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], R = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], tt = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], _ = [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], F = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], z = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], U = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], nt = [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];
5365
5365
  function ot(A, B) {
5366
5366
  for (var T = 0, H = 0, X = new Array(), Z = 1; Z <= 16; Z++) {
5367
5367
  for (var at = 1; at <= A[Z]; at++) X[B[H]] = [], X[B[H]][0] = T, X[B[H]][1] = Z, H++, T++;
@@ -5421,14 +5421,14 @@ function qo(r) {
5421
5421
  function wt(A) {
5422
5422
  A = Math.min(Math.max(A, 1), 100), a != A && ((function(B) {
5423
5423
  for (var T = [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], H = 0; H < 64; H++) {
5424
- var X = c((T[H] * B + 50) / 100);
5424
+ var X = f((T[H] * B + 50) / 100);
5425
5425
  X = Math.min(Math.max(X, 1), 255), u[dt[H]] = X;
5426
5426
  }
5427
5427
  for (var Z = [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], at = 0; at < 64; at++) {
5428
- var st = c((Z[at] * B + 50) / 100);
5429
- st = Math.min(Math.max(st, 1), 255), f[dt[at]] = st;
5428
+ var st = f((Z[at] * B + 50) / 100);
5429
+ st = Math.min(Math.max(st, 1), 255), c[dt[at]] = st;
5430
5430
  }
5431
- for (var gt = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379], At = 0, kt = 0; kt < 8; kt++) for (var St = 0; St < 8; St++) d[At] = 1 / (u[dt[At]] * gt[kt] * gt[St] * 8), g[At] = 1 / (f[dt[At]] * gt[kt] * gt[St] * 8), At++;
5431
+ for (var gt = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379], At = 0, kt = 0; kt < 8; kt++) for (var St = 0; St < 8; St++) d[At] = 1 / (u[dt[At]] * gt[kt] * gt[St] * 8), g[At] = 1 / (c[dt[At]] * gt[kt] * gt[St] * 8), At++;
5432
5432
  })(A < 50 ? Math.floor(5e3 / A) : Math.floor(200 - 2 * A)), a = A);
5433
5433
  }
5434
5434
  this.encode = function(A, B) {
@@ -5436,7 +5436,7 @@ function qo(r) {
5436
5436
  ht(65499), ht(132), rt(0);
5437
5437
  for (var zt = 0; zt < 64; zt++) rt(u[zt]);
5438
5438
  rt(1);
5439
- for (var qt = 0; qt < 64; qt++) rt(f[qt]);
5439
+ for (var qt = 0; qt < 64; qt++) rt(c[qt]);
5440
5440
  })(), (function(zt, qt) {
5441
5441
  ht(65472), ht(17), rt(8), ht(qt), ht(zt), rt(3), rt(1), rt(17), rt(0), rt(2), rt(17), rt(1), rt(3), rt(17), rt(1);
5442
5442
  })(A.width, A.height), (function() {
@@ -5500,7 +5500,7 @@ function $l(r) {
5500
5500
  function a(R) {
5501
5501
  return new Int32Array(R);
5502
5502
  }
5503
- function c(R, tt) {
5503
+ function f(R, tt) {
5504
5504
  for (var _ = [], F = 0; F < R; F++) _.push(new tt());
5505
5505
  return _;
5506
5506
  }
@@ -5510,7 +5510,7 @@ function $l(r) {
5510
5510
  for (var ot = nt[U], ft = 0; ft < ot && (z.push(nt.length > U + 1 ? [] : new tt()), !(nt.length < U + 1)); ft++) F(z[ft], U + 1, nt);
5511
5511
  })(_, 0, R), _;
5512
5512
  }
5513
- var f = function() {
5513
+ var c = function() {
5514
5514
  var R = this;
5515
5515
  function tt(i, o) {
5516
5516
  for (var h = 1 << o - 1 >>> 0; i & h; ) h >>>= 1;
@@ -5563,7 +5563,7 @@ function $l(r) {
5563
5563
  this.value = this.g = 0;
5564
5564
  }
5565
5565
  function nt() {
5566
- this.G = c(5, z), this.H = a(5), this.jc = this.Qb = this.qb = this.nd = 0, this.pd = c(Ui, U);
5566
+ this.G = f(5, z), this.H = a(5), this.jc = this.Qb = this.qb = this.nd = 0, this.pd = f(Ui, U);
5567
5567
  }
5568
5568
  function ot(i, o, h, m) {
5569
5569
  t(i != null), t(o != null), t(2147483648 > m), i.Ca = 254, i.I = 0, i.b = -8, i.Ka = 0, i.oa = o, i.pa = h, i.Jd = o, i.Yc = h + m, i.Zc = 4 <= m ? h + m - 4 + 1 : h, at(i);
@@ -6072,7 +6072,7 @@ function $l(r) {
6072
6072
  var er = xu[ee];
6073
6073
  !ee && 0 < De && (er += 1 << De), qe < er && (qe = er);
6074
6074
  }
6075
- var Mr = c(we * ye, z), Ar = we, Ir = c(Ar, nt);
6075
+ var Mr = f(we * ye, z), Ar = we, Ir = f(Ar, nt);
6076
6076
  if (Ir == null) var Er = null;
6077
6077
  else t(65536 >= Ar), Er = Ir;
6078
6078
  var _r = a(qe);
@@ -6099,7 +6099,7 @@ function $l(r) {
6099
6099
  break i;
6100
6100
  }
6101
6101
  for (fs = 0; fs < Fu; ++fs) Cu[Jf[fs]] = wt(Wn, 3);
6102
- var mo = void 0, ka = void 0, ju = cs, Nc = Cu, ps = po, Ou = Sa, vo = 0, Gn = ju.m, Bu = 8, Ru = c(128, z);
6102
+ var mo = void 0, ka = void 0, ju = cs, Nc = Cu, ps = po, Ou = Sa, vo = 0, Gn = ju.m, Bu = 8, Ru = f(128, z);
6103
6103
  n: for (; F(Ru, 0, 7, Nc, 19); ) {
6104
6104
  if (wt(Gn, 1)) {
6105
6105
  var Lc = 2 + 2 * wt(Gn, 3);
@@ -6222,7 +6222,7 @@ function $l(r) {
6222
6222
  this.y = a(16), this.f = a(8), this.ea = a(8);
6223
6223
  }
6224
6224
  function za() {
6225
- this.cb = this.a = 0, this.sc = "", this.m = new A(), this.Od = new ki(), this.Kc = new Pi(), this.ed = new Ta(), this.Qa = new qs(), this.Ic = this.$c = this.Aa = 0, this.D = new qa(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = c(8, A), this.ia = 0, this.pb = c(4, Da), this.Pa = new Ra(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Ua()), this.Hd = 0, this.rb = Array(new oa()), this.sb = 0, this.wa = Array(new Tr()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new ua()), this.L = this.aa = 0, this.gd = u([4, 2], Tr), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;
6225
+ this.cb = this.a = 0, this.sc = "", this.m = new A(), this.Od = new ki(), this.Kc = new Pi(), this.ed = new Ta(), this.Qa = new qs(), this.Ic = this.$c = this.Aa = 0, this.D = new qa(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = f(8, A), this.ia = 0, this.pb = f(4, Da), this.Pa = new Ra(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Ua()), this.Hd = 0, this.rb = Array(new oa()), this.sb = 0, this.wa = Array(new Tr()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new ua()), this.L = this.aa = 0, this.gd = u([4, 2], Tr), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;
6226
6226
  }
6227
6227
  function an(i, o) {
6228
6228
  return 0 > i ? 0 : i > o ? o : i;
@@ -6576,7 +6576,7 @@ function $l(r) {
6576
6576
  this.ua = 0, this.Wa = new ae(), this.vb = new ae(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new nt(), this.yc = new z();
6577
6577
  }
6578
6578
  function Ct() {
6579
- this.xb = this.a = 0, this.l = new Mi(), this.ca = new ue(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new B(), this.Pb = 0, this.wd = new B(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new vt(), this.ab = 0, this.gc = c(4, ut), this.Oc = 0;
6579
+ this.xb = this.a = 0, this.l = new Mi(), this.ca = new ue(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new B(), this.Pb = 0, this.wd = new B(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new vt(), this.ab = 0, this.gc = f(4, ut), this.Oc = 0;
6580
6580
  }
6581
6581
  function Et() {
6582
6582
  this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Mi(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
@@ -7160,7 +7160,7 @@ function $l(r) {
7160
7160
  }
7161
7161
  C.Vb = pt;
7162
7162
  }
7163
- pt = C.Ec, xt = C.Fc, C.Ac = pt, C.Bc = xt, xt += lt, C.Gd = c(Bt, Ua), C.Hd = 0, C.rb = c(Pt + 1, oa), C.sb = 1, C.wa = ne ? c(ne, Tr) : null, C.Y = 0, C.D.Nb = 0, C.D.wa = C.wa, C.D.Y = C.Y, 0 < C.Aa && (C.D.Y += bt), t(!0), C.oc = pt, C.pc = xt, xt += 832, C.ya = c(Ft, ua), C.aa = 0, C.D.ya = C.ya, C.D.aa = C.aa, C.Aa == 2 && (C.D.aa += bt), C.R = 16 * bt, C.B = 8 * bt, bt = (Bt = ls[C.L]) * C.R, Bt = Bt / 2 * C.B, C.sa = pt, C.ta = xt + bt, C.qa = C.sa, C.ra = C.ta + 16 * $ * C.R + Bt, C.Ha = C.qa, C.Ia = C.ra + 8 * $ * C.B + Bt, C.$c = 0, xt += Q, C.mb = ct ? pt : null, C.nb = ct ? xt : null, t(xt + ct <= C.Fc + C.Vb), la(C), s(C.Ac, C.Bc, 0, lt), $ = 1;
7163
+ pt = C.Ec, xt = C.Fc, C.Ac = pt, C.Bc = xt, xt += lt, C.Gd = f(Bt, Ua), C.Hd = 0, C.rb = f(Pt + 1, oa), C.sb = 1, C.wa = ne ? f(ne, Tr) : null, C.Y = 0, C.D.Nb = 0, C.D.wa = C.wa, C.D.Y = C.Y, 0 < C.Aa && (C.D.Y += bt), t(!0), C.oc = pt, C.pc = xt, xt += 832, C.ya = f(Ft, ua), C.aa = 0, C.D.ya = C.ya, C.D.aa = C.aa, C.Aa == 2 && (C.D.aa += bt), C.R = 16 * bt, C.B = 8 * bt, bt = (Bt = ls[C.L]) * C.R, Bt = Bt / 2 * C.B, C.sa = pt, C.ta = xt + bt, C.qa = C.sa, C.ra = C.ta + 16 * $ * C.R + Bt, C.Ha = C.qa, C.Ia = C.ra + 8 * $ * C.B + Bt, C.$c = 0, xt += Q, C.mb = ct ? pt : null, C.nb = ct ? xt : null, t(xt + ct <= C.Fc + C.Vb), la(C), s(C.Ac, C.Bc, 0, lt), $ = 1;
7164
7164
  }
7165
7165
  }
7166
7166
  if ($) {
@@ -7280,8 +7280,8 @@ function $l(r) {
7280
7280
  function N(R, tt) {
7281
7281
  return (R[tt + 0] | R[tt + 1] << 8 | R[tt + 2] << 16 | R[tt + 3] << 24) >>> 0;
7282
7282
  }
7283
- new f();
7284
- var p = [0], j = [0], P = [], O = new f(), k = r, G = (function(R, tt) {
7283
+ new c();
7284
+ var p = [0], j = [0], P = [], O = new c(), k = r, G = (function(R, tt) {
7285
7285
  var _ = {}, F = 0, z = !1, U = 0, nt = 0;
7286
7286
  if (_.frames = [], !/** @license
7287
7287
  * Copyright (c) 2017 Dominik Homberger
@@ -7335,19 +7335,19 @@ function $l(r) {
7335
7335
  for (var K = 0; K < j[0] * p[0] * 4; K++) P[K] = dt[K];
7336
7336
  return this.width = j, this.height = p, this.data = P, this;
7337
7337
  }
7338
- function o2() {
7338
+ function u2() {
7339
7339
  var r, t = this.internal.__metadata__.metadata, e = unescape(encodeURIComponent(t));
7340
7340
  r = this.internal.__metadata__.rawXml ? e : '<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="' + this.internal.__metadata__.namespaceUri + '"><jspdf:metadata>' + e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;") + "</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>", this.internal.__metadata__.metadataObjectNumber = this.internal.newObject(), this.internal.write("<< /Type /Metadata /Subtype /XML /Length " + r.length + " >>"), this.internal.write("stream"), this.internal.write(r), this.internal.write("endstream"), this.internal.write("endobj");
7341
7341
  }
7342
- function u2() {
7342
+ function l2() {
7343
7343
  this.internal.__metadata__.metadataObjectNumber && this.internal.write("/Metadata " + this.internal.__metadata__.metadataObjectNumber + " 0 R");
7344
7344
  }
7345
7345
  (function(r) {
7346
- var t, e, n, s, a, c, u, f, d, g = function(A) {
7347
- return A = A || {}, this.isStrokeTransparent = A.isStrokeTransparent || !1, this.strokeOpacity = A.strokeOpacity || 1, this.strokeStyle = A.strokeStyle || "#000000", this.fillStyle = A.fillStyle || "#000000", this.isFillTransparent = A.isFillTransparent || !1, this.fillOpacity = A.fillOpacity || 1, this.font = A.font || "10px sans-serif", this.textBaseline = A.textBaseline || "alphabetic", this.textAlign = A.textAlign || "left", this.lineWidth = A.lineWidth || 1, this.lineJoin = A.lineJoin || "miter", this.lineCap = A.lineCap || "butt", this.path = A.path || [], this.transform = A.transform !== void 0 ? A.transform.clone() : new f(), this.globalCompositeOperation = A.globalCompositeOperation || "normal", this.globalAlpha = A.globalAlpha || 1, this.clip_path = A.clip_path || [], this.currentPoint = A.currentPoint || new c(), this.miterLimit = A.miterLimit || 10, this.lastPoint = A.lastPoint || new c(), this.lineDashOffset = A.lineDashOffset || 0, this.lineDash = A.lineDash || [], this.margin = A.margin || [0, 0, 0, 0], this.prevPageLastElemOffset = A.prevPageLastElemOffset || 0, this.ignoreClearRect = typeof A.ignoreClearRect != "boolean" || A.ignoreClearRect, this;
7346
+ var t, e, n, s, a, f, u, c, d, g = function(A) {
7347
+ return A = A || {}, this.isStrokeTransparent = A.isStrokeTransparent || !1, this.strokeOpacity = A.strokeOpacity || 1, this.strokeStyle = A.strokeStyle || "#000000", this.fillStyle = A.fillStyle || "#000000", this.isFillTransparent = A.isFillTransparent || !1, this.fillOpacity = A.fillOpacity || 1, this.font = A.font || "10px sans-serif", this.textBaseline = A.textBaseline || "alphabetic", this.textAlign = A.textAlign || "left", this.lineWidth = A.lineWidth || 1, this.lineJoin = A.lineJoin || "miter", this.lineCap = A.lineCap || "butt", this.path = A.path || [], this.transform = A.transform !== void 0 ? A.transform.clone() : new c(), this.globalCompositeOperation = A.globalCompositeOperation || "normal", this.globalAlpha = A.globalAlpha || 1, this.clip_path = A.clip_path || [], this.currentPoint = A.currentPoint || new f(), this.miterLimit = A.miterLimit || 10, this.lastPoint = A.lastPoint || new f(), this.lineDashOffset = A.lineDashOffset || 0, this.lineDash = A.lineDash || [], this.margin = A.margin || [0, 0, 0, 0], this.prevPageLastElemOffset = A.prevPageLastElemOffset || 0, this.ignoreClearRect = typeof A.ignoreClearRect != "boolean" || A.ignoreClearRect, this;
7348
7348
  };
7349
7349
  r.events.push(["initialized", function() {
7350
- this.context2d = new x(this), t = this.internal.f2, e = this.internal.getCoordinateString, n = this.internal.getVerticalCoordinateString, s = this.internal.getHorizontalCoordinate, a = this.internal.getVerticalCoordinate, c = this.internal.Point, u = this.internal.Rectangle, f = this.internal.Matrix, d = new g();
7350
+ this.context2d = new x(this), t = this.internal.f2, e = this.internal.getCoordinateString, n = this.internal.getVerticalCoordinateString, s = this.internal.getHorizontalCoordinate, a = this.internal.getVerticalCoordinate, f = this.internal.Point, u = this.internal.Rectangle, c = this.internal.Matrix, d = new g();
7351
7351
  }]);
7352
7352
  var x = function(A) {
7353
7353
  Object.defineProperty(this, "canvas", { get: function() {
@@ -7476,10 +7476,10 @@ function u2() {
7476
7476
  switch (ge = null, ze = (oe = ql(oe)).charAt(0)) {
7477
7477
  case '"':
7478
7478
  case "'":
7479
- ge = e2(oe.substring(1), ze);
7479
+ ge = r2(oe.substring(1), ze);
7480
7480
  break;
7481
7481
  default:
7482
- ge = r2(oe);
7482
+ ge = n2(oe);
7483
7483
  }
7484
7484
  if (ge === null || (se.push(ge[0]), (oe = ql(ge[1])) !== "" && oe.charAt(0) !== ",")) return To;
7485
7485
  oe = oe.replace(/^,/, "");
@@ -7525,7 +7525,7 @@ function u2() {
7525
7525
  })(this.pdf, this.fontFaces), ve = zt.map(function(Tt) {
7526
7526
  return { family: Tt, stretch: "normal", weight: Ht, style: ae };
7527
7527
  }), le = (function(Tt, ze, ge) {
7528
- for (var se = (ge = ge || {}).defaultFontFamily || "times", oe = Object.assign({}, t2, ge.genericFontFamilies || {}), Fe = null, Ut = null, Se = 0; Se < ze.length; ++Se) if (oe[(Fe = Ro(ze[Se])).family] && (Fe.family = oe[Fe.family]), Tt.hasOwnProperty(Fe.family)) {
7528
+ for (var se = (ge = ge || {}).defaultFontFamily || "times", oe = Object.assign({}, e2, ge.genericFontFamilies || {}), Fe = null, Ut = null, Se = 0; Se < ze.length; ++Se) if (oe[(Fe = Ro(ze[Se])).family] && (Fe.family = oe[Fe.family]), Tt.hasOwnProperty(Fe.family)) {
7529
7529
  Ut = Tt[Fe.family];
7530
7530
  break;
7531
7531
  }
@@ -7543,7 +7543,7 @@ function u2() {
7543
7543
  if (Qt[Yt]) return Qt[Yt];
7544
7544
  if (Yt === 400 && Qt[500]) return Qt[500];
7545
7545
  if (Yt === 500 && Qt[400]) return Qt[400];
7546
- var je = Q1[Yt], ue = Rl(Qt, Df, je, Yt < 400 ? -1 : 1);
7546
+ var je = t2[Yt], ue = Rl(Qt, Df, je, Yt < 400 ? -1 : 1);
7547
7547
  if (!ue) throw new Error("Could not find a matching font-weight for value " + Yt);
7548
7548
  return ue;
7549
7549
  })(Fe.weight, Ut))) throw new Error("Failed to resolve a font for the rule '" + Dl(Fe) + "'.");
@@ -7607,35 +7607,35 @@ function u2() {
7607
7607
  this.path = [{ type: "begin" }];
7608
7608
  }, x.prototype.moveTo = function(A, B) {
7609
7609
  if (isNaN(A) || isNaN(B)) throw _e.error("jsPDF.context2d.moveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.moveTo");
7610
- var T = this.ctx.transform.applyToPoint(new c(A, B));
7611
- this.path.push({ type: "mt", x: T.x, y: T.y }), this.ctx.lastPoint = new c(A, B);
7610
+ var T = this.ctx.transform.applyToPoint(new f(A, B));
7611
+ this.path.push({ type: "mt", x: T.x, y: T.y }), this.ctx.lastPoint = new f(A, B);
7612
7612
  }, x.prototype.closePath = function() {
7613
- var A = new c(0, 0), B = 0;
7613
+ var A = new f(0, 0), B = 0;
7614
7614
  for (B = this.path.length - 1; B !== -1; B--) if (this.path[B].type === "begin" && xe(this.path[B + 1]) === "object" && typeof this.path[B + 1].x == "number") {
7615
- A = new c(this.path[B + 1].x, this.path[B + 1].y);
7615
+ A = new f(this.path[B + 1].x, this.path[B + 1].y);
7616
7616
  break;
7617
7617
  }
7618
- this.path.push({ type: "close" }), this.ctx.lastPoint = new c(A.x, A.y);
7618
+ this.path.push({ type: "close" }), this.ctx.lastPoint = new f(A.x, A.y);
7619
7619
  }, x.prototype.lineTo = function(A, B) {
7620
7620
  if (isNaN(A) || isNaN(B)) throw _e.error("jsPDF.context2d.lineTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.lineTo");
7621
- var T = this.ctx.transform.applyToPoint(new c(A, B));
7622
- this.path.push({ type: "lt", x: T.x, y: T.y }), this.ctx.lastPoint = new c(T.x, T.y);
7621
+ var T = this.ctx.transform.applyToPoint(new f(A, B));
7622
+ this.path.push({ type: "lt", x: T.x, y: T.y }), this.ctx.lastPoint = new f(T.x, T.y);
7623
7623
  }, x.prototype.clip = function() {
7624
7624
  this.ctx.clip_path = JSON.parse(JSON.stringify(this.path)), q.call(this, null, !0);
7625
7625
  }, x.prototype.quadraticCurveTo = function(A, B, T, H) {
7626
7626
  if (isNaN(T) || isNaN(H) || isNaN(A) || isNaN(B)) throw _e.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");
7627
- var X = this.ctx.transform.applyToPoint(new c(T, H)), Z = this.ctx.transform.applyToPoint(new c(A, B));
7628
- this.path.push({ type: "qct", x1: Z.x, y1: Z.y, x: X.x, y: X.y }), this.ctx.lastPoint = new c(X.x, X.y);
7627
+ var X = this.ctx.transform.applyToPoint(new f(T, H)), Z = this.ctx.transform.applyToPoint(new f(A, B));
7628
+ this.path.push({ type: "qct", x1: Z.x, y1: Z.y, x: X.x, y: X.y }), this.ctx.lastPoint = new f(X.x, X.y);
7629
7629
  }, x.prototype.bezierCurveTo = function(A, B, T, H, X, Z) {
7630
7630
  if (isNaN(X) || isNaN(Z) || isNaN(A) || isNaN(B) || isNaN(T) || isNaN(H)) throw _e.error("jsPDF.context2d.bezierCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");
7631
- var at = this.ctx.transform.applyToPoint(new c(X, Z)), st = this.ctx.transform.applyToPoint(new c(A, B)), gt = this.ctx.transform.applyToPoint(new c(T, H));
7632
- this.path.push({ type: "bct", x1: st.x, y1: st.y, x2: gt.x, y2: gt.y, x: at.x, y: at.y }), this.ctx.lastPoint = new c(at.x, at.y);
7631
+ var at = this.ctx.transform.applyToPoint(new f(X, Z)), st = this.ctx.transform.applyToPoint(new f(A, B)), gt = this.ctx.transform.applyToPoint(new f(T, H));
7632
+ this.path.push({ type: "bct", x1: st.x, y1: st.y, x2: gt.x, y2: gt.y, x: at.x, y: at.y }), this.ctx.lastPoint = new f(at.x, at.y);
7633
7633
  }, x.prototype.arc = function(A, B, T, H, X, Z) {
7634
7634
  if (isNaN(A) || isNaN(B) || isNaN(T) || isNaN(H) || isNaN(X)) throw _e.error("jsPDF.context2d.arc: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.arc");
7635
7635
  if (Z = !!Z, !this.ctx.transform.isIdentity) {
7636
- var at = this.ctx.transform.applyToPoint(new c(A, B));
7636
+ var at = this.ctx.transform.applyToPoint(new f(A, B));
7637
7637
  A = at.x, B = at.y;
7638
- var st = this.ctx.transform.applyToPoint(new c(0, T)), gt = this.ctx.transform.applyToPoint(new c(0, 0));
7638
+ var st = this.ctx.transform.applyToPoint(new f(0, T)), gt = this.ctx.transform.applyToPoint(new f(0, 0));
7639
7639
  T = Math.sqrt(Math.pow(st.x - gt.x, 2) + Math.pow(st.y - gt.y, 2));
7640
7640
  }
7641
7641
  Math.abs(X - H) >= 2 * Math.PI && (H = 0, X = 2 * Math.PI), this.path.push({ type: "arc", x: A, y: B, radius: T, startAngle: H, endAngle: X, counterclockwise: Z });
@@ -7717,22 +7717,22 @@ function u2() {
7717
7717
  }({ width: X *= Math.round(96 * T / 72 * 1e4) / 1e4 });
7718
7718
  }, x.prototype.scale = function(A, B) {
7719
7719
  if (isNaN(A) || isNaN(B)) throw _e.error("jsPDF.context2d.scale: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.scale");
7720
- var T = new f(A, 0, 0, B, 0, 0);
7720
+ var T = new c(A, 0, 0, B, 0, 0);
7721
7721
  this.ctx.transform = this.ctx.transform.multiply(T);
7722
7722
  }, x.prototype.rotate = function(A) {
7723
7723
  if (isNaN(A)) throw _e.error("jsPDF.context2d.rotate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rotate");
7724
- var B = new f(Math.cos(A), Math.sin(A), -Math.sin(A), Math.cos(A), 0, 0);
7724
+ var B = new c(Math.cos(A), Math.sin(A), -Math.sin(A), Math.cos(A), 0, 0);
7725
7725
  this.ctx.transform = this.ctx.transform.multiply(B);
7726
7726
  }, x.prototype.translate = function(A, B) {
7727
7727
  if (isNaN(A) || isNaN(B)) throw _e.error("jsPDF.context2d.translate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.translate");
7728
- var T = new f(1, 0, 0, 1, A, B);
7728
+ var T = new c(1, 0, 0, 1, A, B);
7729
7729
  this.ctx.transform = this.ctx.transform.multiply(T);
7730
7730
  }, x.prototype.transform = function(A, B, T, H, X, Z) {
7731
7731
  if (isNaN(A) || isNaN(B) || isNaN(T) || isNaN(H) || isNaN(X) || isNaN(Z)) throw _e.error("jsPDF.context2d.transform: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.transform");
7732
- var at = new f(A, B, T, H, X, Z);
7732
+ var at = new c(A, B, T, H, X, Z);
7733
7733
  this.ctx.transform = this.ctx.transform.multiply(at);
7734
7734
  }, x.prototype.setTransform = function(A, B, T, H, X, Z) {
7735
- A = isNaN(A) ? 1 : A, B = isNaN(B) ? 0 : B, T = isNaN(T) ? 0 : T, H = isNaN(H) ? 1 : H, X = isNaN(X) ? 0 : X, Z = isNaN(Z) ? 0 : Z, this.ctx.transform = new f(A, B, T, H, X, Z);
7735
+ A = isNaN(A) ? 1 : A, B = isNaN(B) ? 0 : B, T = isNaN(T) ? 0 : T, H = isNaN(H) ? 1 : H, X = isNaN(X) ? 0 : X, Z = isNaN(Z) ? 0 : Z, this.ctx.transform = new c(A, B, T, H, X, Z);
7736
7736
  };
7737
7737
  var P = function() {
7738
7738
  return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0;
@@ -7740,7 +7740,7 @@ function u2() {
7740
7740
  x.prototype.drawImage = function(A, B, T, H, X, Z, at, st, gt) {
7741
7741
  var At = this.pdf.getImageProperties(A), kt = 1, St = 1, Dt = 1, M = 1;
7742
7742
  H !== void 0 && st !== void 0 && (Dt = st / H, M = gt / X, kt = At.width / H * st / H, St = At.height / X * gt / X), Z === void 0 && (Z = B, at = T, B = 0, T = 0), H !== void 0 && st === void 0 && (st = H, gt = X), H === void 0 && st === void 0 && (st = At.width, gt = At.height);
7743
- var _t = this.ctx.transform.decompose(), ae = rt(_t.rotate.shx), Ht = new f(), yt = (Ht = (Ht = (Ht = Ht.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale)).applyToRectangle(new u(Z - B * Dt, at - T * M, H * kt, X * St));
7743
+ var _t = this.ctx.transform.decompose(), ae = rt(_t.rotate.shx), Ht = new c(), yt = (Ht = (Ht = (Ht = Ht.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale)).applyToRectangle(new u(Z - B * Dt, at - T * M, H * kt, X * St));
7744
7744
  if (this.autoPaging) {
7745
7745
  for (var Wt, Mt = O.call(this, yt), zt = [], qt = 0; qt < Mt.length; qt += 1) zt.indexOf(Mt[qt]) === -1 && zt.push(Mt[qt]);
7746
7746
  Y(zt);
@@ -7929,9 +7929,9 @@ function u2() {
7929
7929
  default:
7930
7930
  B = "left";
7931
7931
  }
7932
- var T, H, X, Z = this.pdf.getTextDimensions(A.text), at = mt.call(this, A.y), st = dt.call(this, at) - Z.h, gt = this.ctx.transform.applyToPoint(new c(A.x, at));
7932
+ var T, H, X, Z = this.pdf.getTextDimensions(A.text), at = mt.call(this, A.y), st = dt.call(this, at) - Z.h, gt = this.ctx.transform.applyToPoint(new f(A.x, at));
7933
7933
  if (this.autoPaging) {
7934
- var At = this.ctx.transform.decompose(), kt = new f();
7934
+ var At = this.ctx.transform.decompose(), kt = new c();
7935
7935
  kt = (kt = (kt = kt.multiply(At.translate)).multiply(At.skew)).multiply(At.scale);
7936
7936
  for (var St = this.ctx.transform.applyToRectangle(new u(A.x, at, Z.w, Z.h)), Dt = kt.applyToRectangle(new u(A.x, st, Z.w, Z.h)), M = O.call(this, Dt), _t = [], ae = 0; ae < M.length; ae += 1) _t.indexOf(M[ae]) === -1 && _t.push(M[ae]);
7937
7937
  Y(_t);
@@ -7996,36 +7996,36 @@ function u2() {
7996
7996
  * http://opensource.org/licenses/mit-license
7997
7997
  */
7998
7998
  (function(r) {
7999
- var t = function(c) {
8000
- var u, f, d, g, x, N, p, j, P, O;
8001
- for (f = [], d = 0, g = (c += u = "\0\0\0\0".slice(c.length % 4 || 4)).length; g > d; d += 4) (x = (c.charCodeAt(d) << 24) + (c.charCodeAt(d + 1) << 16) + (c.charCodeAt(d + 2) << 8) + c.charCodeAt(d + 3)) !== 0 ? (N = (x = ((x = ((x = ((x = (x - (O = x % 85)) / 85) - (P = x % 85)) / 85) - (j = x % 85)) / 85) - (p = x % 85)) / 85) % 85, f.push(N + 33, p + 33, j + 33, P + 33, O + 33)) : f.push(122);
7999
+ var t = function(f) {
8000
+ var u, c, d, g, x, N, p, j, P, O;
8001
+ for (c = [], d = 0, g = (f += u = "\0\0\0\0".slice(f.length % 4 || 4)).length; g > d; d += 4) (x = (f.charCodeAt(d) << 24) + (f.charCodeAt(d + 1) << 16) + (f.charCodeAt(d + 2) << 8) + f.charCodeAt(d + 3)) !== 0 ? (N = (x = ((x = ((x = ((x = (x - (O = x % 85)) / 85) - (P = x % 85)) / 85) - (j = x % 85)) / 85) - (p = x % 85)) / 85) % 85, c.push(N + 33, p + 33, j + 33, P + 33, O + 33)) : c.push(122);
8002
8002
  return (function(k, G) {
8003
8003
  for (var Y = G; Y > 0; Y--) k.pop();
8004
- })(f, u.length), String.fromCharCode.apply(String, f) + "~>";
8005
- }, e = function(c) {
8006
- var u, f, d, g, x, N = String, p = "length", j = 255, P = "charCodeAt", O = "slice", k = "replace";
8007
- for (c[O](-2), c = c[O](0, -2)[k](/\s/g, "")[k]("z", "!!!!!"), d = [], g = 0, x = (c += u = "uuuuu"[O](c[p] % 5 || 5))[p]; x > g; g += 5) f = 52200625 * (c[P](g) - 33) + 614125 * (c[P](g + 1) - 33) + 7225 * (c[P](g + 2) - 33) + 85 * (c[P](g + 3) - 33) + (c[P](g + 4) - 33), d.push(j & f >> 24, j & f >> 16, j & f >> 8, j & f);
8004
+ })(c, u.length), String.fromCharCode.apply(String, c) + "~>";
8005
+ }, e = function(f) {
8006
+ var u, c, d, g, x, N = String, p = "length", j = 255, P = "charCodeAt", O = "slice", k = "replace";
8007
+ for (f[O](-2), f = f[O](0, -2)[k](/\s/g, "")[k]("z", "!!!!!"), d = [], g = 0, x = (f += u = "uuuuu"[O](f[p] % 5 || 5))[p]; x > g; g += 5) c = 52200625 * (f[P](g) - 33) + 614125 * (f[P](g + 1) - 33) + 7225 * (f[P](g + 2) - 33) + 85 * (f[P](g + 3) - 33) + (f[P](g + 4) - 33), d.push(j & c >> 24, j & c >> 16, j & c >> 8, j & c);
8008
8008
  return (function(G, Y) {
8009
8009
  for (var q = Y; q > 0; q--) G.pop();
8010
8010
  })(d, u[p]), N.fromCharCode.apply(N, d);
8011
- }, n = function(c) {
8012
- return c.split("").map(function(u) {
8011
+ }, n = function(f) {
8012
+ return f.split("").map(function(u) {
8013
8013
  return ("0" + u.charCodeAt().toString(16)).slice(-2);
8014
8014
  }).join("") + ">";
8015
- }, s = function(c) {
8015
+ }, s = function(f) {
8016
8016
  var u = new RegExp(/^([0-9A-Fa-f]{2})+$/);
8017
- if ((c = c.replace(/\s/g, "")).indexOf(">") !== -1 && (c = c.substr(0, c.indexOf(">"))), c.length % 2 && (c += "0"), u.test(c) === !1) return "";
8018
- for (var f = "", d = 0; d < c.length; d += 2) f += String.fromCharCode("0x" + (c[d] + c[d + 1]));
8019
- return f;
8020
- }, a = function(c) {
8021
- for (var u = new Uint8Array(c.length), f = c.length; f--; ) u[f] = c.charCodeAt(f);
8017
+ if ((f = f.replace(/\s/g, "")).indexOf(">") !== -1 && (f = f.substr(0, f.indexOf(">"))), f.length % 2 && (f += "0"), u.test(f) === !1) return "";
8018
+ for (var c = "", d = 0; d < f.length; d += 2) c += String.fromCharCode("0x" + (f[d] + f[d + 1]));
8019
+ return c;
8020
+ }, a = function(f) {
8021
+ for (var u = new Uint8Array(f.length), c = f.length; c--; ) u[c] = f.charCodeAt(c);
8022
8022
  return (u = Go(u)).reduce(function(d, g) {
8023
8023
  return d + String.fromCharCode(g);
8024
8024
  }, "");
8025
8025
  };
8026
- r.processDataByFilters = function(c, u) {
8027
- var f = 0, d = c || "", g = [];
8028
- for (typeof (u = u || []) == "string" && (u = [u]), f = 0; f < u.length; f += 1) switch (u[f]) {
8026
+ r.processDataByFilters = function(f, u) {
8027
+ var c = 0, d = f || "", g = [];
8028
+ for (typeof (u = u || []) == "string" && (u = [u]), c = 0; c < u.length; c += 1) switch (u[c]) {
8029
8029
  case "ASCII85Decode":
8030
8030
  case "/ASCII85Decode":
8031
8031
  d = e(d), g.push("/ASCII85Encode");
@@ -8047,7 +8047,7 @@ function u2() {
8047
8047
  d = a(d), g.push("/FlateDecode");
8048
8048
  break;
8049
8049
  default:
8050
- throw new Error('The filter: "' + u[f] + '" is not implemented');
8050
+ throw new Error('The filter: "' + u[c] + '" is not implemented');
8051
8051
  }
8052
8052
  return { data: d, reverseChain: g.reverse().join(" ") };
8053
8053
  };
@@ -8061,21 +8061,21 @@ function u2() {
8061
8061
  */
8062
8062
  (function(r) {
8063
8063
  r.loadFile = function(t, e, n) {
8064
- return (function(s, a, c) {
8065
- a = a !== !1, c = typeof c == "function" ? c : function() {
8064
+ return (function(s, a, f) {
8065
+ a = a !== !1, f = typeof f == "function" ? f : function() {
8066
8066
  };
8067
8067
  var u = void 0;
8068
8068
  try {
8069
- u = (function(f, d, g) {
8069
+ u = (function(c, d, g) {
8070
8070
  var x = new XMLHttpRequest(), N = 0, p = function(j) {
8071
8071
  var P = j.length, O = [], k = String.fromCharCode;
8072
8072
  for (N = 0; N < P; N += 1) O.push(k(255 & j.charCodeAt(N)));
8073
8073
  return O.join("");
8074
8074
  };
8075
- if (x.open("GET", f, !d), x.overrideMimeType("text/plain; charset=x-user-defined"), d === !1 && (x.onload = function() {
8075
+ if (x.open("GET", c, !d), x.overrideMimeType("text/plain; charset=x-user-defined"), d === !1 && (x.onload = function() {
8076
8076
  x.status === 200 ? g(p(this.responseText)) : g(void 0);
8077
8077
  }), x.send(null), d && x.status === 200) return p(x.responseText);
8078
- })(s, a, c);
8078
+ })(s, a, f);
8079
8079
  } catch {
8080
8080
  }
8081
8081
  return u;
@@ -8097,27 +8097,27 @@ function u2() {
8097
8097
  });
8098
8098
  }
8099
8099
  var n = function(u) {
8100
- var f = xe(u);
8101
- return f === "undefined" ? "undefined" : f === "string" || u instanceof String ? "string" : f === "number" || u instanceof Number ? "number" : f === "function" || u instanceof Function ? "function" : u && u.constructor === Array ? "array" : u && u.nodeType === 1 ? "element" : f === "object" ? "object" : "unknown";
8102
- }, s = function(u, f) {
8100
+ var c = xe(u);
8101
+ return c === "undefined" ? "undefined" : c === "string" || u instanceof String ? "string" : c === "number" || u instanceof Number ? "number" : c === "function" || u instanceof Function ? "function" : u && u.constructor === Array ? "array" : u && u.nodeType === 1 ? "element" : c === "object" ? "object" : "unknown";
8102
+ }, s = function(u, c) {
8103
8103
  var d = document.createElement(u);
8104
- for (var g in f.className && (d.className = f.className), f.innerHTML && f.dompurify && (d.innerHTML = f.dompurify.sanitize(f.innerHTML)), f.style) d.style[g] = f.style[g];
8104
+ for (var g in c.className && (d.className = c.className), c.innerHTML && c.dompurify && (d.innerHTML = c.dompurify.sanitize(c.innerHTML)), c.style) d.style[g] = c.style[g];
8105
8105
  return d;
8106
- }, a = function u(f, d) {
8107
- for (var g = f.nodeType === 3 ? document.createTextNode(f.nodeValue) : f.cloneNode(!1), x = f.firstChild; x; x = x.nextSibling) d !== !0 && x.nodeType === 1 && x.nodeName === "SCRIPT" || g.appendChild(u(x, d));
8108
- return f.nodeType === 1 && (f.nodeName === "CANVAS" ? (g.width = f.width, g.height = f.height, g.getContext("2d").drawImage(f, 0, 0)) : f.nodeName !== "TEXTAREA" && f.nodeName !== "SELECT" || (g.value = f.value), g.addEventListener("load", function() {
8109
- g.scrollTop = f.scrollTop, g.scrollLeft = f.scrollLeft;
8106
+ }, a = function u(c, d) {
8107
+ for (var g = c.nodeType === 3 ? document.createTextNode(c.nodeValue) : c.cloneNode(!1), x = c.firstChild; x; x = x.nextSibling) d !== !0 && x.nodeType === 1 && x.nodeName === "SCRIPT" || g.appendChild(u(x, d));
8108
+ return c.nodeType === 1 && (c.nodeName === "CANVAS" ? (g.width = c.width, g.height = c.height, g.getContext("2d").drawImage(c, 0, 0)) : c.nodeName !== "TEXTAREA" && c.nodeName !== "SELECT" || (g.value = c.value), g.addEventListener("load", function() {
8109
+ g.scrollTop = c.scrollTop, g.scrollLeft = c.scrollLeft;
8110
8110
  }, !0)), g;
8111
- }, c = function u(f) {
8111
+ }, f = function u(c) {
8112
8112
  var d = Object.assign(u.convert(Promise.resolve()), JSON.parse(JSON.stringify(u.template))), g = u.convert(Promise.resolve(), d);
8113
- return (g = g.setProgress(1, u, 1, [u])).set(f);
8113
+ return (g = g.setProgress(1, u, 1, [u])).set(c);
8114
8114
  };
8115
- (c.prototype = Object.create(Promise.prototype)).constructor = c, c.convert = function(u, f) {
8116
- return u.__proto__ = f || c.prototype, u;
8117
- }, c.template = { prop: { src: null, container: null, overlay: null, canvas: null, img: null, pdf: null, pageSize: null, callback: function() {
8118
- } }, progress: { val: 0, state: null, n: 0, stack: [] }, opt: { filename: "file.pdf", margin: [0, 0, 0, 0], enableLinks: !0, x: 0, y: 0, html2canvas: {}, jsPDF: {}, backgroundColor: "transparent" } }, c.prototype.from = function(u, f) {
8115
+ (f.prototype = Object.create(Promise.prototype)).constructor = f, f.convert = function(u, c) {
8116
+ return u.__proto__ = c || f.prototype, u;
8117
+ }, f.template = { prop: { src: null, container: null, overlay: null, canvas: null, img: null, pdf: null, pageSize: null, callback: function() {
8118
+ } }, progress: { val: 0, state: null, n: 0, stack: [] }, opt: { filename: "file.pdf", margin: [0, 0, 0, 0], enableLinks: !0, x: 0, y: 0, html2canvas: {}, jsPDF: {}, backgroundColor: "transparent" } }, f.prototype.from = function(u, c) {
8119
8119
  return this.then(function() {
8120
- switch (f = f || (function(d) {
8120
+ switch (c = c || (function(d) {
8121
8121
  switch (n(d)) {
8122
8122
  case "string":
8123
8123
  return "string";
@@ -8126,7 +8126,7 @@ function u2() {
8126
8126
  default:
8127
8127
  return "unknown";
8128
8128
  }
8129
- })(u), f) {
8129
+ })(u), c) {
8130
8130
  case "string":
8131
8131
  return this.then(e).then(function(d) {
8132
8132
  return this.set({ src: s("div", { innerHTML: u, dompurify: d }) });
@@ -8141,7 +8141,7 @@ function u2() {
8141
8141
  return this.error("Unknown source type.");
8142
8142
  }
8143
8143
  });
8144
- }, c.prototype.to = function(u) {
8144
+ }, f.prototype.to = function(u) {
8145
8145
  switch (u) {
8146
8146
  case "container":
8147
8147
  return this.toContainer();
@@ -8154,31 +8154,31 @@ function u2() {
8154
8154
  default:
8155
8155
  return this.error("Invalid target.");
8156
8156
  }
8157
- }, c.prototype.toContainer = function() {
8157
+ }, f.prototype.toContainer = function() {
8158
8158
  return this.thenList([function() {
8159
8159
  return this.prop.src || this.error("Cannot duplicate - no source HTML.");
8160
8160
  }, function() {
8161
8161
  return this.prop.pageSize || this.setPageSize();
8162
8162
  }]).then(function() {
8163
- var u = { position: "relative", display: "inline-block", width: (typeof this.opt.width != "number" || isNaN(this.opt.width) || typeof this.opt.windowWidth != "number" || isNaN(this.opt.windowWidth) ? Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) : this.opt.windowWidth) + "px", left: 0, right: 0, top: 0, margin: "auto", backgroundColor: this.opt.backgroundColor }, f = a(this.prop.src, this.opt.html2canvas.javascriptEnabled);
8164
- f.tagName === "BODY" && (u.height = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight) + "px"), this.prop.overlay = s("div", { className: "html2pdf__overlay", style: { position: "fixed", overflow: "hidden", zIndex: 1e3, left: "-100000px", right: 0, bottom: 0, top: 0 } }), this.prop.container = s("div", { className: "html2pdf__container", style: u }), this.prop.container.appendChild(f), this.prop.container.firstChild.appendChild(s("div", { style: { clear: "both", border: "0 none transparent", margin: 0, padding: 0, height: 0 } })), this.prop.container.style.float = "none", this.prop.overlay.appendChild(this.prop.container), document.body.appendChild(this.prop.overlay), this.prop.container.firstChild.style.position = "relative", this.prop.container.height = Math.max(this.prop.container.firstChild.clientHeight, this.prop.container.firstChild.scrollHeight, this.prop.container.firstChild.offsetHeight) + "px";
8163
+ var u = { position: "relative", display: "inline-block", width: (typeof this.opt.width != "number" || isNaN(this.opt.width) || typeof this.opt.windowWidth != "number" || isNaN(this.opt.windowWidth) ? Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) : this.opt.windowWidth) + "px", left: 0, right: 0, top: 0, margin: "auto", backgroundColor: this.opt.backgroundColor }, c = a(this.prop.src, this.opt.html2canvas.javascriptEnabled);
8164
+ c.tagName === "BODY" && (u.height = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight) + "px"), this.prop.overlay = s("div", { className: "html2pdf__overlay", style: { position: "fixed", overflow: "hidden", zIndex: 1e3, left: "-100000px", right: 0, bottom: 0, top: 0 } }), this.prop.container = s("div", { className: "html2pdf__container", style: u }), this.prop.container.appendChild(c), this.prop.container.firstChild.appendChild(s("div", { style: { clear: "both", border: "0 none transparent", margin: 0, padding: 0, height: 0 } })), this.prop.container.style.float = "none", this.prop.overlay.appendChild(this.prop.container), document.body.appendChild(this.prop.overlay), this.prop.container.firstChild.style.position = "relative", this.prop.container.height = Math.max(this.prop.container.firstChild.clientHeight, this.prop.container.firstChild.scrollHeight, this.prop.container.firstChild.offsetHeight) + "px";
8165
8165
  });
8166
- }, c.prototype.toCanvas = function() {
8166
+ }, f.prototype.toCanvas = function() {
8167
8167
  var u = [function() {
8168
8168
  return document.body.contains(this.prop.container) || this.toContainer();
8169
8169
  }];
8170
- return this.thenList(u).then(t).then(function(f) {
8170
+ return this.thenList(u).then(t).then(function(c) {
8171
8171
  var d = Object.assign({}, this.opt.html2canvas);
8172
- return delete d.onrendered, f(this.prop.container, d);
8173
- }).then(function(f) {
8172
+ return delete d.onrendered, c(this.prop.container, d);
8173
+ }).then(function(c) {
8174
8174
  (this.opt.html2canvas.onrendered || function() {
8175
- })(f), this.prop.canvas = f, document.body.removeChild(this.prop.overlay);
8175
+ })(c), this.prop.canvas = c, document.body.removeChild(this.prop.overlay);
8176
8176
  });
8177
- }, c.prototype.toContext2d = function() {
8177
+ }, f.prototype.toContext2d = function() {
8178
8178
  var u = [function() {
8179
8179
  return document.body.contains(this.prop.container) || this.toContainer();
8180
8180
  }];
8181
- return this.thenList(u).then(t).then(function(f) {
8181
+ return this.thenList(u).then(t).then(function(c) {
8182
8182
  var d = this.opt.jsPDF, g = this.opt.fontFaces, x = 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, N = Object.assign({ async: !0, allowTaint: !0, scale: x, 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);
8183
8183
  if (delete N.onrendered, d.context2d.autoPaging = this.opt.autoPaging === void 0 || this.opt.autoPaging, d.context2d.posX = this.opt.x, d.context2d.posY = this.opt.y, d.context2d.margin = this.opt.margin, d.context2d.fontFaces = g, g) for (var p = 0; p < g.length; ++p) {
8184
8184
  var j = g[p], P = j.src.find(function(O) {
@@ -8186,33 +8186,33 @@ function u2() {
8186
8186
  });
8187
8187
  P && d.addFont(P.url, j.ref.name, j.ref.style);
8188
8188
  }
8189
- return N.windowHeight = N.windowHeight || 0, N.windowHeight = N.windowHeight == 0 ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : N.windowHeight, d.context2d.save(!0), f(this.prop.container, N);
8190
- }).then(function(f) {
8189
+ return N.windowHeight = N.windowHeight || 0, N.windowHeight = N.windowHeight == 0 ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : N.windowHeight, d.context2d.save(!0), c(this.prop.container, N);
8190
+ }).then(function(c) {
8191
8191
  this.opt.jsPDF.context2d.restore(!0), (this.opt.html2canvas.onrendered || function() {
8192
- })(f), this.prop.canvas = f, document.body.removeChild(this.prop.overlay);
8192
+ })(c), this.prop.canvas = c, document.body.removeChild(this.prop.overlay);
8193
8193
  });
8194
- }, c.prototype.toImg = function() {
8194
+ }, f.prototype.toImg = function() {
8195
8195
  return this.thenList([function() {
8196
8196
  return this.prop.canvas || this.toCanvas();
8197
8197
  }]).then(function() {
8198
8198
  var u = this.prop.canvas.toDataURL("image/" + this.opt.image.type, this.opt.image.quality);
8199
8199
  this.prop.img = document.createElement("img"), this.prop.img.src = u;
8200
8200
  });
8201
- }, c.prototype.toPdf = function() {
8201
+ }, f.prototype.toPdf = function() {
8202
8202
  return this.thenList([function() {
8203
8203
  return this.toContext2d();
8204
8204
  }]).then(function() {
8205
8205
  this.prop.pdf = this.prop.pdf || this.opt.jsPDF;
8206
8206
  });
8207
- }, c.prototype.output = function(u, f, d) {
8208
- return (d = d || "pdf").toLowerCase() === "img" || d.toLowerCase() === "image" ? this.outputImg(u, f) : this.outputPdf(u, f);
8209
- }, c.prototype.outputPdf = function(u, f) {
8207
+ }, f.prototype.output = function(u, c, d) {
8208
+ return (d = d || "pdf").toLowerCase() === "img" || d.toLowerCase() === "image" ? this.outputImg(u, c) : this.outputPdf(u, c);
8209
+ }, f.prototype.outputPdf = function(u, c) {
8210
8210
  return this.thenList([function() {
8211
8211
  return this.prop.pdf || this.toPdf();
8212
8212
  }]).then(function() {
8213
- return this.prop.pdf.output(u, f);
8213
+ return this.prop.pdf.output(u, c);
8214
8214
  });
8215
- }, c.prototype.outputImg = function(u) {
8215
+ }, f.prototype.outputImg = function(u) {
8216
8216
  return this.thenList([function() {
8217
8217
  return this.prop.img || this.toImg();
8218
8218
  }]).then(function() {
@@ -8230,22 +8230,22 @@ function u2() {
8230
8230
  throw 'Image output type "' + u + '" is not supported.';
8231
8231
  }
8232
8232
  });
8233
- }, c.prototype.save = function(u) {
8233
+ }, f.prototype.save = function(u) {
8234
8234
  return this.thenList([function() {
8235
8235
  return this.prop.pdf || this.toPdf();
8236
8236
  }]).set(u ? { filename: u } : null).then(function() {
8237
8237
  this.prop.pdf.save(this.opt.filename);
8238
8238
  });
8239
- }, c.prototype.doCallback = function() {
8239
+ }, f.prototype.doCallback = function() {
8240
8240
  return this.thenList([function() {
8241
8241
  return this.prop.pdf || this.toPdf();
8242
8242
  }]).then(function() {
8243
8243
  this.prop.callback(this.prop.pdf);
8244
8244
  });
8245
- }, c.prototype.set = function(u) {
8245
+ }, f.prototype.set = function(u) {
8246
8246
  if (n(u) !== "object") return this;
8247
- var f = Object.keys(u || {}).map(function(d) {
8248
- if (d in c.template.prop) return function() {
8247
+ var c = Object.keys(u || {}).map(function(d) {
8248
+ if (d in f.template.prop) return function() {
8249
8249
  this.prop[d] = u[d];
8250
8250
  };
8251
8251
  switch (d) {
@@ -8264,14 +8264,14 @@ function u2() {
8264
8264
  }
8265
8265
  }, this);
8266
8266
  return this.then(function() {
8267
- return this.thenList(f);
8267
+ return this.thenList(c);
8268
8268
  });
8269
- }, c.prototype.get = function(u, f) {
8269
+ }, f.prototype.get = function(u, c) {
8270
8270
  return this.then(function() {
8271
- var d = u in c.template.prop ? this.prop[u] : this.opt[u];
8272
- return f ? f(d) : d;
8271
+ var d = u in f.template.prop ? this.prop[u] : this.opt[u];
8272
+ return c ? c(d) : d;
8273
8273
  });
8274
- }, c.prototype.setMargin = function(u) {
8274
+ }, f.prototype.setMargin = function(u) {
8275
8275
  return this.then(function() {
8276
8276
  switch (n(u)) {
8277
8277
  case "number":
@@ -8283,57 +8283,57 @@ function u2() {
8283
8283
  }
8284
8284
  this.opt.margin = u;
8285
8285
  }).then(this.setPageSize);
8286
- }, c.prototype.setPageSize = function(u) {
8287
- function f(d, g) {
8286
+ }, f.prototype.setPageSize = function(u) {
8287
+ function c(d, g) {
8288
8288
  return Math.floor(d * g / 72 * 96);
8289
8289
  }
8290
8290
  return this.then(function() {
8291
- (u = u || Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner") || (u.inner = { width: u.width - this.opt.margin[1] - this.opt.margin[3], height: u.height - this.opt.margin[0] - this.opt.margin[2] }, u.inner.px = { width: f(u.inner.width, u.k), height: f(u.inner.height, u.k) }, u.inner.ratio = u.inner.height / u.inner.width), this.prop.pageSize = u;
8291
+ (u = u || Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner") || (u.inner = { width: u.width - this.opt.margin[1] - this.opt.margin[3], height: u.height - this.opt.margin[0] - this.opt.margin[2] }, u.inner.px = { width: c(u.inner.width, u.k), height: c(u.inner.height, u.k) }, u.inner.ratio = u.inner.height / u.inner.width), this.prop.pageSize = u;
8292
8292
  });
8293
- }, c.prototype.setProgress = function(u, f, d, g) {
8294
- return u != null && (this.progress.val = u), f != null && (this.progress.state = f), d != null && (this.progress.n = d), g != null && (this.progress.stack = g), this.progress.ratio = this.progress.val / this.progress.state, this;
8295
- }, c.prototype.updateProgress = function(u, f, d, g) {
8296
- return this.setProgress(u ? this.progress.val + u : null, f || null, d ? this.progress.n + d : null, g ? this.progress.stack.concat(g) : null);
8297
- }, c.prototype.then = function(u, f) {
8293
+ }, f.prototype.setProgress = function(u, c, d, g) {
8294
+ return u != null && (this.progress.val = u), c != null && (this.progress.state = c), d != null && (this.progress.n = d), g != null && (this.progress.stack = g), this.progress.ratio = this.progress.val / this.progress.state, this;
8295
+ }, f.prototype.updateProgress = function(u, c, d, g) {
8296
+ return this.setProgress(u ? this.progress.val + u : null, c || null, d ? this.progress.n + d : null, g ? this.progress.stack.concat(g) : null);
8297
+ }, f.prototype.then = function(u, c) {
8298
8298
  var d = this;
8299
- return this.thenCore(u, f, function(g, x) {
8299
+ return this.thenCore(u, c, function(g, x) {
8300
8300
  return d.updateProgress(null, null, 1, [g]), Promise.prototype.then.call(this, function(N) {
8301
8301
  return d.updateProgress(null, g), N;
8302
8302
  }).then(g, x).then(function(N) {
8303
8303
  return d.updateProgress(1), N;
8304
8304
  });
8305
8305
  });
8306
- }, c.prototype.thenCore = function(u, f, d) {
8306
+ }, f.prototype.thenCore = function(u, c, d) {
8307
8307
  d = d || Promise.prototype.then;
8308
8308
  var g = this;
8309
- u && (u = u.bind(g)), f && (f = f.bind(g));
8310
- var x = Promise.toString().indexOf("[native code]") !== -1 && Promise.name === "Promise" ? g : c.convert(Object.assign({}, g), Promise.prototype), N = d.call(x, u, f);
8311
- return c.convert(N, g.__proto__);
8312
- }, c.prototype.thenExternal = function(u, f) {
8313
- return Promise.prototype.then.call(this, u, f);
8314
- }, c.prototype.thenList = function(u) {
8315
- var f = this;
8309
+ u && (u = u.bind(g)), c && (c = c.bind(g));
8310
+ var x = Promise.toString().indexOf("[native code]") !== -1 && Promise.name === "Promise" ? g : f.convert(Object.assign({}, g), Promise.prototype), N = d.call(x, u, c);
8311
+ return f.convert(N, g.__proto__);
8312
+ }, f.prototype.thenExternal = function(u, c) {
8313
+ return Promise.prototype.then.call(this, u, c);
8314
+ }, f.prototype.thenList = function(u) {
8315
+ var c = this;
8316
8316
  return u.forEach(function(d) {
8317
- f = f.thenCore(d);
8318
- }), f;
8319
- }, c.prototype.catch = function(u) {
8317
+ c = c.thenCore(d);
8318
+ }), c;
8319
+ }, f.prototype.catch = function(u) {
8320
8320
  u && (u = u.bind(this));
8321
- var f = Promise.prototype.catch.call(this, u);
8322
- return c.convert(f, this);
8323
- }, c.prototype.catchExternal = function(u) {
8321
+ var c = Promise.prototype.catch.call(this, u);
8322
+ return f.convert(c, this);
8323
+ }, f.prototype.catchExternal = function(u) {
8324
8324
  return Promise.prototype.catch.call(this, u);
8325
- }, c.prototype.error = function(u) {
8325
+ }, f.prototype.error = function(u) {
8326
8326
  return this.then(function() {
8327
8327
  throw new Error(u);
8328
8328
  });
8329
- }, c.prototype.using = c.prototype.set, c.prototype.saveAs = c.prototype.save, c.prototype.export = c.prototype.output, c.prototype.run = c.prototype.then, Rt.getPageSize = function(u, f, d) {
8329
+ }, f.prototype.using = f.prototype.set, f.prototype.saveAs = f.prototype.save, f.prototype.export = f.prototype.output, f.prototype.run = f.prototype.then, Rt.getPageSize = function(u, c, d) {
8330
8330
  if (xe(u) === "object") {
8331
8331
  var g = u;
8332
- u = g.orientation, f = g.unit || f, d = g.format || d;
8332
+ u = g.orientation, c = g.unit || c, d = g.format || d;
8333
8333
  }
8334
- f = f || "mm", d = d || "a4", u = ("" + (u || "P")).toLowerCase();
8334
+ c = c || "mm", d = d || "a4", u = ("" + (u || "P")).toLowerCase();
8335
8335
  var x, N = ("" + d).toLowerCase(), p = { 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] };
8336
- switch (f) {
8336
+ switch (c) {
8337
8337
  case "pt":
8338
8338
  x = 1;
8339
8339
  break;
@@ -8357,7 +8357,7 @@ function u2() {
8357
8357
  x = 6;
8358
8358
  break;
8359
8359
  default:
8360
- throw "Invalid unit: " + f;
8360
+ throw "Invalid unit: " + c;
8361
8361
  }
8362
8362
  var j, P = 0, O = 0;
8363
8363
  if (p.hasOwnProperty(N)) P = p[N][1] / x, O = p[N][0] / x;
@@ -8371,20 +8371,20 @@ function u2() {
8371
8371
  if (u !== "l" && u !== "landscape") throw "Invalid orientation: " + u;
8372
8372
  u = "l", P > O && (j = O, O = P, P = j);
8373
8373
  }
8374
- return { width: O, height: P, unit: f, k: x, orientation: u };
8375
- }, r.html = function(u, f) {
8376
- (f = f || {}).callback = f.callback || function() {
8377
- }, f.html2canvas = f.html2canvas || {}, f.html2canvas.canvas = f.html2canvas.canvas || this.canvas, f.jsPDF = f.jsPDF || this, f.fontFaces = f.fontFaces ? f.fontFaces.map(Ro) : null;
8378
- var d = new c(f);
8379
- return f.worker ? d : d.from(u).doCallback();
8374
+ return { width: O, height: P, unit: c, k: x, orientation: u };
8375
+ }, r.html = function(u, c) {
8376
+ (c = c || {}).callback = c.callback || function() {
8377
+ }, c.html2canvas = c.html2canvas || {}, c.html2canvas.canvas = c.html2canvas.canvas || this.canvas, c.jsPDF = c.jsPDF || this, c.fontFaces = c.fontFaces ? c.fontFaces.map(Ro) : null;
8378
+ var d = new f(c);
8379
+ return c.worker ? d : d.from(u).doCallback();
8380
8380
  };
8381
8381
  })(Rt.API), Rt.API.addJS = function(r) {
8382
8382
  var t, e, n = (function(s) {
8383
- for (var a = "", c = 0; c < s.length; c++) {
8384
- var u = s[c];
8383
+ for (var a = "", f = 0; f < s.length; f++) {
8384
+ var u = s[f];
8385
8385
  if (u === "(" || u === ")") {
8386
- for (var f = 0, d = c - 1; d >= 0 && s[d] === "\\"; d--) f++;
8387
- a += f % 2 == 0 ? "\\" + u : u;
8386
+ for (var c = 0, d = f - 1; d >= 0 && s[d] === "\\"; d--) c++;
8387
+ a += c % 2 == 0 ? "\\" + u : u;
8388
8388
  } else a += u;
8389
8389
  }
8390
8390
  return a;
@@ -8406,12 +8406,12 @@ function u2() {
8406
8406
  r.events.push(["postPutResources", function() {
8407
8407
  var e = this, n = /^(\d+) 0 obj$/;
8408
8408
  if (this.outline.root.children.length > 0) for (var s = e.outline.render().split(/\r\n/), a = 0; a < s.length; a++) {
8409
- var c = s[a], u = n.exec(c);
8409
+ var f = s[a], u = n.exec(f);
8410
8410
  if (u != null) {
8411
- var f = u[1];
8412
- e.internal.newObjectDeferredBegin(f, !1);
8411
+ var c = u[1];
8412
+ e.internal.newObjectDeferredBegin(c, !1);
8413
8413
  }
8414
- e.internal.write(c);
8414
+ e.internal.write(f);
8415
8415
  }
8416
8416
  if (this.outline.createNamedDestinations) {
8417
8417
  var d = this.internal.pages.length, g = [];
@@ -8431,8 +8431,8 @@ function u2() {
8431
8431
  }]), r.events.push(["initialized", function() {
8432
8432
  var e = this;
8433
8433
  e.outline = { createNamedDestinations: !1, root: { children: [] } }, e.outline.add = function(n, s, a) {
8434
- var c = { title: s, options: a, children: [] };
8435
- return n == null && (n = this.root), n.children.push(c), c;
8434
+ var f = { title: s, options: a, children: [] };
8435
+ return n == null && (n = this.root), n.children.push(f), f;
8436
8436
  }, e.outline.render = function() {
8437
8437
  return this.ctx = {}, this.ctx.val = "", this.ctx.pdf = e, this.genIds_r(this.root), this.renderRoot(this.root), this.renderItems(this.root), this.ctx.val;
8438
8438
  }, e.outline.genIds_r = function(n) {
@@ -8442,12 +8442,12 @@ function u2() {
8442
8442
  this.objStart(n), this.line("/Type /Outlines"), n.children.length > 0 && (this.line("/First " + this.makeRef(n.children[0])), this.line("/Last " + this.makeRef(n.children[n.children.length - 1]))), this.line("/Count " + this.count_r({ count: 0 }, n)), this.objEnd();
8443
8443
  }, e.outline.renderItems = function(n) {
8444
8444
  for (var s = this.ctx.pdf.internal.getVerticalCoordinateString, a = 0; a < n.children.length; a++) {
8445
- var c = n.children[a];
8446
- this.objStart(c), this.line("/Title " + this.makeString(c.title)), this.line("/Parent " + this.makeRef(n)), a > 0 && this.line("/Prev " + this.makeRef(n.children[a - 1])), a < n.children.length - 1 && this.line("/Next " + this.makeRef(n.children[a + 1])), c.children.length > 0 && (this.line("/First " + this.makeRef(c.children[0])), this.line("/Last " + this.makeRef(c.children[c.children.length - 1])));
8447
- var u = this.count = this.count_r({ count: 0 }, c);
8448
- if (u > 0 && this.line("/Count " + u), c.options && c.options.pageNumber) {
8449
- var f = e.internal.getPageInfo(c.options.pageNumber);
8450
- this.line("/Dest [" + f.objId + " 0 R /XYZ 0 " + s(0) + " 0]");
8445
+ var f = n.children[a];
8446
+ this.objStart(f), this.line("/Title " + this.makeString(f.title)), this.line("/Parent " + this.makeRef(n)), a > 0 && this.line("/Prev " + this.makeRef(n.children[a - 1])), a < n.children.length - 1 && this.line("/Next " + this.makeRef(n.children[a + 1])), f.children.length > 0 && (this.line("/First " + this.makeRef(f.children[0])), this.line("/Last " + this.makeRef(f.children[f.children.length - 1])));
8447
+ var u = this.count = this.count_r({ count: 0 }, f);
8448
+ if (u > 0 && this.line("/Count " + u), f.options && f.options.pageNumber) {
8449
+ var c = e.internal.getPageInfo(f.options.pageNumber);
8450
+ this.line("/Dest [" + c.objId + " 0 R /XYZ 0 " + s(0) + " 0]");
8451
8451
  }
8452
8452
  this.objEnd();
8453
8453
  }
@@ -8481,10 +8481,10 @@ endobj\r
8481
8481
  */
8482
8482
  (function(r) {
8483
8483
  var t = [192, 193, 194, 195, 196, 197, 198, 199];
8484
- r.processJPEG = function(e, n, s, a, c, u) {
8485
- var f, d = this.decode.DCT_DECODE, g = null;
8484
+ r.processJPEG = function(e, n, s, a, f, u) {
8485
+ var c, d = this.decode.DCT_DECODE, g = null;
8486
8486
  if (typeof e == "string" || this.__addimage__.isArrayBuffer(e) || this.__addimage__.isArrayBufferView(e)) {
8487
- switch (e = c || e, e = this.__addimage__.isArrayBuffer(e) ? new Uint8Array(e) : e, f = (function(x) {
8487
+ switch (e = f || e, e = this.__addimage__.isArrayBuffer(e) ? new Uint8Array(e) : e, c = (function(x) {
8488
8488
  for (var N, p = 256 * x.charCodeAt(4) + x.charCodeAt(5), j = x.length, P = { width: 0, height: 0, numcomponents: 1 }, O = 4; O < j; O += 2) {
8489
8489
  if (O += p, t.indexOf(x.charCodeAt(O + 1)) !== -1) {
8490
8490
  N = 256 * x.charCodeAt(O + 5) + x.charCodeAt(O + 6), P = { width: 256 * x.charCodeAt(O + 7) + x.charCodeAt(O + 8), height: N, numcomponents: x.charCodeAt(O + 9) };
@@ -8493,7 +8493,7 @@ endobj\r
8493
8493
  p = 256 * x.charCodeAt(O + 2) + x.charCodeAt(O + 3);
8494
8494
  }
8495
8495
  return P;
8496
- })(e = this.__addimage__.isArrayBufferView(e) ? this.__addimage__.arrayBufferToBinaryString(e) : e), f.numcomponents) {
8496
+ })(e = this.__addimage__.isArrayBufferView(e) ? this.__addimage__.arrayBufferToBinaryString(e) : e), c.numcomponents) {
8497
8497
  case 1:
8498
8498
  u = this.color_spaces.DEVICE_GRAY;
8499
8499
  break;
@@ -8503,14 +8503,14 @@ endobj\r
8503
8503
  case 3:
8504
8504
  u = this.color_spaces.DEVICE_RGB;
8505
8505
  }
8506
- g = { data: e, width: f.width, height: f.height, colorSpace: u, bitsPerComponent: 8, filter: d, index: n, alias: s };
8506
+ g = { data: e, width: c.width, height: c.height, colorSpace: u, bitsPerComponent: 8, filter: d, index: n, alias: s };
8507
8507
  }
8508
8508
  return g;
8509
8509
  };
8510
8510
  })(Rt.API), Rt.API.processPNG = function(r, t, e, n) {
8511
8511
  if (this.__addimage__.isArrayBuffer(r) && (r = new Uint8Array(r)), this.__addimage__.isArrayBufferView(r)) {
8512
- var s, a = D1(r, { checkCrc: !0 }), c = a.width, u = a.height, f = a.channels, d = a.palette, g = a.depth;
8513
- s = d && f === 1 ? (function(K) {
8512
+ var s, a = q1(r, { checkCrc: !0 }), f = a.width, u = a.height, c = a.channels, d = a.palette, g = a.depth;
8513
+ s = d && c === 1 ? (function(K) {
8514
8514
  for (var R = K.width, tt = K.height, _ = K.data, F = K.palette, z = K.depth, U = !1, nt = [], ot = [], ft = void 0, rt = !1, ht = 0, Nt = 0; Nt < F.length; Nt++) {
8515
8515
  var wt = Xu(F[Nt], 4), A = wt[0], B = wt[1], T = wt[2], H = wt[3];
8516
8516
  nt.push(A, B, T), H != null && (H === 0 ? (ht++, ot.length < 1 && ot.push(Nt)) : H < 255 && (rt = !0));
@@ -8525,7 +8525,7 @@ endobj\r
8525
8525
  }
8526
8526
  } else ht === 0 && (ot = void 0);
8527
8527
  return { colorSpace: "Indexed", colorsPerPixel: 1, sMaskBitsPerComponent: U ? 8 : void 0, colorBytes: _, alphaBytes: ft, needSMask: U, palette: nt, mask: ot };
8528
- })(a) : f === 2 || f === 4 ? (function(K) {
8528
+ })(a) : c === 2 || c === 4 ? (function(K) {
8529
8529
  for (var R = K.data, tt = K.width, _ = K.height, F = K.channels, z = K.depth, U = F === 2 ? "DeviceGray" : "DeviceRGB", nt = F - 1, ot = tt * _, ft = nt, rt = ot * ft, ht = 1 * ot, Nt = Math.ceil(rt * z / 8), wt = Math.ceil(ht * z / 8), A = new Uint8Array(Nt), B = new Uint8Array(wt), T = new DataView(R.buffer), H = new DataView(A.buffer), X = new DataView(B.buffer), Z = !1, at = 0; at < ot; at++) {
8530
8530
  for (var st = at * F, gt = 0; gt < ft; gt++) Jl(H, Do(T, st + gt, z), at * ft + gt, z);
8531
8531
  var At = Do(T, st + ft, z);
@@ -8556,13 +8556,13 @@ endobj\r
8556
8556
  R = 12;
8557
8557
  }
8558
8558
  return R;
8559
- })(n), x = this.decode.FLATE_DECODE, N = "/Predictor ".concat(dt, " /Colors ").concat(O, " /BitsPerComponent ").concat(g, " /Columns ").concat(c), r = Wl(G, Math.ceil(c * O * g / 8), O, g, n), q && (p = Wl(Y, Math.ceil(c * k / 8), 1, k, n))) : (x = void 0, N = void 0, r = G, q && (p = Y)), (this.__addimage__.isArrayBuffer(r) || this.__addimage__.isArrayBufferView(r)) && (r = this.__addimage__.arrayBufferToBinaryString(r)), (p && this.__addimage__.isArrayBuffer(p) || this.__addimage__.isArrayBufferView(p)) && (p = this.__addimage__.arrayBufferToBinaryString(p)), { alias: e, data: r, index: t, filter: x, decodeParameters: N, transparency: mt, palette: it, sMask: p, predictor: dt, width: c, height: u, bitsPerComponent: g, sMaskBitsPerComponent: k, colorSpace: P };
8559
+ })(n), x = this.decode.FLATE_DECODE, N = "/Predictor ".concat(dt, " /Colors ").concat(O, " /BitsPerComponent ").concat(g, " /Columns ").concat(f), r = Wl(G, Math.ceil(f * O * g / 8), O, g, n), q && (p = Wl(Y, Math.ceil(f * k / 8), 1, k, n))) : (x = void 0, N = void 0, r = G, q && (p = Y)), (this.__addimage__.isArrayBuffer(r) || this.__addimage__.isArrayBufferView(r)) && (r = this.__addimage__.arrayBufferToBinaryString(r)), (p && this.__addimage__.isArrayBuffer(p) || this.__addimage__.isArrayBufferView(p)) && (p = this.__addimage__.arrayBufferToBinaryString(p)), { alias: e, data: r, index: t, filter: x, decodeParameters: N, transparency: mt, palette: it, sMask: p, predictor: dt, width: f, height: u, bitsPerComponent: g, sMaskBitsPerComponent: k, colorSpace: P };
8560
8560
  }
8561
8561
  }, (function(r) {
8562
8562
  r.processGIF89A = function(t, e, n, s) {
8563
- var a = new s2(t), c = a.width, u = a.height, f = [];
8564
- a.decodeAndBlitFrameRGBA(0, f);
8565
- var d = { data: f, width: c, height: u }, g = new qo(100).encode(d, 100);
8563
+ var a = new o2(t), f = a.width, u = a.height, c = [];
8564
+ a.decodeAndBlitFrameRGBA(0, c);
8565
+ var d = { data: c, width: f, height: u }, g = new qo(100).encode(d, 100);
8566
8566
  return r.processJPEG.call(this, g, e, n, s);
8567
8567
  }, r.processGIF87A = r.processGIF89A;
8568
8568
  })(Rt.API), Kr.prototype.parseHeader = function() {
@@ -8588,18 +8588,18 @@ endobj\r
8588
8588
  }, Kr.prototype.bit1 = function() {
8589
8589
  var r, t = Math.ceil(this.width / 8), e = t % 4;
8590
8590
  for (r = this.height - 1; r >= 0; r--) {
8591
- for (var n = this.bottom_up ? r : this.height - 1 - r, s = 0; s < t; s++) for (var a = this.datav.getUint8(this.pos++, !0), c = n * this.width * 4 + 8 * s * 4, u = 0; u < 8 && 8 * s + u < this.width; u++) {
8592
- var f = this.palette[a >> 7 - u & 1];
8593
- this.data[c + 4 * u] = f.blue, this.data[c + 4 * u + 1] = f.green, this.data[c + 4 * u + 2] = f.red, this.data[c + 4 * u + 3] = 255;
8591
+ for (var n = this.bottom_up ? r : this.height - 1 - r, s = 0; s < t; s++) for (var a = this.datav.getUint8(this.pos++, !0), f = n * this.width * 4 + 8 * s * 4, u = 0; u < 8 && 8 * s + u < this.width; u++) {
8592
+ var c = this.palette[a >> 7 - u & 1];
8593
+ this.data[f + 4 * u] = c.blue, this.data[f + 4 * u + 1] = c.green, this.data[f + 4 * u + 2] = c.red, this.data[f + 4 * u + 3] = 255;
8594
8594
  }
8595
8595
  e !== 0 && (this.pos += 4 - e);
8596
8596
  }
8597
8597
  }, Kr.prototype.bit4 = function() {
8598
8598
  for (var r = Math.ceil(this.width / 2), t = r % 4, e = this.height - 1; e >= 0; e--) {
8599
8599
  for (var n = this.bottom_up ? e : this.height - 1 - e, s = 0; s < r; s++) {
8600
- var a = this.datav.getUint8(this.pos++, !0), c = n * this.width * 4 + 2 * s * 4, u = a >> 4, f = 15 & a, d = this.palette[u];
8601
- if (this.data[c] = d.blue, this.data[c + 1] = d.green, this.data[c + 2] = d.red, this.data[c + 3] = 255, 2 * s + 1 >= this.width) break;
8602
- d = this.palette[f], this.data[c + 4] = d.blue, this.data[c + 4 + 1] = d.green, this.data[c + 4 + 2] = d.red, this.data[c + 4 + 3] = 255;
8600
+ var a = this.datav.getUint8(this.pos++, !0), f = n * this.width * 4 + 2 * s * 4, u = a >> 4, c = 15 & a, d = this.palette[u];
8601
+ if (this.data[f] = d.blue, this.data[f + 1] = d.green, this.data[f + 2] = d.red, this.data[f + 3] = 255, 2 * s + 1 >= this.width) break;
8602
+ d = this.palette[c], this.data[f + 4] = d.blue, this.data[f + 4 + 1] = d.green, this.data[f + 4 + 2] = d.red, this.data[f + 4 + 3] = 255;
8603
8603
  }
8604
8604
  t !== 0 && (this.pos += 4 - t);
8605
8605
  }
@@ -8608,8 +8608,8 @@ endobj\r
8608
8608
  for (var e = this.bottom_up ? t : this.height - 1 - t, n = 0; n < this.width; n++) {
8609
8609
  var s = this.datav.getUint8(this.pos++, !0), a = e * this.width * 4 + 4 * n;
8610
8610
  if (s < this.palette.length) {
8611
- var c = this.palette[s];
8612
- this.data[a] = c.red, this.data[a + 1] = c.green, this.data[a + 2] = c.blue, this.data[a + 3] = 255;
8611
+ var f = this.palette[s];
8612
+ this.data[a] = f.red, this.data[a + 1] = f.green, this.data[a + 2] = f.blue, this.data[a + 3] = 255;
8613
8613
  } else this.data[a] = 255, this.data[a + 1] = 255, this.data[a + 2] = 255, this.data[a + 3] = 255;
8614
8614
  }
8615
8615
  r !== 0 && (this.pos += 4 - r);
@@ -8619,33 +8619,33 @@ endobj\r
8619
8619
  for (var n = this.bottom_up ? e : this.height - 1 - e, s = 0; s < this.width; s++) {
8620
8620
  var a = this.datav.getUint16(this.pos, !0);
8621
8621
  this.pos += 2;
8622
- var c = (a & t) / t * 255 | 0, u = (a >> 5 & t) / t * 255 | 0, f = (a >> 10 & t) / t * 255 | 0, d = a >> 15 ? 255 : 0, g = n * this.width * 4 + 4 * s;
8623
- this.data[g] = f, this.data[g + 1] = u, this.data[g + 2] = c, this.data[g + 3] = d;
8622
+ var f = (a & t) / t * 255 | 0, u = (a >> 5 & t) / t * 255 | 0, c = (a >> 10 & t) / t * 255 | 0, d = a >> 15 ? 255 : 0, g = n * this.width * 4 + 4 * s;
8623
+ this.data[g] = c, this.data[g + 1] = u, this.data[g + 2] = f, this.data[g + 3] = d;
8624
8624
  }
8625
8625
  this.pos += r;
8626
8626
  }
8627
8627
  }, Kr.prototype.bit16 = function() {
8628
8628
  for (var r = this.width % 3, t = parseInt("11111", 2), e = parseInt("111111", 2), n = this.height - 1; n >= 0; n--) {
8629
8629
  for (var s = this.bottom_up ? n : this.height - 1 - n, a = 0; a < this.width; a++) {
8630
- var c = this.datav.getUint16(this.pos, !0);
8630
+ var f = this.datav.getUint16(this.pos, !0);
8631
8631
  this.pos += 2;
8632
- var u = (c & t) / t * 255 | 0, f = (c >> 5 & e) / e * 255 | 0, d = (c >> 11) / t * 255 | 0, g = s * this.width * 4 + 4 * a;
8633
- this.data[g] = d, this.data[g + 1] = f, this.data[g + 2] = u, this.data[g + 3] = 255;
8632
+ var u = (f & t) / t * 255 | 0, c = (f >> 5 & e) / e * 255 | 0, d = (f >> 11) / t * 255 | 0, g = s * this.width * 4 + 4 * a;
8633
+ this.data[g] = d, this.data[g + 1] = c, this.data[g + 2] = u, this.data[g + 3] = 255;
8634
8634
  }
8635
8635
  this.pos += r;
8636
8636
  }
8637
8637
  }, Kr.prototype.bit24 = function() {
8638
8638
  for (var r = this.height - 1; r >= 0; r--) {
8639
8639
  for (var t = this.bottom_up ? r : this.height - 1 - r, e = 0; e < this.width; e++) {
8640
- var n = this.datav.getUint8(this.pos++, !0), s = this.datav.getUint8(this.pos++, !0), a = this.datav.getUint8(this.pos++, !0), c = t * this.width * 4 + 4 * e;
8641
- this.data[c] = a, this.data[c + 1] = s, this.data[c + 2] = n, this.data[c + 3] = 255;
8640
+ var n = this.datav.getUint8(this.pos++, !0), s = this.datav.getUint8(this.pos++, !0), a = this.datav.getUint8(this.pos++, !0), f = t * this.width * 4 + 4 * e;
8641
+ this.data[f] = a, this.data[f + 1] = s, this.data[f + 2] = n, this.data[f + 3] = 255;
8642
8642
  }
8643
8643
  this.pos += this.width % 4;
8644
8644
  }
8645
8645
  }, Kr.prototype.bit32 = function() {
8646
8646
  for (var r = this.height - 1; r >= 0; r--) for (var t = this.bottom_up ? r : this.height - 1 - r, e = 0; e < this.width; e++) {
8647
- var n = this.datav.getUint8(this.pos++, !0), s = this.datav.getUint8(this.pos++, !0), a = this.datav.getUint8(this.pos++, !0), c = this.datav.getUint8(this.pos++, !0), u = t * this.width * 4 + 4 * e;
8648
- this.data[u] = a, this.data[u + 1] = s, this.data[u + 2] = n, this.data[u + 3] = c;
8647
+ var n = this.datav.getUint8(this.pos++, !0), s = this.datav.getUint8(this.pos++, !0), a = this.datav.getUint8(this.pos++, !0), f = this.datav.getUint8(this.pos++, !0), u = t * this.width * 4 + 4 * e;
8648
+ this.data[u] = a, this.data[u + 1] = s, this.data[u + 2] = n, this.data[u + 3] = f;
8649
8649
  }
8650
8650
  }, Kr.prototype.getData = function() {
8651
8651
  return this.data;
@@ -8658,7 +8658,7 @@ endobj\r
8658
8658
  */
8659
8659
  (function(r) {
8660
8660
  r.processBMP = function(t, e, n, s) {
8661
- var a = new Kr(t, !1), c = a.width, u = a.height, f = { data: a.getData(), width: c, height: u }, d = new qo(100).encode(f, 100);
8661
+ var a = new Kr(t, !1), f = a.width, u = a.height, c = { data: a.getData(), width: f, height: u }, d = new qo(100).encode(c, 100);
8662
8662
  return r.processJPEG.call(this, d, e, n, s);
8663
8663
  };
8664
8664
  })(Rt.API), $l.prototype.getData = function() {
@@ -8672,50 +8672,50 @@ endobj\r
8672
8672
  */
8673
8673
  (function(r) {
8674
8674
  r.processWEBP = function(t, e, n, s) {
8675
- var a = new $l(t), c = a.width, u = a.height, f = { data: a.getData(), width: c, height: u }, d = new qo(100).encode(f, 100);
8675
+ var a = new $l(t), f = a.width, u = a.height, c = { data: a.getData(), width: f, height: u }, d = new qo(100).encode(c, 100);
8676
8676
  return r.processJPEG.call(this, d, e, n, s);
8677
8677
  };
8678
8678
  })(Rt.API), Rt.API.processRGBA = function(r, t, e) {
8679
- for (var n = r.data, s = n.length, a = new Uint8Array(s / 4 * 3), c = new Uint8Array(s / 4), u = 0, f = 0, d = 0; d < s; d += 4) {
8679
+ for (var n = r.data, s = n.length, a = new Uint8Array(s / 4 * 3), f = new Uint8Array(s / 4), u = 0, c = 0, d = 0; d < s; d += 4) {
8680
8680
  var g = n[d], x = n[d + 1], N = n[d + 2], p = n[d + 3];
8681
- a[u++] = g, a[u++] = x, a[u++] = N, c[f++] = p;
8681
+ a[u++] = g, a[u++] = x, a[u++] = N, f[c++] = p;
8682
8682
  }
8683
8683
  var j = this.__addimage__.arrayBufferToBinaryString(a);
8684
- return { alpha: this.__addimage__.arrayBufferToBinaryString(c), data: j, index: t, alias: e, colorSpace: "DeviceRGB", bitsPerComponent: 8, width: r.width, height: r.height };
8684
+ return { alpha: this.__addimage__.arrayBufferToBinaryString(f), data: j, index: t, alias: e, colorSpace: "DeviceRGB", bitsPerComponent: 8, width: r.width, height: r.height };
8685
8685
  }, Rt.API.setLanguage = function(r) {
8686
8686
  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" }[r] !== void 0 && (this.internal.languageSettings.languageCode = r, this.internal.languageSettings.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
8687
8687
  this.internal.write("/Lang (" + this.internal.languageSettings.languageCode + ")");
8688
8688
  }), this.internal.languageSettings.isSubscribed = !0)), this;
8689
8689
  }, Ki = Rt.API, Ns = Ki.getCharWidthsArray = function(r, t) {
8690
- var e, n, s = (t = t || {}).font || this.internal.getFont(), a = t.fontSize || this.internal.getFontSize(), c = t.charSpace || this.internal.getCharSpace(), u = t.widths ? t.widths : s.metadata.Unicode.widths, f = u.fof ? u.fof : 1, d = t.kerning ? t.kerning : s.metadata.Unicode.kerning, g = d.fof ? d.fof : 1, x = t.doKerning !== !1, N = 0, p = r.length, j = 0, P = u[0] || f, O = [];
8691
- for (e = 0; e < p; e++) n = r.charCodeAt(e), typeof s.metadata.widthOfString == "function" ? O.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(n)) + c * (1e3 / a) || 0) / 1e3) : (N = x && xe(d[n]) === "object" && !isNaN(parseInt(d[n][j], 10)) ? d[n][j] / g : 0, O.push((u[n] || P) / f + N)), j = n;
8690
+ var e, n, s = (t = t || {}).font || this.internal.getFont(), a = t.fontSize || this.internal.getFontSize(), f = t.charSpace || this.internal.getCharSpace(), u = t.widths ? t.widths : s.metadata.Unicode.widths, c = u.fof ? u.fof : 1, d = t.kerning ? t.kerning : s.metadata.Unicode.kerning, g = d.fof ? d.fof : 1, x = t.doKerning !== !1, N = 0, p = r.length, j = 0, P = u[0] || c, O = [];
8691
+ for (e = 0; e < p; e++) n = r.charCodeAt(e), typeof s.metadata.widthOfString == "function" ? O.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(n)) + f * (1e3 / a) || 0) / 1e3) : (N = x && xe(d[n]) === "object" && !isNaN(parseInt(d[n][j], 10)) ? d[n][j] / g : 0, O.push((u[n] || P) / c + N)), j = n;
8692
8692
  return O;
8693
8693
  }, Ul = Ki.getStringUnitWidth = function(r, t) {
8694
8694
  var e = (t = t || {}).fontSize || this.internal.getFontSize(), n = t.font || this.internal.getFont(), s = t.charSpace || this.internal.getCharSpace();
8695
- return Ki.processArabic && (r = Ki.processArabic(r)), typeof n.metadata.widthOfString == "function" ? n.metadata.widthOfString(r, e, s) / e : Ns.apply(this, arguments).reduce(function(a, c) {
8696
- return a + c;
8695
+ return Ki.processArabic && (r = Ki.processArabic(r)), typeof n.metadata.widthOfString == "function" ? n.metadata.widthOfString(r, e, s) / e : Ns.apply(this, arguments).reduce(function(a, f) {
8696
+ return a + f;
8697
8697
  }, 0);
8698
8698
  }, zl = function(r, t, e, n) {
8699
- for (var s = [], a = 0, c = r.length, u = 0; a !== c && u + t[a] < e; ) u += t[a], a++;
8699
+ for (var s = [], a = 0, f = r.length, u = 0; a !== f && u + t[a] < e; ) u += t[a], a++;
8700
8700
  s.push(r.slice(0, a));
8701
- var f = a;
8702
- for (u = 0; a !== c; ) u + t[a] > n && (s.push(r.slice(f, a)), u = 0, f = a), u += t[a], a++;
8703
- return f !== a && s.push(r.slice(f, a)), s;
8701
+ var c = a;
8702
+ for (u = 0; a !== f; ) u + t[a] > n && (s.push(r.slice(c, a)), u = 0, c = a), u += t[a], a++;
8703
+ return c !== a && s.push(r.slice(c, a)), s;
8704
8704
  }, Hl = function(r, t, e) {
8705
8705
  e || (e = {});
8706
- var n, s, a, c, u, f, d, g = [], x = [g], N = e.textIndent || 0, p = 0, j = 0, P = r.split(" "), O = Ns.apply(this, [" ", e])[0];
8707
- if (f = e.lineIndent === -1 ? P[0].length + 2 : e.lineIndent || 0) {
8708
- var k = Array(f).join(" "), G = [];
8706
+ var n, s, a, f, u, c, d, g = [], x = [g], N = e.textIndent || 0, p = 0, j = 0, P = r.split(" "), O = Ns.apply(this, [" ", e])[0];
8707
+ if (c = e.lineIndent === -1 ? P[0].length + 2 : e.lineIndent || 0) {
8708
+ var k = Array(c).join(" "), G = [];
8709
8709
  P.map(function(q) {
8710
8710
  (q = q.split(/\s*\n/)).length > 1 ? G = G.concat(q.map(function(it, mt) {
8711
8711
  return (mt && it.length ? `
8712
8712
  ` : "") + it;
8713
8713
  })) : G.push(q[0]);
8714
- }), P = G, f = Ul.apply(this, [k, e]);
8714
+ }), P = G, c = Ul.apply(this, [k, e]);
8715
8715
  }
8716
- for (a = 0, c = P.length; a < c; a++) {
8716
+ for (a = 0, f = P.length; a < f; a++) {
8717
8717
  var Y = 0;
8718
- if (n = P[a], f && n[0] == `
8718
+ if (n = P[a], c && n[0] == `
8719
8719
  ` && (n = n.substr(1), Y = 1), N + p + (j = (s = Ns.apply(this, [n, e])).reduce(function(q, it) {
8720
8720
  return q + it;
8721
8721
  }, 0)) > t || Y) {
@@ -8725,10 +8725,10 @@ endobj\r
8725
8725
  return q + it;
8726
8726
  }, 0);
8727
8727
  } else g = [n];
8728
- x.push(g), N = j + f, p = O;
8728
+ x.push(g), N = j + c, p = O;
8729
8729
  } else g.push(n), N += p + j, p = O;
8730
8730
  }
8731
- return d = f ? function(q, it) {
8731
+ return d = c ? function(q, it) {
8732
8732
  return (it ? k : "") + q.join(" ");
8733
8733
  } : function(q) {
8734
8734
  return q.join(" ");
@@ -8740,20 +8740,20 @@ endobj\r
8740
8740
  return x.metadata[N] ? { widths: x.metadata[N].widths || { 0: 1 }, kerning: x.metadata[N].kerning || {} } : { font: x.metadata, fontSize: this.internal.getFontSize(), charSpace: this.internal.getCharSpace() };
8741
8741
  }).call(this, e);
8742
8742
  n = Array.isArray(r) ? r : String(r).split(/\r?\n/);
8743
- var c = 1 * this.internal.scaleFactor * t / s;
8743
+ var f = 1 * this.internal.scaleFactor * t / s;
8744
8744
  a.textIndent = e.textIndent ? 1 * e.textIndent * this.internal.scaleFactor / s : 0, a.lineIndent = e.lineIndent;
8745
- var u, f, d = [];
8746
- for (u = 0, f = n.length; u < f; u++) d = d.concat(Hl.apply(this, [n[u], c, a]));
8745
+ var u, c, d = [];
8746
+ for (u = 0, c = n.length; u < c; u++) d = d.concat(Hl.apply(this, [n[u], f, a]));
8747
8747
  return d;
8748
8748
  }, (function(r) {
8749
8749
  r.__fontmetrics__ = r.__fontmetrics__ || {};
8750
8750
  for (var t = "0123456789abcdef", e = "klmnopqrstuvwxyz", n = {}, s = {}, a = 0; a < 16; a++) n[e[a]] = t[a], s[t[a]] = e[a];
8751
- var c = function(N) {
8751
+ var f = function(N) {
8752
8752
  return "0x" + parseInt(N, 10).toString(16);
8753
8753
  }, u = r.__fontmetrics__.compress = function(N) {
8754
8754
  var p, j, P, O, k = ["{"];
8755
8755
  for (var G in N) {
8756
- if (p = N[G], isNaN(parseInt(G, 10)) ? j = "'" + G + "'" : (G = parseInt(G, 10), j = (j = c(G).slice(2)).slice(0, -1) + s[j.slice(-1)]), typeof p == "number") p < 0 ? (P = c(p).slice(3), O = "-") : (P = c(p).slice(2), O = ""), P = O + P.slice(0, -1) + s[P.slice(-1)];
8756
+ if (p = N[G], isNaN(parseInt(G, 10)) ? j = "'" + G + "'" : (G = parseInt(G, 10), j = (j = f(G).slice(2)).slice(0, -1) + s[j.slice(-1)]), typeof p == "number") p < 0 ? (P = f(p).slice(3), O = "-") : (P = f(p).slice(2), O = ""), P = O + P.slice(0, -1) + s[P.slice(-1)];
8757
8757
  else {
8758
8758
  if (xe(p) !== "object") throw new Error("Don't know what to do with value type " + xe(p) + ".");
8759
8759
  P = u(p);
@@ -8761,11 +8761,11 @@ endobj\r
8761
8761
  k.push(j + P);
8762
8762
  }
8763
8763
  return k.push("}"), k.join("");
8764
- }, f = r.__fontmetrics__.uncompress = function(N) {
8764
+ }, c = r.__fontmetrics__.uncompress = function(N) {
8765
8765
  if (typeof N != "string") throw new Error("Invalid argument passed to uncompress.");
8766
8766
  for (var p, j, P, O, k = {}, G = 1, Y = k, q = [], it = "", mt = "", dt = N.length - 1, K = 1; K < dt; K += 1) (O = N[K]) == "'" ? p ? (P = p.join(""), p = void 0) : p = [] : p ? p.push(O) : O == "{" ? (q.push([Y, P]), Y = {}, P = void 0) : O == "}" ? ((j = q.pop())[0][j[1]] = Y, P = void 0, Y = j[0]) : O == "-" ? G = -1 : P === void 0 ? n.hasOwnProperty(O) ? (it += n[O], P = parseInt(it, 16) * G, G = 1, it = "") : it += O : n.hasOwnProperty(O) ? (mt += n[O], Y[P] = parseInt(mt, 16) * G, G = 1, P = void 0, mt = "") : mt += O;
8767
8767
  return k;
8768
- }, d = { codePages: ["WinAnsiEncoding"], WinAnsiEncoding: f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}") }, g = { Unicode: { Courier: d, "Courier-Bold": d, "Courier-BoldOblique": d, "Courier-Oblique": d, Helvetica: d, "Helvetica-Bold": d, "Helvetica-BoldOblique": d, "Helvetica-Oblique": d, "Times-Roman": d, "Times-Bold": d, "Times-BoldItalic": d, "Times-Italic": d } }, x = { Unicode: { "Courier-Oblique": f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-BoldItalic": f("{'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": f("{'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: f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-BoldOblique": f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Bold": f("{'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: f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"), Helvetica: f("{'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": f("{'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: f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-Bold": f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Italic": f("{'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": f("{'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": f("{'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}}}") } };
8768
+ }, d = { codePages: ["WinAnsiEncoding"], WinAnsiEncoding: c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}") }, g = { Unicode: { Courier: d, "Courier-Bold": d, "Courier-BoldOblique": d, "Courier-Oblique": d, Helvetica: d, "Helvetica-Bold": d, "Helvetica-BoldOblique": d, "Helvetica-Oblique": d, "Times-Roman": d, "Times-Bold": d, "Times-BoldItalic": d, "Times-Italic": d } }, x = { Unicode: { "Courier-Oblique": c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-BoldItalic": c("{'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": c("{'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: c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-BoldOblique": c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Bold": c("{'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: c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"), Helvetica: c("{'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": c("{'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: c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-Bold": c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Italic": c("{'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": c("{'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": c("{'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}}}") } };
8769
8769
  r.events.push(["addFont", function(N) {
8770
8770
  var p = N.font, j = x.Unicode[p.postScriptName];
8771
8771
  j && (p.metadata.Unicode = {}, p.metadata.Unicode.widths = j.widths, p.metadata.Unicode.kerning = j.kerning);
@@ -8787,20 +8787,20 @@ endobj\r
8787
8787
  if (!s.isStandardFont) {
8788
8788
  if (a === void 0) throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('" + s.postScriptName + "').");
8789
8789
  if (typeof (n = a.existsFileInVFS(s.postScriptName) === !1 ? a.loadFile(s.postScriptName) : a.getFileFromVFS(s.postScriptName)) != "string") throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('" + s.postScriptName + "').");
8790
- (function(c, u) {
8791
- u = /^\x00\x01\x00\x00/.test(u) ? t(u) : t(_s(u)), c.metadata = r.API.TTFFont.open(u), c.metadata.Unicode = c.metadata.Unicode || { encoding: {}, kerning: {}, widths: [] }, c.metadata.glyIdsUsed = [0];
8790
+ (function(f, u) {
8791
+ u = /^\x00\x01\x00\x00/.test(u) ? t(u) : t(_s(u)), f.metadata = r.API.TTFFont.open(u), f.metadata.Unicode = f.metadata.Unicode || { encoding: {}, kerning: {}, widths: [] }, f.metadata.glyIdsUsed = [0];
8792
8792
  })(s, n);
8793
8793
  }
8794
8794
  }]);
8795
- })(Rt), Rt.API.addSvgAsImage = function(r, t, e, n, s, a, c, u) {
8795
+ })(Rt), Rt.API.addSvgAsImage = function(r, t, e, n, s, a, f, u) {
8796
8796
  if (isNaN(t) || isNaN(e)) throw _e.error("jsPDF.addSvgAsImage: Invalid coordinates", arguments), new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");
8797
8797
  if (isNaN(n) || isNaN(s)) throw _e.error("jsPDF.addSvgAsImage: Invalid measurements", arguments), new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");
8798
- var f = document.createElement("canvas");
8799
- f.width = n, f.height = s;
8800
- var d = f.getContext("2d");
8801
- d.fillStyle = "#fff", d.fillRect(0, 0, f.width, f.height);
8798
+ var c = document.createElement("canvas");
8799
+ c.width = n, c.height = s;
8800
+ var d = c.getContext("2d");
8801
+ d.fillStyle = "#fff", d.fillRect(0, 0, c.width, c.height);
8802
8802
  var g = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, x = this;
8803
- return (Jt.canvg ? Promise.resolve(Jt.canvg) : import("./index.es-BvMnr9eR.js")).catch(function(N) {
8803
+ return (Jt.canvg ? Promise.resolve(Jt.canvg) : import("./index.es-Bvb0KVUH.js")).catch(function(N) {
8804
8804
  return Promise.reject(new Error("Could not load canvg: " + N));
8805
8805
  }).then(function(N) {
8806
8806
  return N.default ? N.default : N;
@@ -8811,7 +8811,7 @@ endobj\r
8811
8811
  }).then(function(N) {
8812
8812
  return N.render(g);
8813
8813
  }).then(function() {
8814
- x.addImage(f.toDataURL("image/jpeg", 1), t, e, n, s, c, u);
8814
+ x.addImage(c.toDataURL("image/jpeg", 1), t, e, n, s, f, u);
8815
8815
  });
8816
8816
  }, Rt.API.putTotalPages = function(r) {
8817
8817
  var t, e = 0;
@@ -8821,13 +8821,13 @@ endobj\r
8821
8821
  }, Rt.API.viewerPreferences = function(r, t) {
8822
8822
  var e;
8823
8823
  r = r || {}, t = t || !1;
8824
- var n, s, a, c = { 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 } }, u = Object.keys(c), f = [], d = 0, g = 0, x = 0;
8824
+ var n, s, a, f = { 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 } }, u = Object.keys(f), c = [], d = 0, g = 0, x = 0;
8825
8825
  function N(j, P) {
8826
8826
  var O, k = !1;
8827
8827
  for (O = 0; O < j.length; O += 1) j[O] === P && (k = !0);
8828
8828
  return k;
8829
8829
  }
8830
- if (this.internal.viewerpreferences === void 0 && (this.internal.viewerpreferences = {}, this.internal.viewerpreferences.configuration = JSON.parse(JSON.stringify(c)), this.internal.viewerpreferences.isSubscribed = !1), e = this.internal.viewerpreferences.configuration, r === "reset" || t === !0) {
8830
+ if (this.internal.viewerpreferences === void 0 && (this.internal.viewerpreferences = {}, this.internal.viewerpreferences.configuration = JSON.parse(JSON.stringify(f)), this.internal.viewerpreferences.isSubscribed = !1), e = this.internal.viewerpreferences.configuration, r === "reset" || t === !0) {
8831
8831
  var p = u.length;
8832
8832
  for (x = 0; x < p; x += 1) e[u[x]].value = e[u[x]].defaultValue, e[u[x]].explicitSet = !1;
8833
8833
  }
@@ -8837,12 +8837,12 @@ endobj\r
8837
8837
  else if (e[s].type === "name" && N(e[s].valueSet, a)) e[s].value = a;
8838
8838
  else if (e[s].type === "integer" && Number.isInteger(a)) e[s].value = a;
8839
8839
  else if (e[s].type === "array") {
8840
- for (d = 0; d < a.length; d += 1) if (n = !0, a[d].length === 1 && typeof a[d][0] == "number") f.push(String(a[d] - 1));
8840
+ for (d = 0; d < a.length; d += 1) if (n = !0, a[d].length === 1 && typeof a[d][0] == "number") c.push(String(a[d] - 1));
8841
8841
  else if (a[d].length > 1) {
8842
8842
  for (g = 0; g < a[d].length; g += 1) typeof a[d][g] != "number" && (n = !1);
8843
- n === !0 && f.push([a[d][0] - 1, a[d][1] - 1].join(" "));
8843
+ n === !0 && c.push([a[d][0] - 1, a[d][1] - 1].join(" "));
8844
8844
  }
8845
- e[s].value = "[" + f.join(" ") + "]";
8845
+ e[s].value = "[" + c.join(" ") + "]";
8846
8846
  } else e[s].value = e[s].defaultValue;
8847
8847
  e[s].explicitSet = !0;
8848
8848
  }
@@ -8857,16 +8857,16 @@ endobj\r
8857
8857
  >>`);
8858
8858
  }), this.internal.viewerpreferences.isSubscribed = !0), this.internal.viewerpreferences.configuration = e, this;
8859
8859
  }, Rt.API.addMetadata = function(r, t) {
8860
- return this.internal.__metadata__ === void 0 && (this.internal.__metadata__ = { metadata: r, namespaceUri: t ?? "http://jspdf.default.namespaceuri/", rawXml: typeof t == "boolean" && t }, this.internal.events.subscribe("putCatalog", u2), this.internal.events.subscribe("postPutResources", o2)), this;
8860
+ return this.internal.__metadata__ === void 0 && (this.internal.__metadata__ = { metadata: r, namespaceUri: t ?? "http://jspdf.default.namespaceuri/", rawXml: typeof t == "boolean" && t }, this.internal.events.subscribe("putCatalog", l2), this.internal.events.subscribe("postPutResources", u2)), this;
8861
8861
  }, (function(r) {
8862
- var t = r.API, e = t.pdfEscape16 = function(a, c) {
8863
- for (var u, f = c.metadata.Unicode.widths, d = ["", "0", "00", "000", "0000"], g = [""], x = 0, N = a.length; x < N; ++x) {
8864
- if (u = c.metadata.characterToGlyph(a.charCodeAt(x)), c.metadata.glyIdsUsed.push(u), c.metadata.toUnicode[u] = a.charCodeAt(x), f.indexOf(u) == -1 && (f.push(u), f.push([parseInt(c.metadata.widthOfGlyph(u), 10)])), u == "0") return g.join("");
8862
+ var t = r.API, e = t.pdfEscape16 = function(a, f) {
8863
+ for (var u, c = f.metadata.Unicode.widths, d = ["", "0", "00", "000", "0000"], g = [""], x = 0, N = a.length; x < N; ++x) {
8864
+ if (u = f.metadata.characterToGlyph(a.charCodeAt(x)), f.metadata.glyIdsUsed.push(u), f.metadata.toUnicode[u] = a.charCodeAt(x), c.indexOf(u) == -1 && (c.push(u), c.push([parseInt(f.metadata.widthOfGlyph(u), 10)])), u == "0") return g.join("");
8865
8865
  u = u.toString(16), g.push(d[4 - u.length], u);
8866
8866
  }
8867
8867
  return g.join("");
8868
8868
  }, n = function(a) {
8869
- var c, u, f, d, g, x, N;
8869
+ var f, u, c, d, g, x, N;
8870
8870
  for (g = `/CIDInit /ProcSet findresource begin
8871
8871
  12 dict begin
8872
8872
  begincmap
@@ -8879,16 +8879,16 @@ begincmap
8879
8879
  /CMapType 2 def
8880
8880
  1 begincodespacerange
8881
8881
  <0000><ffff>
8882
- endcodespacerange`, f = [], x = 0, N = (u = Object.keys(a).sort(function(p, j) {
8882
+ endcodespacerange`, c = [], x = 0, N = (u = Object.keys(a).sort(function(p, j) {
8883
8883
  return p - j;
8884
- })).length; x < N; x++) c = u[x], f.length >= 100 && (g += `
8885
- ` + f.length + ` beginbfchar
8886
- ` + f.join(`
8884
+ })).length; x < N; x++) f = u[x], c.length >= 100 && (g += `
8885
+ ` + c.length + ` beginbfchar
8886
+ ` + c.join(`
8887
8887
  `) + `
8888
- endbfchar`, f = []), a[c] !== void 0 && a[c] !== null && typeof a[c].toString == "function" && (d = ("0000" + a[c].toString(16)).slice(-4), c = ("0000" + (+c).toString(16)).slice(-4), f.push("<" + c + "><" + d + ">"));
8889
- return f.length && (g += `
8890
- ` + f.length + ` beginbfchar
8891
- ` + f.join(`
8888
+ endbfchar`, c = []), a[f] !== void 0 && a[f] !== null && typeof a[f].toString == "function" && (d = ("0000" + a[f].toString(16)).slice(-4), f = ("0000" + (+f).toString(16)).slice(-4), c.push("<" + f + "><" + d + ">"));
8889
+ return c.length && (g += `
8890
+ ` + c.length + ` beginbfchar
8891
+ ` + c.join(`
8892
8892
  `) + `
8893
8893
  endbfchar
8894
8894
  `), g + `endcmap
@@ -8897,52 +8897,52 @@ end
8897
8897
  end`;
8898
8898
  };
8899
8899
  t.events.push(["putFont", function(a) {
8900
- (function(c) {
8901
- var u = c.font, f = c.out, d = c.newObject, g = c.putStream;
8900
+ (function(f) {
8901
+ var u = f.font, c = f.out, d = f.newObject, g = f.putStream;
8902
8902
  if (u.metadata instanceof r.API.TTFFont && u.encoding === "Identity-H") {
8903
8903
  for (var x = u.metadata.Unicode.widths, N = u.metadata.subset.encode(u.metadata.glyIdsUsed, 1), p = "", j = 0; j < N.length; j++) p += String.fromCharCode(N[j]);
8904
8904
  var P = d();
8905
- g({ data: p, addLength1: !0, objectId: P }), f("endobj");
8905
+ g({ data: p, addLength1: !0, objectId: P }), c("endobj");
8906
8906
  var O = d();
8907
- g({ data: n(u.metadata.toUnicode), addLength1: !0, objectId: O }), f("endobj");
8907
+ g({ data: n(u.metadata.toUnicode), addLength1: !0, objectId: O }), c("endobj");
8908
8908
  var k = d();
8909
- f("<<"), f("/Type /FontDescriptor"), f("/FontName /" + Zi(u.fontName)), f("/FontFile2 " + P + " 0 R"), f("/FontBBox " + r.API.PDFObject.convert(u.metadata.bbox)), f("/Flags " + u.metadata.flags), f("/StemV " + u.metadata.stemV), f("/ItalicAngle " + u.metadata.italicAngle), f("/Ascent " + u.metadata.ascender), f("/Descent " + u.metadata.decender), f("/CapHeight " + u.metadata.capHeight), f(">>"), f("endobj");
8909
+ c("<<"), c("/Type /FontDescriptor"), c("/FontName /" + Zi(u.fontName)), c("/FontFile2 " + P + " 0 R"), c("/FontBBox " + r.API.PDFObject.convert(u.metadata.bbox)), c("/Flags " + u.metadata.flags), c("/StemV " + u.metadata.stemV), c("/ItalicAngle " + u.metadata.italicAngle), c("/Ascent " + u.metadata.ascender), c("/Descent " + u.metadata.decender), c("/CapHeight " + u.metadata.capHeight), c(">>"), c("endobj");
8910
8910
  var G = d();
8911
- f("<<"), f("/Type /Font"), f("/BaseFont /" + Zi(u.fontName)), f("/FontDescriptor " + k + " 0 R"), f("/W " + r.API.PDFObject.convert(x)), f("/CIDToGIDMap /Identity"), f("/DW 1000"), f("/Subtype /CIDFontType2"), f("/CIDSystemInfo"), f("<<"), f("/Supplement 0"), f("/Registry (Adobe)"), f("/Ordering (" + u.encoding + ")"), f(">>"), f(">>"), f("endobj"), u.objectNumber = d(), f("<<"), f("/Type /Font"), f("/Subtype /Type0"), f("/ToUnicode " + O + " 0 R"), f("/BaseFont /" + Zi(u.fontName)), f("/Encoding /" + u.encoding), f("/DescendantFonts [" + G + " 0 R]"), f(">>"), f("endobj"), u.isAlreadyPutted = !0;
8911
+ c("<<"), c("/Type /Font"), c("/BaseFont /" + Zi(u.fontName)), c("/FontDescriptor " + k + " 0 R"), c("/W " + r.API.PDFObject.convert(x)), c("/CIDToGIDMap /Identity"), c("/DW 1000"), c("/Subtype /CIDFontType2"), c("/CIDSystemInfo"), c("<<"), c("/Supplement 0"), c("/Registry (Adobe)"), c("/Ordering (" + u.encoding + ")"), c(">>"), c(">>"), c("endobj"), u.objectNumber = d(), c("<<"), c("/Type /Font"), c("/Subtype /Type0"), c("/ToUnicode " + O + " 0 R"), c("/BaseFont /" + Zi(u.fontName)), c("/Encoding /" + u.encoding), c("/DescendantFonts [" + G + " 0 R]"), c(">>"), c("endobj"), u.isAlreadyPutted = !0;
8912
8912
  }
8913
8913
  })(a);
8914
8914
  }]), t.events.push(["putFont", function(a) {
8915
- (function(c) {
8916
- var u = c.font, f = c.out, d = c.newObject, g = c.putStream;
8915
+ (function(f) {
8916
+ var u = f.font, c = f.out, d = f.newObject, g = f.putStream;
8917
8917
  if (u.metadata instanceof r.API.TTFFont && u.encoding === "WinAnsiEncoding") {
8918
8918
  for (var x = u.metadata.rawData, N = "", p = 0; p < x.length; p++) N += String.fromCharCode(x[p]);
8919
8919
  var j = d();
8920
- g({ data: N, addLength1: !0, objectId: j }), f("endobj");
8920
+ g({ data: N, addLength1: !0, objectId: j }), c("endobj");
8921
8921
  var P = d();
8922
- g({ data: n(u.metadata.toUnicode), addLength1: !0, objectId: P }), f("endobj");
8922
+ g({ data: n(u.metadata.toUnicode), addLength1: !0, objectId: P }), c("endobj");
8923
8923
  var O = d();
8924
- f("<<"), f("/Descent " + u.metadata.decender), f("/CapHeight " + u.metadata.capHeight), f("/StemV " + u.metadata.stemV), f("/Type /FontDescriptor"), f("/FontFile2 " + j + " 0 R"), f("/Flags 96"), f("/FontBBox " + r.API.PDFObject.convert(u.metadata.bbox)), f("/FontName /" + Zi(u.fontName)), f("/ItalicAngle " + u.metadata.italicAngle), f("/Ascent " + u.metadata.ascender), f(">>"), f("endobj"), u.objectNumber = d();
8924
+ c("<<"), c("/Descent " + u.metadata.decender), c("/CapHeight " + u.metadata.capHeight), c("/StemV " + u.metadata.stemV), c("/Type /FontDescriptor"), c("/FontFile2 " + j + " 0 R"), c("/Flags 96"), c("/FontBBox " + r.API.PDFObject.convert(u.metadata.bbox)), c("/FontName /" + Zi(u.fontName)), c("/ItalicAngle " + u.metadata.italicAngle), c("/Ascent " + u.metadata.ascender), c(">>"), c("endobj"), u.objectNumber = d();
8925
8925
  for (var k = 0; k < u.metadata.hmtx.widths.length; k++) u.metadata.hmtx.widths[k] = parseInt(u.metadata.hmtx.widths[k] * (1e3 / u.metadata.head.unitsPerEm));
8926
- f("<</Subtype/TrueType/Type/Font/ToUnicode " + P + " 0 R/BaseFont/" + Zi(u.fontName) + "/FontDescriptor " + O + " 0 R/Encoding/" + u.encoding + " /FirstChar 29 /LastChar 255 /Widths " + r.API.PDFObject.convert(u.metadata.hmtx.widths) + ">>"), f("endobj"), u.isAlreadyPutted = !0;
8926
+ c("<</Subtype/TrueType/Type/Font/ToUnicode " + P + " 0 R/BaseFont/" + Zi(u.fontName) + "/FontDescriptor " + O + " 0 R/Encoding/" + u.encoding + " /FirstChar 29 /LastChar 255 /Widths " + r.API.PDFObject.convert(u.metadata.hmtx.widths) + ">>"), c("endobj"), u.isAlreadyPutted = !0;
8927
8927
  }
8928
8928
  })(a);
8929
8929
  }]);
8930
8930
  var s = function(a) {
8931
- var c, u = a.text || "", f = a.x, d = a.y, g = a.options || {}, x = a.mutex || {}, N = x.pdfEscape, p = x.activeFontKey, j = x.fonts, P = p, O = "", k = 0, G = "", Y = j[P].encoding;
8932
- if (j[P].encoding !== "Identity-H") return { text: u, x: f, y: d, options: g, mutex: x };
8933
- for (G = u, P = p, Array.isArray(u) && (G = u[0]), k = 0; k < G.length; k += 1) j[P].metadata.hasOwnProperty("cmap") && (c = j[P].metadata.cmap.unicode.codeMap[G[k].charCodeAt(0)]), c || G[k].charCodeAt(0) < 256 && j[P].metadata.hasOwnProperty("Unicode") ? O += G[k] : O += "";
8931
+ var f, u = a.text || "", c = a.x, d = a.y, g = a.options || {}, x = a.mutex || {}, N = x.pdfEscape, p = x.activeFontKey, j = x.fonts, P = p, O = "", k = 0, G = "", Y = j[P].encoding;
8932
+ if (j[P].encoding !== "Identity-H") return { text: u, x: c, y: d, options: g, mutex: x };
8933
+ for (G = u, P = p, Array.isArray(u) && (G = u[0]), k = 0; k < G.length; k += 1) j[P].metadata.hasOwnProperty("cmap") && (f = j[P].metadata.cmap.unicode.codeMap[G[k].charCodeAt(0)]), f || G[k].charCodeAt(0) < 256 && j[P].metadata.hasOwnProperty("Unicode") ? O += G[k] : O += "";
8934
8934
  var q = "";
8935
8935
  return parseInt(P.slice(1)) < 14 || Y === "WinAnsiEncoding" ? q = N(O, P).split("").map(function(it) {
8936
8936
  return it.charCodeAt(0).toString(16);
8937
- }).join("") : Y === "Identity-H" && (q = e(O, j[P])), x.isHex = !0, { text: q, x: f, y: d, options: g, mutex: x };
8937
+ }).join("") : Y === "Identity-H" && (q = e(O, j[P])), x.isHex = !0, { text: q, x: c, y: d, options: g, mutex: x };
8938
8938
  };
8939
8939
  t.events.push(["postProcessText", function(a) {
8940
- var c = a.text || "", u = [], f = { text: c, x: a.x, y: a.y, options: a.options, mutex: a.mutex };
8941
- if (Array.isArray(c)) {
8940
+ var f = a.text || "", u = [], c = { text: f, x: a.x, y: a.y, options: a.options, mutex: a.mutex };
8941
+ if (Array.isArray(f)) {
8942
8942
  var d = 0;
8943
- for (d = 0; d < c.length; d += 1) Array.isArray(c[d]) && c[d].length === 3 ? u.push([s(Object.assign({}, f, { text: c[d][0] })).text, c[d][1], c[d][2]]) : u.push(s(Object.assign({}, f, { text: c[d] })).text);
8943
+ for (d = 0; d < f.length; d += 1) Array.isArray(f[d]) && f[d].length === 3 ? u.push([s(Object.assign({}, c, { text: f[d][0] })).text, f[d][1], f[d][2]]) : u.push(s(Object.assign({}, c, { text: f[d] })).text);
8944
8944
  a.text = u;
8945
- } else a.text = s(Object.assign({}, f, { text: c })).text;
8945
+ } else a.text = s(Object.assign({}, c, { text: f })).text;
8946
8946
  }]);
8947
8947
  })(Rt), /**
8948
8948
  * @license
@@ -8969,7 +8969,7 @@ end`;
8969
8969
  */
8970
8970
  (function(r) {
8971
8971
  r.__bidiEngine__ = r.prototype.__bidiEngine__ = function(n) {
8972
- var s, a, c, u, f, d, g, x = t, N = [[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]], j = { L: 0, R: 1, EN: 2, AN: 3, N: 4, B: 5, S: 6 }, P = { 0: 0, 5: 1, 6: 2, 7: 3, 32: 4, 251: 5, 254: 6, 255: 7 }, O = ["(", ")", "(", "<", ">", "<", "[", "]", "[", "{", "}", "{", "«", "»", "«", "‹", "›", "‹", "⁅", "⁆", "⁅", "⁽", "⁾", "⁽", "₍", "₎", "₍", "≤", "≥", "≤", "〈", "〉", "〈", "﹙", "﹚", "﹙", "﹛", "﹜", "﹛", "﹝", "﹞", "﹝", "﹤", "﹥", "﹤"], k = 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)$/), G = !1, Y = 0;
8972
+ var s, a, f, u, c, d, g, x = t, N = [[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]], j = { L: 0, R: 1, EN: 2, AN: 3, N: 4, B: 5, S: 6 }, P = { 0: 0, 5: 1, 6: 2, 7: 3, 32: 4, 251: 5, 254: 6, 255: 7 }, O = ["(", ")", "(", "<", ">", "<", "[", "]", "[", "{", "}", "{", "«", "»", "«", "‹", "›", "‹", "⁅", "⁆", "⁅", "⁽", "⁾", "⁽", "₍", "₎", "₍", "≤", "≥", "≤", "〈", "〉", "〈", "﹙", "﹚", "﹙", "﹛", "﹜", "﹛", "﹝", "﹞", "﹝", "﹤", "﹥", "﹤"], k = 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)$/), G = !1, Y = 0;
8973
8973
  this.__bidiEngine__ = {};
8974
8974
  var q = function(_) {
8975
8975
  var F = _.charCodeAt(), z = F >> 8, U = P[z];
@@ -9024,7 +9024,7 @@ end`;
9024
9024
  ht = ft < rt && F[ft] === "EN" ? "EN" : "N";
9025
9025
  break;
9026
9026
  case "NSM":
9027
- if (c && !u) {
9027
+ if (f && !u) {
9028
9028
  for (rt = F.length, ft = U + 1; ft < rt && F[ft] === "NSM"; ) ft++;
9029
9029
  if (ft < rt) {
9030
9030
  var Nt = _[U], wt = Nt >= 1425 && Nt <= 2303 || Nt === 64286;
@@ -9089,12 +9089,12 @@ end`;
9089
9089
  if ((function(nt, ot) {
9090
9090
  if (ot) for (var ft = 0; ft < nt.length; ft++) ot[ft] = ft;
9091
9091
  u === void 0 && (u = it(nt)), d === void 0 && (d = it(nt));
9092
- })(_, F), c || !f || d) if (c && f && u ^ d) Y = u ? 1 : 0, _ = dt(_, F, z);
9093
- else if (!c && f && d) Y = u ? 1 : 0, _ = tt(_, F, z), _ = dt(_, F);
9094
- else if (!c || u || f || d) {
9095
- if (c && !f && u ^ d) _ = dt(_, F), u ? (Y = 0, _ = tt(_, F, z)) : (Y = 1, _ = tt(_, F, z), _ = dt(_, F));
9096
- else if (c && u && !f && d) Y = 1, _ = tt(_, F, z), _ = dt(_, F);
9097
- else if (!c && !f && u ^ d) {
9092
+ })(_, F), f || !c || d) if (f && c && u ^ d) Y = u ? 1 : 0, _ = dt(_, F, z);
9093
+ else if (!f && c && d) Y = u ? 1 : 0, _ = tt(_, F, z), _ = dt(_, F);
9094
+ else if (!f || u || c || d) {
9095
+ if (f && !c && u ^ d) _ = dt(_, F), u ? (Y = 0, _ = tt(_, F, z)) : (Y = 1, _ = tt(_, F, z), _ = dt(_, F));
9096
+ else if (f && u && !c && d) Y = 1, _ = tt(_, F, z), _ = dt(_, F);
9097
+ else if (!f && !c && u ^ d) {
9098
9098
  var U = g;
9099
9099
  u ? (Y = 1, _ = tt(_, F, z), Y = 0, g = !1, _ = tt(_, F, z), g = U) : (Y = 0, _ = tt(_, F, z), _ = dt(_, F), Y = 1, g = !1, _ = tt(_, F, z), g = U, _ = dt(_, F));
9100
9100
  }
@@ -9102,7 +9102,7 @@ end`;
9102
9102
  else Y = u ? 1 : 0, _ = tt(_, F, z);
9103
9103
  return _;
9104
9104
  }, this.__bidiEngine__.setOptions = function(_) {
9105
- _ && (c = _.isInputVisual, f = _.isOutputVisual, u = _.isInputRtl, d = _.isOutputRtl, g = _.isSymmetricSwapping);
9105
+ _ && (f = _.isInputVisual, c = _.isOutputVisual, u = _.isInputRtl, d = _.isOutputRtl, g = _.isSymmetricSwapping);
9106
9106
  }, this.__bidiEngine__.setOptions(n), this.__bidiEngine__;
9107
9107
  };
9108
9108
  var t = ["BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "S", "B", "S", "WS", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "B", "B", "B", "S", "WS", "N", "N", "ET", "ET", "ET", "N", "N", "N", "N", "N", "ES", "CS", "ES", "CS", "CS", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "CS", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "BN", "BN", "BN", "BN", "BN", "BN", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "CS", "N", "ET", "ET", "ET", "ET", "N", "N", "N", "N", "L", "N", "N", "BN", "N", "N", "ET", "ET", "EN", "EN", "N", "L", "N", "N", "N", "EN", "L", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "L", "L", "L", "L", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "L", "N", "N", "N", "N", "N", "ET", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "R", "NSM", "R", "NSM", "NSM", "R", "NSM", "NSM", "R", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "N", "N", "N", "N", "N", "R", "R", "R", "R", "R", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "AN", "AN", "AN", "AN", "AN", "AN", "N", "N", "AL", "ET", "ET", "AL", "CS", "AL", "N", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "ET", "AN", "AN", "AL", "AL", "AL", "NSM", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "NSM", "NSM", "N", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "N", "AL", "AL", "NSM", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "R", "R", "N", "N", "N", "N", "R", "N", "N", "N", "N", "N", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "WS", "BN", "BN", "BN", "L", "R", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "WS", "B", "LRE", "RLE", "PDF", "LRO", "RLO", "CS", "ET", "ET", "ET", "ET", "ET", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "CS", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "WS", "BN", "BN", "BN", "BN", "BN", "N", "LRI", "RLI", "FSI", "PDI", "BN", "BN", "BN", "BN", "BN", "BN", "EN", "L", "N", "N", "EN", "EN", "EN", "EN", "EN", "EN", "ES", "ES", "N", "N", "N", "L", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "ES", "ES", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "ET", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "R", "NSM", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "ES", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "N", "R", "R", "R", "R", "R", "N", "R", "N", "R", "R", "N", "R", "R", "N", "R", "R", "R", "R", "R", "R", "R", "R", "R", "R", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "CS", "N", "CS", "N", "N", "CS", "N", "N", "N", "N", "N", "N", "N", "N", "N", "ET", "N", "N", "ES", "ES", "N", "N", "N", "N", "N", "ET", "ET", "N", "N", "N", "N", "N", "AL", "AL", "AL", "AL", "AL", "N", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "N", "N", "BN", "N", "N", "N", "ET", "ET", "ET", "N", "N", "N", "N", "N", "ES", "CS", "ES", "CS", "CS", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "CS", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "N", "N", "N", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "L", "L", "L", "N", "N", "L", "L", "L", "N", "N", "N", "ET", "ET", "N", "N", "N", "ET", "ET", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N"], e = new r.__bidiEngine__({ isInputVisual: !0 });
@@ -9111,11 +9111,11 @@ end`;
9111
9111
  n.x, n.y;
9112
9112
  var a = n.options || {};
9113
9113
  n.mutex, a.lang;
9114
- var c = [];
9114
+ var f = [];
9115
9115
  if (a.isInputVisual = typeof a.isInputVisual != "boolean" || a.isInputVisual, e.setOptions(a), Object.prototype.toString.call(s) === "[object Array]") {
9116
9116
  var u = 0;
9117
- for (c = [], u = 0; u < s.length; u += 1) Object.prototype.toString.call(s[u]) === "[object Array]" ? c.push([e.doBidiReorder(s[u][0]), s[u][1], s[u][2]]) : c.push([e.doBidiReorder(s[u])]);
9118
- n.text = c;
9117
+ for (f = [], u = 0; u < s.length; u += 1) Object.prototype.toString.call(s[u]) === "[object Array]" ? f.push([e.doBidiReorder(s[u][0]), s[u][1], s[u][2]]) : f.push([e.doBidiReorder(s[u])]);
9118
+ n.text = f;
9119
9119
  } else n.text = e.doBidiReorder(s);
9120
9120
  e.setOptions({ isInputVisual: !0 });
9121
9121
  }]);
@@ -9123,17 +9123,17 @@ end`;
9123
9123
  function r(t) {
9124
9124
  var e;
9125
9125
  if (this.rawData = t, e = this.contents = new $n(t), this.contents.pos = 4, e.readString(4) === "ttcf") throw new Error("TTCF not supported.");
9126
- e.pos = 0, this.parse(), this.subset = new N2(this), this.registerTTF();
9126
+ e.pos = 0, this.parse(), this.subset = new L2(this), this.registerTTF();
9127
9127
  }
9128
9128
  return r.open = function(t) {
9129
9129
  return new r(t);
9130
9130
  }, r.prototype.parse = function() {
9131
- return this.directory = new l2(this.contents), this.head = new c2(this), this.name = new m2(this), this.cmap = new Uf(this), this.toUnicode = {}, this.hhea = new h2(this), this.maxp = new v2(this), this.hmtx = new b2(this), this.post = new p2(this), this.os2 = new d2(this), this.loca = new A2(this), this.glyf = new w2(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];
9131
+ return this.directory = new f2(this.contents), this.head = new h2(this), this.name = new v2(this), this.cmap = new Uf(this), this.toUnicode = {}, this.hhea = new d2(this), this.maxp = new b2(this), this.hmtx = new w2(this), this.post = new g2(this), this.os2 = new p2(this), this.loca = new N2(this), this.glyf = new y2(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];
9132
9132
  }, r.prototype.registerTTF = function() {
9133
9133
  var t, e, n, s, a;
9134
9134
  if (this.scaleFactor = 1e3 / this.head.unitsPerEm, this.bbox = (function() {
9135
- var c, u, f, d;
9136
- for (d = [], c = 0, u = (f = this.bbox).length; c < u; c++) t = f[c], d.push(Math.round(t * this.scaleFactor));
9135
+ var f, u, c, d;
9136
+ for (d = [], f = 0, u = (c = this.bbox).length; f < u; f++) t = c[f], d.push(Math.round(t * this.scaleFactor));
9137
9137
  return d;
9138
9138
  }).call(this), this.stemV = 0, this.post.exists ? (n = 255 & (s = this.post.italic_angle), 32768 & (e = s >> 16) && (e = -(1 + (65535 ^ e))), this.italicAngle = +(e + "." + n)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = (a = this.familyClass) === 1 || a === 2 || a === 3 || a === 4 || a === 5 || a === 7, this.isScript = this.familyClass === 10, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), this.italicAngle !== 0 && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode) throw new Error("No unicode cmap for font");
9139
9139
  }, r.prototype.characterToGlyph = function(t) {
@@ -9143,9 +9143,9 @@ end`;
9143
9143
  var e;
9144
9144
  return e = 1e3 / this.head.unitsPerEm, this.hmtx.forGlyph(t).advance * e;
9145
9145
  }, r.prototype.widthOfString = function(t, e, n) {
9146
- var s, a, c, u;
9147
- for (c = 0, a = 0, u = (t = "" + t).length; 0 <= u ? a < u : a > u; a = 0 <= u ? ++a : --a) s = t.charCodeAt(a), c += this.widthOfGlyph(this.characterToGlyph(s)) + n * (1e3 / e) || 0;
9148
- return c * (e / 1e3);
9146
+ var s, a, f, u;
9147
+ for (f = 0, a = 0, u = (t = "" + t).length; 0 <= u ? a < u : a > u; a = 0 <= u ? ++a : --a) s = t.charCodeAt(a), f += this.widthOfGlyph(this.characterToGlyph(s)) + n * (1e3 / e) || 0;
9148
+ return f * (e / 1e3);
9149
9149
  }, r.prototype.lineHeight = function(t, e) {
9150
9150
  var n;
9151
9151
  return e == null && (e = !1), n = e ? this.lineGap : 0, (this.ascender + n - this.decender) / 1e3 * t;
@@ -9190,8 +9190,8 @@ var tn, $n = (function() {
9190
9190
  }, r.prototype.writeShort = function(t) {
9191
9191
  return this.writeInt16(t);
9192
9192
  }, r.prototype.readLongLong = function() {
9193
- var t, e, n, s, a, c, u, f;
9194
- return t = this.readByte(), e = this.readByte(), n = this.readByte(), s = this.readByte(), a = this.readByte(), c = this.readByte(), u = this.readByte(), f = this.readByte(), 128 & t ? -1 * (72057594037927940 * (255 ^ t) + 281474976710656 * (255 ^ e) + 1099511627776 * (255 ^ n) + 4294967296 * (255 ^ s) + 16777216 * (255 ^ a) + 65536 * (255 ^ c) + 256 * (255 ^ u) + (255 ^ f) + 1) : 72057594037927940 * t + 281474976710656 * e + 1099511627776 * n + 4294967296 * s + 16777216 * a + 65536 * c + 256 * u + f;
9193
+ var t, e, n, s, a, f, u, c;
9194
+ return t = this.readByte(), e = this.readByte(), n = this.readByte(), s = this.readByte(), a = this.readByte(), f = this.readByte(), u = this.readByte(), c = this.readByte(), 128 & t ? -1 * (72057594037927940 * (255 ^ t) + 281474976710656 * (255 ^ e) + 1099511627776 * (255 ^ n) + 4294967296 * (255 ^ s) + 16777216 * (255 ^ a) + 65536 * (255 ^ f) + 256 * (255 ^ u) + (255 ^ c) + 1) : 72057594037927940 * t + 281474976710656 * e + 1099511627776 * n + 4294967296 * s + 16777216 * a + 65536 * f + 256 * u + c;
9195
9195
  }, r.prototype.writeLongLong = function(t) {
9196
9196
  var e, n;
9197
9197
  return e = Math.floor(t / 4294967296), n = 4294967295 & t, this.writeByte(e >> 24 & 255), this.writeByte(e >> 16 & 255), this.writeByte(e >> 8 & 255), this.writeByte(255 & e), this.writeByte(n >> 24 & 255), this.writeByte(n >> 16 & 255), this.writeByte(n >> 8 & 255), this.writeByte(255 & n);
@@ -9208,24 +9208,24 @@ var tn, $n = (function() {
9208
9208
  for (a = [], n = 0, s = t.length; n < s; n++) e = t[n], a.push(this.writeByte(e));
9209
9209
  return a;
9210
9210
  }, r;
9211
- })(), l2 = (function() {
9211
+ })(), f2 = (function() {
9212
9212
  var r;
9213
9213
  function t(e) {
9214
9214
  var n, s, a;
9215
9215
  for (this.scalarType = e.readInt(), this.tableCount = e.readShort(), this.searchRange = e.readShort(), this.entrySelector = e.readShort(), this.rangeShift = e.readShort(), this.tables = {}, s = 0, a = this.tableCount; 0 <= a ? s < a : s > a; s = 0 <= a ? ++s : --s) n = { tag: e.readString(4), checksum: e.readInt(), offset: e.readInt(), length: e.readInt() }, this.tables[n.tag] = n;
9216
9216
  }
9217
9217
  return t.prototype.encode = function(e) {
9218
- var n, s, a, c, u, f, d, g, x, N, p, j, P;
9219
- for (P in p = Object.keys(e).length, f = Math.log(2), x = 16 * Math.floor(Math.log(p) / f), c = Math.floor(x / f), g = 16 * p - x, (s = new $n()).writeInt(this.scalarType), s.writeShort(p), s.writeShort(x), s.writeShort(c), s.writeShort(g), a = 16 * p, d = s.pos + a, u = null, j = [], e) for (N = e[P], s.writeString(P), s.writeInt(r(N)), s.writeInt(d), s.writeInt(N.length), j = j.concat(N), P === "head" && (u = d), d += N.length; d % 4; ) j.push(0), d++;
9218
+ var n, s, a, f, u, c, d, g, x, N, p, j, P;
9219
+ for (P in p = Object.keys(e).length, c = Math.log(2), x = 16 * Math.floor(Math.log(p) / c), f = Math.floor(x / c), g = 16 * p - x, (s = new $n()).writeInt(this.scalarType), s.writeShort(p), s.writeShort(x), s.writeShort(f), s.writeShort(g), a = 16 * p, d = s.pos + a, u = null, j = [], e) for (N = e[P], s.writeString(P), s.writeInt(r(N)), s.writeInt(d), s.writeInt(N.length), j = j.concat(N), P === "head" && (u = d), d += N.length; d % 4; ) j.push(0), d++;
9220
9220
  return s.write(j), n = 2981146554 - r(s.data), s.pos = u + 8, s.writeUInt32(n), s.data;
9221
9221
  }, r = function(e) {
9222
- var n, s, a, c;
9222
+ var n, s, a, f;
9223
9223
  for (e = zf.call(e); e.length % 4; ) e.push(0);
9224
- for (a = new $n(e), s = 0, n = 0, c = e.length; n < c; n = n += 4) s += a.readUInt32();
9224
+ for (a = new $n(e), s = 0, n = 0, f = e.length; n < f; n = n += 4) s += a.readUInt32();
9225
9225
  return 4294967295 & s;
9226
9226
  }, t;
9227
- })(), f2 = {}.hasOwnProperty, mn = function(r, t) {
9228
- for (var e in t) f2.call(t, e) && (r[e] = t[e]);
9227
+ })(), c2 = {}.hasOwnProperty, mn = function(r, t) {
9228
+ for (var e in t) c2.call(t, e) && (r[e] = t[e]);
9229
9229
  function n() {
9230
9230
  this.constructor = r;
9231
9231
  }
@@ -9242,7 +9242,7 @@ tn = (function() {
9242
9242
  return this.exists ? (this.file.contents.pos = this.offset, this.file.contents.read(this.length)) : null;
9243
9243
  }, r;
9244
9244
  })();
9245
- var c2 = (function() {
9245
+ var h2 = (function() {
9246
9246
  function r() {
9247
9247
  return r.__super__.constructor.apply(this, arguments);
9248
9248
  }
@@ -9254,39 +9254,39 @@ var c2 = (function() {
9254
9254
  }, r;
9255
9255
  })(), Zl = (function() {
9256
9256
  function r(t, e) {
9257
- var n, s, a, c, u, f, d, g, x, N, p, j, P, O, k, G, Y;
9257
+ var n, s, a, f, u, c, d, g, x, N, p, j, P, O, k, G, Y;
9258
9258
  switch (this.platformID = t.readUInt16(), this.encodingID = t.readShort(), this.offset = e + t.readInt(), x = 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) {
9259
9259
  case 0:
9260
- for (f = 0; f < 256; ++f) this.codeMap[f] = t.readByte();
9260
+ for (c = 0; c < 256; ++c) this.codeMap[c] = t.readByte();
9261
9261
  break;
9262
9262
  case 4:
9263
9263
  for (p = t.readUInt16(), N = p / 2, t.pos += 6, a = (function() {
9264
9264
  var q, it;
9265
- for (it = [], f = q = 0; 0 <= N ? q < N : q > N; f = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9265
+ for (it = [], c = q = 0; 0 <= N ? q < N : q > N; c = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9266
9266
  return it;
9267
9267
  })(), t.pos += 2, P = (function() {
9268
9268
  var q, it;
9269
- for (it = [], f = q = 0; 0 <= N ? q < N : q > N; f = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9269
+ for (it = [], c = q = 0; 0 <= N ? q < N : q > N; c = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9270
9270
  return it;
9271
9271
  })(), d = (function() {
9272
9272
  var q, it;
9273
- for (it = [], f = q = 0; 0 <= N ? q < N : q > N; f = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9273
+ for (it = [], c = q = 0; 0 <= N ? q < N : q > N; c = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9274
9274
  return it;
9275
9275
  })(), g = (function() {
9276
9276
  var q, it;
9277
- for (it = [], f = q = 0; 0 <= N ? q < N : q > N; f = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9277
+ for (it = [], c = q = 0; 0 <= N ? q < N : q > N; c = 0 <= N ? ++q : --q) it.push(t.readUInt16());
9278
9278
  return it;
9279
9279
  })(), s = (this.length - t.pos + this.offset) / 2, u = (function() {
9280
9280
  var q, it;
9281
- for (it = [], f = q = 0; 0 <= s ? q < s : q > s; f = 0 <= s ? ++q : --q) it.push(t.readUInt16());
9281
+ for (it = [], c = q = 0; 0 <= s ? q < s : q > s; c = 0 <= s ? ++q : --q) it.push(t.readUInt16());
9282
9282
  return it;
9283
- })(), f = k = 0, Y = a.length; k < Y; f = ++k) for (O = a[f], n = G = j = P[f]; j <= O ? G <= O : G >= O; n = j <= O ? ++G : --G) g[f] === 0 ? c = n + d[f] : (c = u[g[f] / 2 + (n - j) - (N - f)] || 0) !== 0 && (c += d[f]), this.codeMap[n] = 65535 & c;
9283
+ })(), c = k = 0, Y = a.length; k < Y; c = ++k) for (O = a[c], n = G = j = P[c]; j <= O ? G <= O : G >= O; n = j <= O ? ++G : --G) g[c] === 0 ? f = n + d[c] : (f = u[g[c] / 2 + (n - j) - (N - c)] || 0) !== 0 && (f += d[c]), this.codeMap[n] = 65535 & f;
9284
9284
  }
9285
9285
  t.pos = x;
9286
9286
  }
9287
9287
  return r.encode = function(t, e) {
9288
- var n, s, a, c, u, f, d, g, x, N, p, j, P, O, k, G, Y, q, it, mt, dt, K, R, tt, _, F, z, U, nt, ot, ft, rt, ht, Nt, wt, A, B, T, H, X, Z, at, st, gt, At, kt;
9289
- switch (U = new $n(), c = Object.keys(t).sort(function(St, Dt) {
9288
+ var n, s, a, f, u, c, d, g, x, N, p, j, P, O, k, G, Y, q, it, mt, dt, K, R, tt, _, F, z, U, nt, ot, ft, rt, ht, Nt, wt, A, B, T, H, X, Z, at, st, gt, At, kt;
9289
+ switch (U = new $n(), f = Object.keys(t).sort(function(St, Dt) {
9290
9290
  return St - Dt;
9291
9291
  }), e) {
9292
9292
  case "macroman":
@@ -9294,21 +9294,21 @@ var c2 = (function() {
9294
9294
  var St = [];
9295
9295
  for (j = 0; j < 256; ++j) St.push(0);
9296
9296
  return St;
9297
- })(), G = { 0: 0 }, a = {}, nt = 0, ht = c.length; nt < ht; nt++) G[st = t[s = c[nt]]] == null && (G[st] = ++P), a[s] = { old: t[s], new: G[t[s]] }, O[s] = G[t[s]];
9297
+ })(), G = { 0: 0 }, a = {}, nt = 0, ht = f.length; nt < ht; nt++) G[st = t[s = f[nt]]] == null && (G[st] = ++P), a[s] = { old: t[s], new: G[t[s]] }, O[s] = G[t[s]];
9298
9298
  return U.writeUInt16(1), U.writeUInt16(0), U.writeUInt32(12), U.writeUInt16(0), U.writeUInt16(262), U.writeUInt16(0), U.write(O), { charMap: a, subtable: U.data, maxGlyphID: P + 1 };
9299
9299
  case "unicode":
9300
- for (F = [], x = [], Y = 0, G = {}, n = {}, k = d = null, ot = 0, Nt = c.length; ot < Nt; ot++) G[it = t[s = c[ot]]] == null && (G[it] = ++Y), n[s] = { old: it, new: G[it] }, u = G[it] - s, k != null && u === d || (k && x.push(k), F.push(s), d = u), k = s;
9301
- for (k && x.push(k), x.push(65535), F.push(65535), tt = 2 * (R = F.length), K = 2 * Math.pow(Math.log(R) / Math.LN2, 2), N = Math.log(K / 2) / Math.LN2, dt = 2 * R - K, f = [], mt = [], p = [], j = ft = 0, wt = F.length; ft < wt; j = ++ft) {
9300
+ for (F = [], x = [], Y = 0, G = {}, n = {}, k = d = null, ot = 0, Nt = f.length; ot < Nt; ot++) G[it = t[s = f[ot]]] == null && (G[it] = ++Y), n[s] = { old: it, new: G[it] }, u = G[it] - s, k != null && u === d || (k && x.push(k), F.push(s), d = u), k = s;
9301
+ for (k && x.push(k), x.push(65535), F.push(65535), tt = 2 * (R = F.length), K = 2 * Math.pow(Math.log(R) / Math.LN2, 2), N = Math.log(K / 2) / Math.LN2, dt = 2 * R - K, c = [], mt = [], p = [], j = ft = 0, wt = F.length; ft < wt; j = ++ft) {
9302
9302
  if (_ = F[j], g = x[j], _ === 65535) {
9303
- f.push(0), mt.push(0);
9303
+ c.push(0), mt.push(0);
9304
9304
  break;
9305
9305
  }
9306
- if (_ - (z = n[_].new) >= 32768) for (f.push(0), mt.push(2 * (p.length + R - j)), s = rt = _; _ <= g ? rt <= g : rt >= g; s = _ <= g ? ++rt : --rt) p.push(n[s].new);
9307
- else f.push(z - _), mt.push(0);
9306
+ if (_ - (z = n[_].new) >= 32768) for (c.push(0), mt.push(2 * (p.length + R - j)), s = rt = _; _ <= g ? rt <= g : rt >= g; s = _ <= g ? ++rt : --rt) p.push(n[s].new);
9307
+ else c.push(z - _), mt.push(0);
9308
9308
  }
9309
9309
  for (U.writeUInt16(3), U.writeUInt16(1), U.writeUInt32(12), U.writeUInt16(4), U.writeUInt16(16 + 8 * R + 2 * p.length), U.writeUInt16(0), U.writeUInt16(tt), U.writeUInt16(K), U.writeUInt16(N), U.writeUInt16(dt), Z = 0, A = x.length; Z < A; Z++) s = x[Z], U.writeUInt16(s);
9310
9310
  for (U.writeUInt16(0), at = 0, B = F.length; at < B; at++) s = F[at], U.writeUInt16(s);
9311
- for (gt = 0, T = f.length; gt < T; gt++) u = f[gt], U.writeUInt16(u);
9311
+ for (gt = 0, T = c.length; gt < T; gt++) u = c[gt], U.writeUInt16(u);
9312
9312
  for (At = 0, H = mt.length; At < H; At++) q = mt[At], U.writeUInt16(q);
9313
9313
  for (kt = 0, X = p.length; kt < X; kt++) P = p[kt], U.writeUInt16(P);
9314
9314
  return { charMap: n, subtable: U.data, maxGlyphID: Y + 1 };
@@ -9326,14 +9326,14 @@ var c2 = (function() {
9326
9326
  var n, s;
9327
9327
  return e == null && (e = "macroman"), n = Zl.encode(t, e), (s = new $n()).writeUInt16(0), s.writeUInt16(1), n.table = s.data.concat(n.subtable), n;
9328
9328
  }, r;
9329
- })(), h2 = (function() {
9329
+ })(), d2 = (function() {
9330
9330
  function r() {
9331
9331
  return r.__super__.constructor.apply(this, arguments);
9332
9332
  }
9333
9333
  return mn(r, tn), r.prototype.tag = "hhea", r.prototype.parse = function(t) {
9334
9334
  return t.pos = this.offset, this.version = t.readInt(), this.ascender = t.readShort(), this.decender = t.readShort(), this.lineGap = t.readShort(), this.advanceWidthMax = t.readShort(), this.minLeftSideBearing = t.readShort(), this.minRightSideBearing = t.readShort(), this.xMaxExtent = t.readShort(), this.caretSlopeRise = t.readShort(), this.caretSlopeRun = t.readShort(), this.caretOffset = t.readShort(), t.pos += 8, this.metricDataFormat = t.readShort(), this.numberOfMetrics = t.readUInt16();
9335
9335
  }, r;
9336
- })(), d2 = (function() {
9336
+ })(), p2 = (function() {
9337
9337
  function r() {
9338
9338
  return r.__super__.constructor.apply(this, arguments);
9339
9339
  }
@@ -9352,7 +9352,7 @@ var c2 = (function() {
9352
9352
  return n;
9353
9353
  })(), this.version > 1)) return this.xHeight = t.readShort(), this.capHeight = t.readShort(), this.defaultChar = t.readShort(), this.breakChar = t.readShort(), this.maxContext = t.readShort();
9354
9354
  }, r;
9355
- })(), p2 = (function() {
9355
+ })(), g2 = (function() {
9356
9356
  function r() {
9357
9357
  return r.__super__.constructor.apply(this, arguments);
9358
9358
  }
@@ -9371,43 +9371,43 @@ var c2 = (function() {
9371
9371
  return n = t.readUInt16(), this.offsets = t.read(n);
9372
9372
  case 262144:
9373
9373
  return this.map = (function() {
9374
- var c, u, f;
9375
- for (f = [], a = c = 0, u = this.file.maxp.numGlyphs; 0 <= u ? c < u : c > u; a = 0 <= u ? ++c : --c) f.push(t.readUInt32());
9376
- return f;
9374
+ var f, u, c;
9375
+ for (c = [], a = f = 0, u = this.file.maxp.numGlyphs; 0 <= u ? f < u : f > u; a = 0 <= u ? ++f : --f) c.push(t.readUInt32());
9376
+ return c;
9377
9377
  }).call(this);
9378
9378
  }
9379
9379
  }, r;
9380
- })(), g2 = function(r, t) {
9380
+ })(), m2 = function(r, t) {
9381
9381
  this.raw = r, this.length = r.length, this.platformID = t.platformID, this.encodingID = t.encodingID, this.languageID = t.languageID;
9382
- }, m2 = (function() {
9382
+ }, v2 = (function() {
9383
9383
  function r() {
9384
9384
  return r.__super__.constructor.apply(this, arguments);
9385
9385
  }
9386
9386
  return mn(r, tn), r.prototype.tag = "name", r.prototype.parse = function(t) {
9387
- var e, n, s, a, c, u, f, d, g, x, N;
9387
+ var e, n, s, a, f, u, c, d, g, x, N;
9388
9388
  for (t.pos = this.offset, t.readShort(), e = t.readShort(), u = t.readShort(), n = [], a = 0; 0 <= e ? a < e : a > e; a = 0 <= e ? ++a : --a) n.push({ platformID: t.readShort(), encodingID: t.readShort(), languageID: t.readShort(), nameID: t.readShort(), length: t.readShort(), offset: this.offset + u + t.readShort() });
9389
- for (f = {}, a = g = 0, x = n.length; g < x; a = ++g) s = n[a], t.pos = s.offset, d = t.readString(s.length), c = new g2(d, s), f[N = s.nameID] == null && (f[N] = []), f[s.nameID].push(c);
9390
- this.strings = f, this.copyright = f[0], this.fontFamily = f[1], this.fontSubfamily = f[2], this.uniqueSubfamily = f[3], this.fontName = f[4], this.version = f[5];
9389
+ for (c = {}, a = g = 0, x = n.length; g < x; a = ++g) s = n[a], t.pos = s.offset, d = t.readString(s.length), f = new m2(d, s), c[N = s.nameID] == null && (c[N] = []), c[s.nameID].push(f);
9390
+ this.strings = c, this.copyright = c[0], this.fontFamily = c[1], this.fontSubfamily = c[2], this.uniqueSubfamily = c[3], this.fontName = c[4], this.version = c[5];
9391
9391
  try {
9392
- this.postscriptName = f[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g, "");
9392
+ this.postscriptName = c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g, "");
9393
9393
  } catch {
9394
- this.postscriptName = f[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g, "");
9394
+ this.postscriptName = c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g, "");
9395
9395
  }
9396
- return this.trademark = f[7], this.manufacturer = f[8], this.designer = f[9], this.description = f[10], this.vendorUrl = f[11], this.designerUrl = f[12], this.license = f[13], this.licenseUrl = f[14], this.preferredFamily = f[15], this.preferredSubfamily = f[17], this.compatibleFull = f[18], this.sampleText = f[19];
9396
+ return this.trademark = c[7], this.manufacturer = c[8], this.designer = c[9], this.description = c[10], this.vendorUrl = c[11], this.designerUrl = c[12], this.license = c[13], this.licenseUrl = c[14], this.preferredFamily = c[15], this.preferredSubfamily = c[17], this.compatibleFull = c[18], this.sampleText = c[19];
9397
9397
  }, r;
9398
- })(), v2 = (function() {
9398
+ })(), b2 = (function() {
9399
9399
  function r() {
9400
9400
  return r.__super__.constructor.apply(this, arguments);
9401
9401
  }
9402
9402
  return mn(r, tn), r.prototype.tag = "maxp", r.prototype.parse = function(t) {
9403
9403
  return t.pos = this.offset, this.version = t.readInt(), this.numGlyphs = t.readUInt16(), this.maxPoints = t.readUInt16(), this.maxContours = t.readUInt16(), this.maxCompositePoints = t.readUInt16(), this.maxComponentContours = t.readUInt16(), this.maxZones = t.readUInt16(), this.maxTwilightPoints = t.readUInt16(), this.maxStorage = t.readUInt16(), this.maxFunctionDefs = t.readUInt16(), this.maxInstructionDefs = t.readUInt16(), this.maxStackElements = t.readUInt16(), this.maxSizeOfInstructions = t.readUInt16(), this.maxComponentElements = t.readUInt16(), this.maxComponentDepth = t.readUInt16();
9404
9404
  }, r;
9405
- })(), b2 = (function() {
9405
+ })(), w2 = (function() {
9406
9406
  function r() {
9407
9407
  return r.__super__.constructor.apply(this, arguments);
9408
9408
  }
9409
9409
  return mn(r, tn), r.prototype.tag = "hmtx", r.prototype.parse = function(t) {
9410
- var e, n, s, a, c, u, f;
9410
+ var e, n, s, a, f, u, c;
9411
9411
  for (t.pos = this.offset, this.metrics = [], e = 0, u = this.file.hhea.numberOfMetrics; 0 <= u ? e < u : e > u; e = 0 <= u ? ++e : --e) this.metrics.push({ advance: t.readUInt16(), lsb: t.readInt16() });
9412
9412
  for (s = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = (function() {
9413
9413
  var d, g;
@@ -9417,43 +9417,43 @@ var c2 = (function() {
9417
9417
  var d, g, x, N;
9418
9418
  for (N = [], d = 0, g = (x = this.metrics).length; d < g; d++) a = x[d], N.push(a.advance);
9419
9419
  return N;
9420
- }).call(this), n = this.widths[this.widths.length - 1], f = [], e = c = 0; 0 <= s ? c < s : c > s; e = 0 <= s ? ++c : --c) f.push(this.widths.push(n));
9421
- return f;
9420
+ }).call(this), n = this.widths[this.widths.length - 1], c = [], e = f = 0; 0 <= s ? f < s : f > s; e = 0 <= s ? ++f : --f) c.push(this.widths.push(n));
9421
+ return c;
9422
9422
  }, r.prototype.forGlyph = function(t) {
9423
9423
  return t in this.metrics ? this.metrics[t] : { advance: this.metrics[this.metrics.length - 1].advance, lsb: this.leftSideBearings[t - this.metrics.length] };
9424
9424
  }, r;
9425
- })(), zf = [].slice, w2 = (function() {
9425
+ })(), zf = [].slice, y2 = (function() {
9426
9426
  function r() {
9427
9427
  return r.__super__.constructor.apply(this, arguments);
9428
9428
  }
9429
9429
  return mn(r, tn), r.prototype.tag = "glyf", r.prototype.parse = function() {
9430
9430
  return this.cache = {};
9431
9431
  }, r.prototype.glyphFor = function(t) {
9432
- var e, n, s, a, c, u, f, d, g, x;
9433
- return t in this.cache ? this.cache[t] : (a = this.file.loca, e = this.file.contents, n = a.indexOf(t), (s = a.lengthOf(t)) === 0 ? this.cache[t] = null : (e.pos = this.offset + n, c = (u = new $n(e.read(s))).readShort(), d = u.readShort(), x = u.readShort(), f = u.readShort(), g = u.readShort(), this.cache[t] = c === -1 ? new x2(u, d, x, f, g) : new y2(u, c, d, x, f, g), this.cache[t]));
9432
+ var e, n, s, a, f, u, c, d, g, x;
9433
+ return t in this.cache ? this.cache[t] : (a = this.file.loca, e = this.file.contents, n = a.indexOf(t), (s = a.lengthOf(t)) === 0 ? this.cache[t] = null : (e.pos = this.offset + n, f = (u = new $n(e.read(s))).readShort(), d = u.readShort(), x = u.readShort(), c = u.readShort(), g = u.readShort(), this.cache[t] = f === -1 ? new A2(u, d, x, c, g) : new x2(u, f, d, x, c, g), this.cache[t]));
9434
9434
  }, r.prototype.encode = function(t, e, n) {
9435
- var s, a, c, u, f;
9436
- for (c = [], a = [], u = 0, f = e.length; u < f; u++) s = t[e[u]], a.push(c.length), s && (c = c.concat(s.encode(n)));
9437
- return a.push(c.length), { table: c, offsets: a };
9435
+ var s, a, f, u, c;
9436
+ for (f = [], a = [], u = 0, c = e.length; u < c; u++) s = t[e[u]], a.push(f.length), s && (f = f.concat(s.encode(n)));
9437
+ return a.push(f.length), { table: f, offsets: a };
9438
9438
  }, r;
9439
- })(), y2 = (function() {
9440
- function r(t, e, n, s, a, c) {
9441
- this.raw = t, this.numberOfContours = e, this.xMin = n, this.yMin = s, this.xMax = a, this.yMax = c, this.compound = !1;
9439
+ })(), x2 = (function() {
9440
+ function r(t, e, n, s, a, f) {
9441
+ this.raw = t, this.numberOfContours = e, this.xMin = n, this.yMin = s, this.xMax = a, this.yMax = f, this.compound = !1;
9442
9442
  }
9443
9443
  return r.prototype.encode = function() {
9444
9444
  return this.raw.data;
9445
9445
  }, r;
9446
- })(), x2 = (function() {
9446
+ })(), A2 = (function() {
9447
9447
  function r(t, e, n, s, a) {
9448
- var c, u;
9449
- for (this.raw = t, this.xMin = e, this.yMin = n, this.xMax = s, this.yMax = a, this.compound = !0, this.glyphIDs = [], this.glyphOffsets = [], c = this.raw; u = c.readShort(), this.glyphOffsets.push(c.pos), this.glyphIDs.push(c.readUInt16()), 32 & u; ) c.pos += 1 & u ? 4 : 2, 128 & u ? c.pos += 8 : 64 & u ? c.pos += 4 : 8 & u && (c.pos += 2);
9448
+ var f, u;
9449
+ for (this.raw = t, this.xMin = e, this.yMin = n, this.xMax = s, this.yMax = a, this.compound = !0, this.glyphIDs = [], this.glyphOffsets = [], f = this.raw; u = f.readShort(), this.glyphOffsets.push(f.pos), this.glyphIDs.push(f.readUInt16()), 32 & u; ) f.pos += 1 & u ? 4 : 2, 128 & u ? f.pos += 8 : 64 & u ? f.pos += 4 : 8 & u && (f.pos += 2);
9450
9450
  }
9451
9451
  return r.prototype.encode = function() {
9452
9452
  var t, e, n;
9453
9453
  for (e = new $n(zf.call(this.raw.data)), t = 0, n = this.glyphIDs.length; t < n; ++t) e.pos = this.glyphOffsets[t];
9454
9454
  return e.data;
9455
9455
  }, r;
9456
- })(), A2 = (function() {
9456
+ })(), N2 = (function() {
9457
9457
  function r() {
9458
9458
  return r.__super__.constructor.apply(this, arguments);
9459
9459
  }
@@ -9473,15 +9473,15 @@ var c2 = (function() {
9473
9473
  }, r.prototype.lengthOf = function(t) {
9474
9474
  return this.offsets[t + 1] - this.offsets[t];
9475
9475
  }, r.prototype.encode = function(t, e) {
9476
- for (var n = new Uint32Array(this.offsets.length), s = 0, a = 0, c = 0; c < n.length; ++c) if (n[c] = s, a < e.length && e[a] == c) {
9477
- ++a, n[c] = s;
9478
- var u = this.offsets[c], f = this.offsets[c + 1] - u;
9479
- f > 0 && (s += f);
9476
+ for (var n = new Uint32Array(this.offsets.length), s = 0, a = 0, f = 0; f < n.length; ++f) if (n[f] = s, a < e.length && e[a] == f) {
9477
+ ++a, n[f] = s;
9478
+ var u = this.offsets[f], c = this.offsets[f + 1] - u;
9479
+ c > 0 && (s += c);
9480
9480
  }
9481
9481
  for (var d = new Array(4 * n.length), g = 0; g < n.length; ++g) d[4 * g + 3] = 255 & n[g], d[4 * g + 2] = (65280 & n[g]) >> 8, d[4 * g + 1] = (16711680 & n[g]) >> 16, d[4 * g] = (4278190080 & n[g]) >> 24;
9482
9482
  return d;
9483
9483
  }, r;
9484
- })(), N2 = (function() {
9484
+ })(), L2 = (function() {
9485
9485
  function r(t) {
9486
9486
  this.font = t, this.subset = {}, this.unicodes = {}, this.next = 33;
9487
9487
  }
@@ -9490,15 +9490,15 @@ var c2 = (function() {
9490
9490
  for (e in s = this.font.cmap.tables[0].codeMap, t = {}, a = this.subset) n = a[e], t[e] = s[n];
9491
9491
  return t;
9492
9492
  }, r.prototype.glyphsFor = function(t) {
9493
- var e, n, s, a, c, u, f;
9494
- for (s = {}, c = 0, u = t.length; c < u; c++) s[a = t[c]] = this.font.glyf.glyphFor(a);
9493
+ var e, n, s, a, f, u, c;
9494
+ for (s = {}, f = 0, u = t.length; f < u; f++) s[a = t[f]] = this.font.glyf.glyphFor(a);
9495
9495
  for (a in e = [], s) (n = s[a]) != null && n.compound && e.push.apply(e, n.glyphIDs);
9496
- if (e.length > 0) for (a in f = this.glyphsFor(e)) n = f[a], s[a] = n;
9496
+ if (e.length > 0) for (a in c = this.glyphsFor(e)) n = c[a], s[a] = n;
9497
9497
  return s;
9498
9498
  }, r.prototype.encode = function(t, e) {
9499
- var n, s, a, c, u, f, d, g, x, N, p, j, P, O, k;
9500
- for (s in n = Uf.encode(this.generateCmap(), "unicode"), c = this.glyphsFor(t), p = { 0: 0 }, k = n.charMap) p[(f = k[s]).old] = f.new;
9501
- for (j in N = n.maxGlyphID, c) j in p || (p[j] = N++);
9499
+ var n, s, a, f, u, c, d, g, x, N, p, j, P, O, k;
9500
+ for (s in n = Uf.encode(this.generateCmap(), "unicode"), f = this.glyphsFor(t), p = { 0: 0 }, k = n.charMap) p[(c = k[s]).old] = c.new;
9501
+ for (j in N = n.maxGlyphID, f) j in p || (p[j] = N++);
9502
9502
  return g = (function(G) {
9503
9503
  var Y, q;
9504
9504
  for (Y in q = {}, G) q[G[Y]] = Y;
@@ -9509,7 +9509,7 @@ var c2 = (function() {
9509
9509
  var G, Y, q;
9510
9510
  for (q = [], G = 0, Y = x.length; G < Y; G++) u = x[G], q.push(g[u]);
9511
9511
  return q;
9512
- })(), a = this.font.glyf.encode(c, P, p), d = this.font.loca.encode(a.offsets, P), O = { cmap: this.font.cmap.raw(), glyf: a.table, loca: d, hmtx: this.font.hmtx.raw(), hhea: this.font.hhea.raw(), maxp: this.font.maxp.raw(), post: this.font.post.raw(), name: this.font.name.raw(), head: this.font.head.encode(e) }, this.font.os2.exists && (O["OS/2"] = this.font.os2.raw()), this.font.directory.encode(O);
9512
+ })(), a = this.font.glyf.encode(f, P, p), d = this.font.loca.encode(a.offsets, P), O = { cmap: this.font.cmap.raw(), glyf: a.table, loca: d, hmtx: this.font.hmtx.raw(), hhea: this.font.hhea.raw(), maxp: this.font.maxp.raw(), post: this.font.post.raw(), name: this.font.name.raw(), head: this.font.head.encode(e) }, this.font.os2.exists && (O["OS/2"] = this.font.os2.raw()), this.font.directory.encode(O);
9513
9513
  }, r;
9514
9514
  })();
9515
9515
  Rt.API.PDFObject = (function() {
@@ -9519,24 +9519,24 @@ Rt.API.PDFObject = (function() {
9519
9519
  return r = function(e, n) {
9520
9520
  return (Array(n + 1).join("0") + e).slice(-n);
9521
9521
  }, t.convert = function(e) {
9522
- var n, s, a, c;
9522
+ var n, s, a, f;
9523
9523
  if (Array.isArray(e)) return "[" + (function() {
9524
- var u, f, d;
9525
- for (d = [], u = 0, f = e.length; u < f; u++) n = e[u], d.push(t.convert(n));
9524
+ var u, c, d;
9525
+ for (d = [], u = 0, c = e.length; u < c; u++) n = e[u], d.push(t.convert(n));
9526
9526
  return d;
9527
9527
  })().join(" ") + "]";
9528
9528
  if (typeof e == "string") return "/" + e;
9529
9529
  if (e?.isString) return "(" + e + ")";
9530
9530
  if (e instanceof Date) return "(D:" + r(e.getUTCFullYear(), 4) + r(e.getUTCMonth(), 2) + r(e.getUTCDate(), 2) + r(e.getUTCHours(), 2) + r(e.getUTCMinutes(), 2) + r(e.getUTCSeconds(), 2) + "Z)";
9531
9531
  if ({}.toString.call(e) === "[object Object]") {
9532
- for (s in a = ["<<"], e) c = e[s], a.push("/" + s + " " + t.convert(c));
9532
+ for (s in a = ["<<"], e) f = e[s], a.push("/" + s + " " + t.convert(f));
9533
9533
  return a.push(">>"), a.join(`
9534
9534
  `);
9535
9535
  }
9536
9536
  return "" + e;
9537
9537
  }, t;
9538
9538
  })();
9539
- const Hf = 25.4, L2 = Hf / 72, _2 = 203, S2 = 'Arial, "Microsoft YaHei", sans-serif', Uo = 2, Wf = 2, Ql = Wf * 10, k2 = 100, Ea = /* @__PURE__ */ new Map();
9539
+ const Hf = 25.4, _2 = Hf / 72, S2 = 203, k2 = 'Arial, "Microsoft YaHei", sans-serif', Uo = 2, Wf = 2, Ql = Wf * 10, P2 = 100, Ea = /* @__PURE__ */ new Map();
9540
9540
  function Gf(r) {
9541
9541
  const t = Ea.get(r);
9542
9542
  if (t) return t;
@@ -9544,33 +9544,33 @@ function Gf(r) {
9544
9544
  const s = new Image();
9545
9545
  /^https?:/i.test(r) && (s.crossOrigin = "anonymous"), s.decoding = "async", s.onload = () => n(s), s.onerror = () => n(null), s.src = r;
9546
9546
  });
9547
- for (Ea.set(r, e); Ea.size > k2; ) {
9547
+ for (Ea.set(r, e); Ea.size > P2; ) {
9548
9548
  const n = Ea.keys().next().value;
9549
9549
  if (typeof n != "string") break;
9550
9550
  Ea.delete(n);
9551
9551
  }
9552
9552
  return e;
9553
9553
  }
9554
- function iu(r, t, e, n = S2) {
9554
+ function iu(r, t, e, n = k2) {
9555
9555
  r.font = `${e} ${t}px ${n}`;
9556
9556
  }
9557
9557
  function Zn(r, t, e, n, s) {
9558
9558
  r.save(), r.translate(e, n), r.rotate(t * Math.PI / 180), r.translate(-e, -n), s(), r.restore();
9559
9559
  }
9560
- function P2(r, t) {
9560
+ function M2(r, t) {
9561
9561
  return "field" in r && r.field && t ? Bs(Rs(t, r.field)) : "content" in r ? r.content : "";
9562
9562
  }
9563
- function au(r, t, e, n, s, a, c = "contain") {
9564
- const u = Math.max(1, t.width), f = Math.max(1, t.height), d = c === "cover" ? Math.max(s / u, a / f) : Math.min(s / u, a / f), g = u * d, x = f * d;
9563
+ function au(r, t, e, n, s, a, f = "contain") {
9564
+ const u = Math.max(1, t.width), c = Math.max(1, t.height), d = f === "cover" ? Math.max(s / u, a / c) : f === "fitWidth" ? s / u : f === "fitHeight" ? a / c : Math.min(s / u, a / c), g = u * d, x = c * d, N = f === "cover" || f === "fitWidth" || f === "fitHeight" ? e : e + (s - g) / 2, p = f === "cover" || f === "fitWidth" || f === "fitHeight" ? n : n + (a - x) / 2;
9565
9565
  r.drawImage(
9566
9566
  t,
9567
- e + (s - g) / 2,
9568
- n + (a - x) / 2,
9567
+ N,
9568
+ p,
9569
9569
  g,
9570
9570
  x
9571
9571
  );
9572
9572
  }
9573
- function M2(r, t, e, n, s) {
9573
+ function I2(r, t, e, n, s) {
9574
9574
  return r.type === "text" && r.field ? Bs(Rs(t.data, r.field)) : Ec(r, {
9575
9575
  index: e,
9576
9576
  total: n,
@@ -9580,11 +9580,11 @@ function M2(r, t, e, n, s) {
9580
9580
  printTime: s
9581
9581
  });
9582
9582
  }
9583
- function I2(r, t, e, n, s) {
9583
+ function E2(r, t, e, n, s) {
9584
9584
  const a = e.split(/\r?\n/);
9585
9585
  if (a.every((O) => !O.trim())) return;
9586
- const c = t.fontSizePt * L2, u = c * 1.2, f = c + Math.max(0, a.length - 1) * u;
9587
- iu(r, c, t.fontWeight);
9586
+ const f = t.fontSizePt * _2, u = f * 1.2, c = f + Math.max(0, a.length - 1) * u;
9587
+ iu(r, f, t.fontWeight);
9588
9588
  const d = a.map((O) => r.measureText(O || " ").width), g = Math.max(...d), x = t.type === "text" ? t.xMm : Math.max(
9589
9589
  0,
9590
9590
  Math.min(
@@ -9596,14 +9596,14 @@ function I2(r, t, e, n, s) {
9596
9596
  xMm: x,
9597
9597
  yMm: t.yMm,
9598
9598
  widthMm: g,
9599
- heightMm: f,
9599
+ heightMm: c,
9600
9600
  rotation: t.rotation
9601
9601
  },
9602
9602
  n,
9603
9603
  s,
9604
9604
  t.canvasHorizontalAlign,
9605
9605
  t.canvasVerticalAlign
9606
- ), p = t.canvasHorizontalAlign === "center" ? N.xMm + g / 2 : t.canvasHorizontalAlign === "right" ? N.xMm + g : N.xMm, j = N.xMm + g / 2, P = N.yMm + f / 2;
9606
+ ), p = t.canvasHorizontalAlign === "center" ? N.xMm + g / 2 : t.canvasHorizontalAlign === "right" ? N.xMm + g : N.xMm, j = N.xMm + g / 2, P = N.yMm + c / 2;
9607
9607
  Zn(
9608
9608
  r,
9609
9609
  t.rotation,
@@ -9620,20 +9620,20 @@ function I2(r, t, e, n, s) {
9620
9620
  }
9621
9621
  );
9622
9622
  }
9623
- function E2(r, t, e) {
9623
+ function C2(r, t, e) {
9624
9624
  if (!e.trim()) return;
9625
- const n = Rc(t, e), s = t.xMm + t.widthMm / 2, a = t.yMm + t.heightMm / 2;
9625
+ const n = Tc(t, e), s = t.xMm + t.widthMm / 2, a = t.yMm + t.heightMm / 2;
9626
9626
  Zn(r, t.rotation, s, a, () => {
9627
- r.save(), r.beginPath(), r.rect(t.xMm, t.yMm, t.widthMm, t.heightMm), r.clip(), iu(r, n.fontSizeMm, t.fontWeight), r.fillStyle = "#000000", r.textBaseline = "top", r.textAlign = n.textAnchor === "middle" ? "center" : n.textAnchor === "end" ? "right" : "left", n.lines.forEach((c, u) => {
9627
+ r.save(), r.beginPath(), r.rect(t.xMm, t.yMm, t.widthMm, t.heightMm), r.clip(), iu(r, n.fontSizeMm, t.fontWeight), r.fillStyle = "#000000", r.textBaseline = "alphabetic", r.textAlign = n.textAnchor === "middle" ? "center" : n.textAnchor === "end" ? "right" : "left", n.lines.forEach((f, u) => {
9628
9628
  r.fillText(
9629
- c || " ",
9629
+ f || " ",
9630
9630
  t.xMm + n.textXOffsetMm,
9631
- t.yMm + n.textYOffsetMm + u * n.lineHeightMm
9631
+ t.yMm + n.textBaselineOffsetMm + u * n.lineHeightMm
9632
9632
  );
9633
9633
  }), r.restore();
9634
9634
  });
9635
9635
  }
9636
- function C2(r, t) {
9636
+ function F2(r, t) {
9637
9637
  const e = t.xMm + t.widthMm / 2, n = t.yMm + t.heightMm / 2;
9638
9638
  Zn(r, t.rotation, e, n, () => {
9639
9639
  if (r.strokeStyle = "#000000", r.lineWidth = t.strokeWidthMm, r.beginPath(), t.type === "rectangle") {
@@ -9654,13 +9654,13 @@ function C2(r, t) {
9654
9654
  r.stroke();
9655
9655
  });
9656
9656
  }
9657
- function F2(r, t, e) {
9657
+ function j2(r, t, e) {
9658
9658
  if (!e) return;
9659
- const n = Bc.create(e, { errorCorrectionLevel: "M" }), s = n.modules.size + Uo * 2, a = Math.min(t.widthMm, t.heightMm), c = r.getTransform().a, u = Math.max(1, Math.floor(a * c)), d = (u >= s ? Math.floor(u / s) : u / s) / c, g = d * s, x = Math.round(
9660
- (t.xMm + (t.widthMm - g) / 2) * c
9661
- ) / c, N = Math.round(
9662
- (t.yMm + (t.heightMm - g) / 2) * c
9663
- ) / c, p = t.xMm + t.widthMm / 2, j = t.yMm + t.heightMm / 2;
9659
+ const n = Rc.create(e, { errorCorrectionLevel: "M" }), s = n.modules.size + Uo * 2, a = Math.min(t.widthMm, t.heightMm), f = r.getTransform().a, u = Math.max(1, Math.floor(a * f)), d = (u >= s ? Math.floor(u / s) : u / s) / f, g = d * s, x = Math.round(
9660
+ (t.xMm + (t.widthMm - g) / 2) * f
9661
+ ) / f, N = Math.round(
9662
+ (t.yMm + (t.heightMm - g) / 2) * f
9663
+ ) / f, p = t.xMm + t.widthMm / 2, j = t.yMm + t.heightMm / 2;
9664
9664
  Zn(r, t.rotation, p, j, () => {
9665
9665
  r.fillStyle = "#ffffff", r.fillRect(x, N, g, g), r.fillStyle = "#000000";
9666
9666
  for (let P = 0; P < n.modules.size; P += 1)
@@ -9673,11 +9673,11 @@ function F2(r, t, e) {
9673
9673
  );
9674
9674
  });
9675
9675
  }
9676
- function j2(r, t, e) {
9676
+ function O2(r, t, e) {
9677
9677
  if (!e) return;
9678
9678
  const n = document.createElement("canvas");
9679
9679
  try {
9680
- Oc(n, e, {
9680
+ Bc(n, e, {
9681
9681
  format: "CODE128",
9682
9682
  displayValue: !1,
9683
9683
  width: Wf,
@@ -9703,7 +9703,7 @@ function j2(r, t, e) {
9703
9703
  ), r.restore();
9704
9704
  });
9705
9705
  }
9706
- async function O2(r, t, e) {
9706
+ async function B2(r, t, e) {
9707
9707
  if (!e) return;
9708
9708
  const n = await Gf(e);
9709
9709
  if (!n) return;
@@ -9719,90 +9719,97 @@ async function O2(r, t, e) {
9719
9719
  );
9720
9720
  });
9721
9721
  }
9722
- function B2(r) {
9723
- const t = Math.min(10, Math.max(0.01, r.cropRatio / 100));
9724
- return r.cropMode === "scale" ? {
9725
- x: (r.widthMm - r.widthMm * t) / 2,
9726
- y: (r.heightMm - r.heightMm * t) / 2,
9727
- width: r.widthMm * t,
9728
- height: r.heightMm * t
9729
- } : r.cropMode === "cropWidth" ? {
9730
- x: (r.widthMm - r.widthMm * t) / 2,
9731
- y: 0,
9732
- width: r.widthMm * t,
9733
- height: r.heightMm
9734
- } : r.cropMode === "cropHeight" ? {
9722
+ function R2(r, t) {
9723
+ const e = Math.min(10, Math.max(0.01, r.cropRatio / 100));
9724
+ return r.cropMode === "currentSize" ? {
9735
9725
  x: 0,
9736
- y: (r.heightMm - r.heightMm * t) / 2,
9737
- width: r.widthMm,
9738
- height: r.heightMm * t
9726
+ y: 0,
9727
+ width: t.widthMm,
9728
+ height: t.heightMm
9729
+ } : r.cropMode === "scale" ? {
9730
+ x: (r.widthMm - r.widthMm * e) / 2,
9731
+ y: (r.heightMm - r.heightMm * e) / 2,
9732
+ width: r.widthMm * e,
9733
+ height: r.heightMm * e
9739
9734
  } : { x: 0, y: 0, width: r.widthMm, height: r.heightMm };
9740
9735
  }
9741
- async function R2(r, t, e) {
9736
+ function T2(r) {
9737
+ switch (r) {
9738
+ case "currentSize":
9739
+ return "contain";
9740
+ case "cropWidth":
9741
+ return "fitHeight";
9742
+ case "cropHeight":
9743
+ return "fitWidth";
9744
+ default:
9745
+ return "contain";
9746
+ }
9747
+ }
9748
+ async function D2(r, t, e) {
9742
9749
  if (!e) return;
9743
- const n = B2(t), s = await jc(
9750
+ const n = await jc(e, 1), s = R2(t, n), a = await Oc(
9744
9751
  e,
9745
9752
  1,
9746
- n.width,
9747
- n.height
9748
- ), a = t.xMm + t.widthMm / 2, c = t.yMm + t.heightMm / 2;
9749
- Zn(r, t.rotation, a, c, () => {
9753
+ s.width,
9754
+ s.height
9755
+ ), f = t.xMm + t.widthMm / 2, u = t.yMm + t.heightMm / 2;
9756
+ Zn(r, t.rotation, f, u, () => {
9750
9757
  r.save(), r.beginPath(), r.rect(t.xMm, t.yMm, t.widthMm, t.heightMm), r.clip(), r.fillStyle = "#ffffff", r.fillRect(t.xMm, t.yMm, t.widthMm, t.heightMm), au(
9751
9758
  r,
9752
- s,
9753
- t.xMm + n.x,
9754
- t.yMm + n.y,
9755
- n.width,
9756
- n.height,
9757
- t.cropMode === "currentSize" ? "cover" : "contain"
9759
+ a,
9760
+ t.xMm + s.x,
9761
+ t.yMm + s.y,
9762
+ s.width,
9763
+ s.height,
9764
+ T2(t.cropMode)
9758
9765
  ), r.restore();
9759
9766
  });
9760
9767
  }
9761
9768
  function Ls(r) {
9762
9769
  return r.headerAlign === "left" || r.headerAlign === "center" || r.headerAlign === "right" ? r.headerAlign : r.align;
9763
9770
  }
9764
- function T2(r, t, e) {
9771
+ function q2(r, t, e) {
9765
9772
  if (!r.showHeader) return [];
9766
9773
  if (!t.some(
9767
- (c) => String(c.column.groupTitle ?? "").trim()
9774
+ (f) => String(f.column.groupTitle ?? "").trim()
9768
9775
  ))
9769
- return t.map((c) => ({
9770
- title: c.column.title,
9771
- xMm: c.xMm,
9776
+ return t.map((f) => ({
9777
+ title: f.column.title,
9778
+ xMm: f.xMm,
9772
9779
  yMm: 0,
9773
- widthMm: c.widthMm,
9780
+ widthMm: f.widthMm,
9774
9781
  heightMm: e,
9775
- align: Ls(c.column)
9782
+ align: Ls(f.column)
9776
9783
  }));
9777
9784
  const s = [];
9778
9785
  let a = 0;
9779
9786
  for (; a < t.length; ) {
9780
- const c = t[a];
9781
- if (!c) break;
9782
- const u = String(c.column.groupTitle ?? "").trim();
9787
+ const f = t[a];
9788
+ if (!f) break;
9789
+ const u = String(f.column.groupTitle ?? "").trim();
9783
9790
  if (!u) {
9784
9791
  s.push({
9785
- title: c.column.title,
9786
- xMm: c.xMm,
9792
+ title: f.column.title,
9793
+ xMm: f.xMm,
9787
9794
  yMm: 0,
9788
- widthMm: c.widthMm,
9795
+ widthMm: f.widthMm,
9789
9796
  heightMm: e * 2,
9790
- align: Ls(c.column)
9797
+ align: Ls(f.column)
9791
9798
  }), a += 1;
9792
9799
  continue;
9793
9800
  }
9794
- let f = a + 1, d = c.widthMm;
9795
- for (; f < t.length && String(t[f]?.column.groupTitle ?? "").trim() === u; )
9796
- d += t[f]?.widthMm ?? 0, f += 1;
9801
+ let c = a + 1, d = f.widthMm;
9802
+ for (; c < t.length && String(t[c]?.column.groupTitle ?? "").trim() === u; )
9803
+ d += t[c]?.widthMm ?? 0, c += 1;
9797
9804
  s.push({
9798
9805
  title: u,
9799
- xMm: c.xMm,
9806
+ xMm: f.xMm,
9800
9807
  yMm: 0,
9801
9808
  widthMm: d,
9802
9809
  heightMm: e,
9803
- align: Ls(c.column)
9810
+ align: Ls(f.column)
9804
9811
  });
9805
- for (let g = a; g < f; g += 1) {
9812
+ for (let g = a; g < c; g += 1) {
9806
9813
  const x = t[g];
9807
9814
  x && s.push({
9808
9815
  title: x.column.title,
@@ -9813,27 +9820,27 @@ function T2(r, t, e) {
9813
9820
  align: Ls(x.column)
9814
9821
  });
9815
9822
  }
9816
- a = f;
9823
+ a = c;
9817
9824
  }
9818
9825
  return s;
9819
9826
  }
9820
- function D2(r, t, e, n) {
9827
+ function U2(r, t, e, n) {
9821
9828
  return e === "center" ? r + t / 2 : e === "right" ? r + t - n : r + n;
9822
9829
  }
9823
- function q2(r) {
9830
+ function z2(r) {
9824
9831
  return r === "center" ? "center" : r === "right" ? "right" : "left";
9825
9832
  }
9826
- function su(r, t, e, n, s, a, c, u, f) {
9827
- const d = Tc(t), g = e.slice(0, Math.max(1, Math.floor(c / d))), x = Math.max(1, g.length) * d, N = nf(t);
9828
- r.save(), r.beginPath(), r.rect(n, s, a, c), r.clip(), iu(r, qc(t), f, Dc), r.fillStyle = "#000000", r.textAlign = q2(u), r.textBaseline = "middle", g.forEach((p, j) => {
9833
+ function su(r, t, e, n, s, a, f, u, c) {
9834
+ const d = Dc(t), g = e.slice(0, Math.max(1, Math.floor(f / d))), x = Math.max(1, g.length) * d, N = nf(t);
9835
+ r.save(), r.beginPath(), r.rect(n, s, a, f), r.clip(), iu(r, Uc(t), c, qc), r.fillStyle = "#000000", r.textAlign = z2(u), r.textBaseline = "middle", g.forEach((p, j) => {
9829
9836
  r.fillText(
9830
9837
  p || " ",
9831
- D2(n, a, u, N),
9832
- s + (c - x) / 2 + d * (j + 0.5)
9838
+ U2(n, a, u, N),
9839
+ s + (f - x) / 2 + d * (j + 0.5)
9833
9840
  );
9834
9841
  }), r.restore();
9835
9842
  }
9836
- function U2(r) {
9843
+ function H2(r) {
9837
9844
  const t = r.groupHeaderCells?.length > 0 ? r.groupHeaderCells : [{
9838
9845
  id: "fallback-table-group-header-cell",
9839
9846
  content: "",
@@ -9848,19 +9855,19 @@ function U2(r) {
9848
9855
  ), a = n.reduce(
9849
9856
  (N, p) => N + Math.max(1, Number(p.minWidthMm) || 6),
9850
9857
  0
9851
- ), c = s > 0 ? Math.min(1, Math.max(0, (r.widthMm - a) / s)) : 1, u = s * c, f = Math.max(0, r.widthMm - u), d = Math.max(0, f - a), g = a > 0 ? Math.min(1, f / a) : 1;
9858
+ ), f = s > 0 ? Math.min(1, Math.max(0, (r.widthMm - a) / s)) : 1, u = s * f, c = Math.max(0, r.widthMm - u), d = Math.max(0, c - a), g = a > 0 ? Math.min(1, c / a) : 1;
9852
9859
  let x = 0;
9853
9860
  return t.map((N) => {
9854
- const p = N.widthMode === "fixed" ? Math.max(1, Number(N.widthMm) || 16) * c : Math.max(1, Number(N.minWidthMm) || 6) * g + (n.length > 0 ? d / n.length : 0), j = { cell: N, xMm: x, widthMm: p };
9861
+ const p = N.widthMode === "fixed" ? Math.max(1, Number(N.widthMm) || 16) * f : Math.max(1, Number(N.minWidthMm) || 6) * g + (n.length > 0 ? d / n.length : 0), j = { cell: N, xMm: x, widthMm: p };
9855
9862
  return x += p, j;
9856
9863
  });
9857
9864
  }
9858
- function z2(r, t, e) {
9865
+ function W2(r, t, e) {
9859
9866
  return String(r.field ?? "").trim() ? Bs(Rs(t, r.field)) : String(r.content ?? "").replace(/\{index\}/g, String(e + 1));
9860
9867
  }
9861
- async function tf(r, t, e, n, s, a, c) {
9868
+ async function tf(r, t, e, n, s, a, f) {
9862
9869
  let u = a;
9863
- const f = nf(t);
9870
+ const c = nf(t);
9864
9871
  for (let d = 0; d < n.length; d += 1) {
9865
9872
  const g = n[d];
9866
9873
  if (!g) continue;
@@ -9873,20 +9880,20 @@ async function tf(r, t, e, n, s, a, c) {
9873
9880
  P && au(
9874
9881
  r,
9875
9882
  P,
9876
- N.xMm + f,
9877
- u + f,
9878
- Math.max(0, N.widthMm - f * 2),
9879
- Math.max(0, x - f * 2)
9883
+ N.xMm + c,
9884
+ u + c,
9885
+ Math.max(0, N.widthMm - c * 2),
9886
+ Math.max(0, x - c * 2)
9880
9887
  );
9881
9888
  }
9882
9889
  continue;
9883
9890
  }
9884
- const p = Uc(
9891
+ const p = zc(
9885
9892
  t,
9886
9893
  N,
9887
9894
  g,
9888
9895
  d,
9889
- c
9896
+ f
9890
9897
  );
9891
9898
  su(
9892
9899
  r,
@@ -9908,44 +9915,44 @@ function ef(r, t, e, n, s, a) {
9908
9915
  r.strokeStyle = "#000000", r.lineWidth = t.strokeWidthMm, r.beginPath(), e.slice(1).forEach((u) => {
9909
9916
  r.moveTo(u.xMm, s), r.lineTo(u.xMm, a);
9910
9917
  });
9911
- let c = s;
9918
+ let f = s;
9912
9919
  n.slice(0, -1).forEach((u) => {
9913
- c += u, r.moveTo(0, c), r.lineTo(t.widthMm, c);
9920
+ f += u, r.moveTo(0, f), r.lineTo(t.widthMm, f);
9914
9921
  }), r.stroke();
9915
9922
  }
9916
9923
  function rf(r, t, e, n) {
9917
9924
  const s = t.showBorder ?? !0, a = /^#[0-9a-f]{6}$/i.test(t.headerBackground ?? "") ? t.headerBackground : "#f5f7fa";
9918
- e.forEach((c) => {
9919
- r.fillStyle = a, r.fillRect(c.xMm, n + c.yMm, c.widthMm, c.heightMm), s && (r.strokeStyle = "#000000", r.lineWidth = t.strokeWidthMm, r.strokeRect(c.xMm, n + c.yMm, c.widthMm, c.heightMm)), su(
9925
+ e.forEach((f) => {
9926
+ r.fillStyle = a, r.fillRect(f.xMm, n + f.yMm, f.widthMm, f.heightMm), s && (r.strokeStyle = "#000000", r.lineWidth = t.strokeWidthMm, r.strokeRect(f.xMm, n + f.yMm, f.widthMm, f.heightMm)), su(
9920
9927
  r,
9921
9928
  t,
9922
- [c.title],
9923
- c.xMm,
9924
- n + c.yMm,
9925
- c.widthMm,
9926
- c.heightMm,
9927
- c.align,
9929
+ [f.title],
9930
+ f.xMm,
9931
+ n + f.yMm,
9932
+ f.widthMm,
9933
+ f.heightMm,
9934
+ f.align,
9928
9935
  700
9929
9936
  );
9930
9937
  });
9931
9938
  }
9932
- async function H2(r, t, e) {
9933
- const n = t.xMm + t.widthMm / 2, s = t.yMm + t.heightMm / 2, a = document.createElement("canvas"), c = r.getTransform().a;
9934
- a.width = Math.max(1, Math.ceil(t.widthMm * c)), a.height = Math.max(1, Math.ceil(t.heightMm * c));
9939
+ async function G2(r, t, e) {
9940
+ const n = t.xMm + t.widthMm / 2, s = t.yMm + t.heightMm / 2, a = document.createElement("canvas"), f = r.getTransform().a;
9941
+ a.width = Math.max(1, Math.ceil(t.widthMm * f)), a.height = Math.max(1, Math.ceil(t.heightMm * f));
9935
9942
  const u = a.getContext("2d");
9936
9943
  if (!u) throw new Error("Canvas 2D context is unavailable.");
9937
- u.scale(c, c), u.fillStyle = "#ffffff", u.fillRect(0, 0, t.widthMm, t.heightMm);
9938
- const f = Cc(t), d = Math.max(1, Number(t.headerRowHeightMm) || 5), g = T2(t, f, d), x = t.showHeader ? (f.some((N) => String(N.column.groupTitle ?? "").trim()) ? 2 : 1) * d : 0;
9944
+ u.scale(f, f), u.fillStyle = "#ffffff", u.fillRect(0, 0, t.widthMm, t.heightMm);
9945
+ const c = Cc(t), d = Math.max(1, Number(t.headerRowHeightMm) || 5), g = q2(t, c, d), x = t.showHeader ? (c.some((N) => String(N.column.groupTitle ?? "").trim()) ? 2 : 1) * d : 0;
9939
9946
  if (t.mode === "groupedDetail") {
9940
9947
  const N = Math.max(
9941
9948
  1,
9942
9949
  Number(t.groupHeaderRowHeightMm) || 5
9943
- ), p = U2(t);
9950
+ ), p = H2(t);
9944
9951
  let j = 0;
9945
9952
  for (const P of e?.groups ?? []) {
9946
9953
  const O = P.rows.length > 0 ? P.rows : [{}], k = P.rowHeightsMm?.length === O.length ? P.rowHeightsMm : O.map((mt, dt) => zu(
9947
9954
  t,
9948
- f,
9955
+ c,
9949
9956
  mt,
9950
9957
  dt,
9951
9958
  !0
@@ -9959,7 +9966,7 @@ async function H2(r, t, e) {
9959
9966
  )), su(
9960
9967
  u,
9961
9968
  t,
9962
- [z2(mt.cell, P.record, P.index)],
9969
+ [W2(mt.cell, P.record, P.index)],
9963
9970
  mt.xMm,
9964
9971
  j,
9965
9972
  mt.widthMm,
@@ -9974,19 +9981,19 @@ async function H2(r, t, e) {
9974
9981
  await tf(
9975
9982
  u,
9976
9983
  t,
9977
- f,
9984
+ c,
9978
9985
  O,
9979
9986
  k,
9980
9987
  q,
9981
9988
  !0
9982
9989
  );
9983
9990
  const it = q + k.reduce((mt, dt) => mt + dt, 0);
9984
- ef(u, t, f, k, q, it), j = it;
9991
+ ef(u, t, c, k, q, it), j = it;
9985
9992
  }
9986
9993
  } else {
9987
9994
  const N = e?.rows ?? [], p = e?.rowHeightsMm?.length === N.length ? e.rowHeightsMm : N.map((P, O) => zu(
9988
9995
  t,
9989
- f,
9996
+ c,
9990
9997
  P,
9991
9998
  O,
9992
9999
  !0
@@ -9994,7 +10001,7 @@ async function H2(r, t, e) {
9994
10001
  rf(u, t, g, 0), await tf(
9995
10002
  u,
9996
10003
  t,
9997
- f,
10004
+ c,
9998
10005
  N,
9999
10006
  p,
10000
10007
  x,
@@ -10008,7 +10015,7 @@ async function H2(r, t, e) {
10008
10015
  ef(
10009
10016
  u,
10010
10017
  t,
10011
- f,
10018
+ c,
10012
10019
  j,
10013
10020
  x,
10014
10021
  t.heightMm
@@ -10024,55 +10031,55 @@ async function H2(r, t, e) {
10024
10031
  );
10025
10032
  });
10026
10033
  }
10027
- async function W2(r, t, e, n, s, a, c, u) {
10034
+ async function V2(r, t, e, n, s, a, f, u) {
10028
10035
  if (Mc(t)) {
10029
- I2(
10036
+ E2(
10030
10037
  r,
10031
10038
  t,
10032
- M2(t, e, n, s, u),
10039
+ I2(t, e, n, s, u),
10033
10040
  a,
10034
- c
10041
+ f
10035
10042
  );
10036
10043
  return;
10037
10044
  }
10038
- const f = P2(t, e.data);
10045
+ const c = M2(t, e.data);
10039
10046
  switch (t.type) {
10040
10047
  case "textBox":
10041
- E2(r, t, f);
10048
+ C2(r, t, c);
10042
10049
  return;
10043
10050
  case "rectangle":
10044
10051
  case "horizontalLine":
10045
10052
  case "verticalLine":
10046
- C2(r, t);
10053
+ F2(r, t);
10047
10054
  return;
10048
10055
  case "qrcode":
10049
- F2(r, t, f);
10056
+ j2(r, t, c);
10050
10057
  return;
10051
10058
  case "barcode":
10052
- j2(r, t, f);
10059
+ O2(r, t, c);
10053
10060
  return;
10054
10061
  case "image":
10055
- await O2(r, t, f);
10062
+ await B2(r, t, c);
10056
10063
  return;
10057
10064
  case "pdf":
10058
- await R2(r, t, f);
10065
+ await D2(r, t, c);
10059
10066
  return;
10060
10067
  case "table":
10061
- await H2(r, t, e.tableData[t.id]);
10068
+ await G2(r, t, e.tableData[t.id]);
10062
10069
  }
10063
10070
  }
10064
- async function G2(r, t, e, n, s, a = {}) {
10071
+ async function Y2(r, t, e, n, s, a = {}) {
10065
10072
  if (typeof document > "u")
10066
10073
  throw new Error("Canvas rendering is only available in a browser.");
10067
10074
  await document.fonts?.ready;
10068
- const u = Math.max(72, Number(a.dpi) || _2) / Hf, f = document.createElement("canvas");
10069
- f.width = Math.max(1, Math.round(n * u)), f.height = Math.max(1, Math.round(s * u));
10070
- const d = f.getContext("2d");
10075
+ const u = Math.max(72, Number(a.dpi) || S2) / Hf, c = document.createElement("canvas");
10076
+ c.width = Math.max(1, Math.round(n * u)), c.height = Math.max(1, Math.round(s * u));
10077
+ const d = c.getContext("2d");
10071
10078
  if (!d) throw new Error("Canvas 2D context is unavailable.");
10072
10079
  d.scale(u, u), d.fillStyle = "#ffffff", d.fillRect(0, 0, n, s), d.imageSmoothingEnabled = !0, d.imageSmoothingQuality = "high";
10073
10080
  const g = a.printTime ?? /* @__PURE__ */ new Date(), x = [...r.elements].sort((N, p) => N.zIndex - p.zIndex);
10074
10081
  for (const N of x)
10075
- await W2(
10082
+ await V2(
10076
10083
  d,
10077
10084
  N,
10078
10085
  r,
@@ -10082,16 +10089,16 @@ async function G2(r, t, e, n, s, a = {}) {
10082
10089
  s,
10083
10090
  g
10084
10091
  );
10085
- return f;
10092
+ return c;
10086
10093
  }
10087
- const V2 = 203, Y2 = 1, X2 = 2, J2 = 8;
10088
- function K2(r) {
10094
+ const X2 = 203, J2 = 1, K2 = 2, $2 = 8;
10095
+ function Z2(r) {
10089
10096
  return Number.isFinite(r) ? Math.min(
10090
- J2,
10097
+ $2,
10091
10098
  Math.max(1, Math.trunc(r))
10092
- ) : X2;
10099
+ ) : K2;
10093
10100
  }
10094
- function $2(r) {
10101
+ function Q2(r) {
10095
10102
  return new Promise((t, e) => {
10096
10103
  r.toBlob((n) => {
10097
10104
  if (!n) {
@@ -10102,37 +10109,37 @@ function $2(r) {
10102
10109
  (s) => t(new Uint8Array(s)),
10103
10110
  e
10104
10111
  );
10105
- }, "image/jpeg", Y2);
10112
+ }, "image/jpeg", J2);
10106
10113
  });
10107
10114
  }
10108
- async function Z2(r, t, e, n = {}) {
10115
+ async function t5(r, t, e, n = {}) {
10109
10116
  if (r.length === 0)
10110
10117
  throw new Error("No template pages were provided.");
10111
- const s = t > e ? "landscape" : "portrait", a = K2(n.pageConcurrency), c = n.printTime ?? /* @__PURE__ */ new Date(), u = new Rt({
10118
+ const s = t > e ? "landscape" : "portrait", a = Z2(n.pageConcurrency), f = n.printTime ?? /* @__PURE__ */ new Date(), u = new Rt({
10112
10119
  orientation: s,
10113
10120
  unit: "mm",
10114
10121
  format: [t, e],
10115
10122
  compress: !1
10116
10123
  });
10117
- for (let f = 0; f < r.length; f += a) {
10124
+ for (let c = 0; c < r.length; c += a) {
10118
10125
  const d = await Promise.all(
10119
- r.slice(f, f + a).map(async (g, x) => {
10120
- const N = f + x, p = await G2(
10126
+ r.slice(c, c + a).map(async (g, x) => {
10127
+ const N = c + x, p = await Y2(
10121
10128
  g,
10122
10129
  N,
10123
10130
  r.length,
10124
10131
  t,
10125
10132
  e,
10126
10133
  {
10127
- dpi: V2,
10128
- printTime: c
10134
+ dpi: X2,
10135
+ printTime: f
10129
10136
  }
10130
- ), j = await $2(p);
10137
+ ), j = await Q2(p);
10131
10138
  return p.width = 1, p.height = 1, j;
10132
10139
  })
10133
10140
  );
10134
10141
  for (const [g, x] of d.entries())
10135
- f + g > 0 && u.addPage([t, e], s), u.addImage(
10142
+ c + g > 0 && u.addPage([t, e], s), u.addImage(
10136
10143
  x,
10137
10144
  "JPEG",
10138
10145
  0,
@@ -10145,11 +10152,11 @@ async function Z2(r, t, e, n = {}) {
10145
10152
  }
10146
10153
  return u.output("blob");
10147
10154
  }
10148
- const t5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10155
+ const r5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10149
10156
  __proto__: null,
10150
- generateTemplatePdf: Z2
10157
+ generateTemplatePdf: t5
10151
10158
  }, Symbol.toStringTag, { value: "Module" }));
10152
10159
  export {
10153
10160
  xe as _,
10154
- t5 as c
10161
+ r5 as c
10155
10162
  };