vitessce 3.4.6 → 3.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { aD as wn, aW as Tn, aX as Fn, aY as Cn, aZ as An, T as Dn, H as Wr, ay as En, ap as Mn, ao as Rn, aI as Gn, Z as on, a_ as On, V as Bt, aF as zr, i as vr, aK as Ln, a1 as pr, aj as Bn, a$ as gr, h as Pn, az as In, u as Nn, l as Wn, b as mr } from "./index-1224c943.js";
1
+ import { aC as wn, aW as Tn, aX as Fn, aY as Cn, aZ as An, T as Dn, $ as Wr, ax as En, av as Mn, au as Rn, aI as Gn, a5 as on, a_ as On, V as Bt, aE as zr, i as vr, aK as Ln, a8 as pr, ap as Bn, a$ as gr, h as Pn, ay as In, z as Nn, l as Wn, b as mr } from "./index-5f3c7693.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  function zn() {
@@ -473,22 +473,22 @@ function fn() {
473
473
  var _ = w - v, W = A - b, E = _ * _ + W * W, P = E ? Math.max(0, Math.min(1, ((B - v) * _ + (M - b) * W) / E)) : 0, H = B - (v + P * _), ee = M - (b + P * W);
474
474
  return H * H + ee * ee;
475
475
  }
476
- var x = /* @__PURE__ */ Object.freeze({
476
+ var S = /* @__PURE__ */ Object.freeze({
477
477
  __proto__: null,
478
478
  generate: p,
479
479
  generateIntoCanvas: g,
480
480
  generateIntoFramebuffer: y
481
- }), F = "precision highp float;uniform vec4 uGlyphBounds;attribute vec2 aUV;attribute vec4 aLineSegment;varying vec4 vLineSegment;varying vec2 vGlyphXY;void main(){vLineSegment=aLineSegment;vGlyphXY=mix(uGlyphBounds.xy,uGlyphBounds.zw,aUV);gl_Position=vec4(mix(vec2(-1.0),vec2(1.0),aUV),0.0,1.0);}", U = "precision highp float;uniform vec4 uGlyphBounds;uniform float uMaxDistance;uniform float uExponent;varying vec4 vLineSegment;varying vec2 vGlyphXY;float absDistToSegment(vec2 point,vec2 lineA,vec2 lineB){vec2 lineDir=lineB-lineA;float lenSq=dot(lineDir,lineDir);float t=lenSq==0.0 ? 0.0 : clamp(dot(point-lineA,lineDir)/lenSq,0.0,1.0);vec2 linePt=lineA+t*lineDir;return distance(point,linePt);}void main(){vec4 seg=vLineSegment;vec2 p=vGlyphXY;float dist=absDistToSegment(p,seg.xy,seg.zw);float val=pow(1.0-clamp(dist/uMaxDistance,0.0,1.0),uExponent)*0.5;bool crossing=(seg.y>p.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y<vLineSegment.w;gl_FragColor=vec4(crossingUp ? 1.0/255.0 : 0.0,crossing&&!crossingUp ? 1.0/255.0 : 0.0,0.0,val);}", T = "precision highp float;uniform sampler2D tex;varying vec2 vUV;void main(){vec4 color=texture2D(tex,vUV);bool inside=color.r!=color.g;float val=inside ? 1.0-color.a : color.a;gl_FragColor=vec4(val);}", G = new Float32Array([0, 0, 2, 0, 0, 2]), S = null, C = !1, N = {}, R = /* @__PURE__ */ new WeakMap();
481
+ }), F = "precision highp float;uniform vec4 uGlyphBounds;attribute vec2 aUV;attribute vec4 aLineSegment;varying vec4 vLineSegment;varying vec2 vGlyphXY;void main(){vLineSegment=aLineSegment;vGlyphXY=mix(uGlyphBounds.xy,uGlyphBounds.zw,aUV);gl_Position=vec4(mix(vec2(-1.0),vec2(1.0),aUV),0.0,1.0);}", U = "precision highp float;uniform vec4 uGlyphBounds;uniform float uMaxDistance;uniform float uExponent;varying vec4 vLineSegment;varying vec2 vGlyphXY;float absDistToSegment(vec2 point,vec2 lineA,vec2 lineB){vec2 lineDir=lineB-lineA;float lenSq=dot(lineDir,lineDir);float t=lenSq==0.0 ? 0.0 : clamp(dot(point-lineA,lineDir)/lenSq,0.0,1.0);vec2 linePt=lineA+t*lineDir;return distance(point,linePt);}void main(){vec4 seg=vLineSegment;vec2 p=vGlyphXY;float dist=absDistToSegment(p,seg.xy,seg.zw);float val=pow(1.0-clamp(dist/uMaxDistance,0.0,1.0),uExponent)*0.5;bool crossing=(seg.y>p.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y<vLineSegment.w;gl_FragColor=vec4(crossingUp ? 1.0/255.0 : 0.0,crossing&&!crossingUp ? 1.0/255.0 : 0.0,0.0,val);}", T = "precision highp float;uniform sampler2D tex;varying vec2 vUV;void main(){vec4 color=texture2D(tex,vUV);bool inside=color.r!=color.g;float val=inside ? 1.0-color.a : color.a;gl_FragColor=vec4(val);}", G = new Float32Array([0, 0, 2, 0, 0, 2]), x = null, C = !1, N = {}, R = /* @__PURE__ */ new WeakMap();
482
482
  function J(B) {
483
483
  if (!C && !V(B))
484
484
  throw new Error("WebGL generation not supported");
485
485
  }
486
486
  function m(B, M, v, b, w, A, _) {
487
- if (A === void 0 && (A = 1), _ === void 0 && (_ = null), !_ && (_ = S, !_)) {
487
+ if (A === void 0 && (A = 1), _ === void 0 && (_ = null), !_ && (_ = x, !_)) {
488
488
  var W = typeof OffscreenCanvas == "function" ? new OffscreenCanvas(1, 1) : typeof document < "u" ? document.createElement("canvas") : null;
489
489
  if (!W)
490
490
  throw new Error("OffscreenCanvas or DOM canvas not supported");
491
- _ = S = W.getContext("webgl", { depth: !1 });
491
+ _ = x = W.getContext("webgl", { depth: !1 });
492
492
  }
493
493
  J(_);
494
494
  var E = new Uint8Array(B * M * 4);
@@ -551,7 +551,7 @@ function fn() {
551
551
  });
552
552
  }
553
553
  function V(B) {
554
- var M = !B || B === S ? N : B.canvas || B, v = R.get(M);
554
+ var M = !B || B === x ? N : B.canvas || B, v = R.get(M);
555
555
  if (v === void 0) {
556
556
  C = !0;
557
557
  var b = null;
@@ -604,7 +604,7 @@ function fn() {
604
604
  try {
605
605
  return m.apply(I, arguments);
606
606
  } catch (_) {
607
- return console.info("WebGL SDF generation failed, falling back to JS", _), p.apply(x, arguments);
607
+ return console.info("WebGL SDF generation failed, falling back to JS", _), p.apply(S, arguments);
608
608
  }
609
609
  }
610
610
  function $(B, M, v, b, w, A, _, W, E, P) {
@@ -612,10 +612,10 @@ function fn() {
612
612
  try {
613
613
  return D.apply(I, arguments);
614
614
  } catch (H) {
615
- return console.info("WebGL SDF generation failed, falling back to JS", H), g.apply(x, arguments);
615
+ return console.info("WebGL SDF generation failed, falling back to JS", H), g.apply(S, arguments);
616
616
  }
617
617
  }
618
- return r.forEachPathCommand = t, r.generate = Z, r.generateIntoCanvas = $, r.javascript = x, r.pathToLineSegments = e, r.webgl = I, r.webglUtils = h, Object.defineProperty(r, "__esModule", { value: !0 }), r;
618
+ return r.forEachPathCommand = t, r.generate = Z, r.generateIntoCanvas = $, r.javascript = S, r.pathToLineSegments = e, r.webgl = I, r.webglUtils = h, Object.defineProperty(r, "__esModule", { value: !0 }), r;
619
619
  }({});
620
620
  return c;
621
621
  }
@@ -690,11 +690,11 @@ function Jn() {
690
690
  }
691
691
  }), { map: he, reverseMap: K };
692
692
  }
693
- var y, O, x;
693
+ var y, O, S;
694
694
  function F() {
695
695
  if (!y) {
696
696
  var j = g(p.pairs, !0), re = j.map, q = j.reverseMap;
697
- y = re, O = q, x = g(p.canonical, !1).map;
697
+ y = re, O = q, S = g(p.canonical, !1).map;
698
698
  }
699
699
  }
700
700
  function U(j) {
@@ -704,9 +704,9 @@ function Jn() {
704
704
  return F(), O.get(j) || null;
705
705
  }
706
706
  function G(j) {
707
- return F(), x.get(j) || null;
707
+ return F(), S.get(j) || null;
708
708
  }
709
- var S = u.L, C = u.R, N = u.EN, R = u.ES, J = u.ET, m = u.AN, D = u.CS, k = u.B, V = u.S, I = u.ON, Z = u.BN, $ = u.NSM, B = u.AL, M = u.LRO, v = u.RLO, b = u.LRE, w = u.RLE, A = u.PDF, _ = u.LRI, W = u.RLI, E = u.FSI, P = u.PDI;
709
+ var x = u.L, C = u.R, N = u.EN, R = u.ES, J = u.ET, m = u.AN, D = u.CS, k = u.B, V = u.S, I = u.ON, Z = u.BN, $ = u.NSM, B = u.AL, M = u.LRO, v = u.RLO, b = u.LRE, w = u.RLE, A = u.PDF, _ = u.LRI, W = u.RLI, E = u.FSI, P = u.PDI;
710
710
  function H(j, re) {
711
711
  for (var q = 125, L = new Uint32Array(j.length), he = 0; he < j.length; he++)
712
712
  L[he] = l(j[he]);
@@ -722,7 +722,7 @@ function Jn() {
722
722
  // 3.3.1 P2-P3: Determine the paragraph level
723
723
  level: re === "rtl" ? 1 : re === "ltr" ? 0 : Ir(le, !1)
724
724
  }), L[le] & k && (oe.end = le, oe = null);
725
- for (var de = w | b | v | M | e | P | A | k, Se = function(Le) {
725
+ for (var de = w | b | v | M | e | P | A | k, xe = function(Le) {
726
726
  return Le + (Le & 1 ? 1 : 2);
727
727
  }, Ce = function(Le) {
728
728
  return Le + (Le & 1 ? 2 : 1);
@@ -736,33 +736,33 @@ function Jn() {
736
736
  //bool
737
737
  }], fe = void 0, ke = 0, we = 0, Oe = 0;
738
738
  K.clear();
739
- for (var xe = oe.start; xe <= oe.end; xe++) {
740
- var ce = L[xe];
739
+ for (var Se = oe.start; Se <= oe.end; Se++) {
740
+ var ce = L[Se];
741
741
  if (fe = me[me.length - 1], K.set(ce, (K.get(ce) || 0) + 1), ce & o && K.set(o, (K.get(o) || 0) + 1), ce & de)
742
742
  if (ce & (w | b)) {
743
- Y[xe] = fe._level;
744
- var Ue = (ce === w ? Ce : Se)(fe._level);
743
+ Y[Se] = fe._level;
744
+ var Ue = (ce === w ? Ce : xe)(fe._level);
745
745
  Ue <= q && !ke && !we ? me.push({
746
746
  _level: Ue,
747
747
  _override: 0,
748
748
  _isolate: 0
749
749
  }) : ke || we++;
750
750
  } else if (ce & (v | M)) {
751
- Y[xe] = fe._level;
752
- var Xe = (ce === v ? Ce : Se)(fe._level);
751
+ Y[Se] = fe._level;
752
+ var Xe = (ce === v ? Ce : xe)(fe._level);
753
753
  Xe <= q && !ke && !we ? me.push({
754
754
  _level: Xe,
755
- _override: ce & v ? C : S,
755
+ _override: ce & v ? C : x,
756
756
  _isolate: 0
757
757
  }) : ke || we++;
758
758
  } else if (ce & e) {
759
- ce & E && (ce = Ir(xe + 1, !0) === 1 ? W : _), Y[xe] = fe._level, fe._override && ae(xe, fe._override);
760
- var _e = (ce === W ? Ce : Se)(fe._level);
759
+ ce & E && (ce = Ir(Se + 1, !0) === 1 ? W : _), Y[Se] = fe._level, fe._override && ae(Se, fe._override);
760
+ var _e = (ce === W ? Ce : xe)(fe._level);
761
761
  _e <= q && ke === 0 && we === 0 ? (Oe++, me.push({
762
762
  _level: _e,
763
763
  _override: 0,
764
764
  _isolate: 1,
765
- _isolInitIndex: xe
765
+ _isolInitIndex: Se
766
766
  })) : ke++;
767
767
  } else if (ce & P) {
768
768
  if (ke > 0)
@@ -771,13 +771,13 @@ function Jn() {
771
771
  for (we = 0; !me[me.length - 1]._isolate; )
772
772
  me.pop();
773
773
  var ye = me[me.length - 1]._isolInitIndex;
774
- ye != null && (be.set(ye, xe), be.set(xe, ye)), me.pop(), Oe--;
774
+ ye != null && (be.set(ye, Se), be.set(Se, ye)), me.pop(), Oe--;
775
775
  }
776
- fe = me[me.length - 1], Y[xe] = fe._level, fe._override && ae(xe, fe._override);
776
+ fe = me[me.length - 1], Y[Se] = fe._level, fe._override && ae(Se, fe._override);
777
777
  } else
778
- ce & A ? (ke === 0 && (we > 0 ? we-- : !fe._isolate && me.length > 1 && (me.pop(), fe = me[me.length - 1])), Y[xe] = fe._level) : ce & k && (Y[xe] = oe.level);
778
+ ce & A ? (ke === 0 && (we > 0 ? we-- : !fe._isolate && me.length > 1 && (me.pop(), fe = me[me.length - 1])), Y[Se] = fe._level) : ce & k && (Y[Se] = oe.level);
779
779
  else
780
- Y[xe] = fe._level, fe._override && ce !== Z && ae(xe, fe._override);
780
+ Y[Se] = fe._level, fe._override && ce !== Z && ae(Se, fe._override);
781
781
  }
782
782
  for (var Ae = [], Te = null, ve = oe.start; ve <= oe.end; ve++) {
783
783
  var Fe = L[ve];
@@ -819,33 +819,33 @@ function Jn() {
819
819
  }
820
820
  Ie.push({
821
821
  _seqIndices: Ge,
822
- _sosType: Math.max(Ur, bn) % 2 ? C : S,
823
- _eosType: Math.max(_r, Un) % 2 ? C : S
822
+ _sosType: Math.max(Ur, bn) % 2 ? C : x,
823
+ _eosType: Math.max(_r, Un) % 2 ? C : x
824
824
  });
825
825
  }
826
826
  }
827
827
  for (var zt = 0; zt < Ie.length; zt++) {
828
- var jt = Ie[zt], ie = jt._seqIndices, st = jt._sosType, _n = jt._eosType, tt = Y[ie[0]] & 1 ? C : S;
828
+ var jt = Ie[zt], ie = jt._seqIndices, st = jt._sosType, _n = jt._eosType, tt = Y[ie[0]] & 1 ? C : x;
829
829
  if (K.get($))
830
- for (var St = 0; St < ie.length; St++) {
831
- var Sr = ie[St];
832
- if (L[Sr] & $) {
833
- for (var Vt = st, xt = St - 1; xt >= 0; xt--)
834
- if (!(L[ie[xt]] & n)) {
835
- Vt = L[ie[xt]];
830
+ for (var xt = 0; xt < ie.length; xt++) {
831
+ var xr = ie[xt];
832
+ if (L[xr] & $) {
833
+ for (var Vt = st, St = xt - 1; St >= 0; St--)
834
+ if (!(L[ie[St]] & n)) {
835
+ Vt = L[ie[St]];
836
836
  break;
837
837
  }
838
- ae(Sr, Vt & (e | P) ? I : Vt);
838
+ ae(xr, Vt & (e | P) ? I : Vt);
839
839
  }
840
840
  }
841
841
  if (K.get(N))
842
842
  for (var kt = 0; kt < ie.length; kt++) {
843
- var xr = ie[kt];
844
- if (L[xr] & N)
843
+ var Sr = ie[kt];
844
+ if (L[Sr] & N)
845
845
  for (var wt = kt - 1; wt >= -1; wt--) {
846
846
  var kr = wt === -1 ? st : L[ie[wt]];
847
847
  if (kr & a) {
848
- kr === B && ae(xr, m);
848
+ kr === B && ae(Sr, m);
849
849
  break;
850
850
  }
851
851
  }
@@ -868,8 +868,8 @@ function Jn() {
868
868
  }
869
869
  if (K.get(N))
870
870
  for (var ze = 0; ze < ie.length; ze++) {
871
- var Sn = ie[ze];
872
- if (L[Sn] & N) {
871
+ var xn = ie[ze];
872
+ if (L[xn] & N) {
873
873
  for (var Tt = ze - 1; Tt >= 0 && L[ie[Tt]] & (J | n); Tt--)
874
874
  ae(ie[Tt], N);
875
875
  for (ze++; ze < ie.length && L[ie[ze]] & (J | n | N); ze++)
@@ -890,10 +890,10 @@ function Jn() {
890
890
  if (K.get(N))
891
891
  for (var Qt = 0, Fr = st; Qt < ie.length; Qt++) {
892
892
  var Cr = ie[Qt], Zt = L[Cr];
893
- Zt & N ? Fr === S && ae(Cr, S) : Zt & a && (Fr = Zt);
893
+ Zt & N ? Fr === x && ae(Cr, x) : Zt & a && (Fr = Zt);
894
894
  }
895
895
  if (K.get(o)) {
896
- var ut = C | N | m, Ar = ut | S, At = [];
896
+ var ut = C | N | m, Ar = ut | x, At = [];
897
897
  {
898
898
  for (var nt = [], at = 0; at < ie.length; at++)
899
899
  if (L[ie[at]] & o) {
@@ -921,7 +921,7 @@ function Jn() {
921
921
  var Rr = ie[tr];
922
922
  if (L[Rr] & Ar) {
923
923
  Mr = !0;
924
- var Gr = L[Rr] & ut ? C : S;
924
+ var Gr = L[Rr] & ut ? C : x;
925
925
  if (Gr === tt) {
926
926
  Ne = Gr;
927
927
  break;
@@ -933,7 +933,7 @@ function Jn() {
933
933
  for (var rr = Dt - 1; rr >= 0; rr--) {
934
934
  var Or = ie[rr];
935
935
  if (L[Or] & Ar) {
936
- var Lr = L[Or] & ut ? C : S;
936
+ var Lr = L[Or] & ut ? C : x;
937
937
  Lr !== tt ? Ne = Lr : Ne = tt;
938
938
  break;
939
939
  }
@@ -962,14 +962,14 @@ function Jn() {
962
962
  if (L[ie[pt]] & n)
963
963
  Br = pt;
964
964
  else {
965
- ar = L[ie[pt]] & ut ? C : S;
965
+ ar = L[ie[pt]] & ut ? C : x;
966
966
  break;
967
967
  }
968
968
  for (var Pr = _n, gt = Je + 1; gt < ie.length; gt++)
969
969
  if (L[ie[gt]] & (o | n))
970
970
  nr = gt;
971
971
  else {
972
- Pr = L[ie[gt]] & ut ? C : S;
972
+ Pr = L[ie[gt]] & ut ? C : x;
973
973
  break;
974
974
  }
975
975
  for (var or = Br; or <= nr; or++)
@@ -979,8 +979,8 @@ function Jn() {
979
979
  }
980
980
  }
981
981
  for (var Pe = oe.start; Pe <= oe.end; Pe++) {
982
- var xn = Y[Pe], Et = L[Pe];
983
- if (xn & 1 ? Et & (S | N | m) && Y[Pe]++ : Et & C ? Y[Pe]++ : Et & (m | N) && (Y[Pe] += 2), Et & n && (Y[Pe] = Pe === 0 ? oe.level : Y[Pe - 1]), Pe === oe.end || l(j[Pe]) & (V | k))
982
+ var Sn = Y[Pe], Et = L[Pe];
983
+ if (Sn & 1 ? Et & (x | N | m) && Y[Pe]++ : Et & C ? Y[Pe]++ : Et & (m | N) && (Y[Pe] += 2), Et & n && (Y[Pe] = Pe === 0 ? oe.level : Y[Pe - 1]), Pe === oe.end || l(j[Pe]) & (V | k))
984
984
  for (var Mt = Pe; Mt >= 0 && l(j[Mt]) & i; Mt--)
985
985
  Y[Mt] = oe.level;
986
986
  }
@@ -994,7 +994,7 @@ function Jn() {
994
994
  var Ke = L[Be];
995
995
  if (Ke & (C | B))
996
996
  return 1;
997
- if (Ke & (k | S) || We && Ke === P)
997
+ if (Ke & (k | x) || We && Ke === P)
998
998
  return 0;
999
999
  if (Ke & e) {
1000
1000
  var Nr = kn(Be);
@@ -1048,8 +1048,8 @@ function Jn() {
1048
1048
  if (Y < be) {
1049
1049
  for (var ne = re.levels.slice(Y, be + 1), oe = be; oe >= Y && l(j[oe]) & i; oe--)
1050
1050
  ne[oe] = ae.level;
1051
- for (var le = ae.level, de = 1 / 0, Se = 0; Se < ne.length; Se++) {
1052
- var Ce = ne[Se];
1051
+ for (var le = ae.level, de = 1 / 0, xe = 0; xe < ne.length; xe++) {
1052
+ var Ce = ne[xe];
1053
1053
  Ce > le && (le = Ce), Ce < de && (de = Ce | 1);
1054
1054
  }
1055
1055
  for (var ge = le; ge >= de; ge--)
@@ -1259,7 +1259,7 @@ troika_normal_${t} = vec3(normal);
1259
1259
  troika_uv_${t} = vec2(uv);
1260
1260
  troikaVertexTransform${t}(troika_position_${t}, troika_normal_${t}, troika_uv_${t});
1261
1261
  ${a}
1262
- `, r = r.replace(/\b(position|normal|uv)\b/g, (g, y, O, x) => /\battribute\s+vec[23]\s+$/.test(x.substr(0, O)) ? y : `troika_${y}_${t}`), c.map && c.map.channel > 0 || (r = r.replace(/\bMAP_UV\b/g, `troika_uv_${t}`))), r = Hr(r, t, e, a, o), d = Hr(d, t, i, s, f), {
1262
+ `, r = r.replace(/\b(position|normal|uv)\b/g, (g, y, O, S) => /\battribute\s+vec[23]\s+$/.test(S.substr(0, O)) ? y : `troika_${y}_${t}`), c.map && c.map.channel > 0 || (r = r.replace(/\bMAP_UV\b/g, `troika_uv_${t}`))), r = Hr(r, t, e, a, o), d = Hr(d, t, i, s, f), {
1263
1263
  vertexShader: r,
1264
1264
  fragmentShader: d
1265
1265
  };
@@ -1528,8 +1528,8 @@ function ra() {
1528
1528
  e = h.FDArray;
1529
1529
  var O = [];
1530
1530
  for (e = r.CFF.readIndex(t, e, O), h.FDArray = [], s = 0; s < O.length - 1; s++) {
1531
- var x = r.CFF.readDict(t, e + O[s], e + O[s + 1]);
1532
- r.CFF._readFDict(t, x, g), h.FDArray.push(x);
1531
+ var S = r.CFF.readDict(t, e + O[s], e + O[s + 1]);
1532
+ r.CFF._readFDict(t, S, g), h.FDArray.push(S);
1533
1533
  }
1534
1534
  e += O[O.length - 1], e = h.FDSelect, h.FDSelect = [];
1535
1535
  var F = t[e];
@@ -1625,8 +1625,8 @@ function ra() {
1625
1625
  for (l = 1; ; ) {
1626
1626
  var y = t[e + l];
1627
1627
  l++;
1628
- var O = y >> 4, x = 15 & y;
1629
- if (O != 15 && g.push(O), x != 15 && g.push(x), x == 15)
1628
+ var O = y >> 4, S = 15 & y;
1629
+ if (O != 15 && g.push(O), S != 15 && g.push(S), S == 15)
1630
1630
  break;
1631
1631
  }
1632
1632
  for (var F = "", U = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ".", "e", "e-", "reserved", "-", "endOfNumber"], T = 0; T < g.length; T++)
@@ -1655,8 +1655,8 @@ function ra() {
1655
1655
  if (y == -1) {
1656
1656
  var O;
1657
1657
  y = n.tables.length, s.push(p);
1658
- var x = o.readUshort(t, p);
1659
- x == 0 ? O = r.cmap.parse0(t, p) : x == 4 ? O = r.cmap.parse4(t, p) : x == 6 ? O = r.cmap.parse6(t, p) : x == 12 ? O = r.cmap.parse12(t, p) : console.debug("unknown format: " + x, l, h, p), n.tables.push(O);
1658
+ var S = o.readUshort(t, p);
1659
+ S == 0 ? O = r.cmap.parse0(t, p) : S == 4 ? O = r.cmap.parse4(t, p) : S == 6 ? O = r.cmap.parse6(t, p) : S == 12 ? O = r.cmap.parse12(t, p) : console.debug("unknown format: " + S, l, h, p), n.tables.push(O);
1660
1660
  }
1661
1661
  if (n[g] != null)
1662
1662
  throw "multiple tables for one platform+encoding";
@@ -1738,9 +1738,9 @@ function ra() {
1738
1738
  }
1739
1739
  for (i.ys = [], s = 0; s < l; s++)
1740
1740
  y = (4 & i.flags[s]) != 0, O = (32 & i.flags[s]) != 0, y ? (i.ys.push(O ? o[n] : -o[n]), n++) : O ? i.ys.push(0) : (i.ys.push(a.readShort(o, n)), n += 2);
1741
- var x = 0, F = 0;
1741
+ var S = 0, F = 0;
1742
1742
  for (s = 0; s < l; s++)
1743
- x += i.xs[s], F += i.ys[s], i.xs[s] = x, i.ys[s] = F;
1743
+ S += i.xs[s], F += i.ys[s], i.xs[s] = S, i.ys[s] = F;
1744
1744
  } else {
1745
1745
  var U;
1746
1746
  i.parts = [];
@@ -1750,11 +1750,11 @@ function ra() {
1750
1750
  if (i.parts.push(T), T.glyphIndex = a.readUshort(o, n), n += 2, 1 & U) {
1751
1751
  var G = a.readShort(o, n);
1752
1752
  n += 2;
1753
- var S = a.readShort(o, n);
1753
+ var x = a.readShort(o, n);
1754
1754
  n += 2;
1755
1755
  } else
1756
- G = a.readInt8(o, n), n++, S = a.readInt8(o, n), n++;
1757
- 2 & U ? (T.m.tx = G, T.m.ty = S) : (T.p1 = G, T.p2 = S), 8 & U ? (T.m.a = T.m.d = a.readF2dot14(o, n), n += 2) : 64 & U ? (T.m.a = a.readF2dot14(o, n), n += 2, T.m.d = a.readF2dot14(o, n), n += 2) : 128 & U && (T.m.a = a.readF2dot14(o, n), n += 2, T.m.b = a.readF2dot14(o, n), n += 2, T.m.c = a.readF2dot14(o, n), n += 2, T.m.d = a.readF2dot14(o, n), n += 2);
1756
+ G = a.readInt8(o, n), n++, x = a.readInt8(o, n), n++;
1757
+ 2 & U ? (T.m.tx = G, T.m.ty = x) : (T.p1 = G, T.p2 = x), 8 & U ? (T.m.a = T.m.d = a.readF2dot14(o, n), n += 2) : 64 & U ? (T.m.a = a.readF2dot14(o, n), n += 2, T.m.d = a.readF2dot14(o, n), n += 2) : 128 & U && (T.m.a = a.readF2dot14(o, n), n += 2, T.m.b = a.readF2dot14(o, n), n += 2, T.m.c = a.readF2dot14(o, n), n += 2, T.m.d = a.readF2dot14(o, n), n += 2);
1758
1758
  } while (32 & U);
1759
1759
  if (256 & U) {
1760
1760
  var C = a.readUshort(o, n);
@@ -1789,26 +1789,26 @@ function ra() {
1789
1789
  var y = n.readUshort(t, a);
1790
1790
  a += 2;
1791
1791
  for (var O = 0; O < y; O++) {
1792
- var x = i + n.readUshort(t, a);
1792
+ var S = i + n.readUshort(t, a);
1793
1793
  a += 2;
1794
- var F = n.readUshort(t, x);
1795
- x += 2;
1794
+ var F = n.readUshort(t, S);
1795
+ S += 2;
1796
1796
  for (var U = [], T = 0; T < F; T++) {
1797
- var G = n.readUshort(t, x);
1798
- x += 2, l != 0 && (m = r.GPOS.readValueRecord(t, x, l), x += 2 * p), h != 0 && (D = r.GPOS.readValueRecord(t, x, h), x += 2 * g), U.push({ gid2: G, val1: m, val2: D });
1797
+ var G = n.readUshort(t, S);
1798
+ S += 2, l != 0 && (m = r.GPOS.readValueRecord(t, S, l), S += 2 * p), h != 0 && (D = r.GPOS.readValueRecord(t, S, h), S += 2 * g), U.push({ gid2: G, val1: m, val2: D });
1799
1799
  }
1800
1800
  s.pairsets.push(U);
1801
1801
  }
1802
1802
  }
1803
1803
  if (s.fmt == 2) {
1804
- var S = n.readUshort(t, a);
1804
+ var x = n.readUshort(t, a);
1805
1805
  a += 2;
1806
1806
  var C = n.readUshort(t, a);
1807
1807
  a += 2;
1808
1808
  var N = n.readUshort(t, a);
1809
1809
  a += 2;
1810
1810
  var R = n.readUshort(t, a);
1811
- for (a += 2, s.classDef1 = r._lctf.readClassDef(t, i + S), s.classDef2 = r._lctf.readClassDef(t, i + C), s.matrix = [], O = 0; O < N; O++) {
1811
+ for (a += 2, s.classDef1 = r._lctf.readClassDef(t, i + x), s.classDef2 = r._lctf.readClassDef(t, i + C), s.matrix = [], O = 0; O < N; O++) {
1812
1812
  var J = [];
1813
1813
  for (T = 0; T < R; T++) {
1814
1814
  var m = null, D = null;
@@ -1892,8 +1892,8 @@ function ra() {
1892
1892
  if (s.fmt == 2) {
1893
1893
  var O = n.readUshort(t, a);
1894
1894
  a += 2, s.cDef = r._lctf.readClassDef(t, i + O), s.scset = [];
1895
- var x = n.readUshort(t, a);
1896
- for (a += 2, h = 0; h < x; h++) {
1895
+ var S = n.readUshort(t, a);
1896
+ for (a += 2, h = 0; h < S; h++) {
1897
1897
  var F = n.readUshort(t, a);
1898
1898
  a += 2, s.scset.push(F == 0 ? null : r.GSUB.readSubClassSet(t, i + F));
1899
1899
  }
@@ -1912,12 +1912,12 @@ function ra() {
1912
1912
  if (e == 7 && s.fmt == 1) {
1913
1913
  var G = n.readUshort(t, a);
1914
1914
  a += 2;
1915
- var S = n.readUint(t, a);
1915
+ var x = n.readUint(t, a);
1916
1916
  if (a += 4, o.ltype == 9)
1917
1917
  o.ltype = G;
1918
1918
  else if (o.ltype != G)
1919
1919
  throw "invalid extension substitution";
1920
- return r.GSUB.subt(t, o.ltype, i + S);
1920
+ return r.GSUB.subt(t, o.ltype, i + x);
1921
1921
  }
1922
1922
  console.debug("unsupported GSUB table LookupType", e, "format", s.fmt);
1923
1923
  }
@@ -2051,28 +2051,28 @@ function ra() {
2051
2051
  e += 2;
2052
2052
  var O = o.readUshort(t, e);
2053
2053
  e += 2;
2054
- var x = o.readUshort(t, e);
2054
+ var S = o.readUshort(t, e);
2055
2055
  e += 2;
2056
2056
  var F = o.readUshort(t, e);
2057
2057
  e += 2;
2058
2058
  var U, T = f[O], G = l + 12 * i + F;
2059
2059
  if (p == 0)
2060
- U = o.readUnicode(t, G, x / 2);
2060
+ U = o.readUnicode(t, G, S / 2);
2061
2061
  else if (p == 3 && g == 0)
2062
- U = o.readUnicode(t, G, x / 2);
2062
+ U = o.readUnicode(t, G, S / 2);
2063
2063
  else if (g == 0)
2064
- U = o.readASCII(t, G, x);
2064
+ U = o.readASCII(t, G, S);
2065
2065
  else if (g == 1)
2066
- U = o.readUnicode(t, G, x / 2);
2066
+ U = o.readUnicode(t, G, S / 2);
2067
2067
  else if (g == 3)
2068
- U = o.readUnicode(t, G, x / 2);
2068
+ U = o.readUnicode(t, G, S / 2);
2069
2069
  else {
2070
2070
  if (p != 1)
2071
2071
  throw "unknown encoding " + g + ", platformID: " + p;
2072
- U = o.readASCII(t, G, x), console.debug("reading unknown MAC encoding " + g + " as ASCII");
2072
+ U = o.readASCII(t, G, S), console.debug("reading unknown MAC encoding " + g + " as ASCII");
2073
2073
  }
2074
- var S = "p" + p + "," + y.toString(16);
2075
- n[S] == null && (n[S] = {}), n[S][T !== void 0 ? T : O] = U, n[S]._lang = y;
2074
+ var x = "p" + p + "," + y.toString(16);
2075
+ n[x] == null && (n[x] = {}), n[x][T !== void 0 ? T : O] = U, n[x]._lang = y;
2076
2076
  }
2077
2077
  for (var C in n)
2078
2078
  if (n[C].postScriptName != null && n[C]._lang == 1033)
@@ -2210,31 +2210,31 @@ function ra() {
2210
2210
  for (var l = f.vals[s], h = 0; h < l.length; h++) {
2211
2211
  var p = l[h], g = p.chain.length;
2212
2212
  if (!(g > n)) {
2213
- for (var y = !0, O = 0, x = 0; x < g; x++) {
2214
- for (; t[e + O + (1 + x)] == -1; )
2213
+ for (var y = !0, O = 0, S = 0; S < g; S++) {
2214
+ for (; t[e + O + (1 + S)] == -1; )
2215
2215
  O++;
2216
- p.chain[x] != t[e + O + (1 + x)] && (y = !1);
2216
+ p.chain[S] != t[e + O + (1 + S)] && (y = !1);
2217
2217
  }
2218
2218
  if (y) {
2219
- for (t[e] = p.nglyph, x = 0; x < g + O; x++)
2220
- t[e + x + 1] = -1;
2219
+ for (t[e] = p.nglyph, S = 0; S < g + O; S++)
2220
+ t[e + S + 1] = -1;
2221
2221
  break;
2222
2222
  }
2223
2223
  }
2224
2224
  }
2225
2225
  else if (a.ltype == 5 && f.fmt == 2)
2226
2226
  for (var F = r._lctf.getInterval(f.cDef, t[e]), U = f.cDef[F + 2], T = f.scset[U], G = 0; G < T.length; G++) {
2227
- var S = T[G], C = S.input;
2227
+ var x = T[G], C = x.input;
2228
2228
  if (!(C.length > n)) {
2229
- for (y = !0, x = 0; x < C.length; x++) {
2230
- var N = r._lctf.getInterval(f.cDef, t[e + 1 + x]);
2231
- if (F == -1 && f.cDef[N + 2] != C[x]) {
2229
+ for (y = !0, S = 0; S < C.length; S++) {
2230
+ var N = r._lctf.getInterval(f.cDef, t[e + 1 + S]);
2231
+ if (F == -1 && f.cDef[N + 2] != C[S]) {
2232
2232
  y = !1;
2233
2233
  break;
2234
2234
  }
2235
2235
  }
2236
2236
  if (y) {
2237
- var R = S.substLookupRecords;
2237
+ var R = x.substLookupRecords;
2238
2238
  for (h = 0; h < R.length; h += 2)
2239
2239
  R[h], R[h + 1];
2240
2240
  }
@@ -2280,7 +2280,7 @@ function ra() {
2280
2280
  }, r.U.P.closePath = function(t) {
2281
2281
  t.cmds.push("Z");
2282
2282
  }, r.U._drawCFF = function(t, e, a, o, n) {
2283
- for (var i = e.stack, s = e.nStems, f = e.haveWidth, l = e.width, h = e.open, p = 0, g = e.x, y = e.y, O = 0, x = 0, F = 0, U = 0, T = 0, G = 0, S = 0, C = 0, N = 0, R = 0, J = { val: 0, size: 0 }; p < t.length; ) {
2283
+ for (var i = e.stack, s = e.nStems, f = e.haveWidth, l = e.width, h = e.open, p = 0, g = e.x, y = e.y, O = 0, S = 0, F = 0, U = 0, T = 0, G = 0, x = 0, C = 0, N = 0, R = 0, J = { val: 0, size: 0 }; p < t.length; ) {
2284
2284
  r.CFF.getCharString(t, p, J);
2285
2285
  var m = J.val;
2286
2286
  if (p += J.size, m == "o1" || m == "o18")
@@ -2300,13 +2300,13 @@ function ra() {
2300
2300
  else if (m == "o8" || m == "o24") {
2301
2301
  D = i.length;
2302
2302
  for (var Z = 0; Z + 6 <= D; )
2303
- O = g + i.shift(), x = y + i.shift(), F = O + i.shift(), U = x + i.shift(), g = F + i.shift(), y = U + i.shift(), r.U.P.curveTo(n, O, x, F, U, g, y), Z += 6;
2303
+ O = g + i.shift(), S = y + i.shift(), F = O + i.shift(), U = S + i.shift(), g = F + i.shift(), y = U + i.shift(), r.U.P.curveTo(n, O, S, F, U, g, y), Z += 6;
2304
2304
  m == "o24" && (g += i.shift(), y += i.shift(), r.U.P.lineTo(n, g, y));
2305
2305
  } else {
2306
2306
  if (m == "o11")
2307
2307
  break;
2308
2308
  if (m == "o1234" || m == "o1235" || m == "o1236" || m == "o1237")
2309
- m == "o1234" && (x = y, F = (O = g + i.shift()) + i.shift(), R = U = x + i.shift(), G = U, C = y, g = (S = (T = (N = F + i.shift()) + i.shift()) + i.shift()) + i.shift(), r.U.P.curveTo(n, O, x, F, U, N, R), r.U.P.curveTo(n, T, G, S, C, g, y)), m == "o1235" && (O = g + i.shift(), x = y + i.shift(), F = O + i.shift(), U = x + i.shift(), N = F + i.shift(), R = U + i.shift(), T = N + i.shift(), G = R + i.shift(), S = T + i.shift(), C = G + i.shift(), g = S + i.shift(), y = C + i.shift(), i.shift(), r.U.P.curveTo(n, O, x, F, U, N, R), r.U.P.curveTo(n, T, G, S, C, g, y)), m == "o1236" && (O = g + i.shift(), x = y + i.shift(), F = O + i.shift(), R = U = x + i.shift(), G = U, S = (T = (N = F + i.shift()) + i.shift()) + i.shift(), C = G + i.shift(), g = S + i.shift(), r.U.P.curveTo(n, O, x, F, U, N, R), r.U.P.curveTo(n, T, G, S, C, g, y)), m == "o1237" && (O = g + i.shift(), x = y + i.shift(), F = O + i.shift(), U = x + i.shift(), N = F + i.shift(), R = U + i.shift(), T = N + i.shift(), G = R + i.shift(), S = T + i.shift(), C = G + i.shift(), Math.abs(S - g) > Math.abs(C - y) ? g = S + i.shift() : y = C + i.shift(), r.U.P.curveTo(n, O, x, F, U, N, R), r.U.P.curveTo(n, T, G, S, C, g, y));
2309
+ m == "o1234" && (S = y, F = (O = g + i.shift()) + i.shift(), R = U = S + i.shift(), G = U, C = y, g = (x = (T = (N = F + i.shift()) + i.shift()) + i.shift()) + i.shift(), r.U.P.curveTo(n, O, S, F, U, N, R), r.U.P.curveTo(n, T, G, x, C, g, y)), m == "o1235" && (O = g + i.shift(), S = y + i.shift(), F = O + i.shift(), U = S + i.shift(), N = F + i.shift(), R = U + i.shift(), T = N + i.shift(), G = R + i.shift(), x = T + i.shift(), C = G + i.shift(), g = x + i.shift(), y = C + i.shift(), i.shift(), r.U.P.curveTo(n, O, S, F, U, N, R), r.U.P.curveTo(n, T, G, x, C, g, y)), m == "o1236" && (O = g + i.shift(), S = y + i.shift(), F = O + i.shift(), R = U = S + i.shift(), G = U, x = (T = (N = F + i.shift()) + i.shift()) + i.shift(), C = G + i.shift(), g = x + i.shift(), r.U.P.curveTo(n, O, S, F, U, N, R), r.U.P.curveTo(n, T, G, x, C, g, y)), m == "o1237" && (O = g + i.shift(), S = y + i.shift(), F = O + i.shift(), U = S + i.shift(), N = F + i.shift(), R = U + i.shift(), T = N + i.shift(), G = R + i.shift(), x = T + i.shift(), C = G + i.shift(), Math.abs(x - g) > Math.abs(C - y) ? g = x + i.shift() : y = C + i.shift(), r.U.P.curveTo(n, O, S, F, U, N, R), r.U.P.curveTo(n, T, G, x, C, g, y));
2310
2310
  else if (m == "o14") {
2311
2311
  if (i.length > 0 && !f && (l = i.shift() + a.nominalWidthX, f = !0), i.length == 4) {
2312
2312
  var $ = i.shift(), B = i.shift(), M = i.shift(), v = i.shift(), b = r.CFF.glyphBySE(a, M), w = r.CFF.glyphBySE(a, v);
@@ -2322,13 +2322,13 @@ function ra() {
2322
2322
  else if (m == "o25") {
2323
2323
  for (; i.length > 6; )
2324
2324
  g += i.shift(), y += i.shift(), r.U.P.lineTo(n, g, y);
2325
- O = g + i.shift(), x = y + i.shift(), F = O + i.shift(), U = x + i.shift(), g = F + i.shift(), y = U + i.shift(), r.U.P.curveTo(n, O, x, F, U, g, y);
2325
+ O = g + i.shift(), S = y + i.shift(), F = O + i.shift(), U = S + i.shift(), g = F + i.shift(), y = U + i.shift(), r.U.P.curveTo(n, O, S, F, U, g, y);
2326
2326
  } else if (m == "o26")
2327
2327
  for (i.length % 2 && (g += i.shift()); i.length > 0; )
2328
- O = g, x = y + i.shift(), g = F = O + i.shift(), y = (U = x + i.shift()) + i.shift(), r.U.P.curveTo(n, O, x, F, U, g, y);
2328
+ O = g, S = y + i.shift(), g = F = O + i.shift(), y = (U = S + i.shift()) + i.shift(), r.U.P.curveTo(n, O, S, F, U, g, y);
2329
2329
  else if (m == "o27")
2330
2330
  for (i.length % 2 && (y += i.shift()); i.length > 0; )
2331
- x = y, F = (O = g + i.shift()) + i.shift(), U = x + i.shift(), g = F + i.shift(), y = U, r.U.P.curveTo(n, O, x, F, U, g, y);
2331
+ S = y, F = (O = g + i.shift()) + i.shift(), U = S + i.shift(), g = F + i.shift(), y = U, r.U.P.curveTo(n, O, S, F, U, g, y);
2332
2332
  else if (m == "o10" || m == "o29") {
2333
2333
  var A = m == "o10" ? o : a;
2334
2334
  if (i.length == 0)
@@ -2340,7 +2340,7 @@ function ra() {
2340
2340
  } else if (m == "o30" || m == "o31") {
2341
2341
  var E = i.length, P = (Z = 0, m == "o31");
2342
2342
  for (Z += E - (D = -3 & E); Z < D; )
2343
- P ? (x = y, F = (O = g + i.shift()) + i.shift(), y = (U = x + i.shift()) + i.shift(), D - Z == 5 ? (g = F + i.shift(), Z++) : g = F, P = !1) : (O = g, x = y + i.shift(), F = O + i.shift(), U = x + i.shift(), g = F + i.shift(), D - Z == 5 ? (y = U + i.shift(), Z++) : y = U, P = !0), r.U.P.curveTo(n, O, x, F, U, g, y), Z += 4;
2343
+ P ? (S = y, F = (O = g + i.shift()) + i.shift(), y = (U = S + i.shift()) + i.shift(), D - Z == 5 ? (g = F + i.shift(), Z++) : g = F, P = !1) : (O = g, S = y + i.shift(), F = O + i.shift(), U = S + i.shift(), g = F + i.shift(), D - Z == 5 ? (y = U + i.shift(), Z++) : y = U, P = !0), r.U.P.curveTo(n, O, S, F, U, g, y), Z += 4;
2344
2344
  } else {
2345
2345
  if ((m + "").charAt(0) == "o")
2346
2346
  throw console.debug("Unknown operation: " + m, t), m;
@@ -2406,7 +2406,7 @@ function na() {
2406
2406
  var O = new r(32);
2407
2407
  for (h = 0; h < 32; ++h)
2408
2408
  O[h] = 5;
2409
- var x = g(y, 9, 1), F = g(O, 5, 1), U = function(m) {
2409
+ var S = g(y, 9, 1), F = g(O, 5, 1), U = function(m) {
2410
2410
  for (var D = m[0], k = 1; k < m.length; ++k)
2411
2411
  m[k] > D && (D = m[k]);
2412
2412
  return D;
@@ -2416,8 +2416,8 @@ function na() {
2416
2416
  }, G = function(m, D) {
2417
2417
  var k = D / 8 | 0;
2418
2418
  return (m[k] | m[k + 1] << 8 | m[k + 2] << 16) >> (7 & D);
2419
- }, S = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], C = function(m, D, k) {
2420
- var V = new Error(D || S[m]);
2419
+ }, x = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], C = function(m, D, k) {
2420
+ var V = new Error(D || x[m]);
2421
2421
  if (V.code = m, Error.captureStackTrace && Error.captureStackTrace(V, C), !k)
2422
2422
  throw V;
2423
2423
  return V;
@@ -2448,7 +2448,7 @@ function na() {
2448
2448
  continue;
2449
2449
  }
2450
2450
  if (P == 1)
2451
- w = x, A = F, _ = 9, W = 5;
2451
+ w = S, A = F, _ = 9, W = 5;
2452
2452
  else if (P == 2) {
2453
2453
  var X = T(m, v, 31) + 257, z = T(m, v + 10, 15) + 4, pe = X + T(m, v + 5, 31) + 1;
2454
2454
  v += 14;
@@ -2491,11 +2491,11 @@ function na() {
2491
2491
  }
2492
2492
  var de = le - 254;
2493
2493
  if (le > 264) {
2494
- var Se = t[te = le - 257];
2495
- de = T(m, v, (1 << Se) - 1) + i[te], v += Se;
2494
+ var xe = t[te = le - 257];
2495
+ de = T(m, v, (1 << xe) - 1) + i[te], v += xe;
2496
2496
  }
2497
2497
  var Ce = A[G(m, v) & ne], ge = Ce >>> 4;
2498
- if (Ce || C(3), v += 15 & Ce, Y = f[ge], ge > 3 && (Se = e[ge], Y += G(m, v) & (1 << Se) - 1, v += Se), v > E) {
2498
+ if (Ce || C(3), v += 15 & Ce, Y = f[ge], ge > 3 && (xe = e[ge], Y += G(m, v) & (1 << xe) - 1, v += xe), v > E) {
2499
2499
  Z && C(0);
2500
2500
  break;
2501
2501
  }
@@ -2566,7 +2566,7 @@ function aa(c, r) {
2566
2566
  Z: 0
2567
2567
  }, u = { C: "18g,ca,368,1kz", D: "17k,6,2,2+4,5+c,2+6,2+1,10+1,9+f,j+11,2+1,a,2,2+1,15+2,3,j+2,6+3,2+8,2,2,2+1,w+a,4+e,3+3,2,3+2,3+5,23+w,2f+4,3,2+9,2,b,2+3,3,1k+9,6+1,3+1,2+2,2+d,30g,p+y,1,1+1g,f+x,2,sd2+1d,jf3+4,f+3,2+4,2+2,b+3,42,2,4+2,2+1,2,3,t+1,9f+w,2,el+2,2+g,d+2,2l,2+1,5,3+1,2+1,2,3,6,16wm+1v", R: "17m+3,2,2,6+3,m,15+2,2+2,h+h,13,3+8,2,2,3+1,2,p+1,x,5+4,5,a,2,2,3,u,c+2,g+1,5,2+1,4+1,5j,6+1,2,b,2+2,f,2+1,1s+2,2,3+1,7,1ez0,2,2+1,4+4,b,4,3,b,42,2+2,4,3,2+1,2,o+3,ae,ep,x,2o+2,3+1,3,5+1,6", L: "x9u,jff,a,fd,jv", T: "4t,gj+33,7o+4,1+1,7c+18,2,2+1,2+1,2,21+a,2,1b+k,h,2u+6,3+5,3+1,2+3,y,2,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,3,7,6+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+d,1,1+1,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,ek,3+1,r+4,1e+4,6+5,2p+c,1+3,1,1+2,1+b,2db+2,3y,2p+v,ff+3,30+1,n9x,1+2,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,5s,6y+2,ea,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+9,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2,2b+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,470+8,at4+4,1o+6,t5,1s+3,2a,f5l+1,2+3,43o+2,a+7,1+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,1,gzau,v+2n,3l+6n" }, t = 1, e = 2, a = 4, o = 8, n = 16, i = 32;
2568
2568
  let s;
2569
- function f(S) {
2569
+ function f(x) {
2570
2570
  if (!s) {
2571
2571
  const C = {
2572
2572
  R: e,
@@ -2587,26 +2587,26 @@ function aa(c, r) {
2587
2587
  });
2588
2588
  }
2589
2589
  }
2590
- return s.get(S) || i;
2590
+ return s.get(x) || i;
2591
2591
  }
2592
2592
  const l = 1, h = 2, p = 3, g = 4, y = [null, "isol", "init", "fina", "medi"];
2593
- function O(S) {
2594
- const C = new Uint8Array(S.length);
2593
+ function O(x) {
2594
+ const C = new Uint8Array(x.length);
2595
2595
  let N = i, R = l, J = -1;
2596
- for (let m = 0; m < S.length; m++) {
2597
- const D = S.codePointAt(m);
2596
+ for (let m = 0; m < x.length; m++) {
2597
+ const D = x.codePointAt(m);
2598
2598
  let k = f(D) | 0, V = l;
2599
2599
  k & o || (N & (t | a | n) ? k & (e | a | n) ? (V = p, (R === l || R === p) && C[J]++) : k & (t | i) && (R === h || R === g) && C[J]-- : N & (e | i) && (R === h || R === g) && C[J]--, R = C[m] = V, N = k, J = m, D > 65535 && m++);
2600
2600
  }
2601
2601
  return C;
2602
2602
  }
2603
- function x(S, C) {
2603
+ function S(x, C) {
2604
2604
  const N = [];
2605
2605
  for (let J = 0; J < C.length; J++) {
2606
2606
  const m = C.codePointAt(J);
2607
- m > 65535 && J++, N.push(c.U.codeToGlyph(S, m));
2607
+ m > 65535 && J++, N.push(c.U.codeToGlyph(x, m));
2608
2608
  }
2609
- const R = S.GSUB;
2609
+ const R = x.GSUB;
2610
2610
  if (R) {
2611
2611
  const { lookupList: J, featureList: m } = R;
2612
2612
  let D;
@@ -2626,15 +2626,15 @@ function aa(c, r) {
2626
2626
  }
2627
2627
  return N;
2628
2628
  }
2629
- function F(S, C) {
2629
+ function F(x, C) {
2630
2630
  const N = new Int16Array(C.length * 3);
2631
2631
  let R = 0;
2632
2632
  for (; R < C.length; R++) {
2633
2633
  const k = C[R];
2634
2634
  if (k === -1)
2635
2635
  continue;
2636
- N[R * 3 + 2] = S.hmtx.aWidth[k];
2637
- const V = S.GPOS;
2636
+ N[R * 3 + 2] = x.hmtx.aWidth[k];
2637
+ const V = x.GPOS;
2638
2638
  if (V) {
2639
2639
  const I = V.lookupList;
2640
2640
  for (let Z = 0; Z < I.length; Z++) {
@@ -2681,7 +2681,7 @@ function aa(c, r) {
2681
2681
  const b = J();
2682
2682
  if (b !== -1) {
2683
2683
  const w = C[b];
2684
- if (U(S, w) === 3) {
2684
+ if (U(x, w) === 3) {
2685
2685
  const A = c._lctf.coverageIndex(M.mark2Coverage, w);
2686
2686
  if (A !== -1) {
2687
2687
  const _ = M.mark1Array[v], W = M.mark2Array[A][_.markClass];
@@ -2694,13 +2694,13 @@ function aa(c, r) {
2694
2694
  }
2695
2695
  }
2696
2696
  }
2697
- } else if (S.kern && !S.cff) {
2697
+ } else if (x.kern && !x.cff) {
2698
2698
  const I = J();
2699
2699
  if (I !== -1) {
2700
- const Z = S.kern.glyph1.indexOf(C[I]);
2700
+ const Z = x.kern.glyph1.indexOf(C[I]);
2701
2701
  if (Z !== -1) {
2702
- const $ = S.kern.rval[Z].glyph2.indexOf(k);
2703
- $ !== -1 && (N[I * 3 + 2] += S.kern.rval[Z].vals[$]);
2702
+ const $ = x.kern.rval[Z].glyph2.indexOf(k);
2703
+ $ !== -1 && (N[I * 3 + 2] += x.kern.rval[Z].vals[$]);
2704
2704
  }
2705
2705
  }
2706
2706
  }
@@ -2713,24 +2713,24 @@ function aa(c, r) {
2713
2713
  return -1;
2714
2714
  }
2715
2715
  function m(k) {
2716
- return U(S, k) === 1;
2716
+ return U(x, k) === 1;
2717
2717
  }
2718
2718
  function D(k, V) {
2719
2719
  for (let I = 0; I < 3; I++)
2720
2720
  N[V * 3 + I] += k[I] || 0;
2721
2721
  }
2722
2722
  }
2723
- function U(S, C) {
2724
- const N = S.GDEF && S.GDEF.glyphClassDef;
2723
+ function U(x, C) {
2724
+ const N = x.GDEF && x.GDEF.glyphClassDef;
2725
2725
  return N ? c.U._getGlyphClass(C, N) : 0;
2726
2726
  }
2727
- function T(...S) {
2728
- for (let C = 0; C < S.length; C++)
2729
- if (typeof S[C] == "number")
2730
- return S[C];
2727
+ function T(...x) {
2728
+ for (let C = 0; C < x.length; C++)
2729
+ if (typeof x[C] == "number")
2730
+ return x[C];
2731
2731
  }
2732
- function G(S) {
2733
- const C = /* @__PURE__ */ Object.create(null), N = S["OS/2"], R = S.hhea, J = S.head.unitsPerEm, m = T(N && N.sTypoAscender, R && R.ascender, J), D = {
2732
+ function G(x) {
2733
+ const C = /* @__PURE__ */ Object.create(null), N = x["OS/2"], R = x.hhea, J = x.head.unitsPerEm, m = T(N && N.sTypoAscender, R && R.ascender, J), D = {
2734
2734
  unitsPerEm: J,
2735
2735
  ascender: m,
2736
2736
  descender: T(N && N.sTypoDescender, R && R.descender, 0),
@@ -2738,18 +2738,18 @@ function aa(c, r) {
2738
2738
  xHeight: T(N && N.sxHeight, m),
2739
2739
  lineGap: T(N && N.sTypoLineGap, R && R.lineGap),
2740
2740
  supportsCodePoint(k) {
2741
- return c.U.codeToGlyph(S, k) > 0;
2741
+ return c.U.codeToGlyph(x, k) > 0;
2742
2742
  },
2743
2743
  forEachGlyph(k, V, I, Z) {
2744
2744
  let $ = 0;
2745
- const B = 1 / D.unitsPerEm * V, M = x(S, k);
2745
+ const B = 1 / D.unitsPerEm * V, M = S(x, k);
2746
2746
  let v = 0;
2747
- const b = F(S, M);
2747
+ const b = F(x, M);
2748
2748
  return M.forEach((w, A) => {
2749
2749
  if (w !== -1) {
2750
2750
  let _ = C[w];
2751
2751
  if (!_) {
2752
- const { cmds: W, crds: E } = c.U.glyphToPath(S, w);
2752
+ const { cmds: W, crds: E } = c.U.glyphToPath(x, w);
2753
2753
  let P = "", H = 0;
2754
2754
  for (let ue = 0, Q = W.length; ue < Q; ue++) {
2755
2755
  const te = d[W[ue]];
@@ -2768,7 +2768,7 @@ function aa(c, r) {
2768
2768
  ee = z = X = pe = 0;
2769
2769
  _ = C[w] = {
2770
2770
  index: w,
2771
- advanceWidth: S.hmtx.aWidth[w],
2771
+ advanceWidth: x.hmtx.aWidth[w],
2772
2772
  xMin: ee,
2773
2773
  yMin: X,
2774
2774
  xMax: z,
@@ -2851,18 +2851,18 @@ function ia() {
2851
2851
  function o(F, U) {
2852
2852
  var T;
2853
2853
  (T = F, T.replace(/U\+/gi, "").replace(/^,+|,+$/g, "").split(/,+/).map(function(G) {
2854
- return G.split("-").map(function(S) {
2855
- return parseInt(S.trim(), 16);
2854
+ return G.split("-").map(function(x) {
2855
+ return parseInt(x.trim(), 16);
2856
2856
  });
2857
2857
  })).forEach(function(G) {
2858
- var S = G[0], C = G[1];
2859
- C === void 0 && (C = S), U(S, C);
2858
+ var x = G[0], C = G[1];
2859
+ C === void 0 && (C = x), U(x, C);
2860
2860
  });
2861
2861
  }
2862
2862
  function n(F, U) {
2863
2863
  o(F, function(T, G) {
2864
- for (var S = T; S <= G; S++)
2865
- U(S);
2864
+ for (var x = T; x <= G; x++)
2865
+ U(x);
2866
2866
  });
2867
2867
  }
2868
2868
  var i = {}, s = {}, f = /* @__PURE__ */ new WeakMap(), l = "https://cdn.jsdelivr.net/gh/lojjic/unicode-font-resolver@v1.0.1/packages/data";
@@ -2875,8 +2875,8 @@ function ia() {
2875
2875
  var p, g = /* @__PURE__ */ new Map();
2876
2876
  function y(F, U, T) {
2877
2877
  return F[U] ? U : F[T] ? T : function(G) {
2878
- for (var S in G)
2879
- return S;
2878
+ for (var x in G)
2879
+ return x;
2880
2880
  }(F);
2881
2881
  }
2882
2882
  function O(F, U) {
@@ -2888,7 +2888,7 @@ function ia() {
2888
2888
  }
2889
2889
  return T;
2890
2890
  }
2891
- function x(F) {
2891
+ function S(F) {
2892
2892
  return p || (p = /* @__PURE__ */ new Set(), n("9-D,20,85,A0,1680,2000-200A,2028-202F,205F,3000", function(U) {
2893
2893
  p.add(U);
2894
2894
  })), p.has(F);
@@ -2899,8 +2899,8 @@ function ia() {
2899
2899
  U === void 0 && (U = {});
2900
2900
  var T, G = U.lang;
2901
2901
  G === void 0 && (G = /\p{Script=Hangul}/u.test(T = F) ? "ko" : /\p{Script=Hiragana}|\p{Script=Katakana}/u.test(T) ? "ja" : "en");
2902
- var S = U.category;
2903
- S === void 0 && (S = "sans-serif");
2902
+ var x = U.category;
2903
+ x === void 0 && (x = "sans-serif");
2904
2904
  var C = U.style;
2905
2905
  C === void 0 && (C = "normal");
2906
2906
  var N = U.weight;
@@ -2964,13 +2964,13 @@ function ia() {
2964
2964
  }).then(function() {
2965
2965
  for (var v, b = null, w = 0; w < F.length; w++) {
2966
2966
  var A = F.codePointAt(w);
2967
- if (b && (x(A) || h(b).has(A)))
2967
+ if (b && (S(A) || h(b).has(A)))
2968
2968
  m[w] = m[w - 1];
2969
2969
  else {
2970
2970
  b = s[V[w]];
2971
2971
  var _ = D[b.id];
2972
2972
  if (!_) {
2973
- var W = b.typeforms, E = y(W, S, "sans-serif"), P = y(W[E], C, "normal"), H = O((v = W[E]) === null || v === void 0 ? void 0 : v[P], N);
2973
+ var W = b.typeforms, E = y(W, x, "sans-serif"), P = y(W[E], C, "normal"), H = O((v = W[E]) === null || v === void 0 ? void 0 : v[P], N);
2974
2974
  _ = D[b.id] = R + "/font-files/" + b.id + "/" + E + "." + P + "." + H + ".woff";
2975
2975
  }
2976
2976
  var ee = J.get(_);
@@ -3020,20 +3020,20 @@ function sa(c, r) {
3020
3020
  unicodeFontsURL: l
3021
3021
  } = {}) {
3022
3022
  const h = new Uint8Array(a.length), p = [];
3023
- a.length || x();
3023
+ a.length || S();
3024
3024
  const g = /* @__PURE__ */ new Map(), y = [];
3025
3025
  if (s !== "italic" && (s = "normal"), typeof f != "number" && (f = f === "bold" ? 700 : 400), i && !Array.isArray(i) && (i = [i]), i = i.slice().filter((U) => !U.lang || U.lang.test(n)).reverse(), i.length) {
3026
- let S = 0;
3026
+ let x = 0;
3027
3027
  (function C(N = 0) {
3028
3028
  for (let R = N, J = a.length; R < J; R++) {
3029
3029
  const m = a.codePointAt(R);
3030
- if (S === 1 && p[h[R - 1]].supportsCodePoint(m) || /\s/.test(a[R]))
3031
- h[R] = h[R - 1], S === 2 && (y[y.length - 1][1] = R);
3030
+ if (x === 1 && p[h[R - 1]].supportsCodePoint(m) || /\s/.test(a[R]))
3031
+ h[R] = h[R - 1], x === 2 && (y[y.length - 1][1] = R);
3032
3032
  else
3033
3033
  for (let D = h[R], k = i.length; D <= k; D++)
3034
3034
  if (D === k) {
3035
- const V = S === 2 ? y[y.length - 1] : y[y.length] = [R, R];
3036
- V[1] = R, S = 2;
3035
+ const V = x === 2 ? y[y.length - 1] : y[y.length] = [R, R];
3036
+ V[1] = R, x = 2;
3037
3037
  } else {
3038
3038
  h[R] = D;
3039
3039
  const { src: V, unicodeRange: I } = i[D];
@@ -3047,12 +3047,12 @@ function sa(c, r) {
3047
3047
  }
3048
3048
  if (Z.supportsCodePoint(m)) {
3049
3049
  let $ = g.get(Z);
3050
- typeof $ != "number" && ($ = p.length, p.push(Z), g.set(Z, $)), h[R] = $, S = 1;
3050
+ typeof $ != "number" && ($ = p.length, p.push(Z), g.set(Z, $)), h[R] = $, x = 1;
3051
3051
  break;
3052
3052
  }
3053
3053
  }
3054
3054
  }
3055
- m > 65535 && R + 1 < J && (h[R + 1] = h[R], R++, S === 2 && (y[y.length - 1][1] = R));
3055
+ m > 65535 && R + 1 < J && (h[R + 1] = h[R], R++, x === 2 && (y[y.length - 1][1] = R));
3056
3056
  }
3057
3057
  O();
3058
3058
  })();
@@ -3068,24 +3068,24 @@ function sa(c, r) {
3068
3068
  weight: f,
3069
3069
  dataUrl: l
3070
3070
  }).then(({ fontUrls: T, chars: G }) => {
3071
- const S = p.length;
3071
+ const x = p.length;
3072
3072
  let C = 0;
3073
3073
  y.forEach((R) => {
3074
3074
  for (let J = 0, m = R[1] - R[0]; J <= m; J++)
3075
- h[R[0] + J] = G[C++] + S;
3075
+ h[R[0] + J] = G[C++] + x;
3076
3076
  C++;
3077
3077
  });
3078
3078
  let N = 0;
3079
3079
  T.forEach((R, J) => {
3080
3080
  e(R, (m) => {
3081
- p[J + S] = m, ++N === T.length && x();
3081
+ p[J + x] = m, ++N === T.length && S();
3082
3082
  });
3083
3083
  });
3084
3084
  });
3085
3085
  } else
3086
- x();
3086
+ S();
3087
3087
  }
3088
- function x() {
3088
+ function S() {
3089
3089
  o({
3090
3090
  chars: h,
3091
3091
  fonts: p
@@ -3093,8 +3093,8 @@ function sa(c, r) {
3093
3093
  }
3094
3094
  function F(U, T) {
3095
3095
  for (let G = 0; G < T.length; G++) {
3096
- const [S, C = S] = T[G];
3097
- if (S <= U && U <= C)
3096
+ const [x, C = x] = T[G];
3097
+ if (x <= U && U <= C)
3098
3098
  return !0;
3099
3099
  }
3100
3100
  return !1;
@@ -3114,18 +3114,18 @@ const fa = /* @__PURE__ */ it({
3114
3114
  });
3115
3115
  function la(c, r) {
3116
3116
  const u = /[\u00AD\u034F\u061C\u115F-\u1160\u17B4-\u17B5\u180B-\u180E\u200B-\u200F\u202A-\u202E\u2060-\u206F\u3164\uFE00-\uFE0F\uFEFF\uFFA0\uFFF0-\uFFF8]/, t = "[^\\S\\u00A0]", e = new RegExp(`${t}|[\\-\\u007C\\u00AD\\u2010\\u2012-\\u2014\\u2027\\u2056\\u2E17\\u2E40]`);
3117
- function a({ text: p, lang: g, fonts: y, style: O, weight: x, preResolvedFonts: F, unicodeFontsURL: U }, T) {
3118
- const G = ({ chars: S, fonts: C }) => {
3117
+ function a({ text: p, lang: g, fonts: y, style: O, weight: S, preResolvedFonts: F, unicodeFontsURL: U }, T) {
3118
+ const G = ({ chars: x, fonts: C }) => {
3119
3119
  let N, R;
3120
3120
  const J = [];
3121
- for (let m = 0; m < S.length; m++)
3122
- S[m] !== R ? (R = S[m], J.push(N = { start: m, end: m, fontObj: C[S[m]] })) : N.end = m;
3121
+ for (let m = 0; m < x.length; m++)
3122
+ x[m] !== R ? (R = x[m], J.push(N = { start: m, end: m, fontObj: C[x[m]] })) : N.end = m;
3123
3123
  T(J);
3124
3124
  };
3125
3125
  F ? G(F) : c(
3126
3126
  p,
3127
3127
  G,
3128
- { lang: g, fonts: y, style: O, weight: x, unicodeFontsURL: U }
3128
+ { lang: g, fonts: y, style: O, weight: S, unicodeFontsURL: U }
3129
3129
  );
3130
3130
  }
3131
3131
  function o({
@@ -3133,12 +3133,12 @@ function la(c, r) {
3133
3133
  font: g,
3134
3134
  lang: y,
3135
3135
  sdfGlyphSize: O = 64,
3136
- fontSize: x = 400,
3136
+ fontSize: S = 400,
3137
3137
  fontWeight: F = 1,
3138
3138
  fontStyle: U = "normal",
3139
3139
  letterSpacing: T = 0,
3140
3140
  lineHeight: G = "normal",
3141
- maxWidth: S = 1 / 0,
3141
+ maxWidth: x = 1 / 0,
3142
3142
  direction: C,
3143
3143
  textAlign: N = "left",
3144
3144
  textIndent: R = 0,
@@ -3156,7 +3156,7 @@ function la(c, r) {
3156
3156
  const b = f(), w = { fontLoad: 0, typesetting: 0 };
3157
3157
  p.indexOf("\r") > -1 && (console.info("Typesetter: got text with \\r chars; normalizing to \\n"), p = p.replace(/\r\n/g, `
3158
3158
  `).replace(/\r/g, `
3159
- `)), x = +x, T = +T, S = +S, G = G || "normal", R = +R, a({
3159
+ `)), S = +S, T = +T, x = +x, G = G || "normal", R = +R, a({
3160
3160
  text: p,
3161
3161
  lang: y,
3162
3162
  style: U,
@@ -3166,22 +3166,22 @@ function la(c, r) {
3166
3166
  preResolvedFonts: Z
3167
3167
  }, (A) => {
3168
3168
  w.fontLoad = f() - b;
3169
- const _ = isFinite(S);
3169
+ const _ = isFinite(x);
3170
3170
  let W = null, E = null, P = null, H = null, ee = null, X = null, z = null, pe = null, ue = 0, Q = 0, te = J !== "nowrap";
3171
3171
  const se = /* @__PURE__ */ new Map(), j = f();
3172
3172
  let re = R, q = 0, L = new l();
3173
3173
  const he = [L];
3174
3174
  A.forEach((ne) => {
3175
- const { fontObj: oe } = ne, { ascender: le, descender: de, unitsPerEm: Se, lineGap: Ce, capHeight: ge, xHeight: me } = oe;
3175
+ const { fontObj: oe } = ne, { ascender: le, descender: de, unitsPerEm: xe, lineGap: Ce, capHeight: ge, xHeight: me } = oe;
3176
3176
  let fe = se.get(oe);
3177
3177
  if (!fe) {
3178
- const ce = x / Se, Ue = G === "normal" ? (le - de + Ce) * ce : G * x, Xe = (Ue - (le - de) * ce) / 2, _e = Math.min(Ue, (le - de) * ce), ye = (le + de) / 2 * ce + _e / 2;
3178
+ const ce = S / xe, Ue = G === "normal" ? (le - de + Ce) * ce : G * S, Xe = (Ue - (le - de) * ce) / 2, _e = Math.min(Ue, (le - de) * ce), ye = (le + de) / 2 * ce + _e / 2;
3179
3179
  fe = {
3180
3180
  index: se.size,
3181
3181
  src: oe.src,
3182
3182
  fontObj: oe,
3183
3183
  fontSizeMult: ce,
3184
- unitsPerEm: Se,
3184
+ unitsPerEm: xe,
3185
3185
  ascender: le * ce,
3186
3186
  descender: de * ce,
3187
3187
  capHeight: ge * ce,
@@ -3196,12 +3196,12 @@ function la(c, r) {
3196
3196
  }, se.set(oe, fe);
3197
3197
  }
3198
3198
  const { fontSizeMult: ke } = fe, we = p.slice(ne.start, ne.end + 1);
3199
- let Oe, xe;
3200
- oe.forEachGlyph(we, x, T, (ce, Ue, Xe, _e) => {
3201
- Ue += q, _e += ne.start, Oe = Ue, xe = ce;
3199
+ let Oe, Se;
3200
+ oe.forEachGlyph(we, S, T, (ce, Ue, Xe, _e) => {
3201
+ Ue += q, _e += ne.start, Oe = Ue, Se = ce;
3202
3202
  const ye = p.charAt(_e), Ae = ce.advanceWidth * ke, Te = L.count;
3203
3203
  let ve;
3204
- if ("isEmpty" in ce || (ce.isWhitespace = !!ye && new RegExp(t).test(ye), ce.canBreakAfter = !!ye && e.test(ye), ce.isEmpty = ce.xMin === ce.xMax || ce.yMin === ce.yMax || u.test(ye)), !ce.isWhitespace && !ce.isEmpty && Q++, te && _ && !ce.isWhitespace && Ue + Ae + re > S && Te) {
3204
+ if ("isEmpty" in ce || (ce.isWhitespace = !!ye && new RegExp(t).test(ye), ce.canBreakAfter = !!ye && e.test(ye), ce.isEmpty = ce.xMin === ce.xMax || ce.yMin === ce.yMax || u.test(ye)), !ce.isWhitespace && !ce.isEmpty && Q++, te && _ && !ce.isWhitespace && Ue + Ae + re > x && Te) {
3205
3205
  if (L.glyphAt(Te - 1).glyphObj.canBreakAfter)
3206
3206
  ve = new l(), re = -Ue;
3207
3207
  else
@@ -3217,12 +3217,12 @@ function la(c, r) {
3217
3217
  ve.glyphAt(De).x -= Me;
3218
3218
  break;
3219
3219
  }
3220
- ve && (L.isSoftWrapped = !0, L = ve, he.push(L), ue = S);
3220
+ ve && (L.isSoftWrapped = !0, L = ve, he.push(L), ue = x);
3221
3221
  }
3222
3222
  let Fe = L.glyphAt(L.count);
3223
3223
  Fe.glyphObj = ce, Fe.x = Ue + re, Fe.y = Xe, Fe.width = Ae, Fe.charIndex = _e, Fe.fontData = fe, ye === `
3224
- ` && (L = new l(), he.push(L), re = -(Ue + Ae + T * x) + R);
3225
- }), q = Oe + xe.advanceWidth * ke + T * x;
3224
+ ` && (L = new l(), he.push(L), re = -(Ue + Ae + T * S) + R);
3225
+ }), q = Oe + Se.advanceWidth * ke + T * S;
3226
3226
  });
3227
3227
  let K = 0;
3228
3228
  he.forEach((ne) => {
@@ -3230,8 +3230,8 @@ function la(c, r) {
3230
3230
  for (let le = ne.count; le--; ) {
3231
3231
  const de = ne.glyphAt(le);
3232
3232
  oe && !de.glyphObj.isWhitespace && (ne.width = de.x + de.width, ne.width > ue && (ue = ne.width), oe = !1);
3233
- let { lineHeight: Se, capHeight: Ce, xHeight: ge, baseline: me } = de.fontData;
3234
- Se > ne.lineHeight && (ne.lineHeight = Se);
3233
+ let { lineHeight: xe, capHeight: Ce, xHeight: ge, baseline: me } = de.fontData;
3234
+ xe > ne.lineHeight && (ne.lineHeight = xe);
3235
3235
  const fe = me - ne.baseline;
3236
3236
  fe < 0 && (ne.baseline += fe, ne.cap += fe, ne.ex += fe), ne.cap = Math.max(ne.cap, ne.baseline + Ce), ne.ex = Math.max(ne.ex, ne.baseline + ge);
3237
3237
  }
@@ -3241,14 +3241,14 @@ function la(c, r) {
3241
3241
  if (D && (typeof D == "number" ? ae = -D : typeof D == "string" && (ae = -ue * (D === "left" ? 0 : D === "center" ? 0.5 : D === "right" ? 1 : i(D)))), k && (typeof k == "number" ? Y = -k : typeof k == "string" && (Y = k === "top" ? 0 : k === "top-baseline" ? -he[0].baseline : k === "top-cap" ? -he[0].cap : k === "top-ex" ? -he[0].ex : k === "middle" ? K / 2 : k === "bottom" ? K : k === "bottom-baseline" ? he[he.length - 1].baseline : i(k) * K)), !V) {
3242
3242
  const ne = r.getEmbeddingLevels(p, C);
3243
3243
  W = new Uint16Array(Q), E = new Uint8Array(Q), P = new Float32Array(Q * 2), H = {}, z = [1 / 0, 1 / 0, -1 / 0, -1 / 0], pe = [], $ && (X = new Float32Array(p.length * 4)), M && (ee = new Uint8Array(Q * 3));
3244
- let oe = 0, le = -1, de = -1, Se, Ce;
3244
+ let oe = 0, le = -1, de = -1, xe, Ce;
3245
3245
  if (he.forEach((ge, me) => {
3246
3246
  let { count: fe, width: ke } = ge;
3247
3247
  if (fe > 0) {
3248
3248
  let we = 0;
3249
3249
  for (let _e = fe; _e-- && ge.glyphAt(_e).glyphObj.isWhitespace; )
3250
3250
  we++;
3251
- let Oe = 0, xe = 0;
3251
+ let Oe = 0, Se = 0;
3252
3252
  if (N === "center")
3253
3253
  Oe = (ue - ke) / 2;
3254
3254
  else if (N === "right")
@@ -3257,14 +3257,14 @@ function la(c, r) {
3257
3257
  let _e = 0;
3258
3258
  for (let ye = fe - we; ye--; )
3259
3259
  ge.glyphAt(ye).glyphObj.isWhitespace && _e++;
3260
- xe = (ue - ke) / _e;
3260
+ Se = (ue - ke) / _e;
3261
3261
  }
3262
- if (xe || Oe) {
3262
+ if (Se || Oe) {
3263
3263
  let _e = 0;
3264
3264
  for (let ye = 0; ye < fe; ye++) {
3265
3265
  let Ae = ge.glyphAt(ye);
3266
3266
  const Te = Ae.glyphObj;
3267
- Ae.x += Oe + _e, xe !== 0 && Te.isWhitespace && ye < fe - we && (_e += xe, Ae.width += xe);
3267
+ Ae.x += Oe + _e, Se !== 0 && Te.isWhitespace && ye < fe - we && (_e += Se, Ae.width += Se);
3268
3268
  }
3269
3269
  }
3270
3270
  const ce = r.getReorderSegments(
@@ -3322,8 +3322,8 @@ function la(c, r) {
3322
3322
  const Ie = ye.x + ae, He = ye.y + ge.baseline + Y;
3323
3323
  P[ve * 2] = Ie, P[ve * 2 + 1] = He;
3324
3324
  const je = Ie + Ue.xMin * Fe, Ye = He + Ue.yMin * Fe, Qe = Ie + Ue.xMax * Fe, Ve = He + Ue.yMax * Fe;
3325
- je < z[0] && (z[0] = je), Ye < z[1] && (z[1] = Ye), Qe > z[2] && (z[2] = Qe), Ve > z[3] && (z[3] = Ve), ve % B === 0 && (Se = { start: ve, end: ve, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, pe.push(Se)), Se.end++;
3326
- const Ge = Se.rect;
3325
+ je < z[0] && (z[0] = je), Ye < z[1] && (z[1] = Ye), Qe > z[2] && (z[2] = Qe), Ve > z[3] && (z[3] = Ve), ve % B === 0 && (xe = { start: ve, end: ve, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, pe.push(xe)), xe.end++;
3326
+ const Ge = xe.rect;
3327
3327
  if (je < Ge[0] && (Ge[0] = je), Ye < Ge[1] && (Ge[1] = Ye), Qe > Ge[2] && (Ge[2] = Qe), Ve > Ge[3] && (Ge[3] = Ve), W[ve] = Ae, E[ve] = Me, M) {
3328
3328
  const Ze = ve * 3;
3329
3329
  ee[Ze] = Ce >> 16 & 255, ee[Ze + 1] = Ce >> 8 & 255, ee[Ze + 2] = Ce & 255;
@@ -3337,8 +3337,8 @@ function la(c, r) {
3337
3337
  }
3338
3338
  }
3339
3339
  const be = [];
3340
- se.forEach(({ index: ne, src: oe, unitsPerEm: le, ascender: de, descender: Se, lineHeight: Ce, capHeight: ge, xHeight: me }) => {
3341
- be[ne] = { src: oe, unitsPerEm: le, ascender: de, descender: Se, lineHeight: Ce, capHeight: ge, xHeight: me };
3340
+ se.forEach(({ index: ne, src: oe, unitsPerEm: le, ascender: de, descender: xe, lineHeight: Ce, capHeight: ge, xHeight: me }) => {
3341
+ be[ne] = { src: oe, unitsPerEm: le, ascender: de, descender: xe, lineHeight: Ce, capHeight: ge, xHeight: me };
3342
3342
  }), w.typesetting = f() - j, v({
3343
3343
  glyphIds: W,
3344
3344
  //id for each glyph, specific to that glyph's font
@@ -3357,7 +3357,7 @@ function la(c, r) {
3357
3357
  //color for each glyph, if color ranges supplied
3358
3358
  chunkedBounds: pe,
3359
3359
  //total rects per (n=chunkedBoundsSize) consecutive glyphs
3360
- fontSize: x,
3360
+ fontSize: S,
3361
3361
  //calculated em height
3362
3362
  topBaseline: Y + he[0].baseline,
3363
3363
  //y coordinate of the top line's baseline
@@ -3376,10 +3376,10 @@ function la(c, r) {
3376
3376
  }
3377
3377
  function n(p, g) {
3378
3378
  o({ ...p, metricsOnly: !0 }, (y) => {
3379
- const [O, x, F, U] = y.blockBounds;
3379
+ const [O, S, F, U] = y.blockBounds;
3380
3380
  g({
3381
3381
  width: F - O,
3382
- height: U - x
3382
+ height: U - S
3383
3383
  });
3384
3384
  });
3385
3385
  }
@@ -3388,10 +3388,10 @@ function la(c, r) {
3388
3388
  return isNaN(y) ? 0 : y / 100;
3389
3389
  }
3390
3390
  function s(p, g, y) {
3391
- const O = p[g * 4], x = p[g * 4 + 1], F = p[g * 4 + 2], U = p[g * 4 + 3], T = (x - O) / y;
3391
+ const O = p[g * 4], S = p[g * 4 + 1], F = p[g * 4 + 2], U = p[g * 4 + 3], T = (S - O) / y;
3392
3392
  for (let G = 0; G < y; G++) {
3393
- const S = (g + G) * 4;
3394
- p[S] = O + T * G, p[S + 1] = O + T * (G + 1), p[S + 2] = F, p[S + 3] = U;
3393
+ const x = (g + G) * 4;
3394
+ p[x] = O + T * G, p[x + 1] = O + T * (G + 1), p[x + 2] = F, p[x + 3] = U;
3395
3395
  }
3396
3396
  }
3397
3397
  function f() {
@@ -3423,8 +3423,8 @@ function la(c, r) {
3423
3423
  get() {
3424
3424
  return this.data[this.index * h.length + y];
3425
3425
  },
3426
- set(x) {
3427
- this.data[this.index * h.length + y] = x;
3426
+ set(S) {
3427
+ this.data[this.index * h.length + y] = S;
3428
3428
  }
3429
3429
  }), p), { data: null, index: 0 }), {
3430
3430
  typeset: o,
@@ -3548,9 +3548,9 @@ function hn(c, r) {
3548
3548
  }
3549
3549
  const { sdfTexture: s, sdfCanvas: f } = i;
3550
3550
  _a(c).then((l) => {
3551
- const { glyphIds: h, glyphFontIndices: p, fontData: g, glyphPositions: y, fontSize: O, timings: x } = l, F = [], U = new Float32Array(h.length * 4);
3551
+ const { glyphIds: h, glyphFontIndices: p, fontData: g, glyphPositions: y, fontSize: O, timings: S } = l, F = [], U = new Float32Array(h.length * 4);
3552
3552
  let T = 0, G = 0;
3553
- const S = ot(), C = g.map((D) => {
3553
+ const x = ot(), C = g.map((D) => {
3554
3554
  let k = i.glyphsByFont.get(D.src);
3555
3555
  return k || i.glyphsByFont.set(D.src, k = /* @__PURE__ */ new Map()), k;
3556
3556
  });
@@ -3568,16 +3568,16 @@ function hn(c, r) {
3568
3568
  }
3569
3569
  const { sdfViewBox: B } = $, M = y[G++], v = y[G++], b = O / Z;
3570
3570
  U[T++] = M + B[0] * b, U[T++] = v + B[1] * b, U[T++] = M + B[2] * b, U[T++] = v + B[3] * b, h[k] = $.atlasIndex;
3571
- }), x.quads = (x.quads || 0) + (ot() - S);
3571
+ }), S.quads = (S.quads || 0) + (ot() - x);
3572
3572
  const N = ot();
3573
- x.sdf = {};
3573
+ S.sdf = {};
3574
3574
  const R = f.height, J = Math.ceil(i.glyphCount / n), m = Math.pow(2, Math.ceil(Math.log2(J * o)));
3575
3575
  m > R && (console.info(`Increasing SDF texture size ${R}->${m}`), ma(f, e, m), s.dispose()), Promise.all(F.map(
3576
3576
  (D) => dn(D, i, c.gpuAccelerateSDF).then(({ timing: k }) => {
3577
- x.sdf[D.atlasIndex] = k;
3577
+ S.sdf[D.atlasIndex] = k;
3578
3578
  })
3579
3579
  )).then(() => {
3580
- F.length && !i.contextLost && (pn(i), s.needsUpdate = !0), x.sdfTotal = ot() - N, x.total = ot() - d, r(Object.freeze({
3580
+ F.length && !i.contextLost && (pn(i), s.needsUpdate = !0), S.sdfTotal = ot() - N, S.total = ot() - d, r(Object.freeze({
3581
3581
  parameters: c,
3582
3582
  sdfTexture: s,
3583
3583
  sdfGlyphSize: o,
@@ -3689,7 +3689,7 @@ function za() {
3689
3689
  });
3690
3690
  }
3691
3691
  const qr = {};
3692
- function Sa(c) {
3692
+ function xa(c) {
3693
3693
  let r = qr[c];
3694
3694
  if (!r) {
3695
3695
  const d = new gr(1, 1, c, c), u = d.clone(), t = d.attributes, e = u.attributes, a = new Pn(), o = t.uv.count;
@@ -3707,7 +3707,7 @@ function Sa(c) {
3707
3707
  }
3708
3708
  return r;
3709
3709
  }
3710
- const xa = "aTroikaGlyphBounds", $r = "aTroikaGlyphIndex", ka = "aTroikaGlyphColor";
3710
+ const Sa = "aTroikaGlyphBounds", $r = "aTroikaGlyphIndex", ka = "aTroikaGlyphColor";
3711
3711
  class wa extends En {
3712
3712
  constructor() {
3713
3713
  super(), this.detail = 1, this.curveRadius = 0, this.groups = [
@@ -3728,7 +3728,7 @@ class wa extends En {
3728
3728
  set detail(r) {
3729
3729
  if (r !== this._detail) {
3730
3730
  this._detail = r, (typeof r != "number" || r < 1) && (r = 1);
3731
- let d = Sa(r);
3731
+ let d = xa(r);
3732
3732
  ["position", "normal", "uv"].forEach((u) => {
3733
3733
  this.attributes[u] = d.attributes[u].clone();
3734
3734
  }), this.setIndex(d.getIndex().clone());
@@ -3756,7 +3756,7 @@ class wa extends En {
3756
3756
  * @param {Uint8Array} [glyphColors] - An array holding r,g,b values for each glyph.
3757
3757
  */
3758
3758
  updateGlyphs(r, d, u, t, e) {
3759
- sr(this, xa, r, 4), sr(this, $r, d, 1), sr(this, ka, e, 3), this._blockBounds = u, this._chunkedBounds = t, this.instanceCount = d.length, this._updateBounds();
3759
+ sr(this, Sa, r, 4), sr(this, $r, d, 1), sr(this, ka, e, 3), this._blockBounds = u, this._chunkedBounds = t, this.instanceCount = d.length, this._updateBounds();
3760
3760
  }
3761
3761
  _updateBounds() {
3762
3762
  const r = this._blockBounds;
@@ -4191,8 +4191,8 @@ class Oa extends pr {
4191
4191
  u.uTroikaSDFTexture.value = o, u.uTroikaSDFTextureSize.value.set(o.image.width, o.image.height), u.uTroikaSDFGlyphSize.value = t.sdfGlyphSize, u.uTroikaSDFExponent.value = t.sdfExponent, u.uTroikaTotalBounds.value.fromArray(n), u.uTroikaUseGlyphColors.value = !d && !!t.glyphColors;
4192
4192
  let i = 0, s = 0, f = 0, l, h, p, g = 0, y = 0;
4193
4193
  if (d) {
4194
- let { outlineWidth: x, outlineOffsetX: F, outlineOffsetY: U, outlineBlur: T, outlineOpacity: G } = this;
4195
- i = this._parsePercent(x) || 0, s = Math.max(0, this._parsePercent(T) || 0), l = G, g = this._parsePercent(F) || 0, y = this._parsePercent(U) || 0;
4194
+ let { outlineWidth: S, outlineOffsetX: F, outlineOffsetY: U, outlineBlur: T, outlineOpacity: G } = this;
4195
+ i = this._parsePercent(S) || 0, s = Math.max(0, this._parsePercent(T) || 0), l = G, g = this._parsePercent(F) || 0, y = this._parsePercent(U) || 0;
4196
4196
  } else
4197
4197
  f = Math.max(0, this._parsePercent(this.strokeWidth) || 0), f && (p = this.strokeColor, u.uTroikaStrokeColor.value.set(p ?? en), h = this.strokeOpacity, h == null && (h = 1)), l = this.fillOpacity;
4198
4198
  u.uTroikaDistanceOffset.value = i, u.uTroikaPositionOffset.value.set(g, y), u.uTroikaBlurRadius.value = s, u.uTroikaStrokeWidth.value = f, u.uTroikaStrokeOpacity.value = h, u.uTroikaFillOpacity.value = l ?? 1, u.uTroikaCurveRadius.value = this.curveRadius || 0;
@@ -4200,12 +4200,12 @@ class Oa extends pr {
4200
4200
  if (O && Array.isArray(O) && O.length === 4)
4201
4201
  u.uTroikaClipRect.value.fromArray(O);
4202
4202
  else {
4203
- const x = (this.fontSize || 0.1) * 100;
4203
+ const S = (this.fontSize || 0.1) * 100;
4204
4204
  u.uTroikaClipRect.value.set(
4205
- n[0] - x,
4206
- n[1] - x,
4207
- n[2] + x,
4208
- n[3] + x
4205
+ n[0] - S,
4206
+ n[1] - S,
4207
+ n[2] + S,
4208
+ n[3] + S
4209
4209
  );
4210
4210
  }
4211
4211
  this.geometry.applyClipRect(u.uTroikaClipRect.value);