mapicgc-gl-js 1.0.0 → 1.0.1

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 Ue = 0; Ue < Br.length; Ue++) an[Br.charCodeAt(Ue)] = Ue;
196
+ for (var Ce = 0; Ce < Br.length; Ce++) an[Br.charCodeAt(Ce)] = Ce;
197
197
  var nr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", zA = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
198
- for (var Ce = 0; Ce < nr.length; Ce++) zA[nr.charCodeAt(Ce)] = Ce;
198
+ for (var Ue = 0; Ue < nr.length; Ue++) zA[nr.charCodeAt(Ue)] = Ue;
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, Un = BB + ln, Cn = Un, Fn = 32, hn = Cn + 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, Cn = BB + ln, Un = Cn, Fn = 32, hn = Un + 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 C = r[n], w = 1; C > 0 && (C--, A[C] === ct); ) w++;
311
+ for (var U = r[n], w = 1; U > 0 && (U--, A[U] === 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, 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) {
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) {
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 <= UB || e >= gB && e <= Fs;
365
+ return J(e) || e >= uB && e <= CB || 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 <= Us || e === Cs;
382
- }, CA = function(e, A) {
381
+ return e >= gs && e <= ws || e === us || e >= ls && e <= Cs || e === Us;
382
+ }, UA = function(e, A) {
383
383
  return e !== ne ? !1 : A !== Ne;
384
384
  }, me = function(e, A, r) {
385
- return e === _ ? Pe(A) || CA(A, r) : Pe(e) ? !0 : !!(e === ne && CA(e, A));
385
+ return e === _ ? Pe(A) || UA(A, r) : Pe(e) ? !0 : !!(e === ne && UA(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
- }, CB = (
465
+ }, UB = (
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) || CA(t, B)) {
483
+ if (dr(r) || UA(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 Cr:
518
+ case Ur:
519
519
  if (this.peekCodePoint(0) === wt) for (this.consumeCodePoint(); ; ) {
520
520
  var Q = this.consumeCodePoint();
521
- if (Q === wt && (Q = this.consumeCodePoint(), Q === Cr)) return this.consumeToken();
521
+ if (Q === wt && (Q = this.consumeCodePoint(), Q === Ur)) 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), C = this.peekCodePoint(2);
534
- if (me(c, g, C)) {
533
+ var c = this.peekCodePoint(0), g = this.peekCodePoint(1), U = this.peekCodePoint(2);
534
+ if (me(c, g, U)) {
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 (CA(A, this.peekCodePoint(0))) return this.reconsumeCodePoint(A), this.consumeIdentLikeToken();
545
+ if (UA(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 ? UB : o;
588
+ return o === ye ? CB : 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 (CA(B, this.peekCodePoint(0))) A.push(this.consumeEscapedCodePoint());
646
+ if (UA(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
- CA(A, this.peekCodePoint(0)) && this.consumeEscapedCodePoint();
656
+ UA(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()) : CA(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()) : UA(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 = Ur; J(this.peekCodePoint(0)); ) A.push(this.consumeCodePoint());
684
+ if (t === ce && J(B)) for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), r = Cr; 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 = Ur; 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 = Cr; 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 (CA(r, this.peekCodePoint(0))) A += M(this.consumeEscapedCodePoint());
722
+ else if (UA(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 CB();
734
+ var r = new UB();
735
735
  return r.write(A), new e(r.read());
736
736
  }, e.parseValue = function(A) {
737
737
  return e.create(A).parseComponentValue();
@@ -971,8 +971,8 @@ function lt(e, A, r) {
971
971
  var Hr = function(e, A) {
972
972
  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;
973
973
  if (o === 0) return dA(a * 255, a * 255, a * 255, 1);
974
- 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);
975
- return dA(C * 255, w * 255, u * 255, Q);
974
+ 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);
975
+ return dA(U * 255, w * 255, u * 255, Q);
976
976
  }, js = {
977
977
  hsl: Hr,
978
978
  hsla: Hr,
@@ -1175,7 +1175,7 @@ var Hr = function(e, A) {
1175
1175
  var Q = B[s];
1176
1176
  if (Q === null) a === null && (a = s);
1177
1177
  else if (a !== null) {
1178
- 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
+ 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;
1179
1179
  a = null;
1180
1180
  }
1181
1181
  }
@@ -1302,12 +1302,12 @@ var Hr = function(e, A) {
1302
1302
  } else if (Q.name === "color-stop") {
1303
1303
  var g = Q.values.filter(JA);
1304
1304
  if (g.length === 2) {
1305
- var c = fA.parse(e, g[1]), C = g[0];
1306
- YA(C) && t.push({
1305
+ var c = fA.parse(e, g[1]), U = g[0];
1306
+ YA(U) && t.push({
1307
1307
  stop: {
1308
1308
  type: 16,
1309
- number: C.number * 100,
1310
- flags: C.flags
1309
+ number: U.number * 100,
1310
+ flags: U.flags
1311
1311
  },
1312
1312
  color: c
1313
1313
  });
@@ -1554,7 +1554,7 @@ var uo = {
1554
1554
  type: 3,
1555
1555
  format: "color"
1556
1556
  };
1557
- }, Uo = tt("top"), Co = tt("right"), Fo = tt("bottom"), ho = tt("left"), rt = function(e) {
1557
+ }, Co = tt("top"), Uo = tt("right"), Fo = tt("bottom"), ho = tt("left"), rt = function(e) {
1558
1558
  return {
1559
1559
  name: "border-radius-" + e,
1560
1560
  initialValue: "0 0",
@@ -2178,13 +2178,13 @@ var Qi = {
2178
2178
  return B.indexOf(" ") === -1 ? B : "'" + B + "'";
2179
2179
  });
2180
2180
  }
2181
- }, Ui = {
2181
+ }, Ci = {
2182
2182
  name: "font-size",
2183
2183
  initialValue: "0",
2184
2184
  prefix: !1,
2185
2185
  type: 3,
2186
2186
  format: "length"
2187
- }, Ci = {
2187
+ }, Ui = {
2188
2188
  name: "font-weight",
2189
2189
  initialValue: "normal",
2190
2190
  type: 0,
@@ -2389,7 +2389,7 @@ var Qi = {
2389
2389
  function() {
2390
2390
  function e(A, r) {
2391
2391
  var t, B;
2392
- 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
+ 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);
2393
2393
  var n = F(A, Wo, r.overflow);
2394
2394
  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);
2395
2395
  }
@@ -2450,7 +2450,7 @@ var Qi = {
2450
2450
  return e;
2451
2451
  }()
2452
2452
  ), F = function(e, A, r) {
2453
- var t = new CB(), B = r !== null && typeof r < "u" ? r.toString() : A.initialValue;
2453
+ var t = new UB(), B = r !== null && typeof r < "u" ? r.toString() : A.initialValue;
2454
2454
  t.write(B);
2455
2455
  var n = new FB(t.read());
2456
2456
  switch (A.type) {
@@ -2532,7 +2532,7 @@ var Mi = function(e) {
2532
2532
  }, Ti = function(e) {
2533
2533
  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]);
2534
2534
  return r;
2535
- }, 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
+ }, 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) {
2536
2536
  return e.slice ? e.slice(A, r) : new Uint16Array(Array.prototype.slice.call(e, A, r));
2537
2537
  }, Wi = function(e, A, r) {
2538
2538
  return e.slice ? e.slice(A, r) : new Uint32Array(Array.prototype.slice.call(e, A, r));
@@ -2548,9 +2548,9 @@ var Mi = function(e) {
2548
2548
  return e.prototype.get = function(A) {
2549
2549
  var r;
2550
2550
  if (A >= 0) {
2551
- if (A < 55296 || A > 56319 && A <= 65535) return r = this.index[A >> DA], r = (r << Ut) + (A & Ct), this.data[r];
2552
- if (A <= 65535) return r = this.index[GB + (A - 55296 >> DA)], r = (r << Ut) + (A & Ct), this.data[r];
2553
- 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];
2551
+ if (A < 55296 || A > 56319 && A <= 65535) return r = this.index[A >> DA], r = (r << Ct) + (A & Ut), this.data[r];
2552
+ if (A <= 65535) return r = this.index[GB + (A - 55296 >> DA)], r = (r << Ct) + (A & Ut), this.data[r];
2553
+ 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];
2554
2554
  if (A <= 1114111) return this.data[this.highValueIndex];
2555
2555
  }
2556
2556
  return this.errorValue;
@@ -2804,10 +2804,10 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
2804
2804
  return t.segment;
2805
2805
  });
2806
2806
  }
2807
- return Ca(e, A);
2807
+ return Ua(e, A);
2808
2808
  }, la = function(e, A) {
2809
2809
  return A.letterSpacing !== 0 ? er(e) : ua(e, A);
2810
- }, Ua = [32, 160, 4961, 65792, 65793, 4153, 4241], Ca = function(e, A) {
2810
+ }, Ca = [32, 160, 4961, 65792, 65793, 4153, 4241], Ua = function(e, A) {
2811
2811
  for (var r = Pn(e, {
2812
2812
  lineBreak: A.lineBreak,
2813
2813
  wordBreak: A.overflowWrap === "break-word" ? "break-word" : A.wordBreak
@@ -2815,7 +2815,7 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
2815
2815
  if (B.value) {
2816
2816
  var s = B.value.slice(), i = $e(s), o = "";
2817
2817
  i.forEach(function(a) {
2818
- Ua.indexOf(a) === -1 ? o += M(a) : (o.length && t.push(o), t.push(M(a)), o = "");
2818
+ Ca.indexOf(a) === -1 ? o += M(a) : (o.length && t.push(o), t.push(M(a)), o = "");
2819
2819
  }), o.length && t.push(o);
2820
2820
  }
2821
2821
  }; !(B = r.next()).done; ) n();
@@ -3090,13 +3090,13 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3090
3090
  return zB(Math.abs(e), t, !1, function(B) {
3091
3091
  return A[Math.floor(B % t)];
3092
3092
  }) + r;
3093
- }, kA = 1, lA = 2, UA = 4, Be = 8, QA = function(e, A, r, t, B, n) {
3093
+ }, kA = 1, lA = 2, CA = 4, Be = 8, QA = function(e, A, r, t, B, n) {
3094
3094
  if (e < -9999 || e > 9999) return ge(e, 4, B.length > 0);
3095
3095
  var s = Math.abs(e), i = B;
3096
3096
  if (s === 0) return A[0] + i;
3097
3097
  for (var o = 0; s > 0 && o <= 4; o++) {
3098
3098
  var a = s % 10;
3099
- 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
+ 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);
3100
3100
  }
3101
3101
  return (e < 0 ? t : "") + i;
3102
3102
  }, qr = "十百千萬", jr = "拾佰仟萬", zr = "マイナス", Ht = "마이너스", ge = function(e, A, r) {
@@ -3141,23 +3141,23 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3141
3141
  return mA(e, "甲乙丙丁戊己庚辛壬癸", B);
3142
3142
  case 17:
3143
3143
  case 48:
3144
- return QA(e, "零一二三四五六七八九", qr, "負", B, lA | UA | Be);
3144
+ return QA(e, "零一二三四五六七八九", qr, "負", B, lA | CA | Be);
3145
3145
  case 47:
3146
- return QA(e, "零壹貳參肆伍陸柒捌玖", jr, "負", B, kA | lA | UA | Be);
3146
+ return QA(e, "零壹貳參肆伍陸柒捌玖", jr, "負", B, kA | lA | CA | Be);
3147
3147
  case 42:
3148
- return QA(e, "零一二三四五六七八九", qr, "负", B, lA | UA | Be);
3148
+ return QA(e, "零一二三四五六七八九", qr, "负", B, lA | CA | Be);
3149
3149
  case 41:
3150
- return QA(e, "零壹贰叁肆伍陆柒捌玖", jr, "负", B, kA | lA | UA | Be);
3150
+ return QA(e, "零壹贰叁肆伍陆柒捌玖", jr, "负", B, kA | lA | CA | Be);
3151
3151
  case 26:
3152
3152
  return QA(e, "〇一二三四五六七八九", "十百千万", zr, B, 0);
3153
3153
  case 25:
3154
- return QA(e, "零壱弐参四伍六七八九", "拾百千万", zr, B, kA | lA | UA);
3154
+ return QA(e, "零壱弐参四伍六七八九", "拾百千万", zr, B, kA | lA | CA);
3155
3155
  case 31:
3156
- return QA(e, "영일이삼사오육칠팔구", "십백천만", Ht, n, kA | lA | UA);
3156
+ return QA(e, "영일이삼사오육칠팔구", "십백천만", Ht, n, kA | lA | CA);
3157
3157
  case 33:
3158
3158
  return QA(e, "零一二三四五六七八九", "十百千萬", Ht, n, 0);
3159
3159
  case 32:
3160
- return QA(e, "零壹貳參四五六七八九", "拾百千", Ht, n, kA | lA | UA);
3160
+ return QA(e, "零壹貳參四五六七八九", "拾百千", Ht, n, kA | lA | CA);
3161
3161
  case 18:
3162
3162
  return x(e, 2406, 2415, !0, t);
3163
3163
  case 20:
@@ -3338,8 +3338,8 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3338
3338
  g.src = c.value, g.style.opacity = "1", a.appendChild(g);
3339
3339
  } else if (c.type === 18) {
3340
3340
  if (c.name === "attr") {
3341
- var C = c.values.filter(v);
3342
- C.length && a.appendChild(i.createTextNode(A.getAttribute(C[0].value) || ""));
3341
+ var U = c.values.filter(v);
3342
+ U.length && a.appendChild(i.createTextNode(A.getAttribute(U[0].value) || ""));
3343
3343
  } else if (c.name === "counter") {
3344
3344
  var w = c.values.filter(JA), u = w[0], H = w[1];
3345
3345
  if (u && v(u)) {
@@ -3349,8 +3349,8 @@ var ji = 1, Ft = 2, ht = 3, xr = 4, Mr = 5, zi = 7, Sr = 8, dt = 9, ft = 10, Tr
3349
3349
  } else if (c.name === "counters") {
3350
3350
  var K = c.values.filter(JA), u = K[0], E = K[1], H = K[2];
3351
3351
  if (u && v(u)) {
3352
- 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) {
3353
- return ge(Y, U, !1);
3352
+ 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) {
3353
+ return ge(Y, C, !1);
3354
3354
  }).join(I);
3355
3355
  a.appendChild(i.createTextNode(y));
3356
3356
  }
@@ -3569,12 +3569,12 @@ var Oa = function(e, A) {
3569
3569
  /** @class */
3570
3570
  /* @__PURE__ */ function() {
3571
3571
  function e(A) {
3572
- 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
+ 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 = [];
3573
3573
  H.push((n + o) / t.width), H.push((w + c) / t.width), H.push((s + u) / t.height), H.push((a + g) / t.height);
3574
3574
  var d = Math.max.apply(Math, H);
3575
3575
  d > 1 && (n /= d, s /= d, o /= d, a /= d, c /= d, g /= d, w /= d, u /= d);
3576
- 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);
3577
- 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));
3576
+ 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);
3577
+ 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));
3578
3578
  }
3579
3579
  return e;
3580
3580
  }()
@@ -3743,10 +3743,10 @@ var D = function(e, A, r, t, B) {
3743
3743
  return c > w.element.container.styles.zIndex.order ? (g = u, !1) : g > 0;
3744
3744
  }), a.negativeZIndex.splice(g, 0, Q);
3745
3745
  } else if (c > 0) {
3746
- var C = 0;
3746
+ var U = 0;
3747
3747
  a.positiveZIndex.some(function(w, u) {
3748
- return c >= w.element.container.styles.zIndex.order ? (C = u + 1, !1) : C > 0;
3749
- }), a.positiveZIndex.splice(C, 0, Q);
3748
+ return c >= w.element.container.styles.zIndex.order ? (U = u + 1, !1) : U > 0;
3749
+ }), a.positiveZIndex.splice(U, 0, Q);
3750
3750
  } else a.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q);
3751
3751
  } else B.styles.isFloating() ? a.nonPositionedFloats.push(Q) : a.nonPositionedInlineLevel.push(Q);
3752
3752
  qt(i, Q, n ? Q : r, o);
@@ -3830,13 +3830,13 @@ var D = function(e, A, r, t, B) {
3830
3830
  }, lQ = function(e, A) {
3831
3831
  return e === 0 ? A.bounds : e === 2 ? je(A) : nn(A);
3832
3832
  }, Kt = function(e, A, r) {
3833
- 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
+ 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]);
3834
3834
  return [a, Q, c, s, i];
3835
3835
  }, VA = function(e) {
3836
3836
  return v(e) && e.value === XA.AUTO;
3837
3837
  }, Ge = function(e) {
3838
3838
  return typeof e == "number";
3839
- }, UQ = function(e, A, r) {
3839
+ }, CQ = function(e, A, r) {
3840
3840
  var t = A[0], B = A[1], n = A[2], s = e[0], i = e[1];
3841
3841
  if (!s) return [0, 0];
3842
3842
  if (T(s) && i && T(i)) return [b(s, r.width), b(i, r.height)];
@@ -3853,8 +3853,8 @@ var D = function(e, A, r, t, B) {
3853
3853
  if (Q && c) return [t, B];
3854
3854
  if (!o && !g) return [r.width, r.height];
3855
3855
  if (g && o) {
3856
- var C = Q ? t : B * n, w = c ? B : t / n;
3857
- return [C, w];
3856
+ var U = Q ? t : B * n, w = c ? B : t / n;
3857
+ return [U, w];
3858
3858
  }
3859
3859
  var u = Q ? t : r.width, H = c ? B : r.height;
3860
3860
  return [u, H];
@@ -3869,7 +3869,7 @@ var D = function(e, A, r, t, B) {
3869
3869
  }, RA = function(e, A) {
3870
3870
  var r = e[A];
3871
3871
  return typeof r > "u" ? e[0] : r;
3872
- }, CQ = function(e, A, r, t, B) {
3872
+ }, UQ = function(e, A, r, t, B) {
3873
3873
  var n = A[0], s = A[1], i = r[0], o = r[1];
3874
3874
  switch (e) {
3875
3875
  case 2:
@@ -3984,7 +3984,7 @@ var D = function(e, A, r, t, B) {
3984
3984
  }, A.prototype.renderTextNode = function(r, t) {
3985
3985
  return X(this, void 0, void 0, function() {
3986
3986
  var B, n, s, i, o, a, Q, c, g = this;
3987
- return N(this, function(C) {
3987
+ return N(this, function(U) {
3988
3988
  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) {
3989
3989
  c.forEach(function(u) {
3990
3990
  switch (u) {
@@ -4025,38 +4025,38 @@ var D = function(e, A, r, t, B) {
4025
4025
  }
4026
4026
  }, A.prototype.renderNodeContent = function(r) {
4027
4027
  return X(this, void 0, void 0, function() {
4028
- var t, B, n, s, i, o, h, h, a, Q, c, g, E, C, w, f, u, H, d, h, K, E, f;
4029
- return N(this, function(U) {
4030
- switch (U.label) {
4028
+ var t, B, n, s, i, o, h, h, a, Q, c, g, E, U, w, f, u, H, d, h, K, E, f;
4029
+ return N(this, function(C) {
4030
+ switch (C.label) {
4031
4031
  case 0:
4032
4032
  this.applyEffects(r.getEffects(
4033
4033
  4
4034
4034
  /* CONTENT */
4035
- )), t = r.container, B = r.curves, n = t.styles, s = 0, i = t.textNodes, U.label = 1;
4035
+ )), t = r.container, B = r.curves, n = t.styles, s = 0, i = t.textNodes, C.label = 1;
4036
4036
  case 1:
4037
4037
  return s < i.length ? (o = i[s], [4, this.renderTextNode(o, n)]) : [3, 4];
4038
4038
  case 2:
4039
- U.sent(), U.label = 3;
4039
+ C.sent(), C.label = 3;
4040
4040
  case 3:
4041
4041
  return s++, [3, 1];
4042
4042
  case 4:
4043
4043
  if (!(t instanceof OB)) return [3, 8];
4044
- U.label = 5;
4044
+ C.label = 5;
4045
4045
  case 5:
4046
- return U.trys.push([5, 7, , 8]), [4, this.context.cache.match(t.src)];
4046
+ return C.trys.push([5, 7, , 8]), [4, this.context.cache.match(t.src)];
4047
4047
  case 6:
4048
- return h = U.sent(), this.renderReplacedElement(t, B, h), [3, 8];
4048
+ return h = C.sent(), this.renderReplacedElement(t, B, h), [3, 8];
4049
4049
  case 7:
4050
- return U.sent(), this.context.logger.error("Error loading image " + t.src), [3, 8];
4050
+ return C.sent(), this.context.logger.error("Error loading image " + t.src), [3, 8];
4051
4051
  case 8:
4052
4052
  if (t instanceof VB && this.renderReplacedElement(t, B, t.canvas), !(t instanceof kB)) return [3, 12];
4053
- U.label = 9;
4053
+ C.label = 9;
4054
4054
  case 9:
4055
- return U.trys.push([9, 11, , 12]), [4, this.context.cache.match(t.svg)];
4055
+ return C.trys.push([9, 11, , 12]), [4, this.context.cache.match(t.svg)];
4056
4056
  case 10:
4057
- return h = U.sent(), this.renderReplacedElement(t, B, h), [3, 12];
4057
+ return h = C.sent(), this.renderReplacedElement(t, B, h), [3, 12];
4058
4058
  case 11:
4059
- return U.sent(), this.context.logger.error("Error loading svg " + t.svg.substring(0, 255)), [3, 12];
4059
+ return C.sent(), this.context.logger.error("Error loading svg " + t.svg.substring(0, 255)), [3, 12];
4060
4060
  case 12:
4061
4061
  return t instanceof XB && t.tree ? (a = new A(this.context, {
4062
4062
  scale: this.options.scale,
@@ -4067,10 +4067,10 @@ var D = function(e, A, r, t, B) {
4067
4067
  height: t.height
4068
4068
  }), [4, a.render(t.tree)]) : [3, 14];
4069
4069
  case 13:
4070
- 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
+ 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;
4071
4071
  case 14:
4072
4072
  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) {
4073
- 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
+ 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) {
4074
4074
  case 1:
4075
4075
  u += f.width / 2;
4076
4076
  break;
@@ -4087,17 +4087,17 @@ var D = function(e, A, r, t, B) {
4087
4087
  )) return [3, 20];
4088
4088
  if (t.styles.listStyleImage === null) return [3, 19];
4089
4089
  if (d = t.styles.listStyleImage, d.type !== 0) return [3, 18];
4090
- h = void 0, K = d.url, U.label = 15;
4090
+ h = void 0, K = d.url, C.label = 15;
4091
4091
  case 15:
4092
- return U.trys.push([15, 17, , 18]), [4, this.context.cache.match(K)];
4092
+ return C.trys.push([15, 17, , 18]), [4, this.context.cache.match(K)];
4093
4093
  case 16:
4094
- return h = U.sent(), this.ctx.drawImage(h, t.bounds.left - (h.width + 10), t.bounds.top), [3, 18];
4094
+ return h = C.sent(), this.ctx.drawImage(h, t.bounds.left - (h.width + 10), t.bounds.top), [3, 18];
4095
4095
  case 17:
4096
- return U.sent(), this.context.logger.error("Error loading list-style-image " + K), [3, 18];
4096
+ return C.sent(), this.context.logger.error("Error loading list-style-image " + K), [3, 18];
4097
4097
  case 18:
4098
4098
  return [3, 20];
4099
4099
  case 19:
4100
- 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
+ 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;
4101
4101
  case 20:
4102
4102
  return [
4103
4103
  2
@@ -4108,7 +4108,7 @@ var D = function(e, A, r, t, B) {
4108
4108
  });
4109
4109
  }, A.prototype.renderStackContent = function(r) {
4110
4110
  return X(this, void 0, void 0, function() {
4111
- var t, B, d, n, s, d, i, o, d, a, Q, d, c, g, d, C, w, d, u, H, d;
4111
+ var t, B, d, n, s, d, i, o, d, a, Q, d, c, g, d, U, w, d, u, H, d;
4112
4112
  return N(this, function(h) {
4113
4113
  switch (h.label) {
4114
4114
  case 0:
@@ -4161,13 +4161,13 @@ var D = function(e, A, r, t, B) {
4161
4161
  case 21:
4162
4162
  return c++, [3, 19];
4163
4163
  case 22:
4164
- C = 0, w = r.zeroOrAutoZIndexOrTransformedOrOpacity, h.label = 23;
4164
+ U = 0, w = r.zeroOrAutoZIndexOrTransformedOrOpacity, h.label = 23;
4165
4165
  case 23:
4166
- return C < w.length ? (d = w[C], [4, this.renderStack(d)]) : [3, 26];
4166
+ return U < w.length ? (d = w[U], [4, this.renderStack(d)]) : [3, 26];
4167
4167
  case 24:
4168
4168
  h.sent(), h.label = 25;
4169
4169
  case 25:
4170
- return C++, [3, 23];
4170
+ return U++, [3, 23];
4171
4171
  case 26:
4172
4172
  u = 0, H = r.positiveZIndex, h.label = 27;
4173
4173
  case 27:
@@ -4210,7 +4210,7 @@ var D = function(e, A, r, t, B) {
4210
4210
  switch (a.label) {
4211
4211
  case 0:
4212
4212
  t = r.styles.backgroundImage.length - 1, B = function(Q) {
4213
- 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
+ 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;
4214
4214
  return N(this, function(xA) {
4215
4215
  switch (xA.label) {
4216
4216
  case 0:
@@ -4223,11 +4223,11 @@ var D = function(e, A, r, t, B) {
4223
4223
  case 3:
4224
4224
  return xA.sent(), n.context.logger.error("Error loading background-image " + g), [3, 4];
4225
4225
  case 4:
4226
- 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
+ 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];
4227
4227
  case 5:
4228
- 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
+ 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) {
4229
4229
  return I.addColorStop(WA.stop, O(WA.color));
4230
- }), 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
+ }), 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) {
4231
4231
  return IA.addColorStop(WA.stop, O(WA.color));
4232
4232
  }), 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;
4233
4233
  case 6:
@@ -4308,10 +4308,10 @@ var D = function(e, A, r, t, B) {
4308
4308
  width: t.borderLeftWidth
4309
4309
  }], 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];
4310
4310
  case 1:
4311
- g.sent(), this.ctx.restore(), t.boxShadow.slice(0).reverse().forEach(function(C) {
4311
+ g.sent(), this.ctx.restore(), t.boxShadow.slice(0).reverse().forEach(function(U) {
4312
4312
  c.ctx.save();
4313
- 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));
4314
- 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();
4313
+ 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));
4314
+ 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();
4315
4315
  }), g.label = 2;
4316
4316
  case 2:
4317
4317
  i = 0, o = 0, a = n, g.label = 3;
@@ -4359,9 +4359,9 @@ var D = function(e, A, r, t, B) {
4359
4359
  });
4360
4360
  }, A.prototype.renderDashedDottedBorder = function(r, t, B, n, s) {
4361
4361
  return X(this, void 0, void 0, function() {
4362
- var i, o, a, Q, c, g, C, w, u, H, d, h, K, E, f, U, f, U;
4362
+ var i, o, a, Q, c, g, U, w, u, H, d, h, K, E, f, C, f, C;
4363
4363
  return N(this, function(I) {
4364
- 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
+ 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(), [
4365
4365
  2
4366
4366
  /*return*/
4367
4367
  ];
@@ -4477,7 +4477,7 @@ var D = function(e, A, r, t, B) {
4477
4477
  typeof window < "u" && An.setContext(window);
4478
4478
  var bQ = function(e, A) {
4479
4479
  return X(void 0, void 0, void 0, function() {
4480
- 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
+ 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;
4481
4481
  return N(this, function(iA) {
4482
4482
  switch (iA.label) {
4483
4483
  case 0:
@@ -4505,7 +4505,7 @@ var bQ = function(e, A) {
4505
4505
  copyStyles: a
4506
4506
  }, 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")];
4507
4507
  case 1:
4508
- 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
+ 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 = {
4509
4509
  canvas: A.canvas,
4510
4510
  backgroundColor: K,
4511
4511
  scale: (rA = (EA = A.scale) !== null && EA !== void 0 ? EA : t.devicePixelRatio) !== null && rA !== void 0 ? rA : 1,
@@ -4517,11 +4517,11 @@ var bQ = function(e, A) {
4517
4517
  case 2:
4518
4518
  return f = iA.sent(), [3, 5];
4519
4519
  case 3:
4520
- 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
+ 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)];
4521
4521
  case 4:
4522
4522
  f = iA.sent(), iA.label = 5;
4523
4523
  case 5:
4524
- 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
+ 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];
4525
4525
  }
4526
4526
  });
4527
4527
  });