notebook 7.3.2__py3-none-any.whl → 7.3.3__py3-none-any.whl
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.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/static/{131.ae628045345ebd7a085c.js → 131.c84ccc55b083d2f63eb5.js} +31 -22
- notebook/static/131.c84ccc55b083d2f63eb5.js.map +1 -0
- notebook/static/{1326.9297038a97bfe38e02c5.js → 1326.ca053a9d8b69ac8e5d07.js} +2 -2
- notebook/static/{1326.9297038a97bfe38e02c5.js.map → 1326.ca053a9d8b69ac8e5d07.js.map} +1 -1
- notebook/static/{1650.8d7f95fed9378b01c97b.js → 1650.9ab35c6f8bc364d9c496.js} +4 -4
- notebook/static/{1650.8d7f95fed9378b01c97b.js.map → 1650.9ab35c6f8bc364d9c496.js.map} +1 -1
- notebook/static/{1684.17fc47c7fb30c0a8e713.js → 1684.181d3587b40531824b89.js} +5 -5
- notebook/static/{1684.17fc47c7fb30c0a8e713.js.map → 1684.181d3587b40531824b89.js.map} +1 -1
- notebook/static/{1871.29951b77779d94d726d1.js → 1871.bbb388c6015b8490c010.js} +4 -4
- notebook/static/{1871.29951b77779d94d726d1.js.map → 1871.bbb388c6015b8490c010.js.map} +1 -1
- notebook/static/{3146.0525c8e3f0097710544e.js → 3146.5a2c9c57f0ee140a9853.js} +3 -3
- notebook/static/{3146.0525c8e3f0097710544e.js.map → 3146.5a2c9c57f0ee140a9853.js.map} +1 -1
- notebook/static/{3488.405b2a619b7b87fc6f6b.js → 3488.4950efa0e3d80a841f23.js} +2 -2
- notebook/static/3488.4950efa0e3d80a841f23.js.map +1 -0
- notebook/static/{3768.409eda0ebb4676a30596.js → 3768.879ec647cb9a279eb309.js} +19 -19
- notebook/static/{7302.8dfb32b083b16efa038a.js.map → 3768.879ec647cb9a279eb309.js.map} +1 -1
- notebook/static/{4382.c3425ddaa226b75d1b57.js → 4382.11fbce1b6420d8976505.js} +3 -3
- notebook/static/{4382.c3425ddaa226b75d1b57.js.map → 4382.11fbce1b6420d8976505.js.map} +1 -1
- notebook/static/{4499.69ddcc73939e5bacc11c.js → 4499.e80329d16895102bbc12.js} +3 -3
- notebook/static/{4499.69ddcc73939e5bacc11c.js.map → 4499.e80329d16895102bbc12.js.map} +1 -1
- notebook/static/{4630.64ab2753f3286b5a778b.js → 4630.dd26ad6c2189ab26297a.js} +3 -3
- notebook/static/4630.dd26ad6c2189ab26297a.js.map +1 -0
- notebook/static/{4645.41cffc0184b6538b7e00.js → 4645.777b918de2a09b7b9a9b.js} +5 -5
- notebook/static/{4645.41cffc0184b6538b7e00.js.map → 4645.777b918de2a09b7b9a9b.js.map} +1 -1
- notebook/static/{4837.0e774b52bbcd51546b55.js → 4837.84a75547bf8a4a8e3759.js} +3 -3
- notebook/static/{4837.0e774b52bbcd51546b55.js.map → 4837.84a75547bf8a4a8e3759.js.map} +1 -1
- notebook/static/{4926.70b91208fd35ee838d65.js → 4926.c68927936b855fd893c5.js} +3 -3
- notebook/static/{4926.70b91208fd35ee838d65.js.map → 4926.c68927936b855fd893c5.js.map} +1 -1
- notebook/static/{5135.398f538011f4562d1fae.js → 5135.c7a9f8d53984219aba23.js} +11 -11
- notebook/static/{5135.398f538011f4562d1fae.js.map → 5135.c7a9f8d53984219aba23.js.map} +1 -1
- notebook/static/5448.a9016133a2b9389ac102.js +951 -0
- notebook/static/5448.a9016133a2b9389ac102.js.map +1 -0
- notebook/static/{5573.fadd0e2001b2575ccb0f.js → 5573.91bd2c782927c770f734.js} +18 -18
- notebook/static/5573.91bd2c782927c770f734.js.map +1 -0
- notebook/static/{5601.3e30eb7d151dda3b25ed.js → 5601.8f8d6c0ace5f7e929f35.js} +5 -5
- notebook/static/{5601.3e30eb7d151dda3b25ed.js.map → 5601.8f8d6c0ace5f7e929f35.js.map} +1 -1
- notebook/static/{6345.351e07d7802b67cb9d25.js → 6345.fa1f3ac32febb56fd8b9.js} +5 -5
- notebook/static/{6345.351e07d7802b67cb9d25.js.map → 6345.fa1f3ac32febb56fd8b9.js.map} +1 -1
- notebook/static/{7154.1ab03d07151bbd0aad06.js → 7154.cbe00782c73879782ae7.js} +5 -5
- notebook/static/{7154.1ab03d07151bbd0aad06.js.map → 7154.cbe00782c73879782ae7.js.map} +1 -1
- notebook/static/{7302.8dfb32b083b16efa038a.js → 7302.cbe9c1f18fe1a9d3a129.js} +19 -19
- notebook/static/{3768.409eda0ebb4676a30596.js.map → 7302.cbe9c1f18fe1a9d3a129.js.map} +1 -1
- notebook/static/{7369.286a75761c308381b0a4.js → 7369.8768f287c1cf1cc37db0.js} +25 -25
- notebook/static/{7369.286a75761c308381b0a4.js.map → 7369.8768f287c1cf1cc37db0.js.map} +1 -1
- notebook/static/{5157.325614b1326d23735fbe.js → 7534.e6ec4e7bd41255482e3e.js} +2 -2
- notebook/static/{5157.325614b1326d23735fbe.js.map → 7534.e6ec4e7bd41255482e3e.js.map} +1 -1
- notebook/static/{755.3d6eb3b7f81d035f52f4.js → 755.86950c1067a75cbbe902.js} +4 -4
- notebook/static/{755.3d6eb3b7f81d035f52f4.js.map → 755.86950c1067a75cbbe902.js.map} +1 -1
- notebook/static/{757.c9635937c6883f4b69fe.js → 757.86f80ac05f38c4f4be68.js} +97 -814
- notebook/static/757.86f80ac05f38c4f4be68.js.map +1 -0
- notebook/static/{7811.fa11577c84ea92d4102c.js → 7811.15b37088e4868dee449b.js} +5 -5
- notebook/static/{7811.fa11577c84ea92d4102c.js.map → 7811.15b37088e4868dee449b.js.map} +1 -1
- notebook/static/{7906.67e8d86ba7ed95cbac87.js → 7906.6b836133253dc69ada3b.js} +3 -3
- notebook/static/{7906.67e8d86ba7ed95cbac87.js.map → 7906.6b836133253dc69ada3b.js.map} +1 -1
- notebook/static/{7995.45be6443b704da1daafc.js → 7995.e6c73e8581b7790a84e7.js} +2 -2
- notebook/static/{7995.45be6443b704da1daafc.js.map → 7995.e6c73e8581b7790a84e7.js.map} +1 -1
- notebook/static/{6033.e5f43eeda4cc803965de.js → 8384.4a19822f320fec925f9b.js} +2 -2
- notebook/static/{6033.e5f43eeda4cc803965de.js.map → 8384.4a19822f320fec925f9b.js.map} +1 -1
- notebook/static/{8579.d7fc77346371c454ec00.js → 8579.b99b947f4531351037b0.js} +13 -13
- notebook/static/{8579.d7fc77346371c454ec00.js.map → 8579.b99b947f4531351037b0.js.map} +1 -1
- notebook/static/{8781.f58f42a24da8ac99623f.js → 8781.b7c620b7ec3a9833df1c.js} +58 -58
- notebook/static/{8781.f58f42a24da8ac99623f.js.map → 8781.b7c620b7ec3a9833df1c.js.map} +1 -1
- notebook/static/{8845.ac1c5acb78cea4acee08.js → 8845.4f41e164a0399572ddec.js} +14 -14
- notebook/static/{8845.ac1c5acb78cea4acee08.js.map → 8845.4f41e164a0399572ddec.js.map} +1 -1
- notebook/static/{8875.576e3c6503ecdf5c2124.js → 8875.934ae30259f7ed06908f.js} +4 -4
- notebook/static/{8875.576e3c6503ecdf5c2124.js.map → 8875.934ae30259f7ed06908f.js.map} +1 -1
- notebook/static/{9068.cb72a595212d6ed7de5e.js → 9068.a1663e3fbe550c0a2151.js} +3 -3
- notebook/static/{9068.cb72a595212d6ed7de5e.js.map → 9068.a1663e3fbe550c0a2151.js.map} +1 -1
- notebook/static/{9380.709f3e6308fc49ccb353.js → 9380.438b50b596a131ebbe9a.js} +5 -5
- notebook/static/{9380.709f3e6308fc49ccb353.js.map → 9380.438b50b596a131ebbe9a.js.map} +1 -1
- notebook/static/{9619.6f4ade981540ff20b8bd.js → 9619.82b5a1c798e28d4c26c5.js} +5 -5
- notebook/static/{9619.6f4ade981540ff20b8bd.js.map → 9619.82b5a1c798e28d4c26c5.js.map} +1 -1
- notebook/static/main.fa530803fa8c046b1a88.js +1174 -0
- notebook/static/main.fa530803fa8c046b1a88.js.map +1 -0
- notebook/static/{notebook_core.4799ce7e762b693682b6.js → notebook_core.c9e3f27c4be739a57674.js} +1073 -891
- notebook/static/{notebook_core.4799ce7e762b693682b6.js.map → notebook_core.c9e3f27c4be739a57674.js.map} +1 -1
- notebook/static/third-party-licenses.json +110 -122
- notebook/templates/consoles.html +1 -1
- notebook/templates/edit.html +1 -1
- notebook/templates/error.html +1 -1
- notebook/templates/notebooks.html +1 -1
- notebook/templates/terminals.html +1 -1
- notebook/templates/tree.html +1 -1
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +14 -14
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +4 -4
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +9 -9
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +15 -15
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +11 -11
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +10 -10
- notebook-7.3.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/926.1e1698d53d81bf49c4ad.js → notebook-7.3.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/157.2df91472e02c447c6341.js +1 -1
- notebook-7.3.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.89eee0979a49b375da20.js +1 -0
- notebook-7.3.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.a483ccd28c27e3c44bf4.js +1 -0
- notebook-7.3.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.c48a681bb3e8043bbbd7.js → notebook-7.3.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +1 -1
- notebook-7.3.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.1721422919ae05a29840.js +1 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.3.2.dist-info → notebook-7.3.3.dist-info}/METADATA +2 -2
- {notebook-7.3.2.dist-info → notebook-7.3.3.dist-info}/RECORD +122 -122
- notebook/static/131.ae628045345ebd7a085c.js.map +0 -1
- notebook/static/3488.405b2a619b7b87fc6f6b.js.map +0 -1
- notebook/static/4630.64ab2753f3286b5a778b.js.map +0 -1
- notebook/static/5573.fadd0e2001b2575ccb0f.js.map +0 -1
- notebook/static/757.c9635937c6883f4b69fe.js.map +0 -1
- notebook/static/7796.ea7106c833e81e2e6a6d.js +0 -1608
- notebook/static/7796.ea7106c833e81e2e6a6d.js.map +0 -1
- notebook/static/main.407246dd27aed8010549.js +0 -1174
- notebook/static/main.407246dd27aed8010549.js.map +0 -1
- notebook-7.3.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.f1a870f262b5e8588c75.js +0 -1
- notebook-7.3.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.7261ac56728710cbd7f2.js +0 -1
- notebook-7.3.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.cad89c571bc2aee4aff2.js +0 -1
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/full-width-notebook.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.3.2.data → notebook-7.3.3.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.3.2.dist-info → notebook-7.3.3.dist-info}/WHEEL +0 -0
- {notebook-7.3.2.dist-info → notebook-7.3.3.dist-info}/entry_points.txt +0 -0
- {notebook-7.3.2.dist-info → notebook-7.3.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -350,6 +350,8 @@ const Range = __webpack_require__(87374)
|
|
|
350
350
|
/***/ 87374:
|
|
351
351
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
352
352
|
|
|
353
|
+
const SPACE_CHARACTERS = /\s+/g
|
|
354
|
+
|
|
353
355
|
// hoisted class for cyclic dependency
|
|
354
356
|
class Range {
|
|
355
357
|
constructor (range, options) {
|
|
@@ -370,7 +372,7 @@ class Range {
|
|
|
370
372
|
// just put it in the set and return
|
|
371
373
|
this.raw = range.value
|
|
372
374
|
this.set = [[range]]
|
|
373
|
-
this.
|
|
375
|
+
this.formatted = undefined
|
|
374
376
|
return this
|
|
375
377
|
}
|
|
376
378
|
|
|
@@ -381,10 +383,7 @@ class Range {
|
|
|
381
383
|
// First reduce all whitespace as much as possible so we do not have to rely
|
|
382
384
|
// on potentially slow regexes like \s*. This is then stored and used for
|
|
383
385
|
// future error messages as well.
|
|
384
|
-
this.raw = range
|
|
385
|
-
.trim()
|
|
386
|
-
.split(/\s+/)
|
|
387
|
-
.join(' ')
|
|
386
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')
|
|
388
387
|
|
|
389
388
|
// First, split on ||
|
|
390
389
|
this.set = this.raw
|
|
@@ -418,14 +417,29 @@ class Range {
|
|
|
418
417
|
}
|
|
419
418
|
}
|
|
420
419
|
|
|
421
|
-
this.
|
|
420
|
+
this.formatted = undefined
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
get range () {
|
|
424
|
+
if (this.formatted === undefined) {
|
|
425
|
+
this.formatted = ''
|
|
426
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
427
|
+
if (i > 0) {
|
|
428
|
+
this.formatted += '||'
|
|
429
|
+
}
|
|
430
|
+
const comps = this.set[i]
|
|
431
|
+
for (let k = 0; k < comps.length; k++) {
|
|
432
|
+
if (k > 0) {
|
|
433
|
+
this.formatted += ' '
|
|
434
|
+
}
|
|
435
|
+
this.formatted += comps[k].toString().trim()
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return this.formatted
|
|
422
440
|
}
|
|
423
441
|
|
|
424
442
|
format () {
|
|
425
|
-
this.range = this.set
|
|
426
|
-
.map((comps) => comps.join(' ').trim())
|
|
427
|
-
.join('||')
|
|
428
|
-
.trim()
|
|
429
443
|
return this.range
|
|
430
444
|
}
|
|
431
445
|
|
|
@@ -550,8 +564,8 @@ class Range {
|
|
|
550
564
|
|
|
551
565
|
module.exports = Range
|
|
552
566
|
|
|
553
|
-
const LRU = __webpack_require__(
|
|
554
|
-
const cache = new LRU(
|
|
567
|
+
const LRU = __webpack_require__(40203)
|
|
568
|
+
const cache = new LRU()
|
|
555
569
|
|
|
556
570
|
const parseOptions = __webpack_require__(48716)
|
|
557
571
|
const Comparator = __webpack_require__(43134)
|
|
@@ -822,9 +836,10 @@ const replaceGTE0 = (comp, options) => {
|
|
|
822
836
|
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
|
|
823
837
|
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
|
|
824
838
|
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
|
|
839
|
+
// TODO build?
|
|
825
840
|
const hyphenReplace = incPr => ($0,
|
|
826
841
|
from, fM, fm, fp, fpr, fb,
|
|
827
|
-
to, tM, tm, tp, tpr
|
|
842
|
+
to, tM, tm, tp, tpr) => {
|
|
828
843
|
if (isX(fM)) {
|
|
829
844
|
from = ''
|
|
830
845
|
} else if (isX(fm)) {
|
|
@@ -1056,7 +1071,7 @@ class SemVer {
|
|
|
1056
1071
|
do {
|
|
1057
1072
|
const a = this.build[i]
|
|
1058
1073
|
const b = other.build[i]
|
|
1059
|
-
debug('
|
|
1074
|
+
debug('build compare', i, a, b)
|
|
1060
1075
|
if (a === undefined && b === undefined) {
|
|
1061
1076
|
return 0
|
|
1062
1077
|
} else if (b === undefined) {
|
|
@@ -1298,35 +1313,43 @@ const coerce = (version, options) => {
|
|
|
1298
1313
|
|
|
1299
1314
|
let match = null
|
|
1300
1315
|
if (!options.rtl) {
|
|
1301
|
-
match = version.match(re[t.COERCE])
|
|
1316
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])
|
|
1302
1317
|
} else {
|
|
1303
1318
|
// Find the right-most coercible string that does not share
|
|
1304
1319
|
// a terminus with a more left-ward coercible string.
|
|
1305
1320
|
// Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
|
|
1321
|
+
// With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'
|
|
1306
1322
|
//
|
|
1307
1323
|
// Walk through the string checking with a /g regexp
|
|
1308
1324
|
// Manually set the index so as to pick up overlapping matches.
|
|
1309
1325
|
// Stop when we get a match that ends at the string end, since no
|
|
1310
1326
|
// coercible string can be more right-ward without the same terminus.
|
|
1327
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]
|
|
1311
1328
|
let next
|
|
1312
|
-
while ((next =
|
|
1329
|
+
while ((next = coerceRtlRegex.exec(version)) &&
|
|
1313
1330
|
(!match || match.index + match[0].length !== version.length)
|
|
1314
1331
|
) {
|
|
1315
1332
|
if (!match ||
|
|
1316
1333
|
next.index + next[0].length !== match.index + match[0].length) {
|
|
1317
1334
|
match = next
|
|
1318
1335
|
}
|
|
1319
|
-
|
|
1336
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length
|
|
1320
1337
|
}
|
|
1321
1338
|
// leave it in a clean state
|
|
1322
|
-
|
|
1339
|
+
coerceRtlRegex.lastIndex = -1
|
|
1323
1340
|
}
|
|
1324
1341
|
|
|
1325
1342
|
if (match === null) {
|
|
1326
1343
|
return null
|
|
1327
1344
|
}
|
|
1328
1345
|
|
|
1329
|
-
|
|
1346
|
+
const major = match[2]
|
|
1347
|
+
const minor = match[3] || '0'
|
|
1348
|
+
const patch = match[4] || '0'
|
|
1349
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''
|
|
1350
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''
|
|
1351
|
+
|
|
1352
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)
|
|
1330
1353
|
}
|
|
1331
1354
|
module.exports = coerce
|
|
1332
1355
|
|
|
@@ -1836,6 +1859,53 @@ module.exports = {
|
|
|
1836
1859
|
}
|
|
1837
1860
|
|
|
1838
1861
|
|
|
1862
|
+
/***/ }),
|
|
1863
|
+
|
|
1864
|
+
/***/ 40203:
|
|
1865
|
+
/***/ ((module) => {
|
|
1866
|
+
|
|
1867
|
+
class LRUCache {
|
|
1868
|
+
constructor () {
|
|
1869
|
+
this.max = 1000
|
|
1870
|
+
this.map = new Map()
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
get (key) {
|
|
1874
|
+
const value = this.map.get(key)
|
|
1875
|
+
if (value === undefined) {
|
|
1876
|
+
return undefined
|
|
1877
|
+
} else {
|
|
1878
|
+
// Remove the key from the map and add it to the end
|
|
1879
|
+
this.map.delete(key)
|
|
1880
|
+
this.map.set(key, value)
|
|
1881
|
+
return value
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
delete (key) {
|
|
1886
|
+
return this.map.delete(key)
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
set (key, value) {
|
|
1890
|
+
const deleted = this.delete(key)
|
|
1891
|
+
|
|
1892
|
+
if (!deleted && value !== undefined) {
|
|
1893
|
+
// If cache is full, delete the least recently used item
|
|
1894
|
+
if (this.map.size >= this.max) {
|
|
1895
|
+
const firstKey = this.map.keys().next().value
|
|
1896
|
+
this.delete(firstKey)
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
this.map.set(key, value)
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
return this
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
module.exports = LRUCache
|
|
1907
|
+
|
|
1908
|
+
|
|
1839
1909
|
/***/ }),
|
|
1840
1910
|
|
|
1841
1911
|
/***/ 48716:
|
|
@@ -2019,12 +2089,17 @@ createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`)
|
|
|
2019
2089
|
|
|
2020
2090
|
// Coercion.
|
|
2021
2091
|
// Extract anything that could conceivably be a part of a valid semver
|
|
2022
|
-
createToken('
|
|
2092
|
+
createToken('COERCEPLAIN', `${'(^|[^\\d])' +
|
|
2023
2093
|
'(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
|
|
2024
2094
|
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
|
|
2025
|
-
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`
|
|
2095
|
+
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)
|
|
2096
|
+
createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`)
|
|
2097
|
+
createToken('COERCEFULL', src[t.COERCEPLAIN] +
|
|
2098
|
+
`(?:${src[t.PRERELEASE]})?` +
|
|
2099
|
+
`(?:${src[t.BUILD]})?` +
|
|
2026
2100
|
`(?:$|[^\\d])`)
|
|
2027
2101
|
createToken('COERCERTL', src[t.COERCE], true)
|
|
2102
|
+
createToken('COERCERTLFULL', src[t.COERCEFULL], true)
|
|
2028
2103
|
|
|
2029
2104
|
// Tilde ranges.
|
|
2030
2105
|
// Meaning is "reasonably at or greater than"
|
|
@@ -2077,348 +2152,6 @@ createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$')
|
|
|
2077
2152
|
createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$')
|
|
2078
2153
|
|
|
2079
2154
|
|
|
2080
|
-
/***/ }),
|
|
2081
|
-
|
|
2082
|
-
/***/ 42873:
|
|
2083
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2084
|
-
|
|
2085
|
-
"use strict";
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
// A linked list to keep track of recently-used-ness
|
|
2089
|
-
const Yallist = __webpack_require__(7372)
|
|
2090
|
-
|
|
2091
|
-
const MAX = Symbol('max')
|
|
2092
|
-
const LENGTH = Symbol('length')
|
|
2093
|
-
const LENGTH_CALCULATOR = Symbol('lengthCalculator')
|
|
2094
|
-
const ALLOW_STALE = Symbol('allowStale')
|
|
2095
|
-
const MAX_AGE = Symbol('maxAge')
|
|
2096
|
-
const DISPOSE = Symbol('dispose')
|
|
2097
|
-
const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')
|
|
2098
|
-
const LRU_LIST = Symbol('lruList')
|
|
2099
|
-
const CACHE = Symbol('cache')
|
|
2100
|
-
const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')
|
|
2101
|
-
|
|
2102
|
-
const naiveLength = () => 1
|
|
2103
|
-
|
|
2104
|
-
// lruList is a yallist where the head is the youngest
|
|
2105
|
-
// item, and the tail is the oldest. the list contains the Hit
|
|
2106
|
-
// objects as the entries.
|
|
2107
|
-
// Each Hit object has a reference to its Yallist.Node. This
|
|
2108
|
-
// never changes.
|
|
2109
|
-
//
|
|
2110
|
-
// cache is a Map (or PseudoMap) that matches the keys to
|
|
2111
|
-
// the Yallist.Node object.
|
|
2112
|
-
class LRUCache {
|
|
2113
|
-
constructor (options) {
|
|
2114
|
-
if (typeof options === 'number')
|
|
2115
|
-
options = { max: options }
|
|
2116
|
-
|
|
2117
|
-
if (!options)
|
|
2118
|
-
options = {}
|
|
2119
|
-
|
|
2120
|
-
if (options.max && (typeof options.max !== 'number' || options.max < 0))
|
|
2121
|
-
throw new TypeError('max must be a non-negative number')
|
|
2122
|
-
// Kind of weird to have a default max of Infinity, but oh well.
|
|
2123
|
-
const max = this[MAX] = options.max || Infinity
|
|
2124
|
-
|
|
2125
|
-
const lc = options.length || naiveLength
|
|
2126
|
-
this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc
|
|
2127
|
-
this[ALLOW_STALE] = options.stale || false
|
|
2128
|
-
if (options.maxAge && typeof options.maxAge !== 'number')
|
|
2129
|
-
throw new TypeError('maxAge must be a number')
|
|
2130
|
-
this[MAX_AGE] = options.maxAge || 0
|
|
2131
|
-
this[DISPOSE] = options.dispose
|
|
2132
|
-
this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false
|
|
2133
|
-
this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false
|
|
2134
|
-
this.reset()
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
// resize the cache when the max changes.
|
|
2138
|
-
set max (mL) {
|
|
2139
|
-
if (typeof mL !== 'number' || mL < 0)
|
|
2140
|
-
throw new TypeError('max must be a non-negative number')
|
|
2141
|
-
|
|
2142
|
-
this[MAX] = mL || Infinity
|
|
2143
|
-
trim(this)
|
|
2144
|
-
}
|
|
2145
|
-
get max () {
|
|
2146
|
-
return this[MAX]
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
set allowStale (allowStale) {
|
|
2150
|
-
this[ALLOW_STALE] = !!allowStale
|
|
2151
|
-
}
|
|
2152
|
-
get allowStale () {
|
|
2153
|
-
return this[ALLOW_STALE]
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
set maxAge (mA) {
|
|
2157
|
-
if (typeof mA !== 'number')
|
|
2158
|
-
throw new TypeError('maxAge must be a non-negative number')
|
|
2159
|
-
|
|
2160
|
-
this[MAX_AGE] = mA
|
|
2161
|
-
trim(this)
|
|
2162
|
-
}
|
|
2163
|
-
get maxAge () {
|
|
2164
|
-
return this[MAX_AGE]
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
// resize the cache when the lengthCalculator changes.
|
|
2168
|
-
set lengthCalculator (lC) {
|
|
2169
|
-
if (typeof lC !== 'function')
|
|
2170
|
-
lC = naiveLength
|
|
2171
|
-
|
|
2172
|
-
if (lC !== this[LENGTH_CALCULATOR]) {
|
|
2173
|
-
this[LENGTH_CALCULATOR] = lC
|
|
2174
|
-
this[LENGTH] = 0
|
|
2175
|
-
this[LRU_LIST].forEach(hit => {
|
|
2176
|
-
hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)
|
|
2177
|
-
this[LENGTH] += hit.length
|
|
2178
|
-
})
|
|
2179
|
-
}
|
|
2180
|
-
trim(this)
|
|
2181
|
-
}
|
|
2182
|
-
get lengthCalculator () { return this[LENGTH_CALCULATOR] }
|
|
2183
|
-
|
|
2184
|
-
get length () { return this[LENGTH] }
|
|
2185
|
-
get itemCount () { return this[LRU_LIST].length }
|
|
2186
|
-
|
|
2187
|
-
rforEach (fn, thisp) {
|
|
2188
|
-
thisp = thisp || this
|
|
2189
|
-
for (let walker = this[LRU_LIST].tail; walker !== null;) {
|
|
2190
|
-
const prev = walker.prev
|
|
2191
|
-
forEachStep(this, fn, walker, thisp)
|
|
2192
|
-
walker = prev
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
forEach (fn, thisp) {
|
|
2197
|
-
thisp = thisp || this
|
|
2198
|
-
for (let walker = this[LRU_LIST].head; walker !== null;) {
|
|
2199
|
-
const next = walker.next
|
|
2200
|
-
forEachStep(this, fn, walker, thisp)
|
|
2201
|
-
walker = next
|
|
2202
|
-
}
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
keys () {
|
|
2206
|
-
return this[LRU_LIST].toArray().map(k => k.key)
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
values () {
|
|
2210
|
-
return this[LRU_LIST].toArray().map(k => k.value)
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
reset () {
|
|
2214
|
-
if (this[DISPOSE] &&
|
|
2215
|
-
this[LRU_LIST] &&
|
|
2216
|
-
this[LRU_LIST].length) {
|
|
2217
|
-
this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
this[CACHE] = new Map() // hash of items by key
|
|
2221
|
-
this[LRU_LIST] = new Yallist() // list of items in order of use recency
|
|
2222
|
-
this[LENGTH] = 0 // length of items in the list
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
dump () {
|
|
2226
|
-
return this[LRU_LIST].map(hit =>
|
|
2227
|
-
isStale(this, hit) ? false : {
|
|
2228
|
-
k: hit.key,
|
|
2229
|
-
v: hit.value,
|
|
2230
|
-
e: hit.now + (hit.maxAge || 0)
|
|
2231
|
-
}).toArray().filter(h => h)
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
dumpLru () {
|
|
2235
|
-
return this[LRU_LIST]
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
set (key, value, maxAge) {
|
|
2239
|
-
maxAge = maxAge || this[MAX_AGE]
|
|
2240
|
-
|
|
2241
|
-
if (maxAge && typeof maxAge !== 'number')
|
|
2242
|
-
throw new TypeError('maxAge must be a number')
|
|
2243
|
-
|
|
2244
|
-
const now = maxAge ? Date.now() : 0
|
|
2245
|
-
const len = this[LENGTH_CALCULATOR](value, key)
|
|
2246
|
-
|
|
2247
|
-
if (this[CACHE].has(key)) {
|
|
2248
|
-
if (len > this[MAX]) {
|
|
2249
|
-
del(this, this[CACHE].get(key))
|
|
2250
|
-
return false
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
const node = this[CACHE].get(key)
|
|
2254
|
-
const item = node.value
|
|
2255
|
-
|
|
2256
|
-
// dispose of the old one before overwriting
|
|
2257
|
-
// split out into 2 ifs for better coverage tracking
|
|
2258
|
-
if (this[DISPOSE]) {
|
|
2259
|
-
if (!this[NO_DISPOSE_ON_SET])
|
|
2260
|
-
this[DISPOSE](key, item.value)
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
item.now = now
|
|
2264
|
-
item.maxAge = maxAge
|
|
2265
|
-
item.value = value
|
|
2266
|
-
this[LENGTH] += len - item.length
|
|
2267
|
-
item.length = len
|
|
2268
|
-
this.get(key)
|
|
2269
|
-
trim(this)
|
|
2270
|
-
return true
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
const hit = new Entry(key, value, len, now, maxAge)
|
|
2274
|
-
|
|
2275
|
-
// oversized objects fall out of cache automatically.
|
|
2276
|
-
if (hit.length > this[MAX]) {
|
|
2277
|
-
if (this[DISPOSE])
|
|
2278
|
-
this[DISPOSE](key, value)
|
|
2279
|
-
|
|
2280
|
-
return false
|
|
2281
|
-
}
|
|
2282
|
-
|
|
2283
|
-
this[LENGTH] += hit.length
|
|
2284
|
-
this[LRU_LIST].unshift(hit)
|
|
2285
|
-
this[CACHE].set(key, this[LRU_LIST].head)
|
|
2286
|
-
trim(this)
|
|
2287
|
-
return true
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
has (key) {
|
|
2291
|
-
if (!this[CACHE].has(key)) return false
|
|
2292
|
-
const hit = this[CACHE].get(key).value
|
|
2293
|
-
return !isStale(this, hit)
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
get (key) {
|
|
2297
|
-
return get(this, key, true)
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
peek (key) {
|
|
2301
|
-
return get(this, key, false)
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
pop () {
|
|
2305
|
-
const node = this[LRU_LIST].tail
|
|
2306
|
-
if (!node)
|
|
2307
|
-
return null
|
|
2308
|
-
|
|
2309
|
-
del(this, node)
|
|
2310
|
-
return node.value
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
del (key) {
|
|
2314
|
-
del(this, this[CACHE].get(key))
|
|
2315
|
-
}
|
|
2316
|
-
|
|
2317
|
-
load (arr) {
|
|
2318
|
-
// reset the cache
|
|
2319
|
-
this.reset()
|
|
2320
|
-
|
|
2321
|
-
const now = Date.now()
|
|
2322
|
-
// A previous serialized cache has the most recent items first
|
|
2323
|
-
for (let l = arr.length - 1; l >= 0; l--) {
|
|
2324
|
-
const hit = arr[l]
|
|
2325
|
-
const expiresAt = hit.e || 0
|
|
2326
|
-
if (expiresAt === 0)
|
|
2327
|
-
// the item was created without expiration in a non aged cache
|
|
2328
|
-
this.set(hit.k, hit.v)
|
|
2329
|
-
else {
|
|
2330
|
-
const maxAge = expiresAt - now
|
|
2331
|
-
// dont add already expired items
|
|
2332
|
-
if (maxAge > 0) {
|
|
2333
|
-
this.set(hit.k, hit.v, maxAge)
|
|
2334
|
-
}
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
prune () {
|
|
2340
|
-
this[CACHE].forEach((value, key) => get(this, key, false))
|
|
2341
|
-
}
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
const get = (self, key, doUse) => {
|
|
2345
|
-
const node = self[CACHE].get(key)
|
|
2346
|
-
if (node) {
|
|
2347
|
-
const hit = node.value
|
|
2348
|
-
if (isStale(self, hit)) {
|
|
2349
|
-
del(self, node)
|
|
2350
|
-
if (!self[ALLOW_STALE])
|
|
2351
|
-
return undefined
|
|
2352
|
-
} else {
|
|
2353
|
-
if (doUse) {
|
|
2354
|
-
if (self[UPDATE_AGE_ON_GET])
|
|
2355
|
-
node.value.now = Date.now()
|
|
2356
|
-
self[LRU_LIST].unshiftNode(node)
|
|
2357
|
-
}
|
|
2358
|
-
}
|
|
2359
|
-
return hit.value
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
const isStale = (self, hit) => {
|
|
2364
|
-
if (!hit || (!hit.maxAge && !self[MAX_AGE]))
|
|
2365
|
-
return false
|
|
2366
|
-
|
|
2367
|
-
const diff = Date.now() - hit.now
|
|
2368
|
-
return hit.maxAge ? diff > hit.maxAge
|
|
2369
|
-
: self[MAX_AGE] && (diff > self[MAX_AGE])
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
const trim = self => {
|
|
2373
|
-
if (self[LENGTH] > self[MAX]) {
|
|
2374
|
-
for (let walker = self[LRU_LIST].tail;
|
|
2375
|
-
self[LENGTH] > self[MAX] && walker !== null;) {
|
|
2376
|
-
// We know that we're about to delete this one, and also
|
|
2377
|
-
// what the next least recently used key will be, so just
|
|
2378
|
-
// go ahead and set it now.
|
|
2379
|
-
const prev = walker.prev
|
|
2380
|
-
del(self, walker)
|
|
2381
|
-
walker = prev
|
|
2382
|
-
}
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
const del = (self, node) => {
|
|
2387
|
-
if (node) {
|
|
2388
|
-
const hit = node.value
|
|
2389
|
-
if (self[DISPOSE])
|
|
2390
|
-
self[DISPOSE](hit.key, hit.value)
|
|
2391
|
-
|
|
2392
|
-
self[LENGTH] -= hit.length
|
|
2393
|
-
self[CACHE].delete(hit.key)
|
|
2394
|
-
self[LRU_LIST].removeNode(node)
|
|
2395
|
-
}
|
|
2396
|
-
}
|
|
2397
|
-
|
|
2398
|
-
class Entry {
|
|
2399
|
-
constructor (key, value, length, now, maxAge) {
|
|
2400
|
-
this.key = key
|
|
2401
|
-
this.value = value
|
|
2402
|
-
this.length = length
|
|
2403
|
-
this.now = now
|
|
2404
|
-
this.maxAge = maxAge || 0
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
const forEachStep = (self, fn, node, thisp) => {
|
|
2409
|
-
let hit = node.value
|
|
2410
|
-
if (isStale(self, hit)) {
|
|
2411
|
-
del(self, node)
|
|
2412
|
-
if (!self[ALLOW_STALE])
|
|
2413
|
-
hit = undefined
|
|
2414
|
-
}
|
|
2415
|
-
if (hit)
|
|
2416
|
-
fn.call(thisp, hit.value, hit.key, self)
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
module.exports = LRUCache
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
2155
|
/***/ }),
|
|
2423
2156
|
|
|
2424
2157
|
/***/ 48237:
|
|
@@ -3014,457 +2747,7 @@ const validRange = (range, options) => {
|
|
|
3014
2747
|
module.exports = validRange
|
|
3015
2748
|
|
|
3016
2749
|
|
|
3017
|
-
/***/ }),
|
|
3018
|
-
|
|
3019
|
-
/***/ 99976:
|
|
3020
|
-
/***/ ((module) => {
|
|
3021
|
-
|
|
3022
|
-
"use strict";
|
|
3023
|
-
|
|
3024
|
-
module.exports = function (Yallist) {
|
|
3025
|
-
Yallist.prototype[Symbol.iterator] = function* () {
|
|
3026
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
|
3027
|
-
yield walker.value
|
|
3028
|
-
}
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
/***/ }),
|
|
3034
|
-
|
|
3035
|
-
/***/ 7372:
|
|
3036
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3037
|
-
|
|
3038
|
-
"use strict";
|
|
3039
|
-
|
|
3040
|
-
module.exports = Yallist
|
|
3041
|
-
|
|
3042
|
-
Yallist.Node = Node
|
|
3043
|
-
Yallist.create = Yallist
|
|
3044
|
-
|
|
3045
|
-
function Yallist (list) {
|
|
3046
|
-
var self = this
|
|
3047
|
-
if (!(self instanceof Yallist)) {
|
|
3048
|
-
self = new Yallist()
|
|
3049
|
-
}
|
|
3050
|
-
|
|
3051
|
-
self.tail = null
|
|
3052
|
-
self.head = null
|
|
3053
|
-
self.length = 0
|
|
3054
|
-
|
|
3055
|
-
if (list && typeof list.forEach === 'function') {
|
|
3056
|
-
list.forEach(function (item) {
|
|
3057
|
-
self.push(item)
|
|
3058
|
-
})
|
|
3059
|
-
} else if (arguments.length > 0) {
|
|
3060
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
3061
|
-
self.push(arguments[i])
|
|
3062
|
-
}
|
|
3063
|
-
}
|
|
3064
|
-
|
|
3065
|
-
return self
|
|
3066
|
-
}
|
|
3067
|
-
|
|
3068
|
-
Yallist.prototype.removeNode = function (node) {
|
|
3069
|
-
if (node.list !== this) {
|
|
3070
|
-
throw new Error('removing node which does not belong to this list')
|
|
3071
|
-
}
|
|
3072
|
-
|
|
3073
|
-
var next = node.next
|
|
3074
|
-
var prev = node.prev
|
|
3075
|
-
|
|
3076
|
-
if (next) {
|
|
3077
|
-
next.prev = prev
|
|
3078
|
-
}
|
|
3079
|
-
|
|
3080
|
-
if (prev) {
|
|
3081
|
-
prev.next = next
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
|
-
if (node === this.head) {
|
|
3085
|
-
this.head = next
|
|
3086
|
-
}
|
|
3087
|
-
if (node === this.tail) {
|
|
3088
|
-
this.tail = prev
|
|
3089
|
-
}
|
|
3090
|
-
|
|
3091
|
-
node.list.length--
|
|
3092
|
-
node.next = null
|
|
3093
|
-
node.prev = null
|
|
3094
|
-
node.list = null
|
|
3095
|
-
|
|
3096
|
-
return next
|
|
3097
|
-
}
|
|
3098
|
-
|
|
3099
|
-
Yallist.prototype.unshiftNode = function (node) {
|
|
3100
|
-
if (node === this.head) {
|
|
3101
|
-
return
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
if (node.list) {
|
|
3105
|
-
node.list.removeNode(node)
|
|
3106
|
-
}
|
|
3107
|
-
|
|
3108
|
-
var head = this.head
|
|
3109
|
-
node.list = this
|
|
3110
|
-
node.next = head
|
|
3111
|
-
if (head) {
|
|
3112
|
-
head.prev = node
|
|
3113
|
-
}
|
|
3114
|
-
|
|
3115
|
-
this.head = node
|
|
3116
|
-
if (!this.tail) {
|
|
3117
|
-
this.tail = node
|
|
3118
|
-
}
|
|
3119
|
-
this.length++
|
|
3120
|
-
}
|
|
3121
|
-
|
|
3122
|
-
Yallist.prototype.pushNode = function (node) {
|
|
3123
|
-
if (node === this.tail) {
|
|
3124
|
-
return
|
|
3125
|
-
}
|
|
3126
|
-
|
|
3127
|
-
if (node.list) {
|
|
3128
|
-
node.list.removeNode(node)
|
|
3129
|
-
}
|
|
3130
|
-
|
|
3131
|
-
var tail = this.tail
|
|
3132
|
-
node.list = this
|
|
3133
|
-
node.prev = tail
|
|
3134
|
-
if (tail) {
|
|
3135
|
-
tail.next = node
|
|
3136
|
-
}
|
|
3137
|
-
|
|
3138
|
-
this.tail = node
|
|
3139
|
-
if (!this.head) {
|
|
3140
|
-
this.head = node
|
|
3141
|
-
}
|
|
3142
|
-
this.length++
|
|
3143
|
-
}
|
|
3144
|
-
|
|
3145
|
-
Yallist.prototype.push = function () {
|
|
3146
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
3147
|
-
push(this, arguments[i])
|
|
3148
|
-
}
|
|
3149
|
-
return this.length
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
|
-
Yallist.prototype.unshift = function () {
|
|
3153
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
3154
|
-
unshift(this, arguments[i])
|
|
3155
|
-
}
|
|
3156
|
-
return this.length
|
|
3157
|
-
}
|
|
3158
|
-
|
|
3159
|
-
Yallist.prototype.pop = function () {
|
|
3160
|
-
if (!this.tail) {
|
|
3161
|
-
return undefined
|
|
3162
|
-
}
|
|
3163
|
-
|
|
3164
|
-
var res = this.tail.value
|
|
3165
|
-
this.tail = this.tail.prev
|
|
3166
|
-
if (this.tail) {
|
|
3167
|
-
this.tail.next = null
|
|
3168
|
-
} else {
|
|
3169
|
-
this.head = null
|
|
3170
|
-
}
|
|
3171
|
-
this.length--
|
|
3172
|
-
return res
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
Yallist.prototype.shift = function () {
|
|
3176
|
-
if (!this.head) {
|
|
3177
|
-
return undefined
|
|
3178
|
-
}
|
|
3179
|
-
|
|
3180
|
-
var res = this.head.value
|
|
3181
|
-
this.head = this.head.next
|
|
3182
|
-
if (this.head) {
|
|
3183
|
-
this.head.prev = null
|
|
3184
|
-
} else {
|
|
3185
|
-
this.tail = null
|
|
3186
|
-
}
|
|
3187
|
-
this.length--
|
|
3188
|
-
return res
|
|
3189
|
-
}
|
|
3190
|
-
|
|
3191
|
-
Yallist.prototype.forEach = function (fn, thisp) {
|
|
3192
|
-
thisp = thisp || this
|
|
3193
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
|
3194
|
-
fn.call(thisp, walker.value, i, this)
|
|
3195
|
-
walker = walker.next
|
|
3196
|
-
}
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
|
-
Yallist.prototype.forEachReverse = function (fn, thisp) {
|
|
3200
|
-
thisp = thisp || this
|
|
3201
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
|
3202
|
-
fn.call(thisp, walker.value, i, this)
|
|
3203
|
-
walker = walker.prev
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
Yallist.prototype.get = function (n) {
|
|
3208
|
-
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
|
3209
|
-
// abort out of the list early if we hit a cycle
|
|
3210
|
-
walker = walker.next
|
|
3211
|
-
}
|
|
3212
|
-
if (i === n && walker !== null) {
|
|
3213
|
-
return walker.value
|
|
3214
|
-
}
|
|
3215
|
-
}
|
|
3216
|
-
|
|
3217
|
-
Yallist.prototype.getReverse = function (n) {
|
|
3218
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
|
3219
|
-
// abort out of the list early if we hit a cycle
|
|
3220
|
-
walker = walker.prev
|
|
3221
|
-
}
|
|
3222
|
-
if (i === n && walker !== null) {
|
|
3223
|
-
return walker.value
|
|
3224
|
-
}
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
Yallist.prototype.map = function (fn, thisp) {
|
|
3228
|
-
thisp = thisp || this
|
|
3229
|
-
var res = new Yallist()
|
|
3230
|
-
for (var walker = this.head; walker !== null;) {
|
|
3231
|
-
res.push(fn.call(thisp, walker.value, this))
|
|
3232
|
-
walker = walker.next
|
|
3233
|
-
}
|
|
3234
|
-
return res
|
|
3235
|
-
}
|
|
3236
|
-
|
|
3237
|
-
Yallist.prototype.mapReverse = function (fn, thisp) {
|
|
3238
|
-
thisp = thisp || this
|
|
3239
|
-
var res = new Yallist()
|
|
3240
|
-
for (var walker = this.tail; walker !== null;) {
|
|
3241
|
-
res.push(fn.call(thisp, walker.value, this))
|
|
3242
|
-
walker = walker.prev
|
|
3243
|
-
}
|
|
3244
|
-
return res
|
|
3245
|
-
}
|
|
3246
|
-
|
|
3247
|
-
Yallist.prototype.reduce = function (fn, initial) {
|
|
3248
|
-
var acc
|
|
3249
|
-
var walker = this.head
|
|
3250
|
-
if (arguments.length > 1) {
|
|
3251
|
-
acc = initial
|
|
3252
|
-
} else if (this.head) {
|
|
3253
|
-
walker = this.head.next
|
|
3254
|
-
acc = this.head.value
|
|
3255
|
-
} else {
|
|
3256
|
-
throw new TypeError('Reduce of empty list with no initial value')
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
for (var i = 0; walker !== null; i++) {
|
|
3260
|
-
acc = fn(acc, walker.value, i)
|
|
3261
|
-
walker = walker.next
|
|
3262
|
-
}
|
|
3263
|
-
|
|
3264
|
-
return acc
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3267
|
-
Yallist.prototype.reduceReverse = function (fn, initial) {
|
|
3268
|
-
var acc
|
|
3269
|
-
var walker = this.tail
|
|
3270
|
-
if (arguments.length > 1) {
|
|
3271
|
-
acc = initial
|
|
3272
|
-
} else if (this.tail) {
|
|
3273
|
-
walker = this.tail.prev
|
|
3274
|
-
acc = this.tail.value
|
|
3275
|
-
} else {
|
|
3276
|
-
throw new TypeError('Reduce of empty list with no initial value')
|
|
3277
|
-
}
|
|
3278
|
-
|
|
3279
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
|
3280
|
-
acc = fn(acc, walker.value, i)
|
|
3281
|
-
walker = walker.prev
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
return acc
|
|
3285
|
-
}
|
|
3286
|
-
|
|
3287
|
-
Yallist.prototype.toArray = function () {
|
|
3288
|
-
var arr = new Array(this.length)
|
|
3289
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
|
3290
|
-
arr[i] = walker.value
|
|
3291
|
-
walker = walker.next
|
|
3292
|
-
}
|
|
3293
|
-
return arr
|
|
3294
|
-
}
|
|
3295
|
-
|
|
3296
|
-
Yallist.prototype.toArrayReverse = function () {
|
|
3297
|
-
var arr = new Array(this.length)
|
|
3298
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
|
3299
|
-
arr[i] = walker.value
|
|
3300
|
-
walker = walker.prev
|
|
3301
|
-
}
|
|
3302
|
-
return arr
|
|
3303
|
-
}
|
|
3304
|
-
|
|
3305
|
-
Yallist.prototype.slice = function (from, to) {
|
|
3306
|
-
to = to || this.length
|
|
3307
|
-
if (to < 0) {
|
|
3308
|
-
to += this.length
|
|
3309
|
-
}
|
|
3310
|
-
from = from || 0
|
|
3311
|
-
if (from < 0) {
|
|
3312
|
-
from += this.length
|
|
3313
|
-
}
|
|
3314
|
-
var ret = new Yallist()
|
|
3315
|
-
if (to < from || to < 0) {
|
|
3316
|
-
return ret
|
|
3317
|
-
}
|
|
3318
|
-
if (from < 0) {
|
|
3319
|
-
from = 0
|
|
3320
|
-
}
|
|
3321
|
-
if (to > this.length) {
|
|
3322
|
-
to = this.length
|
|
3323
|
-
}
|
|
3324
|
-
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
|
3325
|
-
walker = walker.next
|
|
3326
|
-
}
|
|
3327
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
|
3328
|
-
ret.push(walker.value)
|
|
3329
|
-
}
|
|
3330
|
-
return ret
|
|
3331
|
-
}
|
|
3332
|
-
|
|
3333
|
-
Yallist.prototype.sliceReverse = function (from, to) {
|
|
3334
|
-
to = to || this.length
|
|
3335
|
-
if (to < 0) {
|
|
3336
|
-
to += this.length
|
|
3337
|
-
}
|
|
3338
|
-
from = from || 0
|
|
3339
|
-
if (from < 0) {
|
|
3340
|
-
from += this.length
|
|
3341
|
-
}
|
|
3342
|
-
var ret = new Yallist()
|
|
3343
|
-
if (to < from || to < 0) {
|
|
3344
|
-
return ret
|
|
3345
|
-
}
|
|
3346
|
-
if (from < 0) {
|
|
3347
|
-
from = 0
|
|
3348
|
-
}
|
|
3349
|
-
if (to > this.length) {
|
|
3350
|
-
to = this.length
|
|
3351
|
-
}
|
|
3352
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
|
3353
|
-
walker = walker.prev
|
|
3354
|
-
}
|
|
3355
|
-
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
|
3356
|
-
ret.push(walker.value)
|
|
3357
|
-
}
|
|
3358
|
-
return ret
|
|
3359
|
-
}
|
|
3360
|
-
|
|
3361
|
-
Yallist.prototype.splice = function (start, deleteCount, ...nodes) {
|
|
3362
|
-
if (start > this.length) {
|
|
3363
|
-
start = this.length - 1
|
|
3364
|
-
}
|
|
3365
|
-
if (start < 0) {
|
|
3366
|
-
start = this.length + start;
|
|
3367
|
-
}
|
|
3368
|
-
|
|
3369
|
-
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
|
3370
|
-
walker = walker.next
|
|
3371
|
-
}
|
|
3372
|
-
|
|
3373
|
-
var ret = []
|
|
3374
|
-
for (var i = 0; walker && i < deleteCount; i++) {
|
|
3375
|
-
ret.push(walker.value)
|
|
3376
|
-
walker = this.removeNode(walker)
|
|
3377
|
-
}
|
|
3378
|
-
if (walker === null) {
|
|
3379
|
-
walker = this.tail
|
|
3380
|
-
}
|
|
3381
|
-
|
|
3382
|
-
if (walker !== this.head && walker !== this.tail) {
|
|
3383
|
-
walker = walker.prev
|
|
3384
|
-
}
|
|
3385
|
-
|
|
3386
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
3387
|
-
walker = insert(this, walker, nodes[i])
|
|
3388
|
-
}
|
|
3389
|
-
return ret;
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3392
|
-
Yallist.prototype.reverse = function () {
|
|
3393
|
-
var head = this.head
|
|
3394
|
-
var tail = this.tail
|
|
3395
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
3396
|
-
var p = walker.prev
|
|
3397
|
-
walker.prev = walker.next
|
|
3398
|
-
walker.next = p
|
|
3399
|
-
}
|
|
3400
|
-
this.head = tail
|
|
3401
|
-
this.tail = head
|
|
3402
|
-
return this
|
|
3403
|
-
}
|
|
3404
|
-
|
|
3405
|
-
function insert (self, node, value) {
|
|
3406
|
-
var inserted = node === self.head ?
|
|
3407
|
-
new Node(value, null, node, self) :
|
|
3408
|
-
new Node(value, node, node.next, self)
|
|
3409
|
-
|
|
3410
|
-
if (inserted.next === null) {
|
|
3411
|
-
self.tail = inserted
|
|
3412
|
-
}
|
|
3413
|
-
if (inserted.prev === null) {
|
|
3414
|
-
self.head = inserted
|
|
3415
|
-
}
|
|
3416
|
-
|
|
3417
|
-
self.length++
|
|
3418
|
-
|
|
3419
|
-
return inserted
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
|
-
function push (self, item) {
|
|
3423
|
-
self.tail = new Node(item, self.tail, null, self)
|
|
3424
|
-
if (!self.head) {
|
|
3425
|
-
self.head = self.tail
|
|
3426
|
-
}
|
|
3427
|
-
self.length++
|
|
3428
|
-
}
|
|
3429
|
-
|
|
3430
|
-
function unshift (self, item) {
|
|
3431
|
-
self.head = new Node(item, null, self.head, self)
|
|
3432
|
-
if (!self.tail) {
|
|
3433
|
-
self.tail = self.head
|
|
3434
|
-
}
|
|
3435
|
-
self.length++
|
|
3436
|
-
}
|
|
3437
|
-
|
|
3438
|
-
function Node (value, prev, next, list) {
|
|
3439
|
-
if (!(this instanceof Node)) {
|
|
3440
|
-
return new Node(value, prev, next, list)
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3443
|
-
this.list = list
|
|
3444
|
-
this.value = value
|
|
3445
|
-
|
|
3446
|
-
if (prev) {
|
|
3447
|
-
prev.next = this
|
|
3448
|
-
this.prev = prev
|
|
3449
|
-
} else {
|
|
3450
|
-
this.prev = null
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
if (next) {
|
|
3454
|
-
next.prev = this
|
|
3455
|
-
this.next = next
|
|
3456
|
-
} else {
|
|
3457
|
-
this.next = null
|
|
3458
|
-
}
|
|
3459
|
-
}
|
|
3460
|
-
|
|
3461
|
-
try {
|
|
3462
|
-
// add if support for Symbol.iterator is present
|
|
3463
|
-
__webpack_require__(99976)(Yallist)
|
|
3464
|
-
} catch (er) {}
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
2750
|
/***/ })
|
|
3468
2751
|
|
|
3469
2752
|
}]);
|
|
3470
|
-
//# sourceMappingURL=757.
|
|
2753
|
+
//# sourceMappingURL=757.86f80ac05f38c4f4be68.js.map?v=86f80ac05f38c4f4be68
|