@modern-js/repo-generator 0.0.0-next-20221207112009 → 0.0.0-next-20221207142334
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 +2161 -580
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -30614,13 +30614,13 @@ var require_browsers2 = __commonJSMin((exports, module2) => {
|
|
|
30614
30614
|
module2.exports.browsers = require_browsers();
|
|
30615
30615
|
});
|
|
30616
30616
|
var require_browserVersions = __commonJSMin((exports, module2) => {
|
|
30617
|
-
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",
|
|
30617
|
+
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" };
|
|
30618
30618
|
});
|
|
30619
30619
|
var require_browserVersions2 = __commonJSMin((exports, module2) => {
|
|
30620
30620
|
module2.exports.browserVersions = require_browserVersions();
|
|
30621
30621
|
});
|
|
30622
30622
|
var require_agents = __commonJSMin((exports, module2) => {
|
|
30623
|
-
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 } } };
|
|
30623
|
+
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0, BC: 0 }, B: "webkit", C: ["", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC", "BC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: 166968e4, vB: null, AC: null, BC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, CC: 0, wB: 8692e-6, DC: 0.011922, EC: 456e-5, FC: 4283e-6, GC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, HC: 0.305998, IC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, JC: 0, KC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "CC", "wB", "I", "r", "DC", "J", "EC", "D", "FC", "E", "F", "GC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "HC", "G", "IC", "zB", "0B", "1B", "2B", "pB", "3B", "JC", "KC", ""], E: "Safari", F: { CC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, DC: 131112e4, J: 1343174400, EC: 13824e5, D: 13824e5, FC: 1410998400, E: 1413417600, F: 1443657600, GC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, HC: 1619395200, G: 1632096e3, IC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, JC: null, KC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, LC: 685e-5, MC: 0, NC: 8392e-6, OC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, PC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "LC", "MC", "NC", "OC", "B", "nB", "4B", "PC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, LC: 1223424e3, MC: 1251763200, NC: 1267488e3, OC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, PC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", LC: "o", MC: "o", NC: "o", OC: "o", nB: "o", "4B": "o", PC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, QC: 0, "5B": 319488e-8, RC: 479232e-8, SC: 319488e-8, TC: 0.014377, UC: 479232e-8, VC: 0.0159744, WC: 0.0607028, XC: 319488e-8, YC: 0.0718849, ZC: 0.0255591, aC: 0.0223642, bC: 0.0223642, cC: 0.408945, dC: 0.0287539, eC: 958465e-8, fC: 0.0383386, gC: 0.119808, hC: 0.354632, iC: 0.773162, jC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "QC", "5B", "RC", "SC", "TC", "E", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "jC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, QC: 1283904e3, "5B": 1299628800, RC: 1331078400, SC: 1359331200, TC: 1394409600, E: 1410912e3, UC: 1413763200, VC: 1442361600, WC: 1458518400, XC: 1473724800, YC: 1490572800, ZC: 1505779200, aC: 1522281600, bC: 1537142400, cC: 1553472e3, dC: 1568851200, eC: 1572220800, fC: 1580169600, gC: 1585008e3, hC: 1600214400, iC: 1619395200, jC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { kC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "", "", ""], E: "Opera Mini", F: { kC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, lC: 0, mC: 0, nC: 0, oC: 0.0297805, "5B": 0.0893414, pC: 0, qC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "lC", "mC", "nC", "qB", "I", "oC", "5B", "pC", "qC", "H", "", "", ""], E: "Android Browser", F: { lC: 1256515200, mC: 1274313600, nC: 1291593600, qB: 1298332800, I: 1318896e3, oC: 1341792e3, "5B": 1374624e3, pC: 1386547200, qC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { rC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "rC", "", "", ""], E: "UC Browser for Android", F: { rC: 1634688e3 }, D: { rC: "webkit" } }, P: { A: { I: 0.146868, sC: 0.0103543, tC: 0.010304, uC: 0.0629436, vC: 0.0103584, wC: 0.0104443, xB: 0.0105043, xC: 0.0314718, yC: 0.0104906, zC: 0.052453, "0C": 0.052453, "1C": 0.0314718, pB: 0.0944154, "2C": 0.157359, "3C": 2.15057, "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "sC", "tC", "uC", "vC", "wC", "xB", "xC", "yC", "zC", "0C", "1C", "pB", "2C", "3C", "4C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, sC: 1481846400, tC: 1509408e3, uC: 1528329600, vC: 1546128e3, wC: 1554163200, xB: 1567900800, xC: 1582588800, yC: 1593475200, zC: 1605657600, "0C": 1618531200, "1C": 1629072e3, pB: 1640736e3, "2C": 1651708800, "3C": 1659657600, "4C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "5C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "Baidu Browser", F: { "5C": 1663027200 } }, S: { A: { "6C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6C", "", "", ""], E: "KaiOS Browser", F: { "6C": 1527811200 } } };
|
|
30624
30624
|
});
|
|
30625
30625
|
var require_agents2 = __commonJSMin((exports, module2) => {
|
|
30626
30626
|
"use strict";
|
|
@@ -45979,6 +45979,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
45979
45979
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
45980
45980
|
};
|
|
45981
45981
|
});
|
|
45982
|
+
var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
|
|
45982
45983
|
var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
|
|
45983
45984
|
var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
|
|
45984
45985
|
var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
|
|
@@ -46011,10 +46012,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46011
46012
|
if (this._ending) {
|
|
46012
46013
|
throw new WriteAfterEndError();
|
|
46013
46014
|
}
|
|
46014
|
-
if (!(
|
|
46015
|
+
if (!isString3(data) && !isBuffer(data)) {
|
|
46015
46016
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
46016
46017
|
}
|
|
46017
|
-
if (
|
|
46018
|
+
if (isFunction4(encoding)) {
|
|
46018
46019
|
callback = encoding;
|
|
46019
46020
|
encoding = null;
|
|
46020
46021
|
}
|
|
@@ -46034,10 +46035,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46034
46035
|
}
|
|
46035
46036
|
};
|
|
46036
46037
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
46037
|
-
if (
|
|
46038
|
+
if (isFunction4(data)) {
|
|
46038
46039
|
callback = data;
|
|
46039
46040
|
data = encoding = null;
|
|
46040
|
-
} else if (
|
|
46041
|
+
} else if (isFunction4(encoding)) {
|
|
46041
46042
|
callback = encoding;
|
|
46042
46043
|
encoding = null;
|
|
46043
46044
|
}
|
|
@@ -46161,7 +46162,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46161
46162
|
for (var event of events) {
|
|
46162
46163
|
request.on(event, eventHandlers[event]);
|
|
46163
46164
|
}
|
|
46164
|
-
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this.
|
|
46165
|
+
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
|
|
46165
46166
|
if (this._isRedirect) {
|
|
46166
46167
|
var i = 0;
|
|
46167
46168
|
var self3 = this;
|
|
@@ -46226,7 +46227,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46226
46227
|
try {
|
|
46227
46228
|
redirectUrl = url.resolve(currentUrl, location);
|
|
46228
46229
|
} catch (cause) {
|
|
46229
|
-
this.emit("error", new RedirectionError(cause));
|
|
46230
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
46230
46231
|
return;
|
|
46231
46232
|
}
|
|
46232
46233
|
debug("redirecting to", redirectUrl);
|
|
@@ -46236,7 +46237,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46236
46237
|
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
46237
46238
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
46238
46239
|
}
|
|
46239
|
-
if (
|
|
46240
|
+
if (isFunction4(beforeRedirect)) {
|
|
46240
46241
|
var responseDetails = {
|
|
46241
46242
|
headers: response.headers,
|
|
46242
46243
|
statusCode
|
|
@@ -46257,7 +46258,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46257
46258
|
try {
|
|
46258
46259
|
this._performRequest();
|
|
46259
46260
|
} catch (cause) {
|
|
46260
|
-
this.emit("error", new RedirectionError(cause));
|
|
46261
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
46261
46262
|
}
|
|
46262
46263
|
};
|
|
46263
46264
|
function wrap(protocols) {
|
|
@@ -46271,13 +46272,17 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46271
46272
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
46272
46273
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
46273
46274
|
function request(input, options3, callback) {
|
|
46274
|
-
if (
|
|
46275
|
-
var
|
|
46275
|
+
if (isString3(input)) {
|
|
46276
|
+
var parsed;
|
|
46276
46277
|
try {
|
|
46277
|
-
|
|
46278
|
+
parsed = urlToOptions(new URL(input));
|
|
46278
46279
|
} catch (err) {
|
|
46279
|
-
|
|
46280
|
+
parsed = url.parse(input);
|
|
46281
|
+
}
|
|
46282
|
+
if (!isString3(parsed.protocol)) {
|
|
46283
|
+
throw new InvalidUrlError({ input });
|
|
46280
46284
|
}
|
|
46285
|
+
input = parsed;
|
|
46281
46286
|
} else if (URL && input instanceof URL) {
|
|
46282
46287
|
input = urlToOptions(input);
|
|
46283
46288
|
} else {
|
|
@@ -46285,7 +46290,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46285
46290
|
options3 = input;
|
|
46286
46291
|
input = { protocol };
|
|
46287
46292
|
}
|
|
46288
|
-
if (
|
|
46293
|
+
if (isFunction4(options3)) {
|
|
46289
46294
|
callback = options3;
|
|
46290
46295
|
options3 = null;
|
|
46291
46296
|
}
|
|
@@ -46294,6 +46299,9 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46294
46299
|
maxBodyLength: exports2.maxBodyLength
|
|
46295
46300
|
}, input, options3);
|
|
46296
46301
|
options3.nativeProtocols = nativeProtocols;
|
|
46302
|
+
if (!isString3(options3.host) && !isString3(options3.hostname)) {
|
|
46303
|
+
options3.hostname = "::1";
|
|
46304
|
+
}
|
|
46297
46305
|
assert.equal(options3.protocol, protocol, "protocol mismatch");
|
|
46298
46306
|
debug("options", options3);
|
|
46299
46307
|
return new RedirectableRequest(options3, callback);
|
|
@@ -46337,20 +46345,16 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46337
46345
|
}
|
|
46338
46346
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
46339
46347
|
}
|
|
46340
|
-
function createErrorType(code,
|
|
46341
|
-
function CustomError(
|
|
46348
|
+
function createErrorType(code, message, baseClass) {
|
|
46349
|
+
function CustomError(properties) {
|
|
46342
46350
|
Error.captureStackTrace(this, this.constructor);
|
|
46343
|
-
|
|
46344
|
-
|
|
46345
|
-
|
|
46346
|
-
this.message = defaultMessage + ": " + cause.message;
|
|
46347
|
-
this.cause = cause;
|
|
46348
|
-
}
|
|
46351
|
+
Object.assign(this, properties || {});
|
|
46352
|
+
this.code = code;
|
|
46353
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
46349
46354
|
}
|
|
46350
|
-
CustomError.prototype = new Error();
|
|
46355
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
46351
46356
|
CustomError.prototype.constructor = CustomError;
|
|
46352
46357
|
CustomError.prototype.name = "Error [" + code + "]";
|
|
46353
|
-
CustomError.prototype.code = code;
|
|
46354
46358
|
return CustomError;
|
|
46355
46359
|
}
|
|
46356
46360
|
function abortRequest(request) {
|
|
@@ -46361,9 +46365,19 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46361
46365
|
request.abort();
|
|
46362
46366
|
}
|
|
46363
46367
|
function isSubdomain(subdomain, domain) {
|
|
46364
|
-
|
|
46368
|
+
assert(isString3(subdomain) && isString3(domain));
|
|
46369
|
+
var dot = subdomain.length - domain.length - 1;
|
|
46365
46370
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
46366
46371
|
}
|
|
46372
|
+
function isString3(value) {
|
|
46373
|
+
return typeof value === "string" || value instanceof String;
|
|
46374
|
+
}
|
|
46375
|
+
function isFunction4(value) {
|
|
46376
|
+
return typeof value === "function";
|
|
46377
|
+
}
|
|
46378
|
+
function isBuffer(value) {
|
|
46379
|
+
return typeof value === "object" && "length" in value;
|
|
46380
|
+
}
|
|
46367
46381
|
module2.exports = wrap({ http, https });
|
|
46368
46382
|
module2.exports.wrap = wrap;
|
|
46369
46383
|
});
|
|
@@ -48193,8 +48207,9 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48193
48207
|
}
|
|
48194
48208
|
this.path = normPath(header.path);
|
|
48195
48209
|
this.mode = header.mode;
|
|
48196
|
-
if (this.mode)
|
|
48210
|
+
if (this.mode) {
|
|
48197
48211
|
this.mode = this.mode & 4095;
|
|
48212
|
+
}
|
|
48198
48213
|
this.uid = header.uid;
|
|
48199
48214
|
this.gid = header.gid;
|
|
48200
48215
|
this.uname = header.uname;
|
|
@@ -48206,29 +48221,35 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48206
48221
|
this.linkpath = normPath(header.linkpath);
|
|
48207
48222
|
this.uname = header.uname;
|
|
48208
48223
|
this.gname = header.gname;
|
|
48209
|
-
if (ex)
|
|
48224
|
+
if (ex) {
|
|
48210
48225
|
this[SLURP](ex);
|
|
48211
|
-
|
|
48226
|
+
}
|
|
48227
|
+
if (gex) {
|
|
48212
48228
|
this[SLURP](gex, true);
|
|
48229
|
+
}
|
|
48213
48230
|
}
|
|
48214
48231
|
write(data) {
|
|
48215
48232
|
const writeLen = data.length;
|
|
48216
|
-
if (writeLen > this.blockRemain)
|
|
48233
|
+
if (writeLen > this.blockRemain) {
|
|
48217
48234
|
throw new Error("writing more to entry than is appropriate");
|
|
48235
|
+
}
|
|
48218
48236
|
const r = this.remain;
|
|
48219
48237
|
const br = this.blockRemain;
|
|
48220
48238
|
this.remain = Math.max(0, r - writeLen);
|
|
48221
48239
|
this.blockRemain = Math.max(0, br - writeLen);
|
|
48222
|
-
if (this.ignore)
|
|
48240
|
+
if (this.ignore) {
|
|
48223
48241
|
return true;
|
|
48224
|
-
|
|
48242
|
+
}
|
|
48243
|
+
if (r >= writeLen) {
|
|
48225
48244
|
return super.write(data);
|
|
48245
|
+
}
|
|
48226
48246
|
return super.write(data.slice(0, r));
|
|
48227
48247
|
}
|
|
48228
48248
|
[SLURP](ex, global2) {
|
|
48229
48249
|
for (const k in ex) {
|
|
48230
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48250
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
|
48231
48251
|
this[k] = k === "path" || k === "linkpath" ? normPath(ex[k]) : ex[k];
|
|
48252
|
+
}
|
|
48232
48253
|
}
|
|
48233
48254
|
}
|
|
48234
48255
|
};
|
|
@@ -48263,12 +48284,13 @@ var require_types = __commonJSMin((exports) => {
|
|
|
48263
48284
|
var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
48264
48285
|
"use strict";
|
|
48265
48286
|
var encode = (num, buf) => {
|
|
48266
|
-
if (!Number.isSafeInteger(num))
|
|
48287
|
+
if (!Number.isSafeInteger(num)) {
|
|
48267
48288
|
throw Error("cannot encode number outside of javascript safe integer range");
|
|
48268
|
-
else if (num < 0)
|
|
48289
|
+
} else if (num < 0) {
|
|
48269
48290
|
encodeNegative(num, buf);
|
|
48270
|
-
else
|
|
48291
|
+
} else {
|
|
48271
48292
|
encodePositive(num, buf);
|
|
48293
|
+
}
|
|
48272
48294
|
return buf;
|
|
48273
48295
|
};
|
|
48274
48296
|
var encodePositive = (num, buf) => {
|
|
@@ -48285,11 +48307,11 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48285
48307
|
for (var i = buf.length; i > 1; i--) {
|
|
48286
48308
|
var byte = num & 255;
|
|
48287
48309
|
num = Math.floor(num / 256);
|
|
48288
|
-
if (flipped)
|
|
48310
|
+
if (flipped) {
|
|
48289
48311
|
buf[i - 1] = onesComp(byte);
|
|
48290
|
-
else if (byte === 0)
|
|
48312
|
+
} else if (byte === 0) {
|
|
48291
48313
|
buf[i - 1] = 0;
|
|
48292
|
-
else {
|
|
48314
|
+
} else {
|
|
48293
48315
|
flipped = true;
|
|
48294
48316
|
buf[i - 1] = twosComp(byte);
|
|
48295
48317
|
}
|
|
@@ -48298,10 +48320,12 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48298
48320
|
var parse2 = (buf) => {
|
|
48299
48321
|
const pre = buf[0];
|
|
48300
48322
|
const value = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
48301
|
-
if (value === null)
|
|
48323
|
+
if (value === null) {
|
|
48302
48324
|
throw Error("invalid base256 encoding");
|
|
48303
|
-
|
|
48325
|
+
}
|
|
48326
|
+
if (!Number.isSafeInteger(value)) {
|
|
48304
48327
|
throw Error("parsed number outside of javascript safe integer range");
|
|
48328
|
+
}
|
|
48305
48329
|
return value;
|
|
48306
48330
|
};
|
|
48307
48331
|
var twos = (buf) => {
|
|
@@ -48311,16 +48335,17 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48311
48335
|
for (var i = len - 1; i > -1; i--) {
|
|
48312
48336
|
var byte = buf[i];
|
|
48313
48337
|
var f;
|
|
48314
|
-
if (flipped)
|
|
48338
|
+
if (flipped) {
|
|
48315
48339
|
f = onesComp(byte);
|
|
48316
|
-
else if (byte === 0)
|
|
48340
|
+
} else if (byte === 0) {
|
|
48317
48341
|
f = byte;
|
|
48318
|
-
else {
|
|
48342
|
+
} else {
|
|
48319
48343
|
flipped = true;
|
|
48320
48344
|
f = twosComp(byte);
|
|
48321
48345
|
}
|
|
48322
|
-
if (f !== 0)
|
|
48346
|
+
if (f !== 0) {
|
|
48323
48347
|
sum -= f * Math.pow(256, len - i - 1);
|
|
48348
|
+
}
|
|
48324
48349
|
}
|
|
48325
48350
|
return sum;
|
|
48326
48351
|
};
|
|
@@ -48329,8 +48354,9 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48329
48354
|
var sum = 0;
|
|
48330
48355
|
for (var i = len - 1; i > -1; i--) {
|
|
48331
48356
|
var byte = buf[i];
|
|
48332
|
-
if (byte !== 0)
|
|
48357
|
+
if (byte !== 0) {
|
|
48333
48358
|
sum += byte * Math.pow(256, len - i - 1);
|
|
48359
|
+
}
|
|
48334
48360
|
}
|
|
48335
48361
|
return sum;
|
|
48336
48362
|
};
|
|
@@ -48369,16 +48395,19 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48369
48395
|
this.devmin = 0;
|
|
48370
48396
|
this.atime = null;
|
|
48371
48397
|
this.ctime = null;
|
|
48372
|
-
if (Buffer.isBuffer(data))
|
|
48398
|
+
if (Buffer.isBuffer(data)) {
|
|
48373
48399
|
this.decode(data, off || 0, ex, gex);
|
|
48374
|
-
else if (data)
|
|
48400
|
+
} else if (data) {
|
|
48375
48401
|
this.set(data);
|
|
48402
|
+
}
|
|
48376
48403
|
}
|
|
48377
48404
|
decode(buf, off, ex, gex) {
|
|
48378
|
-
if (!off)
|
|
48405
|
+
if (!off) {
|
|
48379
48406
|
off = 0;
|
|
48380
|
-
|
|
48407
|
+
}
|
|
48408
|
+
if (!buf || !(buf.length >= off + 512)) {
|
|
48381
48409
|
throw new Error("need 512 bytes for header");
|
|
48410
|
+
}
|
|
48382
48411
|
this.path = decString(buf, off, 100);
|
|
48383
48412
|
this.mode = decNumber(buf, off + 100, 8);
|
|
48384
48413
|
this.uid = decNumber(buf, off + 108, 8);
|
|
@@ -48389,12 +48418,15 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48389
48418
|
this[SLURP](ex);
|
|
48390
48419
|
this[SLURP](gex, true);
|
|
48391
48420
|
this[TYPE] = decString(buf, off + 156, 1);
|
|
48392
|
-
if (this[TYPE] === "")
|
|
48421
|
+
if (this[TYPE] === "") {
|
|
48393
48422
|
this[TYPE] = "0";
|
|
48394
|
-
|
|
48423
|
+
}
|
|
48424
|
+
if (this[TYPE] === "0" && this.path.slice(-1) === "/") {
|
|
48395
48425
|
this[TYPE] = "5";
|
|
48396
|
-
|
|
48426
|
+
}
|
|
48427
|
+
if (this[TYPE] === "5") {
|
|
48397
48428
|
this.size = 0;
|
|
48429
|
+
}
|
|
48398
48430
|
this.linkpath = decString(buf, off + 157, 100);
|
|
48399
48431
|
if (buf.slice(off + 257, off + 265).toString() === "ustar\x0000") {
|
|
48400
48432
|
this.uname = decString(buf, off + 265, 32);
|
|
@@ -48406,25 +48438,30 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48406
48438
|
this.path = prefix + "/" + this.path;
|
|
48407
48439
|
} else {
|
|
48408
48440
|
const prefix = decString(buf, off + 345, 130);
|
|
48409
|
-
if (prefix)
|
|
48441
|
+
if (prefix) {
|
|
48410
48442
|
this.path = prefix + "/" + this.path;
|
|
48443
|
+
}
|
|
48411
48444
|
this.atime = decDate(buf, off + 476, 12);
|
|
48412
48445
|
this.ctime = decDate(buf, off + 488, 12);
|
|
48413
48446
|
}
|
|
48414
48447
|
}
|
|
48415
48448
|
let sum = 8 * 32;
|
|
48416
|
-
for (let i = off; i < off + 148; i++)
|
|
48449
|
+
for (let i = off; i < off + 148; i++) {
|
|
48417
48450
|
sum += buf[i];
|
|
48418
|
-
|
|
48451
|
+
}
|
|
48452
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
48419
48453
|
sum += buf[i];
|
|
48454
|
+
}
|
|
48420
48455
|
this.cksumValid = sum === this.cksum;
|
|
48421
|
-
if (this.cksum === null && sum === 8 * 32)
|
|
48456
|
+
if (this.cksum === null && sum === 8 * 32) {
|
|
48422
48457
|
this.nullBlock = true;
|
|
48458
|
+
}
|
|
48423
48459
|
}
|
|
48424
48460
|
[SLURP](ex, global2) {
|
|
48425
48461
|
for (const k in ex) {
|
|
48426
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48462
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
|
48427
48463
|
this[k] = ex[k];
|
|
48464
|
+
}
|
|
48428
48465
|
}
|
|
48429
48466
|
}
|
|
48430
48467
|
encode(buf, off) {
|
|
@@ -48432,10 +48469,12 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48432
48469
|
buf = this.block = Buffer.alloc(512);
|
|
48433
48470
|
off = 0;
|
|
48434
48471
|
}
|
|
48435
|
-
if (!off)
|
|
48472
|
+
if (!off) {
|
|
48436
48473
|
off = 0;
|
|
48437
|
-
|
|
48474
|
+
}
|
|
48475
|
+
if (!(buf.length >= off + 512)) {
|
|
48438
48476
|
throw new Error("need 512 bytes for header");
|
|
48477
|
+
}
|
|
48439
48478
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
48440
48479
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
48441
48480
|
const path6 = split[0];
|
|
@@ -48455,18 +48494,20 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48455
48494
|
this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax;
|
|
48456
48495
|
this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax;
|
|
48457
48496
|
this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax;
|
|
48458
|
-
if (buf[off + 475] !== 0)
|
|
48497
|
+
if (buf[off + 475] !== 0) {
|
|
48459
48498
|
this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax;
|
|
48460
|
-
else {
|
|
48499
|
+
} else {
|
|
48461
48500
|
this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax;
|
|
48462
48501
|
this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax;
|
|
48463
48502
|
this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax;
|
|
48464
48503
|
}
|
|
48465
48504
|
let sum = 8 * 32;
|
|
48466
|
-
for (let i = off; i < off + 148; i++)
|
|
48505
|
+
for (let i = off; i < off + 148; i++) {
|
|
48467
48506
|
sum += buf[i];
|
|
48468
|
-
|
|
48507
|
+
}
|
|
48508
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
48469
48509
|
sum += buf[i];
|
|
48510
|
+
}
|
|
48470
48511
|
this.cksum = sum;
|
|
48471
48512
|
encNumber(buf, off + 148, 8, this.cksum);
|
|
48472
48513
|
this.cksumValid = true;
|
|
@@ -48474,8 +48515,9 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48474
48515
|
}
|
|
48475
48516
|
set(data) {
|
|
48476
48517
|
for (const i in data) {
|
|
48477
|
-
if (data[i] !== null && data[i] !== void 0)
|
|
48518
|
+
if (data[i] !== null && data[i] !== void 0) {
|
|
48478
48519
|
this[i] = data[i];
|
|
48520
|
+
}
|
|
48479
48521
|
}
|
|
48480
48522
|
}
|
|
48481
48523
|
get type() {
|
|
@@ -48485,10 +48527,11 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48485
48527
|
return this[TYPE];
|
|
48486
48528
|
}
|
|
48487
48529
|
set type(type) {
|
|
48488
|
-
if (types.code.has(type))
|
|
48530
|
+
if (types.code.has(type)) {
|
|
48489
48531
|
this[TYPE] = types.code.get(type);
|
|
48490
|
-
else
|
|
48532
|
+
} else {
|
|
48491
48533
|
this[TYPE] = type;
|
|
48534
|
+
}
|
|
48492
48535
|
}
|
|
48493
48536
|
};
|
|
48494
48537
|
var splitPrefix = (p, prefixSize) => {
|
|
@@ -48497,23 +48540,24 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48497
48540
|
let prefix = "";
|
|
48498
48541
|
let ret;
|
|
48499
48542
|
const root = pathModule.parse(p).root || ".";
|
|
48500
|
-
if (Buffer.byteLength(pp) < pathSize)
|
|
48543
|
+
if (Buffer.byteLength(pp) < pathSize) {
|
|
48501
48544
|
ret = [pp, prefix, false];
|
|
48502
|
-
else {
|
|
48545
|
+
} else {
|
|
48503
48546
|
prefix = pathModule.dirname(pp);
|
|
48504
48547
|
pp = pathModule.basename(pp);
|
|
48505
48548
|
do {
|
|
48506
|
-
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48549
|
+
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
|
48507
48550
|
ret = [pp, prefix, false];
|
|
48508
|
-
else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48509
|
-
ret = [pp.
|
|
48510
|
-
else {
|
|
48551
|
+
} else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
|
48552
|
+
ret = [pp.slice(0, pathSize - 1), prefix, true];
|
|
48553
|
+
} else {
|
|
48511
48554
|
pp = pathModule.join(pathModule.basename(prefix), pp);
|
|
48512
48555
|
prefix = pathModule.dirname(prefix);
|
|
48513
48556
|
}
|
|
48514
48557
|
} while (prefix !== root && !ret);
|
|
48515
|
-
if (!ret)
|
|
48516
|
-
ret = [p.
|
|
48558
|
+
if (!ret) {
|
|
48559
|
+
ret = [p.slice(0, pathSize - 1), "", true];
|
|
48560
|
+
}
|
|
48517
48561
|
}
|
|
48518
48562
|
return ret;
|
|
48519
48563
|
};
|
|
@@ -48561,13 +48605,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48561
48605
|
}
|
|
48562
48606
|
encode() {
|
|
48563
48607
|
const body = this.encodeBody();
|
|
48564
|
-
if (body === "")
|
|
48608
|
+
if (body === "") {
|
|
48565
48609
|
return null;
|
|
48610
|
+
}
|
|
48566
48611
|
const bodyLen = Buffer.byteLength(body);
|
|
48567
48612
|
const bufLen = 512 * Math.ceil(1 + bodyLen / 512);
|
|
48568
48613
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
48569
|
-
for (let i = 0; i < 512; i++)
|
|
48614
|
+
for (let i = 0; i < 512; i++) {
|
|
48570
48615
|
buf[i] = 0;
|
|
48616
|
+
}
|
|
48571
48617
|
new Header({
|
|
48572
48618
|
path: ("PaxHeader/" + path6.basename(this.path)).slice(0, 99),
|
|
48573
48619
|
mode: this.mode || 420,
|
|
@@ -48585,22 +48631,25 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48585
48631
|
ctime: this.ctime || null
|
|
48586
48632
|
}).encode(buf);
|
|
48587
48633
|
buf.write(body, 512, bodyLen, "utf8");
|
|
48588
|
-
for (let i = bodyLen + 512; i < buf.length; i++)
|
|
48634
|
+
for (let i = bodyLen + 512; i < buf.length; i++) {
|
|
48589
48635
|
buf[i] = 0;
|
|
48636
|
+
}
|
|
48590
48637
|
return buf;
|
|
48591
48638
|
}
|
|
48592
48639
|
encodeBody() {
|
|
48593
48640
|
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");
|
|
48594
48641
|
}
|
|
48595
48642
|
encodeField(field) {
|
|
48596
|
-
if (this[field] === null || this[field] === void 0)
|
|
48643
|
+
if (this[field] === null || this[field] === void 0) {
|
|
48597
48644
|
return "";
|
|
48645
|
+
}
|
|
48598
48646
|
const v = this[field] instanceof Date ? this[field].getTime() / 1e3 : this[field];
|
|
48599
48647
|
const s = " " + (field === "dev" || field === "ino" || field === "nlink" ? "SCHILY." : "") + field + "=" + v + "\n";
|
|
48600
48648
|
const byteLen = Buffer.byteLength(s);
|
|
48601
48649
|
let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1;
|
|
48602
|
-
if (byteLen + digits >= Math.pow(10, digits))
|
|
48650
|
+
if (byteLen + digits >= Math.pow(10, digits)) {
|
|
48603
48651
|
digits += 1;
|
|
48652
|
+
}
|
|
48604
48653
|
const len = digits + byteLen;
|
|
48605
48654
|
return len + s;
|
|
48606
48655
|
}
|
|
@@ -48610,13 +48659,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48610
48659
|
var parseKV = (string) => string.replace(/\n$/, "").split("\n").reduce(parseKVLine, /* @__PURE__ */ Object.create(null));
|
|
48611
48660
|
var parseKVLine = (set, line3) => {
|
|
48612
48661
|
const n = parseInt(line3, 10);
|
|
48613
|
-
if (n !== Buffer.byteLength(line3) + 1)
|
|
48662
|
+
if (n !== Buffer.byteLength(line3) + 1) {
|
|
48614
48663
|
return set;
|
|
48615
|
-
|
|
48664
|
+
}
|
|
48665
|
+
line3 = line3.slice((n + " ").length);
|
|
48616
48666
|
const kv = line3.split("=");
|
|
48617
48667
|
const k = kv.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
|
|
48618
|
-
if (!k)
|
|
48668
|
+
if (!k) {
|
|
48619
48669
|
return set;
|
|
48670
|
+
}
|
|
48620
48671
|
const v = kv.join("=");
|
|
48621
48672
|
set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ? new Date(v * 1e3) : /^[0-9]+$/.test(v) ? +v : v;
|
|
48622
48673
|
return set;
|
|
@@ -48638,10 +48689,12 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48638
48689
|
"use strict";
|
|
48639
48690
|
module2.exports = (Base) => class extends Base {
|
|
48640
48691
|
warn(code, message, data = {}) {
|
|
48641
|
-
if (this.file)
|
|
48692
|
+
if (this.file) {
|
|
48642
48693
|
data.file = this.file;
|
|
48643
|
-
|
|
48694
|
+
}
|
|
48695
|
+
if (this.cwd) {
|
|
48644
48696
|
data.cwd = this.cwd;
|
|
48697
|
+
}
|
|
48645
48698
|
data.code = message instanceof Error && message.code || code;
|
|
48646
48699
|
data.tarCode = code;
|
|
48647
48700
|
if (!this.strict && data.recoverable !== false) {
|
|
@@ -48650,10 +48703,11 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48650
48703
|
message = message.message;
|
|
48651
48704
|
}
|
|
48652
48705
|
this.emit("warn", data.tarCode, message, data);
|
|
48653
|
-
} else if (message instanceof Error)
|
|
48706
|
+
} else if (message instanceof Error) {
|
|
48654
48707
|
this.emit("error", Object.assign(message, data));
|
|
48655
|
-
else
|
|
48708
|
+
} else {
|
|
48656
48709
|
this.emit("error", Object.assign(new Error(`${code}: ${message}`), data));
|
|
48710
|
+
}
|
|
48657
48711
|
}
|
|
48658
48712
|
};
|
|
48659
48713
|
});
|
|
@@ -48681,7 +48735,7 @@ var require_strip_absolute_path = __commonJSMin((exports, module2) => {
|
|
|
48681
48735
|
let parsed = parse2(path6);
|
|
48682
48736
|
while (isAbsolute(path6) || parsed.root) {
|
|
48683
48737
|
const root = path6.charAt(0) === "/" && path6.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
48684
|
-
path6 = path6.
|
|
48738
|
+
path6 = path6.slice(root.length);
|
|
48685
48739
|
r += root;
|
|
48686
48740
|
parsed = parse2(path6);
|
|
48687
48741
|
}
|
|
@@ -48692,15 +48746,19 @@ var require_mode_fix = __commonJSMin((exports, module2) => {
|
|
|
48692
48746
|
"use strict";
|
|
48693
48747
|
module2.exports = (mode, isDir, portable) => {
|
|
48694
48748
|
mode &= 4095;
|
|
48695
|
-
if (portable)
|
|
48749
|
+
if (portable) {
|
|
48696
48750
|
mode = (mode | 384) & ~18;
|
|
48751
|
+
}
|
|
48697
48752
|
if (isDir) {
|
|
48698
|
-
if (mode & 256)
|
|
48753
|
+
if (mode & 256) {
|
|
48699
48754
|
mode |= 64;
|
|
48700
|
-
|
|
48755
|
+
}
|
|
48756
|
+
if (mode & 32) {
|
|
48701
48757
|
mode |= 8;
|
|
48702
|
-
|
|
48758
|
+
}
|
|
48759
|
+
if (mode & 4) {
|
|
48703
48760
|
mode |= 1;
|
|
48761
|
+
}
|
|
48704
48762
|
}
|
|
48705
48763
|
return mode;
|
|
48706
48764
|
};
|
|
@@ -48715,8 +48773,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48715
48773
|
var normPath = require_normalize_windows_path();
|
|
48716
48774
|
var stripSlash = require_strip_trailing_slashes();
|
|
48717
48775
|
var prefixPath = (path7, prefix) => {
|
|
48718
|
-
if (!prefix)
|
|
48776
|
+
if (!prefix) {
|
|
48719
48777
|
return normPath(path7);
|
|
48778
|
+
}
|
|
48720
48779
|
path7 = normPath(path7).replace(/^\.(\/|$)/, "");
|
|
48721
48780
|
return stripSlash(prefix) + "/" + path7;
|
|
48722
48781
|
};
|
|
@@ -48748,8 +48807,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48748
48807
|
constructor(p, opt) {
|
|
48749
48808
|
opt = opt || {};
|
|
48750
48809
|
super(opt);
|
|
48751
|
-
if (typeof p !== "string")
|
|
48810
|
+
if (typeof p !== "string") {
|
|
48752
48811
|
throw new TypeError("path is required");
|
|
48812
|
+
}
|
|
48753
48813
|
this.path = normPath(p);
|
|
48754
48814
|
this.portable = !!opt.portable;
|
|
48755
48815
|
this.myuid = process.getuid && process.getuid() || 0;
|
|
@@ -48772,8 +48832,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48772
48832
|
this.length = null;
|
|
48773
48833
|
this.pos = null;
|
|
48774
48834
|
this.remain = null;
|
|
48775
|
-
if (typeof opt.onwarn === "function")
|
|
48835
|
+
if (typeof opt.onwarn === "function") {
|
|
48776
48836
|
this.on("warn", opt.onwarn);
|
|
48837
|
+
}
|
|
48777
48838
|
let pathWarn = false;
|
|
48778
48839
|
if (!this.preservePaths) {
|
|
48779
48840
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -48788,36 +48849,41 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48788
48849
|
p = p.replace(/\\/g, "/");
|
|
48789
48850
|
}
|
|
48790
48851
|
this.absolute = normPath(opt.absolute || path6.resolve(this.cwd, p));
|
|
48791
|
-
if (this.path === "")
|
|
48852
|
+
if (this.path === "") {
|
|
48792
48853
|
this.path = "./";
|
|
48854
|
+
}
|
|
48793
48855
|
if (pathWarn) {
|
|
48794
48856
|
this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
48795
48857
|
entry: this,
|
|
48796
48858
|
path: pathWarn + this.path
|
|
48797
48859
|
});
|
|
48798
48860
|
}
|
|
48799
|
-
if (this.statCache.has(this.absolute))
|
|
48861
|
+
if (this.statCache.has(this.absolute)) {
|
|
48800
48862
|
this[ONLSTAT](this.statCache.get(this.absolute));
|
|
48801
|
-
else
|
|
48863
|
+
} else {
|
|
48802
48864
|
this[LSTAT]();
|
|
48865
|
+
}
|
|
48803
48866
|
}
|
|
48804
48867
|
emit(ev, ...data) {
|
|
48805
|
-
if (ev === "error")
|
|
48868
|
+
if (ev === "error") {
|
|
48806
48869
|
this[HAD_ERROR] = true;
|
|
48870
|
+
}
|
|
48807
48871
|
return super.emit(ev, ...data);
|
|
48808
48872
|
}
|
|
48809
48873
|
[LSTAT]() {
|
|
48810
48874
|
fs4.lstat(this.absolute, (er, stat) => {
|
|
48811
|
-
if (er)
|
|
48875
|
+
if (er) {
|
|
48812
48876
|
return this.emit("error", er);
|
|
48877
|
+
}
|
|
48813
48878
|
this[ONLSTAT](stat);
|
|
48814
48879
|
});
|
|
48815
48880
|
}
|
|
48816
48881
|
[ONLSTAT](stat) {
|
|
48817
48882
|
this.statCache.set(this.absolute, stat);
|
|
48818
48883
|
this.stat = stat;
|
|
48819
|
-
if (!stat.isFile())
|
|
48884
|
+
if (!stat.isFile()) {
|
|
48820
48885
|
stat.size = 0;
|
|
48886
|
+
}
|
|
48821
48887
|
this.type = getType2(stat);
|
|
48822
48888
|
this.emit("stat", stat);
|
|
48823
48889
|
this[PROCESS]();
|
|
@@ -48841,8 +48907,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48841
48907
|
return prefixPath(path7, this.prefix);
|
|
48842
48908
|
}
|
|
48843
48909
|
[HEADER]() {
|
|
48844
|
-
if (this.type === "Directory" && this.portable)
|
|
48910
|
+
if (this.type === "Directory" && this.portable) {
|
|
48845
48911
|
this.noMtime = true;
|
|
48912
|
+
}
|
|
48846
48913
|
this.header = new Header({
|
|
48847
48914
|
path: this[PREFIX](this.path),
|
|
48848
48915
|
linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
|
|
@@ -48875,16 +48942,18 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48875
48942
|
super.write(this.header.block);
|
|
48876
48943
|
}
|
|
48877
48944
|
[DIRECTORY]() {
|
|
48878
|
-
if (this.path.
|
|
48945
|
+
if (this.path.slice(-1) !== "/") {
|
|
48879
48946
|
this.path += "/";
|
|
48947
|
+
}
|
|
48880
48948
|
this.stat.size = 0;
|
|
48881
48949
|
this[HEADER]();
|
|
48882
48950
|
this.end();
|
|
48883
48951
|
}
|
|
48884
48952
|
[SYMLINK]() {
|
|
48885
48953
|
fs4.readlink(this.absolute, (er, linkpath) => {
|
|
48886
|
-
if (er)
|
|
48954
|
+
if (er) {
|
|
48887
48955
|
return this.emit("error", er);
|
|
48956
|
+
}
|
|
48888
48957
|
this[ONREADLINK](linkpath);
|
|
48889
48958
|
});
|
|
48890
48959
|
}
|
|
@@ -48905,27 +48974,31 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48905
48974
|
const linkKey = this.stat.dev + ":" + this.stat.ino;
|
|
48906
48975
|
if (this.linkCache.has(linkKey)) {
|
|
48907
48976
|
const linkpath = this.linkCache.get(linkKey);
|
|
48908
|
-
if (linkpath.indexOf(this.cwd) === 0)
|
|
48977
|
+
if (linkpath.indexOf(this.cwd) === 0) {
|
|
48909
48978
|
return this[HARDLINK](linkpath);
|
|
48979
|
+
}
|
|
48910
48980
|
}
|
|
48911
48981
|
this.linkCache.set(linkKey, this.absolute);
|
|
48912
48982
|
}
|
|
48913
48983
|
this[HEADER]();
|
|
48914
|
-
if (this.stat.size === 0)
|
|
48984
|
+
if (this.stat.size === 0) {
|
|
48915
48985
|
return this.end();
|
|
48986
|
+
}
|
|
48916
48987
|
this[OPENFILE]();
|
|
48917
48988
|
}
|
|
48918
48989
|
[OPENFILE]() {
|
|
48919
48990
|
fs4.open(this.absolute, "r", (er, fd) => {
|
|
48920
|
-
if (er)
|
|
48991
|
+
if (er) {
|
|
48921
48992
|
return this.emit("error", er);
|
|
48993
|
+
}
|
|
48922
48994
|
this[ONOPENFILE](fd);
|
|
48923
48995
|
});
|
|
48924
48996
|
}
|
|
48925
48997
|
[ONOPENFILE](fd) {
|
|
48926
48998
|
this.fd = fd;
|
|
48927
|
-
if (this[HAD_ERROR])
|
|
48999
|
+
if (this[HAD_ERROR]) {
|
|
48928
49000
|
return this[CLOSE]();
|
|
49001
|
+
}
|
|
48929
49002
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512);
|
|
48930
49003
|
this.blockRemain = this.blockLen;
|
|
48931
49004
|
const bufLen = Math.min(this.blockLen, this.maxReadSize);
|
|
@@ -48972,10 +49045,11 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48972
49045
|
}
|
|
48973
49046
|
const writeBuf = this.offset === 0 && bytesRead === this.buf.length ? this.buf : this.buf.slice(this.offset, this.offset + bytesRead);
|
|
48974
49047
|
const flushed = this.write(writeBuf);
|
|
48975
|
-
if (!flushed)
|
|
49048
|
+
if (!flushed) {
|
|
48976
49049
|
this[AWAITDRAIN](() => this[ONDRAIN]());
|
|
48977
|
-
else
|
|
49050
|
+
} else {
|
|
48978
49051
|
this[ONDRAIN]();
|
|
49052
|
+
}
|
|
48979
49053
|
}
|
|
48980
49054
|
[AWAITDRAIN](cb) {
|
|
48981
49055
|
this.once("drain", cb);
|
|
@@ -48994,8 +49068,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48994
49068
|
}
|
|
48995
49069
|
[ONDRAIN]() {
|
|
48996
49070
|
if (!this.remain) {
|
|
48997
|
-
if (this.blockRemain)
|
|
49071
|
+
if (this.blockRemain) {
|
|
48998
49072
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49073
|
+
}
|
|
48999
49074
|
return this[CLOSE]((er) => er ? this.emit("error", er) : this.end());
|
|
49000
49075
|
}
|
|
49001
49076
|
if (this.offset >= this.length) {
|
|
@@ -49052,8 +49127,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49052
49127
|
this.noMtime = !!opt.noMtime;
|
|
49053
49128
|
this.readEntry = readEntry;
|
|
49054
49129
|
this.type = readEntry.type;
|
|
49055
|
-
if (this.type === "Directory" && this.portable)
|
|
49130
|
+
if (this.type === "Directory" && this.portable) {
|
|
49056
49131
|
this.noMtime = true;
|
|
49132
|
+
}
|
|
49057
49133
|
this.prefix = opt.prefix || null;
|
|
49058
49134
|
this.path = normPath(readEntry.path);
|
|
49059
49135
|
this.mode = this[MODE](readEntry.mode);
|
|
@@ -49066,8 +49142,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49066
49142
|
this.atime = this.portable ? null : readEntry.atime;
|
|
49067
49143
|
this.ctime = this.portable ? null : readEntry.ctime;
|
|
49068
49144
|
this.linkpath = normPath(readEntry.linkpath);
|
|
49069
|
-
if (typeof opt.onwarn === "function")
|
|
49145
|
+
if (typeof opt.onwarn === "function") {
|
|
49070
49146
|
this.on("warn", opt.onwarn);
|
|
49147
|
+
}
|
|
49071
49148
|
let pathWarn = false;
|
|
49072
49149
|
if (!this.preservePaths) {
|
|
49073
49150
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -49124,14 +49201,16 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49124
49201
|
}
|
|
49125
49202
|
write(data) {
|
|
49126
49203
|
const writeLen = data.length;
|
|
49127
|
-
if (writeLen > this.blockRemain)
|
|
49204
|
+
if (writeLen > this.blockRemain) {
|
|
49128
49205
|
throw new Error("writing more to entry than is appropriate");
|
|
49206
|
+
}
|
|
49129
49207
|
this.blockRemain -= writeLen;
|
|
49130
49208
|
return super.write(data);
|
|
49131
49209
|
}
|
|
49132
49210
|
end() {
|
|
49133
|
-
if (this.blockRemain)
|
|
49211
|
+
if (this.blockRemain) {
|
|
49134
49212
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49213
|
+
}
|
|
49135
49214
|
return super.end();
|
|
49136
49215
|
}
|
|
49137
49216
|
});
|
|
@@ -49577,22 +49656,26 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49577
49656
|
this.statCache = opt.statCache || /* @__PURE__ */ new Map();
|
|
49578
49657
|
this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map();
|
|
49579
49658
|
this[WRITEENTRYCLASS] = WriteEntry;
|
|
49580
|
-
if (typeof opt.onwarn === "function")
|
|
49659
|
+
if (typeof opt.onwarn === "function") {
|
|
49581
49660
|
this.on("warn", opt.onwarn);
|
|
49661
|
+
}
|
|
49582
49662
|
this.portable = !!opt.portable;
|
|
49583
49663
|
this.zip = null;
|
|
49584
49664
|
if (opt.gzip) {
|
|
49585
|
-
if (typeof opt.gzip !== "object")
|
|
49665
|
+
if (typeof opt.gzip !== "object") {
|
|
49586
49666
|
opt.gzip = {};
|
|
49587
|
-
|
|
49667
|
+
}
|
|
49668
|
+
if (this.portable) {
|
|
49588
49669
|
opt.gzip.portable = true;
|
|
49670
|
+
}
|
|
49589
49671
|
this.zip = new zlib.Gzip(opt.gzip);
|
|
49590
49672
|
this.zip.on("data", (chunk) => super.write(chunk));
|
|
49591
49673
|
this.zip.on("end", (_) => super.end());
|
|
49592
49674
|
this.zip.on("drain", (_) => this[ONDRAIN]());
|
|
49593
49675
|
this.on("resume", (_) => this.zip.resume());
|
|
49594
|
-
} else
|
|
49676
|
+
} else {
|
|
49595
49677
|
this.on("drain", this[ONDRAIN]);
|
|
49678
|
+
}
|
|
49596
49679
|
this.noDirRecurse = !!opt.noDirRecurse;
|
|
49597
49680
|
this.follow = !!opt.follow;
|
|
49598
49681
|
this.noMtime = !!opt.noMtime;
|
|
@@ -49612,26 +49695,29 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49612
49695
|
return this;
|
|
49613
49696
|
}
|
|
49614
49697
|
end(path7) {
|
|
49615
|
-
if (path7)
|
|
49698
|
+
if (path7) {
|
|
49616
49699
|
this.write(path7);
|
|
49700
|
+
}
|
|
49617
49701
|
this[ENDED] = true;
|
|
49618
49702
|
this[PROCESS]();
|
|
49619
49703
|
return this;
|
|
49620
49704
|
}
|
|
49621
49705
|
write(path7) {
|
|
49622
|
-
if (this[ENDED])
|
|
49706
|
+
if (this[ENDED]) {
|
|
49623
49707
|
throw new Error("write after end");
|
|
49624
|
-
|
|
49708
|
+
}
|
|
49709
|
+
if (path7 instanceof ReadEntry) {
|
|
49625
49710
|
this[ADDTARENTRY](path7);
|
|
49626
|
-
else
|
|
49711
|
+
} else {
|
|
49627
49712
|
this[ADDFSENTRY](path7);
|
|
49713
|
+
}
|
|
49628
49714
|
return this.flowing;
|
|
49629
49715
|
}
|
|
49630
49716
|
[ADDTARENTRY](p) {
|
|
49631
49717
|
const absolute = normPath(path6.resolve(this.cwd, p.path));
|
|
49632
|
-
if (!this.filter(p.path, p))
|
|
49718
|
+
if (!this.filter(p.path, p)) {
|
|
49633
49719
|
p.resume();
|
|
49634
|
-
else {
|
|
49720
|
+
} else {
|
|
49635
49721
|
const job = new PackJob(p.path, absolute, false);
|
|
49636
49722
|
job.entry = new WriteEntryTar(p, this[ENTRYOPT](job));
|
|
49637
49723
|
job.entry.on("end", (_) => this[JOBDONE](job));
|
|
@@ -49652,17 +49738,19 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49652
49738
|
fs4[stat](job.absolute, (er, stat2) => {
|
|
49653
49739
|
job.pending = false;
|
|
49654
49740
|
this[JOBS] -= 1;
|
|
49655
|
-
if (er)
|
|
49741
|
+
if (er) {
|
|
49656
49742
|
this.emit("error", er);
|
|
49657
|
-
else
|
|
49743
|
+
} else {
|
|
49658
49744
|
this[ONSTAT](job, stat2);
|
|
49745
|
+
}
|
|
49659
49746
|
});
|
|
49660
49747
|
}
|
|
49661
49748
|
[ONSTAT](job, stat) {
|
|
49662
49749
|
this.statCache.set(job.absolute, stat);
|
|
49663
49750
|
job.stat = stat;
|
|
49664
|
-
if (!this.filter(job.path, stat))
|
|
49751
|
+
if (!this.filter(job.path, stat)) {
|
|
49665
49752
|
job.ignore = true;
|
|
49753
|
+
}
|
|
49666
49754
|
this[PROCESS]();
|
|
49667
49755
|
}
|
|
49668
49756
|
[READDIR](job) {
|
|
@@ -49671,8 +49759,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49671
49759
|
fs4.readdir(job.absolute, (er, entries) => {
|
|
49672
49760
|
job.pending = false;
|
|
49673
49761
|
this[JOBS] -= 1;
|
|
49674
|
-
if (er)
|
|
49762
|
+
if (er) {
|
|
49675
49763
|
return this.emit("error", er);
|
|
49764
|
+
}
|
|
49676
49765
|
this[ONREADDIR](job, entries);
|
|
49677
49766
|
});
|
|
49678
49767
|
}
|
|
@@ -49682,8 +49771,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49682
49771
|
this[PROCESS]();
|
|
49683
49772
|
}
|
|
49684
49773
|
[PROCESS]() {
|
|
49685
|
-
if (this[PROCESSING])
|
|
49774
|
+
if (this[PROCESSING]) {
|
|
49686
49775
|
return;
|
|
49776
|
+
}
|
|
49687
49777
|
this[PROCESSING] = true;
|
|
49688
49778
|
for (let w = this[QUEUE].head; w !== null && this[JOBS] < this.jobs; w = w.next) {
|
|
49689
49779
|
this[PROCESSJOB](w.value);
|
|
@@ -49695,9 +49785,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49695
49785
|
}
|
|
49696
49786
|
this[PROCESSING] = false;
|
|
49697
49787
|
if (this[ENDED] && !this[QUEUE].length && this[JOBS] === 0) {
|
|
49698
|
-
if (this.zip)
|
|
49788
|
+
if (this.zip) {
|
|
49699
49789
|
this.zip.end(EOF);
|
|
49700
|
-
else {
|
|
49790
|
+
} else {
|
|
49701
49791
|
super.write(EOF);
|
|
49702
49792
|
super.end();
|
|
49703
49793
|
}
|
|
@@ -49712,38 +49802,46 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49712
49802
|
this[PROCESS]();
|
|
49713
49803
|
}
|
|
49714
49804
|
[PROCESSJOB](job) {
|
|
49715
|
-
if (job.pending)
|
|
49805
|
+
if (job.pending) {
|
|
49716
49806
|
return;
|
|
49807
|
+
}
|
|
49717
49808
|
if (job.entry) {
|
|
49718
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49809
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
49719
49810
|
this[PIPE](job);
|
|
49811
|
+
}
|
|
49720
49812
|
return;
|
|
49721
49813
|
}
|
|
49722
49814
|
if (!job.stat) {
|
|
49723
|
-
if (this.statCache.has(job.absolute))
|
|
49815
|
+
if (this.statCache.has(job.absolute)) {
|
|
49724
49816
|
this[ONSTAT](job, this.statCache.get(job.absolute));
|
|
49725
|
-
else
|
|
49817
|
+
} else {
|
|
49726
49818
|
this[STAT](job);
|
|
49819
|
+
}
|
|
49727
49820
|
}
|
|
49728
|
-
if (!job.stat)
|
|
49821
|
+
if (!job.stat) {
|
|
49729
49822
|
return;
|
|
49730
|
-
|
|
49823
|
+
}
|
|
49824
|
+
if (job.ignore) {
|
|
49731
49825
|
return;
|
|
49826
|
+
}
|
|
49732
49827
|
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
|
49733
|
-
if (this.readdirCache.has(job.absolute))
|
|
49828
|
+
if (this.readdirCache.has(job.absolute)) {
|
|
49734
49829
|
this[ONREADDIR](job, this.readdirCache.get(job.absolute));
|
|
49735
|
-
else
|
|
49830
|
+
} else {
|
|
49736
49831
|
this[READDIR](job);
|
|
49737
|
-
|
|
49832
|
+
}
|
|
49833
|
+
if (!job.readdir) {
|
|
49738
49834
|
return;
|
|
49835
|
+
}
|
|
49739
49836
|
}
|
|
49740
49837
|
job.entry = this[ENTRY](job);
|
|
49741
49838
|
if (!job.entry) {
|
|
49742
49839
|
job.ignore = true;
|
|
49743
49840
|
return;
|
|
49744
49841
|
}
|
|
49745
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49842
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
49746
49843
|
this[PIPE](job);
|
|
49844
|
+
}
|
|
49747
49845
|
}
|
|
49748
49846
|
[ENTRYOPT](job) {
|
|
49749
49847
|
return {
|
|
@@ -49771,8 +49869,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49771
49869
|
}
|
|
49772
49870
|
}
|
|
49773
49871
|
[ONDRAIN]() {
|
|
49774
|
-
if (this[CURRENT] && this[CURRENT].entry)
|
|
49872
|
+
if (this[CURRENT] && this[CURRENT].entry) {
|
|
49775
49873
|
this[CURRENT].entry.resume();
|
|
49874
|
+
}
|
|
49776
49875
|
}
|
|
49777
49876
|
[PIPE](job) {
|
|
49778
49877
|
job.piped = true;
|
|
@@ -49787,19 +49886,22 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49787
49886
|
const zip = this.zip;
|
|
49788
49887
|
if (zip) {
|
|
49789
49888
|
source.on("data", (chunk) => {
|
|
49790
|
-
if (!zip.write(chunk))
|
|
49889
|
+
if (!zip.write(chunk)) {
|
|
49791
49890
|
source.pause();
|
|
49891
|
+
}
|
|
49792
49892
|
});
|
|
49793
49893
|
} else {
|
|
49794
49894
|
source.on("data", (chunk) => {
|
|
49795
|
-
if (!super.write(chunk))
|
|
49895
|
+
if (!super.write(chunk)) {
|
|
49796
49896
|
source.pause();
|
|
49897
|
+
}
|
|
49797
49898
|
});
|
|
49798
49899
|
}
|
|
49799
49900
|
}
|
|
49800
49901
|
pause() {
|
|
49801
|
-
if (this.zip)
|
|
49902
|
+
if (this.zip) {
|
|
49802
49903
|
this.zip.pause();
|
|
49904
|
+
}
|
|
49803
49905
|
return super.pause();
|
|
49804
49906
|
}
|
|
49805
49907
|
});
|
|
@@ -50211,6 +50313,7 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50211
50313
|
var Entry = require_read_entry();
|
|
50212
50314
|
var Pax = require_pax();
|
|
50213
50315
|
var zlib = require_minizlib();
|
|
50316
|
+
var { nextTick } = __require("process");
|
|
50214
50317
|
var gzipHeader = Buffer.from([31, 139]);
|
|
50215
50318
|
var STATE = Symbol("state");
|
|
50216
50319
|
var WRITEENTRY = Symbol("writeEntry");
|
|
@@ -50241,6 +50344,7 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50241
50344
|
var SAW_VALID_ENTRY = Symbol("sawValidEntry");
|
|
50242
50345
|
var SAW_NULL_BLOCK = Symbol("sawNullBlock");
|
|
50243
50346
|
var SAW_EOF = Symbol("sawEOF");
|
|
50347
|
+
var CLOSESTREAM = Symbol("closeStream");
|
|
50244
50348
|
var noop = (_) => true;
|
|
50245
50349
|
module2.exports = warner(class Parser extends EE {
|
|
50246
50350
|
constructor(opt) {
|
|
@@ -50253,14 +50357,13 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50253
50357
|
this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
50254
50358
|
}
|
|
50255
50359
|
});
|
|
50256
|
-
if (opt.ondone)
|
|
50360
|
+
if (opt.ondone) {
|
|
50257
50361
|
this.on(DONE, opt.ondone);
|
|
50258
|
-
else {
|
|
50362
|
+
} else {
|
|
50259
50363
|
this.on(DONE, (_) => {
|
|
50260
50364
|
this.emit("prefinish");
|
|
50261
50365
|
this.emit("finish");
|
|
50262
50366
|
this.emit("end");
|
|
50263
|
-
this.emit("close");
|
|
50264
50367
|
});
|
|
50265
50368
|
}
|
|
50266
50369
|
this.strict = !!opt.strict;
|
|
@@ -50281,14 +50384,18 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50281
50384
|
this[ABORTED] = false;
|
|
50282
50385
|
this[SAW_NULL_BLOCK] = false;
|
|
50283
50386
|
this[SAW_EOF] = false;
|
|
50284
|
-
|
|
50387
|
+
this.on("end", () => this[CLOSESTREAM]());
|
|
50388
|
+
if (typeof opt.onwarn === "function") {
|
|
50285
50389
|
this.on("warn", opt.onwarn);
|
|
50286
|
-
|
|
50390
|
+
}
|
|
50391
|
+
if (typeof opt.onentry === "function") {
|
|
50287
50392
|
this.on("entry", opt.onentry);
|
|
50393
|
+
}
|
|
50288
50394
|
}
|
|
50289
50395
|
[CONSUMEHEADER](chunk, position) {
|
|
50290
|
-
if (this[SAW_VALID_ENTRY] === null)
|
|
50396
|
+
if (this[SAW_VALID_ENTRY] === null) {
|
|
50291
50397
|
this[SAW_VALID_ENTRY] = false;
|
|
50398
|
+
}
|
|
50292
50399
|
let header;
|
|
50293
50400
|
try {
|
|
50294
50401
|
header = new Header(chunk, position, this[EX], this[GEX]);
|
|
@@ -50298,8 +50405,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50298
50405
|
if (header.nullBlock) {
|
|
50299
50406
|
if (this[SAW_NULL_BLOCK]) {
|
|
50300
50407
|
this[SAW_EOF] = true;
|
|
50301
|
-
if (this[STATE] === "begin")
|
|
50408
|
+
if (this[STATE] === "begin") {
|
|
50302
50409
|
this[STATE] = "header";
|
|
50410
|
+
}
|
|
50303
50411
|
this[EMIT]("eof");
|
|
50304
50412
|
} else {
|
|
50305
50413
|
this[SAW_NULL_BLOCK] = true;
|
|
@@ -50307,27 +50415,29 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50307
50415
|
}
|
|
50308
50416
|
} else {
|
|
50309
50417
|
this[SAW_NULL_BLOCK] = false;
|
|
50310
|
-
if (!header.cksumValid)
|
|
50418
|
+
if (!header.cksumValid) {
|
|
50311
50419
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header });
|
|
50312
|
-
else if (!header.path)
|
|
50420
|
+
} else if (!header.path) {
|
|
50313
50421
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header });
|
|
50314
|
-
else {
|
|
50422
|
+
} else {
|
|
50315
50423
|
const type = header.type;
|
|
50316
|
-
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
|
50424
|
+
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath) {
|
|
50317
50425
|
this.warn("TAR_ENTRY_INVALID", "linkpath required", { header });
|
|
50318
|
-
else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath)
|
|
50426
|
+
} else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath) {
|
|
50319
50427
|
this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header });
|
|
50320
|
-
else {
|
|
50428
|
+
} else {
|
|
50321
50429
|
const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX]);
|
|
50322
50430
|
if (!this[SAW_VALID_ENTRY]) {
|
|
50323
50431
|
if (entry.remain) {
|
|
50324
50432
|
const onend = () => {
|
|
50325
|
-
if (!entry.invalid)
|
|
50433
|
+
if (!entry.invalid) {
|
|
50326
50434
|
this[SAW_VALID_ENTRY] = true;
|
|
50435
|
+
}
|
|
50327
50436
|
};
|
|
50328
50437
|
entry.on("end", onend);
|
|
50329
|
-
} else
|
|
50438
|
+
} else {
|
|
50330
50439
|
this[SAW_VALID_ENTRY] = true;
|
|
50440
|
+
}
|
|
50331
50441
|
}
|
|
50332
50442
|
if (entry.meta) {
|
|
50333
50443
|
if (entry.size > this.maxMetaEntrySize) {
|
|
@@ -50348,31 +50458,35 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50348
50458
|
this[STATE] = entry.remain ? "ignore" : "header";
|
|
50349
50459
|
entry.resume();
|
|
50350
50460
|
} else {
|
|
50351
|
-
if (entry.remain)
|
|
50461
|
+
if (entry.remain) {
|
|
50352
50462
|
this[STATE] = "body";
|
|
50353
|
-
else {
|
|
50463
|
+
} else {
|
|
50354
50464
|
this[STATE] = "header";
|
|
50355
50465
|
entry.end();
|
|
50356
50466
|
}
|
|
50357
50467
|
if (!this[READENTRY]) {
|
|
50358
50468
|
this[QUEUE].push(entry);
|
|
50359
50469
|
this[NEXTENTRY]();
|
|
50360
|
-
} else
|
|
50470
|
+
} else {
|
|
50361
50471
|
this[QUEUE].push(entry);
|
|
50472
|
+
}
|
|
50362
50473
|
}
|
|
50363
50474
|
}
|
|
50364
50475
|
}
|
|
50365
50476
|
}
|
|
50366
50477
|
}
|
|
50367
50478
|
}
|
|
50479
|
+
[CLOSESTREAM]() {
|
|
50480
|
+
nextTick(() => this.emit("close"));
|
|
50481
|
+
}
|
|
50368
50482
|
[PROCESSENTRY](entry) {
|
|
50369
50483
|
let go = true;
|
|
50370
50484
|
if (!entry) {
|
|
50371
50485
|
this[READENTRY] = null;
|
|
50372
50486
|
go = false;
|
|
50373
|
-
} else if (Array.isArray(entry))
|
|
50487
|
+
} else if (Array.isArray(entry)) {
|
|
50374
50488
|
this.emit.apply(this, entry);
|
|
50375
|
-
else {
|
|
50489
|
+
} else {
|
|
50376
50490
|
this[READENTRY] = entry;
|
|
50377
50491
|
this.emit("entry", entry);
|
|
50378
50492
|
if (!entry.emittedEnd) {
|
|
@@ -50389,10 +50503,12 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50389
50503
|
const re = this[READENTRY];
|
|
50390
50504
|
const drainNow = !re || re.flowing || re.size === re.remain;
|
|
50391
50505
|
if (drainNow) {
|
|
50392
|
-
if (!this[WRITING])
|
|
50506
|
+
if (!this[WRITING]) {
|
|
50393
50507
|
this.emit("drain");
|
|
50394
|
-
|
|
50508
|
+
}
|
|
50509
|
+
} else {
|
|
50395
50510
|
re.once("drain", (_) => this.emit("drain"));
|
|
50511
|
+
}
|
|
50396
50512
|
}
|
|
50397
50513
|
}
|
|
50398
50514
|
[CONSUMEBODY](chunk, position) {
|
|
@@ -50410,15 +50526,17 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50410
50526
|
[CONSUMEMETA](chunk, position) {
|
|
50411
50527
|
const entry = this[WRITEENTRY];
|
|
50412
50528
|
const ret = this[CONSUMEBODY](chunk, position);
|
|
50413
|
-
if (!this[WRITEENTRY])
|
|
50529
|
+
if (!this[WRITEENTRY]) {
|
|
50414
50530
|
this[EMITMETA](entry);
|
|
50531
|
+
}
|
|
50415
50532
|
return ret;
|
|
50416
50533
|
}
|
|
50417
50534
|
[EMIT](ev, data, extra) {
|
|
50418
|
-
if (!this[QUEUE].length && !this[READENTRY])
|
|
50535
|
+
if (!this[QUEUE].length && !this[READENTRY]) {
|
|
50419
50536
|
this.emit(ev, data, extra);
|
|
50420
|
-
else
|
|
50537
|
+
} else {
|
|
50421
50538
|
this[QUEUE].push([ev, data, extra]);
|
|
50539
|
+
}
|
|
50422
50540
|
}
|
|
50423
50541
|
[EMITMETA](entry) {
|
|
50424
50542
|
this[EMIT]("meta", this[META]);
|
|
@@ -50449,8 +50567,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50449
50567
|
this.warn("TAR_ABORT", error, { recoverable: false });
|
|
50450
50568
|
}
|
|
50451
50569
|
write(chunk) {
|
|
50452
|
-
if (this[ABORTED])
|
|
50570
|
+
if (this[ABORTED]) {
|
|
50453
50571
|
return;
|
|
50572
|
+
}
|
|
50454
50573
|
if (this[UNZIP] === null && chunk) {
|
|
50455
50574
|
if (this[BUFFER]) {
|
|
50456
50575
|
chunk = Buffer.concat([this[BUFFER], chunk]);
|
|
@@ -50461,8 +50580,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50461
50580
|
return true;
|
|
50462
50581
|
}
|
|
50463
50582
|
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
|
50464
|
-
if (chunk[i] !== gzipHeader[i])
|
|
50583
|
+
if (chunk[i] !== gzipHeader[i]) {
|
|
50465
50584
|
this[UNZIP] = false;
|
|
50585
|
+
}
|
|
50466
50586
|
}
|
|
50467
50587
|
if (this[UNZIP] === null) {
|
|
50468
50588
|
const ended = this[ENDED];
|
|
@@ -50481,19 +50601,22 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50481
50601
|
}
|
|
50482
50602
|
}
|
|
50483
50603
|
this[WRITING] = true;
|
|
50484
|
-
if (this[UNZIP])
|
|
50604
|
+
if (this[UNZIP]) {
|
|
50485
50605
|
this[UNZIP].write(chunk);
|
|
50486
|
-
else
|
|
50606
|
+
} else {
|
|
50487
50607
|
this[CONSUMECHUNK](chunk);
|
|
50608
|
+
}
|
|
50488
50609
|
this[WRITING] = false;
|
|
50489
50610
|
const ret = this[QUEUE].length ? false : this[READENTRY] ? this[READENTRY].flowing : true;
|
|
50490
|
-
if (!ret && !this[QUEUE].length)
|
|
50611
|
+
if (!ret && !this[QUEUE].length) {
|
|
50491
50612
|
this[READENTRY].once("drain", (_) => this.emit("drain"));
|
|
50613
|
+
}
|
|
50492
50614
|
return ret;
|
|
50493
50615
|
}
|
|
50494
50616
|
[BUFFERCONCAT](c) {
|
|
50495
|
-
if (c && !this[ABORTED])
|
|
50617
|
+
if (c && !this[ABORTED]) {
|
|
50496
50618
|
this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c;
|
|
50619
|
+
}
|
|
50497
50620
|
}
|
|
50498
50621
|
[MAYBEEND]() {
|
|
50499
50622
|
if (this[ENDED] && !this[EMITTEDEND] && !this[ABORTED] && !this[CONSUMING]) {
|
|
@@ -50502,27 +50625,29 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50502
50625
|
if (entry && entry.blockRemain) {
|
|
50503
50626
|
const have = this[BUFFER] ? this[BUFFER].length : 0;
|
|
50504
50627
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${entry.blockRemain} more bytes, only ${have} available)`, { entry });
|
|
50505
|
-
if (this[BUFFER])
|
|
50628
|
+
if (this[BUFFER]) {
|
|
50506
50629
|
entry.write(this[BUFFER]);
|
|
50630
|
+
}
|
|
50507
50631
|
entry.end();
|
|
50508
50632
|
}
|
|
50509
50633
|
this[EMIT](DONE);
|
|
50510
50634
|
}
|
|
50511
50635
|
}
|
|
50512
50636
|
[CONSUMECHUNK](chunk) {
|
|
50513
|
-
if (this[CONSUMING])
|
|
50637
|
+
if (this[CONSUMING]) {
|
|
50514
50638
|
this[BUFFERCONCAT](chunk);
|
|
50515
|
-
else if (!chunk && !this[BUFFER])
|
|
50639
|
+
} else if (!chunk && !this[BUFFER]) {
|
|
50516
50640
|
this[MAYBEEND]();
|
|
50517
|
-
else {
|
|
50641
|
+
} else {
|
|
50518
50642
|
this[CONSUMING] = true;
|
|
50519
50643
|
if (this[BUFFER]) {
|
|
50520
50644
|
this[BUFFERCONCAT](chunk);
|
|
50521
50645
|
const c = this[BUFFER];
|
|
50522
50646
|
this[BUFFER] = null;
|
|
50523
50647
|
this[CONSUMECHUNKSUB](c);
|
|
50524
|
-
} else
|
|
50648
|
+
} else {
|
|
50525
50649
|
this[CONSUMECHUNKSUB](chunk);
|
|
50650
|
+
}
|
|
50526
50651
|
while (this[BUFFER] && this[BUFFER].length >= 512 && !this[ABORTED] && !this[SAW_EOF]) {
|
|
50527
50652
|
const c = this[BUFFER];
|
|
50528
50653
|
this[BUFFER] = null;
|
|
@@ -50530,8 +50655,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50530
50655
|
}
|
|
50531
50656
|
this[CONSUMING] = false;
|
|
50532
50657
|
}
|
|
50533
|
-
if (!this[BUFFER] || this[ENDED])
|
|
50658
|
+
if (!this[BUFFER] || this[ENDED]) {
|
|
50534
50659
|
this[MAYBEEND]();
|
|
50660
|
+
}
|
|
50535
50661
|
}
|
|
50536
50662
|
[CONSUMECHUNKSUB](chunk) {
|
|
50537
50663
|
let position = 0;
|
|
@@ -50555,17 +50681,18 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50555
50681
|
}
|
|
50556
50682
|
}
|
|
50557
50683
|
if (position < length) {
|
|
50558
|
-
if (this[BUFFER])
|
|
50684
|
+
if (this[BUFFER]) {
|
|
50559
50685
|
this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]]);
|
|
50560
|
-
else
|
|
50686
|
+
} else {
|
|
50561
50687
|
this[BUFFER] = chunk.slice(position);
|
|
50688
|
+
}
|
|
50562
50689
|
}
|
|
50563
50690
|
}
|
|
50564
50691
|
end(chunk) {
|
|
50565
50692
|
if (!this[ABORTED]) {
|
|
50566
|
-
if (this[UNZIP])
|
|
50693
|
+
if (this[UNZIP]) {
|
|
50567
50694
|
this[UNZIP].end(chunk);
|
|
50568
|
-
else {
|
|
50695
|
+
} else {
|
|
50569
50696
|
this[ENDED] = true;
|
|
50570
50697
|
this.write(chunk);
|
|
50571
50698
|
}
|
|
@@ -50582,25 +50709,32 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50582
50709
|
var path6 = __require("path");
|
|
50583
50710
|
var stripSlash = require_strip_trailing_slashes();
|
|
50584
50711
|
module2.exports = (opt_, files, cb) => {
|
|
50585
|
-
if (typeof opt_ === "function")
|
|
50712
|
+
if (typeof opt_ === "function") {
|
|
50586
50713
|
cb = opt_, files = null, opt_ = {};
|
|
50587
|
-
else if (Array.isArray(opt_))
|
|
50714
|
+
} else if (Array.isArray(opt_)) {
|
|
50588
50715
|
files = opt_, opt_ = {};
|
|
50589
|
-
|
|
50716
|
+
}
|
|
50717
|
+
if (typeof files === "function") {
|
|
50590
50718
|
cb = files, files = null;
|
|
50591
|
-
|
|
50719
|
+
}
|
|
50720
|
+
if (!files) {
|
|
50592
50721
|
files = [];
|
|
50593
|
-
else
|
|
50722
|
+
} else {
|
|
50594
50723
|
files = Array.from(files);
|
|
50724
|
+
}
|
|
50595
50725
|
const opt = hlo(opt_);
|
|
50596
|
-
if (opt.sync && typeof cb === "function")
|
|
50726
|
+
if (opt.sync && typeof cb === "function") {
|
|
50597
50727
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50598
|
-
|
|
50728
|
+
}
|
|
50729
|
+
if (!opt.file && typeof cb === "function") {
|
|
50599
50730
|
throw new TypeError("callback only supported with file option");
|
|
50600
|
-
|
|
50731
|
+
}
|
|
50732
|
+
if (files.length) {
|
|
50601
50733
|
filesFilter(opt, files);
|
|
50602
|
-
|
|
50734
|
+
}
|
|
50735
|
+
if (!opt.noResume) {
|
|
50603
50736
|
onentryFunction(opt);
|
|
50737
|
+
}
|
|
50604
50738
|
return opt.file && opt.sync ? listFileSync(opt) : opt.file ? listFile(opt, cb) : list(opt);
|
|
50605
50739
|
};
|
|
50606
50740
|
var onentryFunction = (opt) => {
|
|
@@ -50629,9 +50763,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50629
50763
|
try {
|
|
50630
50764
|
const stat = fs4.statSync(file);
|
|
50631
50765
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
50632
|
-
if (stat.size < readSize)
|
|
50766
|
+
if (stat.size < readSize) {
|
|
50633
50767
|
p.end(fs4.readFileSync(file));
|
|
50634
|
-
else {
|
|
50768
|
+
} else {
|
|
50635
50769
|
let pos = 0;
|
|
50636
50770
|
const buf = Buffer.allocUnsafe(readSize);
|
|
50637
50771
|
fd = fs4.openSync(file, "r");
|
|
@@ -50660,9 +50794,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50660
50794
|
parse2.on("error", reject);
|
|
50661
50795
|
parse2.on("end", resolve);
|
|
50662
50796
|
fs4.stat(file, (er, stat) => {
|
|
50663
|
-
if (er)
|
|
50797
|
+
if (er) {
|
|
50664
50798
|
reject(er);
|
|
50665
|
-
else {
|
|
50799
|
+
} else {
|
|
50666
50800
|
const stream = new fsm.ReadStream(file, {
|
|
50667
50801
|
readSize,
|
|
50668
50802
|
size: stat.size
|
|
@@ -50684,18 +50818,23 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50684
50818
|
var t = require_list();
|
|
50685
50819
|
var path6 = __require("path");
|
|
50686
50820
|
module2.exports = (opt_, files, cb) => {
|
|
50687
|
-
if (typeof files === "function")
|
|
50821
|
+
if (typeof files === "function") {
|
|
50688
50822
|
cb = files;
|
|
50689
|
-
|
|
50823
|
+
}
|
|
50824
|
+
if (Array.isArray(opt_)) {
|
|
50690
50825
|
files = opt_, opt_ = {};
|
|
50691
|
-
|
|
50826
|
+
}
|
|
50827
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50692
50828
|
throw new TypeError("no files or directories specified");
|
|
50829
|
+
}
|
|
50693
50830
|
files = Array.from(files);
|
|
50694
50831
|
const opt = hlo(opt_);
|
|
50695
|
-
if (opt.sync && typeof cb === "function")
|
|
50832
|
+
if (opt.sync && typeof cb === "function") {
|
|
50696
50833
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50697
|
-
|
|
50834
|
+
}
|
|
50835
|
+
if (!opt.file && typeof cb === "function") {
|
|
50698
50836
|
throw new TypeError("callback only supported with file option");
|
|
50837
|
+
}
|
|
50699
50838
|
return opt.file && opt.sync ? createFileSync(opt, files) : opt.file ? createFile(opt, files, cb) : opt.sync ? createSync(opt, files) : create(opt, files);
|
|
50700
50839
|
};
|
|
50701
50840
|
var createFileSync = (opt, files) => {
|
|
@@ -50724,13 +50863,14 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50724
50863
|
files.forEach((file) => {
|
|
50725
50864
|
if (file.charAt(0) === "@") {
|
|
50726
50865
|
t({
|
|
50727
|
-
file: path6.resolve(p.cwd, file.
|
|
50866
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50728
50867
|
sync: true,
|
|
50729
50868
|
noResume: true,
|
|
50730
50869
|
onentry: (entry) => p.add(entry)
|
|
50731
50870
|
});
|
|
50732
|
-
} else
|
|
50871
|
+
} else {
|
|
50733
50872
|
p.add(file);
|
|
50873
|
+
}
|
|
50734
50874
|
});
|
|
50735
50875
|
p.end();
|
|
50736
50876
|
};
|
|
@@ -50739,12 +50879,13 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50739
50879
|
const file = files.shift();
|
|
50740
50880
|
if (file.charAt(0) === "@") {
|
|
50741
50881
|
return t({
|
|
50742
|
-
file: path6.resolve(p.cwd, file.
|
|
50882
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50743
50883
|
noResume: true,
|
|
50744
50884
|
onentry: (entry) => p.add(entry)
|
|
50745
50885
|
}).then((_) => addFilesAsync(p, files));
|
|
50746
|
-
} else
|
|
50886
|
+
} else {
|
|
50747
50887
|
p.add(file);
|
|
50888
|
+
}
|
|
50748
50889
|
}
|
|
50749
50890
|
p.end();
|
|
50750
50891
|
};
|
|
@@ -50770,12 +50911,15 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50770
50911
|
var Header = require_header();
|
|
50771
50912
|
module2.exports = (opt_, files, cb) => {
|
|
50772
50913
|
const opt = hlo(opt_);
|
|
50773
|
-
if (!opt.file)
|
|
50914
|
+
if (!opt.file) {
|
|
50774
50915
|
throw new TypeError("file is required");
|
|
50775
|
-
|
|
50916
|
+
}
|
|
50917
|
+
if (opt.gzip) {
|
|
50776
50918
|
throw new TypeError("cannot append to compressed archives");
|
|
50777
|
-
|
|
50919
|
+
}
|
|
50920
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50778
50921
|
throw new TypeError("no files or directories specified");
|
|
50922
|
+
}
|
|
50779
50923
|
files = Array.from(files);
|
|
50780
50924
|
return opt.sync ? replaceSync(opt, files) : replace2(opt, files, cb);
|
|
50781
50925
|
};
|
|
@@ -50788,10 +50932,11 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50788
50932
|
try {
|
|
50789
50933
|
fd = fs4.openSync(opt.file, "r+");
|
|
50790
50934
|
} catch (er) {
|
|
50791
|
-
if (er.code === "ENOENT")
|
|
50935
|
+
if (er.code === "ENOENT") {
|
|
50792
50936
|
fd = fs4.openSync(opt.file, "w+");
|
|
50793
|
-
else
|
|
50937
|
+
} else {
|
|
50794
50938
|
throw er;
|
|
50939
|
+
}
|
|
50795
50940
|
}
|
|
50796
50941
|
const st = fs4.fstatSync(fd);
|
|
50797
50942
|
const headBuf = Buffer.alloc(512);
|
|
@@ -50799,20 +50944,25 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50799
50944
|
for (position = 0; position < st.size; position += 512) {
|
|
50800
50945
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
50801
50946
|
bytes = fs4.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
50802
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
50947
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
50803
50948
|
throw new Error("cannot append to compressed archives");
|
|
50804
|
-
|
|
50949
|
+
}
|
|
50950
|
+
if (!bytes) {
|
|
50805
50951
|
break POSITION;
|
|
50952
|
+
}
|
|
50806
50953
|
}
|
|
50807
50954
|
const h = new Header(headBuf);
|
|
50808
|
-
if (!h.cksumValid)
|
|
50955
|
+
if (!h.cksumValid) {
|
|
50809
50956
|
break;
|
|
50957
|
+
}
|
|
50810
50958
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
50811
|
-
if (position + entryBlockSize + 512 > st.size)
|
|
50959
|
+
if (position + entryBlockSize + 512 > st.size) {
|
|
50812
50960
|
break;
|
|
50961
|
+
}
|
|
50813
50962
|
position += entryBlockSize;
|
|
50814
|
-
if (opt.mtimeCache)
|
|
50963
|
+
if (opt.mtimeCache) {
|
|
50815
50964
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
50965
|
+
}
|
|
50816
50966
|
}
|
|
50817
50967
|
threw = false;
|
|
50818
50968
|
streamSync(opt, p, position, fd, files);
|
|
@@ -50838,38 +50988,47 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50838
50988
|
const p = new Pack(opt);
|
|
50839
50989
|
const getPos = (fd, size, cb_) => {
|
|
50840
50990
|
const cb2 = (er, pos) => {
|
|
50841
|
-
if (er)
|
|
50991
|
+
if (er) {
|
|
50842
50992
|
fs4.close(fd, (_) => cb_(er));
|
|
50843
|
-
else
|
|
50993
|
+
} else {
|
|
50844
50994
|
cb_(null, pos);
|
|
50995
|
+
}
|
|
50845
50996
|
};
|
|
50846
50997
|
let position = 0;
|
|
50847
|
-
if (size === 0)
|
|
50998
|
+
if (size === 0) {
|
|
50848
50999
|
return cb2(null, 0);
|
|
51000
|
+
}
|
|
50849
51001
|
let bufPos = 0;
|
|
50850
51002
|
const headBuf = Buffer.alloc(512);
|
|
50851
51003
|
const onread = (er, bytes) => {
|
|
50852
|
-
if (er)
|
|
51004
|
+
if (er) {
|
|
50853
51005
|
return cb2(er);
|
|
51006
|
+
}
|
|
50854
51007
|
bufPos += bytes;
|
|
50855
51008
|
if (bufPos < 512 && bytes) {
|
|
50856
51009
|
return fs4.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
50857
51010
|
}
|
|
50858
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
51011
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
50859
51012
|
return cb2(new Error("cannot append to compressed archives"));
|
|
50860
|
-
|
|
51013
|
+
}
|
|
51014
|
+
if (bufPos < 512) {
|
|
50861
51015
|
return cb2(null, position);
|
|
51016
|
+
}
|
|
50862
51017
|
const h = new Header(headBuf);
|
|
50863
|
-
if (!h.cksumValid)
|
|
51018
|
+
if (!h.cksumValid) {
|
|
50864
51019
|
return cb2(null, position);
|
|
51020
|
+
}
|
|
50865
51021
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
50866
|
-
if (position + entryBlockSize + 512 > size)
|
|
51022
|
+
if (position + entryBlockSize + 512 > size) {
|
|
50867
51023
|
return cb2(null, position);
|
|
51024
|
+
}
|
|
50868
51025
|
position += entryBlockSize + 512;
|
|
50869
|
-
if (position >= size)
|
|
51026
|
+
if (position >= size) {
|
|
50870
51027
|
return cb2(null, position);
|
|
50871
|
-
|
|
51028
|
+
}
|
|
51029
|
+
if (opt.mtimeCache) {
|
|
50872
51030
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
51031
|
+
}
|
|
50873
51032
|
bufPos = 0;
|
|
50874
51033
|
fs4.read(fd, headBuf, 0, 512, position, onread);
|
|
50875
51034
|
};
|
|
@@ -50883,14 +51042,17 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50883
51042
|
flag = "w+";
|
|
50884
51043
|
return fs4.open(opt.file, flag, onopen);
|
|
50885
51044
|
}
|
|
50886
|
-
if (er)
|
|
51045
|
+
if (er) {
|
|
50887
51046
|
return reject(er);
|
|
51047
|
+
}
|
|
50888
51048
|
fs4.fstat(fd, (er2, st) => {
|
|
50889
|
-
if (er2)
|
|
51049
|
+
if (er2) {
|
|
50890
51050
|
return fs4.close(fd, () => reject(er2));
|
|
51051
|
+
}
|
|
50891
51052
|
getPos(fd, st.size, (er3, position) => {
|
|
50892
|
-
if (er3)
|
|
51053
|
+
if (er3) {
|
|
50893
51054
|
return reject(er3);
|
|
51055
|
+
}
|
|
50894
51056
|
const stream = new fsm.WriteStream(opt.file, {
|
|
50895
51057
|
fd,
|
|
50896
51058
|
start: position
|
|
@@ -50910,13 +51072,14 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50910
51072
|
files.forEach((file) => {
|
|
50911
51073
|
if (file.charAt(0) === "@") {
|
|
50912
51074
|
t({
|
|
50913
|
-
file: path6.resolve(p.cwd, file.
|
|
51075
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50914
51076
|
sync: true,
|
|
50915
51077
|
noResume: true,
|
|
50916
51078
|
onentry: (entry) => p.add(entry)
|
|
50917
51079
|
});
|
|
50918
|
-
} else
|
|
51080
|
+
} else {
|
|
50919
51081
|
p.add(file);
|
|
51082
|
+
}
|
|
50920
51083
|
});
|
|
50921
51084
|
p.end();
|
|
50922
51085
|
};
|
|
@@ -50925,12 +51088,13 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50925
51088
|
const file = files.shift();
|
|
50926
51089
|
if (file.charAt(0) === "@") {
|
|
50927
51090
|
return t({
|
|
50928
|
-
file: path6.resolve(p.cwd, file.
|
|
51091
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50929
51092
|
noResume: true,
|
|
50930
51093
|
onentry: (entry) => p.add(entry)
|
|
50931
51094
|
}).then((_) => addFilesAsync(p, files));
|
|
50932
|
-
} else
|
|
51095
|
+
} else {
|
|
50933
51096
|
p.add(file);
|
|
51097
|
+
}
|
|
50934
51098
|
}
|
|
50935
51099
|
p.end();
|
|
50936
51100
|
};
|
|
@@ -50941,20 +51105,24 @@ var require_update = __commonJSMin((exports, module2) => {
|
|
|
50941
51105
|
var r = require_replace();
|
|
50942
51106
|
module2.exports = (opt_, files, cb) => {
|
|
50943
51107
|
const opt = hlo(opt_);
|
|
50944
|
-
if (!opt.file)
|
|
51108
|
+
if (!opt.file) {
|
|
50945
51109
|
throw new TypeError("file is required");
|
|
50946
|
-
|
|
51110
|
+
}
|
|
51111
|
+
if (opt.gzip) {
|
|
50947
51112
|
throw new TypeError("cannot append to compressed archives");
|
|
50948
|
-
|
|
51113
|
+
}
|
|
51114
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50949
51115
|
throw new TypeError("no files or directories specified");
|
|
51116
|
+
}
|
|
50950
51117
|
files = Array.from(files);
|
|
50951
51118
|
mtimeFilter(opt);
|
|
50952
51119
|
return r(opt, files, cb);
|
|
50953
51120
|
};
|
|
50954
51121
|
var mtimeFilter = (opt) => {
|
|
50955
51122
|
const filter = opt.filter;
|
|
50956
|
-
if (!opt.mtimeCache)
|
|
51123
|
+
if (!opt.mtimeCache) {
|
|
50957
51124
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
51125
|
+
}
|
|
50958
51126
|
opt.filter = filter ? (path6, stat) => filter(path6, stat) && !(opt.mtimeCache.get(path6) > stat.mtime) : (path6, stat) => !(opt.mtimeCache.get(path6) > stat.mtime);
|
|
50959
51127
|
};
|
|
50960
51128
|
});
|
|
@@ -51306,8 +51474,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51306
51474
|
var cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
51307
51475
|
var checkCwd = (dir, cb) => {
|
|
51308
51476
|
fs4.stat(dir, (er, st) => {
|
|
51309
|
-
if (er || !st.isDirectory())
|
|
51477
|
+
if (er || !st.isDirectory()) {
|
|
51310
51478
|
er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
51479
|
+
}
|
|
51311
51480
|
cb(er);
|
|
51312
51481
|
});
|
|
51313
51482
|
};
|
|
@@ -51324,35 +51493,41 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51324
51493
|
const cache = opt.cache;
|
|
51325
51494
|
const cwd = normPath(opt.cwd);
|
|
51326
51495
|
const done = (er, created) => {
|
|
51327
|
-
if (er)
|
|
51496
|
+
if (er) {
|
|
51328
51497
|
cb(er);
|
|
51329
|
-
else {
|
|
51498
|
+
} else {
|
|
51330
51499
|
cSet(cache, dir, true);
|
|
51331
|
-
if (created && doChown)
|
|
51500
|
+
if (created && doChown) {
|
|
51332
51501
|
chownr(created, uid2, gid, (er2) => done(er2));
|
|
51333
|
-
else if (needChmod)
|
|
51502
|
+
} else if (needChmod) {
|
|
51334
51503
|
fs4.chmod(dir, mode, cb);
|
|
51335
|
-
else
|
|
51504
|
+
} else {
|
|
51336
51505
|
cb();
|
|
51506
|
+
}
|
|
51337
51507
|
}
|
|
51338
51508
|
};
|
|
51339
|
-
if (cache && cGet(cache, dir) === true)
|
|
51509
|
+
if (cache && cGet(cache, dir) === true) {
|
|
51340
51510
|
return done();
|
|
51341
|
-
|
|
51511
|
+
}
|
|
51512
|
+
if (dir === cwd) {
|
|
51342
51513
|
return checkCwd(dir, done);
|
|
51343
|
-
|
|
51514
|
+
}
|
|
51515
|
+
if (preserve) {
|
|
51344
51516
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
51517
|
+
}
|
|
51345
51518
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51346
51519
|
const parts = sub.split("/");
|
|
51347
51520
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
|
51348
51521
|
};
|
|
51349
51522
|
var mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
51350
|
-
if (!parts.length)
|
|
51523
|
+
if (!parts.length) {
|
|
51351
51524
|
return cb(null, created);
|
|
51525
|
+
}
|
|
51352
51526
|
const p = parts.shift();
|
|
51353
51527
|
const part = normPath(path6.resolve(base + "/" + p));
|
|
51354
|
-
if (cGet(cache, part))
|
|
51528
|
+
if (cGet(cache, part)) {
|
|
51355
51529
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
51530
|
+
}
|
|
51356
51531
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
51357
51532
|
};
|
|
51358
51533
|
var onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
@@ -51361,18 +51536,20 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51361
51536
|
if (statEr) {
|
|
51362
51537
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
51363
51538
|
cb(statEr);
|
|
51364
|
-
} else if (st.isDirectory())
|
|
51539
|
+
} else if (st.isDirectory()) {
|
|
51365
51540
|
mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
51366
|
-
else if (unlink) {
|
|
51541
|
+
} else if (unlink) {
|
|
51367
51542
|
fs4.unlink(part, (er2) => {
|
|
51368
|
-
if (er2)
|
|
51543
|
+
if (er2) {
|
|
51369
51544
|
return cb(er2);
|
|
51545
|
+
}
|
|
51370
51546
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
51371
51547
|
});
|
|
51372
|
-
} else if (st.isSymbolicLink())
|
|
51548
|
+
} else if (st.isSymbolicLink()) {
|
|
51373
51549
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
51374
|
-
else
|
|
51550
|
+
} else {
|
|
51375
51551
|
cb(er);
|
|
51552
|
+
}
|
|
51376
51553
|
});
|
|
51377
51554
|
} else {
|
|
51378
51555
|
created = created || part;
|
|
@@ -51387,8 +51564,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51387
51564
|
} catch (er) {
|
|
51388
51565
|
code = er.code;
|
|
51389
51566
|
} finally {
|
|
51390
|
-
if (!ok)
|
|
51567
|
+
if (!ok) {
|
|
51391
51568
|
throw new CwdError(dir, code);
|
|
51569
|
+
}
|
|
51392
51570
|
}
|
|
51393
51571
|
};
|
|
51394
51572
|
module2.exports.sync = (dir, opt) => {
|
|
@@ -51405,26 +51583,31 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51405
51583
|
const cwd = normPath(opt.cwd);
|
|
51406
51584
|
const done = (created2) => {
|
|
51407
51585
|
cSet(cache, dir, true);
|
|
51408
|
-
if (created2 && doChown)
|
|
51586
|
+
if (created2 && doChown) {
|
|
51409
51587
|
chownr.sync(created2, uid2, gid);
|
|
51410
|
-
|
|
51588
|
+
}
|
|
51589
|
+
if (needChmod) {
|
|
51411
51590
|
fs4.chmodSync(dir, mode);
|
|
51591
|
+
}
|
|
51412
51592
|
};
|
|
51413
|
-
if (cache && cGet(cache, dir) === true)
|
|
51593
|
+
if (cache && cGet(cache, dir) === true) {
|
|
51414
51594
|
return done();
|
|
51595
|
+
}
|
|
51415
51596
|
if (dir === cwd) {
|
|
51416
51597
|
checkCwdSync(cwd);
|
|
51417
51598
|
return done();
|
|
51418
51599
|
}
|
|
51419
|
-
if (preserve)
|
|
51600
|
+
if (preserve) {
|
|
51420
51601
|
return done(mkdirp.sync(dir, mode));
|
|
51602
|
+
}
|
|
51421
51603
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51422
51604
|
const parts = sub.split("/");
|
|
51423
51605
|
let created = null;
|
|
51424
51606
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
51425
51607
|
part = normPath(path6.resolve(part));
|
|
51426
|
-
if (cGet(cache, part))
|
|
51608
|
+
if (cGet(cache, part)) {
|
|
51427
51609
|
continue;
|
|
51610
|
+
}
|
|
51428
51611
|
try {
|
|
51429
51612
|
fs4.mkdirSync(part, mode);
|
|
51430
51613
|
created = created || part;
|
|
@@ -51440,8 +51623,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51440
51623
|
created = created || part;
|
|
51441
51624
|
cSet(cache, part, true);
|
|
51442
51625
|
continue;
|
|
51443
|
-
} else if (st.isSymbolicLink())
|
|
51626
|
+
} else if (st.isSymbolicLink()) {
|
|
51444
51627
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
|
51628
|
+
}
|
|
51445
51629
|
}
|
|
51446
51630
|
}
|
|
51447
51631
|
return done(created);
|
|
@@ -51451,8 +51635,9 @@ var require_normalize_unicode = __commonJSMin((exports, module2) => {
|
|
|
51451
51635
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
|
51452
51636
|
var { hasOwnProperty: hasOwnProperty6 } = Object.prototype;
|
|
51453
51637
|
module2.exports = (s) => {
|
|
51454
|
-
if (!hasOwnProperty6.call(normalizeCache, s))
|
|
51638
|
+
if (!hasOwnProperty6.call(normalizeCache, s)) {
|
|
51455
51639
|
normalizeCache[s] = s.normalize("NFKD");
|
|
51640
|
+
}
|
|
51456
51641
|
return normalizeCache[s];
|
|
51457
51642
|
};
|
|
51458
51643
|
});
|
|
@@ -51468,8 +51653,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51468
51653
|
const reservations = /* @__PURE__ */ new Map();
|
|
51469
51654
|
const getDirs = (path6) => {
|
|
51470
51655
|
const dirs = path6.split("/").slice(0, -1).reduce((set, path7) => {
|
|
51471
|
-
if (set.length)
|
|
51656
|
+
if (set.length) {
|
|
51472
51657
|
path7 = join(set[set.length - 1], path7);
|
|
51658
|
+
}
|
|
51473
51659
|
set.push(path7 || "/");
|
|
51474
51660
|
return set;
|
|
51475
51661
|
}, []);
|
|
@@ -51478,8 +51664,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51478
51664
|
const running = /* @__PURE__ */ new Set();
|
|
51479
51665
|
const getQueues = (fn) => {
|
|
51480
51666
|
const res = reservations.get(fn);
|
|
51481
|
-
if (!res)
|
|
51667
|
+
if (!res) {
|
|
51482
51668
|
throw new Error("function does not have any path reservations");
|
|
51669
|
+
}
|
|
51483
51670
|
return {
|
|
51484
51671
|
paths: res.paths.map((path6) => queues.get(path6)),
|
|
51485
51672
|
dirs: [...res.dirs].map((path6) => queues.get(path6))
|
|
@@ -51490,40 +51677,44 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51490
51677
|
return paths.every((q) => q[0] === fn) && dirs.every((q) => q[0] instanceof Set && q[0].has(fn));
|
|
51491
51678
|
};
|
|
51492
51679
|
const run = (fn) => {
|
|
51493
|
-
if (running.has(fn) || !check(fn))
|
|
51680
|
+
if (running.has(fn) || !check(fn)) {
|
|
51494
51681
|
return false;
|
|
51682
|
+
}
|
|
51495
51683
|
running.add(fn);
|
|
51496
51684
|
fn(() => clear(fn));
|
|
51497
51685
|
return true;
|
|
51498
51686
|
};
|
|
51499
51687
|
const clear = (fn) => {
|
|
51500
|
-
if (!running.has(fn))
|
|
51688
|
+
if (!running.has(fn)) {
|
|
51501
51689
|
return false;
|
|
51690
|
+
}
|
|
51502
51691
|
const { paths, dirs } = reservations.get(fn);
|
|
51503
51692
|
const next = /* @__PURE__ */ new Set();
|
|
51504
51693
|
paths.forEach((path6) => {
|
|
51505
51694
|
const q = queues.get(path6);
|
|
51506
51695
|
assert.equal(q[0], fn);
|
|
51507
|
-
if (q.length === 1)
|
|
51696
|
+
if (q.length === 1) {
|
|
51508
51697
|
queues.delete(path6);
|
|
51509
|
-
else {
|
|
51698
|
+
} else {
|
|
51510
51699
|
q.shift();
|
|
51511
|
-
if (typeof q[0] === "function")
|
|
51700
|
+
if (typeof q[0] === "function") {
|
|
51512
51701
|
next.add(q[0]);
|
|
51513
|
-
else
|
|
51702
|
+
} else {
|
|
51514
51703
|
q[0].forEach((fn2) => next.add(fn2));
|
|
51704
|
+
}
|
|
51515
51705
|
}
|
|
51516
51706
|
});
|
|
51517
51707
|
dirs.forEach((dir) => {
|
|
51518
51708
|
const q = queues.get(dir);
|
|
51519
51709
|
assert(q[0] instanceof Set);
|
|
51520
|
-
if (q[0].size === 1 && q.length === 1)
|
|
51710
|
+
if (q[0].size === 1 && q.length === 1) {
|
|
51521
51711
|
queues.delete(dir);
|
|
51522
|
-
else if (q[0].size === 1) {
|
|
51712
|
+
} else if (q[0].size === 1) {
|
|
51523
51713
|
q.shift();
|
|
51524
51714
|
next.add(q[0]);
|
|
51525
|
-
} else
|
|
51715
|
+
} else {
|
|
51526
51716
|
q[0].delete(fn);
|
|
51717
|
+
}
|
|
51527
51718
|
});
|
|
51528
51719
|
running.delete(fn);
|
|
51529
51720
|
next.forEach((fn2) => run(fn2));
|
|
@@ -51537,19 +51728,21 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51537
51728
|
reservations.set(fn, { dirs, paths });
|
|
51538
51729
|
paths.forEach((path6) => {
|
|
51539
51730
|
const q = queues.get(path6);
|
|
51540
|
-
if (!q)
|
|
51731
|
+
if (!q) {
|
|
51541
51732
|
queues.set(path6, [fn]);
|
|
51542
|
-
else
|
|
51733
|
+
} else {
|
|
51543
51734
|
q.push(fn);
|
|
51735
|
+
}
|
|
51544
51736
|
});
|
|
51545
51737
|
dirs.forEach((dir) => {
|
|
51546
51738
|
const q = queues.get(dir);
|
|
51547
|
-
if (!q)
|
|
51739
|
+
if (!q) {
|
|
51548
51740
|
queues.set(dir, [/* @__PURE__ */ new Set([fn])]);
|
|
51549
|
-
else if (q[q.length - 1] instanceof Set)
|
|
51741
|
+
} else if (q[q.length - 1] instanceof Set) {
|
|
51550
51742
|
q[q.length - 1].add(fn);
|
|
51551
|
-
else
|
|
51743
|
+
} else {
|
|
51552
51744
|
q.push(/* @__PURE__ */ new Set([fn]));
|
|
51745
|
+
}
|
|
51553
51746
|
});
|
|
51554
51747
|
return run(fn);
|
|
51555
51748
|
};
|
|
@@ -51610,18 +51803,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51610
51803
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
51611
51804
|
var isWindows = platform === "win32";
|
|
51612
51805
|
var unlinkFile = (path7, cb) => {
|
|
51613
|
-
if (!isWindows)
|
|
51806
|
+
if (!isWindows) {
|
|
51614
51807
|
return fs4.unlink(path7, cb);
|
|
51808
|
+
}
|
|
51615
51809
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51616
51810
|
fs4.rename(path7, name5, (er) => {
|
|
51617
|
-
if (er)
|
|
51811
|
+
if (er) {
|
|
51618
51812
|
return cb(er);
|
|
51813
|
+
}
|
|
51619
51814
|
fs4.unlink(name5, cb);
|
|
51620
51815
|
});
|
|
51621
51816
|
};
|
|
51622
51817
|
var unlinkFileSync = (path7) => {
|
|
51623
|
-
if (!isWindows)
|
|
51818
|
+
if (!isWindows) {
|
|
51624
51819
|
return fs4.unlinkSync(path7);
|
|
51820
|
+
}
|
|
51625
51821
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51626
51822
|
fs4.renameSync(path7, name5);
|
|
51627
51823
|
fs4.unlinkSync(name5);
|
|
@@ -51632,18 +51828,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51632
51828
|
abs = cacheKeyNormalize(abs);
|
|
51633
51829
|
for (const path7 of cache.keys()) {
|
|
51634
51830
|
const pnorm = cacheKeyNormalize(path7);
|
|
51635
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
|
51831
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
|
|
51636
51832
|
cache.delete(path7);
|
|
51833
|
+
}
|
|
51637
51834
|
}
|
|
51638
51835
|
};
|
|
51639
51836
|
var dropCache = (cache) => {
|
|
51640
|
-
for (const key of cache.keys())
|
|
51837
|
+
for (const key of cache.keys()) {
|
|
51641
51838
|
cache.delete(key);
|
|
51839
|
+
}
|
|
51642
51840
|
};
|
|
51643
51841
|
var Unpack = class extends Parser2 {
|
|
51644
51842
|
constructor(opt) {
|
|
51645
|
-
if (!opt)
|
|
51843
|
+
if (!opt) {
|
|
51646
51844
|
opt = {};
|
|
51845
|
+
}
|
|
51647
51846
|
opt.ondone = (_) => {
|
|
51648
51847
|
this[ENDED] = true;
|
|
51649
51848
|
this[MAYBECLOSE]();
|
|
@@ -51658,8 +51857,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51658
51857
|
this[ENDED] = false;
|
|
51659
51858
|
this.dirCache = opt.dirCache || /* @__PURE__ */ new Map();
|
|
51660
51859
|
if (typeof opt.uid === "number" || typeof opt.gid === "number") {
|
|
51661
|
-
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
|
51860
|
+
if (typeof opt.uid !== "number" || typeof opt.gid !== "number") {
|
|
51662
51861
|
throw new TypeError("cannot set owner without number uid and gid");
|
|
51862
|
+
}
|
|
51663
51863
|
if (opt.preserveOwner) {
|
|
51664
51864
|
throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
51665
51865
|
}
|
|
@@ -51671,10 +51871,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51671
51871
|
this.gid = null;
|
|
51672
51872
|
this.setOwner = false;
|
|
51673
51873
|
}
|
|
51674
|
-
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
|
51874
|
+
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number") {
|
|
51675
51875
|
this.preserveOwner = process.getuid && process.getuid() === 0;
|
|
51676
|
-
else
|
|
51876
|
+
} else {
|
|
51677
51877
|
this.preserveOwner = !!opt.preserveOwner;
|
|
51878
|
+
}
|
|
51678
51879
|
this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null;
|
|
51679
51880
|
this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null;
|
|
51680
51881
|
this.forceChown = opt.forceChown === true;
|
|
@@ -51693,8 +51894,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51693
51894
|
this.on("entry", (entry) => this[ONENTRY](entry));
|
|
51694
51895
|
}
|
|
51695
51896
|
warn(code, msg, data = {}) {
|
|
51696
|
-
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
|
51897
|
+
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT") {
|
|
51697
51898
|
data.recoverable = false;
|
|
51899
|
+
}
|
|
51698
51900
|
return super.warn(code, msg, data);
|
|
51699
51901
|
}
|
|
51700
51902
|
[MAYBECLOSE]() {
|
|
@@ -51702,21 +51904,22 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51702
51904
|
this.emit("prefinish");
|
|
51703
51905
|
this.emit("finish");
|
|
51704
51906
|
this.emit("end");
|
|
51705
|
-
this.emit("close");
|
|
51706
51907
|
}
|
|
51707
51908
|
}
|
|
51708
51909
|
[CHECKPATH](entry) {
|
|
51709
51910
|
if (this.strip) {
|
|
51710
51911
|
const parts = normPath(entry.path).split("/");
|
|
51711
|
-
if (parts.length < this.strip)
|
|
51912
|
+
if (parts.length < this.strip) {
|
|
51712
51913
|
return false;
|
|
51914
|
+
}
|
|
51713
51915
|
entry.path = parts.slice(this.strip).join("/");
|
|
51714
51916
|
if (entry.type === "Link") {
|
|
51715
51917
|
const linkparts = normPath(entry.linkpath).split("/");
|
|
51716
|
-
if (linkparts.length >= this.strip)
|
|
51918
|
+
if (linkparts.length >= this.strip) {
|
|
51717
51919
|
entry.linkpath = linkparts.slice(this.strip).join("/");
|
|
51718
|
-
else
|
|
51920
|
+
} else {
|
|
51719
51921
|
return false;
|
|
51922
|
+
}
|
|
51720
51923
|
}
|
|
51721
51924
|
}
|
|
51722
51925
|
if (!this.preservePaths) {
|
|
@@ -51738,10 +51941,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51738
51941
|
});
|
|
51739
51942
|
}
|
|
51740
51943
|
}
|
|
51741
|
-
if (path6.isAbsolute(entry.path))
|
|
51944
|
+
if (path6.isAbsolute(entry.path)) {
|
|
51742
51945
|
entry.absolute = normPath(path6.resolve(entry.path));
|
|
51743
|
-
else
|
|
51946
|
+
} else {
|
|
51744
51947
|
entry.absolute = normPath(path6.resolve(this.cwd, entry.path));
|
|
51948
|
+
}
|
|
51745
51949
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
51746
51950
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
51747
51951
|
entry,
|
|
@@ -51751,25 +51955,28 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51751
51955
|
});
|
|
51752
51956
|
return false;
|
|
51753
51957
|
}
|
|
51754
|
-
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
|
51958
|
+
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") {
|
|
51755
51959
|
return false;
|
|
51960
|
+
}
|
|
51756
51961
|
if (this.win32) {
|
|
51757
51962
|
const { root: aRoot } = path6.win32.parse(entry.absolute);
|
|
51758
|
-
entry.absolute = aRoot + wc.encode(entry.absolute.
|
|
51963
|
+
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
51759
51964
|
const { root: pRoot } = path6.win32.parse(entry.path);
|
|
51760
|
-
entry.path = pRoot + wc.encode(entry.path.
|
|
51965
|
+
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
51761
51966
|
}
|
|
51762
51967
|
return true;
|
|
51763
51968
|
}
|
|
51764
51969
|
[ONENTRY](entry) {
|
|
51765
|
-
if (!this[CHECKPATH](entry))
|
|
51970
|
+
if (!this[CHECKPATH](entry)) {
|
|
51766
51971
|
return entry.resume();
|
|
51972
|
+
}
|
|
51767
51973
|
assert.equal(typeof entry.absolute, "string");
|
|
51768
51974
|
switch (entry.type) {
|
|
51769
51975
|
case "Directory":
|
|
51770
51976
|
case "GNUDumpDir":
|
|
51771
|
-
if (entry.mode)
|
|
51977
|
+
if (entry.mode) {
|
|
51772
51978
|
entry.mode = entry.mode | 448;
|
|
51979
|
+
}
|
|
51773
51980
|
case "File":
|
|
51774
51981
|
case "OldFile":
|
|
51775
51982
|
case "ContiguousFile":
|
|
@@ -51784,9 +51991,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51784
51991
|
}
|
|
51785
51992
|
}
|
|
51786
51993
|
[ONERROR](er, entry) {
|
|
51787
|
-
if (er.name === "CwdError")
|
|
51994
|
+
if (er.name === "CwdError") {
|
|
51788
51995
|
this.emit("error", er);
|
|
51789
|
-
else {
|
|
51996
|
+
} else {
|
|
51790
51997
|
this.warn("TAR_ENTRY_ERROR", er, { entry });
|
|
51791
51998
|
this[UNPEND]();
|
|
51792
51999
|
entry.resume();
|
|
@@ -51824,9 +52031,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51824
52031
|
autoClose: false
|
|
51825
52032
|
});
|
|
51826
52033
|
stream.on("error", (er) => {
|
|
51827
|
-
if (stream.fd)
|
|
52034
|
+
if (stream.fd) {
|
|
51828
52035
|
fs4.close(stream.fd, () => {
|
|
51829
52036
|
});
|
|
52037
|
+
}
|
|
51830
52038
|
stream.write = () => true;
|
|
51831
52039
|
this[ONERROR](er, entry);
|
|
51832
52040
|
fullyDone();
|
|
@@ -51834,19 +52042,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51834
52042
|
let actions = 1;
|
|
51835
52043
|
const done = (er) => {
|
|
51836
52044
|
if (er) {
|
|
51837
|
-
if (stream.fd)
|
|
52045
|
+
if (stream.fd) {
|
|
51838
52046
|
fs4.close(stream.fd, () => {
|
|
51839
52047
|
});
|
|
52048
|
+
}
|
|
51840
52049
|
this[ONERROR](er, entry);
|
|
51841
52050
|
fullyDone();
|
|
51842
52051
|
return;
|
|
51843
52052
|
}
|
|
51844
52053
|
if (--actions === 0) {
|
|
51845
52054
|
fs4.close(stream.fd, (er2) => {
|
|
51846
|
-
if (er2)
|
|
52055
|
+
if (er2) {
|
|
51847
52056
|
this[ONERROR](er2, entry);
|
|
51848
|
-
else
|
|
52057
|
+
} else {
|
|
51849
52058
|
this[UNPEND]();
|
|
52059
|
+
}
|
|
51850
52060
|
fullyDone();
|
|
51851
52061
|
});
|
|
51852
52062
|
}
|
|
@@ -51934,15 +52144,17 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51934
52144
|
[CHECKFS](entry) {
|
|
51935
52145
|
this[PEND]();
|
|
51936
52146
|
const paths = [entry.path];
|
|
51937
|
-
if (entry.linkpath)
|
|
52147
|
+
if (entry.linkpath) {
|
|
51938
52148
|
paths.push(entry.linkpath);
|
|
52149
|
+
}
|
|
51939
52150
|
this.reservations.reserve(paths, (done) => this[CHECKFS2](entry, done));
|
|
51940
52151
|
}
|
|
51941
52152
|
[PRUNECACHE](entry) {
|
|
51942
|
-
if (entry.type === "SymbolicLink")
|
|
52153
|
+
if (entry.type === "SymbolicLink") {
|
|
51943
52154
|
dropCache(this.dirCache);
|
|
51944
|
-
else if (entry.type !== "Directory")
|
|
52155
|
+
} else if (entry.type !== "Directory") {
|
|
51945
52156
|
pruneCache(this.dirCache, entry.absolute);
|
|
52157
|
+
}
|
|
51946
52158
|
}
|
|
51947
52159
|
[CHECKFS2](entry, fullyDone) {
|
|
51948
52160
|
this[PRUNECACHE](entry);
|
|
@@ -51984,29 +52196,33 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51984
52196
|
done();
|
|
51985
52197
|
return;
|
|
51986
52198
|
}
|
|
51987
|
-
if (lstatEr || this[ISREUSABLE](entry, st))
|
|
52199
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
|
51988
52200
|
return this[MAKEFS](null, entry, done);
|
|
52201
|
+
}
|
|
51989
52202
|
if (st.isDirectory()) {
|
|
51990
52203
|
if (entry.type === "Directory") {
|
|
51991
52204
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
51992
52205
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
51993
|
-
if (!needChmod)
|
|
52206
|
+
if (!needChmod) {
|
|
51994
52207
|
return afterChmod();
|
|
52208
|
+
}
|
|
51995
52209
|
return fs4.chmod(entry.absolute, entry.mode, afterChmod);
|
|
51996
52210
|
}
|
|
51997
52211
|
if (entry.absolute !== this.cwd) {
|
|
51998
52212
|
return fs4.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
51999
52213
|
}
|
|
52000
52214
|
}
|
|
52001
|
-
if (entry.absolute === this.cwd)
|
|
52215
|
+
if (entry.absolute === this.cwd) {
|
|
52002
52216
|
return this[MAKEFS](null, entry, done);
|
|
52217
|
+
}
|
|
52003
52218
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
52004
52219
|
});
|
|
52005
52220
|
};
|
|
52006
|
-
if (this[CHECKED_CWD])
|
|
52221
|
+
if (this[CHECKED_CWD]) {
|
|
52007
52222
|
start();
|
|
52008
|
-
else
|
|
52223
|
+
} else {
|
|
52009
52224
|
checkCwd();
|
|
52225
|
+
}
|
|
52010
52226
|
}
|
|
52011
52227
|
[MAKEFS](er, entry, done) {
|
|
52012
52228
|
if (er) {
|
|
@@ -52030,9 +52246,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52030
52246
|
}
|
|
52031
52247
|
[LINK](entry, linkpath, link, done) {
|
|
52032
52248
|
fs4[link](linkpath, entry.absolute, (er) => {
|
|
52033
|
-
if (er)
|
|
52249
|
+
if (er) {
|
|
52034
52250
|
this[ONERROR](er, entry);
|
|
52035
|
-
else {
|
|
52251
|
+
} else {
|
|
52036
52252
|
this[UNPEND]();
|
|
52037
52253
|
entry.resume();
|
|
52038
52254
|
}
|
|
@@ -52056,23 +52272,27 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52056
52272
|
this[PRUNECACHE](entry);
|
|
52057
52273
|
if (!this[CHECKED_CWD]) {
|
|
52058
52274
|
const er2 = this[MKDIR](this.cwd, this.dmode);
|
|
52059
|
-
if (er2)
|
|
52275
|
+
if (er2) {
|
|
52060
52276
|
return this[ONERROR](er2, entry);
|
|
52277
|
+
}
|
|
52061
52278
|
this[CHECKED_CWD] = true;
|
|
52062
52279
|
}
|
|
52063
52280
|
if (entry.absolute !== this.cwd) {
|
|
52064
52281
|
const parent = normPath(path6.dirname(entry.absolute));
|
|
52065
52282
|
if (parent !== this.cwd) {
|
|
52066
52283
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
52067
|
-
if (mkParent)
|
|
52284
|
+
if (mkParent) {
|
|
52068
52285
|
return this[ONERROR](mkParent, entry);
|
|
52286
|
+
}
|
|
52069
52287
|
}
|
|
52070
52288
|
}
|
|
52071
52289
|
const [lstatEr, st] = callSync(() => fs4.lstatSync(entry.absolute));
|
|
52072
|
-
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
|
52290
|
+
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
52073
52291
|
return this[SKIP](entry);
|
|
52074
|
-
|
|
52292
|
+
}
|
|
52293
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
|
52075
52294
|
return this[MAKEFS](null, entry);
|
|
52295
|
+
}
|
|
52076
52296
|
if (st.isDirectory()) {
|
|
52077
52297
|
if (entry.type === "Directory") {
|
|
52078
52298
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
@@ -52096,8 +52316,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52096
52316
|
} catch (e) {
|
|
52097
52317
|
closeError = e;
|
|
52098
52318
|
}
|
|
52099
|
-
if (er || closeError)
|
|
52319
|
+
if (er || closeError) {
|
|
52100
52320
|
this[ONERROR](er || closeError, entry);
|
|
52321
|
+
}
|
|
52101
52322
|
done();
|
|
52102
52323
|
};
|
|
52103
52324
|
let fd;
|
|
@@ -52212,23 +52433,29 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52212
52433
|
var path6 = __require("path");
|
|
52213
52434
|
var stripSlash = require_strip_trailing_slashes();
|
|
52214
52435
|
module2.exports = (opt_, files, cb) => {
|
|
52215
|
-
if (typeof opt_ === "function")
|
|
52436
|
+
if (typeof opt_ === "function") {
|
|
52216
52437
|
cb = opt_, files = null, opt_ = {};
|
|
52217
|
-
else if (Array.isArray(opt_))
|
|
52438
|
+
} else if (Array.isArray(opt_)) {
|
|
52218
52439
|
files = opt_, opt_ = {};
|
|
52219
|
-
|
|
52440
|
+
}
|
|
52441
|
+
if (typeof files === "function") {
|
|
52220
52442
|
cb = files, files = null;
|
|
52221
|
-
|
|
52443
|
+
}
|
|
52444
|
+
if (!files) {
|
|
52222
52445
|
files = [];
|
|
52223
|
-
else
|
|
52446
|
+
} else {
|
|
52224
52447
|
files = Array.from(files);
|
|
52448
|
+
}
|
|
52225
52449
|
const opt = hlo(opt_);
|
|
52226
|
-
if (opt.sync && typeof cb === "function")
|
|
52450
|
+
if (opt.sync && typeof cb === "function") {
|
|
52227
52451
|
throw new TypeError("callback not supported for sync tar functions");
|
|
52228
|
-
|
|
52452
|
+
}
|
|
52453
|
+
if (!opt.file && typeof cb === "function") {
|
|
52229
52454
|
throw new TypeError("callback only supported with file option");
|
|
52230
|
-
|
|
52455
|
+
}
|
|
52456
|
+
if (files.length) {
|
|
52231
52457
|
filesFilter(opt, files);
|
|
52458
|
+
}
|
|
52232
52459
|
return opt.file && opt.sync ? extractFileSync(opt) : opt.file ? extractFile(opt, cb) : opt.sync ? extractSync(opt) : extract(opt);
|
|
52233
52460
|
};
|
|
52234
52461
|
var filesFilter = (opt, files) => {
|
|
@@ -52261,9 +52488,9 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52261
52488
|
u.on("error", reject);
|
|
52262
52489
|
u.on("close", resolve);
|
|
52263
52490
|
fs4.stat(file, (er, stat) => {
|
|
52264
|
-
if (er)
|
|
52491
|
+
if (er) {
|
|
52265
52492
|
reject(er);
|
|
52266
|
-
else {
|
|
52493
|
+
} else {
|
|
52267
52494
|
const stream = new fsm.ReadStream(file, {
|
|
52268
52495
|
readSize,
|
|
52269
52496
|
size: stat.size
|
|
@@ -59236,7 +59463,9 @@ function _regeneratorRuntime() {
|
|
|
59236
59463
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
59237
59464
|
return exports;
|
|
59238
59465
|
};
|
|
59239
|
-
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty,
|
|
59466
|
+
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function(obj, key, desc) {
|
|
59467
|
+
obj[key] = desc.value;
|
|
59468
|
+
}, $Symbol = typeof Symbol == "function" ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
59240
59469
|
function define3(obj, key, value) {
|
|
59241
59470
|
return Object.defineProperty(obj, key, {
|
|
59242
59471
|
value,
|
|
@@ -59254,48 +59483,9 @@ function _regeneratorRuntime() {
|
|
|
59254
59483
|
}
|
|
59255
59484
|
function wrap(innerFn, outerFn, self3, tryLocsList) {
|
|
59256
59485
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
59257
|
-
return generator
|
|
59258
|
-
|
|
59259
|
-
|
|
59260
|
-
if (state === "executing")
|
|
59261
|
-
throw new Error("Generator is already running");
|
|
59262
|
-
if (state === "completed") {
|
|
59263
|
-
if (method === "throw")
|
|
59264
|
-
throw arg;
|
|
59265
|
-
return doneResult();
|
|
59266
|
-
}
|
|
59267
|
-
for (context2.method = method, context2.arg = arg; ; ) {
|
|
59268
|
-
var delegate = context2.delegate;
|
|
59269
|
-
if (delegate) {
|
|
59270
|
-
var delegateResult = maybeInvokeDelegate(delegate, context2);
|
|
59271
|
-
if (delegateResult) {
|
|
59272
|
-
if (delegateResult === ContinueSentinel)
|
|
59273
|
-
continue;
|
|
59274
|
-
return delegateResult;
|
|
59275
|
-
}
|
|
59276
|
-
}
|
|
59277
|
-
if (context2.method === "next")
|
|
59278
|
-
context2.sent = context2._sent = context2.arg;
|
|
59279
|
-
else if (context2.method === "throw") {
|
|
59280
|
-
if (state === "suspendedStart")
|
|
59281
|
-
throw state = "completed", context2.arg;
|
|
59282
|
-
context2.dispatchException(context2.arg);
|
|
59283
|
-
} else
|
|
59284
|
-
context2.method === "return" && context2.abrupt("return", context2.arg);
|
|
59285
|
-
state = "executing";
|
|
59286
|
-
var record = tryCatch(innerFn2, self4, context2);
|
|
59287
|
-
if (record.type === "normal") {
|
|
59288
|
-
if (state = context2.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
59289
|
-
continue;
|
|
59290
|
-
return {
|
|
59291
|
-
value: record.arg,
|
|
59292
|
-
done: context2.done
|
|
59293
|
-
};
|
|
59294
|
-
}
|
|
59295
|
-
record.type === "throw" && (state = "completed", context2.method = "throw", context2.arg = record.arg);
|
|
59296
|
-
}
|
|
59297
|
-
};
|
|
59298
|
-
}(innerFn, self3, context), generator;
|
|
59486
|
+
return defineProperty(generator, "_invoke", {
|
|
59487
|
+
value: makeInvokeMethod(innerFn, self3, context)
|
|
59488
|
+
}), generator;
|
|
59299
59489
|
}
|
|
59300
59490
|
function tryCatch(fn, obj, arg) {
|
|
59301
59491
|
try {
|
|
@@ -59350,25 +59540,63 @@ function _regeneratorRuntime() {
|
|
|
59350
59540
|
reject(record.arg);
|
|
59351
59541
|
}
|
|
59352
59542
|
var previousPromise;
|
|
59353
|
-
this
|
|
59354
|
-
function
|
|
59355
|
-
|
|
59356
|
-
|
|
59357
|
-
|
|
59543
|
+
defineProperty(this, "_invoke", {
|
|
59544
|
+
value: function value(method, arg) {
|
|
59545
|
+
function callInvokeWithMethodAndArg() {
|
|
59546
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
59547
|
+
invoke(method, arg, resolve, reject);
|
|
59548
|
+
});
|
|
59549
|
+
}
|
|
59550
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
59551
|
+
}
|
|
59552
|
+
});
|
|
59553
|
+
}
|
|
59554
|
+
function makeInvokeMethod(innerFn, self3, context) {
|
|
59555
|
+
var state = "suspendedStart";
|
|
59556
|
+
return function(method, arg) {
|
|
59557
|
+
if (state === "executing")
|
|
59558
|
+
throw new Error("Generator is already running");
|
|
59559
|
+
if (state === "completed") {
|
|
59560
|
+
if (method === "throw")
|
|
59561
|
+
throw arg;
|
|
59562
|
+
return doneResult();
|
|
59563
|
+
}
|
|
59564
|
+
for (context.method = method, context.arg = arg; ; ) {
|
|
59565
|
+
var delegate = context.delegate;
|
|
59566
|
+
if (delegate) {
|
|
59567
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
59568
|
+
if (delegateResult) {
|
|
59569
|
+
if (delegateResult === ContinueSentinel)
|
|
59570
|
+
continue;
|
|
59571
|
+
return delegateResult;
|
|
59572
|
+
}
|
|
59573
|
+
}
|
|
59574
|
+
if (context.method === "next")
|
|
59575
|
+
context.sent = context._sent = context.arg;
|
|
59576
|
+
else if (context.method === "throw") {
|
|
59577
|
+
if (state === "suspendedStart")
|
|
59578
|
+
throw state = "completed", context.arg;
|
|
59579
|
+
context.dispatchException(context.arg);
|
|
59580
|
+
} else
|
|
59581
|
+
context.method === "return" && context.abrupt("return", context.arg);
|
|
59582
|
+
state = "executing";
|
|
59583
|
+
var record = tryCatch(innerFn, self3, context);
|
|
59584
|
+
if (record.type === "normal") {
|
|
59585
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
59586
|
+
continue;
|
|
59587
|
+
return {
|
|
59588
|
+
value: record.arg,
|
|
59589
|
+
done: context.done
|
|
59590
|
+
};
|
|
59591
|
+
}
|
|
59592
|
+
record.type === "throw" && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
59358
59593
|
}
|
|
59359
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
59360
59594
|
};
|
|
59361
59595
|
}
|
|
59362
59596
|
function maybeInvokeDelegate(delegate, context) {
|
|
59363
|
-
var method = delegate.iterator[
|
|
59364
|
-
if (method === void 0)
|
|
59365
|
-
|
|
59366
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method === "throw"))
|
|
59367
|
-
return ContinueSentinel;
|
|
59368
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
59369
|
-
}
|
|
59370
|
-
return ContinueSentinel;
|
|
59371
|
-
}
|
|
59597
|
+
var methodName = context.method, method = delegate.iterator[methodName];
|
|
59598
|
+
if (method === void 0)
|
|
59599
|
+
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;
|
|
59372
59600
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
59373
59601
|
if (record.type === "throw")
|
|
59374
59602
|
return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
@@ -59418,7 +59646,13 @@ function _regeneratorRuntime() {
|
|
|
59418
59646
|
done: true
|
|
59419
59647
|
};
|
|
59420
59648
|
}
|
|
59421
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
59649
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
59650
|
+
value: GeneratorFunctionPrototype,
|
|
59651
|
+
configurable: true
|
|
59652
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
59653
|
+
value: GeneratorFunction,
|
|
59654
|
+
configurable: true
|
|
59655
|
+
}), GeneratorFunction.displayName = define3(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
|
|
59422
59656
|
var ctor = typeof genFun == "function" && genFun.constructor;
|
|
59423
59657
|
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction");
|
|
59424
59658
|
}, exports.mark = function(genFun) {
|
|
@@ -59439,8 +59673,8 @@ function _regeneratorRuntime() {
|
|
|
59439
59673
|
return this;
|
|
59440
59674
|
}), define3(Gp, "toString", function() {
|
|
59441
59675
|
return "[object Generator]";
|
|
59442
|
-
}), exports.keys = function(
|
|
59443
|
-
var keys = [];
|
|
59676
|
+
}), exports.keys = function(val) {
|
|
59677
|
+
var object = Object(val), keys = [];
|
|
59444
59678
|
for (var key in object) {
|
|
59445
59679
|
keys.push(key);
|
|
59446
59680
|
}
|
|
@@ -59585,6 +59819,29 @@ function _classCallCheck(instance, Constructor) {
|
|
|
59585
59819
|
}
|
|
59586
59820
|
var init_classCallCheck = __esmMin(() => {
|
|
59587
59821
|
});
|
|
59822
|
+
function _toPrimitive(input, hint) {
|
|
59823
|
+
if (_typeof(input) !== "object" || input === null)
|
|
59824
|
+
return input;
|
|
59825
|
+
var prim = input[Symbol.toPrimitive];
|
|
59826
|
+
if (prim !== void 0) {
|
|
59827
|
+
var res = prim.call(input, hint || "default");
|
|
59828
|
+
if (_typeof(res) !== "object")
|
|
59829
|
+
return res;
|
|
59830
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
59831
|
+
}
|
|
59832
|
+
return (hint === "string" ? String : Number)(input);
|
|
59833
|
+
}
|
|
59834
|
+
var init_toPrimitive = __esmMin(() => {
|
|
59835
|
+
init_typeof();
|
|
59836
|
+
});
|
|
59837
|
+
function _toPropertyKey(arg) {
|
|
59838
|
+
var key = _toPrimitive(arg, "string");
|
|
59839
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
59840
|
+
}
|
|
59841
|
+
var init_toPropertyKey = __esmMin(() => {
|
|
59842
|
+
init_typeof();
|
|
59843
|
+
init_toPrimitive();
|
|
59844
|
+
});
|
|
59588
59845
|
function _defineProperties(target, props) {
|
|
59589
59846
|
for (var i = 0; i < props.length; i++) {
|
|
59590
59847
|
var descriptor = props[i];
|
|
@@ -59592,7 +59849,7 @@ function _defineProperties(target, props) {
|
|
|
59592
59849
|
descriptor.configurable = true;
|
|
59593
59850
|
if ("value" in descriptor)
|
|
59594
59851
|
descriptor.writable = true;
|
|
59595
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
59852
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
59596
59853
|
}
|
|
59597
59854
|
}
|
|
59598
59855
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -59606,8 +59863,10 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
59606
59863
|
return Constructor;
|
|
59607
59864
|
}
|
|
59608
59865
|
var init_createClass = __esmMin(() => {
|
|
59866
|
+
init_toPropertyKey();
|
|
59609
59867
|
});
|
|
59610
59868
|
function _defineProperty(obj, key, value) {
|
|
59869
|
+
key = _toPropertyKey(key);
|
|
59611
59870
|
if (key in obj) {
|
|
59612
59871
|
Object.defineProperty(obj, key, {
|
|
59613
59872
|
value,
|
|
@@ -59621,6 +59880,7 @@ function _defineProperty(obj, key, value) {
|
|
|
59621
59880
|
return obj;
|
|
59622
59881
|
}
|
|
59623
59882
|
var init_defineProperty = __esmMin(() => {
|
|
59883
|
+
init_toPropertyKey();
|
|
59624
59884
|
});
|
|
59625
59885
|
function ownKeys(object, enumerableOnly) {
|
|
59626
59886
|
var keys = Object.keys(object);
|
|
@@ -60210,7 +60470,7 @@ var init_tokens = __esmMin(() => {
|
|
|
60210
60470
|
});
|
|
60211
60471
|
dbStarTok = TokenType("**", {
|
|
60212
60472
|
expectNext: function(next) {
|
|
60213
|
-
return next === dotTok || next ===
|
|
60473
|
+
return next === dotTok || next === bracketLTok || next === eofTok || next === commaTok || next === parenRTok;
|
|
60214
60474
|
}
|
|
60215
60475
|
});
|
|
60216
60476
|
dotTok = TokenType(".", {
|
|
@@ -60347,11 +60607,11 @@ var init_tokens = __esmMin(() => {
|
|
|
60347
60607
|
});
|
|
60348
60608
|
eofTok = TokenType("eof");
|
|
60349
60609
|
});
|
|
60350
|
-
var
|
|
60610
|
+
var nonASCIIWhitespace, fullCharCodeAtPos, isRewordCode, getError, slice, Tokenizer;
|
|
60351
60611
|
var init_tokenizer = __esmMin(() => {
|
|
60352
60612
|
init_tokens();
|
|
60353
60613
|
init_contexts();
|
|
60354
|
-
|
|
60614
|
+
nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
60355
60615
|
fullCharCodeAtPos = function(input, pos) {
|
|
60356
60616
|
if (String.fromCharCode)
|
|
60357
60617
|
return input.codePointAt(pos);
|
|
@@ -60448,7 +60708,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60448
60708
|
++this.state.pos;
|
|
60449
60709
|
break;
|
|
60450
60710
|
default:
|
|
60451
|
-
if (ch > 8 && ch < 14 || ch >= 5760 &&
|
|
60711
|
+
if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(ch))) {
|
|
60452
60712
|
++this.state.pos;
|
|
60453
60713
|
} else {
|
|
60454
60714
|
break loop;
|
|
@@ -60496,7 +60756,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60496
60756
|
string = slice(this.input, startPos, this.state.pos);
|
|
60497
60757
|
break;
|
|
60498
60758
|
}
|
|
60499
|
-
if (code > 8 && code < 14 || code >= 5760 &&
|
|
60759
|
+
if (code > 8 && code < 14 || code >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(code))) {
|
|
60500
60760
|
string = slice(this.input, startPos, this.state.pos);
|
|
60501
60761
|
break;
|
|
60502
60762
|
}
|
|
@@ -60508,7 +60768,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60508
60768
|
}
|
|
60509
60769
|
this.finishToken(nameTok, string);
|
|
60510
60770
|
};
|
|
60511
|
-
Tokenizer2.prototype.
|
|
60771
|
+
Tokenizer2.prototype.readIgnoreString = function() {
|
|
60512
60772
|
var startPos = this.state.pos, prevCode, string = "";
|
|
60513
60773
|
while (true) {
|
|
60514
60774
|
var code = this.getCode();
|
|
@@ -60547,7 +60807,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60547
60807
|
if (this.input.length <= this.state.pos) {
|
|
60548
60808
|
this.finishToken(eofTok);
|
|
60549
60809
|
} else if (this.curContext() === bracketDContext) {
|
|
60550
|
-
this.
|
|
60810
|
+
this.readIgnoreString();
|
|
60551
60811
|
} else if (code === 123) {
|
|
60552
60812
|
this.state.pos++;
|
|
60553
60813
|
this.finishToken(braceLTok);
|
|
@@ -61224,7 +61484,6 @@ var init_matcher = __esmMin(() => {
|
|
|
61224
61484
|
this.record = record;
|
|
61225
61485
|
}
|
|
61226
61486
|
Matcher2.prototype.next = function(node, pos) {
|
|
61227
|
-
var isLastToken = pos === this.path.length - 1;
|
|
61228
61487
|
if (node.after) {
|
|
61229
61488
|
return this.matchNode(node.after, pos);
|
|
61230
61489
|
}
|
|
@@ -61237,6 +61496,7 @@ var init_matcher = __esmMin(() => {
|
|
|
61237
61496
|
return !!this.take(pos);
|
|
61238
61497
|
}
|
|
61239
61498
|
}
|
|
61499
|
+
var isLastToken = pos === this.path.length - 1;
|
|
61240
61500
|
if (isLastToken) {
|
|
61241
61501
|
return !!this.take(pos);
|
|
61242
61502
|
} else {
|
|
@@ -61894,10 +62154,7 @@ var init_esm = __esmMin(() => {
|
|
|
61894
62154
|
return matcher;
|
|
61895
62155
|
};
|
|
61896
62156
|
Path2.isPathPattern = function(target) {
|
|
61897
|
-
|
|
61898
|
-
return true;
|
|
61899
|
-
}
|
|
61900
|
-
return false;
|
|
62157
|
+
return !!(isStr2(target) || isArr2(target) || isRegExp2(target) || isFn2(target) && target[isMatcher]);
|
|
61901
62158
|
};
|
|
61902
62159
|
Path2.transform = function(pattern, regexp, callback) {
|
|
61903
62160
|
return Path2.parse(pattern).transform(regexp, callback);
|
|
@@ -64351,10 +64608,10 @@ var init_registry = __esmMin(() => {
|
|
|
64351
64608
|
};
|
|
64352
64609
|
getISOCode = function(language) {
|
|
64353
64610
|
var isoCode = registry.locales.language;
|
|
64354
|
-
var lang = lowerCase(language);
|
|
64355
64611
|
if (registry.locales.messages[language]) {
|
|
64356
64612
|
return language;
|
|
64357
64613
|
}
|
|
64614
|
+
var lang = lowerCase(language);
|
|
64358
64615
|
each(registry.locales.messages, function(messages, key) {
|
|
64359
64616
|
var target = lowerCase(key);
|
|
64360
64617
|
if (target.indexOf(lang) > -1 || lang.indexOf(target) > -1) {
|
|
@@ -66461,7 +66718,7 @@ var init_internals2 = __esmMin(() => {
|
|
|
66461
66718
|
noEmit = false;
|
|
66462
66719
|
}
|
|
66463
66720
|
return __awaiter4(void 0, void 0, void 0, function() {
|
|
66464
|
-
var typedDefaultValue;
|
|
66721
|
+
var typedDefaultValue, initialValue;
|
|
66465
66722
|
return __generator4(this, function(_a2) {
|
|
66466
66723
|
switch (_a2.label) {
|
|
66467
66724
|
case 0:
|
|
@@ -66477,7 +66734,8 @@ var init_internals2 = __esmMin(() => {
|
|
|
66477
66734
|
if (options3 === null || options3 === void 0 ? void 0 : options3.forceClear) {
|
|
66478
66735
|
target.value = typedDefaultValue;
|
|
66479
66736
|
} else {
|
|
66480
|
-
|
|
66737
|
+
initialValue = target.initialValue;
|
|
66738
|
+
target.value = toJS(!isUndef(initialValue) ? initialValue : typedDefaultValue);
|
|
66481
66739
|
}
|
|
66482
66740
|
}
|
|
66483
66741
|
if (!noEmit) {
|
|
@@ -66521,28 +66779,25 @@ var init_internals2 = __esmMin(() => {
|
|
|
66521
66779
|
return value;
|
|
66522
66780
|
};
|
|
66523
66781
|
allowAssignDefaultValue = function(target, source) {
|
|
66524
|
-
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66525
|
-
var isEmptySource = source !== null && isEmpty(source);
|
|
66526
66782
|
var isValidTarget = !isUndef(target);
|
|
66527
66783
|
var isValidSource = !isUndef(source);
|
|
66528
66784
|
if (!isValidTarget) {
|
|
66529
|
-
|
|
66530
|
-
return true;
|
|
66531
|
-
}
|
|
66532
|
-
return false;
|
|
66785
|
+
return isValidSource;
|
|
66533
66786
|
}
|
|
66534
66787
|
if (typeof target === typeof source) {
|
|
66535
66788
|
if (target === "")
|
|
66536
66789
|
return false;
|
|
66537
66790
|
if (target === 0)
|
|
66538
66791
|
return false;
|
|
66792
|
+
if (Array.isArray(target))
|
|
66793
|
+
return false;
|
|
66794
|
+
if (isPlainObj(target))
|
|
66795
|
+
return false;
|
|
66539
66796
|
}
|
|
66797
|
+
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66798
|
+
var isEmptySource = source !== null && isEmpty(source);
|
|
66540
66799
|
if (isEmptyTarget) {
|
|
66541
|
-
|
|
66542
|
-
return false;
|
|
66543
|
-
} else {
|
|
66544
|
-
return true;
|
|
66545
|
-
}
|
|
66800
|
+
return !isEmptySource;
|
|
66546
66801
|
}
|
|
66547
66802
|
return false;
|
|
66548
66803
|
};
|
|
@@ -67447,8 +67702,14 @@ var init_Field = __esmMin(() => {
|
|
|
67447
67702
|
return _this.value;
|
|
67448
67703
|
}, function(value) {
|
|
67449
67704
|
_this.notify(LifeCycleTypes.ON_FIELD_VALUE_CHANGE);
|
|
67450
|
-
if (isValid(value)
|
|
67451
|
-
|
|
67705
|
+
if (isValid(value)) {
|
|
67706
|
+
if (_this.selfModified && !_this.caches.inputting) {
|
|
67707
|
+
validateSelf(_this);
|
|
67708
|
+
}
|
|
67709
|
+
if (!isEmpty(value) && _this.display === "none") {
|
|
67710
|
+
_this.caches.value = toJS(value);
|
|
67711
|
+
_this.form.deleteValuesIn(_this.path);
|
|
67712
|
+
}
|
|
67452
67713
|
}
|
|
67453
67714
|
}), createReaction(function() {
|
|
67454
67715
|
return _this.initialValue;
|
|
@@ -67459,16 +67720,14 @@ var init_Field = __esmMin(() => {
|
|
|
67459
67720
|
}, function(display) {
|
|
67460
67721
|
var _a2;
|
|
67461
67722
|
var value = _this.value;
|
|
67462
|
-
if (display
|
|
67463
|
-
if (
|
|
67723
|
+
if (display !== "none") {
|
|
67724
|
+
if (!isValid(value)) {
|
|
67464
67725
|
_this.setValue(_this.caches.value);
|
|
67465
67726
|
_this.caches.value = void 0;
|
|
67466
67727
|
}
|
|
67467
67728
|
} else {
|
|
67468
67729
|
_this.caches.value = (_a2 = toJS(value)) !== null && _a2 !== void 0 ? _a2 : toJS(_this.initialValue);
|
|
67469
|
-
|
|
67470
|
-
_this.form.deleteValuesIn(_this.path);
|
|
67471
|
-
}
|
|
67730
|
+
_this.form.deleteValuesIn(_this.path);
|
|
67472
67731
|
}
|
|
67473
67732
|
if (display === "none" || display === "hidden") {
|
|
67474
67733
|
_this.setFeedback({
|
|
@@ -68202,13 +68461,14 @@ var init_Form = __esmMin(() => {
|
|
|
68202
68461
|
if (!isPlainObj(values))
|
|
68203
68462
|
return;
|
|
68204
68463
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68205
|
-
|
|
68464
|
+
merge(_this.values, values, {
|
|
68206
68465
|
arrayMerge: function(target, source) {
|
|
68207
68466
|
return source;
|
|
68208
|
-
}
|
|
68467
|
+
},
|
|
68468
|
+
assign: true
|
|
68209
68469
|
});
|
|
68210
68470
|
} else if (strategy === "shallowMerge") {
|
|
68211
|
-
|
|
68471
|
+
Object.assign(_this.values, values);
|
|
68212
68472
|
} else {
|
|
68213
68473
|
_this.values = values;
|
|
68214
68474
|
}
|
|
@@ -68220,13 +68480,14 @@ var init_Form = __esmMin(() => {
|
|
|
68220
68480
|
if (!isPlainObj(initialValues))
|
|
68221
68481
|
return;
|
|
68222
68482
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68223
|
-
|
|
68483
|
+
merge(_this.initialValues, initialValues, {
|
|
68224
68484
|
arrayMerge: function(target, source) {
|
|
68225
68485
|
return source;
|
|
68226
|
-
}
|
|
68486
|
+
},
|
|
68487
|
+
assign: true
|
|
68227
68488
|
});
|
|
68228
68489
|
} else if (strategy === "shallowMerge") {
|
|
68229
|
-
|
|
68490
|
+
Object.assign(_this.initialValues, initialValues);
|
|
68230
68491
|
} else {
|
|
68231
68492
|
_this.initialValues = initialValues;
|
|
68232
68493
|
}
|
|
@@ -68675,6 +68936,7 @@ function createFormEffect(type) {
|
|
|
68675
68936
|
}
|
|
68676
68937
|
var onFormInit, onFormMount, onFormUnmount, onFormValuesChange, onFormInitialValuesChange, onFormInputChange, onFormSubmit, onFormReset, onFormSubmitStart, onFormSubmitEnd, onFormSubmitSuccess, onFormSubmitFailed, onFormSubmitValidateStart, onFormSubmitValidateSuccess, onFormSubmitValidateFailed, onFormSubmitValidateEnd, onFormValidateStart, onFormValidateSuccess, onFormValidateFailed, onFormValidateEnd, onFormGraphChange, onFormLoading;
|
|
68677
68938
|
var init_onFormEffects = __esmMin(() => {
|
|
68939
|
+
init_esm2();
|
|
68678
68940
|
init_esm3();
|
|
68679
68941
|
init_types4();
|
|
68680
68942
|
init_effective();
|
|
@@ -73033,7 +73295,6 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
73033
73295
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73034
73296
|
exports.animationFrames = void 0;
|
|
73035
73297
|
var Observable_1 = require_Observable();
|
|
73036
|
-
var Subscription_1 = require_Subscription();
|
|
73037
73298
|
var performanceTimestampProvider_1 = require_performanceTimestampProvider();
|
|
73038
73299
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
|
73039
73300
|
function animationFrames(timestampProvider) {
|
|
@@ -73041,23 +73302,29 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
73041
73302
|
}
|
|
73042
73303
|
exports.animationFrames = animationFrames;
|
|
73043
73304
|
function animationFramesFactory(timestampProvider) {
|
|
73044
|
-
var schedule = animationFrameProvider_1.animationFrameProvider.schedule;
|
|
73045
73305
|
return new Observable_1.Observable(function(subscriber) {
|
|
73046
|
-
var subscription = new Subscription_1.Subscription();
|
|
73047
73306
|
var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
|
|
73048
73307
|
var start = provider.now();
|
|
73049
|
-
var
|
|
73050
|
-
|
|
73051
|
-
subscriber.next({
|
|
73052
|
-
timestamp: timestampProvider ? now : timestamp,
|
|
73053
|
-
elapsed: now - start
|
|
73054
|
-
});
|
|
73308
|
+
var id = 0;
|
|
73309
|
+
var run = function() {
|
|
73055
73310
|
if (!subscriber.closed) {
|
|
73056
|
-
|
|
73311
|
+
id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) {
|
|
73312
|
+
id = 0;
|
|
73313
|
+
var now = provider.now();
|
|
73314
|
+
subscriber.next({
|
|
73315
|
+
timestamp: timestampProvider ? now : timestamp,
|
|
73316
|
+
elapsed: now - start
|
|
73317
|
+
});
|
|
73318
|
+
run();
|
|
73319
|
+
});
|
|
73320
|
+
}
|
|
73321
|
+
};
|
|
73322
|
+
run();
|
|
73323
|
+
return function() {
|
|
73324
|
+
if (id) {
|
|
73325
|
+
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
73057
73326
|
}
|
|
73058
73327
|
};
|
|
73059
|
-
subscription.add(schedule(run));
|
|
73060
|
-
return subscription;
|
|
73061
73328
|
});
|
|
73062
73329
|
}
|
|
73063
73330
|
var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
|
|
@@ -73626,6 +73893,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
73626
73893
|
return _this;
|
|
73627
73894
|
}
|
|
73628
73895
|
AsyncAction2.prototype.schedule = function(state, delay) {
|
|
73896
|
+
var _a2;
|
|
73629
73897
|
if (delay === void 0) {
|
|
73630
73898
|
delay = 0;
|
|
73631
73899
|
}
|
|
@@ -73640,7 +73908,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
73640
73908
|
}
|
|
73641
73909
|
this.pending = true;
|
|
73642
73910
|
this.delay = delay;
|
|
73643
|
-
this.id = this.id
|
|
73911
|
+
this.id = (_a2 = this.id) !== null && _a2 !== void 0 ? _a2 : this.requestAsyncId(scheduler, this.id, delay);
|
|
73644
73912
|
return this;
|
|
73645
73913
|
};
|
|
73646
73914
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
@@ -73656,7 +73924,9 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
73656
73924
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
73657
73925
|
return id;
|
|
73658
73926
|
}
|
|
73659
|
-
|
|
73927
|
+
if (id != null) {
|
|
73928
|
+
intervalProvider_1.intervalProvider.clearInterval(id);
|
|
73929
|
+
}
|
|
73660
73930
|
return void 0;
|
|
73661
73931
|
};
|
|
73662
73932
|
AsyncAction2.prototype.execute = function(state, delay) {
|
|
@@ -73834,15 +74104,15 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
|
73834
74104
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0)));
|
|
73835
74105
|
};
|
|
73836
74106
|
AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
74107
|
+
var _a2;
|
|
73837
74108
|
if (delay === void 0) {
|
|
73838
74109
|
delay = 0;
|
|
73839
74110
|
}
|
|
73840
|
-
if (delay != null
|
|
74111
|
+
if (delay != null ? delay > 0 : this.delay > 0) {
|
|
73841
74112
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
73842
74113
|
}
|
|
73843
|
-
|
|
73844
|
-
|
|
73845
|
-
})) {
|
|
74114
|
+
var actions = scheduler.actions;
|
|
74115
|
+
if (id != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id) {
|
|
73846
74116
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
73847
74117
|
scheduler._scheduled = void 0;
|
|
73848
74118
|
}
|
|
@@ -73911,7 +74181,6 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
|
73911
74181
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
73912
74182
|
_this.actions = [];
|
|
73913
74183
|
_this._active = false;
|
|
73914
|
-
_this._scheduled = void 0;
|
|
73915
74184
|
return _this;
|
|
73916
74185
|
}
|
|
73917
74186
|
AsyncScheduler2.prototype.flush = function(action2) {
|
|
@@ -74068,7 +74337,8 @@ var require_QueueAction = __commonJSMin((exports) => {
|
|
|
74068
74337
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
74069
74338
|
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
|
74070
74339
|
}
|
|
74071
|
-
|
|
74340
|
+
scheduler.flush(this);
|
|
74341
|
+
return 0;
|
|
74072
74342
|
};
|
|
74073
74343
|
return QueueAction2;
|
|
74074
74344
|
}(AsyncAction_1.AsyncAction);
|
|
@@ -74166,15 +74436,15 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
|
74166
74436
|
}));
|
|
74167
74437
|
};
|
|
74168
74438
|
AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
74439
|
+
var _a2;
|
|
74169
74440
|
if (delay === void 0) {
|
|
74170
74441
|
delay = 0;
|
|
74171
74442
|
}
|
|
74172
|
-
if (delay != null
|
|
74443
|
+
if (delay != null ? delay > 0 : this.delay > 0) {
|
|
74173
74444
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
74174
74445
|
}
|
|
74175
|
-
|
|
74176
|
-
|
|
74177
|
-
})) {
|
|
74446
|
+
var actions = scheduler.actions;
|
|
74447
|
+
if (id != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id) {
|
|
74178
74448
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
74179
74449
|
scheduler._scheduled = void 0;
|
|
74180
74450
|
}
|
|
@@ -74353,7 +74623,7 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
74353
74623
|
var actions = scheduler.actions;
|
|
74354
74624
|
actions.push(this);
|
|
74355
74625
|
actions.sort(VirtualAction2.sortActions);
|
|
74356
|
-
return
|
|
74626
|
+
return 1;
|
|
74357
74627
|
};
|
|
74358
74628
|
VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
74359
74629
|
if (delay === void 0) {
|
|
@@ -76423,63 +76693,35 @@ var require_argsOrArgArray = __commonJSMin((exports) => {
|
|
|
76423
76693
|
});
|
|
76424
76694
|
var require_onErrorResumeNext = __commonJSMin((exports) => {
|
|
76425
76695
|
"use strict";
|
|
76426
|
-
var __read9 = exports && exports.__read || function(o, n) {
|
|
76427
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
76428
|
-
if (!m)
|
|
76429
|
-
return o;
|
|
76430
|
-
var i = m.call(o), r, ar = [], e;
|
|
76431
|
-
try {
|
|
76432
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
76433
|
-
ar.push(r.value);
|
|
76434
|
-
} catch (error) {
|
|
76435
|
-
e = { error };
|
|
76436
|
-
} finally {
|
|
76437
|
-
try {
|
|
76438
|
-
if (r && !r.done && (m = i["return"]))
|
|
76439
|
-
m.call(i);
|
|
76440
|
-
} finally {
|
|
76441
|
-
if (e)
|
|
76442
|
-
throw e.error;
|
|
76443
|
-
}
|
|
76444
|
-
}
|
|
76445
|
-
return ar;
|
|
76446
|
-
};
|
|
76447
|
-
var __spreadArray8 = exports && exports.__spreadArray || function(to, from) {
|
|
76448
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
76449
|
-
to[j] = from[i];
|
|
76450
|
-
return to;
|
|
76451
|
-
};
|
|
76452
76696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76453
76697
|
exports.onErrorResumeNext = void 0;
|
|
76454
|
-
var
|
|
76455
|
-
var innerFrom_1 = require_innerFrom();
|
|
76698
|
+
var Observable_1 = require_Observable();
|
|
76456
76699
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
76457
76700
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
76458
76701
|
var noop_1 = require_noop();
|
|
76702
|
+
var innerFrom_1 = require_innerFrom();
|
|
76459
76703
|
function onErrorResumeNext() {
|
|
76460
76704
|
var sources = [];
|
|
76461
76705
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
76462
76706
|
sources[_i] = arguments[_i];
|
|
76463
76707
|
}
|
|
76464
76708
|
var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
|
|
76465
|
-
return
|
|
76466
|
-
var
|
|
76709
|
+
return new Observable_1.Observable(function(subscriber) {
|
|
76710
|
+
var sourceIndex = 0;
|
|
76467
76711
|
var subscribeNext = function() {
|
|
76468
|
-
if (
|
|
76469
|
-
|
|
76470
|
-
|
|
76471
|
-
|
|
76472
|
-
|
|
76473
|
-
|
|
76474
|
-
|
|
76475
|
-
return;
|
|
76476
|
-
}
|
|
76477
|
-
var innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, noop_1.noop, noop_1.noop);
|
|
76478
|
-
nextSource.subscribe(innerSub);
|
|
76479
|
-
innerSub.add(subscribeNext);
|
|
76480
|
-
} else {
|
|
76481
|
-
subscriber.complete();
|
|
76712
|
+
if (sourceIndex < nextSources.length) {
|
|
76713
|
+
var nextSource = void 0;
|
|
76714
|
+
try {
|
|
76715
|
+
nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]);
|
|
76716
|
+
} catch (err) {
|
|
76717
|
+
subscribeNext();
|
|
76718
|
+
return;
|
|
76482
76719
|
}
|
|
76720
|
+
var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, void 0, noop_1.noop, noop_1.noop);
|
|
76721
|
+
nextSource.subscribe(innerSubscriber);
|
|
76722
|
+
innerSubscriber.add(subscribeNext);
|
|
76723
|
+
} else {
|
|
76724
|
+
subscriber.complete();
|
|
76483
76725
|
}
|
|
76484
76726
|
};
|
|
76485
76727
|
subscribeNext();
|
|
@@ -76487,22 +76729,6 @@ var require_onErrorResumeNext = __commonJSMin((exports) => {
|
|
|
76487
76729
|
}
|
|
76488
76730
|
exports.onErrorResumeNext = onErrorResumeNext;
|
|
76489
76731
|
});
|
|
76490
|
-
var require_onErrorResumeNext2 = __commonJSMin((exports) => {
|
|
76491
|
-
"use strict";
|
|
76492
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76493
|
-
exports.onErrorResumeNext = void 0;
|
|
76494
|
-
var empty_1 = require_empty();
|
|
76495
|
-
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
76496
|
-
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
76497
|
-
function onErrorResumeNext() {
|
|
76498
|
-
var sources = [];
|
|
76499
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
76500
|
-
sources[_i] = arguments[_i];
|
|
76501
|
-
}
|
|
76502
|
-
return onErrorResumeNext_1.onErrorResumeNext(argsOrArgArray_1.argsOrArgArray(sources))(empty_1.EMPTY);
|
|
76503
|
-
}
|
|
76504
|
-
exports.onErrorResumeNext = onErrorResumeNext;
|
|
76505
|
-
});
|
|
76506
76732
|
var require_pairs = __commonJSMin((exports) => {
|
|
76507
76733
|
"use strict";
|
|
76508
76734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -77452,7 +77678,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
77452
77678
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77453
77679
|
exports.connect = void 0;
|
|
77454
77680
|
var Subject_1 = require_Subject();
|
|
77455
|
-
var
|
|
77681
|
+
var innerFrom_1 = require_innerFrom();
|
|
77456
77682
|
var lift_1 = require_lift();
|
|
77457
77683
|
var fromSubscribable_1 = require_fromSubscribable();
|
|
77458
77684
|
var DEFAULT_CONFIG = {
|
|
@@ -77467,7 +77693,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
77467
77693
|
var connector = config.connector;
|
|
77468
77694
|
return lift_1.operate(function(source, subscriber) {
|
|
77469
77695
|
var subject = connector();
|
|
77470
|
-
|
|
77696
|
+
innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
|
|
77471
77697
|
subscriber.add(source.subscribe(subject));
|
|
77472
77698
|
});
|
|
77473
77699
|
}
|
|
@@ -77883,39 +78109,6 @@ var require_every = __commonJSMin((exports) => {
|
|
|
77883
78109
|
}
|
|
77884
78110
|
exports.every = every;
|
|
77885
78111
|
});
|
|
77886
|
-
var require_exhaustAll = __commonJSMin((exports) => {
|
|
77887
|
-
"use strict";
|
|
77888
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77889
|
-
exports.exhaustAll = void 0;
|
|
77890
|
-
var lift_1 = require_lift();
|
|
77891
|
-
var innerFrom_1 = require_innerFrom();
|
|
77892
|
-
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
77893
|
-
function exhaustAll() {
|
|
77894
|
-
return lift_1.operate(function(source, subscriber) {
|
|
77895
|
-
var isComplete = false;
|
|
77896
|
-
var innerSub = null;
|
|
77897
|
-
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(inner) {
|
|
77898
|
-
if (!innerSub) {
|
|
77899
|
-
innerSub = innerFrom_1.innerFrom(inner).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() {
|
|
77900
|
-
innerSub = null;
|
|
77901
|
-
isComplete && subscriber.complete();
|
|
77902
|
-
}));
|
|
77903
|
-
}
|
|
77904
|
-
}, function() {
|
|
77905
|
-
isComplete = true;
|
|
77906
|
-
!innerSub && subscriber.complete();
|
|
77907
|
-
}));
|
|
77908
|
-
});
|
|
77909
|
-
}
|
|
77910
|
-
exports.exhaustAll = exhaustAll;
|
|
77911
|
-
});
|
|
77912
|
-
var require_exhaust = __commonJSMin((exports) => {
|
|
77913
|
-
"use strict";
|
|
77914
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77915
|
-
exports.exhaust = void 0;
|
|
77916
|
-
var exhaustAll_1 = require_exhaustAll();
|
|
77917
|
-
exports.exhaust = exhaustAll_1.exhaustAll;
|
|
77918
|
-
});
|
|
77919
78112
|
var require_exhaustMap = __commonJSMin((exports) => {
|
|
77920
78113
|
"use strict";
|
|
77921
78114
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -77954,6 +78147,24 @@ var require_exhaustMap = __commonJSMin((exports) => {
|
|
|
77954
78147
|
}
|
|
77955
78148
|
exports.exhaustMap = exhaustMap;
|
|
77956
78149
|
});
|
|
78150
|
+
var require_exhaustAll = __commonJSMin((exports) => {
|
|
78151
|
+
"use strict";
|
|
78152
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78153
|
+
exports.exhaustAll = void 0;
|
|
78154
|
+
var exhaustMap_1 = require_exhaustMap();
|
|
78155
|
+
var identity_1 = require_identity();
|
|
78156
|
+
function exhaustAll() {
|
|
78157
|
+
return exhaustMap_1.exhaustMap(identity_1.identity);
|
|
78158
|
+
}
|
|
78159
|
+
exports.exhaustAll = exhaustAll;
|
|
78160
|
+
});
|
|
78161
|
+
var require_exhaust = __commonJSMin((exports) => {
|
|
78162
|
+
"use strict";
|
|
78163
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78164
|
+
exports.exhaust = void 0;
|
|
78165
|
+
var exhaustAll_1 = require_exhaustAll();
|
|
78166
|
+
exports.exhaust = exhaustAll_1.exhaustAll;
|
|
78167
|
+
});
|
|
77957
78168
|
var require_expand = __commonJSMin((exports) => {
|
|
77958
78169
|
"use strict";
|
|
77959
78170
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -78439,6 +78650,51 @@ var require_multicast = __commonJSMin((exports) => {
|
|
|
78439
78650
|
}
|
|
78440
78651
|
exports.multicast = multicast;
|
|
78441
78652
|
});
|
|
78653
|
+
var require_onErrorResumeNextWith = __commonJSMin((exports) => {
|
|
78654
|
+
"use strict";
|
|
78655
|
+
var __read9 = exports && exports.__read || function(o, n) {
|
|
78656
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
78657
|
+
if (!m)
|
|
78658
|
+
return o;
|
|
78659
|
+
var i = m.call(o), r, ar = [], e;
|
|
78660
|
+
try {
|
|
78661
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
78662
|
+
ar.push(r.value);
|
|
78663
|
+
} catch (error) {
|
|
78664
|
+
e = { error };
|
|
78665
|
+
} finally {
|
|
78666
|
+
try {
|
|
78667
|
+
if (r && !r.done && (m = i["return"]))
|
|
78668
|
+
m.call(i);
|
|
78669
|
+
} finally {
|
|
78670
|
+
if (e)
|
|
78671
|
+
throw e.error;
|
|
78672
|
+
}
|
|
78673
|
+
}
|
|
78674
|
+
return ar;
|
|
78675
|
+
};
|
|
78676
|
+
var __spreadArray8 = exports && exports.__spreadArray || function(to, from) {
|
|
78677
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
78678
|
+
to[j] = from[i];
|
|
78679
|
+
return to;
|
|
78680
|
+
};
|
|
78681
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78682
|
+
exports.onErrorResumeNext = exports.onErrorResumeNextWith = void 0;
|
|
78683
|
+
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
78684
|
+
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
78685
|
+
function onErrorResumeNextWith() {
|
|
78686
|
+
var sources = [];
|
|
78687
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
78688
|
+
sources[_i] = arguments[_i];
|
|
78689
|
+
}
|
|
78690
|
+
var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
|
|
78691
|
+
return function(source) {
|
|
78692
|
+
return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray8([source], __read9(nextSources)));
|
|
78693
|
+
};
|
|
78694
|
+
}
|
|
78695
|
+
exports.onErrorResumeNextWith = onErrorResumeNextWith;
|
|
78696
|
+
exports.onErrorResumeNext = onErrorResumeNextWith;
|
|
78697
|
+
});
|
|
78442
78698
|
var require_pairwise = __commonJSMin((exports) => {
|
|
78443
78699
|
"use strict";
|
|
78444
78700
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -78946,8 +79202,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
78946
79202
|
};
|
|
78947
79203
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78948
79204
|
exports.share = void 0;
|
|
78949
|
-
var
|
|
78950
|
-
var take_1 = require_take();
|
|
79205
|
+
var innerFrom_1 = require_innerFrom();
|
|
78951
79206
|
var Subject_1 = require_Subject();
|
|
78952
79207
|
var Subscriber_1 = require_Subscriber();
|
|
78953
79208
|
var lift_1 = require_lift();
|
|
@@ -78959,19 +79214,19 @@ var require_share = __commonJSMin((exports) => {
|
|
|
78959
79214
|
return new Subject_1.Subject();
|
|
78960
79215
|
} : _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;
|
|
78961
79216
|
return function(wrapperSource) {
|
|
78962
|
-
var connection
|
|
78963
|
-
var resetConnection
|
|
78964
|
-
var subject
|
|
79217
|
+
var connection;
|
|
79218
|
+
var resetConnection;
|
|
79219
|
+
var subject;
|
|
78965
79220
|
var refCount = 0;
|
|
78966
79221
|
var hasCompleted = false;
|
|
78967
79222
|
var hasErrored = false;
|
|
78968
79223
|
var cancelReset = function() {
|
|
78969
79224
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
78970
|
-
resetConnection =
|
|
79225
|
+
resetConnection = void 0;
|
|
78971
79226
|
};
|
|
78972
79227
|
var reset = function() {
|
|
78973
79228
|
cancelReset();
|
|
78974
|
-
connection = subject =
|
|
79229
|
+
connection = subject = void 0;
|
|
78975
79230
|
hasCompleted = hasErrored = false;
|
|
78976
79231
|
};
|
|
78977
79232
|
var resetAndUnsubscribe = function() {
|
|
@@ -78992,7 +79247,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
78992
79247
|
}
|
|
78993
79248
|
});
|
|
78994
79249
|
dest.subscribe(subscriber);
|
|
78995
|
-
if (!connection) {
|
|
79250
|
+
if (!connection && refCount > 0) {
|
|
78996
79251
|
connection = new Subscriber_1.SafeSubscriber({
|
|
78997
79252
|
next: function(value) {
|
|
78998
79253
|
return dest.next(value);
|
|
@@ -79010,7 +79265,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
79010
79265
|
dest.complete();
|
|
79011
79266
|
}
|
|
79012
79267
|
});
|
|
79013
|
-
|
|
79268
|
+
innerFrom_1.innerFrom(source).subscribe(connection);
|
|
79014
79269
|
}
|
|
79015
79270
|
})(wrapperSource);
|
|
79016
79271
|
};
|
|
@@ -79023,14 +79278,18 @@ var require_share = __commonJSMin((exports) => {
|
|
|
79023
79278
|
}
|
|
79024
79279
|
if (on === true) {
|
|
79025
79280
|
reset();
|
|
79026
|
-
return
|
|
79281
|
+
return;
|
|
79027
79282
|
}
|
|
79028
79283
|
if (on === false) {
|
|
79029
|
-
return
|
|
79284
|
+
return;
|
|
79030
79285
|
}
|
|
79031
|
-
|
|
79032
|
-
|
|
79286
|
+
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
79287
|
+
next: function() {
|
|
79288
|
+
onSubscriber.unsubscribe();
|
|
79289
|
+
reset();
|
|
79290
|
+
}
|
|
79033
79291
|
});
|
|
79292
|
+
return on.apply(void 0, __spreadArray8([], __read9(args))).subscribe(onSubscriber);
|
|
79034
79293
|
}
|
|
79035
79294
|
});
|
|
79036
79295
|
var require_shareReplay = __commonJSMin((exports) => {
|
|
@@ -80024,8 +80283,8 @@ var require_cjs = __commonJSMin((exports) => {
|
|
|
80024
80283
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
80025
80284
|
exports.interval = exports.iif = exports.generate = exports.fromEventPattern = exports.fromEvent = exports.from = exports.forkJoin = exports.empty = exports.defer = exports.connectable = exports.concat = exports.combineLatest = exports.bindNodeCallback = exports.bindCallback = exports.UnsubscriptionError = exports.TimeoutError = exports.SequenceError = exports.ObjectUnsubscribedError = exports.NotFoundError = exports.EmptyError = exports.ArgumentOutOfRangeError = exports.firstValueFrom = exports.lastValueFrom = exports.isObservable = exports.identity = exports.noop = exports.pipe = exports.NotificationKind = exports.Notification = exports.Subscriber = exports.Subscription = exports.Scheduler = exports.VirtualAction = exports.VirtualTimeScheduler = exports.animationFrameScheduler = exports.animationFrame = exports.queueScheduler = exports.queue = exports.asyncScheduler = exports.async = exports.asapScheduler = exports.asap = exports.AsyncSubject = exports.ReplaySubject = exports.BehaviorSubject = exports.Subject = exports.animationFrames = exports.observable = exports.ConnectableObservable = exports.Observable = void 0;
|
|
80026
80285
|
exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.combineLatestWith = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = exports.config = exports.NEVER = exports.EMPTY = exports.scheduled = exports.zip = exports.using = exports.timer = exports.throwError = exports.range = exports.race = exports.partition = exports.pairs = exports.onErrorResumeNext = exports.of = exports.never = exports.merge = void 0;
|
|
80027
|
-
exports.
|
|
80028
|
-
exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = void 0;
|
|
80286
|
+
exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.pairwise = exports.onErrorResumeNextWith = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = exports.mergeAll = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = void 0;
|
|
80287
|
+
exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = void 0;
|
|
80029
80288
|
var Observable_1 = require_Observable();
|
|
80030
80289
|
Object.defineProperty(exports, "Observable", { enumerable: true, get: function() {
|
|
80031
80290
|
return Observable_1.Observable;
|
|
@@ -80232,7 +80491,7 @@ var require_cjs = __commonJSMin((exports) => {
|
|
|
80232
80491
|
Object.defineProperty(exports, "of", { enumerable: true, get: function() {
|
|
80233
80492
|
return of_1.of;
|
|
80234
80493
|
} });
|
|
80235
|
-
var onErrorResumeNext_1 =
|
|
80494
|
+
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
80236
80495
|
Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function() {
|
|
80237
80496
|
return onErrorResumeNext_1.onErrorResumeNext;
|
|
80238
80497
|
} });
|
|
@@ -80505,6 +80764,10 @@ var require_cjs = __commonJSMin((exports) => {
|
|
|
80505
80764
|
Object.defineProperty(exports, "observeOn", { enumerable: true, get: function() {
|
|
80506
80765
|
return observeOn_1.observeOn;
|
|
80507
80766
|
} });
|
|
80767
|
+
var onErrorResumeNextWith_1 = require_onErrorResumeNextWith();
|
|
80768
|
+
Object.defineProperty(exports, "onErrorResumeNextWith", { enumerable: true, get: function() {
|
|
80769
|
+
return onErrorResumeNextWith_1.onErrorResumeNextWith;
|
|
80770
|
+
} });
|
|
80508
80771
|
var pairwise_1 = require_pairwise();
|
|
80509
80772
|
Object.defineProperty(exports, "pairwise", { enumerable: true, get: function() {
|
|
80510
80773
|
return pairwise_1.pairwise;
|
|
@@ -81002,9 +81265,9 @@ var require_operators = __commonJSMin((exports) => {
|
|
|
81002
81265
|
Object.defineProperty(exports, "observeOn", { enumerable: true, get: function() {
|
|
81003
81266
|
return observeOn_1.observeOn;
|
|
81004
81267
|
} });
|
|
81005
|
-
var
|
|
81268
|
+
var onErrorResumeNextWith_1 = require_onErrorResumeNextWith();
|
|
81006
81269
|
Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function() {
|
|
81007
|
-
return
|
|
81270
|
+
return onErrorResumeNextWith_1.onErrorResumeNext;
|
|
81008
81271
|
} });
|
|
81009
81272
|
var pairwise_1 = require_pairwise();
|
|
81010
81273
|
Object.defineProperty(exports, "pairwise", { enumerable: true, get: function() {
|
|
@@ -83463,6 +83726,1237 @@ var require_string_width = __commonJSMin((exports, module2) => {
|
|
|
83463
83726
|
module2.exports = stringWidth;
|
|
83464
83727
|
module2.exports.default = stringWidth;
|
|
83465
83728
|
});
|
|
83729
|
+
var require_color_name = __commonJSMin((exports, module2) => {
|
|
83730
|
+
"use strict";
|
|
83731
|
+
module2.exports = {
|
|
83732
|
+
"aliceblue": [240, 248, 255],
|
|
83733
|
+
"antiquewhite": [250, 235, 215],
|
|
83734
|
+
"aqua": [0, 255, 255],
|
|
83735
|
+
"aquamarine": [127, 255, 212],
|
|
83736
|
+
"azure": [240, 255, 255],
|
|
83737
|
+
"beige": [245, 245, 220],
|
|
83738
|
+
"bisque": [255, 228, 196],
|
|
83739
|
+
"black": [0, 0, 0],
|
|
83740
|
+
"blanchedalmond": [255, 235, 205],
|
|
83741
|
+
"blue": [0, 0, 255],
|
|
83742
|
+
"blueviolet": [138, 43, 226],
|
|
83743
|
+
"brown": [165, 42, 42],
|
|
83744
|
+
"burlywood": [222, 184, 135],
|
|
83745
|
+
"cadetblue": [95, 158, 160],
|
|
83746
|
+
"chartreuse": [127, 255, 0],
|
|
83747
|
+
"chocolate": [210, 105, 30],
|
|
83748
|
+
"coral": [255, 127, 80],
|
|
83749
|
+
"cornflowerblue": [100, 149, 237],
|
|
83750
|
+
"cornsilk": [255, 248, 220],
|
|
83751
|
+
"crimson": [220, 20, 60],
|
|
83752
|
+
"cyan": [0, 255, 255],
|
|
83753
|
+
"darkblue": [0, 0, 139],
|
|
83754
|
+
"darkcyan": [0, 139, 139],
|
|
83755
|
+
"darkgoldenrod": [184, 134, 11],
|
|
83756
|
+
"darkgray": [169, 169, 169],
|
|
83757
|
+
"darkgreen": [0, 100, 0],
|
|
83758
|
+
"darkgrey": [169, 169, 169],
|
|
83759
|
+
"darkkhaki": [189, 183, 107],
|
|
83760
|
+
"darkmagenta": [139, 0, 139],
|
|
83761
|
+
"darkolivegreen": [85, 107, 47],
|
|
83762
|
+
"darkorange": [255, 140, 0],
|
|
83763
|
+
"darkorchid": [153, 50, 204],
|
|
83764
|
+
"darkred": [139, 0, 0],
|
|
83765
|
+
"darksalmon": [233, 150, 122],
|
|
83766
|
+
"darkseagreen": [143, 188, 143],
|
|
83767
|
+
"darkslateblue": [72, 61, 139],
|
|
83768
|
+
"darkslategray": [47, 79, 79],
|
|
83769
|
+
"darkslategrey": [47, 79, 79],
|
|
83770
|
+
"darkturquoise": [0, 206, 209],
|
|
83771
|
+
"darkviolet": [148, 0, 211],
|
|
83772
|
+
"deeppink": [255, 20, 147],
|
|
83773
|
+
"deepskyblue": [0, 191, 255],
|
|
83774
|
+
"dimgray": [105, 105, 105],
|
|
83775
|
+
"dimgrey": [105, 105, 105],
|
|
83776
|
+
"dodgerblue": [30, 144, 255],
|
|
83777
|
+
"firebrick": [178, 34, 34],
|
|
83778
|
+
"floralwhite": [255, 250, 240],
|
|
83779
|
+
"forestgreen": [34, 139, 34],
|
|
83780
|
+
"fuchsia": [255, 0, 255],
|
|
83781
|
+
"gainsboro": [220, 220, 220],
|
|
83782
|
+
"ghostwhite": [248, 248, 255],
|
|
83783
|
+
"gold": [255, 215, 0],
|
|
83784
|
+
"goldenrod": [218, 165, 32],
|
|
83785
|
+
"gray": [128, 128, 128],
|
|
83786
|
+
"green": [0, 128, 0],
|
|
83787
|
+
"greenyellow": [173, 255, 47],
|
|
83788
|
+
"grey": [128, 128, 128],
|
|
83789
|
+
"honeydew": [240, 255, 240],
|
|
83790
|
+
"hotpink": [255, 105, 180],
|
|
83791
|
+
"indianred": [205, 92, 92],
|
|
83792
|
+
"indigo": [75, 0, 130],
|
|
83793
|
+
"ivory": [255, 255, 240],
|
|
83794
|
+
"khaki": [240, 230, 140],
|
|
83795
|
+
"lavender": [230, 230, 250],
|
|
83796
|
+
"lavenderblush": [255, 240, 245],
|
|
83797
|
+
"lawngreen": [124, 252, 0],
|
|
83798
|
+
"lemonchiffon": [255, 250, 205],
|
|
83799
|
+
"lightblue": [173, 216, 230],
|
|
83800
|
+
"lightcoral": [240, 128, 128],
|
|
83801
|
+
"lightcyan": [224, 255, 255],
|
|
83802
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
|
83803
|
+
"lightgray": [211, 211, 211],
|
|
83804
|
+
"lightgreen": [144, 238, 144],
|
|
83805
|
+
"lightgrey": [211, 211, 211],
|
|
83806
|
+
"lightpink": [255, 182, 193],
|
|
83807
|
+
"lightsalmon": [255, 160, 122],
|
|
83808
|
+
"lightseagreen": [32, 178, 170],
|
|
83809
|
+
"lightskyblue": [135, 206, 250],
|
|
83810
|
+
"lightslategray": [119, 136, 153],
|
|
83811
|
+
"lightslategrey": [119, 136, 153],
|
|
83812
|
+
"lightsteelblue": [176, 196, 222],
|
|
83813
|
+
"lightyellow": [255, 255, 224],
|
|
83814
|
+
"lime": [0, 255, 0],
|
|
83815
|
+
"limegreen": [50, 205, 50],
|
|
83816
|
+
"linen": [250, 240, 230],
|
|
83817
|
+
"magenta": [255, 0, 255],
|
|
83818
|
+
"maroon": [128, 0, 0],
|
|
83819
|
+
"mediumaquamarine": [102, 205, 170],
|
|
83820
|
+
"mediumblue": [0, 0, 205],
|
|
83821
|
+
"mediumorchid": [186, 85, 211],
|
|
83822
|
+
"mediumpurple": [147, 112, 219],
|
|
83823
|
+
"mediumseagreen": [60, 179, 113],
|
|
83824
|
+
"mediumslateblue": [123, 104, 238],
|
|
83825
|
+
"mediumspringgreen": [0, 250, 154],
|
|
83826
|
+
"mediumturquoise": [72, 209, 204],
|
|
83827
|
+
"mediumvioletred": [199, 21, 133],
|
|
83828
|
+
"midnightblue": [25, 25, 112],
|
|
83829
|
+
"mintcream": [245, 255, 250],
|
|
83830
|
+
"mistyrose": [255, 228, 225],
|
|
83831
|
+
"moccasin": [255, 228, 181],
|
|
83832
|
+
"navajowhite": [255, 222, 173],
|
|
83833
|
+
"navy": [0, 0, 128],
|
|
83834
|
+
"oldlace": [253, 245, 230],
|
|
83835
|
+
"olive": [128, 128, 0],
|
|
83836
|
+
"olivedrab": [107, 142, 35],
|
|
83837
|
+
"orange": [255, 165, 0],
|
|
83838
|
+
"orangered": [255, 69, 0],
|
|
83839
|
+
"orchid": [218, 112, 214],
|
|
83840
|
+
"palegoldenrod": [238, 232, 170],
|
|
83841
|
+
"palegreen": [152, 251, 152],
|
|
83842
|
+
"paleturquoise": [175, 238, 238],
|
|
83843
|
+
"palevioletred": [219, 112, 147],
|
|
83844
|
+
"papayawhip": [255, 239, 213],
|
|
83845
|
+
"peachpuff": [255, 218, 185],
|
|
83846
|
+
"peru": [205, 133, 63],
|
|
83847
|
+
"pink": [255, 192, 203],
|
|
83848
|
+
"plum": [221, 160, 221],
|
|
83849
|
+
"powderblue": [176, 224, 230],
|
|
83850
|
+
"purple": [128, 0, 128],
|
|
83851
|
+
"rebeccapurple": [102, 51, 153],
|
|
83852
|
+
"red": [255, 0, 0],
|
|
83853
|
+
"rosybrown": [188, 143, 143],
|
|
83854
|
+
"royalblue": [65, 105, 225],
|
|
83855
|
+
"saddlebrown": [139, 69, 19],
|
|
83856
|
+
"salmon": [250, 128, 114],
|
|
83857
|
+
"sandybrown": [244, 164, 96],
|
|
83858
|
+
"seagreen": [46, 139, 87],
|
|
83859
|
+
"seashell": [255, 245, 238],
|
|
83860
|
+
"sienna": [160, 82, 45],
|
|
83861
|
+
"silver": [192, 192, 192],
|
|
83862
|
+
"skyblue": [135, 206, 235],
|
|
83863
|
+
"slateblue": [106, 90, 205],
|
|
83864
|
+
"slategray": [112, 128, 144],
|
|
83865
|
+
"slategrey": [112, 128, 144],
|
|
83866
|
+
"snow": [255, 250, 250],
|
|
83867
|
+
"springgreen": [0, 255, 127],
|
|
83868
|
+
"steelblue": [70, 130, 180],
|
|
83869
|
+
"tan": [210, 180, 140],
|
|
83870
|
+
"teal": [0, 128, 128],
|
|
83871
|
+
"thistle": [216, 191, 216],
|
|
83872
|
+
"tomato": [255, 99, 71],
|
|
83873
|
+
"turquoise": [64, 224, 208],
|
|
83874
|
+
"violet": [238, 130, 238],
|
|
83875
|
+
"wheat": [245, 222, 179],
|
|
83876
|
+
"white": [255, 255, 255],
|
|
83877
|
+
"whitesmoke": [245, 245, 245],
|
|
83878
|
+
"yellow": [255, 255, 0],
|
|
83879
|
+
"yellowgreen": [154, 205, 50]
|
|
83880
|
+
};
|
|
83881
|
+
});
|
|
83882
|
+
var require_conversions = __commonJSMin((exports, module2) => {
|
|
83883
|
+
var cssKeywords = require_color_name();
|
|
83884
|
+
var reverseKeywords = {};
|
|
83885
|
+
for (const key of Object.keys(cssKeywords)) {
|
|
83886
|
+
reverseKeywords[cssKeywords[key]] = key;
|
|
83887
|
+
}
|
|
83888
|
+
var convert = {
|
|
83889
|
+
rgb: { channels: 3, labels: "rgb" },
|
|
83890
|
+
hsl: { channels: 3, labels: "hsl" },
|
|
83891
|
+
hsv: { channels: 3, labels: "hsv" },
|
|
83892
|
+
hwb: { channels: 3, labels: "hwb" },
|
|
83893
|
+
cmyk: { channels: 4, labels: "cmyk" },
|
|
83894
|
+
xyz: { channels: 3, labels: "xyz" },
|
|
83895
|
+
lab: { channels: 3, labels: "lab" },
|
|
83896
|
+
lch: { channels: 3, labels: "lch" },
|
|
83897
|
+
hex: { channels: 1, labels: ["hex"] },
|
|
83898
|
+
keyword: { channels: 1, labels: ["keyword"] },
|
|
83899
|
+
ansi16: { channels: 1, labels: ["ansi16"] },
|
|
83900
|
+
ansi256: { channels: 1, labels: ["ansi256"] },
|
|
83901
|
+
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
|
83902
|
+
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
83903
|
+
gray: { channels: 1, labels: ["gray"] }
|
|
83904
|
+
};
|
|
83905
|
+
module2.exports = convert;
|
|
83906
|
+
for (const model of Object.keys(convert)) {
|
|
83907
|
+
if (!("channels" in convert[model])) {
|
|
83908
|
+
throw new Error("missing channels property: " + model);
|
|
83909
|
+
}
|
|
83910
|
+
if (!("labels" in convert[model])) {
|
|
83911
|
+
throw new Error("missing channel labels property: " + model);
|
|
83912
|
+
}
|
|
83913
|
+
if (convert[model].labels.length !== convert[model].channels) {
|
|
83914
|
+
throw new Error("channel and label counts mismatch: " + model);
|
|
83915
|
+
}
|
|
83916
|
+
const { channels, labels } = convert[model];
|
|
83917
|
+
delete convert[model].channels;
|
|
83918
|
+
delete convert[model].labels;
|
|
83919
|
+
Object.defineProperty(convert[model], "channels", { value: channels });
|
|
83920
|
+
Object.defineProperty(convert[model], "labels", { value: labels });
|
|
83921
|
+
}
|
|
83922
|
+
convert.rgb.hsl = function(rgb) {
|
|
83923
|
+
const r = rgb[0] / 255;
|
|
83924
|
+
const g = rgb[1] / 255;
|
|
83925
|
+
const b = rgb[2] / 255;
|
|
83926
|
+
const min = Math.min(r, g, b);
|
|
83927
|
+
const max = Math.max(r, g, b);
|
|
83928
|
+
const delta = max - min;
|
|
83929
|
+
let h;
|
|
83930
|
+
let s;
|
|
83931
|
+
if (max === min) {
|
|
83932
|
+
h = 0;
|
|
83933
|
+
} else if (r === max) {
|
|
83934
|
+
h = (g - b) / delta;
|
|
83935
|
+
} else if (g === max) {
|
|
83936
|
+
h = 2 + (b - r) / delta;
|
|
83937
|
+
} else if (b === max) {
|
|
83938
|
+
h = 4 + (r - g) / delta;
|
|
83939
|
+
}
|
|
83940
|
+
h = Math.min(h * 60, 360);
|
|
83941
|
+
if (h < 0) {
|
|
83942
|
+
h += 360;
|
|
83943
|
+
}
|
|
83944
|
+
const l = (min + max) / 2;
|
|
83945
|
+
if (max === min) {
|
|
83946
|
+
s = 0;
|
|
83947
|
+
} else if (l <= 0.5) {
|
|
83948
|
+
s = delta / (max + min);
|
|
83949
|
+
} else {
|
|
83950
|
+
s = delta / (2 - max - min);
|
|
83951
|
+
}
|
|
83952
|
+
return [h, s * 100, l * 100];
|
|
83953
|
+
};
|
|
83954
|
+
convert.rgb.hsv = function(rgb) {
|
|
83955
|
+
let rdif;
|
|
83956
|
+
let gdif;
|
|
83957
|
+
let bdif;
|
|
83958
|
+
let h;
|
|
83959
|
+
let s;
|
|
83960
|
+
const r = rgb[0] / 255;
|
|
83961
|
+
const g = rgb[1] / 255;
|
|
83962
|
+
const b = rgb[2] / 255;
|
|
83963
|
+
const v = Math.max(r, g, b);
|
|
83964
|
+
const diff = v - Math.min(r, g, b);
|
|
83965
|
+
const diffc = function(c) {
|
|
83966
|
+
return (v - c) / 6 / diff + 1 / 2;
|
|
83967
|
+
};
|
|
83968
|
+
if (diff === 0) {
|
|
83969
|
+
h = 0;
|
|
83970
|
+
s = 0;
|
|
83971
|
+
} else {
|
|
83972
|
+
s = diff / v;
|
|
83973
|
+
rdif = diffc(r);
|
|
83974
|
+
gdif = diffc(g);
|
|
83975
|
+
bdif = diffc(b);
|
|
83976
|
+
if (r === v) {
|
|
83977
|
+
h = bdif - gdif;
|
|
83978
|
+
} else if (g === v) {
|
|
83979
|
+
h = 1 / 3 + rdif - bdif;
|
|
83980
|
+
} else if (b === v) {
|
|
83981
|
+
h = 2 / 3 + gdif - rdif;
|
|
83982
|
+
}
|
|
83983
|
+
if (h < 0) {
|
|
83984
|
+
h += 1;
|
|
83985
|
+
} else if (h > 1) {
|
|
83986
|
+
h -= 1;
|
|
83987
|
+
}
|
|
83988
|
+
}
|
|
83989
|
+
return [
|
|
83990
|
+
h * 360,
|
|
83991
|
+
s * 100,
|
|
83992
|
+
v * 100
|
|
83993
|
+
];
|
|
83994
|
+
};
|
|
83995
|
+
convert.rgb.hwb = function(rgb) {
|
|
83996
|
+
const r = rgb[0];
|
|
83997
|
+
const g = rgb[1];
|
|
83998
|
+
let b = rgb[2];
|
|
83999
|
+
const h = convert.rgb.hsl(rgb)[0];
|
|
84000
|
+
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
84001
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
84002
|
+
return [h, w * 100, b * 100];
|
|
84003
|
+
};
|
|
84004
|
+
convert.rgb.cmyk = function(rgb) {
|
|
84005
|
+
const r = rgb[0] / 255;
|
|
84006
|
+
const g = rgb[1] / 255;
|
|
84007
|
+
const b = rgb[2] / 255;
|
|
84008
|
+
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
84009
|
+
const c = (1 - r - k) / (1 - k) || 0;
|
|
84010
|
+
const m = (1 - g - k) / (1 - k) || 0;
|
|
84011
|
+
const y = (1 - b - k) / (1 - k) || 0;
|
|
84012
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
|
84013
|
+
};
|
|
84014
|
+
function comparativeDistance(x, y) {
|
|
84015
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
84016
|
+
}
|
|
84017
|
+
convert.rgb.keyword = function(rgb) {
|
|
84018
|
+
const reversed = reverseKeywords[rgb];
|
|
84019
|
+
if (reversed) {
|
|
84020
|
+
return reversed;
|
|
84021
|
+
}
|
|
84022
|
+
let currentClosestDistance = Infinity;
|
|
84023
|
+
let currentClosestKeyword;
|
|
84024
|
+
for (const keyword of Object.keys(cssKeywords)) {
|
|
84025
|
+
const value = cssKeywords[keyword];
|
|
84026
|
+
const distance = comparativeDistance(rgb, value);
|
|
84027
|
+
if (distance < currentClosestDistance) {
|
|
84028
|
+
currentClosestDistance = distance;
|
|
84029
|
+
currentClosestKeyword = keyword;
|
|
84030
|
+
}
|
|
84031
|
+
}
|
|
84032
|
+
return currentClosestKeyword;
|
|
84033
|
+
};
|
|
84034
|
+
convert.keyword.rgb = function(keyword) {
|
|
84035
|
+
return cssKeywords[keyword];
|
|
84036
|
+
};
|
|
84037
|
+
convert.rgb.xyz = function(rgb) {
|
|
84038
|
+
let r = rgb[0] / 255;
|
|
84039
|
+
let g = rgb[1] / 255;
|
|
84040
|
+
let b = rgb[2] / 255;
|
|
84041
|
+
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
84042
|
+
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
84043
|
+
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
84044
|
+
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
84045
|
+
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
84046
|
+
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
84047
|
+
return [x * 100, y * 100, z * 100];
|
|
84048
|
+
};
|
|
84049
|
+
convert.rgb.lab = function(rgb) {
|
|
84050
|
+
const xyz = convert.rgb.xyz(rgb);
|
|
84051
|
+
let x = xyz[0];
|
|
84052
|
+
let y = xyz[1];
|
|
84053
|
+
let z = xyz[2];
|
|
84054
|
+
x /= 95.047;
|
|
84055
|
+
y /= 100;
|
|
84056
|
+
z /= 108.883;
|
|
84057
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
84058
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
84059
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
84060
|
+
const l = 116 * y - 16;
|
|
84061
|
+
const a = 500 * (x - y);
|
|
84062
|
+
const b = 200 * (y - z);
|
|
84063
|
+
return [l, a, b];
|
|
84064
|
+
};
|
|
84065
|
+
convert.hsl.rgb = function(hsl) {
|
|
84066
|
+
const h = hsl[0] / 360;
|
|
84067
|
+
const s = hsl[1] / 100;
|
|
84068
|
+
const l = hsl[2] / 100;
|
|
84069
|
+
let t2;
|
|
84070
|
+
let t3;
|
|
84071
|
+
let val;
|
|
84072
|
+
if (s === 0) {
|
|
84073
|
+
val = l * 255;
|
|
84074
|
+
return [val, val, val];
|
|
84075
|
+
}
|
|
84076
|
+
if (l < 0.5) {
|
|
84077
|
+
t2 = l * (1 + s);
|
|
84078
|
+
} else {
|
|
84079
|
+
t2 = l + s - l * s;
|
|
84080
|
+
}
|
|
84081
|
+
const t1 = 2 * l - t2;
|
|
84082
|
+
const rgb = [0, 0, 0];
|
|
84083
|
+
for (let i = 0; i < 3; i++) {
|
|
84084
|
+
t3 = h + 1 / 3 * -(i - 1);
|
|
84085
|
+
if (t3 < 0) {
|
|
84086
|
+
t3++;
|
|
84087
|
+
}
|
|
84088
|
+
if (t3 > 1) {
|
|
84089
|
+
t3--;
|
|
84090
|
+
}
|
|
84091
|
+
if (6 * t3 < 1) {
|
|
84092
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
|
84093
|
+
} else if (2 * t3 < 1) {
|
|
84094
|
+
val = t2;
|
|
84095
|
+
} else if (3 * t3 < 2) {
|
|
84096
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
84097
|
+
} else {
|
|
84098
|
+
val = t1;
|
|
84099
|
+
}
|
|
84100
|
+
rgb[i] = val * 255;
|
|
84101
|
+
}
|
|
84102
|
+
return rgb;
|
|
84103
|
+
};
|
|
84104
|
+
convert.hsl.hsv = function(hsl) {
|
|
84105
|
+
const h = hsl[0];
|
|
84106
|
+
let s = hsl[1] / 100;
|
|
84107
|
+
let l = hsl[2] / 100;
|
|
84108
|
+
let smin = s;
|
|
84109
|
+
const lmin = Math.max(l, 0.01);
|
|
84110
|
+
l *= 2;
|
|
84111
|
+
s *= l <= 1 ? l : 2 - l;
|
|
84112
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
84113
|
+
const v = (l + s) / 2;
|
|
84114
|
+
const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
|
84115
|
+
return [h, sv * 100, v * 100];
|
|
84116
|
+
};
|
|
84117
|
+
convert.hsv.rgb = function(hsv) {
|
|
84118
|
+
const h = hsv[0] / 60;
|
|
84119
|
+
const s = hsv[1] / 100;
|
|
84120
|
+
let v = hsv[2] / 100;
|
|
84121
|
+
const hi = Math.floor(h) % 6;
|
|
84122
|
+
const f = h - Math.floor(h);
|
|
84123
|
+
const p = 255 * v * (1 - s);
|
|
84124
|
+
const q = 255 * v * (1 - s * f);
|
|
84125
|
+
const t = 255 * v * (1 - s * (1 - f));
|
|
84126
|
+
v *= 255;
|
|
84127
|
+
switch (hi) {
|
|
84128
|
+
case 0:
|
|
84129
|
+
return [v, t, p];
|
|
84130
|
+
case 1:
|
|
84131
|
+
return [q, v, p];
|
|
84132
|
+
case 2:
|
|
84133
|
+
return [p, v, t];
|
|
84134
|
+
case 3:
|
|
84135
|
+
return [p, q, v];
|
|
84136
|
+
case 4:
|
|
84137
|
+
return [t, p, v];
|
|
84138
|
+
case 5:
|
|
84139
|
+
return [v, p, q];
|
|
84140
|
+
}
|
|
84141
|
+
};
|
|
84142
|
+
convert.hsv.hsl = function(hsv) {
|
|
84143
|
+
const h = hsv[0];
|
|
84144
|
+
const s = hsv[1] / 100;
|
|
84145
|
+
const v = hsv[2] / 100;
|
|
84146
|
+
const vmin = Math.max(v, 0.01);
|
|
84147
|
+
let sl;
|
|
84148
|
+
let l;
|
|
84149
|
+
l = (2 - s) * v;
|
|
84150
|
+
const lmin = (2 - s) * vmin;
|
|
84151
|
+
sl = s * vmin;
|
|
84152
|
+
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
|
84153
|
+
sl = sl || 0;
|
|
84154
|
+
l /= 2;
|
|
84155
|
+
return [h, sl * 100, l * 100];
|
|
84156
|
+
};
|
|
84157
|
+
convert.hwb.rgb = function(hwb) {
|
|
84158
|
+
const h = hwb[0] / 360;
|
|
84159
|
+
let wh = hwb[1] / 100;
|
|
84160
|
+
let bl = hwb[2] / 100;
|
|
84161
|
+
const ratio = wh + bl;
|
|
84162
|
+
let f;
|
|
84163
|
+
if (ratio > 1) {
|
|
84164
|
+
wh /= ratio;
|
|
84165
|
+
bl /= ratio;
|
|
84166
|
+
}
|
|
84167
|
+
const i = Math.floor(6 * h);
|
|
84168
|
+
const v = 1 - bl;
|
|
84169
|
+
f = 6 * h - i;
|
|
84170
|
+
if ((i & 1) !== 0) {
|
|
84171
|
+
f = 1 - f;
|
|
84172
|
+
}
|
|
84173
|
+
const n = wh + f * (v - wh);
|
|
84174
|
+
let r;
|
|
84175
|
+
let g;
|
|
84176
|
+
let b;
|
|
84177
|
+
switch (i) {
|
|
84178
|
+
default:
|
|
84179
|
+
case 6:
|
|
84180
|
+
case 0:
|
|
84181
|
+
r = v;
|
|
84182
|
+
g = n;
|
|
84183
|
+
b = wh;
|
|
84184
|
+
break;
|
|
84185
|
+
case 1:
|
|
84186
|
+
r = n;
|
|
84187
|
+
g = v;
|
|
84188
|
+
b = wh;
|
|
84189
|
+
break;
|
|
84190
|
+
case 2:
|
|
84191
|
+
r = wh;
|
|
84192
|
+
g = v;
|
|
84193
|
+
b = n;
|
|
84194
|
+
break;
|
|
84195
|
+
case 3:
|
|
84196
|
+
r = wh;
|
|
84197
|
+
g = n;
|
|
84198
|
+
b = v;
|
|
84199
|
+
break;
|
|
84200
|
+
case 4:
|
|
84201
|
+
r = n;
|
|
84202
|
+
g = wh;
|
|
84203
|
+
b = v;
|
|
84204
|
+
break;
|
|
84205
|
+
case 5:
|
|
84206
|
+
r = v;
|
|
84207
|
+
g = wh;
|
|
84208
|
+
b = n;
|
|
84209
|
+
break;
|
|
84210
|
+
}
|
|
84211
|
+
return [r * 255, g * 255, b * 255];
|
|
84212
|
+
};
|
|
84213
|
+
convert.cmyk.rgb = function(cmyk) {
|
|
84214
|
+
const c = cmyk[0] / 100;
|
|
84215
|
+
const m = cmyk[1] / 100;
|
|
84216
|
+
const y = cmyk[2] / 100;
|
|
84217
|
+
const k = cmyk[3] / 100;
|
|
84218
|
+
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
84219
|
+
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
84220
|
+
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
84221
|
+
return [r * 255, g * 255, b * 255];
|
|
84222
|
+
};
|
|
84223
|
+
convert.xyz.rgb = function(xyz) {
|
|
84224
|
+
const x = xyz[0] / 100;
|
|
84225
|
+
const y = xyz[1] / 100;
|
|
84226
|
+
const z = xyz[2] / 100;
|
|
84227
|
+
let r;
|
|
84228
|
+
let g;
|
|
84229
|
+
let b;
|
|
84230
|
+
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
84231
|
+
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
84232
|
+
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
84233
|
+
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
84234
|
+
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
84235
|
+
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
84236
|
+
r = Math.min(Math.max(0, r), 1);
|
|
84237
|
+
g = Math.min(Math.max(0, g), 1);
|
|
84238
|
+
b = Math.min(Math.max(0, b), 1);
|
|
84239
|
+
return [r * 255, g * 255, b * 255];
|
|
84240
|
+
};
|
|
84241
|
+
convert.xyz.lab = function(xyz) {
|
|
84242
|
+
let x = xyz[0];
|
|
84243
|
+
let y = xyz[1];
|
|
84244
|
+
let z = xyz[2];
|
|
84245
|
+
x /= 95.047;
|
|
84246
|
+
y /= 100;
|
|
84247
|
+
z /= 108.883;
|
|
84248
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
84249
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
84250
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
84251
|
+
const l = 116 * y - 16;
|
|
84252
|
+
const a = 500 * (x - y);
|
|
84253
|
+
const b = 200 * (y - z);
|
|
84254
|
+
return [l, a, b];
|
|
84255
|
+
};
|
|
84256
|
+
convert.lab.xyz = function(lab) {
|
|
84257
|
+
const l = lab[0];
|
|
84258
|
+
const a = lab[1];
|
|
84259
|
+
const b = lab[2];
|
|
84260
|
+
let x;
|
|
84261
|
+
let y;
|
|
84262
|
+
let z;
|
|
84263
|
+
y = (l + 16) / 116;
|
|
84264
|
+
x = a / 500 + y;
|
|
84265
|
+
z = y - b / 200;
|
|
84266
|
+
const y2 = y ** 3;
|
|
84267
|
+
const x2 = x ** 3;
|
|
84268
|
+
const z2 = z ** 3;
|
|
84269
|
+
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
84270
|
+
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
84271
|
+
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
84272
|
+
x *= 95.047;
|
|
84273
|
+
y *= 100;
|
|
84274
|
+
z *= 108.883;
|
|
84275
|
+
return [x, y, z];
|
|
84276
|
+
};
|
|
84277
|
+
convert.lab.lch = function(lab) {
|
|
84278
|
+
const l = lab[0];
|
|
84279
|
+
const a = lab[1];
|
|
84280
|
+
const b = lab[2];
|
|
84281
|
+
let h;
|
|
84282
|
+
const hr = Math.atan2(b, a);
|
|
84283
|
+
h = hr * 360 / 2 / Math.PI;
|
|
84284
|
+
if (h < 0) {
|
|
84285
|
+
h += 360;
|
|
84286
|
+
}
|
|
84287
|
+
const c = Math.sqrt(a * a + b * b);
|
|
84288
|
+
return [l, c, h];
|
|
84289
|
+
};
|
|
84290
|
+
convert.lch.lab = function(lch) {
|
|
84291
|
+
const l = lch[0];
|
|
84292
|
+
const c = lch[1];
|
|
84293
|
+
const h = lch[2];
|
|
84294
|
+
const hr = h / 360 * 2 * Math.PI;
|
|
84295
|
+
const a = c * Math.cos(hr);
|
|
84296
|
+
const b = c * Math.sin(hr);
|
|
84297
|
+
return [l, a, b];
|
|
84298
|
+
};
|
|
84299
|
+
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
84300
|
+
const [r, g, b] = args;
|
|
84301
|
+
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
84302
|
+
value = Math.round(value / 50);
|
|
84303
|
+
if (value === 0) {
|
|
84304
|
+
return 30;
|
|
84305
|
+
}
|
|
84306
|
+
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
84307
|
+
if (value === 2) {
|
|
84308
|
+
ansi += 60;
|
|
84309
|
+
}
|
|
84310
|
+
return ansi;
|
|
84311
|
+
};
|
|
84312
|
+
convert.hsv.ansi16 = function(args) {
|
|
84313
|
+
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
84314
|
+
};
|
|
84315
|
+
convert.rgb.ansi256 = function(args) {
|
|
84316
|
+
const r = args[0];
|
|
84317
|
+
const g = args[1];
|
|
84318
|
+
const b = args[2];
|
|
84319
|
+
if (r === g && g === b) {
|
|
84320
|
+
if (r < 8) {
|
|
84321
|
+
return 16;
|
|
84322
|
+
}
|
|
84323
|
+
if (r > 248) {
|
|
84324
|
+
return 231;
|
|
84325
|
+
}
|
|
84326
|
+
return Math.round((r - 8) / 247 * 24) + 232;
|
|
84327
|
+
}
|
|
84328
|
+
const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
84329
|
+
return ansi;
|
|
84330
|
+
};
|
|
84331
|
+
convert.ansi16.rgb = function(args) {
|
|
84332
|
+
let color = args % 10;
|
|
84333
|
+
if (color === 0 || color === 7) {
|
|
84334
|
+
if (args > 50) {
|
|
84335
|
+
color += 3.5;
|
|
84336
|
+
}
|
|
84337
|
+
color = color / 10.5 * 255;
|
|
84338
|
+
return [color, color, color];
|
|
84339
|
+
}
|
|
84340
|
+
const mult = (~~(args > 50) + 1) * 0.5;
|
|
84341
|
+
const r = (color & 1) * mult * 255;
|
|
84342
|
+
const g = (color >> 1 & 1) * mult * 255;
|
|
84343
|
+
const b = (color >> 2 & 1) * mult * 255;
|
|
84344
|
+
return [r, g, b];
|
|
84345
|
+
};
|
|
84346
|
+
convert.ansi256.rgb = function(args) {
|
|
84347
|
+
if (args >= 232) {
|
|
84348
|
+
const c = (args - 232) * 10 + 8;
|
|
84349
|
+
return [c, c, c];
|
|
84350
|
+
}
|
|
84351
|
+
args -= 16;
|
|
84352
|
+
let rem;
|
|
84353
|
+
const r = Math.floor(args / 36) / 5 * 255;
|
|
84354
|
+
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
84355
|
+
const b = rem % 6 / 5 * 255;
|
|
84356
|
+
return [r, g, b];
|
|
84357
|
+
};
|
|
84358
|
+
convert.rgb.hex = function(args) {
|
|
84359
|
+
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
84360
|
+
const string = integer.toString(16).toUpperCase();
|
|
84361
|
+
return "000000".substring(string.length) + string;
|
|
84362
|
+
};
|
|
84363
|
+
convert.hex.rgb = function(args) {
|
|
84364
|
+
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
84365
|
+
if (!match) {
|
|
84366
|
+
return [0, 0, 0];
|
|
84367
|
+
}
|
|
84368
|
+
let colorString = match[0];
|
|
84369
|
+
if (match[0].length === 3) {
|
|
84370
|
+
colorString = colorString.split("").map((char) => {
|
|
84371
|
+
return char + char;
|
|
84372
|
+
}).join("");
|
|
84373
|
+
}
|
|
84374
|
+
const integer = parseInt(colorString, 16);
|
|
84375
|
+
const r = integer >> 16 & 255;
|
|
84376
|
+
const g = integer >> 8 & 255;
|
|
84377
|
+
const b = integer & 255;
|
|
84378
|
+
return [r, g, b];
|
|
84379
|
+
};
|
|
84380
|
+
convert.rgb.hcg = function(rgb) {
|
|
84381
|
+
const r = rgb[0] / 255;
|
|
84382
|
+
const g = rgb[1] / 255;
|
|
84383
|
+
const b = rgb[2] / 255;
|
|
84384
|
+
const max = Math.max(Math.max(r, g), b);
|
|
84385
|
+
const min = Math.min(Math.min(r, g), b);
|
|
84386
|
+
const chroma = max - min;
|
|
84387
|
+
let grayscale;
|
|
84388
|
+
let hue;
|
|
84389
|
+
if (chroma < 1) {
|
|
84390
|
+
grayscale = min / (1 - chroma);
|
|
84391
|
+
} else {
|
|
84392
|
+
grayscale = 0;
|
|
84393
|
+
}
|
|
84394
|
+
if (chroma <= 0) {
|
|
84395
|
+
hue = 0;
|
|
84396
|
+
} else if (max === r) {
|
|
84397
|
+
hue = (g - b) / chroma % 6;
|
|
84398
|
+
} else if (max === g) {
|
|
84399
|
+
hue = 2 + (b - r) / chroma;
|
|
84400
|
+
} else {
|
|
84401
|
+
hue = 4 + (r - g) / chroma;
|
|
84402
|
+
}
|
|
84403
|
+
hue /= 6;
|
|
84404
|
+
hue %= 1;
|
|
84405
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
|
84406
|
+
};
|
|
84407
|
+
convert.hsl.hcg = function(hsl) {
|
|
84408
|
+
const s = hsl[1] / 100;
|
|
84409
|
+
const l = hsl[2] / 100;
|
|
84410
|
+
const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
|
|
84411
|
+
let f = 0;
|
|
84412
|
+
if (c < 1) {
|
|
84413
|
+
f = (l - 0.5 * c) / (1 - c);
|
|
84414
|
+
}
|
|
84415
|
+
return [hsl[0], c * 100, f * 100];
|
|
84416
|
+
};
|
|
84417
|
+
convert.hsv.hcg = function(hsv) {
|
|
84418
|
+
const s = hsv[1] / 100;
|
|
84419
|
+
const v = hsv[2] / 100;
|
|
84420
|
+
const c = s * v;
|
|
84421
|
+
let f = 0;
|
|
84422
|
+
if (c < 1) {
|
|
84423
|
+
f = (v - c) / (1 - c);
|
|
84424
|
+
}
|
|
84425
|
+
return [hsv[0], c * 100, f * 100];
|
|
84426
|
+
};
|
|
84427
|
+
convert.hcg.rgb = function(hcg) {
|
|
84428
|
+
const h = hcg[0] / 360;
|
|
84429
|
+
const c = hcg[1] / 100;
|
|
84430
|
+
const g = hcg[2] / 100;
|
|
84431
|
+
if (c === 0) {
|
|
84432
|
+
return [g * 255, g * 255, g * 255];
|
|
84433
|
+
}
|
|
84434
|
+
const pure = [0, 0, 0];
|
|
84435
|
+
const hi = h % 1 * 6;
|
|
84436
|
+
const v = hi % 1;
|
|
84437
|
+
const w = 1 - v;
|
|
84438
|
+
let mg = 0;
|
|
84439
|
+
switch (Math.floor(hi)) {
|
|
84440
|
+
case 0:
|
|
84441
|
+
pure[0] = 1;
|
|
84442
|
+
pure[1] = v;
|
|
84443
|
+
pure[2] = 0;
|
|
84444
|
+
break;
|
|
84445
|
+
case 1:
|
|
84446
|
+
pure[0] = w;
|
|
84447
|
+
pure[1] = 1;
|
|
84448
|
+
pure[2] = 0;
|
|
84449
|
+
break;
|
|
84450
|
+
case 2:
|
|
84451
|
+
pure[0] = 0;
|
|
84452
|
+
pure[1] = 1;
|
|
84453
|
+
pure[2] = v;
|
|
84454
|
+
break;
|
|
84455
|
+
case 3:
|
|
84456
|
+
pure[0] = 0;
|
|
84457
|
+
pure[1] = w;
|
|
84458
|
+
pure[2] = 1;
|
|
84459
|
+
break;
|
|
84460
|
+
case 4:
|
|
84461
|
+
pure[0] = v;
|
|
84462
|
+
pure[1] = 0;
|
|
84463
|
+
pure[2] = 1;
|
|
84464
|
+
break;
|
|
84465
|
+
default:
|
|
84466
|
+
pure[0] = 1;
|
|
84467
|
+
pure[1] = 0;
|
|
84468
|
+
pure[2] = w;
|
|
84469
|
+
}
|
|
84470
|
+
mg = (1 - c) * g;
|
|
84471
|
+
return [
|
|
84472
|
+
(c * pure[0] + mg) * 255,
|
|
84473
|
+
(c * pure[1] + mg) * 255,
|
|
84474
|
+
(c * pure[2] + mg) * 255
|
|
84475
|
+
];
|
|
84476
|
+
};
|
|
84477
|
+
convert.hcg.hsv = function(hcg) {
|
|
84478
|
+
const c = hcg[1] / 100;
|
|
84479
|
+
const g = hcg[2] / 100;
|
|
84480
|
+
const v = c + g * (1 - c);
|
|
84481
|
+
let f = 0;
|
|
84482
|
+
if (v > 0) {
|
|
84483
|
+
f = c / v;
|
|
84484
|
+
}
|
|
84485
|
+
return [hcg[0], f * 100, v * 100];
|
|
84486
|
+
};
|
|
84487
|
+
convert.hcg.hsl = function(hcg) {
|
|
84488
|
+
const c = hcg[1] / 100;
|
|
84489
|
+
const g = hcg[2] / 100;
|
|
84490
|
+
const l = g * (1 - c) + 0.5 * c;
|
|
84491
|
+
let s = 0;
|
|
84492
|
+
if (l > 0 && l < 0.5) {
|
|
84493
|
+
s = c / (2 * l);
|
|
84494
|
+
} else if (l >= 0.5 && l < 1) {
|
|
84495
|
+
s = c / (2 * (1 - l));
|
|
84496
|
+
}
|
|
84497
|
+
return [hcg[0], s * 100, l * 100];
|
|
84498
|
+
};
|
|
84499
|
+
convert.hcg.hwb = function(hcg) {
|
|
84500
|
+
const c = hcg[1] / 100;
|
|
84501
|
+
const g = hcg[2] / 100;
|
|
84502
|
+
const v = c + g * (1 - c);
|
|
84503
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
|
84504
|
+
};
|
|
84505
|
+
convert.hwb.hcg = function(hwb) {
|
|
84506
|
+
const w = hwb[1] / 100;
|
|
84507
|
+
const b = hwb[2] / 100;
|
|
84508
|
+
const v = 1 - b;
|
|
84509
|
+
const c = v - w;
|
|
84510
|
+
let g = 0;
|
|
84511
|
+
if (c < 1) {
|
|
84512
|
+
g = (v - c) / (1 - c);
|
|
84513
|
+
}
|
|
84514
|
+
return [hwb[0], c * 100, g * 100];
|
|
84515
|
+
};
|
|
84516
|
+
convert.apple.rgb = function(apple) {
|
|
84517
|
+
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
84518
|
+
};
|
|
84519
|
+
convert.rgb.apple = function(rgb) {
|
|
84520
|
+
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
|
84521
|
+
};
|
|
84522
|
+
convert.gray.rgb = function(args) {
|
|
84523
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
|
84524
|
+
};
|
|
84525
|
+
convert.gray.hsl = function(args) {
|
|
84526
|
+
return [0, 0, args[0]];
|
|
84527
|
+
};
|
|
84528
|
+
convert.gray.hsv = convert.gray.hsl;
|
|
84529
|
+
convert.gray.hwb = function(gray) {
|
|
84530
|
+
return [0, 100, gray[0]];
|
|
84531
|
+
};
|
|
84532
|
+
convert.gray.cmyk = function(gray) {
|
|
84533
|
+
return [0, 0, 0, gray[0]];
|
|
84534
|
+
};
|
|
84535
|
+
convert.gray.lab = function(gray) {
|
|
84536
|
+
return [gray[0], 0, 0];
|
|
84537
|
+
};
|
|
84538
|
+
convert.gray.hex = function(gray) {
|
|
84539
|
+
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
84540
|
+
const integer = (val << 16) + (val << 8) + val;
|
|
84541
|
+
const string = integer.toString(16).toUpperCase();
|
|
84542
|
+
return "000000".substring(string.length) + string;
|
|
84543
|
+
};
|
|
84544
|
+
convert.rgb.gray = function(rgb) {
|
|
84545
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
84546
|
+
return [val / 255 * 100];
|
|
84547
|
+
};
|
|
84548
|
+
});
|
|
84549
|
+
var require_route = __commonJSMin((exports, module2) => {
|
|
84550
|
+
var conversions = require_conversions();
|
|
84551
|
+
function buildGraph() {
|
|
84552
|
+
const graph = {};
|
|
84553
|
+
const models = Object.keys(conversions);
|
|
84554
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
84555
|
+
graph[models[i]] = {
|
|
84556
|
+
distance: -1,
|
|
84557
|
+
parent: null
|
|
84558
|
+
};
|
|
84559
|
+
}
|
|
84560
|
+
return graph;
|
|
84561
|
+
}
|
|
84562
|
+
function deriveBFS(fromModel) {
|
|
84563
|
+
const graph = buildGraph();
|
|
84564
|
+
const queue = [fromModel];
|
|
84565
|
+
graph[fromModel].distance = 0;
|
|
84566
|
+
while (queue.length) {
|
|
84567
|
+
const current = queue.pop();
|
|
84568
|
+
const adjacents = Object.keys(conversions[current]);
|
|
84569
|
+
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
84570
|
+
const adjacent = adjacents[i];
|
|
84571
|
+
const node = graph[adjacent];
|
|
84572
|
+
if (node.distance === -1) {
|
|
84573
|
+
node.distance = graph[current].distance + 1;
|
|
84574
|
+
node.parent = current;
|
|
84575
|
+
queue.unshift(adjacent);
|
|
84576
|
+
}
|
|
84577
|
+
}
|
|
84578
|
+
}
|
|
84579
|
+
return graph;
|
|
84580
|
+
}
|
|
84581
|
+
function link(from, to) {
|
|
84582
|
+
return function(args) {
|
|
84583
|
+
return to(from(args));
|
|
84584
|
+
};
|
|
84585
|
+
}
|
|
84586
|
+
function wrapConversion(toModel, graph) {
|
|
84587
|
+
const path6 = [graph[toModel].parent, toModel];
|
|
84588
|
+
let fn = conversions[graph[toModel].parent][toModel];
|
|
84589
|
+
let cur = graph[toModel].parent;
|
|
84590
|
+
while (graph[cur].parent) {
|
|
84591
|
+
path6.unshift(graph[cur].parent);
|
|
84592
|
+
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
84593
|
+
cur = graph[cur].parent;
|
|
84594
|
+
}
|
|
84595
|
+
fn.conversion = path6;
|
|
84596
|
+
return fn;
|
|
84597
|
+
}
|
|
84598
|
+
module2.exports = function(fromModel) {
|
|
84599
|
+
const graph = deriveBFS(fromModel);
|
|
84600
|
+
const conversion = {};
|
|
84601
|
+
const models = Object.keys(graph);
|
|
84602
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
84603
|
+
const toModel = models[i];
|
|
84604
|
+
const node = graph[toModel];
|
|
84605
|
+
if (node.parent === null) {
|
|
84606
|
+
continue;
|
|
84607
|
+
}
|
|
84608
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
|
84609
|
+
}
|
|
84610
|
+
return conversion;
|
|
84611
|
+
};
|
|
84612
|
+
});
|
|
84613
|
+
var require_color_convert = __commonJSMin((exports, module2) => {
|
|
84614
|
+
var conversions = require_conversions();
|
|
84615
|
+
var route = require_route();
|
|
84616
|
+
var convert = {};
|
|
84617
|
+
var models = Object.keys(conversions);
|
|
84618
|
+
function wrapRaw(fn) {
|
|
84619
|
+
const wrappedFn = function(...args) {
|
|
84620
|
+
const arg0 = args[0];
|
|
84621
|
+
if (arg0 === void 0 || arg0 === null) {
|
|
84622
|
+
return arg0;
|
|
84623
|
+
}
|
|
84624
|
+
if (arg0.length > 1) {
|
|
84625
|
+
args = arg0;
|
|
84626
|
+
}
|
|
84627
|
+
return fn(args);
|
|
84628
|
+
};
|
|
84629
|
+
if ("conversion" in fn) {
|
|
84630
|
+
wrappedFn.conversion = fn.conversion;
|
|
84631
|
+
}
|
|
84632
|
+
return wrappedFn;
|
|
84633
|
+
}
|
|
84634
|
+
function wrapRounded(fn) {
|
|
84635
|
+
const wrappedFn = function(...args) {
|
|
84636
|
+
const arg0 = args[0];
|
|
84637
|
+
if (arg0 === void 0 || arg0 === null) {
|
|
84638
|
+
return arg0;
|
|
84639
|
+
}
|
|
84640
|
+
if (arg0.length > 1) {
|
|
84641
|
+
args = arg0;
|
|
84642
|
+
}
|
|
84643
|
+
const result = fn(args);
|
|
84644
|
+
if (typeof result === "object") {
|
|
84645
|
+
for (let len = result.length, i = 0; i < len; i++) {
|
|
84646
|
+
result[i] = Math.round(result[i]);
|
|
84647
|
+
}
|
|
84648
|
+
}
|
|
84649
|
+
return result;
|
|
84650
|
+
};
|
|
84651
|
+
if ("conversion" in fn) {
|
|
84652
|
+
wrappedFn.conversion = fn.conversion;
|
|
84653
|
+
}
|
|
84654
|
+
return wrappedFn;
|
|
84655
|
+
}
|
|
84656
|
+
models.forEach((fromModel) => {
|
|
84657
|
+
convert[fromModel] = {};
|
|
84658
|
+
Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
|
|
84659
|
+
Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
|
|
84660
|
+
const routes = route(fromModel);
|
|
84661
|
+
const routeModels = Object.keys(routes);
|
|
84662
|
+
routeModels.forEach((toModel) => {
|
|
84663
|
+
const fn = routes[toModel];
|
|
84664
|
+
convert[fromModel][toModel] = wrapRounded(fn);
|
|
84665
|
+
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
84666
|
+
});
|
|
84667
|
+
});
|
|
84668
|
+
module2.exports = convert;
|
|
84669
|
+
});
|
|
84670
|
+
var require_ansi_styles = __commonJSMin((exports, module2) => {
|
|
84671
|
+
"use strict";
|
|
84672
|
+
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
84673
|
+
const code = fn(...args);
|
|
84674
|
+
return `\x1B[${code + offset}m`;
|
|
84675
|
+
};
|
|
84676
|
+
var wrapAnsi256 = (fn, offset) => (...args) => {
|
|
84677
|
+
const code = fn(...args);
|
|
84678
|
+
return `\x1B[${38 + offset};5;${code}m`;
|
|
84679
|
+
};
|
|
84680
|
+
var wrapAnsi16m = (fn, offset) => (...args) => {
|
|
84681
|
+
const rgb = fn(...args);
|
|
84682
|
+
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
84683
|
+
};
|
|
84684
|
+
var ansi2ansi = (n) => n;
|
|
84685
|
+
var rgb2rgb = (r, g, b) => [r, g, b];
|
|
84686
|
+
var setLazyProperty = (object, property, get4) => {
|
|
84687
|
+
Object.defineProperty(object, property, {
|
|
84688
|
+
get: () => {
|
|
84689
|
+
const value = get4();
|
|
84690
|
+
Object.defineProperty(object, property, {
|
|
84691
|
+
value,
|
|
84692
|
+
enumerable: true,
|
|
84693
|
+
configurable: true
|
|
84694
|
+
});
|
|
84695
|
+
return value;
|
|
84696
|
+
},
|
|
84697
|
+
enumerable: true,
|
|
84698
|
+
configurable: true
|
|
84699
|
+
});
|
|
84700
|
+
};
|
|
84701
|
+
var colorConvert;
|
|
84702
|
+
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
84703
|
+
if (colorConvert === void 0) {
|
|
84704
|
+
colorConvert = require_color_convert();
|
|
84705
|
+
}
|
|
84706
|
+
const offset = isBackground ? 10 : 0;
|
|
84707
|
+
const styles = {};
|
|
84708
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
84709
|
+
const name5 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
84710
|
+
if (sourceSpace === targetSpace) {
|
|
84711
|
+
styles[name5] = wrap(identity, offset);
|
|
84712
|
+
} else if (typeof suite === "object") {
|
|
84713
|
+
styles[name5] = wrap(suite[targetSpace], offset);
|
|
84714
|
+
}
|
|
84715
|
+
}
|
|
84716
|
+
return styles;
|
|
84717
|
+
};
|
|
84718
|
+
function assembleStyles() {
|
|
84719
|
+
const codes = /* @__PURE__ */ new Map();
|
|
84720
|
+
const styles = {
|
|
84721
|
+
modifier: {
|
|
84722
|
+
reset: [0, 0],
|
|
84723
|
+
bold: [1, 22],
|
|
84724
|
+
dim: [2, 22],
|
|
84725
|
+
italic: [3, 23],
|
|
84726
|
+
underline: [4, 24],
|
|
84727
|
+
inverse: [7, 27],
|
|
84728
|
+
hidden: [8, 28],
|
|
84729
|
+
strikethrough: [9, 29]
|
|
84730
|
+
},
|
|
84731
|
+
color: {
|
|
84732
|
+
black: [30, 39],
|
|
84733
|
+
red: [31, 39],
|
|
84734
|
+
green: [32, 39],
|
|
84735
|
+
yellow: [33, 39],
|
|
84736
|
+
blue: [34, 39],
|
|
84737
|
+
magenta: [35, 39],
|
|
84738
|
+
cyan: [36, 39],
|
|
84739
|
+
white: [37, 39],
|
|
84740
|
+
blackBright: [90, 39],
|
|
84741
|
+
redBright: [91, 39],
|
|
84742
|
+
greenBright: [92, 39],
|
|
84743
|
+
yellowBright: [93, 39],
|
|
84744
|
+
blueBright: [94, 39],
|
|
84745
|
+
magentaBright: [95, 39],
|
|
84746
|
+
cyanBright: [96, 39],
|
|
84747
|
+
whiteBright: [97, 39]
|
|
84748
|
+
},
|
|
84749
|
+
bgColor: {
|
|
84750
|
+
bgBlack: [40, 49],
|
|
84751
|
+
bgRed: [41, 49],
|
|
84752
|
+
bgGreen: [42, 49],
|
|
84753
|
+
bgYellow: [43, 49],
|
|
84754
|
+
bgBlue: [44, 49],
|
|
84755
|
+
bgMagenta: [45, 49],
|
|
84756
|
+
bgCyan: [46, 49],
|
|
84757
|
+
bgWhite: [47, 49],
|
|
84758
|
+
bgBlackBright: [100, 49],
|
|
84759
|
+
bgRedBright: [101, 49],
|
|
84760
|
+
bgGreenBright: [102, 49],
|
|
84761
|
+
bgYellowBright: [103, 49],
|
|
84762
|
+
bgBlueBright: [104, 49],
|
|
84763
|
+
bgMagentaBright: [105, 49],
|
|
84764
|
+
bgCyanBright: [106, 49],
|
|
84765
|
+
bgWhiteBright: [107, 49]
|
|
84766
|
+
}
|
|
84767
|
+
};
|
|
84768
|
+
styles.color.gray = styles.color.blackBright;
|
|
84769
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
84770
|
+
styles.color.grey = styles.color.blackBright;
|
|
84771
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
84772
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
84773
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
84774
|
+
styles[styleName] = {
|
|
84775
|
+
open: `\x1B[${style[0]}m`,
|
|
84776
|
+
close: `\x1B[${style[1]}m`
|
|
84777
|
+
};
|
|
84778
|
+
group[styleName] = styles[styleName];
|
|
84779
|
+
codes.set(style[0], style[1]);
|
|
84780
|
+
}
|
|
84781
|
+
Object.defineProperty(styles, groupName, {
|
|
84782
|
+
value: group,
|
|
84783
|
+
enumerable: false
|
|
84784
|
+
});
|
|
84785
|
+
}
|
|
84786
|
+
Object.defineProperty(styles, "codes", {
|
|
84787
|
+
value: codes,
|
|
84788
|
+
enumerable: false
|
|
84789
|
+
});
|
|
84790
|
+
styles.color.close = "\x1B[39m";
|
|
84791
|
+
styles.bgColor.close = "\x1B[49m";
|
|
84792
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
84793
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
84794
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
84795
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
84796
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
84797
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
84798
|
+
return styles;
|
|
84799
|
+
}
|
|
84800
|
+
Object.defineProperty(module2, "exports", {
|
|
84801
|
+
enumerable: true,
|
|
84802
|
+
get: assembleStyles
|
|
84803
|
+
});
|
|
84804
|
+
});
|
|
84805
|
+
var require_wrap_ansi = __commonJSMin((exports, module2) => {
|
|
84806
|
+
"use strict";
|
|
84807
|
+
var stringWidth = require_string_width();
|
|
84808
|
+
var stripAnsi2 = require_strip_ansi2();
|
|
84809
|
+
var ansiStyles = require_ansi_styles();
|
|
84810
|
+
var ESCAPES = /* @__PURE__ */ new Set([
|
|
84811
|
+
"\x1B",
|
|
84812
|
+
"\x9B"
|
|
84813
|
+
]);
|
|
84814
|
+
var END_CODE = 39;
|
|
84815
|
+
var ANSI_ESCAPE_BELL = "\x07";
|
|
84816
|
+
var ANSI_CSI = "[";
|
|
84817
|
+
var ANSI_OSC = "]";
|
|
84818
|
+
var ANSI_SGR_TERMINATOR = "m";
|
|
84819
|
+
var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
84820
|
+
var wrapAnsi = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
84821
|
+
var wrapAnsiHyperlink = (uri) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`;
|
|
84822
|
+
var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
|
|
84823
|
+
var wrapWord = (rows, word, columns) => {
|
|
84824
|
+
const characters = [...word];
|
|
84825
|
+
let isInsideEscape = false;
|
|
84826
|
+
let isInsideLinkEscape = false;
|
|
84827
|
+
let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
|
|
84828
|
+
for (const [index, character] of characters.entries()) {
|
|
84829
|
+
const characterLength = stringWidth(character);
|
|
84830
|
+
if (visible + characterLength <= columns) {
|
|
84831
|
+
rows[rows.length - 1] += character;
|
|
84832
|
+
} else {
|
|
84833
|
+
rows.push(character);
|
|
84834
|
+
visible = 0;
|
|
84835
|
+
}
|
|
84836
|
+
if (ESCAPES.has(character)) {
|
|
84837
|
+
isInsideEscape = true;
|
|
84838
|
+
isInsideLinkEscape = characters.slice(index + 1).join("").startsWith(ANSI_ESCAPE_LINK);
|
|
84839
|
+
}
|
|
84840
|
+
if (isInsideEscape) {
|
|
84841
|
+
if (isInsideLinkEscape) {
|
|
84842
|
+
if (character === ANSI_ESCAPE_BELL) {
|
|
84843
|
+
isInsideEscape = false;
|
|
84844
|
+
isInsideLinkEscape = false;
|
|
84845
|
+
}
|
|
84846
|
+
} else if (character === ANSI_SGR_TERMINATOR) {
|
|
84847
|
+
isInsideEscape = false;
|
|
84848
|
+
}
|
|
84849
|
+
continue;
|
|
84850
|
+
}
|
|
84851
|
+
visible += characterLength;
|
|
84852
|
+
if (visible === columns && index < characters.length - 1) {
|
|
84853
|
+
rows.push("");
|
|
84854
|
+
visible = 0;
|
|
84855
|
+
}
|
|
84856
|
+
}
|
|
84857
|
+
if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
|
|
84858
|
+
rows[rows.length - 2] += rows.pop();
|
|
84859
|
+
}
|
|
84860
|
+
};
|
|
84861
|
+
var stringVisibleTrimSpacesRight = (string) => {
|
|
84862
|
+
const words = string.split(" ");
|
|
84863
|
+
let last = words.length;
|
|
84864
|
+
while (last > 0) {
|
|
84865
|
+
if (stringWidth(words[last - 1]) > 0) {
|
|
84866
|
+
break;
|
|
84867
|
+
}
|
|
84868
|
+
last--;
|
|
84869
|
+
}
|
|
84870
|
+
if (last === words.length) {
|
|
84871
|
+
return string;
|
|
84872
|
+
}
|
|
84873
|
+
return words.slice(0, last).join(" ") + words.slice(last).join("");
|
|
84874
|
+
};
|
|
84875
|
+
var exec = (string, columns, options3 = {}) => {
|
|
84876
|
+
if (options3.trim !== false && string.trim() === "") {
|
|
84877
|
+
return "";
|
|
84878
|
+
}
|
|
84879
|
+
let returnValue = "";
|
|
84880
|
+
let escapeCode;
|
|
84881
|
+
let escapeUrl;
|
|
84882
|
+
const lengths = wordLengths(string);
|
|
84883
|
+
let rows = [""];
|
|
84884
|
+
for (const [index, word] of string.split(" ").entries()) {
|
|
84885
|
+
if (options3.trim !== false) {
|
|
84886
|
+
rows[rows.length - 1] = rows[rows.length - 1].trimStart();
|
|
84887
|
+
}
|
|
84888
|
+
let rowLength = stringWidth(rows[rows.length - 1]);
|
|
84889
|
+
if (index !== 0) {
|
|
84890
|
+
if (rowLength >= columns && (options3.wordWrap === false || options3.trim === false)) {
|
|
84891
|
+
rows.push("");
|
|
84892
|
+
rowLength = 0;
|
|
84893
|
+
}
|
|
84894
|
+
if (rowLength > 0 || options3.trim === false) {
|
|
84895
|
+
rows[rows.length - 1] += " ";
|
|
84896
|
+
rowLength++;
|
|
84897
|
+
}
|
|
84898
|
+
}
|
|
84899
|
+
if (options3.hard && lengths[index] > columns) {
|
|
84900
|
+
const remainingColumns = columns - rowLength;
|
|
84901
|
+
const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
|
|
84902
|
+
const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
|
|
84903
|
+
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
84904
|
+
rows.push("");
|
|
84905
|
+
}
|
|
84906
|
+
wrapWord(rows, word, columns);
|
|
84907
|
+
continue;
|
|
84908
|
+
}
|
|
84909
|
+
if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
|
|
84910
|
+
if (options3.wordWrap === false && rowLength < columns) {
|
|
84911
|
+
wrapWord(rows, word, columns);
|
|
84912
|
+
continue;
|
|
84913
|
+
}
|
|
84914
|
+
rows.push("");
|
|
84915
|
+
}
|
|
84916
|
+
if (rowLength + lengths[index] > columns && options3.wordWrap === false) {
|
|
84917
|
+
wrapWord(rows, word, columns);
|
|
84918
|
+
continue;
|
|
84919
|
+
}
|
|
84920
|
+
rows[rows.length - 1] += word;
|
|
84921
|
+
}
|
|
84922
|
+
if (options3.trim !== false) {
|
|
84923
|
+
rows = rows.map(stringVisibleTrimSpacesRight);
|
|
84924
|
+
}
|
|
84925
|
+
const pre = [...rows.join("\n")];
|
|
84926
|
+
for (const [index, character] of pre.entries()) {
|
|
84927
|
+
returnValue += character;
|
|
84928
|
+
if (ESCAPES.has(character)) {
|
|
84929
|
+
const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join("")) || { groups: {} };
|
|
84930
|
+
if (groups.code !== void 0) {
|
|
84931
|
+
const code2 = Number.parseFloat(groups.code);
|
|
84932
|
+
escapeCode = code2 === END_CODE ? void 0 : code2;
|
|
84933
|
+
} else if (groups.uri !== void 0) {
|
|
84934
|
+
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
84935
|
+
}
|
|
84936
|
+
}
|
|
84937
|
+
const code = ansiStyles.codes.get(Number(escapeCode));
|
|
84938
|
+
if (pre[index + 1] === "\n") {
|
|
84939
|
+
if (escapeUrl) {
|
|
84940
|
+
returnValue += wrapAnsiHyperlink("");
|
|
84941
|
+
}
|
|
84942
|
+
if (escapeCode && code) {
|
|
84943
|
+
returnValue += wrapAnsi(code);
|
|
84944
|
+
}
|
|
84945
|
+
} else if (character === "\n") {
|
|
84946
|
+
if (escapeCode && code) {
|
|
84947
|
+
returnValue += wrapAnsi(escapeCode);
|
|
84948
|
+
}
|
|
84949
|
+
if (escapeUrl) {
|
|
84950
|
+
returnValue += wrapAnsiHyperlink(escapeUrl);
|
|
84951
|
+
}
|
|
84952
|
+
}
|
|
84953
|
+
}
|
|
84954
|
+
return returnValue;
|
|
84955
|
+
};
|
|
84956
|
+
module2.exports = (string, columns, options3) => {
|
|
84957
|
+
return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line3) => exec(line3, columns, options3)).join("\n");
|
|
84958
|
+
};
|
|
84959
|
+
});
|
|
83466
84960
|
var spinners_exports = {};
|
|
83467
84961
|
__export2(spinners_exports, {
|
|
83468
84962
|
aesthetic: () => aesthetic,
|
|
@@ -83489,6 +84983,7 @@ __export2(spinners_exports, {
|
|
|
83489
84983
|
dots10: () => dots10,
|
|
83490
84984
|
dots11: () => dots11,
|
|
83491
84985
|
dots12: () => dots12,
|
|
84986
|
+
dots13: () => dots13,
|
|
83492
84987
|
dots2: () => dots2,
|
|
83493
84988
|
dots3: () => dots3,
|
|
83494
84989
|
dots4: () => dots4,
|
|
@@ -83522,6 +85017,7 @@ __export2(spinners_exports, {
|
|
|
83522
85017
|
point: () => point,
|
|
83523
85018
|
pong: () => pong,
|
|
83524
85019
|
runner: () => runner,
|
|
85020
|
+
sand: () => sand,
|
|
83525
85021
|
shark: () => shark,
|
|
83526
85022
|
simpleDots: () => simpleDots,
|
|
83527
85023
|
simpleDotsScrolling: () => simpleDotsScrolling,
|
|
@@ -83549,7 +85045,7 @@ __export2(spinners_exports, {
|
|
|
83549
85045
|
triangle: () => triangle,
|
|
83550
85046
|
weather: () => weather
|
|
83551
85047
|
});
|
|
83552
|
-
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;
|
|
85048
|
+
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;
|
|
83553
85049
|
var init_spinners = __esmMin(() => {
|
|
83554
85050
|
dots = {
|
|
83555
85051
|
interval: 80,
|
|
@@ -83826,6 +85322,19 @@ var init_spinners = __esmMin(() => {
|
|
|
83826
85322
|
"\u2800\u2840"
|
|
83827
85323
|
]
|
|
83828
85324
|
};
|
|
85325
|
+
dots13 = {
|
|
85326
|
+
interval: 80,
|
|
85327
|
+
frames: [
|
|
85328
|
+
"\u28FC",
|
|
85329
|
+
"\u28F9",
|
|
85330
|
+
"\u28BB",
|
|
85331
|
+
"\u283F",
|
|
85332
|
+
"\u285F",
|
|
85333
|
+
"\u28CF",
|
|
85334
|
+
"\u28E7",
|
|
85335
|
+
"\u28F6"
|
|
85336
|
+
]
|
|
85337
|
+
};
|
|
83829
85338
|
dots8Bit = {
|
|
83830
85339
|
interval: 80,
|
|
83831
85340
|
frames: [
|
|
@@ -84087,6 +85596,46 @@ var init_spinners = __esmMin(() => {
|
|
|
84087
85596
|
"\u28FF"
|
|
84088
85597
|
]
|
|
84089
85598
|
};
|
|
85599
|
+
sand = {
|
|
85600
|
+
interval: 80,
|
|
85601
|
+
frames: [
|
|
85602
|
+
"\u2801",
|
|
85603
|
+
"\u2802",
|
|
85604
|
+
"\u2804",
|
|
85605
|
+
"\u2840",
|
|
85606
|
+
"\u2848",
|
|
85607
|
+
"\u2850",
|
|
85608
|
+
"\u2860",
|
|
85609
|
+
"\u28C0",
|
|
85610
|
+
"\u28C1",
|
|
85611
|
+
"\u28C2",
|
|
85612
|
+
"\u28C4",
|
|
85613
|
+
"\u28CC",
|
|
85614
|
+
"\u28D4",
|
|
85615
|
+
"\u28E4",
|
|
85616
|
+
"\u28E5",
|
|
85617
|
+
"\u28E6",
|
|
85618
|
+
"\u28EE",
|
|
85619
|
+
"\u28F6",
|
|
85620
|
+
"\u28F7",
|
|
85621
|
+
"\u28FF",
|
|
85622
|
+
"\u287F",
|
|
85623
|
+
"\u283F",
|
|
85624
|
+
"\u289F",
|
|
85625
|
+
"\u281F",
|
|
85626
|
+
"\u285B",
|
|
85627
|
+
"\u281B",
|
|
85628
|
+
"\u282B",
|
|
85629
|
+
"\u288B",
|
|
85630
|
+
"\u280B",
|
|
85631
|
+
"\u280D",
|
|
85632
|
+
"\u2849",
|
|
85633
|
+
"\u2809",
|
|
85634
|
+
"\u2811",
|
|
85635
|
+
"\u2821",
|
|
85636
|
+
"\u2881"
|
|
85637
|
+
]
|
|
85638
|
+
};
|
|
84090
85639
|
line = {
|
|
84091
85640
|
interval: 130,
|
|
84092
85641
|
frames: [
|
|
@@ -84977,7 +86526,9 @@ var init_spinners = __esmMin(() => {
|
|
|
84977
86526
|
dots10,
|
|
84978
86527
|
dots11,
|
|
84979
86528
|
dots12,
|
|
86529
|
+
dots13,
|
|
84980
86530
|
dots8Bit,
|
|
86531
|
+
sand,
|
|
84981
86532
|
line,
|
|
84982
86533
|
line2,
|
|
84983
86534
|
pipe,
|
|
@@ -88890,6 +90441,7 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
88890
90441
|
"use strict";
|
|
88891
90442
|
var util = require_readline();
|
|
88892
90443
|
var cliWidth = require_cli_width();
|
|
90444
|
+
var wrapAnsi = require_wrap_ansi();
|
|
88893
90445
|
var stripAnsi2 = require_strip_ansi2();
|
|
88894
90446
|
var stringWidth = require_string_width();
|
|
88895
90447
|
var ora = require_ora2();
|
|
@@ -88984,12 +90536,7 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
88984
90536
|
return width;
|
|
88985
90537
|
}
|
|
88986
90538
|
breakLines(lines, width = this.normalizedCliWidth()) {
|
|
88987
|
-
|
|
88988
|
-
return lines.map((line3) => {
|
|
88989
|
-
const chunk = line3.match(regex2);
|
|
88990
|
-
chunk.pop();
|
|
88991
|
-
return chunk || "";
|
|
88992
|
-
});
|
|
90539
|
+
return lines.map((line3) => wrapAnsi(line3, width, { trim: false, hard: true }).split("\n"));
|
|
88993
90540
|
}
|
|
88994
90541
|
forceLineReturn(content, width = this.normalizedCliWidth()) {
|
|
88995
90542
|
return this.breakLines(content.split("\n"), width).flat().join("\n");
|
|
@@ -89360,7 +90907,7 @@ var require_input = __commonJSMin((exports, module2) => {
|
|
|
89360
90907
|
this.render(isValid5);
|
|
89361
90908
|
}
|
|
89362
90909
|
onKeypress() {
|
|
89363
|
-
this.
|
|
90910
|
+
this.status = "touched";
|
|
89364
90911
|
this.render();
|
|
89365
90912
|
}
|
|
89366
90913
|
};
|
|
@@ -89373,7 +90920,7 @@ var require_number = __commonJSMin((exports, module2) => {
|
|
|
89373
90920
|
filterInput(input) {
|
|
89374
90921
|
if (input && typeof input === "string") {
|
|
89375
90922
|
input = input.trim();
|
|
89376
|
-
const numberMatch = input.match(/(^-?\d
|
|
90923
|
+
const numberMatch = input.match(/(^-?\d+|^-?\d+\.\d*|^\d*\.\d+)(e\d+)?$/);
|
|
89377
90924
|
if (numberMatch) {
|
|
89378
90925
|
return Number(numberMatch[0]);
|
|
89379
90926
|
}
|
|
@@ -143176,6 +144723,7 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
143176
144723
|
return target;
|
|
143177
144724
|
}
|
|
143178
144725
|
function _defineProperty2(obj, key, value) {
|
|
144726
|
+
key = _toPropertyKey2(key);
|
|
143179
144727
|
if (key in obj) {
|
|
143180
144728
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
143181
144729
|
} else {
|
|
@@ -143183,6 +144731,22 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
143183
144731
|
}
|
|
143184
144732
|
return obj;
|
|
143185
144733
|
}
|
|
144734
|
+
function _toPropertyKey2(arg) {
|
|
144735
|
+
var key = _toPrimitive2(arg, "string");
|
|
144736
|
+
return typeof key === "symbol" ? key : String(key);
|
|
144737
|
+
}
|
|
144738
|
+
function _toPrimitive2(input, hint) {
|
|
144739
|
+
if (typeof input !== "object" || input === null)
|
|
144740
|
+
return input;
|
|
144741
|
+
var prim = input[Symbol.toPrimitive];
|
|
144742
|
+
if (prim !== void 0) {
|
|
144743
|
+
var res = prim.call(input, hint || "default");
|
|
144744
|
+
if (typeof res !== "object")
|
|
144745
|
+
return res;
|
|
144746
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
144747
|
+
}
|
|
144748
|
+
return (hint === "string" ? String : Number)(input);
|
|
144749
|
+
}
|
|
143186
144750
|
var MWANewAction2 = async (options3) => {
|
|
143187
144751
|
const {
|
|
143188
144752
|
locale = "zh",
|
|
@@ -143304,6 +144868,7 @@ var require_module = __commonJSMin((exports) => {
|
|
|
143304
144868
|
return target;
|
|
143305
144869
|
}
|
|
143306
144870
|
function _defineProperty2(obj, key, value) {
|
|
144871
|
+
key = _toPropertyKey2(key);
|
|
143307
144872
|
if (key in obj) {
|
|
143308
144873
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
143309
144874
|
} else {
|
|
@@ -143311,6 +144876,22 @@ var require_module = __commonJSMin((exports) => {
|
|
|
143311
144876
|
}
|
|
143312
144877
|
return obj;
|
|
143313
144878
|
}
|
|
144879
|
+
function _toPropertyKey2(arg) {
|
|
144880
|
+
var key = _toPrimitive2(arg, "string");
|
|
144881
|
+
return typeof key === "symbol" ? key : String(key);
|
|
144882
|
+
}
|
|
144883
|
+
function _toPrimitive2(input, hint) {
|
|
144884
|
+
if (typeof input !== "object" || input === null)
|
|
144885
|
+
return input;
|
|
144886
|
+
var prim = input[Symbol.toPrimitive];
|
|
144887
|
+
if (prim !== void 0) {
|
|
144888
|
+
var res = prim.call(input, hint || "default");
|
|
144889
|
+
if (typeof res !== "object")
|
|
144890
|
+
return res;
|
|
144891
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
144892
|
+
}
|
|
144893
|
+
return (hint === "string" ? String : Number)(input);
|
|
144894
|
+
}
|
|
143314
144895
|
var ModuleNewAction2 = async (options3) => {
|
|
143315
144896
|
const {
|
|
143316
144897
|
locale = "zh",
|