@jbrowse/cli 4.2.1 → 4.3.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/README.md +3 -3
- package/bundle/index.js +100 -45
- package/dist/commands/add-track-utils/adapter-utils.js +12 -7
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -23,20 +23,20 @@ fs.writeFileSync('config.json', JSON.stringify(config, null, 2))
|
|
|
23
23
|
|
|
24
24
|
The command line tools can be installed globally using `npm` as follows
|
|
25
25
|
|
|
26
|
-
```
|
|
26
|
+
```bash
|
|
27
27
|
$ npm install -g @jbrowse/cli
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
A CLI tool called `jbrowse` should then be available in the path. You can test
|
|
31
31
|
your installation with
|
|
32
32
|
|
|
33
|
-
```
|
|
33
|
+
```bash
|
|
34
34
|
$ jbrowse --version
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
It is also possible to do one-off executions using npx, e.g.
|
|
38
38
|
|
|
39
|
-
```
|
|
39
|
+
```bash
|
|
40
40
|
npx @jbrowse/cli create myfolder
|
|
41
41
|
```
|
|
42
42
|
|
package/bundle/index.js
CHANGED
|
@@ -149,7 +149,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
149
149
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
150
150
|
|
|
151
151
|
"use strict";
|
|
152
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ adapterTypesToTrackTypeMap: () => (/* binding */ adapterTypesToTrackTypeMap),\n/* harmony export */ guessAdapter: () => (/* binding */ guessAdapter),\n/* harmony export */ guessFileNames: () => (/* binding */ guessFileNames),\n/* harmony export */ guessTrackType: () => (/* binding */ guessTrackType),\n/* harmony export */ makeLocationProtocol: () => (/* binding */ makeLocationProtocol)\n/* harmony export */ });\nfunction makeLocationProtocol(protocol) {\n return function (location) {\n if (protocol === 'uri') {\n return {\n uri: location,\n locationType: 'UriLocation'\n };\n }\n if (protocol === 'localPath') {\n return {\n localPath: location,\n locationType: 'LocalPathLocation'\n };\n }\n throw new Error(\"invalid protocol \".concat(protocol));\n };\n}\nfunction guessFileNames(_ref) {\n var location = _ref.location,\n index = _ref.index,\n bed1 = _ref.bed1,\n bed2 = _ref.bed2;\n if (/\\.anchors(
|
|
152
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ adapterTypesToTrackTypeMap: () => (/* binding */ adapterTypesToTrackTypeMap),\n/* harmony export */ guessAdapter: () => (/* binding */ guessAdapter),\n/* harmony export */ guessFileNames: () => (/* binding */ guessFileNames),\n/* harmony export */ guessTrackType: () => (/* binding */ guessTrackType),\n/* harmony export */ makeLocationProtocol: () => (/* binding */ makeLocationProtocol)\n/* harmony export */ });\nfunction makeLocationProtocol(protocol) {\n return function (location) {\n if (protocol === 'uri') {\n return {\n uri: location,\n locationType: 'UriLocation'\n };\n }\n if (protocol === 'localPath') {\n return {\n localPath: location,\n locationType: 'LocalPathLocation'\n };\n }\n throw new Error(\"invalid protocol \".concat(protocol));\n };\n}\nfunction guessFileNames(_ref) {\n var location = _ref.location,\n index = _ref.index,\n bed1 = _ref.bed1,\n bed2 = _ref.bed2;\n if (/\\.anchors(\\.simple)?$/i.test(location)) {\n return {\n file: location,\n bed1: bed1,\n bed2: bed2\n };\n } else if (/\\.bam$/i.test(location)) {\n return {\n file: location,\n index: index || \"\".concat(location, \".bai\")\n };\n } else if (/\\.cram$/i.test(location)) {\n return {\n file: location,\n index: index || \"\".concat(location, \".crai\")\n };\n } else if (/\\.gff3?\\.b?gz$/i.test(location) || /\\.vcf\\.b?gz$/i.test(location) || /\\.bed\\.b?gz$/i.test(location) || /\\.bedmethyl\\.gz$/i.test(location) || /\\.pif\\.b?gz$/i.test(location)) {\n return {\n file: location,\n index: index || \"\".concat(location, \".tbi\")\n };\n } else if (/\\.(fa|fasta|fas|fna|mfa)$/i.test(location)) {\n return {\n file: location,\n index: index || \"\".concat(location, \".fai\")\n };\n } else if (/\\.(fa|fasta|fas|fna|mfa)\\.b?gz$/i.test(location)) {\n return {\n file: location,\n index: \"\".concat(location, \".fai\"),\n index2: \"\".concat(location, \".gzi\")\n };\n } else if (/\\.2bit$/i.test(location) || /\\.bedpe(\\.gz)?$/i.test(location) || /\\/trackData.jsonz?$/i.test(location) || /\\/sparql$/i.test(location) || /\\.out(\\.gz)?$/i.test(location) || /\\.paf(\\.gz)?$/i.test(location) || /\\.delta(\\.gz)?$/i.test(location) || /\\.bed$/i.test(location) || /\\.(bw|bigwig)$/i.test(location) || /\\.(bb|bigbed)$/i.test(location) || /\\.vcf$/i.test(location) || /\\.gtf$/i.test(location) || /\\.gff3?$/i.test(location) || /\\.chain(\\.gz)?$/i.test(location) || /\\.hic$/i.test(location)) {\n return {\n file: location\n };\n }\n return {};\n}\nfunction guessAdapter(_ref2) {\n var location = _ref2.location,\n protocol = _ref2.protocol,\n index = _ref2.index,\n bed1 = _ref2.bed1,\n bed2 = _ref2.bed2;\n var makeLocation = makeLocationProtocol(protocol);\n if (/\\.bam$/i.test(location)) {\n return {\n type: 'BamAdapter',\n bamLocation: makeLocation(location),\n index: {\n location: makeLocation(index || \"\".concat(location, \".bai\")),\n indexType: index !== null && index !== void 0 && index.toUpperCase().endsWith('CSI') ? 'CSI' : 'BAI'\n }\n };\n } else if (/\\.cram$/i.test(location)) {\n return {\n type: 'CramAdapter',\n cramLocation: makeLocation(location),\n craiLocation: makeLocation(\"\".concat(location, \".crai\"))\n };\n } else if (/\\.gff3?$/i.test(location)) {\n return {\n type: 'Gff3Adapter',\n gffLocation: makeLocation(location)\n };\n } else if (/\\.gff3?\\.b?gz$/i.test(location)) {\n return {\n type: 'Gff3TabixAdapter',\n gffGzLocation: makeLocation(location),\n index: {\n location: makeLocation(index || \"\".concat(location, \".tbi\")),\n indexType: index !== null && index !== void 0 && index.toUpperCase().endsWith('CSI') ? 'CSI' : 'TBI'\n }\n };\n } else if (/\\.gtf$/i.test(location)) {\n return {\n type: 'GtfAdapter',\n gtfLocation: makeLocation(location)\n };\n } else if (/\\.vcf$/i.test(location)) {\n return {\n type: 'VcfAdapter',\n vcfLocation: makeLocation(location)\n };\n } else if (/\\.vcf\\.b?gz$/i.test(location)) {\n return {\n type: 'VcfTabixAdapter',\n vcfGzLocation: makeLocation(location),\n index: {\n location: makeLocation(index || \"\".concat(location, \".tbi\")),\n indexType: index !== null && index !== void 0 && index.toUpperCase().endsWith('CSI') ? 'CSI' : 'TBI'\n }\n };\n } else if (/\\.vcf\\.idx$/i.test(location)) {\n return {\n type: 'UNSUPPORTED'\n };\n } else if (/\\.bedpe(.gz)?$/i.test(location)) {\n return {\n type: 'BedpeAdapter',\n bedpeLocation: makeLocation(location)\n };\n } else if (/\\.bed$/i.test(location)) {\n return {\n type: 'BedAdapter',\n bedLocation: makeLocation(location)\n };\n } else if (/\\.pif\\.b?gz$/i.test(location)) {\n return {\n type: 'PairwiseIndexedPAFAdapter',\n pifGzLocation: makeLocation(location),\n index: {\n location: makeLocation(index || \"\".concat(location, \".tbi\")),\n indexType: index !== null && index !== void 0 && index.toUpperCase().endsWith('CSI') ? 'CSI' : 'TBI'\n }\n };\n } else if (/\\.bedmethyl\\.gz$/i.test(location) || /\\.bed\\.b?gz$/i.test(location)) {\n return {\n type: 'BedTabixAdapter',\n bedGzLocation: makeLocation(location),\n index: {\n location: makeLocation(index || \"\".concat(location, \".tbi\")),\n indexType: index !== null && index !== void 0 && index.toUpperCase().endsWith('CSI') ? 'CSI' : 'TBI'\n }\n };\n } else if (/\\.(bb|bigbed)$/i.test(location)) {\n return {\n type: 'BigBedAdapter',\n bigBedLocation: makeLocation(location)\n };\n } else if (/\\.(bw|bigwig)$/i.test(location)) {\n return {\n type: 'BigWigAdapter',\n bigWigLocation: makeLocation(location)\n };\n } else if (/\\.(fa|fasta|fna|mfa)$/i.test(location)) {\n return {\n type: 'IndexedFastaAdapter',\n fastaLocation: makeLocation(location),\n faiLocation: makeLocation(index || \"\".concat(location, \".fai\"))\n };\n } else if (/\\.(fa|fasta|fna|mfa)\\.b?gz$/i.test(location)) {\n return {\n type: 'BgzipFastaAdapter',\n fastaLocation: makeLocation(location),\n faiLocation: makeLocation(\"\".concat(location, \".fai\")),\n gziLocation: makeLocation(\"\".concat(location, \".gzi\"))\n };\n } else if (/\\.2bit$/i.test(location)) {\n return {\n type: 'TwoBitAdapter',\n twoBitLocation: makeLocation(location)\n };\n } else if (/\\.sizes$/i.test(location)) {\n return {\n type: 'UNSUPPORTED'\n };\n } else if (/\\/trackData.jsonz?$/i.test(location)) {\n return {\n type: 'NCListAdapter',\n rootUrlTemplate: makeLocation(location)\n };\n } else if (/\\/sparql$/i.test(location)) {\n return {\n type: 'SPARQLAdapter',\n endpoint: location\n };\n } else if (/\\.hic$/i.test(location)) {\n return {\n type: 'HicAdapter',\n hicLocation: makeLocation(location)\n };\n } else if (/\\.paf(.gz)?$/i.test(location)) {\n return {\n type: 'PAFAdapter',\n pafLocation: makeLocation(location)\n };\n } else if (/\\.out(.gz)?$/i.test(location)) {\n return {\n type: 'MashMapAdapter',\n outLocation: makeLocation(location)\n };\n } else if (/\\.chain(.gz)?$/i.test(location)) {\n return {\n type: 'ChainAdapter',\n chainLocation: makeLocation(location)\n };\n } else if (/\\.delta(.gz)?$/i.test(location)) {\n return {\n type: 'DeltaAdapter',\n deltaLocation: makeLocation(location)\n };\n } else if (/\\.anchors(\\.gz)?$/i.test(location)) {\n return {\n type: 'MCScanAnchorsAdapter',\n mcscanAnchorsLocation: makeLocation(location),\n bed1Location: bed1 ? makeLocation(bed1) : undefined,\n bed2Location: bed2 ? makeLocation(bed2) : undefined\n };\n } else if (/\\.anchors\\.simple(\\.gz)?$/i.test(location)) {\n return {\n type: 'MCScanSimpleAnchorsAdapter',\n mcscanSimpleAnchorsLocation: makeLocation(location),\n bed1Location: bed1 ? makeLocation(bed1) : undefined,\n bed2Location: bed2 ? makeLocation(bed2) : undefined\n };\n }\n return {\n type: 'UNKNOWN'\n };\n}\nvar adapterTypesToTrackTypeMap = {\n BamAdapter: 'AlignmentsTrack',\n CramAdapter: 'AlignmentsTrack',\n BgzipFastaAdapter: 'ReferenceSequenceTrack',\n BigWigAdapter: 'QuantitativeTrack',\n BedGraphAdapter: 'QuantitativeTrack',\n BedGraphTabixAdapter: 'QuantitativeTrack',\n IndexedFastaAdapter: 'ReferenceSequenceTrack',\n TwoBitAdapter: 'ReferenceSequenceTrack',\n VcfTabixAdapter: 'VariantTrack',\n VcfAdapter: 'VariantTrack',\n BedpeAdapter: 'VariantTrack',\n BedAdapter: 'FeatureTrack',\n BedTabixAdapter: 'FeatureTrack',\n HicAdapter: 'HicTrack',\n PAFAdapter: 'SyntenyTrack',\n DeltaAdapter: 'SyntenyTrack',\n ChainAdapter: 'SyntenyTrack',\n MashMapAdapter: 'SyntenyTrack',\n PairwiseIndexedPAFAdapter: 'SyntenyTrack',\n MCScanAnchorsAdapter: 'SyntenyTrack',\n MCScanSimpleAnchorsAdapter: 'SyntenyTrack'\n};\nfunction guessTrackType(adapterType) {\n return adapterTypesToTrackTypeMap[adapterType] || 'FeatureTrack';\n}\n\n//# sourceURL=webpack://@jbrowse/cli/./src/commands/add-track-utils/adapter-utils.ts?\n}");
|
|
153
153
|
|
|
154
154
|
/***/ },
|
|
155
155
|
|
|
@@ -435,7 +435,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
435
435
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
436
436
|
|
|
437
437
|
"use strict";
|
|
438
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ indexDriver: () => (/* binding */ indexDriver),\n/* harmony export */ indexFiles: () => (/* binding */ indexFiles),\n/* harmony export */ prepareFileTrackConfigs: () => (/* binding */ prepareFileTrackConfigs),\n/* harmony export */ runIxIxx: () => (/* binding */ runIxIxx)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! stream */ \"stream\");\n/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stream__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @jbrowse/text-indexing-core */ \"../../packages/text-indexing-core/src/types/common.ts\");\n/* harmony import */ var _jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @jbrowse/text-indexing-core */ \"../../packages/text-indexing-core/src/types/gff3Adapter.ts\");\n/* harmony import */ var _jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @jbrowse/text-indexing-core */ \"../../packages/text-indexing-core/src/types/vcfAdapter.ts\");\n/* harmony import */ var cli_progress__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! cli-progress */ \"../../node_modules/.pnpm/cli-progress@3.12.0/node_modules/cli-progress/cli-progress.js\");\n/* harmony import */ var cli_progress__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(cli_progress__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ixixx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ixixx */ \"../../node_modules/.pnpm/ixixx@3.0.3/node_modules/ixixx/esm/index.js\");\n/* harmony import */ var _adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./adapter-utils.ts */ \"./src/commands/text-index/adapter-utils.ts\");\n/* harmony import */ var _types_common_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../types/common.ts */ \"./src/types/common.ts\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorValues(e) { if (null != e) { var t = e[\"function\" == typeof Symbol && Symbol.iterator || \"@@iterator\"], r = 0; if (t) return t.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + \" is not iterable\"); }\nfunction _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i[\"return\"]) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\nfunction _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t[\"return\"] || t[\"return\"](); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction _wrapAsyncGenerator(e) { return function () { return new AsyncGenerator(e.apply(this, arguments)); }; }\nfunction AsyncGenerator(e) { var t, n; function resume(t, n) { try { var r = e[t](n), o = r.value, u = o instanceof _OverloadYield; Promise.resolve(u ? o.v : o).then(function (n) { if (u) { var i = \"return\" === t && o.k ? t : \"next\"; if (!o.k || n.done) return resume(i, n); n = e[i](n).value; } settle(!!r.done, n); }, function (e) { resume(\"throw\", e); }); } catch (e) { settle(2, e); } } function settle(e, r) { 2 === e ? t.reject(r) : t.resolve({ value: r, done: e }), (t = t.next) ? resume(t.key, t.arg) : n = null; } this._invoke = function (e, r) { return new Promise(function (o, u) { var i = { key: e, arg: r, resolve: o, reject: u, next: null }; n ? n = n.next = i : (t = n = i, resume(e, r)); }); }, \"function\" != typeof e[\"return\"] && (this[\"return\"] = void 0); }\nAsyncGenerator.prototype[\"function\" == typeof Symbol && Symbol.asyncIterator || \"@@asyncIterator\"] = function () { return this; }, AsyncGenerator.prototype.next = function (e) { return this._invoke(\"next\", e); }, AsyncGenerator.prototype[\"throw\"] = function (e) { return this._invoke(\"throw\", e); }, AsyncGenerator.prototype[\"return\"] = function (e) { return this._invoke(\"return\", e); };\nfunction _awaitAsyncGenerator(e) { return new _OverloadYield(e, 0); }\nfunction _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) { return n = !0, r = new Promise(function (n) { n(t[e](r)); }), { done: !1, value: new _OverloadYield(r, 1) }; } return e[\"undefined\" != typeof Symbol && Symbol.iterator || \"@@iterator\"] = function () { return this; }, e.next = function (t) { return n ? (n = !1, t) : pump(\"next\", t); }, \"function\" == typeof t[\"throw\"] && (e[\"throw\"] = function (t) { if (n) throw n = !1, t; return pump(\"throw\", t); }), \"function\" == typeof t[\"return\"] && (e[\"return\"] = function (t) { return n ? (n = !1, t) : pump(\"return\", t); }), e; }\nfunction _OverloadYield(e, d) { this.v = e, this.k = d; }\nfunction _asyncIterator(r) { var n, t, o, e = 2; for (\"undefined\" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = \"@@asyncIterator\", o = \"@@iterator\"; } throw new TypeError(\"Object is not async iterable\"); }\nfunction AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + \" is not an object.\")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, \"return\": function _return(r) { var n = this.s[\"return\"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, \"throw\": function _throw(r) { var n = this.s[\"return\"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }\n\n\n\n\n\n\n\nfunction runIxIxx(_x2) {\n return _runIxIxx.apply(this, arguments);\n}\nfunction _runIxIxx() {\n _runIxIxx = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {\n var readStream, outLocation, name, prefixSize, quiet, progressBar, ixPath, ixxPath;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n readStream = _ref.readStream, outLocation = _ref.outLocation, name = _ref.name, prefixSize = _ref.prefixSize, quiet = _ref.quiet;\n progressBar = new cli_progress__WEBPACK_IMPORTED_MODULE_5__.SingleBar({\n format: '{bar} Sorting and writing index...',\n etaBuffer: 2000\n }, cli_progress__WEBPACK_IMPORTED_MODULE_5__.Presets.shades_classic);\n if (!quiet) {\n progressBar.start(1, 0);\n }\n ixPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(outLocation, 'trix', \"\".concat(name, \".ix\"));\n ixxPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(outLocation, 'trix', \"\".concat(name, \".ixx\"));\n _context3.n = 1;\n return (0,ixixx__WEBPACK_IMPORTED_MODULE_6__.ixIxxStream)(readStream, ixPath, ixxPath, prefixSize);\n case 1:\n if (!quiet) {\n progressBar.update(1);\n progressBar.stop();\n }\n case 2:\n return _context3.a(2);\n }\n }, _callee2);\n }));\n return _runIxIxx.apply(this, arguments);\n}\nfunction indexFiles(_x) {\n return _indexFiles.apply(this, arguments);\n}\nfunction _indexFiles() {\n _indexFiles = _wrapAsyncGenerator(function (_ref2) {\n var trackConfigs = _ref2.trackConfigs,\n attributes = _ref2.attributes,\n outLocation = _ref2.outLocation,\n quiet = _ref2.quiet,\n typesToExclude = _ref2.typesToExclude;\n return /*#__PURE__*/_regenerator().m(function _callee() {\n var _iterator, _step, _loop, _t;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.p = _context2.n) {\n case 0:\n _iterator = _createForOfIteratorHelper(trackConfigs);\n _context2.p = 1;\n _loop = /*#__PURE__*/_regenerator().m(function _loop() {\n var config, adapter, textSearching, trackId, _ref3, type, _ref4, _ref4$indexingFeature, indexingFeatureTypesToExclude, _ref4$indexingAttribu, indexingAttributes, loc, progressBar;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n config = _step.value;\n adapter = config.adapter, textSearching = config.textSearching, trackId = config.trackId;\n _ref3 = adapter || {}, type = _ref3.type;\n _ref4 = textSearching || {}, _ref4$indexingFeature = _ref4.indexingFeatureTypesToExclude, indexingFeatureTypesToExclude = _ref4$indexingFeature === void 0 ? typesToExclude : _ref4$indexingFeature, _ref4$indexingAttribu = _ref4.indexingAttributes, indexingAttributes = _ref4$indexingAttribu === void 0 ? attributes : _ref4$indexingAttribu;\n loc = (0,_adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__.getAdapterLocation)(adapter);\n if (loc) {\n _context.n = 1;\n break;\n }\n return _context.a(2, 1);\n case 1:\n progressBar = new cli_progress__WEBPACK_IMPORTED_MODULE_5__.SingleBar({\n format: \"{bar} \".concat(trackId, \" {percentage}% | ETA: {eta}s\"),\n etaBuffer: 2000\n }, cli_progress__WEBPACK_IMPORTED_MODULE_5__.Presets.shades_classic);\n if (!(type === 'Gff3TabixAdapter' || type === 'Gff3Adapter')) {\n _context.n = 3;\n break;\n }\n return _context.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator((0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_3__.indexGff3)({\n config: config,\n attributesToIndex: indexingAttributes,\n inLocation: (0,_adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__.getLoc)(loc),\n outDir: outLocation,\n featureTypesToExclude: indexingFeatureTypesToExclude,\n onStart: function onStart(totalBytes) {\n if (!quiet) {\n progressBar.start(totalBytes, 0);\n }\n },\n onUpdate: function onUpdate(receivedBytes) {\n if (!quiet) {\n progressBar.update(receivedBytes);\n }\n }\n })), _awaitAsyncGenerator)), 2);\n case 2:\n _context.n = 4;\n break;\n case 3:\n if (!(type === 'VcfTabixAdapter' || type === 'VcfAdapter')) {\n _context.n = 4;\n break;\n }\n return _context.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator((0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_4__.indexVcf)({\n config: config,\n attributesToIndex: indexingAttributes,\n inLocation: (0,_adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__.getLoc)(loc),\n outDir: outLocation,\n onStart: function onStart(totalBytes) {\n if (!quiet) {\n progressBar.start(totalBytes, 0);\n }\n },\n onUpdate: function onUpdate(receivedBytes) {\n if (!quiet) {\n progressBar.update(receivedBytes);\n }\n }\n })), _awaitAsyncGenerator)), 4);\n case 4:\n if (!quiet) {\n progressBar.stop();\n }\n case 5:\n return _context.a(2);\n }\n }, _loop);\n });\n _iterator.s();\n case 2:\n if ((_step = _iterator.n()).done) {\n _context2.n = 5;\n break;\n }\n return _context2.d(_regeneratorValues(_loop()), 3);\n case 3:\n if (!_context2.v) {\n _context2.n = 4;\n break;\n }\n return _context2.a(3, 4);\n case 4:\n _context2.n = 2;\n break;\n case 5:\n _context2.n = 7;\n break;\n case 6:\n _context2.p = 6;\n _t = _context2.v;\n _iterator.e(_t);\n case 7:\n _context2.p = 7;\n _iterator.f();\n return _context2.f(7);\n case 8:\n return _context2.a(2);\n }\n }, _callee, null, [[1, 6, 7, 8]]);\n })();\n });\n return _indexFiles.apply(this, arguments);\n}\nfunction indexDriver(_x3) {\n return _indexDriver.apply(this, arguments);\n}\nfunction _indexDriver() {\n _indexDriver = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref5) {\n var trackConfigs, attributes, outLocation, name, quiet, typesToExclude, assemblyNames, prefixSize, readStream;\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.n) {\n case 0:\n trackConfigs = _ref5.trackConfigs, attributes = _ref5.attributes, outLocation = _ref5.outLocation, name = _ref5.name, quiet = _ref5.quiet, typesToExclude = _ref5.typesToExclude, assemblyNames = _ref5.assemblyNames, prefixSize = _ref5.prefixSize;\n readStream = stream__WEBPACK_IMPORTED_MODULE_1__.Readable.from(indexFiles({\n trackConfigs: trackConfigs,\n attributes: attributes,\n outLocation: outLocation,\n quiet: quiet,\n typesToExclude: typesToExclude\n }));\n _context4.n = 1;\n return runIxIxx({\n readStream: readStream,\n outLocation: outLocation,\n name: name,\n prefixSize: prefixSize,\n quiet: quiet\n });\n case 1:\n (0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_2__.generateMeta)({\n configs: trackConfigs,\n attributesToIndex: attributes,\n outDir: outLocation,\n name: name,\n featureTypesToExclude: typesToExclude,\n assemblyNames: assemblyNames\n });\n case 2:\n return _context4.a(2);\n }\n }, _callee3);\n }));\n return _indexDriver.apply(this, arguments);\n}\nfunction prepareFileTrackConfigs(files, fileIds) {\n return files.map(function (file, i) {\n var config = (0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_2__.guessAdapterFromFileName)(file);\n if (fileIds !== null && fileIds !== void 0 && fileIds[i]) {\n config.trackId = fileIds[i];\n }\n return config;\n }).filter(function (fileConfig) {\n var _fileConfig$adapter;\n return (0,_types_common_ts__WEBPACK_IMPORTED_MODULE_8__.supported)((_fileConfig$adapter = fileConfig.adapter) === null || _fileConfig$adapter === void 0 ? void 0 : _fileConfig$adapter.type);\n });\n}\n\n//# sourceURL=webpack://@jbrowse/cli/./src/commands/text-index/indexing-utils.ts?\n}");
|
|
438
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ indexDriver: () => (/* binding */ indexDriver),\n/* harmony export */ indexFiles: () => (/* binding */ indexFiles),\n/* harmony export */ prepareFileTrackConfigs: () => (/* binding */ prepareFileTrackConfigs),\n/* harmony export */ runIxIxx: () => (/* binding */ runIxIxx)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! stream */ \"stream\");\n/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stream__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @jbrowse/text-indexing-core */ \"../../packages/text-indexing-core/src/types/common.ts\");\n/* harmony import */ var _jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @jbrowse/text-indexing-core */ \"../../packages/text-indexing-core/src/types/gff3Adapter.ts\");\n/* harmony import */ var _jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @jbrowse/text-indexing-core */ \"../../packages/text-indexing-core/src/types/vcfAdapter.ts\");\n/* harmony import */ var cli_progress__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! cli-progress */ \"../../node_modules/.pnpm/cli-progress@3.12.0/node_modules/cli-progress/cli-progress.js\");\n/* harmony import */ var cli_progress__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(cli_progress__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ixixx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ixixx */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/index.js\");\n/* harmony import */ var _adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./adapter-utils.ts */ \"./src/commands/text-index/adapter-utils.ts\");\n/* harmony import */ var _types_common_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../types/common.ts */ \"./src/types/common.ts\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorValues(e) { if (null != e) { var t = e[\"function\" == typeof Symbol && Symbol.iterator || \"@@iterator\"], r = 0; if (t) return t.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + \" is not iterable\"); }\nfunction _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i[\"return\"]) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\nfunction _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t[\"return\"] || t[\"return\"](); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction _wrapAsyncGenerator(e) { return function () { return new AsyncGenerator(e.apply(this, arguments)); }; }\nfunction AsyncGenerator(e) { var t, n; function resume(t, n) { try { var r = e[t](n), o = r.value, u = o instanceof _OverloadYield; Promise.resolve(u ? o.v : o).then(function (n) { if (u) { var i = \"return\" === t && o.k ? t : \"next\"; if (!o.k || n.done) return resume(i, n); n = e[i](n).value; } settle(!!r.done, n); }, function (e) { resume(\"throw\", e); }); } catch (e) { settle(2, e); } } function settle(e, r) { 2 === e ? t.reject(r) : t.resolve({ value: r, done: e }), (t = t.next) ? resume(t.key, t.arg) : n = null; } this._invoke = function (e, r) { return new Promise(function (o, u) { var i = { key: e, arg: r, resolve: o, reject: u, next: null }; n ? n = n.next = i : (t = n = i, resume(e, r)); }); }, \"function\" != typeof e[\"return\"] && (this[\"return\"] = void 0); }\nAsyncGenerator.prototype[\"function\" == typeof Symbol && Symbol.asyncIterator || \"@@asyncIterator\"] = function () { return this; }, AsyncGenerator.prototype.next = function (e) { return this._invoke(\"next\", e); }, AsyncGenerator.prototype[\"throw\"] = function (e) { return this._invoke(\"throw\", e); }, AsyncGenerator.prototype[\"return\"] = function (e) { return this._invoke(\"return\", e); };\nfunction _awaitAsyncGenerator(e) { return new _OverloadYield(e, 0); }\nfunction _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) { return n = !0, r = new Promise(function (n) { n(t[e](r)); }), { done: !1, value: new _OverloadYield(r, 1) }; } return e[\"undefined\" != typeof Symbol && Symbol.iterator || \"@@iterator\"] = function () { return this; }, e.next = function (t) { return n ? (n = !1, t) : pump(\"next\", t); }, \"function\" == typeof t[\"throw\"] && (e[\"throw\"] = function (t) { if (n) throw n = !1, t; return pump(\"throw\", t); }), \"function\" == typeof t[\"return\"] && (e[\"return\"] = function (t) { return n ? (n = !1, t) : pump(\"return\", t); }), e; }\nfunction _OverloadYield(e, d) { this.v = e, this.k = d; }\nfunction _asyncIterator(r) { var n, t, o, e = 2; for (\"undefined\" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = \"@@asyncIterator\", o = \"@@iterator\"; } throw new TypeError(\"Object is not async iterable\"); }\nfunction AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + \" is not an object.\")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, \"return\": function _return(r) { var n = this.s[\"return\"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, \"throw\": function _throw(r) { var n = this.s[\"return\"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }\n\n\n\n\n\n\n\nfunction runIxIxx(_x2) {\n return _runIxIxx.apply(this, arguments);\n}\nfunction _runIxIxx() {\n _runIxIxx = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {\n var readStream, outLocation, name, prefixSize, quiet, progressBar, ixPath, ixxPath;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n readStream = _ref.readStream, outLocation = _ref.outLocation, name = _ref.name, prefixSize = _ref.prefixSize, quiet = _ref.quiet;\n progressBar = new cli_progress__WEBPACK_IMPORTED_MODULE_5__.SingleBar({\n format: '{bar} Sorting and writing index...',\n etaBuffer: 2000\n }, cli_progress__WEBPACK_IMPORTED_MODULE_5__.Presets.shades_classic);\n if (!quiet) {\n progressBar.start(1, 0);\n }\n ixPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(outLocation, 'trix', \"\".concat(name, \".ix\"));\n ixxPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(outLocation, 'trix', \"\".concat(name, \".ixx\"));\n _context3.n = 1;\n return (0,ixixx__WEBPACK_IMPORTED_MODULE_6__.ixIxxStream)(readStream, ixPath, ixxPath, prefixSize);\n case 1:\n if (!quiet) {\n progressBar.update(1);\n progressBar.stop();\n }\n case 2:\n return _context3.a(2);\n }\n }, _callee2);\n }));\n return _runIxIxx.apply(this, arguments);\n}\nfunction indexFiles(_x) {\n return _indexFiles.apply(this, arguments);\n}\nfunction _indexFiles() {\n _indexFiles = _wrapAsyncGenerator(function (_ref2) {\n var trackConfigs = _ref2.trackConfigs,\n attributes = _ref2.attributes,\n outLocation = _ref2.outLocation,\n quiet = _ref2.quiet,\n typesToExclude = _ref2.typesToExclude;\n return /*#__PURE__*/_regenerator().m(function _callee() {\n var _iterator, _step, _loop, _t;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.p = _context2.n) {\n case 0:\n _iterator = _createForOfIteratorHelper(trackConfigs);\n _context2.p = 1;\n _loop = /*#__PURE__*/_regenerator().m(function _loop() {\n var config, adapter, textSearching, trackId, _ref3, type, _ref4, _ref4$indexingFeature, indexingFeatureTypesToExclude, _ref4$indexingAttribu, indexingAttributes, loc, progressBar;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n config = _step.value;\n adapter = config.adapter, textSearching = config.textSearching, trackId = config.trackId;\n _ref3 = adapter || {}, type = _ref3.type;\n _ref4 = textSearching || {}, _ref4$indexingFeature = _ref4.indexingFeatureTypesToExclude, indexingFeatureTypesToExclude = _ref4$indexingFeature === void 0 ? typesToExclude : _ref4$indexingFeature, _ref4$indexingAttribu = _ref4.indexingAttributes, indexingAttributes = _ref4$indexingAttribu === void 0 ? attributes : _ref4$indexingAttribu;\n loc = (0,_adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__.getAdapterLocation)(adapter);\n if (loc) {\n _context.n = 1;\n break;\n }\n return _context.a(2, 1);\n case 1:\n progressBar = new cli_progress__WEBPACK_IMPORTED_MODULE_5__.SingleBar({\n format: \"{bar} \".concat(trackId, \" {percentage}% | ETA: {eta}s\"),\n etaBuffer: 2000\n }, cli_progress__WEBPACK_IMPORTED_MODULE_5__.Presets.shades_classic);\n if (!(type === 'Gff3TabixAdapter' || type === 'Gff3Adapter')) {\n _context.n = 3;\n break;\n }\n return _context.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator((0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_3__.indexGff3)({\n config: config,\n attributesToIndex: indexingAttributes,\n inLocation: (0,_adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__.getLoc)(loc),\n outDir: outLocation,\n featureTypesToExclude: indexingFeatureTypesToExclude,\n onStart: function onStart(totalBytes) {\n if (!quiet) {\n progressBar.start(totalBytes, 0);\n }\n },\n onUpdate: function onUpdate(receivedBytes) {\n if (!quiet) {\n progressBar.update(receivedBytes);\n }\n }\n })), _awaitAsyncGenerator)), 2);\n case 2:\n _context.n = 4;\n break;\n case 3:\n if (!(type === 'VcfTabixAdapter' || type === 'VcfAdapter')) {\n _context.n = 4;\n break;\n }\n return _context.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator((0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_4__.indexVcf)({\n config: config,\n attributesToIndex: indexingAttributes,\n inLocation: (0,_adapter_utils_ts__WEBPACK_IMPORTED_MODULE_7__.getLoc)(loc),\n outDir: outLocation,\n onStart: function onStart(totalBytes) {\n if (!quiet) {\n progressBar.start(totalBytes, 0);\n }\n },\n onUpdate: function onUpdate(receivedBytes) {\n if (!quiet) {\n progressBar.update(receivedBytes);\n }\n }\n })), _awaitAsyncGenerator)), 4);\n case 4:\n if (!quiet) {\n progressBar.stop();\n }\n case 5:\n return _context.a(2);\n }\n }, _loop);\n });\n _iterator.s();\n case 2:\n if ((_step = _iterator.n()).done) {\n _context2.n = 5;\n break;\n }\n return _context2.d(_regeneratorValues(_loop()), 3);\n case 3:\n if (!_context2.v) {\n _context2.n = 4;\n break;\n }\n return _context2.a(3, 4);\n case 4:\n _context2.n = 2;\n break;\n case 5:\n _context2.n = 7;\n break;\n case 6:\n _context2.p = 6;\n _t = _context2.v;\n _iterator.e(_t);\n case 7:\n _context2.p = 7;\n _iterator.f();\n return _context2.f(7);\n case 8:\n return _context2.a(2);\n }\n }, _callee, null, [[1, 6, 7, 8]]);\n })();\n });\n return _indexFiles.apply(this, arguments);\n}\nfunction indexDriver(_x3) {\n return _indexDriver.apply(this, arguments);\n}\nfunction _indexDriver() {\n _indexDriver = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref5) {\n var trackConfigs, attributes, outLocation, name, quiet, typesToExclude, assemblyNames, prefixSize, readStream;\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.n) {\n case 0:\n trackConfigs = _ref5.trackConfigs, attributes = _ref5.attributes, outLocation = _ref5.outLocation, name = _ref5.name, quiet = _ref5.quiet, typesToExclude = _ref5.typesToExclude, assemblyNames = _ref5.assemblyNames, prefixSize = _ref5.prefixSize;\n readStream = stream__WEBPACK_IMPORTED_MODULE_1__.Readable.from(indexFiles({\n trackConfigs: trackConfigs,\n attributes: attributes,\n outLocation: outLocation,\n quiet: quiet,\n typesToExclude: typesToExclude\n }));\n _context4.n = 1;\n return runIxIxx({\n readStream: readStream,\n outLocation: outLocation,\n name: name,\n prefixSize: prefixSize,\n quiet: quiet\n });\n case 1:\n (0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_2__.generateMeta)({\n configs: trackConfigs,\n attributesToIndex: attributes,\n outDir: outLocation,\n name: name,\n featureTypesToExclude: typesToExclude,\n assemblyNames: assemblyNames\n });\n case 2:\n return _context4.a(2);\n }\n }, _callee3);\n }));\n return _indexDriver.apply(this, arguments);\n}\nfunction prepareFileTrackConfigs(files, fileIds) {\n return files.map(function (file, i) {\n var config = (0,_jbrowse_text_indexing_core__WEBPACK_IMPORTED_MODULE_2__.guessAdapterFromFileName)(file);\n if (fileIds !== null && fileIds !== void 0 && fileIds[i]) {\n config.trackId = fileIds[i];\n }\n return config;\n }).filter(function (fileConfig) {\n var _fileConfig$adapter;\n return (0,_types_common_ts__WEBPACK_IMPORTED_MODULE_8__.supported)((_fileConfig$adapter = fileConfig.adapter) === null || _fileConfig$adapter === void 0 ? void 0 : _fileConfig$adapter.type);\n });\n}\n\n//# sourceURL=webpack://@jbrowse/cli/./src/commands/text-index/indexing-utils.ts?\n}");
|
|
439
439
|
|
|
440
440
|
/***/ },
|
|
441
441
|
|
|
@@ -523,7 +523,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
523
523
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
524
524
|
|
|
525
525
|
"use strict";
|
|
526
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ version: () => (/* binding */ version)\n/* harmony export */ });\nvar version = '4.
|
|
526
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ version: () => (/* binding */ version)\n/* harmony export */ });\nvar version = '4.3.0';\n\n//# sourceURL=webpack://@jbrowse/cli/./src/version.ts?\n}");
|
|
527
527
|
|
|
528
528
|
/***/ },
|
|
529
529
|
|
|
@@ -1501,7 +1501,7 @@ eval("{\n\nvar implementation = __webpack_require__(/*! ./implementation */ \"..
|
|
|
1501
1501
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1502
1502
|
|
|
1503
1503
|
"use strict";
|
|
1504
|
-
eval("{\n\nvar undefined;\n\nvar $Object = __webpack_require__(/*! es-object-atoms */ \"../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js\");\n\nvar $Error = __webpack_require__(/*! es-errors */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js\");\nvar $EvalError = __webpack_require__(/*! es-errors/eval */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js\");\nvar $RangeError = __webpack_require__(/*! es-errors/range */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js\");\nvar $ReferenceError = __webpack_require__(/*! es-errors/ref */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js\");\nvar $SyntaxError = __webpack_require__(/*! es-errors/syntax */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js\");\nvar $TypeError = __webpack_require__(/*! es-errors/type */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js\");\nvar $URIError = __webpack_require__(/*! es-errors/uri */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js\");\n\nvar abs = __webpack_require__(/*! math-intrinsics/abs */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js\");\nvar floor = __webpack_require__(/*! math-intrinsics/floor */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js\");\nvar max = __webpack_require__(/*! math-intrinsics/max */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js\");\nvar min = __webpack_require__(/*! math-intrinsics/min */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js\");\nvar pow = __webpack_require__(/*! math-intrinsics/pow */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js\");\nvar round = __webpack_require__(/*! math-intrinsics/round */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js\");\nvar sign = __webpack_require__(/*! math-intrinsics/sign */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js\");\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = __webpack_require__(/*! gopd */ \"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js\");\nvar $defineProperty = __webpack_require__(/*! es-define-property */ \"../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js\");\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js\")();\n\nvar getProto = __webpack_require__(/*! get-proto */ \"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js\");\nvar $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ \"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js\");\nvar $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ \"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js\");\n\nvar $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ \"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js\");\nvar $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ \"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js\");\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': $Object,\n\t'%Object.getOwnPropertyDescriptor%': $gOPD,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\n\t'%Function.prototype.call%': $call,\n\t'%Function.prototype.apply%': $apply,\n\t'%Object.defineProperty%': $defineProperty,\n\t'%Object.getPrototypeOf%': $ObjectGPO,\n\t'%Math.abs%': abs,\n\t'%Math.floor%': floor,\n\t'%Math.max%': max,\n\t'%Math.min%': min,\n\t'%Math.pow%': pow,\n\t'%Math.round%': round,\n\t'%Math.sign%': sign,\n\t'%Reflect.getPrototypeOf%': $ReflectGPO\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\");\nvar hasOwn = __webpack_require__(/*! hasown */ \"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js\");\nvar $concat = bind.call($call, Array.prototype.concat);\nvar $spliceApply = bind.call($apply, Array.prototype.splice);\nvar $replace = bind.call($call, String.prototype.replace);\nvar $strSlice = bind.call($call, String.prototype.slice);\nvar $exec = bind.call($call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js?\n}");
|
|
1504
|
+
eval("{\n\nvar undefined;\n\nvar $Object = __webpack_require__(/*! es-object-atoms */ \"../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js\");\n\nvar $Error = __webpack_require__(/*! es-errors */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js\");\nvar $EvalError = __webpack_require__(/*! es-errors/eval */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js\");\nvar $RangeError = __webpack_require__(/*! es-errors/range */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js\");\nvar $ReferenceError = __webpack_require__(/*! es-errors/ref */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js\");\nvar $SyntaxError = __webpack_require__(/*! es-errors/syntax */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js\");\nvar $TypeError = __webpack_require__(/*! es-errors/type */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js\");\nvar $URIError = __webpack_require__(/*! es-errors/uri */ \"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js\");\n\nvar abs = __webpack_require__(/*! math-intrinsics/abs */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js\");\nvar floor = __webpack_require__(/*! math-intrinsics/floor */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js\");\nvar max = __webpack_require__(/*! math-intrinsics/max */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js\");\nvar min = __webpack_require__(/*! math-intrinsics/min */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js\");\nvar pow = __webpack_require__(/*! math-intrinsics/pow */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js\");\nvar round = __webpack_require__(/*! math-intrinsics/round */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js\");\nvar sign = __webpack_require__(/*! math-intrinsics/sign */ \"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js\");\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = __webpack_require__(/*! gopd */ \"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js\");\nvar $defineProperty = __webpack_require__(/*! es-define-property */ \"../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js\");\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js\")();\n\nvar getProto = __webpack_require__(/*! get-proto */ \"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js\");\nvar $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ \"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js\");\nvar $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ \"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js\");\n\nvar $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ \"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js\");\nvar $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ \"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js\");\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': $Object,\n\t'%Object.getOwnPropertyDescriptor%': $gOPD,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\n\t'%Function.prototype.call%': $call,\n\t'%Function.prototype.apply%': $apply,\n\t'%Object.defineProperty%': $defineProperty,\n\t'%Object.getPrototypeOf%': $ObjectGPO,\n\t'%Math.abs%': abs,\n\t'%Math.floor%': floor,\n\t'%Math.max%': max,\n\t'%Math.min%': min,\n\t'%Math.pow%': pow,\n\t'%Math.round%': round,\n\t'%Math.sign%': sign,\n\t'%Reflect.getPrototypeOf%': $ReflectGPO\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\");\nvar hasOwn = __webpack_require__(/*! hasown */ \"../../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js\");\nvar $concat = bind.call($call, Array.prototype.concat);\nvar $spliceApply = bind.call($apply, Array.prototype.splice);\nvar $replace = bind.call($call, String.prototype.replace);\nvar $strSlice = bind.call($call, String.prototype.slice);\nvar $exec = bind.call($call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js?\n}");
|
|
1505
1505
|
|
|
1506
1506
|
/***/ },
|
|
1507
1507
|
|
|
@@ -1677,14 +1677,14 @@ eval("{\n\nvar hasSymbols = __webpack_require__(/*! has-symbols/shams */ \"../..
|
|
|
1677
1677
|
|
|
1678
1678
|
/***/ },
|
|
1679
1679
|
|
|
1680
|
-
/***/ "../../node_modules/.pnpm/hasown@2.0.
|
|
1680
|
+
/***/ "../../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js"
|
|
1681
1681
|
/*!**************************************************************************!*\
|
|
1682
|
-
!*** ../../node_modules/.pnpm/hasown@2.0.
|
|
1682
|
+
!*** ../../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js ***!
|
|
1683
1683
|
\**************************************************************************/
|
|
1684
1684
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1685
1685
|
|
|
1686
1686
|
"use strict";
|
|
1687
|
-
eval("{\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = __webpack_require__(/*! function-bind */ \"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\");\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/hasown@2.0.
|
|
1687
|
+
eval("{\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = __webpack_require__(/*! function-bind */ \"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\");\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js?\n}");
|
|
1688
1688
|
|
|
1689
1689
|
/***/ },
|
|
1690
1690
|
|
|
@@ -3116,6 +3116,17 @@ module.exports = require("node:buffer");
|
|
|
3116
3116
|
|
|
3117
3117
|
/***/ },
|
|
3118
3118
|
|
|
3119
|
+
/***/ "node:child_process"
|
|
3120
|
+
/*!*************************************!*\
|
|
3121
|
+
!*** external "node:child_process" ***!
|
|
3122
|
+
\*************************************/
|
|
3123
|
+
(module) {
|
|
3124
|
+
|
|
3125
|
+
"use strict";
|
|
3126
|
+
module.exports = require("node:child_process");
|
|
3127
|
+
|
|
3128
|
+
/***/ },
|
|
3129
|
+
|
|
3119
3130
|
/***/ "node:events"
|
|
3120
3131
|
/*!******************************!*\
|
|
3121
3132
|
!*** external "node:events" ***!
|
|
@@ -3160,6 +3171,17 @@ module.exports = require("node:net");
|
|
|
3160
3171
|
|
|
3161
3172
|
/***/ },
|
|
3162
3173
|
|
|
3174
|
+
/***/ "node:os"
|
|
3175
|
+
/*!**************************!*\
|
|
3176
|
+
!*** external "node:os" ***!
|
|
3177
|
+
\**************************/
|
|
3178
|
+
(module) {
|
|
3179
|
+
|
|
3180
|
+
"use strict";
|
|
3181
|
+
module.exports = require("node:os");
|
|
3182
|
+
|
|
3183
|
+
/***/ },
|
|
3184
|
+
|
|
3163
3185
|
/***/ "node:path"
|
|
3164
3186
|
/*!****************************!*\
|
|
3165
3187
|
!*** external "node:path" ***!
|
|
@@ -3182,6 +3204,39 @@ module.exports = require("node:querystring");
|
|
|
3182
3204
|
|
|
3183
3205
|
/***/ },
|
|
3184
3206
|
|
|
3207
|
+
/***/ "node:readline"
|
|
3208
|
+
/*!********************************!*\
|
|
3209
|
+
!*** external "node:readline" ***!
|
|
3210
|
+
\********************************/
|
|
3211
|
+
(module) {
|
|
3212
|
+
|
|
3213
|
+
"use strict";
|
|
3214
|
+
module.exports = require("node:readline");
|
|
3215
|
+
|
|
3216
|
+
/***/ },
|
|
3217
|
+
|
|
3218
|
+
/***/ "node:stream"
|
|
3219
|
+
/*!******************************!*\
|
|
3220
|
+
!*** external "node:stream" ***!
|
|
3221
|
+
\******************************/
|
|
3222
|
+
(module) {
|
|
3223
|
+
|
|
3224
|
+
"use strict";
|
|
3225
|
+
module.exports = require("node:stream");
|
|
3226
|
+
|
|
3227
|
+
/***/ },
|
|
3228
|
+
|
|
3229
|
+
/***/ "node:stream/promises"
|
|
3230
|
+
/*!***************************************!*\
|
|
3231
|
+
!*** external "node:stream/promises" ***!
|
|
3232
|
+
\***************************************/
|
|
3233
|
+
(module) {
|
|
3234
|
+
|
|
3235
|
+
"use strict";
|
|
3236
|
+
module.exports = require("node:stream/promises");
|
|
3237
|
+
|
|
3238
|
+
/***/ },
|
|
3239
|
+
|
|
3185
3240
|
/***/ "node:zlib"
|
|
3186
3241
|
/*!****************************!*\
|
|
3187
3242
|
!*** external "node:zlib" ***!
|
|
@@ -3237,17 +3292,6 @@ module.exports = require("stream");
|
|
|
3237
3292
|
|
|
3238
3293
|
/***/ },
|
|
3239
3294
|
|
|
3240
|
-
/***/ "stream/promises"
|
|
3241
|
-
/*!**********************************!*\
|
|
3242
|
-
!*** external "stream/promises" ***!
|
|
3243
|
-
\**********************************/
|
|
3244
|
-
(module) {
|
|
3245
|
-
|
|
3246
|
-
"use strict";
|
|
3247
|
-
module.exports = require("stream/promises");
|
|
3248
|
-
|
|
3249
|
-
/***/ },
|
|
3250
|
-
|
|
3251
3295
|
/***/ "string_decoder"
|
|
3252
3296
|
/*!*********************************!*\
|
|
3253
3297
|
!*** external "string_decoder" ***!
|
|
@@ -3314,102 +3358,113 @@ eval("{\n\nvar possibleNames = __webpack_require__(/*! possible-typed-array-name
|
|
|
3314
3358
|
|
|
3315
3359
|
/***/ },
|
|
3316
3360
|
|
|
3317
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3361
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixInputTransform.js"
|
|
3318
3362
|
/*!*****************************************************************************************!*\
|
|
3319
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3363
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixInputTransform.js ***!
|
|
3320
3364
|
\*****************************************************************************************/
|
|
3321
3365
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3322
3366
|
|
|
3323
3367
|
"use strict";
|
|
3324
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TrixInputTransform: () => (/* binding */ TrixInputTransform)\n/* harmony export */ });\n/* harmony import */ var
|
|
3368
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TrixInputTransform: () => (/* binding */ TrixInputTransform)\n/* harmony export */ });\n/* harmony import */ var node_stream__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:stream */ \"node:stream\");\n\nclass TrixInputTransform extends node_stream__WEBPACK_IMPORTED_MODULE_0__.Transform {\n _transform(chunk, _encoding, done) {\n const parts = chunk.toString().split(/\\s+/);\n const id = parts[0];\n for (let i = 1; i < parts.length; i++) {\n this.push(`${parts[i].toLowerCase()} ${id}\\n`);\n }\n done();\n }\n}\n//# sourceMappingURL=TrixInputTransform.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixInputTransform.js?\n}");
|
|
3325
3369
|
|
|
3326
3370
|
/***/ },
|
|
3327
3371
|
|
|
3328
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3372
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixOutputTransform.js"
|
|
3329
3373
|
/*!******************************************************************************************!*\
|
|
3330
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3374
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixOutputTransform.js ***!
|
|
3331
3375
|
\******************************************************************************************/
|
|
3332
3376
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3333
3377
|
|
|
3334
3378
|
"use strict";
|
|
3335
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TrixOutputTransform: () => (/* binding */ TrixOutputTransform)\n/* harmony export */ });\n/* harmony import */ var
|
|
3379
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TrixOutputTransform: () => (/* binding */ TrixOutputTransform)\n/* harmony export */ });\n/* harmony import */ var node_stream__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:stream */ \"node:stream\");\n\nfunction elt(buff, current) {\n let result = current;\n let i = 1;\n for (const b of buff) {\n result += ` ${b},${i++}`;\n }\n return result + '\\n';\n}\nclass TrixOutputTransform extends node_stream__WEBPACK_IMPORTED_MODULE_0__.Transform {\n buff = [];\n current = '';\n _transform(chunk, _encoding, done) {\n // weird: need to strip nulls from string, xref\n // https://github.com/GMOD/jbrowse-components/pull/2451\n const line = chunk.toString().replaceAll('\\0', '');\n const spaceIdx = line.indexOf(' ');\n const id = spaceIdx === -1 ? line : line.slice(0, spaceIdx);\n const data = spaceIdx === -1 ? '' : line.slice(spaceIdx + 1);\n if (this.current !== id) {\n if (this.buff.length > 0) {\n this.push(elt(this.buff, this.current));\n this.buff = [];\n }\n this.current = id;\n }\n this.buff.push(data);\n done();\n }\n _flush(done) {\n if (this.buff.length > 0) {\n this.push(elt(this.buff, this.current));\n }\n done();\n }\n}\n//# sourceMappingURL=TrixOutputTransform.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixOutputTransform.js?\n}");
|
|
3380
|
+
|
|
3381
|
+
/***/ },
|
|
3382
|
+
|
|
3383
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/commandExists.js"
|
|
3384
|
+
/*!************************************************************************************!*\
|
|
3385
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/commandExists.js ***!
|
|
3386
|
+
\************************************************************************************/
|
|
3387
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3388
|
+
|
|
3389
|
+
"use strict";
|
|
3390
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ commandExistsSync: () => (/* binding */ commandExistsSync)\n/* harmony export */ });\n/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ \"node:fs\");\n/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ \"node:path\");\n\n\nfunction commandExistsSync(cmd) {\n const PATH = process.env.PATH ?? '';\n const isWin = process.platform === 'win32';\n const exts = isWin ? (process.env.PATHEXT ?? '').split(';') : [''];\n for (const dir of PATH.split(node_path__WEBPACK_IMPORTED_MODULE_1__.delimiter)) {\n if (dir === '') {\n continue;\n }\n for (const ext of exts) {\n try {\n node_fs__WEBPACK_IMPORTED_MODULE_0__.accessSync(node_path__WEBPACK_IMPORTED_MODULE_1__.join(dir, cmd + ext), node_fs__WEBPACK_IMPORTED_MODULE_0__.constants.X_OK);\n return true;\n }\n catch {\n // not here, keep looking\n }\n }\n }\n return false;\n}\n//# sourceMappingURL=commandExists.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/commandExists.js?\n}");
|
|
3336
3391
|
|
|
3337
3392
|
/***/ },
|
|
3338
3393
|
|
|
3339
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3394
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/externalSort.js"
|
|
3340
3395
|
/*!***********************************************************************************!*\
|
|
3341
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3396
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/externalSort.js ***!
|
|
3342
3397
|
\***********************************************************************************/
|
|
3343
3398
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3344
3399
|
|
|
3345
3400
|
"use strict";
|
|
3346
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ externalSort: () => (/* binding */ externalSort)\n/* harmony export */ });\n/* harmony import */ var
|
|
3401
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ externalSort: () => (/* binding */ externalSort)\n/* harmony export */ });\n/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ \"node:fs\");\n/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ \"node:path\");\n/* harmony import */ var node_stream__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:stream */ \"node:stream\");\n/* harmony import */ var node_stream_promises__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:stream/promises */ \"node:stream/promises\");\n/* harmony import */ var split2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! split2 */ \"../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js\");\n\n\n\n\n\nconst EOF = Symbol('EOF');\nfunction compare(a, b) {\n if (a === EOF) {\n return 1;\n }\n if (b === EOF) {\n return -1;\n }\n return a < b ? -1 : a > b ? 1 : 0;\n}\nfunction heapify(harr, i, heapSize) {\n let cur = i;\n for (;;) {\n const l = (cur << 1) + 1;\n const r = l + 1;\n let first = cur;\n if (l < heapSize && compare(harr[l].item, harr[first].item) < 0) {\n first = l;\n }\n if (r < heapSize && compare(harr[r].item, harr[first].item) < 0) {\n first = r;\n }\n if (first === cur) {\n return;\n }\n const tmp = harr[cur];\n harr[cur] = harr[first];\n harr[first] = tmp;\n cur = first;\n }\n}\nasync function nextItem(iter) {\n const r = await iter.next();\n return r.done ? EOF : r.value;\n}\nasync function initialRun(input, tempDir, maxHeap) {\n const files = [];\n const buf = [];\n let fileIndex = 0;\n const flush = async () => {\n if (buf.length === 0) {\n return;\n }\n buf.sort();\n const fpath = node_path__WEBPACK_IMPORTED_MODULE_1__.resolve(tempDir, `es_${fileIndex++}.tmp`);\n await node_fs__WEBPACK_IMPORTED_MODULE_0__.promises.writeFile(fpath, buf.join('\\n') + '\\n');\n buf.length = 0;\n files.push(fpath);\n };\n for await (const line of input.pipe(split2__WEBPACK_IMPORTED_MODULE_4__())) {\n buf.push(line);\n if (buf.length === maxHeap) {\n await flush();\n }\n }\n await flush();\n return files;\n}\nasync function* mergeIterator(filesPath) {\n const iters = filesPath.map(file => {\n const stream = node_fs__WEBPACK_IMPORTED_MODULE_0__.createReadStream(file).pipe(split2__WEBPACK_IMPORTED_MODULE_4__());\n return stream[Symbol.asyncIterator]();\n });\n const harr = [];\n for (const iter of iters) {\n harr.push({ item: await nextItem(iter), iter });\n }\n for (let i = (harr.length - 1) >> 1; i >= 0; i--) {\n heapify(harr, i, harr.length);\n }\n for (;;) {\n const first = harr[0];\n if (first.item === EOF) {\n return;\n }\n yield `${first.item}\\n`;\n first.item = await nextItem(first.iter);\n heapify(harr, 0, harr.length);\n }\n}\nasync function mergeSortedFiles(filesPath, output) {\n if (filesPath.length === 0) {\n await new Promise(resolve => {\n output.end(resolve);\n });\n return;\n }\n if (filesPath.length === 1) {\n await (0,node_stream_promises__WEBPACK_IMPORTED_MODULE_3__.pipeline)(node_fs__WEBPACK_IMPORTED_MODULE_0__.createReadStream(filesPath[0]), output);\n return;\n }\n await (0,node_stream_promises__WEBPACK_IMPORTED_MODULE_3__.pipeline)(node_stream__WEBPACK_IMPORTED_MODULE_2__.Readable.from(mergeIterator(filesPath)), output);\n}\nasync function externalSort(input, output, tempDir, maxHeap = 10_000) {\n const files = await initialRun(input, tempDir, maxHeap);\n try {\n await mergeSortedFiles(files, output);\n }\n finally {\n await Promise.all(files.map(file => node_fs__WEBPACK_IMPORTED_MODULE_0__.promises.unlink(file).catch((error) => {\n console.error(`failed to unlink temp file ${file}:`, error);\n })));\n }\n}\n//# sourceMappingURL=externalSort.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/externalSort.js?\n}");
|
|
3347
3402
|
|
|
3348
3403
|
/***/ },
|
|
3349
3404
|
|
|
3350
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3405
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/index.js"
|
|
3351
3406
|
/*!****************************************************************************!*\
|
|
3352
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3407
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/index.js ***!
|
|
3353
3408
|
\****************************************************************************/
|
|
3354
3409
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3355
3410
|
|
|
3356
3411
|
"use strict";
|
|
3357
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ixIxx: () => (/* binding */ ixIxx),\n/* harmony export */ ixIxxStream: () => (/* binding */ ixIxxStream)\n/* harmony export */ });\n/* harmony import */ var _makeIx_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./makeIx.js */ \"../../node_modules/.pnpm/ixixx@3.0.
|
|
3412
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ixIxx: () => (/* binding */ ixIxx),\n/* harmony export */ ixIxxStream: () => (/* binding */ ixIxxStream)\n/* harmony export */ });\n/* harmony import */ var _makeIx_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./makeIx.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIx.js\");\n/* harmony import */ var _makeIxx_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./makeIxx.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIxx.js\");\n\n\n// this file (index.ts) is a translation of ixIxx.c from ucscGenomeBrowser/kent\n// the license of that file is reproduced below\n/*\n * MIT License\n *\n * Copyright (C) 2001 UC Regents\n *\n * Permission is hereby granted, free of charge, to any person or non-commercial\n * entity obtaining a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including without\n * limitation the rights to use, copy, modify, merge, publish, distribute,\n * sublicense, and/or sell copies of the Software, and to permit persons to whom\n * the Software is furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nasync function ixIxx(inText, outIx, outIxx, prefixSize) {\n await (0,_makeIx_js__WEBPACK_IMPORTED_MODULE_0__.makeIx)(inText, outIx);\n await (0,_makeIxx_js__WEBPACK_IMPORTED_MODULE_1__.makeIxx)(outIx, outIxx, prefixSize);\n}\nasync function ixIxxStream(stream, outIx, outIxx, prefixSize) {\n await (0,_makeIx_js__WEBPACK_IMPORTED_MODULE_0__.makeIxStream)(stream, outIx);\n await (0,_makeIxx_js__WEBPACK_IMPORTED_MODULE_1__.makeIxx)(outIx, outIxx, prefixSize);\n}\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/index.js?\n}");
|
|
3358
3413
|
|
|
3359
3414
|
/***/ },
|
|
3360
3415
|
|
|
3361
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3416
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIx.js"
|
|
3362
3417
|
/*!*****************************************************************************!*\
|
|
3363
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3418
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIx.js ***!
|
|
3364
3419
|
\*****************************************************************************/
|
|
3365
3420
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3366
3421
|
|
|
3367
3422
|
"use strict";
|
|
3368
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ makeIx: () => (/* binding */ makeIx),\n/* harmony export */ makeIxStream: () => (/* binding */ makeIxStream)\n/* harmony export */ });\n/* harmony import */ var
|
|
3423
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ makeIx: () => (/* binding */ makeIx),\n/* harmony export */ makeIxStream: () => (/* binding */ makeIxStream)\n/* harmony export */ });\n/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ \"node:child_process\");\n/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ \"node:fs\");\n/* harmony import */ var node_stream__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:stream */ \"node:stream\");\n/* harmony import */ var node_stream_promises__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:stream/promises */ \"node:stream/promises\");\n/* harmony import */ var split2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! split2 */ \"../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js\");\n/* harmony import */ var _TrixInputTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TrixInputTransform.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixInputTransform.js\");\n/* harmony import */ var _TrixOutputTransform_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TrixOutputTransform.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/TrixOutputTransform.js\");\n/* harmony import */ var _commandExists_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commandExists.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/commandExists.js\");\n/* harmony import */ var _sortLines_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sortLines.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/sortLines.js\");\n\n\n\n\n\n\n\n\n\nconst isWin = typeof process === 'undefined' ? false : process.platform === 'win32';\nconst useExternalSort = !isWin && (0,_commandExists_js__WEBPACK_IMPORTED_MODULE_7__.commandExistsSync)('sort');\nasync function makeIxWithExternalSort(fileStream, outIxFilename) {\n const out = node_fs__WEBPACK_IMPORTED_MODULE_1__.createWriteStream(outIxFilename);\n const sort = (0,node_child_process__WEBPACK_IMPORTED_MODULE_0__.spawn)('sort', ['-k1,1'], {\n env: { ...process.env, LC_ALL: 'C' },\n });\n const sortError = new Promise((_, reject) => {\n sort.on('error', reject);\n });\n const inputDone = (0,node_stream_promises__WEBPACK_IMPORTED_MODULE_3__.pipeline)(fileStream, split2__WEBPACK_IMPORTED_MODULE_4__(), new _TrixInputTransform_js__WEBPACK_IMPORTED_MODULE_5__.TrixInputTransform(), sort.stdin);\n const outputDone = (0,node_stream_promises__WEBPACK_IMPORTED_MODULE_3__.pipeline)(sort.stdout, split2__WEBPACK_IMPORTED_MODULE_4__(), new _TrixOutputTransform_js__WEBPACK_IMPORTED_MODULE_6__.TrixOutputTransform(), out);\n await Promise.race([Promise.all([inputDone, outputDone]), sortError]);\n}\nasync function makeIxWithJsSort(fileStream, outIxFilename) {\n const out = node_fs__WEBPACK_IMPORTED_MODULE_1__.createWriteStream(outIxFilename);\n // Transform input using pipeline for proper error handling\n const transformedInput = new node_stream__WEBPACK_IMPORTED_MODULE_2__.PassThrough();\n const inputDone = (0,node_stream_promises__WEBPACK_IMPORTED_MODULE_3__.pipeline)(fileStream, split2__WEBPACK_IMPORTED_MODULE_4__(), new _TrixInputTransform_js__WEBPACK_IMPORTED_MODULE_5__.TrixInputTransform(), transformedInput);\n // Sort lines using external merge sort\n const sortedOutput = split2__WEBPACK_IMPORTED_MODULE_4__();\n const sortDone = (0,_sortLines_js__WEBPACK_IMPORTED_MODULE_8__.sortLinesExternal)(transformedInput, sortedOutput);\n // Transform sorted output and write to file\n const writeDone = (0,node_stream_promises__WEBPACK_IMPORTED_MODULE_3__.pipeline)(sortedOutput, new _TrixOutputTransform_js__WEBPACK_IMPORTED_MODULE_6__.TrixOutputTransform(), out);\n await Promise.all([inputDone, sortDone, writeDone]);\n}\nasync function makeIxStream(fileStream, outIxFilename) {\n await (useExternalSort\n ? makeIxWithExternalSort(fileStream, outIxFilename)\n : makeIxWithJsSort(fileStream, outIxFilename));\n}\nasync function makeIx(inFile, outIndex) {\n return makeIxStream(node_fs__WEBPACK_IMPORTED_MODULE_1__.createReadStream(inFile), outIndex);\n}\n//# sourceMappingURL=makeIx.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIx.js?\n}");
|
|
3369
3424
|
|
|
3370
3425
|
/***/ },
|
|
3371
3426
|
|
|
3372
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3427
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIxx.js"
|
|
3373
3428
|
/*!******************************************************************************!*\
|
|
3374
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3429
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIxx.js ***!
|
|
3375
3430
|
\******************************************************************************/
|
|
3376
3431
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3377
3432
|
|
|
3378
3433
|
"use strict";
|
|
3379
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ makeIxx: () => (/* binding */ makeIxx)\n/* harmony export */ });\n/* harmony import */ var
|
|
3434
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ makeIxx: () => (/* binding */ makeIxx)\n/* harmony export */ });\n/* harmony import */ var node_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:events */ \"node:events\");\n/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ \"node:fs\");\n/* harmony import */ var node_readline__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:readline */ \"node:readline\");\n/* harmony import */ var node_stream_promises__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:stream/promises */ \"node:stream/promises\");\n/* harmony import */ var _optimizePrefixSize_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./optimizePrefixSize.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/optimizePrefixSize.js\");\n/* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/util.js\");\n\n\n\n\n\n\nconst ADDRESS_SIZE = 10;\nasync function makeIxx(inIx, outIxx, prefixSizeParam) {\n const out = node_fs__WEBPACK_IMPORTED_MODULE_1__.createWriteStream(outIxx);\n const prefixSize = prefixSizeParam ?? (await (0,_optimizePrefixSize_js__WEBPACK_IMPORTED_MODULE_4__.optimizePrefixSize)(inIx));\n try {\n const fileStream = node_fs__WEBPACK_IMPORTED_MODULE_1__.createReadStream(inIx);\n const rl = node_readline__WEBPACK_IMPORTED_MODULE_2__.createInterface({\n input: fileStream,\n });\n let lastPrefix;\n let writtenPrefix;\n let writtenPos = -_util_js__WEBPACK_IMPORTED_MODULE_5__.binSize;\n let startPrefixPos = 0;\n let bytes = 0;\n for await (const line of rl) {\n const spaceIdx = line.indexOf(' ');\n const word = spaceIdx === -1 ? line : line.slice(0, spaceIdx);\n const curPrefix = (0,_util_js__WEBPACK_IMPORTED_MODULE_5__.getPrefix)(word, prefixSize);\n if (curPrefix !== lastPrefix) {\n startPrefixPos = bytes;\n }\n if (bytes - writtenPos >= _util_js__WEBPACK_IMPORTED_MODULE_5__.binSize && curPrefix !== writtenPrefix) {\n const res = out.write(`${curPrefix}${startPrefixPos\n .toString(16)\n .toUpperCase()\n .padStart(ADDRESS_SIZE, '0')}\\n`);\n // Handle backpressure\n // ref https://nodesource.com/blog/understanding-streams-in-nodejs/\n if (!res) {\n await (0,node_events__WEBPACK_IMPORTED_MODULE_0__.once)(out, 'drain');\n }\n writtenPos = bytes;\n writtenPrefix = curPrefix;\n }\n lastPrefix = curPrefix;\n bytes += line.length + 1;\n }\n }\n finally {\n out.end();\n await (0,node_stream_promises__WEBPACK_IMPORTED_MODULE_3__.finished)(out);\n }\n}\n//# sourceMappingURL=makeIxx.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/makeIxx.js?\n}");
|
|
3380
3435
|
|
|
3381
3436
|
/***/ },
|
|
3382
3437
|
|
|
3383
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3438
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/optimizePrefixSize.js"
|
|
3384
3439
|
/*!*****************************************************************************************!*\
|
|
3385
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3440
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/optimizePrefixSize.js ***!
|
|
3386
3441
|
\*****************************************************************************************/
|
|
3387
3442
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3388
3443
|
|
|
3389
3444
|
"use strict";
|
|
3390
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ optimizePrefixSize: () => (/* binding */ optimizePrefixSize)\n/* harmony export */ });\n/* harmony import */ var
|
|
3445
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ optimizePrefixSize: () => (/* binding */ optimizePrefixSize)\n/* harmony export */ });\n/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ \"node:fs\");\n/* harmony import */ var node_readline__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:readline */ \"node:readline\");\n/* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/util.js\");\n\n\n\nfunction createStats() {\n return {\n lastPrefix: '',\n writtenPrefix: '',\n writtenPos: -_util_js__WEBPACK_IMPORTED_MODULE_2__.binSize,\n startPrefixPos: 0,\n lastBin: 0,\n binSizeTotal: 0,\n binCount: 0,\n maxBinSize: 0,\n };\n}\nfunction meetsHeuristics(s, totalBytes) {\n // some heuristics. note: binSizeTotal===0 means everything was lumped into\n // one bin\n if (s.binSizeTotal === 0 && totalBytes > _util_js__WEBPACK_IMPORTED_MODULE_2__.binSize) {\n return false;\n }\n if (s.binCount > 0) {\n const avgBinSize = s.binSizeTotal / s.binCount;\n if (avgBinSize > 3 * _util_js__WEBPACK_IMPORTED_MODULE_2__.binSize || s.maxBinSize > 10 * _util_js__WEBPACK_IMPORTED_MODULE_2__.binSize) {\n return false;\n }\n }\n return true;\n}\nconst MIN_PREFIX = 5;\nconst MAX_PREFIX = 40;\nasync function optimizePrefixSize(inIx) {\n const fileStream = node_fs__WEBPACK_IMPORTED_MODULE_0__.createReadStream(inIx);\n const rl = node_readline__WEBPACK_IMPORTED_MODULE_1__.createInterface({\n input: fileStream,\n });\n // Track stats for all prefix sizes in a single pass\n const stats = [];\n for (let i = 0; i < MAX_PREFIX - MIN_PREFIX; i++) {\n stats.push(createStats());\n }\n let bytes = 0;\n for await (const line of rl) {\n // Use indexOf instead of regex split for performance\n const spaceIdx = line.indexOf(' ');\n const word = spaceIdx === -1 ? line : line.slice(0, spaceIdx);\n for (const [i, s] of stats.entries()) {\n const prefixSize = MIN_PREFIX + i;\n const curPrefix = (0,_util_js__WEBPACK_IMPORTED_MODULE_2__.getPrefix)(word, prefixSize);\n if (curPrefix !== s.lastPrefix) {\n s.startPrefixPos = bytes;\n }\n if (bytes - s.writtenPos >= _util_js__WEBPACK_IMPORTED_MODULE_2__.binSize && curPrefix !== s.writtenPrefix) {\n const currentBinSize = s.startPrefixPos - s.lastBin;\n s.binSizeTotal += currentBinSize;\n s.maxBinSize = Math.max(currentBinSize, s.maxBinSize);\n s.binCount++;\n s.lastBin = s.startPrefixPos;\n s.writtenPos = bytes;\n s.writtenPrefix = curPrefix;\n }\n s.lastPrefix = curPrefix;\n }\n bytes += line.length + 1;\n }\n // Find first prefix size that meets heuristics\n for (const [i, s] of stats.entries()) {\n if (meetsHeuristics(s, bytes)) {\n return MIN_PREFIX + i;\n }\n }\n return MAX_PREFIX;\n}\n//# sourceMappingURL=optimizePrefixSize.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/optimizePrefixSize.js?\n}");
|
|
3391
3446
|
|
|
3392
3447
|
/***/ },
|
|
3393
3448
|
|
|
3394
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3449
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/sortLines.js"
|
|
3395
3450
|
/*!********************************************************************************!*\
|
|
3396
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3451
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/sortLines.js ***!
|
|
3397
3452
|
\********************************************************************************/
|
|
3398
3453
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3399
3454
|
|
|
3400
3455
|
"use strict";
|
|
3401
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ sortLinesExternal: () => (/* binding */ sortLinesExternal)\n/* harmony export */ });\n/* harmony import */ var
|
|
3456
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ sortLinesExternal: () => (/* binding */ sortLinesExternal)\n/* harmony export */ });\n/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ \"node:fs\");\n/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:os */ \"node:os\");\n/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:path */ \"node:path\");\n/* harmony import */ var _externalSort_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./externalSort.js */ \"../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/externalSort.js\");\n\n\n\n\nasync function sortLinesExternal(input, output, tempDir) {\n const created = tempDir === undefined;\n const dir = tempDir ?? node_fs__WEBPACK_IMPORTED_MODULE_0__.mkdtempSync(node_path__WEBPACK_IMPORTED_MODULE_2__.join(node_os__WEBPACK_IMPORTED_MODULE_1__.tmpdir(), 'ixixx-sort-'));\n try {\n await (0,_externalSort_js__WEBPACK_IMPORTED_MODULE_3__.externalSort)(input, output, dir, 10_000);\n }\n finally {\n if (created) {\n await node_fs__WEBPACK_IMPORTED_MODULE_0__.promises.rm(dir, { recursive: true, force: true });\n }\n }\n}\n//# sourceMappingURL=sortLines.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/sortLines.js?\n}");
|
|
3402
3457
|
|
|
3403
3458
|
/***/ },
|
|
3404
3459
|
|
|
3405
|
-
/***/ "../../node_modules/.pnpm/ixixx@3.0.
|
|
3460
|
+
/***/ "../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/util.js"
|
|
3406
3461
|
/*!***************************************************************************!*\
|
|
3407
|
-
!*** ../../node_modules/.pnpm/ixixx@3.0.
|
|
3462
|
+
!*** ../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/util.js ***!
|
|
3408
3463
|
\***************************************************************************/
|
|
3409
3464
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3410
3465
|
|
|
3411
3466
|
"use strict";
|
|
3412
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ binSize: () => (/* binding */ binSize),\n/* harmony export */ getPrefix: () => (/* binding */ getPrefix)\n/* harmony export */ });\nconst binSize = 64 * 1024; //64kb\nfunction getPrefix(word, prefixSize) {\n return word.slice(0, prefixSize).padEnd(prefixSize, ' ');\n}\n//# sourceMappingURL=util.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.
|
|
3467
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ binSize: () => (/* binding */ binSize),\n/* harmony export */ getPrefix: () => (/* binding */ getPrefix)\n/* harmony export */ });\nconst binSize = 64 * 1024; //64kb\nfunction getPrefix(word, prefixSize) {\n return word.slice(0, prefixSize).padEnd(prefixSize, ' ');\n}\n//# sourceMappingURL=util.js.map\n\n//# sourceURL=webpack://@jbrowse/cli/../../node_modules/.pnpm/ixixx@3.0.5/node_modules/ixixx/esm/util.js?\n}");
|
|
3413
3468
|
|
|
3414
3469
|
/***/ },
|
|
3415
3470
|
|
|
@@ -16,7 +16,7 @@ export function makeLocationProtocol(protocol) {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
export function guessFileNames({ location, index, bed1, bed2, }) {
|
|
19
|
-
if (/\.anchors(
|
|
19
|
+
if (/\.anchors(\.simple)?$/i.test(location)) {
|
|
20
20
|
return {
|
|
21
21
|
file: location,
|
|
22
22
|
bed1: bed1,
|
|
@@ -38,6 +38,7 @@ export function guessFileNames({ location, index, bed1, bed2, }) {
|
|
|
38
38
|
else if (/\.gff3?\.b?gz$/i.test(location) ||
|
|
39
39
|
/\.vcf\.b?gz$/i.test(location) ||
|
|
40
40
|
/\.bed\.b?gz$/i.test(location) ||
|
|
41
|
+
/\.bedmethyl\.gz$/i.test(location) ||
|
|
41
42
|
/\.pif\.b?gz$/i.test(location)) {
|
|
42
43
|
return {
|
|
43
44
|
file: location,
|
|
@@ -64,11 +65,11 @@ export function guessFileNames({ location, index, bed1, bed2, }) {
|
|
|
64
65
|
/\.out(\.gz)?$/i.test(location) ||
|
|
65
66
|
/\.paf(\.gz)?$/i.test(location) ||
|
|
66
67
|
/\.delta(\.gz)?$/i.test(location) ||
|
|
67
|
-
/\.bed
|
|
68
|
+
/\.bed$/i.test(location) ||
|
|
68
69
|
/\.(bw|bigwig)$/i.test(location) ||
|
|
69
70
|
/\.(bb|bigbed)$/i.test(location) ||
|
|
70
71
|
/\.vcf$/i.test(location) ||
|
|
71
|
-
/\.gtf
|
|
72
|
+
/\.gtf$/i.test(location) ||
|
|
72
73
|
/\.gff3?$/i.test(location) ||
|
|
73
74
|
/\.chain(\.gz)?$/i.test(location) ||
|
|
74
75
|
/\.hic$/i.test(location)) {
|
|
@@ -113,7 +114,7 @@ export function guessAdapter({ location, protocol, index, bed1, bed2, }) {
|
|
|
113
114
|
},
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
|
-
else if (/\.gtf
|
|
117
|
+
else if (/\.gtf$/i.test(location)) {
|
|
117
118
|
return {
|
|
118
119
|
type: 'GtfAdapter',
|
|
119
120
|
gtfLocation: makeLocation(location),
|
|
@@ -162,7 +163,8 @@ export function guessAdapter({ location, protocol, index, bed1, bed2, }) {
|
|
|
162
163
|
},
|
|
163
164
|
};
|
|
164
165
|
}
|
|
165
|
-
else if (/\.
|
|
166
|
+
else if (/\.bedmethyl\.gz$/i.test(location) ||
|
|
167
|
+
/\.bed\.b?gz$/i.test(location)) {
|
|
166
168
|
return {
|
|
167
169
|
type: 'BedTabixAdapter',
|
|
168
170
|
bedGzLocation: makeLocation(location),
|
|
@@ -252,7 +254,7 @@ export function guessAdapter({ location, protocol, index, bed1, bed2, }) {
|
|
|
252
254
|
deltaLocation: makeLocation(location),
|
|
253
255
|
};
|
|
254
256
|
}
|
|
255
|
-
else if (/\.anchors(
|
|
257
|
+
else if (/\.anchors(\.gz)?$/i.test(location)) {
|
|
256
258
|
return {
|
|
257
259
|
type: 'MCScanAnchorsAdapter',
|
|
258
260
|
mcscanAnchorsLocation: makeLocation(location),
|
|
@@ -260,7 +262,7 @@ export function guessAdapter({ location, protocol, index, bed1, bed2, }) {
|
|
|
260
262
|
bed2Location: bed2 ? makeLocation(bed2) : undefined,
|
|
261
263
|
};
|
|
262
264
|
}
|
|
263
|
-
else if (/\.anchors
|
|
265
|
+
else if (/\.anchors\.simple(\.gz)?$/i.test(location)) {
|
|
264
266
|
return {
|
|
265
267
|
type: 'MCScanSimpleAnchorsAdapter',
|
|
266
268
|
mcscanSimpleAnchorsLocation: makeLocation(location),
|
|
@@ -277,12 +279,15 @@ export const adapterTypesToTrackTypeMap = {
|
|
|
277
279
|
CramAdapter: 'AlignmentsTrack',
|
|
278
280
|
BgzipFastaAdapter: 'ReferenceSequenceTrack',
|
|
279
281
|
BigWigAdapter: 'QuantitativeTrack',
|
|
282
|
+
BedGraphAdapter: 'QuantitativeTrack',
|
|
283
|
+
BedGraphTabixAdapter: 'QuantitativeTrack',
|
|
280
284
|
IndexedFastaAdapter: 'ReferenceSequenceTrack',
|
|
281
285
|
TwoBitAdapter: 'ReferenceSequenceTrack',
|
|
282
286
|
VcfTabixAdapter: 'VariantTrack',
|
|
283
287
|
VcfAdapter: 'VariantTrack',
|
|
284
288
|
BedpeAdapter: 'VariantTrack',
|
|
285
289
|
BedAdapter: 'FeatureTrack',
|
|
290
|
+
BedTabixAdapter: 'FeatureTrack',
|
|
286
291
|
HicAdapter: 'HicTrack',
|
|
287
292
|
PAFAdapter: 'SyntenyTrack',
|
|
288
293
|
DeltaAdapter: 'SyntenyTrack',
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.3.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A command line tool for working with JBrowse 2",
|
|
6
6
|
"keywords": [
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"cors": "^2.8.6",
|
|
35
35
|
"decompress": "^4.2.1",
|
|
36
36
|
"express": "^5.2.1",
|
|
37
|
-
"ixixx": "^3.0.
|
|
37
|
+
"ixixx": "^3.0.4",
|
|
38
38
|
"json-parse-better-errors": "^1.0.2",
|
|
39
39
|
"tmp": "^0.2.5",
|
|
40
|
-
"@jbrowse/text-indexing-core": "^4.
|
|
40
|
+
"@jbrowse/text-indexing-core": "^4.3.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|