@shopify/create-app 3.73.2 → 3.74.0
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/{chokidar-5LLC6S6D.js → chokidar-LYCK7UIU.js} +20 -574
- package/dist/chunk-3I3GQNEW.js +95 -0
- package/dist/{chunk-CRHXI6PS.js → chunk-5DBS6QOU.js} +102 -638
- package/dist/{chunk-Z2K6T5HO.js → chunk-A2CUF3IE.js} +2 -2
- package/dist/{chunk-BUFIEXZ5.js → chunk-B3YWYURY.js} +701 -141
- package/dist/{chunk-K7HGDAI4.js → chunk-CDBXAE2F.js} +20 -104
- package/dist/chunk-CP3BRHWK.js +33 -0
- package/dist/{chunk-OAZFIMJ3.js → chunk-LQ2ZKVR6.js} +45 -115
- package/dist/{chunk-5MQK53ZB.js → chunk-MFOTVT4R.js} +489 -410
- package/dist/{chunk-3HBRMIPY.js → chunk-MW7RWHY5.js} +341 -211
- package/dist/{chunk-BOBYVF6Z.js → chunk-NBA3G6YQ.js} +55430 -36539
- package/dist/{chunk-7BLDARWR.js → chunk-PNW5KDM2.js} +40 -22
- package/dist/{chunk-55N7E5WW.js → chunk-QPEQYFIE.js} +1849 -4319
- package/dist/chunk-RVS7NPOH.js +15929 -0
- package/dist/{chunk-U52U2BAX.js → chunk-VK6YB4CW.js} +640 -1166
- package/dist/{chunk-EZFQXNK5.js → chunk-ZKGBK6WQ.js} +2 -2
- package/dist/chunk-ZUCWDIGE.js +111 -0
- package/dist/{custom-oclif-loader-COXUWDRX.js → custom-oclif-loader-3WFQ2GRD.js} +9 -8
- package/dist/{del-WGII2Y5S.js → del-CKAQ44SX.js} +5 -5
- package/dist/{devtools-K7FXBBFZ.js → devtools-6LOQORRT.js} +2 -2
- package/dist/{error-handler-NLEDBRP4.js → error-handler-N6P2X42R.js} +13 -12
- package/dist/hooks/postrun.js +14 -12
- package/dist/hooks/prerun.js +27 -12
- package/dist/{http-proxy-FXWKYHZ3.js → http-proxy-L3MCJRQS.js} +3 -2
- package/dist/index.js +19912 -17261
- package/dist/index.test.js +80 -133
- package/dist/lib-ZAUU5FOJ.js +11 -0
- package/dist/{local-WM5Y2GKE.js → local-EBAW6AUD.js} +11 -10
- package/dist/{node-package-manager-U4IKWNRD.js → node-package-manager-VTG2B4KW.js} +10 -9
- package/dist/out-AZBX4ITJ.js +7 -0
- package/dist/{path-2HZUSAGR.js → path-GWAZZN2N.js} +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-NMBUMLWD.js → ui-QBKDPUJX.js} +9 -8
- package/oclif.manifest.json +1 -1
- package/package.json +3 -4
- package/dist/chunk-JHSNPAK4.js +0 -15742
- package/dist/chunk-TKDPJ4ZU.js +0 -27
- package/dist/lib-CKTRCGTR.js +0 -11
- package/dist/out-JR4DWQ2G.js +0 -7
|
@@ -93,8 +93,690 @@ var require_glob_parent = __commonJS({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
// ../../node_modules/.pnpm/
|
|
96
|
+
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
97
|
+
var require_utils = __commonJS({
|
|
98
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
99
|
+
"use strict";
|
|
100
|
+
init_cjs_shims();
|
|
101
|
+
exports.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1;
|
|
102
|
+
exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
|
|
103
|
+
exports.exceedsLimit = (min, max, step = 1, limit) => limit === !1 || !exports.isInteger(min) || !exports.isInteger(max) ? !1 : (Number(max) - Number(min)) / Number(step) >= limit;
|
|
104
|
+
exports.escapeNode = (block, n = 0, type) => {
|
|
105
|
+
let node = block.nodes[n];
|
|
106
|
+
node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
|
|
107
|
+
};
|
|
108
|
+
exports.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0);
|
|
109
|
+
exports.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : !(block.commas >> 0 + block.ranges >> 0) || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1;
|
|
110
|
+
exports.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0;
|
|
111
|
+
exports.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []);
|
|
112
|
+
exports.flatten = (...args) => {
|
|
113
|
+
let result = [], flat = (arr) => {
|
|
114
|
+
for (let i = 0; i < arr.length; i++) {
|
|
115
|
+
let ele = arr[i];
|
|
116
|
+
if (Array.isArray(ele)) {
|
|
117
|
+
flat(ele);
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
ele !== void 0 && result.push(ele);
|
|
121
|
+
}
|
|
122
|
+
return result;
|
|
123
|
+
};
|
|
124
|
+
return flat(args), result;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
130
|
+
var require_stringify = __commonJS({
|
|
131
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
132
|
+
"use strict";
|
|
133
|
+
init_cjs_shims();
|
|
134
|
+
var utils = require_utils();
|
|
135
|
+
module.exports = (ast, options = {}) => {
|
|
136
|
+
let stringify = (node, parent = {}) => {
|
|
137
|
+
let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, output = "";
|
|
138
|
+
if (node.value)
|
|
139
|
+
return (invalidBlock || invalidNode) && utils.isOpenOrClose(node) ? "\\" + node.value : node.value;
|
|
140
|
+
if (node.value)
|
|
141
|
+
return node.value;
|
|
142
|
+
if (node.nodes)
|
|
143
|
+
for (let child of node.nodes)
|
|
144
|
+
output += stringify(child);
|
|
145
|
+
return output;
|
|
146
|
+
};
|
|
147
|
+
return stringify(ast);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
// ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
153
|
+
var require_is_number = __commonJS({
|
|
154
|
+
"../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
155
|
+
"use strict";
|
|
156
|
+
init_cjs_shims();
|
|
157
|
+
module.exports = function(num) {
|
|
158
|
+
return typeof num == "number" ? num - num === 0 : typeof num == "string" && num.trim() !== "" ? Number.isFinite ? Number.isFinite(+num) : isFinite(+num) : !1;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
164
|
+
var require_to_regex_range = __commonJS({
|
|
165
|
+
"../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
166
|
+
"use strict";
|
|
167
|
+
init_cjs_shims();
|
|
168
|
+
var isNumber = require_is_number(), toRegexRange = (min, max, options) => {
|
|
169
|
+
if (isNumber(min) === !1)
|
|
170
|
+
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
171
|
+
if (max === void 0 || min === max)
|
|
172
|
+
return String(min);
|
|
173
|
+
if (isNumber(max) === !1)
|
|
174
|
+
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
175
|
+
let opts = { relaxZeros: !0, ...options };
|
|
176
|
+
typeof opts.strictZeros == "boolean" && (opts.relaxZeros = opts.strictZeros === !1);
|
|
177
|
+
let relax = String(opts.relaxZeros), shorthand = String(opts.shorthand), capture = String(opts.capture), wrap = String(opts.wrap), cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
|
|
178
|
+
if (toRegexRange.cache.hasOwnProperty(cacheKey))
|
|
179
|
+
return toRegexRange.cache[cacheKey].result;
|
|
180
|
+
let a = Math.min(min, max), b = Math.max(min, max);
|
|
181
|
+
if (Math.abs(a - b) === 1) {
|
|
182
|
+
let result = min + "|" + max;
|
|
183
|
+
return opts.capture ? `(${result})` : opts.wrap === !1 ? result : `(?:${result})`;
|
|
184
|
+
}
|
|
185
|
+
let isPadded = hasPadding(min) || hasPadding(max), state = { min, max, a, b }, positives = [], negatives = [];
|
|
186
|
+
if (isPadded && (state.isPadded = isPadded, state.maxLen = String(state.max).length), a < 0) {
|
|
187
|
+
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
188
|
+
negatives = splitToPatterns(newMin, Math.abs(a), state, opts), a = state.a = 0;
|
|
189
|
+
}
|
|
190
|
+
return b >= 0 && (positives = splitToPatterns(a, b, state, opts)), state.negatives = negatives, state.positives = positives, state.result = collatePatterns(negatives, positives, opts), opts.capture === !0 ? state.result = `(${state.result})` : opts.wrap !== !1 && positives.length + negatives.length > 1 && (state.result = `(?:${state.result})`), toRegexRange.cache[cacheKey] = state, state.result;
|
|
191
|
+
};
|
|
192
|
+
function collatePatterns(neg, pos, options) {
|
|
193
|
+
let onlyNegative = filterPatterns(neg, pos, "-", !1, options) || [], onlyPositive = filterPatterns(pos, neg, "", !1, options) || [], intersected = filterPatterns(neg, pos, "-?", !0, options) || [];
|
|
194
|
+
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
195
|
+
}
|
|
196
|
+
function splitToRanges(min, max) {
|
|
197
|
+
let nines = 1, zeros = 1, stop = countNines(min, nines), stops = /* @__PURE__ */ new Set([max]);
|
|
198
|
+
for (; min <= stop && stop <= max; )
|
|
199
|
+
stops.add(stop), nines += 1, stop = countNines(min, nines);
|
|
200
|
+
for (stop = countZeros(max + 1, zeros) - 1; min < stop && stop <= max; )
|
|
201
|
+
stops.add(stop), zeros += 1, stop = countZeros(max + 1, zeros) - 1;
|
|
202
|
+
return stops = [...stops], stops.sort(compare), stops;
|
|
203
|
+
}
|
|
204
|
+
function rangeToPattern(start, stop, options) {
|
|
205
|
+
if (start === stop)
|
|
206
|
+
return { pattern: start, count: [], digits: 0 };
|
|
207
|
+
let zipped = zip(start, stop), digits = zipped.length, pattern = "", count = 0;
|
|
208
|
+
for (let i = 0; i < digits; i++) {
|
|
209
|
+
let [startDigit, stopDigit] = zipped[i];
|
|
210
|
+
startDigit === stopDigit ? pattern += startDigit : startDigit !== "0" || stopDigit !== "9" ? pattern += toCharacterClass(startDigit, stopDigit, options) : count++;
|
|
211
|
+
}
|
|
212
|
+
return count && (pattern += options.shorthand === !0 ? "\\d" : "[0-9]"), { pattern, count: [count], digits };
|
|
213
|
+
}
|
|
214
|
+
function splitToPatterns(min, max, tok, options) {
|
|
215
|
+
let ranges = splitToRanges(min, max), tokens = [], start = min, prev;
|
|
216
|
+
for (let i = 0; i < ranges.length; i++) {
|
|
217
|
+
let max2 = ranges[i], obj = rangeToPattern(String(start), String(max2), options), zeros = "";
|
|
218
|
+
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
219
|
+
prev.count.length > 1 && prev.count.pop(), prev.count.push(obj.count[0]), prev.string = prev.pattern + toQuantifier(prev.count), start = max2 + 1;
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
tok.isPadded && (zeros = padZeros(max2, tok, options)), obj.string = zeros + obj.pattern + toQuantifier(obj.count), tokens.push(obj), start = max2 + 1, prev = obj;
|
|
223
|
+
}
|
|
224
|
+
return tokens;
|
|
225
|
+
}
|
|
226
|
+
function filterPatterns(arr, comparison, prefix, intersection, options) {
|
|
227
|
+
let result = [];
|
|
228
|
+
for (let ele of arr) {
|
|
229
|
+
let { string } = ele;
|
|
230
|
+
!intersection && !contains(comparison, "string", string) && result.push(prefix + string), intersection && contains(comparison, "string", string) && result.push(prefix + string);
|
|
231
|
+
}
|
|
232
|
+
return result;
|
|
233
|
+
}
|
|
234
|
+
function zip(a, b) {
|
|
235
|
+
let arr = [];
|
|
236
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
237
|
+
return arr;
|
|
238
|
+
}
|
|
239
|
+
function compare(a, b) {
|
|
240
|
+
return a > b ? 1 : b > a ? -1 : 0;
|
|
241
|
+
}
|
|
242
|
+
function contains(arr, key, val) {
|
|
243
|
+
return arr.some((ele) => ele[key] === val);
|
|
244
|
+
}
|
|
245
|
+
function countNines(min, len) {
|
|
246
|
+
return Number(String(min).slice(0, -len) + "9".repeat(len));
|
|
247
|
+
}
|
|
248
|
+
function countZeros(integer, zeros) {
|
|
249
|
+
return integer - integer % Math.pow(10, zeros);
|
|
250
|
+
}
|
|
251
|
+
function toQuantifier(digits) {
|
|
252
|
+
let [start = 0, stop = ""] = digits;
|
|
253
|
+
return stop || start > 1 ? `{${start + (stop ? "," + stop : "")}}` : "";
|
|
254
|
+
}
|
|
255
|
+
function toCharacterClass(a, b, options) {
|
|
256
|
+
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
257
|
+
}
|
|
258
|
+
function hasPadding(str) {
|
|
259
|
+
return /^-?(0+)\d/.test(str);
|
|
260
|
+
}
|
|
261
|
+
function padZeros(value, tok, options) {
|
|
262
|
+
if (!tok.isPadded)
|
|
263
|
+
return value;
|
|
264
|
+
let diff = Math.abs(tok.maxLen - String(value).length), relax = options.relaxZeros !== !1;
|
|
265
|
+
switch (diff) {
|
|
266
|
+
case 0:
|
|
267
|
+
return "";
|
|
268
|
+
case 1:
|
|
269
|
+
return relax ? "0?" : "0";
|
|
270
|
+
case 2:
|
|
271
|
+
return relax ? "0{0,2}" : "00";
|
|
272
|
+
default:
|
|
273
|
+
return relax ? `0{0,${diff}}` : `0{${diff}}`;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
toRegexRange.cache = {};
|
|
277
|
+
toRegexRange.clearCache = () => toRegexRange.cache = {};
|
|
278
|
+
module.exports = toRegexRange;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
// ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
283
|
+
var require_fill_range = __commonJS({
|
|
284
|
+
"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
285
|
+
"use strict";
|
|
286
|
+
init_cjs_shims();
|
|
287
|
+
var util = __require("util"), toRegexRange = require_to_regex_range(), isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val), transform = (toNumber) => (value) => toNumber === !0 ? Number(value) : String(value), isValidValue = (value) => typeof value == "number" || typeof value == "string" && value !== "", isNumber = (num) => Number.isInteger(+num), zeros = (input) => {
|
|
288
|
+
let value = `${input}`, index = -1;
|
|
289
|
+
if (value[0] === "-" && (value = value.slice(1)), value === "0") return !1;
|
|
290
|
+
for (; value[++index] === "0"; ) ;
|
|
291
|
+
return index > 0;
|
|
292
|
+
}, stringify = (start, end, options) => typeof start == "string" || typeof end == "string" ? !0 : options.stringify === !0, pad = (input, maxLength, toNumber) => {
|
|
293
|
+
if (maxLength > 0) {
|
|
294
|
+
let dash = input[0] === "-" ? "-" : "";
|
|
295
|
+
dash && (input = input.slice(1)), input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
|
|
296
|
+
}
|
|
297
|
+
return toNumber === !1 ? String(input) : input;
|
|
298
|
+
}, toMaxLen = (input, maxLength) => {
|
|
299
|
+
let negative = input[0] === "-" ? "-" : "";
|
|
300
|
+
for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; ) input = "0" + input;
|
|
301
|
+
return negative ? "-" + input : input;
|
|
302
|
+
}, toSequence = (parts, options, maxLen) => {
|
|
303
|
+
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
304
|
+
let prefix = options.capture ? "" : "?:", positives = "", negatives = "", result;
|
|
305
|
+
return parts.positives.length && (positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|")), parts.negatives.length && (negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`), positives && negatives ? result = `${positives}|${negatives}` : result = positives || negatives, options.wrap ? `(${prefix}${result})` : result;
|
|
306
|
+
}, toRange = (a, b, isNumbers, options) => {
|
|
307
|
+
if (isNumbers)
|
|
308
|
+
return toRegexRange(a, b, { wrap: !1, ...options });
|
|
309
|
+
let start = String.fromCharCode(a);
|
|
310
|
+
if (a === b) return start;
|
|
311
|
+
let stop = String.fromCharCode(b);
|
|
312
|
+
return `[${start}-${stop}]`;
|
|
313
|
+
}, toRegex = (start, end, options) => {
|
|
314
|
+
if (Array.isArray(start)) {
|
|
315
|
+
let wrap = options.wrap === !0, prefix = options.capture ? "" : "?:";
|
|
316
|
+
return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
|
|
317
|
+
}
|
|
318
|
+
return toRegexRange(start, end, options);
|
|
319
|
+
}, rangeError = (...args) => new RangeError("Invalid range arguments: " + util.inspect(...args)), invalidRange = (start, end, options) => {
|
|
320
|
+
if (options.strictRanges === !0) throw rangeError([start, end]);
|
|
321
|
+
return [];
|
|
322
|
+
}, invalidStep = (step, options) => {
|
|
323
|
+
if (options.strictRanges === !0)
|
|
324
|
+
throw new TypeError(`Expected step "${step}" to be a number`);
|
|
325
|
+
return [];
|
|
326
|
+
}, fillNumbers = (start, end, step = 1, options = {}) => {
|
|
327
|
+
let a = Number(start), b = Number(end);
|
|
328
|
+
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
329
|
+
if (options.strictRanges === !0) throw rangeError([start, end]);
|
|
330
|
+
return [];
|
|
331
|
+
}
|
|
332
|
+
a === 0 && (a = 0), b === 0 && (b = 0);
|
|
333
|
+
let descending = a > b, startString = String(start), endString = String(end), stepString = String(step);
|
|
334
|
+
step = Math.max(Math.abs(step), 1);
|
|
335
|
+
let padded = zeros(startString) || zeros(endString) || zeros(stepString), maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0, toNumber = padded === !1 && stringify(start, end, options) === !1, format = options.transform || transform(toNumber);
|
|
336
|
+
if (options.toRegex && step === 1)
|
|
337
|
+
return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), !0, options);
|
|
338
|
+
let parts = { negatives: [], positives: [] }, push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)), range = [], index = 0;
|
|
339
|
+
for (; descending ? a >= b : a <= b; )
|
|
340
|
+
options.toRegex === !0 && step > 1 ? push(a) : range.push(pad(format(a, index), maxLen, toNumber)), a = descending ? a - step : a + step, index++;
|
|
341
|
+
return options.toRegex === !0 ? step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: !1, ...options }) : range;
|
|
342
|
+
}, fillLetters = (start, end, step = 1, options = {}) => {
|
|
343
|
+
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1)
|
|
344
|
+
return invalidRange(start, end, options);
|
|
345
|
+
let format = options.transform || ((val) => String.fromCharCode(val)), a = `${start}`.charCodeAt(0), b = `${end}`.charCodeAt(0), descending = a > b, min = Math.min(a, b), max = Math.max(a, b);
|
|
346
|
+
if (options.toRegex && step === 1)
|
|
347
|
+
return toRange(min, max, !1, options);
|
|
348
|
+
let range = [], index = 0;
|
|
349
|
+
for (; descending ? a >= b : a <= b; )
|
|
350
|
+
range.push(format(a, index)), a = descending ? a - step : a + step, index++;
|
|
351
|
+
return options.toRegex === !0 ? toRegex(range, null, { wrap: !1, options }) : range;
|
|
352
|
+
}, fill = (start, end, step, options = {}) => {
|
|
353
|
+
if (end == null && isValidValue(start))
|
|
354
|
+
return [start];
|
|
355
|
+
if (!isValidValue(start) || !isValidValue(end))
|
|
356
|
+
return invalidRange(start, end, options);
|
|
357
|
+
if (typeof step == "function")
|
|
358
|
+
return fill(start, end, 1, { transform: step });
|
|
359
|
+
if (isObject(step))
|
|
360
|
+
return fill(start, end, 0, step);
|
|
361
|
+
let opts = { ...options };
|
|
362
|
+
return opts.capture === !0 && (opts.wrap = !0), step = step || opts.step || 1, isNumber(step) ? isNumber(start) && isNumber(end) ? fillNumbers(start, end, step, opts) : fillLetters(start, end, Math.max(Math.abs(step), 1), opts) : step != null && !isObject(step) ? invalidStep(step, opts) : fill(start, end, 1, step);
|
|
363
|
+
};
|
|
364
|
+
module.exports = fill;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
369
|
+
var require_compile = __commonJS({
|
|
370
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
371
|
+
"use strict";
|
|
372
|
+
init_cjs_shims();
|
|
373
|
+
var fill = require_fill_range(), utils = require_utils(), compile = (ast, options = {}) => {
|
|
374
|
+
let walk = (node, parent = {}) => {
|
|
375
|
+
let invalidBlock = utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, invalid = invalidBlock === !0 || invalidNode === !0, prefix = options.escapeInvalid === !0 ? "\\" : "", output = "";
|
|
376
|
+
if (node.isOpen === !0)
|
|
377
|
+
return prefix + node.value;
|
|
378
|
+
if (node.isClose === !0)
|
|
379
|
+
return console.log("node.isClose", prefix, node.value), prefix + node.value;
|
|
380
|
+
if (node.type === "open")
|
|
381
|
+
return invalid ? prefix + node.value : "(";
|
|
382
|
+
if (node.type === "close")
|
|
383
|
+
return invalid ? prefix + node.value : ")";
|
|
384
|
+
if (node.type === "comma")
|
|
385
|
+
return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
386
|
+
if (node.value)
|
|
387
|
+
return node.value;
|
|
388
|
+
if (node.nodes && node.ranges > 0) {
|
|
389
|
+
let args = utils.reduce(node.nodes), range = fill(...args, { ...options, wrap: !1, toRegex: !0, strictZeros: !0 });
|
|
390
|
+
if (range.length !== 0)
|
|
391
|
+
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
392
|
+
}
|
|
393
|
+
if (node.nodes)
|
|
394
|
+
for (let child of node.nodes)
|
|
395
|
+
output += walk(child, node);
|
|
396
|
+
return output;
|
|
397
|
+
};
|
|
398
|
+
return walk(ast);
|
|
399
|
+
};
|
|
400
|
+
module.exports = compile;
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
405
|
+
var require_expand = __commonJS({
|
|
406
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
407
|
+
"use strict";
|
|
408
|
+
init_cjs_shims();
|
|
409
|
+
var fill = require_fill_range(), stringify = require_stringify(), utils = require_utils(), append = (queue = "", stash = "", enclose = !1) => {
|
|
410
|
+
let result = [];
|
|
411
|
+
if (queue = [].concat(queue), stash = [].concat(stash), !stash.length) return queue;
|
|
412
|
+
if (!queue.length)
|
|
413
|
+
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
414
|
+
for (let item of queue)
|
|
415
|
+
if (Array.isArray(item))
|
|
416
|
+
for (let value of item)
|
|
417
|
+
result.push(append(value, stash, enclose));
|
|
418
|
+
else
|
|
419
|
+
for (let ele of stash)
|
|
420
|
+
enclose === !0 && typeof ele == "string" && (ele = `{${ele}}`), result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
421
|
+
return utils.flatten(result);
|
|
422
|
+
}, expand = (ast, options = {}) => {
|
|
423
|
+
let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit, walk = (node, parent = {}) => {
|
|
424
|
+
node.queue = [];
|
|
425
|
+
let p = parent, q = parent.queue;
|
|
426
|
+
for (; p.type !== "brace" && p.type !== "root" && p.parent; )
|
|
427
|
+
p = p.parent, q = p.queue;
|
|
428
|
+
if (node.invalid || node.dollar) {
|
|
429
|
+
q.push(append(q.pop(), stringify(node, options)));
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (node.type === "brace" && node.invalid !== !0 && node.nodes.length === 2) {
|
|
433
|
+
q.push(append(q.pop(), ["{}"]));
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
if (node.nodes && node.ranges > 0) {
|
|
437
|
+
let args = utils.reduce(node.nodes);
|
|
438
|
+
if (utils.exceedsLimit(...args, options.step, rangeLimit))
|
|
439
|
+
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
440
|
+
let range = fill(...args, options);
|
|
441
|
+
range.length === 0 && (range = stringify(node, options)), q.push(append(q.pop(), range)), node.nodes = [];
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
let enclose = utils.encloseBrace(node), queue = node.queue, block = node;
|
|
445
|
+
for (; block.type !== "brace" && block.type !== "root" && block.parent; )
|
|
446
|
+
block = block.parent, queue = block.queue;
|
|
447
|
+
for (let i = 0; i < node.nodes.length; i++) {
|
|
448
|
+
let child = node.nodes[i];
|
|
449
|
+
if (child.type === "comma" && node.type === "brace") {
|
|
450
|
+
i === 1 && queue.push(""), queue.push("");
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
if (child.type === "close") {
|
|
454
|
+
q.push(append(q.pop(), queue, enclose));
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (child.value && child.type !== "open") {
|
|
458
|
+
queue.push(append(queue.pop(), child.value));
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
child.nodes && walk(child, node);
|
|
462
|
+
}
|
|
463
|
+
return queue;
|
|
464
|
+
};
|
|
465
|
+
return utils.flatten(walk(ast));
|
|
466
|
+
};
|
|
467
|
+
module.exports = expand;
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
97
472
|
var require_constants = __commonJS({
|
|
473
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
474
|
+
"use strict";
|
|
475
|
+
init_cjs_shims();
|
|
476
|
+
module.exports = {
|
|
477
|
+
MAX_LENGTH: 1e4,
|
|
478
|
+
// Digits
|
|
479
|
+
CHAR_0: "0",
|
|
480
|
+
/* 0 */
|
|
481
|
+
CHAR_9: "9",
|
|
482
|
+
/* 9 */
|
|
483
|
+
// Alphabet chars.
|
|
484
|
+
CHAR_UPPERCASE_A: "A",
|
|
485
|
+
/* A */
|
|
486
|
+
CHAR_LOWERCASE_A: "a",
|
|
487
|
+
/* a */
|
|
488
|
+
CHAR_UPPERCASE_Z: "Z",
|
|
489
|
+
/* Z */
|
|
490
|
+
CHAR_LOWERCASE_Z: "z",
|
|
491
|
+
/* z */
|
|
492
|
+
CHAR_LEFT_PARENTHESES: "(",
|
|
493
|
+
/* ( */
|
|
494
|
+
CHAR_RIGHT_PARENTHESES: ")",
|
|
495
|
+
/* ) */
|
|
496
|
+
CHAR_ASTERISK: "*",
|
|
497
|
+
/* * */
|
|
498
|
+
// Non-alphabetic chars.
|
|
499
|
+
CHAR_AMPERSAND: "&",
|
|
500
|
+
/* & */
|
|
501
|
+
CHAR_AT: "@",
|
|
502
|
+
/* @ */
|
|
503
|
+
CHAR_BACKSLASH: "\\",
|
|
504
|
+
/* \ */
|
|
505
|
+
CHAR_BACKTICK: "`",
|
|
506
|
+
/* ` */
|
|
507
|
+
CHAR_CARRIAGE_RETURN: "\r",
|
|
508
|
+
/* \r */
|
|
509
|
+
CHAR_CIRCUMFLEX_ACCENT: "^",
|
|
510
|
+
/* ^ */
|
|
511
|
+
CHAR_COLON: ":",
|
|
512
|
+
/* : */
|
|
513
|
+
CHAR_COMMA: ",",
|
|
514
|
+
/* , */
|
|
515
|
+
CHAR_DOLLAR: "$",
|
|
516
|
+
/* . */
|
|
517
|
+
CHAR_DOT: ".",
|
|
518
|
+
/* . */
|
|
519
|
+
CHAR_DOUBLE_QUOTE: '"',
|
|
520
|
+
/* " */
|
|
521
|
+
CHAR_EQUAL: "=",
|
|
522
|
+
/* = */
|
|
523
|
+
CHAR_EXCLAMATION_MARK: "!",
|
|
524
|
+
/* ! */
|
|
525
|
+
CHAR_FORM_FEED: "\f",
|
|
526
|
+
/* \f */
|
|
527
|
+
CHAR_FORWARD_SLASH: "/",
|
|
528
|
+
/* / */
|
|
529
|
+
CHAR_HASH: "#",
|
|
530
|
+
/* # */
|
|
531
|
+
CHAR_HYPHEN_MINUS: "-",
|
|
532
|
+
/* - */
|
|
533
|
+
CHAR_LEFT_ANGLE_BRACKET: "<",
|
|
534
|
+
/* < */
|
|
535
|
+
CHAR_LEFT_CURLY_BRACE: "{",
|
|
536
|
+
/* { */
|
|
537
|
+
CHAR_LEFT_SQUARE_BRACKET: "[",
|
|
538
|
+
/* [ */
|
|
539
|
+
CHAR_LINE_FEED: `
|
|
540
|
+
`,
|
|
541
|
+
/* \n */
|
|
542
|
+
CHAR_NO_BREAK_SPACE: "\xA0",
|
|
543
|
+
/* \u00A0 */
|
|
544
|
+
CHAR_PERCENT: "%",
|
|
545
|
+
/* % */
|
|
546
|
+
CHAR_PLUS: "+",
|
|
547
|
+
/* + */
|
|
548
|
+
CHAR_QUESTION_MARK: "?",
|
|
549
|
+
/* ? */
|
|
550
|
+
CHAR_RIGHT_ANGLE_BRACKET: ">",
|
|
551
|
+
/* > */
|
|
552
|
+
CHAR_RIGHT_CURLY_BRACE: "}",
|
|
553
|
+
/* } */
|
|
554
|
+
CHAR_RIGHT_SQUARE_BRACKET: "]",
|
|
555
|
+
/* ] */
|
|
556
|
+
CHAR_SEMICOLON: ";",
|
|
557
|
+
/* ; */
|
|
558
|
+
CHAR_SINGLE_QUOTE: "'",
|
|
559
|
+
/* ' */
|
|
560
|
+
CHAR_SPACE: " ",
|
|
561
|
+
/* */
|
|
562
|
+
CHAR_TAB: " ",
|
|
563
|
+
/* \t */
|
|
564
|
+
CHAR_UNDERSCORE: "_",
|
|
565
|
+
/* _ */
|
|
566
|
+
CHAR_VERTICAL_LINE: "|",
|
|
567
|
+
/* | */
|
|
568
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
|
|
569
|
+
/* \uFEFF */
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
575
|
+
var require_parse = __commonJS({
|
|
576
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
577
|
+
"use strict";
|
|
578
|
+
init_cjs_shims();
|
|
579
|
+
var stringify = require_stringify(), {
|
|
580
|
+
MAX_LENGTH,
|
|
581
|
+
CHAR_BACKSLASH,
|
|
582
|
+
/* \ */
|
|
583
|
+
CHAR_BACKTICK,
|
|
584
|
+
/* ` */
|
|
585
|
+
CHAR_COMMA,
|
|
586
|
+
/* , */
|
|
587
|
+
CHAR_DOT,
|
|
588
|
+
/* . */
|
|
589
|
+
CHAR_LEFT_PARENTHESES,
|
|
590
|
+
/* ( */
|
|
591
|
+
CHAR_RIGHT_PARENTHESES,
|
|
592
|
+
/* ) */
|
|
593
|
+
CHAR_LEFT_CURLY_BRACE,
|
|
594
|
+
/* { */
|
|
595
|
+
CHAR_RIGHT_CURLY_BRACE,
|
|
596
|
+
/* } */
|
|
597
|
+
CHAR_LEFT_SQUARE_BRACKET,
|
|
598
|
+
/* [ */
|
|
599
|
+
CHAR_RIGHT_SQUARE_BRACKET,
|
|
600
|
+
/* ] */
|
|
601
|
+
CHAR_DOUBLE_QUOTE,
|
|
602
|
+
/* " */
|
|
603
|
+
CHAR_SINGLE_QUOTE,
|
|
604
|
+
/* ' */
|
|
605
|
+
CHAR_NO_BREAK_SPACE,
|
|
606
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
607
|
+
} = require_constants(), parse = (input, options = {}) => {
|
|
608
|
+
if (typeof input != "string")
|
|
609
|
+
throw new TypeError("Expected a string");
|
|
610
|
+
let opts = options || {}, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
611
|
+
if (input.length > max)
|
|
612
|
+
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
613
|
+
let ast = { type: "root", input, nodes: [] }, stack = [ast], block = ast, prev = ast, brackets = 0, length = input.length, index = 0, depth = 0, value, advance = () => input[index++], push = (node) => {
|
|
614
|
+
if (node.type === "text" && prev.type === "dot" && (prev.type = "text"), prev && prev.type === "text" && node.type === "text") {
|
|
615
|
+
prev.value += node.value;
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
return block.nodes.push(node), node.parent = block, node.prev = prev, prev = node, node;
|
|
619
|
+
};
|
|
620
|
+
for (push({ type: "bos" }); index < length; )
|
|
621
|
+
if (block = stack[stack.length - 1], value = advance(), !(value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE)) {
|
|
622
|
+
if (value === CHAR_BACKSLASH) {
|
|
623
|
+
push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
|
|
624
|
+
continue;
|
|
625
|
+
}
|
|
626
|
+
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
627
|
+
push({ type: "text", value: "\\" + value });
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
631
|
+
brackets++;
|
|
632
|
+
let next;
|
|
633
|
+
for (; index < length && (next = advance()); ) {
|
|
634
|
+
if (value += next, next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
635
|
+
brackets++;
|
|
636
|
+
continue;
|
|
637
|
+
}
|
|
638
|
+
if (next === CHAR_BACKSLASH) {
|
|
639
|
+
value += advance();
|
|
640
|
+
continue;
|
|
641
|
+
}
|
|
642
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET && (brackets--, brackets === 0))
|
|
643
|
+
break;
|
|
644
|
+
}
|
|
645
|
+
push({ type: "text", value });
|
|
646
|
+
continue;
|
|
647
|
+
}
|
|
648
|
+
if (value === CHAR_LEFT_PARENTHESES) {
|
|
649
|
+
block = push({ type: "paren", nodes: [] }), stack.push(block), push({ type: "text", value });
|
|
650
|
+
continue;
|
|
651
|
+
}
|
|
652
|
+
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
653
|
+
if (block.type !== "paren") {
|
|
654
|
+
push({ type: "text", value });
|
|
655
|
+
continue;
|
|
656
|
+
}
|
|
657
|
+
block = stack.pop(), push({ type: "text", value }), block = stack[stack.length - 1];
|
|
658
|
+
continue;
|
|
659
|
+
}
|
|
660
|
+
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
661
|
+
let open = value, next;
|
|
662
|
+
for (options.keepQuotes !== !0 && (value = ""); index < length && (next = advance()); ) {
|
|
663
|
+
if (next === CHAR_BACKSLASH) {
|
|
664
|
+
value += next + advance();
|
|
665
|
+
continue;
|
|
666
|
+
}
|
|
667
|
+
if (next === open) {
|
|
668
|
+
options.keepQuotes === !0 && (value += next);
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
value += next;
|
|
672
|
+
}
|
|
673
|
+
push({ type: "text", value });
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
677
|
+
depth++;
|
|
678
|
+
let brace = {
|
|
679
|
+
type: "brace",
|
|
680
|
+
open: !0,
|
|
681
|
+
close: !1,
|
|
682
|
+
dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === !0,
|
|
683
|
+
depth,
|
|
684
|
+
commas: 0,
|
|
685
|
+
ranges: 0,
|
|
686
|
+
nodes: []
|
|
687
|
+
};
|
|
688
|
+
block = push(brace), stack.push(block), push({ type: "open", value });
|
|
689
|
+
continue;
|
|
690
|
+
}
|
|
691
|
+
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
692
|
+
if (block.type !== "brace") {
|
|
693
|
+
push({ type: "text", value });
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
let type = "close";
|
|
697
|
+
block = stack.pop(), block.close = !0, push({ type, value }), depth--, block = stack[stack.length - 1];
|
|
698
|
+
continue;
|
|
699
|
+
}
|
|
700
|
+
if (value === CHAR_COMMA && depth > 0) {
|
|
701
|
+
if (block.ranges > 0) {
|
|
702
|
+
block.ranges = 0;
|
|
703
|
+
let open = block.nodes.shift();
|
|
704
|
+
block.nodes = [open, { type: "text", value: stringify(block) }];
|
|
705
|
+
}
|
|
706
|
+
push({ type: "comma", value }), block.commas++;
|
|
707
|
+
continue;
|
|
708
|
+
}
|
|
709
|
+
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
710
|
+
let siblings = block.nodes;
|
|
711
|
+
if (depth === 0 || siblings.length === 0) {
|
|
712
|
+
push({ type: "text", value });
|
|
713
|
+
continue;
|
|
714
|
+
}
|
|
715
|
+
if (prev.type === "dot") {
|
|
716
|
+
if (block.range = [], prev.value += value, prev.type = "range", block.nodes.length !== 3 && block.nodes.length !== 5) {
|
|
717
|
+
block.invalid = !0, block.ranges = 0, prev.type = "text";
|
|
718
|
+
continue;
|
|
719
|
+
}
|
|
720
|
+
block.ranges++, block.args = [];
|
|
721
|
+
continue;
|
|
722
|
+
}
|
|
723
|
+
if (prev.type === "range") {
|
|
724
|
+
siblings.pop();
|
|
725
|
+
let before = siblings[siblings.length - 1];
|
|
726
|
+
before.value += prev.value + value, prev = before, block.ranges--;
|
|
727
|
+
continue;
|
|
728
|
+
}
|
|
729
|
+
push({ type: "dot", value });
|
|
730
|
+
continue;
|
|
731
|
+
}
|
|
732
|
+
push({ type: "text", value });
|
|
733
|
+
}
|
|
734
|
+
do
|
|
735
|
+
if (block = stack.pop(), block.type !== "root") {
|
|
736
|
+
block.nodes.forEach((node) => {
|
|
737
|
+
node.nodes || (node.type === "open" && (node.isOpen = !0), node.type === "close" && (node.isClose = !0), node.nodes || (node.type = "text"), node.invalid = !0);
|
|
738
|
+
});
|
|
739
|
+
let parent = stack[stack.length - 1], index2 = parent.nodes.indexOf(block);
|
|
740
|
+
parent.nodes.splice(index2, 1, ...block.nodes);
|
|
741
|
+
}
|
|
742
|
+
while (stack.length > 0);
|
|
743
|
+
return push({ type: "eos" }), ast;
|
|
744
|
+
};
|
|
745
|
+
module.exports = parse;
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
|
|
749
|
+
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
750
|
+
var require_braces = __commonJS({
|
|
751
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
752
|
+
"use strict";
|
|
753
|
+
init_cjs_shims();
|
|
754
|
+
var stringify = require_stringify(), compile = require_compile(), expand = require_expand(), parse = require_parse(), braces = (input, options = {}) => {
|
|
755
|
+
let output = [];
|
|
756
|
+
if (Array.isArray(input))
|
|
757
|
+
for (let pattern of input) {
|
|
758
|
+
let result = braces.create(pattern, options);
|
|
759
|
+
Array.isArray(result) ? output.push(...result) : output.push(result);
|
|
760
|
+
}
|
|
761
|
+
else
|
|
762
|
+
output = [].concat(braces.create(input, options));
|
|
763
|
+
return options && options.expand === !0 && options.nodupes === !0 && (output = [...new Set(output)]), output;
|
|
764
|
+
};
|
|
765
|
+
braces.parse = (input, options = {}) => parse(input, options);
|
|
766
|
+
braces.stringify = (input, options = {}) => stringify(typeof input == "string" ? braces.parse(input, options) : input, options);
|
|
767
|
+
braces.compile = (input, options = {}) => (typeof input == "string" && (input = braces.parse(input, options)), compile(input, options));
|
|
768
|
+
braces.expand = (input, options = {}) => {
|
|
769
|
+
typeof input == "string" && (input = braces.parse(input, options));
|
|
770
|
+
let result = expand(input, options);
|
|
771
|
+
return options.noempty === !0 && (result = result.filter(Boolean)), options.nodupes === !0 && (result = [...new Set(result)]), result;
|
|
772
|
+
};
|
|
773
|
+
braces.create = (input, options = {}) => input === "" || input.length < 3 ? [input] : options.expand !== !0 ? braces.compile(input, options) : braces.expand(input, options);
|
|
774
|
+
module.exports = braces;
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
// ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
779
|
+
var require_constants2 = __commonJS({
|
|
98
780
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
99
781
|
"use strict";
|
|
100
782
|
init_cjs_shims();
|
|
@@ -272,7 +954,7 @@ var require_constants = __commonJS({
|
|
|
272
954
|
});
|
|
273
955
|
|
|
274
956
|
// ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
275
|
-
var
|
|
957
|
+
var require_utils2 = __commonJS({
|
|
276
958
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
277
959
|
"use strict";
|
|
278
960
|
init_cjs_shims();
|
|
@@ -281,7 +963,7 @@ var require_utils = __commonJS({
|
|
|
281
963
|
REGEX_REMOVE_BACKSLASH,
|
|
282
964
|
REGEX_SPECIAL_CHARS,
|
|
283
965
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
284
|
-
} =
|
|
966
|
+
} = require_constants2();
|
|
285
967
|
exports.isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val);
|
|
286
968
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
287
969
|
exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
|
|
@@ -313,7 +995,7 @@ var require_scan = __commonJS({
|
|
|
313
995
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
314
996
|
"use strict";
|
|
315
997
|
init_cjs_shims();
|
|
316
|
-
var utils =
|
|
998
|
+
var utils = require_utils2(), {
|
|
317
999
|
CHAR_ASTERISK,
|
|
318
1000
|
/* * */
|
|
319
1001
|
CHAR_AT,
|
|
@@ -344,7 +1026,7 @@ var require_scan = __commonJS({
|
|
|
344
1026
|
/* ) */
|
|
345
1027
|
CHAR_RIGHT_SQUARE_BRACKET
|
|
346
1028
|
/* ] */
|
|
347
|
-
} =
|
|
1029
|
+
} = require_constants2(), isPathSeparator = (code) => code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH, depth = (token) => {
|
|
348
1030
|
token.isPrefix !== !0 && (token.depth = token.isGlobstar ? 1 / 0 : 1);
|
|
349
1031
|
}, scan = (input, options) => {
|
|
350
1032
|
let opts = options || {}, length = input.length - 1, scanToEnd = opts.parts === !0 || opts.scanToEnd === !0, slashes = [], tokens = [], parts = [], str = input, index = -1, start = 0, lastIndex = 0, isBrace = !1, isBracket = !1, isGlob = !1, isExtglob = !1, isGlobstar = !1, braceEscaped = !1, backslashes = !1, negated = !1, negatedExtglob = !1, finished = !1, braces = 0, prev, code, token = { value: "", depth: 0, isGlob: !1 }, eos = () => index >= length, peek = () => str.charCodeAt(index + 1), advance = () => (prev = code, str.charCodeAt(++index));
|
|
@@ -496,11 +1178,11 @@ var require_scan = __commonJS({
|
|
|
496
1178
|
});
|
|
497
1179
|
|
|
498
1180
|
// ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
499
|
-
var
|
|
1181
|
+
var require_parse2 = __commonJS({
|
|
500
1182
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
501
1183
|
"use strict";
|
|
502
1184
|
init_cjs_shims();
|
|
503
|
-
var constants =
|
|
1185
|
+
var constants = require_constants2(), utils = require_utils2(), {
|
|
504
1186
|
MAX_LENGTH,
|
|
505
1187
|
POSIX_REGEX_SOURCE,
|
|
506
1188
|
REGEX_NON_SPECIAL_CHARS,
|
|
@@ -946,7 +1628,7 @@ var require_picomatch = __commonJS({
|
|
|
946
1628
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
947
1629
|
"use strict";
|
|
948
1630
|
init_cjs_shims();
|
|
949
|
-
var path = __require("path"), scan = require_scan(), parse =
|
|
1631
|
+
var path = __require("path"), scan = require_scan(), parse = require_parse2(), utils = require_utils2(), constants = require_constants2(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
|
|
950
1632
|
if (Array.isArray(glob)) {
|
|
951
1633
|
let fns = glob.map((input) => picomatch(input, options, returnState));
|
|
952
1634
|
return (str) => {
|
|
@@ -1022,141 +1704,11 @@ var require_picomatch2 = __commonJS({
|
|
|
1022
1704
|
}
|
|
1023
1705
|
});
|
|
1024
1706
|
|
|
1025
|
-
// ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
1026
|
-
var require_is_number = __commonJS({
|
|
1027
|
-
"../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
1028
|
-
"use strict";
|
|
1029
|
-
init_cjs_shims();
|
|
1030
|
-
module.exports = function(num) {
|
|
1031
|
-
return typeof num == "number" ? num - num === 0 : typeof num == "string" && num.trim() !== "" ? Number.isFinite ? Number.isFinite(+num) : isFinite(+num) : !1;
|
|
1032
|
-
};
|
|
1033
|
-
}
|
|
1034
|
-
});
|
|
1035
|
-
|
|
1036
|
-
// ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
1037
|
-
var require_to_regex_range = __commonJS({
|
|
1038
|
-
"../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
1039
|
-
"use strict";
|
|
1040
|
-
init_cjs_shims();
|
|
1041
|
-
var isNumber = require_is_number(), toRegexRange = (min, max, options) => {
|
|
1042
|
-
if (isNumber(min) === !1)
|
|
1043
|
-
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
1044
|
-
if (max === void 0 || min === max)
|
|
1045
|
-
return String(min);
|
|
1046
|
-
if (isNumber(max) === !1)
|
|
1047
|
-
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
1048
|
-
let opts = { relaxZeros: !0, ...options };
|
|
1049
|
-
typeof opts.strictZeros == "boolean" && (opts.relaxZeros = opts.strictZeros === !1);
|
|
1050
|
-
let relax = String(opts.relaxZeros), shorthand = String(opts.shorthand), capture = String(opts.capture), wrap = String(opts.wrap), cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
|
|
1051
|
-
if (toRegexRange.cache.hasOwnProperty(cacheKey))
|
|
1052
|
-
return toRegexRange.cache[cacheKey].result;
|
|
1053
|
-
let a = Math.min(min, max), b = Math.max(min, max);
|
|
1054
|
-
if (Math.abs(a - b) === 1) {
|
|
1055
|
-
let result = min + "|" + max;
|
|
1056
|
-
return opts.capture ? `(${result})` : opts.wrap === !1 ? result : `(?:${result})`;
|
|
1057
|
-
}
|
|
1058
|
-
let isPadded = hasPadding(min) || hasPadding(max), state = { min, max, a, b }, positives = [], negatives = [];
|
|
1059
|
-
if (isPadded && (state.isPadded = isPadded, state.maxLen = String(state.max).length), a < 0) {
|
|
1060
|
-
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
1061
|
-
negatives = splitToPatterns(newMin, Math.abs(a), state, opts), a = state.a = 0;
|
|
1062
|
-
}
|
|
1063
|
-
return b >= 0 && (positives = splitToPatterns(a, b, state, opts)), state.negatives = negatives, state.positives = positives, state.result = collatePatterns(negatives, positives, opts), opts.capture === !0 ? state.result = `(${state.result})` : opts.wrap !== !1 && positives.length + negatives.length > 1 && (state.result = `(?:${state.result})`), toRegexRange.cache[cacheKey] = state, state.result;
|
|
1064
|
-
};
|
|
1065
|
-
function collatePatterns(neg, pos, options) {
|
|
1066
|
-
let onlyNegative = filterPatterns(neg, pos, "-", !1, options) || [], onlyPositive = filterPatterns(pos, neg, "", !1, options) || [], intersected = filterPatterns(neg, pos, "-?", !0, options) || [];
|
|
1067
|
-
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
1068
|
-
}
|
|
1069
|
-
function splitToRanges(min, max) {
|
|
1070
|
-
let nines = 1, zeros = 1, stop = countNines(min, nines), stops = /* @__PURE__ */ new Set([max]);
|
|
1071
|
-
for (; min <= stop && stop <= max; )
|
|
1072
|
-
stops.add(stop), nines += 1, stop = countNines(min, nines);
|
|
1073
|
-
for (stop = countZeros(max + 1, zeros) - 1; min < stop && stop <= max; )
|
|
1074
|
-
stops.add(stop), zeros += 1, stop = countZeros(max + 1, zeros) - 1;
|
|
1075
|
-
return stops = [...stops], stops.sort(compare), stops;
|
|
1076
|
-
}
|
|
1077
|
-
function rangeToPattern(start, stop, options) {
|
|
1078
|
-
if (start === stop)
|
|
1079
|
-
return { pattern: start, count: [], digits: 0 };
|
|
1080
|
-
let zipped = zip(start, stop), digits = zipped.length, pattern = "", count = 0;
|
|
1081
|
-
for (let i = 0; i < digits; i++) {
|
|
1082
|
-
let [startDigit, stopDigit] = zipped[i];
|
|
1083
|
-
startDigit === stopDigit ? pattern += startDigit : startDigit !== "0" || stopDigit !== "9" ? pattern += toCharacterClass(startDigit, stopDigit, options) : count++;
|
|
1084
|
-
}
|
|
1085
|
-
return count && (pattern += options.shorthand === !0 ? "\\d" : "[0-9]"), { pattern, count: [count], digits };
|
|
1086
|
-
}
|
|
1087
|
-
function splitToPatterns(min, max, tok, options) {
|
|
1088
|
-
let ranges = splitToRanges(min, max), tokens = [], start = min, prev;
|
|
1089
|
-
for (let i = 0; i < ranges.length; i++) {
|
|
1090
|
-
let max2 = ranges[i], obj = rangeToPattern(String(start), String(max2), options), zeros = "";
|
|
1091
|
-
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
1092
|
-
prev.count.length > 1 && prev.count.pop(), prev.count.push(obj.count[0]), prev.string = prev.pattern + toQuantifier(prev.count), start = max2 + 1;
|
|
1093
|
-
continue;
|
|
1094
|
-
}
|
|
1095
|
-
tok.isPadded && (zeros = padZeros(max2, tok, options)), obj.string = zeros + obj.pattern + toQuantifier(obj.count), tokens.push(obj), start = max2 + 1, prev = obj;
|
|
1096
|
-
}
|
|
1097
|
-
return tokens;
|
|
1098
|
-
}
|
|
1099
|
-
function filterPatterns(arr, comparison, prefix, intersection, options) {
|
|
1100
|
-
let result = [];
|
|
1101
|
-
for (let ele of arr) {
|
|
1102
|
-
let { string } = ele;
|
|
1103
|
-
!intersection && !contains(comparison, "string", string) && result.push(prefix + string), intersection && contains(comparison, "string", string) && result.push(prefix + string);
|
|
1104
|
-
}
|
|
1105
|
-
return result;
|
|
1106
|
-
}
|
|
1107
|
-
function zip(a, b) {
|
|
1108
|
-
let arr = [];
|
|
1109
|
-
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
1110
|
-
return arr;
|
|
1111
|
-
}
|
|
1112
|
-
function compare(a, b) {
|
|
1113
|
-
return a > b ? 1 : b > a ? -1 : 0;
|
|
1114
|
-
}
|
|
1115
|
-
function contains(arr, key, val) {
|
|
1116
|
-
return arr.some((ele) => ele[key] === val);
|
|
1117
|
-
}
|
|
1118
|
-
function countNines(min, len) {
|
|
1119
|
-
return Number(String(min).slice(0, -len) + "9".repeat(len));
|
|
1120
|
-
}
|
|
1121
|
-
function countZeros(integer, zeros) {
|
|
1122
|
-
return integer - integer % Math.pow(10, zeros);
|
|
1123
|
-
}
|
|
1124
|
-
function toQuantifier(digits) {
|
|
1125
|
-
let [start = 0, stop = ""] = digits;
|
|
1126
|
-
return stop || start > 1 ? `{${start + (stop ? "," + stop : "")}}` : "";
|
|
1127
|
-
}
|
|
1128
|
-
function toCharacterClass(a, b, options) {
|
|
1129
|
-
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
1130
|
-
}
|
|
1131
|
-
function hasPadding(str) {
|
|
1132
|
-
return /^-?(0+)\d/.test(str);
|
|
1133
|
-
}
|
|
1134
|
-
function padZeros(value, tok, options) {
|
|
1135
|
-
if (!tok.isPadded)
|
|
1136
|
-
return value;
|
|
1137
|
-
let diff = Math.abs(tok.maxLen - String(value).length), relax = options.relaxZeros !== !1;
|
|
1138
|
-
switch (diff) {
|
|
1139
|
-
case 0:
|
|
1140
|
-
return "";
|
|
1141
|
-
case 1:
|
|
1142
|
-
return relax ? "0?" : "0";
|
|
1143
|
-
case 2:
|
|
1144
|
-
return relax ? "0{0,2}" : "00";
|
|
1145
|
-
default:
|
|
1146
|
-
return relax ? `0{0,${diff}}` : `0{${diff}}`;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
toRegexRange.cache = {};
|
|
1150
|
-
toRegexRange.clearCache = () => toRegexRange.cache = {};
|
|
1151
|
-
module.exports = toRegexRange;
|
|
1152
|
-
}
|
|
1153
|
-
});
|
|
1154
|
-
|
|
1155
1707
|
export {
|
|
1156
1708
|
require_is_glob,
|
|
1157
1709
|
require_glob_parent,
|
|
1158
|
-
|
|
1159
|
-
require_utils,
|
|
1710
|
+
require_braces,
|
|
1711
|
+
require_utils2 as require_utils,
|
|
1160
1712
|
require_picomatch2 as require_picomatch
|
|
1161
1713
|
};
|
|
1162
1714
|
/*! Bundled license information:
|
|
@@ -1192,5 +1744,13 @@ to-regex-range/index.js:
|
|
|
1192
1744
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
1193
1745
|
* Released under the MIT License.
|
|
1194
1746
|
*)
|
|
1747
|
+
|
|
1748
|
+
fill-range/index.js:
|
|
1749
|
+
(*!
|
|
1750
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
1751
|
+
*
|
|
1752
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
1753
|
+
* Licensed under the MIT License.
|
|
1754
|
+
*)
|
|
1195
1755
|
*/
|
|
1196
|
-
//# sourceMappingURL=chunk-
|
|
1756
|
+
//# sourceMappingURL=chunk-B3YWYURY.js.map
|