@unmade/text-renderer 0.1.3 → 0.1.5

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.
@@ -354,7 +354,7 @@ function Yo(t) {
354
354
  function Xi(t, e) {
355
355
  t || Yo(e);
356
356
  }
357
- var L = { fail: Yo, argument: Xi, assert: Xi }, qi = 32768, _i = 2147483648, Pt = {}, w = {}, G = {};
357
+ var L = { fail: Yo, argument: Xi, assert: Xi }, qi = 32768, _i = 2147483648, Pt = {}, w = {}, P = {};
358
358
  function We(t) {
359
359
  return function() {
360
360
  return t;
@@ -363,50 +363,50 @@ function We(t) {
363
363
  w.BYTE = function(t) {
364
364
  return L.argument(t >= 0 && t <= 255, "Byte value should be between 0 and 255."), [t];
365
365
  };
366
- G.BYTE = We(1);
366
+ P.BYTE = We(1);
367
367
  w.CHAR = function(t) {
368
368
  return [t.charCodeAt(0)];
369
369
  };
370
- G.CHAR = We(1);
370
+ P.CHAR = We(1);
371
371
  w.CHARARRAY = function(t) {
372
372
  typeof t > "u" && (t = "", console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));
373
373
  for (var e = [], r = 0; r < t.length; r += 1)
374
374
  e[r] = t.charCodeAt(r);
375
375
  return e;
376
376
  };
377
- G.CHARARRAY = function(t) {
377
+ P.CHARARRAY = function(t) {
378
378
  return typeof t > "u" ? 0 : t.length;
379
379
  };
380
380
  w.USHORT = function(t) {
381
381
  return [t >> 8 & 255, t & 255];
382
382
  };
383
- G.USHORT = We(2);
383
+ P.USHORT = We(2);
384
384
  w.SHORT = function(t) {
385
385
  return t >= qi && (t = -(2 * qi - t)), [t >> 8 & 255, t & 255];
386
386
  };
387
- G.SHORT = We(2);
387
+ P.SHORT = We(2);
388
388
  w.UINT24 = function(t) {
389
389
  return [t >> 16 & 255, t >> 8 & 255, t & 255];
390
390
  };
391
- G.UINT24 = We(3);
391
+ P.UINT24 = We(3);
392
392
  w.ULONG = function(t) {
393
393
  return [t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
394
394
  };
395
- G.ULONG = We(4);
395
+ P.ULONG = We(4);
396
396
  w.LONG = function(t) {
397
397
  return t >= _i && (t = -(2 * _i - t)), [t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
398
398
  };
399
- G.LONG = We(4);
399
+ P.LONG = We(4);
400
400
  w.FIXED = w.ULONG;
401
- G.FIXED = G.ULONG;
401
+ P.FIXED = P.ULONG;
402
402
  w.FWORD = w.SHORT;
403
- G.FWORD = G.SHORT;
403
+ P.FWORD = P.SHORT;
404
404
  w.UFWORD = w.USHORT;
405
- G.UFWORD = G.USHORT;
405
+ P.UFWORD = P.USHORT;
406
406
  w.LONGDATETIME = function(t) {
407
407
  return [0, 0, 0, 0, t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
408
408
  };
409
- G.LONGDATETIME = We(8);
409
+ P.LONGDATETIME = We(8);
410
410
  w.TAG = function(t) {
411
411
  return L.argument(t.length === 4, "Tag should be exactly 4 ASCII characters."), [
412
412
  t.charCodeAt(0),
@@ -415,29 +415,29 @@ w.TAG = function(t) {
415
415
  t.charCodeAt(3)
416
416
  ];
417
417
  };
418
- G.TAG = We(4);
418
+ P.TAG = We(4);
419
419
  w.Card8 = w.BYTE;
420
- G.Card8 = G.BYTE;
420
+ P.Card8 = P.BYTE;
421
421
  w.Card16 = w.USHORT;
422
- G.Card16 = G.USHORT;
422
+ P.Card16 = P.USHORT;
423
423
  w.OffSize = w.BYTE;
424
- G.OffSize = G.BYTE;
424
+ P.OffSize = P.BYTE;
425
425
  w.SID = w.USHORT;
426
- G.SID = G.USHORT;
426
+ P.SID = P.USHORT;
427
427
  w.NUMBER = function(t) {
428
428
  return t >= -107 && t <= 107 ? [t + 139] : t >= 108 && t <= 1131 ? (t = t - 108, [(t >> 8) + 247, t & 255]) : t >= -1131 && t <= -108 ? (t = -t - 108, [(t >> 8) + 251, t & 255]) : t >= -32768 && t <= 32767 ? w.NUMBER16(t) : w.NUMBER32(t);
429
429
  };
430
- G.NUMBER = function(t) {
430
+ P.NUMBER = function(t) {
431
431
  return w.NUMBER(t).length;
432
432
  };
433
433
  w.NUMBER16 = function(t) {
434
434
  return [28, t >> 8 & 255, t & 255];
435
435
  };
436
- G.NUMBER16 = We(3);
436
+ P.NUMBER16 = We(3);
437
437
  w.NUMBER32 = function(t) {
438
438
  return [29, t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255];
439
439
  };
440
- G.NUMBER32 = We(5);
440
+ P.NUMBER32 = We(5);
441
441
  w.REAL = function(t) {
442
442
  var e = t.toString(), r = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(e);
443
443
  if (r) {
@@ -453,13 +453,13 @@ w.REAL = function(t) {
453
453
  u.push(parseInt(s.substr(l, 2), 16));
454
454
  return u;
455
455
  };
456
- G.REAL = function(t) {
456
+ P.REAL = function(t) {
457
457
  return w.REAL(t).length;
458
458
  };
459
459
  w.NAME = w.CHARARRAY;
460
- G.NAME = G.CHARARRAY;
460
+ P.NAME = P.CHARARRAY;
461
461
  w.STRING = w.CHARARRAY;
462
- G.STRING = G.CHARARRAY;
462
+ P.STRING = P.CHARARRAY;
463
463
  Pt.UTF8 = function(t, e, r) {
464
464
  for (var n = [], s = r, i = 0; i < s; i++, e += 1)
465
465
  n[i] = t.getUint8(e);
@@ -477,7 +477,7 @@ w.UTF16 = function(t) {
477
477
  }
478
478
  return e;
479
479
  };
480
- G.UTF16 = function(t) {
480
+ P.UTF16 = function(t) {
481
481
  return t.length * 2;
482
482
  };
483
483
  var ks = {
@@ -565,7 +565,7 @@ w.MACSTRING = function(t, e) {
565
565
  return n;
566
566
  }
567
567
  };
568
- G.MACSTRING = function(t, e) {
568
+ P.MACSTRING = function(t, e) {
569
569
  var r = w.MACSTRING(t, e);
570
570
  return r !== void 0 ? r.length : 0;
571
571
  };
@@ -628,7 +628,7 @@ w.INDEX = function(t) {
628
628
  n
629
629
  );
630
630
  };
631
- G.INDEX = function(t) {
631
+ P.INDEX = function(t) {
632
632
  return w.INDEX(t).length;
633
633
  };
634
634
  w.DICT = function(t) {
@@ -638,7 +638,7 @@ w.DICT = function(t) {
638
638
  }
639
639
  return e;
640
640
  };
641
- G.DICT = function(t) {
641
+ P.DICT = function(t) {
642
642
  return w.DICT(t).length;
643
643
  };
644
644
  w.OPERATOR = function(t) {
@@ -662,7 +662,7 @@ w.OPERAND = function(t, e) {
662
662
  return r;
663
663
  };
664
664
  w.OP = w.BYTE;
665
- G.OP = G.BYTE;
665
+ P.OP = P.BYTE;
666
666
  var Nr = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap();
667
667
  w.CHARSTRING = function(t) {
668
668
  if (Nr) {
@@ -676,15 +676,15 @@ w.CHARSTRING = function(t) {
676
676
  }
677
677
  return Nr && Nr.set(t, r), r;
678
678
  };
679
- G.CHARSTRING = function(t) {
679
+ P.CHARSTRING = function(t) {
680
680
  return w.CHARSTRING(t).length;
681
681
  };
682
682
  w.OBJECT = function(t) {
683
683
  var e = w[t.type];
684
684
  return L.argument(e !== void 0, "No encoding function for type " + t.type), e(t.value);
685
685
  };
686
- G.OBJECT = function(t) {
687
- var e = G[t.type];
686
+ P.OBJECT = function(t) {
687
+ var e = P[t.type];
688
688
  return L.argument(e !== void 0, "No sizeOf function for type " + t.type), e(t.value);
689
689
  };
690
690
  w.TABLE = function(t) {
@@ -702,9 +702,9 @@ w.TABLE = function(t) {
702
702
  }
703
703
  return e;
704
704
  };
705
- G.TABLE = function(t) {
705
+ P.TABLE = function(t) {
706
706
  for (var e = 0, r = t.fields.length, n = 0; n < r; n += 1) {
707
- var s = t.fields[n], i = G[s.type];
707
+ var s = t.fields[n], i = P[s.type];
708
708
  L.argument(i !== void 0, "No sizeOf function for field type " + s.type + " (" + s.name + ")");
709
709
  var a = t[s.name];
710
710
  a === void 0 && (a = s.value), e += i(a), s.type === "TABLE" && (e += 2);
@@ -712,11 +712,11 @@ G.TABLE = function(t) {
712
712
  return e;
713
713
  };
714
714
  w.RECORD = w.TABLE;
715
- G.RECORD = G.TABLE;
715
+ P.RECORD = P.TABLE;
716
716
  w.LITERAL = function(t) {
717
717
  return t;
718
718
  };
719
- G.LITERAL = function(t) {
719
+ P.LITERAL = function(t) {
720
720
  return t.length;
721
721
  };
722
722
  function me(t, e, r) {
@@ -735,7 +735,7 @@ me.prototype.encode = function() {
735
735
  return w.TABLE(this);
736
736
  };
737
737
  me.prototype.sizeOf = function() {
738
- return G.TABLE(this);
738
+ return P.TABLE(this);
739
739
  };
740
740
  function Ar(t, e, r) {
741
741
  r === void 0 && (r = e.length);
@@ -835,7 +835,7 @@ function en(t, e) {
835
835
  }
836
836
  en.prototype = Object.create(me.prototype);
837
837
  en.prototype.constructor = en;
838
- var T = {
838
+ var I = {
839
839
  Table: me,
840
840
  Record: me,
841
841
  Coverage: zr,
@@ -1179,7 +1179,7 @@ d.prototype.parseFeatureVariationsList = function() {
1179
1179
  return r;
1180
1180
  }) || [];
1181
1181
  };
1182
- var R = {
1182
+ var B = {
1183
1183
  getByte: zi,
1184
1184
  getCard8: zi,
1185
1185
  getUShort: tn,
@@ -1205,23 +1205,23 @@ function ih(t, e, r, n, s) {
1205
1205
  t.length = e.parseUShort(), t.language = e.parseUShort();
1206
1206
  var i;
1207
1207
  t.segCount = i = e.parseUShort() >> 1, e.skip("uShort", 3), t.glyphIndexMap = {};
1208
- for (var a = new R.Parser(r, n + s + 14), o = new R.Parser(r, n + s + 16 + i * 2), u = new R.Parser(r, n + s + 16 + i * 4), l = new R.Parser(r, n + s + 16 + i * 6), c = n + s + 16 + i * 8, A = 0; A < i - 1; A += 1)
1208
+ for (var a = new B.Parser(r, n + s + 14), o = new B.Parser(r, n + s + 16 + i * 2), u = new B.Parser(r, n + s + 16 + i * 4), l = new B.Parser(r, n + s + 16 + i * 6), c = n + s + 16 + i * 8, A = 0; A < i - 1; A += 1)
1209
1209
  for (var h = void 0, f = a.parseUShort(), p = o.parseUShort(), m = u.parseShort(), S = l.parseUShort(), v = p; v <= f; v += 1)
1210
- S !== 0 ? (c = l.offset + l.relativeOffset - 2, c += S, c += (v - p) * 2, h = R.getUShort(r, c), h !== 0 && (h = h + m & 65535)) : h = v + m & 65535, t.glyphIndexMap[v] = h;
1210
+ S !== 0 ? (c = l.offset + l.relativeOffset - 2, c += S, c += (v - p) * 2, h = B.getUShort(r, c), h !== 0 && (h = h + m & 65535)) : h = v + m & 65535, t.glyphIndexMap[v] = h;
1211
1211
  }
1212
1212
  function ah(t, e) {
1213
1213
  var r = {};
1214
- r.version = R.getUShort(t, e), L.argument(r.version === 0, "cmap table version should be 0."), r.numTables = R.getUShort(t, e + 2);
1214
+ r.version = B.getUShort(t, e), L.argument(r.version === 0, "cmap table version should be 0."), r.numTables = B.getUShort(t, e + 2);
1215
1215
  for (var n = -1, s = r.numTables - 1; s >= 0; s -= 1) {
1216
- var i = R.getUShort(t, e + 4 + s * 8), a = R.getUShort(t, e + 4 + s * 8 + 2);
1216
+ var i = B.getUShort(t, e + 4 + s * 8), a = B.getUShort(t, e + 4 + s * 8 + 2);
1217
1217
  if (i === 3 && (a === 0 || a === 1 || a === 10) || i === 0 && (a === 0 || a === 1 || a === 2 || a === 3 || a === 4)) {
1218
- n = R.getULong(t, e + 4 + s * 8 + 4);
1218
+ n = B.getULong(t, e + 4 + s * 8 + 4);
1219
1219
  break;
1220
1220
  }
1221
1221
  }
1222
1222
  if (n === -1)
1223
1223
  throw new Error("No valid cmap sub-tables found.");
1224
- var o = new R.Parser(t, e + n);
1224
+ var o = new B.Parser(t, e + n);
1225
1225
  if (r.format = o.parseUShort(), r.format === 12)
1226
1226
  sh(r, o);
1227
1227
  else if (r.format === 4)
@@ -1280,7 +1280,7 @@ function lh(t) {
1280
1280
  { name: "entrySelector", type: "USHORT", value: 0 },
1281
1281
  { name: "rangeShift", type: "USHORT", value: 0 }
1282
1282
  ]);
1283
- var i = new T.Table("cmap", s);
1283
+ var i = new I.Table("cmap", s);
1284
1284
  for (i.segments = [], r = 0; r < t.length; r += 1) {
1285
1285
  for (var a = t.get(r), o = 0; o < a.unicodes.length; o += 1)
1286
1286
  oh(i, a.unicodes[o], r);
@@ -2725,40 +2725,40 @@ function Ds(t) {
2725
2725
  return t.length < 1240 ? e = 107 : t.length < 33900 ? e = 1131 : e = 32768, e;
2726
2726
  }
2727
2727
  function lt(t, e, r) {
2728
- var n = [], s = [], i = R.getCard16(t, e), a, o;
2728
+ var n = [], s = [], i = B.getCard16(t, e), a, o;
2729
2729
  if (i !== 0) {
2730
- var u = R.getByte(t, e + 2);
2730
+ var u = B.getByte(t, e + 2);
2731
2731
  a = e + (i + 1) * u + 2;
2732
2732
  for (var l = e + 3, c = 0; c < i + 1; c += 1)
2733
- n.push(R.getOffset(t, l, u)), l += u;
2733
+ n.push(B.getOffset(t, l, u)), l += u;
2734
2734
  o = a + n[i];
2735
2735
  } else
2736
2736
  o = e + 2;
2737
2737
  for (var A = 0; A < n.length - 1; A += 1) {
2738
- var h = R.getBytes(t, a + n[A], a + n[A + 1]);
2738
+ var h = B.getBytes(t, a + n[A], a + n[A + 1]);
2739
2739
  r && (h = r(h)), s.push(h);
2740
2740
  }
2741
2741
  return { objects: s, startOffset: e, endOffset: o };
2742
2742
  }
2743
2743
  function yh(t, e) {
2744
- var r = [], n = R.getCard16(t, e), s, i;
2744
+ var r = [], n = B.getCard16(t, e), s, i;
2745
2745
  if (n !== 0) {
2746
- var a = R.getByte(t, e + 2);
2746
+ var a = B.getByte(t, e + 2);
2747
2747
  s = e + (n + 1) * a + 2;
2748
2748
  for (var o = e + 3, u = 0; u < n + 1; u += 1)
2749
- r.push(R.getOffset(t, o, a)), o += a;
2749
+ r.push(B.getOffset(t, o, a)), o += a;
2750
2750
  i = s + r[n];
2751
2751
  } else
2752
2752
  i = e + 2;
2753
2753
  return { offsets: r, startOffset: e, endOffset: i };
2754
2754
  }
2755
2755
  function bh(t, e, r, n, s) {
2756
- var i = R.getCard16(r, n), a = 0;
2756
+ var i = B.getCard16(r, n), a = 0;
2757
2757
  if (i !== 0) {
2758
- var o = R.getByte(r, n + 2);
2758
+ var o = B.getByte(r, n + 2);
2759
2759
  a = n + (i + 1) * o + 2;
2760
2760
  }
2761
- var u = R.getBytes(r, a + e[t], a + e[t + 1]);
2761
+ var u = B.getBytes(r, a + e[t], a + e[t + 1]);
2762
2762
  return u;
2763
2763
  }
2764
2764
  function xh(t) {
@@ -2797,7 +2797,7 @@ function wh(t) {
2797
2797
  }
2798
2798
  function _o(t, e, r) {
2799
2799
  e = e !== void 0 ? e : 0;
2800
- var n = new R.Parser(t, e), s = [], i = [];
2800
+ var n = new B.Parser(t, e), s = [], i = [];
2801
2801
  for (r = r !== void 0 ? r : t.length; n.relativeOffset < r; ) {
2802
2802
  var a = n.parseByte();
2803
2803
  a <= 21 ? (a === 12 && (a = 1200 + n.parseByte()), s.push([a, i]), i = []) : i.push(Ch(n, a));
@@ -2823,7 +2823,7 @@ function zo(t, e, r) {
2823
2823
  }
2824
2824
  function Eh(t, e) {
2825
2825
  var r = {};
2826
- return r.formatMajor = R.getCard8(t, e), r.formatMinor = R.getCard8(t, e + 1), r.size = R.getCard8(t, e + 2), r.offsetSize = R.getCard8(t, e + 3), r.startOffset = e, r.endOffset = e + 4, r;
2826
+ return r.formatMajor = B.getCard8(t, e), r.formatMinor = B.getCard8(t, e + 1), r.size = B.getCard8(t, e + 2), r.offsetSize = B.getCard8(t, e + 3), r.startOffset = e, r.endOffset = e + 4, r;
2827
2827
  }
2828
2828
  var jo = [
2829
2829
  { name: "version", op: 0, type: "SID" },
@@ -2892,7 +2892,7 @@ function $i(t, e, r, n) {
2892
2892
  return s;
2893
2893
  }
2894
2894
  function Fh(t, e, r, n) {
2895
- var s, i, a = new R.Parser(t, e);
2895
+ var s, i, a = new B.Parser(t, e);
2896
2896
  r -= 1;
2897
2897
  var o = [".notdef"], u = a.parseCard8();
2898
2898
  if (u === 0)
@@ -2915,7 +2915,7 @@ function Fh(t, e, r, n) {
2915
2915
  return o;
2916
2916
  }
2917
2917
  function Th(t, e, r) {
2918
- var n, s = {}, i = new R.Parser(t, e), a = i.parseCard8();
2918
+ var n, s = {}, i = new B.Parser(t, e), a = i.parseCard8();
2919
2919
  if (a === 0)
2920
2920
  for (var o = i.parseCard8(), u = 0; u < o; u += 1)
2921
2921
  n = i.parseCard8(), s[n] = u;
@@ -2936,18 +2936,18 @@ function ea(t, e, r) {
2936
2936
  p = b._subrs, m = b._subrsBias, S = b._defaultWidthX, v = b._nominalWidthX;
2937
2937
  } else
2938
2938
  p = t.tables.cff.topDict._subrs, m = t.tables.cff.topDict._subrsBias, S = t.tables.cff.topDict._defaultWidthX, v = t.tables.cff.topDict._nominalWidthX;
2939
- var O = S;
2940
- function D(F, Q) {
2941
- A && o.closePath(), o.moveTo(F, Q), A = !0;
2939
+ var M = S;
2940
+ function R(F, O) {
2941
+ A && o.closePath(), o.moveTo(F, O), A = !0;
2942
2942
  }
2943
2943
  function H() {
2944
2944
  var F;
2945
- F = u.length % 2 !== 0, F && !c && (O = u.shift() + v), l += u.length >> 1, u.length = 0, c = !0;
2945
+ F = u.length % 2 !== 0, F && !c && (M = u.shift() + v), l += u.length >> 1, u.length = 0, c = !0;
2946
2946
  }
2947
- function I(F) {
2948
- for (var Q, _, P, z, ae, j, $, ne, ee, Z, oe, he, J = 0; J < F.length; ) {
2949
- var ue = F[J];
2950
- switch (J += 1, ue) {
2947
+ function D(F) {
2948
+ for (var O, Y, W, z, ae, j, $, ne, ee, J, oe, he, V = 0; V < F.length; ) {
2949
+ var ue = F[V];
2950
+ switch (V += 1, ue) {
2951
2951
  case 1:
2952
2952
  H();
2953
2953
  break;
@@ -2955,7 +2955,7 @@ function ea(t, e, r) {
2955
2955
  H();
2956
2956
  break;
2957
2957
  case 4:
2958
- u.length > 1 && !c && (O = u.shift() + v, c = !0), f += u.pop(), D(h, f);
2958
+ u.length > 1 && !c && (M = u.shift() + v, c = !0), f += u.pop(), R(h, f);
2959
2959
  break;
2960
2960
  case 5:
2961
2961
  for (; u.length > 0; )
@@ -2974,30 +2974,30 @@ function ea(t, e, r) {
2974
2974
  n = h + u.shift(), s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), h = i + u.shift(), f = a + u.shift(), o.curveTo(n, s, i, a, h, f);
2975
2975
  break;
2976
2976
  case 10:
2977
- ae = u.pop() + m, j = p[ae], j && I(j);
2977
+ ae = u.pop() + m, j = p[ae], j && D(j);
2978
2978
  break;
2979
2979
  case 11:
2980
2980
  return;
2981
2981
  case 12:
2982
- switch (ue = F[J], J += 1, ue) {
2982
+ switch (ue = F[V], V += 1, ue) {
2983
2983
  case 35:
2984
- n = h + u.shift(), s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a + u.shift(), ee = $ + u.shift(), Z = ne + u.shift(), oe = ee + u.shift(), he = Z + u.shift(), h = oe + u.shift(), f = he + u.shift(), u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, Z, oe, he, h, f);
2984
+ n = h + u.shift(), s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a + u.shift(), ee = $ + u.shift(), J = ne + u.shift(), oe = ee + u.shift(), he = J + u.shift(), h = oe + u.shift(), f = he + u.shift(), u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, J, oe, he, h, f);
2985
2985
  break;
2986
2986
  case 34:
2987
- n = h + u.shift(), s = f, i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a, ee = $ + u.shift(), Z = a, oe = ee + u.shift(), he = f, h = oe + u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, Z, oe, he, h, f);
2987
+ n = h + u.shift(), s = f, i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a, ee = $ + u.shift(), J = a, oe = ee + u.shift(), he = f, h = oe + u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, J, oe, he, h, f);
2988
2988
  break;
2989
2989
  case 36:
2990
- n = h + u.shift(), s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a, ee = $ + u.shift(), Z = a, oe = ee + u.shift(), he = Z + u.shift(), h = oe + u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, Z, oe, he, h, f);
2990
+ n = h + u.shift(), s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a, ee = $ + u.shift(), J = a, oe = ee + u.shift(), he = J + u.shift(), h = oe + u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, J, oe, he, h, f);
2991
2991
  break;
2992
2992
  case 37:
2993
- n = h + u.shift(), s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a + u.shift(), ee = $ + u.shift(), Z = ne + u.shift(), oe = ee + u.shift(), he = Z + u.shift(), Math.abs(oe - h) > Math.abs(he - f) ? h = oe + u.shift() : f = he + u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, Z, oe, he, h, f);
2993
+ n = h + u.shift(), s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), $ = i + u.shift(), ne = a + u.shift(), ee = $ + u.shift(), J = ne + u.shift(), oe = ee + u.shift(), he = J + u.shift(), Math.abs(oe - h) > Math.abs(he - f) ? h = oe + u.shift() : f = he + u.shift(), o.curveTo(n, s, i, a, $, ne), o.curveTo(ee, J, oe, he, h, f);
2994
2994
  break;
2995
2995
  default:
2996
2996
  console.log("Glyph " + e.index + ": unknown operator 1200" + ue), u.length = 0;
2997
2997
  }
2998
2998
  break;
2999
2999
  case 14:
3000
- u.length > 0 && !c && (O = u.shift() + v, c = !0), A && (o.closePath(), A = !1);
3000
+ u.length > 0 && !c && (M = u.shift() + v, c = !0), A && (o.closePath(), A = !1);
3001
3001
  break;
3002
3002
  case 18:
3003
3003
  H();
@@ -3005,13 +3005,13 @@ function ea(t, e, r) {
3005
3005
  case 19:
3006
3006
  // hintmask
3007
3007
  case 20:
3008
- H(), J += l + 7 >> 3;
3008
+ H(), V += l + 7 >> 3;
3009
3009
  break;
3010
3010
  case 21:
3011
- u.length > 2 && !c && (O = u.shift() + v, c = !0), f += u.pop(), h += u.pop(), D(h, f);
3011
+ u.length > 2 && !c && (M = u.shift() + v, c = !0), f += u.pop(), h += u.pop(), R(h, f);
3012
3012
  break;
3013
3013
  case 22:
3014
- u.length > 1 && !c && (O = u.shift() + v, c = !0), h += u.pop(), D(h, f);
3014
+ u.length > 1 && !c && (M = u.shift() + v, c = !0), h += u.pop(), R(h, f);
3015
3015
  break;
3016
3016
  case 23:
3017
3017
  H();
@@ -3035,10 +3035,10 @@ function ea(t, e, r) {
3035
3035
  n = h + u.shift(), s = f, i = n + u.shift(), a = s + u.shift(), h = i + u.shift(), f = a, o.curveTo(n, s, i, a, h, f);
3036
3036
  break;
3037
3037
  case 28:
3038
- Q = F[J], _ = F[J + 1], u.push((Q << 24 | _ << 16) >> 16), J += 2;
3038
+ O = F[V], Y = F[V + 1], u.push((O << 24 | Y << 16) >> 16), V += 2;
3039
3039
  break;
3040
3040
  case 29:
3041
- ae = u.pop() + t.gsubrsBias, j = t.gsubrs[ae], j && I(j);
3041
+ ae = u.pop() + t.gsubrsBias, j = t.gsubrs[ae], j && D(j);
3042
3042
  break;
3043
3043
  case 30:
3044
3044
  for (; u.length > 0 && (n = h, s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), h = i + u.shift(), f = a + (u.length === 1 ? u.shift() : 0), o.curveTo(n, s, i, a, h, f), u.length !== 0); )
@@ -3049,14 +3049,14 @@ function ea(t, e, r) {
3049
3049
  n = h, s = f + u.shift(), i = n + u.shift(), a = s + u.shift(), h = i + u.shift(), f = a + (u.length === 1 ? u.shift() : 0), o.curveTo(n, s, i, a, h, f);
3050
3050
  break;
3051
3051
  default:
3052
- ue < 32 ? console.log("Glyph " + e.index + ": unknown operator " + ue) : ue < 247 ? u.push(ue - 139) : ue < 251 ? (Q = F[J], J += 1, u.push((ue - 247) * 256 + Q + 108)) : ue < 255 ? (Q = F[J], J += 1, u.push(-(ue - 251) * 256 - Q - 108)) : (Q = F[J], _ = F[J + 1], P = F[J + 2], z = F[J + 3], J += 4, u.push((Q << 24 | _ << 16 | P << 8 | z) / 65536));
3052
+ ue < 32 ? console.log("Glyph " + e.index + ": unknown operator " + ue) : ue < 247 ? u.push(ue - 139) : ue < 251 ? (O = F[V], V += 1, u.push((ue - 247) * 256 + O + 108)) : ue < 255 ? (O = F[V], V += 1, u.push(-(ue - 251) * 256 - O - 108)) : (O = F[V], Y = F[V + 1], W = F[V + 2], z = F[V + 3], V += 4, u.push((O << 24 | Y << 16 | W << 8 | z) / 65536));
3053
3053
  }
3054
3054
  }
3055
3055
  }
3056
- return I(r), e.advanceWidth = O, o;
3056
+ return D(r), e.advanceWidth = M, o;
3057
3057
  }
3058
3058
  function kh(t, e, r, n) {
3059
- var s = [], i, a = new R.Parser(t, e), o = a.parseCard8();
3059
+ var s = [], i, a = new B.Parser(t, e), o = a.parseCard8();
3060
3060
  if (o === 0)
3061
3061
  for (var u = 0; u < r; u++) {
3062
3062
  if (i = a.parseCard8(), i >= n)
@@ -3084,7 +3084,7 @@ function kh(t, e, r, n) {
3084
3084
  }
3085
3085
  function Bh(t, e, r, n) {
3086
3086
  r.tables.cff = {};
3087
- var s = Eh(t, e), i = lt(t, s.endOffset, R.bytesToString), a = lt(t, i.endOffset), o = lt(t, a.endOffset, R.bytesToString), u = lt(t, o.endOffset);
3087
+ var s = Eh(t, e), i = lt(t, s.endOffset, B.bytesToString), a = lt(t, i.endOffset), o = lt(t, a.endOffset, B.bytesToString), u = lt(t, o.endOffset);
3088
3088
  r.gsubrs = u.objects, r.gsubrsBias = Ds(r.gsubrs);
3089
3089
  var l = $i(t, e, a.objects, o.objects);
3090
3090
  if (l.length !== 1)
@@ -3106,16 +3106,16 @@ function Bh(t, e, r, n) {
3106
3106
  r.subrs = [], r.subrsBias = 0;
3107
3107
  var b;
3108
3108
  n.lowMemory ? (b = yh(t, e + c.charStrings), r.nGlyphs = b.offsets.length) : (b = lt(t, e + c.charStrings), r.nGlyphs = b.objects.length);
3109
- var O = Fh(t, e + c.charset, r.nGlyphs, o.objects);
3110
- if (c.encoding === 0 ? r.cffEncoding = new rn(ch, O) : c.encoding === 1 ? r.cffEncoding = new rn(hh, O) : r.cffEncoding = Th(t, e + c.encoding, O), r.encoding = r.encoding || r.cffEncoding, r.glyphs = new qe.GlyphSet(r), n.lowMemory)
3111
- r._push = function(I) {
3112
- var F = bh(I, b.offsets, t, e + c.charStrings);
3113
- r.glyphs.push(I, qe.cffGlyphLoader(r, I, ea, F));
3109
+ var M = Fh(t, e + c.charset, r.nGlyphs, o.objects);
3110
+ if (c.encoding === 0 ? r.cffEncoding = new rn(ch, M) : c.encoding === 1 ? r.cffEncoding = new rn(hh, M) : r.cffEncoding = Th(t, e + c.encoding, M), r.encoding = r.encoding || r.cffEncoding, r.glyphs = new qe.GlyphSet(r), n.lowMemory)
3111
+ r._push = function(D) {
3112
+ var F = bh(D, b.offsets, t, e + c.charStrings);
3113
+ r.glyphs.push(D, qe.cffGlyphLoader(r, D, ea, F));
3114
3114
  };
3115
3115
  else
3116
- for (var D = 0; D < r.nGlyphs; D += 1) {
3117
- var H = b.objects[D];
3118
- r.glyphs.push(D, qe.cffGlyphLoader(r, D, ea, H));
3116
+ for (var R = 0; R < r.nGlyphs; R += 1) {
3117
+ var H = b.objects[R];
3118
+ r.glyphs.push(R, qe.cffGlyphLoader(r, R, ea, H));
3119
3119
  }
3120
3120
  }
3121
3121
  function tu(t, e) {
@@ -3123,7 +3123,7 @@ function tu(t, e) {
3123
3123
  return n >= 0 && (r = n), n = e.indexOf(t), n >= 0 ? r = n + Yr.length : (r = Yr.length + e.length, e.push(t)), r;
3124
3124
  }
3125
3125
  function Rh() {
3126
- return new T.Record("Header", [
3126
+ return new I.Record("Header", [
3127
3127
  { name: "major", type: "Card8", value: 1 },
3128
3128
  { name: "minor", type: "Card8", value: 0 },
3129
3129
  { name: "hdrSize", type: "Card8", value: 4 },
@@ -3131,7 +3131,7 @@ function Rh() {
3131
3131
  ]);
3132
3132
  }
3133
3133
  function Dh(t) {
3134
- var e = new T.Record("Name INDEX", [
3134
+ var e = new I.Record("Name INDEX", [
3135
3135
  { name: "names", type: "INDEX", value: [] }
3136
3136
  ]);
3137
3137
  e.names = [];
@@ -3147,19 +3147,19 @@ function ru(t, e, r) {
3147
3147
  return n;
3148
3148
  }
3149
3149
  function ta(t, e) {
3150
- var r = new T.Record("Top DICT", [
3150
+ var r = new I.Record("Top DICT", [
3151
3151
  { name: "dict", type: "DICT", value: {} }
3152
3152
  ]);
3153
3153
  return r.dict = ru(jo, t, e), r;
3154
3154
  }
3155
3155
  function ra(t) {
3156
- var e = new T.Record("Top DICT INDEX", [
3156
+ var e = new I.Record("Top DICT INDEX", [
3157
3157
  { name: "topDicts", type: "INDEX", value: [] }
3158
3158
  ]);
3159
3159
  return e.topDicts = [{ name: "topDict_0", type: "TABLE", value: t }], e;
3160
3160
  }
3161
3161
  function Nh(t) {
3162
- var e = new T.Record("String INDEX", [
3162
+ var e = new I.Record("String INDEX", [
3163
3163
  { name: "strings", type: "INDEX", value: [] }
3164
3164
  ]);
3165
3165
  e.strings = [];
@@ -3168,12 +3168,12 @@ function Nh(t) {
3168
3168
  return e;
3169
3169
  }
3170
3170
  function Uh() {
3171
- return new T.Record("Global Subr INDEX", [
3171
+ return new I.Record("Global Subr INDEX", [
3172
3172
  { name: "subrs", type: "INDEX", value: [] }
3173
3173
  ]);
3174
3174
  }
3175
3175
  function Oh(t, e) {
3176
- for (var r = new T.Record("Charsets", [
3176
+ for (var r = new I.Record("Charsets", [
3177
3177
  { name: "format", type: "Card8", value: 0 }
3178
3178
  ]), n = 0; n < t.length; n += 1) {
3179
3179
  var s = t[n], i = tu(s, e);
@@ -3210,7 +3210,7 @@ function Lh(t) {
3210
3210
  return e.push({ name: "endchar", type: "OP", value: 14 }), e;
3211
3211
  }
3212
3212
  function Mh(t) {
3213
- for (var e = new T.Record("CharStrings INDEX", [
3213
+ for (var e = new I.Record("CharStrings INDEX", [
3214
3214
  { name: "charStrings", type: "INDEX", value: [] }
3215
3215
  ]), r = 0; r < t.length; r += 1) {
3216
3216
  var n = t.get(r), s = Lh(n);
@@ -3219,13 +3219,13 @@ function Mh(t) {
3219
3219
  return e;
3220
3220
  }
3221
3221
  function Gh(t, e) {
3222
- var r = new T.Record("Private DICT", [
3222
+ var r = new I.Record("Private DICT", [
3223
3223
  { name: "dict", type: "DICT", value: {} }
3224
3224
  ]);
3225
3225
  return r.dict = ru($o, t, e), r;
3226
3226
  }
3227
3227
  function Hh(t, e) {
3228
- for (var r = new T.Table("CFF ", [
3228
+ for (var r = new I.Table("CFF ", [
3229
3229
  { name: "header", type: "RECORD" },
3230
3230
  { name: "nameIndex", type: "RECORD" },
3231
3231
  { name: "topDictIndex", type: "RECORD" },
@@ -3256,12 +3256,12 @@ function Hh(t, e) {
3256
3256
  }
3257
3257
  var nu = { parse: Bh, make: Hh };
3258
3258
  function Ph(t, e) {
3259
- var r = {}, n = new R.Parser(t, e);
3259
+ var r = {}, n = new B.Parser(t, e);
3260
3260
  return r.version = n.parseVersion(), r.fontRevision = Math.round(n.parseFixed() * 1e3) / 1e3, r.checkSumAdjustment = n.parseULong(), r.magicNumber = n.parseULong(), L.argument(r.magicNumber === 1594834165, "Font header has wrong magic number."), r.flags = n.parseUShort(), r.unitsPerEm = n.parseUShort(), r.created = n.parseLongDateTime(), r.modified = n.parseLongDateTime(), r.xMin = n.parseShort(), r.yMin = n.parseShort(), r.xMax = n.parseShort(), r.yMax = n.parseShort(), r.macStyle = n.parseUShort(), r.lowestRecPPEM = n.parseUShort(), r.fontDirectionHint = n.parseShort(), r.indexToLocFormat = n.parseShort(), r.glyphDataFormat = n.parseShort(), r;
3261
3261
  }
3262
3262
  function Wh(t) {
3263
3263
  var e = Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3) + 2082844800, r = e;
3264
- return t.createdTimestamp && (r = t.createdTimestamp + 2082844800), new T.Table("head", [
3264
+ return t.createdTimestamp && (r = t.createdTimestamp + 2082844800), new I.Table("head", [
3265
3265
  { name: "version", type: "FIXED", value: 65536 },
3266
3266
  { name: "fontRevision", type: "FIXED", value: 65536 },
3267
3267
  { name: "checkSumAdjustment", type: "ULONG", value: 0 },
@@ -3283,11 +3283,11 @@ function Wh(t) {
3283
3283
  }
3284
3284
  var su = { parse: Ph, make: Wh };
3285
3285
  function Qh(t, e) {
3286
- var r = {}, n = new R.Parser(t, e);
3286
+ var r = {}, n = new B.Parser(t, e);
3287
3287
  return r.version = n.parseVersion(), r.ascender = n.parseShort(), r.descender = n.parseShort(), r.lineGap = n.parseShort(), r.advanceWidthMax = n.parseUShort(), r.minLeftSideBearing = n.parseShort(), r.minRightSideBearing = n.parseShort(), r.xMaxExtent = n.parseShort(), r.caretSlopeRise = n.parseShort(), r.caretSlopeRun = n.parseShort(), r.caretOffset = n.parseShort(), n.relativeOffset += 8, r.metricDataFormat = n.parseShort(), r.numberOfHMetrics = n.parseUShort(), r;
3288
3288
  }
3289
3289
  function Kh(t) {
3290
- return new T.Table("hhea", [
3290
+ return new I.Table("hhea", [
3291
3291
  { name: "version", type: "FIXED", value: 65536 },
3292
3292
  { name: "ascender", type: "FWORD", value: 0 },
3293
3293
  { name: "descender", type: "FWORD", value: 0 },
@@ -3309,7 +3309,7 @@ function Kh(t) {
3309
3309
  }
3310
3310
  var iu = { parse: Qh, make: Kh };
3311
3311
  function Yh(t, e, r, n, s) {
3312
- for (var i, a, o = new R.Parser(t, e), u = 0; u < n; u += 1) {
3312
+ for (var i, a, o = new B.Parser(t, e), u = 0; u < n; u += 1) {
3313
3313
  u < r && (i = o.parseUShort(), a = o.parseShort());
3314
3314
  var l = s.get(u);
3315
3315
  l.advanceWidth = i, l.leftSideBearing = a;
@@ -3317,7 +3317,7 @@ function Yh(t, e, r, n, s) {
3317
3317
  }
3318
3318
  function Zh(t, e, r, n, s) {
3319
3319
  t._hmtxTableData = {};
3320
- for (var i, a, o = new R.Parser(e, r), u = 0; u < s; u += 1)
3320
+ for (var i, a, o = new B.Parser(e, r), u = 0; u < s; u += 1)
3321
3321
  u < n && (i = o.parseUShort(), a = o.parseShort()), t._hmtxTableData[u] = {
3322
3322
  advanceWidth: i,
3323
3323
  leftSideBearing: a
@@ -3327,7 +3327,7 @@ function Jh(t, e, r, n, s, i, a) {
3327
3327
  a.lowMemory ? Zh(t, e, r, n, s) : Yh(e, r, n, s, i);
3328
3328
  }
3329
3329
  function Vh(t) {
3330
- for (var e = new T.Table("hmtx", []), r = 0; r < t.length; r += 1) {
3330
+ for (var e = new I.Table("hmtx", []), r = 0; r < t.length; r += 1) {
3331
3331
  var n = t.get(r), s = n.advanceWidth || 0, i = n.leftSideBearing || 0;
3332
3332
  e.fields.push({ name: "advanceWidth_" + r, type: "USHORT", value: s }), e.fields.push({ name: "leftSideBearing_" + r, type: "SHORT", value: i });
3333
3333
  }
@@ -3335,7 +3335,7 @@ function Vh(t) {
3335
3335
  }
3336
3336
  var au = { parse: Jh, make: Vh };
3337
3337
  function Xh(t) {
3338
- for (var e = new T.Table("ltag", [
3338
+ for (var e = new I.Table("ltag", [
3339
3339
  { name: "version", type: "ULONG", value: 1 },
3340
3340
  { name: "flags", type: "ULONG", value: 0 },
3341
3341
  { name: "numTags", type: "ULONG", value: t.length }
@@ -3346,7 +3346,7 @@ function Xh(t) {
3346
3346
  return e.fields.push({ name: "stringPool", type: "CHARARRAY", value: r }), e;
3347
3347
  }
3348
3348
  function qh(t, e) {
3349
- var r = new R.Parser(t, e), n = r.parseULong();
3349
+ var r = new B.Parser(t, e), n = r.parseULong();
3350
3350
  L.argument(n === 1, "Unsupported ltag table version."), r.skip("uLong", 1);
3351
3351
  for (var s = r.parseULong(), i = [], a = 0; a < s; a++) {
3352
3352
  for (var o = "", u = e + r.parseUShort(), l = r.parseUShort(), c = u; c < u + l; ++c)
@@ -3357,11 +3357,11 @@ function qh(t, e) {
3357
3357
  }
3358
3358
  var ou = { make: Xh, parse: qh };
3359
3359
  function _h(t, e) {
3360
- var r = {}, n = new R.Parser(t, e);
3360
+ var r = {}, n = new B.Parser(t, e);
3361
3361
  return r.version = n.parseVersion(), r.numGlyphs = n.parseUShort(), r.version === 1 && (r.maxPoints = n.parseUShort(), r.maxContours = n.parseUShort(), r.maxCompositePoints = n.parseUShort(), r.maxCompositeContours = n.parseUShort(), r.maxZones = n.parseUShort(), r.maxTwilightPoints = n.parseUShort(), r.maxStorage = n.parseUShort(), r.maxFunctionDefs = n.parseUShort(), r.maxInstructionDefs = n.parseUShort(), r.maxStackElements = n.parseUShort(), r.maxSizeOfInstructions = n.parseUShort(), r.maxComponentElements = n.parseUShort(), r.maxComponentDepth = n.parseUShort()), r;
3362
3362
  }
3363
3363
  function zh(t) {
3364
- return new T.Table("maxp", [
3364
+ return new I.Table("maxp", [
3365
3365
  { name: "version", type: "FIXED", value: 20480 },
3366
3366
  { name: "numGlyphs", type: "USHORT", value: t }
3367
3367
  ]);
@@ -4104,7 +4104,7 @@ function Au(t, e, r) {
4104
4104
  }
4105
4105
  }
4106
4106
  function rA(t, e, r) {
4107
- for (var n = {}, s = new R.Parser(t, e), i = s.parseUShort(), a = s.parseUShort(), o = s.offset + s.parseUShort(), u = 0; u < a; u++) {
4107
+ for (var n = {}, s = new B.Parser(t, e), i = s.parseUShort(), a = s.parseUShort(), o = s.offset + s.parseUShort(), u = 0; u < a; u++) {
4108
4108
  var l = s.parseUShort(), c = s.parseUShort(), A = s.parseUShort(), h = s.parseUShort(), f = lu[h] || h, p = s.parseUShort(), m = s.parseUShort(), S = $h(l, A, r), v = Au(l, c, A);
4109
4109
  if (v !== void 0 && S !== void 0) {
4110
4110
  var C = void 0;
@@ -4123,7 +4123,7 @@ function Tn(t) {
4123
4123
  return e;
4124
4124
  }
4125
4125
  function na(t, e, r, n, s, i) {
4126
- return new T.Record("NameRecord", [
4126
+ return new I.Record("NameRecord", [
4127
4127
  { name: "platformID", type: "USHORT", value: t },
4128
4128
  { name: "encodingID", type: "USHORT", value: e },
4129
4129
  { name: "languageID", type: "USHORT", value: r },
@@ -4165,41 +4165,41 @@ function sA(t, e) {
4165
4165
  r = n[h];
4166
4166
  var f = s[r];
4167
4167
  for (var p in f) {
4168
- var m = f[p], S = 1, v = u[p], C = jh[v], b = Au(S, C, v), O = w.MACSTRING(m, b);
4169
- O === void 0 && (S = 0, v = e.indexOf(p), v < 0 && (v = e.length, e.push(p)), C = 4, O = w.UTF16(m));
4170
- var D = sa(O, A);
4168
+ var m = f[p], S = 1, v = u[p], C = jh[v], b = Au(S, C, v), M = w.MACSTRING(m, b);
4169
+ M === void 0 && (S = 0, v = e.indexOf(p), v < 0 && (v = e.length, e.push(p)), C = 4, M = w.UTF16(m));
4170
+ var R = sa(M, A);
4171
4171
  c.push(na(
4172
4172
  S,
4173
4173
  C,
4174
4174
  v,
4175
4175
  r,
4176
- O.length,
4177
- D
4176
+ M.length,
4177
+ R
4178
4178
  ));
4179
4179
  var H = l[p];
4180
4180
  if (H !== void 0) {
4181
- var I = w.UTF16(m), F = sa(I, A);
4181
+ var D = w.UTF16(m), F = sa(D, A);
4182
4182
  c.push(na(
4183
4183
  3,
4184
4184
  1,
4185
4185
  H,
4186
4186
  r,
4187
- I.length,
4187
+ D.length,
4188
4188
  F
4189
4189
  ));
4190
4190
  }
4191
4191
  }
4192
4192
  }
4193
- c.sort(function(P, z) {
4194
- return P.platformID - z.platformID || P.encodingID - z.encodingID || P.languageID - z.languageID || P.nameID - z.nameID;
4193
+ c.sort(function(W, z) {
4194
+ return W.platformID - z.platformID || W.encodingID - z.encodingID || W.languageID - z.languageID || W.nameID - z.nameID;
4195
4195
  });
4196
- for (var Q = new T.Table("name", [
4196
+ for (var O = new I.Table("name", [
4197
4197
  { name: "format", type: "USHORT", value: 0 },
4198
4198
  { name: "count", type: "USHORT", value: c.length },
4199
4199
  { name: "stringOffset", type: "USHORT", value: 6 + c.length * 12 }
4200
- ]), _ = 0; _ < c.length; _++)
4201
- Q.fields.push({ name: "record_" + _, type: "RECORD", value: c[_] });
4202
- return Q.fields.push({ name: "strings", type: "LITERAL", value: A }), Q;
4200
+ ]), Y = 0; Y < c.length; Y++)
4201
+ O.fields.push({ name: "record_" + Y, type: "RECORD", value: c[Y] });
4202
+ return O.fields.push({ name: "strings", type: "LITERAL", value: A }), O;
4203
4203
  }
4204
4204
  var fu = { parse: rA, make: sA }, Us = [
4205
4205
  { begin: 0, end: 127 },
@@ -4458,14 +4458,14 @@ function iA(t) {
4458
4458
  return -1;
4459
4459
  }
4460
4460
  function aA(t, e) {
4461
- var r = {}, n = new R.Parser(t, e);
4461
+ var r = {}, n = new B.Parser(t, e);
4462
4462
  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 = [];
4463
4463
  for (var s = 0; s < 10; s++)
4464
4464
  r.panose[s] = n.parseByte();
4465
4465
  return r.ulUnicodeRange1 = n.parseULong(), r.ulUnicodeRange2 = n.parseULong(), r.ulUnicodeRange3 = n.parseULong(), r.ulUnicodeRange4 = n.parseULong(), r.achVendID = String.fromCharCode(n.parseByte(), n.parseByte(), n.parseByte(), n.parseByte()), r.fsSelection = n.parseUShort(), r.usFirstCharIndex = n.parseUShort(), r.usLastCharIndex = n.parseUShort(), r.sTypoAscender = n.parseShort(), r.sTypoDescender = n.parseShort(), r.sTypoLineGap = n.parseShort(), r.usWinAscent = n.parseUShort(), r.usWinDescent = n.parseUShort(), r.version >= 1 && (r.ulCodePageRange1 = n.parseULong(), r.ulCodePageRange2 = n.parseULong()), r.version >= 2 && (r.sxHeight = n.parseShort(), r.sCapHeight = n.parseShort(), r.usDefaultChar = n.parseUShort(), r.usBreakChar = n.parseUShort(), r.usMaxContent = n.parseUShort()), r;
4466
4466
  }
4467
4467
  function oA(t) {
4468
- return new T.Table("OS/2", [
4468
+ return new I.Table("OS/2", [
4469
4469
  { name: "version", type: "USHORT", value: 3 },
4470
4470
  { name: "xAvgCharWidth", type: "SHORT", value: 0 },
4471
4471
  { name: "usWeightClass", type: "USHORT", value: 0 },
@@ -4516,7 +4516,7 @@ function oA(t) {
4516
4516
  }
4517
4517
  var Os = { parse: aA, make: oA, unicodeRanges: Us, getUnicodeRange: iA };
4518
4518
  function uA(t, e) {
4519
- var r = {}, n = new R.Parser(t, e);
4519
+ var r = {}, n = new B.Parser(t, e);
4520
4520
  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) {
4521
4521
  case 1:
4522
4522
  r.names = Ct.slice();
@@ -4541,7 +4541,7 @@ function uA(t, e) {
4541
4541
  return r;
4542
4542
  }
4543
4543
  function lA() {
4544
- return new T.Table("post", [
4544
+ return new I.Table("post", [
4545
4545
  { name: "version", type: "FIXED", value: 196608 },
4546
4546
  { name: "italicAngle", type: "FIXED", value: 0 },
4547
4547
  { name: "underlinePosition", type: "FWORD", value: 0 },
@@ -4719,55 +4719,55 @@ function cA(t, e) {
4719
4719
  }
4720
4720
  var Kt = new Array(9);
4721
4721
  Kt[1] = function(e) {
4722
- return e.substFormat === 1 ? new T.Table("substitutionTable", [
4722
+ return e.substFormat === 1 ? new I.Table("substitutionTable", [
4723
4723
  { name: "substFormat", type: "USHORT", value: 1 },
4724
- { name: "coverage", type: "TABLE", value: new T.Coverage(e.coverage) },
4724
+ { name: "coverage", type: "TABLE", value: new I.Coverage(e.coverage) },
4725
4725
  { name: "deltaGlyphID", type: "USHORT", value: e.deltaGlyphId }
4726
- ]) : new T.Table("substitutionTable", [
4726
+ ]) : new I.Table("substitutionTable", [
4727
4727
  { name: "substFormat", type: "USHORT", value: 2 },
4728
- { name: "coverage", type: "TABLE", value: new T.Coverage(e.coverage) }
4729
- ].concat(T.ushortList("substitute", e.substitute)));
4728
+ { name: "coverage", type: "TABLE", value: new I.Coverage(e.coverage) }
4729
+ ].concat(I.ushortList("substitute", e.substitute)));
4730
4730
  };
4731
4731
  Kt[2] = function(e) {
4732
- return L.assert(e.substFormat === 1, "Lookup type 2 substFormat must be 1."), new T.Table("substitutionTable", [
4732
+ return L.assert(e.substFormat === 1, "Lookup type 2 substFormat must be 1."), new I.Table("substitutionTable", [
4733
4733
  { name: "substFormat", type: "USHORT", value: 1 },
4734
- { name: "coverage", type: "TABLE", value: new T.Coverage(e.coverage) }
4735
- ].concat(T.tableList("seqSet", e.sequences, function(r) {
4736
- return new T.Table("sequenceSetTable", T.ushortList("sequence", r));
4734
+ { name: "coverage", type: "TABLE", value: new I.Coverage(e.coverage) }
4735
+ ].concat(I.tableList("seqSet", e.sequences, function(r) {
4736
+ return new I.Table("sequenceSetTable", I.ushortList("sequence", r));
4737
4737
  })));
4738
4738
  };
4739
4739
  Kt[3] = function(e) {
4740
- return L.assert(e.substFormat === 1, "Lookup type 3 substFormat must be 1."), new T.Table("substitutionTable", [
4740
+ return L.assert(e.substFormat === 1, "Lookup type 3 substFormat must be 1."), new I.Table("substitutionTable", [
4741
4741
  { name: "substFormat", type: "USHORT", value: 1 },
4742
- { name: "coverage", type: "TABLE", value: new T.Coverage(e.coverage) }
4743
- ].concat(T.tableList("altSet", e.alternateSets, function(r) {
4744
- return new T.Table("alternateSetTable", T.ushortList("alternate", r));
4742
+ { name: "coverage", type: "TABLE", value: new I.Coverage(e.coverage) }
4743
+ ].concat(I.tableList("altSet", e.alternateSets, function(r) {
4744
+ return new I.Table("alternateSetTable", I.ushortList("alternate", r));
4745
4745
  })));
4746
4746
  };
4747
4747
  Kt[4] = function(e) {
4748
- return L.assert(e.substFormat === 1, "Lookup type 4 substFormat must be 1."), new T.Table("substitutionTable", [
4748
+ return L.assert(e.substFormat === 1, "Lookup type 4 substFormat must be 1."), new I.Table("substitutionTable", [
4749
4749
  { name: "substFormat", type: "USHORT", value: 1 },
4750
- { name: "coverage", type: "TABLE", value: new T.Coverage(e.coverage) }
4751
- ].concat(T.tableList("ligSet", e.ligatureSets, function(r) {
4752
- return new T.Table("ligatureSetTable", T.tableList("ligature", r, function(n) {
4753
- return new T.Table(
4750
+ { name: "coverage", type: "TABLE", value: new I.Coverage(e.coverage) }
4751
+ ].concat(I.tableList("ligSet", e.ligatureSets, function(r) {
4752
+ return new I.Table("ligatureSetTable", I.tableList("ligature", r, function(n) {
4753
+ return new I.Table(
4754
4754
  "ligatureTable",
4755
- [{ name: "ligGlyph", type: "USHORT", value: n.ligGlyph }].concat(T.ushortList("component", n.components, n.components.length + 1))
4755
+ [{ name: "ligGlyph", type: "USHORT", value: n.ligGlyph }].concat(I.ushortList("component", n.components, n.components.length + 1))
4756
4756
  );
4757
4757
  }));
4758
4758
  })));
4759
4759
  };
4760
4760
  Kt[6] = function(e) {
4761
4761
  if (e.substFormat === 1) {
4762
- var r = new T.Table("chainContextTable", [
4762
+ var r = new I.Table("chainContextTable", [
4763
4763
  { name: "substFormat", type: "USHORT", value: e.substFormat },
4764
- { name: "coverage", type: "TABLE", value: new T.Coverage(e.coverage) }
4765
- ].concat(T.tableList("chainRuleSet", e.chainRuleSets, function(i) {
4766
- return new T.Table("chainRuleSetTable", T.tableList("chainRule", i, function(a) {
4767
- var o = T.ushortList("backtrackGlyph", a.backtrack, a.backtrack.length).concat(T.ushortList("inputGlyph", a.input, a.input.length + 1)).concat(T.ushortList("lookaheadGlyph", a.lookahead, a.lookahead.length)).concat(T.ushortList("substitution", [], a.lookupRecords.length));
4764
+ { name: "coverage", type: "TABLE", value: new I.Coverage(e.coverage) }
4765
+ ].concat(I.tableList("chainRuleSet", e.chainRuleSets, function(i) {
4766
+ return new I.Table("chainRuleSetTable", I.tableList("chainRule", i, function(a) {
4767
+ var o = I.ushortList("backtrackGlyph", a.backtrack, a.backtrack.length).concat(I.ushortList("inputGlyph", a.input, a.input.length + 1)).concat(I.ushortList("lookaheadGlyph", a.lookahead, a.lookahead.length)).concat(I.ushortList("substitution", [], a.lookupRecords.length));
4768
4768
  return a.lookupRecords.forEach(function(u, l) {
4769
4769
  o = o.concat({ name: "sequenceIndex" + l, type: "USHORT", value: u.sequenceIndex }).concat({ name: "lookupListIndex" + l, type: "USHORT", value: u.lookupListIndex });
4770
- }), new T.Table("chainRuleTable", o);
4770
+ }), new I.Table("chainRuleTable", o);
4771
4771
  }));
4772
4772
  })));
4773
4773
  return r;
@@ -4778,30 +4778,30 @@ Kt[6] = function(e) {
4778
4778
  { name: "substFormat", type: "USHORT", value: e.substFormat }
4779
4779
  ];
4780
4780
  n.push({ name: "backtrackGlyphCount", type: "USHORT", value: e.backtrackCoverage.length }), e.backtrackCoverage.forEach(function(i, a) {
4781
- n.push({ name: "backtrackCoverage" + a, type: "TABLE", value: new T.Coverage(i) });
4781
+ n.push({ name: "backtrackCoverage" + a, type: "TABLE", value: new I.Coverage(i) });
4782
4782
  }), n.push({ name: "inputGlyphCount", type: "USHORT", value: e.inputCoverage.length }), e.inputCoverage.forEach(function(i, a) {
4783
- n.push({ name: "inputCoverage" + a, type: "TABLE", value: new T.Coverage(i) });
4783
+ n.push({ name: "inputCoverage" + a, type: "TABLE", value: new I.Coverage(i) });
4784
4784
  }), n.push({ name: "lookaheadGlyphCount", type: "USHORT", value: e.lookaheadCoverage.length }), e.lookaheadCoverage.forEach(function(i, a) {
4785
- n.push({ name: "lookaheadCoverage" + a, type: "TABLE", value: new T.Coverage(i) });
4785
+ n.push({ name: "lookaheadCoverage" + a, type: "TABLE", value: new I.Coverage(i) });
4786
4786
  }), n.push({ name: "substitutionCount", type: "USHORT", value: e.lookupRecords.length }), e.lookupRecords.forEach(function(i, a) {
4787
4787
  n = n.concat({ name: "sequenceIndex" + a, type: "USHORT", value: i.sequenceIndex }).concat({ name: "lookupListIndex" + a, type: "USHORT", value: i.lookupListIndex });
4788
4788
  });
4789
- var s = new T.Table("chainContextTable", n);
4789
+ var s = new I.Table("chainContextTable", n);
4790
4790
  return s;
4791
4791
  }
4792
4792
  L.assert(!1, "lookup type 6 format must be 1, 2 or 3.");
4793
4793
  };
4794
4794
  function hA(t) {
4795
- return new T.Table("GSUB", [
4795
+ return new I.Table("GSUB", [
4796
4796
  { name: "version", type: "ULONG", value: 65536 },
4797
- { name: "scripts", type: "TABLE", value: new T.ScriptList(t.scripts) },
4798
- { name: "features", type: "TABLE", value: new T.FeatureList(t.features) },
4799
- { name: "lookups", type: "TABLE", value: new T.LookupList(t.lookups, Kt) }
4797
+ { name: "scripts", type: "TABLE", value: new I.ScriptList(t.scripts) },
4798
+ { name: "features", type: "TABLE", value: new I.FeatureList(t.features) },
4799
+ { name: "lookups", type: "TABLE", value: new I.LookupList(t.lookups, Kt) }
4800
4800
  ]);
4801
4801
  }
4802
4802
  var du = { parse: cA, make: hA };
4803
4803
  function AA(t, e) {
4804
- var r = new R.Parser(t, e), n = r.parseULong();
4804
+ var r = new B.Parser(t, e), n = r.parseULong();
4805
4805
  L.argument(n === 1, "Unsupported META table version."), r.parseULong(), r.parseULong();
4806
4806
  for (var s = r.parseULong(), i = {}, a = 0; a < s; a++) {
4807
4807
  var o = r.parseTag(), u = r.parseULong(), l = r.parseULong(), c = Pt.UTF8(t, e + u, l);
@@ -4810,7 +4810,7 @@ function AA(t, e) {
4810
4810
  return i;
4811
4811
  }
4812
4812
  function fA(t) {
4813
- var e = Object.keys(t).length, r = "", n = 16 + e * 12, s = new T.Table("meta", [
4813
+ var e = Object.keys(t).length, r = "", n = 16 + e * 12, s = new I.Table("meta", [
4814
4814
  { name: "version", type: "ULONG", value: 1 },
4815
4815
  { name: "flags", type: "ULONG", value: 0 },
4816
4816
  { name: "offset", type: "ULONG", value: n },
@@ -4834,7 +4834,7 @@ function ri(t) {
4834
4834
  return e %= Math.pow(2, 32), e;
4835
4835
  }
4836
4836
  function aa(t, e, r, n) {
4837
- return new T.Record("Table Record", [
4837
+ return new I.Record("Table Record", [
4838
4838
  { name: "tag", type: "TAG", value: t !== void 0 ? t : "" },
4839
4839
  { name: "checkSum", type: "ULONG", value: e !== void 0 ? e : 0 },
4840
4840
  { name: "offset", type: "ULONG", value: r !== void 0 ? r : 0 },
@@ -4842,7 +4842,7 @@ function aa(t, e, r, n) {
4842
4842
  ]);
4843
4843
  }
4844
4844
  function mu(t) {
4845
- var e = new T.Table("sfnt", [
4845
+ var e = new I.Table("sfnt", [
4846
4846
  { name: "version", type: "TAG", value: "OTTO" },
4847
4847
  { name: "numTables", type: "USHORT", value: 0 },
4848
4848
  { name: "searchRange", type: "USHORT", value: 0 },
@@ -4914,7 +4914,7 @@ function dA(t) {
4914
4914
  minRightSideBearing: Math.min.apply(null, o)
4915
4915
  };
4916
4916
  b.ascender = t.ascender, b.descender = t.descender;
4917
- var O = su.make({
4917
+ var M = su.make({
4918
4918
  flags: 3,
4919
4919
  // 00000011 (baseline for font at y=0; left sidebearing point at x=0)
4920
4920
  unitsPerEm: t.unitsPerEm,
@@ -4924,7 +4924,7 @@ function dA(t) {
4924
4924
  yMax: b.yMax,
4925
4925
  lowestRecPPEM: 3,
4926
4926
  createdTimestamp: t.createdTimestamp
4927
- }), D = iu.make({
4927
+ }), R = iu.make({
4928
4928
  ascender: b.ascender,
4929
4929
  descender: b.descender,
4930
4930
  advanceWidthMax: b.advanceWidthMax,
@@ -4932,7 +4932,7 @@ function dA(t) {
4932
4932
  minRightSideBearing: b.minRightSideBearing,
4933
4933
  xMaxExtent: b.maxLeftSideBearing + (b.xMax - b.xMin),
4934
4934
  numberOfHMetrics: t.glyphs.length
4935
- }), H = uu.make(t.glyphs.length), I = Os.make(Object.assign({
4935
+ }), H = uu.make(t.glyphs.length), D = Os.make(Object.assign({
4936
4936
  xAvgCharWidth: Math.round(b.advanceWidthAvg),
4937
4937
  usFirstCharIndex: u,
4938
4938
  usLastCharIndex: l,
@@ -4957,22 +4957,22 @@ function dA(t) {
4957
4957
  // Use space as the default character, if available.
4958
4958
  usBreakChar: t.hasChar(" ") ? 32 : 0
4959
4959
  // Use space as the break character, if available.
4960
- }, t.tables.os2)), F = au.make(t.glyphs), Q = Jo.make(t.glyphs), _ = t.getEnglishName("fontFamily"), P = t.getEnglishName("fontSubfamily"), z = _ + " " + P, ae = t.getEnglishName("postScriptName");
4961
- ae || (ae = _.replace(/\s/g, "") + "-" + P);
4960
+ }, t.tables.os2)), F = au.make(t.glyphs), O = Jo.make(t.glyphs), Y = t.getEnglishName("fontFamily"), W = t.getEnglishName("fontSubfamily"), z = Y + " " + W, ae = t.getEnglishName("postScriptName");
4961
+ ae || (ae = Y.replace(/\s/g, "") + "-" + W);
4962
4962
  var j = {};
4963
4963
  for (var $ in t.names)
4964
4964
  j[$] = t.names[$];
4965
4965
  j.uniqueID || (j.uniqueID = { en: t.getEnglishName("manufacturer") + ":" + z }), j.postScriptName || (j.postScriptName = { en: ae }), j.preferredFamily || (j.preferredFamily = t.names.fontFamily), j.preferredSubfamily || (j.preferredSubfamily = t.names.fontSubfamily);
4966
- var ne = [], ee = fu.make(j, ne), Z = ne.length > 0 ? ou.make(ne) : void 0, oe = pu.make(), he = nu.make(t.glyphs, {
4966
+ var ne = [], ee = fu.make(j, ne), J = ne.length > 0 ? ou.make(ne) : void 0, oe = pu.make(), he = nu.make(t.glyphs, {
4967
4967
  version: t.getEnglishName("version"),
4968
4968
  fullName: z,
4969
- familyName: _,
4970
- weightName: P,
4969
+ familyName: Y,
4970
+ weightName: W,
4971
4971
  postScriptName: ae,
4972
4972
  unitsPerEm: t.unitsPerEm,
4973
4973
  fontBBox: [0, b.yMin, b.ascender, b.advanceWidthMax]
4974
- }), J = t.metas && Object.keys(t.metas).length > 0 ? gu.make(t.metas) : void 0, ue = [O, D, H, I, ee, Q, oe, he, F];
4975
- Z && ue.push(Z), t.tables.gsub && ue.push(du.make(t.tables.gsub)), J && ue.push(J);
4974
+ }), V = t.metas && Object.keys(t.metas).length > 0 ? gu.make(t.metas) : void 0, ue = [M, R, H, D, ee, O, oe, he, F];
4975
+ J && ue.push(J), t.tables.gsub && ue.push(du.make(t.tables.gsub)), V && ue.push(V);
4976
4976
  for (var _t = mu(ue), wn = _t.encode(), zt = ri(wn), jt = _t.fields, $t = !1, Nt = 0; Nt < jt.length; Nt += 1)
4977
4977
  if (jt[Nt].name === "head table") {
4978
4978
  jt[Nt].value.checkSumAdjustment = 2981146554 - zt, $t = !0;
@@ -5455,7 +5455,7 @@ function ca(t, e, r, n, s) {
5455
5455
  return (e & n) > 0 ? (i = t.parseByte(), (e & s) === 0 && (i = -i), i = r + i) : (e & s) > 0 ? i = r : i = r + t.parseShort(), i;
5456
5456
  }
5457
5457
  function Su(t, e, r) {
5458
- var n = new R.Parser(e, r);
5458
+ var n = new B.Parser(e, r);
5459
5459
  t.numberOfContours = n.parseShort(), t._xMin = n.parseShort(), t._yMin = n.parseShort(), t._xMax = n.parseShort(), t._yMax = n.parseShort();
5460
5460
  var s, i;
5461
5461
  if (t.numberOfContours > 0) {
@@ -5487,9 +5487,9 @@ function Su(t, e, r) {
5487
5487
  t.points = [];
5488
5488
  else {
5489
5489
  t.isComposite = !0, t.points = [], t.components = [];
5490
- for (var O = !0; O; ) {
5490
+ for (var M = !0; M; ) {
5491
5491
  s = n.parseUShort();
5492
- var D = {
5492
+ var R = {
5493
5493
  glyphIndex: n.parseUShort(),
5494
5494
  xScale: 1,
5495
5495
  scale01: 0,
@@ -5498,7 +5498,7 @@ function Su(t, e, r) {
5498
5498
  dx: 0,
5499
5499
  dy: 0
5500
5500
  };
5501
- (s & 1) > 0 ? (s & 2) > 0 ? (D.dx = n.parseShort(), D.dy = n.parseShort()) : D.matchedPoints = [n.parseUShort(), n.parseUShort()] : (s & 2) > 0 ? (D.dx = n.parseChar(), D.dy = n.parseChar()) : D.matchedPoints = [n.parseByte(), n.parseByte()], (s & 8) > 0 ? D.xScale = D.yScale = n.parseF2Dot14() : (s & 64) > 0 ? (D.xScale = n.parseF2Dot14(), D.yScale = n.parseF2Dot14()) : (s & 128) > 0 && (D.xScale = n.parseF2Dot14(), D.scale01 = n.parseF2Dot14(), D.scale10 = n.parseF2Dot14(), D.yScale = n.parseF2Dot14()), t.components.push(D), O = !!(s & 32);
5501
+ (s & 1) > 0 ? (s & 2) > 0 ? (R.dx = n.parseShort(), R.dy = n.parseShort()) : R.matchedPoints = [n.parseUShort(), n.parseUShort()] : (s & 2) > 0 ? (R.dx = n.parseChar(), R.dy = n.parseChar()) : R.matchedPoints = [n.parseByte(), n.parseByte()], (s & 8) > 0 ? R.xScale = R.yScale = n.parseF2Dot14() : (s & 64) > 0 ? (R.xScale = n.parseF2Dot14(), R.yScale = n.parseF2Dot14()) : (s & 128) > 0 && (R.xScale = n.parseF2Dot14(), R.scale01 = n.parseF2Dot14(), R.scale10 = n.parseF2Dot14(), R.yScale = n.parseF2Dot14()), t.components.push(R), M = !!(s & 32);
5502
5502
  }
5503
5503
  if (s & 256) {
5504
5504
  t.instructionLength = n.parseUShort(), t.instructions = [];
@@ -5982,8 +5982,8 @@ function UA(t) {
5982
5982
  function OA(t) {
5983
5983
  var e = t.stack, r = e.pop(), n = e.pop(), s = e.pop(), i = e.pop(), a = e.pop(), o = t.z0, u = t.z1, l = o[r], c = o[n], A = u[s], h = u[i], f = t.z2[a];
5984
5984
  exports.DEBUG && console.log("ISECT[], ", r, n, s, i, a);
5985
- var p = l.x, m = l.y, S = c.x, v = c.y, C = A.x, b = A.y, O = h.x, D = h.y, H = (p - S) * (b - D) - (m - v) * (C - O), I = p * v - m * S, F = C * D - b * O;
5986
- f.x = (I * (C - O) - F * (p - S)) / H, f.y = (I * (b - D) - F * (m - v)) / H;
5985
+ var p = l.x, m = l.y, S = c.x, v = c.y, C = A.x, b = A.y, M = h.x, R = h.y, H = (p - S) * (b - R) - (m - v) * (C - M), D = p * v - m * S, F = C * R - b * M;
5986
+ f.x = (D * (C - M) - F * (p - S)) / H, f.y = (D * (b - R) - F * (m - v)) / H;
5987
5987
  }
5988
5988
  function LA(t) {
5989
5989
  t.rp0 = t.stack.pop(), exports.DEBUG && console.log(t.step, "SRP0[]", t.rp0);
@@ -6542,7 +6542,7 @@ function ot(t, e) {
6542
6542
  }
6543
6543
  e.ip = r;
6544
6544
  }
6545
- function B(t, e, r, n, s, i) {
6545
+ function k(t, e, r, n, s, i) {
6546
6546
  var a = i.stack, o = t && a.pop(), u = a.pop(), l = i.rp0, c = i.z0[l], A = i.z1[u], h = i.minDis, f = i.fv, p = i.dpv, m, S, v, C;
6547
6547
  S = m = p.distance(A, c, !0, !0), v = S >= 0 ? 1 : -1, S = Math.abs(S), t && (C = i.cvt[o], n && Math.abs(S - C) < i.cvCutIn && (S = C)), r && S < h && (S = h), n && (S = i.round(S)), f.setRelative(A, c, v * S, p), f.touch(A), exports.DEBUG && console.log(
6548
6548
  i.step,
@@ -6963,133 +6963,133 @@ Cu = [
6963
6963
  /* 0xBF */
6964
6964
  ot.bind(void 0, 8),
6965
6965
  /* 0xC0 */
6966
- B.bind(void 0, 0, 0, 0, 0, 0),
6966
+ k.bind(void 0, 0, 0, 0, 0, 0),
6967
6967
  /* 0xC1 */
6968
- B.bind(void 0, 0, 0, 0, 0, 1),
6968
+ k.bind(void 0, 0, 0, 0, 0, 1),
6969
6969
  /* 0xC2 */
6970
- B.bind(void 0, 0, 0, 0, 0, 2),
6970
+ k.bind(void 0, 0, 0, 0, 0, 2),
6971
6971
  /* 0xC3 */
6972
- B.bind(void 0, 0, 0, 0, 0, 3),
6972
+ k.bind(void 0, 0, 0, 0, 0, 3),
6973
6973
  /* 0xC4 */
6974
- B.bind(void 0, 0, 0, 0, 1, 0),
6974
+ k.bind(void 0, 0, 0, 0, 1, 0),
6975
6975
  /* 0xC5 */
6976
- B.bind(void 0, 0, 0, 0, 1, 1),
6976
+ k.bind(void 0, 0, 0, 0, 1, 1),
6977
6977
  /* 0xC6 */
6978
- B.bind(void 0, 0, 0, 0, 1, 2),
6978
+ k.bind(void 0, 0, 0, 0, 1, 2),
6979
6979
  /* 0xC7 */
6980
- B.bind(void 0, 0, 0, 0, 1, 3),
6980
+ k.bind(void 0, 0, 0, 0, 1, 3),
6981
6981
  /* 0xC8 */
6982
- B.bind(void 0, 0, 0, 1, 0, 0),
6982
+ k.bind(void 0, 0, 0, 1, 0, 0),
6983
6983
  /* 0xC9 */
6984
- B.bind(void 0, 0, 0, 1, 0, 1),
6984
+ k.bind(void 0, 0, 0, 1, 0, 1),
6985
6985
  /* 0xCA */
6986
- B.bind(void 0, 0, 0, 1, 0, 2),
6986
+ k.bind(void 0, 0, 0, 1, 0, 2),
6987
6987
  /* 0xCB */
6988
- B.bind(void 0, 0, 0, 1, 0, 3),
6988
+ k.bind(void 0, 0, 0, 1, 0, 3),
6989
6989
  /* 0xCC */
6990
- B.bind(void 0, 0, 0, 1, 1, 0),
6990
+ k.bind(void 0, 0, 0, 1, 1, 0),
6991
6991
  /* 0xCD */
6992
- B.bind(void 0, 0, 0, 1, 1, 1),
6992
+ k.bind(void 0, 0, 0, 1, 1, 1),
6993
6993
  /* 0xCE */
6994
- B.bind(void 0, 0, 0, 1, 1, 2),
6994
+ k.bind(void 0, 0, 0, 1, 1, 2),
6995
6995
  /* 0xCF */
6996
- B.bind(void 0, 0, 0, 1, 1, 3),
6996
+ k.bind(void 0, 0, 0, 1, 1, 3),
6997
6997
  /* 0xD0 */
6998
- B.bind(void 0, 0, 1, 0, 0, 0),
6998
+ k.bind(void 0, 0, 1, 0, 0, 0),
6999
6999
  /* 0xD1 */
7000
- B.bind(void 0, 0, 1, 0, 0, 1),
7000
+ k.bind(void 0, 0, 1, 0, 0, 1),
7001
7001
  /* 0xD2 */
7002
- B.bind(void 0, 0, 1, 0, 0, 2),
7002
+ k.bind(void 0, 0, 1, 0, 0, 2),
7003
7003
  /* 0xD3 */
7004
- B.bind(void 0, 0, 1, 0, 0, 3),
7004
+ k.bind(void 0, 0, 1, 0, 0, 3),
7005
7005
  /* 0xD4 */
7006
- B.bind(void 0, 0, 1, 0, 1, 0),
7006
+ k.bind(void 0, 0, 1, 0, 1, 0),
7007
7007
  /* 0xD5 */
7008
- B.bind(void 0, 0, 1, 0, 1, 1),
7008
+ k.bind(void 0, 0, 1, 0, 1, 1),
7009
7009
  /* 0xD6 */
7010
- B.bind(void 0, 0, 1, 0, 1, 2),
7010
+ k.bind(void 0, 0, 1, 0, 1, 2),
7011
7011
  /* 0xD7 */
7012
- B.bind(void 0, 0, 1, 0, 1, 3),
7012
+ k.bind(void 0, 0, 1, 0, 1, 3),
7013
7013
  /* 0xD8 */
7014
- B.bind(void 0, 0, 1, 1, 0, 0),
7014
+ k.bind(void 0, 0, 1, 1, 0, 0),
7015
7015
  /* 0xD9 */
7016
- B.bind(void 0, 0, 1, 1, 0, 1),
7016
+ k.bind(void 0, 0, 1, 1, 0, 1),
7017
7017
  /* 0xDA */
7018
- B.bind(void 0, 0, 1, 1, 0, 2),
7018
+ k.bind(void 0, 0, 1, 1, 0, 2),
7019
7019
  /* 0xDB */
7020
- B.bind(void 0, 0, 1, 1, 0, 3),
7020
+ k.bind(void 0, 0, 1, 1, 0, 3),
7021
7021
  /* 0xDC */
7022
- B.bind(void 0, 0, 1, 1, 1, 0),
7022
+ k.bind(void 0, 0, 1, 1, 1, 0),
7023
7023
  /* 0xDD */
7024
- B.bind(void 0, 0, 1, 1, 1, 1),
7024
+ k.bind(void 0, 0, 1, 1, 1, 1),
7025
7025
  /* 0xDE */
7026
- B.bind(void 0, 0, 1, 1, 1, 2),
7026
+ k.bind(void 0, 0, 1, 1, 1, 2),
7027
7027
  /* 0xDF */
7028
- B.bind(void 0, 0, 1, 1, 1, 3),
7028
+ k.bind(void 0, 0, 1, 1, 1, 3),
7029
7029
  /* 0xE0 */
7030
- B.bind(void 0, 1, 0, 0, 0, 0),
7030
+ k.bind(void 0, 1, 0, 0, 0, 0),
7031
7031
  /* 0xE1 */
7032
- B.bind(void 0, 1, 0, 0, 0, 1),
7032
+ k.bind(void 0, 1, 0, 0, 0, 1),
7033
7033
  /* 0xE2 */
7034
- B.bind(void 0, 1, 0, 0, 0, 2),
7034
+ k.bind(void 0, 1, 0, 0, 0, 2),
7035
7035
  /* 0xE3 */
7036
- B.bind(void 0, 1, 0, 0, 0, 3),
7036
+ k.bind(void 0, 1, 0, 0, 0, 3),
7037
7037
  /* 0xE4 */
7038
- B.bind(void 0, 1, 0, 0, 1, 0),
7038
+ k.bind(void 0, 1, 0, 0, 1, 0),
7039
7039
  /* 0xE5 */
7040
- B.bind(void 0, 1, 0, 0, 1, 1),
7040
+ k.bind(void 0, 1, 0, 0, 1, 1),
7041
7041
  /* 0xE6 */
7042
- B.bind(void 0, 1, 0, 0, 1, 2),
7042
+ k.bind(void 0, 1, 0, 0, 1, 2),
7043
7043
  /* 0xE7 */
7044
- B.bind(void 0, 1, 0, 0, 1, 3),
7044
+ k.bind(void 0, 1, 0, 0, 1, 3),
7045
7045
  /* 0xE8 */
7046
- B.bind(void 0, 1, 0, 1, 0, 0),
7046
+ k.bind(void 0, 1, 0, 1, 0, 0),
7047
7047
  /* 0xE9 */
7048
- B.bind(void 0, 1, 0, 1, 0, 1),
7048
+ k.bind(void 0, 1, 0, 1, 0, 1),
7049
7049
  /* 0xEA */
7050
- B.bind(void 0, 1, 0, 1, 0, 2),
7050
+ k.bind(void 0, 1, 0, 1, 0, 2),
7051
7051
  /* 0xEB */
7052
- B.bind(void 0, 1, 0, 1, 0, 3),
7052
+ k.bind(void 0, 1, 0, 1, 0, 3),
7053
7053
  /* 0xEC */
7054
- B.bind(void 0, 1, 0, 1, 1, 0),
7054
+ k.bind(void 0, 1, 0, 1, 1, 0),
7055
7055
  /* 0xED */
7056
- B.bind(void 0, 1, 0, 1, 1, 1),
7056
+ k.bind(void 0, 1, 0, 1, 1, 1),
7057
7057
  /* 0xEE */
7058
- B.bind(void 0, 1, 0, 1, 1, 2),
7058
+ k.bind(void 0, 1, 0, 1, 1, 2),
7059
7059
  /* 0xEF */
7060
- B.bind(void 0, 1, 0, 1, 1, 3),
7060
+ k.bind(void 0, 1, 0, 1, 1, 3),
7061
7061
  /* 0xF0 */
7062
- B.bind(void 0, 1, 1, 0, 0, 0),
7062
+ k.bind(void 0, 1, 1, 0, 0, 0),
7063
7063
  /* 0xF1 */
7064
- B.bind(void 0, 1, 1, 0, 0, 1),
7064
+ k.bind(void 0, 1, 1, 0, 0, 1),
7065
7065
  /* 0xF2 */
7066
- B.bind(void 0, 1, 1, 0, 0, 2),
7066
+ k.bind(void 0, 1, 1, 0, 0, 2),
7067
7067
  /* 0xF3 */
7068
- B.bind(void 0, 1, 1, 0, 0, 3),
7068
+ k.bind(void 0, 1, 1, 0, 0, 3),
7069
7069
  /* 0xF4 */
7070
- B.bind(void 0, 1, 1, 0, 1, 0),
7070
+ k.bind(void 0, 1, 1, 0, 1, 0),
7071
7071
  /* 0xF5 */
7072
- B.bind(void 0, 1, 1, 0, 1, 1),
7072
+ k.bind(void 0, 1, 1, 0, 1, 1),
7073
7073
  /* 0xF6 */
7074
- B.bind(void 0, 1, 1, 0, 1, 2),
7074
+ k.bind(void 0, 1, 1, 0, 1, 2),
7075
7075
  /* 0xF7 */
7076
- B.bind(void 0, 1, 1, 0, 1, 3),
7076
+ k.bind(void 0, 1, 1, 0, 1, 3),
7077
7077
  /* 0xF8 */
7078
- B.bind(void 0, 1, 1, 1, 0, 0),
7078
+ k.bind(void 0, 1, 1, 1, 0, 0),
7079
7079
  /* 0xF9 */
7080
- B.bind(void 0, 1, 1, 1, 0, 1),
7080
+ k.bind(void 0, 1, 1, 1, 0, 1),
7081
7081
  /* 0xFA */
7082
- B.bind(void 0, 1, 1, 1, 0, 2),
7082
+ k.bind(void 0, 1, 1, 1, 0, 2),
7083
7083
  /* 0xFB */
7084
- B.bind(void 0, 1, 1, 1, 0, 3),
7084
+ k.bind(void 0, 1, 1, 1, 0, 3),
7085
7085
  /* 0xFC */
7086
- B.bind(void 0, 1, 1, 1, 1, 0),
7086
+ k.bind(void 0, 1, 1, 1, 1, 0),
7087
7087
  /* 0xFD */
7088
- B.bind(void 0, 1, 1, 1, 1, 1),
7088
+ k.bind(void 0, 1, 1, 1, 1, 1),
7089
7089
  /* 0xFE */
7090
- B.bind(void 0, 1, 1, 1, 1, 2),
7090
+ k.bind(void 0, 1, 1, 1, 1, 2),
7091
7091
  /* 0xFF */
7092
- B.bind(void 0, 1, 1, 1, 1, 3)
7092
+ k.bind(void 0, 1, 1, 1, 1, 3)
7093
7093
  ];
7094
7094
  function Yt(t) {
7095
7095
  this.char = t, this.state = {}, this.activeState = null;
@@ -7432,11 +7432,11 @@ function ip(t, e) {
7432
7432
  if (A)
7433
7433
  for (var f = 0; f < e.lookupRecords.length; f++)
7434
7434
  for (var p = e.lookupRecords[f], m = p.lookupListIndex, S = this.getLookupByIndex(m), v = 0; v < S.subtables.length; v++) {
7435
- var C = S.subtables[v], b = this.getLookupMethod(S, C), O = this.getSubstitutionType(S, C);
7436
- if (O === "12")
7437
- for (var D = 0; D < n.length; D++) {
7438
- var H = t.get(D), I = b(H);
7439
- I && h.push(I);
7435
+ var C = S.subtables[v], b = this.getLookupMethod(S, C), M = this.getSubstitutionType(S, C);
7436
+ if (M === "12")
7437
+ for (var R = 0; R < n.length; R++) {
7438
+ var H = t.get(R), D = b(H);
7439
+ D && h.push(D);
7440
7440
  }
7441
7441
  }
7442
7442
  return h;
@@ -7976,7 +7976,7 @@ Qe.prototype.getTextGlyphs = function(t) {
7976
7976
  }
7977
7977
  return e;
7978
7978
  };
7979
- function X(t) {
7979
+ function q(t) {
7980
7980
  t = t || {}, t.tables = t.tables || {}, t.empty || (tr(t.familyName, "When creating a new Font object, familyName is required."), tr(t.styleName, "When creating a new Font object, styleName is required."), tr(t.unitsPerEm, "When creating a new Font object, unitsPerEm is required."), tr(t.ascender, "When creating a new Font object, ascender is required."), tr(t.descender <= 0, "When creating a new Font object, negative descender value is required."), this.names = {
7981
7981
  fontFamily: { en: t.familyName || " " },
7982
7982
  fontSubfamily: { en: t.styleName || " " },
@@ -8008,17 +8008,17 @@ function X(t) {
8008
8008
  }
8009
8009
  });
8010
8010
  }
8011
- X.prototype.hasChar = function(t) {
8011
+ q.prototype.hasChar = function(t) {
8012
8012
  return this.encoding.charToGlyphIndex(t) !== null;
8013
8013
  };
8014
- X.prototype.charToGlyphIndex = function(t) {
8014
+ q.prototype.charToGlyphIndex = function(t) {
8015
8015
  return this.encoding.charToGlyphIndex(t);
8016
8016
  };
8017
- X.prototype.charToGlyph = function(t) {
8017
+ q.prototype.charToGlyph = function(t) {
8018
8018
  var e = this.charToGlyphIndex(t), r = this.glyphs.get(e);
8019
8019
  return r || (r = this.glyphs.get(0)), r;
8020
8020
  };
8021
- X.prototype.updateFeatures = function(t) {
8021
+ q.prototype.updateFeatures = function(t) {
8022
8022
  return this.defaultRenderOptions.features.map(function(e) {
8023
8023
  return e.script === "latn" ? {
8024
8024
  script: "latn",
@@ -8028,7 +8028,7 @@ X.prototype.updateFeatures = function(t) {
8028
8028
  } : e;
8029
8029
  });
8030
8030
  };
8031
- X.prototype.stringToGlyphs = function(t, e) {
8031
+ q.prototype.stringToGlyphs = function(t, e) {
8032
8032
  var r = this, n = new Qe(), s = function(A) {
8033
8033
  return r.charToGlyphIndex(A.char);
8034
8034
  };
@@ -8039,22 +8039,22 @@ X.prototype.stringToGlyphs = function(t, e) {
8039
8039
  u[c] = this.glyphs.get(a[c]) || l;
8040
8040
  return u;
8041
8041
  };
8042
- X.prototype.nameToGlyphIndex = function(t) {
8042
+ q.prototype.nameToGlyphIndex = function(t) {
8043
8043
  return this.glyphNames.nameToGlyphIndex(t);
8044
8044
  };
8045
- X.prototype.nameToGlyph = function(t) {
8045
+ q.prototype.nameToGlyph = function(t) {
8046
8046
  var e = this.nameToGlyphIndex(t), r = this.glyphs.get(e);
8047
8047
  return r || (r = this.glyphs.get(0)), r;
8048
8048
  };
8049
- X.prototype.glyphIndexToName = function(t) {
8049
+ q.prototype.glyphIndexToName = function(t) {
8050
8050
  return this.glyphNames.glyphIndexToName ? this.glyphNames.glyphIndexToName(t) : "";
8051
8051
  };
8052
- X.prototype.getKerningValue = function(t, e) {
8052
+ q.prototype.getKerningValue = function(t, e) {
8053
8053
  t = t.index || t, e = e.index || e;
8054
8054
  var r = this.position.defaultKerningTables;
8055
8055
  return r ? this.position.getKerningValue(r, t, e) : this.kerningPairs[t + "," + e] || 0;
8056
8056
  };
8057
- X.prototype.defaultRenderOptions = {
8057
+ q.prototype.defaultRenderOptions = {
8058
8058
  kerning: !0,
8059
8059
  features: [
8060
8060
  /**
@@ -8065,7 +8065,7 @@ X.prototype.defaultRenderOptions = {
8065
8065
  { script: "latn", tags: ["liga", "rlig"] }
8066
8066
  ]
8067
8067
  };
8068
- X.prototype.forEachGlyph = function(t, e, r, n, s, i) {
8068
+ q.prototype.forEachGlyph = function(t, e, r, n, s, i) {
8069
8069
  e = e !== void 0 ? e : 0, r = r !== void 0 ? r : 0, n = n !== void 0 ? n : 72, s = Object.assign({}, this.defaultRenderOptions, s);
8070
8070
  var a = 1 / this.unitsPerEm * n, o = this.stringToGlyphs(t, s), u;
8071
8071
  if (s.kerning) {
@@ -8082,43 +8082,43 @@ X.prototype.forEachGlyph = function(t, e, r, n, s, i) {
8082
8082
  }
8083
8083
  return e;
8084
8084
  };
8085
- X.prototype.getPath = function(t, e, r, n, s) {
8085
+ q.prototype.getPath = function(t, e, r, n, s) {
8086
8086
  var i = new ce();
8087
8087
  return this.forEachGlyph(t, e, r, n, s, function(a, o, u, l) {
8088
8088
  var c = a.getPath(o, u, l, s, this);
8089
8089
  i.extend(c);
8090
8090
  }), i;
8091
8091
  };
8092
- X.prototype.getPaths = function(t, e, r, n, s) {
8092
+ q.prototype.getPaths = function(t, e, r, n, s) {
8093
8093
  var i = [];
8094
8094
  return this.forEachGlyph(t, e, r, n, s, function(a, o, u, l) {
8095
8095
  var c = a.getPath(o, u, l, s, this);
8096
8096
  i.push(c);
8097
8097
  }), i;
8098
8098
  };
8099
- X.prototype.getAdvanceWidth = function(t, e, r) {
8099
+ q.prototype.getAdvanceWidth = function(t, e, r) {
8100
8100
  return this.forEachGlyph(t, 0, 0, e, r, function() {
8101
8101
  });
8102
8102
  };
8103
- X.prototype.draw = function(t, e, r, n, s, i) {
8103
+ q.prototype.draw = function(t, e, r, n, s, i) {
8104
8104
  this.getPath(e, r, n, s, i).draw(t);
8105
8105
  };
8106
- X.prototype.drawPoints = function(t, e, r, n, s, i) {
8106
+ q.prototype.drawPoints = function(t, e, r, n, s, i) {
8107
8107
  this.forEachGlyph(e, r, n, s, i, function(a, o, u, l) {
8108
8108
  a.drawPoints(t, o, u, l);
8109
8109
  });
8110
8110
  };
8111
- X.prototype.drawMetrics = function(t, e, r, n, s, i) {
8111
+ q.prototype.drawMetrics = function(t, e, r, n, s, i) {
8112
8112
  this.forEachGlyph(e, r, n, s, i, function(a, o, u, l) {
8113
8113
  a.drawMetrics(t, o, u, l);
8114
8114
  });
8115
8115
  };
8116
- X.prototype.getEnglishName = function(t) {
8116
+ q.prototype.getEnglishName = function(t) {
8117
8117
  var e = this.names[t];
8118
8118
  if (e)
8119
8119
  return e.en;
8120
8120
  };
8121
- X.prototype.validate = function() {
8121
+ q.prototype.validate = function() {
8122
8122
  var t = this;
8123
8123
  function e(n, s) {
8124
8124
  }
@@ -8128,18 +8128,18 @@ X.prototype.validate = function() {
8128
8128
  }
8129
8129
  r("fontFamily"), r("weightName"), r("manufacturer"), r("copyright"), r("version"), this.unitsPerEm > 0;
8130
8130
  };
8131
- X.prototype.toTables = function() {
8131
+ q.prototype.toTables = function() {
8132
8132
  return gA.fontToTable(this);
8133
8133
  };
8134
- X.prototype.toBuffer = function() {
8134
+ q.prototype.toBuffer = function() {
8135
8135
  return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."), this.toArrayBuffer();
8136
8136
  };
8137
- X.prototype.toArrayBuffer = function() {
8137
+ q.prototype.toArrayBuffer = function() {
8138
8138
  for (var t = this.toTables(), e = t.encode(), r = new ArrayBuffer(e.length), n = new Uint8Array(r), s = 0; s < e.length; s++)
8139
8139
  n[s] = e[s];
8140
8140
  return r;
8141
8141
  };
8142
- X.prototype.download = function(t) {
8142
+ q.prototype.download = function(t) {
8143
8143
  var e = this.getEnglishName("fontFamily"), r = this.getEnglishName("fontSubfamily");
8144
8144
  t = t || e.replace(/\s/g, "") + "-" + r + ".otf";
8145
8145
  var n = this.toArrayBuffer();
@@ -8156,7 +8156,7 @@ X.prototype.download = function(t) {
8156
8156
  u.writeFileSync(t, l);
8157
8157
  }
8158
8158
  };
8159
- X.prototype.fsSelectionValues = {
8159
+ q.prototype.fsSelectionValues = {
8160
8160
  ITALIC: 1,
8161
8161
  //1
8162
8162
  UNDERSCORE: 2,
@@ -8178,7 +8178,7 @@ X.prototype.fsSelectionValues = {
8178
8178
  OBLIQUE: 512
8179
8179
  //512
8180
8180
  };
8181
- X.prototype.usWidthClasses = {
8181
+ q.prototype.usWidthClasses = {
8182
8182
  ULTRA_CONDENSED: 1,
8183
8183
  EXTRA_CONDENSED: 2,
8184
8184
  CONDENSED: 3,
@@ -8189,7 +8189,7 @@ X.prototype.usWidthClasses = {
8189
8189
  EXTRA_EXPANDED: 8,
8190
8190
  ULTRA_EXPANDED: 9
8191
8191
  };
8192
- X.prototype.usWeightClasses = {
8192
+ q.prototype.usWeightClasses = {
8193
8193
  THIN: 100,
8194
8194
  EXTRA_LIGHT: 200,
8195
8195
  LIGHT: 300,
@@ -8224,7 +8224,7 @@ function Rp(t, e, r) {
8224
8224
  ];
8225
8225
  }
8226
8226
  function Dp(t, e, r) {
8227
- var n = {}, s = new R.Parser(t, e);
8227
+ var n = {}, s = new B.Parser(t, e);
8228
8228
  return n.tag = s.parseTag(), n.minValue = s.parseFixed(), n.defaultValue = s.parseFixed(), n.maxValue = s.parseFixed(), s.skip("uShort", 1), n.name = r[s.parseUShort()] || {}, n;
8229
8229
  }
8230
8230
  function Np(t, e, r, n) {
@@ -8242,14 +8242,14 @@ function Np(t, e, r, n) {
8242
8242
  return i;
8243
8243
  }
8244
8244
  function Up(t, e, r, n) {
8245
- var s = {}, i = new R.Parser(t, e);
8245
+ var s = {}, i = new B.Parser(t, e);
8246
8246
  s.name = n[i.parseUShort()] || {}, i.skip("uShort", 1), s.coordinates = {};
8247
8247
  for (var a = 0; a < r.length; ++a)
8248
8248
  s.coordinates[r[a].tag] = i.parseFixed();
8249
8249
  return s;
8250
8250
  }
8251
8251
  function Op(t, e) {
8252
- var r = new T.Table("fvar", [
8252
+ var r = new I.Table("fvar", [
8253
8253
  { name: "version", type: "ULONG", value: 65536 },
8254
8254
  { name: "offsetToData", type: "USHORT", value: 0 },
8255
8255
  { name: "countSizePairs", type: "USHORT", value: 2 },
@@ -8266,7 +8266,7 @@ function Op(t, e) {
8266
8266
  return r;
8267
8267
  }
8268
8268
  function Lp(t, e, r) {
8269
- var n = new R.Parser(t, e), s = n.parseULong();
8269
+ var n = new B.Parser(t, e), s = n.parseULong();
8270
8270
  L.argument(s === 65536, "Unsupported fvar table version.");
8271
8271
  var i = n.parseOffset16();
8272
8272
  n.skip("uShort", 1);
@@ -8414,11 +8414,11 @@ function Zp(t, e) {
8414
8414
  }
8415
8415
  var Jp = new Array(10);
8416
8416
  function Vp(t) {
8417
- return new T.Table("GPOS", [
8417
+ return new I.Table("GPOS", [
8418
8418
  { name: "version", type: "ULONG", value: 65536 },
8419
- { name: "scripts", type: "TABLE", value: new T.ScriptList(t.scripts) },
8420
- { name: "features", type: "TABLE", value: new T.FeatureList(t.features) },
8421
- { name: "lookups", type: "TABLE", value: new T.LookupList(t.lookups, Jp) }
8419
+ { name: "scripts", type: "TABLE", value: new I.ScriptList(t.scripts) },
8420
+ { name: "features", type: "TABLE", value: new I.FeatureList(t.features) },
8421
+ { name: "lookups", type: "TABLE", value: new I.LookupList(t.lookups, Jp) }
8422
8422
  ]);
8423
8423
  }
8424
8424
  var Xp = { parse: Zp, make: Vp };
@@ -8452,7 +8452,7 @@ function _p(t) {
8452
8452
  return e;
8453
8453
  }
8454
8454
  function zp(t, e) {
8455
- var r = new R.Parser(t, e), n = r.parseUShort();
8455
+ var r = new B.Parser(t, e), n = r.parseUShort();
8456
8456
  if (n === 0)
8457
8457
  return qp(r);
8458
8458
  if (n === 1)
@@ -8461,7 +8461,7 @@ function zp(t, e) {
8461
8461
  }
8462
8462
  var jp = { parse: zp };
8463
8463
  function $p(t, e, r, n) {
8464
- for (var s = new R.Parser(t, e), i = n ? s.parseUShort : s.parseULong, a = [], o = 0; o < r + 1; o += 1) {
8464
+ for (var s = new B.Parser(t, e), i = n ? s.parseUShort : s.parseULong, a = [], o = 0; o < r + 1; o += 1) {
8465
8465
  var u = i.call(s);
8466
8466
  n && (u *= 2), a.push(u);
8467
8467
  }
@@ -8486,14 +8486,14 @@ function rd(t, e) {
8486
8486
  }
8487
8487
  function ka(t, e) {
8488
8488
  for (var r = [], n = 12, s = 0; s < e; s += 1) {
8489
- var i = R.getTag(t, n), a = R.getULong(t, n + 4), o = R.getULong(t, n + 8), u = R.getULong(t, n + 12);
8489
+ var i = B.getTag(t, n), a = B.getULong(t, n + 4), o = B.getULong(t, n + 8), u = B.getULong(t, n + 12);
8490
8490
  r.push({ tag: i, checksum: a, offset: o, length: u, compression: !1 }), n += 16;
8491
8491
  }
8492
8492
  return r;
8493
8493
  }
8494
8494
  function nd(t, e) {
8495
8495
  for (var r = [], n = 44, s = 0; s < e; s += 1) {
8496
- var i = R.getTag(t, n), a = R.getULong(t, n + 4), o = R.getULong(t, n + 8), u = R.getULong(t, n + 12), l = void 0;
8496
+ var i = B.getTag(t, n), a = B.getULong(t, n + 4), o = B.getULong(t, n + 8), u = B.getULong(t, n + 12), l = void 0;
8497
8497
  o < u ? l = "WOFF" : l = !1, r.push({
8498
8498
  tag: i,
8499
8499
  offset: a,
@@ -8516,93 +8516,93 @@ function ie(t, e) {
8516
8516
  }
8517
8517
  function oi(t, e) {
8518
8518
  e = e ?? {};
8519
- var r, n, s = new X({ empty: !0 }), i = new DataView(t, 0), a, o = [], u = R.getTag(i, 0);
8519
+ var r, n, s = new q({ empty: !0 }), i = new DataView(t, 0), a, o = [], u = B.getTag(i, 0);
8520
8520
  if (u === "\0\0\0" || u === "true" || u === "typ1")
8521
- s.outlinesFormat = "truetype", a = R.getUShort(i, 4), o = ka(i, a);
8521
+ s.outlinesFormat = "truetype", a = B.getUShort(i, 4), o = ka(i, a);
8522
8522
  else if (u === "OTTO")
8523
- s.outlinesFormat = "cff", a = R.getUShort(i, 4), o = ka(i, a);
8523
+ s.outlinesFormat = "cff", a = B.getUShort(i, 4), o = ka(i, a);
8524
8524
  else if (u === "wOFF") {
8525
- var l = R.getTag(i, 4);
8525
+ var l = B.getTag(i, 4);
8526
8526
  if (l === "\0\0\0")
8527
8527
  s.outlinesFormat = "truetype";
8528
8528
  else if (l === "OTTO")
8529
8529
  s.outlinesFormat = "cff";
8530
8530
  else
8531
8531
  throw new Error("Unsupported OpenType flavor " + u);
8532
- a = R.getUShort(i, 12), o = nd(i, a);
8532
+ a = B.getUShort(i, 12), o = nd(i, a);
8533
8533
  } else
8534
8534
  throw new Error("Unsupported OpenType signature " + u);
8535
- for (var c, A, h, f, p, m, S, v, C, b, O, D, H = 0; H < a; H += 1) {
8536
- var I = o[H], F = void 0;
8537
- switch (I.tag) {
8535
+ for (var c, A, h, f, p, m, S, v, C, b, M, R, H = 0; H < a; H += 1) {
8536
+ var D = o[H], F = void 0;
8537
+ switch (D.tag) {
8538
8538
  case "cmap":
8539
- F = ie(i, I), s.tables.cmap = Jo.parse(F.data, F.offset), s.encoding = new Xo(s.tables.cmap);
8539
+ F = ie(i, D), s.tables.cmap = Jo.parse(F.data, F.offset), s.encoding = new Xo(s.tables.cmap);
8540
8540
  break;
8541
8541
  case "cvt ":
8542
- F = ie(i, I), D = new R.Parser(F.data, F.offset), s.tables.cvt = D.parseShortList(I.length / 2);
8542
+ F = ie(i, D), R = new B.Parser(F.data, F.offset), s.tables.cvt = R.parseShortList(D.length / 2);
8543
8543
  break;
8544
8544
  case "fvar":
8545
- A = I;
8545
+ A = D;
8546
8546
  break;
8547
8547
  case "fpgm":
8548
- F = ie(i, I), D = new R.Parser(F.data, F.offset), s.tables.fpgm = D.parseByteList(I.length);
8548
+ F = ie(i, D), R = new B.Parser(F.data, F.offset), s.tables.fpgm = R.parseByteList(D.length);
8549
8549
  break;
8550
8550
  case "head":
8551
- F = ie(i, I), s.tables.head = su.parse(F.data, F.offset), s.unitsPerEm = s.tables.head.unitsPerEm, r = s.tables.head.indexToLocFormat;
8551
+ F = ie(i, D), s.tables.head = su.parse(F.data, F.offset), s.unitsPerEm = s.tables.head.unitsPerEm, r = s.tables.head.indexToLocFormat;
8552
8552
  break;
8553
8553
  case "hhea":
8554
- F = ie(i, I), s.tables.hhea = iu.parse(F.data, F.offset), s.ascender = s.tables.hhea.ascender, s.descender = s.tables.hhea.descender, s.numberOfHMetrics = s.tables.hhea.numberOfHMetrics;
8554
+ F = ie(i, D), s.tables.hhea = iu.parse(F.data, F.offset), s.ascender = s.tables.hhea.ascender, s.descender = s.tables.hhea.descender, s.numberOfHMetrics = s.tables.hhea.numberOfHMetrics;
8555
8555
  break;
8556
8556
  case "hmtx":
8557
- S = I;
8557
+ S = D;
8558
8558
  break;
8559
8559
  case "ltag":
8560
- F = ie(i, I), n = ou.parse(F.data, F.offset);
8560
+ F = ie(i, D), n = ou.parse(F.data, F.offset);
8561
8561
  break;
8562
8562
  case "maxp":
8563
- F = ie(i, I), s.tables.maxp = uu.parse(F.data, F.offset), s.numGlyphs = s.tables.maxp.numGlyphs;
8563
+ F = ie(i, D), s.tables.maxp = uu.parse(F.data, F.offset), s.numGlyphs = s.tables.maxp.numGlyphs;
8564
8564
  break;
8565
8565
  case "name":
8566
- b = I;
8566
+ b = D;
8567
8567
  break;
8568
8568
  case "OS/2":
8569
- F = ie(i, I), s.tables.os2 = Os.parse(F.data, F.offset);
8569
+ F = ie(i, D), s.tables.os2 = Os.parse(F.data, F.offset);
8570
8570
  break;
8571
8571
  case "post":
8572
- F = ie(i, I), s.tables.post = pu.parse(F.data, F.offset), s.glyphNames = new ei(s.tables.post);
8572
+ F = ie(i, D), s.tables.post = pu.parse(F.data, F.offset), s.glyphNames = new ei(s.tables.post);
8573
8573
  break;
8574
8574
  case "prep":
8575
- F = ie(i, I), D = new R.Parser(F.data, F.offset), s.tables.prep = D.parseByteList(I.length);
8575
+ F = ie(i, D), R = new B.Parser(F.data, F.offset), s.tables.prep = R.parseByteList(D.length);
8576
8576
  break;
8577
8577
  case "glyf":
8578
- h = I;
8578
+ h = D;
8579
8579
  break;
8580
8580
  case "loca":
8581
- C = I;
8581
+ C = D;
8582
8582
  break;
8583
8583
  case "CFF ":
8584
- c = I;
8584
+ c = D;
8585
8585
  break;
8586
8586
  case "kern":
8587
- v = I;
8587
+ v = D;
8588
8588
  break;
8589
8589
  case "GDEF":
8590
- f = I;
8590
+ f = D;
8591
8591
  break;
8592
8592
  case "GPOS":
8593
- p = I;
8593
+ p = D;
8594
8594
  break;
8595
8595
  case "GSUB":
8596
- m = I;
8596
+ m = D;
8597
8597
  break;
8598
8598
  case "meta":
8599
- O = I;
8599
+ M = D;
8600
8600
  break;
8601
8601
  }
8602
8602
  }
8603
- var Q = ie(i, b);
8604
- if (s.tables.name = fu.parse(Q.data, Q.offset, n), s.names = s.tables.name, h && C) {
8605
- var _ = r === 0, P = ie(i, C), z = ed.parse(P.data, P.offset, s.numGlyphs, _), ae = ie(i, h);
8603
+ var O = ie(i, b);
8604
+ if (s.tables.name = fu.parse(O.data, O.offset, n), s.names = s.tables.name, h && C) {
8605
+ var Y = r === 0, W = ie(i, C), z = ed.parse(W.data, W.offset, s.numGlyphs, Y), ae = ie(i, h);
8606
8606
  s.glyphs = xu.parse(ae.data, ae.offset, z, s, e);
8607
8607
  } else if (c) {
8608
8608
  var j = ie(i, c);
@@ -8620,8 +8620,8 @@ function oi(t, e) {
8620
8620
  s.tables.gdef = Yp.parse(ee.data, ee.offset);
8621
8621
  }
8622
8622
  if (p) {
8623
- var Z = ie(i, p);
8624
- s.tables.gpos = Xp.parse(Z.data, Z.offset), s.position.init();
8623
+ var J = ie(i, p);
8624
+ s.tables.gpos = Xp.parse(J.data, J.offset), s.position.init();
8625
8625
  }
8626
8626
  if (m) {
8627
8627
  var oe = ie(i, m);
@@ -8631,9 +8631,9 @@ function oi(t, e) {
8631
8631
  var he = ie(i, A);
8632
8632
  s.tables.fvar = Mp.parse(he.data, he.offset, s.names);
8633
8633
  }
8634
- if (O) {
8635
- var J = ie(i, O);
8636
- s.tables.meta = gu.parse(J.data, J.offset), s.metas = s.tables.meta;
8634
+ if (M) {
8635
+ var V = ie(i, M);
8636
+ s.tables.meta = gu.parse(V.data, V.offset), s.metas = s.tables.meta;
8637
8637
  }
8638
8638
  return s;
8639
8639
  }
@@ -8667,11 +8667,11 @@ function id(t, e) {
8667
8667
  }
8668
8668
  var ad = /* @__PURE__ */ Object.freeze({
8669
8669
  __proto__: null,
8670
- Font: X,
8670
+ Font: q,
8671
8671
  Glyph: Ie,
8672
8672
  Path: ce,
8673
8673
  BoundingBox: nt,
8674
- _parse: R,
8674
+ _parse: B,
8675
8675
  parse: oi,
8676
8676
  load: sd,
8677
8677
  loadSync: id
@@ -8791,8 +8791,8 @@ const Ad = (t) => t === void 0 || t === "flat" ? { type: "flat" } : t === "curve
8791
8791
  ), v = new je(
8792
8792
  s - m,
8793
8793
  e + u
8794
- ), C = `M ${h.toSVGString()}`, b = `Q ${S.toSVGString()} ${f.toSVGString()}`, O = `Q ${v.toSVGString()} ${p.toSVGString()}`;
8795
- return `${C} ${b} ${O}`;
8794
+ ), C = `M ${h.toSVGString()}`, b = `Q ${S.toSVGString()} ${f.toSVGString()}`, M = `Q ${v.toSVGString()} ${p.toSVGString()}`;
8795
+ return `${C} ${b} ${M}`;
8796
8796
  }, dd = (t) => {
8797
8797
  const e = ["I", "l", "1"];
8798
8798
  for (const r of e) {
@@ -8823,7 +8823,7 @@ const Ad = (t) => t === void 0 || t === "flat" ? { type: "flat" } : t === "curve
8823
8823
  let l = u.y2 - u.y1;
8824
8824
  if (i > 0) {
8825
8825
  const p = Ln * i;
8826
- l -= p * 2;
8826
+ l += p * 2;
8827
8827
  }
8828
8828
  const A = l / e.height * e.physicalHeight, h = s[0] / A;
8829
8829
  return Ln * h;
@@ -9044,7 +9044,7 @@ const Ad = (t) => t === void 0 || t === "flat" ? { type: "flat" } : t === "curve
9044
9044
  v
9045
9045
  ]);
9046
9046
  };
9047
- let st = class {
9047
+ class st {
9048
9048
  static Translate = Hn;
9049
9049
  static Rotate = Pn;
9050
9050
  static RotateAxisAngle = Wn;
@@ -9372,8 +9372,8 @@ let st = class {
9372
9372
  w: i
9373
9373
  };
9374
9374
  }
9375
- };
9376
- const nn = /* @__PURE__ */ Symbol("changed"), Mt = /* @__PURE__ */ Symbol("classList"), Ne = /* @__PURE__ */ Symbol("CustomElements"), Lr = /* @__PURE__ */ Symbol("content"), Jn = /* @__PURE__ */ Symbol("dataset"), yt = /* @__PURE__ */ Symbol("doctype"), Gs = /* @__PURE__ */ Symbol("DOMParser"), U = /* @__PURE__ */ Symbol("end"), rr = /* @__PURE__ */ Symbol("EventTarget"), Jr = /* @__PURE__ */ Symbol("globals"), Ue = /* @__PURE__ */ Symbol("image"), Zt = /* @__PURE__ */ Symbol("mime"), ht = /* @__PURE__ */ Symbol("MutationObserver"), E = /* @__PURE__ */ Symbol("next"), Ou = /* @__PURE__ */ Symbol("ownerElement"), ge = /* @__PURE__ */ Symbol("prev"), Se = /* @__PURE__ */ Symbol("private"), Ot = /* @__PURE__ */ Symbol("sheet"), Ce = /* @__PURE__ */ Symbol("start"), Vn = /* @__PURE__ */ Symbol("style"), lr = /* @__PURE__ */ Symbol("upgrade"), q = /* @__PURE__ */ Symbol("value");
9375
+ }
9376
+ const nn = /* @__PURE__ */ Symbol("changed"), Mt = /* @__PURE__ */ Symbol("classList"), Ne = /* @__PURE__ */ Symbol("CustomElements"), Lr = /* @__PURE__ */ Symbol("content"), Jn = /* @__PURE__ */ Symbol("dataset"), yt = /* @__PURE__ */ Symbol("doctype"), Gs = /* @__PURE__ */ Symbol("DOMParser"), U = /* @__PURE__ */ Symbol("end"), rr = /* @__PURE__ */ Symbol("EventTarget"), Jr = /* @__PURE__ */ Symbol("globals"), Ue = /* @__PURE__ */ Symbol("image"), Zt = /* @__PURE__ */ Symbol("mime"), ht = /* @__PURE__ */ Symbol("MutationObserver"), E = /* @__PURE__ */ Symbol("next"), Ou = /* @__PURE__ */ Symbol("ownerElement"), ge = /* @__PURE__ */ Symbol("prev"), Se = /* @__PURE__ */ Symbol("private"), Ot = /* @__PURE__ */ Symbol("sheet"), Ce = /* @__PURE__ */ Symbol("start"), Vn = /* @__PURE__ */ Symbol("style"), lr = /* @__PURE__ */ Symbol("upgrade"), _ = /* @__PURE__ */ Symbol("value");
9377
9377
  var Xn;
9378
9378
  const Sd = /* @__PURE__ */ new Map([
9379
9379
  [0, 65533],
@@ -10086,19 +10086,19 @@ const Lt = /* @__PURE__ */ new Set([
10086
10086
  "button",
10087
10087
  "datalist",
10088
10088
  "textarea"
10089
- ]), V = /* @__PURE__ */ new Set(["p"]), Na = /* @__PURE__ */ new Set(["thead", "tbody"]), Ua = /* @__PURE__ */ new Set(["dd", "dt"]), Oa = /* @__PURE__ */ new Set(["rt", "rp"]), kd = /* @__PURE__ */ new Map([
10089
+ ]), X = /* @__PURE__ */ new Set(["p"]), Na = /* @__PURE__ */ new Set(["thead", "tbody"]), Ua = /* @__PURE__ */ new Set(["dd", "dt"]), Oa = /* @__PURE__ */ new Set(["rt", "rp"]), kd = /* @__PURE__ */ new Map([
10090
10090
  ["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])],
10091
10091
  ["th", /* @__PURE__ */ new Set(["th"])],
10092
10092
  ["td", /* @__PURE__ */ new Set(["thead", "th", "td"])],
10093
10093
  ["body", /* @__PURE__ */ new Set(["head", "link", "script"])],
10094
10094
  ["li", /* @__PURE__ */ new Set(["li"])],
10095
- ["p", V],
10096
- ["h1", V],
10097
- ["h2", V],
10098
- ["h3", V],
10099
- ["h4", V],
10100
- ["h5", V],
10101
- ["h6", V],
10095
+ ["p", X],
10096
+ ["h1", X],
10097
+ ["h2", X],
10098
+ ["h3", X],
10099
+ ["h4", X],
10100
+ ["h5", X],
10101
+ ["h6", X],
10102
10102
  ["select", Lt],
10103
10103
  ["input", Lt],
10104
10104
  ["output", Lt],
@@ -10109,27 +10109,27 @@ const Lt = /* @__PURE__ */ new Set([
10109
10109
  ["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
10110
10110
  ["dd", Ua],
10111
10111
  ["dt", Ua],
10112
- ["address", V],
10113
- ["article", V],
10114
- ["aside", V],
10115
- ["blockquote", V],
10116
- ["details", V],
10117
- ["div", V],
10118
- ["dl", V],
10119
- ["fieldset", V],
10120
- ["figcaption", V],
10121
- ["figure", V],
10122
- ["footer", V],
10123
- ["form", V],
10124
- ["header", V],
10125
- ["hr", V],
10126
- ["main", V],
10127
- ["nav", V],
10128
- ["ol", V],
10129
- ["pre", V],
10130
- ["section", V],
10131
- ["table", V],
10132
- ["ul", V],
10112
+ ["address", X],
10113
+ ["article", X],
10114
+ ["aside", X],
10115
+ ["blockquote", X],
10116
+ ["details", X],
10117
+ ["div", X],
10118
+ ["dl", X],
10119
+ ["fieldset", X],
10120
+ ["figcaption", X],
10121
+ ["figure", X],
10122
+ ["footer", X],
10123
+ ["form", X],
10124
+ ["header", X],
10125
+ ["hr", X],
10126
+ ["main", X],
10127
+ ["nav", X],
10128
+ ["ol", X],
10129
+ ["pre", X],
10130
+ ["section", X],
10131
+ ["table", X],
10132
+ ["ul", X],
10133
10133
  ["rt", Oa],
10134
10134
  ["rp", Oa],
10135
10135
  ["tbody", Na],
@@ -11188,7 +11188,7 @@ const { Parser: jg } = Ug, bt = (t, e, r) => {
11188
11188
  const n = t[U];
11189
11189
  return e.parentNode = t, _u(n[ge], e, n), r && e.nodeType === K && Qs(e), e;
11190
11190
  }, $g = (t, e, r, n, s) => {
11191
- r[q] = n, r.ownerElement = t, gn(e[ge], r, e), r.name === "class" && (t.className = n), s && vn(t, r.name, null, n);
11191
+ r[_] = n, r.ownerElement = t, gn(e[ge], r, e), r.name === "class" && (t.className = n), s && vn(t, r.name, null, n);
11192
11192
  }, tl = (t, e, r) => {
11193
11193
  const { active: n, registry: s } = t[Ne];
11194
11194
  let i = t, a = null, o = !1;
@@ -11269,10 +11269,10 @@ const { Parser: jg } = Ug, bt = (t, e, r) => {
11269
11269
  typeof s == "number" && s < 0 ? r[n] += mt : r.push(mt);
11270
11270
  }, nl = (t, e) => {
11271
11271
  e.push(ve, t.name);
11272
- const r = t[q].trim();
11272
+ const r = t[_].trim();
11273
11273
  r && e.push(r);
11274
11274
  }, sl = (t, e) => {
11275
- const r = t[q];
11275
+ const r = t[_];
11276
11276
  r.trim() && e.push(t.nodeType, r);
11277
11277
  }, e0 = (t, e) => {
11278
11278
  e.push(t.nodeType), rl(t, e);
@@ -11432,12 +11432,12 @@ const r0 = /* @__PURE__ */ new Set([
11432
11432
  "style",
11433
11433
  "truespeed"
11434
11434
  ]), Ks = (t, e) => {
11435
- const { [q]: r, name: n } = e;
11435
+ const { [_]: r, name: n } = e;
11436
11436
  e.ownerElement = t, gn(t, e, t[E]), n === "class" && (t.className = r), fi(t, n, null), vn(t, n, null, r);
11437
11437
  }, Za = (t, e) => {
11438
- const { [q]: r, name: n } = e;
11438
+ const { [_]: r, name: n } = e;
11439
11439
  Le(e[ge], e[E]), e.ownerElement = e[ge] = e[E] = null, n === "class" && (t[Mt] = null), fi(t, n, r), vn(t, n, r, null);
11440
- }, Y = {
11440
+ }, Z = {
11441
11441
  get(t, e) {
11442
11442
  return t.hasAttribute(e);
11443
11443
  },
@@ -11730,21 +11730,21 @@ const { replace: i0 } = "", a0 = /[<>&\xA0]/g, o0 = {
11730
11730
  }, u0 = (t) => o0[t], di = (t) => i0.call(t, a0, u0), l0 = /"/g;
11731
11731
  let Ir = class ul extends Dt {
11732
11732
  constructor(e, r, n = "") {
11733
- super(e, r, ve), this.ownerElement = null, this.name = It(r), this[q] = It(n), this[nn] = !1;
11733
+ super(e, r, ve), this.ownerElement = null, this.name = It(r), this[_] = It(n), this[nn] = !1;
11734
11734
  }
11735
11735
  get value() {
11736
- return this[q];
11736
+ return this[_];
11737
11737
  }
11738
11738
  set value(e) {
11739
- const { [q]: r, name: n, ownerElement: s } = this;
11740
- this[q] = It(e), this[nn] = !0, s && (fi(s, n, r), vn(s, n, r, this[q]));
11739
+ const { [_]: r, name: n, ownerElement: s } = this;
11740
+ this[_] = It(e), this[nn] = !0, s && (fi(s, n, r), vn(s, n, r, this[_]));
11741
11741
  }
11742
11742
  cloneNode() {
11743
- const { ownerDocument: e, name: r, [q]: n } = this;
11743
+ const { ownerDocument: e, name: r, [_]: n } = this;
11744
11744
  return new ul(e, r, n);
11745
11745
  }
11746
11746
  toString() {
11747
- const { name: e, [q]: r } = this;
11747
+ const { name: e, [_]: r } = this;
11748
11748
  if (r0.has(e) && !r)
11749
11749
  return vt(this) ? e : `${e}=""`;
11750
11750
  const n = (vt(this) ? r : di(r)).replace(l0, "&quot;");
@@ -11820,7 +11820,7 @@ const ll = ({ ownerDocument: t, parentNode: e }) => {
11820
11820
  };
11821
11821
  let Fr = class extends Dt {
11822
11822
  constructor(e, r, n, s) {
11823
- super(e, r, n), this[q] = It(s);
11823
+ super(e, r, n), this[_] = It(s);
11824
11824
  }
11825
11825
  // <Mixins>
11826
11826
  get isConnected() {
@@ -11857,10 +11857,10 @@ let Fr = class extends Dt {
11857
11857
  // CharacterData only
11858
11858
  /* c8 ignore start */
11859
11859
  get data() {
11860
- return this[q];
11860
+ return this[_];
11861
11861
  }
11862
11862
  set data(e) {
11863
- this[q] = It(e), cr(this, this.parentNode);
11863
+ this[_] = It(e), cr(this, this.parentNode);
11864
11864
  }
11865
11865
  get nodeValue() {
11866
11866
  return this.data;
@@ -11905,22 +11905,22 @@ let Fr = class extends Dt {
11905
11905
  super(e, "#cdatasection", _e, r);
11906
11906
  }
11907
11907
  cloneNode() {
11908
- const { ownerDocument: e, [q]: r } = this;
11908
+ const { ownerDocument: e, [_]: r } = this;
11909
11909
  return new dl(e, r);
11910
11910
  }
11911
11911
  toString() {
11912
- return `<![CDATA[${this[q]}]]>`;
11912
+ return `<![CDATA[${this[_]}]]>`;
11913
11913
  }
11914
11914
  }, yi = class gl extends Fr {
11915
11915
  constructor(e, r = "") {
11916
11916
  super(e, "#comment", rt, r);
11917
11917
  }
11918
11918
  cloneNode() {
11919
- const { ownerDocument: e, [q]: r } = this;
11919
+ const { ownerDocument: e, [_]: r } = this;
11920
11920
  return new gl(e, r);
11921
11921
  }
11922
11922
  toString() {
11923
- return `<!--${this[q]}-->`;
11923
+ return `<!--${this[_]}-->`;
11924
11924
  }
11925
11925
  };
11926
11926
  function ml(t) {
@@ -11938,11 +11938,11 @@ function c0() {
11938
11938
  }), qn;
11939
11939
  }
11940
11940
  var h0 = c0();
11941
- const W = /* @__PURE__ */ ml(h0);
11942
- var M;
11941
+ const Q = /* @__PURE__ */ ml(h0);
11942
+ var G;
11943
11943
  (function(t) {
11944
11944
  t.Attribute = "attribute", t.Pseudo = "pseudo", t.PseudoElement = "pseudo-element", t.Tag = "tag", t.Universal = "universal", t.Adjacent = "adjacent", t.Child = "child", t.Descendant = "descendant", t.Parent = "parent", t.Sibling = "sibling", t.ColumnCombinator = "column-combinator";
11945
- })(M || (M = {}));
11945
+ })(G || (G = {}));
11946
11946
  var Ae;
11947
11947
  (function(t) {
11948
11948
  t.Any = "any", t.Element = "element", t.End = "end", t.Equals = "equals", t.Exists = "exists", t.Hyphen = "hyphen", t.Not = "not", t.Start = "start";
@@ -11965,12 +11965,12 @@ const Xa = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/, A0 = /\\(
11965
11965
  ]);
11966
11966
  function d0(t) {
11967
11967
  switch (t.type) {
11968
- case M.Adjacent:
11969
- case M.Child:
11970
- case M.Descendant:
11971
- case M.Parent:
11972
- case M.Sibling:
11973
- case M.ColumnCombinator:
11968
+ case G.Adjacent:
11969
+ case G.Child:
11970
+ case G.Descendant:
11971
+ case G.Parent:
11972
+ case G.Sibling:
11973
+ case G.ColumnCombinator:
11974
11974
  return !0;
11975
11975
  default:
11976
11976
  return !1;
@@ -12036,7 +12036,7 @@ function Sl(t, e, r) {
12036
12036
  throw new Error("Did not expect successive traversals.");
12037
12037
  }
12038
12038
  function l(h) {
12039
- if (n.length > 0 && n[n.length - 1].type === M.Descendant) {
12039
+ if (n.length > 0 && n[n.length - 1].type === G.Descendant) {
12040
12040
  n[n.length - 1].type = h;
12041
12041
  return;
12042
12042
  }
@@ -12044,7 +12044,7 @@ function Sl(t, e, r) {
12044
12044
  }
12045
12045
  function c(h, f) {
12046
12046
  n.push({
12047
- type: M.Attribute,
12047
+ type: G.Attribute,
12048
12048
  name: h,
12049
12049
  action: f,
12050
12050
  value: s(1),
@@ -12053,7 +12053,7 @@ function Sl(t, e, r) {
12053
12053
  });
12054
12054
  }
12055
12055
  function A() {
12056
- if (n.length && n[n.length - 1].type === M.Descendant && n.pop(), n.length === 0)
12056
+ if (n.length && n[n.length - 1].type === G.Descendant && n.pop(), n.length === 0)
12057
12057
  throw new Error("Empty sub-selector");
12058
12058
  t.push(n);
12059
12059
  }
@@ -12068,24 +12068,24 @@ function Sl(t, e, r) {
12068
12068
  case 10:
12069
12069
  case 12:
12070
12070
  case 13: {
12071
- (n.length === 0 || n[0].type !== M.Descendant) && (u(), n.push({ type: M.Descendant })), i(1);
12071
+ (n.length === 0 || n[0].type !== G.Descendant) && (u(), n.push({ type: G.Descendant })), i(1);
12072
12072
  break;
12073
12073
  }
12074
12074
  // Traversals
12075
12075
  case 62: {
12076
- l(M.Child), i(1);
12076
+ l(G.Child), i(1);
12077
12077
  break;
12078
12078
  }
12079
12079
  case 60: {
12080
- l(M.Parent), i(1);
12080
+ l(G.Parent), i(1);
12081
12081
  break;
12082
12082
  }
12083
12083
  case 126: {
12084
- l(M.Sibling), i(1);
12084
+ l(G.Sibling), i(1);
12085
12085
  break;
12086
12086
  }
12087
12087
  case 43: {
12088
- l(M.Adjacent), i(1);
12088
+ l(G.Adjacent), i(1);
12089
12089
  break;
12090
12090
  }
12091
12091
  // Special attribute selectors: .class, #id
@@ -12111,28 +12111,28 @@ function Sl(t, e, r) {
12111
12111
  let v = "", C = null;
12112
12112
  if (m !== "exists") {
12113
12113
  if (_n(e.charCodeAt(r))) {
12114
- const D = e.charCodeAt(r);
12114
+ const R = e.charCodeAt(r);
12115
12115
  let H = r + 1;
12116
- for (; H < e.length && (e.charCodeAt(H) !== D || o(H)); )
12116
+ for (; H < e.length && (e.charCodeAt(H) !== R || o(H)); )
12117
12117
  H += 1;
12118
- if (e.charCodeAt(H) !== D)
12118
+ if (e.charCodeAt(H) !== R)
12119
12119
  throw new Error("Attribute value didn't end");
12120
12120
  v = nr(e.slice(r + 1, H)), r = H + 1;
12121
12121
  } else {
12122
- const D = r;
12122
+ const R = r;
12123
12123
  for (; r < e.length && (!qa(e.charCodeAt(r)) && e.charCodeAt(r) !== 93 || o(r)); )
12124
12124
  r += 1;
12125
- v = nr(e.slice(D, r));
12125
+ v = nr(e.slice(R, r));
12126
12126
  }
12127
12127
  i(0);
12128
- const O = e.charCodeAt(r) | 32;
12129
- O === 115 ? (C = !1, i(1)) : O === 105 && (C = !0, i(1));
12128
+ const M = e.charCodeAt(r) | 32;
12129
+ M === 115 ? (C = !1, i(1)) : M === 105 && (C = !0, i(1));
12130
12130
  }
12131
12131
  if (e.charCodeAt(r) !== 93)
12132
12132
  throw new Error("Attribute selector didn't terminate");
12133
12133
  r += 1;
12134
12134
  const b = {
12135
- type: M.Attribute,
12135
+ type: G.Attribute,
12136
12136
  name: f,
12137
12137
  action: m,
12138
12138
  value: v,
@@ -12145,7 +12145,7 @@ function Sl(t, e, r) {
12145
12145
  case 58: {
12146
12146
  if (e.charCodeAt(r + 1) === 58) {
12147
12147
  n.push({
12148
- type: M.PseudoElement,
12148
+ type: G.PseudoElement,
12149
12149
  name: s(2).toLowerCase(),
12150
12150
  data: e.charCodeAt(r) === 40 ? a() : null
12151
12151
  });
@@ -12167,7 +12167,7 @@ function Sl(t, e, r) {
12167
12167
  }
12168
12168
  p = nr(p);
12169
12169
  }
12170
- n.push({ type: M.Pseudo, name: f, data: p });
12170
+ n.push({ type: G.Pseudo, name: f, data: p });
12171
12171
  break;
12172
12172
  }
12173
12173
  case 44: {
@@ -12187,24 +12187,24 @@ function Sl(t, e, r) {
12187
12187
  r += 1, p = "*";
12188
12188
  else if (h === 124) {
12189
12189
  if (p = "", e.charCodeAt(r + 1) === 124) {
12190
- l(M.ColumnCombinator), i(2);
12190
+ l(G.ColumnCombinator), i(2);
12191
12191
  break;
12192
12192
  }
12193
12193
  } else if (Xa.test(e.slice(r)))
12194
12194
  p = s(0);
12195
12195
  else
12196
12196
  break e;
12197
- e.charCodeAt(r) === 124 && e.charCodeAt(r + 1) !== 124 && (f = p, e.charCodeAt(r + 1) === 42 ? (p = "*", r += 2) : p = s(1)), n.push(p === "*" ? { type: M.Universal, namespace: f } : { type: M.Tag, name: p, namespace: f });
12197
+ e.charCodeAt(r) === 124 && e.charCodeAt(r + 1) !== 124 && (f = p, e.charCodeAt(r + 1) === 42 ? (p = "*", r += 2) : p = s(1)), n.push(p === "*" ? { type: G.Universal, namespace: f } : { type: G.Tag, name: p, namespace: f });
12198
12198
  }
12199
12199
  }
12200
12200
  }
12201
12201
  return A(), r;
12202
12202
  }
12203
12203
  const yl = /* @__PURE__ */ new Map([
12204
- [M.Universal, 50],
12205
- [M.Tag, 30],
12206
- [M.Attribute, 1],
12207
- [M.Pseudo, 0]
12204
+ [G.Universal, 50],
12205
+ [G.Tag, 30],
12206
+ [G.Attribute, 1],
12207
+ [G.Pseudo, 0]
12208
12208
  ]);
12209
12209
  function bi(t) {
12210
12210
  return !yl.has(t.type);
@@ -12231,7 +12231,7 @@ function S0(t) {
12231
12231
  function bl(t) {
12232
12232
  var e, r;
12233
12233
  let n = (e = yl.get(t.type)) !== null && e !== void 0 ? e : -1;
12234
- return t.type === M.Attribute ? (n = (r = v0.get(t.action)) !== null && r !== void 0 ? r : 4, t.action === Ae.Equals && t.name === "id" && (n = 9), t.ignoreCase && (n >>= 1)) : t.type === M.Pseudo && (t.data ? t.name === "has" || t.name === "contains" ? n = 0 : Array.isArray(t.data) ? (n = Math.min(...t.data.map((s) => Math.min(...s.map(bl)))), n < 0 && (n = 0)) : n = 2 : n = 3), n;
12234
+ return t.type === G.Attribute ? (n = (r = v0.get(t.action)) !== null && r !== void 0 ? r : 4, t.action === Ae.Equals && t.name === "id" && (n = 9), t.ignoreCase && (n >>= 1)) : t.type === G.Pseudo && (t.data ? t.name === "has" || t.name === "contains" ? n = 0 : Array.isArray(t.data) ? (n = Math.min(...t.data.map((s) => Math.min(...s.map(bl)))), n < 0 && (n = 0)) : n = 2 : n = 3), n;
12235
12235
  }
12236
12236
  const y0 = /[-[\]{}()*+?.,\\^$|#\s]/g;
12237
12237
  function _a(t) {
@@ -12312,7 +12312,7 @@ const x0 = {
12312
12312
  element(t, e, r) {
12313
12313
  const { adapter: n } = r, { name: s, value: i } = e;
12314
12314
  if (/\s/.test(i))
12315
- return W.falseFunc;
12315
+ return Q.falseFunc;
12316
12316
  const a = new RegExp(`(?:^|\\s)${_a(i)}(?:$|\\s)`, xt(e, r) ? "i" : "");
12317
12317
  return function(u) {
12318
12318
  const l = n.getAttributeValue(u, s);
@@ -12326,7 +12326,7 @@ const x0 = {
12326
12326
  const { adapter: n } = r, { name: s } = e;
12327
12327
  let { value: i } = e;
12328
12328
  const a = i.length;
12329
- return a === 0 ? W.falseFunc : xt(e, r) ? (i = i.toLowerCase(), (o) => {
12329
+ return a === 0 ? Q.falseFunc : xt(e, r) ? (i = i.toLowerCase(), (o) => {
12330
12330
  const u = n.getAttributeValue(o, s);
12331
12331
  return u != null && u.length >= a && u.substr(0, a).toLowerCase() === i && t(o);
12332
12332
  }) : (o) => {
@@ -12338,7 +12338,7 @@ const x0 = {
12338
12338
  const { adapter: n } = r, { name: s } = e;
12339
12339
  let { value: i } = e;
12340
12340
  const a = -i.length;
12341
- return a === 0 ? W.falseFunc : xt(e, r) ? (i = i.toLowerCase(), (o) => {
12341
+ return a === 0 ? Q.falseFunc : xt(e, r) ? (i = i.toLowerCase(), (o) => {
12342
12342
  var u;
12343
12343
  return ((u = n.getAttributeValue(o, s)) === null || u === void 0 ? void 0 : u.substr(a).toLowerCase()) === i && t(o);
12344
12344
  }) : (o) => {
@@ -12349,7 +12349,7 @@ const x0 = {
12349
12349
  any(t, e, r) {
12350
12350
  const { adapter: n } = r, { name: s, value: i } = e;
12351
12351
  if (i === "")
12352
- return W.falseFunc;
12352
+ return Q.falseFunc;
12353
12353
  if (xt(e, r)) {
12354
12354
  const a = new RegExp(_a(i), "i");
12355
12355
  return function(u) {
@@ -12398,13 +12398,13 @@ function E0(t) {
12398
12398
  function I0(t) {
12399
12399
  const e = t[0], r = t[1] - 1;
12400
12400
  if (r < 0 && e <= 0)
12401
- return W.falseFunc;
12401
+ return Q.falseFunc;
12402
12402
  if (e === -1)
12403
12403
  return (i) => i <= r;
12404
12404
  if (e === 0)
12405
12405
  return (i) => i === r;
12406
12406
  if (e === 1)
12407
- return r < 0 ? W.trueFunc : (i) => i >= r;
12407
+ return r < 0 ? Q.trueFunc : (i) => i >= r;
12408
12408
  const n = Math.abs(e), s = (r % n + n) % n;
12409
12409
  return e > 1 ? (i) => i >= r && i % n === s : (i) => i <= r && i % n === s;
12410
12410
  }
@@ -12432,7 +12432,7 @@ const Ys = {
12432
12432
  // Location specific methods
12433
12433
  "nth-child"(t, e, { adapter: r, equals: n }) {
12434
12434
  const s = Gr(e);
12435
- return s === W.falseFunc ? W.falseFunc : s === W.trueFunc ? Hr(t, r) : function(a) {
12435
+ return s === Q.falseFunc ? Q.falseFunc : s === Q.trueFunc ? Hr(t, r) : function(a) {
12436
12436
  const o = r.getSiblings(a);
12437
12437
  let u = 0;
12438
12438
  for (let l = 0; l < o.length && !n(a, o[l]); l++)
@@ -12442,7 +12442,7 @@ const Ys = {
12442
12442
  },
12443
12443
  "nth-last-child"(t, e, { adapter: r, equals: n }) {
12444
12444
  const s = Gr(e);
12445
- return s === W.falseFunc ? W.falseFunc : s === W.trueFunc ? Hr(t, r) : function(a) {
12445
+ return s === Q.falseFunc ? Q.falseFunc : s === Q.trueFunc ? Hr(t, r) : function(a) {
12446
12446
  const o = r.getSiblings(a);
12447
12447
  let u = 0;
12448
12448
  for (let l = o.length - 1; l >= 0 && !n(a, o[l]); l--)
@@ -12452,7 +12452,7 @@ const Ys = {
12452
12452
  },
12453
12453
  "nth-of-type"(t, e, { adapter: r, equals: n }) {
12454
12454
  const s = Gr(e);
12455
- return s === W.falseFunc ? W.falseFunc : s === W.trueFunc ? Hr(t, r) : function(a) {
12455
+ return s === Q.falseFunc ? Q.falseFunc : s === Q.trueFunc ? Hr(t, r) : function(a) {
12456
12456
  const o = r.getSiblings(a);
12457
12457
  let u = 0;
12458
12458
  for (let l = 0; l < o.length; l++) {
@@ -12466,7 +12466,7 @@ const Ys = {
12466
12466
  },
12467
12467
  "nth-last-of-type"(t, e, { adapter: r, equals: n }) {
12468
12468
  const s = Gr(e);
12469
- return s === W.falseFunc ? W.falseFunc : s === W.trueFunc ? Hr(t, r) : function(a) {
12469
+ return s === Q.falseFunc ? Q.falseFunc : s === Q.trueFunc ? Hr(t, r) : function(a) {
12470
12470
  const o = r.getSiblings(a);
12471
12471
  let u = 0;
12472
12472
  for (let l = o.length - 1; l >= 0; l--) {
@@ -12496,7 +12496,7 @@ const Ys = {
12496
12496
  function zn(t) {
12497
12497
  return function(r, n, { adapter: s }) {
12498
12498
  const i = s[t];
12499
- return typeof i != "function" ? W.falseFunc : function(o) {
12499
+ return typeof i != "function" ? Q.falseFunc : function(o) {
12500
12500
  return i(o) && r(o);
12501
12501
  };
12502
12502
  };
@@ -12593,7 +12593,7 @@ const F0 = {
12593
12593
  text: "input:is(:not([type!='']), [type=text])"
12594
12594
  }, xl = {};
12595
12595
  function Cl(t, e) {
12596
- return t === W.falseFunc ? W.falseFunc : (r) => e.isTag(r) && t(r);
12596
+ return t === Q.falseFunc ? Q.falseFunc : (r) => e.isTag(r) && t(r);
12597
12597
  }
12598
12598
  function T0(t, e) {
12599
12599
  const r = e.getSiblings(t);
@@ -12616,7 +12616,7 @@ function Zs(t) {
12616
12616
  }
12617
12617
  const jn = (t, e, r, n, s) => {
12618
12618
  const i = s(e, Zs(r), n);
12619
- return i === W.trueFunc ? t : i === W.falseFunc ? W.falseFunc : (a) => i(a) && t(a);
12619
+ return i === Q.trueFunc ? t : i === Q.falseFunc ? Q.falseFunc : (a) => i(a) && t(a);
12620
12620
  }, $n = {
12621
12621
  is: jn,
12622
12622
  /**
@@ -12626,7 +12626,7 @@ const jn = (t, e, r, n, s) => {
12626
12626
  where: jn,
12627
12627
  not(t, e, r, n, s) {
12628
12628
  const i = s(e, Zs(r), n);
12629
- return i === W.falseFunc ? t : i === W.trueFunc ? W.falseFunc : (a) => !i(a) && t(a);
12629
+ return i === Q.falseFunc ? t : i === Q.trueFunc ? Q.falseFunc : (a) => !i(a) && t(a);
12630
12630
  },
12631
12631
  has(t, e, r, n, s) {
12632
12632
  const { adapter: i } = r, a = Zs(r);
@@ -12635,10 +12635,10 @@ const jn = (t, e, r, n, s) => {
12635
12635
  // Used as a placeholder. Will be replaced with the actual element.
12636
12636
  [xl]
12637
12637
  ) : void 0, u = s(e, a, o);
12638
- if (u === W.falseFunc)
12639
- return W.falseFunc;
12638
+ if (u === Q.falseFunc)
12639
+ return Q.falseFunc;
12640
12640
  const l = Cl(u, i);
12641
- if (o && u !== W.trueFunc) {
12641
+ if (o && u !== Q.trueFunc) {
12642
12642
  const { shouldTestNextSiblings: c = !1 } = u;
12643
12643
  return (A) => {
12644
12644
  if (!t(A))
@@ -12683,19 +12683,19 @@ function es(t, e) {
12683
12683
  function B0(t, e, r, n, s) {
12684
12684
  const { adapter: i, equals: a } = r;
12685
12685
  switch (e.type) {
12686
- case M.PseudoElement:
12686
+ case G.PseudoElement:
12687
12687
  throw new Error("Pseudo-elements are not supported by css-select");
12688
- case M.ColumnCombinator:
12688
+ case G.ColumnCombinator:
12689
12689
  throw new Error("Column combinators are not yet supported by css-select");
12690
- case M.Attribute: {
12690
+ case G.Attribute: {
12691
12691
  if (e.namespace != null)
12692
12692
  throw new Error("Namespaced attributes are not yet supported by css-select");
12693
12693
  return (!r.xmlMode || r.lowerCaseAttributeNames) && (e.name = e.name.toLowerCase()), x0[e.action](t, e, r);
12694
12694
  }
12695
- case M.Pseudo:
12695
+ case G.Pseudo:
12696
12696
  return k0(t, e, r, n, s);
12697
12697
  // Tags
12698
- case M.Tag: {
12698
+ case G.Tag: {
12699
12699
  if (e.namespace != null)
12700
12700
  throw new Error("Namespaced tag names are not yet supported by css-select");
12701
12701
  let { name: o } = e;
@@ -12704,7 +12704,7 @@ function B0(t, e, r, n, s) {
12704
12704
  };
12705
12705
  }
12706
12706
  // Traversal
12707
- case M.Descendant: {
12707
+ case G.Descendant: {
12708
12708
  if (r.cacheResults === !1 || typeof WeakSet > "u")
12709
12709
  return function(l) {
12710
12710
  let c = l;
@@ -12734,16 +12734,16 @@ function B0(t, e, r, n, s) {
12734
12734
  while (l = es(l, i));
12735
12735
  return !1;
12736
12736
  };
12737
- case M.Parent:
12737
+ case G.Parent:
12738
12738
  return function(u) {
12739
12739
  return i.getChildren(u).some((l) => i.isTag(l) && t(l));
12740
12740
  };
12741
- case M.Child:
12741
+ case G.Child:
12742
12742
  return function(u) {
12743
12743
  const l = i.getParent(u);
12744
12744
  return l != null && i.isTag(l) && t(l);
12745
12745
  };
12746
- case M.Sibling:
12746
+ case G.Sibling:
12747
12747
  return function(u) {
12748
12748
  const l = i.getSiblings(u);
12749
12749
  for (let c = 0; c < l.length; c++) {
@@ -12755,7 +12755,7 @@ function B0(t, e, r, n, s) {
12755
12755
  }
12756
12756
  return !1;
12757
12757
  };
12758
- case M.Adjacent:
12758
+ case G.Adjacent:
12759
12759
  return i.prevElementSibling ? function(u) {
12760
12760
  const l = i.prevElementSibling(u);
12761
12761
  return l != null && t(l);
@@ -12770,7 +12770,7 @@ function B0(t, e, r, n, s) {
12770
12770
  }
12771
12771
  return !!c && t(c);
12772
12772
  };
12773
- case M.Universal: {
12773
+ case G.Universal: {
12774
12774
  if (e.namespace != null && e.namespace !== "*")
12775
12775
  throw new Error("Namespaced universal selectors are not yet supported by css-select");
12776
12776
  return t;
@@ -12786,12 +12786,12 @@ function R0(t, e, r) {
12786
12786
  return Il(n, e, r);
12787
12787
  }
12788
12788
  function El(t) {
12789
- return t.type === M.Pseudo && (t.name === "scope" || Array.isArray(t.data) && t.data.some((e) => e.some(El)));
12789
+ return t.type === G.Pseudo && (t.name === "scope" || Array.isArray(t.data) && t.data.some((e) => e.some(El)));
12790
12790
  }
12791
- const D0 = { type: M.Descendant }, N0 = {
12791
+ const D0 = { type: G.Descendant }, N0 = {
12792
12792
  type: "_flexibleDescendant"
12793
12793
  }, U0 = {
12794
- type: M.Pseudo,
12794
+ type: G.Pseudo,
12795
12795
  name: "scope",
12796
12796
  data: null
12797
12797
  };
@@ -12801,7 +12801,7 @@ function O0(t, { adapter: e }, r) {
12801
12801
  return s === xl || i && e.isTag(i);
12802
12802
  });
12803
12803
  for (const s of t) {
12804
- if (!(s.length > 0 && bi(s[0]) && s[0].type !== M.Descendant)) if (n && !s.some(El))
12804
+ if (!(s.length > 0 && bi(s[0]) && s[0].type !== G.Descendant)) if (n && !s.some(El))
12805
12805
  s.unshift(D0);
12806
12806
  else
12807
12807
  continue;
@@ -12820,18 +12820,18 @@ function Il(t, e, r) {
12820
12820
  const o = t.map((u) => {
12821
12821
  if (u.length >= 2) {
12822
12822
  const [l, c] = u;
12823
- l.type !== M.Pseudo || l.name !== "scope" || (s && c.type === M.Descendant ? u[1] = N0 : (c.type === M.Adjacent || c.type === M.Sibling) && (a = !0));
12823
+ l.type !== G.Pseudo || l.name !== "scope" || (s && c.type === G.Descendant ? u[1] = N0 : (c.type === G.Adjacent || c.type === G.Sibling) && (a = !0));
12824
12824
  }
12825
12825
  return L0(u, e, i);
12826
- }).reduce(M0, W.falseFunc);
12826
+ }).reduce(M0, Q.falseFunc);
12827
12827
  return o.shouldTestNextSiblings = a, o;
12828
12828
  }
12829
12829
  function L0(t, e, r) {
12830
12830
  var n;
12831
- return t.reduce((s, i) => s === W.falseFunc ? W.falseFunc : B0(s, i, e, r, Il), (n = e.rootFunc) !== null && n !== void 0 ? n : W.trueFunc);
12831
+ return t.reduce((s, i) => s === Q.falseFunc ? Q.falseFunc : B0(s, i, e, r, Il), (n = e.rootFunc) !== null && n !== void 0 ? n : Q.trueFunc);
12832
12832
  }
12833
12833
  function M0(t, e) {
12834
- return e === W.falseFunc || t === W.trueFunc ? t : t === W.falseFunc || e === W.trueFunc ? e : function(n) {
12834
+ return e === Q.falseFunc || t === Q.trueFunc ? t : t === Q.falseFunc || e === Q.trueFunc ? e : function(n) {
12835
12835
  return t(n) || e(n);
12836
12836
  };
12837
12837
  }
@@ -12926,21 +12926,21 @@ let Tr = class Nl extends Fr {
12926
12926
  const e = [];
12927
12927
  let { previousSibling: r, nextSibling: n } = this;
12928
12928
  for (; r && r.nodeType === ye; ) {
12929
- e.unshift(r[q]);
12929
+ e.unshift(r[_]);
12930
12930
  r = r.previousSibling;
12931
12931
  }
12932
- for (e.push(this[q]); n && n.nodeType === ye; ) {
12933
- e.push(n[q]);
12932
+ for (e.push(this[_]); n && n.nodeType === ye; ) {
12933
+ e.push(n[_]);
12934
12934
  n = n.nextSibling;
12935
12935
  }
12936
12936
  return e.join("");
12937
12937
  }
12938
12938
  cloneNode() {
12939
- const { ownerDocument: e, [q]: r } = this;
12939
+ const { ownerDocument: e, [_]: r } = this;
12940
12940
  return new Nl(e, r);
12941
12941
  }
12942
12942
  toString() {
12943
- return di(this[q]);
12943
+ return di(this[_]);
12944
12944
  }
12945
12945
  };
12946
12946
  const _0 = (t) => t instanceof Dt, ts = (t, e, r) => {
@@ -13111,7 +13111,7 @@ class Ul extends Dt {
13111
13111
  let { [E]: e, [U]: r } = this;
13112
13112
  for (; e !== r; ) {
13113
13113
  const { [E]: n, [ge]: s, nodeType: i } = e;
13114
- i === ye && (e[q] ? s && s.nodeType === ye && (s.textContent += e.textContent, e.remove()) : e.remove()), e = n;
13114
+ i === ye && (e[_] ? s && s.nodeType === ye && (s.textContent += e.textContent, e.remove()) : e.remove()), e = n;
13115
13115
  }
13116
13116
  }
13117
13117
  removeChild(e) {
@@ -13284,7 +13284,7 @@ const hn = /* @__PURE__ */ new WeakMap(), Xs = (t) => [...t.keys()].filter((e) =
13284
13284
  const e = hn.get(t).getAttributeNode("style");
13285
13285
  if ((!e || e[nn] || t.get(Se) !== e) && (t.clear(), e)) {
13286
13286
  t.set(Se, e);
13287
- for (const r of e[q].split(/\s*;\s*/)) {
13287
+ for (const r of e[_].split(/\s*;\s*/)) {
13288
13288
  let [n, ...s] = r.split(":");
13289
13289
  if (s.length > 0) {
13290
13290
  n = n.trim();
@@ -13307,7 +13307,7 @@ const hn = /* @__PURE__ */ new WeakMap(), Xs = (t) => [...t.keys()].filter((e) =
13307
13307
  const s = hn.get(t);
13308
13308
  n = s.ownerDocument.createAttribute("style"), s.setAttributeNode(n), t.set(Se, n);
13309
13309
  }
13310
- n[nn] = !1, n[q] = t.toString();
13310
+ n[nn] = !1, n[_] = t.toString();
13311
13311
  }
13312
13312
  return !0;
13313
13313
  }
@@ -13947,7 +13947,7 @@ const om = {
13947
13947
  n[e] && t.removeEventListener(s, n[e], !1), (n[e] = r) && t.addEventListener(s, r, !1);
13948
13948
  }
13949
13949
  };
13950
- class k extends kr {
13950
+ class T extends kr {
13951
13951
  static get observedAttributes() {
13952
13952
  return [];
13953
13953
  }
@@ -13995,28 +13995,28 @@ class k extends kr {
13995
13995
  }
13996
13996
  // Boolean Accessors
13997
13997
  get contentEditable() {
13998
- return Y.get(this, "contenteditable");
13998
+ return Z.get(this, "contenteditable");
13999
13999
  }
14000
14000
  set contentEditable(e) {
14001
- Y.set(this, "contenteditable", e);
14001
+ Z.set(this, "contenteditable", e);
14002
14002
  }
14003
14003
  get draggable() {
14004
- return Y.get(this, "draggable");
14004
+ return Z.get(this, "draggable");
14005
14005
  }
14006
14006
  set draggable(e) {
14007
- Y.set(this, "draggable", e);
14007
+ Z.set(this, "draggable", e);
14008
14008
  }
14009
14009
  get hidden() {
14010
- return Y.get(this, "hidden");
14010
+ return Z.get(this, "hidden");
14011
14011
  }
14012
14012
  set hidden(e) {
14013
- Y.set(this, "hidden", e);
14013
+ Z.set(this, "hidden", e);
14014
14014
  }
14015
14015
  get spellcheck() {
14016
- return Y.get(this, "spellcheck");
14016
+ return Z.get(this, "spellcheck");
14017
14017
  }
14018
14018
  set spellcheck(e) {
14019
- Y.set(this, "spellcheck", e);
14019
+ Z.set(this, "spellcheck", e);
14020
14020
  }
14021
14021
  // String Accessors
14022
14022
  get accessKey() {
@@ -14467,7 +14467,7 @@ class k extends kr {
14467
14467
  /* c8 ignore stop */
14468
14468
  }
14469
14469
  const Ql = "template";
14470
- class Kl extends k {
14470
+ class Kl extends T {
14471
14471
  constructor(e) {
14472
14472
  super(e, Ql);
14473
14473
  const r = this.ownerDocument.createDocumentFragment();
@@ -14481,13 +14481,13 @@ class Kl extends k {
14481
14481
  }
14482
14482
  }
14483
14483
  pe(Ql, Kl);
14484
- class um extends k {
14484
+ class um extends T {
14485
14485
  constructor(e, r = "html") {
14486
14486
  super(e, r);
14487
14487
  }
14488
14488
  }
14489
- const { toString: lm } = k.prototype;
14490
- class yn extends k {
14489
+ const { toString: lm } = T.prototype;
14490
+ class yn extends T {
14491
14491
  get innerHTML() {
14492
14492
  return this.textContent;
14493
14493
  }
@@ -14516,10 +14516,10 @@ class Zl extends yn {
14516
14516
  x.set(this, "src", e);
14517
14517
  }
14518
14518
  get defer() {
14519
- return Y.get(this, "defer");
14519
+ return Z.get(this, "defer");
14520
14520
  }
14521
14521
  set defer(e) {
14522
- Y.set(this, "defer", e);
14522
+ Z.set(this, "defer", e);
14523
14523
  }
14524
14524
  get crossOrigin() {
14525
14525
  return x.get(this, "crossorigin");
@@ -14528,10 +14528,10 @@ class Zl extends yn {
14528
14528
  x.set(this, "crossorigin", e);
14529
14529
  }
14530
14530
  get nomodule() {
14531
- return Y.get(this, "nomodule");
14531
+ return Z.get(this, "nomodule");
14532
14532
  }
14533
14533
  set nomodule(e) {
14534
- Y.set(this, "nomodule", e);
14534
+ Z.set(this, "nomodule", e);
14535
14535
  }
14536
14536
  get referrerPolicy() {
14537
14537
  return x.get(this, "referrerpolicy");
@@ -14546,10 +14546,10 @@ class Zl extends yn {
14546
14546
  x.set(this, "nonce", e);
14547
14547
  }
14548
14548
  get async() {
14549
- return Y.get(this, "async");
14549
+ return Z.get(this, "async");
14550
14550
  }
14551
14551
  set async(e) {
14552
- Y.set(this, "async", e);
14552
+ Z.set(this, "async", e);
14553
14553
  }
14554
14554
  get text() {
14555
14555
  return this.textContent;
@@ -14559,13 +14559,13 @@ class Zl extends yn {
14559
14559
  }
14560
14560
  }
14561
14561
  pe(Yl, Zl);
14562
- class cm extends k {
14562
+ class cm extends T {
14563
14563
  constructor(e, r = "frame") {
14564
14564
  super(e, r);
14565
14565
  }
14566
14566
  }
14567
14567
  const Jl = "iframe";
14568
- class Vl extends k {
14568
+ class Vl extends T {
14569
14569
  constructor(e, r = Jl) {
14570
14570
  super(e, r);
14571
14571
  }
@@ -14595,10 +14595,10 @@ class Vl extends k {
14595
14595
  x.set(this, "allow", e);
14596
14596
  }
14597
14597
  get allowFullscreen() {
14598
- return Y.get(this, "allowfullscreen");
14598
+ return Z.get(this, "allowfullscreen");
14599
14599
  }
14600
14600
  set allowFullscreen(e) {
14601
- Y.set(this, "allowfullscreen", e);
14601
+ Z.set(this, "allowfullscreen", e);
14602
14602
  }
14603
14603
  get referrerPolicy() {
14604
14604
  return x.get(this, "referrerpolicy");
@@ -14615,17 +14615,17 @@ class Vl extends k {
14615
14615
  /* c8 ignore stop */
14616
14616
  }
14617
14617
  pe(Jl, Vl);
14618
- class hm extends k {
14618
+ class hm extends T {
14619
14619
  constructor(e, r = "object") {
14620
14620
  super(e, r);
14621
14621
  }
14622
14622
  }
14623
- class Am extends k {
14623
+ class Am extends T {
14624
14624
  constructor(e, r = "head") {
14625
14625
  super(e, r);
14626
14626
  }
14627
14627
  }
14628
- class fm extends k {
14628
+ class fm extends T {
14629
14629
  constructor(e, r = "body") {
14630
14630
  super(e, r);
14631
14631
  }
@@ -15234,25 +15234,25 @@ function Wi() {
15234
15234
  atBlock: !0,
15235
15235
  conditionBlock: !0,
15236
15236
  "documentRule-begin": !0
15237
- }, l = new t.CSSStyleSheet(), c = l, A, h = [], f = !1, p, m, S = "", v, C, b, O, D, H, I, F, Q = /@(-(?:\w+-)+)?keyframes/g, _ = function(j) {
15237
+ }, l = new t.CSSStyleSheet(), c = l, A, h = [], f = !1, p, m, S = "", v, C, b, M, R, H, D, F, O = /@(-(?:\w+-)+)?keyframes/g, Y = function(j) {
15238
15238
  var $ = r.substring(0, n).split(`
15239
- `), ne = $.length, ee = $.pop().length + 1, Z = new Error(j + " (line " + ne + ", char " + ee + ")");
15240
- throw Z.line = ne, Z.char = ee, Z.styleSheet = l, Z;
15241
- }, P; P = r.charAt(n); n++)
15242
- switch (P) {
15239
+ `), ne = $.length, ee = $.pop().length + 1, J = new Error(j + " (line " + ne + ", char " + ee + ")");
15240
+ throw J.line = ne, J.char = ee, J.styleSheet = l, J;
15241
+ }, W; W = r.charAt(n); n++)
15242
+ switch (W) {
15243
15243
  case " ":
15244
15244
  case " ":
15245
15245
  case "\r":
15246
15246
  case `
15247
15247
  `:
15248
15248
  case "\f":
15249
- u[s] && (a += P);
15249
+ u[s] && (a += W);
15250
15250
  break;
15251
15251
  // String
15252
15252
  case '"':
15253
15253
  i = n + 1;
15254
15254
  do
15255
- i = r.indexOf('"', i) + 1, i || _('Unmatched "');
15255
+ i = r.indexOf('"', i) + 1, i || Y('Unmatched "');
15256
15256
  while (r[i - 2] === "\\");
15257
15257
  switch (a += r.slice(n, i), n = i - 1, s) {
15258
15258
  case "before-value":
@@ -15266,7 +15266,7 @@ function Wi() {
15266
15266
  case "'":
15267
15267
  i = n + 1;
15268
15268
  do
15269
- i = r.indexOf("'", i) + 1, i || _("Unmatched '");
15269
+ i = r.indexOf("'", i) + 1, i || Y("Unmatched '");
15270
15270
  while (r[i - 2] === "\\");
15271
15271
  switch (a += r.slice(n, i), n = i - 1, s) {
15272
15272
  case "before-value":
@@ -15279,12 +15279,12 @@ function Wi() {
15279
15279
  break;
15280
15280
  // Comment
15281
15281
  case "/":
15282
- r.charAt(n + 1) === "*" ? (n += 2, i = r.indexOf("*/", n), i === -1 ? _("Missing */") : n = i + 1) : a += P, s === "importRule-begin" && (a += " ", s = "importRule");
15282
+ r.charAt(n + 1) === "*" ? (n += 2, i = r.indexOf("*/", n), i === -1 ? Y("Missing */") : n = i + 1) : a += W, s === "importRule-begin" && (a += " ", s = "importRule");
15283
15283
  break;
15284
15284
  // At-rule
15285
15285
  case "@":
15286
15286
  if (r.indexOf("@-moz-document", n) === n) {
15287
- s = "documentRule-begin", I = new t.CSSDocumentRule(), I.__starts = n, n += 13, a = "";
15287
+ s = "documentRule-begin", D = new t.CSSDocumentRule(), D.__starts = n, n += 13, a = "";
15288
15288
  break;
15289
15289
  } else if (r.indexOf("@media", n) === n) {
15290
15290
  s = "atBlock", C = new t.CSSMediaRule(), C.__starts = n, n += 5, a = "";
@@ -15299,38 +15299,38 @@ function Wi() {
15299
15299
  s = "importRule-begin", n += 6, a += "@import";
15300
15300
  break;
15301
15301
  } else if (r.indexOf("@font-face", n) === n) {
15302
- s = "fontFaceRule-begin", n += 9, D = new t.CSSFontFaceRule(), D.__starts = n, a = "";
15302
+ s = "fontFaceRule-begin", n += 9, R = new t.CSSFontFaceRule(), R.__starts = n, a = "";
15303
15303
  break;
15304
15304
  } else {
15305
- Q.lastIndex = n;
15306
- var z = Q.exec(r);
15305
+ O.lastIndex = n;
15306
+ var z = O.exec(r);
15307
15307
  if (z && z.index === n) {
15308
15308
  s = "keyframesRule-begin", H = new t.CSSKeyframesRule(), H.__starts = n, H._vendorPrefix = z[1], n += z[0].length - 1, a = "";
15309
15309
  break;
15310
15310
  } else s === "selector" && (s = "atRule");
15311
15311
  }
15312
- a += P;
15312
+ a += W;
15313
15313
  break;
15314
15314
  case "{":
15315
- s === "selector" || s === "atRule" ? (v.selectorText = a.trim(), v.style.__starts = n, a = "", s = "before-name") : s === "atBlock" ? (C.media.mediaText = a.trim(), A && h.push(A), c = A = C, C.parentStyleSheet = l, a = "", s = "before-selector") : s === "conditionBlock" ? (b.conditionText = a.trim(), A && h.push(A), c = A = b, b.parentStyleSheet = l, a = "", s = "before-selector") : s === "hostRule-begin" ? (A && h.push(A), c = A = F, F.parentStyleSheet = l, a = "", s = "before-selector") : s === "fontFaceRule-begin" ? (A && (D.parentRule = A), D.parentStyleSheet = l, v = D, a = "", s = "before-name") : s === "keyframesRule-begin" ? (H.name = a.trim(), A && (h.push(A), H.parentRule = A), H.parentStyleSheet = l, c = A = H, a = "", s = "keyframeRule-begin") : s === "keyframeRule-begin" ? (v = new t.CSSKeyframeRule(), v.keyText = a.trim(), v.__starts = n, a = "", s = "before-name") : s === "documentRule-begin" && (I.matcher.matcherText = a.trim(), A && (h.push(A), I.parentRule = A), c = A = I, I.parentStyleSheet = l, a = "", s = "before-selector");
15315
+ s === "selector" || s === "atRule" ? (v.selectorText = a.trim(), v.style.__starts = n, a = "", s = "before-name") : s === "atBlock" ? (C.media.mediaText = a.trim(), A && h.push(A), c = A = C, C.parentStyleSheet = l, a = "", s = "before-selector") : s === "conditionBlock" ? (b.conditionText = a.trim(), A && h.push(A), c = A = b, b.parentStyleSheet = l, a = "", s = "before-selector") : s === "hostRule-begin" ? (A && h.push(A), c = A = F, F.parentStyleSheet = l, a = "", s = "before-selector") : s === "fontFaceRule-begin" ? (A && (R.parentRule = A), R.parentStyleSheet = l, v = R, a = "", s = "before-name") : s === "keyframesRule-begin" ? (H.name = a.trim(), A && (h.push(A), H.parentRule = A), H.parentStyleSheet = l, c = A = H, a = "", s = "keyframeRule-begin") : s === "keyframeRule-begin" ? (v = new t.CSSKeyframeRule(), v.keyText = a.trim(), v.__starts = n, a = "", s = "before-name") : s === "documentRule-begin" && (D.matcher.matcherText = a.trim(), A && (h.push(A), D.parentRule = A), c = A = D, D.parentStyleSheet = l, a = "", s = "before-selector");
15316
15316
  break;
15317
15317
  case ":":
15318
- s === "name" ? (m = a.trim(), a = "", s = "before-value") : a += P;
15318
+ s === "name" ? (m = a.trim(), a = "", s = "before-value") : a += W;
15319
15319
  break;
15320
15320
  case "(":
15321
15321
  if (s === "value")
15322
15322
  if (a.trim() === "expression") {
15323
15323
  var ae = new t.CSSValueExpression(r, n).parse();
15324
- ae.error ? _(ae.error) : (a += ae.expression, n = ae.idx);
15324
+ ae.error ? Y(ae.error) : (a += ae.expression, n = ae.idx);
15325
15325
  } else
15326
- s = "value-parenthesis", o = 1, a += P;
15327
- else s === "value-parenthesis" && o++, a += P;
15326
+ s = "value-parenthesis", o = 1, a += W;
15327
+ else s === "value-parenthesis" && o++, a += W;
15328
15328
  break;
15329
15329
  case ")":
15330
- s === "value-parenthesis" && (o--, o === 0 && (s = "value")), a += P;
15330
+ s === "value-parenthesis" && (o--, o === 0 && (s = "value")), a += W;
15331
15331
  break;
15332
15332
  case "!":
15333
- s === "value" && r.indexOf("!important", n) === n ? (S = "important", n += 9) : a += P;
15333
+ s === "value" && r.indexOf("!important", n) === n ? (S = "important", n += 9) : a += W;
15334
15334
  break;
15335
15335
  case ";":
15336
15336
  switch (s) {
@@ -15341,10 +15341,10 @@ function Wi() {
15341
15341
  a = "", s = "before-selector";
15342
15342
  break;
15343
15343
  case "importRule":
15344
- O = new t.CSSImportRule(), O.parentStyleSheet = O.styleSheet.parentStyleSheet = l, O.cssText = a + P, l.cssRules.push(O), a = "", s = "before-selector";
15344
+ M = new t.CSSImportRule(), M.parentStyleSheet = M.styleSheet.parentStyleSheet = l, M.cssText = a + W, l.cssRules.push(M), a = "", s = "before-selector";
15345
15345
  break;
15346
15346
  default:
15347
- a += P;
15347
+ a += W;
15348
15348
  break;
15349
15349
  }
15350
15350
  break;
@@ -15360,7 +15360,7 @@ function Wi() {
15360
15360
  case "keyframeRule-begin":
15361
15361
  case "before-selector":
15362
15362
  case "selector":
15363
- for (A || _("Unexpected }"), f = h.length > 0; h.length > 0; ) {
15363
+ for (A || Y("Unexpected }"), f = h.length > 0; h.length > 0; ) {
15364
15364
  if (A = h.pop(), A.constructor.name === "CSSMediaRule" || A.constructor.name === "CSSSupportsRule") {
15365
15365
  p = c, c = A, c.cssRules.push(p);
15366
15366
  break;
@@ -15386,7 +15386,7 @@ function Wi() {
15386
15386
  s = "importRule";
15387
15387
  break;
15388
15388
  }
15389
- a += P;
15389
+ a += W;
15390
15390
  break;
15391
15391
  }
15392
15392
  return l;
@@ -15547,7 +15547,7 @@ class nc extends yn {
15547
15547
  }
15548
15548
  }
15549
15549
  pe(rc, nc);
15550
- class sc extends k {
15550
+ class sc extends T {
15551
15551
  constructor(e, r = "time") {
15552
15552
  super(e, r);
15553
15553
  }
@@ -15562,73 +15562,73 @@ class sc extends k {
15562
15562
  }
15563
15563
  }
15564
15564
  pe("time", sc);
15565
- class mm extends k {
15565
+ class mm extends T {
15566
15566
  constructor(e, r = "fieldset") {
15567
15567
  super(e, r);
15568
15568
  }
15569
15569
  }
15570
- class vm extends k {
15570
+ class vm extends T {
15571
15571
  constructor(e, r = "embed") {
15572
15572
  super(e, r);
15573
15573
  }
15574
15574
  }
15575
- class Sm extends k {
15575
+ class Sm extends T {
15576
15576
  constructor(e, r = "hr") {
15577
15577
  super(e, r);
15578
15578
  }
15579
15579
  }
15580
- class ym extends k {
15580
+ class ym extends T {
15581
15581
  constructor(e, r = "progress") {
15582
15582
  super(e, r);
15583
15583
  }
15584
15584
  }
15585
- class bm extends k {
15585
+ class bm extends T {
15586
15586
  constructor(e, r = "p") {
15587
15587
  super(e, r);
15588
15588
  }
15589
15589
  }
15590
- class xm extends k {
15590
+ class xm extends T {
15591
15591
  constructor(e, r = "table") {
15592
15592
  super(e, r);
15593
15593
  }
15594
15594
  }
15595
- class Cm extends k {
15595
+ class Cm extends T {
15596
15596
  constructor(e, r = "frameset") {
15597
15597
  super(e, r);
15598
15598
  }
15599
15599
  }
15600
- class wm extends k {
15600
+ class wm extends T {
15601
15601
  constructor(e, r = "li") {
15602
15602
  super(e, r);
15603
15603
  }
15604
15604
  }
15605
- class Em extends k {
15605
+ class Em extends T {
15606
15606
  constructor(e, r = "base") {
15607
15607
  super(e, r);
15608
15608
  }
15609
15609
  }
15610
- class Im extends k {
15610
+ class Im extends T {
15611
15611
  constructor(e, r = "datalist") {
15612
15612
  super(e, r);
15613
15613
  }
15614
15614
  }
15615
15615
  const ic = "input";
15616
- class ac extends k {
15616
+ class ac extends T {
15617
15617
  constructor(e, r = ic) {
15618
15618
  super(e, r);
15619
15619
  }
15620
15620
  /* c8 ignore start */
15621
15621
  get autofocus() {
15622
- return Y.get(this, "autofocus") || -1;
15622
+ return Z.get(this, "autofocus") || -1;
15623
15623
  }
15624
15624
  set autofocus(e) {
15625
- Y.set(this, "autofocus", e);
15625
+ Z.set(this, "autofocus", e);
15626
15626
  }
15627
15627
  get disabled() {
15628
- return Y.get(this, "disabled");
15628
+ return Z.get(this, "disabled");
15629
15629
  }
15630
15630
  set disabled(e) {
15631
- Y.set(this, "disabled", e);
15631
+ Z.set(this, "disabled", e);
15632
15632
  }
15633
15633
  get name() {
15634
15634
  return this.getAttribute("name");
@@ -15657,34 +15657,34 @@ class ac extends k {
15657
15657
  /* c8 ignore stop */
15658
15658
  }
15659
15659
  pe(ic, ac);
15660
- class Fm extends k {
15660
+ class Fm extends T {
15661
15661
  constructor(e, r = "param") {
15662
15662
  super(e, r);
15663
15663
  }
15664
15664
  }
15665
- class Tm extends k {
15665
+ class Tm extends T {
15666
15666
  constructor(e, r = "media") {
15667
15667
  super(e, r);
15668
15668
  }
15669
15669
  }
15670
- class km extends k {
15670
+ class km extends T {
15671
15671
  constructor(e, r = "audio") {
15672
15672
  super(e, r);
15673
15673
  }
15674
15674
  }
15675
15675
  const oc = "h1";
15676
- class uc extends k {
15676
+ class uc extends T {
15677
15677
  constructor(e, r = oc) {
15678
15678
  super(e, r);
15679
15679
  }
15680
15680
  }
15681
15681
  pe([oc, "h2", "h3", "h4", "h5", "h6"], uc);
15682
- class Bm extends k {
15682
+ class Bm extends T {
15683
15683
  constructor(e, r = "dir") {
15684
15684
  super(e, r);
15685
15685
  }
15686
15686
  }
15687
- class Rm extends k {
15687
+ class Rm extends T {
15688
15688
  constructor(e, r = "quote") {
15689
15689
  super(e, r);
15690
15690
  }
@@ -15750,7 +15750,7 @@ function Um() {
15750
15750
  }
15751
15751
  var Om = Um();
15752
15752
  const Lm = /* @__PURE__ */ ml(Om), { createCanvas: Mm } = Lm, lc = "canvas";
15753
- class cc extends k {
15753
+ class cc extends T {
15754
15754
  constructor(e, r = lc) {
15755
15755
  super(e, r), this[Ue] = Mm(300, 150);
15756
15756
  }
@@ -15774,13 +15774,13 @@ class cc extends k {
15774
15774
  }
15775
15775
  }
15776
15776
  pe(lc, cc);
15777
- class Gm extends k {
15777
+ class Gm extends T {
15778
15778
  constructor(e, r = "legend") {
15779
15779
  super(e, r);
15780
15780
  }
15781
15781
  }
15782
15782
  const hc = "option";
15783
- class Ac extends k {
15783
+ class Ac extends T {
15784
15784
  constructor(e, r = hc) {
15785
15785
  super(e, r);
15786
15786
  }
@@ -15793,30 +15793,30 @@ class Ac extends k {
15793
15793
  }
15794
15794
  /* c8 ignore stop */
15795
15795
  get selected() {
15796
- return Y.get(this, "selected");
15796
+ return Z.get(this, "selected");
15797
15797
  }
15798
15798
  set selected(e) {
15799
15799
  const r = this.parentElement?.querySelector("option[selected]");
15800
- r && r !== this && (r.selected = !1), Y.set(this, "selected", e);
15800
+ r && r !== this && (r.selected = !1), Z.set(this, "selected", e);
15801
15801
  }
15802
15802
  }
15803
15803
  pe(hc, Ac);
15804
- class Hm extends k {
15804
+ class Hm extends T {
15805
15805
  constructor(e, r = "span") {
15806
15806
  super(e, r);
15807
15807
  }
15808
15808
  }
15809
- class Pm extends k {
15809
+ class Pm extends T {
15810
15810
  constructor(e, r = "meter") {
15811
15811
  super(e, r);
15812
15812
  }
15813
15813
  }
15814
- class Wm extends k {
15814
+ class Wm extends T {
15815
15815
  constructor(e, r = "video") {
15816
15816
  super(e, r);
15817
15817
  }
15818
15818
  }
15819
- class Qm extends k {
15819
+ class Qm extends T {
15820
15820
  constructor(e, r = "td") {
15821
15821
  super(e, r);
15822
15822
  }
@@ -15828,28 +15828,28 @@ class pc extends yn {
15828
15828
  }
15829
15829
  }
15830
15830
  pe(fc, pc);
15831
- class Km extends k {
15831
+ class Km extends T {
15832
15832
  constructor(e, r = "output") {
15833
15833
  super(e, r);
15834
15834
  }
15835
15835
  }
15836
- class Ym extends k {
15836
+ class Ym extends T {
15837
15837
  constructor(e, r = "tr") {
15838
15838
  super(e, r);
15839
15839
  }
15840
15840
  }
15841
- class Zm extends k {
15841
+ class Zm extends T {
15842
15842
  constructor(e, r = "data") {
15843
15843
  super(e, r);
15844
15844
  }
15845
15845
  }
15846
- class Jm extends k {
15846
+ class Jm extends T {
15847
15847
  constructor(e, r = "menu") {
15848
15848
  super(e, r);
15849
15849
  }
15850
15850
  }
15851
15851
  const dc = "select";
15852
- class gc extends k {
15852
+ class gc extends T {
15853
15853
  constructor(e, r = dc) {
15854
15854
  super(e, r);
15855
15855
  }
@@ -15861,10 +15861,10 @@ class gc extends k {
15861
15861
  }
15862
15862
  /* c8 ignore start */
15863
15863
  get disabled() {
15864
- return Y.get(this, "disabled");
15864
+ return Z.get(this, "disabled");
15865
15865
  }
15866
15866
  set disabled(e) {
15867
- Y.set(this, "disabled", e);
15867
+ Z.set(this, "disabled", e);
15868
15868
  }
15869
15869
  get name() {
15870
15870
  return this.getAttribute("name");
@@ -15878,22 +15878,22 @@ class gc extends k {
15878
15878
  }
15879
15879
  }
15880
15880
  pe(dc, gc);
15881
- class Vm extends k {
15881
+ class Vm extends T {
15882
15882
  constructor(e, r = "br") {
15883
15883
  super(e, r);
15884
15884
  }
15885
15885
  }
15886
15886
  const mc = "button";
15887
- class vc extends k {
15887
+ class vc extends T {
15888
15888
  constructor(e, r = mc) {
15889
15889
  super(e, r);
15890
15890
  }
15891
15891
  /* c8 ignore start */
15892
15892
  get disabled() {
15893
- return Y.get(this, "disabled");
15893
+ return Z.get(this, "disabled");
15894
15894
  }
15895
15895
  set disabled(e) {
15896
- Y.set(this, "disabled", e);
15896
+ Z.set(this, "disabled", e);
15897
15897
  }
15898
15898
  get name() {
15899
15899
  return this.getAttribute("name");
@@ -15910,17 +15910,17 @@ class vc extends k {
15910
15910
  /* c8 ignore stop */
15911
15911
  }
15912
15912
  pe(mc, vc);
15913
- class Xm extends k {
15913
+ class Xm extends T {
15914
15914
  constructor(e, r = "map") {
15915
15915
  super(e, r);
15916
15916
  }
15917
15917
  }
15918
- class qm extends k {
15918
+ class qm extends T {
15919
15919
  constructor(e, r = "optgroup") {
15920
15920
  super(e, r);
15921
15921
  }
15922
15922
  }
15923
- class _m extends k {
15923
+ class _m extends T {
15924
15924
  constructor(e, r = "dl") {
15925
15925
  super(e, r);
15926
15926
  }
@@ -15932,10 +15932,10 @@ class yc extends yn {
15932
15932
  }
15933
15933
  /* c8 ignore start */
15934
15934
  get disabled() {
15935
- return Y.get(this, "disabled");
15935
+ return Z.get(this, "disabled");
15936
15936
  }
15937
15937
  set disabled(e) {
15938
- Y.set(this, "disabled", e);
15938
+ Z.set(this, "disabled", e);
15939
15939
  }
15940
15940
  get name() {
15941
15941
  return this.getAttribute("name");
@@ -15964,28 +15964,28 @@ class yc extends yn {
15964
15964
  /* c8 ignore stop */
15965
15965
  }
15966
15966
  pe(Sc, yc);
15967
- class zm extends k {
15967
+ class zm extends T {
15968
15968
  constructor(e, r = "font") {
15969
15969
  super(e, r);
15970
15970
  }
15971
15971
  }
15972
- class jm extends k {
15972
+ class jm extends T {
15973
15973
  constructor(e, r = "div") {
15974
15974
  super(e, r);
15975
15975
  }
15976
15976
  }
15977
15977
  const bc = "link";
15978
- class xc extends k {
15978
+ class xc extends T {
15979
15979
  constructor(e, r = bc) {
15980
15980
  super(e, r);
15981
15981
  }
15982
15982
  /* c8 ignore start */
15983
15983
  // copy paste from img.src, already covered
15984
15984
  get disabled() {
15985
- return Y.get(this, "disabled");
15985
+ return Z.get(this, "disabled");
15986
15986
  }
15987
15987
  set disabled(e) {
15988
- Y.set(this, "disabled", e);
15988
+ Z.set(this, "disabled", e);
15989
15989
  }
15990
15990
  get href() {
15991
15991
  return x.get(this, "href").trim();
@@ -16021,7 +16021,7 @@ class xc extends k {
16021
16021
  }
16022
16022
  pe(bc, xc);
16023
16023
  const Cc = "slot";
16024
- class wc extends k {
16024
+ class wc extends T {
16025
16025
  constructor(e, r = Cc) {
16026
16026
  super(e, r);
16027
16027
  }
@@ -16052,13 +16052,13 @@ class wc extends k {
16052
16052
  /* c8 ignore stop */
16053
16053
  }
16054
16054
  pe(Cc, wc);
16055
- class $m extends k {
16055
+ class $m extends T {
16056
16056
  constructor(e, r = "form") {
16057
16057
  super(e, r);
16058
16058
  }
16059
16059
  }
16060
16060
  const Ec = "img";
16061
- class Qi extends k {
16061
+ class Qi extends T {
16062
16062
  constructor(e, r = Ec) {
16063
16063
  super(e, r);
16064
16064
  }
@@ -16108,18 +16108,18 @@ class Qi extends k {
16108
16108
  /* c8 ignore stop */
16109
16109
  }
16110
16110
  pe(Ec, Qi);
16111
- class ev extends k {
16111
+ class ev extends T {
16112
16112
  constructor(e, r = "pre") {
16113
16113
  super(e, r);
16114
16114
  }
16115
16115
  }
16116
- class tv extends k {
16116
+ class tv extends T {
16117
16117
  constructor(e, r = "ul") {
16118
16118
  super(e, r);
16119
16119
  }
16120
16120
  }
16121
16121
  const Ic = "meta";
16122
- class Fc extends k {
16122
+ class Fc extends T {
16123
16123
  constructor(e, r = Ic) {
16124
16124
  super(e, r);
16125
16125
  }
@@ -16157,28 +16157,28 @@ class Fc extends k {
16157
16157
  /* c8 ignore stop */
16158
16158
  }
16159
16159
  pe(Ic, Fc);
16160
- class rv extends k {
16160
+ class rv extends T {
16161
16161
  constructor(e, r = "picture") {
16162
16162
  super(e, r);
16163
16163
  }
16164
16164
  }
16165
- class nv extends k {
16165
+ class nv extends T {
16166
16166
  constructor(e, r = "area") {
16167
16167
  super(e, r);
16168
16168
  }
16169
16169
  }
16170
- class sv extends k {
16170
+ class sv extends T {
16171
16171
  constructor(e, r = "ol") {
16172
16172
  super(e, r);
16173
16173
  }
16174
16174
  }
16175
- class iv extends k {
16175
+ class iv extends T {
16176
16176
  constructor(e, r = "caption") {
16177
16177
  super(e, r);
16178
16178
  }
16179
16179
  }
16180
16180
  const Tc = "a";
16181
- class kc extends k {
16181
+ class kc extends T {
16182
16182
  constructor(e, r = Tc) {
16183
16183
  super(e, r);
16184
16184
  }
@@ -16217,28 +16217,28 @@ class kc extends k {
16217
16217
  /* c8 ignore stop */
16218
16218
  }
16219
16219
  pe(Tc, kc);
16220
- class av extends k {
16220
+ class av extends T {
16221
16221
  constructor(e, r = "label") {
16222
16222
  super(e, r);
16223
16223
  }
16224
16224
  }
16225
- class ov extends k {
16225
+ class ov extends T {
16226
16226
  constructor(e, r = "unknown") {
16227
16227
  super(e, r);
16228
16228
  }
16229
16229
  }
16230
- class uv extends k {
16230
+ class uv extends T {
16231
16231
  constructor(e, r = "mod") {
16232
16232
  super(e, r);
16233
16233
  }
16234
16234
  }
16235
- class lv extends k {
16235
+ class lv extends T {
16236
16236
  constructor(e, r = "details") {
16237
16237
  super(e, r);
16238
16238
  }
16239
16239
  }
16240
16240
  const Bc = "source";
16241
- class Rc extends k {
16241
+ class Rc extends T {
16242
16242
  constructor(e, r = Bc) {
16243
16243
  super(e, r);
16244
16244
  }
@@ -16270,18 +16270,18 @@ class Rc extends k {
16270
16270
  /* c8 ignore stop */
16271
16271
  }
16272
16272
  pe(Bc, Rc);
16273
- class cv extends k {
16273
+ class cv extends T {
16274
16274
  constructor(e, r = "track") {
16275
16275
  super(e, r);
16276
16276
  }
16277
16277
  }
16278
- class hv extends k {
16278
+ class hv extends T {
16279
16279
  constructor(e, r = "marquee") {
16280
16280
  super(e, r);
16281
16281
  }
16282
16282
  }
16283
16283
  const Av = {
16284
- HTMLElement: k,
16284
+ HTMLElement: T,
16285
16285
  HTMLTemplateElement: Kl,
16286
16286
  HTMLHtmlElement: um,
16287
16287
  HTMLScriptElement: Zl,
@@ -16721,7 +16721,7 @@ const vv = (t, e, r, n) => {
16721
16721
  return kt.set(u, { connected: !1 }), u;
16722
16722
  }
16723
16723
  }
16724
- return new k(t, r);
16724
+ return new T(t, r);
16725
16725
  };
16726
16726
  class Sv extends Rt {
16727
16727
  constructor() {
@@ -16957,7 +16957,13 @@ const Iv = {
16957
16957
  }, Fv = (t) => {
16958
16958
  let e = Array.from(t), r = !1;
16959
16959
  return e[0] === "#" && (e.shift(), r = !0), e.length === 3 && (e = e.map((n) => `${n}${n}`)), `${r ? "#" : ""}${e.join("").toLowerCase()}`;
16960
- }, Is = (t) => Math.max(0, Math.min(255, Math.round(t))).toString(16).padStart(2, "0"), Uo = (t, e, r) => `#${Is(t)}${Is(e)}${Is(r)}`, Tv = (t, e, r) => {
16960
+ }, Is = (t) => {
16961
+ const e = typeof t == "string" ? Number.parseInt(t, 10) : t;
16962
+ return Math.max(0, Math.min(255, Math.round(e))).toString(16).padStart(2, "0");
16963
+ }, Uo = (...t) => {
16964
+ const [e, r, n] = Array.isArray(t[0]) ? t[0] : t;
16965
+ return `#${Is(e)}${Is(r)}${Is(n)}`;
16966
+ }, Tv = (t, e, r) => {
16961
16967
  if (e === 0) {
16962
16968
  const c = Math.round(r * 255);
16963
16969
  return [c, c, c];
@@ -17061,7 +17067,7 @@ function Lc(t, e) {
17061
17067
  const r = t.querySelector("svg");
17062
17068
  return r ? e ? r.innerHTML : r.outerHTML : "";
17063
17069
  }
17064
- function oS(t) {
17070
+ function aS(t) {
17065
17071
  const { svgGlyphs: e } = t;
17066
17072
  if (!e || e.size === 0)
17067
17073
  return [];
@@ -17147,65 +17153,65 @@ const Oo = (t, e, r) => t / r * e, Yv = ({
17147
17153
  colourMap: a
17148
17154
  }) => {
17149
17155
  const { outlineWidth: o, letterSpacing: u, letterSpacingOutline: l } = s, c = new Hc(e), A = o ? n * o * 2 : 0, h = c.getTotalLength(), f = t.getPaths(r, 0, 0, n, { drawSVG: !1 }), m = t.getPath(r, 0, 0, n, { drawSVG: !1 }).getBoundingBox(), S = m.x1 - A / 2, C = m.x2 + A / 2 - S, b = o > 0 ? l : u;
17150
- let O = b ? b * n : 0;
17151
- i === "distributed" && (O = r.length === 1 ? 0 : (h - C) / (r.length - 1));
17152
- const D = O * (r.length - 1), H = C + D;
17153
- let I = 0 - S;
17154
- i === "centre" ? I = (h - H) / 2 - S : i === "right" && (I = h - C - S - D);
17156
+ let M = b ? b * n : 0;
17157
+ i === "distributed" && (M = r.length === 1 ? 0 : (h - C) / (r.length - 1));
17158
+ const R = M * (r.length - 1), H = C + R;
17159
+ let D = 0 - S;
17160
+ i === "centre" ? D = (h - H) / 2 - S : i === "right" && (D = h - C - S - R);
17155
17161
  const F = [];
17156
- for (let Q = 0; Q < f.length; Q++) {
17157
- const _ = f[Q], P = _.getBoundingBox(), z = t.charToGlyph(r[Q]), { advanceWidth: ae } = z;
17162
+ for (let O = 0; O < f.length; O++) {
17163
+ const Y = f[O], W = Y.getBoundingBox(), z = t.charToGlyph(r[O]), { advanceWidth: ae } = z;
17158
17164
  if (!ae)
17159
17165
  throw new Error(
17160
- `No advance width for character: ${r[Q]} in font ${t.names.fontFamily}`
17166
+ `No advance width for character: ${r[O]} in font ${t.names.fontFamily}`
17161
17167
  );
17162
17168
  const { x1: j, x2: $ } = z.getBoundingBox(), ne = Oo(
17163
17169
  ae,
17164
17170
  n,
17165
17171
  t.unitsPerEm
17166
17172
  ), ee = Oo($ - j, n, t.unitsPerEm);
17167
- let Z = I + P.x1;
17168
- if (Q > 0 && (Z += O * Q), Z + ee > h)
17173
+ let J = D + W.x1;
17174
+ if (O > 0 && (J += M * O), J + ee > h)
17169
17175
  throw new Error(
17170
- `TOO_WIDE: character "${r[Q]}" at index ${Q} exceeds baseline path length (${Math.round(Z + ee)} > ${Math.round(h)})`
17176
+ `TOO_WIDE: character "${r[O]}" at index ${O} exceeds baseline path length (${Math.round(J + ee)} > ${Math.round(h)})`
17171
17177
  );
17172
- const oe = Z + ne / 2, he = c.getTangentAtLength(oe), J = Math.atan2(he.y, he.x) * 180 / Math.PI, ue = c.getPointAtLength(Z), _t = ue.x, wn = ue.y, zt = P.x2 - P.x1, jt = new je(P.x1 + zt / 2, 0), $t = hd(
17173
- new je(P.x1, 0),
17174
- J,
17178
+ const oe = J + ne / 2, he = c.getTangentAtLength(oe), V = Math.atan2(he.y, he.x) * 180 / Math.PI, ue = c.getPointAtLength(J), _t = ue.x, wn = ue.y, zt = W.x2 - W.x1, jt = new je(W.x1 + zt / 2, 0), $t = hd(
17179
+ new je(W.x1, 0),
17180
+ V,
17175
17181
  jt
17176
17182
  ), Nt = _t - $t.X, Mc = wn - $t.Y;
17177
17183
  let Ke = Qv();
17178
- Ke = Ke.translate(Nt, Mc), J && (Ke = Ke.translate(P.x1 + zt / 2, 0), Ke = Ke.rotate(J), Ke = Ke.translate(-P.x1 - zt / 2, 0));
17184
+ Ke = Ke.translate(Nt, Mc), V && (Ke = Ke.translate(W.x1 + zt / 2, 0), Ke = Ke.rotate(V), Ke = Ke.translate(-W.x1 - zt / 2, 0));
17179
17185
  const Gc = Ke.toString();
17180
- let it = _.toPathData(2);
17186
+ let it = Y.toPathData(2);
17181
17187
  it.length && !it.endsWith("Z") && (it += "Z", it = it.replace(/M/g, "ZM"), it = it.substring(1));
17182
17188
  let En;
17183
17189
  if (t.svgGlyphs) {
17184
17190
  const In = t.svgGlyphs.get(z.index);
17185
17191
  if (In) {
17186
17192
  let er = Lv(In.svg);
17187
- er = Gv(er, `g${z.index}-${Q}`), a && (er = Wv(er, a)), En = {
17193
+ er = Gv(er, `g${z.index}-${O}`), a && (er = Wv(er, a)), En = {
17188
17194
  content: er,
17189
17195
  viewBox: In.viewbox,
17190
- x: P.x1,
17191
- y: P.y1,
17192
- width: P.x2 - P.x1,
17193
- height: P.y2 - P.y1,
17196
+ x: W.x1,
17197
+ y: W.y1,
17198
+ width: W.x2 - W.x1,
17199
+ height: W.y2 - W.y1,
17194
17200
  glyphIndex: z.index
17195
17201
  };
17196
17202
  }
17197
17203
  }
17198
17204
  F.push({
17199
- path: _,
17205
+ path: Y,
17200
17206
  matrix: Ke,
17201
17207
  attributes: {
17202
17208
  d: it,
17203
- "data-character": Kv(r[Q]),
17209
+ "data-character": Kv(r[O]),
17204
17210
  transform: Gc
17205
17211
  },
17206
17212
  glyphData: {
17207
17213
  index: z.index,
17208
- bbox: P
17214
+ bbox: W
17209
17215
  },
17210
17216
  ...En ? { svgGlyph: En } : {}
17211
17217
  });
@@ -17275,56 +17281,56 @@ const Oo = (t, e, r) => t / r * e, Yv = ({
17275
17281
  spacing: i
17276
17282
  }), v = Ad(o);
17277
17283
  let C = e.split(`
17278
- `).filter((I) => I.length > 0);
17284
+ `).filter((O) => O.length > 0);
17279
17285
  C.length || (C = [""]), (v.type === "curved" || v.type === "custom") && (C = [C.join("")]);
17280
17286
  const b = C.map(
17281
- (I) => md({ font: r, text: I, fontSize: S, spacing: i })
17282
- ), O = Math.max(...b.map((I) => I.height)), D = C.length === 1 ? O : O + O * (C.length - 1) * Ru, H = [];
17283
- for (let I = 0; I < C.length; I++) {
17284
- let F;
17287
+ (O) => md({ font: r, text: O, fontSize: S, spacing: i })
17288
+ ), M = Math.max(...b.map((O) => O.baseline)), R = Math.max(...b.map((O) => O.height - O.baseline)), H = M + R, D = C.length === 1 ? H : H + H * (C.length - 1) * Ru, F = [];
17289
+ for (let O = 0; O < C.length; O++) {
17290
+ let Y;
17285
17291
  switch (v.type) {
17286
17292
  case "custom":
17287
- fd(v.path), F = v.path;
17293
+ fd(v.path), Y = v.path;
17288
17294
  break;
17289
17295
  case "curved":
17290
- F = Du({
17296
+ Y = Du({
17291
17297
  boxDimensions: s,
17292
- baseline: b[I].baseline,
17293
- textHeight: b[I].height,
17298
+ baseline: b[O].baseline,
17299
+ textHeight: b[O].height,
17294
17300
  verticalAlignment: a
17295
17301
  });
17296
17302
  break;
17297
17303
  case "flat":
17298
- F = pd({
17304
+ Y = pd({
17299
17305
  boxDimensions: s,
17300
17306
  totalTextHeight: D,
17301
- baseline: b[I].baseline,
17302
- lineHeight: O,
17307
+ baseline: M,
17308
+ lineHeight: H,
17303
17309
  verticalAlignment: a,
17304
- lineNumber: I
17310
+ lineNumber: O
17305
17311
  });
17306
17312
  break;
17307
17313
  }
17308
- const Q = Yv({
17314
+ const W = Yv({
17309
17315
  font: r,
17310
- baselinePath: F,
17311
- text: C[I],
17316
+ baselinePath: Y,
17317
+ text: C[O],
17312
17318
  fontSize: S,
17313
17319
  spacing: i,
17314
17320
  horizontalAlignment: u,
17315
17321
  colourMap: A
17316
17322
  });
17317
- H.push(...Q);
17323
+ F.push(...W);
17318
17324
  }
17319
17325
  return Zv({
17320
17326
  boxDimensions: s,
17321
- paths: H,
17327
+ paths: F,
17322
17328
  spacing: i,
17323
17329
  fontSize: S,
17324
17330
  fillColour: l,
17325
17331
  strokeColour: c
17326
17332
  });
17327
- }, uS = async (t) => {
17333
+ }, oS = async (t) => {
17328
17334
  const { fontUrl: e, ...r } = t, n = !!r.colourMap, s = await ud(e, n);
17329
17335
  return Jv({ ...r, font: s });
17330
17336
  };
@@ -17335,9 +17341,9 @@ export {
17335
17341
  Du as generateCurvedBaseline,
17336
17342
  pd as generateFlatBaseline,
17337
17343
  Xv as getFontCache,
17338
- oS as getFontColours,
17344
+ aS as getFontColours,
17339
17345
  gd as getFontSizeFromPhysicalSize,
17340
- uS as getRenderedText,
17346
+ oS as getRenderedText,
17341
17347
  md as getTextMetricsAtFontSize,
17342
17348
  ud as loadOpentypeFont,
17343
17349
  Ad as normaliseBaselineOption,