@mlightcad/mtext-renderer 0.9.1 → 0.9.2

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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _ from "three";
2
- import { BufferGeometry as zi, BufferAttribute as Wi, ShapePath as Ia, ShapeUtils as Da, Shape as qi, LineCurve as ar, QuadraticBezierCurve as mn, CubicBezierCurve as bn, EllipseCurve as xn } from "three";
2
+ import { BufferGeometry as zi, BufferAttribute as Wi, ShapePath as Ia, ShapeUtils as Da, Shape as qi, LineCurve as ar, QuadraticBezierCurve as mn, CubicBezierCurve as xn, EllipseCurve as bn } from "three";
3
3
  class Sn {
4
4
  constructor() {
5
5
  this.listeners = [];
@@ -501,12 +501,12 @@ Ga((t) => ({
501
501
  get: (e, r, n) => Tn(e, r) || t.get(e, r, n),
502
502
  has: (e, r) => !!Tn(e, r) || t.has(e, r)
503
503
  }));
504
- const ns = ["continue", "continuePrimaryKey", "advance"], En = {}, Pr = /* @__PURE__ */ new WeakMap(), Ha = /* @__PURE__ */ new WeakMap(), as = {
504
+ const ns = ["continue", "continuePrimaryKey", "advance"], Cn = {}, Pr = /* @__PURE__ */ new WeakMap(), Ha = /* @__PURE__ */ new WeakMap(), as = {
505
505
  get(t, e) {
506
506
  if (!ns.includes(e))
507
507
  return t[e];
508
- let r = En[e];
509
- return r || (r = En[e] = function(...n) {
508
+ let r = Cn[e];
509
+ return r || (r = Cn[e] = function(...n) {
510
510
  Pr.set(this, Ha.get(this)[e](...n));
511
511
  }), r;
512
512
  }
@@ -520,16 +520,16 @@ async function* is(...t) {
520
520
  for (Ha.set(r, e), Jt.set(r, _r(e)); e; )
521
521
  yield r, e = await (Pr.get(r) || e.continue()), Pr.delete(r);
522
522
  }
523
- function Cn(t, e) {
523
+ function En(t, e) {
524
524
  return e === Symbol.asyncIterator && Mr(t, [IDBIndex, IDBObjectStore, IDBCursor]) || e === "iterate" && Mr(t, [IDBIndex, IDBObjectStore]);
525
525
  }
526
526
  Ga((t) => ({
527
527
  ...t,
528
528
  get(e, r, n) {
529
- return Cn(e, r) ? is : t.get(e, r, n);
529
+ return En(e, r) ? is : t.get(e, r, n);
530
530
  },
531
531
  has(e, r) {
532
- return Cn(e, r) || t.has(e, r);
532
+ return En(e, r) || t.has(e, r);
533
533
  }
534
534
  }));
535
535
  const $e = {
@@ -702,13 +702,13 @@ String.prototype.codePointAt || function() {
702
702
  }) : String.prototype.codePointAt = e;
703
703
  }();
704
704
  var Zr = 0, za = -3;
705
- function bt() {
705
+ function xt() {
706
706
  this.table = new Uint16Array(16), this.trans = new Uint16Array(288);
707
707
  }
708
708
  function ss(t, e) {
709
- this.source = t, this.sourceIndex = 0, this.tag = 0, this.bitcount = 0, this.dest = e, this.destLen = 0, this.ltree = new bt(), this.dtree = new bt();
709
+ this.source = t, this.sourceIndex = 0, this.tag = 0, this.bitcount = 0, this.dest = e, this.destLen = 0, this.ltree = new xt(), this.dtree = new xt();
710
710
  }
711
- var Wa = new bt(), qa = new bt(), $r = new Uint8Array(30), Kr = new Uint16Array(30), Va = new Uint8Array(30), Xa = new Uint16Array(30), os = new Uint8Array([
711
+ var Wa = new xt(), qa = new xt(), $r = new Uint8Array(30), Kr = new Uint16Array(30), Va = new Uint8Array(30), Xa = new Uint16Array(30), os = new Uint8Array([
712
712
  16,
713
713
  17,
714
714
  18,
@@ -728,7 +728,7 @@ var Wa = new bt(), qa = new bt(), $r = new Uint8Array(30), Kr = new Uint16Array(
728
728
  14,
729
729
  1,
730
730
  15
731
- ]), An = new bt(), Ue = new Uint8Array(320);
731
+ ]), An = new xt(), Ue = new Uint8Array(320);
732
732
  function Ya(t, e, r, n) {
733
733
  var a, i;
734
734
  for (a = 0; a < r; ++a)
@@ -891,21 +891,21 @@ Xe.prototype.addY = function(t) {
891
891
  Xe.prototype.addBezier = function(t, e, r, n, a, i, s, o) {
892
892
  var c = [t, e], u = [r, n], h = [a, i], d = [s, o];
893
893
  this.addPoint(t, e), this.addPoint(s, o);
894
- for (var p = 0; p <= 1; p++) {
895
- var g = 6 * c[p] - 12 * u[p] + 6 * h[p], S = -3 * c[p] + 9 * u[p] - 9 * h[p] + 3 * d[p], v = 3 * u[p] - 3 * c[p];
894
+ for (var f = 0; f <= 1; f++) {
895
+ var g = 6 * c[f] - 12 * u[f] + 6 * h[f], S = -3 * c[f] + 9 * u[f] - 9 * h[f] + 3 * d[f], v = 3 * u[f] - 3 * c[f];
896
896
  if (S === 0) {
897
897
  if (g === 0)
898
898
  continue;
899
- var x = -v / g;
900
- 0 < x && x < 1 && (p === 0 && this.addX(rt(c[p], u[p], h[p], d[p], x)), p === 1 && this.addY(rt(c[p], u[p], h[p], d[p], x)));
899
+ var b = -v / g;
900
+ 0 < b && b < 1 && (f === 0 && this.addX(rt(c[f], u[f], h[f], d[f], b)), f === 1 && this.addY(rt(c[f], u[f], h[f], d[f], b)));
901
901
  continue;
902
902
  }
903
903
  var m = Math.pow(g, 2) - 4 * v * S;
904
904
  if (!(m < 0)) {
905
905
  var F = (-g + Math.sqrt(m)) / (2 * S);
906
- 0 < F && F < 1 && (p === 0 && this.addX(rt(c[p], u[p], h[p], d[p], F)), p === 1 && this.addY(rt(c[p], u[p], h[p], d[p], F)));
906
+ 0 < F && F < 1 && (f === 0 && this.addX(rt(c[f], u[f], h[f], d[f], F)), f === 1 && this.addY(rt(c[f], u[f], h[f], d[f], F)));
907
907
  var w = (-g - Math.sqrt(m)) / (2 * S);
908
- 0 < w && w < 1 && (p === 0 && this.addX(rt(c[p], u[p], h[p], d[p], w)), p === 1 && this.addY(rt(c[p], u[p], h[p], d[p], w)));
908
+ 0 < w && w < 1 && (f === 0 && this.addX(rt(c[f], u[f], h[f], d[f], w)), f === 1 && this.addY(rt(c[f], u[f], h[f], d[f], w)));
909
909
  }
910
910
  }
911
911
  };
@@ -1031,7 +1031,7 @@ function Ln(t, e) {
1031
1031
  t || ja(e);
1032
1032
  }
1033
1033
  var P = { fail: ja, argument: Ln, assert: Ln }, On = 32768, Rn = 2147483648, ut = {}, R = {}, N = {};
1034
- function Ee(t) {
1034
+ function Ce(t) {
1035
1035
  return function() {
1036
1036
  return t;
1037
1037
  };
@@ -1039,11 +1039,11 @@ function Ee(t) {
1039
1039
  R.BYTE = function(t) {
1040
1040
  return P.argument(t >= 0 && t <= 255, "Byte value should be between 0 and 255."), [t];
1041
1041
  };
1042
- N.BYTE = Ee(1);
1042
+ N.BYTE = Ce(1);
1043
1043
  R.CHAR = function(t) {
1044
1044
  return [t.charCodeAt(0)];
1045
1045
  };
1046
- N.CHAR = Ee(1);
1046
+ N.CHAR = Ce(1);
1047
1047
  R.CHARARRAY = function(t) {
1048
1048
  typeof t > "u" && (t = "", console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));
1049
1049
  for (var e = [], r = 0; r < t.length; r += 1)
@@ -1056,23 +1056,23 @@ N.CHARARRAY = function(t) {
1056
1056
  R.USHORT = function(t) {
1057
1057
  return [t >> 8 & 255, t & 255];
1058
1058
  };
1059
- N.USHORT = Ee(2);
1059
+ N.USHORT = Ce(2);
1060
1060
  R.SHORT = function(t) {
1061
1061
  return t >= On && (t = -(2 * On - t)), [t >> 8 & 255, t & 255];
1062
1062
  };
1063
- N.SHORT = Ee(2);
1063
+ N.SHORT = Ce(2);
1064
1064
  R.UINT24 = function(t) {
1065
1065
  return [t >> 16 & 255, t >> 8 & 255, t & 255];
1066
1066
  };
1067
- N.UINT24 = Ee(3);
1067
+ N.UINT24 = Ce(3);
1068
1068
  R.ULONG = function(t) {
1069
1069
  return [t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
1070
1070
  };
1071
- N.ULONG = Ee(4);
1071
+ N.ULONG = Ce(4);
1072
1072
  R.LONG = function(t) {
1073
1073
  return t >= Rn && (t = -(2 * Rn - t)), [t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
1074
1074
  };
1075
- N.LONG = Ee(4);
1075
+ N.LONG = Ce(4);
1076
1076
  R.FIXED = R.ULONG;
1077
1077
  N.FIXED = N.ULONG;
1078
1078
  R.FWORD = R.SHORT;
@@ -1082,7 +1082,7 @@ N.UFWORD = N.USHORT;
1082
1082
  R.LONGDATETIME = function(t) {
1083
1083
  return [0, 0, 0, 0, t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
1084
1084
  };
1085
- N.LONGDATETIME = Ee(8);
1085
+ N.LONGDATETIME = Ce(8);
1086
1086
  R.TAG = function(t) {
1087
1087
  return P.argument(t.length === 4, "Tag should be exactly 4 ASCII characters."), [
1088
1088
  t.charCodeAt(0),
@@ -1091,7 +1091,7 @@ R.TAG = function(t) {
1091
1091
  t.charCodeAt(3)
1092
1092
  ];
1093
1093
  };
1094
- N.TAG = Ee(4);
1094
+ N.TAG = Ce(4);
1095
1095
  R.Card8 = R.BYTE;
1096
1096
  N.Card8 = N.BYTE;
1097
1097
  R.Card16 = R.USHORT;
@@ -1109,11 +1109,11 @@ N.NUMBER = function(t) {
1109
1109
  R.NUMBER16 = function(t) {
1110
1110
  return [28, t >> 8 & 255, t & 255];
1111
1111
  };
1112
- N.NUMBER16 = Ee(3);
1112
+ N.NUMBER16 = Ce(3);
1113
1113
  R.NUMBER32 = function(t) {
1114
1114
  return [29, t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
1115
1115
  };
1116
- N.NUMBER32 = Ee(5);
1116
+ N.NUMBER32 = Ce(5);
1117
1117
  R.REAL = function(t) {
1118
1118
  var e = t.toString(), r = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(e);
1119
1119
  if (r) {
@@ -1373,8 +1373,8 @@ R.TABLE = function(t) {
1373
1373
  s.type === "TABLE" ? (a.push(e.length), e = e.concat([0, 0]), n.push(u)) : e = e.concat(u);
1374
1374
  }
1375
1375
  for (var h = 0; h < n.length; h += 1) {
1376
- var d = a[h], p = e.length;
1377
- P.argument(p < 65536, "Table " + t.tableName + " too big."), e[d] = p >> 8, e[d + 1] = p & 255, e = e.concat(n[h]);
1376
+ var d = a[h], f = e.length;
1377
+ P.argument(f < 65536, "Table " + t.tableName + " too big."), e[d] = f >> 8, e[d + 1] = f & 255, e = e.concat(n[h]);
1378
1378
  }
1379
1379
  return e;
1380
1380
  };
@@ -1413,7 +1413,7 @@ he.prototype.encode = function() {
1413
1413
  he.prototype.sizeOf = function() {
1414
1414
  return N.TABLE(this);
1415
1415
  };
1416
- function xt(t, e, r) {
1416
+ function bt(t, e, r) {
1417
1417
  r === void 0 && (r = e.length);
1418
1418
  var n = new Array(e.length + 1);
1419
1419
  n[0] = { name: t + "Count", type: "USHORT", value: r };
@@ -1439,7 +1439,7 @@ function Xt(t) {
1439
1439
  t.format === 1 ? he.call(
1440
1440
  this,
1441
1441
  "coverageTable",
1442
- [{ name: "coverageFormat", type: "USHORT", value: 1 }].concat(xt("glyph", t.glyphs))
1442
+ [{ name: "coverageFormat", type: "USHORT", value: 1 }].concat(bt("glyph", t.glyphs))
1443
1443
  ) : t.format === 2 ? he.call(
1444
1444
  this,
1445
1445
  "coverageTable",
@@ -1466,7 +1466,7 @@ function Yt(t) {
1466
1466
  { name: "defaultLangSys", type: "TABLE", value: new he("defaultLangSys", [
1467
1467
  { name: "lookupOrder", type: "USHORT", value: 0 },
1468
1468
  { name: "reqFeatureIndex", type: "USHORT", value: a.reqFeatureIndex }
1469
- ].concat(xt("featureIndex", a.featureIndexes))) }
1469
+ ].concat(bt("featureIndex", a.featureIndexes))) }
1470
1470
  ].concat(St("langSys", n.langSysRecords, function(i, s) {
1471
1471
  var o = i.langSys;
1472
1472
  return [
@@ -1474,7 +1474,7 @@ function Yt(t) {
1474
1474
  { name: "langSys" + s, type: "TABLE", value: new he("langSys", [
1475
1475
  { name: "lookupOrder", type: "USHORT", value: 0 },
1476
1476
  { name: "reqFeatureIndex", type: "USHORT", value: o.reqFeatureIndex }
1477
- ].concat(xt("featureIndex", o.featureIndexes))) }
1477
+ ].concat(bt("featureIndex", o.featureIndexes))) }
1478
1478
  ];
1479
1479
  }))) }
1480
1480
  ];
@@ -1493,7 +1493,7 @@ function jt(t) {
1493
1493
  { name: "featureTag" + r, type: "TAG", value: e.tag },
1494
1494
  { name: "feature" + r, type: "TABLE", value: new he("featureTable", [
1495
1495
  { name: "featureParams", type: "USHORT", value: n.featureParams }
1496
- ].concat(xt("lookupListIndex", n.lookupListIndexes))) }
1496
+ ].concat(bt("lookupListIndex", n.lookupListIndexes))) }
1497
1497
  ];
1498
1498
  })
1499
1499
  );
@@ -1518,7 +1518,7 @@ var M = {
1518
1518
  ScriptList: Yt,
1519
1519
  FeatureList: jt,
1520
1520
  LookupList: Zt,
1521
- ushortList: xt,
1521
+ ushortList: bt,
1522
1522
  tableList: zr,
1523
1523
  recordList: St
1524
1524
  };
@@ -1538,12 +1538,12 @@ function Za(t, e) {
1538
1538
  var r = t.getInt16(e, !1), n = t.getUint16(e + 2, !1);
1539
1539
  return r + n / 65535;
1540
1540
  }
1541
- function bs(t, e) {
1541
+ function xs(t, e) {
1542
1542
  for (var r = "", n = e; n < e + 4; n += 1)
1543
1543
  r += String.fromCharCode(t.getInt8(n));
1544
1544
  return r;
1545
1545
  }
1546
- function xs(t, e, r) {
1546
+ function bs(t, e, r) {
1547
1547
  for (var n = 0, a = 0; a < r; a += 1)
1548
1548
  n <<= 8, n += t.getUint8(e + a);
1549
1549
  return n;
@@ -1567,98 +1567,98 @@ var Fs = {
1567
1567
  longDateTime: 8,
1568
1568
  tag: 4
1569
1569
  };
1570
- function C(t, e) {
1570
+ function E(t, e) {
1571
1571
  this.data = t, this.offset = e, this.relativeOffset = 0;
1572
1572
  }
1573
- C.prototype.parseByte = function() {
1573
+ E.prototype.parseByte = function() {
1574
1574
  var t = this.data.getUint8(this.offset + this.relativeOffset);
1575
1575
  return this.relativeOffset += 1, t;
1576
1576
  };
1577
- C.prototype.parseChar = function() {
1577
+ E.prototype.parseChar = function() {
1578
1578
  var t = this.data.getInt8(this.offset + this.relativeOffset);
1579
1579
  return this.relativeOffset += 1, t;
1580
1580
  };
1581
- C.prototype.parseCard8 = C.prototype.parseByte;
1582
- C.prototype.parseUShort = function() {
1581
+ E.prototype.parseCard8 = E.prototype.parseByte;
1582
+ E.prototype.parseUShort = function() {
1583
1583
  var t = this.data.getUint16(this.offset + this.relativeOffset);
1584
1584
  return this.relativeOffset += 2, t;
1585
1585
  };
1586
- C.prototype.parseCard16 = C.prototype.parseUShort;
1587
- C.prototype.parseSID = C.prototype.parseUShort;
1588
- C.prototype.parseOffset16 = C.prototype.parseUShort;
1589
- C.prototype.parseShort = function() {
1586
+ E.prototype.parseCard16 = E.prototype.parseUShort;
1587
+ E.prototype.parseSID = E.prototype.parseUShort;
1588
+ E.prototype.parseOffset16 = E.prototype.parseUShort;
1589
+ E.prototype.parseShort = function() {
1590
1590
  var t = this.data.getInt16(this.offset + this.relativeOffset);
1591
1591
  return this.relativeOffset += 2, t;
1592
1592
  };
1593
- C.prototype.parseF2Dot14 = function() {
1593
+ E.prototype.parseF2Dot14 = function() {
1594
1594
  var t = this.data.getInt16(this.offset + this.relativeOffset) / 16384;
1595
1595
  return this.relativeOffset += 2, t;
1596
1596
  };
1597
- C.prototype.parseULong = function() {
1597
+ E.prototype.parseULong = function() {
1598
1598
  var t = Qr(this.data, this.offset + this.relativeOffset);
1599
1599
  return this.relativeOffset += 4, t;
1600
1600
  };
1601
- C.prototype.parseOffset32 = C.prototype.parseULong;
1602
- C.prototype.parseFixed = function() {
1601
+ E.prototype.parseOffset32 = E.prototype.parseULong;
1602
+ E.prototype.parseFixed = function() {
1603
1603
  var t = Za(this.data, this.offset + this.relativeOffset);
1604
1604
  return this.relativeOffset += 4, t;
1605
1605
  };
1606
- C.prototype.parseString = function(t) {
1606
+ E.prototype.parseString = function(t) {
1607
1607
  var e = this.data, r = this.offset + this.relativeOffset, n = "";
1608
1608
  this.relativeOffset += t;
1609
1609
  for (var a = 0; a < t; a++)
1610
1610
  n += String.fromCharCode(e.getUint8(r + a));
1611
1611
  return n;
1612
1612
  };
1613
- C.prototype.parseTag = function() {
1613
+ E.prototype.parseTag = function() {
1614
1614
  return this.parseString(4);
1615
1615
  };
1616
- C.prototype.parseLongDateTime = function() {
1616
+ E.prototype.parseLongDateTime = function() {
1617
1617
  var t = Qr(this.data, this.offset + this.relativeOffset + 4);
1618
1618
  return t -= 2082844800, this.relativeOffset += 8, t;
1619
1619
  };
1620
- C.prototype.parseVersion = function(t) {
1620
+ E.prototype.parseVersion = function(t) {
1621
1621
  var e = $t(this.data, this.offset + this.relativeOffset), r = $t(this.data, this.offset + this.relativeOffset + 2);
1622
1622
  return this.relativeOffset += 4, t === void 0 && (t = 4096), e + r / t / 10;
1623
1623
  };
1624
- C.prototype.skip = function(t, e) {
1624
+ E.prototype.skip = function(t, e) {
1625
1625
  e === void 0 && (e = 1), this.relativeOffset += Fs[t] * e;
1626
1626
  };
1627
- C.prototype.parseULongList = function(t) {
1627
+ E.prototype.parseULongList = function(t) {
1628
1628
  t === void 0 && (t = this.parseULong());
1629
1629
  for (var e = new Array(t), r = this.data, n = this.offset + this.relativeOffset, a = 0; a < t; a++)
1630
1630
  e[a] = r.getUint32(n), n += 4;
1631
1631
  return this.relativeOffset += t * 4, e;
1632
1632
  };
1633
- C.prototype.parseOffset16List = C.prototype.parseUShortList = function(t) {
1633
+ E.prototype.parseOffset16List = E.prototype.parseUShortList = function(t) {
1634
1634
  t === void 0 && (t = this.parseUShort());
1635
1635
  for (var e = new Array(t), r = this.data, n = this.offset + this.relativeOffset, a = 0; a < t; a++)
1636
1636
  e[a] = r.getUint16(n), n += 2;
1637
1637
  return this.relativeOffset += t * 2, e;
1638
1638
  };
1639
- C.prototype.parseShortList = function(t) {
1639
+ E.prototype.parseShortList = function(t) {
1640
1640
  for (var e = new Array(t), r = this.data, n = this.offset + this.relativeOffset, a = 0; a < t; a++)
1641
1641
  e[a] = r.getInt16(n), n += 2;
1642
1642
  return this.relativeOffset += t * 2, e;
1643
1643
  };
1644
- C.prototype.parseByteList = function(t) {
1644
+ E.prototype.parseByteList = function(t) {
1645
1645
  for (var e = new Array(t), r = this.data, n = this.offset + this.relativeOffset, a = 0; a < t; a++)
1646
1646
  e[a] = r.getUint8(n++);
1647
1647
  return this.relativeOffset += t, e;
1648
1648
  };
1649
- C.prototype.parseList = function(t, e) {
1649
+ E.prototype.parseList = function(t, e) {
1650
1650
  e || (e = t, t = this.parseUShort());
1651
1651
  for (var r = new Array(t), n = 0; n < t; n++)
1652
1652
  r[n] = e.call(this);
1653
1653
  return r;
1654
1654
  };
1655
- C.prototype.parseList32 = function(t, e) {
1655
+ E.prototype.parseList32 = function(t, e) {
1656
1656
  e || (e = t, t = this.parseULong());
1657
1657
  for (var r = new Array(t), n = 0; n < t; n++)
1658
1658
  r[n] = e.call(this);
1659
1659
  return r;
1660
1660
  };
1661
- C.prototype.parseRecordList = function(t, e) {
1661
+ E.prototype.parseRecordList = function(t, e) {
1662
1662
  e || (e = t, t = this.parseUShort());
1663
1663
  for (var r = new Array(t), n = Object.keys(e), a = 0; a < t; a++) {
1664
1664
  for (var i = {}, s = 0; s < n.length; s++) {
@@ -1669,7 +1669,7 @@ C.prototype.parseRecordList = function(t, e) {
1669
1669
  }
1670
1670
  return r;
1671
1671
  };
1672
- C.prototype.parseRecordList32 = function(t, e) {
1672
+ E.prototype.parseRecordList32 = function(t, e) {
1673
1673
  e || (e = t, t = this.parseULong());
1674
1674
  for (var r = new Array(t), n = Object.keys(e), a = 0; a < t; a++) {
1675
1675
  for (var i = {}, s = 0; s < n.length; s++) {
@@ -1680,7 +1680,7 @@ C.prototype.parseRecordList32 = function(t, e) {
1680
1680
  }
1681
1681
  return r;
1682
1682
  };
1683
- C.prototype.parseStruct = function(t) {
1683
+ E.prototype.parseStruct = function(t) {
1684
1684
  if (typeof t == "function")
1685
1685
  return t.call(this);
1686
1686
  for (var e = Object.keys(t), r = {}, n = 0; n < e.length; n++) {
@@ -1689,28 +1689,28 @@ C.prototype.parseStruct = function(t) {
1689
1689
  }
1690
1690
  return r;
1691
1691
  };
1692
- C.prototype.parseValueRecord = function(t) {
1692
+ E.prototype.parseValueRecord = function(t) {
1693
1693
  if (t === void 0 && (t = this.parseUShort()), t !== 0) {
1694
1694
  var e = {};
1695
1695
  return t & 1 && (e.xPlacement = this.parseShort()), t & 2 && (e.yPlacement = this.parseShort()), t & 4 && (e.xAdvance = this.parseShort()), t & 8 && (e.yAdvance = this.parseShort()), t & 16 && (e.xPlaDevice = void 0, this.parseShort()), t & 32 && (e.yPlaDevice = void 0, this.parseShort()), t & 64 && (e.xAdvDevice = void 0, this.parseShort()), t & 128 && (e.yAdvDevice = void 0, this.parseShort()), e;
1696
1696
  }
1697
1697
  };
1698
- C.prototype.parseValueRecordList = function() {
1698
+ E.prototype.parseValueRecordList = function() {
1699
1699
  for (var t = this.parseUShort(), e = this.parseUShort(), r = new Array(e), n = 0; n < e; n++)
1700
1700
  r[n] = this.parseValueRecord(t);
1701
1701
  return r;
1702
1702
  };
1703
- C.prototype.parsePointer = function(t) {
1703
+ E.prototype.parsePointer = function(t) {
1704
1704
  var e = this.parseOffset16();
1705
1705
  if (e > 0)
1706
- return new C(this.data, this.offset + e).parseStruct(t);
1706
+ return new E(this.data, this.offset + e).parseStruct(t);
1707
1707
  };
1708
- C.prototype.parsePointer32 = function(t) {
1708
+ E.prototype.parsePointer32 = function(t) {
1709
1709
  var e = this.parseOffset32();
1710
1710
  if (e > 0)
1711
- return new C(this.data, this.offset + e).parseStruct(t);
1711
+ return new E(this.data, this.offset + e).parseStruct(t);
1712
1712
  };
1713
- C.prototype.parseListOfLists = function(t) {
1713
+ E.prototype.parseListOfLists = function(t) {
1714
1714
  for (var e = this.parseOffset16List(), r = e.length, n = this.relativeOffset, a = new Array(r), i = 0; i < r; i++) {
1715
1715
  var s = e[i];
1716
1716
  if (s === 0) {
@@ -1726,7 +1726,7 @@ C.prototype.parseListOfLists = function(t) {
1726
1726
  }
1727
1727
  return this.relativeOffset = n, a;
1728
1728
  };
1729
- C.prototype.parseCoverage = function() {
1729
+ E.prototype.parseCoverage = function() {
1730
1730
  var t = this.offset + this.relativeOffset, e = this.parseUShort(), r = this.parseUShort();
1731
1731
  if (e === 1)
1732
1732
  return {
@@ -1747,7 +1747,7 @@ C.prototype.parseCoverage = function() {
1747
1747
  }
1748
1748
  throw new Error("0x" + t.toString(16) + ": Coverage format must be 1 or 2.");
1749
1749
  };
1750
- C.prototype.parseClassDef = function() {
1750
+ E.prototype.parseClassDef = function() {
1751
1751
  var t = this.offset + this.relativeOffset, e = this.parseUShort();
1752
1752
  if (e === 1)
1753
1753
  return {
@@ -1759,98 +1759,98 @@ C.prototype.parseClassDef = function() {
1759
1759
  return {
1760
1760
  format: 2,
1761
1761
  ranges: this.parseRecordList({
1762
- start: C.uShort,
1763
- end: C.uShort,
1764
- classId: C.uShort
1762
+ start: E.uShort,
1763
+ end: E.uShort,
1764
+ classId: E.uShort
1765
1765
  })
1766
1766
  };
1767
1767
  throw new Error("0x" + t.toString(16) + ": ClassDef format must be 1 or 2.");
1768
1768
  };
1769
- C.list = function(t, e) {
1769
+ E.list = function(t, e) {
1770
1770
  return function() {
1771
1771
  return this.parseList(t, e);
1772
1772
  };
1773
1773
  };
1774
- C.list32 = function(t, e) {
1774
+ E.list32 = function(t, e) {
1775
1775
  return function() {
1776
1776
  return this.parseList32(t, e);
1777
1777
  };
1778
1778
  };
1779
- C.recordList = function(t, e) {
1779
+ E.recordList = function(t, e) {
1780
1780
  return function() {
1781
1781
  return this.parseRecordList(t, e);
1782
1782
  };
1783
1783
  };
1784
- C.recordList32 = function(t, e) {
1784
+ E.recordList32 = function(t, e) {
1785
1785
  return function() {
1786
1786
  return this.parseRecordList32(t, e);
1787
1787
  };
1788
1788
  };
1789
- C.pointer = function(t) {
1789
+ E.pointer = function(t) {
1790
1790
  return function() {
1791
1791
  return this.parsePointer(t);
1792
1792
  };
1793
1793
  };
1794
- C.pointer32 = function(t) {
1794
+ E.pointer32 = function(t) {
1795
1795
  return function() {
1796
1796
  return this.parsePointer32(t);
1797
1797
  };
1798
1798
  };
1799
- C.tag = C.prototype.parseTag;
1800
- C.byte = C.prototype.parseByte;
1801
- C.uShort = C.offset16 = C.prototype.parseUShort;
1802
- C.uShortList = C.prototype.parseUShortList;
1803
- C.uLong = C.offset32 = C.prototype.parseULong;
1804
- C.uLongList = C.prototype.parseULongList;
1805
- C.struct = C.prototype.parseStruct;
1806
- C.coverage = C.prototype.parseCoverage;
1807
- C.classDef = C.prototype.parseClassDef;
1799
+ E.tag = E.prototype.parseTag;
1800
+ E.byte = E.prototype.parseByte;
1801
+ E.uShort = E.offset16 = E.prototype.parseUShort;
1802
+ E.uShortList = E.prototype.parseUShortList;
1803
+ E.uLong = E.offset32 = E.prototype.parseULong;
1804
+ E.uLongList = E.prototype.parseULongList;
1805
+ E.struct = E.prototype.parseStruct;
1806
+ E.coverage = E.prototype.parseCoverage;
1807
+ E.classDef = E.prototype.parseClassDef;
1808
1808
  var In = {
1809
- reserved: C.uShort,
1810
- reqFeatureIndex: C.uShort,
1811
- featureIndexes: C.uShortList
1812
- };
1813
- C.prototype.parseScriptList = function() {
1814
- return this.parsePointer(C.recordList({
1815
- tag: C.tag,
1816
- script: C.pointer({
1817
- defaultLangSys: C.pointer(In),
1818
- langSysRecords: C.recordList({
1819
- tag: C.tag,
1820
- langSys: C.pointer(In)
1809
+ reserved: E.uShort,
1810
+ reqFeatureIndex: E.uShort,
1811
+ featureIndexes: E.uShortList
1812
+ };
1813
+ E.prototype.parseScriptList = function() {
1814
+ return this.parsePointer(E.recordList({
1815
+ tag: E.tag,
1816
+ script: E.pointer({
1817
+ defaultLangSys: E.pointer(In),
1818
+ langSysRecords: E.recordList({
1819
+ tag: E.tag,
1820
+ langSys: E.pointer(In)
1821
1821
  })
1822
1822
  })
1823
1823
  })) || [];
1824
1824
  };
1825
- C.prototype.parseFeatureList = function() {
1826
- return this.parsePointer(C.recordList({
1827
- tag: C.tag,
1828
- feature: C.pointer({
1829
- featureParams: C.offset16,
1830
- lookupListIndexes: C.uShortList
1825
+ E.prototype.parseFeatureList = function() {
1826
+ return this.parsePointer(E.recordList({
1827
+ tag: E.tag,
1828
+ feature: E.pointer({
1829
+ featureParams: E.offset16,
1830
+ lookupListIndexes: E.uShortList
1831
1831
  })
1832
1832
  })) || [];
1833
1833
  };
1834
- C.prototype.parseLookupList = function(t) {
1835
- return this.parsePointer(C.list(C.pointer(function() {
1834
+ E.prototype.parseLookupList = function(t) {
1835
+ return this.parsePointer(E.list(E.pointer(function() {
1836
1836
  var e = this.parseUShort();
1837
1837
  P.argument(1 <= e && e <= 9, "GPOS/GSUB lookup type " + e + " unknown.");
1838
1838
  var r = this.parseUShort(), n = r & 16;
1839
1839
  return {
1840
1840
  lookupType: e,
1841
1841
  lookupFlag: r,
1842
- subtables: this.parseList(C.pointer(t[e])),
1842
+ subtables: this.parseList(E.pointer(t[e])),
1843
1843
  markFilteringSet: n ? this.parseUShort() : void 0
1844
1844
  };
1845
1845
  }))) || [];
1846
1846
  };
1847
- C.prototype.parseFeatureVariationsList = function() {
1847
+ E.prototype.parseFeatureVariationsList = function() {
1848
1848
  return this.parsePointer32(function() {
1849
1849
  var t = this.parseUShort(), e = this.parseUShort();
1850
1850
  P.argument(t === 1 && e < 1, "GPOS/GSUB feature variations table unknown.");
1851
1851
  var r = this.parseRecordList32({
1852
- conditionSetOffset: C.offset32,
1853
- featureTableSubstitutionOffset: C.offset32
1852
+ conditionSetOffset: E.offset32,
1853
+ featureTableSubstitutionOffset: E.offset32
1854
1854
  });
1855
1855
  return r;
1856
1856
  }) || [];
@@ -1863,11 +1863,11 @@ var D = {
1863
1863
  getShort: ms,
1864
1864
  getULong: Qr,
1865
1865
  getFixed: Za,
1866
- getTag: bs,
1867
- getOffset: xs,
1866
+ getTag: xs,
1867
+ getOffset: bs,
1868
1868
  getBytes: Ss,
1869
1869
  bytesToString: ws,
1870
- Parser: C
1870
+ Parser: E
1871
1871
  };
1872
1872
  function ks(t, e) {
1873
1873
  e.parseUShort(), t.length = e.parseULong(), t.language = e.parseULong();
@@ -1882,10 +1882,10 @@ function Ts(t, e, r, n, a) {
1882
1882
  var i;
1883
1883
  t.segCount = i = e.parseUShort() >> 1, e.skip("uShort", 3), t.glyphIndexMap = {};
1884
1884
  for (var s = new D.Parser(r, n + a + 14), o = new D.Parser(r, n + a + 16 + i * 2), c = new D.Parser(r, n + a + 16 + i * 4), u = new D.Parser(r, n + a + 16 + i * 6), h = n + a + 16 + i * 8, d = 0; d < i - 1; d += 1)
1885
- for (var p = void 0, g = s.parseUShort(), S = o.parseUShort(), v = c.parseShort(), x = u.parseUShort(), m = S; m <= g; m += 1)
1886
- x !== 0 ? (h = u.offset + u.relativeOffset - 2, h += x, h += (m - S) * 2, p = D.getUShort(r, h), p !== 0 && (p = p + v & 65535)) : p = m + v & 65535, t.glyphIndexMap[m] = p;
1885
+ for (var f = void 0, g = s.parseUShort(), S = o.parseUShort(), v = c.parseShort(), b = u.parseUShort(), m = S; m <= g; m += 1)
1886
+ b !== 0 ? (h = u.offset + u.relativeOffset - 2, h += b, h += (m - S) * 2, f = D.getUShort(r, h), f !== 0 && (f = f + v & 65535)) : f = m + v & 65535, t.glyphIndexMap[m] = f;
1887
1887
  }
1888
- function Es(t, e) {
1888
+ function Cs(t, e) {
1889
1889
  var r = {};
1890
1890
  r.version = D.getUShort(t, e), P.argument(r.version === 0, "cmap table version should be 0."), r.numTables = D.getUShort(t, e + 2);
1891
1891
  for (var n = -1, a = r.numTables - 1; a >= 0; a -= 1) {
@@ -1906,7 +1906,7 @@ function Es(t, e) {
1906
1906
  throw new Error("Only format 4 and 12 cmap tables are supported (found format " + r.format + ").");
1907
1907
  return r;
1908
1908
  }
1909
- function Cs(t, e, r) {
1909
+ function Es(t, e, r) {
1910
1910
  t.segments.push({
1911
1911
  end: e,
1912
1912
  start: e,
@@ -1959,20 +1959,20 @@ function Us(t) {
1959
1959
  var i = new M.Table("cmap", a);
1960
1960
  for (i.segments = [], r = 0; r < t.length; r += 1) {
1961
1961
  for (var s = t.get(r), o = 0; o < s.unicodes.length; o += 1)
1962
- Cs(i, s.unicodes[o], r);
1962
+ Es(i, s.unicodes[o], r);
1963
1963
  i.segments = i.segments.sort(function(F, w) {
1964
1964
  return F.start - w.start;
1965
1965
  });
1966
1966
  }
1967
1967
  As(i);
1968
- var c = i.segments.length, u = 0, h = [], d = [], p = [], g = [], S = [], v = [];
1968
+ var c = i.segments.length, u = 0, h = [], d = [], f = [], g = [], S = [], v = [];
1969
1969
  for (r = 0; r < c; r += 1) {
1970
- var x = i.segments[r];
1971
- x.end <= 65535 && x.start <= 65535 ? (h = h.concat({ name: "end_" + r, type: "USHORT", value: x.end }), d = d.concat({ name: "start_" + r, type: "USHORT", value: x.start }), p = p.concat({ name: "idDelta_" + r, type: "SHORT", value: x.delta }), g = g.concat({ name: "idRangeOffset_" + r, type: "USHORT", value: x.offset }), x.glyphId !== void 0 && (S = S.concat({ name: "glyph_" + r, type: "USHORT", value: x.glyphId }))) : u += 1, !e && x.glyphIndex !== void 0 && (v = v.concat({ name: "cmap12Start_" + r, type: "ULONG", value: x.start }), v = v.concat({ name: "cmap12End_" + r, type: "ULONG", value: x.end }), v = v.concat({ name: "cmap12Glyph_" + r, type: "ULONG", value: x.glyphIndex }));
1970
+ var b = i.segments[r];
1971
+ b.end <= 65535 && b.start <= 65535 ? (h = h.concat({ name: "end_" + r, type: "USHORT", value: b.end }), d = d.concat({ name: "start_" + r, type: "USHORT", value: b.start }), f = f.concat({ name: "idDelta_" + r, type: "SHORT", value: b.delta }), g = g.concat({ name: "idRangeOffset_" + r, type: "USHORT", value: b.offset }), b.glyphId !== void 0 && (S = S.concat({ name: "glyph_" + r, type: "USHORT", value: b.glyphId }))) : u += 1, !e && b.glyphIndex !== void 0 && (v = v.concat({ name: "cmap12Start_" + r, type: "ULONG", value: b.start }), v = v.concat({ name: "cmap12End_" + r, type: "ULONG", value: b.end }), v = v.concat({ name: "cmap12Glyph_" + r, type: "ULONG", value: b.glyphIndex }));
1972
1972
  }
1973
- if (i.segCountX2 = (c - u) * 2, i.searchRange = Math.pow(2, Math.floor(Math.log(c - u) / Math.log(2))) * 2, i.entrySelector = Math.log(i.searchRange / 2) / Math.log(2), i.rangeShift = i.segCountX2 - i.searchRange, i.fields = i.fields.concat(h), i.fields.push({ name: "reservedPad", type: "USHORT", value: 0 }), i.fields = i.fields.concat(d), i.fields = i.fields.concat(p), i.fields = i.fields.concat(g), i.fields = i.fields.concat(S), i.cmap4Length = 14 + // Subtable header
1973
+ if (i.segCountX2 = (c - u) * 2, i.searchRange = Math.pow(2, Math.floor(Math.log(c - u) / Math.log(2))) * 2, i.entrySelector = Math.log(i.searchRange / 2) / Math.log(2), i.rangeShift = i.segCountX2 - i.searchRange, i.fields = i.fields.concat(h), i.fields.push({ name: "reservedPad", type: "USHORT", value: 0 }), i.fields = i.fields.concat(d), i.fields = i.fields.concat(f), i.fields = i.fields.concat(g), i.fields = i.fields.concat(S), i.cmap4Length = 14 + // Subtable header
1974
1974
  h.length * 2 + 2 + // reservedPad
1975
- d.length * 2 + p.length * 2 + g.length * 2 + S.length * 2, !e) {
1975
+ d.length * 2 + f.length * 2 + g.length * 2 + S.length * 2, !e) {
1976
1976
  var m = 16 + // Subtable header
1977
1977
  v.length * 4;
1978
1978
  i.cmap12Offset = 12 + 2 * 2 + 4 + i.cmap4Length, i.fields = i.fields.concat([
@@ -1985,7 +1985,7 @@ function Us(t) {
1985
1985
  }
1986
1986
  return i;
1987
1987
  }
1988
- var $a = { parse: Es, make: Us }, Wt = [
1988
+ var $a = { parse: Cs, make: Us }, Wt = [
1989
1989
  ".notdef",
1990
1990
  "space",
1991
1991
  "exclam",
@@ -3262,20 +3262,20 @@ Se.prototype.getPath = function(t, e, r, n, a) {
3262
3262
  o === void 0 && (o = u), c === void 0 && (c = u);
3263
3263
  }
3264
3264
  for (var h = new oe(), d = 0; d < i.length; d += 1) {
3265
- var p = i[d];
3266
- p.type === "M" ? h.moveTo(t + p.x * o, e + -p.y * c) : p.type === "L" ? h.lineTo(t + p.x * o, e + -p.y * c) : p.type === "Q" ? h.quadraticCurveTo(
3267
- t + p.x1 * o,
3268
- e + -p.y1 * c,
3269
- t + p.x * o,
3270
- e + -p.y * c
3271
- ) : p.type === "C" ? h.curveTo(
3272
- t + p.x1 * o,
3273
- e + -p.y1 * c,
3274
- t + p.x2 * o,
3275
- e + -p.y2 * c,
3276
- t + p.x * o,
3277
- e + -p.y * c
3278
- ) : p.type === "Z" && h.closePath();
3265
+ var f = i[d];
3266
+ f.type === "M" ? h.moveTo(t + f.x * o, e + -f.y * c) : f.type === "L" ? h.lineTo(t + f.x * o, e + -f.y * c) : f.type === "Q" ? h.quadraticCurveTo(
3267
+ t + f.x1 * o,
3268
+ e + -f.y1 * c,
3269
+ t + f.x * o,
3270
+ e + -f.y * c
3271
+ ) : f.type === "C" ? h.curveTo(
3272
+ t + f.x1 * o,
3273
+ e + -f.y1 * c,
3274
+ t + f.x2 * o,
3275
+ e + -f.y2 * c,
3276
+ t + f.x * o,
3277
+ e + -f.y * c
3278
+ ) : f.type === "Z" && h.closePath();
3279
3279
  }
3280
3280
  return h;
3281
3281
  };
@@ -3306,10 +3306,10 @@ Se.prototype.draw = function(t, e, r, n, a) {
3306
3306
  this.getPath(e, r, n, a).draw(t);
3307
3307
  };
3308
3308
  Se.prototype.drawPoints = function(t, e, r, n) {
3309
- function a(d, p, g, S) {
3309
+ function a(d, f, g, S) {
3310
3310
  t.beginPath();
3311
3311
  for (var v = 0; v < d.length; v += 1)
3312
- t.moveTo(p + d[v].x * S, g + d[v].y * S), t.arc(p + d[v].x * S, g + d[v].y * S, 2, 0, Math.PI * 2, !1);
3312
+ t.moveTo(f + d[v].x * S, g + d[v].y * S), t.arc(f + d[v].x * S, g + d[v].y * S, 2, 0, Math.PI * 2, !1);
3313
3313
  t.closePath(), t.fill();
3314
3314
  }
3315
3315
  e = e !== void 0 ? e : 0, r = r !== void 0 ? r : 0, n = n !== void 0 ? n : 24;
@@ -3411,8 +3411,8 @@ function He(t, e, r) {
3411
3411
  } else
3412
3412
  o = e + 2;
3413
3413
  for (var d = 0; d < n.length - 1; d += 1) {
3414
- var p = D.getBytes(t, s + n[d], s + n[d + 1]);
3415
- r && (p = r(p)), a.push(p);
3414
+ var f = D.getBytes(t, s + n[d], s + n[d + 1]);
3415
+ r && (f = r(f)), a.push(f);
3416
3416
  }
3417
3417
  return { objects: a, startOffset: e, endOffset: o };
3418
3418
  }
@@ -3558,8 +3558,8 @@ function Dn(t, e, r, n) {
3558
3558
  if (c !== 0 && u !== 0) {
3559
3559
  var h = ai(t, u + e, c, n);
3560
3560
  if (o._defaultWidthX = h.defaultWidthX, o._nominalWidthX = h.nominalWidthX, h.subrs !== 0) {
3561
- var d = u + h.subrs, p = He(t, d + e);
3562
- o._subrs = p.objects, o._subrsBias = Wr(o._subrs);
3561
+ var d = u + h.subrs, f = He(t, d + e);
3562
+ o._subrs = f.objects, o._subrsBias = Wr(o._subrs);
3563
3563
  }
3564
3564
  o._privateDict = h;
3565
3565
  }
@@ -3599,21 +3599,21 @@ function js(t, e, r) {
3599
3599
  var u = i.parseCard8();
3600
3600
  n = 1;
3601
3601
  for (var h = 0; h < u; h += 1)
3602
- for (var d = i.parseCard8(), p = i.parseCard8(), g = d; g <= d + p; g += 1)
3602
+ for (var d = i.parseCard8(), f = i.parseCard8(), g = d; g <= d + f; g += 1)
3603
3603
  a[g] = n, n += 1;
3604
3604
  } else
3605
3605
  throw new Error("Unknown encoding format " + s);
3606
3606
  return new Kt(a, r);
3607
3607
  }
3608
3608
  function _n(t, e, r) {
3609
- var n, a, i, s, o = new oe(), c = [], u = 0, h = !1, d = !1, p = 0, g = 0, S, v, x, m;
3609
+ var n, a, i, s, o = new oe(), c = [], u = 0, h = !1, d = !1, f = 0, g = 0, S, v, b, m;
3610
3610
  if (t.isCIDFont) {
3611
3611
  var F = t.tables.cff.topDict._fdSelect[e.index], w = t.tables.cff.topDict._fdArray[F];
3612
- S = w._subrs, v = w._subrsBias, x = w._defaultWidthX, m = w._nominalWidthX;
3612
+ S = w._subrs, v = w._subrsBias, b = w._defaultWidthX, m = w._nominalWidthX;
3613
3613
  } else
3614
- S = t.tables.cff.topDict._subrs, v = t.tables.cff.topDict._subrsBias, x = t.tables.cff.topDict._defaultWidthX, m = t.tables.cff.topDict._nominalWidthX;
3615
- var k = x;
3616
- function E(O, H) {
3614
+ S = t.tables.cff.topDict._subrs, v = t.tables.cff.topDict._subrsBias, b = t.tables.cff.topDict._defaultWidthX, m = t.tables.cff.topDict._nominalWidthX;
3615
+ var k = b;
3616
+ function C(O, H) {
3617
3617
  d && o.closePath(), o.moveTo(O, H), d = !0;
3618
3618
  }
3619
3619
  function L() {
@@ -3621,7 +3621,7 @@ function _n(t, e, r) {
3621
3621
  O = c.length % 2 !== 0, O && !h && (k = c.shift() + m), u += c.length >> 1, c.length = 0, h = !0;
3622
3622
  }
3623
3623
  function B(O) {
3624
- for (var H, W, z, ce, ae, j, Z, $, te, ie, ne, ue, G = 0; G < O.length; ) {
3624
+ for (var H, W, z, ce, ie, j, Z, $, te, se, ae, ue, G = 0; G < O.length; ) {
3625
3625
  var V = O[G];
3626
3626
  switch (G += 1, V) {
3627
3627
  case 1:
@@ -3631,42 +3631,42 @@ function _n(t, e, r) {
3631
3631
  L();
3632
3632
  break;
3633
3633
  case 4:
3634
- c.length > 1 && !h && (k = c.shift() + m, h = !0), g += c.pop(), E(p, g);
3634
+ c.length > 1 && !h && (k = c.shift() + m, h = !0), g += c.pop(), C(f, g);
3635
3635
  break;
3636
3636
  case 5:
3637
3637
  for (; c.length > 0; )
3638
- p += c.shift(), g += c.shift(), o.lineTo(p, g);
3638
+ f += c.shift(), g += c.shift(), o.lineTo(f, g);
3639
3639
  break;
3640
3640
  case 6:
3641
- for (; c.length > 0 && (p += c.shift(), o.lineTo(p, g), c.length !== 0); )
3642
- g += c.shift(), o.lineTo(p, g);
3641
+ for (; c.length > 0 && (f += c.shift(), o.lineTo(f, g), c.length !== 0); )
3642
+ g += c.shift(), o.lineTo(f, g);
3643
3643
  break;
3644
3644
  case 7:
3645
- for (; c.length > 0 && (g += c.shift(), o.lineTo(p, g), c.length !== 0); )
3646
- p += c.shift(), o.lineTo(p, g);
3645
+ for (; c.length > 0 && (g += c.shift(), o.lineTo(f, g), c.length !== 0); )
3646
+ f += c.shift(), o.lineTo(f, g);
3647
3647
  break;
3648
3648
  case 8:
3649
3649
  for (; c.length > 0; )
3650
- n = p + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), p = i + c.shift(), g = s + c.shift(), o.curveTo(n, a, i, s, p, g);
3650
+ n = f + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), f = i + c.shift(), g = s + c.shift(), o.curveTo(n, a, i, s, f, g);
3651
3651
  break;
3652
3652
  case 10:
3653
- ae = c.pop() + v, j = S[ae], j && B(j);
3653
+ ie = c.pop() + v, j = S[ie], j && B(j);
3654
3654
  break;
3655
3655
  case 11:
3656
3656
  return;
3657
3657
  case 12:
3658
3658
  switch (V = O[G], G += 1, V) {
3659
3659
  case 35:
3660
- n = p + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s + c.shift(), te = Z + c.shift(), ie = $ + c.shift(), ne = te + c.shift(), ue = ie + c.shift(), p = ne + c.shift(), g = ue + c.shift(), c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, ie, ne, ue, p, g);
3660
+ n = f + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s + c.shift(), te = Z + c.shift(), se = $ + c.shift(), ae = te + c.shift(), ue = se + c.shift(), f = ae + c.shift(), g = ue + c.shift(), c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, se, ae, ue, f, g);
3661
3661
  break;
3662
3662
  case 34:
3663
- n = p + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s, te = Z + c.shift(), ie = s, ne = te + c.shift(), ue = g, p = ne + c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, ie, ne, ue, p, g);
3663
+ n = f + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s, te = Z + c.shift(), se = s, ae = te + c.shift(), ue = g, f = ae + c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, se, ae, ue, f, g);
3664
3664
  break;
3665
3665
  case 36:
3666
- n = p + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s, te = Z + c.shift(), ie = s, ne = te + c.shift(), ue = ie + c.shift(), p = ne + c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, ie, ne, ue, p, g);
3666
+ n = f + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s, te = Z + c.shift(), se = s, ae = te + c.shift(), ue = se + c.shift(), f = ae + c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, se, ae, ue, f, g);
3667
3667
  break;
3668
3668
  case 37:
3669
- n = p + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s + c.shift(), te = Z + c.shift(), ie = $ + c.shift(), ne = te + c.shift(), ue = ie + c.shift(), Math.abs(ne - p) > Math.abs(ue - g) ? p = ne + c.shift() : g = ue + c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, ie, ne, ue, p, g);
3669
+ n = f + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), Z = i + c.shift(), $ = s + c.shift(), te = Z + c.shift(), se = $ + c.shift(), ae = te + c.shift(), ue = se + c.shift(), Math.abs(ae - f) > Math.abs(ue - g) ? f = ae + c.shift() : g = ue + c.shift(), o.curveTo(n, a, i, s, Z, $), o.curveTo(te, se, ae, ue, f, g);
3670
3670
  break;
3671
3671
  default:
3672
3672
  console.log("Glyph " + e.index + ": unknown operator 1200" + V), c.length = 0;
@@ -3683,45 +3683,45 @@ function _n(t, e, r) {
3683
3683
  L(), G += u + 7 >> 3;
3684
3684
  break;
3685
3685
  case 21:
3686
- c.length > 2 && !h && (k = c.shift() + m, h = !0), g += c.pop(), p += c.pop(), E(p, g);
3686
+ c.length > 2 && !h && (k = c.shift() + m, h = !0), g += c.pop(), f += c.pop(), C(f, g);
3687
3687
  break;
3688
3688
  case 22:
3689
- c.length > 1 && !h && (k = c.shift() + m, h = !0), p += c.pop(), E(p, g);
3689
+ c.length > 1 && !h && (k = c.shift() + m, h = !0), f += c.pop(), C(f, g);
3690
3690
  break;
3691
3691
  case 23:
3692
3692
  L();
3693
3693
  break;
3694
3694
  case 24:
3695
3695
  for (; c.length > 2; )
3696
- n = p + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), p = i + c.shift(), g = s + c.shift(), o.curveTo(n, a, i, s, p, g);
3697
- p += c.shift(), g += c.shift(), o.lineTo(p, g);
3696
+ n = f + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), f = i + c.shift(), g = s + c.shift(), o.curveTo(n, a, i, s, f, g);
3697
+ f += c.shift(), g += c.shift(), o.lineTo(f, g);
3698
3698
  break;
3699
3699
  case 25:
3700
3700
  for (; c.length > 6; )
3701
- p += c.shift(), g += c.shift(), o.lineTo(p, g);
3702
- n = p + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), p = i + c.shift(), g = s + c.shift(), o.curveTo(n, a, i, s, p, g);
3701
+ f += c.shift(), g += c.shift(), o.lineTo(f, g);
3702
+ n = f + c.shift(), a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), f = i + c.shift(), g = s + c.shift(), o.curveTo(n, a, i, s, f, g);
3703
3703
  break;
3704
3704
  case 26:
3705
- for (c.length % 2 && (p += c.shift()); c.length > 0; )
3706
- n = p, a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), p = i, g = s + c.shift(), o.curveTo(n, a, i, s, p, g);
3705
+ for (c.length % 2 && (f += c.shift()); c.length > 0; )
3706
+ n = f, a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), f = i, g = s + c.shift(), o.curveTo(n, a, i, s, f, g);
3707
3707
  break;
3708
3708
  case 27:
3709
3709
  for (c.length % 2 && (g += c.shift()); c.length > 0; )
3710
- n = p + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), p = i + c.shift(), g = s, o.curveTo(n, a, i, s, p, g);
3710
+ n = f + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), f = i + c.shift(), g = s, o.curveTo(n, a, i, s, f, g);
3711
3711
  break;
3712
3712
  case 28:
3713
3713
  H = O[G], W = O[G + 1], c.push((H << 24 | W << 16) >> 16), G += 2;
3714
3714
  break;
3715
3715
  case 29:
3716
- ae = c.pop() + t.gsubrsBias, j = t.gsubrs[ae], j && B(j);
3716
+ ie = c.pop() + t.gsubrsBias, j = t.gsubrs[ie], j && B(j);
3717
3717
  break;
3718
3718
  case 30:
3719
- for (; c.length > 0 && (n = p, a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), p = i + c.shift(), g = s + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, p, g), c.length !== 0); )
3720
- n = p + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), g = s + c.shift(), p = i + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, p, g);
3719
+ for (; c.length > 0 && (n = f, a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), f = i + c.shift(), g = s + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, f, g), c.length !== 0); )
3720
+ n = f + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), g = s + c.shift(), f = i + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, f, g);
3721
3721
  break;
3722
3722
  case 31:
3723
- for (; c.length > 0 && (n = p + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), g = s + c.shift(), p = i + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, p, g), c.length !== 0); )
3724
- n = p, a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), p = i + c.shift(), g = s + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, p, g);
3723
+ for (; c.length > 0 && (n = f + c.shift(), a = g, i = n + c.shift(), s = a + c.shift(), g = s + c.shift(), f = i + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, f, g), c.length !== 0); )
3724
+ n = f, a = g + c.shift(), i = n + c.shift(), s = a + c.shift(), f = i + c.shift(), g = s + (c.length === 1 ? c.shift() : 0), o.curveTo(n, a, i, s, f, g);
3725
3725
  break;
3726
3726
  default:
3727
3727
  V < 32 ? console.log("Glyph " + e.index + ": unknown operator " + V) : V < 247 ? c.push(V - 139) : V < 251 ? (H = O[G], G += 1, c.push((V - 247) * 256 + H + 108)) : V < 255 ? (H = O[G], G += 1, c.push(-(V - 251) * 256 - H - 108)) : (H = O[G], W = O[G + 1], z = O[G + 2], ce = O[G + 3], G += 4, c.push((H << 24 | W << 16 | z << 8 | ce) / 65536));
@@ -3742,7 +3742,7 @@ function Zs(t, e, r, n) {
3742
3742
  var u = s.parseCard16(), h = s.parseCard16();
3743
3743
  if (h !== 0)
3744
3744
  throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID " + h);
3745
- for (var d, p = 0; p < u; p++) {
3745
+ for (var d, f = 0; f < u; f++) {
3746
3746
  if (i = s.parseCard8(), d = s.parseCard16(), i >= n)
3747
3747
  throw new Error("CFF table CID Font FDSelect has bad FD index value " + i + " (FD count " + n + ")");
3748
3748
  if (d > r)
@@ -3766,16 +3766,16 @@ function $s(t, e, r, n) {
3766
3766
  throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + u.length);
3767
3767
  var h = u[0];
3768
3768
  if (r.tables.cff.topDict = h, h._privateDict && (r.defaultWidthX = h._privateDict.defaultWidthX, r.nominalWidthX = h._privateDict.nominalWidthX), h.ros[0] !== void 0 && h.ros[1] !== void 0 && (r.isCIDFont = !0), r.isCIDFont) {
3769
- var d = h.fdArray, p = h.fdSelect;
3770
- if (d === 0 || p === 0)
3769
+ var d = h.fdArray, f = h.fdSelect;
3770
+ if (d === 0 || f === 0)
3771
3771
  throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
3772
3772
  d += e;
3773
3773
  var g = He(t, d), S = Dn(t, e, g.objects, o.objects);
3774
- h._fdArray = S, p += e, h._fdSelect = Zs(t, p, r.numGlyphs, S.length);
3774
+ h._fdArray = S, f += e, h._fdSelect = Zs(t, f, r.numGlyphs, S.length);
3775
3775
  }
3776
- var v = e + h.private[1], x = ai(t, v, h.private[0], o.objects);
3777
- if (r.defaultWidthX = x.defaultWidthX, r.nominalWidthX = x.nominalWidthX, x.subrs !== 0) {
3778
- var m = v + x.subrs, F = He(t, m);
3776
+ var v = e + h.private[1], b = ai(t, v, h.private[0], o.objects);
3777
+ if (r.defaultWidthX = b.defaultWidthX, r.nominalWidthX = b.nominalWidthX, b.subrs !== 0) {
3778
+ var m = v + b.subrs, F = He(t, m);
3779
3779
  r.subrs = F.objects, r.subrsBias = Wr(r.subrs);
3780
3780
  } else
3781
3781
  r.subrs = [], r.subrsBias = 0;
@@ -3788,9 +3788,9 @@ function $s(t, e, r, n) {
3788
3788
  r.glyphs.push(B, Me.cffGlyphLoader(r, B, _n, O));
3789
3789
  };
3790
3790
  else
3791
- for (var E = 0; E < r.nGlyphs; E += 1) {
3792
- var L = w.objects[E];
3793
- r.glyphs.push(E, Me.cffGlyphLoader(r, E, _n, L));
3791
+ for (var C = 0; C < r.nGlyphs; C += 1) {
3792
+ var L = w.objects[C];
3793
+ r.glyphs.push(C, Me.cffGlyphLoader(r, C, _n, L));
3794
3794
  }
3795
3795
  }
3796
3796
  function ii(t, e) {
@@ -3878,8 +3878,8 @@ function ro(t) {
3878
3878
  else if (c.type === "L")
3879
3879
  s = Math.round(c.x - n), o = Math.round(c.y - a), e.push({ name: "dx", type: "NUMBER", value: s }), e.push({ name: "dy", type: "NUMBER", value: o }), e.push({ name: "rlineto", type: "OP", value: 5 }), n = Math.round(c.x), a = Math.round(c.y);
3880
3880
  else if (c.type === "C") {
3881
- var d = Math.round(c.x1 - n), p = Math.round(c.y1 - a), g = Math.round(c.x2 - c.x1), S = Math.round(c.y2 - c.y1);
3882
- s = Math.round(c.x - c.x2), o = Math.round(c.y - c.y2), e.push({ name: "dx1", type: "NUMBER", value: d }), e.push({ name: "dy1", type: "NUMBER", value: p }), e.push({ name: "dx2", type: "NUMBER", value: g }), e.push({ name: "dy2", type: "NUMBER", value: S }), e.push({ name: "dx", type: "NUMBER", value: s }), e.push({ name: "dy", type: "NUMBER", value: o }), e.push({ name: "rrcurveto", type: "OP", value: 8 }), n = Math.round(c.x), a = Math.round(c.y);
3881
+ var d = Math.round(c.x1 - n), f = Math.round(c.y1 - a), g = Math.round(c.x2 - c.x1), S = Math.round(c.y2 - c.y1);
3882
+ s = Math.round(c.x - c.x2), o = Math.round(c.y - c.y2), e.push({ name: "dx1", type: "NUMBER", value: d }), e.push({ name: "dy1", type: "NUMBER", value: f }), e.push({ name: "dx2", type: "NUMBER", value: g }), e.push({ name: "dy2", type: "NUMBER", value: S }), e.push({ name: "dx", type: "NUMBER", value: s }), e.push({ name: "dy", type: "NUMBER", value: o }), e.push({ name: "rrcurveto", type: "OP", value: 8 }), n = Math.round(c.x), a = Math.round(c.y);
3883
3883
  }
3884
3884
  }
3885
3885
  return e.push({ name: "endchar", type: "OP", value: 14 }), e;
@@ -4208,7 +4208,7 @@ var fi = { parse: yo, make: mo }, pi = [
4208
4208
  149: "kl",
4209
4209
  150: "az",
4210
4210
  151: "nn"
4211
- }, bo = {
4211
+ }, xo = {
4212
4212
  0: 0,
4213
4213
  // langEnglish → smRoman
4214
4214
  1: 0,
@@ -4661,7 +4661,7 @@ var fi = { parse: yo, make: mo }, pi = [
4661
4661
  1144: "ii",
4662
4662
  1130: "yo"
4663
4663
  };
4664
- function xo(t, e, r) {
4664
+ function bo(t, e, r) {
4665
4665
  switch (t) {
4666
4666
  case 0:
4667
4667
  if (e === 65535)
@@ -4780,12 +4780,12 @@ function vi(t, e, r) {
4780
4780
  }
4781
4781
  function Fo(t, e, r) {
4782
4782
  for (var n = {}, a = new D.Parser(t, e), i = a.parseUShort(), s = a.parseUShort(), o = a.offset + a.parseUShort(), c = 0; c < s; c++) {
4783
- var u = a.parseUShort(), h = a.parseUShort(), d = a.parseUShort(), p = a.parseUShort(), g = pi[p] || p, S = a.parseUShort(), v = a.parseUShort(), x = xo(u, d, r), m = vi(u, h, d);
4784
- if (m !== void 0 && x !== void 0) {
4783
+ var u = a.parseUShort(), h = a.parseUShort(), d = a.parseUShort(), f = a.parseUShort(), g = pi[f] || f, S = a.parseUShort(), v = a.parseUShort(), b = bo(u, d, r), m = vi(u, h, d);
4784
+ if (m !== void 0 && b !== void 0) {
4785
4785
  var F = void 0;
4786
4786
  if (m === qr ? F = ut.UTF16(t, o + v, S) : F = ut.MACSTRING(t, o + v, S, m), F) {
4787
4787
  var w = n[g];
4788
- w === void 0 && (w = n[g] = {}), w[x] = F;
4788
+ w === void 0 && (w = n[g] = {}), w[b] = F;
4789
4789
  }
4790
4790
  }
4791
4791
  }
@@ -4836,20 +4836,20 @@ function To(t, e) {
4836
4836
  throw new Error('Name table entry "' + s + '" does not exist, see nameTableNames for complete list.');
4837
4837
  a[r] = t[s], n.push(r);
4838
4838
  }
4839
- for (var c = ur(di), u = ur(gi), h = [], d = [], p = 0; p < n.length; p++) {
4840
- r = n[p];
4839
+ for (var c = ur(di), u = ur(gi), h = [], d = [], f = 0; f < n.length; f++) {
4840
+ r = n[f];
4841
4841
  var g = a[r];
4842
4842
  for (var S in g) {
4843
- var v = g[S], x = 1, m = c[S], F = bo[m], w = vi(x, F, m), k = R.MACSTRING(v, w);
4844
- k === void 0 && (x = 0, m = e.indexOf(S), m < 0 && (m = e.length, e.push(S)), F = 4, k = R.UTF16(v));
4845
- var E = Hn(k, d);
4843
+ var v = g[S], b = 1, m = c[S], F = xo[m], w = vi(b, F, m), k = R.MACSTRING(v, w);
4844
+ k === void 0 && (b = 0, m = e.indexOf(S), m < 0 && (m = e.length, e.push(S)), F = 4, k = R.UTF16(v));
4845
+ var C = Hn(k, d);
4846
4846
  h.push(Gn(
4847
- x,
4847
+ b,
4848
4848
  F,
4849
4849
  m,
4850
4850
  r,
4851
4851
  k.length,
4852
- E
4852
+ C
4853
4853
  ));
4854
4854
  var L = u[S];
4855
4855
  if (L !== void 0) {
@@ -5124,7 +5124,7 @@ var yi = { parse: Fo, make: To }, Vr = [
5124
5124
  { begin: 127024, end: 127135 }
5125
5125
  // Domino Tiles
5126
5126
  ];
5127
- function Eo(t) {
5127
+ function Co(t) {
5128
5128
  for (var e = 0; e < Vr.length; e += 1) {
5129
5129
  var r = Vr[e];
5130
5130
  if (t >= r.begin && t < r.end)
@@ -5132,7 +5132,7 @@ function Eo(t) {
5132
5132
  }
5133
5133
  return -1;
5134
5134
  }
5135
- function Co(t, e) {
5135
+ function Eo(t, e) {
5136
5136
  var r = {}, n = new D.Parser(t, e);
5137
5137
  r.version = n.parseUShort(), r.xAvgCharWidth = n.parseShort(), r.usWeightClass = n.parseUShort(), r.usWidthClass = n.parseUShort(), r.fsType = n.parseUShort(), r.ySubscriptXSize = n.parseShort(), r.ySubscriptYSize = n.parseShort(), r.ySubscriptXOffset = n.parseShort(), r.ySubscriptYOffset = n.parseShort(), r.ySuperscriptXSize = n.parseShort(), r.ySuperscriptYSize = n.parseShort(), r.ySuperscriptXOffset = n.parseShort(), r.ySuperscriptYOffset = n.parseShort(), r.yStrikeoutSize = n.parseShort(), r.yStrikeoutPosition = n.parseShort(), r.sFamilyClass = n.parseShort(), r.panose = [];
5138
5138
  for (var a = 0; a < 10; a++)
@@ -5189,7 +5189,7 @@ function Ao(t) {
5189
5189
  { name: "usMaxContext", type: "USHORT", value: 0 }
5190
5190
  ], t);
5191
5191
  }
5192
- var Xr = { parse: Co, make: Ao, unicodeRanges: Vr, getUnicodeRange: Eo };
5192
+ var Xr = { parse: Eo, make: Ao, unicodeRanges: Vr, getUnicodeRange: Co };
5193
5193
  function Uo(t, e) {
5194
5194
  var r = {}, n = new D.Parser(t, e);
5195
5195
  switch (r.version = n.parseVersion(), r.italicAngle = n.parseFixed(), r.underlinePosition = n.parseShort(), r.underlineThickness = n.parseShort(), r.isFixedPitch = n.parseULong(), r.minMemType42 = n.parseULong(), r.maxMemType42 = n.parseULong(), r.minMemType1 = n.parseULong(), r.maxMemType1 = n.parseULong(), r.version) {
@@ -5234,13 +5234,13 @@ Fe[1] = function() {
5234
5234
  if (r === 1)
5235
5235
  return {
5236
5236
  substFormat: 1,
5237
- coverage: this.parsePointer(C.coverage),
5237
+ coverage: this.parsePointer(E.coverage),
5238
5238
  deltaGlyphId: this.parseUShort()
5239
5239
  };
5240
5240
  if (r === 2)
5241
5241
  return {
5242
5242
  substFormat: 2,
5243
- coverage: this.parsePointer(C.coverage),
5243
+ coverage: this.parsePointer(E.coverage),
5244
5244
  substitute: this.parseOffset16List()
5245
5245
  };
5246
5246
  P.assert(!1, "0x" + e.toString(16) + ": lookup type 1 format must be 1 or 2.");
@@ -5249,7 +5249,7 @@ Fe[2] = function() {
5249
5249
  var e = this.parseUShort();
5250
5250
  return P.argument(e === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
5251
5251
  substFormat: e,
5252
- coverage: this.parsePointer(C.coverage),
5252
+ coverage: this.parsePointer(E.coverage),
5253
5253
  sequences: this.parseListOfLists()
5254
5254
  };
5255
5255
  };
@@ -5257,7 +5257,7 @@ Fe[3] = function() {
5257
5257
  var e = this.parseUShort();
5258
5258
  return P.argument(e === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
5259
5259
  substFormat: e,
5260
- coverage: this.parsePointer(C.coverage),
5260
+ coverage: this.parsePointer(E.coverage),
5261
5261
  alternateSets: this.parseListOfLists()
5262
5262
  };
5263
5263
  };
@@ -5265,7 +5265,7 @@ Fe[4] = function() {
5265
5265
  var e = this.parseUShort();
5266
5266
  return P.argument(e === 1, "GSUB ligature table identifier-format must be 1"), {
5267
5267
  substFormat: e,
5268
- coverage: this.parsePointer(C.coverage),
5268
+ coverage: this.parsePointer(E.coverage),
5269
5269
  ligatureSets: this.parseListOfLists(function() {
5270
5270
  return {
5271
5271
  ligGlyph: this.parseUShort(),
@@ -5275,15 +5275,15 @@ Fe[4] = function() {
5275
5275
  };
5276
5276
  };
5277
5277
  var it = {
5278
- sequenceIndex: C.uShort,
5279
- lookupListIndex: C.uShort
5278
+ sequenceIndex: E.uShort,
5279
+ lookupListIndex: E.uShort
5280
5280
  };
5281
5281
  Fe[5] = function() {
5282
5282
  var e = this.offset + this.relativeOffset, r = this.parseUShort();
5283
5283
  if (r === 1)
5284
5284
  return {
5285
5285
  substFormat: r,
5286
- coverage: this.parsePointer(C.coverage),
5286
+ coverage: this.parsePointer(E.coverage),
5287
5287
  ruleSets: this.parseListOfLists(function() {
5288
5288
  var i = this.parseUShort(), s = this.parseUShort();
5289
5289
  return {
@@ -5295,8 +5295,8 @@ Fe[5] = function() {
5295
5295
  if (r === 2)
5296
5296
  return {
5297
5297
  substFormat: r,
5298
- coverage: this.parsePointer(C.coverage),
5299
- classDef: this.parsePointer(C.classDef),
5298
+ coverage: this.parsePointer(E.coverage),
5299
+ classDef: this.parsePointer(E.classDef),
5300
5300
  classSets: this.parseListOfLists(function() {
5301
5301
  var i = this.parseUShort(), s = this.parseUShort();
5302
5302
  return {
@@ -5309,7 +5309,7 @@ Fe[5] = function() {
5309
5309
  var n = this.parseUShort(), a = this.parseUShort();
5310
5310
  return {
5311
5311
  substFormat: r,
5312
- coverages: this.parseList(n, C.pointer(C.coverage)),
5312
+ coverages: this.parseList(n, E.pointer(E.coverage)),
5313
5313
  lookupRecords: this.parseRecordList(a, it)
5314
5314
  };
5315
5315
  }
@@ -5320,7 +5320,7 @@ Fe[6] = function() {
5320
5320
  if (r === 1)
5321
5321
  return {
5322
5322
  substFormat: 1,
5323
- coverage: this.parsePointer(C.coverage),
5323
+ coverage: this.parsePointer(E.coverage),
5324
5324
  chainRuleSets: this.parseListOfLists(function() {
5325
5325
  return {
5326
5326
  backtrack: this.parseUShortList(),
@@ -5333,10 +5333,10 @@ Fe[6] = function() {
5333
5333
  if (r === 2)
5334
5334
  return {
5335
5335
  substFormat: 2,
5336
- coverage: this.parsePointer(C.coverage),
5337
- backtrackClassDef: this.parsePointer(C.classDef),
5338
- inputClassDef: this.parsePointer(C.classDef),
5339
- lookaheadClassDef: this.parsePointer(C.classDef),
5336
+ coverage: this.parsePointer(E.coverage),
5337
+ backtrackClassDef: this.parsePointer(E.classDef),
5338
+ inputClassDef: this.parsePointer(E.classDef),
5339
+ lookaheadClassDef: this.parsePointer(E.classDef),
5340
5340
  chainClassSet: this.parseListOfLists(function() {
5341
5341
  return {
5342
5342
  backtrack: this.parseUShortList(),
@@ -5349,9 +5349,9 @@ Fe[6] = function() {
5349
5349
  if (r === 3)
5350
5350
  return {
5351
5351
  substFormat: 3,
5352
- backtrackCoverage: this.parseList(C.pointer(C.coverage)),
5353
- inputCoverage: this.parseList(C.pointer(C.coverage)),
5354
- lookaheadCoverage: this.parseList(C.pointer(C.coverage)),
5352
+ backtrackCoverage: this.parseList(E.pointer(E.coverage)),
5353
+ inputCoverage: this.parseList(E.pointer(E.coverage)),
5354
+ lookaheadCoverage: this.parseList(E.pointer(E.coverage)),
5355
5355
  lookupRecords: this.parseRecordList(it)
5356
5356
  };
5357
5357
  P.assert(!1, "0x" + e.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
@@ -5359,7 +5359,7 @@ Fe[6] = function() {
5359
5359
  Fe[7] = function() {
5360
5360
  var e = this.parseUShort();
5361
5361
  P.argument(e === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
5362
- var r = this.parseUShort(), n = new C(this.data, this.offset + this.parseULong());
5362
+ var r = this.parseUShort(), n = new E(this.data, this.offset + this.parseULong());
5363
5363
  return {
5364
5364
  substFormat: 1,
5365
5365
  lookupType: r,
@@ -5370,15 +5370,15 @@ Fe[8] = function() {
5370
5370
  var e = this.parseUShort();
5371
5371
  return P.argument(e === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
5372
5372
  substFormat: e,
5373
- coverage: this.parsePointer(C.coverage),
5374
- backtrackCoverage: this.parseList(C.pointer(C.coverage)),
5375
- lookaheadCoverage: this.parseList(C.pointer(C.coverage)),
5373
+ coverage: this.parsePointer(E.coverage),
5374
+ backtrackCoverage: this.parseList(E.pointer(E.coverage)),
5375
+ lookaheadCoverage: this.parseList(E.pointer(E.coverage)),
5376
5376
  substitutes: this.parseUShortList()
5377
5377
  };
5378
5378
  };
5379
5379
  function Lo(t, e) {
5380
5380
  e = e || 0;
5381
- var r = new C(t, e), n = r.parseVersion(1);
5381
+ var r = new E(t, e), n = r.parseVersion(1);
5382
5382
  return P.argument(n === 1 || n === 1.1, "Unsupported GSUB table version."), n === 1 ? {
5383
5383
  version: n,
5384
5384
  scripts: r.parseScriptList(),
@@ -5474,7 +5474,7 @@ function Oo(t) {
5474
5474
  { name: "lookups", type: "TABLE", value: new M.LookupList(t.lookups, ht) }
5475
5475
  ]);
5476
5476
  }
5477
- var bi = { parse: Lo, make: Oo };
5477
+ var xi = { parse: Lo, make: Oo };
5478
5478
  function Ro(t, e) {
5479
5479
  var r = new D.Parser(t, e), n = r.parseULong();
5480
5480
  P.argument(n === 1, "Unsupported META table version."), r.parseULong(), r.parseULong();
@@ -5497,7 +5497,7 @@ function Mo(t) {
5497
5497
  }
5498
5498
  return a.fields.push({ name: "stringPool", type: "CHARARRAY", value: r }), a;
5499
5499
  }
5500
- var xi = { parse: Ro, make: Mo };
5500
+ var bi = { parse: Ro, make: Mo };
5501
5501
  function zn(t) {
5502
5502
  return Math.log(t) / Math.log(2) | 0;
5503
5503
  }
@@ -5556,18 +5556,18 @@ function Io(t) {
5556
5556
  return e / t.length;
5557
5557
  }
5558
5558
  function Do(t) {
5559
- for (var e = [], r = [], n = [], a = [], i = [], s = [], o = [], c, u = 0, h = 0, d = 0, p = 0, g = 0, S = 0; S < t.glyphs.length; S += 1) {
5560
- var v = t.glyphs.get(S), x = v.unicode | 0;
5559
+ for (var e = [], r = [], n = [], a = [], i = [], s = [], o = [], c, u = 0, h = 0, d = 0, f = 0, g = 0, S = 0; S < t.glyphs.length; S += 1) {
5560
+ var v = t.glyphs.get(S), b = v.unicode | 0;
5561
5561
  if (isNaN(v.advanceWidth))
5562
5562
  throw new Error("Glyph " + v.name + " (" + S + "): advanceWidth is not a number.");
5563
- (c > x || c === void 0) && x > 0 && (c = x), u < x && (u = x);
5564
- var m = Xr.getUnicodeRange(x);
5563
+ (c > b || c === void 0) && b > 0 && (c = b), u < b && (u = b);
5564
+ var m = Xr.getUnicodeRange(b);
5565
5565
  if (m < 32)
5566
5566
  h |= 1 << m;
5567
5567
  else if (m < 64)
5568
5568
  d |= 1 << m - 32;
5569
5569
  else if (m < 96)
5570
- p |= 1 << m - 64;
5570
+ f |= 1 << m - 64;
5571
5571
  else if (m < 123)
5572
5572
  g |= 1 << m - 96;
5573
5573
  else
@@ -5599,7 +5599,7 @@ function Do(t) {
5599
5599
  yMax: w.yMax,
5600
5600
  lowestRecPPEM: 3,
5601
5601
  createdTimestamp: t.createdTimestamp
5602
- }), E = ui.make({
5602
+ }), C = ui.make({
5603
5603
  ascender: w.ascender,
5604
5604
  descender: w.descender,
5605
5605
  advanceWidthMax: w.advanceWidthMax,
@@ -5613,7 +5613,7 @@ function Do(t) {
5613
5613
  usLastCharIndex: u,
5614
5614
  ulUnicodeRange1: h,
5615
5615
  ulUnicodeRange2: d,
5616
- ulUnicodeRange3: p,
5616
+ ulUnicodeRange3: f,
5617
5617
  ulUnicodeRange4: g,
5618
5618
  // See http://typophile.com/node/13081 for more info on vertical metrics.
5619
5619
  // We get metrics for typical characters (such as "x" for xHeight).
@@ -5632,22 +5632,22 @@ function Do(t) {
5632
5632
  // Use space as the default character, if available.
5633
5633
  usBreakChar: t.hasChar(" ") ? 32 : 0
5634
5634
  // Use space as the break character, if available.
5635
- }, t.tables.os2)), O = hi.make(t.glyphs), H = $a.make(t.glyphs), W = t.getEnglishName("fontFamily"), z = t.getEnglishName("fontSubfamily"), ce = W + " " + z, ae = t.getEnglishName("postScriptName");
5636
- ae || (ae = W.replace(/\s/g, "") + "-" + z);
5635
+ }, t.tables.os2)), O = hi.make(t.glyphs), H = $a.make(t.glyphs), W = t.getEnglishName("fontFamily"), z = t.getEnglishName("fontSubfamily"), ce = W + " " + z, ie = t.getEnglishName("postScriptName");
5636
+ ie || (ie = W.replace(/\s/g, "") + "-" + z);
5637
5637
  var j = {};
5638
5638
  for (var Z in t.names)
5639
5639
  j[Z] = t.names[Z];
5640
- j.uniqueID || (j.uniqueID = { en: t.getEnglishName("manufacturer") + ":" + ce }), j.postScriptName || (j.postScriptName = { en: ae }), j.preferredFamily || (j.preferredFamily = t.names.fontFamily), j.preferredSubfamily || (j.preferredSubfamily = t.names.fontSubfamily);
5641
- var $ = [], te = yi.make(j, $), ie = $.length > 0 ? li.make($) : void 0, ne = mi.make(), ue = oi.make(t.glyphs, {
5640
+ j.uniqueID || (j.uniqueID = { en: t.getEnglishName("manufacturer") + ":" + ce }), j.postScriptName || (j.postScriptName = { en: ie }), j.preferredFamily || (j.preferredFamily = t.names.fontFamily), j.preferredSubfamily || (j.preferredSubfamily = t.names.fontSubfamily);
5641
+ var $ = [], te = yi.make(j, $), se = $.length > 0 ? li.make($) : void 0, ae = mi.make(), ue = oi.make(t.glyphs, {
5642
5642
  version: t.getEnglishName("version"),
5643
5643
  fullName: ce,
5644
5644
  familyName: W,
5645
5645
  weightName: z,
5646
- postScriptName: ae,
5646
+ postScriptName: ie,
5647
5647
  unitsPerEm: t.unitsPerEm,
5648
5648
  fontBBox: [0, w.yMin, w.ascender, w.advanceWidthMax]
5649
- }), G = t.metas && Object.keys(t.metas).length > 0 ? xi.make(t.metas) : void 0, V = [k, E, L, B, te, H, ne, ue, O];
5650
- ie && V.push(ie), t.tables.gsub && V.push(bi.make(t.tables.gsub)), G && V.push(G);
5649
+ }), G = t.metas && Object.keys(t.metas).length > 0 ? bi.make(t.metas) : void 0, V = [k, C, L, B, te, H, ae, ue, O];
5650
+ se && V.push(se), t.tables.gsub && V.push(xi.make(t.tables.gsub)), G && V.push(G);
5651
5651
  for (var tt = Si(V), Bt = tt.encode(), Lt = tn(Bt), ft = tt.fields, Ot = !1, Pe = 0; Pe < ft.length; Pe += 1)
5652
5652
  if (ft[Pe].name === "head table") {
5653
5653
  ft[Pe].value.checkSumAdjustment = 2981146554 - Lt, Ot = !0;
@@ -5926,7 +5926,7 @@ Tt.prototype.getKerningValue = function(t, e, r) {
5926
5926
  }
5927
5927
  break;
5928
5928
  case 2:
5929
- var d = this.getGlyphClass(s.classDef1, e), p = this.getGlyphClass(s.classDef2, r), g = s.classRecords[d][p];
5929
+ var d = this.getGlyphClass(s.classDef1, e), f = this.getGlyphClass(s.classDef2, r), g = s.classRecords[d][f];
5930
5930
  return g.value1 && g.value1.xAdvance || 0;
5931
5931
  }
5932
5932
  }
@@ -5979,8 +5979,8 @@ ge.prototype.getSingle = function(t, e, r) {
5979
5979
  if (c.substFormat === 1) {
5980
5980
  var d = c.deltaGlyphId;
5981
5981
  for (h = 0; h < u.length; h++) {
5982
- var p = u[h];
5983
- n.push({ sub: p, by: p + d });
5982
+ var f = u[h];
5983
+ n.push({ sub: f, by: f + d });
5984
5984
  }
5985
5985
  } else {
5986
5986
  var g = c.substitute;
@@ -5995,8 +5995,8 @@ ge.prototype.getMultiple = function(t, e, r) {
5995
5995
  for (var s = a[i].subtables, o = 0; o < s.length; o++) {
5996
5996
  var c = s[o], u = this.expandCoverage(c.coverage), h = void 0;
5997
5997
  for (h = 0; h < u.length; h++) {
5998
- var d = u[h], p = c.sequences[h];
5999
- n.push({ sub: d, by: p });
5998
+ var d = u[h], f = c.sequences[h];
5999
+ n.push({ sub: d, by: f });
6000
6000
  }
6001
6001
  }
6002
6002
  return n;
@@ -6012,10 +6012,10 @@ ge.prototype.getLigatures = function(t, e, r) {
6012
6012
  for (var n = [], a = this.getLookupTables(e, r, t, 4), i = 0; i < a.length; i++)
6013
6013
  for (var s = a[i].subtables, o = 0; o < s.length; o++)
6014
6014
  for (var c = s[o], u = this.expandCoverage(c.coverage), h = c.ligatureSets, d = 0; d < u.length; d++)
6015
- for (var p = u[d], g = h[d], S = 0; S < g.length; S++) {
6015
+ for (var f = u[d], g = h[d], S = 0; S < g.length; S++) {
6016
6016
  var v = g[S];
6017
6017
  n.push({
6018
- sub: [p].concat(v.components),
6018
+ sub: [f].concat(v.components),
6019
6019
  by: v.ligGlyph
6020
6020
  });
6021
6021
  }
@@ -6137,15 +6137,15 @@ function wi(t, e, r) {
6137
6137
  a = [];
6138
6138
  for (var h = 0; h < u; h += 1)
6139
6139
  if (i = n.parseByte(), a.push(i), (i & 8) > 0)
6140
- for (var d = n.parseByte(), p = 0; p < d; p += 1)
6140
+ for (var d = n.parseByte(), f = 0; f < d; f += 1)
6141
6141
  a.push(i), h += 1;
6142
6142
  if (P.argument(a.length === u, "Bad flags."), s.length > 0) {
6143
6143
  var g = [], S;
6144
6144
  if (u > 0) {
6145
6145
  for (var v = 0; v < u; v += 1)
6146
6146
  i = a[v], S = {}, S.onCurve = !!(i & 1), S.lastPointOfContour = s.indexOf(v) >= 0, g.push(S);
6147
- for (var x = 0, m = 0; m < u; m += 1)
6148
- i = a[m], S = g[m], S.x = Yn(n, i, x, 2, 16), x = S.x;
6147
+ for (var b = 0, m = 0; m < u; m += 1)
6148
+ i = a[m], S = g[m], S.x = Yn(n, i, b, 2, 16), b = S.x;
6149
6149
  for (var F = 0, w = 0; w < u; w += 1)
6150
6150
  i = a[w], S = g[w], S.y = Yn(n, i, F, 4, 32), F = S.y;
6151
6151
  }
@@ -6158,7 +6158,7 @@ function wi(t, e, r) {
6158
6158
  t.isComposite = !0, t.points = [], t.components = [];
6159
6159
  for (var k = !0; k; ) {
6160
6160
  a = n.parseUShort();
6161
- var E = {
6161
+ var C = {
6162
6162
  glyphIndex: n.parseUShort(),
6163
6163
  xScale: 1,
6164
6164
  scale01: 0,
@@ -6167,7 +6167,7 @@ function wi(t, e, r) {
6167
6167
  dx: 0,
6168
6168
  dy: 0
6169
6169
  };
6170
- (a & 1) > 0 ? (a & 2) > 0 ? (E.dx = n.parseShort(), E.dy = n.parseShort()) : E.matchedPoints = [n.parseUShort(), n.parseUShort()] : (a & 2) > 0 ? (E.dx = n.parseChar(), E.dy = n.parseChar()) : E.matchedPoints = [n.parseByte(), n.parseByte()], (a & 8) > 0 ? E.xScale = E.yScale = n.parseF2Dot14() : (a & 64) > 0 ? (E.xScale = n.parseF2Dot14(), E.yScale = n.parseF2Dot14()) : (a & 128) > 0 && (E.xScale = n.parseF2Dot14(), E.scale01 = n.parseF2Dot14(), E.scale10 = n.parseF2Dot14(), E.yScale = n.parseF2Dot14()), t.components.push(E), k = !!(a & 32);
6170
+ (a & 1) > 0 ? (a & 2) > 0 ? (C.dx = n.parseShort(), C.dy = n.parseShort()) : C.matchedPoints = [n.parseUShort(), n.parseUShort()] : (a & 2) > 0 ? (C.dx = n.parseChar(), C.dy = n.parseChar()) : C.matchedPoints = [n.parseByte(), n.parseByte()], (a & 8) > 0 ? C.xScale = C.yScale = n.parseF2Dot14() : (a & 64) > 0 ? (C.xScale = n.parseF2Dot14(), C.yScale = n.parseF2Dot14()) : (a & 128) > 0 && (C.xScale = n.parseF2Dot14(), C.scale01 = n.parseF2Dot14(), C.scale10 = n.parseF2Dot14(), C.yScale = n.parseF2Dot14()), t.components.push(C), k = !!(a & 32);
6171
6171
  }
6172
6172
  if (a & 256) {
6173
6173
  t.instructionLength = n.parseUShort(), t.instructions = [];
@@ -6263,7 +6263,7 @@ function Wo(t, e, r, n) {
6263
6263
  function qo(t, e, r, n, a) {
6264
6264
  return a.lowMemory ? Wo(t, e, r, n) : zo(t, e, r, n);
6265
6265
  }
6266
- var Ti = { getPath: Fi, parse: qo }, Ei, et, Ci, Yr;
6266
+ var Ti = { getPath: Fi, parse: qo }, Ci, et, Ei, Yr;
6267
6267
  function Ai(t) {
6268
6268
  this.font = t, this.getCommands = function(e) {
6269
6269
  return Ti.getPath(e).commands;
@@ -6421,13 +6421,13 @@ var Bi = function(t) {
6421
6421
  };
6422
6422
  Object.freeze(Oe);
6423
6423
  Object.freeze(De);
6424
- function Et(t, e) {
6424
+ function Ct(t, e) {
6425
6425
  this.x = t, this.y = e, this.axis = void 0, this.slope = e / t, this.normalSlope = -t / e, Object.freeze(this);
6426
6426
  }
6427
- Et.prototype.distance = function(t, e, r, n) {
6427
+ Ct.prototype.distance = function(t, e, r, n) {
6428
6428
  return this.x * Oe.distance(t, e, r, n) + this.y * De.distance(t, e, r, n);
6429
6429
  };
6430
- Et.prototype.interpolate = function(t, e, r, n) {
6430
+ Ct.prototype.interpolate = function(t, e, r, n) {
6431
6431
  var a, i, s, o, c, u, h;
6432
6432
  if (s = n.distance(t, e, !0, !0), o = n.distance(t, r, !0, !0), a = n.distance(e, e, !1, !0), i = n.distance(r, r, !1, !0), c = Math.abs(s), u = Math.abs(o), h = c + u, h === 0) {
6433
6433
  this.setRelative(t, t, (a + i) / 2, n, !0);
@@ -6435,17 +6435,17 @@ Et.prototype.interpolate = function(t, e, r, n) {
6435
6435
  }
6436
6436
  this.setRelative(t, t, (a * u + i * c) / h, n, !0);
6437
6437
  };
6438
- Et.prototype.setRelative = function(t, e, r, n, a) {
6438
+ Ct.prototype.setRelative = function(t, e, r, n, a) {
6439
6439
  n = n || this;
6440
- var i = a ? e.xo : e.x, s = a ? e.yo : e.y, o = i + r * n.x, c = s + r * n.y, u = n.normalSlope, h = this.slope, d = t.x, p = t.y;
6441
- t.x = (h * d - u * o + c - p) / (h - u), t.y = h * (t.x - d) + p;
6440
+ var i = a ? e.xo : e.x, s = a ? e.yo : e.y, o = i + r * n.x, c = s + r * n.y, u = n.normalSlope, h = this.slope, d = t.x, f = t.y;
6441
+ t.x = (h * d - u * o + c - f) / (h - u), t.y = h * (t.x - d) + f;
6442
6442
  };
6443
- Et.prototype.touch = function(t) {
6443
+ Ct.prototype.touch = function(t) {
6444
6444
  t.xTouched = !0, t.yTouched = !0;
6445
6445
  };
6446
- function Ct(t, e) {
6446
+ function Et(t, e) {
6447
6447
  var r = Math.sqrt(t * t + e * e);
6448
- return t /= r, e /= r, t === 1 && e === 0 ? Oe : t === 0 && e === 1 ? De : new Et(t, e);
6448
+ return t /= r, e /= r, t === 1 && e === 0 ? Oe : t === 0 && e === 1 ? De : new Ct(t, e);
6449
6449
  }
6450
6450
  function _e(t, e, r, n) {
6451
6451
  this.x = this.xo = Math.round(t * 64) / 64, this.y = this.yo = Math.round(e * 64) / 64, this.lastPointOfContour = r, this.onCurve = n, this.prevPointOnContour = void 0, this.nextPointOnContour = void 0, this.xTouched = !1, this.yTouched = !1, Object.preventExtensions(this);
@@ -6511,14 +6511,14 @@ Ai.prototype.exec = function(t, e) {
6511
6511
  }
6512
6512
  if (!(this._errorState > 1))
6513
6513
  try {
6514
- return Ci(t, n);
6514
+ return Ei(t, n);
6515
6515
  } catch (u) {
6516
6516
  this._errorState < 1 && (console.log("Hinting error:" + u), console.log("Note: further hinting errors are silenced")), this._errorState = 1;
6517
6517
  return;
6518
6518
  }
6519
6519
  }
6520
6520
  };
6521
- Ci = function(t, e) {
6521
+ Ei = function(t, e) {
6522
6522
  var r = e.ppem / e.font.unitsPerEm, n = r, a = t.components, i, s, o;
6523
6523
  if (ze.prototype = e, !a)
6524
6524
  o = new ze("glyf", t.instructions), exports.DEBUG && (console.log("---EXEC GLYPH---"), o.step = -1), Yr(t, o, r, n), s = o.gZone;
@@ -6528,9 +6528,9 @@ Ci = function(t, e) {
6528
6528
  for (var u = 0; u < a.length; u++) {
6529
6529
  var h = a[u], d = c.glyphs.get(h.glyphIndex);
6530
6530
  o = new ze("glyf", d.instructions), exports.DEBUG && (console.log("---EXEC COMP " + u + "---"), o.step = -1), Yr(d, o, r, n);
6531
- for (var p = Math.round(h.dx * r), g = Math.round(h.dy * n), S = o.gZone, v = o.contours, x = 0; x < S.length; x++) {
6532
- var m = S[x];
6533
- m.xTouched = m.yTouched = !1, m.xo = m.x = m.x + p, m.yo = m.y = m.y + g;
6531
+ for (var f = Math.round(h.dx * r), g = Math.round(h.dy * n), S = o.gZone, v = o.contours, b = 0; b < S.length; b++) {
6532
+ var m = S[b];
6533
+ m.xTouched = m.yTouched = !1, m.xo = m.x = m.x + f, m.yo = m.y = m.y + g;
6534
6534
  }
6535
6535
  var F = s.length;
6536
6536
  s.push.apply(s, S);
@@ -6552,8 +6552,8 @@ Yr = function(t, e, r, n) {
6552
6552
  c.lastPointOfContour,
6553
6553
  c.onCurve
6554
6554
  );
6555
- for (var h, d, p = 0; p < i; p++)
6556
- c = s[p], h || (h = c, o.push(p)), c.lastPointOfContour ? (c.nextPointOnContour = h, h.prevPointOnContour = c, h = void 0) : (d = s[p + 1], c.nextPointOnContour = d, d.prevPointOnContour = c);
6555
+ for (var h, d, f = 0; f < i; f++)
6556
+ c = s[f], h || (h = c, o.push(f)), c.lastPointOfContour ? (c.nextPointOnContour = h, h.prevPointOnContour = c, h = void 0) : (d = s[f + 1], c.nextPointOnContour = d, d.prevPointOnContour = c);
6557
6557
  if (!e.inhibitGridFit) {
6558
6558
  if (exports.DEBUG) {
6559
6559
  console.log("PROCESSING GLYPH", e.stack);
@@ -6575,7 +6575,7 @@ et = function(t) {
6575
6575
  if (e) {
6576
6576
  var r = e.length, n;
6577
6577
  for (t.ip = 0; t.ip < r; t.ip++) {
6578
- if (exports.DEBUG && t.step++, n = Ei[e[t.ip]], !n)
6578
+ if (exports.DEBUG && t.step++, n = Ci[e[t.ip]], !n)
6579
6579
  throw new Error(
6580
6580
  "unknown instruction: 0x" + Number(e[t.ip]).toString(16)
6581
6581
  );
@@ -6620,21 +6620,21 @@ function Kn(t, e) {
6620
6620
  var r = e.stack, n = r.pop(), a = r.pop(), i = e.z2[n], s = e.z1[a];
6621
6621
  exports.DEBUG && console.log("SPVTL[" + t + "]", n, a);
6622
6622
  var o, c;
6623
- t ? (o = i.y - s.y, c = s.x - i.x) : (o = s.x - i.x, c = s.y - i.y), e.pv = e.dpv = Ct(o, c);
6623
+ t ? (o = i.y - s.y, c = s.x - i.x) : (o = s.x - i.x, c = s.y - i.y), e.pv = e.dpv = Et(o, c);
6624
6624
  }
6625
6625
  function Qn(t, e) {
6626
6626
  var r = e.stack, n = r.pop(), a = r.pop(), i = e.z2[n], s = e.z1[a];
6627
6627
  exports.DEBUG && console.log("SFVTL[" + t + "]", n, a);
6628
6628
  var o, c;
6629
- t ? (o = i.y - s.y, c = s.x - i.x) : (o = s.x - i.x, c = s.y - i.y), e.fv = Ct(o, c);
6629
+ t ? (o = i.y - s.y, c = s.x - i.x) : (o = s.x - i.x, c = s.y - i.y), e.fv = Et(o, c);
6630
6630
  }
6631
6631
  function Ko(t) {
6632
6632
  var e = t.stack, r = e.pop(), n = e.pop();
6633
- exports.DEBUG && console.log(t.step, "SPVFS[]", r, n), t.pv = t.dpv = Ct(n, r);
6633
+ exports.DEBUG && console.log(t.step, "SPVFS[]", r, n), t.pv = t.dpv = Et(n, r);
6634
6634
  }
6635
6635
  function Qo(t) {
6636
6636
  var e = t.stack, r = e.pop(), n = e.pop();
6637
- exports.DEBUG && console.log(t.step, "SPVFS[]", r, n), t.fv = Ct(n, r);
6637
+ exports.DEBUG && console.log(t.step, "SPVFS[]", r, n), t.fv = Et(n, r);
6638
6638
  }
6639
6639
  function Jo(t) {
6640
6640
  var e = t.stack, r = t.pv;
@@ -6648,10 +6648,10 @@ function tc(t) {
6648
6648
  t.fv = t.pv, exports.DEBUG && console.log(t.step, "SFVTPV[]");
6649
6649
  }
6650
6650
  function rc(t) {
6651
- var e = t.stack, r = e.pop(), n = e.pop(), a = e.pop(), i = e.pop(), s = e.pop(), o = t.z0, c = t.z1, u = o[r], h = o[n], d = c[a], p = c[i], g = t.z2[s];
6651
+ var e = t.stack, r = e.pop(), n = e.pop(), a = e.pop(), i = e.pop(), s = e.pop(), o = t.z0, c = t.z1, u = o[r], h = o[n], d = c[a], f = c[i], g = t.z2[s];
6652
6652
  exports.DEBUG && console.log("ISECT[], ", r, n, a, i, s);
6653
- var S = u.x, v = u.y, x = h.x, m = h.y, F = d.x, w = d.y, k = p.x, E = p.y, L = (S - x) * (w - E) - (v - m) * (F - k), B = S * m - v * x, O = F * E - w * k;
6654
- g.x = (B * (F - k) - O * (S - x)) / L, g.y = (B * (w - E) - O * (v - m)) / L;
6653
+ var S = u.x, v = u.y, b = h.x, m = h.y, F = d.x, w = d.y, k = f.x, C = f.y, L = (S - b) * (w - C) - (v - m) * (F - k), B = S * m - v * b, O = F * C - w * k;
6654
+ g.x = (B * (F - k) - O * (S - b)) / L, g.y = (B * (w - C) - O * (v - m)) / L;
6655
6655
  }
6656
6656
  function nc(t) {
6657
6657
  t.rp0 = t.stack.pop(), exports.DEBUG && console.log(t.step, "SRP0[]", t.rp0);
@@ -6748,11 +6748,11 @@ function fr(t) {
6748
6748
  function mc(t) {
6749
6749
  exports.DEBUG && console.log(t.step, "CLEAR[]"), t.stack.length = 0;
6750
6750
  }
6751
- function bc(t) {
6751
+ function xc(t) {
6752
6752
  var e = t.stack, r = e.pop(), n = e.pop();
6753
6753
  exports.DEBUG && console.log(t.step, "SWAP[]"), e.push(r), e.push(n);
6754
6754
  }
6755
- function xc(t) {
6755
+ function bc(t) {
6756
6756
  var e = t.stack;
6757
6757
  exports.DEBUG && console.log(t.step, "DEPTH[]"), e.push(e.length);
6758
6758
  }
@@ -6836,10 +6836,10 @@ function na(t, e) {
6836
6836
  default:
6837
6837
  throw new Error("Invalid zone");
6838
6838
  }
6839
- for (var u, h = s.distance(a, a, !1, !0), d = c.length - 2, p = 0; p < d; p++)
6840
- u = c[p], i.setRelative(u, u, h, s);
6839
+ for (var u, h = s.distance(a, a, !1, !0), d = c.length - 2, f = 0; f < d; f++)
6840
+ u = c[f], i.setRelative(u, u, h, s);
6841
6841
  }
6842
- function Ec(t) {
6842
+ function Cc(t) {
6843
6843
  for (var e = t.stack, r = t.loop, n = t.fv, a = e.pop() / 64, i = t.z2; r--; ) {
6844
6844
  var s = e.pop(), o = i[s];
6845
6845
  exports.DEBUG && console.log(
@@ -6851,7 +6851,7 @@ function Ec(t) {
6851
6851
  }
6852
6852
  t.loop = 1;
6853
6853
  }
6854
- function Cc(t) {
6854
+ function Ec(t) {
6855
6855
  for (var e = t.stack, r = t.rp1, n = t.rp2, a = t.loop, i = t.z0[r], s = t.z1[n], o = t.fv, c = t.dpv, u = t.z2; a--; ) {
6856
6856
  var h = e.pop(), d = u[h];
6857
6857
  exports.DEBUG && console.log(
@@ -7002,9 +7002,9 @@ function pr(t, e) {
7002
7002
  var r = e.stack, n = r.pop(), a = e.fv, i = e.pv, s = e.ppem, o = e.deltaBase + (t - 1) * 16, c = e.deltaShift, u = e.z0;
7003
7003
  exports.DEBUG && console.log(e.step, "DELTAP[" + t + "]", n, r);
7004
7004
  for (var h = 0; h < n; h++) {
7005
- var d = r.pop(), p = r.pop(), g = o + ((p & 240) >> 4);
7005
+ var d = r.pop(), f = r.pop(), g = o + ((f & 240) >> 4);
7006
7006
  if (g === s) {
7007
- var S = (p & 15) - 8;
7007
+ var S = (f & 15) - 8;
7008
7008
  S >= 0 && S++, exports.DEBUG && console.log(e.step, "DELTAPFIX", d, "by", S * c);
7009
7009
  var v = u[d];
7010
7010
  a.setRelative(v, v, S * c, i);
@@ -7067,8 +7067,8 @@ function dr(t, e) {
7067
7067
  if (h === a) {
7068
7068
  var d = (u & 15) - 8;
7069
7069
  d >= 0 && d++;
7070
- var p = d * s;
7071
- exports.DEBUG && console.log(e.step, "DELTACFIX", c, "by", p), e.cvt[c] += p;
7070
+ var f = d * s;
7071
+ exports.DEBUG && console.log(e.step, "DELTACFIX", c, "by", f), e.cvt[c] += f;
7072
7072
  }
7073
7073
  }
7074
7074
  }
@@ -7159,7 +7159,7 @@ function ca(t, e) {
7159
7159
  var r = e.stack, n = r.pop(), a = r.pop(), i = e.z2[n], s = e.z1[a];
7160
7160
  exports.DEBUG && console.log(e.step, "SDPVTL[" + t + "]", n, a);
7161
7161
  var o, c;
7162
- t ? (o = i.y - s.y, c = s.x - i.x) : (o = s.x - i.x, c = s.y - i.y), e.dpv = Ct(o, c);
7162
+ t ? (o = i.y - s.y, c = s.x - i.x) : (o = s.x - i.x, c = s.y - i.y), e.dpv = Et(o, c);
7163
7163
  }
7164
7164
  function du(t) {
7165
7165
  var e = t.stack, r = e.pop(), n = 0;
@@ -7181,7 +7181,7 @@ function mu(t) {
7181
7181
  var e = t.stack.pop();
7182
7182
  exports.DEBUG && console.log(t.step, "SCANTYPE[]", e);
7183
7183
  }
7184
- function bu(t) {
7184
+ function xu(t) {
7185
7185
  var e = t.stack.pop(), r = t.stack.pop();
7186
7186
  switch (exports.DEBUG && console.log(t.step, "INSTCTRL[]", e, r), e) {
7187
7187
  case 1:
@@ -7211,8 +7211,8 @@ function Ge(t, e) {
7211
7211
  e.ip = r;
7212
7212
  }
7213
7213
  function I(t, e, r, n, a, i) {
7214
- var s = i.stack, o = t && s.pop(), c = s.pop(), u = i.rp0, h = i.z0[u], d = i.z1[c], p = i.minDis, g = i.fv, S = i.dpv, v, x, m, F;
7215
- x = v = S.distance(d, h, !0, !0), m = x >= 0 ? 1 : -1, x = Math.abs(x), t && (F = i.cvt[o], n && Math.abs(x - F) < i.cvCutIn && (x = F)), r && x < p && (x = p), n && (x = i.round(x)), g.setRelative(d, h, m * x, S), g.touch(d), exports.DEBUG && console.log(
7214
+ var s = i.stack, o = t && s.pop(), c = s.pop(), u = i.rp0, h = i.z0[u], d = i.z1[c], f = i.minDis, g = i.fv, S = i.dpv, v, b, m, F;
7215
+ b = v = S.distance(d, h, !0, !0), m = b >= 0 ? 1 : -1, b = Math.abs(b), t && (F = i.cvt[o], n && Math.abs(b - F) < i.cvCutIn && (b = F)), r && b < f && (b = f), n && (b = i.round(b)), g.setRelative(d, h, m * b, S), g.touch(d), exports.DEBUG && console.log(
7216
7216
  i.step,
7217
7217
  (t ? "MIRP[" : "MDRP[") + (e ? "M" : "m") + (r ? ">" : "_") + (n ? "R" : "_") + (a === 0 ? "Gr" : a === 1 ? "Bl" : a === 2 ? "Wh" : "") + "]",
7218
7218
  t ? o + "(" + i.cvt[o] + "," + F + ")" : "",
@@ -7220,11 +7220,11 @@ function I(t, e, r, n, a, i) {
7220
7220
  "(d =",
7221
7221
  v,
7222
7222
  "->",
7223
- m * x,
7223
+ m * b,
7224
7224
  ")"
7225
7225
  ), i.rp1 = i.rp0, i.rp2 = c, e && (i.rp0 = c);
7226
7226
  }
7227
- Ei = [
7227
+ Ci = [
7228
7228
  /* 0x00 */
7229
7229
  jn.bind(void 0, De),
7230
7230
  /* 0x01 */
@@ -7298,9 +7298,9 @@ Ei = [
7298
7298
  /* 0x22 */
7299
7299
  mc,
7300
7300
  /* 0x23 */
7301
- bc,
7302
- /* 0x24 */
7303
7301
  xc,
7302
+ /* 0x24 */
7303
+ bc,
7304
7304
  /* 0x25 */
7305
7305
  Fc,
7306
7306
  /* 0x26 */
@@ -7343,9 +7343,9 @@ Ei = [
7343
7343
  /* 0x37 */
7344
7344
  na.bind(void 0, 1),
7345
7345
  /* 0x38 */
7346
- Ec,
7347
- /* 0x39 */
7348
7346
  Cc,
7347
+ /* 0x39 */
7348
+ Ec,
7349
7349
  /* 0x3A */
7350
7350
  aa.bind(void 0, 0),
7351
7351
  /* 0x3B */
@@ -7531,7 +7531,7 @@ Ei = [
7531
7531
  /* 0x8D */
7532
7532
  mu,
7533
7533
  /* 0x8E */
7534
- bu,
7534
+ xu,
7535
7535
  /* 0x8F */
7536
7536
  void 0,
7537
7537
  /* 0x90 */
@@ -7765,7 +7765,7 @@ function lt(t) {
7765
7765
  function nn(t, e, r) {
7766
7766
  this.contextName = r, this.startIndex = t, this.endOffset = e;
7767
7767
  }
7768
- function xu(t, e, r) {
7768
+ function bu(t, e, r) {
7769
7769
  this.contextName = t, this.openRange = null, this.ranges = [], this.checkStart = e, this.checkEnd = r;
7770
7770
  }
7771
7771
  function ke(t, e) {
@@ -7951,7 +7951,7 @@ ee.prototype.registerContextChecker = function(t, e, r) {
7951
7951
  return {
7952
7952
  FAIL: "missing context end check."
7953
7953
  };
7954
- var n = new xu(
7954
+ var n = new bu(
7955
7955
  t,
7956
7956
  e,
7957
7957
  r
@@ -8096,20 +8096,20 @@ function Tu(t, e) {
8096
8096
  var u = new ke(c, 0), h = gr(
8097
8097
  e.backtrackCoverage,
8098
8098
  u
8099
- ), d = n.length === e.inputCoverage.length && o.length === e.lookaheadCoverage.length && h.length === e.backtrackCoverage.length, p = [];
8099
+ ), d = n.length === e.inputCoverage.length && o.length === e.lookaheadCoverage.length && h.length === e.backtrackCoverage.length, f = [];
8100
8100
  if (d)
8101
8101
  for (var g = 0; g < e.lookupRecords.length; g++)
8102
- for (var S = e.lookupRecords[g], v = S.lookupListIndex, x = this.getLookupByIndex(v), m = 0; m < x.subtables.length; m++) {
8103
- var F = x.subtables[m], w = this.getLookupMethod(x, F), k = this.getSubstitutionType(x, F);
8102
+ for (var S = e.lookupRecords[g], v = S.lookupListIndex, b = this.getLookupByIndex(v), m = 0; m < b.subtables.length; m++) {
8103
+ var F = b.subtables[m], w = this.getLookupMethod(b, F), k = this.getSubstitutionType(b, F);
8104
8104
  if (k === "12")
8105
- for (var E = 0; E < n.length; E++) {
8106
- var L = t.get(E), B = w(L);
8107
- B && p.push(B);
8105
+ for (var C = 0; C < n.length; C++) {
8106
+ var L = t.get(C), B = w(L);
8107
+ B && f.push(B);
8108
8108
  }
8109
8109
  }
8110
- return p;
8110
+ return f;
8111
8111
  }
8112
- function Eu(t, e) {
8112
+ function Cu(t, e) {
8113
8113
  var r = t.current, n = At(r, e.coverage);
8114
8114
  if (n === -1)
8115
8115
  return null;
@@ -8125,7 +8125,7 @@ function Eu(t, e) {
8125
8125
  }
8126
8126
  return null;
8127
8127
  }
8128
- function Cu(t, e) {
8128
+ function Eu(t, e) {
8129
8129
  var r = At(t, e.coverage);
8130
8130
  return r === -1 ? null : e.sequences[r];
8131
8131
  }
@@ -8208,14 +8208,14 @@ ve.prototype.getLookupMethod = function(t, e) {
8208
8208
  };
8209
8209
  case "41":
8210
8210
  return function(a) {
8211
- return Eu.apply(
8211
+ return Cu.apply(
8212
8212
  r,
8213
8213
  [a, e]
8214
8214
  );
8215
8215
  };
8216
8216
  case "21":
8217
8217
  return function(a) {
8218
- return Cu.apply(
8218
+ return Eu.apply(
8219
8219
  r,
8220
8220
  [a, e]
8221
8221
  );
@@ -8237,38 +8237,38 @@ ve.prototype.lookupFeature = function(t) {
8237
8237
  );
8238
8238
  for (var a = this.getFeatureLookups(n), i = [].concat(e.context), s = 0; s < a.length; s++)
8239
8239
  for (var o = a[s], c = this.getLookupSubtables(o), u = 0; u < c.length; u++) {
8240
- var h = c[u], d = this.getSubstitutionType(o, h), p = this.getLookupMethod(o, h), g = void 0;
8240
+ var h = c[u], d = this.getSubstitutionType(o, h), f = this.getLookupMethod(o, h), g = void 0;
8241
8241
  switch (d) {
8242
8242
  case "11":
8243
- g = p(e.current), g && i.splice(r, 1, new Qe({
8243
+ g = f(e.current), g && i.splice(r, 1, new Qe({
8244
8244
  id: 11,
8245
8245
  tag: t.tag,
8246
8246
  substitution: g
8247
8247
  }));
8248
8248
  break;
8249
8249
  case "12":
8250
- g = p(e.current), g && i.splice(r, 1, new Qe({
8250
+ g = f(e.current), g && i.splice(r, 1, new Qe({
8251
8251
  id: 12,
8252
8252
  tag: t.tag,
8253
8253
  substitution: g
8254
8254
  }));
8255
8255
  break;
8256
8256
  case "63":
8257
- g = p(e), Array.isArray(g) && g.length && i.splice(r, 1, new Qe({
8257
+ g = f(e), Array.isArray(g) && g.length && i.splice(r, 1, new Qe({
8258
8258
  id: 63,
8259
8259
  tag: t.tag,
8260
8260
  substitution: g
8261
8261
  }));
8262
8262
  break;
8263
8263
  case "41":
8264
- g = p(e), g && i.splice(r, 1, new Qe({
8264
+ g = f(e), g && i.splice(r, 1, new Qe({
8265
8265
  id: 41,
8266
8266
  tag: t.tag,
8267
8267
  substitution: g
8268
8268
  }));
8269
8269
  break;
8270
8270
  case "21":
8271
- g = p(e.current), g && i.splice(r, 1, new Qe({
8271
+ g = f(e.current), g && i.splice(r, 1, new Qe({
8272
8272
  id: 21,
8273
8273
  tag: t.tag,
8274
8274
  substitution: g
@@ -8452,8 +8452,8 @@ function Gu(t) {
8452
8452
  });
8453
8453
  if (d instanceof Error)
8454
8454
  return console.info(d.message);
8455
- d.forEach(function(p, g) {
8456
- p instanceof Qe && (an(p, a, g), i.context[g] = p.substitution);
8455
+ d.forEach(function(f, g) {
8456
+ f instanceof Qe && (an(f, a, g), i.context[g] = f.substitution);
8457
8457
  });
8458
8458
  }
8459
8459
  }
@@ -8524,13 +8524,13 @@ function Vu(t) {
8524
8524
  ), a = la(n));
8525
8525
  });
8526
8526
  }
8527
- function Ce(t) {
8527
+ function Ee(t) {
8528
8528
  this.baseDir = t || "ltr", this.tokenizer = new ee(), this.featuresTags = {};
8529
8529
  }
8530
- Ce.prototype.setText = function(t) {
8530
+ Ee.prototype.setText = function(t) {
8531
8531
  this.text = t;
8532
8532
  };
8533
- Ce.prototype.contextChecks = {
8533
+ Ee.prototype.contextChecks = {
8534
8534
  latinWordCheck: qu,
8535
8535
  arabicWordCheck: Bu,
8536
8536
  arabicSentenceCheck: Ru
@@ -8557,7 +8557,7 @@ function Yu() {
8557
8557
  );
8558
8558
  });
8559
8559
  }
8560
- Ce.prototype.registerFeatures = function(t, e) {
8560
+ Ee.prototype.registerFeatures = function(t, e) {
8561
8561
  var r = this, n = e.filter(
8562
8562
  function(a) {
8563
8563
  return r.query.supports({ script: t, tag: a });
@@ -8565,7 +8565,7 @@ Ce.prototype.registerFeatures = function(t, e) {
8565
8565
  );
8566
8566
  this.featuresTags.hasOwnProperty(t) ? this.featuresTags[t] = this.featuresTags[t].concat(n) : this.featuresTags[t] = n;
8567
8567
  };
8568
- Ce.prototype.applyFeatures = function(t, e) {
8568
+ Ee.prototype.applyFeatures = function(t, e) {
8569
8569
  if (!t)
8570
8570
  throw new Error(
8571
8571
  "No valid font was provided to apply features"
@@ -8576,7 +8576,7 @@ Ce.prototype.applyFeatures = function(t, e) {
8576
8576
  this.query.supports({ script: n.script }) && this.registerFeatures(n.script, n.tags);
8577
8577
  }
8578
8578
  };
8579
- Ce.prototype.registerModifier = function(t, e, r) {
8579
+ Ee.prototype.registerModifier = function(t, e, r) {
8580
8580
  this.tokenizer.registerModifier(t, e, r);
8581
8581
  };
8582
8582
  function sn() {
@@ -8621,19 +8621,19 @@ function $u() {
8621
8621
  }
8622
8622
  }
8623
8623
  }
8624
- Ce.prototype.checkContextReady = function(t) {
8624
+ Ee.prototype.checkContextReady = function(t) {
8625
8625
  return !!this.tokenizer.getContext(t);
8626
8626
  };
8627
- Ce.prototype.applyFeaturesToContexts = function() {
8627
+ Ee.prototype.applyFeaturesToContexts = function() {
8628
8628
  this.checkContextReady("arabicWord") && (ju.call(this), Zu.call(this)), this.checkContextReady("latinWord") && $u.call(this), this.checkContextReady("arabicSentence") && Yu.call(this);
8629
8629
  };
8630
- Ce.prototype.processText = function(t) {
8630
+ Ee.prototype.processText = function(t) {
8631
8631
  (!this.text || this.text !== t) && (this.setText(t), Xu.call(this), this.applyFeaturesToContexts());
8632
8632
  };
8633
- Ce.prototype.getBidiText = function(t) {
8633
+ Ee.prototype.getBidiText = function(t) {
8634
8634
  return this.processText(t), this.tokenizer.getText();
8635
8635
  };
8636
- Ce.prototype.getTextGlyphs = function(t) {
8636
+ Ee.prototype.getTextGlyphs = function(t) {
8637
8637
  this.processText(t);
8638
8638
  for (var e = [], r = 0; r < this.tokenizer.tokens.length; r++) {
8639
8639
  var n = this.tokenizer.tokens[r];
@@ -8697,7 +8697,7 @@ Y.prototype.updateFeatures = function(t) {
8697
8697
  });
8698
8698
  };
8699
8699
  Y.prototype.stringToGlyphs = function(t, e) {
8700
- var r = this, n = new Ce(), a = function(d) {
8700
+ var r = this, n = new Ee(), a = function(d) {
8701
8701
  return r.charToGlyphIndex(d.char);
8702
8702
  };
8703
8703
  n.registerModifier("glyphIndex", null, a);
@@ -8743,8 +8743,8 @@ Y.prototype.forEachGlyph = function(t, e, r, n, a, i) {
8743
8743
  for (var h = 0; h < o.length; h += 1) {
8744
8744
  var d = o[h];
8745
8745
  if (i.call(this, d, e, r, n, a), d.advanceWidth && (e += d.advanceWidth * s), a.kerning && h < o.length - 1) {
8746
- var p = c ? this.position.getKerningValue(c, d.index, o[h + 1].index) : this.getKerningValue(d, o[h + 1]);
8747
- e += p * s;
8746
+ var f = c ? this.position.getKerningValue(c, d.index, o[h + 1].index) : this.getKerningValue(d, o[h + 1]);
8747
+ e += f * s;
8748
8748
  }
8749
8749
  a.letterSpacing ? e += a.letterSpacing * n : a.tracking && (e += a.tracking / 1e3 * n);
8750
8750
  }
@@ -8940,14 +8940,14 @@ function rh(t, e, r) {
8940
8940
  n.skip("uShort", 1);
8941
8941
  for (var s = n.parseUShort(), o = n.parseUShort(), c = n.parseUShort(), u = n.parseUShort(), h = [], d = 0; d < s; d++)
8942
8942
  h.push(Qu(t, e + i + d * o, r));
8943
- for (var p = [], g = e + i + s * o, S = 0; S < c; S++)
8944
- p.push(eh(t, g + S * u, h, r));
8945
- return { axes: h, instances: p };
8943
+ for (var f = [], g = e + i + s * o, S = 0; S < c; S++)
8944
+ f.push(eh(t, g + S * u, h, r));
8945
+ return { axes: h, instances: f };
8946
8946
  }
8947
8947
  var nh = { make: th, parse: rh }, ah = function() {
8948
8948
  return {
8949
- coverage: this.parsePointer(C.coverage),
8950
- attachPoints: this.parseList(C.pointer(C.uShortList))
8949
+ coverage: this.parsePointer(E.coverage),
8950
+ attachPoints: this.parseList(E.pointer(E.uShortList))
8951
8951
  };
8952
8952
  }, ih = function() {
8953
8953
  var t = this.parseUShort();
@@ -8961,28 +8961,28 @@ var nh = { make: th, parse: rh }, ah = function() {
8961
8961
  if (t === 3)
8962
8962
  return { coordinate: this.parseShort() };
8963
8963
  }, sh = function() {
8964
- return this.parseList(C.pointer(ih));
8964
+ return this.parseList(E.pointer(ih));
8965
8965
  }, oh = function() {
8966
8966
  return {
8967
- coverage: this.parsePointer(C.coverage),
8968
- ligGlyphs: this.parseList(C.pointer(sh))
8967
+ coverage: this.parsePointer(E.coverage),
8968
+ ligGlyphs: this.parseList(E.pointer(sh))
8969
8969
  };
8970
8970
  }, ch = function() {
8971
- return this.parseUShort(), this.parseList(C.pointer(C.coverage));
8971
+ return this.parseUShort(), this.parseList(E.pointer(E.coverage));
8972
8972
  };
8973
8973
  function uh(t, e) {
8974
8974
  e = e || 0;
8975
- var r = new C(t, e), n = r.parseVersion(1);
8975
+ var r = new E(t, e), n = r.parseVersion(1);
8976
8976
  P.argument(
8977
8977
  n === 1 || n === 1.2 || n === 1.3,
8978
8978
  "Unsupported GDEF table version."
8979
8979
  );
8980
8980
  var a = {
8981
8981
  version: n,
8982
- classDef: r.parsePointer(C.classDef),
8982
+ classDef: r.parsePointer(E.classDef),
8983
8983
  attachList: r.parsePointer(ah),
8984
8984
  ligCaretList: r.parsePointer(oh),
8985
- markAttachClassDef: r.parsePointer(C.classDef)
8985
+ markAttachClassDef: r.parsePointer(E.classDef)
8986
8986
  };
8987
8987
  return n >= 1.2 && (a.markGlyphSets = r.parsePointer(ch)), a;
8988
8988
  }
@@ -8992,13 +8992,13 @@ Te[1] = function() {
8992
8992
  if (r === 1)
8993
8993
  return {
8994
8994
  posFormat: 1,
8995
- coverage: this.parsePointer(C.coverage),
8995
+ coverage: this.parsePointer(E.coverage),
8996
8996
  value: this.parseValueRecord()
8997
8997
  };
8998
8998
  if (r === 2)
8999
8999
  return {
9000
9000
  posFormat: 2,
9001
- coverage: this.parsePointer(C.coverage),
9001
+ coverage: this.parsePointer(E.coverage),
9002
9002
  values: this.parseValueRecordList()
9003
9003
  };
9004
9004
  P.assert(!1, "0x" + e.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
@@ -9006,14 +9006,14 @@ Te[1] = function() {
9006
9006
  Te[2] = function() {
9007
9007
  var e = this.offset + this.relativeOffset, r = this.parseUShort();
9008
9008
  P.assert(r === 1 || r === 2, "0x" + e.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
9009
- var n = this.parsePointer(C.coverage), a = this.parseUShort(), i = this.parseUShort();
9009
+ var n = this.parsePointer(E.coverage), a = this.parseUShort(), i = this.parseUShort();
9010
9010
  if (r === 1)
9011
9011
  return {
9012
9012
  posFormat: r,
9013
9013
  coverage: n,
9014
9014
  valueFormat1: a,
9015
9015
  valueFormat2: i,
9016
- pairSets: this.parseList(C.pointer(C.list(function() {
9016
+ pairSets: this.parseList(E.pointer(E.list(function() {
9017
9017
  return {
9018
9018
  // pairValueRecord
9019
9019
  secondGlyph: this.parseUShort(),
@@ -9023,7 +9023,7 @@ Te[2] = function() {
9023
9023
  })))
9024
9024
  };
9025
9025
  if (r === 2) {
9026
- var s = this.parsePointer(C.classDef), o = this.parsePointer(C.classDef), c = this.parseUShort(), u = this.parseUShort();
9026
+ var s = this.parsePointer(E.classDef), o = this.parsePointer(E.classDef), c = this.parseUShort(), u = this.parseUShort();
9027
9027
  return {
9028
9028
  // Class Pair Adjustment
9029
9029
  posFormat: r,
@@ -9034,7 +9034,7 @@ Te[2] = function() {
9034
9034
  classDef2: o,
9035
9035
  class1Count: c,
9036
9036
  class2Count: u,
9037
- classRecords: this.parseList(c, C.list(u, function() {
9037
+ classRecords: this.parseList(c, E.list(u, function() {
9038
9038
  return {
9039
9039
  value1: this.parseValueRecord(a),
9040
9040
  value2: this.parseValueRecord(i)
@@ -9066,7 +9066,7 @@ Te[9] = function() {
9066
9066
  };
9067
9067
  function lh(t, e) {
9068
9068
  e = e || 0;
9069
- var r = new C(t, e), n = r.parseVersion(1);
9069
+ var r = new E(t, e), n = r.parseVersion(1);
9070
9070
  return P.argument(n === 1 || n === 1.1, "Unsupported GPOS table version " + n), n === 1 ? {
9071
9071
  version: n,
9072
9072
  scripts: r.parseScriptList(),
@@ -9128,14 +9128,14 @@ function yh(t, e) {
9128
9128
  throw new Error("Unsupported kern table version (" + n + ").");
9129
9129
  }
9130
9130
  var mh = { parse: yh };
9131
- function bh(t, e, r, n) {
9131
+ function xh(t, e, r, n) {
9132
9132
  for (var a = new D.Parser(t, e), i = n ? a.parseUShort : a.parseULong, s = [], o = 0; o < r + 1; o += 1) {
9133
9133
  var c = i.call(a);
9134
9134
  n && (c *= 2), s.push(c);
9135
9135
  }
9136
9136
  return s;
9137
9137
  }
9138
- var xh = { parse: bh };
9138
+ var bh = { parse: xh };
9139
9139
  function fa(t, e) {
9140
9140
  for (var r = [], n = 12, a = 0; a < e; a += 1) {
9141
9141
  var i = D.getTag(t, n), s = D.getULong(t, n + 4), o = D.getULong(t, n + 8), c = D.getULong(t, n + 12);
@@ -9184,20 +9184,20 @@ function wh(t, e) {
9184
9184
  s = D.getUShort(i, 12), o = Sh(i, s);
9185
9185
  } else
9186
9186
  throw new Error("Unsupported OpenType signature " + c);
9187
- for (var h, d, p, g, S, v, x, m, F, w, k, E, L = 0; L < s; L += 1) {
9187
+ for (var h, d, f, g, S, v, b, m, F, w, k, C, L = 0; L < s; L += 1) {
9188
9188
  var B = o[L], O = void 0;
9189
9189
  switch (B.tag) {
9190
9190
  case "cmap":
9191
9191
  O = re(i, B), a.tables.cmap = $a.parse(O.data, O.offset), a.encoding = new Qa(a.tables.cmap);
9192
9192
  break;
9193
9193
  case "cvt ":
9194
- O = re(i, B), E = new D.Parser(O.data, O.offset), a.tables.cvt = E.parseShortList(B.length / 2);
9194
+ O = re(i, B), C = new D.Parser(O.data, O.offset), a.tables.cvt = C.parseShortList(B.length / 2);
9195
9195
  break;
9196
9196
  case "fvar":
9197
9197
  d = B;
9198
9198
  break;
9199
9199
  case "fpgm":
9200
- O = re(i, B), E = new D.Parser(O.data, O.offset), a.tables.fpgm = E.parseByteList(B.length);
9200
+ O = re(i, B), C = new D.Parser(O.data, O.offset), a.tables.fpgm = C.parseByteList(B.length);
9201
9201
  break;
9202
9202
  case "head":
9203
9203
  O = re(i, B), a.tables.head = ci.parse(O.data, O.offset), a.unitsPerEm = a.tables.head.unitsPerEm, r = a.tables.head.indexToLocFormat;
@@ -9206,7 +9206,7 @@ function wh(t, e) {
9206
9206
  O = re(i, B), a.tables.hhea = ui.parse(O.data, O.offset), a.ascender = a.tables.hhea.ascender, a.descender = a.tables.hhea.descender, a.numberOfHMetrics = a.tables.hhea.numberOfHMetrics;
9207
9207
  break;
9208
9208
  case "hmtx":
9209
- x = B;
9209
+ b = B;
9210
9210
  break;
9211
9211
  case "ltag":
9212
9212
  O = re(i, B), n = li.parse(O.data, O.offset);
@@ -9224,10 +9224,10 @@ function wh(t, e) {
9224
9224
  O = re(i, B), a.tables.post = mi.parse(O.data, O.offset), a.glyphNames = new Jr(a.tables.post);
9225
9225
  break;
9226
9226
  case "prep":
9227
- O = re(i, B), E = new D.Parser(O.data, O.offset), a.tables.prep = E.parseByteList(B.length);
9227
+ O = re(i, B), C = new D.Parser(O.data, O.offset), a.tables.prep = C.parseByteList(B.length);
9228
9228
  break;
9229
9229
  case "glyf":
9230
- p = B;
9230
+ f = B;
9231
9231
  break;
9232
9232
  case "loca":
9233
9233
  F = B;
@@ -9253,15 +9253,15 @@ function wh(t, e) {
9253
9253
  }
9254
9254
  }
9255
9255
  var H = re(i, w);
9256
- if (a.tables.name = yi.parse(H.data, H.offset, n), a.names = a.tables.name, p && F) {
9257
- var W = r === 0, z = re(i, F), ce = xh.parse(z.data, z.offset, a.numGlyphs, W), ae = re(i, p);
9258
- a.glyphs = Ti.parse(ae.data, ae.offset, ce, a, e);
9256
+ if (a.tables.name = yi.parse(H.data, H.offset, n), a.names = a.tables.name, f && F) {
9257
+ var W = r === 0, z = re(i, F), ce = bh.parse(z.data, z.offset, a.numGlyphs, W), ie = re(i, f);
9258
+ a.glyphs = Ti.parse(ie.data, ie.offset, ce, a, e);
9259
9259
  } else if (h) {
9260
9260
  var j = re(i, h);
9261
9261
  oi.parse(j.data, j.offset, a, e);
9262
9262
  } else
9263
9263
  throw new Error("Font doesn't contain TrueType or CFF outlines.");
9264
- var Z = re(i, x);
9264
+ var Z = re(i, b);
9265
9265
  if (hi.parse(a, Z.data, Z.offset, a.numberOfHMetrics, a.numGlyphs, a.glyphs, e), Ms(a, e), m) {
9266
9266
  var $ = re(i, m);
9267
9267
  a.kerningPairs = mh.parse($.data, $.offset);
@@ -9272,12 +9272,12 @@ function wh(t, e) {
9272
9272
  a.tables.gdef = hh.parse(te.data, te.offset);
9273
9273
  }
9274
9274
  if (S) {
9275
- var ie = re(i, S);
9276
- a.tables.gpos = dh.parse(ie.data, ie.offset), a.position.init();
9275
+ var se = re(i, S);
9276
+ a.tables.gpos = dh.parse(se.data, se.offset), a.position.init();
9277
9277
  }
9278
9278
  if (v) {
9279
- var ne = re(i, v);
9280
- a.tables.gsub = bi.parse(ne.data, ne.offset);
9279
+ var ae = re(i, v);
9280
+ a.tables.gsub = xi.parse(ae.data, ae.offset);
9281
9281
  }
9282
9282
  if (d) {
9283
9283
  var ue = re(i, d);
@@ -9285,7 +9285,7 @@ function wh(t, e) {
9285
9285
  }
9286
9286
  if (k) {
9287
9287
  var G = re(i, k);
9288
- a.tables.meta = xi.parse(G.data, G.offset), a.metas = a.tables.meta;
9288
+ a.tables.meta = bi.parse(G.data, G.offset), a.metas = a.tables.meta;
9289
9289
  }
9290
9290
  return a;
9291
9291
  }
@@ -9294,15 +9294,15 @@ function pa(t, e = !1) {
9294
9294
  let u = 0;
9295
9295
  for (let h = 0; h < t.length; ++h) {
9296
9296
  const d = t[h];
9297
- let p = 0;
9297
+ let f = 0;
9298
9298
  if (r !== (d.index !== null))
9299
9299
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + h + ". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."), null;
9300
9300
  for (const g in d.attributes) {
9301
9301
  if (!n.has(g))
9302
9302
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + h + '. All geometries must have compatible attributes; make sure "' + g + '" attribute exists among all geometries, or in none of them.'), null;
9303
- i[g] === void 0 && (i[g] = []), i[g].push(d.attributes[g]), p++;
9303
+ i[g] === void 0 && (i[g] = []), i[g].push(d.attributes[g]), f++;
9304
9304
  }
9305
- if (p !== n.size)
9305
+ if (f !== n.size)
9306
9306
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + h + ". Make sure all geometries have the same number of attributes."), null;
9307
9307
  if (o !== d.morphTargetsRelative)
9308
9308
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index " + h + ". .morphTargetsRelative must be consistent throughout all geometries."), null;
@@ -9325,11 +9325,11 @@ function pa(t, e = !1) {
9325
9325
  if (r) {
9326
9326
  let h = 0;
9327
9327
  const d = [];
9328
- for (let p = 0; p < t.length; ++p) {
9329
- const g = t[p].index;
9328
+ for (let f = 0; f < t.length; ++f) {
9329
+ const g = t[f].index;
9330
9330
  for (let S = 0; S < g.count; ++S)
9331
9331
  d.push(g.getX(S) + h);
9332
- h += t[p].attributes.position.count;
9332
+ h += t[f].attributes.position.count;
9333
9333
  }
9334
9334
  c.setIndex(d);
9335
9335
  }
@@ -9343,10 +9343,10 @@ function pa(t, e = !1) {
9343
9343
  const d = s[h][0].length;
9344
9344
  if (d === 0) break;
9345
9345
  c.morphAttributes = c.morphAttributes || {}, c.morphAttributes[h] = [];
9346
- for (let p = 0; p < d; ++p) {
9346
+ for (let f = 0; f < d; ++f) {
9347
9347
  const g = [];
9348
9348
  for (let v = 0; v < s[h].length; ++v)
9349
- g.push(s[h][v][p]);
9349
+ g.push(s[h][v][f]);
9350
9350
  const S = da(g);
9351
9351
  if (!S)
9352
9352
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the " + h + " morphAttribute."), null;
@@ -9375,10 +9375,10 @@ function da(t) {
9375
9375
  const h = t[u];
9376
9376
  if (h.isInterleavedBufferAttribute) {
9377
9377
  const d = c / r;
9378
- for (let p = 0, g = h.count; p < g; p++)
9378
+ for (let f = 0, g = h.count; f < g; f++)
9379
9379
  for (let S = 0; S < r; S++) {
9380
- const v = h.getComponent(p, S);
9381
- o.setComponent(p + d, S, v);
9380
+ const v = h.getComponent(f, S);
9381
+ o.setComponent(f + d, S, v);
9382
9382
  }
9383
9383
  } else
9384
9384
  s.set(h.array, c);
@@ -9390,13 +9390,13 @@ function Fh(t, e = 1e-4) {
9390
9390
  e = Math.max(e, Number.EPSILON);
9391
9391
  const r = {}, n = t.getIndex(), a = t.getAttribute("position"), i = n ? n.count : a.count;
9392
9392
  let s = 0;
9393
- const o = Object.keys(t.attributes), c = {}, u = {}, h = [], d = ["getX", "getY", "getZ", "getW"], p = ["setX", "setY", "setZ", "setW"];
9393
+ const o = Object.keys(t.attributes), c = {}, u = {}, h = [], d = ["getX", "getY", "getZ", "getW"], f = ["setX", "setY", "setZ", "setW"];
9394
9394
  for (let F = 0, w = o.length; F < w; F++) {
9395
- const k = o[F], E = t.attributes[k];
9396
- c[k] = new E.constructor(
9397
- new E.array.constructor(E.count * E.itemSize),
9398
- E.itemSize,
9399
- E.normalized
9395
+ const k = o[F], C = t.attributes[k];
9396
+ c[k] = new C.constructor(
9397
+ new C.array.constructor(C.count * C.itemSize),
9398
+ C.itemSize,
9399
+ C.normalized
9400
9400
  );
9401
9401
  const L = t.morphAttributes[k];
9402
9402
  L && (u[k] || (u[k] = []), L.forEach((B, O) => {
@@ -9404,22 +9404,22 @@ function Fh(t, e = 1e-4) {
9404
9404
  u[k][O] = new B.constructor(H, B.itemSize, B.normalized);
9405
9405
  }));
9406
9406
  }
9407
- const g = e * 0.5, S = Math.log10(1 / e), v = Math.pow(10, S), x = g * v;
9407
+ const g = e * 0.5, S = Math.log10(1 / e), v = Math.pow(10, S), b = g * v;
9408
9408
  for (let F = 0; F < i; F++) {
9409
9409
  const w = n ? n.getX(F) : F;
9410
9410
  let k = "";
9411
- for (let E = 0, L = o.length; E < L; E++) {
9412
- const B = o[E], O = t.getAttribute(B), H = O.itemSize;
9411
+ for (let C = 0, L = o.length; C < L; C++) {
9412
+ const B = o[C], O = t.getAttribute(B), H = O.itemSize;
9413
9413
  for (let W = 0; W < H; W++)
9414
- k += `${~~(O[d[W]](w) * v + x)},`;
9414
+ k += `${~~(O[d[W]](w) * v + b)},`;
9415
9415
  }
9416
9416
  if (k in r)
9417
9417
  h.push(r[k]);
9418
9418
  else {
9419
- for (let E = 0, L = o.length; E < L; E++) {
9420
- const B = o[E], O = t.getAttribute(B), H = t.morphAttributes[B], W = O.itemSize, z = c[B], ce = u[B];
9421
- for (let ae = 0; ae < W; ae++) {
9422
- const j = d[ae], Z = p[ae];
9419
+ for (let C = 0, L = o.length; C < L; C++) {
9420
+ const B = o[C], O = t.getAttribute(B), H = t.morphAttributes[B], W = O.itemSize, z = c[B], ce = u[B];
9421
+ for (let ie = 0; ie < W; ie++) {
9422
+ const j = d[ie], Z = f[ie];
9423
9423
  if (z[Z](s, O[j](w)), H)
9424
9424
  for (let $ = 0, te = H.length; $ < te; $++)
9425
9425
  ce[$][Z](s, H[$][j](w));
@@ -9437,11 +9437,11 @@ function Fh(t, e = 1e-4) {
9437
9437
  w.normalized
9438
9438
  )), F in u)
9439
9439
  for (let k = 0; k < u[F].length; k++) {
9440
- const E = u[F][k];
9441
- m.morphAttributes[F][k] = new E.constructor(
9442
- E.array.slice(0, s * E.itemSize),
9443
- E.itemSize,
9444
- E.normalized
9440
+ const C = u[F][k];
9441
+ m.morphAttributes[F][k] = new C.constructor(
9442
+ C.array.slice(0, s * C.itemSize),
9443
+ C.itemSize,
9444
+ C.normalized
9445
9445
  );
9446
9446
  }
9447
9447
  }
@@ -9500,41 +9500,41 @@ function Th(t, e, r) {
9500
9500
  `)
9501
9501
  o = 0, c -= i;
9502
9502
  else {
9503
- const d = Eh(h, a, o, c, r);
9503
+ const d = Ch(h, a, o, c, r);
9504
9504
  o += d.offsetX, s.push(d.path);
9505
9505
  }
9506
9506
  }
9507
9507
  return s;
9508
9508
  }
9509
- function Eh(t, e, r, n, a) {
9509
+ function Ch(t, e, r, n, a) {
9510
9510
  const i = a.glyphs[t] || a.glyphs["?"];
9511
9511
  if (!i) {
9512
9512
  console.error('THREE.Font: character "' + t + '" does not exists in font family ' + a.familyName + ".");
9513
9513
  return;
9514
9514
  }
9515
9515
  const s = new Ia();
9516
- let o, c, u, h, d, p, g, S;
9516
+ let o, c, u, h, d, f, g, S;
9517
9517
  if (i.o) {
9518
9518
  const v = i._cachedOutline || (i._cachedOutline = i.o.split(" "));
9519
- for (let x = 0, m = v.length; x < m; )
9520
- switch (v[x++]) {
9519
+ for (let b = 0, m = v.length; b < m; )
9520
+ switch (v[b++]) {
9521
9521
  case "m":
9522
- o = v[x++] * e + r, c = v[x++] * e + n, s.moveTo(o, c);
9522
+ o = v[b++] * e + r, c = v[b++] * e + n, s.moveTo(o, c);
9523
9523
  break;
9524
9524
  case "l":
9525
- o = v[x++] * e + r, c = v[x++] * e + n, s.lineTo(o, c);
9525
+ o = v[b++] * e + r, c = v[b++] * e + n, s.lineTo(o, c);
9526
9526
  break;
9527
9527
  case "q":
9528
- u = v[x++] * e + r, h = v[x++] * e + n, d = v[x++] * e + r, p = v[x++] * e + n, s.quadraticCurveTo(d, p, u, h);
9528
+ u = v[b++] * e + r, h = v[b++] * e + n, d = v[b++] * e + r, f = v[b++] * e + n, s.quadraticCurveTo(d, f, u, h);
9529
9529
  break;
9530
9530
  case "b":
9531
- u = v[x++] * e + r, h = v[x++] * e + n, d = v[x++] * e + r, p = v[x++] * e + n, g = v[x++] * e + r, S = v[x++] * e + n, s.bezierCurveTo(d, p, g, S, u, h);
9531
+ u = v[b++] * e + r, h = v[b++] * e + n, d = v[b++] * e + r, f = v[b++] * e + n, g = v[b++] * e + r, S = v[b++] * e + n, s.bezierCurveTo(d, f, g, S, u, h);
9532
9532
  break;
9533
9533
  }
9534
9534
  }
9535
9535
  return { offsetX: i.ha * e, path: s };
9536
9536
  }
9537
- class Ch extends kh {
9537
+ class Eh extends kh {
9538
9538
  /**
9539
9539
  * Generates geometry shapes from the given text and size.
9540
9540
  *
@@ -9610,7 +9610,7 @@ function Uh(t, e, r, n, a) {
9610
9610
  let c = 0;
9611
9611
  for (; c < o.length; ) {
9612
9612
  const u = o[c++];
9613
- let h, d, p, g, S, v, x, m;
9613
+ let h, d, f, g, S, v, b, m;
9614
9614
  switch (u) {
9615
9615
  case "m":
9616
9616
  h = parseFloat(o[c++]) * e + r, d = parseFloat(o[c++]) * e + n, s.moveTo(h, d);
@@ -9619,10 +9619,10 @@ function Uh(t, e, r, n, a) {
9619
9619
  h = parseFloat(o[c++]) * e + r, d = parseFloat(o[c++]) * e + n, s.lineTo(h, d);
9620
9620
  break;
9621
9621
  case "q":
9622
- p = parseFloat(o[c++]) * e + r, g = parseFloat(o[c++]) * e + n, S = parseFloat(o[c++]) * e + r, v = parseFloat(o[c++]) * e + n, s.quadraticCurveTo(S, v, p, g);
9622
+ f = parseFloat(o[c++]) * e + r, g = parseFloat(o[c++]) * e + n, S = parseFloat(o[c++]) * e + r, v = parseFloat(o[c++]) * e + n, s.quadraticCurveTo(S, v, f, g);
9623
9623
  break;
9624
9624
  case "b":
9625
- p = parseFloat(o[c++]) * e + r, g = parseFloat(o[c++]) * e + n, S = parseFloat(o[c++]) * e + r, v = parseFloat(o[c++]) * e + n, x = parseFloat(o[c++]) * e + r, m = parseFloat(o[c++]) * e + n, s.bezierCurveTo(S, v, x, m, p, g);
9625
+ f = parseFloat(o[c++]) * e + r, g = parseFloat(o[c++]) * e + n, S = parseFloat(o[c++]) * e + r, v = parseFloat(o[c++]) * e + n, b = parseFloat(o[c++]) * e + r, m = parseFloat(o[c++]) * e + n, s.bezierCurveTo(S, v, b, m, f, g);
9626
9626
  break;
9627
9627
  }
9628
9628
  }
@@ -9672,18 +9672,18 @@ function Mh(t) {
9672
9672
  e.push(
9673
9673
  new mn(n.v2.clone(), n.v1.clone(), n.v0.clone())
9674
9674
  );
9675
- else if (n instanceof bn)
9675
+ else if (n instanceof xn)
9676
9676
  e.push(
9677
- new bn(
9677
+ new xn(
9678
9678
  n.v3.clone(),
9679
9679
  n.v2.clone(),
9680
9680
  n.v1.clone(),
9681
9681
  n.v0.clone()
9682
9682
  )
9683
9683
  );
9684
- else if (n instanceof xn)
9684
+ else if (n instanceof bn)
9685
9685
  e.push(
9686
- new xn(
9686
+ new bn(
9687
9687
  n.aX,
9688
9688
  n.aY,
9689
9689
  n.xRadius,
@@ -9715,23 +9715,23 @@ function Ih(t, e = 32) {
9715
9715
  for (; S.length; ) {
9716
9716
  const v = S.pop();
9717
9717
  c[v.idx] = v.d, u[v.idx] = g;
9718
- for (const x of i[v.idx]) S.push({ idx: x, d: v.d + 1 });
9718
+ for (const b of i[v.idx]) S.push({ idx: b, d: v.d + 1 });
9719
9719
  }
9720
9720
  }
9721
9721
  const h = [], d = /* @__PURE__ */ new Set();
9722
- function p(g) {
9722
+ function f(g) {
9723
9723
  const S = va(r[g], !0);
9724
9724
  d.add(g);
9725
9725
  for (const v of i[g])
9726
9726
  if (!d.has(v) && c[v] === c[g] + 1) {
9727
- const x = va(r[v], !1);
9728
- S.holes.push(x), d.add(v);
9727
+ const b = va(r[v], !1);
9728
+ S.holes.push(b), d.add(v);
9729
9729
  }
9730
9730
  h.push(S);
9731
9731
  }
9732
- for (const g of s) p(g);
9732
+ for (const g of s) f(g);
9733
9733
  for (let g = 0; g < o; g++)
9734
- d.has(g) || p(g);
9734
+ d.has(g) || f(g);
9735
9735
  return h;
9736
9736
  }
9737
9737
  class Dh {
@@ -9773,7 +9773,7 @@ class _h extends Pa {
9773
9773
  throw new Error(
9774
9774
  "Invalid font cache data. Please remove font cache database named 'mlightcad' in IndexedDB and try again!"
9775
9775
  );
9776
- this.font = new Ch(this.data);
9776
+ this.font = new Eh(this.data);
9777
9777
  }
9778
9778
  /**
9779
9779
  * Parses a mesh font from raw binary data.
@@ -10082,7 +10082,7 @@ class Ph {
10082
10082
  return r.trim();
10083
10083
  }
10084
10084
  }
10085
- const xe = 10, Nh = [13, 10, 0];
10085
+ const be = 10, Nh = [13, 10, 0];
10086
10086
  class Gh {
10087
10087
  parse(e) {
10088
10088
  try {
@@ -10108,8 +10108,8 @@ class Gh {
10108
10108
  info: "",
10109
10109
  baseUp: 8,
10110
10110
  baseDown: 2,
10111
- height: xe,
10112
- width: xe,
10111
+ height: be,
10112
+ width: be,
10113
10113
  orientation: "horizontal",
10114
10114
  isExtended: !1
10115
10115
  };
@@ -10130,8 +10130,8 @@ class Gh {
10130
10130
  info: "Failed to parse font file",
10131
10131
  baseUp: 8,
10132
10132
  baseDown: 2,
10133
- height: xe,
10134
- width: xe,
10133
+ height: be,
10134
+ width: be,
10135
10135
  orientation: "horizontal",
10136
10136
  isExtended: !1
10137
10137
  };
@@ -10165,8 +10165,8 @@ class Hh {
10165
10165
  info: "",
10166
10166
  baseUp: 8,
10167
10167
  baseDown: 2,
10168
- height: xe,
10169
- width: xe,
10168
+ height: be,
10169
+ width: be,
10170
10170
  orientation: "horizontal",
10171
10171
  isExtended: !1
10172
10172
  };
@@ -10187,8 +10187,8 @@ class Hh {
10187
10187
  info: "Failed to parse font file",
10188
10188
  baseUp: 8,
10189
10189
  baseDown: 2,
10190
- height: xe,
10191
- width: xe,
10190
+ height: be,
10191
+ width: be,
10192
10192
  orientation: "horizontal",
10193
10193
  isExtended: !1
10194
10194
  };
@@ -10240,8 +10240,8 @@ let zh = class {
10240
10240
  info: "",
10241
10241
  baseUp: 8,
10242
10242
  baseDown: 2,
10243
- height: xe,
10244
- width: xe,
10243
+ height: be,
10244
+ width: be,
10245
10245
  orientation: "horizontal",
10246
10246
  isExtended: !1
10247
10247
  };
@@ -10260,8 +10260,8 @@ let zh = class {
10260
10260
  const h = e.readBytes(u);
10261
10261
  if (h.length === u) {
10262
10262
  const d = h.indexOf(0);
10263
- let p = 0;
10264
- d >= 0 && d < h.length && (p = d + 1), p < h.length && (s[c] = h.subarray(p));
10263
+ let f = 0;
10264
+ d >= 0 && d < h.length && (f = d + 1), f < h.length && (s[c] = h.subarray(f));
10265
10265
  }
10266
10266
  }
10267
10267
  } catch {
@@ -10275,8 +10275,8 @@ let zh = class {
10275
10275
  info: "Failed to parse font file",
10276
10276
  baseUp: 8,
10277
10277
  baseDown: 2,
10278
- height: xe,
10279
- width: xe,
10278
+ height: be,
10279
+ width: be,
10280
10280
  orientation: "horizontal",
10281
10281
  isExtended: !1
10282
10282
  };
@@ -10530,20 +10530,20 @@ class mt {
10530
10530
  const { strokeWidth: r = "0.5%", strokeColor: n = "black", isAutoFit: a = !1 } = e;
10531
10531
  let i, s;
10532
10532
  if (a) {
10533
- const o = this.bbox, c = 0.2, u = o.maxX - o.minX, h = o.maxY - o.minY, d = u === 0 ? h : u, p = h === 0 ? u : h, g = o.minX - d * c, S = o.maxX + d * c, v = o.minY - p * c, x = o.maxY + p * c;
10533
+ const o = this.bbox, c = 0.2, u = o.maxX - o.minX, h = o.maxY - o.minY, d = u === 0 ? h : u, f = h === 0 ? u : h, g = o.minX - d * c, S = o.maxX + d * c, v = o.minY - f * c, b = o.maxY + f * c;
10534
10534
  s = this.polylines.map((m) => {
10535
10535
  let F = "";
10536
10536
  return m.forEach((w, k) => {
10537
- const E = w.x, L = -w.y;
10538
- F += k === 0 ? `M ${E} ${L} ` : `L ${E} ${L} `;
10537
+ const C = w.x, L = -w.y;
10538
+ F += k === 0 ? `M ${C} ${L} ` : `L ${C} ${L} `;
10539
10539
  }), `<path d="${F}" stroke="${n}" stroke-width="${r}" fill="none"/>`;
10540
- }).join(""), i = `${g} ${-x} ${S - g} ${x - v}`;
10540
+ }).join(""), i = `${g} ${-b} ${S - g} ${b - v}`;
10541
10541
  } else
10542
10542
  i = "0 0 20 20", s = this.polylines.map((o) => {
10543
10543
  let c = "";
10544
10544
  return o.forEach((u, h) => {
10545
- const d = u.x + 5, p = -u.y + 15;
10546
- c += h === 0 ? `M ${d} ${p} ` : `L ${d} ${p} `;
10545
+ const d = u.x + 5, f = -u.y + 15;
10546
+ c += h === 0 ? `M ${d} ${f} ` : `L ${d} ${f} `;
10547
10547
  }), `<path d="${c}" stroke="${n}" stroke-width="${r}" fill="none"/>`;
10548
10548
  }).join("");
10549
10549
  return `<svg width="100%" height="100%" viewBox="${i}" preserveAspectRatio="xMidYMid meet">${s}</svg>`;
@@ -10624,7 +10624,7 @@ class Vh {
10624
10624
  const i = e.bbox, s = i.maxY - i.minY, o = i.maxX - i.minX, c = s > 0 ? r / s : 1, u = o > 0 ? n / o : 1, h = (a = e.lastPoint) == null ? void 0 : a.clone();
10625
10625
  h && (h.x *= u, h.y *= c);
10626
10626
  const d = e.polylines.map(
10627
- (p) => p.map((g) => {
10627
+ (f) => f.map((g) => {
10628
10628
  const S = g.clone();
10629
10629
  return S.x *= u, S.y *= c, S;
10630
10630
  })
@@ -10813,7 +10813,7 @@ class Vh {
10813
10813
  let i = r;
10814
10814
  const s = e[++i] * n.scale, o = fe.byteToSByte(e[++i]), c = (o & 112) >> 4;
10815
10815
  let u = o & 7;
10816
- const h = o < 0, d = Math.PI / 4 * c, p = n.currentPoint.clone().subtract(new J(Math.cos(d) * s, Math.sin(d) * s)), g = Ft.fromOctant(p, s, c, u, h);
10816
+ const h = o < 0, d = Math.PI / 4 * c, f = n.currentPoint.clone().subtract(new J(Math.cos(d) * s, Math.sin(d) * s)), g = Ft.fromOctant(f, s, c, u, h);
10817
10817
  if (n.isPenDown) {
10818
10818
  const S = g.tessellate();
10819
10819
  n.currentPolyline.pop(), n.currentPolyline.push(...S.slice());
@@ -10823,30 +10823,30 @@ class Vh {
10823
10823
  handleFractionalArc(e, r, n) {
10824
10824
  let a = r;
10825
10825
  const i = e[++a], s = e[++a], o = e[++a], c = e[++a], u = (o * 255 + c) * n.scale, h = fe.byteToSByte(e[++a]), d = (h & 112) >> 4;
10826
- let p = h & 7;
10827
- p === 0 && (p = 8), s !== 0 && p--;
10826
+ let f = h & 7;
10827
+ f === 0 && (f = 8), s !== 0 && f--;
10828
10828
  const g = Math.PI / 4;
10829
- let S = g * p, v = qh, x = 1;
10830
- h < 0 && (v = -v, S = -S, x = -1);
10829
+ let S = g * f, v = qh, b = 1;
10830
+ h < 0 && (v = -v, S = -S, b = -1);
10831
10831
  let m = g * d, F = m + S;
10832
- m += g * i / 256 * x, F += g * s / 256 * x;
10832
+ m += g * i / 256 * b, F += g * s / 256 * b;
10833
10833
  const w = n.currentPoint.clone().subtract(new J(u * Math.cos(m), u * Math.sin(m)));
10834
10834
  if (n.currentPoint = w.clone().add(new J(u * Math.cos(F), u * Math.sin(F))), n.isPenDown) {
10835
10835
  let k = m;
10836
- const E = [];
10837
- if (E.push(
10836
+ const C = [];
10837
+ if (C.push(
10838
10838
  w.clone().add(new J(u * Math.cos(k), u * Math.sin(k)))
10839
10839
  ), v > 0)
10840
10840
  for (; k + v < F; )
10841
- k += v, E.push(
10841
+ k += v, C.push(
10842
10842
  w.clone().add(new J(u * Math.cos(k), u * Math.sin(k)))
10843
10843
  );
10844
10844
  else
10845
10845
  for (; k + v > F; )
10846
- k += v, E.push(
10846
+ k += v, C.push(
10847
10847
  w.clone().add(new J(u * Math.cos(k), u * Math.sin(k)))
10848
10848
  );
10849
- E.push(w.clone().add(new J(u * Math.cos(F), u * Math.sin(F)))), n.currentPolyline.push(...E);
10849
+ C.push(w.clone().add(new J(u * Math.cos(F), u * Math.sin(F)))), n.currentPolyline.push(...C);
10850
10850
  }
10851
10851
  return a;
10852
10852
  }
@@ -11091,10 +11091,10 @@ function rl(t) {
11091
11091
  var cn = {};
11092
11092
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
11093
11093
  cn.read = function(t, e, r, n, a) {
11094
- var i, s, o = a * 8 - n - 1, c = (1 << o) - 1, u = c >> 1, h = -7, d = r ? a - 1 : 0, p = r ? -1 : 1, g = t[e + d];
11095
- for (d += p, i = g & (1 << -h) - 1, g >>= -h, h += o; h > 0; i = i * 256 + t[e + d], d += p, h -= 8)
11094
+ var i, s, o = a * 8 - n - 1, c = (1 << o) - 1, u = c >> 1, h = -7, d = r ? a - 1 : 0, f = r ? -1 : 1, g = t[e + d];
11095
+ for (d += f, i = g & (1 << -h) - 1, g >>= -h, h += o; h > 0; i = i * 256 + t[e + d], d += f, h -= 8)
11096
11096
  ;
11097
- for (s = i & (1 << -h) - 1, i >>= -h, h += n; h > 0; s = s * 256 + t[e + d], d += p, h -= 8)
11097
+ for (s = i & (1 << -h) - 1, i >>= -h, h += n; h > 0; s = s * 256 + t[e + d], d += f, h -= 8)
11098
11098
  ;
11099
11099
  if (i === 0)
11100
11100
  i = 1 - u;
@@ -11106,8 +11106,8 @@ cn.read = function(t, e, r, n, a) {
11106
11106
  return (g ? -1 : 1) * s * Math.pow(2, i - n);
11107
11107
  };
11108
11108
  cn.write = function(t, e, r, n, a, i) {
11109
- var s, o, c, u = i * 8 - a - 1, h = (1 << u) - 1, d = h >> 1, p = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = n ? 0 : i - 1, S = n ? 1 : -1, v = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
11110
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (o = isNaN(e) ? 1 : 0, s = h) : (s = Math.floor(Math.log(e) / Math.LN2), e * (c = Math.pow(2, -s)) < 1 && (s--, c *= 2), s + d >= 1 ? e += p / c : e += p * Math.pow(2, 1 - d), e * c >= 2 && (s++, c /= 2), s + d >= h ? (o = 0, s = h) : s + d >= 1 ? (o = (e * c - 1) * Math.pow(2, a), s = s + d) : (o = e * Math.pow(2, d - 1) * Math.pow(2, a), s = 0)); a >= 8; t[r + g] = o & 255, g += S, o /= 256, a -= 8)
11109
+ var s, o, c, u = i * 8 - a - 1, h = (1 << u) - 1, d = h >> 1, f = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = n ? 0 : i - 1, S = n ? 1 : -1, v = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
11110
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (o = isNaN(e) ? 1 : 0, s = h) : (s = Math.floor(Math.log(e) / Math.LN2), e * (c = Math.pow(2, -s)) < 1 && (s--, c *= 2), s + d >= 1 ? e += f / c : e += f * Math.pow(2, 1 - d), e * c >= 2 && (s++, c /= 2), s + d >= h ? (o = 0, s = h) : s + d >= 1 ? (o = (e * c - 1) * Math.pow(2, a), s = s + d) : (o = e * Math.pow(2, d - 1) * Math.pow(2, a), s = 0)); a >= 8; t[r + g] = o & 255, g += S, o /= 256, a -= 8)
11111
11111
  ;
11112
11112
  for (s = s << a | o, u += a; u > 0; t[r + g] = s & 255, g += S, s /= 256, u -= 8)
11113
11113
  ;
@@ -11155,7 +11155,7 @@ cn.write = function(t, e, r, n, a, i) {
11155
11155
  var l = new Uint8Array(y);
11156
11156
  return Object.setPrototypeOf(l, o.prototype), l;
11157
11157
  }
11158
- function o(y, l, f) {
11158
+ function o(y, l, p) {
11159
11159
  if (typeof y == "number") {
11160
11160
  if (typeof l == "string")
11161
11161
  throw new TypeError(
@@ -11163,12 +11163,12 @@ cn.write = function(t, e, r, n, a, i) {
11163
11163
  );
11164
11164
  return d(y);
11165
11165
  }
11166
- return c(y, l, f);
11166
+ return c(y, l, p);
11167
11167
  }
11168
11168
  o.poolSize = 8192;
11169
- function c(y, l, f) {
11169
+ function c(y, l, p) {
11170
11170
  if (typeof y == "string")
11171
- return p(y, l);
11171
+ return f(y, l);
11172
11172
  if (ArrayBuffer.isView(y))
11173
11173
  return S(y);
11174
11174
  if (y == null)
@@ -11176,28 +11176,28 @@ cn.write = function(t, e, r, n, a, i) {
11176
11176
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof y
11177
11177
  );
11178
11178
  if (Ae(y, ArrayBuffer) || y && Ae(y.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (Ae(y, SharedArrayBuffer) || y && Ae(y.buffer, SharedArrayBuffer)))
11179
- return v(y, l, f);
11179
+ return v(y, l, p);
11180
11180
  if (typeof y == "number")
11181
11181
  throw new TypeError(
11182
11182
  'The "value" argument must not be of type number. Received type number'
11183
11183
  );
11184
- var b = y.valueOf && y.valueOf();
11185
- if (b != null && b !== y)
11186
- return o.from(b, l, f);
11187
- var T = x(y);
11184
+ var x = y.valueOf && y.valueOf();
11185
+ if (x != null && x !== y)
11186
+ return o.from(x, l, p);
11187
+ var T = b(y);
11188
11188
  if (T) return T;
11189
11189
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof y[Symbol.toPrimitive] == "function")
11190
11190
  return o.from(
11191
11191
  y[Symbol.toPrimitive]("string"),
11192
11192
  l,
11193
- f
11193
+ p
11194
11194
  );
11195
11195
  throw new TypeError(
11196
11196
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof y
11197
11197
  );
11198
11198
  }
11199
- o.from = function(y, l, f) {
11200
- return c(y, l, f);
11199
+ o.from = function(y, l, p) {
11200
+ return c(y, l, p);
11201
11201
  }, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
11202
11202
  function u(y) {
11203
11203
  if (typeof y != "number")
@@ -11205,11 +11205,11 @@ cn.write = function(t, e, r, n, a, i) {
11205
11205
  if (y < 0)
11206
11206
  throw new RangeError('The value "' + y + '" is invalid for option "size"');
11207
11207
  }
11208
- function h(y, l, f) {
11209
- return u(y), y <= 0 ? s(y) : l !== void 0 ? typeof f == "string" ? s(y).fill(l, f) : s(y).fill(l) : s(y);
11208
+ function h(y, l, p) {
11209
+ return u(y), y <= 0 ? s(y) : l !== void 0 ? typeof p == "string" ? s(y).fill(l, p) : s(y).fill(l) : s(y);
11210
11210
  }
11211
- o.alloc = function(y, l, f) {
11212
- return h(y, l, f);
11211
+ o.alloc = function(y, l, p) {
11212
+ return h(y, l, p);
11213
11213
  };
11214
11214
  function d(y) {
11215
11215
  return u(y), s(y < 0 ? 0 : m(y) | 0);
@@ -11219,16 +11219,16 @@ cn.write = function(t, e, r, n, a, i) {
11219
11219
  }, o.allocUnsafeSlow = function(y) {
11220
11220
  return d(y);
11221
11221
  };
11222
- function p(y, l) {
11222
+ function f(y, l) {
11223
11223
  if ((typeof l != "string" || l === "") && (l = "utf8"), !o.isEncoding(l))
11224
11224
  throw new TypeError("Unknown encoding: " + l);
11225
- var f = w(y, l) | 0, b = s(f), T = b.write(y, l);
11226
- return T !== f && (b = b.slice(0, T)), b;
11225
+ var p = w(y, l) | 0, x = s(p), T = x.write(y, l);
11226
+ return T !== p && (x = x.slice(0, T)), x;
11227
11227
  }
11228
11228
  function g(y) {
11229
- for (var l = y.length < 0 ? 0 : m(y.length) | 0, f = s(l), b = 0; b < l; b += 1)
11230
- f[b] = y[b] & 255;
11231
- return f;
11229
+ for (var l = y.length < 0 ? 0 : m(y.length) | 0, p = s(l), x = 0; x < l; x += 1)
11230
+ p[x] = y[x] & 255;
11231
+ return p;
11232
11232
  }
11233
11233
  function S(y) {
11234
11234
  if (Ae(y, Uint8Array)) {
@@ -11237,18 +11237,18 @@ cn.write = function(t, e, r, n, a, i) {
11237
11237
  }
11238
11238
  return g(y);
11239
11239
  }
11240
- function v(y, l, f) {
11240
+ function v(y, l, p) {
11241
11241
  if (l < 0 || y.byteLength < l)
11242
11242
  throw new RangeError('"offset" is outside of buffer bounds');
11243
- if (y.byteLength < l + (f || 0))
11243
+ if (y.byteLength < l + (p || 0))
11244
11244
  throw new RangeError('"length" is outside of buffer bounds');
11245
- var b;
11246
- return l === void 0 && f === void 0 ? b = new Uint8Array(y) : f === void 0 ? b = new Uint8Array(y, l) : b = new Uint8Array(y, l, f), Object.setPrototypeOf(b, o.prototype), b;
11245
+ var x;
11246
+ return l === void 0 && p === void 0 ? x = new Uint8Array(y) : p === void 0 ? x = new Uint8Array(y, l) : x = new Uint8Array(y, l, p), Object.setPrototypeOf(x, o.prototype), x;
11247
11247
  }
11248
- function x(y) {
11248
+ function b(y) {
11249
11249
  if (o.isBuffer(y)) {
11250
- var l = m(y.length) | 0, f = s(l);
11251
- return f.length === 0 || y.copy(f, 0, 0, l), f;
11250
+ var l = m(y.length) | 0, p = s(l);
11251
+ return p.length === 0 || y.copy(p, 0, 0, l), p;
11252
11252
  }
11253
11253
  if (y.length !== void 0)
11254
11254
  return typeof y.length != "number" || nr(y.length) ? s(0) : g(y);
@@ -11265,18 +11265,18 @@ cn.write = function(t, e, r, n, a, i) {
11265
11265
  }
11266
11266
  o.isBuffer = function(l) {
11267
11267
  return l != null && l._isBuffer === !0 && l !== o.prototype;
11268
- }, o.compare = function(l, f) {
11269
- if (Ae(l, Uint8Array) && (l = o.from(l, l.offset, l.byteLength)), Ae(f, Uint8Array) && (f = o.from(f, f.offset, f.byteLength)), !o.isBuffer(l) || !o.isBuffer(f))
11268
+ }, o.compare = function(l, p) {
11269
+ if (Ae(l, Uint8Array) && (l = o.from(l, l.offset, l.byteLength)), Ae(p, Uint8Array) && (p = o.from(p, p.offset, p.byteLength)), !o.isBuffer(l) || !o.isBuffer(p))
11270
11270
  throw new TypeError(
11271
11271
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
11272
11272
  );
11273
- if (l === f) return 0;
11274
- for (var b = l.length, T = f.length, A = 0, U = Math.min(b, T); A < U; ++A)
11275
- if (l[A] !== f[A]) {
11276
- b = l[A], T = f[A];
11273
+ if (l === p) return 0;
11274
+ for (var x = l.length, T = p.length, A = 0, U = Math.min(x, T); A < U; ++A)
11275
+ if (l[A] !== p[A]) {
11276
+ x = l[A], T = p[A];
11277
11277
  break;
11278
11278
  }
11279
- return b < T ? -1 : T < b ? 1 : 0;
11279
+ return x < T ? -1 : T < x ? 1 : 0;
11280
11280
  }, o.isEncoding = function(l) {
11281
11281
  switch (String(l).toLowerCase()) {
11282
11282
  case "hex":
@@ -11294,18 +11294,18 @@ cn.write = function(t, e, r, n, a, i) {
11294
11294
  default:
11295
11295
  return !1;
11296
11296
  }
11297
- }, o.concat = function(l, f) {
11297
+ }, o.concat = function(l, p) {
11298
11298
  if (!Array.isArray(l))
11299
11299
  throw new TypeError('"list" argument must be an Array of Buffers');
11300
11300
  if (l.length === 0)
11301
11301
  return o.alloc(0);
11302
- var b;
11303
- if (f === void 0)
11304
- for (f = 0, b = 0; b < l.length; ++b)
11305
- f += l[b].length;
11306
- var T = o.allocUnsafe(f), A = 0;
11307
- for (b = 0; b < l.length; ++b) {
11308
- var U = l[b];
11302
+ var x;
11303
+ if (p === void 0)
11304
+ for (p = 0, x = 0; x < l.length; ++x)
11305
+ p += l[x].length;
11306
+ var T = o.allocUnsafe(p), A = 0;
11307
+ for (x = 0; x < l.length; ++x) {
11308
+ var U = l[x];
11309
11309
  if (Ae(U, Uint8Array))
11310
11310
  A + U.length > T.length ? o.from(U).copy(T, A) : Uint8Array.prototype.set.call(
11311
11311
  T,
@@ -11329,14 +11329,14 @@ cn.write = function(t, e, r, n, a, i) {
11329
11329
  throw new TypeError(
11330
11330
  'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof y
11331
11331
  );
11332
- var f = y.length, b = arguments.length > 2 && arguments[2] === !0;
11333
- if (!b && f === 0) return 0;
11332
+ var p = y.length, x = arguments.length > 2 && arguments[2] === !0;
11333
+ if (!x && p === 0) return 0;
11334
11334
  for (var T = !1; ; )
11335
11335
  switch (l) {
11336
11336
  case "ascii":
11337
11337
  case "latin1":
11338
11338
  case "binary":
11339
- return f;
11339
+ return p;
11340
11340
  case "utf8":
11341
11341
  case "utf-8":
11342
11342
  return Pe(y).length;
@@ -11344,71 +11344,71 @@ cn.write = function(t, e, r, n, a, i) {
11344
11344
  case "ucs-2":
11345
11345
  case "utf16le":
11346
11346
  case "utf-16le":
11347
- return f * 2;
11347
+ return p * 2;
11348
11348
  case "hex":
11349
- return f >>> 1;
11349
+ return p >>> 1;
11350
11350
  case "base64":
11351
11351
  return gn(y).length;
11352
11352
  default:
11353
11353
  if (T)
11354
- return b ? -1 : Pe(y).length;
11354
+ return x ? -1 : Pe(y).length;
11355
11355
  l = ("" + l).toLowerCase(), T = !0;
11356
11356
  }
11357
11357
  }
11358
11358
  o.byteLength = w;
11359
- function k(y, l, f) {
11360
- var b = !1;
11361
- if ((l === void 0 || l < 0) && (l = 0), l > this.length || ((f === void 0 || f > this.length) && (f = this.length), f <= 0) || (f >>>= 0, l >>>= 0, f <= l))
11359
+ function k(y, l, p) {
11360
+ var x = !1;
11361
+ if ((l === void 0 || l < 0) && (l = 0), l > this.length || ((p === void 0 || p > this.length) && (p = this.length), p <= 0) || (p >>>= 0, l >>>= 0, p <= l))
11362
11362
  return "";
11363
11363
  for (y || (y = "utf8"); ; )
11364
11364
  switch (y) {
11365
11365
  case "hex":
11366
- return ne(this, l, f);
11366
+ return ae(this, l, p);
11367
11367
  case "utf8":
11368
11368
  case "utf-8":
11369
- return j(this, l, f);
11369
+ return j(this, l, p);
11370
11370
  case "ascii":
11371
- return te(this, l, f);
11371
+ return te(this, l, p);
11372
11372
  case "latin1":
11373
11373
  case "binary":
11374
- return ie(this, l, f);
11374
+ return se(this, l, p);
11375
11375
  case "base64":
11376
- return ae(this, l, f);
11376
+ return ie(this, l, p);
11377
11377
  case "ucs2":
11378
11378
  case "ucs-2":
11379
11379
  case "utf16le":
11380
11380
  case "utf-16le":
11381
- return ue(this, l, f);
11381
+ return ue(this, l, p);
11382
11382
  default:
11383
- if (b) throw new TypeError("Unknown encoding: " + y);
11384
- y = (y + "").toLowerCase(), b = !0;
11383
+ if (x) throw new TypeError("Unknown encoding: " + y);
11384
+ y = (y + "").toLowerCase(), x = !0;
11385
11385
  }
11386
11386
  }
11387
11387
  o.prototype._isBuffer = !0;
11388
- function E(y, l, f) {
11389
- var b = y[l];
11390
- y[l] = y[f], y[f] = b;
11388
+ function C(y, l, p) {
11389
+ var x = y[l];
11390
+ y[l] = y[p], y[p] = x;
11391
11391
  }
11392
11392
  o.prototype.swap16 = function() {
11393
11393
  var l = this.length;
11394
11394
  if (l % 2 !== 0)
11395
11395
  throw new RangeError("Buffer size must be a multiple of 16-bits");
11396
- for (var f = 0; f < l; f += 2)
11397
- E(this, f, f + 1);
11396
+ for (var p = 0; p < l; p += 2)
11397
+ C(this, p, p + 1);
11398
11398
  return this;
11399
11399
  }, o.prototype.swap32 = function() {
11400
11400
  var l = this.length;
11401
11401
  if (l % 4 !== 0)
11402
11402
  throw new RangeError("Buffer size must be a multiple of 32-bits");
11403
- for (var f = 0; f < l; f += 4)
11404
- E(this, f, f + 3), E(this, f + 1, f + 2);
11403
+ for (var p = 0; p < l; p += 4)
11404
+ C(this, p, p + 3), C(this, p + 1, p + 2);
11405
11405
  return this;
11406
11406
  }, o.prototype.swap64 = function() {
11407
11407
  var l = this.length;
11408
11408
  if (l % 8 !== 0)
11409
11409
  throw new RangeError("Buffer size must be a multiple of 64-bits");
11410
- for (var f = 0; f < l; f += 8)
11411
- E(this, f, f + 7), E(this, f + 1, f + 6), E(this, f + 2, f + 5), E(this, f + 3, f + 4);
11410
+ for (var p = 0; p < l; p += 8)
11411
+ C(this, p, p + 7), C(this, p + 1, p + 6), C(this, p + 2, p + 5), C(this, p + 3, p + 4);
11412
11412
  return this;
11413
11413
  }, o.prototype.toString = function() {
11414
11414
  var l = this.length;
@@ -11417,49 +11417,49 @@ cn.write = function(t, e, r, n, a, i) {
11417
11417
  if (!o.isBuffer(l)) throw new TypeError("Argument must be a Buffer");
11418
11418
  return this === l ? !0 : o.compare(this, l) === 0;
11419
11419
  }, o.prototype.inspect = function() {
11420
- var l = "", f = t.INSPECT_MAX_BYTES;
11421
- return l = this.toString("hex", 0, f).replace(/(.{2})/g, "$1 ").trim(), this.length > f && (l += " ... "), "<Buffer " + l + ">";
11422
- }, n && (o.prototype[n] = o.prototype.inspect), o.prototype.compare = function(l, f, b, T, A) {
11420
+ var l = "", p = t.INSPECT_MAX_BYTES;
11421
+ return l = this.toString("hex", 0, p).replace(/(.{2})/g, "$1 ").trim(), this.length > p && (l += " ... "), "<Buffer " + l + ">";
11422
+ }, n && (o.prototype[n] = o.prototype.inspect), o.prototype.compare = function(l, p, x, T, A) {
11423
11423
  if (Ae(l, Uint8Array) && (l = o.from(l, l.offset, l.byteLength)), !o.isBuffer(l))
11424
11424
  throw new TypeError(
11425
11425
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof l
11426
11426
  );
11427
- if (f === void 0 && (f = 0), b === void 0 && (b = l ? l.length : 0), T === void 0 && (T = 0), A === void 0 && (A = this.length), f < 0 || b > l.length || T < 0 || A > this.length)
11427
+ if (p === void 0 && (p = 0), x === void 0 && (x = l ? l.length : 0), T === void 0 && (T = 0), A === void 0 && (A = this.length), p < 0 || x > l.length || T < 0 || A > this.length)
11428
11428
  throw new RangeError("out of range index");
11429
- if (T >= A && f >= b)
11429
+ if (T >= A && p >= x)
11430
11430
  return 0;
11431
11431
  if (T >= A)
11432
11432
  return -1;
11433
- if (f >= b)
11433
+ if (p >= x)
11434
11434
  return 1;
11435
- if (f >>>= 0, b >>>= 0, T >>>= 0, A >>>= 0, this === l) return 0;
11436
- for (var U = A - T, q = b - f, X = Math.min(U, q), K = this.slice(T, A), le = l.slice(f, b), Q = 0; Q < X; ++Q)
11435
+ if (p >>>= 0, x >>>= 0, T >>>= 0, A >>>= 0, this === l) return 0;
11436
+ for (var U = A - T, q = x - p, X = Math.min(U, q), K = this.slice(T, A), le = l.slice(p, x), Q = 0; Q < X; ++Q)
11437
11437
  if (K[Q] !== le[Q]) {
11438
11438
  U = K[Q], q = le[Q];
11439
11439
  break;
11440
11440
  }
11441
11441
  return U < q ? -1 : q < U ? 1 : 0;
11442
11442
  };
11443
- function L(y, l, f, b, T) {
11443
+ function L(y, l, p, x, T) {
11444
11444
  if (y.length === 0) return -1;
11445
- if (typeof f == "string" ? (b = f, f = 0) : f > 2147483647 ? f = 2147483647 : f < -2147483648 && (f = -2147483648), f = +f, nr(f) && (f = T ? 0 : y.length - 1), f < 0 && (f = y.length + f), f >= y.length) {
11445
+ if (typeof p == "string" ? (x = p, p = 0) : p > 2147483647 ? p = 2147483647 : p < -2147483648 && (p = -2147483648), p = +p, nr(p) && (p = T ? 0 : y.length - 1), p < 0 && (p = y.length + p), p >= y.length) {
11446
11446
  if (T) return -1;
11447
- f = y.length - 1;
11448
- } else if (f < 0)
11449
- if (T) f = 0;
11447
+ p = y.length - 1;
11448
+ } else if (p < 0)
11449
+ if (T) p = 0;
11450
11450
  else return -1;
11451
- if (typeof l == "string" && (l = o.from(l, b)), o.isBuffer(l))
11452
- return l.length === 0 ? -1 : B(y, l, f, b, T);
11451
+ if (typeof l == "string" && (l = o.from(l, x)), o.isBuffer(l))
11452
+ return l.length === 0 ? -1 : B(y, l, p, x, T);
11453
11453
  if (typeof l == "number")
11454
- return l = l & 255, typeof Uint8Array.prototype.indexOf == "function" ? T ? Uint8Array.prototype.indexOf.call(y, l, f) : Uint8Array.prototype.lastIndexOf.call(y, l, f) : B(y, [l], f, b, T);
11454
+ return l = l & 255, typeof Uint8Array.prototype.indexOf == "function" ? T ? Uint8Array.prototype.indexOf.call(y, l, p) : Uint8Array.prototype.lastIndexOf.call(y, l, p) : B(y, [l], p, x, T);
11455
11455
  throw new TypeError("val must be string, number or Buffer");
11456
11456
  }
11457
- function B(y, l, f, b, T) {
11457
+ function B(y, l, p, x, T) {
11458
11458
  var A = 1, U = y.length, q = l.length;
11459
- if (b !== void 0 && (b = String(b).toLowerCase(), b === "ucs2" || b === "ucs-2" || b === "utf16le" || b === "utf-16le")) {
11459
+ if (x !== void 0 && (x = String(x).toLowerCase(), x === "ucs2" || x === "ucs-2" || x === "utf16le" || x === "utf-16le")) {
11460
11460
  if (y.length < 2 || l.length < 2)
11461
11461
  return -1;
11462
- A = 2, U /= 2, q /= 2, f /= 2;
11462
+ A = 2, U /= 2, q /= 2, p /= 2;
11463
11463
  }
11464
11464
  function X(vn, yn) {
11465
11465
  return A === 1 ? vn[yn] : vn.readUInt16BE(yn * A);
@@ -11467,13 +11467,13 @@ cn.write = function(t, e, r, n, a, i) {
11467
11467
  var K;
11468
11468
  if (T) {
11469
11469
  var le = -1;
11470
- for (K = f; K < U; K++)
11470
+ for (K = p; K < U; K++)
11471
11471
  if (X(y, K) === X(l, le === -1 ? 0 : K - le)) {
11472
11472
  if (le === -1 && (le = K), K - le + 1 === q) return le * A;
11473
11473
  } else
11474
11474
  le !== -1 && (K -= K - le), le = -1;
11475
11475
  } else
11476
- for (f + q > U && (f = U - q), K = f; K >= 0; K--) {
11476
+ for (p + q > U && (p = U - q), K = p; K >= 0; K--) {
11477
11477
  for (var Q = !0, Mt = 0; Mt < q; Mt++)
11478
11478
  if (X(y, K + Mt) !== X(l, Mt)) {
11479
11479
  Q = !1;
@@ -11483,71 +11483,71 @@ cn.write = function(t, e, r, n, a, i) {
11483
11483
  }
11484
11484
  return -1;
11485
11485
  }
11486
- o.prototype.includes = function(l, f, b) {
11487
- return this.indexOf(l, f, b) !== -1;
11488
- }, o.prototype.indexOf = function(l, f, b) {
11489
- return L(this, l, f, b, !0);
11490
- }, o.prototype.lastIndexOf = function(l, f, b) {
11491
- return L(this, l, f, b, !1);
11486
+ o.prototype.includes = function(l, p, x) {
11487
+ return this.indexOf(l, p, x) !== -1;
11488
+ }, o.prototype.indexOf = function(l, p, x) {
11489
+ return L(this, l, p, x, !0);
11490
+ }, o.prototype.lastIndexOf = function(l, p, x) {
11491
+ return L(this, l, p, x, !1);
11492
11492
  };
11493
- function O(y, l, f, b) {
11494
- f = Number(f) || 0;
11495
- var T = y.length - f;
11496
- b ? (b = Number(b), b > T && (b = T)) : b = T;
11493
+ function O(y, l, p, x) {
11494
+ p = Number(p) || 0;
11495
+ var T = y.length - p;
11496
+ x ? (x = Number(x), x > T && (x = T)) : x = T;
11497
11497
  var A = l.length;
11498
- b > A / 2 && (b = A / 2);
11499
- for (var U = 0; U < b; ++U) {
11498
+ x > A / 2 && (x = A / 2);
11499
+ for (var U = 0; U < x; ++U) {
11500
11500
  var q = parseInt(l.substr(U * 2, 2), 16);
11501
11501
  if (nr(q)) return U;
11502
- y[f + U] = q;
11502
+ y[p + U] = q;
11503
11503
  }
11504
11504
  return U;
11505
11505
  }
11506
- function H(y, l, f, b) {
11507
- return Rt(Pe(l, y.length - f), y, f, b);
11506
+ function H(y, l, p, x) {
11507
+ return Rt(Pe(l, y.length - p), y, p, x);
11508
11508
  }
11509
- function W(y, l, f, b) {
11510
- return Rt(Ni(l), y, f, b);
11509
+ function W(y, l, p, x) {
11510
+ return Rt(Ni(l), y, p, x);
11511
11511
  }
11512
- function z(y, l, f, b) {
11513
- return Rt(gn(l), y, f, b);
11512
+ function z(y, l, p, x) {
11513
+ return Rt(gn(l), y, p, x);
11514
11514
  }
11515
- function ce(y, l, f, b) {
11516
- return Rt(Gi(l, y.length - f), y, f, b);
11515
+ function ce(y, l, p, x) {
11516
+ return Rt(Gi(l, y.length - p), y, p, x);
11517
11517
  }
11518
- o.prototype.write = function(l, f, b, T) {
11519
- if (f === void 0)
11520
- T = "utf8", b = this.length, f = 0;
11521
- else if (b === void 0 && typeof f == "string")
11522
- T = f, b = this.length, f = 0;
11523
- else if (isFinite(f))
11524
- f = f >>> 0, isFinite(b) ? (b = b >>> 0, T === void 0 && (T = "utf8")) : (T = b, b = void 0);
11518
+ o.prototype.write = function(l, p, x, T) {
11519
+ if (p === void 0)
11520
+ T = "utf8", x = this.length, p = 0;
11521
+ else if (x === void 0 && typeof p == "string")
11522
+ T = p, x = this.length, p = 0;
11523
+ else if (isFinite(p))
11524
+ p = p >>> 0, isFinite(x) ? (x = x >>> 0, T === void 0 && (T = "utf8")) : (T = x, x = void 0);
11525
11525
  else
11526
11526
  throw new Error(
11527
11527
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
11528
11528
  );
11529
- var A = this.length - f;
11530
- if ((b === void 0 || b > A) && (b = A), l.length > 0 && (b < 0 || f < 0) || f > this.length)
11529
+ var A = this.length - p;
11530
+ if ((x === void 0 || x > A) && (x = A), l.length > 0 && (x < 0 || p < 0) || p > this.length)
11531
11531
  throw new RangeError("Attempt to write outside buffer bounds");
11532
11532
  T || (T = "utf8");
11533
11533
  for (var U = !1; ; )
11534
11534
  switch (T) {
11535
11535
  case "hex":
11536
- return O(this, l, f, b);
11536
+ return O(this, l, p, x);
11537
11537
  case "utf8":
11538
11538
  case "utf-8":
11539
- return H(this, l, f, b);
11539
+ return H(this, l, p, x);
11540
11540
  case "ascii":
11541
11541
  case "latin1":
11542
11542
  case "binary":
11543
- return W(this, l, f, b);
11543
+ return W(this, l, p, x);
11544
11544
  case "base64":
11545
- return z(this, l, f, b);
11545
+ return z(this, l, p, x);
11546
11546
  case "ucs2":
11547
11547
  case "ucs-2":
11548
11548
  case "utf16le":
11549
11549
  case "utf-16le":
11550
- return ce(this, l, f, b);
11550
+ return ce(this, l, p, x);
11551
11551
  default:
11552
11552
  if (U) throw new TypeError("Unknown encoding: " + T);
11553
11553
  T = ("" + T).toLowerCase(), U = !0;
@@ -11558,14 +11558,14 @@ cn.write = function(t, e, r, n, a, i) {
11558
11558
  data: Array.prototype.slice.call(this._arr || this, 0)
11559
11559
  };
11560
11560
  };
11561
- function ae(y, l, f) {
11562
- return l === 0 && f === y.length ? e.fromByteArray(y) : e.fromByteArray(y.slice(l, f));
11561
+ function ie(y, l, p) {
11562
+ return l === 0 && p === y.length ? e.fromByteArray(y) : e.fromByteArray(y.slice(l, p));
11563
11563
  }
11564
- function j(y, l, f) {
11565
- f = Math.min(y.length, f);
11566
- for (var b = [], T = l; T < f; ) {
11564
+ function j(y, l, p) {
11565
+ p = Math.min(y.length, p);
11566
+ for (var x = [], T = l; T < p; ) {
11567
11567
  var A = y[T], U = null, q = A > 239 ? 4 : A > 223 ? 3 : A > 191 ? 2 : 1;
11568
- if (T + q <= f) {
11568
+ if (T + q <= p) {
11569
11569
  var X, K, le, Q;
11570
11570
  switch (q) {
11571
11571
  case 1:
@@ -11581,209 +11581,209 @@ cn.write = function(t, e, r, n, a, i) {
11581
11581
  X = y[T + 1], K = y[T + 2], le = y[T + 3], (X & 192) === 128 && (K & 192) === 128 && (le & 192) === 128 && (Q = (A & 15) << 18 | (X & 63) << 12 | (K & 63) << 6 | le & 63, Q > 65535 && Q < 1114112 && (U = Q));
11582
11582
  }
11583
11583
  }
11584
- U === null ? (U = 65533, q = 1) : U > 65535 && (U -= 65536, b.push(U >>> 10 & 1023 | 55296), U = 56320 | U & 1023), b.push(U), T += q;
11584
+ U === null ? (U = 65533, q = 1) : U > 65535 && (U -= 65536, x.push(U >>> 10 & 1023 | 55296), U = 56320 | U & 1023), x.push(U), T += q;
11585
11585
  }
11586
- return $(b);
11586
+ return $(x);
11587
11587
  }
11588
11588
  var Z = 4096;
11589
11589
  function $(y) {
11590
11590
  var l = y.length;
11591
11591
  if (l <= Z)
11592
11592
  return String.fromCharCode.apply(String, y);
11593
- for (var f = "", b = 0; b < l; )
11594
- f += String.fromCharCode.apply(
11593
+ for (var p = "", x = 0; x < l; )
11594
+ p += String.fromCharCode.apply(
11595
11595
  String,
11596
- y.slice(b, b += Z)
11596
+ y.slice(x, x += Z)
11597
11597
  );
11598
- return f;
11598
+ return p;
11599
11599
  }
11600
- function te(y, l, f) {
11601
- var b = "";
11602
- f = Math.min(y.length, f);
11603
- for (var T = l; T < f; ++T)
11604
- b += String.fromCharCode(y[T] & 127);
11605
- return b;
11600
+ function te(y, l, p) {
11601
+ var x = "";
11602
+ p = Math.min(y.length, p);
11603
+ for (var T = l; T < p; ++T)
11604
+ x += String.fromCharCode(y[T] & 127);
11605
+ return x;
11606
11606
  }
11607
- function ie(y, l, f) {
11608
- var b = "";
11609
- f = Math.min(y.length, f);
11610
- for (var T = l; T < f; ++T)
11611
- b += String.fromCharCode(y[T]);
11612
- return b;
11607
+ function se(y, l, p) {
11608
+ var x = "";
11609
+ p = Math.min(y.length, p);
11610
+ for (var T = l; T < p; ++T)
11611
+ x += String.fromCharCode(y[T]);
11612
+ return x;
11613
11613
  }
11614
- function ne(y, l, f) {
11615
- var b = y.length;
11616
- (!l || l < 0) && (l = 0), (!f || f < 0 || f > b) && (f = b);
11617
- for (var T = "", A = l; A < f; ++A)
11614
+ function ae(y, l, p) {
11615
+ var x = y.length;
11616
+ (!l || l < 0) && (l = 0), (!p || p < 0 || p > x) && (p = x);
11617
+ for (var T = "", A = l; A < p; ++A)
11618
11618
  T += Hi[y[A]];
11619
11619
  return T;
11620
11620
  }
11621
- function ue(y, l, f) {
11622
- for (var b = y.slice(l, f), T = "", A = 0; A < b.length - 1; A += 2)
11623
- T += String.fromCharCode(b[A] + b[A + 1] * 256);
11621
+ function ue(y, l, p) {
11622
+ for (var x = y.slice(l, p), T = "", A = 0; A < x.length - 1; A += 2)
11623
+ T += String.fromCharCode(x[A] + x[A + 1] * 256);
11624
11624
  return T;
11625
11625
  }
11626
- o.prototype.slice = function(l, f) {
11627
- var b = this.length;
11628
- l = ~~l, f = f === void 0 ? b : ~~f, l < 0 ? (l += b, l < 0 && (l = 0)) : l > b && (l = b), f < 0 ? (f += b, f < 0 && (f = 0)) : f > b && (f = b), f < l && (f = l);
11629
- var T = this.subarray(l, f);
11626
+ o.prototype.slice = function(l, p) {
11627
+ var x = this.length;
11628
+ l = ~~l, p = p === void 0 ? x : ~~p, l < 0 ? (l += x, l < 0 && (l = 0)) : l > x && (l = x), p < 0 ? (p += x, p < 0 && (p = 0)) : p > x && (p = x), p < l && (p = l);
11629
+ var T = this.subarray(l, p);
11630
11630
  return Object.setPrototypeOf(T, o.prototype), T;
11631
11631
  };
11632
- function G(y, l, f) {
11632
+ function G(y, l, p) {
11633
11633
  if (y % 1 !== 0 || y < 0) throw new RangeError("offset is not uint");
11634
- if (y + l > f) throw new RangeError("Trying to access beyond buffer length");
11634
+ if (y + l > p) throw new RangeError("Trying to access beyond buffer length");
11635
11635
  }
11636
- o.prototype.readUintLE = o.prototype.readUIntLE = function(l, f, b) {
11637
- l = l >>> 0, f = f >>> 0, b || G(l, f, this.length);
11638
- for (var T = this[l], A = 1, U = 0; ++U < f && (A *= 256); )
11636
+ o.prototype.readUintLE = o.prototype.readUIntLE = function(l, p, x) {
11637
+ l = l >>> 0, p = p >>> 0, x || G(l, p, this.length);
11638
+ for (var T = this[l], A = 1, U = 0; ++U < p && (A *= 256); )
11639
11639
  T += this[l + U] * A;
11640
11640
  return T;
11641
- }, o.prototype.readUintBE = o.prototype.readUIntBE = function(l, f, b) {
11642
- l = l >>> 0, f = f >>> 0, b || G(l, f, this.length);
11643
- for (var T = this[l + --f], A = 1; f > 0 && (A *= 256); )
11644
- T += this[l + --f] * A;
11641
+ }, o.prototype.readUintBE = o.prototype.readUIntBE = function(l, p, x) {
11642
+ l = l >>> 0, p = p >>> 0, x || G(l, p, this.length);
11643
+ for (var T = this[l + --p], A = 1; p > 0 && (A *= 256); )
11644
+ T += this[l + --p] * A;
11645
11645
  return T;
11646
- }, o.prototype.readUint8 = o.prototype.readUInt8 = function(l, f) {
11647
- return l = l >>> 0, f || G(l, 1, this.length), this[l];
11648
- }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(l, f) {
11649
- return l = l >>> 0, f || G(l, 2, this.length), this[l] | this[l + 1] << 8;
11650
- }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(l, f) {
11651
- return l = l >>> 0, f || G(l, 2, this.length), this[l] << 8 | this[l + 1];
11652
- }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(l, f) {
11653
- return l = l >>> 0, f || G(l, 4, this.length), (this[l] | this[l + 1] << 8 | this[l + 2] << 16) + this[l + 3] * 16777216;
11654
- }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(l, f) {
11655
- return l = l >>> 0, f || G(l, 4, this.length), this[l] * 16777216 + (this[l + 1] << 16 | this[l + 2] << 8 | this[l + 3]);
11656
- }, o.prototype.readIntLE = function(l, f, b) {
11657
- l = l >>> 0, f = f >>> 0, b || G(l, f, this.length);
11658
- for (var T = this[l], A = 1, U = 0; ++U < f && (A *= 256); )
11646
+ }, o.prototype.readUint8 = o.prototype.readUInt8 = function(l, p) {
11647
+ return l = l >>> 0, p || G(l, 1, this.length), this[l];
11648
+ }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(l, p) {
11649
+ return l = l >>> 0, p || G(l, 2, this.length), this[l] | this[l + 1] << 8;
11650
+ }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(l, p) {
11651
+ return l = l >>> 0, p || G(l, 2, this.length), this[l] << 8 | this[l + 1];
11652
+ }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(l, p) {
11653
+ return l = l >>> 0, p || G(l, 4, this.length), (this[l] | this[l + 1] << 8 | this[l + 2] << 16) + this[l + 3] * 16777216;
11654
+ }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(l, p) {
11655
+ return l = l >>> 0, p || G(l, 4, this.length), this[l] * 16777216 + (this[l + 1] << 16 | this[l + 2] << 8 | this[l + 3]);
11656
+ }, o.prototype.readIntLE = function(l, p, x) {
11657
+ l = l >>> 0, p = p >>> 0, x || G(l, p, this.length);
11658
+ for (var T = this[l], A = 1, U = 0; ++U < p && (A *= 256); )
11659
11659
  T += this[l + U] * A;
11660
- return A *= 128, T >= A && (T -= Math.pow(2, 8 * f)), T;
11661
- }, o.prototype.readIntBE = function(l, f, b) {
11662
- l = l >>> 0, f = f >>> 0, b || G(l, f, this.length);
11663
- for (var T = f, A = 1, U = this[l + --T]; T > 0 && (A *= 256); )
11660
+ return A *= 128, T >= A && (T -= Math.pow(2, 8 * p)), T;
11661
+ }, o.prototype.readIntBE = function(l, p, x) {
11662
+ l = l >>> 0, p = p >>> 0, x || G(l, p, this.length);
11663
+ for (var T = p, A = 1, U = this[l + --T]; T > 0 && (A *= 256); )
11664
11664
  U += this[l + --T] * A;
11665
- return A *= 128, U >= A && (U -= Math.pow(2, 8 * f)), U;
11666
- }, o.prototype.readInt8 = function(l, f) {
11667
- return l = l >>> 0, f || G(l, 1, this.length), this[l] & 128 ? (255 - this[l] + 1) * -1 : this[l];
11668
- }, o.prototype.readInt16LE = function(l, f) {
11669
- l = l >>> 0, f || G(l, 2, this.length);
11670
- var b = this[l] | this[l + 1] << 8;
11671
- return b & 32768 ? b | 4294901760 : b;
11672
- }, o.prototype.readInt16BE = function(l, f) {
11673
- l = l >>> 0, f || G(l, 2, this.length);
11674
- var b = this[l + 1] | this[l] << 8;
11675
- return b & 32768 ? b | 4294901760 : b;
11676
- }, o.prototype.readInt32LE = function(l, f) {
11677
- return l = l >>> 0, f || G(l, 4, this.length), this[l] | this[l + 1] << 8 | this[l + 2] << 16 | this[l + 3] << 24;
11678
- }, o.prototype.readInt32BE = function(l, f) {
11679
- return l = l >>> 0, f || G(l, 4, this.length), this[l] << 24 | this[l + 1] << 16 | this[l + 2] << 8 | this[l + 3];
11680
- }, o.prototype.readFloatLE = function(l, f) {
11681
- return l = l >>> 0, f || G(l, 4, this.length), r.read(this, l, !0, 23, 4);
11682
- }, o.prototype.readFloatBE = function(l, f) {
11683
- return l = l >>> 0, f || G(l, 4, this.length), r.read(this, l, !1, 23, 4);
11684
- }, o.prototype.readDoubleLE = function(l, f) {
11685
- return l = l >>> 0, f || G(l, 8, this.length), r.read(this, l, !0, 52, 8);
11686
- }, o.prototype.readDoubleBE = function(l, f) {
11687
- return l = l >>> 0, f || G(l, 8, this.length), r.read(this, l, !1, 52, 8);
11665
+ return A *= 128, U >= A && (U -= Math.pow(2, 8 * p)), U;
11666
+ }, o.prototype.readInt8 = function(l, p) {
11667
+ return l = l >>> 0, p || G(l, 1, this.length), this[l] & 128 ? (255 - this[l] + 1) * -1 : this[l];
11668
+ }, o.prototype.readInt16LE = function(l, p) {
11669
+ l = l >>> 0, p || G(l, 2, this.length);
11670
+ var x = this[l] | this[l + 1] << 8;
11671
+ return x & 32768 ? x | 4294901760 : x;
11672
+ }, o.prototype.readInt16BE = function(l, p) {
11673
+ l = l >>> 0, p || G(l, 2, this.length);
11674
+ var x = this[l + 1] | this[l] << 8;
11675
+ return x & 32768 ? x | 4294901760 : x;
11676
+ }, o.prototype.readInt32LE = function(l, p) {
11677
+ return l = l >>> 0, p || G(l, 4, this.length), this[l] | this[l + 1] << 8 | this[l + 2] << 16 | this[l + 3] << 24;
11678
+ }, o.prototype.readInt32BE = function(l, p) {
11679
+ return l = l >>> 0, p || G(l, 4, this.length), this[l] << 24 | this[l + 1] << 16 | this[l + 2] << 8 | this[l + 3];
11680
+ }, o.prototype.readFloatLE = function(l, p) {
11681
+ return l = l >>> 0, p || G(l, 4, this.length), r.read(this, l, !0, 23, 4);
11682
+ }, o.prototype.readFloatBE = function(l, p) {
11683
+ return l = l >>> 0, p || G(l, 4, this.length), r.read(this, l, !1, 23, 4);
11684
+ }, o.prototype.readDoubleLE = function(l, p) {
11685
+ return l = l >>> 0, p || G(l, 8, this.length), r.read(this, l, !0, 52, 8);
11686
+ }, o.prototype.readDoubleBE = function(l, p) {
11687
+ return l = l >>> 0, p || G(l, 8, this.length), r.read(this, l, !1, 52, 8);
11688
11688
  };
11689
- function V(y, l, f, b, T, A) {
11689
+ function V(y, l, p, x, T, A) {
11690
11690
  if (!o.isBuffer(y)) throw new TypeError('"buffer" argument must be a Buffer instance');
11691
11691
  if (l > T || l < A) throw new RangeError('"value" argument is out of bounds');
11692
- if (f + b > y.length) throw new RangeError("Index out of range");
11692
+ if (p + x > y.length) throw new RangeError("Index out of range");
11693
11693
  }
11694
- o.prototype.writeUintLE = o.prototype.writeUIntLE = function(l, f, b, T) {
11695
- if (l = +l, f = f >>> 0, b = b >>> 0, !T) {
11696
- var A = Math.pow(2, 8 * b) - 1;
11697
- V(this, l, f, b, A, 0);
11694
+ o.prototype.writeUintLE = o.prototype.writeUIntLE = function(l, p, x, T) {
11695
+ if (l = +l, p = p >>> 0, x = x >>> 0, !T) {
11696
+ var A = Math.pow(2, 8 * x) - 1;
11697
+ V(this, l, p, x, A, 0);
11698
11698
  }
11699
11699
  var U = 1, q = 0;
11700
- for (this[f] = l & 255; ++q < b && (U *= 256); )
11701
- this[f + q] = l / U & 255;
11702
- return f + b;
11703
- }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(l, f, b, T) {
11704
- if (l = +l, f = f >>> 0, b = b >>> 0, !T) {
11705
- var A = Math.pow(2, 8 * b) - 1;
11706
- V(this, l, f, b, A, 0);
11700
+ for (this[p] = l & 255; ++q < x && (U *= 256); )
11701
+ this[p + q] = l / U & 255;
11702
+ return p + x;
11703
+ }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(l, p, x, T) {
11704
+ if (l = +l, p = p >>> 0, x = x >>> 0, !T) {
11705
+ var A = Math.pow(2, 8 * x) - 1;
11706
+ V(this, l, p, x, A, 0);
11707
11707
  }
11708
- var U = b - 1, q = 1;
11709
- for (this[f + U] = l & 255; --U >= 0 && (q *= 256); )
11710
- this[f + U] = l / q & 255;
11711
- return f + b;
11712
- }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(l, f, b) {
11713
- return l = +l, f = f >>> 0, b || V(this, l, f, 1, 255, 0), this[f] = l & 255, f + 1;
11714
- }, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(l, f, b) {
11715
- return l = +l, f = f >>> 0, b || V(this, l, f, 2, 65535, 0), this[f] = l & 255, this[f + 1] = l >>> 8, f + 2;
11716
- }, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(l, f, b) {
11717
- return l = +l, f = f >>> 0, b || V(this, l, f, 2, 65535, 0), this[f] = l >>> 8, this[f + 1] = l & 255, f + 2;
11718
- }, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(l, f, b) {
11719
- return l = +l, f = f >>> 0, b || V(this, l, f, 4, 4294967295, 0), this[f + 3] = l >>> 24, this[f + 2] = l >>> 16, this[f + 1] = l >>> 8, this[f] = l & 255, f + 4;
11720
- }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(l, f, b) {
11721
- return l = +l, f = f >>> 0, b || V(this, l, f, 4, 4294967295, 0), this[f] = l >>> 24, this[f + 1] = l >>> 16, this[f + 2] = l >>> 8, this[f + 3] = l & 255, f + 4;
11722
- }, o.prototype.writeIntLE = function(l, f, b, T) {
11723
- if (l = +l, f = f >>> 0, !T) {
11724
- var A = Math.pow(2, 8 * b - 1);
11725
- V(this, l, f, b, A - 1, -A);
11708
+ var U = x - 1, q = 1;
11709
+ for (this[p + U] = l & 255; --U >= 0 && (q *= 256); )
11710
+ this[p + U] = l / q & 255;
11711
+ return p + x;
11712
+ }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(l, p, x) {
11713
+ return l = +l, p = p >>> 0, x || V(this, l, p, 1, 255, 0), this[p] = l & 255, p + 1;
11714
+ }, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(l, p, x) {
11715
+ return l = +l, p = p >>> 0, x || V(this, l, p, 2, 65535, 0), this[p] = l & 255, this[p + 1] = l >>> 8, p + 2;
11716
+ }, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(l, p, x) {
11717
+ return l = +l, p = p >>> 0, x || V(this, l, p, 2, 65535, 0), this[p] = l >>> 8, this[p + 1] = l & 255, p + 2;
11718
+ }, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(l, p, x) {
11719
+ return l = +l, p = p >>> 0, x || V(this, l, p, 4, 4294967295, 0), this[p + 3] = l >>> 24, this[p + 2] = l >>> 16, this[p + 1] = l >>> 8, this[p] = l & 255, p + 4;
11720
+ }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(l, p, x) {
11721
+ return l = +l, p = p >>> 0, x || V(this, l, p, 4, 4294967295, 0), this[p] = l >>> 24, this[p + 1] = l >>> 16, this[p + 2] = l >>> 8, this[p + 3] = l & 255, p + 4;
11722
+ }, o.prototype.writeIntLE = function(l, p, x, T) {
11723
+ if (l = +l, p = p >>> 0, !T) {
11724
+ var A = Math.pow(2, 8 * x - 1);
11725
+ V(this, l, p, x, A - 1, -A);
11726
11726
  }
11727
11727
  var U = 0, q = 1, X = 0;
11728
- for (this[f] = l & 255; ++U < b && (q *= 256); )
11729
- l < 0 && X === 0 && this[f + U - 1] !== 0 && (X = 1), this[f + U] = (l / q >> 0) - X & 255;
11730
- return f + b;
11731
- }, o.prototype.writeIntBE = function(l, f, b, T) {
11732
- if (l = +l, f = f >>> 0, !T) {
11733
- var A = Math.pow(2, 8 * b - 1);
11734
- V(this, l, f, b, A - 1, -A);
11728
+ for (this[p] = l & 255; ++U < x && (q *= 256); )
11729
+ l < 0 && X === 0 && this[p + U - 1] !== 0 && (X = 1), this[p + U] = (l / q >> 0) - X & 255;
11730
+ return p + x;
11731
+ }, o.prototype.writeIntBE = function(l, p, x, T) {
11732
+ if (l = +l, p = p >>> 0, !T) {
11733
+ var A = Math.pow(2, 8 * x - 1);
11734
+ V(this, l, p, x, A - 1, -A);
11735
11735
  }
11736
- var U = b - 1, q = 1, X = 0;
11737
- for (this[f + U] = l & 255; --U >= 0 && (q *= 256); )
11738
- l < 0 && X === 0 && this[f + U + 1] !== 0 && (X = 1), this[f + U] = (l / q >> 0) - X & 255;
11739
- return f + b;
11740
- }, o.prototype.writeInt8 = function(l, f, b) {
11741
- return l = +l, f = f >>> 0, b || V(this, l, f, 1, 127, -128), l < 0 && (l = 255 + l + 1), this[f] = l & 255, f + 1;
11742
- }, o.prototype.writeInt16LE = function(l, f, b) {
11743
- return l = +l, f = f >>> 0, b || V(this, l, f, 2, 32767, -32768), this[f] = l & 255, this[f + 1] = l >>> 8, f + 2;
11744
- }, o.prototype.writeInt16BE = function(l, f, b) {
11745
- return l = +l, f = f >>> 0, b || V(this, l, f, 2, 32767, -32768), this[f] = l >>> 8, this[f + 1] = l & 255, f + 2;
11746
- }, o.prototype.writeInt32LE = function(l, f, b) {
11747
- return l = +l, f = f >>> 0, b || V(this, l, f, 4, 2147483647, -2147483648), this[f] = l & 255, this[f + 1] = l >>> 8, this[f + 2] = l >>> 16, this[f + 3] = l >>> 24, f + 4;
11748
- }, o.prototype.writeInt32BE = function(l, f, b) {
11749
- return l = +l, f = f >>> 0, b || V(this, l, f, 4, 2147483647, -2147483648), l < 0 && (l = 4294967295 + l + 1), this[f] = l >>> 24, this[f + 1] = l >>> 16, this[f + 2] = l >>> 8, this[f + 3] = l & 255, f + 4;
11736
+ var U = x - 1, q = 1, X = 0;
11737
+ for (this[p + U] = l & 255; --U >= 0 && (q *= 256); )
11738
+ l < 0 && X === 0 && this[p + U + 1] !== 0 && (X = 1), this[p + U] = (l / q >> 0) - X & 255;
11739
+ return p + x;
11740
+ }, o.prototype.writeInt8 = function(l, p, x) {
11741
+ return l = +l, p = p >>> 0, x || V(this, l, p, 1, 127, -128), l < 0 && (l = 255 + l + 1), this[p] = l & 255, p + 1;
11742
+ }, o.prototype.writeInt16LE = function(l, p, x) {
11743
+ return l = +l, p = p >>> 0, x || V(this, l, p, 2, 32767, -32768), this[p] = l & 255, this[p + 1] = l >>> 8, p + 2;
11744
+ }, o.prototype.writeInt16BE = function(l, p, x) {
11745
+ return l = +l, p = p >>> 0, x || V(this, l, p, 2, 32767, -32768), this[p] = l >>> 8, this[p + 1] = l & 255, p + 2;
11746
+ }, o.prototype.writeInt32LE = function(l, p, x) {
11747
+ return l = +l, p = p >>> 0, x || V(this, l, p, 4, 2147483647, -2147483648), this[p] = l & 255, this[p + 1] = l >>> 8, this[p + 2] = l >>> 16, this[p + 3] = l >>> 24, p + 4;
11748
+ }, o.prototype.writeInt32BE = function(l, p, x) {
11749
+ return l = +l, p = p >>> 0, x || V(this, l, p, 4, 2147483647, -2147483648), l < 0 && (l = 4294967295 + l + 1), this[p] = l >>> 24, this[p + 1] = l >>> 16, this[p + 2] = l >>> 8, this[p + 3] = l & 255, p + 4;
11750
11750
  };
11751
- function tt(y, l, f, b, T, A) {
11752
- if (f + b > y.length) throw new RangeError("Index out of range");
11753
- if (f < 0) throw new RangeError("Index out of range");
11751
+ function tt(y, l, p, x, T, A) {
11752
+ if (p + x > y.length) throw new RangeError("Index out of range");
11753
+ if (p < 0) throw new RangeError("Index out of range");
11754
11754
  }
11755
- function Bt(y, l, f, b, T) {
11756
- return l = +l, f = f >>> 0, T || tt(y, l, f, 4), r.write(y, l, f, b, 23, 4), f + 4;
11755
+ function Bt(y, l, p, x, T) {
11756
+ return l = +l, p = p >>> 0, T || tt(y, l, p, 4), r.write(y, l, p, x, 23, 4), p + 4;
11757
11757
  }
11758
- o.prototype.writeFloatLE = function(l, f, b) {
11759
- return Bt(this, l, f, !0, b);
11760
- }, o.prototype.writeFloatBE = function(l, f, b) {
11761
- return Bt(this, l, f, !1, b);
11758
+ o.prototype.writeFloatLE = function(l, p, x) {
11759
+ return Bt(this, l, p, !0, x);
11760
+ }, o.prototype.writeFloatBE = function(l, p, x) {
11761
+ return Bt(this, l, p, !1, x);
11762
11762
  };
11763
- function Lt(y, l, f, b, T) {
11764
- return l = +l, f = f >>> 0, T || tt(y, l, f, 8), r.write(y, l, f, b, 52, 8), f + 8;
11765
- }
11766
- o.prototype.writeDoubleLE = function(l, f, b) {
11767
- return Lt(this, l, f, !0, b);
11768
- }, o.prototype.writeDoubleBE = function(l, f, b) {
11769
- return Lt(this, l, f, !1, b);
11770
- }, o.prototype.copy = function(l, f, b, T) {
11763
+ function Lt(y, l, p, x, T) {
11764
+ return l = +l, p = p >>> 0, T || tt(y, l, p, 8), r.write(y, l, p, x, 52, 8), p + 8;
11765
+ }
11766
+ o.prototype.writeDoubleLE = function(l, p, x) {
11767
+ return Lt(this, l, p, !0, x);
11768
+ }, o.prototype.writeDoubleBE = function(l, p, x) {
11769
+ return Lt(this, l, p, !1, x);
11770
+ }, o.prototype.copy = function(l, p, x, T) {
11771
11771
  if (!o.isBuffer(l)) throw new TypeError("argument should be a Buffer");
11772
- if (b || (b = 0), !T && T !== 0 && (T = this.length), f >= l.length && (f = l.length), f || (f = 0), T > 0 && T < b && (T = b), T === b || l.length === 0 || this.length === 0) return 0;
11773
- if (f < 0)
11772
+ if (x || (x = 0), !T && T !== 0 && (T = this.length), p >= l.length && (p = l.length), p || (p = 0), T > 0 && T < x && (T = x), T === x || l.length === 0 || this.length === 0) return 0;
11773
+ if (p < 0)
11774
11774
  throw new RangeError("targetStart out of bounds");
11775
- if (b < 0 || b >= this.length) throw new RangeError("Index out of range");
11775
+ if (x < 0 || x >= this.length) throw new RangeError("Index out of range");
11776
11776
  if (T < 0) throw new RangeError("sourceEnd out of bounds");
11777
- T > this.length && (T = this.length), l.length - f < T - b && (T = l.length - f + b);
11778
- var A = T - b;
11779
- return this === l && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(f, b, T) : Uint8Array.prototype.set.call(
11777
+ T > this.length && (T = this.length), l.length - p < T - x && (T = l.length - p + x);
11778
+ var A = T - x;
11779
+ return this === l && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(p, x, T) : Uint8Array.prototype.set.call(
11780
11780
  l,
11781
- this.subarray(b, T),
11782
- f
11781
+ this.subarray(x, T),
11782
+ p
11783
11783
  ), A;
11784
- }, o.prototype.fill = function(l, f, b, T) {
11784
+ }, o.prototype.fill = function(l, p, x, T) {
11785
11785
  if (typeof l == "string") {
11786
- if (typeof f == "string" ? (T = f, f = 0, b = this.length) : typeof b == "string" && (T = b, b = this.length), T !== void 0 && typeof T != "string")
11786
+ if (typeof p == "string" ? (T = p, p = 0, x = this.length) : typeof x == "string" && (T = x, x = this.length), T !== void 0 && typeof T != "string")
11787
11787
  throw new TypeError("encoding must be a string");
11788
11788
  if (typeof T == "string" && !o.isEncoding(T))
11789
11789
  throw new TypeError("Unknown encoding: " + T);
@@ -11792,21 +11792,21 @@ cn.write = function(t, e, r, n, a, i) {
11792
11792
  (T === "utf8" && A < 128 || T === "latin1") && (l = A);
11793
11793
  }
11794
11794
  } else typeof l == "number" ? l = l & 255 : typeof l == "boolean" && (l = Number(l));
11795
- if (f < 0 || this.length < f || this.length < b)
11795
+ if (p < 0 || this.length < p || this.length < x)
11796
11796
  throw new RangeError("Out of range index");
11797
- if (b <= f)
11797
+ if (x <= p)
11798
11798
  return this;
11799
- f = f >>> 0, b = b === void 0 ? this.length : b >>> 0, l || (l = 0);
11799
+ p = p >>> 0, x = x === void 0 ? this.length : x >>> 0, l || (l = 0);
11800
11800
  var U;
11801
11801
  if (typeof l == "number")
11802
- for (U = f; U < b; ++U)
11802
+ for (U = p; U < x; ++U)
11803
11803
  this[U] = l;
11804
11804
  else {
11805
11805
  var q = o.isBuffer(l) ? l : o.from(l, T), X = q.length;
11806
11806
  if (X === 0)
11807
11807
  throw new TypeError('The value "' + l + '" is invalid for argument "value"');
11808
- for (U = 0; U < b - f; ++U)
11809
- this[U + f] = q[U % X];
11808
+ for (U = 0; U < x - p; ++U)
11809
+ this[U + p] = q[U % X];
11810
11810
  }
11811
11811
  return this;
11812
11812
  };
@@ -11819,48 +11819,48 @@ cn.write = function(t, e, r, n, a, i) {
11819
11819
  }
11820
11820
  function Pe(y, l) {
11821
11821
  l = l || 1 / 0;
11822
- for (var f, b = y.length, T = null, A = [], U = 0; U < b; ++U) {
11823
- if (f = y.charCodeAt(U), f > 55295 && f < 57344) {
11822
+ for (var p, x = y.length, T = null, A = [], U = 0; U < x; ++U) {
11823
+ if (p = y.charCodeAt(U), p > 55295 && p < 57344) {
11824
11824
  if (!T) {
11825
- if (f > 56319) {
11825
+ if (p > 56319) {
11826
11826
  (l -= 3) > -1 && A.push(239, 191, 189);
11827
11827
  continue;
11828
- } else if (U + 1 === b) {
11828
+ } else if (U + 1 === x) {
11829
11829
  (l -= 3) > -1 && A.push(239, 191, 189);
11830
11830
  continue;
11831
11831
  }
11832
- T = f;
11832
+ T = p;
11833
11833
  continue;
11834
11834
  }
11835
- if (f < 56320) {
11836
- (l -= 3) > -1 && A.push(239, 191, 189), T = f;
11835
+ if (p < 56320) {
11836
+ (l -= 3) > -1 && A.push(239, 191, 189), T = p;
11837
11837
  continue;
11838
11838
  }
11839
- f = (T - 55296 << 10 | f - 56320) + 65536;
11839
+ p = (T - 55296 << 10 | p - 56320) + 65536;
11840
11840
  } else T && (l -= 3) > -1 && A.push(239, 191, 189);
11841
- if (T = null, f < 128) {
11841
+ if (T = null, p < 128) {
11842
11842
  if ((l -= 1) < 0) break;
11843
- A.push(f);
11844
- } else if (f < 2048) {
11843
+ A.push(p);
11844
+ } else if (p < 2048) {
11845
11845
  if ((l -= 2) < 0) break;
11846
11846
  A.push(
11847
- f >> 6 | 192,
11848
- f & 63 | 128
11847
+ p >> 6 | 192,
11848
+ p & 63 | 128
11849
11849
  );
11850
- } else if (f < 65536) {
11850
+ } else if (p < 65536) {
11851
11851
  if ((l -= 3) < 0) break;
11852
11852
  A.push(
11853
- f >> 12 | 224,
11854
- f >> 6 & 63 | 128,
11855
- f & 63 | 128
11853
+ p >> 12 | 224,
11854
+ p >> 6 & 63 | 128,
11855
+ p & 63 | 128
11856
11856
  );
11857
- } else if (f < 1114112) {
11857
+ } else if (p < 1114112) {
11858
11858
  if ((l -= 4) < 0) break;
11859
11859
  A.push(
11860
- f >> 18 | 240,
11861
- f >> 12 & 63 | 128,
11862
- f >> 6 & 63 | 128,
11863
- f & 63 | 128
11860
+ p >> 18 | 240,
11861
+ p >> 12 & 63 | 128,
11862
+ p >> 6 & 63 | 128,
11863
+ p & 63 | 128
11864
11864
  );
11865
11865
  } else
11866
11866
  throw new Error("Invalid code point");
@@ -11868,21 +11868,21 @@ cn.write = function(t, e, r, n, a, i) {
11868
11868
  return A;
11869
11869
  }
11870
11870
  function Ni(y) {
11871
- for (var l = [], f = 0; f < y.length; ++f)
11872
- l.push(y.charCodeAt(f) & 255);
11871
+ for (var l = [], p = 0; p < y.length; ++p)
11872
+ l.push(y.charCodeAt(p) & 255);
11873
11873
  return l;
11874
11874
  }
11875
11875
  function Gi(y, l) {
11876
- for (var f, b, T, A = [], U = 0; U < y.length && !((l -= 2) < 0); ++U)
11877
- f = y.charCodeAt(U), b = f >> 8, T = f % 256, A.push(T), A.push(b);
11876
+ for (var p, x, T, A = [], U = 0; U < y.length && !((l -= 2) < 0); ++U)
11877
+ p = y.charCodeAt(U), x = p >> 8, T = p % 256, A.push(T), A.push(x);
11878
11878
  return A;
11879
11879
  }
11880
11880
  function gn(y) {
11881
11881
  return e.toByteArray(Ot(y));
11882
11882
  }
11883
- function Rt(y, l, f, b) {
11884
- for (var T = 0; T < b && !(T + f >= l.length || T >= y.length); ++T)
11885
- l[T + f] = y[T];
11883
+ function Rt(y, l, p, x) {
11884
+ for (var T = 0; T < x && !(T + p >= l.length || T >= y.length); ++T)
11885
+ l[T + p] = y[T];
11886
11886
  return T;
11887
11887
  }
11888
11888
  function Ae(y, l) {
@@ -11892,18 +11892,18 @@ cn.write = function(t, e, r, n, a, i) {
11892
11892
  return y !== y;
11893
11893
  }
11894
11894
  var Hi = function() {
11895
- for (var y = "0123456789abcdef", l = new Array(256), f = 0; f < 16; ++f)
11896
- for (var b = f * 16, T = 0; T < 16; ++T)
11897
- l[b + T] = y[f] + y[T];
11895
+ for (var y = "0123456789abcdef", l = new Array(256), p = 0; p < 16; ++p)
11896
+ for (var x = p * 16, T = 0; T < 16; ++T)
11897
+ l[x + T] = y[p] + y[T];
11898
11898
  return l;
11899
11899
  }();
11900
11900
  })(on);
11901
- var Vt = on, st = Vt.Buffer, me = {}, be;
11902
- for (be in Vt)
11903
- Vt.hasOwnProperty(be) && (be === "SlowBuffer" || be === "Buffer" || (me[be] = Vt[be]));
11901
+ var Vt = on, st = Vt.Buffer, me = {}, xe;
11902
+ for (xe in Vt)
11903
+ Vt.hasOwnProperty(xe) && (xe === "SlowBuffer" || xe === "Buffer" || (me[xe] = Vt[xe]));
11904
11904
  var ot = me.Buffer = {};
11905
- for (be in st)
11906
- st.hasOwnProperty(be) && (be === "allocUnsafe" || be === "allocUnsafeSlow" || (ot[be] = st[be]));
11905
+ for (xe in st)
11906
+ st.hasOwnProperty(xe) && (xe === "allocUnsafe" || xe === "allocUnsafeSlow" || (ot[xe] = st[xe]));
11907
11907
  me.Buffer.prototype = st.prototype;
11908
11908
  (!ot.from || ot.from === Uint8Array.from) && (ot.from = function(t, e, r) {
11909
11909
  if (typeof t == "number")
@@ -11955,7 +11955,7 @@ function al(t, e) {
11955
11955
  for (var r in e)
11956
11956
  nl(e, r) && (t[r] = e[r]);
11957
11957
  }
11958
- var _i = al, mr = {}, br = {}, Gt = { exports: {} };
11958
+ var _i = al, mr = {}, xr = {}, Gt = { exports: {} };
11959
11959
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
11960
11960
  var ma;
11961
11961
  function il() {
@@ -11989,10 +11989,10 @@ function il() {
11989
11989
  };
11990
11990
  }(Gt, Gt.exports)), Gt.exports;
11991
11991
  }
11992
- var ba;
11992
+ var xa;
11993
11993
  function sl() {
11994
- if (ba) return br;
11995
- ba = 1;
11994
+ if (xa) return xr;
11995
+ xa = 1;
11996
11996
  var t = il().Buffer, e = t.isEncoding || function(m) {
11997
11997
  switch (m = "" + m, m && m.toLowerCase()) {
11998
11998
  case "hex":
@@ -12040,13 +12040,13 @@ function sl() {
12040
12040
  if (typeof F != "string" && (t.isEncoding === e || !e(m))) throw new Error("Unknown encoding: " + m);
12041
12041
  return F || m;
12042
12042
  }
12043
- br.StringDecoder = a;
12043
+ xr.StringDecoder = a;
12044
12044
  function a(m) {
12045
12045
  this.encoding = n(m);
12046
12046
  var F;
12047
12047
  switch (this.encoding) {
12048
12048
  case "utf16le":
12049
- this.text = d, this.end = p, F = 4;
12049
+ this.text = d, this.end = f, F = 4;
12050
12050
  break;
12051
12051
  case "utf8":
12052
12052
  this.fillLast = c, F = 4;
@@ -12055,7 +12055,7 @@ function sl() {
12055
12055
  this.text = g, this.end = S, F = 3;
12056
12056
  break;
12057
12057
  default:
12058
- this.write = v, this.end = x;
12058
+ this.write = v, this.end = b;
12059
12059
  return;
12060
12060
  }
12061
12061
  this.lastNeed = 0, this.lastTotal = 0, this.lastChar = t.allocUnsafe(F);
@@ -12080,8 +12080,8 @@ function sl() {
12080
12080
  function s(m, F, w) {
12081
12081
  var k = F.length - 1;
12082
12082
  if (k < w) return 0;
12083
- var E = i(F[k]);
12084
- return E >= 0 ? (E > 0 && (m.lastNeed = E - 1), E) : --k < w || E === -2 ? 0 : (E = i(F[k]), E >= 0 ? (E > 0 && (m.lastNeed = E - 2), E) : --k < w || E === -2 ? 0 : (E = i(F[k]), E >= 0 ? (E > 0 && (E === 2 ? E = 0 : m.lastNeed = E - 3), E) : 0));
12083
+ var C = i(F[k]);
12084
+ return C >= 0 ? (C > 0 && (m.lastNeed = C - 1), C) : --k < w || C === -2 ? 0 : (C = i(F[k]), C >= 0 ? (C > 0 && (m.lastNeed = C - 2), C) : --k < w || C === -2 ? 0 : (C = i(F[k]), C >= 0 ? (C > 0 && (C === 2 ? C = 0 : m.lastNeed = C - 3), C) : 0));
12085
12085
  }
12086
12086
  function o(m, F, w) {
12087
12087
  if ((F[0] & 192) !== 128)
@@ -12123,7 +12123,7 @@ function sl() {
12123
12123
  }
12124
12124
  return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = m[m.length - 1], m.toString("utf16le", F, m.length - 1);
12125
12125
  }
12126
- function p(m) {
12126
+ function f(m) {
12127
12127
  var F = m && m.length ? this.write(m) : "";
12128
12128
  if (this.lastNeed) {
12129
12129
  var w = this.lastTotal - this.lastNeed;
@@ -12142,17 +12142,17 @@ function sl() {
12142
12142
  function v(m) {
12143
12143
  return m.toString(this.encoding);
12144
12144
  }
12145
- function x(m) {
12145
+ function b(m) {
12146
12146
  return m && m.length ? this.write(m) : "";
12147
12147
  }
12148
- return br;
12148
+ return xr;
12149
12149
  }
12150
- var xr, xa;
12150
+ var br, ba;
12151
12151
  function ol() {
12152
- if (xa) return xr;
12153
- xa = 1;
12152
+ if (ba) return br;
12153
+ ba = 1;
12154
12154
  var t = Ye.Buffer;
12155
- xr = {
12155
+ br = {
12156
12156
  // Encodings
12157
12157
  utf8: { type: "_internal", bomAware: !0 },
12158
12158
  cesu8: { type: "_internal", bomAware: !0 },
@@ -12198,8 +12198,8 @@ function ol() {
12198
12198
  function s(u, h) {
12199
12199
  }
12200
12200
  s.prototype.write = function(u) {
12201
- for (var h = t.alloc(u.length * 3), d = 0, p = 0; p < u.length; p++) {
12202
- var g = u.charCodeAt(p);
12201
+ for (var h = t.alloc(u.length * 3), d = 0, f = 0; f < u.length; f++) {
12202
+ var g = u.charCodeAt(f);
12203
12203
  g < 128 ? h[d++] = g : g < 2048 ? (h[d++] = 192 + (g >>> 6), h[d++] = 128 + (g & 63)) : (h[d++] = 224 + (g >>> 12), h[d++] = 128 + (g >>> 6 & 63), h[d++] = 128 + (g & 63));
12204
12204
  }
12205
12205
  return h.slice(0, d);
@@ -12209,11 +12209,11 @@ function ol() {
12209
12209
  this.acc = 0, this.contBytes = 0, this.accBytes = 0, this.defaultCharUnicode = h.defaultCharUnicode;
12210
12210
  }
12211
12211
  o.prototype.write = function(u) {
12212
- for (var h = this.acc, d = this.contBytes, p = this.accBytes, g = "", S = 0; S < u.length; S++) {
12212
+ for (var h = this.acc, d = this.contBytes, f = this.accBytes, g = "", S = 0; S < u.length; S++) {
12213
12213
  var v = u[S];
12214
- (v & 192) !== 128 ? (d > 0 && (g += this.defaultCharUnicode, d = 0), v < 128 ? g += String.fromCharCode(v) : v < 224 ? (h = v & 31, d = 1, p = 1) : v < 240 ? (h = v & 15, d = 2, p = 1) : g += this.defaultCharUnicode) : d > 0 ? (h = h << 6 | v & 63, d--, p++, d === 0 && (p === 2 && h < 128 && h > 0 ? g += this.defaultCharUnicode : p === 3 && h < 2048 ? g += this.defaultCharUnicode : g += String.fromCharCode(h))) : g += this.defaultCharUnicode;
12214
+ (v & 192) !== 128 ? (d > 0 && (g += this.defaultCharUnicode, d = 0), v < 128 ? g += String.fromCharCode(v) : v < 224 ? (h = v & 31, d = 1, f = 1) : v < 240 ? (h = v & 15, d = 2, f = 1) : g += this.defaultCharUnicode) : d > 0 ? (h = h << 6 | v & 63, d--, f++, d === 0 && (f === 2 && h < 128 && h > 0 ? g += this.defaultCharUnicode : f === 3 && h < 2048 ? g += this.defaultCharUnicode : g += String.fromCharCode(h))) : g += this.defaultCharUnicode;
12215
12215
  }
12216
- return this.acc = h, this.contBytes = d, this.accBytes = p, g;
12216
+ return this.acc = h, this.contBytes = d, this.accBytes = f, g;
12217
12217
  }, o.prototype.end = function() {
12218
12218
  var u = 0;
12219
12219
  return this.contBytes > 0 && (u += this.defaultCharUnicode), u;
@@ -12232,7 +12232,7 @@ function ol() {
12232
12232
  var u = this.highSurrogate;
12233
12233
  return this.highSurrogate = "", t.from(u, this.enc);
12234
12234
  }
12235
- }, xr;
12235
+ }, br;
12236
12236
  }
12237
12237
  var Ie = {}, Sa;
12238
12238
  function cl() {
@@ -12248,17 +12248,17 @@ function cl() {
12248
12248
  this.isLE = h.isLE, this.highSurrogate = 0;
12249
12249
  }
12250
12250
  r.prototype.write = function(u) {
12251
- for (var h = t.from(u, "ucs2"), d = t.alloc(h.length * 2), p = this.isLE ? d.writeUInt32LE : d.writeUInt32BE, g = 0, S = 0; S < h.length; S += 2) {
12252
- var v = h.readUInt16LE(S), x = v >= 55296 && v < 56320, m = v >= 56320 && v < 57344;
12251
+ for (var h = t.from(u, "ucs2"), d = t.alloc(h.length * 2), f = this.isLE ? d.writeUInt32LE : d.writeUInt32BE, g = 0, S = 0; S < h.length; S += 2) {
12252
+ var v = h.readUInt16LE(S), b = v >= 55296 && v < 56320, m = v >= 56320 && v < 57344;
12253
12253
  if (this.highSurrogate)
12254
- if (x || !m)
12255
- p.call(d, this.highSurrogate, g), g += 4;
12254
+ if (b || !m)
12255
+ f.call(d, this.highSurrogate, g), g += 4;
12256
12256
  else {
12257
12257
  var F = (this.highSurrogate - 55296 << 10 | v - 56320) + 65536;
12258
- p.call(d, F, g), g += 4, this.highSurrogate = 0;
12258
+ f.call(d, F, g), g += 4, this.highSurrogate = 0;
12259
12259
  continue;
12260
12260
  }
12261
- x ? this.highSurrogate = v : (p.call(d, v, g), g += 4, this.highSurrogate = 0);
12261
+ b ? this.highSurrogate = v : (f.call(d, v, g), g += 4, this.highSurrogate = 0);
12262
12262
  }
12263
12263
  return g < d.length && (d = d.slice(0, g)), d;
12264
12264
  }, r.prototype.end = function() {
@@ -12273,20 +12273,20 @@ function cl() {
12273
12273
  n.prototype.write = function(u) {
12274
12274
  if (u.length === 0)
12275
12275
  return "";
12276
- var h = 0, d = 0, p = t.alloc(u.length + 4), g = 0, S = this.isLE, v = this.overflow, x = this.badChar;
12276
+ var h = 0, d = 0, f = t.alloc(u.length + 4), g = 0, S = this.isLE, v = this.overflow, b = this.badChar;
12277
12277
  if (v.length > 0) {
12278
12278
  for (; h < u.length && v.length < 4; h++)
12279
12279
  v.push(u[h]);
12280
- v.length === 4 && (S ? d = v[h] | v[h + 1] << 8 | v[h + 2] << 16 | v[h + 3] << 24 : d = v[h + 3] | v[h + 2] << 8 | v[h + 1] << 16 | v[h] << 24, v.length = 0, g = a(p, g, d, x));
12280
+ v.length === 4 && (S ? d = v[h] | v[h + 1] << 8 | v[h + 2] << 16 | v[h + 3] << 24 : d = v[h + 3] | v[h + 2] << 8 | v[h + 1] << 16 | v[h] << 24, v.length = 0, g = a(f, g, d, b));
12281
12281
  }
12282
12282
  for (; h < u.length - 3; h += 4)
12283
- S ? d = u[h] | u[h + 1] << 8 | u[h + 2] << 16 | u[h + 3] << 24 : d = u[h + 3] | u[h + 2] << 8 | u[h + 1] << 16 | u[h] << 24, g = a(p, g, d, x);
12283
+ S ? d = u[h] | u[h + 1] << 8 | u[h + 2] << 16 | u[h + 3] << 24 : d = u[h + 3] | u[h + 2] << 8 | u[h + 1] << 16 | u[h] << 24, g = a(f, g, d, b);
12284
12284
  for (; h < u.length; h++)
12285
12285
  v.push(u[h]);
12286
- return p.slice(0, g).toString("ucs2");
12286
+ return f.slice(0, g).toString("ucs2");
12287
12287
  };
12288
- function a(u, h, d, p) {
12289
- if ((d < 0 || d > 1114111) && (d = p), d >= 65536) {
12288
+ function a(u, h, d, f) {
12289
+ if ((d < 0 || d > 1114111) && (d = f), d >= 65536) {
12290
12290
  d -= 65536;
12291
12291
  var g = 55296 | d >> 10;
12292
12292
  u[h++] = g & 255, u[h++] = g >> 8;
@@ -12318,8 +12318,8 @@ function cl() {
12318
12318
  return "";
12319
12319
  var h = c(this.initialBufs, this.options.defaultEncoding);
12320
12320
  this.decoder = this.iconv.getDecoder(h, this.options);
12321
- for (var d = "", p = 0; p < this.initialBufs.length; p++)
12322
- d += this.decoder.write(this.initialBufs[p]);
12321
+ for (var d = "", f = 0; f < this.initialBufs.length; f++)
12322
+ d += this.decoder.write(this.initialBufs[f]);
12323
12323
  return this.initialBufs.length = this.initialBufsLen = 0, d;
12324
12324
  }
12325
12325
  return this.decoder.write(u);
@@ -12329,27 +12329,27 @@ function cl() {
12329
12329
  this.decoder = this.iconv.getDecoder(u, this.options);
12330
12330
  for (var h = "", d = 0; d < this.initialBufs.length; d++)
12331
12331
  h += this.decoder.write(this.initialBufs[d]);
12332
- var p = this.decoder.end();
12333
- return p && (h += p), this.initialBufs.length = this.initialBufsLen = 0, h;
12332
+ var f = this.decoder.end();
12333
+ return f && (h += f), this.initialBufs.length = this.initialBufsLen = 0, h;
12334
12334
  }
12335
12335
  return this.decoder.end();
12336
12336
  };
12337
12337
  function c(u, h) {
12338
- var d = [], p = 0, g = 0, S = 0, v = 0, x = 0;
12338
+ var d = [], f = 0, g = 0, S = 0, v = 0, b = 0;
12339
12339
  e:
12340
12340
  for (var m = 0; m < u.length; m++)
12341
12341
  for (var F = u[m], w = 0; w < F.length; w++)
12342
12342
  if (d.push(F[w]), d.length === 4) {
12343
- if (p === 0) {
12343
+ if (f === 0) {
12344
12344
  if (d[0] === 255 && d[1] === 254 && d[2] === 0 && d[3] === 0)
12345
12345
  return "utf-32le";
12346
12346
  if (d[0] === 0 && d[1] === 0 && d[2] === 254 && d[3] === 255)
12347
12347
  return "utf-32be";
12348
12348
  }
12349
- if ((d[0] !== 0 || d[1] > 16) && S++, (d[3] !== 0 || d[2] > 16) && g++, d[0] === 0 && d[1] === 0 && (d[2] !== 0 || d[3] !== 0) && x++, (d[0] !== 0 || d[1] !== 0) && d[2] === 0 && d[3] === 0 && v++, d.length = 0, p++, p >= 100)
12349
+ if ((d[0] !== 0 || d[1] > 16) && S++, (d[3] !== 0 || d[2] > 16) && g++, d[0] === 0 && d[1] === 0 && (d[2] !== 0 || d[3] !== 0) && b++, (d[0] !== 0 || d[1] !== 0) && d[2] === 0 && d[3] === 0 && v++, d.length = 0, f++, f >= 100)
12350
12350
  break e;
12351
12351
  }
12352
- return x - S > v - g ? "utf-32be" : x - S < v - g ? "utf-32le" : h || "utf-32le";
12352
+ return b - S > v - g ? "utf-32be" : b - S < v - g ? "utf-32le" : h || "utf-32le";
12353
12353
  }
12354
12354
  return Ie;
12355
12355
  }
@@ -12423,19 +12423,19 @@ function ul() {
12423
12423
  return this.decoder.end();
12424
12424
  };
12425
12425
  function o(c, u) {
12426
- var h = [], d = 0, p = 0, g = 0;
12426
+ var h = [], d = 0, f = 0, g = 0;
12427
12427
  e:
12428
12428
  for (var S = 0; S < c.length; S++)
12429
- for (var v = c[S], x = 0; x < v.length; x++)
12430
- if (h.push(v[x]), h.length === 2) {
12429
+ for (var v = c[S], b = 0; b < v.length; b++)
12430
+ if (h.push(v[b]), h.length === 2) {
12431
12431
  if (d === 0) {
12432
12432
  if (h[0] === 255 && h[1] === 254) return "utf-16le";
12433
12433
  if (h[0] === 254 && h[1] === 255) return "utf-16be";
12434
12434
  }
12435
- if (h[0] === 0 && h[1] !== 0 && g++, h[0] !== 0 && h[1] === 0 && p++, h.length = 0, d++, d >= 100)
12435
+ if (h[0] === 0 && h[1] !== 0 && g++, h[0] !== 0 && h[1] === 0 && f++, h.length = 0, d++, d >= 100)
12436
12436
  break e;
12437
12437
  }
12438
- return g > p ? "utf-16be" : g < p ? "utf-16le" : u || "utf-16le";
12438
+ return g > f ? "utf-16be" : g < f ? "utf-16le" : u || "utf-16le";
12439
12439
  }
12440
12440
  return Ht;
12441
12441
  }
@@ -12445,91 +12445,91 @@ function hl() {
12445
12445
  Fa = 1;
12446
12446
  var t = Ye.Buffer;
12447
12447
  dt.utf7 = e, dt.unicode11utf7 = "utf7";
12448
- function e(v, x) {
12449
- this.iconv = x;
12448
+ function e(v, b) {
12449
+ this.iconv = b;
12450
12450
  }
12451
12451
  e.prototype.encoder = n, e.prototype.decoder = a, e.prototype.bomAware = !0;
12452
12452
  var r = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
12453
- function n(v, x) {
12454
- this.iconv = x.iconv;
12453
+ function n(v, b) {
12454
+ this.iconv = b.iconv;
12455
12455
  }
12456
12456
  n.prototype.write = function(v) {
12457
- return t.from(v.replace(r, (function(x) {
12458
- return "+" + (x === "+" ? "" : this.iconv.encode(x, "utf16-be").toString("base64").replace(/=+$/, "")) + "-";
12457
+ return t.from(v.replace(r, (function(b) {
12458
+ return "+" + (b === "+" ? "" : this.iconv.encode(b, "utf16-be").toString("base64").replace(/=+$/, "")) + "-";
12459
12459
  }).bind(this)));
12460
12460
  }, n.prototype.end = function() {
12461
12461
  };
12462
- function a(v, x) {
12463
- this.iconv = x.iconv, this.inBase64 = !1, this.base64Accum = "";
12462
+ function a(v, b) {
12463
+ this.iconv = b.iconv, this.inBase64 = !1, this.base64Accum = "";
12464
12464
  }
12465
12465
  for (var i = /[A-Za-z0-9\/+]/, s = [], o = 0; o < 256; o++)
12466
12466
  s[o] = i.test(String.fromCharCode(o));
12467
12467
  var c = 43, u = 45, h = 38;
12468
12468
  a.prototype.write = function(v) {
12469
- for (var x = "", m = 0, F = this.inBase64, w = this.base64Accum, k = 0; k < v.length; k++)
12469
+ for (var b = "", m = 0, F = this.inBase64, w = this.base64Accum, k = 0; k < v.length; k++)
12470
12470
  if (!F)
12471
- v[k] == c && (x += this.iconv.decode(v.slice(m, k), "ascii"), m = k + 1, F = !0);
12471
+ v[k] == c && (b += this.iconv.decode(v.slice(m, k), "ascii"), m = k + 1, F = !0);
12472
12472
  else if (!s[v[k]]) {
12473
12473
  if (k == m && v[k] == u)
12474
- x += "+";
12474
+ b += "+";
12475
12475
  else {
12476
- var E = w + this.iconv.decode(v.slice(m, k), "ascii");
12477
- x += this.iconv.decode(t.from(E, "base64"), "utf16-be");
12476
+ var C = w + this.iconv.decode(v.slice(m, k), "ascii");
12477
+ b += this.iconv.decode(t.from(C, "base64"), "utf16-be");
12478
12478
  }
12479
12479
  v[k] != u && k--, m = k + 1, F = !1, w = "";
12480
12480
  }
12481
12481
  if (!F)
12482
- x += this.iconv.decode(v.slice(m), "ascii");
12482
+ b += this.iconv.decode(v.slice(m), "ascii");
12483
12483
  else {
12484
- var E = w + this.iconv.decode(v.slice(m), "ascii"), L = E.length - E.length % 8;
12485
- w = E.slice(L), E = E.slice(0, L), x += this.iconv.decode(t.from(E, "base64"), "utf16-be");
12484
+ var C = w + this.iconv.decode(v.slice(m), "ascii"), L = C.length - C.length % 8;
12485
+ w = C.slice(L), C = C.slice(0, L), b += this.iconv.decode(t.from(C, "base64"), "utf16-be");
12486
12486
  }
12487
- return this.inBase64 = F, this.base64Accum = w, x;
12487
+ return this.inBase64 = F, this.base64Accum = w, b;
12488
12488
  }, a.prototype.end = function() {
12489
12489
  var v = "";
12490
12490
  return this.inBase64 && this.base64Accum.length > 0 && (v = this.iconv.decode(t.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", v;
12491
12491
  }, dt.utf7imap = d;
12492
- function d(v, x) {
12493
- this.iconv = x;
12492
+ function d(v, b) {
12493
+ this.iconv = b;
12494
12494
  }
12495
- d.prototype.encoder = p, d.prototype.decoder = g, d.prototype.bomAware = !0;
12496
- function p(v, x) {
12497
- this.iconv = x.iconv, this.inBase64 = !1, this.base64Accum = t.alloc(6), this.base64AccumIdx = 0;
12495
+ d.prototype.encoder = f, d.prototype.decoder = g, d.prototype.bomAware = !0;
12496
+ function f(v, b) {
12497
+ this.iconv = b.iconv, this.inBase64 = !1, this.base64Accum = t.alloc(6), this.base64AccumIdx = 0;
12498
12498
  }
12499
- p.prototype.write = function(v) {
12500
- for (var x = this.inBase64, m = this.base64Accum, F = this.base64AccumIdx, w = t.alloc(v.length * 5 + 10), k = 0, E = 0; E < v.length; E++) {
12501
- var L = v.charCodeAt(E);
12502
- L >= 32 && L <= 126 ? (x && (F > 0 && (k += w.write(m.slice(0, F).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), k), F = 0), w[k++] = u, x = !1), x || (w[k++] = L, L === h && (w[k++] = u))) : (x || (w[k++] = h, x = !0), x && (m[F++] = L >> 8, m[F++] = L & 255, F == m.length && (k += w.write(m.toString("base64").replace(/\//g, ","), k), F = 0)));
12499
+ f.prototype.write = function(v) {
12500
+ for (var b = this.inBase64, m = this.base64Accum, F = this.base64AccumIdx, w = t.alloc(v.length * 5 + 10), k = 0, C = 0; C < v.length; C++) {
12501
+ var L = v.charCodeAt(C);
12502
+ L >= 32 && L <= 126 ? (b && (F > 0 && (k += w.write(m.slice(0, F).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), k), F = 0), w[k++] = u, b = !1), b || (w[k++] = L, L === h && (w[k++] = u))) : (b || (w[k++] = h, b = !0), b && (m[F++] = L >> 8, m[F++] = L & 255, F == m.length && (k += w.write(m.toString("base64").replace(/\//g, ","), k), F = 0)));
12503
12503
  }
12504
- return this.inBase64 = x, this.base64AccumIdx = F, w.slice(0, k);
12505
- }, p.prototype.end = function() {
12506
- var v = t.alloc(10), x = 0;
12507
- return this.inBase64 && (this.base64AccumIdx > 0 && (x += v.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), x), this.base64AccumIdx = 0), v[x++] = u, this.inBase64 = !1), v.slice(0, x);
12504
+ return this.inBase64 = b, this.base64AccumIdx = F, w.slice(0, k);
12505
+ }, f.prototype.end = function() {
12506
+ var v = t.alloc(10), b = 0;
12507
+ return this.inBase64 && (this.base64AccumIdx > 0 && (b += v.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), b), this.base64AccumIdx = 0), v[b++] = u, this.inBase64 = !1), v.slice(0, b);
12508
12508
  };
12509
- function g(v, x) {
12510
- this.iconv = x.iconv, this.inBase64 = !1, this.base64Accum = "";
12509
+ function g(v, b) {
12510
+ this.iconv = b.iconv, this.inBase64 = !1, this.base64Accum = "";
12511
12511
  }
12512
12512
  var S = s.slice();
12513
12513
  return S[44] = !0, g.prototype.write = function(v) {
12514
- for (var x = "", m = 0, F = this.inBase64, w = this.base64Accum, k = 0; k < v.length; k++)
12514
+ for (var b = "", m = 0, F = this.inBase64, w = this.base64Accum, k = 0; k < v.length; k++)
12515
12515
  if (!F)
12516
- v[k] == h && (x += this.iconv.decode(v.slice(m, k), "ascii"), m = k + 1, F = !0);
12516
+ v[k] == h && (b += this.iconv.decode(v.slice(m, k), "ascii"), m = k + 1, F = !0);
12517
12517
  else if (!S[v[k]]) {
12518
12518
  if (k == m && v[k] == u)
12519
- x += "&";
12519
+ b += "&";
12520
12520
  else {
12521
- var E = w + this.iconv.decode(v.slice(m, k), "ascii").replace(/,/g, "/");
12522
- x += this.iconv.decode(t.from(E, "base64"), "utf16-be");
12521
+ var C = w + this.iconv.decode(v.slice(m, k), "ascii").replace(/,/g, "/");
12522
+ b += this.iconv.decode(t.from(C, "base64"), "utf16-be");
12523
12523
  }
12524
12524
  v[k] != u && k--, m = k + 1, F = !1, w = "";
12525
12525
  }
12526
12526
  if (!F)
12527
- x += this.iconv.decode(v.slice(m), "ascii");
12527
+ b += this.iconv.decode(v.slice(m), "ascii");
12528
12528
  else {
12529
- var E = w + this.iconv.decode(v.slice(m), "ascii").replace(/,/g, "/"), L = E.length - E.length % 8;
12530
- w = E.slice(L), E = E.slice(0, L), x += this.iconv.decode(t.from(E, "base64"), "utf16-be");
12529
+ var C = w + this.iconv.decode(v.slice(m), "ascii").replace(/,/g, "/"), L = C.length - C.length % 8;
12530
+ w = C.slice(L), C = C.slice(0, L), b += this.iconv.decode(t.from(C, "base64"), "utf16-be");
12531
12531
  }
12532
- return this.inBase64 = F, this.base64Accum = w, x;
12532
+ return this.inBase64 = F, this.base64Accum = w, b;
12533
12533
  }, g.prototype.end = function() {
12534
12534
  var v = "";
12535
12535
  return this.inBase64 && this.base64Accum.length > 0 && (v = this.iconv.decode(t.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", v;
@@ -12725,9 +12725,9 @@ function fl() {
12725
12725
  csmacintosh: "macintosh"
12726
12726
  }), wr;
12727
12727
  }
12728
- var Fr, Ea;
12728
+ var Fr, Ca;
12729
12729
  function pl() {
12730
- return Ea || (Ea = 1, Fr = {
12730
+ return Ca || (Ca = 1, Fr = {
12731
12731
  437: "cp437",
12732
12732
  737: "cp737",
12733
12733
  775: "cp775",
@@ -13181,149 +13181,149 @@ function pl() {
13181
13181
  }
13182
13182
  }), Fr;
13183
13183
  }
13184
- var kr = {}, Ca;
13184
+ var kr = {}, Ea;
13185
13185
  function dl() {
13186
- if (Ca) return kr;
13187
- Ca = 1;
13186
+ if (Ea) return kr;
13187
+ Ea = 1;
13188
13188
  var t = Ye.Buffer;
13189
13189
  kr._dbcs = c;
13190
13190
  for (var e = -1, r = -2, n = -10, a = -1e3, i = new Array(256), s = -1, o = 0; o < 256; o++)
13191
13191
  i[o] = e;
13192
- function c(p, g) {
13193
- if (this.encodingName = p.encodingName, !p)
13192
+ function c(f, g) {
13193
+ if (this.encodingName = f.encodingName, !f)
13194
13194
  throw new Error("DBCS codec is called without the data.");
13195
- if (!p.table)
13195
+ if (!f.table)
13196
13196
  throw new Error("Encoding '" + this.encodingName + "' has no data.");
13197
- var S = p.table();
13197
+ var S = f.table();
13198
13198
  this.decodeTables = [], this.decodeTables[0] = i.slice(0), this.decodeTableSeq = [];
13199
13199
  for (var v = 0; v < S.length; v++)
13200
13200
  this._addDecodeChunk(S[v]);
13201
- if (typeof p.gb18030 == "function") {
13202
- this.gb18030 = p.gb18030();
13203
- var x = this.decodeTables.length;
13201
+ if (typeof f.gb18030 == "function") {
13202
+ this.gb18030 = f.gb18030();
13203
+ var b = this.decodeTables.length;
13204
13204
  this.decodeTables.push(i.slice(0));
13205
13205
  var m = this.decodeTables.length;
13206
13206
  this.decodeTables.push(i.slice(0));
13207
13207
  for (var F = this.decodeTables[0], v = 129; v <= 254; v++)
13208
13208
  for (var w = this.decodeTables[a - F[v]], k = 48; k <= 57; k++) {
13209
13209
  if (w[k] === e)
13210
- w[k] = a - x;
13210
+ w[k] = a - b;
13211
13211
  else if (w[k] > a)
13212
13212
  throw new Error("gb18030 decode tables conflict at byte 2");
13213
- for (var E = this.decodeTables[a - w[k]], L = 129; L <= 254; L++) {
13214
- if (E[L] === e)
13215
- E[L] = a - m;
13213
+ for (var C = this.decodeTables[a - w[k]], L = 129; L <= 254; L++) {
13214
+ if (C[L] === e)
13215
+ C[L] = a - m;
13216
13216
  else {
13217
- if (E[L] === a - m)
13217
+ if (C[L] === a - m)
13218
13218
  continue;
13219
- if (E[L] > a)
13219
+ if (C[L] > a)
13220
13220
  throw new Error("gb18030 decode tables conflict at byte 3");
13221
13221
  }
13222
- for (var B = this.decodeTables[a - E[L]], O = 48; O <= 57; O++)
13222
+ for (var B = this.decodeTables[a - C[L]], O = 48; O <= 57; O++)
13223
13223
  B[O] === e && (B[O] = r);
13224
13224
  }
13225
13225
  }
13226
13226
  }
13227
13227
  this.defaultCharUnicode = g.defaultCharUnicode, this.encodeTable = [], this.encodeTableSeq = [];
13228
13228
  var H = {};
13229
- if (p.encodeSkipVals)
13230
- for (var v = 0; v < p.encodeSkipVals.length; v++) {
13231
- var W = p.encodeSkipVals[v];
13229
+ if (f.encodeSkipVals)
13230
+ for (var v = 0; v < f.encodeSkipVals.length; v++) {
13231
+ var W = f.encodeSkipVals[v];
13232
13232
  if (typeof W == "number")
13233
13233
  H[W] = !0;
13234
13234
  else
13235
13235
  for (var k = W.from; k <= W.to; k++)
13236
13236
  H[k] = !0;
13237
13237
  }
13238
- if (this._fillEncodeTable(0, 0, H), p.encodeAdd)
13239
- for (var z in p.encodeAdd)
13240
- Object.prototype.hasOwnProperty.call(p.encodeAdd, z) && this._setEncodeChar(z.charCodeAt(0), p.encodeAdd[z]);
13238
+ if (this._fillEncodeTable(0, 0, H), f.encodeAdd)
13239
+ for (var z in f.encodeAdd)
13240
+ Object.prototype.hasOwnProperty.call(f.encodeAdd, z) && this._setEncodeChar(z.charCodeAt(0), f.encodeAdd[z]);
13241
13241
  this.defCharSB = this.encodeTable[0][g.defaultCharSingleByte.charCodeAt(0)], this.defCharSB === e && (this.defCharSB = this.encodeTable[0]["?"]), this.defCharSB === e && (this.defCharSB = 63);
13242
13242
  }
13243
- c.prototype.encoder = u, c.prototype.decoder = h, c.prototype._getDecodeTrieNode = function(p) {
13244
- for (var g = []; p > 0; p >>>= 8)
13245
- g.push(p & 255);
13243
+ c.prototype.encoder = u, c.prototype.decoder = h, c.prototype._getDecodeTrieNode = function(f) {
13244
+ for (var g = []; f > 0; f >>>= 8)
13245
+ g.push(f & 255);
13246
13246
  g.length == 0 && g.push(0);
13247
13247
  for (var S = this.decodeTables[0], v = g.length - 1; v > 0; v--) {
13248
- var x = S[g[v]];
13249
- if (x == e)
13248
+ var b = S[g[v]];
13249
+ if (b == e)
13250
13250
  S[g[v]] = a - this.decodeTables.length, this.decodeTables.push(S = i.slice(0));
13251
- else if (x <= a)
13252
- S = this.decodeTables[a - x];
13251
+ else if (b <= a)
13252
+ S = this.decodeTables[a - b];
13253
13253
  else
13254
- throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + p.toString(16));
13254
+ throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + f.toString(16));
13255
13255
  }
13256
13256
  return S;
13257
- }, c.prototype._addDecodeChunk = function(p) {
13258
- var g = parseInt(p[0], 16), S = this._getDecodeTrieNode(g);
13257
+ }, c.prototype._addDecodeChunk = function(f) {
13258
+ var g = parseInt(f[0], 16), S = this._getDecodeTrieNode(g);
13259
13259
  g = g & 255;
13260
- for (var v = 1; v < p.length; v++) {
13261
- var x = p[v];
13262
- if (typeof x == "string")
13263
- for (var m = 0; m < x.length; ) {
13264
- var F = x.charCodeAt(m++);
13260
+ for (var v = 1; v < f.length; v++) {
13261
+ var b = f[v];
13262
+ if (typeof b == "string")
13263
+ for (var m = 0; m < b.length; ) {
13264
+ var F = b.charCodeAt(m++);
13265
13265
  if (F >= 55296 && F < 56320) {
13266
- var w = x.charCodeAt(m++);
13266
+ var w = b.charCodeAt(m++);
13267
13267
  if (w >= 56320 && w < 57344)
13268
13268
  S[g++] = 65536 + (F - 55296) * 1024 + (w - 56320);
13269
13269
  else
13270
- throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + p[0]);
13270
+ throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + f[0]);
13271
13271
  } else if (F > 4080 && F <= 4095) {
13272
- for (var k = 4095 - F + 2, E = [], L = 0; L < k; L++)
13273
- E.push(x.charCodeAt(m++));
13274
- S[g++] = n - this.decodeTableSeq.length, this.decodeTableSeq.push(E);
13272
+ for (var k = 4095 - F + 2, C = [], L = 0; L < k; L++)
13273
+ C.push(b.charCodeAt(m++));
13274
+ S[g++] = n - this.decodeTableSeq.length, this.decodeTableSeq.push(C);
13275
13275
  } else
13276
13276
  S[g++] = F;
13277
13277
  }
13278
- else if (typeof x == "number")
13279
- for (var B = S[g - 1] + 1, m = 0; m < x; m++)
13278
+ else if (typeof b == "number")
13279
+ for (var B = S[g - 1] + 1, m = 0; m < b; m++)
13280
13280
  S[g++] = B++;
13281
13281
  else
13282
- throw new Error("Incorrect type '" + typeof x + "' given in " + this.encodingName + " at chunk " + p[0]);
13282
+ throw new Error("Incorrect type '" + typeof b + "' given in " + this.encodingName + " at chunk " + f[0]);
13283
13283
  }
13284
13284
  if (g > 255)
13285
- throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + p[0] + ": too long" + g);
13286
- }, c.prototype._getEncodeBucket = function(p) {
13287
- var g = p >> 8;
13285
+ throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + f[0] + ": too long" + g);
13286
+ }, c.prototype._getEncodeBucket = function(f) {
13287
+ var g = f >> 8;
13288
13288
  return this.encodeTable[g] === void 0 && (this.encodeTable[g] = i.slice(0)), this.encodeTable[g];
13289
- }, c.prototype._setEncodeChar = function(p, g) {
13290
- var S = this._getEncodeBucket(p), v = p & 255;
13289
+ }, c.prototype._setEncodeChar = function(f, g) {
13290
+ var S = this._getEncodeBucket(f), v = f & 255;
13291
13291
  S[v] <= n ? this.encodeTableSeq[n - S[v]][s] = g : S[v] == e && (S[v] = g);
13292
- }, c.prototype._setEncodeSequence = function(p, g) {
13293
- var S = p[0], v = this._getEncodeBucket(S), x = S & 255, m;
13294
- v[x] <= n ? m = this.encodeTableSeq[n - v[x]] : (m = {}, v[x] !== e && (m[s] = v[x]), v[x] = n - this.encodeTableSeq.length, this.encodeTableSeq.push(m));
13295
- for (var F = 1; F < p.length - 1; F++) {
13292
+ }, c.prototype._setEncodeSequence = function(f, g) {
13293
+ var S = f[0], v = this._getEncodeBucket(S), b = S & 255, m;
13294
+ v[b] <= n ? m = this.encodeTableSeq[n - v[b]] : (m = {}, v[b] !== e && (m[s] = v[b]), v[b] = n - this.encodeTableSeq.length, this.encodeTableSeq.push(m));
13295
+ for (var F = 1; F < f.length - 1; F++) {
13296
13296
  var w = m[S];
13297
13297
  typeof w == "object" ? m = w : (m = m[S] = {}, w !== void 0 && (m[s] = w));
13298
13298
  }
13299
- S = p[p.length - 1], m[S] = g;
13300
- }, c.prototype._fillEncodeTable = function(p, g, S) {
13301
- for (var v = this.decodeTables[p], x = !1, m = {}, F = 0; F < 256; F++) {
13299
+ S = f[f.length - 1], m[S] = g;
13300
+ }, c.prototype._fillEncodeTable = function(f, g, S) {
13301
+ for (var v = this.decodeTables[f], b = !1, m = {}, F = 0; F < 256; F++) {
13302
13302
  var w = v[F], k = g + F;
13303
13303
  if (!S[k])
13304
13304
  if (w >= 0)
13305
- this._setEncodeChar(w, k), x = !0;
13305
+ this._setEncodeChar(w, k), b = !0;
13306
13306
  else if (w <= a) {
13307
- var E = a - w;
13308
- if (!m[E]) {
13307
+ var C = a - w;
13308
+ if (!m[C]) {
13309
13309
  var L = k << 8 >>> 0;
13310
- this._fillEncodeTable(E, L, S) ? x = !0 : m[E] = !0;
13310
+ this._fillEncodeTable(C, L, S) ? b = !0 : m[C] = !0;
13311
13311
  }
13312
- } else w <= n && (this._setEncodeSequence(this.decodeTableSeq[n - w], k), x = !0);
13312
+ } else w <= n && (this._setEncodeSequence(this.decodeTableSeq[n - w], k), b = !0);
13313
13313
  }
13314
- return x;
13314
+ return b;
13315
13315
  };
13316
- function u(p, g) {
13316
+ function u(f, g) {
13317
13317
  this.leadSurrogate = -1, this.seqObj = void 0, this.encodeTable = g.encodeTable, this.encodeTableSeq = g.encodeTableSeq, this.defaultCharSingleByte = g.defCharSB, this.gb18030 = g.gb18030;
13318
13318
  }
13319
- u.prototype.write = function(p) {
13320
- for (var g = t.alloc(p.length * (this.gb18030 ? 4 : 3)), S = this.leadSurrogate, v = this.seqObj, x = -1, m = 0, F = 0; ; ) {
13321
- if (x === -1) {
13322
- if (m == p.length) break;
13323
- var w = p.charCodeAt(m++);
13319
+ u.prototype.write = function(f) {
13320
+ for (var g = t.alloc(f.length * (this.gb18030 ? 4 : 3)), S = this.leadSurrogate, v = this.seqObj, b = -1, m = 0, F = 0; ; ) {
13321
+ if (b === -1) {
13322
+ if (m == f.length) break;
13323
+ var w = f.charCodeAt(m++);
13324
13324
  } else {
13325
- var w = x;
13326
- x = -1;
13325
+ var w = b;
13326
+ b = -1;
13327
13327
  }
13328
13328
  if (w >= 55296 && w < 57344)
13329
13329
  if (w < 56320)
@@ -13334,14 +13334,14 @@ function dl() {
13334
13334
  S = w, w = e;
13335
13335
  else
13336
13336
  S !== -1 ? (w = 65536 + (S - 55296) * 1024 + (w - 56320), S = -1) : w = e;
13337
- else S !== -1 && (x = w, w = e, S = -1);
13337
+ else S !== -1 && (b = w, w = e, S = -1);
13338
13338
  var k = e;
13339
13339
  if (v !== void 0 && w != e) {
13340
- var E = v[w];
13341
- if (typeof E == "object") {
13342
- v = E;
13340
+ var C = v[w];
13341
+ if (typeof C == "object") {
13342
+ v = C;
13343
13343
  continue;
13344
- } else typeof E == "number" ? k = E : E == null && (E = v[s], E !== void 0 && (k = E, x = w));
13344
+ } else typeof C == "number" ? k = C : C == null && (C = v[s], C !== void 0 && (k = C, b = w));
13345
13345
  v = void 0;
13346
13346
  } else if (w >= 0) {
13347
13347
  var L = this.encodeTable[w >> 8];
@@ -13363,27 +13363,27 @@ function dl() {
13363
13363
  return this.seqObj = v, this.leadSurrogate = S, g.slice(0, F);
13364
13364
  }, u.prototype.end = function() {
13365
13365
  if (!(this.leadSurrogate === -1 && this.seqObj === void 0)) {
13366
- var p = t.alloc(10), g = 0;
13366
+ var f = t.alloc(10), g = 0;
13367
13367
  if (this.seqObj) {
13368
13368
  var S = this.seqObj[s];
13369
- S !== void 0 && (S < 256 ? p[g++] = S : (p[g++] = S >> 8, p[g++] = S & 255)), this.seqObj = void 0;
13369
+ S !== void 0 && (S < 256 ? f[g++] = S : (f[g++] = S >> 8, f[g++] = S & 255)), this.seqObj = void 0;
13370
13370
  }
13371
- return this.leadSurrogate !== -1 && (p[g++] = this.defaultCharSingleByte, this.leadSurrogate = -1), p.slice(0, g);
13371
+ return this.leadSurrogate !== -1 && (f[g++] = this.defaultCharSingleByte, this.leadSurrogate = -1), f.slice(0, g);
13372
13372
  }
13373
13373
  }, u.prototype.findIdx = d;
13374
- function h(p, g) {
13374
+ function h(f, g) {
13375
13375
  this.nodeIdx = 0, this.prevBytes = [], this.decodeTables = g.decodeTables, this.decodeTableSeq = g.decodeTableSeq, this.defaultCharUnicode = g.defaultCharUnicode, this.gb18030 = g.gb18030;
13376
13376
  }
13377
- h.prototype.write = function(p) {
13378
- for (var g = t.alloc(p.length * 2), S = this.nodeIdx, v = this.prevBytes, x = this.prevBytes.length, m = -this.prevBytes.length, F, w = 0, k = 0; w < p.length; w++) {
13379
- var E = w >= 0 ? p[w] : v[w + x], F = this.decodeTables[S][E];
13377
+ h.prototype.write = function(f) {
13378
+ for (var g = t.alloc(f.length * 2), S = this.nodeIdx, v = this.prevBytes, b = this.prevBytes.length, m = -this.prevBytes.length, F, w = 0, k = 0; w < f.length; w++) {
13379
+ var C = w >= 0 ? f[w] : v[w + b], F = this.decodeTables[S][C];
13380
13380
  if (!(F >= 0)) if (F === e)
13381
13381
  F = this.defaultCharUnicode.charCodeAt(0), w = m;
13382
13382
  else if (F === r) {
13383
13383
  if (w >= 3)
13384
- var L = (p[w - 3] - 129) * 12600 + (p[w - 2] - 48) * 1260 + (p[w - 1] - 129) * 10 + (E - 48);
13384
+ var L = (f[w - 3] - 129) * 12600 + (f[w - 2] - 48) * 1260 + (f[w - 1] - 129) * 10 + (C - 48);
13385
13385
  else
13386
- var L = (v[w - 3 + x] - 129) * 12600 + ((w - 2 >= 0 ? p[w - 2] : v[w - 2 + x]) - 48) * 1260 + ((w - 1 >= 0 ? p[w - 1] : v[w - 1 + x]) - 129) * 10 + (E - 48);
13386
+ var L = (v[w - 3 + b] - 129) * 12600 + ((w - 2 >= 0 ? f[w - 2] : v[w - 2 + b]) - 48) * 1260 + ((w - 1 >= 0 ? f[w - 1] : v[w - 1 + b]) - 129) * 10 + (C - 48);
13387
13387
  var B = d(this.gb18030.gbChars, L);
13388
13388
  F = this.gb18030.uChars[B] + L - this.gb18030.gbChars[B];
13389
13389
  } else if (F <= a) {
@@ -13394,7 +13394,7 @@ function dl() {
13394
13394
  F = O[H], g[k++] = F & 255, g[k++] = F >> 8;
13395
13395
  F = O[O.length - 1];
13396
13396
  } else
13397
- throw new Error("iconv-lite internal error: invalid decoding table value " + F + " at " + S + "/" + E);
13397
+ throw new Error("iconv-lite internal error: invalid decoding table value " + F + " at " + S + "/" + C);
13398
13398
  if (F >= 65536) {
13399
13399
  F -= 65536;
13400
13400
  var W = 55296 | F >> 10;
@@ -13402,21 +13402,21 @@ function dl() {
13402
13402
  }
13403
13403
  g[k++] = F & 255, g[k++] = F >> 8, S = 0, m = w + 1;
13404
13404
  }
13405
- return this.nodeIdx = S, this.prevBytes = m >= 0 ? Array.prototype.slice.call(p, m) : v.slice(m + x).concat(Array.prototype.slice.call(p)), g.slice(0, k).toString("ucs2");
13405
+ return this.nodeIdx = S, this.prevBytes = m >= 0 ? Array.prototype.slice.call(f, m) : v.slice(m + b).concat(Array.prototype.slice.call(f)), g.slice(0, k).toString("ucs2");
13406
13406
  }, h.prototype.end = function() {
13407
- for (var p = ""; this.prevBytes.length > 0; ) {
13408
- p += this.defaultCharUnicode;
13407
+ for (var f = ""; this.prevBytes.length > 0; ) {
13408
+ f += this.defaultCharUnicode;
13409
13409
  var g = this.prevBytes.slice(1);
13410
- this.prevBytes = [], this.nodeIdx = 0, g.length > 0 && (p += this.write(g));
13410
+ this.prevBytes = [], this.nodeIdx = 0, g.length > 0 && (f += this.write(g));
13411
13411
  }
13412
- return this.prevBytes = [], this.nodeIdx = 0, p;
13412
+ return this.prevBytes = [], this.nodeIdx = 0, f;
13413
13413
  };
13414
- function d(p, g) {
13415
- if (p[0] > g)
13414
+ function d(f, g) {
13415
+ if (f[0] > g)
13416
13416
  return -1;
13417
- for (var S = 0, v = p.length; S < v - 1; ) {
13418
- var x = S + (v - S + 1 >> 1);
13419
- p[x] <= g ? S = x : v = x;
13417
+ for (var S = 0, v = f.length; S < v - 1; ) {
13418
+ var b = S + (v - S + 1 >> 1);
13419
+ f[b] <= g ? S = b : v = b;
13420
13420
  }
13421
13421
  return S;
13422
13422
  }
@@ -18081,10 +18081,10 @@ const gl = [
18081
18081
  39265,
18082
18082
  39394,
18083
18083
  189e3
18084
- ], bl = {
18084
+ ], xl = {
18085
18085
  uChars: yl,
18086
18086
  gbChars: ml
18087
- }, xl = [
18087
+ }, bl = [
18088
18088
  [
18089
18089
  "0",
18090
18090
  "\0",
@@ -21691,9 +21691,9 @@ const gl = [
21691
21691
  "𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"
21692
21692
  ]
21693
21693
  ];
21694
- var Er, Ba;
21694
+ var Cr, Ba;
21695
21695
  function wl() {
21696
- return Ba || (Ba = 1, Er = {
21696
+ return Ba || (Ba = 1, Cr = {
21697
21697
  // == Japanese/ShiftJIS ====================================================
21698
21698
  // All japanese encodings are based on JIS X set of standards:
21699
21699
  // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
@@ -21792,7 +21792,7 @@ function wl() {
21792
21792
  return Tr.concat(Aa);
21793
21793
  },
21794
21794
  gb18030: function() {
21795
- return bl;
21795
+ return xl;
21796
21796
  },
21797
21797
  encodeSkipVals: [128],
21798
21798
  encodeAdd: { "€": 41699 }
@@ -21806,7 +21806,7 @@ function wl() {
21806
21806
  cp949: {
21807
21807
  type: "_dbcs",
21808
21808
  table: function() {
21809
- return xl;
21809
+ return bl;
21810
21810
  }
21811
21811
  },
21812
21812
  cseuckr: "cp949",
@@ -21932,7 +21932,7 @@ function wl() {
21932
21932
  cnbig5: "big5hkscs",
21933
21933
  csbig5: "big5hkscs",
21934
21934
  xxbig5: "big5hkscs"
21935
- }), Er;
21935
+ }), Cr;
21936
21936
  }
21937
21937
  var La;
21938
21938
  function Fl() {
@@ -21953,12 +21953,12 @@ function Fl() {
21953
21953
  }
21954
21954
  }(mr)), mr;
21955
21955
  }
21956
- var Cr, Oa;
21956
+ var Er, Oa;
21957
21957
  function kl() {
21958
- if (Oa) return Cr;
21958
+ if (Oa) return Er;
21959
21959
  Oa = 1;
21960
21960
  var t = Ye.Buffer;
21961
- return Cr = function(e) {
21961
+ return Er = function(e) {
21962
21962
  var r = e.Transform;
21963
21963
  function n(i, s) {
21964
21964
  this.conv = i, s = s || {}, s.decodeStrings = !1, r.call(this, s);
@@ -22021,22 +22021,22 @@ function kl() {
22021
22021
  IconvLiteEncoderStream: n,
22022
22022
  IconvLiteDecoderStream: a
22023
22023
  };
22024
- }, Cr;
22024
+ }, Er;
22025
22025
  }
22026
- const Tl = {}, El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22026
+ const Tl = {}, Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22027
22027
  __proto__: null,
22028
22028
  default: Tl
22029
- }, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ jh(El);
22029
+ }, Symbol.toStringTag, { value: "Module" })), El = /* @__PURE__ */ jh(Cl);
22030
22030
  (function(t) {
22031
22031
  var e = Ye.Buffer, r = un, n = _i, a = t.exports;
22032
22032
  a.encodings = null, a.defaultCharUnicode = "�", a.defaultCharSingleByte = "?", a.encode = function(o, c, u) {
22033
22033
  o = "" + (o || "");
22034
- var h = a.getEncoder(c, u), d = h.write(o), p = h.end();
22035
- return p && p.length > 0 ? e.concat([d, p]) : d;
22034
+ var h = a.getEncoder(c, u), d = h.write(o), f = h.end();
22035
+ return f && f.length > 0 ? e.concat([d, f]) : d;
22036
22036
  }, a.decode = function(o, c, u) {
22037
22037
  typeof o == "string" && (a.skipDecodeWarning || (console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"), a.skipDecodeWarning = !0), o = e.from("" + (o || ""), "binary"));
22038
- var h = a.getDecoder(c, u), d = h.write(o), p = h.end();
22039
- return p ? d + p : d;
22038
+ var h = a.getDecoder(c, u), d = h.write(o), f = h.end();
22039
+ return f ? d + f : d;
22040
22040
  }, a.encodingExists = function(o) {
22041
22041
  try {
22042
22042
  return a.getCodec(o), !0;
@@ -22052,18 +22052,18 @@ const Tl = {}, El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
22052
22052
  var d = a._codecDataCache[u];
22053
22053
  if (d)
22054
22054
  return d;
22055
- var p = a.encodings[u];
22056
- switch (typeof p) {
22055
+ var f = a.encodings[u];
22056
+ switch (typeof f) {
22057
22057
  case "string":
22058
- u = p;
22058
+ u = f;
22059
22059
  break;
22060
22060
  case "object":
22061
- for (var g in p)
22062
- h[g] = p[g];
22063
- h.encodingName || (h.encodingName = u), u = p.type;
22061
+ for (var g in f)
22062
+ h[g] = f[g];
22063
+ h.encodingName || (h.encodingName = u), u = f.type;
22064
22064
  break;
22065
22065
  case "function":
22066
- return h.encodingName || (h.encodingName = u), d = new p(h, a), a._codecDataCache[h.encodingName] = d, d;
22066
+ return h.encodingName || (h.encodingName = u), d = new f(h, a), a._codecDataCache[h.encodingName] = d, d;
22067
22067
  default:
22068
22068
  throw new Error("Encoding not recognized: '" + o + "' (searched as: '" + u + "')");
22069
22069
  }
@@ -22088,7 +22088,7 @@ const Tl = {}, El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
22088
22088
  };
22089
22089
  var i;
22090
22090
  try {
22091
- i = Cl;
22091
+ i = El;
22092
22092
  } catch {
22093
22093
  }
22094
22094
  i && i.Transform ? a.enableStreamingAPI(i) : a.encodeStream = a.decodeStream = function() {
@@ -22787,9 +22787,9 @@ class Dl {
22787
22787
  }, o = (c) => {
22788
22788
  let u = "", h = c;
22789
22789
  for (; e.hasData; ) {
22790
- const [d, p] = i();
22790
+ const [d, f] = i();
22791
22791
  if (!(h && d === " ")) {
22792
- if (h = !1, !p && d === ";")
22792
+ if (h = !1, !f && d === ";")
22793
22793
  break;
22794
22794
  u += d;
22795
22795
  }
@@ -23194,13 +23194,13 @@ class Dl {
23194
23194
  const h = u[0];
23195
23195
  this.scanner.consume(h.length);
23196
23196
  const d = parseInt(h, 16);
23197
- let p = "";
23197
+ let f = "";
23198
23198
  try {
23199
- p = String.fromCodePoint(d);
23199
+ f = String.fromCodePoint(d);
23200
23200
  } catch {
23201
- p = "▯";
23201
+ f = "▯";
23202
23202
  }
23203
- return a ? [1, a] : [1, p];
23203
+ return a ? [1, a] : [1, f];
23204
23204
  }
23205
23205
  this.scanner.consume(-1);
23206
23206
  }
@@ -23684,8 +23684,57 @@ class Ur {
23684
23684
  this.type = e, this.ctx = r, this.data = n;
23685
23685
  }
23686
23686
  }
23687
- var ct = /* @__PURE__ */ ((t) => (t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t[t.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", t[t.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", t[t.BY_STYLE = 5] = "BY_STYLE", t))(ct || {}), _l = /* @__PURE__ */ ((t) => (t[t.TopLeft = 1] = "TopLeft", t[t.TopCenter = 2] = "TopCenter", t[t.TopRight = 3] = "TopRight", t[t.MiddleLeft = 4] = "MiddleLeft", t[t.MiddleCenter = 5] = "MiddleCenter", t[t.MiddleRight = 6] = "MiddleRight", t[t.BottomLeft = 7] = "BottomLeft", t[t.BottomCenter = 8] = "BottomCenter", t[t.BottomRight = 9] = "BottomRight", t))(_l || {}), se = /* @__PURE__ */ ((t) => (t.CHAR = "CHAR", t.NEW_PARAGRAPH = "NEW_PARAGRAPH", t.STACK = "STACK", t))(se || {});
23688
- const Pl = /* @__PURE__ */ new _.Vector3(), Nl = 1.666666, zt = 0.3, jr = "";
23687
+ var ct = /* @__PURE__ */ ((t) => (t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t[t.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", t[t.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", t[t.BY_STYLE = 5] = "BY_STYLE", t))(ct || {}), _l = /* @__PURE__ */ ((t) => (t[t.TopLeft = 1] = "TopLeft", t[t.TopCenter = 2] = "TopCenter", t[t.TopRight = 3] = "TopRight", t[t.MiddleLeft = 4] = "MiddleLeft", t[t.MiddleCenter = 5] = "MiddleCenter", t[t.MiddleRight = 6] = "MiddleRight", t[t.BottomLeft = 7] = "BottomLeft", t[t.BottomCenter = 8] = "BottomCenter", t[t.BottomRight = 9] = "BottomRight", t))(_l || {}), ne = /* @__PURE__ */ ((t) => (t.CHAR = "CHAR", t.NEW_PARAGRAPH = "NEW_PARAGRAPH", t.STACK = "STACK", t))(ne || {});
23688
+ const jr = "";
23689
+ function Pl(t) {
23690
+ if (!(!t || [
23691
+ t.min.x,
23692
+ t.min.y,
23693
+ t.min.z,
23694
+ t.max.x,
23695
+ t.max.y,
23696
+ t.max.z
23697
+ ].some((r) => !Number.isFinite(r))))
23698
+ return t;
23699
+ }
23700
+ function Nl(t, e, r) {
23701
+ const n = [];
23702
+ if (t.filter((f) => f.char !== jr).forEach((f) => {
23703
+ const g = Pl(
23704
+ new _.Box3().copy(f.box).applyMatrix4(e)
23705
+ );
23706
+ g && n.push({
23707
+ type: f.type === ne.NEW_PARAGRAPH ? ne.NEW_PARAGRAPH : ne.CHAR,
23708
+ box: g,
23709
+ char: f.type === ne.NEW_PARAGRAPH ? `
23710
+ ` : f.char,
23711
+ children: []
23712
+ });
23713
+ }), r !== ne.STACK)
23714
+ return n;
23715
+ const a = (f) => f.type === ne.CHAR && f.char.trim().length === 0, i = (f) => f.type === ne.CHAR && f.char.trim().length > 0, s = n.findIndex(i);
23716
+ if (s < 0) return n;
23717
+ let o = -1;
23718
+ for (let f = n.length - 1; f >= 0; f--)
23719
+ if (i(n[f])) {
23720
+ o = f;
23721
+ break;
23722
+ }
23723
+ const c = n.slice(0, s).filter(a), u = n.slice(o + 1).filter(a), h = n.slice(s, o + 1).filter(i);
23724
+ if (h.length === 0) return [...c, ...u];
23725
+ const d = new _.Box3().copy(h[0].box);
23726
+ return h.slice(1).forEach((f) => d.union(f.box)), [
23727
+ ...c,
23728
+ {
23729
+ type: ne.STACK,
23730
+ char: "",
23731
+ box: d,
23732
+ children: h
23733
+ },
23734
+ ...u
23735
+ ];
23736
+ }
23737
+ const Gl = /* @__PURE__ */ new _.Vector3(), Hl = 1.666666, zt = 0.3;
23689
23738
  class dn extends Ut {
23690
23739
  /**
23691
23740
  * Creates a new RenderContext instance with optional initial values.
@@ -23719,7 +23768,7 @@ class dn extends Ut {
23719
23768
  this.color.rgb = [r, n, a];
23720
23769
  }
23721
23770
  }
23722
- class Gl {
23771
+ class zl {
23723
23772
  /**
23724
23773
  * Construct one instance of this class and initialize some properties with default values.
23725
23774
  * @param style Input text style
@@ -23818,7 +23867,7 @@ class Gl {
23818
23867
  * The height of current line of texts
23819
23868
  */
23820
23869
  get currentLineHeight() {
23821
- return this.defaultLineSpaceFactor * this.currentFontSize * Nl + this.currentMaxFontSize;
23870
+ return this.defaultLineSpaceFactor * this.currentFontSize * Hl + this.currentMaxFontSize;
23822
23871
  }
23823
23872
  /**
23824
23873
  * The maximum font size in current line. Characters in one line may have different font and font
@@ -24025,7 +24074,7 @@ class Gl {
24025
24074
  a,
24026
24075
  i
24027
24076
  );
24028
- const u = c[2] === "^" ? se.CHAR : se.STACK;
24077
+ const u = c[2] === "^" ? ne.CHAR : ne.STACK;
24029
24078
  this.processGeometries(
24030
24079
  r,
24031
24080
  n,
@@ -24043,7 +24092,7 @@ class Gl {
24043
24092
  s
24044
24093
  ), this.processLastLine(), s;
24045
24094
  }
24046
- processGeometries(e, r, n, a, i, s = se.CHAR) {
24095
+ processGeometries(e, r, n, a, i, s = ne.CHAR) {
24047
24096
  if (e.length > 0 || r.length > 0) {
24048
24097
  const o = this.toThreeObject(
24049
24098
  e,
@@ -24072,7 +24121,7 @@ class Gl {
24072
24121
  );
24073
24122
  }
24074
24123
  processStack(e, r, n, a, i) {
24075
- const [s, o, c] = e, u = this._hOffset, h = this._vOffset, d = this._currentContext.charTrackingFactor.value, p = this._currentContext.fontSize, g = this._currentContext.fontSizeScaleFactor;
24124
+ const [s, o, c] = e, u = this._hOffset, h = this._vOffset, d = this._currentContext.charTrackingFactor.value, f = this._currentContext.fontSize, g = this._currentContext.fontSizeScaleFactor;
24076
24125
  this._hOffset = u, this._currentContext.charTrackingFactor = { value: 1, isRelative: !1 };
24077
24126
  let S = 0;
24078
24127
  for (let w = 0; w < s.length; w++) {
@@ -24085,12 +24134,12 @@ class Gl {
24085
24134
  const k = this.getCharShape(o[w]);
24086
24135
  k && (v += k.width * this.currentWidthFactor);
24087
24136
  }
24088
- const x = Math.max(S, v), m = (x - S) / 2, F = (x - v) / 2;
24137
+ const b = Math.max(S, v), m = (b - S) / 2, F = (b - v) / 2;
24089
24138
  if (c === "^") {
24090
24139
  if (this._currentContext.fontSizeScaleFactor = g * 0.7, this.calcuateLineParams(), s && !o) {
24091
- const w = [], k = [], E = [], L = [];
24140
+ const w = [], k = [], C = [], L = [];
24092
24141
  this._hOffset = u, this._vOffset = this.convertTopAlignedVOffset(
24093
- h + p * 0.1,
24142
+ h + f * 0.1,
24094
24143
  this.currentFontSize
24095
24144
  );
24096
24145
  for (let B = 0; B < s.length; B++)
@@ -24098,14 +24147,14 @@ class Gl {
24098
24147
  s[B],
24099
24148
  w,
24100
24149
  k,
24101
- E,
24150
+ C,
24102
24151
  L
24103
24152
  );
24104
- r.push(...w), n.push(...k), a.push(...E), i.push(...L), this._hOffset = u + S;
24153
+ r.push(...w), n.push(...k), a.push(...C), i.push(...L), this._hOffset = u + S;
24105
24154
  } else if (!s && o) {
24106
- const w = [], k = [], E = [], L = [];
24155
+ const w = [], k = [], C = [], L = [];
24107
24156
  this._hOffset = u, this._vOffset = this.convertTopAlignedVOffset(
24108
- h - p * 0.6,
24157
+ h - f * 0.6,
24109
24158
  this.currentFontSize
24110
24159
  );
24111
24160
  for (let B = 0; B < o.length; B++)
@@ -24113,14 +24162,14 @@ class Gl {
24113
24162
  o[B],
24114
24163
  w,
24115
24164
  k,
24116
- E,
24165
+ C,
24117
24166
  L
24118
24167
  );
24119
- r.push(...w), n.push(...k), a.push(...E), i.push(...L), this._hOffset = u + v;
24168
+ r.push(...w), n.push(...k), a.push(...C), i.push(...L), this._hOffset = u + v;
24120
24169
  }
24121
24170
  this._currentContext.fontSizeScaleFactor = g, this.calcuateLineParams();
24122
24171
  } else {
24123
- const w = [], k = [], E = [], L = [];
24172
+ const w = [], k = [], C = [], L = [];
24124
24173
  this._hOffset = u + m, this._vOffset = this.convertTopAlignedVOffset(
24125
24174
  h + this.currentFontSize * 0.3,
24126
24175
  this.currentFontSize
@@ -24130,13 +24179,13 @@ class Gl {
24130
24179
  s[z],
24131
24180
  w,
24132
24181
  k,
24133
- E,
24182
+ C,
24134
24183
  L
24135
24184
  );
24136
- r.push(...w), n.push(...k), a.push(...E), i.push(...L), (c === "/" || c === "#") && this.recordStackDivider(
24185
+ r.push(...w), n.push(...k), a.push(...C), i.push(...L), (c === "/" || c === "#") && this.recordStackDivider(
24137
24186
  u,
24138
24187
  h,
24139
- x,
24188
+ b,
24140
24189
  a,
24141
24190
  i
24142
24191
  );
@@ -24158,7 +24207,7 @@ class Gl {
24158
24207
  u,
24159
24208
  h - this.currentFontSize * 0.8 + this.defaultFontSize * zt,
24160
24209
  0,
24161
- u + x,
24210
+ u + b,
24162
24211
  h - this.currentFontSize * 0.8 + this.defaultFontSize * zt,
24163
24212
  0
24164
24213
  ]);
@@ -24167,7 +24216,7 @@ class Gl {
24167
24216
  new _.BufferAttribute(ce, 3)
24168
24217
  ), z.setIndex(null), z.userData = { isDecoration: !0 }, n.push(z);
24169
24218
  }
24170
- this._hOffset = u + x;
24219
+ this._hOffset = u + b;
24171
24220
  }
24172
24221
  this._vOffset = h, this._currentContext.charTrackingFactor = {
24173
24222
  value: d,
@@ -24181,12 +24230,12 @@ class Gl {
24181
24230
  new _.Vector3(e + n, s, 0)
24182
24231
  );
24183
24232
  this.resolveCharBoxTarget(a, i) === "mesh" ? a.push({
24184
- type: se.CHAR,
24233
+ type: ne.CHAR,
24185
24234
  box: o,
24186
24235
  char: jr,
24187
24236
  children: []
24188
24237
  }) : i.push({
24189
- type: se.CHAR,
24238
+ type: ne.CHAR,
24190
24239
  box: o,
24191
24240
  char: jr,
24192
24241
  children: []
@@ -24210,12 +24259,12 @@ class Gl {
24210
24259
  )
24211
24260
  );
24212
24261
  this.resolveCharBoxTarget(e, r) === "mesh" ? e.push({
24213
- type: se.CHAR,
24262
+ type: ne.CHAR,
24214
24263
  box: i,
24215
24264
  char: " ",
24216
24265
  children: []
24217
24266
  }) : r.push({
24218
- type: se.CHAR,
24267
+ type: ne.CHAR,
24219
24268
  box: i,
24220
24269
  char: " ",
24221
24270
  children: []
@@ -24227,13 +24276,13 @@ class Gl {
24227
24276
  if (this._options.collectCharBoxes === !1 || !e || !r) return;
24228
24277
  const n = new _.Vector3(this._hOffset, this._vOffset, 0), a = new _.Box3(n.clone(), n.clone());
24229
24278
  this.resolveCharBoxTarget(e, r) === "mesh" ? e.push({
24230
- type: se.NEW_PARAGRAPH,
24279
+ type: ne.NEW_PARAGRAPH,
24231
24280
  box: a,
24232
24281
  char: `
24233
24282
  `,
24234
24283
  children: []
24235
24284
  }) : r.push({
24236
- type: se.NEW_PARAGRAPH,
24285
+ type: ne.NEW_PARAGRAPH,
24237
24286
  box: a,
24238
24287
  char: `
24239
24288
  `,
@@ -24250,10 +24299,10 @@ class Gl {
24250
24299
  o.scale(this.currentWidthFactor, 1, 1);
24251
24300
  let c = this._currentContext.oblique;
24252
24301
  if (this._currentContext.italic && (c += 15), c) {
24253
- const x = c * Math.PI / 180, m = new _.Matrix4();
24302
+ const b = c * Math.PI / 180, m = new _.Matrix4();
24254
24303
  m.set(
24255
24304
  1,
24256
- Math.tan(x),
24305
+ Math.tan(b),
24257
24306
  0,
24258
24307
  0,
24259
24308
  0,
@@ -24272,73 +24321,73 @@ class Gl {
24272
24321
  }
24273
24322
  const u = this.fontManager.getFontType(this.currentFont);
24274
24323
  this._currentContext.bold && u === "mesh" && o.scale(1.06, 1.06, 1), this.hOffset > (this.maxLineWidth || 1 / 0) && this.startNewLine(a, i);
24275
- const h = this.hOffset, d = this.flowDirection == ct.BOTTOM_TO_TOP ? this.vOffset : this.vOffset - this.defaultFontSize, p = s.width * this.currentWidthFactor, g = this.currentFontSize;
24324
+ const h = this.hOffset, d = this.flowDirection == ct.BOTTOM_TO_TOP ? this.vOffset : this.vOffset - this.defaultFontSize, f = s.width * this.currentWidthFactor, g = this.currentFontSize;
24276
24325
  if (o.translate(h, d, 0), this.currentHorizontalAlignment == we.DISTRIBUTED ? this._hOffset += s.width * this.currentWidthFactor : this._hOffset += s.width * this.currentWordSpace * this.currentWidthFactor, r.push(o), this._options.collectCharBoxes !== !1) {
24277
24326
  o.userData.char = e, o.boundingBox || o.computeBoundingBox();
24278
- const x = new _.Box3().copy(o.boundingBox);
24327
+ const b = new _.Box3().copy(o.boundingBox);
24279
24328
  o instanceof _.ShapeGeometry ? (this._lastCharBoxTarget = "mesh", a.push({
24280
- type: se.CHAR,
24281
- box: x,
24329
+ type: ne.CHAR,
24330
+ box: b,
24282
24331
  char: e,
24283
24332
  children: []
24284
24333
  })) : (this._lastCharBoxTarget = "line", i.push({
24285
- type: se.CHAR,
24286
- box: x,
24334
+ type: ne.CHAR,
24335
+ box: b,
24287
24336
  char: e,
24288
24337
  children: []
24289
24338
  }));
24290
24339
  }
24291
24340
  const S = g * 0.05, v = 1e-3;
24292
24341
  if (this._currentContext.underline) {
24293
- const x = new _.BufferGeometry(), m = d - S;
24294
- x.setAttribute(
24342
+ const b = new _.BufferGeometry(), m = d - S;
24343
+ b.setAttribute(
24295
24344
  "position",
24296
24345
  new _.BufferAttribute(
24297
24346
  new Float32Array([
24298
24347
  h,
24299
24348
  m,
24300
24349
  v,
24301
- h + p,
24350
+ h + f,
24302
24351
  m,
24303
24352
  v
24304
24353
  ]),
24305
24354
  3
24306
24355
  )
24307
- ), x.setIndex(null), x.userData = { isDecoration: !0 }, n.push(x);
24356
+ ), b.setIndex(null), b.userData = { isDecoration: !0 }, n.push(b);
24308
24357
  }
24309
24358
  if (this._currentContext.overline) {
24310
- const x = new _.BufferGeometry(), m = d + g + S;
24311
- x.setAttribute(
24359
+ const b = new _.BufferGeometry(), m = d + g + S;
24360
+ b.setAttribute(
24312
24361
  "position",
24313
24362
  new _.BufferAttribute(
24314
24363
  new Float32Array([
24315
24364
  h,
24316
24365
  m,
24317
24366
  v,
24318
- h + p,
24367
+ h + f,
24319
24368
  m,
24320
24369
  v
24321
24370
  ]),
24322
24371
  3
24323
24372
  )
24324
- ), x.setIndex(null), x.userData = { isDecoration: !0 }, n.push(x);
24373
+ ), b.setIndex(null), b.userData = { isDecoration: !0 }, n.push(b);
24325
24374
  }
24326
24375
  if (this._currentContext.strikeThrough) {
24327
- const x = new _.BufferGeometry(), m = d + g / 2 - g * 0.2;
24328
- x.setAttribute(
24376
+ const b = new _.BufferGeometry(), m = d + g / 2 - g * 0.2;
24377
+ b.setAttribute(
24329
24378
  "position",
24330
24379
  new _.BufferAttribute(
24331
24380
  new Float32Array([
24332
24381
  h,
24333
24382
  m,
24334
24383
  v,
24335
- h + p,
24384
+ h + f,
24336
24385
  m,
24337
24386
  v
24338
24387
  ]),
24339
24388
  3
24340
24389
  )
24341
- ), x.setIndex(null), x.userData = { isDecoration: !0 }, n.push(x);
24390
+ ), b.setIndex(null), b.userData = { isDecoration: !0 }, n.push(b);
24342
24391
  }
24343
24392
  }
24344
24393
  processLastLine() {
@@ -24407,14 +24456,14 @@ class Gl {
24407
24456
  if (e.forEach((s, o) => {
24408
24457
  s.geometry.boundingBox || s.geometry.computeBoundingBox(), o === 0 ? r = s.geometry.boundingBox : r.union(s.geometry.boundingBox);
24409
24458
  }), !r) return;
24410
- const n = r, a = n.getSize(Pl), i = (s, o) => {
24459
+ const n = r, a = n.getSize(Gl), i = (s, o) => {
24411
24460
  var u;
24412
24461
  const c = (u = s.userData) == null ? void 0 : u.charBoxes;
24413
24462
  if (c && c.length > 0) {
24414
24463
  const h = new _.Vector3(o, 0, 0);
24415
24464
  c.forEach((d) => {
24416
- var p;
24417
- return (p = d.box) == null ? void 0 : p.translate(h);
24465
+ var f;
24466
+ return (f = d.box) == null ? void 0 : f.translate(h);
24418
24467
  });
24419
24468
  }
24420
24469
  };
@@ -24482,12 +24531,12 @@ class Gl {
24482
24531
  const g = d.length > 1 ? pa(d) : d[0], S = new _.Mesh(g, c);
24483
24532
  S.userData.bboxIntersectionCheck = !0, S.userData.charBoxType = i, h && n.length > 0 && (S.userData.charBoxes = n.slice()), s.add(S);
24484
24533
  }
24485
- const p = [
24534
+ const f = [
24486
24535
  ...r,
24487
24536
  ...e.filter((g) => !(g instanceof _.ShapeGeometry))
24488
24537
  ];
24489
- if (p.length > 0) {
24490
- const g = p.length > 1 ? pa(p) : p[0], S = new _.LineSegments(g, u);
24538
+ if (f.length > 0) {
24539
+ const g = f.length > 1 ? pa(f) : f[0], S = new _.LineSegments(g, u);
24491
24540
  S.userData.bboxIntersectionCheck = !0, S.userData.charBoxType = i, h && a.length > 0 && (S.userData.charBoxes = a.slice()), s.add(S);
24492
24541
  }
24493
24542
  return s.children.length === 1 ? s.children[0] : s;
@@ -24666,8 +24715,8 @@ class Qt extends _.Object3D {
24666
24715
  });
24667
24716
  let o = e.rotation || 0;
24668
24717
  if (e.directionVector) {
24669
- const u = e.directionVector, h = new _.Vector3(u.x, u.y, u.z), d = h.clone().cross(Ma), p = Ma.angleTo(h);
24670
- o = d.z > 0 ? -p : p;
24718
+ const u = e.directionVector, h = new _.Vector3(u.x, u.y, u.z), d = h.clone().cross(Ma), f = Ma.angleTo(h);
24719
+ o = d.z > 0 ? -f : f;
24671
24720
  }
24672
24721
  n.matrix.compose(Ze, Or, Lr);
24673
24722
  const c = e.position ? Ze.clone().sub(e.position) : Ze;
@@ -24705,7 +24754,7 @@ class Qt extends _.Object3D {
24705
24754
  value: e.widthFactor ?? 1,
24706
24755
  isRelative: !0
24707
24756
  }, h.align = i, h.paragraph.align = a;
24708
- const d = new Gl(
24757
+ const d = new zl(
24709
24758
  r,
24710
24759
  this.styleManager,
24711
24760
  this.fontManager,
@@ -24771,32 +24820,12 @@ class Qt extends _.Object3D {
24771
24820
  e.updateWorldMatrix(!1, !1);
24772
24821
  const n = (i = e.userData) == null ? void 0 : i.charBoxes;
24773
24822
  if (n && n.length > 0) {
24774
- const c = n.filter((h) => h.char !== jr).map((h) => {
24775
- const d = h.box ? new _.Box3().copy(h.box).applyMatrix4(e.matrixWorld) : void 0;
24776
- return {
24777
- type: h.type === se.NEW_PARAGRAPH ? se.NEW_PARAGRAPH : se.CHAR,
24778
- box: d,
24779
- char: h.type === se.NEW_PARAGRAPH ? `
24780
- ` : h.char,
24781
- children: []
24782
- };
24783
- });
24784
- if (((s = e.userData) == null ? void 0 : s.charBoxType) === se.STACK) {
24785
- const h = new _.Box3();
24786
- c.forEach((d) => {
24787
- h.union(d.box);
24788
- }), r.push({
24789
- type: se.STACK,
24790
- char: "",
24791
- box: h,
24792
- children: c
24793
- });
24794
- } else
24795
- c.forEach((h) => {
24796
- r.push({
24797
- ...h
24798
- });
24799
- });
24823
+ const c = (s = e.userData) == null ? void 0 : s.charBoxType, u = Nl(
24824
+ n,
24825
+ e.matrixWorld,
24826
+ c
24827
+ );
24828
+ r.push(...u);
24800
24829
  return;
24801
24830
  }
24802
24831
  if (e instanceof _.Line || e instanceof _.Mesh) {
@@ -24805,7 +24834,7 @@ class Qt extends _.Object3D {
24805
24834
  c.boundingBox === null && c.computeBoundingBox();
24806
24835
  const u = new _.Box3().copy(c.boundingBox);
24807
24836
  u.applyMatrix4(e.matrixWorld), r.push({
24808
- type: se.CHAR,
24837
+ type: ne.CHAR,
24809
24838
  box: u,
24810
24839
  char: "",
24811
24840
  children: []
@@ -24871,7 +24900,7 @@ class Pi {
24871
24900
  return e.isByLayer && e.layer ? `layer_${e.layer}_${e.color}` : `entity_${e.color}`;
24872
24901
  }
24873
24902
  }
24874
- class Hl {
24903
+ class Wl {
24875
24904
  constructor(e = {}) {
24876
24905
  this.workers = [], this.inFlightPerWorker = [], this.pendingRequests = /* @__PURE__ */ new Map(), this.requestId = 0, this.readyPromise = null, this.poolSize = e.poolSize ?? Math.max(
24877
24906
  1,
@@ -25112,7 +25141,7 @@ class Hl {
25112
25141
  this.terminate();
25113
25142
  }
25114
25143
  }
25115
- class zl {
25144
+ class ql {
25116
25145
  constructor() {
25117
25146
  this.fontManager = Re.instance, this.defaultStyleManager = new Pi(), this.isInitialized = !1;
25118
25147
  }
@@ -25185,7 +25214,7 @@ class zl {
25185
25214
  this.isInitialized || (await this.loadFonts([Re.instance.defaultFont]), this.isInitialized = !0);
25186
25215
  }
25187
25216
  }
25188
- class Yl {
25217
+ class Zl {
25189
25218
  /**
25190
25219
  * Constructor
25191
25220
  *
@@ -25194,7 +25223,7 @@ class Yl {
25194
25223
  * when render mode is 'worker'.
25195
25224
  */
25196
25225
  constructor(e = "main", r = {}) {
25197
- this.defaultMode = e, this.mainThreadRenderer = new zl(), this.webWorkerRenderer = new Hl(r), this.renderer = this.mainThreadRenderer, e === "worker" && (this.renderer = this.webWorkerRenderer);
25226
+ this.defaultMode = e, this.mainThreadRenderer = new ql(), this.webWorkerRenderer = new Wl(r), this.renderer = this.mainThreadRenderer, e === "worker" && (this.renderer = this.webWorkerRenderer);
25198
25227
  }
25199
25228
  /**
25200
25229
  * Sets one new style manager to override the default style manager
@@ -25273,7 +25302,7 @@ class Yl {
25273
25302
  export {
25274
25303
  Pa as BaseFont,
25275
25304
  Na as BaseTextShape,
25276
- se as CharBoxType,
25305
+ ne as CharBoxType,
25277
25306
  Ll as DefaultFontLoader,
25278
25307
  Sn as EventManager,
25279
25308
  We as FontFactory,
@@ -25281,8 +25310,9 @@ export {
25281
25310
  Qt as MText,
25282
25311
  _l as MTextAttachmentPoint,
25283
25312
  ct as MTextFlowDirection,
25284
- zl as MainThreadRenderer,
25285
- Yl as UnifiedRenderer,
25286
- Hl as WebWorkerRenderer,
25313
+ ql as MainThreadRenderer,
25314
+ jr as STACK_DIVIDER_CHAR,
25315
+ Zl as UnifiedRenderer,
25316
+ Wl as WebWorkerRenderer,
25287
25317
  Xi as getColorByIndex
25288
25318
  };