@parcel/utils 2.8.3 → 2.8.4-nightly.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/lib/index.js +1342 -580
- package/lib/index.js.map +1 -1
- package/package.json +11 -9
- package/src/BitSet.js +126 -0
- package/src/alternatives.js +2 -0
- package/src/collection.js +6 -3
- package/src/config.js +72 -50
- package/src/hash.js +15 -0
- package/src/index.js +8 -1
- package/src/prettyDiagnostic.js +8 -4
- package/src/shared-buffer.js +0 -1
- package/test/BitSet.test.js +119 -0
package/lib/index.js
CHANGED
|
@@ -5,8 +5,8 @@ var $8C1kk$parcellogger = require("@parcel/logger");
|
|
|
5
5
|
var $8C1kk$crypto = require("crypto");
|
|
6
6
|
var $8C1kk$os = require("os");
|
|
7
7
|
var $8C1kk$util = require("util");
|
|
8
|
-
var $8C1kk$fs = require("fs");
|
|
9
8
|
var $8C1kk$events = require("events");
|
|
9
|
+
var $8C1kk$fs = require("fs");
|
|
10
10
|
var $8C1kk$parcelcodeframe = require("@parcel/codeframe");
|
|
11
11
|
var $8C1kk$parcelmarkdownansi = require("@parcel/markdown-ansi");
|
|
12
12
|
var $8C1kk$chalk = require("chalk");
|
|
@@ -1170,7 +1170,7 @@ var $5MQDC = parcelRequire("5MQDC");
|
|
|
1170
1170
|
* Tokenize input until we reach end-of-string
|
|
1171
1171
|
*/ while(!eos()){
|
|
1172
1172
|
value = advance();
|
|
1173
|
-
if (value === "\
|
|
1173
|
+
if (value === "\x00") continue;
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Escaped characters
|
|
1176
1176
|
*/ if (value === "\\") {
|
|
@@ -1856,19 +1856,19 @@ parcelRequire.register("1Sf6D", function(module, exports) {
|
|
|
1856
1856
|
/* eslint-disable no-new-wrappers, no-eval, camelcase, operator-linebreak */ module.exports = makeParserClass((parcelRequire("8E52p")));
|
|
1857
1857
|
module.exports.makeParserClass = makeParserClass;
|
|
1858
1858
|
class TomlError extends Error {
|
|
1859
|
-
constructor(
|
|
1860
|
-
super(
|
|
1859
|
+
constructor(msg11){
|
|
1860
|
+
super(msg11);
|
|
1861
1861
|
this.name = "TomlError";
|
|
1862
1862
|
/* istanbul ignore next */ if (Error.captureStackTrace) Error.captureStackTrace(this, TomlError);
|
|
1863
1863
|
this.fromTOML = true;
|
|
1864
1864
|
this.wrapped = null;
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
1867
|
-
TomlError.wrap = (
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
return
|
|
1867
|
+
TomlError.wrap = (err11)=>{
|
|
1868
|
+
const terr11 = new TomlError(err11.message);
|
|
1869
|
+
terr11.code = err11.code;
|
|
1870
|
+
terr11.wrapped = err11;
|
|
1871
|
+
return terr11;
|
|
1872
1872
|
};
|
|
1873
1873
|
module.exports.TomlError = TomlError;
|
|
1874
1874
|
|
|
@@ -1936,23 +1936,23 @@ const escapes = {
|
|
|
1936
1936
|
[CHAR_QUOT]: '"',
|
|
1937
1937
|
[CHAR_BSOL]: "\\"
|
|
1938
1938
|
};
|
|
1939
|
-
function isDigit(
|
|
1940
|
-
return
|
|
1939
|
+
function isDigit(cp11) {
|
|
1940
|
+
return cp11 >= CHAR_0 && cp11 <= CHAR_9;
|
|
1941
1941
|
}
|
|
1942
|
-
function isHexit(
|
|
1943
|
-
return
|
|
1942
|
+
function isHexit(cp11) {
|
|
1943
|
+
return cp11 >= CHAR_A && cp11 <= CHAR_F || cp11 >= CHAR_a && cp11 <= CHAR_f || cp11 >= CHAR_0 && cp11 <= CHAR_9;
|
|
1944
1944
|
}
|
|
1945
|
-
function isBit(
|
|
1946
|
-
return
|
|
1945
|
+
function isBit(cp11) {
|
|
1946
|
+
return cp11 === CHAR_1 || cp11 === CHAR_0;
|
|
1947
1947
|
}
|
|
1948
|
-
function isOctit(
|
|
1949
|
-
return
|
|
1948
|
+
function isOctit(cp11) {
|
|
1949
|
+
return cp11 >= CHAR_0 && cp11 <= CHAR_7;
|
|
1950
1950
|
}
|
|
1951
|
-
function isAlphaNumQuoteHyphen(
|
|
1952
|
-
return
|
|
1951
|
+
function isAlphaNumQuoteHyphen(cp11) {
|
|
1952
|
+
return cp11 >= CHAR_A && cp11 <= CHAR_Z || cp11 >= CHAR_a && cp11 <= CHAR_z || cp11 >= CHAR_0 && cp11 <= CHAR_9 || cp11 === CHAR_APOS || cp11 === CHAR_QUOT || cp11 === CHAR_LOWBAR || cp11 === CHAR_HYPHEN;
|
|
1953
1953
|
}
|
|
1954
|
-
function isAlphaNumHyphen(
|
|
1955
|
-
return
|
|
1954
|
+
function isAlphaNumHyphen(cp11) {
|
|
1955
|
+
return cp11 >= CHAR_A && cp11 <= CHAR_Z || cp11 >= CHAR_a && cp11 <= CHAR_z || cp11 >= CHAR_0 && cp11 <= CHAR_9 || cp11 === CHAR_LOWBAR || cp11 === CHAR_HYPHEN;
|
|
1956
1956
|
}
|
|
1957
1957
|
const _type = Symbol("type");
|
|
1958
1958
|
const _declared = Symbol("declared");
|
|
@@ -1964,9 +1964,9 @@ const descriptor = {
|
|
|
1964
1964
|
writable: true,
|
|
1965
1965
|
value: undefined
|
|
1966
1966
|
};
|
|
1967
|
-
function hasKey(
|
|
1968
|
-
if (hasOwnProperty.call(
|
|
1969
|
-
if (
|
|
1967
|
+
function hasKey(obj11, key11) {
|
|
1968
|
+
if (hasOwnProperty.call(obj11, key11)) return true;
|
|
1969
|
+
if (key11 === "__proto__") defineProperty(obj11, "__proto__", descriptor);
|
|
1970
1970
|
return false;
|
|
1971
1971
|
}
|
|
1972
1972
|
const INLINE_TABLE = Symbol("inline-table");
|
|
@@ -1977,9 +1977,9 @@ function InlineTable() {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
|
-
function isInlineTable(
|
|
1981
|
-
if (
|
|
1982
|
-
return
|
|
1980
|
+
function isInlineTable(obj11) {
|
|
1981
|
+
if (obj11 === null || typeof obj11 !== "object") return false;
|
|
1982
|
+
return obj11[_type] === INLINE_TABLE;
|
|
1983
1983
|
}
|
|
1984
1984
|
const TABLE = Symbol("table");
|
|
1985
1985
|
function Table() {
|
|
@@ -1993,25 +1993,25 @@ function Table() {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
|
-
function isTable(
|
|
1997
|
-
if (
|
|
1998
|
-
return
|
|
1996
|
+
function isTable(obj11) {
|
|
1997
|
+
if (obj11 === null || typeof obj11 !== "object") return false;
|
|
1998
|
+
return obj11[_type] === TABLE;
|
|
1999
1999
|
}
|
|
2000
2000
|
const _contentType = Symbol("content-type");
|
|
2001
2001
|
const INLINE_LIST = Symbol("inline-list");
|
|
2002
|
-
function InlineList(
|
|
2002
|
+
function InlineList(type11) {
|
|
2003
2003
|
return Object.defineProperties([], {
|
|
2004
2004
|
[_type]: {
|
|
2005
2005
|
value: INLINE_LIST
|
|
2006
2006
|
},
|
|
2007
2007
|
[_contentType]: {
|
|
2008
|
-
value:
|
|
2008
|
+
value: type11
|
|
2009
2009
|
}
|
|
2010
2010
|
});
|
|
2011
2011
|
}
|
|
2012
|
-
function isInlineList(
|
|
2013
|
-
if (
|
|
2014
|
-
return
|
|
2012
|
+
function isInlineList(obj11) {
|
|
2013
|
+
if (obj11 === null || typeof obj11 !== "object") return false;
|
|
2014
|
+
return obj11[_type] === INLINE_LIST;
|
|
2015
2015
|
}
|
|
2016
2016
|
const LIST = Symbol("list");
|
|
2017
2017
|
function List() {
|
|
@@ -2021,9 +2021,9 @@ function List() {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
|
-
function isList(
|
|
2025
|
-
if (
|
|
2026
|
-
return
|
|
2024
|
+
function isList(obj11) {
|
|
2025
|
+
if (obj11 === null || typeof obj11 !== "object") return false;
|
|
2026
|
+
return obj11[_type] === LIST;
|
|
2027
2027
|
}
|
|
2028
2028
|
// in an eval, to let bundlers not slurp in a util proxy
|
|
2029
2029
|
let _custom;
|
|
@@ -2034,10 +2034,10 @@ try {
|
|
|
2034
2034
|
/* eval require not available in transpiled bundle */ }
|
|
2035
2035
|
/* istanbul ignore next */ const _inspect = _custom || "inspect";
|
|
2036
2036
|
class BoxedBigInt {
|
|
2037
|
-
constructor(
|
|
2037
|
+
constructor(value11){
|
|
2038
2038
|
try {
|
|
2039
|
-
this.value = $parcel$global.BigInt.asIntN(64,
|
|
2040
|
-
} catch (
|
|
2039
|
+
this.value = $parcel$global.BigInt.asIntN(64, value11);
|
|
2040
|
+
} catch (_11) {
|
|
2041
2041
|
/* istanbul ignore next */ this.value = null;
|
|
2042
2042
|
}
|
|
2043
2043
|
Object.defineProperty(this, _type, {
|
|
@@ -2058,12 +2058,12 @@ class BoxedBigInt {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
}
|
|
2060
2060
|
const INTEGER = Symbol("integer");
|
|
2061
|
-
function Integer(
|
|
2062
|
-
let
|
|
2061
|
+
function Integer(value11) {
|
|
2062
|
+
let num11 = Number(value11);
|
|
2063
2063
|
// -0 is a float thing, not an int thing
|
|
2064
|
-
if (Object.is(
|
|
2065
|
-
/* istanbul ignore else */ if ($parcel$global.BigInt && !Number.isSafeInteger(
|
|
2066
|
-
else /* istanbul ignore next */ return Object.defineProperties(new Number(
|
|
2064
|
+
if (Object.is(num11, -0)) num11 = 0;
|
|
2065
|
+
/* istanbul ignore else */ if ($parcel$global.BigInt && !Number.isSafeInteger(num11)) return new BoxedBigInt(value11);
|
|
2066
|
+
else /* istanbul ignore next */ return Object.defineProperties(new Number(num11), {
|
|
2067
2067
|
isNaN: {
|
|
2068
2068
|
value: function() {
|
|
2069
2069
|
return isNaN(this);
|
|
@@ -2073,35 +2073,35 @@ function Integer(value) {
|
|
|
2073
2073
|
value: INTEGER
|
|
2074
2074
|
},
|
|
2075
2075
|
[_inspect]: {
|
|
2076
|
-
value: ()=>`[Integer: ${
|
|
2076
|
+
value: ()=>`[Integer: ${value11}]`
|
|
2077
2077
|
}
|
|
2078
2078
|
});
|
|
2079
2079
|
}
|
|
2080
|
-
function isInteger(
|
|
2081
|
-
if (
|
|
2082
|
-
return
|
|
2080
|
+
function isInteger(obj11) {
|
|
2081
|
+
if (obj11 === null || typeof obj11 !== "object") return false;
|
|
2082
|
+
return obj11[_type] === INTEGER;
|
|
2083
2083
|
}
|
|
2084
2084
|
const FLOAT = Symbol("float");
|
|
2085
|
-
function Float(
|
|
2086
|
-
/* istanbul ignore next */ return Object.defineProperties(new Number(
|
|
2085
|
+
function Float(value11) {
|
|
2086
|
+
/* istanbul ignore next */ return Object.defineProperties(new Number(value11), {
|
|
2087
2087
|
[_type]: {
|
|
2088
2088
|
value: FLOAT
|
|
2089
2089
|
},
|
|
2090
2090
|
[_inspect]: {
|
|
2091
|
-
value: ()=>`[Float: ${
|
|
2091
|
+
value: ()=>`[Float: ${value11}]`
|
|
2092
2092
|
}
|
|
2093
2093
|
});
|
|
2094
2094
|
}
|
|
2095
|
-
function isFloat(
|
|
2096
|
-
if (
|
|
2097
|
-
return
|
|
2095
|
+
function isFloat(obj11) {
|
|
2096
|
+
if (obj11 === null || typeof obj11 !== "object") return false;
|
|
2097
|
+
return obj11[_type] === FLOAT;
|
|
2098
2098
|
}
|
|
2099
|
-
function tomlType(
|
|
2100
|
-
const
|
|
2101
|
-
if (
|
|
2102
|
-
/* istanbul ignore if */ if (
|
|
2103
|
-
if (
|
|
2104
|
-
/* istanbul ignore else */ if (_type in
|
|
2099
|
+
function tomlType(value11) {
|
|
2100
|
+
const type11 = typeof value11;
|
|
2101
|
+
if (type11 === "object") {
|
|
2102
|
+
/* istanbul ignore if */ if (value11 === null) return "null";
|
|
2103
|
+
if (value11 instanceof Date) return "datetime";
|
|
2104
|
+
/* istanbul ignore else */ if (_type in value11) switch(value11[_type]){
|
|
2105
2105
|
case INLINE_TABLE:
|
|
2106
2106
|
return "inline-table";
|
|
2107
2107
|
case INLINE_LIST:
|
|
@@ -2116,10 +2116,10 @@ function tomlType(value) {
|
|
|
2116
2116
|
return "integer";
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
|
-
return
|
|
2119
|
+
return type11;
|
|
2120
2120
|
}
|
|
2121
|
-
function makeParserClass(
|
|
2122
|
-
class
|
|
2121
|
+
function makeParserClass(Parser11) {
|
|
2122
|
+
class TOMLParser11 extends Parser11 {
|
|
2123
2123
|
constructor(){
|
|
2124
2124
|
super();
|
|
2125
2125
|
this.ctx = this.obj = Table();
|
|
@@ -2128,10 +2128,10 @@ function makeParserClass(Parser) {
|
|
|
2128
2128
|
return this.char === CHAR_NUM || this.char === CTRL_I || this.char === CHAR_SP || this.atEndOfLine();
|
|
2129
2129
|
}
|
|
2130
2130
|
atEndOfLine() {
|
|
2131
|
-
return this.char ===
|
|
2131
|
+
return this.char === Parser11.END || this.char === CTRL_J || this.char === CTRL_M;
|
|
2132
2132
|
}
|
|
2133
2133
|
parseStart() {
|
|
2134
|
-
if (this.char ===
|
|
2134
|
+
if (this.char === Parser11.END) return null;
|
|
2135
2135
|
else if (this.char === CHAR_LSQB) return this.call(this.parseTableOrList);
|
|
2136
2136
|
else if (this.char === CHAR_NUM) return this.call(this.parseComment);
|
|
2137
2137
|
else if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) return null;
|
|
@@ -2143,32 +2143,32 @@ function makeParserClass(Parser) {
|
|
|
2143
2143
|
parseWhitespaceToEOL() {
|
|
2144
2144
|
if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) return null;
|
|
2145
2145
|
else if (this.char === CHAR_NUM) return this.goto(this.parseComment);
|
|
2146
|
-
else if (this.char ===
|
|
2146
|
+
else if (this.char === Parser11.END || this.char === CTRL_J) return this.return();
|
|
2147
2147
|
else throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"));
|
|
2148
2148
|
}
|
|
2149
2149
|
/* ASSIGNMENT: key = value */ parseAssignStatement() {
|
|
2150
2150
|
return this.callNow(this.parseAssign, this.recordAssignStatement);
|
|
2151
2151
|
}
|
|
2152
|
-
recordAssignStatement(
|
|
2153
|
-
let
|
|
2154
|
-
let
|
|
2155
|
-
for (let
|
|
2156
|
-
if (hasKey(
|
|
2157
|
-
|
|
2152
|
+
recordAssignStatement(kv11) {
|
|
2153
|
+
let target11 = this.ctx;
|
|
2154
|
+
let finalKey11 = kv11.key.pop();
|
|
2155
|
+
for (let kw11 of kv11.key){
|
|
2156
|
+
if (hasKey(target11, kw11) && (!isTable(target11[kw11]) || target11[kw11][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
|
|
2157
|
+
target11 = target11[kw11] = target11[kw11] || Table();
|
|
2158
2158
|
}
|
|
2159
|
-
if (hasKey(
|
|
2159
|
+
if (hasKey(target11, finalKey11)) throw this.error(new TomlError("Can't redefine existing key"));
|
|
2160
2160
|
// unbox our numbers
|
|
2161
|
-
if (isInteger(
|
|
2162
|
-
else
|
|
2161
|
+
if (isInteger(kv11.value) || isFloat(kv11.value)) target11[finalKey11] = kv11.value.valueOf();
|
|
2162
|
+
else target11[finalKey11] = kv11.value;
|
|
2163
2163
|
return this.goto(this.parseWhitespaceToEOL);
|
|
2164
2164
|
}
|
|
2165
2165
|
/* ASSSIGNMENT expression, key = value possibly inside an inline table */ parseAssign() {
|
|
2166
2166
|
return this.callNow(this.parseKeyword, this.recordAssignKeyword);
|
|
2167
2167
|
}
|
|
2168
|
-
recordAssignKeyword(
|
|
2169
|
-
if (this.state.resultTable) this.state.resultTable.push(
|
|
2168
|
+
recordAssignKeyword(key11) {
|
|
2169
|
+
if (this.state.resultTable) this.state.resultTable.push(key11);
|
|
2170
2170
|
else this.state.resultTable = [
|
|
2171
|
-
|
|
2171
|
+
key11
|
|
2172
2172
|
];
|
|
2173
2173
|
return this.goto(this.parseAssignKeywordPreDot);
|
|
2174
2174
|
}
|
|
@@ -2187,15 +2187,15 @@ function makeParserClass(Parser) {
|
|
|
2187
2187
|
if (this.char === CHAR_SP || this.char === CTRL_I) return null;
|
|
2188
2188
|
else return this.callNow(this.parseValue, this.recordAssignValue);
|
|
2189
2189
|
}
|
|
2190
|
-
recordAssignValue(
|
|
2190
|
+
recordAssignValue(value11) {
|
|
2191
2191
|
return this.returnNow({
|
|
2192
2192
|
key: this.state.resultTable,
|
|
2193
|
-
value:
|
|
2193
|
+
value: value11
|
|
2194
2194
|
});
|
|
2195
2195
|
}
|
|
2196
2196
|
/* COMMENTS: #...eol */ parseComment() {
|
|
2197
2197
|
do {
|
|
2198
|
-
if (this.char ===
|
|
2198
|
+
if (this.char === Parser11.END || this.char === CTRL_J) return this.return();
|
|
2199
2199
|
}while (this.nextChar());
|
|
2200
2200
|
}
|
|
2201
2201
|
/* TABLES AND LISTS, [foo] and [[foo]] */ parseTableOrList() {
|
|
@@ -2210,19 +2210,19 @@ function makeParserClass(Parser) {
|
|
|
2210
2210
|
if (this.char === CHAR_SP || this.char === CTRL_I) return null;
|
|
2211
2211
|
else return this.callNow(this.parseKeyword, this.parseTableMore);
|
|
2212
2212
|
}
|
|
2213
|
-
parseTableMore(
|
|
2213
|
+
parseTableMore(keyword11) {
|
|
2214
2214
|
if (this.char === CHAR_SP || this.char === CTRL_I) return null;
|
|
2215
2215
|
else if (this.char === CHAR_RSQB) {
|
|
2216
|
-
if (hasKey(this.ctx,
|
|
2216
|
+
if (hasKey(this.ctx, keyword11) && (!isTable(this.ctx[keyword11]) || this.ctx[keyword11][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
|
|
2217
2217
|
else {
|
|
2218
|
-
this.ctx = this.ctx[
|
|
2218
|
+
this.ctx = this.ctx[keyword11] = this.ctx[keyword11] || Table();
|
|
2219
2219
|
this.ctx[_declared] = true;
|
|
2220
2220
|
}
|
|
2221
2221
|
return this.next(this.parseWhitespaceToEOL);
|
|
2222
2222
|
} else if (this.char === CHAR_PERIOD) {
|
|
2223
|
-
if (!hasKey(this.ctx,
|
|
2224
|
-
else if (isTable(this.ctx[
|
|
2225
|
-
else if (isList(this.ctx[
|
|
2223
|
+
if (!hasKey(this.ctx, keyword11)) this.ctx = this.ctx[keyword11] = Table();
|
|
2224
|
+
else if (isTable(this.ctx[keyword11])) this.ctx = this.ctx[keyword11];
|
|
2225
|
+
else if (isList(this.ctx[keyword11])) this.ctx = this.ctx[keyword11][this.ctx[keyword11].length - 1];
|
|
2226
2226
|
else throw this.error(new TomlError("Can't redefine existing key"));
|
|
2227
2227
|
return this.next(this.parseTableNext);
|
|
2228
2228
|
} else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"));
|
|
@@ -2235,33 +2235,33 @@ function makeParserClass(Parser) {
|
|
|
2235
2235
|
if (this.char === CHAR_SP || this.char === CTRL_I) return null;
|
|
2236
2236
|
else return this.callNow(this.parseKeyword, this.parseListMore);
|
|
2237
2237
|
}
|
|
2238
|
-
parseListMore(
|
|
2238
|
+
parseListMore(keyword11) {
|
|
2239
2239
|
if (this.char === CHAR_SP || this.char === CTRL_I) return null;
|
|
2240
2240
|
else if (this.char === CHAR_RSQB) {
|
|
2241
|
-
if (!hasKey(this.ctx,
|
|
2242
|
-
if (isInlineList(this.ctx[
|
|
2243
|
-
else if (isList(this.ctx[
|
|
2244
|
-
const
|
|
2245
|
-
this.ctx[
|
|
2246
|
-
this.ctx =
|
|
2241
|
+
if (!hasKey(this.ctx, keyword11)) this.ctx[keyword11] = List();
|
|
2242
|
+
if (isInlineList(this.ctx[keyword11])) throw this.error(new TomlError("Can't extend an inline array"));
|
|
2243
|
+
else if (isList(this.ctx[keyword11])) {
|
|
2244
|
+
const next11 = Table();
|
|
2245
|
+
this.ctx[keyword11].push(next11);
|
|
2246
|
+
this.ctx = next11;
|
|
2247
2247
|
} else throw this.error(new TomlError("Can't redefine an existing key"));
|
|
2248
2248
|
return this.next(this.parseListEnd);
|
|
2249
2249
|
} else if (this.char === CHAR_PERIOD) {
|
|
2250
|
-
if (!hasKey(this.ctx,
|
|
2251
|
-
else if (isInlineList(this.ctx[
|
|
2252
|
-
else if (isInlineTable(this.ctx[
|
|
2253
|
-
else if (isList(this.ctx[
|
|
2254
|
-
else if (isTable(this.ctx[
|
|
2250
|
+
if (!hasKey(this.ctx, keyword11)) this.ctx = this.ctx[keyword11] = Table();
|
|
2251
|
+
else if (isInlineList(this.ctx[keyword11])) throw this.error(new TomlError("Can't extend an inline array"));
|
|
2252
|
+
else if (isInlineTable(this.ctx[keyword11])) throw this.error(new TomlError("Can't extend an inline table"));
|
|
2253
|
+
else if (isList(this.ctx[keyword11])) this.ctx = this.ctx[keyword11][this.ctx[keyword11].length - 1];
|
|
2254
|
+
else if (isTable(this.ctx[keyword11])) this.ctx = this.ctx[keyword11];
|
|
2255
2255
|
else throw this.error(new TomlError("Can't redefine an existing key"));
|
|
2256
2256
|
return this.next(this.parseListNext);
|
|
2257
2257
|
} else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"));
|
|
2258
2258
|
}
|
|
2259
|
-
parseListEnd(
|
|
2259
|
+
parseListEnd(keyword11) {
|
|
2260
2260
|
if (this.char === CHAR_RSQB) return this.next(this.parseWhitespaceToEOL);
|
|
2261
2261
|
else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"));
|
|
2262
2262
|
}
|
|
2263
2263
|
/* VALUE string, number, boolean, inline list, inline object */ parseValue() {
|
|
2264
|
-
if (this.char ===
|
|
2264
|
+
if (this.char === Parser11.END) throw this.error(new TomlError("Key without value"));
|
|
2265
2265
|
else if (this.char === CHAR_QUOT) return this.next(this.parseDoubleString);
|
|
2266
2266
|
if (this.char === CHAR_APOS) return this.next(this.parseSingleString);
|
|
2267
2267
|
else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) return this.goto(this.parseNumberSign);
|
|
@@ -2273,8 +2273,8 @@ function makeParserClass(Parser) {
|
|
|
2273
2273
|
else if (this.char === CHAR_LCUB) return this.call(this.parseInlineTable, this.recordValue);
|
|
2274
2274
|
else throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"));
|
|
2275
2275
|
}
|
|
2276
|
-
recordValue(
|
|
2277
|
-
return this.returnNow(
|
|
2276
|
+
recordValue(value11) {
|
|
2277
|
+
return this.returnNow(value11);
|
|
2278
2278
|
}
|
|
2279
2279
|
parseInf() {
|
|
2280
2280
|
if (this.char === CHAR_n) return this.next(this.parseInf2);
|
|
@@ -2301,7 +2301,7 @@ function makeParserClass(Parser) {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
/* KEYS: barewords */ parseBareKey() {
|
|
2303
2303
|
do {
|
|
2304
|
-
if (this.char ===
|
|
2304
|
+
if (this.char === Parser11.END) throw this.error(new TomlError("Key ended without value"));
|
|
2305
2305
|
else if (isAlphaNumHyphen(this.char)) this.consume();
|
|
2306
2306
|
else if (this.state.buf.length === 0) throw this.error(new TomlError("Empty bare keys are not allowed"));
|
|
2307
2307
|
else return this.returnNow();
|
|
@@ -2331,7 +2331,7 @@ function makeParserClass(Parser) {
|
|
|
2331
2331
|
parseLiteralMultiStringContent() {
|
|
2332
2332
|
do {
|
|
2333
2333
|
if (this.char === CHAR_APOS) return this.next(this.parseLiteralMultiEnd);
|
|
2334
|
-
else if (this.char ===
|
|
2334
|
+
else if (this.char === Parser11.END) throw this.error(new TomlError("Unterminated multi-line string"));
|
|
2335
2335
|
else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) throw this.errorControlCharInString();
|
|
2336
2336
|
else this.consume();
|
|
2337
2337
|
}while (this.nextChar());
|
|
@@ -2363,8 +2363,8 @@ function makeParserClass(Parser) {
|
|
|
2363
2363
|
else this.consume();
|
|
2364
2364
|
}while (this.nextChar());
|
|
2365
2365
|
}
|
|
2366
|
-
recordEscapeReplacement(
|
|
2367
|
-
this.state.buf +=
|
|
2366
|
+
recordEscapeReplacement(replacement11) {
|
|
2367
|
+
this.state.buf += replacement11;
|
|
2368
2368
|
return this.goto(this.parseBasicString);
|
|
2369
2369
|
}
|
|
2370
2370
|
parseMultiStringMaybe() {
|
|
@@ -2380,19 +2380,19 @@ function makeParserClass(Parser) {
|
|
|
2380
2380
|
do {
|
|
2381
2381
|
if (this.char === CHAR_BSOL) return this.call(this.parseMultiEscape, this.recordMultiEscapeReplacement);
|
|
2382
2382
|
else if (this.char === CHAR_QUOT) return this.next(this.parseMultiEnd);
|
|
2383
|
-
else if (this.char ===
|
|
2383
|
+
else if (this.char === Parser11.END) throw this.error(new TomlError("Unterminated multi-line string"));
|
|
2384
2384
|
else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) throw this.errorControlCharInString();
|
|
2385
2385
|
else this.consume();
|
|
2386
2386
|
}while (this.nextChar());
|
|
2387
2387
|
}
|
|
2388
2388
|
errorControlCharInString() {
|
|
2389
|
-
let
|
|
2390
|
-
if (this.char < 16)
|
|
2391
|
-
|
|
2392
|
-
return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${
|
|
2389
|
+
let displayCode11 = "\\u00";
|
|
2390
|
+
if (this.char < 16) displayCode11 += "0";
|
|
2391
|
+
displayCode11 += this.char.toString(16);
|
|
2392
|
+
return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode11} instead`));
|
|
2393
2393
|
}
|
|
2394
|
-
recordMultiEscapeReplacement(
|
|
2395
|
-
this.state.buf +=
|
|
2394
|
+
recordMultiEscapeReplacement(replacement11) {
|
|
2395
|
+
this.state.buf += replacement11;
|
|
2396
2396
|
return this.goto(this.parseMultiStringContent);
|
|
2397
2397
|
}
|
|
2398
2398
|
parseMultiEnd() {
|
|
@@ -2430,13 +2430,13 @@ function makeParserClass(Parser) {
|
|
|
2430
2430
|
else if (this.char === CHAR_U) return this.call(this.parseLargeUnicode, this.parseUnicodeReturn);
|
|
2431
2431
|
else throw this.error(new TomlError("Unknown escape character: " + this.char));
|
|
2432
2432
|
}
|
|
2433
|
-
parseUnicodeReturn(
|
|
2433
|
+
parseUnicodeReturn(char11) {
|
|
2434
2434
|
try {
|
|
2435
|
-
const
|
|
2436
|
-
if (
|
|
2437
|
-
return this.returnNow(String.fromCodePoint(
|
|
2438
|
-
} catch (
|
|
2439
|
-
throw this.error(TomlError.wrap(
|
|
2435
|
+
const codePoint11 = parseInt(char11, 16);
|
|
2436
|
+
if (codePoint11 >= SURROGATE_FIRST && codePoint11 <= SURROGATE_LAST) throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));
|
|
2437
|
+
return this.returnNow(String.fromCodePoint(codePoint11));
|
|
2438
|
+
} catch (err11) {
|
|
2439
|
+
throw this.error(TomlError.wrap(err11));
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
2442
|
parseSmallUnicode() {
|
|
@@ -2487,9 +2487,9 @@ function makeParserClass(Parser) {
|
|
|
2487
2487
|
this.consume();
|
|
2488
2488
|
return this.call(this.parseNoUnder, this.parseNumberFloat);
|
|
2489
2489
|
} else {
|
|
2490
|
-
const
|
|
2491
|
-
/* istanbul ignore if */ if (
|
|
2492
|
-
else return this.returnNow(
|
|
2490
|
+
const result11 = Integer(this.state.buf);
|
|
2491
|
+
/* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
|
|
2492
|
+
else return this.returnNow(result11);
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
2495
|
parseNoUnder() {
|
|
@@ -2567,27 +2567,27 @@ function makeParserClass(Parser) {
|
|
|
2567
2567
|
if (isHexit(this.char)) this.consume();
|
|
2568
2568
|
else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);
|
|
2569
2569
|
else {
|
|
2570
|
-
const
|
|
2571
|
-
/* istanbul ignore if */ if (
|
|
2572
|
-
else return this.returnNow(
|
|
2570
|
+
const result11 = Integer(this.state.buf);
|
|
2571
|
+
/* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
|
|
2572
|
+
else return this.returnNow(result11);
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
parseIntegerOct() {
|
|
2576
2576
|
if (isOctit(this.char)) this.consume();
|
|
2577
2577
|
else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);
|
|
2578
2578
|
else {
|
|
2579
|
-
const
|
|
2580
|
-
/* istanbul ignore if */ if (
|
|
2581
|
-
else return this.returnNow(
|
|
2579
|
+
const result11 = Integer(this.state.buf);
|
|
2580
|
+
/* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
|
|
2581
|
+
else return this.returnNow(result11);
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
2584
|
parseIntegerBin() {
|
|
2585
2585
|
if (isBit(this.char)) this.consume();
|
|
2586
2586
|
else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);
|
|
2587
2587
|
else {
|
|
2588
|
-
const
|
|
2589
|
-
/* istanbul ignore if */ if (
|
|
2590
|
-
else return this.returnNow(
|
|
2588
|
+
const result11 = Integer(this.state.buf);
|
|
2589
|
+
/* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
|
|
2590
|
+
else return this.returnNow(result11);
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
/* DATETIME */ parseDateTime() {
|
|
@@ -2776,20 +2776,20 @@ function makeParserClass(Parser) {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
/* INLINE LISTS */ parseInlineList() {
|
|
2778
2778
|
if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) return null;
|
|
2779
|
-
else if (this.char ===
|
|
2779
|
+
else if (this.char === Parser11.END) throw this.error(new TomlError("Unterminated inline array"));
|
|
2780
2780
|
else if (this.char === CHAR_NUM) return this.call(this.parseComment);
|
|
2781
2781
|
else if (this.char === CHAR_RSQB) return this.return(this.state.resultArr || InlineList());
|
|
2782
2782
|
else return this.callNow(this.parseValue, this.recordInlineListValue);
|
|
2783
2783
|
}
|
|
2784
|
-
recordInlineListValue(
|
|
2784
|
+
recordInlineListValue(value11) {
|
|
2785
2785
|
if (this.state.resultArr) {
|
|
2786
|
-
const
|
|
2787
|
-
const
|
|
2788
|
-
if (
|
|
2789
|
-
} else this.state.resultArr = InlineList(tomlType(
|
|
2790
|
-
if (isFloat(
|
|
2791
|
-
this.state.resultArr.push(
|
|
2792
|
-
else this.state.resultArr.push(
|
|
2786
|
+
const listType11 = this.state.resultArr[_contentType];
|
|
2787
|
+
const valueType11 = tomlType(value11);
|
|
2788
|
+
if (listType11 !== valueType11) throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType11} and ${valueType11}`));
|
|
2789
|
+
} else this.state.resultArr = InlineList(tomlType(value11));
|
|
2790
|
+
if (isFloat(value11) || isInteger(value11)) // unbox now that we've verified they're ok
|
|
2791
|
+
this.state.resultArr.push(value11.valueOf());
|
|
2792
|
+
else this.state.resultArr.push(value11);
|
|
2793
2793
|
return this.goto(this.parseInlineListNext);
|
|
2794
2794
|
}
|
|
2795
2795
|
parseInlineListNext() {
|
|
@@ -2801,34 +2801,34 @@ function makeParserClass(Parser) {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
/* INLINE TABLE */ parseInlineTable() {
|
|
2803
2803
|
if (this.char === CHAR_SP || this.char === CTRL_I) return null;
|
|
2804
|
-
else if (this.char ===
|
|
2804
|
+
else if (this.char === Parser11.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
|
|
2805
2805
|
else if (this.char === CHAR_RCUB) return this.return(this.state.resultTable || InlineTable());
|
|
2806
2806
|
else {
|
|
2807
2807
|
if (!this.state.resultTable) this.state.resultTable = InlineTable();
|
|
2808
2808
|
return this.callNow(this.parseAssign, this.recordInlineTableValue);
|
|
2809
2809
|
}
|
|
2810
2810
|
}
|
|
2811
|
-
recordInlineTableValue(
|
|
2812
|
-
let
|
|
2813
|
-
let
|
|
2814
|
-
for (let
|
|
2815
|
-
if (hasKey(
|
|
2816
|
-
|
|
2811
|
+
recordInlineTableValue(kv11) {
|
|
2812
|
+
let target11 = this.state.resultTable;
|
|
2813
|
+
let finalKey11 = kv11.key.pop();
|
|
2814
|
+
for (let kw11 of kv11.key){
|
|
2815
|
+
if (hasKey(target11, kw11) && (!isTable(target11[kw11]) || target11[kw11][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
|
|
2816
|
+
target11 = target11[kw11] = target11[kw11] || Table();
|
|
2817
2817
|
}
|
|
2818
|
-
if (hasKey(
|
|
2819
|
-
if (isInteger(
|
|
2820
|
-
else
|
|
2818
|
+
if (hasKey(target11, finalKey11)) throw this.error(new TomlError("Can't redefine existing key"));
|
|
2819
|
+
if (isInteger(kv11.value) || isFloat(kv11.value)) target11[finalKey11] = kv11.value.valueOf();
|
|
2820
|
+
else target11[finalKey11] = kv11.value;
|
|
2821
2821
|
return this.goto(this.parseInlineTableNext);
|
|
2822
2822
|
}
|
|
2823
2823
|
parseInlineTableNext() {
|
|
2824
2824
|
if (this.char === CHAR_SP || this.char === CTRL_I) return null;
|
|
2825
|
-
else if (this.char ===
|
|
2825
|
+
else if (this.char === Parser11.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
|
|
2826
2826
|
else if (this.char === CHAR_COMMA) return this.next(this.parseInlineTable);
|
|
2827
2827
|
else if (this.char === CHAR_RCUB) return this.goto(this.parseInlineTable);
|
|
2828
2828
|
else throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"));
|
|
2829
2829
|
}
|
|
2830
2830
|
}
|
|
2831
|
-
return
|
|
2831
|
+
return TOMLParser11;
|
|
2832
2832
|
}
|
|
2833
2833
|
|
|
2834
2834
|
});
|
|
@@ -3440,6 +3440,7 @@ $parcel$export(module.exports, "setUnion", () => $9631335a11debdd4$export$667066
|
|
|
3440
3440
|
$parcel$export(module.exports, "resolveConfig", () => $10671d0be444e08b$export$7eca4ea16d4c8343);
|
|
3441
3441
|
$parcel$export(module.exports, "resolveConfigSync", () => $10671d0be444e08b$export$d175e66e9fcd7b75);
|
|
3442
3442
|
$parcel$export(module.exports, "loadConfig", () => $10671d0be444e08b$export$c1a4367d4847eb06);
|
|
3443
|
+
$parcel$export(module.exports, "readConfig", () => $10671d0be444e08b$export$f5327b421858c8cd);
|
|
3443
3444
|
$parcel$export(module.exports, "DefaultMap", () => $5783bf7916ff59db$export$674cd7dcb504ac5c);
|
|
3444
3445
|
$parcel$export(module.exports, "DefaultWeakMap", () => $5783bf7916ff59db$export$4924f7ffab2ae440);
|
|
3445
3446
|
$parcel$export(module.exports, "makeDeferredWithPromise", () => $75952a43539cb60f$export$93f345b3f0dd27e7);
|
|
@@ -3475,6 +3476,8 @@ $parcel$export(module.exports, "matchSourceMappingURL", () => $46fc74961fdcfe31$
|
|
|
3475
3476
|
$parcel$export(module.exports, "loadSourceMapUrl", () => $46fc74961fdcfe31$export$527a92fa675f5e93);
|
|
3476
3477
|
$parcel$export(module.exports, "loadSourceMap", () => $46fc74961fdcfe31$export$c500fecaca54de65);
|
|
3477
3478
|
$parcel$export(module.exports, "remapSourceLocation", () => $46fc74961fdcfe31$export$2fed780245c466c1);
|
|
3479
|
+
$parcel$export(module.exports, "BitSet", () => $2c32463ab90dab73$export$33dc8f3f7b9e35df);
|
|
3480
|
+
$parcel$export(module.exports, "stripAnsi", () => (/*@__PURE__*/$parcel$interopDefault($f709bcec854d2334$exports)));
|
|
3478
3481
|
function $fddc9169ba2fd655$export$2e2bcd8739ae039(string, startIndex = 0) {
|
|
3479
3482
|
let lines = 1;
|
|
3480
3483
|
for(let i = startIndex; i < string.length; i++)if (string.charAt(i) === "\n") lines++;
|
|
@@ -14669,7 +14672,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
|
|
|
14669
14672
|
var lHash = md.digest();
|
|
14670
14673
|
var PS = "";
|
|
14671
14674
|
var PS_length = maxLength - message.length;
|
|
14672
|
-
for(var i = 0; i < PS_length; i++)PS += "\
|
|
14675
|
+
for(var i = 0; i < PS_length; i++)PS += "\x00";
|
|
14673
14676
|
var DB = lHash.getBytes() + PS + "\x01" + message;
|
|
14674
14677
|
if (!seed) seed = $iGlOy.random.getBytes(md.digestLength);
|
|
14675
14678
|
else if (seed.length !== md.digestLength) {
|
|
@@ -14683,7 +14686,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
|
|
|
14683
14686
|
var seedMask = $564ac6480d83471d$var$rsa_mgf1(maskedDB, md.digestLength, mgf1Md);
|
|
14684
14687
|
var maskedSeed = $iGlOy.util.xorBytes(seed, seedMask, seed.length);
|
|
14685
14688
|
// return encoded message
|
|
14686
|
-
return "\
|
|
14689
|
+
return "\x00" + maskedSeed + maskedDB;
|
|
14687
14690
|
};
|
|
14688
14691
|
/**
|
|
14689
14692
|
* Decode the given RSAES-OAEP encoded message (EM) using key, with optional
|
|
@@ -14742,7 +14745,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
|
|
|
14742
14745
|
var db = $iGlOy.util.xorBytes(maskedDB, dbMask, maskedDB.length);
|
|
14743
14746
|
var lHashPrime = db.substring(0, md.digestLength);
|
|
14744
14747
|
// constant time check that all values match what is expected
|
|
14745
|
-
var error = y !== "\
|
|
14748
|
+
var error = y !== "\x00";
|
|
14746
14749
|
// constant time check lHash vs lHashPrime
|
|
14747
14750
|
for(var i = 0; i < md.digestLength; ++i)error |= lHash.charAt(i) !== lHashPrime.charAt(i);
|
|
14748
14751
|
// "constant time" find the 0x1 byte separating the padding (zeros) from the
|
|
@@ -26649,8 +26652,8 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
26649
26652
|
(lo >>> 29 | hi << 3) ^ // ROTR 61/(swap + ROTR 29)
|
|
26650
26653
|
hi >>> 6) >>> 0; // SHR 6
|
|
26651
26654
|
// low bits
|
|
26652
|
-
t1_lo = ((hi << 13 | lo >>> 19) ^
|
|
26653
|
-
lo << 3 | hi >>> 29) ^ // ROTR 61/(swap + ROTR 29)
|
|
26655
|
+
t1_lo = ((hi << 13 | lo >>> 19) ^ // ROTR 19
|
|
26656
|
+
(lo << 3 | hi >>> 29) ^ // ROTR 61/(swap + ROTR 29)
|
|
26654
26657
|
(hi << 26 | lo >>> 6)) >>> 0; // SHR 6
|
|
26655
26658
|
// for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x)
|
|
26656
26659
|
w15 = w[i - 15];
|
|
@@ -26662,8 +26665,8 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
26662
26665
|
hi >>> 7) >>> 0; // SHR 7
|
|
26663
26666
|
// low bits
|
|
26664
26667
|
t2_lo = ((hi << 31 | lo >>> 1) ^ // ROTR 1
|
|
26665
|
-
(hi << 24 | lo >>> 8) ^
|
|
26666
|
-
hi << 25 | lo >>> 7)) >>> 0; // SHR 7
|
|
26668
|
+
(hi << 24 | lo >>> 8) ^ // ROTR 8
|
|
26669
|
+
(hi << 25 | lo >>> 7)) >>> 0; // SHR 7
|
|
26667
26670
|
// sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow)
|
|
26668
26671
|
w7 = w[i - 7];
|
|
26669
26672
|
w16 = w[i - 16];
|
|
@@ -26691,22 +26694,22 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
26691
26694
|
// round function
|
|
26692
26695
|
for(i = 0; i < 80; ++i){
|
|
26693
26696
|
// Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e)
|
|
26694
|
-
s1_hi = ((e_hi >>> 14 | e_lo << 18) ^
|
|
26695
|
-
e_hi >>> 18 | e_lo << 14) ^
|
|
26696
|
-
e_lo >>> 9 | e_hi << 23)) >>> 0; // ROTR 41/(swap + ROTR 9)
|
|
26697
|
+
s1_hi = ((e_hi >>> 14 | e_lo << 18) ^ // ROTR 14
|
|
26698
|
+
(e_hi >>> 18 | e_lo << 14) ^ // ROTR 18
|
|
26699
|
+
(e_lo >>> 9 | e_hi << 23)) >>> 0; // ROTR 41/(swap + ROTR 9)
|
|
26697
26700
|
s1_lo = ((e_hi << 18 | e_lo >>> 14) ^ // ROTR 14
|
|
26698
|
-
(e_hi << 14 | e_lo >>> 18) ^
|
|
26699
|
-
e_lo << 23 | e_hi >>> 9)) >>> 0; // ROTR 41/(swap + ROTR 9)
|
|
26701
|
+
(e_hi << 14 | e_lo >>> 18) ^ // ROTR 18
|
|
26702
|
+
(e_lo << 23 | e_hi >>> 9)) >>> 0; // ROTR 41/(swap + ROTR 9)
|
|
26700
26703
|
// Ch(e, f, g) (optimized the same way as SHA-1)
|
|
26701
26704
|
ch_hi = (g_hi ^ e_hi & (f_hi ^ g_hi)) >>> 0;
|
|
26702
26705
|
ch_lo = (g_lo ^ e_lo & (f_lo ^ g_lo)) >>> 0;
|
|
26703
26706
|
// Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a)
|
|
26704
|
-
s0_hi = ((a_hi >>> 28 | a_lo << 4) ^
|
|
26705
|
-
a_lo >>> 2 | a_hi << 30) ^ // ROTR 34/(swap + ROTR 2)
|
|
26707
|
+
s0_hi = ((a_hi >>> 28 | a_lo << 4) ^ // ROTR 28
|
|
26708
|
+
(a_lo >>> 2 | a_hi << 30) ^ // ROTR 34/(swap + ROTR 2)
|
|
26706
26709
|
(a_lo >>> 7 | a_hi << 25)) >>> 0; // ROTR 39/(swap + ROTR 7)
|
|
26707
|
-
s0_lo = ((a_hi << 4 | a_lo >>> 28) ^
|
|
26708
|
-
a_lo << 30 | a_hi >>> 2) ^
|
|
26709
|
-
a_lo << 25 | a_hi >>> 7)) >>> 0; // ROTR 39/(swap + ROTR 7)
|
|
26710
|
+
s0_lo = ((a_hi << 4 | a_lo >>> 28) ^ // ROTR 28
|
|
26711
|
+
(a_lo << 30 | a_hi >>> 2) ^ // ROTR 34/(swap + ROTR 2)
|
|
26712
|
+
(a_lo << 25 | a_hi >>> 7)) >>> 0; // ROTR 39/(swap + ROTR 7)
|
|
26710
26713
|
// Maj(a, b, c) (optimized the same way as SHA-1)
|
|
26711
26714
|
maj_hi = (a_hi & b_hi | c_hi & (a_hi ^ b_hi)) >>> 0;
|
|
26712
26715
|
maj_lo = (a_lo & b_lo | c_lo & (a_lo ^ b_lo)) >>> 0;
|
|
@@ -29326,8 +29329,8 @@ var $85c6486b1bf8bee8$var$ssh = $85c6486b1bf8bee8$exports = $iGlOy.ssh = $iGlOy.
|
|
|
29326
29329
|
padding.truncate(padding.length() - encLen + privbuffer.length());
|
|
29327
29330
|
privbuffer.putBuffer(padding);
|
|
29328
29331
|
var aeskey = $iGlOy.util.createBuffer();
|
|
29329
|
-
aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\
|
|
29330
|
-
aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\
|
|
29332
|
+
aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\x00\x00\x00\x00", passphrase));
|
|
29333
|
+
aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\x00\x00\x00\x01", passphrase));
|
|
29331
29334
|
// encrypt some bytes using CBC mode
|
|
29332
29335
|
// key is 40 bytes, so truncate *by* 8 bytes
|
|
29333
29336
|
var cipher = $iGlOy.aes.createEncryptionCipher(aeskey.truncate(8), "CBC");
|
|
@@ -29740,48 +29743,65 @@ $5aee5a8e09e874bf$exports = function isGlob(str, options) {
|
|
|
29740
29743
|
};
|
|
29741
29744
|
|
|
29742
29745
|
|
|
29743
|
-
var $
|
|
29746
|
+
var $21b1b538e1d1be85$exports = {};
|
|
29744
29747
|
"use strict";
|
|
29745
|
-
var $
|
|
29748
|
+
var $94ffeb6ed5329bdb$exports = {};
|
|
29746
29749
|
"use strict";
|
|
29747
|
-
Object.defineProperty($
|
|
29750
|
+
Object.defineProperty($94ffeb6ed5329bdb$exports, "__esModule", {
|
|
29748
29751
|
value: true
|
|
29749
29752
|
});
|
|
29750
|
-
|
|
29753
|
+
$94ffeb6ed5329bdb$exports.convertPatternGroupToTask = $94ffeb6ed5329bdb$exports.convertPatternGroupsToTasks = $94ffeb6ed5329bdb$exports.groupPatternsByBaseDirectory = $94ffeb6ed5329bdb$exports.getNegativePatternsAsPositive = $94ffeb6ed5329bdb$exports.getPositivePatterns = $94ffeb6ed5329bdb$exports.convertPatternsToTasks = $94ffeb6ed5329bdb$exports.generate = void 0;
|
|
29754
|
+
var $cf522a9d05043495$exports = {};
|
|
29751
29755
|
"use strict";
|
|
29752
|
-
Object.defineProperty($
|
|
29756
|
+
Object.defineProperty($cf522a9d05043495$exports, "__esModule", {
|
|
29753
29757
|
value: true
|
|
29754
29758
|
});
|
|
29755
|
-
|
|
29759
|
+
$cf522a9d05043495$exports.string = $cf522a9d05043495$exports.stream = $cf522a9d05043495$exports.pattern = $cf522a9d05043495$exports.path = $cf522a9d05043495$exports.fs = $cf522a9d05043495$exports.errno = $cf522a9d05043495$exports.array = void 0;
|
|
29760
|
+
var $49e39d93ff5caf19$exports = {};
|
|
29756
29761
|
"use strict";
|
|
29757
|
-
Object.defineProperty($
|
|
29762
|
+
Object.defineProperty($49e39d93ff5caf19$exports, "__esModule", {
|
|
29758
29763
|
value: true
|
|
29759
29764
|
});
|
|
29760
|
-
|
|
29765
|
+
$49e39d93ff5caf19$exports.splitWhen = $49e39d93ff5caf19$exports.flatten = void 0;
|
|
29766
|
+
function $49e39d93ff5caf19$var$flatten(items) {
|
|
29761
29767
|
return items.reduce((collection, item)=>[].concat(collection, item), []);
|
|
29762
29768
|
}
|
|
29763
|
-
$
|
|
29769
|
+
$49e39d93ff5caf19$exports.flatten = $49e39d93ff5caf19$var$flatten;
|
|
29770
|
+
function $49e39d93ff5caf19$var$splitWhen(items, predicate) {
|
|
29771
|
+
const result = [
|
|
29772
|
+
[]
|
|
29773
|
+
];
|
|
29774
|
+
let groupIndex = 0;
|
|
29775
|
+
for (const item of items)if (predicate(item)) {
|
|
29776
|
+
groupIndex++;
|
|
29777
|
+
result[groupIndex] = [];
|
|
29778
|
+
} else result[groupIndex].push(item);
|
|
29779
|
+
return result;
|
|
29780
|
+
}
|
|
29781
|
+
$49e39d93ff5caf19$exports.splitWhen = $49e39d93ff5caf19$var$splitWhen;
|
|
29764
29782
|
|
|
29765
29783
|
|
|
29766
|
-
$
|
|
29767
|
-
var $
|
|
29784
|
+
$cf522a9d05043495$exports.array = $49e39d93ff5caf19$exports;
|
|
29785
|
+
var $a239a022330d4056$exports = {};
|
|
29768
29786
|
"use strict";
|
|
29769
|
-
Object.defineProperty($
|
|
29787
|
+
Object.defineProperty($a239a022330d4056$exports, "__esModule", {
|
|
29770
29788
|
value: true
|
|
29771
29789
|
});
|
|
29772
|
-
|
|
29790
|
+
$a239a022330d4056$exports.isEnoentCodeError = void 0;
|
|
29791
|
+
function $a239a022330d4056$var$isEnoentCodeError(error) {
|
|
29773
29792
|
return error.code === "ENOENT";
|
|
29774
29793
|
}
|
|
29775
|
-
$
|
|
29794
|
+
$a239a022330d4056$exports.isEnoentCodeError = $a239a022330d4056$var$isEnoentCodeError;
|
|
29776
29795
|
|
|
29777
29796
|
|
|
29778
|
-
$
|
|
29779
|
-
var $
|
|
29797
|
+
$cf522a9d05043495$exports.errno = $a239a022330d4056$exports;
|
|
29798
|
+
var $41689d437fc25774$exports = {};
|
|
29780
29799
|
"use strict";
|
|
29781
|
-
Object.defineProperty($
|
|
29800
|
+
Object.defineProperty($41689d437fc25774$exports, "__esModule", {
|
|
29782
29801
|
value: true
|
|
29783
29802
|
});
|
|
29784
|
-
|
|
29803
|
+
$41689d437fc25774$exports.createDirentFromStats = void 0;
|
|
29804
|
+
class $41689d437fc25774$var$DirentFromStats {
|
|
29785
29805
|
constructor(name, stats){
|
|
29786
29806
|
this.name = name;
|
|
29787
29807
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
@@ -29793,42 +29813,55 @@ class $e88efb70f4f04277$var$DirentFromStats {
|
|
|
29793
29813
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
29794
29814
|
}
|
|
29795
29815
|
}
|
|
29796
|
-
function $
|
|
29797
|
-
return new $
|
|
29816
|
+
function $41689d437fc25774$var$createDirentFromStats(name, stats) {
|
|
29817
|
+
return new $41689d437fc25774$var$DirentFromStats(name, stats);
|
|
29798
29818
|
}
|
|
29799
|
-
$
|
|
29819
|
+
$41689d437fc25774$exports.createDirentFromStats = $41689d437fc25774$var$createDirentFromStats;
|
|
29800
29820
|
|
|
29801
29821
|
|
|
29802
|
-
$
|
|
29803
|
-
var $
|
|
29822
|
+
$cf522a9d05043495$exports.fs = $41689d437fc25774$exports;
|
|
29823
|
+
var $e6c7a6804c64fc92$exports = {};
|
|
29804
29824
|
"use strict";
|
|
29805
|
-
Object.defineProperty($
|
|
29825
|
+
Object.defineProperty($e6c7a6804c64fc92$exports, "__esModule", {
|
|
29806
29826
|
value: true
|
|
29807
29827
|
});
|
|
29828
|
+
$e6c7a6804c64fc92$exports.removeLeadingDotSegment = $e6c7a6804c64fc92$exports.escape = $e6c7a6804c64fc92$exports.makeAbsolute = $e6c7a6804c64fc92$exports.unixify = void 0;
|
|
29808
29829
|
|
|
29809
|
-
const $
|
|
29830
|
+
const $e6c7a6804c64fc92$var$LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
|
|
29831
|
+
const $e6c7a6804c64fc92$var$UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
29810
29832
|
/**
|
|
29811
29833
|
* Designed to work only with simple paths: `dir\\file`.
|
|
29812
|
-
*/ function $
|
|
29834
|
+
*/ function $e6c7a6804c64fc92$var$unixify(filepath) {
|
|
29813
29835
|
return filepath.replace(/\\/g, "/");
|
|
29814
29836
|
}
|
|
29815
|
-
$
|
|
29816
|
-
function $
|
|
29837
|
+
$e6c7a6804c64fc92$exports.unixify = $e6c7a6804c64fc92$var$unixify;
|
|
29838
|
+
function $e6c7a6804c64fc92$var$makeAbsolute(cwd, filepath) {
|
|
29817
29839
|
return $8C1kk$path.resolve(cwd, filepath);
|
|
29818
29840
|
}
|
|
29819
|
-
$
|
|
29820
|
-
function $
|
|
29821
|
-
return pattern.replace($
|
|
29841
|
+
$e6c7a6804c64fc92$exports.makeAbsolute = $e6c7a6804c64fc92$var$makeAbsolute;
|
|
29842
|
+
function $e6c7a6804c64fc92$var$escape(pattern) {
|
|
29843
|
+
return pattern.replace($e6c7a6804c64fc92$var$UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
29822
29844
|
}
|
|
29823
|
-
$
|
|
29845
|
+
$e6c7a6804c64fc92$exports.escape = $e6c7a6804c64fc92$var$escape;
|
|
29846
|
+
function $e6c7a6804c64fc92$var$removeLeadingDotSegment(entry) {
|
|
29847
|
+
// We do not use `startsWith` because this is 10x slower than current implementation for some cases.
|
|
29848
|
+
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
|
29849
|
+
if (entry.charAt(0) === ".") {
|
|
29850
|
+
const secondCharactery = entry.charAt(1);
|
|
29851
|
+
if (secondCharactery === "/" || secondCharactery === "\\") return entry.slice($e6c7a6804c64fc92$var$LEADING_DOT_SEGMENT_CHARACTERS_COUNT);
|
|
29852
|
+
}
|
|
29853
|
+
return entry;
|
|
29854
|
+
}
|
|
29855
|
+
$e6c7a6804c64fc92$exports.removeLeadingDotSegment = $e6c7a6804c64fc92$var$removeLeadingDotSegment;
|
|
29824
29856
|
|
|
29825
29857
|
|
|
29826
|
-
$
|
|
29827
|
-
var $
|
|
29858
|
+
$cf522a9d05043495$exports.path = $e6c7a6804c64fc92$exports;
|
|
29859
|
+
var $16c73921a8454263$exports = {};
|
|
29828
29860
|
"use strict";
|
|
29829
|
-
Object.defineProperty($
|
|
29861
|
+
Object.defineProperty($16c73921a8454263$exports, "__esModule", {
|
|
29830
29862
|
value: true
|
|
29831
29863
|
});
|
|
29864
|
+
$16c73921a8454263$exports.matchAny = $16c73921a8454263$exports.convertPatternsToRe = $16c73921a8454263$exports.makeRe = $16c73921a8454263$exports.getPatternParts = $16c73921a8454263$exports.expandBraceExpansion = $16c73921a8454263$exports.expandPatternsWithBraceExpansion = $16c73921a8454263$exports.isAffectDepthOfReadingPattern = $16c73921a8454263$exports.endsWithSlashGlobStar = $16c73921a8454263$exports.hasGlobStar = $16c73921a8454263$exports.getBaseDirectory = $16c73921a8454263$exports.isPatternRelatedToParentDirectory = $16c73921a8454263$exports.getPatternsOutsideCurrentDirectory = $16c73921a8454263$exports.getPatternsInsideCurrentDirectory = $16c73921a8454263$exports.getPositivePatterns = $16c73921a8454263$exports.getNegativePatterns = $16c73921a8454263$exports.isPositivePattern = $16c73921a8454263$exports.isNegativePattern = $16c73921a8454263$exports.convertToNegativePattern = $16c73921a8454263$exports.convertToPositivePattern = $16c73921a8454263$exports.isDynamicPattern = $16c73921a8454263$exports.isStaticPattern = void 0;
|
|
29832
29865
|
|
|
29833
29866
|
var $99a21639ca3a03fc$exports = {};
|
|
29834
29867
|
"use strict";
|
|
@@ -29865,7 +29898,7 @@ var $99a21639ca3a03fc$var$escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
|
|
|
29865
29898
|
};
|
|
29866
29899
|
|
|
29867
29900
|
|
|
29868
|
-
var $
|
|
29901
|
+
var $971e5d0cad67a09a$exports = {};
|
|
29869
29902
|
"use strict";
|
|
29870
29903
|
|
|
29871
29904
|
var $fec07f13db1e462a$exports = {};
|
|
@@ -30982,7 +31015,7 @@ $2af609aa204f1181$exports = (parcelRequire("4997P"));
|
|
|
30982
31015
|
|
|
30983
31016
|
|
|
30984
31017
|
var $5MQDC = parcelRequire("5MQDC");
|
|
30985
|
-
const $
|
|
31018
|
+
const $971e5d0cad67a09a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
30986
31019
|
/**
|
|
30987
31020
|
* Returns an array of strings that match one or more glob patterns.
|
|
30988
31021
|
*
|
|
@@ -30999,7 +31032,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
30999
31032
|
* @return {Array} Returns an array of matches
|
|
31000
31033
|
* @summary false
|
|
31001
31034
|
* @api public
|
|
31002
|
-
*/ const $
|
|
31035
|
+
*/ const $971e5d0cad67a09a$var$micromatch = (list, patterns, options)=>{
|
|
31003
31036
|
patterns = [].concat(patterns);
|
|
31004
31037
|
list = [].concat(list);
|
|
31005
31038
|
let omit = new Set();
|
|
@@ -31042,7 +31075,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31042
31075
|
};
|
|
31043
31076
|
/**
|
|
31044
31077
|
* Backwards compatibility
|
|
31045
|
-
*/ $
|
|
31078
|
+
*/ $971e5d0cad67a09a$var$micromatch.match = $971e5d0cad67a09a$var$micromatch;
|
|
31046
31079
|
/**
|
|
31047
31080
|
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
31048
31081
|
* The returned function takes a string to match as its only argument and returns
|
|
@@ -31060,7 +31093,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31060
31093
|
* @param {Object} `options`
|
|
31061
31094
|
* @return {Function} Returns a matcher function.
|
|
31062
31095
|
* @api public
|
|
31063
|
-
*/ $
|
|
31096
|
+
*/ $971e5d0cad67a09a$var$micromatch.matcher = (pattern, options)=>$2af609aa204f1181$exports(pattern, options);
|
|
31064
31097
|
/**
|
|
31065
31098
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
31066
31099
|
*
|
|
@@ -31076,10 +31109,10 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31076
31109
|
* @param {Object} `[options]` See available [options](#options).
|
|
31077
31110
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
31078
31111
|
* @api public
|
|
31079
|
-
*/ $
|
|
31112
|
+
*/ $971e5d0cad67a09a$var$micromatch.isMatch = (str, patterns, options)=>$2af609aa204f1181$exports(patterns, options)(str);
|
|
31080
31113
|
/**
|
|
31081
31114
|
* Backwards compatibility
|
|
31082
|
-
*/ $
|
|
31115
|
+
*/ $971e5d0cad67a09a$var$micromatch.any = $971e5d0cad67a09a$var$micromatch.isMatch;
|
|
31083
31116
|
/**
|
|
31084
31117
|
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
31085
31118
|
*
|
|
@@ -31095,7 +31128,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31095
31128
|
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
31096
31129
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
31097
31130
|
* @api public
|
|
31098
|
-
*/ $
|
|
31131
|
+
*/ $971e5d0cad67a09a$var$micromatch.not = (list, patterns, options = {})=>{
|
|
31099
31132
|
patterns = [].concat(patterns).map(String);
|
|
31100
31133
|
let result = new Set();
|
|
31101
31134
|
let items = [];
|
|
@@ -31103,7 +31136,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31103
31136
|
if (options.onResult) options.onResult(state);
|
|
31104
31137
|
items.push(state.output);
|
|
31105
31138
|
};
|
|
31106
|
-
let matches = $
|
|
31139
|
+
let matches = $971e5d0cad67a09a$var$micromatch(list, patterns, {
|
|
31107
31140
|
...options,
|
|
31108
31141
|
onResult: onResult
|
|
31109
31142
|
});
|
|
@@ -31130,14 +31163,14 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31130
31163
|
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
31131
31164
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
31132
31165
|
* @api public
|
|
31133
|
-
*/ $
|
|
31166
|
+
*/ $971e5d0cad67a09a$var$micromatch.contains = (str, pattern, options)=>{
|
|
31134
31167
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
|
|
31135
|
-
if (Array.isArray(pattern)) return pattern.some((p)=>$
|
|
31168
|
+
if (Array.isArray(pattern)) return pattern.some((p)=>$971e5d0cad67a09a$var$micromatch.contains(str, p, options));
|
|
31136
31169
|
if (typeof pattern === "string") {
|
|
31137
|
-
if ($
|
|
31170
|
+
if ($971e5d0cad67a09a$var$isEmptyString(str) || $971e5d0cad67a09a$var$isEmptyString(pattern)) return false;
|
|
31138
31171
|
if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
|
|
31139
31172
|
}
|
|
31140
|
-
return $
|
|
31173
|
+
return $971e5d0cad67a09a$var$micromatch.isMatch(str, pattern, {
|
|
31141
31174
|
...options,
|
|
31142
31175
|
contains: true
|
|
31143
31176
|
});
|
|
@@ -31160,9 +31193,9 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31160
31193
|
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
31161
31194
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
31162
31195
|
* @api public
|
|
31163
|
-
*/ $
|
|
31196
|
+
*/ $971e5d0cad67a09a$var$micromatch.matchKeys = (obj, patterns, options)=>{
|
|
31164
31197
|
if (!$5MQDC.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
31165
|
-
let keys = $
|
|
31198
|
+
let keys = $971e5d0cad67a09a$var$micromatch(Object.keys(obj), patterns, options);
|
|
31166
31199
|
let res = {};
|
|
31167
31200
|
for (let key of keys)res[key] = obj[key];
|
|
31168
31201
|
return res;
|
|
@@ -31184,7 +31217,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31184
31217
|
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
31185
31218
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
31186
31219
|
* @api public
|
|
31187
|
-
*/ $
|
|
31220
|
+
*/ $971e5d0cad67a09a$var$micromatch.some = (list, patterns, options)=>{
|
|
31188
31221
|
let items = [].concat(list);
|
|
31189
31222
|
for (let pattern of [].concat(patterns)){
|
|
31190
31223
|
let isMatch = $2af609aa204f1181$exports(String(pattern), options);
|
|
@@ -31214,7 +31247,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31214
31247
|
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
31215
31248
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
31216
31249
|
* @api public
|
|
31217
|
-
*/ $
|
|
31250
|
+
*/ $971e5d0cad67a09a$var$micromatch.every = (list, patterns, options)=>{
|
|
31218
31251
|
let items = [].concat(list);
|
|
31219
31252
|
for (let pattern of [].concat(patterns)){
|
|
31220
31253
|
let isMatch = $2af609aa204f1181$exports(String(pattern), options);
|
|
@@ -31247,7 +31280,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31247
31280
|
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
31248
31281
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
31249
31282
|
* @api public
|
|
31250
|
-
*/ $
|
|
31283
|
+
*/ $971e5d0cad67a09a$var$micromatch.all = (str, patterns, options)=>{
|
|
31251
31284
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
|
|
31252
31285
|
return [].concat(patterns).every((p)=>$2af609aa204f1181$exports(p, options)(str));
|
|
31253
31286
|
};
|
|
@@ -31268,7 +31301,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31268
31301
|
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
31269
31302
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
31270
31303
|
* @api public
|
|
31271
|
-
*/ $
|
|
31304
|
+
*/ $971e5d0cad67a09a$var$micromatch.capture = (glob, input, options)=>{
|
|
31272
31305
|
let posix = $5MQDC.isWindows(options);
|
|
31273
31306
|
let regex = $2af609aa204f1181$exports.makeRe(String(glob), {
|
|
31274
31307
|
...options,
|
|
@@ -31291,7 +31324,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31291
31324
|
* @param {Object} `options`
|
|
31292
31325
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
31293
31326
|
* @api public
|
|
31294
|
-
*/ $
|
|
31327
|
+
*/ $971e5d0cad67a09a$var$micromatch.makeRe = (...args)=>$2af609aa204f1181$exports.makeRe(...args);
|
|
31295
31328
|
/**
|
|
31296
31329
|
* Scan a glob pattern to separate the pattern into segments. Used
|
|
31297
31330
|
* by the [split](#split) method.
|
|
@@ -31304,7 +31337,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31304
31337
|
* @param {Object} `options`
|
|
31305
31338
|
* @return {Object} Returns an object with
|
|
31306
31339
|
* @api public
|
|
31307
|
-
*/ $
|
|
31340
|
+
*/ $971e5d0cad67a09a$var$micromatch.scan = (...args)=>$2af609aa204f1181$exports.scan(...args);
|
|
31308
31341
|
/**
|
|
31309
31342
|
* Parse a glob pattern to create the source string for a regular
|
|
31310
31343
|
* expression.
|
|
@@ -31317,7 +31350,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31317
31350
|
* @param {Object} `options`
|
|
31318
31351
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
31319
31352
|
* @api public
|
|
31320
|
-
*/ $
|
|
31353
|
+
*/ $971e5d0cad67a09a$var$micromatch.parse = (patterns, options)=>{
|
|
31321
31354
|
let res = [];
|
|
31322
31355
|
for (let pattern of [].concat(patterns || []))for (let str of $fec07f13db1e462a$exports(String(pattern), options))res.push($2af609aa204f1181$exports.parse(str, options));
|
|
31323
31356
|
return res;
|
|
@@ -31337,7 +31370,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31337
31370
|
* @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
|
|
31338
31371
|
* @return {Array}
|
|
31339
31372
|
* @api public
|
|
31340
|
-
*/ $
|
|
31373
|
+
*/ $971e5d0cad67a09a$var$micromatch.braces = (pattern, options)=>{
|
|
31341
31374
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
31342
31375
|
if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) return [
|
|
31343
31376
|
pattern
|
|
@@ -31346,123 +31379,174 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
|
31346
31379
|
};
|
|
31347
31380
|
/**
|
|
31348
31381
|
* Expand braces
|
|
31349
|
-
*/ $
|
|
31382
|
+
*/ $971e5d0cad67a09a$var$micromatch.braceExpand = (pattern, options)=>{
|
|
31350
31383
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
31351
|
-
return $
|
|
31384
|
+
return $971e5d0cad67a09a$var$micromatch.braces(pattern, {
|
|
31352
31385
|
...options,
|
|
31353
31386
|
expand: true
|
|
31354
31387
|
});
|
|
31355
31388
|
};
|
|
31356
31389
|
/**
|
|
31357
31390
|
* Expose micromatch
|
|
31358
|
-
*/ $
|
|
31391
|
+
*/ $971e5d0cad67a09a$exports = $971e5d0cad67a09a$var$micromatch;
|
|
31359
31392
|
|
|
31360
31393
|
|
|
31361
|
-
const $
|
|
31362
|
-
const $
|
|
31363
|
-
const $
|
|
31364
|
-
const $
|
|
31365
|
-
const $
|
|
31366
|
-
const $
|
|
31367
|
-
const $
|
|
31368
|
-
function $
|
|
31369
|
-
return !$
|
|
31394
|
+
const $16c73921a8454263$var$GLOBSTAR = "**";
|
|
31395
|
+
const $16c73921a8454263$var$ESCAPE_SYMBOL = "\\";
|
|
31396
|
+
const $16c73921a8454263$var$COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
|
|
31397
|
+
const $16c73921a8454263$var$REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/;
|
|
31398
|
+
const $16c73921a8454263$var$REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
|
|
31399
|
+
const $16c73921a8454263$var$GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
|
|
31400
|
+
const $16c73921a8454263$var$BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
|
|
31401
|
+
function $16c73921a8454263$var$isStaticPattern(pattern, options = {}) {
|
|
31402
|
+
return !$16c73921a8454263$var$isDynamicPattern(pattern, options);
|
|
31370
31403
|
}
|
|
31371
|
-
$
|
|
31372
|
-
function $
|
|
31404
|
+
$16c73921a8454263$exports.isStaticPattern = $16c73921a8454263$var$isStaticPattern;
|
|
31405
|
+
function $16c73921a8454263$var$isDynamicPattern(pattern, options = {}) {
|
|
31406
|
+
/**
|
|
31407
|
+
* A special case with an empty string is necessary for matching patterns that start with a forward slash.
|
|
31408
|
+
* An empty string cannot be a dynamic pattern.
|
|
31409
|
+
* For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'.
|
|
31410
|
+
*/ if (pattern === "") return false;
|
|
31373
31411
|
/**
|
|
31374
31412
|
* When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
|
|
31375
31413
|
* filepath directly (without read directory).
|
|
31376
|
-
*/ if (options.caseSensitiveMatch === false || pattern.includes($
|
|
31377
|
-
if ($
|
|
31378
|
-
if (options.extglob !== false && $
|
|
31379
|
-
if (options.braceExpansion !== false && $
|
|
31414
|
+
*/ if (options.caseSensitiveMatch === false || pattern.includes($16c73921a8454263$var$ESCAPE_SYMBOL)) return true;
|
|
31415
|
+
if ($16c73921a8454263$var$COMMON_GLOB_SYMBOLS_RE.test(pattern) || $16c73921a8454263$var$REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || $16c73921a8454263$var$REGEX_GROUP_SYMBOLS_RE.test(pattern)) return true;
|
|
31416
|
+
if (options.extglob !== false && $16c73921a8454263$var$GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) return true;
|
|
31417
|
+
if (options.braceExpansion !== false && $16c73921a8454263$var$hasBraceExpansion(pattern)) return true;
|
|
31380
31418
|
return false;
|
|
31381
31419
|
}
|
|
31382
|
-
$
|
|
31383
|
-
function $
|
|
31384
|
-
|
|
31420
|
+
$16c73921a8454263$exports.isDynamicPattern = $16c73921a8454263$var$isDynamicPattern;
|
|
31421
|
+
function $16c73921a8454263$var$hasBraceExpansion(pattern) {
|
|
31422
|
+
const openingBraceIndex = pattern.indexOf("{");
|
|
31423
|
+
if (openingBraceIndex === -1) return false;
|
|
31424
|
+
const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1);
|
|
31425
|
+
if (closingBraceIndex === -1) return false;
|
|
31426
|
+
const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
|
|
31427
|
+
return $16c73921a8454263$var$BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
|
|
31385
31428
|
}
|
|
31386
|
-
|
|
31387
|
-
|
|
31429
|
+
function $16c73921a8454263$var$convertToPositivePattern(pattern) {
|
|
31430
|
+
return $16c73921a8454263$var$isNegativePattern(pattern) ? pattern.slice(1) : pattern;
|
|
31431
|
+
}
|
|
31432
|
+
$16c73921a8454263$exports.convertToPositivePattern = $16c73921a8454263$var$convertToPositivePattern;
|
|
31433
|
+
function $16c73921a8454263$var$convertToNegativePattern(pattern) {
|
|
31388
31434
|
return "!" + pattern;
|
|
31389
31435
|
}
|
|
31390
|
-
$
|
|
31391
|
-
function $
|
|
31436
|
+
$16c73921a8454263$exports.convertToNegativePattern = $16c73921a8454263$var$convertToNegativePattern;
|
|
31437
|
+
function $16c73921a8454263$var$isNegativePattern(pattern) {
|
|
31392
31438
|
return pattern.startsWith("!") && pattern[1] !== "(";
|
|
31393
31439
|
}
|
|
31394
|
-
$
|
|
31395
|
-
function $
|
|
31396
|
-
return !$
|
|
31440
|
+
$16c73921a8454263$exports.isNegativePattern = $16c73921a8454263$var$isNegativePattern;
|
|
31441
|
+
function $16c73921a8454263$var$isPositivePattern(pattern) {
|
|
31442
|
+
return !$16c73921a8454263$var$isNegativePattern(pattern);
|
|
31397
31443
|
}
|
|
31398
|
-
$
|
|
31399
|
-
function $
|
|
31400
|
-
return patterns.filter($
|
|
31444
|
+
$16c73921a8454263$exports.isPositivePattern = $16c73921a8454263$var$isPositivePattern;
|
|
31445
|
+
function $16c73921a8454263$var$getNegativePatterns(patterns) {
|
|
31446
|
+
return patterns.filter($16c73921a8454263$var$isNegativePattern);
|
|
31401
31447
|
}
|
|
31402
|
-
$
|
|
31403
|
-
function $
|
|
31404
|
-
return patterns.filter($
|
|
31448
|
+
$16c73921a8454263$exports.getNegativePatterns = $16c73921a8454263$var$getNegativePatterns;
|
|
31449
|
+
function $16c73921a8454263$var$getPositivePatterns(patterns) {
|
|
31450
|
+
return patterns.filter($16c73921a8454263$var$isPositivePattern);
|
|
31405
31451
|
}
|
|
31406
|
-
$
|
|
31407
|
-
|
|
31452
|
+
$16c73921a8454263$exports.getPositivePatterns = $16c73921a8454263$var$getPositivePatterns;
|
|
31453
|
+
/**
|
|
31454
|
+
* Returns patterns that can be applied inside the current directory.
|
|
31455
|
+
*
|
|
31456
|
+
* @example
|
|
31457
|
+
* // ['./*', '*', 'a/*']
|
|
31458
|
+
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
31459
|
+
*/ function $16c73921a8454263$var$getPatternsInsideCurrentDirectory(patterns) {
|
|
31460
|
+
return patterns.filter((pattern)=>!$16c73921a8454263$var$isPatternRelatedToParentDirectory(pattern));
|
|
31461
|
+
}
|
|
31462
|
+
$16c73921a8454263$exports.getPatternsInsideCurrentDirectory = $16c73921a8454263$var$getPatternsInsideCurrentDirectory;
|
|
31463
|
+
/**
|
|
31464
|
+
* Returns patterns to be expanded relative to (outside) the current directory.
|
|
31465
|
+
*
|
|
31466
|
+
* @example
|
|
31467
|
+
* // ['../*', './../*']
|
|
31468
|
+
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
31469
|
+
*/ function $16c73921a8454263$var$getPatternsOutsideCurrentDirectory(patterns) {
|
|
31470
|
+
return patterns.filter($16c73921a8454263$var$isPatternRelatedToParentDirectory);
|
|
31471
|
+
}
|
|
31472
|
+
$16c73921a8454263$exports.getPatternsOutsideCurrentDirectory = $16c73921a8454263$var$getPatternsOutsideCurrentDirectory;
|
|
31473
|
+
function $16c73921a8454263$var$isPatternRelatedToParentDirectory(pattern) {
|
|
31474
|
+
return pattern.startsWith("..") || pattern.startsWith("./..");
|
|
31475
|
+
}
|
|
31476
|
+
$16c73921a8454263$exports.isPatternRelatedToParentDirectory = $16c73921a8454263$var$isPatternRelatedToParentDirectory;
|
|
31477
|
+
function $16c73921a8454263$var$getBaseDirectory(pattern) {
|
|
31408
31478
|
return $99a21639ca3a03fc$exports(pattern, {
|
|
31409
31479
|
flipBackslashes: false
|
|
31410
31480
|
});
|
|
31411
31481
|
}
|
|
31412
|
-
$
|
|
31413
|
-
function $
|
|
31414
|
-
return pattern.includes($
|
|
31482
|
+
$16c73921a8454263$exports.getBaseDirectory = $16c73921a8454263$var$getBaseDirectory;
|
|
31483
|
+
function $16c73921a8454263$var$hasGlobStar(pattern) {
|
|
31484
|
+
return pattern.includes($16c73921a8454263$var$GLOBSTAR);
|
|
31415
31485
|
}
|
|
31416
|
-
$
|
|
31417
|
-
function $
|
|
31418
|
-
return pattern.endsWith("/" + $
|
|
31486
|
+
$16c73921a8454263$exports.hasGlobStar = $16c73921a8454263$var$hasGlobStar;
|
|
31487
|
+
function $16c73921a8454263$var$endsWithSlashGlobStar(pattern) {
|
|
31488
|
+
return pattern.endsWith("/" + $16c73921a8454263$var$GLOBSTAR);
|
|
31419
31489
|
}
|
|
31420
|
-
$
|
|
31421
|
-
function $
|
|
31490
|
+
$16c73921a8454263$exports.endsWithSlashGlobStar = $16c73921a8454263$var$endsWithSlashGlobStar;
|
|
31491
|
+
function $16c73921a8454263$var$isAffectDepthOfReadingPattern(pattern) {
|
|
31422
31492
|
const basename = $8C1kk$path.basename(pattern);
|
|
31423
|
-
return $
|
|
31493
|
+
return $16c73921a8454263$var$endsWithSlashGlobStar(pattern) || $16c73921a8454263$var$isStaticPattern(basename);
|
|
31424
31494
|
}
|
|
31425
|
-
$
|
|
31426
|
-
function $
|
|
31427
|
-
|
|
31428
|
-
|
|
31429
|
-
|
|
31430
|
-
/**
|
|
31431
|
-
* This is a hack for pattern that has no base directory.
|
|
31432
|
-
*
|
|
31433
|
-
* This is related to the `*\something\*` pattern.
|
|
31434
|
-
*/ if (base === ".") return patternDepth - patternBaseDepth;
|
|
31435
|
-
return patternDepth - patternBaseDepth - 1;
|
|
31495
|
+
$16c73921a8454263$exports.isAffectDepthOfReadingPattern = $16c73921a8454263$var$isAffectDepthOfReadingPattern;
|
|
31496
|
+
function $16c73921a8454263$var$expandPatternsWithBraceExpansion(patterns) {
|
|
31497
|
+
return patterns.reduce((collection, pattern)=>{
|
|
31498
|
+
return collection.concat($16c73921a8454263$var$expandBraceExpansion(pattern));
|
|
31499
|
+
}, []);
|
|
31436
31500
|
}
|
|
31437
|
-
$
|
|
31438
|
-
function $
|
|
31439
|
-
return
|
|
31440
|
-
|
|
31441
|
-
|
|
31442
|
-
}
|
|
31501
|
+
$16c73921a8454263$exports.expandPatternsWithBraceExpansion = $16c73921a8454263$var$expandPatternsWithBraceExpansion;
|
|
31502
|
+
function $16c73921a8454263$var$expandBraceExpansion(pattern) {
|
|
31503
|
+
return $971e5d0cad67a09a$exports.braces(pattern, {
|
|
31504
|
+
expand: true,
|
|
31505
|
+
nodupes: true
|
|
31506
|
+
});
|
|
31443
31507
|
}
|
|
31444
|
-
$
|
|
31445
|
-
function $
|
|
31446
|
-
|
|
31508
|
+
$16c73921a8454263$exports.expandBraceExpansion = $16c73921a8454263$var$expandBraceExpansion;
|
|
31509
|
+
function $16c73921a8454263$var$getPatternParts(pattern, options) {
|
|
31510
|
+
let { parts: parts } = $971e5d0cad67a09a$exports.scan(pattern, Object.assign(Object.assign({}, options), {
|
|
31511
|
+
parts: true
|
|
31512
|
+
}));
|
|
31513
|
+
/**
|
|
31514
|
+
* The scan method returns an empty array in some cases.
|
|
31515
|
+
* See micromatch/picomatch#58 for more details.
|
|
31516
|
+
*/ if (parts.length === 0) parts = [
|
|
31517
|
+
pattern
|
|
31518
|
+
];
|
|
31519
|
+
/**
|
|
31520
|
+
* The scan method does not return an empty part for the pattern with a forward slash.
|
|
31521
|
+
* This is another part of micromatch/picomatch#58.
|
|
31522
|
+
*/ if (parts[0].startsWith("/")) {
|
|
31523
|
+
parts[0] = parts[0].slice(1);
|
|
31524
|
+
parts.unshift("");
|
|
31525
|
+
}
|
|
31526
|
+
return parts;
|
|
31447
31527
|
}
|
|
31448
|
-
$
|
|
31449
|
-
function $
|
|
31450
|
-
return
|
|
31528
|
+
$16c73921a8454263$exports.getPatternParts = $16c73921a8454263$var$getPatternParts;
|
|
31529
|
+
function $16c73921a8454263$var$makeRe(pattern, options) {
|
|
31530
|
+
return $971e5d0cad67a09a$exports.makeRe(pattern, options);
|
|
31451
31531
|
}
|
|
31452
|
-
$
|
|
31453
|
-
function $
|
|
31454
|
-
|
|
31455
|
-
return patternsRe.some((patternRe)=>patternRe.test(filepath));
|
|
31532
|
+
$16c73921a8454263$exports.makeRe = $16c73921a8454263$var$makeRe;
|
|
31533
|
+
function $16c73921a8454263$var$convertPatternsToRe(patterns, options) {
|
|
31534
|
+
return patterns.map((pattern)=>$16c73921a8454263$var$makeRe(pattern, options));
|
|
31456
31535
|
}
|
|
31457
|
-
$
|
|
31536
|
+
$16c73921a8454263$exports.convertPatternsToRe = $16c73921a8454263$var$convertPatternsToRe;
|
|
31537
|
+
function $16c73921a8454263$var$matchAny(entry, patternsRe) {
|
|
31538
|
+
return patternsRe.some((patternRe)=>patternRe.test(entry));
|
|
31539
|
+
}
|
|
31540
|
+
$16c73921a8454263$exports.matchAny = $16c73921a8454263$var$matchAny;
|
|
31458
31541
|
|
|
31459
31542
|
|
|
31460
|
-
$
|
|
31461
|
-
var $
|
|
31543
|
+
$cf522a9d05043495$exports.pattern = $16c73921a8454263$exports;
|
|
31544
|
+
var $aec04465d373ed0c$exports = {};
|
|
31462
31545
|
"use strict";
|
|
31463
|
-
Object.defineProperty($
|
|
31546
|
+
Object.defineProperty($aec04465d373ed0c$exports, "__esModule", {
|
|
31464
31547
|
value: true
|
|
31465
31548
|
});
|
|
31549
|
+
$aec04465d373ed0c$exports.merge = void 0;
|
|
31466
31550
|
var $62a8baa648172408$exports = {};
|
|
31467
31551
|
"use strict";
|
|
31468
31552
|
|
|
@@ -31471,12 +31555,13 @@ const $62a8baa648172408$var$slice = Array.prototype.slice;
|
|
|
31471
31555
|
$62a8baa648172408$exports = $62a8baa648172408$var$merge2;
|
|
31472
31556
|
function $62a8baa648172408$var$merge2() {
|
|
31473
31557
|
const streamsQueue = [];
|
|
31474
|
-
let merging = false;
|
|
31475
31558
|
const args = $62a8baa648172408$var$slice.call(arguments);
|
|
31559
|
+
let merging = false;
|
|
31476
31560
|
let options = args[args.length - 1];
|
|
31477
31561
|
if (options && !Array.isArray(options) && options.pipe == null) args.pop();
|
|
31478
31562
|
else options = {};
|
|
31479
31563
|
const doEnd = options.end !== false;
|
|
31564
|
+
const doPipeError = options.pipeError === true;
|
|
31480
31565
|
if (options.objectMode == null) options.objectMode = true;
|
|
31481
31566
|
if (options.highWaterMark == null) options.highWaterMark = 65536;
|
|
31482
31567
|
const mergedStream = $62a8baa648172408$var$PassThrough(options);
|
|
@@ -31506,12 +31591,17 @@ function $62a8baa648172408$var$merge2() {
|
|
|
31506
31591
|
function onend() {
|
|
31507
31592
|
stream.removeListener("merge2UnpipeEnd", onend);
|
|
31508
31593
|
stream.removeListener("end", onend);
|
|
31594
|
+
if (doPipeError) stream.removeListener("error", onerror);
|
|
31509
31595
|
next();
|
|
31510
31596
|
}
|
|
31597
|
+
function onerror(err) {
|
|
31598
|
+
mergedStream.emit("error", err);
|
|
31599
|
+
}
|
|
31511
31600
|
// skip ended stream
|
|
31512
31601
|
if (stream._readableState.endEmitted) return next();
|
|
31513
31602
|
stream.on("merge2UnpipeEnd", onend);
|
|
31514
31603
|
stream.on("end", onend);
|
|
31604
|
+
if (doPipeError) stream.on("error", onerror);
|
|
31515
31605
|
stream.pipe(mergedStream, {
|
|
31516
31606
|
end: false
|
|
31517
31607
|
});
|
|
@@ -31525,7 +31615,7 @@ function $62a8baa648172408$var$merge2() {
|
|
|
31525
31615
|
merging = false;
|
|
31526
31616
|
// emit 'queueDrain' when all streams merged.
|
|
31527
31617
|
mergedStream.emit("queueDrain");
|
|
31528
|
-
|
|
31618
|
+
if (doEnd) mergedStream.end();
|
|
31529
31619
|
}
|
|
31530
31620
|
mergedStream.setMaxListeners(0);
|
|
31531
31621
|
mergedStream.add = addStream;
|
|
@@ -31547,61 +31637,85 @@ function $62a8baa648172408$var$pauseStreams(streams, options) {
|
|
|
31547
31637
|
}
|
|
31548
31638
|
|
|
31549
31639
|
|
|
31550
|
-
function $
|
|
31640
|
+
function $aec04465d373ed0c$var$merge(streams) {
|
|
31551
31641
|
const mergedStream = $62a8baa648172408$exports(streams);
|
|
31552
31642
|
streams.forEach((stream)=>{
|
|
31553
31643
|
stream.once("error", (error)=>mergedStream.emit("error", error));
|
|
31554
31644
|
});
|
|
31555
|
-
mergedStream.once("close", ()=>$
|
|
31556
|
-
mergedStream.once("end", ()=>$
|
|
31645
|
+
mergedStream.once("close", ()=>$aec04465d373ed0c$var$propagateCloseEventToSources(streams));
|
|
31646
|
+
mergedStream.once("end", ()=>$aec04465d373ed0c$var$propagateCloseEventToSources(streams));
|
|
31557
31647
|
return mergedStream;
|
|
31558
31648
|
}
|
|
31559
|
-
$
|
|
31560
|
-
function $
|
|
31649
|
+
$aec04465d373ed0c$exports.merge = $aec04465d373ed0c$var$merge;
|
|
31650
|
+
function $aec04465d373ed0c$var$propagateCloseEventToSources(streams) {
|
|
31561
31651
|
streams.forEach((stream)=>stream.emit("close"));
|
|
31562
31652
|
}
|
|
31563
31653
|
|
|
31564
31654
|
|
|
31565
|
-
$
|
|
31655
|
+
$cf522a9d05043495$exports.stream = $aec04465d373ed0c$exports;
|
|
31656
|
+
var $972ab475a37ceade$exports = {};
|
|
31657
|
+
"use strict";
|
|
31658
|
+
Object.defineProperty($972ab475a37ceade$exports, "__esModule", {
|
|
31659
|
+
value: true
|
|
31660
|
+
});
|
|
31661
|
+
$972ab475a37ceade$exports.isEmpty = $972ab475a37ceade$exports.isString = void 0;
|
|
31662
|
+
function $972ab475a37ceade$var$isString(input) {
|
|
31663
|
+
return typeof input === "string";
|
|
31664
|
+
}
|
|
31665
|
+
$972ab475a37ceade$exports.isString = $972ab475a37ceade$var$isString;
|
|
31666
|
+
function $972ab475a37ceade$var$isEmpty(input) {
|
|
31667
|
+
return input === "";
|
|
31668
|
+
}
|
|
31669
|
+
$972ab475a37ceade$exports.isEmpty = $972ab475a37ceade$var$isEmpty;
|
|
31670
|
+
|
|
31566
31671
|
|
|
31672
|
+
$cf522a9d05043495$exports.string = $972ab475a37ceade$exports;
|
|
31567
31673
|
|
|
31568
|
-
|
|
31569
|
-
|
|
31570
|
-
const
|
|
31571
|
-
const
|
|
31572
|
-
const
|
|
31573
|
-
const
|
|
31574
|
-
const
|
|
31674
|
+
|
|
31675
|
+
function $94ffeb6ed5329bdb$var$generate(patterns, settings) {
|
|
31676
|
+
const positivePatterns = $94ffeb6ed5329bdb$var$getPositivePatterns(patterns);
|
|
31677
|
+
const negativePatterns = $94ffeb6ed5329bdb$var$getNegativePatternsAsPositive(patterns, settings.ignore);
|
|
31678
|
+
const staticPatterns = positivePatterns.filter((pattern)=>$cf522a9d05043495$exports.pattern.isStaticPattern(pattern, settings));
|
|
31679
|
+
const dynamicPatterns = positivePatterns.filter((pattern)=>$cf522a9d05043495$exports.pattern.isDynamicPattern(pattern, settings));
|
|
31680
|
+
const staticTasks = $94ffeb6ed5329bdb$var$convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false);
|
|
31681
|
+
const dynamicTasks = $94ffeb6ed5329bdb$var$convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true);
|
|
31575
31682
|
return staticTasks.concat(dynamicTasks);
|
|
31576
31683
|
}
|
|
31577
|
-
$
|
|
31578
|
-
|
|
31579
|
-
|
|
31580
|
-
|
|
31581
|
-
|
|
31582
|
-
|
|
31583
|
-
|
|
31584
|
-
|
|
31585
|
-
|
|
31586
|
-
|
|
31587
|
-
|
|
31588
|
-
|
|
31589
|
-
|
|
31590
|
-
|
|
31591
|
-
|
|
31592
|
-
|
|
31593
|
-
|
|
31594
|
-
$
|
|
31595
|
-
|
|
31596
|
-
|
|
31597
|
-
|
|
31684
|
+
$94ffeb6ed5329bdb$exports.generate = $94ffeb6ed5329bdb$var$generate;
|
|
31685
|
+
/**
|
|
31686
|
+
* Returns tasks grouped by basic pattern directories.
|
|
31687
|
+
*
|
|
31688
|
+
* Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
|
|
31689
|
+
* This is necessary because directory traversal starts at the base directory and goes deeper.
|
|
31690
|
+
*/ function $94ffeb6ed5329bdb$var$convertPatternsToTasks(positive, negative, dynamic) {
|
|
31691
|
+
const tasks = [];
|
|
31692
|
+
const patternsOutsideCurrentDirectory = $cf522a9d05043495$exports.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
31693
|
+
const patternsInsideCurrentDirectory = $cf522a9d05043495$exports.pattern.getPatternsInsideCurrentDirectory(positive);
|
|
31694
|
+
const outsideCurrentDirectoryGroup = $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
|
31695
|
+
const insideCurrentDirectoryGroup = $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
|
31696
|
+
tasks.push(...$94ffeb6ed5329bdb$var$convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
|
31697
|
+
/*
|
|
31698
|
+
* For the sake of reducing future accesses to the file system, we merge all tasks within the current directory
|
|
31699
|
+
* into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest.
|
|
31700
|
+
*/ if ("." in insideCurrentDirectoryGroup) tasks.push($94ffeb6ed5329bdb$var$convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic));
|
|
31701
|
+
else tasks.push(...$94ffeb6ed5329bdb$var$convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic));
|
|
31702
|
+
return tasks;
|
|
31703
|
+
}
|
|
31704
|
+
$94ffeb6ed5329bdb$exports.convertPatternsToTasks = $94ffeb6ed5329bdb$var$convertPatternsToTasks;
|
|
31705
|
+
function $94ffeb6ed5329bdb$var$getPositivePatterns(patterns) {
|
|
31706
|
+
return $cf522a9d05043495$exports.pattern.getPositivePatterns(patterns);
|
|
31707
|
+
}
|
|
31708
|
+
$94ffeb6ed5329bdb$exports.getPositivePatterns = $94ffeb6ed5329bdb$var$getPositivePatterns;
|
|
31709
|
+
function $94ffeb6ed5329bdb$var$getNegativePatternsAsPositive(patterns, ignore) {
|
|
31710
|
+
const negative = $cf522a9d05043495$exports.pattern.getNegativePatterns(patterns).concat(ignore);
|
|
31711
|
+
const positive = negative.map($cf522a9d05043495$exports.pattern.convertToPositivePattern);
|
|
31598
31712
|
return positive;
|
|
31599
31713
|
}
|
|
31600
|
-
$
|
|
31601
|
-
function $
|
|
31714
|
+
$94ffeb6ed5329bdb$exports.getNegativePatternsAsPositive = $94ffeb6ed5329bdb$var$getNegativePatternsAsPositive;
|
|
31715
|
+
function $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory(patterns) {
|
|
31602
31716
|
const group = {};
|
|
31603
31717
|
return patterns.reduce((collection, pattern)=>{
|
|
31604
|
-
const base = $
|
|
31718
|
+
const base = $cf522a9d05043495$exports.pattern.getBaseDirectory(pattern);
|
|
31605
31719
|
if (base in collection) collection[base].push(pattern);
|
|
31606
31720
|
else collection[base] = [
|
|
31607
31721
|
pattern
|
|
@@ -31609,36 +31723,85 @@ function $d436392a45e5b9b4$var$groupPatternsByBaseDirectory(patterns) {
|
|
|
31609
31723
|
return collection;
|
|
31610
31724
|
}, group);
|
|
31611
31725
|
}
|
|
31612
|
-
$
|
|
31613
|
-
function $
|
|
31726
|
+
$94ffeb6ed5329bdb$exports.groupPatternsByBaseDirectory = $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory;
|
|
31727
|
+
function $94ffeb6ed5329bdb$var$convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
31614
31728
|
return Object.keys(positive).map((base)=>{
|
|
31615
|
-
return $
|
|
31729
|
+
return $94ffeb6ed5329bdb$var$convertPatternGroupToTask(base, positive[base], negative, dynamic);
|
|
31616
31730
|
});
|
|
31617
31731
|
}
|
|
31618
|
-
$
|
|
31619
|
-
function $
|
|
31732
|
+
$94ffeb6ed5329bdb$exports.convertPatternGroupsToTasks = $94ffeb6ed5329bdb$var$convertPatternGroupsToTasks;
|
|
31733
|
+
function $94ffeb6ed5329bdb$var$convertPatternGroupToTask(base, positive, negative, dynamic) {
|
|
31620
31734
|
return {
|
|
31621
31735
|
dynamic: dynamic,
|
|
31622
31736
|
positive: positive,
|
|
31623
31737
|
negative: negative,
|
|
31624
31738
|
base: base,
|
|
31625
|
-
patterns: [].concat(positive, negative.map($
|
|
31739
|
+
patterns: [].concat(positive, negative.map($cf522a9d05043495$exports.pattern.convertToNegativePattern))
|
|
31626
31740
|
};
|
|
31627
31741
|
}
|
|
31628
|
-
$
|
|
31742
|
+
$94ffeb6ed5329bdb$exports.convertPatternGroupToTask = $94ffeb6ed5329bdb$var$convertPatternGroupToTask;
|
|
31743
|
+
|
|
31744
|
+
|
|
31745
|
+
var $87bf1fe6ced3ad26$exports = {};
|
|
31746
|
+
"use strict";
|
|
31747
|
+
Object.defineProperty($87bf1fe6ced3ad26$exports, "__esModule", {
|
|
31748
|
+
value: true
|
|
31749
|
+
});
|
|
31750
|
+
$87bf1fe6ced3ad26$exports.removeDuplicateSlashes = $87bf1fe6ced3ad26$exports.transform = void 0;
|
|
31751
|
+
/**
|
|
31752
|
+
* Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string.
|
|
31753
|
+
* The latter is due to the presence of the device path at the beginning of the UNC path.
|
|
31754
|
+
* @todo rewrite to negative lookbehind with the next major release.
|
|
31755
|
+
*/ const $87bf1fe6ced3ad26$var$DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
31756
|
+
function $87bf1fe6ced3ad26$var$transform(patterns) {
|
|
31757
|
+
return patterns.map((pattern)=>$87bf1fe6ced3ad26$var$removeDuplicateSlashes(pattern));
|
|
31758
|
+
}
|
|
31759
|
+
$87bf1fe6ced3ad26$exports.transform = $87bf1fe6ced3ad26$var$transform;
|
|
31760
|
+
/**
|
|
31761
|
+
* This package only works with forward slashes as a path separator.
|
|
31762
|
+
* Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
|
|
31763
|
+
*/ function $87bf1fe6ced3ad26$var$removeDuplicateSlashes(pattern) {
|
|
31764
|
+
return pattern.replace($87bf1fe6ced3ad26$var$DOUBLE_SLASH_RE, "/");
|
|
31765
|
+
}
|
|
31766
|
+
$87bf1fe6ced3ad26$exports.removeDuplicateSlashes = $87bf1fe6ced3ad26$var$removeDuplicateSlashes;
|
|
31629
31767
|
|
|
31630
31768
|
|
|
31631
|
-
var $
|
|
31769
|
+
var $64f6f1838decdf61$exports = {};
|
|
31770
|
+
"use strict";
|
|
31771
|
+
Object.defineProperty($64f6f1838decdf61$exports, "__esModule", {
|
|
31772
|
+
value: true
|
|
31773
|
+
});
|
|
31774
|
+
var $f4af028c6d5ad86c$exports = {};
|
|
31775
|
+
"use strict";
|
|
31776
|
+
Object.defineProperty($f4af028c6d5ad86c$exports, "__esModule", {
|
|
31777
|
+
value: true
|
|
31778
|
+
});
|
|
31779
|
+
var $798d916015b2c927$exports = {};
|
|
31632
31780
|
"use strict";
|
|
31633
|
-
Object.defineProperty($
|
|
31781
|
+
Object.defineProperty($798d916015b2c927$exports, "__esModule", {
|
|
31634
31782
|
value: true
|
|
31635
31783
|
});
|
|
31636
|
-
var $
|
|
31784
|
+
var $dbc0921597fb36f9$exports = {};
|
|
31637
31785
|
"use strict";
|
|
31638
|
-
Object.defineProperty($
|
|
31786
|
+
Object.defineProperty($dbc0921597fb36f9$exports, "__esModule", {
|
|
31787
|
+
value: true
|
|
31788
|
+
});
|
|
31789
|
+
var $2fa2a8e52edb0b77$exports = {};
|
|
31790
|
+
"use strict";
|
|
31791
|
+
Object.defineProperty($2fa2a8e52edb0b77$exports, "__esModule", {
|
|
31639
31792
|
value: true
|
|
31640
31793
|
});
|
|
31641
31794
|
|
|
31795
|
+
var $6e9dd7fa450f205e$exports = {};
|
|
31796
|
+
"use strict";
|
|
31797
|
+
Object.defineProperty($6e9dd7fa450f205e$exports, "__esModule", {
|
|
31798
|
+
value: true
|
|
31799
|
+
});
|
|
31800
|
+
var $214d283d2b9ddc47$exports = {};
|
|
31801
|
+
"use strict";
|
|
31802
|
+
Object.defineProperty($214d283d2b9ddc47$exports, "__esModule", {
|
|
31803
|
+
value: true
|
|
31804
|
+
});
|
|
31642
31805
|
var $6c0caade5edaab5b$exports = {};
|
|
31643
31806
|
"use strict";
|
|
31644
31807
|
Object.defineProperty($6c0caade5edaab5b$exports, "__esModule", {
|
|
@@ -31748,33 +31911,6 @@ function $6c0caade5edaab5b$var$getSettings(settingsOrOptions = {}) {
|
|
|
31748
31911
|
}
|
|
31749
31912
|
|
|
31750
31913
|
|
|
31751
|
-
var $798d916015b2c927$exports = {};
|
|
31752
|
-
"use strict";
|
|
31753
|
-
Object.defineProperty($798d916015b2c927$exports, "__esModule", {
|
|
31754
|
-
value: true
|
|
31755
|
-
});
|
|
31756
|
-
var $dbc0921597fb36f9$exports = {};
|
|
31757
|
-
"use strict";
|
|
31758
|
-
Object.defineProperty($dbc0921597fb36f9$exports, "__esModule", {
|
|
31759
|
-
value: true
|
|
31760
|
-
});
|
|
31761
|
-
var $2fa2a8e52edb0b77$exports = {};
|
|
31762
|
-
"use strict";
|
|
31763
|
-
Object.defineProperty($2fa2a8e52edb0b77$exports, "__esModule", {
|
|
31764
|
-
value: true
|
|
31765
|
-
});
|
|
31766
|
-
|
|
31767
|
-
var $6e9dd7fa450f205e$exports = {};
|
|
31768
|
-
"use strict";
|
|
31769
|
-
Object.defineProperty($6e9dd7fa450f205e$exports, "__esModule", {
|
|
31770
|
-
value: true
|
|
31771
|
-
});
|
|
31772
|
-
var $214d283d2b9ddc47$exports = {};
|
|
31773
|
-
"use strict";
|
|
31774
|
-
Object.defineProperty($214d283d2b9ddc47$exports, "__esModule", {
|
|
31775
|
-
value: true
|
|
31776
|
-
});
|
|
31777
|
-
|
|
31778
31914
|
var $464bce01c537cfdb$exports = {};
|
|
31779
31915
|
$464bce01c537cfdb$exports = $464bce01c537cfdb$var$runParallel;
|
|
31780
31916
|
function $464bce01c537cfdb$var$runParallel(tasks, cb) {
|
|
@@ -32525,15 +32661,15 @@ function $798d916015b2c927$var$getSettings(settingsOrOptions = {}) {
|
|
|
32525
32661
|
}
|
|
32526
32662
|
|
|
32527
32663
|
|
|
32528
|
-
var $
|
|
32664
|
+
var $9b0d5220a1514c46$exports = {};
|
|
32529
32665
|
"use strict";
|
|
32530
|
-
Object.defineProperty($
|
|
32666
|
+
Object.defineProperty($9b0d5220a1514c46$exports, "__esModule", {
|
|
32531
32667
|
value: true
|
|
32532
32668
|
});
|
|
32533
32669
|
|
|
32534
32670
|
|
|
32535
32671
|
|
|
32536
|
-
class $
|
|
32672
|
+
class $9b0d5220a1514c46$var$Reader {
|
|
32537
32673
|
constructor(_settings){
|
|
32538
32674
|
this._settings = _settings;
|
|
32539
32675
|
this._fsStatSettings = new $6c0caade5edaab5b$exports.Settings({
|
|
@@ -32549,19 +32685,28 @@ class $595889d33eb55b58$var$Reader {
|
|
|
32549
32685
|
const entry = {
|
|
32550
32686
|
name: pattern,
|
|
32551
32687
|
path: pattern,
|
|
32552
|
-
dirent: $
|
|
32688
|
+
dirent: $cf522a9d05043495$exports.fs.createDirentFromStats(pattern, stats)
|
|
32553
32689
|
};
|
|
32554
32690
|
if (this._settings.stats) entry.stats = stats;
|
|
32555
32691
|
return entry;
|
|
32556
32692
|
}
|
|
32557
32693
|
_isFatalError(error) {
|
|
32558
|
-
return !$
|
|
32694
|
+
return !$cf522a9d05043495$exports.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
|
|
32559
32695
|
}
|
|
32560
32696
|
}
|
|
32561
|
-
$
|
|
32697
|
+
$9b0d5220a1514c46$exports.default = $9b0d5220a1514c46$var$Reader;
|
|
32698
|
+
|
|
32699
|
+
|
|
32700
|
+
var $3e83d8893f7f02ce$exports = {};
|
|
32701
|
+
"use strict";
|
|
32702
|
+
Object.defineProperty($3e83d8893f7f02ce$exports, "__esModule", {
|
|
32703
|
+
value: true
|
|
32704
|
+
});
|
|
32562
32705
|
|
|
32563
32706
|
|
|
32564
|
-
|
|
32707
|
+
|
|
32708
|
+
|
|
32709
|
+
class $3e83d8893f7f02ce$var$ReaderStream extends $9b0d5220a1514c46$exports.default {
|
|
32565
32710
|
constructor(){
|
|
32566
32711
|
super(...arguments);
|
|
32567
32712
|
this._walkStream = $798d916015b2c927$exports.walkStream;
|
|
@@ -32599,93 +32744,209 @@ class $f93330d45af3b4cf$var$ReaderStream extends $595889d33eb55b58$exports.defau
|
|
|
32599
32744
|
});
|
|
32600
32745
|
}
|
|
32601
32746
|
}
|
|
32602
|
-
$
|
|
32747
|
+
$3e83d8893f7f02ce$exports.default = $3e83d8893f7f02ce$var$ReaderStream;
|
|
32603
32748
|
|
|
32604
32749
|
|
|
32605
|
-
var $
|
|
32750
|
+
class $f4af028c6d5ad86c$var$ReaderAsync extends $9b0d5220a1514c46$exports.default {
|
|
32751
|
+
constructor(){
|
|
32752
|
+
super(...arguments);
|
|
32753
|
+
this._walkAsync = $798d916015b2c927$exports.walk;
|
|
32754
|
+
this._readerStream = new $3e83d8893f7f02ce$exports.default(this._settings);
|
|
32755
|
+
}
|
|
32756
|
+
dynamic(root, options) {
|
|
32757
|
+
return new Promise((resolve, reject)=>{
|
|
32758
|
+
this._walkAsync(root, options, (error, entries)=>{
|
|
32759
|
+
if (error === null) resolve(entries);
|
|
32760
|
+
else reject(error);
|
|
32761
|
+
});
|
|
32762
|
+
});
|
|
32763
|
+
}
|
|
32764
|
+
async static(patterns, options) {
|
|
32765
|
+
const entries = [];
|
|
32766
|
+
const stream = this._readerStream.static(patterns, options);
|
|
32767
|
+
// After #235, replace it with an asynchronous iterator.
|
|
32768
|
+
return new Promise((resolve, reject)=>{
|
|
32769
|
+
stream.once("error", reject);
|
|
32770
|
+
stream.on("data", (entry)=>entries.push(entry));
|
|
32771
|
+
stream.once("end", ()=>resolve(entries));
|
|
32772
|
+
});
|
|
32773
|
+
}
|
|
32774
|
+
}
|
|
32775
|
+
$f4af028c6d5ad86c$exports.default = $f4af028c6d5ad86c$var$ReaderAsync;
|
|
32776
|
+
|
|
32777
|
+
|
|
32778
|
+
var $cdd9415193e576b3$exports = {};
|
|
32779
|
+
"use strict";
|
|
32780
|
+
Object.defineProperty($cdd9415193e576b3$exports, "__esModule", {
|
|
32781
|
+
value: true
|
|
32782
|
+
});
|
|
32783
|
+
|
|
32784
|
+
var $e9c252ea38ebf1b3$exports = {};
|
|
32606
32785
|
"use strict";
|
|
32607
|
-
Object.defineProperty($
|
|
32786
|
+
Object.defineProperty($e9c252ea38ebf1b3$exports, "__esModule", {
|
|
32608
32787
|
value: true
|
|
32609
32788
|
});
|
|
32610
32789
|
|
|
32611
|
-
var $
|
|
32790
|
+
var $5f5b424167dc8a8e$exports = {};
|
|
32791
|
+
"use strict";
|
|
32792
|
+
Object.defineProperty($5f5b424167dc8a8e$exports, "__esModule", {
|
|
32793
|
+
value: true
|
|
32794
|
+
});
|
|
32795
|
+
var $bed2cf5848052d99$exports = {};
|
|
32612
32796
|
"use strict";
|
|
32613
|
-
Object.defineProperty($
|
|
32797
|
+
Object.defineProperty($bed2cf5848052d99$exports, "__esModule", {
|
|
32614
32798
|
value: true
|
|
32615
32799
|
});
|
|
32616
32800
|
|
|
32617
|
-
class $
|
|
32801
|
+
class $bed2cf5848052d99$var$Matcher {
|
|
32802
|
+
constructor(_patterns, _settings, _micromatchOptions){
|
|
32803
|
+
this._patterns = _patterns;
|
|
32804
|
+
this._settings = _settings;
|
|
32805
|
+
this._micromatchOptions = _micromatchOptions;
|
|
32806
|
+
this._storage = [];
|
|
32807
|
+
this._fillStorage();
|
|
32808
|
+
}
|
|
32809
|
+
_fillStorage() {
|
|
32810
|
+
/**
|
|
32811
|
+
* The original pattern may include `{,*,**,a/*}`, which will lead to problems with matching (unresolved level).
|
|
32812
|
+
* So, before expand patterns with brace expansion into separated patterns.
|
|
32813
|
+
*/ const patterns = $cf522a9d05043495$exports.pattern.expandPatternsWithBraceExpansion(this._patterns);
|
|
32814
|
+
for (const pattern of patterns){
|
|
32815
|
+
const segments = this._getPatternSegments(pattern);
|
|
32816
|
+
const sections = this._splitSegmentsIntoSections(segments);
|
|
32817
|
+
this._storage.push({
|
|
32818
|
+
complete: sections.length <= 1,
|
|
32819
|
+
pattern: pattern,
|
|
32820
|
+
segments: segments,
|
|
32821
|
+
sections: sections
|
|
32822
|
+
});
|
|
32823
|
+
}
|
|
32824
|
+
}
|
|
32825
|
+
_getPatternSegments(pattern) {
|
|
32826
|
+
const parts = $cf522a9d05043495$exports.pattern.getPatternParts(pattern, this._micromatchOptions);
|
|
32827
|
+
return parts.map((part)=>{
|
|
32828
|
+
const dynamic = $cf522a9d05043495$exports.pattern.isDynamicPattern(part, this._settings);
|
|
32829
|
+
if (!dynamic) return {
|
|
32830
|
+
dynamic: false,
|
|
32831
|
+
pattern: part
|
|
32832
|
+
};
|
|
32833
|
+
return {
|
|
32834
|
+
dynamic: true,
|
|
32835
|
+
pattern: part,
|
|
32836
|
+
patternRe: $cf522a9d05043495$exports.pattern.makeRe(part, this._micromatchOptions)
|
|
32837
|
+
};
|
|
32838
|
+
});
|
|
32839
|
+
}
|
|
32840
|
+
_splitSegmentsIntoSections(segments) {
|
|
32841
|
+
return $cf522a9d05043495$exports.array.splitWhen(segments, (segment)=>segment.dynamic && $cf522a9d05043495$exports.pattern.hasGlobStar(segment.pattern));
|
|
32842
|
+
}
|
|
32843
|
+
}
|
|
32844
|
+
$bed2cf5848052d99$exports.default = $bed2cf5848052d99$var$Matcher;
|
|
32845
|
+
|
|
32846
|
+
|
|
32847
|
+
class $5f5b424167dc8a8e$var$PartialMatcher extends $bed2cf5848052d99$exports.default {
|
|
32848
|
+
match(filepath) {
|
|
32849
|
+
const parts = filepath.split("/");
|
|
32850
|
+
const levels = parts.length;
|
|
32851
|
+
const patterns = this._storage.filter((info)=>!info.complete || info.segments.length > levels);
|
|
32852
|
+
for (const pattern of patterns){
|
|
32853
|
+
const section = pattern.sections[0];
|
|
32854
|
+
/**
|
|
32855
|
+
* In this case, the pattern has a globstar and we must read all directories unconditionally,
|
|
32856
|
+
* but only if the level has reached the end of the first group.
|
|
32857
|
+
*
|
|
32858
|
+
* fixtures/{a,b}/**
|
|
32859
|
+
* ^ true/false ^ always true
|
|
32860
|
+
*/ if (!pattern.complete && levels > section.length) return true;
|
|
32861
|
+
const match = parts.every((part, index)=>{
|
|
32862
|
+
const segment = pattern.segments[index];
|
|
32863
|
+
if (segment.dynamic && segment.patternRe.test(part)) return true;
|
|
32864
|
+
if (!segment.dynamic && segment.pattern === part) return true;
|
|
32865
|
+
return false;
|
|
32866
|
+
});
|
|
32867
|
+
if (match) return true;
|
|
32868
|
+
}
|
|
32869
|
+
return false;
|
|
32870
|
+
}
|
|
32871
|
+
}
|
|
32872
|
+
$5f5b424167dc8a8e$exports.default = $5f5b424167dc8a8e$var$PartialMatcher;
|
|
32873
|
+
|
|
32874
|
+
|
|
32875
|
+
class $e9c252ea38ebf1b3$var$DeepFilter {
|
|
32618
32876
|
constructor(_settings, _micromatchOptions){
|
|
32619
32877
|
this._settings = _settings;
|
|
32620
32878
|
this._micromatchOptions = _micromatchOptions;
|
|
32621
32879
|
}
|
|
32622
32880
|
getFilter(basePath, positive, negative) {
|
|
32623
|
-
const
|
|
32881
|
+
const matcher = this._getMatcher(positive);
|
|
32624
32882
|
const negativeRe = this._getNegativePatternsRe(negative);
|
|
32625
|
-
return (entry)=>this._filter(basePath, entry,
|
|
32883
|
+
return (entry)=>this._filter(basePath, entry, matcher, negativeRe);
|
|
32626
32884
|
}
|
|
32627
|
-
|
|
32628
|
-
|
|
32629
|
-
return globstar ? Infinity : $1b5b082adfcf5f99$exports.pattern.getMaxNaivePatternsDepth(patterns);
|
|
32885
|
+
_getMatcher(patterns) {
|
|
32886
|
+
return new $5f5b424167dc8a8e$exports.default(patterns, this._settings, this._micromatchOptions);
|
|
32630
32887
|
}
|
|
32631
32888
|
_getNegativePatternsRe(patterns) {
|
|
32632
|
-
const affectDepthOfReadingPatterns = patterns.filter($
|
|
32633
|
-
return $
|
|
32889
|
+
const affectDepthOfReadingPatterns = patterns.filter($cf522a9d05043495$exports.pattern.isAffectDepthOfReadingPattern);
|
|
32890
|
+
return $cf522a9d05043495$exports.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
|
32634
32891
|
}
|
|
32635
|
-
_filter(basePath, entry,
|
|
32636
|
-
|
|
32637
|
-
if (this._isSkippedByDeep(depth)) return false;
|
|
32638
|
-
if (this._isSkippedByMaxPatternDepth(depth, maxPatternDepth)) return false;
|
|
32892
|
+
_filter(basePath, entry, matcher, negativeRe) {
|
|
32893
|
+
if (this._isSkippedByDeep(basePath, entry.path)) return false;
|
|
32639
32894
|
if (this._isSkippedSymbolicLink(entry)) return false;
|
|
32640
|
-
|
|
32895
|
+
const filepath = $cf522a9d05043495$exports.path.removeLeadingDotSegment(entry.path);
|
|
32896
|
+
if (this._isSkippedByPositivePatterns(filepath, matcher)) return false;
|
|
32897
|
+
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
|
32641
32898
|
}
|
|
32642
|
-
|
|
32643
|
-
|
|
32644
|
-
|
|
32645
|
-
|
|
32646
|
-
|
|
32647
|
-
_isSkippedByDeep(entryDepth) {
|
|
32648
|
-
return entryDepth >= this._settings.deep;
|
|
32899
|
+
_isSkippedByDeep(basePath, entryPath) {
|
|
32900
|
+
/**
|
|
32901
|
+
* Avoid unnecessary depth calculations when it doesn't matter.
|
|
32902
|
+
*/ if (this._settings.deep === Infinity) return false;
|
|
32903
|
+
return this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
|
|
32649
32904
|
}
|
|
32650
|
-
|
|
32651
|
-
|
|
32905
|
+
_getEntryLevel(basePath, entryPath) {
|
|
32906
|
+
const entryPathDepth = entryPath.split("/").length;
|
|
32907
|
+
if (basePath === "") return entryPathDepth;
|
|
32908
|
+
const basePathDepth = basePath.split("/").length;
|
|
32909
|
+
return entryPathDepth - basePathDepth;
|
|
32652
32910
|
}
|
|
32653
32911
|
_isSkippedSymbolicLink(entry) {
|
|
32654
32912
|
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
|
32655
32913
|
}
|
|
32656
|
-
|
|
32657
|
-
return
|
|
32914
|
+
_isSkippedByPositivePatterns(entryPath, matcher) {
|
|
32915
|
+
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
|
32916
|
+
}
|
|
32917
|
+
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
|
32918
|
+
return !$cf522a9d05043495$exports.pattern.matchAny(entryPath, patternsRe);
|
|
32658
32919
|
}
|
|
32659
32920
|
}
|
|
32660
|
-
$
|
|
32921
|
+
$e9c252ea38ebf1b3$exports.default = $e9c252ea38ebf1b3$var$DeepFilter;
|
|
32661
32922
|
|
|
32662
32923
|
|
|
32663
|
-
var $
|
|
32924
|
+
var $8cc0797818496428$exports = {};
|
|
32664
32925
|
"use strict";
|
|
32665
|
-
Object.defineProperty($
|
|
32926
|
+
Object.defineProperty($8cc0797818496428$exports, "__esModule", {
|
|
32666
32927
|
value: true
|
|
32667
32928
|
});
|
|
32668
32929
|
|
|
32669
|
-
class $
|
|
32930
|
+
class $8cc0797818496428$var$EntryFilter {
|
|
32670
32931
|
constructor(_settings, _micromatchOptions){
|
|
32671
32932
|
this._settings = _settings;
|
|
32672
32933
|
this._micromatchOptions = _micromatchOptions;
|
|
32673
32934
|
this.index = new Map();
|
|
32674
32935
|
}
|
|
32675
32936
|
getFilter(positive, negative) {
|
|
32676
|
-
const positiveRe = $
|
|
32677
|
-
const negativeRe = $
|
|
32937
|
+
const positiveRe = $cf522a9d05043495$exports.pattern.convertPatternsToRe(positive, this._micromatchOptions);
|
|
32938
|
+
const negativeRe = $cf522a9d05043495$exports.pattern.convertPatternsToRe(negative, this._micromatchOptions);
|
|
32678
32939
|
return (entry)=>this._filter(entry, positiveRe, negativeRe);
|
|
32679
32940
|
}
|
|
32680
32941
|
_filter(entry, positiveRe, negativeRe) {
|
|
32681
|
-
if (this._settings.unique)
|
|
32682
|
-
if (this._isDuplicateEntry(entry)) return false;
|
|
32683
|
-
this._createIndexRecord(entry);
|
|
32684
|
-
}
|
|
32942
|
+
if (this._settings.unique && this._isDuplicateEntry(entry)) return false;
|
|
32685
32943
|
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) return false;
|
|
32686
|
-
if (this._isSkippedByAbsoluteNegativePatterns(entry, negativeRe)) return false;
|
|
32944
|
+
if (this._isSkippedByAbsoluteNegativePatterns(entry.path, negativeRe)) return false;
|
|
32687
32945
|
const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
|
|
32688
|
-
|
|
32946
|
+
const isDirectory = entry.dirent.isDirectory();
|
|
32947
|
+
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory);
|
|
32948
|
+
if (this._settings.unique && isMatched) this._createIndexRecord(entry);
|
|
32949
|
+
return isMatched;
|
|
32689
32950
|
}
|
|
32690
32951
|
_isDuplicateEntry(entry) {
|
|
32691
32952
|
return this.index.has(entry.path);
|
|
@@ -32699,25 +32960,31 @@ class $f26cad5ed17500b0$var$EntryFilter {
|
|
|
32699
32960
|
_onlyDirectoryFilter(entry) {
|
|
32700
32961
|
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
|
32701
32962
|
}
|
|
32702
|
-
_isSkippedByAbsoluteNegativePatterns(
|
|
32963
|
+
_isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
|
|
32703
32964
|
if (!this._settings.absolute) return false;
|
|
32704
|
-
const fullpath = $
|
|
32705
|
-
return
|
|
32965
|
+
const fullpath = $cf522a9d05043495$exports.path.makeAbsolute(this._settings.cwd, entryPath);
|
|
32966
|
+
return $cf522a9d05043495$exports.pattern.matchAny(fullpath, patternsRe);
|
|
32706
32967
|
}
|
|
32707
|
-
_isMatchToPatterns(
|
|
32708
|
-
|
|
32968
|
+
_isMatchToPatterns(entryPath, patternsRe, isDirectory) {
|
|
32969
|
+
const filepath = $cf522a9d05043495$exports.path.removeLeadingDotSegment(entryPath);
|
|
32970
|
+
// Trying to match files and directories by patterns.
|
|
32971
|
+
const isMatched = $cf522a9d05043495$exports.pattern.matchAny(filepath, patternsRe);
|
|
32972
|
+
// A pattern with a trailling slash can be used for directory matching.
|
|
32973
|
+
// To apply such pattern, we need to add a tralling slash to the path.
|
|
32974
|
+
if (!isMatched && isDirectory) return $cf522a9d05043495$exports.pattern.matchAny(filepath + "/", patternsRe);
|
|
32975
|
+
return isMatched;
|
|
32709
32976
|
}
|
|
32710
32977
|
}
|
|
32711
|
-
$
|
|
32978
|
+
$8cc0797818496428$exports.default = $8cc0797818496428$var$EntryFilter;
|
|
32712
32979
|
|
|
32713
32980
|
|
|
32714
|
-
var $
|
|
32981
|
+
var $7ed24425816f590c$exports = {};
|
|
32715
32982
|
"use strict";
|
|
32716
|
-
Object.defineProperty($
|
|
32983
|
+
Object.defineProperty($7ed24425816f590c$exports, "__esModule", {
|
|
32717
32984
|
value: true
|
|
32718
32985
|
});
|
|
32719
32986
|
|
|
32720
|
-
class $
|
|
32987
|
+
class $7ed24425816f590c$var$ErrorFilter {
|
|
32721
32988
|
constructor(_settings){
|
|
32722
32989
|
this._settings = _settings;
|
|
32723
32990
|
}
|
|
@@ -32725,19 +32992,19 @@ class $4f982576078a7524$var$ErrorFilter {
|
|
|
32725
32992
|
return (error)=>this._isNonFatalError(error);
|
|
32726
32993
|
}
|
|
32727
32994
|
_isNonFatalError(error) {
|
|
32728
|
-
return $
|
|
32995
|
+
return $cf522a9d05043495$exports.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
|
|
32729
32996
|
}
|
|
32730
32997
|
}
|
|
32731
|
-
$
|
|
32998
|
+
$7ed24425816f590c$exports.default = $7ed24425816f590c$var$ErrorFilter;
|
|
32732
32999
|
|
|
32733
33000
|
|
|
32734
|
-
var $
|
|
33001
|
+
var $cac4f3802d700428$exports = {};
|
|
32735
33002
|
"use strict";
|
|
32736
|
-
Object.defineProperty($
|
|
33003
|
+
Object.defineProperty($cac4f3802d700428$exports, "__esModule", {
|
|
32737
33004
|
value: true
|
|
32738
33005
|
});
|
|
32739
33006
|
|
|
32740
|
-
class $
|
|
33007
|
+
class $cac4f3802d700428$var$EntryTransformer {
|
|
32741
33008
|
constructor(_settings){
|
|
32742
33009
|
this._settings = _settings;
|
|
32743
33010
|
}
|
|
@@ -32747,8 +33014,8 @@ class $4583c239a6a31b31$var$EntryTransformer {
|
|
|
32747
33014
|
_transform(entry) {
|
|
32748
33015
|
let filepath = entry.path;
|
|
32749
33016
|
if (this._settings.absolute) {
|
|
32750
|
-
filepath = $
|
|
32751
|
-
filepath = $
|
|
33017
|
+
filepath = $cf522a9d05043495$exports.path.makeAbsolute(this._settings.cwd, filepath);
|
|
33018
|
+
filepath = $cf522a9d05043495$exports.path.unixify(filepath);
|
|
32752
33019
|
}
|
|
32753
33020
|
if (this._settings.markDirectories && entry.dirent.isDirectory()) filepath += "/";
|
|
32754
33021
|
if (!this._settings.objectMode) return filepath;
|
|
@@ -32757,16 +33024,16 @@ class $4583c239a6a31b31$var$EntryTransformer {
|
|
|
32757
33024
|
});
|
|
32758
33025
|
}
|
|
32759
33026
|
}
|
|
32760
|
-
$
|
|
33027
|
+
$cac4f3802d700428$exports.default = $cac4f3802d700428$var$EntryTransformer;
|
|
32761
33028
|
|
|
32762
33029
|
|
|
32763
|
-
class $
|
|
33030
|
+
class $cdd9415193e576b3$var$Provider {
|
|
32764
33031
|
constructor(_settings){
|
|
32765
33032
|
this._settings = _settings;
|
|
32766
|
-
this.errorFilter = new $
|
|
32767
|
-
this.entryFilter = new $
|
|
32768
|
-
this.deepFilter = new $
|
|
32769
|
-
this.entryTransformer = new $
|
|
33033
|
+
this.errorFilter = new $7ed24425816f590c$exports.default(this._settings);
|
|
33034
|
+
this.entryFilter = new $8cc0797818496428$exports.default(this._settings, this._getMicromatchOptions());
|
|
33035
|
+
this.deepFilter = new $e9c252ea38ebf1b3$exports.default(this._settings, this._getMicromatchOptions());
|
|
33036
|
+
this.entryTransformer = new $cac4f3802d700428$exports.default(this._settings);
|
|
32770
33037
|
}
|
|
32771
33038
|
_getRootDirectory(task) {
|
|
32772
33039
|
return $8C1kk$path.resolve(this._settings.cwd, task.base);
|
|
@@ -32800,45 +33067,40 @@ class $b2104eae05a96326$var$Provider {
|
|
|
32800
33067
|
};
|
|
32801
33068
|
}
|
|
32802
33069
|
}
|
|
32803
|
-
$
|
|
33070
|
+
$cdd9415193e576b3$exports.default = $cdd9415193e576b3$var$Provider;
|
|
32804
33071
|
|
|
32805
33072
|
|
|
32806
|
-
class $
|
|
33073
|
+
class $64f6f1838decdf61$var$ProviderAsync extends $cdd9415193e576b3$exports.default {
|
|
32807
33074
|
constructor(){
|
|
32808
33075
|
super(...arguments);
|
|
32809
|
-
this._reader = new $
|
|
33076
|
+
this._reader = new $f4af028c6d5ad86c$exports.default(this._settings);
|
|
32810
33077
|
}
|
|
32811
|
-
read(task) {
|
|
33078
|
+
async read(task) {
|
|
32812
33079
|
const root = this._getRootDirectory(task);
|
|
32813
33080
|
const options = this._getReaderOptions(task);
|
|
32814
|
-
const entries =
|
|
32815
|
-
return
|
|
32816
|
-
const stream = this.api(root, task, options);
|
|
32817
|
-
stream.once("error", reject);
|
|
32818
|
-
stream.on("data", (entry)=>entries.push(options.transform(entry)));
|
|
32819
|
-
stream.once("end", ()=>resolve(entries));
|
|
32820
|
-
});
|
|
33081
|
+
const entries = await this.api(root, task, options);
|
|
33082
|
+
return entries.map((entry)=>options.transform(entry));
|
|
32821
33083
|
}
|
|
32822
33084
|
api(root, task, options) {
|
|
32823
33085
|
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
32824
33086
|
return this._reader.static(task.patterns, options);
|
|
32825
33087
|
}
|
|
32826
33088
|
}
|
|
32827
|
-
$
|
|
33089
|
+
$64f6f1838decdf61$exports.default = $64f6f1838decdf61$var$ProviderAsync;
|
|
32828
33090
|
|
|
32829
33091
|
|
|
32830
|
-
var $
|
|
33092
|
+
var $7af4d6755aac8d4c$exports = {};
|
|
32831
33093
|
"use strict";
|
|
32832
|
-
Object.defineProperty($
|
|
33094
|
+
Object.defineProperty($7af4d6755aac8d4c$exports, "__esModule", {
|
|
32833
33095
|
value: true
|
|
32834
33096
|
});
|
|
32835
33097
|
|
|
32836
33098
|
|
|
32837
33099
|
|
|
32838
|
-
class $
|
|
33100
|
+
class $7af4d6755aac8d4c$var$ProviderStream extends $cdd9415193e576b3$exports.default {
|
|
32839
33101
|
constructor(){
|
|
32840
33102
|
super(...arguments);
|
|
32841
|
-
this._reader = new $
|
|
33103
|
+
this._reader = new $3e83d8893f7f02ce$exports.default(this._settings);
|
|
32842
33104
|
}
|
|
32843
33105
|
read(task) {
|
|
32844
33106
|
const root = this._getRootDirectory(task);
|
|
@@ -32857,23 +33119,23 @@ class $434410c8b70ca432$var$ProviderStream extends $b2104eae05a96326$exports.def
|
|
|
32857
33119
|
return this._reader.static(task.patterns, options);
|
|
32858
33120
|
}
|
|
32859
33121
|
}
|
|
32860
|
-
$
|
|
33122
|
+
$7af4d6755aac8d4c$exports.default = $7af4d6755aac8d4c$var$ProviderStream;
|
|
32861
33123
|
|
|
32862
33124
|
|
|
32863
|
-
var $
|
|
33125
|
+
var $920a3ecaa6c6297b$exports = {};
|
|
32864
33126
|
"use strict";
|
|
32865
|
-
Object.defineProperty($
|
|
33127
|
+
Object.defineProperty($920a3ecaa6c6297b$exports, "__esModule", {
|
|
32866
33128
|
value: true
|
|
32867
33129
|
});
|
|
32868
|
-
var $
|
|
33130
|
+
var $2bcb845784c4dbc2$exports = {};
|
|
32869
33131
|
"use strict";
|
|
32870
|
-
Object.defineProperty($
|
|
33132
|
+
Object.defineProperty($2bcb845784c4dbc2$exports, "__esModule", {
|
|
32871
33133
|
value: true
|
|
32872
33134
|
});
|
|
32873
33135
|
|
|
32874
33136
|
|
|
32875
33137
|
|
|
32876
|
-
class $
|
|
33138
|
+
class $2bcb845784c4dbc2$var$ReaderSync extends $9b0d5220a1514c46$exports.default {
|
|
32877
33139
|
constructor(){
|
|
32878
33140
|
super(...arguments);
|
|
32879
33141
|
this._walkSync = $798d916015b2c927$exports.walkSync;
|
|
@@ -32905,14 +33167,14 @@ class $91612adb731b8334$var$ReaderSync extends $595889d33eb55b58$exports.default
|
|
|
32905
33167
|
return this._statSync(filepath, this._fsStatSettings);
|
|
32906
33168
|
}
|
|
32907
33169
|
}
|
|
32908
|
-
$
|
|
33170
|
+
$2bcb845784c4dbc2$exports.default = $2bcb845784c4dbc2$var$ReaderSync;
|
|
32909
33171
|
|
|
32910
33172
|
|
|
32911
33173
|
|
|
32912
|
-
class $
|
|
33174
|
+
class $920a3ecaa6c6297b$var$ProviderSync extends $cdd9415193e576b3$exports.default {
|
|
32913
33175
|
constructor(){
|
|
32914
33176
|
super(...arguments);
|
|
32915
|
-
this._reader = new $
|
|
33177
|
+
this._reader = new $2bcb845784c4dbc2$exports.default(this._settings);
|
|
32916
33178
|
}
|
|
32917
33179
|
read(task) {
|
|
32918
33180
|
const root = this._getRootDirectory(task);
|
|
@@ -32925,18 +33187,22 @@ class $449ae2813b11b2d5$var$ProviderSync extends $b2104eae05a96326$exports.defau
|
|
|
32925
33187
|
return this._reader.static(task.patterns, options);
|
|
32926
33188
|
}
|
|
32927
33189
|
}
|
|
32928
|
-
$
|
|
33190
|
+
$920a3ecaa6c6297b$exports.default = $920a3ecaa6c6297b$var$ProviderSync;
|
|
32929
33191
|
|
|
32930
33192
|
|
|
32931
|
-
var $
|
|
33193
|
+
var $91327a74649d3ed9$exports = {};
|
|
32932
33194
|
"use strict";
|
|
32933
|
-
Object.defineProperty($
|
|
33195
|
+
Object.defineProperty($91327a74649d3ed9$exports, "__esModule", {
|
|
32934
33196
|
value: true
|
|
32935
33197
|
});
|
|
33198
|
+
$91327a74649d3ed9$exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
32936
33199
|
|
|
32937
33200
|
|
|
32938
|
-
|
|
32939
|
-
|
|
33201
|
+
/**
|
|
33202
|
+
* The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
|
|
33203
|
+
* https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
|
|
33204
|
+
*/ const $91327a74649d3ed9$var$CPU_COUNT = Math.max($8C1kk$os.cpus().length, 1);
|
|
33205
|
+
$91327a74649d3ed9$exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
32940
33206
|
lstat: $8C1kk$fs.lstat,
|
|
32941
33207
|
lstatSync: $8C1kk$fs.lstatSync,
|
|
32942
33208
|
stat: $8C1kk$fs.stat,
|
|
@@ -32944,14 +33210,14 @@ $1d7e3dfd05c8321e$exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
|
32944
33210
|
readdir: $8C1kk$fs.readdir,
|
|
32945
33211
|
readdirSync: $8C1kk$fs.readdirSync
|
|
32946
33212
|
};
|
|
32947
|
-
class $
|
|
33213
|
+
class $91327a74649d3ed9$var$Settings {
|
|
32948
33214
|
constructor(_options = {}){
|
|
32949
33215
|
this._options = _options;
|
|
32950
33216
|
this.absolute = this._getValue(this._options.absolute, false);
|
|
32951
33217
|
this.baseNameMatch = this._getValue(this._options.baseNameMatch, false);
|
|
32952
33218
|
this.braceExpansion = this._getValue(this._options.braceExpansion, true);
|
|
32953
33219
|
this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true);
|
|
32954
|
-
this.concurrency = this._getValue(this._options.concurrency, $
|
|
33220
|
+
this.concurrency = this._getValue(this._options.concurrency, $91327a74649d3ed9$var$CPU_COUNT);
|
|
32955
33221
|
this.cwd = this._getValue(this._options.cwd, process.cwd());
|
|
32956
33222
|
this.deep = this._getValue(this._options.deep, Infinity);
|
|
32957
33223
|
this.dot = this._getValue(this._options.dot, false);
|
|
@@ -32975,77 +33241,454 @@ class $1d7e3dfd05c8321e$var$Settings {
|
|
|
32975
33241
|
return option === undefined ? value : option;
|
|
32976
33242
|
}
|
|
32977
33243
|
_getFileSystemMethods(methods = {}) {
|
|
32978
|
-
return Object.assign(Object.assign({}, $
|
|
33244
|
+
return Object.assign(Object.assign({}, $91327a74649d3ed9$exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
32979
33245
|
}
|
|
32980
33246
|
}
|
|
32981
|
-
$
|
|
33247
|
+
$91327a74649d3ed9$exports.default = $91327a74649d3ed9$var$Settings;
|
|
32982
33248
|
|
|
32983
33249
|
|
|
32984
33250
|
|
|
32985
|
-
function $
|
|
32986
|
-
|
|
32987
|
-
|
|
32988
|
-
|
|
32989
|
-
|
|
32990
|
-
}
|
|
32991
|
-
const works = $b57e78be4f7a2622$var$getWorks(source, $5e8aeb81d3971f46$exports.default, options);
|
|
32992
|
-
return Promise.all(works).then($1b5b082adfcf5f99$exports.array.flatten);
|
|
33251
|
+
async function $21b1b538e1d1be85$var$FastGlob(source, options) {
|
|
33252
|
+
$21b1b538e1d1be85$var$assertPatternsInput(source);
|
|
33253
|
+
const works = $21b1b538e1d1be85$var$getWorks(source, $64f6f1838decdf61$exports.default, options);
|
|
33254
|
+
const result = await Promise.all(works);
|
|
33255
|
+
return $cf522a9d05043495$exports.array.flatten(result);
|
|
32993
33256
|
}
|
|
32994
33257
|
// https://github.com/typescript-eslint/typescript-eslint/issues/60
|
|
32995
33258
|
// eslint-disable-next-line no-redeclare
|
|
32996
33259
|
(function(FastGlob) {
|
|
32997
33260
|
function sync(source, options) {
|
|
32998
|
-
$
|
|
32999
|
-
const works = $
|
|
33000
|
-
return $
|
|
33261
|
+
$21b1b538e1d1be85$var$assertPatternsInput(source);
|
|
33262
|
+
const works = $21b1b538e1d1be85$var$getWorks(source, $920a3ecaa6c6297b$exports.default, options);
|
|
33263
|
+
return $cf522a9d05043495$exports.array.flatten(works);
|
|
33001
33264
|
}
|
|
33002
33265
|
FastGlob.sync = sync;
|
|
33003
33266
|
function stream(source, options) {
|
|
33004
|
-
$
|
|
33005
|
-
const works = $
|
|
33267
|
+
$21b1b538e1d1be85$var$assertPatternsInput(source);
|
|
33268
|
+
const works = $21b1b538e1d1be85$var$getWorks(source, $7af4d6755aac8d4c$exports.default, options);
|
|
33006
33269
|
/**
|
|
33007
33270
|
* The stream returned by the provider cannot work with an asynchronous iterator.
|
|
33008
33271
|
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
33009
33272
|
* This affects performance (+25%). I don't see best solution right now.
|
|
33010
|
-
*/ return $
|
|
33273
|
+
*/ return $cf522a9d05043495$exports.stream.merge(works);
|
|
33011
33274
|
}
|
|
33012
33275
|
FastGlob.stream = stream;
|
|
33013
33276
|
function generateTasks(source, options) {
|
|
33014
|
-
$
|
|
33015
|
-
const patterns = [].concat(source);
|
|
33016
|
-
const settings = new $
|
|
33017
|
-
return $
|
|
33277
|
+
$21b1b538e1d1be85$var$assertPatternsInput(source);
|
|
33278
|
+
const patterns = $87bf1fe6ced3ad26$exports.transform([].concat(source));
|
|
33279
|
+
const settings = new $91327a74649d3ed9$exports.default(options);
|
|
33280
|
+
return $94ffeb6ed5329bdb$exports.generate(patterns, settings);
|
|
33018
33281
|
}
|
|
33019
33282
|
FastGlob.generateTasks = generateTasks;
|
|
33020
33283
|
function isDynamicPattern(source, options) {
|
|
33021
|
-
$
|
|
33022
|
-
const settings = new $
|
|
33023
|
-
return $
|
|
33284
|
+
$21b1b538e1d1be85$var$assertPatternsInput(source);
|
|
33285
|
+
const settings = new $91327a74649d3ed9$exports.default(options);
|
|
33286
|
+
return $cf522a9d05043495$exports.pattern.isDynamicPattern(source, settings);
|
|
33024
33287
|
}
|
|
33025
33288
|
FastGlob.isDynamicPattern = isDynamicPattern;
|
|
33026
33289
|
function escapePath(source) {
|
|
33027
|
-
$
|
|
33028
|
-
return $
|
|
33290
|
+
$21b1b538e1d1be85$var$assertPatternsInput(source);
|
|
33291
|
+
return $cf522a9d05043495$exports.path.escape(source);
|
|
33029
33292
|
}
|
|
33030
33293
|
FastGlob.escapePath = escapePath;
|
|
33031
|
-
})($
|
|
33032
|
-
function $
|
|
33033
|
-
const patterns = [].concat(source);
|
|
33034
|
-
const settings = new $
|
|
33035
|
-
const tasks = $
|
|
33294
|
+
})($21b1b538e1d1be85$var$FastGlob || ($21b1b538e1d1be85$var$FastGlob = {}));
|
|
33295
|
+
function $21b1b538e1d1be85$var$getWorks(source, _Provider, options) {
|
|
33296
|
+
const patterns = $87bf1fe6ced3ad26$exports.transform([].concat(source));
|
|
33297
|
+
const settings = new $91327a74649d3ed9$exports.default(options);
|
|
33298
|
+
const tasks = $94ffeb6ed5329bdb$exports.generate(patterns, settings);
|
|
33036
33299
|
const provider = new _Provider(settings);
|
|
33037
33300
|
return tasks.map(provider.read, provider);
|
|
33038
33301
|
}
|
|
33039
|
-
function $
|
|
33040
|
-
|
|
33041
|
-
|
|
33042
|
-
|
|
33043
|
-
function $b57e78be4f7a2622$var$isString(source) {
|
|
33044
|
-
return typeof source === "string";
|
|
33302
|
+
function $21b1b538e1d1be85$var$assertPatternsInput(input) {
|
|
33303
|
+
const source = [].concat(input);
|
|
33304
|
+
const isValidSource = source.every((item)=>$cf522a9d05043495$exports.string.isString(item) && !$cf522a9d05043495$exports.string.isEmpty(item));
|
|
33305
|
+
if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
33045
33306
|
}
|
|
33046
|
-
$
|
|
33307
|
+
$21b1b538e1d1be85$exports = $21b1b538e1d1be85$var$FastGlob;
|
|
33047
33308
|
|
|
33048
33309
|
|
|
33310
|
+
var $fec3b4fc54d3756a$exports = {};
|
|
33311
|
+
"use strict";
|
|
33312
|
+
|
|
33313
|
+
|
|
33314
|
+
|
|
33315
|
+
|
|
33316
|
+
var $5MQDC = parcelRequire("5MQDC");
|
|
33317
|
+
const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
|
|
33318
|
+
/**
|
|
33319
|
+
* Returns an array of strings that match one or more glob patterns.
|
|
33320
|
+
*
|
|
33321
|
+
* ```js
|
|
33322
|
+
* const mm = require('micromatch');
|
|
33323
|
+
* // mm(list, patterns[, options]);
|
|
33324
|
+
*
|
|
33325
|
+
* console.log(mm(['a.js', 'a.txt'], ['*.js']));
|
|
33326
|
+
* //=> [ 'a.js' ]
|
|
33327
|
+
* ```
|
|
33328
|
+
* @param {String|Array<string>} `list` List of strings to match.
|
|
33329
|
+
* @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
|
|
33330
|
+
* @param {Object} `options` See available [options](#options)
|
|
33331
|
+
* @return {Array} Returns an array of matches
|
|
33332
|
+
* @summary false
|
|
33333
|
+
* @api public
|
|
33334
|
+
*/ const $fec3b4fc54d3756a$var$micromatch = (list, patterns, options)=>{
|
|
33335
|
+
patterns = [].concat(patterns);
|
|
33336
|
+
list = [].concat(list);
|
|
33337
|
+
let omit = new Set();
|
|
33338
|
+
let keep = new Set();
|
|
33339
|
+
let items = new Set();
|
|
33340
|
+
let negatives = 0;
|
|
33341
|
+
let onResult = (state)=>{
|
|
33342
|
+
items.add(state.output);
|
|
33343
|
+
if (options && options.onResult) options.onResult(state);
|
|
33344
|
+
};
|
|
33345
|
+
for(let i = 0; i < patterns.length; i++){
|
|
33346
|
+
let isMatch = $2af609aa204f1181$exports(String(patterns[i]), {
|
|
33347
|
+
...options,
|
|
33348
|
+
onResult: onResult
|
|
33349
|
+
}, true);
|
|
33350
|
+
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
33351
|
+
if (negated) negatives++;
|
|
33352
|
+
for (let item of list){
|
|
33353
|
+
let matched = isMatch(item, true);
|
|
33354
|
+
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
33355
|
+
if (!match) continue;
|
|
33356
|
+
if (negated) omit.add(matched.output);
|
|
33357
|
+
else {
|
|
33358
|
+
omit.delete(matched.output);
|
|
33359
|
+
keep.add(matched.output);
|
|
33360
|
+
}
|
|
33361
|
+
}
|
|
33362
|
+
}
|
|
33363
|
+
let result = negatives === patterns.length ? [
|
|
33364
|
+
...items
|
|
33365
|
+
] : [
|
|
33366
|
+
...keep
|
|
33367
|
+
];
|
|
33368
|
+
let matches = result.filter((item)=>!omit.has(item));
|
|
33369
|
+
if (options && matches.length === 0) {
|
|
33370
|
+
if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
33371
|
+
if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p)=>p.replace(/\\/g, "")) : patterns;
|
|
33372
|
+
}
|
|
33373
|
+
return matches;
|
|
33374
|
+
};
|
|
33375
|
+
/**
|
|
33376
|
+
* Backwards compatibility
|
|
33377
|
+
*/ $fec3b4fc54d3756a$var$micromatch.match = $fec3b4fc54d3756a$var$micromatch;
|
|
33378
|
+
/**
|
|
33379
|
+
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
33380
|
+
* The returned function takes a string to match as its only argument and returns
|
|
33381
|
+
* true if the string is a match.
|
|
33382
|
+
*
|
|
33383
|
+
* ```js
|
|
33384
|
+
* const mm = require('micromatch');
|
|
33385
|
+
* // mm.matcher(pattern[, options]);
|
|
33386
|
+
*
|
|
33387
|
+
* const isMatch = mm.matcher('*.!(*a)');
|
|
33388
|
+
* console.log(isMatch('a.a')); //=> false
|
|
33389
|
+
* console.log(isMatch('a.b')); //=> true
|
|
33390
|
+
* ```
|
|
33391
|
+
* @param {String} `pattern` Glob pattern
|
|
33392
|
+
* @param {Object} `options`
|
|
33393
|
+
* @return {Function} Returns a matcher function.
|
|
33394
|
+
* @api public
|
|
33395
|
+
*/ $fec3b4fc54d3756a$var$micromatch.matcher = (pattern, options)=>$2af609aa204f1181$exports(pattern, options);
|
|
33396
|
+
/**
|
|
33397
|
+
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
33398
|
+
*
|
|
33399
|
+
* ```js
|
|
33400
|
+
* const mm = require('micromatch');
|
|
33401
|
+
* // mm.isMatch(string, patterns[, options]);
|
|
33402
|
+
*
|
|
33403
|
+
* console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
33404
|
+
* console.log(mm.isMatch('a.a', 'b.*')); //=> false
|
|
33405
|
+
* ```
|
|
33406
|
+
* @param {String} `str` The string to test.
|
|
33407
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
33408
|
+
* @param {Object} `[options]` See available [options](#options).
|
|
33409
|
+
* @return {Boolean} Returns true if any patterns match `str`
|
|
33410
|
+
* @api public
|
|
33411
|
+
*/ $fec3b4fc54d3756a$var$micromatch.isMatch = (str, patterns, options)=>$2af609aa204f1181$exports(patterns, options)(str);
|
|
33412
|
+
/**
|
|
33413
|
+
* Backwards compatibility
|
|
33414
|
+
*/ $fec3b4fc54d3756a$var$micromatch.any = $fec3b4fc54d3756a$var$micromatch.isMatch;
|
|
33415
|
+
/**
|
|
33416
|
+
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
33417
|
+
*
|
|
33418
|
+
* ```js
|
|
33419
|
+
* const mm = require('micromatch');
|
|
33420
|
+
* // mm.not(list, patterns[, options]);
|
|
33421
|
+
*
|
|
33422
|
+
* console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
|
|
33423
|
+
* //=> ['b.b', 'c.c']
|
|
33424
|
+
* ```
|
|
33425
|
+
* @param {Array} `list` Array of strings to match.
|
|
33426
|
+
* @param {String|Array} `patterns` One or more glob pattern to use for matching.
|
|
33427
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
33428
|
+
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
33429
|
+
* @api public
|
|
33430
|
+
*/ $fec3b4fc54d3756a$var$micromatch.not = (list, patterns, options = {})=>{
|
|
33431
|
+
patterns = [].concat(patterns).map(String);
|
|
33432
|
+
let result = new Set();
|
|
33433
|
+
let items = [];
|
|
33434
|
+
let onResult = (state)=>{
|
|
33435
|
+
if (options.onResult) options.onResult(state);
|
|
33436
|
+
items.push(state.output);
|
|
33437
|
+
};
|
|
33438
|
+
let matches = $fec3b4fc54d3756a$var$micromatch(list, patterns, {
|
|
33439
|
+
...options,
|
|
33440
|
+
onResult: onResult
|
|
33441
|
+
});
|
|
33442
|
+
for (let item of items)if (!matches.includes(item)) result.add(item);
|
|
33443
|
+
return [
|
|
33444
|
+
...result
|
|
33445
|
+
];
|
|
33446
|
+
};
|
|
33447
|
+
/**
|
|
33448
|
+
* Returns true if the given `string` contains the given pattern. Similar
|
|
33449
|
+
* to [.isMatch](#isMatch) but the pattern can match any part of the string.
|
|
33450
|
+
*
|
|
33451
|
+
* ```js
|
|
33452
|
+
* var mm = require('micromatch');
|
|
33453
|
+
* // mm.contains(string, pattern[, options]);
|
|
33454
|
+
*
|
|
33455
|
+
* console.log(mm.contains('aa/bb/cc', '*b'));
|
|
33456
|
+
* //=> true
|
|
33457
|
+
* console.log(mm.contains('aa/bb/cc', '*d'));
|
|
33458
|
+
* //=> false
|
|
33459
|
+
* ```
|
|
33460
|
+
* @param {String} `str` The string to match.
|
|
33461
|
+
* @param {String|Array} `patterns` Glob pattern to use for matching.
|
|
33462
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
33463
|
+
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
33464
|
+
* @api public
|
|
33465
|
+
*/ $fec3b4fc54d3756a$var$micromatch.contains = (str, pattern, options)=>{
|
|
33466
|
+
if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
|
|
33467
|
+
if (Array.isArray(pattern)) return pattern.some((p)=>$fec3b4fc54d3756a$var$micromatch.contains(str, p, options));
|
|
33468
|
+
if (typeof pattern === "string") {
|
|
33469
|
+
if ($fec3b4fc54d3756a$var$isEmptyString(str) || $fec3b4fc54d3756a$var$isEmptyString(pattern)) return false;
|
|
33470
|
+
if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
|
|
33471
|
+
}
|
|
33472
|
+
return $fec3b4fc54d3756a$var$micromatch.isMatch(str, pattern, {
|
|
33473
|
+
...options,
|
|
33474
|
+
contains: true
|
|
33475
|
+
});
|
|
33476
|
+
};
|
|
33477
|
+
/**
|
|
33478
|
+
* Filter the keys of the given object with the given `glob` pattern
|
|
33479
|
+
* and `options`. Does not attempt to match nested keys. If you need this feature,
|
|
33480
|
+
* use [glob-object][] instead.
|
|
33481
|
+
*
|
|
33482
|
+
* ```js
|
|
33483
|
+
* const mm = require('micromatch');
|
|
33484
|
+
* // mm.matchKeys(object, patterns[, options]);
|
|
33485
|
+
*
|
|
33486
|
+
* const obj = { aa: 'a', ab: 'b', ac: 'c' };
|
|
33487
|
+
* console.log(mm.matchKeys(obj, '*b'));
|
|
33488
|
+
* //=> { ab: 'b' }
|
|
33489
|
+
* ```
|
|
33490
|
+
* @param {Object} `object` The object with keys to filter.
|
|
33491
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
33492
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
33493
|
+
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
33494
|
+
* @api public
|
|
33495
|
+
*/ $fec3b4fc54d3756a$var$micromatch.matchKeys = (obj, patterns, options)=>{
|
|
33496
|
+
if (!$5MQDC.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
33497
|
+
let keys = $fec3b4fc54d3756a$var$micromatch(Object.keys(obj), patterns, options);
|
|
33498
|
+
let res = {};
|
|
33499
|
+
for (let key of keys)res[key] = obj[key];
|
|
33500
|
+
return res;
|
|
33501
|
+
};
|
|
33502
|
+
/**
|
|
33503
|
+
* Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
|
|
33504
|
+
*
|
|
33505
|
+
* ```js
|
|
33506
|
+
* const mm = require('micromatch');
|
|
33507
|
+
* // mm.some(list, patterns[, options]);
|
|
33508
|
+
*
|
|
33509
|
+
* console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
33510
|
+
* // true
|
|
33511
|
+
* console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
|
|
33512
|
+
* // false
|
|
33513
|
+
* ```
|
|
33514
|
+
* @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
|
|
33515
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
33516
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
33517
|
+
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
33518
|
+
* @api public
|
|
33519
|
+
*/ $fec3b4fc54d3756a$var$micromatch.some = (list, patterns, options)=>{
|
|
33520
|
+
let items = [].concat(list);
|
|
33521
|
+
for (let pattern of [].concat(patterns)){
|
|
33522
|
+
let isMatch = $2af609aa204f1181$exports(String(pattern), options);
|
|
33523
|
+
if (items.some((item)=>isMatch(item))) return true;
|
|
33524
|
+
}
|
|
33525
|
+
return false;
|
|
33526
|
+
};
|
|
33527
|
+
/**
|
|
33528
|
+
* Returns true if every string in the given `list` matches
|
|
33529
|
+
* any of the given glob `patterns`.
|
|
33530
|
+
*
|
|
33531
|
+
* ```js
|
|
33532
|
+
* const mm = require('micromatch');
|
|
33533
|
+
* // mm.every(list, patterns[, options]);
|
|
33534
|
+
*
|
|
33535
|
+
* console.log(mm.every('foo.js', ['foo.js']));
|
|
33536
|
+
* // true
|
|
33537
|
+
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
|
|
33538
|
+
* // true
|
|
33539
|
+
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
33540
|
+
* // false
|
|
33541
|
+
* console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
|
|
33542
|
+
* // false
|
|
33543
|
+
* ```
|
|
33544
|
+
* @param {String|Array} `list` The string or array of strings to test.
|
|
33545
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
33546
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
33547
|
+
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
33548
|
+
* @api public
|
|
33549
|
+
*/ $fec3b4fc54d3756a$var$micromatch.every = (list, patterns, options)=>{
|
|
33550
|
+
let items = [].concat(list);
|
|
33551
|
+
for (let pattern of [].concat(patterns)){
|
|
33552
|
+
let isMatch = $2af609aa204f1181$exports(String(pattern), options);
|
|
33553
|
+
if (!items.every((item)=>isMatch(item))) return false;
|
|
33554
|
+
}
|
|
33555
|
+
return true;
|
|
33556
|
+
};
|
|
33557
|
+
/**
|
|
33558
|
+
* Returns true if **all** of the given `patterns` match
|
|
33559
|
+
* the specified string.
|
|
33560
|
+
*
|
|
33561
|
+
* ```js
|
|
33562
|
+
* const mm = require('micromatch');
|
|
33563
|
+
* // mm.all(string, patterns[, options]);
|
|
33564
|
+
*
|
|
33565
|
+
* console.log(mm.all('foo.js', ['foo.js']));
|
|
33566
|
+
* // true
|
|
33567
|
+
*
|
|
33568
|
+
* console.log(mm.all('foo.js', ['*.js', '!foo.js']));
|
|
33569
|
+
* // false
|
|
33570
|
+
*
|
|
33571
|
+
* console.log(mm.all('foo.js', ['*.js', 'foo.js']));
|
|
33572
|
+
* // true
|
|
33573
|
+
*
|
|
33574
|
+
* console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
|
|
33575
|
+
* // true
|
|
33576
|
+
* ```
|
|
33577
|
+
* @param {String|Array} `str` The string to test.
|
|
33578
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
33579
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
33580
|
+
* @return {Boolean} Returns true if any patterns match `str`
|
|
33581
|
+
* @api public
|
|
33582
|
+
*/ $fec3b4fc54d3756a$var$micromatch.all = (str, patterns, options)=>{
|
|
33583
|
+
if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
|
|
33584
|
+
return [].concat(patterns).every((p)=>$2af609aa204f1181$exports(p, options)(str));
|
|
33585
|
+
};
|
|
33586
|
+
/**
|
|
33587
|
+
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
33588
|
+
*
|
|
33589
|
+
* ```js
|
|
33590
|
+
* const mm = require('micromatch');
|
|
33591
|
+
* // mm.capture(pattern, string[, options]);
|
|
33592
|
+
*
|
|
33593
|
+
* console.log(mm.capture('test/*.js', 'test/foo.js'));
|
|
33594
|
+
* //=> ['foo']
|
|
33595
|
+
* console.log(mm.capture('test/*.js', 'foo/bar.css'));
|
|
33596
|
+
* //=> null
|
|
33597
|
+
* ```
|
|
33598
|
+
* @param {String} `glob` Glob pattern to use for matching.
|
|
33599
|
+
* @param {String} `input` String to match
|
|
33600
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
33601
|
+
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
33602
|
+
* @api public
|
|
33603
|
+
*/ $fec3b4fc54d3756a$var$micromatch.capture = (glob, input, options)=>{
|
|
33604
|
+
let posix = $5MQDC.isWindows(options);
|
|
33605
|
+
let regex = $2af609aa204f1181$exports.makeRe(String(glob), {
|
|
33606
|
+
...options,
|
|
33607
|
+
capture: true
|
|
33608
|
+
});
|
|
33609
|
+
let match = regex.exec(posix ? $5MQDC.toPosixSlashes(input) : input);
|
|
33610
|
+
if (match) return match.slice(1).map((v)=>v === void 0 ? "" : v);
|
|
33611
|
+
};
|
|
33612
|
+
/**
|
|
33613
|
+
* Create a regular expression from the given glob `pattern`.
|
|
33614
|
+
*
|
|
33615
|
+
* ```js
|
|
33616
|
+
* const mm = require('micromatch');
|
|
33617
|
+
* // mm.makeRe(pattern[, options]);
|
|
33618
|
+
*
|
|
33619
|
+
* console.log(mm.makeRe('*.js'));
|
|
33620
|
+
* //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
|
|
33621
|
+
* ```
|
|
33622
|
+
* @param {String} `pattern` A glob pattern to convert to regex.
|
|
33623
|
+
* @param {Object} `options`
|
|
33624
|
+
* @return {RegExp} Returns a regex created from the given pattern.
|
|
33625
|
+
* @api public
|
|
33626
|
+
*/ $fec3b4fc54d3756a$var$micromatch.makeRe = (...args)=>$2af609aa204f1181$exports.makeRe(...args);
|
|
33627
|
+
/**
|
|
33628
|
+
* Scan a glob pattern to separate the pattern into segments. Used
|
|
33629
|
+
* by the [split](#split) method.
|
|
33630
|
+
*
|
|
33631
|
+
* ```js
|
|
33632
|
+
* const mm = require('micromatch');
|
|
33633
|
+
* const state = mm.scan(pattern[, options]);
|
|
33634
|
+
* ```
|
|
33635
|
+
* @param {String} `pattern`
|
|
33636
|
+
* @param {Object} `options`
|
|
33637
|
+
* @return {Object} Returns an object with
|
|
33638
|
+
* @api public
|
|
33639
|
+
*/ $fec3b4fc54d3756a$var$micromatch.scan = (...args)=>$2af609aa204f1181$exports.scan(...args);
|
|
33640
|
+
/**
|
|
33641
|
+
* Parse a glob pattern to create the source string for a regular
|
|
33642
|
+
* expression.
|
|
33643
|
+
*
|
|
33644
|
+
* ```js
|
|
33645
|
+
* const mm = require('micromatch');
|
|
33646
|
+
* const state = mm(pattern[, options]);
|
|
33647
|
+
* ```
|
|
33648
|
+
* @param {String} `glob`
|
|
33649
|
+
* @param {Object} `options`
|
|
33650
|
+
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
33651
|
+
* @api public
|
|
33652
|
+
*/ $fec3b4fc54d3756a$var$micromatch.parse = (patterns, options)=>{
|
|
33653
|
+
let res = [];
|
|
33654
|
+
for (let pattern of [].concat(patterns || []))for (let str of $fec07f13db1e462a$exports(String(pattern), options))res.push($2af609aa204f1181$exports.parse(str, options));
|
|
33655
|
+
return res;
|
|
33656
|
+
};
|
|
33657
|
+
/**
|
|
33658
|
+
* Process the given brace `pattern`.
|
|
33659
|
+
*
|
|
33660
|
+
* ```js
|
|
33661
|
+
* const { braces } = require('micromatch');
|
|
33662
|
+
* console.log(braces('foo/{a,b,c}/bar'));
|
|
33663
|
+
* //=> [ 'foo/(a|b|c)/bar' ]
|
|
33664
|
+
*
|
|
33665
|
+
* console.log(braces('foo/{a,b,c}/bar', { expand: true }));
|
|
33666
|
+
* //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
|
|
33667
|
+
* ```
|
|
33668
|
+
* @param {String} `pattern` String with brace pattern to process.
|
|
33669
|
+
* @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
|
|
33670
|
+
* @return {Array}
|
|
33671
|
+
* @api public
|
|
33672
|
+
*/ $fec3b4fc54d3756a$var$micromatch.braces = (pattern, options)=>{
|
|
33673
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
33674
|
+
if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) return [
|
|
33675
|
+
pattern
|
|
33676
|
+
];
|
|
33677
|
+
return $fec07f13db1e462a$exports(pattern, options);
|
|
33678
|
+
};
|
|
33679
|
+
/**
|
|
33680
|
+
* Expand braces
|
|
33681
|
+
*/ $fec3b4fc54d3756a$var$micromatch.braceExpand = (pattern, options)=>{
|
|
33682
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
33683
|
+
return $fec3b4fc54d3756a$var$micromatch.braces(pattern, {
|
|
33684
|
+
...options,
|
|
33685
|
+
expand: true
|
|
33686
|
+
});
|
|
33687
|
+
};
|
|
33688
|
+
/**
|
|
33689
|
+
* Expose micromatch
|
|
33690
|
+
*/ $fec3b4fc54d3756a$exports = $fec3b4fc54d3756a$var$micromatch;
|
|
33691
|
+
|
|
33049
33692
|
|
|
33050
33693
|
|
|
33051
33694
|
function $e8d0e504a4244d84$export$f3a2344a73dbdd42(p) {
|
|
@@ -33076,7 +33719,7 @@ function $e8d0e504a4244d84$export$42275ba87174c828(p, fs, options) {
|
|
|
33076
33719
|
}
|
|
33077
33720
|
}
|
|
33078
33721
|
}; // $FlowFixMe
|
|
33079
|
-
return (0, (/*@__PURE__*/$parcel$interopDefault($
|
|
33722
|
+
return (0, (/*@__PURE__*/$parcel$interopDefault($21b1b538e1d1be85$exports))).sync((0, $3dff16cfd200ff25$export$16778b798ae8e49d)(p), options);
|
|
33080
33723
|
}
|
|
33081
33724
|
function $e8d0e504a4244d84$export$442f1a04865e4790(p, fs, options) {
|
|
33082
33725
|
// $FlowFixMe
|
|
@@ -33112,7 +33755,7 @@ function $e8d0e504a4244d84$export$442f1a04865e4790(p, fs, options) {
|
|
|
33112
33755
|
}
|
|
33113
33756
|
}
|
|
33114
33757
|
}; // $FlowFixMe Added in Flow 0.121.0 upgrade in #4381
|
|
33115
|
-
return (0, (/*@__PURE__*/$parcel$interopDefault($
|
|
33758
|
+
return (0, (/*@__PURE__*/$parcel$interopDefault($21b1b538e1d1be85$exports)))((0, $3dff16cfd200ff25$export$16778b798ae8e49d)(p), options);
|
|
33116
33759
|
}
|
|
33117
33760
|
|
|
33118
33761
|
|
|
@@ -33493,7 +34136,10 @@ async function $f02d6a9d30f55938$export$2e2bcd8739ae039(diagnostic, options, ter
|
|
|
33493
34136
|
language: codeFrame.language || (filePath != null ? (0, ($parcel$interopDefault($8C1kk$path))).extname(filePath).substr(1) : undefined),
|
|
33494
34137
|
terminalWidth: terminalWidth
|
|
33495
34138
|
});
|
|
33496
|
-
let location
|
|
34139
|
+
let location;
|
|
34140
|
+
if (typeof filePath !== "string") location = "";
|
|
34141
|
+
else if (highlights.length === 0) location = filePath;
|
|
34142
|
+
else location = `${filePath}:${highlights[0].start.line}:${highlights[0].start.column}`;
|
|
33497
34143
|
result.codeframe += location ? (0, ($parcel$interopDefault($8C1kk$chalk))).gray.underline(location) + "\n" : "";
|
|
33498
34144
|
result.codeframe += formattedCodeFrame;
|
|
33499
34145
|
if (codeFrame !== codeFrames[codeFrames.length - 1]) result.codeframe += "\n\n";
|
|
@@ -35067,7 +35713,7 @@ function $5dc3ee1f90b35876$var$escape() {
|
|
|
35067
35713
|
case "0":
|
|
35068
35714
|
$5dc3ee1f90b35876$var$read();
|
|
35069
35715
|
if ($5dc3ee1f90b35876$var$util.isDigit($5dc3ee1f90b35876$var$peek())) throw $5dc3ee1f90b35876$var$invalidChar($5dc3ee1f90b35876$var$read());
|
|
35070
|
-
return "\
|
|
35716
|
+
return "\x00";
|
|
35071
35717
|
case "x":
|
|
35072
35718
|
$5dc3ee1f90b35876$var$read();
|
|
35073
35719
|
return $5dc3ee1f90b35876$var$hexEscape();
|
|
@@ -35287,7 +35933,7 @@ function $5dc3ee1f90b35876$var$formatChar(c) {
|
|
|
35287
35933
|
"\r": "\\r",
|
|
35288
35934
|
" ": "\\t",
|
|
35289
35935
|
"\v": "\\v",
|
|
35290
|
-
"\
|
|
35936
|
+
"\x00": "\\0",
|
|
35291
35937
|
"\u2028": "\\u2028",
|
|
35292
35938
|
"\u2029": "\\u2029"
|
|
35293
35939
|
};
|
|
@@ -35375,7 +36021,7 @@ var $5dc3ee1f90b35876$var$stringify = function stringify(value, replacer, space)
|
|
|
35375
36021
|
"\r": "\\r",
|
|
35376
36022
|
" ": "\\t",
|
|
35377
36023
|
"\v": "\\v",
|
|
35378
|
-
"\
|
|
36024
|
+
"\x00": "\\0",
|
|
35379
36025
|
"\u2028": "\\u2028",
|
|
35380
36026
|
"\u2029": "\\u2029"
|
|
35381
36027
|
};
|
|
@@ -35388,7 +36034,7 @@ var $5dc3ee1f90b35876$var$stringify = function stringify(value, replacer, space)
|
|
|
35388
36034
|
quotes[c]++;
|
|
35389
36035
|
product += c;
|
|
35390
36036
|
continue;
|
|
35391
|
-
case "\
|
|
36037
|
+
case "\x00":
|
|
35392
36038
|
if ($5dc3ee1f90b35876$var$util.isDigit(value[i + 1])) {
|
|
35393
36039
|
product += "\\x00";
|
|
35394
36040
|
continue;
|
|
@@ -36039,7 +36685,7 @@ async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames
|
|
|
36039
36685
|
if (extname === "js" || extname === "cjs") {
|
|
36040
36686
|
let output = {
|
|
36041
36687
|
// $FlowFixMe
|
|
36042
|
-
config: (0, (/*@__PURE__*/$parcel$interopDefault($284aeb9e515b63c0$exports)))(require(configFile)),
|
|
36688
|
+
config: (0, (/*@__PURE__*/$parcel$interopDefault($284aeb9e515b63c0$exports)))(module.require(configFile)),
|
|
36043
36689
|
files: [
|
|
36044
36690
|
{
|
|
36045
36691
|
filePath: configFile
|
|
@@ -36049,52 +36695,7 @@ async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames
|
|
|
36049
36695
|
$10671d0be444e08b$var$configCache.set(configFile, output);
|
|
36050
36696
|
return output;
|
|
36051
36697
|
}
|
|
36052
|
-
|
|
36053
|
-
let config;
|
|
36054
|
-
if (parse === false) config = configContent;
|
|
36055
|
-
else {
|
|
36056
|
-
var _opts_parser;
|
|
36057
|
-
let parse = (_opts_parser = opts === null || opts === void 0 ? void 0 : opts.parser) !== null && _opts_parser !== void 0 ? _opts_parser : $10671d0be444e08b$var$getParser(extname);
|
|
36058
|
-
try {
|
|
36059
|
-
config = parse(configContent);
|
|
36060
|
-
} catch (e) {
|
|
36061
|
-
if (extname !== "" && extname !== "json") throw e;
|
|
36062
|
-
let pos = {
|
|
36063
|
-
line: e.lineNumber,
|
|
36064
|
-
column: e.columnNumber
|
|
36065
|
-
};
|
|
36066
|
-
throw new (0, ($parcel$interopDefault($8C1kk$parceldiagnostic)))({
|
|
36067
|
-
diagnostic: {
|
|
36068
|
-
message: `Failed to parse ${(0, ($parcel$interopDefault($8C1kk$path))).basename(configFile)}`,
|
|
36069
|
-
origin: "@parcel/utils",
|
|
36070
|
-
codeFrames: [
|
|
36071
|
-
{
|
|
36072
|
-
language: "json5",
|
|
36073
|
-
filePath: configFile,
|
|
36074
|
-
code: configContent,
|
|
36075
|
-
codeHighlights: [
|
|
36076
|
-
{
|
|
36077
|
-
start: pos,
|
|
36078
|
-
end: pos,
|
|
36079
|
-
message: e.message
|
|
36080
|
-
}
|
|
36081
|
-
]
|
|
36082
|
-
}
|
|
36083
|
-
]
|
|
36084
|
-
}
|
|
36085
|
-
});
|
|
36086
|
-
}
|
|
36087
|
-
}
|
|
36088
|
-
let output = {
|
|
36089
|
-
config: config,
|
|
36090
|
-
files: [
|
|
36091
|
-
{
|
|
36092
|
-
filePath: configFile
|
|
36093
|
-
}
|
|
36094
|
-
]
|
|
36095
|
-
};
|
|
36096
|
-
$10671d0be444e08b$var$configCache.set(String(parse) + configFile, output);
|
|
36097
|
-
return output;
|
|
36698
|
+
return $10671d0be444e08b$export$f5327b421858c8cd(fs, configFile, opts);
|
|
36098
36699
|
} catch (err) {
|
|
36099
36700
|
if (err.code === "MODULE_NOT_FOUND" || err.code === "ENOENT") return null;
|
|
36100
36701
|
throw err;
|
|
@@ -36106,6 +36707,64 @@ $10671d0be444e08b$export$c1a4367d4847eb06.clear = ()=>{
|
|
|
36106
36707
|
$10671d0be444e08b$var$configCache.reset();
|
|
36107
36708
|
$10671d0be444e08b$var$resolveCache.clear();
|
|
36108
36709
|
};
|
|
36710
|
+
async function $10671d0be444e08b$export$f5327b421858c8cd(fs, configFile, opts) {
|
|
36711
|
+
var _opts_parse;
|
|
36712
|
+
let parse = (_opts_parse = opts === null || opts === void 0 ? void 0 : opts.parse) !== null && _opts_parse !== void 0 ? _opts_parse : true;
|
|
36713
|
+
let cachedOutput = $10671d0be444e08b$var$configCache.get(String(parse) + configFile);
|
|
36714
|
+
if (cachedOutput) return cachedOutput;
|
|
36715
|
+
try {
|
|
36716
|
+
let configContent = await fs.readFile(configFile, "utf8");
|
|
36717
|
+
let config;
|
|
36718
|
+
if (parse === false) config = configContent;
|
|
36719
|
+
else {
|
|
36720
|
+
let extname = (0, ($parcel$interopDefault($8C1kk$path))).extname(configFile).slice(1);
|
|
36721
|
+
var _opts_parser;
|
|
36722
|
+
let parse = (_opts_parser = opts === null || opts === void 0 ? void 0 : opts.parser) !== null && _opts_parser !== void 0 ? _opts_parser : $10671d0be444e08b$var$getParser(extname);
|
|
36723
|
+
try {
|
|
36724
|
+
config = parse(configContent);
|
|
36725
|
+
} catch (e) {
|
|
36726
|
+
if (extname !== "" && extname !== "json") throw e;
|
|
36727
|
+
let pos = {
|
|
36728
|
+
line: e.lineNumber,
|
|
36729
|
+
column: e.columnNumber
|
|
36730
|
+
};
|
|
36731
|
+
throw new (0, ($parcel$interopDefault($8C1kk$parceldiagnostic)))({
|
|
36732
|
+
diagnostic: {
|
|
36733
|
+
message: `Failed to parse ${(0, ($parcel$interopDefault($8C1kk$path))).basename(configFile)}`,
|
|
36734
|
+
origin: "@parcel/utils",
|
|
36735
|
+
codeFrames: [
|
|
36736
|
+
{
|
|
36737
|
+
language: "json5",
|
|
36738
|
+
filePath: configFile,
|
|
36739
|
+
code: configContent,
|
|
36740
|
+
codeHighlights: [
|
|
36741
|
+
{
|
|
36742
|
+
start: pos,
|
|
36743
|
+
end: pos,
|
|
36744
|
+
message: e.message
|
|
36745
|
+
}
|
|
36746
|
+
]
|
|
36747
|
+
}
|
|
36748
|
+
]
|
|
36749
|
+
}
|
|
36750
|
+
});
|
|
36751
|
+
}
|
|
36752
|
+
}
|
|
36753
|
+
let output = {
|
|
36754
|
+
config: config,
|
|
36755
|
+
files: [
|
|
36756
|
+
{
|
|
36757
|
+
filePath: configFile
|
|
36758
|
+
}
|
|
36759
|
+
]
|
|
36760
|
+
};
|
|
36761
|
+
$10671d0be444e08b$var$configCache.set(String(parse) + configFile, output);
|
|
36762
|
+
return output;
|
|
36763
|
+
} catch (err) {
|
|
36764
|
+
if (err.code === "MODULE_NOT_FOUND" || err.code === "ENOENT") return null;
|
|
36765
|
+
throw err;
|
|
36766
|
+
}
|
|
36767
|
+
}
|
|
36109
36768
|
function $10671d0be444e08b$var$getParser(extname) {
|
|
36110
36769
|
switch(extname){
|
|
36111
36770
|
case "toml":
|
|
@@ -36135,6 +36794,7 @@ async function $6aebdac47db0459e$export$6643be4f4e63e994(fs, moduleName, dir) {
|
|
|
36135
36794
|
let orgDirContent = (await fs.readdir(orgDirPath)).sort(); // Add all org packages
|
|
36136
36795
|
potentialModules.push(...orgDirContent.map((i)=>`${item}/${i}`));
|
|
36137
36796
|
}));
|
|
36797
|
+
else potentialModules.push(...modules);
|
|
36138
36798
|
}
|
|
36139
36799
|
} catch (err) {} // Move up a directory
|
|
36140
36800
|
dir = (0, ($parcel$interopDefault($8C1kk$path))).dirname(dir);
|
|
@@ -36314,12 +36974,14 @@ function $4b14026b40817fca$export$8a9ede1a78d6a1fe(stream) {
|
|
|
36314
36974
|
function $4b14026b40817fca$export$3477f9615e12f61d(obj) {
|
|
36315
36975
|
return (0, $8C1kk$parcelhash.hashString)(JSON.stringify((0, $9631335a11debdd4$export$1a9b883158ac407c)(obj)));
|
|
36316
36976
|
}
|
|
36977
|
+
let $4b14026b40817fca$var$testCache = {
|
|
36978
|
+
};
|
|
36317
36979
|
function $4b14026b40817fca$export$42462553d605d8cd(fs, filePath) {
|
|
36318
36980
|
return $4b14026b40817fca$export$8a9ede1a78d6a1fe(fs.createReadStream(filePath));
|
|
36319
36981
|
}
|
|
36320
36982
|
|
|
36321
36983
|
|
|
36322
|
-
|
|
36984
|
+
let $1c93db5abaa33eaa$export$8b1c306fed4227bf; // $FlowFixMe[prop-missing]
|
|
36323
36985
|
if (process.browser) {
|
|
36324
36986
|
$1c93db5abaa33eaa$export$8b1c306fed4227bf = ArrayBuffer; // Safari has removed the constructor
|
|
36325
36987
|
if (typeof SharedArrayBuffer !== "undefined") {
|
|
@@ -36339,7 +37001,6 @@ if (process.browser) {
|
|
|
36339
37001
|
|
|
36340
37002
|
|
|
36341
37003
|
|
|
36342
|
-
|
|
36343
37004
|
async function $0e887a49fdd81cad$export$3b1983e9896f988b(options) {
|
|
36344
37005
|
let server;
|
|
36345
37006
|
if (!options.https) server = (0, ($parcel$interopDefault($8C1kk$http))).createServer(options.listener);
|
|
@@ -36822,5 +37483,106 @@ function $46fc74961fdcfe31$export$2fed780245c466c1(loc, originalMap) {
|
|
|
36822
37483
|
|
|
36823
37484
|
|
|
36824
37485
|
|
|
37486
|
+
// have been hoisted to keep the flow errors to a minimum. This can be removed
|
|
37487
|
+
// if we upgrade to a flow version that supports BigInt's
|
|
37488
|
+
// $FlowFixMe
|
|
37489
|
+
// $FlowFixMe
|
|
37490
|
+
const $2c32463ab90dab73$var$BIGINT_ZERO = 0n; // $FlowFixMe
|
|
37491
|
+
const $2c32463ab90dab73$var$BIGINT_ONE = 1n; // $FlowFixMe
|
|
37492
|
+
let $2c32463ab90dab73$var$numberToBigInt = (v)=>BigInt(v);
|
|
37493
|
+
let $2c32463ab90dab73$var$bitUnion = (a, b)=>a | b;
|
|
37494
|
+
class $2c32463ab90dab73$export$33dc8f3f7b9e35df {
|
|
37495
|
+
constructor({ initial: initial , items: items , lookup: lookup }){
|
|
37496
|
+
if (initial instanceof $2c32463ab90dab73$export$33dc8f3f7b9e35df) this._value = initial === null || initial === void 0 ? void 0 : initial._value;
|
|
37497
|
+
else if (initial) this._value = initial;
|
|
37498
|
+
else this._value = $2c32463ab90dab73$var$BIGINT_ZERO;
|
|
37499
|
+
this._items = items;
|
|
37500
|
+
this._lookup = lookup;
|
|
37501
|
+
}
|
|
37502
|
+
static from(items) {
|
|
37503
|
+
let lookup = new Map();
|
|
37504
|
+
for(let i = 0; i < items.length; i++)lookup.set(items[i], $2c32463ab90dab73$var$numberToBigInt(i));
|
|
37505
|
+
return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
|
|
37506
|
+
items: items,
|
|
37507
|
+
lookup: lookup
|
|
37508
|
+
});
|
|
37509
|
+
}
|
|
37510
|
+
static union(a, b) {
|
|
37511
|
+
return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
|
|
37512
|
+
initial: $2c32463ab90dab73$var$bitUnion(a._value, b._value),
|
|
37513
|
+
lookup: a._lookup,
|
|
37514
|
+
items: a._items
|
|
37515
|
+
});
|
|
37516
|
+
}
|
|
37517
|
+
#getIndex(item) {
|
|
37518
|
+
return (0, (/*@__PURE__*/$parcel$interopDefault($812806c6461f2963$exports)))(this._lookup.get(item), "Item is missing from BitSet");
|
|
37519
|
+
}
|
|
37520
|
+
add(item) {
|
|
37521
|
+
this._value |= $2c32463ab90dab73$var$BIGINT_ONE << this.#getIndex(item);
|
|
37522
|
+
}
|
|
37523
|
+
delete(item) {
|
|
37524
|
+
this._value &= ~($2c32463ab90dab73$var$BIGINT_ONE << this.#getIndex(item));
|
|
37525
|
+
}
|
|
37526
|
+
has(item) {
|
|
37527
|
+
return Boolean(this._value & $2c32463ab90dab73$var$BIGINT_ONE << this.#getIndex(item));
|
|
37528
|
+
}
|
|
37529
|
+
intersect(v) {
|
|
37530
|
+
this._value = this._value & v._value;
|
|
37531
|
+
}
|
|
37532
|
+
union(v) {
|
|
37533
|
+
this._value = $2c32463ab90dab73$var$bitUnion(this._value, v._value);
|
|
37534
|
+
}
|
|
37535
|
+
clear() {
|
|
37536
|
+
this._value = $2c32463ab90dab73$var$BIGINT_ZERO;
|
|
37537
|
+
}
|
|
37538
|
+
cloneEmpty() {
|
|
37539
|
+
return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
|
|
37540
|
+
lookup: this._lookup,
|
|
37541
|
+
items: this._items
|
|
37542
|
+
});
|
|
37543
|
+
}
|
|
37544
|
+
clone() {
|
|
37545
|
+
return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
|
|
37546
|
+
lookup: this._lookup,
|
|
37547
|
+
items: this._items,
|
|
37548
|
+
initial: this._value
|
|
37549
|
+
});
|
|
37550
|
+
}
|
|
37551
|
+
values() {
|
|
37552
|
+
let values = [];
|
|
37553
|
+
let tmpValue = this._value;
|
|
37554
|
+
let i; // This implementation is optimized for BitSets that contain a very small percentage
|
|
37555
|
+
// of items compared to the total number of potential items. This makes sense for
|
|
37556
|
+
// our bundler use-cases where Sets often contain <1% coverage of the total item count.
|
|
37557
|
+
// In cases where Sets contain a larger percentage of the total items, a regular looping
|
|
37558
|
+
// strategy would be more performant.
|
|
37559
|
+
while(tmpValue > $2c32463ab90dab73$var$BIGINT_ZERO){
|
|
37560
|
+
// Get last set bit
|
|
37561
|
+
i = tmpValue.toString(2).length - 1;
|
|
37562
|
+
values.push(this._items[i]); // Unset last set bit
|
|
37563
|
+
tmpValue &= ~($2c32463ab90dab73$var$BIGINT_ONE << $2c32463ab90dab73$var$numberToBigInt(i));
|
|
37564
|
+
}
|
|
37565
|
+
return values;
|
|
37566
|
+
}
|
|
37567
|
+
}
|
|
37568
|
+
|
|
37569
|
+
|
|
37570
|
+
var $f709bcec854d2334$exports = {};
|
|
37571
|
+
"use strict";
|
|
37572
|
+
var $55a853fa49f658b3$exports = {};
|
|
37573
|
+
"use strict";
|
|
37574
|
+
$55a853fa49f658b3$exports = ({ onlyFirst: onlyFirst = false } = {})=>{
|
|
37575
|
+
const pattern = [
|
|
37576
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
37577
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
37578
|
+
].join("|");
|
|
37579
|
+
return new RegExp(pattern, onlyFirst ? undefined : "g");
|
|
37580
|
+
};
|
|
37581
|
+
|
|
37582
|
+
|
|
37583
|
+
$f709bcec854d2334$exports = (string)=>typeof string === "string" ? string.replace($55a853fa49f658b3$exports(), "") : string;
|
|
37584
|
+
|
|
37585
|
+
|
|
37586
|
+
|
|
36825
37587
|
|
|
36826
37588
|
//# sourceMappingURL=index.js.map
|