@weng-lab/genomebrowser 1.8.6 → 1.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,7 +85,7 @@ function sc() {
85
85
  return "StrictMode";
86
86
  case _:
87
87
  return "Suspense";
88
- case g:
88
+ case m:
89
89
  return "SuspenseList";
90
90
  case j:
91
91
  return "Activity";
@@ -100,7 +100,7 @@ function sc() {
100
100
  return I.displayName || "Context";
101
101
  case y:
102
102
  return (I._context.displayName || "Context") + ".Consumer";
103
- case m:
103
+ case g:
104
104
  var G = I.render;
105
105
  return I = I.displayName, I || (I = G.displayName || G.name || "", I = I !== "" ? "ForwardRef(" + I + ")" : "ForwardRef"), I;
106
106
  case x:
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
264
264
  function b(I) {
265
265
  return typeof I == "object" && I !== null && I.$$typeof === k;
266
266
  }
267
- var v = Te, k = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), d = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), B = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, q = Array.isArray, N = console.createTask ? console.createTask : function() {
267
+ var v = Te, k = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), B = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, q = Array.isArray, N = console.createTask ? console.createTask : function() {
268
268
  return null;
269
269
  };
270
270
  v = {
@@ -442,12 +442,12 @@ function Je(e) {
442
442
  throw new Error("useTheme must be used within a Browser component");
443
443
  return t.themeStore(e);
444
444
  }
445
- var me = /* @__PURE__ */ ((e) => (e.BigWig = "bigwig", e.BigBed = "bigbed", e.Transcript = "transcript", e.Motif = "motif", e.Importance = "importance", e.LDTrack = "ldtrack", e.BulkBed = "bulkbed", e.MethylC = "methylc", e.Manhattan = "manhattan", e.Custom = "custom", e))(me || {}), Fe = /* @__PURE__ */ ((e) => (e.Full = "full", e.Dense = "dense", e.Squish = "squish", e.Pack = "pack", e.Combined = "combined", e.Split = "split", e.Scatter = "scatter", e.LDBlock = "ldblock", e.GenericLD = "genericld", e))(Fe || {});
446
- const gc = /* @__PURE__ */ new Set(["chr", "start", "end", "rest"]);
445
+ var ge = /* @__PURE__ */ ((e) => (e.BigWig = "bigwig", e.BigBed = "bigbed", e.Transcript = "transcript", e.Motif = "motif", e.Importance = "importance", e.LDTrack = "ldtrack", e.BulkBed = "bulkbed", e.MethylC = "methylc", e.Manhattan = "manhattan", e.Custom = "custom", e))(ge || {}), Fe = /* @__PURE__ */ ((e) => (e.Full = "full", e.Dense = "dense", e.Squish = "squish", e.Pack = "pack", e.Combined = "combined", e.Split = "split", e.Scatter = "scatter", e.LDBlock = "ldblock", e.GenericLD = "genericld", e))(Fe || {});
446
+ const mc = /* @__PURE__ */ new Set(["chr", "start", "end", "rest"]);
447
447
  function lh(e) {
448
448
  return rs(e), e;
449
449
  }
450
- function mc(e) {
450
+ function gc(e) {
451
451
  rs(e);
452
452
  const t = Object.entries(e);
453
453
  return (n, r, i, a) => {
@@ -472,7 +472,7 @@ function vc(e, t) {
472
472
  }
473
473
  function rs(e) {
474
474
  for (const t of Object.keys(e))
475
- if (gc.has(t))
475
+ if (mc.has(t))
476
476
  throw new Error(`BigBed schema key '${t}' is reserved`);
477
477
  }
478
478
  var pr = { exports: {} }, Dr, Ri;
@@ -512,8 +512,8 @@ function Qe() {
512
512
  return typeof FormData < "u" && _ instanceof FormData;
513
513
  }
514
514
  function o(_) {
515
- var g;
516
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? g = ArrayBuffer.isView(_) : g = _ && _.buffer && _.buffer instanceof ArrayBuffer, g;
515
+ var m;
516
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? m = ArrayBuffer.isView(_) : m = _ && _.buffer && _.buffer instanceof ArrayBuffer, m;
517
517
  }
518
518
  function s(_) {
519
519
  return typeof _ == "string";
@@ -551,26 +551,26 @@ function Qe() {
551
551
  function L() {
552
552
  return typeof navigator < "u" && navigator.product === "ReactNative" ? !1 : typeof window < "u" && typeof document < "u";
553
553
  }
554
- function y(_, g) {
554
+ function y(_, m) {
555
555
  if (!(_ === null || typeof _ > "u"))
556
556
  if (typeof _ != "object" && (_ = [_]), r(_))
557
557
  for (var x = 0, C = _.length; x < C; x++)
558
- g.call(null, _[x], x, _);
558
+ m.call(null, _[x], x, _);
559
559
  else
560
560
  for (var j in _)
561
- Object.prototype.hasOwnProperty.call(_, j) && g.call(null, _[j], j, _);
561
+ Object.prototype.hasOwnProperty.call(_, j) && m.call(null, _[j], j, _);
562
562
  }
563
563
  function d() {
564
564
  var _ = {};
565
- function g(j, M) {
565
+ function m(j, M) {
566
566
  typeof _[M] == "object" && typeof j == "object" ? _[M] = d(_[M], j) : _[M] = j;
567
567
  }
568
568
  for (var x = 0, C = arguments.length; x < C; x++)
569
- y(arguments[x], g);
569
+ y(arguments[x], m);
570
570
  return _;
571
571
  }
572
- function m(_, g, x) {
573
- return y(g, function(j, M) {
572
+ function g(_, m, x) {
573
+ return y(m, function(j, M) {
574
574
  x && typeof j == "function" ? _[M] = e(j, x) : _[M] = j;
575
575
  }), _;
576
576
  }
@@ -593,7 +593,7 @@ function Qe() {
593
593
  isStandardBrowserEnv: L,
594
594
  forEach: y,
595
595
  merge: d,
596
- extend: m,
596
+ extend: g,
597
597
  trim: E
598
598
  }, Mr;
599
599
  }
@@ -792,7 +792,7 @@ function zi() {
792
792
  }
793
793
  if (v.open(s.method.toUpperCase(), n(s.url, s.params, s.paramsSerializer), !0), v.timeout = s.timeout, v.onreadystatechange = function() {
794
794
  if (!(!v || v.readyState !== 4) && !(v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0))) {
795
- var y = "getAllResponseHeaders" in v ? r(v.getAllResponseHeaders()) : null, d = !s.responseType || s.responseType === "text" ? v.responseText : v.response, m = {
795
+ var y = "getAllResponseHeaders" in v ? r(v.getAllResponseHeaders()) : null, d = !s.responseType || s.responseType === "text" ? v.responseText : v.response, g = {
796
796
  data: d,
797
797
  status: v.status,
798
798
  statusText: v.statusText,
@@ -800,7 +800,7 @@ function zi() {
800
800
  config: s,
801
801
  request: v
802
802
  };
803
- t(u, p, m), v = null;
803
+ t(u, p, g), v = null;
804
804
  }
805
805
  }, v.onerror = function() {
806
806
  p(a("Network Error", s, null, v)), v = null;
@@ -1166,15 +1166,15 @@ function ur() {
1166
1166
  function E(d) {
1167
1167
  try {
1168
1168
  y(v.next(d));
1169
- } catch (m) {
1170
- w(m);
1169
+ } catch (g) {
1170
+ w(g);
1171
1171
  }
1172
1172
  }
1173
1173
  function L(d) {
1174
1174
  try {
1175
1175
  y(v.throw(d));
1176
- } catch (m) {
1177
- w(m);
1176
+ } catch (g) {
1177
+ w(g);
1178
1178
  }
1179
1179
  }
1180
1180
  function y(d) {
@@ -1326,28 +1326,28 @@ function ss() {
1326
1326
  if (na) return ze;
1327
1327
  na = 1;
1328
1328
  var e = ze && ze.__awaiter || function(E, L, y, d) {
1329
- function m(_) {
1330
- return _ instanceof y ? _ : new y(function(g) {
1331
- g(_);
1329
+ function g(_) {
1330
+ return _ instanceof y ? _ : new y(function(m) {
1331
+ m(_);
1332
1332
  });
1333
1333
  }
1334
- return new (y || (y = Promise))(function(_, g) {
1334
+ return new (y || (y = Promise))(function(_, m) {
1335
1335
  function x(M) {
1336
1336
  try {
1337
1337
  j(d.next(M));
1338
1338
  } catch (B) {
1339
- g(B);
1339
+ m(B);
1340
1340
  }
1341
1341
  }
1342
1342
  function C(M) {
1343
1343
  try {
1344
1344
  j(d.throw(M));
1345
1345
  } catch (B) {
1346
- g(B);
1346
+ m(B);
1347
1347
  }
1348
1348
  }
1349
1349
  function j(M) {
1350
- M.done ? _(M.value) : m(M.value).then(x, C);
1350
+ M.done ? _(M.value) : g(M.value).then(x, C);
1351
1351
  }
1352
1352
  j((d = d.apply(E, L || [])).next());
1353
1353
  });
@@ -1376,9 +1376,9 @@ function ss() {
1376
1376
  return e(this, void 0, void 0, function* () {
1377
1377
  let y = new t.BufferedDataLoader(E, a);
1378
1378
  const d = yield y.load(0, s);
1379
- let m = new n.BinaryParser(d, L);
1380
- m.getUInt();
1381
- let _ = m.getUInt(), g = m.getUInt(), x = m.getUInt();
1379
+ let g = new n.BinaryParser(d, L);
1380
+ g.getUInt();
1381
+ let _ = g.getUInt(), m = g.getUInt(), x = g.getUInt();
1382
1382
  if (_ !== 0 || x !== 0)
1383
1383
  throw new t.FileFormatError("Unable to determine file type: invalid version or reserved header byte.");
1384
1384
  let C = {
@@ -1386,7 +1386,7 @@ function ss() {
1386
1386
  littleEndian: L,
1387
1387
  fileType: r.FileType.TwoBit
1388
1388
  }, j = s;
1389
- for (let M = 0; M < g; ++M) {
1389
+ for (let M = 0; M < m; ++M) {
1390
1390
  let B = yield y.load(j, 4), A = new n.BinaryParser(B, L), q = A.getByte();
1391
1391
  j += 1, B = yield y.load(j, q + 4), A = new n.BinaryParser(B, L), C.sequences[A.getString(q)] = A.getUInt(), j += q + 4;
1392
1392
  }
@@ -1399,7 +1399,7 @@ function ss() {
1399
1399
  let d = new t.BufferedDataLoader(E, o);
1400
1400
  if (L.sequences[y] === void 0)
1401
1401
  throw new t.DataMissingError(y);
1402
- let m = yield d.load(L.sequences[y], 8), _ = new n.BinaryParser(m, L.littleEndian), g = L.sequences[y] + 8, x = {
1402
+ let g = yield d.load(L.sequences[y], 8), _ = new n.BinaryParser(g, L.littleEndian), m = L.sequences[y] + 8, x = {
1403
1403
  dnaSize: _.getUInt(),
1404
1404
  nBlockCount: _.getUInt(),
1405
1405
  nBlockStarts: [],
@@ -1410,17 +1410,17 @@ function ss() {
1410
1410
  reserved: 0,
1411
1411
  offset: 0
1412
1412
  };
1413
- m = yield d.load(g, x.nBlockCount * 8 + 4), g += x.nBlockCount * 8 + 4, _ = new n.BinaryParser(m, L.littleEndian);
1413
+ g = yield d.load(m, x.nBlockCount * 8 + 4), m += x.nBlockCount * 8 + 4, _ = new n.BinaryParser(g, L.littleEndian);
1414
1414
  for (let C = 0; C < x.nBlockCount; ++C)
1415
1415
  x.nBlockStarts.push(_.getUInt());
1416
1416
  for (let C = 0; C < x.nBlockCount; ++C)
1417
1417
  x.nBlockSizes.push(_.getUInt());
1418
- x.maskBlockCount = _.getUInt(), m = yield d.load(g, x.maskBlockCount * 8 + 4), g += x.maskBlockCount * 8 + 4, _ = new n.BinaryParser(m, L.littleEndian);
1418
+ x.maskBlockCount = _.getUInt(), g = yield d.load(m, x.maskBlockCount * 8 + 4), m += x.maskBlockCount * 8 + 4, _ = new n.BinaryParser(g, L.littleEndian);
1419
1419
  for (let C = 0; C < x.maskBlockCount; ++C)
1420
1420
  x.maskBlockStarts.push(_.getUInt());
1421
1421
  for (let C = 0; C < x.maskBlockCount; ++C)
1422
1422
  x.maskBlockSizes.push(_.getUInt());
1423
- return x.reserved = _.getUInt(), x.offset = g, x;
1423
+ return x.reserved = _.getUInt(), x.offset = m, x;
1424
1424
  });
1425
1425
  }
1426
1426
  ze.loadSequenceRecord = b;
@@ -1430,15 +1430,15 @@ function ss() {
1430
1430
  L += "N";
1431
1431
  return L;
1432
1432
  }
1433
- function k(E, L, y, d, m, _ = 1024, g = !1) {
1433
+ function k(E, L, y, d, g, _ = 1024, m = !1) {
1434
1434
  return e(this, void 0, void 0, function* () {
1435
- const x = Math.ceil((m - d) / 4) + 1, C = new t.BufferedDataLoader(E, x, !0), j = new i.Readable({ read() {
1435
+ const x = Math.ceil((g - d) / 4) + 1, C = new t.BufferedDataLoader(E, x, !0), j = new i.Readable({ read() {
1436
1436
  }, encoding: "utf8" }), M = new i.Readable({ read() {
1437
1437
  }, objectMode: !0 });
1438
1438
  let B = d;
1439
- for (; B < m; ) {
1439
+ for (; B < g; ) {
1440
1440
  let A = B + _ - 1;
1441
- if (A >= m && (A = m), g) {
1441
+ if (A >= g && (A = g), m) {
1442
1442
  const q = yield D(C, L, y, B, A);
1443
1443
  M.push(q);
1444
1444
  } else {
@@ -1447,43 +1447,43 @@ function ss() {
1447
1447
  }
1448
1448
  B = A + 1;
1449
1449
  }
1450
- return g ? (M.push(null), M) : (j.push(null), j);
1450
+ return m ? (M.push(null), M) : (j.push(null), j);
1451
1451
  });
1452
1452
  }
1453
1453
  ze.streamSequence = k;
1454
- function D(E, L, y, d, m) {
1454
+ function D(E, L, y, d, g) {
1455
1455
  return e(this, void 0, void 0, function* () {
1456
- const _ = yield w(E, L, y, d, m);
1457
- let g = [];
1456
+ const _ = yield w(E, L, y, d, g);
1457
+ let m = [];
1458
1458
  for (let x of _)
1459
- g.push(u[x]);
1460
- return g;
1459
+ m.push(u[x]);
1460
+ return m;
1461
1461
  });
1462
1462
  }
1463
1463
  ze.loadOneHotEncodingFromSequence = D;
1464
- function w(E, L, y, d, m) {
1464
+ function w(E, L, y, d, g) {
1465
1465
  return e(this, void 0, void 0, function* () {
1466
- let _ = [], g = [], x = "";
1466
+ let _ = [], m = [], x = "";
1467
1467
  d = d - 1 < 0 ? 0 : d - 1;
1468
- for (let B = 0; B < y.nBlockStarts.length && !(y.nBlockStarts[B] > m); ++B)
1468
+ for (let B = 0; B < y.nBlockStarts.length && !(y.nBlockStarts[B] > g); ++B)
1469
1469
  y.nBlockStarts[B] + y.nBlockSizes[B] < d || _.push({
1470
1470
  start: y.nBlockStarts[B],
1471
1471
  size: y.nBlockSizes[B]
1472
1472
  });
1473
- for (let B = 0; B < y.maskBlockStarts.length && !(y.nBlockStarts[B] > m); ++B)
1474
- y.nBlockStarts[B] + y.nBlockSizes[B] < d || g.push({
1473
+ for (let B = 0; B < y.maskBlockStarts.length && !(y.nBlockStarts[B] > g); ++B)
1474
+ y.nBlockStarts[B] + y.nBlockSizes[B] < d || m.push({
1475
1475
  start: y.maskBlockStarts[B],
1476
1476
  size: y.maskBlockSizes[B]
1477
1477
  });
1478
- let C = Math.ceil((m - d) / 4 + Math.ceil(d % 4 / 4)), j = yield E.load(Math.floor(d / 4) + y.offset, C), M = new n.BinaryParser(j, L.littleEndian);
1478
+ let C = Math.ceil((g - d) / 4 + Math.ceil(d % 4 / 4)), j = yield E.load(Math.floor(d / 4) + y.offset, C), M = new n.BinaryParser(j, L.littleEndian);
1479
1479
  for (let B = 0; B < C; ++B)
1480
1480
  x += p(M.getByte());
1481
- return x = x.substring(d % 4, d % 4 + m - d), _.forEach((B, A) => {
1481
+ return x = x.substring(d % 4, d % 4 + g - d), _.forEach((B, A) => {
1482
1482
  let q = B.start + B.size;
1483
- A === 0 && B.start <= d ? x = v((q <= m ? q : m) - d) + x.substring((q < m ? q : m) - d) : x = x.substring(0, B.start - d) + v((q <= m ? q : m) - B.start) + x.substring((q < m ? q : m) - d);
1484
- }), g.forEach((B, A) => {
1483
+ A === 0 && B.start <= d ? x = v((q <= g ? q : g) - d) + x.substring((q < g ? q : g) - d) : x = x.substring(0, B.start - d) + v((q <= g ? q : g) - B.start) + x.substring((q < g ? q : g) - d);
1484
+ }), m.forEach((B, A) => {
1485
1485
  let q = B.start + B.size;
1486
- A === 0 && B.start <= d ? x = x.substring(0, (q <= m ? q : m) - d).toLowerCase() + x.substring((q < m ? q : m) - d) : x = x.substring(0, B.start - d) + x.substring(B.start - d, (q <= m ? q : m) - d).toLowerCase() + x.substring((q < m ? q : m) - d);
1486
+ A === 0 && B.start <= d ? x = x.substring(0, (q <= g ? q : g) - d).toLowerCase() + x.substring((q < g ? q : g) - d) : x = x.substring(0, B.start - d) + x.substring(B.start - d, (q <= g ? q : g) - d).toLowerCase() + x.substring((q < g ? q : g) - d);
1487
1487
  }), x;
1488
1488
  });
1489
1489
  }
@@ -1493,13 +1493,13 @@ var ia;
1493
1493
  function ci() {
1494
1494
  return ia || (ia = 1, (function(e) {
1495
1495
  var t = Zt && Zt.__awaiter || function(w, E, L, y) {
1496
- function d(m) {
1497
- return m instanceof L ? m : new L(function(_) {
1498
- _(m);
1496
+ function d(g) {
1497
+ return g instanceof L ? g : new L(function(_) {
1498
+ _(g);
1499
1499
  });
1500
1500
  }
1501
- return new (L || (L = Promise))(function(m, _) {
1502
- function g(j) {
1501
+ return new (L || (L = Promise))(function(g, _) {
1502
+ function m(j) {
1503
1503
  try {
1504
1504
  C(y.next(j));
1505
1505
  } catch (M) {
@@ -1514,7 +1514,7 @@ function ci() {
1514
1514
  }
1515
1515
  }
1516
1516
  function C(j) {
1517
- j.done ? m(j.value) : d(j.value).then(g, x);
1517
+ j.done ? g(j.value) : d(j.value).then(m, x);
1518
1518
  }
1519
1519
  C((y = y.apply(w, E || [])).next());
1520
1520
  });
@@ -1528,19 +1528,19 @@ function ci() {
1528
1528
  function v(w) {
1529
1529
  return t(this, void 0, void 0, function* () {
1530
1530
  const E = yield w.load(0, h);
1531
- let L, y = !0, d = new n.BinaryParser(E, y), m = d.getUInt();
1532
- if (o === m)
1531
+ let L, y = !0, d = new n.BinaryParser(E, y), g = d.getUInt();
1532
+ if (o === g)
1533
1533
  L = b.BigWig;
1534
- else if (c === m)
1534
+ else if (c === g)
1535
1535
  L = b.BigBed;
1536
1536
  else {
1537
- if (i === m)
1537
+ if (i === g)
1538
1538
  return r.loadTwoBitHeaderData(w, y);
1539
- if (y = !1, d = new n.BinaryParser(E, y), m = d.getUInt(), s === m)
1539
+ if (y = !1, d = new n.BinaryParser(E, y), g = d.getUInt(), s === g)
1540
1540
  L = b.BigWig;
1541
- else if (u === m)
1541
+ else if (u === g)
1542
1542
  L = b.BigBed;
1543
- else if (a === m)
1543
+ else if (a === g)
1544
1544
  return r.loadTwoBitHeaderData(w, y);
1545
1545
  }
1546
1546
  if (L === void 0)
@@ -1557,8 +1557,8 @@ function ci() {
1557
1557
  totalSummaryOffset: d.getLong(),
1558
1558
  uncompressBuffSize: d.getInt(),
1559
1559
  reserved: d.getLong()
1560
- }, g = yield w.load(h, _.fullDataOffset - h + 5), x = [];
1561
- d = new n.BinaryParser(g);
1560
+ }, m = yield w.load(h, _.fullDataOffset - h + 5), x = [];
1561
+ d = new n.BinaryParser(m);
1562
1562
  for (let B = 1; B <= _.nZoomLevels; B++) {
1563
1563
  const A = _.nZoomLevels - B, q = {
1564
1564
  index: A,
@@ -1620,14 +1620,14 @@ function ci() {
1620
1620
  y !== void 0 && (E.position = y);
1621
1621
  const d = E.getByte();
1622
1622
  E.position++;
1623
- const m = E.getUShort();
1623
+ const g = E.getUShort();
1624
1624
  if (d === 1)
1625
- for (let _ = 0; _ < m; _++) {
1626
- const g = E.getFixedLengthTrimmedString(w.keySize), x = E.getInt(), C = E.getInt();
1627
- w.chromToId[g] = x, w.idToChrom[x] = g, w.chromSize[g] = C;
1625
+ for (let _ = 0; _ < g; _++) {
1626
+ const m = E.getFixedLengthTrimmedString(w.keySize), x = E.getInt(), C = E.getInt();
1627
+ w.chromToId[m] = x, w.idToChrom[x] = m, w.chromSize[m] = C;
1628
1628
  }
1629
1629
  else
1630
- for (let _ = 0; _ < m; _++) {
1630
+ for (let _ = 0; _ < g; _++) {
1631
1631
  E.getFixedLengthTrimmedString(w.keySize);
1632
1632
  const x = E.getLong() - L, C = E.position;
1633
1633
  D(w, E, L, x), E.position = C;
@@ -1742,7 +1742,7 @@ function zc() {
1742
1742
  for (var Z = R.length; --Z >= 0; )
1743
1743
  R[Z] = 0;
1744
1744
  }
1745
- var o = 0, s = 1, c = 2, u = 3, p = 258, h = 29, b = 256, v = b + 1 + h, k = 30, D = 19, w = 2 * v + 1, E = 15, L = 16, y = 7, d = 256, m = 16, _ = 17, g = 18, x = (
1745
+ var o = 0, s = 1, c = 2, u = 3, p = 258, h = 29, b = 256, v = b + 1 + h, k = 30, D = 19, w = 2 * v + 1, E = 15, L = 16, y = 7, d = 256, g = 16, _ = 17, m = 18, x = (
1746
1746
  /* extra bits for each length code */
1747
1747
  [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]
1748
1748
  ), C = (
@@ -1923,9 +1923,9 @@ function zc() {
1923
1923
  function Pt(R, Z, ee) {
1924
1924
  var se, P = -1, H, S = Z[1], X = 0, pe = 7, l = 4;
1925
1925
  for (S === 0 && (pe = 138, l = 3), Z[(ee + 1) * 2 + 1] = 65535, se = 0; se <= ee; se++)
1926
- H = S, S = Z[(se + 1) * 2 + 1], !(++X < pe && H === S) && (X < l ? R.bl_tree[H * 2] += X : H !== 0 ? (H !== P && R.bl_tree[H * 2]++, R.bl_tree[m * 2]++) : X <= 10 ? R.bl_tree[_ * 2]++ : R.bl_tree[g * 2]++, X = 0, P = H, S === 0 ? (pe = 138, l = 3) : H === S ? (pe = 6, l = 3) : (pe = 7, l = 4));
1926
+ H = S, S = Z[(se + 1) * 2 + 1], !(++X < pe && H === S) && (X < l ? R.bl_tree[H * 2] += X : H !== 0 ? (H !== P && R.bl_tree[H * 2]++, R.bl_tree[g * 2]++) : X <= 10 ? R.bl_tree[_ * 2]++ : R.bl_tree[m * 2]++, X = 0, P = H, S === 0 ? (pe = 138, l = 3) : H === S ? (pe = 6, l = 3) : (pe = 7, l = 4));
1927
1927
  }
1928
- function mt(R, Z, ee) {
1928
+ function gt(R, Z, ee) {
1929
1929
  var se, P = -1, H, S = Z[1], X = 0, pe = 7, l = 4;
1930
1930
  for (S === 0 && (pe = 138, l = 3), se = 0; se <= ee; se++)
1931
1931
  if (H = S, S = Z[(se + 1) * 2 + 1], !(++X < pe && H === S)) {
@@ -1933,7 +1933,7 @@ function zc() {
1933
1933
  do
1934
1934
  J(R, H, R.bl_tree);
1935
1935
  while (--X !== 0);
1936
- else H !== 0 ? (H !== P && (J(R, H, R.bl_tree), X--), J(R, m, R.bl_tree), Y(R, X - 3, 2)) : X <= 10 ? (J(R, _, R.bl_tree), Y(R, X - 3, 3)) : (J(R, g, R.bl_tree), Y(R, X - 11, 7));
1936
+ else H !== 0 ? (H !== P && (J(R, H, R.bl_tree), X--), J(R, g, R.bl_tree), Y(R, X - 3, 2)) : X <= 10 ? (J(R, _, R.bl_tree), Y(R, X - 3, 3)) : (J(R, m, R.bl_tree), Y(R, X - 11, 7));
1937
1937
  X = 0, P = H, S === 0 ? (pe = 138, l = 3) : H === S ? (pe = 6, l = 3) : (pe = 7, l = 4);
1938
1938
  }
1939
1939
  }
@@ -1947,7 +1947,7 @@ function zc() {
1947
1947
  var P;
1948
1948
  for (Y(R, Z - 257, 5), Y(R, ee - 1, 5), Y(R, se - 4, 4), P = 0; P < se; P++)
1949
1949
  Y(R, R.bl_tree[M[P] * 2 + 1], 3);
1950
- mt(R, R.dyn_ltree, Z - 1), mt(R, R.dyn_dtree, ee - 1);
1950
+ gt(R, R.dyn_ltree, Z - 1), gt(R, R.dyn_dtree, ee - 1);
1951
1951
  }
1952
1952
  function vt(R) {
1953
1953
  var Z = 4093624447, ee;
@@ -2046,7 +2046,7 @@ var fa;
2046
2046
  function Fc() {
2047
2047
  if (fa) return rt;
2048
2048
  fa = 1;
2049
- var e = kt(), t = zc(), n = cs(), r = ls(), i = li(), a = 0, o = 1, s = 3, c = 4, u = 5, p = 0, h = 1, b = -2, v = -3, k = -5, D = -1, w = 1, E = 2, L = 3, y = 4, d = 0, m = 2, _ = 8, g = 9, x = 15, C = 8, j = 29, M = 256, B = M + 1 + j, A = 30, q = 19, N = 2 * B + 1, V = 15, W = 3, ae = 258, ne = ae + W + 1, F = 32, I = 42, G = 69, K = 73, te = 91, le = 103, Y = 113, J = 666, re = 1, de = 2, ue = 3, ke = 4, Q = 3;
2049
+ var e = kt(), t = zc(), n = cs(), r = ls(), i = li(), a = 0, o = 1, s = 3, c = 4, u = 5, p = 0, h = 1, b = -2, v = -3, k = -5, D = -1, w = 1, E = 2, L = 3, y = 4, d = 0, g = 2, _ = 8, m = 9, x = 15, C = 8, j = 29, M = 256, B = M + 1 + j, A = 30, q = 19, N = 2 * B + 1, V = 15, W = 3, ae = 258, ne = ae + W + 1, F = 32, I = 42, G = 69, K = 73, te = 91, le = 103, Y = 113, J = 666, re = 1, de = 2, ue = 3, ke = 4, Q = 3;
2050
2050
  function Le(l, z) {
2051
2051
  return l.msg = i[z], z;
2052
2052
  }
@@ -2074,7 +2074,7 @@ function Fc() {
2074
2074
  var O = l.avail_in;
2075
2075
  return O > T && (O = T), O === 0 ? 0 : (l.avail_in -= O, e.arraySet(z, l.input, l.next_in, O, U), l.state.wrap === 1 ? l.adler = n(l.adler, z, O, U) : l.state.wrap === 2 && (l.adler = r(l.adler, z, O, U)), l.next_in += O, l.total_in += O, O);
2076
2076
  }
2077
- function mt(l, z) {
2077
+ function gt(l, z) {
2078
2078
  var U = l.max_chain_length, T = l.strstart, O, $, he = l.prev_length, ie = l.nice_match, oe = l.strstart > l.w_size - ne ? l.strstart - (l.w_size - ne) : 0, ye = l.window, ut = l.w_mask, Re = l.prev, _e = l.strstart + ae, Be = ye[T + he - 1], qe = ye[T + he];
2079
2079
  l.prev_length >= l.good_match && (U >>= 2), ie > l.lookahead && (ie = l.lookahead);
2080
2080
  do
@@ -2137,7 +2137,7 @@ function Fc() {
2137
2137
  if (l.lookahead === 0)
2138
2138
  break;
2139
2139
  }
2140
- if (U = 0, l.lookahead >= W && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[l.strstart + W - 1]) & l.hash_mask, U = l.prev[l.strstart & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = l.strstart), U !== 0 && l.strstart - U <= l.w_size - ne && (l.match_length = mt(l, U)), l.match_length >= W)
2140
+ if (U = 0, l.lookahead >= W && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[l.strstart + W - 1]) & l.hash_mask, U = l.prev[l.strstart & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = l.strstart), U !== 0 && l.strstart - U <= l.w_size - ne && (l.match_length = gt(l, U)), l.match_length >= W)
2141
2141
  if (T = t._tr_tally(l, l.strstart - l.match_start, l.match_length - W), l.lookahead -= l.match_length, l.match_length <= l.max_lazy_match && l.lookahead >= W) {
2142
2142
  l.match_length--;
2143
2143
  do
@@ -2161,7 +2161,7 @@ function Fc() {
2161
2161
  if (l.lookahead === 0)
2162
2162
  break;
2163
2163
  }
2164
- if (U = 0, l.lookahead >= W && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[l.strstart + W - 1]) & l.hash_mask, U = l.prev[l.strstart & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = l.strstart), l.prev_length = l.match_length, l.prev_match = l.match_start, l.match_length = W - 1, U !== 0 && l.prev_length < l.max_lazy_match && l.strstart - U <= l.w_size - ne && (l.match_length = mt(l, U), l.match_length <= 5 && (l.strategy === w || l.match_length === W && l.strstart - l.match_start > 4096) && (l.match_length = W - 1)), l.prev_length >= W && l.match_length <= l.prev_length) {
2164
+ if (U = 0, l.lookahead >= W && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[l.strstart + W - 1]) & l.hash_mask, U = l.prev[l.strstart & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = l.strstart), l.prev_length = l.match_length, l.prev_match = l.match_start, l.match_length = W - 1, U !== 0 && l.prev_length < l.max_lazy_match && l.strstart - U <= l.w_size - ne && (l.match_length = gt(l, U), l.match_length <= 5 && (l.strategy === w || l.match_length === W && l.strstart - l.match_start > 4096) && (l.match_length = W - 1)), l.prev_length >= W && l.match_length <= l.prev_length) {
2165
2165
  O = l.strstart + l.lookahead - W, T = t._tr_tally(l, l.strstart - 1 - l.prev_match, l.prev_length - W), l.lookahead -= l.prev_length - 1, l.prev_length -= 2;
2166
2166
  do
2167
2167
  ++l.strstart <= O && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[l.strstart + W - 1]) & l.hash_mask, U = l.prev[l.strstart & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = l.strstart);
@@ -2243,7 +2243,7 @@ function Fc() {
2243
2243
  }
2244
2244
  function Z(l) {
2245
2245
  var z;
2246
- return !l || !l.state ? Le(l, b) : (l.total_in = l.total_out = 0, l.data_type = m, z = l.state, z.pending = 0, z.pending_out = 0, z.wrap < 0 && (z.wrap = -z.wrap), z.status = z.wrap ? I : Y, l.adler = z.wrap === 2 ? 0 : 1, z.last_flush = a, t._tr_init(z), p);
2246
+ return !l || !l.state ? Le(l, b) : (l.total_in = l.total_out = 0, l.data_type = g, z = l.state, z.pending = 0, z.pending_out = 0, z.wrap < 0 && (z.wrap = -z.wrap), z.status = z.wrap ? I : Y, l.adler = z.wrap === 2 ? 0 : 1, z.last_flush = a, t._tr_init(z), p);
2247
2247
  }
2248
2248
  function ee(l) {
2249
2249
  var z = Z(l);
@@ -2256,7 +2256,7 @@ function Fc() {
2256
2256
  if (!l)
2257
2257
  return b;
2258
2258
  var he = 1;
2259
- if (z === D && (z = 6), T < 0 ? (he = 0, T = -T) : T > 15 && (he = 2, T -= 16), O < 1 || O > g || U !== _ || T < 8 || T > 15 || z < 0 || z > 9 || $ < 0 || $ > y)
2259
+ if (z === D && (z = 6), T < 0 ? (he = 0, T = -T) : T > 15 && (he = 2, T -= 16), O < 1 || O > m || U !== _ || T < 8 || T > 15 || z < 0 || z > 9 || $ < 0 || $ > y)
2260
2260
  return Le(l, b);
2261
2261
  T === 8 && (T = 9);
2262
2262
  var ie = new R();
@@ -2452,23 +2452,23 @@ function Uc() {
2452
2452
  if (d !== c)
2453
2453
  throw new Error(r[d]);
2454
2454
  if (y.header && e.deflateSetHeader(this.strm, y.header), y.dictionary) {
2455
- var m;
2456
- if (typeof y.dictionary == "string" ? m = n.string2buf(y.dictionary) : a.call(y.dictionary) === "[object ArrayBuffer]" ? m = new Uint8Array(y.dictionary) : m = y.dictionary, d = e.deflateSetDictionary(this.strm, m), d !== c)
2455
+ var g;
2456
+ if (typeof y.dictionary == "string" ? g = n.string2buf(y.dictionary) : a.call(y.dictionary) === "[object ArrayBuffer]" ? g = new Uint8Array(y.dictionary) : g = y.dictionary, d = e.deflateSetDictionary(this.strm, g), d !== c)
2457
2457
  throw new Error(r[d]);
2458
2458
  this._dict_set = !0;
2459
2459
  }
2460
2460
  }
2461
2461
  k.prototype.push = function(L, y) {
2462
- var d = this.strm, m = this.options.chunkSize, _, g;
2462
+ var d = this.strm, g = this.options.chunkSize, _, m;
2463
2463
  if (this.ended)
2464
2464
  return !1;
2465
- g = y === ~~y ? y : y === !0 ? s : o, typeof L == "string" ? d.input = n.string2buf(L) : a.call(L) === "[object ArrayBuffer]" ? d.input = new Uint8Array(L) : d.input = L, d.next_in = 0, d.avail_in = d.input.length;
2465
+ m = y === ~~y ? y : y === !0 ? s : o, typeof L == "string" ? d.input = n.string2buf(L) : a.call(L) === "[object ArrayBuffer]" ? d.input = new Uint8Array(L) : d.input = L, d.next_in = 0, d.avail_in = d.input.length;
2466
2466
  do {
2467
- if (d.avail_out === 0 && (d.output = new t.Buf8(m), d.next_out = 0, d.avail_out = m), _ = e.deflate(d, g), _ !== u && _ !== c)
2467
+ if (d.avail_out === 0 && (d.output = new t.Buf8(g), d.next_out = 0, d.avail_out = g), _ = e.deflate(d, m), _ !== u && _ !== c)
2468
2468
  return this.onEnd(_), this.ended = !0, !1;
2469
- (d.avail_out === 0 || d.avail_in === 0 && (g === s || g === p)) && (this.options.to === "string" ? this.onData(n.buf2binstring(t.shrinkBuf(d.output, d.next_out))) : this.onData(t.shrinkBuf(d.output, d.next_out)));
2469
+ (d.avail_out === 0 || d.avail_in === 0 && (m === s || m === p)) && (this.options.to === "string" ? this.onData(n.buf2binstring(t.shrinkBuf(d.output, d.next_out))) : this.onData(t.shrinkBuf(d.output, d.next_out)));
2470
2470
  } while ((d.avail_in > 0 || d.avail_out === 0) && _ !== u);
2471
- return g === s ? (_ = e.deflateEnd(this.strm), this.onEnd(_), this.ended = !0, _ === c) : (g === p && (this.onEnd(c), d.avail_out = 0), !0);
2471
+ return m === s ? (_ = e.deflateEnd(this.strm), this.onEnd(_), this.ended = !0, _ === c) : (m === p && (this.onEnd(c), d.avail_out = 0), !0);
2472
2472
  }, k.prototype.onData = function(L) {
2473
2473
  this.chunks.push(L);
2474
2474
  }, k.prototype.onEnd = function(L) {
@@ -2488,62 +2488,62 @@ function Uc() {
2488
2488
  }
2489
2489
  return $t.Deflate = k, $t.deflate = D, $t.deflateRaw = w, $t.gzip = E, $t;
2490
2490
  }
2491
- var zt = {}, Ke = {}, sn, ga;
2491
+ var zt = {}, Ke = {}, sn, ma;
2492
2492
  function Hc() {
2493
- if (ga) return sn;
2494
- ga = 1;
2493
+ if (ma) return sn;
2494
+ ma = 1;
2495
2495
  var e = 30, t = 12;
2496
2496
  return sn = function(r, i) {
2497
- var a, o, s, c, u, p, h, b, v, k, D, w, E, L, y, d, m, _, g, x, C, j, M, B, A;
2498
- a = r.state, o = r.next_in, B = r.input, s = o + (r.avail_in - 5), c = r.next_out, A = r.output, u = c - (i - r.avail_out), p = c + (r.avail_out - 257), h = a.dmax, b = a.wsize, v = a.whave, k = a.wnext, D = a.window, w = a.hold, E = a.bits, L = a.lencode, y = a.distcode, d = (1 << a.lenbits) - 1, m = (1 << a.distbits) - 1;
2497
+ var a, o, s, c, u, p, h, b, v, k, D, w, E, L, y, d, g, _, m, x, C, j, M, B, A;
2498
+ a = r.state, o = r.next_in, B = r.input, s = o + (r.avail_in - 5), c = r.next_out, A = r.output, u = c - (i - r.avail_out), p = c + (r.avail_out - 257), h = a.dmax, b = a.wsize, v = a.whave, k = a.wnext, D = a.window, w = a.hold, E = a.bits, L = a.lencode, y = a.distcode, d = (1 << a.lenbits) - 1, g = (1 << a.distbits) - 1;
2499
2499
  e:
2500
2500
  do {
2501
2501
  E < 15 && (w += B[o++] << E, E += 8, w += B[o++] << E, E += 8), _ = L[w & d];
2502
2502
  t:
2503
2503
  for (; ; ) {
2504
- if (g = _ >>> 24, w >>>= g, E -= g, g = _ >>> 16 & 255, g === 0)
2504
+ if (m = _ >>> 24, w >>>= m, E -= m, m = _ >>> 16 & 255, m === 0)
2505
2505
  A[c++] = _ & 65535;
2506
- else if (g & 16) {
2507
- x = _ & 65535, g &= 15, g && (E < g && (w += B[o++] << E, E += 8), x += w & (1 << g) - 1, w >>>= g, E -= g), E < 15 && (w += B[o++] << E, E += 8, w += B[o++] << E, E += 8), _ = y[w & m];
2506
+ else if (m & 16) {
2507
+ x = _ & 65535, m &= 15, m && (E < m && (w += B[o++] << E, E += 8), x += w & (1 << m) - 1, w >>>= m, E -= m), E < 15 && (w += B[o++] << E, E += 8, w += B[o++] << E, E += 8), _ = y[w & g];
2508
2508
  r:
2509
2509
  for (; ; ) {
2510
- if (g = _ >>> 24, w >>>= g, E -= g, g = _ >>> 16 & 255, g & 16) {
2511
- if (C = _ & 65535, g &= 15, E < g && (w += B[o++] << E, E += 8, E < g && (w += B[o++] << E, E += 8)), C += w & (1 << g) - 1, C > h) {
2510
+ if (m = _ >>> 24, w >>>= m, E -= m, m = _ >>> 16 & 255, m & 16) {
2511
+ if (C = _ & 65535, m &= 15, E < m && (w += B[o++] << E, E += 8, E < m && (w += B[o++] << E, E += 8)), C += w & (1 << m) - 1, C > h) {
2512
2512
  r.msg = "invalid distance too far back", a.mode = e;
2513
2513
  break e;
2514
2514
  }
2515
- if (w >>>= g, E -= g, g = c - u, C > g) {
2516
- if (g = C - g, g > v && a.sane) {
2515
+ if (w >>>= m, E -= m, m = c - u, C > m) {
2516
+ if (m = C - m, m > v && a.sane) {
2517
2517
  r.msg = "invalid distance too far back", a.mode = e;
2518
2518
  break e;
2519
2519
  }
2520
2520
  if (j = 0, M = D, k === 0) {
2521
- if (j += b - g, g < x) {
2522
- x -= g;
2521
+ if (j += b - m, m < x) {
2522
+ x -= m;
2523
2523
  do
2524
2524
  A[c++] = D[j++];
2525
- while (--g);
2525
+ while (--m);
2526
2526
  j = c - C, M = A;
2527
2527
  }
2528
- } else if (k < g) {
2529
- if (j += b + k - g, g -= k, g < x) {
2530
- x -= g;
2528
+ } else if (k < m) {
2529
+ if (j += b + k - m, m -= k, m < x) {
2530
+ x -= m;
2531
2531
  do
2532
2532
  A[c++] = D[j++];
2533
- while (--g);
2533
+ while (--m);
2534
2534
  if (j = 0, k < x) {
2535
- g = k, x -= g;
2535
+ m = k, x -= m;
2536
2536
  do
2537
2537
  A[c++] = D[j++];
2538
- while (--g);
2538
+ while (--m);
2539
2539
  j = c - C, M = A;
2540
2540
  }
2541
2541
  }
2542
- } else if (j += k - g, g < x) {
2543
- x -= g;
2542
+ } else if (j += k - m, m < x) {
2543
+ x -= m;
2544
2544
  do
2545
2545
  A[c++] = D[j++];
2546
- while (--g);
2546
+ while (--m);
2547
2547
  j = c - C, M = A;
2548
2548
  }
2549
2549
  for (; x > 2; )
@@ -2556,8 +2556,8 @@ function Hc() {
2556
2556
  while (x > 2);
2557
2557
  x && (A[c++] = A[j++], x > 1 && (A[c++] = A[j++]));
2558
2558
  }
2559
- } else if ((g & 64) === 0) {
2560
- _ = y[(_ & 65535) + (w & (1 << g) - 1)];
2559
+ } else if ((m & 64) === 0) {
2560
+ _ = y[(_ & 65535) + (w & (1 << m) - 1)];
2561
2561
  continue r;
2562
2562
  } else {
2563
2563
  r.msg = "invalid distance code", a.mode = e;
@@ -2565,10 +2565,10 @@ function Hc() {
2565
2565
  }
2566
2566
  break;
2567
2567
  }
2568
- } else if ((g & 64) === 0) {
2569
- _ = L[(_ & 65535) + (w & (1 << g) - 1)];
2568
+ } else if ((m & 64) === 0) {
2569
+ _ = L[(_ & 65535) + (w & (1 << m) - 1)];
2570
2570
  continue t;
2571
- } else if (g & 32) {
2571
+ } else if (m & 32) {
2572
2572
  a.mode = t;
2573
2573
  break e;
2574
2574
  } else {
@@ -2581,10 +2581,10 @@ function Hc() {
2581
2581
  x = E >> 3, o -= x, E -= x << 3, w &= (1 << E) - 1, r.next_in = o, r.next_out = c, r.avail_in = o < s ? 5 + (s - o) : 5 - (o - s), r.avail_out = c < p ? 257 + (p - c) : 257 - (c - p), a.hold = w, a.bits = E;
2582
2582
  }, sn;
2583
2583
  }
2584
- var cn, ma;
2584
+ var cn, ga;
2585
2585
  function Wc() {
2586
- if (ma) return cn;
2587
- ma = 1;
2586
+ if (ga) return cn;
2587
+ ga = 1;
2588
2588
  var e = kt(), t = 15, n = 852, r = 592, i = 0, a = 1, o = 2, s = [
2589
2589
  /* Length codes 257..285 base */
2590
2590
  3,
@@ -2721,69 +2721,69 @@ function Wc() {
2721
2721
  64
2722
2722
  ];
2723
2723
  return cn = function(b, v, k, D, w, E, L, y) {
2724
- var d = y.bits, m = 0, _ = 0, g = 0, x = 0, C = 0, j = 0, M = 0, B = 0, A = 0, q = 0, N, V, W, ae, ne, F = null, I = 0, G, K = new e.Buf16(t + 1), te = new e.Buf16(t + 1), le = null, Y = 0, J, re, de;
2725
- for (m = 0; m <= t; m++)
2726
- K[m] = 0;
2724
+ var d = y.bits, g = 0, _ = 0, m = 0, x = 0, C = 0, j = 0, M = 0, B = 0, A = 0, q = 0, N, V, W, ae, ne, F = null, I = 0, G, K = new e.Buf16(t + 1), te = new e.Buf16(t + 1), le = null, Y = 0, J, re, de;
2725
+ for (g = 0; g <= t; g++)
2726
+ K[g] = 0;
2727
2727
  for (_ = 0; _ < D; _++)
2728
2728
  K[v[k + _]]++;
2729
2729
  for (C = d, x = t; x >= 1 && K[x] === 0; x--)
2730
2730
  ;
2731
2731
  if (C > x && (C = x), x === 0)
2732
2732
  return w[E++] = 1 << 24 | 64 << 16 | 0, w[E++] = 1 << 24 | 64 << 16 | 0, y.bits = 1, 0;
2733
- for (g = 1; g < x && K[g] === 0; g++)
2733
+ for (m = 1; m < x && K[m] === 0; m++)
2734
2734
  ;
2735
- for (C < g && (C = g), B = 1, m = 1; m <= t; m++)
2736
- if (B <<= 1, B -= K[m], B < 0)
2735
+ for (C < m && (C = m), B = 1, g = 1; g <= t; g++)
2736
+ if (B <<= 1, B -= K[g], B < 0)
2737
2737
  return -1;
2738
2738
  if (B > 0 && (b === i || x !== 1))
2739
2739
  return -1;
2740
- for (te[1] = 0, m = 1; m < t; m++)
2741
- te[m + 1] = te[m] + K[m];
2740
+ for (te[1] = 0, g = 1; g < t; g++)
2741
+ te[g + 1] = te[g] + K[g];
2742
2742
  for (_ = 0; _ < D; _++)
2743
2743
  v[k + _] !== 0 && (L[te[v[k + _]]++] = _);
2744
- if (b === i ? (F = le = L, G = 19) : b === a ? (F = s, I -= 257, le = c, Y -= 257, G = 256) : (F = u, le = p, G = -1), q = 0, _ = 0, m = g, ne = E, j = C, M = 0, W = -1, A = 1 << C, ae = A - 1, b === a && A > n || b === o && A > r)
2744
+ if (b === i ? (F = le = L, G = 19) : b === a ? (F = s, I -= 257, le = c, Y -= 257, G = 256) : (F = u, le = p, G = -1), q = 0, _ = 0, g = m, ne = E, j = C, M = 0, W = -1, A = 1 << C, ae = A - 1, b === a && A > n || b === o && A > r)
2745
2745
  return 1;
2746
2746
  for (; ; ) {
2747
- J = m - M, L[_] < G ? (re = 0, de = L[_]) : L[_] > G ? (re = le[Y + L[_]], de = F[I + L[_]]) : (re = 96, de = 0), N = 1 << m - M, V = 1 << j, g = V;
2747
+ J = g - M, L[_] < G ? (re = 0, de = L[_]) : L[_] > G ? (re = le[Y + L[_]], de = F[I + L[_]]) : (re = 96, de = 0), N = 1 << g - M, V = 1 << j, m = V;
2748
2748
  do
2749
2749
  V -= N, w[ne + (q >> M) + V] = J << 24 | re << 16 | de | 0;
2750
2750
  while (V !== 0);
2751
- for (N = 1 << m - 1; q & N; )
2751
+ for (N = 1 << g - 1; q & N; )
2752
2752
  N >>= 1;
2753
- if (N !== 0 ? (q &= N - 1, q += N) : q = 0, _++, --K[m] === 0) {
2754
- if (m === x)
2753
+ if (N !== 0 ? (q &= N - 1, q += N) : q = 0, _++, --K[g] === 0) {
2754
+ if (g === x)
2755
2755
  break;
2756
- m = v[k + L[_]];
2756
+ g = v[k + L[_]];
2757
2757
  }
2758
- if (m > C && (q & ae) !== W) {
2759
- for (M === 0 && (M = C), ne += g, j = m - M, B = 1 << j; j + M < x && (B -= K[j + M], !(B <= 0)); )
2758
+ if (g > C && (q & ae) !== W) {
2759
+ for (M === 0 && (M = C), ne += m, j = g - M, B = 1 << j; j + M < x && (B -= K[j + M], !(B <= 0)); )
2760
2760
  j++, B <<= 1;
2761
2761
  if (A += 1 << j, b === a && A > n || b === o && A > r)
2762
2762
  return 1;
2763
2763
  W = q & ae, w[W] = C << 24 | j << 16 | ne - E | 0;
2764
2764
  }
2765
2765
  }
2766
- return q !== 0 && (w[ne + q] = m - M << 24 | 64 << 16 | 0), y.bits = C, 0;
2766
+ return q !== 0 && (w[ne + q] = g - M << 24 | 64 << 16 | 0), y.bits = C, 0;
2767
2767
  }, cn;
2768
2768
  }
2769
2769
  var va;
2770
2770
  function Yc() {
2771
2771
  if (va) return Ke;
2772
2772
  va = 1;
2773
- var e = kt(), t = cs(), n = ls(), r = Hc(), i = Wc(), a = 0, o = 1, s = 2, c = 4, u = 5, p = 6, h = 0, b = 1, v = 2, k = -2, D = -3, w = -4, E = -5, L = 8, y = 1, d = 2, m = 3, _ = 4, g = 5, x = 6, C = 7, j = 8, M = 9, B = 10, A = 11, q = 12, N = 13, V = 14, W = 15, ae = 16, ne = 17, F = 18, I = 19, G = 20, K = 21, te = 22, le = 23, Y = 24, J = 25, re = 26, de = 27, ue = 28, ke = 29, Q = 30, Le = 31, Ge = 32, $e = 852, He = 592, Ce = 15, ve = Ce;
2773
+ var e = kt(), t = cs(), n = ls(), r = Hc(), i = Wc(), a = 0, o = 1, s = 2, c = 4, u = 5, p = 6, h = 0, b = 1, v = 2, k = -2, D = -3, w = -4, E = -5, L = 8, y = 1, d = 2, g = 3, _ = 4, m = 5, x = 6, C = 7, j = 8, M = 9, B = 10, A = 11, q = 12, N = 13, V = 14, W = 15, ae = 16, ne = 17, F = 18, I = 19, G = 20, K = 21, te = 22, le = 23, Y = 24, J = 25, re = 26, de = 27, ue = 28, ke = 29, Q = 30, Le = 31, Ge = 32, $e = 852, He = 592, Ce = 15, ve = Ce;
2774
2774
  function Ve(P) {
2775
2775
  return (P >>> 24 & 255) + (P >>> 8 & 65280) + ((P & 65280) << 8) + ((P & 255) << 24);
2776
2776
  }
2777
2777
  function Pt() {
2778
2778
  this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new e.Buf16(320), this.work = new e.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
2779
2779
  }
2780
- function mt(P) {
2780
+ function gt(P) {
2781
2781
  var H;
2782
2782
  return !P || !P.state ? k : (H = P.state, P.total_in = P.total_out = H.total = 0, P.msg = "", H.wrap && (P.adler = H.wrap & 1), H.mode = y, H.last = 0, H.havedict = 0, H.dmax = 32768, H.head = null, H.hold = 0, H.bits = 0, H.lencode = H.lendyn = new e.Buf32($e), H.distcode = H.distdyn = new e.Buf32(He), H.sane = 1, H.back = -1, h);
2783
2783
  }
2784
2784
  function Ze(P) {
2785
2785
  var H;
2786
- return !P || !P.state ? k : (H = P.state, H.wsize = 0, H.whave = 0, H.wnext = 0, mt(P));
2786
+ return !P || !P.state ? k : (H = P.state, H.wsize = 0, H.whave = 0, H.wnext = 0, gt(P));
2787
2787
  }
2788
2788
  function At(P, H) {
2789
2789
  var S, X;
@@ -2874,9 +2874,9 @@ function Yc() {
2874
2874
  P.msg = "unknown header flags set", S.mode = Q;
2875
2875
  break;
2876
2876
  }
2877
- S.head && (S.head.text = O >> 8 & 1), S.flags & 512 && (Oe[0] = O & 255, Oe[1] = O >>> 8 & 255, S.check = n(S.check, Oe, 2, 0)), O = 0, $ = 0, S.mode = m;
2877
+ S.head && (S.head.text = O >> 8 & 1), S.flags & 512 && (Oe[0] = O & 255, Oe[1] = O >>> 8 & 255, S.check = n(S.check, Oe, 2, 0)), O = 0, $ = 0, S.mode = g;
2878
2878
  /* falls through */
2879
- case m:
2879
+ case g:
2880
2880
  for (; $ < 32; ) {
2881
2881
  if (U === 0)
2882
2882
  break e;
@@ -2890,9 +2890,9 @@ function Yc() {
2890
2890
  break e;
2891
2891
  U--, O += X[l++] << $, $ += 8;
2892
2892
  }
2893
- S.head && (S.head.xflags = O & 255, S.head.os = O >> 8), S.flags & 512 && (Oe[0] = O & 255, Oe[1] = O >>> 8 & 255, S.check = n(S.check, Oe, 2, 0)), O = 0, $ = 0, S.mode = g;
2893
+ S.head && (S.head.xflags = O & 255, S.head.os = O >> 8), S.flags & 512 && (Oe[0] = O & 255, Oe[1] = O >>> 8 & 255, S.check = n(S.check, Oe, 2, 0)), O = 0, $ = 0, S.mode = m;
2894
2894
  /* falls through */
2895
- case g:
2895
+ case m:
2896
2896
  if (S.flags & 1024) {
2897
2897
  for (; $ < 16; ) {
2898
2898
  if (U === 0)
@@ -3282,7 +3282,7 @@ function Yc() {
3282
3282
  var S = H.length, X, pe, l;
3283
3283
  return !P || !P.state || (X = P.state, X.wrap !== 0 && X.mode !== A) ? k : X.mode === A && (pe = 1, pe = t(pe, H, S, 0), pe !== X.check) ? D : (l = qt(P, H, S, S), l ? (X.mode = Le, w) : (X.havedict = 1, h));
3284
3284
  }
3285
- return Ke.inflateReset = Ze, Ke.inflateReset2 = At, Ke.inflateResetKeep = mt, Ke.inflateInit = tt, Ke.inflateInit2 = vt, Ke.inflate = R, Ke.inflateEnd = Z, Ke.inflateGetHeader = ee, Ke.inflateSetDictionary = se, Ke.inflateInfo = "pako inflate (from Nodeca project)", Ke;
3285
+ return Ke.inflateReset = Ze, Ke.inflateReset2 = At, Ke.inflateResetKeep = gt, Ke.inflateInit = tt, Ke.inflateInit2 = vt, Ke.inflate = R, Ke.inflateEnd = Z, Ke.inflateGetHeader = ee, Ke.inflateSetDictionary = se, Ke.inflateInfo = "pako inflate (from Nodeca project)", Ke;
3286
3286
  }
3287
3287
  var ln, xa;
3288
3288
  function ds() {
@@ -3360,14 +3360,14 @@ function Vc() {
3360
3360
  throw new Error(i[v]);
3361
3361
  }
3362
3362
  c.prototype.push = function(h, b) {
3363
- var v = this.strm, k = this.options.chunkSize, D = this.options.dictionary, w, E, L, y, d, m = !1;
3363
+ var v = this.strm, k = this.options.chunkSize, D = this.options.dictionary, w, E, L, y, d, g = !1;
3364
3364
  if (this.ended)
3365
3365
  return !1;
3366
3366
  E = b === ~~b ? b : b === !0 ? r.Z_FINISH : r.Z_NO_FLUSH, typeof h == "string" ? v.input = n.binstring2buf(h) : s.call(h) === "[object ArrayBuffer]" ? v.input = new Uint8Array(h) : v.input = h, v.next_in = 0, v.avail_in = v.input.length;
3367
3367
  do {
3368
- if (v.avail_out === 0 && (v.output = new t.Buf8(k), v.next_out = 0, v.avail_out = k), w = e.inflate(v, r.Z_NO_FLUSH), w === r.Z_NEED_DICT && D && (w = e.inflateSetDictionary(this.strm, D)), w === r.Z_BUF_ERROR && m === !0 && (w = r.Z_OK, m = !1), w !== r.Z_STREAM_END && w !== r.Z_OK)
3368
+ if (v.avail_out === 0 && (v.output = new t.Buf8(k), v.next_out = 0, v.avail_out = k), w = e.inflate(v, r.Z_NO_FLUSH), w === r.Z_NEED_DICT && D && (w = e.inflateSetDictionary(this.strm, D)), w === r.Z_BUF_ERROR && g === !0 && (w = r.Z_OK, g = !1), w !== r.Z_STREAM_END && w !== r.Z_OK)
3369
3369
  return this.onEnd(w), this.ended = !0, !1;
3370
- v.next_out && (v.avail_out === 0 || w === r.Z_STREAM_END || v.avail_in === 0 && (E === r.Z_FINISH || E === r.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (L = n.utf8border(v.output, v.next_out), y = v.next_out - L, d = n.buf2string(v.output, L), v.next_out = y, v.avail_out = k - y, y && t.arraySet(v.output, v.output, L, y, 0), this.onData(d)) : this.onData(t.shrinkBuf(v.output, v.next_out))), v.avail_in === 0 && v.avail_out === 0 && (m = !0);
3370
+ v.next_out && (v.avail_out === 0 || w === r.Z_STREAM_END || v.avail_in === 0 && (E === r.Z_FINISH || E === r.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (L = n.utf8border(v.output, v.next_out), y = v.next_out - L, d = n.buf2string(v.output, L), v.next_out = y, v.avail_out = k - y, y && t.arraySet(v.output, v.output, L, y, 0), this.onData(d)) : this.onData(t.shrinkBuf(v.output, v.next_out))), v.avail_in === 0 && v.avail_out === 0 && (g = !0);
3371
3371
  } while ((v.avail_in > 0 || v.avail_out === 0) && w !== r.Z_STREAM_END);
3372
3372
  return w === r.Z_STREAM_END && (E = r.Z_FINISH), E === r.Z_FINISH ? (w = e.inflateEnd(this.strm), this.onEnd(w), this.ended = !0, w === r.Z_OK) : (E === r.Z_SYNC_FLUSH && (this.onEnd(r.Z_OK), v.avail_out = 0), !0);
3373
3373
  }, c.prototype.onData = function(h) {
@@ -3397,31 +3397,31 @@ var wa;
3397
3397
  function Zc() {
3398
3398
  if (wa) return dt;
3399
3399
  wa = 1;
3400
- var e = dt && dt.__awaiter || function(L, y, d, m) {
3401
- function _(g) {
3402
- return g instanceof d ? g : new d(function(x) {
3403
- x(g);
3400
+ var e = dt && dt.__awaiter || function(L, y, d, g) {
3401
+ function _(m) {
3402
+ return m instanceof d ? m : new d(function(x) {
3403
+ x(m);
3404
3404
  });
3405
3405
  }
3406
- return new (d || (d = Promise))(function(g, x) {
3406
+ return new (d || (d = Promise))(function(m, x) {
3407
3407
  function C(B) {
3408
3408
  try {
3409
- M(m.next(B));
3409
+ M(g.next(B));
3410
3410
  } catch (A) {
3411
3411
  x(A);
3412
3412
  }
3413
3413
  }
3414
3414
  function j(B) {
3415
3415
  try {
3416
- M(m.throw(B));
3416
+ M(g.throw(B));
3417
3417
  } catch (A) {
3418
3418
  x(A);
3419
3419
  }
3420
3420
  }
3421
3421
  function M(B) {
3422
- B.done ? g(B.value) : _(B.value).then(C, j);
3422
+ B.done ? m(B.value) : _(B.value).then(C, j);
3423
3423
  }
3424
- M((m = m.apply(L, y || [])).next());
3424
+ M((g = g.apply(L, y || [])).next());
3425
3425
  });
3426
3426
  };
3427
3427
  Object.defineProperty(dt, "__esModule", { value: !0 }), dt.parseBigBed = dt.BigWigReader = void 0;
@@ -3448,76 +3448,76 @@ function Zc() {
3448
3448
  return this.cachedSequenceRecords[y] || (this.cachedSequenceRecords[y] = yield i.loadSequenceRecord(this.dataLoader, d, y)), this.cachedSequenceRecords[y];
3449
3449
  });
3450
3450
  }
3451
- readBigWigData(y, d, m, _) {
3451
+ readBigWigData(y, d, g, _) {
3452
3452
  return e(this, void 0, void 0, function* () {
3453
- return this.readData(y, d, m, _, (yield this.getHeader()).common.fullIndexOffset, w);
3453
+ return this.readData(y, d, g, _, (yield this.getHeader()).common.fullIndexOffset, w);
3454
3454
  });
3455
3455
  }
3456
- streamBigWigData(y, d, m, _) {
3456
+ streamBigWigData(y, d, g, _) {
3457
3457
  return e(this, void 0, void 0, function* () {
3458
- return this.streamData(y, d, m, _, (yield this.getHeader()).common.fullIndexOffset, w);
3458
+ return this.streamData(y, d, g, _, (yield this.getHeader()).common.fullIndexOffset, w);
3459
3459
  });
3460
3460
  }
3461
- readBigBedData(y, d, m, _, g) {
3461
+ readBigBedData(y, d, g, _, m) {
3462
3462
  return e(this, void 0, void 0, function* () {
3463
- return this.readData(y, d, m, _, (yield this.getHeader()).common.fullIndexOffset, D(g || k));
3463
+ return this.readData(y, d, g, _, (yield this.getHeader()).common.fullIndexOffset, D(m || k));
3464
3464
  });
3465
3465
  }
3466
- streamBigBedData(y, d, m, _, g) {
3466
+ streamBigBedData(y, d, g, _, m) {
3467
3467
  return e(this, void 0, void 0, function* () {
3468
- return this.streamData(y, d, m, _, (yield this.getHeader()).common.fullIndexOffset, D(g || k));
3468
+ return this.streamData(y, d, g, _, (yield this.getHeader()).common.fullIndexOffset, D(m || k));
3469
3469
  });
3470
3470
  }
3471
- readTwoBitData(y, d, m) {
3471
+ readTwoBitData(y, d, g) {
3472
3472
  return e(this, void 0, void 0, function* () {
3473
3473
  const _ = yield this.getSequenceRecord(y);
3474
- return i.loadSequence(this.dataLoader, this.cachedHeader, _, d, m);
3474
+ return i.loadSequence(this.dataLoader, this.cachedHeader, _, d, g);
3475
3475
  });
3476
3476
  }
3477
- readTwoBitDataMatrix(y, d, m) {
3477
+ readTwoBitDataMatrix(y, d, g) {
3478
3478
  return e(this, void 0, void 0, function* () {
3479
3479
  const _ = yield this.getSequenceRecord(y);
3480
- return i.loadOneHotEncodingFromSequence(this.dataLoader, this.cachedHeader, _, d, m);
3480
+ return i.loadOneHotEncodingFromSequence(this.dataLoader, this.cachedHeader, _, d, g);
3481
3481
  });
3482
3482
  }
3483
- streamTwoBitData(y, d, m, _ = 1024, g = !1) {
3483
+ streamTwoBitData(y, d, g, _ = 1024, m = !1) {
3484
3484
  return e(this, void 0, void 0, function* () {
3485
3485
  const x = yield this.getSequenceRecord(y);
3486
- return i.streamSequence(this.dataLoader, this.cachedHeader, x, d, m, _, g);
3486
+ return i.streamSequence(this.dataLoader, this.cachedHeader, x, d, g, _, m);
3487
3487
  });
3488
3488
  }
3489
- readZoomData(y, d, m, _, g) {
3489
+ readZoomData(y, d, g, _, m) {
3490
3490
  return e(this, void 0, void 0, function* () {
3491
3491
  const x = yield this.getHeader();
3492
- if (x.zoomLevelHeaders == null || !(g in x.zoomLevelHeaders))
3492
+ if (x.zoomLevelHeaders == null || !(m in x.zoomLevelHeaders))
3493
3493
  throw new t.FileFormatError("Given zoomLevelIndex not found in zoom level headers.");
3494
- const C = x.zoomLevelHeaders[g].indexOffset;
3495
- return this.readData(y, d, m, _, C, E);
3494
+ const C = x.zoomLevelHeaders[m].indexOffset;
3495
+ return this.readData(y, d, g, _, C, E);
3496
3496
  });
3497
3497
  }
3498
- streamZoomData(y, d, m, _, g) {
3498
+ streamZoomData(y, d, g, _, m) {
3499
3499
  return e(this, void 0, void 0, function* () {
3500
3500
  const x = yield this.getHeader();
3501
- if (x.zoomLevelHeaders == null || !(g in x.zoomLevelHeaders))
3501
+ if (x.zoomLevelHeaders == null || !(m in x.zoomLevelHeaders))
3502
3502
  throw new t.FileFormatError("Given zoomLevelIndex not found in zoom level headers.");
3503
- const C = x.zoomLevelHeaders[g].indexOffset;
3504
- return this.streamData(y, d, m, _, C, E);
3503
+ const C = x.zoomLevelHeaders[m].indexOffset;
3504
+ return this.streamData(y, d, g, _, C, E);
3505
3505
  });
3506
3506
  }
3507
- loadData(y, d, m, _, g, x, C, j) {
3507
+ loadData(y, d, g, _, m, x, C, j) {
3508
3508
  return e(this, void 0, void 0, function* () {
3509
3509
  const M = yield this.getHeader();
3510
3510
  if (M.chromTree == null)
3511
3511
  throw new t.FileFormatError("No chromosome tree found in file header.");
3512
- const B = M.chromTree.chromToId[y], A = M.chromTree.chromToId[m];
3512
+ const B = M.chromTree.chromToId[y], A = M.chromTree.chromToId[g];
3513
3513
  if (B == null)
3514
3514
  throw new t.DataMissingError(y);
3515
3515
  if (A == null)
3516
- throw new t.DataMissingError(m);
3517
- const q = new t.BufferedDataLoader(this.dataLoader, this.bufferSize, x), N = new n.BinaryParser(yield q.load(g, c)).getUInt();
3516
+ throw new t.DataMissingError(g);
3517
+ const q = new t.BufferedDataLoader(this.dataLoader, this.bufferSize, x), N = new n.BinaryParser(yield q.load(m, c)).getUInt();
3518
3518
  if (s !== N)
3519
- throw new t.FileFormatError(`R+ tree not found at offset ${g}`);
3520
- const V = g + c, W = yield v(q, M.littleEndian, V, B, d, A, _);
3519
+ throw new t.FileFormatError(`R+ tree not found at offset ${m}`);
3520
+ const V = m + c, W = yield v(q, M.littleEndian, V, B, d, A, _);
3521
3521
  for (const ae of W) {
3522
3522
  let ne = new Uint8Array(yield q.load(ae.dataOffset, ae.dataSize));
3523
3523
  M.common.uncompressBuffSize > 0 && (ne = a.inflate(ne));
@@ -3526,24 +3526,24 @@ function Zc() {
3526
3526
  }
3527
3527
  });
3528
3528
  }
3529
- readData(y, d, m, _, g, x) {
3529
+ readData(y, d, g, _, m, x) {
3530
3530
  return e(this, void 0, void 0, function* () {
3531
3531
  const C = [], j = (M) => C.push(...M);
3532
- return yield this.loadData(y, d, m, _, g, !1, x, j), C;
3532
+ return yield this.loadData(y, d, g, _, m, !1, x, j), C;
3533
3533
  });
3534
3534
  }
3535
- streamData(y, d, m, _, g, x) {
3535
+ streamData(y, d, g, _, m, x) {
3536
3536
  return e(this, void 0, void 0, function* () {
3537
3537
  const C = new o.Readable({ objectMode: !0, read() {
3538
3538
  } }), j = (M) => {
3539
3539
  M.forEach((B) => C.push(B));
3540
3540
  };
3541
- return yield this.loadData(y, d, m, _, g, !0, x, j), C.push(null), C;
3541
+ return yield this.loadData(y, d, g, _, m, !0, x, j), C.push(null), C;
3542
3542
  });
3543
3543
  }
3544
3544
  };
3545
3545
  dt.BigWigReader = b;
3546
- function v(L, y, d, m, _, g, x) {
3546
+ function v(L, y, d, g, _, m, x) {
3547
3547
  return e(this, void 0, void 0, function* () {
3548
3548
  const C = yield L.load(d, 4), j = new n.BinaryParser(C, y), M = j.getByte() === 1;
3549
3549
  j.position++;
@@ -3551,7 +3551,7 @@ function Zc() {
3551
3551
  let V = [];
3552
3552
  const W = new n.BinaryParser(N, y);
3553
3553
  for (let ae = 0; ae < B; ae++) {
3554
- const ne = W.getInt(), F = W.getInt(), I = W.getInt(), G = W.getInt(), K = (g > ne || g == ne && x >= F) && (m < I || m == I && _ <= G);
3554
+ const ne = W.getInt(), F = W.getInt(), I = W.getInt(), G = W.getInt(), K = (m > ne || m == ne && x >= F) && (g < I || g == I && _ <= G);
3555
3555
  if (M) {
3556
3556
  const te = {
3557
3557
  startChrom: ne,
@@ -3564,25 +3564,25 @@ function Zc() {
3564
3564
  K && V.push(te);
3565
3565
  } else {
3566
3566
  const te = W.getLong();
3567
- K && V.push(...yield v(L, y, te, m, _, g, x));
3567
+ K && V.push(...yield v(L, y, te, g, _, m, x));
3568
3568
  }
3569
3569
  }
3570
3570
  return V;
3571
3571
  });
3572
3572
  }
3573
- function k(L, y, d, m) {
3573
+ function k(L, y, d, g) {
3574
3574
  const _ = {
3575
3575
  chr: L,
3576
3576
  start: y,
3577
3577
  end: d
3578
3578
  };
3579
- let g = m.split(" ");
3580
- if (g.length > 0 && (_.name = g[0]), g.length > 1 && (_.score = parseFloat(g[1])), g.length > 2 && (_.strand = g[2]), g.length > 3 && (_.cdStart = parseInt(g[3])), g.length > 4 && (_.cdEnd = parseInt(g[4])), g.length > 5 && g[5] !== "." && g[5] !== "0") {
3579
+ let m = g.split(" ");
3580
+ if (m.length > 0 && (_.name = m[0]), m.length > 1 && (_.score = parseFloat(m[1])), m.length > 2 && (_.strand = m[2]), m.length > 3 && (_.cdStart = parseInt(m[3])), m.length > 4 && (_.cdEnd = parseInt(m[4])), m.length > 5 && m[5] !== "." && m[5] !== "0") {
3581
3581
  let C;
3582
- g[5].includes(",") ? C = g[5].startsWith("rgb") ? g[5] : "rgb(" + g[5] + ")" : C = g[5], _.color = C;
3582
+ m[5].includes(",") ? C = m[5].startsWith("rgb") ? m[5] : "rgb(" + m[5] + ")" : C = m[5], _.color = C;
3583
3583
  }
3584
- if (g.length > 8) {
3585
- const C = parseInt(g[6]), j = g[7].split(","), M = g[8].split(","), B = [];
3584
+ if (m.length > 8) {
3585
+ const C = parseInt(m[6]), j = m[7].split(","), M = m[8].split(","), B = [];
3586
3586
  for (var x = 0; x < C; x++) {
3587
3587
  const A = y + parseInt(M[x]), q = A + parseInt(j[x]);
3588
3588
  B.push({ start: A, end: q });
@@ -3592,30 +3592,30 @@ function Zc() {
3592
3592
  return _;
3593
3593
  }
3594
3594
  dt.parseBigBed = k;
3595
- const D = (L) => (y, d, m, _, g, x) => {
3595
+ const D = (L) => (y, d, g, _, m, x) => {
3596
3596
  const C = [], j = new n.BinaryParser(y), M = 13;
3597
3597
  for (; j.remLength() >= M; ) {
3598
3598
  const B = j.getInt(), A = x[B], q = j.getInt(), N = j.getInt(), V = j.getString();
3599
- if (B < d || B === d && N < m)
3599
+ if (B < d || B === d && N < g)
3600
3600
  continue;
3601
- if (B > _ || B === _ && q >= g)
3601
+ if (B > _ || B === _ && q >= m)
3602
3602
  break;
3603
3603
  const W = L(A, q, N, V);
3604
3604
  C.push(W);
3605
3605
  }
3606
3606
  return C;
3607
3607
  };
3608
- function w(L, y, d, m, _, g) {
3609
- const x = [], C = new n.BinaryParser(L), j = C.getInt(), M = g[j];
3608
+ function w(L, y, d, g, _, m) {
3609
+ const x = [], C = new n.BinaryParser(L), j = C.getInt(), M = m[j];
3610
3610
  let B = C.getInt(), A = C.getInt();
3611
3611
  const q = C.getInt(), N = C.getInt(), V = C.getByte();
3612
3612
  C.getByte();
3613
3613
  let W = C.getUShort();
3614
- if (j < y || j > m)
3614
+ if (j < y || j > g)
3615
3615
  return x;
3616
3616
  for (; W-- > 0; ) {
3617
3617
  let ae;
3618
- if (V === 1 ? (B = C.getInt(), A = C.getInt(), ae = C.getFloat()) : V === 2 ? (B = C.getInt(), ae = C.getFloat(), A = B + N) : (ae = C.getFloat(), A = B + N), j > m || j === m && B >= _)
3618
+ if (V === 1 ? (B = C.getInt(), A = C.getInt(), ae = C.getFloat()) : V === 2 ? (B = C.getInt(), ae = C.getFloat(), A = B + N) : (ae = C.getFloat(), A = B + N), j > g || j === g && B >= _)
3619
3619
  break;
3620
3620
  j < y || j === y && A < d || x.push({
3621
3621
  chr: M,
@@ -3626,11 +3626,11 @@ function Zc() {
3626
3626
  }
3627
3627
  return x;
3628
3628
  }
3629
- function E(L, y, d, m, _, g) {
3629
+ function E(L, y, d, g, _, m) {
3630
3630
  const x = [], C = new n.BinaryParser(L), j = 32;
3631
3631
  for (; C.remLength() > j; ) {
3632
3632
  const M = C.getInt(), B = {
3633
- chr: g[M],
3633
+ chr: m[M],
3634
3634
  start: C.getInt(),
3635
3635
  end: C.getInt(),
3636
3636
  validCount: C.getInt(),
@@ -3640,7 +3640,7 @@ function Zc() {
3640
3640
  sumSquares: C.getFloat()
3641
3641
  };
3642
3642
  if (!(M < y || M === y && B.end < d)) {
3643
- if (M > m || M === m && B.start >= _)
3643
+ if (M > g || M === g && B.start >= _)
3644
3644
  break;
3645
3645
  x.push(B);
3646
3646
  }
@@ -3727,7 +3727,7 @@ function Kc() {
3727
3727
  };
3728
3728
  return Ct.FileDataLoader = n, Ct;
3729
3729
  }
3730
- var Rt = {}, gr = { exports: {} }, hn, Ea;
3730
+ var Rt = {}, mr = { exports: {} }, hn, Ea;
3731
3731
  function hs() {
3732
3732
  return Ea || (Ea = 1, hn = function(t, n) {
3733
3733
  return function() {
@@ -3809,10 +3809,10 @@ function Ye() {
3809
3809
  for (var B in x)
3810
3810
  Object.prototype.hasOwnProperty.call(x, B) && C.call(null, x[B], B, x);
3811
3811
  }
3812
- function m() {
3812
+ function g() {
3813
3813
  var x = {};
3814
3814
  function C(B, A) {
3815
- h(x[A]) && h(B) ? x[A] = m(x[A], B) : h(B) ? x[A] = m({}, B) : n(B) ? x[A] = B.slice() : x[A] = B;
3815
+ h(x[A]) && h(B) ? x[A] = g(x[A], B) : h(B) ? x[A] = g({}, B) : n(B) ? x[A] = B.slice() : x[A] = B;
3816
3816
  }
3817
3817
  for (var j = 0, M = arguments.length; j < M; j++)
3818
3818
  d(arguments[j], C);
@@ -3823,7 +3823,7 @@ function Ye() {
3823
3823
  j && typeof B == "function" ? x[A] = e(B, j) : x[A] = B;
3824
3824
  }), x;
3825
3825
  }
3826
- function g(x) {
3826
+ function m(x) {
3827
3827
  return x.charCodeAt(0) === 65279 && (x = x.slice(1)), x;
3828
3828
  }
3829
3829
  return pn = {
@@ -3845,21 +3845,21 @@ function Ye() {
3845
3845
  isURLSearchParams: E,
3846
3846
  isStandardBrowserEnv: y,
3847
3847
  forEach: d,
3848
- merge: m,
3848
+ merge: g,
3849
3849
  extend: _,
3850
3850
  trim: L,
3851
- stripBOM: g
3851
+ stripBOM: m
3852
3852
  }, pn;
3853
3853
  }
3854
- var gn, Ta;
3854
+ var mn, Ta;
3855
3855
  function ps() {
3856
- if (Ta) return gn;
3856
+ if (Ta) return mn;
3857
3857
  Ta = 1;
3858
3858
  var e = Ye();
3859
3859
  function t(n) {
3860
3860
  return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3861
3861
  }
3862
- return gn = function(r, i, a) {
3862
+ return mn = function(r, i, a) {
3863
3863
  if (!i)
3864
3864
  return r;
3865
3865
  var o;
@@ -3880,11 +3880,11 @@ function ps() {
3880
3880
  c !== -1 && (r = r.slice(0, c)), r += (r.indexOf("?") === -1 ? "?" : "&") + o;
3881
3881
  }
3882
3882
  return r;
3883
- }, gn;
3883
+ }, mn;
3884
3884
  }
3885
- var mn, Ca;
3885
+ var gn, Ca;
3886
3886
  function Jc() {
3887
- if (Ca) return mn;
3887
+ if (Ca) return gn;
3888
3888
  Ca = 1;
3889
3889
  var e = Ye();
3890
3890
  function t() {
@@ -3903,7 +3903,7 @@ function Jc() {
3903
3903
  e.forEach(this.handlers, function(a) {
3904
3904
  a !== null && r(a);
3905
3905
  });
3906
- }, mn = t, mn;
3906
+ }, gn = t, gn;
3907
3907
  }
3908
3908
  var vn, Ra;
3909
3909
  function Qc() {
@@ -3917,7 +3917,7 @@ function Qc() {
3917
3917
  }, vn;
3918
3918
  }
3919
3919
  var xn, Da;
3920
- function gs() {
3920
+ function ms() {
3921
3921
  return Da || (Da = 1, xn = function(t, n, r, i, a) {
3922
3922
  return t.config = n, r && (t.code = r), t.request = i, t.response = a, t.isAxiosError = !0, t.toJSON = function() {
3923
3923
  return {
@@ -3940,10 +3940,10 @@ function gs() {
3940
3940
  }), xn;
3941
3941
  }
3942
3942
  var yn, ja;
3943
- function ms() {
3943
+ function gs() {
3944
3944
  if (ja) return yn;
3945
3945
  ja = 1;
3946
- var e = gs();
3946
+ var e = ms();
3947
3947
  return yn = function(n, r, i, a, o) {
3948
3948
  var s = new Error(n);
3949
3949
  return e(s, r, i, a, o);
@@ -3953,7 +3953,7 @@ var _n, Ma;
3953
3953
  function el() {
3954
3954
  if (Ma) return _n;
3955
3955
  Ma = 1;
3956
- var e = ms();
3956
+ var e = gs();
3957
3957
  return _n = function(n, r, i) {
3958
3958
  var a = i.config.validateStatus;
3959
3959
  !i.status || !a || a(i.status) ? n(i) : r(e(
@@ -4099,7 +4099,7 @@ var Tn, qa;
4099
4099
  function $a() {
4100
4100
  if (qa) return Tn;
4101
4101
  qa = 1;
4102
- var e = Ye(), t = el(), n = tl(), r = ps(), i = il(), a = al(), o = ol(), s = ms();
4102
+ var e = Ye(), t = el(), n = tl(), r = ps(), i = il(), a = al(), o = ol(), s = gs();
4103
4103
  return Tn = function(u) {
4104
4104
  return new Promise(function(h, b) {
4105
4105
  var v = u.data, k = u.headers, D = u.responseType;
@@ -4113,8 +4113,8 @@ function $a() {
4113
4113
  w.open(u.method.toUpperCase(), r(y, u.params, u.paramsSerializer), !0), w.timeout = u.timeout;
4114
4114
  function d() {
4115
4115
  if (w) {
4116
- var _ = "getAllResponseHeaders" in w ? a(w.getAllResponseHeaders()) : null, g = !D || D === "text" || D === "json" ? w.responseText : w.response, x = {
4117
- data: g,
4116
+ var _ = "getAllResponseHeaders" in w ? a(w.getAllResponseHeaders()) : null, m = !D || D === "text" || D === "json" ? w.responseText : w.response, x = {
4117
+ data: m,
4118
4118
  status: w.status,
4119
4119
  statusText: w.statusText,
4120
4120
  headers: _,
@@ -4131,21 +4131,21 @@ function $a() {
4131
4131
  }, w.onerror = function() {
4132
4132
  b(s("Network Error", u, null, w)), w = null;
4133
4133
  }, w.ontimeout = function() {
4134
- var g = "timeout of " + u.timeout + "ms exceeded";
4135
- u.timeoutErrorMessage && (g = u.timeoutErrorMessage), b(s(
4136
- g,
4134
+ var m = "timeout of " + u.timeout + "ms exceeded";
4135
+ u.timeoutErrorMessage && (m = u.timeoutErrorMessage), b(s(
4136
+ m,
4137
4137
  u,
4138
4138
  u.transitional && u.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
4139
4139
  w
4140
4140
  )), w = null;
4141
4141
  }, e.isStandardBrowserEnv()) {
4142
- var m = (u.withCredentials || o(y)) && u.xsrfCookieName ? n.read(u.xsrfCookieName) : void 0;
4143
- m && (k[u.xsrfHeaderName] = m);
4142
+ var g = (u.withCredentials || o(y)) && u.xsrfCookieName ? n.read(u.xsrfCookieName) : void 0;
4143
+ g && (k[u.xsrfHeaderName] = g);
4144
4144
  }
4145
- "setRequestHeader" in w && e.forEach(k, function(g, x) {
4146
- typeof v > "u" && x.toLowerCase() === "content-type" ? delete k[x] : w.setRequestHeader(x, g);
4147
- }), e.isUndefined(u.withCredentials) || (w.withCredentials = !!u.withCredentials), D && D !== "json" && (w.responseType = u.responseType), typeof u.onDownloadProgress == "function" && w.addEventListener("progress", u.onDownloadProgress), typeof u.onUploadProgress == "function" && w.upload && w.upload.addEventListener("progress", u.onUploadProgress), u.cancelToken && u.cancelToken.promise.then(function(g) {
4148
- w && (w.abort(), b(g), w = null);
4145
+ "setRequestHeader" in w && e.forEach(k, function(m, x) {
4146
+ typeof v > "u" && x.toLowerCase() === "content-type" ? delete k[x] : w.setRequestHeader(x, m);
4147
+ }), e.isUndefined(u.withCredentials) || (w.withCredentials = !!u.withCredentials), D && D !== "json" && (w.responseType = u.responseType), typeof u.onDownloadProgress == "function" && w.addEventListener("progress", u.onDownloadProgress), typeof u.onUploadProgress == "function" && w.upload && w.upload.addEventListener("progress", u.onUploadProgress), u.cancelToken && u.cancelToken.promise.then(function(m) {
4148
+ w && (w.abort(), b(m), w = null);
4149
4149
  }), v || (v = null), w.send(v);
4150
4150
  });
4151
4151
  }, Tn;
@@ -4154,7 +4154,7 @@ var Cn, za;
4154
4154
  function fi() {
4155
4155
  if (za) return Cn;
4156
4156
  za = 1;
4157
- var e = Ye(), t = Qc(), n = gs(), r = {
4157
+ var e = Ye(), t = Qc(), n = ms(), r = {
4158
4158
  "Content-Type": "application/x-www-form-urlencoded"
4159
4159
  };
4160
4160
  function i(c, u) {
@@ -4510,14 +4510,14 @@ function pl() {
4510
4510
  }), An;
4511
4511
  }
4512
4512
  var Nn, Ka;
4513
- function gl() {
4513
+ function ml() {
4514
4514
  return Ka || (Ka = 1, Nn = function(t) {
4515
4515
  return typeof t == "object" && t.isAxiosError === !0;
4516
4516
  }), Nn;
4517
4517
  }
4518
4518
  var Ja;
4519
- function ml() {
4520
- if (Ja) return gr.exports;
4519
+ function gl() {
4520
+ if (Ja) return mr.exports;
4521
4521
  Ja = 1;
4522
4522
  var e = Ye(), t = hs(), n = dl(), r = xs(), i = fi();
4523
4523
  function a(s) {
@@ -4529,11 +4529,11 @@ function ml() {
4529
4529
  return a(r(o.defaults, c));
4530
4530
  }, o.Cancel = ys(), o.CancelToken = hl(), o.isCancel = vs(), o.all = function(c) {
4531
4531
  return Promise.all(c);
4532
- }, o.spread = pl(), o.isAxiosError = gl(), gr.exports = o, gr.exports.default = o, gr.exports;
4532
+ }, o.spread = pl(), o.isAxiosError = ml(), mr.exports = o, mr.exports.default = o, mr.exports;
4533
4533
  }
4534
4534
  var qn, Qa;
4535
4535
  function vl() {
4536
- return Qa || (Qa = 1, qn = ml()), qn;
4536
+ return Qa || (Qa = 1, qn = gl()), qn;
4537
4537
  }
4538
4538
  var eo;
4539
4539
  function xl() {
@@ -4711,7 +4711,7 @@ var Pe = {}, io;
4711
4711
  function bs() {
4712
4712
  if (io) return Pe;
4713
4713
  io = 1;
4714
- var e = Pe && Pe.__awaiter || function(d, m, _, g) {
4714
+ var e = Pe && Pe.__awaiter || function(d, g, _, m) {
4715
4715
  function x(C) {
4716
4716
  return C instanceof _ ? C : new _(function(j) {
4717
4717
  j(C);
@@ -4720,14 +4720,14 @@ function bs() {
4720
4720
  return new (_ || (_ = Promise))(function(C, j) {
4721
4721
  function M(q) {
4722
4722
  try {
4723
- A(g.next(q));
4723
+ A(m.next(q));
4724
4724
  } catch (N) {
4725
4725
  j(N);
4726
4726
  }
4727
4727
  }
4728
4728
  function B(q) {
4729
4729
  try {
4730
- A(g.throw(q));
4730
+ A(m.throw(q));
4731
4731
  } catch (N) {
4732
4732
  j(N);
4733
4733
  }
@@ -4735,22 +4735,22 @@ function bs() {
4735
4735
  function A(q) {
4736
4736
  q.done ? C(q.value) : x(q.value).then(M, B);
4737
4737
  }
4738
- A((g = g.apply(d, m || [])).next());
4738
+ A((m = m.apply(d, g || [])).next());
4739
4739
  });
4740
4740
  };
4741
4741
  Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.inflateChunk = Pe.parseRawIndexRefData = Pe.streamRawBamIndex = Pe.readBamIndexRef = Pe.readBamIndex = Pe.blocksForRange = void 0;
4742
4742
  const t = ur(), n = Yt(), r = Sr, i = 21578050, a = 37450;
4743
- function o(d, m, _) {
4744
- const g = y(m, _), x = d.binIndex, C = d.linearIndex;
4743
+ function o(d, g, _) {
4744
+ const m = y(g, _), x = d.binIndex, C = d.linearIndex;
4745
4745
  let j = [];
4746
4746
  for (let q in x) {
4747
- if (!g.includes(Number(q)))
4747
+ if (!m.includes(Number(q)))
4748
4748
  continue;
4749
4749
  const N = x[q].map((V) => L(V));
4750
4750
  j = j.concat(N);
4751
4751
  }
4752
4752
  let M;
4753
- const B = Math.min(m >> 14, C.length - 1), A = Math.max(_ >> 14, C.length - 1);
4753
+ const B = Math.min(g >> 14, C.length - 1), A = Math.max(_ >> 14, C.length - 1);
4754
4754
  for (let q = B; q <= A; q++) {
4755
4755
  let N = E(C[q]);
4756
4756
  N !== void 0 && (M === void 0 || s(N, M)) && (M = N);
@@ -4758,10 +4758,10 @@ function bs() {
4758
4758
  return c(j, M);
4759
4759
  }
4760
4760
  Pe.blocksForRange = o;
4761
- function s(d, m) {
4762
- return d.blockPosition < m.blockPosition || d.blockPosition === m.blockPosition && d.dataPosition < m.dataPosition;
4761
+ function s(d, g) {
4762
+ return d.blockPosition < g.blockPosition || d.blockPosition === g.blockPosition && d.dataPosition < g.dataPosition;
4763
4763
  }
4764
- function c(d, m) {
4764
+ function c(d, g) {
4765
4765
  if (d.length === 0)
4766
4766
  return [];
4767
4767
  let _ = [];
@@ -4769,9 +4769,9 @@ function bs() {
4769
4769
  let j = x.start.blockPosition - C.start.blockPosition;
4770
4770
  return j != 0 ? j : x.start.dataPosition - C.start.dataPosition;
4771
4771
  });
4772
- let g;
4772
+ let m;
4773
4773
  for (let x of d)
4774
- m !== void 0 && s(x.end, m) || (g === void 0 && (g = x, _.push(g)), x.start.blockPosition - g.end.blockPosition < 65e3 ? s(g.end, x.end) && (g.end = x.end) : (g = x, _.push(g)));
4774
+ g !== void 0 && s(x.end, g) || (m === void 0 && (m = x, _.push(m)), x.start.blockPosition - m.end.blockPosition < 65e3 ? s(m.end, x.end) && (m.end = x.end) : (m = x, _.push(m)));
4775
4775
  return _;
4776
4776
  }
4777
4777
  function u(d) {
@@ -4780,30 +4780,30 @@ function bs() {
4780
4780
  });
4781
4781
  }
4782
4782
  Pe.readBamIndex = u;
4783
- function p(d, m) {
4783
+ function p(d, g) {
4784
4784
  return e(this, void 0, void 0, function* () {
4785
- return (yield h(d, m)).refData[m];
4785
+ return (yield h(d, g)).refData[g];
4786
4786
  });
4787
4787
  }
4788
4788
  Pe.readBamIndexRef = p;
4789
- function h(d, m) {
4789
+ function h(d, g) {
4790
4790
  return e(this, void 0, void 0, function* () {
4791
- const _ = yield d.load(0), g = new n.BinaryParser(_);
4792
- if (g.getInt() !== i)
4791
+ const _ = yield d.load(0), m = new n.BinaryParser(_);
4792
+ if (m.getInt() !== i)
4793
4793
  throw new Error("Not a BAI file");
4794
- const C = [], j = g.getInt();
4794
+ const C = [], j = m.getInt();
4795
4795
  for (let M = 0; M < j; M++)
4796
- if (m === void 0 || m === M) {
4797
- const B = b(g);
4796
+ if (g === void 0 || g === M) {
4797
+ const B = b(m);
4798
4798
  C.push(B);
4799
4799
  } else
4800
- v(g);
4800
+ v(m);
4801
4801
  return { refData: C };
4802
4802
  });
4803
4803
  }
4804
4804
  function b(d) {
4805
- const m = {}, _ = Array(), g = d.getInt();
4806
- for (let C = 0; C < g; C++) {
4805
+ const g = {}, _ = Array(), m = d.getInt();
4806
+ for (let C = 0; C < m; C++) {
4807
4807
  const j = d.getUInt();
4808
4808
  if (j == a) {
4809
4809
  d.position += 36;
@@ -4814,16 +4814,16 @@ function bs() {
4814
4814
  const q = w(d), N = w(d);
4815
4815
  M.push({ start: q, end: N });
4816
4816
  }
4817
- m[j] = M;
4817
+ g[j] = M;
4818
4818
  }
4819
4819
  const x = d.getInt();
4820
4820
  for (let C = 0; C < x; C++)
4821
4821
  _.push(w(d));
4822
- return { binIndex: m, linearIndex: _ };
4822
+ return { binIndex: g, linearIndex: _ };
4823
4823
  }
4824
4824
  function v(d) {
4825
- const m = d.getInt();
4826
- for (let g = 0; g < m; g++) {
4825
+ const g = d.getInt();
4826
+ for (let m = 0; m < g; m++) {
4827
4827
  if (d.getUInt() == a) {
4828
4828
  d.position += 36;
4829
4829
  continue;
@@ -4833,17 +4833,17 @@ function bs() {
4833
4833
  d.position += 16;
4834
4834
  }
4835
4835
  const _ = d.getInt();
4836
- for (let g = 0; g < _; g++)
4836
+ for (let m = 0; m < _; m++)
4837
4837
  d.position += 8;
4838
4838
  }
4839
- function k(d, m) {
4839
+ function k(d, g) {
4840
4840
  return e(this, void 0, void 0, function* () {
4841
4841
  const _ = new t.BufferedDataLoader(d, void 0, !0);
4842
- let g = 0;
4842
+ let m = 0;
4843
4843
  const x = new r.Readable({ objectMode: !0, read() {
4844
4844
  } }), C = (q, N = !1) => e(this, void 0, void 0, function* () {
4845
- const V = yield _.load(g, q);
4846
- return N && x.push(V), g += q, V;
4845
+ const V = yield _.load(m, q);
4846
+ return N && x.push(V), m += q, V;
4847
4847
  }), j = (q, N = !1) => e(this, void 0, void 0, function* () {
4848
4848
  return new n.BinaryParser(yield C(q, N));
4849
4849
  });
@@ -4852,7 +4852,7 @@ function bs() {
4852
4852
  throw new Error("Not a BAI file");
4853
4853
  const A = M.getInt();
4854
4854
  for (let q = 0; q < A; q++) {
4855
- const N = m === q, V = (yield j(4, N)).getInt();
4855
+ const N = g === q, V = (yield j(4, N)).getInt();
4856
4856
  for (let ae = 0; ae < V; ae++) {
4857
4857
  if ((yield j(4, N)).getUInt() == a) {
4858
4858
  yield C(36, N);
@@ -4877,14 +4877,14 @@ function bs() {
4877
4877
  }
4878
4878
  Pe.parseRawIndexRefData = D;
4879
4879
  function w(d) {
4880
- const m = new Uint8Array(8);
4880
+ const g = new Uint8Array(8);
4881
4881
  for (let _ = 0; _ < 8; _++)
4882
- m[_] = d.getByte();
4883
- return m;
4882
+ g[_] = d.getByte();
4883
+ return g;
4884
4884
  }
4885
4885
  function E(d) {
4886
- const m = d[1] << 8 | d[0];
4887
- return { blockPosition: d[7] * 1099511627776 + d[6] * 4294967296 + d[5] * 16777216 + d[4] * 65536 + d[3] * 256 + d[2], dataPosition: m };
4886
+ const g = d[1] << 8 | d[0];
4887
+ return { blockPosition: d[7] * 1099511627776 + d[6] * 4294967296 + d[5] * 16777216 + d[4] * 65536 + d[3] * 256 + d[2], dataPosition: g };
4888
4888
  }
4889
4889
  function L(d) {
4890
4890
  return {
@@ -4893,19 +4893,19 @@ function bs() {
4893
4893
  };
4894
4894
  }
4895
4895
  Pe.inflateChunk = L;
4896
- function y(d, m) {
4896
+ function y(d, g) {
4897
4897
  const _ = [0];
4898
- m >= 1 << 29 && (m = 1 << 29), m--;
4899
- for (let g = 1 + (d >> 26); g <= 1 + (m >> 26); g++)
4900
- _.push(g);
4901
- for (let g = 9 + (d >> 23); g <= 9 + (m >> 23); g++)
4902
- _.push(g);
4903
- for (let g = 73 + (d >> 20); g <= 73 + (m >> 20); g++)
4904
- _.push(g);
4905
- for (let g = 585 + (d >> 17); g <= 585 + (m >> 17); g++)
4906
- _.push(g);
4907
- for (let g = 4681 + (d >> 14); g <= 4681 + (m >> 14); g++)
4908
- _.push(g);
4898
+ g >= 1 << 29 && (g = 1 << 29), g--;
4899
+ for (let m = 1 + (d >> 26); m <= 1 + (g >> 26); m++)
4900
+ _.push(m);
4901
+ for (let m = 9 + (d >> 23); m <= 9 + (g >> 23); m++)
4902
+ _.push(m);
4903
+ for (let m = 73 + (d >> 20); m <= 73 + (g >> 20); m++)
4904
+ _.push(m);
4905
+ for (let m = 585 + (d >> 17); m <= 585 + (g >> 17); m++)
4906
+ _.push(m);
4907
+ for (let m = 4681 + (d >> 14); m <= 4681 + (g >> 14); m++)
4908
+ _.push(m);
4909
4909
  return _;
4910
4910
  }
4911
4911
  return Pe;
@@ -4947,27 +4947,27 @@ function wl() {
4947
4947
  return oo || (oo = 1, (function(e) {
4948
4948
  var t = Qt && Qt.__awaiter || function(D, w, E, L) {
4949
4949
  function y(d) {
4950
- return d instanceof E ? d : new E(function(m) {
4951
- m(d);
4950
+ return d instanceof E ? d : new E(function(g) {
4951
+ g(d);
4952
4952
  });
4953
4953
  }
4954
- return new (E || (E = Promise))(function(d, m) {
4954
+ return new (E || (E = Promise))(function(d, g) {
4955
4955
  function _(C) {
4956
4956
  try {
4957
4957
  x(L.next(C));
4958
4958
  } catch (j) {
4959
- m(j);
4959
+ g(j);
4960
4960
  }
4961
4961
  }
4962
- function g(C) {
4962
+ function m(C) {
4963
4963
  try {
4964
4964
  x(L.throw(C));
4965
4965
  } catch (j) {
4966
- m(j);
4966
+ g(j);
4967
4967
  }
4968
4968
  }
4969
4969
  function x(C) {
4970
- C.done ? d(C.value) : y(C.value).then(_, g);
4970
+ C.done ? d(C.value) : y(C.value).then(_, m);
4971
4971
  }
4972
4972
  x((L = L.apply(D, w || [])).next());
4973
4973
  });
@@ -4999,34 +4999,34 @@ function wl() {
4999
4999
  }
5000
5000
  read(w, E, L) {
5001
5001
  return t(this, void 0, void 0, function* () {
5002
- const y = yield this.getIndexData(), m = (yield this.getHeaderData()).chromToId[w], _ = r.blocksForRange(y.refData[m], E, L);
5003
- return yield v(this.bamDataLoader, _, m, w, E, L);
5002
+ const y = yield this.getIndexData(), g = (yield this.getHeaderData()).chromToId[w], _ = r.blocksForRange(y.refData[g], E, L);
5003
+ return yield v(this.bamDataLoader, _, g, w, E, L);
5004
5004
  });
5005
5005
  }
5006
5006
  };
5007
5007
  e.BamReader = b;
5008
5008
  function v(D, w, E, L, y, d) {
5009
5009
  return t(this, void 0, void 0, function* () {
5010
- const m = Array();
5010
+ const g = Array();
5011
5011
  for (let _ of w) {
5012
- const g = _.end.blockPosition + 65536 - _.start.blockPosition, x = yield D.load(_.start.blockPosition, g), C = i.bgzfUnzip(x);
5013
- k(C.slice(_.start.dataPosition), E, L, y, d).forEach((M) => m.push(M));
5012
+ const m = _.end.blockPosition + 65536 - _.start.blockPosition, x = yield D.load(_.start.blockPosition, m), C = i.bgzfUnzip(x);
5013
+ k(C.slice(_.start.dataPosition), E, L, y, d).forEach((M) => g.push(M));
5014
5014
  }
5015
- return m;
5015
+ return g;
5016
5016
  });
5017
5017
  }
5018
5018
  e.readBam = v;
5019
5019
  function k(D, w, E, L, y) {
5020
- const d = new a.BinaryParser(D), m = new Array();
5020
+ const d = new a.BinaryParser(D), g = new Array();
5021
5021
  for (; d.position < D.byteLength; ) {
5022
- const _ = d.getInt(), g = d.position + _;
5022
+ const _ = d.getInt(), m = d.position + _;
5023
5023
  if (_ + d.position > D.byteLength)
5024
5024
  break;
5025
5025
  const x = d.getInt(), C = d.getInt(), j = d.getByte(), M = d.getByte();
5026
5026
  d.getUShort();
5027
5027
  const B = d.getUShort(), A = d.getUShort(), q = !o(A, s.READ_STRAND), N = d.getInt(), V = d.getInt(), W = d.getInt(), ae = d.getInt(), ne = d.getString(j);
5028
5028
  if (x === -1 || w !== x || C > y || C + N < L) {
5029
- d.position = g;
5029
+ d.position = m;
5030
5030
  continue;
5031
5031
  }
5032
5032
  const F = new Array();
@@ -5043,7 +5043,7 @@ function wl() {
5043
5043
  const le = K.slice(0, N).join(""), Y = new Array();
5044
5044
  for (let J = 0; J < N; J++)
5045
5045
  Y.push(d.getByte());
5046
- V >= 0 && o(A, s.MATE_STRAND), m.push({
5046
+ V >= 0 && o(A, s.MATE_STRAND), g.push({
5047
5047
  chr: E,
5048
5048
  start: C,
5049
5049
  flags: A,
@@ -5055,9 +5055,9 @@ function wl() {
5055
5055
  seq: le,
5056
5056
  phredQualities: Y,
5057
5057
  lengthOnRef: G
5058
- }), d.position = g;
5058
+ }), d.position = m;
5059
5059
  }
5060
- return m;
5060
+ return g;
5061
5061
  }
5062
5062
  })(Qt)), Qt;
5063
5063
  }
@@ -5263,7 +5263,7 @@ lr`
5263
5263
  }
5264
5264
  }
5265
5265
  `;
5266
- async function mh(e, t, n) {
5266
+ async function gh(e, t, n) {
5267
5267
  return await Mt(e, t.expandedDomain, t.preRenderedWidth, n);
5268
5268
  }
5269
5269
  async function jl(e) {
@@ -5271,7 +5271,7 @@ async function jl(e) {
5271
5271
  return t.fillWithZero && Cl(i.data), i;
5272
5272
  }
5273
5273
  async function Ml(e) {
5274
- const { track: t, expandedDomain: n, preRenderedWidth: r } = e, i = t.schema ? mc(t.schema) : void 0;
5274
+ const { track: t, expandedDomain: n, preRenderedWidth: r } = e, i = t.schema ? gc(t.schema) : void 0;
5275
5275
  return await Mt(t.url, n, r, i);
5276
5276
  }
5277
5277
  async function Bl(e) {
@@ -5390,16 +5390,16 @@ async function $l(e) {
5390
5390
  return await e.track.fetcher(e);
5391
5391
  }
5392
5392
  const zl = {
5393
- [me.BigWig]: jl,
5394
- [me.BigBed]: Ml,
5395
- [me.Transcript]: Bl,
5396
- [me.Motif]: Il,
5397
- [me.Importance]: Ol,
5398
- [me.BulkBed]: Pl,
5399
- [me.MethylC]: Al,
5400
- [me.LDTrack]: Nl,
5401
- [me.Manhattan]: ql,
5402
- [me.Custom]: $l
5393
+ [ge.BigWig]: jl,
5394
+ [ge.BigBed]: Ml,
5395
+ [ge.Transcript]: Bl,
5396
+ [ge.Motif]: Il,
5397
+ [ge.Importance]: Ol,
5398
+ [ge.BulkBed]: Pl,
5399
+ [ge.MethylC]: Al,
5400
+ [ge.LDTrack]: Nl,
5401
+ [ge.Manhattan]: ql,
5402
+ [ge.Custom]: $l
5403
5403
  };
5404
5404
  function Fl() {
5405
5405
  const e = Qs(), t = xe((h) => h.tracks), n = fe((h) => h.domain), r = fe((h) => h.getExpandedDomain), i = fe((h) => h.setDelta), a = fe((h) => h.trackWidth), o = fe((h) => h.multiplier), s = nt((h) => h.isFetching), c = nt((h) => h.setFetching), u = nt((h) => h.setMultipleTrackData), p = nt((h) => h.getTrackData);
@@ -5407,7 +5407,7 @@ function Fl() {
5407
5407
  if (s || t.length === 0) return;
5408
5408
  (async () => {
5409
5409
  if (c(!0), t.filter(
5410
- (y) => y.trackType !== me.LDTrack && y.trackType !== me.Manhattan
5410
+ (y) => y.trackType !== ge.LDTrack && y.trackType !== ge.Manhattan
5411
5411
  ).length === 0) {
5412
5412
  c(!1);
5413
5413
  return;
@@ -5422,20 +5422,20 @@ function Fl() {
5422
5422
  const d = zl[y.trackType];
5423
5423
  if (!d)
5424
5424
  throw new Error(`No fetcher found for track type: ${y.trackType}`);
5425
- const m = await d({
5425
+ const g = await d({
5426
5426
  track: y,
5427
5427
  domain: n,
5428
5428
  expandedDomain: v,
5429
5429
  preRenderedWidth: k,
5430
5430
  queries: D
5431
5431
  });
5432
- return { id: y.id, ...m };
5432
+ return { id: y.id, ...g };
5433
5433
  })
5434
5434
  )).map((y, d) => {
5435
- const m = t[d].id;
5435
+ const g = t[d].id;
5436
5436
  if (y.status === "fulfilled")
5437
5437
  return {
5438
- id: m,
5438
+ id: g,
5439
5439
  state: {
5440
5440
  data: y.value.data,
5441
5441
  error: y.value.error
@@ -5443,7 +5443,7 @@ function Fl() {
5443
5443
  };
5444
5444
  const _ = y.reason instanceof Error ? y.reason.message : "Unknown error";
5445
5445
  return {
5446
- id: m,
5446
+ id: g,
5447
5447
  state: {
5448
5448
  data: null,
5449
5449
  error: _
@@ -5493,7 +5493,7 @@ const Ss = (e, t, n) => {
5493
5493
  function it(e, t) {
5494
5494
  return ` M ${e} ${t}`;
5495
5495
  }
5496
- function ge(e, t) {
5496
+ function me(e, t) {
5497
5497
  return ` L ${e} ${t}`;
5498
5498
  }
5499
5499
  function et({
@@ -5683,18 +5683,18 @@ function Ts({
5683
5683
  /* @__PURE__ */ f.jsx("rect", { width: p, height: n, fill: "transparent" }),
5684
5684
  /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: e, width: p, height: n }) }),
5685
5685
  k.map((L, y) => {
5686
- const d = Ls({ ...L.row, start: L.start, end: L.end }, v), m = n * (1 - 2 * a), _ = n * a;
5686
+ const d = Ls({ ...L.row, start: L.start, end: L.end }, v), g = n * (1 - 2 * a), _ = n * a;
5687
5687
  return /* @__PURE__ */ f.jsx(
5688
5688
  "rect",
5689
5689
  {
5690
5690
  style: { cursor: o ? "pointer" : "default" },
5691
- height: m,
5691
+ height: g,
5692
5692
  width: L.end - L.start,
5693
5693
  x: L.start,
5694
5694
  y: _,
5695
5695
  fill: L.color || r,
5696
5696
  onClick: () => D(d),
5697
- onMouseOver: (g) => w(d, L.name || "", g),
5697
+ onMouseOver: (m) => w(d, L.name || "", m),
5698
5698
  onMouseOut: () => E(d)
5699
5699
  },
5700
5700
  `${e}_${y}`
@@ -5785,7 +5785,7 @@ function ru({ id: e, data: t, color: n, height: r, dimensions: i, tooltip: a })
5785
5785
  const q = M(A.max);
5786
5786
  return pt(n, q / 1.25);
5787
5787
  });
5788
- }, [n, E, D]), y = ht((M) => M.text), { mouseState: d, updateMouseState: m, clearMouseState: _ } = di(k, c, v, o), g = ce(() => {
5788
+ }, [n, E, D]), y = ht((M) => M.text), { mouseState: d, updateMouseState: g, clearMouseState: _ } = di(k, c, v, o), m = ce(() => {
5789
5789
  var M;
5790
5790
  return (M = d.pos) != null && M.x ? d.pos.x - v + o : 0;
5791
5791
  }, [(j = d.pos) == null ? void 0 : j.x, v, o]), { handleHover: x, handleLeave: C } = et({
@@ -5797,7 +5797,7 @@ function ru({ id: e, data: t, color: n, height: r, dimensions: i, tooltip: a })
5797
5797
  return /* @__PURE__ */ f.jsxs("g", { width: c, height: r, transform: `translate(-${o}, 0)`, children: [
5798
5798
  /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx("linearGradient", { id: e, children: L.map((M, B) => /* @__PURE__ */ f.jsx("stop", { offset: `${B}%`, stopColor: M }, `${e}_pt_${B}`)) }) }),
5799
5799
  /* @__PURE__ */ f.jsx("rect", { width: c, x: 0, y: r / 3, height: r / 3, fill: `url('#${e}')` }),
5800
- !b && g && /* @__PURE__ */ f.jsx("line", { stroke: y, x1: g, x2: g, y1: 0, y2: r }),
5800
+ !b && m && /* @__PURE__ */ f.jsx("line", { stroke: y, x1: m, x2: m, y1: 0, y2: r }),
5801
5801
  /* @__PURE__ */ f.jsx(
5802
5802
  "rect",
5803
5803
  {
@@ -5806,7 +5806,7 @@ function ru({ id: e, data: t, color: n, height: r, dimensions: i, tooltip: a })
5806
5806
  transform: `translate(${o}, 0)`,
5807
5807
  fill: "transparent",
5808
5808
  onMouseMove: (M) => {
5809
- if (m(M), d.index === null) return;
5809
+ if (g(M), d.index === null) return;
5810
5810
  const B = t[d.index], A = B.max, q = B.min;
5811
5811
  if (!(!A || !q)) {
5812
5812
  if (A === q || !w) {
@@ -5831,7 +5831,7 @@ function hi() {
5831
5831
  t(r.width / n.current.viewBox.baseVal.width);
5832
5832
  }, [n]), e;
5833
5833
  }
5834
- var rr = { exports: {} }, $n = {}, mr = { exports: {} }, vr = { exports: {} }, we = {};
5834
+ var rr = { exports: {} }, $n = {}, gr = { exports: {} }, vr = { exports: {} }, we = {};
5835
5835
  /** @license React v16.13.1
5836
5836
  * react-is.production.min.js
5837
5837
  *
@@ -5845,27 +5845,27 @@ function nu() {
5845
5845
  if (uo) return we;
5846
5846
  uo = 1;
5847
5847
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = 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, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, D = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
5848
- function y(m) {
5849
- if (typeof m == "object" && m !== null) {
5850
- var _ = m.$$typeof;
5848
+ function y(g) {
5849
+ if (typeof g == "object" && g !== null) {
5850
+ var _ = g.$$typeof;
5851
5851
  switch (_) {
5852
5852
  case t:
5853
- switch (m = m.type, m) {
5853
+ switch (g = g.type, g) {
5854
5854
  case c:
5855
5855
  case u:
5856
5856
  case r:
5857
5857
  case a:
5858
5858
  case i:
5859
5859
  case h:
5860
- return m;
5860
+ return g;
5861
5861
  default:
5862
- switch (m = m && m.$$typeof, m) {
5862
+ switch (g = g && g.$$typeof, g) {
5863
5863
  case s:
5864
5864
  case p:
5865
5865
  case k:
5866
5866
  case v:
5867
5867
  case o:
5868
- return m;
5868
+ return g;
5869
5869
  default:
5870
5870
  return _;
5871
5871
  }
@@ -5875,35 +5875,35 @@ function nu() {
5875
5875
  }
5876
5876
  }
5877
5877
  }
5878
- function d(m) {
5879
- return y(m) === u;
5880
- }
5881
- return we.AsyncMode = c, we.ConcurrentMode = u, we.ContextConsumer = s, we.ContextProvider = o, we.Element = t, we.ForwardRef = p, we.Fragment = r, we.Lazy = k, we.Memo = v, we.Portal = n, we.Profiler = a, we.StrictMode = i, we.Suspense = h, we.isAsyncMode = function(m) {
5882
- return d(m) || y(m) === c;
5883
- }, we.isConcurrentMode = d, we.isContextConsumer = function(m) {
5884
- return y(m) === s;
5885
- }, we.isContextProvider = function(m) {
5886
- return y(m) === o;
5887
- }, we.isElement = function(m) {
5888
- return typeof m == "object" && m !== null && m.$$typeof === t;
5889
- }, we.isForwardRef = function(m) {
5890
- return y(m) === p;
5891
- }, we.isFragment = function(m) {
5892
- return y(m) === r;
5893
- }, we.isLazy = function(m) {
5894
- return y(m) === k;
5895
- }, we.isMemo = function(m) {
5896
- return y(m) === v;
5897
- }, we.isPortal = function(m) {
5898
- return y(m) === n;
5899
- }, we.isProfiler = function(m) {
5900
- return y(m) === a;
5901
- }, we.isStrictMode = function(m) {
5902
- return y(m) === i;
5903
- }, we.isSuspense = function(m) {
5904
- return y(m) === h;
5905
- }, we.isValidElementType = function(m) {
5906
- return typeof m == "string" || typeof m == "function" || m === r || m === u || m === a || m === i || m === h || m === b || typeof m == "object" && m !== null && (m.$$typeof === k || m.$$typeof === v || m.$$typeof === o || m.$$typeof === s || m.$$typeof === p || m.$$typeof === w || m.$$typeof === E || m.$$typeof === L || m.$$typeof === D);
5878
+ function d(g) {
5879
+ return y(g) === u;
5880
+ }
5881
+ return we.AsyncMode = c, we.ConcurrentMode = u, we.ContextConsumer = s, we.ContextProvider = o, we.Element = t, we.ForwardRef = p, we.Fragment = r, we.Lazy = k, we.Memo = v, we.Portal = n, we.Profiler = a, we.StrictMode = i, we.Suspense = h, we.isAsyncMode = function(g) {
5882
+ return d(g) || y(g) === c;
5883
+ }, we.isConcurrentMode = d, we.isContextConsumer = function(g) {
5884
+ return y(g) === s;
5885
+ }, we.isContextProvider = function(g) {
5886
+ return y(g) === o;
5887
+ }, we.isElement = function(g) {
5888
+ return typeof g == "object" && g !== null && g.$$typeof === t;
5889
+ }, we.isForwardRef = function(g) {
5890
+ return y(g) === p;
5891
+ }, we.isFragment = function(g) {
5892
+ return y(g) === r;
5893
+ }, we.isLazy = function(g) {
5894
+ return y(g) === k;
5895
+ }, we.isMemo = function(g) {
5896
+ return y(g) === v;
5897
+ }, we.isPortal = function(g) {
5898
+ return y(g) === n;
5899
+ }, we.isProfiler = function(g) {
5900
+ return y(g) === a;
5901
+ }, we.isStrictMode = function(g) {
5902
+ return y(g) === i;
5903
+ }, we.isSuspense = function(g) {
5904
+ return y(g) === h;
5905
+ }, we.isValidElementType = function(g) {
5906
+ return typeof g == "string" || typeof g == "function" || g === r || g === u || g === a || g === i || g === h || g === b || typeof g == "object" && g !== null && (g.$$typeof === k || g.$$typeof === v || g.$$typeof === o || g.$$typeof === s || g.$$typeof === p || g.$$typeof === w || g.$$typeof === E || g.$$typeof === L || g.$$typeof === D);
5907
5907
  }, we.typeOf = y, we;
5908
5908
  }
5909
5909
  var Se = {};
@@ -5955,7 +5955,7 @@ function iu() {
5955
5955
  }
5956
5956
  }
5957
5957
  }
5958
- var m = c, _ = u, g = s, x = o, C = t, j = p, M = r, B = k, A = v, q = n, N = a, V = i, W = h, ae = !1;
5958
+ var g = c, _ = u, m = s, x = o, C = t, j = p, M = r, B = k, A = v, q = n, N = a, V = i, W = h, ae = !1;
5959
5959
  function ne(Q) {
5960
5960
  return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(Q) || d(Q) === c;
5961
5961
  }
@@ -5995,7 +5995,7 @@ function iu() {
5995
5995
  function ke(Q) {
5996
5996
  return d(Q) === h;
5997
5997
  }
5998
- Se.AsyncMode = m, Se.ConcurrentMode = _, Se.ContextConsumer = g, Se.ContextProvider = x, Se.Element = C, Se.ForwardRef = j, Se.Fragment = M, Se.Lazy = B, Se.Memo = A, Se.Portal = q, Se.Profiler = N, Se.StrictMode = V, Se.Suspense = W, Se.isAsyncMode = ne, Se.isConcurrentMode = F, Se.isContextConsumer = I, Se.isContextProvider = G, Se.isElement = K, Se.isForwardRef = te, Se.isFragment = le, Se.isLazy = Y, Se.isMemo = J, Se.isPortal = re, Se.isProfiler = de, Se.isStrictMode = ue, Se.isSuspense = ke, Se.isValidElementType = y, Se.typeOf = d;
5998
+ Se.AsyncMode = g, Se.ConcurrentMode = _, Se.ContextConsumer = m, Se.ContextProvider = x, Se.Element = C, Se.ForwardRef = j, Se.Fragment = M, Se.Lazy = B, Se.Memo = A, Se.Portal = q, Se.Profiler = N, Se.StrictMode = V, Se.Suspense = W, Se.isAsyncMode = ne, Se.isConcurrentMode = F, Se.isContextConsumer = I, Se.isContextProvider = G, Se.isElement = K, Se.isForwardRef = te, Se.isFragment = le, Se.isLazy = Y, Se.isMemo = J, Se.isPortal = re, Se.isProfiler = de, Se.isStrictMode = ue, Se.isSuspense = ke, Se.isValidElementType = y, Se.typeOf = d;
5999
5999
  })()), Se;
6000
6000
  }
6001
6001
  var ho;
@@ -6053,16 +6053,16 @@ function au() {
6053
6053
  return c;
6054
6054
  }, zn;
6055
6055
  }
6056
- var Fn, go;
6056
+ var Fn, mo;
6057
6057
  function pi() {
6058
- if (go) return Fn;
6059
- go = 1;
6058
+ if (mo) return Fn;
6059
+ mo = 1;
6060
6060
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
6061
6061
  return Fn = e, Fn;
6062
6062
  }
6063
- var Un, mo;
6063
+ var Un, go;
6064
6064
  function Rs() {
6065
- return mo || (mo = 1, Un = Function.call.bind(Object.prototype.hasOwnProperty)), Un;
6065
+ return go || (go = 1, Un = Function.call.bind(Object.prototype.hasOwnProperty)), Un;
6066
6066
  }
6067
6067
  var Hn, vo;
6068
6068
  function ou() {
@@ -6149,11 +6149,11 @@ function su() {
6149
6149
  any: L(),
6150
6150
  arrayOf: y,
6151
6151
  element: d(),
6152
- elementType: m(),
6152
+ elementType: g(),
6153
6153
  instanceOf: _,
6154
6154
  node: j(),
6155
6155
  objectOf: x,
6156
- oneOf: g,
6156
+ oneOf: m,
6157
6157
  oneOfType: C,
6158
6158
  shape: B,
6159
6159
  exact: A
@@ -6234,7 +6234,7 @@ function su() {
6234
6234
  }
6235
6235
  return w(F);
6236
6236
  }
6237
- function m() {
6237
+ function g() {
6238
6238
  function F(I, G, K, te, le) {
6239
6239
  var Y = I[G];
6240
6240
  if (!e.isValidElementType(Y)) {
@@ -6255,7 +6255,7 @@ function su() {
6255
6255
  }
6256
6256
  return w(I);
6257
6257
  }
6258
- function g(F) {
6258
+ function m(F) {
6259
6259
  if (!Array.isArray(F))
6260
6260
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
6261
6261
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -6484,13 +6484,13 @@ function cu() {
6484
6484
  }
6485
6485
  var _o;
6486
6486
  function Ds() {
6487
- if (_o) return mr.exports;
6487
+ if (_o) return gr.exports;
6488
6488
  if (_o = 1, process.env.NODE_ENV !== "production") {
6489
6489
  var e = Cs(), t = !0;
6490
- mr.exports = /* @__PURE__ */ su()(e.isElement, t);
6490
+ gr.exports = /* @__PURE__ */ su()(e.isElement, t);
6491
6491
  } else
6492
- mr.exports = /* @__PURE__ */ cu()();
6493
- return mr.exports;
6492
+ gr.exports = /* @__PURE__ */ cu()();
6493
+ return gr.exports;
6494
6494
  }
6495
6495
  var xr = { exports: {} }, bo;
6496
6496
  function lu() {
@@ -6568,13 +6568,13 @@ function uu() {
6568
6568
  return _t.default = t(), _t;
6569
6569
  }
6570
6570
  var ko;
6571
- function gi() {
6571
+ function mi() {
6572
6572
  if (ko) return je;
6573
6573
  ko = 1, Object.defineProperty(je, "__esModule", {
6574
6574
  value: !0
6575
- }), je.addClassName = m, je.addEvent = o, je.addUserSelectStyles = L, je.createCSSTransform = v, je.createSVGTransform = k, je.getTouch = w, je.getTouchIdentifier = E, je.getTranslation = D, je.innerHeight = p, je.innerWidth = h, je.matchesSelector = i, je.matchesSelectorAndParentsTo = a, je.offsetXYFromParent = b, je.outerHeight = c, je.outerWidth = u, je.removeClassName = _, je.removeEvent = s, je.scheduleRemoveUserSelectStyles = y;
6575
+ }), je.addClassName = g, je.addEvent = o, je.addUserSelectStyles = L, je.createCSSTransform = v, je.createSVGTransform = k, je.getTouch = w, je.getTouchIdentifier = E, je.getTranslation = D, je.innerHeight = p, je.innerWidth = h, je.matchesSelector = i, je.matchesSelectorAndParentsTo = a, je.offsetXYFromParent = b, je.outerHeight = c, je.outerWidth = u, je.removeClassName = _, je.removeEvent = s, je.scheduleRemoveUserSelectStyles = y;
6576
6576
  var e = Lr(), t = n(uu());
6577
- function n(g, x) {
6577
+ function n(m, x) {
6578
6578
  if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap();
6579
6579
  return (n = function(M, B) {
6580
6580
  if (!B && M && M.__esModule) return M;
@@ -6586,16 +6586,16 @@ function gi() {
6586
6586
  }
6587
6587
  for (const V in M) V !== "default" && {}.hasOwnProperty.call(M, V) && ((q = (A = Object.defineProperty) && Object.getOwnPropertyDescriptor(M, V)) && (q.get || q.set) ? A(N, V, q) : N[V] = M[V]);
6588
6588
  return N;
6589
- })(g, x);
6589
+ })(m, x);
6590
6590
  }
6591
6591
  let r = "";
6592
- function i(g, x) {
6592
+ function i(m, x) {
6593
6593
  return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(C) {
6594
- return (0, e.isFunction)(g[C]);
6595
- })), (0, e.isFunction)(g[r]) ? g[r](x) : !1;
6594
+ return (0, e.isFunction)(m[C]);
6595
+ })), (0, e.isFunction)(m[r]) ? m[r](x) : !1;
6596
6596
  }
6597
- function a(g, x, C) {
6598
- let j = g;
6597
+ function a(m, x, C) {
6598
+ let j = m;
6599
6599
  do {
6600
6600
  if (i(j, x)) return !0;
6601
6601
  if (j === C) return !1;
@@ -6603,108 +6603,108 @@ function gi() {
6603
6603
  } while (j);
6604
6604
  return !1;
6605
6605
  }
6606
- function o(g, x, C, j) {
6607
- if (!g) return;
6606
+ function o(m, x, C, j) {
6607
+ if (!m) return;
6608
6608
  const M = {
6609
6609
  capture: !0,
6610
6610
  ...j
6611
6611
  };
6612
- g.addEventListener ? g.addEventListener(x, C, M) : g.attachEvent ? g.attachEvent("on" + x, C) : g["on" + x] = C;
6612
+ m.addEventListener ? m.addEventListener(x, C, M) : m.attachEvent ? m.attachEvent("on" + x, C) : m["on" + x] = C;
6613
6613
  }
6614
- function s(g, x, C, j) {
6615
- if (!g) return;
6614
+ function s(m, x, C, j) {
6615
+ if (!m) return;
6616
6616
  const M = {
6617
6617
  capture: !0,
6618
6618
  ...j
6619
6619
  };
6620
- g.removeEventListener ? g.removeEventListener(x, C, M) : g.detachEvent ? g.detachEvent("on" + x, C) : g["on" + x] = null;
6620
+ m.removeEventListener ? m.removeEventListener(x, C, M) : m.detachEvent ? m.detachEvent("on" + x, C) : m["on" + x] = null;
6621
6621
  }
6622
- function c(g) {
6623
- let x = g.clientHeight;
6624
- const C = g.ownerDocument.defaultView.getComputedStyle(g);
6622
+ function c(m) {
6623
+ let x = m.clientHeight;
6624
+ const C = m.ownerDocument.defaultView.getComputedStyle(m);
6625
6625
  return x += (0, e.int)(C.borderTopWidth), x += (0, e.int)(C.borderBottomWidth), x;
6626
6626
  }
6627
- function u(g) {
6628
- let x = g.clientWidth;
6629
- const C = g.ownerDocument.defaultView.getComputedStyle(g);
6627
+ function u(m) {
6628
+ let x = m.clientWidth;
6629
+ const C = m.ownerDocument.defaultView.getComputedStyle(m);
6630
6630
  return x += (0, e.int)(C.borderLeftWidth), x += (0, e.int)(C.borderRightWidth), x;
6631
6631
  }
6632
- function p(g) {
6633
- let x = g.clientHeight;
6634
- const C = g.ownerDocument.defaultView.getComputedStyle(g);
6632
+ function p(m) {
6633
+ let x = m.clientHeight;
6634
+ const C = m.ownerDocument.defaultView.getComputedStyle(m);
6635
6635
  return x -= (0, e.int)(C.paddingTop), x -= (0, e.int)(C.paddingBottom), x;
6636
6636
  }
6637
- function h(g) {
6638
- let x = g.clientWidth;
6639
- const C = g.ownerDocument.defaultView.getComputedStyle(g);
6637
+ function h(m) {
6638
+ let x = m.clientWidth;
6639
+ const C = m.ownerDocument.defaultView.getComputedStyle(m);
6640
6640
  return x -= (0, e.int)(C.paddingLeft), x -= (0, e.int)(C.paddingRight), x;
6641
6641
  }
6642
- function b(g, x, C) {
6642
+ function b(m, x, C) {
6643
6643
  const M = x === x.ownerDocument.body ? {
6644
6644
  left: 0,
6645
6645
  top: 0
6646
- } : x.getBoundingClientRect(), B = (g.clientX + x.scrollLeft - M.left) / C, A = (g.clientY + x.scrollTop - M.top) / C;
6646
+ } : x.getBoundingClientRect(), B = (m.clientX + x.scrollLeft - M.left) / C, A = (m.clientY + x.scrollTop - M.top) / C;
6647
6647
  return {
6648
6648
  x: B,
6649
6649
  y: A
6650
6650
  };
6651
6651
  }
6652
- function v(g, x) {
6653
- const C = D(g, x, "px");
6652
+ function v(m, x) {
6653
+ const C = D(m, x, "px");
6654
6654
  return {
6655
6655
  [(0, t.browserPrefixToKey)("transform", t.default)]: C
6656
6656
  };
6657
6657
  }
6658
- function k(g, x) {
6659
- return D(g, x, "");
6658
+ function k(m, x) {
6659
+ return D(m, x, "");
6660
6660
  }
6661
- function D(g, x, C) {
6661
+ function D(m, x, C) {
6662
6662
  let {
6663
6663
  x: j,
6664
6664
  y: M
6665
- } = g, B = `translate(${j}${C},${M}${C})`;
6665
+ } = m, B = `translate(${j}${C},${M}${C})`;
6666
6666
  if (x) {
6667
6667
  const A = `${typeof x.x == "string" ? x.x : x.x + C}`, q = `${typeof x.y == "string" ? x.y : x.y + C}`;
6668
6668
  B = `translate(${A}, ${q})` + B;
6669
6669
  }
6670
6670
  return B;
6671
6671
  }
6672
- function w(g, x) {
6673
- return g.targetTouches && (0, e.findInArray)(g.targetTouches, (C) => x === C.identifier) || g.changedTouches && (0, e.findInArray)(g.changedTouches, (C) => x === C.identifier);
6672
+ function w(m, x) {
6673
+ return m.targetTouches && (0, e.findInArray)(m.targetTouches, (C) => x === C.identifier) || m.changedTouches && (0, e.findInArray)(m.changedTouches, (C) => x === C.identifier);
6674
6674
  }
6675
- function E(g) {
6676
- if (g.targetTouches && g.targetTouches[0]) return g.targetTouches[0].identifier;
6677
- if (g.changedTouches && g.changedTouches[0]) return g.changedTouches[0].identifier;
6675
+ function E(m) {
6676
+ if (m.targetTouches && m.targetTouches[0]) return m.targetTouches[0].identifier;
6677
+ if (m.changedTouches && m.changedTouches[0]) return m.changedTouches[0].identifier;
6678
6678
  }
6679
- function L(g) {
6680
- if (!g) return;
6681
- let x = g.getElementById("react-draggable-style-el");
6682
- x || (x = g.createElement("style"), x.type = "text/css", x.id = "react-draggable-style-el", x.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
6679
+ function L(m) {
6680
+ if (!m) return;
6681
+ let x = m.getElementById("react-draggable-style-el");
6682
+ x || (x = m.createElement("style"), x.type = "text/css", x.id = "react-draggable-style-el", x.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
6683
6683
  `, x.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
6684
- `, g.getElementsByTagName("head")[0].appendChild(x)), g.body && m(g.body, "react-draggable-transparent-selection");
6684
+ `, m.getElementsByTagName("head")[0].appendChild(x)), m.body && g(m.body, "react-draggable-transparent-selection");
6685
6685
  }
6686
- function y(g) {
6686
+ function y(m) {
6687
6687
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
6688
- d(g);
6689
- }) : d(g);
6688
+ d(m);
6689
+ }) : d(m);
6690
6690
  }
6691
- function d(g) {
6692
- if (g)
6691
+ function d(m) {
6692
+ if (m)
6693
6693
  try {
6694
- if (g.body && _(g.body, "react-draggable-transparent-selection"), g.selection)
6695
- g.selection.empty();
6694
+ if (m.body && _(m.body, "react-draggable-transparent-selection"), m.selection)
6695
+ m.selection.empty();
6696
6696
  else {
6697
- const x = (g.defaultView || window).getSelection();
6697
+ const x = (m.defaultView || window).getSelection();
6698
6698
  x && x.type !== "Caret" && x.removeAllRanges();
6699
6699
  }
6700
6700
  } catch {
6701
6701
  }
6702
6702
  }
6703
- function m(g, x) {
6704
- g.classList ? g.classList.add(x) : g.className.match(new RegExp(`(?:^|\\s)${x}(?!\\S)`)) || (g.className += ` ${x}`);
6703
+ function g(m, x) {
6704
+ m.classList ? m.classList.add(x) : m.className.match(new RegExp(`(?:^|\\s)${x}(?!\\S)`)) || (m.className += ` ${x}`);
6705
6705
  }
6706
- function _(g, x) {
6707
- g.classList ? g.classList.remove(x) : g.className = g.className.replace(new RegExp(`(?:^|\\s)${x}(?!\\S)`, "g"), "");
6706
+ function _(m, x) {
6707
+ m.classList ? m.classList.remove(x) : m.className = m.className.replace(new RegExp(`(?:^|\\s)${x}(?!\\S)`, "g"), "");
6708
6708
  }
6709
6709
  return je;
6710
6710
  }
@@ -6714,7 +6714,7 @@ function js() {
6714
6714
  Eo = 1, Object.defineProperty(ct, "__esModule", {
6715
6715
  value: !0
6716
6716
  }), ct.canDragX = i, ct.canDragY = a, ct.createCoreData = s, ct.createDraggableData = c, ct.getBoundPosition = n, ct.getControlPosition = o, ct.snapToGrid = r;
6717
- var e = Lr(), t = gi();
6717
+ var e = Lr(), t = mi();
6718
6718
  function n(h, b, v) {
6719
6719
  if (!h.props.bounds) return [b, v];
6720
6720
  let {
@@ -6729,12 +6729,12 @@ function js() {
6729
6729
  let L;
6730
6730
  if (k === "parent" ? L = D.parentNode : L = D.getRootNode().querySelector(k), !(L instanceof E.HTMLElement))
6731
6731
  throw new Error('Bounds selector "' + k + '" could not find an element.');
6732
- const y = L, d = E.getComputedStyle(D), m = E.getComputedStyle(y);
6732
+ const y = L, d = E.getComputedStyle(D), g = E.getComputedStyle(y);
6733
6733
  k = {
6734
- left: -D.offsetLeft + (0, e.int)(m.paddingLeft) + (0, e.int)(d.marginLeft),
6735
- top: -D.offsetTop + (0, e.int)(m.paddingTop) + (0, e.int)(d.marginTop),
6736
- right: (0, t.innerWidth)(y) - (0, t.outerWidth)(D) - D.offsetLeft + (0, e.int)(m.paddingRight) - (0, e.int)(d.marginRight),
6737
- bottom: (0, t.innerHeight)(y) - (0, t.outerHeight)(D) - D.offsetTop + (0, e.int)(m.paddingBottom) - (0, e.int)(d.marginBottom)
6734
+ left: -D.offsetLeft + (0, e.int)(g.paddingLeft) + (0, e.int)(d.marginLeft),
6735
+ top: -D.offsetTop + (0, e.int)(g.paddingTop) + (0, e.int)(d.marginTop),
6736
+ right: (0, t.innerWidth)(y) - (0, t.outerWidth)(D) - D.offsetLeft + (0, e.int)(g.paddingRight) - (0, e.int)(d.marginRight),
6737
+ bottom: (0, t.innerHeight)(y) - (0, t.outerHeight)(D) - D.offsetTop + (0, e.int)(g.paddingBottom) - (0, e.int)(d.marginBottom)
6738
6738
  };
6739
6739
  }
6740
6740
  return (0, e.isNum)(k.right) && (b = Math.min(b, k.right)), (0, e.isNum)(k.bottom) && (v = Math.min(v, k.bottom)), (0, e.isNum)(k.left) && (b = Math.max(b, k.left)), (0, e.isNum)(k.top) && (v = Math.max(v, k.top)), [b, v];
@@ -6819,7 +6819,7 @@ function fu() {
6819
6819
  To = 1, Object.defineProperty(nr, "__esModule", {
6820
6820
  value: !0
6821
6821
  }), nr.default = void 0;
6822
- var e = c(Te), t = s(/* @__PURE__ */ Ds()), n = s(Vo), r = gi(), i = js(), a = Lr(), o = s(Ms());
6822
+ var e = c(Te), t = s(/* @__PURE__ */ Ds()), n = s(Vo), r = mi(), i = js(), a = Lr(), o = s(Ms());
6823
6823
  function s(D) {
6824
6824
  return D && D.__esModule ? D : { default: D };
6825
6825
  }
@@ -6827,14 +6827,14 @@ function fu() {
6827
6827
  if (typeof WeakMap == "function") var E = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap();
6828
6828
  return (c = function(y, d) {
6829
6829
  if (!d && y && y.__esModule) return y;
6830
- var m, _, g = { __proto__: null, default: y };
6831
- if (y === null || typeof y != "object" && typeof y != "function") return g;
6832
- if (m = d ? L : E) {
6833
- if (m.has(y)) return m.get(y);
6834
- m.set(y, g);
6830
+ var g, _, m = { __proto__: null, default: y };
6831
+ if (y === null || typeof y != "object" && typeof y != "function") return m;
6832
+ if (g = d ? L : E) {
6833
+ if (g.has(y)) return g.get(y);
6834
+ g.set(y, m);
6835
6835
  }
6836
- for (const x in y) x !== "default" && {}.hasOwnProperty.call(y, x) && ((_ = (m = Object.defineProperty) && Object.getOwnPropertyDescriptor(y, x)) && (_.get || _.set) ? m(g, x, _) : g[x] = y[x]);
6837
- return g;
6836
+ for (const x in y) x !== "default" && {}.hasOwnProperty.call(y, x) && ((_ = (g = Object.defineProperty) && Object.getOwnPropertyDescriptor(y, x)) && (_.get || _.set) ? g(m, x, _) : m[x] = y[x]);
6837
+ return m;
6838
6838
  })(D, w);
6839
6839
  }
6840
6840
  function u(D, w, E) {
@@ -6884,10 +6884,10 @@ function fu() {
6884
6884
  const d = (0, i.getControlPosition)(w, y, this);
6885
6885
  if (d == null) return;
6886
6886
  const {
6887
- x: m,
6887
+ x: g,
6888
6888
  y: _
6889
- } = d, g = (0, i.createCoreData)(this, m, _);
6890
- (0, o.default)("DraggableCore: handleDragStart: %j", g), (0, o.default)("calling", this.props.onStart), !(this.props.onStart(w, g) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(L), this.dragging = !0, this.lastX = m, this.lastY = _, (0, r.addEvent)(L, v.move, this.handleDrag), (0, r.addEvent)(L, v.stop, this.handleDragStop));
6889
+ } = d, m = (0, i.createCoreData)(this, g, _);
6890
+ (0, o.default)("DraggableCore: handleDragStart: %j", m), (0, o.default)("calling", this.props.onStart), !(this.props.onStart(w, m) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(L), this.dragging = !0, this.lastX = g, this.lastY = _, (0, r.addEvent)(L, v.move, this.handleDrag), (0, r.addEvent)(L, v.stop, this.handleDragStop));
6891
6891
  }), u(this, "handleDrag", (w) => {
6892
6892
  const E = (0, i.getControlPosition)(w, this.touchIdentifier, this);
6893
6893
  if (E == null) return;
@@ -6896,17 +6896,17 @@ function fu() {
6896
6896
  y
6897
6897
  } = E;
6898
6898
  if (Array.isArray(this.props.grid)) {
6899
- let _ = L - this.lastX, g = y - this.lastY;
6900
- if ([_, g] = (0, i.snapToGrid)(this.props.grid, _, g), !_ && !g) return;
6901
- L = this.lastX + _, y = this.lastY + g;
6899
+ let _ = L - this.lastX, m = y - this.lastY;
6900
+ if ([_, m] = (0, i.snapToGrid)(this.props.grid, _, m), !_ && !m) return;
6901
+ L = this.lastX + _, y = this.lastY + m;
6902
6902
  }
6903
6903
  const d = (0, i.createCoreData)(this, L, y);
6904
6904
  if ((0, o.default)("DraggableCore: handleDrag: %j", d), this.props.onDrag(w, d) === !1 || this.mounted === !1) {
6905
6905
  try {
6906
6906
  this.handleDragStop(new MouseEvent("mouseup"));
6907
6907
  } catch {
6908
- const g = document.createEvent("MouseEvents");
6909
- g.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(g);
6908
+ const m = document.createEvent("MouseEvents");
6909
+ m.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(m);
6910
6910
  }
6911
6911
  return;
6912
6912
  }
@@ -6920,8 +6920,8 @@ function fu() {
6920
6920
  y
6921
6921
  } = E;
6922
6922
  if (Array.isArray(this.props.grid)) {
6923
- let g = L - this.lastX || 0, x = y - this.lastY || 0;
6924
- [g, x] = (0, i.snapToGrid)(this.props.grid, g, x), L = this.lastX + g, y = this.lastY + x;
6923
+ let m = L - this.lastX || 0, x = y - this.lastY || 0;
6924
+ [m, x] = (0, i.snapToGrid)(this.props.grid, m, x), L = this.lastX + m, y = this.lastY + x;
6925
6925
  }
6926
6926
  const d = (0, i.createCoreData)(this, L, y);
6927
6927
  if (this.props.onStop(w, d) === !1 || this.mounted === !1) return !1;
@@ -7125,21 +7125,21 @@ function du() {
7125
7125
  return c.default;
7126
7126
  }
7127
7127
  }), e.default = void 0;
7128
- var t = h(Te), n = p(/* @__PURE__ */ Ds()), r = p(Vo), i = lu(), a = gi(), o = js(), s = Lr(), c = p(fu()), u = p(Ms());
7128
+ var t = h(Te), n = p(/* @__PURE__ */ Ds()), r = p(Vo), i = lu(), a = mi(), o = js(), s = Lr(), c = p(fu()), u = p(Ms());
7129
7129
  function p(E) {
7130
7130
  return E && E.__esModule ? E : { default: E };
7131
7131
  }
7132
7132
  function h(E, L) {
7133
7133
  if (typeof WeakMap == "function") var y = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap();
7134
- return (h = function(m, _) {
7135
- if (!_ && m && m.__esModule) return m;
7136
- var g, x, C = { __proto__: null, default: m };
7137
- if (m === null || typeof m != "object" && typeof m != "function") return C;
7138
- if (g = _ ? d : y) {
7139
- if (g.has(m)) return g.get(m);
7140
- g.set(m, C);
7134
+ return (h = function(g, _) {
7135
+ if (!_ && g && g.__esModule) return g;
7136
+ var m, x, C = { __proto__: null, default: g };
7137
+ if (g === null || typeof g != "object" && typeof g != "function") return C;
7138
+ if (m = _ ? d : y) {
7139
+ if (m.has(g)) return m.get(g);
7140
+ m.set(g, C);
7141
7141
  }
7142
- for (const j in m) j !== "default" && {}.hasOwnProperty.call(m, j) && ((x = (g = Object.defineProperty) && Object.getOwnPropertyDescriptor(m, j)) && (x.get || x.set) ? g(C, j, x) : C[j] = m[j]);
7142
+ for (const j in g) j !== "default" && {}.hasOwnProperty.call(g, j) && ((x = (m = Object.defineProperty) && Object.getOwnPropertyDescriptor(g, j)) && (x.get || x.set) ? m(C, j, x) : C[j] = g[j]);
7143
7143
  return C;
7144
7144
  })(E, L);
7145
7145
  }
@@ -7176,11 +7176,11 @@ function du() {
7176
7176
  let {
7177
7177
  position: d
7178
7178
  } = L, {
7179
- prevPropsPosition: m
7179
+ prevPropsPosition: g
7180
7180
  } = y;
7181
- return d && (!m || d.x !== m.x || d.y !== m.y) ? ((0, u.default)("Draggable: getDerivedStateFromProps %j", {
7181
+ return d && (!g || d.x !== g.x || d.y !== g.y) ? ((0, u.default)("Draggable: getDerivedStateFromProps %j", {
7182
7182
  position: d,
7183
- prevPropsPosition: m
7183
+ prevPropsPosition: g
7184
7184
  }), {
7185
7185
  x: d.x,
7186
7186
  y: d.y,
@@ -7199,9 +7199,9 @@ function du() {
7199
7199
  }), v(this, "onDrag", (y, d) => {
7200
7200
  if (!this.state.dragging) return !1;
7201
7201
  (0, u.default)("Draggable: onDrag: %j", d);
7202
- const m = (0, o.createDraggableData)(this, d), _ = {
7203
- x: m.x,
7204
- y: m.y,
7202
+ const g = (0, o.createDraggableData)(this, d), _ = {
7203
+ x: g.x,
7204
+ y: g.y,
7205
7205
  slackX: 0,
7206
7206
  slackY: 0
7207
7207
  };
@@ -7212,9 +7212,9 @@ function du() {
7212
7212
  } = _;
7213
7213
  _.x += this.state.slackX, _.y += this.state.slackY;
7214
7214
  const [j, M] = (0, o.getBoundPosition)(this, _.x, _.y);
7215
- _.x = j, _.y = M, _.slackX = this.state.slackX + (x - _.x), _.slackY = this.state.slackY + (C - _.y), m.x = _.x, m.y = _.y, m.deltaX = _.x - this.state.x, m.deltaY = _.y - this.state.y;
7215
+ _.x = j, _.y = M, _.slackX = this.state.slackX + (x - _.x), _.slackY = this.state.slackY + (C - _.y), g.x = _.x, g.y = _.y, g.deltaX = _.x - this.state.x, g.deltaY = _.y - this.state.y;
7216
7216
  }
7217
- if (this.props.onDrag(y, m) === !1) return !1;
7217
+ if (this.props.onDrag(y, g) === !1) return !1;
7218
7218
  this.setState(_);
7219
7219
  }), v(this, "onDragStop", (y, d) => {
7220
7220
  if (!this.state.dragging || this.props.onStop(y, (0, o.createDraggableData)(this, d)) === !1) return !1;
@@ -7271,9 +7271,9 @@ function du() {
7271
7271
  axis: L,
7272
7272
  bounds: y,
7273
7273
  children: d,
7274
- defaultPosition: m,
7274
+ defaultPosition: g,
7275
7275
  defaultClassName: _,
7276
- defaultClassNameDragging: g,
7276
+ defaultClassNameDragging: m,
7277
7277
  defaultClassNameDragged: x,
7278
7278
  position: C,
7279
7279
  positionOffset: j,
@@ -7281,7 +7281,7 @@ function du() {
7281
7281
  ...B
7282
7282
  } = this.props;
7283
7283
  let A = {}, q = null;
7284
- const V = !!!C || this.state.dragging, W = C || m, ae = {
7284
+ const V = !!!C || this.state.dragging, W = C || g, ae = {
7285
7285
  // Set left if horizontal drag is enabled
7286
7286
  x: (0, o.canDragX)(this) && V ? this.state.x : W.x,
7287
7287
  // Set top if vertical drag is enabled
@@ -7289,7 +7289,7 @@ function du() {
7289
7289
  };
7290
7290
  this.state.isElementSVG ? q = (0, a.createSVGTransform)(ae, j) : A = (0, a.createCSSTransform)(ae, j);
7291
7291
  const ne = (0, i.clsx)(d.props.className || "", _, {
7292
- [g]: this.state.dragging,
7292
+ [m]: this.state.dragging,
7293
7293
  [x]: this.state.dragged
7294
7294
  });
7295
7295
  return /* @__PURE__ */ t.createElement(c.default, b({}, B, {
@@ -7439,7 +7439,7 @@ function hu() {
7439
7439
  return rr.exports = e, rr.exports.default = e, rr.exports.DraggableCore = t, rr.exports;
7440
7440
  }
7441
7441
  var pu = hu();
7442
- const gu = /* @__PURE__ */ Xo(pu), Tr = gu;
7442
+ const mu = /* @__PURE__ */ Xo(pu), Tr = mu;
7443
7443
  function Bs({ children: e, id: t }) {
7444
7444
  const [n, r] = be(!1), [i, a] = be({ x: 0, y: 0 }), o = Ie(null), s = fe((D) => D.delta), c = fe((D) => D.setDelta), u = fe((D) => D.shiftDomain), p = hi();
7445
7445
  Ee(() => {
@@ -7469,7 +7469,7 @@ function Bs({ children: e, id: t }) {
7469
7469
  }
7470
7470
  );
7471
7471
  }
7472
- function mu(e) {
7472
+ function gu(e) {
7473
7473
  return /* @__PURE__ */ f.jsx(
7474
7474
  "svg",
7475
7475
  {
@@ -7486,35 +7486,35 @@ function mu(e) {
7486
7486
  /* @__PURE__ */ f.jsx(
7487
7487
  "path",
7488
7488
  {
7489
- d: `M51.22,21h-5.052c-0.812,0-1.481-0.447-1.792-1.197s-0.153-1.54,0.42-2.114l3.572-3.571
7490
- c0.525-0.525,0.814-1.224,0.814-1.966c0-0.743-0.289-1.441-0.814-1.967l-4.553-4.553c-1.05-1.05-2.881-1.052-3.933,0l-3.571,3.571
7491
- c-0.574,0.573-1.366,0.733-2.114,0.421C33.447,9.313,33,8.644,33,7.832V2.78C33,1.247,31.753,0,30.22,0H23.78
7492
- C22.247,0,21,1.247,21,2.78v5.052c0,0.812-0.447,1.481-1.197,1.792c-0.748,0.313-1.54,0.152-2.114-0.421l-3.571-3.571
7493
- c-1.052-1.052-2.883-1.05-3.933,0l-4.553,4.553c-0.525,0.525-0.814,1.224-0.814,1.967c0,0.742,0.289,1.44,0.814,1.966l3.572,3.571
7494
- c0.573,0.574,0.73,1.364,0.42,2.114S8.644,21,7.832,21H2.78C1.247,21,0,22.247,0,23.78v6.439C0,31.753,1.247,33,2.78,33h5.052
7495
- c0.812,0,1.481,0.447,1.792,1.197s0.153,1.54-0.42,2.114l-3.572,3.571c-0.525,0.525-0.814,1.224-0.814,1.966
7496
- c0,0.743,0.289,1.441,0.814,1.967l4.553,4.553c1.051,1.051,2.881,1.053,3.933,0l3.571-3.572c0.574-0.573,1.363-0.731,2.114-0.42
7497
- c0.75,0.311,1.197,0.98,1.197,1.792v5.052c0,1.533,1.247,2.78,2.78,2.78h6.439c1.533,0,2.78-1.247,2.78-2.78v-5.052
7498
- c0-0.812,0.447-1.481,1.197-1.792c0.751-0.312,1.54-0.153,2.114,0.42l3.571,3.572c1.052,1.052,2.883,1.05,3.933,0l4.553-4.553
7499
- c0.525-0.525,0.814-1.224,0.814-1.967c0-0.742-0.289-1.44-0.814-1.966l-3.572-3.571c-0.573-0.574-0.73-1.364-0.42-2.114
7500
- S45.356,33,46.168,33h5.052c1.533,0,2.78-1.247,2.78-2.78V23.78C54,22.247,52.753,21,51.22,21z M52,30.22
7501
- C52,30.65,51.65,31,51.22,31h-5.052c-1.624,0-3.019,0.932-3.64,2.432c-0.622,1.5-0.295,3.146,0.854,4.294l3.572,3.571
7502
- c0.305,0.305,0.305,0.8,0,1.104l-4.553,4.553c-0.304,0.304-0.799,0.306-1.104,0l-3.571-3.572c-1.149-1.149-2.794-1.474-4.294-0.854
7503
- c-1.5,0.621-2.432,2.016-2.432,3.64v5.052C31,51.65,30.65,52,30.22,52H23.78C23.35,52,23,51.65,23,51.22v-5.052
7504
- c0-1.624-0.932-3.019-2.432-3.64c-0.503-0.209-1.021-0.311-1.533-0.311c-1.014,0-1.997,0.4-2.761,1.164l-3.571,3.572
7505
- c-0.306,0.306-0.801,0.304-1.104,0l-4.553-4.553c-0.305-0.305-0.305-0.8,0-1.104l3.572-3.571c1.148-1.148,1.476-2.794,0.854-4.294
7506
- C10.851,31.932,9.456,31,7.832,31H2.78C2.35,31,2,30.65,2,30.22V23.78C2,23.35,2.35,23,2.78,23h5.052
7507
- c1.624,0,3.019-0.932,3.64-2.432c0.622-1.5,0.295-3.146-0.854-4.294l-3.572-3.571c-0.305-0.305-0.305-0.8,0-1.104l4.553-4.553
7508
- c0.304-0.305,0.799-0.305,1.104,0l3.571,3.571c1.147,1.147,2.792,1.476,4.294,0.854C22.068,10.851,23,9.456,23,7.832V2.78
7509
- C23,2.35,23.35,2,23.78,2h6.439C30.65,2,31,2.35,31,2.78v5.052c0,1.624,0.932,3.019,2.432,3.64
7510
- c1.502,0.622,3.146,0.294,4.294-0.854l3.571-3.571c0.306-0.305,0.801-0.305,1.104,0l4.553,4.553c0.305,0.305,0.305,0.8,0,1.104
7489
+ d: `M51.22,21h-5.052c-0.812,0-1.481-0.447-1.792-1.197s-0.153-1.54,0.42-2.114l3.572-3.571\r
7490
+ c0.525-0.525,0.814-1.224,0.814-1.966c0-0.743-0.289-1.441-0.814-1.967l-4.553-4.553c-1.05-1.05-2.881-1.052-3.933,0l-3.571,3.571\r
7491
+ c-0.574,0.573-1.366,0.733-2.114,0.421C33.447,9.313,33,8.644,33,7.832V2.78C33,1.247,31.753,0,30.22,0H23.78\r
7492
+ C22.247,0,21,1.247,21,2.78v5.052c0,0.812-0.447,1.481-1.197,1.792c-0.748,0.313-1.54,0.152-2.114-0.421l-3.571-3.571\r
7493
+ c-1.052-1.052-2.883-1.05-3.933,0l-4.553,4.553c-0.525,0.525-0.814,1.224-0.814,1.967c0,0.742,0.289,1.44,0.814,1.966l3.572,3.571\r
7494
+ c0.573,0.574,0.73,1.364,0.42,2.114S8.644,21,7.832,21H2.78C1.247,21,0,22.247,0,23.78v6.439C0,31.753,1.247,33,2.78,33h5.052\r
7495
+ c0.812,0,1.481,0.447,1.792,1.197s0.153,1.54-0.42,2.114l-3.572,3.571c-0.525,0.525-0.814,1.224-0.814,1.966\r
7496
+ c0,0.743,0.289,1.441,0.814,1.967l4.553,4.553c1.051,1.051,2.881,1.053,3.933,0l3.571-3.572c0.574-0.573,1.363-0.731,2.114-0.42\r
7497
+ c0.75,0.311,1.197,0.98,1.197,1.792v5.052c0,1.533,1.247,2.78,2.78,2.78h6.439c1.533,0,2.78-1.247,2.78-2.78v-5.052\r
7498
+ c0-0.812,0.447-1.481,1.197-1.792c0.751-0.312,1.54-0.153,2.114,0.42l3.571,3.572c1.052,1.052,2.883,1.05,3.933,0l4.553-4.553\r
7499
+ c0.525-0.525,0.814-1.224,0.814-1.967c0-0.742-0.289-1.44-0.814-1.966l-3.572-3.571c-0.573-0.574-0.73-1.364-0.42-2.114\r
7500
+ S45.356,33,46.168,33h5.052c1.533,0,2.78-1.247,2.78-2.78V23.78C54,22.247,52.753,21,51.22,21z M52,30.22\r
7501
+ C52,30.65,51.65,31,51.22,31h-5.052c-1.624,0-3.019,0.932-3.64,2.432c-0.622,1.5-0.295,3.146,0.854,4.294l3.572,3.571\r
7502
+ c0.305,0.305,0.305,0.8,0,1.104l-4.553,4.553c-0.304,0.304-0.799,0.306-1.104,0l-3.571-3.572c-1.149-1.149-2.794-1.474-4.294-0.854\r
7503
+ c-1.5,0.621-2.432,2.016-2.432,3.64v5.052C31,51.65,30.65,52,30.22,52H23.78C23.35,52,23,51.65,23,51.22v-5.052\r
7504
+ c0-1.624-0.932-3.019-2.432-3.64c-0.503-0.209-1.021-0.311-1.533-0.311c-1.014,0-1.997,0.4-2.761,1.164l-3.571,3.572\r
7505
+ c-0.306,0.306-0.801,0.304-1.104,0l-4.553-4.553c-0.305-0.305-0.305-0.8,0-1.104l3.572-3.571c1.148-1.148,1.476-2.794,0.854-4.294\r
7506
+ C10.851,31.932,9.456,31,7.832,31H2.78C2.35,31,2,30.65,2,30.22V23.78C2,23.35,2.35,23,2.78,23h5.052\r
7507
+ c1.624,0,3.019-0.932,3.64-2.432c0.622-1.5,0.295-3.146-0.854-4.294l-3.572-3.571c-0.305-0.305-0.305-0.8,0-1.104l4.553-4.553\r
7508
+ c0.304-0.305,0.799-0.305,1.104,0l3.571,3.571c1.147,1.147,2.792,1.476,4.294,0.854C22.068,10.851,23,9.456,23,7.832V2.78\r
7509
+ C23,2.35,23.35,2,23.78,2h6.439C30.65,2,31,2.35,31,2.78v5.052c0,1.624,0.932,3.019,2.432,3.64\r
7510
+ c1.502,0.622,3.146,0.294,4.294-0.854l3.571-3.571c0.306-0.305,0.801-0.305,1.104,0l4.553,4.553c0.305,0.305,0.305,0.8,0,1.104\r
7511
7511
  l-3.572,3.571c-1.148,1.148-1.476,2.794-0.854,4.294c0.621,1.5,2.016,2.432,3.64,2.432h5.052C51.65,23,52,23.35,52,23.78V30.22z`
7512
7512
  }
7513
7513
  ),
7514
7514
  /* @__PURE__ */ f.jsx(
7515
7515
  "path",
7516
7516
  {
7517
- d: `M27,18c-4.963,0-9,4.037-9,9s4.037,9,9,9s9-4.037,9-9S31.963,18,27,18z M27,34c-3.859,0-7-3.141-7-7s3.141-7,7-7
7517
+ d: `M27,18c-4.963,0-9,4.037-9,9s4.037,9,9,9s9-4.037,9-9S31.963,18,27,18z M27,34c-3.859,0-7-3.141-7-7s3.141-7,7-7\r
7518
7518
  s7,3.141,7,7S30.859,34,27,34z`
7519
7519
  }
7520
7520
  )
@@ -7592,13 +7592,13 @@ function yu({
7592
7592
  j.stopPropagation(), k(e, 0);
7593
7593
  }, d = (j) => {
7594
7594
  j.stopPropagation(), k(e, -1);
7595
- }, m = xe((j) => {
7595
+ }, g = xe((j) => {
7596
7596
  var M;
7597
7597
  return (M = j.getTrack(e)) == null ? void 0 : M.range;
7598
- }), g = xe((j) => {
7598
+ }), m = xe((j) => {
7599
7599
  var M;
7600
7600
  return (M = j.getTrack(e)) == null ? void 0 : M.customRange;
7601
- }) || m, x = Je((j) => j.background), C = Je((j) => j.text);
7601
+ }) || g, x = Je((j) => j.background), C = Je((j) => j.text);
7602
7602
  return /* @__PURE__ */ f.jsxs(
7603
7603
  "g",
7604
7604
  {
@@ -7623,7 +7623,7 @@ function yu({
7623
7623
  /* @__PURE__ */ f.jsx("rect", { x: 0, y: 0, width: s / 15, height: t, stroke: "#000000", strokeWidth: 0.5, fill: n }),
7624
7624
  /* @__PURE__ */ f.jsxs("g", { id: `margin-buttons-${e}`, children: [
7625
7625
  e !== "ruler" && /* @__PURE__ */ f.jsxs("g", { ref: h, onClick: L, style: { cursor: "pointer" }, children: [
7626
- /* @__PURE__ */ f.jsx(mu, { x: s / 10, y: t / 2 + 2, height: 15, width: 15, fill: C }),
7626
+ /* @__PURE__ */ f.jsx(gu, { x: s / 10, y: t / 2 + 2, height: 15, width: 15, fill: C }),
7627
7627
  /* @__PURE__ */ f.jsx("circle", { cx: s / 10 + 7.5, cy: t / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" })
7628
7628
  ] }),
7629
7629
  e !== "ruler" && /* @__PURE__ */ f.jsxs("g", { onClick: w ? y : void 0, style: { cursor: "pointer" }, children: [
@@ -7653,9 +7653,9 @@ function yu({
7653
7653
  )
7654
7654
  ] })
7655
7655
  ] }),
7656
- g && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
7657
- /* @__PURE__ */ f.jsx(Do, { color: C, position: t, width: s, fontSize: u, children: g.min.toFixed(2) }),
7658
- /* @__PURE__ */ f.jsx(Do, { color: C, position: o, width: s, fontSize: u, children: g.max.toFixed(2) })
7656
+ m && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
7657
+ /* @__PURE__ */ f.jsx(Do, { color: C, position: t, width: s, fontSize: u, children: m.min.toFixed(2) }),
7658
+ /* @__PURE__ */ f.jsx(Do, { color: C, position: o, width: s, fontSize: u, children: m.max.toFixed(2) })
7659
7659
  ] }),
7660
7660
  /* @__PURE__ */ f.jsx("line", { stroke: "#ccc", x1: s, x2: s, y1: 0, y2: t })
7661
7661
  ]
@@ -7796,12 +7796,12 @@ function wu({
7796
7796
  height: r,
7797
7797
  width: i
7798
7798
  }) {
7799
- const [a, o] = be({ x: 0, y: 0 }), [s, c] = be(!1), [u, p] = be(0), h = Ie(null), b = hi(), v = fe((m) => m.marginWidth), k = xe((m) => m.shiftTracks), D = xe((m) => m.getTrackIndex), w = ws(e), E = Ul(e), L = (m, _) => {
7800
- m.preventDefault(), c(!0), n(!0), o({ x: 0, y: _.y }), p(_.y);
7799
+ const [a, o] = be({ x: 0, y: 0 }), [s, c] = be(!1), [u, p] = be(0), h = Ie(null), b = hi(), v = fe((g) => g.marginWidth), k = xe((g) => g.shiftTracks), D = xe((g) => g.getTrackIndex), w = ws(e), E = Ul(e), L = (g, _) => {
7800
+ g.preventDefault(), c(!0), n(!0), o({ x: 0, y: _.y }), p(_.y);
7801
7801
  }, y = () => {
7802
7802
  if (o({ x: 0, y: 0 }), c(!1), n(!1), Math.abs(u) <= 5) return;
7803
- const m = E.reduce((g, x, C) => Math.abs(x - u) < Math.abs(E[g] - u) ? C : g, 0), _ = D(e);
7804
- m !== _ && (k(e, m), p(0));
7803
+ const g = E.reduce((m, x, C) => Math.abs(x - u) < Math.abs(E[m] - u) ? C : m, 0), _ = D(e);
7804
+ g !== _ && (k(e, g), p(0));
7805
7805
  }, d = e === "ruler" ? () => !1 : () => {
7806
7806
  };
7807
7807
  return /* @__PURE__ */ f.jsx(
@@ -7890,9 +7890,9 @@ function Is({ children: e, transform: t, id: n, loading: r, error: i }) {
7890
7890
  }) || "", v = xe((x) => {
7891
7891
  var C;
7892
7892
  return (C = x.getTrack(n)) == null ? void 0 : C.title;
7893
- }) || "", { trackMargin: k, titleSize: D, totalVerticalMargin: w, wrapperHeight: E } = Hl(n), L = E / 3, y = Ut((x) => x.setContextMenu), d = Je((x) => x.text), m = Je((x) => x.background), _ = at(() => {
7893
+ }) || "", { trackMargin: k, titleSize: D, totalVerticalMargin: w, wrapperHeight: E } = Hl(n), L = E / 3, y = Ut((x) => x.setContextMenu), d = Je((x) => x.text), g = Je((x) => x.background), _ = at(() => {
7894
7894
  c(!0);
7895
- }, []), g = at(() => {
7895
+ }, []), m = at(() => {
7896
7896
  c(!1);
7897
7897
  }, []);
7898
7898
  return /* @__PURE__ */ f.jsx("g", { id: `wrapper-${n}`, transform: t, children: /* @__PURE__ */ f.jsxs(wu, { id: n, setSwapping: o, height: E, width: h, children: [
@@ -7908,7 +7908,7 @@ function Is({ children: e, transform: t, id: n, loading: r, error: i }) {
7908
7908
  {
7909
7909
  transform: `translate(${u + (h - L) / 2},${(E - L) / 2})`,
7910
7910
  children: [
7911
- /* @__PURE__ */ f.jsx(Ru, { outline: d, inside: m, width: L, height: L }),
7911
+ /* @__PURE__ */ f.jsx(Ru, { outline: d, inside: g, width: L, height: L }),
7912
7912
  /* @__PURE__ */ f.jsx("g", { transform: `translate(${L / 2},${L + 10})`, children: /* @__PURE__ */ f.jsx("text", { fill: d, textAnchor: "middle", fontSize: `${D}px`, children: i }) })
7913
7913
  ]
7914
7914
  }
@@ -7941,11 +7941,11 @@ function Is({ children: e, transform: t, id: n, loading: r, error: i }) {
7941
7941
  {
7942
7942
  id: n,
7943
7943
  height: E,
7944
- color: b || m,
7944
+ color: b || g,
7945
7945
  swapping: a,
7946
7946
  verticalMargin: w,
7947
7947
  onHover: _,
7948
- onLeave: g
7948
+ onLeave: m
7949
7949
  }
7950
7950
  ),
7951
7951
  s && /* @__PURE__ */ f.jsx(
@@ -7990,20 +7990,20 @@ function Du({
7990
7990
  return /* @__PURE__ */ f.jsxs("g", { width: u, height: n, clipPath: `url(#${e})`, transform: `translate(-${p}, 0)`, children: [
7991
7991
  /* @__PURE__ */ f.jsx("rect", { width: u, height: n, fill: "transparent" }),
7992
7992
  /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: e, width: u, height: n }) }),
7993
- k.map((y, d) => /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${d * D})`, children: y.map((m, _) => {
7994
- const g = Ls({ ...m.row, start: m.start, end: m.end }, v);
7993
+ k.map((y, d) => /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${d * D})`, children: y.map((g, _) => {
7994
+ const m = Ls({ ...g.row, start: g.start, end: g.end }, v);
7995
7995
  return /* @__PURE__ */ f.jsx(
7996
7996
  "rect",
7997
7997
  {
7998
7998
  style: { cursor: a ? "pointer" : "default" },
7999
7999
  height: D * 0.6,
8000
- width: m.end - m.start < 1 ? 1 : m.end - m.start,
8001
- x: m.start,
8000
+ width: g.end - g.start < 1 ? 1 : g.end - g.start,
8001
+ x: g.start,
8002
8002
  y: D * 0.2,
8003
- fill: m.color || i,
8004
- onClick: () => w(g),
8005
- onMouseOver: (x) => E(g, m.rectname || "", x),
8006
- onMouseOut: () => L(g)
8003
+ fill: g.color || i,
8004
+ onClick: () => w(m),
8005
+ onMouseOver: (x) => E(m, g.rectname || "", x),
8006
+ onMouseOut: () => L(m)
8007
8007
  },
8008
8008
  `${e}_${_}`
8009
8009
  );
@@ -8026,6 +8026,8 @@ function Mu(e) {
8026
8026
  name: e.name || "",
8027
8027
  strand: e.strand,
8028
8028
  id: e.id || "",
8029
+ parentName: e.name,
8030
+ parentId: e.id,
8029
8031
  coordinates: {
8030
8032
  start: Math.min(...n.map((i) => i.coordinates.start)),
8031
8033
  end: Math.max(...n.map((i) => i.coordinates.end))
@@ -8065,6 +8067,8 @@ function Iu(e, t) {
8065
8067
  strand: e.strand,
8066
8068
  name: e.name,
8067
8069
  id: e.id,
8070
+ parentName: e.parentName,
8071
+ parentId: e.parentId,
8068
8072
  color: e.color,
8069
8073
  tag: e.tag,
8070
8074
  coordinates: {
@@ -8089,16 +8093,23 @@ function Iu(e, t) {
8089
8093
  };
8090
8094
  }
8091
8095
  function Ou(e) {
8092
- return e.reduce((t, n) => (n.transcripts.forEach((r) => t.push({ ...r, strand: n.strand })), t), []).sort((t, n) => t.coordinates.start - n.coordinates.start);
8096
+ return e.reduce((t, n) => (n.transcripts.forEach(
8097
+ (r) => t.push({
8098
+ ...r,
8099
+ strand: n.strand,
8100
+ parentName: n.name,
8101
+ parentId: n.id
8102
+ })
8103
+ ), t), []).sort((t, n) => t.coordinates.start - n.coordinates.start);
8093
8104
  }
8094
8105
  function Pu(e, t, n, r, i, a) {
8095
8106
  let o = "";
8096
8107
  if (e = e < 0 ? 0 : e, t = t > a ? a : t, n === "+")
8097
8108
  for (let s = e + 10; s < t - 10; s += 20)
8098
- o += it(s - i, r - i) + ge(s, r) + ge(s - i, r + i) + ge(s, r) + ge(s - i, r - i);
8109
+ o += it(s - i, r - i) + me(s, r) + me(s - i, r + i) + me(s, r) + me(s - i, r - i);
8099
8110
  else if (n === "-")
8100
8111
  for (let s = e + 10; s < t - 10; s += 20)
8101
- o += it(s + i, r - i) + ge(s, r) + ge(s + i, r + i) + ge(s, r) + ge(s + i, r - i);
8112
+ o += it(s + i, r - i) + me(s, r) + me(s + i, r + i) + me(s, r) + me(s + i, r - i);
8102
8113
  return o + " M " + e + " " + r + " L " + t + " " + r;
8103
8114
  }
8104
8115
  function Au(e, t, n, r) {
@@ -8106,11 +8117,11 @@ function Au(e, t, n, r) {
8106
8117
  if (e.coordinates.start > r || e.coordinates.end < 0) return "";
8107
8118
  const i = ((h = e.UTRs) == null ? void 0 : h.filter((v) => v.coordinates.start === e.coordinates.start)) || [], a = ((b = e.UTRs) == null ? void 0 : b.filter((v) => v.coordinates.end === e.coordinates.end)) || [], o = t - n * 0.2, s = t + n * 0.2, c = t - n * 0.3, u = t + n * 0.3;
8108
8119
  if (!i[0] && !a[0])
8109
- return it(e.coordinates.start, c) + ge(e.coordinates.end, c) + ge(e.coordinates.end, u) + ge(e.coordinates.start, u) + ge(e.coordinates.start, c);
8120
+ return it(e.coordinates.start, c) + me(e.coordinates.end, c) + me(e.coordinates.end, u) + me(e.coordinates.start, u) + me(e.coordinates.start, c);
8110
8121
  if (i[0] && i[0].coordinates.end === e.coordinates.end)
8111
- return it(i[0].coordinates.start, o) + ge(i[0].coordinates.end, o) + ge(i[0].coordinates.end, s) + ge(i[0].coordinates.start, s) + ge(i[0].coordinates.start, o);
8112
- let p = i[0] ? it(i[0].coordinates.start, o) + ge(i[0].coordinates.end, o) + ge(i[0].coordinates.end, c) : it(e.coordinates.start, c);
8113
- return p += a[0] ? ge(a[0].coordinates.start, c) + ge(a[0].coordinates.start, o) + ge(a[0].coordinates.end, o) + ge(a[0].coordinates.end, s) + ge(a[0].coordinates.start, s) + ge(a[0].coordinates.start, u) : ge(e.coordinates.end, c) + ge(e.coordinates.end, u), p + (i[0] ? ge(i[0].coordinates.end, u) + ge(i[0].coordinates.end, s) + ge(i[0].coordinates.start, s) + ge(i[0].coordinates.start, o) : ge(e.coordinates.start, u) + ge(e.coordinates.start, c));
8122
+ return it(i[0].coordinates.start, o) + me(i[0].coordinates.end, o) + me(i[0].coordinates.end, s) + me(i[0].coordinates.start, s) + me(i[0].coordinates.start, o);
8123
+ let p = i[0] ? it(i[0].coordinates.start, o) + me(i[0].coordinates.end, o) + me(i[0].coordinates.end, c) : it(e.coordinates.start, c);
8124
+ return p += a[0] ? me(a[0].coordinates.start, c) + me(a[0].coordinates.start, o) + me(a[0].coordinates.end, o) + me(a[0].coordinates.end, s) + me(a[0].coordinates.start, s) + me(a[0].coordinates.start, u) : me(e.coordinates.end, c) + me(e.coordinates.end, u), p + (i[0] ? me(i[0].coordinates.end, u) + me(i[0].coordinates.end, s) + me(i[0].coordinates.start, s) + me(i[0].coordinates.start, o) : me(e.coordinates.start, u) + me(e.coordinates.start, c));
8114
8125
  }
8115
8126
  const As = (e, t) => {
8116
8127
  const n = t(e.coordinates.start), r = t(e.coordinates.end), i = {
@@ -8141,13 +8152,13 @@ function Nu({
8141
8152
  (j) => j.coordinates.end >= w.start && j.coordinates.start <= w.end
8142
8153
  ),
8143
8154
  [L, w.start, w.end]
8144
- ), d = ce(() => Er(y, k, E), [y, k, E]), m = Cr(d.length, e), _ = ce(
8155
+ ), d = ce(() => Er(y, k, E), [y, k, E]), g = Cr(d.length, e), _ = ce(
8145
8156
  () => d.map((j, M) => ({
8146
- y: M * m,
8147
- transcripts: j.map((B) => Ps(B, k, m, b))
8157
+ y: M * g,
8158
+ transcripts: j.map((B) => Ps(B, k, g, b))
8148
8159
  })),
8149
- [d, m, b, k]
8150
- ), { handleClick: g, handleHover: x, handleLeave: C } = et({
8160
+ [d, g, b, k]
8161
+ ), { handleClick: m, handleHover: x, handleLeave: C } = et({
8151
8162
  onClick: c,
8152
8163
  onHover: u,
8153
8164
  onLeave: p,
@@ -8155,13 +8166,13 @@ function Nu({
8155
8166
  });
8156
8167
  return /* @__PURE__ */ f.jsxs("g", { width: b, height: r, transform: `translate(-${v},0)`, children: [
8157
8168
  /* @__PURE__ */ f.jsx("rect", { width: b, height: r, fill: "transparent" }),
8158
- /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: e, width: b, height: d.length * m }) }),
8169
+ /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: e, width: b, height: d.length * g }) }),
8159
8170
  _.map((j, M) => /* @__PURE__ */ f.jsx(
8160
8171
  "g",
8161
8172
  {
8162
8173
  style: { clipPath: `url(#${e})` },
8163
8174
  transform: `translate(0,${j.y})`,
8164
- height: m,
8175
+ height: g,
8165
8176
  width: b,
8166
8177
  children: j.transcripts.map((B, A) => {
8167
8178
  const q = As(B.transcript, D);
@@ -8172,10 +8183,10 @@ function Nu({
8172
8183
  {
8173
8184
  stroke: N || a,
8174
8185
  fill: N || a,
8175
- strokeWidth: m / 16,
8186
+ strokeWidth: g / 16,
8176
8187
  d: B.paths.introns + B.paths.exons,
8177
8188
  style: { cursor: c ? "pointer" : "default" },
8178
- onClick: () => g(q),
8189
+ onClick: () => m(q),
8179
8190
  onMouseOver: (V) => x(q, q.name || "", V),
8180
8191
  onMouseOut: () => C(q)
8181
8192
  }
@@ -8186,7 +8197,7 @@ function Nu({
8186
8197
  fill: N || a,
8187
8198
  fontSize: E,
8188
8199
  x: B.transcript.coordinates.end + 5,
8189
- y: m / 2,
8200
+ y: g / 2,
8190
8201
  dominantBaseline: "middle",
8191
8202
  style: {
8192
8203
  pointerEvents: "none",
@@ -8225,13 +8236,13 @@ function qu({
8225
8236
  (j) => j.coordinates.end >= w.start && j.coordinates.start <= w.end
8226
8237
  ),
8227
8238
  [L, w.start, w.end]
8228
- ), d = ce(() => Er(y, k, E), [y, k, E]), m = Cr(d.length, e), _ = ce(
8239
+ ), d = ce(() => Er(y, k, E), [y, k, E]), g = Cr(d.length, e), _ = ce(
8229
8240
  () => d.map((j, M) => ({
8230
- y: M * m,
8231
- transcripts: j.map((B) => Ps(B, k, m, b))
8241
+ y: M * g,
8242
+ transcripts: j.map((B) => Ps(B, k, g, b))
8232
8243
  })),
8233
- [d, m, b, k]
8234
- ), { handleClick: g, handleHover: x, handleLeave: C } = et({
8244
+ [d, g, b, k]
8245
+ ), { handleClick: m, handleHover: x, handleLeave: C } = et({
8235
8246
  onClick: c,
8236
8247
  onHover: u,
8237
8248
  onLeave: p,
@@ -8239,13 +8250,13 @@ function qu({
8239
8250
  });
8240
8251
  return /* @__PURE__ */ f.jsxs("g", { width: b, height: r, transform: `translate(-${v},0)`, children: [
8241
8252
  /* @__PURE__ */ f.jsx("rect", { width: b, height: r, fill: "transparent" }),
8242
- /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: e, width: b, height: d.length * m }) }),
8253
+ /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: e, width: b, height: d.length * g }) }),
8243
8254
  _.map((j, M) => /* @__PURE__ */ f.jsx(
8244
8255
  "g",
8245
8256
  {
8246
8257
  style: { clipPath: `url(#${e})` },
8247
8258
  transform: `translate(0,${j.y})`,
8248
- height: m,
8259
+ height: g,
8249
8260
  width: b,
8250
8261
  children: j.transcripts.map((B, A) => {
8251
8262
  const q = As(B.transcript, D);
@@ -8256,10 +8267,10 @@ function qu({
8256
8267
  {
8257
8268
  stroke: N || a,
8258
8269
  fill: N || a,
8259
- strokeWidth: m / 16,
8270
+ strokeWidth: g / 16,
8260
8271
  d: B.paths.introns + B.paths.exons,
8261
8272
  style: { cursor: c ? "pointer" : "default" },
8262
- onClick: () => g(q),
8273
+ onClick: () => m(q),
8263
8274
  onMouseOver: (V) => x(q, q.name || "", V),
8264
8275
  onMouseOut: () => C(q)
8265
8276
  }
@@ -8270,7 +8281,7 @@ function qu({
8270
8281
  fill: N || a,
8271
8282
  fontSize: E,
8272
8283
  x: B.transcript.coordinates.end + 5,
8273
- y: m / 2,
8284
+ y: g / 2,
8274
8285
  dominantBaseline: "middle",
8275
8286
  style: {
8276
8287
  pointerEvents: "none",
@@ -8522,13 +8533,13 @@ const hf = (e) => /* @__PURE__ */ f.jsx(
8522
8533
  ...e,
8523
8534
  d: "M 0 35 L 0 25 C 20 -8 80 -8 100 25 C 100 30 100 50 75 50 C 100 50 100 70 100 75 C 80 108 20 108 0 75 L 0 65 L 25 65 L 25 75 C 30 88 70 88 75 75 C 75 68 75 65 47 58 L 47 42 C 75 32 75 35 75 25 C 70 12 30 12 25 25 L 25 35"
8524
8535
  }
8525
- ), gf = (e) => /* @__PURE__ */ f.jsx(
8536
+ ), mf = (e) => /* @__PURE__ */ f.jsx(
8526
8537
  "path",
8527
8538
  {
8528
8539
  ...e,
8529
8540
  d: "M 50 0 L 0 50 L 0 70 L 50 70 L 50 100 L 75 100 L 75 70 L 100 70 L 100 50 L 75 50 L 75 0 L 50 15 L 50 50 L 30 50 L 75 0 L 50 0"
8530
8541
  }
8531
- ), mf = (e) => /* @__PURE__ */ f.jsx(
8542
+ ), gf = (e) => /* @__PURE__ */ f.jsx(
8532
8543
  "path",
8533
8544
  {
8534
8545
  ...e,
@@ -8567,7 +8578,7 @@ const hf = (e) => /* @__PURE__ */ f.jsx(
8567
8578
  ...e,
8568
8579
  d: "M 50 100 C 140 30 90 0 50 0 C 10 0 0 20 0 45 C 20 70 70 70 65 50 L 70 40 C 20 50 20 15 50 20 C 90 20 52 90 10 100 L 50 100"
8569
8580
  }
8570
- ), mi = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8581
+ ), gi = (e) => /* @__PURE__ */ f.jsxs("g", { children: [
8571
8582
  /* @__PURE__ */ f.jsx(
8572
8583
  "path",
8573
8584
  {
@@ -8764,7 +8775,7 @@ const ld = ({
8764
8775
  ";"
8765
8776
  ] });
8766
8777
  }, Vn = "FREQUENCY", Po = [
8767
- { component: [mi], regex: ["A"], color: ["red"] },
8778
+ { component: [gi], regex: ["A"], color: ["red"] },
8768
8779
  { component: [wf], regex: ["B"], color: ["maroon"] },
8769
8780
  { component: [br], regex: ["C"], color: ["blue"] },
8770
8781
  { component: [Lf], regex: ["D"], color: ["green"] },
@@ -8820,8 +8831,8 @@ const ld = ({
8820
8831
  { component: [df], regex: ["1"], color: ["red"] },
8821
8832
  { component: [hf], regex: ["2"], color: ["green"] },
8822
8833
  { component: [pf], regex: ["3"], color: ["purple"] },
8823
- { component: [gf], regex: ["4"], color: ["navy"] },
8824
- { component: [mf], regex: ["5"], color: ["teal"] },
8834
+ { component: [mf], regex: ["4"], color: ["navy"] },
8835
+ { component: [gf], regex: ["5"], color: ["teal"] },
8825
8836
  { component: [vf], regex: ["6"], color: ["gold"] },
8826
8837
  { component: [xf], regex: ["7"], color: ["olive"] },
8827
8838
  { component: [yf], regex: ["8"], color: ["slate"] },
@@ -8856,7 +8867,7 @@ const ld = ({
8856
8867
  const o = a * (r - i);
8857
8868
  return o <= 0 ? 0 : o;
8858
8869
  });
8859
- }, gd = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? -1 : e[t] === e[n] ? 0 : 1), md = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? 1 : e[t] === e[n] ? 0 : -1), yi = (e) => {
8870
+ }, md = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? -1 : e[t] === e[n] ? 0 : 1), gd = (e) => e.map((t, n) => n).sort((t, n) => e[t] < e[n] ? 1 : e[t] === e[n] ? 0 : -1), yi = (e) => {
8860
8871
  let t = [];
8861
8872
  for (let n = 0; n < Math.floor(e); n++)
8862
8873
  t.push(n);
@@ -8959,7 +8970,7 @@ const ld = ({
8959
8970
  /* @__PURE__ */ f.jsx("g", { transform: "rotate(-90)", children: /* @__PURE__ */ f.jsx("text", { y: "15", x: -e.height / 2, textAnchor: "middle", fontSize: "18", children: "frequency" }) })
8960
8971
  ] });
8961
8972
  }, _d = (e, t, n, r) => (i, a, o, s, c, u) => {
8962
- const p = u ? md(i) : gd(i), { onSymbolMouseOver: h, onSymbolMouseOut: b, onSymbolClick: v } = s;
8973
+ const p = u ? gd(i) : md(i), { onSymbolMouseOver: h, onSymbolMouseOut: b, onSymbolClick: v } = s;
8963
8974
  return /* @__PURE__ */ f.jsx(
8964
8975
  ld,
8965
8976
  {
@@ -9056,10 +9067,10 @@ const ld = ({
9056
9067
  onSymbolClick: L,
9057
9068
  noFastaNames: y,
9058
9069
  countUnaligned: d,
9059
- svgRef: m
9070
+ svgRef: g
9060
9071
  }) => {
9061
9072
  let _ = null;
9062
- const g = (t || r) && !v && !d ? !k : !1, x = g ? 0 : (v || 0) / s.length;
9073
+ const m = (t || r) && !v && !d ? !k : !1, x = m ? 0 : (v || 0) / s.length;
9063
9074
  if (!e && !t && r) {
9064
9075
  const ne = (y ? Sd : wd)(
9065
9076
  s,
@@ -9067,7 +9078,7 @@ const ld = ({
9067
9078
  );
9068
9079
  t = ne.pfm, _ = ne.count || 1;
9069
9080
  }
9070
- const C = g && t && t.map(
9081
+ const C = m && t && t.map(
9071
9082
  (ne) => ne.reduce(
9072
9083
  (F, I, G) => G === void 0 ? F : I + F,
9073
9084
  0
@@ -9098,7 +9109,7 @@ const ld = ({
9098
9109
  width: o,
9099
9110
  height: a,
9100
9111
  viewBox: "0 0 " + W + " " + ae,
9101
- ref: m,
9112
+ ref: g,
9102
9113
  children: [
9103
9114
  h && /* @__PURE__ */ f.jsx(
9104
9115
  fd,
@@ -9155,7 +9166,7 @@ const ld = ({
9155
9166
  }
9156
9167
  );
9157
9168
  }, Ed = [
9158
- { component: [mi], regex: ["A"], color: ["red"] },
9169
+ { component: [gi], regex: ["A"], color: ["red"] },
9159
9170
  { component: [br], regex: ["C"], color: ["blue"] },
9160
9171
  { component: [vi], regex: ["G"], color: ["orange"] },
9161
9172
  { component: [xi], regex: ["T"], color: ["#228b22"] }
@@ -9164,7 +9175,7 @@ function Ld(e) {
9164
9175
  return /* @__PURE__ */ f.jsx(kd, { ...e, alphabet: Ed });
9165
9176
  }
9166
9177
  const No = /* @__PURE__ */ new Map([
9167
- ["A", mi],
9178
+ ["A", gi],
9168
9179
  ["C", br],
9169
9180
  ["G", vi],
9170
9181
  ["T", xi]
@@ -9200,14 +9211,14 @@ function Dd({ data: e, annotations: t, dimensions: n, height: r, zeroLineProps:
9200
9211
  if (e.length === 0 || e.importance.length === 0)
9201
9212
  return null;
9202
9213
  const { viewWidth: a } = n, [o] = be(null), [s, c, u] = zu(e, r), p = $u(t || [], s, u), h = ce(() => a / s.length / 100, [a, s.length]), b = at(c, [c]), v = ce(() => p.map((L, y) => {
9203
- const d = 100 * h * Math.abs(L.coordinates[1] - L.coordinates[0]), m = Math.min(...L.coordinates) * h * 100, _ = L.y + L.height, g = 80;
9214
+ const d = 100 * h * Math.abs(L.coordinates[1] - L.coordinates[0]), g = Math.min(...L.coordinates) * h * 100, _ = L.y + L.height, m = 80;
9204
9215
  return /* @__PURE__ */ f.jsxs(Ks, { children: [
9205
9216
  /* @__PURE__ */ f.jsx(
9206
9217
  "rect",
9207
9218
  {
9208
9219
  fill: L.color,
9209
9220
  fillOpacity: 0.4,
9210
- x: m,
9221
+ x: g,
9211
9222
  width: d,
9212
9223
  height: L.height,
9213
9224
  y: L.y
@@ -9218,10 +9229,10 @@ function Dd({ data: e, annotations: t, dimensions: n, height: r, zeroLineProps:
9218
9229
  {
9219
9230
  fill: L.color,
9220
9231
  fillOpacity: 0.4,
9221
- d: `M ${m} ${_} L ${m - d} ${_ + g} L ${m - d} ${_ + L.height * 3} L ${m + d * 2} ${_ + L.height * 3} L ${m + d * 2} ${_ + g} L ${m + d} ${_} L ${m} ${_}`
9232
+ d: `M ${g} ${_} L ${g - d} ${_ + m} L ${g - d} ${_ + L.height * 3} L ${g + d * 2} ${_ + L.height * 3} L ${g + d * 2} ${_ + m} L ${g + d} ${_} L ${g} ${_}`
9222
9233
  }
9223
9234
  ),
9224
- /* @__PURE__ */ f.jsx("g", { transform: `translate(${m - d},${_ + g})`, children: L.children })
9235
+ /* @__PURE__ */ f.jsx("g", { transform: `translate(${g - d},${_ + m})`, children: L.children })
9225
9236
  ] }, y);
9226
9237
  }), [p, h]), k = ce(
9227
9238
  () => ({
@@ -9364,7 +9375,7 @@ function Md({
9364
9375
  ), w = ce(
9365
9376
  () => qo(k, v),
9366
9377
  [k, v]
9367
- ), E = ce(() => qo(D, v), [D, v]), L = Cr(w.length, e), { handleClick: y, handleHover: d, handleLeave: m } = et({
9378
+ ), E = ce(() => qo(D, v), [D, v]), L = Cr(w.length, e), { handleClick: y, handleHover: d, handleLeave: g } = et({
9368
9379
  onClick: o,
9369
9380
  onHover: s,
9370
9381
  onLeave: c,
@@ -9373,7 +9384,7 @@ function Md({
9373
9384
  return /* @__PURE__ */ f.jsxs("g", { width: p, height: n, clipPath: `url(#${e})`, transform: `translate(-${h}, 0)`, children: [
9374
9385
  /* @__PURE__ */ f.jsx("rect", { width: p, height: n, fill: "transparent" }),
9375
9386
  /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: e, width: p, height: n }) }),
9376
- E.map((_, g) => /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${g * L})`, children: _.map((x, C) => /* @__PURE__ */ f.jsx(
9387
+ E.map((_, m) => /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${m * L})`, children: _.map((x, C) => /* @__PURE__ */ f.jsx(
9377
9388
  "rect",
9378
9389
  {
9379
9390
  height: L * 0.6,
@@ -9383,9 +9394,9 @@ function Md({
9383
9394
  fill: i || "#3287a8",
9384
9395
  style: { cursor: "pointer" }
9385
9396
  },
9386
- `${e}_peak_${g}_${C}`
9387
- )) }, `group_peak_${g}`)),
9388
- w.map((_, g) => /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${g * L})`, children: _.map((x, C) => /* @__PURE__ */ f.jsx(
9397
+ `${e}_peak_${m}_${C}`
9398
+ )) }, `group_peak_${m}`)),
9399
+ w.map((_, m) => /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${m * L})`, children: _.map((x, C) => /* @__PURE__ */ f.jsx(
9389
9400
  "rect",
9390
9401
  {
9391
9402
  height: L * 0.6,
@@ -9398,10 +9409,10 @@ function Md({
9398
9409
  onMouseOver: (j) => {
9399
9410
  j.persist(), x.pwm && d(x, "", j);
9400
9411
  },
9401
- onMouseOut: () => m(x)
9412
+ onMouseOut: () => g(x)
9402
9413
  },
9403
- `${e}_${g}_${C}`
9404
- )) }, `group_${g}`))
9414
+ `${e}_${m}_${C}`
9415
+ )) }, `group_${m}`))
9405
9416
  ] });
9406
9417
  }
9407
9418
  function Bd({
@@ -9421,19 +9432,19 @@ function Bd({
9421
9432
  return null;
9422
9433
  const h = o * (e.length - 1), b = (i - h) / e.length;
9423
9434
  return /* @__PURE__ */ f.jsx("g", { id: n, children: e.map((v, k) => {
9424
- var m;
9425
- const D = k * (b + o), w = ((m = t[k]) == null ? void 0 : m.name) || `Dataset ${k + 1}`, E = (_) => {
9426
- const g = { ..._, datasetName: w };
9427
- c && c(g);
9435
+ var g;
9436
+ const D = k * (b + o), w = ((g = t[k]) == null ? void 0 : g.name) || `Dataset ${k + 1}`, E = (_) => {
9437
+ const m = { ..._, datasetName: w };
9438
+ c && c(m);
9428
9439
  }, L = (_) => {
9429
- const g = { ..._, datasetName: w };
9430
- u && u(g);
9440
+ const m = { ..._, datasetName: w };
9441
+ u && u(m);
9431
9442
  }, y = (_) => {
9432
- const g = { ..._, datasetName: w };
9433
- s && s(g);
9443
+ const m = { ..._, datasetName: w };
9444
+ s && s(m);
9434
9445
  }, d = p ? (_) => {
9435
- const g = { ..._, datasetName: w };
9436
- return p(g);
9446
+ const m = { ..._, datasetName: w };
9447
+ return p(m);
9437
9448
  } : void 0;
9438
9449
  return /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${D})`, children: /* @__PURE__ */ f.jsx(
9439
9450
  Ts,
@@ -9460,7 +9471,7 @@ function Ft(e, t, n, r = !1, i, a, o = !1) {
9460
9471
  return e.forEach((v, k) => {
9461
9472
  if (v.min === null || v.max === null || o && !Id(a == null ? void 0 : a[k])) return;
9462
9473
  const D = zs(v, c, u, t, r);
9463
- b += ge(v.x, p) + ge(D.x, r ? t : 0) + ge(D.x + 1, r ? t : 0) + ge(v.x + 1, p), h += ge(v.x, p) + ge(D.x, D.y) + ge(D.x + 1, D.y) + ge(v.x + 1, p);
9474
+ b += me(v.x, p) + me(D.x, r ? t : 0) + me(D.x + 1, r ? t : 0) + me(v.x + 1, p), h += me(v.x, p) + me(D.x, D.y) + me(D.x + 1, D.y) + me(v.x + 1, p);
9464
9475
  }), {
9465
9476
  indicator: /* @__PURE__ */ f.jsx("path", { d: b, fill: n, fillOpacity: 0.2 }),
9466
9477
  values: /* @__PURE__ */ f.jsx("path", { d: h, fill: n })
@@ -9473,7 +9484,7 @@ function zo(e, t, n, r = !1, i) {
9473
9484
  let c = "";
9474
9485
  return e.forEach((u, p) => {
9475
9486
  const h = zs(u, o, s, t, r);
9476
- p === 0 ? c += it(h.x, h.y) : c += ge(h.x, h.y);
9487
+ p === 0 ? c += it(h.x, h.y) : c += me(h.x, h.y);
9477
9488
  }), /* @__PURE__ */ f.jsx("path", { d: c, stroke: n, fill: "none", strokeWidth: "1" });
9478
9489
  }
9479
9490
  function $s(e, t) {
@@ -9511,9 +9522,9 @@ function Ad({
9511
9522
  tooltipValues: e,
9512
9523
  showRows: t
9513
9524
  }) {
9514
- var g, x, C, j, M, B, A, q;
9525
+ var m, x, C, j, M, B, A, q;
9515
9526
  const n = Je((N) => N.text), r = Je((N) => N.background), i = {
9516
- depth: (g = e[3]) == null ? void 0 : g.max,
9527
+ depth: (m = e[3]) == null ? void 0 : m.max,
9517
9528
  cg: (x = e[0]) == null ? void 0 : x.max,
9518
9529
  chg: (C = e[1]) == null ? void 0 : C.max,
9519
9530
  chh: (j = e[2]) == null ? void 0 : j.max
@@ -9526,7 +9537,7 @@ function Ad({
9526
9537
  let p = 0;
9527
9538
  const h = t.fwdDepth ? ++p : -1, b = t.fwdCpg ? ++p : -1, v = t.fwdChg ? ++p : -1, k = t.fwdChh ? ++p : -1, D = o * (1 + p) + 20;
9528
9539
  let w = 0;
9529
- const E = t.revDepth ? ++w : -1, L = t.revCpg ? ++w : -1, y = t.revChg ? ++w : -1, d = t.revChh ? ++w : -1, m = (N) => D + o * (N - 1) + 8, _ = w > 0 ? m(w) + o + 4 : D + 20;
9540
+ const E = t.revDepth ? ++w : -1, L = t.revCpg ? ++w : -1, y = t.revChg ? ++w : -1, d = t.revChh ? ++w : -1, g = (N) => D + o * (N - 1) + 8, _ = w > 0 ? g(w) + o + 4 : D + 20;
9530
9541
  return /* @__PURE__ */ f.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${n})` }, children: [
9531
9542
  /* @__PURE__ */ f.jsx("rect", { rx: 4, y: -4, width: u + 10, height: _, fill: r, strokeWidth: 1 }),
9532
9543
  /* @__PURE__ */ f.jsxs("g", { children: [
@@ -9553,24 +9564,24 @@ function Ad({
9553
9564
  ] }),
9554
9565
  /* @__PURE__ */ f.jsx("text", { x: 5, y: D, fill: n, fontSize: "14", fontWeight: "bold", children: "Reverse" }),
9555
9566
  E >= 0 && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
9556
- /* @__PURE__ */ f.jsx("rect", { x: 5, y: m(E), width: s, height: o - 2, fill: bt.depth }),
9557
- /* @__PURE__ */ f.jsx("text", { x: 9, y: m(E) + 15, fill: "white", fontSize: "12", children: "Coverage for CpG" }),
9558
- /* @__PURE__ */ f.jsx("text", { x: s + 10, y: m(E) + 15, fill: n, fontSize: "12", children: a.depth != null ? Math.round(a.depth) : "N/A" })
9567
+ /* @__PURE__ */ f.jsx("rect", { x: 5, y: g(E), width: s, height: o - 2, fill: bt.depth }),
9568
+ /* @__PURE__ */ f.jsx("text", { x: 9, y: g(E) + 15, fill: "white", fontSize: "12", children: "Coverage for CpG" }),
9569
+ /* @__PURE__ */ f.jsx("text", { x: s + 10, y: g(E) + 15, fill: n, fontSize: "12", children: a.depth != null ? Math.round(a.depth) : "N/A" })
9559
9570
  ] }),
9560
9571
  L >= 0 && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
9561
- /* @__PURE__ */ f.jsx("rect", { x: 5, y: m(L), width: s, height: o - 2, fill: bt.cpg }),
9562
- /* @__PURE__ */ f.jsx("text", { x: 9, y: m(L) + 15, fill: "white", fontSize: "12", children: "CG" }),
9563
- /* @__PURE__ */ f.jsx("text", { x: s + 10, y: m(L) + 15, fill: n, fontSize: "12", children: a.cg != null ? a.cg.toFixed(2) + "%" : "N/A" })
9572
+ /* @__PURE__ */ f.jsx("rect", { x: 5, y: g(L), width: s, height: o - 2, fill: bt.cpg }),
9573
+ /* @__PURE__ */ f.jsx("text", { x: 9, y: g(L) + 15, fill: "white", fontSize: "12", children: "CG" }),
9574
+ /* @__PURE__ */ f.jsx("text", { x: s + 10, y: g(L) + 15, fill: n, fontSize: "12", children: a.cg != null ? a.cg.toFixed(2) + "%" : "N/A" })
9564
9575
  ] }),
9565
9576
  y >= 0 && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
9566
- /* @__PURE__ */ f.jsx("rect", { x: 5, y: m(y), width: s, height: o - 2, fill: bt.chg }),
9567
- /* @__PURE__ */ f.jsx("text", { x: 9, y: m(y) + 15, fill: "white", fontSize: "12", children: "CHG" }),
9568
- /* @__PURE__ */ f.jsx("text", { x: s + 10, y: m(y) + 15, fill: n, fontSize: "12", children: a.chg != null ? a.chg.toFixed(2) + "%" : "N/A" })
9577
+ /* @__PURE__ */ f.jsx("rect", { x: 5, y: g(y), width: s, height: o - 2, fill: bt.chg }),
9578
+ /* @__PURE__ */ f.jsx("text", { x: 9, y: g(y) + 15, fill: "white", fontSize: "12", children: "CHG" }),
9579
+ /* @__PURE__ */ f.jsx("text", { x: s + 10, y: g(y) + 15, fill: n, fontSize: "12", children: a.chg != null ? a.chg.toFixed(2) + "%" : "N/A" })
9569
9580
  ] }),
9570
9581
  d >= 0 && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
9571
- /* @__PURE__ */ f.jsx("rect", { x: 5, y: m(d), width: s, height: o - 2, fill: bt.chh }),
9572
- /* @__PURE__ */ f.jsx("text", { x: 9, y: m(d) + 15, fill: "white", fontSize: "12", children: "CHH" }),
9573
- /* @__PURE__ */ f.jsx("text", { x: s + 10, y: m(d) + 15, fill: n, fontSize: "12", children: a.chh != null ? a.chh.toFixed(2) + "%" : "N/A" })
9582
+ /* @__PURE__ */ f.jsx("rect", { x: 5, y: g(d), width: s, height: o - 2, fill: bt.chh }),
9583
+ /* @__PURE__ */ f.jsx("text", { x: 9, y: g(d) + 15, fill: "white", fontSize: "12", children: "CHH" }),
9584
+ /* @__PURE__ */ f.jsx("text", { x: s + 10, y: g(d) + 15, fill: n, fontSize: "12", children: a.chh != null ? a.chh.toFixed(2) + "%" : "N/A" })
9574
9585
  ] })
9575
9586
  ] })
9576
9587
  ] });
@@ -9617,7 +9628,7 @@ function Nd({
9617
9628
  chhMinus: Ft(i[6], Y, r.chh, !0, E),
9618
9629
  depthMinus: zo(i[7], Y, r.depth, !0, L)
9619
9630
  };
9620
- }, [i, t, r, E, L, n]), { mouseState: d, updateMouseState: m, clearMouseState: _ } = di(b, p, k, u), g = ce(() => {
9631
+ }, [i, t, r, E, L, n]), { mouseState: d, updateMouseState: g, clearMouseState: _ } = di(b, p, k, u), m = ce(() => {
9621
9632
  var Y;
9622
9633
  return (Y = d.pos) != null && Y.x ? d.pos.x - k + u : 0;
9623
9634
  }, [(B = d.pos) == null ? void 0 : B.x, k, u]), x = ce(() => {
@@ -9661,7 +9672,7 @@ function Nd({
9661
9672
  (te = y.chhMinus) == null ? void 0 : te.values,
9662
9673
  y.depthMinus
9663
9674
  ] }),
9664
- !v && ((le = d.pos) == null ? void 0 : le.x) && /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsx("line", { stroke: D, x1: g, x2: g, y1: 0, y2: t }) }),
9675
+ !v && ((le = d.pos) == null ? void 0 : le.x) && /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsx("line", { stroke: D, x1: m, x2: m, y1: 0, y2: t }) }),
9665
9676
  /* @__PURE__ */ f.jsx(
9666
9677
  "rect",
9667
9678
  {
@@ -9670,7 +9681,7 @@ function Nd({
9670
9681
  transform: `translate(${u}, 0)`,
9671
9682
  fill: "transparent",
9672
9683
  onMouseMove: (Y) => {
9673
- m(Y), j({ tooltipValues: x, showRows: C }, "", Y);
9684
+ g(Y), j({ tooltipValues: x, showRows: C }, "", Y);
9674
9685
  },
9675
9686
  onMouseOut: () => {
9676
9687
  _(), M({ tooltipValues: x, showRows: C });
@@ -9704,10 +9715,10 @@ function qd({
9704
9715
  t || E,
9705
9716
  k,
9706
9717
  s
9707
- ), [e, r, i, t, E, s]), { mouseState: y, updateMouseState: d, clearMouseState: m } = di(h, u, v, c), _ = ce(() => {
9718
+ ), [e, r, i, t, E, s]), { mouseState: y, updateMouseState: d, clearMouseState: g } = di(h, u, v, c), _ = ce(() => {
9708
9719
  var M;
9709
9720
  return (M = y.pos) != null && M.x ? y.pos.x - v + c : 0;
9710
- }, [(j = y.pos) == null ? void 0 : j.x, v, c]), g = Je((M) => M.text), { handleHover: x, handleLeave: C } = et({
9721
+ }, [(j = y.pos) == null ? void 0 : j.x, v, c]), m = Je((M) => M.text), { handleHover: x, handleLeave: C } = et({
9711
9722
  onClick: void 0,
9712
9723
  onHover: void 0,
9713
9724
  onLeave: void 0,
@@ -9716,7 +9727,7 @@ function qd({
9716
9727
  return /* @__PURE__ */ f.jsxs("g", { width: u, height: r, clipPath: `url(#${n})`, transform: `translate(-${c}, 0)`, children: [
9717
9728
  /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx(Ot, { id: n, width: u, height: r }) }),
9718
9729
  L,
9719
- !b && _ && /* @__PURE__ */ f.jsx("line", { stroke: g, x1: _, x2: _, y1: 0, y2: r }),
9730
+ !b && _ && /* @__PURE__ */ f.jsx("line", { stroke: m, x1: _, x2: _, y1: 0, y2: r }),
9720
9731
  /* @__PURE__ */ f.jsx(
9721
9732
  "rect",
9722
9733
  {
@@ -9736,7 +9747,7 @@ function qd({
9736
9747
  }
9737
9748
  },
9738
9749
  onMouseOut: () => {
9739
- m(), C({});
9750
+ g(), C({});
9740
9751
  }
9741
9752
  }
9742
9753
  )
@@ -9751,8 +9762,8 @@ function $d(e, t, n, r, i, a) {
9751
9762
  u && p ? h = "#ffff00" : !u && !p || u && !p ? h = "#ff0000" : h = "#00ff00";
9752
9763
  let b = it(0, c), v = it(0, c), k = "", D = "", w = "";
9753
9764
  return e.forEach((E) => {
9754
- const L = Math.max(s.min, Math.min(s.max, E.min)), y = Math.max(s.min, Math.min(s.max, E.max)), d = Wt(L, s, { min: 0, max: t }), m = Wt(y, s, { min: 0, max: t });
9755
- b += ge(E.x, c) + ge(E.x, t - d) + ge(E.x + 1, t - d) + ge(E.x + 1, c), v += ge(E.x, c) + ge(E.x, t - m) + ge(E.x + 1, t - m) + ge(E.x + 1, c), r && E.min < r.min && (D += `M ${E.x} ${t} l 0 -2 `), r && E.max > r.max && (k += `M ${E.x} 0 l 0 2 `), a && E.min === 0 && E.max === 0 && (w += `M ${E.x} ${c} v -1 h 1 v 1 `);
9765
+ const L = Math.max(s.min, Math.min(s.max, E.min)), y = Math.max(s.min, Math.min(s.max, E.max)), d = Wt(L, s, { min: 0, max: t }), g = Wt(y, s, { min: 0, max: t });
9766
+ b += me(E.x, c) + me(E.x, t - d) + me(E.x + 1, t - d) + me(E.x + 1, c), v += me(E.x, c) + me(E.x, t - g) + me(E.x + 1, t - g) + me(E.x + 1, c), r && E.min < r.min && (D += `M ${E.x} ${t} l 0 -2 `), r && E.max > r.max && (k += `M ${E.x} 0 l 0 2 `), a && E.min === 0 && E.max === 0 && (w += `M ${E.x} ${c} v -1 h 1 v 1 `);
9756
9767
  }), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
9757
9768
  s.min < 0 ? /* @__PURE__ */ f.jsx("path", { d: b, fill: pt(n, 0.2) }) : null,
9758
9769
  /* @__PURE__ */ f.jsx("line", { x1: 0, y1: c, x2: 4190, y2: c, stroke: i, strokeWidth: 1 }),
@@ -9796,7 +9807,7 @@ function Ud({
9796
9807
  pixelStart: E(W.start),
9797
9808
  pixelEnd: E(W.stop)
9798
9809
  }))) || [];
9799
- }, [t, E]), { handleClick: m, handleHover: _, handleLeave: g } = et({
9810
+ }, [t, E]), { handleClick: g, handleHover: _, handleLeave: m } = et({
9800
9811
  onClick: s,
9801
9812
  onHover: c,
9802
9813
  onLeave: u,
@@ -9878,7 +9889,7 @@ function Ud({
9878
9889
  stroke: W ? v : "none",
9879
9890
  strokeWidth: W ? 1 : 0,
9880
9891
  onClick: () => {
9881
- m(N);
9892
+ g(N);
9882
9893
  const ae = a || [], ne = N.snpid;
9883
9894
  ae.includes(ne) ? w(e, { show: ae.filter((F) => F !== ne) }) : w(e, { show: [...ae, ne] });
9884
9895
  },
@@ -9886,7 +9897,7 @@ function Ud({
9886
9897
  _(N, "", ae), C(N);
9887
9898
  },
9888
9899
  onMouseOut: () => {
9889
- g(N), C(null);
9900
+ m(N), C(null);
9890
9901
  }
9891
9902
  },
9892
9903
  `${e}_${V}`
@@ -9953,20 +9964,20 @@ function Wd({
9953
9964
  onLeave: p,
9954
9965
  tooltip: h
9955
9966
  }) {
9956
- const { totalWidth: b, sideWidth: v } = s, k = ht((g) => g.text), D = fe((g) => g.getExpandedDomain), w = fe((g) => g.marginWidth), { x: E } = lt(b), L = 4, { handleHover: y } = et({
9967
+ const { totalWidth: b, sideWidth: v } = s, k = ht((m) => m.text), D = fe((m) => m.getExpandedDomain), w = fe((m) => m.marginWidth), { x: E } = lt(b), L = 4, { handleHover: y } = et({
9957
9968
  onClick: c,
9958
9969
  onHover: u,
9959
9970
  onLeave: p,
9960
9971
  tooltip: h || Yd
9961
9972
  }), d = ce(() => {
9962
- const g = t.map((C) => C.value).reduce((C, j) => Math.min(C, j), 1 / 0), x = t.map((C) => C.value).reduce((C, j) => Math.max(C, j), -1 / 0);
9973
+ const m = t.map((C) => C.value).reduce((C, j) => Math.min(C, j), 1 / 0), x = t.map((C) => C.value).reduce((C, j) => Math.max(C, j), -1 / 0);
9963
9974
  return {
9964
- min: g,
9975
+ min: m,
9965
9976
  max: x
9966
9977
  };
9967
- }, [t]), m = ce(() => {
9968
- const g = D();
9969
- return t.filter((C) => C.chr === g.chromosome && C.start <= g.end && C.end >= g.start).map((C) => {
9978
+ }, [t]), g = ce(() => {
9979
+ const m = D();
9980
+ return t.filter((C) => C.chr === m.chromosome && C.start <= m.end && C.end >= m.start).map((C) => {
9970
9981
  const j = E(C.start), M = E(C.end), B = (j + M) / 2, A = Wt(C.value, d, { min: a, max: 0 }), q = i == null ? void 0 : i.includes(C.snpId), N = q || C.value >= (n || 7.3) ? 1 : 0.1;
9971
9982
  return {
9972
9983
  ...C,
@@ -9981,21 +9992,21 @@ function Wd({
9981
9992
  }, [t, E, D, d, i]), _ = ce(() => Wt(n || 7.3, d, { min: a, max: 0 }), [d]);
9982
9993
  return /* @__PURE__ */ f.jsxs("g", { id: e, transform: `translate(-${v}, 0)`, children: [
9983
9994
  /* @__PURE__ */ f.jsx("rect", { width: b, height: a, fill: "transparent" }),
9984
- m.map(
9985
- (g, x) => /* @__PURE__ */ f.jsx(
9995
+ g.map(
9996
+ (m, x) => /* @__PURE__ */ f.jsx(
9986
9997
  "circle",
9987
9998
  {
9988
- cx: g.xPosition,
9989
- cy: g.yPosition,
9999
+ cx: m.xPosition,
10000
+ cy: m.yPosition,
9990
10001
  r: L,
9991
10002
  fill: o,
9992
- opacity: g.opacity,
10003
+ opacity: m.opacity,
9993
10004
  onMouseOver: (C) => {
9994
- y(g, "", C);
10005
+ y(m, "", C);
9995
10006
  },
9996
10007
  style: { cursor: c ? "pointer" : "default" }
9997
10008
  },
9998
- `${g.snpId}-${x}`
10009
+ `${m.snpId}-${x}`
9999
10010
  )
10000
10011
  ),
10001
10012
  _ > 0 && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
@@ -10064,10 +10075,10 @@ function Gd({
10064
10075
  });
10065
10076
  return /* @__PURE__ */ f.jsxs("g", { transform: `translate(-${b}, 0)`, children: [
10066
10077
  /* @__PURE__ */ f.jsx("rect", { width: h, height: i, fill: "transparent" }),
10067
- r == null ? void 0 : r.map((d, m) => {
10068
- const _ = w.find((N) => N.snpId === d), g = w.find((N) => N.snpId === n);
10069
- if (!_ || !g) return null;
10070
- const x = _.pixelStart + (_.pixelEnd - _.pixelStart) / 2, C = g.pixelStart + (g.pixelEnd - g.pixelStart) / 2, j = i - k, M = i - k, B = x + (C - x) * 0.5, A = Math.min(j, M) - i * 1, q = `M ${x} ${j} Q ${B} ${A} ${C} ${M}`;
10078
+ r == null ? void 0 : r.map((d, g) => {
10079
+ const _ = w.find((N) => N.snpId === d), m = w.find((N) => N.snpId === n);
10080
+ if (!_ || !m) return null;
10081
+ const x = _.pixelStart + (_.pixelEnd - _.pixelStart) / 2, C = m.pixelStart + (m.pixelEnd - m.pixelStart) / 2, j = i - k, M = i - k, B = x + (C - x) * 0.5, A = Math.min(j, M) - i * 1, q = `M ${x} ${j} Q ${B} ${A} ${C} ${M}`;
10071
10082
  return /* @__PURE__ */ f.jsx(
10072
10083
  "path",
10073
10084
  {
@@ -10077,10 +10088,10 @@ function Gd({
10077
10088
  fill: "none",
10078
10089
  opacity: 0.5
10079
10090
  },
10080
- `reference-arc-${m}`
10091
+ `reference-arc-${g}`
10081
10092
  );
10082
10093
  }),
10083
- /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${i - k})`, children: w.map((d, m) => /* @__PURE__ */ f.jsx(
10094
+ /* @__PURE__ */ f.jsx("g", { transform: `translate(0, ${i - k})`, children: w.map((d, g) => /* @__PURE__ */ f.jsx(
10084
10095
  "rect",
10085
10096
  {
10086
10097
  height: k,
@@ -10092,7 +10103,7 @@ function Gd({
10092
10103
  onMouseOver: (_) => L(d, "", _),
10093
10104
  onMouseOut: () => y(d)
10094
10105
  },
10095
- `${e}_${m}`
10106
+ `${e}_${g}`
10096
10107
  )) })
10097
10108
  ] });
10098
10109
  }
@@ -10119,43 +10130,43 @@ function Zd({ id: e }) {
10119
10130
  return /* @__PURE__ */ f.jsx(Is, { id: e, transform: u, error: o, loading: a, children: p });
10120
10131
  }
10121
10132
  const _i = {
10122
- [me.BigWig]: {
10133
+ [ge.BigWig]: {
10123
10134
  [Fe.Full]: qd,
10124
10135
  [Fe.Dense]: ru
10125
10136
  },
10126
- [me.BigBed]: {
10137
+ [ge.BigBed]: {
10127
10138
  [Fe.Dense]: Ts,
10128
10139
  [Fe.Squish]: Du
10129
10140
  },
10130
- [me.Transcript]: {
10141
+ [ge.Transcript]: {
10131
10142
  [Fe.Squish]: Nu,
10132
10143
  [Fe.Pack]: qu
10133
10144
  },
10134
- [me.Motif]: {
10145
+ [ge.Motif]: {
10135
10146
  [Fe.Dense]: jd,
10136
10147
  [Fe.Squish]: Md
10137
10148
  },
10138
- [me.Importance]: {
10149
+ [ge.Importance]: {
10139
10150
  [Fe.Full]: Dd
10140
10151
  },
10141
- [me.LDTrack]: {
10152
+ [ge.LDTrack]: {
10142
10153
  [Fe.LDBlock]: Ud,
10143
10154
  [Fe.GenericLD]: Gd
10144
10155
  },
10145
- [me.BulkBed]: {
10156
+ [ge.BulkBed]: {
10146
10157
  [Fe.Full]: Bd
10147
10158
  },
10148
- [me.MethylC]: {
10159
+ [ge.MethylC]: {
10149
10160
  // [DisplayMode.Combined]: CombinedMethylC,
10150
10161
  [Fe.Split]: Nd
10151
10162
  },
10152
- [me.Manhattan]: {
10163
+ [ge.Manhattan]: {
10153
10164
  [Fe.Scatter]: Wd
10154
10165
  },
10155
- [me.Custom]: {}
10166
+ [ge.Custom]: {}
10156
10167
  };
10157
10168
  function Xd(e, t, n) {
10158
- if (e.trackType === me.Custom) {
10169
+ if (e.trackType === ge.Custom) {
10159
10170
  const a = e.renderers[e.displayMode];
10160
10171
  return a ? /* @__PURE__ */ f.jsx(a, { ...e, data: t, dimensions: n }) : null;
10161
10172
  }
@@ -10247,7 +10258,7 @@ function r0() {
10247
10258
  document.removeEventListener("mousedown", w);
10248
10259
  };
10249
10260
  }, [e, i, t, n, r]), !o || !s || s.data === null) return null;
10250
- const b = o.displayMode, v = o.trackType === me.Custom ? o.renderers : _i[o.trackType], k = Object.keys(v), D = (w) => {
10261
+ const b = o.displayMode, v = o.trackType === ge.Custom ? o.renderers : _i[o.trackType], k = Object.keys(v), D = (w) => {
10251
10262
  t && (i(!1, t, n, r), w === "remove" ? u(t) : w === "download" ? Fs(t, o.title, !0) : c(t, { displayMode: w }));
10252
10263
  };
10253
10264
  return /* @__PURE__ */ f.jsxs(
@@ -10371,8 +10382,8 @@ var cr = function(e, t, n) {
10371
10382
  }
10372
10383
  return [function(w) {
10373
10384
  var E = w.nativeEvent, L = i.current;
10374
- if (L && (Wo(E), !(function(d, m) {
10375
- return m && !or(d);
10385
+ if (L && (Wo(E), !(function(d, g) {
10386
+ return g && !or(d);
10376
10387
  })(E, c.current) && L)) {
10377
10388
  if (or(E)) {
10378
10389
  c.current = !0;
@@ -10465,7 +10476,7 @@ function d0(e, t, n) {
10465
10476
  }
10466
10477
  var h0 = typeof window < "u" ? Js : Ee, p0 = function() {
10467
10478
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
10468
- }, Yo = /* @__PURE__ */ new Map(), g0 = function(e) {
10479
+ }, Yo = /* @__PURE__ */ new Map(), m0 = function(e) {
10469
10480
  h0(function() {
10470
10481
  var t = e.current ? e.current.ownerDocument : document;
10471
10482
  if (t !== void 0 && !Yo.has(t)) {
@@ -10475,15 +10486,15 @@ var h0 = typeof window < "u" ? Js : Ee, p0 = function() {
10475
10486
  r && n.setAttribute("nonce", r), t.head.appendChild(n);
10476
10487
  }
10477
10488
  }, []);
10478
- }, m0 = function(e) {
10489
+ }, g0 = function(e) {
10479
10490
  var t = e.className, n = e.colorModel, r = e.color, i = r === void 0 ? n.defaultColor : r, a = e.onChange, o = Us(e, ["className", "colorModel", "color", "onChange"]), s = Ie(null);
10480
- g0(s);
10491
+ m0(s);
10481
10492
  var c = d0(n, i, a), u = c[0], p = c[1], h = bi(["react-colorful", t]);
10482
10493
  return Te.createElement("div", Rr({}, o, { ref: s, className: h }), Te.createElement(u0, { hsva: u, onChange: p }), Te.createElement(l0, { hue: u.h, onChange: p, className: "react-colorful__last-control" }));
10483
10494
  }, v0 = { defaultColor: "000", toHsva: n0, fromHsva: function(e) {
10484
10495
  return i0({ h: e.h, s: e.s, v: e.v, a: 1 });
10485
10496
  }, equal: f0 }, x0 = function(e) {
10486
- return Te.createElement(m0, Rr({}, e, { colorModel: v0 }));
10497
+ return Te.createElement(g0, Rr({}, e, { colorModel: v0 }));
10487
10498
  };
10488
10499
  function y0(e, t) {
10489
10500
  const [n, r] = be(e);
@@ -10496,7 +10507,7 @@ function y0(e, t) {
10496
10507
  };
10497
10508
  }, [e, t]), n;
10498
10509
  }
10499
- function gt({ title: e, children: t }) {
10510
+ function mt({ title: e, children: t }) {
10500
10511
  return /* @__PURE__ */ f.jsxs(
10501
10512
  "div",
10502
10513
  {
@@ -10524,7 +10535,7 @@ function _0({ track: e }) {
10524
10535
  const a = (o) => {
10525
10536
  r(e.id, { color: o });
10526
10537
  };
10527
- return /* @__PURE__ */ f.jsx(gt, { title: "", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "5px" }, children: [
10538
+ return /* @__PURE__ */ f.jsx(mt, { title: "", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "5px" }, children: [
10528
10539
  /* @__PURE__ */ f.jsx("div", { style: { fontWeight: "bold" }, children: "Color: " }),
10529
10540
  /* @__PURE__ */ f.jsx(b0, { color: e.color || "", onChange: a }),
10530
10541
  /* @__PURE__ */ f.jsx("div", { style: { fontWeight: "bold" }, children: "Title: " }),
@@ -10584,7 +10595,7 @@ function wi(e, t) {
10584
10595
  };
10585
10596
  }
10586
10597
  function S0({ id: e, trackType: t }) {
10587
- const n = xe((p) => p.getTrack(e)), r = t === me.Custom && n ? n.renderers : _i[t], i = Object.keys(r), a = n == null ? void 0 : n.displayMode, o = n == null ? void 0 : n.color, s = xe((p) => p.editTrack), c = (p) => ({
10598
+ const n = xe((p) => p.getTrack(e)), r = t === ge.Custom && n ? n.renderers : _i[t], i = Object.keys(r), a = n == null ? void 0 : n.displayMode, o = n == null ? void 0 : n.color, s = xe((p) => p.editTrack), c = (p) => ({
10588
10599
  ...wi(o || "#000000", p),
10589
10600
  marginRight: "5px",
10590
10601
  padding: "10px",
@@ -10594,7 +10605,7 @@ function S0({ id: e, trackType: t }) {
10594
10605
  }), u = (p) => {
10595
10606
  s(e, { displayMode: p });
10596
10607
  };
10597
- return n ? /* @__PURE__ */ f.jsx(gt, { title: "Display Mode", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: i.map((p) => /* @__PURE__ */ f.jsx("button", { onClick: () => u(p), style: c(p === a), children: p }, p)) }) }) : null;
10608
+ return n ? /* @__PURE__ */ f.jsx(mt, { title: "Display Mode", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: i.map((p) => /* @__PURE__ */ f.jsx("button", { onClick: () => u(p), style: c(p === a), children: p }, p)) }) }) : null;
10598
10609
  }
10599
10610
  function k0({ id: e, defaultHeight: t }) {
10600
10611
  const n = Ie(null), r = xe((y) => y.editTrack), i = xe((y) => y.editAllTracksByType), a = xe((y) => y.getTrack), o = xe((y) => y.tracks), s = 20, c = 300, u = a(e), p = u == null ? void 0 : u.trackType, h = u == null ? void 0 : u.color, b = (y) => {
@@ -10612,21 +10623,21 @@ function k0({ id: e, defaultHeight: t }) {
10612
10623
  i(p, { height: d });
10613
10624
  }, D = p ? o.filter((y) => y.trackType === p).length : 0, w = D > 1, E = (y) => {
10614
10625
  switch (y) {
10615
- case me.BigWig:
10626
+ case ge.BigWig:
10616
10627
  return "BigWig";
10617
- case me.BigBed:
10628
+ case ge.BigBed:
10618
10629
  return "BigBed";
10619
- case me.Transcript:
10630
+ case ge.Transcript:
10620
10631
  return "Transcript";
10621
- case me.Motif:
10632
+ case ge.Motif:
10622
10633
  return "Motif";
10623
- case me.Importance:
10634
+ case ge.Importance:
10624
10635
  return "Importance";
10625
- case me.LDTrack:
10636
+ case ge.LDTrack:
10626
10637
  return "LDTrack";
10627
- case me.BulkBed:
10638
+ case ge.BulkBed:
10628
10639
  return "BulkBed";
10629
- case me.MethylC:
10640
+ case ge.MethylC:
10630
10641
  return "MethylC";
10631
10642
  default:
10632
10643
  return y;
@@ -10639,7 +10650,7 @@ function k0({ id: e, defaultHeight: t }) {
10639
10650
  cursor: "pointer",
10640
10651
  whiteSpace: "nowrap"
10641
10652
  });
10642
- return /* @__PURE__ */ f.jsx(gt, { title: "Height", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px", alignItems: "flex-start" }, children: [
10653
+ return /* @__PURE__ */ f.jsx(mt, { title: "Height", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px", alignItems: "flex-start" }, children: [
10643
10654
  /* @__PURE__ */ f.jsx(E0, { inputRef: n, defaultValue: t, validate: v, callback: b }),
10644
10655
  w && p && /* @__PURE__ */ f.jsxs(
10645
10656
  "button",
@@ -10712,7 +10723,7 @@ function T0({ track: e }) {
10712
10723
  cursor: "pointer"
10713
10724
  };
10714
10725
  }, c = e.assembly.toLowerCase() === "grch38";
10715
- return /* @__PURE__ */ f.jsx(gt, { title: c ? "Human Assembly Version" : "Mouse Assembly Version", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: Object.values(c ? ii : Gs).filter((u) => !isNaN(Number(u))).map((u, p) => /* @__PURE__ */ f.jsx(
10726
+ return /* @__PURE__ */ f.jsx(mt, { title: c ? "Human Assembly Version" : "Mouse Assembly Version", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: Object.values(c ? ii : Gs).filter((u) => !isNaN(Number(u))).map((u, p) => /* @__PURE__ */ f.jsx(
10716
10727
  "button",
10717
10728
  {
10718
10729
  onClick: () => o(Number(u)),
@@ -10792,7 +10803,7 @@ function D0({
10792
10803
  const p = { min: (n == null ? void 0 : n.min) ?? t.min, max: u };
10793
10804
  r(e, { customRange: p });
10794
10805
  };
10795
- return /* @__PURE__ */ f.jsx(gt, { title: "Range", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "10px" }, children: [
10806
+ return /* @__PURE__ */ f.jsx(mt, { title: "Range", children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "10px" }, children: [
10796
10807
  "Min:",
10797
10808
  " ",
10798
10809
  /* @__PURE__ */ f.jsx(
@@ -10820,7 +10831,7 @@ function j0({ id: e, name: t }) {
10820
10831
  const n = xe((i) => i.editTrack), r = (i) => {
10821
10832
  n(e, { geneName: i.target.value });
10822
10833
  };
10823
- return /* @__PURE__ */ f.jsx(gt, { title: "Highlight Gene", children: /* @__PURE__ */ f.jsx("input", { value: t, onChange: r, className: "w-full" }) });
10834
+ return /* @__PURE__ */ f.jsx(mt, { title: "Highlight Gene", children: /* @__PURE__ */ f.jsx("input", { value: t, onChange: r, className: "w-full" }) });
10824
10835
  }
10825
10836
  const Xn = {
10826
10837
  cursor: "pointer",
@@ -10835,14 +10846,14 @@ const Xn = {
10835
10846
  };
10836
10847
  function M0({ track: e }) {
10837
10848
  const t = fe((k) => k.getExpandedDomain), n = nt((k) => k.trackData.get(e.id || "")), r = t(), i = e.color || "#ffffff", a = w0(i), o = ar(i, a ? 30 : -30), s = wr(i), c = (n == null ? void 0 : n.data) ?? void 0, u = () => {
10838
- e.trackType === me.BigWig ? Kd(e.id, c, r) : e.trackType === me.BigBed && Qd(e.id, c, r);
10849
+ e.trackType === ge.BigWig ? Kd(e.id, c, r) : e.trackType === ge.BigBed && Qd(e.id, c, r);
10839
10850
  }, p = () => {
10840
10851
  Fs(e.id, e.title, !0);
10841
10852
  }, h = () => {
10842
- e.trackType === me.BigWig && (navigator.clipboard.writeText(e.url || ""), alert("Copied URL to clipboard!"));
10853
+ e.trackType === ge.BigWig && (navigator.clipboard.writeText(e.url || ""), alert("Copied URL to clipboard!"));
10843
10854
  }, [b, v] = be(-1);
10844
- return /* @__PURE__ */ f.jsx(gt, { title: "Download", children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: [
10845
- e.trackType === me.BigWig || e.trackType === me.BigBed ? /* @__PURE__ */ f.jsx(
10855
+ return /* @__PURE__ */ f.jsx(mt, { title: "Download", children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: [
10856
+ e.trackType === ge.BigWig || e.trackType === ge.BigBed ? /* @__PURE__ */ f.jsx(
10846
10857
  "button",
10847
10858
  {
10848
10859
  style: {
@@ -10878,7 +10889,7 @@ function M0({ track: e }) {
10878
10889
  children: "Locus SVG"
10879
10890
  }
10880
10891
  ),
10881
- e.trackType === me.BigWig || e.trackType === me.BigBed && e.url ? /* @__PURE__ */ f.jsx(
10892
+ e.trackType === ge.BigWig || e.trackType === ge.BigBed && e.url ? /* @__PURE__ */ f.jsx(
10882
10893
  "button",
10883
10894
  {
10884
10895
  style: {
@@ -10909,10 +10920,10 @@ function B0({ id: e, defaultGap: t }) {
10909
10920
  if (c < r) return `Gap must be at least ${r}`;
10910
10921
  if (c > i) return `Gap must be at most ${i}`;
10911
10922
  };
10912
- return /* @__PURE__ */ f.jsx(gt, { title: "Gap", children: /* @__PURE__ */ f.jsx(ai, { defaultValue: t, validate: o, callback: a }) });
10923
+ return /* @__PURE__ */ f.jsx(mt, { title: "Gap", children: /* @__PURE__ */ f.jsx(ai, { defaultValue: t, validate: o, callback: a }) });
10913
10924
  }
10914
10925
  function I0({ datasets: e }) {
10915
- return /* @__PURE__ */ f.jsx(gt, { title: "Datasets", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: e.map((t, n) => /* @__PURE__ */ f.jsx("div", { style: { fontSize: "12px", color: "#666" }, children: t.name }, n)) }) });
10926
+ return /* @__PURE__ */ f.jsx(mt, { title: "Datasets", children: /* @__PURE__ */ f.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: e.map((t, n) => /* @__PURE__ */ f.jsx("div", { style: { fontSize: "12px", color: "#666" }, children: t.name }, n)) }) });
10916
10927
  }
10917
10928
  function O0() {
10918
10929
  const e = ir((b) => b.id), t = ir((b) => b.open), n = ir((b) => b.closeModal), r = ir((b) => b.position), i = 40, [a, o] = be(r), [s, c] = be(!1), u = (b, v) => {
@@ -10988,27 +10999,27 @@ function P0({ id: e }) {
10988
10999
  if (!t) return "no configuration available";
10989
11000
  const n = (() => {
10990
11001
  switch (t.trackType) {
10991
- case me.BigWig:
11002
+ case ge.BigWig:
10992
11003
  return /* @__PURE__ */ f.jsx(D0, { id: e, defaultRange: t.range, customRange: t.customRange });
10993
- case me.BigBed:
11004
+ case ge.BigBed:
10994
11005
  return /* @__PURE__ */ f.jsx(f.Fragment, {});
10995
- case me.Transcript:
11006
+ case ge.Transcript:
10996
11007
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
10997
11008
  /* @__PURE__ */ f.jsx(T0, { track: t }),
10998
11009
  /* @__PURE__ */ f.jsx(j0, { id: e, name: t.geneName || "" })
10999
11010
  ] });
11000
- case me.Motif:
11011
+ case ge.Motif:
11001
11012
  return /* @__PURE__ */ f.jsx(f.Fragment, {});
11002
- case me.Importance:
11013
+ case ge.Importance:
11003
11014
  return /* @__PURE__ */ f.jsx(f.Fragment, {});
11004
- case me.LDTrack:
11015
+ case ge.LDTrack:
11005
11016
  return /* @__PURE__ */ f.jsx(f.Fragment, {});
11006
- case me.BulkBed:
11017
+ case ge.BulkBed:
11007
11018
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
11008
11019
  /* @__PURE__ */ f.jsx(B0, { id: e, defaultGap: t.gap || 0 }),
11009
11020
  /* @__PURE__ */ f.jsx(I0, { datasets: t.datasets || [] })
11010
11021
  ] });
11011
- case me.Custom: {
11022
+ case ge.Custom: {
11012
11023
  const r = t.settingsPanel;
11013
11024
  return r ? /* @__PURE__ */ f.jsx(r, { id: e }) : /* @__PURE__ */ f.jsx(f.Fragment, {});
11014
11025
  }
@@ -11053,10 +11064,10 @@ function A0({ handleClose: e, color: t }) {
11053
11064
  function N0() {
11054
11065
  const e = Ht((E) => E.content), t = Ht((E) => E.x), n = Ht((E) => E.y), r = Ht((E) => E.show), [i, a] = be(0), [o, s] = be(0), [c, u] = be({ width: 0, height: 0 }), p = Ie(null), h = fe((E) => E.delta), b = fe((E) => E.browserWidth), k = kr() + De, D = 5, w = at(() => {
11055
11066
  if (!p.current) return;
11056
- const E = t, L = n, y = p.current.getBBox(), d = y.width, m = y.height;
11057
- (c.width !== d || c.height !== m) && u({ width: d, height: m });
11058
- let _ = E + D, g = L + D;
11059
- _ + d > b && (_ = E - d - D), _ < 0 && (_ = Math.max(0, b - d)), g + m > k && (g = L - m - D), g < 0 && (g = Math.max(0, k - m)), a(_), s(g);
11067
+ const E = t, L = n, y = p.current.getBBox(), d = y.width, g = y.height;
11068
+ (c.width !== d || c.height !== g) && u({ width: d, height: g });
11069
+ let _ = E + D, m = L + D;
11070
+ _ + d > b && (_ = E - d - D), _ < 0 && (_ = Math.max(0, b - d)), m + g > k && (m = L - g - D), m < 0 && (m = Math.max(0, k - g)), a(_), s(m);
11060
11071
  }, [t, n, b, k, D, c]);
11061
11072
  return Ee(() => {
11062
11073
  if (!p.current || !r) return;
@@ -11122,8 +11133,8 @@ function $0() {
11122
11133
  const D = Math.min(i[0], i[1]), w = Math.max(i[0], i[1]);
11123
11134
  if (w - D < 10) return;
11124
11135
  k.preventDefault();
11125
- const E = u.end - u.start, L = e - t, y = (D - t) / L, d = (w - t) / L, m = u.start + y * E, _ = u.start + d * E, g = { chromosome: u.chromosome, start: Math.round(m), end: Math.round(_) };
11126
- a([0, 0]), p(g);
11136
+ const E = u.end - u.start, L = e - t, y = (D - t) / L, d = (w - t) / L, g = u.start + y * E, _ = u.start + d * E, m = { chromosome: u.chromosome, start: Math.round(g), end: Math.round(_) };
11137
+ a([0, 0]), p(m);
11127
11138
  };
11128
11139
  return Ee(() => (document.addEventListener("mousemove", b), document.addEventListener("mouseup", v), () => {
11129
11140
  document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", v);
@@ -11582,7 +11593,7 @@ export {
11582
11593
  Fe as DisplayMode,
11583
11594
  Eh as GQLWrapper,
11584
11595
  vh as Pastels,
11585
- me as TrackType,
11596
+ ge as TrackType,
11586
11597
  xh as Vibrant,
11587
11598
  bh as createBrowserStore,
11588
11599
  wh as createBrowserStoreMemo,
@@ -11591,7 +11602,7 @@ export {
11591
11602
  Sh as createTrackStore,
11592
11603
  kh as createTrackStoreMemo,
11593
11604
  lh as defineBigBedSchema,
11594
- mh as fetchBigBedUrl,
11605
+ gh as fetchBigBedUrl,
11595
11606
  Kl as renderDenseBigBedData,
11596
11607
  Jl as renderSquishBigBedData,
11597
11608
  hi as useBrowserScale,