school-erp-ui-shared 1.0.2 → 1.0.3

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 { useState as fr, useCallback as Kn, useEffect as Li, useMemo as ah, useRef as Ni, createContext as t2, useContext as r2, Component as n2 } from "react";
1
+ import { useState as fr, useCallback as Kn, useEffect as di, useMemo as ah, useRef as Ei, createContext as t2, useContext as r2, Component as n2 } from "react";
2
2
  import { jsxs as Me, jsx as le, Fragment as qa } from "react/jsx-runtime";
3
3
  import { Loader2 as i2, ChevronRight as sh, Search as Gf, ChevronDown as dl, X as pl, ChevronLeft as a2, PanelLeft as s2, PanelLeftClose as o2, LogOut as Vf, MoreHorizontal as l2, Bell as f2, User as c2, Settings as u2, Clock as Xf, Activity as h2, Info as oh, AlertTriangle as lh, AlertCircle as d2, CheckCircle as p2, Check as g2, Filter as m2, Calendar as v2, Wifi as x2, WifiOff as w2, ChevronsUpDown as y2, ChevronUp as b2 } from "lucide-react";
4
4
  import { useLocation as _2, NavLink as Lf, useNavigate as S2, Navigate as Vc } from "react-router-dom";
@@ -2375,7 +2375,7 @@ for (var sr = 0; sr < 32768; ++sr) {
2375
2375
  var ha = (sr & 43690) >> 1 | (sr & 21845) << 1;
2376
2376
  ha = (ha & 52428) >> 2 | (ha & 13107) << 2, ha = (ha & 61680) >> 4 | (ha & 3855) << 4, Pf[sr] = ((ha & 65280) >> 8 | (ha & 255) << 8) >> 1;
2377
2377
  }
2378
- var Ei = (function(e, r, t) {
2378
+ var Li = (function(e, r, t) {
2379
2379
  for (var n = e.length, i = 0, a = new Dn(r); i < n; ++i)
2380
2380
  e[i] && ++a[e[i] - 1];
2381
2381
  var s = new Dn(r);
@@ -2405,7 +2405,7 @@ for (var sr = 280; sr < 288; ++sr)
2405
2405
  var Ro = new rn(32);
2406
2406
  for (var sr = 0; sr < 32; ++sr)
2407
2407
  Ro[sr] = 5;
2408
- var ip = /* @__PURE__ */ Ei(ya, 9, 0), ap = /* @__PURE__ */ Ei(ya, 9, 1), sp = /* @__PURE__ */ Ei(Ro, 5, 0), op = /* @__PURE__ */ Ei(Ro, 5, 1), cf = function(e) {
2408
+ var ip = /* @__PURE__ */ Li(ya, 9, 0), ap = /* @__PURE__ */ Li(ya, 9, 1), sp = /* @__PURE__ */ Li(Ro, 5, 0), op = /* @__PURE__ */ Li(Ro, 5, 1), cf = function(e) {
2409
2409
  for (var r = e[0], t = 1; t < e.length; ++t)
2410
2410
  e[t] > r && (r = e[t]);
2411
2411
  return r;
@@ -2467,7 +2467,7 @@ var ip = /* @__PURE__ */ Ei(ya, 9, 0), ap = /* @__PURE__ */ Ei(ya, 9, 1), sp = /
2467
2467
  for (var R = new rn(P), q = new rn(19), E = 0; E < L; ++E)
2468
2468
  q[Cf[E]] = ai(e, p + E * 3, 7);
2469
2469
  p += L * 3;
2470
- for (var T = cf(q), W = (1 << T) - 1, V = Ei(q, T, 1), E = 0; E < P; ) {
2470
+ for (var T = cf(q), W = (1 << T) - 1, V = Li(q, T, 1), E = 0; E < P; ) {
2471
2471
  var fe = V[ai(e, p, W)];
2472
2472
  p += fe & 15;
2473
2473
  var A = fe >> 4;
@@ -2480,7 +2480,7 @@ var ip = /* @__PURE__ */ Ei(ya, 9, 0), ap = /* @__PURE__ */ Ei(ya, 9, 1), sp = /
2480
2480
  }
2481
2481
  }
2482
2482
  var se = R.subarray(0, Y), re = R.subarray(Y);
2483
- v = cf(se), y = cf(re), d = Ei(se, v, 1), w = Ei(re, y, 1);
2483
+ v = cf(se), y = cf(re), d = Li(se, v, 1), w = Li(re, y, 1);
2484
2484
  } else
2485
2485
  fi(1);
2486
2486
  else {
@@ -2637,8 +2637,8 @@ var ip = /* @__PURE__ */ Ei(ya, 9, 0), ap = /* @__PURE__ */ Ei(ya, 9, 1), sp = /
2637
2637
  return yh(r, u, e.subarray(f, f + c));
2638
2638
  var Z, K, se, re;
2639
2639
  if (Hi(r, u, 1 + (fe < V)), u += 2, fe < V) {
2640
- Z = Ei(g, d, 0), K = g, se = Ei(v, y, 0), re = v;
2641
- var ge = Ei(q, E, 0);
2640
+ Z = Li(g, d, 0), K = g, se = Li(v, y, 0), re = v;
2641
+ var ge = Li(q, E, 0);
2642
2642
  Hi(r, u, A - 257), Hi(r, u + 5, Y - 1), Hi(r, u + 10, T - 4), u += 14;
2643
2643
  for (var P = 0; P < T; ++P)
2644
2644
  Hi(r, u + 3 * P, q[Cf[P]]);
@@ -3259,7 +3259,7 @@ function ut(e) {
3259
3259
  if (Object.keys(pt).indexOf(m) === -1) throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
3260
3260
  return pt[m] = D;
3261
3261
  };
3262
- var Nt, tt, Cr, Pt, hn, Ut = {}, tr = {}, Mn = [], Ot = {}, gi = {}, ir = {}, An = {}, Jn = null, Zt = 0, xt = [], Rt = new tu(d), ki = e.hotfixes || [], kr = {}, Bn = {}, jn = [], ht = function m(D, ie, he, xe, Ce, We) {
3262
+ var Nt, tt, Cr, Pt, hn, Ut = {}, tr = {}, Mn = [], Ot = {}, mi = {}, ir = {}, An = {}, Jn = null, Zt = 0, xt = [], Rt = new tu(d), ki = e.hotfixes || [], kr = {}, Bn = {}, jn = [], ht = function m(D, ie, he, xe, Ce, We) {
3263
3263
  if (!(this instanceof m)) return new m(D, ie, he, xe, Ce, We);
3264
3264
  isNaN(D) && (D = 1), isNaN(ie) && (ie = 0), isNaN(he) && (he = 0), isNaN(xe) && (xe = 1), isNaN(Ce) && (Ce = 0), isNaN(We) && (We = 0), this._matrix = [D, ie, he, xe, Ce, We];
3265
3265
  };
@@ -3349,9 +3349,9 @@ function ut(e) {
3349
3349
  }, dn = new ht(1, 0, 0, 1, 0, 0);
3350
3350
  d.unitMatrix = d.identityMatrix = dn;
3351
3351
  var Kr = function(m, D) {
3352
- if (!gi[m]) {
3352
+ if (!mi[m]) {
3353
3353
  var ie = (D instanceof ga ? "Sh" : "P") + (Object.keys(Ot).length + 1).toString(10);
3354
- D.id = ie, gi[m] = ie, Ot[ie] = D, Rt.publish("addPattern", D);
3354
+ D.id = ie, mi[m] = ie, Ot[ie] = D, Rt.publish("addPattern", D);
3355
3355
  }
3356
3356
  };
3357
3357
  d.ShadingPattern = ga, d.TilingPattern = Ba, d.addShadingPattern = function(m, D) {
@@ -3525,7 +3525,7 @@ Q`), j(xe, !0), Le({ data: Ce, filters: _e(), objectId: xe }), ae("endobj"), he;
3525
3525
  Rt.publish("putXobjectDict"), ae(">>");
3526
3526
  }, Pi = function() {
3527
3527
  $r.oid = mr(), ae("<<"), ae("/Filter /Standard"), ae("/V " + $r.v), ae("/R " + $r.r), ae("/U <" + $r.toHexString($r.U) + ">"), ae("/O <" + $r.toHexString($r.O) + ">"), ae("/P " + $r.P), ae(">>"), ae("endobj");
3528
- }, mi = function() {
3528
+ }, vi = function() {
3529
3529
  for (var m in ae("/Font <<"), Ut) Ut.hasOwnProperty(m) && (p === !1 || p === !0 && g.hasOwnProperty(m)) && ae("/" + m + " " + Ut[m].objectNumber + " 0 R");
3530
3530
  ae(">>");
3531
3531
  }, Qn = function() {
@@ -3533,7 +3533,7 @@ Q`), j(xe, !0), Le({ data: Ce, filters: _e(), objectId: xe }), ae("endobj"), he;
3533
3533
  for (var m in ae("/Shading <<"), Ot) Ot.hasOwnProperty(m) && Ot[m] instanceof ga && Ot[m].objectNumber >= 0 && ae("/" + m + " " + Ot[m].objectNumber + " 0 R");
3534
3534
  Rt.publish("putShadingPatternDict"), ae(">>");
3535
3535
  }
3536
- }, vi = function(m) {
3536
+ }, xi = function(m) {
3537
3537
  if (Object.keys(Ot).length > 0) {
3538
3538
  for (var D in ae("/Pattern <<"), Ot) Ot.hasOwnProperty(D) && Ot[D] instanceof d.TilingPattern && Ot[D].objectNumber >= 0 && Ot[D].objectNumber < m && ae("/" + D + " " + Ot[D].objectNumber + " 0 R");
3539
3539
  Rt.publish("putTilingPatternDict"), ae(">>");
@@ -3545,7 +3545,7 @@ Q`), j(xe, !0), Le({ data: Ce, filters: _e(), objectId: xe }), ae("endobj"), he;
3545
3545
  Rt.publish("putGStateDict"), ae(">>");
3546
3546
  }
3547
3547
  }, vr = function(m) {
3548
- j(m.resourcesOid, !0), ae("<<"), ae("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"), mi(), Qn(), vi(m.objectOid), Nn(), Zn(), ae(">>"), ae("endobj");
3548
+ j(m.resourcesOid, !0), ae("<<"), ae("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"), vi(), Qn(), xi(m.objectOid), Nn(), Zn(), ae(">>"), ae("endobj");
3549
3549
  }, Jo = function() {
3550
3550
  var m = [];
3551
3551
  He(), Sr(), nt(), zt(m), Rt.publish("putResources"), m.forEach(vr), vr({ resourcesOid: J, objectOid: Number.MAX_SAFE_INTEGER }), Rt.publish("postPutResources");
@@ -3805,7 +3805,7 @@ Q`), j(xe, !0), Le({ data: Ce, filters: _e(), objectId: xe }), ae("endobj"), he;
3805
3805
  }
3806
3806
  if (arguments[3] instanceof ht ? (P("The transform parameter of text() with a Matrix value"), ur = xe) : (at = arguments[4], ct = arguments[5], Vt(It = arguments[3]) === "object" && It !== null || (typeof at == "string" && (ct = at, at = null), typeof It == "string" && (ct = It, It = null), typeof It == "number" && (at = It, It = null), he = { flags: It, angle: at, align: ct })), isNaN(D) || isNaN(ie) || m == null) throw new Error("Invalid arguments passed to jsPDF.text");
3807
3807
  if (m.length === 0) return Ar;
3808
- var Dr = "", ri = !1, En = typeof he.lineHeightFactor == "number" ? he.lineHeightFactor : Ea, yi = Ar.internal.scaleFactor;
3808
+ var Dr = "", ri = !1, En = typeof he.lineHeightFactor == "number" ? he.lineHeightFactor : Ea, bi = Ar.internal.scaleFactor;
3809
3809
  function d0(rr) {
3810
3810
  return rr = rr.split(" ").join(Array(he.TabLen || 9).join(" ")), pn(rr, It);
3811
3811
  }
@@ -3899,7 +3899,7 @@ Q`), j(xe, !0), Le({ data: Ce, filters: _e(), objectId: xe }), ae("endobj"), he;
3899
3899
  var Un, ds = Ve * En, g0 = Ar.internal.pageSize.getWidth(), m0 = Ut[Nt];
3900
3900
  _t = he.charSpace || as, yt = he.maxWidth || 0, It = Object.assign({ autoencode: !0, noBOM: !0 }, he.flags);
3901
3901
  var Qi = [], Ca = function(rr) {
3902
- return Ar.getStringUnitWidth(rr, { font: m0, charSpace: _t, fontSize: Ve, doKerning: !1 }) * Ve / yi;
3902
+ return Ar.getStringUnitWidth(rr, { font: m0, charSpace: _t, fontSize: Ve, doKerning: !1 }) * Ve / bi;
3903
3903
  };
3904
3904
  if (Object.prototype.toString.call(m) === "[object Array]") {
3905
3905
  var mn;
@@ -3907,27 +3907,27 @@ Q`), j(xe, !0), Le({ data: Ce, filters: _e(), objectId: xe }), ae("endobj"), he;
3907
3907
  var sn, ea = 0;
3908
3908
  if (ct === "right") {
3909
3909
  D -= Un[0], m = [], zr = We.length;
3910
- for (var Di = 0; Di < zr; Di++) Di === 0 ? (sn = wi(D), mn = Oi(ie)) : (sn = T(ea - Un[Di]), mn = -ds), m.push([We[Di], sn, mn]), ea = Un[Di];
3910
+ for (var Di = 0; Di < zr; Di++) Di === 0 ? (sn = yi(D), mn = Oi(ie)) : (sn = T(ea - Un[Di]), mn = -ds), m.push([We[Di], sn, mn]), ea = Un[Di];
3911
3911
  } else if (ct === "center") {
3912
3912
  D -= Un[0] / 2, m = [], zr = We.length;
3913
- for (var Ri = 0; Ri < zr; Ri++) Ri === 0 ? (sn = wi(D), mn = Oi(ie)) : (sn = T((ea - Un[Ri]) / 2), mn = -ds), m.push([We[Ri], sn, mn]), ea = Un[Ri];
3913
+ for (var Ri = 0; Ri < zr; Ri++) Ri === 0 ? (sn = yi(D), mn = Oi(ie)) : (sn = T((ea - Un[Ri]) / 2), mn = -ds), m.push([We[Ri], sn, mn]), ea = Un[Ri];
3914
3914
  } else if (ct === "left") {
3915
3915
  m = [], zr = We.length;
3916
3916
  for (var ps = 0; ps < zr; ps++) m.push(We[ps]);
3917
3917
  } else if (ct === "justify" && m0.encoding === "Identity-H") {
3918
3918
  m = [], zr = We.length, yt = yt !== 0 ? yt : g0;
3919
- for (var Mi = 0, xr = 0; xr < zr; xr++) if (mn = xr === 0 ? Oi(ie) : -ds, sn = xr === 0 ? wi(D) : Mi, xr < zr - 1) {
3919
+ for (var Mi = 0, xr = 0; xr < zr; xr++) if (mn = xr === 0 ? Oi(ie) : -ds, sn = xr === 0 ? yi(D) : Mi, xr < zr - 1) {
3920
3920
  var lo = T((yt - Un[xr]) / (We[xr].split(" ").length - 1)), on = We[xr].split(" ");
3921
3921
  m.push([on[0] + " ", sn, mn]), Mi = 0;
3922
3922
  for (var zn = 1; zn < on.length; zn++) {
3923
- var gs = (Ca(on[zn - 1] + " " + on[zn]) - Ca(on[zn])) * yi + lo;
3923
+ var gs = (Ca(on[zn - 1] + " " + on[zn]) - Ca(on[zn])) * bi + lo;
3924
3924
  zn == on.length - 1 ? m.push([on[zn], gs, 0]) : m.push([on[zn] + " ", gs, 0]), Mi -= gs;
3925
3925
  }
3926
3926
  } else m.push([We[xr], sn, mn]);
3927
3927
  m.push(["", Mi, 0]);
3928
3928
  } else {
3929
3929
  if (ct !== "justify") throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
3930
- for (m = [], zr = We.length, yt = yt !== 0 ? yt : g0, xr = 0; xr < zr; xr++) mn = xr === 0 ? Oi(ie) : -ds, sn = xr === 0 ? wi(D) : 0, xr < zr - 1 ? Qi.push(L(T((yt - Un[xr]) / (We[xr].split(" ").length - 1)))) : Qi.push(0), m.push([We[xr], sn, mn]);
3930
+ for (m = [], zr = We.length, yt = yt !== 0 ? yt : g0, xr = 0; xr < zr; xr++) mn = xr === 0 ? Oi(ie) : -ds, sn = xr === 0 ? yi(D) : 0, xr < zr - 1 ? Qi.push(L(T((yt - Un[xr]) / (We[xr].split(" ").length - 1)))) : Qi.push(0), m.push([We[xr], sn, mn]);
3931
3931
  }
3932
3932
  }
3933
3933
  var v0 = typeof he.R2L == "boolean" ? he.R2L : lt;
@@ -3949,7 +3949,7 @@ Q`), j(xe, !0), Le({ data: Ce, filters: _e(), objectId: xe }), ae("endobj"), he;
3949
3949
  ta = (ri ? "<" : "(") + We[Wn][0] + (ri ? ">" : ")"), ka = parseFloat(We[Wn][1]), Pa = parseFloat(We[Wn][2]);
3950
3950
  break;
3951
3951
  case Ia:
3952
- ta = (ri ? "<" : "(") + We[Wn] + (ri ? ">" : ")"), ka = wi(D), Pa = Oi(ie);
3952
+ ta = (ri ? "<" : "(") + We[Wn] + (ri ? ">" : ")"), ka = yi(D), Pa = Oi(ie);
3953
3953
  }
3954
3954
  Qi !== void 0 && Qi[Wn] !== void 0 && (ra = Qi[Wn] + ` Tw
3955
3955
  `), Wn === 0 ? m.push(ra + co(ka, Pa, ur) + ta) : Oa === Ia ? m.push(ra + ta) : Oa === ms && m.push(ra + co(ka, Pa, ur) + ta);
@@ -3973,12 +3973,12 @@ T* `) : m.join(` Tj
3973
3973
  }, d.__private__.discardPath = d.discardPath = function() {
3974
3974
  return ae("n"), this;
3975
3975
  };
3976
- var xi = d.__private__.isValidStyle = function(m) {
3976
+ var wi = d.__private__.isValidStyle = function(m) {
3977
3977
  var D = !1;
3978
3978
  return [void 0, null, "S", "D", "F", "DF", "FD", "f", "f*", "B", "B*", "n"].indexOf(m) !== -1 && (D = !0), D;
3979
3979
  };
3980
3980
  d.__private__.setDefaultPathOperation = d.setDefaultPathOperation = function(m) {
3981
- return xi(m) && (c = m), this;
3981
+ return wi(m) && (c = m), this;
3982
3982
  };
3983
3983
  var a0 = d.__private__.getStyle = d.getStyle = function(m) {
3984
3984
  var D = c;
@@ -4027,7 +4027,7 @@ T* `) : m.join(` Tj
4027
4027
  return Kr(We, Ce), Ce;
4028
4028
  }
4029
4029
  var Ml = function(m, D) {
4030
- var ie = gi[m.key], he = Ot[ie];
4030
+ var ie = mi[m.key], he = Ot[ie];
4031
4031
  if (he instanceof ga) ae("q"), ae(Bl(D)), he.gState && d.setGState(he.gState), ae(m.matrix.toString() + " cm"), ae("/" + ie + " sh"), ae("Q");
4032
4032
  else if (he instanceof Ba) {
4033
4033
  var xe = new ht(1, 0, 0, -1, 0, Zi());
@@ -4057,11 +4057,11 @@ T* `) : m.join(` Tj
4057
4057
  return ae([L(T(m)), L(V(D)), L(T(ie)), L(V(he)), L(T(xe)), L(V(Ce)), "c"].join(" ")), this;
4058
4058
  };
4059
4059
  d.__private__.line = d.line = function(m, D, ie, he, xe) {
4060
- if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || !xi(xe)) throw new Error("Invalid arguments passed to jsPDF.line");
4060
+ if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || !wi(xe)) throw new Error("Invalid arguments passed to jsPDF.line");
4061
4061
  return A === S.COMPAT ? this.lines([[ie - m, he - D]], m, D, [1, 1], xe || "S") : this.lines([[ie - m, he - D]], m, D, [1, 1]).stroke();
4062
4062
  }, d.__private__.lines = d.lines = function(m, D, ie, he, xe, Ce) {
4063
4063
  var We, at, ct, _t, yt, It, lr, ur, Ar, Jr, Dr, ri;
4064
- if (typeof m == "number" && (ri = ie, ie = D, D = m, m = ri), he = he || [1, 1], Ce = Ce || !1, isNaN(D) || isNaN(ie) || !Array.isArray(m) || !Array.isArray(he) || !xi(xe) || typeof Ce != "boolean") throw new Error("Invalid arguments passed to jsPDF.lines");
4064
+ if (typeof m == "number" && (ri = ie, ie = D, D = m, m = ri), he = he || [1, 1], Ce = Ce || !1, isNaN(D) || isNaN(ie) || !Array.isArray(m) || !Array.isArray(he) || !wi(xe) || typeof Ce != "boolean") throw new Error("Invalid arguments passed to jsPDF.lines");
4065
4065
  for (Xs(D, ie), We = he[0], at = he[1], _t = m.length, Jr = D, Dr = ie, ct = 0; ct < _t; ct++) (yt = m[ct]).length === 2 ? (Jr = yt[0] * We + Jr, Dr = yt[1] * at + Dr, Na(Jr, Dr)) : (It = yt[0] * We + Jr, lr = yt[1] * at + Dr, ur = yt[2] * We + Jr, Ar = yt[3] * at + Dr, Jr = yt[4] * We + Jr, Dr = yt[5] * at + Dr, $i(It, lr, ur, Ar, Jr, Dr));
4066
4066
  return Ce && s0(), Vs(xe), this;
4067
4067
  }, d.path = function(m) {
@@ -4083,21 +4083,21 @@ T* `) : m.join(` Tj
4083
4083
  }
4084
4084
  return this;
4085
4085
  }, d.__private__.rect = d.rect = function(m, D, ie, he, xe) {
4086
- if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || !xi(xe)) throw new Error("Invalid arguments passed to jsPDF.rect");
4086
+ if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || !wi(xe)) throw new Error("Invalid arguments passed to jsPDF.rect");
4087
4087
  return A === S.COMPAT && (he = -he), ae([L(T(m)), L(V(D)), L(T(ie)), L(T(he)), "re"].join(" ")), Vs(xe), this;
4088
4088
  }, d.__private__.triangle = d.triangle = function(m, D, ie, he, xe, Ce, We) {
4089
- if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || isNaN(xe) || isNaN(Ce) || !xi(We)) throw new Error("Invalid arguments passed to jsPDF.triangle");
4089
+ if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || isNaN(xe) || isNaN(Ce) || !wi(We)) throw new Error("Invalid arguments passed to jsPDF.triangle");
4090
4090
  return this.lines([[ie - m, he - D], [xe - ie, Ce - he], [m - xe, D - Ce]], m, D, [1, 1], We, !0), this;
4091
4091
  }, d.__private__.roundedRect = d.roundedRect = function(m, D, ie, he, xe, Ce, We) {
4092
- if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || isNaN(xe) || isNaN(Ce) || !xi(We)) throw new Error("Invalid arguments passed to jsPDF.roundedRect");
4092
+ if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || isNaN(xe) || isNaN(Ce) || !wi(We)) throw new Error("Invalid arguments passed to jsPDF.roundedRect");
4093
4093
  var at = 4 / 3 * (Math.SQRT2 - 1);
4094
4094
  return xe = Math.min(xe, 0.5 * ie), Ce = Math.min(Ce, 0.5 * he), this.lines([[ie - 2 * xe, 0], [xe * at, 0, xe, Ce - Ce * at, xe, Ce], [0, he - 2 * Ce], [0, Ce * at, -xe * at, Ce, -xe, Ce], [2 * xe - ie, 0], [-xe * at, 0, -xe, -Ce * at, -xe, -Ce], [0, 2 * Ce - he], [0, -Ce * at, xe * at, -Ce, xe, -Ce]], m + xe, D, [1, 1], We, !0), this;
4095
4095
  }, d.__private__.ellipse = d.ellipse = function(m, D, ie, he, xe) {
4096
- if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || !xi(xe)) throw new Error("Invalid arguments passed to jsPDF.ellipse");
4096
+ if (isNaN(m) || isNaN(D) || isNaN(ie) || isNaN(he) || !wi(xe)) throw new Error("Invalid arguments passed to jsPDF.ellipse");
4097
4097
  var Ce = 4 / 3 * (Math.SQRT2 - 1) * ie, We = 4 / 3 * (Math.SQRT2 - 1) * he;
4098
4098
  return Xs(m + ie, D), $i(m + ie, D - We, m + Ce, D - he, m, D - he), $i(m - Ce, D - he, m - ie, D - We, m - ie, D), $i(m - ie, D + We, m - Ce, D + he, m, D + he), $i(m + Ce, D + he, m + ie, D + We, m + ie, D), Vs(xe), this;
4099
4099
  }, d.__private__.circle = d.circle = function(m, D, ie, he) {
4100
- if (isNaN(m) || isNaN(D) || isNaN(ie) || !xi(he)) throw new Error("Invalid arguments passed to jsPDF.circle");
4100
+ if (isNaN(m) || isNaN(D) || isNaN(ie) || !wi(he)) throw new Error("Invalid arguments passed to jsPDF.circle");
4101
4101
  return this.ellipse(m, D, ie, ie, he);
4102
4102
  }, d.setFont = function(m, D, ie) {
4103
4103
  return ie && (D = Y(D, ie)), Nt = r0(m, D, { disableWarning: !1 }), this;
@@ -4136,12 +4136,12 @@ T* `) : m.join(` Tj
4136
4136
  return Ea;
4137
4137
  };
4138
4138
  f0(e.lineHeight);
4139
- var wi = d.__private__.getHorizontalCoordinate = function(m) {
4139
+ var yi = d.__private__.getHorizontalCoordinate = function(m) {
4140
4140
  return T(m);
4141
4141
  }, Oi = d.__private__.getVerticalCoordinate = function(m) {
4142
4142
  return A === S.ADVANCED ? m : xt[F].mediaBox.topRightY - xt[F].mediaBox.bottomLeftY - T(m);
4143
4143
  }, Ul = d.__private__.getHorizontalCoordinateString = d.getHorizontalCoordinateString = function(m) {
4144
- return L(wi(m));
4144
+ return L(yi(m));
4145
4145
  }, Ji = d.__private__.getVerticalCoordinateString = d.getVerticalCoordinateString = function(m) {
4146
4146
  return L(Oi(m));
4147
4147
  }, ti = e.strokeColor || "0 G";
@@ -4294,7 +4294,7 @@ T* `) : m.join(` Tj
4294
4294
  }, to = d.setPageHeight = function(m, D) {
4295
4295
  xt[m].mediaBox.topRightY = D * tt + xt[m].mediaBox.bottomLeftY;
4296
4296
  };
4297
- return d.internal = { pdfEscape: pn, getStyle: a0, getFont: jl, getFontSize: Qe, getCharSpace: Wl, getTextColor: zl, getLineHeight: l0, getLineHeightFactor: c0, getLineWidth: is, write: Be, getHorizontalCoordinate: wi, getVerticalCoordinate: Oi, getCoordinateString: Ul, getVerticalCoordinateString: Ji, collections: {}, newObject: mr, newAdditionalObject: te, newObjectDeferred: cr, newObjectDeferredBegin: j, getFilters: _e, putStream: Le, events: Rt, scaleFactor: tt, pageSize: { getWidth: function() {
4297
+ return d.internal = { pdfEscape: pn, getStyle: a0, getFont: jl, getFontSize: Qe, getCharSpace: Wl, getTextColor: zl, getLineHeight: l0, getLineHeightFactor: c0, getLineWidth: is, write: Be, getHorizontalCoordinate: yi, getVerticalCoordinate: Oi, getCoordinateString: Ul, getVerticalCoordinateString: Ji, collections: {}, newObject: mr, newAdditionalObject: te, newObjectDeferred: cr, newObjectDeferredBegin: j, getFilters: _e, putStream: Le, events: Rt, scaleFactor: tt, pageSize: { getWidth: function() {
4298
4298
  return Fa(F);
4299
4299
  }, setWidth: function(m) {
4300
4300
  eo(F, m);
@@ -4353,7 +4353,7 @@ var Sn = function(e, r) {
4353
4353
  e.prototype = Object.create(r.prototype), e.prototype.constructor = e;
4354
4354
  }, ru = function(e) {
4355
4355
  return e * Jf;
4356
- }, _i = function(e) {
4356
+ }, Si = function(e) {
4357
4357
  var r = new Lh(), t = ot.internal.getHeight(e) || 0, n = ot.internal.getWidth(e) || 0;
4358
4358
  return r.BBox = [0, 0, Number(bt(n)), Number(bt(t))], r;
4359
4359
  }, _p = dr.__acroform__.setBit = function(e, r) {
@@ -4382,7 +4382,7 @@ var Sn = function(e, r) {
4382
4382
  if (e.V || e.DV) {
4383
4383
  var r = [], t = e._V || e.DV, n = Bf(e, t), i = e.scope.internal.getFont(e.fontName, e.fontStyle).id;
4384
4384
  r.push("/Tx BMC"), r.push("q"), r.push("BT"), r.push(e.scope.__private__.encodeColorString(e.color)), r.push("/" + i + " " + bt(n.fontSize) + " Tf"), r.push("1 0 0 1 0 0 Tm"), r.push(n.text), r.push("ET"), r.push("Q"), r.push("EMC");
4385
- var a = _i(e);
4385
+ var a = Si(e);
4386
4386
  return a.scope = e.scope, a.stream = r.join(`
4387
4387
  `), a;
4388
4388
  }
@@ -4483,7 +4483,7 @@ var Sn = function(e, r) {
4483
4483
  }
4484
4484
  }, Cp = function(e, r) {
4485
4485
  if (r.scope = e, e.internal !== void 0 && (e.internal.acroformPlugin === void 0 || e.internal.acroformPlugin.isInitialized === !1)) {
4486
- if (di.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(Ep)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary");
4486
+ if (pi.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(Ep)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary");
4487
4487
  Jf = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new Fh(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe("postPutResources", (function() {
4488
4488
  (function(t) {
4489
4489
  t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID, t.internal.acroformPlugin.printedOut = !0;
@@ -4554,7 +4554,7 @@ var Sn = function(e, r) {
4554
4554
  return i;
4555
4555
  };
4556
4556
  return r !== void 0 && t && (n = t.internal.getEncryptor(r)), (e = e || "").toString(), e = "(" + Ya(n(e)) + ")";
4557
- }, Ti = function() {
4557
+ }, Ni = function() {
4558
4558
  this._objId = void 0, this._scope = void 0, Object.defineProperty(this, "objId", { get: function() {
4559
4559
  if (this._objId === void 0) {
4560
4560
  if (this.scope === void 0) return;
@@ -4565,23 +4565,23 @@ var Sn = function(e, r) {
4565
4565
  this._objId = e;
4566
4566
  } }), Object.defineProperty(this, "scope", { value: this._scope, writable: !0 });
4567
4567
  };
4568
- Ti.prototype.toString = function() {
4568
+ Ni.prototype.toString = function() {
4569
4569
  return this.objId + " 0 R";
4570
- }, Ti.prototype.putStream = function() {
4570
+ }, Ni.prototype.putStream = function() {
4571
4571
  var e = this.getKeyValueListForStream();
4572
4572
  this.scope.internal.putStream({ data: this.stream, additionalKeyValues: e, objectId: this.objId }), this.scope.internal.out("endobj");
4573
- }, Ti.prototype.getKeyValueListForStream = function() {
4573
+ }, Ni.prototype.getKeyValueListForStream = function() {
4574
4574
  var e = [], r = Object.getOwnPropertyNames(this).filter((function(a) {
4575
4575
  return a != "content" && a != "appearanceStreamContent" && a != "scope" && a != "objId" && a.substring(0, 1) != "_";
4576
4576
  }));
4577
4577
  for (var t in r) if (Object.getOwnPropertyDescriptor(this, r[t]).configurable === !1) {
4578
4578
  var n = r[t], i = this[n];
4579
- i && (Array.isArray(i) ? e.push({ key: n, value: Eh(i, this.objId, this.scope) }) : i instanceof Ti ? (i.scope = this.scope, e.push({ key: n, value: i.objId + " 0 R" })) : typeof i != "function" && e.push({ key: n, value: i }));
4579
+ i && (Array.isArray(i) ? e.push({ key: n, value: Eh(i, this.objId, this.scope) }) : i instanceof Ni ? (i.scope = this.scope, e.push({ key: n, value: i.objId + " 0 R" })) : typeof i != "function" && e.push({ key: n, value: i }));
4580
4580
  }
4581
4581
  return e;
4582
4582
  };
4583
4583
  var Lh = function() {
4584
- Ti.call(this), Object.defineProperty(this, "Type", { value: "/XObject", configurable: !1, writable: !0 }), Object.defineProperty(this, "Subtype", { value: "/Form", configurable: !1, writable: !0 }), Object.defineProperty(this, "FormType", { value: 1, configurable: !1, writable: !0 });
4584
+ Ni.call(this), Object.defineProperty(this, "Type", { value: "/XObject", configurable: !1, writable: !0 }), Object.defineProperty(this, "Subtype", { value: "/Form", configurable: !1, writable: !0 }), Object.defineProperty(this, "FormType", { value: 1, configurable: !1, writable: !0 });
4585
4585
  var e, r = [];
4586
4586
  Object.defineProperty(this, "BBox", { configurable: !1, get: function() {
4587
4587
  return r;
@@ -4593,9 +4593,9 @@ var Lh = function() {
4593
4593
  return e || null;
4594
4594
  } });
4595
4595
  };
4596
- Sn(Lh, Ti);
4596
+ Sn(Lh, Ni);
4597
4597
  var Fh = function() {
4598
- Ti.call(this);
4598
+ Ni.call(this);
4599
4599
  var e, r = [];
4600
4600
  Object.defineProperty(this, "Kids", { enumerable: !1, configurable: !0, get: function() {
4601
4601
  return r.length > 0 ? r : void 0;
@@ -4612,9 +4612,9 @@ var Fh = function() {
4612
4612
  e = t;
4613
4613
  } });
4614
4614
  };
4615
- Sn(Fh, Ti);
4616
- var di = function e() {
4617
- Ti.call(this);
4615
+ Sn(Fh, Ni);
4616
+ var pi = function e() {
4617
+ Ni.call(this);
4618
4618
  var r = 4;
4619
4619
  Object.defineProperty(this, "F", { enumerable: !1, configurable: !1, get: function() {
4620
4620
  return r;
@@ -4812,9 +4812,9 @@ var di = function e() {
4812
4812
  }
4813
4813
  } });
4814
4814
  };
4815
- Sn(di, Ti);
4815
+ Sn(pi, Ni);
4816
4816
  var ja = function() {
4817
- di.call(this), this.FT = "/Ch", this.V = "()", this.fontName = "zapfdingbats";
4817
+ pi.call(this), this.FT = "/Ch", this.V = "()", this.fontName = "zapfdingbats";
4818
4818
  var e = 0;
4819
4819
  Object.defineProperty(this, "TI", { enumerable: !0, configurable: !1, get: function() {
4820
4820
  return e;
@@ -4869,7 +4869,7 @@ var ja = function() {
4869
4869
  t ? this.Ff = br(this.Ff, 27) : this.Ff = _r(this.Ff, 27);
4870
4870
  } }), this.hasAppearanceStream = !1;
4871
4871
  };
4872
- Sn(ja, di);
4872
+ Sn(ja, pi);
4873
4873
  var Ua = function() {
4874
4874
  ja.call(this), this.fontName = "helvetica", this.combo = !1;
4875
4875
  };
@@ -4883,7 +4883,7 @@ var No = function() {
4883
4883
  };
4884
4884
  Sn(No, za);
4885
4885
  var Or = function() {
4886
- di.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", { enumerable: !0, configurable: !0, get: function() {
4886
+ pi.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", { enumerable: !0, configurable: !0, get: function() {
4887
4887
  return !!yr(this.Ff, 15);
4888
4888
  }, set: function(t) {
4889
4889
  t ? this.Ff = br(this.Ff, 15) : this.Ff = _r(this.Ff, 15);
@@ -4927,7 +4927,7 @@ var Or = function() {
4927
4927
  e = "/" + t;
4928
4928
  } });
4929
4929
  };
4930
- Sn(Or, di);
4930
+ Sn(Or, pi);
4931
4931
  var Eo = function() {
4932
4932
  Or.call(this), this.pushButton = !0;
4933
4933
  };
@@ -4944,7 +4944,7 @@ var Wa = function() {
4944
4944
  Sn(Wa, Or);
4945
4945
  var J0 = function() {
4946
4946
  var e, r;
4947
- di.call(this), Object.defineProperty(this, "Parent", { enumerable: !1, configurable: !1, get: function() {
4947
+ pi.call(this), Object.defineProperty(this, "Parent", { enumerable: !1, configurable: !1, get: function() {
4948
4948
  return e;
4949
4949
  }, set: function(i) {
4950
4950
  e = i;
@@ -4979,7 +4979,7 @@ var J0 = function() {
4979
4979
  t = "/" + i;
4980
4980
  } }), this.caption = "l", this.appearanceState = "Off", this._AppearanceType = ot.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName);
4981
4981
  };
4982
- Sn(J0, di), Wa.prototype.setAppearance = function(e) {
4982
+ Sn(J0, pi), Wa.prototype.setAppearance = function(e) {
4983
4983
  if (!("createAppearanceStream" in e) || !("getCA" in e)) throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");
4984
4984
  for (var r in this.Kids) if (this.Kids.hasOwnProperty(r)) {
4985
4985
  var t = this.Kids[r];
@@ -4994,7 +4994,7 @@ var Lo = function() {
4994
4994
  };
4995
4995
  Sn(Lo, Or);
4996
4996
  var wa = function() {
4997
- di.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", { enumerable: !0, configurable: !0, get: function() {
4997
+ pi.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", { enumerable: !0, configurable: !0, get: function() {
4998
4998
  return !!yr(this.Ff, 13);
4999
4999
  }, set: function(r) {
5000
5000
  r ? this.Ff = br(this.Ff, 13) : this.Ff = _r(this.Ff, 13);
@@ -5032,7 +5032,7 @@ var wa = function() {
5032
5032
  return this.V || this.DV;
5033
5033
  } });
5034
5034
  };
5035
- Sn(wa, di);
5035
+ Sn(wa, pi);
5036
5036
  var Fo = function() {
5037
5037
  wa.call(this), Object.defineProperty(this, "password", { enumerable: !0, configurable: !0, get: function() {
5038
5038
  return !!yr(this.Ff, 14);
@@ -5044,19 +5044,19 @@ Sn(Fo, wa);
5044
5044
  var ot = { CheckBox: { createAppearanceStream: function() {
5045
5045
  return { N: { On: ot.CheckBox.YesNormal }, D: { On: ot.CheckBox.YesPushDown, Off: ot.CheckBox.OffPushDown } };
5046
5046
  }, YesPushDown: function(e) {
5047
- var r = _i(e);
5047
+ var r = Si(e);
5048
5048
  r.scope = e.scope;
5049
5049
  var t = [], n = e.scope.internal.getFont(e.fontName, e.fontStyle).id, i = e.scope.__private__.encodeColorString(e.color), a = Bf(e, e.caption);
5050
5050
  return t.push("0.749023 g"), t.push("0 0 " + bt(ot.internal.getWidth(e)) + " " + bt(ot.internal.getHeight(e)) + " re"), t.push("f"), t.push("BMC"), t.push("q"), t.push("0 0 1 rg"), t.push("/" + n + " " + bt(a.fontSize) + " Tf " + i), t.push("BT"), t.push(a.text), t.push("ET"), t.push("Q"), t.push("EMC"), r.stream = t.join(`
5051
5051
  `), r;
5052
5052
  }, YesNormal: function(e) {
5053
- var r = _i(e);
5053
+ var r = Si(e);
5054
5054
  r.scope = e.scope;
5055
5055
  var t = e.scope.internal.getFont(e.fontName, e.fontStyle).id, n = e.scope.__private__.encodeColorString(e.color), i = [], a = ot.internal.getHeight(e), s = ot.internal.getWidth(e), o = Bf(e, e.caption);
5056
5056
  return i.push("1 g"), i.push("0 0 " + bt(s) + " " + bt(a) + " re"), i.push("f"), i.push("q"), i.push("0 0 1 rg"), i.push("0 0 " + bt(s - 1) + " " + bt(a - 1) + " re"), i.push("W"), i.push("n"), i.push("0 g"), i.push("BT"), i.push("/" + t + " " + bt(o.fontSize) + " Tf " + n), i.push(o.text), i.push("ET"), i.push("Q"), r.stream = i.join(`
5057
5057
  `), r;
5058
5058
  }, OffPushDown: function(e) {
5059
- var r = _i(e);
5059
+ var r = Si(e);
5060
5060
  r.scope = e.scope;
5061
5061
  var t = [];
5062
5062
  return t.push("0.749023 g"), t.push("0 0 " + bt(ot.internal.getWidth(e)) + " " + bt(ot.internal.getHeight(e)) + " re"), t.push("f"), r.stream = t.join(`
@@ -5067,7 +5067,7 @@ var ot = { CheckBox: { createAppearanceStream: function() {
5067
5067
  }, getCA: function() {
5068
5068
  return "l";
5069
5069
  }, YesNormal: function(e) {
5070
- var r = _i(e);
5070
+ var r = Si(e);
5071
5071
  r.scope = e.scope;
5072
5072
  var t = [], n = ot.internal.getWidth(e) <= ot.internal.getHeight(e) ? ot.internal.getWidth(e) / 4 : ot.internal.getHeight(e) / 4;
5073
5073
  n = Number((0.9 * n).toFixed(5));
@@ -5075,7 +5075,7 @@ var ot = { CheckBox: { createAppearanceStream: function() {
5075
5075
  return t.push("q"), t.push("1 0 0 1 " + da(ot.internal.getWidth(e) / 2) + " " + da(ot.internal.getHeight(e) / 2) + " cm"), t.push(n + " 0 m"), t.push(n + " " + a + " " + a + " " + n + " 0 " + n + " c"), t.push("-" + a + " " + n + " -" + n + " " + a + " -" + n + " 0 c"), t.push("-" + n + " -" + a + " -" + a + " -" + n + " 0 -" + n + " c"), t.push(a + " -" + n + " " + n + " -" + a + " " + n + " 0 c"), t.push("f"), t.push("Q"), r.stream = t.join(`
5076
5076
  `), r;
5077
5077
  }, YesPushDown: function(e) {
5078
- var r = _i(e);
5078
+ var r = Si(e);
5079
5079
  r.scope = e.scope;
5080
5080
  var t = [], n = ot.internal.getWidth(e) <= ot.internal.getHeight(e) ? ot.internal.getWidth(e) / 4 : ot.internal.getHeight(e) / 4;
5081
5081
  n = Number((0.9 * n).toFixed(5));
@@ -5083,7 +5083,7 @@ var ot = { CheckBox: { createAppearanceStream: function() {
5083
5083
  return t.push("0.749023 g"), t.push("q"), t.push("1 0 0 1 " + da(ot.internal.getWidth(e) / 2) + " " + da(ot.internal.getHeight(e) / 2) + " cm"), t.push(i + " 0 m"), t.push(i + " " + a + " " + a + " " + i + " 0 " + i + " c"), t.push("-" + a + " " + i + " -" + i + " " + a + " -" + i + " 0 c"), t.push("-" + i + " -" + a + " -" + a + " -" + i + " 0 -" + i + " c"), t.push(a + " -" + i + " " + i + " -" + a + " " + i + " 0 c"), t.push("f"), t.push("Q"), t.push("0 g"), t.push("q"), t.push("1 0 0 1 " + da(ot.internal.getWidth(e) / 2) + " " + da(ot.internal.getHeight(e) / 2) + " cm"), t.push(n + " 0 m"), t.push(n + " " + s + " " + s + " " + n + " 0 " + n + " c"), t.push("-" + s + " " + n + " -" + n + " " + s + " -" + n + " 0 c"), t.push("-" + n + " -" + s + " -" + s + " -" + n + " 0 -" + n + " c"), t.push(s + " -" + n + " " + n + " -" + s + " " + n + " 0 c"), t.push("f"), t.push("Q"), r.stream = t.join(`
5084
5084
  `), r;
5085
5085
  }, OffPushDown: function(e) {
5086
- var r = _i(e);
5086
+ var r = Si(e);
5087
5087
  r.scope = e.scope;
5088
5088
  var t = [], n = ot.internal.getWidth(e) <= ot.internal.getHeight(e) ? ot.internal.getWidth(e) / 4 : ot.internal.getHeight(e) / 4;
5089
5089
  n = Number((0.9 * n).toFixed(5));
@@ -5096,19 +5096,19 @@ var ot = { CheckBox: { createAppearanceStream: function() {
5096
5096
  }, getCA: function() {
5097
5097
  return "8";
5098
5098
  }, YesNormal: function(e) {
5099
- var r = _i(e);
5099
+ var r = Si(e);
5100
5100
  r.scope = e.scope;
5101
5101
  var t = [], n = ot.internal.calculateCross(e);
5102
5102
  return t.push("q"), t.push("1 1 " + bt(ot.internal.getWidth(e) - 2) + " " + bt(ot.internal.getHeight(e) - 2) + " re"), t.push("W"), t.push("n"), t.push(bt(n.x1.x) + " " + bt(n.x1.y) + " m"), t.push(bt(n.x2.x) + " " + bt(n.x2.y) + " l"), t.push(bt(n.x4.x) + " " + bt(n.x4.y) + " m"), t.push(bt(n.x3.x) + " " + bt(n.x3.y) + " l"), t.push("s"), t.push("Q"), r.stream = t.join(`
5103
5103
  `), r;
5104
5104
  }, YesPushDown: function(e) {
5105
- var r = _i(e);
5105
+ var r = Si(e);
5106
5106
  r.scope = e.scope;
5107
5107
  var t = ot.internal.calculateCross(e), n = [];
5108
5108
  return n.push("0.749023 g"), n.push("0 0 " + bt(ot.internal.getWidth(e)) + " " + bt(ot.internal.getHeight(e)) + " re"), n.push("f"), n.push("q"), n.push("1 1 " + bt(ot.internal.getWidth(e) - 2) + " " + bt(ot.internal.getHeight(e) - 2) + " re"), n.push("W"), n.push("n"), n.push(bt(t.x1.x) + " " + bt(t.x1.y) + " m"), n.push(bt(t.x2.x) + " " + bt(t.x2.y) + " l"), n.push(bt(t.x4.x) + " " + bt(t.x4.y) + " m"), n.push(bt(t.x3.x) + " " + bt(t.x3.y) + " l"), n.push("s"), n.push("Q"), r.stream = n.join(`
5109
5109
  `), r;
5110
5110
  }, OffPushDown: function(e) {
5111
- var r = _i(e);
5111
+ var r = Si(e);
5112
5112
  r.scope = e.scope;
5113
5113
  var t = [];
5114
5114
  return t.push("0.749023 g"), t.push("0 0 " + bt(ot.internal.getWidth(e)) + " " + bt(ot.internal.getHeight(e)) + " re"), t.push("f"), r.stream = t.join(`
@@ -5128,7 +5128,7 @@ ot.internal = { Bezier_C: 0.551915024494, calculateCross: function(e) {
5128
5128
  return Vt(e) === "object" && (r = ru(e.Rect[3])), r;
5129
5129
  };
5130
5130
  var kp = dr.addField = function(e) {
5131
- if (Cp(this, e), !(e instanceof di)) throw new Error("Invalid argument passed to jsPDF.addField.");
5131
+ if (Cp(this, e), !(e instanceof pi)) throw new Error("Invalid argument passed to jsPDF.addField.");
5132
5132
  var r;
5133
5133
  return (r = e).scope.internal.acroformPlugin.printedOut && (r.scope.internal.acroformPlugin.printedOut = !1, r.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), r.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(r), e.page = e.scope.internal.getCurrentPageInfo().pageNumber, this;
5134
5134
  };
@@ -7260,11 +7260,11 @@ function xf(e) {
7260
7260
  var Je, Qe, lt, ft, vt, St, Ft, Ct, pt, Nt, tt = 0;
7261
7261
  for (pt = 0; pt < 8; ++pt) {
7262
7262
  Je = ze[tt], Qe = ze[tt + 1], lt = ze[tt + 2], ft = ze[tt + 3], vt = ze[tt + 4], St = ze[tt + 5], Ft = ze[tt + 6];
7263
- var Cr = Je + (Ct = ze[tt + 7]), Pt = Je - Ct, hn = Qe + Ft, Ut = Qe - Ft, tr = lt + St, Mn = lt - St, Ot = ft + vt, gi = ft - vt, ir = Cr + Ot, An = Cr - Ot, Jn = hn + tr, Zt = hn - tr;
7263
+ var Cr = Je + (Ct = ze[tt + 7]), Pt = Je - Ct, hn = Qe + Ft, Ut = Qe - Ft, tr = lt + St, Mn = lt - St, Ot = ft + vt, mi = ft - vt, ir = Cr + Ot, An = Cr - Ot, Jn = hn + tr, Zt = hn - tr;
7264
7264
  ze[tt] = ir + Jn, ze[tt + 4] = ir - Jn;
7265
7265
  var xt = 0.707106781 * (Zt + An);
7266
7266
  ze[tt + 2] = An + xt, ze[tt + 6] = An - xt;
7267
- var Rt = 0.382683433 * ((ir = gi + Mn) - (Zt = Ut + Pt)), ki = 0.5411961 * ir + Rt, kr = 1.306562965 * Zt + Rt, Bn = 0.707106781 * (Jn = Mn + Ut), jn = Pt + Bn, ht = Pt - Bn;
7267
+ var Rt = 0.382683433 * ((ir = mi + Mn) - (Zt = Ut + Pt)), ki = 0.5411961 * ir + Rt, kr = 1.306562965 * Zt + Rt, Bn = 0.707106781 * (Jn = Mn + Ut), jn = Pt + Bn, ht = Pt - Bn;
7268
7268
  ze[tt + 5] = ht + ki, ze[tt + 3] = ht - ki, ze[tt + 1] = jn + kr, ze[tt + 7] = jn - kr, tt += 8;
7269
7269
  }
7270
7270
  for (tt = 0, pt = 0; pt < 8; ++pt) {
@@ -7636,14 +7636,14 @@ function du(e) {
7636
7636
  function Ot(l) {
7637
7637
  return l == Xl || l == Yl || l == A0 || l == Kl;
7638
7638
  }
7639
- function gi() {
7639
+ function mi() {
7640
7640
  this.eb = [], this.size = this.A = this.fb = 0;
7641
7641
  }
7642
7642
  function ir() {
7643
7643
  this.y = [], this.f = [], this.ea = [], this.F = [], this.Tc = this.Ed = this.Cd = this.Fd = this.lb = this.Db = this.Ab = this.fa = this.J = this.W = this.N = this.O = 0;
7644
7644
  }
7645
7645
  function An() {
7646
- this.Rd = this.height = this.width = this.S = 0, this.f = {}, this.f.RGBA = new gi(), this.f.kb = new ir(), this.sd = null;
7646
+ this.Rd = this.height = this.width = this.S = 0, this.f = {}, this.f.RGBA = new mi(), this.f.kb = new ir(), this.sd = null;
7647
7647
  }
7648
7648
  function Jn() {
7649
7649
  this.width = [0], this.height = [0], this.Pd = [0], this.Qd = [0], this.format = [0];
@@ -7941,7 +7941,7 @@ function du(e) {
7941
7941
  }
7942
7942
  var Qt;
7943
7943
  if (Qt = B) t: {
7944
- var $t, At, Tr, vn = N, Nr = U, xn = z, Ht = Se, Fn = x, Cn = vn.m, Rr = vn.s, Wr = [null], ln = 1, Vn = 0, bi = Sd[Ht];
7944
+ var $t, At, Tr, vn = N, Nr = U, xn = z, Ht = Se, Fn = x, Cn = vn.m, Rr = vn.s, Wr = [null], ln = 1, Vn = 0, _i = Sd[Ht];
7945
7945
  r: for (; ; ) {
7946
7946
  if (Fn && ge(Cn, 1)) {
7947
7947
  var Mr = ge(Cn, 3) + 2, Ui = it(Nr, Mr), Da = it(xn, Mr), xs = Ui * Da;
@@ -7956,7 +7956,7 @@ function du(e) {
7956
7956
  var hr = bc[At];
7957
7957
  !At && 0 < Ht && (hr += 1 << Ht), Vn < hr && (Vn = hr);
7958
7958
  }
7959
- var Ql = s(ln * bi, T), kc = ln, Pc = s(kc, V);
7959
+ var Ql = s(ln * _i, T), kc = ln, Pc = s(kc, V);
7960
7960
  if (Pc == null) var L0 = null;
7961
7961
  else r(65536 >= kc), L0 = Pc;
7962
7962
  var go = a(Vn);
@@ -8100,15 +8100,15 @@ function du(e) {
8100
8100
  this.ad = a(384), this.Za = 0, this.Ob = a(16), this.$b = this.Ad = this.ia = this.Gc = this.Hc = this.Dd = 0;
8101
8101
  }
8102
8102
  function Pi() {
8103
- this.uc = this.M = this.Nb = 0, this.wa = Array(new zt()), this.Y = 0, this.ya = Array(new Zn()), this.aa = 0, this.l = new vi();
8103
+ this.uc = this.M = this.Nb = 0, this.wa = Array(new zt()), this.Y = 0, this.ya = Array(new Zn()), this.aa = 0, this.l = new xi();
8104
8104
  }
8105
- function mi() {
8105
+ function vi() {
8106
8106
  this.y = a(16), this.f = a(8), this.ea = a(8);
8107
8107
  }
8108
8108
  function Qn() {
8109
- this.cb = this.a = 0, this.sc = "", this.m = new ye(), this.Od = new He(), this.Kc = new Xe(), this.ed = new mt(), this.Qa = new nt(), this.Ic = this.$c = this.Aa = 0, this.D = new Pi(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = s(8, ye), this.ia = 0, this.pb = s(4, Sr), this.Pa = new rt(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new mi()), this.Hd = 0, this.rb = Array(new Kt()), this.sb = 0, this.wa = Array(new zt()), 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 Zn()), this.L = this.aa = 0, this.gd = o([4, 2], zt), 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;
8109
+ this.cb = this.a = 0, this.sc = "", this.m = new ye(), this.Od = new He(), this.Kc = new Xe(), this.ed = new mt(), this.Qa = new nt(), this.Ic = this.$c = this.Aa = 0, this.D = new Pi(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = s(8, ye), this.ia = 0, this.pb = s(4, Sr), this.Pa = new rt(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new vi()), this.Hd = 0, this.rb = Array(new Kt()), this.sb = 0, this.wa = Array(new zt()), 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 Zn()), this.L = this.aa = 0, this.gd = o([4, 2], zt), 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;
8110
8110
  }
8111
- function vi() {
8111
+ function xi() {
8112
8112
  this.T = this.U = this.ka = this.height = this.width = 0, this.y = [], this.f = [], this.ea = [], this.Rc = this.fa = this.W = this.N = this.O = 0, this.ma = "void", this.put = "VP8IoPutHook", this.ac = "VP8IoSetupHook", this.bc = "VP8IoTeardownHook", this.ha = this.Kb = 0, this.data = [], this.hb = this.ib = this.da = this.o = this.j = this.va = this.v = this.Da = this.ob = this.w = 0, this.F = [], this.J = 0;
8113
8113
  }
8114
8114
  function Nn() {
@@ -8250,7 +8250,7 @@ function du(e) {
8250
8250
  }
8251
8251
  l.Vb = U;
8252
8252
  }
8253
- U = l.Ec, z = l.Fc, l.Ac = U, l.Bc = z, z += N, l.Gd = s(Q, mi), l.Hd = 0, l.rb = s(de + 1, Kt), l.sb = 1, l.wa = Se ? s(Se, zt) : null, l.Y = 0, l.D.Nb = 0, l.D.wa = l.wa, l.D.Y = l.Y, 0 < l.Aa && (l.D.Y += G), r(!0), l.oc = U, l.pc = z, z += 832, l.ya = s(Ae, Zn), l.aa = 0, l.D.ya = l.ya, l.D.aa = l.aa, l.Aa == 2 && (l.D.aa += G), l.R = 16 * G, l.B = 8 * G, G = (Q = E0[l.L]) * l.R, Q = Q / 2 * l.B, l.sa = U, l.ta = z + G, l.qa = l.sa, l.ra = l.ta + 16 * x * l.R + Q, l.Ha = l.qa, l.Ia = l.ra + 8 * x * l.B + Q, l.$c = 0, z += O, l.mb = B ? U : null, l.nb = B ? z : null, r(z + B <= l.Fc + l.Vb), Hs(l), i(l.Ac, l.Bc, 0, N), x = 1;
8253
+ U = l.Ec, z = l.Fc, l.Ac = U, l.Bc = z, z += N, l.Gd = s(Q, vi), l.Hd = 0, l.rb = s(de + 1, Kt), l.sb = 1, l.wa = Se ? s(Se, zt) : null, l.Y = 0, l.D.Nb = 0, l.D.wa = l.wa, l.D.Y = l.Y, 0 < l.Aa && (l.D.Y += G), r(!0), l.oc = U, l.pc = z, z += 832, l.ya = s(Ae, Zn), l.aa = 0, l.D.ya = l.ya, l.D.aa = l.aa, l.Aa == 2 && (l.D.aa += G), l.R = 16 * G, l.B = 8 * G, G = (Q = E0[l.L]) * l.R, Q = Q / 2 * l.B, l.sa = U, l.ta = z + G, l.qa = l.sa, l.ra = l.ta + 16 * x * l.R + Q, l.Ha = l.qa, l.Ia = l.ra + 8 * x * l.B + Q, l.$c = 0, z += O, l.mb = B ? U : null, l.nb = B ? z : null, r(z + B <= l.Fc + l.Vb), Hs(l), i(l.Ac, l.Bc, 0, N), x = 1;
8254
8254
  }
8255
8255
  }
8256
8256
  if (x) {
@@ -8261,7 +8261,7 @@ function du(e) {
8261
8261
  for (x = -255; 510 >= x; ++x) vs[255 + x] = 0 > x ? 0 : 255 < x ? 255 : x;
8262
8262
  x0 = 1;
8263
8263
  }
8264
- ps = Fl, Mi = El, lo = t0, on = Ll, zn = r0, xr = e0, gs = Ks, v0 = La, fo = Wl, ka = $s, Pa = zl, ta = as, Ia = Js, ms = u0, Oa = c0, ra = wi, co = Oi, Wn = Ul, ni[0] = xi, ni[1] = Cl, ni[2] = Ol, ni[3] = Dl, ni[4] = a0, ni[5] = ns, ni[6] = s0, ni[7] = Vs, ni[8] = Ml, ni[9] = Rl, na[0] = n0, na[1] = Pl, na[2] = Ii, na[3] = ts, na[4] = $r, na[5] = Il, na[6] = i0, ji[0] = $i, ji[1] = kl, ji[2] = Bl, ji[3] = Xs, ji[4] = Ea, ji[5] = jl, ji[6] = Ys, x = 1;
8264
+ ps = Fl, Mi = El, lo = t0, on = Ll, zn = r0, xr = e0, gs = Ks, v0 = La, fo = Wl, ka = $s, Pa = zl, ta = as, Ia = Js, ms = u0, Oa = c0, ra = yi, co = Oi, Wn = Ul, ni[0] = wi, ni[1] = Cl, ni[2] = Ol, ni[3] = Dl, ni[4] = a0, ni[5] = ns, ni[6] = s0, ni[7] = Vs, ni[8] = Ml, ni[9] = Rl, na[0] = n0, na[1] = Pl, na[2] = Ii, na[3] = ts, na[4] = $r, na[5] = Il, na[6] = i0, ji[0] = $i, ji[1] = kl, ji[2] = Bl, ji[3] = Xs, ji[4] = Ea, ji[5] = jl, ji[6] = Ys, x = 1;
8265
8265
  } else x = 0;
8266
8266
  }
8267
8267
  x && (x = (function(ve, De) {
@@ -8321,11 +8321,11 @@ function du(e) {
8321
8321
  Tr = At, vn = Cn;
8322
8322
  var Rr = (Wr = (hr = Nr).D).Nb;
8323
8323
  $t = hr.R;
8324
- var Wr = Wr.wa[Wr.Y + Tr], ln = hr.sa, Vn = hr.ta + 16 * Rr * $t + 16 * Tr, bi = Wr.dd, Mr = Wr.tc;
8324
+ var Wr = Wr.wa[Wr.Y + Tr], ln = hr.sa, Vn = hr.ta + 16 * Rr * $t + 16 * Tr, _i = Wr.dd, Mr = Wr.tc;
8325
8325
  if (Mr != 0) if (r(3 <= Mr), hr.L == 1) 0 < Tr && ra(ln, Vn, $t, Mr + 4), Wr.La && Wn(ln, Vn, $t, Mr), 0 < vn && Oa(ln, Vn, $t, Mr + 4), Wr.La && co(ln, Vn, $t, Mr);
8326
8326
  else {
8327
8327
  var Ui = hr.B, Da = hr.qa, xs = hr.ra + 8 * Rr * Ui + 8 * Tr, aa = hr.Ha, hr = hr.Ia + 8 * Rr * Ui + 8 * Tr;
8328
- Rr = Wr.ld, 0 < Tr && (v0(ln, Vn, $t, Mr + 4, bi, Rr), ka(Da, xs, aa, hr, Ui, Mr + 4, bi, Rr)), Wr.La && (ta(ln, Vn, $t, Mr, bi, Rr), ms(Da, xs, aa, hr, Ui, Mr, bi, Rr)), 0 < vn && (gs(ln, Vn, $t, Mr + 4, bi, Rr), fo(Da, xs, aa, hr, Ui, Mr + 4, bi, Rr)), Wr.La && (Pa(ln, Vn, $t, Mr, bi, Rr), Ia(Da, xs, aa, hr, Ui, Mr, bi, Rr));
8328
+ Rr = Wr.ld, 0 < Tr && (v0(ln, Vn, $t, Mr + 4, _i, Rr), ka(Da, xs, aa, hr, Ui, Mr + 4, _i, Rr)), Wr.La && (ta(ln, Vn, $t, Mr, _i, Rr), ms(Da, xs, aa, hr, Ui, Mr, _i, Rr)), 0 < vn && (gs(ln, Vn, $t, Mr + 4, _i, Rr), fo(Da, xs, aa, hr, Ui, Mr + 4, _i, Rr)), Wr.La && (Pa(ln, Vn, $t, Mr, _i, Rr), Ia(Da, xs, aa, hr, Ui, Mr, _i, Rr));
8329
8329
  }
8330
8330
  }
8331
8331
  if (pe.ia && alert("todo:DitherRow"), me.put != null) {
@@ -8444,7 +8444,7 @@ function du(e) {
8444
8444
  var x = l[h - 1], N = l[h - 1 + 32], O = l[h - 1 + 64], B = l[h - 1 + 96];
8445
8445
  we(l, h + 0, 16843009 * wt(l[h - 1 - 32], x, N)), we(l, h + 32, 16843009 * wt(x, N, O)), we(l, h + 64, 16843009 * wt(N, O, B)), we(l, h + 96, 16843009 * wt(O, B, B));
8446
8446
  }
8447
- function xi(l, h) {
8447
+ function wi(l, h) {
8448
8448
  var x, N = 4;
8449
8449
  for (x = 0; 4 > x; ++x) N += l[h + x - 32] + l[h - 1 + 32 * x];
8450
8450
  for (N >>= 3, x = 0; 4 > x; ++x) i(l, h + 32 * x, N, 4);
@@ -8522,7 +8522,7 @@ function du(e) {
8522
8522
  var O = 2 * N + 1;
8523
8523
  for (N = 0; 16 > N; ++N) l0(l, h + N, x, O) && is(l, h + N, x);
8524
8524
  }
8525
- function wi(l, h, x, N) {
8525
+ function yi(l, h, x, N) {
8526
8526
  var O = 2 * N + 1;
8527
8527
  for (N = 0; 16 > N; ++N) l0(l, h + N * x, 1, O) && is(l, h + N * x, 1);
8528
8528
  }
@@ -8532,7 +8532,7 @@ function du(e) {
8532
8532
  }
8533
8533
  function Ul(l, h, x, N) {
8534
8534
  var O;
8535
- for (O = 3; 0 < O; --O) wi(l, h += 4, x, N);
8535
+ for (O = 3; 0 < O; --O) yi(l, h += 4, x, N);
8536
8536
  }
8537
8537
  function Ji(l, h, x, N, O, B, U, z) {
8538
8538
  for (B = 2 * B + 1; 0 < O--; ) {
@@ -8593,10 +8593,10 @@ function du(e) {
8593
8593
  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 V(), this.yc = new T();
8594
8594
  }
8595
8595
  function Hl() {
8596
- this.xb = this.a = 0, this.l = new vi(), this.ca = new An(), 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 h0(), this.ab = 0, this.gc = s(4, Qs), this.Oc = 0;
8596
+ this.xb = this.a = 0, this.l = new xi(), this.ca = new An(), 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 h0(), this.ab = 0, this.gc = s(4, Qs), this.Oc = 0;
8597
8597
  }
8598
8598
  function os() {
8599
- this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new vi(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
8599
+ this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new xi(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
8600
8600
  }
8601
8601
  function Fa(l, h, x, N, O, B, U) {
8602
8602
  for (l = l == null ? 0 : l[h + 0], h = 0; h < U; ++h) O[B + h] = l + x[N + h] & 255, l = O[B + h];
@@ -8783,7 +8783,7 @@ function du(e) {
8783
8783
  function En(l, h) {
8784
8784
  return 0 > l ? 0 : l > h ? h : l;
8785
8785
  }
8786
- function yi(l, h, x) {
8786
+ function bi(l, h, x) {
8787
8787
  P[l] = function(N, O, B, U, z, G, Q, de, Se) {
8788
8788
  for (var Ae = de + (-2 & Se) * x; de != Ae; ) h(N[O + 0], B[U + 0], z[G + 0], Q, de), h(N[O + 1], B[U + 0], z[G + 0], Q, de + x), O += 2, ++U, ++G, de += 2 * x;
8789
8789
  1 & Se && h(N[O + 0], B[U + 0], z[G + 0], Q, de);
@@ -9063,7 +9063,7 @@ function du(e) {
9063
9063
  var Ca, mn, sn, ea, Di, Ri, ps, Mi, xr, lo, on, zn, gs, v0, fo, ka, Pa, ta, Ia, ms, Oa, ra, co, Wn, Hn, rr, nr, wr, Pr = a(511), Bi = a(2041), uo = a(225), vs = a(767), x0 = 0, Gl = Bi, w0 = uo, Ln = vs, qn = Pr, y0 = 0, b0 = 1, wc = 2, _0 = 3, S0 = 4, Vl = 5, yc = 6, Xl = 7, Yl = 8, A0 = 9, Kl = 10, xd = [2, 3, 7], wd = [3, 3, 11], bc = [280, 256, 256, 256, 40], yd = [0, 1, 1, 1, 0], bd = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], _d = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112], Sd = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004], Ad = 8, $l = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157], Jl = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284], ho = null, Td = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]], Nd = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15], _c = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9], Ed = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]], Ld = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]], Fd = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]], Cd = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0], na = [], ni = [], ji = [], kd = 1, Sc = 2, ia = [], Gn = [];
9064
9064
  Ce("UpsampleRgbLinePair", It, 3), Ce("UpsampleBgrLinePair", lr, 3), Ce("UpsampleRgbaLinePair", ri, 4), Ce("UpsampleBgraLinePair", Dr, 4), Ce("UpsampleArgbLinePair", Jr, 4), Ce("UpsampleRgba4444LinePair", Ar, 2), Ce("UpsampleRgb565LinePair", ur, 2);
9065
9065
  var Pd = P.UpsampleRgbLinePair, Id = P.UpsampleBgrLinePair, Ac = P.UpsampleRgbaLinePair, Tc = P.UpsampleBgraLinePair, Nc = P.UpsampleArgbLinePair, Ec = P.UpsampleRgba4444LinePair, Od = P.UpsampleRgb565LinePair, T0 = 16, N0 = 1 << T0 - 1, po = -227, Zl = 482, Dd = 6, Lc = 0, Rd = a(256), Md = a(256), Bd = a(256), jd = a(256), Ud = a(Zl - po), zd = a(Zl - po);
9066
- yi("YuvToRgbRow", It, 3), yi("YuvToBgrRow", lr, 3), yi("YuvToRgbaRow", ri, 4), yi("YuvToBgraRow", Dr, 4), yi("YuvToArgbRow", Jr, 4), yi("YuvToRgba4444Row", Ar, 2), yi("YuvToRgb565Row", ur, 2);
9066
+ bi("YuvToRgbRow", It, 3), bi("YuvToBgrRow", lr, 3), bi("YuvToRgbaRow", ri, 4), bi("YuvToBgraRow", Dr, 4), bi("YuvToArgbRow", Jr, 4), bi("YuvToRgba4444Row", Ar, 2), bi("YuvToRgb565Row", ur, 2);
9067
9067
  var Fc = [0, 4, 8, 12, 128, 132, 136, 140, 256, 260, 264, 268, 384, 388, 392, 396], E0 = [0, 2, 8], Wd = [8, 7, 6, 4, 4, 2, 2, 2, 1, 1, 1, 1], Hd = 1;
9068
9068
  this.WebPDecodeRGBA = function(l, h, x, N, O) {
9069
9069
  var B = b0, U = new ss(), z = new An();
@@ -9074,7 +9074,7 @@ function du(e) {
9074
9074
  if (Se != 0 ? G = 0 : (G != null && (G[0] = de.width[0]), Q != null && (Q[0] = de.height[0]), G = 1), G) {
9075
9075
  z.width = z.width[0], z.height = z.height[0], N != null && (N[0] = z.width), O != null && (O[0] = z.height);
9076
9076
  e: {
9077
- if (N = new vi(), (O = new Zs()).data = l, O.w = h, O.ha = x, O.kd = 1, h = [0], r(O != null), ((l = ls(O.data, O.w, O.ha, null, null, null, h, null, O)) == 0 || l == 7) && h[0] && (l = 4), (h = l) == 0) {
9077
+ if (N = new xi(), (O = new Zs()).data = l, O.w = h, O.ha = x, O.kd = 1, h = [0], r(O != null), ((l = ls(O.data, O.w, O.ha, null, null, null, h, null, O)) == 0 || l == 7) && h[0] && (l = 4), (h = l) == 0) {
9078
9078
  if (r(U != null), N.data = O.data, N.w = O.w + O.offset, N.ha = O.ha - O.offset, N.put = Bn, N.ac = kr, N.bc = jn, N.ma = U, O.xa) {
9079
9079
  if ((l = Le()) == null) {
9080
9080
  U = 1;
@@ -9589,7 +9589,7 @@ function du(e) {
9589
9589
  */
9590
9590
  (function(e) {
9591
9591
  function r() {
9592
- return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-DSVJOpFn.mjs")).catch((function(t) {
9592
+ return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-3hz-kvpT.mjs")).catch((function(t) {
9593
9593
  return Promise.reject(new Error("Could not load canvg: " + t));
9594
9594
  })).then((function(t) {
9595
9595
  return t.default ? t.default : t;
@@ -9984,7 +9984,7 @@ end`;
9984
9984
  return t == null && (t = !1), n = t ? this.lineGap : 0, (this.ascender + n - this.decender) / 1e3 * r;
9985
9985
  }, e;
9986
9986
  })();
9987
- var pi, ba = (function() {
9987
+ var gi, ba = (function() {
9988
9988
  function e(r) {
9989
9989
  this.data = r ?? [], this.pos = 0, this.length = this.data.length;
9990
9990
  }
@@ -10064,7 +10064,7 @@ var pi, ba = (function() {
10064
10064
  }
10065
10065
  return n.prototype = r.prototype, e.prototype = new n(), e.__super__ = r.prototype, e;
10066
10066
  };
10067
- pi = (function() {
10067
+ gi = (function() {
10068
10068
  function e(r) {
10069
10069
  var t;
10070
10070
  this.file = r, t = this.file.directory.tables[this.tag], this.exists = !!t, t && (this.offset = t.offset, this.length = t.length, this.parse(this.file.contents));
@@ -10079,7 +10079,7 @@ var Wp = (function(e) {
10079
10079
  function r() {
10080
10080
  return r.__super__.constructor.apply(this, arguments);
10081
10081
  }
10082
- return Ci(r, pi), r.prototype.tag = "head", r.prototype.parse = function(t) {
10082
+ return Ci(r, gi), r.prototype.tag = "head", r.prototype.parse = function(t) {
10083
10083
  return t.pos = this.offset, this.version = t.readInt(), this.revision = t.readInt(), this.checkSumAdjustment = t.readInt(), this.magicNumber = t.readInt(), this.flags = t.readShort(), this.unitsPerEm = t.readShort(), this.created = t.readLongLong(), this.modified = t.readLongLong(), this.xMin = t.readShort(), this.yMin = t.readShort(), this.xMax = t.readShort(), this.yMax = t.readShort(), this.macStyle = t.readShort(), this.lowestRecPPEM = t.readShort(), this.fontDirectionHint = t.readShort(), this.indexToLocFormat = t.readShort(), this.glyphDataFormat = t.readShort();
10084
10084
  }, r.prototype.encode = function(t) {
10085
10085
  var n;
@@ -10151,7 +10151,7 @@ var Wp = (function(e) {
10151
10151
  function r() {
10152
10152
  return r.__super__.constructor.apply(this, arguments);
10153
10153
  }
10154
- return Ci(r, pi), r.prototype.tag = "cmap", r.prototype.parse = function(t) {
10154
+ return Ci(r, gi), r.prototype.tag = "cmap", r.prototype.parse = function(t) {
10155
10155
  var n, i, a;
10156
10156
  for (t.pos = this.offset, this.version = t.readUInt16(), a = t.readUInt16(), this.tables = [], this.unicode = null, i = 0; 0 <= a ? i < a : i > a; i = 0 <= a ? ++i : --i) n = new pu(t, this.offset), this.tables.push(n), n.isUnicode && this.unicode == null && (this.unicode = n);
10157
10157
  return !0;
@@ -10163,14 +10163,14 @@ var Wp = (function(e) {
10163
10163
  function r() {
10164
10164
  return r.__super__.constructor.apply(this, arguments);
10165
10165
  }
10166
- return Ci(r, pi), r.prototype.tag = "hhea", r.prototype.parse = function(t) {
10166
+ return Ci(r, gi), r.prototype.tag = "hhea", r.prototype.parse = function(t) {
10167
10167
  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();
10168
10168
  }, r;
10169
10169
  })(), qp = (function(e) {
10170
10170
  function r() {
10171
10171
  return r.__super__.constructor.apply(this, arguments);
10172
10172
  }
10173
- return Ci(r, pi), r.prototype.tag = "OS/2", r.prototype.parse = function(t) {
10173
+ return Ci(r, gi), r.prototype.tag = "OS/2", r.prototype.parse = function(t) {
10174
10174
  if (t.pos = this.offset, this.version = t.readUInt16(), this.averageCharWidth = t.readShort(), this.weightClass = t.readUInt16(), this.widthClass = t.readUInt16(), this.type = t.readShort(), this.ySubscriptXSize = t.readShort(), this.ySubscriptYSize = t.readShort(), this.ySubscriptXOffset = t.readShort(), this.ySubscriptYOffset = t.readShort(), this.ySuperscriptXSize = t.readShort(), this.ySuperscriptYSize = t.readShort(), this.ySuperscriptXOffset = t.readShort(), this.ySuperscriptYOffset = t.readShort(), this.yStrikeoutSize = t.readShort(), this.yStrikeoutPosition = t.readShort(), this.familyClass = t.readShort(), this.panose = (function() {
10175
10175
  var n, i;
10176
10176
  for (i = [], n = 0; n < 10; ++n) i.push(t.readByte());
@@ -10189,7 +10189,7 @@ var Wp = (function(e) {
10189
10189
  function r() {
10190
10190
  return r.__super__.constructor.apply(this, arguments);
10191
10191
  }
10192
- return Ci(r, pi), r.prototype.tag = "post", r.prototype.parse = function(t) {
10192
+ return Ci(r, gi), r.prototype.tag = "post", r.prototype.parse = function(t) {
10193
10193
  var n, i, a;
10194
10194
  switch (t.pos = this.offset, this.format = t.readInt(), this.italicAngle = t.readInt(), this.underlinePosition = t.readShort(), this.underlineThickness = t.readShort(), this.isFixedPitch = t.readInt(), this.minMemType42 = t.readInt(), this.maxMemType42 = t.readInt(), this.minMemType1 = t.readInt(), this.maxMemType1 = t.readInt(), this.format) {
10195
10195
  case 65536:
@@ -10217,7 +10217,7 @@ var Wp = (function(e) {
10217
10217
  function r() {
10218
10218
  return r.__super__.constructor.apply(this, arguments);
10219
10219
  }
10220
- return Ci(r, pi), r.prototype.tag = "name", r.prototype.parse = function(t) {
10220
+ return Ci(r, gi), r.prototype.tag = "name", r.prototype.parse = function(t) {
10221
10221
  var n, i, a, s, o, f, c, u, p, g, d;
10222
10222
  for (t.pos = this.offset, t.readShort(), n = t.readShort(), f = t.readShort(), i = [], s = 0; 0 <= n ? s < n : s > n; s = 0 <= n ? ++s : --s) i.push({ platformID: t.readShort(), encodingID: t.readShort(), languageID: t.readShort(), nameID: t.readShort(), length: t.readShort(), offset: this.offset + f + t.readShort() });
10223
10223
  for (c = {}, s = p = 0, g = i.length; p < g; s = ++p) a = i[s], t.pos = a.offset, u = t.readString(a.length), o = new Vp(u, a), c[d = a.nameID] == null && (c[d] = []), c[a.nameID].push(o);
@@ -10233,14 +10233,14 @@ var Wp = (function(e) {
10233
10233
  function r() {
10234
10234
  return r.__super__.constructor.apply(this, arguments);
10235
10235
  }
10236
- return Ci(r, pi), r.prototype.tag = "maxp", r.prototype.parse = function(t) {
10236
+ return Ci(r, gi), r.prototype.tag = "maxp", r.prototype.parse = function(t) {
10237
10237
  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();
10238
10238
  }, r;
10239
10239
  })(), Kp = (function(e) {
10240
10240
  function r() {
10241
10241
  return r.__super__.constructor.apply(this, arguments);
10242
10242
  }
10243
- return Ci(r, pi), r.prototype.tag = "hmtx", r.prototype.parse = function(t) {
10243
+ return Ci(r, gi), r.prototype.tag = "hmtx", r.prototype.parse = function(t) {
10244
10244
  var n, i, a, s, o, f, c;
10245
10245
  for (t.pos = this.offset, this.metrics = [], n = 0, f = this.file.hhea.numberOfMetrics; 0 <= f ? n < f : n > f; n = 0 <= f ? ++n : --n) this.metrics.push({ advance: t.readUInt16(), lsb: t.readInt16() });
10246
10246
  for (a = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = (function() {
@@ -10260,7 +10260,7 @@ var Wp = (function(e) {
10260
10260
  function r() {
10261
10261
  return r.__super__.constructor.apply(this, arguments);
10262
10262
  }
10263
- return Ci(r, pi), r.prototype.tag = "glyf", r.prototype.parse = function() {
10263
+ return Ci(r, gi), r.prototype.tag = "glyf", r.prototype.parse = function() {
10264
10264
  return this.cache = {};
10265
10265
  }, r.prototype.glyphFor = function(t) {
10266
10266
  var n, i, a, s, o, f, c, u, p, g;
@@ -10291,7 +10291,7 @@ var Wp = (function(e) {
10291
10291
  function r() {
10292
10292
  return r.__super__.constructor.apply(this, arguments);
10293
10293
  }
10294
- return Ci(r, pi), r.prototype.tag = "loca", r.prototype.parse = function(t) {
10294
+ return Ci(r, gi), r.prototype.tag = "loca", r.prototype.parse = function(t) {
10295
10295
  var n, i;
10296
10296
  return t.pos = this.offset, n = this.file.head.indexToLocFormat, this.offsets = n === 0 ? (function() {
10297
10297
  var a, s;
@@ -12503,15 +12503,15 @@ function Vh(e, r) {
12503
12503
  } else t = r.toExponential(n);
12504
12504
  return e.match(/E\+00$/) && t.match(/e[+-]\d$/) && (t = t.substr(0, t.length - 1) + "0" + t.charAt(t.length - 1)), e.match(/E\-/) && t.match(/e\+/) && (t = t.replace(/e\+/, "e")), t.replace("e", "E");
12505
12505
  }
12506
- function Si(e, r, t) {
12506
+ function Ai(e, r, t) {
12507
12507
  if (e.charCodeAt(0) === 40 && !r.match(qh)) {
12508
12508
  var n = r.replace(/\( */, "").replace(/ \)/, "").replace(/\)/, "");
12509
- return t >= 0 ? Si("n", n, t) : "(" + Si("n", n, -t) + ")";
12509
+ return t >= 0 ? Ai("n", n, t) : "(" + Ai("n", n, -t) + ")";
12510
12510
  }
12511
12511
  if (r.charCodeAt(r.length - 1) === 44) return F5(e, r, t);
12512
12512
  if (r.indexOf("%") !== -1) return C5(e, r, t);
12513
12513
  if (r.indexOf("E") !== -1) return Vh(r, t);
12514
- if (r.charCodeAt(0) === 36) return "$" + Si(e, r.substr(r.charAt(1) == " " ? 2 : 1), t);
12514
+ if (r.charCodeAt(0) === 36) return "$" + Ai(e, r.substr(r.charAt(1) == " " ? 2 : 1), t);
12515
12515
  var i, a, s, o, f = Math.abs(t), c = t < 0 ? "-" : "";
12516
12516
  if (r.match(/^00+$/)) return c + ui(f, r.length);
12517
12517
  if (r.match(/^[#?]+$/))
@@ -12526,14 +12526,14 @@ function Si(e, r, t) {
12526
12526
  return c + ("" + f).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, a[1].length ? "0." : ".");
12527
12527
  if (a = r.match(/^#{1,3},##0(\.?)$/)) return c + xa("" + f);
12528
12528
  if (a = r.match(/^#,##0\.([#0]*0)$/))
12529
- return t < 0 ? "-" + Si(e, r, -t) : xa("" + t) + "." + pr("0", a[1].length);
12530
- if (a = r.match(/^#,#*,#0/)) return Si(e, r.replace(/^#,#*,/, ""), t);
12529
+ return t < 0 ? "-" + Ai(e, r, -t) : xa("" + t) + "." + pr("0", a[1].length);
12530
+ if (a = r.match(/^#,#*,#0/)) return Ai(e, r.replace(/^#,#*,/, ""), t);
12531
12531
  if (a = r.match(/^([0#]+)(\\?-([0#]+))+$/))
12532
- return i = Ps(Si(e, r.replace(/[\\-]/g, ""), t)), s = 0, Ps(Ps(r.replace(/\\/g, "")).replace(/[0#]/g, function(w) {
12532
+ return i = Ps(Ai(e, r.replace(/[\\-]/g, ""), t)), s = 0, Ps(Ps(r.replace(/\\/g, "")).replace(/[0#]/g, function(w) {
12533
12533
  return s < i.length ? i.charAt(s++) : w === "0" ? "0" : "";
12534
12534
  }));
12535
12535
  if (r.match(Gh))
12536
- return i = Si(e, "##########", t), "(" + i.substr(0, 3) + ") " + i.substr(3, 3) + "-" + i.substr(6);
12536
+ return i = Ai(e, "##########", t), "(" + i.substr(0, 3) + ") " + i.substr(3, 3) + "-" + i.substr(6);
12537
12537
  var u = "";
12538
12538
  if (a = r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
12539
12539
  return s = Math.min(
@@ -12558,7 +12558,7 @@ function Si(e, r, t) {
12558
12558
  return fn(r.substr(0, p) + i + r.substr(r.length - g));
12559
12559
  }
12560
12560
  if (a = r.match(/^00,000\.([#0]*0)$/))
12561
- return t < 0 ? "-" + Si(e, r, -t) : xa("" + t).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(w) {
12561
+ return t < 0 ? "-" + Ai(e, r, -t) : xa("" + t).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(w) {
12562
12562
  return "00," + (w.length < 3 ? ui(0, 3 - w.length) : "") + w;
12563
12563
  }) + "." + ui(0, a[1].length);
12564
12564
  switch (r) {
@@ -12568,12 +12568,12 @@ function Si(e, r, t) {
12568
12568
  var d = xa("" + f);
12569
12569
  return d !== "0" ? c + d : "";
12570
12570
  default:
12571
- if (r.match(/\.[0#?]*$/)) return Si(e, r.slice(0, r.lastIndexOf(".")), t) + fn(r.slice(r.lastIndexOf(".")));
12571
+ if (r.match(/\.[0#?]*$/)) return Ai(e, r.slice(0, r.lastIndexOf(".")), t) + fn(r.slice(r.lastIndexOf(".")));
12572
12572
  }
12573
12573
  throw new Error("unsupported format |" + r + "|");
12574
12574
  }
12575
12575
  function qi(e, r, t) {
12576
- return (t | 0) === t ? Si(e, r, t) : Xn(e, r, t);
12576
+ return (t | 0) === t ? Ai(e, r, t) : Xn(e, r, t);
12577
12577
  }
12578
12578
  function k5(e) {
12579
12579
  for (var r = [], t = !1, n = 0, i = 0; n < e.length; ++n) switch (
@@ -13160,11 +13160,11 @@ var R5 = /* @__PURE__ */ (function() {
13160
13160
  zt[_e].name = "!Directory", ee > 0 && Le !== W && (zt[Le].name = "!MiniFAT"), zt[Te[0]].name = "!FAT", zt.fat_addrs = Te, zt.ssz = J;
13161
13161
  var Kt = {}, Sr = [], Zn = [], Pi = [];
13162
13162
  A(_e, zt, mt, Sr, ee, Kt, Zn, Le), w(Zn, Pi, Sr), Sr.shift();
13163
- var mi = {
13163
+ var vi = {
13164
13164
  FileIndex: Zn,
13165
13165
  FullPaths: Pi
13166
13166
  };
13167
- return te && te.raw && (mi.raw = { header: Xe, sectors: mt }), mi;
13167
+ return te && te.raw && (vi.raw = { header: Xe, sectors: mt }), vi;
13168
13168
  }
13169
13169
  function p(j) {
13170
13170
  if (j[j.l] == 80 && j[j.l + 1] == 75) return [0, 0];
@@ -13375,8 +13375,8 @@ var R5 = /* @__PURE__ */ (function() {
13375
13375
  Kt > 0 && (Kt < 4096 ? Ge += Kt + 63 >> 6 : rt += Kt + 511 >> 9);
13376
13376
  }
13377
13377
  }
13378
- for (var Sr = nt.FullPaths.length + 3 >> 2, Zn = Ge + 7 >> 3, Pi = Ge + 127 >> 7, mi = Zn + rt + Sr + Pi, Qn = mi + 127 >> 7, vi = Qn <= 109 ? 0 : Math.ceil((Qn - 109) / 127); mi + Qn + vi + 127 >> 7 > Qn; ) vi = ++Qn <= 109 ? 0 : Math.ceil((Qn - 109) / 127);
13379
- var Nn = [1, vi, Qn, Pi, Sr, rt, Ge, 0];
13378
+ for (var Sr = nt.FullPaths.length + 3 >> 2, Zn = Ge + 7 >> 3, Pi = Ge + 127 >> 7, vi = Zn + rt + Sr + Pi, Qn = vi + 127 >> 7, xi = Qn <= 109 ? 0 : Math.ceil((Qn - 109) / 127); vi + Qn + xi + 127 >> 7 > Qn; ) xi = ++Qn <= 109 ? 0 : Math.ceil((Qn - 109) / 127);
13379
+ var Nn = [1, xi, Qn, Pi, Sr, rt, Ge, 0];
13380
13380
  return nt.FileIndex[0].size = Ge << 6, Nn[7] = (nt.FileIndex[0].start = Nn[0] + Nn[1] + Nn[2] + Nn[3] + Nn[4] + Nn[5]) + (Nn[6] + 7 >> 3), Nn;
13381
13381
  })(j), ee = ke(J[7] << 9), ne = 0, _e = 0;
13382
13382
  {
@@ -13750,7 +13750,7 @@ var R5 = /* @__PURE__ */ (function() {
13750
13750
  var X = j.slice(j.l || 0), J = Mn(X, te);
13751
13751
  return j.l += J[1], J[0];
13752
13752
  }
13753
- function gi(j, te) {
13753
+ function mi(j, te) {
13754
13754
  if (j)
13755
13755
  typeof console < "u" && console.error(te);
13756
13756
  else throw new Error(te);
@@ -13812,7 +13812,7 @@ var R5 = /* @__PURE__ */ (function() {
13812
13812
  throw new Error("Unsupported ZIP Compression method " + _e);
13813
13813
  }
13814
13814
  var zt = !1;
13815
- ne & 8 && (be = j.read_shift(4), be == 134695760 && (be = j.read_shift(4), zt = !0), Te = j.read_shift(4), Ne = j.read_shift(4)), Te != te && gi(zt, "Bad compressed size: " + te + " != " + Te), Ne != X && gi(zt, "Bad uncompressed size: " + X + " != " + Ne), dn(J, nt, mt, { unsafe: !0, mt: Le });
13815
+ ne & 8 && (be = j.read_shift(4), be == 134695760 && (be = j.read_shift(4), zt = !0), Te = j.read_shift(4), Ne = j.read_shift(4)), Te != te && mi(zt, "Bad compressed size: " + te + " != " + Te), Ne != X && mi(zt, "Bad uncompressed size: " + X + " != " + Ne), dn(J, nt, mt, { unsafe: !0, mt: Le });
13816
13816
  }
13817
13817
  function Jn(j, te) {
13818
13818
  var X = te || {}, J = [], ee = [], ne = ke(1), _e = X.compression ? 8 : 0, Le = 0, be = 0, Te = 0, Ne = 0, He = 0, Xe = j.FullPaths[0], nt = Xe, Ge = j.FileIndex[0], rt = [], mt = 0;
@@ -27054,7 +27054,7 @@ function Iw(e, r) {
27054
27054
  var t = r || {}, n = K3(e, t);
27055
27055
  return ud(n, t);
27056
27056
  }
27057
- function Ai(e, r, t) {
27057
+ function Ti(e, r, t) {
27058
27058
  t || (t = "");
27059
27059
  var n = t + e;
27060
27060
  switch (r.type) {
@@ -27067,7 +27067,7 @@ function Ai(e, r, t) {
27067
27067
  case "file":
27068
27068
  return Vo(r.file, n, "utf8");
27069
27069
  case "buffer":
27070
- return jt ? Ki(n, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(n) : Ai(n, { type: "binary" }).split("").map(function(i) {
27070
+ return jt ? Ki(n, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(n) : Ti(n, { type: "binary" }).split("").map(function(i) {
27071
27071
  return i.charCodeAt(0);
27072
27072
  });
27073
27073
  }
@@ -27120,29 +27120,29 @@ function hd(e, r) {
27120
27120
  switch (t.bookType || "xlsb") {
27121
27121
  case "xml":
27122
27122
  case "xlml":
27123
- return Ai(X3(e, t), t);
27123
+ return Ti(X3(e, t), t);
27124
27124
  case "slk":
27125
27125
  case "sylk":
27126
- return Ai(mm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27126
+ return Ti(mm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27127
27127
  case "htm":
27128
27128
  case "html":
27129
- return Ai(od(e.Sheets[e.SheetNames[i]], t), t);
27129
+ return Ti(od(e.Sheets[e.SheetNames[i]], t), t);
27130
27130
  case "txt":
27131
27131
  return Ow(pd(e.Sheets[e.SheetNames[i]], t), t);
27132
27132
  case "csv":
27133
- return Ai(xc(e.Sheets[e.SheetNames[i]], t), t, "\uFEFF");
27133
+ return Ti(xc(e.Sheets[e.SheetNames[i]], t), t, "\uFEFF");
27134
27134
  case "dif":
27135
- return Ai(vm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27135
+ return Ti(vm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27136
27136
  case "dbf":
27137
27137
  return K0(gm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27138
27138
  case "prn":
27139
- return Ai(xm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27139
+ return Ti(xm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27140
27140
  case "rtf":
27141
- return Ai(Tm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27141
+ return Ti(Tm.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27142
27142
  case "eth":
27143
- return Ai(D1.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27143
+ return Ti(D1.from_sheet(e.Sheets[e.SheetNames[i]], t), t);
27144
27144
  case "fods":
27145
- return Ai(cd(e, t), t);
27145
+ return Ti(cd(e, t), t);
27146
27146
  case "wk1":
27147
27147
  return K0(Yu.sheet_to_wk1(e.Sheets[e.SheetNames[i]], t), t);
27148
27148
  case "wk3":
@@ -27508,7 +27508,7 @@ function by(e, r) {
27508
27508
  return [t, i];
27509
27509
  }
27510
27510
  function _y(e) {
27511
- Li(() => {
27511
+ di(() => {
27512
27512
  const r = (t) => {
27513
27513
  e.forEach(({ key: n, ctrl: i, meta: a, shift: s, handler: o }) => {
27514
27514
  const f = t.key.toLowerCase() === n.toLowerCase(), c = i ? t.ctrlKey || t.metaKey : !0, u = s ? t.shiftKey : !0;
@@ -27766,7 +27766,7 @@ function Oy({ label: e, options: r = [], value: t, onChange: n, placeholder: i =
27766
27766
  }
27767
27767
  const ey = { sm: "max-w-sm", md: "max-w-md", lg: "max-w-lg", xl: "max-w-xl" };
27768
27768
  function ty({ open: e, onClose: r, title: t, children: n, footer: i, size: a = "md" }) {
27769
- const s = Ni(null), o = Ni(null), f = Kn((u) => {
27769
+ const s = Ei(null), o = Ei(null), f = Kn((u) => {
27770
27770
  var p, g, d;
27771
27771
  if (u.key === "Escape" && (u.stopPropagation(), r()), u.key === "Enter" && i && s.current) {
27772
27772
  const v = ((g = (p = document.activeElement) == null ? void 0 : p.tagName) == null ? void 0 : g.toLowerCase()) === "textarea", y = ((d = document.activeElement) == null ? void 0 : d.getAttribute("contenteditable")) === "true";
@@ -27781,21 +27781,26 @@ function ty({ open: e, onClose: r, title: t, children: n, footer: i, size: a = "
27781
27781
  const v = w[0], y = w[w.length - 1];
27782
27782
  u.shiftKey && document.activeElement === v ? (u.preventDefault(), y.focus()) : !u.shiftKey && document.activeElement === y && (u.preventDefault(), v.focus());
27783
27783
  }
27784
- }, [r, i]), c = Ni(!1);
27785
- return Li(() => {
27784
+ }, [r, i]), c = Ei(!1);
27785
+ return di(() => {
27786
27786
  if (!e) {
27787
27787
  c.current = !1;
27788
27788
  return;
27789
27789
  }
27790
- return document.body.style.overflow = "hidden", document.addEventListener("keydown", f), c.current || (c.current = !0, o.current = document.activeElement, setTimeout(() => {
27791
- var p;
27792
- const u = (p = s.current) == null ? void 0 : p.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');
27793
- u != null && u.length && u[0].focus();
27794
- }, 50)), () => {
27795
- var u;
27796
- document.body.style.overflow = "", document.removeEventListener("keydown", f), (u = o.current) == null || u.focus();
27790
+ return document.body.style.overflow = "hidden", document.addEventListener("keydown", f), () => {
27791
+ document.body.style.overflow = "", document.removeEventListener("keydown", f);
27797
27792
  };
27798
- }, [e, f]), e ? /* @__PURE__ */ Me("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", role: "presentation", children: [
27793
+ }, [e, f]), di(() => {
27794
+ if (!(!e || c.current))
27795
+ return c.current = !0, o.current = document.activeElement, setTimeout(() => {
27796
+ var p;
27797
+ const u = (p = s.current) == null ? void 0 : p.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');
27798
+ u != null && u.length && u[0].focus();
27799
+ }, 50), () => {
27800
+ var u;
27801
+ (u = o.current) == null || u.focus();
27802
+ };
27803
+ }, [e]), e ? /* @__PURE__ */ Me("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", role: "presentation", children: [
27799
27804
  /* @__PURE__ */ le("div", { className: "fixed inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in-up", style: { animationDuration: "0.15s" }, onClick: r, "aria-hidden": "true" }),
27800
27805
  /* @__PURE__ */ Me(
27801
27806
  "div",
@@ -27846,7 +27851,7 @@ function Dy({ columns: e = [], rows: r, data: t, page: n, totalPages: i, onPageC
27846
27851
  }
27847
27852
  function Ry({ items: e, brand: r, user: t, collapsed: n, onToggle: i, onLogout: a, onSettings: s }) {
27848
27853
  const o = _2();
27849
- e.findIndex((y) => o.pathname.startsWith(y.path)), Li(() => {
27854
+ e.findIndex((y) => o.pathname.startsWith(y.path)), di(() => {
27850
27855
  const y = o.pathname, _ = e.find((S) => y.startsWith(S.path));
27851
27856
  if (_)
27852
27857
  try {
@@ -27856,7 +27861,7 @@ function Ry({ items: e, brand: r, user: t, collapsed: n, onToggle: i, onLogout:
27856
27861
  }
27857
27862
  }, [o.pathname, e]);
27858
27863
  const [f, c] = fr(null), [u, p] = fr(!1);
27859
- Li(() => {
27864
+ di(() => {
27860
27865
  const y = setTimeout(() => p(!0), 50);
27861
27866
  return () => clearTimeout(y);
27862
27867
  }, []);
@@ -28046,14 +28051,14 @@ function ry({ items: e, onLogout: r }) {
28046
28051
  ] });
28047
28052
  }
28048
28053
  function My({ title: e, subtitle: r, user: t, notificationCount: n = 0, onLogout: i, onProfile: a, onSettings: s, navItems: o = [] }) {
28049
- const [f, c] = fr(!1), u = Ni(null), p = S2(), g = (() => {
28054
+ const [f, c] = fr(!1), u = Ei(null), p = S2(), g = (() => {
28050
28055
  try {
28051
28056
  return JSON.parse(sessionStorage.getItem("sidebar-recent") || "[]").slice(0, 5);
28052
28057
  } catch {
28053
28058
  return [];
28054
28059
  }
28055
28060
  })();
28056
- return Li(() => {
28061
+ return di(() => {
28057
28062
  const d = (w) => {
28058
28063
  u.current && !u.current.contains(w.target) && c(!1);
28059
28064
  };
@@ -28217,7 +28222,7 @@ const vd = t2(null), ny = {
28217
28222
  };
28218
28223
  function sy({ id: e, type: r = "info", message: t, onRemove: n }) {
28219
28224
  const i = ny[r] || oh, [a, s] = fr(!1), [o, f] = fr(100);
28220
- Li(() => {
28225
+ di(() => {
28221
28226
  const p = setInterval(() => {
28222
28227
  f((d) => d <= 0 ? (clearInterval(p), 0) : d - 1);
28223
28228
  }, 50), g = setTimeout(() => {
@@ -28240,8 +28245,8 @@ function sy({ id: e, type: r = "info", message: t, onRemove: n }) {
28240
28245
  ] });
28241
28246
  }
28242
28247
  function oy({ id: e, message: r, onConfirm: t, onUndo: n, timeout: i = 5e3, onRemove: a }) {
28243
- const [s, o] = fr(i), [f, c] = fr(!1), u = Ni(!1);
28244
- Li(() => {
28248
+ const [s, o] = fr(i), [f, c] = fr(!1), u = Ei(!1);
28249
+ di(() => {
28245
28250
  const g = setInterval(() => {
28246
28251
  o((d) => d <= 100 ? (clearInterval(g), u.current || (t(), c(!0), setTimeout(() => a(e), 300)), 0) : d - 100);
28247
28252
  }, 100);
@@ -28302,8 +28307,8 @@ function Gy({ open: e, onClose: r, onConfirm: t, title: n = "Confirm Delete", me
28302
28307
  ] });
28303
28308
  }
28304
28309
  function Vy({ value: e, onChange: r, options: t = [], onSearch: n, placeholder: i = "Search...", labelKey: a = "label", valueKey: s = "value", renderOption: o, loading: f = !1, showSearch: c }) {
28305
- const [u, p] = fr(!1), [g, d] = fr(""), w = Ni(null), v = Ni(null), y = c === !0 || c !== !1 && t.length > 5, _ = t.find((M) => M[s] === e);
28306
- Li(() => {
28310
+ const [u, p] = fr(!1), [g, d] = fr(""), w = Ei(null), v = Ei(null), y = c === !0 || c !== !1 && t.length > 5, _ = t.find((M) => M[s] === e);
28311
+ di(() => {
28307
28312
  const M = (Y) => {
28308
28313
  w.current && !w.current.contains(Y.target) && p(!1);
28309
28314
  };
@@ -28507,7 +28512,7 @@ class Jy extends n2 {
28507
28512
  }
28508
28513
  function Zy() {
28509
28514
  const [e, r] = fr(navigator.onLine), [t, n] = fr(!1);
28510
- return Li(() => {
28515
+ return di(() => {
28511
28516
  const i = () => {
28512
28517
  r(!0), n(!0), setTimeout(() => n(!1), 3e3);
28513
28518
  }, a = () => r(!1);
@@ -28541,7 +28546,7 @@ function Qy({ label: e, sortKey: r, sortConfig: t, onSort: n, className: i }) {
28541
28546
  );
28542
28547
  }
28543
28548
  function eb({ children: e, content: r, className: t }) {
28544
- const [n, i] = fr(!1), [a, s] = fr({ top: 0, left: 0 }), o = Ni(null), f = Ni(null), c = () => {
28549
+ const [n, i] = fr(!1), [a, s] = fr({ top: 0, left: 0 }), o = Ei(null), f = Ei(null), c = () => {
28545
28550
  clearTimeout(f.current), f.current = setTimeout(() => {
28546
28551
  if (o.current) {
28547
28552
  const p = o.current.getBoundingClientRect();
@@ -28625,8 +28630,8 @@ function rb({ title: e, children: r, className: t }) {
28625
28630
  ] });
28626
28631
  }
28627
28632
  function nb({ tokenExpiresAt: e, onLogout: r, warningMinutes: t = 5 }) {
28628
- const [n, i] = fr(!1), [a, s] = fr(0), o = Ni(null);
28629
- if (Li(() => {
28633
+ const [n, i] = fr(!1), [a, s] = fr(0), o = Ei(null);
28634
+ if (di(() => {
28630
28635
  if (!e) return;
28631
28636
  const u = () => {
28632
28637
  const p = Date.now(), d = (typeof e == "number" ? e : new Date(e).getTime()) - p, w = t * 60 * 1e3;