@modern-js/dependence-generator 3.7.22 → 3.7.24
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 +1165 -1182
- package/package.json +11 -12
package/dist/index.js
CHANGED
|
@@ -1629,1132 +1629,493 @@ var require_source = __commonJS({
|
|
|
1629
1629
|
}
|
|
1630
1630
|
});
|
|
1631
1631
|
|
|
1632
|
-
// ../../../../node_modules/.pnpm/
|
|
1633
|
-
var
|
|
1634
|
-
"../../../../node_modules/.pnpm/
|
|
1632
|
+
// ../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
1633
|
+
var require_universalify = __commonJS({
|
|
1634
|
+
"../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
1635
1635
|
"use strict";
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
} else if (type === "number" && isFinite(val)) {
|
|
1648
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
1649
|
-
}
|
|
1650
|
-
throw new Error(
|
|
1651
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
1652
|
-
);
|
|
1636
|
+
exports.fromCallback = function(fn) {
|
|
1637
|
+
return Object.defineProperty(function(...args) {
|
|
1638
|
+
if (typeof args[args.length - 1] === "function")
|
|
1639
|
+
fn.apply(this, args);
|
|
1640
|
+
else {
|
|
1641
|
+
return new Promise((resolve, reject) => {
|
|
1642
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
|
1643
|
+
fn.apply(this, args);
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
}, "name", { value: fn.name });
|
|
1653
1647
|
};
|
|
1654
|
-
function
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
case "hrs":
|
|
1685
|
-
case "hr":
|
|
1686
|
-
case "h":
|
|
1687
|
-
return n * h;
|
|
1688
|
-
case "minutes":
|
|
1689
|
-
case "minute":
|
|
1690
|
-
case "mins":
|
|
1691
|
-
case "min":
|
|
1692
|
-
case "m":
|
|
1693
|
-
return n * m;
|
|
1694
|
-
case "seconds":
|
|
1695
|
-
case "second":
|
|
1696
|
-
case "secs":
|
|
1697
|
-
case "sec":
|
|
1698
|
-
case "s":
|
|
1699
|
-
return n * s;
|
|
1700
|
-
case "milliseconds":
|
|
1701
|
-
case "millisecond":
|
|
1702
|
-
case "msecs":
|
|
1703
|
-
case "msec":
|
|
1704
|
-
case "ms":
|
|
1705
|
-
return n;
|
|
1706
|
-
default:
|
|
1707
|
-
return void 0;
|
|
1708
|
-
}
|
|
1648
|
+
exports.fromPromise = function(fn) {
|
|
1649
|
+
return Object.defineProperty(function(...args) {
|
|
1650
|
+
const cb = args[args.length - 1];
|
|
1651
|
+
if (typeof cb !== "function")
|
|
1652
|
+
return fn.apply(this, args);
|
|
1653
|
+
else {
|
|
1654
|
+
args.pop();
|
|
1655
|
+
fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
1656
|
+
}
|
|
1657
|
+
}, "name", { value: fn.name });
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
});
|
|
1661
|
+
|
|
1662
|
+
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
1663
|
+
var require_polyfills = __commonJS({
|
|
1664
|
+
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
1665
|
+
"use strict";
|
|
1666
|
+
var constants = require("constants");
|
|
1667
|
+
var origCwd = process.cwd;
|
|
1668
|
+
var cwd = null;
|
|
1669
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
1670
|
+
process.cwd = function() {
|
|
1671
|
+
if (!cwd)
|
|
1672
|
+
cwd = origCwd.call(process);
|
|
1673
|
+
return cwd;
|
|
1674
|
+
};
|
|
1675
|
+
try {
|
|
1676
|
+
process.cwd();
|
|
1677
|
+
} catch (er) {
|
|
1709
1678
|
}
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
if (msAbs >= m) {
|
|
1719
|
-
return Math.round(ms / m) + "m";
|
|
1720
|
-
}
|
|
1721
|
-
if (msAbs >= s) {
|
|
1722
|
-
return Math.round(ms / s) + "s";
|
|
1723
|
-
}
|
|
1724
|
-
return ms + "ms";
|
|
1679
|
+
if (typeof process.chdir === "function") {
|
|
1680
|
+
chdir = process.chdir;
|
|
1681
|
+
process.chdir = function(d) {
|
|
1682
|
+
cwd = null;
|
|
1683
|
+
chdir.call(process, d);
|
|
1684
|
+
};
|
|
1685
|
+
if (Object.setPrototypeOf)
|
|
1686
|
+
Object.setPrototypeOf(process.chdir, chdir);
|
|
1725
1687
|
}
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
if (msAbs >= h) {
|
|
1732
|
-
return plural(ms, msAbs, h, "hour");
|
|
1688
|
+
var chdir;
|
|
1689
|
+
module2.exports = patch;
|
|
1690
|
+
function patch(fs2) {
|
|
1691
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
1692
|
+
patchLchmod(fs2);
|
|
1733
1693
|
}
|
|
1734
|
-
if (
|
|
1735
|
-
|
|
1694
|
+
if (!fs2.lutimes) {
|
|
1695
|
+
patchLutimes(fs2);
|
|
1736
1696
|
}
|
|
1737
|
-
|
|
1738
|
-
|
|
1697
|
+
fs2.chown = chownFix(fs2.chown);
|
|
1698
|
+
fs2.fchown = chownFix(fs2.fchown);
|
|
1699
|
+
fs2.lchown = chownFix(fs2.lchown);
|
|
1700
|
+
fs2.chmod = chmodFix(fs2.chmod);
|
|
1701
|
+
fs2.fchmod = chmodFix(fs2.fchmod);
|
|
1702
|
+
fs2.lchmod = chmodFix(fs2.lchmod);
|
|
1703
|
+
fs2.chownSync = chownFixSync(fs2.chownSync);
|
|
1704
|
+
fs2.fchownSync = chownFixSync(fs2.fchownSync);
|
|
1705
|
+
fs2.lchownSync = chownFixSync(fs2.lchownSync);
|
|
1706
|
+
fs2.chmodSync = chmodFixSync(fs2.chmodSync);
|
|
1707
|
+
fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
|
|
1708
|
+
fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
|
|
1709
|
+
fs2.stat = statFix(fs2.stat);
|
|
1710
|
+
fs2.fstat = statFix(fs2.fstat);
|
|
1711
|
+
fs2.lstat = statFix(fs2.lstat);
|
|
1712
|
+
fs2.statSync = statFixSync(fs2.statSync);
|
|
1713
|
+
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
1714
|
+
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
1715
|
+
if (fs2.chmod && !fs2.lchmod) {
|
|
1716
|
+
fs2.lchmod = function(path5, mode, cb) {
|
|
1717
|
+
if (cb)
|
|
1718
|
+
process.nextTick(cb);
|
|
1719
|
+
};
|
|
1720
|
+
fs2.lchmodSync = function() {
|
|
1721
|
+
};
|
|
1739
1722
|
}
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
});
|
|
1748
|
-
|
|
1749
|
-
// ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
|
|
1750
|
-
var require_common = __commonJS({
|
|
1751
|
-
"../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
|
|
1752
|
-
"use strict";
|
|
1753
|
-
function setup(env) {
|
|
1754
|
-
createDebug.debug = createDebug;
|
|
1755
|
-
createDebug.default = createDebug;
|
|
1756
|
-
createDebug.coerce = coerce;
|
|
1757
|
-
createDebug.disable = disable;
|
|
1758
|
-
createDebug.enable = enable;
|
|
1759
|
-
createDebug.enabled = enabled;
|
|
1760
|
-
createDebug.humanize = require_ms();
|
|
1761
|
-
createDebug.destroy = destroy;
|
|
1762
|
-
Object.keys(env).forEach((key) => {
|
|
1763
|
-
createDebug[key] = env[key];
|
|
1764
|
-
});
|
|
1765
|
-
createDebug.names = [];
|
|
1766
|
-
createDebug.skips = [];
|
|
1767
|
-
createDebug.formatters = {};
|
|
1768
|
-
function selectColor(namespace) {
|
|
1769
|
-
let hash = 0;
|
|
1770
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
1771
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
1772
|
-
hash |= 0;
|
|
1773
|
-
}
|
|
1774
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
1723
|
+
if (fs2.chown && !fs2.lchown) {
|
|
1724
|
+
fs2.lchown = function(path5, uid, gid, cb) {
|
|
1725
|
+
if (cb)
|
|
1726
|
+
process.nextTick(cb);
|
|
1727
|
+
};
|
|
1728
|
+
fs2.lchownSync = function() {
|
|
1729
|
+
};
|
|
1775
1730
|
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1731
|
+
if (platform === "win32") {
|
|
1732
|
+
fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
|
|
1733
|
+
function rename(from, to, cb) {
|
|
1734
|
+
var start = Date.now();
|
|
1735
|
+
var backoff = 0;
|
|
1736
|
+
fs$rename(from, to, function CB(er) {
|
|
1737
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
1738
|
+
setTimeout(function() {
|
|
1739
|
+
fs2.stat(to, function(stater, st) {
|
|
1740
|
+
if (stater && stater.code === "ENOENT")
|
|
1741
|
+
fs$rename(from, to, CB);
|
|
1742
|
+
else
|
|
1743
|
+
cb(er);
|
|
1744
|
+
});
|
|
1745
|
+
}, backoff);
|
|
1746
|
+
if (backoff < 100)
|
|
1747
|
+
backoff += 10;
|
|
1748
|
+
return;
|
|
1749
|
+
}
|
|
1750
|
+
if (cb)
|
|
1751
|
+
cb(er);
|
|
1752
|
+
});
|
|
1785
1753
|
}
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
if (typeof
|
|
1795
|
-
|
|
1754
|
+
if (Object.setPrototypeOf)
|
|
1755
|
+
Object.setPrototypeOf(rename, fs$rename);
|
|
1756
|
+
return rename;
|
|
1757
|
+
}(fs2.rename);
|
|
1758
|
+
}
|
|
1759
|
+
fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
|
|
1760
|
+
function read(fd, buffer, offset, length, position, callback_) {
|
|
1761
|
+
var callback;
|
|
1762
|
+
if (callback_ && typeof callback_ === "function") {
|
|
1763
|
+
var eagCounter = 0;
|
|
1764
|
+
callback = function(er, _, __) {
|
|
1765
|
+
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
1766
|
+
eagCounter++;
|
|
1767
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
1768
|
+
}
|
|
1769
|
+
callback_.apply(this, arguments);
|
|
1770
|
+
};
|
|
1796
1771
|
}
|
|
1797
|
-
|
|
1798
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
1799
|
-
if (match === "%%") {
|
|
1800
|
-
return "%";
|
|
1801
|
-
}
|
|
1802
|
-
index++;
|
|
1803
|
-
const formatter = createDebug.formatters[format];
|
|
1804
|
-
if (typeof formatter === "function") {
|
|
1805
|
-
const val = args[index];
|
|
1806
|
-
match = formatter.call(self3, val);
|
|
1807
|
-
args.splice(index, 1);
|
|
1808
|
-
index--;
|
|
1809
|
-
}
|
|
1810
|
-
return match;
|
|
1811
|
-
});
|
|
1812
|
-
createDebug.formatArgs.call(self3, args);
|
|
1813
|
-
const logFn = self3.log || createDebug.log;
|
|
1814
|
-
logFn.apply(self3, args);
|
|
1772
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
1815
1773
|
}
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1774
|
+
if (Object.setPrototypeOf)
|
|
1775
|
+
Object.setPrototypeOf(read, fs$read);
|
|
1776
|
+
return read;
|
|
1777
|
+
}(fs2.read);
|
|
1778
|
+
fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : function(fs$readSync) {
|
|
1779
|
+
return function(fd, buffer, offset, length, position) {
|
|
1780
|
+
var eagCounter = 0;
|
|
1781
|
+
while (true) {
|
|
1782
|
+
try {
|
|
1783
|
+
return fs$readSync.call(fs2, fd, buffer, offset, length, position);
|
|
1784
|
+
} catch (er) {
|
|
1785
|
+
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
1786
|
+
eagCounter++;
|
|
1787
|
+
continue;
|
|
1788
|
+
}
|
|
1789
|
+
throw er;
|
|
1827
1790
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
}(fs2.readSync);
|
|
1794
|
+
function patchLchmod(fs3) {
|
|
1795
|
+
fs3.lchmod = function(path5, mode, callback) {
|
|
1796
|
+
fs3.open(
|
|
1797
|
+
path5,
|
|
1798
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
1799
|
+
mode,
|
|
1800
|
+
function(err, fd) {
|
|
1801
|
+
if (err) {
|
|
1802
|
+
if (callback)
|
|
1803
|
+
callback(err);
|
|
1804
|
+
return;
|
|
1805
|
+
}
|
|
1806
|
+
fs3.fchmod(fd, mode, function(err2) {
|
|
1807
|
+
fs3.close(fd, function(err22) {
|
|
1808
|
+
if (callback)
|
|
1809
|
+
callback(err2 || err22);
|
|
1810
|
+
});
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
);
|
|
1814
|
+
};
|
|
1815
|
+
fs3.lchmodSync = function(path5, mode) {
|
|
1816
|
+
var fd = fs3.openSync(path5, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
1817
|
+
var threw = true;
|
|
1818
|
+
var ret;
|
|
1819
|
+
try {
|
|
1820
|
+
ret = fs3.fchmodSync(fd, mode);
|
|
1821
|
+
threw = false;
|
|
1822
|
+
} finally {
|
|
1823
|
+
if (threw) {
|
|
1824
|
+
try {
|
|
1825
|
+
fs3.closeSync(fd);
|
|
1826
|
+
} catch (er) {
|
|
1827
|
+
}
|
|
1828
|
+
} else {
|
|
1829
|
+
fs3.closeSync(fd);
|
|
1831
1830
|
}
|
|
1832
|
-
return enabledCache;
|
|
1833
|
-
},
|
|
1834
|
-
set: (v) => {
|
|
1835
|
-
enableOverride = v;
|
|
1836
1831
|
}
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
createDebug.init(debug);
|
|
1840
|
-
}
|
|
1841
|
-
return debug;
|
|
1842
|
-
}
|
|
1843
|
-
function extend(namespace, delimiter) {
|
|
1844
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
1845
|
-
newDebug.log = this.log;
|
|
1846
|
-
return newDebug;
|
|
1832
|
+
return ret;
|
|
1833
|
+
};
|
|
1847
1834
|
}
|
|
1848
|
-
function
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1835
|
+
function patchLutimes(fs3) {
|
|
1836
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
1837
|
+
fs3.lutimes = function(path5, at, mt, cb) {
|
|
1838
|
+
fs3.open(path5, constants.O_SYMLINK, function(er, fd) {
|
|
1839
|
+
if (er) {
|
|
1840
|
+
if (cb)
|
|
1841
|
+
cb(er);
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
fs3.futimes(fd, at, mt, function(er2) {
|
|
1845
|
+
fs3.close(fd, function(er22) {
|
|
1846
|
+
if (cb)
|
|
1847
|
+
cb(er2 || er22);
|
|
1848
|
+
});
|
|
1849
|
+
});
|
|
1850
|
+
});
|
|
1851
|
+
};
|
|
1852
|
+
fs3.lutimesSync = function(path5, at, mt) {
|
|
1853
|
+
var fd = fs3.openSync(path5, constants.O_SYMLINK);
|
|
1854
|
+
var ret;
|
|
1855
|
+
var threw = true;
|
|
1856
|
+
try {
|
|
1857
|
+
ret = fs3.futimesSync(fd, at, mt);
|
|
1858
|
+
threw = false;
|
|
1859
|
+
} finally {
|
|
1860
|
+
if (threw) {
|
|
1861
|
+
try {
|
|
1862
|
+
fs3.closeSync(fd);
|
|
1863
|
+
} catch (er) {
|
|
1864
|
+
}
|
|
1865
|
+
} else {
|
|
1866
|
+
fs3.closeSync(fd);
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
return ret;
|
|
1870
|
+
};
|
|
1871
|
+
} else if (fs3.futimes) {
|
|
1872
|
+
fs3.lutimes = function(_a2, _b, _c, cb) {
|
|
1873
|
+
if (cb)
|
|
1874
|
+
process.nextTick(cb);
|
|
1875
|
+
};
|
|
1876
|
+
fs3.lutimesSync = function() {
|
|
1877
|
+
};
|
|
1866
1878
|
}
|
|
1867
1879
|
}
|
|
1868
|
-
function
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1880
|
+
function chmodFix(orig) {
|
|
1881
|
+
if (!orig)
|
|
1882
|
+
return orig;
|
|
1883
|
+
return function(target, mode, cb) {
|
|
1884
|
+
return orig.call(fs2, target, mode, function(er) {
|
|
1885
|
+
if (chownErOk(er))
|
|
1886
|
+
er = null;
|
|
1887
|
+
if (cb)
|
|
1888
|
+
cb.apply(this, arguments);
|
|
1889
|
+
});
|
|
1890
|
+
};
|
|
1875
1891
|
}
|
|
1876
|
-
function
|
|
1877
|
-
if (
|
|
1878
|
-
return
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
1888
|
-
if (createDebug.names[i].test(name)) {
|
|
1889
|
-
return true;
|
|
1892
|
+
function chmodFixSync(orig) {
|
|
1893
|
+
if (!orig)
|
|
1894
|
+
return orig;
|
|
1895
|
+
return function(target, mode) {
|
|
1896
|
+
try {
|
|
1897
|
+
return orig.call(fs2, target, mode);
|
|
1898
|
+
} catch (er) {
|
|
1899
|
+
if (!chownErOk(er))
|
|
1900
|
+
throw er;
|
|
1890
1901
|
}
|
|
1891
|
-
}
|
|
1892
|
-
return false;
|
|
1893
|
-
}
|
|
1894
|
-
function toNamespace(regexp) {
|
|
1895
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
1902
|
+
};
|
|
1896
1903
|
}
|
|
1897
|
-
function
|
|
1898
|
-
if (
|
|
1899
|
-
return
|
|
1900
|
-
|
|
1901
|
-
|
|
1904
|
+
function chownFix(orig) {
|
|
1905
|
+
if (!orig)
|
|
1906
|
+
return orig;
|
|
1907
|
+
return function(target, uid, gid, cb) {
|
|
1908
|
+
return orig.call(fs2, target, uid, gid, function(er) {
|
|
1909
|
+
if (chownErOk(er))
|
|
1910
|
+
er = null;
|
|
1911
|
+
if (cb)
|
|
1912
|
+
cb.apply(this, arguments);
|
|
1913
|
+
});
|
|
1914
|
+
};
|
|
1902
1915
|
}
|
|
1903
|
-
function
|
|
1904
|
-
|
|
1916
|
+
function chownFixSync(orig) {
|
|
1917
|
+
if (!orig)
|
|
1918
|
+
return orig;
|
|
1919
|
+
return function(target, uid, gid) {
|
|
1920
|
+
try {
|
|
1921
|
+
return orig.call(fs2, target, uid, gid);
|
|
1922
|
+
} catch (er) {
|
|
1923
|
+
if (!chownErOk(er))
|
|
1924
|
+
throw er;
|
|
1925
|
+
}
|
|
1926
|
+
};
|
|
1905
1927
|
}
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
warned = true;
|
|
1927
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1928
|
-
}
|
|
1929
|
-
};
|
|
1930
|
-
})();
|
|
1931
|
-
exports.colors = [
|
|
1932
|
-
"#0000CC",
|
|
1933
|
-
"#0000FF",
|
|
1934
|
-
"#0033CC",
|
|
1935
|
-
"#0033FF",
|
|
1936
|
-
"#0066CC",
|
|
1937
|
-
"#0066FF",
|
|
1938
|
-
"#0099CC",
|
|
1939
|
-
"#0099FF",
|
|
1940
|
-
"#00CC00",
|
|
1941
|
-
"#00CC33",
|
|
1942
|
-
"#00CC66",
|
|
1943
|
-
"#00CC99",
|
|
1944
|
-
"#00CCCC",
|
|
1945
|
-
"#00CCFF",
|
|
1946
|
-
"#3300CC",
|
|
1947
|
-
"#3300FF",
|
|
1948
|
-
"#3333CC",
|
|
1949
|
-
"#3333FF",
|
|
1950
|
-
"#3366CC",
|
|
1951
|
-
"#3366FF",
|
|
1952
|
-
"#3399CC",
|
|
1953
|
-
"#3399FF",
|
|
1954
|
-
"#33CC00",
|
|
1955
|
-
"#33CC33",
|
|
1956
|
-
"#33CC66",
|
|
1957
|
-
"#33CC99",
|
|
1958
|
-
"#33CCCC",
|
|
1959
|
-
"#33CCFF",
|
|
1960
|
-
"#6600CC",
|
|
1961
|
-
"#6600FF",
|
|
1962
|
-
"#6633CC",
|
|
1963
|
-
"#6633FF",
|
|
1964
|
-
"#66CC00",
|
|
1965
|
-
"#66CC33",
|
|
1966
|
-
"#9900CC",
|
|
1967
|
-
"#9900FF",
|
|
1968
|
-
"#9933CC",
|
|
1969
|
-
"#9933FF",
|
|
1970
|
-
"#99CC00",
|
|
1971
|
-
"#99CC33",
|
|
1972
|
-
"#CC0000",
|
|
1973
|
-
"#CC0033",
|
|
1974
|
-
"#CC0066",
|
|
1975
|
-
"#CC0099",
|
|
1976
|
-
"#CC00CC",
|
|
1977
|
-
"#CC00FF",
|
|
1978
|
-
"#CC3300",
|
|
1979
|
-
"#CC3333",
|
|
1980
|
-
"#CC3366",
|
|
1981
|
-
"#CC3399",
|
|
1982
|
-
"#CC33CC",
|
|
1983
|
-
"#CC33FF",
|
|
1984
|
-
"#CC6600",
|
|
1985
|
-
"#CC6633",
|
|
1986
|
-
"#CC9900",
|
|
1987
|
-
"#CC9933",
|
|
1988
|
-
"#CCCC00",
|
|
1989
|
-
"#CCCC33",
|
|
1990
|
-
"#FF0000",
|
|
1991
|
-
"#FF0033",
|
|
1992
|
-
"#FF0066",
|
|
1993
|
-
"#FF0099",
|
|
1994
|
-
"#FF00CC",
|
|
1995
|
-
"#FF00FF",
|
|
1996
|
-
"#FF3300",
|
|
1997
|
-
"#FF3333",
|
|
1998
|
-
"#FF3366",
|
|
1999
|
-
"#FF3399",
|
|
2000
|
-
"#FF33CC",
|
|
2001
|
-
"#FF33FF",
|
|
2002
|
-
"#FF6600",
|
|
2003
|
-
"#FF6633",
|
|
2004
|
-
"#FF9900",
|
|
2005
|
-
"#FF9933",
|
|
2006
|
-
"#FFCC00",
|
|
2007
|
-
"#FFCC33"
|
|
2008
|
-
];
|
|
2009
|
-
function useColors() {
|
|
2010
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
2011
|
-
return true;
|
|
1928
|
+
function statFix(orig) {
|
|
1929
|
+
if (!orig)
|
|
1930
|
+
return orig;
|
|
1931
|
+
return function(target, options, cb) {
|
|
1932
|
+
if (typeof options === "function") {
|
|
1933
|
+
cb = options;
|
|
1934
|
+
options = null;
|
|
1935
|
+
}
|
|
1936
|
+
function callback(er, stats) {
|
|
1937
|
+
if (stats) {
|
|
1938
|
+
if (stats.uid < 0)
|
|
1939
|
+
stats.uid += 4294967296;
|
|
1940
|
+
if (stats.gid < 0)
|
|
1941
|
+
stats.gid += 4294967296;
|
|
1942
|
+
}
|
|
1943
|
+
if (cb)
|
|
1944
|
+
cb.apply(this, arguments);
|
|
1945
|
+
}
|
|
1946
|
+
return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
|
|
1947
|
+
};
|
|
2012
1948
|
}
|
|
2013
|
-
|
|
1949
|
+
function statFixSync(orig) {
|
|
1950
|
+
if (!orig)
|
|
1951
|
+
return orig;
|
|
1952
|
+
return function(target, options) {
|
|
1953
|
+
var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
|
|
1954
|
+
if (stats) {
|
|
1955
|
+
if (stats.uid < 0)
|
|
1956
|
+
stats.uid += 4294967296;
|
|
1957
|
+
if (stats.gid < 0)
|
|
1958
|
+
stats.gid += 4294967296;
|
|
1959
|
+
}
|
|
1960
|
+
return stats;
|
|
1961
|
+
};
|
|
1962
|
+
}
|
|
1963
|
+
function chownErOk(er) {
|
|
1964
|
+
if (!er)
|
|
1965
|
+
return true;
|
|
1966
|
+
if (er.code === "ENOSYS")
|
|
1967
|
+
return true;
|
|
1968
|
+
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
1969
|
+
if (nonroot) {
|
|
1970
|
+
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
1971
|
+
return true;
|
|
1972
|
+
}
|
|
2014
1973
|
return false;
|
|
2015
1974
|
}
|
|
2016
|
-
let m;
|
|
2017
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
2018
|
-
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
2019
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
2020
|
-
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
2021
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
2022
1975
|
}
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
1976
|
+
}
|
|
1977
|
+
});
|
|
1978
|
+
|
|
1979
|
+
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
1980
|
+
var require_legacy_streams = __commonJS({
|
|
1981
|
+
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
1982
|
+
"use strict";
|
|
1983
|
+
var Stream = require("stream").Stream;
|
|
1984
|
+
module2.exports = legacy;
|
|
1985
|
+
function legacy(fs2) {
|
|
1986
|
+
return {
|
|
1987
|
+
ReadStream,
|
|
1988
|
+
WriteStream
|
|
1989
|
+
};
|
|
1990
|
+
function ReadStream(path5, options) {
|
|
1991
|
+
if (!(this instanceof ReadStream))
|
|
1992
|
+
return new ReadStream(path5, options);
|
|
1993
|
+
Stream.call(this);
|
|
1994
|
+
var self3 = this;
|
|
1995
|
+
this.path = path5;
|
|
1996
|
+
this.fd = null;
|
|
1997
|
+
this.readable = true;
|
|
1998
|
+
this.paused = false;
|
|
1999
|
+
this.flags = "r";
|
|
2000
|
+
this.mode = 438;
|
|
2001
|
+
this.bufferSize = 64 * 1024;
|
|
2002
|
+
options = options || {};
|
|
2003
|
+
var keys = Object.keys(options);
|
|
2004
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2005
|
+
var key = keys[index];
|
|
2006
|
+
this[key] = options[key];
|
|
2035
2007
|
}
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2008
|
+
if (this.encoding)
|
|
2009
|
+
this.setEncoding(this.encoding);
|
|
2010
|
+
if (this.start !== void 0) {
|
|
2011
|
+
if ("number" !== typeof this.start) {
|
|
2012
|
+
throw TypeError("start must be a Number");
|
|
2013
|
+
}
|
|
2014
|
+
if (this.end === void 0) {
|
|
2015
|
+
this.end = Infinity;
|
|
2016
|
+
} else if ("number" !== typeof this.end) {
|
|
2017
|
+
throw TypeError("end must be a Number");
|
|
2018
|
+
}
|
|
2019
|
+
if (this.start > this.end) {
|
|
2020
|
+
throw new Error("start must be <= end");
|
|
2021
|
+
}
|
|
2022
|
+
this.pos = this.start;
|
|
2039
2023
|
}
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
function save(namespaces) {
|
|
2046
|
-
try {
|
|
2047
|
-
if (namespaces) {
|
|
2048
|
-
exports.storage.setItem("debug", namespaces);
|
|
2049
|
-
} else {
|
|
2050
|
-
exports.storage.removeItem("debug");
|
|
2024
|
+
if (this.fd !== null) {
|
|
2025
|
+
process.nextTick(function() {
|
|
2026
|
+
self3._read();
|
|
2027
|
+
});
|
|
2028
|
+
return;
|
|
2051
2029
|
}
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
r = process.env.DEBUG;
|
|
2030
|
+
fs2.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
2031
|
+
if (err) {
|
|
2032
|
+
self3.emit("error", err);
|
|
2033
|
+
self3.readable = false;
|
|
2034
|
+
return;
|
|
2035
|
+
}
|
|
2036
|
+
self3.fd = fd;
|
|
2037
|
+
self3.emit("open", fd);
|
|
2038
|
+
self3._read();
|
|
2039
|
+
});
|
|
2063
2040
|
}
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2041
|
+
function WriteStream(path5, options) {
|
|
2042
|
+
if (!(this instanceof WriteStream))
|
|
2043
|
+
return new WriteStream(path5, options);
|
|
2044
|
+
Stream.call(this);
|
|
2045
|
+
this.path = path5;
|
|
2046
|
+
this.fd = null;
|
|
2047
|
+
this.writable = true;
|
|
2048
|
+
this.flags = "w";
|
|
2049
|
+
this.encoding = "binary";
|
|
2050
|
+
this.mode = 438;
|
|
2051
|
+
this.bytesWritten = 0;
|
|
2052
|
+
options = options || {};
|
|
2053
|
+
var keys = Object.keys(options);
|
|
2054
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2055
|
+
var key = keys[index];
|
|
2056
|
+
this[key] = options[key];
|
|
2057
|
+
}
|
|
2058
|
+
if (this.start !== void 0) {
|
|
2059
|
+
if ("number" !== typeof this.start) {
|
|
2060
|
+
throw TypeError("start must be a Number");
|
|
2061
|
+
}
|
|
2062
|
+
if (this.start < 0) {
|
|
2063
|
+
throw new Error("start must be >= zero");
|
|
2064
|
+
}
|
|
2065
|
+
this.pos = this.start;
|
|
2066
|
+
}
|
|
2067
|
+
this.busy = false;
|
|
2068
|
+
this._queue = [];
|
|
2069
|
+
if (this.fd === null) {
|
|
2070
|
+
this._open = fs2.open;
|
|
2071
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
2072
|
+
this.flush();
|
|
2073
|
+
}
|
|
2070
2074
|
}
|
|
2071
2075
|
}
|
|
2072
|
-
module2.exports = require_common()(exports);
|
|
2073
|
-
var { formatters } = module2.exports;
|
|
2074
|
-
formatters.j = function(v) {
|
|
2075
|
-
try {
|
|
2076
|
-
return JSON.stringify(v);
|
|
2077
|
-
} catch (error) {
|
|
2078
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
2079
|
-
}
|
|
2080
|
-
};
|
|
2081
2076
|
}
|
|
2082
2077
|
});
|
|
2083
2078
|
|
|
2084
|
-
// ../../../../node_modules/.pnpm/
|
|
2085
|
-
var
|
|
2086
|
-
"../../../../node_modules/.pnpm/
|
|
2079
|
+
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
2080
|
+
var require_clone = __commonJS({
|
|
2081
|
+
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
2087
2082
|
"use strict";
|
|
2088
|
-
|
|
2089
|
-
var
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
2102
|
-
try {
|
|
2103
|
-
const supportsColor = require_supports_color();
|
|
2104
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2105
|
-
exports.colors = [
|
|
2106
|
-
20,
|
|
2107
|
-
21,
|
|
2108
|
-
26,
|
|
2109
|
-
27,
|
|
2110
|
-
32,
|
|
2111
|
-
33,
|
|
2112
|
-
38,
|
|
2113
|
-
39,
|
|
2114
|
-
40,
|
|
2115
|
-
41,
|
|
2116
|
-
42,
|
|
2117
|
-
43,
|
|
2118
|
-
44,
|
|
2119
|
-
45,
|
|
2120
|
-
56,
|
|
2121
|
-
57,
|
|
2122
|
-
62,
|
|
2123
|
-
63,
|
|
2124
|
-
68,
|
|
2125
|
-
69,
|
|
2126
|
-
74,
|
|
2127
|
-
75,
|
|
2128
|
-
76,
|
|
2129
|
-
77,
|
|
2130
|
-
78,
|
|
2131
|
-
79,
|
|
2132
|
-
80,
|
|
2133
|
-
81,
|
|
2134
|
-
92,
|
|
2135
|
-
93,
|
|
2136
|
-
98,
|
|
2137
|
-
99,
|
|
2138
|
-
112,
|
|
2139
|
-
113,
|
|
2140
|
-
128,
|
|
2141
|
-
129,
|
|
2142
|
-
134,
|
|
2143
|
-
135,
|
|
2144
|
-
148,
|
|
2145
|
-
149,
|
|
2146
|
-
160,
|
|
2147
|
-
161,
|
|
2148
|
-
162,
|
|
2149
|
-
163,
|
|
2150
|
-
164,
|
|
2151
|
-
165,
|
|
2152
|
-
166,
|
|
2153
|
-
167,
|
|
2154
|
-
168,
|
|
2155
|
-
169,
|
|
2156
|
-
170,
|
|
2157
|
-
171,
|
|
2158
|
-
172,
|
|
2159
|
-
173,
|
|
2160
|
-
178,
|
|
2161
|
-
179,
|
|
2162
|
-
184,
|
|
2163
|
-
185,
|
|
2164
|
-
196,
|
|
2165
|
-
197,
|
|
2166
|
-
198,
|
|
2167
|
-
199,
|
|
2168
|
-
200,
|
|
2169
|
-
201,
|
|
2170
|
-
202,
|
|
2171
|
-
203,
|
|
2172
|
-
204,
|
|
2173
|
-
205,
|
|
2174
|
-
206,
|
|
2175
|
-
207,
|
|
2176
|
-
208,
|
|
2177
|
-
209,
|
|
2178
|
-
214,
|
|
2179
|
-
215,
|
|
2180
|
-
220,
|
|
2181
|
-
221
|
|
2182
|
-
];
|
|
2183
|
-
}
|
|
2184
|
-
} catch (error) {
|
|
2185
|
-
}
|
|
2186
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
2187
|
-
return /^debug_/i.test(key);
|
|
2188
|
-
}).reduce((obj, key) => {
|
|
2189
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
2190
|
-
return k.toUpperCase();
|
|
2083
|
+
module2.exports = clone;
|
|
2084
|
+
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
2085
|
+
return obj.__proto__;
|
|
2086
|
+
};
|
|
2087
|
+
function clone(obj) {
|
|
2088
|
+
if (obj === null || typeof obj !== "object")
|
|
2089
|
+
return obj;
|
|
2090
|
+
if (obj instanceof Object)
|
|
2091
|
+
var copy = { __proto__: getPrototypeOf(obj) };
|
|
2092
|
+
else
|
|
2093
|
+
var copy = /* @__PURE__ */ Object.create(null);
|
|
2094
|
+
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
2095
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
2191
2096
|
});
|
|
2192
|
-
|
|
2193
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
2194
|
-
val = true;
|
|
2195
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
2196
|
-
val = false;
|
|
2197
|
-
} else if (val === "null") {
|
|
2198
|
-
val = null;
|
|
2199
|
-
} else {
|
|
2200
|
-
val = Number(val);
|
|
2201
|
-
}
|
|
2202
|
-
obj[prop] = val;
|
|
2203
|
-
return obj;
|
|
2204
|
-
}, {});
|
|
2205
|
-
function useColors() {
|
|
2206
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
2207
|
-
}
|
|
2208
|
-
function formatArgs(args) {
|
|
2209
|
-
const { namespace: name, useColors: useColors2 } = this;
|
|
2210
|
-
if (useColors2) {
|
|
2211
|
-
const c = this.color;
|
|
2212
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
2213
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
2214
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
2215
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
2216
|
-
} else {
|
|
2217
|
-
args[0] = getDate() + name + " " + args[0];
|
|
2218
|
-
}
|
|
2219
|
-
}
|
|
2220
|
-
function getDate() {
|
|
2221
|
-
if (exports.inspectOpts.hideDate) {
|
|
2222
|
-
return "";
|
|
2223
|
-
}
|
|
2224
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
2225
|
-
}
|
|
2226
|
-
function log(...args) {
|
|
2227
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
2228
|
-
}
|
|
2229
|
-
function save(namespaces) {
|
|
2230
|
-
if (namespaces) {
|
|
2231
|
-
process.env.DEBUG = namespaces;
|
|
2232
|
-
} else {
|
|
2233
|
-
delete process.env.DEBUG;
|
|
2234
|
-
}
|
|
2235
|
-
}
|
|
2236
|
-
function load() {
|
|
2237
|
-
return process.env.DEBUG;
|
|
2238
|
-
}
|
|
2239
|
-
function init(debug) {
|
|
2240
|
-
debug.inspectOpts = {};
|
|
2241
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
2242
|
-
for (let i = 0; i < keys.length; i++) {
|
|
2243
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
2244
|
-
}
|
|
2097
|
+
return copy;
|
|
2245
2098
|
}
|
|
2246
|
-
module2.exports = require_common()(exports);
|
|
2247
|
-
var { formatters } = module2.exports;
|
|
2248
|
-
formatters.o = function(v) {
|
|
2249
|
-
this.inspectOpts.colors = this.useColors;
|
|
2250
|
-
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
2251
|
-
};
|
|
2252
|
-
formatters.O = function(v) {
|
|
2253
|
-
this.inspectOpts.colors = this.useColors;
|
|
2254
|
-
return util.inspect(v, this.inspectOpts);
|
|
2255
|
-
};
|
|
2256
2099
|
}
|
|
2257
2100
|
});
|
|
2258
2101
|
|
|
2259
|
-
// ../../../../node_modules/.pnpm/
|
|
2260
|
-
var
|
|
2261
|
-
"../../../../node_modules/.pnpm/
|
|
2102
|
+
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
2103
|
+
var require_graceful_fs = __commonJS({
|
|
2104
|
+
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
2262
2105
|
"use strict";
|
|
2263
|
-
|
|
2264
|
-
|
|
2106
|
+
var fs2 = require("fs");
|
|
2107
|
+
var polyfills2 = require_polyfills();
|
|
2108
|
+
var legacy = require_legacy_streams();
|
|
2109
|
+
var clone = require_clone();
|
|
2110
|
+
var util = require("util");
|
|
2111
|
+
var gracefulQueue;
|
|
2112
|
+
var previousSymbol;
|
|
2113
|
+
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
2114
|
+
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
2115
|
+
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
2265
2116
|
} else {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
}
|
|
2269
|
-
});
|
|
2270
|
-
|
|
2271
|
-
// ../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
2272
|
-
var require_universalify = __commonJS({
|
|
2273
|
-
"../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
2274
|
-
"use strict";
|
|
2275
|
-
exports.fromCallback = function(fn) {
|
|
2276
|
-
return Object.defineProperty(function(...args) {
|
|
2277
|
-
if (typeof args[args.length - 1] === "function")
|
|
2278
|
-
fn.apply(this, args);
|
|
2279
|
-
else {
|
|
2280
|
-
return new Promise((resolve, reject) => {
|
|
2281
|
-
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
|
2282
|
-
fn.apply(this, args);
|
|
2283
|
-
});
|
|
2284
|
-
}
|
|
2285
|
-
}, "name", { value: fn.name });
|
|
2286
|
-
};
|
|
2287
|
-
exports.fromPromise = function(fn) {
|
|
2288
|
-
return Object.defineProperty(function(...args) {
|
|
2289
|
-
const cb = args[args.length - 1];
|
|
2290
|
-
if (typeof cb !== "function")
|
|
2291
|
-
return fn.apply(this, args);
|
|
2292
|
-
else {
|
|
2293
|
-
args.pop();
|
|
2294
|
-
fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
2295
|
-
}
|
|
2296
|
-
}, "name", { value: fn.name });
|
|
2297
|
-
};
|
|
2298
|
-
}
|
|
2299
|
-
});
|
|
2300
|
-
|
|
2301
|
-
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
2302
|
-
var require_polyfills = __commonJS({
|
|
2303
|
-
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
2304
|
-
"use strict";
|
|
2305
|
-
var constants = require("constants");
|
|
2306
|
-
var origCwd = process.cwd;
|
|
2307
|
-
var cwd = null;
|
|
2308
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
2309
|
-
process.cwd = function() {
|
|
2310
|
-
if (!cwd)
|
|
2311
|
-
cwd = origCwd.call(process);
|
|
2312
|
-
return cwd;
|
|
2313
|
-
};
|
|
2314
|
-
try {
|
|
2315
|
-
process.cwd();
|
|
2316
|
-
} catch (er) {
|
|
2317
|
-
}
|
|
2318
|
-
if (typeof process.chdir === "function") {
|
|
2319
|
-
chdir = process.chdir;
|
|
2320
|
-
process.chdir = function(d) {
|
|
2321
|
-
cwd = null;
|
|
2322
|
-
chdir.call(process, d);
|
|
2323
|
-
};
|
|
2324
|
-
if (Object.setPrototypeOf)
|
|
2325
|
-
Object.setPrototypeOf(process.chdir, chdir);
|
|
2326
|
-
}
|
|
2327
|
-
var chdir;
|
|
2328
|
-
module2.exports = patch;
|
|
2329
|
-
function patch(fs2) {
|
|
2330
|
-
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
2331
|
-
patchLchmod(fs2);
|
|
2332
|
-
}
|
|
2333
|
-
if (!fs2.lutimes) {
|
|
2334
|
-
patchLutimes(fs2);
|
|
2335
|
-
}
|
|
2336
|
-
fs2.chown = chownFix(fs2.chown);
|
|
2337
|
-
fs2.fchown = chownFix(fs2.fchown);
|
|
2338
|
-
fs2.lchown = chownFix(fs2.lchown);
|
|
2339
|
-
fs2.chmod = chmodFix(fs2.chmod);
|
|
2340
|
-
fs2.fchmod = chmodFix(fs2.fchmod);
|
|
2341
|
-
fs2.lchmod = chmodFix(fs2.lchmod);
|
|
2342
|
-
fs2.chownSync = chownFixSync(fs2.chownSync);
|
|
2343
|
-
fs2.fchownSync = chownFixSync(fs2.fchownSync);
|
|
2344
|
-
fs2.lchownSync = chownFixSync(fs2.lchownSync);
|
|
2345
|
-
fs2.chmodSync = chmodFixSync(fs2.chmodSync);
|
|
2346
|
-
fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
|
|
2347
|
-
fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
|
|
2348
|
-
fs2.stat = statFix(fs2.stat);
|
|
2349
|
-
fs2.fstat = statFix(fs2.fstat);
|
|
2350
|
-
fs2.lstat = statFix(fs2.lstat);
|
|
2351
|
-
fs2.statSync = statFixSync(fs2.statSync);
|
|
2352
|
-
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
2353
|
-
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
2354
|
-
if (fs2.chmod && !fs2.lchmod) {
|
|
2355
|
-
fs2.lchmod = function(path5, mode, cb) {
|
|
2356
|
-
if (cb)
|
|
2357
|
-
process.nextTick(cb);
|
|
2358
|
-
};
|
|
2359
|
-
fs2.lchmodSync = function() {
|
|
2360
|
-
};
|
|
2361
|
-
}
|
|
2362
|
-
if (fs2.chown && !fs2.lchown) {
|
|
2363
|
-
fs2.lchown = function(path5, uid, gid, cb) {
|
|
2364
|
-
if (cb)
|
|
2365
|
-
process.nextTick(cb);
|
|
2366
|
-
};
|
|
2367
|
-
fs2.lchownSync = function() {
|
|
2368
|
-
};
|
|
2369
|
-
}
|
|
2370
|
-
if (platform === "win32") {
|
|
2371
|
-
fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
|
|
2372
|
-
function rename(from, to, cb) {
|
|
2373
|
-
var start = Date.now();
|
|
2374
|
-
var backoff = 0;
|
|
2375
|
-
fs$rename(from, to, function CB(er) {
|
|
2376
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
2377
|
-
setTimeout(function() {
|
|
2378
|
-
fs2.stat(to, function(stater, st) {
|
|
2379
|
-
if (stater && stater.code === "ENOENT")
|
|
2380
|
-
fs$rename(from, to, CB);
|
|
2381
|
-
else
|
|
2382
|
-
cb(er);
|
|
2383
|
-
});
|
|
2384
|
-
}, backoff);
|
|
2385
|
-
if (backoff < 100)
|
|
2386
|
-
backoff += 10;
|
|
2387
|
-
return;
|
|
2388
|
-
}
|
|
2389
|
-
if (cb)
|
|
2390
|
-
cb(er);
|
|
2391
|
-
});
|
|
2392
|
-
}
|
|
2393
|
-
if (Object.setPrototypeOf)
|
|
2394
|
-
Object.setPrototypeOf(rename, fs$rename);
|
|
2395
|
-
return rename;
|
|
2396
|
-
}(fs2.rename);
|
|
2397
|
-
}
|
|
2398
|
-
fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
|
|
2399
|
-
function read(fd, buffer, offset, length, position, callback_) {
|
|
2400
|
-
var callback;
|
|
2401
|
-
if (callback_ && typeof callback_ === "function") {
|
|
2402
|
-
var eagCounter = 0;
|
|
2403
|
-
callback = function(er, _, __) {
|
|
2404
|
-
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
2405
|
-
eagCounter++;
|
|
2406
|
-
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
2407
|
-
}
|
|
2408
|
-
callback_.apply(this, arguments);
|
|
2409
|
-
};
|
|
2410
|
-
}
|
|
2411
|
-
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
2412
|
-
}
|
|
2413
|
-
if (Object.setPrototypeOf)
|
|
2414
|
-
Object.setPrototypeOf(read, fs$read);
|
|
2415
|
-
return read;
|
|
2416
|
-
}(fs2.read);
|
|
2417
|
-
fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : function(fs$readSync) {
|
|
2418
|
-
return function(fd, buffer, offset, length, position) {
|
|
2419
|
-
var eagCounter = 0;
|
|
2420
|
-
while (true) {
|
|
2421
|
-
try {
|
|
2422
|
-
return fs$readSync.call(fs2, fd, buffer, offset, length, position);
|
|
2423
|
-
} catch (er) {
|
|
2424
|
-
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
2425
|
-
eagCounter++;
|
|
2426
|
-
continue;
|
|
2427
|
-
}
|
|
2428
|
-
throw er;
|
|
2429
|
-
}
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
|
-
}(fs2.readSync);
|
|
2433
|
-
function patchLchmod(fs3) {
|
|
2434
|
-
fs3.lchmod = function(path5, mode, callback) {
|
|
2435
|
-
fs3.open(
|
|
2436
|
-
path5,
|
|
2437
|
-
constants.O_WRONLY | constants.O_SYMLINK,
|
|
2438
|
-
mode,
|
|
2439
|
-
function(err, fd) {
|
|
2440
|
-
if (err) {
|
|
2441
|
-
if (callback)
|
|
2442
|
-
callback(err);
|
|
2443
|
-
return;
|
|
2444
|
-
}
|
|
2445
|
-
fs3.fchmod(fd, mode, function(err2) {
|
|
2446
|
-
fs3.close(fd, function(err22) {
|
|
2447
|
-
if (callback)
|
|
2448
|
-
callback(err2 || err22);
|
|
2449
|
-
});
|
|
2450
|
-
});
|
|
2451
|
-
}
|
|
2452
|
-
);
|
|
2453
|
-
};
|
|
2454
|
-
fs3.lchmodSync = function(path5, mode) {
|
|
2455
|
-
var fd = fs3.openSync(path5, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
2456
|
-
var threw = true;
|
|
2457
|
-
var ret;
|
|
2458
|
-
try {
|
|
2459
|
-
ret = fs3.fchmodSync(fd, mode);
|
|
2460
|
-
threw = false;
|
|
2461
|
-
} finally {
|
|
2462
|
-
if (threw) {
|
|
2463
|
-
try {
|
|
2464
|
-
fs3.closeSync(fd);
|
|
2465
|
-
} catch (er) {
|
|
2466
|
-
}
|
|
2467
|
-
} else {
|
|
2468
|
-
fs3.closeSync(fd);
|
|
2469
|
-
}
|
|
2470
|
-
}
|
|
2471
|
-
return ret;
|
|
2472
|
-
};
|
|
2473
|
-
}
|
|
2474
|
-
function patchLutimes(fs3) {
|
|
2475
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
2476
|
-
fs3.lutimes = function(path5, at, mt, cb) {
|
|
2477
|
-
fs3.open(path5, constants.O_SYMLINK, function(er, fd) {
|
|
2478
|
-
if (er) {
|
|
2479
|
-
if (cb)
|
|
2480
|
-
cb(er);
|
|
2481
|
-
return;
|
|
2482
|
-
}
|
|
2483
|
-
fs3.futimes(fd, at, mt, function(er2) {
|
|
2484
|
-
fs3.close(fd, function(er22) {
|
|
2485
|
-
if (cb)
|
|
2486
|
-
cb(er2 || er22);
|
|
2487
|
-
});
|
|
2488
|
-
});
|
|
2489
|
-
});
|
|
2490
|
-
};
|
|
2491
|
-
fs3.lutimesSync = function(path5, at, mt) {
|
|
2492
|
-
var fd = fs3.openSync(path5, constants.O_SYMLINK);
|
|
2493
|
-
var ret;
|
|
2494
|
-
var threw = true;
|
|
2495
|
-
try {
|
|
2496
|
-
ret = fs3.futimesSync(fd, at, mt);
|
|
2497
|
-
threw = false;
|
|
2498
|
-
} finally {
|
|
2499
|
-
if (threw) {
|
|
2500
|
-
try {
|
|
2501
|
-
fs3.closeSync(fd);
|
|
2502
|
-
} catch (er) {
|
|
2503
|
-
}
|
|
2504
|
-
} else {
|
|
2505
|
-
fs3.closeSync(fd);
|
|
2506
|
-
}
|
|
2507
|
-
}
|
|
2508
|
-
return ret;
|
|
2509
|
-
};
|
|
2510
|
-
} else if (fs3.futimes) {
|
|
2511
|
-
fs3.lutimes = function(_a2, _b, _c, cb) {
|
|
2512
|
-
if (cb)
|
|
2513
|
-
process.nextTick(cb);
|
|
2514
|
-
};
|
|
2515
|
-
fs3.lutimesSync = function() {
|
|
2516
|
-
};
|
|
2517
|
-
}
|
|
2518
|
-
}
|
|
2519
|
-
function chmodFix(orig) {
|
|
2520
|
-
if (!orig)
|
|
2521
|
-
return orig;
|
|
2522
|
-
return function(target, mode, cb) {
|
|
2523
|
-
return orig.call(fs2, target, mode, function(er) {
|
|
2524
|
-
if (chownErOk(er))
|
|
2525
|
-
er = null;
|
|
2526
|
-
if (cb)
|
|
2527
|
-
cb.apply(this, arguments);
|
|
2528
|
-
});
|
|
2529
|
-
};
|
|
2530
|
-
}
|
|
2531
|
-
function chmodFixSync(orig) {
|
|
2532
|
-
if (!orig)
|
|
2533
|
-
return orig;
|
|
2534
|
-
return function(target, mode) {
|
|
2535
|
-
try {
|
|
2536
|
-
return orig.call(fs2, target, mode);
|
|
2537
|
-
} catch (er) {
|
|
2538
|
-
if (!chownErOk(er))
|
|
2539
|
-
throw er;
|
|
2540
|
-
}
|
|
2541
|
-
};
|
|
2542
|
-
}
|
|
2543
|
-
function chownFix(orig) {
|
|
2544
|
-
if (!orig)
|
|
2545
|
-
return orig;
|
|
2546
|
-
return function(target, uid, gid, cb) {
|
|
2547
|
-
return orig.call(fs2, target, uid, gid, function(er) {
|
|
2548
|
-
if (chownErOk(er))
|
|
2549
|
-
er = null;
|
|
2550
|
-
if (cb)
|
|
2551
|
-
cb.apply(this, arguments);
|
|
2552
|
-
});
|
|
2553
|
-
};
|
|
2554
|
-
}
|
|
2555
|
-
function chownFixSync(orig) {
|
|
2556
|
-
if (!orig)
|
|
2557
|
-
return orig;
|
|
2558
|
-
return function(target, uid, gid) {
|
|
2559
|
-
try {
|
|
2560
|
-
return orig.call(fs2, target, uid, gid);
|
|
2561
|
-
} catch (er) {
|
|
2562
|
-
if (!chownErOk(er))
|
|
2563
|
-
throw er;
|
|
2564
|
-
}
|
|
2565
|
-
};
|
|
2566
|
-
}
|
|
2567
|
-
function statFix(orig) {
|
|
2568
|
-
if (!orig)
|
|
2569
|
-
return orig;
|
|
2570
|
-
return function(target, options, cb) {
|
|
2571
|
-
if (typeof options === "function") {
|
|
2572
|
-
cb = options;
|
|
2573
|
-
options = null;
|
|
2574
|
-
}
|
|
2575
|
-
function callback(er, stats) {
|
|
2576
|
-
if (stats) {
|
|
2577
|
-
if (stats.uid < 0)
|
|
2578
|
-
stats.uid += 4294967296;
|
|
2579
|
-
if (stats.gid < 0)
|
|
2580
|
-
stats.gid += 4294967296;
|
|
2581
|
-
}
|
|
2582
|
-
if (cb)
|
|
2583
|
-
cb.apply(this, arguments);
|
|
2584
|
-
}
|
|
2585
|
-
return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
|
|
2586
|
-
};
|
|
2587
|
-
}
|
|
2588
|
-
function statFixSync(orig) {
|
|
2589
|
-
if (!orig)
|
|
2590
|
-
return orig;
|
|
2591
|
-
return function(target, options) {
|
|
2592
|
-
var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
|
|
2593
|
-
if (stats) {
|
|
2594
|
-
if (stats.uid < 0)
|
|
2595
|
-
stats.uid += 4294967296;
|
|
2596
|
-
if (stats.gid < 0)
|
|
2597
|
-
stats.gid += 4294967296;
|
|
2598
|
-
}
|
|
2599
|
-
return stats;
|
|
2600
|
-
};
|
|
2601
|
-
}
|
|
2602
|
-
function chownErOk(er) {
|
|
2603
|
-
if (!er)
|
|
2604
|
-
return true;
|
|
2605
|
-
if (er.code === "ENOSYS")
|
|
2606
|
-
return true;
|
|
2607
|
-
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
2608
|
-
if (nonroot) {
|
|
2609
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
2610
|
-
return true;
|
|
2611
|
-
}
|
|
2612
|
-
return false;
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
}
|
|
2616
|
-
});
|
|
2617
|
-
|
|
2618
|
-
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
2619
|
-
var require_legacy_streams = __commonJS({
|
|
2620
|
-
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
2621
|
-
"use strict";
|
|
2622
|
-
var Stream = require("stream").Stream;
|
|
2623
|
-
module2.exports = legacy;
|
|
2624
|
-
function legacy(fs2) {
|
|
2625
|
-
return {
|
|
2626
|
-
ReadStream,
|
|
2627
|
-
WriteStream
|
|
2628
|
-
};
|
|
2629
|
-
function ReadStream(path5, options) {
|
|
2630
|
-
if (!(this instanceof ReadStream))
|
|
2631
|
-
return new ReadStream(path5, options);
|
|
2632
|
-
Stream.call(this);
|
|
2633
|
-
var self3 = this;
|
|
2634
|
-
this.path = path5;
|
|
2635
|
-
this.fd = null;
|
|
2636
|
-
this.readable = true;
|
|
2637
|
-
this.paused = false;
|
|
2638
|
-
this.flags = "r";
|
|
2639
|
-
this.mode = 438;
|
|
2640
|
-
this.bufferSize = 64 * 1024;
|
|
2641
|
-
options = options || {};
|
|
2642
|
-
var keys = Object.keys(options);
|
|
2643
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2644
|
-
var key = keys[index];
|
|
2645
|
-
this[key] = options[key];
|
|
2646
|
-
}
|
|
2647
|
-
if (this.encoding)
|
|
2648
|
-
this.setEncoding(this.encoding);
|
|
2649
|
-
if (this.start !== void 0) {
|
|
2650
|
-
if ("number" !== typeof this.start) {
|
|
2651
|
-
throw TypeError("start must be a Number");
|
|
2652
|
-
}
|
|
2653
|
-
if (this.end === void 0) {
|
|
2654
|
-
this.end = Infinity;
|
|
2655
|
-
} else if ("number" !== typeof this.end) {
|
|
2656
|
-
throw TypeError("end must be a Number");
|
|
2657
|
-
}
|
|
2658
|
-
if (this.start > this.end) {
|
|
2659
|
-
throw new Error("start must be <= end");
|
|
2660
|
-
}
|
|
2661
|
-
this.pos = this.start;
|
|
2662
|
-
}
|
|
2663
|
-
if (this.fd !== null) {
|
|
2664
|
-
process.nextTick(function() {
|
|
2665
|
-
self3._read();
|
|
2666
|
-
});
|
|
2667
|
-
return;
|
|
2668
|
-
}
|
|
2669
|
-
fs2.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
2670
|
-
if (err) {
|
|
2671
|
-
self3.emit("error", err);
|
|
2672
|
-
self3.readable = false;
|
|
2673
|
-
return;
|
|
2674
|
-
}
|
|
2675
|
-
self3.fd = fd;
|
|
2676
|
-
self3.emit("open", fd);
|
|
2677
|
-
self3._read();
|
|
2678
|
-
});
|
|
2679
|
-
}
|
|
2680
|
-
function WriteStream(path5, options) {
|
|
2681
|
-
if (!(this instanceof WriteStream))
|
|
2682
|
-
return new WriteStream(path5, options);
|
|
2683
|
-
Stream.call(this);
|
|
2684
|
-
this.path = path5;
|
|
2685
|
-
this.fd = null;
|
|
2686
|
-
this.writable = true;
|
|
2687
|
-
this.flags = "w";
|
|
2688
|
-
this.encoding = "binary";
|
|
2689
|
-
this.mode = 438;
|
|
2690
|
-
this.bytesWritten = 0;
|
|
2691
|
-
options = options || {};
|
|
2692
|
-
var keys = Object.keys(options);
|
|
2693
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2694
|
-
var key = keys[index];
|
|
2695
|
-
this[key] = options[key];
|
|
2696
|
-
}
|
|
2697
|
-
if (this.start !== void 0) {
|
|
2698
|
-
if ("number" !== typeof this.start) {
|
|
2699
|
-
throw TypeError("start must be a Number");
|
|
2700
|
-
}
|
|
2701
|
-
if (this.start < 0) {
|
|
2702
|
-
throw new Error("start must be >= zero");
|
|
2703
|
-
}
|
|
2704
|
-
this.pos = this.start;
|
|
2705
|
-
}
|
|
2706
|
-
this.busy = false;
|
|
2707
|
-
this._queue = [];
|
|
2708
|
-
if (this.fd === null) {
|
|
2709
|
-
this._open = fs2.open;
|
|
2710
|
-
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
2711
|
-
this.flush();
|
|
2712
|
-
}
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
});
|
|
2717
|
-
|
|
2718
|
-
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
2719
|
-
var require_clone = __commonJS({
|
|
2720
|
-
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
2721
|
-
"use strict";
|
|
2722
|
-
module2.exports = clone;
|
|
2723
|
-
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
2724
|
-
return obj.__proto__;
|
|
2725
|
-
};
|
|
2726
|
-
function clone(obj) {
|
|
2727
|
-
if (obj === null || typeof obj !== "object")
|
|
2728
|
-
return obj;
|
|
2729
|
-
if (obj instanceof Object)
|
|
2730
|
-
var copy = { __proto__: getPrototypeOf(obj) };
|
|
2731
|
-
else
|
|
2732
|
-
var copy = /* @__PURE__ */ Object.create(null);
|
|
2733
|
-
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
2734
|
-
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
2735
|
-
});
|
|
2736
|
-
return copy;
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
});
|
|
2740
|
-
|
|
2741
|
-
// ../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
2742
|
-
var require_graceful_fs = __commonJS({
|
|
2743
|
-
"../../../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
2744
|
-
"use strict";
|
|
2745
|
-
var fs2 = require("fs");
|
|
2746
|
-
var polyfills2 = require_polyfills();
|
|
2747
|
-
var legacy = require_legacy_streams();
|
|
2748
|
-
var clone = require_clone();
|
|
2749
|
-
var util = require("util");
|
|
2750
|
-
var gracefulQueue;
|
|
2751
|
-
var previousSymbol;
|
|
2752
|
-
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
2753
|
-
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
2754
|
-
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
2755
|
-
} else {
|
|
2756
|
-
gracefulQueue = "___graceful-fs.queue";
|
|
2757
|
-
previousSymbol = "___graceful-fs.previous";
|
|
2117
|
+
gracefulQueue = "___graceful-fs.queue";
|
|
2118
|
+
previousSymbol = "___graceful-fs.previous";
|
|
2758
2119
|
}
|
|
2759
2120
|
function noop() {
|
|
2760
2121
|
}
|
|
@@ -4514,37 +3875,6 @@ var require_ensure = __commonJS({
|
|
|
4514
3875
|
}
|
|
4515
3876
|
});
|
|
4516
3877
|
|
|
4517
|
-
// ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
4518
|
-
var require_universalify2 = __commonJS({
|
|
4519
|
-
"../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
4520
|
-
"use strict";
|
|
4521
|
-
exports.fromCallback = function(fn) {
|
|
4522
|
-
return Object.defineProperty(function(...args) {
|
|
4523
|
-
if (typeof args[args.length - 1] === "function")
|
|
4524
|
-
fn.apply(this, args);
|
|
4525
|
-
else {
|
|
4526
|
-
return new Promise((resolve, reject) => {
|
|
4527
|
-
fn.call(
|
|
4528
|
-
this,
|
|
4529
|
-
...args,
|
|
4530
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
|
4531
|
-
);
|
|
4532
|
-
});
|
|
4533
|
-
}
|
|
4534
|
-
}, "name", { value: fn.name });
|
|
4535
|
-
};
|
|
4536
|
-
exports.fromPromise = function(fn) {
|
|
4537
|
-
return Object.defineProperty(function(...args) {
|
|
4538
|
-
const cb = args[args.length - 1];
|
|
4539
|
-
if (typeof cb !== "function")
|
|
4540
|
-
return fn.apply(this, args);
|
|
4541
|
-
else
|
|
4542
|
-
fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
|
|
4543
|
-
}, "name", { value: fn.name });
|
|
4544
|
-
};
|
|
4545
|
-
}
|
|
4546
|
-
});
|
|
4547
|
-
|
|
4548
3878
|
// ../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
|
4549
3879
|
var require_utils2 = __commonJS({
|
|
4550
3880
|
"../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
@@ -4573,7 +3903,7 @@ var require_jsonfile = __commonJS({
|
|
|
4573
3903
|
} catch (_) {
|
|
4574
3904
|
_fs = require("fs");
|
|
4575
3905
|
}
|
|
4576
|
-
var universalify =
|
|
3906
|
+
var universalify = require_universalify();
|
|
4577
3907
|
var { stringify: stringify2, stripBom } = require_utils2();
|
|
4578
3908
|
function _readFile(_0) {
|
|
4579
3909
|
return __async(this, arguments, function* (file, options = {}) {
|
|
@@ -5148,9 +4478,9 @@ var require_path_key = __commonJS({
|
|
|
5148
4478
|
}
|
|
5149
4479
|
});
|
|
5150
4480
|
|
|
5151
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4481
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
5152
4482
|
var require_resolveCommand = __commonJS({
|
|
5153
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4483
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
5154
4484
|
"use strict";
|
|
5155
4485
|
var path5 = require("path");
|
|
5156
4486
|
var which = require_which();
|
|
@@ -5190,9 +4520,9 @@ var require_resolveCommand = __commonJS({
|
|
|
5190
4520
|
}
|
|
5191
4521
|
});
|
|
5192
4522
|
|
|
5193
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4523
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
5194
4524
|
var require_escape = __commonJS({
|
|
5195
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4525
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
|
|
5196
4526
|
"use strict";
|
|
5197
4527
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
5198
4528
|
function escapeCommand(arg) {
|
|
@@ -5201,8 +4531,8 @@ var require_escape = __commonJS({
|
|
|
5201
4531
|
}
|
|
5202
4532
|
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
5203
4533
|
arg = `${arg}`;
|
|
5204
|
-
arg = arg.replace(/(
|
|
5205
|
-
arg = arg.replace(/(
|
|
4534
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
4535
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
5206
4536
|
arg = `"${arg}"`;
|
|
5207
4537
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
5208
4538
|
if (doubleEscapeMetaChars) {
|
|
@@ -5243,9 +4573,9 @@ var require_shebang_command = __commonJS({
|
|
|
5243
4573
|
}
|
|
5244
4574
|
});
|
|
5245
4575
|
|
|
5246
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4576
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
5247
4577
|
var require_readShebang = __commonJS({
|
|
5248
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4578
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
|
|
5249
4579
|
"use strict";
|
|
5250
4580
|
var fs2 = require("fs");
|
|
5251
4581
|
var shebangCommand = require_shebang_command();
|
|
@@ -5265,9 +4595,9 @@ var require_readShebang = __commonJS({
|
|
|
5265
4595
|
}
|
|
5266
4596
|
});
|
|
5267
4597
|
|
|
5268
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4598
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
5269
4599
|
var require_parse = __commonJS({
|
|
5270
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4600
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
5271
4601
|
"use strict";
|
|
5272
4602
|
var path5 = require("path");
|
|
5273
4603
|
var resolveCommand = require_resolveCommand();
|
|
@@ -5327,9 +4657,9 @@ var require_parse = __commonJS({
|
|
|
5327
4657
|
}
|
|
5328
4658
|
});
|
|
5329
4659
|
|
|
5330
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4660
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
5331
4661
|
var require_enoent = __commonJS({
|
|
5332
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4662
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
|
|
5333
4663
|
"use strict";
|
|
5334
4664
|
var isWin = process.platform === "win32";
|
|
5335
4665
|
function notFoundError(original, syscall) {
|
|
@@ -5348,7 +4678,7 @@ var require_enoent = __commonJS({
|
|
|
5348
4678
|
const originalEmit = cp.emit;
|
|
5349
4679
|
cp.emit = function(name, arg1) {
|
|
5350
4680
|
if (name === "exit") {
|
|
5351
|
-
const err = verifyENOENT(arg1, parsed
|
|
4681
|
+
const err = verifyENOENT(arg1, parsed);
|
|
5352
4682
|
if (err) {
|
|
5353
4683
|
return originalEmit.call(cp, "error", err);
|
|
5354
4684
|
}
|
|
@@ -5377,9 +4707,9 @@ var require_enoent = __commonJS({
|
|
|
5377
4707
|
}
|
|
5378
4708
|
});
|
|
5379
4709
|
|
|
5380
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4710
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
5381
4711
|
var require_cross_spawn = __commonJS({
|
|
5382
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4712
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module2) {
|
|
5383
4713
|
"use strict";
|
|
5384
4714
|
var cp = require("child_process");
|
|
5385
4715
|
var parse3 = require_parse();
|
|
@@ -11802,7 +11132,7 @@ var require_inherits = __commonJS({
|
|
|
11802
11132
|
});
|
|
11803
11133
|
|
|
11804
11134
|
// ../../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
|
|
11805
|
-
var
|
|
11135
|
+
var require_node = __commonJS({
|
|
11806
11136
|
"../../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js"(exports, module2) {
|
|
11807
11137
|
"use strict";
|
|
11808
11138
|
module2.exports = require("util").deprecate;
|
|
@@ -11825,7 +11155,7 @@ var require_stream_writable = __commonJS({
|
|
|
11825
11155
|
var Duplex;
|
|
11826
11156
|
Writable.WritableState = WritableState;
|
|
11827
11157
|
var internalUtil = {
|
|
11828
|
-
deprecate:
|
|
11158
|
+
deprecate: require_node()
|
|
11829
11159
|
};
|
|
11830
11160
|
var Stream = require_stream2();
|
|
11831
11161
|
var Buffer2 = require("buffer").Buffer;
|
|
@@ -54374,7 +53704,7 @@ var require_util3 = __commonJS({
|
|
|
54374
53704
|
});
|
|
54375
53705
|
|
|
54376
53706
|
// ../../../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js
|
|
54377
|
-
var
|
|
53707
|
+
var require_src = __commonJS({
|
|
54378
53708
|
"../../../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js"(exports, module2) {
|
|
54379
53709
|
"use strict";
|
|
54380
53710
|
var DEFAULT_MIN_MERGE = 32;
|
|
@@ -55097,7 +54427,7 @@ var require_has_own_prop = __commonJS({
|
|
|
55097
54427
|
});
|
|
55098
54428
|
|
|
55099
54429
|
// ../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/common.js
|
|
55100
|
-
var
|
|
54430
|
+
var require_common = __commonJS({
|
|
55101
54431
|
"../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/common.js"(exports, module2) {
|
|
55102
54432
|
"use strict";
|
|
55103
54433
|
var hasOwnProperty4 = require_has_own_prop();
|
|
@@ -55250,14 +54580,14 @@ var require_array = __commonJS({
|
|
|
55250
54580
|
"../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/array.js"(exports, module2) {
|
|
55251
54581
|
"use strict";
|
|
55252
54582
|
var { isArray: isArray3 } = require_util3();
|
|
55253
|
-
var { sort } =
|
|
54583
|
+
var { sort } = require_src();
|
|
55254
54584
|
var {
|
|
55255
54585
|
SYMBOL_PREFIXES,
|
|
55256
54586
|
UNDEFINED,
|
|
55257
54587
|
symbol,
|
|
55258
54588
|
copy_comments,
|
|
55259
54589
|
swap_comments
|
|
55260
|
-
} =
|
|
54590
|
+
} = require_common();
|
|
55261
54591
|
var reverse_comments = (array) => {
|
|
55262
54592
|
const { length } = array;
|
|
55263
54593
|
let i = 0;
|
|
@@ -55441,7 +54771,7 @@ var require_parse3 = __commonJS({
|
|
|
55441
54771
|
UNDEFINED,
|
|
55442
54772
|
define: define2,
|
|
55443
54773
|
assign_non_prop_comments
|
|
55444
|
-
} =
|
|
54774
|
+
} = require_common();
|
|
55445
54775
|
var tokenize = (code) => esprima.tokenize(code, {
|
|
55446
54776
|
comment: true,
|
|
55447
54777
|
loc: true
|
|
@@ -55778,7 +55108,7 @@ var require_stringify = __commonJS({
|
|
|
55778
55108
|
COMMA,
|
|
55779
55109
|
EMPTY,
|
|
55780
55110
|
UNDEFINED
|
|
55781
|
-
} =
|
|
55111
|
+
} = require_common();
|
|
55782
55112
|
var ESCAPABLE = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
|
55783
55113
|
var SPACE = " ";
|
|
55784
55114
|
var LF = "\n";
|
|
@@ -55951,13 +55281,13 @@ var require_stringify = __commonJS({
|
|
|
55951
55281
|
});
|
|
55952
55282
|
|
|
55953
55283
|
// ../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/index.js
|
|
55954
|
-
var
|
|
55284
|
+
var require_src2 = __commonJS({
|
|
55955
55285
|
"../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/index.js"(exports, module2) {
|
|
55956
55286
|
"use strict";
|
|
55957
55287
|
var { parse: parse3, tokenize } = require_parse3();
|
|
55958
55288
|
var stringify2 = require_stringify();
|
|
55959
55289
|
var { CommentArray } = require_array();
|
|
55960
|
-
var { assign } =
|
|
55290
|
+
var { assign } = require_common();
|
|
55961
55291
|
module2.exports = {
|
|
55962
55292
|
parse: parse3,
|
|
55963
55293
|
stringify: stringify2,
|
|
@@ -64151,6 +63481,659 @@ var require_lodash7 = __commonJS({
|
|
|
64151
63481
|
}
|
|
64152
63482
|
});
|
|
64153
63483
|
|
|
63484
|
+
// ../../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
|
|
63485
|
+
var require_ms = __commonJS({
|
|
63486
|
+
"../../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
|
|
63487
|
+
"use strict";
|
|
63488
|
+
var s = 1e3;
|
|
63489
|
+
var m = s * 60;
|
|
63490
|
+
var h = m * 60;
|
|
63491
|
+
var d = h * 24;
|
|
63492
|
+
var w = d * 7;
|
|
63493
|
+
var y = d * 365.25;
|
|
63494
|
+
module2.exports = function(val, options) {
|
|
63495
|
+
options = options || {};
|
|
63496
|
+
var type = typeof val;
|
|
63497
|
+
if (type === "string" && val.length > 0) {
|
|
63498
|
+
return parse3(val);
|
|
63499
|
+
} else if (type === "number" && isFinite(val)) {
|
|
63500
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
63501
|
+
}
|
|
63502
|
+
throw new Error(
|
|
63503
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
63504
|
+
);
|
|
63505
|
+
};
|
|
63506
|
+
function parse3(str) {
|
|
63507
|
+
str = String(str);
|
|
63508
|
+
if (str.length > 100) {
|
|
63509
|
+
return;
|
|
63510
|
+
}
|
|
63511
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
63512
|
+
str
|
|
63513
|
+
);
|
|
63514
|
+
if (!match) {
|
|
63515
|
+
return;
|
|
63516
|
+
}
|
|
63517
|
+
var n = parseFloat(match[1]);
|
|
63518
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
63519
|
+
switch (type) {
|
|
63520
|
+
case "years":
|
|
63521
|
+
case "year":
|
|
63522
|
+
case "yrs":
|
|
63523
|
+
case "yr":
|
|
63524
|
+
case "y":
|
|
63525
|
+
return n * y;
|
|
63526
|
+
case "weeks":
|
|
63527
|
+
case "week":
|
|
63528
|
+
case "w":
|
|
63529
|
+
return n * w;
|
|
63530
|
+
case "days":
|
|
63531
|
+
case "day":
|
|
63532
|
+
case "d":
|
|
63533
|
+
return n * d;
|
|
63534
|
+
case "hours":
|
|
63535
|
+
case "hour":
|
|
63536
|
+
case "hrs":
|
|
63537
|
+
case "hr":
|
|
63538
|
+
case "h":
|
|
63539
|
+
return n * h;
|
|
63540
|
+
case "minutes":
|
|
63541
|
+
case "minute":
|
|
63542
|
+
case "mins":
|
|
63543
|
+
case "min":
|
|
63544
|
+
case "m":
|
|
63545
|
+
return n * m;
|
|
63546
|
+
case "seconds":
|
|
63547
|
+
case "second":
|
|
63548
|
+
case "secs":
|
|
63549
|
+
case "sec":
|
|
63550
|
+
case "s":
|
|
63551
|
+
return n * s;
|
|
63552
|
+
case "milliseconds":
|
|
63553
|
+
case "millisecond":
|
|
63554
|
+
case "msecs":
|
|
63555
|
+
case "msec":
|
|
63556
|
+
case "ms":
|
|
63557
|
+
return n;
|
|
63558
|
+
default:
|
|
63559
|
+
return void 0;
|
|
63560
|
+
}
|
|
63561
|
+
}
|
|
63562
|
+
function fmtShort(ms) {
|
|
63563
|
+
var msAbs = Math.abs(ms);
|
|
63564
|
+
if (msAbs >= d) {
|
|
63565
|
+
return Math.round(ms / d) + "d";
|
|
63566
|
+
}
|
|
63567
|
+
if (msAbs >= h) {
|
|
63568
|
+
return Math.round(ms / h) + "h";
|
|
63569
|
+
}
|
|
63570
|
+
if (msAbs >= m) {
|
|
63571
|
+
return Math.round(ms / m) + "m";
|
|
63572
|
+
}
|
|
63573
|
+
if (msAbs >= s) {
|
|
63574
|
+
return Math.round(ms / s) + "s";
|
|
63575
|
+
}
|
|
63576
|
+
return ms + "ms";
|
|
63577
|
+
}
|
|
63578
|
+
function fmtLong(ms) {
|
|
63579
|
+
var msAbs = Math.abs(ms);
|
|
63580
|
+
if (msAbs >= d) {
|
|
63581
|
+
return plural(ms, msAbs, d, "day");
|
|
63582
|
+
}
|
|
63583
|
+
if (msAbs >= h) {
|
|
63584
|
+
return plural(ms, msAbs, h, "hour");
|
|
63585
|
+
}
|
|
63586
|
+
if (msAbs >= m) {
|
|
63587
|
+
return plural(ms, msAbs, m, "minute");
|
|
63588
|
+
}
|
|
63589
|
+
if (msAbs >= s) {
|
|
63590
|
+
return plural(ms, msAbs, s, "second");
|
|
63591
|
+
}
|
|
63592
|
+
return ms + " ms";
|
|
63593
|
+
}
|
|
63594
|
+
function plural(ms, msAbs, n, name) {
|
|
63595
|
+
var isPlural = msAbs >= n * 1.5;
|
|
63596
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
63597
|
+
}
|
|
63598
|
+
}
|
|
63599
|
+
});
|
|
63600
|
+
|
|
63601
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js
|
|
63602
|
+
var require_common2 = __commonJS({
|
|
63603
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
63604
|
+
"use strict";
|
|
63605
|
+
function setup(env) {
|
|
63606
|
+
createDebug.debug = createDebug;
|
|
63607
|
+
createDebug.default = createDebug;
|
|
63608
|
+
createDebug.coerce = coerce;
|
|
63609
|
+
createDebug.disable = disable;
|
|
63610
|
+
createDebug.enable = enable;
|
|
63611
|
+
createDebug.enabled = enabled;
|
|
63612
|
+
createDebug.humanize = require_ms();
|
|
63613
|
+
createDebug.destroy = destroy;
|
|
63614
|
+
Object.keys(env).forEach((key) => {
|
|
63615
|
+
createDebug[key] = env[key];
|
|
63616
|
+
});
|
|
63617
|
+
createDebug.names = [];
|
|
63618
|
+
createDebug.skips = [];
|
|
63619
|
+
createDebug.formatters = {};
|
|
63620
|
+
function selectColor(namespace) {
|
|
63621
|
+
let hash = 0;
|
|
63622
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
63623
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
63624
|
+
hash |= 0;
|
|
63625
|
+
}
|
|
63626
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
63627
|
+
}
|
|
63628
|
+
createDebug.selectColor = selectColor;
|
|
63629
|
+
function createDebug(namespace) {
|
|
63630
|
+
let prevTime;
|
|
63631
|
+
let enableOverride = null;
|
|
63632
|
+
let namespacesCache;
|
|
63633
|
+
let enabledCache;
|
|
63634
|
+
function debug(...args) {
|
|
63635
|
+
if (!debug.enabled) {
|
|
63636
|
+
return;
|
|
63637
|
+
}
|
|
63638
|
+
const self3 = debug;
|
|
63639
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
63640
|
+
const ms = curr - (prevTime || curr);
|
|
63641
|
+
self3.diff = ms;
|
|
63642
|
+
self3.prev = prevTime;
|
|
63643
|
+
self3.curr = curr;
|
|
63644
|
+
prevTime = curr;
|
|
63645
|
+
args[0] = createDebug.coerce(args[0]);
|
|
63646
|
+
if (typeof args[0] !== "string") {
|
|
63647
|
+
args.unshift("%O");
|
|
63648
|
+
}
|
|
63649
|
+
let index = 0;
|
|
63650
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
63651
|
+
if (match === "%%") {
|
|
63652
|
+
return "%";
|
|
63653
|
+
}
|
|
63654
|
+
index++;
|
|
63655
|
+
const formatter = createDebug.formatters[format];
|
|
63656
|
+
if (typeof formatter === "function") {
|
|
63657
|
+
const val = args[index];
|
|
63658
|
+
match = formatter.call(self3, val);
|
|
63659
|
+
args.splice(index, 1);
|
|
63660
|
+
index--;
|
|
63661
|
+
}
|
|
63662
|
+
return match;
|
|
63663
|
+
});
|
|
63664
|
+
createDebug.formatArgs.call(self3, args);
|
|
63665
|
+
const logFn = self3.log || createDebug.log;
|
|
63666
|
+
logFn.apply(self3, args);
|
|
63667
|
+
}
|
|
63668
|
+
debug.namespace = namespace;
|
|
63669
|
+
debug.useColors = createDebug.useColors();
|
|
63670
|
+
debug.color = createDebug.selectColor(namespace);
|
|
63671
|
+
debug.extend = extend;
|
|
63672
|
+
debug.destroy = createDebug.destroy;
|
|
63673
|
+
Object.defineProperty(debug, "enabled", {
|
|
63674
|
+
enumerable: true,
|
|
63675
|
+
configurable: false,
|
|
63676
|
+
get: () => {
|
|
63677
|
+
if (enableOverride !== null) {
|
|
63678
|
+
return enableOverride;
|
|
63679
|
+
}
|
|
63680
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
63681
|
+
namespacesCache = createDebug.namespaces;
|
|
63682
|
+
enabledCache = createDebug.enabled(namespace);
|
|
63683
|
+
}
|
|
63684
|
+
return enabledCache;
|
|
63685
|
+
},
|
|
63686
|
+
set: (v) => {
|
|
63687
|
+
enableOverride = v;
|
|
63688
|
+
}
|
|
63689
|
+
});
|
|
63690
|
+
if (typeof createDebug.init === "function") {
|
|
63691
|
+
createDebug.init(debug);
|
|
63692
|
+
}
|
|
63693
|
+
return debug;
|
|
63694
|
+
}
|
|
63695
|
+
function extend(namespace, delimiter) {
|
|
63696
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
63697
|
+
newDebug.log = this.log;
|
|
63698
|
+
return newDebug;
|
|
63699
|
+
}
|
|
63700
|
+
function enable(namespaces) {
|
|
63701
|
+
createDebug.save(namespaces);
|
|
63702
|
+
createDebug.namespaces = namespaces;
|
|
63703
|
+
createDebug.names = [];
|
|
63704
|
+
createDebug.skips = [];
|
|
63705
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
63706
|
+
for (const ns of split) {
|
|
63707
|
+
if (ns[0] === "-") {
|
|
63708
|
+
createDebug.skips.push(ns.slice(1));
|
|
63709
|
+
} else {
|
|
63710
|
+
createDebug.names.push(ns);
|
|
63711
|
+
}
|
|
63712
|
+
}
|
|
63713
|
+
}
|
|
63714
|
+
function matchesTemplate(search, template) {
|
|
63715
|
+
let searchIndex = 0;
|
|
63716
|
+
let templateIndex = 0;
|
|
63717
|
+
let starIndex = -1;
|
|
63718
|
+
let matchIndex = 0;
|
|
63719
|
+
while (searchIndex < search.length) {
|
|
63720
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
63721
|
+
if (template[templateIndex] === "*") {
|
|
63722
|
+
starIndex = templateIndex;
|
|
63723
|
+
matchIndex = searchIndex;
|
|
63724
|
+
templateIndex++;
|
|
63725
|
+
} else {
|
|
63726
|
+
searchIndex++;
|
|
63727
|
+
templateIndex++;
|
|
63728
|
+
}
|
|
63729
|
+
} else if (starIndex !== -1) {
|
|
63730
|
+
templateIndex = starIndex + 1;
|
|
63731
|
+
matchIndex++;
|
|
63732
|
+
searchIndex = matchIndex;
|
|
63733
|
+
} else {
|
|
63734
|
+
return false;
|
|
63735
|
+
}
|
|
63736
|
+
}
|
|
63737
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
63738
|
+
templateIndex++;
|
|
63739
|
+
}
|
|
63740
|
+
return templateIndex === template.length;
|
|
63741
|
+
}
|
|
63742
|
+
function disable() {
|
|
63743
|
+
const namespaces = [
|
|
63744
|
+
...createDebug.names,
|
|
63745
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
63746
|
+
].join(",");
|
|
63747
|
+
createDebug.enable("");
|
|
63748
|
+
return namespaces;
|
|
63749
|
+
}
|
|
63750
|
+
function enabled(name) {
|
|
63751
|
+
for (const skip of createDebug.skips) {
|
|
63752
|
+
if (matchesTemplate(name, skip)) {
|
|
63753
|
+
return false;
|
|
63754
|
+
}
|
|
63755
|
+
}
|
|
63756
|
+
for (const ns of createDebug.names) {
|
|
63757
|
+
if (matchesTemplate(name, ns)) {
|
|
63758
|
+
return true;
|
|
63759
|
+
}
|
|
63760
|
+
}
|
|
63761
|
+
return false;
|
|
63762
|
+
}
|
|
63763
|
+
function coerce(val) {
|
|
63764
|
+
if (val instanceof Error) {
|
|
63765
|
+
return val.stack || val.message;
|
|
63766
|
+
}
|
|
63767
|
+
return val;
|
|
63768
|
+
}
|
|
63769
|
+
function destroy() {
|
|
63770
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
63771
|
+
}
|
|
63772
|
+
createDebug.enable(createDebug.load());
|
|
63773
|
+
return createDebug;
|
|
63774
|
+
}
|
|
63775
|
+
module2.exports = setup;
|
|
63776
|
+
}
|
|
63777
|
+
});
|
|
63778
|
+
|
|
63779
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js
|
|
63780
|
+
var require_browser = __commonJS({
|
|
63781
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
63782
|
+
"use strict";
|
|
63783
|
+
exports.formatArgs = formatArgs;
|
|
63784
|
+
exports.save = save;
|
|
63785
|
+
exports.load = load;
|
|
63786
|
+
exports.useColors = useColors;
|
|
63787
|
+
exports.storage = localstorage();
|
|
63788
|
+
exports.destroy = (() => {
|
|
63789
|
+
let warned = false;
|
|
63790
|
+
return () => {
|
|
63791
|
+
if (!warned) {
|
|
63792
|
+
warned = true;
|
|
63793
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
63794
|
+
}
|
|
63795
|
+
};
|
|
63796
|
+
})();
|
|
63797
|
+
exports.colors = [
|
|
63798
|
+
"#0000CC",
|
|
63799
|
+
"#0000FF",
|
|
63800
|
+
"#0033CC",
|
|
63801
|
+
"#0033FF",
|
|
63802
|
+
"#0066CC",
|
|
63803
|
+
"#0066FF",
|
|
63804
|
+
"#0099CC",
|
|
63805
|
+
"#0099FF",
|
|
63806
|
+
"#00CC00",
|
|
63807
|
+
"#00CC33",
|
|
63808
|
+
"#00CC66",
|
|
63809
|
+
"#00CC99",
|
|
63810
|
+
"#00CCCC",
|
|
63811
|
+
"#00CCFF",
|
|
63812
|
+
"#3300CC",
|
|
63813
|
+
"#3300FF",
|
|
63814
|
+
"#3333CC",
|
|
63815
|
+
"#3333FF",
|
|
63816
|
+
"#3366CC",
|
|
63817
|
+
"#3366FF",
|
|
63818
|
+
"#3399CC",
|
|
63819
|
+
"#3399FF",
|
|
63820
|
+
"#33CC00",
|
|
63821
|
+
"#33CC33",
|
|
63822
|
+
"#33CC66",
|
|
63823
|
+
"#33CC99",
|
|
63824
|
+
"#33CCCC",
|
|
63825
|
+
"#33CCFF",
|
|
63826
|
+
"#6600CC",
|
|
63827
|
+
"#6600FF",
|
|
63828
|
+
"#6633CC",
|
|
63829
|
+
"#6633FF",
|
|
63830
|
+
"#66CC00",
|
|
63831
|
+
"#66CC33",
|
|
63832
|
+
"#9900CC",
|
|
63833
|
+
"#9900FF",
|
|
63834
|
+
"#9933CC",
|
|
63835
|
+
"#9933FF",
|
|
63836
|
+
"#99CC00",
|
|
63837
|
+
"#99CC33",
|
|
63838
|
+
"#CC0000",
|
|
63839
|
+
"#CC0033",
|
|
63840
|
+
"#CC0066",
|
|
63841
|
+
"#CC0099",
|
|
63842
|
+
"#CC00CC",
|
|
63843
|
+
"#CC00FF",
|
|
63844
|
+
"#CC3300",
|
|
63845
|
+
"#CC3333",
|
|
63846
|
+
"#CC3366",
|
|
63847
|
+
"#CC3399",
|
|
63848
|
+
"#CC33CC",
|
|
63849
|
+
"#CC33FF",
|
|
63850
|
+
"#CC6600",
|
|
63851
|
+
"#CC6633",
|
|
63852
|
+
"#CC9900",
|
|
63853
|
+
"#CC9933",
|
|
63854
|
+
"#CCCC00",
|
|
63855
|
+
"#CCCC33",
|
|
63856
|
+
"#FF0000",
|
|
63857
|
+
"#FF0033",
|
|
63858
|
+
"#FF0066",
|
|
63859
|
+
"#FF0099",
|
|
63860
|
+
"#FF00CC",
|
|
63861
|
+
"#FF00FF",
|
|
63862
|
+
"#FF3300",
|
|
63863
|
+
"#FF3333",
|
|
63864
|
+
"#FF3366",
|
|
63865
|
+
"#FF3399",
|
|
63866
|
+
"#FF33CC",
|
|
63867
|
+
"#FF33FF",
|
|
63868
|
+
"#FF6600",
|
|
63869
|
+
"#FF6633",
|
|
63870
|
+
"#FF9900",
|
|
63871
|
+
"#FF9933",
|
|
63872
|
+
"#FFCC00",
|
|
63873
|
+
"#FFCC33"
|
|
63874
|
+
];
|
|
63875
|
+
function useColors() {
|
|
63876
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
63877
|
+
return true;
|
|
63878
|
+
}
|
|
63879
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
63880
|
+
return false;
|
|
63881
|
+
}
|
|
63882
|
+
let m;
|
|
63883
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
63884
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
63885
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
63886
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
63887
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
63888
|
+
}
|
|
63889
|
+
function formatArgs(args) {
|
|
63890
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
63891
|
+
if (!this.useColors) {
|
|
63892
|
+
return;
|
|
63893
|
+
}
|
|
63894
|
+
const c = "color: " + this.color;
|
|
63895
|
+
args.splice(1, 0, c, "color: inherit");
|
|
63896
|
+
let index = 0;
|
|
63897
|
+
let lastC = 0;
|
|
63898
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
63899
|
+
if (match === "%%") {
|
|
63900
|
+
return;
|
|
63901
|
+
}
|
|
63902
|
+
index++;
|
|
63903
|
+
if (match === "%c") {
|
|
63904
|
+
lastC = index;
|
|
63905
|
+
}
|
|
63906
|
+
});
|
|
63907
|
+
args.splice(lastC, 0, c);
|
|
63908
|
+
}
|
|
63909
|
+
exports.log = console.debug || console.log || (() => {
|
|
63910
|
+
});
|
|
63911
|
+
function save(namespaces) {
|
|
63912
|
+
try {
|
|
63913
|
+
if (namespaces) {
|
|
63914
|
+
exports.storage.setItem("debug", namespaces);
|
|
63915
|
+
} else {
|
|
63916
|
+
exports.storage.removeItem("debug");
|
|
63917
|
+
}
|
|
63918
|
+
} catch (error) {
|
|
63919
|
+
}
|
|
63920
|
+
}
|
|
63921
|
+
function load() {
|
|
63922
|
+
let r;
|
|
63923
|
+
try {
|
|
63924
|
+
r = exports.storage.getItem("debug");
|
|
63925
|
+
} catch (error) {
|
|
63926
|
+
}
|
|
63927
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
63928
|
+
r = process.env.DEBUG;
|
|
63929
|
+
}
|
|
63930
|
+
return r;
|
|
63931
|
+
}
|
|
63932
|
+
function localstorage() {
|
|
63933
|
+
try {
|
|
63934
|
+
return localStorage;
|
|
63935
|
+
} catch (error) {
|
|
63936
|
+
}
|
|
63937
|
+
}
|
|
63938
|
+
module2.exports = require_common2()(exports);
|
|
63939
|
+
var { formatters } = module2.exports;
|
|
63940
|
+
formatters.j = function(v) {
|
|
63941
|
+
try {
|
|
63942
|
+
return JSON.stringify(v);
|
|
63943
|
+
} catch (error) {
|
|
63944
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
63945
|
+
}
|
|
63946
|
+
};
|
|
63947
|
+
}
|
|
63948
|
+
});
|
|
63949
|
+
|
|
63950
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js
|
|
63951
|
+
var require_node2 = __commonJS({
|
|
63952
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
63953
|
+
"use strict";
|
|
63954
|
+
var tty = require("tty");
|
|
63955
|
+
var util = require("util");
|
|
63956
|
+
exports.init = init;
|
|
63957
|
+
exports.log = log;
|
|
63958
|
+
exports.formatArgs = formatArgs;
|
|
63959
|
+
exports.save = save;
|
|
63960
|
+
exports.load = load;
|
|
63961
|
+
exports.useColors = useColors;
|
|
63962
|
+
exports.destroy = util.deprecate(
|
|
63963
|
+
() => {
|
|
63964
|
+
},
|
|
63965
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
63966
|
+
);
|
|
63967
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
63968
|
+
try {
|
|
63969
|
+
const supportsColor = require_supports_color();
|
|
63970
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
63971
|
+
exports.colors = [
|
|
63972
|
+
20,
|
|
63973
|
+
21,
|
|
63974
|
+
26,
|
|
63975
|
+
27,
|
|
63976
|
+
32,
|
|
63977
|
+
33,
|
|
63978
|
+
38,
|
|
63979
|
+
39,
|
|
63980
|
+
40,
|
|
63981
|
+
41,
|
|
63982
|
+
42,
|
|
63983
|
+
43,
|
|
63984
|
+
44,
|
|
63985
|
+
45,
|
|
63986
|
+
56,
|
|
63987
|
+
57,
|
|
63988
|
+
62,
|
|
63989
|
+
63,
|
|
63990
|
+
68,
|
|
63991
|
+
69,
|
|
63992
|
+
74,
|
|
63993
|
+
75,
|
|
63994
|
+
76,
|
|
63995
|
+
77,
|
|
63996
|
+
78,
|
|
63997
|
+
79,
|
|
63998
|
+
80,
|
|
63999
|
+
81,
|
|
64000
|
+
92,
|
|
64001
|
+
93,
|
|
64002
|
+
98,
|
|
64003
|
+
99,
|
|
64004
|
+
112,
|
|
64005
|
+
113,
|
|
64006
|
+
128,
|
|
64007
|
+
129,
|
|
64008
|
+
134,
|
|
64009
|
+
135,
|
|
64010
|
+
148,
|
|
64011
|
+
149,
|
|
64012
|
+
160,
|
|
64013
|
+
161,
|
|
64014
|
+
162,
|
|
64015
|
+
163,
|
|
64016
|
+
164,
|
|
64017
|
+
165,
|
|
64018
|
+
166,
|
|
64019
|
+
167,
|
|
64020
|
+
168,
|
|
64021
|
+
169,
|
|
64022
|
+
170,
|
|
64023
|
+
171,
|
|
64024
|
+
172,
|
|
64025
|
+
173,
|
|
64026
|
+
178,
|
|
64027
|
+
179,
|
|
64028
|
+
184,
|
|
64029
|
+
185,
|
|
64030
|
+
196,
|
|
64031
|
+
197,
|
|
64032
|
+
198,
|
|
64033
|
+
199,
|
|
64034
|
+
200,
|
|
64035
|
+
201,
|
|
64036
|
+
202,
|
|
64037
|
+
203,
|
|
64038
|
+
204,
|
|
64039
|
+
205,
|
|
64040
|
+
206,
|
|
64041
|
+
207,
|
|
64042
|
+
208,
|
|
64043
|
+
209,
|
|
64044
|
+
214,
|
|
64045
|
+
215,
|
|
64046
|
+
220,
|
|
64047
|
+
221
|
|
64048
|
+
];
|
|
64049
|
+
}
|
|
64050
|
+
} catch (error) {
|
|
64051
|
+
}
|
|
64052
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
64053
|
+
return /^debug_/i.test(key);
|
|
64054
|
+
}).reduce((obj, key) => {
|
|
64055
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
64056
|
+
return k.toUpperCase();
|
|
64057
|
+
});
|
|
64058
|
+
let val = process.env[key];
|
|
64059
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
64060
|
+
val = true;
|
|
64061
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
64062
|
+
val = false;
|
|
64063
|
+
} else if (val === "null") {
|
|
64064
|
+
val = null;
|
|
64065
|
+
} else {
|
|
64066
|
+
val = Number(val);
|
|
64067
|
+
}
|
|
64068
|
+
obj[prop] = val;
|
|
64069
|
+
return obj;
|
|
64070
|
+
}, {});
|
|
64071
|
+
function useColors() {
|
|
64072
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
64073
|
+
}
|
|
64074
|
+
function formatArgs(args) {
|
|
64075
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
64076
|
+
if (useColors2) {
|
|
64077
|
+
const c = this.color;
|
|
64078
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
64079
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
64080
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
64081
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
64082
|
+
} else {
|
|
64083
|
+
args[0] = getDate() + name + " " + args[0];
|
|
64084
|
+
}
|
|
64085
|
+
}
|
|
64086
|
+
function getDate() {
|
|
64087
|
+
if (exports.inspectOpts.hideDate) {
|
|
64088
|
+
return "";
|
|
64089
|
+
}
|
|
64090
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
64091
|
+
}
|
|
64092
|
+
function log(...args) {
|
|
64093
|
+
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
64094
|
+
}
|
|
64095
|
+
function save(namespaces) {
|
|
64096
|
+
if (namespaces) {
|
|
64097
|
+
process.env.DEBUG = namespaces;
|
|
64098
|
+
} else {
|
|
64099
|
+
delete process.env.DEBUG;
|
|
64100
|
+
}
|
|
64101
|
+
}
|
|
64102
|
+
function load() {
|
|
64103
|
+
return process.env.DEBUG;
|
|
64104
|
+
}
|
|
64105
|
+
function init(debug) {
|
|
64106
|
+
debug.inspectOpts = {};
|
|
64107
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
64108
|
+
for (let i = 0; i < keys.length; i++) {
|
|
64109
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
64110
|
+
}
|
|
64111
|
+
}
|
|
64112
|
+
module2.exports = require_common2()(exports);
|
|
64113
|
+
var { formatters } = module2.exports;
|
|
64114
|
+
formatters.o = function(v) {
|
|
64115
|
+
this.inspectOpts.colors = this.useColors;
|
|
64116
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
64117
|
+
};
|
|
64118
|
+
formatters.O = function(v) {
|
|
64119
|
+
this.inspectOpts.colors = this.useColors;
|
|
64120
|
+
return util.inspect(v, this.inspectOpts);
|
|
64121
|
+
};
|
|
64122
|
+
}
|
|
64123
|
+
});
|
|
64124
|
+
|
|
64125
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js
|
|
64126
|
+
var require_src3 = __commonJS({
|
|
64127
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
64128
|
+
"use strict";
|
|
64129
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
64130
|
+
module2.exports = require_browser();
|
|
64131
|
+
} else {
|
|
64132
|
+
module2.exports = require_node2();
|
|
64133
|
+
}
|
|
64134
|
+
}
|
|
64135
|
+
});
|
|
64136
|
+
|
|
64154
64137
|
// ../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js
|
|
64155
64138
|
var require_get_type = __commonJS({
|
|
64156
64139
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js"(exports) {
|
|
@@ -64303,7 +64286,7 @@ var require_filter3 = __commonJS({
|
|
|
64303
64286
|
return r;
|
|
64304
64287
|
};
|
|
64305
64288
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64306
|
-
var debug_1 =
|
|
64289
|
+
var debug_1 = require_src3();
|
|
64307
64290
|
var mongo_eql_1 = require_mongo_eql();
|
|
64308
64291
|
var ops = require_ops();
|
|
64309
64292
|
var get_type_1 = require_get_type();
|
|
@@ -64463,7 +64446,7 @@ var require_mods = __commonJS({
|
|
|
64463
64446
|
return r;
|
|
64464
64447
|
};
|
|
64465
64448
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64466
|
-
var debug_1 =
|
|
64449
|
+
var debug_1 = require_src3();
|
|
64467
64450
|
var mongoDot = require_mongo_dot();
|
|
64468
64451
|
var mongo_eql_1 = require_mongo_eql();
|
|
64469
64452
|
var get_type_1 = require_get_type();
|
|
@@ -64924,7 +64907,7 @@ var require_query = __commonJS({
|
|
|
64924
64907
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/query.js"(exports) {
|
|
64925
64908
|
"use strict";
|
|
64926
64909
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64927
|
-
var debug_1 =
|
|
64910
|
+
var debug_1 = require_src3();
|
|
64928
64911
|
var filter_1 = require_filter3();
|
|
64929
64912
|
var mods = require_mods();
|
|
64930
64913
|
var mongoDot = require_mongo_dot();
|
|
@@ -65023,16 +65006,16 @@ __export(src_exports, {
|
|
|
65023
65006
|
module.exports = __toCommonJS(src_exports);
|
|
65024
65007
|
var import_path5 = __toESM(require("path"));
|
|
65025
65008
|
|
|
65026
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
65009
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
|
|
65027
65010
|
var import_chalk = __toESM(require_source());
|
|
65028
65011
|
|
|
65029
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
65012
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
|
65030
65013
|
var import_fs_extra = __toESM(require_lib());
|
|
65031
65014
|
|
|
65032
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
65015
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
65033
65016
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
65034
65017
|
|
|
65035
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
65018
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
65036
65019
|
function fsExists(path5) {
|
|
65037
65020
|
return __async(this, null, function* () {
|
|
65038
65021
|
try {
|
|
@@ -65044,19 +65027,19 @@ function fsExists(path5) {
|
|
|
65044
65027
|
});
|
|
65045
65028
|
}
|
|
65046
65029
|
|
|
65047
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
65030
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
|
|
65048
65031
|
var import_execa = __toESM(require_execa());
|
|
65049
65032
|
|
|
65050
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
65033
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
65051
65034
|
var import_semver = __toESM(require_semver2());
|
|
65052
65035
|
|
|
65053
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
65036
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
65054
65037
|
var import_ejs = __toESM(require_ejs());
|
|
65055
65038
|
function renderString(template, fullData) {
|
|
65056
65039
|
return import_ejs.default.render(template, fullData) || "";
|
|
65057
65040
|
}
|
|
65058
65041
|
|
|
65059
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
65042
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
65060
65043
|
var EjsAPI = class {
|
|
65061
65044
|
renderTemplate(_0, _1) {
|
|
65062
65045
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
|
@@ -65091,7 +65074,7 @@ var EjsAPI = class {
|
|
|
65091
65074
|
}
|
|
65092
65075
|
};
|
|
65093
65076
|
|
|
65094
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.
|
|
65077
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
65095
65078
|
var import_path = __toESM(require("path"));
|
|
65096
65079
|
var FsAPI = class {
|
|
65097
65080
|
renderFile(resource, target) {
|
|
@@ -65120,7 +65103,7 @@ var FsAPI = class {
|
|
|
65120
65103
|
}
|
|
65121
65104
|
};
|
|
65122
65105
|
|
|
65123
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
65106
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
65124
65107
|
function canUseGit() {
|
|
65125
65108
|
return __async(this, null, function* () {
|
|
65126
65109
|
try {
|
|
@@ -65204,7 +65187,7 @@ function gitCommit(cwd, commitMessage) {
|
|
|
65204
65187
|
});
|
|
65205
65188
|
}
|
|
65206
65189
|
|
|
65207
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
65190
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
65208
65191
|
var GitAPI = class {
|
|
65209
65192
|
isInGitRepo() {
|
|
65210
65193
|
return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
|
|
@@ -65260,7 +65243,7 @@ var GitAPI = class {
|
|
|
65260
65243
|
}
|
|
65261
65244
|
};
|
|
65262
65245
|
|
|
65263
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
65246
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
65264
65247
|
var import_handlebars = __toESM(require_lib2());
|
|
65265
65248
|
function renderString2(template, fullData, registers) {
|
|
65266
65249
|
const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
|
|
@@ -65270,7 +65253,7 @@ function renderString2(template, fullData, registers) {
|
|
|
65270
65253
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
65271
65254
|
}
|
|
65272
65255
|
|
|
65273
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
65256
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
65274
65257
|
var HandlebarsAPI = class {
|
|
65275
65258
|
registerHelp(helpers) {
|
|
65276
65259
|
return __async(this, null, function* () {
|
|
@@ -65427,7 +65410,7 @@ function __generator(thisArg, body) {
|
|
|
65427
65410
|
}
|
|
65428
65411
|
}
|
|
65429
65412
|
|
|
65430
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
65413
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
|
|
65431
65414
|
var import_execa3 = __toESM(require_execa());
|
|
65432
65415
|
function canUseNvm() {
|
|
65433
65416
|
return _canUseNvm.apply(this, arguments);
|
|
@@ -65648,7 +65631,7 @@ function _canUsePnpm() {
|
|
|
65648
65631
|
return _canUsePnpm.apply(this, arguments);
|
|
65649
65632
|
}
|
|
65650
65633
|
|
|
65651
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
65634
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
65652
65635
|
function execaWithStreamLog(command, args, options) {
|
|
65653
65636
|
const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
|
|
65654
65637
|
stdin: "inherit",
|
|
@@ -65749,7 +65732,7 @@ function pnpmInstall(_0) {
|
|
|
65749
65732
|
});
|
|
65750
65733
|
}
|
|
65751
65734
|
|
|
65752
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
65735
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
65753
65736
|
var NpmAPI = class {
|
|
65754
65737
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
65755
65738
|
return npmInstall({
|
|
@@ -65777,7 +65760,7 @@ var NpmAPI = class {
|
|
|
65777
65760
|
}
|
|
65778
65761
|
};
|
|
65779
65762
|
|
|
65780
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
65763
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
|
|
65781
65764
|
var import_lodash = __toESM(require_lodash());
|
|
65782
65765
|
var import_lodash2 = __toESM(require_lodash2());
|
|
65783
65766
|
var import_lodash3 = __toESM(require_lodash3());
|
|
@@ -69328,7 +69311,7 @@ autorun.effect = function(callback, dependencies) {
|
|
|
69328
69311
|
}
|
|
69329
69312
|
};
|
|
69330
69313
|
|
|
69331
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69314
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/shared.js
|
|
69332
69315
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
69333
69316
|
var SchemaNestedMap = {
|
|
69334
69317
|
parent: true,
|
|
@@ -69515,7 +69498,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
69515
69498
|
});
|
|
69516
69499
|
};
|
|
69517
69500
|
|
|
69518
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69501
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/compiler.js
|
|
69519
69502
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
69520
69503
|
var Registry = {
|
|
69521
69504
|
silent: false,
|
|
@@ -70877,7 +70860,7 @@ function onFieldInit(pattern, callback) {
|
|
|
70877
70860
|
}
|
|
70878
70861
|
}
|
|
70879
70862
|
|
|
70880
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
70863
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/transformer.js
|
|
70881
70864
|
var __read5 = function(o, n) {
|
|
70882
70865
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
70883
70866
|
if (!m)
|
|
@@ -71102,7 +71085,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
71102
71085
|
};
|
|
71103
71086
|
};
|
|
71104
71087
|
|
|
71105
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
71088
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/patches.js
|
|
71106
71089
|
var __assign5 = function() {
|
|
71107
71090
|
__assign5 = Object.assign || function(t) {
|
|
71108
71091
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -71151,7 +71134,7 @@ var enablePolyfills = function(versions) {
|
|
|
71151
71134
|
}
|
|
71152
71135
|
};
|
|
71153
71136
|
|
|
71154
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
71137
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
71155
71138
|
var __assign6 = function() {
|
|
71156
71139
|
__assign6 = Object.assign || function(t) {
|
|
71157
71140
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -71308,7 +71291,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
71308
71291
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
71309
71292
|
};
|
|
71310
71293
|
|
|
71311
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
71294
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/schema.js
|
|
71312
71295
|
var Schema = (
|
|
71313
71296
|
/** @class */
|
|
71314
71297
|
function() {
|
|
@@ -71544,10 +71527,10 @@ var Schema = (
|
|
|
71544
71527
|
}()
|
|
71545
71528
|
);
|
|
71546
71529
|
|
|
71547
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
71530
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
71548
71531
|
var import_inquirer = __toESM(require_inquirer());
|
|
71549
71532
|
|
|
71550
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
71533
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
71551
71534
|
function validateSchema(schema) {
|
|
71552
71535
|
const { type, properties } = schema;
|
|
71553
71536
|
if (type !== "object") {
|
|
@@ -71634,7 +71617,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
71634
71617
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
71635
71618
|
}
|
|
71636
71619
|
|
|
71637
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
71620
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
71638
71621
|
var compileRule = (rule, scope) => {
|
|
71639
71622
|
const state = Schema.compile(rule, __spreadValues({
|
|
71640
71623
|
$self: {},
|
|
@@ -71734,7 +71717,7 @@ function prompt(_0) {
|
|
|
71734
71717
|
});
|
|
71735
71718
|
}
|
|
71736
71719
|
|
|
71737
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
71720
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
71738
71721
|
var CLIReader = class {
|
|
71739
71722
|
getAnswers() {
|
|
71740
71723
|
return this.answers;
|
|
@@ -71762,8 +71745,8 @@ var CLIReader = class {
|
|
|
71762
71745
|
}
|
|
71763
71746
|
};
|
|
71764
71747
|
|
|
71765
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
71766
|
-
var import_comment_json = __toESM(
|
|
71748
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
71749
|
+
var import_comment_json = __toESM(require_src2());
|
|
71767
71750
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
71768
71751
|
|
|
71769
71752
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.60.3/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -71829,7 +71812,7 @@ var I18n = class {
|
|
|
71829
71812
|
}
|
|
71830
71813
|
};
|
|
71831
71814
|
|
|
71832
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
71815
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
71833
71816
|
var EN_LOCALE = {
|
|
71834
71817
|
environment: {
|
|
71835
71818
|
node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
|
|
@@ -71856,7 +71839,7 @@ var EN_LOCALE = {
|
|
|
71856
71839
|
}
|
|
71857
71840
|
};
|
|
71858
71841
|
|
|
71859
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
71842
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
71860
71843
|
var ZH_LOCALE = {
|
|
71861
71844
|
environment: {
|
|
71862
71845
|
node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
|
|
@@ -71883,14 +71866,14 @@ var ZH_LOCALE = {
|
|
|
71883
71866
|
}
|
|
71884
71867
|
};
|
|
71885
71868
|
|
|
71886
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
71869
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
71887
71870
|
var i18n = new I18n();
|
|
71888
71871
|
var localeKeys = i18n.init("zh", {
|
|
71889
71872
|
zh: ZH_LOCALE,
|
|
71890
71873
|
en: EN_LOCALE
|
|
71891
71874
|
});
|
|
71892
71875
|
|
|
71893
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
71876
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
71894
71877
|
var import_path3 = __toESM(require("path"));
|
|
71895
71878
|
var NODE_MAJOR_VERSION_MAP = {
|
|
71896
71879
|
"lts/*": 18,
|
|
@@ -71941,7 +71924,7 @@ function checkUseNvm(cwd, logger) {
|
|
|
71941
71924
|
});
|
|
71942
71925
|
}
|
|
71943
71926
|
|
|
71944
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
71927
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
71945
71928
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
71946
71929
|
for (const question of questions) {
|
|
71947
71930
|
question.default = initValue[question.name] || question.default;
|
|
@@ -71968,7 +71951,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
71968
71951
|
return questions;
|
|
71969
71952
|
}
|
|
71970
71953
|
|
|
71971
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
71954
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
71972
71955
|
var AppAPI = class {
|
|
71973
71956
|
checkEnvironment(nodeVersion) {
|
|
71974
71957
|
return __async(this, null, function* () {
|
|
@@ -72211,11 +72194,11 @@ var AppAPI = class {
|
|
|
72211
72194
|
}
|
|
72212
72195
|
};
|
|
72213
72196
|
|
|
72214
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.
|
|
72215
|
-
var import_comment_json2 = __toESM(
|
|
72197
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.7/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
72198
|
+
var import_comment_json2 = __toESM(require_src2());
|
|
72216
72199
|
var declarationUpdate = __toESM(require_dist());
|
|
72217
72200
|
|
|
72218
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.
|
|
72201
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.7/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
72219
72202
|
function editJson(generatorCore, resource, getNewJsonValue) {
|
|
72220
72203
|
return __async(this, null, function* () {
|
|
72221
72204
|
const originJsonValue = yield resource.value();
|
|
@@ -72230,7 +72213,7 @@ function editJson(generatorCore, resource, getNewJsonValue) {
|
|
|
72230
72213
|
});
|
|
72231
72214
|
}
|
|
72232
72215
|
|
|
72233
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.
|
|
72216
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.7/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
72234
72217
|
var JsonAPI = class {
|
|
72235
72218
|
get(resource) {
|
|
72236
72219
|
return __async(this, null, function* () {
|