@weng-lab/genomebrowser 1.8.5-beta.4 → 1.8.6

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.
@@ -326,7 +326,7 @@ function fc(e, t = uc) {
326
326
  const Ci = (e) => {
327
327
  const t = lc(e), n = (r) => fc(t, r);
328
328
  return Object.assign(n, t), n;
329
- }, It = ((e) => e ? Ci(e) : Ci), sh = Ko;
329
+ }, It = ((e) => e ? Ci(e) : Ci), ch = Ko;
330
330
  function dc(e) {
331
331
  return ce(() => Ko(), e ?? []);
332
332
  }
@@ -444,7 +444,7 @@ function Je(e) {
444
444
  }
445
445
  var me = /* @__PURE__ */ ((e) => (e.BigWig = "bigwig", e.BigBed = "bigbed", e.Transcript = "transcript", e.Motif = "motif", e.Importance = "importance", e.LDTrack = "ldtrack", e.BulkBed = "bulkbed", e.MethylC = "methylc", e.Manhattan = "manhattan", e.Custom = "custom", e))(me || {}), Fe = /* @__PURE__ */ ((e) => (e.Full = "full", e.Dense = "dense", e.Squish = "squish", e.Pack = "pack", e.Combined = "combined", e.Split = "split", e.Scatter = "scatter", e.LDBlock = "ldblock", e.GenericLD = "genericld", e))(Fe || {});
446
446
  const gc = /* @__PURE__ */ new Set(["chr", "start", "end", "rest"]);
447
- function ch(e) {
447
+ function lh(e) {
448
448
  return rs(e), e;
449
449
  }
450
450
  function mc(e) {
@@ -5263,7 +5263,7 @@ lr`
5263
5263
  }
5264
5264
  }
5265
5265
  `;
5266
- async function gh(e, t, n) {
5266
+ async function mh(e, t, n) {
5267
5267
  return await Mt(e, t.expandedDomain, t.preRenderedWidth, n);
5268
5268
  }
5269
5269
  async function jl(e) {
@@ -5702,7 +5702,7 @@ function Ts({
5702
5702
  })
5703
5703
  ] });
5704
5704
  }
5705
- const Ql = 0, lo = 255, mh = [
5705
+ const Ql = 0, lo = 255, vh = [
5706
5706
  "#fd7f6f",
5707
5707
  "#7eb0d5",
5708
5708
  "#b2e061",
@@ -5712,7 +5712,7 @@ const Ql = 0, lo = 255, mh = [
5712
5712
  "#beb9db",
5713
5713
  "#fdcce5",
5714
5714
  "#8bd3c7"
5715
- ], vh = [
5715
+ ], xh = [
5716
5716
  "#e60049",
5717
5717
  "#0bb4ff",
5718
5718
  "#50e991",
@@ -5823,6 +5823,14 @@ function ru({ id: e, data: t, color: n, height: r, dimensions: i, tooltip: a })
5823
5823
  )
5824
5824
  ] });
5825
5825
  }
5826
+ function hi() {
5827
+ const [e, t] = be(1), n = fe((r) => r.svgRef);
5828
+ return Ee(() => {
5829
+ if (!n || !n.current) return;
5830
+ const r = n.current.getBoundingClientRect();
5831
+ t(r.width / n.current.viewBox.baseVal.width);
5832
+ }, [n]), e;
5833
+ }
5826
5834
  var rr = { exports: {} }, $n = {}, mr = { exports: {} }, vr = { exports: {} }, we = {};
5827
5835
  /** @license React v16.13.1
5828
5836
  * react-is.production.min.js
@@ -6046,7 +6054,7 @@ function au() {
6046
6054
  }, zn;
6047
6055
  }
6048
6056
  var Fn, go;
6049
- function hi() {
6057
+ function pi() {
6050
6058
  if (go) return Fn;
6051
6059
  go = 1;
6052
6060
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -6063,7 +6071,7 @@ function ou() {
6063
6071
  var e = function() {
6064
6072
  };
6065
6073
  if (process.env.NODE_ENV !== "production") {
6066
- var t = /* @__PURE__ */ hi(), n = {}, r = /* @__PURE__ */ Rs();
6074
+ var t = /* @__PURE__ */ pi(), n = {}, r = /* @__PURE__ */ Rs();
6067
6075
  e = function(a) {
6068
6076
  var o = "Warning: " + a;
6069
6077
  typeof console < "u" && console.error(o);
@@ -6109,7 +6117,7 @@ var Wn, xo;
6109
6117
  function su() {
6110
6118
  if (xo) return Wn;
6111
6119
  xo = 1;
6112
- var e = Cs(), t = au(), n = /* @__PURE__ */ hi(), r = /* @__PURE__ */ Rs(), i = /* @__PURE__ */ ou(), a = function() {
6120
+ var e = Cs(), t = au(), n = /* @__PURE__ */ pi(), r = /* @__PURE__ */ Rs(), i = /* @__PURE__ */ ou(), a = function() {
6113
6121
  };
6114
6122
  process.env.NODE_ENV !== "production" && (a = function(s) {
6115
6123
  var c = "Warning: " + s;
@@ -6430,7 +6438,7 @@ var Yn, yo;
6430
6438
  function cu() {
6431
6439
  if (yo) return Yn;
6432
6440
  yo = 1;
6433
- var e = /* @__PURE__ */ hi();
6441
+ var e = /* @__PURE__ */ pi();
6434
6442
  function t() {
6435
6443
  }
6436
6444
  function n() {
@@ -6560,7 +6568,7 @@ function uu() {
6560
6568
  return _t.default = t(), _t;
6561
6569
  }
6562
6570
  var ko;
6563
- function pi() {
6571
+ function gi() {
6564
6572
  if (ko) return je;
6565
6573
  ko = 1, Object.defineProperty(je, "__esModule", {
6566
6574
  value: !0
@@ -6706,7 +6714,7 @@ function js() {
6706
6714
  Eo = 1, Object.defineProperty(ct, "__esModule", {
6707
6715
  value: !0
6708
6716
  }), ct.canDragX = i, ct.canDragY = a, ct.createCoreData = s, ct.createDraggableData = c, ct.getBoundPosition = n, ct.getControlPosition = o, ct.snapToGrid = r;
6709
- var e = Lr(), t = pi();
6717
+ var e = Lr(), t = gi();
6710
6718
  function n(h, b, v) {
6711
6719
  if (!h.props.bounds) return [b, v];
6712
6720
  let {
@@ -6811,7 +6819,7 @@ function fu() {
6811
6819
  To = 1, Object.defineProperty(nr, "__esModule", {
6812
6820
  value: !0
6813
6821
  }), nr.default = void 0;
6814
- var e = c(Te), t = s(/* @__PURE__ */ Ds()), n = s(Vo), r = pi(), i = js(), a = Lr(), o = s(Ms());
6822
+ var e = c(Te), t = s(/* @__PURE__ */ Ds()), n = s(Vo), r = gi(), i = js(), a = Lr(), o = s(Ms());
6815
6823
  function s(D) {
6816
6824
  return D && D.__esModule ? D : { default: D };
6817
6825
  }
@@ -7117,7 +7125,7 @@ function du() {
7117
7125
  return c.default;
7118
7126
  }
7119
7127
  }), e.default = void 0;
7120
- var t = h(Te), n = p(/* @__PURE__ */ Ds()), r = p(Vo), i = lu(), a = pi(), o = js(), s = Lr(), c = p(fu()), u = p(Ms());
7128
+ var t = h(Te), n = p(/* @__PURE__ */ Ds()), r = p(Vo), i = lu(), a = gi(), o = js(), s = Lr(), c = p(fu()), u = p(Ms());
7121
7129
  function p(E) {
7122
7130
  return E && E.__esModule ? E : { default: E };
7123
7131
  }
@@ -7431,17 +7439,9 @@ function hu() {
7431
7439
  return rr.exports = e, rr.exports.default = e, rr.exports.DraggableCore = t, rr.exports;
7432
7440
  }
7433
7441
  var pu = hu();
7434
- const Tr = /* @__PURE__ */ Xo(pu);
7435
- function gi() {
7436
- const [e, t] = be(1), n = fe((r) => r.svgRef);
7437
- return Ee(() => {
7438
- if (!n || !n.current) return;
7439
- const r = n.current.getBoundingClientRect();
7440
- t(r.width / n.current.viewBox.baseVal.width);
7441
- }, [n]), e;
7442
- }
7442
+ const gu = /* @__PURE__ */ Xo(pu), Tr = gu;
7443
7443
  function Bs({ children: e, id: t }) {
7444
- const [n, r] = be(!1), [i, a] = be({ x: 0, y: 0 }), o = Ie(null), s = fe((D) => D.delta), c = fe((D) => D.setDelta), u = fe((D) => D.shiftDomain), p = gi();
7444
+ const [n, r] = be(!1), [i, a] = be({ x: 0, y: 0 }), o = Ie(null), s = fe((D) => D.delta), c = fe((D) => D.setDelta), u = fe((D) => D.shiftDomain), p = hi();
7445
7445
  Ee(() => {
7446
7446
  n || a({ x: s, y: 0 });
7447
7447
  }, [s, n]);
@@ -7463,13 +7463,13 @@ function Bs({ children: e, id: t }) {
7463
7463
  position: i,
7464
7464
  axis: "x",
7465
7465
  onStart: k,
7466
- onDrag: (D, w) => h(D, w),
7466
+ onDrag: h,
7467
7467
  onStop: b,
7468
7468
  children: /* @__PURE__ */ f.jsx("g", { id: `drag-track-${t}`, ref: o, height: "100%", style: { cursor: v }, children: e })
7469
7469
  }
7470
7470
  );
7471
7471
  }
7472
- function gu(e) {
7472
+ function mu(e) {
7473
7473
  return /* @__PURE__ */ f.jsx(
7474
7474
  "svg",
7475
7475
  {
@@ -7522,7 +7522,7 @@ function gu(e) {
7522
7522
  }
7523
7523
  );
7524
7524
  }
7525
- function mu(e) {
7525
+ function vu(e) {
7526
7526
  return /* @__PURE__ */ f.jsx(
7527
7527
  "svg",
7528
7528
  {
@@ -7547,7 +7547,7 @@ function mu(e) {
7547
7547
  }
7548
7548
  );
7549
7549
  }
7550
- function vu(e) {
7550
+ function xu(e) {
7551
7551
  return /* @__PURE__ */ f.jsx(
7552
7552
  "svg",
7553
7553
  {
@@ -7571,7 +7571,7 @@ function vu(e) {
7571
7571
  }
7572
7572
  );
7573
7573
  }
7574
- function xu({
7574
+ function yu({
7575
7575
  id: e,
7576
7576
  height: t,
7577
7577
  color: n,
@@ -7623,13 +7623,13 @@ function xu({
7623
7623
  /* @__PURE__ */ f.jsx("rect", { x: 0, y: 0, width: s / 15, height: t, stroke: "#000000", strokeWidth: 0.5, fill: n }),
7624
7624
  /* @__PURE__ */ f.jsxs("g", { id: `margin-buttons-${e}`, children: [
7625
7625
  e !== "ruler" && /* @__PURE__ */ f.jsxs("g", { ref: h, onClick: L, style: { cursor: "pointer" }, children: [
7626
- /* @__PURE__ */ f.jsx(gu, { x: s / 10, y: t / 2 + 2, height: 15, width: 15, fill: C }),
7626
+ /* @__PURE__ */ f.jsx(mu, { x: s / 10, y: t / 2 + 2, height: 15, width: 15, fill: C }),
7627
7627
  /* @__PURE__ */ f.jsx("circle", { cx: s / 10 + 7.5, cy: t / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" })
7628
7628
  ] }),
7629
7629
  e !== "ruler" && /* @__PURE__ */ f.jsxs("g", { onClick: w ? y : void 0, style: { cursor: "pointer" }, children: [
7630
7630
  /* @__PURE__ */ f.jsx("circle", { cx: s / 10 + 22.5, cy: t / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" }),
7631
7631
  /* @__PURE__ */ f.jsx(
7632
- mu,
7632
+ vu,
7633
7633
  {
7634
7634
  x: s / 10 + 15,
7635
7635
  y: t / 2 + 3,
@@ -7642,7 +7642,7 @@ function xu({
7642
7642
  e !== "ruler" && /* @__PURE__ */ f.jsxs("g", { onClick: E ? d : void 0, style: { cursor: "pointer" }, children: [
7643
7643
  /* @__PURE__ */ f.jsx("circle", { cx: s / 10 + 37.5, cy: t / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" }),
7644
7644
  /* @__PURE__ */ f.jsx(
7645
- vu,
7645
+ xu,
7646
7646
  {
7647
7647
  x: s / 10 + 30,
7648
7648
  y: t / 2 + 2,
@@ -7686,7 +7686,7 @@ function Do({
7686
7686
  ] });
7687
7687
  }
7688
7688
  const De = 80;
7689
- function yu() {
7689
+ function _u() {
7690
7690
  const e = fe((h) => h.getTrackDimensions), { sideWidth: t, totalWidth: n } = e(), r = fe((h) => h.getExpandedDomain), i = fe((h) => h.getDomain), [a, o] = be(r()), s = nt((h) => h.isFetching), { x: c } = lt(n);
7691
7691
  Ee(() => {
7692
7692
  s || o(r());
@@ -7779,24 +7779,24 @@ function yu() {
7779
7779
  fontSize: De / 6 + "px",
7780
7780
  textAnchor: "end",
7781
7781
  fill: u,
7782
- children: _u(w.end - w.start)
7782
+ children: bu(w.end - w.start)
7783
7783
  }
7784
7784
  ),
7785
7785
  E
7786
7786
  ] });
7787
7787
  }, [a, i, c, n, t, u]);
7788
7788
  }
7789
- function _u(e) {
7789
+ function bu(e) {
7790
7790
  return e >= 1e9 ? Math.round(e / 1e9) + " Gb" : e >= 1e6 ? Math.round(e / 1e6) + " Mb" : e >= 1e3 ? Math.round(e / 1e3) + " kb" : e + " bp";
7791
7791
  }
7792
- function bu({
7792
+ function wu({
7793
7793
  id: e,
7794
7794
  children: t,
7795
7795
  setSwapping: n,
7796
7796
  height: r,
7797
7797
  width: i
7798
7798
  }) {
7799
- const [a, o] = be({ x: 0, y: 0 }), [s, c] = be(!1), [u, p] = be(0), h = Ie(null), b = gi(), v = fe((m) => m.marginWidth), k = xe((m) => m.shiftTracks), D = xe((m) => m.getTrackIndex), w = ws(e), E = Ul(e), L = (m, _) => {
7799
+ const [a, o] = be({ x: 0, y: 0 }), [s, c] = be(!1), [u, p] = be(0), h = Ie(null), b = hi(), v = fe((m) => m.marginWidth), k = xe((m) => m.shiftTracks), D = xe((m) => m.getTrackIndex), w = ws(e), E = Ul(e), L = (m, _) => {
7800
7800
  m.preventDefault(), c(!0), n(!0), o({ x: 0, y: _.y }), p(_.y);
7801
7801
  }, y = () => {
7802
7802
  if (o({ x: 0, y: 0 }), c(!1), n(!1), Math.abs(u) <= 5) return;
@@ -7815,18 +7815,18 @@ function bu({
7815
7815
  onStart: d,
7816
7816
  onDrag: L,
7817
7817
  onStop: y,
7818
- children: /* @__PURE__ */ f.jsx("g", { id: `swap-track-${e}`, ref: h, children: s ? /* @__PURE__ */ f.jsx(wu, { height: r, width: i, margin: v, position: w + a.y + De, children: t }) : t })
7818
+ children: /* @__PURE__ */ f.jsx("g", { id: `swap-track-${e}`, ref: h, children: s ? /* @__PURE__ */ f.jsx(Su, { height: r, width: i, margin: v, position: w + a.y + De, children: t }) : t })
7819
7819
  }
7820
7820
  );
7821
7821
  }
7822
- function wu({
7822
+ function Su({
7823
7823
  children: e,
7824
7824
  position: t,
7825
7825
  height: n,
7826
7826
  width: r,
7827
7827
  margin: i
7828
7828
  }) {
7829
- const a = fe((c) => c.svgRef), o = gi(), s = Ie(null);
7829
+ const a = fe((c) => c.svgRef), o = hi(), s = Ie(null);
7830
7830
  return Zo(
7831
7831
  /* @__PURE__ */ f.jsx(
7832
7832
  Tr,
@@ -7843,14 +7843,14 @@ function wu({
7843
7843
  a.current
7844
7844
  );
7845
7845
  }
7846
- const Su = `M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946
7846
+ const ku = `M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946
7847
7847
  s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634
7848
- c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z`, ku = `M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
7848
+ c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z`, Eu = `M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
7849
7849
  C22.32,8.481,24.301,9.057,26.013,10.047z`;
7850
- function Eu({ width: e, height: t, color: n }) {
7850
+ function Lu({ width: e, height: t, color: n }) {
7851
7851
  return /* @__PURE__ */ f.jsxs("svg", { width: e, height: t, viewBox: "0 0 40 40", children: [
7852
- /* @__PURE__ */ f.jsx("path", { opacity: "0.2", fill: n, d: Su }),
7853
- /* @__PURE__ */ f.jsx("path", { fill: n, d: ku, children: /* @__PURE__ */ f.jsx(
7852
+ /* @__PURE__ */ f.jsx("path", { opacity: "0.2", fill: n, d: ku }),
7853
+ /* @__PURE__ */ f.jsx("path", { fill: n, d: Eu, children: /* @__PURE__ */ f.jsx(
7854
7854
  "animateTransform",
7855
7855
  {
7856
7856
  attributeType: "xml",
@@ -7864,21 +7864,21 @@ function Eu({ width: e, height: t, color: n }) {
7864
7864
  ) })
7865
7865
  ] });
7866
7866
  }
7867
- const Lu = `M446.324,367.381L262.857,41.692c-15.644-28.444-58.311-28.444-73.956,0L5.435,367.381
7868
- c-15.644,28.444,4.267,64,36.978,64h365.511C442.057,429.959,461.968,395.825,446.324,367.381z`, Tu = `M196.013,212.359l11.378,75.378c1.422,8.533,8.533,15.644,18.489,15.644l0,0
7867
+ const Tu = `M446.324,367.381L262.857,41.692c-15.644-28.444-58.311-28.444-73.956,0L5.435,367.381
7868
+ c-15.644,28.444,4.267,64,36.978,64h365.511C442.057,429.959,461.968,395.825,446.324,367.381z`, Cu = `M196.013,212.359l11.378,75.378c1.422,8.533,8.533,15.644,18.489,15.644l0,0
7869
7869
  c8.533,0,17.067-7.111,18.489-15.644l11.378-75.378c2.844-18.489-11.378-34.133-29.867-34.133l0,0
7870
7870
  C207.39,178.225,194.59,193.87,196.013,212.359z`;
7871
- function Cu({
7871
+ function Ru({
7872
7872
  width: e,
7873
7873
  height: t,
7874
7874
  outline: n,
7875
7875
  inside: r
7876
7876
  }) {
7877
7877
  return /* @__PURE__ */ f.jsxs("svg", { width: e, height: t, viewBox: "0 0 451.74 481.74", children: [
7878
- /* @__PURE__ */ f.jsx("path", { fill: n, d: Lu }),
7878
+ /* @__PURE__ */ f.jsx("path", { fill: n, d: Tu }),
7879
7879
  /* @__PURE__ */ f.jsx("path", { fill: r, d: "M225.879,63.025l183.467,325.689H42.413L225.879,63.025L225.879,63.025z" }),
7880
7880
  /* @__PURE__ */ f.jsxs("g", { children: [
7881
- /* @__PURE__ */ f.jsx("path", { fill: "#3F4448;", d: Tu }),
7881
+ /* @__PURE__ */ f.jsx("path", { fill: "#3F4448;", d: Cu }),
7882
7882
  /* @__PURE__ */ f.jsx("circle", { fill: "#3F4448", cx: "225.879", cy: "336.092", r: "17.067" })
7883
7883
  ] })
7884
7884
  ] });
@@ -7895,12 +7895,12 @@ function Is({ children: e, transform: t, id: n, loading: r, error: i }) {
7895
7895
  }, []), g = at(() => {
7896
7896
  c(!1);
7897
7897
  }, []);
7898
- return /* @__PURE__ */ f.jsx("g", { id: `wrapper-${n}`, transform: t, children: /* @__PURE__ */ f.jsxs(bu, { id: n, setSwapping: o, height: E, width: h, children: [
7898
+ return /* @__PURE__ */ f.jsx("g", { id: `wrapper-${n}`, transform: t, children: /* @__PURE__ */ f.jsxs(wu, { id: n, setSwapping: o, height: E, width: h, children: [
7899
7899
  r && !i && /* @__PURE__ */ f.jsx(
7900
7900
  "g",
7901
7901
  {
7902
7902
  transform: `translate(${u + (h - L) / 2},${(E - L) / 2})`,
7903
- children: /* @__PURE__ */ f.jsx(Eu, { color: d, width: L, height: L })
7903
+ children: /* @__PURE__ */ f.jsx(Lu, { color: d, width: L, height: L })
7904
7904
  }
7905
7905
  ),
7906
7906
  i && /* @__PURE__ */ f.jsxs(
@@ -7908,7 +7908,7 @@ function Is({ children: e, transform: t, id: n, loading: r, error: i }) {
7908
7908
  {
7909
7909
  transform: `translate(${u + (h - L) / 2},${(E - L) / 2})`,
7910
7910
  children: [
7911
- /* @__PURE__ */ f.jsx(Cu, { outline: d, inside: m, width: L, height: L }),
7911
+ /* @__PURE__ */ f.jsx(Ru, { outline: d, inside: m, width: L, height: L }),
7912
7912
  /* @__PURE__ */ f.jsx("g", { transform: `translate(${L / 2},${L + 10})`, children: /* @__PURE__ */ f.jsx("text", { fill: d, textAnchor: "middle", fontSize: `${D}px`, children: i }) })
7913
7913
  ]
7914
7914
  }
@@ -7937,7 +7937,7 @@ function Is({ children: e, transform: t, id: n, loading: r, error: i }) {
7937
7937
  }
7938
7938
  ),
7939
7939
  /* @__PURE__ */ f.jsx(
7940
- xu,
7940
+ yu,
7941
7941
  {
7942
7942
  id: n,
7943
7943
  height: E,
@@ -7967,7 +7967,7 @@ function Cr(e, t, n = 12) {
7967
7967
  r(t, { height: i });
7968
7968
  }, [n, t, r, e]), n;
7969
7969
  }
7970
- function Ru({
7970
+ function Du({
7971
7971
  id: e,
7972
7972
  data: t,
7973
7973
  height: n,
@@ -8013,15 +8013,15 @@ function Ru({
8013
8013
  function Os(e) {
8014
8014
  return e ? e.includes("MANE_Select") : !1;
8015
8015
  }
8016
- function Du(e, t) {
8016
+ function ju(e, t) {
8017
8017
  return e.coordinates.start === t.coordinates.start ? e.coordinates.end - t.coordinates.end : e.coordinates.start - t.coordinates.start;
8018
8018
  }
8019
- function ju(e) {
8020
- const n = e.transcripts.reduce((i, a) => [...i, ...a.exons || []], []).sort(Du), r = n.length === 0 ? [] : [{ coordinates: { ...n[0].coordinates }, UTRs: n[0].UTRs && [...n[0].UTRs] }];
8019
+ function Mu(e) {
8020
+ const n = e.transcripts.reduce((i, a) => [...i, ...a.exons || []], []).sort(ju), r = n.length === 0 ? [] : [{ coordinates: { ...n[0].coordinates }, UTRs: n[0].UTRs && [...n[0].UTRs] }];
8021
8021
  return n.slice(1).forEach((i) => {
8022
8022
  i.coordinates.start < r[r.length - 1].coordinates.end ? (r[r.length - 1].UTRs = [...r[r.length - 1].UTRs || [], ...i.UTRs || []], r[r.length - 1].coordinates.end = Math.max(i.coordinates.end, r[r.length - 1].coordinates.end)) : r.push({ coordinates: { ...i.coordinates }, UTRs: i.UTRs && [...i.UTRs] });
8023
8023
  }), r.forEach((i) => {
8024
- i.UTRs = Mu(i.UTRs || []);
8024
+ i.UTRs = Bu(i.UTRs || []);
8025
8025
  }), {
8026
8026
  name: e.name || "",
8027
8027
  strand: e.strand,
@@ -8034,7 +8034,7 @@ function ju(e) {
8034
8034
  color: ""
8035
8035
  };
8036
8036
  }
8037
- function Mu(e) {
8037
+ function Bu(e) {
8038
8038
  if (e.length === 0) return [];
8039
8039
  const t = [{ coordinates: { ...e[0].coordinates } }];
8040
8040
  return e.slice(1).forEach((n) => {
@@ -8046,9 +8046,9 @@ function Mu(e) {
8046
8046
  }
8047
8047
  function Ps(e, t, n, r) {
8048
8048
  var o;
8049
- const i = Bu(e, t), a = {
8050
- exons: ((o = i.exons) == null ? void 0 : o.reduce((s, c) => s + Pu(c, n / 2, n, r), "")) || "",
8051
- introns: Ou(
8049
+ const i = Iu(e, t), a = {
8050
+ exons: ((o = i.exons) == null ? void 0 : o.reduce((s, c) => s + Au(c, n / 2, n, r), "")) || "",
8051
+ introns: Pu(
8052
8052
  i.coordinates.start,
8053
8053
  i.coordinates.end,
8054
8054
  i.strand,
@@ -8059,7 +8059,7 @@ function Ps(e, t, n, r) {
8059
8059
  };
8060
8060
  return { transcript: i, paths: a };
8061
8061
  }
8062
- function Bu(e, t) {
8062
+ function Iu(e, t) {
8063
8063
  var n;
8064
8064
  return {
8065
8065
  strand: e.strand,
@@ -8088,10 +8088,10 @@ function Bu(e, t) {
8088
8088
  })) || []
8089
8089
  };
8090
8090
  }
8091
- function Iu(e) {
8091
+ function Ou(e) {
8092
8092
  return e.reduce((t, n) => (n.transcripts.forEach((r) => t.push({ ...r, strand: n.strand })), t), []).sort((t, n) => t.coordinates.start - n.coordinates.start);
8093
8093
  }
8094
- function Ou(e, t, n, r, i, a) {
8094
+ function Pu(e, t, n, r, i, a) {
8095
8095
  let o = "";
8096
8096
  if (e = e < 0 ? 0 : e, t = t > a ? a : t, n === "+")
8097
8097
  for (let s = e + 10; s < t - 10; s += 20)
@@ -8101,7 +8101,7 @@ function Ou(e, t, n, r, i, a) {
8101
8101
  o += it(s + i, r - i) + ge(s, r) + ge(s + i, r + i) + ge(s, r) + ge(s + i, r - i);
8102
8102
  return o + " M " + e + " " + r + " L " + t + " " + r;
8103
8103
  }
8104
- function Pu(e, t, n, r) {
8104
+ function Au(e, t, n, r) {
8105
8105
  var h, b;
8106
8106
  if (e.coordinates.start > r || e.coordinates.end < 0) return "";
8107
8107
  const i = ((h = e.UTRs) == null ? void 0 : h.filter((v) => v.coordinates.start === e.coordinates.start)) || [], a = ((b = e.UTRs) == null ? void 0 : b.filter((v) => v.coordinates.end === e.coordinates.end)) || [], o = t - n * 0.2, s = t + n * 0.2, c = t - n * 0.3, u = t + n * 0.3;
@@ -8122,7 +8122,7 @@ const As = (e, t) => {
8122
8122
  coordinates: i
8123
8123
  };
8124
8124
  };
8125
- function Au({
8125
+ function Nu({
8126
8126
  id: e,
8127
8127
  data: t,
8128
8128
  geneName: n,
@@ -8136,7 +8136,7 @@ function Au({
8136
8136
  onLeave: p,
8137
8137
  tooltip: h
8138
8138
  }) {
8139
- const { totalWidth: b, sideWidth: v } = i, { x: k, reverseX: D } = lt(b), w = fe((j) => j.domain), E = 10, L = ce(() => (t || []).map((j) => ju(j)), [t]), y = ce(
8139
+ const { totalWidth: b, sideWidth: v } = i, { x: k, reverseX: D } = lt(b), w = fe((j) => j.domain), E = 10, L = ce(() => (t || []).map((j) => Mu(j)), [t]), y = ce(
8140
8140
  () => L.filter(
8141
8141
  (j) => j.coordinates.end >= w.start && j.coordinates.start <= w.end
8142
8142
  ),
@@ -8206,7 +8206,7 @@ function Au({
8206
8206
  ))
8207
8207
  ] });
8208
8208
  }
8209
- function Nu({
8209
+ function qu({
8210
8210
  id: e,
8211
8211
  data: t,
8212
8212
  geneName: n,
@@ -8220,7 +8220,7 @@ function Nu({
8220
8220
  onLeave: p,
8221
8221
  tooltip: h
8222
8222
  }) {
8223
- const { totalWidth: b, sideWidth: v } = i, { x: k, reverseX: D } = lt(b), w = fe((j) => j.domain), E = 10, L = ce(() => Iu(t || []), [t]), y = ce(
8223
+ const { totalWidth: b, sideWidth: v } = i, { x: k, reverseX: D } = lt(b), w = fe((j) => j.domain), E = 10, L = ce(() => Ou(t || []), [t]), y = ce(
8224
8224
  () => L.filter(
8225
8225
  (j) => j.coordinates.end >= w.start && j.coordinates.start <= w.end
8226
8226
  ),
@@ -8290,7 +8290,7 @@ function Nu({
8290
8290
  ))
8291
8291
  ] });
8292
8292
  }
8293
- function qu(e, t, n) {
8293
+ function $u(e, t, n) {
8294
8294
  return ce(
8295
8295
  () => e.map((r) => {
8296
8296
  const i = t.slice(r.coordinates[0], r.coordinates[1] + 1).map((s) => s.importance), a = [Math.min(...i), Math.max(...i)], o = n(a[1]);
@@ -8303,36 +8303,36 @@ function qu(e, t, n) {
8303
8303
  [e, n]
8304
8304
  );
8305
8305
  }
8306
- function $u(e, t) {
8306
+ function zu(e, t) {
8307
8307
  const n = ce(
8308
- () => zu(e) ? e.importance.map((o, s) => ({
8308
+ () => Fu(e) ? e.importance.map((o, s) => ({
8309
8309
  base: e.sequence.charAt(s),
8310
8310
  importance: o
8311
8311
  })) : e,
8312
8312
  [e]
8313
- ), r = ce(() => Uu(n, (o) => o.importance), [n]), i = Fu(r, { start: t, end: 0 }), a = at(Hu(i), [r, t]);
8313
+ ), r = ce(() => Hu(n, (o) => o.importance), [n]), i = Uu(r, { start: t, end: 0 }), a = at(Wu(i), [r, t]);
8314
8314
  return [n, a, i];
8315
8315
  }
8316
- function zu(e) {
8316
+ function Fu(e) {
8317
8317
  return e.sequence !== void 0;
8318
8318
  }
8319
- function Fu(e, t) {
8319
+ function Uu(e, t) {
8320
8320
  return (n) => t.start + (t.end - t.start) * ((n - e.start) / (e.end - e.start));
8321
8321
  }
8322
- function Uu(e, t) {
8322
+ function Hu(e, t) {
8323
8323
  const n = e.map(t), r = Math.min(...n), i = Math.max(...n);
8324
8324
  return {
8325
8325
  start: r > 0 ? 0 : r,
8326
8326
  end: i < 0 ? 0 : i
8327
8327
  };
8328
8328
  }
8329
- function Hu(e) {
8329
+ function Wu(e) {
8330
8330
  return (t) => {
8331
8331
  const n = e((t < 0, t)), r = e((t < 0, 0)), i = Math.abs(r - n) / 100;
8332
8332
  return [n * (t < 0 ? -1 : 1), i, t < 0 ? "scale(1,-1)" : ""];
8333
8333
  };
8334
8334
  }
8335
- const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8335
+ const Yu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8336
8336
  /* @__PURE__ */ f.jsx(
8337
8337
  "path",
8338
8338
  {
@@ -8341,7 +8341,7 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8341
8341
  }
8342
8342
  ),
8343
8343
  /* @__PURE__ */ f.jsx("path", { fill: "#ffffff", d: "M 77 70 C 70 90 30 90 22 80 C 10 50 80 60 77 70" })
8344
- ] }), Yu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8344
+ ] }), Gu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8345
8345
  /* @__PURE__ */ f.jsx(
8346
8346
  "path",
8347
8347
  {
@@ -8350,7 +8350,7 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8350
8350
  }
8351
8351
  ),
8352
8352
  /* @__PURE__ */ f.jsx("path", { d: "M 79 60 C 80 95 20 95 20 65 C 20 30 80 30 79 65", fill: "#ffffff" })
8353
- ] }), Gu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8353
+ ] }), Vu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8354
8354
  /* @__PURE__ */ f.jsx(
8355
8355
  "path",
8356
8356
  {
@@ -8359,7 +8359,7 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8359
8359
  }
8360
8360
  ),
8361
8361
  /* @__PURE__ */ f.jsx("path", { d: "M 79 60 C 80 95 20 95 20 65 C 20 30 80 30 79 65", fill: "#ffffff" })
8362
- ] }), Vu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8362
+ ] }), Zu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8363
8363
  /* @__PURE__ */ f.jsx(
8364
8364
  "path",
8365
8365
  {
@@ -8368,13 +8368,13 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8368
8368
  }
8369
8369
  ),
8370
8370
  /* @__PURE__ */ f.jsx("path", { d: "M 33 37 L 68 37 C 58 10 42 10 33 37", fill: "#ffffff" })
8371
- ] }), Zu = (e) => /* @__PURE__ */ f.jsx(
8371
+ ] }), Xu = (e) => /* @__PURE__ */ f.jsx(
8372
8372
  "path",
8373
8373
  {
8374
8374
  d: "M 95 32 C 80 -17 20 -5 20 37 L 7 37 L 7 50 L 20 50 L 20 100 L 45 100 L 45 50 L 57 50 L 57 37 L 45 37 C 45 10 70 10 75 32 L 95 32",
8375
8375
  ...e
8376
8376
  }
8377
- ), Xu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8377
+ ), Ku = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8378
8378
  /* @__PURE__ */ f.jsx(
8379
8379
  "path",
8380
8380
  {
@@ -8383,13 +8383,13 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8383
8383
  }
8384
8384
  ),
8385
8385
  /* @__PURE__ */ f.jsx("path", { d: "M 67 30 C 70 10 25 10 27 30 C 25 50 70 50 67 30", fill: "#ffffff" })
8386
- ] }), Ku = (e) => /* @__PURE__ */ f.jsx(
8386
+ ] }), Ju = (e) => /* @__PURE__ */ f.jsx(
8387
8387
  "path",
8388
8388
  {
8389
8389
  d: "M 0 0 L 0 100 L 20 100 L 20 80 C 20 40 80 40 80 80 L 80 100 L 100 100 L 100 50 C 80 20 20 20 20 45 L 20 0 L 0 0",
8390
8390
  ...e
8391
8391
  }
8392
- ), Ju = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8392
+ ), Qu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8393
8393
  /* @__PURE__ */ f.jsx(
8394
8394
  "rect",
8395
8395
  {
@@ -8410,7 +8410,7 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8410
8410
  height: 15
8411
8411
  }
8412
8412
  )
8413
- ] }), Qu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8413
+ ] }), ef = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8414
8414
  /* @__PURE__ */ f.jsx(
8415
8415
  "path",
8416
8416
  {
@@ -8419,13 +8419,13 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8419
8419
  }
8420
8420
  ),
8421
8421
  /* @__PURE__ */ f.jsx("path", { d: "M 0 60 L 100 20", ...e })
8422
- ] }), ef = (e) => /* @__PURE__ */ f.jsx(
8422
+ ] }), tf = (e) => /* @__PURE__ */ f.jsx(
8423
8423
  "path",
8424
8424
  {
8425
8425
  d: "M 0 0 L 20 0 L 20 60 L 75 30 L 100 30 L 50 65 L 100 100 L 75 100 L 27 80 L 20 85 L 20 100 L 0 100 L 0 0",
8426
8426
  ...e
8427
8427
  }
8428
- ), tf = (e) => /* @__PURE__ */ f.jsx(
8428
+ ), rf = (e) => /* @__PURE__ */ f.jsx(
8429
8429
  "rect",
8430
8430
  {
8431
8431
  x: 40,
@@ -8434,19 +8434,19 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8434
8434
  height: 100,
8435
8435
  ...e
8436
8436
  }
8437
- ), rf = (e) => /* @__PURE__ */ f.jsx(
8437
+ ), nf = (e) => /* @__PURE__ */ f.jsx(
8438
8438
  "path",
8439
8439
  {
8440
8440
  d: "M 0 0 L 0 100 L 20 100 L 20 60 C 20 20 40 20 40 50 L 40 100 L 60 100 L 60 50 C 60 20 80 20 80 50 L 80 100 L 100 100 L 100 50 C 100 -10 40 -10 50 50 C 50 -5 20 -5 20 20 L 20 0 L 0 0",
8441
8441
  ...e
8442
8442
  }
8443
- ), nf = (e) => /* @__PURE__ */ f.jsx(
8443
+ ), af = (e) => /* @__PURE__ */ f.jsx(
8444
8444
  "path",
8445
8445
  {
8446
8446
  d: "M 0 0 L 0 100 L 20 100 L 20 60 C 20 0 80 0 80 50 L 80 100 L 100 100 L 100 25 C 80 -10 20 -10 20 20 L 20 0 L 0 0",
8447
8447
  ...e
8448
8448
  }
8449
- ), af = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8449
+ ), of = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8450
8450
  /* @__PURE__ */ f.jsx(
8451
8451
  "path",
8452
8452
  {
@@ -8455,7 +8455,7 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8455
8455
  }
8456
8456
  ),
8457
8457
  /* @__PURE__ */ f.jsx("path", { d: "M 79 40 C 80 5 20 5 20 35 C 20 70 80 70 79 35", fill: "#ffffff" })
8458
- ] }), of = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8458
+ ] }), sf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8459
8459
  /* @__PURE__ */ f.jsx(
8460
8460
  "path",
8461
8461
  {
@@ -8464,19 +8464,19 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8464
8464
  }
8465
8465
  ),
8466
8466
  /* @__PURE__ */ f.jsx("path", { d: "M 79 40 C 80 5 20 5 20 35 C 20 70 80 70 79 35", fill: "#ffffff" })
8467
- ] }), sf = (e) => /* @__PURE__ */ f.jsx(
8467
+ ] }), cf = (e) => /* @__PURE__ */ f.jsx(
8468
8468
  "path",
8469
8469
  {
8470
8470
  d: "M 0 0 L 0 100 L 20 100 L 20 60 C 20 0 80 0 80 50 L 100 50 L 100 25 C 80 -10 20 -10 20 20 L 20 0 L 0 0",
8471
8471
  ...e
8472
8472
  }
8473
- ), cf = (e) => /* @__PURE__ */ f.jsx(
8473
+ ), lf = (e) => /* @__PURE__ */ f.jsx(
8474
8474
  "path",
8475
8475
  {
8476
8476
  d: "M 95 68 C 80 117 20 105 20 63 L 20 47 L 7 47 L 7 27 L 20 27 L 20 0 L 45 0 L 45 27 L 57 27 L 57 47 L 45 47 L 45 63 C 45 90 70 90 75 68 L 95 68",
8477
8477
  ...e
8478
8478
  }
8479
- ), lf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8479
+ ), uf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8480
8480
  /* @__PURE__ */ f.jsx(
8481
8481
  "path",
8482
8482
  {
@@ -8494,14 +8494,14 @@ const Wu = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8494
8494
  width: 25
8495
8495
  }
8496
8496
  )
8497
- ] }), uf = (e) => /* @__PURE__ */ f.jsx(
8497
+ ] }), ff = (e) => /* @__PURE__ */ f.jsx(
8498
8498
  "path",
8499
8499
  {
8500
8500
  d: "M 0 0 L 25 0 L 50 36 L 75 0 L 100 0 L 40 100 L 12 100 L 37 55 L 0 0",
8501
8501
  ...e
8502
8502
  }
8503
8503
  );
8504
- function ff(e) {
8504
+ function df(e) {
8505
8505
  return /* @__PURE__ */ f.jsx(
8506
8506
  "path",
8507
8507
  {
@@ -8510,43 +8510,43 @@ function ff(e) {
8510
8510
  }
8511
8511
  );
8512
8512
  }
8513
- const df = (e) => /* @__PURE__ */ f.jsx(
8513
+ const hf = (e) => /* @__PURE__ */ f.jsx(
8514
8514
  "path",
8515
8515
  {
8516
8516
  ...e,
8517
8517
  d: "M 0 25 C 20 -8 80 -8 100 25 C 100 90 30 50 20 85 L 100 85 L 100 100 L 0 100 L 0 70 C 10 40 75 70 75 25 C 70 10 30 10 25 28 L 0 25"
8518
8518
  }
8519
- ), hf = (e) => /* @__PURE__ */ f.jsx(
8519
+ ), pf = (e) => /* @__PURE__ */ f.jsx(
8520
8520
  "path",
8521
8521
  {
8522
8522
  ...e,
8523
8523
  d: "M 0 35 L 0 25 C 20 -8 80 -8 100 25 C 100 30 100 50 75 50 C 100 50 100 70 100 75 C 80 108 20 108 0 75 L 0 65 L 25 65 L 25 75 C 30 88 70 88 75 75 C 75 68 75 65 47 58 L 47 42 C 75 32 75 35 75 25 C 70 12 30 12 25 25 L 25 35"
8524
8524
  }
8525
- ), pf = (e) => /* @__PURE__ */ f.jsx(
8525
+ ), gf = (e) => /* @__PURE__ */ f.jsx(
8526
8526
  "path",
8527
8527
  {
8528
8528
  ...e,
8529
8529
  d: "M 50 0 L 0 50 L 0 70 L 50 70 L 50 100 L 75 100 L 75 70 L 100 70 L 100 50 L 75 50 L 75 0 L 50 15 L 50 50 L 30 50 L 75 0 L 50 0"
8530
8530
  }
8531
- ), gf = (e) => /* @__PURE__ */ f.jsx(
8531
+ ), mf = (e) => /* @__PURE__ */ f.jsx(
8532
8532
  "path",
8533
8533
  {
8534
8534
  ...e,
8535
8535
  d: "M 95 20 L 100 0 L 10 0 L 0 60 L 25 60 C 30 45 90 50 75 77 C 66 87 30 90 26 72 L 0 80 C 20 110 80 110 100 70 C 100 25 10 25 25 40 L 30 20 L 95 20"
8536
8536
  }
8537
- ), mf = (e) => /* @__PURE__ */ f.jsx(
8537
+ ), vf = (e) => /* @__PURE__ */ f.jsx(
8538
8538
  "path",
8539
8539
  {
8540
8540
  ...e,
8541
8541
  d: "M 50 0 C -40 70 10 100 50 100 C 90 100 100 80 100 55 C 80 30 30 30 35 50 L 30 60 C 80 50 80 85 50 80 C 10 80 48 10 90 0 L 50 0"
8542
8542
  }
8543
- ), vf = (e) => /* @__PURE__ */ f.jsx(
8543
+ ), xf = (e) => /* @__PURE__ */ f.jsx(
8544
8544
  "path",
8545
8545
  {
8546
8546
  ...e,
8547
8547
  d: "M 0 0 L 100 0 L 50 100 L 20 100 L 60 20 L 0 20 L 0 0"
8548
8548
  }
8549
- ), xf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8549
+ ), yf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8550
8550
  /* @__PURE__ */ f.jsx(
8551
8551
  "path",
8552
8552
  {
@@ -8561,7 +8561,7 @@ const df = (e) => /* @__PURE__ */ f.jsx(
8561
8561
  d: "M 100 35 L 100 25 C 80 -8 20 -8 0 25 C 0 30 0 50 25 50 C 0 50 0 70 0 75 C 20 108 80 108 100 75 L 100 65 L 75 65 L 75 75 C 70 88 30 88 25 75 C 25 68 25 65 53 58 L 53 42 C 25 32 25 35 25 25 C 30 12 70 12 75 25 L 75 35"
8562
8562
  }
8563
8563
  )
8564
- ] }), yf = (e) => /* @__PURE__ */ f.jsx(
8564
+ ] }), _f = (e) => /* @__PURE__ */ f.jsx(
8565
8565
  "path",
8566
8566
  {
8567
8567
  ...e,
@@ -8576,10 +8576,10 @@ const df = (e) => /* @__PURE__ */ f.jsx(
8576
8576
  }
8577
8577
  ),
8578
8578
  /* @__PURE__ */ f.jsx("path", { fill: "#ffffff", d: "M 41 55 L 50 25 L 58 55 L 41 55" })
8579
- ] }), _f = `M 0 0 L 80 0 C 105 0 105 50 80 50
8579
+ ] }), bf = `M 0 0 L 80 0 C 105 0 105 50 80 50
8580
8580
  C 105 50 105 100 80 100 L 00 100
8581
- L 0 0`, bf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8582
- /* @__PURE__ */ f.jsx("path", { ...e, d: _f }),
8581
+ L 0 0`, wf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8582
+ /* @__PURE__ */ f.jsx("path", { ...e, d: bf }),
8583
8583
  /* @__PURE__ */ f.jsx(
8584
8584
  "path",
8585
8585
  {
@@ -8594,31 +8594,31 @@ const df = (e) => /* @__PURE__ */ f.jsx(
8594
8594
  fill: "#ffffff"
8595
8595
  }
8596
8596
  )
8597
- ] }), wf = `M 100 28 C 100 -13 0 -13 0 50
8597
+ ] }), Sf = `M 100 28 C 100 -13 0 -13 0 50
8598
8598
  C 0 113 100 113 100 72 L 75 72
8599
8599
  C 75 90 30 90 30 50 C 30 10 75 10 75 28
8600
- L 100 28`, br = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: wf }), Sf = `M 0 0 L 60 0 C 110 0 110 100 60 100
8601
- L 0 100 L 0 0`, kf = `M 20 15 L 40 15 C 85 15 85 85 40 85
8602
- L 20 85 L 20 15`, Ef = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8603
- /* @__PURE__ */ f.jsx("path", { ...e, d: Sf }),
8604
- /* @__PURE__ */ f.jsx("path", { fill: "#ffffff", d: kf })
8605
- ] }), Lf = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
8600
+ L 100 28`, br = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Sf }), kf = `M 0 0 L 60 0 C 110 0 110 100 60 100
8601
+ L 0 100 L 0 0`, Ef = `M 20 15 L 40 15 C 85 15 85 85 40 85
8602
+ L 20 85 L 20 15`, Lf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8603
+ /* @__PURE__ */ f.jsx("path", { ...e, d: kf }),
8604
+ /* @__PURE__ */ f.jsx("path", { fill: "#ffffff", d: Ef })
8605
+ ] }), Tf = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
8606
8606
  L 90 40 L 90 60 L 20 60 L 20 80 L 100 80
8607
- L 100 100 L 0 100 L 0 0`, Tf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Lf }), Cf = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
8607
+ L 100 100 L 0 100 L 0 0`, Cf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Tf }), Rf = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
8608
8608
  L 80 40 L 80 60 L 20 60 L 20 100 L 0 100
8609
- L 0 0`, Rf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Cf }), Df = `M 100 28 C 100 -13 0 -13 0 50 C 0 113 100 113 100 72
8609
+ L 0 0`, Df = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Rf }), jf = `M 100 28 C 100 -13 0 -13 0 50 C 0 113 100 113 100 72
8610
8610
  L 100 48 L 55 48 L 55 72 L 75 72 C 75 90 30 90 30 50
8611
- C 30 10 75 5 75 28 L 100 28`, vi = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Df }), jf = `M 0 0 L 20 0 L 20 40 L 80 40 L 80 0
8611
+ C 30 10 75 5 75 28 L 100 28`, vi = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: jf }), Mf = `M 0 0 L 20 0 L 20 40 L 80 40 L 80 0
8612
8612
  L 100 0 L 100 100 L 80 100 L 80 60
8613
- L 20 60 L 20 100 L 0 100 L 0 0`, Mf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: jf }), Bf = "M 40 0 L 60 0 L 60 100 L 40 100 L 40 0", If = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Bf }), Of = `M 0 60 C 0 111 100 111 100 60
8613
+ L 20 60 L 20 100 L 0 100 L 0 0`, Bf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Mf }), If = "M 40 0 L 60 0 L 60 100 L 40 100 L 40 0", Of = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: If }), Pf = `M 0 60 C 0 111 100 111 100 60
8614
8614
  L 100 0 L 75 0 L 75 60
8615
- C 80 90 20 90 25 60`, Pf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Of }), Af = `M 0 0 L 20 0 L 20 40 L 75 0 L 100 0
8615
+ C 80 90 20 90 25 60`, Af = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Pf }), Nf = `M 0 0 L 20 0 L 20 40 L 75 0 L 100 0
8616
8616
  L 50 50 L 100 100 L 75 100 L 30 65
8617
- L 20 75 L 20 100 L 0 100 L 0 0`, Nf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Af }), qf = `M 0 0 L 0 100 L 100 100 L 100 80
8618
- L 20 80 L 20 0 L 0 0`, $f = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: qf }), zf = `M 0 0 L 20 0 L 50 35 L 80 0 L 100 0 L 100 100
8617
+ L 20 75 L 20 100 L 0 100 L 0 0`, qf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Nf }), $f = `M 0 0 L 0 100 L 100 100 L 100 80
8618
+ L 20 80 L 20 0 L 0 0`, zf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: $f }), Ff = `M 0 0 L 20 0 L 50 35 L 80 0 L 100 0 L 100 100
8619
8619
  L 80 100 L 80 30 L 50 65 L 20 30 L 20 100
8620
- L 0 100 L 0 0`, Ff = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: zf }), Uf = `M 0 100 L 0 0 L 20 0 L 80 75 L 80 0
8621
- L 100 0 L 100 100 L 80 100 L 20 25 L 20 100 L 0 100`, Hf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Uf }), Gn = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8620
+ L 0 100 L 0 0`, Uf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Ff }), Hf = `M 0 100 L 0 0 L 20 0 L 80 75 L 80 0
8621
+ L 100 0 L 100 100 L 80 100 L 20 25 L 20 100 L 0 100`, Wf = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Hf }), Gn = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8622
8622
  /* @__PURE__ */ f.jsx(
8623
8623
  "circle",
8624
8624
  {
@@ -8629,9 +8629,9 @@ const df = (e) => /* @__PURE__ */ f.jsx(
8629
8629
  }
8630
8630
  ),
8631
8631
  /* @__PURE__ */ f.jsx("circle", { cx: "50", cy: "50", r: "32", fill: "#ffffff" })
8632
- ] }), Wf = `M 0 0 L 80 0 C 105 0 105 50 80 50
8633
- L 20 50 L 20 100 L 0 100 L 0 0`, Yf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8634
- /* @__PURE__ */ f.jsx("path", { ...e, d: Wf }),
8632
+ ] }), Yf = `M 0 0 L 80 0 C 105 0 105 50 80 50
8633
+ L 20 50 L 20 100 L 0 100 L 0 0`, Gf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8634
+ /* @__PURE__ */ f.jsx("path", { ...e, d: Yf }),
8635
8635
  /* @__PURE__ */ f.jsx(
8636
8636
  "path",
8637
8637
  {
@@ -8639,7 +8639,7 @@ const df = (e) => /* @__PURE__ */ f.jsx(
8639
8639
  d: "M 20 15 L 70 15 C 80 15 80 35 70 35 L 20 35 L 20 15"
8640
8640
  }
8641
8641
  )
8642
- ] }), Gf = "M 85 100 L 55 70 L 70 55 L 100 85 L 85 100", Vf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8642
+ ] }), Vf = "M 85 100 L 55 70 L 70 55 L 100 85 L 85 100", Zf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8643
8643
  /* @__PURE__ */ f.jsx(
8644
8644
  "circle",
8645
8645
  {
@@ -8650,12 +8650,12 @@ const df = (e) => /* @__PURE__ */ f.jsx(
8650
8650
  }
8651
8651
  ),
8652
8652
  /* @__PURE__ */ f.jsx("circle", { cx: "50", cy: "50", r: "32", fill: "#ffffff" }),
8653
- /* @__PURE__ */ f.jsx("path", { d: Gf, ...e })
8654
- ] }), Zf = `M 0 0 L 80 0 C 105 0 105 50 80 50
8653
+ /* @__PURE__ */ f.jsx("path", { d: Vf, ...e })
8654
+ ] }), Xf = `M 0 0 L 80 0 C 105 0 105 50 80 50
8655
8655
  C 100 50 100 70 100 70 L 100 100 L 80 100
8656
8656
  L 80 80 C 80 80 80 60 50 60 L 20 60
8657
- L 20 100 L 0 100 L 0 0`, Xf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8658
- /* @__PURE__ */ f.jsx("path", { ...e, d: Zf }),
8657
+ L 20 100 L 0 100 L 0 0`, Kf = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8658
+ /* @__PURE__ */ f.jsx("path", { ...e, d: Xf }),
8659
8659
  /* @__PURE__ */ f.jsx(
8660
8660
  "path",
8661
8661
  {
@@ -8663,33 +8663,33 @@ const df = (e) => /* @__PURE__ */ f.jsx(
8663
8663
  d: "M 20 15 L 70 15 C 80 15 80 35 70 35 L 20 35 L 20 15"
8664
8664
  }
8665
8665
  )
8666
- ] }), Kf = "M92 26 A43 20 0 1 0 43 46 A42 23 0 1 1 9 68", jo = ({ fill: e, fillOpacity: t }) => /* @__PURE__ */ f.jsx(
8666
+ ] }), Jf = "M92 26 A43 20 0 1 0 43 46 A42 23 0 1 1 9 68", jo = ({ fill: e, fillOpacity: t }) => /* @__PURE__ */ f.jsx(
8667
8667
  "path",
8668
8668
  {
8669
8669
  fill: "#ffffff",
8670
8670
  stroke: e,
8671
8671
  strokeOpacity: t,
8672
8672
  strokeWidth: "18",
8673
- d: Kf
8673
+ d: Jf
8674
8674
  }
8675
- ), Jf = `M 0 0 L 0 20 L 35 20 L 35 100
8675
+ ), Qf = `M 0 0 L 0 20 L 35 20 L 35 100
8676
8676
  L 65 100 L 65 20 L 100 20
8677
- L 100 0 L 0 0`, xi = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Jf }), Qf = `M 0 0 L 0 60 C 0 111 100 111 100 60
8677
+ L 100 0 L 0 0`, xi = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Qf }), ed = `M 0 0 L 0 60 C 0 111 100 111 100 60
8678
8678
  L 100 0 L 75 0 L 75 60
8679
- C 80 90 20 90 25 60 L 25 0 L 0 0`, ed = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: Qf }), td = `M 0 0 L 20 0 L 50 80 L 80 0
8680
- L 100 0 L 60 100 L 40 100 L 0 0`, Mo = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: td }), rd = `M 0 0 L 20 0 L 30 70 L 50 30 L 70 70 L 80 0
8679
+ C 80 90 20 90 25 60 L 25 0 L 0 0`, td = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: ed }), rd = `M 0 0 L 20 0 L 50 80 L 80 0
8680
+ L 100 0 L 60 100 L 40 100 L 0 0`, Mo = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: rd }), nd = `M 0 0 L 20 0 L 30 70 L 50 30 L 70 70 L 80 0
8681
8681
  L 100 0 L 90 100 L 70 100 L 50 65 L 30 100
8682
- L 10 100 L 0 0`, Bo = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: rd }), nd = `M 0 0 L 20 0 L 50 40 L 80 0 L 100 0 L 70 50
8682
+ L 10 100 L 0 0`, Bo = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: nd }), id = `M 0 0 L 20 0 L 50 40 L 80 0 L 100 0 L 70 50
8683
8683
  L 100 100 L 80 100 L 50 60 L 20 100 L 0 100
8684
- L 30 50 L 0 0`, Io = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: nd }), id = `M 0 0 L 20 0 L 50 45 L 80 0 L 100 0
8685
- L 60 60 L 60 100 L 40 100 L 40 60 L 0 0`, ad = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: id }), od = `M 0 0 L 100 0 L 100 20 L 35 80 L 100 80
8684
+ L 30 50 L 0 0`, Io = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: id }), ad = `M 0 0 L 20 0 L 50 45 L 80 0 L 100 0
8685
+ L 60 60 L 60 100 L 40 100 L 40 60 L 0 0`, od = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: ad }), sd = `M 0 0 L 100 0 L 100 20 L 35 80 L 100 80
8686
8686
  L 100 100 L 0 100 L 0 80 L 65 20 L 0 20
8687
- L 0 0`, Oo = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: od });
8688
- function sd({ xscale: e, yscale: t, inverted: n, children: r }) {
8687
+ L 0 0`, Oo = (e) => /* @__PURE__ */ f.jsx("path", { ...e, d: sd });
8688
+ function cd({ xscale: e, yscale: t, inverted: n, children: r }) {
8689
8689
  const i = t * (n ? -1 : 1);
8690
8690
  return /* @__PURE__ */ f.jsx("g", { transform: "scale(" + e + "," + i + ")", children: r });
8691
8691
  }
8692
- const cd = ({
8692
+ const ld = ({
8693
8693
  height: e,
8694
8694
  width: t,
8695
8695
  indices: n,
@@ -8731,7 +8731,7 @@ const cd = ({
8731
8731
  regex: [r[k].regex[L]],
8732
8732
  color: r[k].color && [r[k].color[L]]
8733
8733
  })),
8734
- children: /* @__PURE__ */ f.jsx(sd, { xscale: w, yscale: i[k], inverted: s || !1, children: /* @__PURE__ */ f.jsx(
8734
+ children: /* @__PURE__ */ f.jsx(cd, { xscale: w, yscale: i[k], inverted: s || !1, children: /* @__PURE__ */ f.jsx(
8735
8735
  E,
8736
8736
  {
8737
8737
  fill: r[k].color && r[k].color[L] || "#000000",
@@ -8744,7 +8744,7 @@ const cd = ({
8744
8744
  ));
8745
8745
  });
8746
8746
  return /* @__PURE__ */ f.jsx("g", { transform: a, children: v });
8747
- }, ld = (e, t) => (n) => t[0] + (t[1] - t[0]) * ((n - e[0]) / (e[1] - e[0])), ud = ({
8747
+ }, ud = (e, t) => (n) => t[0] + (t[1] - t[0]) * ((n - e[0]) / (e[1] - e[0])), fd = ({
8748
8748
  minrange: e,
8749
8749
  maxrange: t,
8750
8750
  xstart: n,
@@ -8754,7 +8754,7 @@ const cd = ({
8754
8754
  numberofgridlines: o,
8755
8755
  stroke: s
8756
8756
  }) => {
8757
- const c = ld([e, t], [n, r]), u = t - e, p = a + i, h = Math.ceil(u) / o, b = Math.ceil(u / h), v = Array.from(Array(b).keys());
8757
+ const c = ud([e, t], [n, r]), u = t - e, p = a + i, h = Math.ceil(u) / o, b = Math.ceil(u / h), v = Array.from(Array(b).keys());
8758
8758
  return /* @__PURE__ */ f.jsxs("g", { stroke: s || "#000000", children: [
8759
8759
  v.map((k) => {
8760
8760
  const D = e + h * k;
@@ -8765,68 +8765,68 @@ const cd = ({
8765
8765
  ] });
8766
8766
  }, Vn = "FREQUENCY", Po = [
8767
8767
  { component: [mi], regex: ["A"], color: ["red"] },
8768
- { component: [bf], regex: ["B"], color: ["maroon"] },
8768
+ { component: [wf], regex: ["B"], color: ["maroon"] },
8769
8769
  { component: [br], regex: ["C"], color: ["blue"] },
8770
- { component: [Ef], regex: ["D"], color: ["green"] },
8771
- { component: [Tf], regex: ["E"], color: ["olive"] },
8772
- { component: [Rf], regex: ["F"], color: ["navy"] },
8770
+ { component: [Lf], regex: ["D"], color: ["green"] },
8771
+ { component: [Cf], regex: ["E"], color: ["olive"] },
8772
+ { component: [Df], regex: ["F"], color: ["navy"] },
8773
8773
  { component: [vi], regex: ["G"], color: ["orange"] },
8774
- { component: [Mf], regex: ["H"], color: ["teal"] },
8775
- { component: [If], regex: ["I"], color: ["cadetblue"] },
8776
- { component: [Pf], regex: ["J"], color: ["lavender"] },
8777
- { component: [Nf], regex: ["K"], color: ["chocolate"] },
8778
- { component: [$f], regex: ["L"], color: ["coral"] },
8779
- { component: [Ff], regex: ["M"], color: ["darkolivegreen"] },
8780
- { component: [Hf], regex: ["N"], color: ["darkorange"] },
8774
+ { component: [Bf], regex: ["H"], color: ["teal"] },
8775
+ { component: [Of], regex: ["I"], color: ["cadetblue"] },
8776
+ { component: [Af], regex: ["J"], color: ["lavender"] },
8777
+ { component: [qf], regex: ["K"], color: ["chocolate"] },
8778
+ { component: [zf], regex: ["L"], color: ["coral"] },
8779
+ { component: [Uf], regex: ["M"], color: ["darkolivegreen"] },
8780
+ { component: [Wf], regex: ["N"], color: ["darkorange"] },
8781
8781
  { component: [Gn], regex: ["O"], color: ["gold"] },
8782
- { component: [Yf], regex: ["P"], color: ["darkorchid"] },
8783
- { component: [Vf], regex: ["Q"], color: ["darkslateblue"] },
8784
- { component: [Xf], regex: ["R"], color: ["firebrick"] },
8782
+ { component: [Gf], regex: ["P"], color: ["darkorchid"] },
8783
+ { component: [Zf], regex: ["Q"], color: ["darkslateblue"] },
8784
+ { component: [Kf], regex: ["R"], color: ["firebrick"] },
8785
8785
  { component: [jo], regex: ["S"], color: ["darkslategrey"] },
8786
8786
  { component: [xi], regex: ["T"], color: ["#228b22"] },
8787
- { component: [ed], regex: ["U"], color: ["seagreen"] },
8787
+ { component: [td], regex: ["U"], color: ["seagreen"] },
8788
8788
  { component: [Mo], regex: ["V"], color: ["indigo"] },
8789
8789
  { component: [Bo], regex: ["W"], color: ["mediumseagreen"] },
8790
8790
  { component: [Io], regex: ["X"], color: ["black"] },
8791
- { component: [ad], regex: ["Y"], color: ["palevioletred"] },
8791
+ { component: [od], regex: ["Y"], color: ["palevioletred"] },
8792
8792
  { component: [Oo], regex: ["Z"], color: ["peru"] },
8793
- { component: [Wu], regex: ["a"], color: ["red"] },
8794
- { component: [Yu], regex: ["b"], color: ["maroon"] },
8793
+ { component: [Yu], regex: ["a"], color: ["red"] },
8794
+ { component: [Gu], regex: ["b"], color: ["maroon"] },
8795
8795
  { component: [br], regex: ["c"], color: ["purple"] },
8796
- { component: [Gu], regex: ["d"], color: ["green"] },
8797
- { component: [Vu], regex: ["e"], color: ["olive"] },
8798
- { component: [Zu], regex: ["f"], color: ["navy"] },
8799
- { component: [Xu], regex: ["g"], color: ["orange"] },
8800
- { component: [Ku], regex: ["h"], color: ["teal"] },
8801
- { component: [Ju], regex: ["i"], color: ["cadetblue"] },
8802
- { component: [Qu], regex: ["j"], color: ["lavender"] },
8803
- { component: [ef], regex: ["k"], color: ["chocolate"] },
8804
- { component: [tf], regex: ["l"], color: ["coral"] },
8805
- { component: [rf], regex: ["m"], color: ["darkolivegreen"] },
8806
- { component: [nf], regex: ["n"], color: ["darkorange"] },
8796
+ { component: [Vu], regex: ["d"], color: ["green"] },
8797
+ { component: [Zu], regex: ["e"], color: ["olive"] },
8798
+ { component: [Xu], regex: ["f"], color: ["navy"] },
8799
+ { component: [Ku], regex: ["g"], color: ["orange"] },
8800
+ { component: [Ju], regex: ["h"], color: ["teal"] },
8801
+ { component: [Qu], regex: ["i"], color: ["cadetblue"] },
8802
+ { component: [ef], regex: ["j"], color: ["lavender"] },
8803
+ { component: [tf], regex: ["k"], color: ["chocolate"] },
8804
+ { component: [rf], regex: ["l"], color: ["coral"] },
8805
+ { component: [nf], regex: ["m"], color: ["darkolivegreen"] },
8806
+ { component: [af], regex: ["n"], color: ["darkorange"] },
8807
8807
  { component: [Gn], regex: ["o"], color: ["gold"] },
8808
- { component: [af], regex: ["p"], color: ["darkorchid"] },
8809
- { component: [of], regex: ["q"], color: ["darkslateblue"] },
8810
- { component: [sf], regex: ["r"], color: ["firebrick"] },
8808
+ { component: [of], regex: ["p"], color: ["darkorchid"] },
8809
+ { component: [sf], regex: ["q"], color: ["darkslateblue"] },
8810
+ { component: [cf], regex: ["r"], color: ["firebrick"] },
8811
8811
  { component: [jo], regex: ["s"], color: ["darkslategrey"] },
8812
- { component: [cf], regex: ["t"], color: ["#228b22"] },
8813
- { component: [lf], regex: ["u"], color: ["seagreen"] },
8812
+ { component: [lf], regex: ["t"], color: ["#228b22"] },
8813
+ { component: [uf], regex: ["u"], color: ["seagreen"] },
8814
8814
  { component: [Mo], regex: ["v"], color: ["indigo"] },
8815
8815
  { component: [Bo], regex: ["w"], color: ["mediumseagreen"] },
8816
8816
  { component: [Io], regex: ["x"], color: ["black"] },
8817
- { component: [uf], regex: ["y"], color: ["palevioletred"] },
8817
+ { component: [ff], regex: ["y"], color: ["palevioletred"] },
8818
8818
  { component: [Oo], regex: ["z"], color: ["peru"] },
8819
8819
  { component: [Gn], regex: ["0"], color: ["indianred"] },
8820
- { component: [ff], regex: ["1"], color: ["red"] },
8821
- { component: [df], regex: ["2"], color: ["green"] },
8822
- { component: [hf], regex: ["3"], color: ["purple"] },
8823
- { component: [pf], regex: ["4"], color: ["navy"] },
8824
- { component: [gf], regex: ["5"], color: ["teal"] },
8825
- { component: [mf], regex: ["6"], color: ["gold"] },
8826
- { component: [vf], regex: ["7"], color: ["olive"] },
8827
- { component: [xf], regex: ["8"], color: ["slate"] },
8828
- { component: [yf], regex: ["9"], color: ["firebrick"] }
8829
- ], fd = (e, t) => {
8820
+ { component: [df], regex: ["1"], color: ["red"] },
8821
+ { component: [hf], regex: ["2"], color: ["green"] },
8822
+ { component: [pf], regex: ["3"], color: ["purple"] },
8823
+ { component: [gf], regex: ["4"], color: ["navy"] },
8824
+ { component: [mf], regex: ["5"], color: ["teal"] },
8825
+ { component: [vf], regex: ["6"], color: ["gold"] },
8826
+ { component: [xf], regex: ["7"], color: ["olive"] },
8827
+ { component: [yf], regex: ["8"], color: ["slate"] },
8828
+ { component: [_f], regex: ["9"], color: ["firebrick"] }
8829
+ ], dd = (e, t) => {
8830
8830
  let n = ("" + e).length;
8831
8831
  for (let r = e + 1; r < e + t; ++r)
8832
8832
  ("" + r).length > n && (n = ("" + r).length);
@@ -8838,7 +8838,7 @@ const cd = ({
8838
8838
  e[r] = Po[n];
8839
8839
  });
8840
8840
  }), e;
8841
- })(), dd = (e) => e.map((t) => {
8841
+ })(), hd = (e) => e.map((t) => {
8842
8842
  if (t.regex.length === 1)
8843
8843
  return Object.assign({}, t, {
8844
8844
  component: Ao[t.regex[0]].component
@@ -8848,7 +8848,7 @@ const cd = ({
8848
8848
  for (let i = 0; i < r.regex.length; ++i)
8849
8849
  r.component.push(Ao[r.regex[i]].component[0]), r.color.push(t.color && t.color[i] || n);
8850
8850
  return r;
8851
- }), hd = (e) => (t, n) => {
8851
+ }), pd = (e) => (t, n) => {
8852
8852
  let r = 0, i = n || 0;
8853
8853
  return t.map(
8854
8854
  (a, o) => r += a === 0 ? 0 : a * Math.log2(a / (e[o] || 0.01))
@@ -8856,12 +8856,12 @@ const cd = ({
8856
8856
  const o = a * (r - i);
8857
8857
  return o <= 0 ? 0 : o;
8858
8858
  });
8859
- }, pd = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? -1 : e[t] === e[n] ? 0 : 1), gd = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? 1 : e[t] === e[n] ? 0 : -1), yi = (e) => {
8859
+ }, gd = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? -1 : e[t] === e[n] ? 0 : 1), md = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? 1 : e[t] === e[n] ? 0 : -1), yi = (e) => {
8860
8860
  let t = [];
8861
8861
  for (let n = 0; n < Math.floor(e); n++)
8862
8862
  t.push(n);
8863
8863
  return t;
8864
- }, md = ({
8864
+ }, vd = ({
8865
8865
  n: e,
8866
8866
  transform: t,
8867
8867
  glyphWidth: n,
@@ -8879,7 +8879,7 @@ const cd = ({
8879
8879
  },
8880
8880
  a
8881
8881
  )) }) });
8882
- }, vd = (e) => {
8882
+ }, xd = (e) => {
8883
8883
  const t = yi(e.bits + 1), n = e.zeroPoint || 1;
8884
8884
  return /* @__PURE__ */ f.jsxs("g", { transform: e.transform, children: [
8885
8885
  /* @__PURE__ */ f.jsx(
@@ -8923,7 +8923,7 @@ const cd = ({
8923
8923
  }
8924
8924
  ) })
8925
8925
  ] });
8926
- }, xd = (e) => {
8926
+ }, yd = (e) => {
8927
8927
  const t = yi(e.ticks + 1).map((n) => n / e.ticks);
8928
8928
  return /* @__PURE__ */ f.jsxs("g", { transform: e.transform, children: [
8929
8929
  /* @__PURE__ */ f.jsx(
@@ -8958,10 +8958,10 @@ const cd = ({
8958
8958
  )),
8959
8959
  /* @__PURE__ */ f.jsx("g", { transform: "rotate(-90)", children: /* @__PURE__ */ f.jsx("text", { y: "15", x: -e.height / 2, textAnchor: "middle", fontSize: "18", children: "frequency" }) })
8960
8960
  ] });
8961
- }, yd = (e, t, n, r) => (i, a, o, s, c, u) => {
8962
- const p = u ? gd(i) : pd(i), { onSymbolMouseOver: h, onSymbolMouseOut: b, onSymbolClick: v } = s;
8961
+ }, _d = (e, t, n, r) => (i, a, o, s, c, u) => {
8962
+ const p = u ? md(i) : gd(i), { onSymbolMouseOver: h, onSymbolMouseOut: b, onSymbolClick: v } = s;
8963
8963
  return /* @__PURE__ */ f.jsx(
8964
- cd,
8964
+ ld,
8965
8965
  {
8966
8966
  indices: p,
8967
8967
  alphabet: o,
@@ -8977,7 +8977,7 @@ const cd = ({
8977
8977
  },
8978
8978
  a
8979
8979
  );
8980
- }, _d = ({
8980
+ }, bd = ({
8981
8981
  values: e,
8982
8982
  glyphWidth: t,
8983
8983
  stackHeight: n,
@@ -8986,10 +8986,10 @@ const cd = ({
8986
8986
  onSymbolMouseOut: a,
8987
8987
  onSymbolClick: o
8988
8988
  }) => {
8989
- const s = yd(t, n);
8989
+ const s = _d(t, n);
8990
8990
  for (const c in r)
8991
8991
  if (!r[c].component) {
8992
- r = dd(r);
8992
+ r = hd(r);
8993
8993
  break;
8994
8994
  }
8995
8995
  return e.map(
@@ -9012,7 +9012,7 @@ const cd = ({
9012
9012
  count: n.length,
9013
9013
  pfm: r
9014
9014
  };
9015
- }, bd = (e, t) => {
9015
+ }, wd = (e, t) => {
9016
9016
  const n = {}, r = [];
9017
9017
  return e.forEach((i, a) => {
9018
9018
  i.regex.forEach((o) => {
@@ -9022,7 +9022,7 @@ const cd = ({
9022
9022
  `).forEach((i) => {
9023
9023
  i[0] === ">" ? r.push("") : r[r.length - 1] += i.trim();
9024
9024
  }), Ns(e, n, r);
9025
- }, wd = (e, t) => {
9025
+ }, Sd = (e, t) => {
9026
9026
  const n = {};
9027
9027
  return e.forEach((r, i) => {
9028
9028
  r.regex.forEach((a) => {
@@ -9034,7 +9034,7 @@ const cd = ({
9034
9034
  t.split(`
9035
9035
  `).map((r) => r.trim())
9036
9036
  );
9037
- }, Sd = ({
9037
+ }, kd = ({
9038
9038
  ppm: e,
9039
9039
  pfm: t,
9040
9040
  values: n,
@@ -9061,7 +9061,7 @@ const cd = ({
9061
9061
  let _ = null;
9062
9062
  const g = (t || r) && !v && !d ? !k : !1, x = g ? 0 : (v || 0) / s.length;
9063
9063
  if (!e && !t && r) {
9064
- const ne = (y ? wd : bd)(
9064
+ const ne = (y ? Sd : wd)(
9065
9065
  s,
9066
9066
  r.toUpperCase()
9067
9067
  );
@@ -9083,7 +9083,7 @@ const cd = ({
9083
9083
  let j = e[0].length;
9084
9084
  b || (b = e[0].map((ne) => 1 / j));
9085
9085
  let M = n || (i !== Vn ? e.map(
9086
- (ne, F) => hd(b)(ne, C ? C[F] : void 0)
9086
+ (ne, F) => pd(b)(ne, C ? C[F] : void 0)
9087
9087
  ) : e.map(
9088
9088
  (ne) => ne.map((F) => F * Math.log2(j))
9089
9089
  ));
@@ -9091,7 +9091,7 @@ const cd = ({
9091
9091
  p = p && !isNaN(parseFloat(p.toString())) && isFinite(p) ? p : 1;
9092
9092
  let V = 100 * A;
9093
9093
  c = V / 6 * (c || 1);
9094
- let W = M.length * c + 80, ae = V + 18 * (fd(p, M.length) + 1);
9094
+ let W = M.length * c + 80, ae = V + 18 * (dd(p, M.length) + 1);
9095
9095
  return u && (W > ae ? o = u : a = u), /* @__PURE__ */ f.jsxs(
9096
9096
  "svg",
9097
9097
  {
@@ -9101,7 +9101,7 @@ const cd = ({
9101
9101
  ref: m,
9102
9102
  children: [
9103
9103
  h && /* @__PURE__ */ f.jsx(
9104
- ud,
9104
+ fd,
9105
9105
  {
9106
9106
  minrange: p,
9107
9107
  maxrange: p + e.length,
@@ -9113,7 +9113,7 @@ const cd = ({
9113
9113
  }
9114
9114
  ),
9115
9115
  /* @__PURE__ */ f.jsx(
9116
- md,
9116
+ vd,
9117
9117
  {
9118
9118
  transform: "translate(80," + (V + 20) + ")",
9119
9119
  n: M.length,
@@ -9122,7 +9122,7 @@ const cd = ({
9122
9122
  }
9123
9123
  ),
9124
9124
  i === Vn ? /* @__PURE__ */ f.jsx(
9125
- xd,
9125
+ yd,
9126
9126
  {
9127
9127
  transform: "translate(0,10)",
9128
9128
  width: 65,
@@ -9130,7 +9130,7 @@ const cd = ({
9130
9130
  ticks: 2
9131
9131
  }
9132
9132
  ) : /* @__PURE__ */ f.jsx(
9133
- vd,
9133
+ xd,
9134
9134
  {
9135
9135
  transform: "translate(0,10)",
9136
9136
  width: 65,
@@ -9140,7 +9140,7 @@ const cd = ({
9140
9140
  }
9141
9141
  ),
9142
9142
  /* @__PURE__ */ f.jsx("g", { transform: "translate(80,10)", children: /* @__PURE__ */ f.jsx(
9143
- _d,
9143
+ bd,
9144
9144
  {
9145
9145
  values: M,
9146
9146
  glyphWidth: c,
@@ -9154,26 +9154,26 @@ const cd = ({
9154
9154
  ]
9155
9155
  }
9156
9156
  );
9157
- }, kd = [
9157
+ }, Ed = [
9158
9158
  { component: [mi], regex: ["A"], color: ["red"] },
9159
9159
  { component: [br], regex: ["C"], color: ["blue"] },
9160
9160
  { component: [vi], regex: ["G"], color: ["orange"] },
9161
9161
  { component: [xi], regex: ["T"], color: ["#228b22"] }
9162
9162
  ];
9163
- function Ed(e) {
9164
- return /* @__PURE__ */ f.jsx(Sd, { ...e, alphabet: kd });
9163
+ function Ld(e) {
9164
+ return /* @__PURE__ */ f.jsx(kd, { ...e, alphabet: Ed });
9165
9165
  }
9166
9166
  const No = /* @__PURE__ */ new Map([
9167
9167
  ["A", mi],
9168
9168
  ["C", br],
9169
9169
  ["G", vi],
9170
9170
  ["T", xi]
9171
- ]), Ld = /* @__PURE__ */ new Map([
9171
+ ]), Td = /* @__PURE__ */ new Map([
9172
9172
  ["A", "#008800"],
9173
9173
  ["C", "#000088"],
9174
9174
  ["G", "#a89132"],
9175
9175
  ["T", "#880000"]
9176
- ]), Td = (e) => {
9176
+ ]), Cd = (e) => {
9177
9177
  const [t, n, r] = ce(() => e.transform(e.importance), [e.transform, e.importance]);
9178
9178
  return No.get(e.base) ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
9179
9179
  /* @__PURE__ */ f.jsx(
@@ -9192,14 +9192,14 @@ const No = /* @__PURE__ */ new Map([
9192
9192
  }
9193
9193
  ),
9194
9194
  /* @__PURE__ */ f.jsx("g", { transform: `${r} translate(${e.x},${t}) scale(${e.xScale},${n})`, children: oi(No.get(e.base), {
9195
- fill: Ld.get(e.base)
9195
+ fill: Td.get(e.base)
9196
9196
  }) })
9197
9197
  ] }) : null;
9198
- }, Cd = Te.memo(Td, (e, t) => e.base === t.base && e.importance === t.importance && e.x === t.x && e.totalHeight === t.totalHeight && e.totalWidth === t.totalWidth && e.xScale === t.xScale && e.transform === t.transform && e.onMouseOver === t.onMouseOver && e.onMouseOut === t.onMouseOut && e.onMouseUp === t.onMouseUp && e.onClick === t.onClick);
9199
- function Rd({ data: e, annotations: t, dimensions: n, height: r, zeroLineProps: i }) {
9198
+ }, Rd = Te.memo(Cd, (e, t) => e.base === t.base && e.importance === t.importance && e.x === t.x && e.totalHeight === t.totalHeight && e.totalWidth === t.totalWidth && e.xScale === t.xScale && e.transform === t.transform && e.onMouseOver === t.onMouseOver && e.onMouseOut === t.onMouseOut && e.onMouseUp === t.onMouseUp && e.onClick === t.onClick);
9199
+ function Dd({ data: e, annotations: t, dimensions: n, height: r, zeroLineProps: i }) {
9200
9200
  if (e.length === 0 || e.importance.length === 0)
9201
9201
  return null;
9202
- const { viewWidth: a } = n, [o] = be(null), [s, c, u] = $u(e, r), p = qu(t || [], s, u), h = ce(() => a / s.length / 100, [a, s.length]), b = at(c, [c]), v = ce(() => p.map((L, y) => {
9202
+ const { viewWidth: a } = n, [o] = be(null), [s, c, u] = zu(e, r), p = $u(t || [], s, u), h = ce(() => a / s.length / 100, [a, s.length]), b = at(c, [c]), v = ce(() => p.map((L, y) => {
9203
9203
  const d = 100 * h * Math.abs(L.coordinates[1] - L.coordinates[0]), m = Math.min(...L.coordinates) * h * 100, _ = L.y + L.height, g = 80;
9204
9204
  return /* @__PURE__ */ f.jsxs(Ks, { children: [
9205
9205
  /* @__PURE__ */ f.jsx(
@@ -9232,7 +9232,7 @@ function Rd({ data: e, annotations: t, dimensions: n, height: r, zeroLineProps:
9232
9232
  }),
9233
9233
  [h, r, b]
9234
9234
  ), D = ce(() => s.map(
9235
- (L, y) => L.importance ? /* @__PURE__ */ oi(Cd, { ...k, key: y, x: y * h * 100, ...L }) : null
9235
+ (L, y) => L.importance ? /* @__PURE__ */ oi(Rd, { ...k, key: y, x: y * h * 100, ...L }) : null
9236
9236
  ), [s, h, r, b]), w = ce(() => c(0)[0], [c]), E = ce(() => s.filter((L) => L.importance).length > 0 ? /* @__PURE__ */ f.jsx("line", { stroke: "#ff0000", strokeWidth: 1, ...i, x1: 0, x2: a, y1: w, y2: w }) : /* @__PURE__ */ f.jsx("text", { x: 0, y: r / 2, children: "No importance track data" }), [s, a, w, r, i]);
9237
9237
  return /* @__PURE__ */ f.jsxs("g", { width: a, height: r, children: [
9238
9238
  o !== null && /* @__PURE__ */ f.jsx(
@@ -9289,9 +9289,9 @@ const qs = (e) => /* @__PURE__ */ f.jsxs("g", { transform: "translate(0, -150)",
9289
9289
  style: { filter: "drop-shadow(0px 0px 5px rgba(0,0,0,0.3))" }
9290
9290
  }
9291
9291
  ),
9292
- e.pwm && /* @__PURE__ */ f.jsx(Ed, { ppm: e.pwm, mode: "INFORMATION_CONTENT", width: e.pwm.length * 20, height: 150 })
9292
+ e.pwm && /* @__PURE__ */ f.jsx(Ld, { ppm: e.pwm, mode: "INFORMATION_CONTENT", width: e.pwm.length * 20, height: 150 })
9293
9293
  ] });
9294
- function Dd({
9294
+ function jd({
9295
9295
  id: e,
9296
9296
  data: t,
9297
9297
  height: n,
@@ -9343,7 +9343,7 @@ function Dd({
9343
9343
  ))
9344
9344
  ] });
9345
9345
  }
9346
- function jd({
9346
+ function Md({
9347
9347
  id: e,
9348
9348
  data: t,
9349
9349
  height: n,
@@ -9404,7 +9404,7 @@ function jd({
9404
9404
  )) }, `group_${g}`))
9405
9405
  ] });
9406
9406
  }
9407
- function Md({
9407
+ function Bd({
9408
9408
  data: e,
9409
9409
  datasets: t,
9410
9410
  id: n,
@@ -9458,7 +9458,7 @@ function Ft(e, t, n, r = !1, i, a, o = !1) {
9458
9458
  const { range: c, rangeSize: u } = s, p = r ? 0 : t;
9459
9459
  let h = it(0, p), b = it(0, p);
9460
9460
  return e.forEach((v, k) => {
9461
- if (v.min === null || v.max === null || o && !Bd(a == null ? void 0 : a[k])) return;
9461
+ if (v.min === null || v.max === null || o && !Id(a == null ? void 0 : a[k])) return;
9462
9462
  const D = zs(v, c, u, t, r);
9463
9463
  b += ge(v.x, p) + ge(D.x, r ? t : 0) + ge(D.x + 1, r ? t : 0) + ge(v.x + 1, p), h += ge(v.x, p) + ge(D.x, D.y) + ge(D.x + 1, D.y) + ge(v.x + 1, p);
9464
9464
  }), {
@@ -9478,7 +9478,7 @@ function zo(e, t, n, r = !1, i) {
9478
9478
  }
9479
9479
  function $s(e, t) {
9480
9480
  if (!e || e.length === 0) return null;
9481
- const n = t || { min: Od(e), max: Id(e) }, r = n.max - n.min;
9481
+ const n = t || { min: Pd(e), max: Od(e) }, r = n.max - n.min;
9482
9482
  return r <= 0 ? null : { range: n, rangeSize: r };
9483
9483
  }
9484
9484
  function zs(e, t, n, r, i) {
@@ -9488,13 +9488,13 @@ function zs(e, t, n, r, i) {
9488
9488
  y: i ? s : r - s
9489
9489
  };
9490
9490
  }
9491
- function Bd(e) {
9491
+ function Id(e) {
9492
9492
  return e != null && e.max != null && e.max > 0;
9493
9493
  }
9494
- function Id(e) {
9494
+ function Od(e) {
9495
9495
  return Math.max(...e.map((t) => t.max));
9496
9496
  }
9497
- function Od(e) {
9497
+ function Pd(e) {
9498
9498
  return Math.min(...e.map((t) => t.min));
9499
9499
  }
9500
9500
  const bt = {
@@ -9507,7 +9507,7 @@ const bt = {
9507
9507
  depth: "#525252"
9508
9508
  // rgb(82, 82, 82)
9509
9509
  };
9510
- function Pd({
9510
+ function Ad({
9511
9511
  tooltipValues: e,
9512
9512
  showRows: t
9513
9513
  }) {
@@ -9575,7 +9575,7 @@ function Pd({
9575
9575
  ] })
9576
9576
  ] });
9577
9577
  }
9578
- function Ad({
9578
+ function Nd({
9579
9579
  id: e,
9580
9580
  height: t,
9581
9581
  maskCpgByCoverage: n,
@@ -9639,7 +9639,7 @@ function Ad({
9639
9639
  onClick: void 0,
9640
9640
  onHover: void 0,
9641
9641
  onLeave: void 0,
9642
- tooltip: s || Pd
9642
+ tooltip: s || Ad
9643
9643
  });
9644
9644
  return /* @__PURE__ */ f.jsxs("g", { width: p, height: t, clipPath: `url(#${e})`, transform: `translate(-${u}, 0)`, children: [
9645
9645
  /* @__PURE__ */ f.jsx("rect", { width: p, height: t, fill: "transparent" }),
@@ -9679,7 +9679,7 @@ function Ad({
9679
9679
  )
9680
9680
  ] });
9681
9681
  }
9682
- function Nd({
9682
+ function qd({
9683
9683
  data: e,
9684
9684
  customRange: t,
9685
9685
  id: n,
@@ -9697,7 +9697,7 @@ function Nd({
9697
9697
  Ee(() => {
9698
9698
  w(n, { range: E });
9699
9699
  }, [n, E, w]);
9700
- const L = ce(() => qd(
9700
+ const L = ce(() => $d(
9701
9701
  e,
9702
9702
  r,
9703
9703
  i,
@@ -9742,7 +9742,7 @@ function Nd({
9742
9742
  )
9743
9743
  ] });
9744
9744
  }
9745
- function qd(e, t, n, r, i, a) {
9745
+ function $d(e, t, n, r, i, a) {
9746
9746
  const o = {
9747
9747
  min: e.map((E) => E.min).reduce((E, L) => Math.min(E, L), 1 / 0),
9748
9748
  max: e.map((E) => E.max).reduce((E, L) => Math.max(E, L), -1 / 0)
@@ -9772,8 +9772,8 @@ const Fo = (e, t, n, r, i) => {
9772
9772
  if (e.ldblocksnpid === "Lead") return e.rsquare;
9773
9773
  const n = e.ldblocksnpid.split(",").map((a) => a.trim()), r = e.rsquare.split(",").map((a) => a.trim()), i = n.indexOf(t);
9774
9774
  return i >= 0 && i < r.length ? r[i] : r[0] || e.rsquare;
9775
- }, $d = (e) => e.ldblocksnpid === "Lead" ? e.rsquare : e.rsquare.split(",").map((n) => n.trim())[0] || e.rsquare, wt = (e) => e.rsquare.includes("*") || e.ldblocksnpid.includes("Lead"), zd = (e, t) => wt(e) ? t : pt(t, 0.3);
9776
- function Fd({
9775
+ }, zd = (e) => e.ldblocksnpid === "Lead" ? e.rsquare : e.rsquare.split(",").map((n) => n.trim())[0] || e.rsquare, wt = (e) => e.rsquare.includes("*") || e.ldblocksnpid.includes("Lead"), Fd = (e, t) => wt(e) ? t : pt(t, 0.3);
9776
+ function Ud({
9777
9777
  id: e,
9778
9778
  data: t,
9779
9779
  height: n,
@@ -9800,7 +9800,7 @@ function Fd({
9800
9800
  onClick: s,
9801
9801
  onHover: c,
9802
9802
  onLeave: u,
9803
- tooltip: p || Ud
9803
+ tooltip: p || Hd
9804
9804
  }), [x, C] = be(null), [j, M] = be([]), [B, A] = be([]), q = ce(() => {
9805
9805
  const N = a || [], V = d.filter((ae) => N.includes(ae.snpid));
9806
9806
  return (x ? [...V, x] : V).filter((ae, ne, F) => ne === F.findIndex((I) => I.snpid === ae.snpid));
@@ -9874,7 +9874,7 @@ function Fd({
9874
9874
  width: N.pixelEnd - N.pixelStart + k,
9875
9875
  x: N.pixelStart - k / 2,
9876
9876
  y: wt(N) ? -y + L : 0,
9877
- fill: zd(N, r),
9877
+ fill: Fd(N, r),
9878
9878
  stroke: W ? v : "none",
9879
9879
  strokeWidth: W ? 1 : 0,
9880
9880
  onClick: () => {
@@ -9924,7 +9924,7 @@ function Fd({
9924
9924
  })
9925
9925
  ] });
9926
9926
  }
9927
- function Ud(e) {
9927
+ function Hd(e) {
9928
9928
  const t = ht((r) => r.text), n = ht((r) => r.background);
9929
9929
  return /* @__PURE__ */ f.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
9930
9930
  /* @__PURE__ */ f.jsx("rect", { width: 180, height: 50, y: 0, fill: n }),
@@ -9936,10 +9936,10 @@ function Ud(e) {
9936
9936
  "-",
9937
9937
  e.stop
9938
9938
  ] }),
9939
- /* @__PURE__ */ f.jsx("text", { fontSize: 14, x: 5, y: 48, children: wt(e) ? "Lead" : $d(e) })
9939
+ /* @__PURE__ */ f.jsx("text", { fontSize: 14, x: 5, y: 48, children: wt(e) ? "Lead" : zd(e) })
9940
9940
  ] });
9941
9941
  }
9942
- function Hd({
9942
+ function Wd({
9943
9943
  id: e,
9944
9944
  data: t,
9945
9945
  cutoffValue: n,
@@ -9957,7 +9957,7 @@ function Hd({
9957
9957
  onClick: c,
9958
9958
  onHover: u,
9959
9959
  onLeave: p,
9960
- tooltip: h || Wd
9960
+ tooltip: h || Yd
9961
9961
  }), d = ce(() => {
9962
9962
  const g = t.map((C) => C.value).reduce((C, j) => Math.min(C, j), 1 / 0), x = t.map((C) => C.value).reduce((C, j) => Math.max(C, j), -1 / 0);
9963
9963
  return {
@@ -10021,7 +10021,7 @@ function Hd({
10021
10021
  ] })
10022
10022
  ] });
10023
10023
  }
10024
- function Wd(e) {
10024
+ function Yd(e) {
10025
10025
  const t = ht((r) => r.text), n = ht((r) => r.background);
10026
10026
  return /* @__PURE__ */ f.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
10027
10027
  /* @__PURE__ */ f.jsx("rect", { width: 180, height: 50, y: 0, fill: n }),
@@ -10039,7 +10039,7 @@ function Wd(e) {
10039
10039
  ] })
10040
10040
  ] });
10041
10041
  }
10042
- function Yd({
10042
+ function Gd({
10043
10043
  id: e,
10044
10044
  data: t,
10045
10045
  lead: n,
@@ -10060,7 +10060,7 @@ function Yd({
10060
10060
  onClick: s,
10061
10061
  onHover: c,
10062
10062
  onLeave: u,
10063
- tooltip: p || Gd
10063
+ tooltip: p || Vd
10064
10064
  });
10065
10065
  return /* @__PURE__ */ f.jsxs("g", { transform: `translate(-${b}, 0)`, children: [
10066
10066
  /* @__PURE__ */ f.jsx("rect", { width: h, height: i, fill: "transparent" }),
@@ -10096,7 +10096,7 @@ function Yd({
10096
10096
  )) })
10097
10097
  ] });
10098
10098
  }
10099
- function Gd(e) {
10099
+ function Vd(e) {
10100
10100
  const t = ht((r) => r.text), n = ht((r) => r.background);
10101
10101
  return /* @__PURE__ */ f.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
10102
10102
  /* @__PURE__ */ f.jsx("rect", { width: 180, height: 50, y: 0, fill: n }),
@@ -10111,50 +10111,50 @@ function Gd(e) {
10111
10111
  /* @__PURE__ */ f.jsx("text", { fontSize: 14, x: 5, y: 48, children: Number(e.value).toFixed(3) })
10112
10112
  ] });
10113
10113
  }
10114
- function Vd({ id: e }) {
10114
+ function Zd({ id: e }) {
10115
10115
  const t = xe((h) => h.getTrack(e)), n = nt((h) => h.trackData.get(e)), i = fe((h) => h.getTrackDimensions)(), a = !n || n.data === null && n.error === null, o = (n == null ? void 0 : n.error) ?? void 0, s = (n == null ? void 0 : n.data) ?? void 0, c = ws(e), u = ce(() => `translate(0, ${c + De})`, [c]), p = ce(
10116
- () => t && s ? Zd(t, s, i) : /* @__PURE__ */ f.jsx(f.Fragment, {}),
10116
+ () => t && s ? Xd(t, s, i) : /* @__PURE__ */ f.jsx(f.Fragment, {}),
10117
10117
  [t, s, i]
10118
10118
  );
10119
10119
  return /* @__PURE__ */ f.jsx(Is, { id: e, transform: u, error: o, loading: a, children: p });
10120
10120
  }
10121
10121
  const _i = {
10122
10122
  [me.BigWig]: {
10123
- [Fe.Full]: Nd,
10123
+ [Fe.Full]: qd,
10124
10124
  [Fe.Dense]: ru
10125
10125
  },
10126
10126
  [me.BigBed]: {
10127
10127
  [Fe.Dense]: Ts,
10128
- [Fe.Squish]: Ru
10128
+ [Fe.Squish]: Du
10129
10129
  },
10130
10130
  [me.Transcript]: {
10131
- [Fe.Squish]: Au,
10132
- [Fe.Pack]: Nu
10131
+ [Fe.Squish]: Nu,
10132
+ [Fe.Pack]: qu
10133
10133
  },
10134
10134
  [me.Motif]: {
10135
- [Fe.Dense]: Dd,
10136
- [Fe.Squish]: jd
10135
+ [Fe.Dense]: jd,
10136
+ [Fe.Squish]: Md
10137
10137
  },
10138
10138
  [me.Importance]: {
10139
- [Fe.Full]: Rd
10139
+ [Fe.Full]: Dd
10140
10140
  },
10141
10141
  [me.LDTrack]: {
10142
- [Fe.LDBlock]: Fd,
10143
- [Fe.GenericLD]: Yd
10142
+ [Fe.LDBlock]: Ud,
10143
+ [Fe.GenericLD]: Gd
10144
10144
  },
10145
10145
  [me.BulkBed]: {
10146
- [Fe.Full]: Md
10146
+ [Fe.Full]: Bd
10147
10147
  },
10148
10148
  [me.MethylC]: {
10149
10149
  // [DisplayMode.Combined]: CombinedMethylC,
10150
- [Fe.Split]: Ad
10150
+ [Fe.Split]: Nd
10151
10151
  },
10152
10152
  [me.Manhattan]: {
10153
- [Fe.Scatter]: Hd
10153
+ [Fe.Scatter]: Wd
10154
10154
  },
10155
10155
  [me.Custom]: {}
10156
10156
  };
10157
- function Zd(e, t, n) {
10157
+ function Xd(e, t, n) {
10158
10158
  if (e.trackType === me.Custom) {
10159
10159
  const a = e.renderers[e.displayMode];
10160
10160
  return a ? /* @__PURE__ */ f.jsx(a, { ...e, data: t, dimensions: n }) : null;
@@ -10170,13 +10170,13 @@ function Zd(e, t, n) {
10170
10170
  }
10171
10171
  return /* @__PURE__ */ f.jsx(r, { ...e, data: t, dimensions: n });
10172
10172
  }
10173
- function Xd(e, t, n) {
10174
- const r = Kd(t, n), i = new Set(r), s = ["chrom chromStart chromEnd value", Array.from(i).map((u) => `${u.chrom} ${u.chromStart} ${u.chromEnd} ${u.value}`).join(`
10173
+ function Kd(e, t, n) {
10174
+ const r = Jd(t, n), i = new Set(r), s = ["chrom chromStart chromEnd value", Array.from(i).map((u) => `${u.chrom} ${u.chromStart} ${u.chromEnd} ${u.value}`).join(`
10175
10175
  `)].join(`
10176
10176
  `), c = document.createElement("a");
10177
10177
  c.href = "data:text/plain;charset=utf-8," + encodeURIComponent(s), c.download = `${e}.bedGraph`, c.click();
10178
10178
  }
10179
- function Kd(e, t) {
10179
+ function Jd(e, t) {
10180
10180
  const n = (t.end - t.start) / e.length;
10181
10181
  return e.map((r, i) => {
10182
10182
  const a = Math.floor(t.start + i * n), o = Math.floor(t.start + (i + 1) * n);
@@ -10188,8 +10188,8 @@ function Kd(e, t) {
10188
10188
  };
10189
10189
  }).filter((r) => r !== null);
10190
10190
  }
10191
- function Jd(e, t, n) {
10192
- const r = Qd(t, n);
10191
+ function Qd(e, t, n) {
10192
+ const r = e0(t, n);
10193
10193
  if (r.length === 0) return;
10194
10194
  const i = "chrom chromStart chromEnd name score strand itemRgb", a = r.map(
10195
10195
  (c) => `${c.chrom} ${c.chromStart} ${c.chromEnd} ${c.name} ${c.score} ${c.strand} ${c.itemRgb}`
@@ -10198,7 +10198,7 @@ function Jd(e, t, n) {
10198
10198
  `), s = document.createElement("a");
10199
10199
  s.href = "data:text/plain;charset=utf-8," + encodeURIComponent(o), s.download = `${e}.bed`, s.click();
10200
10200
  }
10201
- function Qd(e, t) {
10201
+ function e0(e, t) {
10202
10202
  return e.map((n) => {
10203
10203
  var o;
10204
10204
  const [r, i, a] = ((o = n.color) == null ? void 0 : o.match(/\d+/g)) || ["0", "0", "0"];
@@ -10213,12 +10213,12 @@ function Qd(e, t) {
10213
10213
  };
10214
10214
  });
10215
10215
  }
10216
- function e0(e) {
10216
+ function t0(e) {
10217
10217
  const t = document.getElementById("browserSVG");
10218
10218
  return t ? t.querySelector(`g#wrapper-${e}`) : null;
10219
10219
  }
10220
10220
  function Fs(e, t, n = !0) {
10221
- const r = e0(e);
10221
+ const r = t0(e);
10222
10222
  if (!r) return;
10223
10223
  const i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
10224
10224
  i.setAttribute("xmlns", "http://www.w3.org/2000/svg");
@@ -10237,7 +10237,7 @@ function Fs(e, t, n = !0) {
10237
10237
  const s = new XMLSerializer().serializeToString(i), c = document.createElement("a");
10238
10238
  c.href = "data:image/svg+xml;base64," + btoa(s), c.download = `${t}.svg`, c.click();
10239
10239
  }
10240
- function t0() {
10240
+ function r0() {
10241
10241
  const e = Ut((w) => w.open), t = Ut((w) => w.id), n = Ut((w) => w.x), r = Ut((w) => w.y), i = Ut((w) => w.setContextMenu), a = Ie(null), o = xe((w) => w.getTrack(t || "")), s = nt((w) => w.trackData.get(t || "")), c = xe((w) => w.editTrack), u = xe((w) => w.removeTrack), [p, h] = be(null);
10242
10242
  if (Ee(() => {
10243
10243
  const w = (E) => {
@@ -10396,19 +10396,19 @@ var cr = function(e, t, n) {
10396
10396
  return Te.createElement("div", { className: a, style: { top: 100 * i + "%", left: 100 * n + "%" } }, Te.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: t } }));
10397
10397
  }, Ae = function(e, t, n) {
10398
10398
  return t === void 0 && (t = 0), n === void 0 && (n = Math.pow(10, t)), Math.round(n * e) / n;
10399
- }, r0 = function(e) {
10400
- return s0(ri(e));
10399
+ }, n0 = function(e) {
10400
+ return c0(ri(e));
10401
10401
  }, ri = function(e) {
10402
10402
  return e[0] === "#" && (e = e.substring(1)), e.length < 6 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? Ae(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16), a: e.length === 8 ? Ae(parseInt(e.substring(6, 8), 16) / 255, 2) : 1 };
10403
- }, n0 = function(e) {
10404
- return o0(a0(e));
10405
10403
  }, i0 = function(e) {
10404
+ return s0(o0(e));
10405
+ }, a0 = function(e) {
10406
10406
  var t = e.s, n = e.v, r = e.a, i = (200 - t) * n / 100;
10407
10407
  return { h: Ae(e.h), s: Ae(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0), l: Ae(i / 2), a: Ae(r, 2) };
10408
10408
  }, ni = function(e) {
10409
- var t = i0(e);
10409
+ var t = a0(e);
10410
10410
  return "hsl(" + t.h + ", " + t.s + "%, " + t.l + "%)";
10411
- }, a0 = function(e) {
10411
+ }, o0 = function(e) {
10412
10412
  var t = e.h, n = e.s, r = e.v, i = e.a;
10413
10413
  t = t / 360 * 6, n /= 100, r /= 100;
10414
10414
  var a = Math.floor(t), o = r * (1 - n), s = r * (1 - (t - a) * n), c = r * (1 - (1 - t + a) * n), u = a % 6;
@@ -10416,20 +10416,20 @@ var cr = function(e, t, n) {
10416
10416
  }, _r = function(e) {
10417
10417
  var t = e.toString(16);
10418
10418
  return t.length < 2 ? "0" + t : t;
10419
- }, o0 = function(e) {
10419
+ }, s0 = function(e) {
10420
10420
  var t = e.r, n = e.g, r = e.b, i = e.a, a = i < 1 ? _r(Ae(255 * i)) : "";
10421
10421
  return "#" + _r(t) + _r(n) + _r(r) + a;
10422
- }, s0 = function(e) {
10422
+ }, c0 = function(e) {
10423
10423
  var t = e.r, n = e.g, r = e.b, i = e.a, a = Math.max(t, n, r), o = a - Math.min(t, n, r), s = o ? a === t ? (n - r) / o : a === n ? 2 + (r - t) / o : 4 + (t - n) / o : 0;
10424
10424
  return { h: Ae(60 * (s < 0 ? s + 6 : s)), s: Ae(a ? o / a * 100 : 0), v: Ae(a / 255 * 100), a: i };
10425
- }, c0 = Te.memo(function(e) {
10425
+ }, l0 = Te.memo(function(e) {
10426
10426
  var t = e.hue, n = e.onChange, r = bi(["react-colorful__hue", e.className]);
10427
10427
  return Te.createElement("div", { className: r }, Te.createElement(Hs, { onMove: function(i) {
10428
10428
  n({ h: 360 * i.left });
10429
10429
  }, onKey: function(i) {
10430
10430
  n({ h: cr(t + 360 * i.left, 0, 360) });
10431
10431
  }, "aria-label": "Hue", "aria-valuenow": Ae(t), "aria-valuemax": "360", "aria-valuemin": "0" }, Te.createElement(Ws, { className: "react-colorful__hue-pointer", left: t / 360, color: ni({ h: t, s: 100, v: 100, a: 1 }) })));
10432
- }), l0 = Te.memo(function(e) {
10432
+ }), u0 = Te.memo(function(e) {
10433
10433
  var t = e.hsva, n = e.onChange, r = { backgroundColor: ni({ h: t.h, s: 100, v: 100, a: 1 }) };
10434
10434
  return Te.createElement("div", { className: "react-colorful__saturation", style: r }, Te.createElement(Hs, { onMove: function(i) {
10435
10435
  n({ s: 100 * i.left, v: 100 - 100 * i.top });
@@ -10440,10 +10440,10 @@ var cr = function(e, t, n) {
10440
10440
  if (e === t) return !0;
10441
10441
  for (var n in e) if (e[n] !== t[n]) return !1;
10442
10442
  return !0;
10443
- }, u0 = function(e, t) {
10443
+ }, f0 = function(e, t) {
10444
10444
  return e.toLowerCase() === t.toLowerCase() || Ys(ri(e), ri(t));
10445
10445
  };
10446
- function f0(e, t, n) {
10446
+ function d0(e, t, n) {
10447
10447
  var r = ei(n), i = be(function() {
10448
10448
  return e.toHsva(t);
10449
10449
  }), a = i[0], o = i[1], s = Ie({ color: t, hsva: a });
@@ -10463,29 +10463,29 @@ function f0(e, t, n) {
10463
10463
  }, []);
10464
10464
  return [a, c];
10465
10465
  }
10466
- var d0 = typeof window < "u" ? Js : Ee, h0 = function() {
10466
+ var h0 = typeof window < "u" ? Js : Ee, p0 = function() {
10467
10467
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
10468
- }, Yo = /* @__PURE__ */ new Map(), p0 = function(e) {
10469
- d0(function() {
10468
+ }, Yo = /* @__PURE__ */ new Map(), g0 = function(e) {
10469
+ h0(function() {
10470
10470
  var t = e.current ? e.current.ownerDocument : document;
10471
10471
  if (t !== void 0 && !Yo.has(t)) {
10472
10472
  var n = t.createElement("style");
10473
10473
  n.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, Yo.set(t, n);
10474
- var r = h0();
10474
+ var r = p0();
10475
10475
  r && n.setAttribute("nonce", r), t.head.appendChild(n);
10476
10476
  }
10477
10477
  }, []);
10478
- }, g0 = function(e) {
10478
+ }, m0 = function(e) {
10479
10479
  var t = e.className, n = e.colorModel, r = e.color, i = r === void 0 ? n.defaultColor : r, a = e.onChange, o = Us(e, ["className", "colorModel", "color", "onChange"]), s = Ie(null);
10480
- p0(s);
10481
- var c = f0(n, i, a), u = c[0], p = c[1], h = bi(["react-colorful", t]);
10482
- return Te.createElement("div", Rr({}, o, { ref: s, className: h }), Te.createElement(l0, { hsva: u, onChange: p }), Te.createElement(c0, { hue: u.h, onChange: p, className: "react-colorful__last-control" }));
10483
- }, m0 = { defaultColor: "000", toHsva: r0, fromHsva: function(e) {
10484
- return n0({ h: e.h, s: e.s, v: e.v, a: 1 });
10485
- }, equal: u0 }, v0 = function(e) {
10486
- return Te.createElement(g0, Rr({}, e, { colorModel: m0 }));
10480
+ g0(s);
10481
+ var c = d0(n, i, a), u = c[0], p = c[1], h = bi(["react-colorful", t]);
10482
+ return Te.createElement("div", Rr({}, o, { ref: s, className: h }), Te.createElement(u0, { hsva: u, onChange: p }), Te.createElement(l0, { hue: u.h, onChange: p, className: "react-colorful__last-control" }));
10483
+ }, v0 = { defaultColor: "000", toHsva: n0, fromHsva: function(e) {
10484
+ return i0({ h: e.h, s: e.s, v: e.v, a: 1 });
10485
+ }, equal: f0 }, x0 = function(e) {
10486
+ return Te.createElement(m0, Rr({}, e, { colorModel: v0 }));
10487
10487
  };
10488
- function x0(e, t) {
10488
+ function y0(e, t) {
10489
10489
  const [n, r] = be(e);
10490
10490
  return Ee(() => {
10491
10491
  const i = setTimeout(() => {
@@ -10516,8 +10516,8 @@ function gt({ title: e, children: t }) {
10516
10516
  }
10517
10517
  );
10518
10518
  }
10519
- function y0({ track: e }) {
10520
- const [t, n] = be(e.title), r = xe((o) => o.editTrack), i = x0(t, 500);
10519
+ function _0({ track: e }) {
10520
+ const [t, n] = be(e.title), r = xe((o) => o.editTrack), i = y0(t, 500);
10521
10521
  Ee(() => {
10522
10522
  r(e.id, { title: i });
10523
10523
  }, [i, r, e.id]);
@@ -10526,12 +10526,12 @@ function y0({ track: e }) {
10526
10526
  };
10527
10527
  return /* @__PURE__ */ f.jsx(gt, { title: "", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "5px" }, children: [
10528
10528
  /* @__PURE__ */ f.jsx("div", { style: { fontWeight: "bold" }, children: "Color: " }),
10529
- /* @__PURE__ */ f.jsx(_0, { color: e.color || "", onChange: a }),
10529
+ /* @__PURE__ */ f.jsx(b0, { color: e.color || "", onChange: a }),
10530
10530
  /* @__PURE__ */ f.jsx("div", { style: { fontWeight: "bold" }, children: "Title: " }),
10531
10531
  /* @__PURE__ */ f.jsx("input", { id: "titleInput", type: "text", value: t, onChange: (o) => n(o.target.value) })
10532
10532
  ] }) });
10533
10533
  }
10534
- function _0({ color: e, onChange: t }) {
10534
+ function b0({ color: e, onChange: t }) {
10535
10535
  const [n, r] = be(!1), i = Ie(null);
10536
10536
  Ee(() => {
10537
10537
  const s = (c) => {
@@ -10557,7 +10557,7 @@ function _0({ color: e, onChange: t }) {
10557
10557
  };
10558
10558
  return /* @__PURE__ */ f.jsxs("div", { style: { position: "relative" }, children: [
10559
10559
  /* @__PURE__ */ f.jsx("div", { style: a, onClick: () => r(!n) }),
10560
- n && /* @__PURE__ */ f.jsx("div", { ref: i, style: o, children: /* @__PURE__ */ f.jsx(v0, { color: e, onChange: t }) })
10560
+ n && /* @__PURE__ */ f.jsx("div", { ref: i, style: o, children: /* @__PURE__ */ f.jsx(x0, { color: e, onChange: t }) })
10561
10561
  ] });
10562
10562
  }
10563
10563
  function wr(e) {
@@ -10571,7 +10571,7 @@ function ar(e, t) {
10571
10571
  const a = n.toString(16).length == 1 ? "0" + n.toString(16) : n.toString(16), o = r.toString(16).length == 1 ? "0" + r.toString(16) : r.toString(16), s = i.toString(16).length == 1 ? "0" + i.toString(16) : i.toString(16);
10572
10572
  return "#" + a + o + s;
10573
10573
  }
10574
- const b0 = (e) => {
10574
+ const w0 = (e) => {
10575
10575
  const t = e.slice(1), n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
10576
10576
  return (0.299 * n + 0.587 * r + 0.114 * i) / 255 < 0.5;
10577
10577
  };
@@ -10583,7 +10583,7 @@ function wi(e, t) {
10583
10583
  color: wr(s)
10584
10584
  };
10585
10585
  }
10586
- function w0({ id: e, trackType: t }) {
10586
+ function S0({ id: e, trackType: t }) {
10587
10587
  const n = xe((p) => p.getTrack(e)), r = t === me.Custom && n ? n.renderers : _i[t], i = Object.keys(r), a = n == null ? void 0 : n.displayMode, o = n == null ? void 0 : n.color, s = xe((p) => p.editTrack), c = (p) => ({
10588
10588
  ...wi(o || "#000000", p),
10589
10589
  marginRight: "5px",
@@ -10596,7 +10596,7 @@ function w0({ id: e, trackType: t }) {
10596
10596
  };
10597
10597
  return n ? /* @__PURE__ */ f.jsx(gt, { title: "Display Mode", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: i.map((p) => /* @__PURE__ */ f.jsx("button", { onClick: () => u(p), style: c(p === a), children: p }, p)) }) }) : null;
10598
10598
  }
10599
- function S0({ id: e, defaultHeight: t }) {
10599
+ function k0({ id: e, defaultHeight: t }) {
10600
10600
  const n = Ie(null), r = xe((y) => y.editTrack), i = xe((y) => y.editAllTracksByType), a = xe((y) => y.getTrack), o = xe((y) => y.tracks), s = 20, c = 300, u = a(e), p = u == null ? void 0 : u.trackType, h = u == null ? void 0 : u.color, b = (y) => {
10601
10601
  const d = Number(y) < s ? s : Number(y) > c ? c : Number(y);
10602
10602
  r(e, { height: d });
@@ -10640,7 +10640,7 @@ function S0({ id: e, defaultHeight: t }) {
10640
10640
  whiteSpace: "nowrap"
10641
10641
  });
10642
10642
  return /* @__PURE__ */ f.jsx(gt, { title: "Height", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px", alignItems: "flex-start" }, children: [
10643
- /* @__PURE__ */ f.jsx(k0, { inputRef: n, defaultValue: t, validate: v, callback: b }),
10643
+ /* @__PURE__ */ f.jsx(E0, { inputRef: n, defaultValue: t, validate: v, callback: b }),
10644
10644
  w && p && /* @__PURE__ */ f.jsxs(
10645
10645
  "button",
10646
10646
  {
@@ -10656,7 +10656,7 @@ function S0({ id: e, defaultHeight: t }) {
10656
10656
  )
10657
10657
  ] }) });
10658
10658
  }
10659
- function k0({
10659
+ function E0({
10660
10660
  inputRef: e,
10661
10661
  defaultValue: t,
10662
10662
  validate: n,
@@ -10678,17 +10678,17 @@ function k0({
10678
10678
  ref: e,
10679
10679
  type: "number",
10680
10680
  step: "any",
10681
- placeholder: E0(Number(t)),
10681
+ placeholder: L0(Number(t)),
10682
10682
  onChange: o,
10683
10683
  style: { appearance: "textfield" }
10684
10684
  }
10685
10685
  );
10686
10686
  }
10687
- function E0(e) {
10687
+ function L0(e) {
10688
10688
  return Number.isNaN(e) ? "" : Number.isInteger(e) ? e.toString() : Number(e.toFixed(2)).toString();
10689
10689
  }
10690
10690
  var ii = /* @__PURE__ */ ((e) => (e[e.V29 = 29] = "V29", e[e.V40 = 40] = "V40", e[e.V47 = 47] = "V47", e))(ii || {}), Gs = /* @__PURE__ */ ((e) => (e[e.V21 = 21] = "V21", e[e.V25 = 25] = "V25", e))(Gs || {});
10691
- function L0({ track: e }) {
10691
+ function T0({ track: e }) {
10692
10692
  const t = xe((u) => u.editTrack), [n, r] = be(e.version), a = fe((u) => u.getExpandedDomain)(), o = (u) => {
10693
10693
  r(u);
10694
10694
  const p = Object.values(ii).includes(u);
@@ -10722,7 +10722,7 @@ function L0({ track: e }) {
10722
10722
  p
10723
10723
  )) }) });
10724
10724
  }
10725
- function T0(e) {
10725
+ function C0(e) {
10726
10726
  return /* @__PURE__ */ f.jsx("svg", { width: e.width, height: e.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f.jsx(
10727
10727
  "path",
10728
10728
  {
@@ -10755,16 +10755,16 @@ function ai({
10755
10755
  ref: r,
10756
10756
  type: "number",
10757
10757
  step: "any",
10758
- placeholder: C0(Number(e)),
10758
+ placeholder: R0(Number(e)),
10759
10759
  onChange: o,
10760
10760
  style: { appearance: "textfield" }
10761
10761
  }
10762
10762
  );
10763
10763
  }
10764
- function C0(e) {
10764
+ function R0(e) {
10765
10765
  return Number.isNaN(e) ? "" : Number.isInteger(e) ? e.toString() : Number(e.toFixed(2)).toString();
10766
10766
  }
10767
- function R0({
10767
+ function D0({
10768
10768
  id: e,
10769
10769
  defaultRange: t,
10770
10770
  customRange: n
@@ -10813,10 +10813,10 @@ function R0({
10813
10813
  callback: s
10814
10814
  }
10815
10815
  ),
10816
- /* @__PURE__ */ f.jsx("button", { title: "auto scale range", onClick: () => r(e, { customRange: void 0 }), children: /* @__PURE__ */ f.jsx(T0, { fill: "#000000", width: 15, height: 15, style: { cursor: "pointer" } }) })
10816
+ /* @__PURE__ */ f.jsx("button", { title: "auto scale range", onClick: () => r(e, { customRange: void 0 }), children: /* @__PURE__ */ f.jsx(C0, { fill: "#000000", width: 15, height: 15, style: { cursor: "pointer" } }) })
10817
10817
  ] }) });
10818
10818
  }
10819
- function D0({ id: e, name: t }) {
10819
+ function j0({ id: e, name: t }) {
10820
10820
  const n = xe((i) => i.editTrack), r = (i) => {
10821
10821
  n(e, { geneName: i.target.value });
10822
10822
  };
@@ -10833,9 +10833,9 @@ const Xn = {
10833
10833
  textAlign: "center",
10834
10834
  padding: "6px 12px"
10835
10835
  };
10836
- function j0({ track: e }) {
10837
- const t = fe((k) => k.getExpandedDomain), n = nt((k) => k.trackData.get(e.id || "")), r = t(), i = e.color || "#ffffff", a = b0(i), o = ar(i, a ? 30 : -30), s = wr(i), c = (n == null ? void 0 : n.data) ?? void 0, u = () => {
10838
- e.trackType === me.BigWig ? Xd(e.id, c, r) : e.trackType === me.BigBed && Jd(e.id, c, r);
10836
+ function M0({ track: e }) {
10837
+ const t = fe((k) => k.getExpandedDomain), n = nt((k) => k.trackData.get(e.id || "")), r = t(), i = e.color || "#ffffff", a = w0(i), o = ar(i, a ? 30 : -30), s = wr(i), c = (n == null ? void 0 : n.data) ?? void 0, u = () => {
10838
+ e.trackType === me.BigWig ? Kd(e.id, c, r) : e.trackType === me.BigBed && Qd(e.id, c, r);
10839
10839
  }, p = () => {
10840
10840
  Fs(e.id, e.title, !0);
10841
10841
  }, h = () => {
@@ -10898,7 +10898,7 @@ function j0({ track: e }) {
10898
10898
  ) : null
10899
10899
  ] }) }) });
10900
10900
  }
10901
- function M0({ id: e, defaultGap: t }) {
10901
+ function B0({ id: e, defaultGap: t }) {
10902
10902
  const n = xe((s) => s.editTrack), r = 0, i = 20, a = (s) => {
10903
10903
  const c = Number(s) < r ? r : Number(s) > i ? i : Number(s);
10904
10904
  n(e, { gap: c });
@@ -10911,10 +10911,10 @@ function M0({ id: e, defaultGap: t }) {
10911
10911
  };
10912
10912
  return /* @__PURE__ */ f.jsx(gt, { title: "Gap", children: /* @__PURE__ */ f.jsx(ai, { defaultValue: t, validate: o, callback: a }) });
10913
10913
  }
10914
- function B0({ datasets: e }) {
10914
+ function I0({ datasets: e }) {
10915
10915
  return /* @__PURE__ */ f.jsx(gt, { title: "Datasets", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: e.map((t, n) => /* @__PURE__ */ f.jsx("div", { style: { fontSize: "12px", color: "#666" }, children: t.name }, n)) }) });
10916
10916
  }
10917
- function I0() {
10917
+ function O0() {
10918
10918
  const e = ir((b) => b.id), t = ir((b) => b.open), n = ir((b) => b.closeModal), r = ir((b) => b.position), i = 40, [a, o] = be(r), [s, c] = be(!1), u = (b, v) => {
10919
10919
  b.preventDefault(), o({ x: v.x, y: v.y }), c(!0);
10920
10920
  };
@@ -10967,7 +10967,7 @@ function I0() {
10967
10967
  alignItems: "center"
10968
10968
  },
10969
10969
  children: [
10970
- /* @__PURE__ */ f.jsx(P0, { handleClose: n, color: wr(p.color || "transparent") }),
10970
+ /* @__PURE__ */ f.jsx(A0, { handleClose: n, color: wr(p.color || "transparent") }),
10971
10971
  /* @__PURE__ */ f.jsx("div", { style: { margin: "10px" }, children: /* @__PURE__ */ f.jsxs("div", { style: { paddingBottom: "0px", fontSize: "1.2em", fontWeight: "bold" }, children: [
10972
10972
  "Configure",
10973
10973
  " ",
@@ -10976,26 +10976,26 @@ function I0() {
10976
10976
  ]
10977
10977
  }
10978
10978
  ),
10979
- /* @__PURE__ */ f.jsx(O0, { id: e })
10979
+ /* @__PURE__ */ f.jsx(P0, { id: e })
10980
10980
  ]
10981
10981
  }
10982
10982
  )
10983
10983
  }
10984
10984
  );
10985
10985
  }
10986
- function O0({ id: e }) {
10986
+ function P0({ id: e }) {
10987
10987
  const t = xe((r) => r.getTrack(e));
10988
10988
  if (!t) return "no configuration available";
10989
10989
  const n = (() => {
10990
10990
  switch (t.trackType) {
10991
10991
  case me.BigWig:
10992
- return /* @__PURE__ */ f.jsx(R0, { id: e, defaultRange: t.range, customRange: t.customRange });
10992
+ return /* @__PURE__ */ f.jsx(D0, { id: e, defaultRange: t.range, customRange: t.customRange });
10993
10993
  case me.BigBed:
10994
10994
  return /* @__PURE__ */ f.jsx(f.Fragment, {});
10995
10995
  case me.Transcript:
10996
10996
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
10997
- /* @__PURE__ */ f.jsx(L0, { track: t }),
10998
- /* @__PURE__ */ f.jsx(D0, { id: e, name: t.geneName || "" })
10997
+ /* @__PURE__ */ f.jsx(T0, { track: t }),
10998
+ /* @__PURE__ */ f.jsx(j0, { id: e, name: t.geneName || "" })
10999
10999
  ] });
11000
11000
  case me.Motif:
11001
11001
  return /* @__PURE__ */ f.jsx(f.Fragment, {});
@@ -11005,8 +11005,8 @@ function O0({ id: e }) {
11005
11005
  return /* @__PURE__ */ f.jsx(f.Fragment, {});
11006
11006
  case me.BulkBed:
11007
11007
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
11008
- /* @__PURE__ */ f.jsx(M0, { id: e, defaultGap: t.gap || 0 }),
11009
- /* @__PURE__ */ f.jsx(B0, { datasets: t.datasets || [] })
11008
+ /* @__PURE__ */ f.jsx(B0, { id: e, defaultGap: t.gap || 0 }),
11009
+ /* @__PURE__ */ f.jsx(I0, { datasets: t.datasets || [] })
11010
11010
  ] });
11011
11011
  case me.Custom: {
11012
11012
  const r = t.settingsPanel;
@@ -11017,16 +11017,16 @@ function O0({ id: e }) {
11017
11017
  }
11018
11018
  })();
11019
11019
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
11020
- /* @__PURE__ */ f.jsx(y0, { track: t }),
11020
+ /* @__PURE__ */ f.jsx(_0, { track: t }),
11021
11021
  /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: [
11022
- /* @__PURE__ */ f.jsx(S0, { id: e, defaultHeight: t.height }),
11023
- /* @__PURE__ */ f.jsx(w0, { id: t.id, trackType: t.trackType })
11022
+ /* @__PURE__ */ f.jsx(k0, { id: e, defaultHeight: t.height }),
11023
+ /* @__PURE__ */ f.jsx(S0, { id: t.id, trackType: t.trackType })
11024
11024
  ] }),
11025
11025
  n,
11026
- /* @__PURE__ */ f.jsx(j0, { track: t })
11026
+ /* @__PURE__ */ f.jsx(M0, { track: t })
11027
11027
  ] });
11028
11028
  }
11029
- function P0({ handleClose: e, color: t }) {
11029
+ function A0({ handleClose: e, color: t }) {
11030
11030
  const n = "25px";
11031
11031
  return /* @__PURE__ */ f.jsx(
11032
11032
  "svg",
@@ -11050,7 +11050,7 @@ function P0({ handleClose: e, color: t }) {
11050
11050
  }
11051
11051
  );
11052
11052
  }
11053
- function A0() {
11053
+ function N0() {
11054
11054
  const e = Ht((E) => E.content), t = Ht((E) => E.x), n = Ht((E) => E.y), r = Ht((E) => E.show), [i, a] = be(0), [o, s] = be(0), [c, u] = be({ width: 0, height: 0 }), p = Ie(null), h = fe((E) => E.delta), b = fe((E) => E.browserWidth), k = kr() + De, D = 5, w = at(() => {
11055
11055
  if (!p.current) return;
11056
11056
  const E = t, L = n, y = p.current.getBBox(), d = y.width, m = y.height;
@@ -11072,7 +11072,7 @@ function A0() {
11072
11072
  }), () => E.disconnect();
11073
11073
  }, [r, e, t, n, b, k]), !r || h ? null : /* @__PURE__ */ f.jsx("g", { ref: p, id: "tooltip", transform: `translate(${i}, ${o})`, style: { pointerEvents: "none" }, children: e });
11074
11074
  }
11075
- function N0({ children: e }) {
11075
+ function q0({ children: e }) {
11076
11076
  const t = fe((o) => o.setSvgRef), n = Ie(null), r = kr(), i = fe((o) => o.browserWidth), a = nt((o) => o.isFetching);
11077
11077
  return Ee(() => {
11078
11078
  t(n);
@@ -11103,7 +11103,7 @@ function N0({ children: e }) {
11103
11103
  }
11104
11104
  );
11105
11105
  }
11106
- function q0() {
11106
+ function $0() {
11107
11107
  const e = fe((k) => k.browserWidth), t = fe((k) => k.marginWidth), n = De, r = kr() + De, [i, a] = be([0, 0]), [o, s] = be(!1), c = fe((k) => k.svgRef), u = fe((k) => k.domain), p = fe((k) => k.setDomain), h = (k) => {
11108
11108
  if (!c || !c.current) return null;
11109
11109
  const D = Go(k, c.current);
@@ -11164,7 +11164,7 @@ function Go(e, t) {
11164
11164
  const r = t.getScreenCTM();
11165
11165
  return r ? n.matrixTransform(r.inverse()) : null;
11166
11166
  }
11167
- function $0() {
11167
+ function z0() {
11168
11168
  const e = nt((v) => v.isFetching), t = fe((v) => v.domain), n = fe((v) => v.getExpandedDomain), [r, i] = be(n()), a = fe((v) => v.delta);
11169
11169
  Ee(() => {
11170
11170
  e || a !== 0 || i(n());
@@ -11175,7 +11175,7 @@ function $0() {
11175
11175
  /* @__PURE__ */ f.jsx("g", { id: "highlights-clipped", clipPath: "url(#highlight-clip)", children: /* @__PURE__ */ f.jsx(Bs, { id: "highlights", children: o.map((v) => {
11176
11176
  let k = v.domain.chromosome;
11177
11177
  return k || (k = r.chromosome), k !== r.chromosome ? null : /* @__PURE__ */ f.jsx(
11178
- z0,
11178
+ F0,
11179
11179
  {
11180
11180
  highlight: v,
11181
11181
  totalWidth: p,
@@ -11188,14 +11188,14 @@ function $0() {
11188
11188
  }) }) })
11189
11189
  ] });
11190
11190
  }
11191
- function z0({
11191
+ function F0({
11192
11192
  highlight: e,
11193
11193
  browserDomain: t,
11194
11194
  totalHeight: n,
11195
11195
  totalWidth: r,
11196
11196
  marginWidth: i
11197
11197
  }) {
11198
- const a = e.domain, o = F0(a, t, r);
11198
+ const a = e.domain, o = U0(a, t, r);
11199
11199
  return /* @__PURE__ */ f.jsx(
11200
11200
  "rect",
11201
11201
  {
@@ -11209,25 +11209,25 @@ function z0({
11209
11209
  }
11210
11210
  );
11211
11211
  }
11212
- function F0(e, t, n) {
11212
+ function U0(e, t, n) {
11213
11213
  const r = t.end - t.start, i = (e.start - t.start) / r, a = (e.end - t.start) / r;
11214
11214
  return { start: i * n, end: a * n };
11215
11215
  }
11216
- function U0() {
11216
+ function H0() {
11217
11217
  const e = xe((t) => t.ids);
11218
11218
  return Fl(), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
11219
- /* @__PURE__ */ f.jsxs(N0, { children: [
11220
- /* @__PURE__ */ f.jsx(q0, {}),
11221
- /* @__PURE__ */ f.jsx(Is, { id: "ruler", transform: "translate(0, 0)", loading: !1, error: void 0, children: /* @__PURE__ */ f.jsx(yu, {}) }),
11219
+ /* @__PURE__ */ f.jsxs(q0, { children: [
11222
11220
  /* @__PURE__ */ f.jsx($0, {}),
11223
- e.map((t) => /* @__PURE__ */ f.jsx(Vd, { id: t }, t)),
11224
- /* @__PURE__ */ f.jsx(A0, {})
11221
+ /* @__PURE__ */ f.jsx(Is, { id: "ruler", transform: "translate(0, 0)", loading: !1, error: void 0, children: /* @__PURE__ */ f.jsx(_u, {}) }),
11222
+ /* @__PURE__ */ f.jsx(z0, {}),
11223
+ e.map((t) => /* @__PURE__ */ f.jsx(Zd, { id: t }, t)),
11224
+ /* @__PURE__ */ f.jsx(N0, {})
11225
11225
  ] }),
11226
- /* @__PURE__ */ f.jsx(t0, {}),
11227
- /* @__PURE__ */ f.jsx(I0, {})
11226
+ /* @__PURE__ */ f.jsx(r0, {}),
11227
+ /* @__PURE__ */ f.jsx(O0, {})
11228
11228
  ] });
11229
11229
  }
11230
- function yh({ browserStore: e, trackStore: t, externalDataStore: n }) {
11230
+ function _h({ browserStore: e, trackStore: t, externalDataStore: n }) {
11231
11231
  const r = n ?? dc([]), i = ce(() => Jo(), []), a = ce(() => Qo(), []), o = ce(() => es(), []), s = ce(() => ts(), []), c = ce(
11232
11232
  () => ({
11233
11233
  browserStore: e,
@@ -11240,10 +11240,10 @@ function yh({ browserStore: e, trackStore: t, externalDataStore: n }) {
11240
11240
  }),
11241
11241
  [e, t, r, i, a, o, s]
11242
11242
  );
11243
- return /* @__PURE__ */ f.jsx(pc, { value: c, children: /* @__PURE__ */ f.jsx(U0, {}) });
11243
+ return /* @__PURE__ */ f.jsx(pc, { value: c, children: /* @__PURE__ */ f.jsx(H0, {}) });
11244
11244
  }
11245
- const _h = Vs;
11246
- function bh(e, t) {
11245
+ const bh = Vs;
11246
+ function wh(e, t) {
11247
11247
  return ce(() => Vs(e), t ?? []);
11248
11248
  }
11249
11249
  function Vs(e) {
@@ -11325,8 +11325,8 @@ function Vs(e) {
11325
11325
  setTitleSize: (r) => t({ titleSize: r })
11326
11326
  }));
11327
11327
  }
11328
- const wh = Zs;
11329
- function Sh(e, t) {
11328
+ const Sh = Zs;
11329
+ function kh(e, t) {
11330
11330
  return ce(() => Zs(e), t ?? []);
11331
11331
  }
11332
11332
  function Zs(e = []) {
@@ -11437,31 +11437,31 @@ function Zs(e = []) {
11437
11437
  }
11438
11438
  }));
11439
11439
  }
11440
- const H0 = "https://screen.api.wenglab.org/graphql", W0 = new rc({
11441
- link: new ic({ uri: H0 }),
11440
+ const W0 = "https://screen.api.wenglab.org/graphql", Y0 = new rc({
11441
+ link: new ic({ uri: W0 }),
11442
11442
  cache: new nc(),
11443
11443
  devtools: {
11444
11444
  enabled: !0,
11445
11445
  name: "Genome Browser"
11446
11446
  }
11447
11447
  });
11448
- function kh({ children: e }) {
11449
- return /* @__PURE__ */ f.jsx(ec, { client: W0, children: e });
11448
+ function Eh({ children: e }) {
11449
+ return /* @__PURE__ */ f.jsx(ec, { client: Y0, children: e });
11450
11450
  }
11451
- function Y0(e, t, n, r) {
11451
+ function G0(e, t, n, r) {
11452
11452
  return r ? `M ${e} ${n * 0.1} L ${e + t} ${n / 2} L ${e} ${n * 0.9}` : `M ${e + t} ${n * 0.1} L ${e} ${n / 2} L ${e + t} ${n * 0.9}`;
11453
11453
  }
11454
- function G0(e) {
11455
- return /* @__PURE__ */ f.jsx("path", { d: Y0(e.x, e.width, e.height, e.opening), fill: e.color });
11454
+ function V0(e) {
11455
+ return /* @__PURE__ */ f.jsx("path", { d: G0(e.x, e.width, e.height, e.opening), fill: e.color });
11456
11456
  }
11457
- const V0 = /* @__PURE__ */ new Map([
11457
+ const Z0 = /* @__PURE__ */ new Map([
11458
11458
  ["stalk", (e) => e.stalk],
11459
11459
  ["gvar", (e) => e.default],
11460
11460
  ["gneg", (e) => pt(e.default, 0.9)]
11461
11461
  ]);
11462
- function Z0(e) {
11462
+ function X0(e) {
11463
11463
  var n;
11464
- const t = e.type.slice(0, 4) === "gpos" ? pt(e.colors.default, 1 - +e.type.replace(/gpos/g, "") / 100) : (n = V0.get(e.type)) == null ? void 0 : n.call(null, e.colors);
11464
+ const t = e.type.slice(0, 4) === "gpos" ? pt(e.colors.default, 1 - +e.type.replace(/gpos/g, "") / 100) : (n = Z0.get(e.type)) == null ? void 0 : n.call(null, e.colors);
11465
11465
  return t === void 0 ? null : /* @__PURE__ */ f.jsx(
11466
11466
  "rect",
11467
11467
  {
@@ -11474,8 +11474,8 @@ function Z0(e) {
11474
11474
  }
11475
11475
  );
11476
11476
  }
11477
- function X0(e) {
11478
- return e.x(e.highlight.end) - e.x(e.highlight.start) < 10 ? /* @__PURE__ */ f.jsx(K0, { highlight: e.highlight, x: e.x, height: e.height }) : /* @__PURE__ */ f.jsx(
11477
+ function K0(e) {
11478
+ return e.x(e.highlight.end) - e.x(e.highlight.start) < 10 ? /* @__PURE__ */ f.jsx(J0, { highlight: e.highlight, x: e.x, height: e.height }) : /* @__PURE__ */ f.jsx(
11479
11479
  "rect",
11480
11480
  {
11481
11481
  x: e.x(e.highlight.start),
@@ -11489,14 +11489,14 @@ function X0(e) {
11489
11489
  }
11490
11490
  );
11491
11491
  }
11492
- function K0(e) {
11492
+ function J0(e) {
11493
11493
  const { highlight: t, height: n, x: r } = e, i = `M ${r(t.start) - 5} 0 L ${r(t.start)} ${n * 0.2} L ${r(t.start) + 5} 0`, a = `M ${r(t.start) - 5} ${n} L ${r(t.start)} ${n * 0.8} L ${r(t.start) + 5} ${n}`;
11494
11494
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
11495
11495
  /* @__PURE__ */ f.jsx("path", { d: i, stroke: t.color || "#ff0000", strokeWidth: 3, fill: "none" }),
11496
11496
  /* @__PURE__ */ f.jsx("path", { d: a, stroke: t.color || "#ff0000", strokeWidth: 3, fill: "none" })
11497
11497
  ] });
11498
11498
  }
11499
- const J0 = lr`
11499
+ const Q0 = lr`
11500
11500
  query cytobands($assembly: String!, $chromosome: String) {
11501
11501
  cytoband(assembly: $assembly, chromosome: $chromosome) {
11502
11502
  stain
@@ -11507,21 +11507,21 @@ const J0 = lr`
11507
11507
  }
11508
11508
  }
11509
11509
  }
11510
- `, Q0 = {
11510
+ `, eh = {
11511
11511
  default: "#000000",
11512
11512
  centromere: "#880000",
11513
11513
  stalk: "#ff0000"
11514
11514
  };
11515
- function Eh({
11515
+ function Lh({
11516
11516
  assembly: e,
11517
11517
  currentDomain: t
11518
11518
  }) {
11519
- const i = { ...t, color: "rgba(50,50,255,0.75)" }, a = "translate(0,0)", { data: o, loading: s, error: c } = tc(J0, {
11519
+ const i = { ...t, color: "rgba(50,50,255,0.75)" }, a = "translate(0,0)", { data: o, loading: s, error: c } = tc(Q0, {
11520
11520
  variables: {
11521
11521
  assembly: e,
11522
11522
  chromosome: t.chromosome || ""
11523
11523
  }
11524
- }), u = Q0;
11524
+ }), u = eh;
11525
11525
  if (s)
11526
11526
  return /* @__PURE__ */ f.jsx("g", { width: 700, height: 20, children: /* @__PURE__ */ f.jsx("text", { x: "350", y: "15", textAnchor: "middle", style: { fontSize: "14px", fontFamily: "sans-serif" }, children: "Loading..." }) });
11527
11527
  if (c)
@@ -11529,7 +11529,7 @@ function Eh({
11529
11529
  "Error: ",
11530
11530
  c.message
11531
11531
  ] }) });
11532
- const p = o, h = { start: 0, end: Math.max(...p.cytoband.map((k) => k.coordinates.end)) }, b = eh(
11532
+ const p = o, h = { start: 0, end: Math.max(...p.cytoband.map((k) => k.coordinates.end)) }, b = th(
11533
11533
  {
11534
11534
  start: h.start,
11535
11535
  end: h.end,
@@ -11542,7 +11542,7 @@ function Eh({
11542
11542
  p.cytoband.map((k, D) => {
11543
11543
  const w = b(k.coordinates.start), E = b(k.coordinates.end) - w;
11544
11544
  return k.stain === "acen" ? /* @__PURE__ */ f.jsx(
11545
- G0,
11545
+ V0,
11546
11546
  {
11547
11547
  width: E,
11548
11548
  x: w,
@@ -11551,10 +11551,10 @@ function Eh({
11551
11551
  opening: v++ === 0
11552
11552
  },
11553
11553
  D
11554
- ) : /* @__PURE__ */ f.jsx(Z0, { type: k.stain, width: E, x: w, height: 20, colors: u, opacity: 1 }, D);
11554
+ ) : /* @__PURE__ */ f.jsx(X0, { type: k.stain, width: E, x: w, height: 20, colors: u, opacity: 1 }, D);
11555
11555
  }),
11556
11556
  i ? /* @__PURE__ */ f.jsx(
11557
- X0,
11557
+ K0,
11558
11558
  {
11559
11559
  onMouseOut: () => {
11560
11560
  },
@@ -11566,37 +11566,37 @@ function Eh({
11566
11566
  ) : null
11567
11567
  ] });
11568
11568
  }
11569
- function eh(e, t) {
11569
+ function th(e, t) {
11570
11570
  return (n) => (n - e.start) * t / (e.end - e.start);
11571
11571
  }
11572
- function Lh(e, t, n) {
11572
+ function Th(e, t, n) {
11573
11573
  const r = n((a) => a.setTrackData), i = n((a) => a.isFetching);
11574
11574
  Ee(() => {
11575
11575
  i || (t.loading ? r(e, { data: null, error: null }) : t.error ? r(e, { data: null, error: t.error.message }) : t.data && r(e, { data: t.data, error: null }));
11576
11576
  }, [t.data, t.loading, t.error, i, e, r]);
11577
11577
  }
11578
11578
  export {
11579
- yh as Browser,
11579
+ _h as Browser,
11580
11580
  Ot as ClipPath,
11581
- Eh as Cytobands,
11581
+ Lh as Cytobands,
11582
11582
  Fe as DisplayMode,
11583
- kh as GQLWrapper,
11584
- mh as Pastels,
11583
+ Eh as GQLWrapper,
11584
+ vh as Pastels,
11585
11585
  me as TrackType,
11586
- vh as Vibrant,
11587
- _h as createBrowserStore,
11588
- bh as createBrowserStoreMemo,
11589
- sh as createDataStore,
11586
+ xh as Vibrant,
11587
+ bh as createBrowserStore,
11588
+ wh as createBrowserStoreMemo,
11589
+ ch as createDataStore,
11590
11590
  dc as createDataStoreMemo,
11591
- wh as createTrackStore,
11592
- Sh as createTrackStoreMemo,
11593
- ch as defineBigBedSchema,
11594
- gh as fetchBigBedUrl,
11591
+ Sh as createTrackStore,
11592
+ kh as createTrackStoreMemo,
11593
+ lh as defineBigBedSchema,
11594
+ mh as fetchBigBedUrl,
11595
11595
  Kl as renderDenseBigBedData,
11596
11596
  Jl as renderSquishBigBedData,
11597
- gi as useBrowserScale,
11597
+ hi as useBrowserScale,
11598
11598
  fe as useBrowserStore,
11599
- Lh as useCustomData,
11599
+ Th as useCustomData,
11600
11600
  et as useInteraction,
11601
11601
  di as useMouseToIndex,
11602
11602
  Cr as useRowHeight,