@modern-js/repo-generator 0.0.0-next-20221130140620 → 0.0.0-next-20221202032240
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 +515 -2087
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -30615,13 +30615,13 @@ var require_browsers2 = __commonJSMin((exports, module2) => {
|
|
|
30615
30615
|
module2.exports.browsers = require_browsers();
|
|
30616
30616
|
});
|
|
30617
30617
|
var require_browserVersions = __commonJSMin((exports, module2) => {
|
|
30618
|
-
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: "
|
|
30618
|
+
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" };
|
|
30619
30619
|
});
|
|
30620
30620
|
var require_browserVersions2 = __commonJSMin((exports, module2) => {
|
|
30621
30621
|
module2.exports.browserVersions = require_browserVersions();
|
|
30622
30622
|
});
|
|
30623
30623
|
var require_agents = __commonJSMin((exports, module2) => {
|
|
30624
|
-
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 } } };
|
|
30624
|
+
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 } } };
|
|
30625
30625
|
});
|
|
30626
30626
|
var require_agents2 = __commonJSMin((exports, module2) => {
|
|
30627
30627
|
"use strict";
|
|
@@ -45980,7 +45980,6 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
45980
45980
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
45981
45981
|
};
|
|
45982
45982
|
});
|
|
45983
|
-
var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
|
|
45984
45983
|
var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
|
|
45985
45984
|
var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
|
|
45986
45985
|
var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
|
|
@@ -46013,10 +46012,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46013
46012
|
if (this._ending) {
|
|
46014
46013
|
throw new WriteAfterEndError();
|
|
46015
46014
|
}
|
|
46016
|
-
if (!
|
|
46015
|
+
if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
|
|
46017
46016
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
46018
46017
|
}
|
|
46019
|
-
if (
|
|
46018
|
+
if (typeof encoding === "function") {
|
|
46020
46019
|
callback = encoding;
|
|
46021
46020
|
encoding = null;
|
|
46022
46021
|
}
|
|
@@ -46036,10 +46035,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46036
46035
|
}
|
|
46037
46036
|
};
|
|
46038
46037
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
46039
|
-
if (
|
|
46038
|
+
if (typeof data === "function") {
|
|
46040
46039
|
callback = data;
|
|
46041
46040
|
data = encoding = null;
|
|
46042
|
-
} else if (
|
|
46041
|
+
} else if (typeof encoding === "function") {
|
|
46043
46042
|
callback = encoding;
|
|
46044
46043
|
encoding = null;
|
|
46045
46044
|
}
|
|
@@ -46163,7 +46162,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46163
46162
|
for (var event of events) {
|
|
46164
46163
|
request.on(event, eventHandlers[event]);
|
|
46165
46164
|
}
|
|
46166
|
-
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
|
|
46165
|
+
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._currentUrl = this._options.path;
|
|
46167
46166
|
if (this._isRedirect) {
|
|
46168
46167
|
var i = 0;
|
|
46169
46168
|
var self3 = this;
|
|
@@ -46228,7 +46227,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46228
46227
|
try {
|
|
46229
46228
|
redirectUrl = url.resolve(currentUrl, location);
|
|
46230
46229
|
} catch (cause) {
|
|
46231
|
-
this.emit("error", new RedirectionError(
|
|
46230
|
+
this.emit("error", new RedirectionError(cause));
|
|
46232
46231
|
return;
|
|
46233
46232
|
}
|
|
46234
46233
|
debug("redirecting to", redirectUrl);
|
|
@@ -46238,7 +46237,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46238
46237
|
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
46239
46238
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
46240
46239
|
}
|
|
46241
|
-
if (
|
|
46240
|
+
if (typeof beforeRedirect === "function") {
|
|
46242
46241
|
var responseDetails = {
|
|
46243
46242
|
headers: response.headers,
|
|
46244
46243
|
statusCode
|
|
@@ -46259,7 +46258,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46259
46258
|
try {
|
|
46260
46259
|
this._performRequest();
|
|
46261
46260
|
} catch (cause) {
|
|
46262
|
-
this.emit("error", new RedirectionError(
|
|
46261
|
+
this.emit("error", new RedirectionError(cause));
|
|
46263
46262
|
}
|
|
46264
46263
|
};
|
|
46265
46264
|
function wrap(protocols) {
|
|
@@ -46273,17 +46272,13 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46273
46272
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
46274
46273
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
46275
46274
|
function request(input, options3, callback) {
|
|
46276
|
-
if (
|
|
46277
|
-
var
|
|
46275
|
+
if (typeof input === "string") {
|
|
46276
|
+
var urlStr = input;
|
|
46278
46277
|
try {
|
|
46279
|
-
|
|
46278
|
+
input = urlToOptions(new URL(urlStr));
|
|
46280
46279
|
} catch (err) {
|
|
46281
|
-
|
|
46280
|
+
input = url.parse(urlStr);
|
|
46282
46281
|
}
|
|
46283
|
-
if (!isString3(parsed.protocol)) {
|
|
46284
|
-
throw new InvalidUrlError({ input });
|
|
46285
|
-
}
|
|
46286
|
-
input = parsed;
|
|
46287
46282
|
} else if (URL && input instanceof URL) {
|
|
46288
46283
|
input = urlToOptions(input);
|
|
46289
46284
|
} else {
|
|
@@ -46291,7 +46286,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46291
46286
|
options3 = input;
|
|
46292
46287
|
input = { protocol };
|
|
46293
46288
|
}
|
|
46294
|
-
if (
|
|
46289
|
+
if (typeof options3 === "function") {
|
|
46295
46290
|
callback = options3;
|
|
46296
46291
|
options3 = null;
|
|
46297
46292
|
}
|
|
@@ -46300,9 +46295,6 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46300
46295
|
maxBodyLength: exports2.maxBodyLength
|
|
46301
46296
|
}, input, options3);
|
|
46302
46297
|
options3.nativeProtocols = nativeProtocols;
|
|
46303
|
-
if (!isString3(options3.host) && !isString3(options3.hostname)) {
|
|
46304
|
-
options3.hostname = "::1";
|
|
46305
|
-
}
|
|
46306
46298
|
assert.equal(options3.protocol, protocol, "protocol mismatch");
|
|
46307
46299
|
debug("options", options3);
|
|
46308
46300
|
return new RedirectableRequest(options3, callback);
|
|
@@ -46346,16 +46338,20 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46346
46338
|
}
|
|
46347
46339
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
46348
46340
|
}
|
|
46349
|
-
function createErrorType(code,
|
|
46350
|
-
function CustomError(
|
|
46341
|
+
function createErrorType(code, defaultMessage) {
|
|
46342
|
+
function CustomError(cause) {
|
|
46351
46343
|
Error.captureStackTrace(this, this.constructor);
|
|
46352
|
-
|
|
46353
|
-
|
|
46354
|
-
|
|
46344
|
+
if (!cause) {
|
|
46345
|
+
this.message = defaultMessage;
|
|
46346
|
+
} else {
|
|
46347
|
+
this.message = defaultMessage + ": " + cause.message;
|
|
46348
|
+
this.cause = cause;
|
|
46349
|
+
}
|
|
46355
46350
|
}
|
|
46356
|
-
CustomError.prototype = new
|
|
46351
|
+
CustomError.prototype = new Error();
|
|
46357
46352
|
CustomError.prototype.constructor = CustomError;
|
|
46358
46353
|
CustomError.prototype.name = "Error [" + code + "]";
|
|
46354
|
+
CustomError.prototype.code = code;
|
|
46359
46355
|
return CustomError;
|
|
46360
46356
|
}
|
|
46361
46357
|
function abortRequest(request) {
|
|
@@ -46366,19 +46362,9 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46366
46362
|
request.abort();
|
|
46367
46363
|
}
|
|
46368
46364
|
function isSubdomain(subdomain, domain) {
|
|
46369
|
-
|
|
46370
|
-
var dot = subdomain.length - domain.length - 1;
|
|
46365
|
+
const dot = subdomain.length - domain.length - 1;
|
|
46371
46366
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
46372
46367
|
}
|
|
46373
|
-
function isString3(value) {
|
|
46374
|
-
return typeof value === "string" || value instanceof String;
|
|
46375
|
-
}
|
|
46376
|
-
function isFunction4(value) {
|
|
46377
|
-
return typeof value === "function";
|
|
46378
|
-
}
|
|
46379
|
-
function isBuffer(value) {
|
|
46380
|
-
return typeof value === "object" && "length" in value;
|
|
46381
|
-
}
|
|
46382
46368
|
module2.exports = wrap({ http, https });
|
|
46383
46369
|
module2.exports.wrap = wrap;
|
|
46384
46370
|
});
|
|
@@ -48208,9 +48194,8 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48208
48194
|
}
|
|
48209
48195
|
this.path = normPath(header.path);
|
|
48210
48196
|
this.mode = header.mode;
|
|
48211
|
-
if (this.mode)
|
|
48197
|
+
if (this.mode)
|
|
48212
48198
|
this.mode = this.mode & 4095;
|
|
48213
|
-
}
|
|
48214
48199
|
this.uid = header.uid;
|
|
48215
48200
|
this.gid = header.gid;
|
|
48216
48201
|
this.uname = header.uname;
|
|
@@ -48222,35 +48207,29 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48222
48207
|
this.linkpath = normPath(header.linkpath);
|
|
48223
48208
|
this.uname = header.uname;
|
|
48224
48209
|
this.gname = header.gname;
|
|
48225
|
-
if (ex)
|
|
48210
|
+
if (ex)
|
|
48226
48211
|
this[SLURP](ex);
|
|
48227
|
-
|
|
48228
|
-
if (gex) {
|
|
48212
|
+
if (gex)
|
|
48229
48213
|
this[SLURP](gex, true);
|
|
48230
|
-
}
|
|
48231
48214
|
}
|
|
48232
48215
|
write(data) {
|
|
48233
48216
|
const writeLen = data.length;
|
|
48234
|
-
if (writeLen > this.blockRemain)
|
|
48217
|
+
if (writeLen > this.blockRemain)
|
|
48235
48218
|
throw new Error("writing more to entry than is appropriate");
|
|
48236
|
-
}
|
|
48237
48219
|
const r = this.remain;
|
|
48238
48220
|
const br = this.blockRemain;
|
|
48239
48221
|
this.remain = Math.max(0, r - writeLen);
|
|
48240
48222
|
this.blockRemain = Math.max(0, br - writeLen);
|
|
48241
|
-
if (this.ignore)
|
|
48223
|
+
if (this.ignore)
|
|
48242
48224
|
return true;
|
|
48243
|
-
|
|
48244
|
-
if (r >= writeLen) {
|
|
48225
|
+
if (r >= writeLen)
|
|
48245
48226
|
return super.write(data);
|
|
48246
|
-
}
|
|
48247
48227
|
return super.write(data.slice(0, r));
|
|
48248
48228
|
}
|
|
48249
48229
|
[SLURP](ex, global2) {
|
|
48250
48230
|
for (const k in ex) {
|
|
48251
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48231
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48252
48232
|
this[k] = k === "path" || k === "linkpath" ? normPath(ex[k]) : ex[k];
|
|
48253
|
-
}
|
|
48254
48233
|
}
|
|
48255
48234
|
}
|
|
48256
48235
|
};
|
|
@@ -48285,13 +48264,12 @@ var require_types = __commonJSMin((exports) => {
|
|
|
48285
48264
|
var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
48286
48265
|
"use strict";
|
|
48287
48266
|
var encode = (num, buf) => {
|
|
48288
|
-
if (!Number.isSafeInteger(num))
|
|
48267
|
+
if (!Number.isSafeInteger(num))
|
|
48289
48268
|
throw Error("cannot encode number outside of javascript safe integer range");
|
|
48290
|
-
|
|
48269
|
+
else if (num < 0)
|
|
48291
48270
|
encodeNegative(num, buf);
|
|
48292
|
-
|
|
48271
|
+
else
|
|
48293
48272
|
encodePositive(num, buf);
|
|
48294
|
-
}
|
|
48295
48273
|
return buf;
|
|
48296
48274
|
};
|
|
48297
48275
|
var encodePositive = (num, buf) => {
|
|
@@ -48308,11 +48286,11 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48308
48286
|
for (var i = buf.length; i > 1; i--) {
|
|
48309
48287
|
var byte = num & 255;
|
|
48310
48288
|
num = Math.floor(num / 256);
|
|
48311
|
-
if (flipped)
|
|
48289
|
+
if (flipped)
|
|
48312
48290
|
buf[i - 1] = onesComp(byte);
|
|
48313
|
-
|
|
48291
|
+
else if (byte === 0)
|
|
48314
48292
|
buf[i - 1] = 0;
|
|
48315
|
-
|
|
48293
|
+
else {
|
|
48316
48294
|
flipped = true;
|
|
48317
48295
|
buf[i - 1] = twosComp(byte);
|
|
48318
48296
|
}
|
|
@@ -48321,12 +48299,10 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48321
48299
|
var parse2 = (buf) => {
|
|
48322
48300
|
const pre = buf[0];
|
|
48323
48301
|
const value = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
48324
|
-
if (value === null)
|
|
48302
|
+
if (value === null)
|
|
48325
48303
|
throw Error("invalid base256 encoding");
|
|
48326
|
-
|
|
48327
|
-
if (!Number.isSafeInteger(value)) {
|
|
48304
|
+
if (!Number.isSafeInteger(value))
|
|
48328
48305
|
throw Error("parsed number outside of javascript safe integer range");
|
|
48329
|
-
}
|
|
48330
48306
|
return value;
|
|
48331
48307
|
};
|
|
48332
48308
|
var twos = (buf) => {
|
|
@@ -48336,17 +48312,16 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48336
48312
|
for (var i = len - 1; i > -1; i--) {
|
|
48337
48313
|
var byte = buf[i];
|
|
48338
48314
|
var f;
|
|
48339
|
-
if (flipped)
|
|
48315
|
+
if (flipped)
|
|
48340
48316
|
f = onesComp(byte);
|
|
48341
|
-
|
|
48317
|
+
else if (byte === 0)
|
|
48342
48318
|
f = byte;
|
|
48343
|
-
|
|
48319
|
+
else {
|
|
48344
48320
|
flipped = true;
|
|
48345
48321
|
f = twosComp(byte);
|
|
48346
48322
|
}
|
|
48347
|
-
if (f !== 0)
|
|
48323
|
+
if (f !== 0)
|
|
48348
48324
|
sum -= f * Math.pow(256, len - i - 1);
|
|
48349
|
-
}
|
|
48350
48325
|
}
|
|
48351
48326
|
return sum;
|
|
48352
48327
|
};
|
|
@@ -48355,9 +48330,8 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48355
48330
|
var sum = 0;
|
|
48356
48331
|
for (var i = len - 1; i > -1; i--) {
|
|
48357
48332
|
var byte = buf[i];
|
|
48358
|
-
if (byte !== 0)
|
|
48333
|
+
if (byte !== 0)
|
|
48359
48334
|
sum += byte * Math.pow(256, len - i - 1);
|
|
48360
|
-
}
|
|
48361
48335
|
}
|
|
48362
48336
|
return sum;
|
|
48363
48337
|
};
|
|
@@ -48396,19 +48370,16 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48396
48370
|
this.devmin = 0;
|
|
48397
48371
|
this.atime = null;
|
|
48398
48372
|
this.ctime = null;
|
|
48399
|
-
if (Buffer.isBuffer(data))
|
|
48373
|
+
if (Buffer.isBuffer(data))
|
|
48400
48374
|
this.decode(data, off || 0, ex, gex);
|
|
48401
|
-
|
|
48375
|
+
else if (data)
|
|
48402
48376
|
this.set(data);
|
|
48403
|
-
}
|
|
48404
48377
|
}
|
|
48405
48378
|
decode(buf, off, ex, gex) {
|
|
48406
|
-
if (!off)
|
|
48379
|
+
if (!off)
|
|
48407
48380
|
off = 0;
|
|
48408
|
-
|
|
48409
|
-
if (!buf || !(buf.length >= off + 512)) {
|
|
48381
|
+
if (!buf || !(buf.length >= off + 512))
|
|
48410
48382
|
throw new Error("need 512 bytes for header");
|
|
48411
|
-
}
|
|
48412
48383
|
this.path = decString(buf, off, 100);
|
|
48413
48384
|
this.mode = decNumber(buf, off + 100, 8);
|
|
48414
48385
|
this.uid = decNumber(buf, off + 108, 8);
|
|
@@ -48419,15 +48390,12 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48419
48390
|
this[SLURP](ex);
|
|
48420
48391
|
this[SLURP](gex, true);
|
|
48421
48392
|
this[TYPE] = decString(buf, off + 156, 1);
|
|
48422
|
-
if (this[TYPE] === "")
|
|
48393
|
+
if (this[TYPE] === "")
|
|
48423
48394
|
this[TYPE] = "0";
|
|
48424
|
-
|
|
48425
|
-
if (this[TYPE] === "0" && this.path.slice(-1) === "/") {
|
|
48395
|
+
if (this[TYPE] === "0" && this.path.substr(-1) === "/")
|
|
48426
48396
|
this[TYPE] = "5";
|
|
48427
|
-
|
|
48428
|
-
if (this[TYPE] === "5") {
|
|
48397
|
+
if (this[TYPE] === "5")
|
|
48429
48398
|
this.size = 0;
|
|
48430
|
-
}
|
|
48431
48399
|
this.linkpath = decString(buf, off + 157, 100);
|
|
48432
48400
|
if (buf.slice(off + 257, off + 265).toString() === "ustar\x0000") {
|
|
48433
48401
|
this.uname = decString(buf, off + 265, 32);
|
|
@@ -48439,30 +48407,25 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48439
48407
|
this.path = prefix + "/" + this.path;
|
|
48440
48408
|
} else {
|
|
48441
48409
|
const prefix = decString(buf, off + 345, 130);
|
|
48442
|
-
if (prefix)
|
|
48410
|
+
if (prefix)
|
|
48443
48411
|
this.path = prefix + "/" + this.path;
|
|
48444
|
-
}
|
|
48445
48412
|
this.atime = decDate(buf, off + 476, 12);
|
|
48446
48413
|
this.ctime = decDate(buf, off + 488, 12);
|
|
48447
48414
|
}
|
|
48448
48415
|
}
|
|
48449
48416
|
let sum = 8 * 32;
|
|
48450
|
-
for (let i = off; i < off + 148; i++)
|
|
48417
|
+
for (let i = off; i < off + 148; i++)
|
|
48451
48418
|
sum += buf[i];
|
|
48452
|
-
|
|
48453
|
-
for (let i = off + 156; i < off + 512; i++) {
|
|
48419
|
+
for (let i = off + 156; i < off + 512; i++)
|
|
48454
48420
|
sum += buf[i];
|
|
48455
|
-
}
|
|
48456
48421
|
this.cksumValid = sum === this.cksum;
|
|
48457
|
-
if (this.cksum === null && sum === 8 * 32)
|
|
48422
|
+
if (this.cksum === null && sum === 8 * 32)
|
|
48458
48423
|
this.nullBlock = true;
|
|
48459
|
-
}
|
|
48460
48424
|
}
|
|
48461
48425
|
[SLURP](ex, global2) {
|
|
48462
48426
|
for (const k in ex) {
|
|
48463
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48427
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48464
48428
|
this[k] = ex[k];
|
|
48465
|
-
}
|
|
48466
48429
|
}
|
|
48467
48430
|
}
|
|
48468
48431
|
encode(buf, off) {
|
|
@@ -48470,12 +48433,10 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48470
48433
|
buf = this.block = Buffer.alloc(512);
|
|
48471
48434
|
off = 0;
|
|
48472
48435
|
}
|
|
48473
|
-
if (!off)
|
|
48436
|
+
if (!off)
|
|
48474
48437
|
off = 0;
|
|
48475
|
-
|
|
48476
|
-
if (!(buf.length >= off + 512)) {
|
|
48438
|
+
if (!(buf.length >= off + 512))
|
|
48477
48439
|
throw new Error("need 512 bytes for header");
|
|
48478
|
-
}
|
|
48479
48440
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
48480
48441
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
48481
48442
|
const path6 = split[0];
|
|
@@ -48495,20 +48456,18 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48495
48456
|
this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax;
|
|
48496
48457
|
this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax;
|
|
48497
48458
|
this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax;
|
|
48498
|
-
if (buf[off + 475] !== 0)
|
|
48459
|
+
if (buf[off + 475] !== 0)
|
|
48499
48460
|
this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax;
|
|
48500
|
-
|
|
48461
|
+
else {
|
|
48501
48462
|
this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax;
|
|
48502
48463
|
this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax;
|
|
48503
48464
|
this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax;
|
|
48504
48465
|
}
|
|
48505
48466
|
let sum = 8 * 32;
|
|
48506
|
-
for (let i = off; i < off + 148; i++)
|
|
48467
|
+
for (let i = off; i < off + 148; i++)
|
|
48507
48468
|
sum += buf[i];
|
|
48508
|
-
|
|
48509
|
-
for (let i = off + 156; i < off + 512; i++) {
|
|
48469
|
+
for (let i = off + 156; i < off + 512; i++)
|
|
48510
48470
|
sum += buf[i];
|
|
48511
|
-
}
|
|
48512
48471
|
this.cksum = sum;
|
|
48513
48472
|
encNumber(buf, off + 148, 8, this.cksum);
|
|
48514
48473
|
this.cksumValid = true;
|
|
@@ -48516,9 +48475,8 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48516
48475
|
}
|
|
48517
48476
|
set(data) {
|
|
48518
48477
|
for (const i in data) {
|
|
48519
|
-
if (data[i] !== null && data[i] !== void 0)
|
|
48478
|
+
if (data[i] !== null && data[i] !== void 0)
|
|
48520
48479
|
this[i] = data[i];
|
|
48521
|
-
}
|
|
48522
48480
|
}
|
|
48523
48481
|
}
|
|
48524
48482
|
get type() {
|
|
@@ -48528,11 +48486,10 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48528
48486
|
return this[TYPE];
|
|
48529
48487
|
}
|
|
48530
48488
|
set type(type) {
|
|
48531
|
-
if (types.code.has(type))
|
|
48489
|
+
if (types.code.has(type))
|
|
48532
48490
|
this[TYPE] = types.code.get(type);
|
|
48533
|
-
|
|
48491
|
+
else
|
|
48534
48492
|
this[TYPE] = type;
|
|
48535
|
-
}
|
|
48536
48493
|
}
|
|
48537
48494
|
};
|
|
48538
48495
|
var splitPrefix = (p, prefixSize) => {
|
|
@@ -48541,24 +48498,23 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48541
48498
|
let prefix = "";
|
|
48542
48499
|
let ret;
|
|
48543
48500
|
const root = pathModule.parse(p).root || ".";
|
|
48544
|
-
if (Buffer.byteLength(pp) < pathSize)
|
|
48501
|
+
if (Buffer.byteLength(pp) < pathSize)
|
|
48545
48502
|
ret = [pp, prefix, false];
|
|
48546
|
-
|
|
48503
|
+
else {
|
|
48547
48504
|
prefix = pathModule.dirname(pp);
|
|
48548
48505
|
pp = pathModule.basename(pp);
|
|
48549
48506
|
do {
|
|
48550
|
-
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48507
|
+
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48551
48508
|
ret = [pp, prefix, false];
|
|
48552
|
-
|
|
48553
|
-
ret = [pp.
|
|
48554
|
-
|
|
48509
|
+
else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48510
|
+
ret = [pp.substr(0, pathSize - 1), prefix, true];
|
|
48511
|
+
else {
|
|
48555
48512
|
pp = pathModule.join(pathModule.basename(prefix), pp);
|
|
48556
48513
|
prefix = pathModule.dirname(prefix);
|
|
48557
48514
|
}
|
|
48558
48515
|
} while (prefix !== root && !ret);
|
|
48559
|
-
if (!ret)
|
|
48560
|
-
ret = [p.
|
|
48561
|
-
}
|
|
48516
|
+
if (!ret)
|
|
48517
|
+
ret = [p.substr(0, pathSize - 1), "", true];
|
|
48562
48518
|
}
|
|
48563
48519
|
return ret;
|
|
48564
48520
|
};
|
|
@@ -48606,15 +48562,13 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48606
48562
|
}
|
|
48607
48563
|
encode() {
|
|
48608
48564
|
const body = this.encodeBody();
|
|
48609
|
-
if (body === "")
|
|
48565
|
+
if (body === "")
|
|
48610
48566
|
return null;
|
|
48611
|
-
}
|
|
48612
48567
|
const bodyLen = Buffer.byteLength(body);
|
|
48613
48568
|
const bufLen = 512 * Math.ceil(1 + bodyLen / 512);
|
|
48614
48569
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
48615
|
-
for (let i = 0; i < 512; i++)
|
|
48570
|
+
for (let i = 0; i < 512; i++)
|
|
48616
48571
|
buf[i] = 0;
|
|
48617
|
-
}
|
|
48618
48572
|
new Header({
|
|
48619
48573
|
path: ("PaxHeader/" + path6.basename(this.path)).slice(0, 99),
|
|
48620
48574
|
mode: this.mode || 420,
|
|
@@ -48632,25 +48586,22 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48632
48586
|
ctime: this.ctime || null
|
|
48633
48587
|
}).encode(buf);
|
|
48634
48588
|
buf.write(body, 512, bodyLen, "utf8");
|
|
48635
|
-
for (let i = bodyLen + 512; i < buf.length; i++)
|
|
48589
|
+
for (let i = bodyLen + 512; i < buf.length; i++)
|
|
48636
48590
|
buf[i] = 0;
|
|
48637
|
-
}
|
|
48638
48591
|
return buf;
|
|
48639
48592
|
}
|
|
48640
48593
|
encodeBody() {
|
|
48641
48594
|
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");
|
|
48642
48595
|
}
|
|
48643
48596
|
encodeField(field) {
|
|
48644
|
-
if (this[field] === null || this[field] === void 0)
|
|
48597
|
+
if (this[field] === null || this[field] === void 0)
|
|
48645
48598
|
return "";
|
|
48646
|
-
}
|
|
48647
48599
|
const v = this[field] instanceof Date ? this[field].getTime() / 1e3 : this[field];
|
|
48648
48600
|
const s = " " + (field === "dev" || field === "ino" || field === "nlink" ? "SCHILY." : "") + field + "=" + v + "\n";
|
|
48649
48601
|
const byteLen = Buffer.byteLength(s);
|
|
48650
48602
|
let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1;
|
|
48651
|
-
if (byteLen + digits >= Math.pow(10, digits))
|
|
48603
|
+
if (byteLen + digits >= Math.pow(10, digits))
|
|
48652
48604
|
digits += 1;
|
|
48653
|
-
}
|
|
48654
48605
|
const len = digits + byteLen;
|
|
48655
48606
|
return len + s;
|
|
48656
48607
|
}
|
|
@@ -48660,15 +48611,13 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48660
48611
|
var parseKV = (string) => string.replace(/\n$/, "").split("\n").reduce(parseKVLine, /* @__PURE__ */ Object.create(null));
|
|
48661
48612
|
var parseKVLine = (set, line3) => {
|
|
48662
48613
|
const n = parseInt(line3, 10);
|
|
48663
|
-
if (n !== Buffer.byteLength(line3) + 1)
|
|
48614
|
+
if (n !== Buffer.byteLength(line3) + 1)
|
|
48664
48615
|
return set;
|
|
48665
|
-
|
|
48666
|
-
line3 = line3.slice((n + " ").length);
|
|
48616
|
+
line3 = line3.substr((n + " ").length);
|
|
48667
48617
|
const kv = line3.split("=");
|
|
48668
48618
|
const k = kv.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
|
|
48669
|
-
if (!k)
|
|
48619
|
+
if (!k)
|
|
48670
48620
|
return set;
|
|
48671
|
-
}
|
|
48672
48621
|
const v = kv.join("=");
|
|
48673
48622
|
set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ? new Date(v * 1e3) : /^[0-9]+$/.test(v) ? +v : v;
|
|
48674
48623
|
return set;
|
|
@@ -48690,12 +48639,10 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48690
48639
|
"use strict";
|
|
48691
48640
|
module2.exports = (Base) => class extends Base {
|
|
48692
48641
|
warn(code, message, data = {}) {
|
|
48693
|
-
if (this.file)
|
|
48642
|
+
if (this.file)
|
|
48694
48643
|
data.file = this.file;
|
|
48695
|
-
|
|
48696
|
-
if (this.cwd) {
|
|
48644
|
+
if (this.cwd)
|
|
48697
48645
|
data.cwd = this.cwd;
|
|
48698
|
-
}
|
|
48699
48646
|
data.code = message instanceof Error && message.code || code;
|
|
48700
48647
|
data.tarCode = code;
|
|
48701
48648
|
if (!this.strict && data.recoverable !== false) {
|
|
@@ -48704,11 +48651,10 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48704
48651
|
message = message.message;
|
|
48705
48652
|
}
|
|
48706
48653
|
this.emit("warn", data.tarCode, message, data);
|
|
48707
|
-
} else if (message instanceof Error)
|
|
48654
|
+
} else if (message instanceof Error)
|
|
48708
48655
|
this.emit("error", Object.assign(message, data));
|
|
48709
|
-
|
|
48656
|
+
else
|
|
48710
48657
|
this.emit("error", Object.assign(new Error(`${code}: ${message}`), data));
|
|
48711
|
-
}
|
|
48712
48658
|
}
|
|
48713
48659
|
};
|
|
48714
48660
|
});
|
|
@@ -48736,7 +48682,7 @@ var require_strip_absolute_path = __commonJSMin((exports, module2) => {
|
|
|
48736
48682
|
let parsed = parse2(path6);
|
|
48737
48683
|
while (isAbsolute(path6) || parsed.root) {
|
|
48738
48684
|
const root = path6.charAt(0) === "/" && path6.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
48739
|
-
path6 = path6.
|
|
48685
|
+
path6 = path6.substr(root.length);
|
|
48740
48686
|
r += root;
|
|
48741
48687
|
parsed = parse2(path6);
|
|
48742
48688
|
}
|
|
@@ -48747,19 +48693,15 @@ var require_mode_fix = __commonJSMin((exports, module2) => {
|
|
|
48747
48693
|
"use strict";
|
|
48748
48694
|
module2.exports = (mode, isDir, portable) => {
|
|
48749
48695
|
mode &= 4095;
|
|
48750
|
-
if (portable)
|
|
48696
|
+
if (portable)
|
|
48751
48697
|
mode = (mode | 384) & ~18;
|
|
48752
|
-
}
|
|
48753
48698
|
if (isDir) {
|
|
48754
|
-
if (mode & 256)
|
|
48699
|
+
if (mode & 256)
|
|
48755
48700
|
mode |= 64;
|
|
48756
|
-
|
|
48757
|
-
if (mode & 32) {
|
|
48701
|
+
if (mode & 32)
|
|
48758
48702
|
mode |= 8;
|
|
48759
|
-
|
|
48760
|
-
if (mode & 4) {
|
|
48703
|
+
if (mode & 4)
|
|
48761
48704
|
mode |= 1;
|
|
48762
|
-
}
|
|
48763
48705
|
}
|
|
48764
48706
|
return mode;
|
|
48765
48707
|
};
|
|
@@ -48774,9 +48716,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48774
48716
|
var normPath = require_normalize_windows_path();
|
|
48775
48717
|
var stripSlash = require_strip_trailing_slashes();
|
|
48776
48718
|
var prefixPath = (path7, prefix) => {
|
|
48777
|
-
if (!prefix)
|
|
48719
|
+
if (!prefix)
|
|
48778
48720
|
return normPath(path7);
|
|
48779
|
-
}
|
|
48780
48721
|
path7 = normPath(path7).replace(/^\.(\/|$)/, "");
|
|
48781
48722
|
return stripSlash(prefix) + "/" + path7;
|
|
48782
48723
|
};
|
|
@@ -48808,9 +48749,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48808
48749
|
constructor(p, opt) {
|
|
48809
48750
|
opt = opt || {};
|
|
48810
48751
|
super(opt);
|
|
48811
|
-
if (typeof p !== "string")
|
|
48752
|
+
if (typeof p !== "string")
|
|
48812
48753
|
throw new TypeError("path is required");
|
|
48813
|
-
}
|
|
48814
48754
|
this.path = normPath(p);
|
|
48815
48755
|
this.portable = !!opt.portable;
|
|
48816
48756
|
this.myuid = process.getuid && process.getuid() || 0;
|
|
@@ -48833,9 +48773,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48833
48773
|
this.length = null;
|
|
48834
48774
|
this.pos = null;
|
|
48835
48775
|
this.remain = null;
|
|
48836
|
-
if (typeof opt.onwarn === "function")
|
|
48776
|
+
if (typeof opt.onwarn === "function")
|
|
48837
48777
|
this.on("warn", opt.onwarn);
|
|
48838
|
-
}
|
|
48839
48778
|
let pathWarn = false;
|
|
48840
48779
|
if (!this.preservePaths) {
|
|
48841
48780
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -48850,41 +48789,36 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48850
48789
|
p = p.replace(/\\/g, "/");
|
|
48851
48790
|
}
|
|
48852
48791
|
this.absolute = normPath(opt.absolute || path6.resolve(this.cwd, p));
|
|
48853
|
-
if (this.path === "")
|
|
48792
|
+
if (this.path === "")
|
|
48854
48793
|
this.path = "./";
|
|
48855
|
-
}
|
|
48856
48794
|
if (pathWarn) {
|
|
48857
48795
|
this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
48858
48796
|
entry: this,
|
|
48859
48797
|
path: pathWarn + this.path
|
|
48860
48798
|
});
|
|
48861
48799
|
}
|
|
48862
|
-
if (this.statCache.has(this.absolute))
|
|
48800
|
+
if (this.statCache.has(this.absolute))
|
|
48863
48801
|
this[ONLSTAT](this.statCache.get(this.absolute));
|
|
48864
|
-
|
|
48802
|
+
else
|
|
48865
48803
|
this[LSTAT]();
|
|
48866
|
-
}
|
|
48867
48804
|
}
|
|
48868
48805
|
emit(ev, ...data) {
|
|
48869
|
-
if (ev === "error")
|
|
48806
|
+
if (ev === "error")
|
|
48870
48807
|
this[HAD_ERROR] = true;
|
|
48871
|
-
}
|
|
48872
48808
|
return super.emit(ev, ...data);
|
|
48873
48809
|
}
|
|
48874
48810
|
[LSTAT]() {
|
|
48875
48811
|
fs4.lstat(this.absolute, (er, stat) => {
|
|
48876
|
-
if (er)
|
|
48812
|
+
if (er)
|
|
48877
48813
|
return this.emit("error", er);
|
|
48878
|
-
}
|
|
48879
48814
|
this[ONLSTAT](stat);
|
|
48880
48815
|
});
|
|
48881
48816
|
}
|
|
48882
48817
|
[ONLSTAT](stat) {
|
|
48883
48818
|
this.statCache.set(this.absolute, stat);
|
|
48884
48819
|
this.stat = stat;
|
|
48885
|
-
if (!stat.isFile())
|
|
48820
|
+
if (!stat.isFile())
|
|
48886
48821
|
stat.size = 0;
|
|
48887
|
-
}
|
|
48888
48822
|
this.type = getType2(stat);
|
|
48889
48823
|
this.emit("stat", stat);
|
|
48890
48824
|
this[PROCESS]();
|
|
@@ -48908,9 +48842,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48908
48842
|
return prefixPath(path7, this.prefix);
|
|
48909
48843
|
}
|
|
48910
48844
|
[HEADER]() {
|
|
48911
|
-
if (this.type === "Directory" && this.portable)
|
|
48845
|
+
if (this.type === "Directory" && this.portable)
|
|
48912
48846
|
this.noMtime = true;
|
|
48913
|
-
}
|
|
48914
48847
|
this.header = new Header({
|
|
48915
48848
|
path: this[PREFIX](this.path),
|
|
48916
48849
|
linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
|
|
@@ -48943,18 +48876,16 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48943
48876
|
super.write(this.header.block);
|
|
48944
48877
|
}
|
|
48945
48878
|
[DIRECTORY]() {
|
|
48946
|
-
if (this.path.
|
|
48879
|
+
if (this.path.substr(-1) !== "/")
|
|
48947
48880
|
this.path += "/";
|
|
48948
|
-
}
|
|
48949
48881
|
this.stat.size = 0;
|
|
48950
48882
|
this[HEADER]();
|
|
48951
48883
|
this.end();
|
|
48952
48884
|
}
|
|
48953
48885
|
[SYMLINK]() {
|
|
48954
48886
|
fs4.readlink(this.absolute, (er, linkpath) => {
|
|
48955
|
-
if (er)
|
|
48887
|
+
if (er)
|
|
48956
48888
|
return this.emit("error", er);
|
|
48957
|
-
}
|
|
48958
48889
|
this[ONREADLINK](linkpath);
|
|
48959
48890
|
});
|
|
48960
48891
|
}
|
|
@@ -48975,31 +48906,27 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48975
48906
|
const linkKey = this.stat.dev + ":" + this.stat.ino;
|
|
48976
48907
|
if (this.linkCache.has(linkKey)) {
|
|
48977
48908
|
const linkpath = this.linkCache.get(linkKey);
|
|
48978
|
-
if (linkpath.indexOf(this.cwd) === 0)
|
|
48909
|
+
if (linkpath.indexOf(this.cwd) === 0)
|
|
48979
48910
|
return this[HARDLINK](linkpath);
|
|
48980
|
-
}
|
|
48981
48911
|
}
|
|
48982
48912
|
this.linkCache.set(linkKey, this.absolute);
|
|
48983
48913
|
}
|
|
48984
48914
|
this[HEADER]();
|
|
48985
|
-
if (this.stat.size === 0)
|
|
48915
|
+
if (this.stat.size === 0)
|
|
48986
48916
|
return this.end();
|
|
48987
|
-
}
|
|
48988
48917
|
this[OPENFILE]();
|
|
48989
48918
|
}
|
|
48990
48919
|
[OPENFILE]() {
|
|
48991
48920
|
fs4.open(this.absolute, "r", (er, fd) => {
|
|
48992
|
-
if (er)
|
|
48921
|
+
if (er)
|
|
48993
48922
|
return this.emit("error", er);
|
|
48994
|
-
}
|
|
48995
48923
|
this[ONOPENFILE](fd);
|
|
48996
48924
|
});
|
|
48997
48925
|
}
|
|
48998
48926
|
[ONOPENFILE](fd) {
|
|
48999
48927
|
this.fd = fd;
|
|
49000
|
-
if (this[HAD_ERROR])
|
|
48928
|
+
if (this[HAD_ERROR])
|
|
49001
48929
|
return this[CLOSE]();
|
|
49002
|
-
}
|
|
49003
48930
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512);
|
|
49004
48931
|
this.blockRemain = this.blockLen;
|
|
49005
48932
|
const bufLen = Math.min(this.blockLen, this.maxReadSize);
|
|
@@ -49046,11 +48973,10 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49046
48973
|
}
|
|
49047
48974
|
const writeBuf = this.offset === 0 && bytesRead === this.buf.length ? this.buf : this.buf.slice(this.offset, this.offset + bytesRead);
|
|
49048
48975
|
const flushed = this.write(writeBuf);
|
|
49049
|
-
if (!flushed)
|
|
48976
|
+
if (!flushed)
|
|
49050
48977
|
this[AWAITDRAIN](() => this[ONDRAIN]());
|
|
49051
|
-
|
|
48978
|
+
else
|
|
49052
48979
|
this[ONDRAIN]();
|
|
49053
|
-
}
|
|
49054
48980
|
}
|
|
49055
48981
|
[AWAITDRAIN](cb) {
|
|
49056
48982
|
this.once("drain", cb);
|
|
@@ -49069,9 +48995,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49069
48995
|
}
|
|
49070
48996
|
[ONDRAIN]() {
|
|
49071
48997
|
if (!this.remain) {
|
|
49072
|
-
if (this.blockRemain)
|
|
48998
|
+
if (this.blockRemain)
|
|
49073
48999
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49074
|
-
}
|
|
49075
49000
|
return this[CLOSE]((er) => er ? this.emit("error", er) : this.end());
|
|
49076
49001
|
}
|
|
49077
49002
|
if (this.offset >= this.length) {
|
|
@@ -49128,9 +49053,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49128
49053
|
this.noMtime = !!opt.noMtime;
|
|
49129
49054
|
this.readEntry = readEntry;
|
|
49130
49055
|
this.type = readEntry.type;
|
|
49131
|
-
if (this.type === "Directory" && this.portable)
|
|
49056
|
+
if (this.type === "Directory" && this.portable)
|
|
49132
49057
|
this.noMtime = true;
|
|
49133
|
-
}
|
|
49134
49058
|
this.prefix = opt.prefix || null;
|
|
49135
49059
|
this.path = normPath(readEntry.path);
|
|
49136
49060
|
this.mode = this[MODE](readEntry.mode);
|
|
@@ -49143,9 +49067,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49143
49067
|
this.atime = this.portable ? null : readEntry.atime;
|
|
49144
49068
|
this.ctime = this.portable ? null : readEntry.ctime;
|
|
49145
49069
|
this.linkpath = normPath(readEntry.linkpath);
|
|
49146
|
-
if (typeof opt.onwarn === "function")
|
|
49070
|
+
if (typeof opt.onwarn === "function")
|
|
49147
49071
|
this.on("warn", opt.onwarn);
|
|
49148
|
-
}
|
|
49149
49072
|
let pathWarn = false;
|
|
49150
49073
|
if (!this.preservePaths) {
|
|
49151
49074
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -49202,16 +49125,14 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49202
49125
|
}
|
|
49203
49126
|
write(data) {
|
|
49204
49127
|
const writeLen = data.length;
|
|
49205
|
-
if (writeLen > this.blockRemain)
|
|
49128
|
+
if (writeLen > this.blockRemain)
|
|
49206
49129
|
throw new Error("writing more to entry than is appropriate");
|
|
49207
|
-
}
|
|
49208
49130
|
this.blockRemain -= writeLen;
|
|
49209
49131
|
return super.write(data);
|
|
49210
49132
|
}
|
|
49211
49133
|
end() {
|
|
49212
|
-
if (this.blockRemain)
|
|
49134
|
+
if (this.blockRemain)
|
|
49213
49135
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49214
|
-
}
|
|
49215
49136
|
return super.end();
|
|
49216
49137
|
}
|
|
49217
49138
|
});
|
|
@@ -49657,26 +49578,22 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49657
49578
|
this.statCache = opt.statCache || /* @__PURE__ */ new Map();
|
|
49658
49579
|
this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map();
|
|
49659
49580
|
this[WRITEENTRYCLASS] = WriteEntry;
|
|
49660
|
-
if (typeof opt.onwarn === "function")
|
|
49581
|
+
if (typeof opt.onwarn === "function")
|
|
49661
49582
|
this.on("warn", opt.onwarn);
|
|
49662
|
-
}
|
|
49663
49583
|
this.portable = !!opt.portable;
|
|
49664
49584
|
this.zip = null;
|
|
49665
49585
|
if (opt.gzip) {
|
|
49666
|
-
if (typeof opt.gzip !== "object")
|
|
49586
|
+
if (typeof opt.gzip !== "object")
|
|
49667
49587
|
opt.gzip = {};
|
|
49668
|
-
|
|
49669
|
-
if (this.portable) {
|
|
49588
|
+
if (this.portable)
|
|
49670
49589
|
opt.gzip.portable = true;
|
|
49671
|
-
}
|
|
49672
49590
|
this.zip = new zlib.Gzip(opt.gzip);
|
|
49673
49591
|
this.zip.on("data", (chunk) => super.write(chunk));
|
|
49674
49592
|
this.zip.on("end", (_) => super.end());
|
|
49675
49593
|
this.zip.on("drain", (_) => this[ONDRAIN]());
|
|
49676
49594
|
this.on("resume", (_) => this.zip.resume());
|
|
49677
|
-
} else
|
|
49595
|
+
} else
|
|
49678
49596
|
this.on("drain", this[ONDRAIN]);
|
|
49679
|
-
}
|
|
49680
49597
|
this.noDirRecurse = !!opt.noDirRecurse;
|
|
49681
49598
|
this.follow = !!opt.follow;
|
|
49682
49599
|
this.noMtime = !!opt.noMtime;
|
|
@@ -49696,29 +49613,26 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49696
49613
|
return this;
|
|
49697
49614
|
}
|
|
49698
49615
|
end(path7) {
|
|
49699
|
-
if (path7)
|
|
49616
|
+
if (path7)
|
|
49700
49617
|
this.write(path7);
|
|
49701
|
-
}
|
|
49702
49618
|
this[ENDED] = true;
|
|
49703
49619
|
this[PROCESS]();
|
|
49704
49620
|
return this;
|
|
49705
49621
|
}
|
|
49706
49622
|
write(path7) {
|
|
49707
|
-
if (this[ENDED])
|
|
49623
|
+
if (this[ENDED])
|
|
49708
49624
|
throw new Error("write after end");
|
|
49709
|
-
|
|
49710
|
-
if (path7 instanceof ReadEntry) {
|
|
49625
|
+
if (path7 instanceof ReadEntry)
|
|
49711
49626
|
this[ADDTARENTRY](path7);
|
|
49712
|
-
|
|
49627
|
+
else
|
|
49713
49628
|
this[ADDFSENTRY](path7);
|
|
49714
|
-
}
|
|
49715
49629
|
return this.flowing;
|
|
49716
49630
|
}
|
|
49717
49631
|
[ADDTARENTRY](p) {
|
|
49718
49632
|
const absolute = normPath(path6.resolve(this.cwd, p.path));
|
|
49719
|
-
if (!this.filter(p.path, p))
|
|
49633
|
+
if (!this.filter(p.path, p))
|
|
49720
49634
|
p.resume();
|
|
49721
|
-
|
|
49635
|
+
else {
|
|
49722
49636
|
const job = new PackJob(p.path, absolute, false);
|
|
49723
49637
|
job.entry = new WriteEntryTar(p, this[ENTRYOPT](job));
|
|
49724
49638
|
job.entry.on("end", (_) => this[JOBDONE](job));
|
|
@@ -49739,19 +49653,17 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49739
49653
|
fs4[stat](job.absolute, (er, stat2) => {
|
|
49740
49654
|
job.pending = false;
|
|
49741
49655
|
this[JOBS] -= 1;
|
|
49742
|
-
if (er)
|
|
49656
|
+
if (er)
|
|
49743
49657
|
this.emit("error", er);
|
|
49744
|
-
|
|
49658
|
+
else
|
|
49745
49659
|
this[ONSTAT](job, stat2);
|
|
49746
|
-
}
|
|
49747
49660
|
});
|
|
49748
49661
|
}
|
|
49749
49662
|
[ONSTAT](job, stat) {
|
|
49750
49663
|
this.statCache.set(job.absolute, stat);
|
|
49751
49664
|
job.stat = stat;
|
|
49752
|
-
if (!this.filter(job.path, stat))
|
|
49665
|
+
if (!this.filter(job.path, stat))
|
|
49753
49666
|
job.ignore = true;
|
|
49754
|
-
}
|
|
49755
49667
|
this[PROCESS]();
|
|
49756
49668
|
}
|
|
49757
49669
|
[READDIR](job) {
|
|
@@ -49760,9 +49672,8 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49760
49672
|
fs4.readdir(job.absolute, (er, entries) => {
|
|
49761
49673
|
job.pending = false;
|
|
49762
49674
|
this[JOBS] -= 1;
|
|
49763
|
-
if (er)
|
|
49675
|
+
if (er)
|
|
49764
49676
|
return this.emit("error", er);
|
|
49765
|
-
}
|
|
49766
49677
|
this[ONREADDIR](job, entries);
|
|
49767
49678
|
});
|
|
49768
49679
|
}
|
|
@@ -49772,9 +49683,8 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49772
49683
|
this[PROCESS]();
|
|
49773
49684
|
}
|
|
49774
49685
|
[PROCESS]() {
|
|
49775
|
-
if (this[PROCESSING])
|
|
49686
|
+
if (this[PROCESSING])
|
|
49776
49687
|
return;
|
|
49777
|
-
}
|
|
49778
49688
|
this[PROCESSING] = true;
|
|
49779
49689
|
for (let w = this[QUEUE].head; w !== null && this[JOBS] < this.jobs; w = w.next) {
|
|
49780
49690
|
this[PROCESSJOB](w.value);
|
|
@@ -49786,9 +49696,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49786
49696
|
}
|
|
49787
49697
|
this[PROCESSING] = false;
|
|
49788
49698
|
if (this[ENDED] && !this[QUEUE].length && this[JOBS] === 0) {
|
|
49789
|
-
if (this.zip)
|
|
49699
|
+
if (this.zip)
|
|
49790
49700
|
this.zip.end(EOF);
|
|
49791
|
-
|
|
49701
|
+
else {
|
|
49792
49702
|
super.write(EOF);
|
|
49793
49703
|
super.end();
|
|
49794
49704
|
}
|
|
@@ -49803,46 +49713,38 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49803
49713
|
this[PROCESS]();
|
|
49804
49714
|
}
|
|
49805
49715
|
[PROCESSJOB](job) {
|
|
49806
|
-
if (job.pending)
|
|
49716
|
+
if (job.pending)
|
|
49807
49717
|
return;
|
|
49808
|
-
}
|
|
49809
49718
|
if (job.entry) {
|
|
49810
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49719
|
+
if (job === this[CURRENT] && !job.piped)
|
|
49811
49720
|
this[PIPE](job);
|
|
49812
|
-
}
|
|
49813
49721
|
return;
|
|
49814
49722
|
}
|
|
49815
49723
|
if (!job.stat) {
|
|
49816
|
-
if (this.statCache.has(job.absolute))
|
|
49724
|
+
if (this.statCache.has(job.absolute))
|
|
49817
49725
|
this[ONSTAT](job, this.statCache.get(job.absolute));
|
|
49818
|
-
|
|
49726
|
+
else
|
|
49819
49727
|
this[STAT](job);
|
|
49820
|
-
}
|
|
49821
49728
|
}
|
|
49822
|
-
if (!job.stat)
|
|
49729
|
+
if (!job.stat)
|
|
49823
49730
|
return;
|
|
49824
|
-
|
|
49825
|
-
if (job.ignore) {
|
|
49731
|
+
if (job.ignore)
|
|
49826
49732
|
return;
|
|
49827
|
-
}
|
|
49828
49733
|
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
|
49829
|
-
if (this.readdirCache.has(job.absolute))
|
|
49734
|
+
if (this.readdirCache.has(job.absolute))
|
|
49830
49735
|
this[ONREADDIR](job, this.readdirCache.get(job.absolute));
|
|
49831
|
-
|
|
49736
|
+
else
|
|
49832
49737
|
this[READDIR](job);
|
|
49833
|
-
|
|
49834
|
-
if (!job.readdir) {
|
|
49738
|
+
if (!job.readdir)
|
|
49835
49739
|
return;
|
|
49836
|
-
}
|
|
49837
49740
|
}
|
|
49838
49741
|
job.entry = this[ENTRY](job);
|
|
49839
49742
|
if (!job.entry) {
|
|
49840
49743
|
job.ignore = true;
|
|
49841
49744
|
return;
|
|
49842
49745
|
}
|
|
49843
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49746
|
+
if (job === this[CURRENT] && !job.piped)
|
|
49844
49747
|
this[PIPE](job);
|
|
49845
|
-
}
|
|
49846
49748
|
}
|
|
49847
49749
|
[ENTRYOPT](job) {
|
|
49848
49750
|
return {
|
|
@@ -49870,9 +49772,8 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49870
49772
|
}
|
|
49871
49773
|
}
|
|
49872
49774
|
[ONDRAIN]() {
|
|
49873
|
-
if (this[CURRENT] && this[CURRENT].entry)
|
|
49775
|
+
if (this[CURRENT] && this[CURRENT].entry)
|
|
49874
49776
|
this[CURRENT].entry.resume();
|
|
49875
|
-
}
|
|
49876
49777
|
}
|
|
49877
49778
|
[PIPE](job) {
|
|
49878
49779
|
job.piped = true;
|
|
@@ -49887,22 +49788,19 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49887
49788
|
const zip = this.zip;
|
|
49888
49789
|
if (zip) {
|
|
49889
49790
|
source.on("data", (chunk) => {
|
|
49890
|
-
if (!zip.write(chunk))
|
|
49791
|
+
if (!zip.write(chunk))
|
|
49891
49792
|
source.pause();
|
|
49892
|
-
}
|
|
49893
49793
|
});
|
|
49894
49794
|
} else {
|
|
49895
49795
|
source.on("data", (chunk) => {
|
|
49896
|
-
if (!super.write(chunk))
|
|
49796
|
+
if (!super.write(chunk))
|
|
49897
49797
|
source.pause();
|
|
49898
|
-
}
|
|
49899
49798
|
});
|
|
49900
49799
|
}
|
|
49901
49800
|
}
|
|
49902
49801
|
pause() {
|
|
49903
|
-
if (this.zip)
|
|
49802
|
+
if (this.zip)
|
|
49904
49803
|
this.zip.pause();
|
|
49905
|
-
}
|
|
49906
49804
|
return super.pause();
|
|
49907
49805
|
}
|
|
49908
49806
|
});
|
|
@@ -50314,7 +50212,6 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50314
50212
|
var Entry = require_read_entry();
|
|
50315
50213
|
var Pax = require_pax();
|
|
50316
50214
|
var zlib = require_minizlib();
|
|
50317
|
-
var { nextTick } = __require("process");
|
|
50318
50215
|
var gzipHeader = Buffer.from([31, 139]);
|
|
50319
50216
|
var STATE = Symbol("state");
|
|
50320
50217
|
var WRITEENTRY = Symbol("writeEntry");
|
|
@@ -50345,7 +50242,6 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50345
50242
|
var SAW_VALID_ENTRY = Symbol("sawValidEntry");
|
|
50346
50243
|
var SAW_NULL_BLOCK = Symbol("sawNullBlock");
|
|
50347
50244
|
var SAW_EOF = Symbol("sawEOF");
|
|
50348
|
-
var CLOSESTREAM = Symbol("closeStream");
|
|
50349
50245
|
var noop = (_) => true;
|
|
50350
50246
|
module2.exports = warner(class Parser extends EE {
|
|
50351
50247
|
constructor(opt) {
|
|
@@ -50358,13 +50254,14 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50358
50254
|
this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
50359
50255
|
}
|
|
50360
50256
|
});
|
|
50361
|
-
if (opt.ondone)
|
|
50257
|
+
if (opt.ondone)
|
|
50362
50258
|
this.on(DONE, opt.ondone);
|
|
50363
|
-
|
|
50259
|
+
else {
|
|
50364
50260
|
this.on(DONE, (_) => {
|
|
50365
50261
|
this.emit("prefinish");
|
|
50366
50262
|
this.emit("finish");
|
|
50367
50263
|
this.emit("end");
|
|
50264
|
+
this.emit("close");
|
|
50368
50265
|
});
|
|
50369
50266
|
}
|
|
50370
50267
|
this.strict = !!opt.strict;
|
|
@@ -50385,18 +50282,14 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50385
50282
|
this[ABORTED] = false;
|
|
50386
50283
|
this[SAW_NULL_BLOCK] = false;
|
|
50387
50284
|
this[SAW_EOF] = false;
|
|
50388
|
-
|
|
50389
|
-
if (typeof opt.onwarn === "function") {
|
|
50285
|
+
if (typeof opt.onwarn === "function")
|
|
50390
50286
|
this.on("warn", opt.onwarn);
|
|
50391
|
-
|
|
50392
|
-
if (typeof opt.onentry === "function") {
|
|
50287
|
+
if (typeof opt.onentry === "function")
|
|
50393
50288
|
this.on("entry", opt.onentry);
|
|
50394
|
-
}
|
|
50395
50289
|
}
|
|
50396
50290
|
[CONSUMEHEADER](chunk, position) {
|
|
50397
|
-
if (this[SAW_VALID_ENTRY] === null)
|
|
50291
|
+
if (this[SAW_VALID_ENTRY] === null)
|
|
50398
50292
|
this[SAW_VALID_ENTRY] = false;
|
|
50399
|
-
}
|
|
50400
50293
|
let header;
|
|
50401
50294
|
try {
|
|
50402
50295
|
header = new Header(chunk, position, this[EX], this[GEX]);
|
|
@@ -50406,9 +50299,8 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50406
50299
|
if (header.nullBlock) {
|
|
50407
50300
|
if (this[SAW_NULL_BLOCK]) {
|
|
50408
50301
|
this[SAW_EOF] = true;
|
|
50409
|
-
if (this[STATE] === "begin")
|
|
50302
|
+
if (this[STATE] === "begin")
|
|
50410
50303
|
this[STATE] = "header";
|
|
50411
|
-
}
|
|
50412
50304
|
this[EMIT]("eof");
|
|
50413
50305
|
} else {
|
|
50414
50306
|
this[SAW_NULL_BLOCK] = true;
|
|
@@ -50416,29 +50308,27 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50416
50308
|
}
|
|
50417
50309
|
} else {
|
|
50418
50310
|
this[SAW_NULL_BLOCK] = false;
|
|
50419
|
-
if (!header.cksumValid)
|
|
50311
|
+
if (!header.cksumValid)
|
|
50420
50312
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header });
|
|
50421
|
-
|
|
50313
|
+
else if (!header.path)
|
|
50422
50314
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header });
|
|
50423
|
-
|
|
50315
|
+
else {
|
|
50424
50316
|
const type = header.type;
|
|
50425
|
-
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
|
50317
|
+
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
|
50426
50318
|
this.warn("TAR_ENTRY_INVALID", "linkpath required", { header });
|
|
50427
|
-
|
|
50319
|
+
else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath)
|
|
50428
50320
|
this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header });
|
|
50429
|
-
|
|
50321
|
+
else {
|
|
50430
50322
|
const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX]);
|
|
50431
50323
|
if (!this[SAW_VALID_ENTRY]) {
|
|
50432
50324
|
if (entry.remain) {
|
|
50433
50325
|
const onend = () => {
|
|
50434
|
-
if (!entry.invalid)
|
|
50326
|
+
if (!entry.invalid)
|
|
50435
50327
|
this[SAW_VALID_ENTRY] = true;
|
|
50436
|
-
}
|
|
50437
50328
|
};
|
|
50438
50329
|
entry.on("end", onend);
|
|
50439
|
-
} else
|
|
50330
|
+
} else
|
|
50440
50331
|
this[SAW_VALID_ENTRY] = true;
|
|
50441
|
-
}
|
|
50442
50332
|
}
|
|
50443
50333
|
if (entry.meta) {
|
|
50444
50334
|
if (entry.size > this.maxMetaEntrySize) {
|
|
@@ -50459,35 +50349,31 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50459
50349
|
this[STATE] = entry.remain ? "ignore" : "header";
|
|
50460
50350
|
entry.resume();
|
|
50461
50351
|
} else {
|
|
50462
|
-
if (entry.remain)
|
|
50352
|
+
if (entry.remain)
|
|
50463
50353
|
this[STATE] = "body";
|
|
50464
|
-
|
|
50354
|
+
else {
|
|
50465
50355
|
this[STATE] = "header";
|
|
50466
50356
|
entry.end();
|
|
50467
50357
|
}
|
|
50468
50358
|
if (!this[READENTRY]) {
|
|
50469
50359
|
this[QUEUE].push(entry);
|
|
50470
50360
|
this[NEXTENTRY]();
|
|
50471
|
-
} else
|
|
50361
|
+
} else
|
|
50472
50362
|
this[QUEUE].push(entry);
|
|
50473
|
-
}
|
|
50474
50363
|
}
|
|
50475
50364
|
}
|
|
50476
50365
|
}
|
|
50477
50366
|
}
|
|
50478
50367
|
}
|
|
50479
50368
|
}
|
|
50480
|
-
[CLOSESTREAM]() {
|
|
50481
|
-
nextTick(() => this.emit("close"));
|
|
50482
|
-
}
|
|
50483
50369
|
[PROCESSENTRY](entry) {
|
|
50484
50370
|
let go = true;
|
|
50485
50371
|
if (!entry) {
|
|
50486
50372
|
this[READENTRY] = null;
|
|
50487
50373
|
go = false;
|
|
50488
|
-
} else if (Array.isArray(entry))
|
|
50374
|
+
} else if (Array.isArray(entry))
|
|
50489
50375
|
this.emit.apply(this, entry);
|
|
50490
|
-
|
|
50376
|
+
else {
|
|
50491
50377
|
this[READENTRY] = entry;
|
|
50492
50378
|
this.emit("entry", entry);
|
|
50493
50379
|
if (!entry.emittedEnd) {
|
|
@@ -50504,12 +50390,10 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50504
50390
|
const re = this[READENTRY];
|
|
50505
50391
|
const drainNow = !re || re.flowing || re.size === re.remain;
|
|
50506
50392
|
if (drainNow) {
|
|
50507
|
-
if (!this[WRITING])
|
|
50393
|
+
if (!this[WRITING])
|
|
50508
50394
|
this.emit("drain");
|
|
50509
|
-
|
|
50510
|
-
} else {
|
|
50395
|
+
} else
|
|
50511
50396
|
re.once("drain", (_) => this.emit("drain"));
|
|
50512
|
-
}
|
|
50513
50397
|
}
|
|
50514
50398
|
}
|
|
50515
50399
|
[CONSUMEBODY](chunk, position) {
|
|
@@ -50527,17 +50411,15 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50527
50411
|
[CONSUMEMETA](chunk, position) {
|
|
50528
50412
|
const entry = this[WRITEENTRY];
|
|
50529
50413
|
const ret = this[CONSUMEBODY](chunk, position);
|
|
50530
|
-
if (!this[WRITEENTRY])
|
|
50414
|
+
if (!this[WRITEENTRY])
|
|
50531
50415
|
this[EMITMETA](entry);
|
|
50532
|
-
}
|
|
50533
50416
|
return ret;
|
|
50534
50417
|
}
|
|
50535
50418
|
[EMIT](ev, data, extra) {
|
|
50536
|
-
if (!this[QUEUE].length && !this[READENTRY])
|
|
50419
|
+
if (!this[QUEUE].length && !this[READENTRY])
|
|
50537
50420
|
this.emit(ev, data, extra);
|
|
50538
|
-
|
|
50421
|
+
else
|
|
50539
50422
|
this[QUEUE].push([ev, data, extra]);
|
|
50540
|
-
}
|
|
50541
50423
|
}
|
|
50542
50424
|
[EMITMETA](entry) {
|
|
50543
50425
|
this[EMIT]("meta", this[META]);
|
|
@@ -50568,9 +50450,8 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50568
50450
|
this.warn("TAR_ABORT", error, { recoverable: false });
|
|
50569
50451
|
}
|
|
50570
50452
|
write(chunk) {
|
|
50571
|
-
if (this[ABORTED])
|
|
50453
|
+
if (this[ABORTED])
|
|
50572
50454
|
return;
|
|
50573
|
-
}
|
|
50574
50455
|
if (this[UNZIP] === null && chunk) {
|
|
50575
50456
|
if (this[BUFFER]) {
|
|
50576
50457
|
chunk = Buffer.concat([this[BUFFER], chunk]);
|
|
@@ -50581,9 +50462,8 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50581
50462
|
return true;
|
|
50582
50463
|
}
|
|
50583
50464
|
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
|
50584
|
-
if (chunk[i] !== gzipHeader[i])
|
|
50465
|
+
if (chunk[i] !== gzipHeader[i])
|
|
50585
50466
|
this[UNZIP] = false;
|
|
50586
|
-
}
|
|
50587
50467
|
}
|
|
50588
50468
|
if (this[UNZIP] === null) {
|
|
50589
50469
|
const ended = this[ENDED];
|
|
@@ -50602,22 +50482,19 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50602
50482
|
}
|
|
50603
50483
|
}
|
|
50604
50484
|
this[WRITING] = true;
|
|
50605
|
-
if (this[UNZIP])
|
|
50485
|
+
if (this[UNZIP])
|
|
50606
50486
|
this[UNZIP].write(chunk);
|
|
50607
|
-
|
|
50487
|
+
else
|
|
50608
50488
|
this[CONSUMECHUNK](chunk);
|
|
50609
|
-
}
|
|
50610
50489
|
this[WRITING] = false;
|
|
50611
50490
|
const ret = this[QUEUE].length ? false : this[READENTRY] ? this[READENTRY].flowing : true;
|
|
50612
|
-
if (!ret && !this[QUEUE].length)
|
|
50491
|
+
if (!ret && !this[QUEUE].length)
|
|
50613
50492
|
this[READENTRY].once("drain", (_) => this.emit("drain"));
|
|
50614
|
-
}
|
|
50615
50493
|
return ret;
|
|
50616
50494
|
}
|
|
50617
50495
|
[BUFFERCONCAT](c) {
|
|
50618
|
-
if (c && !this[ABORTED])
|
|
50496
|
+
if (c && !this[ABORTED])
|
|
50619
50497
|
this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c;
|
|
50620
|
-
}
|
|
50621
50498
|
}
|
|
50622
50499
|
[MAYBEEND]() {
|
|
50623
50500
|
if (this[ENDED] && !this[EMITTEDEND] && !this[ABORTED] && !this[CONSUMING]) {
|
|
@@ -50626,29 +50503,27 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50626
50503
|
if (entry && entry.blockRemain) {
|
|
50627
50504
|
const have = this[BUFFER] ? this[BUFFER].length : 0;
|
|
50628
50505
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${entry.blockRemain} more bytes, only ${have} available)`, { entry });
|
|
50629
|
-
if (this[BUFFER])
|
|
50506
|
+
if (this[BUFFER])
|
|
50630
50507
|
entry.write(this[BUFFER]);
|
|
50631
|
-
}
|
|
50632
50508
|
entry.end();
|
|
50633
50509
|
}
|
|
50634
50510
|
this[EMIT](DONE);
|
|
50635
50511
|
}
|
|
50636
50512
|
}
|
|
50637
50513
|
[CONSUMECHUNK](chunk) {
|
|
50638
|
-
if (this[CONSUMING])
|
|
50514
|
+
if (this[CONSUMING])
|
|
50639
50515
|
this[BUFFERCONCAT](chunk);
|
|
50640
|
-
|
|
50516
|
+
else if (!chunk && !this[BUFFER])
|
|
50641
50517
|
this[MAYBEEND]();
|
|
50642
|
-
|
|
50518
|
+
else {
|
|
50643
50519
|
this[CONSUMING] = true;
|
|
50644
50520
|
if (this[BUFFER]) {
|
|
50645
50521
|
this[BUFFERCONCAT](chunk);
|
|
50646
50522
|
const c = this[BUFFER];
|
|
50647
50523
|
this[BUFFER] = null;
|
|
50648
50524
|
this[CONSUMECHUNKSUB](c);
|
|
50649
|
-
} else
|
|
50525
|
+
} else
|
|
50650
50526
|
this[CONSUMECHUNKSUB](chunk);
|
|
50651
|
-
}
|
|
50652
50527
|
while (this[BUFFER] && this[BUFFER].length >= 512 && !this[ABORTED] && !this[SAW_EOF]) {
|
|
50653
50528
|
const c = this[BUFFER];
|
|
50654
50529
|
this[BUFFER] = null;
|
|
@@ -50656,9 +50531,8 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50656
50531
|
}
|
|
50657
50532
|
this[CONSUMING] = false;
|
|
50658
50533
|
}
|
|
50659
|
-
if (!this[BUFFER] || this[ENDED])
|
|
50534
|
+
if (!this[BUFFER] || this[ENDED])
|
|
50660
50535
|
this[MAYBEEND]();
|
|
50661
|
-
}
|
|
50662
50536
|
}
|
|
50663
50537
|
[CONSUMECHUNKSUB](chunk) {
|
|
50664
50538
|
let position = 0;
|
|
@@ -50682,18 +50556,17 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50682
50556
|
}
|
|
50683
50557
|
}
|
|
50684
50558
|
if (position < length) {
|
|
50685
|
-
if (this[BUFFER])
|
|
50559
|
+
if (this[BUFFER])
|
|
50686
50560
|
this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]]);
|
|
50687
|
-
|
|
50561
|
+
else
|
|
50688
50562
|
this[BUFFER] = chunk.slice(position);
|
|
50689
|
-
}
|
|
50690
50563
|
}
|
|
50691
50564
|
}
|
|
50692
50565
|
end(chunk) {
|
|
50693
50566
|
if (!this[ABORTED]) {
|
|
50694
|
-
if (this[UNZIP])
|
|
50567
|
+
if (this[UNZIP])
|
|
50695
50568
|
this[UNZIP].end(chunk);
|
|
50696
|
-
|
|
50569
|
+
else {
|
|
50697
50570
|
this[ENDED] = true;
|
|
50698
50571
|
this.write(chunk);
|
|
50699
50572
|
}
|
|
@@ -50710,32 +50583,25 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50710
50583
|
var path6 = __require("path");
|
|
50711
50584
|
var stripSlash = require_strip_trailing_slashes();
|
|
50712
50585
|
module2.exports = (opt_, files, cb) => {
|
|
50713
|
-
if (typeof opt_ === "function")
|
|
50586
|
+
if (typeof opt_ === "function")
|
|
50714
50587
|
cb = opt_, files = null, opt_ = {};
|
|
50715
|
-
|
|
50588
|
+
else if (Array.isArray(opt_))
|
|
50716
50589
|
files = opt_, opt_ = {};
|
|
50717
|
-
|
|
50718
|
-
if (typeof files === "function") {
|
|
50590
|
+
if (typeof files === "function")
|
|
50719
50591
|
cb = files, files = null;
|
|
50720
|
-
|
|
50721
|
-
if (!files) {
|
|
50592
|
+
if (!files)
|
|
50722
50593
|
files = [];
|
|
50723
|
-
|
|
50594
|
+
else
|
|
50724
50595
|
files = Array.from(files);
|
|
50725
|
-
}
|
|
50726
50596
|
const opt = hlo(opt_);
|
|
50727
|
-
if (opt.sync && typeof cb === "function")
|
|
50597
|
+
if (opt.sync && typeof cb === "function")
|
|
50728
50598
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50729
|
-
|
|
50730
|
-
if (!opt.file && typeof cb === "function") {
|
|
50599
|
+
if (!opt.file && typeof cb === "function")
|
|
50731
50600
|
throw new TypeError("callback only supported with file option");
|
|
50732
|
-
|
|
50733
|
-
if (files.length) {
|
|
50601
|
+
if (files.length)
|
|
50734
50602
|
filesFilter(opt, files);
|
|
50735
|
-
|
|
50736
|
-
if (!opt.noResume) {
|
|
50603
|
+
if (!opt.noResume)
|
|
50737
50604
|
onentryFunction(opt);
|
|
50738
|
-
}
|
|
50739
50605
|
return opt.file && opt.sync ? listFileSync(opt) : opt.file ? listFile(opt, cb) : list(opt);
|
|
50740
50606
|
};
|
|
50741
50607
|
var onentryFunction = (opt) => {
|
|
@@ -50764,9 +50630,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50764
50630
|
try {
|
|
50765
50631
|
const stat = fs4.statSync(file);
|
|
50766
50632
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
50767
|
-
if (stat.size < readSize)
|
|
50633
|
+
if (stat.size < readSize)
|
|
50768
50634
|
p.end(fs4.readFileSync(file));
|
|
50769
|
-
|
|
50635
|
+
else {
|
|
50770
50636
|
let pos = 0;
|
|
50771
50637
|
const buf = Buffer.allocUnsafe(readSize);
|
|
50772
50638
|
fd = fs4.openSync(file, "r");
|
|
@@ -50795,9 +50661,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50795
50661
|
parse2.on("error", reject);
|
|
50796
50662
|
parse2.on("end", resolve);
|
|
50797
50663
|
fs4.stat(file, (er, stat) => {
|
|
50798
|
-
if (er)
|
|
50664
|
+
if (er)
|
|
50799
50665
|
reject(er);
|
|
50800
|
-
|
|
50666
|
+
else {
|
|
50801
50667
|
const stream = new fsm.ReadStream(file, {
|
|
50802
50668
|
readSize,
|
|
50803
50669
|
size: stat.size
|
|
@@ -50819,23 +50685,18 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50819
50685
|
var t = require_list();
|
|
50820
50686
|
var path6 = __require("path");
|
|
50821
50687
|
module2.exports = (opt_, files, cb) => {
|
|
50822
|
-
if (typeof files === "function")
|
|
50688
|
+
if (typeof files === "function")
|
|
50823
50689
|
cb = files;
|
|
50824
|
-
|
|
50825
|
-
if (Array.isArray(opt_)) {
|
|
50690
|
+
if (Array.isArray(opt_))
|
|
50826
50691
|
files = opt_, opt_ = {};
|
|
50827
|
-
|
|
50828
|
-
if (!files || !Array.isArray(files) || !files.length) {
|
|
50692
|
+
if (!files || !Array.isArray(files) || !files.length)
|
|
50829
50693
|
throw new TypeError("no files or directories specified");
|
|
50830
|
-
}
|
|
50831
50694
|
files = Array.from(files);
|
|
50832
50695
|
const opt = hlo(opt_);
|
|
50833
|
-
if (opt.sync && typeof cb === "function")
|
|
50696
|
+
if (opt.sync && typeof cb === "function")
|
|
50834
50697
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50835
|
-
|
|
50836
|
-
if (!opt.file && typeof cb === "function") {
|
|
50698
|
+
if (!opt.file && typeof cb === "function")
|
|
50837
50699
|
throw new TypeError("callback only supported with file option");
|
|
50838
|
-
}
|
|
50839
50700
|
return opt.file && opt.sync ? createFileSync(opt, files) : opt.file ? createFile(opt, files, cb) : opt.sync ? createSync(opt, files) : create(opt, files);
|
|
50840
50701
|
};
|
|
50841
50702
|
var createFileSync = (opt, files) => {
|
|
@@ -50864,14 +50725,13 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50864
50725
|
files.forEach((file) => {
|
|
50865
50726
|
if (file.charAt(0) === "@") {
|
|
50866
50727
|
t({
|
|
50867
|
-
file: path6.resolve(p.cwd, file.
|
|
50728
|
+
file: path6.resolve(p.cwd, file.substr(1)),
|
|
50868
50729
|
sync: true,
|
|
50869
50730
|
noResume: true,
|
|
50870
50731
|
onentry: (entry) => p.add(entry)
|
|
50871
50732
|
});
|
|
50872
|
-
} else
|
|
50733
|
+
} else
|
|
50873
50734
|
p.add(file);
|
|
50874
|
-
}
|
|
50875
50735
|
});
|
|
50876
50736
|
p.end();
|
|
50877
50737
|
};
|
|
@@ -50880,13 +50740,12 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50880
50740
|
const file = files.shift();
|
|
50881
50741
|
if (file.charAt(0) === "@") {
|
|
50882
50742
|
return t({
|
|
50883
|
-
file: path6.resolve(p.cwd, file.
|
|
50743
|
+
file: path6.resolve(p.cwd, file.substr(1)),
|
|
50884
50744
|
noResume: true,
|
|
50885
50745
|
onentry: (entry) => p.add(entry)
|
|
50886
50746
|
}).then((_) => addFilesAsync(p, files));
|
|
50887
|
-
} else
|
|
50747
|
+
} else
|
|
50888
50748
|
p.add(file);
|
|
50889
|
-
}
|
|
50890
50749
|
}
|
|
50891
50750
|
p.end();
|
|
50892
50751
|
};
|
|
@@ -50912,15 +50771,12 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50912
50771
|
var Header = require_header();
|
|
50913
50772
|
module2.exports = (opt_, files, cb) => {
|
|
50914
50773
|
const opt = hlo(opt_);
|
|
50915
|
-
if (!opt.file)
|
|
50774
|
+
if (!opt.file)
|
|
50916
50775
|
throw new TypeError("file is required");
|
|
50917
|
-
|
|
50918
|
-
if (opt.gzip) {
|
|
50776
|
+
if (opt.gzip)
|
|
50919
50777
|
throw new TypeError("cannot append to compressed archives");
|
|
50920
|
-
|
|
50921
|
-
if (!files || !Array.isArray(files) || !files.length) {
|
|
50778
|
+
if (!files || !Array.isArray(files) || !files.length)
|
|
50922
50779
|
throw new TypeError("no files or directories specified");
|
|
50923
|
-
}
|
|
50924
50780
|
files = Array.from(files);
|
|
50925
50781
|
return opt.sync ? replaceSync(opt, files) : replace2(opt, files, cb);
|
|
50926
50782
|
};
|
|
@@ -50933,11 +50789,10 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50933
50789
|
try {
|
|
50934
50790
|
fd = fs4.openSync(opt.file, "r+");
|
|
50935
50791
|
} catch (er) {
|
|
50936
|
-
if (er.code === "ENOENT")
|
|
50792
|
+
if (er.code === "ENOENT")
|
|
50937
50793
|
fd = fs4.openSync(opt.file, "w+");
|
|
50938
|
-
|
|
50794
|
+
else
|
|
50939
50795
|
throw er;
|
|
50940
|
-
}
|
|
50941
50796
|
}
|
|
50942
50797
|
const st = fs4.fstatSync(fd);
|
|
50943
50798
|
const headBuf = Buffer.alloc(512);
|
|
@@ -50945,25 +50800,20 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50945
50800
|
for (position = 0; position < st.size; position += 512) {
|
|
50946
50801
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
50947
50802
|
bytes = fs4.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
50948
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
50803
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
50949
50804
|
throw new Error("cannot append to compressed archives");
|
|
50950
|
-
|
|
50951
|
-
if (!bytes) {
|
|
50805
|
+
if (!bytes)
|
|
50952
50806
|
break POSITION;
|
|
50953
|
-
}
|
|
50954
50807
|
}
|
|
50955
50808
|
const h = new Header(headBuf);
|
|
50956
|
-
if (!h.cksumValid)
|
|
50809
|
+
if (!h.cksumValid)
|
|
50957
50810
|
break;
|
|
50958
|
-
}
|
|
50959
50811
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
50960
|
-
if (position + entryBlockSize + 512 > st.size)
|
|
50812
|
+
if (position + entryBlockSize + 512 > st.size)
|
|
50961
50813
|
break;
|
|
50962
|
-
}
|
|
50963
50814
|
position += entryBlockSize;
|
|
50964
|
-
if (opt.mtimeCache)
|
|
50815
|
+
if (opt.mtimeCache)
|
|
50965
50816
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
50966
|
-
}
|
|
50967
50817
|
}
|
|
50968
50818
|
threw = false;
|
|
50969
50819
|
streamSync(opt, p, position, fd, files);
|
|
@@ -50989,47 +50839,38 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50989
50839
|
const p = new Pack(opt);
|
|
50990
50840
|
const getPos = (fd, size, cb_) => {
|
|
50991
50841
|
const cb2 = (er, pos) => {
|
|
50992
|
-
if (er)
|
|
50842
|
+
if (er)
|
|
50993
50843
|
fs4.close(fd, (_) => cb_(er));
|
|
50994
|
-
|
|
50844
|
+
else
|
|
50995
50845
|
cb_(null, pos);
|
|
50996
|
-
}
|
|
50997
50846
|
};
|
|
50998
50847
|
let position = 0;
|
|
50999
|
-
if (size === 0)
|
|
50848
|
+
if (size === 0)
|
|
51000
50849
|
return cb2(null, 0);
|
|
51001
|
-
}
|
|
51002
50850
|
let bufPos = 0;
|
|
51003
50851
|
const headBuf = Buffer.alloc(512);
|
|
51004
50852
|
const onread = (er, bytes) => {
|
|
51005
|
-
if (er)
|
|
50853
|
+
if (er)
|
|
51006
50854
|
return cb2(er);
|
|
51007
|
-
}
|
|
51008
50855
|
bufPos += bytes;
|
|
51009
50856
|
if (bufPos < 512 && bytes) {
|
|
51010
50857
|
return fs4.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
51011
50858
|
}
|
|
51012
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
50859
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
51013
50860
|
return cb2(new Error("cannot append to compressed archives"));
|
|
51014
|
-
|
|
51015
|
-
if (bufPos < 512) {
|
|
50861
|
+
if (bufPos < 512)
|
|
51016
50862
|
return cb2(null, position);
|
|
51017
|
-
}
|
|
51018
50863
|
const h = new Header(headBuf);
|
|
51019
|
-
if (!h.cksumValid)
|
|
50864
|
+
if (!h.cksumValid)
|
|
51020
50865
|
return cb2(null, position);
|
|
51021
|
-
}
|
|
51022
50866
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
51023
|
-
if (position + entryBlockSize + 512 > size)
|
|
50867
|
+
if (position + entryBlockSize + 512 > size)
|
|
51024
50868
|
return cb2(null, position);
|
|
51025
|
-
}
|
|
51026
50869
|
position += entryBlockSize + 512;
|
|
51027
|
-
if (position >= size)
|
|
50870
|
+
if (position >= size)
|
|
51028
50871
|
return cb2(null, position);
|
|
51029
|
-
|
|
51030
|
-
if (opt.mtimeCache) {
|
|
50872
|
+
if (opt.mtimeCache)
|
|
51031
50873
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
51032
|
-
}
|
|
51033
50874
|
bufPos = 0;
|
|
51034
50875
|
fs4.read(fd, headBuf, 0, 512, position, onread);
|
|
51035
50876
|
};
|
|
@@ -51043,17 +50884,14 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
51043
50884
|
flag = "w+";
|
|
51044
50885
|
return fs4.open(opt.file, flag, onopen);
|
|
51045
50886
|
}
|
|
51046
|
-
if (er)
|
|
50887
|
+
if (er)
|
|
51047
50888
|
return reject(er);
|
|
51048
|
-
}
|
|
51049
50889
|
fs4.fstat(fd, (er2, st) => {
|
|
51050
|
-
if (er2)
|
|
50890
|
+
if (er2)
|
|
51051
50891
|
return fs4.close(fd, () => reject(er2));
|
|
51052
|
-
}
|
|
51053
50892
|
getPos(fd, st.size, (er3, position) => {
|
|
51054
|
-
if (er3)
|
|
50893
|
+
if (er3)
|
|
51055
50894
|
return reject(er3);
|
|
51056
|
-
}
|
|
51057
50895
|
const stream = new fsm.WriteStream(opt.file, {
|
|
51058
50896
|
fd,
|
|
51059
50897
|
start: position
|
|
@@ -51073,14 +50911,13 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
51073
50911
|
files.forEach((file) => {
|
|
51074
50912
|
if (file.charAt(0) === "@") {
|
|
51075
50913
|
t({
|
|
51076
|
-
file: path6.resolve(p.cwd, file.
|
|
50914
|
+
file: path6.resolve(p.cwd, file.substr(1)),
|
|
51077
50915
|
sync: true,
|
|
51078
50916
|
noResume: true,
|
|
51079
50917
|
onentry: (entry) => p.add(entry)
|
|
51080
50918
|
});
|
|
51081
|
-
} else
|
|
50919
|
+
} else
|
|
51082
50920
|
p.add(file);
|
|
51083
|
-
}
|
|
51084
50921
|
});
|
|
51085
50922
|
p.end();
|
|
51086
50923
|
};
|
|
@@ -51089,13 +50926,12 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
51089
50926
|
const file = files.shift();
|
|
51090
50927
|
if (file.charAt(0) === "@") {
|
|
51091
50928
|
return t({
|
|
51092
|
-
file: path6.resolve(p.cwd, file.
|
|
50929
|
+
file: path6.resolve(p.cwd, file.substr(1)),
|
|
51093
50930
|
noResume: true,
|
|
51094
50931
|
onentry: (entry) => p.add(entry)
|
|
51095
50932
|
}).then((_) => addFilesAsync(p, files));
|
|
51096
|
-
} else
|
|
50933
|
+
} else
|
|
51097
50934
|
p.add(file);
|
|
51098
|
-
}
|
|
51099
50935
|
}
|
|
51100
50936
|
p.end();
|
|
51101
50937
|
};
|
|
@@ -51106,24 +50942,20 @@ var require_update = __commonJSMin((exports, module2) => {
|
|
|
51106
50942
|
var r = require_replace();
|
|
51107
50943
|
module2.exports = (opt_, files, cb) => {
|
|
51108
50944
|
const opt = hlo(opt_);
|
|
51109
|
-
if (!opt.file)
|
|
50945
|
+
if (!opt.file)
|
|
51110
50946
|
throw new TypeError("file is required");
|
|
51111
|
-
|
|
51112
|
-
if (opt.gzip) {
|
|
50947
|
+
if (opt.gzip)
|
|
51113
50948
|
throw new TypeError("cannot append to compressed archives");
|
|
51114
|
-
|
|
51115
|
-
if (!files || !Array.isArray(files) || !files.length) {
|
|
50949
|
+
if (!files || !Array.isArray(files) || !files.length)
|
|
51116
50950
|
throw new TypeError("no files or directories specified");
|
|
51117
|
-
}
|
|
51118
50951
|
files = Array.from(files);
|
|
51119
50952
|
mtimeFilter(opt);
|
|
51120
50953
|
return r(opt, files, cb);
|
|
51121
50954
|
};
|
|
51122
50955
|
var mtimeFilter = (opt) => {
|
|
51123
50956
|
const filter = opt.filter;
|
|
51124
|
-
if (!opt.mtimeCache)
|
|
50957
|
+
if (!opt.mtimeCache)
|
|
51125
50958
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
51126
|
-
}
|
|
51127
50959
|
opt.filter = filter ? (path6, stat) => filter(path6, stat) && !(opt.mtimeCache.get(path6) > stat.mtime) : (path6, stat) => !(opt.mtimeCache.get(path6) > stat.mtime);
|
|
51128
50960
|
};
|
|
51129
50961
|
});
|
|
@@ -51475,9 +51307,8 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51475
51307
|
var cSet = (cache2, key, val) => cache2.set(normPath(key), val);
|
|
51476
51308
|
var checkCwd = (dir, cb) => {
|
|
51477
51309
|
fs4.stat(dir, (er, st) => {
|
|
51478
|
-
if (er || !st.isDirectory())
|
|
51310
|
+
if (er || !st.isDirectory())
|
|
51479
51311
|
er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
51480
|
-
}
|
|
51481
51312
|
cb(er);
|
|
51482
51313
|
});
|
|
51483
51314
|
};
|
|
@@ -51494,41 +51325,35 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51494
51325
|
const cache2 = opt.cache;
|
|
51495
51326
|
const cwd = normPath(opt.cwd);
|
|
51496
51327
|
const done = (er, created) => {
|
|
51497
|
-
if (er)
|
|
51328
|
+
if (er)
|
|
51498
51329
|
cb(er);
|
|
51499
|
-
|
|
51330
|
+
else {
|
|
51500
51331
|
cSet(cache2, dir, true);
|
|
51501
|
-
if (created && doChown)
|
|
51332
|
+
if (created && doChown)
|
|
51502
51333
|
chownr(created, uid2, gid, (er2) => done(er2));
|
|
51503
|
-
|
|
51334
|
+
else if (needChmod)
|
|
51504
51335
|
fs4.chmod(dir, mode, cb);
|
|
51505
|
-
|
|
51336
|
+
else
|
|
51506
51337
|
cb();
|
|
51507
|
-
}
|
|
51508
51338
|
}
|
|
51509
51339
|
};
|
|
51510
|
-
if (cache2 && cGet(cache2, dir) === true)
|
|
51340
|
+
if (cache2 && cGet(cache2, dir) === true)
|
|
51511
51341
|
return done();
|
|
51512
|
-
|
|
51513
|
-
if (dir === cwd) {
|
|
51342
|
+
if (dir === cwd)
|
|
51514
51343
|
return checkCwd(dir, done);
|
|
51515
|
-
|
|
51516
|
-
if (preserve) {
|
|
51344
|
+
if (preserve)
|
|
51517
51345
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
51518
|
-
}
|
|
51519
51346
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51520
51347
|
const parts = sub.split("/");
|
|
51521
51348
|
mkdir_(cwd, parts, mode, cache2, unlink, cwd, null, done);
|
|
51522
51349
|
};
|
|
51523
51350
|
var mkdir_ = (base, parts, mode, cache2, unlink, cwd, created, cb) => {
|
|
51524
|
-
if (!parts.length)
|
|
51351
|
+
if (!parts.length)
|
|
51525
51352
|
return cb(null, created);
|
|
51526
|
-
}
|
|
51527
51353
|
const p = parts.shift();
|
|
51528
51354
|
const part = normPath(path6.resolve(base + "/" + p));
|
|
51529
|
-
if (cGet(cache2, part))
|
|
51355
|
+
if (cGet(cache2, part))
|
|
51530
51356
|
return mkdir_(part, parts, mode, cache2, unlink, cwd, created, cb);
|
|
51531
|
-
}
|
|
51532
51357
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
|
|
51533
51358
|
};
|
|
51534
51359
|
var onmkdir = (part, parts, mode, cache2, unlink, cwd, created, cb) => (er) => {
|
|
@@ -51537,20 +51362,18 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51537
51362
|
if (statEr) {
|
|
51538
51363
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
51539
51364
|
cb(statEr);
|
|
51540
|
-
} else if (st.isDirectory())
|
|
51365
|
+
} else if (st.isDirectory())
|
|
51541
51366
|
mkdir_(part, parts, mode, cache2, unlink, cwd, created, cb);
|
|
51542
|
-
|
|
51367
|
+
else if (unlink) {
|
|
51543
51368
|
fs4.unlink(part, (er2) => {
|
|
51544
|
-
if (er2)
|
|
51369
|
+
if (er2)
|
|
51545
51370
|
return cb(er2);
|
|
51546
|
-
}
|
|
51547
51371
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
|
|
51548
51372
|
});
|
|
51549
|
-
} else if (st.isSymbolicLink())
|
|
51373
|
+
} else if (st.isSymbolicLink())
|
|
51550
51374
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
51551
|
-
|
|
51375
|
+
else
|
|
51552
51376
|
cb(er);
|
|
51553
|
-
}
|
|
51554
51377
|
});
|
|
51555
51378
|
} else {
|
|
51556
51379
|
created = created || part;
|
|
@@ -51565,9 +51388,8 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51565
51388
|
} catch (er) {
|
|
51566
51389
|
code = er.code;
|
|
51567
51390
|
} finally {
|
|
51568
|
-
if (!ok)
|
|
51391
|
+
if (!ok)
|
|
51569
51392
|
throw new CwdError(dir, code);
|
|
51570
|
-
}
|
|
51571
51393
|
}
|
|
51572
51394
|
};
|
|
51573
51395
|
module2.exports.sync = (dir, opt) => {
|
|
@@ -51584,31 +51406,26 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51584
51406
|
const cwd = normPath(opt.cwd);
|
|
51585
51407
|
const done = (created2) => {
|
|
51586
51408
|
cSet(cache2, dir, true);
|
|
51587
|
-
if (created2 && doChown)
|
|
51409
|
+
if (created2 && doChown)
|
|
51588
51410
|
chownr.sync(created2, uid2, gid);
|
|
51589
|
-
|
|
51590
|
-
if (needChmod) {
|
|
51411
|
+
if (needChmod)
|
|
51591
51412
|
fs4.chmodSync(dir, mode);
|
|
51592
|
-
}
|
|
51593
51413
|
};
|
|
51594
|
-
if (cache2 && cGet(cache2, dir) === true)
|
|
51414
|
+
if (cache2 && cGet(cache2, dir) === true)
|
|
51595
51415
|
return done();
|
|
51596
|
-
}
|
|
51597
51416
|
if (dir === cwd) {
|
|
51598
51417
|
checkCwdSync(cwd);
|
|
51599
51418
|
return done();
|
|
51600
51419
|
}
|
|
51601
|
-
if (preserve)
|
|
51420
|
+
if (preserve)
|
|
51602
51421
|
return done(mkdirp.sync(dir, mode));
|
|
51603
|
-
}
|
|
51604
51422
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51605
51423
|
const parts = sub.split("/");
|
|
51606
51424
|
let created = null;
|
|
51607
51425
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
51608
51426
|
part = normPath(path6.resolve(part));
|
|
51609
|
-
if (cGet(cache2, part))
|
|
51427
|
+
if (cGet(cache2, part))
|
|
51610
51428
|
continue;
|
|
51611
|
-
}
|
|
51612
51429
|
try {
|
|
51613
51430
|
fs4.mkdirSync(part, mode);
|
|
51614
51431
|
created = created || part;
|
|
@@ -51624,9 +51441,8 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51624
51441
|
created = created || part;
|
|
51625
51442
|
cSet(cache2, part, true);
|
|
51626
51443
|
continue;
|
|
51627
|
-
} else if (st.isSymbolicLink())
|
|
51444
|
+
} else if (st.isSymbolicLink())
|
|
51628
51445
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
|
51629
|
-
}
|
|
51630
51446
|
}
|
|
51631
51447
|
}
|
|
51632
51448
|
return done(created);
|
|
@@ -51636,9 +51452,8 @@ var require_normalize_unicode = __commonJSMin((exports, module2) => {
|
|
|
51636
51452
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
|
51637
51453
|
var { hasOwnProperty: hasOwnProperty6 } = Object.prototype;
|
|
51638
51454
|
module2.exports = (s) => {
|
|
51639
|
-
if (!hasOwnProperty6.call(normalizeCache, s))
|
|
51455
|
+
if (!hasOwnProperty6.call(normalizeCache, s))
|
|
51640
51456
|
normalizeCache[s] = s.normalize("NFKD");
|
|
51641
|
-
}
|
|
51642
51457
|
return normalizeCache[s];
|
|
51643
51458
|
};
|
|
51644
51459
|
});
|
|
@@ -51654,9 +51469,8 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51654
51469
|
const reservations = /* @__PURE__ */ new Map();
|
|
51655
51470
|
const getDirs = (path6) => {
|
|
51656
51471
|
const dirs = path6.split("/").slice(0, -1).reduce((set, path7) => {
|
|
51657
|
-
if (set.length)
|
|
51472
|
+
if (set.length)
|
|
51658
51473
|
path7 = join(set[set.length - 1], path7);
|
|
51659
|
-
}
|
|
51660
51474
|
set.push(path7 || "/");
|
|
51661
51475
|
return set;
|
|
51662
51476
|
}, []);
|
|
@@ -51665,9 +51479,8 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51665
51479
|
const running = /* @__PURE__ */ new Set();
|
|
51666
51480
|
const getQueues = (fn) => {
|
|
51667
51481
|
const res = reservations.get(fn);
|
|
51668
|
-
if (!res)
|
|
51482
|
+
if (!res)
|
|
51669
51483
|
throw new Error("function does not have any path reservations");
|
|
51670
|
-
}
|
|
51671
51484
|
return {
|
|
51672
51485
|
paths: res.paths.map((path6) => queues.get(path6)),
|
|
51673
51486
|
dirs: [...res.dirs].map((path6) => queues.get(path6))
|
|
@@ -51678,44 +51491,40 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51678
51491
|
return paths.every((q) => q[0] === fn) && dirs.every((q) => q[0] instanceof Set && q[0].has(fn));
|
|
51679
51492
|
};
|
|
51680
51493
|
const run = (fn) => {
|
|
51681
|
-
if (running.has(fn) || !check(fn))
|
|
51494
|
+
if (running.has(fn) || !check(fn))
|
|
51682
51495
|
return false;
|
|
51683
|
-
}
|
|
51684
51496
|
running.add(fn);
|
|
51685
51497
|
fn(() => clear(fn));
|
|
51686
51498
|
return true;
|
|
51687
51499
|
};
|
|
51688
51500
|
const clear = (fn) => {
|
|
51689
|
-
if (!running.has(fn))
|
|
51501
|
+
if (!running.has(fn))
|
|
51690
51502
|
return false;
|
|
51691
|
-
}
|
|
51692
51503
|
const { paths, dirs } = reservations.get(fn);
|
|
51693
51504
|
const next = /* @__PURE__ */ new Set();
|
|
51694
51505
|
paths.forEach((path6) => {
|
|
51695
51506
|
const q = queues.get(path6);
|
|
51696
51507
|
assert.equal(q[0], fn);
|
|
51697
|
-
if (q.length === 1)
|
|
51508
|
+
if (q.length === 1)
|
|
51698
51509
|
queues.delete(path6);
|
|
51699
|
-
|
|
51510
|
+
else {
|
|
51700
51511
|
q.shift();
|
|
51701
|
-
if (typeof q[0] === "function")
|
|
51512
|
+
if (typeof q[0] === "function")
|
|
51702
51513
|
next.add(q[0]);
|
|
51703
|
-
|
|
51514
|
+
else
|
|
51704
51515
|
q[0].forEach((fn2) => next.add(fn2));
|
|
51705
|
-
}
|
|
51706
51516
|
}
|
|
51707
51517
|
});
|
|
51708
51518
|
dirs.forEach((dir) => {
|
|
51709
51519
|
const q = queues.get(dir);
|
|
51710
51520
|
assert(q[0] instanceof Set);
|
|
51711
|
-
if (q[0].size === 1 && q.length === 1)
|
|
51521
|
+
if (q[0].size === 1 && q.length === 1)
|
|
51712
51522
|
queues.delete(dir);
|
|
51713
|
-
|
|
51523
|
+
else if (q[0].size === 1) {
|
|
51714
51524
|
q.shift();
|
|
51715
51525
|
next.add(q[0]);
|
|
51716
|
-
} else
|
|
51526
|
+
} else
|
|
51717
51527
|
q[0].delete(fn);
|
|
51718
|
-
}
|
|
51719
51528
|
});
|
|
51720
51529
|
running.delete(fn);
|
|
51721
51530
|
next.forEach((fn2) => run(fn2));
|
|
@@ -51729,21 +51538,19 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51729
51538
|
reservations.set(fn, { dirs, paths });
|
|
51730
51539
|
paths.forEach((path6) => {
|
|
51731
51540
|
const q = queues.get(path6);
|
|
51732
|
-
if (!q)
|
|
51541
|
+
if (!q)
|
|
51733
51542
|
queues.set(path6, [fn]);
|
|
51734
|
-
|
|
51543
|
+
else
|
|
51735
51544
|
q.push(fn);
|
|
51736
|
-
}
|
|
51737
51545
|
});
|
|
51738
51546
|
dirs.forEach((dir) => {
|
|
51739
51547
|
const q = queues.get(dir);
|
|
51740
|
-
if (!q)
|
|
51548
|
+
if (!q)
|
|
51741
51549
|
queues.set(dir, [/* @__PURE__ */ new Set([fn])]);
|
|
51742
|
-
|
|
51550
|
+
else if (q[q.length - 1] instanceof Set)
|
|
51743
51551
|
q[q.length - 1].add(fn);
|
|
51744
|
-
|
|
51552
|
+
else
|
|
51745
51553
|
q.push(/* @__PURE__ */ new Set([fn]));
|
|
51746
|
-
}
|
|
51747
51554
|
});
|
|
51748
51555
|
return run(fn);
|
|
51749
51556
|
};
|
|
@@ -51804,21 +51611,18 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51804
51611
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
51805
51612
|
var isWindows = platform === "win32";
|
|
51806
51613
|
var unlinkFile = (path7, cb) => {
|
|
51807
|
-
if (!isWindows)
|
|
51614
|
+
if (!isWindows)
|
|
51808
51615
|
return fs4.unlink(path7, cb);
|
|
51809
|
-
}
|
|
51810
51616
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51811
51617
|
fs4.rename(path7, name5, (er) => {
|
|
51812
|
-
if (er)
|
|
51618
|
+
if (er)
|
|
51813
51619
|
return cb(er);
|
|
51814
|
-
}
|
|
51815
51620
|
fs4.unlink(name5, cb);
|
|
51816
51621
|
});
|
|
51817
51622
|
};
|
|
51818
51623
|
var unlinkFileSync = (path7) => {
|
|
51819
|
-
if (!isWindows)
|
|
51624
|
+
if (!isWindows)
|
|
51820
51625
|
return fs4.unlinkSync(path7);
|
|
51821
|
-
}
|
|
51822
51626
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51823
51627
|
fs4.renameSync(path7, name5);
|
|
51824
51628
|
fs4.unlinkSync(name5);
|
|
@@ -51829,21 +51633,18 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51829
51633
|
abs = cacheKeyNormalize(abs);
|
|
51830
51634
|
for (const path7 of cache2.keys()) {
|
|
51831
51635
|
const pnorm = cacheKeyNormalize(path7);
|
|
51832
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
|
51636
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
|
51833
51637
|
cache2.delete(path7);
|
|
51834
|
-
}
|
|
51835
51638
|
}
|
|
51836
51639
|
};
|
|
51837
51640
|
var dropCache = (cache2) => {
|
|
51838
|
-
for (const key of cache2.keys())
|
|
51641
|
+
for (const key of cache2.keys())
|
|
51839
51642
|
cache2.delete(key);
|
|
51840
|
-
}
|
|
51841
51643
|
};
|
|
51842
51644
|
var Unpack = class extends Parser2 {
|
|
51843
51645
|
constructor(opt) {
|
|
51844
|
-
if (!opt)
|
|
51646
|
+
if (!opt)
|
|
51845
51647
|
opt = {};
|
|
51846
|
-
}
|
|
51847
51648
|
opt.ondone = (_) => {
|
|
51848
51649
|
this[ENDED] = true;
|
|
51849
51650
|
this[MAYBECLOSE]();
|
|
@@ -51858,9 +51659,8 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51858
51659
|
this[ENDED] = false;
|
|
51859
51660
|
this.dirCache = opt.dirCache || /* @__PURE__ */ new Map();
|
|
51860
51661
|
if (typeof opt.uid === "number" || typeof opt.gid === "number") {
|
|
51861
|
-
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
|
51662
|
+
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
|
51862
51663
|
throw new TypeError("cannot set owner without number uid and gid");
|
|
51863
|
-
}
|
|
51864
51664
|
if (opt.preserveOwner) {
|
|
51865
51665
|
throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
51866
51666
|
}
|
|
@@ -51872,11 +51672,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51872
51672
|
this.gid = null;
|
|
51873
51673
|
this.setOwner = false;
|
|
51874
51674
|
}
|
|
51875
|
-
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
|
51675
|
+
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
|
51876
51676
|
this.preserveOwner = process.getuid && process.getuid() === 0;
|
|
51877
|
-
|
|
51677
|
+
else
|
|
51878
51678
|
this.preserveOwner = !!opt.preserveOwner;
|
|
51879
|
-
}
|
|
51880
51679
|
this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null;
|
|
51881
51680
|
this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null;
|
|
51882
51681
|
this.forceChown = opt.forceChown === true;
|
|
@@ -51895,9 +51694,8 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51895
51694
|
this.on("entry", (entry) => this[ONENTRY](entry));
|
|
51896
51695
|
}
|
|
51897
51696
|
warn(code, msg, data = {}) {
|
|
51898
|
-
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
|
51697
|
+
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
|
51899
51698
|
data.recoverable = false;
|
|
51900
|
-
}
|
|
51901
51699
|
return super.warn(code, msg, data);
|
|
51902
51700
|
}
|
|
51903
51701
|
[MAYBECLOSE]() {
|
|
@@ -51905,22 +51703,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51905
51703
|
this.emit("prefinish");
|
|
51906
51704
|
this.emit("finish");
|
|
51907
51705
|
this.emit("end");
|
|
51706
|
+
this.emit("close");
|
|
51908
51707
|
}
|
|
51909
51708
|
}
|
|
51910
51709
|
[CHECKPATH](entry) {
|
|
51911
51710
|
if (this.strip) {
|
|
51912
51711
|
const parts = normPath(entry.path).split("/");
|
|
51913
|
-
if (parts.length < this.strip)
|
|
51712
|
+
if (parts.length < this.strip)
|
|
51914
51713
|
return false;
|
|
51915
|
-
}
|
|
51916
51714
|
entry.path = parts.slice(this.strip).join("/");
|
|
51917
51715
|
if (entry.type === "Link") {
|
|
51918
51716
|
const linkparts = normPath(entry.linkpath).split("/");
|
|
51919
|
-
if (linkparts.length >= this.strip)
|
|
51717
|
+
if (linkparts.length >= this.strip)
|
|
51920
51718
|
entry.linkpath = linkparts.slice(this.strip).join("/");
|
|
51921
|
-
|
|
51719
|
+
else
|
|
51922
51720
|
return false;
|
|
51923
|
-
}
|
|
51924
51721
|
}
|
|
51925
51722
|
}
|
|
51926
51723
|
if (!this.preservePaths) {
|
|
@@ -51942,11 +51739,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51942
51739
|
});
|
|
51943
51740
|
}
|
|
51944
51741
|
}
|
|
51945
|
-
if (path6.isAbsolute(entry.path))
|
|
51742
|
+
if (path6.isAbsolute(entry.path))
|
|
51946
51743
|
entry.absolute = normPath(path6.resolve(entry.path));
|
|
51947
|
-
|
|
51744
|
+
else
|
|
51948
51745
|
entry.absolute = normPath(path6.resolve(this.cwd, entry.path));
|
|
51949
|
-
}
|
|
51950
51746
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
51951
51747
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
51952
51748
|
entry,
|
|
@@ -51956,28 +51752,25 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51956
51752
|
});
|
|
51957
51753
|
return false;
|
|
51958
51754
|
}
|
|
51959
|
-
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
|
51755
|
+
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
|
51960
51756
|
return false;
|
|
51961
|
-
}
|
|
51962
51757
|
if (this.win32) {
|
|
51963
51758
|
const { root: aRoot } = path6.win32.parse(entry.absolute);
|
|
51964
|
-
entry.absolute = aRoot + wc.encode(entry.absolute.
|
|
51759
|
+
entry.absolute = aRoot + wc.encode(entry.absolute.substr(aRoot.length));
|
|
51965
51760
|
const { root: pRoot } = path6.win32.parse(entry.path);
|
|
51966
|
-
entry.path = pRoot + wc.encode(entry.path.
|
|
51761
|
+
entry.path = pRoot + wc.encode(entry.path.substr(pRoot.length));
|
|
51967
51762
|
}
|
|
51968
51763
|
return true;
|
|
51969
51764
|
}
|
|
51970
51765
|
[ONENTRY](entry) {
|
|
51971
|
-
if (!this[CHECKPATH](entry))
|
|
51766
|
+
if (!this[CHECKPATH](entry))
|
|
51972
51767
|
return entry.resume();
|
|
51973
|
-
}
|
|
51974
51768
|
assert.equal(typeof entry.absolute, "string");
|
|
51975
51769
|
switch (entry.type) {
|
|
51976
51770
|
case "Directory":
|
|
51977
51771
|
case "GNUDumpDir":
|
|
51978
|
-
if (entry.mode)
|
|
51772
|
+
if (entry.mode)
|
|
51979
51773
|
entry.mode = entry.mode | 448;
|
|
51980
|
-
}
|
|
51981
51774
|
case "File":
|
|
51982
51775
|
case "OldFile":
|
|
51983
51776
|
case "ContiguousFile":
|
|
@@ -51992,9 +51785,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51992
51785
|
}
|
|
51993
51786
|
}
|
|
51994
51787
|
[ONERROR](er, entry) {
|
|
51995
|
-
if (er.name === "CwdError")
|
|
51788
|
+
if (er.name === "CwdError")
|
|
51996
51789
|
this.emit("error", er);
|
|
51997
|
-
|
|
51790
|
+
else {
|
|
51998
51791
|
this.warn("TAR_ENTRY_ERROR", er, { entry });
|
|
51999
51792
|
this[UNPEND]();
|
|
52000
51793
|
entry.resume();
|
|
@@ -52032,10 +51825,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52032
51825
|
autoClose: false
|
|
52033
51826
|
});
|
|
52034
51827
|
stream.on("error", (er) => {
|
|
52035
|
-
if (stream.fd)
|
|
51828
|
+
if (stream.fd)
|
|
52036
51829
|
fs4.close(stream.fd, () => {
|
|
52037
51830
|
});
|
|
52038
|
-
}
|
|
52039
51831
|
stream.write = () => true;
|
|
52040
51832
|
this[ONERROR](er, entry);
|
|
52041
51833
|
fullyDone();
|
|
@@ -52043,21 +51835,19 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52043
51835
|
let actions = 1;
|
|
52044
51836
|
const done = (er) => {
|
|
52045
51837
|
if (er) {
|
|
52046
|
-
if (stream.fd)
|
|
51838
|
+
if (stream.fd)
|
|
52047
51839
|
fs4.close(stream.fd, () => {
|
|
52048
51840
|
});
|
|
52049
|
-
}
|
|
52050
51841
|
this[ONERROR](er, entry);
|
|
52051
51842
|
fullyDone();
|
|
52052
51843
|
return;
|
|
52053
51844
|
}
|
|
52054
51845
|
if (--actions === 0) {
|
|
52055
51846
|
fs4.close(stream.fd, (er2) => {
|
|
52056
|
-
if (er2)
|
|
51847
|
+
if (er2)
|
|
52057
51848
|
this[ONERROR](er2, entry);
|
|
52058
|
-
|
|
51849
|
+
else
|
|
52059
51850
|
this[UNPEND]();
|
|
52060
|
-
}
|
|
52061
51851
|
fullyDone();
|
|
52062
51852
|
});
|
|
52063
51853
|
}
|
|
@@ -52145,17 +51935,15 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52145
51935
|
[CHECKFS](entry) {
|
|
52146
51936
|
this[PEND]();
|
|
52147
51937
|
const paths = [entry.path];
|
|
52148
|
-
if (entry.linkpath)
|
|
51938
|
+
if (entry.linkpath)
|
|
52149
51939
|
paths.push(entry.linkpath);
|
|
52150
|
-
}
|
|
52151
51940
|
this.reservations.reserve(paths, (done) => this[CHECKFS2](entry, done));
|
|
52152
51941
|
}
|
|
52153
51942
|
[PRUNECACHE](entry) {
|
|
52154
|
-
if (entry.type === "SymbolicLink")
|
|
51943
|
+
if (entry.type === "SymbolicLink")
|
|
52155
51944
|
dropCache(this.dirCache);
|
|
52156
|
-
|
|
51945
|
+
else if (entry.type !== "Directory")
|
|
52157
51946
|
pruneCache(this.dirCache, entry.absolute);
|
|
52158
|
-
}
|
|
52159
51947
|
}
|
|
52160
51948
|
[CHECKFS2](entry, fullyDone) {
|
|
52161
51949
|
this[PRUNECACHE](entry);
|
|
@@ -52197,33 +51985,29 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52197
51985
|
done();
|
|
52198
51986
|
return;
|
|
52199
51987
|
}
|
|
52200
|
-
if (lstatEr || this[ISREUSABLE](entry, st))
|
|
51988
|
+
if (lstatEr || this[ISREUSABLE](entry, st))
|
|
52201
51989
|
return this[MAKEFS](null, entry, done);
|
|
52202
|
-
}
|
|
52203
51990
|
if (st.isDirectory()) {
|
|
52204
51991
|
if (entry.type === "Directory") {
|
|
52205
51992
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
52206
51993
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
52207
|
-
if (!needChmod)
|
|
51994
|
+
if (!needChmod)
|
|
52208
51995
|
return afterChmod();
|
|
52209
|
-
}
|
|
52210
51996
|
return fs4.chmod(entry.absolute, entry.mode, afterChmod);
|
|
52211
51997
|
}
|
|
52212
51998
|
if (entry.absolute !== this.cwd) {
|
|
52213
51999
|
return fs4.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
52214
52000
|
}
|
|
52215
52001
|
}
|
|
52216
|
-
if (entry.absolute === this.cwd)
|
|
52002
|
+
if (entry.absolute === this.cwd)
|
|
52217
52003
|
return this[MAKEFS](null, entry, done);
|
|
52218
|
-
}
|
|
52219
52004
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
52220
52005
|
});
|
|
52221
52006
|
};
|
|
52222
|
-
if (this[CHECKED_CWD])
|
|
52007
|
+
if (this[CHECKED_CWD])
|
|
52223
52008
|
start();
|
|
52224
|
-
|
|
52009
|
+
else
|
|
52225
52010
|
checkCwd();
|
|
52226
|
-
}
|
|
52227
52011
|
}
|
|
52228
52012
|
[MAKEFS](er, entry, done) {
|
|
52229
52013
|
if (er) {
|
|
@@ -52247,9 +52031,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52247
52031
|
}
|
|
52248
52032
|
[LINK](entry, linkpath, link, done) {
|
|
52249
52033
|
fs4[link](linkpath, entry.absolute, (er) => {
|
|
52250
|
-
if (er)
|
|
52034
|
+
if (er)
|
|
52251
52035
|
this[ONERROR](er, entry);
|
|
52252
|
-
|
|
52036
|
+
else {
|
|
52253
52037
|
this[UNPEND]();
|
|
52254
52038
|
entry.resume();
|
|
52255
52039
|
}
|
|
@@ -52273,27 +52057,23 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52273
52057
|
this[PRUNECACHE](entry);
|
|
52274
52058
|
if (!this[CHECKED_CWD]) {
|
|
52275
52059
|
const er2 = this[MKDIR](this.cwd, this.dmode);
|
|
52276
|
-
if (er2)
|
|
52060
|
+
if (er2)
|
|
52277
52061
|
return this[ONERROR](er2, entry);
|
|
52278
|
-
}
|
|
52279
52062
|
this[CHECKED_CWD] = true;
|
|
52280
52063
|
}
|
|
52281
52064
|
if (entry.absolute !== this.cwd) {
|
|
52282
52065
|
const parent = normPath(path6.dirname(entry.absolute));
|
|
52283
52066
|
if (parent !== this.cwd) {
|
|
52284
52067
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
52285
|
-
if (mkParent)
|
|
52068
|
+
if (mkParent)
|
|
52286
52069
|
return this[ONERROR](mkParent, entry);
|
|
52287
|
-
}
|
|
52288
52070
|
}
|
|
52289
52071
|
}
|
|
52290
52072
|
const [lstatEr, st] = callSync(() => fs4.lstatSync(entry.absolute));
|
|
52291
|
-
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
|
52073
|
+
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
|
52292
52074
|
return this[SKIP](entry);
|
|
52293
|
-
|
|
52294
|
-
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
|
52075
|
+
if (lstatEr || this[ISREUSABLE](entry, st))
|
|
52295
52076
|
return this[MAKEFS](null, entry);
|
|
52296
|
-
}
|
|
52297
52077
|
if (st.isDirectory()) {
|
|
52298
52078
|
if (entry.type === "Directory") {
|
|
52299
52079
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
@@ -52317,9 +52097,8 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52317
52097
|
} catch (e) {
|
|
52318
52098
|
closeError = e;
|
|
52319
52099
|
}
|
|
52320
|
-
if (er || closeError)
|
|
52100
|
+
if (er || closeError)
|
|
52321
52101
|
this[ONERROR](er || closeError, entry);
|
|
52322
|
-
}
|
|
52323
52102
|
done();
|
|
52324
52103
|
};
|
|
52325
52104
|
let fd;
|
|
@@ -52434,29 +52213,23 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52434
52213
|
var path6 = __require("path");
|
|
52435
52214
|
var stripSlash = require_strip_trailing_slashes();
|
|
52436
52215
|
module2.exports = (opt_, files, cb) => {
|
|
52437
|
-
if (typeof opt_ === "function")
|
|
52216
|
+
if (typeof opt_ === "function")
|
|
52438
52217
|
cb = opt_, files = null, opt_ = {};
|
|
52439
|
-
|
|
52218
|
+
else if (Array.isArray(opt_))
|
|
52440
52219
|
files = opt_, opt_ = {};
|
|
52441
|
-
|
|
52442
|
-
if (typeof files === "function") {
|
|
52220
|
+
if (typeof files === "function")
|
|
52443
52221
|
cb = files, files = null;
|
|
52444
|
-
|
|
52445
|
-
if (!files) {
|
|
52222
|
+
if (!files)
|
|
52446
52223
|
files = [];
|
|
52447
|
-
|
|
52224
|
+
else
|
|
52448
52225
|
files = Array.from(files);
|
|
52449
|
-
}
|
|
52450
52226
|
const opt = hlo(opt_);
|
|
52451
|
-
if (opt.sync && typeof cb === "function")
|
|
52227
|
+
if (opt.sync && typeof cb === "function")
|
|
52452
52228
|
throw new TypeError("callback not supported for sync tar functions");
|
|
52453
|
-
|
|
52454
|
-
if (!opt.file && typeof cb === "function") {
|
|
52229
|
+
if (!opt.file && typeof cb === "function")
|
|
52455
52230
|
throw new TypeError("callback only supported with file option");
|
|
52456
|
-
|
|
52457
|
-
if (files.length) {
|
|
52231
|
+
if (files.length)
|
|
52458
52232
|
filesFilter(opt, files);
|
|
52459
|
-
}
|
|
52460
52233
|
return opt.file && opt.sync ? extractFileSync(opt) : opt.file ? extractFile(opt, cb) : opt.sync ? extractSync(opt) : extract(opt);
|
|
52461
52234
|
};
|
|
52462
52235
|
var filesFilter = (opt, files) => {
|
|
@@ -52489,9 +52262,9 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52489
52262
|
u.on("error", reject);
|
|
52490
52263
|
u.on("close", resolve);
|
|
52491
52264
|
fs4.stat(file, (er, stat) => {
|
|
52492
|
-
if (er)
|
|
52265
|
+
if (er)
|
|
52493
52266
|
reject(er);
|
|
52494
|
-
|
|
52267
|
+
else {
|
|
52495
52268
|
const stream = new fsm.ReadStream(file, {
|
|
52496
52269
|
readSize,
|
|
52497
52270
|
size: stat.size
|
|
@@ -59404,9 +59177,7 @@ function _regeneratorRuntime() {
|
|
|
59404
59177
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
59405
59178
|
return exports;
|
|
59406
59179
|
};
|
|
59407
|
-
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty,
|
|
59408
|
-
obj[key] = desc.value;
|
|
59409
|
-
}, $Symbol = typeof Symbol == "function" ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
59180
|
+
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = typeof Symbol == "function" ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
59410
59181
|
function define3(obj, key, value) {
|
|
59411
59182
|
return Object.defineProperty(obj, key, {
|
|
59412
59183
|
value,
|
|
@@ -59424,9 +59195,48 @@ function _regeneratorRuntime() {
|
|
|
59424
59195
|
}
|
|
59425
59196
|
function wrap(innerFn, outerFn, self3, tryLocsList) {
|
|
59426
59197
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
59427
|
-
return
|
|
59428
|
-
|
|
59429
|
-
|
|
59198
|
+
return generator._invoke = function(innerFn2, self4, context2) {
|
|
59199
|
+
var state = "suspendedStart";
|
|
59200
|
+
return function(method, arg) {
|
|
59201
|
+
if (state === "executing")
|
|
59202
|
+
throw new Error("Generator is already running");
|
|
59203
|
+
if (state === "completed") {
|
|
59204
|
+
if (method === "throw")
|
|
59205
|
+
throw arg;
|
|
59206
|
+
return doneResult();
|
|
59207
|
+
}
|
|
59208
|
+
for (context2.method = method, context2.arg = arg; ; ) {
|
|
59209
|
+
var delegate = context2.delegate;
|
|
59210
|
+
if (delegate) {
|
|
59211
|
+
var delegateResult = maybeInvokeDelegate(delegate, context2);
|
|
59212
|
+
if (delegateResult) {
|
|
59213
|
+
if (delegateResult === ContinueSentinel)
|
|
59214
|
+
continue;
|
|
59215
|
+
return delegateResult;
|
|
59216
|
+
}
|
|
59217
|
+
}
|
|
59218
|
+
if (context2.method === "next")
|
|
59219
|
+
context2.sent = context2._sent = context2.arg;
|
|
59220
|
+
else if (context2.method === "throw") {
|
|
59221
|
+
if (state === "suspendedStart")
|
|
59222
|
+
throw state = "completed", context2.arg;
|
|
59223
|
+
context2.dispatchException(context2.arg);
|
|
59224
|
+
} else
|
|
59225
|
+
context2.method === "return" && context2.abrupt("return", context2.arg);
|
|
59226
|
+
state = "executing";
|
|
59227
|
+
var record = tryCatch(innerFn2, self4, context2);
|
|
59228
|
+
if (record.type === "normal") {
|
|
59229
|
+
if (state = context2.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
59230
|
+
continue;
|
|
59231
|
+
return {
|
|
59232
|
+
value: record.arg,
|
|
59233
|
+
done: context2.done
|
|
59234
|
+
};
|
|
59235
|
+
}
|
|
59236
|
+
record.type === "throw" && (state = "completed", context2.method = "throw", context2.arg = record.arg);
|
|
59237
|
+
}
|
|
59238
|
+
};
|
|
59239
|
+
}(innerFn, self3, context), generator;
|
|
59430
59240
|
}
|
|
59431
59241
|
function tryCatch(fn, obj, arg) {
|
|
59432
59242
|
try {
|
|
@@ -59481,63 +59291,25 @@ function _regeneratorRuntime() {
|
|
|
59481
59291
|
reject(record.arg);
|
|
59482
59292
|
}
|
|
59483
59293
|
var previousPromise;
|
|
59484
|
-
|
|
59485
|
-
|
|
59486
|
-
function
|
|
59487
|
-
|
|
59488
|
-
|
|
59489
|
-
});
|
|
59490
|
-
}
|
|
59491
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
59492
|
-
}
|
|
59493
|
-
});
|
|
59494
|
-
}
|
|
59495
|
-
function makeInvokeMethod(innerFn, self3, context) {
|
|
59496
|
-
var state = "suspendedStart";
|
|
59497
|
-
return function(method, arg) {
|
|
59498
|
-
if (state === "executing")
|
|
59499
|
-
throw new Error("Generator is already running");
|
|
59500
|
-
if (state === "completed") {
|
|
59501
|
-
if (method === "throw")
|
|
59502
|
-
throw arg;
|
|
59503
|
-
return doneResult();
|
|
59504
|
-
}
|
|
59505
|
-
for (context.method = method, context.arg = arg; ; ) {
|
|
59506
|
-
var delegate = context.delegate;
|
|
59507
|
-
if (delegate) {
|
|
59508
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
59509
|
-
if (delegateResult) {
|
|
59510
|
-
if (delegateResult === ContinueSentinel)
|
|
59511
|
-
continue;
|
|
59512
|
-
return delegateResult;
|
|
59513
|
-
}
|
|
59514
|
-
}
|
|
59515
|
-
if (context.method === "next")
|
|
59516
|
-
context.sent = context._sent = context.arg;
|
|
59517
|
-
else if (context.method === "throw") {
|
|
59518
|
-
if (state === "suspendedStart")
|
|
59519
|
-
throw state = "completed", context.arg;
|
|
59520
|
-
context.dispatchException(context.arg);
|
|
59521
|
-
} else
|
|
59522
|
-
context.method === "return" && context.abrupt("return", context.arg);
|
|
59523
|
-
state = "executing";
|
|
59524
|
-
var record = tryCatch(innerFn, self3, context);
|
|
59525
|
-
if (record.type === "normal") {
|
|
59526
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
59527
|
-
continue;
|
|
59528
|
-
return {
|
|
59529
|
-
value: record.arg,
|
|
59530
|
-
done: context.done
|
|
59531
|
-
};
|
|
59532
|
-
}
|
|
59533
|
-
record.type === "throw" && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
59294
|
+
this._invoke = function(method, arg) {
|
|
59295
|
+
function callInvokeWithMethodAndArg() {
|
|
59296
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
59297
|
+
invoke(method, arg, resolve, reject);
|
|
59298
|
+
});
|
|
59534
59299
|
}
|
|
59300
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
59535
59301
|
};
|
|
59536
59302
|
}
|
|
59537
59303
|
function maybeInvokeDelegate(delegate, context) {
|
|
59538
|
-
var
|
|
59539
|
-
if (method === void 0)
|
|
59540
|
-
|
|
59304
|
+
var method = delegate.iterator[context.method];
|
|
59305
|
+
if (method === void 0) {
|
|
59306
|
+
if (context.delegate = null, context.method === "throw") {
|
|
59307
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method === "throw"))
|
|
59308
|
+
return ContinueSentinel;
|
|
59309
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
59310
|
+
}
|
|
59311
|
+
return ContinueSentinel;
|
|
59312
|
+
}
|
|
59541
59313
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
59542
59314
|
if (record.type === "throw")
|
|
59543
59315
|
return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
@@ -59587,13 +59359,7 @@ function _regeneratorRuntime() {
|
|
|
59587
59359
|
done: true
|
|
59588
59360
|
};
|
|
59589
59361
|
}
|
|
59590
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
59591
|
-
value: GeneratorFunctionPrototype,
|
|
59592
|
-
configurable: true
|
|
59593
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
59594
|
-
value: GeneratorFunction,
|
|
59595
|
-
configurable: true
|
|
59596
|
-
}), GeneratorFunction.displayName = define3(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
|
|
59362
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define3(Gp, "constructor", GeneratorFunctionPrototype), define3(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define3(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
|
|
59597
59363
|
var ctor = typeof genFun == "function" && genFun.constructor;
|
|
59598
59364
|
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction");
|
|
59599
59365
|
}, exports.mark = function(genFun) {
|
|
@@ -59614,8 +59380,8 @@ function _regeneratorRuntime() {
|
|
|
59614
59380
|
return this;
|
|
59615
59381
|
}), define3(Gp, "toString", function() {
|
|
59616
59382
|
return "[object Generator]";
|
|
59617
|
-
}), exports.keys = function(
|
|
59618
|
-
var
|
|
59383
|
+
}), exports.keys = function(object) {
|
|
59384
|
+
var keys = [];
|
|
59619
59385
|
for (var key in object) {
|
|
59620
59386
|
keys.push(key);
|
|
59621
59387
|
}
|
|
@@ -59760,29 +59526,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
59760
59526
|
}
|
|
59761
59527
|
var init_classCallCheck = __esmMin(() => {
|
|
59762
59528
|
});
|
|
59763
|
-
function _toPrimitive(input, hint) {
|
|
59764
|
-
if (_typeof(input) !== "object" || input === null)
|
|
59765
|
-
return input;
|
|
59766
|
-
var prim = input[Symbol.toPrimitive];
|
|
59767
|
-
if (prim !== void 0) {
|
|
59768
|
-
var res = prim.call(input, hint || "default");
|
|
59769
|
-
if (_typeof(res) !== "object")
|
|
59770
|
-
return res;
|
|
59771
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
59772
|
-
}
|
|
59773
|
-
return (hint === "string" ? String : Number)(input);
|
|
59774
|
-
}
|
|
59775
|
-
var init_toPrimitive = __esmMin(() => {
|
|
59776
|
-
init_typeof();
|
|
59777
|
-
});
|
|
59778
|
-
function _toPropertyKey(arg) {
|
|
59779
|
-
var key = _toPrimitive(arg, "string");
|
|
59780
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
59781
|
-
}
|
|
59782
|
-
var init_toPropertyKey = __esmMin(() => {
|
|
59783
|
-
init_typeof();
|
|
59784
|
-
init_toPrimitive();
|
|
59785
|
-
});
|
|
59786
59529
|
function _defineProperties(target, props) {
|
|
59787
59530
|
for (var i = 0; i < props.length; i++) {
|
|
59788
59531
|
var descriptor = props[i];
|
|
@@ -59790,7 +59533,7 @@ function _defineProperties(target, props) {
|
|
|
59790
59533
|
descriptor.configurable = true;
|
|
59791
59534
|
if ("value" in descriptor)
|
|
59792
59535
|
descriptor.writable = true;
|
|
59793
|
-
Object.defineProperty(target,
|
|
59536
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
59794
59537
|
}
|
|
59795
59538
|
}
|
|
59796
59539
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -59804,10 +59547,8 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
59804
59547
|
return Constructor;
|
|
59805
59548
|
}
|
|
59806
59549
|
var init_createClass = __esmMin(() => {
|
|
59807
|
-
init_toPropertyKey();
|
|
59808
59550
|
});
|
|
59809
59551
|
function _defineProperty(obj, key, value) {
|
|
59810
|
-
key = _toPropertyKey(key);
|
|
59811
59552
|
if (key in obj) {
|
|
59812
59553
|
Object.defineProperty(obj, key, {
|
|
59813
59554
|
value,
|
|
@@ -59821,7 +59562,6 @@ function _defineProperty(obj, key, value) {
|
|
|
59821
59562
|
return obj;
|
|
59822
59563
|
}
|
|
59823
59564
|
var init_defineProperty = __esmMin(() => {
|
|
59824
|
-
init_toPropertyKey();
|
|
59825
59565
|
});
|
|
59826
59566
|
function ownKeys(object, enumerableOnly) {
|
|
59827
59567
|
var keys = Object.keys(object);
|
|
@@ -60411,7 +60151,7 @@ var init_tokens = __esmMin(() => {
|
|
|
60411
60151
|
});
|
|
60412
60152
|
dbStarTok = TokenType("**", {
|
|
60413
60153
|
expectNext: function(next) {
|
|
60414
|
-
return next === dotTok || next === bracketLTok || next === eofTok || next === commaTok || next === parenRTok;
|
|
60154
|
+
return next === dotTok || next === parenLTok || next === bracketLTok || next === eofTok || next === commaTok || next === parenRTok;
|
|
60415
60155
|
}
|
|
60416
60156
|
});
|
|
60417
60157
|
dotTok = TokenType(".", {
|
|
@@ -60548,11 +60288,11 @@ var init_tokens = __esmMin(() => {
|
|
|
60548
60288
|
});
|
|
60549
60289
|
eofTok = TokenType("eof");
|
|
60550
60290
|
});
|
|
60551
|
-
var
|
|
60291
|
+
var nonASCIIwhitespace, fullCharCodeAtPos, isRewordCode, getError, slice, Tokenizer;
|
|
60552
60292
|
var init_tokenizer = __esmMin(() => {
|
|
60553
60293
|
init_tokens();
|
|
60554
60294
|
init_contexts();
|
|
60555
|
-
|
|
60295
|
+
nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
60556
60296
|
fullCharCodeAtPos = function(input, pos) {
|
|
60557
60297
|
if (String.fromCharCode)
|
|
60558
60298
|
return input.codePointAt(pos);
|
|
@@ -60649,7 +60389,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60649
60389
|
++this.state.pos;
|
|
60650
60390
|
break;
|
|
60651
60391
|
default:
|
|
60652
|
-
if (ch > 8 && ch < 14 || ch >= 5760 &&
|
|
60392
|
+
if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {
|
|
60653
60393
|
++this.state.pos;
|
|
60654
60394
|
} else {
|
|
60655
60395
|
break loop;
|
|
@@ -60697,7 +60437,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60697
60437
|
string = slice(this.input, startPos, this.state.pos);
|
|
60698
60438
|
break;
|
|
60699
60439
|
}
|
|
60700
|
-
if (code > 8 && code < 14 || code >= 5760 &&
|
|
60440
|
+
if (code > 8 && code < 14 || code >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(code))) {
|
|
60701
60441
|
string = slice(this.input, startPos, this.state.pos);
|
|
60702
60442
|
break;
|
|
60703
60443
|
}
|
|
@@ -60709,7 +60449,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60709
60449
|
}
|
|
60710
60450
|
this.finishToken(nameTok, string);
|
|
60711
60451
|
};
|
|
60712
|
-
Tokenizer2.prototype.
|
|
60452
|
+
Tokenizer2.prototype.readIngoreString = function() {
|
|
60713
60453
|
var startPos = this.state.pos, prevCode, string = "";
|
|
60714
60454
|
while (true) {
|
|
60715
60455
|
var code = this.getCode();
|
|
@@ -60748,7 +60488,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60748
60488
|
if (this.input.length <= this.state.pos) {
|
|
60749
60489
|
this.finishToken(eofTok);
|
|
60750
60490
|
} else if (this.curContext() === bracketDContext) {
|
|
60751
|
-
this.
|
|
60491
|
+
this.readIngoreString();
|
|
60752
60492
|
} else if (code === 123) {
|
|
60753
60493
|
this.state.pos++;
|
|
60754
60494
|
this.finishToken(braceLTok);
|
|
@@ -61425,6 +61165,7 @@ var init_matcher = __esmMin(() => {
|
|
|
61425
61165
|
this.record = record;
|
|
61426
61166
|
}
|
|
61427
61167
|
Matcher2.prototype.next = function(node, pos) {
|
|
61168
|
+
var isLastToken = pos === this.path.length - 1;
|
|
61428
61169
|
if (node.after) {
|
|
61429
61170
|
return this.matchNode(node.after, pos);
|
|
61430
61171
|
}
|
|
@@ -61437,7 +61178,6 @@ var init_matcher = __esmMin(() => {
|
|
|
61437
61178
|
return !!this.take(pos);
|
|
61438
61179
|
}
|
|
61439
61180
|
}
|
|
61440
|
-
var isLastToken = pos === this.path.length - 1;
|
|
61441
61181
|
if (isLastToken) {
|
|
61442
61182
|
return !!this.take(pos);
|
|
61443
61183
|
} else {
|
|
@@ -62095,7 +61835,10 @@ var init_esm = __esmMin(() => {
|
|
|
62095
61835
|
return matcher;
|
|
62096
61836
|
};
|
|
62097
61837
|
Path2.isPathPattern = function(target) {
|
|
62098
|
-
|
|
61838
|
+
if (isStr2(target) || isArr2(target) || isRegExp2(target) || isFn2(target) && target[isMatcher]) {
|
|
61839
|
+
return true;
|
|
61840
|
+
}
|
|
61841
|
+
return false;
|
|
62099
61842
|
};
|
|
62100
61843
|
Path2.transform = function(pattern, regexp, callback) {
|
|
62101
61844
|
return Path2.parse(pattern).transform(regexp, callback);
|
|
@@ -64549,10 +64292,10 @@ var init_registry = __esmMin(() => {
|
|
|
64549
64292
|
};
|
|
64550
64293
|
getISOCode = function(language) {
|
|
64551
64294
|
var isoCode = registry.locales.language;
|
|
64295
|
+
var lang = lowerCase(language);
|
|
64552
64296
|
if (registry.locales.messages[language]) {
|
|
64553
64297
|
return language;
|
|
64554
64298
|
}
|
|
64555
|
-
var lang = lowerCase(language);
|
|
64556
64299
|
each(registry.locales.messages, function(messages, key) {
|
|
64557
64300
|
var target = lowerCase(key);
|
|
64558
64301
|
if (target.indexOf(lang) > -1 || lang.indexOf(target) > -1) {
|
|
@@ -66659,7 +66402,7 @@ var init_internals2 = __esmMin(() => {
|
|
|
66659
66402
|
noEmit = false;
|
|
66660
66403
|
}
|
|
66661
66404
|
return __awaiter4(void 0, void 0, void 0, function() {
|
|
66662
|
-
var typedDefaultValue
|
|
66405
|
+
var typedDefaultValue;
|
|
66663
66406
|
return __generator4(this, function(_a2) {
|
|
66664
66407
|
switch (_a2.label) {
|
|
66665
66408
|
case 0:
|
|
@@ -66675,8 +66418,7 @@ var init_internals2 = __esmMin(() => {
|
|
|
66675
66418
|
if (options3 === null || options3 === void 0 ? void 0 : options3.forceClear) {
|
|
66676
66419
|
target.value = typedDefaultValue;
|
|
66677
66420
|
} else {
|
|
66678
|
-
|
|
66679
|
-
target.value = toJS(!isUndef(initialValue) ? initialValue : typedDefaultValue);
|
|
66421
|
+
target.value = toJS(!isUndef(target.initialValue) ? target.initialValue : typedDefaultValue);
|
|
66680
66422
|
}
|
|
66681
66423
|
}
|
|
66682
66424
|
if (!noEmit) {
|
|
@@ -66720,10 +66462,15 @@ var init_internals2 = __esmMin(() => {
|
|
|
66720
66462
|
return value;
|
|
66721
66463
|
};
|
|
66722
66464
|
allowAssignDefaultValue = function(target, source) {
|
|
66465
|
+
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66466
|
+
var isEmptySource = source !== null && isEmpty(source);
|
|
66723
66467
|
var isValidTarget = !isUndef(target);
|
|
66724
66468
|
var isValidSource = !isUndef(source);
|
|
66725
66469
|
if (!isValidTarget) {
|
|
66726
|
-
|
|
66470
|
+
if (isValidSource) {
|
|
66471
|
+
return true;
|
|
66472
|
+
}
|
|
66473
|
+
return false;
|
|
66727
66474
|
}
|
|
66728
66475
|
if (typeof target === typeof source) {
|
|
66729
66476
|
if (target === "")
|
|
@@ -66731,10 +66478,12 @@ var init_internals2 = __esmMin(() => {
|
|
|
66731
66478
|
if (target === 0)
|
|
66732
66479
|
return false;
|
|
66733
66480
|
}
|
|
66734
|
-
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66735
|
-
var isEmptySource = source !== null && isEmpty(source);
|
|
66736
66481
|
if (isEmptyTarget) {
|
|
66737
|
-
|
|
66482
|
+
if (isEmptySource) {
|
|
66483
|
+
return false;
|
|
66484
|
+
} else {
|
|
66485
|
+
return true;
|
|
66486
|
+
}
|
|
66738
66487
|
}
|
|
66739
66488
|
return false;
|
|
66740
66489
|
};
|
|
@@ -67639,14 +67388,8 @@ var init_Field = __esmMin(() => {
|
|
|
67639
67388
|
return _this.value;
|
|
67640
67389
|
}, function(value) {
|
|
67641
67390
|
_this.notify(LifeCycleTypes.ON_FIELD_VALUE_CHANGE);
|
|
67642
|
-
if (isValid(value)) {
|
|
67643
|
-
|
|
67644
|
-
validateSelf(_this);
|
|
67645
|
-
}
|
|
67646
|
-
if (!isEmpty(value) && _this.display === "none") {
|
|
67647
|
-
_this.caches.value = toJS(value);
|
|
67648
|
-
_this.form.deleteValuesIn(_this.path);
|
|
67649
|
-
}
|
|
67391
|
+
if (isValid(value) && _this.selfModified && !_this.caches.inputting) {
|
|
67392
|
+
validateSelf(_this);
|
|
67650
67393
|
}
|
|
67651
67394
|
}), createReaction(function() {
|
|
67652
67395
|
return _this.initialValue;
|
|
@@ -67657,14 +67400,16 @@ var init_Field = __esmMin(() => {
|
|
|
67657
67400
|
}, function(display) {
|
|
67658
67401
|
var _a2;
|
|
67659
67402
|
var value = _this.value;
|
|
67660
|
-
if (display
|
|
67661
|
-
if (
|
|
67403
|
+
if (display === "visible") {
|
|
67404
|
+
if (isEmpty(value)) {
|
|
67662
67405
|
_this.setValue(_this.caches.value);
|
|
67663
67406
|
_this.caches.value = void 0;
|
|
67664
67407
|
}
|
|
67665
67408
|
} else {
|
|
67666
67409
|
_this.caches.value = (_a2 = toJS(value)) !== null && _a2 !== void 0 ? _a2 : toJS(_this.initialValue);
|
|
67667
|
-
|
|
67410
|
+
if (display === "none") {
|
|
67411
|
+
_this.form.deleteValuesIn(_this.path);
|
|
67412
|
+
}
|
|
67668
67413
|
}
|
|
67669
67414
|
if (display === "none" || display === "hidden") {
|
|
67670
67415
|
_this.setFeedback({
|
|
@@ -68398,14 +68143,13 @@ var init_Form = __esmMin(() => {
|
|
|
68398
68143
|
if (!isPlainObj(values))
|
|
68399
68144
|
return;
|
|
68400
68145
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68401
|
-
merge(_this.values, values, {
|
|
68146
|
+
_this.values = merge(_this.values, values, {
|
|
68402
68147
|
arrayMerge: function(target, source) {
|
|
68403
68148
|
return source;
|
|
68404
|
-
}
|
|
68405
|
-
assign: true
|
|
68149
|
+
}
|
|
68406
68150
|
});
|
|
68407
68151
|
} else if (strategy === "shallowMerge") {
|
|
68408
|
-
Object.assign(_this.values, values);
|
|
68152
|
+
_this.values = Object.assign(_this.values, values);
|
|
68409
68153
|
} else {
|
|
68410
68154
|
_this.values = values;
|
|
68411
68155
|
}
|
|
@@ -68417,14 +68161,13 @@ var init_Form = __esmMin(() => {
|
|
|
68417
68161
|
if (!isPlainObj(initialValues))
|
|
68418
68162
|
return;
|
|
68419
68163
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68420
|
-
merge(_this.initialValues, initialValues, {
|
|
68164
|
+
_this.initialValues = merge(_this.initialValues, initialValues, {
|
|
68421
68165
|
arrayMerge: function(target, source) {
|
|
68422
68166
|
return source;
|
|
68423
|
-
}
|
|
68424
|
-
assign: true
|
|
68167
|
+
}
|
|
68425
68168
|
});
|
|
68426
68169
|
} else if (strategy === "shallowMerge") {
|
|
68427
|
-
Object.assign(_this.initialValues, initialValues);
|
|
68170
|
+
_this.initialValues = Object.assign(_this.initialValues, initialValues);
|
|
68428
68171
|
} else {
|
|
68429
68172
|
_this.initialValues = initialValues;
|
|
68430
68173
|
}
|
|
@@ -68873,7 +68616,6 @@ function createFormEffect(type) {
|
|
|
68873
68616
|
}
|
|
68874
68617
|
var onFormInit, onFormMount, onFormUnmount, onFormValuesChange, onFormInitialValuesChange, onFormInputChange, onFormSubmit, onFormReset, onFormSubmitStart, onFormSubmitEnd, onFormSubmitSuccess, onFormSubmitFailed, onFormSubmitValidateStart, onFormSubmitValidateSuccess, onFormSubmitValidateFailed, onFormSubmitValidateEnd, onFormValidateStart, onFormValidateSuccess, onFormValidateFailed, onFormValidateEnd, onFormGraphChange, onFormLoading;
|
|
68875
68618
|
var init_onFormEffects = __esmMin(() => {
|
|
68876
|
-
init_esm2();
|
|
68877
68619
|
init_esm3();
|
|
68878
68620
|
init_types4();
|
|
68879
68621
|
init_effective();
|
|
@@ -71998,6 +71740,7 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
71998
71740
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71999
71741
|
exports.animationFrames = void 0;
|
|
72000
71742
|
var Observable_1 = require_Observable();
|
|
71743
|
+
var Subscription_1 = require_Subscription();
|
|
72001
71744
|
var performanceTimestampProvider_1 = require_performanceTimestampProvider();
|
|
72002
71745
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
|
72003
71746
|
function animationFrames(timestampProvider) {
|
|
@@ -72005,29 +71748,23 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
72005
71748
|
}
|
|
72006
71749
|
exports.animationFrames = animationFrames;
|
|
72007
71750
|
function animationFramesFactory(timestampProvider) {
|
|
71751
|
+
var schedule = animationFrameProvider_1.animationFrameProvider.schedule;
|
|
72008
71752
|
return new Observable_1.Observable(function(subscriber) {
|
|
71753
|
+
var subscription = new Subscription_1.Subscription();
|
|
72009
71754
|
var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
|
|
72010
71755
|
var start = provider.now();
|
|
72011
|
-
var
|
|
72012
|
-
|
|
71756
|
+
var run = function(timestamp) {
|
|
71757
|
+
var now = provider.now();
|
|
71758
|
+
subscriber.next({
|
|
71759
|
+
timestamp: timestampProvider ? now : timestamp,
|
|
71760
|
+
elapsed: now - start
|
|
71761
|
+
});
|
|
72013
71762
|
if (!subscriber.closed) {
|
|
72014
|
-
|
|
72015
|
-
id = 0;
|
|
72016
|
-
var now = provider.now();
|
|
72017
|
-
subscriber.next({
|
|
72018
|
-
timestamp: timestampProvider ? now : timestamp,
|
|
72019
|
-
elapsed: now - start
|
|
72020
|
-
});
|
|
72021
|
-
run();
|
|
72022
|
-
});
|
|
72023
|
-
}
|
|
72024
|
-
};
|
|
72025
|
-
run();
|
|
72026
|
-
return function() {
|
|
72027
|
-
if (id) {
|
|
72028
|
-
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
71763
|
+
subscription.add(schedule(run));
|
|
72029
71764
|
}
|
|
72030
71765
|
};
|
|
71766
|
+
subscription.add(schedule(run));
|
|
71767
|
+
return subscription;
|
|
72031
71768
|
});
|
|
72032
71769
|
}
|
|
72033
71770
|
var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
|
|
@@ -72596,7 +72333,6 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72596
72333
|
return _this;
|
|
72597
72334
|
}
|
|
72598
72335
|
AsyncAction2.prototype.schedule = function(state, delay) {
|
|
72599
|
-
var _a2;
|
|
72600
72336
|
if (delay === void 0) {
|
|
72601
72337
|
delay = 0;
|
|
72602
72338
|
}
|
|
@@ -72611,7 +72347,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72611
72347
|
}
|
|
72612
72348
|
this.pending = true;
|
|
72613
72349
|
this.delay = delay;
|
|
72614
|
-
this.id =
|
|
72350
|
+
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
|
72615
72351
|
return this;
|
|
72616
72352
|
};
|
|
72617
72353
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
@@ -72627,9 +72363,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72627
72363
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
72628
72364
|
return id;
|
|
72629
72365
|
}
|
|
72630
|
-
|
|
72631
|
-
intervalProvider_1.intervalProvider.clearInterval(id);
|
|
72632
|
-
}
|
|
72366
|
+
intervalProvider_1.intervalProvider.clearInterval(id);
|
|
72633
72367
|
return void 0;
|
|
72634
72368
|
};
|
|
72635
72369
|
AsyncAction2.prototype.execute = function(state, delay) {
|
|
@@ -72807,15 +72541,15 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
|
72807
72541
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0)));
|
|
72808
72542
|
};
|
|
72809
72543
|
AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
72810
|
-
var _a2;
|
|
72811
72544
|
if (delay === void 0) {
|
|
72812
72545
|
delay = 0;
|
|
72813
72546
|
}
|
|
72814
|
-
if (delay != null
|
|
72547
|
+
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
72815
72548
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
72816
72549
|
}
|
|
72817
|
-
|
|
72818
|
-
|
|
72550
|
+
if (!scheduler.actions.some(function(action2) {
|
|
72551
|
+
return action2.id === id;
|
|
72552
|
+
})) {
|
|
72819
72553
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
72820
72554
|
scheduler._scheduled = void 0;
|
|
72821
72555
|
}
|
|
@@ -72884,6 +72618,7 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
|
72884
72618
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
72885
72619
|
_this.actions = [];
|
|
72886
72620
|
_this._active = false;
|
|
72621
|
+
_this._scheduled = void 0;
|
|
72887
72622
|
return _this;
|
|
72888
72623
|
}
|
|
72889
72624
|
AsyncScheduler2.prototype.flush = function(action2) {
|
|
@@ -73040,8 +72775,7 @@ var require_QueueAction = __commonJSMin((exports) => {
|
|
|
73040
72775
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
73041
72776
|
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
|
73042
72777
|
}
|
|
73043
|
-
scheduler.flush(this);
|
|
73044
|
-
return 0;
|
|
72778
|
+
return scheduler.flush(this);
|
|
73045
72779
|
};
|
|
73046
72780
|
return QueueAction2;
|
|
73047
72781
|
}(AsyncAction_1.AsyncAction);
|
|
@@ -73139,15 +72873,15 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
|
73139
72873
|
}));
|
|
73140
72874
|
};
|
|
73141
72875
|
AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
73142
|
-
var _a2;
|
|
73143
72876
|
if (delay === void 0) {
|
|
73144
72877
|
delay = 0;
|
|
73145
72878
|
}
|
|
73146
|
-
if (delay != null
|
|
72879
|
+
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
73147
72880
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
73148
72881
|
}
|
|
73149
|
-
|
|
73150
|
-
|
|
72882
|
+
if (!scheduler.actions.some(function(action2) {
|
|
72883
|
+
return action2.id === id;
|
|
72884
|
+
})) {
|
|
73151
72885
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
73152
72886
|
scheduler._scheduled = void 0;
|
|
73153
72887
|
}
|
|
@@ -73326,7 +73060,7 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
73326
73060
|
var actions = scheduler.actions;
|
|
73327
73061
|
actions.push(this);
|
|
73328
73062
|
actions.sort(VirtualAction2.sortActions);
|
|
73329
|
-
return
|
|
73063
|
+
return true;
|
|
73330
73064
|
};
|
|
73331
73065
|
VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
73332
73066
|
if (delay === void 0) {
|
|
@@ -76425,7 +76159,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
76425
76159
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76426
76160
|
exports.connect = void 0;
|
|
76427
76161
|
var Subject_1 = require_Subject();
|
|
76428
|
-
var
|
|
76162
|
+
var from_1 = require_from();
|
|
76429
76163
|
var lift_1 = require_lift();
|
|
76430
76164
|
var fromSubscribable_1 = require_fromSubscribable();
|
|
76431
76165
|
var DEFAULT_CONFIG = {
|
|
@@ -76440,7 +76174,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
76440
76174
|
var connector = config.connector;
|
|
76441
76175
|
return lift_1.operate(function(source, subscriber) {
|
|
76442
76176
|
var subject = connector();
|
|
76443
|
-
|
|
76177
|
+
from_1.from(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
|
|
76444
76178
|
subscriber.add(source.subscribe(subject));
|
|
76445
76179
|
});
|
|
76446
76180
|
}
|
|
@@ -76856,6 +76590,39 @@ var require_every = __commonJSMin((exports) => {
|
|
|
76856
76590
|
}
|
|
76857
76591
|
exports.every = every;
|
|
76858
76592
|
});
|
|
76593
|
+
var require_exhaustAll = __commonJSMin((exports) => {
|
|
76594
|
+
"use strict";
|
|
76595
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76596
|
+
exports.exhaustAll = void 0;
|
|
76597
|
+
var lift_1 = require_lift();
|
|
76598
|
+
var innerFrom_1 = require_innerFrom();
|
|
76599
|
+
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
76600
|
+
function exhaustAll() {
|
|
76601
|
+
return lift_1.operate(function(source, subscriber) {
|
|
76602
|
+
var isComplete = false;
|
|
76603
|
+
var innerSub = null;
|
|
76604
|
+
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(inner) {
|
|
76605
|
+
if (!innerSub) {
|
|
76606
|
+
innerSub = innerFrom_1.innerFrom(inner).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() {
|
|
76607
|
+
innerSub = null;
|
|
76608
|
+
isComplete && subscriber.complete();
|
|
76609
|
+
}));
|
|
76610
|
+
}
|
|
76611
|
+
}, function() {
|
|
76612
|
+
isComplete = true;
|
|
76613
|
+
!innerSub && subscriber.complete();
|
|
76614
|
+
}));
|
|
76615
|
+
});
|
|
76616
|
+
}
|
|
76617
|
+
exports.exhaustAll = exhaustAll;
|
|
76618
|
+
});
|
|
76619
|
+
var require_exhaust = __commonJSMin((exports) => {
|
|
76620
|
+
"use strict";
|
|
76621
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76622
|
+
exports.exhaust = void 0;
|
|
76623
|
+
var exhaustAll_1 = require_exhaustAll();
|
|
76624
|
+
exports.exhaust = exhaustAll_1.exhaustAll;
|
|
76625
|
+
});
|
|
76859
76626
|
var require_exhaustMap = __commonJSMin((exports) => {
|
|
76860
76627
|
"use strict";
|
|
76861
76628
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -76894,24 +76661,6 @@ var require_exhaustMap = __commonJSMin((exports) => {
|
|
|
76894
76661
|
}
|
|
76895
76662
|
exports.exhaustMap = exhaustMap;
|
|
76896
76663
|
});
|
|
76897
|
-
var require_exhaustAll = __commonJSMin((exports) => {
|
|
76898
|
-
"use strict";
|
|
76899
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76900
|
-
exports.exhaustAll = void 0;
|
|
76901
|
-
var exhaustMap_1 = require_exhaustMap();
|
|
76902
|
-
var identity_1 = require_identity();
|
|
76903
|
-
function exhaustAll() {
|
|
76904
|
-
return exhaustMap_1.exhaustMap(identity_1.identity);
|
|
76905
|
-
}
|
|
76906
|
-
exports.exhaustAll = exhaustAll;
|
|
76907
|
-
});
|
|
76908
|
-
var require_exhaust = __commonJSMin((exports) => {
|
|
76909
|
-
"use strict";
|
|
76910
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76911
|
-
exports.exhaust = void 0;
|
|
76912
|
-
var exhaustAll_1 = require_exhaustAll();
|
|
76913
|
-
exports.exhaust = exhaustAll_1.exhaustAll;
|
|
76914
|
-
});
|
|
76915
76664
|
var require_expand = __commonJSMin((exports) => {
|
|
76916
76665
|
"use strict";
|
|
76917
76666
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -77904,7 +77653,8 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77904
77653
|
};
|
|
77905
77654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77906
77655
|
exports.share = void 0;
|
|
77907
|
-
var
|
|
77656
|
+
var from_1 = require_from();
|
|
77657
|
+
var take_1 = require_take();
|
|
77908
77658
|
var Subject_1 = require_Subject();
|
|
77909
77659
|
var Subscriber_1 = require_Subscriber();
|
|
77910
77660
|
var lift_1 = require_lift();
|
|
@@ -77916,19 +77666,19 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77916
77666
|
return new Subject_1.Subject();
|
|
77917
77667
|
} : _a2, _b = options3.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options3.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options3.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
|
|
77918
77668
|
return function(wrapperSource) {
|
|
77919
|
-
var connection;
|
|
77920
|
-
var resetConnection;
|
|
77921
|
-
var subject;
|
|
77669
|
+
var connection = null;
|
|
77670
|
+
var resetConnection = null;
|
|
77671
|
+
var subject = null;
|
|
77922
77672
|
var refCount = 0;
|
|
77923
77673
|
var hasCompleted = false;
|
|
77924
77674
|
var hasErrored = false;
|
|
77925
77675
|
var cancelReset = function() {
|
|
77926
77676
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
77927
|
-
resetConnection =
|
|
77677
|
+
resetConnection = null;
|
|
77928
77678
|
};
|
|
77929
77679
|
var reset = function() {
|
|
77930
77680
|
cancelReset();
|
|
77931
|
-
connection = subject =
|
|
77681
|
+
connection = subject = null;
|
|
77932
77682
|
hasCompleted = hasErrored = false;
|
|
77933
77683
|
};
|
|
77934
77684
|
var resetAndUnsubscribe = function() {
|
|
@@ -77949,7 +77699,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77949
77699
|
}
|
|
77950
77700
|
});
|
|
77951
77701
|
dest.subscribe(subscriber);
|
|
77952
|
-
if (!connection
|
|
77702
|
+
if (!connection) {
|
|
77953
77703
|
connection = new Subscriber_1.SafeSubscriber({
|
|
77954
77704
|
next: function(value) {
|
|
77955
77705
|
return dest.next(value);
|
|
@@ -77967,7 +77717,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77967
77717
|
dest.complete();
|
|
77968
77718
|
}
|
|
77969
77719
|
});
|
|
77970
|
-
|
|
77720
|
+
from_1.from(source).subscribe(connection);
|
|
77971
77721
|
}
|
|
77972
77722
|
})(wrapperSource);
|
|
77973
77723
|
};
|
|
@@ -77980,18 +77730,14 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77980
77730
|
}
|
|
77981
77731
|
if (on === true) {
|
|
77982
77732
|
reset();
|
|
77983
|
-
return;
|
|
77733
|
+
return null;
|
|
77984
77734
|
}
|
|
77985
77735
|
if (on === false) {
|
|
77986
|
-
return;
|
|
77736
|
+
return null;
|
|
77987
77737
|
}
|
|
77988
|
-
|
|
77989
|
-
|
|
77990
|
-
onSubscriber.unsubscribe();
|
|
77991
|
-
reset();
|
|
77992
|
-
}
|
|
77738
|
+
return on.apply(void 0, __spreadArray8([], __read9(args))).pipe(take_1.take(1)).subscribe(function() {
|
|
77739
|
+
return reset();
|
|
77993
77740
|
});
|
|
77994
|
-
return on.apply(void 0, __spreadArray8([], __read9(args))).subscribe(onSubscriber);
|
|
77995
77741
|
}
|
|
77996
77742
|
});
|
|
77997
77743
|
var require_shareReplay = __commonJSMin((exports) => {
|
|
@@ -82424,1237 +82170,6 @@ var require_string_width = __commonJSMin((exports, module2) => {
|
|
|
82424
82170
|
module2.exports = stringWidth;
|
|
82425
82171
|
module2.exports.default = stringWidth;
|
|
82426
82172
|
});
|
|
82427
|
-
var require_color_name = __commonJSMin((exports, module2) => {
|
|
82428
|
-
"use strict";
|
|
82429
|
-
module2.exports = {
|
|
82430
|
-
"aliceblue": [240, 248, 255],
|
|
82431
|
-
"antiquewhite": [250, 235, 215],
|
|
82432
|
-
"aqua": [0, 255, 255],
|
|
82433
|
-
"aquamarine": [127, 255, 212],
|
|
82434
|
-
"azure": [240, 255, 255],
|
|
82435
|
-
"beige": [245, 245, 220],
|
|
82436
|
-
"bisque": [255, 228, 196],
|
|
82437
|
-
"black": [0, 0, 0],
|
|
82438
|
-
"blanchedalmond": [255, 235, 205],
|
|
82439
|
-
"blue": [0, 0, 255],
|
|
82440
|
-
"blueviolet": [138, 43, 226],
|
|
82441
|
-
"brown": [165, 42, 42],
|
|
82442
|
-
"burlywood": [222, 184, 135],
|
|
82443
|
-
"cadetblue": [95, 158, 160],
|
|
82444
|
-
"chartreuse": [127, 255, 0],
|
|
82445
|
-
"chocolate": [210, 105, 30],
|
|
82446
|
-
"coral": [255, 127, 80],
|
|
82447
|
-
"cornflowerblue": [100, 149, 237],
|
|
82448
|
-
"cornsilk": [255, 248, 220],
|
|
82449
|
-
"crimson": [220, 20, 60],
|
|
82450
|
-
"cyan": [0, 255, 255],
|
|
82451
|
-
"darkblue": [0, 0, 139],
|
|
82452
|
-
"darkcyan": [0, 139, 139],
|
|
82453
|
-
"darkgoldenrod": [184, 134, 11],
|
|
82454
|
-
"darkgray": [169, 169, 169],
|
|
82455
|
-
"darkgreen": [0, 100, 0],
|
|
82456
|
-
"darkgrey": [169, 169, 169],
|
|
82457
|
-
"darkkhaki": [189, 183, 107],
|
|
82458
|
-
"darkmagenta": [139, 0, 139],
|
|
82459
|
-
"darkolivegreen": [85, 107, 47],
|
|
82460
|
-
"darkorange": [255, 140, 0],
|
|
82461
|
-
"darkorchid": [153, 50, 204],
|
|
82462
|
-
"darkred": [139, 0, 0],
|
|
82463
|
-
"darksalmon": [233, 150, 122],
|
|
82464
|
-
"darkseagreen": [143, 188, 143],
|
|
82465
|
-
"darkslateblue": [72, 61, 139],
|
|
82466
|
-
"darkslategray": [47, 79, 79],
|
|
82467
|
-
"darkslategrey": [47, 79, 79],
|
|
82468
|
-
"darkturquoise": [0, 206, 209],
|
|
82469
|
-
"darkviolet": [148, 0, 211],
|
|
82470
|
-
"deeppink": [255, 20, 147],
|
|
82471
|
-
"deepskyblue": [0, 191, 255],
|
|
82472
|
-
"dimgray": [105, 105, 105],
|
|
82473
|
-
"dimgrey": [105, 105, 105],
|
|
82474
|
-
"dodgerblue": [30, 144, 255],
|
|
82475
|
-
"firebrick": [178, 34, 34],
|
|
82476
|
-
"floralwhite": [255, 250, 240],
|
|
82477
|
-
"forestgreen": [34, 139, 34],
|
|
82478
|
-
"fuchsia": [255, 0, 255],
|
|
82479
|
-
"gainsboro": [220, 220, 220],
|
|
82480
|
-
"ghostwhite": [248, 248, 255],
|
|
82481
|
-
"gold": [255, 215, 0],
|
|
82482
|
-
"goldenrod": [218, 165, 32],
|
|
82483
|
-
"gray": [128, 128, 128],
|
|
82484
|
-
"green": [0, 128, 0],
|
|
82485
|
-
"greenyellow": [173, 255, 47],
|
|
82486
|
-
"grey": [128, 128, 128],
|
|
82487
|
-
"honeydew": [240, 255, 240],
|
|
82488
|
-
"hotpink": [255, 105, 180],
|
|
82489
|
-
"indianred": [205, 92, 92],
|
|
82490
|
-
"indigo": [75, 0, 130],
|
|
82491
|
-
"ivory": [255, 255, 240],
|
|
82492
|
-
"khaki": [240, 230, 140],
|
|
82493
|
-
"lavender": [230, 230, 250],
|
|
82494
|
-
"lavenderblush": [255, 240, 245],
|
|
82495
|
-
"lawngreen": [124, 252, 0],
|
|
82496
|
-
"lemonchiffon": [255, 250, 205],
|
|
82497
|
-
"lightblue": [173, 216, 230],
|
|
82498
|
-
"lightcoral": [240, 128, 128],
|
|
82499
|
-
"lightcyan": [224, 255, 255],
|
|
82500
|
-
"lightgoldenrodyellow": [250, 250, 210],
|
|
82501
|
-
"lightgray": [211, 211, 211],
|
|
82502
|
-
"lightgreen": [144, 238, 144],
|
|
82503
|
-
"lightgrey": [211, 211, 211],
|
|
82504
|
-
"lightpink": [255, 182, 193],
|
|
82505
|
-
"lightsalmon": [255, 160, 122],
|
|
82506
|
-
"lightseagreen": [32, 178, 170],
|
|
82507
|
-
"lightskyblue": [135, 206, 250],
|
|
82508
|
-
"lightslategray": [119, 136, 153],
|
|
82509
|
-
"lightslategrey": [119, 136, 153],
|
|
82510
|
-
"lightsteelblue": [176, 196, 222],
|
|
82511
|
-
"lightyellow": [255, 255, 224],
|
|
82512
|
-
"lime": [0, 255, 0],
|
|
82513
|
-
"limegreen": [50, 205, 50],
|
|
82514
|
-
"linen": [250, 240, 230],
|
|
82515
|
-
"magenta": [255, 0, 255],
|
|
82516
|
-
"maroon": [128, 0, 0],
|
|
82517
|
-
"mediumaquamarine": [102, 205, 170],
|
|
82518
|
-
"mediumblue": [0, 0, 205],
|
|
82519
|
-
"mediumorchid": [186, 85, 211],
|
|
82520
|
-
"mediumpurple": [147, 112, 219],
|
|
82521
|
-
"mediumseagreen": [60, 179, 113],
|
|
82522
|
-
"mediumslateblue": [123, 104, 238],
|
|
82523
|
-
"mediumspringgreen": [0, 250, 154],
|
|
82524
|
-
"mediumturquoise": [72, 209, 204],
|
|
82525
|
-
"mediumvioletred": [199, 21, 133],
|
|
82526
|
-
"midnightblue": [25, 25, 112],
|
|
82527
|
-
"mintcream": [245, 255, 250],
|
|
82528
|
-
"mistyrose": [255, 228, 225],
|
|
82529
|
-
"moccasin": [255, 228, 181],
|
|
82530
|
-
"navajowhite": [255, 222, 173],
|
|
82531
|
-
"navy": [0, 0, 128],
|
|
82532
|
-
"oldlace": [253, 245, 230],
|
|
82533
|
-
"olive": [128, 128, 0],
|
|
82534
|
-
"olivedrab": [107, 142, 35],
|
|
82535
|
-
"orange": [255, 165, 0],
|
|
82536
|
-
"orangered": [255, 69, 0],
|
|
82537
|
-
"orchid": [218, 112, 214],
|
|
82538
|
-
"palegoldenrod": [238, 232, 170],
|
|
82539
|
-
"palegreen": [152, 251, 152],
|
|
82540
|
-
"paleturquoise": [175, 238, 238],
|
|
82541
|
-
"palevioletred": [219, 112, 147],
|
|
82542
|
-
"papayawhip": [255, 239, 213],
|
|
82543
|
-
"peachpuff": [255, 218, 185],
|
|
82544
|
-
"peru": [205, 133, 63],
|
|
82545
|
-
"pink": [255, 192, 203],
|
|
82546
|
-
"plum": [221, 160, 221],
|
|
82547
|
-
"powderblue": [176, 224, 230],
|
|
82548
|
-
"purple": [128, 0, 128],
|
|
82549
|
-
"rebeccapurple": [102, 51, 153],
|
|
82550
|
-
"red": [255, 0, 0],
|
|
82551
|
-
"rosybrown": [188, 143, 143],
|
|
82552
|
-
"royalblue": [65, 105, 225],
|
|
82553
|
-
"saddlebrown": [139, 69, 19],
|
|
82554
|
-
"salmon": [250, 128, 114],
|
|
82555
|
-
"sandybrown": [244, 164, 96],
|
|
82556
|
-
"seagreen": [46, 139, 87],
|
|
82557
|
-
"seashell": [255, 245, 238],
|
|
82558
|
-
"sienna": [160, 82, 45],
|
|
82559
|
-
"silver": [192, 192, 192],
|
|
82560
|
-
"skyblue": [135, 206, 235],
|
|
82561
|
-
"slateblue": [106, 90, 205],
|
|
82562
|
-
"slategray": [112, 128, 144],
|
|
82563
|
-
"slategrey": [112, 128, 144],
|
|
82564
|
-
"snow": [255, 250, 250],
|
|
82565
|
-
"springgreen": [0, 255, 127],
|
|
82566
|
-
"steelblue": [70, 130, 180],
|
|
82567
|
-
"tan": [210, 180, 140],
|
|
82568
|
-
"teal": [0, 128, 128],
|
|
82569
|
-
"thistle": [216, 191, 216],
|
|
82570
|
-
"tomato": [255, 99, 71],
|
|
82571
|
-
"turquoise": [64, 224, 208],
|
|
82572
|
-
"violet": [238, 130, 238],
|
|
82573
|
-
"wheat": [245, 222, 179],
|
|
82574
|
-
"white": [255, 255, 255],
|
|
82575
|
-
"whitesmoke": [245, 245, 245],
|
|
82576
|
-
"yellow": [255, 255, 0],
|
|
82577
|
-
"yellowgreen": [154, 205, 50]
|
|
82578
|
-
};
|
|
82579
|
-
});
|
|
82580
|
-
var require_conversions = __commonJSMin((exports, module2) => {
|
|
82581
|
-
var cssKeywords = require_color_name();
|
|
82582
|
-
var reverseKeywords = {};
|
|
82583
|
-
for (const key of Object.keys(cssKeywords)) {
|
|
82584
|
-
reverseKeywords[cssKeywords[key]] = key;
|
|
82585
|
-
}
|
|
82586
|
-
var convert = {
|
|
82587
|
-
rgb: { channels: 3, labels: "rgb" },
|
|
82588
|
-
hsl: { channels: 3, labels: "hsl" },
|
|
82589
|
-
hsv: { channels: 3, labels: "hsv" },
|
|
82590
|
-
hwb: { channels: 3, labels: "hwb" },
|
|
82591
|
-
cmyk: { channels: 4, labels: "cmyk" },
|
|
82592
|
-
xyz: { channels: 3, labels: "xyz" },
|
|
82593
|
-
lab: { channels: 3, labels: "lab" },
|
|
82594
|
-
lch: { channels: 3, labels: "lch" },
|
|
82595
|
-
hex: { channels: 1, labels: ["hex"] },
|
|
82596
|
-
keyword: { channels: 1, labels: ["keyword"] },
|
|
82597
|
-
ansi16: { channels: 1, labels: ["ansi16"] },
|
|
82598
|
-
ansi256: { channels: 1, labels: ["ansi256"] },
|
|
82599
|
-
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
|
82600
|
-
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
82601
|
-
gray: { channels: 1, labels: ["gray"] }
|
|
82602
|
-
};
|
|
82603
|
-
module2.exports = convert;
|
|
82604
|
-
for (const model of Object.keys(convert)) {
|
|
82605
|
-
if (!("channels" in convert[model])) {
|
|
82606
|
-
throw new Error("missing channels property: " + model);
|
|
82607
|
-
}
|
|
82608
|
-
if (!("labels" in convert[model])) {
|
|
82609
|
-
throw new Error("missing channel labels property: " + model);
|
|
82610
|
-
}
|
|
82611
|
-
if (convert[model].labels.length !== convert[model].channels) {
|
|
82612
|
-
throw new Error("channel and label counts mismatch: " + model);
|
|
82613
|
-
}
|
|
82614
|
-
const { channels, labels } = convert[model];
|
|
82615
|
-
delete convert[model].channels;
|
|
82616
|
-
delete convert[model].labels;
|
|
82617
|
-
Object.defineProperty(convert[model], "channels", { value: channels });
|
|
82618
|
-
Object.defineProperty(convert[model], "labels", { value: labels });
|
|
82619
|
-
}
|
|
82620
|
-
convert.rgb.hsl = function(rgb) {
|
|
82621
|
-
const r = rgb[0] / 255;
|
|
82622
|
-
const g = rgb[1] / 255;
|
|
82623
|
-
const b = rgb[2] / 255;
|
|
82624
|
-
const min = Math.min(r, g, b);
|
|
82625
|
-
const max = Math.max(r, g, b);
|
|
82626
|
-
const delta = max - min;
|
|
82627
|
-
let h;
|
|
82628
|
-
let s;
|
|
82629
|
-
if (max === min) {
|
|
82630
|
-
h = 0;
|
|
82631
|
-
} else if (r === max) {
|
|
82632
|
-
h = (g - b) / delta;
|
|
82633
|
-
} else if (g === max) {
|
|
82634
|
-
h = 2 + (b - r) / delta;
|
|
82635
|
-
} else if (b === max) {
|
|
82636
|
-
h = 4 + (r - g) / delta;
|
|
82637
|
-
}
|
|
82638
|
-
h = Math.min(h * 60, 360);
|
|
82639
|
-
if (h < 0) {
|
|
82640
|
-
h += 360;
|
|
82641
|
-
}
|
|
82642
|
-
const l = (min + max) / 2;
|
|
82643
|
-
if (max === min) {
|
|
82644
|
-
s = 0;
|
|
82645
|
-
} else if (l <= 0.5) {
|
|
82646
|
-
s = delta / (max + min);
|
|
82647
|
-
} else {
|
|
82648
|
-
s = delta / (2 - max - min);
|
|
82649
|
-
}
|
|
82650
|
-
return [h, s * 100, l * 100];
|
|
82651
|
-
};
|
|
82652
|
-
convert.rgb.hsv = function(rgb) {
|
|
82653
|
-
let rdif;
|
|
82654
|
-
let gdif;
|
|
82655
|
-
let bdif;
|
|
82656
|
-
let h;
|
|
82657
|
-
let s;
|
|
82658
|
-
const r = rgb[0] / 255;
|
|
82659
|
-
const g = rgb[1] / 255;
|
|
82660
|
-
const b = rgb[2] / 255;
|
|
82661
|
-
const v = Math.max(r, g, b);
|
|
82662
|
-
const diff = v - Math.min(r, g, b);
|
|
82663
|
-
const diffc = function(c) {
|
|
82664
|
-
return (v - c) / 6 / diff + 1 / 2;
|
|
82665
|
-
};
|
|
82666
|
-
if (diff === 0) {
|
|
82667
|
-
h = 0;
|
|
82668
|
-
s = 0;
|
|
82669
|
-
} else {
|
|
82670
|
-
s = diff / v;
|
|
82671
|
-
rdif = diffc(r);
|
|
82672
|
-
gdif = diffc(g);
|
|
82673
|
-
bdif = diffc(b);
|
|
82674
|
-
if (r === v) {
|
|
82675
|
-
h = bdif - gdif;
|
|
82676
|
-
} else if (g === v) {
|
|
82677
|
-
h = 1 / 3 + rdif - bdif;
|
|
82678
|
-
} else if (b === v) {
|
|
82679
|
-
h = 2 / 3 + gdif - rdif;
|
|
82680
|
-
}
|
|
82681
|
-
if (h < 0) {
|
|
82682
|
-
h += 1;
|
|
82683
|
-
} else if (h > 1) {
|
|
82684
|
-
h -= 1;
|
|
82685
|
-
}
|
|
82686
|
-
}
|
|
82687
|
-
return [
|
|
82688
|
-
h * 360,
|
|
82689
|
-
s * 100,
|
|
82690
|
-
v * 100
|
|
82691
|
-
];
|
|
82692
|
-
};
|
|
82693
|
-
convert.rgb.hwb = function(rgb) {
|
|
82694
|
-
const r = rgb[0];
|
|
82695
|
-
const g = rgb[1];
|
|
82696
|
-
let b = rgb[2];
|
|
82697
|
-
const h = convert.rgb.hsl(rgb)[0];
|
|
82698
|
-
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
82699
|
-
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
82700
|
-
return [h, w * 100, b * 100];
|
|
82701
|
-
};
|
|
82702
|
-
convert.rgb.cmyk = function(rgb) {
|
|
82703
|
-
const r = rgb[0] / 255;
|
|
82704
|
-
const g = rgb[1] / 255;
|
|
82705
|
-
const b = rgb[2] / 255;
|
|
82706
|
-
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
82707
|
-
const c = (1 - r - k) / (1 - k) || 0;
|
|
82708
|
-
const m = (1 - g - k) / (1 - k) || 0;
|
|
82709
|
-
const y = (1 - b - k) / (1 - k) || 0;
|
|
82710
|
-
return [c * 100, m * 100, y * 100, k * 100];
|
|
82711
|
-
};
|
|
82712
|
-
function comparativeDistance(x, y) {
|
|
82713
|
-
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
82714
|
-
}
|
|
82715
|
-
convert.rgb.keyword = function(rgb) {
|
|
82716
|
-
const reversed = reverseKeywords[rgb];
|
|
82717
|
-
if (reversed) {
|
|
82718
|
-
return reversed;
|
|
82719
|
-
}
|
|
82720
|
-
let currentClosestDistance = Infinity;
|
|
82721
|
-
let currentClosestKeyword;
|
|
82722
|
-
for (const keyword of Object.keys(cssKeywords)) {
|
|
82723
|
-
const value = cssKeywords[keyword];
|
|
82724
|
-
const distance = comparativeDistance(rgb, value);
|
|
82725
|
-
if (distance < currentClosestDistance) {
|
|
82726
|
-
currentClosestDistance = distance;
|
|
82727
|
-
currentClosestKeyword = keyword;
|
|
82728
|
-
}
|
|
82729
|
-
}
|
|
82730
|
-
return currentClosestKeyword;
|
|
82731
|
-
};
|
|
82732
|
-
convert.keyword.rgb = function(keyword) {
|
|
82733
|
-
return cssKeywords[keyword];
|
|
82734
|
-
};
|
|
82735
|
-
convert.rgb.xyz = function(rgb) {
|
|
82736
|
-
let r = rgb[0] / 255;
|
|
82737
|
-
let g = rgb[1] / 255;
|
|
82738
|
-
let b = rgb[2] / 255;
|
|
82739
|
-
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
82740
|
-
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
82741
|
-
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
82742
|
-
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
82743
|
-
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
82744
|
-
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
82745
|
-
return [x * 100, y * 100, z * 100];
|
|
82746
|
-
};
|
|
82747
|
-
convert.rgb.lab = function(rgb) {
|
|
82748
|
-
const xyz = convert.rgb.xyz(rgb);
|
|
82749
|
-
let x = xyz[0];
|
|
82750
|
-
let y = xyz[1];
|
|
82751
|
-
let z = xyz[2];
|
|
82752
|
-
x /= 95.047;
|
|
82753
|
-
y /= 100;
|
|
82754
|
-
z /= 108.883;
|
|
82755
|
-
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
82756
|
-
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
82757
|
-
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
82758
|
-
const l = 116 * y - 16;
|
|
82759
|
-
const a = 500 * (x - y);
|
|
82760
|
-
const b = 200 * (y - z);
|
|
82761
|
-
return [l, a, b];
|
|
82762
|
-
};
|
|
82763
|
-
convert.hsl.rgb = function(hsl) {
|
|
82764
|
-
const h = hsl[0] / 360;
|
|
82765
|
-
const s = hsl[1] / 100;
|
|
82766
|
-
const l = hsl[2] / 100;
|
|
82767
|
-
let t2;
|
|
82768
|
-
let t3;
|
|
82769
|
-
let val;
|
|
82770
|
-
if (s === 0) {
|
|
82771
|
-
val = l * 255;
|
|
82772
|
-
return [val, val, val];
|
|
82773
|
-
}
|
|
82774
|
-
if (l < 0.5) {
|
|
82775
|
-
t2 = l * (1 + s);
|
|
82776
|
-
} else {
|
|
82777
|
-
t2 = l + s - l * s;
|
|
82778
|
-
}
|
|
82779
|
-
const t1 = 2 * l - t2;
|
|
82780
|
-
const rgb = [0, 0, 0];
|
|
82781
|
-
for (let i = 0; i < 3; i++) {
|
|
82782
|
-
t3 = h + 1 / 3 * -(i - 1);
|
|
82783
|
-
if (t3 < 0) {
|
|
82784
|
-
t3++;
|
|
82785
|
-
}
|
|
82786
|
-
if (t3 > 1) {
|
|
82787
|
-
t3--;
|
|
82788
|
-
}
|
|
82789
|
-
if (6 * t3 < 1) {
|
|
82790
|
-
val = t1 + (t2 - t1) * 6 * t3;
|
|
82791
|
-
} else if (2 * t3 < 1) {
|
|
82792
|
-
val = t2;
|
|
82793
|
-
} else if (3 * t3 < 2) {
|
|
82794
|
-
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
82795
|
-
} else {
|
|
82796
|
-
val = t1;
|
|
82797
|
-
}
|
|
82798
|
-
rgb[i] = val * 255;
|
|
82799
|
-
}
|
|
82800
|
-
return rgb;
|
|
82801
|
-
};
|
|
82802
|
-
convert.hsl.hsv = function(hsl) {
|
|
82803
|
-
const h = hsl[0];
|
|
82804
|
-
let s = hsl[1] / 100;
|
|
82805
|
-
let l = hsl[2] / 100;
|
|
82806
|
-
let smin = s;
|
|
82807
|
-
const lmin = Math.max(l, 0.01);
|
|
82808
|
-
l *= 2;
|
|
82809
|
-
s *= l <= 1 ? l : 2 - l;
|
|
82810
|
-
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
82811
|
-
const v = (l + s) / 2;
|
|
82812
|
-
const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
|
82813
|
-
return [h, sv * 100, v * 100];
|
|
82814
|
-
};
|
|
82815
|
-
convert.hsv.rgb = function(hsv) {
|
|
82816
|
-
const h = hsv[0] / 60;
|
|
82817
|
-
const s = hsv[1] / 100;
|
|
82818
|
-
let v = hsv[2] / 100;
|
|
82819
|
-
const hi = Math.floor(h) % 6;
|
|
82820
|
-
const f = h - Math.floor(h);
|
|
82821
|
-
const p = 255 * v * (1 - s);
|
|
82822
|
-
const q = 255 * v * (1 - s * f);
|
|
82823
|
-
const t = 255 * v * (1 - s * (1 - f));
|
|
82824
|
-
v *= 255;
|
|
82825
|
-
switch (hi) {
|
|
82826
|
-
case 0:
|
|
82827
|
-
return [v, t, p];
|
|
82828
|
-
case 1:
|
|
82829
|
-
return [q, v, p];
|
|
82830
|
-
case 2:
|
|
82831
|
-
return [p, v, t];
|
|
82832
|
-
case 3:
|
|
82833
|
-
return [p, q, v];
|
|
82834
|
-
case 4:
|
|
82835
|
-
return [t, p, v];
|
|
82836
|
-
case 5:
|
|
82837
|
-
return [v, p, q];
|
|
82838
|
-
}
|
|
82839
|
-
};
|
|
82840
|
-
convert.hsv.hsl = function(hsv) {
|
|
82841
|
-
const h = hsv[0];
|
|
82842
|
-
const s = hsv[1] / 100;
|
|
82843
|
-
const v = hsv[2] / 100;
|
|
82844
|
-
const vmin = Math.max(v, 0.01);
|
|
82845
|
-
let sl;
|
|
82846
|
-
let l;
|
|
82847
|
-
l = (2 - s) * v;
|
|
82848
|
-
const lmin = (2 - s) * vmin;
|
|
82849
|
-
sl = s * vmin;
|
|
82850
|
-
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
|
82851
|
-
sl = sl || 0;
|
|
82852
|
-
l /= 2;
|
|
82853
|
-
return [h, sl * 100, l * 100];
|
|
82854
|
-
};
|
|
82855
|
-
convert.hwb.rgb = function(hwb) {
|
|
82856
|
-
const h = hwb[0] / 360;
|
|
82857
|
-
let wh = hwb[1] / 100;
|
|
82858
|
-
let bl = hwb[2] / 100;
|
|
82859
|
-
const ratio = wh + bl;
|
|
82860
|
-
let f;
|
|
82861
|
-
if (ratio > 1) {
|
|
82862
|
-
wh /= ratio;
|
|
82863
|
-
bl /= ratio;
|
|
82864
|
-
}
|
|
82865
|
-
const i = Math.floor(6 * h);
|
|
82866
|
-
const v = 1 - bl;
|
|
82867
|
-
f = 6 * h - i;
|
|
82868
|
-
if ((i & 1) !== 0) {
|
|
82869
|
-
f = 1 - f;
|
|
82870
|
-
}
|
|
82871
|
-
const n = wh + f * (v - wh);
|
|
82872
|
-
let r;
|
|
82873
|
-
let g;
|
|
82874
|
-
let b;
|
|
82875
|
-
switch (i) {
|
|
82876
|
-
default:
|
|
82877
|
-
case 6:
|
|
82878
|
-
case 0:
|
|
82879
|
-
r = v;
|
|
82880
|
-
g = n;
|
|
82881
|
-
b = wh;
|
|
82882
|
-
break;
|
|
82883
|
-
case 1:
|
|
82884
|
-
r = n;
|
|
82885
|
-
g = v;
|
|
82886
|
-
b = wh;
|
|
82887
|
-
break;
|
|
82888
|
-
case 2:
|
|
82889
|
-
r = wh;
|
|
82890
|
-
g = v;
|
|
82891
|
-
b = n;
|
|
82892
|
-
break;
|
|
82893
|
-
case 3:
|
|
82894
|
-
r = wh;
|
|
82895
|
-
g = n;
|
|
82896
|
-
b = v;
|
|
82897
|
-
break;
|
|
82898
|
-
case 4:
|
|
82899
|
-
r = n;
|
|
82900
|
-
g = wh;
|
|
82901
|
-
b = v;
|
|
82902
|
-
break;
|
|
82903
|
-
case 5:
|
|
82904
|
-
r = v;
|
|
82905
|
-
g = wh;
|
|
82906
|
-
b = n;
|
|
82907
|
-
break;
|
|
82908
|
-
}
|
|
82909
|
-
return [r * 255, g * 255, b * 255];
|
|
82910
|
-
};
|
|
82911
|
-
convert.cmyk.rgb = function(cmyk) {
|
|
82912
|
-
const c = cmyk[0] / 100;
|
|
82913
|
-
const m = cmyk[1] / 100;
|
|
82914
|
-
const y = cmyk[2] / 100;
|
|
82915
|
-
const k = cmyk[3] / 100;
|
|
82916
|
-
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
82917
|
-
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
82918
|
-
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
82919
|
-
return [r * 255, g * 255, b * 255];
|
|
82920
|
-
};
|
|
82921
|
-
convert.xyz.rgb = function(xyz) {
|
|
82922
|
-
const x = xyz[0] / 100;
|
|
82923
|
-
const y = xyz[1] / 100;
|
|
82924
|
-
const z = xyz[2] / 100;
|
|
82925
|
-
let r;
|
|
82926
|
-
let g;
|
|
82927
|
-
let b;
|
|
82928
|
-
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
82929
|
-
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
82930
|
-
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
82931
|
-
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
82932
|
-
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
82933
|
-
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
82934
|
-
r = Math.min(Math.max(0, r), 1);
|
|
82935
|
-
g = Math.min(Math.max(0, g), 1);
|
|
82936
|
-
b = Math.min(Math.max(0, b), 1);
|
|
82937
|
-
return [r * 255, g * 255, b * 255];
|
|
82938
|
-
};
|
|
82939
|
-
convert.xyz.lab = function(xyz) {
|
|
82940
|
-
let x = xyz[0];
|
|
82941
|
-
let y = xyz[1];
|
|
82942
|
-
let z = xyz[2];
|
|
82943
|
-
x /= 95.047;
|
|
82944
|
-
y /= 100;
|
|
82945
|
-
z /= 108.883;
|
|
82946
|
-
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
82947
|
-
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
82948
|
-
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
82949
|
-
const l = 116 * y - 16;
|
|
82950
|
-
const a = 500 * (x - y);
|
|
82951
|
-
const b = 200 * (y - z);
|
|
82952
|
-
return [l, a, b];
|
|
82953
|
-
};
|
|
82954
|
-
convert.lab.xyz = function(lab) {
|
|
82955
|
-
const l = lab[0];
|
|
82956
|
-
const a = lab[1];
|
|
82957
|
-
const b = lab[2];
|
|
82958
|
-
let x;
|
|
82959
|
-
let y;
|
|
82960
|
-
let z;
|
|
82961
|
-
y = (l + 16) / 116;
|
|
82962
|
-
x = a / 500 + y;
|
|
82963
|
-
z = y - b / 200;
|
|
82964
|
-
const y2 = y ** 3;
|
|
82965
|
-
const x2 = x ** 3;
|
|
82966
|
-
const z2 = z ** 3;
|
|
82967
|
-
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
82968
|
-
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
82969
|
-
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
82970
|
-
x *= 95.047;
|
|
82971
|
-
y *= 100;
|
|
82972
|
-
z *= 108.883;
|
|
82973
|
-
return [x, y, z];
|
|
82974
|
-
};
|
|
82975
|
-
convert.lab.lch = function(lab) {
|
|
82976
|
-
const l = lab[0];
|
|
82977
|
-
const a = lab[1];
|
|
82978
|
-
const b = lab[2];
|
|
82979
|
-
let h;
|
|
82980
|
-
const hr = Math.atan2(b, a);
|
|
82981
|
-
h = hr * 360 / 2 / Math.PI;
|
|
82982
|
-
if (h < 0) {
|
|
82983
|
-
h += 360;
|
|
82984
|
-
}
|
|
82985
|
-
const c = Math.sqrt(a * a + b * b);
|
|
82986
|
-
return [l, c, h];
|
|
82987
|
-
};
|
|
82988
|
-
convert.lch.lab = function(lch) {
|
|
82989
|
-
const l = lch[0];
|
|
82990
|
-
const c = lch[1];
|
|
82991
|
-
const h = lch[2];
|
|
82992
|
-
const hr = h / 360 * 2 * Math.PI;
|
|
82993
|
-
const a = c * Math.cos(hr);
|
|
82994
|
-
const b = c * Math.sin(hr);
|
|
82995
|
-
return [l, a, b];
|
|
82996
|
-
};
|
|
82997
|
-
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
82998
|
-
const [r, g, b] = args;
|
|
82999
|
-
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
83000
|
-
value = Math.round(value / 50);
|
|
83001
|
-
if (value === 0) {
|
|
83002
|
-
return 30;
|
|
83003
|
-
}
|
|
83004
|
-
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
83005
|
-
if (value === 2) {
|
|
83006
|
-
ansi += 60;
|
|
83007
|
-
}
|
|
83008
|
-
return ansi;
|
|
83009
|
-
};
|
|
83010
|
-
convert.hsv.ansi16 = function(args) {
|
|
83011
|
-
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
83012
|
-
};
|
|
83013
|
-
convert.rgb.ansi256 = function(args) {
|
|
83014
|
-
const r = args[0];
|
|
83015
|
-
const g = args[1];
|
|
83016
|
-
const b = args[2];
|
|
83017
|
-
if (r === g && g === b) {
|
|
83018
|
-
if (r < 8) {
|
|
83019
|
-
return 16;
|
|
83020
|
-
}
|
|
83021
|
-
if (r > 248) {
|
|
83022
|
-
return 231;
|
|
83023
|
-
}
|
|
83024
|
-
return Math.round((r - 8) / 247 * 24) + 232;
|
|
83025
|
-
}
|
|
83026
|
-
const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
83027
|
-
return ansi;
|
|
83028
|
-
};
|
|
83029
|
-
convert.ansi16.rgb = function(args) {
|
|
83030
|
-
let color = args % 10;
|
|
83031
|
-
if (color === 0 || color === 7) {
|
|
83032
|
-
if (args > 50) {
|
|
83033
|
-
color += 3.5;
|
|
83034
|
-
}
|
|
83035
|
-
color = color / 10.5 * 255;
|
|
83036
|
-
return [color, color, color];
|
|
83037
|
-
}
|
|
83038
|
-
const mult = (~~(args > 50) + 1) * 0.5;
|
|
83039
|
-
const r = (color & 1) * mult * 255;
|
|
83040
|
-
const g = (color >> 1 & 1) * mult * 255;
|
|
83041
|
-
const b = (color >> 2 & 1) * mult * 255;
|
|
83042
|
-
return [r, g, b];
|
|
83043
|
-
};
|
|
83044
|
-
convert.ansi256.rgb = function(args) {
|
|
83045
|
-
if (args >= 232) {
|
|
83046
|
-
const c = (args - 232) * 10 + 8;
|
|
83047
|
-
return [c, c, c];
|
|
83048
|
-
}
|
|
83049
|
-
args -= 16;
|
|
83050
|
-
let rem;
|
|
83051
|
-
const r = Math.floor(args / 36) / 5 * 255;
|
|
83052
|
-
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
83053
|
-
const b = rem % 6 / 5 * 255;
|
|
83054
|
-
return [r, g, b];
|
|
83055
|
-
};
|
|
83056
|
-
convert.rgb.hex = function(args) {
|
|
83057
|
-
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
83058
|
-
const string = integer.toString(16).toUpperCase();
|
|
83059
|
-
return "000000".substring(string.length) + string;
|
|
83060
|
-
};
|
|
83061
|
-
convert.hex.rgb = function(args) {
|
|
83062
|
-
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
83063
|
-
if (!match) {
|
|
83064
|
-
return [0, 0, 0];
|
|
83065
|
-
}
|
|
83066
|
-
let colorString = match[0];
|
|
83067
|
-
if (match[0].length === 3) {
|
|
83068
|
-
colorString = colorString.split("").map((char) => {
|
|
83069
|
-
return char + char;
|
|
83070
|
-
}).join("");
|
|
83071
|
-
}
|
|
83072
|
-
const integer = parseInt(colorString, 16);
|
|
83073
|
-
const r = integer >> 16 & 255;
|
|
83074
|
-
const g = integer >> 8 & 255;
|
|
83075
|
-
const b = integer & 255;
|
|
83076
|
-
return [r, g, b];
|
|
83077
|
-
};
|
|
83078
|
-
convert.rgb.hcg = function(rgb) {
|
|
83079
|
-
const r = rgb[0] / 255;
|
|
83080
|
-
const g = rgb[1] / 255;
|
|
83081
|
-
const b = rgb[2] / 255;
|
|
83082
|
-
const max = Math.max(Math.max(r, g), b);
|
|
83083
|
-
const min = Math.min(Math.min(r, g), b);
|
|
83084
|
-
const chroma = max - min;
|
|
83085
|
-
let grayscale;
|
|
83086
|
-
let hue;
|
|
83087
|
-
if (chroma < 1) {
|
|
83088
|
-
grayscale = min / (1 - chroma);
|
|
83089
|
-
} else {
|
|
83090
|
-
grayscale = 0;
|
|
83091
|
-
}
|
|
83092
|
-
if (chroma <= 0) {
|
|
83093
|
-
hue = 0;
|
|
83094
|
-
} else if (max === r) {
|
|
83095
|
-
hue = (g - b) / chroma % 6;
|
|
83096
|
-
} else if (max === g) {
|
|
83097
|
-
hue = 2 + (b - r) / chroma;
|
|
83098
|
-
} else {
|
|
83099
|
-
hue = 4 + (r - g) / chroma;
|
|
83100
|
-
}
|
|
83101
|
-
hue /= 6;
|
|
83102
|
-
hue %= 1;
|
|
83103
|
-
return [hue * 360, chroma * 100, grayscale * 100];
|
|
83104
|
-
};
|
|
83105
|
-
convert.hsl.hcg = function(hsl) {
|
|
83106
|
-
const s = hsl[1] / 100;
|
|
83107
|
-
const l = hsl[2] / 100;
|
|
83108
|
-
const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
|
|
83109
|
-
let f = 0;
|
|
83110
|
-
if (c < 1) {
|
|
83111
|
-
f = (l - 0.5 * c) / (1 - c);
|
|
83112
|
-
}
|
|
83113
|
-
return [hsl[0], c * 100, f * 100];
|
|
83114
|
-
};
|
|
83115
|
-
convert.hsv.hcg = function(hsv) {
|
|
83116
|
-
const s = hsv[1] / 100;
|
|
83117
|
-
const v = hsv[2] / 100;
|
|
83118
|
-
const c = s * v;
|
|
83119
|
-
let f = 0;
|
|
83120
|
-
if (c < 1) {
|
|
83121
|
-
f = (v - c) / (1 - c);
|
|
83122
|
-
}
|
|
83123
|
-
return [hsv[0], c * 100, f * 100];
|
|
83124
|
-
};
|
|
83125
|
-
convert.hcg.rgb = function(hcg) {
|
|
83126
|
-
const h = hcg[0] / 360;
|
|
83127
|
-
const c = hcg[1] / 100;
|
|
83128
|
-
const g = hcg[2] / 100;
|
|
83129
|
-
if (c === 0) {
|
|
83130
|
-
return [g * 255, g * 255, g * 255];
|
|
83131
|
-
}
|
|
83132
|
-
const pure = [0, 0, 0];
|
|
83133
|
-
const hi = h % 1 * 6;
|
|
83134
|
-
const v = hi % 1;
|
|
83135
|
-
const w = 1 - v;
|
|
83136
|
-
let mg = 0;
|
|
83137
|
-
switch (Math.floor(hi)) {
|
|
83138
|
-
case 0:
|
|
83139
|
-
pure[0] = 1;
|
|
83140
|
-
pure[1] = v;
|
|
83141
|
-
pure[2] = 0;
|
|
83142
|
-
break;
|
|
83143
|
-
case 1:
|
|
83144
|
-
pure[0] = w;
|
|
83145
|
-
pure[1] = 1;
|
|
83146
|
-
pure[2] = 0;
|
|
83147
|
-
break;
|
|
83148
|
-
case 2:
|
|
83149
|
-
pure[0] = 0;
|
|
83150
|
-
pure[1] = 1;
|
|
83151
|
-
pure[2] = v;
|
|
83152
|
-
break;
|
|
83153
|
-
case 3:
|
|
83154
|
-
pure[0] = 0;
|
|
83155
|
-
pure[1] = w;
|
|
83156
|
-
pure[2] = 1;
|
|
83157
|
-
break;
|
|
83158
|
-
case 4:
|
|
83159
|
-
pure[0] = v;
|
|
83160
|
-
pure[1] = 0;
|
|
83161
|
-
pure[2] = 1;
|
|
83162
|
-
break;
|
|
83163
|
-
default:
|
|
83164
|
-
pure[0] = 1;
|
|
83165
|
-
pure[1] = 0;
|
|
83166
|
-
pure[2] = w;
|
|
83167
|
-
}
|
|
83168
|
-
mg = (1 - c) * g;
|
|
83169
|
-
return [
|
|
83170
|
-
(c * pure[0] + mg) * 255,
|
|
83171
|
-
(c * pure[1] + mg) * 255,
|
|
83172
|
-
(c * pure[2] + mg) * 255
|
|
83173
|
-
];
|
|
83174
|
-
};
|
|
83175
|
-
convert.hcg.hsv = function(hcg) {
|
|
83176
|
-
const c = hcg[1] / 100;
|
|
83177
|
-
const g = hcg[2] / 100;
|
|
83178
|
-
const v = c + g * (1 - c);
|
|
83179
|
-
let f = 0;
|
|
83180
|
-
if (v > 0) {
|
|
83181
|
-
f = c / v;
|
|
83182
|
-
}
|
|
83183
|
-
return [hcg[0], f * 100, v * 100];
|
|
83184
|
-
};
|
|
83185
|
-
convert.hcg.hsl = function(hcg) {
|
|
83186
|
-
const c = hcg[1] / 100;
|
|
83187
|
-
const g = hcg[2] / 100;
|
|
83188
|
-
const l = g * (1 - c) + 0.5 * c;
|
|
83189
|
-
let s = 0;
|
|
83190
|
-
if (l > 0 && l < 0.5) {
|
|
83191
|
-
s = c / (2 * l);
|
|
83192
|
-
} else if (l >= 0.5 && l < 1) {
|
|
83193
|
-
s = c / (2 * (1 - l));
|
|
83194
|
-
}
|
|
83195
|
-
return [hcg[0], s * 100, l * 100];
|
|
83196
|
-
};
|
|
83197
|
-
convert.hcg.hwb = function(hcg) {
|
|
83198
|
-
const c = hcg[1] / 100;
|
|
83199
|
-
const g = hcg[2] / 100;
|
|
83200
|
-
const v = c + g * (1 - c);
|
|
83201
|
-
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
|
83202
|
-
};
|
|
83203
|
-
convert.hwb.hcg = function(hwb) {
|
|
83204
|
-
const w = hwb[1] / 100;
|
|
83205
|
-
const b = hwb[2] / 100;
|
|
83206
|
-
const v = 1 - b;
|
|
83207
|
-
const c = v - w;
|
|
83208
|
-
let g = 0;
|
|
83209
|
-
if (c < 1) {
|
|
83210
|
-
g = (v - c) / (1 - c);
|
|
83211
|
-
}
|
|
83212
|
-
return [hwb[0], c * 100, g * 100];
|
|
83213
|
-
};
|
|
83214
|
-
convert.apple.rgb = function(apple) {
|
|
83215
|
-
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
83216
|
-
};
|
|
83217
|
-
convert.rgb.apple = function(rgb) {
|
|
83218
|
-
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
|
83219
|
-
};
|
|
83220
|
-
convert.gray.rgb = function(args) {
|
|
83221
|
-
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
|
83222
|
-
};
|
|
83223
|
-
convert.gray.hsl = function(args) {
|
|
83224
|
-
return [0, 0, args[0]];
|
|
83225
|
-
};
|
|
83226
|
-
convert.gray.hsv = convert.gray.hsl;
|
|
83227
|
-
convert.gray.hwb = function(gray) {
|
|
83228
|
-
return [0, 100, gray[0]];
|
|
83229
|
-
};
|
|
83230
|
-
convert.gray.cmyk = function(gray) {
|
|
83231
|
-
return [0, 0, 0, gray[0]];
|
|
83232
|
-
};
|
|
83233
|
-
convert.gray.lab = function(gray) {
|
|
83234
|
-
return [gray[0], 0, 0];
|
|
83235
|
-
};
|
|
83236
|
-
convert.gray.hex = function(gray) {
|
|
83237
|
-
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
83238
|
-
const integer = (val << 16) + (val << 8) + val;
|
|
83239
|
-
const string = integer.toString(16).toUpperCase();
|
|
83240
|
-
return "000000".substring(string.length) + string;
|
|
83241
|
-
};
|
|
83242
|
-
convert.rgb.gray = function(rgb) {
|
|
83243
|
-
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
83244
|
-
return [val / 255 * 100];
|
|
83245
|
-
};
|
|
83246
|
-
});
|
|
83247
|
-
var require_route = __commonJSMin((exports, module2) => {
|
|
83248
|
-
var conversions = require_conversions();
|
|
83249
|
-
function buildGraph() {
|
|
83250
|
-
const graph = {};
|
|
83251
|
-
const models = Object.keys(conversions);
|
|
83252
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
83253
|
-
graph[models[i]] = {
|
|
83254
|
-
distance: -1,
|
|
83255
|
-
parent: null
|
|
83256
|
-
};
|
|
83257
|
-
}
|
|
83258
|
-
return graph;
|
|
83259
|
-
}
|
|
83260
|
-
function deriveBFS(fromModel) {
|
|
83261
|
-
const graph = buildGraph();
|
|
83262
|
-
const queue = [fromModel];
|
|
83263
|
-
graph[fromModel].distance = 0;
|
|
83264
|
-
while (queue.length) {
|
|
83265
|
-
const current = queue.pop();
|
|
83266
|
-
const adjacents = Object.keys(conversions[current]);
|
|
83267
|
-
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
83268
|
-
const adjacent = adjacents[i];
|
|
83269
|
-
const node = graph[adjacent];
|
|
83270
|
-
if (node.distance === -1) {
|
|
83271
|
-
node.distance = graph[current].distance + 1;
|
|
83272
|
-
node.parent = current;
|
|
83273
|
-
queue.unshift(adjacent);
|
|
83274
|
-
}
|
|
83275
|
-
}
|
|
83276
|
-
}
|
|
83277
|
-
return graph;
|
|
83278
|
-
}
|
|
83279
|
-
function link(from, to) {
|
|
83280
|
-
return function(args) {
|
|
83281
|
-
return to(from(args));
|
|
83282
|
-
};
|
|
83283
|
-
}
|
|
83284
|
-
function wrapConversion(toModel, graph) {
|
|
83285
|
-
const path6 = [graph[toModel].parent, toModel];
|
|
83286
|
-
let fn = conversions[graph[toModel].parent][toModel];
|
|
83287
|
-
let cur = graph[toModel].parent;
|
|
83288
|
-
while (graph[cur].parent) {
|
|
83289
|
-
path6.unshift(graph[cur].parent);
|
|
83290
|
-
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
83291
|
-
cur = graph[cur].parent;
|
|
83292
|
-
}
|
|
83293
|
-
fn.conversion = path6;
|
|
83294
|
-
return fn;
|
|
83295
|
-
}
|
|
83296
|
-
module2.exports = function(fromModel) {
|
|
83297
|
-
const graph = deriveBFS(fromModel);
|
|
83298
|
-
const conversion = {};
|
|
83299
|
-
const models = Object.keys(graph);
|
|
83300
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
83301
|
-
const toModel = models[i];
|
|
83302
|
-
const node = graph[toModel];
|
|
83303
|
-
if (node.parent === null) {
|
|
83304
|
-
continue;
|
|
83305
|
-
}
|
|
83306
|
-
conversion[toModel] = wrapConversion(toModel, graph);
|
|
83307
|
-
}
|
|
83308
|
-
return conversion;
|
|
83309
|
-
};
|
|
83310
|
-
});
|
|
83311
|
-
var require_color_convert = __commonJSMin((exports, module2) => {
|
|
83312
|
-
var conversions = require_conversions();
|
|
83313
|
-
var route = require_route();
|
|
83314
|
-
var convert = {};
|
|
83315
|
-
var models = Object.keys(conversions);
|
|
83316
|
-
function wrapRaw(fn) {
|
|
83317
|
-
const wrappedFn = function(...args) {
|
|
83318
|
-
const arg0 = args[0];
|
|
83319
|
-
if (arg0 === void 0 || arg0 === null) {
|
|
83320
|
-
return arg0;
|
|
83321
|
-
}
|
|
83322
|
-
if (arg0.length > 1) {
|
|
83323
|
-
args = arg0;
|
|
83324
|
-
}
|
|
83325
|
-
return fn(args);
|
|
83326
|
-
};
|
|
83327
|
-
if ("conversion" in fn) {
|
|
83328
|
-
wrappedFn.conversion = fn.conversion;
|
|
83329
|
-
}
|
|
83330
|
-
return wrappedFn;
|
|
83331
|
-
}
|
|
83332
|
-
function wrapRounded(fn) {
|
|
83333
|
-
const wrappedFn = function(...args) {
|
|
83334
|
-
const arg0 = args[0];
|
|
83335
|
-
if (arg0 === void 0 || arg0 === null) {
|
|
83336
|
-
return arg0;
|
|
83337
|
-
}
|
|
83338
|
-
if (arg0.length > 1) {
|
|
83339
|
-
args = arg0;
|
|
83340
|
-
}
|
|
83341
|
-
const result = fn(args);
|
|
83342
|
-
if (typeof result === "object") {
|
|
83343
|
-
for (let len = result.length, i = 0; i < len; i++) {
|
|
83344
|
-
result[i] = Math.round(result[i]);
|
|
83345
|
-
}
|
|
83346
|
-
}
|
|
83347
|
-
return result;
|
|
83348
|
-
};
|
|
83349
|
-
if ("conversion" in fn) {
|
|
83350
|
-
wrappedFn.conversion = fn.conversion;
|
|
83351
|
-
}
|
|
83352
|
-
return wrappedFn;
|
|
83353
|
-
}
|
|
83354
|
-
models.forEach((fromModel) => {
|
|
83355
|
-
convert[fromModel] = {};
|
|
83356
|
-
Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
|
|
83357
|
-
Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
|
|
83358
|
-
const routes = route(fromModel);
|
|
83359
|
-
const routeModels = Object.keys(routes);
|
|
83360
|
-
routeModels.forEach((toModel) => {
|
|
83361
|
-
const fn = routes[toModel];
|
|
83362
|
-
convert[fromModel][toModel] = wrapRounded(fn);
|
|
83363
|
-
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
83364
|
-
});
|
|
83365
|
-
});
|
|
83366
|
-
module2.exports = convert;
|
|
83367
|
-
});
|
|
83368
|
-
var require_ansi_styles = __commonJSMin((exports, module2) => {
|
|
83369
|
-
"use strict";
|
|
83370
|
-
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
83371
|
-
const code = fn(...args);
|
|
83372
|
-
return `\x1B[${code + offset}m`;
|
|
83373
|
-
};
|
|
83374
|
-
var wrapAnsi256 = (fn, offset) => (...args) => {
|
|
83375
|
-
const code = fn(...args);
|
|
83376
|
-
return `\x1B[${38 + offset};5;${code}m`;
|
|
83377
|
-
};
|
|
83378
|
-
var wrapAnsi16m = (fn, offset) => (...args) => {
|
|
83379
|
-
const rgb = fn(...args);
|
|
83380
|
-
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
83381
|
-
};
|
|
83382
|
-
var ansi2ansi = (n) => n;
|
|
83383
|
-
var rgb2rgb = (r, g, b) => [r, g, b];
|
|
83384
|
-
var setLazyProperty = (object, property, get4) => {
|
|
83385
|
-
Object.defineProperty(object, property, {
|
|
83386
|
-
get: () => {
|
|
83387
|
-
const value = get4();
|
|
83388
|
-
Object.defineProperty(object, property, {
|
|
83389
|
-
value,
|
|
83390
|
-
enumerable: true,
|
|
83391
|
-
configurable: true
|
|
83392
|
-
});
|
|
83393
|
-
return value;
|
|
83394
|
-
},
|
|
83395
|
-
enumerable: true,
|
|
83396
|
-
configurable: true
|
|
83397
|
-
});
|
|
83398
|
-
};
|
|
83399
|
-
var colorConvert;
|
|
83400
|
-
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
83401
|
-
if (colorConvert === void 0) {
|
|
83402
|
-
colorConvert = require_color_convert();
|
|
83403
|
-
}
|
|
83404
|
-
const offset = isBackground ? 10 : 0;
|
|
83405
|
-
const styles = {};
|
|
83406
|
-
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
83407
|
-
const name5 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
83408
|
-
if (sourceSpace === targetSpace) {
|
|
83409
|
-
styles[name5] = wrap(identity, offset);
|
|
83410
|
-
} else if (typeof suite === "object") {
|
|
83411
|
-
styles[name5] = wrap(suite[targetSpace], offset);
|
|
83412
|
-
}
|
|
83413
|
-
}
|
|
83414
|
-
return styles;
|
|
83415
|
-
};
|
|
83416
|
-
function assembleStyles() {
|
|
83417
|
-
const codes = /* @__PURE__ */ new Map();
|
|
83418
|
-
const styles = {
|
|
83419
|
-
modifier: {
|
|
83420
|
-
reset: [0, 0],
|
|
83421
|
-
bold: [1, 22],
|
|
83422
|
-
dim: [2, 22],
|
|
83423
|
-
italic: [3, 23],
|
|
83424
|
-
underline: [4, 24],
|
|
83425
|
-
inverse: [7, 27],
|
|
83426
|
-
hidden: [8, 28],
|
|
83427
|
-
strikethrough: [9, 29]
|
|
83428
|
-
},
|
|
83429
|
-
color: {
|
|
83430
|
-
black: [30, 39],
|
|
83431
|
-
red: [31, 39],
|
|
83432
|
-
green: [32, 39],
|
|
83433
|
-
yellow: [33, 39],
|
|
83434
|
-
blue: [34, 39],
|
|
83435
|
-
magenta: [35, 39],
|
|
83436
|
-
cyan: [36, 39],
|
|
83437
|
-
white: [37, 39],
|
|
83438
|
-
blackBright: [90, 39],
|
|
83439
|
-
redBright: [91, 39],
|
|
83440
|
-
greenBright: [92, 39],
|
|
83441
|
-
yellowBright: [93, 39],
|
|
83442
|
-
blueBright: [94, 39],
|
|
83443
|
-
magentaBright: [95, 39],
|
|
83444
|
-
cyanBright: [96, 39],
|
|
83445
|
-
whiteBright: [97, 39]
|
|
83446
|
-
},
|
|
83447
|
-
bgColor: {
|
|
83448
|
-
bgBlack: [40, 49],
|
|
83449
|
-
bgRed: [41, 49],
|
|
83450
|
-
bgGreen: [42, 49],
|
|
83451
|
-
bgYellow: [43, 49],
|
|
83452
|
-
bgBlue: [44, 49],
|
|
83453
|
-
bgMagenta: [45, 49],
|
|
83454
|
-
bgCyan: [46, 49],
|
|
83455
|
-
bgWhite: [47, 49],
|
|
83456
|
-
bgBlackBright: [100, 49],
|
|
83457
|
-
bgRedBright: [101, 49],
|
|
83458
|
-
bgGreenBright: [102, 49],
|
|
83459
|
-
bgYellowBright: [103, 49],
|
|
83460
|
-
bgBlueBright: [104, 49],
|
|
83461
|
-
bgMagentaBright: [105, 49],
|
|
83462
|
-
bgCyanBright: [106, 49],
|
|
83463
|
-
bgWhiteBright: [107, 49]
|
|
83464
|
-
}
|
|
83465
|
-
};
|
|
83466
|
-
styles.color.gray = styles.color.blackBright;
|
|
83467
|
-
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
83468
|
-
styles.color.grey = styles.color.blackBright;
|
|
83469
|
-
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
83470
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
83471
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
83472
|
-
styles[styleName] = {
|
|
83473
|
-
open: `\x1B[${style[0]}m`,
|
|
83474
|
-
close: `\x1B[${style[1]}m`
|
|
83475
|
-
};
|
|
83476
|
-
group[styleName] = styles[styleName];
|
|
83477
|
-
codes.set(style[0], style[1]);
|
|
83478
|
-
}
|
|
83479
|
-
Object.defineProperty(styles, groupName, {
|
|
83480
|
-
value: group,
|
|
83481
|
-
enumerable: false
|
|
83482
|
-
});
|
|
83483
|
-
}
|
|
83484
|
-
Object.defineProperty(styles, "codes", {
|
|
83485
|
-
value: codes,
|
|
83486
|
-
enumerable: false
|
|
83487
|
-
});
|
|
83488
|
-
styles.color.close = "\x1B[39m";
|
|
83489
|
-
styles.bgColor.close = "\x1B[49m";
|
|
83490
|
-
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
83491
|
-
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
83492
|
-
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
83493
|
-
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
83494
|
-
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
83495
|
-
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
83496
|
-
return styles;
|
|
83497
|
-
}
|
|
83498
|
-
Object.defineProperty(module2, "exports", {
|
|
83499
|
-
enumerable: true,
|
|
83500
|
-
get: assembleStyles
|
|
83501
|
-
});
|
|
83502
|
-
});
|
|
83503
|
-
var require_wrap_ansi = __commonJSMin((exports, module2) => {
|
|
83504
|
-
"use strict";
|
|
83505
|
-
var stringWidth = require_string_width();
|
|
83506
|
-
var stripAnsi2 = require_strip_ansi2();
|
|
83507
|
-
var ansiStyles = require_ansi_styles();
|
|
83508
|
-
var ESCAPES = /* @__PURE__ */ new Set([
|
|
83509
|
-
"\x1B",
|
|
83510
|
-
"\x9B"
|
|
83511
|
-
]);
|
|
83512
|
-
var END_CODE = 39;
|
|
83513
|
-
var ANSI_ESCAPE_BELL = "\x07";
|
|
83514
|
-
var ANSI_CSI = "[";
|
|
83515
|
-
var ANSI_OSC = "]";
|
|
83516
|
-
var ANSI_SGR_TERMINATOR = "m";
|
|
83517
|
-
var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
83518
|
-
var wrapAnsi = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
83519
|
-
var wrapAnsiHyperlink = (uri) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`;
|
|
83520
|
-
var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
|
|
83521
|
-
var wrapWord = (rows, word, columns) => {
|
|
83522
|
-
const characters = [...word];
|
|
83523
|
-
let isInsideEscape = false;
|
|
83524
|
-
let isInsideLinkEscape = false;
|
|
83525
|
-
let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
|
|
83526
|
-
for (const [index, character] of characters.entries()) {
|
|
83527
|
-
const characterLength = stringWidth(character);
|
|
83528
|
-
if (visible + characterLength <= columns) {
|
|
83529
|
-
rows[rows.length - 1] += character;
|
|
83530
|
-
} else {
|
|
83531
|
-
rows.push(character);
|
|
83532
|
-
visible = 0;
|
|
83533
|
-
}
|
|
83534
|
-
if (ESCAPES.has(character)) {
|
|
83535
|
-
isInsideEscape = true;
|
|
83536
|
-
isInsideLinkEscape = characters.slice(index + 1).join("").startsWith(ANSI_ESCAPE_LINK);
|
|
83537
|
-
}
|
|
83538
|
-
if (isInsideEscape) {
|
|
83539
|
-
if (isInsideLinkEscape) {
|
|
83540
|
-
if (character === ANSI_ESCAPE_BELL) {
|
|
83541
|
-
isInsideEscape = false;
|
|
83542
|
-
isInsideLinkEscape = false;
|
|
83543
|
-
}
|
|
83544
|
-
} else if (character === ANSI_SGR_TERMINATOR) {
|
|
83545
|
-
isInsideEscape = false;
|
|
83546
|
-
}
|
|
83547
|
-
continue;
|
|
83548
|
-
}
|
|
83549
|
-
visible += characterLength;
|
|
83550
|
-
if (visible === columns && index < characters.length - 1) {
|
|
83551
|
-
rows.push("");
|
|
83552
|
-
visible = 0;
|
|
83553
|
-
}
|
|
83554
|
-
}
|
|
83555
|
-
if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
|
|
83556
|
-
rows[rows.length - 2] += rows.pop();
|
|
83557
|
-
}
|
|
83558
|
-
};
|
|
83559
|
-
var stringVisibleTrimSpacesRight = (string) => {
|
|
83560
|
-
const words = string.split(" ");
|
|
83561
|
-
let last = words.length;
|
|
83562
|
-
while (last > 0) {
|
|
83563
|
-
if (stringWidth(words[last - 1]) > 0) {
|
|
83564
|
-
break;
|
|
83565
|
-
}
|
|
83566
|
-
last--;
|
|
83567
|
-
}
|
|
83568
|
-
if (last === words.length) {
|
|
83569
|
-
return string;
|
|
83570
|
-
}
|
|
83571
|
-
return words.slice(0, last).join(" ") + words.slice(last).join("");
|
|
83572
|
-
};
|
|
83573
|
-
var exec = (string, columns, options3 = {}) => {
|
|
83574
|
-
if (options3.trim !== false && string.trim() === "") {
|
|
83575
|
-
return "";
|
|
83576
|
-
}
|
|
83577
|
-
let returnValue = "";
|
|
83578
|
-
let escapeCode;
|
|
83579
|
-
let escapeUrl;
|
|
83580
|
-
const lengths = wordLengths(string);
|
|
83581
|
-
let rows = [""];
|
|
83582
|
-
for (const [index, word] of string.split(" ").entries()) {
|
|
83583
|
-
if (options3.trim !== false) {
|
|
83584
|
-
rows[rows.length - 1] = rows[rows.length - 1].trimStart();
|
|
83585
|
-
}
|
|
83586
|
-
let rowLength = stringWidth(rows[rows.length - 1]);
|
|
83587
|
-
if (index !== 0) {
|
|
83588
|
-
if (rowLength >= columns && (options3.wordWrap === false || options3.trim === false)) {
|
|
83589
|
-
rows.push("");
|
|
83590
|
-
rowLength = 0;
|
|
83591
|
-
}
|
|
83592
|
-
if (rowLength > 0 || options3.trim === false) {
|
|
83593
|
-
rows[rows.length - 1] += " ";
|
|
83594
|
-
rowLength++;
|
|
83595
|
-
}
|
|
83596
|
-
}
|
|
83597
|
-
if (options3.hard && lengths[index] > columns) {
|
|
83598
|
-
const remainingColumns = columns - rowLength;
|
|
83599
|
-
const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
|
|
83600
|
-
const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
|
|
83601
|
-
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
83602
|
-
rows.push("");
|
|
83603
|
-
}
|
|
83604
|
-
wrapWord(rows, word, columns);
|
|
83605
|
-
continue;
|
|
83606
|
-
}
|
|
83607
|
-
if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
|
|
83608
|
-
if (options3.wordWrap === false && rowLength < columns) {
|
|
83609
|
-
wrapWord(rows, word, columns);
|
|
83610
|
-
continue;
|
|
83611
|
-
}
|
|
83612
|
-
rows.push("");
|
|
83613
|
-
}
|
|
83614
|
-
if (rowLength + lengths[index] > columns && options3.wordWrap === false) {
|
|
83615
|
-
wrapWord(rows, word, columns);
|
|
83616
|
-
continue;
|
|
83617
|
-
}
|
|
83618
|
-
rows[rows.length - 1] += word;
|
|
83619
|
-
}
|
|
83620
|
-
if (options3.trim !== false) {
|
|
83621
|
-
rows = rows.map(stringVisibleTrimSpacesRight);
|
|
83622
|
-
}
|
|
83623
|
-
const pre = [...rows.join("\n")];
|
|
83624
|
-
for (const [index, character] of pre.entries()) {
|
|
83625
|
-
returnValue += character;
|
|
83626
|
-
if (ESCAPES.has(character)) {
|
|
83627
|
-
const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join("")) || { groups: {} };
|
|
83628
|
-
if (groups.code !== void 0) {
|
|
83629
|
-
const code2 = Number.parseFloat(groups.code);
|
|
83630
|
-
escapeCode = code2 === END_CODE ? void 0 : code2;
|
|
83631
|
-
} else if (groups.uri !== void 0) {
|
|
83632
|
-
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
83633
|
-
}
|
|
83634
|
-
}
|
|
83635
|
-
const code = ansiStyles.codes.get(Number(escapeCode));
|
|
83636
|
-
if (pre[index + 1] === "\n") {
|
|
83637
|
-
if (escapeUrl) {
|
|
83638
|
-
returnValue += wrapAnsiHyperlink("");
|
|
83639
|
-
}
|
|
83640
|
-
if (escapeCode && code) {
|
|
83641
|
-
returnValue += wrapAnsi(code);
|
|
83642
|
-
}
|
|
83643
|
-
} else if (character === "\n") {
|
|
83644
|
-
if (escapeCode && code) {
|
|
83645
|
-
returnValue += wrapAnsi(escapeCode);
|
|
83646
|
-
}
|
|
83647
|
-
if (escapeUrl) {
|
|
83648
|
-
returnValue += wrapAnsiHyperlink(escapeUrl);
|
|
83649
|
-
}
|
|
83650
|
-
}
|
|
83651
|
-
}
|
|
83652
|
-
return returnValue;
|
|
83653
|
-
};
|
|
83654
|
-
module2.exports = (string, columns, options3) => {
|
|
83655
|
-
return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line3) => exec(line3, columns, options3)).join("\n");
|
|
83656
|
-
};
|
|
83657
|
-
});
|
|
83658
82173
|
var spinners_exports = {};
|
|
83659
82174
|
__export2(spinners_exports, {
|
|
83660
82175
|
aesthetic: () => aesthetic,
|
|
@@ -83681,7 +82196,6 @@ __export2(spinners_exports, {
|
|
|
83681
82196
|
dots10: () => dots10,
|
|
83682
82197
|
dots11: () => dots11,
|
|
83683
82198
|
dots12: () => dots12,
|
|
83684
|
-
dots13: () => dots13,
|
|
83685
82199
|
dots2: () => dots2,
|
|
83686
82200
|
dots3: () => dots3,
|
|
83687
82201
|
dots4: () => dots4,
|
|
@@ -83715,7 +82229,6 @@ __export2(spinners_exports, {
|
|
|
83715
82229
|
point: () => point,
|
|
83716
82230
|
pong: () => pong,
|
|
83717
82231
|
runner: () => runner,
|
|
83718
|
-
sand: () => sand,
|
|
83719
82232
|
shark: () => shark,
|
|
83720
82233
|
simpleDots: () => simpleDots,
|
|
83721
82234
|
simpleDotsScrolling: () => simpleDotsScrolling,
|
|
@@ -83743,7 +82256,7 @@ __export2(spinners_exports, {
|
|
|
83743
82256
|
triangle: () => triangle,
|
|
83744
82257
|
weather: () => weather
|
|
83745
82258
|
});
|
|
83746
|
-
var dots, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots9, dots10, dots11, dots12,
|
|
82259
|
+
var dots, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots9, dots10, dots11, dots12, dots8Bit, line, line2, pipe, simpleDots, simpleDotsScrolling, star, star2, flip, hamburger, growVertical, growHorizontal, balloon, balloon2, noise, bounce, boxBounce, boxBounce2, triangle, arc, circle, squareCorners, circleQuarters, circleHalves, squish, toggle, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, toggle10, toggle11, toggle12, toggle13, arrow, arrow2, arrow3, bouncingBar, bouncingBall, smiley, monkey, hearts, clock, earth, material, moon, runner, pong, shark, dqpb, weather, christmas, grenade, point, layer, betaWave, fingerDance, fistBump, soccerHeader, mindblown, speaker, orangePulse, bluePulse, orangeBluePulse, timeTravel, aesthetic, spinners_default;
|
|
83747
82260
|
var init_spinners = __esmMin(() => {
|
|
83748
82261
|
dots = {
|
|
83749
82262
|
interval: 80,
|
|
@@ -84020,19 +82533,6 @@ var init_spinners = __esmMin(() => {
|
|
|
84020
82533
|
"\u2800\u2840"
|
|
84021
82534
|
]
|
|
84022
82535
|
};
|
|
84023
|
-
dots13 = {
|
|
84024
|
-
interval: 80,
|
|
84025
|
-
frames: [
|
|
84026
|
-
"\u28FC",
|
|
84027
|
-
"\u28F9",
|
|
84028
|
-
"\u28BB",
|
|
84029
|
-
"\u283F",
|
|
84030
|
-
"\u285F",
|
|
84031
|
-
"\u28CF",
|
|
84032
|
-
"\u28E7",
|
|
84033
|
-
"\u28F6"
|
|
84034
|
-
]
|
|
84035
|
-
};
|
|
84036
82536
|
dots8Bit = {
|
|
84037
82537
|
interval: 80,
|
|
84038
82538
|
frames: [
|
|
@@ -84294,46 +82794,6 @@ var init_spinners = __esmMin(() => {
|
|
|
84294
82794
|
"\u28FF"
|
|
84295
82795
|
]
|
|
84296
82796
|
};
|
|
84297
|
-
sand = {
|
|
84298
|
-
interval: 80,
|
|
84299
|
-
frames: [
|
|
84300
|
-
"\u2801",
|
|
84301
|
-
"\u2802",
|
|
84302
|
-
"\u2804",
|
|
84303
|
-
"\u2840",
|
|
84304
|
-
"\u2848",
|
|
84305
|
-
"\u2850",
|
|
84306
|
-
"\u2860",
|
|
84307
|
-
"\u28C0",
|
|
84308
|
-
"\u28C1",
|
|
84309
|
-
"\u28C2",
|
|
84310
|
-
"\u28C4",
|
|
84311
|
-
"\u28CC",
|
|
84312
|
-
"\u28D4",
|
|
84313
|
-
"\u28E4",
|
|
84314
|
-
"\u28E5",
|
|
84315
|
-
"\u28E6",
|
|
84316
|
-
"\u28EE",
|
|
84317
|
-
"\u28F6",
|
|
84318
|
-
"\u28F7",
|
|
84319
|
-
"\u28FF",
|
|
84320
|
-
"\u287F",
|
|
84321
|
-
"\u283F",
|
|
84322
|
-
"\u289F",
|
|
84323
|
-
"\u281F",
|
|
84324
|
-
"\u285B",
|
|
84325
|
-
"\u281B",
|
|
84326
|
-
"\u282B",
|
|
84327
|
-
"\u288B",
|
|
84328
|
-
"\u280B",
|
|
84329
|
-
"\u280D",
|
|
84330
|
-
"\u2849",
|
|
84331
|
-
"\u2809",
|
|
84332
|
-
"\u2811",
|
|
84333
|
-
"\u2821",
|
|
84334
|
-
"\u2881"
|
|
84335
|
-
]
|
|
84336
|
-
};
|
|
84337
82797
|
line = {
|
|
84338
82798
|
interval: 130,
|
|
84339
82799
|
frames: [
|
|
@@ -85224,9 +83684,7 @@ var init_spinners = __esmMin(() => {
|
|
|
85224
83684
|
dots10,
|
|
85225
83685
|
dots11,
|
|
85226
83686
|
dots12,
|
|
85227
|
-
dots13,
|
|
85228
83687
|
dots8Bit,
|
|
85229
|
-
sand,
|
|
85230
83688
|
line,
|
|
85231
83689
|
line2,
|
|
85232
83690
|
pipe,
|
|
@@ -89139,7 +87597,6 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
89139
87597
|
"use strict";
|
|
89140
87598
|
var util = require_readline();
|
|
89141
87599
|
var cliWidth = require_cli_width();
|
|
89142
|
-
var wrapAnsi = require_wrap_ansi();
|
|
89143
87600
|
var stripAnsi2 = require_strip_ansi2();
|
|
89144
87601
|
var stringWidth = require_string_width();
|
|
89145
87602
|
var ora = require_ora2();
|
|
@@ -89234,7 +87691,12 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
89234
87691
|
return width;
|
|
89235
87692
|
}
|
|
89236
87693
|
breakLines(lines, width = this.normalizedCliWidth()) {
|
|
89237
|
-
|
|
87694
|
+
const regex2 = new RegExp(`(?:(?:\\033[[0-9;]*m)*.?){1,${width}}`, "g");
|
|
87695
|
+
return lines.map((line3) => {
|
|
87696
|
+
const chunk = line3.match(regex2);
|
|
87697
|
+
chunk.pop();
|
|
87698
|
+
return chunk || "";
|
|
87699
|
+
});
|
|
89238
87700
|
}
|
|
89239
87701
|
forceLineReturn(content, width = this.normalizedCliWidth()) {
|
|
89240
87702
|
return this.breakLines(content.split("\n"), width).flat().join("\n");
|
|
@@ -89605,7 +88067,7 @@ var require_input = __commonJSMin((exports, module2) => {
|
|
|
89605
88067
|
this.render(isValid5);
|
|
89606
88068
|
}
|
|
89607
88069
|
onKeypress() {
|
|
89608
|
-
this.
|
|
88070
|
+
this.state = "touched";
|
|
89609
88071
|
this.render();
|
|
89610
88072
|
}
|
|
89611
88073
|
};
|
|
@@ -89618,7 +88080,7 @@ var require_number = __commonJSMin((exports, module2) => {
|
|
|
89618
88080
|
filterInput(input) {
|
|
89619
88081
|
if (input && typeof input === "string") {
|
|
89620
88082
|
input = input.trim();
|
|
89621
|
-
const numberMatch = input.match(/(^-?\d
|
|
88083
|
+
const numberMatch = input.match(/(^-?\d+|^\d+\.\d*|^\d*\.\d+)(e\d+)?$/);
|
|
89622
88084
|
if (numberMatch) {
|
|
89623
88085
|
return Number(numberMatch[0]);
|
|
89624
88086
|
}
|
|
@@ -143336,7 +141798,6 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
143336
141798
|
return target;
|
|
143337
141799
|
}
|
|
143338
141800
|
function _defineProperty2(obj, key, value) {
|
|
143339
|
-
key = _toPropertyKey2(key);
|
|
143340
141801
|
if (key in obj) {
|
|
143341
141802
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
143342
141803
|
} else {
|
|
@@ -143344,22 +141805,6 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
143344
141805
|
}
|
|
143345
141806
|
return obj;
|
|
143346
141807
|
}
|
|
143347
|
-
function _toPropertyKey2(arg) {
|
|
143348
|
-
var key = _toPrimitive2(arg, "string");
|
|
143349
|
-
return typeof key === "symbol" ? key : String(key);
|
|
143350
|
-
}
|
|
143351
|
-
function _toPrimitive2(input, hint) {
|
|
143352
|
-
if (typeof input !== "object" || input === null)
|
|
143353
|
-
return input;
|
|
143354
|
-
var prim = input[Symbol.toPrimitive];
|
|
143355
|
-
if (prim !== void 0) {
|
|
143356
|
-
var res = prim.call(input, hint || "default");
|
|
143357
|
-
if (typeof res !== "object")
|
|
143358
|
-
return res;
|
|
143359
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
143360
|
-
}
|
|
143361
|
-
return (hint === "string" ? String : Number)(input);
|
|
143362
|
-
}
|
|
143363
141808
|
var MWANewAction2 = async (options3) => {
|
|
143364
141809
|
const {
|
|
143365
141810
|
locale = "zh",
|
|
@@ -143481,7 +141926,6 @@ var require_module = __commonJSMin((exports) => {
|
|
|
143481
141926
|
return target;
|
|
143482
141927
|
}
|
|
143483
141928
|
function _defineProperty2(obj, key, value) {
|
|
143484
|
-
key = _toPropertyKey2(key);
|
|
143485
141929
|
if (key in obj) {
|
|
143486
141930
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
143487
141931
|
} else {
|
|
@@ -143489,22 +141933,6 @@ var require_module = __commonJSMin((exports) => {
|
|
|
143489
141933
|
}
|
|
143490
141934
|
return obj;
|
|
143491
141935
|
}
|
|
143492
|
-
function _toPropertyKey2(arg) {
|
|
143493
|
-
var key = _toPrimitive2(arg, "string");
|
|
143494
|
-
return typeof key === "symbol" ? key : String(key);
|
|
143495
|
-
}
|
|
143496
|
-
function _toPrimitive2(input, hint) {
|
|
143497
|
-
if (typeof input !== "object" || input === null)
|
|
143498
|
-
return input;
|
|
143499
|
-
var prim = input[Symbol.toPrimitive];
|
|
143500
|
-
if (prim !== void 0) {
|
|
143501
|
-
var res = prim.call(input, hint || "default");
|
|
143502
|
-
if (typeof res !== "object")
|
|
143503
|
-
return res;
|
|
143504
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
143505
|
-
}
|
|
143506
|
-
return (hint === "string" ? String : Number)(input);
|
|
143507
|
-
}
|
|
143508
141936
|
var ModuleNewAction2 = async (options3) => {
|
|
143509
141937
|
const {
|
|
143510
141938
|
locale = "zh",
|