@genome-spy/app 0.53.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { b as J } from "./index-B5cesONJ.js";
2
- import { _ as Gn, L as Yn } from "./index-uO0O4Uv-.js";
1
+ import { b as J } from "./index-B6haPltu.js";
2
+ import { _ as Gn, L as Yn } from "./index-BhtH2nrr.js";
3
3
  import { L as nr } from "./__vite-browser-external-C--ziKoh.js";
4
- import { R as ir } from "./remoteFile-BkTxwFub.js";
4
+ import { R as ir } from "./remoteFile-DuIsnepi.js";
5
5
  const st = BigInt(32);
6
6
  function rr(e, n, t) {
7
7
  const i = +!!t, a = +!t;
@@ -481,8 +481,7 @@ class N {
481
481
  else if (this.type === "array" && typeof this.options.length == "number") {
482
482
  let t = NaN;
483
483
  typeof this.options.type == "string" ? t = M[this.options.type] : this.options.type instanceof N && (t = this.options.type.sizeOf()), n = this.options.length * t;
484
- } else
485
- this.type === "seek" ? n = this.options.length : this.type === "nest" ? n = this.options.type.sizeOf() : this.type || (n = 0);
484
+ } else this.type === "seek" ? n = this.options.length : this.type === "nest" ? n = this.options.type.sizeOf() : this.type || (n = 0);
486
485
  return this.next && (n += this.next.sizeOf()), n;
487
486
  }
488
487
  // Follow the parser chain till the root and start parsing from there
@@ -625,8 +624,7 @@ class N {
625
624
  } else if (this.options.length) {
626
625
  const l = n.generateOption(this.options.length);
627
626
  n.pushCode(r ? `${t} = Array.from(buffer.subarray(offset, offset + ${l}), ${o}).join('');` : `${t} = new TextDecoder('${a}').decode(buffer.subarray(offset, offset + ${l}));`), n.pushCode(`offset += ${l};`);
628
- } else
629
- this.options.zeroTerminated ? (n.pushCode(`var ${i} = offset;`), n.pushCode("while(dataView.getUint8(offset++) !== 0);"), n.pushCode(r ? `${t} = Array.from(buffer.subarray(${i}, offset - 1), ${o}).join('');` : `${t} = new TextDecoder('${a}').decode(buffer.subarray(${i}, offset - 1));`)) : this.options.greedy && (n.pushCode(`var ${i} = offset;`), n.pushCode("while(buffer.length > offset++);"), n.pushCode(r ? `${t} = Array.from(buffer.subarray(${i}, offset), ${o}).join('');` : `${t} = new TextDecoder('${a}').decode(buffer.subarray(${i}, offset));`));
627
+ } else this.options.zeroTerminated ? (n.pushCode(`var ${i} = offset;`), n.pushCode("while(dataView.getUint8(offset++) !== 0);"), n.pushCode(r ? `${t} = Array.from(buffer.subarray(${i}, offset - 1), ${o}).join('');` : `${t} = new TextDecoder('${a}').decode(buffer.subarray(${i}, offset - 1));`)) : this.options.greedy && (n.pushCode(`var ${i} = offset;`), n.pushCode("while(buffer.length > offset++);"), n.pushCode(r ? `${t} = Array.from(buffer.subarray(${i}, offset), ${o}).join('');` : `${t} = new TextDecoder('${a}').decode(buffer.subarray(${i}, offset));`));
630
628
  this.options.stripNull && n.pushCode(`${t} = ${t}.replace(/\\x00+$/g, '')`);
631
629
  }
632
630
  generateBuffer(n) {
@@ -678,8 +676,7 @@ class N {
678
676
  const r = Ye[i], o = Ke[i];
679
677
  n.pushCode(`${a} = dataView.get${r}(offset, ${o});`), n.pushCode(`offset += ${M[i]}`);
680
678
  }
681
- } else
682
- i instanceof N && (n.pushPath(t), i.generate(n), n.popPath(t));
679
+ } else i instanceof N && (n.pushPath(t), i.generate(n), n.popPath(t));
683
680
  }
684
681
  generateChoice(n) {
685
682
  const t = n.generateOption(this.options.tag), i = n.generateVariable(this.varName);
@@ -984,8 +981,7 @@ const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
984
981
  do
985
982
  j(e, r, e.bl_tree);
986
983
  while (--l !== 0);
987
- else
988
- r !== 0 ? (r !== a && (j(e, r, e.bl_tree), l--), j(e, Xn, e.bl_tree), D(e, l - 3, 2)) : l <= 10 ? (j(e, qn, e.bl_tree), D(e, l - 3, 3)) : (j(e, Jn, e.bl_tree), D(e, l - 11, 7));
984
+ else r !== 0 ? (r !== a && (j(e, r, e.bl_tree), l--), j(e, Xn, e.bl_tree), D(e, l - 3, 2)) : l <= 10 ? (j(e, qn, e.bl_tree), D(e, l - 3, 3)) : (j(e, Jn, e.bl_tree), D(e, l - 11, 7));
989
985
  l = 0, a = r, o === 0 ? (u = 138, s = 3) : r === o ? (u = 6, s = 3) : (u = 7, s = 4);
990
986
  }
991
987
  }, vr = (e) => {
@@ -1623,8 +1619,7 @@ Gt.prototype.push = function(e, n) {
1623
1619
  this.onData(t.output.subarray(0, t.next_out)), t.avail_out = 0;
1624
1620
  continue;
1625
1621
  }
1626
- if (t.avail_in === 0)
1627
- break;
1622
+ if (t.avail_in === 0) break;
1628
1623
  }
1629
1624
  return !0;
1630
1625
  };
@@ -2055,8 +2050,7 @@ const so = (e) => {
2055
2050
  l--, s += i[r++] << f, f += 8;
2056
2051
  }
2057
2052
  t.length = s, t.head && (t.head.extra_len = s), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0;
2058
- } else
2059
- t.head && (t.head.extra = null);
2053
+ } else t.head && (t.head.extra = null);
2060
2054
  t.mode = yn;
2061
2055
  case yn:
2062
2056
  if (t.flags & 1024 && (h = t.length, h > l && (h = l), h && (t.head && (b = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Uint8Array(t.head.extra_len)), t.head.extra.set(
@@ -2081,8 +2075,7 @@ const so = (e) => {
2081
2075
  while (b && h < l);
2082
2076
  if (t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, r)), l -= h, r += h, b)
2083
2077
  break e;
2084
- } else
2085
- t.head && (t.head.name = null);
2078
+ } else t.head && (t.head.name = null);
2086
2079
  t.length = 0, t.mode = kn;
2087
2080
  case kn:
2088
2081
  if (t.flags & 4096) {
@@ -2094,8 +2087,7 @@ const so = (e) => {
2094
2087
  while (b && h < l);
2095
2088
  if (t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, r)), l -= h, r += h, b)
2096
2089
  break e;
2097
- } else
2098
- t.head && (t.head.comment = null);
2090
+ } else t.head && (t.head.comment = null);
2099
2091
  t.mode = $n;
2100
2092
  case $n:
2101
2093
  if (t.flags & 512) {
@@ -2466,8 +2458,7 @@ function He(e) {
2466
2458
  He.prototype.push = function(e, n) {
2467
2459
  const t = this.strm, i = this.options.chunkSize, a = this.options.dictionary;
2468
2460
  let r, o, l;
2469
- if (this.ended)
2470
- return !1;
2461
+ if (this.ended) return !1;
2471
2462
  for (n === ~~n ? o = n : o = n === !0 ? So : Co, Ii.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length; ; ) {
2472
2463
  for (t.avail_out === 0 && (t.output = new Uint8Array(i), t.next_out = 0, t.avail_out = i), r = X.inflate(t, o), r === Et && a && (r = X.inflateSetDictionary(t, a), r === Fe ? r = X.inflate(t, o) : r === Ln && (r = Et)); t.avail_in > 0 && r === $t && t.state.wrap > 0 && e[t.next_in] !== 0; )
2473
2464
  X.inflateReset(t), r = X.inflate(t, o);
@@ -2487,8 +2478,7 @@ He.prototype.push = function(e, n) {
2487
2478
  if (!(r === Fe && l === 0)) {
2488
2479
  if (r === $t)
2489
2480
  return r = X.inflateEnd(this.strm), this.onEnd(r), this.ended = !0, !0;
2490
- if (t.avail_in === 0)
2491
- break;
2481
+ if (t.avail_in === 0) break;
2492
2482
  }
2493
2483
  }
2494
2484
  return !0;
@@ -2501,8 +2491,7 @@ He.prototype.onEnd = function(e) {
2501
2491
  };
2502
2492
  function Yt(e, n) {
2503
2493
  const t = new He(n);
2504
- if (t.push(e), t.err)
2505
- throw t.msg || ge[t.err];
2494
+ if (t.push(e), t.err) throw t.msg || ge[t.err];
2506
2495
  return t.result;
2507
2496
  }
2508
2497
  function To(e, n) {
@@ -2783,8 +2772,7 @@ var Ft = function(e, n) {
2783
2772
  return Ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
2784
2773
  t.__proto__ = i;
2785
2774
  } || function(t, i) {
2786
- for (var a in i)
2787
- Object.prototype.hasOwnProperty.call(i, a) && (t[a] = i[a]);
2775
+ for (var a in i) Object.prototype.hasOwnProperty.call(i, a) && (t[a] = i[a]);
2788
2776
  }, Ft(e, n);
2789
2777
  };
2790
2778
  function Kt(e, n) {
@@ -2825,8 +2813,7 @@ function jo(e, n, t, i) {
2825
2813
  }
2826
2814
  function Ai(e, n) {
2827
2815
  var t = { label: 0, sent: function() {
2828
- if (r[0] & 1)
2829
- throw r[1];
2816
+ if (r[0] & 1) throw r[1];
2830
2817
  return r[1];
2831
2818
  }, trys: [], ops: [] }, i, a, r, o;
2832
2819
  return o = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
@@ -2838,100 +2825,89 @@ function Ai(e, n) {
2838
2825
  };
2839
2826
  }
2840
2827
  function u(s) {
2841
- if (i)
2842
- throw new TypeError("Generator is already executing.");
2843
- for (; o && (o = 0, s[0] && (t = 0)), t; )
2844
- try {
2845
- if (i = 1, a && (r = s[0] & 2 ? a.return : s[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, s[1])).done)
2846
- return r;
2847
- switch (a = 0, r && (s = [s[0] & 2, r.value]), s[0]) {
2848
- case 0:
2849
- case 1:
2850
- r = s;
2851
- break;
2852
- case 4:
2853
- return t.label++, { value: s[1], done: !1 };
2854
- case 5:
2855
- t.label++, a = s[1], s = [0];
2856
- continue;
2857
- case 7:
2858
- s = t.ops.pop(), t.trys.pop();
2859
- continue;
2860
- default:
2861
- if (r = t.trys, !(r = r.length > 0 && r[r.length - 1]) && (s[0] === 6 || s[0] === 2)) {
2862
- t = 0;
2863
- continue;
2864
- }
2865
- if (s[0] === 3 && (!r || s[1] > r[0] && s[1] < r[3])) {
2866
- t.label = s[1];
2867
- break;
2868
- }
2869
- if (s[0] === 6 && t.label < r[1]) {
2870
- t.label = r[1], r = s;
2871
- break;
2872
- }
2873
- if (r && t.label < r[2]) {
2874
- t.label = r[2], t.ops.push(s);
2875
- break;
2876
- }
2877
- r[2] && t.ops.pop(), t.trys.pop();
2828
+ if (i) throw new TypeError("Generator is already executing.");
2829
+ for (; o && (o = 0, s[0] && (t = 0)), t; ) try {
2830
+ if (i = 1, a && (r = s[0] & 2 ? a.return : s[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, s[1])).done) return r;
2831
+ switch (a = 0, r && (s = [s[0] & 2, r.value]), s[0]) {
2832
+ case 0:
2833
+ case 1:
2834
+ r = s;
2835
+ break;
2836
+ case 4:
2837
+ return t.label++, { value: s[1], done: !1 };
2838
+ case 5:
2839
+ t.label++, a = s[1], s = [0];
2840
+ continue;
2841
+ case 7:
2842
+ s = t.ops.pop(), t.trys.pop();
2843
+ continue;
2844
+ default:
2845
+ if (r = t.trys, !(r = r.length > 0 && r[r.length - 1]) && (s[0] === 6 || s[0] === 2)) {
2846
+ t = 0;
2878
2847
  continue;
2879
- }
2880
- s = n.call(e, t);
2881
- } catch (f) {
2882
- s = [6, f], a = 0;
2883
- } finally {
2884
- i = r = 0;
2848
+ }
2849
+ if (s[0] === 3 && (!r || s[1] > r[0] && s[1] < r[3])) {
2850
+ t.label = s[1];
2851
+ break;
2852
+ }
2853
+ if (s[0] === 6 && t.label < r[1]) {
2854
+ t.label = r[1], r = s;
2855
+ break;
2856
+ }
2857
+ if (r && t.label < r[2]) {
2858
+ t.label = r[2], t.ops.push(s);
2859
+ break;
2860
+ }
2861
+ r[2] && t.ops.pop(), t.trys.pop();
2862
+ continue;
2885
2863
  }
2886
- if (s[0] & 5)
2887
- throw s[1];
2864
+ s = n.call(e, t);
2865
+ } catch (f) {
2866
+ s = [6, f], a = 0;
2867
+ } finally {
2868
+ i = r = 0;
2869
+ }
2870
+ if (s[0] & 5) throw s[1];
2888
2871
  return { value: s[0] ? s[1] : void 0, done: !0 };
2889
2872
  }
2890
2873
  }
2891
2874
  function Le(e) {
2892
2875
  var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], i = 0;
2893
- if (t)
2894
- return t.call(e);
2895
- if (e && typeof e.length == "number")
2896
- return {
2897
- next: function() {
2898
- return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
2899
- }
2900
- };
2876
+ if (t) return t.call(e);
2877
+ if (e && typeof e.length == "number") return {
2878
+ next: function() {
2879
+ return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
2880
+ }
2881
+ };
2901
2882
  throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
2902
2883
  }
2903
2884
  function Lt(e, n) {
2904
2885
  var t = typeof Symbol == "function" && e[Symbol.iterator];
2905
- if (!t)
2906
- return e;
2886
+ if (!t) return e;
2907
2887
  var i = t.call(e), a, r = [], o;
2908
2888
  try {
2909
- for (; (n === void 0 || n-- > 0) && !(a = i.next()).done; )
2910
- r.push(a.value);
2889
+ for (; (n === void 0 || n-- > 0) && !(a = i.next()).done; ) r.push(a.value);
2911
2890
  } catch (l) {
2912
2891
  o = { error: l };
2913
2892
  } finally {
2914
2893
  try {
2915
2894
  a && !a.done && (t = i.return) && t.call(i);
2916
2895
  } finally {
2917
- if (o)
2918
- throw o.error;
2896
+ if (o) throw o.error;
2919
2897
  }
2920
2898
  }
2921
2899
  return r;
2922
2900
  }
2923
2901
  function Pt(e, n, t) {
2924
- if (t || arguments.length === 2)
2925
- for (var i = 0, a = n.length, r; i < a; i++)
2926
- (r || !(i in n)) && (r || (r = Array.prototype.slice.call(n, 0, i)), r[i] = n[i]);
2902
+ if (t || arguments.length === 2) for (var i = 0, a = n.length, r; i < a; i++)
2903
+ (r || !(i in n)) && (r || (r = Array.prototype.slice.call(n, 0, i)), r[i] = n[i]);
2927
2904
  return e.concat(r || Array.prototype.slice.call(n));
2928
2905
  }
2929
2906
  function be(e) {
2930
2907
  return this instanceof be ? (this.v = e, this) : new be(e);
2931
2908
  }
2932
2909
  function Go(e, n, t) {
2933
- if (!Symbol.asyncIterator)
2934
- throw new TypeError("Symbol.asyncIterator is not defined.");
2910
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2935
2911
  var i = t.apply(e, n || []), a, r = [];
2936
2912
  return a = {}, o("next"), o("throw"), o("return"), a[Symbol.asyncIterator] = function() {
2937
2913
  return this;
@@ -2964,8 +2940,7 @@ function Go(e, n, t) {
2964
2940
  }
2965
2941
  }
2966
2942
  function Yo(e) {
2967
- if (!Symbol.asyncIterator)
2968
- throw new TypeError("Symbol.asyncIterator is not defined.");
2943
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2969
2944
  var n = e[Symbol.asyncIterator], t;
2970
2945
  return n ? n.call(e) : (e = typeof Le == "function" ? Le(e) : e[Symbol.iterator](), t = {}, i("next"), i("throw"), i("return"), t[Symbol.asyncIterator] = function() {
2971
2946
  return this;
@@ -3029,8 +3004,7 @@ var Wt = function() {
3029
3004
  try {
3030
3005
  u && !u.done && (t = l.return) && t.call(l);
3031
3006
  } finally {
3032
- if (n)
3033
- throw n.error;
3007
+ if (n) throw n.error;
3034
3008
  }
3035
3009
  }
3036
3010
  else
@@ -3060,8 +3034,7 @@ var Wt = function() {
3060
3034
  try {
3061
3035
  h && !h.done && (a = c.return) && a.call(c);
3062
3036
  } finally {
3063
- if (i)
3064
- throw i.error;
3037
+ if (i) throw i.error;
3065
3038
  }
3066
3039
  }
3067
3040
  }
@@ -3500,8 +3473,7 @@ function cs(e) {
3500
3473
  try {
3501
3474
  r && !r.done && (i = a.return) && i.call(a);
3502
3475
  } finally {
3503
- if (t)
3504
- throw t.error;
3476
+ if (t) throw t.error;
3505
3477
  }
3506
3478
  }
3507
3479
  n.complete();
@@ -3528,8 +3500,7 @@ function ps(e, n) {
3528
3500
  case 1:
3529
3501
  return [4, t.next()];
3530
3502
  case 2:
3531
- if (i = u.sent(), !!i.done)
3532
- return [3, 4];
3503
+ if (i = u.sent(), !!i.done) return [3, 4];
3533
3504
  if (o = i.value, n.next(o), n.closed)
3534
3505
  return [2];
3535
3506
  u.label = 3;
@@ -3546,8 +3517,7 @@ function ps(e, n) {
3546
3517
  case 8:
3547
3518
  return [3, 10];
3548
3519
  case 9:
3549
- if (a)
3550
- throw a.error;
3520
+ if (a) throw a.error;
3551
3521
  return [7];
3552
3522
  case 10:
3553
3523
  return [7];
@@ -1,6 +1,6 @@
1
1
  import { L as g } from "./__vite-browser-external-C--ziKoh.js";
2
- import { b as m } from "./index-B5cesONJ.js";
3
- import { L as E, u as _ } from "./long-D4tVjLLz.js";
2
+ import { b as m } from "./index-B6haPltu.js";
3
+ import { L as E, u as _ } from "./long-BXK3UEks.js";
4
4
  const w = 1;
5
5
  class I {
6
6
  constructor({ filehandle: e, path: t }) {
@@ -1,6 +1,6 @@
1
1
  import { L as d } from "./__vite-browser-external-C--ziKoh.js";
2
- import { R as b } from "./remoteFile-BkTxwFub.js";
3
- import { b as i } from "./index-B5cesONJ.js";
2
+ import { R as b } from "./remoteFile-DuIsnepi.js";
3
+ import { b as i } from "./index-B6haPltu.js";
4
4
  function a(o) {
5
5
  const r = new FileReader();
6
6
  return new Promise((n, e) => {