vercel 59.11.2 → 59.11.7
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/chunks/{add-BKSHWTPX.js → add-KSJQYR5C.js} +23 -18
- package/dist/chunks/{add-RBW7QITR.js → add-PERLOALD.js} +37 -23
- package/dist/chunks/{add-HPLJZFM2.js → add-WU2QYHYL.js} +23 -18
- package/dist/chunks/{build-V4ZLAJWB.js → build-F3J6FLPD.js} +23 -18
- package/dist/chunks/{chunk-NGGLYKNU.js → chunk-26CU4Q3C.js} +3 -115
- package/dist/chunks/{chunk-QFAS4OVW.js → chunk-2JIX6UMI.js} +3 -84
- package/dist/chunks/chunk-2TSBB22D.js +14059 -0
- package/dist/chunks/chunk-332LMJLZ.js +16014 -0
- package/dist/chunks/{chunk-AYLY3ZVL.js → chunk-3VM7HWF6.js} +2 -2
- package/dist/chunks/chunk-4IALDGB7.js +22 -0
- package/dist/chunks/chunk-4IVSM24H.js +522 -0
- package/dist/chunks/{chunk-5XECIWME.js → chunk-5NF5HOBJ.js} +5 -3
- package/dist/chunks/chunk-6E6KPBXY.js +43 -0
- package/dist/chunks/chunk-7KROIXQM.js +59 -0
- package/dist/chunks/{chunk-ASBP32T6.js → chunk-7MRDIPJY.js} +1 -1
- package/dist/chunks/chunk-A5JZS6ZN.js +92 -0
- package/dist/chunks/{chunk-7ST552E3.js → chunk-AKLTIZCU.js} +1 -1
- package/dist/chunks/{chunk-26XDDLXM.js → chunk-ARU7VBKR.js} +2 -2
- package/dist/chunks/chunk-B5XLQKHI.js +849 -0
- package/dist/chunks/chunk-C762AAVU.js +137 -0
- package/dist/chunks/{chunk-WA2SJE5S.js → chunk-CEDN47PH.js} +4 -4
- package/dist/chunks/{chunk-ONRLTUP2.js → chunk-CNDPIHY5.js} +24 -22
- package/dist/chunks/{chunk-BMKU5KEL.js → chunk-CV5YC2EN.js} +1 -1
- package/dist/chunks/chunk-DBYHS3CK.js +257 -0
- package/dist/chunks/{chunk-HDBQPBL6.js → chunk-DSTNNQVV.js} +12 -8
- package/dist/chunks/{chunk-QAT3CW4G.js → chunk-EFYMIIER.js} +2 -2
- package/dist/chunks/{chunk-NBW3BWOJ.js → chunk-EPOLDWRA.js} +2 -2
- package/dist/chunks/{chunk-B4TXCKXE.js → chunk-EZQDYIVB.js} +10 -8
- package/dist/chunks/{chunk-2EAIC3SH.js → chunk-FL4JLNT2.js} +8 -8
- package/dist/chunks/chunk-FRVG4OW3.js +7438 -0
- package/dist/chunks/{chunk-FKDO3CM4.js → chunk-FVNJTRCE.js} +17 -13
- package/dist/chunks/chunk-FVT74RZ5.js +1536 -0
- package/dist/chunks/chunk-G3PXSXIB.js +18188 -0
- package/dist/chunks/chunk-G5FBSUL4.js +822 -0
- package/dist/chunks/{chunk-FRAXI2WT.js → chunk-GCVXKRR5.js} +3 -3
- package/dist/chunks/chunk-GHKJAK5V.js +1288 -0
- package/dist/chunks/{chunk-Q5K5DEOK.js → chunk-GUU4Z2AQ.js} +42 -28
- package/dist/chunks/{chunk-OQ3C5VXZ.js → chunk-GVNCVKCI.js} +4 -2
- package/dist/chunks/chunk-HB4UKFDO.js +1295 -0
- package/dist/chunks/chunk-HRXRELD3.js +338 -0
- package/dist/chunks/{chunk-IJ4X426J.js → chunk-IIMSID24.js} +1 -1
- package/dist/chunks/{chunk-O75LSD3C.js → chunk-JSD4EZL3.js} +1 -1
- package/dist/chunks/{chunk-7AEEQOD4.js → chunk-K3RED3VO.js} +1 -1
- package/dist/chunks/{chunk-RSEAADCE.js → chunk-KEKR7OCB.js} +6 -4
- package/dist/chunks/{chunk-3T7WSWZH.js → chunk-KFWQ3EFH.js} +1 -1
- package/dist/chunks/{chunk-L3UXB2CW.js → chunk-KW7BS25T.js} +1 -1
- package/dist/chunks/{chunk-RO44KX6Y.js → chunk-N4QHMXOO.js} +11 -7
- package/dist/chunks/{chunk-XRWOTCDO.js → chunk-ND5CF2H3.js} +1 -1
- package/dist/chunks/{chunk-RSJBU3ON.js → chunk-NSOYO6JQ.js} +35 -27
- package/dist/chunks/{chunk-RKDCNQ4S.js → chunk-NW34PW6V.js} +3 -105
- package/dist/chunks/{chunk-C5HKWXRR.js → chunk-OAMU5QO6.js} +1 -1
- package/dist/chunks/{chunk-MTWHQEXI.js → chunk-OIH6FP5Y.js} +5 -3
- package/dist/chunks/chunk-P7VSBDR4.js +827 -0
- package/dist/chunks/chunk-PEC3CQSK.js +90 -0
- package/dist/chunks/{chunk-QDV5LZ4Q.js → chunk-PFM75KY3.js} +12 -8
- package/dist/chunks/chunk-PJXMXMCO.js +81 -0
- package/dist/chunks/chunk-PNGVSHR3.js +40 -0
- package/dist/chunks/{chunk-TPATD2MM.js → chunk-QHS645AZ.js} +14 -6
- package/dist/chunks/{chunk-OTXE7MHI.js → chunk-QKX7WKIN.js} +8 -6
- package/dist/chunks/chunk-QOPTXV4G.js +417 -0
- package/dist/chunks/chunk-RN6V5ODW.js +114 -0
- package/dist/chunks/chunk-RVBZ64EQ.js +52 -0
- package/dist/chunks/chunk-SHFNEZVI.js +49 -0
- package/dist/chunks/{chunk-OO3OF6MK.js → chunk-TGNEG57M.js} +44 -15
- package/dist/chunks/{chunk-WNAKOXGK.js → chunk-TO7QZGYK.js} +1 -1
- package/dist/chunks/chunk-UARGTFCT.js +875 -0
- package/dist/chunks/{chunk-FWKSJYDV.js → chunk-UG2WOB5L.js} +1 -1
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/chunk-VT3Z7HF6.js +233 -0
- package/dist/chunks/chunk-VUS2JQB2.js +121 -0
- package/dist/chunks/{chunk-6CZZ3SH3.js → chunk-VYC45Q4Z.js} +2 -2
- package/dist/chunks/{chunk-4KVJ2M4J.js → chunk-WL6QYSGD.js} +78 -17
- package/dist/chunks/{chunk-FZRBF25Y.js → chunk-X7DBBZQD.js} +4 -4
- package/dist/chunks/{chunk-2NJJ2K5S.js → chunk-XD4DCYMX.js} +6 -6
- package/dist/chunks/{chunk-ZSFEACZU.js → chunk-XFF5TGRA.js} +1 -1
- package/dist/chunks/{chunk-6TBDHUXK.js → chunk-XIFATBH5.js} +21 -15
- package/dist/chunks/chunk-XNIZGCN5.js +58 -0
- package/dist/chunks/chunk-XPJLPUKO.js +117 -0
- package/dist/chunks/{chunk-FXD67VN5.js → chunk-XUAWTW4W.js} +1 -1
- package/dist/chunks/{chunk-I526H4AS.js → chunk-YS76T533.js} +2 -2
- package/dist/chunks/chunk-Z7JWYFOY.js +58 -0
- package/dist/chunks/{chunk-6JPVTPTU.js → chunk-ZBEECGFD.js} +3 -3
- package/dist/chunks/{chunk-52QYYTM5.js → chunk-ZDU2NODC.js} +3 -127
- package/dist/chunks/chunk-ZW6HETRE.js +97 -0
- package/dist/chunks/{clear-IYGWCNXT.js → clear-XUQO4ZTK.js} +23 -18
- package/dist/chunks/{compile-vercel-config-NEEBZRUJ.js → compile-vercel-config-D3ARNHTN.js} +8 -11
- package/dist/chunks/{config-6DS6BBR2.js → config-37OAE7QJ.js} +22 -17
- package/dist/chunks/{config-NTB5EMV4.js → config-MEDLXUVM.js} +23 -18
- package/dist/chunks/{delete-LLC2OGHA.js → delete-3N3YZZOF.js} +16 -12
- package/dist/chunks/{delete-LSGID5FV.js → delete-VSWDZ2SW.js} +19 -14
- package/dist/chunks/detect-projects-ODNU4PK2.js +18 -0
- package/dist/chunks/detect-services-TESZCQWG.js +40 -0
- package/dist/chunks/{disable-H4EXEQK7.js → disable-A4FLFMC7.js} +17 -13
- package/dist/chunks/{discard-FG6VKHWN.js → discard-CHGFULBZ.js} +17 -13
- package/dist/chunks/{edit-YE7D3CPJ.js → edit-JZ63AJYQ.js} +17 -13
- package/dist/chunks/{edit-BZJSGUHT.js → edit-MHSYAPDR.js} +19 -15
- package/dist/chunks/{enable-6ESD4QTE.js → enable-KD46SEC5.js} +17 -13
- package/dist/chunks/{exec-XH4K34JM.js → exec-4IPHZ55G.js} +9 -5
- package/dist/chunks/{export-QWSJROLG.js → export-42QZLBSN.js} +16 -13
- package/dist/chunks/{image-LTHQMKFG.js → image-GP4H73A2.js} +11 -8
- package/dist/chunks/{import-builders-6O7ILGQJ.js → import-builders-6TBLMPL2.js} +18 -13
- package/dist/chunks/{inspect-2C4ZSNYC.js → inspect-5FMWMY3C.js} +22 -18
- package/dist/chunks/{inspect-N6SMHV3Z.js → inspect-MUVK6MMT.js} +18 -14
- package/dist/chunks/{inspect-F7KCTHIL.js → inspect-Q3DWW7MC.js} +22 -18
- package/dist/chunks/{inspect-TWDPMXZ5.js → inspect-QFXAOUL4.js} +18 -14
- package/dist/chunks/{inspect-ICKNCDMT.js → inspect-RNTSYM6O.js} +18 -14
- package/dist/chunks/{list-NWTIJF3L.js → list-IHHIPXEC.js} +20 -16
- package/dist/chunks/{list-IPGQVBJO.js → list-JRNWLSO5.js} +16 -14
- package/dist/chunks/{list-DS7ZOUXA.js → list-XHD5DLEX.js} +23 -19
- package/dist/chunks/{login-F7A7ONKC.js → login-PCT6KFWY.js} +23 -18
- package/dist/chunks/{ls-NBDX3MKN.js → ls-GPEHEFCF.js} +24 -18
- package/dist/chunks/{ls-RNGO257R.js → ls-PF7F4PP4.js} +27 -23
- package/dist/chunks/{ls-XINES6PL.js → ls-PQZ2RIDX.js} +24 -18
- package/dist/chunks/{ls-D4TUDBIH.js → ls-SVOHC3XW.js} +24 -18
- package/dist/chunks/{ls-2QW3ZSM6.js → ls-TGHCCARZ.js} +24 -18
- package/dist/chunks/{ls-LSJEUPFX.js → ls-VRIH5WA3.js} +22 -15
- package/dist/chunks/{open-VRQDWZAW.js → open-E7DEKYDU.js} +18 -13
- package/dist/chunks/{permissions-6C5C7TEV.js → permissions-JKOONWVL.js} +14 -11
- package/dist/chunks/{publish-GVIZPNLN.js → publish-EDDELDE5.js} +17 -13
- package/dist/chunks/pull-646WEVDE.js +45 -0
- package/dist/chunks/{push-EFZ5P5Z6.js → push-LTNW5OVD.js} +23 -18
- package/dist/chunks/{query-GBS2PIT4.js → query-LU4N6KPO.js} +22 -19
- package/dist/chunks/{reorder-TN65IFRL.js → reorder-22PKJMZP.js} +17 -13
- package/dist/chunks/{reply-DYVEV3PY.js → reply-SF2EZMVZ.js} +17 -13
- package/dist/chunks/{resolve-JAWFBPUM.js → resolve-ZCZGXTOT.js} +16 -12
- package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +36 -0
- package/dist/chunks/{restore-TJVMHUBQ.js → restore-VJAWZXB4.js} +17 -13
- package/dist/chunks/{rm-7XACNZ2U.js → rm-KN2QFCKO.js} +23 -18
- package/dist/chunks/{rm-REJVXALW.js → rm-KVEAJPRE.js} +23 -18
- package/dist/chunks/{rm-CBPNMSRP.js → rm-OSZ5FZUM.js} +23 -16
- package/dist/chunks/{rm-5B5VHWWN.js → rm-W722Q2AO.js} +21 -18
- package/dist/chunks/{rm-HQ5CYNJA.js → rm-WNPGTUBH.js} +23 -18
- package/dist/chunks/{routes-2OLIBRYX.js → routes-QVMBXOSX.js} +7 -3
- package/dist/chunks/{rule-inspect-ZSTDDFID.js → rule-inspect-25Z6SNX3.js} +28 -24
- package/dist/chunks/{rules-VGV4M4KY.js → rules-65LKAQ35.js} +15 -12
- package/dist/chunks/{schema-45SJNY5L.js → schema-7D6IGJEJ.js} +9 -7
- package/dist/chunks/{schema-GMTQOQCV.js → schema-NXCW4M75.js} +19 -17
- package/dist/chunks/{set-Z5FO2FCC.js → set-FYJVKMPV.js} +20 -13
- package/dist/chunks/setup-and-link-KXPZE32P.js +65 -0
- package/dist/chunks/{tags-SDRXWJ63.js → tags-ANIRP5E3.js} +10 -7
- package/dist/chunks/{types-JGANJ5EQ.js → types-4GAJ7XQQ.js} +9 -7
- package/dist/chunks/{update-JBQBC3IV.js → update-UT6CTKVG.js} +32 -19
- package/dist/commands/build/index.js +86 -49
- package/dist/commands/deploy/index.js +75 -66
- package/dist/commands/dev/index.js +98 -52
- package/dist/commands/env/index.js +67 -43
- package/dist/commands/link/index.js +48 -27
- package/dist/commands/list/index.js +33 -22
- package/dist/commands-bulk.js +1659 -1287
- package/dist/index.js +62 -40
- package/dist/version.mjs +1 -1
- package/package.json +46 -46
- package/dist/chunks/chunk-WYU64FLP.js +0 -62123
- package/dist/chunks/chunk-XNFHNTS2.js +0 -2939
|
@@ -0,0 +1,827 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
__commonJS,
|
|
9
|
+
__require
|
|
10
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
11
|
+
|
|
12
|
+
// ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
|
|
13
|
+
var require_balanced_match = __commonJS({
|
|
14
|
+
"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
|
|
15
|
+
"use strict";
|
|
16
|
+
module.exports = balanced;
|
|
17
|
+
function balanced(a, b, str) {
|
|
18
|
+
if (a instanceof RegExp)
|
|
19
|
+
a = maybeMatch(a, str);
|
|
20
|
+
if (b instanceof RegExp)
|
|
21
|
+
b = maybeMatch(b, str);
|
|
22
|
+
var r = range(a, b, str);
|
|
23
|
+
return r && {
|
|
24
|
+
start: r[0],
|
|
25
|
+
end: r[1],
|
|
26
|
+
pre: str.slice(0, r[0]),
|
|
27
|
+
body: str.slice(r[0] + a.length, r[1]),
|
|
28
|
+
post: str.slice(r[1] + b.length)
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function maybeMatch(reg, str) {
|
|
32
|
+
var m = str.match(reg);
|
|
33
|
+
return m ? m[0] : null;
|
|
34
|
+
}
|
|
35
|
+
balanced.range = range;
|
|
36
|
+
function range(a, b, str) {
|
|
37
|
+
var begs, beg, left, right, result;
|
|
38
|
+
var ai = str.indexOf(a);
|
|
39
|
+
var bi = str.indexOf(b, ai + 1);
|
|
40
|
+
var i = ai;
|
|
41
|
+
if (ai >= 0 && bi > 0) {
|
|
42
|
+
if (a === b) {
|
|
43
|
+
return [ai, bi];
|
|
44
|
+
}
|
|
45
|
+
begs = [];
|
|
46
|
+
left = str.length;
|
|
47
|
+
while (i >= 0 && !result) {
|
|
48
|
+
if (i == ai) {
|
|
49
|
+
begs.push(i);
|
|
50
|
+
ai = str.indexOf(a, i + 1);
|
|
51
|
+
} else if (begs.length == 1) {
|
|
52
|
+
result = [begs.pop(), bi];
|
|
53
|
+
} else {
|
|
54
|
+
beg = begs.pop();
|
|
55
|
+
if (beg < left) {
|
|
56
|
+
left = beg;
|
|
57
|
+
right = bi;
|
|
58
|
+
}
|
|
59
|
+
bi = str.indexOf(b, i + 1);
|
|
60
|
+
}
|
|
61
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
62
|
+
}
|
|
63
|
+
if (begs.length) {
|
|
64
|
+
result = [left, right];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// ../../node_modules/.pnpm/minimatch@5.0.1/node_modules/minimatch/lib/path.js
|
|
73
|
+
var require_path = __commonJS({
|
|
74
|
+
"../../node_modules/.pnpm/minimatch@5.0.1/node_modules/minimatch/lib/path.js"(exports, module) {
|
|
75
|
+
var isWindows = typeof process === "object" && process && process.platform === "win32";
|
|
76
|
+
module.exports = isWindows ? { sep: "\\" } : { sep: "/" };
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// ../../node_modules/.pnpm/brace-expansion@2.1.1/node_modules/brace-expansion/index.js
|
|
81
|
+
var require_brace_expansion = __commonJS({
|
|
82
|
+
"../../node_modules/.pnpm/brace-expansion@2.1.1/node_modules/brace-expansion/index.js"(exports, module) {
|
|
83
|
+
var balanced = require_balanced_match();
|
|
84
|
+
module.exports = expandTop;
|
|
85
|
+
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
86
|
+
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
87
|
+
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
88
|
+
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
89
|
+
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
90
|
+
function numeric(str) {
|
|
91
|
+
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
92
|
+
}
|
|
93
|
+
function escapeBraces(str) {
|
|
94
|
+
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
95
|
+
}
|
|
96
|
+
function unescapeBraces(str) {
|
|
97
|
+
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
98
|
+
}
|
|
99
|
+
function parseCommaParts(str) {
|
|
100
|
+
if (!str)
|
|
101
|
+
return [""];
|
|
102
|
+
var parts = [];
|
|
103
|
+
var m = balanced("{", "}", str);
|
|
104
|
+
if (!m)
|
|
105
|
+
return str.split(",");
|
|
106
|
+
var pre = m.pre;
|
|
107
|
+
var body = m.body;
|
|
108
|
+
var post = m.post;
|
|
109
|
+
var p = pre.split(",");
|
|
110
|
+
p[p.length - 1] += "{" + body + "}";
|
|
111
|
+
var postParts = parseCommaParts(post);
|
|
112
|
+
if (post.length) {
|
|
113
|
+
p[p.length - 1] += postParts.shift();
|
|
114
|
+
p.push.apply(p, postParts);
|
|
115
|
+
}
|
|
116
|
+
parts.push.apply(parts, p);
|
|
117
|
+
return parts;
|
|
118
|
+
}
|
|
119
|
+
function expandTop(str, options) {
|
|
120
|
+
if (!str)
|
|
121
|
+
return [];
|
|
122
|
+
options = options || {};
|
|
123
|
+
var max = options.max == null ? Infinity : options.max;
|
|
124
|
+
if (str.substr(0, 2) === "{}") {
|
|
125
|
+
str = "\\{\\}" + str.substr(2);
|
|
126
|
+
}
|
|
127
|
+
return expand(escapeBraces(str), max, true).map(unescapeBraces);
|
|
128
|
+
}
|
|
129
|
+
function embrace(str) {
|
|
130
|
+
return "{" + str + "}";
|
|
131
|
+
}
|
|
132
|
+
function isPadded(el) {
|
|
133
|
+
return /^-?0\d/.test(el);
|
|
134
|
+
}
|
|
135
|
+
function lte(i, y) {
|
|
136
|
+
return i <= y;
|
|
137
|
+
}
|
|
138
|
+
function gte(i, y) {
|
|
139
|
+
return i >= y;
|
|
140
|
+
}
|
|
141
|
+
function expand(str, max, isTop) {
|
|
142
|
+
var expansions = [];
|
|
143
|
+
var m = balanced("{", "}", str);
|
|
144
|
+
if (!m)
|
|
145
|
+
return [str];
|
|
146
|
+
var pre = m.pre;
|
|
147
|
+
var post = m.post.length ? expand(m.post, max, false) : [""];
|
|
148
|
+
if (/\$$/.test(m.pre)) {
|
|
149
|
+
for (var k = 0; k < post.length && k < max; k++) {
|
|
150
|
+
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
151
|
+
expansions.push(expansion);
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
155
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
156
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
|
157
|
+
var isOptions = m.body.indexOf(",") >= 0;
|
|
158
|
+
if (!isSequence && !isOptions) {
|
|
159
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
160
|
+
str = m.pre + "{" + m.body + escClose + m.post;
|
|
161
|
+
return expand(str, max, true);
|
|
162
|
+
}
|
|
163
|
+
return [str];
|
|
164
|
+
}
|
|
165
|
+
var n;
|
|
166
|
+
if (isSequence) {
|
|
167
|
+
n = m.body.split(/\.\./);
|
|
168
|
+
} else {
|
|
169
|
+
n = parseCommaParts(m.body);
|
|
170
|
+
if (n.length === 1) {
|
|
171
|
+
n = expand(n[0], max, false).map(embrace);
|
|
172
|
+
if (n.length === 1) {
|
|
173
|
+
return post.map(function(p) {
|
|
174
|
+
return m.pre + n[0] + p;
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
var N;
|
|
180
|
+
if (isSequence) {
|
|
181
|
+
var x = numeric(n[0]);
|
|
182
|
+
var y = numeric(n[1]);
|
|
183
|
+
var width = Math.max(n[0].length, n[1].length);
|
|
184
|
+
var incr = n.length == 3 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
185
|
+
var test = lte;
|
|
186
|
+
var reverse = y < x;
|
|
187
|
+
if (reverse) {
|
|
188
|
+
incr *= -1;
|
|
189
|
+
test = gte;
|
|
190
|
+
}
|
|
191
|
+
var pad = n.some(isPadded);
|
|
192
|
+
N = [];
|
|
193
|
+
for (var i = x; test(i, y) && N.length < max; i += incr) {
|
|
194
|
+
var c;
|
|
195
|
+
if (isAlphaSequence) {
|
|
196
|
+
c = String.fromCharCode(i);
|
|
197
|
+
if (c === "\\")
|
|
198
|
+
c = "";
|
|
199
|
+
} else {
|
|
200
|
+
c = String(i);
|
|
201
|
+
if (pad) {
|
|
202
|
+
var need = width - c.length;
|
|
203
|
+
if (need > 0) {
|
|
204
|
+
var z = new Array(need + 1).join("0");
|
|
205
|
+
if (i < 0)
|
|
206
|
+
c = "-" + z + c.slice(1);
|
|
207
|
+
else
|
|
208
|
+
c = z + c;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
N.push(c);
|
|
213
|
+
}
|
|
214
|
+
} else {
|
|
215
|
+
N = [];
|
|
216
|
+
for (var j = 0; j < n.length; j++) {
|
|
217
|
+
N.push.apply(N, expand(n[j], max, false));
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
for (var j = 0; j < N.length; j++) {
|
|
221
|
+
for (var k = 0; k < post.length && expansions.length < max; k++) {
|
|
222
|
+
var expansion = pre + N[j] + post[k];
|
|
223
|
+
if (!isTop || isSequence || expansion)
|
|
224
|
+
expansions.push(expansion);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return expansions;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
// ../../node_modules/.pnpm/minimatch@5.0.1/node_modules/minimatch/minimatch.js
|
|
234
|
+
var require_minimatch = __commonJS({
|
|
235
|
+
"../../node_modules/.pnpm/minimatch@5.0.1/node_modules/minimatch/minimatch.js"(exports, module) {
|
|
236
|
+
var minimatch = module.exports = (p, pattern, options = {}) => {
|
|
237
|
+
assertValidPattern(pattern);
|
|
238
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
239
|
+
return false;
|
|
240
|
+
}
|
|
241
|
+
return new Minimatch(pattern, options).match(p);
|
|
242
|
+
};
|
|
243
|
+
module.exports = minimatch;
|
|
244
|
+
var path = require_path();
|
|
245
|
+
minimatch.sep = path.sep;
|
|
246
|
+
var GLOBSTAR = Symbol("globstar **");
|
|
247
|
+
minimatch.GLOBSTAR = GLOBSTAR;
|
|
248
|
+
var expand = require_brace_expansion();
|
|
249
|
+
var plTypes = {
|
|
250
|
+
"!": { open: "(?:(?!(?:", close: "))[^/]*?)" },
|
|
251
|
+
"?": { open: "(?:", close: ")?" },
|
|
252
|
+
"+": { open: "(?:", close: ")+" },
|
|
253
|
+
"*": { open: "(?:", close: ")*" },
|
|
254
|
+
"@": { open: "(?:", close: ")" }
|
|
255
|
+
};
|
|
256
|
+
var qmark = "[^/]";
|
|
257
|
+
var star = qmark + "*?";
|
|
258
|
+
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
259
|
+
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
260
|
+
var charSet = (s) => s.split("").reduce((set, c) => {
|
|
261
|
+
set[c] = true;
|
|
262
|
+
return set;
|
|
263
|
+
}, {});
|
|
264
|
+
var reSpecials = charSet("().*{}+?[]^$\\!");
|
|
265
|
+
var addPatternStartSet = charSet("[.(");
|
|
266
|
+
var slashSplit = /\/+/;
|
|
267
|
+
minimatch.filter = (pattern, options = {}) => (p, i, list) => minimatch(p, pattern, options);
|
|
268
|
+
var ext = (a, b = {}) => {
|
|
269
|
+
const t = {};
|
|
270
|
+
Object.keys(a).forEach((k) => t[k] = a[k]);
|
|
271
|
+
Object.keys(b).forEach((k) => t[k] = b[k]);
|
|
272
|
+
return t;
|
|
273
|
+
};
|
|
274
|
+
minimatch.defaults = (def) => {
|
|
275
|
+
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
276
|
+
return minimatch;
|
|
277
|
+
}
|
|
278
|
+
const orig = minimatch;
|
|
279
|
+
const m = (p, pattern, options) => orig(p, pattern, ext(def, options));
|
|
280
|
+
m.Minimatch = class Minimatch extends orig.Minimatch {
|
|
281
|
+
constructor(pattern, options) {
|
|
282
|
+
super(pattern, ext(def, options));
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
m.Minimatch.defaults = (options) => orig.defaults(ext(def, options)).Minimatch;
|
|
286
|
+
m.filter = (pattern, options) => orig.filter(pattern, ext(def, options));
|
|
287
|
+
m.defaults = (options) => orig.defaults(ext(def, options));
|
|
288
|
+
m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options));
|
|
289
|
+
m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options));
|
|
290
|
+
m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options));
|
|
291
|
+
return m;
|
|
292
|
+
};
|
|
293
|
+
minimatch.braceExpand = (pattern, options) => braceExpand(pattern, options);
|
|
294
|
+
var braceExpand = (pattern, options = {}) => {
|
|
295
|
+
assertValidPattern(pattern);
|
|
296
|
+
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
297
|
+
return [pattern];
|
|
298
|
+
}
|
|
299
|
+
return expand(pattern);
|
|
300
|
+
};
|
|
301
|
+
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
302
|
+
var assertValidPattern = (pattern) => {
|
|
303
|
+
if (typeof pattern !== "string") {
|
|
304
|
+
throw new TypeError("invalid pattern");
|
|
305
|
+
}
|
|
306
|
+
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
307
|
+
throw new TypeError("pattern is too long");
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
var SUBPARSE = Symbol("subparse");
|
|
311
|
+
minimatch.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe();
|
|
312
|
+
minimatch.match = (list, pattern, options = {}) => {
|
|
313
|
+
const mm = new Minimatch(pattern, options);
|
|
314
|
+
list = list.filter((f) => mm.match(f));
|
|
315
|
+
if (mm.options.nonull && !list.length) {
|
|
316
|
+
list.push(pattern);
|
|
317
|
+
}
|
|
318
|
+
return list;
|
|
319
|
+
};
|
|
320
|
+
var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
|
|
321
|
+
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
322
|
+
var Minimatch = class {
|
|
323
|
+
constructor(pattern, options) {
|
|
324
|
+
assertValidPattern(pattern);
|
|
325
|
+
if (!options)
|
|
326
|
+
options = {};
|
|
327
|
+
this.options = options;
|
|
328
|
+
this.set = [];
|
|
329
|
+
this.pattern = pattern;
|
|
330
|
+
this.regexp = null;
|
|
331
|
+
this.negate = false;
|
|
332
|
+
this.comment = false;
|
|
333
|
+
this.empty = false;
|
|
334
|
+
this.partial = !!options.partial;
|
|
335
|
+
this.make();
|
|
336
|
+
}
|
|
337
|
+
debug() {
|
|
338
|
+
}
|
|
339
|
+
make() {
|
|
340
|
+
const pattern = this.pattern;
|
|
341
|
+
const options = this.options;
|
|
342
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
343
|
+
this.comment = true;
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (!pattern) {
|
|
347
|
+
this.empty = true;
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
this.parseNegate();
|
|
351
|
+
let set = this.globSet = this.braceExpand();
|
|
352
|
+
if (options.debug)
|
|
353
|
+
this.debug = (...args) => console.error(...args);
|
|
354
|
+
this.debug(this.pattern, set);
|
|
355
|
+
set = this.globParts = set.map((s) => s.split(slashSplit));
|
|
356
|
+
this.debug(this.pattern, set);
|
|
357
|
+
set = set.map((s, si, set2) => s.map(this.parse, this));
|
|
358
|
+
this.debug(this.pattern, set);
|
|
359
|
+
set = set.filter((s) => s.indexOf(false) === -1);
|
|
360
|
+
this.debug(this.pattern, set);
|
|
361
|
+
this.set = set;
|
|
362
|
+
}
|
|
363
|
+
parseNegate() {
|
|
364
|
+
if (this.options.nonegate)
|
|
365
|
+
return;
|
|
366
|
+
const pattern = this.pattern;
|
|
367
|
+
let negate = false;
|
|
368
|
+
let negateOffset = 0;
|
|
369
|
+
for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++) {
|
|
370
|
+
negate = !negate;
|
|
371
|
+
negateOffset++;
|
|
372
|
+
}
|
|
373
|
+
if (negateOffset)
|
|
374
|
+
this.pattern = pattern.substr(negateOffset);
|
|
375
|
+
this.negate = negate;
|
|
376
|
+
}
|
|
377
|
+
// set partial to true to test if, for example,
|
|
378
|
+
// "/a/b" matches the start of "/*/b/*/d"
|
|
379
|
+
// Partial means, if you run out of file before you run
|
|
380
|
+
// out of pattern, then that's fine, as long as all
|
|
381
|
+
// the parts match.
|
|
382
|
+
matchOne(file, pattern, partial) {
|
|
383
|
+
var options = this.options;
|
|
384
|
+
this.debug(
|
|
385
|
+
"matchOne",
|
|
386
|
+
{ "this": this, file, pattern }
|
|
387
|
+
);
|
|
388
|
+
this.debug("matchOne", file.length, pattern.length);
|
|
389
|
+
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
390
|
+
this.debug("matchOne loop");
|
|
391
|
+
var p = pattern[pi];
|
|
392
|
+
var f = file[fi];
|
|
393
|
+
this.debug(pattern, p, f);
|
|
394
|
+
if (p === false)
|
|
395
|
+
return false;
|
|
396
|
+
if (p === GLOBSTAR) {
|
|
397
|
+
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
398
|
+
var fr = fi;
|
|
399
|
+
var pr = pi + 1;
|
|
400
|
+
if (pr === pl) {
|
|
401
|
+
this.debug("** at the end");
|
|
402
|
+
for (; fi < fl; fi++) {
|
|
403
|
+
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
404
|
+
return false;
|
|
405
|
+
}
|
|
406
|
+
return true;
|
|
407
|
+
}
|
|
408
|
+
while (fr < fl) {
|
|
409
|
+
var swallowee = file[fr];
|
|
410
|
+
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
411
|
+
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
412
|
+
this.debug("globstar found match!", fr, fl, swallowee);
|
|
413
|
+
return true;
|
|
414
|
+
} else {
|
|
415
|
+
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
416
|
+
this.debug("dot detected!", file, fr, pattern, pr);
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
this.debug("globstar swallow a segment, and continue");
|
|
420
|
+
fr++;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
if (partial) {
|
|
424
|
+
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
425
|
+
if (fr === fl)
|
|
426
|
+
return true;
|
|
427
|
+
}
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
var hit;
|
|
431
|
+
if (typeof p === "string") {
|
|
432
|
+
hit = f === p;
|
|
433
|
+
this.debug("string match", p, f, hit);
|
|
434
|
+
} else {
|
|
435
|
+
hit = f.match(p);
|
|
436
|
+
this.debug("pattern match", p, f, hit);
|
|
437
|
+
}
|
|
438
|
+
if (!hit)
|
|
439
|
+
return false;
|
|
440
|
+
}
|
|
441
|
+
if (fi === fl && pi === pl) {
|
|
442
|
+
return true;
|
|
443
|
+
} else if (fi === fl) {
|
|
444
|
+
return partial;
|
|
445
|
+
} else if (pi === pl) {
|
|
446
|
+
return fi === fl - 1 && file[fi] === "";
|
|
447
|
+
}
|
|
448
|
+
throw new Error("wtf?");
|
|
449
|
+
}
|
|
450
|
+
braceExpand() {
|
|
451
|
+
return braceExpand(this.pattern, this.options);
|
|
452
|
+
}
|
|
453
|
+
parse(pattern, isSub) {
|
|
454
|
+
assertValidPattern(pattern);
|
|
455
|
+
const options = this.options;
|
|
456
|
+
if (pattern === "**") {
|
|
457
|
+
if (!options.noglobstar)
|
|
458
|
+
return GLOBSTAR;
|
|
459
|
+
else
|
|
460
|
+
pattern = "*";
|
|
461
|
+
}
|
|
462
|
+
if (pattern === "")
|
|
463
|
+
return "";
|
|
464
|
+
let re = "";
|
|
465
|
+
let hasMagic = !!options.nocase;
|
|
466
|
+
let escaping = false;
|
|
467
|
+
const patternListStack = [];
|
|
468
|
+
const negativeLists = [];
|
|
469
|
+
let stateChar;
|
|
470
|
+
let inClass = false;
|
|
471
|
+
let reClassStart = -1;
|
|
472
|
+
let classStart = -1;
|
|
473
|
+
let cs;
|
|
474
|
+
let pl;
|
|
475
|
+
let sp;
|
|
476
|
+
const patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
477
|
+
const clearStateChar = () => {
|
|
478
|
+
if (stateChar) {
|
|
479
|
+
switch (stateChar) {
|
|
480
|
+
case "*":
|
|
481
|
+
re += star;
|
|
482
|
+
hasMagic = true;
|
|
483
|
+
break;
|
|
484
|
+
case "?":
|
|
485
|
+
re += qmark;
|
|
486
|
+
hasMagic = true;
|
|
487
|
+
break;
|
|
488
|
+
default:
|
|
489
|
+
re += "\\" + stateChar;
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
this.debug("clearStateChar %j %j", stateChar, re);
|
|
493
|
+
stateChar = false;
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
for (let i = 0, c; i < pattern.length && (c = pattern.charAt(i)); i++) {
|
|
497
|
+
this.debug("%s %s %s %j", pattern, i, re, c);
|
|
498
|
+
if (escaping) {
|
|
499
|
+
if (c === "/") {
|
|
500
|
+
return false;
|
|
501
|
+
}
|
|
502
|
+
if (reSpecials[c]) {
|
|
503
|
+
re += "\\";
|
|
504
|
+
}
|
|
505
|
+
re += c;
|
|
506
|
+
escaping = false;
|
|
507
|
+
continue;
|
|
508
|
+
}
|
|
509
|
+
switch (c) {
|
|
510
|
+
case "/": {
|
|
511
|
+
return false;
|
|
512
|
+
}
|
|
513
|
+
case "\\":
|
|
514
|
+
clearStateChar();
|
|
515
|
+
escaping = true;
|
|
516
|
+
continue;
|
|
517
|
+
case "?":
|
|
518
|
+
case "*":
|
|
519
|
+
case "+":
|
|
520
|
+
case "@":
|
|
521
|
+
case "!":
|
|
522
|
+
this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c);
|
|
523
|
+
if (inClass) {
|
|
524
|
+
this.debug(" in class");
|
|
525
|
+
if (c === "!" && i === classStart + 1)
|
|
526
|
+
c = "^";
|
|
527
|
+
re += c;
|
|
528
|
+
continue;
|
|
529
|
+
}
|
|
530
|
+
this.debug("call clearStateChar %j", stateChar);
|
|
531
|
+
clearStateChar();
|
|
532
|
+
stateChar = c;
|
|
533
|
+
if (options.noext)
|
|
534
|
+
clearStateChar();
|
|
535
|
+
continue;
|
|
536
|
+
case "(":
|
|
537
|
+
if (inClass) {
|
|
538
|
+
re += "(";
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
if (!stateChar) {
|
|
542
|
+
re += "\\(";
|
|
543
|
+
continue;
|
|
544
|
+
}
|
|
545
|
+
patternListStack.push({
|
|
546
|
+
type: stateChar,
|
|
547
|
+
start: i - 1,
|
|
548
|
+
reStart: re.length,
|
|
549
|
+
open: plTypes[stateChar].open,
|
|
550
|
+
close: plTypes[stateChar].close
|
|
551
|
+
});
|
|
552
|
+
re += stateChar === "!" ? "(?:(?!(?:" : "(?:";
|
|
553
|
+
this.debug("plType %j %j", stateChar, re);
|
|
554
|
+
stateChar = false;
|
|
555
|
+
continue;
|
|
556
|
+
case ")":
|
|
557
|
+
if (inClass || !patternListStack.length) {
|
|
558
|
+
re += "\\)";
|
|
559
|
+
continue;
|
|
560
|
+
}
|
|
561
|
+
clearStateChar();
|
|
562
|
+
hasMagic = true;
|
|
563
|
+
pl = patternListStack.pop();
|
|
564
|
+
re += pl.close;
|
|
565
|
+
if (pl.type === "!") {
|
|
566
|
+
negativeLists.push(pl);
|
|
567
|
+
}
|
|
568
|
+
pl.reEnd = re.length;
|
|
569
|
+
continue;
|
|
570
|
+
case "|":
|
|
571
|
+
if (inClass || !patternListStack.length) {
|
|
572
|
+
re += "\\|";
|
|
573
|
+
continue;
|
|
574
|
+
}
|
|
575
|
+
clearStateChar();
|
|
576
|
+
re += "|";
|
|
577
|
+
continue;
|
|
578
|
+
case "[":
|
|
579
|
+
clearStateChar();
|
|
580
|
+
if (inClass) {
|
|
581
|
+
re += "\\" + c;
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
inClass = true;
|
|
585
|
+
classStart = i;
|
|
586
|
+
reClassStart = re.length;
|
|
587
|
+
re += c;
|
|
588
|
+
continue;
|
|
589
|
+
case "]":
|
|
590
|
+
if (i === classStart + 1 || !inClass) {
|
|
591
|
+
re += "\\" + c;
|
|
592
|
+
continue;
|
|
593
|
+
}
|
|
594
|
+
cs = pattern.substring(classStart + 1, i);
|
|
595
|
+
try {
|
|
596
|
+
RegExp("[" + cs + "]");
|
|
597
|
+
} catch (er) {
|
|
598
|
+
sp = this.parse(cs, SUBPARSE);
|
|
599
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
600
|
+
hasMagic = hasMagic || sp[1];
|
|
601
|
+
inClass = false;
|
|
602
|
+
continue;
|
|
603
|
+
}
|
|
604
|
+
hasMagic = true;
|
|
605
|
+
inClass = false;
|
|
606
|
+
re += c;
|
|
607
|
+
continue;
|
|
608
|
+
default:
|
|
609
|
+
clearStateChar();
|
|
610
|
+
if (reSpecials[c] && !(c === "^" && inClass)) {
|
|
611
|
+
re += "\\";
|
|
612
|
+
}
|
|
613
|
+
re += c;
|
|
614
|
+
break;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
if (inClass) {
|
|
618
|
+
cs = pattern.substr(classStart + 1);
|
|
619
|
+
sp = this.parse(cs, SUBPARSE);
|
|
620
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0];
|
|
621
|
+
hasMagic = hasMagic || sp[1];
|
|
622
|
+
}
|
|
623
|
+
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
|
624
|
+
let tail;
|
|
625
|
+
tail = re.slice(pl.reStart + pl.open.length);
|
|
626
|
+
this.debug("setting tail", re, pl);
|
|
627
|
+
tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_, $1, $2) => {
|
|
628
|
+
if (!$2) {
|
|
629
|
+
$2 = "\\";
|
|
630
|
+
}
|
|
631
|
+
return $1 + $1 + $2 + "|";
|
|
632
|
+
});
|
|
633
|
+
this.debug("tail=%j\n %s", tail, tail, pl, re);
|
|
634
|
+
const t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type;
|
|
635
|
+
hasMagic = true;
|
|
636
|
+
re = re.slice(0, pl.reStart) + t + "\\(" + tail;
|
|
637
|
+
}
|
|
638
|
+
clearStateChar();
|
|
639
|
+
if (escaping) {
|
|
640
|
+
re += "\\\\";
|
|
641
|
+
}
|
|
642
|
+
const addPatternStart = addPatternStartSet[re.charAt(0)];
|
|
643
|
+
for (let n = negativeLists.length - 1; n > -1; n--) {
|
|
644
|
+
const nl = negativeLists[n];
|
|
645
|
+
const nlBefore = re.slice(0, nl.reStart);
|
|
646
|
+
const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
|
|
647
|
+
let nlAfter = re.slice(nl.reEnd);
|
|
648
|
+
const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
|
|
649
|
+
const openParensBefore = nlBefore.split("(").length - 1;
|
|
650
|
+
let cleanAfter = nlAfter;
|
|
651
|
+
for (let i = 0; i < openParensBefore; i++) {
|
|
652
|
+
cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
|
|
653
|
+
}
|
|
654
|
+
nlAfter = cleanAfter;
|
|
655
|
+
const dollar = nlAfter === "" && isSub !== SUBPARSE ? "$" : "";
|
|
656
|
+
re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
|
|
657
|
+
}
|
|
658
|
+
if (re !== "" && hasMagic) {
|
|
659
|
+
re = "(?=.)" + re;
|
|
660
|
+
}
|
|
661
|
+
if (addPatternStart) {
|
|
662
|
+
re = patternStart + re;
|
|
663
|
+
}
|
|
664
|
+
if (isSub === SUBPARSE) {
|
|
665
|
+
return [re, hasMagic];
|
|
666
|
+
}
|
|
667
|
+
if (!hasMagic) {
|
|
668
|
+
return globUnescape(pattern);
|
|
669
|
+
}
|
|
670
|
+
const flags = options.nocase ? "i" : "";
|
|
671
|
+
try {
|
|
672
|
+
return Object.assign(new RegExp("^" + re + "$", flags), {
|
|
673
|
+
_glob: pattern,
|
|
674
|
+
_src: re
|
|
675
|
+
});
|
|
676
|
+
} catch (er) {
|
|
677
|
+
return new RegExp("$.");
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
makeRe() {
|
|
681
|
+
if (this.regexp || this.regexp === false)
|
|
682
|
+
return this.regexp;
|
|
683
|
+
const set = this.set;
|
|
684
|
+
if (!set.length) {
|
|
685
|
+
this.regexp = false;
|
|
686
|
+
return this.regexp;
|
|
687
|
+
}
|
|
688
|
+
const options = this.options;
|
|
689
|
+
const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
|
|
690
|
+
const flags = options.nocase ? "i" : "";
|
|
691
|
+
let re = set.map((pattern) => {
|
|
692
|
+
pattern = pattern.map(
|
|
693
|
+
(p) => typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src
|
|
694
|
+
).reduce((set2, p) => {
|
|
695
|
+
if (!(set2[set2.length - 1] === GLOBSTAR && p === GLOBSTAR)) {
|
|
696
|
+
set2.push(p);
|
|
697
|
+
}
|
|
698
|
+
return set2;
|
|
699
|
+
}, []);
|
|
700
|
+
pattern.forEach((p, i) => {
|
|
701
|
+
if (p !== GLOBSTAR || pattern[i - 1] === GLOBSTAR) {
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
if (i === 0) {
|
|
705
|
+
if (pattern.length > 1) {
|
|
706
|
+
pattern[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + pattern[i + 1];
|
|
707
|
+
} else {
|
|
708
|
+
pattern[i] = twoStar;
|
|
709
|
+
}
|
|
710
|
+
} else if (i === pattern.length - 1) {
|
|
711
|
+
pattern[i - 1] += "(?:\\/|" + twoStar + ")?";
|
|
712
|
+
} else {
|
|
713
|
+
pattern[i - 1] += "(?:\\/|\\/" + twoStar + "\\/)" + pattern[i + 1];
|
|
714
|
+
pattern[i + 1] = GLOBSTAR;
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
return pattern.filter((p) => p !== GLOBSTAR).join("/");
|
|
718
|
+
}).join("|");
|
|
719
|
+
re = "^(?:" + re + ")$";
|
|
720
|
+
if (this.negate)
|
|
721
|
+
re = "^(?!" + re + ").*$";
|
|
722
|
+
try {
|
|
723
|
+
this.regexp = new RegExp(re, flags);
|
|
724
|
+
} catch (ex) {
|
|
725
|
+
this.regexp = false;
|
|
726
|
+
}
|
|
727
|
+
return this.regexp;
|
|
728
|
+
}
|
|
729
|
+
match(f, partial = this.partial) {
|
|
730
|
+
this.debug("match", f, this.pattern);
|
|
731
|
+
if (this.comment)
|
|
732
|
+
return false;
|
|
733
|
+
if (this.empty)
|
|
734
|
+
return f === "";
|
|
735
|
+
if (f === "/" && partial)
|
|
736
|
+
return true;
|
|
737
|
+
const options = this.options;
|
|
738
|
+
if (path.sep !== "/") {
|
|
739
|
+
f = f.split(path.sep).join("/");
|
|
740
|
+
}
|
|
741
|
+
f = f.split(slashSplit);
|
|
742
|
+
this.debug(this.pattern, "split", f);
|
|
743
|
+
const set = this.set;
|
|
744
|
+
this.debug(this.pattern, "set", set);
|
|
745
|
+
let filename;
|
|
746
|
+
for (let i = f.length - 1; i >= 0; i--) {
|
|
747
|
+
filename = f[i];
|
|
748
|
+
if (filename)
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
for (let i = 0; i < set.length; i++) {
|
|
752
|
+
const pattern = set[i];
|
|
753
|
+
let file = f;
|
|
754
|
+
if (options.matchBase && pattern.length === 1) {
|
|
755
|
+
file = [filename];
|
|
756
|
+
}
|
|
757
|
+
const hit = this.matchOne(file, pattern, partial);
|
|
758
|
+
if (hit) {
|
|
759
|
+
if (options.flipNegate)
|
|
760
|
+
return true;
|
|
761
|
+
return !this.negate;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
if (options.flipNegate)
|
|
765
|
+
return false;
|
|
766
|
+
return this.negate;
|
|
767
|
+
}
|
|
768
|
+
static defaults(def) {
|
|
769
|
+
return minimatch.defaults(def).Minimatch;
|
|
770
|
+
}
|
|
771
|
+
};
|
|
772
|
+
minimatch.Minimatch = Minimatch;
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
|
|
776
|
+
// ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
|
|
777
|
+
var require_inherits_browser = __commonJS({
|
|
778
|
+
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module) {
|
|
779
|
+
if (typeof Object.create === "function") {
|
|
780
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
781
|
+
if (superCtor) {
|
|
782
|
+
ctor.super_ = superCtor;
|
|
783
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
784
|
+
constructor: {
|
|
785
|
+
value: ctor,
|
|
786
|
+
enumerable: false,
|
|
787
|
+
writable: true,
|
|
788
|
+
configurable: true
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
} else {
|
|
794
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
795
|
+
if (superCtor) {
|
|
796
|
+
ctor.super_ = superCtor;
|
|
797
|
+
var TempCtor = function() {
|
|
798
|
+
};
|
|
799
|
+
TempCtor.prototype = superCtor.prototype;
|
|
800
|
+
ctor.prototype = new TempCtor();
|
|
801
|
+
ctor.prototype.constructor = ctor;
|
|
802
|
+
}
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
// ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
|
|
809
|
+
var require_inherits = __commonJS({
|
|
810
|
+
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module) {
|
|
811
|
+
try {
|
|
812
|
+
util = __require("util");
|
|
813
|
+
if (typeof util.inherits !== "function")
|
|
814
|
+
throw "";
|
|
815
|
+
module.exports = util.inherits;
|
|
816
|
+
} catch (e) {
|
|
817
|
+
module.exports = require_inherits_browser();
|
|
818
|
+
}
|
|
819
|
+
var util;
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
|
|
823
|
+
export {
|
|
824
|
+
require_balanced_match,
|
|
825
|
+
require_minimatch,
|
|
826
|
+
require_inherits
|
|
827
|
+
};
|