@genome-spy/app 0.57.0 → 0.58.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.
- package/dist/app.css +1 -0
- package/dist/index-BftNdA0O.js +27 -0
- package/dist/index-C08YCM2T.js +539 -0
- package/dist/{index-C159nEYc.js → index-CCJIjehY.js} +89 -83
- package/dist/index-CalimFw3.js +2131 -0
- package/dist/index-DS2hvLgl.js +3425 -0
- package/dist/index-DTcHjAHp.js +505 -0
- package/dist/{index-CfEH2hsw.js → index-Dec7VcMU.js} +25 -25
- package/dist/index-DnIkxb0L.js +1025 -0
- package/dist/{index-Bg62fPK7.js → index-DwLfOHEk.js} +435 -465
- package/dist/{index-DhPRJZz0.js → index-Ww3TAo6_.js} +7 -7
- package/dist/{index-DutovjI-.js → index-vgGDWUPz.js} +2 -2
- package/dist/index.es.js +5398 -6589
- package/dist/index.js +400 -396
- package/dist/long-BviWyoZx.js +2387 -0
- package/dist/{remoteFile-DwSeXAZ0.js → remoteFile-BuaqFGWk.js} +1 -1
- package/package.json +3 -3
- package/dist/index-CubKalvr.js +0 -500
- package/dist/index-DNzxWHJt.js +0 -2136
- package/dist/index-DluFz_0j.js +0 -1042
- package/dist/index-Dpv0n-cZ.js +0 -3998
- package/dist/long-DM5IWGqg.js +0 -2375
- package/dist/style.css +0 -1
@@ -0,0 +1,505 @@
|
|
1
|
+
import { g as Ft } from "./_commonjsHelpers-DjF3Plf2.js";
|
2
|
+
var X, Ie;
|
3
|
+
function Dt() {
|
4
|
+
if (Ie) return X;
|
5
|
+
Ie = 1;
|
6
|
+
function C(n, y) {
|
7
|
+
function t() {
|
8
|
+
this.constructor = n;
|
9
|
+
}
|
10
|
+
t.prototype = y.prototype, n.prototype = new t();
|
11
|
+
}
|
12
|
+
function d(n, y, t, m) {
|
13
|
+
this.message = n, this.expected = y, this.found = t, this.location = m, this.name = "SyntaxError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, d);
|
14
|
+
}
|
15
|
+
C(d, Error), d.buildMessage = function(n, y) {
|
16
|
+
var t = {
|
17
|
+
literal: function(u) {
|
18
|
+
return '"' + A(u.text) + '"';
|
19
|
+
},
|
20
|
+
class: function(u) {
|
21
|
+
var h = "", b;
|
22
|
+
for (b = 0; b < u.parts.length; b++)
|
23
|
+
h += u.parts[b] instanceof Array ? q(u.parts[b][0]) + "-" + q(u.parts[b][1]) : q(u.parts[b]);
|
24
|
+
return "[" + (u.inverted ? "^" : "") + h + "]";
|
25
|
+
},
|
26
|
+
any: function(u) {
|
27
|
+
return "any character";
|
28
|
+
},
|
29
|
+
end: function(u) {
|
30
|
+
return "end of input";
|
31
|
+
},
|
32
|
+
other: function(u) {
|
33
|
+
return u.description;
|
34
|
+
}
|
35
|
+
};
|
36
|
+
function m(u) {
|
37
|
+
return u.charCodeAt(0).toString(16).toUpperCase();
|
38
|
+
}
|
39
|
+
function A(u) {
|
40
|
+
return u.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(h) {
|
41
|
+
return "\\x0" + m(h);
|
42
|
+
}).replace(/[\x10-\x1F\x7F-\x9F]/g, function(h) {
|
43
|
+
return "\\x" + m(h);
|
44
|
+
});
|
45
|
+
}
|
46
|
+
function q(u) {
|
47
|
+
return u.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(h) {
|
48
|
+
return "\\x0" + m(h);
|
49
|
+
}).replace(/[\x10-\x1F\x7F-\x9F]/g, function(h) {
|
50
|
+
return "\\x" + m(h);
|
51
|
+
});
|
52
|
+
}
|
53
|
+
function $(u) {
|
54
|
+
return t[u.type](u);
|
55
|
+
}
|
56
|
+
function I(u) {
|
57
|
+
var h = new Array(u.length), b, B;
|
58
|
+
for (b = 0; b < u.length; b++)
|
59
|
+
h[b] = $(u[b]);
|
60
|
+
if (h.sort(), h.length > 0) {
|
61
|
+
for (b = 1, B = 1; b < h.length; b++)
|
62
|
+
h[b - 1] !== h[b] && (h[B] = h[b], B++);
|
63
|
+
h.length = B;
|
64
|
+
}
|
65
|
+
switch (h.length) {
|
66
|
+
case 1:
|
67
|
+
return h[0];
|
68
|
+
case 2:
|
69
|
+
return h[0] + " or " + h[1];
|
70
|
+
default:
|
71
|
+
return h.slice(0, -1).join(", ") + ", or " + h[h.length - 1];
|
72
|
+
}
|
73
|
+
}
|
74
|
+
function P(u) {
|
75
|
+
return u ? '"' + A(u) + '"' : "end of input";
|
76
|
+
}
|
77
|
+
return "Expected " + I(n) + " but " + P(y) + " found.";
|
78
|
+
};
|
79
|
+
function E(n, y) {
|
80
|
+
y = y !== void 0 ? y : {};
|
81
|
+
var t = {}, m = { declaration: De }, A = De, q = "(", $ = g("(", !1), I = ")", P = g(")", !1), u = function(e, o, i, s) {
|
82
|
+
return { type: e, name: o, comment: i, fields: s };
|
83
|
+
}, h = "simple", b = g("simple", !1), B = "object", Ge = g("object", !1), J = "table", _e = g("table", !1), _ = "auto", K = g("auto", !1), ee = "primary", Me = g("primary", !1), te = "index", je = g("index", !1), re = "unique", Le = g("unique", !1), M = function(e, o) {
|
84
|
+
return o;
|
85
|
+
}, Oe = function(e, o) {
|
86
|
+
return e.name && o.unshift(e), o;
|
87
|
+
}, Ue = "#", Ve = g("#", !1), U = ";", V = g(";", !1), Ze = function(e, o, i) {
|
88
|
+
return { type: e, name: o, comment: i };
|
89
|
+
}, Qe = "[", We = g("[", !1), Xe = "]", Ye = g("]", !1), He = function(e, o, i, s) {
|
90
|
+
return { type: e, size: o, name: i, comment: s };
|
91
|
+
}, Je = function(e, o, i, s) {
|
92
|
+
return { type: e, vals: o, name: i, comment: s };
|
93
|
+
}, oe = ",", ie = g(",", !1), Ke = function(e, o) {
|
94
|
+
return o.unshift(e), o;
|
95
|
+
}, se = "int", et = g("int", !1), ne = "uint", tt = g("uint", !1), ae = "short", rt = g("short", !1), ce = "ushort", ot = g("ushort", !1), fe = "byte", it = g("byte", !1), le = "ubyte", st = g("ubyte", !1), ue = "float", nt = g("float", !1), he = "char", at = g("char", !1), me = "string", ct = g("string", !1), ge = "lstring", ft = g("lstring", !1), pe = "enum", lt = g("enum", !1), de = "double", ut = g("double", !1), be = "bigint", ht = g("bigint", !1), Se = "set", mt = g("set", !1), gt = function(e, o) {
|
96
|
+
return e + " " + o;
|
97
|
+
}, pt = /^[a-zA-Z_]/, dt = G([["a", "z"], ["A", "Z"], "_"], !1, !1), $e = /^[a-zA-Z0-9_]/, ye = G([["a", "z"], ["A", "Z"], ["0", "9"], "_"], !1, !1), bt = function(e) {
|
98
|
+
return qe();
|
99
|
+
}, Ee = /^[^\n\r]/, ke = G([`
|
100
|
+
`, "\r"], !0, !1), St = function(e) {
|
101
|
+
return e.join("").replace(/^"/, "").replace(/"$/, "");
|
102
|
+
}, $t = xe("integer"), Ce = /^[0-9]/, Ae = G([["0", "9"]], !1, !1), yt = function() {
|
103
|
+
return parseInt(qe(), 10);
|
104
|
+
}, Et = xe("whitespace"), we = /^[ \t\n\r]/, ve = G([" ", " ", `
|
105
|
+
`, "\r"], !1, !1), r = 0, k = 0, j = [{ line: 1, column: 1 }], x = 0, Z = [], c = 0, L;
|
106
|
+
if ("startRule" in y) {
|
107
|
+
if (!(y.startRule in m))
|
108
|
+
throw new Error(`Can't start parsing from rule "` + y.startRule + '".');
|
109
|
+
A = m[y.startRule];
|
110
|
+
}
|
111
|
+
function qe() {
|
112
|
+
return n.substring(k, r);
|
113
|
+
}
|
114
|
+
function g(e, o) {
|
115
|
+
return { type: "literal", text: e, ignoreCase: o };
|
116
|
+
}
|
117
|
+
function G(e, o, i) {
|
118
|
+
return { type: "class", parts: e, inverted: o, ignoreCase: i };
|
119
|
+
}
|
120
|
+
function kt() {
|
121
|
+
return { type: "end" };
|
122
|
+
}
|
123
|
+
function xe(e) {
|
124
|
+
return { type: "other", description: e };
|
125
|
+
}
|
126
|
+
function Ne(e) {
|
127
|
+
var o = j[e], i;
|
128
|
+
if (o)
|
129
|
+
return o;
|
130
|
+
for (i = e - 1; !j[i]; )
|
131
|
+
i--;
|
132
|
+
for (o = j[i], o = {
|
133
|
+
line: o.line,
|
134
|
+
column: o.column
|
135
|
+
}; i < e; )
|
136
|
+
n.charCodeAt(i) === 10 ? (o.line++, o.column = 1) : o.column++, i++;
|
137
|
+
return j[e] = o, o;
|
138
|
+
}
|
139
|
+
function Fe(e, o) {
|
140
|
+
var i = Ne(e), s = Ne(o);
|
141
|
+
return {
|
142
|
+
start: {
|
143
|
+
offset: e,
|
144
|
+
line: i.line,
|
145
|
+
column: i.column
|
146
|
+
},
|
147
|
+
end: {
|
148
|
+
offset: o,
|
149
|
+
line: s.line,
|
150
|
+
column: s.column
|
151
|
+
}
|
152
|
+
};
|
153
|
+
}
|
154
|
+
function f(e) {
|
155
|
+
r < x || (r > x && (x = r, Z = []), Z.push(e));
|
156
|
+
}
|
157
|
+
function Ct(e, o, i) {
|
158
|
+
return new d(d.buildMessage(e, o), e, o, i);
|
159
|
+
}
|
160
|
+
function De() {
|
161
|
+
var e, o, i, s, a, p, S, w, R, N, T, F, z, D;
|
162
|
+
return e = r, o = l(), o !== t ? (i = Re(), i !== t ? (s = l(), s !== t ? (a = Te(), a !== t ? (p = l(), p !== t ? (S = O(), S !== t ? (w = l(), w !== t ? (n.charCodeAt(r) === 40 ? (R = q, r++) : (R = t, c === 0 && f($)), R !== t ? (N = l(), N !== t ? (T = At(), T !== t ? (F = l(), F !== t ? (n.charCodeAt(r) === 41 ? (z = I, r++) : (z = t, c === 0 && f(P)), z !== t ? (D = l(), D !== t ? (k = e, o = u(i, a, S, T), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e;
|
163
|
+
}
|
164
|
+
function Re() {
|
165
|
+
var e;
|
166
|
+
return n.substr(r, 6) === h ? (e = h, r += 6) : (e = t, c === 0 && f(b)), e === t && (n.substr(r, 6) === B ? (e = B, r += 6) : (e = t, c === 0 && f(Ge)), e === t && (n.substr(r, 5) === J ? (e = J, r += 5) : (e = t, c === 0 && f(_e)))), e;
|
167
|
+
}
|
168
|
+
function Te() {
|
169
|
+
var e, o, i, s;
|
170
|
+
return e = v(), e === t && (e = r, o = v(), o !== t ? (i = ze(), i !== t ? (o = [o, i], e = o) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = v(), o !== t ? (n.substr(r, 4) === _ ? (i = _, r += 4) : (i = t, c === 0 && f(K)), i !== t ? (o = [o, i], e = o) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = v(), o !== t ? (i = ze(), i !== t ? (n.substr(r, 4) === _ ? (s = _, r += 4) : (s = t, c === 0 && f(K)), s !== t ? (o = [o, i, s], e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)))), e;
|
171
|
+
}
|
172
|
+
function ze() {
|
173
|
+
var e;
|
174
|
+
return n.substr(r, 7) === ee ? (e = ee, r += 7) : (e = t, c === 0 && f(Me)), e === t && (n.substr(r, 5) === te ? (e = te, r += 5) : (e = t, c === 0 && f(je)), e === t && (n.substr(r, 6) === re ? (e = re, r += 6) : (e = t, c === 0 && f(Le)))), e;
|
175
|
+
}
|
176
|
+
function O() {
|
177
|
+
var e;
|
178
|
+
return e = Be(), e === t && (e = l()), e;
|
179
|
+
}
|
180
|
+
function At() {
|
181
|
+
var e, o, i, s, a, p, S;
|
182
|
+
if (e = r, o = Q(), o !== t)
|
183
|
+
if (i = l(), i !== t) {
|
184
|
+
for (s = [], a = r, p = l(), p !== t ? (S = Q(), S !== t ? (k = a, p = M(o, S), a = p) : (r = a, a = t)) : (r = a, a = t); a !== t; )
|
185
|
+
s.push(a), a = r, p = l(), p !== t ? (S = Q(), S !== t ? (k = a, p = M(o, S), a = p) : (r = a, a = t)) : (r = a, a = t);
|
186
|
+
s !== t ? (a = l(), a !== t ? (k = e, o = Oe(o, s), e = o) : (r = e, e = t)) : (r = e, e = t);
|
187
|
+
} else
|
188
|
+
r = e, e = t;
|
189
|
+
else
|
190
|
+
r = e, e = t;
|
191
|
+
return e;
|
192
|
+
}
|
193
|
+
function wt() {
|
194
|
+
var e;
|
195
|
+
return n.charCodeAt(r) === 35 ? (e = Ue, r++) : (e = t, c === 0 && f(Ve)), e;
|
196
|
+
}
|
197
|
+
function vt() {
|
198
|
+
var e, o, i, s, a;
|
199
|
+
return e = r, o = l(), o !== t ? (i = wt(), i !== t ? (s = Be(), s !== t ? (a = l(), a !== t ? (o = [o, i, s, a], e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e;
|
200
|
+
}
|
201
|
+
function Q() {
|
202
|
+
var e, o, i, s, a, p, S, w, R, N, T, F, z, D;
|
203
|
+
return e = r, o = W(), o !== t ? (i = l(), i !== t ? (s = v(), s !== t ? (a = l(), a !== t ? (n.charCodeAt(r) === 59 ? (p = U, r++) : (p = t, c === 0 && f(V)), p !== t ? (S = l(), S !== t ? (w = O(), w !== t ? (k = e, o = Ze(o, s, w), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = l(), i !== t ? (n.charCodeAt(r) === 91 ? (s = Qe, r++) : (s = t, c === 0 && f(We)), s !== t ? (a = l(), a !== t ? (p = xt(), p !== t ? (S = l(), S !== t ? (n.charCodeAt(r) === 93 ? (w = Xe, r++) : (w = t, c === 0 && f(Ye)), w !== t ? (R = l(), R !== t ? (N = v(), N !== t ? (T = l(), T !== t ? (n.charCodeAt(r) === 59 ? (F = U, r++) : (F = t, c === 0 && f(V)), F !== t ? (z = l(), z !== t ? (D = O(), D !== t ? (k = e, o = He(o, p, N, D), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = l(), i !== t ? (n.charCodeAt(r) === 40 ? (s = q, r++) : (s = t, c === 0 && f($)), s !== t ? (a = l(), a !== t ? (p = qt(), p !== t ? (S = l(), S !== t ? (n.charCodeAt(r) === 41 ? (w = I, r++) : (w = t, c === 0 && f(P)), w !== t ? (R = l(), R !== t ? (N = v(), N !== t ? (T = l(), T !== t ? (n.charCodeAt(r) === 59 ? (F = U, r++) : (F = t, c === 0 && f(V)), F !== t ? (z = l(), z !== t ? (D = O(), D !== t ? (k = e, o = Je(o, p, N, D), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = vt()))), e;
|
204
|
+
}
|
205
|
+
function qt() {
|
206
|
+
var e, o, i, s, a, p, S;
|
207
|
+
if (e = r, o = v(), o !== t) {
|
208
|
+
for (i = [], s = r, n.charCodeAt(r) === 44 ? (a = oe, r++) : (a = t, c === 0 && f(ie)), a !== t ? (p = l(), p !== t ? (S = v(), S !== t ? (k = s, a = M(o, S), s = a) : (r = s, s = t)) : (r = s, s = t)) : (r = s, s = t); s !== t; )
|
209
|
+
i.push(s), s = r, n.charCodeAt(r) === 44 ? (a = oe, r++) : (a = t, c === 0 && f(ie)), a !== t ? (p = l(), p !== t ? (S = v(), S !== t ? (k = s, a = M(o, S), s = a) : (r = s, s = t)) : (r = s, s = t)) : (r = s, s = t);
|
210
|
+
i !== t ? (k = e, o = Ke(o, i), e = o) : (r = e, e = t);
|
211
|
+
} else
|
212
|
+
r = e, e = t;
|
213
|
+
return e;
|
214
|
+
}
|
215
|
+
function W() {
|
216
|
+
var e, o, i, s;
|
217
|
+
return n.substr(r, 3) === se ? (e = se, r += 3) : (e = t, c === 0 && f(et)), e === t && (n.substr(r, 4) === ne ? (e = ne, r += 4) : (e = t, c === 0 && f(tt)), e === t && (n.substr(r, 5) === ae ? (e = ae, r += 5) : (e = t, c === 0 && f(rt)), e === t && (n.substr(r, 6) === ce ? (e = ce, r += 6) : (e = t, c === 0 && f(ot)), e === t && (n.substr(r, 4) === fe ? (e = fe, r += 4) : (e = t, c === 0 && f(it)), e === t && (n.substr(r, 5) === le ? (e = le, r += 5) : (e = t, c === 0 && f(st)), e === t && (n.substr(r, 5) === ue ? (e = ue, r += 5) : (e = t, c === 0 && f(nt)), e === t && (n.substr(r, 4) === he ? (e = he, r += 4) : (e = t, c === 0 && f(at)), e === t && (n.substr(r, 6) === me ? (e = me, r += 6) : (e = t, c === 0 && f(ct)), e === t && (n.substr(r, 7) === ge ? (e = ge, r += 7) : (e = t, c === 0 && f(ft)), e === t && (n.substr(r, 4) === pe ? (e = pe, r += 4) : (e = t, c === 0 && f(lt)), e === t && (n.substr(r, 6) === de ? (e = de, r += 6) : (e = t, c === 0 && f(ut)), e === t && (n.substr(r, 6) === be ? (e = be, r += 6) : (e = t, c === 0 && f(ht)), e === t && (n.substr(r, 3) === Se ? (e = Se, r += 3) : (e = t, c === 0 && f(mt)), e === t && (e = r, o = Re(), o !== t ? (i = l(), i !== t ? (s = Te(), s !== t ? (k = e, o = gt(o, s), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t))))))))))))))), e;
|
218
|
+
}
|
219
|
+
function xt() {
|
220
|
+
var e;
|
221
|
+
return e = Nt(), e === t && (e = v()), e;
|
222
|
+
}
|
223
|
+
function v() {
|
224
|
+
var e, o, i, s, a;
|
225
|
+
if (e = r, o = r, pt.test(n.charAt(r)) ? (i = n.charAt(r), r++) : (i = t, c === 0 && f(dt)), i !== t) {
|
226
|
+
for (s = [], $e.test(n.charAt(r)) ? (a = n.charAt(r), r++) : (a = t, c === 0 && f(ye)); a !== t; )
|
227
|
+
s.push(a), $e.test(n.charAt(r)) ? (a = n.charAt(r), r++) : (a = t, c === 0 && f(ye));
|
228
|
+
s !== t ? (i = [i, s], o = i) : (r = o, o = t);
|
229
|
+
} else
|
230
|
+
r = o, o = t;
|
231
|
+
return o !== t && (k = e, o = bt()), e = o, e;
|
232
|
+
}
|
233
|
+
function Be() {
|
234
|
+
var e, o, i;
|
235
|
+
for (e = r, o = [], Ee.test(n.charAt(r)) ? (i = n.charAt(r), r++) : (i = t, c === 0 && f(ke)); i !== t; )
|
236
|
+
o.push(i), Ee.test(n.charAt(r)) ? (i = n.charAt(r), r++) : (i = t, c === 0 && f(ke));
|
237
|
+
return o !== t && (k = e, o = St(o)), e = o, e;
|
238
|
+
}
|
239
|
+
function Nt() {
|
240
|
+
var e, o, i, s;
|
241
|
+
if (c++, e = r, o = l(), o !== t) {
|
242
|
+
if (i = [], Ce.test(n.charAt(r)) ? (s = n.charAt(r), r++) : (s = t, c === 0 && f(Ae)), s !== t)
|
243
|
+
for (; s !== t; )
|
244
|
+
i.push(s), Ce.test(n.charAt(r)) ? (s = n.charAt(r), r++) : (s = t, c === 0 && f(Ae));
|
245
|
+
else
|
246
|
+
i = t;
|
247
|
+
i !== t ? (k = e, o = yt(), e = o) : (r = e, e = t);
|
248
|
+
} else
|
249
|
+
r = e, e = t;
|
250
|
+
return c--, e === t && (o = t, c === 0 && f($t)), e;
|
251
|
+
}
|
252
|
+
function l() {
|
253
|
+
var e, o;
|
254
|
+
for (c++, e = [], we.test(n.charAt(r)) ? (o = n.charAt(r), r++) : (o = t, c === 0 && f(ve)); o !== t; )
|
255
|
+
e.push(o), we.test(n.charAt(r)) ? (o = n.charAt(r), r++) : (o = t, c === 0 && f(ve));
|
256
|
+
return c--, e === t && (o = t, c === 0 && f(Et)), e;
|
257
|
+
}
|
258
|
+
if (L = A(), L !== t && r === n.length)
|
259
|
+
return L;
|
260
|
+
throw L !== t && r < n.length && f(kt()), Ct(Z, x < n.length ? n.charAt(x) : null, x < n.length ? Fe(x, x + 1) : Fe(x, x));
|
261
|
+
}
|
262
|
+
return X = {
|
263
|
+
SyntaxError: d,
|
264
|
+
parse: E
|
265
|
+
}, X;
|
266
|
+
}
|
267
|
+
var Pe = Dt();
|
268
|
+
const Rt = /* @__PURE__ */ Ft(Pe), Tt = `table bigChain
|
269
|
+
"bigChain pairwise alignment"
|
270
|
+
(
|
271
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
272
|
+
uint chromStart; "Start position in chromosome"
|
273
|
+
uint chromEnd; "End position in chromosome"
|
274
|
+
string name; "Name or ID of item, ideally both human readable and unique"
|
275
|
+
uint score; "Score (0-1000)"
|
276
|
+
char[1] strand; "+ or - for strand"
|
277
|
+
uint tSize; "size of target sequence"
|
278
|
+
string qName; "name of query sequence"
|
279
|
+
uint qSize; "size of query sequence"
|
280
|
+
uint qStart; "start of alignment on query sequence"
|
281
|
+
uint qEnd; "end of alignment on query sequence"
|
282
|
+
uint chainScore; "score from chain"
|
283
|
+
)`, zt = `table bigGenePred
|
284
|
+
"bigGenePred gene models"
|
285
|
+
(
|
286
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
287
|
+
uint chromStart; "Start position in chromosome"
|
288
|
+
uint chromEnd; "End position in chromosome"
|
289
|
+
string name; "Name or ID of item, ideally both human readable and unique"
|
290
|
+
uint score; "Score (0-1000)"
|
291
|
+
char[1] strand; "+ or - for strand"
|
292
|
+
uint thickStart; "Start of where display should be thick (start codon)"
|
293
|
+
uint thickEnd; "End of where display should be thick (stop codon)"
|
294
|
+
uint reserved; "RGB value (use R,G,B string in input file)"
|
295
|
+
int blockCount; "Number of blocks"
|
296
|
+
int[blockCount] blockSizes; "Comma separated list of block sizes"
|
297
|
+
int[blockCount] chromStarts; "Start positions relative to chromStart"
|
298
|
+
string name2; "Alternative/human readable name"
|
299
|
+
string cdsStartStat; "Status of CDS start annotation (none, unknown, incomplete, or complete)"
|
300
|
+
string cdsEndStat; "Status of CDS end annotation (none, unknown, incomplete, or complete)"
|
301
|
+
int[blockCount] exonFrames; "Exon frame {0,1,2}, or -1 if no frame for exon"
|
302
|
+
string type; "Transcript type"
|
303
|
+
string geneName; "Primary identifier for gene"
|
304
|
+
string geneName2; "Alternative/human readable gene name"
|
305
|
+
string geneType; "Gene type"
|
306
|
+
)`, Bt = `table interact
|
307
|
+
"interaction between two regions"
|
308
|
+
(
|
309
|
+
string chrom; "Chromosome (or contig, scaffold, etc.). For interchromosomal, use 2 records"
|
310
|
+
uint chromStart; "Start position of lower region. For interchromosomal, set to chromStart of this region"
|
311
|
+
uint chromEnd; "End position of upper region. For interchromosomal, set to chromEnd of this region"
|
312
|
+
string name; "Name of item, for display. Usually 'sourceName/targetName/exp' or empty"
|
313
|
+
uint score; "Score (0-1000)"
|
314
|
+
double value; "Strength of interaction or other data value. Typically basis for score"
|
315
|
+
string exp; "Experiment name (metadata for filtering). Use . if not applicable"
|
316
|
+
string color; "Item color. Specified as r,g,b or hexadecimal #RRGGBB or html color name, as in //www.w3.org/TR/css3-color/#html4. Use 0 and spectrum setting to shade by score"
|
317
|
+
string sourceChrom; "Chromosome of source region (directional) or lower region. For non-directional interchromosomal, chrom of this region."
|
318
|
+
uint sourceStart; "Start position in chromosome of source/lower/this region"
|
319
|
+
uint sourceEnd; "End position in chromosome of source/lower/this region"
|
320
|
+
string sourceName; "Identifier of source/lower/this region"
|
321
|
+
string sourceStrand; "Orientation of source/lower/this region: + or -. Use . if not applicable"
|
322
|
+
string targetChrom; "Chromosome of target region (directional) or upper region. For non-directional interchromosomal, chrom of other region"
|
323
|
+
uint targetStart; "Start position in chromosome of target/upper/this region"
|
324
|
+
uint targetEnd; "End position in chromosome of target/upper/this region"
|
325
|
+
string targetName; "Identifier of target/upper/this region"
|
326
|
+
string targetStrand; "Orientation of target/upper/this region: + or -. Use . if not applicable"
|
327
|
+
|
328
|
+
)`, It = `table bigLink
|
329
|
+
"bigLink pairwise alignment"
|
330
|
+
(
|
331
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
332
|
+
uint chromStart; "Start position in chromosome"
|
333
|
+
uint chromEnd; "End position in chromosome"
|
334
|
+
string name; "Name or ID of item, ideally both human readable and unique"
|
335
|
+
uint qStart; "start of alignment on query sequence"
|
336
|
+
)`, Pt = `table bedMaf
|
337
|
+
"Bed3 with MAF block"
|
338
|
+
(
|
339
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
340
|
+
uint chromStart; "Start position in chromosome"
|
341
|
+
uint chromEnd; "End position in chromosome"
|
342
|
+
lstring mafBlock; "MAF block"
|
343
|
+
)`, Gt = `table bigNarrowPeak
|
344
|
+
"BED6+4 Peaks of signal enrichment based on pooled, normalized (interpreted) data."
|
345
|
+
(
|
346
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
347
|
+
uint chromStart; "Start position in chromosome"
|
348
|
+
uint chromEnd; "End position in chromosome"
|
349
|
+
string name; "Name given to a region (preferably unique). Use . if no name is assigned"
|
350
|
+
uint score; "Indicates how dark the peak will be displayed in the browser (0-1000) "
|
351
|
+
char[1] strand; "+ or - or . for unknown"
|
352
|
+
float signalValue; "Measurement of average enrichment for the region"
|
353
|
+
float pValue; "Statistical significance of signal value (-log10). Set to -1 if not used."
|
354
|
+
float qValue; "Statistical significance with multiple-test correction applied (FDR -log10). Set to -1 if not used."
|
355
|
+
int peak; "Point-source called for this peak; 0-based offset from chromStart. Set to -1 if no point-source called."
|
356
|
+
)`, _t = `table bigPsl
|
357
|
+
"bigPsl pairwise alignment"
|
358
|
+
(
|
359
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
360
|
+
uint chromStart; "Start position in chromosome"
|
361
|
+
uint chromEnd; "End position in chromosome"
|
362
|
+
string name; "Name or ID of item, ideally both human readable and unique"
|
363
|
+
uint score; "Score (0-1000)"
|
364
|
+
char[1] strand; "+ or - indicates whether the query aligns to the + or - strand on the reference"
|
365
|
+
uint thickStart; "Start of where display should be thick (start codon)"
|
366
|
+
uint thickEnd; "End of where display should be thick (stop codon)"
|
367
|
+
uint reserved; "RGB value (use R,G,B string in input file)"
|
368
|
+
int blockCount; "Number of blocks"
|
369
|
+
int[blockCount] blockSizes; "Comma separated list of block sizes"
|
370
|
+
int[blockCount] chromStarts; "Start positions relative to chromStart"
|
371
|
+
|
372
|
+
uint oChromStart;"Start position in other chromosome"
|
373
|
+
uint oChromEnd; "End position in other chromosome"
|
374
|
+
char[1] oStrand; "+ or -, - means that psl was reversed into BED-compatible coordinates"
|
375
|
+
uint oChromSize; "Size of other chromosome."
|
376
|
+
int[blockCount] oChromStarts; "Start positions relative to oChromStart or from oChromStart+oChromSize depending on strand"
|
377
|
+
|
378
|
+
lstring oSequence; "Sequence on other chrom (or empty)"
|
379
|
+
string oCDS; "CDS in NCBI format"
|
380
|
+
|
381
|
+
uint chromSize;"Size of target chromosome"
|
382
|
+
|
383
|
+
uint match; "Number of bases matched."
|
384
|
+
uint misMatch; " Number of bases that don't match "
|
385
|
+
uint repMatch; " Number of bases that match but are part of repeats "
|
386
|
+
uint nCount; " Number of 'N' bases "
|
387
|
+
uint seqType; "0=empty, 1=nucleotide, 2=amino_acid"
|
388
|
+
)`, Mt = `table defaultBedSchema
|
389
|
+
"BED12"
|
390
|
+
(
|
391
|
+
string chrom; "The name of the chromosome (e.g. chr3, chrY, chr2_random) or scaffold (e.g. scaffold10671)."
|
392
|
+
uint chromStart; "The starting position of the feature in the chromosome or scaffold. The first base in a chromosome is numbered 0."
|
393
|
+
uint chromEnd; "The ending position of the feature in the chromosome or scaffold. The chromEnd base is not included in the display of the feature. For example, the first 100 bases of a chromosome are defined as chromStart=0, chromEnd=100, and span the bases numbered 0-99."
|
394
|
+
string name; "Defines the name of the BED line."
|
395
|
+
float score; "Feature score, doesn't care about the 0-1000 limit as in bed"
|
396
|
+
char strand; "Defines the strand. Either '.' (=no strand) or '+' or '-'"
|
397
|
+
uint thickStart; "The starting position at which the feature is drawn thickly (for example, the start codon in gene displays). When there is no thick part, thickStart and thickEnd are usually set to the chromStart position."
|
398
|
+
uint thickEnd; "The ending position at which the feature is drawn thickly (for example the stop codon in gene displays)."
|
399
|
+
string itemRgb; "An RGB value of the form R,G,B (e.g. 255,0,0). "
|
400
|
+
uint blockCount; " The number of blocks (exons) in the BED line."
|
401
|
+
uint[blockCount] blockSizes; " A comma-separated list of the block sizes. The number of items in this list should correspond to blockCount."
|
402
|
+
uint[blockCount] blockStarts; "A comma-separated list of block starts. All of the blockStart positions should be calculated relative to chromStart. The number of items in this list should correspond to blockCount."
|
403
|
+
)`, jt = `table mafFrames
|
404
|
+
"codon frame assignment for MAF components"
|
405
|
+
(
|
406
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
407
|
+
uint chromStart; "Start range in chromosome"
|
408
|
+
uint chromEnd; "End range in chromosome"
|
409
|
+
string src; "Name of sequence source in MAF"
|
410
|
+
ubyte frame; "frame (0,1,2) for first base(+) or last bast(-)"
|
411
|
+
char[1] strand; "+ or -"
|
412
|
+
string name; "Name of gene used to define frame"
|
413
|
+
int prevFramePos; "target position of the previous base (in transcription direction) that continues this frame, or -1 if none, or frame not contiguous"
|
414
|
+
int nextFramePos; "target position of the next base (in transcription direction) that continues this frame, or -1 if none, or frame not contiguous"
|
415
|
+
ubyte isExonStart; "does this start the CDS portion of an exon?"
|
416
|
+
ubyte isExonEnd; "does this end the CDS portion of an exon?"
|
417
|
+
)`, Lt = `table mafSummary
|
418
|
+
"Positions and scores for alignment blocks"
|
419
|
+
(
|
420
|
+
string chrom; "Reference sequence chromosome or scaffold"
|
421
|
+
uint chromStart; "Start position in chromosome"
|
422
|
+
uint chromEnd; "End position in chromosome"
|
423
|
+
string src; "Sequence name or database of alignment"
|
424
|
+
float score; "Floating point score."
|
425
|
+
char[1] leftStatus; "Gap/break annotation for preceding block"
|
426
|
+
char[1] rightStatus; "Gap/break annotation for following block"
|
427
|
+
)`, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
428
|
+
__proto__: null,
|
429
|
+
bigChain: Tt,
|
430
|
+
bigGenePred: zt,
|
431
|
+
bigInteract: Bt,
|
432
|
+
bigLink: It,
|
433
|
+
bigMaf: Pt,
|
434
|
+
bigNarrowPeak: Gt,
|
435
|
+
bigPsl: _t,
|
436
|
+
defaultBedSchema: Mt,
|
437
|
+
mafFrames: jt,
|
438
|
+
mafSummary: Lt
|
439
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = Object.fromEntries(Object.entries(Ot).map(([C, d]) => [
|
440
|
+
C,
|
441
|
+
Pe.parse(d.trim())
|
442
|
+
]));
|
443
|
+
function H(C) {
|
444
|
+
const d = /* @__PURE__ */ new Set(["uint", "int", "float", "long"]);
|
445
|
+
return {
|
446
|
+
...C,
|
447
|
+
fields: C.fields.map((E) => ({
|
448
|
+
...E,
|
449
|
+
isArray: E.size && E.type !== "char",
|
450
|
+
arrayIsNumeric: E.size && d.has(E.type),
|
451
|
+
isNumeric: !E.size && d.has(E.type)
|
452
|
+
})).filter((E) => !!E.name)
|
453
|
+
};
|
454
|
+
}
|
455
|
+
const Ut = { ".": 0, "-": -1, "+": 1 };
|
456
|
+
function Vt(C) {
|
457
|
+
var d;
|
458
|
+
return C.length >= 12 && !Number.isNaN(parseInt(C[9], 10)) && ((d = C[10]) === null || d === void 0 ? void 0 : d.split(",").filter((E) => !!E).length) === parseInt(C[9], 10);
|
459
|
+
}
|
460
|
+
class Qt {
|
461
|
+
constructor(d = {}) {
|
462
|
+
if (d.autoSql)
|
463
|
+
this.autoSql = H(Rt.parse(d.autoSql));
|
464
|
+
else if (d.type) {
|
465
|
+
if (!Y[d.type])
|
466
|
+
throw new Error("Type not found");
|
467
|
+
this.autoSql = H(Y[d.type]);
|
468
|
+
} else
|
469
|
+
this.autoSql = H(Y.defaultBedSchema), this.attemptDefaultBed = !0;
|
470
|
+
}
|
471
|
+
/*
|
472
|
+
* parses a line of text as a BED line with the loaded autoSql schema
|
473
|
+
*
|
474
|
+
* @param line - a BED line as tab delimited text or array
|
475
|
+
* @param opts - supply opts.uniqueId
|
476
|
+
* @return a object representing a feature
|
477
|
+
*/
|
478
|
+
parseLine(d, E = {}) {
|
479
|
+
const { autoSql: n } = this, { uniqueId: y } = E, t = Array.isArray(d) ? d : d.split(" ");
|
480
|
+
let m = {};
|
481
|
+
if (!this.attemptDefaultBed || this.attemptDefaultBed && Vt(t))
|
482
|
+
for (let A = 0; A < n.fields.length; A++) {
|
483
|
+
const q = n.fields[A];
|
484
|
+
let $ = t[A];
|
485
|
+
const { isNumeric: I, isArray: P, arrayIsNumeric: u, name: h } = q;
|
486
|
+
if ($ == null)
|
487
|
+
break;
|
488
|
+
if ($ !== ".") {
|
489
|
+
if (I) {
|
490
|
+
const b = Number($);
|
491
|
+
$ = Number.isNaN(b) ? $ : b;
|
492
|
+
} else P && ($ = $.split(","), $[$.length - 1] === "" && $.pop(), u && ($ = $.map(Number)));
|
493
|
+
m[h] = $;
|
494
|
+
}
|
495
|
+
}
|
496
|
+
else {
|
497
|
+
const A = ["chrom", "chromStart", "chromEnd", "name"];
|
498
|
+
m = Object.fromEntries(t.map((q, $) => [A[$] || "field" + $, q])), m.chromStart = +m.chromStart, m.chromEnd = +m.chromEnd, Number.isNaN(Number.parseFloat(m.field4)) || (m.score = +m.field4, delete m.field4), (m.field5 === "+" || m.field5 === "-") && (m.strand = m.field5, delete m.field5);
|
499
|
+
}
|
500
|
+
return y && (m.uniqueId = y), m.strand = Ut[m.strand] || 0, m.chrom = decodeURIComponent(m.chrom), m;
|
501
|
+
}
|
502
|
+
}
|
503
|
+
export {
|
504
|
+
Qt as default
|
505
|
+
};
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { A as J, L as K } from "./index-
|
2
|
-
import { b as Q } from "./index-
|
1
|
+
import { A as J, L as K } from "./index-CCJIjehY.js";
|
2
|
+
import { b as Q } from "./index-BftNdA0O.js";
|
3
3
|
import { L as B } from "./__vite-browser-external-C--ziKoh.js";
|
4
|
-
import { R as A } from "./remoteFile-
|
5
|
-
import { u as
|
4
|
+
import { R as A } from "./remoteFile-BuaqFGWk.js";
|
5
|
+
import { u as $, L as H, a as Z } from "./long-BviWyoZx.js";
|
6
6
|
function j(o) {
|
7
7
|
if (o.greaterThan(Number.MAX_SAFE_INTEGER) || o.lessThan(Number.MIN_SAFE_INTEGER))
|
8
8
|
throw new Error("integer overflow");
|
@@ -108,7 +108,7 @@ class k extends W {
|
|
108
108
|
}
|
109
109
|
// fetch and parse the index
|
110
110
|
async _parse(e = {}) {
|
111
|
-
const t = await this.filehandle.readFile(e), n = await
|
111
|
+
const t = await this.filehandle.readFile(e), n = await $(t);
|
112
112
|
if (L(e.signal), n.readUInt32LE(0) !== ne)
|
113
113
|
throw new Error("Not a TBI file");
|
114
114
|
const i = n.readInt32LE(4), a = n.readInt32LE(8), r = a & 65536 ? "zero-based-half-open" : "1-based-closed", d = {
|
@@ -129,14 +129,14 @@ class k extends W {
|
|
129
129
|
const y = n.readInt32LE(h);
|
130
130
|
h += 4;
|
131
131
|
const S = {};
|
132
|
-
let
|
133
|
-
for (let
|
132
|
+
let E;
|
133
|
+
for (let v = 0; v < y; v += 1) {
|
134
134
|
const _ = n.readUInt32LE(h);
|
135
135
|
if (h += 4, _ > f + 1)
|
136
136
|
throw new Error("tabix index contains too many bins, please use a CSI index");
|
137
137
|
if (_ === f + 1) {
|
138
138
|
const N = n.readInt32LE(h);
|
139
|
-
h += 4, N === 2 && (
|
139
|
+
h += 4, N === 2 && (E = this.parsePseudoBin(n, h)), h += 16 * N;
|
140
140
|
} else {
|
141
141
|
const N = n.readInt32LE(h);
|
142
142
|
h += 4;
|
@@ -151,9 +151,9 @@ class k extends W {
|
|
151
151
|
const P = n.readInt32LE(h);
|
152
152
|
h += 4;
|
153
153
|
const R = new Array(P);
|
154
|
-
for (let
|
155
|
-
R[
|
156
|
-
return { binIndex: S, linearIndex: R, stats:
|
154
|
+
for (let v = 0; v < P; v += 1)
|
155
|
+
R[v] = T(n, h), h += 8, g = this._findFirstData(g, R[v]);
|
156
|
+
return { binIndex: S, linearIndex: R, stats: E };
|
157
157
|
}),
|
158
158
|
metaChar: w,
|
159
159
|
maxBinNumber: f,
|
@@ -264,7 +264,7 @@ class M extends W {
|
|
264
264
|
}
|
265
265
|
// fetch and parse the index
|
266
266
|
async _parse(e = {}) {
|
267
|
-
const t = await
|
267
|
+
const t = await $(await this.filehandle.readFile(e));
|
268
268
|
let n;
|
269
269
|
if (t.readUInt32LE(0) === re)
|
270
270
|
n = 1;
|
@@ -298,8 +298,8 @@ class M extends W {
|
|
298
298
|
l += 16;
|
299
299
|
const x = new Array(p);
|
300
300
|
for (let h = 0; h < p; h += 1) {
|
301
|
-
const g = T(t, l),
|
302
|
-
l += 16, x[h] = new D(g,
|
301
|
+
const g = T(t, l), C = T(t, l + 8);
|
302
|
+
l += 16, x[h] = new D(g, C, m);
|
303
303
|
}
|
304
304
|
f[m] = x;
|
305
305
|
}
|
@@ -354,7 +354,7 @@ class M extends W {
|
|
354
354
|
return r;
|
355
355
|
}
|
356
356
|
}
|
357
|
-
const
|
357
|
+
const z = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
358
358
|
function oe(o) {
|
359
359
|
return new Promise((e) => setTimeout(e, o));
|
360
360
|
}
|
@@ -468,20 +468,20 @@ class ue {
|
|
468
468
|
L(r);
|
469
469
|
let h = 0, g = 0;
|
470
470
|
for (; h < b.length; ) {
|
471
|
-
const
|
471
|
+
const C = b.indexOf(`
|
472
472
|
`, h);
|
473
|
-
if (
|
473
|
+
if (C === -1)
|
474
474
|
break;
|
475
|
-
const y = b.slice(h,
|
475
|
+
const y = b.slice(h, C), S = (a = z == null ? void 0 : z.decode(y)) !== null && a !== void 0 ? a : y.toString();
|
476
476
|
if (x) {
|
477
477
|
for (; h + w.minv.dataPosition >= x[g++]; )
|
478
478
|
;
|
479
479
|
g--;
|
480
480
|
}
|
481
|
-
const { startCoordinate:
|
482
|
-
if (m !== void 0 &&
|
483
|
-
throw new Error(`Lines not sorted by start coordinate (${m} > ${
|
484
|
-
if (m =
|
481
|
+
const { startCoordinate: E, overlaps: P } = this.checkLine(l, e, u, c, S);
|
482
|
+
if (m !== void 0 && E !== void 0 && m > E)
|
483
|
+
throw new Error(`Lines not sorted by start coordinate (${m} > ${E}), this file is not usable with Tabix.`);
|
484
|
+
if (m = E, P)
|
485
485
|
d(
|
486
486
|
S.trim(),
|
487
487
|
// cpositions[pos] refers to actual file offset of a bgzip block boundaries
|
@@ -494,9 +494,9 @@ class ue {
|
|
494
494
|
// (1 << 8) these uncompressed offsets get a unique space
|
495
495
|
p[g] * 256 + (h - x[g]) + w.minv.dataPosition + 1
|
496
496
|
);
|
497
|
-
else if (
|
497
|
+
else if (E !== void 0 && E >= c)
|
498
498
|
return;
|
499
|
-
this.yieldTime && I - Date.now() > this.yieldTime && (I = Date.now(), L(r), await oe(1)), h =
|
499
|
+
this.yieldTime && I - Date.now() > this.yieldTime && (I = Date.now(), L(r), await oe(1)), h = C + 1;
|
500
500
|
}
|
501
501
|
}
|
502
502
|
}
|
@@ -510,7 +510,7 @@ class ue {
|
|
510
510
|
async getHeaderBuffer(e = {}) {
|
511
511
|
const { firstDataLine: t, metaChar: n, maxBlockSize: i } = await this.getMetadata(e);
|
512
512
|
L(e.signal);
|
513
|
-
const a = ((t == null ? void 0 : t.blockPosition) || 0) + i, r = await this._readRegion(0, a, e), s = await
|
513
|
+
const a = ((t == null ? void 0 : t.blockPosition) || 0) + i, r = await this._readRegion(0, a, e), s = await $(r);
|
514
514
|
if (n) {
|
515
515
|
let d = -1;
|
516
516
|
const l = 10, u = n.charCodeAt(0);
|