mapicgc-gl-js 0.0.97 → 0.0.99

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.
@@ -193,9 +193,9 @@ var gA = (
193
193
  }
194
194
  return n;
195
195
  }, Br = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", an = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
196
- for (var Ce = 0; Ce < Br.length; Ce++) an[Br.charCodeAt(Ce)] = Ce;
196
+ for (var Ue = 0; Ue < Br.length; Ue++) an[Br.charCodeAt(Ue)] = Ue;
197
197
  var nr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", zA = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
198
- for (var Ue = 0; Ue < nr.length; Ue++) zA[nr.charCodeAt(Ue)] = Ue;
198
+ for (var Ce = 0; Ce < nr.length; Ce++) zA[nr.charCodeAt(Ce)] = Ce;
199
199
  var Qn = function(e) {
200
200
  var A = e.length * 0.75, r = e.length, t, B = 0, n, s, i, o;
201
201
  e[e.length - 1] === "=" && (A--, e[e.length - 2] === "=" && A--);
@@ -208,7 +208,7 @@ var Qn = function(e) {
208
208
  }, gn = function(e) {
209
209
  for (var A = e.length, r = [], t = 0; t < A; t += 4) r.push(e[t + 3] << 24 | e[t + 2] << 16 | e[t + 1] << 8 | e[t]);
210
210
  return r;
211
- }, bA = 5, jt = 11, it = 2, wn = jt - bA, BB = 65536 >> bA, un = 1 << bA, at = un - 1, ln = 1024 >> bA, Cn = BB + ln, Un = Cn, Fn = 32, hn = Un + Fn, dn = 65536 >> jt, fn = 1 << wn, pn = fn - 1, sr = function(e, A, r) {
211
+ }, bA = 5, jt = 11, it = 2, wn = jt - bA, BB = 65536 >> bA, un = 1 << bA, at = un - 1, ln = 1024 >> bA, Un = BB + ln, Cn = Un, Fn = 32, hn = Cn + Fn, dn = 65536 >> jt, fn = 1 << wn, pn = fn - 1, sr = function(e, A, r) {
212
212
  return e.slice ? e.slice(A, r) : new Uint16Array(Array.prototype.slice.call(e, A, r));
213
213
  }, Hn = function(e, A, r) {
214
214
  return e.slice ? e.slice(A, r) : new Uint32Array(Array.prototype.slice.call(e, A, r));
@@ -308,7 +308,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
308
308
  }
309
309
  if (Gt === o && [Gt, Oe, Mt, St].indexOf(Q) !== -1 || [Oe, Mt].indexOf(o) !== -1 && [Oe, Ve].indexOf(Q) !== -1 || [Ve, St].indexOf(o) !== -1 && Q === Ve || ur.indexOf(o) !== -1 && [gr, Ae].indexOf(Q) !== -1 || ur.indexOf(Q) !== -1 && o === ee || aA.indexOf(o) !== -1 && aA.indexOf(Q) !== -1 || o === MA && aA.indexOf(Q) !== -1 || aA.concat(j).indexOf(o) !== -1 && Q === _A && Tn.indexOf(e[i]) === -1 || aA.concat(j).indexOf(Q) !== -1 && o === ZA) return P;
310
310
  if (o === ct && Q === ct) {
311
- for (var U = r[n], w = 1; U > 0 && (U--, A[U] === ct); ) w++;
311
+ for (var C = r[n], w = 1; C > 0 && (C--, A[C] === ct); ) w++;
312
312
  if (w % 2 !== 0) return P;
313
313
  }
314
314
  return o === de && Q === fe ? P : pe;
@@ -357,12 +357,12 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
357
357
  };
358
358
  }
359
359
  };
360
- }, Xn = 1, Jn = 2, we = 4, Cr = 8, Ne = 10, Ur = 47, ne = 92, Yn = 9, Wn = 32, He = 34, qA = 61, Zn = 35, _n = 36, qn = 37, Ee = 39, Ie = 40, jA = 41, jn = 95, _ = 45, zn = 33, $n = 60, As = 62, es = 64, ts = 91, rs = 93, Bs = 61, ns = 123, ye = 63, ss = 125, Fr = 124, os = 126, is = 128, hr = 65533, wt = 42, LA = 43, as = 44, Qs = 58, cs = 59, ce = 46, gs = 0, ws = 8, us = 11, ls = 14, Cs = 31, Us = 127, BA = -1, cB = 48, gB = 97, wB = 101, Fs = 102, hs = 117, ds = 122, uB = 65, lB = 69, CB = 70, fs = 85, ps = 90, J = function(e) {
360
+ }, Xn = 1, Jn = 2, we = 4, Ur = 8, Ne = 10, Cr = 47, ne = 92, Yn = 9, Wn = 32, He = 34, qA = 61, Zn = 35, _n = 36, qn = 37, Ee = 39, Ie = 40, jA = 41, jn = 95, _ = 45, zn = 33, $n = 60, As = 62, es = 64, ts = 91, rs = 93, Bs = 61, ns = 123, ye = 63, ss = 125, Fr = 124, os = 126, is = 128, hr = 65533, wt = 42, LA = 43, as = 44, Qs = 58, cs = 59, ce = 46, gs = 0, ws = 8, us = 11, ls = 14, Us = 31, Cs = 127, BA = -1, cB = 48, gB = 97, wB = 101, Fs = 102, hs = 117, ds = 122, uB = 65, lB = 69, UB = 70, fs = 85, ps = 90, J = function(e) {
361
361
  return e >= cB && e <= 57;
362
362
  }, Hs = function(e) {
363
363
  return e >= 55296 && e <= 57343;
364
364
  }, TA = function(e) {
365
- return J(e) || e >= uB && e <= CB || e >= gB && e <= Fs;
365
+ return J(e) || e >= uB && e <= UB || e >= gB && e <= Fs;
366
366
  }, Es = function(e) {
367
367
  return e >= gB && e <= ds;
368
368
  }, Is = function(e) {
@@ -378,11 +378,11 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
378
378
  }, dr = function(e) {
379
379
  return Pe(e) || J(e) || e === _;
380
380
  }, ms = function(e) {
381
- return e >= gs && e <= ws || e === us || e >= ls && e <= Cs || e === Us;
382
- }, UA = function(e, A) {
381
+ return e >= gs && e <= ws || e === us || e >= ls && e <= Us || e === Cs;
382
+ }, CA = function(e, A) {
383
383
  return e !== ne ? !1 : A !== Ne;
384
384
  }, me = function(e, A, r) {
385
- return e === _ ? Pe(A) || UA(A, r) : Pe(e) ? !0 : !!(e === ne && UA(e, A));
385
+ return e === _ ? Pe(A) || CA(A, r) : Pe(e) ? !0 : !!(e === ne && CA(e, A));
386
386
  }, ut = function(e, A, r) {
387
387
  return e === LA || e === _ ? J(A) ? !0 : A === ce && J(r) : J(e === ce ? A : e);
388
388
  }, Ls = function(e) {
@@ -462,7 +462,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
462
462
  }, kt = {
463
463
  type: 32
464
464
  /* EOF_TOKEN */
465
- }, UB = (
465
+ }, CB = (
466
466
  /** @class */
467
467
  function() {
468
468
  function e() {
@@ -480,7 +480,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
480
480
  return this.consumeStringToken(He);
481
481
  case Zn:
482
482
  var r = this.peekCodePoint(0), t = this.peekCodePoint(1), B = this.peekCodePoint(2);
483
- if (dr(r) || UA(t, B)) {
483
+ if (dr(r) || CA(t, B)) {
484
484
  var n = me(r, t, B) ? Jn : Xn, s = this.consumeName();
485
485
  return {
486
486
  type: 5,
@@ -515,10 +515,10 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
515
515
  case ce:
516
516
  if (ut(A, this.peekCodePoint(0), this.peekCodePoint(1))) return this.reconsumeCodePoint(A), this.consumeNumericToken();
517
517
  break;
518
- case Ur:
518
+ case Cr:
519
519
  if (this.peekCodePoint(0) === wt) for (this.consumeCodePoint(); ; ) {
520
520
  var Q = this.consumeCodePoint();
521
- if (Q === wt && (Q = this.consumeCodePoint(), Q === Ur)) return this.consumeToken();
521
+ if (Q === wt && (Q = this.consumeCodePoint(), Q === Cr)) return this.consumeToken();
522
522
  if (Q === BA) return this.consumeToken();
523
523
  }
524
524
  break;
@@ -530,8 +530,8 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
530
530
  if (this.peekCodePoint(0) === zn && this.peekCodePoint(1) === _ && this.peekCodePoint(2) === _) return this.consumeCodePoint(), this.consumeCodePoint(), Ns;
531
531
  break;
532
532
  case es:
533
- var c = this.peekCodePoint(0), g = this.peekCodePoint(1), U = this.peekCodePoint(2);
534
- if (me(c, g, U)) {
533
+ var c = this.peekCodePoint(0), g = this.peekCodePoint(1), C = this.peekCodePoint(2);
534
+ if (me(c, g, C)) {
535
535
  var s = this.consumeName();
536
536
  return {
537
537
  type: 7,
@@ -542,7 +542,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
542
542
  case ts:
543
543
  return Ys;
544
544
  case ne:
545
- if (UA(A, this.peekCodePoint(0))) return this.reconsumeCodePoint(A), this.consumeIdentLikeToken();
545
+ if (CA(A, this.peekCodePoint(0))) return this.reconsumeCodePoint(A), this.consumeIdentLikeToken();
546
546
  break;
547
547
  case rs:
548
548
  return Ws;
@@ -585,7 +585,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
585
585
  var B = parseInt(M.apply(void 0, A.map(function(o) {
586
586
  return o === ye ? cB : o;
587
587
  })), 16), n = parseInt(M.apply(void 0, A.map(function(o) {
588
- return o === ye ? CB : o;
588
+ return o === ye ? UB : o;
589
589
  })), 16);
590
590
  return {
591
591
  type: 30,
@@ -643,7 +643,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
643
643
  }) : (this.consumeBadUrlRemnants(), Le);
644
644
  if (B === He || B === Ee || B === Ie || ms(B)) return this.consumeBadUrlRemnants(), Le;
645
645
  if (B === ne)
646
- if (UA(B, this.peekCodePoint(0))) A.push(this.consumeEscapedCodePoint());
646
+ if (CA(B, this.peekCodePoint(0))) A.push(this.consumeEscapedCodePoint());
647
647
  else return this.consumeBadUrlRemnants(), Le;
648
648
  else A.push(B);
649
649
  }
@@ -653,7 +653,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
653
653
  for (; ; ) {
654
654
  var A = this.consumeCodePoint();
655
655
  if (A === jA || A === BA) return;
656
- UA(A, this.peekCodePoint(0)) && this.consumeEscapedCodePoint();
656
+ CA(A, this.peekCodePoint(0)) && this.consumeEscapedCodePoint();
657
657
  }
658
658
  }, e.prototype.consumeStringSlice = function(A) {
659
659
  for (var r = 5e4, t = ""; A > 0; ) {
@@ -672,7 +672,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
672
672
  if (B === Ne) return this._value.splice(0, t), Rs;
673
673
  if (B === ne) {
674
674
  var n = this._value[t + 1];
675
- n !== BA && n !== void 0 && (n === Ne ? (r += this.consumeStringSlice(t), t = -1, this._value.shift()) : UA(B, n) && (r += this.consumeStringSlice(t), r += M(this.consumeEscapedCodePoint()), t = -1));
675
+ n !== BA && n !== void 0 && (n === Ne ? (r += this.consumeStringSlice(t), t = -1, this._value.shift()) : CA(B, n) && (r += this.consumeStringSlice(t), r += M(this.consumeEscapedCodePoint()), t = -1));
676
676
  }
677
677
  t++;
678
678
  } while (!0);
@@ -681,10 +681,10 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
681
681
  for ((t === LA || t === _) && A.push(this.consumeCodePoint()); J(this.peekCodePoint(0)); ) A.push(this.consumeCodePoint());
682
682
  t = this.peekCodePoint(0);
683
683
  var B = this.peekCodePoint(1);
684
- if (t === ce && J(B)) for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), r = Cr; J(this.peekCodePoint(0)); ) A.push(this.consumeCodePoint());
684
+ if (t === ce && J(B)) for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), r = Ur; J(this.peekCodePoint(0)); ) A.push(this.consumeCodePoint());
685
685
  t = this.peekCodePoint(0), B = this.peekCodePoint(1);
686
686
  var n = this.peekCodePoint(2);
687
- if ((t === lB || t === wB) && ((B === LA || B === _) && J(n) || J(B))) for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), r = Cr; J(this.peekCodePoint(0)); ) A.push(this.consumeCodePoint());
687
+ if ((t === lB || t === wB) && ((B === LA || B === _) && J(n) || J(B))) for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), r = Ur; J(this.peekCodePoint(0)); ) A.push(this.consumeCodePoint());
688
688
  return [Ls(A), r];
689
689
  }, e.prototype.consumeNumericToken = function() {
690
690
  var A = this.consumeNumber(), r = A[0], t = A[1], B = this.peekCodePoint(0), n = this.peekCodePoint(1), s = this.peekCodePoint(2);
@@ -719,7 +719,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
719
719
  for (var A = ""; ; ) {
720
720
  var r = this.consumeCodePoint();
721
721
  if (dr(r)) A += M(r);
722
- else if (UA(r, this.peekCodePoint(0))) A += M(this.consumeEscapedCodePoint());
722
+ else if (CA(r, this.peekCodePoint(0))) A += M(this.consumeEscapedCodePoint());
723
723
  else return this.reconsumeCodePoint(r), A;
724
724
  }
725
725
  }, e;
@@ -731,7 +731,7 @@ var Kn = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
731
731
  this._tokens = A;
732
732
  }
733
733
  return e.create = function(A) {
734
- var r = new UB();
734
+ var r = new CB();
735
735
  return r.write(A), new e(r.read());
736
736
  }, e.parseValue = function(A) {
737
737
  return e.create(A).parseComponentValue();
@@ -970,8 +970,8 @@ function lt(e, A, r) {
970
970
  var Hr = function(e, A) {
971
971
  var r = A.filter(JA), t = r[0], B = r[1], n = r[2], s = r[3], i = (t.type === 17 ? $(t.number) : At.parse(e, t)) / (Math.PI * 2), o = T(B) ? B.number / 100 : 0, a = T(n) ? n.number / 100 : 0, Q = typeof s < "u" && T(s) ? b(s, 1) : 1;
972
972
  if (o === 0) return dA(a * 255, a * 255, a * 255, 1);
973
- var c = a <= 0.5 ? a * (o + 1) : a + o - a * o, g = a * 2 - c, U = lt(g, c, i + 1 / 3), w = lt(g, c, i), u = lt(g, c, i - 1 / 3);
974
- return dA(U * 255, w * 255, u * 255, Q);
973
+ var c = a <= 0.5 ? a * (o + 1) : a + o - a * o, g = a * 2 - c, C = lt(g, c, i + 1 / 3), w = lt(g, c, i), u = lt(g, c, i - 1 / 3);
974
+ return dA(C * 255, w * 255, u * 255, Q);
975
975
  }, js = {
976
976
  hsl: Hr,
977
977
  hsla: Hr,
@@ -1174,7 +1174,7 @@ var Hr = function(e, A) {
1174
1174
  var Q = B[s];
1175
1175
  if (Q === null) a === null && (a = s);
1176
1176
  else if (a !== null) {
1177
- for (var c = s - a, g = B[a - 1], U = (Q - g) / (c + 1), w = 1; w <= c; w++) B[a + w - 1] = U * w;
1177
+ for (var c = s - a, g = B[a - 1], C = (Q - g) / (c + 1), w = 1; w <= c; w++) B[a + w - 1] = C * w;
1178
1178
  a = null;
1179
1179
  }
1180
1180
  }
@@ -1301,12 +1301,12 @@ var Hr = function(e, A) {
1301
1301
  } else if (Q.name === "color-stop") {
1302
1302
  var g = Q.values.filter(JA);
1303
1303
  if (g.length === 2) {
1304
- var c = fA.parse(e, g[1]), U = g[0];
1305
- YA(U) && t.push({
1304
+ var c = fA.parse(e, g[1]), C = g[0];
1305
+ YA(C) && t.push({
1306
1306
  stop: {
1307
1307
  type: 16,
1308
- number: U.number * 100,
1309
- flags: U.flags
1308
+ number: C.number * 100,
1309
+ flags: C.flags
1310
1310
  },
1311
1311
  color: c
1312
1312
  });
@@ -1553,7 +1553,7 @@ var uo = {
1553
1553
  type: 3,
1554
1554
  format: "color"
1555
1555
  };
1556
- }, Co = tt("top"), Uo = tt("right"), Fo = tt("bottom"), ho = tt("left"), rt = function(e) {
1556
+ }, Uo = tt("top"), Co = tt("right"), Fo = tt("bottom"), ho = tt("left"), rt = function(e) {
1557
1557
  return {
1558
1558
  name: "border-radius-" + e,
1559
1559
  initialValue: "0 0",
@@ -2177,13 +2177,13 @@ var Qi = {
2177
2177
  return B.indexOf(" ") === -1 ? B : "'" + B + "'";
2178
2178
  });
2179
2179
  }
2180
- }, Ci = {
2180
+ }, Ui = {
2181
2181
  name: "font-size",
2182
2182
  initialValue: "0",
2183
2183
  prefix: !1,
2184
2184
  type: 3,
2185
2185
  format: "length"
2186
- }, Ui = {
2186
+ }, Ci = {
2187
2187
  name: "font-weight",
2188
2188
  initialValue: "normal",
2189
2189
  type: 0,
@@ -2388,7 +2388,7 @@ var Qi = {
2388
2388
  function() {
2389
2389
  function e(A, r) {
2390
2390
  var t, B;
2391
- this.animationDuration = F(A, Hi, r.animationDuration), this.backgroundClip = F(A, zs, r.backgroundClip), this.backgroundColor = F(A, $s, r.backgroundColor), this.backgroundImage = F(A, ao, r.backgroundImage), this.backgroundOrigin = F(A, Qo, r.backgroundOrigin), this.backgroundPosition = F(A, co, r.backgroundPosition), this.backgroundRepeat = F(A, go, r.backgroundRepeat), this.backgroundSize = F(A, uo, r.backgroundSize), this.borderTopColor = F(A, Co, r.borderTopColor), this.borderRightColor = F(A, Uo, r.borderRightColor), this.borderBottomColor = F(A, Fo, r.borderBottomColor), this.borderLeftColor = F(A, ho, r.borderLeftColor), this.borderTopLeftRadius = F(A, fo, r.borderTopLeftRadius), this.borderTopRightRadius = F(A, po, r.borderTopRightRadius), this.borderBottomRightRadius = F(A, Ho, r.borderBottomRightRadius), this.borderBottomLeftRadius = F(A, Eo, r.borderBottomLeftRadius), this.borderTopStyle = F(A, Io, r.borderTopStyle), this.borderRightStyle = F(A, yo, r.borderRightStyle), this.borderBottomStyle = F(A, Ko, r.borderBottomStyle), this.borderLeftStyle = F(A, mo, r.borderLeftStyle), this.borderTopWidth = F(A, Lo, r.borderTopWidth), this.borderRightWidth = F(A, vo, r.borderRightWidth), this.borderBottomWidth = F(A, bo, r.borderBottomWidth), this.borderLeftWidth = F(A, Do, r.borderLeftWidth), this.boxShadow = F(A, Ii, r.boxShadow), this.color = F(A, xo, r.color), this.direction = F(A, Mo, r.direction), this.display = F(A, So, r.display), this.float = F(A, Go, r.cssFloat), this.fontFamily = F(A, li, r.fontFamily), this.fontSize = F(A, Ci, r.fontSize), this.fontStyle = F(A, hi, r.fontStyle), this.fontVariant = F(A, Fi, r.fontVariant), this.fontWeight = F(A, Ui, r.fontWeight), this.letterSpacing = F(A, Oo, r.letterSpacing), this.lineBreak = F(A, Vo, r.lineBreak), this.lineHeight = F(A, ko, r.lineHeight), this.listStyleImage = F(A, Ro, r.listStyleImage), this.listStylePosition = F(A, No, r.listStylePosition), this.listStyleType = F(A, Nt, r.listStyleType), this.marginTop = F(A, Po, r.marginTop), this.marginRight = F(A, Xo, r.marginRight), this.marginBottom = F(A, Jo, r.marginBottom), this.marginLeft = F(A, Yo, r.marginLeft), this.opacity = F(A, gi, r.opacity);
2391
+ this.animationDuration = F(A, Hi, r.animationDuration), this.backgroundClip = F(A, zs, r.backgroundClip), this.backgroundColor = F(A, $s, r.backgroundColor), this.backgroundImage = F(A, ao, r.backgroundImage), this.backgroundOrigin = F(A, Qo, r.backgroundOrigin), this.backgroundPosition = F(A, co, r.backgroundPosition), this.backgroundRepeat = F(A, go, r.backgroundRepeat), this.backgroundSize = F(A, uo, r.backgroundSize), this.borderTopColor = F(A, Uo, r.borderTopColor), this.borderRightColor = F(A, Co, r.borderRightColor), this.borderBottomColor = F(A, Fo, r.borderBottomColor), this.borderLeftColor = F(A, ho, r.borderLeftColor), this.borderTopLeftRadius = F(A, fo, r.borderTopLeftRadius), this.borderTopRightRadius = F(A, po, r.borderTopRightRadius), this.borderBottomRightRadius = F(A, Ho, r.borderBottomRightRadius), this.borderBottomLeftRadius = F(A, Eo, r.borderBottomLeftRadius), this.borderTopStyle = F(A, Io, r.borderTopStyle), this.borderRightStyle = F(A, yo, r.borderRightStyle), this.borderBottomStyle = F(A, Ko, r.borderBottomStyle), this.borderLeftStyle = F(A, mo, r.borderLeftStyle), this.borderTopWidth = F(A, Lo, r.borderTopWidth), this.borderRightWidth = F(A, vo, r.borderRightWidth), this.borderBottomWidth = F(A, bo, r.borderBottomWidth), this.borderLeftWidth = F(A, Do, r.borderLeftWidth), this.boxShadow = F(A, Ii, r.boxShadow), this.color = F(A, xo, r.color), this.direction = F(A, Mo, r.direction), this.display = F(A, So, r.display), this.float = F(A, Go, r.cssFloat), this.fontFamily = F(A, li, r.fontFamily), this.fontSize = F(A, Ui, r.fontSize), this.fontStyle = F(A, hi, r.fontStyle), this.fontVariant = F(A, Fi, r.fontVariant), this.fontWeight = F(A, Ci, r.fontWeight), this.letterSpacing = F(A, Oo, r.letterSpacing), this.lineBreak = F(A, Vo, r.lineBreak), this.lineHeight = F(A, ko, r.lineHeight), this.listStyleImage = F(A, Ro, r.listStyleImage), this.listStylePosition = F(A, No, r.listStylePosition), this.listStyleType = F(A, Nt, r.listStyleType), this.marginTop = F(A, Po, r.marginTop), this.marginRight = F(A, Xo, r.marginRight), this.marginBottom = F(A, Jo, r.marginBottom), this.marginLeft = F(A, Yo, r.marginLeft), this.opacity = F(A, gi, r.opacity);
2392
2392
  var n = F(A, Wo, r.overflow);
2393
2393
  this.overflowX = n[0], this.overflowY = n[n.length > 1 ? 1 : 0], this.overflowWrap = F(A, Zo, r.overflowWrap), this.paddingTop = F(A, _o, r.paddingTop), this.paddingRight = F(A, qo, r.paddingRight), this.paddingBottom = F(A, jo, r.paddingBottom), this.paddingLeft = F(A, zo, r.paddingLeft), this.paintOrder = F(A, yi, r.paintOrder), this.position = F(A, Ai, r.position), this.textAlign = F(A, $o, r.textAlign), this.textDecorationColor = F(A, wi, (t = r.textDecorationColor) !== null && t !== void 0 ? t : r.color), this.textDecorationLine = F(A, ui, (B = r.textDecorationLine) !== null && B !== void 0 ? B : r.textDecoration), this.textShadow = F(A, ei, r.textShadow), this.textTransform = F(A, ti, r.textTransform), this.transform = F(A, ri, r.transform), this.transformOrigin = F(A, ii, r.transformOrigin), this.visibility = F(A, ai, r.visibility), this.webkitTextStrokeColor = F(A, Ki, r.webkitTextStrokeColor), this.webkitTextStrokeWidth = F(A, mi, r.webkitTextStrokeWidth), this.wordBreak = F(A, Qi, r.wordBreak), this.zIndex = F(A, ci, r.zIndex);
2394
2394
  }
@@ -2449,7 +2449,7 @@ var Qi = {
2449
2449
  return e;
2450
2450
  }()
2451
2451
  ), F = function(e, A, r) {
2452
- var t = new UB(), B = r !== null && typeof r < "u" ? r.toString() : A.initialValue;
2452
+ var t = new CB(), B = r !== null && typeof r < "u" ? r.toString() : A.initialValue;
2453
2453
  t.write(B);
2454
2454
  var n = new FB(t.read());
2455
2455
  switch (A.type) {
@@ -2531,7 +2531,7 @@ var Mi = function(e) {
2531
2531
  }, Ti = function(e) {
2532
2532
  for (var A = e.length, r = [], t = 0; t < A; t += 4) r.push(e[t + 3] << 24 | e[t + 2] << 16 | e[t + 1] << 8 | e[t]);
2533
2533
  return r;
2534
- }, DA = 5, Ar = 11, Ct = 2, Gi = Ar - DA, GB = 65536 >> DA, Oi = 1 << DA, Ut = Oi - 1, Vi = 1024 >> DA, ki = GB + Vi, Ri = ki, Ni = 32, Pi = Ri + Ni, Xi = 65536 >> Ar, Ji = 1 << Gi, Yi = Ji - 1, br = function(e, A, r) {
2534
+ }, DA = 5, Ar = 11, Ut = 2, Gi = Ar - DA, GB = 65536 >> DA, Oi = 1 << DA, Ct = Oi - 1, Vi = 1024 >> DA, ki = GB + Vi, Ri = ki, Ni = 32, Pi = Ri + Ni, Xi = 65536 >> Ar, Ji = 1 << Gi, Yi = Ji - 1, br = function(e, A, r) {
2535
2535
  return e.slice ? e.slice(A, r) : new Uint16Array(Array.prototype.slice.call(e, A, r));
2536
2536
  }, Wi = function(e, A, r) {
2537
2537
  return e.slice ? e.slice(A, r) : new Uint32Array(Array.prototype.slice.call(e, A, r));
@@ -2547,9 +2547,9 @@ var Mi = function(e) {
2547
2547
  return e.prototype.get = function(A) {
2548
2548
  var r;
2549
2549
  if (A >= 0) {
2550
- if (A < 55296 || A > 56319 && A <= 65535) return r = this.index[A >> DA], r = (r << Ct) + (A & Ut), this.data[r];
2551
- if (A <= 65535) return r = this.index[GB + (A - 55296 >> DA)], r = (r << Ct) + (A & Ut), this.data[r];
2552
- if (A < this.highStart) return r = Pi - Xi + (A >> Ar), r = this.index[r], r += A >> DA & Yi, r = this.index[r], r = (r << Ct) + (A & Ut), this.data[r];
2550
+ if (A < 55296 || A > 56319 && A <= 65535) return r = this.index[A >> DA], r = (r << Ut) + (A & Ct), this.data[r];
2551
+ if (A <= 65535) return r = this.index[GB + (A - 55296 >> DA)], r = (r << Ut) + (A & Ct), this.data[r];
2552
+ if (A < this.highStart) return r = Pi - Xi + (A >> Ar), r = this.index[r], r += A >> DA & Yi, r = this.index[r], r = (r << Ut) + (A & Ct), this.data[r];
2553
2553
  if (A <= 1114111) return this.data[this.highValueIndex];
2554
2554
  }
2555
2555
  return this.errorValue;
@@ -2803,10 +2803,10 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
2803
2803
  return t.segment;
2804
2804
  });
2805
2805
  }
2806
- return Ua(e, A);
2806
+ return Ca(e, A);
2807
2807
  }, la = function(e, A) {
2808
2808
  return A.letterSpacing !== 0 ? er(e) : ua(e, A);
2809
- }, Ca = [32, 160, 4961, 65792, 65793, 4153, 4241], Ua = function(e, A) {
2809
+ }, Ua = [32, 160, 4961, 65792, 65793, 4153, 4241], Ca = function(e, A) {
2810
2810
  for (var r = Pn(e, {
2811
2811
  lineBreak: A.lineBreak,
2812
2812
  wordBreak: A.overflowWrap === "break-word" ? "break-word" : A.wordBreak
@@ -2814,7 +2814,7 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
2814
2814
  if (B.value) {
2815
2815
  var s = B.value.slice(), i = $e(s), o = "";
2816
2816
  i.forEach(function(a) {
2817
- Ca.indexOf(a) === -1 ? o += M(a) : (o.length && t.push(o), t.push(M(a)), o = "");
2817
+ Ua.indexOf(a) === -1 ? o += M(a) : (o.length && t.push(o), t.push(M(a)), o = "");
2818
2818
  }), o.length && t.push(o);
2819
2819
  }
2820
2820
  }; !(B = r.next()).done; ) n();
@@ -3089,13 +3089,13 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3089
3089
  return zB(Math.abs(e), t, !1, function(B) {
3090
3090
  return A[Math.floor(B % t)];
3091
3091
  }) + r;
3092
- }, kA = 1, lA = 2, CA = 4, Be = 8, QA = function(e, A, r, t, B, n) {
3092
+ }, kA = 1, lA = 2, UA = 4, Be = 8, QA = function(e, A, r, t, B, n) {
3093
3093
  if (e < -9999 || e > 9999) return ge(e, 4, B.length > 0);
3094
3094
  var s = Math.abs(e), i = B;
3095
3095
  if (s === 0) return A[0] + i;
3096
3096
  for (var o = 0; s > 0 && o <= 4; o++) {
3097
3097
  var a = s % 10;
3098
- a === 0 && G(n, kA) && i !== "" ? i = A[a] + i : a > 1 || a === 1 && o === 0 || a === 1 && o === 1 && G(n, lA) || a === 1 && o === 1 && G(n, CA) && e > 100 || a === 1 && o > 1 && G(n, Be) ? i = A[a] + (o > 0 ? r[o - 1] : "") + i : a === 1 && o > 0 && (i = r[o - 1] + i), s = Math.floor(s / 10);
3098
+ a === 0 && G(n, kA) && i !== "" ? i = A[a] + i : a > 1 || a === 1 && o === 0 || a === 1 && o === 1 && G(n, lA) || a === 1 && o === 1 && G(n, UA) && e > 100 || a === 1 && o > 1 && G(n, Be) ? i = A[a] + (o > 0 ? r[o - 1] : "") + i : a === 1 && o > 0 && (i = r[o - 1] + i), s = Math.floor(s / 10);
3099
3099
  }
3100
3100
  return (e < 0 ? t : "") + i;
3101
3101
  }, qr = "十百千萬", jr = "拾佰仟萬", zr = "マイナス", Ht = "마이너스", ge = function(e, A, r) {
@@ -3140,23 +3140,23 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3140
3140
  return mA(e, "甲乙丙丁戊己庚辛壬癸", B);
3141
3141
  case 17:
3142
3142
  case 48:
3143
- return QA(e, "零一二三四五六七八九", qr, "負", B, lA | CA | Be);
3143
+ return QA(e, "零一二三四五六七八九", qr, "負", B, lA | UA | Be);
3144
3144
  case 47:
3145
- return QA(e, "零壹貳參肆伍陸柒捌玖", jr, "負", B, kA | lA | CA | Be);
3145
+ return QA(e, "零壹貳參肆伍陸柒捌玖", jr, "負", B, kA | lA | UA | Be);
3146
3146
  case 42:
3147
- return QA(e, "零一二三四五六七八九", qr, "负", B, lA | CA | Be);
3147
+ return QA(e, "零一二三四五六七八九", qr, "负", B, lA | UA | Be);
3148
3148
  case 41:
3149
- return QA(e, "零壹贰叁肆伍陆柒捌玖", jr, "负", B, kA | lA | CA | Be);
3149
+ return QA(e, "零壹贰叁肆伍陆柒捌玖", jr, "负", B, kA | lA | UA | Be);
3150
3150
  case 26:
3151
3151
  return QA(e, "〇一二三四五六七八九", "十百千万", zr, B, 0);
3152
3152
  case 25:
3153
- return QA(e, "零壱弐参四伍六七八九", "拾百千万", zr, B, kA | lA | CA);
3153
+ return QA(e, "零壱弐参四伍六七八九", "拾百千万", zr, B, kA | lA | UA);
3154
3154
  case 31:
3155
- return QA(e, "영일이삼사오육칠팔구", "십백천만", Ht, n, kA | lA | CA);
3155
+ return QA(e, "영일이삼사오육칠팔구", "십백천만", Ht, n, kA | lA | UA);
3156
3156
  case 33:
3157
3157
  return QA(e, "零一二三四五六七八九", "十百千萬", Ht, n, 0);
3158
3158
  case 32:
3159
- return QA(e, "零壹貳參四五六七八九", "拾百千", Ht, n, kA | lA | CA);
3159
+ return QA(e, "零壹貳參四五六七八九", "拾百千", Ht, n, kA | lA | UA);
3160
3160
  case 18:
3161
3161
  return x(e, 2406, 2415, !0, t);
3162
3162
  case 20:
@@ -3337,8 +3337,8 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3337
3337
  g.src = c.value, g.style.opacity = "1", a.appendChild(g);
3338
3338
  } else if (c.type === 18) {
3339
3339
  if (c.name === "attr") {
3340
- var U = c.values.filter(v);
3341
- U.length && a.appendChild(i.createTextNode(A.getAttribute(U[0].value) || ""));
3340
+ var C = c.values.filter(v);
3341
+ C.length && a.appendChild(i.createTextNode(A.getAttribute(C[0].value) || ""));
3342
3342
  } else if (c.name === "counter") {
3343
3343
  var w = c.values.filter(JA), u = w[0], H = w[1];
3344
3344
  if (u && v(u)) {
@@ -3348,8 +3348,8 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3348
3348
  } else if (c.name === "counters") {
3349
3349
  var K = c.values.filter(JA), u = K[0], E = K[1], H = K[2];
3350
3350
  if (u && v(u)) {
3351
- var f = n.counters.getCounterValues(u.value), C = H && v(H) ? Nt.parse(n.context, H.value) : 3, I = E && E.type === 0 ? E.value : "", y = f.map(function(Y) {
3352
- return ge(Y, C, !1);
3351
+ var f = n.counters.getCounterValues(u.value), U = H && v(H) ? Nt.parse(n.context, H.value) : 3, I = E && E.type === 0 ? E.value : "", y = f.map(function(Y) {
3352
+ return ge(Y, U, !1);
3353
3353
  }).join(I);
3354
3354
  a.appendChild(i.createTextNode(y));
3355
3355
  }
@@ -3568,12 +3568,12 @@ var Oa = function(e, A) {
3568
3568
  /** @class */
3569
3569
  /* @__PURE__ */ function() {
3570
3570
  function e(A) {
3571
- var r = A.styles, t = A.bounds, B = te(r.borderTopLeftRadius, t.width, t.height), n = B[0], s = B[1], i = te(r.borderTopRightRadius, t.width, t.height), o = i[0], a = i[1], Q = te(r.borderBottomRightRadius, t.width, t.height), c = Q[0], g = Q[1], U = te(r.borderBottomLeftRadius, t.width, t.height), w = U[0], u = U[1], H = [];
3571
+ var r = A.styles, t = A.bounds, B = te(r.borderTopLeftRadius, t.width, t.height), n = B[0], s = B[1], i = te(r.borderTopRightRadius, t.width, t.height), o = i[0], a = i[1], Q = te(r.borderBottomRightRadius, t.width, t.height), c = Q[0], g = Q[1], C = te(r.borderBottomLeftRadius, t.width, t.height), w = C[0], u = C[1], H = [];
3572
3572
  H.push((n + o) / t.width), H.push((w + c) / t.width), H.push((s + u) / t.height), H.push((a + g) / t.height);
3573
3573
  var d = Math.max.apply(Math, H);
3574
3574
  d > 1 && (n /= d, s /= d, o /= d, a /= d, c /= d, g /= d, w /= d, u /= d);
3575
- var h = t.width - o, K = t.height - g, E = t.width - c, f = t.height - u, C = r.borderTopWidth, I = r.borderRightWidth, y = r.borderBottomWidth, p = r.borderLeftWidth, S = b(r.paddingTop, A.bounds.width), Y = b(r.paddingRight, A.bounds.width), q = b(r.paddingBottom, A.bounds.width), L = b(r.paddingLeft, A.bounds.width);
3576
- this.topLeftBorderDoubleOuterBox = n > 0 || s > 0 ? D(t.left + p / 3, t.top + C / 3, n - p / 3, s - C / 3, m.TOP_LEFT) : new l(t.left + p / 3, t.top + C / 3), this.topRightBorderDoubleOuterBox = n > 0 || s > 0 ? D(t.left + h, t.top + C / 3, o - I / 3, a - C / 3, m.TOP_RIGHT) : new l(t.left + t.width - I / 3, t.top + C / 3), this.bottomRightBorderDoubleOuterBox = c > 0 || g > 0 ? D(t.left + E, t.top + K, c - I / 3, g - y / 3, m.BOTTOM_RIGHT) : new l(t.left + t.width - I / 3, t.top + t.height - y / 3), this.bottomLeftBorderDoubleOuterBox = w > 0 || u > 0 ? D(t.left + p / 3, t.top + f, w - p / 3, u - y / 3, m.BOTTOM_LEFT) : new l(t.left + p / 3, t.top + t.height - y / 3), this.topLeftBorderDoubleInnerBox = n > 0 || s > 0 ? D(t.left + p * 2 / 3, t.top + C * 2 / 3, n - p * 2 / 3, s - C * 2 / 3, m.TOP_LEFT) : new l(t.left + p * 2 / 3, t.top + C * 2 / 3), this.topRightBorderDoubleInnerBox = n > 0 || s > 0 ? D(t.left + h, t.top + C * 2 / 3, o - I * 2 / 3, a - C * 2 / 3, m.TOP_RIGHT) : new l(t.left + t.width - I * 2 / 3, t.top + C * 2 / 3), this.bottomRightBorderDoubleInnerBox = c > 0 || g > 0 ? D(t.left + E, t.top + K, c - I * 2 / 3, g - y * 2 / 3, m.BOTTOM_RIGHT) : new l(t.left + t.width - I * 2 / 3, t.top + t.height - y * 2 / 3), this.bottomLeftBorderDoubleInnerBox = w > 0 || u > 0 ? D(t.left + p * 2 / 3, t.top + f, w - p * 2 / 3, u - y * 2 / 3, m.BOTTOM_LEFT) : new l(t.left + p * 2 / 3, t.top + t.height - y * 2 / 3), this.topLeftBorderStroke = n > 0 || s > 0 ? D(t.left + p / 2, t.top + C / 2, n - p / 2, s - C / 2, m.TOP_LEFT) : new l(t.left + p / 2, t.top + C / 2), this.topRightBorderStroke = n > 0 || s > 0 ? D(t.left + h, t.top + C / 2, o - I / 2, a - C / 2, m.TOP_RIGHT) : new l(t.left + t.width - I / 2, t.top + C / 2), this.bottomRightBorderStroke = c > 0 || g > 0 ? D(t.left + E, t.top + K, c - I / 2, g - y / 2, m.BOTTOM_RIGHT) : new l(t.left + t.width - I / 2, t.top + t.height - y / 2), this.bottomLeftBorderStroke = w > 0 || u > 0 ? D(t.left + p / 2, t.top + f, w - p / 2, u - y / 2, m.BOTTOM_LEFT) : new l(t.left + p / 2, t.top + t.height - y / 2), this.topLeftBorderBox = n > 0 || s > 0 ? D(t.left, t.top, n, s, m.TOP_LEFT) : new l(t.left, t.top), this.topRightBorderBox = o > 0 || a > 0 ? D(t.left + h, t.top, o, a, m.TOP_RIGHT) : new l(t.left + t.width, t.top), this.bottomRightBorderBox = c > 0 || g > 0 ? D(t.left + E, t.top + K, c, g, m.BOTTOM_RIGHT) : new l(t.left + t.width, t.top + t.height), this.bottomLeftBorderBox = w > 0 || u > 0 ? D(t.left, t.top + f, w, u, m.BOTTOM_LEFT) : new l(t.left, t.top + t.height), this.topLeftPaddingBox = n > 0 || s > 0 ? D(t.left + p, t.top + C, Math.max(0, n - p), Math.max(0, s - C), m.TOP_LEFT) : new l(t.left + p, t.top + C), this.topRightPaddingBox = o > 0 || a > 0 ? D(t.left + Math.min(h, t.width - I), t.top + C, h > t.width + I ? 0 : Math.max(0, o - I), Math.max(0, a - C), m.TOP_RIGHT) : new l(t.left + t.width - I, t.top + C), this.bottomRightPaddingBox = c > 0 || g > 0 ? D(t.left + Math.min(E, t.width - p), t.top + Math.min(K, t.height - y), Math.max(0, c - I), Math.max(0, g - y), m.BOTTOM_RIGHT) : new l(t.left + t.width - I, t.top + t.height - y), this.bottomLeftPaddingBox = w > 0 || u > 0 ? D(t.left + p, t.top + Math.min(f, t.height - y), Math.max(0, w - p), Math.max(0, u - y), m.BOTTOM_LEFT) : new l(t.left + p, t.top + t.height - y), this.topLeftContentBox = n > 0 || s > 0 ? D(t.left + p + L, t.top + C + S, Math.max(0, n - (p + L)), Math.max(0, s - (C + S)), m.TOP_LEFT) : new l(t.left + p + L, t.top + C + S), this.topRightContentBox = o > 0 || a > 0 ? D(t.left + Math.min(h, t.width + p + L), t.top + C + S, h > t.width + p + L ? 0 : o - p + L, a - (C + S), m.TOP_RIGHT) : new l(t.left + t.width - (I + Y), t.top + C + S), this.bottomRightContentBox = c > 0 || g > 0 ? D(t.left + Math.min(E, t.width - (p + L)), t.top + Math.min(K, t.height + C + S), Math.max(0, c - (I + Y)), g - (y + q), m.BOTTOM_RIGHT) : new l(t.left + t.width - (I + Y), t.top + t.height - (y + q)), this.bottomLeftContentBox = w > 0 || u > 0 ? D(t.left + p + L, t.top + f, Math.max(0, w - (p + L)), u - (y + q), m.BOTTOM_LEFT) : new l(t.left + p + L, t.top + t.height - (y + q));
3575
+ var h = t.width - o, K = t.height - g, E = t.width - c, f = t.height - u, U = r.borderTopWidth, I = r.borderRightWidth, y = r.borderBottomWidth, p = r.borderLeftWidth, S = b(r.paddingTop, A.bounds.width), Y = b(r.paddingRight, A.bounds.width), q = b(r.paddingBottom, A.bounds.width), L = b(r.paddingLeft, A.bounds.width);
3576
+ this.topLeftBorderDoubleOuterBox = n > 0 || s > 0 ? D(t.left + p / 3, t.top + U / 3, n - p / 3, s - U / 3, m.TOP_LEFT) : new l(t.left + p / 3, t.top + U / 3), this.topRightBorderDoubleOuterBox = n > 0 || s > 0 ? D(t.left + h, t.top + U / 3, o - I / 3, a - U / 3, m.TOP_RIGHT) : new l(t.left + t.width - I / 3, t.top + U / 3), this.bottomRightBorderDoubleOuterBox = c > 0 || g > 0 ? D(t.left + E, t.top + K, c - I / 3, g - y / 3, m.BOTTOM_RIGHT) : new l(t.left + t.width - I / 3, t.top + t.height - y / 3), this.bottomLeftBorderDoubleOuterBox = w > 0 || u > 0 ? D(t.left + p / 3, t.top + f, w - p / 3, u - y / 3, m.BOTTOM_LEFT) : new l(t.left + p / 3, t.top + t.height - y / 3), this.topLeftBorderDoubleInnerBox = n > 0 || s > 0 ? D(t.left + p * 2 / 3, t.top + U * 2 / 3, n - p * 2 / 3, s - U * 2 / 3, m.TOP_LEFT) : new l(t.left + p * 2 / 3, t.top + U * 2 / 3), this.topRightBorderDoubleInnerBox = n > 0 || s > 0 ? D(t.left + h, t.top + U * 2 / 3, o - I * 2 / 3, a - U * 2 / 3, m.TOP_RIGHT) : new l(t.left + t.width - I * 2 / 3, t.top + U * 2 / 3), this.bottomRightBorderDoubleInnerBox = c > 0 || g > 0 ? D(t.left + E, t.top + K, c - I * 2 / 3, g - y * 2 / 3, m.BOTTOM_RIGHT) : new l(t.left + t.width - I * 2 / 3, t.top + t.height - y * 2 / 3), this.bottomLeftBorderDoubleInnerBox = w > 0 || u > 0 ? D(t.left + p * 2 / 3, t.top + f, w - p * 2 / 3, u - y * 2 / 3, m.BOTTOM_LEFT) : new l(t.left + p * 2 / 3, t.top + t.height - y * 2 / 3), this.topLeftBorderStroke = n > 0 || s > 0 ? D(t.left + p / 2, t.top + U / 2, n - p / 2, s - U / 2, m.TOP_LEFT) : new l(t.left + p / 2, t.top + U / 2), this.topRightBorderStroke = n > 0 || s > 0 ? D(t.left + h, t.top + U / 2, o - I / 2, a - U / 2, m.TOP_RIGHT) : new l(t.left + t.width - I / 2, t.top + U / 2), this.bottomRightBorderStroke = c > 0 || g > 0 ? D(t.left + E, t.top + K, c - I / 2, g - y / 2, m.BOTTOM_RIGHT) : new l(t.left + t.width - I / 2, t.top + t.height - y / 2), this.bottomLeftBorderStroke = w > 0 || u > 0 ? D(t.left + p / 2, t.top + f, w - p / 2, u - y / 2, m.BOTTOM_LEFT) : new l(t.left + p / 2, t.top + t.height - y / 2), this.topLeftBorderBox = n > 0 || s > 0 ? D(t.left, t.top, n, s, m.TOP_LEFT) : new l(t.left, t.top), this.topRightBorderBox = o > 0 || a > 0 ? D(t.left + h, t.top, o, a, m.TOP_RIGHT) : new l(t.left + t.width, t.top), this.bottomRightBorderBox = c > 0 || g > 0 ? D(t.left + E, t.top + K, c, g, m.BOTTOM_RIGHT) : new l(t.left + t.width, t.top + t.height), this.bottomLeftBorderBox = w > 0 || u > 0 ? D(t.left, t.top + f, w, u, m.BOTTOM_LEFT) : new l(t.left, t.top + t.height), this.topLeftPaddingBox = n > 0 || s > 0 ? D(t.left + p, t.top + U, Math.max(0, n - p), Math.max(0, s - U), m.TOP_LEFT) : new l(t.left + p, t.top + U), this.topRightPaddingBox = o > 0 || a > 0 ? D(t.left + Math.min(h, t.width - I), t.top + U, h > t.width + I ? 0 : Math.max(0, o - I), Math.max(0, a - U), m.TOP_RIGHT) : new l(t.left + t.width - I, t.top + U), this.bottomRightPaddingBox = c > 0 || g > 0 ? D(t.left + Math.min(E, t.width - p), t.top + Math.min(K, t.height - y), Math.max(0, c - I), Math.max(0, g - y), m.BOTTOM_RIGHT) : new l(t.left + t.width - I, t.top + t.height - y), this.bottomLeftPaddingBox = w > 0 || u > 0 ? D(t.left + p, t.top + Math.min(f, t.height - y), Math.max(0, w - p), Math.max(0, u - y), m.BOTTOM_LEFT) : new l(t.left + p, t.top + t.height - y), this.topLeftContentBox = n > 0 || s > 0 ? D(t.left + p + L, t.top + U + S, Math.max(0, n - (p + L)), Math.max(0, s - (U + S)), m.TOP_LEFT) : new l(t.left + p + L, t.top + U + S), this.topRightContentBox = o > 0 || a > 0 ? D(t.left + Math.min(h, t.width + p + L), t.top + U + S, h > t.width + p + L ? 0 : o - p + L, a - (U + S), m.TOP_RIGHT) : new l(t.left + t.width - (I + Y), t.top + U + S), this.bottomRightContentBox = c > 0 || g > 0 ? D(t.left + Math.min(E, t.width - (p + L)), t.top + Math.min(K, t.height + U + S), Math.max(0, c - (I + Y)), g - (y + q), m.BOTTOM_RIGHT) : new l(t.left + t.width - (I + Y), t.top + t.height - (y + q)), this.bottomLeftContentBox = w > 0 || u > 0 ? D(t.left + p + L, t.top + f, Math.max(0, w - (p + L)), u - (y + q), m.BOTTOM_LEFT) : new l(t.left + p + L, t.top + t.height - (y + q));
3577
3577
  }
3578
3578
  return e;
3579
3579
  }()
@@ -3742,10 +3742,10 @@ var D = function(e, A, r, t, B) {
3742
3742
  return c > w.element.container.styles.zIndex.order ? (g = u, !1) : g > 0;
3743
3743
  }), a.negativeZIndex.splice(g, 0, Q);
3744
3744
  } else if (c > 0) {
3745
- var U = 0;
3745
+ var C = 0;
3746
3746
  a.positiveZIndex.some(function(w, u) {
3747
- return c >= w.element.container.styles.zIndex.order ? (U = u + 1, !1) : U > 0;
3748
- }), a.positiveZIndex.splice(U, 0, Q);
3747
+ return c >= w.element.container.styles.zIndex.order ? (C = u + 1, !1) : C > 0;
3748
+ }), a.positiveZIndex.splice(C, 0, Q);
3749
3749
  } else a.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q);
3750
3750
  } else B.styles.isFloating() ? a.nonPositionedFloats.push(Q) : a.nonPositionedInlineLevel.push(Q);
3751
3751
  qt(i, Q, n ? Q : r, o);
@@ -3829,13 +3829,13 @@ var D = function(e, A, r, t, B) {
3829
3829
  }, lQ = function(e, A) {
3830
3830
  return e === 0 ? A.bounds : e === 2 ? je(A) : nn(A);
3831
3831
  }, Kt = function(e, A, r) {
3832
- var t = uQ(RA(e.styles.backgroundOrigin, A), e), B = lQ(RA(e.styles.backgroundClip, A), e), n = CQ(RA(e.styles.backgroundSize, A), r, t), s = n[0], i = n[1], o = te(RA(e.styles.backgroundPosition, A), t.width - s, t.height - i), a = UQ(RA(e.styles.backgroundRepeat, A), o, n, t, B), Q = Math.round(t.left + o[0]), c = Math.round(t.top + o[1]);
3832
+ var t = uQ(RA(e.styles.backgroundOrigin, A), e), B = lQ(RA(e.styles.backgroundClip, A), e), n = UQ(RA(e.styles.backgroundSize, A), r, t), s = n[0], i = n[1], o = te(RA(e.styles.backgroundPosition, A), t.width - s, t.height - i), a = CQ(RA(e.styles.backgroundRepeat, A), o, n, t, B), Q = Math.round(t.left + o[0]), c = Math.round(t.top + o[1]);
3833
3833
  return [a, Q, c, s, i];
3834
3834
  }, VA = function(e) {
3835
3835
  return v(e) && e.value === XA.AUTO;
3836
3836
  }, Ge = function(e) {
3837
3837
  return typeof e == "number";
3838
- }, CQ = function(e, A, r) {
3838
+ }, UQ = function(e, A, r) {
3839
3839
  var t = A[0], B = A[1], n = A[2], s = e[0], i = e[1];
3840
3840
  if (!s) return [0, 0];
3841
3841
  if (T(s) && i && T(i)) return [b(s, r.width), b(i, r.height)];
@@ -3852,8 +3852,8 @@ var D = function(e, A, r, t, B) {
3852
3852
  if (Q && c) return [t, B];
3853
3853
  if (!o && !g) return [r.width, r.height];
3854
3854
  if (g && o) {
3855
- var U = Q ? t : B * n, w = c ? B : t / n;
3856
- return [U, w];
3855
+ var C = Q ? t : B * n, w = c ? B : t / n;
3856
+ return [C, w];
3857
3857
  }
3858
3858
  var u = Q ? t : r.width, H = c ? B : r.height;
3859
3859
  return [u, H];
@@ -3868,7 +3868,7 @@ var D = function(e, A, r, t, B) {
3868
3868
  }, RA = function(e, A) {
3869
3869
  var r = e[A];
3870
3870
  return typeof r > "u" ? e[0] : r;
3871
- }, UQ = function(e, A, r, t, B) {
3871
+ }, CQ = function(e, A, r, t, B) {
3872
3872
  var n = A[0], s = A[1], i = r[0], o = r[1];
3873
3873
  switch (e) {
3874
3874
  case 2:
@@ -3983,7 +3983,7 @@ var D = function(e, A, r, t, B) {
3983
3983
  }, A.prototype.renderTextNode = function(r, t) {
3984
3984
  return X(this, void 0, void 0, function() {
3985
3985
  var B, n, s, i, o, a, Q, c, g = this;
3986
- return N(this, function(U) {
3986
+ return N(this, function(C) {
3987
3987
  return B = this.createFontStyle(t), n = B[0], s = B[1], i = B[2], this.ctx.font = n, this.ctx.direction = t.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", o = this.fontMetrics.getMetrics(s, i), a = o.baseline, Q = o.middle, c = t.paintOrder, r.textBounds.forEach(function(w) {
3988
3988
  c.forEach(function(u) {
3989
3989
  switch (u) {
@@ -4024,38 +4024,38 @@ var D = function(e, A, r, t, B) {
4024
4024
  }
4025
4025
  }, A.prototype.renderNodeContent = function(r) {
4026
4026
  return X(this, void 0, void 0, function() {
4027
- var t, B, n, s, i, o, h, h, a, Q, c, g, E, U, w, f, u, H, d, h, K, E, f;
4028
- return N(this, function(C) {
4029
- switch (C.label) {
4027
+ var t, B, n, s, i, o, h, h, a, Q, c, g, E, C, w, f, u, H, d, h, K, E, f;
4028
+ return N(this, function(U) {
4029
+ switch (U.label) {
4030
4030
  case 0:
4031
4031
  this.applyEffects(r.getEffects(
4032
4032
  4
4033
4033
  /* CONTENT */
4034
- )), t = r.container, B = r.curves, n = t.styles, s = 0, i = t.textNodes, C.label = 1;
4034
+ )), t = r.container, B = r.curves, n = t.styles, s = 0, i = t.textNodes, U.label = 1;
4035
4035
  case 1:
4036
4036
  return s < i.length ? (o = i[s], [4, this.renderTextNode(o, n)]) : [3, 4];
4037
4037
  case 2:
4038
- C.sent(), C.label = 3;
4038
+ U.sent(), U.label = 3;
4039
4039
  case 3:
4040
4040
  return s++, [3, 1];
4041
4041
  case 4:
4042
4042
  if (!(t instanceof OB)) return [3, 8];
4043
- C.label = 5;
4043
+ U.label = 5;
4044
4044
  case 5:
4045
- return C.trys.push([5, 7, , 8]), [4, this.context.cache.match(t.src)];
4045
+ return U.trys.push([5, 7, , 8]), [4, this.context.cache.match(t.src)];
4046
4046
  case 6:
4047
- return h = C.sent(), this.renderReplacedElement(t, B, h), [3, 8];
4047
+ return h = U.sent(), this.renderReplacedElement(t, B, h), [3, 8];
4048
4048
  case 7:
4049
- return C.sent(), this.context.logger.error("Error loading image " + t.src), [3, 8];
4049
+ return U.sent(), this.context.logger.error("Error loading image " + t.src), [3, 8];
4050
4050
  case 8:
4051
4051
  if (t instanceof VB && this.renderReplacedElement(t, B, t.canvas), !(t instanceof kB)) return [3, 12];
4052
- C.label = 9;
4052
+ U.label = 9;
4053
4053
  case 9:
4054
- return C.trys.push([9, 11, , 12]), [4, this.context.cache.match(t.svg)];
4054
+ return U.trys.push([9, 11, , 12]), [4, this.context.cache.match(t.svg)];
4055
4055
  case 10:
4056
- return h = C.sent(), this.renderReplacedElement(t, B, h), [3, 12];
4056
+ return h = U.sent(), this.renderReplacedElement(t, B, h), [3, 12];
4057
4057
  case 11:
4058
- return C.sent(), this.context.logger.error("Error loading svg " + t.svg.substring(0, 255)), [3, 12];
4058
+ return U.sent(), this.context.logger.error("Error loading svg " + t.svg.substring(0, 255)), [3, 12];
4059
4059
  case 12:
4060
4060
  return t instanceof XB && t.tree ? (a = new A(this.context, {
4061
4061
  scale: this.options.scale,
@@ -4066,10 +4066,10 @@ var D = function(e, A, r, t, B) {
4066
4066
  height: t.height
4067
4067
  }), [4, a.render(t.tree)]) : [3, 14];
4068
4068
  case 13:
4069
- Q = C.sent(), t.width && t.height && this.ctx.drawImage(Q, 0, 0, t.width, t.height, t.bounds.left, t.bounds.top, t.bounds.width, t.bounds.height), C.label = 14;
4069
+ Q = U.sent(), t.width && t.height && this.ctx.drawImage(Q, 0, 0, t.width, t.height, t.bounds.left, t.bounds.top, t.bounds.width, t.bounds.height), U.label = 14;
4070
4070
  case 14:
4071
4071
  if (t instanceof tr && (c = Math.min(t.bounds.width, t.bounds.height), t.type === Je ? t.checked && (this.ctx.save(), this.path([new l(t.bounds.left + c * 0.39363, t.bounds.top + c * 0.79), new l(t.bounds.left + c * 0.16, t.bounds.top + c * 0.5549), new l(t.bounds.left + c * 0.27347, t.bounds.top + c * 0.44071), new l(t.bounds.left + c * 0.39694, t.bounds.top + c * 0.5649), new l(t.bounds.left + c * 0.72983, t.bounds.top + c * 0.23), new l(t.bounds.left + c * 0.84, t.bounds.top + c * 0.34085), new l(t.bounds.left + c * 0.39363, t.bounds.top + c * 0.79)]), this.ctx.fillStyle = O(Xr), this.ctx.fill(), this.ctx.restore()) : t.type === Ye && t.checked && (this.ctx.save(), this.ctx.beginPath(), this.ctx.arc(t.bounds.left + c / 2, t.bounds.top + c / 2, c / 4, 0, Math.PI * 2, !0), this.ctx.fillStyle = O(Xr), this.ctx.fill(), this.ctx.restore())), pQ(t) && t.value.length) {
4072
- switch (g = this.createFontStyle(n), E = g[0], U = g[1], w = this.fontMetrics.getMetrics(E, U).baseline, this.ctx.font = E, this.ctx.fillStyle = O(n.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = EQ(t.styles.textAlign), f = je(t), u = 0, t.styles.textAlign) {
4072
+ switch (g = this.createFontStyle(n), E = g[0], C = g[1], w = this.fontMetrics.getMetrics(E, C).baseline, this.ctx.font = E, this.ctx.fillStyle = O(n.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = EQ(t.styles.textAlign), f = je(t), u = 0, t.styles.textAlign) {
4073
4073
  case 1:
4074
4074
  u += f.width / 2;
4075
4075
  break;
@@ -4086,17 +4086,17 @@ var D = function(e, A, r, t, B) {
4086
4086
  )) return [3, 20];
4087
4087
  if (t.styles.listStyleImage === null) return [3, 19];
4088
4088
  if (d = t.styles.listStyleImage, d.type !== 0) return [3, 18];
4089
- h = void 0, K = d.url, C.label = 15;
4089
+ h = void 0, K = d.url, U.label = 15;
4090
4090
  case 15:
4091
- return C.trys.push([15, 17, , 18]), [4, this.context.cache.match(K)];
4091
+ return U.trys.push([15, 17, , 18]), [4, this.context.cache.match(K)];
4092
4092
  case 16:
4093
- return h = C.sent(), this.ctx.drawImage(h, t.bounds.left - (h.width + 10), t.bounds.top), [3, 18];
4093
+ return h = U.sent(), this.ctx.drawImage(h, t.bounds.left - (h.width + 10), t.bounds.top), [3, 18];
4094
4094
  case 17:
4095
- return C.sent(), this.context.logger.error("Error loading list-style-image " + K), [3, 18];
4095
+ return U.sent(), this.context.logger.error("Error loading list-style-image " + K), [3, 18];
4096
4096
  case 18:
4097
4097
  return [3, 20];
4098
4098
  case 19:
4099
- r.listValue && t.styles.listStyleType !== -1 && (E = this.createFontStyle(n)[0], this.ctx.font = E, this.ctx.fillStyle = O(n.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", f = new gA(t.bounds.left, t.bounds.top + b(t.styles.paddingTop, t.bounds.width), t.bounds.width, yr(n.lineHeight, n.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new ie(r.listValue, f), n.letterSpacing, yr(n.lineHeight, n.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), C.label = 20;
4099
+ r.listValue && t.styles.listStyleType !== -1 && (E = this.createFontStyle(n)[0], this.ctx.font = E, this.ctx.fillStyle = O(n.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", f = new gA(t.bounds.left, t.bounds.top + b(t.styles.paddingTop, t.bounds.width), t.bounds.width, yr(n.lineHeight, n.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new ie(r.listValue, f), n.letterSpacing, yr(n.lineHeight, n.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), U.label = 20;
4100
4100
  case 20:
4101
4101
  return [
4102
4102
  2
@@ -4107,7 +4107,7 @@ var D = function(e, A, r, t, B) {
4107
4107
  });
4108
4108
  }, A.prototype.renderStackContent = function(r) {
4109
4109
  return X(this, void 0, void 0, function() {
4110
- var t, B, d, n, s, d, i, o, d, a, Q, d, c, g, d, U, w, d, u, H, d;
4110
+ var t, B, d, n, s, d, i, o, d, a, Q, d, c, g, d, C, w, d, u, H, d;
4111
4111
  return N(this, function(h) {
4112
4112
  switch (h.label) {
4113
4113
  case 0:
@@ -4160,13 +4160,13 @@ var D = function(e, A, r, t, B) {
4160
4160
  case 21:
4161
4161
  return c++, [3, 19];
4162
4162
  case 22:
4163
- U = 0, w = r.zeroOrAutoZIndexOrTransformedOrOpacity, h.label = 23;
4163
+ C = 0, w = r.zeroOrAutoZIndexOrTransformedOrOpacity, h.label = 23;
4164
4164
  case 23:
4165
- return U < w.length ? (d = w[U], [4, this.renderStack(d)]) : [3, 26];
4165
+ return C < w.length ? (d = w[C], [4, this.renderStack(d)]) : [3, 26];
4166
4166
  case 24:
4167
4167
  h.sent(), h.label = 25;
4168
4168
  case 25:
4169
- return U++, [3, 23];
4169
+ return C++, [3, 23];
4170
4170
  case 26:
4171
4171
  u = 0, H = r.positiveZIndex, h.label = 27;
4172
4172
  case 27:
@@ -4209,7 +4209,7 @@ var D = function(e, A, r, t, B) {
4209
4209
  switch (a.label) {
4210
4210
  case 0:
4211
4211
  t = r.styles.backgroundImage.length - 1, B = function(Q) {
4212
- var c, g, U, S, W, Z, L, V, y, w, S, W, Z, L, V, u, H, d, h, K, E, f, C, I, y, p, S, Y, q, L, V, wA, W, Z, EA, rA, uA, IA, yA, oA, KA, iA;
4212
+ var c, g, C, S, W, Z, L, V, y, w, S, W, Z, L, V, u, H, d, h, K, E, f, U, I, y, p, S, Y, q, L, V, wA, W, Z, EA, rA, uA, IA, yA, oA, KA, iA;
4213
4213
  return N(this, function(xA) {
4214
4214
  switch (xA.label) {
4215
4215
  case 0:
@@ -4222,11 +4222,11 @@ var D = function(e, A, r, t, B) {
4222
4222
  case 3:
4223
4223
  return xA.sent(), n.context.logger.error("Error loading background-image " + g), [3, 4];
4224
4224
  case 4:
4225
- return c && (U = Kt(r, t, [c.width, c.height, c.width / c.height]), S = U[0], W = U[1], Z = U[2], L = U[3], V = U[4], y = n.ctx.createPattern(n.resizeImage(c, L, V), "repeat"), n.renderRepeat(S, y, W, Z)), [3, 6];
4225
+ return c && (C = Kt(r, t, [c.width, c.height, c.width / c.height]), S = C[0], W = C[1], Z = C[2], L = C[3], V = C[4], y = n.ctx.createPattern(n.resizeImage(c, L, V), "repeat"), n.renderRepeat(S, y, W, Z)), [3, 6];
4226
4226
  case 5:
4227
- so(Q) ? (w = Kt(r, t, [null, null, null]), S = w[0], W = w[1], Z = w[2], L = w[3], V = w[4], u = eo(Q.angle, L, V), H = u[0], d = u[1], h = u[2], K = u[3], E = u[4], f = document.createElement("canvas"), f.width = L, f.height = V, C = f.getContext("2d"), I = C.createLinearGradient(d, K, h, E), Er(Q.stops, H).forEach(function(WA) {
4227
+ so(Q) ? (w = Kt(r, t, [null, null, null]), S = w[0], W = w[1], Z = w[2], L = w[3], V = w[4], u = eo(Q.angle, L, V), H = u[0], d = u[1], h = u[2], K = u[3], E = u[4], f = document.createElement("canvas"), f.width = L, f.height = V, U = f.getContext("2d"), I = U.createLinearGradient(d, K, h, E), Er(Q.stops, H).forEach(function(WA) {
4228
4228
  return I.addColorStop(WA.stop, O(WA.color));
4229
- }), C.fillStyle = I, C.fillRect(0, 0, L, V), L > 0 && V > 0 && (y = n.ctx.createPattern(f, "repeat"), n.renderRepeat(S, y, W, Z))) : oo(Q) && (p = Kt(r, t, [null, null, null]), S = p[0], Y = p[1], q = p[2], L = p[3], V = p[4], wA = Q.position.length === 0 ? [zt] : Q.position, W = b(wA[0], L), Z = b(wA[wA.length - 1], V), EA = to(Q, W, Z, L, V), rA = EA[0], uA = EA[1], rA > 0 && uA > 0 && (IA = n.ctx.createRadialGradient(Y + W, q + Z, 0, Y + W, q + Z, rA), Er(Q.stops, rA * 2).forEach(function(WA) {
4229
+ }), U.fillStyle = I, U.fillRect(0, 0, L, V), L > 0 && V > 0 && (y = n.ctx.createPattern(f, "repeat"), n.renderRepeat(S, y, W, Z))) : oo(Q) && (p = Kt(r, t, [null, null, null]), S = p[0], Y = p[1], q = p[2], L = p[3], V = p[4], wA = Q.position.length === 0 ? [zt] : Q.position, W = b(wA[0], L), Z = b(wA[wA.length - 1], V), EA = to(Q, W, Z, L, V), rA = EA[0], uA = EA[1], rA > 0 && uA > 0 && (IA = n.ctx.createRadialGradient(Y + W, q + Z, 0, Y + W, q + Z, rA), Er(Q.stops, rA * 2).forEach(function(WA) {
4230
4230
  return IA.addColorStop(WA.stop, O(WA.color));
4231
4231
  }), n.path(S), n.ctx.fillStyle = IA, rA !== uA ? (yA = r.bounds.left + 0.5 * r.bounds.width, oA = r.bounds.top + 0.5 * r.bounds.height, KA = uA / rA, iA = 1 / KA, n.ctx.save(), n.ctx.translate(yA, oA), n.ctx.transform(1, 0, 0, KA, 0, 0), n.ctx.translate(-yA, -oA), n.ctx.fillRect(Y, iA * (q - oA) + oA, L, V * iA), n.ctx.restore()) : n.ctx.fill())), xA.label = 6;
4232
4232
  case 6:
@@ -4307,10 +4307,10 @@ var D = function(e, A, r, t, B) {
4307
4307
  width: t.borderLeftWidth
4308
4308
  }], s = HQ(RA(t.backgroundClip, 0), r.curves), B || t.boxShadow.length ? (this.ctx.save(), this.path(s), this.ctx.clip(), pA(t.backgroundColor) || (this.ctx.fillStyle = O(t.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(r.container)]) : [3, 2];
4309
4309
  case 1:
4310
- g.sent(), this.ctx.restore(), t.boxShadow.slice(0).reverse().forEach(function(U) {
4310
+ g.sent(), this.ctx.restore(), t.boxShadow.slice(0).reverse().forEach(function(C) {
4311
4311
  c.ctx.save();
4312
- var w = _e(r.curves), u = U.inset ? 0 : dQ, H = aQ(w, -u + (U.inset ? 1 : -1) * U.spread.number, (U.inset ? 1 : -1) * U.spread.number, U.spread.number * (U.inset ? -2 : 2), U.spread.number * (U.inset ? -2 : 2));
4313
- U.inset ? (c.path(w), c.ctx.clip(), c.mask(H)) : (c.mask(w), c.ctx.clip(), c.path(H)), c.ctx.shadowOffsetX = U.offsetX.number + u, c.ctx.shadowOffsetY = U.offsetY.number, c.ctx.shadowColor = O(U.color), c.ctx.shadowBlur = U.blur.number, c.ctx.fillStyle = U.inset ? O(U.color) : "rgba(0,0,0,1)", c.ctx.fill(), c.ctx.restore();
4312
+ var w = _e(r.curves), u = C.inset ? 0 : dQ, H = aQ(w, -u + (C.inset ? 1 : -1) * C.spread.number, (C.inset ? 1 : -1) * C.spread.number, C.spread.number * (C.inset ? -2 : 2), C.spread.number * (C.inset ? -2 : 2));
4313
+ C.inset ? (c.path(w), c.ctx.clip(), c.mask(H)) : (c.mask(w), c.ctx.clip(), c.path(H)), c.ctx.shadowOffsetX = C.offsetX.number + u, c.ctx.shadowOffsetY = C.offsetY.number, c.ctx.shadowColor = O(C.color), c.ctx.shadowBlur = C.blur.number, c.ctx.fillStyle = C.inset ? O(C.color) : "rgba(0,0,0,1)", c.ctx.fill(), c.ctx.restore();
4314
4314
  }), g.label = 2;
4315
4315
  case 2:
4316
4316
  i = 0, o = 0, a = n, g.label = 3;
@@ -4358,9 +4358,9 @@ var D = function(e, A, r, t, B) {
4358
4358
  });
4359
4359
  }, A.prototype.renderDashedDottedBorder = function(r, t, B, n, s) {
4360
4360
  return X(this, void 0, void 0, function() {
4361
- var i, o, a, Q, c, g, U, w, u, H, d, h, K, E, f, C, f, C;
4361
+ var i, o, a, Q, c, g, C, w, u, H, d, h, K, E, f, U, f, U;
4362
4362
  return N(this, function(I) {
4363
- return this.ctx.save(), i = wQ(n, B), o = tB(n, B), s === 2 && (this.path(o), this.ctx.clip()), z(o[0]) ? (a = o[0].start.x, Q = o[0].start.y) : (a = o[0].x, Q = o[0].y), z(o[1]) ? (c = o[1].end.x, g = o[1].end.y) : (c = o[1].x, g = o[1].y), B === 0 || B === 2 ? U = Math.abs(a - c) : U = Math.abs(Q - g), this.ctx.beginPath(), s === 3 ? this.formatPath(i) : this.formatPath(o.slice(0, 2)), w = t < 3 ? t * 3 : t * 2, u = t < 3 ? t * 2 : t, s === 3 && (w = t, u = t), H = !0, U <= w * 2 ? H = !1 : U <= w * 2 + u ? (d = U / (2 * w + u), w *= d, u *= d) : (h = Math.floor((U + u) / (w + u)), K = (U - h * w) / (h - 1), E = (U - (h + 1) * w) / h, u = E <= 0 || Math.abs(u - K) < Math.abs(u - E) ? K : E), H && (s === 3 ? this.ctx.setLineDash([0, w + u]) : this.ctx.setLineDash([w, u])), s === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = t) : this.ctx.lineWidth = t * 2 + 1.1, this.ctx.strokeStyle = O(r), this.ctx.stroke(), this.ctx.setLineDash([]), s === 2 && (z(o[0]) && (f = o[3], C = o[0], this.ctx.beginPath(), this.formatPath([new l(f.end.x, f.end.y), new l(C.start.x, C.start.y)]), this.ctx.stroke()), z(o[1]) && (f = o[1], C = o[2], this.ctx.beginPath(), this.formatPath([new l(f.end.x, f.end.y), new l(C.start.x, C.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
4363
+ return this.ctx.save(), i = wQ(n, B), o = tB(n, B), s === 2 && (this.path(o), this.ctx.clip()), z(o[0]) ? (a = o[0].start.x, Q = o[0].start.y) : (a = o[0].x, Q = o[0].y), z(o[1]) ? (c = o[1].end.x, g = o[1].end.y) : (c = o[1].x, g = o[1].y), B === 0 || B === 2 ? C = Math.abs(a - c) : C = Math.abs(Q - g), this.ctx.beginPath(), s === 3 ? this.formatPath(i) : this.formatPath(o.slice(0, 2)), w = t < 3 ? t * 3 : t * 2, u = t < 3 ? t * 2 : t, s === 3 && (w = t, u = t), H = !0, C <= w * 2 ? H = !1 : C <= w * 2 + u ? (d = C / (2 * w + u), w *= d, u *= d) : (h = Math.floor((C + u) / (w + u)), K = (C - h * w) / (h - 1), E = (C - (h + 1) * w) / h, u = E <= 0 || Math.abs(u - K) < Math.abs(u - E) ? K : E), H && (s === 3 ? this.ctx.setLineDash([0, w + u]) : this.ctx.setLineDash([w, u])), s === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = t) : this.ctx.lineWidth = t * 2 + 1.1, this.ctx.strokeStyle = O(r), this.ctx.stroke(), this.ctx.setLineDash([]), s === 2 && (z(o[0]) && (f = o[3], U = o[0], this.ctx.beginPath(), this.formatPath([new l(f.end.x, f.end.y), new l(U.start.x, U.start.y)]), this.ctx.stroke()), z(o[1]) && (f = o[1], U = o[2], this.ctx.beginPath(), this.formatPath([new l(f.end.x, f.end.y), new l(U.start.x, U.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
4364
4364
  2
4365
4365
  /*return*/
4366
4366
  ];
@@ -4476,7 +4476,7 @@ var D = function(e, A, r, t, B) {
4476
4476
  typeof window < "u" && An.setContext(window);
4477
4477
  var bQ = function(e, A) {
4478
4478
  return X(void 0, void 0, void 0, function() {
4479
- var r, t, B, n, s, i, o, a, Q, c, g, U, w, u, H, d, h, K, E, f, I, C, I, y, p, S, Y, q, L, V, wA, W, Z, EA, rA, uA, IA, yA, oA, KA;
4479
+ var r, t, B, n, s, i, o, a, Q, c, g, C, w, u, H, d, h, K, E, f, I, U, I, y, p, S, Y, q, L, V, wA, W, Z, EA, rA, uA, IA, yA, oA, KA;
4480
4480
  return N(this, function(iA) {
4481
4481
  switch (iA.label) {
4482
4482
  case 0:
@@ -4504,7 +4504,7 @@ var bQ = function(e, A) {
4504
4504
  copyStyles: a
4505
4505
  }, o.logger.debug("Starting document clone with size " + i.width + "x" + i.height + " scrolled to " + -i.left + "," + -i.top), c = new $r(o, e, Q), g = c.clonedReferenceElement, g ? [4, c.toIFrame(r, i)] : [2, Promise.reject("Unable to find element in cloned iframe")];
4506
4506
  case 1:
4507
- return U = iA.sent(), w = rr(g) || xa(g) ? on(g.ownerDocument) : ze(o, g), u = w.width, H = w.height, d = w.left, h = w.top, K = DQ(o, g, A.backgroundColor), E = {
4507
+ return C = iA.sent(), w = rr(g) || xa(g) ? on(g.ownerDocument) : ze(o, g), u = w.width, H = w.height, d = w.left, h = w.top, K = DQ(o, g, A.backgroundColor), E = {
4508
4508
  canvas: A.canvas,
4509
4509
  backgroundColor: K,
4510
4510
  scale: (rA = (EA = A.scale) !== null && EA !== void 0 ? EA : t.devicePixelRatio) !== null && rA !== void 0 ? rA : 1,
@@ -4516,11 +4516,11 @@ var bQ = function(e, A) {
4516
4516
  case 2:
4517
4517
  return f = iA.sent(), [3, 5];
4518
4518
  case 3:
4519
- return o.logger.debug("Document cloned, element located at " + d + "," + h + " with size " + u + "x" + H + " using computed rendering"), o.logger.debug("Starting DOM parsing"), C = YB(o, g), K === C.styles.backgroundColor && (C.styles.backgroundColor = cA.TRANSPARENT), o.logger.debug("Starting renderer for element at " + E.x + "," + E.y + " with size " + E.width + "x" + E.height), I = new fQ(o, E), [4, I.render(C)];
4519
+ return o.logger.debug("Document cloned, element located at " + d + "," + h + " with size " + u + "x" + H + " using computed rendering"), o.logger.debug("Starting DOM parsing"), U = YB(o, g), K === U.styles.backgroundColor && (U.styles.backgroundColor = cA.TRANSPARENT), o.logger.debug("Starting renderer for element at " + E.x + "," + E.y + " with size " + E.width + "x" + E.height), I = new fQ(o, E), [4, I.render(U)];
4520
4520
  case 4:
4521
4521
  f = iA.sent(), iA.label = 5;
4522
4522
  case 5:
4523
- return (!((KA = A.removeContainer) !== null && KA !== void 0) || KA) && ($r.destroy(U) || o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), o.logger.debug("Finished rendering"), [2, f];
4523
+ return (!((KA = A.removeContainer) !== null && KA !== void 0) || KA) && ($r.destroy(C) || o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), o.logger.debug("Finished rendering"), [2, f];
4524
4524
  }
4525
4525
  });
4526
4526
  });