@weng-lab/genomebrowser 1.7.1-beta.1 → 1.7.2-beta.0

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.
@@ -338,7 +338,7 @@ function Wd(e, t = Vd) {
338
338
  const ks = (e) => {
339
339
  const t = $d(e), r = (n) => Wd(t, n);
340
340
  return Object.assign(r, t), r;
341
- }, Er = ((e) => e ? ks(e) : ks), cx = _l;
341
+ }, Er = ((e) => e ? ks(e) : ks), sx = _l;
342
342
  function Hd(e) {
343
343
  return ve(() => _l(), e ?? []);
344
344
  }
@@ -4011,7 +4011,7 @@ Array[zi] || (function(e) {
4011
4011
  } finally {
4012
4012
  return e;
4013
4013
  }
4014
- })(D0()), { bind: lx, noContext: fx } = sn, Ci = new sn(), { hasOwnProperty: C0 } = Object.prototype, $o = Array.from || function(e) {
4014
+ })(D0()), { bind: ux, noContext: lx } = sn, Ci = new sn(), { hasOwnProperty: C0 } = Object.prototype, $o = Array.from || function(e) {
4015
4015
  const t = [];
4016
4016
  return e.forEach((r) => t.push(r)), t;
4017
4017
  };
@@ -13865,10 +13865,7 @@ var ld = /* @__PURE__ */ ((e) => (e.ValuedPoint = "valuedPoint", e.BigZoomData =
13865
13865
  function Zm(e) {
13866
13866
  return e[0].x !== void 0 ? "valuedPoint" : e[0].minVal !== void 0 ? "bigZoomData" : "bigWigData";
13867
13867
  }
13868
- const Km = (e, t) => ({
13869
- min: Math.min(...e.map(t)),
13870
- max: Math.max(...e.map(t))
13871
- }), fd = (e) => {
13868
+ const fd = (e) => {
13872
13869
  if (!e.length) return { min: 0, max: 0 };
13873
13870
  switch (Zm(e)) {
13874
13871
  // case DataType.BigWigData:
@@ -13876,7 +13873,11 @@ const Km = (e, t) => ({
13876
13873
  // case DataType.BigZoomData:
13877
13874
  // return calculateRange(data as BigZoomData[], (d) => d.maxVal);
13878
13875
  case ld.ValuedPoint:
13879
- return Km(e, (t) => t.max);
13876
+ const t = e;
13877
+ return {
13878
+ min: Math.min(...t.map((r) => r.min)),
13879
+ max: Math.max(...t.map((r) => r.max))
13880
+ };
13880
13881
  default:
13881
13882
  return { min: 0, max: 0 };
13882
13883
  }
@@ -13884,13 +13885,13 @@ const Km = (e, t) => ({
13884
13885
  function wo(e, t) {
13885
13886
  return (r) => (r - e.start) * t / (e.end - e.start);
13886
13887
  }
13887
- function Jm(e, t) {
13888
+ function Km(e, t) {
13888
13889
  return (r) => r * (e.end - e.start) / t + e.start;
13889
13890
  }
13890
- function eg(e, t) {
13891
+ function Jm(e, t) {
13891
13892
  return (r) => e.max === e.min ? 0 : (e.max - r) * t / (e.max - e.min);
13892
13893
  }
13893
- function tg(e, t, r) {
13894
+ function eg(e, t, r) {
13894
13895
  return wo(e || t.reduce(
13895
13896
  (n, i) => ({
13896
13897
  start: i.start < n.start ? i.start : n.start,
@@ -13899,8 +13900,8 @@ function tg(e, t, r) {
13899
13900
  { start: 1 / 0, end: -1 / 0 }
13900
13901
  ), r);
13901
13902
  }
13902
- const rg = (e) => {
13903
- const t = { start: e[0].x, end: e[e.length - 1].x }, r = tg(
13903
+ const tg = (e) => {
13904
+ const t = { start: e[0].x, end: e[e.length - 1].x }, r = eg(
13904
13905
  t,
13905
13906
  e.map((i) => ({ start: i.x, end: i.x + 1 })),
13906
13907
  100
@@ -13927,7 +13928,7 @@ function Ft(e) {
13927
13928
  je(() => {
13928
13929
  i || n(t());
13929
13930
  }, [i, t]);
13930
- const a = ve(() => wo(r, e), [e, r]), o = ve(() => Jm(r, e), [e, r]);
13931
+ const a = ve(() => wo(r, e), [e, r]), o = ve(() => Km(r, e), [e, r]);
13931
13932
  return { x: a, reverseX: o };
13932
13933
  }
13933
13934
  const kr = ({ width: e, height: t, id: r }) => /* @__PURE__ */ b.jsx("clipPath", { id: r, children: /* @__PURE__ */ b.jsx("rect", { x: 0, y: 0, width: e, height: t }) });
@@ -13948,7 +13949,7 @@ function Zr(e, t, r) {
13948
13949
  const a = (e - t.min) / n;
13949
13950
  return r.min + a * i;
13950
13951
  }
13951
- function ng(e, t) {
13952
+ function rg(e, t) {
13952
13953
  const r = [];
13953
13954
  return e.forEach((n, i) => (i === 0 || n.start > e[i - 1].end || n.color != e[i - 1].color ? r.push({
13954
13955
  start: t(n.start) < 0 ? 0 : t(n.start),
@@ -13958,7 +13959,7 @@ function ng(e, t) {
13958
13959
  score: n.score
13959
13960
  }) : r[r.length - 1].end = t(n.end), r)), r;
13960
13961
  }
13961
- function ig(e, t) {
13962
+ function ng(e, t) {
13962
13963
  return Mi(
13963
13964
  e.sort((r, n) => r.start - n.start).map((r) => ({
13964
13965
  coordinates: { start: r.start, end: r.end },
@@ -14000,7 +14001,7 @@ function hd({
14000
14001
  onLeave: c,
14001
14002
  tooltip: u
14002
14003
  }) {
14003
- const { totalWidth: l, sideWidth: f } = i, { x: h, reverseX: d } = Ft(l), E = ve(() => ng(t || [], h), [t, h]), w = rt((v) => v.background), { handleClick: y, handleHover: g, handleLeave: m } = xt({
14004
+ const { totalWidth: l, sideWidth: f } = i, { x: h, reverseX: d } = Ft(l), E = ve(() => rg(t || [], h), [t, h]), w = rt((v) => v.background), { handleClick: y, handleHover: g, handleLeave: m } = xt({
14004
14005
  onClick: o,
14005
14006
  onHover: s,
14006
14007
  onLeave: c,
@@ -14029,7 +14030,7 @@ function hd({
14029
14030
  })
14030
14031
  ] });
14031
14032
  }
14032
- const ag = 0, Au = 255, yx = [
14033
+ const ig = 0, Au = 255, gx = [
14033
14034
  "#fd7f6f",
14034
14035
  "#7eb0d5",
14035
14036
  "#b2e061",
@@ -14039,7 +14040,7 @@ const ag = 0, Au = 255, yx = [
14039
14040
  "#beb9db",
14040
14041
  "#fdcce5",
14041
14042
  "#8bd3c7"
14042
- ], bx = [
14043
+ ], yx = [
14043
14044
  "#e60049",
14044
14045
  "#0bb4ff",
14045
14046
  "#50e991",
@@ -14050,15 +14051,15 @@ const ag = 0, Au = 255, yx = [
14050
14051
  "#b3d4ff",
14051
14052
  "#00bfa0"
14052
14053
  ];
14053
- function og(e) {
14054
+ function ag(e) {
14054
14055
  if (e = e.replace(/[^0-9a-f]/gi, ""), e.length === 3 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]), e.length === 8 && (e = e.substring(0, 6)), e.length !== 6) throw new Error(e + " is not a valid hex color");
14055
14056
  return e;
14056
14057
  }
14057
14058
  function Wt(e, t) {
14058
- e = og(e);
14059
+ e = ag(e);
14059
14060
  let r = "#";
14060
14061
  for (let n = 0; n < 3; ++n) {
14061
- const i = parseInt(e.substr(n * 2, 2), 16), a = Math.round(Math.min(Math.max(ag, i + t * Au), Au)).toString(16);
14062
+ const i = parseInt(e.substr(n * 2, 2), 16), a = Math.round(Math.min(Math.max(ig, i + t * Au), Au)).toString(16);
14062
14063
  r += ("00" + a).substr(a.length);
14063
14064
  }
14064
14065
  return r;
@@ -14087,7 +14088,7 @@ function us(e, t, r, n) {
14087
14088
  const [i, a] = Ce({ pos: null, index: null }), o = Ct(
14088
14089
  (c) => {
14089
14090
  if (!e) return;
14090
- const u = sg(c, e, t, r);
14091
+ const u = og(c, e, t, r);
14091
14092
  a(u ? { pos: u.pos, index: u.index + n } : { pos: null, index: null });
14092
14093
  },
14093
14094
  [e, t, r]
@@ -14100,12 +14101,12 @@ function us(e, t, r, n) {
14100
14101
  clearMouseState: s
14101
14102
  };
14102
14103
  }
14103
- function sg(e, t, r, n) {
14104
+ function og(e, t, r, n) {
14104
14105
  if (!t || !t.current || !r) return;
14105
14106
  const i = pd(t.current, e.clientX, e.clientY), a = Math.round(i[0] - n), o = Math.max(0, Math.min(a, r - 1));
14106
14107
  return { pos: { x: i[0], y: i[1] }, index: o };
14107
14108
  }
14108
- function cg({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: a }) {
14109
+ function sg({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: a }) {
14109
14110
  var L;
14110
14111
  const { sideWidth: o, viewWidth: s, totalWidth: c } = i, u = (c / s - 1) / 2, l = _e((R) => R.multiplier), f = we((R) => R.editTrack), h = _e((R) => R.delta), d = _e((R) => R.marginWidth), E = _e((R) => R.svgRef), w = ve(() => {
14111
14112
  const F = ((t == null ? void 0 : t.length) ?? 0) / l, B = Math.floor(u * F), W = Math.floor((u + 1) * F), Z = t == null ? void 0 : t.slice(B, W);
@@ -14115,12 +14116,12 @@ function cg({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: a })
14115
14116
  f(e, { range: w });
14116
14117
  }, [w, e, f]);
14117
14118
  const y = ve(() => t.some((R) => R.min < 0), [t]), g = ve(
14118
- () => rg(t),
14119
+ () => tg(t),
14119
14120
  // data && data.length && dataType(data) === DataType.ValuedPoint ?
14120
14121
  // : renderBigWig(data as BigWigData[] | BigZoomData[], 100),
14121
14122
  [t]
14122
14123
  ), m = ve(() => {
14123
- const R = eg(w, 1);
14124
+ const R = Jm(w, 1);
14124
14125
  return g.renderPoints.filter((B) => B.min < 1 / 0 && B.max > -1 / 0).map((B) => {
14125
14126
  const W = R(B.max);
14126
14127
  return Wt(r, W / 1.25);
@@ -14173,7 +14174,7 @@ var xn = { exports: {} }, Fa = {}, ri = { exports: {} }, ni = { exports: {} }, L
14173
14174
  * LICENSE file in the root directory of this source tree.
14174
14175
  */
14175
14176
  var ju;
14176
- function ug() {
14177
+ function cg() {
14177
14178
  if (ju) return Le;
14178
14179
  ju = 1;
14179
14180
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
@@ -14248,7 +14249,7 @@ var Re = {};
14248
14249
  * LICENSE file in the root directory of this source tree.
14249
14250
  */
14250
14251
  var Nu;
14251
- function lg() {
14252
+ function ug() {
14252
14253
  return Nu || (Nu = 1, process.env.NODE_ENV !== "production" && (function() {
14253
14254
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
14254
14255
  function v(ee) {
@@ -14332,7 +14333,7 @@ function lg() {
14332
14333
  }
14333
14334
  var Pu;
14334
14335
  function vd() {
14335
- return Pu || (Pu = 1, process.env.NODE_ENV === "production" ? ni.exports = ug() : ni.exports = lg()), ni.exports;
14336
+ return Pu || (Pu = 1, process.env.NODE_ENV === "production" ? ni.exports = cg() : ni.exports = ug()), ni.exports;
14336
14337
  }
14337
14338
  /*
14338
14339
  object-assign
@@ -14340,7 +14341,7 @@ object-assign
14340
14341
  @license MIT
14341
14342
  */
14342
14343
  var Ba, Fu;
14343
- function fg() {
14344
+ function lg() {
14344
14345
  if (Fu) return Ba;
14345
14346
  Fu = 1;
14346
14347
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
@@ -14397,7 +14398,7 @@ function md() {
14397
14398
  return qu || (qu = 1, za = Function.call.bind(Object.prototype.hasOwnProperty)), za;
14398
14399
  }
14399
14400
  var Ua, zu;
14400
- function dg() {
14401
+ function fg() {
14401
14402
  if (zu) return Ua;
14402
14403
  zu = 1;
14403
14404
  var e = function() {
@@ -14446,10 +14447,10 @@ function dg() {
14446
14447
  }, Ua = i, Ua;
14447
14448
  }
14448
14449
  var $a, Uu;
14449
- function hg() {
14450
+ function dg() {
14450
14451
  if (Uu) return $a;
14451
14452
  Uu = 1;
14452
- var e = vd(), t = fg(), r = /* @__PURE__ */ ls(), n = /* @__PURE__ */ md(), i = /* @__PURE__ */ dg(), a = function() {
14453
+ var e = vd(), t = lg(), r = /* @__PURE__ */ ls(), n = /* @__PURE__ */ md(), i = /* @__PURE__ */ fg(), a = function() {
14453
14454
  };
14454
14455
  process.env.NODE_ENV !== "production" && (a = function(s) {
14455
14456
  var c = "Warning: " + s;
@@ -14767,7 +14768,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
14767
14768
  }, $a;
14768
14769
  }
14769
14770
  var Va, $u;
14770
- function pg() {
14771
+ function hg() {
14771
14772
  if ($u) return Va;
14772
14773
  $u = 1;
14773
14774
  var e = /* @__PURE__ */ ls();
@@ -14819,13 +14820,13 @@ function gd() {
14819
14820
  if (Vu) return ri.exports;
14820
14821
  if (Vu = 1, process.env.NODE_ENV !== "production") {
14821
14822
  var e = vd(), t = !0;
14822
- ri.exports = /* @__PURE__ */ hg()(e.isElement, t);
14823
+ ri.exports = /* @__PURE__ */ dg()(e.isElement, t);
14823
14824
  } else
14824
- ri.exports = /* @__PURE__ */ pg()();
14825
+ ri.exports = /* @__PURE__ */ hg()();
14825
14826
  return ri.exports;
14826
14827
  }
14827
14828
  var ii = { exports: {} }, Wu;
14828
- function vg() {
14829
+ function pg() {
14829
14830
  if (Wu) return ii.exports;
14830
14831
  Wu = 1;
14831
14832
  function e(r) {
@@ -14869,7 +14870,7 @@ function Ai() {
14869
14870
  return Zt;
14870
14871
  }
14871
14872
  var Kt = {}, Qu;
14872
- function mg() {
14873
+ function vg() {
14873
14874
  if (Qu) return Kt;
14874
14875
  Qu = 1, Object.defineProperty(Kt, "__esModule", {
14875
14876
  value: !0
@@ -14905,7 +14906,7 @@ function fs() {
14905
14906
  Gu = 1, Object.defineProperty(We, "__esModule", {
14906
14907
  value: !0
14907
14908
  }), We.addClassName = _, We.addEvent = o, We.addUserSelectStyles = m, We.createCSSTransform = d, We.createSVGTransform = E, We.getTouch = y, We.getTouchIdentifier = g, We.getTranslation = w, We.innerHeight = l, We.innerWidth = f, We.matchesSelector = i, We.matchesSelectorAndParentsTo = a, We.offsetXYFromParent = h, We.outerHeight = c, We.outerWidth = u, We.removeClassName = k, We.removeEvent = s, We.scheduleRemoveUserSelectStyles = v;
14908
- var e = Ai(), t = r(mg());
14909
+ var e = Ai(), t = r(vg());
14909
14910
  function r(S, T) {
14910
14911
  if (typeof WeakMap == "function") var I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap();
14911
14912
  return (r = function(R, F) {
@@ -15146,7 +15147,7 @@ function bd() {
15146
15147
  return ai;
15147
15148
  }
15148
15149
  var Zu;
15149
- function gg() {
15150
+ function mg() {
15150
15151
  if (Zu) return wn;
15151
15152
  Zu = 1, Object.defineProperty(wn, "__esModule", {
15152
15153
  value: !0
@@ -15447,7 +15448,7 @@ function gg() {
15447
15448
  }), wn;
15448
15449
  }
15449
15450
  var Ku;
15450
- function yg() {
15451
+ function gg() {
15451
15452
  return Ku || (Ku = 1, (function(e) {
15452
15453
  Object.defineProperty(e, "__esModule", {
15453
15454
  value: !0
@@ -15457,7 +15458,7 @@ function yg() {
15457
15458
  return c.default;
15458
15459
  }
15459
15460
  }), e.default = void 0;
15460
- var t = f(Fe), r = l(/* @__PURE__ */ gd()), n = l(yl), i = vg(), a = fs(), o = yd(), s = Ai(), c = l(gg()), u = l(bd());
15461
+ var t = f(Fe), r = l(/* @__PURE__ */ gd()), n = l(yl), i = pg(), a = fs(), o = yd(), s = Ai(), c = l(mg()), u = l(bd());
15461
15462
  function l(g) {
15462
15463
  return g && g.__esModule ? g : { default: g };
15463
15464
  }
@@ -15761,17 +15762,17 @@ function yg() {
15761
15762
  })(Fa)), Fa;
15762
15763
  }
15763
15764
  var Ju;
15764
- function bg() {
15765
+ function yg() {
15765
15766
  if (Ju) return xn.exports;
15766
15767
  Ju = 1;
15767
15768
  const {
15768
15769
  default: e,
15769
15770
  DraggableCore: t
15770
- } = yg();
15771
+ } = gg();
15771
15772
  return xn.exports = e, xn.exports.default = e, xn.exports.DraggableCore = t, xn.exports;
15772
15773
  }
15773
- var _g = bg();
15774
- const ji = /* @__PURE__ */ Io(_g);
15774
+ var bg = yg();
15775
+ const ji = /* @__PURE__ */ Io(bg);
15775
15776
  function ds() {
15776
15777
  const [e, t] = Ce(1), r = _e((n) => n.svgRef);
15777
15778
  return je(() => {
@@ -15809,7 +15810,7 @@ function _d({ children: e, id: t }) {
15809
15810
  }
15810
15811
  );
15811
15812
  }
15812
- function xg(e) {
15813
+ function _g(e) {
15813
15814
  return /* @__PURE__ */ b.jsx(
15814
15815
  "svg",
15815
15816
  {
@@ -15862,7 +15863,7 @@ function xg(e) {
15862
15863
  }
15863
15864
  );
15864
15865
  }
15865
- function wg(e) {
15866
+ function xg(e) {
15866
15867
  return /* @__PURE__ */ b.jsx(
15867
15868
  "svg",
15868
15869
  {
@@ -15887,7 +15888,7 @@ function wg(e) {
15887
15888
  }
15888
15889
  );
15889
15890
  }
15890
- function Eg(e) {
15891
+ function wg(e) {
15891
15892
  return /* @__PURE__ */ b.jsx(
15892
15893
  "svg",
15893
15894
  {
@@ -15911,7 +15912,7 @@ function Eg(e) {
15911
15912
  }
15912
15913
  );
15913
15914
  }
15914
- function Sg({
15915
+ function Eg({
15915
15916
  marginLabel: e,
15916
15917
  id: t,
15917
15918
  height: r,
@@ -15965,13 +15966,13 @@ function Sg({
15965
15966
  /* @__PURE__ */ b.jsx("text", { fill: I, fontSize: `${u}px`, y: r / 2, x: c / 10, alignmentBaseline: "middle", children: e }),
15966
15967
  /* @__PURE__ */ b.jsxs("g", { id: `margin-buttons-${t}`, children: [
15967
15968
  t !== "ruler" && /* @__PURE__ */ b.jsxs("g", { ref: f, onClick: m, style: { cursor: "pointer" }, children: [
15968
- /* @__PURE__ */ b.jsx(xg, { x: c / 10, y: r / 2 + 2, height: 15, width: 15, fill: I }),
15969
+ /* @__PURE__ */ b.jsx(_g, { x: c / 10, y: r / 2 + 2, height: 15, width: 15, fill: I }),
15969
15970
  /* @__PURE__ */ b.jsx("circle", { cx: c / 10 + 7.5, cy: r / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" })
15970
15971
  ] }),
15971
15972
  t !== "ruler" && /* @__PURE__ */ b.jsxs("g", { onClick: y ? v : void 0, style: { cursor: "pointer" }, children: [
15972
15973
  /* @__PURE__ */ b.jsx("circle", { cx: c / 10 + 22.5, cy: r / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" }),
15973
15974
  /* @__PURE__ */ b.jsx(
15974
- wg,
15975
+ xg,
15975
15976
  {
15976
15977
  x: c / 10 + 15,
15977
15978
  y: r / 2 + 3,
@@ -15984,7 +15985,7 @@ function Sg({
15984
15985
  t !== "ruler" && /* @__PURE__ */ b.jsxs("g", { onClick: g ? x : void 0, style: { cursor: "pointer" }, children: [
15985
15986
  /* @__PURE__ */ b.jsx("circle", { cx: c / 10 + 37.5, cy: r / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" }),
15986
15987
  /* @__PURE__ */ b.jsx(
15987
- Eg,
15988
+ wg,
15988
15989
  {
15989
15990
  x: c / 10 + 30,
15990
15991
  y: r / 2 + 2,
@@ -16028,7 +16029,7 @@ function el({
16028
16029
  ] });
16029
16030
  }
16030
16031
  const Ue = 80;
16031
- function kg() {
16032
+ function Sg() {
16032
16033
  const e = _e((f) => f.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = _e((f) => f.getExpandedDomain), i = _e((f) => f.getDomain), [a, o] = Ce(n()), s = Dt((f) => f.isFetching), { x: c } = Ft(r);
16033
16034
  je(() => {
16034
16035
  s || o(n());
@@ -16121,17 +16122,17 @@ function kg() {
16121
16122
  fontSize: Ue / 6 + "px",
16122
16123
  textAnchor: "end",
16123
16124
  fill: u,
16124
- children: Tg(y.end - y.start)
16125
+ children: kg(y.end - y.start)
16125
16126
  }
16126
16127
  ),
16127
16128
  g
16128
16129
  ] });
16129
16130
  }, [a, i, c, r, t, u]);
16130
16131
  }
16131
- function Tg(e) {
16132
+ function kg(e) {
16132
16133
  return e >= 1e9 ? Math.round(e / 1e9) + " Gb" : e >= 1e6 ? Math.round(e / 1e6) + " Mb" : e >= 1e3 ? Math.round(e / 1e3) + " kb" : e + " bp";
16133
16134
  }
16134
- function Dg({
16135
+ function Tg({
16135
16136
  id: e,
16136
16137
  children: t,
16137
16138
  setSwapping: r
@@ -16155,11 +16156,11 @@ function Dg({
16155
16156
  onStart: g,
16156
16157
  onDrag: w,
16157
16158
  onStop: y,
16158
- children: /* @__PURE__ */ b.jsx("g", { id: `swap-track-${e}`, ref: u, children: a ? /* @__PURE__ */ b.jsx(Og, { position: E + n.y + Ue, children: t }) : t })
16159
+ children: /* @__PURE__ */ b.jsx("g", { id: `swap-track-${e}`, ref: u, children: a ? /* @__PURE__ */ b.jsx(Dg, { position: E + n.y + Ue, children: t }) : t })
16159
16160
  }
16160
16161
  );
16161
16162
  }
16162
- function Og({ children: e, position: t }) {
16163
+ function Dg({ children: e, position: t }) {
16163
16164
  const r = _e((a) => a.svgRef), n = ds(), i = Ye(null);
16164
16165
  return bl(
16165
16166
  /* @__PURE__ */ b.jsx(
@@ -16174,14 +16175,14 @@ function Og({ children: e, position: t }) {
16174
16175
  r.current
16175
16176
  );
16176
16177
  }
16177
- const Cg = `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
16178
+ const Og = `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
16178
16179
  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
16179
- 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`, Lg = `M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
16180
+ 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`, Cg = `M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
16180
16181
  C22.32,8.481,24.301,9.057,26.013,10.047z`;
16181
- function Rg({ width: e, height: t, color: r }) {
16182
+ function Lg({ width: e, height: t, color: r }) {
16182
16183
  return /* @__PURE__ */ b.jsxs("svg", { width: e, height: t, viewBox: "0 0 40 40", children: [
16183
- /* @__PURE__ */ b.jsx("path", { opacity: "0.2", fill: r, d: Cg }),
16184
- /* @__PURE__ */ b.jsx("path", { fill: r, d: Lg, children: /* @__PURE__ */ b.jsx(
16184
+ /* @__PURE__ */ b.jsx("path", { opacity: "0.2", fill: r, d: Og }),
16185
+ /* @__PURE__ */ b.jsx("path", { fill: r, d: Cg, children: /* @__PURE__ */ b.jsx(
16185
16186
  "animateTransform",
16186
16187
  {
16187
16188
  attributeType: "xml",
@@ -16195,21 +16196,21 @@ function Rg({ width: e, height: t, color: r }) {
16195
16196
  ) })
16196
16197
  ] });
16197
16198
  }
16198
- const Ig = `M446.324,367.381L262.857,41.692c-15.644-28.444-58.311-28.444-73.956,0L5.435,367.381
16199
- c-15.644,28.444,4.267,64,36.978,64h365.511C442.057,429.959,461.968,395.825,446.324,367.381z`, Mg = `M196.013,212.359l11.378,75.378c1.422,8.533,8.533,15.644,18.489,15.644l0,0
16199
+ const Rg = `M446.324,367.381L262.857,41.692c-15.644-28.444-58.311-28.444-73.956,0L5.435,367.381
16200
+ c-15.644,28.444,4.267,64,36.978,64h365.511C442.057,429.959,461.968,395.825,446.324,367.381z`, Ig = `M196.013,212.359l11.378,75.378c1.422,8.533,8.533,15.644,18.489,15.644l0,0
16200
16201
  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
16201
16202
  C207.39,178.225,194.59,193.87,196.013,212.359z`;
16202
- function Ag({
16203
+ function Mg({
16203
16204
  width: e,
16204
16205
  height: t,
16205
16206
  outline: r,
16206
16207
  inside: n
16207
16208
  }) {
16208
16209
  return /* @__PURE__ */ b.jsxs("svg", { width: e, height: t, viewBox: "0 0 451.74 481.74", children: [
16209
- /* @__PURE__ */ b.jsx("path", { fill: r, d: Ig }),
16210
+ /* @__PURE__ */ b.jsx("path", { fill: r, d: Rg }),
16210
16211
  /* @__PURE__ */ b.jsx("path", { fill: n, d: "M225.879,63.025l183.467,325.689H42.413L225.879,63.025L225.879,63.025z" }),
16211
16212
  /* @__PURE__ */ b.jsxs("g", { children: [
16212
- /* @__PURE__ */ b.jsx("path", { fill: "#3F4448;", d: Mg }),
16213
+ /* @__PURE__ */ b.jsx("path", { fill: "#3F4448;", d: Ig }),
16213
16214
  /* @__PURE__ */ b.jsx("circle", { fill: "#3F4448", cx: "225.879", cy: "336.092", r: "17.067" })
16214
16215
  ] })
16215
16216
  ] });
@@ -16226,13 +16227,13 @@ function xd({ children: e, transform: t, id: r, loading: n, error: i }) {
16226
16227
  }, []), L = Ct(() => {
16227
16228
  c(!1);
16228
16229
  }, []);
16229
- return /* @__PURE__ */ b.jsx("g", { id: `wrapper-${r}`, transform: t, children: /* @__PURE__ */ b.jsxs(Dg, { id: r, setSwapping: o, children: [
16230
+ return /* @__PURE__ */ b.jsx("g", { id: `wrapper-${r}`, transform: t, children: /* @__PURE__ */ b.jsxs(Tg, { id: r, setSwapping: o, children: [
16230
16231
  /* @__PURE__ */ b.jsx("rect", { width: l, height: v, fill: T, style: { pointerEvents: "none" } }),
16231
16232
  n && !i && /* @__PURE__ */ b.jsx(
16232
16233
  "g",
16233
16234
  {
16234
16235
  transform: `translate(${u + (f - _) / 2},${(v - _) / 2})`,
16235
- children: /* @__PURE__ */ b.jsx(Rg, { color: S, width: _, height: _ })
16236
+ children: /* @__PURE__ */ b.jsx(Lg, { color: S, width: _, height: _ })
16236
16237
  }
16237
16238
  ),
16238
16239
  i && /* @__PURE__ */ b.jsxs(
@@ -16240,7 +16241,7 @@ function xd({ children: e, transform: t, id: r, loading: n, error: i }) {
16240
16241
  {
16241
16242
  transform: `translate(${u + (f - _) / 2},${(v - _) / 2})`,
16242
16243
  children: [
16243
- /* @__PURE__ */ b.jsx(Ag, { outline: S, inside: T, width: _, height: _ }),
16244
+ /* @__PURE__ */ b.jsx(Mg, { outline: S, inside: T, width: _, height: _ }),
16244
16245
  /* @__PURE__ */ b.jsx("g", { transform: `translate(${_ / 2},${_ + 10})`, children: /* @__PURE__ */ b.jsx("text", { fill: S, textAnchor: "middle", fontSize: `${g}px`, children: i }) })
16245
16246
  ]
16246
16247
  }
@@ -16269,7 +16270,7 @@ function xd({ children: e, transform: t, id: r, loading: n, error: i }) {
16269
16270
  }
16270
16271
  ),
16271
16272
  /* @__PURE__ */ b.jsx(
16272
- Sg,
16273
+ Eg,
16273
16274
  {
16274
16275
  id: r,
16275
16276
  marginLabel: x,
@@ -16300,7 +16301,7 @@ function Ni(e, t, r = 12) {
16300
16301
  n(t, { height: i });
16301
16302
  }, [r, t, n, e]), r;
16302
16303
  }
16303
- function jg({
16304
+ function Ag({
16304
16305
  id: e,
16305
16306
  data: t,
16306
16307
  height: r,
@@ -16313,7 +16314,7 @@ function jg({
16313
16314
  }) {
16314
16315
  const { totalWidth: u, sideWidth: l } = n, f = rt((v) => v.background), { x: h, reverseX: d } = Ft(u), E = ve(() => {
16315
16316
  const v = t ? [...t] : [];
16316
- return ig(v, h);
16317
+ return ng(v, h);
16317
16318
  }, [t, h]), w = Ni(E.length, e), { handleClick: y, handleHover: g, handleLeave: m } = xt({
16318
16319
  onClick: a,
16319
16320
  onHover: o,
@@ -16343,16 +16344,16 @@ function jg({
16343
16344
  }) }, `group_${x}`))
16344
16345
  ] });
16345
16346
  }
16346
- function Ng(e, t) {
16347
+ function jg(e, t) {
16347
16348
  return e.coordinates.start === t.coordinates.start ? e.coordinates.end - t.coordinates.end : e.coordinates.start - t.coordinates.start;
16348
16349
  }
16349
- function Pg(e, t) {
16350
+ function Ng(e, t) {
16350
16351
  var s;
16351
- const n = e.transcripts.reduce((c, u) => [...c, ...u.exons || []], []).sort(Ng), i = n.length === 0 ? [] : [{ coordinates: { ...n[0].coordinates }, UTRs: n[0].UTRs && [...n[0].UTRs] }], a = new Set(e.transcripts.map((c) => c.color));
16352
+ const n = e.transcripts.reduce((c, u) => [...c, ...u.exons || []], []).sort(jg), i = n.length === 0 ? [] : [{ coordinates: { ...n[0].coordinates }, UTRs: n[0].UTRs && [...n[0].UTRs] }], a = new Set(e.transcripts.map((c) => c.color));
16352
16353
  n.slice(1).forEach((c) => {
16353
16354
  c.coordinates.start < i[i.length - 1].coordinates.end ? (i[i.length - 1].UTRs = [...i[i.length - 1].UTRs || [], ...c.UTRs || []], i[i.length - 1].coordinates.end = Math.max(c.coordinates.end, i[i.length - 1].coordinates.end)) : i.push({ coordinates: { ...c.coordinates }, UTRs: c.UTRs && [...c.UTRs] });
16354
16355
  }), i.forEach((c) => {
16355
- c.UTRs = Fg(c.UTRs || []);
16356
+ c.UTRs = Pg(c.UTRs || []);
16356
16357
  });
16357
16358
  let o = a.size === 1 ? a.values().next().value : void 0;
16358
16359
  return t && (o = (s = e.name) != null && s.includes(t) ? "#ff5555" : o), {
@@ -16367,7 +16368,7 @@ function Pg(e, t) {
16367
16368
  color: o
16368
16369
  };
16369
16370
  }
16370
- function Fg(e) {
16371
+ function Pg(e) {
16371
16372
  if (e.length === 0) return [];
16372
16373
  const t = [{ coordinates: { ...e[0].coordinates } }];
16373
16374
  return e.slice(1).forEach((r) => {
@@ -16379,9 +16380,9 @@ function Fg(e) {
16379
16380
  }
16380
16381
  function wd(e, t, r, n) {
16381
16382
  var o;
16382
- const i = Bg(e, t), a = {
16383
- exons: ((o = i.exons) == null ? void 0 : o.reduce((s, c) => s + Ug(c, r / 2, r, n), "")) || "",
16384
- introns: zg(
16383
+ const i = Fg(e, t), a = {
16384
+ exons: ((o = i.exons) == null ? void 0 : o.reduce((s, c) => s + zg(c, r / 2, r, n), "")) || "",
16385
+ introns: qg(
16385
16386
  i.coordinates.start,
16386
16387
  i.coordinates.end,
16387
16388
  i.strand,
@@ -16392,7 +16393,7 @@ function wd(e, t, r, n) {
16392
16393
  };
16393
16394
  return { transcript: i, paths: a };
16394
16395
  }
16395
- function Bg(e, t) {
16396
+ function Fg(e, t) {
16396
16397
  var r;
16397
16398
  return {
16398
16399
  strand: e.strand,
@@ -16420,10 +16421,10 @@ function Bg(e, t) {
16420
16421
  })) || []
16421
16422
  };
16422
16423
  }
16423
- function qg(e) {
16424
+ function Bg(e) {
16424
16425
  return e.reduce((t, r) => (r.transcripts.forEach((n) => t.push({ ...n, strand: r.strand })), t), []).sort((t, r) => t.coordinates.start - r.coordinates.start);
16425
16426
  }
16426
- function zg(e, t, r, n, i, a) {
16427
+ function qg(e, t, r, n, i, a) {
16427
16428
  let o = "";
16428
16429
  if (e = e < 0 ? 0 : e, t = t > a ? a : t, r === "+")
16429
16430
  for (let s = e + 10; s < t - 10; s += 20)
@@ -16433,7 +16434,7 @@ function zg(e, t, r, n, i, a) {
16433
16434
  o += Ot(s + i, n - i) + be(s, n) + be(s + i, n + i) + be(s, n) + be(s + i, n - i);
16434
16435
  return o + " M " + e + " " + n + " L " + t + " " + n;
16435
16436
  }
16436
- function Ug(e, t, r, n) {
16437
+ function zg(e, t, r, n) {
16437
16438
  var f, h;
16438
16439
  if (e.coordinates.start > n || e.coordinates.end < 0) return "";
16439
16440
  const i = ((f = e.UTRs) == null ? void 0 : f.filter((d) => d.coordinates.start === e.coordinates.start)) || [], a = ((h = e.UTRs) == null ? void 0 : h.filter((d) => d.coordinates.end === e.coordinates.end)) || [], o = t - r * 0.2, s = t + r * 0.2, c = t - r * 0.3, u = t + r * 0.3;
@@ -16454,7 +16455,7 @@ const Ed = (e, t) => {
16454
16455
  coordinates: i
16455
16456
  };
16456
16457
  };
16457
- function $g({
16458
+ function Ug({
16458
16459
  id: e,
16459
16460
  data: t,
16460
16461
  geneName: r,
@@ -16466,7 +16467,7 @@ function $g({
16466
16467
  onLeave: c,
16467
16468
  tooltip: u
16468
16469
  }) {
16469
- const { totalWidth: l, sideWidth: f } = i, { x: h, reverseX: d } = Ft(l), E = 10, w = ve(() => t == null ? void 0 : t.map((S) => Pg(S, r)), [t, r]), y = ve(() => Mi(w, h, E), [w, h, E]), g = Ni(y.length, e), m = ve(
16470
+ const { totalWidth: l, sideWidth: f } = i, { x: h, reverseX: d } = Ft(l), E = 10, w = ve(() => t == null ? void 0 : t.map((S) => Ng(S, r)), [t, r]), y = ve(() => Mi(w, h, E), [w, h, E]), g = Ni(y.length, e), m = ve(
16470
16471
  () => y.map((S, T) => ({
16471
16472
  y: T * g,
16472
16473
  transcripts: S.map((I) => wd(I, h, g, l))
@@ -16530,7 +16531,7 @@ function $g({
16530
16531
  ))
16531
16532
  ] });
16532
16533
  }
16533
- function Vg({
16534
+ function $g({
16534
16535
  id: e,
16535
16536
  data: t,
16536
16537
  height: r,
@@ -16541,7 +16542,7 @@ function Vg({
16541
16542
  onLeave: s,
16542
16543
  tooltip: c
16543
16544
  }) {
16544
- const { totalWidth: u, sideWidth: l } = n, { x: f, reverseX: h } = Ft(u), d = 10, E = ve(() => qg(t || []), [t]), w = ve(() => Mi(E, f, d), [E, f, d]), y = Ni(w.length, e), g = ve(
16545
+ const { totalWidth: u, sideWidth: l } = n, { x: f, reverseX: h } = Ft(u), d = 10, E = ve(() => Bg(t || []), [t]), w = ve(() => Mi(E, f, d), [E, f, d]), y = Ni(w.length, e), g = ve(
16545
16546
  () => w.map((k, S) => ({
16546
16547
  y: S * y,
16547
16548
  transcripts: k.map((T) => wd(T, f, y, u))
@@ -16605,7 +16606,7 @@ function Vg({
16605
16606
  ))
16606
16607
  ] });
16607
16608
  }
16608
- function Wg(e, t, r) {
16609
+ function Vg(e, t, r) {
16609
16610
  return ve(
16610
16611
  () => e.map((n) => {
16611
16612
  const i = t.slice(n.coordinates[0], n.coordinates[1] + 1).map((s) => s.importance), a = [Math.min(...i), Math.max(...i)], o = r(a[1]);
@@ -16618,36 +16619,36 @@ function Wg(e, t, r) {
16618
16619
  [e, r]
16619
16620
  );
16620
16621
  }
16621
- function Hg(e, t) {
16622
+ function Wg(e, t) {
16622
16623
  const r = ve(
16623
- () => Qg(e) ? e.importance.map((o, s) => ({
16624
+ () => Hg(e) ? e.importance.map((o, s) => ({
16624
16625
  base: e.sequence.charAt(s),
16625
16626
  importance: o
16626
16627
  })) : e,
16627
16628
  [e]
16628
- ), n = ve(() => Yg(r, (o) => o.importance), [r]), i = Gg(n, { start: t, end: 0 }), a = Ct(Xg(i), [n, t]);
16629
+ ), n = ve(() => Gg(r, (o) => o.importance), [r]), i = Qg(n, { start: t, end: 0 }), a = Ct(Yg(i), [n, t]);
16629
16630
  return [r, a, i];
16630
16631
  }
16631
- function Qg(e) {
16632
+ function Hg(e) {
16632
16633
  return e.sequence !== void 0;
16633
16634
  }
16634
- function Gg(e, t) {
16635
+ function Qg(e, t) {
16635
16636
  return (r) => t.start + (t.end - t.start) * ((r - e.start) / (e.end - e.start));
16636
16637
  }
16637
- function Yg(e, t) {
16638
+ function Gg(e, t) {
16638
16639
  const r = e.map(t), n = Math.min(...r), i = Math.max(...r);
16639
16640
  return {
16640
16641
  start: n > 0 ? 0 : n,
16641
16642
  end: i < 0 ? 0 : i
16642
16643
  };
16643
16644
  }
16644
- function Xg(e) {
16645
+ function Yg(e) {
16645
16646
  return (t) => {
16646
16647
  const r = e((t < 0, t)), n = e((t < 0, 0)), i = Math.abs(n - r) / 100;
16647
16648
  return [r * (t < 0 ? -1 : 1), i, t < 0 ? "scale(1,-1)" : ""];
16648
16649
  };
16649
16650
  }
16650
- const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16651
+ const Xg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16651
16652
  /* @__PURE__ */ b.jsx(
16652
16653
  "path",
16653
16654
  {
@@ -16656,7 +16657,7 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16656
16657
  }
16657
16658
  ),
16658
16659
  /* @__PURE__ */ b.jsx("path", { fill: "#ffffff", d: "M 77 70 C 70 90 30 90 22 80 C 10 50 80 60 77 70" })
16659
- ] }), Kg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16660
+ ] }), Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16660
16661
  /* @__PURE__ */ b.jsx(
16661
16662
  "path",
16662
16663
  {
@@ -16665,7 +16666,7 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16665
16666
  }
16666
16667
  ),
16667
16668
  /* @__PURE__ */ b.jsx("path", { d: "M 79 60 C 80 95 20 95 20 65 C 20 30 80 30 79 65", fill: "#ffffff" })
16668
- ] }), Jg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16669
+ ] }), Kg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16669
16670
  /* @__PURE__ */ b.jsx(
16670
16671
  "path",
16671
16672
  {
@@ -16674,7 +16675,7 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16674
16675
  }
16675
16676
  ),
16676
16677
  /* @__PURE__ */ b.jsx("path", { d: "M 79 60 C 80 95 20 95 20 65 C 20 30 80 30 79 65", fill: "#ffffff" })
16677
- ] }), ey = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16678
+ ] }), Jg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16678
16679
  /* @__PURE__ */ b.jsx(
16679
16680
  "path",
16680
16681
  {
@@ -16683,13 +16684,13 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16683
16684
  }
16684
16685
  ),
16685
16686
  /* @__PURE__ */ b.jsx("path", { d: "M 33 37 L 68 37 C 58 10 42 10 33 37", fill: "#ffffff" })
16686
- ] }), ty = (e) => /* @__PURE__ */ b.jsx(
16687
+ ] }), ey = (e) => /* @__PURE__ */ b.jsx(
16687
16688
  "path",
16688
16689
  {
16689
16690
  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",
16690
16691
  ...e
16691
16692
  }
16692
- ), ry = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16693
+ ), ty = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16693
16694
  /* @__PURE__ */ b.jsx(
16694
16695
  "path",
16695
16696
  {
@@ -16698,13 +16699,13 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16698
16699
  }
16699
16700
  ),
16700
16701
  /* @__PURE__ */ b.jsx("path", { d: "M 67 30 C 70 10 25 10 27 30 C 25 50 70 50 67 30", fill: "#ffffff" })
16701
- ] }), ny = (e) => /* @__PURE__ */ b.jsx(
16702
+ ] }), ry = (e) => /* @__PURE__ */ b.jsx(
16702
16703
  "path",
16703
16704
  {
16704
16705
  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",
16705
16706
  ...e
16706
16707
  }
16707
- ), iy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16708
+ ), ny = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16708
16709
  /* @__PURE__ */ b.jsx(
16709
16710
  "rect",
16710
16711
  {
@@ -16725,7 +16726,7 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16725
16726
  height: 15
16726
16727
  }
16727
16728
  )
16728
- ] }), ay = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16729
+ ] }), iy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16729
16730
  /* @__PURE__ */ b.jsx(
16730
16731
  "path",
16731
16732
  {
@@ -16734,13 +16735,13 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16734
16735
  }
16735
16736
  ),
16736
16737
  /* @__PURE__ */ b.jsx("path", { d: "M 0 60 L 100 20", ...e })
16737
- ] }), oy = (e) => /* @__PURE__ */ b.jsx(
16738
+ ] }), ay = (e) => /* @__PURE__ */ b.jsx(
16738
16739
  "path",
16739
16740
  {
16740
16741
  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",
16741
16742
  ...e
16742
16743
  }
16743
- ), sy = (e) => /* @__PURE__ */ b.jsx(
16744
+ ), oy = (e) => /* @__PURE__ */ b.jsx(
16744
16745
  "rect",
16745
16746
  {
16746
16747
  x: 40,
@@ -16749,19 +16750,19 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16749
16750
  height: 100,
16750
16751
  ...e
16751
16752
  }
16752
- ), cy = (e) => /* @__PURE__ */ b.jsx(
16753
+ ), sy = (e) => /* @__PURE__ */ b.jsx(
16753
16754
  "path",
16754
16755
  {
16755
16756
  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",
16756
16757
  ...e
16757
16758
  }
16758
- ), uy = (e) => /* @__PURE__ */ b.jsx(
16759
+ ), cy = (e) => /* @__PURE__ */ b.jsx(
16759
16760
  "path",
16760
16761
  {
16761
16762
  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",
16762
16763
  ...e
16763
16764
  }
16764
- ), ly = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16765
+ ), uy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16765
16766
  /* @__PURE__ */ b.jsx(
16766
16767
  "path",
16767
16768
  {
@@ -16770,7 +16771,7 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16770
16771
  }
16771
16772
  ),
16772
16773
  /* @__PURE__ */ b.jsx("path", { d: "M 79 40 C 80 5 20 5 20 35 C 20 70 80 70 79 35", fill: "#ffffff" })
16773
- ] }), fy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16774
+ ] }), ly = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16774
16775
  /* @__PURE__ */ b.jsx(
16775
16776
  "path",
16776
16777
  {
@@ -16779,19 +16780,19 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16779
16780
  }
16780
16781
  ),
16781
16782
  /* @__PURE__ */ b.jsx("path", { d: "M 79 40 C 80 5 20 5 20 35 C 20 70 80 70 79 35", fill: "#ffffff" })
16782
- ] }), dy = (e) => /* @__PURE__ */ b.jsx(
16783
+ ] }), fy = (e) => /* @__PURE__ */ b.jsx(
16783
16784
  "path",
16784
16785
  {
16785
16786
  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",
16786
16787
  ...e
16787
16788
  }
16788
- ), hy = (e) => /* @__PURE__ */ b.jsx(
16789
+ ), dy = (e) => /* @__PURE__ */ b.jsx(
16789
16790
  "path",
16790
16791
  {
16791
16792
  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",
16792
16793
  ...e
16793
16794
  }
16794
- ), py = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16795
+ ), hy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16795
16796
  /* @__PURE__ */ b.jsx(
16796
16797
  "path",
16797
16798
  {
@@ -16809,14 +16810,14 @@ const Zg = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16809
16810
  width: 25
16810
16811
  }
16811
16812
  )
16812
- ] }), vy = (e) => /* @__PURE__ */ b.jsx(
16813
+ ] }), py = (e) => /* @__PURE__ */ b.jsx(
16813
16814
  "path",
16814
16815
  {
16815
16816
  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",
16816
16817
  ...e
16817
16818
  }
16818
16819
  );
16819
- function my(e) {
16820
+ function vy(e) {
16820
16821
  return /* @__PURE__ */ b.jsx(
16821
16822
  "path",
16822
16823
  {
@@ -16825,43 +16826,43 @@ function my(e) {
16825
16826
  }
16826
16827
  );
16827
16828
  }
16828
- const gy = (e) => /* @__PURE__ */ b.jsx(
16829
+ const my = (e) => /* @__PURE__ */ b.jsx(
16829
16830
  "path",
16830
16831
  {
16831
16832
  ...e,
16832
16833
  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"
16833
16834
  }
16834
- ), yy = (e) => /* @__PURE__ */ b.jsx(
16835
+ ), gy = (e) => /* @__PURE__ */ b.jsx(
16835
16836
  "path",
16836
16837
  {
16837
16838
  ...e,
16838
16839
  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"
16839
16840
  }
16840
- ), by = (e) => /* @__PURE__ */ b.jsx(
16841
+ ), yy = (e) => /* @__PURE__ */ b.jsx(
16841
16842
  "path",
16842
16843
  {
16843
16844
  ...e,
16844
16845
  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"
16845
16846
  }
16846
- ), _y = (e) => /* @__PURE__ */ b.jsx(
16847
+ ), by = (e) => /* @__PURE__ */ b.jsx(
16847
16848
  "path",
16848
16849
  {
16849
16850
  ...e,
16850
16851
  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"
16851
16852
  }
16852
- ), xy = (e) => /* @__PURE__ */ b.jsx(
16853
+ ), _y = (e) => /* @__PURE__ */ b.jsx(
16853
16854
  "path",
16854
16855
  {
16855
16856
  ...e,
16856
16857
  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"
16857
16858
  }
16858
- ), wy = (e) => /* @__PURE__ */ b.jsx(
16859
+ ), xy = (e) => /* @__PURE__ */ b.jsx(
16859
16860
  "path",
16860
16861
  {
16861
16862
  ...e,
16862
16863
  d: "M 0 0 L 100 0 L 50 100 L 20 100 L 60 20 L 0 20 L 0 0"
16863
16864
  }
16864
- ), Ey = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16865
+ ), wy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16865
16866
  /* @__PURE__ */ b.jsx(
16866
16867
  "path",
16867
16868
  {
@@ -16876,7 +16877,7 @@ const gy = (e) => /* @__PURE__ */ b.jsx(
16876
16877
  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"
16877
16878
  }
16878
16879
  )
16879
- ] }), Sy = (e) => /* @__PURE__ */ b.jsx(
16880
+ ] }), Ey = (e) => /* @__PURE__ */ b.jsx(
16880
16881
  "path",
16881
16882
  {
16882
16883
  ...e,
@@ -16891,10 +16892,10 @@ const gy = (e) => /* @__PURE__ */ b.jsx(
16891
16892
  }
16892
16893
  ),
16893
16894
  /* @__PURE__ */ b.jsx("path", { fill: "#ffffff", d: "M 41 55 L 50 25 L 58 55 L 41 55" })
16894
- ] }), ky = `M 0 0 L 80 0 C 105 0 105 50 80 50
16895
+ ] }), Sy = `M 0 0 L 80 0 C 105 0 105 50 80 50
16895
16896
  C 105 50 105 100 80 100 L 00 100
16896
- L 0 0`, Ty = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16897
- /* @__PURE__ */ b.jsx("path", { ...e, d: ky }),
16897
+ L 0 0`, ky = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16898
+ /* @__PURE__ */ b.jsx("path", { ...e, d: Sy }),
16898
16899
  /* @__PURE__ */ b.jsx(
16899
16900
  "path",
16900
16901
  {
@@ -16909,31 +16910,31 @@ const gy = (e) => /* @__PURE__ */ b.jsx(
16909
16910
  fill: "#ffffff"
16910
16911
  }
16911
16912
  )
16912
- ] }), Dy = `M 100 28 C 100 -13 0 -13 0 50
16913
+ ] }), Ty = `M 100 28 C 100 -13 0 -13 0 50
16913
16914
  C 0 113 100 113 100 72 L 75 72
16914
16915
  C 75 90 30 90 30 50 C 30 10 75 10 75 28
16915
- L 100 28`, xi = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Dy }), Oy = `M 0 0 L 60 0 C 110 0 110 100 60 100
16916
- L 0 100 L 0 0`, Cy = `M 20 15 L 40 15 C 85 15 85 85 40 85
16917
- L 20 85 L 20 15`, Ly = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16918
- /* @__PURE__ */ b.jsx("path", { ...e, d: Oy }),
16919
- /* @__PURE__ */ b.jsx("path", { fill: "#ffffff", d: Cy })
16920
- ] }), Ry = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
16916
+ L 100 28`, xi = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Ty }), Dy = `M 0 0 L 60 0 C 110 0 110 100 60 100
16917
+ L 0 100 L 0 0`, Oy = `M 20 15 L 40 15 C 85 15 85 85 40 85
16918
+ L 20 85 L 20 15`, Cy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16919
+ /* @__PURE__ */ b.jsx("path", { ...e, d: Dy }),
16920
+ /* @__PURE__ */ b.jsx("path", { fill: "#ffffff", d: Oy })
16921
+ ] }), Ly = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
16921
16922
  L 90 40 L 90 60 L 20 60 L 20 80 L 100 80
16922
- L 100 100 L 0 100 L 0 0`, Iy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Ry }), My = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
16923
+ L 100 100 L 0 100 L 0 0`, Ry = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Ly }), Iy = `M 0 0 L 100 0 L 100 20 L 20 20 L 20 40
16923
16924
  L 80 40 L 80 60 L 20 60 L 20 100 L 0 100
16924
- L 0 0`, Ay = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: My }), jy = `M 100 28 C 100 -13 0 -13 0 50 C 0 113 100 113 100 72
16925
+ L 0 0`, My = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Iy }), Ay = `M 100 28 C 100 -13 0 -13 0 50 C 0 113 100 113 100 72
16925
16926
  L 100 48 L 55 48 L 55 72 L 75 72 C 75 90 30 90 30 50
16926
- C 30 10 75 5 75 28 L 100 28`, ps = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: jy }), Ny = `M 0 0 L 20 0 L 20 40 L 80 40 L 80 0
16927
+ C 30 10 75 5 75 28 L 100 28`, ps = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Ay }), jy = `M 0 0 L 20 0 L 20 40 L 80 40 L 80 0
16927
16928
  L 100 0 L 100 100 L 80 100 L 80 60
16928
- L 20 60 L 20 100 L 0 100 L 0 0`, Py = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Ny }), Fy = "M 40 0 L 60 0 L 60 100 L 40 100 L 40 0", By = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Fy }), qy = `M 0 60 C 0 111 100 111 100 60
16929
+ L 20 60 L 20 100 L 0 100 L 0 0`, Ny = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: jy }), Py = "M 40 0 L 60 0 L 60 100 L 40 100 L 40 0", Fy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Py }), By = `M 0 60 C 0 111 100 111 100 60
16929
16930
  L 100 0 L 75 0 L 75 60
16930
- C 80 90 20 90 25 60`, zy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: qy }), Uy = `M 0 0 L 20 0 L 20 40 L 75 0 L 100 0
16931
+ C 80 90 20 90 25 60`, qy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: By }), zy = `M 0 0 L 20 0 L 20 40 L 75 0 L 100 0
16931
16932
  L 50 50 L 100 100 L 75 100 L 30 65
16932
- L 20 75 L 20 100 L 0 100 L 0 0`, $y = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Uy }), Vy = `M 0 0 L 0 100 L 100 100 L 100 80
16933
- L 20 80 L 20 0 L 0 0`, Wy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Vy }), Hy = `M 0 0 L 20 0 L 50 35 L 80 0 L 100 0 L 100 100
16933
+ L 20 75 L 20 100 L 0 100 L 0 0`, Uy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: zy }), $y = `M 0 0 L 0 100 L 100 100 L 100 80
16934
+ L 20 80 L 20 0 L 0 0`, Vy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: $y }), Wy = `M 0 0 L 20 0 L 50 35 L 80 0 L 100 0 L 100 100
16934
16935
  L 80 100 L 80 30 L 50 65 L 20 30 L 20 100
16935
- L 0 100 L 0 0`, Qy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Hy }), Gy = `M 0 100 L 0 0 L 20 0 L 80 75 L 80 0
16936
- L 100 0 L 100 100 L 80 100 L 20 25 L 20 100 L 0 100`, Yy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Gy }), Wa = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16936
+ L 0 100 L 0 0`, Hy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Wy }), Qy = `M 0 100 L 0 0 L 20 0 L 80 75 L 80 0
16937
+ L 100 0 L 100 100 L 80 100 L 20 25 L 20 100 L 0 100`, Gy = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: Qy }), Wa = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16937
16938
  /* @__PURE__ */ b.jsx(
16938
16939
  "circle",
16939
16940
  {
@@ -16944,9 +16945,9 @@ const gy = (e) => /* @__PURE__ */ b.jsx(
16944
16945
  }
16945
16946
  ),
16946
16947
  /* @__PURE__ */ b.jsx("circle", { cx: "50", cy: "50", r: "32", fill: "#ffffff" })
16947
- ] }), Xy = `M 0 0 L 80 0 C 105 0 105 50 80 50
16948
- L 20 50 L 20 100 L 0 100 L 0 0`, Zy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16949
- /* @__PURE__ */ b.jsx("path", { ...e, d: Xy }),
16948
+ ] }), Yy = `M 0 0 L 80 0 C 105 0 105 50 80 50
16949
+ L 20 50 L 20 100 L 0 100 L 0 0`, Xy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16950
+ /* @__PURE__ */ b.jsx("path", { ...e, d: Yy }),
16950
16951
  /* @__PURE__ */ b.jsx(
16951
16952
  "path",
16952
16953
  {
@@ -16954,7 +16955,7 @@ const gy = (e) => /* @__PURE__ */ b.jsx(
16954
16955
  d: "M 20 15 L 70 15 C 80 15 80 35 70 35 L 20 35 L 20 15"
16955
16956
  }
16956
16957
  )
16957
- ] }), Ky = "M 85 100 L 55 70 L 70 55 L 100 85 L 85 100", Jy = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16958
+ ] }), Zy = "M 85 100 L 55 70 L 70 55 L 100 85 L 85 100", Ky = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16958
16959
  /* @__PURE__ */ b.jsx(
16959
16960
  "circle",
16960
16961
  {
@@ -16965,12 +16966,12 @@ const gy = (e) => /* @__PURE__ */ b.jsx(
16965
16966
  }
16966
16967
  ),
16967
16968
  /* @__PURE__ */ b.jsx("circle", { cx: "50", cy: "50", r: "32", fill: "#ffffff" }),
16968
- /* @__PURE__ */ b.jsx("path", { d: Ky, ...e })
16969
- ] }), eb = `M 0 0 L 80 0 C 105 0 105 50 80 50
16969
+ /* @__PURE__ */ b.jsx("path", { d: Zy, ...e })
16970
+ ] }), Jy = `M 0 0 L 80 0 C 105 0 105 50 80 50
16970
16971
  C 100 50 100 70 100 70 L 100 100 L 80 100
16971
16972
  L 80 80 C 80 80 80 60 50 60 L 20 60
16972
- L 20 100 L 0 100 L 0 0`, tb = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16973
- /* @__PURE__ */ b.jsx("path", { ...e, d: eb }),
16973
+ L 20 100 L 0 100 L 0 0`, eb = (e) => /* @__PURE__ */ b.jsxs("g", { children: [
16974
+ /* @__PURE__ */ b.jsx("path", { ...e, d: Jy }),
16974
16975
  /* @__PURE__ */ b.jsx(
16975
16976
  "path",
16976
16977
  {
@@ -16978,33 +16979,33 @@ const gy = (e) => /* @__PURE__ */ b.jsx(
16978
16979
  d: "M 20 15 L 70 15 C 80 15 80 35 70 35 L 20 35 L 20 15"
16979
16980
  }
16980
16981
  )
16981
- ] }), rb = "M92 26 A43 20 0 1 0 43 46 A42 23 0 1 1 9 68", tl = ({ fill: e, fillOpacity: t }) => /* @__PURE__ */ b.jsx(
16982
+ ] }), tb = "M92 26 A43 20 0 1 0 43 46 A42 23 0 1 1 9 68", tl = ({ fill: e, fillOpacity: t }) => /* @__PURE__ */ b.jsx(
16982
16983
  "path",
16983
16984
  {
16984
16985
  fill: "#ffffff",
16985
16986
  stroke: e,
16986
16987
  strokeOpacity: t,
16987
16988
  strokeWidth: "18",
16988
- d: rb
16989
+ d: tb
16989
16990
  }
16990
- ), nb = `M 0 0 L 0 20 L 35 20 L 35 100
16991
+ ), rb = `M 0 0 L 0 20 L 35 20 L 35 100
16991
16992
  L 65 100 L 65 20 L 100 20
16992
- L 100 0 L 0 0`, vs = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: nb }), ib = `M 0 0 L 0 60 C 0 111 100 111 100 60
16993
+ L 100 0 L 0 0`, vs = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: rb }), nb = `M 0 0 L 0 60 C 0 111 100 111 100 60
16993
16994
  L 100 0 L 75 0 L 75 60
16994
- C 80 90 20 90 25 60 L 25 0 L 0 0`, ab = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: ib }), ob = `M 0 0 L 20 0 L 50 80 L 80 0
16995
- L 100 0 L 60 100 L 40 100 L 0 0`, rl = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: ob }), sb = `M 0 0 L 20 0 L 30 70 L 50 30 L 70 70 L 80 0
16995
+ C 80 90 20 90 25 60 L 25 0 L 0 0`, ib = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: nb }), ab = `M 0 0 L 20 0 L 50 80 L 80 0
16996
+ L 100 0 L 60 100 L 40 100 L 0 0`, rl = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: ab }), ob = `M 0 0 L 20 0 L 30 70 L 50 30 L 70 70 L 80 0
16996
16997
  L 100 0 L 90 100 L 70 100 L 50 65 L 30 100
16997
- L 10 100 L 0 0`, nl = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: sb }), cb = `M 0 0 L 20 0 L 50 40 L 80 0 L 100 0 L 70 50
16998
+ L 10 100 L 0 0`, nl = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: ob }), sb = `M 0 0 L 20 0 L 50 40 L 80 0 L 100 0 L 70 50
16998
16999
  L 100 100 L 80 100 L 50 60 L 20 100 L 0 100
16999
- L 30 50 L 0 0`, il = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: cb }), ub = `M 0 0 L 20 0 L 50 45 L 80 0 L 100 0
17000
- L 60 60 L 60 100 L 40 100 L 40 60 L 0 0`, lb = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: ub }), fb = `M 0 0 L 100 0 L 100 20 L 35 80 L 100 80
17000
+ L 30 50 L 0 0`, il = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: sb }), cb = `M 0 0 L 20 0 L 50 45 L 80 0 L 100 0
17001
+ L 60 60 L 60 100 L 40 100 L 40 60 L 0 0`, ub = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: cb }), lb = `M 0 0 L 100 0 L 100 20 L 35 80 L 100 80
17001
17002
  L 100 100 L 0 100 L 0 80 L 65 20 L 0 20
17002
- L 0 0`, al = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: fb });
17003
- function db({ xscale: e, yscale: t, inverted: r, children: n }) {
17003
+ L 0 0`, al = (e) => /* @__PURE__ */ b.jsx("path", { ...e, d: lb });
17004
+ function fb({ xscale: e, yscale: t, inverted: r, children: n }) {
17004
17005
  const i = t * (r ? -1 : 1);
17005
17006
  return /* @__PURE__ */ b.jsx("g", { transform: "scale(" + e + "," + i + ")", children: n });
17006
17007
  }
17007
- const hb = ({
17008
+ const db = ({
17008
17009
  height: e,
17009
17010
  width: t,
17010
17011
  indices: r,
@@ -17046,7 +17047,7 @@ const hb = ({
17046
17047
  regex: [n[E].regex[m]],
17047
17048
  color: n[E].color && [n[E].color[m]]
17048
17049
  })),
17049
- children: /* @__PURE__ */ b.jsx(db, { xscale: y, yscale: i[E], inverted: s || !1, children: /* @__PURE__ */ b.jsx(
17050
+ children: /* @__PURE__ */ b.jsx(fb, { xscale: y, yscale: i[E], inverted: s || !1, children: /* @__PURE__ */ b.jsx(
17050
17051
  g,
17051
17052
  {
17052
17053
  fill: n[E].color && n[E].color[m] || "#000000",
@@ -17059,7 +17060,7 @@ const hb = ({
17059
17060
  ));
17060
17061
  });
17061
17062
  return /* @__PURE__ */ b.jsx("g", { transform: a, children: d });
17062
- }, pb = (e, t) => (r) => t[0] + (t[1] - t[0]) * ((r - e[0]) / (e[1] - e[0])), vb = ({
17063
+ }, hb = (e, t) => (r) => t[0] + (t[1] - t[0]) * ((r - e[0]) / (e[1] - e[0])), pb = ({
17063
17064
  minrange: e,
17064
17065
  maxrange: t,
17065
17066
  xstart: r,
@@ -17069,7 +17070,7 @@ const hb = ({
17069
17070
  numberofgridlines: o,
17070
17071
  stroke: s
17071
17072
  }) => {
17072
- const c = pb([e, t], [r, n]), u = t - e, l = a + i, f = Math.ceil(u) / o, h = Math.ceil(u / f), d = Array.from(Array(h).keys());
17073
+ const c = hb([e, t], [r, n]), u = t - e, l = a + i, f = Math.ceil(u) / o, h = Math.ceil(u / f), d = Array.from(Array(h).keys());
17073
17074
  return /* @__PURE__ */ b.jsxs("g", { stroke: s || "#000000", children: [
17074
17075
  d.map((E) => {
17075
17076
  const w = e + f * E;
@@ -17080,68 +17081,68 @@ const hb = ({
17080
17081
  ] });
17081
17082
  }, Ha = "FREQUENCY", ol = [
17082
17083
  { component: [hs], regex: ["A"], color: ["red"] },
17083
- { component: [Ty], regex: ["B"], color: ["maroon"] },
17084
+ { component: [ky], regex: ["B"], color: ["maroon"] },
17084
17085
  { component: [xi], regex: ["C"], color: ["blue"] },
17085
- { component: [Ly], regex: ["D"], color: ["green"] },
17086
- { component: [Iy], regex: ["E"], color: ["olive"] },
17087
- { component: [Ay], regex: ["F"], color: ["navy"] },
17086
+ { component: [Cy], regex: ["D"], color: ["green"] },
17087
+ { component: [Ry], regex: ["E"], color: ["olive"] },
17088
+ { component: [My], regex: ["F"], color: ["navy"] },
17088
17089
  { component: [ps], regex: ["G"], color: ["orange"] },
17089
- { component: [Py], regex: ["H"], color: ["teal"] },
17090
- { component: [By], regex: ["I"], color: ["cadetblue"] },
17091
- { component: [zy], regex: ["J"], color: ["lavender"] },
17092
- { component: [$y], regex: ["K"], color: ["chocolate"] },
17093
- { component: [Wy], regex: ["L"], color: ["coral"] },
17094
- { component: [Qy], regex: ["M"], color: ["darkolivegreen"] },
17095
- { component: [Yy], regex: ["N"], color: ["darkorange"] },
17090
+ { component: [Ny], regex: ["H"], color: ["teal"] },
17091
+ { component: [Fy], regex: ["I"], color: ["cadetblue"] },
17092
+ { component: [qy], regex: ["J"], color: ["lavender"] },
17093
+ { component: [Uy], regex: ["K"], color: ["chocolate"] },
17094
+ { component: [Vy], regex: ["L"], color: ["coral"] },
17095
+ { component: [Hy], regex: ["M"], color: ["darkolivegreen"] },
17096
+ { component: [Gy], regex: ["N"], color: ["darkorange"] },
17096
17097
  { component: [Wa], regex: ["O"], color: ["gold"] },
17097
- { component: [Zy], regex: ["P"], color: ["darkorchid"] },
17098
- { component: [Jy], regex: ["Q"], color: ["darkslateblue"] },
17099
- { component: [tb], regex: ["R"], color: ["firebrick"] },
17098
+ { component: [Xy], regex: ["P"], color: ["darkorchid"] },
17099
+ { component: [Ky], regex: ["Q"], color: ["darkslateblue"] },
17100
+ { component: [eb], regex: ["R"], color: ["firebrick"] },
17100
17101
  { component: [tl], regex: ["S"], color: ["darkslategrey"] },
17101
17102
  { component: [vs], regex: ["T"], color: ["#228b22"] },
17102
- { component: [ab], regex: ["U"], color: ["seagreen"] },
17103
+ { component: [ib], regex: ["U"], color: ["seagreen"] },
17103
17104
  { component: [rl], regex: ["V"], color: ["indigo"] },
17104
17105
  { component: [nl], regex: ["W"], color: ["mediumseagreen"] },
17105
17106
  { component: [il], regex: ["X"], color: ["black"] },
17106
- { component: [lb], regex: ["Y"], color: ["palevioletred"] },
17107
+ { component: [ub], regex: ["Y"], color: ["palevioletred"] },
17107
17108
  { component: [al], regex: ["Z"], color: ["peru"] },
17108
- { component: [Zg], regex: ["a"], color: ["red"] },
17109
- { component: [Kg], regex: ["b"], color: ["maroon"] },
17109
+ { component: [Xg], regex: ["a"], color: ["red"] },
17110
+ { component: [Zg], regex: ["b"], color: ["maroon"] },
17110
17111
  { component: [xi], regex: ["c"], color: ["purple"] },
17111
- { component: [Jg], regex: ["d"], color: ["green"] },
17112
- { component: [ey], regex: ["e"], color: ["olive"] },
17113
- { component: [ty], regex: ["f"], color: ["navy"] },
17114
- { component: [ry], regex: ["g"], color: ["orange"] },
17115
- { component: [ny], regex: ["h"], color: ["teal"] },
17116
- { component: [iy], regex: ["i"], color: ["cadetblue"] },
17117
- { component: [ay], regex: ["j"], color: ["lavender"] },
17118
- { component: [oy], regex: ["k"], color: ["chocolate"] },
17119
- { component: [sy], regex: ["l"], color: ["coral"] },
17120
- { component: [cy], regex: ["m"], color: ["darkolivegreen"] },
17121
- { component: [uy], regex: ["n"], color: ["darkorange"] },
17112
+ { component: [Kg], regex: ["d"], color: ["green"] },
17113
+ { component: [Jg], regex: ["e"], color: ["olive"] },
17114
+ { component: [ey], regex: ["f"], color: ["navy"] },
17115
+ { component: [ty], regex: ["g"], color: ["orange"] },
17116
+ { component: [ry], regex: ["h"], color: ["teal"] },
17117
+ { component: [ny], regex: ["i"], color: ["cadetblue"] },
17118
+ { component: [iy], regex: ["j"], color: ["lavender"] },
17119
+ { component: [ay], regex: ["k"], color: ["chocolate"] },
17120
+ { component: [oy], regex: ["l"], color: ["coral"] },
17121
+ { component: [sy], regex: ["m"], color: ["darkolivegreen"] },
17122
+ { component: [cy], regex: ["n"], color: ["darkorange"] },
17122
17123
  { component: [Wa], regex: ["o"], color: ["gold"] },
17123
- { component: [ly], regex: ["p"], color: ["darkorchid"] },
17124
- { component: [fy], regex: ["q"], color: ["darkslateblue"] },
17125
- { component: [dy], regex: ["r"], color: ["firebrick"] },
17124
+ { component: [uy], regex: ["p"], color: ["darkorchid"] },
17125
+ { component: [ly], regex: ["q"], color: ["darkslateblue"] },
17126
+ { component: [fy], regex: ["r"], color: ["firebrick"] },
17126
17127
  { component: [tl], regex: ["s"], color: ["darkslategrey"] },
17127
- { component: [hy], regex: ["t"], color: ["#228b22"] },
17128
- { component: [py], regex: ["u"], color: ["seagreen"] },
17128
+ { component: [dy], regex: ["t"], color: ["#228b22"] },
17129
+ { component: [hy], regex: ["u"], color: ["seagreen"] },
17129
17130
  { component: [rl], regex: ["v"], color: ["indigo"] },
17130
17131
  { component: [nl], regex: ["w"], color: ["mediumseagreen"] },
17131
17132
  { component: [il], regex: ["x"], color: ["black"] },
17132
- { component: [vy], regex: ["y"], color: ["palevioletred"] },
17133
+ { component: [py], regex: ["y"], color: ["palevioletred"] },
17133
17134
  { component: [al], regex: ["z"], color: ["peru"] },
17134
17135
  { component: [Wa], regex: ["0"], color: ["indianred"] },
17135
- { component: [my], regex: ["1"], color: ["red"] },
17136
- { component: [gy], regex: ["2"], color: ["green"] },
17137
- { component: [yy], regex: ["3"], color: ["purple"] },
17138
- { component: [by], regex: ["4"], color: ["navy"] },
17139
- { component: [_y], regex: ["5"], color: ["teal"] },
17140
- { component: [xy], regex: ["6"], color: ["gold"] },
17141
- { component: [wy], regex: ["7"], color: ["olive"] },
17142
- { component: [Ey], regex: ["8"], color: ["slate"] },
17143
- { component: [Sy], regex: ["9"], color: ["firebrick"] }
17144
- ], mb = (e, t) => {
17136
+ { component: [vy], regex: ["1"], color: ["red"] },
17137
+ { component: [my], regex: ["2"], color: ["green"] },
17138
+ { component: [gy], regex: ["3"], color: ["purple"] },
17139
+ { component: [yy], regex: ["4"], color: ["navy"] },
17140
+ { component: [by], regex: ["5"], color: ["teal"] },
17141
+ { component: [_y], regex: ["6"], color: ["gold"] },
17142
+ { component: [xy], regex: ["7"], color: ["olive"] },
17143
+ { component: [wy], regex: ["8"], color: ["slate"] },
17144
+ { component: [Ey], regex: ["9"], color: ["firebrick"] }
17145
+ ], vb = (e, t) => {
17145
17146
  let r = ("" + e).length;
17146
17147
  for (let n = e + 1; n < e + t; ++n)
17147
17148
  ("" + n).length > r && (r = ("" + n).length);
@@ -17153,7 +17154,7 @@ const hb = ({
17153
17154
  e[n] = ol[r];
17154
17155
  });
17155
17156
  }), e;
17156
- })(), gb = (e) => e.map((t) => {
17157
+ })(), mb = (e) => e.map((t) => {
17157
17158
  if (t.regex.length === 1)
17158
17159
  return Object.assign({}, t, {
17159
17160
  component: sl[t.regex[0]].component
@@ -17163,7 +17164,7 @@ const hb = ({
17163
17164
  for (let i = 0; i < n.regex.length; ++i)
17164
17165
  n.component.push(sl[n.regex[i]].component[0]), n.color.push(t.color && t.color[i] || r);
17165
17166
  return n;
17166
- }), yb = (e) => (t, r) => {
17167
+ }), gb = (e) => (t, r) => {
17167
17168
  let n = 0, i = r || 0;
17168
17169
  return t.map(
17169
17170
  (a, o) => n += a === 0 ? 0 : a * Math.log2(a / (e[o] || 0.01))
@@ -17171,12 +17172,12 @@ const hb = ({
17171
17172
  const o = a * (n - i);
17172
17173
  return o <= 0 ? 0 : o;
17173
17174
  });
17174
- }, bb = (e) => e.map((t, r) => r).sort((t, r) => e[t] < e[r] ? -1 : e[t] === e[r] ? 0 : 1), _b = (e) => e.map((t, r) => r).sort((t, r) => e[t] < e[r] ? 1 : e[t] === e[r] ? 0 : -1), ms = (e) => {
17175
+ }, yb = (e) => e.map((t, r) => r).sort((t, r) => e[t] < e[r] ? -1 : e[t] === e[r] ? 0 : 1), bb = (e) => e.map((t, r) => r).sort((t, r) => e[t] < e[r] ? 1 : e[t] === e[r] ? 0 : -1), ms = (e) => {
17175
17176
  let t = [];
17176
17177
  for (let r = 0; r < Math.floor(e); r++)
17177
17178
  t.push(r);
17178
17179
  return t;
17179
- }, xb = ({
17180
+ }, _b = ({
17180
17181
  n: e,
17181
17182
  transform: t,
17182
17183
  glyphWidth: r,
@@ -17194,7 +17195,7 @@ const hb = ({
17194
17195
  },
17195
17196
  a
17196
17197
  )) }) });
17197
- }, wb = (e) => {
17198
+ }, xb = (e) => {
17198
17199
  const t = ms(e.bits + 1), r = e.zeroPoint || 1;
17199
17200
  return /* @__PURE__ */ b.jsxs("g", { transform: e.transform, children: [
17200
17201
  /* @__PURE__ */ b.jsx(
@@ -17238,7 +17239,7 @@ const hb = ({
17238
17239
  }
17239
17240
  ) })
17240
17241
  ] });
17241
- }, Eb = (e) => {
17242
+ }, wb = (e) => {
17242
17243
  const t = ms(e.ticks + 1).map((r) => r / e.ticks);
17243
17244
  return /* @__PURE__ */ b.jsxs("g", { transform: e.transform, children: [
17244
17245
  /* @__PURE__ */ b.jsx(
@@ -17273,10 +17274,10 @@ const hb = ({
17273
17274
  )),
17274
17275
  /* @__PURE__ */ b.jsx("g", { transform: "rotate(-90)", children: /* @__PURE__ */ b.jsx("text", { y: "15", x: -e.height / 2, textAnchor: "middle", fontSize: "18", children: "frequency" }) })
17275
17276
  ] });
17276
- }, Sb = (e, t, r, n) => (i, a, o, s, c, u) => {
17277
- const l = u ? _b(i) : bb(i), { onSymbolMouseOver: f, onSymbolMouseOut: h, onSymbolClick: d } = s;
17277
+ }, Eb = (e, t, r, n) => (i, a, o, s, c, u) => {
17278
+ const l = u ? bb(i) : yb(i), { onSymbolMouseOver: f, onSymbolMouseOut: h, onSymbolClick: d } = s;
17278
17279
  return /* @__PURE__ */ b.jsx(
17279
- hb,
17280
+ db,
17280
17281
  {
17281
17282
  indices: l,
17282
17283
  alphabet: o,
@@ -17292,7 +17293,7 @@ const hb = ({
17292
17293
  },
17293
17294
  a
17294
17295
  );
17295
- }, kb = ({
17296
+ }, Sb = ({
17296
17297
  values: e,
17297
17298
  glyphWidth: t,
17298
17299
  stackHeight: r,
@@ -17301,10 +17302,10 @@ const hb = ({
17301
17302
  onSymbolMouseOut: a,
17302
17303
  onSymbolClick: o
17303
17304
  }) => {
17304
- const s = Sb(t, r);
17305
+ const s = Eb(t, r);
17305
17306
  for (const c in n)
17306
17307
  if (!n[c].component) {
17307
- n = gb(n);
17308
+ n = mb(n);
17308
17309
  break;
17309
17310
  }
17310
17311
  return e.map(
@@ -17327,7 +17328,7 @@ const hb = ({
17327
17328
  count: r.length,
17328
17329
  pfm: n
17329
17330
  };
17330
- }, Tb = (e, t) => {
17331
+ }, kb = (e, t) => {
17331
17332
  const r = {}, n = [];
17332
17333
  return e.forEach((i, a) => {
17333
17334
  i.regex.forEach((o) => {
@@ -17337,7 +17338,7 @@ const hb = ({
17337
17338
  `).forEach((i) => {
17338
17339
  i[0] === ">" ? n.push("") : n[n.length - 1] += i.trim();
17339
17340
  }), Sd(e, r, n);
17340
- }, Db = (e, t) => {
17341
+ }, Tb = (e, t) => {
17341
17342
  const r = {};
17342
17343
  return e.forEach((n, i) => {
17343
17344
  n.regex.forEach((a) => {
@@ -17349,7 +17350,7 @@ const hb = ({
17349
17350
  t.split(`
17350
17351
  `).map((n) => n.trim())
17351
17352
  );
17352
- }, Ob = ({
17353
+ }, Db = ({
17353
17354
  ppm: e,
17354
17355
  pfm: t,
17355
17356
  values: r,
@@ -17376,7 +17377,7 @@ const hb = ({
17376
17377
  let k = null;
17377
17378
  const S = (t || n) && !d && !x ? !E : !1, T = S ? 0 : (d || 0) / s.length;
17378
17379
  if (!e && !t && n) {
17379
- const te = (v ? Db : Tb)(
17380
+ const te = (v ? Tb : kb)(
17380
17381
  s,
17381
17382
  n.toUpperCase()
17382
17383
  );
@@ -17398,7 +17399,7 @@ const hb = ({
17398
17399
  let L = e[0].length;
17399
17400
  h || (h = e[0].map((te) => 1 / L));
17400
17401
  let R = r || (i !== Ha ? e.map(
17401
- (te, P) => yb(h)(te, I ? I[P] : void 0)
17402
+ (te, P) => gb(h)(te, I ? I[P] : void 0)
17402
17403
  ) : e.map(
17403
17404
  (te) => te.map((P) => P * Math.log2(L))
17404
17405
  ));
@@ -17406,7 +17407,7 @@ const hb = ({
17406
17407
  l = l && !isNaN(parseFloat(l.toString())) && isFinite(l) ? l : 1;
17407
17408
  let q = 100 * B;
17408
17409
  c = q / 6 * (c || 1);
17409
- let $ = R.length * c + 80, J = q + 18 * (mb(l, R.length) + 1);
17410
+ let $ = R.length * c + 80, J = q + 18 * (vb(l, R.length) + 1);
17410
17411
  return u && ($ > J ? o = u : a = u), /* @__PURE__ */ b.jsxs(
17411
17412
  "svg",
17412
17413
  {
@@ -17416,7 +17417,7 @@ const hb = ({
17416
17417
  ref: _,
17417
17418
  children: [
17418
17419
  f && /* @__PURE__ */ b.jsx(
17419
- vb,
17420
+ pb,
17420
17421
  {
17421
17422
  minrange: l,
17422
17423
  maxrange: l + e.length,
@@ -17428,7 +17429,7 @@ const hb = ({
17428
17429
  }
17429
17430
  ),
17430
17431
  /* @__PURE__ */ b.jsx(
17431
- xb,
17432
+ _b,
17432
17433
  {
17433
17434
  transform: "translate(80," + (q + 20) + ")",
17434
17435
  n: R.length,
@@ -17437,7 +17438,7 @@ const hb = ({
17437
17438
  }
17438
17439
  ),
17439
17440
  i === Ha ? /* @__PURE__ */ b.jsx(
17440
- Eb,
17441
+ wb,
17441
17442
  {
17442
17443
  transform: "translate(0,10)",
17443
17444
  width: 65,
@@ -17445,7 +17446,7 @@ const hb = ({
17445
17446
  ticks: 2
17446
17447
  }
17447
17448
  ) : /* @__PURE__ */ b.jsx(
17448
- wb,
17449
+ xb,
17449
17450
  {
17450
17451
  transform: "translate(0,10)",
17451
17452
  width: 65,
@@ -17455,7 +17456,7 @@ const hb = ({
17455
17456
  }
17456
17457
  ),
17457
17458
  /* @__PURE__ */ b.jsx("g", { transform: "translate(80,10)", children: /* @__PURE__ */ b.jsx(
17458
- kb,
17459
+ Sb,
17459
17460
  {
17460
17461
  values: R,
17461
17462
  glyphWidth: c,
@@ -17469,26 +17470,26 @@ const hb = ({
17469
17470
  ]
17470
17471
  }
17471
17472
  );
17472
- }, Cb = [
17473
+ }, Ob = [
17473
17474
  { component: [hs], regex: ["A"], color: ["red"] },
17474
17475
  { component: [xi], regex: ["C"], color: ["blue"] },
17475
17476
  { component: [ps], regex: ["G"], color: ["orange"] },
17476
17477
  { component: [vs], regex: ["T"], color: ["#228b22"] }
17477
17478
  ];
17478
- function Lb(e) {
17479
- return /* @__PURE__ */ b.jsx(Ob, { ...e, alphabet: Cb });
17479
+ function Cb(e) {
17480
+ return /* @__PURE__ */ b.jsx(Db, { ...e, alphabet: Ob });
17480
17481
  }
17481
17482
  const cl = /* @__PURE__ */ new Map([
17482
17483
  ["A", hs],
17483
17484
  ["C", xi],
17484
17485
  ["G", ps],
17485
17486
  ["T", vs]
17486
- ]), Rb = /* @__PURE__ */ new Map([
17487
+ ]), Lb = /* @__PURE__ */ new Map([
17487
17488
  ["A", "#008800"],
17488
17489
  ["C", "#000088"],
17489
17490
  ["G", "#a89132"],
17490
17491
  ["T", "#880000"]
17491
- ]), Ib = (e) => {
17492
+ ]), Rb = (e) => {
17492
17493
  const [t, r, n] = ve(() => e.transform(e.importance), [e.transform, e.importance]);
17493
17494
  return cl.get(e.base) ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
17494
17495
  /* @__PURE__ */ b.jsx(
@@ -17507,14 +17508,14 @@ const cl = /* @__PURE__ */ new Map([
17507
17508
  }
17508
17509
  ),
17509
17510
  /* @__PURE__ */ b.jsx("g", { transform: `${n} translate(${e.x},${t}) scale(${e.xScale},${r})`, children: Ro(cl.get(e.base), {
17510
- fill: Rb.get(e.base)
17511
+ fill: Lb.get(e.base)
17511
17512
  }) })
17512
17513
  ] }) : null;
17513
- }, Mb = Fe.memo(Ib, (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);
17514
- function Ab({ data: e, annotations: t, dimensions: r, height: n, zeroLineProps: i }) {
17514
+ }, Ib = Fe.memo(Rb, (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);
17515
+ function Mb({ data: e, annotations: t, dimensions: r, height: n, zeroLineProps: i }) {
17515
17516
  if (e.length === 0 || e.importance.length === 0)
17516
17517
  return null;
17517
- const { viewWidth: a } = r, [o] = Ce(null), [s, c, u] = Hg(e, n), l = Wg(t || [], s, u), f = ve(() => a / s.length / 100, [a, s.length]), h = Ct(c, [c]), d = ve(() => l.map((m, v) => {
17518
+ const { viewWidth: a } = r, [o] = Ce(null), [s, c, u] = Wg(e, n), l = Vg(t || [], s, u), f = ve(() => a / s.length / 100, [a, s.length]), h = Ct(c, [c]), d = ve(() => l.map((m, v) => {
17518
17519
  const x = 100 * f * Math.abs(m.coordinates[1] - m.coordinates[0]), _ = Math.min(...m.coordinates) * f * 100, k = m.y + m.height, S = 80;
17519
17520
  return /* @__PURE__ */ b.jsxs(Nd, { children: [
17520
17521
  /* @__PURE__ */ b.jsx(
@@ -17547,7 +17548,7 @@ function Ab({ data: e, annotations: t, dimensions: r, height: n, zeroLineProps:
17547
17548
  }),
17548
17549
  [f, n, h]
17549
17550
  ), w = ve(() => s.map(
17550
- (m, v) => m.importance ? /* @__PURE__ */ Ro(Mb, { ...E, key: v, x: v * f * 100, ...m }) : null
17551
+ (m, v) => m.importance ? /* @__PURE__ */ Ro(Ib, { ...E, key: v, x: v * f * 100, ...m }) : null
17551
17552
  ), [s, f, n, h]), y = ve(() => c(0)[0], [c]), g = ve(() => s.filter((m) => m.importance).length > 0 ? /* @__PURE__ */ b.jsx("line", { stroke: "#ff0000", strokeWidth: 1, ...i, x1: 0, x2: a, y1: y, y2: y }) : /* @__PURE__ */ b.jsx("text", { x: 0, y: n / 2, children: "No importance track data" }), [s, a, y, n, i]);
17552
17553
  return /* @__PURE__ */ b.jsxs("g", { width: a, height: n, children: [
17553
17554
  o !== null && /* @__PURE__ */ b.jsx(
@@ -17604,9 +17605,9 @@ const kd = (e) => /* @__PURE__ */ b.jsxs("g", { transform: "translate(0, -150)",
17604
17605
  style: { filter: "drop-shadow(0px 0px 5px rgba(0,0,0,0.3))" }
17605
17606
  }
17606
17607
  ),
17607
- e.pwm && /* @__PURE__ */ b.jsx(Lb, { ppm: e.pwm, mode: "INFORMATION_CONTENT", width: e.pwm.length * 20, height: 150 })
17608
+ e.pwm && /* @__PURE__ */ b.jsx(Cb, { ppm: e.pwm, mode: "INFORMATION_CONTENT", width: e.pwm.length * 20, height: 150 })
17608
17609
  ] });
17609
- function jb({
17610
+ function Ab({
17610
17611
  id: e,
17611
17612
  data: t,
17612
17613
  height: r,
@@ -17658,7 +17659,7 @@ function jb({
17658
17659
  ))
17659
17660
  ] });
17660
17661
  }
17661
- function Nb({
17662
+ function jb({
17662
17663
  id: e,
17663
17664
  data: t,
17664
17665
  height: r,
@@ -17710,7 +17711,7 @@ function Nb({
17710
17711
  )) }, `group_${x}`))
17711
17712
  ] });
17712
17713
  }
17713
- function Pb({
17714
+ function Nb({
17714
17715
  data: e,
17715
17716
  datasets: t,
17716
17717
  id: r,
@@ -17778,7 +17779,7 @@ function Pr(e, t, r, n = !1, i) {
17778
17779
  };
17779
17780
  }
17780
17781
  function fl(e, t, r, n = !1, i) {
17781
- const a = Fb(e);
17782
+ const a = Pb(e);
17782
17783
  if (!a) return null;
17783
17784
  const { range: o, rangeSize: s } = a;
17784
17785
  let c = "";
@@ -17787,9 +17788,9 @@ function fl(e, t, r, n = !1, i) {
17787
17788
  l === 0 ? c += Ot(f.x, f.y) : c += be(f.x, f.y);
17788
17789
  }), /* @__PURE__ */ b.jsx("path", { d: c, stroke: r, fill: "none", strokeWidth: "1" });
17789
17790
  }
17790
- function Fb(e, t) {
17791
+ function Pb(e, t) {
17791
17792
  if (!e || e.length === 0) return null;
17792
- const r = { min: qb(e), max: Bb(e) }, n = r.max - r.min;
17793
+ const r = { min: Bb(e), max: Fb(e) }, n = r.max - r.min;
17793
17794
  return n <= 0 ? null : { range: r, rangeSize: n };
17794
17795
  }
17795
17796
  function Td(e, t, r, n, i) {
@@ -17799,10 +17800,10 @@ function Td(e, t, r, n, i) {
17799
17800
  y: i ? s : n - s
17800
17801
  };
17801
17802
  }
17802
- function Bb(e) {
17803
+ function Fb(e) {
17803
17804
  return Math.max(...e.map((t) => t.max));
17804
17805
  }
17805
- function qb(e) {
17806
+ function Bb(e) {
17806
17807
  return Math.min(...e.map((t) => t.min));
17807
17808
  }
17808
17809
  const Jt = {
@@ -17815,7 +17816,7 @@ const Jt = {
17815
17816
  depth: "#525252"
17816
17817
  // rgb(82, 82, 82)
17817
17818
  };
17818
- function zb({ tooltipValues: e }) {
17819
+ function qb({ tooltipValues: e }) {
17819
17820
  var u, l, f, h, d, E, w, y;
17820
17821
  const t = rt((g) => g.text), r = rt((g) => g.background), n = {
17821
17822
  depth: (u = e[3]) == null ? void 0 : u.max,
@@ -17860,7 +17861,7 @@ function zb({ tooltipValues: e }) {
17860
17861
  ] })
17861
17862
  ] });
17862
17863
  }
17863
- function Ub({ id: e, height: t, colors: r, data: n, dimensions: i, range: a, tooltip: o }) {
17864
+ function zb({ id: e, height: t, colors: r, data: n, dimensions: i, range: a, tooltip: o }) {
17864
17865
  var k, S, T, I, L, R, F, B, W, Z, q, $, J, te;
17865
17866
  const { sideWidth: s, totalWidth: c, viewWidth: u } = i, l = _e((P) => P.svgRef), f = _e((P) => P.delta), h = _e((P) => P.marginWidth), d = rt((P) => P.text), E = ve(() => {
17866
17867
  const P = t / 2;
@@ -17884,7 +17885,7 @@ function Ub({ id: e, height: t, colors: r, data: n, dimensions: i, range: a, too
17884
17885
  onClick: void 0,
17885
17886
  onHover: void 0,
17886
17887
  onLeave: void 0,
17887
- tooltip: o || zb
17888
+ tooltip: o || qb
17888
17889
  });
17889
17890
  return /* @__PURE__ */ b.jsxs("g", { width: c, height: t, clipPath: `url(#${e})`, transform: `translate(-${s}, 0)`, children: [
17890
17891
  /* @__PURE__ */ b.jsx("rect", { width: c, height: t, fill: "transparent" }),
@@ -17924,7 +17925,7 @@ function Ub({ id: e, height: t, colors: r, data: n, dimensions: i, range: a, too
17924
17925
  )
17925
17926
  ] });
17926
17927
  }
17927
- function $b({ data: e, customRange: t, id: r, height: n, color: i, dimensions: a, tooltip: o }) {
17928
+ function Ub({ data: e, customRange: t, id: r, height: n, color: i, dimensions: a, tooltip: o }) {
17928
17929
  var L;
17929
17930
  const { sideWidth: s, totalWidth: c, viewWidth: u } = a, l = _e((R) => R.svgRef), f = _e((R) => R.delta), h = _e((R) => R.marginWidth), d = rt((R) => R.background), E = ve(() => e.some((R) => R.min < 0), [e]), w = we((R) => R.editTrack), y = ve(() => {
17930
17931
  const R = e.slice(s, s + u);
@@ -17933,7 +17934,7 @@ function $b({ data: e, customRange: t, id: r, height: n, color: i, dimensions: a
17933
17934
  je(() => {
17934
17935
  w(r, { range: y });
17935
17936
  }, [r, y, w]);
17936
- const g = ve(() => Vb(e, n, i, t || y, d), [e, n, i, t, y]), { mouseState: m, updateMouseState: v, clearMouseState: x } = us(l, c, h, s), _ = ve(() => {
17937
+ const g = ve(() => $b(e, n, i, t || y, d), [e, n, i, t, y]), { mouseState: m, updateMouseState: v, clearMouseState: x } = us(l, c, h, s), _ = ve(() => {
17937
17938
  var R;
17938
17939
  return (R = m.pos) != null && R.x ? m.pos.x - h + s : 0;
17939
17940
  }, [(L = m.pos) == null ? void 0 : L.x, h, s]), k = rt((R) => R.background), S = rt((R) => R.text), { handleHover: T, handleLeave: I } = xt({
@@ -17972,7 +17973,7 @@ function $b({ data: e, customRange: t, id: r, height: n, color: i, dimensions: a
17972
17973
  )
17973
17974
  ] });
17974
17975
  }
17975
- function Vb(e, t, r, n, i) {
17976
+ function $b(e, t, r, n, i) {
17976
17977
  const a = {
17977
17978
  min: e.map((w) => w.min).reduce((w, y) => Math.min(w, y), 1 / 0),
17978
17979
  max: e.map((w) => w.max).reduce((w, y) => Math.max(w, y), -1 / 0)
@@ -18001,8 +18002,8 @@ const dl = (e, t, r, n, i) => {
18001
18002
  if (e.ldblocksnpid === "Lead") return e.rsquare;
18002
18003
  const r = e.ldblocksnpid.split(",").map((a) => a.trim()), n = e.rsquare.split(",").map((a) => a.trim()), i = r.indexOf(t);
18003
18004
  return i >= 0 && i < n.length ? n[i] : n[0] || e.rsquare;
18004
- }, Wb = (e) => e.ldblocksnpid === "Lead" ? e.rsquare : e.rsquare.split(",").map((r) => r.trim())[0] || e.rsquare, ar = (e) => e.rsquare.includes("*") || e.ldblocksnpid.includes("Lead"), Hb = (e, t) => ar(e) ? t : Wt(t, 0.3);
18005
- function Qb({ id: e, data: t, height: r, color: n, dimensions: i, show: a, showScore: o = !0, onClick: s, onHover: c, onLeave: u, tooltip: l }) {
18005
+ }, Vb = (e) => e.ldblocksnpid === "Lead" ? e.rsquare : e.rsquare.split(",").map((r) => r.trim())[0] || e.rsquare, ar = (e) => e.rsquare.includes("*") || e.ldblocksnpid.includes("Lead"), Wb = (e, t) => ar(e) ? t : Wt(t, 0.3);
18006
+ function Hb({ id: e, data: t, height: r, color: n, dimensions: i, show: a, showScore: o = !0, onClick: s, onHover: c, onLeave: u, tooltip: l }) {
18006
18007
  const { totalWidth: f, sideWidth: h } = i, d = yt((q) => q.background), E = yt((q) => q.text), w = 4, y = _e((q) => q.getExpandedDomain), g = we((q) => q.editTrack), { x: m } = Ft(f), v = r / 3, x = 2 * r / 3, _ = ve(() => {
18007
18008
  const q = y(), $ = t == null ? void 0 : t.filter((J) => {
18008
18009
  const te = J.start >= q.start, P = J.stop <= q.end, M = J.chromosome === q.chromosome;
@@ -18017,7 +18018,7 @@ function Qb({ id: e, data: t, height: r, color: n, dimensions: i, show: a, showS
18017
18018
  onClick: s,
18018
18019
  onHover: c,
18019
18020
  onLeave: u,
18020
- tooltip: l || Gb
18021
+ tooltip: l || Qb
18021
18022
  }), [I, L] = Ce(null), [R, F] = Ce([]), [B, W] = Ce([]), Z = ve(() => {
18022
18023
  const q = a || [], $ = _.filter((te) => q.includes(te.snpid));
18023
18024
  return (I ? [...$, I] : $).filter((te, P, M) => P === M.findIndex((H) => H.snpid === te.snpid));
@@ -18091,7 +18092,7 @@ function Qb({ id: e, data: t, height: r, color: n, dimensions: i, show: a, showS
18091
18092
  width: q.pixelEnd - q.pixelStart + w,
18092
18093
  x: q.pixelStart - w / 2,
18093
18094
  y: ar(q) ? -x + v : 0,
18094
- fill: Hb(q, n),
18095
+ fill: Wb(q, n),
18095
18096
  stroke: J ? E : "none",
18096
18097
  strokeWidth: J ? 1 : 0,
18097
18098
  onClick: () => {
@@ -18141,7 +18142,7 @@ function Qb({ id: e, data: t, height: r, color: n, dimensions: i, show: a, showS
18141
18142
  })
18142
18143
  ] });
18143
18144
  }
18144
- function Gb(e) {
18145
+ function Qb(e) {
18145
18146
  const t = yt((n) => n.text), r = yt((n) => n.background);
18146
18147
  return /* @__PURE__ */ b.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
18147
18148
  /* @__PURE__ */ b.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
@@ -18153,10 +18154,10 @@ function Gb(e) {
18153
18154
  "-",
18154
18155
  e.stop
18155
18156
  ] }),
18156
- /* @__PURE__ */ b.jsx("text", { fontSize: 14, x: 5, y: 48, children: ar(e) ? "Lead" : Wb(e) })
18157
+ /* @__PURE__ */ b.jsx("text", { fontSize: 14, x: 5, y: 48, children: ar(e) ? "Lead" : Vb(e) })
18157
18158
  ] });
18158
18159
  }
18159
- function Yb({
18160
+ function Gb({
18160
18161
  id: e,
18161
18162
  data: t,
18162
18163
  cutoffValue: r,
@@ -18174,7 +18175,7 @@ function Yb({
18174
18175
  onClick: c,
18175
18176
  onHover: u,
18176
18177
  onLeave: l,
18177
- tooltip: f || Xb
18178
+ tooltip: f || Yb
18178
18179
  }), _ = ve(() => {
18179
18180
  const T = t.map((L) => L.value).reduce((L, R) => Math.min(L, R), 1 / 0), I = t.map((L) => L.value).reduce((L, R) => Math.max(L, R), -1 / 0);
18180
18181
  return {
@@ -18238,7 +18239,7 @@ function Yb({
18238
18239
  ] })
18239
18240
  ] });
18240
18241
  }
18241
- function Xb(e) {
18242
+ function Yb(e) {
18242
18243
  const t = yt((n) => n.text), r = yt((n) => n.background);
18243
18244
  return /* @__PURE__ */ b.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
18244
18245
  /* @__PURE__ */ b.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
@@ -18256,7 +18257,7 @@ function Xb(e) {
18256
18257
  ] })
18257
18258
  ] });
18258
18259
  }
18259
- function Zb({
18260
+ function Xb({
18260
18261
  id: e,
18261
18262
  data: t,
18262
18263
  lead: r,
@@ -18277,7 +18278,7 @@ function Zb({
18277
18278
  onClick: s,
18278
18279
  onHover: c,
18279
18280
  onLeave: u,
18280
- tooltip: l || Kb
18281
+ tooltip: l || Zb
18281
18282
  });
18282
18283
  return /* @__PURE__ */ b.jsxs("g", { transform: `translate(-${h}, 0)`, children: [
18283
18284
  /* @__PURE__ */ b.jsx("rect", { width: f, height: i, fill: d }),
@@ -18313,7 +18314,7 @@ function Zb({
18313
18314
  )) })
18314
18315
  ] });
18315
18316
  }
18316
- function Kb(e) {
18317
+ function Zb(e) {
18317
18318
  const t = yt((n) => n.text), r = yt((n) => n.background);
18318
18319
  return /* @__PURE__ */ b.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
18319
18320
  /* @__PURE__ */ b.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
@@ -18328,49 +18329,49 @@ function Kb(e) {
18328
18329
  /* @__PURE__ */ b.jsx("text", { fontSize: 14, x: 5, y: 48, children: Number(e.value).toFixed(3) })
18329
18330
  ] });
18330
18331
  }
18331
- function Jb({ id: e }) {
18332
+ function Kb({ id: e }) {
18332
18333
  const t = we((f) => f.getTrack(e)), r = Dt((f) => f.trackData.get(e)), i = _e((f) => f.getTrackDimensions)(), a = !r || r.data === null && r.error === null, o = (r == null ? void 0 : r.error) ?? void 0, s = (r == null ? void 0 : r.data) ?? void 0, c = we((f) => f.getPrevHeights(e)), u = ve(() => `translate(0, ${c + Ue})`, [c]), l = ve(
18333
- () => t && s ? e_(t, s, i) : /* @__PURE__ */ b.jsx(b.Fragment, {}),
18334
+ () => t && s ? Jb(t, s, i) : /* @__PURE__ */ b.jsx(b.Fragment, {}),
18334
18335
  [t, s, i]
18335
18336
  );
18336
18337
  return /* @__PURE__ */ b.jsx(xd, { id: e, transform: u, error: o, loading: a, children: l });
18337
18338
  }
18338
18339
  const gs = {
18339
18340
  [xe.BigWig]: {
18340
- [st.Full]: $b,
18341
- [st.Dense]: cg
18341
+ [st.Full]: Ub,
18342
+ [st.Dense]: sg
18342
18343
  },
18343
18344
  [xe.BigBed]: {
18344
18345
  [st.Dense]: hd,
18345
- [st.Squish]: jg
18346
+ [st.Squish]: Ag
18346
18347
  },
18347
18348
  [xe.Transcript]: {
18348
- [st.Squish]: $g,
18349
- [st.Pack]: Vg
18349
+ [st.Squish]: Ug,
18350
+ [st.Pack]: $g
18350
18351
  },
18351
18352
  [xe.Motif]: {
18352
- [st.Dense]: jb,
18353
- [st.Squish]: Nb
18353
+ [st.Dense]: Ab,
18354
+ [st.Squish]: jb
18354
18355
  },
18355
18356
  [xe.Importance]: {
18356
- [st.Full]: Ab
18357
+ [st.Full]: Mb
18357
18358
  },
18358
18359
  [xe.LDTrack]: {
18359
- [st.LDBlock]: Qb,
18360
- [st.GenericLD]: Zb
18360
+ [st.LDBlock]: Hb,
18361
+ [st.GenericLD]: Xb
18361
18362
  },
18362
18363
  [xe.BulkBed]: {
18363
- [st.Full]: Pb
18364
+ [st.Full]: Nb
18364
18365
  },
18365
18366
  [xe.MethylC]: {
18366
18367
  // [DisplayMode.Combined]: CombinedMethylC,
18367
- [st.Split]: Ub
18368
+ [st.Split]: zb
18368
18369
  },
18369
18370
  [xe.Manhattan]: {
18370
- [st.Scatter]: Yb
18371
+ [st.Scatter]: Gb
18371
18372
  }
18372
18373
  };
18373
- function e_(e, t, r) {
18374
+ function Jb(e, t, r) {
18374
18375
  const n = gs[e.trackType][e.displayMode];
18375
18376
  if (!n) return null;
18376
18377
  if (e.trackType === "bulkbed") {
@@ -18382,13 +18383,13 @@ function e_(e, t, r) {
18382
18383
  }
18383
18384
  return /* @__PURE__ */ b.jsx(n, { ...e, data: t, dimensions: r });
18384
18385
  }
18385
- function t_(e, t, r) {
18386
- const n = r_(t, r), i = new Set(n), s = ["chrom chromStart chromEnd value", Array.from(i).map((u) => `${u.chrom} ${u.chromStart} ${u.chromEnd} ${u.value}`).join(`
18386
+ function e_(e, t, r) {
18387
+ const n = t_(t, r), i = new Set(n), s = ["chrom chromStart chromEnd value", Array.from(i).map((u) => `${u.chrom} ${u.chromStart} ${u.chromEnd} ${u.value}`).join(`
18387
18388
  `)].join(`
18388
18389
  `), c = document.createElement("a");
18389
18390
  c.href = "data:text/plain;charset=utf-8," + encodeURIComponent(s), c.download = `${e}.bedGraph`, c.click();
18390
18391
  }
18391
- function r_(e, t) {
18392
+ function t_(e, t) {
18392
18393
  const r = (t.end - t.start) / e.length;
18393
18394
  return e.map((n, i) => {
18394
18395
  const a = Math.floor(t.start + i * r), o = Math.floor(t.start + (i + 1) * r);
@@ -18400,8 +18401,8 @@ function r_(e, t) {
18400
18401
  };
18401
18402
  }).filter((n) => n !== null);
18402
18403
  }
18403
- function n_(e, t, r) {
18404
- const n = i_(t, r);
18404
+ function r_(e, t, r) {
18405
+ const n = n_(t, r);
18405
18406
  if (n.length === 0) return;
18406
18407
  const i = "chrom chromStart chromEnd name score strand itemRgb", a = n.map(
18407
18408
  (c) => `${c.chrom} ${c.chromStart} ${c.chromEnd} ${c.name} ${c.score} ${c.strand} ${c.itemRgb}`
@@ -18410,7 +18411,7 @@ function n_(e, t, r) {
18410
18411
  `), s = document.createElement("a");
18411
18412
  s.href = "data:text/plain;charset=utf-8," + encodeURIComponent(o), s.download = `${e}.bed`, s.click();
18412
18413
  }
18413
- function i_(e, t) {
18414
+ function n_(e, t) {
18414
18415
  return e.map((r) => {
18415
18416
  var o;
18416
18417
  const [n, i, a] = ((o = r.color) == null ? void 0 : o.match(/\d+/g)) || ["0", "0", "0"];
@@ -18425,12 +18426,12 @@ function i_(e, t) {
18425
18426
  };
18426
18427
  });
18427
18428
  }
18428
- function a_(e) {
18429
+ function i_(e) {
18429
18430
  const t = document.getElementById("browserSVG");
18430
18431
  return t ? t.querySelector(`g#wrapper-${e}`) : null;
18431
18432
  }
18432
18433
  function Dd(e, t, r = !0) {
18433
- const n = a_(e);
18434
+ const n = i_(e);
18434
18435
  if (!n) return;
18435
18436
  const i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
18436
18437
  i.setAttribute("xmlns", "http://www.w3.org/2000/svg");
@@ -18449,7 +18450,7 @@ function Dd(e, t, r = !0) {
18449
18450
  const s = new XMLSerializer().serializeToString(i), c = document.createElement("a");
18450
18451
  c.href = "data:image/svg+xml;base64," + btoa(s), c.download = `${t}.svg`, c.click();
18451
18452
  }
18452
- function o_() {
18453
+ function a_() {
18453
18454
  const e = Fr((y) => y.open), t = Fr((y) => y.id), r = Fr((y) => y.x), n = Fr((y) => y.y), i = Fr((y) => y.setContextMenu), a = Ye(null), o = we((y) => y.getTrack(t || "")), s = Dt((y) => y.trackData.get(t || "")), c = we((y) => y.editTrack), u = we((y) => y.removeTrack), [l, f] = Ce(null);
18454
18455
  if (je(() => {
18455
18456
  const y = (g) => {
@@ -18608,19 +18609,19 @@ var qn = function(e, t, r) {
18608
18609
  return Fe.createElement("div", { className: a, style: { top: 100 * i + "%", left: 100 * r + "%" } }, Fe.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: t } }));
18609
18610
  }, tt = function(e, t, r) {
18610
18611
  return t === void 0 && (t = 0), r === void 0 && (r = Math.pow(10, t)), Math.round(r * e) / r;
18611
- }, s_ = function(e) {
18612
- return d_(Do(e));
18612
+ }, o_ = function(e) {
18613
+ return f_(Do(e));
18613
18614
  }, Do = function(e) {
18614
18615
  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 ? tt(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 ? tt(parseInt(e.substring(6, 8), 16) / 255, 2) : 1 };
18616
+ }, s_ = function(e) {
18617
+ return l_(u_(e));
18615
18618
  }, c_ = function(e) {
18616
- return f_(l_(e));
18617
- }, u_ = function(e) {
18618
18619
  var t = e.s, r = e.v, n = e.a, i = (200 - t) * r / 100;
18619
18620
  return { h: tt(e.h), s: tt(i > 0 && i < 200 ? t * r / 100 / (i <= 100 ? i : 200 - i) * 100 : 0), l: tt(i / 2), a: tt(n, 2) };
18620
18621
  }, Oo = function(e) {
18621
- var t = u_(e);
18622
+ var t = c_(e);
18622
18623
  return "hsl(" + t.h + ", " + t.s + "%, " + t.l + "%)";
18623
- }, l_ = function(e) {
18624
+ }, u_ = function(e) {
18624
18625
  var t = e.h, r = e.s, n = e.v, i = e.a;
18625
18626
  t = t / 360 * 6, r /= 100, n /= 100;
18626
18627
  var a = Math.floor(t), o = n * (1 - r), s = n * (1 - (t - a) * r), c = n * (1 - (1 - t + a) * r), u = a % 6;
@@ -18628,20 +18629,20 @@ var qn = function(e, t, r) {
18628
18629
  }, oi = function(e) {
18629
18630
  var t = e.toString(16);
18630
18631
  return t.length < 2 ? "0" + t : t;
18631
- }, f_ = function(e) {
18632
+ }, l_ = function(e) {
18632
18633
  var t = e.r, r = e.g, n = e.b, i = e.a, a = i < 1 ? oi(tt(255 * i)) : "";
18633
18634
  return "#" + oi(t) + oi(r) + oi(n) + a;
18634
- }, d_ = function(e) {
18635
+ }, f_ = function(e) {
18635
18636
  var t = e.r, r = e.g, n = e.b, i = e.a, a = Math.max(t, r, n), o = a - Math.min(t, r, n), s = o ? a === t ? (r - n) / o : a === r ? 2 + (n - t) / o : 4 + (t - r) / o : 0;
18636
18637
  return { h: tt(60 * (s < 0 ? s + 6 : s)), s: tt(a ? o / a * 100 : 0), v: tt(a / 255 * 100), a: i };
18637
- }, h_ = Fe.memo(function(e) {
18638
+ }, d_ = Fe.memo(function(e) {
18638
18639
  var t = e.hue, r = e.onChange, n = ys(["react-colorful__hue", e.className]);
18639
18640
  return Fe.createElement("div", { className: n }, Fe.createElement(Cd, { onMove: function(i) {
18640
18641
  r({ h: 360 * i.left });
18641
18642
  }, onKey: function(i) {
18642
18643
  r({ h: qn(t + 360 * i.left, 0, 360) });
18643
18644
  }, "aria-label": "Hue", "aria-valuenow": tt(t), "aria-valuemax": "360", "aria-valuemin": "0" }, Fe.createElement(Ld, { className: "react-colorful__hue-pointer", left: t / 360, color: Oo({ h: t, s: 100, v: 100, a: 1 }) })));
18644
- }), p_ = Fe.memo(function(e) {
18645
+ }), h_ = Fe.memo(function(e) {
18645
18646
  var t = e.hsva, r = e.onChange, n = { backgroundColor: Oo({ h: t.h, s: 100, v: 100, a: 1 }) };
18646
18647
  return Fe.createElement("div", { className: "react-colorful__saturation", style: n }, Fe.createElement(Cd, { onMove: function(i) {
18647
18648
  r({ s: 100 * i.left, v: 100 - 100 * i.top });
@@ -18652,10 +18653,10 @@ var qn = function(e, t, r) {
18652
18653
  if (e === t) return !0;
18653
18654
  for (var r in e) if (e[r] !== t[r]) return !1;
18654
18655
  return !0;
18655
- }, v_ = function(e, t) {
18656
+ }, p_ = function(e, t) {
18656
18657
  return e.toLowerCase() === t.toLowerCase() || Rd(Do(e), Do(t));
18657
18658
  };
18658
- function m_(e, t, r) {
18659
+ function v_(e, t, r) {
18659
18660
  var n = ko(r), i = Ce(function() {
18660
18661
  return e.toHsva(t);
18661
18662
  }), a = i[0], o = i[1], s = Ye({ color: t, hsva: a });
@@ -18675,29 +18676,29 @@ function m_(e, t, r) {
18675
18676
  }, []);
18676
18677
  return [a, c];
18677
18678
  }
18678
- var g_ = typeof window < "u" ? Pd : je, y_ = function() {
18679
+ var m_ = typeof window < "u" ? Pd : je, g_ = function() {
18679
18680
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
18680
- }, ml = /* @__PURE__ */ new Map(), b_ = function(e) {
18681
- g_(function() {
18681
+ }, ml = /* @__PURE__ */ new Map(), y_ = function(e) {
18682
+ m_(function() {
18682
18683
  var t = e.current ? e.current.ownerDocument : document;
18683
18684
  if (t !== void 0 && !ml.has(t)) {
18684
18685
  var r = t.createElement("style");
18685
18686
  r.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}`, ml.set(t, r);
18686
- var n = y_();
18687
+ var n = g_();
18687
18688
  n && r.setAttribute("nonce", n), t.head.appendChild(r);
18688
18689
  }
18689
18690
  }, []);
18690
- }, __ = function(e) {
18691
+ }, b_ = function(e) {
18691
18692
  var t = e.className, r = e.colorModel, n = e.color, i = n === void 0 ? r.defaultColor : n, a = e.onChange, o = Od(e, ["className", "colorModel", "color", "onChange"]), s = Ye(null);
18692
- b_(s);
18693
- var c = m_(r, i, a), u = c[0], l = c[1], f = ys(["react-colorful", t]);
18694
- return Fe.createElement("div", Pi({}, o, { ref: s, className: f }), Fe.createElement(p_, { hsva: u, onChange: l }), Fe.createElement(h_, { hue: u.h, onChange: l, className: "react-colorful__last-control" }));
18695
- }, x_ = { defaultColor: "000", toHsva: s_, fromHsva: function(e) {
18696
- return c_({ h: e.h, s: e.s, v: e.v, a: 1 });
18697
- }, equal: v_ }, w_ = function(e) {
18698
- return Fe.createElement(__, Pi({}, e, { colorModel: x_ }));
18693
+ y_(s);
18694
+ var c = v_(r, i, a), u = c[0], l = c[1], f = ys(["react-colorful", t]);
18695
+ return Fe.createElement("div", Pi({}, o, { ref: s, className: f }), Fe.createElement(h_, { hsva: u, onChange: l }), Fe.createElement(d_, { hue: u.h, onChange: l, className: "react-colorful__last-control" }));
18696
+ }, __ = { defaultColor: "000", toHsva: o_, fromHsva: function(e) {
18697
+ return s_({ h: e.h, s: e.s, v: e.v, a: 1 });
18698
+ }, equal: p_ }, x_ = function(e) {
18699
+ return Fe.createElement(b_, Pi({}, e, { colorModel: __ }));
18699
18700
  };
18700
- function E_(e, t) {
18701
+ function w_(e, t) {
18701
18702
  const [r, n] = Ce(e);
18702
18703
  return je(() => {
18703
18704
  const i = setTimeout(() => {
@@ -18728,8 +18729,8 @@ function Qt({ title: e, children: t }) {
18728
18729
  }
18729
18730
  );
18730
18731
  }
18731
- function S_({ track: e }) {
18732
- const [t, r] = Ce(e.title), n = we((o) => o.editTrack), i = E_(t, 500);
18732
+ function E_({ track: e }) {
18733
+ const [t, r] = Ce(e.title), n = we((o) => o.editTrack), i = w_(t, 500);
18733
18734
  je(() => {
18734
18735
  n(e.id, { title: i });
18735
18736
  }, [i, n, e.id]);
@@ -18738,12 +18739,12 @@ function S_({ track: e }) {
18738
18739
  };
18739
18740
  return /* @__PURE__ */ b.jsx(Qt, { title: "", children: /* @__PURE__ */ b.jsxs("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "5px" }, children: [
18740
18741
  /* @__PURE__ */ b.jsx("div", { style: { fontWeight: "bold" }, children: "Color: " }),
18741
- /* @__PURE__ */ b.jsx(k_, { color: e.color || "", onChange: a }),
18742
+ /* @__PURE__ */ b.jsx(S_, { color: e.color || "", onChange: a }),
18742
18743
  /* @__PURE__ */ b.jsx("div", { style: { fontWeight: "bold" }, children: "Title: " }),
18743
18744
  /* @__PURE__ */ b.jsx("input", { id: "titleInput", type: "text", value: t, onChange: (o) => r(o.target.value) })
18744
18745
  ] }) });
18745
18746
  }
18746
- function k_({ color: e, onChange: t }) {
18747
+ function S_({ color: e, onChange: t }) {
18747
18748
  const [r, n] = Ce(!1), i = Ye(null);
18748
18749
  je(() => {
18749
18750
  const s = (c) => {
@@ -18769,7 +18770,7 @@ function k_({ color: e, onChange: t }) {
18769
18770
  };
18770
18771
  return /* @__PURE__ */ b.jsxs("div", { style: { position: "relative" }, children: [
18771
18772
  /* @__PURE__ */ b.jsx("div", { style: a, onClick: () => n(!r) }),
18772
- r && /* @__PURE__ */ b.jsx("div", { ref: i, style: o, children: /* @__PURE__ */ b.jsx(w_, { color: e, onChange: t }) })
18773
+ r && /* @__PURE__ */ b.jsx("div", { ref: i, style: o, children: /* @__PURE__ */ b.jsx(x_, { color: e, onChange: t }) })
18773
18774
  ] });
18774
18775
  }
18775
18776
  function wi(e) {
@@ -18783,7 +18784,7 @@ function Dn(e, t) {
18783
18784
  const a = r.toString(16).length == 1 ? "0" + r.toString(16) : r.toString(16), o = n.toString(16).length == 1 ? "0" + n.toString(16) : n.toString(16), s = i.toString(16).length == 1 ? "0" + i.toString(16) : i.toString(16);
18784
18785
  return "#" + a + o + s;
18785
18786
  }
18786
- const T_ = (e) => {
18787
+ const k_ = (e) => {
18787
18788
  const t = e.slice(1), r = parseInt(t.slice(0, 2), 16), n = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
18788
18789
  return (0.299 * r + 0.587 * n + 0.114 * i) / 255 < 0.5;
18789
18790
  };
@@ -18795,7 +18796,7 @@ function bs(e, t) {
18795
18796
  color: wi(s)
18796
18797
  };
18797
18798
  }
18798
- function D_({ id: e, trackType: t }) {
18799
+ function T_({ id: e, trackType: t }) {
18799
18800
  const r = gs[t], n = Object.keys(r), i = we((l) => l.getTrack(e)), a = i == null ? void 0 : i.displayMode, o = i == null ? void 0 : i.color, s = we((l) => l.editTrack), c = (l) => ({
18800
18801
  ...bs(o || "#000000", l),
18801
18802
  marginRight: "5px",
@@ -18808,7 +18809,7 @@ function D_({ id: e, trackType: t }) {
18808
18809
  };
18809
18810
  return i ? /* @__PURE__ */ b.jsx(Qt, { title: "Display Mode", children: /* @__PURE__ */ b.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: n.map((l) => /* @__PURE__ */ b.jsx("button", { onClick: () => u(l), style: c(l === a), children: l }, l)) }) }) : null;
18810
18811
  }
18811
- function O_({ id: e, defaultHeight: t }) {
18812
+ function D_({ id: e, defaultHeight: t }) {
18812
18813
  const r = Ye(null), n = we((v) => v.editTrack), i = we((v) => v.editAllTracksByType), a = we((v) => v.getTrack), o = we((v) => v.tracks), s = 20, c = 300, u = a(e), l = u == null ? void 0 : u.trackType, f = u == null ? void 0 : u.color, h = (v) => {
18813
18814
  const x = Number(v) < s ? s : Number(v) > c ? c : Number(v);
18814
18815
  n(e, { height: x });
@@ -18852,7 +18853,7 @@ function O_({ id: e, defaultHeight: t }) {
18852
18853
  whiteSpace: "nowrap"
18853
18854
  });
18854
18855
  return /* @__PURE__ */ b.jsx(Qt, { title: "Height", children: /* @__PURE__ */ b.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px", alignItems: "flex-start" }, children: [
18855
- /* @__PURE__ */ b.jsx(C_, { inputRef: r, defaultValue: t, validate: d, callback: h }),
18856
+ /* @__PURE__ */ b.jsx(O_, { inputRef: r, defaultValue: t, validate: d, callback: h }),
18856
18857
  y && l && /* @__PURE__ */ b.jsxs(
18857
18858
  "button",
18858
18859
  {
@@ -18868,7 +18869,7 @@ function O_({ id: e, defaultHeight: t }) {
18868
18869
  )
18869
18870
  ] }) });
18870
18871
  }
18871
- function C_({
18872
+ function O_({
18872
18873
  inputRef: e,
18873
18874
  defaultValue: t,
18874
18875
  validate: r,
@@ -18890,17 +18891,17 @@ function C_({
18890
18891
  ref: e,
18891
18892
  type: "number",
18892
18893
  step: "any",
18893
- placeholder: L_(Number(t)),
18894
+ placeholder: C_(Number(t)),
18894
18895
  onChange: o,
18895
18896
  style: { appearance: "textfield" }
18896
18897
  }
18897
18898
  );
18898
18899
  }
18899
- function L_(e) {
18900
+ function C_(e) {
18900
18901
  return Number.isNaN(e) ? "" : Number.isInteger(e) ? e.toString() : Number(e.toFixed(2)).toString();
18901
18902
  }
18902
18903
  var Co = /* @__PURE__ */ ((e) => (e[e.V29 = 29] = "V29", e[e.V40 = 40] = "V40", e[e.V47 = 47] = "V47", e))(Co || {}), Id = /* @__PURE__ */ ((e) => (e[e.V21 = 21] = "V21", e[e.V25 = 25] = "V25", e))(Id || {});
18903
- function R_({ track: e }) {
18904
+ function L_({ track: e }) {
18904
18905
  const t = we((u) => u.editTrack), [r, n] = Ce(e.version), a = _e((u) => u.getExpandedDomain)(), o = (u) => {
18905
18906
  n(u);
18906
18907
  const l = Object.values(Co).includes(u);
@@ -18934,7 +18935,7 @@ function R_({ track: e }) {
18934
18935
  l
18935
18936
  )) }) });
18936
18937
  }
18937
- function I_(e) {
18938
+ function R_(e) {
18938
18939
  return /* @__PURE__ */ b.jsx("svg", { width: e.width, height: e.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ b.jsx(
18939
18940
  "path",
18940
18941
  {
@@ -18967,16 +18968,16 @@ function Lo({
18967
18968
  ref: n,
18968
18969
  type: "number",
18969
18970
  step: "any",
18970
- placeholder: M_(Number(e)),
18971
+ placeholder: I_(Number(e)),
18971
18972
  onChange: o,
18972
18973
  style: { appearance: "textfield" }
18973
18974
  }
18974
18975
  );
18975
18976
  }
18976
- function M_(e) {
18977
+ function I_(e) {
18977
18978
  return Number.isNaN(e) ? "" : Number.isInteger(e) ? e.toString() : Number(e.toFixed(2)).toString();
18978
18979
  }
18979
- function A_({
18980
+ function M_({
18980
18981
  id: e,
18981
18982
  defaultRange: t,
18982
18983
  customRange: r
@@ -19025,10 +19026,10 @@ function A_({
19025
19026
  callback: s
19026
19027
  }
19027
19028
  ),
19028
- /* @__PURE__ */ b.jsx("button", { title: "auto scale range", onClick: () => n(e, { customRange: void 0 }), children: /* @__PURE__ */ b.jsx(I_, { fill: "#000000", width: 15, height: 15, style: { cursor: "pointer" } }) })
19029
+ /* @__PURE__ */ b.jsx("button", { title: "auto scale range", onClick: () => n(e, { customRange: void 0 }), children: /* @__PURE__ */ b.jsx(R_, { fill: "#000000", width: 15, height: 15, style: { cursor: "pointer" } }) })
19029
19030
  ] }) });
19030
19031
  }
19031
- function j_({ id: e, name: t }) {
19032
+ function A_({ id: e, name: t }) {
19032
19033
  const r = we((i) => i.editTrack), n = (i) => {
19033
19034
  r(e, { geneName: i.target.value });
19034
19035
  };
@@ -19045,9 +19046,9 @@ const Ga = {
19045
19046
  textAlign: "center",
19046
19047
  padding: "6px 12px"
19047
19048
  };
19048
- function N_({ track: e }) {
19049
- const t = _e((E) => E.getExpandedDomain), r = Dt((E) => E.trackData.get(e.id || "")), n = t(), i = e.color || "#ffffff", a = T_(i), o = Dn(i, a ? 30 : -30), s = wi(i), c = (r == null ? void 0 : r.data) ?? void 0, u = () => {
19050
- e.trackType === xe.BigWig ? t_(e.id, c, n) : e.trackType === xe.BigBed && n_(e.id, c, n);
19049
+ function j_({ track: e }) {
19050
+ const t = _e((E) => E.getExpandedDomain), r = Dt((E) => E.trackData.get(e.id || "")), n = t(), i = e.color || "#ffffff", a = k_(i), o = Dn(i, a ? 30 : -30), s = wi(i), c = (r == null ? void 0 : r.data) ?? void 0, u = () => {
19051
+ e.trackType === xe.BigWig ? e_(e.id, c, n) : e.trackType === xe.BigBed && r_(e.id, c, n);
19051
19052
  }, l = () => {
19052
19053
  Dd(e.id, e.title, !0);
19053
19054
  }, f = () => {
@@ -19110,7 +19111,7 @@ function N_({ track: e }) {
19110
19111
  ) : null
19111
19112
  ] }) }) });
19112
19113
  }
19113
- function P_({ id: e, defaultGap: t }) {
19114
+ function N_({ id: e, defaultGap: t }) {
19114
19115
  const r = we((s) => s.editTrack), n = 0, i = 20, a = (s) => {
19115
19116
  const c = Number(s) < n ? n : Number(s) > i ? i : Number(s);
19116
19117
  r(e, { gap: c });
@@ -19123,10 +19124,10 @@ function P_({ id: e, defaultGap: t }) {
19123
19124
  };
19124
19125
  return /* @__PURE__ */ b.jsx(Qt, { title: "Gap", children: /* @__PURE__ */ b.jsx(Lo, { defaultValue: t, validate: o, callback: a }) });
19125
19126
  }
19126
- function F_({ datasets: e }) {
19127
+ function P_({ datasets: e }) {
19127
19128
  return /* @__PURE__ */ b.jsx(Qt, { title: "Datasets", children: /* @__PURE__ */ b.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: e.map((t, r) => /* @__PURE__ */ b.jsx("div", { style: { fontSize: "12px", color: "#666" }, children: t.name }, r)) }) });
19128
19129
  }
19129
- function B_() {
19130
+ function F_() {
19130
19131
  const e = En((h) => h.id), t = En((h) => h.open), r = En((h) => h.closeModal), n = En((h) => h.position), i = 40, [a, o] = Ce(n), [s, c] = Ce(!1), u = (h, d) => {
19131
19132
  h.preventDefault(), o({ x: d.x, y: d.y }), c(!0);
19132
19133
  };
@@ -19179,7 +19180,7 @@ function B_() {
19179
19180
  alignItems: "center"
19180
19181
  },
19181
19182
  children: [
19182
- /* @__PURE__ */ b.jsx(z_, { handleClose: r, color: wi(l.color || "transparent") }),
19183
+ /* @__PURE__ */ b.jsx(q_, { handleClose: r, color: wi(l.color || "transparent") }),
19183
19184
  /* @__PURE__ */ b.jsx("div", { style: { margin: "10px" }, children: /* @__PURE__ */ b.jsxs("div", { style: { paddingBottom: "0px", fontSize: "1.2em", fontWeight: "bold" }, children: [
19184
19185
  "Configure",
19185
19186
  " ",
@@ -19188,26 +19189,26 @@ function B_() {
19188
19189
  ]
19189
19190
  }
19190
19191
  ),
19191
- /* @__PURE__ */ b.jsx(q_, { id: e })
19192
+ /* @__PURE__ */ b.jsx(B_, { id: e })
19192
19193
  ]
19193
19194
  }
19194
19195
  )
19195
19196
  }
19196
19197
  );
19197
19198
  }
19198
- function q_({ id: e }) {
19199
+ function B_({ id: e }) {
19199
19200
  const t = we((n) => n.getTrack(e));
19200
19201
  if (!t) return "no configuration available";
19201
19202
  const r = (() => {
19202
19203
  switch (t.trackType) {
19203
19204
  case xe.BigWig:
19204
- return /* @__PURE__ */ b.jsx(A_, { id: e, defaultRange: t.range, customRange: t.customRange });
19205
+ return /* @__PURE__ */ b.jsx(M_, { id: e, defaultRange: t.range, customRange: t.customRange });
19205
19206
  case xe.BigBed:
19206
19207
  return /* @__PURE__ */ b.jsx(b.Fragment, {});
19207
19208
  case xe.Transcript:
19208
19209
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
19209
- /* @__PURE__ */ b.jsx(R_, { track: t }),
19210
- /* @__PURE__ */ b.jsx(j_, { id: e, name: t.geneName || "" })
19210
+ /* @__PURE__ */ b.jsx(L_, { track: t }),
19211
+ /* @__PURE__ */ b.jsx(A_, { id: e, name: t.geneName || "" })
19211
19212
  ] });
19212
19213
  case xe.Motif:
19213
19214
  return /* @__PURE__ */ b.jsx(b.Fragment, {});
@@ -19217,24 +19218,24 @@ function q_({ id: e }) {
19217
19218
  return /* @__PURE__ */ b.jsx(b.Fragment, {});
19218
19219
  case xe.BulkBed:
19219
19220
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
19220
- /* @__PURE__ */ b.jsx(P_, { id: e, defaultGap: t.gap || 0 }),
19221
- /* @__PURE__ */ b.jsx(F_, { datasets: t.datasets || [] })
19221
+ /* @__PURE__ */ b.jsx(N_, { id: e, defaultGap: t.gap || 0 }),
19222
+ /* @__PURE__ */ b.jsx(P_, { datasets: t.datasets || [] })
19222
19223
  ] });
19223
19224
  default:
19224
19225
  return /* @__PURE__ */ b.jsx(b.Fragment, {});
19225
19226
  }
19226
19227
  })();
19227
19228
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
19228
- /* @__PURE__ */ b.jsx(S_, { track: t }),
19229
+ /* @__PURE__ */ b.jsx(E_, { track: t }),
19229
19230
  /* @__PURE__ */ b.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: [
19230
- /* @__PURE__ */ b.jsx(O_, { id: e, defaultHeight: t.height }),
19231
- /* @__PURE__ */ b.jsx(D_, { id: t.id, trackType: t.trackType })
19231
+ /* @__PURE__ */ b.jsx(D_, { id: e, defaultHeight: t.height }),
19232
+ /* @__PURE__ */ b.jsx(T_, { id: t.id, trackType: t.trackType })
19232
19233
  ] }),
19233
19234
  r,
19234
- /* @__PURE__ */ b.jsx(N_, { track: t })
19235
+ /* @__PURE__ */ b.jsx(j_, { track: t })
19235
19236
  ] });
19236
19237
  }
19237
- function z_({ handleClose: e, color: t }) {
19238
+ function q_({ handleClose: e, color: t }) {
19238
19239
  const r = "25px";
19239
19240
  return /* @__PURE__ */ b.jsx(
19240
19241
  "svg",
@@ -19258,7 +19259,7 @@ function z_({ handleClose: e, color: t }) {
19258
19259
  }
19259
19260
  );
19260
19261
  }
19261
- function U_() {
19262
+ function z_() {
19262
19263
  const e = zr((m) => m.content), t = zr((m) => m.x), r = zr((m) => m.y), n = zr((m) => m.show), [i, a] = Ce(0), [o, s] = Ce(0), [c, u] = Ce({ width: 0, height: 0 }), l = _e((m) => m.svgRef), f = Ye(null), h = _e((m) => m.delta), d = _e((m) => m.browserWidth), w = we((m) => m.getTotalHeight()) + Ue, y = 5, g = Ct(() => {
19263
19264
  if (!f.current || !l || !l.current) return;
19264
19265
  const m = pd(l.current, t, r), v = m[0], x = m[1], _ = f.current.getBBox(), k = _.width, S = _.height;
@@ -19280,7 +19281,7 @@ function U_() {
19280
19281
  }), () => m.disconnect();
19281
19282
  }, [n, e, t, r, d, w, l]), !n || h ? null : /* @__PURE__ */ b.jsx("g", { ref: f, id: "tooltip", transform: `translate(${i}, ${o})`, children: e });
19282
19283
  }
19283
- function $_({ children: e }) {
19284
+ function U_({ children: e }) {
19284
19285
  const t = _e((o) => o.setSvgRef), r = Ye(null), n = we((o) => o.getTotalHeight()), i = _e((o) => o.browserWidth), a = Dt((o) => o.isFetching);
19285
19286
  return je(() => {
19286
19287
  t(r);
@@ -19311,7 +19312,7 @@ function $_({ children: e }) {
19311
19312
  }
19312
19313
  );
19313
19314
  }
19314
- function V_() {
19315
+ function $_() {
19315
19316
  const e = _e((E) => E.browserWidth), t = _e((E) => E.marginWidth), r = Ue, n = we((E) => E.getTotalHeight()) + Ue, [i, a] = Ce([0, 0]), [o, s] = Ce(!1), c = _e((E) => E.svgRef), u = _e((E) => E.domain), l = _e((E) => E.setDomain), f = (E) => {
19316
19317
  if (!c || !c.current) return null;
19317
19318
  const w = gl(E, c.current);
@@ -19372,7 +19373,7 @@ function gl(e, t) {
19372
19373
  const n = t.getScreenCTM();
19373
19374
  return n ? r.matrixTransform(n.inverse()) : null;
19374
19375
  }
19375
- function W_() {
19376
+ function V_() {
19376
19377
  const e = Dt((d) => d.isFetching), t = _e((d) => d.domain), r = _e((d) => d.getExpandedDomain), [n, i] = Ce(r()), a = _e((d) => d.delta);
19377
19378
  je(() => {
19378
19379
  e || a !== 0 || i(r());
@@ -19383,7 +19384,7 @@ function W_() {
19383
19384
  /* @__PURE__ */ b.jsx("g", { id: "highlights-clipped", clipPath: "url(#highlight-clip)", children: /* @__PURE__ */ b.jsx(_d, { id: "highlights", children: o.map((d) => {
19384
19385
  let E = d.domain.chromosome;
19385
19386
  return E || (E = n.chromosome), E !== n.chromosome ? null : /* @__PURE__ */ b.jsx(
19386
- H_,
19387
+ W_,
19387
19388
  {
19388
19389
  highlight: d,
19389
19390
  totalWidth: l,
@@ -19396,14 +19397,14 @@ function W_() {
19396
19397
  }) }) })
19397
19398
  ] });
19398
19399
  }
19399
- function H_({
19400
+ function W_({
19400
19401
  highlight: e,
19401
19402
  browserDomain: t,
19402
19403
  totalHeight: r,
19403
19404
  totalWidth: n,
19404
19405
  marginWidth: i
19405
19406
  }) {
19406
- const a = e.domain, o = Q_(a, t, n);
19407
+ const a = e.domain, o = H_(a, t, n);
19407
19408
  return /* @__PURE__ */ b.jsx(
19408
19409
  "rect",
19409
19410
  {
@@ -19417,25 +19418,25 @@ function H_({
19417
19418
  }
19418
19419
  );
19419
19420
  }
19420
- function Q_(e, t, r) {
19421
+ function H_(e, t, r) {
19421
19422
  const n = t.end - t.start, i = (e.start - t.start) / n, a = (e.end - t.start) / n;
19422
19423
  return { start: i * r, end: a * r };
19423
19424
  }
19424
- function G_() {
19425
+ function Q_() {
19425
19426
  const e = we((t) => t.ids);
19426
19427
  return Ym(), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
19427
- /* @__PURE__ */ b.jsxs($_, { children: [
19428
+ /* @__PURE__ */ b.jsxs(U_, { children: [
19429
+ /* @__PURE__ */ b.jsx($_, {}),
19430
+ /* @__PURE__ */ b.jsx(xd, { id: "ruler", transform: "translate(0, 0)", loading: !1, error: void 0, children: /* @__PURE__ */ b.jsx(Sg, {}) }),
19431
+ e.map((t) => /* @__PURE__ */ b.jsx(Kb, { id: t }, t)),
19428
19432
  /* @__PURE__ */ b.jsx(V_, {}),
19429
- /* @__PURE__ */ b.jsx(xd, { id: "ruler", transform: "translate(0, 0)", loading: !1, error: void 0, children: /* @__PURE__ */ b.jsx(kg, {}) }),
19430
- e.map((t) => /* @__PURE__ */ b.jsx(Jb, { id: t }, t)),
19431
- /* @__PURE__ */ b.jsx(W_, {}),
19432
- /* @__PURE__ */ b.jsx(U_, {})
19433
+ /* @__PURE__ */ b.jsx(z_, {})
19433
19434
  ] }),
19434
- /* @__PURE__ */ b.jsx(o_, {}),
19435
- /* @__PURE__ */ b.jsx(B_, {})
19435
+ /* @__PURE__ */ b.jsx(a_, {}),
19436
+ /* @__PURE__ */ b.jsx(F_, {})
19436
19437
  ] });
19437
19438
  }
19438
- function xx({ browserStore: e, trackStore: t, externalDataStore: r }) {
19439
+ function _x({ browserStore: e, trackStore: t, externalDataStore: r }) {
19439
19440
  const n = r ?? Hd([]), i = ve(() => xl(), []), a = ve(() => wl(), []), o = ve(() => El(), []), s = ve(() => Sl(), []), c = ve(
19440
19441
  () => ({
19441
19442
  browserStore: e,
@@ -19448,10 +19449,10 @@ function xx({ browserStore: e, trackStore: t, externalDataStore: r }) {
19448
19449
  }),
19449
19450
  [e, t, n, i, a, o, s]
19450
19451
  );
19451
- return /* @__PURE__ */ b.jsx(Gd, { value: c, children: /* @__PURE__ */ b.jsx(G_, {}) });
19452
+ return /* @__PURE__ */ b.jsx(Gd, { value: c, children: /* @__PURE__ */ b.jsx(Q_, {}) });
19452
19453
  }
19453
- const wx = Md;
19454
- function Ex(e, t) {
19454
+ const xx = Md;
19455
+ function wx(e, t) {
19455
19456
  return ve(() => Md(e), t ?? []);
19456
19457
  }
19457
19458
  function Md(e) {
@@ -19513,8 +19514,8 @@ function Md(e) {
19513
19514
  }
19514
19515
  }));
19515
19516
  }
19516
- const Sx = Ad;
19517
- function kx(e, t) {
19517
+ const Ex = Ad;
19518
+ function Sx(e, t) {
19518
19519
  return ve(() => Ad(e), t ?? []);
19519
19520
  }
19520
19521
  function Ad(e = []) {
@@ -19602,31 +19603,31 @@ function Ad(e = []) {
19602
19603
  }
19603
19604
  }));
19604
19605
  }
19605
- const Y_ = "https://screen.api.wenglab.org/graphql", X_ = new zf({
19606
- link: new bf({ uri: Y_ }),
19606
+ const G_ = "https://screen.api.wenglab.org/graphql", Y_ = new zf({
19607
+ link: new bf({ uri: G_ }),
19607
19608
  cache: new Bf(),
19608
19609
  devtools: {
19609
19610
  enabled: !0,
19610
19611
  name: "Genome Browser"
19611
19612
  }
19612
19613
  });
19613
- function Tx({ children: e }) {
19614
- return /* @__PURE__ */ b.jsx(Sv, { client: X_, children: e });
19614
+ function kx({ children: e }) {
19615
+ return /* @__PURE__ */ b.jsx(Sv, { client: Y_, children: e });
19615
19616
  }
19616
- function Z_(e, t, r, n) {
19617
+ function X_(e, t, r, n) {
19617
19618
  return n ? `M ${e} ${r * 0.1} L ${e + t} ${r / 2} L ${e} ${r * 0.9}` : `M ${e + t} ${r * 0.1} L ${e} ${r / 2} L ${e + t} ${r * 0.9}`;
19618
19619
  }
19619
- function K_(e) {
19620
- return /* @__PURE__ */ b.jsx("path", { d: Z_(e.x, e.width, e.height, e.opening), fill: e.color });
19620
+ function Z_(e) {
19621
+ return /* @__PURE__ */ b.jsx("path", { d: X_(e.x, e.width, e.height, e.opening), fill: e.color });
19621
19622
  }
19622
- const J_ = /* @__PURE__ */ new Map([
19623
+ const K_ = /* @__PURE__ */ new Map([
19623
19624
  ["stalk", (e) => e.stalk],
19624
19625
  ["gvar", (e) => e.default],
19625
19626
  ["gneg", (e) => Wt(e.default, 0.9)]
19626
19627
  ]);
19627
- function ex(e) {
19628
+ function J_(e) {
19628
19629
  var r;
19629
- const t = e.type.slice(0, 4) === "gpos" ? Wt(e.colors.default, 1 - +e.type.replace(/gpos/g, "") / 100) : (r = J_.get(e.type)) == null ? void 0 : r.call(null, e.colors);
19630
+ const t = e.type.slice(0, 4) === "gpos" ? Wt(e.colors.default, 1 - +e.type.replace(/gpos/g, "") / 100) : (r = K_.get(e.type)) == null ? void 0 : r.call(null, e.colors);
19630
19631
  return t === void 0 ? null : /* @__PURE__ */ b.jsx(
19631
19632
  "rect",
19632
19633
  {
@@ -19639,8 +19640,8 @@ function ex(e) {
19639
19640
  }
19640
19641
  );
19641
19642
  }
19642
- function tx(e) {
19643
- return e.x(e.highlight.end) - e.x(e.highlight.start) < 10 ? /* @__PURE__ */ b.jsx(rx, { highlight: e.highlight, x: e.x, height: e.height }) : /* @__PURE__ */ b.jsx(
19643
+ function ex(e) {
19644
+ return e.x(e.highlight.end) - e.x(e.highlight.start) < 10 ? /* @__PURE__ */ b.jsx(tx, { highlight: e.highlight, x: e.x, height: e.height }) : /* @__PURE__ */ b.jsx(
19644
19645
  "rect",
19645
19646
  {
19646
19647
  x: e.x(e.highlight.start),
@@ -19654,14 +19655,14 @@ function tx(e) {
19654
19655
  }
19655
19656
  );
19656
19657
  }
19657
- function rx(e) {
19658
+ function tx(e) {
19658
19659
  const { highlight: t, height: r, x: n } = e, i = `M ${n(t.start) - 5} 0 L ${n(t.start)} ${r * 0.2} L ${n(t.start) + 5} 0`, a = `M ${n(t.start) - 5} ${r} L ${n(t.start)} ${r * 0.8} L ${n(t.start) + 5} ${r}`;
19659
19660
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
19660
19661
  /* @__PURE__ */ b.jsx("path", { d: i, stroke: t.color || "#ff0000", strokeWidth: 3, fill: "none" }),
19661
19662
  /* @__PURE__ */ b.jsx("path", { d: a, stroke: t.color || "#ff0000", strokeWidth: 3, fill: "none" })
19662
19663
  ] });
19663
19664
  }
19664
- const nx = Nt`
19665
+ const rx = Nt`
19665
19666
  query cytobands($assembly: String!, $chromosome: String) {
19666
19667
  cytoband(assembly: $assembly, chromosome: $chromosome) {
19667
19668
  stain
@@ -19672,21 +19673,21 @@ const nx = Nt`
19672
19673
  }
19673
19674
  }
19674
19675
  }
19675
- `, ix = {
19676
+ `, nx = {
19676
19677
  default: "#000000",
19677
19678
  centromere: "#880000",
19678
19679
  stalk: "#ff0000"
19679
19680
  };
19680
- function Dx({
19681
+ function Tx({
19681
19682
  assembly: e,
19682
19683
  currentDomain: t
19683
19684
  }) {
19684
- const i = { ...t, color: "rgba(50,50,255,0.75)" }, a = "translate(0,0)", { data: o, loading: s, error: c } = jv(nx, {
19685
+ const i = { ...t, color: "rgba(50,50,255,0.75)" }, a = "translate(0,0)", { data: o, loading: s, error: c } = jv(rx, {
19685
19686
  variables: {
19686
19687
  assembly: e,
19687
19688
  chromosome: t.chromosome || ""
19688
19689
  }
19689
- }), u = ix;
19690
+ }), u = nx;
19690
19691
  if (s)
19691
19692
  return /* @__PURE__ */ b.jsx("g", { width: 700, height: 20, children: /* @__PURE__ */ b.jsx("text", { x: "350", y: "15", textAnchor: "middle", style: { fontSize: "14px", fontFamily: "sans-serif" }, children: "Loading..." }) });
19692
19693
  if (c)
@@ -19694,7 +19695,7 @@ function Dx({
19694
19695
  "Error: ",
19695
19696
  c.message
19696
19697
  ] }) });
19697
- const l = { start: 0, end: Math.max(...o.cytoband.map((d) => d.coordinates.end)) }, f = ax(
19698
+ const l = { start: 0, end: Math.max(...o.cytoband.map((d) => d.coordinates.end)) }, f = ix(
19698
19699
  {
19699
19700
  start: l.start,
19700
19701
  end: l.end,
@@ -19707,7 +19708,7 @@ function Dx({
19707
19708
  o.cytoband.map((d, E) => {
19708
19709
  const w = f(d.coordinates.start), y = f(d.coordinates.end) - w;
19709
19710
  return d.stain === "acen" ? /* @__PURE__ */ b.jsx(
19710
- K_,
19711
+ Z_,
19711
19712
  {
19712
19713
  width: y,
19713
19714
  x: w,
@@ -19716,10 +19717,10 @@ function Dx({
19716
19717
  opening: h++ === 0
19717
19718
  },
19718
19719
  E
19719
- ) : /* @__PURE__ */ b.jsx(ex, { type: d.stain, width: y, x: w, height: 20, colors: u, opacity: 1 }, E);
19720
+ ) : /* @__PURE__ */ b.jsx(J_, { type: d.stain, width: y, x: w, height: 20, colors: u, opacity: 1 }, E);
19720
19721
  }),
19721
19722
  i ? /* @__PURE__ */ b.jsx(
19722
- tx,
19723
+ ex,
19723
19724
  {
19724
19725
  onMouseOut: () => {
19725
19726
  },
@@ -19731,29 +19732,29 @@ function Dx({
19731
19732
  ) : null
19732
19733
  ] });
19733
19734
  }
19734
- function ax(e, t) {
19735
+ function ix(e, t) {
19735
19736
  return (r) => (r - e.start) * t / (e.end - e.start);
19736
19737
  }
19737
- function Ox(e, t, r) {
19738
+ function Dx(e, t, r) {
19738
19739
  const n = r((a) => a.setTrackData), i = r((a) => a.isFetching);
19739
19740
  je(() => {
19740
19741
  i || (t.loading ? n(e, { data: null, error: null }) : t.error ? n(e, { data: null, error: t.error.message }) : t.data && n(e, { data: t.data, error: null }));
19741
19742
  }, [t.data, t.loading, t.error, i, e, n]);
19742
19743
  }
19743
19744
  export {
19744
- xx as Browser,
19745
- Dx as Cytobands,
19745
+ _x as Browser,
19746
+ Tx as Cytobands,
19746
19747
  st as DisplayMode,
19747
- Tx as GQLWrapper,
19748
- yx as Pastels,
19748
+ kx as GQLWrapper,
19749
+ gx as Pastels,
19749
19750
  xe as TrackType,
19750
- bx as Vibrant,
19751
- wx as createBrowserStore,
19752
- Ex as createBrowserStoreMemo,
19753
- cx as createDataStore,
19751
+ yx as Vibrant,
19752
+ xx as createBrowserStore,
19753
+ wx as createBrowserStoreMemo,
19754
+ sx as createDataStore,
19754
19755
  Hd as createDataStoreMemo,
19755
- Sx as createTrackStore,
19756
- kx as createTrackStoreMemo,
19757
- Ox as useCustomData
19756
+ Ex as createTrackStore,
19757
+ Sx as createTrackStoreMemo,
19758
+ Dx as useCustomData
19758
19759
  };
19759
19760
  //# sourceMappingURL=genomebrowser.es.js.map