@modern-js/upgrade 0.0.0-next-20221205094937 → 0.0.0-next-20221206083411
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +347 -586
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -30605,13 +30605,13 @@ var require_browsers2 = __commonJSMin((exports, module2) => {
|
|
30605
30605
|
module2.exports.browsers = require_browsers();
|
30606
30606
|
});
|
30607
30607
|
var require_browserVersions = __commonJSMin((exports, module2) => {
|
30608
|
-
module2.exports = { "0": "27", "1": "28", "2": "29", "3": "30", "4": "31", "5": "32", "6": "33", "7": "34", "8": "35", "9": "36", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "107", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "106", d: "72", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "101", n: "102", o: "103", p: "104", q: "105", r: "5", s: "19", t: "20", u: "21", v: "22", w: "23", x: "24", y: "25", z: "26", AB: "37", BB: "38", CB: "39", DB: "40", EB: "41", FB: "42", GB: "43", HB: "44", IB: "45", JB: "46", KB: "47", LB: "48", MB: "49", NB: "50", OB: "51", PB: "52", QB: "53", RB: "54", SB: "55", TB: "56", UB: "57", VB: "58", WB: "60", XB: "62", YB: "63", ZB: "64", aB: "65", bB: "66", cB: "67", dB: "68", eB: "69", fB: "70", gB: "71", hB: "73", iB: "74", jB: "75", kB: "76", lB: "77", mB: "78", nB: "11.1", oB: "12.1", pB: "16.0", qB: "3", rB: "59", sB: "61", tB: "82", uB: "108", vB: "109", wB: "3.2", xB: "10.1", yB: "13.1", zB: "15.2-15.3", "0B": "15.4", "1B": "15.5", "2B": "15.6", "3B": "16.1", "4B": "11.5", "5B": "4.2-4.3", "6B": "5.5", "7B": "2", "8B": "3.5", "9B": "3.6", AC: "110", BC: "
|
30608
|
+
module2.exports = { "0": "27", "1": "28", "2": "29", "3": "30", "4": "31", "5": "32", "6": "33", "7": "34", "8": "35", "9": "36", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "107", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "106", d: "72", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "101", n: "102", o: "103", p: "104", q: "105", r: "5", s: "19", t: "20", u: "21", v: "22", w: "23", x: "24", y: "25", z: "26", AB: "37", BB: "38", CB: "39", DB: "40", EB: "41", FB: "42", GB: "43", HB: "44", IB: "45", JB: "46", KB: "47", LB: "48", MB: "49", NB: "50", OB: "51", PB: "52", QB: "53", RB: "54", SB: "55", TB: "56", UB: "57", VB: "58", WB: "60", XB: "62", YB: "63", ZB: "64", aB: "65", bB: "66", cB: "67", dB: "68", eB: "69", fB: "70", gB: "71", hB: "73", iB: "74", jB: "75", kB: "76", lB: "77", mB: "78", nB: "11.1", oB: "12.1", pB: "16.0", qB: "3", rB: "59", sB: "61", tB: "82", uB: "108", vB: "109", wB: "3.2", xB: "10.1", yB: "13.1", zB: "15.2-15.3", "0B": "15.4", "1B": "15.5", "2B": "15.6", "3B": "16.1", "4B": "11.5", "5B": "4.2-4.3", "6B": "5.5", "7B": "2", "8B": "3.5", "9B": "3.6", AC: "110", BC: "3.1", CC: "5.1", DC: "6.1", EC: "7.1", FC: "9.1", GC: "14.1", HC: "15.1", IC: "16.2", JC: "TP", KC: "9.5-9.6", LC: "10.0-10.1", MC: "10.5", NC: "10.6", OC: "11.6", PC: "4.0-4.1", QC: "5.0-5.1", RC: "6.0-6.1", SC: "7.0-7.1", TC: "8.1-8.4", UC: "9.0-9.2", VC: "9.3", WC: "10.0-10.2", XC: "10.3", YC: "11.0-11.2", ZC: "11.3-11.4", aC: "12.0-12.1", bC: "12.2-12.5", cC: "13.0-13.1", dC: "13.2", eC: "13.3", fC: "13.4-13.7", gC: "14.0-14.4", hC: "14.5-14.8", iC: "15.0-15.1", jC: "all", kC: "2.1", lC: "2.2", mC: "2.3", nC: "4.1", oC: "4.4", pC: "4.4.3-4.4.4", qC: "13.4", rC: "5.0-5.4", sC: "6.2-6.4", tC: "7.2-7.4", uC: "8.2", vC: "9.2", wC: "11.1-11.2", xC: "12.0", yC: "13.0", zC: "14.0", "0C": "15.0", "1C": "17.0", "2C": "18.0", "3C": "19.0", "4C": "13.18", "5C": "2.5" };
|
30609
30609
|
});
|
30610
30610
|
var require_browserVersions2 = __commonJSMin((exports, module2) => {
|
30611
30611
|
module2.exports.browserVersions = require_browserVersions();
|
30612
30612
|
});
|
30613
30613
|
var require_agents = __commonJSMin((exports, module2) => {
|
30614
|
-
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0, BC: 0 }, B: "webkit", C: ["", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC", "BC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: 166968e4, vB: null, AC: null, BC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, CC: 0, wB: 8692e-6, DC: 0.011922, EC: 456e-5, FC: 4283e-6, GC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, HC: 0.305998, IC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, JC: 0, KC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "CC", "wB", "I", "r", "DC", "J", "EC", "D", "FC", "E", "F", "GC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "HC", "G", "IC", "zB", "0B", "1B", "2B", "pB", "3B", "JC", "KC", ""], E: "Safari", F: { CC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, DC: 131112e4, J: 1343174400, EC: 13824e5, D: 13824e5, FC: 1410998400, E: 1413417600, F: 1443657600, GC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, HC: 1619395200, G: 1632096e3, IC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, JC: null, KC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, LC: 685e-5, MC: 0, NC: 8392e-6, OC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, PC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "LC", "MC", "NC", "OC", "B", "nB", "4B", "PC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, LC: 1223424e3, MC: 1251763200, NC: 1267488e3, OC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, PC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", LC: "o", MC: "o", NC: "o", OC: "o", nB: "o", "4B": "o", PC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, QC: 0, "5B": 319488e-8, RC: 479232e-8, SC: 319488e-8, TC: 0.014377, UC: 479232e-8, VC: 0.0159744, WC: 0.0607028, XC: 319488e-8, YC: 0.0718849, ZC: 0.0255591, aC: 0.0223642, bC: 0.0223642, cC: 0.408945, dC: 0.0287539, eC: 958465e-8, fC: 0.0383386, gC: 0.119808, hC: 0.354632, iC: 0.773162, jC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "QC", "5B", "RC", "SC", "TC", "E", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "jC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, QC: 1283904e3, "5B": 1299628800, RC: 1331078400, SC: 1359331200, TC: 1394409600, E: 1410912e3, UC: 1413763200, VC: 1442361600, WC: 1458518400, XC: 1473724800, YC: 1490572800, ZC: 1505779200, aC: 1522281600, bC: 1537142400, cC: 1553472e3, dC: 1568851200, eC: 1572220800, fC: 1580169600, gC: 1585008e3, hC: 1600214400, iC: 1619395200, jC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { kC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "", "", ""], E: "Opera Mini", F: { kC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, lC: 0, mC: 0, nC: 0, oC: 0.0297805, "5B": 0.0893414, pC: 0, qC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "lC", "mC", "nC", "qB", "I", "oC", "5B", "pC", "qC", "H", "", "", ""], E: "Android Browser", F: { lC: 1256515200, mC: 1274313600, nC: 1291593600, qB: 1298332800, I: 1318896e3, oC: 1341792e3, "5B": 1374624e3, pC: 1386547200, qC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { rC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "rC", "", "", ""], E: "UC Browser for Android", F: { rC: 1634688e3 }, D: { rC: "webkit" } }, P: { A: { I: 0.146868, sC: 0.0103543, tC: 0.010304, uC: 0.0629436, vC: 0.0103584, wC: 0.0104443, xB: 0.0105043, xC: 0.0314718, yC: 0.0104906, zC: 0.052453, "0C": 0.052453, "1C": 0.0314718, pB: 0.0944154, "2C": 0.157359, "3C": 2.15057, "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "sC", "tC", "uC", "vC", "wC", "xB", "xC", "yC", "zC", "0C", "1C", "pB", "2C", "3C", "4C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, sC: 1481846400, tC: 1509408e3, uC: 1528329600, vC: 1546128e3, wC: 1554163200, xB: 1567900800, xC: 1582588800, yC: 1593475200, zC: 1605657600, "0C": 1618531200, "1C": 1629072e3, pB: 1640736e3, "2C": 1651708800, "3C": 1659657600, "4C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "5C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "Baidu Browser", F: { "5C": 1663027200 } }, S: { A: { "6C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6C", "", "", ""], E: "KaiOS Browser", F: { "6C": 1527811200 } } };
|
30614
|
+
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0 }, B: "webkit", C: ["", "", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: null, vB: null, AC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, BC: 0, wB: 8692e-6, CC: 0.011922, DC: 456e-5, EC: 4283e-6, FC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, GC: 0.305998, HC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, IC: 0, JC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "BC", "wB", "I", "r", "CC", "J", "DC", "D", "EC", "E", "F", "FC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "GC", "G", "HC", "zB", "0B", "1B", "2B", "pB", "3B", "IC", "JC", ""], E: "Safari", F: { BC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, CC: 131112e4, J: 1343174400, DC: 13824e5, D: 13824e5, EC: 1410998400, E: 1413417600, F: 1443657600, FC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, GC: 1619395200, G: 1632096e3, HC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, IC: null, JC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, KC: 685e-5, LC: 0, MC: 8392e-6, NC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, OC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "KC", "LC", "MC", "NC", "B", "nB", "4B", "OC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, KC: 1223424e3, LC: 1251763200, MC: 1267488e3, NC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, OC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", KC: "o", LC: "o", MC: "o", NC: "o", nB: "o", "4B": "o", OC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, PC: 0, "5B": 319488e-8, QC: 479232e-8, RC: 319488e-8, SC: 0.014377, TC: 479232e-8, UC: 0.0159744, VC: 0.0607028, WC: 319488e-8, XC: 0.0718849, YC: 0.0255591, ZC: 0.0223642, aC: 0.0223642, bC: 0.408945, cC: 0.0287539, dC: 958465e-8, eC: 0.0383386, fC: 0.119808, gC: 0.354632, hC: 0.773162, iC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "PC", "5B", "QC", "RC", "SC", "E", "TC", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, PC: 1283904e3, "5B": 1299628800, QC: 1331078400, RC: 1359331200, SC: 1394409600, E: 1410912e3, TC: 1413763200, UC: 1442361600, VC: 1458518400, WC: 1473724800, XC: 1490572800, YC: 1505779200, ZC: 1522281600, aC: 1537142400, bC: 1553472e3, cC: 1568851200, dC: 1572220800, eC: 1580169600, fC: 1585008e3, gC: 1600214400, hC: 1619395200, iC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { jC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "jC", "", "", ""], E: "Opera Mini", F: { jC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, kC: 0, lC: 0, mC: 0, nC: 0.0297805, "5B": 0.0893414, oC: 0, pC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "lC", "mC", "qB", "I", "nC", "5B", "oC", "pC", "H", "", "", ""], E: "Android Browser", F: { kC: 1256515200, lC: 1274313600, mC: 1291593600, qB: 1298332800, I: 1318896e3, nC: 1341792e3, "5B": 1374624e3, oC: 1386547200, pC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { qC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "qC", "", "", ""], E: "UC Browser for Android", F: { qC: 1634688e3 }, D: { qC: "webkit" } }, P: { A: { I: 0.146868, rC: 0.0103543, sC: 0.010304, tC: 0.0629436, uC: 0.0103584, vC: 0.0104443, xB: 0.0105043, wC: 0.0314718, xC: 0.0104906, yC: 0.052453, zC: 0.052453, "0C": 0.0314718, pB: 0.0944154, "1C": 0.157359, "2C": 2.15057, "3C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "rC", "sC", "tC", "uC", "vC", "xB", "wC", "xC", "yC", "zC", "0C", "pB", "1C", "2C", "3C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, rC: 1481846400, sC: 1509408e3, tC: 1528329600, uC: 1546128e3, vC: 1554163200, xB: 1567900800, wC: 1582588800, xC: 1593475200, yC: 1605657600, zC: 1618531200, "0C": 1629072e3, pB: 1640736e3, "1C": 1651708800, "2C": 1659657600, "3C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "4C", "", "", ""], E: "Baidu Browser", F: { "4C": 1663027200 } }, S: { A: { "5C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "KaiOS Browser", F: { "5C": 1527811200 } } };
|
30615
30615
|
});
|
30616
30616
|
var require_agents2 = __commonJSMin((exports, module2) => {
|
30617
30617
|
"use strict";
|
@@ -35056,6 +35056,7 @@ var require_constants = __commonJSMin((exports) => {
|
|
35056
35056
|
"@modern-js/plugin-koa": "@modern-js/plugin-koa/cli",
|
35057
35057
|
"@modern-js/plugin-nest": "@modern-js/plugin-nest/cli",
|
35058
35058
|
"@modern-js/plugin-server": "@modern-js/plugin-server/cli",
|
35059
|
+
"@modern-js/plugin-swc": "@modern-js/plugin-swc",
|
35059
35060
|
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
35060
35061
|
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
35061
35062
|
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
@@ -35089,6 +35090,12 @@ var require_constants = __commonJSMin((exports) => {
|
|
35089
35090
|
}
|
35090
35091
|
}
|
35091
35092
|
],
|
35093
|
+
"@modern-js/plugin-swc": [
|
35094
|
+
{
|
35095
|
+
target: "tools.swc",
|
35096
|
+
schema: { typeof: ["object"] }
|
35097
|
+
}
|
35098
|
+
],
|
35092
35099
|
"@modern-js/plugin-bff": [
|
35093
35100
|
{
|
35094
35101
|
target: "bff",
|
@@ -36292,6 +36299,7 @@ var require_routes = __commonJSMin((exports) => {
|
|
36292
36299
|
exports.getRouteId = exports.getPathWithoutExt = void 0;
|
36293
36300
|
var path_1 = __importDefault(__require("path"));
|
36294
36301
|
var path_2 = require_path();
|
36302
|
+
var constants_1 = require_constants();
|
36295
36303
|
var getPathWithoutExt = (filename) => {
|
36296
36304
|
const extname = path_1.default.extname(filename);
|
36297
36305
|
return filename.slice(0, -extname.length);
|
@@ -36300,7 +36308,12 @@ var require_routes = __commonJSMin((exports) => {
|
|
36300
36308
|
var getRouteId = (componentPath, routesDir, entryName) => {
|
36301
36309
|
const relativePath = (0, path_2.normalizeToPosixPath)(path_1.default.relative(routesDir, componentPath));
|
36302
36310
|
const pathWithoutExt = (0, exports.getPathWithoutExt)(relativePath);
|
36303
|
-
|
36311
|
+
let id = ``;
|
36312
|
+
if (entryName === constants_1.MAIN_ENTRY_NAME) {
|
36313
|
+
id = pathWithoutExt;
|
36314
|
+
} else {
|
36315
|
+
id = `${entryName}_${pathWithoutExt}`;
|
36316
|
+
}
|
36304
36317
|
return id;
|
36305
36318
|
};
|
36306
36319
|
exports.getRouteId = getRouteId;
|
@@ -68666,7 +68679,6 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68666
68679
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
68667
68680
|
};
|
68668
68681
|
});
|
68669
|
-
var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
|
68670
68682
|
var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
|
68671
68683
|
var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
|
68672
68684
|
var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
|
@@ -68699,10 +68711,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68699
68711
|
if (this._ending) {
|
68700
68712
|
throw new WriteAfterEndError();
|
68701
68713
|
}
|
68702
|
-
if (!
|
68714
|
+
if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
|
68703
68715
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
68704
68716
|
}
|
68705
|
-
if (
|
68717
|
+
if (typeof encoding === "function") {
|
68706
68718
|
callback = encoding;
|
68707
68719
|
encoding = null;
|
68708
68720
|
}
|
@@ -68722,10 +68734,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68722
68734
|
}
|
68723
68735
|
};
|
68724
68736
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
68725
|
-
if (
|
68737
|
+
if (typeof data === "function") {
|
68726
68738
|
callback = data;
|
68727
68739
|
data = encoding = null;
|
68728
|
-
} else if (
|
68740
|
+
} else if (typeof encoding === "function") {
|
68729
68741
|
callback = encoding;
|
68730
68742
|
encoding = null;
|
68731
68743
|
}
|
@@ -68849,7 +68861,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68849
68861
|
for (var event of events) {
|
68850
68862
|
request.on(event, eventHandlers[event]);
|
68851
68863
|
}
|
68852
|
-
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
|
68864
|
+
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._currentUrl = this._options.path;
|
68853
68865
|
if (this._isRedirect) {
|
68854
68866
|
var i = 0;
|
68855
68867
|
var self2 = this;
|
@@ -68914,7 +68926,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68914
68926
|
try {
|
68915
68927
|
redirectUrl = url.resolve(currentUrl, location);
|
68916
68928
|
} catch (cause) {
|
68917
|
-
this.emit("error", new RedirectionError(
|
68929
|
+
this.emit("error", new RedirectionError(cause));
|
68918
68930
|
return;
|
68919
68931
|
}
|
68920
68932
|
debug("redirecting to", redirectUrl);
|
@@ -68924,7 +68936,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68924
68936
|
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
68925
68937
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
68926
68938
|
}
|
68927
|
-
if (
|
68939
|
+
if (typeof beforeRedirect === "function") {
|
68928
68940
|
var responseDetails = {
|
68929
68941
|
headers: response.headers,
|
68930
68942
|
statusCode
|
@@ -68945,7 +68957,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68945
68957
|
try {
|
68946
68958
|
this._performRequest();
|
68947
68959
|
} catch (cause) {
|
68948
|
-
this.emit("error", new RedirectionError(
|
68960
|
+
this.emit("error", new RedirectionError(cause));
|
68949
68961
|
}
|
68950
68962
|
};
|
68951
68963
|
function wrap(protocols) {
|
@@ -68959,17 +68971,13 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68959
68971
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
68960
68972
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
68961
68973
|
function request(input, options3, callback) {
|
68962
|
-
if (
|
68963
|
-
var
|
68974
|
+
if (typeof input === "string") {
|
68975
|
+
var urlStr = input;
|
68964
68976
|
try {
|
68965
|
-
|
68977
|
+
input = urlToOptions(new URL(urlStr));
|
68966
68978
|
} catch (err) {
|
68967
|
-
|
68968
|
-
}
|
68969
|
-
if (!isString2(parsed.protocol)) {
|
68970
|
-
throw new InvalidUrlError({ input });
|
68979
|
+
input = url.parse(urlStr);
|
68971
68980
|
}
|
68972
|
-
input = parsed;
|
68973
68981
|
} else if (URL && input instanceof URL) {
|
68974
68982
|
input = urlToOptions(input);
|
68975
68983
|
} else {
|
@@ -68977,7 +68985,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68977
68985
|
options3 = input;
|
68978
68986
|
input = { protocol };
|
68979
68987
|
}
|
68980
|
-
if (
|
68988
|
+
if (typeof options3 === "function") {
|
68981
68989
|
callback = options3;
|
68982
68990
|
options3 = null;
|
68983
68991
|
}
|
@@ -68986,9 +68994,6 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68986
68994
|
maxBodyLength: exports2.maxBodyLength
|
68987
68995
|
}, input, options3);
|
68988
68996
|
options3.nativeProtocols = nativeProtocols;
|
68989
|
-
if (!isString2(options3.host) && !isString2(options3.hostname)) {
|
68990
|
-
options3.hostname = "::1";
|
68991
|
-
}
|
68992
68997
|
assert.equal(options3.protocol, protocol, "protocol mismatch");
|
68993
68998
|
debug("options", options3);
|
68994
68999
|
return new RedirectableRequest(options3, callback);
|
@@ -69032,16 +69037,20 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
69032
69037
|
}
|
69033
69038
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
69034
69039
|
}
|
69035
|
-
function createErrorType(code,
|
69036
|
-
function CustomError(
|
69040
|
+
function createErrorType(code, defaultMessage) {
|
69041
|
+
function CustomError(cause) {
|
69037
69042
|
Error.captureStackTrace(this, this.constructor);
|
69038
|
-
|
69039
|
-
|
69040
|
-
|
69043
|
+
if (!cause) {
|
69044
|
+
this.message = defaultMessage;
|
69045
|
+
} else {
|
69046
|
+
this.message = defaultMessage + ": " + cause.message;
|
69047
|
+
this.cause = cause;
|
69048
|
+
}
|
69041
69049
|
}
|
69042
|
-
CustomError.prototype = new
|
69050
|
+
CustomError.prototype = new Error();
|
69043
69051
|
CustomError.prototype.constructor = CustomError;
|
69044
69052
|
CustomError.prototype.name = "Error [" + code + "]";
|
69053
|
+
CustomError.prototype.code = code;
|
69045
69054
|
return CustomError;
|
69046
69055
|
}
|
69047
69056
|
function abortRequest(request) {
|
@@ -69052,19 +69061,9 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
69052
69061
|
request.abort();
|
69053
69062
|
}
|
69054
69063
|
function isSubdomain(subdomain, domain) {
|
69055
|
-
|
69056
|
-
var dot = subdomain.length - domain.length - 1;
|
69064
|
+
const dot = subdomain.length - domain.length - 1;
|
69057
69065
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
69058
69066
|
}
|
69059
|
-
function isString2(value) {
|
69060
|
-
return typeof value === "string" || value instanceof String;
|
69061
|
-
}
|
69062
|
-
function isFunction(value) {
|
69063
|
-
return typeof value === "function";
|
69064
|
-
}
|
69065
|
-
function isBuffer(value) {
|
69066
|
-
return typeof value === "object" && "length" in value;
|
69067
|
-
}
|
69068
69067
|
module2.exports = wrap({ http, https });
|
69069
69068
|
module2.exports.wrap = wrap;
|
69070
69069
|
});
|
@@ -70894,9 +70893,8 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
70894
70893
|
}
|
70895
70894
|
this.path = normPath(header.path);
|
70896
70895
|
this.mode = header.mode;
|
70897
|
-
if (this.mode)
|
70896
|
+
if (this.mode)
|
70898
70897
|
this.mode = this.mode & 4095;
|
70899
|
-
}
|
70900
70898
|
this.uid = header.uid;
|
70901
70899
|
this.gid = header.gid;
|
70902
70900
|
this.uname = header.uname;
|
@@ -70908,35 +70906,29 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
70908
70906
|
this.linkpath = normPath(header.linkpath);
|
70909
70907
|
this.uname = header.uname;
|
70910
70908
|
this.gname = header.gname;
|
70911
|
-
if (ex)
|
70909
|
+
if (ex)
|
70912
70910
|
this[SLURP](ex);
|
70913
|
-
|
70914
|
-
if (gex) {
|
70911
|
+
if (gex)
|
70915
70912
|
this[SLURP](gex, true);
|
70916
|
-
}
|
70917
70913
|
}
|
70918
70914
|
write(data) {
|
70919
70915
|
const writeLen = data.length;
|
70920
|
-
if (writeLen > this.blockRemain)
|
70916
|
+
if (writeLen > this.blockRemain)
|
70921
70917
|
throw new Error("writing more to entry than is appropriate");
|
70922
|
-
}
|
70923
70918
|
const r = this.remain;
|
70924
70919
|
const br = this.blockRemain;
|
70925
70920
|
this.remain = Math.max(0, r - writeLen);
|
70926
70921
|
this.blockRemain = Math.max(0, br - writeLen);
|
70927
|
-
if (this.ignore)
|
70922
|
+
if (this.ignore)
|
70928
70923
|
return true;
|
70929
|
-
|
70930
|
-
if (r >= writeLen) {
|
70924
|
+
if (r >= writeLen)
|
70931
70925
|
return super.write(data);
|
70932
|
-
}
|
70933
70926
|
return super.write(data.slice(0, r));
|
70934
70927
|
}
|
70935
70928
|
[SLURP](ex, global2) {
|
70936
70929
|
for (const k in ex) {
|
70937
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
70930
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
70938
70931
|
this[k] = k === "path" || k === "linkpath" ? normPath(ex[k]) : ex[k];
|
70939
|
-
}
|
70940
70932
|
}
|
70941
70933
|
}
|
70942
70934
|
};
|
@@ -70971,13 +70963,12 @@ var require_types = __commonJSMin((exports) => {
|
|
70971
70963
|
var require_large_numbers = __commonJSMin((exports, module2) => {
|
70972
70964
|
"use strict";
|
70973
70965
|
var encode = (num, buf) => {
|
70974
|
-
if (!Number.isSafeInteger(num))
|
70966
|
+
if (!Number.isSafeInteger(num))
|
70975
70967
|
throw Error("cannot encode number outside of javascript safe integer range");
|
70976
|
-
|
70968
|
+
else if (num < 0)
|
70977
70969
|
encodeNegative(num, buf);
|
70978
|
-
|
70970
|
+
else
|
70979
70971
|
encodePositive(num, buf);
|
70980
|
-
}
|
70981
70972
|
return buf;
|
70982
70973
|
};
|
70983
70974
|
var encodePositive = (num, buf) => {
|
@@ -70994,11 +70985,11 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
70994
70985
|
for (var i = buf.length; i > 1; i--) {
|
70995
70986
|
var byte = num & 255;
|
70996
70987
|
num = Math.floor(num / 256);
|
70997
|
-
if (flipped)
|
70988
|
+
if (flipped)
|
70998
70989
|
buf[i - 1] = onesComp(byte);
|
70999
|
-
|
70990
|
+
else if (byte === 0)
|
71000
70991
|
buf[i - 1] = 0;
|
71001
|
-
|
70992
|
+
else {
|
71002
70993
|
flipped = true;
|
71003
70994
|
buf[i - 1] = twosComp(byte);
|
71004
70995
|
}
|
@@ -71007,12 +70998,10 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
71007
70998
|
var parse = (buf) => {
|
71008
70999
|
const pre = buf[0];
|
71009
71000
|
const value = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
71010
|
-
if (value === null)
|
71001
|
+
if (value === null)
|
71011
71002
|
throw Error("invalid base256 encoding");
|
71012
|
-
|
71013
|
-
if (!Number.isSafeInteger(value)) {
|
71003
|
+
if (!Number.isSafeInteger(value))
|
71014
71004
|
throw Error("parsed number outside of javascript safe integer range");
|
71015
|
-
}
|
71016
71005
|
return value;
|
71017
71006
|
};
|
71018
71007
|
var twos = (buf) => {
|
@@ -71022,17 +71011,16 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
71022
71011
|
for (var i = len - 1; i > -1; i--) {
|
71023
71012
|
var byte = buf[i];
|
71024
71013
|
var f;
|
71025
|
-
if (flipped)
|
71014
|
+
if (flipped)
|
71026
71015
|
f = onesComp(byte);
|
71027
|
-
|
71016
|
+
else if (byte === 0)
|
71028
71017
|
f = byte;
|
71029
|
-
|
71018
|
+
else {
|
71030
71019
|
flipped = true;
|
71031
71020
|
f = twosComp(byte);
|
71032
71021
|
}
|
71033
|
-
if (f !== 0)
|
71022
|
+
if (f !== 0)
|
71034
71023
|
sum -= f * Math.pow(256, len - i - 1);
|
71035
|
-
}
|
71036
71024
|
}
|
71037
71025
|
return sum;
|
71038
71026
|
};
|
@@ -71041,9 +71029,8 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
71041
71029
|
var sum = 0;
|
71042
71030
|
for (var i = len - 1; i > -1; i--) {
|
71043
71031
|
var byte = buf[i];
|
71044
|
-
if (byte !== 0)
|
71032
|
+
if (byte !== 0)
|
71045
71033
|
sum += byte * Math.pow(256, len - i - 1);
|
71046
|
-
}
|
71047
71034
|
}
|
71048
71035
|
return sum;
|
71049
71036
|
};
|
@@ -71082,19 +71069,16 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71082
71069
|
this.devmin = 0;
|
71083
71070
|
this.atime = null;
|
71084
71071
|
this.ctime = null;
|
71085
|
-
if (Buffer.isBuffer(data))
|
71072
|
+
if (Buffer.isBuffer(data))
|
71086
71073
|
this.decode(data, off || 0, ex, gex);
|
71087
|
-
|
71074
|
+
else if (data)
|
71088
71075
|
this.set(data);
|
71089
|
-
}
|
71090
71076
|
}
|
71091
71077
|
decode(buf, off, ex, gex) {
|
71092
|
-
if (!off)
|
71078
|
+
if (!off)
|
71093
71079
|
off = 0;
|
71094
|
-
|
71095
|
-
if (!buf || !(buf.length >= off + 512)) {
|
71080
|
+
if (!buf || !(buf.length >= off + 512))
|
71096
71081
|
throw new Error("need 512 bytes for header");
|
71097
|
-
}
|
71098
71082
|
this.path = decString(buf, off, 100);
|
71099
71083
|
this.mode = decNumber(buf, off + 100, 8);
|
71100
71084
|
this.uid = decNumber(buf, off + 108, 8);
|
@@ -71105,15 +71089,12 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71105
71089
|
this[SLURP](ex);
|
71106
71090
|
this[SLURP](gex, true);
|
71107
71091
|
this[TYPE] = decString(buf, off + 156, 1);
|
71108
|
-
if (this[TYPE] === "")
|
71092
|
+
if (this[TYPE] === "")
|
71109
71093
|
this[TYPE] = "0";
|
71110
|
-
|
71111
|
-
if (this[TYPE] === "0" && this.path.slice(-1) === "/") {
|
71094
|
+
if (this[TYPE] === "0" && this.path.substr(-1) === "/")
|
71112
71095
|
this[TYPE] = "5";
|
71113
|
-
|
71114
|
-
if (this[TYPE] === "5") {
|
71096
|
+
if (this[TYPE] === "5")
|
71115
71097
|
this.size = 0;
|
71116
|
-
}
|
71117
71098
|
this.linkpath = decString(buf, off + 157, 100);
|
71118
71099
|
if (buf.slice(off + 257, off + 265).toString() === "ustar\x0000") {
|
71119
71100
|
this.uname = decString(buf, off + 265, 32);
|
@@ -71125,30 +71106,25 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71125
71106
|
this.path = prefix + "/" + this.path;
|
71126
71107
|
} else {
|
71127
71108
|
const prefix = decString(buf, off + 345, 130);
|
71128
|
-
if (prefix)
|
71109
|
+
if (prefix)
|
71129
71110
|
this.path = prefix + "/" + this.path;
|
71130
|
-
}
|
71131
71111
|
this.atime = decDate(buf, off + 476, 12);
|
71132
71112
|
this.ctime = decDate(buf, off + 488, 12);
|
71133
71113
|
}
|
71134
71114
|
}
|
71135
71115
|
let sum = 8 * 32;
|
71136
|
-
for (let i = off; i < off + 148; i++)
|
71116
|
+
for (let i = off; i < off + 148; i++)
|
71137
71117
|
sum += buf[i];
|
71138
|
-
|
71139
|
-
for (let i = off + 156; i < off + 512; i++) {
|
71118
|
+
for (let i = off + 156; i < off + 512; i++)
|
71140
71119
|
sum += buf[i];
|
71141
|
-
}
|
71142
71120
|
this.cksumValid = sum === this.cksum;
|
71143
|
-
if (this.cksum === null && sum === 8 * 32)
|
71121
|
+
if (this.cksum === null && sum === 8 * 32)
|
71144
71122
|
this.nullBlock = true;
|
71145
|
-
}
|
71146
71123
|
}
|
71147
71124
|
[SLURP](ex, global2) {
|
71148
71125
|
for (const k in ex) {
|
71149
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
71126
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
71150
71127
|
this[k] = ex[k];
|
71151
|
-
}
|
71152
71128
|
}
|
71153
71129
|
}
|
71154
71130
|
encode(buf, off) {
|
@@ -71156,12 +71132,10 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71156
71132
|
buf = this.block = Buffer.alloc(512);
|
71157
71133
|
off = 0;
|
71158
71134
|
}
|
71159
|
-
if (!off)
|
71135
|
+
if (!off)
|
71160
71136
|
off = 0;
|
71161
|
-
|
71162
|
-
if (!(buf.length >= off + 512)) {
|
71137
|
+
if (!(buf.length >= off + 512))
|
71163
71138
|
throw new Error("need 512 bytes for header");
|
71164
|
-
}
|
71165
71139
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
71166
71140
|
const split = splitPrefix(this.path || "", prefixSize);
|
71167
71141
|
const path = split[0];
|
@@ -71181,20 +71155,18 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71181
71155
|
this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax;
|
71182
71156
|
this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax;
|
71183
71157
|
this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax;
|
71184
|
-
if (buf[off + 475] !== 0)
|
71158
|
+
if (buf[off + 475] !== 0)
|
71185
71159
|
this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax;
|
71186
|
-
|
71160
|
+
else {
|
71187
71161
|
this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax;
|
71188
71162
|
this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax;
|
71189
71163
|
this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax;
|
71190
71164
|
}
|
71191
71165
|
let sum = 8 * 32;
|
71192
|
-
for (let i = off; i < off + 148; i++)
|
71166
|
+
for (let i = off; i < off + 148; i++)
|
71193
71167
|
sum += buf[i];
|
71194
|
-
|
71195
|
-
for (let i = off + 156; i < off + 512; i++) {
|
71168
|
+
for (let i = off + 156; i < off + 512; i++)
|
71196
71169
|
sum += buf[i];
|
71197
|
-
}
|
71198
71170
|
this.cksum = sum;
|
71199
71171
|
encNumber(buf, off + 148, 8, this.cksum);
|
71200
71172
|
this.cksumValid = true;
|
@@ -71202,9 +71174,8 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71202
71174
|
}
|
71203
71175
|
set(data) {
|
71204
71176
|
for (const i in data) {
|
71205
|
-
if (data[i] !== null && data[i] !== void 0)
|
71177
|
+
if (data[i] !== null && data[i] !== void 0)
|
71206
71178
|
this[i] = data[i];
|
71207
|
-
}
|
71208
71179
|
}
|
71209
71180
|
}
|
71210
71181
|
get type() {
|
@@ -71214,11 +71185,10 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71214
71185
|
return this[TYPE];
|
71215
71186
|
}
|
71216
71187
|
set type(type) {
|
71217
|
-
if (types.code.has(type))
|
71188
|
+
if (types.code.has(type))
|
71218
71189
|
this[TYPE] = types.code.get(type);
|
71219
|
-
|
71190
|
+
else
|
71220
71191
|
this[TYPE] = type;
|
71221
|
-
}
|
71222
71192
|
}
|
71223
71193
|
};
|
71224
71194
|
var splitPrefix = (p, prefixSize) => {
|
@@ -71227,24 +71197,23 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71227
71197
|
let prefix = "";
|
71228
71198
|
let ret;
|
71229
71199
|
const root = pathModule.parse(p).root || ".";
|
71230
|
-
if (Buffer.byteLength(pp) < pathSize)
|
71200
|
+
if (Buffer.byteLength(pp) < pathSize)
|
71231
71201
|
ret = [pp, prefix, false];
|
71232
|
-
|
71202
|
+
else {
|
71233
71203
|
prefix = pathModule.dirname(pp);
|
71234
71204
|
pp = pathModule.basename(pp);
|
71235
71205
|
do {
|
71236
|
-
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
71206
|
+
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
71237
71207
|
ret = [pp, prefix, false];
|
71238
|
-
|
71239
|
-
ret = [pp.
|
71240
|
-
|
71208
|
+
else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
71209
|
+
ret = [pp.substr(0, pathSize - 1), prefix, true];
|
71210
|
+
else {
|
71241
71211
|
pp = pathModule.join(pathModule.basename(prefix), pp);
|
71242
71212
|
prefix = pathModule.dirname(prefix);
|
71243
71213
|
}
|
71244
71214
|
} while (prefix !== root && !ret);
|
71245
|
-
if (!ret)
|
71246
|
-
ret = [p.
|
71247
|
-
}
|
71215
|
+
if (!ret)
|
71216
|
+
ret = [p.substr(0, pathSize - 1), "", true];
|
71248
71217
|
}
|
71249
71218
|
return ret;
|
71250
71219
|
};
|
@@ -71292,15 +71261,13 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
71292
71261
|
}
|
71293
71262
|
encode() {
|
71294
71263
|
const body = this.encodeBody();
|
71295
|
-
if (body === "")
|
71264
|
+
if (body === "")
|
71296
71265
|
return null;
|
71297
|
-
}
|
71298
71266
|
const bodyLen = Buffer.byteLength(body);
|
71299
71267
|
const bufLen = 512 * Math.ceil(1 + bodyLen / 512);
|
71300
71268
|
const buf = Buffer.allocUnsafe(bufLen);
|
71301
|
-
for (let i = 0; i < 512; i++)
|
71269
|
+
for (let i = 0; i < 512; i++)
|
71302
71270
|
buf[i] = 0;
|
71303
|
-
}
|
71304
71271
|
new Header({
|
71305
71272
|
path: ("PaxHeader/" + path.basename(this.path)).slice(0, 99),
|
71306
71273
|
mode: this.mode || 420,
|
@@ -71318,25 +71285,22 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
71318
71285
|
ctime: this.ctime || null
|
71319
71286
|
}).encode(buf);
|
71320
71287
|
buf.write(body, 512, bodyLen, "utf8");
|
71321
|
-
for (let i = bodyLen + 512; i < buf.length; i++)
|
71288
|
+
for (let i = bodyLen + 512; i < buf.length; i++)
|
71322
71289
|
buf[i] = 0;
|
71323
|
-
}
|
71324
71290
|
return buf;
|
71325
71291
|
}
|
71326
71292
|
encodeBody() {
|
71327
71293
|
return this.encodeField("path") + this.encodeField("ctime") + this.encodeField("atime") + this.encodeField("dev") + this.encodeField("ino") + this.encodeField("nlink") + this.encodeField("charset") + this.encodeField("comment") + this.encodeField("gid") + this.encodeField("gname") + this.encodeField("linkpath") + this.encodeField("mtime") + this.encodeField("size") + this.encodeField("uid") + this.encodeField("uname");
|
71328
71294
|
}
|
71329
71295
|
encodeField(field) {
|
71330
|
-
if (this[field] === null || this[field] === void 0)
|
71296
|
+
if (this[field] === null || this[field] === void 0)
|
71331
71297
|
return "";
|
71332
|
-
}
|
71333
71298
|
const v = this[field] instanceof Date ? this[field].getTime() / 1e3 : this[field];
|
71334
71299
|
const s = " " + (field === "dev" || field === "ino" || field === "nlink" ? "SCHILY." : "") + field + "=" + v + "\n";
|
71335
71300
|
const byteLen = Buffer.byteLength(s);
|
71336
71301
|
let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1;
|
71337
|
-
if (byteLen + digits >= Math.pow(10, digits))
|
71302
|
+
if (byteLen + digits >= Math.pow(10, digits))
|
71338
71303
|
digits += 1;
|
71339
|
-
}
|
71340
71304
|
const len = digits + byteLen;
|
71341
71305
|
return len + s;
|
71342
71306
|
}
|
@@ -71346,15 +71310,13 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
71346
71310
|
var parseKV = (string) => string.replace(/\n$/, "").split("\n").reduce(parseKVLine, /* @__PURE__ */ Object.create(null));
|
71347
71311
|
var parseKVLine = (set, line) => {
|
71348
71312
|
const n = parseInt(line, 10);
|
71349
|
-
if (n !== Buffer.byteLength(line) + 1)
|
71313
|
+
if (n !== Buffer.byteLength(line) + 1)
|
71350
71314
|
return set;
|
71351
|
-
|
71352
|
-
line = line.slice((n + " ").length);
|
71315
|
+
line = line.substr((n + " ").length);
|
71353
71316
|
const kv = line.split("=");
|
71354
71317
|
const k = kv.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
|
71355
|
-
if (!k)
|
71318
|
+
if (!k)
|
71356
71319
|
return set;
|
71357
|
-
}
|
71358
71320
|
const v = kv.join("=");
|
71359
71321
|
set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ? new Date(v * 1e3) : /^[0-9]+$/.test(v) ? +v : v;
|
71360
71322
|
return set;
|
@@ -71376,12 +71338,10 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
71376
71338
|
"use strict";
|
71377
71339
|
module2.exports = (Base) => class extends Base {
|
71378
71340
|
warn(code, message, data = {}) {
|
71379
|
-
if (this.file)
|
71341
|
+
if (this.file)
|
71380
71342
|
data.file = this.file;
|
71381
|
-
|
71382
|
-
if (this.cwd) {
|
71343
|
+
if (this.cwd)
|
71383
71344
|
data.cwd = this.cwd;
|
71384
|
-
}
|
71385
71345
|
data.code = message instanceof Error && message.code || code;
|
71386
71346
|
data.tarCode = code;
|
71387
71347
|
if (!this.strict && data.recoverable !== false) {
|
@@ -71390,11 +71350,10 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
71390
71350
|
message = message.message;
|
71391
71351
|
}
|
71392
71352
|
this.emit("warn", data.tarCode, message, data);
|
71393
|
-
} else if (message instanceof Error)
|
71353
|
+
} else if (message instanceof Error)
|
71394
71354
|
this.emit("error", Object.assign(message, data));
|
71395
|
-
|
71355
|
+
else
|
71396
71356
|
this.emit("error", Object.assign(new Error(`${code}: ${message}`), data));
|
71397
|
-
}
|
71398
71357
|
}
|
71399
71358
|
};
|
71400
71359
|
});
|
@@ -71422,7 +71381,7 @@ var require_strip_absolute_path = __commonJSMin((exports, module2) => {
|
|
71422
71381
|
let parsed = parse(path);
|
71423
71382
|
while (isAbsolute(path) || parsed.root) {
|
71424
71383
|
const root = path.charAt(0) === "/" && path.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
71425
|
-
path = path.
|
71384
|
+
path = path.substr(root.length);
|
71426
71385
|
r += root;
|
71427
71386
|
parsed = parse(path);
|
71428
71387
|
}
|
@@ -71433,19 +71392,15 @@ var require_mode_fix = __commonJSMin((exports, module2) => {
|
|
71433
71392
|
"use strict";
|
71434
71393
|
module2.exports = (mode, isDir, portable) => {
|
71435
71394
|
mode &= 4095;
|
71436
|
-
if (portable)
|
71395
|
+
if (portable)
|
71437
71396
|
mode = (mode | 384) & ~18;
|
71438
|
-
}
|
71439
71397
|
if (isDir) {
|
71440
|
-
if (mode & 256)
|
71398
|
+
if (mode & 256)
|
71441
71399
|
mode |= 64;
|
71442
|
-
|
71443
|
-
if (mode & 32) {
|
71400
|
+
if (mode & 32)
|
71444
71401
|
mode |= 8;
|
71445
|
-
|
71446
|
-
if (mode & 4) {
|
71402
|
+
if (mode & 4)
|
71447
71403
|
mode |= 1;
|
71448
|
-
}
|
71449
71404
|
}
|
71450
71405
|
return mode;
|
71451
71406
|
};
|
@@ -71460,9 +71415,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71460
71415
|
var normPath = require_normalize_windows_path();
|
71461
71416
|
var stripSlash = require_strip_trailing_slashes();
|
71462
71417
|
var prefixPath = (path2, prefix) => {
|
71463
|
-
if (!prefix)
|
71418
|
+
if (!prefix)
|
71464
71419
|
return normPath(path2);
|
71465
|
-
}
|
71466
71420
|
path2 = normPath(path2).replace(/^\.(\/|$)/, "");
|
71467
71421
|
return stripSlash(prefix) + "/" + path2;
|
71468
71422
|
};
|
@@ -71494,9 +71448,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71494
71448
|
constructor(p, opt) {
|
71495
71449
|
opt = opt || {};
|
71496
71450
|
super(opt);
|
71497
|
-
if (typeof p !== "string")
|
71451
|
+
if (typeof p !== "string")
|
71498
71452
|
throw new TypeError("path is required");
|
71499
|
-
}
|
71500
71453
|
this.path = normPath(p);
|
71501
71454
|
this.portable = !!opt.portable;
|
71502
71455
|
this.myuid = process.getuid && process.getuid() || 0;
|
@@ -71519,9 +71472,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71519
71472
|
this.length = null;
|
71520
71473
|
this.pos = null;
|
71521
71474
|
this.remain = null;
|
71522
|
-
if (typeof opt.onwarn === "function")
|
71475
|
+
if (typeof opt.onwarn === "function")
|
71523
71476
|
this.on("warn", opt.onwarn);
|
71524
|
-
}
|
71525
71477
|
let pathWarn = false;
|
71526
71478
|
if (!this.preservePaths) {
|
71527
71479
|
const [root, stripped] = stripAbsolutePath(this.path);
|
@@ -71536,41 +71488,36 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71536
71488
|
p = p.replace(/\\/g, "/");
|
71537
71489
|
}
|
71538
71490
|
this.absolute = normPath(opt.absolute || path.resolve(this.cwd, p));
|
71539
|
-
if (this.path === "")
|
71491
|
+
if (this.path === "")
|
71540
71492
|
this.path = "./";
|
71541
|
-
}
|
71542
71493
|
if (pathWarn) {
|
71543
71494
|
this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
71544
71495
|
entry: this,
|
71545
71496
|
path: pathWarn + this.path
|
71546
71497
|
});
|
71547
71498
|
}
|
71548
|
-
if (this.statCache.has(this.absolute))
|
71499
|
+
if (this.statCache.has(this.absolute))
|
71549
71500
|
this[ONLSTAT](this.statCache.get(this.absolute));
|
71550
|
-
|
71501
|
+
else
|
71551
71502
|
this[LSTAT]();
|
71552
|
-
}
|
71553
71503
|
}
|
71554
71504
|
emit(ev, ...data) {
|
71555
|
-
if (ev === "error")
|
71505
|
+
if (ev === "error")
|
71556
71506
|
this[HAD_ERROR] = true;
|
71557
|
-
}
|
71558
71507
|
return super.emit(ev, ...data);
|
71559
71508
|
}
|
71560
71509
|
[LSTAT]() {
|
71561
71510
|
fs.lstat(this.absolute, (er, stat) => {
|
71562
|
-
if (er)
|
71511
|
+
if (er)
|
71563
71512
|
return this.emit("error", er);
|
71564
|
-
}
|
71565
71513
|
this[ONLSTAT](stat);
|
71566
71514
|
});
|
71567
71515
|
}
|
71568
71516
|
[ONLSTAT](stat) {
|
71569
71517
|
this.statCache.set(this.absolute, stat);
|
71570
71518
|
this.stat = stat;
|
71571
|
-
if (!stat.isFile())
|
71519
|
+
if (!stat.isFile())
|
71572
71520
|
stat.size = 0;
|
71573
|
-
}
|
71574
71521
|
this.type = getType(stat);
|
71575
71522
|
this.emit("stat", stat);
|
71576
71523
|
this[PROCESS]();
|
@@ -71594,9 +71541,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71594
71541
|
return prefixPath(path2, this.prefix);
|
71595
71542
|
}
|
71596
71543
|
[HEADER]() {
|
71597
|
-
if (this.type === "Directory" && this.portable)
|
71544
|
+
if (this.type === "Directory" && this.portable)
|
71598
71545
|
this.noMtime = true;
|
71599
|
-
}
|
71600
71546
|
this.header = new Header({
|
71601
71547
|
path: this[PREFIX](this.path),
|
71602
71548
|
linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
|
@@ -71629,18 +71575,16 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71629
71575
|
super.write(this.header.block);
|
71630
71576
|
}
|
71631
71577
|
[DIRECTORY]() {
|
71632
|
-
if (this.path.
|
71578
|
+
if (this.path.substr(-1) !== "/")
|
71633
71579
|
this.path += "/";
|
71634
|
-
}
|
71635
71580
|
this.stat.size = 0;
|
71636
71581
|
this[HEADER]();
|
71637
71582
|
this.end();
|
71638
71583
|
}
|
71639
71584
|
[SYMLINK]() {
|
71640
71585
|
fs.readlink(this.absolute, (er, linkpath) => {
|
71641
|
-
if (er)
|
71586
|
+
if (er)
|
71642
71587
|
return this.emit("error", er);
|
71643
|
-
}
|
71644
71588
|
this[ONREADLINK](linkpath);
|
71645
71589
|
});
|
71646
71590
|
}
|
@@ -71661,31 +71605,27 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71661
71605
|
const linkKey = this.stat.dev + ":" + this.stat.ino;
|
71662
71606
|
if (this.linkCache.has(linkKey)) {
|
71663
71607
|
const linkpath = this.linkCache.get(linkKey);
|
71664
|
-
if (linkpath.indexOf(this.cwd) === 0)
|
71608
|
+
if (linkpath.indexOf(this.cwd) === 0)
|
71665
71609
|
return this[HARDLINK](linkpath);
|
71666
|
-
}
|
71667
71610
|
}
|
71668
71611
|
this.linkCache.set(linkKey, this.absolute);
|
71669
71612
|
}
|
71670
71613
|
this[HEADER]();
|
71671
|
-
if (this.stat.size === 0)
|
71614
|
+
if (this.stat.size === 0)
|
71672
71615
|
return this.end();
|
71673
|
-
}
|
71674
71616
|
this[OPENFILE]();
|
71675
71617
|
}
|
71676
71618
|
[OPENFILE]() {
|
71677
71619
|
fs.open(this.absolute, "r", (er, fd) => {
|
71678
|
-
if (er)
|
71620
|
+
if (er)
|
71679
71621
|
return this.emit("error", er);
|
71680
|
-
}
|
71681
71622
|
this[ONOPENFILE](fd);
|
71682
71623
|
});
|
71683
71624
|
}
|
71684
71625
|
[ONOPENFILE](fd) {
|
71685
71626
|
this.fd = fd;
|
71686
|
-
if (this[HAD_ERROR])
|
71627
|
+
if (this[HAD_ERROR])
|
71687
71628
|
return this[CLOSE]();
|
71688
|
-
}
|
71689
71629
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512);
|
71690
71630
|
this.blockRemain = this.blockLen;
|
71691
71631
|
const bufLen = Math.min(this.blockLen, this.maxReadSize);
|
@@ -71732,11 +71672,10 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71732
71672
|
}
|
71733
71673
|
const writeBuf = this.offset === 0 && bytesRead === this.buf.length ? this.buf : this.buf.slice(this.offset, this.offset + bytesRead);
|
71734
71674
|
const flushed = this.write(writeBuf);
|
71735
|
-
if (!flushed)
|
71675
|
+
if (!flushed)
|
71736
71676
|
this[AWAITDRAIN](() => this[ONDRAIN]());
|
71737
|
-
|
71677
|
+
else
|
71738
71678
|
this[ONDRAIN]();
|
71739
|
-
}
|
71740
71679
|
}
|
71741
71680
|
[AWAITDRAIN](cb) {
|
71742
71681
|
this.once("drain", cb);
|
@@ -71755,9 +71694,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71755
71694
|
}
|
71756
71695
|
[ONDRAIN]() {
|
71757
71696
|
if (!this.remain) {
|
71758
|
-
if (this.blockRemain)
|
71697
|
+
if (this.blockRemain)
|
71759
71698
|
super.write(Buffer.alloc(this.blockRemain));
|
71760
|
-
}
|
71761
71699
|
return this[CLOSE]((er) => er ? this.emit("error", er) : this.end());
|
71762
71700
|
}
|
71763
71701
|
if (this.offset >= this.length) {
|
@@ -71814,9 +71752,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71814
71752
|
this.noMtime = !!opt.noMtime;
|
71815
71753
|
this.readEntry = readEntry;
|
71816
71754
|
this.type = readEntry.type;
|
71817
|
-
if (this.type === "Directory" && this.portable)
|
71755
|
+
if (this.type === "Directory" && this.portable)
|
71818
71756
|
this.noMtime = true;
|
71819
|
-
}
|
71820
71757
|
this.prefix = opt.prefix || null;
|
71821
71758
|
this.path = normPath(readEntry.path);
|
71822
71759
|
this.mode = this[MODE](readEntry.mode);
|
@@ -71829,9 +71766,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71829
71766
|
this.atime = this.portable ? null : readEntry.atime;
|
71830
71767
|
this.ctime = this.portable ? null : readEntry.ctime;
|
71831
71768
|
this.linkpath = normPath(readEntry.linkpath);
|
71832
|
-
if (typeof opt.onwarn === "function")
|
71769
|
+
if (typeof opt.onwarn === "function")
|
71833
71770
|
this.on("warn", opt.onwarn);
|
71834
|
-
}
|
71835
71771
|
let pathWarn = false;
|
71836
71772
|
if (!this.preservePaths) {
|
71837
71773
|
const [root, stripped] = stripAbsolutePath(this.path);
|
@@ -71888,16 +71824,14 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71888
71824
|
}
|
71889
71825
|
write(data) {
|
71890
71826
|
const writeLen = data.length;
|
71891
|
-
if (writeLen > this.blockRemain)
|
71827
|
+
if (writeLen > this.blockRemain)
|
71892
71828
|
throw new Error("writing more to entry than is appropriate");
|
71893
|
-
}
|
71894
71829
|
this.blockRemain -= writeLen;
|
71895
71830
|
return super.write(data);
|
71896
71831
|
}
|
71897
71832
|
end() {
|
71898
|
-
if (this.blockRemain)
|
71833
|
+
if (this.blockRemain)
|
71899
71834
|
super.write(Buffer.alloc(this.blockRemain));
|
71900
|
-
}
|
71901
71835
|
return super.end();
|
71902
71836
|
}
|
71903
71837
|
});
|
@@ -72343,26 +72277,22 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72343
72277
|
this.statCache = opt.statCache || /* @__PURE__ */ new Map();
|
72344
72278
|
this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map();
|
72345
72279
|
this[WRITEENTRYCLASS] = WriteEntry;
|
72346
|
-
if (typeof opt.onwarn === "function")
|
72280
|
+
if (typeof opt.onwarn === "function")
|
72347
72281
|
this.on("warn", opt.onwarn);
|
72348
|
-
}
|
72349
72282
|
this.portable = !!opt.portable;
|
72350
72283
|
this.zip = null;
|
72351
72284
|
if (opt.gzip) {
|
72352
|
-
if (typeof opt.gzip !== "object")
|
72285
|
+
if (typeof opt.gzip !== "object")
|
72353
72286
|
opt.gzip = {};
|
72354
|
-
|
72355
|
-
if (this.portable) {
|
72287
|
+
if (this.portable)
|
72356
72288
|
opt.gzip.portable = true;
|
72357
|
-
}
|
72358
72289
|
this.zip = new zlib.Gzip(opt.gzip);
|
72359
72290
|
this.zip.on("data", (chunk) => super.write(chunk));
|
72360
72291
|
this.zip.on("end", (_) => super.end());
|
72361
72292
|
this.zip.on("drain", (_) => this[ONDRAIN]());
|
72362
72293
|
this.on("resume", (_) => this.zip.resume());
|
72363
|
-
} else
|
72294
|
+
} else
|
72364
72295
|
this.on("drain", this[ONDRAIN]);
|
72365
|
-
}
|
72366
72296
|
this.noDirRecurse = !!opt.noDirRecurse;
|
72367
72297
|
this.follow = !!opt.follow;
|
72368
72298
|
this.noMtime = !!opt.noMtime;
|
@@ -72382,29 +72312,26 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72382
72312
|
return this;
|
72383
72313
|
}
|
72384
72314
|
end(path2) {
|
72385
|
-
if (path2)
|
72315
|
+
if (path2)
|
72386
72316
|
this.write(path2);
|
72387
|
-
}
|
72388
72317
|
this[ENDED] = true;
|
72389
72318
|
this[PROCESS]();
|
72390
72319
|
return this;
|
72391
72320
|
}
|
72392
72321
|
write(path2) {
|
72393
|
-
if (this[ENDED])
|
72322
|
+
if (this[ENDED])
|
72394
72323
|
throw new Error("write after end");
|
72395
|
-
|
72396
|
-
if (path2 instanceof ReadEntry) {
|
72324
|
+
if (path2 instanceof ReadEntry)
|
72397
72325
|
this[ADDTARENTRY](path2);
|
72398
|
-
|
72326
|
+
else
|
72399
72327
|
this[ADDFSENTRY](path2);
|
72400
|
-
}
|
72401
72328
|
return this.flowing;
|
72402
72329
|
}
|
72403
72330
|
[ADDTARENTRY](p) {
|
72404
72331
|
const absolute = normPath(path.resolve(this.cwd, p.path));
|
72405
|
-
if (!this.filter(p.path, p))
|
72332
|
+
if (!this.filter(p.path, p))
|
72406
72333
|
p.resume();
|
72407
|
-
|
72334
|
+
else {
|
72408
72335
|
const job = new PackJob(p.path, absolute, false);
|
72409
72336
|
job.entry = new WriteEntryTar(p, this[ENTRYOPT](job));
|
72410
72337
|
job.entry.on("end", (_) => this[JOBDONE](job));
|
@@ -72425,19 +72352,17 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72425
72352
|
fs[stat](job.absolute, (er, stat2) => {
|
72426
72353
|
job.pending = false;
|
72427
72354
|
this[JOBS] -= 1;
|
72428
|
-
if (er)
|
72355
|
+
if (er)
|
72429
72356
|
this.emit("error", er);
|
72430
|
-
|
72357
|
+
else
|
72431
72358
|
this[ONSTAT](job, stat2);
|
72432
|
-
}
|
72433
72359
|
});
|
72434
72360
|
}
|
72435
72361
|
[ONSTAT](job, stat) {
|
72436
72362
|
this.statCache.set(job.absolute, stat);
|
72437
72363
|
job.stat = stat;
|
72438
|
-
if (!this.filter(job.path, stat))
|
72364
|
+
if (!this.filter(job.path, stat))
|
72439
72365
|
job.ignore = true;
|
72440
|
-
}
|
72441
72366
|
this[PROCESS]();
|
72442
72367
|
}
|
72443
72368
|
[READDIR](job) {
|
@@ -72446,9 +72371,8 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72446
72371
|
fs.readdir(job.absolute, (er, entries) => {
|
72447
72372
|
job.pending = false;
|
72448
72373
|
this[JOBS] -= 1;
|
72449
|
-
if (er)
|
72374
|
+
if (er)
|
72450
72375
|
return this.emit("error", er);
|
72451
|
-
}
|
72452
72376
|
this[ONREADDIR](job, entries);
|
72453
72377
|
});
|
72454
72378
|
}
|
@@ -72458,9 +72382,8 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72458
72382
|
this[PROCESS]();
|
72459
72383
|
}
|
72460
72384
|
[PROCESS]() {
|
72461
|
-
if (this[PROCESSING])
|
72385
|
+
if (this[PROCESSING])
|
72462
72386
|
return;
|
72463
|
-
}
|
72464
72387
|
this[PROCESSING] = true;
|
72465
72388
|
for (let w = this[QUEUE].head; w !== null && this[JOBS] < this.jobs; w = w.next) {
|
72466
72389
|
this[PROCESSJOB](w.value);
|
@@ -72472,9 +72395,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72472
72395
|
}
|
72473
72396
|
this[PROCESSING] = false;
|
72474
72397
|
if (this[ENDED] && !this[QUEUE].length && this[JOBS] === 0) {
|
72475
|
-
if (this.zip)
|
72398
|
+
if (this.zip)
|
72476
72399
|
this.zip.end(EOF);
|
72477
|
-
|
72400
|
+
else {
|
72478
72401
|
super.write(EOF);
|
72479
72402
|
super.end();
|
72480
72403
|
}
|
@@ -72489,46 +72412,38 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72489
72412
|
this[PROCESS]();
|
72490
72413
|
}
|
72491
72414
|
[PROCESSJOB](job) {
|
72492
|
-
if (job.pending)
|
72415
|
+
if (job.pending)
|
72493
72416
|
return;
|
72494
|
-
}
|
72495
72417
|
if (job.entry) {
|
72496
|
-
if (job === this[CURRENT] && !job.piped)
|
72418
|
+
if (job === this[CURRENT] && !job.piped)
|
72497
72419
|
this[PIPE](job);
|
72498
|
-
}
|
72499
72420
|
return;
|
72500
72421
|
}
|
72501
72422
|
if (!job.stat) {
|
72502
|
-
if (this.statCache.has(job.absolute))
|
72423
|
+
if (this.statCache.has(job.absolute))
|
72503
72424
|
this[ONSTAT](job, this.statCache.get(job.absolute));
|
72504
|
-
|
72425
|
+
else
|
72505
72426
|
this[STAT](job);
|
72506
|
-
}
|
72507
72427
|
}
|
72508
|
-
if (!job.stat)
|
72428
|
+
if (!job.stat)
|
72509
72429
|
return;
|
72510
|
-
|
72511
|
-
if (job.ignore) {
|
72430
|
+
if (job.ignore)
|
72512
72431
|
return;
|
72513
|
-
}
|
72514
72432
|
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
72515
|
-
if (this.readdirCache.has(job.absolute))
|
72433
|
+
if (this.readdirCache.has(job.absolute))
|
72516
72434
|
this[ONREADDIR](job, this.readdirCache.get(job.absolute));
|
72517
|
-
|
72435
|
+
else
|
72518
72436
|
this[READDIR](job);
|
72519
|
-
|
72520
|
-
if (!job.readdir) {
|
72437
|
+
if (!job.readdir)
|
72521
72438
|
return;
|
72522
|
-
}
|
72523
72439
|
}
|
72524
72440
|
job.entry = this[ENTRY](job);
|
72525
72441
|
if (!job.entry) {
|
72526
72442
|
job.ignore = true;
|
72527
72443
|
return;
|
72528
72444
|
}
|
72529
|
-
if (job === this[CURRENT] && !job.piped)
|
72445
|
+
if (job === this[CURRENT] && !job.piped)
|
72530
72446
|
this[PIPE](job);
|
72531
|
-
}
|
72532
72447
|
}
|
72533
72448
|
[ENTRYOPT](job) {
|
72534
72449
|
return {
|
@@ -72556,9 +72471,8 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72556
72471
|
}
|
72557
72472
|
}
|
72558
72473
|
[ONDRAIN]() {
|
72559
|
-
if (this[CURRENT] && this[CURRENT].entry)
|
72474
|
+
if (this[CURRENT] && this[CURRENT].entry)
|
72560
72475
|
this[CURRENT].entry.resume();
|
72561
|
-
}
|
72562
72476
|
}
|
72563
72477
|
[PIPE](job) {
|
72564
72478
|
job.piped = true;
|
@@ -72573,22 +72487,19 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72573
72487
|
const zip = this.zip;
|
72574
72488
|
if (zip) {
|
72575
72489
|
source.on("data", (chunk) => {
|
72576
|
-
if (!zip.write(chunk))
|
72490
|
+
if (!zip.write(chunk))
|
72577
72491
|
source.pause();
|
72578
|
-
}
|
72579
72492
|
});
|
72580
72493
|
} else {
|
72581
72494
|
source.on("data", (chunk) => {
|
72582
|
-
if (!super.write(chunk))
|
72495
|
+
if (!super.write(chunk))
|
72583
72496
|
source.pause();
|
72584
|
-
}
|
72585
72497
|
});
|
72586
72498
|
}
|
72587
72499
|
}
|
72588
72500
|
pause() {
|
72589
|
-
if (this.zip)
|
72501
|
+
if (this.zip)
|
72590
72502
|
this.zip.pause();
|
72591
|
-
}
|
72592
72503
|
return super.pause();
|
72593
72504
|
}
|
72594
72505
|
});
|
@@ -73000,7 +72911,6 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73000
72911
|
var Entry = require_read_entry();
|
73001
72912
|
var Pax = require_pax();
|
73002
72913
|
var zlib = require_minizlib();
|
73003
|
-
var { nextTick } = __require("process");
|
73004
72914
|
var gzipHeader = Buffer.from([31, 139]);
|
73005
72915
|
var STATE = Symbol("state");
|
73006
72916
|
var WRITEENTRY = Symbol("writeEntry");
|
@@ -73031,7 +72941,6 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73031
72941
|
var SAW_VALID_ENTRY = Symbol("sawValidEntry");
|
73032
72942
|
var SAW_NULL_BLOCK = Symbol("sawNullBlock");
|
73033
72943
|
var SAW_EOF = Symbol("sawEOF");
|
73034
|
-
var CLOSESTREAM = Symbol("closeStream");
|
73035
72944
|
var noop = (_) => true;
|
73036
72945
|
module2.exports = warner(class Parser extends EE {
|
73037
72946
|
constructor(opt) {
|
@@ -73044,13 +72953,14 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73044
72953
|
this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
73045
72954
|
}
|
73046
72955
|
});
|
73047
|
-
if (opt.ondone)
|
72956
|
+
if (opt.ondone)
|
73048
72957
|
this.on(DONE, opt.ondone);
|
73049
|
-
|
72958
|
+
else {
|
73050
72959
|
this.on(DONE, (_) => {
|
73051
72960
|
this.emit("prefinish");
|
73052
72961
|
this.emit("finish");
|
73053
72962
|
this.emit("end");
|
72963
|
+
this.emit("close");
|
73054
72964
|
});
|
73055
72965
|
}
|
73056
72966
|
this.strict = !!opt.strict;
|
@@ -73071,18 +72981,14 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73071
72981
|
this[ABORTED] = false;
|
73072
72982
|
this[SAW_NULL_BLOCK] = false;
|
73073
72983
|
this[SAW_EOF] = false;
|
73074
|
-
|
73075
|
-
if (typeof opt.onwarn === "function") {
|
72984
|
+
if (typeof opt.onwarn === "function")
|
73076
72985
|
this.on("warn", opt.onwarn);
|
73077
|
-
|
73078
|
-
if (typeof opt.onentry === "function") {
|
72986
|
+
if (typeof opt.onentry === "function")
|
73079
72987
|
this.on("entry", opt.onentry);
|
73080
|
-
}
|
73081
72988
|
}
|
73082
72989
|
[CONSUMEHEADER](chunk, position) {
|
73083
|
-
if (this[SAW_VALID_ENTRY] === null)
|
72990
|
+
if (this[SAW_VALID_ENTRY] === null)
|
73084
72991
|
this[SAW_VALID_ENTRY] = false;
|
73085
|
-
}
|
73086
72992
|
let header;
|
73087
72993
|
try {
|
73088
72994
|
header = new Header(chunk, position, this[EX], this[GEX]);
|
@@ -73092,9 +72998,8 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73092
72998
|
if (header.nullBlock) {
|
73093
72999
|
if (this[SAW_NULL_BLOCK]) {
|
73094
73000
|
this[SAW_EOF] = true;
|
73095
|
-
if (this[STATE] === "begin")
|
73001
|
+
if (this[STATE] === "begin")
|
73096
73002
|
this[STATE] = "header";
|
73097
|
-
}
|
73098
73003
|
this[EMIT]("eof");
|
73099
73004
|
} else {
|
73100
73005
|
this[SAW_NULL_BLOCK] = true;
|
@@ -73102,29 +73007,27 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73102
73007
|
}
|
73103
73008
|
} else {
|
73104
73009
|
this[SAW_NULL_BLOCK] = false;
|
73105
|
-
if (!header.cksumValid)
|
73010
|
+
if (!header.cksumValid)
|
73106
73011
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header });
|
73107
|
-
|
73012
|
+
else if (!header.path)
|
73108
73013
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header });
|
73109
|
-
|
73014
|
+
else {
|
73110
73015
|
const type = header.type;
|
73111
|
-
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
73016
|
+
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
73112
73017
|
this.warn("TAR_ENTRY_INVALID", "linkpath required", { header });
|
73113
|
-
|
73018
|
+
else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath)
|
73114
73019
|
this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header });
|
73115
|
-
|
73020
|
+
else {
|
73116
73021
|
const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX]);
|
73117
73022
|
if (!this[SAW_VALID_ENTRY]) {
|
73118
73023
|
if (entry.remain) {
|
73119
73024
|
const onend = () => {
|
73120
|
-
if (!entry.invalid)
|
73025
|
+
if (!entry.invalid)
|
73121
73026
|
this[SAW_VALID_ENTRY] = true;
|
73122
|
-
}
|
73123
73027
|
};
|
73124
73028
|
entry.on("end", onend);
|
73125
|
-
} else
|
73029
|
+
} else
|
73126
73030
|
this[SAW_VALID_ENTRY] = true;
|
73127
|
-
}
|
73128
73031
|
}
|
73129
73032
|
if (entry.meta) {
|
73130
73033
|
if (entry.size > this.maxMetaEntrySize) {
|
@@ -73145,35 +73048,31 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73145
73048
|
this[STATE] = entry.remain ? "ignore" : "header";
|
73146
73049
|
entry.resume();
|
73147
73050
|
} else {
|
73148
|
-
if (entry.remain)
|
73051
|
+
if (entry.remain)
|
73149
73052
|
this[STATE] = "body";
|
73150
|
-
|
73053
|
+
else {
|
73151
73054
|
this[STATE] = "header";
|
73152
73055
|
entry.end();
|
73153
73056
|
}
|
73154
73057
|
if (!this[READENTRY]) {
|
73155
73058
|
this[QUEUE].push(entry);
|
73156
73059
|
this[NEXTENTRY]();
|
73157
|
-
} else
|
73060
|
+
} else
|
73158
73061
|
this[QUEUE].push(entry);
|
73159
|
-
}
|
73160
73062
|
}
|
73161
73063
|
}
|
73162
73064
|
}
|
73163
73065
|
}
|
73164
73066
|
}
|
73165
73067
|
}
|
73166
|
-
[CLOSESTREAM]() {
|
73167
|
-
nextTick(() => this.emit("close"));
|
73168
|
-
}
|
73169
73068
|
[PROCESSENTRY](entry) {
|
73170
73069
|
let go = true;
|
73171
73070
|
if (!entry) {
|
73172
73071
|
this[READENTRY] = null;
|
73173
73072
|
go = false;
|
73174
|
-
} else if (Array.isArray(entry))
|
73073
|
+
} else if (Array.isArray(entry))
|
73175
73074
|
this.emit.apply(this, entry);
|
73176
|
-
|
73075
|
+
else {
|
73177
73076
|
this[READENTRY] = entry;
|
73178
73077
|
this.emit("entry", entry);
|
73179
73078
|
if (!entry.emittedEnd) {
|
@@ -73190,12 +73089,10 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73190
73089
|
const re = this[READENTRY];
|
73191
73090
|
const drainNow = !re || re.flowing || re.size === re.remain;
|
73192
73091
|
if (drainNow) {
|
73193
|
-
if (!this[WRITING])
|
73092
|
+
if (!this[WRITING])
|
73194
73093
|
this.emit("drain");
|
73195
|
-
|
73196
|
-
} else {
|
73094
|
+
} else
|
73197
73095
|
re.once("drain", (_) => this.emit("drain"));
|
73198
|
-
}
|
73199
73096
|
}
|
73200
73097
|
}
|
73201
73098
|
[CONSUMEBODY](chunk, position) {
|
@@ -73213,17 +73110,15 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73213
73110
|
[CONSUMEMETA](chunk, position) {
|
73214
73111
|
const entry = this[WRITEENTRY];
|
73215
73112
|
const ret = this[CONSUMEBODY](chunk, position);
|
73216
|
-
if (!this[WRITEENTRY])
|
73113
|
+
if (!this[WRITEENTRY])
|
73217
73114
|
this[EMITMETA](entry);
|
73218
|
-
}
|
73219
73115
|
return ret;
|
73220
73116
|
}
|
73221
73117
|
[EMIT](ev, data, extra) {
|
73222
|
-
if (!this[QUEUE].length && !this[READENTRY])
|
73118
|
+
if (!this[QUEUE].length && !this[READENTRY])
|
73223
73119
|
this.emit(ev, data, extra);
|
73224
|
-
|
73120
|
+
else
|
73225
73121
|
this[QUEUE].push([ev, data, extra]);
|
73226
|
-
}
|
73227
73122
|
}
|
73228
73123
|
[EMITMETA](entry) {
|
73229
73124
|
this[EMIT]("meta", this[META]);
|
@@ -73254,9 +73149,8 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73254
73149
|
this.warn("TAR_ABORT", error, { recoverable: false });
|
73255
73150
|
}
|
73256
73151
|
write(chunk) {
|
73257
|
-
if (this[ABORTED])
|
73152
|
+
if (this[ABORTED])
|
73258
73153
|
return;
|
73259
|
-
}
|
73260
73154
|
if (this[UNZIP] === null && chunk) {
|
73261
73155
|
if (this[BUFFER]) {
|
73262
73156
|
chunk = Buffer.concat([this[BUFFER], chunk]);
|
@@ -73267,9 +73161,8 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73267
73161
|
return true;
|
73268
73162
|
}
|
73269
73163
|
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
73270
|
-
if (chunk[i] !== gzipHeader[i])
|
73164
|
+
if (chunk[i] !== gzipHeader[i])
|
73271
73165
|
this[UNZIP] = false;
|
73272
|
-
}
|
73273
73166
|
}
|
73274
73167
|
if (this[UNZIP] === null) {
|
73275
73168
|
const ended = this[ENDED];
|
@@ -73288,22 +73181,19 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73288
73181
|
}
|
73289
73182
|
}
|
73290
73183
|
this[WRITING] = true;
|
73291
|
-
if (this[UNZIP])
|
73184
|
+
if (this[UNZIP])
|
73292
73185
|
this[UNZIP].write(chunk);
|
73293
|
-
|
73186
|
+
else
|
73294
73187
|
this[CONSUMECHUNK](chunk);
|
73295
|
-
}
|
73296
73188
|
this[WRITING] = false;
|
73297
73189
|
const ret = this[QUEUE].length ? false : this[READENTRY] ? this[READENTRY].flowing : true;
|
73298
|
-
if (!ret && !this[QUEUE].length)
|
73190
|
+
if (!ret && !this[QUEUE].length)
|
73299
73191
|
this[READENTRY].once("drain", (_) => this.emit("drain"));
|
73300
|
-
}
|
73301
73192
|
return ret;
|
73302
73193
|
}
|
73303
73194
|
[BUFFERCONCAT](c) {
|
73304
|
-
if (c && !this[ABORTED])
|
73195
|
+
if (c && !this[ABORTED])
|
73305
73196
|
this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c;
|
73306
|
-
}
|
73307
73197
|
}
|
73308
73198
|
[MAYBEEND]() {
|
73309
73199
|
if (this[ENDED] && !this[EMITTEDEND] && !this[ABORTED] && !this[CONSUMING]) {
|
@@ -73312,29 +73202,27 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73312
73202
|
if (entry && entry.blockRemain) {
|
73313
73203
|
const have = this[BUFFER] ? this[BUFFER].length : 0;
|
73314
73204
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${entry.blockRemain} more bytes, only ${have} available)`, { entry });
|
73315
|
-
if (this[BUFFER])
|
73205
|
+
if (this[BUFFER])
|
73316
73206
|
entry.write(this[BUFFER]);
|
73317
|
-
}
|
73318
73207
|
entry.end();
|
73319
73208
|
}
|
73320
73209
|
this[EMIT](DONE);
|
73321
73210
|
}
|
73322
73211
|
}
|
73323
73212
|
[CONSUMECHUNK](chunk) {
|
73324
|
-
if (this[CONSUMING])
|
73213
|
+
if (this[CONSUMING])
|
73325
73214
|
this[BUFFERCONCAT](chunk);
|
73326
|
-
|
73215
|
+
else if (!chunk && !this[BUFFER])
|
73327
73216
|
this[MAYBEEND]();
|
73328
|
-
|
73217
|
+
else {
|
73329
73218
|
this[CONSUMING] = true;
|
73330
73219
|
if (this[BUFFER]) {
|
73331
73220
|
this[BUFFERCONCAT](chunk);
|
73332
73221
|
const c = this[BUFFER];
|
73333
73222
|
this[BUFFER] = null;
|
73334
73223
|
this[CONSUMECHUNKSUB](c);
|
73335
|
-
} else
|
73224
|
+
} else
|
73336
73225
|
this[CONSUMECHUNKSUB](chunk);
|
73337
|
-
}
|
73338
73226
|
while (this[BUFFER] && this[BUFFER].length >= 512 && !this[ABORTED] && !this[SAW_EOF]) {
|
73339
73227
|
const c = this[BUFFER];
|
73340
73228
|
this[BUFFER] = null;
|
@@ -73342,9 +73230,8 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73342
73230
|
}
|
73343
73231
|
this[CONSUMING] = false;
|
73344
73232
|
}
|
73345
|
-
if (!this[BUFFER] || this[ENDED])
|
73233
|
+
if (!this[BUFFER] || this[ENDED])
|
73346
73234
|
this[MAYBEEND]();
|
73347
|
-
}
|
73348
73235
|
}
|
73349
73236
|
[CONSUMECHUNKSUB](chunk) {
|
73350
73237
|
let position = 0;
|
@@ -73368,18 +73255,17 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73368
73255
|
}
|
73369
73256
|
}
|
73370
73257
|
if (position < length) {
|
73371
|
-
if (this[BUFFER])
|
73258
|
+
if (this[BUFFER])
|
73372
73259
|
this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]]);
|
73373
|
-
|
73260
|
+
else
|
73374
73261
|
this[BUFFER] = chunk.slice(position);
|
73375
|
-
}
|
73376
73262
|
}
|
73377
73263
|
}
|
73378
73264
|
end(chunk) {
|
73379
73265
|
if (!this[ABORTED]) {
|
73380
|
-
if (this[UNZIP])
|
73266
|
+
if (this[UNZIP])
|
73381
73267
|
this[UNZIP].end(chunk);
|
73382
|
-
|
73268
|
+
else {
|
73383
73269
|
this[ENDED] = true;
|
73384
73270
|
this.write(chunk);
|
73385
73271
|
}
|
@@ -73396,32 +73282,25 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
73396
73282
|
var path = __require("path");
|
73397
73283
|
var stripSlash = require_strip_trailing_slashes();
|
73398
73284
|
module2.exports = (opt_, files, cb) => {
|
73399
|
-
if (typeof opt_ === "function")
|
73285
|
+
if (typeof opt_ === "function")
|
73400
73286
|
cb = opt_, files = null, opt_ = {};
|
73401
|
-
|
73287
|
+
else if (Array.isArray(opt_))
|
73402
73288
|
files = opt_, opt_ = {};
|
73403
|
-
|
73404
|
-
if (typeof files === "function") {
|
73289
|
+
if (typeof files === "function")
|
73405
73290
|
cb = files, files = null;
|
73406
|
-
|
73407
|
-
if (!files) {
|
73291
|
+
if (!files)
|
73408
73292
|
files = [];
|
73409
|
-
|
73293
|
+
else
|
73410
73294
|
files = Array.from(files);
|
73411
|
-
}
|
73412
73295
|
const opt = hlo(opt_);
|
73413
|
-
if (opt.sync && typeof cb === "function")
|
73296
|
+
if (opt.sync && typeof cb === "function")
|
73414
73297
|
throw new TypeError("callback not supported for sync tar functions");
|
73415
|
-
|
73416
|
-
if (!opt.file && typeof cb === "function") {
|
73298
|
+
if (!opt.file && typeof cb === "function")
|
73417
73299
|
throw new TypeError("callback only supported with file option");
|
73418
|
-
|
73419
|
-
if (files.length) {
|
73300
|
+
if (files.length)
|
73420
73301
|
filesFilter(opt, files);
|
73421
|
-
|
73422
|
-
if (!opt.noResume) {
|
73302
|
+
if (!opt.noResume)
|
73423
73303
|
onentryFunction(opt);
|
73424
|
-
}
|
73425
73304
|
return opt.file && opt.sync ? listFileSync(opt) : opt.file ? listFile(opt, cb) : list(opt);
|
73426
73305
|
};
|
73427
73306
|
var onentryFunction = (opt) => {
|
@@ -73450,9 +73329,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
73450
73329
|
try {
|
73451
73330
|
const stat = fs.statSync(file);
|
73452
73331
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
73453
|
-
if (stat.size < readSize)
|
73332
|
+
if (stat.size < readSize)
|
73454
73333
|
p.end(fs.readFileSync(file));
|
73455
|
-
|
73334
|
+
else {
|
73456
73335
|
let pos = 0;
|
73457
73336
|
const buf = Buffer.allocUnsafe(readSize);
|
73458
73337
|
fd = fs.openSync(file, "r");
|
@@ -73481,9 +73360,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
73481
73360
|
parse.on("error", reject);
|
73482
73361
|
parse.on("end", resolve);
|
73483
73362
|
fs.stat(file, (er, stat) => {
|
73484
|
-
if (er)
|
73363
|
+
if (er)
|
73485
73364
|
reject(er);
|
73486
|
-
|
73365
|
+
else {
|
73487
73366
|
const stream = new fsm.ReadStream(file, {
|
73488
73367
|
readSize,
|
73489
73368
|
size: stat.size
|
@@ -73505,23 +73384,18 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
73505
73384
|
var t = require_list();
|
73506
73385
|
var path = __require("path");
|
73507
73386
|
module2.exports = (opt_, files, cb) => {
|
73508
|
-
if (typeof files === "function")
|
73387
|
+
if (typeof files === "function")
|
73509
73388
|
cb = files;
|
73510
|
-
|
73511
|
-
if (Array.isArray(opt_)) {
|
73389
|
+
if (Array.isArray(opt_))
|
73512
73390
|
files = opt_, opt_ = {};
|
73513
|
-
|
73514
|
-
if (!files || !Array.isArray(files) || !files.length) {
|
73391
|
+
if (!files || !Array.isArray(files) || !files.length)
|
73515
73392
|
throw new TypeError("no files or directories specified");
|
73516
|
-
}
|
73517
73393
|
files = Array.from(files);
|
73518
73394
|
const opt = hlo(opt_);
|
73519
|
-
if (opt.sync && typeof cb === "function")
|
73395
|
+
if (opt.sync && typeof cb === "function")
|
73520
73396
|
throw new TypeError("callback not supported for sync tar functions");
|
73521
|
-
|
73522
|
-
if (!opt.file && typeof cb === "function") {
|
73397
|
+
if (!opt.file && typeof cb === "function")
|
73523
73398
|
throw new TypeError("callback only supported with file option");
|
73524
|
-
}
|
73525
73399
|
return opt.file && opt.sync ? createFileSync(opt, files) : opt.file ? createFile(opt, files, cb) : opt.sync ? createSync(opt, files) : create(opt, files);
|
73526
73400
|
};
|
73527
73401
|
var createFileSync = (opt, files) => {
|
@@ -73550,14 +73424,13 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
73550
73424
|
files.forEach((file) => {
|
73551
73425
|
if (file.charAt(0) === "@") {
|
73552
73426
|
t({
|
73553
|
-
file: path.resolve(p.cwd, file.
|
73427
|
+
file: path.resolve(p.cwd, file.substr(1)),
|
73554
73428
|
sync: true,
|
73555
73429
|
noResume: true,
|
73556
73430
|
onentry: (entry) => p.add(entry)
|
73557
73431
|
});
|
73558
|
-
} else
|
73432
|
+
} else
|
73559
73433
|
p.add(file);
|
73560
|
-
}
|
73561
73434
|
});
|
73562
73435
|
p.end();
|
73563
73436
|
};
|
@@ -73566,13 +73439,12 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
73566
73439
|
const file = files.shift();
|
73567
73440
|
if (file.charAt(0) === "@") {
|
73568
73441
|
return t({
|
73569
|
-
file: path.resolve(p.cwd, file.
|
73442
|
+
file: path.resolve(p.cwd, file.substr(1)),
|
73570
73443
|
noResume: true,
|
73571
73444
|
onentry: (entry) => p.add(entry)
|
73572
73445
|
}).then((_) => addFilesAsync(p, files));
|
73573
|
-
} else
|
73446
|
+
} else
|
73574
73447
|
p.add(file);
|
73575
|
-
}
|
73576
73448
|
}
|
73577
73449
|
p.end();
|
73578
73450
|
};
|
@@ -73598,15 +73470,12 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73598
73470
|
var Header = require_header();
|
73599
73471
|
module2.exports = (opt_, files, cb) => {
|
73600
73472
|
const opt = hlo(opt_);
|
73601
|
-
if (!opt.file)
|
73473
|
+
if (!opt.file)
|
73602
73474
|
throw new TypeError("file is required");
|
73603
|
-
|
73604
|
-
if (opt.gzip) {
|
73475
|
+
if (opt.gzip)
|
73605
73476
|
throw new TypeError("cannot append to compressed archives");
|
73606
|
-
|
73607
|
-
if (!files || !Array.isArray(files) || !files.length) {
|
73477
|
+
if (!files || !Array.isArray(files) || !files.length)
|
73608
73478
|
throw new TypeError("no files or directories specified");
|
73609
|
-
}
|
73610
73479
|
files = Array.from(files);
|
73611
73480
|
return opt.sync ? replaceSync(opt, files) : replace(opt, files, cb);
|
73612
73481
|
};
|
@@ -73619,11 +73488,10 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73619
73488
|
try {
|
73620
73489
|
fd = fs.openSync(opt.file, "r+");
|
73621
73490
|
} catch (er) {
|
73622
|
-
if (er.code === "ENOENT")
|
73491
|
+
if (er.code === "ENOENT")
|
73623
73492
|
fd = fs.openSync(opt.file, "w+");
|
73624
|
-
|
73493
|
+
else
|
73625
73494
|
throw er;
|
73626
|
-
}
|
73627
73495
|
}
|
73628
73496
|
const st = fs.fstatSync(fd);
|
73629
73497
|
const headBuf = Buffer.alloc(512);
|
@@ -73631,25 +73499,20 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73631
73499
|
for (position = 0; position < st.size; position += 512) {
|
73632
73500
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
73633
73501
|
bytes = fs.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
73634
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
73502
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
73635
73503
|
throw new Error("cannot append to compressed archives");
|
73636
|
-
|
73637
|
-
if (!bytes) {
|
73504
|
+
if (!bytes)
|
73638
73505
|
break POSITION;
|
73639
|
-
}
|
73640
73506
|
}
|
73641
73507
|
const h = new Header(headBuf);
|
73642
|
-
if (!h.cksumValid)
|
73508
|
+
if (!h.cksumValid)
|
73643
73509
|
break;
|
73644
|
-
}
|
73645
73510
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
73646
|
-
if (position + entryBlockSize + 512 > st.size)
|
73511
|
+
if (position + entryBlockSize + 512 > st.size)
|
73647
73512
|
break;
|
73648
|
-
}
|
73649
73513
|
position += entryBlockSize;
|
73650
|
-
if (opt.mtimeCache)
|
73514
|
+
if (opt.mtimeCache)
|
73651
73515
|
opt.mtimeCache.set(h.path, h.mtime);
|
73652
|
-
}
|
73653
73516
|
}
|
73654
73517
|
threw = false;
|
73655
73518
|
streamSync(opt, p, position, fd, files);
|
@@ -73675,47 +73538,38 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73675
73538
|
const p = new Pack(opt);
|
73676
73539
|
const getPos = (fd, size, cb_) => {
|
73677
73540
|
const cb2 = (er, pos) => {
|
73678
|
-
if (er)
|
73541
|
+
if (er)
|
73679
73542
|
fs.close(fd, (_) => cb_(er));
|
73680
|
-
|
73543
|
+
else
|
73681
73544
|
cb_(null, pos);
|
73682
|
-
}
|
73683
73545
|
};
|
73684
73546
|
let position = 0;
|
73685
|
-
if (size === 0)
|
73547
|
+
if (size === 0)
|
73686
73548
|
return cb2(null, 0);
|
73687
|
-
}
|
73688
73549
|
let bufPos = 0;
|
73689
73550
|
const headBuf = Buffer.alloc(512);
|
73690
73551
|
const onread = (er, bytes) => {
|
73691
|
-
if (er)
|
73552
|
+
if (er)
|
73692
73553
|
return cb2(er);
|
73693
|
-
}
|
73694
73554
|
bufPos += bytes;
|
73695
73555
|
if (bufPos < 512 && bytes) {
|
73696
73556
|
return fs.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
73697
73557
|
}
|
73698
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
73558
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
73699
73559
|
return cb2(new Error("cannot append to compressed archives"));
|
73700
|
-
|
73701
|
-
if (bufPos < 512) {
|
73560
|
+
if (bufPos < 512)
|
73702
73561
|
return cb2(null, position);
|
73703
|
-
}
|
73704
73562
|
const h = new Header(headBuf);
|
73705
|
-
if (!h.cksumValid)
|
73563
|
+
if (!h.cksumValid)
|
73706
73564
|
return cb2(null, position);
|
73707
|
-
}
|
73708
73565
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
73709
|
-
if (position + entryBlockSize + 512 > size)
|
73566
|
+
if (position + entryBlockSize + 512 > size)
|
73710
73567
|
return cb2(null, position);
|
73711
|
-
}
|
73712
73568
|
position += entryBlockSize + 512;
|
73713
|
-
if (position >= size)
|
73569
|
+
if (position >= size)
|
73714
73570
|
return cb2(null, position);
|
73715
|
-
|
73716
|
-
if (opt.mtimeCache) {
|
73571
|
+
if (opt.mtimeCache)
|
73717
73572
|
opt.mtimeCache.set(h.path, h.mtime);
|
73718
|
-
}
|
73719
73573
|
bufPos = 0;
|
73720
73574
|
fs.read(fd, headBuf, 0, 512, position, onread);
|
73721
73575
|
};
|
@@ -73729,17 +73583,14 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73729
73583
|
flag = "w+";
|
73730
73584
|
return fs.open(opt.file, flag, onopen);
|
73731
73585
|
}
|
73732
|
-
if (er)
|
73586
|
+
if (er)
|
73733
73587
|
return reject(er);
|
73734
|
-
}
|
73735
73588
|
fs.fstat(fd, (er2, st) => {
|
73736
|
-
if (er2)
|
73589
|
+
if (er2)
|
73737
73590
|
return fs.close(fd, () => reject(er2));
|
73738
|
-
}
|
73739
73591
|
getPos(fd, st.size, (er3, position) => {
|
73740
|
-
if (er3)
|
73592
|
+
if (er3)
|
73741
73593
|
return reject(er3);
|
73742
|
-
}
|
73743
73594
|
const stream = new fsm.WriteStream(opt.file, {
|
73744
73595
|
fd,
|
73745
73596
|
start: position
|
@@ -73759,14 +73610,13 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73759
73610
|
files.forEach((file) => {
|
73760
73611
|
if (file.charAt(0) === "@") {
|
73761
73612
|
t({
|
73762
|
-
file: path.resolve(p.cwd, file.
|
73613
|
+
file: path.resolve(p.cwd, file.substr(1)),
|
73763
73614
|
sync: true,
|
73764
73615
|
noResume: true,
|
73765
73616
|
onentry: (entry) => p.add(entry)
|
73766
73617
|
});
|
73767
|
-
} else
|
73618
|
+
} else
|
73768
73619
|
p.add(file);
|
73769
|
-
}
|
73770
73620
|
});
|
73771
73621
|
p.end();
|
73772
73622
|
};
|
@@ -73775,13 +73625,12 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73775
73625
|
const file = files.shift();
|
73776
73626
|
if (file.charAt(0) === "@") {
|
73777
73627
|
return t({
|
73778
|
-
file: path.resolve(p.cwd, file.
|
73628
|
+
file: path.resolve(p.cwd, file.substr(1)),
|
73779
73629
|
noResume: true,
|
73780
73630
|
onentry: (entry) => p.add(entry)
|
73781
73631
|
}).then((_) => addFilesAsync(p, files));
|
73782
|
-
} else
|
73632
|
+
} else
|
73783
73633
|
p.add(file);
|
73784
|
-
}
|
73785
73634
|
}
|
73786
73635
|
p.end();
|
73787
73636
|
};
|
@@ -73792,24 +73641,20 @@ var require_update = __commonJSMin((exports, module2) => {
|
|
73792
73641
|
var r = require_replace();
|
73793
73642
|
module2.exports = (opt_, files, cb) => {
|
73794
73643
|
const opt = hlo(opt_);
|
73795
|
-
if (!opt.file)
|
73644
|
+
if (!opt.file)
|
73796
73645
|
throw new TypeError("file is required");
|
73797
|
-
|
73798
|
-
if (opt.gzip) {
|
73646
|
+
if (opt.gzip)
|
73799
73647
|
throw new TypeError("cannot append to compressed archives");
|
73800
|
-
|
73801
|
-
if (!files || !Array.isArray(files) || !files.length) {
|
73648
|
+
if (!files || !Array.isArray(files) || !files.length)
|
73802
73649
|
throw new TypeError("no files or directories specified");
|
73803
|
-
}
|
73804
73650
|
files = Array.from(files);
|
73805
73651
|
mtimeFilter(opt);
|
73806
73652
|
return r(opt, files, cb);
|
73807
73653
|
};
|
73808
73654
|
var mtimeFilter = (opt) => {
|
73809
73655
|
const filter = opt.filter;
|
73810
|
-
if (!opt.mtimeCache)
|
73656
|
+
if (!opt.mtimeCache)
|
73811
73657
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
73812
|
-
}
|
73813
73658
|
opt.filter = filter ? (path, stat) => filter(path, stat) && !(opt.mtimeCache.get(path) > stat.mtime) : (path, stat) => !(opt.mtimeCache.get(path) > stat.mtime);
|
73814
73659
|
};
|
73815
73660
|
});
|
@@ -74161,9 +74006,8 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74161
74006
|
var cSet = (cache, key, val) => cache.set(normPath(key), val);
|
74162
74007
|
var checkCwd = (dir, cb) => {
|
74163
74008
|
fs.stat(dir, (er, st) => {
|
74164
|
-
if (er || !st.isDirectory())
|
74009
|
+
if (er || !st.isDirectory())
|
74165
74010
|
er = new CwdError(dir, er && er.code || "ENOTDIR");
|
74166
|
-
}
|
74167
74011
|
cb(er);
|
74168
74012
|
});
|
74169
74013
|
};
|
@@ -74180,41 +74024,35 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74180
74024
|
const cache = opt.cache;
|
74181
74025
|
const cwd = normPath(opt.cwd);
|
74182
74026
|
const done = (er, created) => {
|
74183
|
-
if (er)
|
74027
|
+
if (er)
|
74184
74028
|
cb(er);
|
74185
|
-
|
74029
|
+
else {
|
74186
74030
|
cSet(cache, dir, true);
|
74187
|
-
if (created && doChown)
|
74031
|
+
if (created && doChown)
|
74188
74032
|
chownr(created, uid, gid, (er2) => done(er2));
|
74189
|
-
|
74033
|
+
else if (needChmod)
|
74190
74034
|
fs.chmod(dir, mode, cb);
|
74191
|
-
|
74035
|
+
else
|
74192
74036
|
cb();
|
74193
|
-
}
|
74194
74037
|
}
|
74195
74038
|
};
|
74196
|
-
if (cache && cGet(cache, dir) === true)
|
74039
|
+
if (cache && cGet(cache, dir) === true)
|
74197
74040
|
return done();
|
74198
|
-
|
74199
|
-
if (dir === cwd) {
|
74041
|
+
if (dir === cwd)
|
74200
74042
|
return checkCwd(dir, done);
|
74201
|
-
|
74202
|
-
if (preserve) {
|
74043
|
+
if (preserve)
|
74203
74044
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
74204
|
-
}
|
74205
74045
|
const sub = normPath(path.relative(cwd, dir));
|
74206
74046
|
const parts = sub.split("/");
|
74207
74047
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
74208
74048
|
};
|
74209
74049
|
var mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
74210
|
-
if (!parts.length)
|
74050
|
+
if (!parts.length)
|
74211
74051
|
return cb(null, created);
|
74212
|
-
}
|
74213
74052
|
const p = parts.shift();
|
74214
74053
|
const part = normPath(path.resolve(base + "/" + p));
|
74215
|
-
if (cGet(cache, part))
|
74054
|
+
if (cGet(cache, part))
|
74216
74055
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
74217
|
-
}
|
74218
74056
|
fs.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
74219
74057
|
};
|
74220
74058
|
var onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
@@ -74223,20 +74061,18 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74223
74061
|
if (statEr) {
|
74224
74062
|
statEr.path = statEr.path && normPath(statEr.path);
|
74225
74063
|
cb(statEr);
|
74226
|
-
} else if (st.isDirectory())
|
74064
|
+
} else if (st.isDirectory())
|
74227
74065
|
mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
74228
|
-
|
74066
|
+
else if (unlink) {
|
74229
74067
|
fs.unlink(part, (er2) => {
|
74230
|
-
if (er2)
|
74068
|
+
if (er2)
|
74231
74069
|
return cb(er2);
|
74232
|
-
}
|
74233
74070
|
fs.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
74234
74071
|
});
|
74235
|
-
} else if (st.isSymbolicLink())
|
74072
|
+
} else if (st.isSymbolicLink())
|
74236
74073
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
74237
|
-
|
74074
|
+
else
|
74238
74075
|
cb(er);
|
74239
|
-
}
|
74240
74076
|
});
|
74241
74077
|
} else {
|
74242
74078
|
created = created || part;
|
@@ -74251,9 +74087,8 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74251
74087
|
} catch (er) {
|
74252
74088
|
code = er.code;
|
74253
74089
|
} finally {
|
74254
|
-
if (!ok)
|
74090
|
+
if (!ok)
|
74255
74091
|
throw new CwdError(dir, code);
|
74256
|
-
}
|
74257
74092
|
}
|
74258
74093
|
};
|
74259
74094
|
module2.exports.sync = (dir, opt) => {
|
@@ -74270,31 +74105,26 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74270
74105
|
const cwd = normPath(opt.cwd);
|
74271
74106
|
const done = (created2) => {
|
74272
74107
|
cSet(cache, dir, true);
|
74273
|
-
if (created2 && doChown)
|
74108
|
+
if (created2 && doChown)
|
74274
74109
|
chownr.sync(created2, uid, gid);
|
74275
|
-
|
74276
|
-
if (needChmod) {
|
74110
|
+
if (needChmod)
|
74277
74111
|
fs.chmodSync(dir, mode);
|
74278
|
-
}
|
74279
74112
|
};
|
74280
|
-
if (cache && cGet(cache, dir) === true)
|
74113
|
+
if (cache && cGet(cache, dir) === true)
|
74281
74114
|
return done();
|
74282
|
-
}
|
74283
74115
|
if (dir === cwd) {
|
74284
74116
|
checkCwdSync(cwd);
|
74285
74117
|
return done();
|
74286
74118
|
}
|
74287
|
-
if (preserve)
|
74119
|
+
if (preserve)
|
74288
74120
|
return done(mkdirp.sync(dir, mode));
|
74289
|
-
}
|
74290
74121
|
const sub = normPath(path.relative(cwd, dir));
|
74291
74122
|
const parts = sub.split("/");
|
74292
74123
|
let created = null;
|
74293
74124
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
74294
74125
|
part = normPath(path.resolve(part));
|
74295
|
-
if (cGet(cache, part))
|
74126
|
+
if (cGet(cache, part))
|
74296
74127
|
continue;
|
74297
|
-
}
|
74298
74128
|
try {
|
74299
74129
|
fs.mkdirSync(part, mode);
|
74300
74130
|
created = created || part;
|
@@ -74310,9 +74140,8 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74310
74140
|
created = created || part;
|
74311
74141
|
cSet(cache, part, true);
|
74312
74142
|
continue;
|
74313
|
-
} else if (st.isSymbolicLink())
|
74143
|
+
} else if (st.isSymbolicLink())
|
74314
74144
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
74315
|
-
}
|
74316
74145
|
}
|
74317
74146
|
}
|
74318
74147
|
return done(created);
|
@@ -74322,9 +74151,8 @@ var require_normalize_unicode = __commonJSMin((exports, module2) => {
|
|
74322
74151
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
74323
74152
|
var { hasOwnProperty } = Object.prototype;
|
74324
74153
|
module2.exports = (s) => {
|
74325
|
-
if (!hasOwnProperty.call(normalizeCache, s))
|
74154
|
+
if (!hasOwnProperty.call(normalizeCache, s))
|
74326
74155
|
normalizeCache[s] = s.normalize("NFKD");
|
74327
|
-
}
|
74328
74156
|
return normalizeCache[s];
|
74329
74157
|
};
|
74330
74158
|
});
|
@@ -74340,9 +74168,8 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74340
74168
|
const reservations = /* @__PURE__ */ new Map();
|
74341
74169
|
const getDirs = (path) => {
|
74342
74170
|
const dirs = path.split("/").slice(0, -1).reduce((set, path2) => {
|
74343
|
-
if (set.length)
|
74171
|
+
if (set.length)
|
74344
74172
|
path2 = join(set[set.length - 1], path2);
|
74345
|
-
}
|
74346
74173
|
set.push(path2 || "/");
|
74347
74174
|
return set;
|
74348
74175
|
}, []);
|
@@ -74351,9 +74178,8 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74351
74178
|
const running = /* @__PURE__ */ new Set();
|
74352
74179
|
const getQueues = (fn) => {
|
74353
74180
|
const res = reservations.get(fn);
|
74354
|
-
if (!res)
|
74181
|
+
if (!res)
|
74355
74182
|
throw new Error("function does not have any path reservations");
|
74356
|
-
}
|
74357
74183
|
return {
|
74358
74184
|
paths: res.paths.map((path) => queues.get(path)),
|
74359
74185
|
dirs: [...res.dirs].map((path) => queues.get(path))
|
@@ -74364,44 +74190,40 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74364
74190
|
return paths.every((q) => q[0] === fn) && dirs.every((q) => q[0] instanceof Set && q[0].has(fn));
|
74365
74191
|
};
|
74366
74192
|
const run = (fn) => {
|
74367
|
-
if (running.has(fn) || !check(fn))
|
74193
|
+
if (running.has(fn) || !check(fn))
|
74368
74194
|
return false;
|
74369
|
-
}
|
74370
74195
|
running.add(fn);
|
74371
74196
|
fn(() => clear(fn));
|
74372
74197
|
return true;
|
74373
74198
|
};
|
74374
74199
|
const clear = (fn) => {
|
74375
|
-
if (!running.has(fn))
|
74200
|
+
if (!running.has(fn))
|
74376
74201
|
return false;
|
74377
|
-
}
|
74378
74202
|
const { paths, dirs } = reservations.get(fn);
|
74379
74203
|
const next = /* @__PURE__ */ new Set();
|
74380
74204
|
paths.forEach((path) => {
|
74381
74205
|
const q = queues.get(path);
|
74382
74206
|
assert.equal(q[0], fn);
|
74383
|
-
if (q.length === 1)
|
74207
|
+
if (q.length === 1)
|
74384
74208
|
queues.delete(path);
|
74385
|
-
|
74209
|
+
else {
|
74386
74210
|
q.shift();
|
74387
|
-
if (typeof q[0] === "function")
|
74211
|
+
if (typeof q[0] === "function")
|
74388
74212
|
next.add(q[0]);
|
74389
|
-
|
74213
|
+
else
|
74390
74214
|
q[0].forEach((fn2) => next.add(fn2));
|
74391
|
-
}
|
74392
74215
|
}
|
74393
74216
|
});
|
74394
74217
|
dirs.forEach((dir) => {
|
74395
74218
|
const q = queues.get(dir);
|
74396
74219
|
assert(q[0] instanceof Set);
|
74397
|
-
if (q[0].size === 1 && q.length === 1)
|
74220
|
+
if (q[0].size === 1 && q.length === 1)
|
74398
74221
|
queues.delete(dir);
|
74399
|
-
|
74222
|
+
else if (q[0].size === 1) {
|
74400
74223
|
q.shift();
|
74401
74224
|
next.add(q[0]);
|
74402
|
-
} else
|
74225
|
+
} else
|
74403
74226
|
q[0].delete(fn);
|
74404
|
-
}
|
74405
74227
|
});
|
74406
74228
|
running.delete(fn);
|
74407
74229
|
next.forEach((fn2) => run(fn2));
|
@@ -74415,21 +74237,19 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74415
74237
|
reservations.set(fn, { dirs, paths });
|
74416
74238
|
paths.forEach((path) => {
|
74417
74239
|
const q = queues.get(path);
|
74418
|
-
if (!q)
|
74240
|
+
if (!q)
|
74419
74241
|
queues.set(path, [fn]);
|
74420
|
-
|
74242
|
+
else
|
74421
74243
|
q.push(fn);
|
74422
|
-
}
|
74423
74244
|
});
|
74424
74245
|
dirs.forEach((dir) => {
|
74425
74246
|
const q = queues.get(dir);
|
74426
|
-
if (!q)
|
74247
|
+
if (!q)
|
74427
74248
|
queues.set(dir, [/* @__PURE__ */ new Set([fn])]);
|
74428
|
-
|
74249
|
+
else if (q[q.length - 1] instanceof Set)
|
74429
74250
|
q[q.length - 1].add(fn);
|
74430
|
-
|
74251
|
+
else
|
74431
74252
|
q.push(/* @__PURE__ */ new Set([fn]));
|
74432
|
-
}
|
74433
74253
|
});
|
74434
74254
|
return run(fn);
|
74435
74255
|
};
|
@@ -74490,21 +74310,18 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74490
74310
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
74491
74311
|
var isWindows = platform === "win32";
|
74492
74312
|
var unlinkFile = (path2, cb) => {
|
74493
|
-
if (!isWindows)
|
74313
|
+
if (!isWindows)
|
74494
74314
|
return fs.unlink(path2, cb);
|
74495
|
-
}
|
74496
74315
|
const name4 = path2 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
74497
74316
|
fs.rename(path2, name4, (er) => {
|
74498
|
-
if (er)
|
74317
|
+
if (er)
|
74499
74318
|
return cb(er);
|
74500
|
-
}
|
74501
74319
|
fs.unlink(name4, cb);
|
74502
74320
|
});
|
74503
74321
|
};
|
74504
74322
|
var unlinkFileSync = (path2) => {
|
74505
|
-
if (!isWindows)
|
74323
|
+
if (!isWindows)
|
74506
74324
|
return fs.unlinkSync(path2);
|
74507
|
-
}
|
74508
74325
|
const name4 = path2 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
74509
74326
|
fs.renameSync(path2, name4);
|
74510
74327
|
fs.unlinkSync(name4);
|
@@ -74515,21 +74332,18 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74515
74332
|
abs = cacheKeyNormalize(abs);
|
74516
74333
|
for (const path2 of cache.keys()) {
|
74517
74334
|
const pnorm = cacheKeyNormalize(path2);
|
74518
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
74335
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
74519
74336
|
cache.delete(path2);
|
74520
|
-
}
|
74521
74337
|
}
|
74522
74338
|
};
|
74523
74339
|
var dropCache = (cache) => {
|
74524
|
-
for (const key of cache.keys())
|
74340
|
+
for (const key of cache.keys())
|
74525
74341
|
cache.delete(key);
|
74526
|
-
}
|
74527
74342
|
};
|
74528
74343
|
var Unpack = class extends Parser {
|
74529
74344
|
constructor(opt) {
|
74530
|
-
if (!opt)
|
74345
|
+
if (!opt)
|
74531
74346
|
opt = {};
|
74532
|
-
}
|
74533
74347
|
opt.ondone = (_) => {
|
74534
74348
|
this[ENDED] = true;
|
74535
74349
|
this[MAYBECLOSE]();
|
@@ -74544,9 +74358,8 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74544
74358
|
this[ENDED] = false;
|
74545
74359
|
this.dirCache = opt.dirCache || /* @__PURE__ */ new Map();
|
74546
74360
|
if (typeof opt.uid === "number" || typeof opt.gid === "number") {
|
74547
|
-
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
74361
|
+
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
74548
74362
|
throw new TypeError("cannot set owner without number uid and gid");
|
74549
|
-
}
|
74550
74363
|
if (opt.preserveOwner) {
|
74551
74364
|
throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
74552
74365
|
}
|
@@ -74558,11 +74371,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74558
74371
|
this.gid = null;
|
74559
74372
|
this.setOwner = false;
|
74560
74373
|
}
|
74561
|
-
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
74374
|
+
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
74562
74375
|
this.preserveOwner = process.getuid && process.getuid() === 0;
|
74563
|
-
|
74376
|
+
else
|
74564
74377
|
this.preserveOwner = !!opt.preserveOwner;
|
74565
|
-
}
|
74566
74378
|
this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null;
|
74567
74379
|
this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null;
|
74568
74380
|
this.forceChown = opt.forceChown === true;
|
@@ -74581,9 +74393,8 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74581
74393
|
this.on("entry", (entry) => this[ONENTRY](entry));
|
74582
74394
|
}
|
74583
74395
|
warn(code, msg, data = {}) {
|
74584
|
-
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
74396
|
+
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
74585
74397
|
data.recoverable = false;
|
74586
|
-
}
|
74587
74398
|
return super.warn(code, msg, data);
|
74588
74399
|
}
|
74589
74400
|
[MAYBECLOSE]() {
|
@@ -74591,22 +74402,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74591
74402
|
this.emit("prefinish");
|
74592
74403
|
this.emit("finish");
|
74593
74404
|
this.emit("end");
|
74405
|
+
this.emit("close");
|
74594
74406
|
}
|
74595
74407
|
}
|
74596
74408
|
[CHECKPATH](entry) {
|
74597
74409
|
if (this.strip) {
|
74598
74410
|
const parts = normPath(entry.path).split("/");
|
74599
|
-
if (parts.length < this.strip)
|
74411
|
+
if (parts.length < this.strip)
|
74600
74412
|
return false;
|
74601
|
-
}
|
74602
74413
|
entry.path = parts.slice(this.strip).join("/");
|
74603
74414
|
if (entry.type === "Link") {
|
74604
74415
|
const linkparts = normPath(entry.linkpath).split("/");
|
74605
|
-
if (linkparts.length >= this.strip)
|
74416
|
+
if (linkparts.length >= this.strip)
|
74606
74417
|
entry.linkpath = linkparts.slice(this.strip).join("/");
|
74607
|
-
|
74418
|
+
else
|
74608
74419
|
return false;
|
74609
|
-
}
|
74610
74420
|
}
|
74611
74421
|
}
|
74612
74422
|
if (!this.preservePaths) {
|
@@ -74628,11 +74438,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74628
74438
|
});
|
74629
74439
|
}
|
74630
74440
|
}
|
74631
|
-
if (path.isAbsolute(entry.path))
|
74441
|
+
if (path.isAbsolute(entry.path))
|
74632
74442
|
entry.absolute = normPath(path.resolve(entry.path));
|
74633
|
-
|
74443
|
+
else
|
74634
74444
|
entry.absolute = normPath(path.resolve(this.cwd, entry.path));
|
74635
|
-
}
|
74636
74445
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
74637
74446
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
74638
74447
|
entry,
|
@@ -74642,28 +74451,25 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74642
74451
|
});
|
74643
74452
|
return false;
|
74644
74453
|
}
|
74645
|
-
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
74454
|
+
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
74646
74455
|
return false;
|
74647
|
-
}
|
74648
74456
|
if (this.win32) {
|
74649
74457
|
const { root: aRoot } = path.win32.parse(entry.absolute);
|
74650
|
-
entry.absolute = aRoot + wc.encode(entry.absolute.
|
74458
|
+
entry.absolute = aRoot + wc.encode(entry.absolute.substr(aRoot.length));
|
74651
74459
|
const { root: pRoot } = path.win32.parse(entry.path);
|
74652
|
-
entry.path = pRoot + wc.encode(entry.path.
|
74460
|
+
entry.path = pRoot + wc.encode(entry.path.substr(pRoot.length));
|
74653
74461
|
}
|
74654
74462
|
return true;
|
74655
74463
|
}
|
74656
74464
|
[ONENTRY](entry) {
|
74657
|
-
if (!this[CHECKPATH](entry))
|
74465
|
+
if (!this[CHECKPATH](entry))
|
74658
74466
|
return entry.resume();
|
74659
|
-
}
|
74660
74467
|
assert.equal(typeof entry.absolute, "string");
|
74661
74468
|
switch (entry.type) {
|
74662
74469
|
case "Directory":
|
74663
74470
|
case "GNUDumpDir":
|
74664
|
-
if (entry.mode)
|
74471
|
+
if (entry.mode)
|
74665
74472
|
entry.mode = entry.mode | 448;
|
74666
|
-
}
|
74667
74473
|
case "File":
|
74668
74474
|
case "OldFile":
|
74669
74475
|
case "ContiguousFile":
|
@@ -74678,9 +74484,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74678
74484
|
}
|
74679
74485
|
}
|
74680
74486
|
[ONERROR](er, entry) {
|
74681
|
-
if (er.name === "CwdError")
|
74487
|
+
if (er.name === "CwdError")
|
74682
74488
|
this.emit("error", er);
|
74683
|
-
|
74489
|
+
else {
|
74684
74490
|
this.warn("TAR_ENTRY_ERROR", er, { entry });
|
74685
74491
|
this[UNPEND]();
|
74686
74492
|
entry.resume();
|
@@ -74718,10 +74524,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74718
74524
|
autoClose: false
|
74719
74525
|
});
|
74720
74526
|
stream.on("error", (er) => {
|
74721
|
-
if (stream.fd)
|
74527
|
+
if (stream.fd)
|
74722
74528
|
fs.close(stream.fd, () => {
|
74723
74529
|
});
|
74724
|
-
}
|
74725
74530
|
stream.write = () => true;
|
74726
74531
|
this[ONERROR](er, entry);
|
74727
74532
|
fullyDone();
|
@@ -74729,21 +74534,19 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74729
74534
|
let actions = 1;
|
74730
74535
|
const done = (er) => {
|
74731
74536
|
if (er) {
|
74732
|
-
if (stream.fd)
|
74537
|
+
if (stream.fd)
|
74733
74538
|
fs.close(stream.fd, () => {
|
74734
74539
|
});
|
74735
|
-
}
|
74736
74540
|
this[ONERROR](er, entry);
|
74737
74541
|
fullyDone();
|
74738
74542
|
return;
|
74739
74543
|
}
|
74740
74544
|
if (--actions === 0) {
|
74741
74545
|
fs.close(stream.fd, (er2) => {
|
74742
|
-
if (er2)
|
74546
|
+
if (er2)
|
74743
74547
|
this[ONERROR](er2, entry);
|
74744
|
-
|
74548
|
+
else
|
74745
74549
|
this[UNPEND]();
|
74746
|
-
}
|
74747
74550
|
fullyDone();
|
74748
74551
|
});
|
74749
74552
|
}
|
@@ -74831,17 +74634,15 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74831
74634
|
[CHECKFS](entry) {
|
74832
74635
|
this[PEND]();
|
74833
74636
|
const paths = [entry.path];
|
74834
|
-
if (entry.linkpath)
|
74637
|
+
if (entry.linkpath)
|
74835
74638
|
paths.push(entry.linkpath);
|
74836
|
-
}
|
74837
74639
|
this.reservations.reserve(paths, (done) => this[CHECKFS2](entry, done));
|
74838
74640
|
}
|
74839
74641
|
[PRUNECACHE](entry) {
|
74840
|
-
if (entry.type === "SymbolicLink")
|
74642
|
+
if (entry.type === "SymbolicLink")
|
74841
74643
|
dropCache(this.dirCache);
|
74842
|
-
|
74644
|
+
else if (entry.type !== "Directory")
|
74843
74645
|
pruneCache(this.dirCache, entry.absolute);
|
74844
|
-
}
|
74845
74646
|
}
|
74846
74647
|
[CHECKFS2](entry, fullyDone) {
|
74847
74648
|
this[PRUNECACHE](entry);
|
@@ -74883,33 +74684,29 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74883
74684
|
done();
|
74884
74685
|
return;
|
74885
74686
|
}
|
74886
|
-
if (lstatEr || this[ISREUSABLE](entry, st))
|
74687
|
+
if (lstatEr || this[ISREUSABLE](entry, st))
|
74887
74688
|
return this[MAKEFS](null, entry, done);
|
74888
|
-
}
|
74889
74689
|
if (st.isDirectory()) {
|
74890
74690
|
if (entry.type === "Directory") {
|
74891
74691
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
74892
74692
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
74893
|
-
if (!needChmod)
|
74693
|
+
if (!needChmod)
|
74894
74694
|
return afterChmod();
|
74895
|
-
}
|
74896
74695
|
return fs.chmod(entry.absolute, entry.mode, afterChmod);
|
74897
74696
|
}
|
74898
74697
|
if (entry.absolute !== this.cwd) {
|
74899
74698
|
return fs.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
74900
74699
|
}
|
74901
74700
|
}
|
74902
|
-
if (entry.absolute === this.cwd)
|
74701
|
+
if (entry.absolute === this.cwd)
|
74903
74702
|
return this[MAKEFS](null, entry, done);
|
74904
|
-
}
|
74905
74703
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
74906
74704
|
});
|
74907
74705
|
};
|
74908
|
-
if (this[CHECKED_CWD])
|
74706
|
+
if (this[CHECKED_CWD])
|
74909
74707
|
start();
|
74910
|
-
|
74708
|
+
else
|
74911
74709
|
checkCwd();
|
74912
|
-
}
|
74913
74710
|
}
|
74914
74711
|
[MAKEFS](er, entry, done) {
|
74915
74712
|
if (er) {
|
@@ -74933,9 +74730,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74933
74730
|
}
|
74934
74731
|
[LINK](entry, linkpath, link, done) {
|
74935
74732
|
fs[link](linkpath, entry.absolute, (er) => {
|
74936
|
-
if (er)
|
74733
|
+
if (er)
|
74937
74734
|
this[ONERROR](er, entry);
|
74938
|
-
|
74735
|
+
else {
|
74939
74736
|
this[UNPEND]();
|
74940
74737
|
entry.resume();
|
74941
74738
|
}
|
@@ -74959,27 +74756,23 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74959
74756
|
this[PRUNECACHE](entry);
|
74960
74757
|
if (!this[CHECKED_CWD]) {
|
74961
74758
|
const er2 = this[MKDIR](this.cwd, this.dmode);
|
74962
|
-
if (er2)
|
74759
|
+
if (er2)
|
74963
74760
|
return this[ONERROR](er2, entry);
|
74964
|
-
}
|
74965
74761
|
this[CHECKED_CWD] = true;
|
74966
74762
|
}
|
74967
74763
|
if (entry.absolute !== this.cwd) {
|
74968
74764
|
const parent = normPath(path.dirname(entry.absolute));
|
74969
74765
|
if (parent !== this.cwd) {
|
74970
74766
|
const mkParent = this[MKDIR](parent, this.dmode);
|
74971
|
-
if (mkParent)
|
74767
|
+
if (mkParent)
|
74972
74768
|
return this[ONERROR](mkParent, entry);
|
74973
|
-
}
|
74974
74769
|
}
|
74975
74770
|
}
|
74976
74771
|
const [lstatEr, st] = callSync(() => fs.lstatSync(entry.absolute));
|
74977
|
-
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
74772
|
+
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
74978
74773
|
return this[SKIP](entry);
|
74979
|
-
|
74980
|
-
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
74774
|
+
if (lstatEr || this[ISREUSABLE](entry, st))
|
74981
74775
|
return this[MAKEFS](null, entry);
|
74982
|
-
}
|
74983
74776
|
if (st.isDirectory()) {
|
74984
74777
|
if (entry.type === "Directory") {
|
74985
74778
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
@@ -75003,9 +74796,8 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
75003
74796
|
} catch (e) {
|
75004
74797
|
closeError = e;
|
75005
74798
|
}
|
75006
|
-
if (er || closeError)
|
74799
|
+
if (er || closeError)
|
75007
74800
|
this[ONERROR](er || closeError, entry);
|
75008
|
-
}
|
75009
74801
|
done();
|
75010
74802
|
};
|
75011
74803
|
let fd;
|
@@ -75120,29 +74912,23 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
75120
74912
|
var path = __require("path");
|
75121
74913
|
var stripSlash = require_strip_trailing_slashes();
|
75122
74914
|
module2.exports = (opt_, files, cb) => {
|
75123
|
-
if (typeof opt_ === "function")
|
74915
|
+
if (typeof opt_ === "function")
|
75124
74916
|
cb = opt_, files = null, opt_ = {};
|
75125
|
-
|
74917
|
+
else if (Array.isArray(opt_))
|
75126
74918
|
files = opt_, opt_ = {};
|
75127
|
-
|
75128
|
-
if (typeof files === "function") {
|
74919
|
+
if (typeof files === "function")
|
75129
74920
|
cb = files, files = null;
|
75130
|
-
|
75131
|
-
if (!files) {
|
74921
|
+
if (!files)
|
75132
74922
|
files = [];
|
75133
|
-
|
74923
|
+
else
|
75134
74924
|
files = Array.from(files);
|
75135
|
-
}
|
75136
74925
|
const opt = hlo(opt_);
|
75137
|
-
if (opt.sync && typeof cb === "function")
|
74926
|
+
if (opt.sync && typeof cb === "function")
|
75138
74927
|
throw new TypeError("callback not supported for sync tar functions");
|
75139
|
-
|
75140
|
-
if (!opt.file && typeof cb === "function") {
|
74928
|
+
if (!opt.file && typeof cb === "function")
|
75141
74929
|
throw new TypeError("callback only supported with file option");
|
75142
|
-
|
75143
|
-
if (files.length) {
|
74930
|
+
if (files.length)
|
75144
74931
|
filesFilter(opt, files);
|
75145
|
-
}
|
75146
74932
|
return opt.file && opt.sync ? extractFileSync(opt) : opt.file ? extractFile(opt, cb) : opt.sync ? extractSync(opt) : extract(opt);
|
75147
74933
|
};
|
75148
74934
|
var filesFilter = (opt, files) => {
|
@@ -75175,9 +74961,9 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
75175
74961
|
u.on("error", reject);
|
75176
74962
|
u.on("close", resolve);
|
75177
74963
|
fs.stat(file, (er, stat) => {
|
75178
|
-
if (er)
|
74964
|
+
if (er)
|
75179
74965
|
reject(er);
|
75180
|
-
|
74966
|
+
else {
|
75181
74967
|
const stream = new fsm.ReadStream(file, {
|
75182
74968
|
readSize,
|
75183
74969
|
size: stat.size
|
@@ -75734,30 +75520,6 @@ function _classCallCheck(instance, Constructor) {
|
|
75734
75520
|
throw new TypeError("Cannot call a class as a function");
|
75735
75521
|
}
|
75736
75522
|
}
|
75737
|
-
function _typeof(obj) {
|
75738
|
-
"@babel/helpers - typeof";
|
75739
|
-
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
|
75740
|
-
return typeof obj2;
|
75741
|
-
} : function(obj2) {
|
75742
|
-
return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
75743
|
-
}, _typeof(obj);
|
75744
|
-
}
|
75745
|
-
function _toPrimitive(input, hint) {
|
75746
|
-
if (_typeof(input) !== "object" || input === null)
|
75747
|
-
return input;
|
75748
|
-
var prim = input[Symbol.toPrimitive];
|
75749
|
-
if (prim !== void 0) {
|
75750
|
-
var res = prim.call(input, hint || "default");
|
75751
|
-
if (_typeof(res) !== "object")
|
75752
|
-
return res;
|
75753
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
75754
|
-
}
|
75755
|
-
return (hint === "string" ? String : Number)(input);
|
75756
|
-
}
|
75757
|
-
function _toPropertyKey(arg) {
|
75758
|
-
var key = _toPrimitive(arg, "string");
|
75759
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
75760
|
-
}
|
75761
75523
|
function _defineProperties(target, props) {
|
75762
75524
|
for (var i = 0; i < props.length; i++) {
|
75763
75525
|
var descriptor = props[i];
|
@@ -75765,7 +75527,7 @@ function _defineProperties(target, props) {
|
|
75765
75527
|
descriptor.configurable = true;
|
75766
75528
|
if ("value" in descriptor)
|
75767
75529
|
descriptor.writable = true;
|
75768
|
-
Object.defineProperty(target,
|
75530
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
75769
75531
|
}
|
75770
75532
|
}
|
75771
75533
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -75779,7 +75541,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
75779
75541
|
return Constructor;
|
75780
75542
|
}
|
75781
75543
|
function _defineProperty(obj, key, value) {
|
75782
|
-
key = _toPropertyKey(key);
|
75783
75544
|
if (key in obj) {
|
75784
75545
|
Object.defineProperty(obj, key, {
|
75785
75546
|
value,
|