@modern-js/repo-generator 0.0.0-next-20221202032240 → 0.0.0-next-20221202071629
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 +2087 -515
- 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: "3.1",
|
|
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: "111", CC: "3.1", DC: "5.1", EC: "6.1", FC: "7.1", GC: "9.1", HC: "14.1", IC: "15.1", JC: "16.2", KC: "TP", LC: "9.5-9.6", MC: "10.0-10.1", NC: "10.5", OC: "10.6", PC: "11.6", QC: "4.0-4.1", RC: "5.0-5.1", SC: "6.0-6.1", TC: "7.0-7.1", UC: "8.1-8.4", VC: "9.0-9.2", WC: "9.3", XC: "10.0-10.2", YC: "10.3", ZC: "11.0-11.2", aC: "11.3-11.4", bC: "12.0-12.1", cC: "12.2-12.5", dC: "13.0-13.1", eC: "13.2", fC: "13.3", gC: "13.4-13.7", hC: "14.0-14.4", iC: "14.5-14.8", jC: "15.0-15.1", kC: "all", lC: "2.1", mC: "2.2", nC: "2.3", oC: "4.1", pC: "4.4", qC: "4.4.3-4.4.4", rC: "13.4", sC: "5.0-5.4", tC: "6.2-6.4", uC: "7.2-7.4", vC: "8.2", wC: "9.2", xC: "11.1-11.2", yC: "12.0", zC: "13.0", "0C": "14.0", "1C": "15.0", "2C": "17.0", "3C": "18.0", "4C": "19.0", "5C": "13.18", "6C": "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 }, 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 } } };
|
|
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 } } };
|
|
30625
30625
|
});
|
|
30626
30626
|
var require_agents2 = __commonJSMin((exports, module2) => {
|
|
30627
30627
|
"use strict";
|
|
@@ -45980,6 +45980,7 @@ 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);
|
|
45983
45984
|
var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
|
|
45984
45985
|
var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
|
|
45985
45986
|
var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
|
|
@@ -46012,10 +46013,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46012
46013
|
if (this._ending) {
|
|
46013
46014
|
throw new WriteAfterEndError();
|
|
46014
46015
|
}
|
|
46015
|
-
if (!(
|
|
46016
|
+
if (!isString3(data) && !isBuffer(data)) {
|
|
46016
46017
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
46017
46018
|
}
|
|
46018
|
-
if (
|
|
46019
|
+
if (isFunction4(encoding)) {
|
|
46019
46020
|
callback = encoding;
|
|
46020
46021
|
encoding = null;
|
|
46021
46022
|
}
|
|
@@ -46035,10 +46036,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46035
46036
|
}
|
|
46036
46037
|
};
|
|
46037
46038
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
46038
|
-
if (
|
|
46039
|
+
if (isFunction4(data)) {
|
|
46039
46040
|
callback = data;
|
|
46040
46041
|
data = encoding = null;
|
|
46041
|
-
} else if (
|
|
46042
|
+
} else if (isFunction4(encoding)) {
|
|
46042
46043
|
callback = encoding;
|
|
46043
46044
|
encoding = null;
|
|
46044
46045
|
}
|
|
@@ -46162,7 +46163,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46162
46163
|
for (var event of events) {
|
|
46163
46164
|
request.on(event, eventHandlers[event]);
|
|
46164
46165
|
}
|
|
46165
|
-
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this.
|
|
46166
|
+
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
|
|
46166
46167
|
if (this._isRedirect) {
|
|
46167
46168
|
var i = 0;
|
|
46168
46169
|
var self3 = this;
|
|
@@ -46227,7 +46228,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46227
46228
|
try {
|
|
46228
46229
|
redirectUrl = url.resolve(currentUrl, location);
|
|
46229
46230
|
} catch (cause) {
|
|
46230
|
-
this.emit("error", new RedirectionError(cause));
|
|
46231
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
46231
46232
|
return;
|
|
46232
46233
|
}
|
|
46233
46234
|
debug("redirecting to", redirectUrl);
|
|
@@ -46237,7 +46238,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46237
46238
|
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
46238
46239
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
46239
46240
|
}
|
|
46240
|
-
if (
|
|
46241
|
+
if (isFunction4(beforeRedirect)) {
|
|
46241
46242
|
var responseDetails = {
|
|
46242
46243
|
headers: response.headers,
|
|
46243
46244
|
statusCode
|
|
@@ -46258,7 +46259,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46258
46259
|
try {
|
|
46259
46260
|
this._performRequest();
|
|
46260
46261
|
} catch (cause) {
|
|
46261
|
-
this.emit("error", new RedirectionError(cause));
|
|
46262
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
46262
46263
|
}
|
|
46263
46264
|
};
|
|
46264
46265
|
function wrap(protocols) {
|
|
@@ -46272,13 +46273,17 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46272
46273
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
46273
46274
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
46274
46275
|
function request(input, options3, callback) {
|
|
46275
|
-
if (
|
|
46276
|
-
var
|
|
46276
|
+
if (isString3(input)) {
|
|
46277
|
+
var parsed;
|
|
46277
46278
|
try {
|
|
46278
|
-
|
|
46279
|
+
parsed = urlToOptions(new URL(input));
|
|
46279
46280
|
} catch (err) {
|
|
46280
|
-
|
|
46281
|
+
parsed = url.parse(input);
|
|
46281
46282
|
}
|
|
46283
|
+
if (!isString3(parsed.protocol)) {
|
|
46284
|
+
throw new InvalidUrlError({ input });
|
|
46285
|
+
}
|
|
46286
|
+
input = parsed;
|
|
46282
46287
|
} else if (URL && input instanceof URL) {
|
|
46283
46288
|
input = urlToOptions(input);
|
|
46284
46289
|
} else {
|
|
@@ -46286,7 +46291,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46286
46291
|
options3 = input;
|
|
46287
46292
|
input = { protocol };
|
|
46288
46293
|
}
|
|
46289
|
-
if (
|
|
46294
|
+
if (isFunction4(options3)) {
|
|
46290
46295
|
callback = options3;
|
|
46291
46296
|
options3 = null;
|
|
46292
46297
|
}
|
|
@@ -46295,6 +46300,9 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46295
46300
|
maxBodyLength: exports2.maxBodyLength
|
|
46296
46301
|
}, input, options3);
|
|
46297
46302
|
options3.nativeProtocols = nativeProtocols;
|
|
46303
|
+
if (!isString3(options3.host) && !isString3(options3.hostname)) {
|
|
46304
|
+
options3.hostname = "::1";
|
|
46305
|
+
}
|
|
46298
46306
|
assert.equal(options3.protocol, protocol, "protocol mismatch");
|
|
46299
46307
|
debug("options", options3);
|
|
46300
46308
|
return new RedirectableRequest(options3, callback);
|
|
@@ -46338,20 +46346,16 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46338
46346
|
}
|
|
46339
46347
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
46340
46348
|
}
|
|
46341
|
-
function createErrorType(code,
|
|
46342
|
-
function CustomError(
|
|
46349
|
+
function createErrorType(code, message, baseClass) {
|
|
46350
|
+
function CustomError(properties) {
|
|
46343
46351
|
Error.captureStackTrace(this, this.constructor);
|
|
46344
|
-
|
|
46345
|
-
|
|
46346
|
-
|
|
46347
|
-
this.message = defaultMessage + ": " + cause.message;
|
|
46348
|
-
this.cause = cause;
|
|
46349
|
-
}
|
|
46352
|
+
Object.assign(this, properties || {});
|
|
46353
|
+
this.code = code;
|
|
46354
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
46350
46355
|
}
|
|
46351
|
-
CustomError.prototype = new Error();
|
|
46356
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
46352
46357
|
CustomError.prototype.constructor = CustomError;
|
|
46353
46358
|
CustomError.prototype.name = "Error [" + code + "]";
|
|
46354
|
-
CustomError.prototype.code = code;
|
|
46355
46359
|
return CustomError;
|
|
46356
46360
|
}
|
|
46357
46361
|
function abortRequest(request) {
|
|
@@ -46362,9 +46366,19 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46362
46366
|
request.abort();
|
|
46363
46367
|
}
|
|
46364
46368
|
function isSubdomain(subdomain, domain) {
|
|
46365
|
-
|
|
46369
|
+
assert(isString3(subdomain) && isString3(domain));
|
|
46370
|
+
var dot = subdomain.length - domain.length - 1;
|
|
46366
46371
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
46367
46372
|
}
|
|
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
|
+
}
|
|
46368
46382
|
module2.exports = wrap({ http, https });
|
|
46369
46383
|
module2.exports.wrap = wrap;
|
|
46370
46384
|
});
|
|
@@ -48194,8 +48208,9 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48194
48208
|
}
|
|
48195
48209
|
this.path = normPath(header.path);
|
|
48196
48210
|
this.mode = header.mode;
|
|
48197
|
-
if (this.mode)
|
|
48211
|
+
if (this.mode) {
|
|
48198
48212
|
this.mode = this.mode & 4095;
|
|
48213
|
+
}
|
|
48199
48214
|
this.uid = header.uid;
|
|
48200
48215
|
this.gid = header.gid;
|
|
48201
48216
|
this.uname = header.uname;
|
|
@@ -48207,29 +48222,35 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48207
48222
|
this.linkpath = normPath(header.linkpath);
|
|
48208
48223
|
this.uname = header.uname;
|
|
48209
48224
|
this.gname = header.gname;
|
|
48210
|
-
if (ex)
|
|
48225
|
+
if (ex) {
|
|
48211
48226
|
this[SLURP](ex);
|
|
48212
|
-
|
|
48227
|
+
}
|
|
48228
|
+
if (gex) {
|
|
48213
48229
|
this[SLURP](gex, true);
|
|
48230
|
+
}
|
|
48214
48231
|
}
|
|
48215
48232
|
write(data) {
|
|
48216
48233
|
const writeLen = data.length;
|
|
48217
|
-
if (writeLen > this.blockRemain)
|
|
48234
|
+
if (writeLen > this.blockRemain) {
|
|
48218
48235
|
throw new Error("writing more to entry than is appropriate");
|
|
48236
|
+
}
|
|
48219
48237
|
const r = this.remain;
|
|
48220
48238
|
const br = this.blockRemain;
|
|
48221
48239
|
this.remain = Math.max(0, r - writeLen);
|
|
48222
48240
|
this.blockRemain = Math.max(0, br - writeLen);
|
|
48223
|
-
if (this.ignore)
|
|
48241
|
+
if (this.ignore) {
|
|
48224
48242
|
return true;
|
|
48225
|
-
|
|
48243
|
+
}
|
|
48244
|
+
if (r >= writeLen) {
|
|
48226
48245
|
return super.write(data);
|
|
48246
|
+
}
|
|
48227
48247
|
return super.write(data.slice(0, r));
|
|
48228
48248
|
}
|
|
48229
48249
|
[SLURP](ex, global2) {
|
|
48230
48250
|
for (const k in ex) {
|
|
48231
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48251
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
|
48232
48252
|
this[k] = k === "path" || k === "linkpath" ? normPath(ex[k]) : ex[k];
|
|
48253
|
+
}
|
|
48233
48254
|
}
|
|
48234
48255
|
}
|
|
48235
48256
|
};
|
|
@@ -48264,12 +48285,13 @@ var require_types = __commonJSMin((exports) => {
|
|
|
48264
48285
|
var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
48265
48286
|
"use strict";
|
|
48266
48287
|
var encode = (num, buf) => {
|
|
48267
|
-
if (!Number.isSafeInteger(num))
|
|
48288
|
+
if (!Number.isSafeInteger(num)) {
|
|
48268
48289
|
throw Error("cannot encode number outside of javascript safe integer range");
|
|
48269
|
-
else if (num < 0)
|
|
48290
|
+
} else if (num < 0) {
|
|
48270
48291
|
encodeNegative(num, buf);
|
|
48271
|
-
else
|
|
48292
|
+
} else {
|
|
48272
48293
|
encodePositive(num, buf);
|
|
48294
|
+
}
|
|
48273
48295
|
return buf;
|
|
48274
48296
|
};
|
|
48275
48297
|
var encodePositive = (num, buf) => {
|
|
@@ -48286,11 +48308,11 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48286
48308
|
for (var i = buf.length; i > 1; i--) {
|
|
48287
48309
|
var byte = num & 255;
|
|
48288
48310
|
num = Math.floor(num / 256);
|
|
48289
|
-
if (flipped)
|
|
48311
|
+
if (flipped) {
|
|
48290
48312
|
buf[i - 1] = onesComp(byte);
|
|
48291
|
-
else if (byte === 0)
|
|
48313
|
+
} else if (byte === 0) {
|
|
48292
48314
|
buf[i - 1] = 0;
|
|
48293
|
-
else {
|
|
48315
|
+
} else {
|
|
48294
48316
|
flipped = true;
|
|
48295
48317
|
buf[i - 1] = twosComp(byte);
|
|
48296
48318
|
}
|
|
@@ -48299,10 +48321,12 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48299
48321
|
var parse2 = (buf) => {
|
|
48300
48322
|
const pre = buf[0];
|
|
48301
48323
|
const value = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
48302
|
-
if (value === null)
|
|
48324
|
+
if (value === null) {
|
|
48303
48325
|
throw Error("invalid base256 encoding");
|
|
48304
|
-
|
|
48326
|
+
}
|
|
48327
|
+
if (!Number.isSafeInteger(value)) {
|
|
48305
48328
|
throw Error("parsed number outside of javascript safe integer range");
|
|
48329
|
+
}
|
|
48306
48330
|
return value;
|
|
48307
48331
|
};
|
|
48308
48332
|
var twos = (buf) => {
|
|
@@ -48312,16 +48336,17 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48312
48336
|
for (var i = len - 1; i > -1; i--) {
|
|
48313
48337
|
var byte = buf[i];
|
|
48314
48338
|
var f;
|
|
48315
|
-
if (flipped)
|
|
48339
|
+
if (flipped) {
|
|
48316
48340
|
f = onesComp(byte);
|
|
48317
|
-
else if (byte === 0)
|
|
48341
|
+
} else if (byte === 0) {
|
|
48318
48342
|
f = byte;
|
|
48319
|
-
else {
|
|
48343
|
+
} else {
|
|
48320
48344
|
flipped = true;
|
|
48321
48345
|
f = twosComp(byte);
|
|
48322
48346
|
}
|
|
48323
|
-
if (f !== 0)
|
|
48347
|
+
if (f !== 0) {
|
|
48324
48348
|
sum -= f * Math.pow(256, len - i - 1);
|
|
48349
|
+
}
|
|
48325
48350
|
}
|
|
48326
48351
|
return sum;
|
|
48327
48352
|
};
|
|
@@ -48330,8 +48355,9 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48330
48355
|
var sum = 0;
|
|
48331
48356
|
for (var i = len - 1; i > -1; i--) {
|
|
48332
48357
|
var byte = buf[i];
|
|
48333
|
-
if (byte !== 0)
|
|
48358
|
+
if (byte !== 0) {
|
|
48334
48359
|
sum += byte * Math.pow(256, len - i - 1);
|
|
48360
|
+
}
|
|
48335
48361
|
}
|
|
48336
48362
|
return sum;
|
|
48337
48363
|
};
|
|
@@ -48370,16 +48396,19 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48370
48396
|
this.devmin = 0;
|
|
48371
48397
|
this.atime = null;
|
|
48372
48398
|
this.ctime = null;
|
|
48373
|
-
if (Buffer.isBuffer(data))
|
|
48399
|
+
if (Buffer.isBuffer(data)) {
|
|
48374
48400
|
this.decode(data, off || 0, ex, gex);
|
|
48375
|
-
else if (data)
|
|
48401
|
+
} else if (data) {
|
|
48376
48402
|
this.set(data);
|
|
48403
|
+
}
|
|
48377
48404
|
}
|
|
48378
48405
|
decode(buf, off, ex, gex) {
|
|
48379
|
-
if (!off)
|
|
48406
|
+
if (!off) {
|
|
48380
48407
|
off = 0;
|
|
48381
|
-
|
|
48408
|
+
}
|
|
48409
|
+
if (!buf || !(buf.length >= off + 512)) {
|
|
48382
48410
|
throw new Error("need 512 bytes for header");
|
|
48411
|
+
}
|
|
48383
48412
|
this.path = decString(buf, off, 100);
|
|
48384
48413
|
this.mode = decNumber(buf, off + 100, 8);
|
|
48385
48414
|
this.uid = decNumber(buf, off + 108, 8);
|
|
@@ -48390,12 +48419,15 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48390
48419
|
this[SLURP](ex);
|
|
48391
48420
|
this[SLURP](gex, true);
|
|
48392
48421
|
this[TYPE] = decString(buf, off + 156, 1);
|
|
48393
|
-
if (this[TYPE] === "")
|
|
48422
|
+
if (this[TYPE] === "") {
|
|
48394
48423
|
this[TYPE] = "0";
|
|
48395
|
-
|
|
48424
|
+
}
|
|
48425
|
+
if (this[TYPE] === "0" && this.path.slice(-1) === "/") {
|
|
48396
48426
|
this[TYPE] = "5";
|
|
48397
|
-
|
|
48427
|
+
}
|
|
48428
|
+
if (this[TYPE] === "5") {
|
|
48398
48429
|
this.size = 0;
|
|
48430
|
+
}
|
|
48399
48431
|
this.linkpath = decString(buf, off + 157, 100);
|
|
48400
48432
|
if (buf.slice(off + 257, off + 265).toString() === "ustar\x0000") {
|
|
48401
48433
|
this.uname = decString(buf, off + 265, 32);
|
|
@@ -48407,25 +48439,30 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48407
48439
|
this.path = prefix + "/" + this.path;
|
|
48408
48440
|
} else {
|
|
48409
48441
|
const prefix = decString(buf, off + 345, 130);
|
|
48410
|
-
if (prefix)
|
|
48442
|
+
if (prefix) {
|
|
48411
48443
|
this.path = prefix + "/" + this.path;
|
|
48444
|
+
}
|
|
48412
48445
|
this.atime = decDate(buf, off + 476, 12);
|
|
48413
48446
|
this.ctime = decDate(buf, off + 488, 12);
|
|
48414
48447
|
}
|
|
48415
48448
|
}
|
|
48416
48449
|
let sum = 8 * 32;
|
|
48417
|
-
for (let i = off; i < off + 148; i++)
|
|
48450
|
+
for (let i = off; i < off + 148; i++) {
|
|
48418
48451
|
sum += buf[i];
|
|
48419
|
-
|
|
48452
|
+
}
|
|
48453
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
48420
48454
|
sum += buf[i];
|
|
48455
|
+
}
|
|
48421
48456
|
this.cksumValid = sum === this.cksum;
|
|
48422
|
-
if (this.cksum === null && sum === 8 * 32)
|
|
48457
|
+
if (this.cksum === null && sum === 8 * 32) {
|
|
48423
48458
|
this.nullBlock = true;
|
|
48459
|
+
}
|
|
48424
48460
|
}
|
|
48425
48461
|
[SLURP](ex, global2) {
|
|
48426
48462
|
for (const k in ex) {
|
|
48427
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48463
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
|
48428
48464
|
this[k] = ex[k];
|
|
48465
|
+
}
|
|
48429
48466
|
}
|
|
48430
48467
|
}
|
|
48431
48468
|
encode(buf, off) {
|
|
@@ -48433,10 +48470,12 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48433
48470
|
buf = this.block = Buffer.alloc(512);
|
|
48434
48471
|
off = 0;
|
|
48435
48472
|
}
|
|
48436
|
-
if (!off)
|
|
48473
|
+
if (!off) {
|
|
48437
48474
|
off = 0;
|
|
48438
|
-
|
|
48475
|
+
}
|
|
48476
|
+
if (!(buf.length >= off + 512)) {
|
|
48439
48477
|
throw new Error("need 512 bytes for header");
|
|
48478
|
+
}
|
|
48440
48479
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
48441
48480
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
48442
48481
|
const path6 = split[0];
|
|
@@ -48456,18 +48495,20 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48456
48495
|
this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax;
|
|
48457
48496
|
this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax;
|
|
48458
48497
|
this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax;
|
|
48459
|
-
if (buf[off + 475] !== 0)
|
|
48498
|
+
if (buf[off + 475] !== 0) {
|
|
48460
48499
|
this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax;
|
|
48461
|
-
else {
|
|
48500
|
+
} else {
|
|
48462
48501
|
this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax;
|
|
48463
48502
|
this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax;
|
|
48464
48503
|
this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax;
|
|
48465
48504
|
}
|
|
48466
48505
|
let sum = 8 * 32;
|
|
48467
|
-
for (let i = off; i < off + 148; i++)
|
|
48506
|
+
for (let i = off; i < off + 148; i++) {
|
|
48468
48507
|
sum += buf[i];
|
|
48469
|
-
|
|
48508
|
+
}
|
|
48509
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
48470
48510
|
sum += buf[i];
|
|
48511
|
+
}
|
|
48471
48512
|
this.cksum = sum;
|
|
48472
48513
|
encNumber(buf, off + 148, 8, this.cksum);
|
|
48473
48514
|
this.cksumValid = true;
|
|
@@ -48475,8 +48516,9 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48475
48516
|
}
|
|
48476
48517
|
set(data) {
|
|
48477
48518
|
for (const i in data) {
|
|
48478
|
-
if (data[i] !== null && data[i] !== void 0)
|
|
48519
|
+
if (data[i] !== null && data[i] !== void 0) {
|
|
48479
48520
|
this[i] = data[i];
|
|
48521
|
+
}
|
|
48480
48522
|
}
|
|
48481
48523
|
}
|
|
48482
48524
|
get type() {
|
|
@@ -48486,10 +48528,11 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48486
48528
|
return this[TYPE];
|
|
48487
48529
|
}
|
|
48488
48530
|
set type(type) {
|
|
48489
|
-
if (types.code.has(type))
|
|
48531
|
+
if (types.code.has(type)) {
|
|
48490
48532
|
this[TYPE] = types.code.get(type);
|
|
48491
|
-
else
|
|
48533
|
+
} else {
|
|
48492
48534
|
this[TYPE] = type;
|
|
48535
|
+
}
|
|
48493
48536
|
}
|
|
48494
48537
|
};
|
|
48495
48538
|
var splitPrefix = (p, prefixSize) => {
|
|
@@ -48498,23 +48541,24 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48498
48541
|
let prefix = "";
|
|
48499
48542
|
let ret;
|
|
48500
48543
|
const root = pathModule.parse(p).root || ".";
|
|
48501
|
-
if (Buffer.byteLength(pp) < pathSize)
|
|
48544
|
+
if (Buffer.byteLength(pp) < pathSize) {
|
|
48502
48545
|
ret = [pp, prefix, false];
|
|
48503
|
-
else {
|
|
48546
|
+
} else {
|
|
48504
48547
|
prefix = pathModule.dirname(pp);
|
|
48505
48548
|
pp = pathModule.basename(pp);
|
|
48506
48549
|
do {
|
|
48507
|
-
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48550
|
+
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
|
48508
48551
|
ret = [pp, prefix, false];
|
|
48509
|
-
else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48510
|
-
ret = [pp.
|
|
48511
|
-
else {
|
|
48552
|
+
} else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
|
48553
|
+
ret = [pp.slice(0, pathSize - 1), prefix, true];
|
|
48554
|
+
} else {
|
|
48512
48555
|
pp = pathModule.join(pathModule.basename(prefix), pp);
|
|
48513
48556
|
prefix = pathModule.dirname(prefix);
|
|
48514
48557
|
}
|
|
48515
48558
|
} while (prefix !== root && !ret);
|
|
48516
|
-
if (!ret)
|
|
48517
|
-
ret = [p.
|
|
48559
|
+
if (!ret) {
|
|
48560
|
+
ret = [p.slice(0, pathSize - 1), "", true];
|
|
48561
|
+
}
|
|
48518
48562
|
}
|
|
48519
48563
|
return ret;
|
|
48520
48564
|
};
|
|
@@ -48562,13 +48606,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48562
48606
|
}
|
|
48563
48607
|
encode() {
|
|
48564
48608
|
const body = this.encodeBody();
|
|
48565
|
-
if (body === "")
|
|
48609
|
+
if (body === "") {
|
|
48566
48610
|
return null;
|
|
48611
|
+
}
|
|
48567
48612
|
const bodyLen = Buffer.byteLength(body);
|
|
48568
48613
|
const bufLen = 512 * Math.ceil(1 + bodyLen / 512);
|
|
48569
48614
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
48570
|
-
for (let i = 0; i < 512; i++)
|
|
48615
|
+
for (let i = 0; i < 512; i++) {
|
|
48571
48616
|
buf[i] = 0;
|
|
48617
|
+
}
|
|
48572
48618
|
new Header({
|
|
48573
48619
|
path: ("PaxHeader/" + path6.basename(this.path)).slice(0, 99),
|
|
48574
48620
|
mode: this.mode || 420,
|
|
@@ -48586,22 +48632,25 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48586
48632
|
ctime: this.ctime || null
|
|
48587
48633
|
}).encode(buf);
|
|
48588
48634
|
buf.write(body, 512, bodyLen, "utf8");
|
|
48589
|
-
for (let i = bodyLen + 512; i < buf.length; i++)
|
|
48635
|
+
for (let i = bodyLen + 512; i < buf.length; i++) {
|
|
48590
48636
|
buf[i] = 0;
|
|
48637
|
+
}
|
|
48591
48638
|
return buf;
|
|
48592
48639
|
}
|
|
48593
48640
|
encodeBody() {
|
|
48594
48641
|
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");
|
|
48595
48642
|
}
|
|
48596
48643
|
encodeField(field) {
|
|
48597
|
-
if (this[field] === null || this[field] === void 0)
|
|
48644
|
+
if (this[field] === null || this[field] === void 0) {
|
|
48598
48645
|
return "";
|
|
48646
|
+
}
|
|
48599
48647
|
const v = this[field] instanceof Date ? this[field].getTime() / 1e3 : this[field];
|
|
48600
48648
|
const s = " " + (field === "dev" || field === "ino" || field === "nlink" ? "SCHILY." : "") + field + "=" + v + "\n";
|
|
48601
48649
|
const byteLen = Buffer.byteLength(s);
|
|
48602
48650
|
let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1;
|
|
48603
|
-
if (byteLen + digits >= Math.pow(10, digits))
|
|
48651
|
+
if (byteLen + digits >= Math.pow(10, digits)) {
|
|
48604
48652
|
digits += 1;
|
|
48653
|
+
}
|
|
48605
48654
|
const len = digits + byteLen;
|
|
48606
48655
|
return len + s;
|
|
48607
48656
|
}
|
|
@@ -48611,13 +48660,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48611
48660
|
var parseKV = (string) => string.replace(/\n$/, "").split("\n").reduce(parseKVLine, /* @__PURE__ */ Object.create(null));
|
|
48612
48661
|
var parseKVLine = (set, line3) => {
|
|
48613
48662
|
const n = parseInt(line3, 10);
|
|
48614
|
-
if (n !== Buffer.byteLength(line3) + 1)
|
|
48663
|
+
if (n !== Buffer.byteLength(line3) + 1) {
|
|
48615
48664
|
return set;
|
|
48616
|
-
|
|
48665
|
+
}
|
|
48666
|
+
line3 = line3.slice((n + " ").length);
|
|
48617
48667
|
const kv = line3.split("=");
|
|
48618
48668
|
const k = kv.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
|
|
48619
|
-
if (!k)
|
|
48669
|
+
if (!k) {
|
|
48620
48670
|
return set;
|
|
48671
|
+
}
|
|
48621
48672
|
const v = kv.join("=");
|
|
48622
48673
|
set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ? new Date(v * 1e3) : /^[0-9]+$/.test(v) ? +v : v;
|
|
48623
48674
|
return set;
|
|
@@ -48639,10 +48690,12 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48639
48690
|
"use strict";
|
|
48640
48691
|
module2.exports = (Base) => class extends Base {
|
|
48641
48692
|
warn(code, message, data = {}) {
|
|
48642
|
-
if (this.file)
|
|
48693
|
+
if (this.file) {
|
|
48643
48694
|
data.file = this.file;
|
|
48644
|
-
|
|
48695
|
+
}
|
|
48696
|
+
if (this.cwd) {
|
|
48645
48697
|
data.cwd = this.cwd;
|
|
48698
|
+
}
|
|
48646
48699
|
data.code = message instanceof Error && message.code || code;
|
|
48647
48700
|
data.tarCode = code;
|
|
48648
48701
|
if (!this.strict && data.recoverable !== false) {
|
|
@@ -48651,10 +48704,11 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48651
48704
|
message = message.message;
|
|
48652
48705
|
}
|
|
48653
48706
|
this.emit("warn", data.tarCode, message, data);
|
|
48654
|
-
} else if (message instanceof Error)
|
|
48707
|
+
} else if (message instanceof Error) {
|
|
48655
48708
|
this.emit("error", Object.assign(message, data));
|
|
48656
|
-
else
|
|
48709
|
+
} else {
|
|
48657
48710
|
this.emit("error", Object.assign(new Error(`${code}: ${message}`), data));
|
|
48711
|
+
}
|
|
48658
48712
|
}
|
|
48659
48713
|
};
|
|
48660
48714
|
});
|
|
@@ -48682,7 +48736,7 @@ var require_strip_absolute_path = __commonJSMin((exports, module2) => {
|
|
|
48682
48736
|
let parsed = parse2(path6);
|
|
48683
48737
|
while (isAbsolute(path6) || parsed.root) {
|
|
48684
48738
|
const root = path6.charAt(0) === "/" && path6.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
48685
|
-
path6 = path6.
|
|
48739
|
+
path6 = path6.slice(root.length);
|
|
48686
48740
|
r += root;
|
|
48687
48741
|
parsed = parse2(path6);
|
|
48688
48742
|
}
|
|
@@ -48693,15 +48747,19 @@ var require_mode_fix = __commonJSMin((exports, module2) => {
|
|
|
48693
48747
|
"use strict";
|
|
48694
48748
|
module2.exports = (mode, isDir, portable) => {
|
|
48695
48749
|
mode &= 4095;
|
|
48696
|
-
if (portable)
|
|
48750
|
+
if (portable) {
|
|
48697
48751
|
mode = (mode | 384) & ~18;
|
|
48752
|
+
}
|
|
48698
48753
|
if (isDir) {
|
|
48699
|
-
if (mode & 256)
|
|
48754
|
+
if (mode & 256) {
|
|
48700
48755
|
mode |= 64;
|
|
48701
|
-
|
|
48756
|
+
}
|
|
48757
|
+
if (mode & 32) {
|
|
48702
48758
|
mode |= 8;
|
|
48703
|
-
|
|
48759
|
+
}
|
|
48760
|
+
if (mode & 4) {
|
|
48704
48761
|
mode |= 1;
|
|
48762
|
+
}
|
|
48705
48763
|
}
|
|
48706
48764
|
return mode;
|
|
48707
48765
|
};
|
|
@@ -48716,8 +48774,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48716
48774
|
var normPath = require_normalize_windows_path();
|
|
48717
48775
|
var stripSlash = require_strip_trailing_slashes();
|
|
48718
48776
|
var prefixPath = (path7, prefix) => {
|
|
48719
|
-
if (!prefix)
|
|
48777
|
+
if (!prefix) {
|
|
48720
48778
|
return normPath(path7);
|
|
48779
|
+
}
|
|
48721
48780
|
path7 = normPath(path7).replace(/^\.(\/|$)/, "");
|
|
48722
48781
|
return stripSlash(prefix) + "/" + path7;
|
|
48723
48782
|
};
|
|
@@ -48749,8 +48808,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48749
48808
|
constructor(p, opt) {
|
|
48750
48809
|
opt = opt || {};
|
|
48751
48810
|
super(opt);
|
|
48752
|
-
if (typeof p !== "string")
|
|
48811
|
+
if (typeof p !== "string") {
|
|
48753
48812
|
throw new TypeError("path is required");
|
|
48813
|
+
}
|
|
48754
48814
|
this.path = normPath(p);
|
|
48755
48815
|
this.portable = !!opt.portable;
|
|
48756
48816
|
this.myuid = process.getuid && process.getuid() || 0;
|
|
@@ -48773,8 +48833,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48773
48833
|
this.length = null;
|
|
48774
48834
|
this.pos = null;
|
|
48775
48835
|
this.remain = null;
|
|
48776
|
-
if (typeof opt.onwarn === "function")
|
|
48836
|
+
if (typeof opt.onwarn === "function") {
|
|
48777
48837
|
this.on("warn", opt.onwarn);
|
|
48838
|
+
}
|
|
48778
48839
|
let pathWarn = false;
|
|
48779
48840
|
if (!this.preservePaths) {
|
|
48780
48841
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -48789,36 +48850,41 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48789
48850
|
p = p.replace(/\\/g, "/");
|
|
48790
48851
|
}
|
|
48791
48852
|
this.absolute = normPath(opt.absolute || path6.resolve(this.cwd, p));
|
|
48792
|
-
if (this.path === "")
|
|
48853
|
+
if (this.path === "") {
|
|
48793
48854
|
this.path = "./";
|
|
48855
|
+
}
|
|
48794
48856
|
if (pathWarn) {
|
|
48795
48857
|
this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
48796
48858
|
entry: this,
|
|
48797
48859
|
path: pathWarn + this.path
|
|
48798
48860
|
});
|
|
48799
48861
|
}
|
|
48800
|
-
if (this.statCache.has(this.absolute))
|
|
48862
|
+
if (this.statCache.has(this.absolute)) {
|
|
48801
48863
|
this[ONLSTAT](this.statCache.get(this.absolute));
|
|
48802
|
-
else
|
|
48864
|
+
} else {
|
|
48803
48865
|
this[LSTAT]();
|
|
48866
|
+
}
|
|
48804
48867
|
}
|
|
48805
48868
|
emit(ev, ...data) {
|
|
48806
|
-
if (ev === "error")
|
|
48869
|
+
if (ev === "error") {
|
|
48807
48870
|
this[HAD_ERROR] = true;
|
|
48871
|
+
}
|
|
48808
48872
|
return super.emit(ev, ...data);
|
|
48809
48873
|
}
|
|
48810
48874
|
[LSTAT]() {
|
|
48811
48875
|
fs4.lstat(this.absolute, (er, stat) => {
|
|
48812
|
-
if (er)
|
|
48876
|
+
if (er) {
|
|
48813
48877
|
return this.emit("error", er);
|
|
48878
|
+
}
|
|
48814
48879
|
this[ONLSTAT](stat);
|
|
48815
48880
|
});
|
|
48816
48881
|
}
|
|
48817
48882
|
[ONLSTAT](stat) {
|
|
48818
48883
|
this.statCache.set(this.absolute, stat);
|
|
48819
48884
|
this.stat = stat;
|
|
48820
|
-
if (!stat.isFile())
|
|
48885
|
+
if (!stat.isFile()) {
|
|
48821
48886
|
stat.size = 0;
|
|
48887
|
+
}
|
|
48822
48888
|
this.type = getType2(stat);
|
|
48823
48889
|
this.emit("stat", stat);
|
|
48824
48890
|
this[PROCESS]();
|
|
@@ -48842,8 +48908,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48842
48908
|
return prefixPath(path7, this.prefix);
|
|
48843
48909
|
}
|
|
48844
48910
|
[HEADER]() {
|
|
48845
|
-
if (this.type === "Directory" && this.portable)
|
|
48911
|
+
if (this.type === "Directory" && this.portable) {
|
|
48846
48912
|
this.noMtime = true;
|
|
48913
|
+
}
|
|
48847
48914
|
this.header = new Header({
|
|
48848
48915
|
path: this[PREFIX](this.path),
|
|
48849
48916
|
linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
|
|
@@ -48876,16 +48943,18 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48876
48943
|
super.write(this.header.block);
|
|
48877
48944
|
}
|
|
48878
48945
|
[DIRECTORY]() {
|
|
48879
|
-
if (this.path.
|
|
48946
|
+
if (this.path.slice(-1) !== "/") {
|
|
48880
48947
|
this.path += "/";
|
|
48948
|
+
}
|
|
48881
48949
|
this.stat.size = 0;
|
|
48882
48950
|
this[HEADER]();
|
|
48883
48951
|
this.end();
|
|
48884
48952
|
}
|
|
48885
48953
|
[SYMLINK]() {
|
|
48886
48954
|
fs4.readlink(this.absolute, (er, linkpath) => {
|
|
48887
|
-
if (er)
|
|
48955
|
+
if (er) {
|
|
48888
48956
|
return this.emit("error", er);
|
|
48957
|
+
}
|
|
48889
48958
|
this[ONREADLINK](linkpath);
|
|
48890
48959
|
});
|
|
48891
48960
|
}
|
|
@@ -48906,27 +48975,31 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48906
48975
|
const linkKey = this.stat.dev + ":" + this.stat.ino;
|
|
48907
48976
|
if (this.linkCache.has(linkKey)) {
|
|
48908
48977
|
const linkpath = this.linkCache.get(linkKey);
|
|
48909
|
-
if (linkpath.indexOf(this.cwd) === 0)
|
|
48978
|
+
if (linkpath.indexOf(this.cwd) === 0) {
|
|
48910
48979
|
return this[HARDLINK](linkpath);
|
|
48980
|
+
}
|
|
48911
48981
|
}
|
|
48912
48982
|
this.linkCache.set(linkKey, this.absolute);
|
|
48913
48983
|
}
|
|
48914
48984
|
this[HEADER]();
|
|
48915
|
-
if (this.stat.size === 0)
|
|
48985
|
+
if (this.stat.size === 0) {
|
|
48916
48986
|
return this.end();
|
|
48987
|
+
}
|
|
48917
48988
|
this[OPENFILE]();
|
|
48918
48989
|
}
|
|
48919
48990
|
[OPENFILE]() {
|
|
48920
48991
|
fs4.open(this.absolute, "r", (er, fd) => {
|
|
48921
|
-
if (er)
|
|
48992
|
+
if (er) {
|
|
48922
48993
|
return this.emit("error", er);
|
|
48994
|
+
}
|
|
48923
48995
|
this[ONOPENFILE](fd);
|
|
48924
48996
|
});
|
|
48925
48997
|
}
|
|
48926
48998
|
[ONOPENFILE](fd) {
|
|
48927
48999
|
this.fd = fd;
|
|
48928
|
-
if (this[HAD_ERROR])
|
|
49000
|
+
if (this[HAD_ERROR]) {
|
|
48929
49001
|
return this[CLOSE]();
|
|
49002
|
+
}
|
|
48930
49003
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512);
|
|
48931
49004
|
this.blockRemain = this.blockLen;
|
|
48932
49005
|
const bufLen = Math.min(this.blockLen, this.maxReadSize);
|
|
@@ -48973,10 +49046,11 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48973
49046
|
}
|
|
48974
49047
|
const writeBuf = this.offset === 0 && bytesRead === this.buf.length ? this.buf : this.buf.slice(this.offset, this.offset + bytesRead);
|
|
48975
49048
|
const flushed = this.write(writeBuf);
|
|
48976
|
-
if (!flushed)
|
|
49049
|
+
if (!flushed) {
|
|
48977
49050
|
this[AWAITDRAIN](() => this[ONDRAIN]());
|
|
48978
|
-
else
|
|
49051
|
+
} else {
|
|
48979
49052
|
this[ONDRAIN]();
|
|
49053
|
+
}
|
|
48980
49054
|
}
|
|
48981
49055
|
[AWAITDRAIN](cb) {
|
|
48982
49056
|
this.once("drain", cb);
|
|
@@ -48995,8 +49069,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48995
49069
|
}
|
|
48996
49070
|
[ONDRAIN]() {
|
|
48997
49071
|
if (!this.remain) {
|
|
48998
|
-
if (this.blockRemain)
|
|
49072
|
+
if (this.blockRemain) {
|
|
48999
49073
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49074
|
+
}
|
|
49000
49075
|
return this[CLOSE]((er) => er ? this.emit("error", er) : this.end());
|
|
49001
49076
|
}
|
|
49002
49077
|
if (this.offset >= this.length) {
|
|
@@ -49053,8 +49128,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49053
49128
|
this.noMtime = !!opt.noMtime;
|
|
49054
49129
|
this.readEntry = readEntry;
|
|
49055
49130
|
this.type = readEntry.type;
|
|
49056
|
-
if (this.type === "Directory" && this.portable)
|
|
49131
|
+
if (this.type === "Directory" && this.portable) {
|
|
49057
49132
|
this.noMtime = true;
|
|
49133
|
+
}
|
|
49058
49134
|
this.prefix = opt.prefix || null;
|
|
49059
49135
|
this.path = normPath(readEntry.path);
|
|
49060
49136
|
this.mode = this[MODE](readEntry.mode);
|
|
@@ -49067,8 +49143,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49067
49143
|
this.atime = this.portable ? null : readEntry.atime;
|
|
49068
49144
|
this.ctime = this.portable ? null : readEntry.ctime;
|
|
49069
49145
|
this.linkpath = normPath(readEntry.linkpath);
|
|
49070
|
-
if (typeof opt.onwarn === "function")
|
|
49146
|
+
if (typeof opt.onwarn === "function") {
|
|
49071
49147
|
this.on("warn", opt.onwarn);
|
|
49148
|
+
}
|
|
49072
49149
|
let pathWarn = false;
|
|
49073
49150
|
if (!this.preservePaths) {
|
|
49074
49151
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -49125,14 +49202,16 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49125
49202
|
}
|
|
49126
49203
|
write(data) {
|
|
49127
49204
|
const writeLen = data.length;
|
|
49128
|
-
if (writeLen > this.blockRemain)
|
|
49205
|
+
if (writeLen > this.blockRemain) {
|
|
49129
49206
|
throw new Error("writing more to entry than is appropriate");
|
|
49207
|
+
}
|
|
49130
49208
|
this.blockRemain -= writeLen;
|
|
49131
49209
|
return super.write(data);
|
|
49132
49210
|
}
|
|
49133
49211
|
end() {
|
|
49134
|
-
if (this.blockRemain)
|
|
49212
|
+
if (this.blockRemain) {
|
|
49135
49213
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49214
|
+
}
|
|
49136
49215
|
return super.end();
|
|
49137
49216
|
}
|
|
49138
49217
|
});
|
|
@@ -49578,22 +49657,26 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49578
49657
|
this.statCache = opt.statCache || /* @__PURE__ */ new Map();
|
|
49579
49658
|
this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map();
|
|
49580
49659
|
this[WRITEENTRYCLASS] = WriteEntry;
|
|
49581
|
-
if (typeof opt.onwarn === "function")
|
|
49660
|
+
if (typeof opt.onwarn === "function") {
|
|
49582
49661
|
this.on("warn", opt.onwarn);
|
|
49662
|
+
}
|
|
49583
49663
|
this.portable = !!opt.portable;
|
|
49584
49664
|
this.zip = null;
|
|
49585
49665
|
if (opt.gzip) {
|
|
49586
|
-
if (typeof opt.gzip !== "object")
|
|
49666
|
+
if (typeof opt.gzip !== "object") {
|
|
49587
49667
|
opt.gzip = {};
|
|
49588
|
-
|
|
49668
|
+
}
|
|
49669
|
+
if (this.portable) {
|
|
49589
49670
|
opt.gzip.portable = true;
|
|
49671
|
+
}
|
|
49590
49672
|
this.zip = new zlib.Gzip(opt.gzip);
|
|
49591
49673
|
this.zip.on("data", (chunk) => super.write(chunk));
|
|
49592
49674
|
this.zip.on("end", (_) => super.end());
|
|
49593
49675
|
this.zip.on("drain", (_) => this[ONDRAIN]());
|
|
49594
49676
|
this.on("resume", (_) => this.zip.resume());
|
|
49595
|
-
} else
|
|
49677
|
+
} else {
|
|
49596
49678
|
this.on("drain", this[ONDRAIN]);
|
|
49679
|
+
}
|
|
49597
49680
|
this.noDirRecurse = !!opt.noDirRecurse;
|
|
49598
49681
|
this.follow = !!opt.follow;
|
|
49599
49682
|
this.noMtime = !!opt.noMtime;
|
|
@@ -49613,26 +49696,29 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49613
49696
|
return this;
|
|
49614
49697
|
}
|
|
49615
49698
|
end(path7) {
|
|
49616
|
-
if (path7)
|
|
49699
|
+
if (path7) {
|
|
49617
49700
|
this.write(path7);
|
|
49701
|
+
}
|
|
49618
49702
|
this[ENDED] = true;
|
|
49619
49703
|
this[PROCESS]();
|
|
49620
49704
|
return this;
|
|
49621
49705
|
}
|
|
49622
49706
|
write(path7) {
|
|
49623
|
-
if (this[ENDED])
|
|
49707
|
+
if (this[ENDED]) {
|
|
49624
49708
|
throw new Error("write after end");
|
|
49625
|
-
|
|
49709
|
+
}
|
|
49710
|
+
if (path7 instanceof ReadEntry) {
|
|
49626
49711
|
this[ADDTARENTRY](path7);
|
|
49627
|
-
else
|
|
49712
|
+
} else {
|
|
49628
49713
|
this[ADDFSENTRY](path7);
|
|
49714
|
+
}
|
|
49629
49715
|
return this.flowing;
|
|
49630
49716
|
}
|
|
49631
49717
|
[ADDTARENTRY](p) {
|
|
49632
49718
|
const absolute = normPath(path6.resolve(this.cwd, p.path));
|
|
49633
|
-
if (!this.filter(p.path, p))
|
|
49719
|
+
if (!this.filter(p.path, p)) {
|
|
49634
49720
|
p.resume();
|
|
49635
|
-
else {
|
|
49721
|
+
} else {
|
|
49636
49722
|
const job = new PackJob(p.path, absolute, false);
|
|
49637
49723
|
job.entry = new WriteEntryTar(p, this[ENTRYOPT](job));
|
|
49638
49724
|
job.entry.on("end", (_) => this[JOBDONE](job));
|
|
@@ -49653,17 +49739,19 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49653
49739
|
fs4[stat](job.absolute, (er, stat2) => {
|
|
49654
49740
|
job.pending = false;
|
|
49655
49741
|
this[JOBS] -= 1;
|
|
49656
|
-
if (er)
|
|
49742
|
+
if (er) {
|
|
49657
49743
|
this.emit("error", er);
|
|
49658
|
-
else
|
|
49744
|
+
} else {
|
|
49659
49745
|
this[ONSTAT](job, stat2);
|
|
49746
|
+
}
|
|
49660
49747
|
});
|
|
49661
49748
|
}
|
|
49662
49749
|
[ONSTAT](job, stat) {
|
|
49663
49750
|
this.statCache.set(job.absolute, stat);
|
|
49664
49751
|
job.stat = stat;
|
|
49665
|
-
if (!this.filter(job.path, stat))
|
|
49752
|
+
if (!this.filter(job.path, stat)) {
|
|
49666
49753
|
job.ignore = true;
|
|
49754
|
+
}
|
|
49667
49755
|
this[PROCESS]();
|
|
49668
49756
|
}
|
|
49669
49757
|
[READDIR](job) {
|
|
@@ -49672,8 +49760,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49672
49760
|
fs4.readdir(job.absolute, (er, entries) => {
|
|
49673
49761
|
job.pending = false;
|
|
49674
49762
|
this[JOBS] -= 1;
|
|
49675
|
-
if (er)
|
|
49763
|
+
if (er) {
|
|
49676
49764
|
return this.emit("error", er);
|
|
49765
|
+
}
|
|
49677
49766
|
this[ONREADDIR](job, entries);
|
|
49678
49767
|
});
|
|
49679
49768
|
}
|
|
@@ -49683,8 +49772,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49683
49772
|
this[PROCESS]();
|
|
49684
49773
|
}
|
|
49685
49774
|
[PROCESS]() {
|
|
49686
|
-
if (this[PROCESSING])
|
|
49775
|
+
if (this[PROCESSING]) {
|
|
49687
49776
|
return;
|
|
49777
|
+
}
|
|
49688
49778
|
this[PROCESSING] = true;
|
|
49689
49779
|
for (let w = this[QUEUE].head; w !== null && this[JOBS] < this.jobs; w = w.next) {
|
|
49690
49780
|
this[PROCESSJOB](w.value);
|
|
@@ -49696,9 +49786,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49696
49786
|
}
|
|
49697
49787
|
this[PROCESSING] = false;
|
|
49698
49788
|
if (this[ENDED] && !this[QUEUE].length && this[JOBS] === 0) {
|
|
49699
|
-
if (this.zip)
|
|
49789
|
+
if (this.zip) {
|
|
49700
49790
|
this.zip.end(EOF);
|
|
49701
|
-
else {
|
|
49791
|
+
} else {
|
|
49702
49792
|
super.write(EOF);
|
|
49703
49793
|
super.end();
|
|
49704
49794
|
}
|
|
@@ -49713,38 +49803,46 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49713
49803
|
this[PROCESS]();
|
|
49714
49804
|
}
|
|
49715
49805
|
[PROCESSJOB](job) {
|
|
49716
|
-
if (job.pending)
|
|
49806
|
+
if (job.pending) {
|
|
49717
49807
|
return;
|
|
49808
|
+
}
|
|
49718
49809
|
if (job.entry) {
|
|
49719
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49810
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
49720
49811
|
this[PIPE](job);
|
|
49812
|
+
}
|
|
49721
49813
|
return;
|
|
49722
49814
|
}
|
|
49723
49815
|
if (!job.stat) {
|
|
49724
|
-
if (this.statCache.has(job.absolute))
|
|
49816
|
+
if (this.statCache.has(job.absolute)) {
|
|
49725
49817
|
this[ONSTAT](job, this.statCache.get(job.absolute));
|
|
49726
|
-
else
|
|
49818
|
+
} else {
|
|
49727
49819
|
this[STAT](job);
|
|
49820
|
+
}
|
|
49728
49821
|
}
|
|
49729
|
-
if (!job.stat)
|
|
49822
|
+
if (!job.stat) {
|
|
49730
49823
|
return;
|
|
49731
|
-
|
|
49824
|
+
}
|
|
49825
|
+
if (job.ignore) {
|
|
49732
49826
|
return;
|
|
49827
|
+
}
|
|
49733
49828
|
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
|
49734
|
-
if (this.readdirCache.has(job.absolute))
|
|
49829
|
+
if (this.readdirCache.has(job.absolute)) {
|
|
49735
49830
|
this[ONREADDIR](job, this.readdirCache.get(job.absolute));
|
|
49736
|
-
else
|
|
49831
|
+
} else {
|
|
49737
49832
|
this[READDIR](job);
|
|
49738
|
-
|
|
49833
|
+
}
|
|
49834
|
+
if (!job.readdir) {
|
|
49739
49835
|
return;
|
|
49836
|
+
}
|
|
49740
49837
|
}
|
|
49741
49838
|
job.entry = this[ENTRY](job);
|
|
49742
49839
|
if (!job.entry) {
|
|
49743
49840
|
job.ignore = true;
|
|
49744
49841
|
return;
|
|
49745
49842
|
}
|
|
49746
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49843
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
49747
49844
|
this[PIPE](job);
|
|
49845
|
+
}
|
|
49748
49846
|
}
|
|
49749
49847
|
[ENTRYOPT](job) {
|
|
49750
49848
|
return {
|
|
@@ -49772,8 +49870,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49772
49870
|
}
|
|
49773
49871
|
}
|
|
49774
49872
|
[ONDRAIN]() {
|
|
49775
|
-
if (this[CURRENT] && this[CURRENT].entry)
|
|
49873
|
+
if (this[CURRENT] && this[CURRENT].entry) {
|
|
49776
49874
|
this[CURRENT].entry.resume();
|
|
49875
|
+
}
|
|
49777
49876
|
}
|
|
49778
49877
|
[PIPE](job) {
|
|
49779
49878
|
job.piped = true;
|
|
@@ -49788,19 +49887,22 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49788
49887
|
const zip = this.zip;
|
|
49789
49888
|
if (zip) {
|
|
49790
49889
|
source.on("data", (chunk) => {
|
|
49791
|
-
if (!zip.write(chunk))
|
|
49890
|
+
if (!zip.write(chunk)) {
|
|
49792
49891
|
source.pause();
|
|
49892
|
+
}
|
|
49793
49893
|
});
|
|
49794
49894
|
} else {
|
|
49795
49895
|
source.on("data", (chunk) => {
|
|
49796
|
-
if (!super.write(chunk))
|
|
49896
|
+
if (!super.write(chunk)) {
|
|
49797
49897
|
source.pause();
|
|
49898
|
+
}
|
|
49798
49899
|
});
|
|
49799
49900
|
}
|
|
49800
49901
|
}
|
|
49801
49902
|
pause() {
|
|
49802
|
-
if (this.zip)
|
|
49903
|
+
if (this.zip) {
|
|
49803
49904
|
this.zip.pause();
|
|
49905
|
+
}
|
|
49804
49906
|
return super.pause();
|
|
49805
49907
|
}
|
|
49806
49908
|
});
|
|
@@ -50212,6 +50314,7 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50212
50314
|
var Entry = require_read_entry();
|
|
50213
50315
|
var Pax = require_pax();
|
|
50214
50316
|
var zlib = require_minizlib();
|
|
50317
|
+
var { nextTick } = __require("process");
|
|
50215
50318
|
var gzipHeader = Buffer.from([31, 139]);
|
|
50216
50319
|
var STATE = Symbol("state");
|
|
50217
50320
|
var WRITEENTRY = Symbol("writeEntry");
|
|
@@ -50242,6 +50345,7 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50242
50345
|
var SAW_VALID_ENTRY = Symbol("sawValidEntry");
|
|
50243
50346
|
var SAW_NULL_BLOCK = Symbol("sawNullBlock");
|
|
50244
50347
|
var SAW_EOF = Symbol("sawEOF");
|
|
50348
|
+
var CLOSESTREAM = Symbol("closeStream");
|
|
50245
50349
|
var noop = (_) => true;
|
|
50246
50350
|
module2.exports = warner(class Parser extends EE {
|
|
50247
50351
|
constructor(opt) {
|
|
@@ -50254,14 +50358,13 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50254
50358
|
this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
50255
50359
|
}
|
|
50256
50360
|
});
|
|
50257
|
-
if (opt.ondone)
|
|
50361
|
+
if (opt.ondone) {
|
|
50258
50362
|
this.on(DONE, opt.ondone);
|
|
50259
|
-
else {
|
|
50363
|
+
} else {
|
|
50260
50364
|
this.on(DONE, (_) => {
|
|
50261
50365
|
this.emit("prefinish");
|
|
50262
50366
|
this.emit("finish");
|
|
50263
50367
|
this.emit("end");
|
|
50264
|
-
this.emit("close");
|
|
50265
50368
|
});
|
|
50266
50369
|
}
|
|
50267
50370
|
this.strict = !!opt.strict;
|
|
@@ -50282,14 +50385,18 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50282
50385
|
this[ABORTED] = false;
|
|
50283
50386
|
this[SAW_NULL_BLOCK] = false;
|
|
50284
50387
|
this[SAW_EOF] = false;
|
|
50285
|
-
|
|
50388
|
+
this.on("end", () => this[CLOSESTREAM]());
|
|
50389
|
+
if (typeof opt.onwarn === "function") {
|
|
50286
50390
|
this.on("warn", opt.onwarn);
|
|
50287
|
-
|
|
50391
|
+
}
|
|
50392
|
+
if (typeof opt.onentry === "function") {
|
|
50288
50393
|
this.on("entry", opt.onentry);
|
|
50394
|
+
}
|
|
50289
50395
|
}
|
|
50290
50396
|
[CONSUMEHEADER](chunk, position) {
|
|
50291
|
-
if (this[SAW_VALID_ENTRY] === null)
|
|
50397
|
+
if (this[SAW_VALID_ENTRY] === null) {
|
|
50292
50398
|
this[SAW_VALID_ENTRY] = false;
|
|
50399
|
+
}
|
|
50293
50400
|
let header;
|
|
50294
50401
|
try {
|
|
50295
50402
|
header = new Header(chunk, position, this[EX], this[GEX]);
|
|
@@ -50299,8 +50406,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50299
50406
|
if (header.nullBlock) {
|
|
50300
50407
|
if (this[SAW_NULL_BLOCK]) {
|
|
50301
50408
|
this[SAW_EOF] = true;
|
|
50302
|
-
if (this[STATE] === "begin")
|
|
50409
|
+
if (this[STATE] === "begin") {
|
|
50303
50410
|
this[STATE] = "header";
|
|
50411
|
+
}
|
|
50304
50412
|
this[EMIT]("eof");
|
|
50305
50413
|
} else {
|
|
50306
50414
|
this[SAW_NULL_BLOCK] = true;
|
|
@@ -50308,27 +50416,29 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50308
50416
|
}
|
|
50309
50417
|
} else {
|
|
50310
50418
|
this[SAW_NULL_BLOCK] = false;
|
|
50311
|
-
if (!header.cksumValid)
|
|
50419
|
+
if (!header.cksumValid) {
|
|
50312
50420
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header });
|
|
50313
|
-
else if (!header.path)
|
|
50421
|
+
} else if (!header.path) {
|
|
50314
50422
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header });
|
|
50315
|
-
else {
|
|
50423
|
+
} else {
|
|
50316
50424
|
const type = header.type;
|
|
50317
|
-
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
|
50425
|
+
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath) {
|
|
50318
50426
|
this.warn("TAR_ENTRY_INVALID", "linkpath required", { header });
|
|
50319
|
-
else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath)
|
|
50427
|
+
} else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath) {
|
|
50320
50428
|
this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header });
|
|
50321
|
-
else {
|
|
50429
|
+
} else {
|
|
50322
50430
|
const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX]);
|
|
50323
50431
|
if (!this[SAW_VALID_ENTRY]) {
|
|
50324
50432
|
if (entry.remain) {
|
|
50325
50433
|
const onend = () => {
|
|
50326
|
-
if (!entry.invalid)
|
|
50434
|
+
if (!entry.invalid) {
|
|
50327
50435
|
this[SAW_VALID_ENTRY] = true;
|
|
50436
|
+
}
|
|
50328
50437
|
};
|
|
50329
50438
|
entry.on("end", onend);
|
|
50330
|
-
} else
|
|
50439
|
+
} else {
|
|
50331
50440
|
this[SAW_VALID_ENTRY] = true;
|
|
50441
|
+
}
|
|
50332
50442
|
}
|
|
50333
50443
|
if (entry.meta) {
|
|
50334
50444
|
if (entry.size > this.maxMetaEntrySize) {
|
|
@@ -50349,31 +50459,35 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50349
50459
|
this[STATE] = entry.remain ? "ignore" : "header";
|
|
50350
50460
|
entry.resume();
|
|
50351
50461
|
} else {
|
|
50352
|
-
if (entry.remain)
|
|
50462
|
+
if (entry.remain) {
|
|
50353
50463
|
this[STATE] = "body";
|
|
50354
|
-
else {
|
|
50464
|
+
} else {
|
|
50355
50465
|
this[STATE] = "header";
|
|
50356
50466
|
entry.end();
|
|
50357
50467
|
}
|
|
50358
50468
|
if (!this[READENTRY]) {
|
|
50359
50469
|
this[QUEUE].push(entry);
|
|
50360
50470
|
this[NEXTENTRY]();
|
|
50361
|
-
} else
|
|
50471
|
+
} else {
|
|
50362
50472
|
this[QUEUE].push(entry);
|
|
50473
|
+
}
|
|
50363
50474
|
}
|
|
50364
50475
|
}
|
|
50365
50476
|
}
|
|
50366
50477
|
}
|
|
50367
50478
|
}
|
|
50368
50479
|
}
|
|
50480
|
+
[CLOSESTREAM]() {
|
|
50481
|
+
nextTick(() => this.emit("close"));
|
|
50482
|
+
}
|
|
50369
50483
|
[PROCESSENTRY](entry) {
|
|
50370
50484
|
let go = true;
|
|
50371
50485
|
if (!entry) {
|
|
50372
50486
|
this[READENTRY] = null;
|
|
50373
50487
|
go = false;
|
|
50374
|
-
} else if (Array.isArray(entry))
|
|
50488
|
+
} else if (Array.isArray(entry)) {
|
|
50375
50489
|
this.emit.apply(this, entry);
|
|
50376
|
-
else {
|
|
50490
|
+
} else {
|
|
50377
50491
|
this[READENTRY] = entry;
|
|
50378
50492
|
this.emit("entry", entry);
|
|
50379
50493
|
if (!entry.emittedEnd) {
|
|
@@ -50390,10 +50504,12 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50390
50504
|
const re = this[READENTRY];
|
|
50391
50505
|
const drainNow = !re || re.flowing || re.size === re.remain;
|
|
50392
50506
|
if (drainNow) {
|
|
50393
|
-
if (!this[WRITING])
|
|
50507
|
+
if (!this[WRITING]) {
|
|
50394
50508
|
this.emit("drain");
|
|
50395
|
-
|
|
50509
|
+
}
|
|
50510
|
+
} else {
|
|
50396
50511
|
re.once("drain", (_) => this.emit("drain"));
|
|
50512
|
+
}
|
|
50397
50513
|
}
|
|
50398
50514
|
}
|
|
50399
50515
|
[CONSUMEBODY](chunk, position) {
|
|
@@ -50411,15 +50527,17 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50411
50527
|
[CONSUMEMETA](chunk, position) {
|
|
50412
50528
|
const entry = this[WRITEENTRY];
|
|
50413
50529
|
const ret = this[CONSUMEBODY](chunk, position);
|
|
50414
|
-
if (!this[WRITEENTRY])
|
|
50530
|
+
if (!this[WRITEENTRY]) {
|
|
50415
50531
|
this[EMITMETA](entry);
|
|
50532
|
+
}
|
|
50416
50533
|
return ret;
|
|
50417
50534
|
}
|
|
50418
50535
|
[EMIT](ev, data, extra) {
|
|
50419
|
-
if (!this[QUEUE].length && !this[READENTRY])
|
|
50536
|
+
if (!this[QUEUE].length && !this[READENTRY]) {
|
|
50420
50537
|
this.emit(ev, data, extra);
|
|
50421
|
-
else
|
|
50538
|
+
} else {
|
|
50422
50539
|
this[QUEUE].push([ev, data, extra]);
|
|
50540
|
+
}
|
|
50423
50541
|
}
|
|
50424
50542
|
[EMITMETA](entry) {
|
|
50425
50543
|
this[EMIT]("meta", this[META]);
|
|
@@ -50450,8 +50568,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50450
50568
|
this.warn("TAR_ABORT", error, { recoverable: false });
|
|
50451
50569
|
}
|
|
50452
50570
|
write(chunk) {
|
|
50453
|
-
if (this[ABORTED])
|
|
50571
|
+
if (this[ABORTED]) {
|
|
50454
50572
|
return;
|
|
50573
|
+
}
|
|
50455
50574
|
if (this[UNZIP] === null && chunk) {
|
|
50456
50575
|
if (this[BUFFER]) {
|
|
50457
50576
|
chunk = Buffer.concat([this[BUFFER], chunk]);
|
|
@@ -50462,8 +50581,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50462
50581
|
return true;
|
|
50463
50582
|
}
|
|
50464
50583
|
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
|
50465
|
-
if (chunk[i] !== gzipHeader[i])
|
|
50584
|
+
if (chunk[i] !== gzipHeader[i]) {
|
|
50466
50585
|
this[UNZIP] = false;
|
|
50586
|
+
}
|
|
50467
50587
|
}
|
|
50468
50588
|
if (this[UNZIP] === null) {
|
|
50469
50589
|
const ended = this[ENDED];
|
|
@@ -50482,19 +50602,22 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50482
50602
|
}
|
|
50483
50603
|
}
|
|
50484
50604
|
this[WRITING] = true;
|
|
50485
|
-
if (this[UNZIP])
|
|
50605
|
+
if (this[UNZIP]) {
|
|
50486
50606
|
this[UNZIP].write(chunk);
|
|
50487
|
-
else
|
|
50607
|
+
} else {
|
|
50488
50608
|
this[CONSUMECHUNK](chunk);
|
|
50609
|
+
}
|
|
50489
50610
|
this[WRITING] = false;
|
|
50490
50611
|
const ret = this[QUEUE].length ? false : this[READENTRY] ? this[READENTRY].flowing : true;
|
|
50491
|
-
if (!ret && !this[QUEUE].length)
|
|
50612
|
+
if (!ret && !this[QUEUE].length) {
|
|
50492
50613
|
this[READENTRY].once("drain", (_) => this.emit("drain"));
|
|
50614
|
+
}
|
|
50493
50615
|
return ret;
|
|
50494
50616
|
}
|
|
50495
50617
|
[BUFFERCONCAT](c) {
|
|
50496
|
-
if (c && !this[ABORTED])
|
|
50618
|
+
if (c && !this[ABORTED]) {
|
|
50497
50619
|
this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c;
|
|
50620
|
+
}
|
|
50498
50621
|
}
|
|
50499
50622
|
[MAYBEEND]() {
|
|
50500
50623
|
if (this[ENDED] && !this[EMITTEDEND] && !this[ABORTED] && !this[CONSUMING]) {
|
|
@@ -50503,27 +50626,29 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50503
50626
|
if (entry && entry.blockRemain) {
|
|
50504
50627
|
const have = this[BUFFER] ? this[BUFFER].length : 0;
|
|
50505
50628
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${entry.blockRemain} more bytes, only ${have} available)`, { entry });
|
|
50506
|
-
if (this[BUFFER])
|
|
50629
|
+
if (this[BUFFER]) {
|
|
50507
50630
|
entry.write(this[BUFFER]);
|
|
50631
|
+
}
|
|
50508
50632
|
entry.end();
|
|
50509
50633
|
}
|
|
50510
50634
|
this[EMIT](DONE);
|
|
50511
50635
|
}
|
|
50512
50636
|
}
|
|
50513
50637
|
[CONSUMECHUNK](chunk) {
|
|
50514
|
-
if (this[CONSUMING])
|
|
50638
|
+
if (this[CONSUMING]) {
|
|
50515
50639
|
this[BUFFERCONCAT](chunk);
|
|
50516
|
-
else if (!chunk && !this[BUFFER])
|
|
50640
|
+
} else if (!chunk && !this[BUFFER]) {
|
|
50517
50641
|
this[MAYBEEND]();
|
|
50518
|
-
else {
|
|
50642
|
+
} else {
|
|
50519
50643
|
this[CONSUMING] = true;
|
|
50520
50644
|
if (this[BUFFER]) {
|
|
50521
50645
|
this[BUFFERCONCAT](chunk);
|
|
50522
50646
|
const c = this[BUFFER];
|
|
50523
50647
|
this[BUFFER] = null;
|
|
50524
50648
|
this[CONSUMECHUNKSUB](c);
|
|
50525
|
-
} else
|
|
50649
|
+
} else {
|
|
50526
50650
|
this[CONSUMECHUNKSUB](chunk);
|
|
50651
|
+
}
|
|
50527
50652
|
while (this[BUFFER] && this[BUFFER].length >= 512 && !this[ABORTED] && !this[SAW_EOF]) {
|
|
50528
50653
|
const c = this[BUFFER];
|
|
50529
50654
|
this[BUFFER] = null;
|
|
@@ -50531,8 +50656,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50531
50656
|
}
|
|
50532
50657
|
this[CONSUMING] = false;
|
|
50533
50658
|
}
|
|
50534
|
-
if (!this[BUFFER] || this[ENDED])
|
|
50659
|
+
if (!this[BUFFER] || this[ENDED]) {
|
|
50535
50660
|
this[MAYBEEND]();
|
|
50661
|
+
}
|
|
50536
50662
|
}
|
|
50537
50663
|
[CONSUMECHUNKSUB](chunk) {
|
|
50538
50664
|
let position = 0;
|
|
@@ -50556,17 +50682,18 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50556
50682
|
}
|
|
50557
50683
|
}
|
|
50558
50684
|
if (position < length) {
|
|
50559
|
-
if (this[BUFFER])
|
|
50685
|
+
if (this[BUFFER]) {
|
|
50560
50686
|
this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]]);
|
|
50561
|
-
else
|
|
50687
|
+
} else {
|
|
50562
50688
|
this[BUFFER] = chunk.slice(position);
|
|
50689
|
+
}
|
|
50563
50690
|
}
|
|
50564
50691
|
}
|
|
50565
50692
|
end(chunk) {
|
|
50566
50693
|
if (!this[ABORTED]) {
|
|
50567
|
-
if (this[UNZIP])
|
|
50694
|
+
if (this[UNZIP]) {
|
|
50568
50695
|
this[UNZIP].end(chunk);
|
|
50569
|
-
else {
|
|
50696
|
+
} else {
|
|
50570
50697
|
this[ENDED] = true;
|
|
50571
50698
|
this.write(chunk);
|
|
50572
50699
|
}
|
|
@@ -50583,25 +50710,32 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50583
50710
|
var path6 = __require("path");
|
|
50584
50711
|
var stripSlash = require_strip_trailing_slashes();
|
|
50585
50712
|
module2.exports = (opt_, files, cb) => {
|
|
50586
|
-
if (typeof opt_ === "function")
|
|
50713
|
+
if (typeof opt_ === "function") {
|
|
50587
50714
|
cb = opt_, files = null, opt_ = {};
|
|
50588
|
-
else if (Array.isArray(opt_))
|
|
50715
|
+
} else if (Array.isArray(opt_)) {
|
|
50589
50716
|
files = opt_, opt_ = {};
|
|
50590
|
-
|
|
50717
|
+
}
|
|
50718
|
+
if (typeof files === "function") {
|
|
50591
50719
|
cb = files, files = null;
|
|
50592
|
-
|
|
50720
|
+
}
|
|
50721
|
+
if (!files) {
|
|
50593
50722
|
files = [];
|
|
50594
|
-
else
|
|
50723
|
+
} else {
|
|
50595
50724
|
files = Array.from(files);
|
|
50725
|
+
}
|
|
50596
50726
|
const opt = hlo(opt_);
|
|
50597
|
-
if (opt.sync && typeof cb === "function")
|
|
50727
|
+
if (opt.sync && typeof cb === "function") {
|
|
50598
50728
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50599
|
-
|
|
50729
|
+
}
|
|
50730
|
+
if (!opt.file && typeof cb === "function") {
|
|
50600
50731
|
throw new TypeError("callback only supported with file option");
|
|
50601
|
-
|
|
50732
|
+
}
|
|
50733
|
+
if (files.length) {
|
|
50602
50734
|
filesFilter(opt, files);
|
|
50603
|
-
|
|
50735
|
+
}
|
|
50736
|
+
if (!opt.noResume) {
|
|
50604
50737
|
onentryFunction(opt);
|
|
50738
|
+
}
|
|
50605
50739
|
return opt.file && opt.sync ? listFileSync(opt) : opt.file ? listFile(opt, cb) : list(opt);
|
|
50606
50740
|
};
|
|
50607
50741
|
var onentryFunction = (opt) => {
|
|
@@ -50630,9 +50764,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50630
50764
|
try {
|
|
50631
50765
|
const stat = fs4.statSync(file);
|
|
50632
50766
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
50633
|
-
if (stat.size < readSize)
|
|
50767
|
+
if (stat.size < readSize) {
|
|
50634
50768
|
p.end(fs4.readFileSync(file));
|
|
50635
|
-
else {
|
|
50769
|
+
} else {
|
|
50636
50770
|
let pos = 0;
|
|
50637
50771
|
const buf = Buffer.allocUnsafe(readSize);
|
|
50638
50772
|
fd = fs4.openSync(file, "r");
|
|
@@ -50661,9 +50795,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50661
50795
|
parse2.on("error", reject);
|
|
50662
50796
|
parse2.on("end", resolve);
|
|
50663
50797
|
fs4.stat(file, (er, stat) => {
|
|
50664
|
-
if (er)
|
|
50798
|
+
if (er) {
|
|
50665
50799
|
reject(er);
|
|
50666
|
-
else {
|
|
50800
|
+
} else {
|
|
50667
50801
|
const stream = new fsm.ReadStream(file, {
|
|
50668
50802
|
readSize,
|
|
50669
50803
|
size: stat.size
|
|
@@ -50685,18 +50819,23 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50685
50819
|
var t = require_list();
|
|
50686
50820
|
var path6 = __require("path");
|
|
50687
50821
|
module2.exports = (opt_, files, cb) => {
|
|
50688
|
-
if (typeof files === "function")
|
|
50822
|
+
if (typeof files === "function") {
|
|
50689
50823
|
cb = files;
|
|
50690
|
-
|
|
50824
|
+
}
|
|
50825
|
+
if (Array.isArray(opt_)) {
|
|
50691
50826
|
files = opt_, opt_ = {};
|
|
50692
|
-
|
|
50827
|
+
}
|
|
50828
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50693
50829
|
throw new TypeError("no files or directories specified");
|
|
50830
|
+
}
|
|
50694
50831
|
files = Array.from(files);
|
|
50695
50832
|
const opt = hlo(opt_);
|
|
50696
|
-
if (opt.sync && typeof cb === "function")
|
|
50833
|
+
if (opt.sync && typeof cb === "function") {
|
|
50697
50834
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50698
|
-
|
|
50835
|
+
}
|
|
50836
|
+
if (!opt.file && typeof cb === "function") {
|
|
50699
50837
|
throw new TypeError("callback only supported with file option");
|
|
50838
|
+
}
|
|
50700
50839
|
return opt.file && opt.sync ? createFileSync(opt, files) : opt.file ? createFile(opt, files, cb) : opt.sync ? createSync(opt, files) : create(opt, files);
|
|
50701
50840
|
};
|
|
50702
50841
|
var createFileSync = (opt, files) => {
|
|
@@ -50725,13 +50864,14 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50725
50864
|
files.forEach((file) => {
|
|
50726
50865
|
if (file.charAt(0) === "@") {
|
|
50727
50866
|
t({
|
|
50728
|
-
file: path6.resolve(p.cwd, file.
|
|
50867
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50729
50868
|
sync: true,
|
|
50730
50869
|
noResume: true,
|
|
50731
50870
|
onentry: (entry) => p.add(entry)
|
|
50732
50871
|
});
|
|
50733
|
-
} else
|
|
50872
|
+
} else {
|
|
50734
50873
|
p.add(file);
|
|
50874
|
+
}
|
|
50735
50875
|
});
|
|
50736
50876
|
p.end();
|
|
50737
50877
|
};
|
|
@@ -50740,12 +50880,13 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50740
50880
|
const file = files.shift();
|
|
50741
50881
|
if (file.charAt(0) === "@") {
|
|
50742
50882
|
return t({
|
|
50743
|
-
file: path6.resolve(p.cwd, file.
|
|
50883
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50744
50884
|
noResume: true,
|
|
50745
50885
|
onentry: (entry) => p.add(entry)
|
|
50746
50886
|
}).then((_) => addFilesAsync(p, files));
|
|
50747
|
-
} else
|
|
50887
|
+
} else {
|
|
50748
50888
|
p.add(file);
|
|
50889
|
+
}
|
|
50749
50890
|
}
|
|
50750
50891
|
p.end();
|
|
50751
50892
|
};
|
|
@@ -50771,12 +50912,15 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50771
50912
|
var Header = require_header();
|
|
50772
50913
|
module2.exports = (opt_, files, cb) => {
|
|
50773
50914
|
const opt = hlo(opt_);
|
|
50774
|
-
if (!opt.file)
|
|
50915
|
+
if (!opt.file) {
|
|
50775
50916
|
throw new TypeError("file is required");
|
|
50776
|
-
|
|
50917
|
+
}
|
|
50918
|
+
if (opt.gzip) {
|
|
50777
50919
|
throw new TypeError("cannot append to compressed archives");
|
|
50778
|
-
|
|
50920
|
+
}
|
|
50921
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50779
50922
|
throw new TypeError("no files or directories specified");
|
|
50923
|
+
}
|
|
50780
50924
|
files = Array.from(files);
|
|
50781
50925
|
return opt.sync ? replaceSync(opt, files) : replace2(opt, files, cb);
|
|
50782
50926
|
};
|
|
@@ -50789,10 +50933,11 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50789
50933
|
try {
|
|
50790
50934
|
fd = fs4.openSync(opt.file, "r+");
|
|
50791
50935
|
} catch (er) {
|
|
50792
|
-
if (er.code === "ENOENT")
|
|
50936
|
+
if (er.code === "ENOENT") {
|
|
50793
50937
|
fd = fs4.openSync(opt.file, "w+");
|
|
50794
|
-
else
|
|
50938
|
+
} else {
|
|
50795
50939
|
throw er;
|
|
50940
|
+
}
|
|
50796
50941
|
}
|
|
50797
50942
|
const st = fs4.fstatSync(fd);
|
|
50798
50943
|
const headBuf = Buffer.alloc(512);
|
|
@@ -50800,20 +50945,25 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50800
50945
|
for (position = 0; position < st.size; position += 512) {
|
|
50801
50946
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
50802
50947
|
bytes = fs4.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
50803
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
50948
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
50804
50949
|
throw new Error("cannot append to compressed archives");
|
|
50805
|
-
|
|
50950
|
+
}
|
|
50951
|
+
if (!bytes) {
|
|
50806
50952
|
break POSITION;
|
|
50953
|
+
}
|
|
50807
50954
|
}
|
|
50808
50955
|
const h = new Header(headBuf);
|
|
50809
|
-
if (!h.cksumValid)
|
|
50956
|
+
if (!h.cksumValid) {
|
|
50810
50957
|
break;
|
|
50958
|
+
}
|
|
50811
50959
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
50812
|
-
if (position + entryBlockSize + 512 > st.size)
|
|
50960
|
+
if (position + entryBlockSize + 512 > st.size) {
|
|
50813
50961
|
break;
|
|
50962
|
+
}
|
|
50814
50963
|
position += entryBlockSize;
|
|
50815
|
-
if (opt.mtimeCache)
|
|
50964
|
+
if (opt.mtimeCache) {
|
|
50816
50965
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
50966
|
+
}
|
|
50817
50967
|
}
|
|
50818
50968
|
threw = false;
|
|
50819
50969
|
streamSync(opt, p, position, fd, files);
|
|
@@ -50839,38 +50989,47 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50839
50989
|
const p = new Pack(opt);
|
|
50840
50990
|
const getPos = (fd, size, cb_) => {
|
|
50841
50991
|
const cb2 = (er, pos) => {
|
|
50842
|
-
if (er)
|
|
50992
|
+
if (er) {
|
|
50843
50993
|
fs4.close(fd, (_) => cb_(er));
|
|
50844
|
-
else
|
|
50994
|
+
} else {
|
|
50845
50995
|
cb_(null, pos);
|
|
50996
|
+
}
|
|
50846
50997
|
};
|
|
50847
50998
|
let position = 0;
|
|
50848
|
-
if (size === 0)
|
|
50999
|
+
if (size === 0) {
|
|
50849
51000
|
return cb2(null, 0);
|
|
51001
|
+
}
|
|
50850
51002
|
let bufPos = 0;
|
|
50851
51003
|
const headBuf = Buffer.alloc(512);
|
|
50852
51004
|
const onread = (er, bytes) => {
|
|
50853
|
-
if (er)
|
|
51005
|
+
if (er) {
|
|
50854
51006
|
return cb2(er);
|
|
51007
|
+
}
|
|
50855
51008
|
bufPos += bytes;
|
|
50856
51009
|
if (bufPos < 512 && bytes) {
|
|
50857
51010
|
return fs4.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
50858
51011
|
}
|
|
50859
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
51012
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
50860
51013
|
return cb2(new Error("cannot append to compressed archives"));
|
|
50861
|
-
|
|
51014
|
+
}
|
|
51015
|
+
if (bufPos < 512) {
|
|
50862
51016
|
return cb2(null, position);
|
|
51017
|
+
}
|
|
50863
51018
|
const h = new Header(headBuf);
|
|
50864
|
-
if (!h.cksumValid)
|
|
51019
|
+
if (!h.cksumValid) {
|
|
50865
51020
|
return cb2(null, position);
|
|
51021
|
+
}
|
|
50866
51022
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
50867
|
-
if (position + entryBlockSize + 512 > size)
|
|
51023
|
+
if (position + entryBlockSize + 512 > size) {
|
|
50868
51024
|
return cb2(null, position);
|
|
51025
|
+
}
|
|
50869
51026
|
position += entryBlockSize + 512;
|
|
50870
|
-
if (position >= size)
|
|
51027
|
+
if (position >= size) {
|
|
50871
51028
|
return cb2(null, position);
|
|
50872
|
-
|
|
51029
|
+
}
|
|
51030
|
+
if (opt.mtimeCache) {
|
|
50873
51031
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
51032
|
+
}
|
|
50874
51033
|
bufPos = 0;
|
|
50875
51034
|
fs4.read(fd, headBuf, 0, 512, position, onread);
|
|
50876
51035
|
};
|
|
@@ -50884,14 +51043,17 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50884
51043
|
flag = "w+";
|
|
50885
51044
|
return fs4.open(opt.file, flag, onopen);
|
|
50886
51045
|
}
|
|
50887
|
-
if (er)
|
|
51046
|
+
if (er) {
|
|
50888
51047
|
return reject(er);
|
|
51048
|
+
}
|
|
50889
51049
|
fs4.fstat(fd, (er2, st) => {
|
|
50890
|
-
if (er2)
|
|
51050
|
+
if (er2) {
|
|
50891
51051
|
return fs4.close(fd, () => reject(er2));
|
|
51052
|
+
}
|
|
50892
51053
|
getPos(fd, st.size, (er3, position) => {
|
|
50893
|
-
if (er3)
|
|
51054
|
+
if (er3) {
|
|
50894
51055
|
return reject(er3);
|
|
51056
|
+
}
|
|
50895
51057
|
const stream = new fsm.WriteStream(opt.file, {
|
|
50896
51058
|
fd,
|
|
50897
51059
|
start: position
|
|
@@ -50911,13 +51073,14 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50911
51073
|
files.forEach((file) => {
|
|
50912
51074
|
if (file.charAt(0) === "@") {
|
|
50913
51075
|
t({
|
|
50914
|
-
file: path6.resolve(p.cwd, file.
|
|
51076
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50915
51077
|
sync: true,
|
|
50916
51078
|
noResume: true,
|
|
50917
51079
|
onentry: (entry) => p.add(entry)
|
|
50918
51080
|
});
|
|
50919
|
-
} else
|
|
51081
|
+
} else {
|
|
50920
51082
|
p.add(file);
|
|
51083
|
+
}
|
|
50921
51084
|
});
|
|
50922
51085
|
p.end();
|
|
50923
51086
|
};
|
|
@@ -50926,12 +51089,13 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50926
51089
|
const file = files.shift();
|
|
50927
51090
|
if (file.charAt(0) === "@") {
|
|
50928
51091
|
return t({
|
|
50929
|
-
file: path6.resolve(p.cwd, file.
|
|
51092
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50930
51093
|
noResume: true,
|
|
50931
51094
|
onentry: (entry) => p.add(entry)
|
|
50932
51095
|
}).then((_) => addFilesAsync(p, files));
|
|
50933
|
-
} else
|
|
51096
|
+
} else {
|
|
50934
51097
|
p.add(file);
|
|
51098
|
+
}
|
|
50935
51099
|
}
|
|
50936
51100
|
p.end();
|
|
50937
51101
|
};
|
|
@@ -50942,20 +51106,24 @@ var require_update = __commonJSMin((exports, module2) => {
|
|
|
50942
51106
|
var r = require_replace();
|
|
50943
51107
|
module2.exports = (opt_, files, cb) => {
|
|
50944
51108
|
const opt = hlo(opt_);
|
|
50945
|
-
if (!opt.file)
|
|
51109
|
+
if (!opt.file) {
|
|
50946
51110
|
throw new TypeError("file is required");
|
|
50947
|
-
|
|
51111
|
+
}
|
|
51112
|
+
if (opt.gzip) {
|
|
50948
51113
|
throw new TypeError("cannot append to compressed archives");
|
|
50949
|
-
|
|
51114
|
+
}
|
|
51115
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50950
51116
|
throw new TypeError("no files or directories specified");
|
|
51117
|
+
}
|
|
50951
51118
|
files = Array.from(files);
|
|
50952
51119
|
mtimeFilter(opt);
|
|
50953
51120
|
return r(opt, files, cb);
|
|
50954
51121
|
};
|
|
50955
51122
|
var mtimeFilter = (opt) => {
|
|
50956
51123
|
const filter = opt.filter;
|
|
50957
|
-
if (!opt.mtimeCache)
|
|
51124
|
+
if (!opt.mtimeCache) {
|
|
50958
51125
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
51126
|
+
}
|
|
50959
51127
|
opt.filter = filter ? (path6, stat) => filter(path6, stat) && !(opt.mtimeCache.get(path6) > stat.mtime) : (path6, stat) => !(opt.mtimeCache.get(path6) > stat.mtime);
|
|
50960
51128
|
};
|
|
50961
51129
|
});
|
|
@@ -51307,8 +51475,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51307
51475
|
var cSet = (cache2, key, val) => cache2.set(normPath(key), val);
|
|
51308
51476
|
var checkCwd = (dir, cb) => {
|
|
51309
51477
|
fs4.stat(dir, (er, st) => {
|
|
51310
|
-
if (er || !st.isDirectory())
|
|
51478
|
+
if (er || !st.isDirectory()) {
|
|
51311
51479
|
er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
51480
|
+
}
|
|
51312
51481
|
cb(er);
|
|
51313
51482
|
});
|
|
51314
51483
|
};
|
|
@@ -51325,35 +51494,41 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51325
51494
|
const cache2 = opt.cache;
|
|
51326
51495
|
const cwd = normPath(opt.cwd);
|
|
51327
51496
|
const done = (er, created) => {
|
|
51328
|
-
if (er)
|
|
51497
|
+
if (er) {
|
|
51329
51498
|
cb(er);
|
|
51330
|
-
else {
|
|
51499
|
+
} else {
|
|
51331
51500
|
cSet(cache2, dir, true);
|
|
51332
|
-
if (created && doChown)
|
|
51501
|
+
if (created && doChown) {
|
|
51333
51502
|
chownr(created, uid2, gid, (er2) => done(er2));
|
|
51334
|
-
else if (needChmod)
|
|
51503
|
+
} else if (needChmod) {
|
|
51335
51504
|
fs4.chmod(dir, mode, cb);
|
|
51336
|
-
else
|
|
51505
|
+
} else {
|
|
51337
51506
|
cb();
|
|
51507
|
+
}
|
|
51338
51508
|
}
|
|
51339
51509
|
};
|
|
51340
|
-
if (cache2 && cGet(cache2, dir) === true)
|
|
51510
|
+
if (cache2 && cGet(cache2, dir) === true) {
|
|
51341
51511
|
return done();
|
|
51342
|
-
|
|
51512
|
+
}
|
|
51513
|
+
if (dir === cwd) {
|
|
51343
51514
|
return checkCwd(dir, done);
|
|
51344
|
-
|
|
51515
|
+
}
|
|
51516
|
+
if (preserve) {
|
|
51345
51517
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
51518
|
+
}
|
|
51346
51519
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51347
51520
|
const parts = sub.split("/");
|
|
51348
51521
|
mkdir_(cwd, parts, mode, cache2, unlink, cwd, null, done);
|
|
51349
51522
|
};
|
|
51350
51523
|
var mkdir_ = (base, parts, mode, cache2, unlink, cwd, created, cb) => {
|
|
51351
|
-
if (!parts.length)
|
|
51524
|
+
if (!parts.length) {
|
|
51352
51525
|
return cb(null, created);
|
|
51526
|
+
}
|
|
51353
51527
|
const p = parts.shift();
|
|
51354
51528
|
const part = normPath(path6.resolve(base + "/" + p));
|
|
51355
|
-
if (cGet(cache2, part))
|
|
51529
|
+
if (cGet(cache2, part)) {
|
|
51356
51530
|
return mkdir_(part, parts, mode, cache2, unlink, cwd, created, cb);
|
|
51531
|
+
}
|
|
51357
51532
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
|
|
51358
51533
|
};
|
|
51359
51534
|
var onmkdir = (part, parts, mode, cache2, unlink, cwd, created, cb) => (er) => {
|
|
@@ -51362,18 +51537,20 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51362
51537
|
if (statEr) {
|
|
51363
51538
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
51364
51539
|
cb(statEr);
|
|
51365
|
-
} else if (st.isDirectory())
|
|
51540
|
+
} else if (st.isDirectory()) {
|
|
51366
51541
|
mkdir_(part, parts, mode, cache2, unlink, cwd, created, cb);
|
|
51367
|
-
else if (unlink) {
|
|
51542
|
+
} else if (unlink) {
|
|
51368
51543
|
fs4.unlink(part, (er2) => {
|
|
51369
|
-
if (er2)
|
|
51544
|
+
if (er2) {
|
|
51370
51545
|
return cb(er2);
|
|
51546
|
+
}
|
|
51371
51547
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
|
|
51372
51548
|
});
|
|
51373
|
-
} else if (st.isSymbolicLink())
|
|
51549
|
+
} else if (st.isSymbolicLink()) {
|
|
51374
51550
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
51375
|
-
else
|
|
51551
|
+
} else {
|
|
51376
51552
|
cb(er);
|
|
51553
|
+
}
|
|
51377
51554
|
});
|
|
51378
51555
|
} else {
|
|
51379
51556
|
created = created || part;
|
|
@@ -51388,8 +51565,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51388
51565
|
} catch (er) {
|
|
51389
51566
|
code = er.code;
|
|
51390
51567
|
} finally {
|
|
51391
|
-
if (!ok)
|
|
51568
|
+
if (!ok) {
|
|
51392
51569
|
throw new CwdError(dir, code);
|
|
51570
|
+
}
|
|
51393
51571
|
}
|
|
51394
51572
|
};
|
|
51395
51573
|
module2.exports.sync = (dir, opt) => {
|
|
@@ -51406,26 +51584,31 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51406
51584
|
const cwd = normPath(opt.cwd);
|
|
51407
51585
|
const done = (created2) => {
|
|
51408
51586
|
cSet(cache2, dir, true);
|
|
51409
|
-
if (created2 && doChown)
|
|
51587
|
+
if (created2 && doChown) {
|
|
51410
51588
|
chownr.sync(created2, uid2, gid);
|
|
51411
|
-
|
|
51589
|
+
}
|
|
51590
|
+
if (needChmod) {
|
|
51412
51591
|
fs4.chmodSync(dir, mode);
|
|
51592
|
+
}
|
|
51413
51593
|
};
|
|
51414
|
-
if (cache2 && cGet(cache2, dir) === true)
|
|
51594
|
+
if (cache2 && cGet(cache2, dir) === true) {
|
|
51415
51595
|
return done();
|
|
51596
|
+
}
|
|
51416
51597
|
if (dir === cwd) {
|
|
51417
51598
|
checkCwdSync(cwd);
|
|
51418
51599
|
return done();
|
|
51419
51600
|
}
|
|
51420
|
-
if (preserve)
|
|
51601
|
+
if (preserve) {
|
|
51421
51602
|
return done(mkdirp.sync(dir, mode));
|
|
51603
|
+
}
|
|
51422
51604
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51423
51605
|
const parts = sub.split("/");
|
|
51424
51606
|
let created = null;
|
|
51425
51607
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
51426
51608
|
part = normPath(path6.resolve(part));
|
|
51427
|
-
if (cGet(cache2, part))
|
|
51609
|
+
if (cGet(cache2, part)) {
|
|
51428
51610
|
continue;
|
|
51611
|
+
}
|
|
51429
51612
|
try {
|
|
51430
51613
|
fs4.mkdirSync(part, mode);
|
|
51431
51614
|
created = created || part;
|
|
@@ -51441,8 +51624,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51441
51624
|
created = created || part;
|
|
51442
51625
|
cSet(cache2, part, true);
|
|
51443
51626
|
continue;
|
|
51444
|
-
} else if (st.isSymbolicLink())
|
|
51627
|
+
} else if (st.isSymbolicLink()) {
|
|
51445
51628
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
|
51629
|
+
}
|
|
51446
51630
|
}
|
|
51447
51631
|
}
|
|
51448
51632
|
return done(created);
|
|
@@ -51452,8 +51636,9 @@ var require_normalize_unicode = __commonJSMin((exports, module2) => {
|
|
|
51452
51636
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
|
51453
51637
|
var { hasOwnProperty: hasOwnProperty6 } = Object.prototype;
|
|
51454
51638
|
module2.exports = (s) => {
|
|
51455
|
-
if (!hasOwnProperty6.call(normalizeCache, s))
|
|
51639
|
+
if (!hasOwnProperty6.call(normalizeCache, s)) {
|
|
51456
51640
|
normalizeCache[s] = s.normalize("NFKD");
|
|
51641
|
+
}
|
|
51457
51642
|
return normalizeCache[s];
|
|
51458
51643
|
};
|
|
51459
51644
|
});
|
|
@@ -51469,8 +51654,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51469
51654
|
const reservations = /* @__PURE__ */ new Map();
|
|
51470
51655
|
const getDirs = (path6) => {
|
|
51471
51656
|
const dirs = path6.split("/").slice(0, -1).reduce((set, path7) => {
|
|
51472
|
-
if (set.length)
|
|
51657
|
+
if (set.length) {
|
|
51473
51658
|
path7 = join(set[set.length - 1], path7);
|
|
51659
|
+
}
|
|
51474
51660
|
set.push(path7 || "/");
|
|
51475
51661
|
return set;
|
|
51476
51662
|
}, []);
|
|
@@ -51479,8 +51665,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51479
51665
|
const running = /* @__PURE__ */ new Set();
|
|
51480
51666
|
const getQueues = (fn) => {
|
|
51481
51667
|
const res = reservations.get(fn);
|
|
51482
|
-
if (!res)
|
|
51668
|
+
if (!res) {
|
|
51483
51669
|
throw new Error("function does not have any path reservations");
|
|
51670
|
+
}
|
|
51484
51671
|
return {
|
|
51485
51672
|
paths: res.paths.map((path6) => queues.get(path6)),
|
|
51486
51673
|
dirs: [...res.dirs].map((path6) => queues.get(path6))
|
|
@@ -51491,40 +51678,44 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51491
51678
|
return paths.every((q) => q[0] === fn) && dirs.every((q) => q[0] instanceof Set && q[0].has(fn));
|
|
51492
51679
|
};
|
|
51493
51680
|
const run = (fn) => {
|
|
51494
|
-
if (running.has(fn) || !check(fn))
|
|
51681
|
+
if (running.has(fn) || !check(fn)) {
|
|
51495
51682
|
return false;
|
|
51683
|
+
}
|
|
51496
51684
|
running.add(fn);
|
|
51497
51685
|
fn(() => clear(fn));
|
|
51498
51686
|
return true;
|
|
51499
51687
|
};
|
|
51500
51688
|
const clear = (fn) => {
|
|
51501
|
-
if (!running.has(fn))
|
|
51689
|
+
if (!running.has(fn)) {
|
|
51502
51690
|
return false;
|
|
51691
|
+
}
|
|
51503
51692
|
const { paths, dirs } = reservations.get(fn);
|
|
51504
51693
|
const next = /* @__PURE__ */ new Set();
|
|
51505
51694
|
paths.forEach((path6) => {
|
|
51506
51695
|
const q = queues.get(path6);
|
|
51507
51696
|
assert.equal(q[0], fn);
|
|
51508
|
-
if (q.length === 1)
|
|
51697
|
+
if (q.length === 1) {
|
|
51509
51698
|
queues.delete(path6);
|
|
51510
|
-
else {
|
|
51699
|
+
} else {
|
|
51511
51700
|
q.shift();
|
|
51512
|
-
if (typeof q[0] === "function")
|
|
51701
|
+
if (typeof q[0] === "function") {
|
|
51513
51702
|
next.add(q[0]);
|
|
51514
|
-
else
|
|
51703
|
+
} else {
|
|
51515
51704
|
q[0].forEach((fn2) => next.add(fn2));
|
|
51705
|
+
}
|
|
51516
51706
|
}
|
|
51517
51707
|
});
|
|
51518
51708
|
dirs.forEach((dir) => {
|
|
51519
51709
|
const q = queues.get(dir);
|
|
51520
51710
|
assert(q[0] instanceof Set);
|
|
51521
|
-
if (q[0].size === 1 && q.length === 1)
|
|
51711
|
+
if (q[0].size === 1 && q.length === 1) {
|
|
51522
51712
|
queues.delete(dir);
|
|
51523
|
-
else if (q[0].size === 1) {
|
|
51713
|
+
} else if (q[0].size === 1) {
|
|
51524
51714
|
q.shift();
|
|
51525
51715
|
next.add(q[0]);
|
|
51526
|
-
} else
|
|
51716
|
+
} else {
|
|
51527
51717
|
q[0].delete(fn);
|
|
51718
|
+
}
|
|
51528
51719
|
});
|
|
51529
51720
|
running.delete(fn);
|
|
51530
51721
|
next.forEach((fn2) => run(fn2));
|
|
@@ -51538,19 +51729,21 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51538
51729
|
reservations.set(fn, { dirs, paths });
|
|
51539
51730
|
paths.forEach((path6) => {
|
|
51540
51731
|
const q = queues.get(path6);
|
|
51541
|
-
if (!q)
|
|
51732
|
+
if (!q) {
|
|
51542
51733
|
queues.set(path6, [fn]);
|
|
51543
|
-
else
|
|
51734
|
+
} else {
|
|
51544
51735
|
q.push(fn);
|
|
51736
|
+
}
|
|
51545
51737
|
});
|
|
51546
51738
|
dirs.forEach((dir) => {
|
|
51547
51739
|
const q = queues.get(dir);
|
|
51548
|
-
if (!q)
|
|
51740
|
+
if (!q) {
|
|
51549
51741
|
queues.set(dir, [/* @__PURE__ */ new Set([fn])]);
|
|
51550
|
-
else if (q[q.length - 1] instanceof Set)
|
|
51742
|
+
} else if (q[q.length - 1] instanceof Set) {
|
|
51551
51743
|
q[q.length - 1].add(fn);
|
|
51552
|
-
else
|
|
51744
|
+
} else {
|
|
51553
51745
|
q.push(/* @__PURE__ */ new Set([fn]));
|
|
51746
|
+
}
|
|
51554
51747
|
});
|
|
51555
51748
|
return run(fn);
|
|
51556
51749
|
};
|
|
@@ -51611,18 +51804,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51611
51804
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
51612
51805
|
var isWindows = platform === "win32";
|
|
51613
51806
|
var unlinkFile = (path7, cb) => {
|
|
51614
|
-
if (!isWindows)
|
|
51807
|
+
if (!isWindows) {
|
|
51615
51808
|
return fs4.unlink(path7, cb);
|
|
51809
|
+
}
|
|
51616
51810
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51617
51811
|
fs4.rename(path7, name5, (er) => {
|
|
51618
|
-
if (er)
|
|
51812
|
+
if (er) {
|
|
51619
51813
|
return cb(er);
|
|
51814
|
+
}
|
|
51620
51815
|
fs4.unlink(name5, cb);
|
|
51621
51816
|
});
|
|
51622
51817
|
};
|
|
51623
51818
|
var unlinkFileSync = (path7) => {
|
|
51624
|
-
if (!isWindows)
|
|
51819
|
+
if (!isWindows) {
|
|
51625
51820
|
return fs4.unlinkSync(path7);
|
|
51821
|
+
}
|
|
51626
51822
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51627
51823
|
fs4.renameSync(path7, name5);
|
|
51628
51824
|
fs4.unlinkSync(name5);
|
|
@@ -51633,18 +51829,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51633
51829
|
abs = cacheKeyNormalize(abs);
|
|
51634
51830
|
for (const path7 of cache2.keys()) {
|
|
51635
51831
|
const pnorm = cacheKeyNormalize(path7);
|
|
51636
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
|
51832
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
|
|
51637
51833
|
cache2.delete(path7);
|
|
51834
|
+
}
|
|
51638
51835
|
}
|
|
51639
51836
|
};
|
|
51640
51837
|
var dropCache = (cache2) => {
|
|
51641
|
-
for (const key of cache2.keys())
|
|
51838
|
+
for (const key of cache2.keys()) {
|
|
51642
51839
|
cache2.delete(key);
|
|
51840
|
+
}
|
|
51643
51841
|
};
|
|
51644
51842
|
var Unpack = class extends Parser2 {
|
|
51645
51843
|
constructor(opt) {
|
|
51646
|
-
if (!opt)
|
|
51844
|
+
if (!opt) {
|
|
51647
51845
|
opt = {};
|
|
51846
|
+
}
|
|
51648
51847
|
opt.ondone = (_) => {
|
|
51649
51848
|
this[ENDED] = true;
|
|
51650
51849
|
this[MAYBECLOSE]();
|
|
@@ -51659,8 +51858,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51659
51858
|
this[ENDED] = false;
|
|
51660
51859
|
this.dirCache = opt.dirCache || /* @__PURE__ */ new Map();
|
|
51661
51860
|
if (typeof opt.uid === "number" || typeof opt.gid === "number") {
|
|
51662
|
-
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
|
51861
|
+
if (typeof opt.uid !== "number" || typeof opt.gid !== "number") {
|
|
51663
51862
|
throw new TypeError("cannot set owner without number uid and gid");
|
|
51863
|
+
}
|
|
51664
51864
|
if (opt.preserveOwner) {
|
|
51665
51865
|
throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
51666
51866
|
}
|
|
@@ -51672,10 +51872,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51672
51872
|
this.gid = null;
|
|
51673
51873
|
this.setOwner = false;
|
|
51674
51874
|
}
|
|
51675
|
-
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
|
51875
|
+
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number") {
|
|
51676
51876
|
this.preserveOwner = process.getuid && process.getuid() === 0;
|
|
51677
|
-
else
|
|
51877
|
+
} else {
|
|
51678
51878
|
this.preserveOwner = !!opt.preserveOwner;
|
|
51879
|
+
}
|
|
51679
51880
|
this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null;
|
|
51680
51881
|
this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null;
|
|
51681
51882
|
this.forceChown = opt.forceChown === true;
|
|
@@ -51694,8 +51895,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51694
51895
|
this.on("entry", (entry) => this[ONENTRY](entry));
|
|
51695
51896
|
}
|
|
51696
51897
|
warn(code, msg, data = {}) {
|
|
51697
|
-
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
|
51898
|
+
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT") {
|
|
51698
51899
|
data.recoverable = false;
|
|
51900
|
+
}
|
|
51699
51901
|
return super.warn(code, msg, data);
|
|
51700
51902
|
}
|
|
51701
51903
|
[MAYBECLOSE]() {
|
|
@@ -51703,21 +51905,22 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51703
51905
|
this.emit("prefinish");
|
|
51704
51906
|
this.emit("finish");
|
|
51705
51907
|
this.emit("end");
|
|
51706
|
-
this.emit("close");
|
|
51707
51908
|
}
|
|
51708
51909
|
}
|
|
51709
51910
|
[CHECKPATH](entry) {
|
|
51710
51911
|
if (this.strip) {
|
|
51711
51912
|
const parts = normPath(entry.path).split("/");
|
|
51712
|
-
if (parts.length < this.strip)
|
|
51913
|
+
if (parts.length < this.strip) {
|
|
51713
51914
|
return false;
|
|
51915
|
+
}
|
|
51714
51916
|
entry.path = parts.slice(this.strip).join("/");
|
|
51715
51917
|
if (entry.type === "Link") {
|
|
51716
51918
|
const linkparts = normPath(entry.linkpath).split("/");
|
|
51717
|
-
if (linkparts.length >= this.strip)
|
|
51919
|
+
if (linkparts.length >= this.strip) {
|
|
51718
51920
|
entry.linkpath = linkparts.slice(this.strip).join("/");
|
|
51719
|
-
else
|
|
51921
|
+
} else {
|
|
51720
51922
|
return false;
|
|
51923
|
+
}
|
|
51721
51924
|
}
|
|
51722
51925
|
}
|
|
51723
51926
|
if (!this.preservePaths) {
|
|
@@ -51739,10 +51942,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51739
51942
|
});
|
|
51740
51943
|
}
|
|
51741
51944
|
}
|
|
51742
|
-
if (path6.isAbsolute(entry.path))
|
|
51945
|
+
if (path6.isAbsolute(entry.path)) {
|
|
51743
51946
|
entry.absolute = normPath(path6.resolve(entry.path));
|
|
51744
|
-
else
|
|
51947
|
+
} else {
|
|
51745
51948
|
entry.absolute = normPath(path6.resolve(this.cwd, entry.path));
|
|
51949
|
+
}
|
|
51746
51950
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
51747
51951
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
51748
51952
|
entry,
|
|
@@ -51752,25 +51956,28 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51752
51956
|
});
|
|
51753
51957
|
return false;
|
|
51754
51958
|
}
|
|
51755
|
-
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
|
51959
|
+
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") {
|
|
51756
51960
|
return false;
|
|
51961
|
+
}
|
|
51757
51962
|
if (this.win32) {
|
|
51758
51963
|
const { root: aRoot } = path6.win32.parse(entry.absolute);
|
|
51759
|
-
entry.absolute = aRoot + wc.encode(entry.absolute.
|
|
51964
|
+
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
51760
51965
|
const { root: pRoot } = path6.win32.parse(entry.path);
|
|
51761
|
-
entry.path = pRoot + wc.encode(entry.path.
|
|
51966
|
+
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
51762
51967
|
}
|
|
51763
51968
|
return true;
|
|
51764
51969
|
}
|
|
51765
51970
|
[ONENTRY](entry) {
|
|
51766
|
-
if (!this[CHECKPATH](entry))
|
|
51971
|
+
if (!this[CHECKPATH](entry)) {
|
|
51767
51972
|
return entry.resume();
|
|
51973
|
+
}
|
|
51768
51974
|
assert.equal(typeof entry.absolute, "string");
|
|
51769
51975
|
switch (entry.type) {
|
|
51770
51976
|
case "Directory":
|
|
51771
51977
|
case "GNUDumpDir":
|
|
51772
|
-
if (entry.mode)
|
|
51978
|
+
if (entry.mode) {
|
|
51773
51979
|
entry.mode = entry.mode | 448;
|
|
51980
|
+
}
|
|
51774
51981
|
case "File":
|
|
51775
51982
|
case "OldFile":
|
|
51776
51983
|
case "ContiguousFile":
|
|
@@ -51785,9 +51992,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51785
51992
|
}
|
|
51786
51993
|
}
|
|
51787
51994
|
[ONERROR](er, entry) {
|
|
51788
|
-
if (er.name === "CwdError")
|
|
51995
|
+
if (er.name === "CwdError") {
|
|
51789
51996
|
this.emit("error", er);
|
|
51790
|
-
else {
|
|
51997
|
+
} else {
|
|
51791
51998
|
this.warn("TAR_ENTRY_ERROR", er, { entry });
|
|
51792
51999
|
this[UNPEND]();
|
|
51793
52000
|
entry.resume();
|
|
@@ -51825,9 +52032,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51825
52032
|
autoClose: false
|
|
51826
52033
|
});
|
|
51827
52034
|
stream.on("error", (er) => {
|
|
51828
|
-
if (stream.fd)
|
|
52035
|
+
if (stream.fd) {
|
|
51829
52036
|
fs4.close(stream.fd, () => {
|
|
51830
52037
|
});
|
|
52038
|
+
}
|
|
51831
52039
|
stream.write = () => true;
|
|
51832
52040
|
this[ONERROR](er, entry);
|
|
51833
52041
|
fullyDone();
|
|
@@ -51835,19 +52043,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51835
52043
|
let actions = 1;
|
|
51836
52044
|
const done = (er) => {
|
|
51837
52045
|
if (er) {
|
|
51838
|
-
if (stream.fd)
|
|
52046
|
+
if (stream.fd) {
|
|
51839
52047
|
fs4.close(stream.fd, () => {
|
|
51840
52048
|
});
|
|
52049
|
+
}
|
|
51841
52050
|
this[ONERROR](er, entry);
|
|
51842
52051
|
fullyDone();
|
|
51843
52052
|
return;
|
|
51844
52053
|
}
|
|
51845
52054
|
if (--actions === 0) {
|
|
51846
52055
|
fs4.close(stream.fd, (er2) => {
|
|
51847
|
-
if (er2)
|
|
52056
|
+
if (er2) {
|
|
51848
52057
|
this[ONERROR](er2, entry);
|
|
51849
|
-
else
|
|
52058
|
+
} else {
|
|
51850
52059
|
this[UNPEND]();
|
|
52060
|
+
}
|
|
51851
52061
|
fullyDone();
|
|
51852
52062
|
});
|
|
51853
52063
|
}
|
|
@@ -51935,15 +52145,17 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51935
52145
|
[CHECKFS](entry) {
|
|
51936
52146
|
this[PEND]();
|
|
51937
52147
|
const paths = [entry.path];
|
|
51938
|
-
if (entry.linkpath)
|
|
52148
|
+
if (entry.linkpath) {
|
|
51939
52149
|
paths.push(entry.linkpath);
|
|
52150
|
+
}
|
|
51940
52151
|
this.reservations.reserve(paths, (done) => this[CHECKFS2](entry, done));
|
|
51941
52152
|
}
|
|
51942
52153
|
[PRUNECACHE](entry) {
|
|
51943
|
-
if (entry.type === "SymbolicLink")
|
|
52154
|
+
if (entry.type === "SymbolicLink") {
|
|
51944
52155
|
dropCache(this.dirCache);
|
|
51945
|
-
else if (entry.type !== "Directory")
|
|
52156
|
+
} else if (entry.type !== "Directory") {
|
|
51946
52157
|
pruneCache(this.dirCache, entry.absolute);
|
|
52158
|
+
}
|
|
51947
52159
|
}
|
|
51948
52160
|
[CHECKFS2](entry, fullyDone) {
|
|
51949
52161
|
this[PRUNECACHE](entry);
|
|
@@ -51985,29 +52197,33 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51985
52197
|
done();
|
|
51986
52198
|
return;
|
|
51987
52199
|
}
|
|
51988
|
-
if (lstatEr || this[ISREUSABLE](entry, st))
|
|
52200
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
|
51989
52201
|
return this[MAKEFS](null, entry, done);
|
|
52202
|
+
}
|
|
51990
52203
|
if (st.isDirectory()) {
|
|
51991
52204
|
if (entry.type === "Directory") {
|
|
51992
52205
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
51993
52206
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
51994
|
-
if (!needChmod)
|
|
52207
|
+
if (!needChmod) {
|
|
51995
52208
|
return afterChmod();
|
|
52209
|
+
}
|
|
51996
52210
|
return fs4.chmod(entry.absolute, entry.mode, afterChmod);
|
|
51997
52211
|
}
|
|
51998
52212
|
if (entry.absolute !== this.cwd) {
|
|
51999
52213
|
return fs4.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
52000
52214
|
}
|
|
52001
52215
|
}
|
|
52002
|
-
if (entry.absolute === this.cwd)
|
|
52216
|
+
if (entry.absolute === this.cwd) {
|
|
52003
52217
|
return this[MAKEFS](null, entry, done);
|
|
52218
|
+
}
|
|
52004
52219
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
52005
52220
|
});
|
|
52006
52221
|
};
|
|
52007
|
-
if (this[CHECKED_CWD])
|
|
52222
|
+
if (this[CHECKED_CWD]) {
|
|
52008
52223
|
start();
|
|
52009
|
-
else
|
|
52224
|
+
} else {
|
|
52010
52225
|
checkCwd();
|
|
52226
|
+
}
|
|
52011
52227
|
}
|
|
52012
52228
|
[MAKEFS](er, entry, done) {
|
|
52013
52229
|
if (er) {
|
|
@@ -52031,9 +52247,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52031
52247
|
}
|
|
52032
52248
|
[LINK](entry, linkpath, link, done) {
|
|
52033
52249
|
fs4[link](linkpath, entry.absolute, (er) => {
|
|
52034
|
-
if (er)
|
|
52250
|
+
if (er) {
|
|
52035
52251
|
this[ONERROR](er, entry);
|
|
52036
|
-
else {
|
|
52252
|
+
} else {
|
|
52037
52253
|
this[UNPEND]();
|
|
52038
52254
|
entry.resume();
|
|
52039
52255
|
}
|
|
@@ -52057,23 +52273,27 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52057
52273
|
this[PRUNECACHE](entry);
|
|
52058
52274
|
if (!this[CHECKED_CWD]) {
|
|
52059
52275
|
const er2 = this[MKDIR](this.cwd, this.dmode);
|
|
52060
|
-
if (er2)
|
|
52276
|
+
if (er2) {
|
|
52061
52277
|
return this[ONERROR](er2, entry);
|
|
52278
|
+
}
|
|
52062
52279
|
this[CHECKED_CWD] = true;
|
|
52063
52280
|
}
|
|
52064
52281
|
if (entry.absolute !== this.cwd) {
|
|
52065
52282
|
const parent = normPath(path6.dirname(entry.absolute));
|
|
52066
52283
|
if (parent !== this.cwd) {
|
|
52067
52284
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
52068
|
-
if (mkParent)
|
|
52285
|
+
if (mkParent) {
|
|
52069
52286
|
return this[ONERROR](mkParent, entry);
|
|
52287
|
+
}
|
|
52070
52288
|
}
|
|
52071
52289
|
}
|
|
52072
52290
|
const [lstatEr, st] = callSync(() => fs4.lstatSync(entry.absolute));
|
|
52073
|
-
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
|
52291
|
+
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
52074
52292
|
return this[SKIP](entry);
|
|
52075
|
-
|
|
52293
|
+
}
|
|
52294
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
|
52076
52295
|
return this[MAKEFS](null, entry);
|
|
52296
|
+
}
|
|
52077
52297
|
if (st.isDirectory()) {
|
|
52078
52298
|
if (entry.type === "Directory") {
|
|
52079
52299
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
@@ -52097,8 +52317,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52097
52317
|
} catch (e) {
|
|
52098
52318
|
closeError = e;
|
|
52099
52319
|
}
|
|
52100
|
-
if (er || closeError)
|
|
52320
|
+
if (er || closeError) {
|
|
52101
52321
|
this[ONERROR](er || closeError, entry);
|
|
52322
|
+
}
|
|
52102
52323
|
done();
|
|
52103
52324
|
};
|
|
52104
52325
|
let fd;
|
|
@@ -52213,23 +52434,29 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52213
52434
|
var path6 = __require("path");
|
|
52214
52435
|
var stripSlash = require_strip_trailing_slashes();
|
|
52215
52436
|
module2.exports = (opt_, files, cb) => {
|
|
52216
|
-
if (typeof opt_ === "function")
|
|
52437
|
+
if (typeof opt_ === "function") {
|
|
52217
52438
|
cb = opt_, files = null, opt_ = {};
|
|
52218
|
-
else if (Array.isArray(opt_))
|
|
52439
|
+
} else if (Array.isArray(opt_)) {
|
|
52219
52440
|
files = opt_, opt_ = {};
|
|
52220
|
-
|
|
52441
|
+
}
|
|
52442
|
+
if (typeof files === "function") {
|
|
52221
52443
|
cb = files, files = null;
|
|
52222
|
-
|
|
52444
|
+
}
|
|
52445
|
+
if (!files) {
|
|
52223
52446
|
files = [];
|
|
52224
|
-
else
|
|
52447
|
+
} else {
|
|
52225
52448
|
files = Array.from(files);
|
|
52449
|
+
}
|
|
52226
52450
|
const opt = hlo(opt_);
|
|
52227
|
-
if (opt.sync && typeof cb === "function")
|
|
52451
|
+
if (opt.sync && typeof cb === "function") {
|
|
52228
52452
|
throw new TypeError("callback not supported for sync tar functions");
|
|
52229
|
-
|
|
52453
|
+
}
|
|
52454
|
+
if (!opt.file && typeof cb === "function") {
|
|
52230
52455
|
throw new TypeError("callback only supported with file option");
|
|
52231
|
-
|
|
52456
|
+
}
|
|
52457
|
+
if (files.length) {
|
|
52232
52458
|
filesFilter(opt, files);
|
|
52459
|
+
}
|
|
52233
52460
|
return opt.file && opt.sync ? extractFileSync(opt) : opt.file ? extractFile(opt, cb) : opt.sync ? extractSync(opt) : extract(opt);
|
|
52234
52461
|
};
|
|
52235
52462
|
var filesFilter = (opt, files) => {
|
|
@@ -52262,9 +52489,9 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52262
52489
|
u.on("error", reject);
|
|
52263
52490
|
u.on("close", resolve);
|
|
52264
52491
|
fs4.stat(file, (er, stat) => {
|
|
52265
|
-
if (er)
|
|
52492
|
+
if (er) {
|
|
52266
52493
|
reject(er);
|
|
52267
|
-
else {
|
|
52494
|
+
} else {
|
|
52268
52495
|
const stream = new fsm.ReadStream(file, {
|
|
52269
52496
|
readSize,
|
|
52270
52497
|
size: stat.size
|
|
@@ -59177,7 +59404,9 @@ function _regeneratorRuntime() {
|
|
|
59177
59404
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
59178
59405
|
return exports;
|
|
59179
59406
|
};
|
|
59180
|
-
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty,
|
|
59407
|
+
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function(obj, key, desc) {
|
|
59408
|
+
obj[key] = desc.value;
|
|
59409
|
+
}, $Symbol = typeof Symbol == "function" ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
59181
59410
|
function define3(obj, key, value) {
|
|
59182
59411
|
return Object.defineProperty(obj, key, {
|
|
59183
59412
|
value,
|
|
@@ -59195,48 +59424,9 @@ function _regeneratorRuntime() {
|
|
|
59195
59424
|
}
|
|
59196
59425
|
function wrap(innerFn, outerFn, self3, tryLocsList) {
|
|
59197
59426
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
59198
|
-
return generator
|
|
59199
|
-
|
|
59200
|
-
|
|
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;
|
|
59427
|
+
return defineProperty(generator, "_invoke", {
|
|
59428
|
+
value: makeInvokeMethod(innerFn, self3, context)
|
|
59429
|
+
}), generator;
|
|
59240
59430
|
}
|
|
59241
59431
|
function tryCatch(fn, obj, arg) {
|
|
59242
59432
|
try {
|
|
@@ -59291,25 +59481,63 @@ function _regeneratorRuntime() {
|
|
|
59291
59481
|
reject(record.arg);
|
|
59292
59482
|
}
|
|
59293
59483
|
var previousPromise;
|
|
59294
|
-
this
|
|
59295
|
-
function
|
|
59296
|
-
|
|
59297
|
-
|
|
59298
|
-
|
|
59484
|
+
defineProperty(this, "_invoke", {
|
|
59485
|
+
value: function value(method, arg) {
|
|
59486
|
+
function callInvokeWithMethodAndArg() {
|
|
59487
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
59488
|
+
invoke(method, arg, resolve, reject);
|
|
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);
|
|
59299
59534
|
}
|
|
59300
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
59301
59535
|
};
|
|
59302
59536
|
}
|
|
59303
59537
|
function maybeInvokeDelegate(delegate, context) {
|
|
59304
|
-
var method = delegate.iterator[
|
|
59305
|
-
if (method === void 0)
|
|
59306
|
-
|
|
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
|
-
}
|
|
59538
|
+
var methodName = context.method, method = delegate.iterator[methodName];
|
|
59539
|
+
if (method === void 0)
|
|
59540
|
+
return context.delegate = null, methodName === "throw" && delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method === "throw") || methodName !== "return" && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
59313
59541
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
59314
59542
|
if (record.type === "throw")
|
|
59315
59543
|
return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
@@ -59359,7 +59587,13 @@ function _regeneratorRuntime() {
|
|
|
59359
59587
|
done: true
|
|
59360
59588
|
};
|
|
59361
59589
|
}
|
|
59362
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
59590
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
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) {
|
|
59363
59597
|
var ctor = typeof genFun == "function" && genFun.constructor;
|
|
59364
59598
|
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction");
|
|
59365
59599
|
}, exports.mark = function(genFun) {
|
|
@@ -59380,8 +59614,8 @@ function _regeneratorRuntime() {
|
|
|
59380
59614
|
return this;
|
|
59381
59615
|
}), define3(Gp, "toString", function() {
|
|
59382
59616
|
return "[object Generator]";
|
|
59383
|
-
}), exports.keys = function(
|
|
59384
|
-
var keys = [];
|
|
59617
|
+
}), exports.keys = function(val) {
|
|
59618
|
+
var object = Object(val), keys = [];
|
|
59385
59619
|
for (var key in object) {
|
|
59386
59620
|
keys.push(key);
|
|
59387
59621
|
}
|
|
@@ -59526,6 +59760,29 @@ function _classCallCheck(instance, Constructor) {
|
|
|
59526
59760
|
}
|
|
59527
59761
|
var init_classCallCheck = __esmMin(() => {
|
|
59528
59762
|
});
|
|
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
|
+
});
|
|
59529
59786
|
function _defineProperties(target, props) {
|
|
59530
59787
|
for (var i = 0; i < props.length; i++) {
|
|
59531
59788
|
var descriptor = props[i];
|
|
@@ -59533,7 +59790,7 @@ function _defineProperties(target, props) {
|
|
|
59533
59790
|
descriptor.configurable = true;
|
|
59534
59791
|
if ("value" in descriptor)
|
|
59535
59792
|
descriptor.writable = true;
|
|
59536
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
59793
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
59537
59794
|
}
|
|
59538
59795
|
}
|
|
59539
59796
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -59547,8 +59804,10 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
59547
59804
|
return Constructor;
|
|
59548
59805
|
}
|
|
59549
59806
|
var init_createClass = __esmMin(() => {
|
|
59807
|
+
init_toPropertyKey();
|
|
59550
59808
|
});
|
|
59551
59809
|
function _defineProperty(obj, key, value) {
|
|
59810
|
+
key = _toPropertyKey(key);
|
|
59552
59811
|
if (key in obj) {
|
|
59553
59812
|
Object.defineProperty(obj, key, {
|
|
59554
59813
|
value,
|
|
@@ -59562,6 +59821,7 @@ function _defineProperty(obj, key, value) {
|
|
|
59562
59821
|
return obj;
|
|
59563
59822
|
}
|
|
59564
59823
|
var init_defineProperty = __esmMin(() => {
|
|
59824
|
+
init_toPropertyKey();
|
|
59565
59825
|
});
|
|
59566
59826
|
function ownKeys(object, enumerableOnly) {
|
|
59567
59827
|
var keys = Object.keys(object);
|
|
@@ -60151,7 +60411,7 @@ var init_tokens = __esmMin(() => {
|
|
|
60151
60411
|
});
|
|
60152
60412
|
dbStarTok = TokenType("**", {
|
|
60153
60413
|
expectNext: function(next) {
|
|
60154
|
-
return next === dotTok || next ===
|
|
60414
|
+
return next === dotTok || next === bracketLTok || next === eofTok || next === commaTok || next === parenRTok;
|
|
60155
60415
|
}
|
|
60156
60416
|
});
|
|
60157
60417
|
dotTok = TokenType(".", {
|
|
@@ -60288,11 +60548,11 @@ var init_tokens = __esmMin(() => {
|
|
|
60288
60548
|
});
|
|
60289
60549
|
eofTok = TokenType("eof");
|
|
60290
60550
|
});
|
|
60291
|
-
var
|
|
60551
|
+
var nonASCIIWhitespace, fullCharCodeAtPos, isRewordCode, getError, slice, Tokenizer;
|
|
60292
60552
|
var init_tokenizer = __esmMin(() => {
|
|
60293
60553
|
init_tokens();
|
|
60294
60554
|
init_contexts();
|
|
60295
|
-
|
|
60555
|
+
nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
60296
60556
|
fullCharCodeAtPos = function(input, pos) {
|
|
60297
60557
|
if (String.fromCharCode)
|
|
60298
60558
|
return input.codePointAt(pos);
|
|
@@ -60389,7 +60649,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60389
60649
|
++this.state.pos;
|
|
60390
60650
|
break;
|
|
60391
60651
|
default:
|
|
60392
|
-
if (ch > 8 && ch < 14 || ch >= 5760 &&
|
|
60652
|
+
if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(ch))) {
|
|
60393
60653
|
++this.state.pos;
|
|
60394
60654
|
} else {
|
|
60395
60655
|
break loop;
|
|
@@ -60437,7 +60697,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60437
60697
|
string = slice(this.input, startPos, this.state.pos);
|
|
60438
60698
|
break;
|
|
60439
60699
|
}
|
|
60440
|
-
if (code > 8 && code < 14 || code >= 5760 &&
|
|
60700
|
+
if (code > 8 && code < 14 || code >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(code))) {
|
|
60441
60701
|
string = slice(this.input, startPos, this.state.pos);
|
|
60442
60702
|
break;
|
|
60443
60703
|
}
|
|
@@ -60449,7 +60709,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60449
60709
|
}
|
|
60450
60710
|
this.finishToken(nameTok, string);
|
|
60451
60711
|
};
|
|
60452
|
-
Tokenizer2.prototype.
|
|
60712
|
+
Tokenizer2.prototype.readIgnoreString = function() {
|
|
60453
60713
|
var startPos = this.state.pos, prevCode, string = "";
|
|
60454
60714
|
while (true) {
|
|
60455
60715
|
var code = this.getCode();
|
|
@@ -60488,7 +60748,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60488
60748
|
if (this.input.length <= this.state.pos) {
|
|
60489
60749
|
this.finishToken(eofTok);
|
|
60490
60750
|
} else if (this.curContext() === bracketDContext) {
|
|
60491
|
-
this.
|
|
60751
|
+
this.readIgnoreString();
|
|
60492
60752
|
} else if (code === 123) {
|
|
60493
60753
|
this.state.pos++;
|
|
60494
60754
|
this.finishToken(braceLTok);
|
|
@@ -61165,7 +61425,6 @@ var init_matcher = __esmMin(() => {
|
|
|
61165
61425
|
this.record = record;
|
|
61166
61426
|
}
|
|
61167
61427
|
Matcher2.prototype.next = function(node, pos) {
|
|
61168
|
-
var isLastToken = pos === this.path.length - 1;
|
|
61169
61428
|
if (node.after) {
|
|
61170
61429
|
return this.matchNode(node.after, pos);
|
|
61171
61430
|
}
|
|
@@ -61178,6 +61437,7 @@ var init_matcher = __esmMin(() => {
|
|
|
61178
61437
|
return !!this.take(pos);
|
|
61179
61438
|
}
|
|
61180
61439
|
}
|
|
61440
|
+
var isLastToken = pos === this.path.length - 1;
|
|
61181
61441
|
if (isLastToken) {
|
|
61182
61442
|
return !!this.take(pos);
|
|
61183
61443
|
} else {
|
|
@@ -61835,10 +62095,7 @@ var init_esm = __esmMin(() => {
|
|
|
61835
62095
|
return matcher;
|
|
61836
62096
|
};
|
|
61837
62097
|
Path2.isPathPattern = function(target) {
|
|
61838
|
-
|
|
61839
|
-
return true;
|
|
61840
|
-
}
|
|
61841
|
-
return false;
|
|
62098
|
+
return !!(isStr2(target) || isArr2(target) || isRegExp2(target) || isFn2(target) && target[isMatcher]);
|
|
61842
62099
|
};
|
|
61843
62100
|
Path2.transform = function(pattern, regexp, callback) {
|
|
61844
62101
|
return Path2.parse(pattern).transform(regexp, callback);
|
|
@@ -64292,10 +64549,10 @@ var init_registry = __esmMin(() => {
|
|
|
64292
64549
|
};
|
|
64293
64550
|
getISOCode = function(language) {
|
|
64294
64551
|
var isoCode = registry.locales.language;
|
|
64295
|
-
var lang = lowerCase(language);
|
|
64296
64552
|
if (registry.locales.messages[language]) {
|
|
64297
64553
|
return language;
|
|
64298
64554
|
}
|
|
64555
|
+
var lang = lowerCase(language);
|
|
64299
64556
|
each(registry.locales.messages, function(messages, key) {
|
|
64300
64557
|
var target = lowerCase(key);
|
|
64301
64558
|
if (target.indexOf(lang) > -1 || lang.indexOf(target) > -1) {
|
|
@@ -66402,7 +66659,7 @@ var init_internals2 = __esmMin(() => {
|
|
|
66402
66659
|
noEmit = false;
|
|
66403
66660
|
}
|
|
66404
66661
|
return __awaiter4(void 0, void 0, void 0, function() {
|
|
66405
|
-
var typedDefaultValue;
|
|
66662
|
+
var typedDefaultValue, initialValue;
|
|
66406
66663
|
return __generator4(this, function(_a2) {
|
|
66407
66664
|
switch (_a2.label) {
|
|
66408
66665
|
case 0:
|
|
@@ -66418,7 +66675,8 @@ var init_internals2 = __esmMin(() => {
|
|
|
66418
66675
|
if (options3 === null || options3 === void 0 ? void 0 : options3.forceClear) {
|
|
66419
66676
|
target.value = typedDefaultValue;
|
|
66420
66677
|
} else {
|
|
66421
|
-
|
|
66678
|
+
initialValue = target.initialValue;
|
|
66679
|
+
target.value = toJS(!isUndef(initialValue) ? initialValue : typedDefaultValue);
|
|
66422
66680
|
}
|
|
66423
66681
|
}
|
|
66424
66682
|
if (!noEmit) {
|
|
@@ -66462,15 +66720,10 @@ var init_internals2 = __esmMin(() => {
|
|
|
66462
66720
|
return value;
|
|
66463
66721
|
};
|
|
66464
66722
|
allowAssignDefaultValue = function(target, source) {
|
|
66465
|
-
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66466
|
-
var isEmptySource = source !== null && isEmpty(source);
|
|
66467
66723
|
var isValidTarget = !isUndef(target);
|
|
66468
66724
|
var isValidSource = !isUndef(source);
|
|
66469
66725
|
if (!isValidTarget) {
|
|
66470
|
-
|
|
66471
|
-
return true;
|
|
66472
|
-
}
|
|
66473
|
-
return false;
|
|
66726
|
+
return isValidSource;
|
|
66474
66727
|
}
|
|
66475
66728
|
if (typeof target === typeof source) {
|
|
66476
66729
|
if (target === "")
|
|
@@ -66478,12 +66731,10 @@ var init_internals2 = __esmMin(() => {
|
|
|
66478
66731
|
if (target === 0)
|
|
66479
66732
|
return false;
|
|
66480
66733
|
}
|
|
66734
|
+
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66735
|
+
var isEmptySource = source !== null && isEmpty(source);
|
|
66481
66736
|
if (isEmptyTarget) {
|
|
66482
|
-
|
|
66483
|
-
return false;
|
|
66484
|
-
} else {
|
|
66485
|
-
return true;
|
|
66486
|
-
}
|
|
66737
|
+
return !isEmptySource;
|
|
66487
66738
|
}
|
|
66488
66739
|
return false;
|
|
66489
66740
|
};
|
|
@@ -67388,8 +67639,14 @@ var init_Field = __esmMin(() => {
|
|
|
67388
67639
|
return _this.value;
|
|
67389
67640
|
}, function(value) {
|
|
67390
67641
|
_this.notify(LifeCycleTypes.ON_FIELD_VALUE_CHANGE);
|
|
67391
|
-
if (isValid(value)
|
|
67392
|
-
|
|
67642
|
+
if (isValid(value)) {
|
|
67643
|
+
if (_this.selfModified && !_this.caches.inputting) {
|
|
67644
|
+
validateSelf(_this);
|
|
67645
|
+
}
|
|
67646
|
+
if (!isEmpty(value) && _this.display === "none") {
|
|
67647
|
+
_this.caches.value = toJS(value);
|
|
67648
|
+
_this.form.deleteValuesIn(_this.path);
|
|
67649
|
+
}
|
|
67393
67650
|
}
|
|
67394
67651
|
}), createReaction(function() {
|
|
67395
67652
|
return _this.initialValue;
|
|
@@ -67400,16 +67657,14 @@ var init_Field = __esmMin(() => {
|
|
|
67400
67657
|
}, function(display) {
|
|
67401
67658
|
var _a2;
|
|
67402
67659
|
var value = _this.value;
|
|
67403
|
-
if (display
|
|
67404
|
-
if (
|
|
67660
|
+
if (display !== "none") {
|
|
67661
|
+
if (!isValid(value)) {
|
|
67405
67662
|
_this.setValue(_this.caches.value);
|
|
67406
67663
|
_this.caches.value = void 0;
|
|
67407
67664
|
}
|
|
67408
67665
|
} else {
|
|
67409
67666
|
_this.caches.value = (_a2 = toJS(value)) !== null && _a2 !== void 0 ? _a2 : toJS(_this.initialValue);
|
|
67410
|
-
|
|
67411
|
-
_this.form.deleteValuesIn(_this.path);
|
|
67412
|
-
}
|
|
67667
|
+
_this.form.deleteValuesIn(_this.path);
|
|
67413
67668
|
}
|
|
67414
67669
|
if (display === "none" || display === "hidden") {
|
|
67415
67670
|
_this.setFeedback({
|
|
@@ -68143,13 +68398,14 @@ var init_Form = __esmMin(() => {
|
|
|
68143
68398
|
if (!isPlainObj(values))
|
|
68144
68399
|
return;
|
|
68145
68400
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68146
|
-
|
|
68401
|
+
merge(_this.values, values, {
|
|
68147
68402
|
arrayMerge: function(target, source) {
|
|
68148
68403
|
return source;
|
|
68149
|
-
}
|
|
68404
|
+
},
|
|
68405
|
+
assign: true
|
|
68150
68406
|
});
|
|
68151
68407
|
} else if (strategy === "shallowMerge") {
|
|
68152
|
-
|
|
68408
|
+
Object.assign(_this.values, values);
|
|
68153
68409
|
} else {
|
|
68154
68410
|
_this.values = values;
|
|
68155
68411
|
}
|
|
@@ -68161,13 +68417,14 @@ var init_Form = __esmMin(() => {
|
|
|
68161
68417
|
if (!isPlainObj(initialValues))
|
|
68162
68418
|
return;
|
|
68163
68419
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68164
|
-
|
|
68420
|
+
merge(_this.initialValues, initialValues, {
|
|
68165
68421
|
arrayMerge: function(target, source) {
|
|
68166
68422
|
return source;
|
|
68167
|
-
}
|
|
68423
|
+
},
|
|
68424
|
+
assign: true
|
|
68168
68425
|
});
|
|
68169
68426
|
} else if (strategy === "shallowMerge") {
|
|
68170
|
-
|
|
68427
|
+
Object.assign(_this.initialValues, initialValues);
|
|
68171
68428
|
} else {
|
|
68172
68429
|
_this.initialValues = initialValues;
|
|
68173
68430
|
}
|
|
@@ -68616,6 +68873,7 @@ function createFormEffect(type) {
|
|
|
68616
68873
|
}
|
|
68617
68874
|
var onFormInit, onFormMount, onFormUnmount, onFormValuesChange, onFormInitialValuesChange, onFormInputChange, onFormSubmit, onFormReset, onFormSubmitStart, onFormSubmitEnd, onFormSubmitSuccess, onFormSubmitFailed, onFormSubmitValidateStart, onFormSubmitValidateSuccess, onFormSubmitValidateFailed, onFormSubmitValidateEnd, onFormValidateStart, onFormValidateSuccess, onFormValidateFailed, onFormValidateEnd, onFormGraphChange, onFormLoading;
|
|
68618
68875
|
var init_onFormEffects = __esmMin(() => {
|
|
68876
|
+
init_esm2();
|
|
68619
68877
|
init_esm3();
|
|
68620
68878
|
init_types4();
|
|
68621
68879
|
init_effective();
|
|
@@ -71740,7 +71998,6 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
71740
71998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71741
71999
|
exports.animationFrames = void 0;
|
|
71742
72000
|
var Observable_1 = require_Observable();
|
|
71743
|
-
var Subscription_1 = require_Subscription();
|
|
71744
72001
|
var performanceTimestampProvider_1 = require_performanceTimestampProvider();
|
|
71745
72002
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
|
71746
72003
|
function animationFrames(timestampProvider) {
|
|
@@ -71748,23 +72005,29 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
71748
72005
|
}
|
|
71749
72006
|
exports.animationFrames = animationFrames;
|
|
71750
72007
|
function animationFramesFactory(timestampProvider) {
|
|
71751
|
-
var schedule = animationFrameProvider_1.animationFrameProvider.schedule;
|
|
71752
72008
|
return new Observable_1.Observable(function(subscriber) {
|
|
71753
|
-
var subscription = new Subscription_1.Subscription();
|
|
71754
72009
|
var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
|
|
71755
72010
|
var start = provider.now();
|
|
71756
|
-
var
|
|
71757
|
-
|
|
71758
|
-
subscriber.next({
|
|
71759
|
-
timestamp: timestampProvider ? now : timestamp,
|
|
71760
|
-
elapsed: now - start
|
|
71761
|
-
});
|
|
72011
|
+
var id = 0;
|
|
72012
|
+
var run = function() {
|
|
71762
72013
|
if (!subscriber.closed) {
|
|
71763
|
-
|
|
72014
|
+
id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) {
|
|
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);
|
|
71764
72029
|
}
|
|
71765
72030
|
};
|
|
71766
|
-
subscription.add(schedule(run));
|
|
71767
|
-
return subscription;
|
|
71768
72031
|
});
|
|
71769
72032
|
}
|
|
71770
72033
|
var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
|
|
@@ -72333,6 +72596,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72333
72596
|
return _this;
|
|
72334
72597
|
}
|
|
72335
72598
|
AsyncAction2.prototype.schedule = function(state, delay) {
|
|
72599
|
+
var _a2;
|
|
72336
72600
|
if (delay === void 0) {
|
|
72337
72601
|
delay = 0;
|
|
72338
72602
|
}
|
|
@@ -72347,7 +72611,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72347
72611
|
}
|
|
72348
72612
|
this.pending = true;
|
|
72349
72613
|
this.delay = delay;
|
|
72350
|
-
this.id = this.id
|
|
72614
|
+
this.id = (_a2 = this.id) !== null && _a2 !== void 0 ? _a2 : this.requestAsyncId(scheduler, this.id, delay);
|
|
72351
72615
|
return this;
|
|
72352
72616
|
};
|
|
72353
72617
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
@@ -72363,7 +72627,9 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72363
72627
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
72364
72628
|
return id;
|
|
72365
72629
|
}
|
|
72366
|
-
|
|
72630
|
+
if (id != null) {
|
|
72631
|
+
intervalProvider_1.intervalProvider.clearInterval(id);
|
|
72632
|
+
}
|
|
72367
72633
|
return void 0;
|
|
72368
72634
|
};
|
|
72369
72635
|
AsyncAction2.prototype.execute = function(state, delay) {
|
|
@@ -72541,15 +72807,15 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
|
72541
72807
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0)));
|
|
72542
72808
|
};
|
|
72543
72809
|
AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
72810
|
+
var _a2;
|
|
72544
72811
|
if (delay === void 0) {
|
|
72545
72812
|
delay = 0;
|
|
72546
72813
|
}
|
|
72547
|
-
if (delay != null
|
|
72814
|
+
if (delay != null ? delay > 0 : this.delay > 0) {
|
|
72548
72815
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
72549
72816
|
}
|
|
72550
|
-
|
|
72551
|
-
|
|
72552
|
-
})) {
|
|
72817
|
+
var actions = scheduler.actions;
|
|
72818
|
+
if (id != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id) {
|
|
72553
72819
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
72554
72820
|
scheduler._scheduled = void 0;
|
|
72555
72821
|
}
|
|
@@ -72618,7 +72884,6 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
|
72618
72884
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
72619
72885
|
_this.actions = [];
|
|
72620
72886
|
_this._active = false;
|
|
72621
|
-
_this._scheduled = void 0;
|
|
72622
72887
|
return _this;
|
|
72623
72888
|
}
|
|
72624
72889
|
AsyncScheduler2.prototype.flush = function(action2) {
|
|
@@ -72775,7 +73040,8 @@ var require_QueueAction = __commonJSMin((exports) => {
|
|
|
72775
73040
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
72776
73041
|
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
|
72777
73042
|
}
|
|
72778
|
-
|
|
73043
|
+
scheduler.flush(this);
|
|
73044
|
+
return 0;
|
|
72779
73045
|
};
|
|
72780
73046
|
return QueueAction2;
|
|
72781
73047
|
}(AsyncAction_1.AsyncAction);
|
|
@@ -72873,15 +73139,15 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
|
72873
73139
|
}));
|
|
72874
73140
|
};
|
|
72875
73141
|
AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
73142
|
+
var _a2;
|
|
72876
73143
|
if (delay === void 0) {
|
|
72877
73144
|
delay = 0;
|
|
72878
73145
|
}
|
|
72879
|
-
if (delay != null
|
|
73146
|
+
if (delay != null ? delay > 0 : this.delay > 0) {
|
|
72880
73147
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
72881
73148
|
}
|
|
72882
|
-
|
|
72883
|
-
|
|
72884
|
-
})) {
|
|
73149
|
+
var actions = scheduler.actions;
|
|
73150
|
+
if (id != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id) {
|
|
72885
73151
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
72886
73152
|
scheduler._scheduled = void 0;
|
|
72887
73153
|
}
|
|
@@ -73060,7 +73326,7 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
73060
73326
|
var actions = scheduler.actions;
|
|
73061
73327
|
actions.push(this);
|
|
73062
73328
|
actions.sort(VirtualAction2.sortActions);
|
|
73063
|
-
return
|
|
73329
|
+
return 1;
|
|
73064
73330
|
};
|
|
73065
73331
|
VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
73066
73332
|
if (delay === void 0) {
|
|
@@ -76159,7 +76425,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
76159
76425
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76160
76426
|
exports.connect = void 0;
|
|
76161
76427
|
var Subject_1 = require_Subject();
|
|
76162
|
-
var
|
|
76428
|
+
var innerFrom_1 = require_innerFrom();
|
|
76163
76429
|
var lift_1 = require_lift();
|
|
76164
76430
|
var fromSubscribable_1 = require_fromSubscribable();
|
|
76165
76431
|
var DEFAULT_CONFIG = {
|
|
@@ -76174,7 +76440,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
76174
76440
|
var connector = config.connector;
|
|
76175
76441
|
return lift_1.operate(function(source, subscriber) {
|
|
76176
76442
|
var subject = connector();
|
|
76177
|
-
|
|
76443
|
+
innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
|
|
76178
76444
|
subscriber.add(source.subscribe(subject));
|
|
76179
76445
|
});
|
|
76180
76446
|
}
|
|
@@ -76590,39 +76856,6 @@ var require_every = __commonJSMin((exports) => {
|
|
|
76590
76856
|
}
|
|
76591
76857
|
exports.every = every;
|
|
76592
76858
|
});
|
|
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
|
-
});
|
|
76626
76859
|
var require_exhaustMap = __commonJSMin((exports) => {
|
|
76627
76860
|
"use strict";
|
|
76628
76861
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -76661,6 +76894,24 @@ var require_exhaustMap = __commonJSMin((exports) => {
|
|
|
76661
76894
|
}
|
|
76662
76895
|
exports.exhaustMap = exhaustMap;
|
|
76663
76896
|
});
|
|
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
|
+
});
|
|
76664
76915
|
var require_expand = __commonJSMin((exports) => {
|
|
76665
76916
|
"use strict";
|
|
76666
76917
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -77653,8 +77904,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77653
77904
|
};
|
|
77654
77905
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77655
77906
|
exports.share = void 0;
|
|
77656
|
-
var
|
|
77657
|
-
var take_1 = require_take();
|
|
77907
|
+
var innerFrom_1 = require_innerFrom();
|
|
77658
77908
|
var Subject_1 = require_Subject();
|
|
77659
77909
|
var Subscriber_1 = require_Subscriber();
|
|
77660
77910
|
var lift_1 = require_lift();
|
|
@@ -77666,19 +77916,19 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77666
77916
|
return new Subject_1.Subject();
|
|
77667
77917
|
} : _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;
|
|
77668
77918
|
return function(wrapperSource) {
|
|
77669
|
-
var connection
|
|
77670
|
-
var resetConnection
|
|
77671
|
-
var subject
|
|
77919
|
+
var connection;
|
|
77920
|
+
var resetConnection;
|
|
77921
|
+
var subject;
|
|
77672
77922
|
var refCount = 0;
|
|
77673
77923
|
var hasCompleted = false;
|
|
77674
77924
|
var hasErrored = false;
|
|
77675
77925
|
var cancelReset = function() {
|
|
77676
77926
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
77677
|
-
resetConnection =
|
|
77927
|
+
resetConnection = void 0;
|
|
77678
77928
|
};
|
|
77679
77929
|
var reset = function() {
|
|
77680
77930
|
cancelReset();
|
|
77681
|
-
connection = subject =
|
|
77931
|
+
connection = subject = void 0;
|
|
77682
77932
|
hasCompleted = hasErrored = false;
|
|
77683
77933
|
};
|
|
77684
77934
|
var resetAndUnsubscribe = function() {
|
|
@@ -77699,7 +77949,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77699
77949
|
}
|
|
77700
77950
|
});
|
|
77701
77951
|
dest.subscribe(subscriber);
|
|
77702
|
-
if (!connection) {
|
|
77952
|
+
if (!connection && refCount > 0) {
|
|
77703
77953
|
connection = new Subscriber_1.SafeSubscriber({
|
|
77704
77954
|
next: function(value) {
|
|
77705
77955
|
return dest.next(value);
|
|
@@ -77717,7 +77967,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77717
77967
|
dest.complete();
|
|
77718
77968
|
}
|
|
77719
77969
|
});
|
|
77720
|
-
|
|
77970
|
+
innerFrom_1.innerFrom(source).subscribe(connection);
|
|
77721
77971
|
}
|
|
77722
77972
|
})(wrapperSource);
|
|
77723
77973
|
};
|
|
@@ -77730,14 +77980,18 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77730
77980
|
}
|
|
77731
77981
|
if (on === true) {
|
|
77732
77982
|
reset();
|
|
77733
|
-
return
|
|
77983
|
+
return;
|
|
77734
77984
|
}
|
|
77735
77985
|
if (on === false) {
|
|
77736
|
-
return
|
|
77986
|
+
return;
|
|
77737
77987
|
}
|
|
77738
|
-
|
|
77739
|
-
|
|
77988
|
+
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
77989
|
+
next: function() {
|
|
77990
|
+
onSubscriber.unsubscribe();
|
|
77991
|
+
reset();
|
|
77992
|
+
}
|
|
77740
77993
|
});
|
|
77994
|
+
return on.apply(void 0, __spreadArray8([], __read9(args))).subscribe(onSubscriber);
|
|
77741
77995
|
}
|
|
77742
77996
|
});
|
|
77743
77997
|
var require_shareReplay = __commonJSMin((exports) => {
|
|
@@ -82170,6 +82424,1237 @@ var require_string_width = __commonJSMin((exports, module2) => {
|
|
|
82170
82424
|
module2.exports = stringWidth;
|
|
82171
82425
|
module2.exports.default = stringWidth;
|
|
82172
82426
|
});
|
|
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
|
+
});
|
|
82173
83658
|
var spinners_exports = {};
|
|
82174
83659
|
__export2(spinners_exports, {
|
|
82175
83660
|
aesthetic: () => aesthetic,
|
|
@@ -82196,6 +83681,7 @@ __export2(spinners_exports, {
|
|
|
82196
83681
|
dots10: () => dots10,
|
|
82197
83682
|
dots11: () => dots11,
|
|
82198
83683
|
dots12: () => dots12,
|
|
83684
|
+
dots13: () => dots13,
|
|
82199
83685
|
dots2: () => dots2,
|
|
82200
83686
|
dots3: () => dots3,
|
|
82201
83687
|
dots4: () => dots4,
|
|
@@ -82229,6 +83715,7 @@ __export2(spinners_exports, {
|
|
|
82229
83715
|
point: () => point,
|
|
82230
83716
|
pong: () => pong,
|
|
82231
83717
|
runner: () => runner,
|
|
83718
|
+
sand: () => sand,
|
|
82232
83719
|
shark: () => shark,
|
|
82233
83720
|
simpleDots: () => simpleDots,
|
|
82234
83721
|
simpleDotsScrolling: () => simpleDotsScrolling,
|
|
@@ -82256,7 +83743,7 @@ __export2(spinners_exports, {
|
|
|
82256
83743
|
triangle: () => triangle,
|
|
82257
83744
|
weather: () => weather
|
|
82258
83745
|
});
|
|
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;
|
|
83746
|
+
var dots, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots9, dots10, dots11, dots12, dots13, dots8Bit, sand, 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;
|
|
82260
83747
|
var init_spinners = __esmMin(() => {
|
|
82261
83748
|
dots = {
|
|
82262
83749
|
interval: 80,
|
|
@@ -82533,6 +84020,19 @@ var init_spinners = __esmMin(() => {
|
|
|
82533
84020
|
"\u2800\u2840"
|
|
82534
84021
|
]
|
|
82535
84022
|
};
|
|
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
|
+
};
|
|
82536
84036
|
dots8Bit = {
|
|
82537
84037
|
interval: 80,
|
|
82538
84038
|
frames: [
|
|
@@ -82794,6 +84294,46 @@ var init_spinners = __esmMin(() => {
|
|
|
82794
84294
|
"\u28FF"
|
|
82795
84295
|
]
|
|
82796
84296
|
};
|
|
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
|
+
};
|
|
82797
84337
|
line = {
|
|
82798
84338
|
interval: 130,
|
|
82799
84339
|
frames: [
|
|
@@ -83684,7 +85224,9 @@ var init_spinners = __esmMin(() => {
|
|
|
83684
85224
|
dots10,
|
|
83685
85225
|
dots11,
|
|
83686
85226
|
dots12,
|
|
85227
|
+
dots13,
|
|
83687
85228
|
dots8Bit,
|
|
85229
|
+
sand,
|
|
83688
85230
|
line,
|
|
83689
85231
|
line2,
|
|
83690
85232
|
pipe,
|
|
@@ -87597,6 +89139,7 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
87597
89139
|
"use strict";
|
|
87598
89140
|
var util = require_readline();
|
|
87599
89141
|
var cliWidth = require_cli_width();
|
|
89142
|
+
var wrapAnsi = require_wrap_ansi();
|
|
87600
89143
|
var stripAnsi2 = require_strip_ansi2();
|
|
87601
89144
|
var stringWidth = require_string_width();
|
|
87602
89145
|
var ora = require_ora2();
|
|
@@ -87691,12 +89234,7 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
87691
89234
|
return width;
|
|
87692
89235
|
}
|
|
87693
89236
|
breakLines(lines, width = this.normalizedCliWidth()) {
|
|
87694
|
-
|
|
87695
|
-
return lines.map((line3) => {
|
|
87696
|
-
const chunk = line3.match(regex2);
|
|
87697
|
-
chunk.pop();
|
|
87698
|
-
return chunk || "";
|
|
87699
|
-
});
|
|
89237
|
+
return lines.map((line3) => wrapAnsi(line3, width, { trim: false, hard: true }).split("\n"));
|
|
87700
89238
|
}
|
|
87701
89239
|
forceLineReturn(content, width = this.normalizedCliWidth()) {
|
|
87702
89240
|
return this.breakLines(content.split("\n"), width).flat().join("\n");
|
|
@@ -88067,7 +89605,7 @@ var require_input = __commonJSMin((exports, module2) => {
|
|
|
88067
89605
|
this.render(isValid5);
|
|
88068
89606
|
}
|
|
88069
89607
|
onKeypress() {
|
|
88070
|
-
this.
|
|
89608
|
+
this.status = "touched";
|
|
88071
89609
|
this.render();
|
|
88072
89610
|
}
|
|
88073
89611
|
};
|
|
@@ -88080,7 +89618,7 @@ var require_number = __commonJSMin((exports, module2) => {
|
|
|
88080
89618
|
filterInput(input) {
|
|
88081
89619
|
if (input && typeof input === "string") {
|
|
88082
89620
|
input = input.trim();
|
|
88083
|
-
const numberMatch = input.match(/(^-?\d
|
|
89621
|
+
const numberMatch = input.match(/(^-?\d+|^-?\d+\.\d*|^\d*\.\d+)(e\d+)?$/);
|
|
88084
89622
|
if (numberMatch) {
|
|
88085
89623
|
return Number(numberMatch[0]);
|
|
88086
89624
|
}
|
|
@@ -141798,6 +143336,7 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
141798
143336
|
return target;
|
|
141799
143337
|
}
|
|
141800
143338
|
function _defineProperty2(obj, key, value) {
|
|
143339
|
+
key = _toPropertyKey2(key);
|
|
141801
143340
|
if (key in obj) {
|
|
141802
143341
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
141803
143342
|
} else {
|
|
@@ -141805,6 +143344,22 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
141805
143344
|
}
|
|
141806
143345
|
return obj;
|
|
141807
143346
|
}
|
|
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
|
+
}
|
|
141808
143363
|
var MWANewAction2 = async (options3) => {
|
|
141809
143364
|
const {
|
|
141810
143365
|
locale = "zh",
|
|
@@ -141926,6 +143481,7 @@ var require_module = __commonJSMin((exports) => {
|
|
|
141926
143481
|
return target;
|
|
141927
143482
|
}
|
|
141928
143483
|
function _defineProperty2(obj, key, value) {
|
|
143484
|
+
key = _toPropertyKey2(key);
|
|
141929
143485
|
if (key in obj) {
|
|
141930
143486
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
141931
143487
|
} else {
|
|
@@ -141933,6 +143489,22 @@ var require_module = __commonJSMin((exports) => {
|
|
|
141933
143489
|
}
|
|
141934
143490
|
return obj;
|
|
141935
143491
|
}
|
|
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
|
+
}
|
|
141936
143508
|
var ModuleNewAction2 = async (options3) => {
|
|
141937
143509
|
const {
|
|
141938
143510
|
locale = "zh",
|